pillardash-ui-react 0.1.116 → 0.1.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface ButtonProps {
|
|
|
11
11
|
/** Size of the button */
|
|
12
12
|
size?: "small" | "medium" | "large" | "sm" | "md" | "lg";
|
|
13
13
|
/** Visual style variant */
|
|
14
|
-
variant?: "primary" | "secondary" | "dark" | "neutral";
|
|
14
|
+
variant?: "primary" | "secondary" | "dark" | "neutral" | "danger" | "default";
|
|
15
15
|
/** Disabled state of the button */
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
/** Additional CSS classes */
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/o=i,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}o.exports?(t.default=t,o.exports=t):window.classNames=t}();var s=r(i.exports),a=function(t){var n=t.children,r=t.onClick,o=t.type,i=void 0===o?"button":o,a=t.size,l=void 0===a?"medium":a,c=t.variant,d=void 0===c?"primary":c,h=t.disabled,u=void 0!==h&&h,p=t.className,f=t.icon,m=t.loading,g=void 0!==m&&m,x=t.outline,y=void 0!==x&&x,v=t.iconPosition,b=void 0===v?"left":v,w=s("animate-spin -ml-1 mr-3",{"h-4 w-4":"small"===l,"h-5 w-5":"medium"===l,"h-6 w-6":"large"===l},"primary"===d?"text-white":"text-primary"),k=s("rounded-xl text-sm transition-all font-semibold duration-300 inline-flex items-center justify-center ease-in-out",{small:"px-5 py-2 text-sm",sm:"px-5 py-2 text-sm",medium:"px-6 py-3 text-md",md:"px-6 py-3 text-md",large:"px-8 py-4 text-lg",lg:"px-8 py-4 text-lg"}[l],{primary:{solid:"bg-primary text-white hover:bg-primary-700 border border-primary",outline:"bg-transparent text-primary hover:bg-primary hover:text-white border border-primary"},secondary:{solid:"bg-secondary text-white hover:bg-white hover:text-secondary border border-secondary",outline:"bg-transparent text-secondary hover:bg-secondary hover:text-white border border-secondary"},dark:{solid:"bg-dark text-white hover:bg-primary hover:border-primary border border-dark",outline:"bg-transparent text-dark hover:bg-dark hover:text-white border border-dark"},neutral:{solid:"bg-white text-gray-700 hover:bg-gray-300 hover:text-white border border-gray-300",outline:"bg-transparent text-gray-700 hover:bg-gray-200 border border-gray-300"}}[d][y?"outline":"solid"],u?"opacity-50 cursor-not-allowed":"hover:shadow-lg",p,{"flex-row-reverse":"right"===b}),N="left"===b?"mr-2":"ml-2";return e.jsx("button",{type:i,onClick:r,disabled:u,className:k,children:g?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{className:w,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),n]}):e.jsxs(e.Fragment,{children:[f&&e.jsx("span",{className:N,children:f}),n]})})};
|
|
6
|
+
*/o=i,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}o.exports?(t.default=t,o.exports=t):window.classNames=t}();var s=r(i.exports),a=function(t){var n=t.children,r=t.onClick,o=t.type,i=void 0===o?"button":o,a=t.size,l=void 0===a?"medium":a,c=t.variant,d=void 0===c?"primary":c,h=t.disabled,u=void 0!==h&&h,p=t.className,f=t.icon,m=t.loading,g=void 0!==m&&m,x=t.outline,y=void 0!==x&&x,v=t.iconPosition,b=void 0===v?"left":v,w=s("animate-spin -ml-1 mr-3",{"h-4 w-4":"small"===l,"h-5 w-5":"medium"===l,"h-6 w-6":"large"===l},"primary"===d?"text-white":"text-primary"),k=s("rounded-xl text-sm transition-all font-semibold duration-300 inline-flex items-center justify-center ease-in-out",{small:"px-5 py-2 text-sm",sm:"px-5 py-2 text-sm",medium:"px-6 py-3 text-md",md:"px-6 py-3 text-md",large:"px-8 py-4 text-lg",lg:"px-8 py-4 text-lg"}[l],{primary:{solid:"bg-primary text-white hover:bg-primary-700 border border-primary",outline:"bg-transparent text-primary hover:bg-primary hover:text-white border border-primary"},secondary:{solid:"bg-secondary text-white hover:bg-white hover:text-secondary border border-secondary",outline:"bg-transparent text-secondary hover:bg-secondary hover:text-white border border-secondary"},dark:{solid:"bg-dark text-white hover:bg-primary hover:border-primary border border-dark",outline:"bg-transparent text-dark hover:bg-dark hover:text-white border border-dark"},neutral:{solid:"bg-white text-gray-700 hover:bg-gray-300 hover:text-white border border-gray-300",outline:"bg-transparent text-gray-700 hover:bg-gray-200 border border-gray-300"},danger:{solid:"bg-red-600 text-white-700 hover:bg-red-200 hover:text-white border border-red-300",outline:"bg-transparent text-red-600 hover:bg-red-200 border border-red-300"},default:{solid:"bg-white text-gray-700 hover:bg-gray-300 hover:text-white border border-gray-300",outline:"bg-transparent text-gray-700 hover:bg-gray-200 border border-gray-300"}}[d][y?"outline":"solid"],u?"opacity-50 cursor-not-allowed":"hover:shadow-lg",p,{"flex-row-reverse":"right"===b}),N="left"===b?"mr-2":"ml-2";return e.jsx("button",{type:i,onClick:r,disabled:u,className:k,children:g?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{className:w,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),n]}):e.jsxs(e.Fragment,{children:[f&&e.jsx("span",{className:N,children:f}),n]})})};
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.511.0 - ISC
|
|
9
9
|
*
|