Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@devseed-ui/button

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devseed-ui/button - npm Package Compare versions

Comparing version 2.4.3 to 2.4.5

8

CHANGELOG.md
# @devseed-ui/button
## 2.4.5
### Patch Changes
- Add SSR related test
- Updated dependencies [undefined]
- @devseed-ui/collecticons@1.0.0
## 2.4.4

@@ -4,0 +12,0 @@

16

package.json
{
"name": "@devseed-ui/button",
"version": "2.4.3",
"version": "2.4.5",
"description": "devseed UI Kit Button",

@@ -12,2 +12,14 @@ "browser": "./dist/index.web.js",

"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/developmentseed/ui-library-seed.git"
},
"keywords": [
"css",
"framework",
"front-end",
"responsive",
"styled-components",
"web"
],
"publishConfig": {

@@ -18,4 +30,4 @@ "access": "public"

"@devseed-ui/theme-provider": "^2.4.0",
"@devseed-ui/collecticons": "0.11.2"
"@devseed-ui/collecticons": "1.0.0"
}
}

42

README.md

@@ -1,11 +0,7 @@

### Import
# @devseed-ui/button
```code
import Button from '@devseed-ui/button';
```
Button is a default component to display action in a page.
## Guidelines and examples
Button is a default component to display action in a page.
#### Variation

@@ -85,9 +81,37 @@

- Prop name: "variant"
Type: "oneOf ['default', 'primary', 'info', 'danger', 'dark']"
Type: "combination of primary/base/danger/success-raised/plain-light/semidark/dark"
Description: "Sets the style variant of the button"
Default value: "default"
Default value: "base-plain"
- Prop name: "size"
Type: "oneOf ['small', 'medium', 'large']"
Type: "oneOf ['small', 'medium', 'large', 'xlarge']"
Description: "Sets the size of the button"
Default value: "medium"
- Prop name: "radius"
Type: "oneOf ['ellipsoid','square', 'rounded']"
Description: "The value for the radius"
Default value: "rounded"
- Prop name: "box"
Type: "oneOf ['block','semi-fluid', 'null']"
Description: "The value for the box."
Default value: "null"
- Prop name: "active"
Type: "bool"
Description: "Whether the button is in an active state."
Default value: "false"
- Prop name: "hideText"
Type: "bool"
Description: "Whether the button text should be hidden"
Default value: "false"
- Prop name: "disabled"
Type: "bool"
Description: "Whether the button should be disabled."
Default value: "false"
- Prop name: "visuallyDisabled"
Type: "bool"
Description: "Whether the button should be visually disabled. A visually disabled button looks disabled but retains the mouse events. This is useful to trigger tooltips on hover."
Default value: "false"
- Prop name: "useIcon"
Type: "oneOf [array, string]"
Description: "The value for the icon. Has to be the name of a collecticon. If an array is used instead of a string, the first position is the name of the icon, and the second the position ('before' | 'after')."
Default value: "null"
- Prop name: "onClick"

@@ -94,0 +118,0 @@ Type: "func"

import React from 'react';
import { renderToString } from 'react-dom/server';
import { cleanup } from '@testing-library/react';
import { DevseedUiThemeProvider } from '@devseed-ui/theme-provider';

@@ -68,2 +70,12 @@ import { Button } from '.';

});
it('renders SSR compatible <Button />', () => {
const renderOnServer = () =>
renderToString(
<DevseedUiThemeProvider>
<Button>Some button</Button>
</DevseedUiThemeProvider>,
);
expect(renderOnServer).not.toThrow();
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc