@wishket/design-system 1.6.0 → 1.6.2
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/Components/DataDisplays/SystemIcon/Icons/Small/SmallCat.js +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallPlay.js +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallSlash.js +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallStop.js +1 -1
- package/dist/Components/Feedbacks/SnackBar/index.d.ts +1 -1
- package/dist/Components/Feedbacks/index.d.ts +1 -1
- package/dist/Components/Inputs/Checkbox/Checkbox.parts.js +1 -1
- package/dist/config/tailwind.config.js +9 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var r=require("react/jsx-runtime");module.exports=function(t){var C=t.testId,t=t.className;return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","data-testid":C,className:t,children:[r.jsxs("g",{clipPath:"url(#clip0_9258_9310)",children:[r.jsx("path",{d:"M10.7487 9.0463H10.7507L10.7406 9.03213C10.6717 8.9248 10.5948 8.82557 10.5097 8.73444L8.73979 6.44205C8.34895 5.95603 7.75155 5.64417 7.07923 5.64417C7.0529 5.64417 7.02657 5.64619 7.00025 5.64822C6.97392 5.64822 6.94759 5.64417 6.92127 5.64417C6.24894 5.64417 5.65154 5.95603 5.2607 6.44205L3.49078 8.73444C3.40573 8.82759 3.32877 8.92682 3.25992 9.03213L3.24979 9.0463C3.24979 9.0463 3.24979 9.0463 3.25182 9.0463C3.04729 9.37437 2.92578 9.75913 2.92578 10.1743C2.92578 11.3508 3.8796 12.3047 5.05617 12.3047C5.30728 12.3047 5.54624 12.2581 5.77102 12.1791V12.1811C5.77102 12.1811 6.28134 12.0009 7.00025 12.013C7.71915 12.0009 8.22947 12.1811 8.22947 12.1811C8.22947 12.1811 8.22947 12.1811 8.22947 12.1791C8.45223 12.2581 8.69322 12.3047 8.94433 12.3047C10.1209 12.3047 11.0747 11.3508 11.0747 10.1743C11.0747 9.75913 10.9532 9.37234 10.7487 9.0463Z",fill:"currentColor",stroke:"currentColor"}),r.jsx("path",{d:"M5.66078 5.15935C6.4565 4.94002 6.86956 3.92049 6.58336 2.88218C6.29716 1.84386 5.4201 1.17993 4.62438 1.39926C3.82865 1.61859 3.4156 2.63811 3.7018 3.67643C3.98799 4.71475 4.86506 5.37867 5.66078 5.15935Z",fill:"currentColor",stroke:"currentColor"}),r.jsx("path",{d:"M3.24444 7.64064C3.95925 7.22795 4.10217 6.13725 3.56365 5.2045C3.02513 4.27176 2.0091 3.85018 1.29428 4.26288C0.579471 4.67557 0.436557 5.76627 0.975077 6.69902C1.5136 7.63176 2.52963 8.05334 3.24444 7.64064Z",fill:"currentColor",stroke:"currentColor"}),r.jsx("path",{d:"M10.2997 3.67428C10.5859 2.63596 10.1728 1.61644 9.37709 1.39711C8.58137 1.17778 7.7043 1.84171 7.41811 2.88003C7.13191 3.91835 7.54496 4.93787 8.34068 5.1572C9.13641 5.37653 10.0135 4.7126 10.2997 3.67428Z",fill:"currentColor",stroke:"currentColor"}),r.jsx("path",{d:"M13.0248 6.69747C13.5633 5.76473 13.4204 4.67403 12.7056 4.26134C11.9908 3.84864 10.9748 4.27022 10.4363 5.20296C9.89774 6.13571 10.0407 7.2264 10.7555 7.6391C11.4703 8.0518 12.4863 7.63022 13.0248 6.69747Z",fill:"currentColor",stroke:"currentColor"})]}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_9258_9310",children:r.jsx("rect",{width:"14",height:"14",fill:"white"})})})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("react/jsx-runtime");module.exports=function(e){var s=e.testId,
|
|
1
|
+
"use strict";var t=require("react/jsx-runtime");module.exports=function(e){var s=e.testId,r=e.className,e=e.solid;return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","data-testid":s,className:r,children:e?t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:t.jsx("path",{d:"M6.3496 1.69167L11.1471 4.95493C11.1753 4.97414 11.2018 4.99514 11.2264 5.0177C11.8469 5.48124 12.2 6.22679 12.2 7.00706C12.2 7.82411 11.8128 8.60309 11.1369 9.06006L6.33427 12.3177C5.96687 12.564 5.53886 12.7 5.10005 12.7C4.71017 12.7 4.32244 12.5901 3.97341 12.3861L3.96664 12.3821C3.22634 11.9381 2.80005 11.138 2.80005 10.2629V3.74208C2.80005 2.87815 3.22472 2.06797 3.96667 1.62297C4.70867 1.17794 5.61812 1.18551 6.3496 1.69167Z",fill:"#212121",stroke:"currentColor"})}):t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:t.jsx("path",{d:"M10.7533 5.5337L5.95333 2.26872C5.45556 1.92312 4.84222 1.91403 4.32667 2.22325C3.81111 2.53246 3.5 3.10543 3.5 3.74205V10.2629C3.5 10.9086 3.81111 11.4725 4.32667 11.7817C4.57556 11.9272 4.84222 12 5.1 12C5.39333 12 5.68667 11.9091 5.94444 11.7363L10.7444 8.48037C11.2156 8.16206 11.5 7.60728 11.5 7.00703C11.5 6.40679 11.2156 5.85201 10.7444 5.5337H10.7533Z",stroke:"currentColor",strokeWidth:"1.4",strokeMiterlimit:"10",strokeLinejoin:"round"})})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");module.exports=function(t){var
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");module.exports=function(t){var r=t.testId,t=t.className;return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","data-testid":r,className:t,children:e.jsx("path",{d:"M5.5 11L8.5 3",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");module.exports=function(
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");module.exports=function(r){var t=r.testId,r=r.className;return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","data-testid":t,className:r,children:[e.jsx("path",{d:"M4.5 3V11",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M9.5 3V11",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]})};
|
|
@@ -4,6 +4,6 @@ export { default as MessageBox } from './MessageBox';
|
|
|
4
4
|
export { default as PlainTooltip } from './PlainTooltip';
|
|
5
5
|
export { default as RichTooltip } from './RichTooltip';
|
|
6
6
|
export { default as SnackBar } from './SnackBar';
|
|
7
|
-
export type { SnackBarProps } from './SnackBar';
|
|
7
|
+
export type { MessageType, SnackBarProps, SnackBarIconProps } from './SnackBar';
|
|
8
8
|
export { default as GlobalLoadingIndicator } from './GlobalLoadingIndicator';
|
|
9
9
|
export { default as MessageBar } from './MessageBar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("react/jsx-runtime"),e=require("tailwind-merge"),
|
|
1
|
+
"use strict";var r=require("react/jsx-runtime"),e=require("tailwind-merge"),t="text-w-white group-hover:text-w-white",o="text-w-gray-200 group-hover:text-w-gray-200",s="stroke-dasharray-[16] stroke-dashoffset-[16] animate-checkbox-check",a=function(a){var i=a.checked,d=a.isError,a=a.disabled;return r.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.twMerge("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",i&&t,d&&a&&o,!i&&"text-transparent",a&&(!d&&i?t:"text-transparent")),style:{strokeDasharray:i?"16":"0",strokeDashoffset:i?"16":"0"},children:r.jsx("path",{d:"M1 3.8L4 7L9 1",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",className:i?s:""})})},i=function(a){var i=a.checked,d=a.isError,a=a.disabled;return r.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.twMerge("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",i&&t,d&&a&&o,!i&&"text-w-gray-200 group-hover:text-w-primary",d&&!i&&"text-w-red-500 group-hover:text-w-red-500",a&&(!d&&i?t:o)),style:{strokeDasharray:i?"16":"0",strokeDashoffset:i?"16":"0"},children:r.jsx("path",{d:"M1 3.8L4 7L9 1",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",className:i?s:""})})},d=function(t){var o=t.className,s=t.checked,a=t.disabled,t=t.isError,i="text-w-gray-100";return r.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.twMerge(t?a?i:"text-w-red-500":a?s?"text-primary-100":i:s?"text-primary":"text-w-gray-200",o),"data-testid":"design-system--sub-checkbox",children:r.jsx("path",{d:"M4 8.76667L7.75004 12.5L14.0001 5.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})};exports.CheckboxButton=function(t){var o=t.type,s=t.disabled,n=t.checked,n=void 0!==n&&n,c=t.isError,l=t.isFocused,t=t.className,w="circle"===o?"rounded-full":"rounded";return"sub"===o?r.jsx(d,{className:t,checked:n,disabled:s,isError:c}):r.jsxs("div",{className:e.twMerge("group relative m-px box-border size-4 cursor-pointer border",w,s?n?c?"bg-w-gray-50 border-w-gray-200 cursor-not-allowed":"bg-primary-100 border-primary-100 cursor-not-allowed":"border-w-gray-200 bg-w-gray-50 cursor-not-allowed":l&&!c?n?"bg-primary-500 border-primary-500":"border-primary-500 bg-w-white":c?n?"border-w-red-500 bg-w-red-500":"border-w-red-500 bg-w-white":n?"bg-primary-500 border-primary-500":"group-hover:border-primary-500 border-w-gray-200 bg-white",t),role:"checkbox-button",children:["box"===o&&r.jsx(a,{checked:n,isError:c,disabled:s}),"circle"===o&&r.jsx(i,{checked:n,isError:c,disabled:s})]})};
|
|
@@ -141,10 +141,19 @@ module.exports = {
|
|
|
141
141
|
opacity: 0
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
|
+
stroke: {
|
|
145
|
+
'100%': {
|
|
146
|
+
'stroke-dashoffset': '0'
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
'checkbox-check': 'stroke 0.3s cubic-bezier(0.65,0,0.45,1) forwards',
|
|
144
150
|
},
|
|
145
151
|
letterSpacing: {
|
|
146
152
|
'default': '0.48px',
|
|
147
153
|
},
|
|
154
|
+
animation: {
|
|
155
|
+
'checkbox-check': 'stroke 0.3s cubic-bezier(0.65,0,0.45,1) forwards',
|
|
156
|
+
},
|
|
148
157
|
},
|
|
149
158
|
},
|
|
150
159
|
plugins: [
|