@zimyo/ui 1.9.2 → 1.10.1
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/chunks/Calender-0bb649b1.esm.js +1 -0
- package/dist/chunks/Heading-b91e2c5f.esm.js +1 -0
- package/dist/chunks/Muted-bfc4985b.esm.js +1 -0
- package/dist/chunks/Text-f18219bd.esm.js +1 -0
- package/dist/chunks/assertThisInitialized-406be690.esm.js +1 -0
- package/dist/chunks/index-5b35e7d9.esm.js +1 -0
- package/dist/chunks/index-c6541658.esm.js +1 -0
- package/dist/chunks/lucide-2a18f5d4.esm.js +26 -0
- package/dist/chunks/tslib.es6-49e5b83c.esm.js +1 -0
- package/dist/chunks/typeof-cc63ab7d.esm.js +1 -0
- package/dist/{Accordion → components/Accordion}/index.d.ts +10 -10
- package/dist/components/Accordion/index.esm.js +1 -0
- package/dist/{AppList → components/AppList}/index.d.ts +2 -2
- package/dist/components/AppList/index.esm.js +1 -0
- package/dist/{Badge → components/Badge}/index.d.ts +4 -4
- package/dist/components/Badge/index.esm.js +1 -0
- package/dist/{BulkActionsBar → components/BulkActionsBar}/index.d.ts +3 -3
- package/dist/components/BulkActionsBar/index.esm.js +1 -0
- package/dist/{Button → components/Button}/index.d.ts +2 -2
- package/dist/components/Button/index.esm.js +1 -0
- package/dist/components/Card/index.esm.js +1 -0
- package/dist/components/Checkbox/index.esm.js +1 -0
- package/dist/{CheckboxGroup → components/CheckboxGroup}/index.d.ts +1 -9
- package/dist/components/CheckboxGroup/index.esm.js +1 -0
- package/dist/components/DatePicker/index.esm.js +1 -0
- package/dist/components/DateRangePicker/index.esm.js +1 -0
- package/dist/{Form → components/Form}/index.d.ts +7 -5
- package/dist/components/Form/index.esm.js +1 -0
- package/dist/{GlobalMenuSearch → components/GlobalMenuSearch}/index.d.ts +2 -2
- package/dist/components/GlobalMenuSearch/index.esm.js +1 -0
- package/dist/components/Input/index.esm.js +1 -0
- package/dist/components/Modal/index.esm.js +1 -0
- package/dist/components/Notice/index.esm.js +1 -0
- package/dist/{Popover → components/Popover}/index.d.ts +2 -2
- package/dist/components/Popover/index.esm.js +1 -0
- package/dist/{PopupConfirm → components/PopupConfirm}/index.d.ts +6 -6
- package/dist/components/PopupConfirm/index.esm.js +1 -0
- package/dist/{Radio → components/Radio}/index.d.ts +3 -3
- package/dist/components/Radio/index.esm.js +1 -0
- package/dist/{RadioGroup → components/RadioGroup}/index.d.ts +2 -2
- package/dist/components/RadioGroup/index.esm.js +1 -0
- package/dist/components/Select/index.esm.js +1 -0
- package/dist/{Switch → components/Switch}/index.d.ts +3 -3
- package/dist/components/Switch/index.esm.js +1 -0
- package/dist/{Table → components/Table}/index.d.ts +5 -5
- package/dist/components/Table/index.esm.js +1 -0
- package/dist/{Tabs → components/Tabs}/index.d.ts +2 -2
- package/dist/components/TimePicker/index.d.ts +44 -0
- package/dist/components/TimePicker/index.esm.js +1 -0
- package/dist/components/Typography/index.esm.js +1 -0
- package/dist/index.d.ts +55 -13
- package/dist/index.esm.js +1 -27
- package/dist/theme/index.esm.js +1 -1
- package/package.json +48 -44
- package/dist/Accordion/index.esm.js +0 -27
- package/dist/AppList/index.esm.js +0 -26
- package/dist/Badge/index.esm.js +0 -1
- package/dist/BulkActionsBar/index.esm.js +0 -26
- package/dist/Button/index.esm.js +0 -1
- package/dist/Card/index.esm.js +0 -1
- package/dist/Checkbox/index.esm.js +0 -27
- package/dist/CheckboxGroup/index.esm.js +0 -26
- package/dist/DatePicker/index.esm.js +0 -26
- package/dist/DateRangePicker/index.esm.js +0 -26
- package/dist/Form/index.esm.js +0 -26
- package/dist/GlobalMenuSearch/index.esm.js +0 -27
- package/dist/Input/index.esm.js +0 -27
- package/dist/Modal/index.esm.js +0 -27
- package/dist/Notice/index.esm.js +0 -26
- package/dist/Popover/index.esm.js +0 -1
- package/dist/PopupConfirm/index.esm.js +0 -27
- package/dist/Radio/index.esm.js +0 -1
- package/dist/RadioGroup/index.esm.js +0 -1
- package/dist/Select/index.esm.js +0 -27
- package/dist/Switch/index.esm.js +0 -1
- package/dist/Table/index.esm.js +0 -27
- package/dist/Typography/index.esm.js +0 -1
- /package/dist/{Card → components/Card}/index.d.ts +0 -0
- /package/dist/{Checkbox → components/Checkbox}/index.d.ts +0 -0
- /package/dist/{DatePicker → components/DatePicker}/index.d.ts +0 -0
- /package/dist/{DateRangePicker → components/DateRangePicker}/index.d.ts +0 -0
- /package/dist/{Input → components/Input}/index.d.ts +0 -0
- /package/dist/{Modal → components/Modal}/index.d.ts +0 -0
- /package/dist/{Notice → components/Notice}/index.d.ts +0 -0
- /package/dist/{Select → components/Select}/index.d.ts +0 -0
- /package/dist/{Tabs → components/Tabs}/index.esm.js +0 -0
- /package/dist/{Typography → components/Typography}/index.d.ts +0 -0
package/dist/theme/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as n,jsxs as e}from"react/jsx-runtime";import{createTheme as f,ThemeProvider as t}from"@mui/material/styles";import{GlobalStyles as r,CssBaseline as o}from"@mui/material";var l={colors:{primary:{50:"#e3f2fd",100:"#bbdefb",500:"#2196f3",900:"#0d47a1"},secondary:{50:"#fce4ec",100:"#f8bbd9",500:"#e91e63",900:"#880e4f"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",500:"#9e9e9e",900:"#212121"}},spacing:{xs:"4px",sm:"8px",md:"16px",lg:"24px",xl:"32px"},radius:{xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px",full:"9999px"},typography:{fontFamily:"'Inter', system-ui, sans-serif",fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.25rem",xl:"1.5rem"}},size:{small:"10px",medium:"25px",large:"30px"}},i=function(n){void 0===n&&(n={});var e=n.primaryColor,t=void 0===e?l.colors.primary[500]:e,r=n.secondaryColor,o=void 0===r?l.colors.secondary[500]:r;return f({palette:{primary:{main:t},secondary:{main:o},divider:"#e5e5e5"},typography:{fontFamily:l.typography.fontFamily,fontSize:14,h1:{fontSize:"2.25rem",fontWeight:800,letterSpacing:"-0.02em",lineHeight:1.2},h2:{fontSize:"1.875rem",fontWeight:700,lineHeight:1.25},h3:{fontSize:"1.5rem",fontWeight:600,lineHeight:1.3},h4:{fontSize:"1.25rem",fontWeight:600,lineHeight:1.35},h5:{fontSize:"1.125rem",fontWeight:500,lineHeight:1.4},h6:{fontSize:"1rem",fontWeight:500,lineHeight:1.5},body1:{fontSize:"1rem",lineHeight:"1.625rem"},body2:{fontSize:"0.875rem",lineHeight:"1.5rem"},caption:{fontSize:"0.75rem",lineHeight:"1.25rem"},button:{fontSize:"0.875rem",lineHeight:"1.5rem",textTransform:"none"},subtitle1:{fontSize:"1.125rem",lineHeight:"1.5rem"}},spacing:8,shape:{borderRadius:5},radius:l.radius,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",fontWeight:"normal",letterSpacing:"0.5px",padding:"6px 12px"},sizeSmall:{padding:"4px 10px"},sizeLarge:{padding:"10px 24px"}},defaultProps:{disableElevation:!0}},MuiCard:{styleOverrides:{root:{borderRadius:"12px",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)"}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:"8px"}}}}}})},a=i();function U(n,e){void 0===e&&(e={});var f=e.insertAt;if(n&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===f&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n))}}U("/* inter-cyrillic-ext-300-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 300;\n src: url(./files/inter-cyrillic-ext-300-normal.woff2) format('woff2'), url(./files/inter-cyrillic-ext-300-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* inter-cyrillic-300-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 300;\n src: url(./files/inter-cyrillic-300-normal.woff2) format('woff2'), url(./files/inter-cyrillic-300-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* inter-greek-ext-300-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 300;\n src: url(./files/inter-greek-ext-300-normal.woff2) format('woff2'), url(./files/inter-greek-ext-300-normal.woff) format('woff');\n unicode-range: U+1F00-1FFF;\n}\n\n/* inter-greek-300-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 300;\n src: url(./files/inter-greek-300-normal.woff2) format('woff2'), url(./files/inter-greek-300-normal.woff) format('woff');\n unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;\n}\n\n/* inter-vietnamese-300-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 300;\n src: url(./files/inter-vietnamese-300-normal.woff2) format('woff2'), url(./files/inter-vietnamese-300-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* inter-latin-ext-300-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 300;\n src: url(./files/inter-latin-ext-300-normal.woff2) format('woff2'), url(./files/inter-latin-ext-300-normal.woff) format('woff');\n unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* inter-latin-300-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 300;\n src: url(./files/inter-latin-300-normal.woff2) format('woff2'), url(./files/inter-latin-300-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}");U("/* inter-cyrillic-ext-400-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/inter-cyrillic-ext-400-normal.woff2) format('woff2'), url(./files/inter-cyrillic-ext-400-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* inter-cyrillic-400-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/inter-cyrillic-400-normal.woff2) format('woff2'), url(./files/inter-cyrillic-400-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* inter-greek-ext-400-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/inter-greek-ext-400-normal.woff2) format('woff2'), url(./files/inter-greek-ext-400-normal.woff) format('woff');\n unicode-range: U+1F00-1FFF;\n}\n\n/* inter-greek-400-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/inter-greek-400-normal.woff2) format('woff2'), url(./files/inter-greek-400-normal.woff) format('woff');\n unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;\n}\n\n/* inter-vietnamese-400-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/inter-vietnamese-400-normal.woff2) format('woff2'), url(./files/inter-vietnamese-400-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* inter-latin-ext-400-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/inter-latin-ext-400-normal.woff2) format('woff2'), url(./files/inter-latin-ext-400-normal.woff) format('woff');\n unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* inter-latin-400-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/inter-latin-400-normal.woff2) format('woff2'), url(./files/inter-latin-400-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}");U("/* inter-cyrillic-ext-500-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 500;\n src: url(./files/inter-cyrillic-ext-500-normal.woff2) format('woff2'), url(./files/inter-cyrillic-ext-500-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* inter-cyrillic-500-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 500;\n src: url(./files/inter-cyrillic-500-normal.woff2) format('woff2'), url(./files/inter-cyrillic-500-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* inter-greek-ext-500-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 500;\n src: url(./files/inter-greek-ext-500-normal.woff2) format('woff2'), url(./files/inter-greek-ext-500-normal.woff) format('woff');\n unicode-range: U+1F00-1FFF;\n}\n\n/* inter-greek-500-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 500;\n src: url(./files/inter-greek-500-normal.woff2) format('woff2'), url(./files/inter-greek-500-normal.woff) format('woff');\n unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;\n}\n\n/* inter-vietnamese-500-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 500;\n src: url(./files/inter-vietnamese-500-normal.woff2) format('woff2'), url(./files/inter-vietnamese-500-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* inter-latin-ext-500-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 500;\n src: url(./files/inter-latin-ext-500-normal.woff2) format('woff2'), url(./files/inter-latin-ext-500-normal.woff) format('woff');\n unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* inter-latin-500-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 500;\n src: url(./files/inter-latin-500-normal.woff2) format('woff2'), url(./files/inter-latin-500-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}");U("/* inter-cyrillic-ext-600-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 600;\n src: url(./files/inter-cyrillic-ext-600-normal.woff2) format('woff2'), url(./files/inter-cyrillic-ext-600-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* inter-cyrillic-600-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 600;\n src: url(./files/inter-cyrillic-600-normal.woff2) format('woff2'), url(./files/inter-cyrillic-600-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* inter-greek-ext-600-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 600;\n src: url(./files/inter-greek-ext-600-normal.woff2) format('woff2'), url(./files/inter-greek-ext-600-normal.woff) format('woff');\n unicode-range: U+1F00-1FFF;\n}\n\n/* inter-greek-600-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 600;\n src: url(./files/inter-greek-600-normal.woff2) format('woff2'), url(./files/inter-greek-600-normal.woff) format('woff');\n unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;\n}\n\n/* inter-vietnamese-600-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 600;\n src: url(./files/inter-vietnamese-600-normal.woff2) format('woff2'), url(./files/inter-vietnamese-600-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* inter-latin-ext-600-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 600;\n src: url(./files/inter-latin-ext-600-normal.woff2) format('woff2'), url(./files/inter-latin-ext-600-normal.woff) format('woff');\n unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* inter-latin-600-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 600;\n src: url(./files/inter-latin-600-normal.woff2) format('woff2'), url(./files/inter-latin-600-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}");U("/* inter-cyrillic-ext-700-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 700;\n src: url(./files/inter-cyrillic-ext-700-normal.woff2) format('woff2'), url(./files/inter-cyrillic-ext-700-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* inter-cyrillic-700-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 700;\n src: url(./files/inter-cyrillic-700-normal.woff2) format('woff2'), url(./files/inter-cyrillic-700-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* inter-greek-ext-700-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 700;\n src: url(./files/inter-greek-ext-700-normal.woff2) format('woff2'), url(./files/inter-greek-ext-700-normal.woff) format('woff');\n unicode-range: U+1F00-1FFF;\n}\n\n/* inter-greek-700-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 700;\n src: url(./files/inter-greek-700-normal.woff2) format('woff2'), url(./files/inter-greek-700-normal.woff) format('woff');\n unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;\n}\n\n/* inter-vietnamese-700-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 700;\n src: url(./files/inter-vietnamese-700-normal.woff2) format('woff2'), url(./files/inter-vietnamese-700-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* inter-latin-ext-700-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 700;\n src: url(./files/inter-latin-ext-700-normal.woff2) format('woff2'), url(./files/inter-latin-ext-700-normal.woff) format('woff');\n unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* inter-latin-700-normal */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-display: swap;\n font-weight: 700;\n src: url(./files/inter-latin-700-normal.woff2) format('woff2'), url(./files/inter-latin-700-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}");var m=function(){return n(r,{styles:{body:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},html:{fontFamily:"'Inter', system-ui, sans-serif"}}})},s=function(f){var r=f.children,l=f.primaryColor,a=f.secondaryColor,U=f.enableCssBaseline,s=void 0===U||U,w={};l&&(w.primaryColor=l),a&&(w.secondaryColor=a);var c=i(w);return e(t,{theme:c,children:[s&&n(o,{}),n(m,{}),r]})};export{s as UILibraryThemeProvider,i as createCustomTheme,l as designTokens,a as theme};
|
|
1
|
+
export{U as UILibraryThemeProvider,c as createCustomTheme,d as designTokens,t as theme}from"../chunks/index-5b35e7d9.esm.js";import"react/jsx-runtime";import"@mui/material/styles";import"@mui/material";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimyo/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Zimyo UI library built on MUI Material",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -18,88 +18,92 @@
|
|
|
18
18
|
"types": "./dist/index.d.ts"
|
|
19
19
|
},
|
|
20
20
|
"./Button": {
|
|
21
|
-
"import": "./dist/Button/index.esm.js",
|
|
22
|
-
"types": "./dist/Button/index.d.ts"
|
|
21
|
+
"import": "./dist/components/Button/index.esm.js",
|
|
22
|
+
"types": "./dist/components/Button/index.d.ts"
|
|
23
23
|
},
|
|
24
24
|
"./Popover": {
|
|
25
|
-
"import": "./dist/Popover/index.esm.js",
|
|
26
|
-
"types": "./dist/Popover/index.d.ts"
|
|
25
|
+
"import": "./dist/components/Popover/index.esm.js",
|
|
26
|
+
"types": "./dist/components/Popover/index.d.ts"
|
|
27
27
|
},
|
|
28
28
|
"./Typography": {
|
|
29
|
-
"import": "./dist/Typography/index.esm.js",
|
|
30
|
-
"types": "./dist/Typography/index.d.ts"
|
|
29
|
+
"import": "./dist/components/Typography/index.esm.js",
|
|
30
|
+
"types": "./dist/components/Typography/index.d.ts"
|
|
31
31
|
},
|
|
32
32
|
"./Card": {
|
|
33
|
-
"import": "./dist/Card/index.esm.js",
|
|
34
|
-
"types": "./dist/Card/index.d.ts"
|
|
33
|
+
"import": "./dist/components/Card/index.esm.js",
|
|
34
|
+
"types": "./dist/components/Card/index.d.ts"
|
|
35
35
|
},
|
|
36
36
|
"./Accordion": {
|
|
37
|
-
"import": "./dist/Accordion/index.esm.js",
|
|
38
|
-
"types": "./dist/Accordion/index.d.ts"
|
|
37
|
+
"import": "./dist/components/Accordion/index.esm.js",
|
|
38
|
+
"types": "./dist/components/Accordion/index.d.ts"
|
|
39
39
|
},
|
|
40
40
|
"./Select": {
|
|
41
|
-
"import": "./dist/Select/index.esm.js",
|
|
42
|
-
"types": "./dist/Select/index.d.ts"
|
|
41
|
+
"import": "./dist/components/Select/index.esm.js",
|
|
42
|
+
"types": "./dist/components/Select/index.d.ts"
|
|
43
43
|
},
|
|
44
44
|
"./Switch": {
|
|
45
|
-
"import": "./dist/Switch/index.esm.js",
|
|
46
|
-
"types": "./dist/Switch/index.d.ts"
|
|
45
|
+
"import": "./dist/components/Switch/index.esm.js",
|
|
46
|
+
"types": "./dist/components/Switch/index.d.ts"
|
|
47
47
|
},
|
|
48
48
|
"./Modal": {
|
|
49
|
-
"import": "./dist/Modal/index.esm.js",
|
|
50
|
-
"types": "./dist/Modal/index.d.ts"
|
|
49
|
+
"import": "./dist/components/Modal/index.esm.js",
|
|
50
|
+
"types": "./dist/components/Modal/index.d.ts"
|
|
51
51
|
},
|
|
52
52
|
"./Badge": {
|
|
53
|
-
"import": "./dist/Badge/index.esm.js",
|
|
54
|
-
"types": "./dist/Badge/index.d.ts"
|
|
53
|
+
"import": "./dist/components/Badge/index.esm.js",
|
|
54
|
+
"types": "./dist/components/Badge/index.d.ts"
|
|
55
55
|
},
|
|
56
56
|
"./Input": {
|
|
57
|
-
"import": "./dist/Input/index.esm.js",
|
|
58
|
-
"types": "./dist/Input/index.d.ts"
|
|
57
|
+
"import": "./dist/components/Input/index.esm.js",
|
|
58
|
+
"types": "./dist/components/Input/index.d.ts"
|
|
59
59
|
},
|
|
60
60
|
"./Notice": {
|
|
61
|
-
"import": "./dist/Notice/index.esm.js",
|
|
62
|
-
"types": "./dist/Notice/index.d.ts"
|
|
61
|
+
"import": "./dist/components/Notice/index.esm.js",
|
|
62
|
+
"types": "./dist/components/Notice/index.d.ts"
|
|
63
63
|
},
|
|
64
64
|
"./DatePicker": {
|
|
65
|
-
"import": "./dist/DatePicker/index.esm.js",
|
|
66
|
-
"types": "./dist/DatePicker/index.d.ts"
|
|
65
|
+
"import": "./dist/components/DatePicker/index.esm.js",
|
|
66
|
+
"types": "./dist/components/DatePicker/index.d.ts"
|
|
67
67
|
},
|
|
68
68
|
"./DateRangePicker": {
|
|
69
|
-
"import": "./dist/DateRangePicker/index.esm.js",
|
|
70
|
-
"types": "./dist/DateRangePicker/index.d.ts"
|
|
69
|
+
"import": "./dist/components/DateRangePicker/index.esm.js",
|
|
70
|
+
"types": "./dist/components/DateRangePicker/index.d.ts"
|
|
71
71
|
},
|
|
72
72
|
"./Form": {
|
|
73
|
-
"import": "./dist/Form/index.esm.js",
|
|
74
|
-
"types": "./dist/Form/index.d.ts"
|
|
73
|
+
"import": "./dist/components/Form/index.esm.js",
|
|
74
|
+
"types": "./dist/components/Form/index.d.ts"
|
|
75
75
|
},
|
|
76
76
|
"./Checkbox": {
|
|
77
|
-
"import": "./dist/Checkbox/index.esm.js",
|
|
78
|
-
"types": "./dist/Checkbox/index.d.ts"
|
|
77
|
+
"import": "./dist/components/Checkbox/index.esm.js",
|
|
78
|
+
"types": "./dist/components/Checkbox/index.d.ts"
|
|
79
79
|
},
|
|
80
80
|
"./CheckboxGroup": {
|
|
81
|
-
"import": "./dist/CheckboxGroup/index.esm.js",
|
|
82
|
-
"types": "./dist/CheckboxGroup/index.d.ts"
|
|
81
|
+
"import": "./dist/components/CheckboxGroup/index.esm.js",
|
|
82
|
+
"types": "./dist/components/CheckboxGroup/index.d.ts"
|
|
83
83
|
},
|
|
84
84
|
"./PopupConfirm": {
|
|
85
|
-
"import": "./dist/PopupConfirm/index.esm.js",
|
|
86
|
-
"types": "./dist/PopupConfirm/index.d.ts"
|
|
85
|
+
"import": "./dist/components/PopupConfirm/index.esm.js",
|
|
86
|
+
"types": "./dist/components/PopupConfirm/index.d.ts"
|
|
87
87
|
},
|
|
88
88
|
"./AppList": {
|
|
89
|
-
"import": "./dist/AppList/index.esm.js",
|
|
90
|
-
"types": "./dist/AppList/index.d.ts"
|
|
89
|
+
"import": "./dist/components/AppList/index.esm.js",
|
|
90
|
+
"types": "./dist/components/AppList/index.d.ts"
|
|
91
91
|
},
|
|
92
92
|
"./GlobalMenuSearch": {
|
|
93
|
-
"import": "./dist/GlobalMenuSearch/index.esm.js",
|
|
94
|
-
"types": "./dist/GlobalMenuSearch/index.d.ts"
|
|
93
|
+
"import": "./dist/components/GlobalMenuSearch/index.esm.js",
|
|
94
|
+
"types": "./dist/components/GlobalMenuSearch/index.d.ts"
|
|
95
95
|
},
|
|
96
96
|
"./BulkActionsBar": {
|
|
97
|
-
"import": "./dist/BulkActionsBar/index.esm.js",
|
|
98
|
-
"types": "./dist/BulkActionsBar/index.d.ts"
|
|
97
|
+
"import": "./dist/components/BulkActionsBar/index.esm.js",
|
|
98
|
+
"types": "./dist/components/BulkActionsBar/index.d.ts"
|
|
99
99
|
},
|
|
100
100
|
"./Table": {
|
|
101
|
-
"import": "./dist/Table/index.esm.js",
|
|
102
|
-
"types": "./dist/Table/index.d.ts"
|
|
101
|
+
"import": "./dist/components/Table/index.esm.js",
|
|
102
|
+
"types": "./dist/components/Table/index.d.ts"
|
|
103
|
+
},
|
|
104
|
+
"./TimePicker": {
|
|
105
|
+
"import": "./dist/components/TimePicker/index.esm.js",
|
|
106
|
+
"types": "./dist/components/TimePicker/index.d.ts"
|
|
103
107
|
},
|
|
104
108
|
"./theme": {
|
|
105
109
|
"import": "./dist/theme/index.esm.js",
|
|
@@ -211,4 +215,4 @@
|
|
|
211
215
|
"component-library",
|
|
212
216
|
"design-system"
|
|
213
217
|
]
|
|
214
|
-
}
|
|
218
|
+
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import r,{forwardRef as o,createElement as t}from"react";import{useTheme as n,Accordion as a,AccordionSummary as i,AccordionDetails as l}from"@mui/material";var d=function(){return d=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},d.apply(this,arguments)};function s(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}function u(e,r,o){if(o||2===arguments.length)for(var t,n=0,a=r.length;n<a;n++)!t&&n in r||(t||(t=Array.prototype.slice.call(r,0,n)),t[n]=r[n]);return e.concat(t||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.525.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const c=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,o)=>o?o.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},p=(...e)=>e.filter((e,r,o)=>Boolean(e)&&""!==e.trim()&&o.indexOf(e)===r).join(" ").trim(),f=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
|
|
9
|
-
/**
|
|
10
|
-
* @license lucide-react v0.525.0 - ISC
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the ISC license.
|
|
13
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
var v={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
16
|
-
/**
|
|
17
|
-
* @license lucide-react v0.525.0 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const h=o(({color:e="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:l,...d},s)=>t("svg",{ref:s,...v,width:r,height:r,stroke:e,strokeWidth:n?24*Number(o)/Number(r):o,className:p("lucide",a),...!i&&!f(d)&&{"aria-hidden":"true"},...d},[...l.map(([e,r])=>t(e,r)),...Array.isArray(i)?i:[i]])),m=((e,r)=>{const n=o(({className:o,...n},a)=>{return t(h,{ref:a,iconNode:r,className:p(`lucide-${i=c(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...n});var i});return n.displayName=c(e),n})("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);
|
|
22
|
-
/**
|
|
23
|
-
* @license lucide-react v0.525.0 - ISC
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the ISC license.
|
|
26
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/var g=r.createContext({}),y=r.forwardRef(function(o,t){var a=o.type,i=void 0===a?"single":a,l=o.collapsible,u=void 0!==l&&l,c=o.value,p=o.defaultValue,f=o.onValueChange,v=o.children;o.sx;var h=s(o,["type","collapsible","value","defaultValue","onValueChange","children","sx"]),m=n(),y=r.useState(function(){return void 0!==c?c:void 0!==p?p:"multiple"===i?[]:""}),x=y[0],b=y[1],w=void 0!==c?c:x,C=r.useCallback(function(e){void 0===c&&b(e),null==f||f(e)},[c,f]),R=r.useMemo(function(){return{type:i,collapsible:u,value:w,defaultValue:p,onValueChange:C}},[i,u,w,p,C]);return e(g.Provider,{value:R,children:e("div",d({ref:t,style:{display:"flex",flexDirection:"column",gap:m.spacing(1)}},h,{children:v}))})}),x=r.forwardRef(function(o,t){var i,l=o.value,c=o.children,p=o.sx,f=void 0===p?{}:p,v=s(o,["value","children","sx"]),h=n(),m=r.useContext(g),y=r.useMemo(function(){return"multiple"===m.type?Array.isArray(m.value)&&m.value.includes(l):m.value===l},[m.value,m.type,l]),x=r.useCallback(function(){if(m.onValueChange)if("multiple"===m.type){var e=Array.isArray(m.value)?m.value:[],r=y?e.filter(function(e){return e!==l}):u(u([],e,!0),[l],!1);m.onValueChange(r)}else{r=y&&m.collapsible?"":l;m.onValueChange(r)}},[m,l,y]);return e(a,d({ref:t,expanded:y,onChange:x,variant:"outlined",sx:d({borderRadius:(null===(i=h.radius)||void 0===i?void 0:i.sm)||h.shape.borderRadius,"&:before":{display:"none"},"&.Mui-expanded":{margin:0},border:"1px solid ".concat(h.palette.divider)},f)},v,{children:c}))}),b=r.forwardRef(function(r,o){var t,a=r.children,l=r.sx,u=void 0===l?{}:l,c=r.expandIcon,p=s(r,["children","sx","expandIcon"]),f=n(),v=void 0!==c?c:e(m,{});return e(i,d({ref:o,expandIcon:v,sx:d({borderRadius:(null===(t=f.radius)||void 0===t?void 0:t.sm)||f.shape.borderRadius,minHeight:56,fontWeight:500,"&.Mui-expanded":{minHeight:56,borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"1px solid ".concat(f.palette.divider)},"& .MuiAccordionSummary-content":{margin:"12px 0","&.Mui-expanded":{margin:"12px 0"}},"& .MuiAccordionSummary-expandIconWrapper":{transition:f.transitions.create("transform",{duration:f.transitions.duration.shortest}),"&.Mui-expanded":{transform:"rotate(180deg)"}},"&:hover":{backgroundColor:f.palette.action.hover}},u)},p,{children:a}))}),w=r.forwardRef(function(r,o){var t,a,i=r.children,u=r.sx,c=void 0===u?{}:u,p=s(r,["children","sx"]),f=n();return e(l,d({ref:o,sx:d({padding:f.spacing(2),borderBottomLeftRadius:(null===(t=f.radius)||void 0===t?void 0:t.sm)||f.shape.borderRadius,borderBottomRightRadius:(null===(a=f.radius)||void 0===a?void 0:a.sm)||f.shape.borderRadius},c)},p,{children:i}))});export{y as Accordion,w as AccordionContent,x as AccordionItem,b as AccordionTrigger,y as default};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import{jsx as r,jsxs as o,Fragment as e}from"react/jsx-runtime";import{forwardRef as i,createElement as t,useState as n,useMemo as a}from"react";import c from"@mui/material/IconButton";import{Popover as l,Fade as d,ListItemButton as s}from"@mui/material";import p from"@mui/material/List";import m from"@mui/material/ListItemText";import u from"@mui/material/ListItemIcon";var h=function(){return h=Object.assign||function(r){for(var o,e=1,i=arguments.length;e<i;e++)for(var t in o=arguments[e])Object.prototype.hasOwnProperty.call(o,t)&&(r[t]=o[t]);return r},h.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var f=function(o){var e=o.open,i=o.onClose,t=o.anchorEl,n=o.children,a=o.width,c=o.maxWidth,s=void 0===c?"100%":c,p=o.minWidth,m=o.padding,u=void 0===m?2:m,f=o.border,v=void 0===f||f,y=o.anchorOrigin,b=void 0===y?{vertical:"bottom",horizontal:"left"}:y,g=o.transformOrigin,x=void 0===g?{vertical:"top",horizontal:"left"}:g,k=function(r,o){var e={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&o.indexOf(i)<0&&(e[i]=r[i]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(r);t<i.length;t++)o.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(r,i[t])&&(e[i[t]]=r[i[t]])}return e}(o,["open","onClose","anchorEl","children","width","maxWidth","minWidth","padding","border","anchorOrigin","transformOrigin"]);return r(l,h({open:e,onClose:i,anchorEl:t,anchorOrigin:b,transformOrigin:x,TransitionComponent:d,transitionDuration:180,slotProps:{paper:{sx:{boxShadow:"0px 4px 32px rgba(0,0,0,0.08), 0px 1.5px 6px rgba(0,0,0,0.06)",border:v?"1px solid #e5e7eb":"none",borderRadius:1,background:"#fff",width:a,minWidth:p,maxWidth:s,p:u,transition:"opacity 180ms cubic-bezier(0.4,0,0.2,1), transform 180ms cubic-bezier(0.4,0,0.2,1)",opacity:e?1:0,transform:e?"scale(1)":"scale(0.95)"}}}},k,{children:n}))};
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.525.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/const v=r=>{const o=(r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,e)=>e?e.toUpperCase():o.toLowerCase()))(r);return o.charAt(0).toUpperCase()+o.slice(1)},y=(...r)=>r.filter((r,o,e)=>Boolean(r)&&""!==r.trim()&&e.indexOf(r)===o).join(" ").trim(),b=r=>{for(const o in r)if(o.startsWith("aria-")||"role"===o||"title"===o)return!0};
|
|
8
|
-
/**
|
|
9
|
-
* @license lucide-react v0.525.0 - ISC
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
var g={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
15
|
-
/**
|
|
16
|
-
* @license lucide-react v0.525.0 - ISC
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the ISC license.
|
|
19
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/const x=i(({color:r="currentColor",size:o=24,strokeWidth:e=2,absoluteStrokeWidth:i,className:n="",children:a,iconNode:c,...l},d)=>t("svg",{ref:d,...g,width:o,height:o,stroke:r,strokeWidth:i?24*Number(e)/Number(o):e,className:y("lucide",n),...!a&&!b(l)&&{"aria-hidden":"true"},...l},[...c.map(([r,o])=>t(r,o)),...Array.isArray(a)?a:[a]])),k=((r,o)=>{const e=i(({className:e,...i},n)=>{return t(x,{ref:n,iconNode:o,className:y(`lucide-${a=v(r),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${r}`,e),...i});var a});return e.displayName=v(r),e})("grip",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"19",cy:"5",r:"1",key:"w8mnmm"}],["circle",{cx:"5",cy:"5",r:"1",key:"lttvr7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}],["circle",{cx:"19",cy:"19",r:"1",key:"shf9b7"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]);
|
|
21
|
-
/**
|
|
22
|
-
* @license lucide-react v0.525.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var w=function(i){var t=i.apps,l=void 0===t?[]:t,d=i.icon,v=void 0===d?k:d,y=i.urlKey,b=void 0===y?"url":y,g=i.nameKey,x=void 0===g?"name":g,w=i.appIconKey,O=void 0===w?"appIcon":w,C=i.iconProps,P=void 0===C?{}:C,W=i.popoverProps,j=void 0===W?{}:W,z=i.listProps,I=void 0===z?{}:z,N=i.listItemProps,E=void 0===N?{}:N,L=i.listItemTextProps,S=void 0===L?{}:L,A=i.width,B=void 0===A?240:A,T=i.padding,$=void 0===T?0:T,K=i.border,U=void 0===K||K,Z=i.target,_=void 0===Z?"_blank":Z,q=n(null),D=q[0],R=q[1],F=Boolean(D)?"simple-popover":void 0,G=a(function(){return null==l?void 0:l.filter(function(r){return r.display})},[l]);return o(e,{children:[r(c,h({"aria-describedby":F,onClick:function(r){R(r.currentTarget)}},P,{children:r(v,{})})),r(f,h({open:Boolean(D),onClose:function(){R(null)},anchorEl:D,width:B,padding:$,border:U,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},j,{children:r(p,h({disablePadding:!0},I,{children:G.map(function(e,i){return o(s,h({component:"div",sx:{":hover":{backgroundColor:e.backgroundColor}},onClick:function(){return window.open(e[b],_)}},E,{children:[e[O]?r(u,{sx:{minWidth:30,backgroundColor:e.backgroundColor},children:r("img",{width:22,height:22,src:e[O],alt:e.name})}):null,r(m,h({sx:{ml:1},primaryTypographyProps:{variant:"body2",fontWeight:500},primary:e[x]},S))]}),i)})}))}))]})};export{w as AppList,w as default};
|
package/dist/Badge/index.esm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import"react";import{Typography as r}from"@mui/material";function o(e){var r,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=o(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function t(){for(var e,r,t=0,n="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=o(e))&&(n&&(n+=" "),n+=r);return n}const n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=t,s=e=>{const r=c(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{const o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),l(o,r)||d(e)},getConflictingClassGroupIds:(e,r)=>{const n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},l=(e,r)=>{if(0===e.length)return r.classGroupId;const o=e[0],t=r.nextPart.get(o),n=t?l(e.slice(1),t):void 0;if(n)return n;if(0===r.validators.length)return;const a=e.join("-");return r.validators.find(({validator:e})=>e(a))?.classGroupId},i=/^\[(.+)\]$/,d=e=>{if(i.test(e)){const r=i.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},c=e=>{const{theme:r,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(const e in o)m(o[e],t,e,r);return t},m=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:u(r,e)).classGroupId=o)}if("function"==typeof e)return p(e)?void m(e(t),r,o,t):void r.validators.push({validator:e,classGroupId:o});Object.entries(e).forEach(([e,n])=>{m(n,u(r,e),o,t)})})},u=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},p=e=>e.isThemeGetter,b=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,t=new Map;const n=(n,a)=>{o.set(n,a),r++,r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},f=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=e=>{const r=[];let o,t=0,n=0,a=0;for(let s=0;s<e.length;s++){let l=e[s];if(0===t&&0===n){if(":"===l){r.push(e.slice(a,s)),a=s+1;continue}if("/"===l){o=s;continue}}"["===l?t++:"]"===l?t--:"("===l?n++:")"===l&&n--}const s=0===r.length?e:e.substring(a),l=g(s);return{modifiers:r,hasImportantModifier:l!==s,baseClassName:l,maybePostfixModifierPosition:o&&o>a?o-a:void 0}};if(r){const e=r+":",o=t;t=r=>r.startsWith(e)?o(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(o){const e=t;t=r=>o({className:r,parseClassName:e})}return t},g=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,h=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const o=[];let t=[];return e.forEach(e=>{"["===e[0]||r[e]?(o.push(...t.sort(),e),t=[]):t.push(e)}),o.push(...t.sort()),o}},x=/\s+/;function v(){let e,r,o=0,t="";for(;o<arguments.length;)(e=arguments[o++])&&(r=y(e))&&(t&&(t+=" "),t+=r);return t}const y=e=>{if("string"==typeof e)return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=y(e[t]))&&(o&&(o+=" "),o+=r);return o};function k(e,...r){let o,t,n,a=function(i){const d=r.reduce((e,r)=>r(e),e());return o=(e=>({cache:b(e.cacheSize),parseClassName:f(e),sortModifiers:h(e),...s(e)}))(d),t=o.cache.get,n=o.cache.set,a=l,l(i)};function l(e){const r=t(e);if(r)return r;const a=((e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:a}=r,s=[],l=e.trim().split(x);let i="";for(let e=l.length-1;e>=0;e-=1){const r=l[e],{isExternal:d,modifiers:c,hasImportantModifier:m,baseClassName:u,maybePostfixModifierPosition:p}=o(r);if(d){i=r+(i.length>0?" "+i:i);continue}let b=!!p,f=t(b?u.substring(0,p):u);if(!f){if(!b){i=r+(i.length>0?" "+i:i);continue}if(f=t(u),!f){i=r+(i.length>0?" "+i:i);continue}b=!1}const g=a(c).join(":"),h=m?g+"!":g,x=h+f;if(s.includes(x))continue;s.push(x);const v=n(f,b);for(let e=0;e<v.length;++e){const r=v[e];s.push(h+r)}i=r+(i.length>0?" "+i:i)}return i})(e,o);return n(e,a),a}return function(){return a(v.apply(null,arguments))}}const w=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},z=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j=/^\((?:(\w[\w-]*):)?(.+)\)$/i,N=/^\d+\/\d+$/,C=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,O=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,M=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>N.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),$=e=>!!e&&Number.isInteger(Number(e)),S=e=>e.endsWith("%")&&E(e.slice(0,-1)),W=e=>C.test(e),A=()=>!0,V=e=>P.test(e)&&!O.test(e),q=()=>!1,T=e=>M.test(e),_=e=>G.test(e),B=e=>!F(e)&&!R(e),D=e=>oe(e,se,q),F=e=>z.test(e),H=e=>oe(e,le,V),J=e=>oe(e,ie,E),K=e=>oe(e,ne,q),L=e=>oe(e,ae,_),Q=e=>oe(e,ce,T),R=e=>j.test(e),U=e=>te(e,le),X=e=>te(e,de),Y=e=>te(e,ne),Z=e=>te(e,se),ee=e=>te(e,ae),re=e=>te(e,ce,!0),oe=(e,r,o)=>{const t=z.exec(e);return!!t&&(t[1]?r(t[1]):o(t[2]))},te=(e,r,o=!1)=>{const t=j.exec(e);return!!t&&(t[1]?r(t[1]):o)},ne=e=>"position"===e||"percentage"===e,ae=e=>"image"===e||"url"===e,se=e=>"length"===e||"size"===e||"bg-size"===e,le=e=>"length"===e,ie=e=>"number"===e,de=e=>"family-name"===e,ce=e=>"shadow"===e,me=k(()=>{const e=w("color"),r=w("font"),o=w("text"),t=w("font-weight"),n=w("tracking"),a=w("leading"),s=w("breakpoint"),l=w("container"),i=w("spacing"),d=w("radius"),c=w("shadow"),m=w("inset-shadow"),u=w("text-shadow"),p=w("drop-shadow"),b=w("blur"),f=w("perspective"),g=w("aspect"),h=w("ease"),x=w("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",R,F],y=()=>[R,F,i],k=()=>[I,"full","auto",...y()],z=()=>[$,"none","subgrid",R,F],j=()=>["auto",{span:["full",$,R,F]},$,R,F],N=()=>[$,"auto",R,F],C=()=>["auto","min","max","fr",R,F],P=()=>["auto",...y()],O=()=>[I,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],M=()=>[e,R,F],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Y,K,{position:[R,F]}],V=()=>["auto","cover","contain",Z,D,{size:[R,F]}],q=()=>[S,U,H],T=()=>["","none","full",d,R,F],_=()=>["",E,U,H],oe=()=>[E,S,Y,K],te=()=>["","none",b,R,F],ne=()=>["none",E,R,F],ae=()=>["none",E,R,F],se=()=>[E,R,F],le=()=>[I,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[W],breakpoint:[W],color:[A],container:[W],"drop-shadow":[W],ease:["in","out","in-out"],font:[B],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[W],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[W],shadow:[W],spacing:["px",E],text:[W],"text-shadow":[W],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",I,F,R,g]}],container:["container"],columns:[{columns:[E,F,R,l]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[$,"auto",R,F]}],basis:[{basis:[I,"full","auto",l,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,I,"auto","initial","none",F]}],grow:[{grow:["",E,R,F]}],shrink:[{shrink:["",E,R,F]}],order:[{order:[$,"first","last","none",R,F]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[l,"screen",...O()]}],"min-w":[{"min-w":[l,"screen","none",...O()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",o,U,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,R,J]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",S,F]}],"font-family":[{font:[X,F,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,R,F]}],"line-clamp":[{"line-clamp":[E,"none",R,J]}],leading:[{leading:[a,...y()]}],"list-image":[{"list-image":["none",R,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",R,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",R,H]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[E,"auto",R,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",R,F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",R,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$,R,F],radial:["",R,F],conic:[$,R,F]},ee,L]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[E,R,F]}],"outline-w":[{outline:["",E,U,H]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",c,re,Q]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",m,re,Q]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[E,H]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",u,re,Q]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[E,R,F]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[R,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",R,F]}],filter:[{filter:["","none",R,F]}],blur:[{blur:te()}],brightness:[{brightness:[E,R,F]}],contrast:[{contrast:[E,R,F]}],"drop-shadow":[{"drop-shadow":["","none",p,re,Q]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",E,R,F]}],"hue-rotate":[{"hue-rotate":[E,R,F]}],invert:[{invert:["",E,R,F]}],saturate:[{saturate:[E,R,F]}],sepia:[{sepia:["",E,R,F]}],"backdrop-filter":[{"backdrop-filter":["","none",R,F]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[E,R,F]}],"backdrop-contrast":[{"backdrop-contrast":[E,R,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,R,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,R,F]}],"backdrop-invert":[{"backdrop-invert":["",E,R,F]}],"backdrop-opacity":[{"backdrop-opacity":[E,R,F]}],"backdrop-saturate":[{"backdrop-saturate":[E,R,F]}],"backdrop-sepia":[{"backdrop-sepia":["",E,R,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",R,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",R,F]}],ease:[{ease:["linear","initial",h,R,F]}],delay:[{delay:[E,R,F]}],animate:[{animate:["none",x,R,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,R,F]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[R,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R,F]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[E,U,H,J]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});var ue=function(){return ue=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},ue.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var pe,be,fe=function(o){var t=o.size,n=void 0===t?"md":t,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["size"]);return e(r,ue({variant:{sm:"body2",md:"body1",lg:"subtitle1"}[n],component:a.component||"p"},a))},ge=(pe="zui:inline-flex zui:items-center zui:rounded-full zui:font-medium zui:gap-2",be={variants:{variant:{contained:"",outlined:"zui:border zui:bg-transparent",text:"zui:bg-transparent zui:border-transparent"},size:{sm:"zui:text-xs zui:px-2 zui:py-0.5",md:"zui:text-sm zui:px-3 zui:py-1",lg:"zui:text-base zui:px-4 zui:py-1.5"},type:{success:"",warning:"",error:"",info:"",default:""}},defaultVariants:{variant:"contained",size:"md",type:"default"}},e=>{var r;if(null==(null==be?void 0:be.variants))return a(pe,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:o,defaultVariants:t}=be,s=Object.keys(o).map(r=>{const a=null==e?void 0:e[r],s=null==t?void 0:t[r];if(null===a)return null;const l=n(a)||n(s);return o[r][l]}),l=e&&Object.entries(e).reduce((e,r)=>{let[o,t]=r;return void 0===t||(e[o]=t),e},{}),i=null==be||null===(r=be.compoundVariants)||void 0===r?void 0:r.reduce((e,r)=>{let{class:o,className:n,...a}=r;return Object.entries(a).every(e=>{let[r,o]=e;return Array.isArray(o)?o.includes({...t,...l}[r]):{...t,...l}[r]===o})?[...e,o,n]:e},[]);return a(pe,s,i,null==e?void 0:e.class,null==e?void 0:e.className)}),he={success:{bg:"zui:bg-green-100",text:"zui:text-green-700",border:"zui:border-green-700"},warning:{bg:"zui:bg-yellow-100",text:"zui:text-yellow-600",border:"zui:border-yellow-600"},error:{bg:"zui:bg-red-100",text:"zui:text-red-700",border:"zui:border-red-700"},info:{bg:"zui:bg-blue-100",text:"zui:text-blue-700",border:"zui:border-blue-700"},default:{bg:"zui:bg-gray-100",text:"zui:text-gray-800",border:"zui:border-gray-800"}},xe=function(r){var o,n,a,s=r.label,l=r.icon,i=r.iconPosition,d=void 0===i?"start":i,c=r.dot,m=void 0!==c&&c,u=r.dotPosition,p=void 0===u?"start":u,b=r.variant,f=void 0===b?"contained":b,g=r.size,h=void 0===g?"md":g,x=r.type,v=void 0===x?"default":x,y=r.color,k=r.className,w=he[v],z={bg:null!==(o=null==y?void 0:y.bg)&&void 0!==o?o:w.bg,text:null!==(n=null==y?void 0:y.text)&&void 0!==n?n:w.text,border:null!==(a=null==y?void 0:y.border)&&void 0!==a?a:w.border},j=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return me(t(e))}(ge({variant:f,size:h,type:v}),"string"==typeof(null==y?void 0:y.bg)?"":"contained"===f?z.bg:"","string"==typeof(null==y?void 0:y.text)?"":z.text,"string"==typeof(null==y?void 0:y.border)?"":"outlined"===f?z.border:"",k),N={backgroundColor:"contained"===f?null==y?void 0:y.bg:void 0,color:null==y?void 0:y.text,borderColor:"outlined"===f?null==y?void 0:y.border:void 0},C=m&&e("span",{className:"zui:w-2 zui:h-2 zui:rounded-full zui:bg-current zui:inline-block"}),P=[];return m&&"start"===p&&P.push(C),l&&"start"===d&&P.push(l),P.push(e("span",{children:s},"label")),l&&"end"===d&&P.push(l),m&&"end"===p&&P.push(C),e(fe,{fontWeight:600,className:j,style:N,children:P})};export{xe as Badge,xe as default};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import{jsx as i,jsxs as r,Fragment as e}from"react/jsx-runtime";import o,{forwardRef as t,createElement as n,useState as a}from"react";import{Button as l,CircularProgress as s,Typography as d,Popover as c,Fade as u,ListItemButton as p,IconButton as m}from"@mui/material";import h from"@mui/material/List";import b from"@mui/material/ListItemText";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.525.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/const f=i=>{const r=(i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,e)=>e?e.toUpperCase():r.toLowerCase()))(i);return r.charAt(0).toUpperCase()+r.slice(1)},z=(...i)=>i.filter((i,r,e)=>Boolean(i)&&""!==i.trim()&&e.indexOf(i)===r).join(" ").trim(),v=i=>{for(const r in i)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
|
|
8
|
-
/**
|
|
9
|
-
* @license lucide-react v0.525.0 - ISC
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
var g={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
15
|
-
/**
|
|
16
|
-
* @license lucide-react v0.525.0 - ISC
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the ISC license.
|
|
19
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/const x=t(({color:i="currentColor",size:r=24,strokeWidth:e=2,absoluteStrokeWidth:o,className:t="",children:a,iconNode:l,...s},d)=>n("svg",{ref:d,...g,width:r,height:r,stroke:i,strokeWidth:o?24*Number(e)/Number(r):e,className:z("lucide",t),...!a&&!v(s)&&{"aria-hidden":"true"},...s},[...l.map(([i,r])=>n(i,r)),...Array.isArray(a)?a:[a]])),y=(i,r)=>{const e=t(({className:e,...o},t)=>{return n(x,{ref:t,iconNode:r,className:z(`lucide-${a=f(i),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${i}`,e),...o});var a});return e.displayName=f(i),e},w=y("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),O=y("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);
|
|
21
|
-
/**
|
|
22
|
-
* @license lucide-react v0.525.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var k=function(){return k=Object.assign||function(i){for(var r,e=1,o=arguments.length;e<o;e++)for(var t in r=arguments[e])Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=r[t]);return i},k.apply(this,arguments)};function C(i,r){var e={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&r.indexOf(o)<0&&(e[o]=i[o]);if(null!=i&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(o=Object.getOwnPropertySymbols(i);t<o.length;t++)r.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(i,o[t])&&(e[o[t]]=i[o[t]])}return e}"function"==typeof SuppressedError&&SuppressedError;var N=o.forwardRef(function(r,e){var o=r.children,t=r.loading,n=void 0!==t&&t,a=r.loadingText,d=r.loaderSize,c=void 0===d?18:d,u=r.loaderPosition,p=void 0===u?"start":u,m=r.variant,h=void 0===m?"contained":m,b=r.color,f=void 0===b?"primary":b,z=r.size,v=void 0===z?"medium":z,g=r.sx,x=void 0===g?{}:g,y=r.disabled,w=r.startIcon,O=r.endIcon,N=C(r,["children","loading","loadingText","loaderSize","loaderPosition","variant","color","size","sx","disabled","startIcon","endIcon"]),W=n&&"end"===p,j=n&&"center"===p;return i(l,k({ref:e,variant:h,color:f,disabled:y||n,size:v,startIcon:n&&"start"===p?i(s,{size:c,color:"inherit"}):w,endIcon:W?i(s,{size:c,color:"inherit"}):O,sx:k({position:"relative"},x)},N,{children:j?i(s,{size:c,color:"inherit"}):n&&a?a:o}))});N.displayName="Button";var W=function(r){var e=r.size,o=void 0===e?"md":e,t=C(r,["size"]);return i(d,k({variant:{sm:"body2",md:"body1",lg:"subtitle1"}[o],component:t.component||"p"},t))},j=function(r){var e=r.open,o=r.onClose,t=r.anchorEl,n=r.children,a=r.width,l=r.maxWidth,s=void 0===l?"100%":l,d=r.minWidth,p=r.padding,m=void 0===p?2:p,h=r.border,b=void 0===h||h,f=r.anchorOrigin,z=void 0===f?{vertical:"bottom",horizontal:"left"}:f,v=r.transformOrigin,g=void 0===v?{vertical:"top",horizontal:"left"}:v,x=C(r,["open","onClose","anchorEl","children","width","maxWidth","minWidth","padding","border","anchorOrigin","transformOrigin"]);return i(c,k({open:e,onClose:o,anchorEl:t,anchorOrigin:z,transformOrigin:g,TransitionComponent:u,transitionDuration:180,slotProps:{paper:{sx:{boxShadow:"0px 4px 32px rgba(0,0,0,0.08), 0px 1.5px 6px rgba(0,0,0,0.06)",border:b?"1px solid #e5e7eb":"none",borderRadius:1,background:"#fff",width:a,minWidth:d,maxWidth:s,p:m,transition:"opacity 180ms cubic-bezier(0.4,0,0.2,1), transform 180ms cubic-bezier(0.4,0,0.2,1)",opacity:e?1:0,transform:e?"scale(1)":"scale(0.95)"}}}},x,{children:n}))},P=function(o){var t=o.selectedRows,n=o.totalRows,l=o.bulkActions,s=o.clearSelection,d=o.maxVisibleActions,c=void 0===d?3:d,u=a(null),f=u[0],z=u[1],v=l.slice(0,c),g=l.slice(c),x=function(){z(null)},y=Boolean(f);return 0===t.length?null:r("div",{className:"zui:bg-blue-100 zui:border zui:border-blue-200 zui:shadow-sm zui:py-1 zui:px-2 zui:rounded-md zui:flex zui:justify-between zui:items-center zui:gap-2 zui:flex-wrap",children:[r(W,{size:"sm",fontWeight:500,className:"zui:text-blue-700 zui:mr-4",children:[t.length," of ",n," selected"]}),r("div",{className:"zui:flex zui:flex-row zui:gap-1.5",children:[v.map(function(r){return i(N,{className:"zui:h-8 zui:bg-white zui:text-blue-700 zui:text-xs zui:border-1 zui:border-gray-100",startIcon:r.icon,size:"small",variant:"text",disabled:r.disabled,onClick:function(){return r.onClick(t)},title:r.label,children:r.label},r.id)}),g.length>0&&r(e,{children:[r(N,{size:"small",variant:"text",className:"zui:h-8 zui:bg-white zui:text-blue-500 zui:text-xs zui:border-1 zui:border-gray-100","aria-controls":y?"more-actions-popover":void 0,"aria-haspopup":"true","aria-expanded":y?"true":void 0,onClick:function(i){z(i.currentTarget)},children:["More ",i(w,{className:"zui:w-4 zui:h-4 zui:ml-1"})]}),i(j,{padding:0,minWidth:200,id:"more-actions-popover",open:y,anchorEl:f,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:i(h,{disablePadding:!0,children:g.map(function(e){return r(p,{disabled:e.disabled,onClick:function(){e.onClick(t),x()},className:"danger"===e.variant?"zui:text-red-600":"",divider:!0,children:[e.icon,i(b,{primaryTypographyProps:{variant:"body2",ml:1},primary:e.label})]},e.id)})})})]}),r(m,{size:"small",onClick:s,children:[" ",i(O,{size:18})]})]})]})};export{P as BulkActionsBar,P as default};
|
package/dist/Button/index.esm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import o from"react";import{Button as e,CircularProgress as t}from"@mui/material";var i=function(){return i=Object.assign||function(r){for(var o,e=1,t=arguments.length;e<t;e++)for(var i in o=arguments[e])Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r},i.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var n=o.forwardRef(function(o,n){var a=o.children,l=o.loading,d=void 0!==l&&l,s=o.loadingText,c=o.loaderSize,p=void 0===c?18:c,f=o.loaderPosition,u=void 0===f?"start":f,v=o.variant,m=void 0===v?"contained":v,y=o.color,b=void 0===y?"primary":y,O=o.size,h=void 0===O?"medium":O,g=o.sx,x=void 0===g?{}:g,z=o.disabled,j=o.startIcon,I=o.endIcon,P=function(r,o){var e={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&o.indexOf(t)<0&&(e[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(r);i<t.length;i++)o.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(r,t[i])&&(e[t[i]]=r[t[i]])}return e}(o,["children","loading","loadingText","loaderSize","loaderPosition","variant","color","size","sx","disabled","startIcon","endIcon"]),S=d&&"end"===u,w=d&&"center"===u;return r(e,i({ref:n,variant:m,color:b,disabled:z||d,size:h,startIcon:d&&"start"===u?r(t,{size:p,color:"inherit"}):j,endIcon:S?r(t,{size:p,color:"inherit"}):I,sx:i({position:"relative"},x)},P,{children:w?r(t,{size:p,color:"inherit"}):d&&s?s:a}))});n.displayName="Button";export{n as Button,n as default};
|
package/dist/Card/index.esm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{useTheme as t,Card as n,CardHeader as i,Typography as o,CardActions as a,Box as l,Skeleton as c}from"@mui/material";import d from"@mui/material/CardContent";import u from"@mui/material/CardMedia";var s=function(){return s=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},s.apply(this,arguments)};function p(r,e,t){if(t||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var v=function(e){var i,o=e.children,a=e.sx,l=void 0===a?{}:a,c=e.elevation,d=void 0===c?1:c,u=e.variant,p=void 0===u?"elevated":u,v=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(r);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(t[n[i]]=r[n[i]])}return t}(e,["children","sx","elevation","variant"]),f=t();return r(n,s({elevation:"elevated"===p?d:0,variant:"outlined"===p?"outlined":"elevation",sx:s({borderRadius:(null===(i=f.radius)||void 0===i?void 0:i.sm)||8,border:"bordered"===p?"1px solid ".concat(f.palette.divider):"none",overflow:"hidden",backgroundColor:f.palette.background.paper},l)},v,{children:o}))},f=function(e){var t=e.title,n=e.subtitle,a=e.action;return r(i,{title:"string"==typeof t?r(o,{variant:"h6",fontWeight:600,children:t}):t,subheader:"string"==typeof n?r(o,{variant:"body2",color:"text.secondary",children:n}):n,action:a})},h=function(e){var t=e.children,n=e.sx;return r(d,{sx:n,children:t})},m=function(e){var t=e.children,n=e.sx;return r(a,{sx:n,children:t})},y=function(e){var t=e.src,n=e.height,i=void 0===n?160:n,o=e.alt;return r(u,{component:"img",height:i,image:t,alt:void 0===o?"card image":o})},g=function(t){var n=t.lines,i=void 0===n?3:n;return e(l,{p:2,children:[r(c,{variant:"rectangular",height:140}),p([],Array(i),!0).map(function(e,t){return r(c,{variant:"text",height:20,sx:{mt:1}},t)})]})},b=Object.assign(v,{Header:f,Content:h,Body:h,Actions:m,Image:y,Skeleton:g});export{m as CardActions,h as CardContent,f as CardHeader,y as CardImage,v as CardRoot,g as CardSkeleton,b as default};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import*as o from"react";import{forwardRef as t,createElement as n}from"react";var s=function(){return s=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},s.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.525.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const a=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,o)=>o?o.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},i=(...e)=>e.filter((e,r,o)=>Boolean(e)&&""!==e.trim()&&o.indexOf(e)===r).join(" ").trim(),l=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
|
|
9
|
-
/**
|
|
10
|
-
* @license lucide-react v0.525.0 - ISC
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the ISC license.
|
|
13
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
16
|
-
/**
|
|
17
|
-
* @license lucide-react v0.525.0 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const d=t(({color:e="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:s="",children:a,iconNode:d,...m},p)=>n("svg",{ref:p,...c,width:r,height:r,stroke:e,strokeWidth:t?24*Number(o)/Number(r):o,className:i("lucide",s),...!a&&!l(m)&&{"aria-hidden":"true"},...m},[...d.map(([e,r])=>n(e,r)),...Array.isArray(a)?a:[a]])),m=(e,r)=>{const o=t(({className:o,...t},s)=>{return n(d,{ref:s,iconNode:r,className:i(`lucide-${l=a(e),l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...t});var l});return o.displayName=a(e),o},p=m("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),u=m("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);
|
|
22
|
-
/**
|
|
23
|
-
* @license lucide-react v0.525.0 - ISC
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the ISC license.
|
|
26
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/function f(e){var r,o,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(o=f(e[r]))&&(t&&(t+=" "),t+=o)}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}const b=e=>{const r=x(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{const o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),g(o,r)||k(e)},getConflictingClassGroupIds:(e,r)=>{const n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},g=(e,r)=>{if(0===e.length)return r.classGroupId;const o=e[0],t=r.nextPart.get(o),n=t?g(e.slice(1),t):void 0;if(n)return n;if(0===r.validators.length)return;const s=e.join("-");return r.validators.find(({validator:e})=>e(s))?.classGroupId},h=/^\[(.+)\]$/,k=e=>{if(h.test(e)){const r=h.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},x=e=>{const{theme:r,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(const e in o)w(o[e],t,e,r);return t},w=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:y(r,e)).classGroupId=o)}if("function"==typeof e)return v(e)?void w(e(t),r,o,t):void r.validators.push({validator:e,classGroupId:o});Object.entries(e).forEach(([e,n])=>{w(n,y(r,e),o,t)})})},y=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},v=e=>e.isThemeGetter,z=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,t=new Map;const n=(n,s)=>{o.set(n,s),r++,r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},N=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=e=>{const r=[];let o,t=0,n=0,s=0;for(let a=0;a<e.length;a++){let i=e[a];if(0===t&&0===n){if(":"===i){r.push(e.slice(s,a)),s=a+1;continue}if("/"===i){o=a;continue}}"["===i?t++:"]"===i?t--:"("===i?n++:")"===i&&n--}const a=0===r.length?e:e.substring(s),i=j(a);return{modifiers:r,hasImportantModifier:i!==a,baseClassName:i,maybePostfixModifierPosition:o&&o>s?o-s:void 0}};if(r){const e=r+":",o=t;t=r=>r.startsWith(e)?o(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(o){const e=t;t=r=>o({className:r,parseClassName:e})}return t},j=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,C=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const o=[];let t=[];return e.forEach(e=>{"["===e[0]||r[e]?(o.push(...t.sort(),e),t=[]):t.push(e)}),o.push(...t.sort()),o}},M=/\s+/;function P(){let e,r,o=0,t="";for(;o<arguments.length;)(e=arguments[o++])&&(r=G(e))&&(t&&(t+=" "),t+=r);return t}const G=e=>{if("string"==typeof e)return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=G(e[t]))&&(o&&(o+=" "),o+=r);return o};function O(e,...r){let o,t,n,s=function(i){const l=r.reduce((e,r)=>r(e),e());return o=(e=>({cache:z(e.cacheSize),parseClassName:N(e),sortModifiers:C(e),...b(e)}))(l),t=o.cache.get,n=o.cache.set,s=a,a(i)};function a(e){const r=t(e);if(r)return r;const s=((e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:s}=r,a=[],i=e.trim().split(M);let l="";for(let e=i.length-1;e>=0;e-=1){const r=i[e],{isExternal:c,modifiers:d,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:u}=o(r);if(c){l=r+(l.length>0?" "+l:l);continue}let f=!!u,b=t(f?p.substring(0,u):p);if(!b){if(!f){l=r+(l.length>0?" "+l:l);continue}if(b=t(p),!b){l=r+(l.length>0?" "+l:l);continue}f=!1}const g=s(d).join(":"),h=m?g+"!":g,k=h+b;if(a.includes(k))continue;a.push(k);const x=n(b,f);for(let e=0;e<x.length;++e){const r=x[e];a.push(h+r)}l=r+(l.length>0?" "+l:l)}return l})(e,o);return n(e,s),s}return function(){return s(P.apply(null,arguments))}}const I=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},$=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,E=/^\((?:(\w[\w-]*):)?(.+)\)$/i,W=/^\d+\/\d+$/,S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,L=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,q=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>W.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),T=e=>!!e&&Number.isInteger(Number(e)),U=e=>e.endsWith("%")&&R(e.slice(0,-1)),Z=e=>S.test(e),D=()=>!0,F=e=>A.test(e)&&!L.test(e),H=()=>!1,J=e=>_.test(e),K=e=>q.test(e),Q=e=>!X(e)&&!ne(e),V=e=>me(e,be,H),X=e=>$.test(e),Y=e=>me(e,ge,F),ee=e=>me(e,he,R),re=e=>me(e,ue,H),oe=e=>me(e,fe,K),te=e=>me(e,xe,J),ne=e=>E.test(e),se=e=>pe(e,ge),ae=e=>pe(e,ke),ie=e=>pe(e,ue),le=e=>pe(e,be),ce=e=>pe(e,fe),de=e=>pe(e,xe,!0),me=(e,r,o)=>{const t=$.exec(e);return!!t&&(t[1]?r(t[1]):o(t[2]))},pe=(e,r,o=!1)=>{const t=E.exec(e);return!!t&&(t[1]?r(t[1]):o)},ue=e=>"position"===e||"percentage"===e,fe=e=>"image"===e||"url"===e,be=e=>"length"===e||"size"===e||"bg-size"===e,ge=e=>"length"===e,he=e=>"number"===e,ke=e=>"family-name"===e,xe=e=>"shadow"===e,we=O(()=>{const e=I("color"),r=I("font"),o=I("text"),t=I("font-weight"),n=I("tracking"),s=I("leading"),a=I("breakpoint"),i=I("container"),l=I("spacing"),c=I("radius"),d=I("shadow"),m=I("inset-shadow"),p=I("text-shadow"),u=I("drop-shadow"),f=I("blur"),b=I("perspective"),g=I("aspect"),h=I("ease"),k=I("animate"),x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ne,X],w=()=>[ne,X,l],y=()=>[B,"full","auto",...w()],v=()=>[T,"none","subgrid",ne,X],z=()=>["auto",{span:["full",T,ne,X]},T,ne,X],N=()=>[T,"auto",ne,X],j=()=>["auto","min","max","fr",ne,X],C=()=>["auto",...w()],M=()=>[B,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],P=()=>[e,ne,X],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ie,re,{position:[ne,X]}],O=()=>["auto","cover","contain",le,V,{size:[ne,X]}],$=()=>[U,se,Y],E=()=>["","none","full",c,ne,X],W=()=>["",R,se,Y],S=()=>[R,U,ie,re],A=()=>["","none",f,ne,X],L=()=>["none",R,ne,X],_=()=>["none",R,ne,X],q=()=>[R,ne,X],F=()=>[B,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Z],breakpoint:[Z],color:[D],container:[Z],"drop-shadow":[Z],ease:["in","out","in-out"],font:[Q],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Z],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Z],shadow:[Z],spacing:["px",R],text:[Z],"text-shadow":[Z],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",B,X,ne,g]}],container:["container"],columns:[{columns:[R,X,ne,i]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{start:y()}],end:[{end:y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[T,"auto",ne,X]}],basis:[{basis:[B,"full","auto",i,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,B,"auto","initial","none",X]}],grow:[{grow:["",R,ne,X]}],shrink:[{shrink:["",R,ne,X]}],order:[{order:[T,"first","last","none",ne,X]}],"grid-cols":[{"grid-cols":v()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":v()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[i,"screen",...M()]}],"min-w":[{"min-w":[i,"screen","none",...M()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",o,se,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,ne,ee]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",U,X]}],"font-family":[{font:[ae,X,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,ne,X]}],"line-clamp":[{"line-clamp":[R,"none",ne,ee]}],leading:[{leading:[s,...w()]}],"list-image":[{"list-image":["none",ne,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",ne,Y]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[R,"auto",ne,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},T,ne,X],radial:["",ne,X],conic:[T,ne,X]},ce,oe]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[R,ne,X]}],"outline-w":[{outline:["",R,se,Y]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",d,de,te]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",m,de,te]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[R,Y]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",p,de,te]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[R,ne,X]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":S()}],"mask-image-linear-to-pos":[{"mask-linear-to":S()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":S()}],"mask-image-t-to-pos":[{"mask-t-to":S()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":S()}],"mask-image-r-to-pos":[{"mask-r-to":S()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":S()}],"mask-image-b-to-pos":[{"mask-b-to":S()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":S()}],"mask-image-l-to-pos":[{"mask-l-to":S()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":S()}],"mask-image-x-to-pos":[{"mask-x-to":S()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":S()}],"mask-image-y-to-pos":[{"mask-y-to":S()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[ne,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":S()}],"mask-image-radial-to-pos":[{"mask-radial-to":S()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":S()}],"mask-image-conic-to-pos":[{"mask-conic-to":S()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,X]}],filter:[{filter:["","none",ne,X]}],blur:[{blur:A()}],brightness:[{brightness:[R,ne,X]}],contrast:[{contrast:[R,ne,X]}],"drop-shadow":[{"drop-shadow":["","none",u,de,te]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",R,ne,X]}],"hue-rotate":[{"hue-rotate":[R,ne,X]}],invert:[{invert:["",R,ne,X]}],saturate:[{saturate:[R,ne,X]}],sepia:[{sepia:["",R,ne,X]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,X]}],"backdrop-blur":[{"backdrop-blur":A()}],"backdrop-brightness":[{"backdrop-brightness":[R,ne,X]}],"backdrop-contrast":[{"backdrop-contrast":[R,ne,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,ne,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,ne,X]}],"backdrop-invert":[{"backdrop-invert":["",R,ne,X]}],"backdrop-opacity":[{"backdrop-opacity":[R,ne,X]}],"backdrop-saturate":[{"backdrop-saturate":[R,ne,X]}],"backdrop-sepia":[{"backdrop-sepia":["",R,ne,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",ne,X]}],ease:[{ease:["linear","initial",h,ne,X]}],delay:[{delay:[R,ne,X]}],animate:[{animate:["none",k,ne,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ne,X]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[ne,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,X]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne,X]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[R,se,Y,ee]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ye(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return we(function(){for(var e,r,o=0,t="",n=arguments.length;o<n;o++)(e=arguments[o])&&(r=f(e))&&(t&&(t+=" "),t+=r);return t}(e))}var ve={sm:"zui:h-4 zui:w-4",md:"zui:h-5 zui:w-5",lg:"zui:h-6 zui:w-6"},ze=o.forwardRef(function(t,n){var a=t.className,i=t.label,l=t.description,c=t.size,d=void 0===c?"md":c,m=t.disabled,f=t.indeterminate,b=t.error,g=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(t,["className","label","description","size","disabled","indeterminate","error"]),h=o.useRef(null);return o.useEffect(function(){h.current&&(h.current.indeterminate=!!f)},[f]),e("label",{className:ye("zui:inline-flex zui:items-start zui:gap-2 zui:cursor-pointer",m&&"zui:opacity-60 zui:cursor-not-allowed",a),children:[e("span",{className:ye("zui:relative zui:inline-flex zui:items-center zui:justify-center zui:rounded zui:border zui:border-slate-300 zui:bg-white zui:transition-colors zui:shrink-0",ve[d],{"zui:border-red-500":b,"zui:bg-slate-200":m,"zui:border-blue-600":(g.checked||f)&&!b,"zui:bg-blue-600":(g.checked||f)&&!b,"zui:ring-1 zui:ring-offset-1 zui:ring-blue-600":(g.checked||f)&&!m}),children:[r("input",s({type:"checkbox",className:"zui:sr-only",ref:function(e){h.current=e,"function"==typeof n?n(e):n&&(n.current=e)},disabled:m,"aria-invalid":b},g)),f?r(u,{className:"zui:w-3 zui:h-3 zui:text-white zui:pointer-events-none",strokeWidth:3}):g.checked?r(p,{className:"zui:w-4 zui:h-4 zui:text-white zui:pointer-events-none"}):null]}),(i||l)&&e("div",{className:"zui:flex zui:flex-col",children:[i&&r("span",{className:"zui:text-sm zui:text-slate-800 zui:font-medium",children:i}),l&&r("span",{className:ye("zui:text-xs zui:text-slate-500",b&&"zui:text-red-500"),children:l})]})]})});export{ze as Checkbox,ze as default};
|