@saas-ui/button
Advanced tools
Comparing version 1.0.0-rc.2 to 1.0.0-rc.3
# @saas-ui/button | ||
## 1.0.0-rc.3 | ||
### Patch Changes | ||
- dc6376f: Updated all readme files, added better descriptions and links to docs and source code. | ||
- 68f5d3b: Removed isPrimary and isSecondary Button properties, use colorScheme="primary" instead. | ||
## 1.0.0-rc.2 | ||
@@ -4,0 +11,0 @@ |
@@ -9,12 +9,4 @@ import * as React from 'react'; | ||
label?: React.ReactNode; | ||
/** | ||
* Alias for colorScheme="primary" | ||
*/ | ||
isPrimary?: boolean; | ||
/** | ||
* Alias for colorScheme="secondary" | ||
*/ | ||
isSecondary?: boolean; | ||
} | ||
export declare const Button: import("@chakra-ui/system").ComponentWithAs<import("@chakra-ui/system").ComponentWithAs<"button", ChakraButtonProps>, ButtonProps>; | ||
//# sourceMappingURL=button.d.ts.map |
@@ -1,2 +0,2 @@ | ||
var e=require("react"),r=require("@chakra-ui/button"),t=require("@chakra-ui/utils"),n=require("@chakra-ui/system");function u(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,r}var o=/*#__PURE__*/u(e);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},a.apply(this,arguments)}var i=["label","isPrimary","isSecondary","children"],c=n.forwardRef(function(e,t){var n,u=e.label,c=e.isPrimary,f=e.isSecondary,l=e.children,s=function(e,r){if(null==e)return{};var t,n,u={},o=Object.keys(e);for(n=0;n<o.length;n++)r.indexOf(t=o[n])>=0||(u[t]=e[t]);return u}(e,i);return c&&(n="primary"),f&&(n="secondary"),/*#__PURE__*/o.createElement(r.Button,a({ref:t,colorScheme:n},s),l||u)});t.__DEV__&&(c.displayName="Button"),Object.defineProperty(exports,"ButtonGroup",{enumerable:!0,get:function(){return r.ButtonGroup}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return r.IconButton}}),exports.Button=c; | ||
var e=require("react"),r=require("@chakra-ui/button"),t=require("@chakra-ui/utils"),n=require("@chakra-ui/system");function u(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,r}var o=/*#__PURE__*/u(e);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},a.apply(this,arguments)}var i=["label","children"],c=n.forwardRef(function(e,t){var n=e.label,u=e.children,c=function(e,r){if(null==e)return{};var t,n,u={},o=Object.keys(e);for(n=0;n<o.length;n++)r.indexOf(t=o[n])>=0||(u[t]=e[t]);return u}(e,i);/*#__PURE__*/return o.createElement(r.Button,a({ref:t},c),u||n)});t.__DEV__&&(c.displayName="Button"),Object.defineProperty(exports,"ButtonGroup",{enumerable:!0,get:function(){return r.ButtonGroup}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return r.IconButton}}),exports.Button=c; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@saas-ui/button", | ||
"version": "1.0.0-rc.2", | ||
"version": "1.0.0-rc.3", | ||
"description": "Button Component", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
# @saas-ui/button | ||
Description | ||
Chakra UI Button component. | ||
@@ -15,6 +15,12 @@ ## Installation | ||
## Usage | ||
## Docs | ||
https://www.saas-ui.dev/docs/forms/button | ||
## Source | ||
https://github.com/saas-js/saas-ui/tree/next/packages/saas-ui-button | ||
## License | ||
MIT - Appulse Software |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26
10646
52