@flipdish/portal-library 6.0.2 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/Badge/index.cjs.js +1 -1
- package/dist/components/atoms/Badge/index.cjs.js.map +1 -1
- package/dist/components/atoms/Badge/index.d.ts +8 -6
- package/dist/components/atoms/Badge/index.js +1 -1
- package/dist/components/atoms/Badge/index.js.map +1 -1
- package/dist/components/atoms/Card/index.cjs.js +1 -1
- package/dist/components/atoms/Card/index.cjs.js.map +1 -1
- package/dist/components/atoms/Card/index.js +1 -1
- package/dist/components/atoms/Card/index.js.map +1 -1
- package/dist/components/atoms/Checkbox/index.cjs.js +1 -1
- package/dist/components/atoms/Checkbox/index.cjs.js.map +1 -1
- package/dist/components/atoms/Checkbox/index.d.ts +1 -1
- package/dist/components/atoms/Checkbox/index.js +1 -1
- package/dist/components/atoms/Checkbox/index.js.map +1 -1
- package/dist/components/atoms/MenuItem/index.cjs.js +1 -1
- package/dist/components/atoms/MenuItem/index.cjs.js.map +1 -1
- package/dist/components/atoms/MenuItem/index.js +1 -1
- package/dist/components/atoms/MenuItem/index.js.map +1 -1
- package/dist/components/atoms/Select/index.cjs.js +1 -1
- package/dist/components/atoms/Select/index.cjs.js.map +1 -1
- package/dist/components/atoms/Select/index.js +1 -1
- package/dist/components/atoms/Select/index.js.map +1 -1
- package/dist/components/atoms/Switch/index.cjs.js +2 -0
- package/dist/components/atoms/Switch/index.cjs.js.map +1 -0
- package/dist/components/atoms/Switch/index.d.ts +24 -0
- package/dist/components/atoms/Switch/index.js +2 -0
- package/dist/components/atoms/Switch/index.js.map +1 -0
- package/dist/components/atoms/TextField/index.cjs.js +1 -1
- package/dist/components/atoms/TextField/index.cjs.js.map +1 -1
- package/dist/components/atoms/TextField/index.js +1 -1
- package/dist/components/atoms/TextField/index.js.map +1 -1
- package/dist/components/molecules/Autocomplete/hooks/useDynamicLimitTags.cjs.js +2 -0
- package/dist/components/molecules/Autocomplete/hooks/useDynamicLimitTags.cjs.js.map +1 -0
- package/dist/components/molecules/Autocomplete/hooks/useDynamicLimitTags.d.ts +14 -0
- package/dist/components/molecules/Autocomplete/hooks/useDynamicLimitTags.js +2 -0
- package/dist/components/molecules/Autocomplete/hooks/useDynamicLimitTags.js.map +1 -0
- package/dist/components/molecules/Autocomplete/index.cjs.js +1 -1
- package/dist/components/molecules/Autocomplete/index.cjs.js.map +1 -1
- package/dist/components/molecules/Autocomplete/index.d.ts +55 -2
- package/dist/components/molecules/Autocomplete/index.js +1 -1
- package/dist/components/molecules/Autocomplete/index.js.map +1 -1
- package/dist/components/molecules/CheckboxGroup/index.cjs.js +1 -1
- package/dist/components/molecules/CheckboxGroup/index.cjs.js.map +1 -1
- package/dist/components/molecules/CheckboxGroup/index.d.ts +1 -1
- package/dist/components/molecules/CheckboxGroup/index.js +1 -1
- package/dist/components/molecules/CheckboxGroup/index.js.map +1 -1
- package/dist/themes/flipdishPublicTheme.cjs.js +1 -1
- package/dist/themes/flipdishPublicTheme.cjs.js.map +1 -1
- package/dist/themes/flipdishPublicTheme.js +1 -1
- package/dist/themes/flipdishPublicTheme.js.map +1 -1
- package/dist/themes/overrides/autocompleteOverrides.cjs.js +2 -0
- package/dist/themes/overrides/autocompleteOverrides.cjs.js.map +1 -0
- package/dist/themes/overrides/autocompleteOverrides.d.ts +5 -0
- package/dist/themes/overrides/autocompleteOverrides.js +2 -0
- package/dist/themes/overrides/autocompleteOverrides.js.map +1 -0
- package/dist/themes/overrides/inputBaseOverrides.cjs.js +1 -1
- package/dist/themes/overrides/inputBaseOverrides.cjs.js.map +1 -1
- package/dist/themes/overrides/inputBaseOverrides.js +1 -1
- package/dist/themes/overrides/inputBaseOverrides.js.map +1 -1
- package/dist/themes/overrides/menuItemOverrides.cjs.js +1 -1
- package/dist/themes/overrides/menuItemOverrides.cjs.js.map +1 -1
- package/dist/themes/overrides/menuItemOverrides.js +1 -1
- package/dist/themes/overrides/menuItemOverrides.js.map +1 -1
- package/dist/themes/overrides/menuOverrides.cjs.js +1 -1
- package/dist/themes/overrides/menuOverrides.cjs.js.map +1 -1
- package/dist/themes/overrides/menuOverrides.js +1 -1
- package/dist/themes/overrides/menuOverrides.js.map +1 -1
- package/dist/themes/overrides/selectOverrides.cjs.js +1 -1
- package/dist/themes/overrides/selectOverrides.cjs.js.map +1 -1
- package/dist/themes/overrides/selectOverrides.js +1 -1
- package/dist/themes/overrides/selectOverrides.js.map +1 -1
- package/dist/utilities/stringUtilities.cjs.js +2 -0
- package/dist/utilities/stringUtilities.cjs.js.map +1 -0
- package/dist/utilities/stringUtilities.d.ts +7 -0
- package/dist/utilities/stringUtilities.js +2 -0
- package/dist/utilities/stringUtilities.js.map +1 -0
- package/package.json +1 -1
- package/dist/components/Switch/index.cjs.js +0 -2
- package/dist/components/Switch/index.cjs.js.map +0 -1
- package/dist/components/Switch/index.d.ts +0 -17
- package/dist/components/Switch/index.js +0 -2
- package/dist/components/Switch/index.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"@mui/material/styles";import{getMobileTextStyle as t,typography as e}from"../typography.js";const
|
|
1
|
+
import"@mui/material/styles";import{getMobileTextStyle as t,typography as e}from"../typography.js";const o=o=>({defaultProps:{autoFocus:!1,disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},styleOverrides:{root:{...e.b1Weak,alignItems:"center",backgroundColor:o.palette.semantic.background["background-overlay"],color:o.palette.semantic.text["text-strong"],display:"flex",gap:o.spacing(1.5),justifyContent:"flex-start",padding:o.spacing(1.5,2),"& svg":{color:o.palette.semantic.icon["icon-strong"]},"&.Mui-disabled":{color:o.palette.semantic.text["text-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto","& .MuiListItemText-primary":{color:o.palette.semantic.text["text-disabled"]},"& .MuiListItemText-secondary":{color:o.palette.semantic.text["text-disabled"]},"& svg":{color:o.palette.semantic.icon["icon-disabled"]},"&:hover":{backgroundColor:o.palette.semantic.background["background-overlay"],color:o.palette.semantic.text["text-disabled"]}},"&&.Mui-selected":{backgroundColor:`${o.palette.semantic.fill["fill-weak"]} !important`,color:o.palette.semantic.text["text-primary"],"& .MuiListItemText-primary":{color:o.palette.semantic.text["text-primary"]},"& svg":{color:o.palette.semantic.icon["icon-primary"]},"&:hover":{backgroundColor:`${o.palette.semantic.fill["fill-hover"]} !important`,color:o.palette.semantic.text["text-primary"]},"&:focus-visible, &.Mui-focusVisible":{backgroundColor:o.palette.semantic.fill["fill-weak"]}},"&:hover:not(.Mui-disabled):not(.Mui-selected)":{backgroundColor:o.palette.semantic.fill["fill-hover"],color:o.palette.semantic.text["text-strong"]},"&:active:not(.Mui-disabled):not(.Mui-selected)":{backgroundColor:o.palette.semantic.fill["fill-press"],color:o.palette.semantic.text["text-strong"]},"&&:focus-visible, &&.Mui-focusVisible":{backgroundColor:o.palette.semantic.background["background-overlay"],outline:`2px solid ${o.palette.semantic.stroke["stroke-focus"]}`,outlineOffset:"-2px"},[o.breakpoints.down("tablet")]:{...t("b1")}}}});export{o as default,o as menuItemOverrides};
|
|
2
2
|
//# sourceMappingURL=menuItemOverrides.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menuItemOverrides.js","sources":["../../../src/themes/overrides/menuItemOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const menuItemOverrides = (theme: Theme): Components<Theme>['MuiMenuItem'] => ({\n styleOverrides: {\n root: {\n ...typography.b1Weak,\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.
|
|
1
|
+
{"version":3,"file":"menuItemOverrides.js","sources":["../../../src/themes/overrides/menuItemOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const menuItemOverrides = (theme: Theme): Components<Theme>['MuiMenuItem'] => ({\n defaultProps: {\n autoFocus: false,\n disableRipple: true,\n disableTouchRipple: true,\n focusRipple: false,\n },\n styleOverrides: {\n root: {\n ...typography.b1Weak,\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.background['background-overlay'],\n color: theme.palette.semantic.text['text-strong'],\n display: 'flex',\n gap: theme.spacing(1.5),\n justifyContent: 'flex-start',\n padding: theme.spacing(1.5, 2),\n\n '& svg': {\n color: theme.palette.semantic.icon['icon-strong'],\n },\n '&.Mui-disabled': {\n color: theme.palette.semantic.text['text-disabled'],\n cursor: 'not-allowed',\n opacity: 1, // Override default MUI opacity\n pointerEvents: 'auto',\n\n '& .MuiListItemText-primary': {\n color: theme.palette.semantic.text['text-disabled'],\n },\n '& .MuiListItemText-secondary': {\n color: theme.palette.semantic.text['text-disabled'],\n },\n '& svg': {\n color: theme.palette.semantic.icon['icon-disabled'],\n },\n '&:hover': {\n backgroundColor: theme.palette.semantic.background['background-overlay'],\n color: theme.palette.semantic.text['text-disabled'],\n },\n },\n '&&.Mui-selected': {\n backgroundColor: `${theme.palette.semantic.fill['fill-weak']} !important`,\n color: theme.palette.semantic.text['text-primary'],\n\n '& .MuiListItemText-primary': {\n color: theme.palette.semantic.text['text-primary'],\n },\n '& svg': {\n color: theme.palette.semantic.icon['icon-primary'],\n },\n '&:hover': {\n backgroundColor: `${theme.palette.semantic.fill['fill-hover']} !important`,\n color: theme.palette.semantic.text['text-primary'],\n },\n '&:focus-visible, &.Mui-focusVisible': {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\n },\n },\n '&:hover:not(.Mui-disabled):not(.Mui-selected)': {\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-strong'],\n },\n '&:active:not(.Mui-disabled):not(.Mui-selected)': {\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-strong'],\n },\n '&&:focus-visible, &&.Mui-focusVisible': {\n backgroundColor: theme.palette.semantic.background['background-overlay'],\n outline: `2px solid ${theme.palette.semantic.stroke['stroke-focus']}`,\n outlineOffset: '-2px',\n },\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('b1'),\n },\n },\n },\n});\n\nexport default menuItemOverrides;\n"],"names":["menuItemOverrides","theme","defaultProps","autoFocus","disableRipple","disableTouchRipple","focusRipple","styleOverrides","root","typography","b1Weak","alignItems","backgroundColor","palette","semantic","background","color","text","display","gap","spacing","justifyContent","padding","icon","cursor","opacity","pointerEvents","fill","outline","stroke","outlineOffset","breakpoints","down","getMobileTextStyle"],"mappings":"yGAIaA,EAAqBC,IAAY,CAC5CC,aAAc,CACZC,WAAW,EACXC,eAAe,EACfC,oBAAoB,EACpBC,aAAa,GAEfC,eAAgB,CACdC,KAAM,IACDC,EAAWC,OACdC,WAAY,SACZC,gBAAiBX,EAAMY,QAAQC,SAASC,WAAW,sBACnDC,MAAOf,EAAMY,QAAQC,SAASG,KAAK,eACnCC,QAAS,OACTC,IAAKlB,EAAMmB,QAAQ,KACnBC,eAAgB,aAChBC,QAASrB,EAAMmB,QAAQ,IAAK,GAE5B,QAAS,CACPJ,MAAOf,EAAMY,QAAQC,SAASS,KAAK,gBAErC,iBAAkB,CAChBP,MAAOf,EAAMY,QAAQC,SAASG,KAAK,iBACnCO,OAAQ,cACRC,QAAS,EACTC,cAAe,OAEf,6BAA8B,CAC5BV,MAAOf,EAAMY,QAAQC,SAASG,KAAK,kBAErC,+BAAgC,CAC9BD,MAAOf,EAAMY,QAAQC,SAASG,KAAK,kBAErC,QAAS,CACPD,MAAOf,EAAMY,QAAQC,SAASS,KAAK,kBAErC,UAAW,CACTX,gBAAiBX,EAAMY,QAAQC,SAASC,WAAW,sBACnDC,MAAOf,EAAMY,QAAQC,SAASG,KAAK,mBAGvC,kBAAmB,CACjBL,gBAAiB,GAAGX,EAAMY,QAAQC,SAASa,KAAK,0BAChDX,MAAOf,EAAMY,QAAQC,SAASG,KAAK,gBAEnC,6BAA8B,CAC5BD,MAAOf,EAAMY,QAAQC,SAASG,KAAK,iBAErC,QAAS,CACPD,MAAOf,EAAMY,QAAQC,SAASS,KAAK,iBAErC,UAAW,CACTX,gBAAiB,GAAGX,EAAMY,QAAQC,SAASa,KAAK,2BAChDX,MAAOf,EAAMY,QAAQC,SAASG,KAAK,iBAErC,sCAAuC,CACrCL,gBAAiBX,EAAMY,QAAQC,SAASa,KAAK,eAGjD,gDAAiD,CAC/Cf,gBAAiBX,EAAMY,QAAQC,SAASa,KAAK,cAC7CX,MAAOf,EAAMY,QAAQC,SAASG,KAAK,gBAErC,iDAAkD,CAChDL,gBAAiBX,EAAMY,QAAQC,SAASa,KAAK,cAC7CX,MAAOf,EAAMY,QAAQC,SAASG,KAAK,gBAErC,wCAAyC,CACvCL,gBAAiBX,EAAMY,QAAQC,SAASC,WAAW,sBACnDa,QAAS,aAAa3B,EAAMY,QAAQC,SAASe,OAAO,kBACpDC,cAAe,QAGjB,CAAC7B,EAAM8B,YAAYC,KAAK,WAAY,IAC/BC,EAAmB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@mui/material/styles");const e=e=>({styleOverrides:{paper:{border:"1px solid",borderColor:e.palette.semantic.stroke["stroke-weak"],borderRadius:e.radius["radius-8"],boxShadow:e.customShadows.overlay,margin:e.spacing(.5,0)},list:{padding:e.spacing(1,0)}}});exports.default=e,exports.menuOverrides=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@mui/material/styles");const e=e=>({defaultProps:{autoFocus:!0,disableAutoFocusItem:!1},styleOverrides:{paper:{backgroundColor:e.palette.semantic.background["background-overlay"],border:"1px solid",borderColor:e.palette.semantic.stroke["stroke-weak"],borderRadius:e.radius["radius-8"],boxShadow:e.customShadows.overlay,margin:e.spacing(.5,0)},list:{backgroundColor:e.palette.semantic.background["background-overlay"],padding:e.spacing(1,0)}}});exports.default=e,exports.menuOverrides=e;
|
|
2
2
|
//# sourceMappingURL=menuOverrides.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menuOverrides.cjs.js","sources":["../../../src/themes/overrides/menuOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nexport const menuOverrides = (theme: Theme): Components<Theme>['MuiMenu'] => ({\n styleOverrides: {\n paper: {\n border: '1px solid',\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n borderRadius: theme.radius['radius-8'],\n boxShadow: theme.customShadows.overlay,\n margin: theme.spacing(0.5, 0),\n },\n list: {\n padding: theme.spacing(1, 0),\n },\n },\n});\n\nexport default menuOverrides;\n"],"names":["menuOverrides","theme","
|
|
1
|
+
{"version":3,"file":"menuOverrides.cjs.js","sources":["../../../src/themes/overrides/menuOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nexport const menuOverrides = (theme: Theme): Components<Theme>['MuiMenu'] => ({\n defaultProps: {\n autoFocus: true,\n disableAutoFocusItem: false,\n },\n styleOverrides: {\n paper: {\n backgroundColor: theme.palette.semantic.background['background-overlay'],\n border: '1px solid',\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n borderRadius: theme.radius['radius-8'],\n boxShadow: theme.customShadows.overlay,\n margin: theme.spacing(0.5, 0),\n },\n list: {\n backgroundColor: theme.palette.semantic.background['background-overlay'],\n padding: theme.spacing(1, 0),\n },\n },\n});\n\nexport default menuOverrides;\n"],"names":["menuOverrides","theme","defaultProps","autoFocus","disableAutoFocusItem","styleOverrides","paper","backgroundColor","palette","semantic","background","border","borderColor","stroke","borderRadius","radius","boxShadow","customShadows","overlay","margin","spacing","list","padding"],"mappings":"0GAEaA,EAAiBC,IAAY,CACxCC,aAAc,CACZC,WAAW,EACXC,sBAAsB,GAExBC,eAAgB,CACdC,MAAO,CACLC,gBAAiBN,EAAMO,QAAQC,SAASC,WAAW,sBACnDC,OAAQ,YACRC,YAAaX,EAAMO,QAAQC,SAASI,OAAO,eAC3CC,aAAcb,EAAMc,OAAO,YAC3BC,UAAWf,EAAMgB,cAAcC,QAC/BC,OAAQlB,EAAMmB,QAAQ,GAAK,IAE7BC,KAAM,CACJd,gBAAiBN,EAAMO,QAAQC,SAASC,WAAW,sBACnDY,QAASrB,EAAMmB,QAAQ,EAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"@mui/material/styles";const
|
|
1
|
+
import"@mui/material/styles";const a=a=>({defaultProps:{autoFocus:!0,disableAutoFocusItem:!1},styleOverrides:{paper:{backgroundColor:a.palette.semantic.background["background-overlay"],border:"1px solid",borderColor:a.palette.semantic.stroke["stroke-weak"],borderRadius:a.radius["radius-8"],boxShadow:a.customShadows.overlay,margin:a.spacing(.5,0)},list:{backgroundColor:a.palette.semantic.background["background-overlay"],padding:a.spacing(1,0)}}});export{a as default,a as menuOverrides};
|
|
2
2
|
//# sourceMappingURL=menuOverrides.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menuOverrides.js","sources":["../../../src/themes/overrides/menuOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nexport const menuOverrides = (theme: Theme): Components<Theme>['MuiMenu'] => ({\n styleOverrides: {\n paper: {\n border: '1px solid',\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n borderRadius: theme.radius['radius-8'],\n boxShadow: theme.customShadows.overlay,\n margin: theme.spacing(0.5, 0),\n },\n list: {\n padding: theme.spacing(1, 0),\n },\n },\n});\n\nexport default menuOverrides;\n"],"names":["menuOverrides","theme","
|
|
1
|
+
{"version":3,"file":"menuOverrides.js","sources":["../../../src/themes/overrides/menuOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nexport const menuOverrides = (theme: Theme): Components<Theme>['MuiMenu'] => ({\n defaultProps: {\n autoFocus: true,\n disableAutoFocusItem: false,\n },\n styleOverrides: {\n paper: {\n backgroundColor: theme.palette.semantic.background['background-overlay'],\n border: '1px solid',\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n borderRadius: theme.radius['radius-8'],\n boxShadow: theme.customShadows.overlay,\n margin: theme.spacing(0.5, 0),\n },\n list: {\n backgroundColor: theme.palette.semantic.background['background-overlay'],\n padding: theme.spacing(1, 0),\n },\n },\n});\n\nexport default menuOverrides;\n"],"names":["menuOverrides","theme","defaultProps","autoFocus","disableAutoFocusItem","styleOverrides","paper","backgroundColor","palette","semantic","background","border","borderColor","stroke","borderRadius","radius","boxShadow","customShadows","overlay","margin","spacing","list","padding"],"mappings":"mCAEaA,EAAiBC,IAAY,CACxCC,aAAc,CACZC,WAAW,EACXC,sBAAsB,GAExBC,eAAgB,CACdC,MAAO,CACLC,gBAAiBN,EAAMO,QAAQC,SAASC,WAAW,sBACnDC,OAAQ,YACRC,YAAaX,EAAMO,QAAQC,SAASI,OAAO,eAC3CC,aAAcb,EAAMc,OAAO,YAC3BC,UAAWf,EAAMgB,cAAcC,QAC/BC,OAAQlB,EAAMmB,QAAQ,GAAK,IAE7BC,KAAM,CACJd,gBAAiBN,EAAMO,QAAQC,SAASC,WAAW,sBACnDY,QAASrB,EAAMmB,QAAQ,EAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@mui/material/styles");const e=e=>({styleOverrides:{root:{"
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@mui/material/styles");const e=e=>({styleOverrides:{root:{padding:0,"&& .MuiSelect-select":{alignItems:"center",display:"flex",minHeight:46,paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.MuiInputBase-input":{paddingRight:e.spacing(1)}},"&.MuiOutlinedInput-root":{borderRadius:e.radius["radius-8"],"& fieldset":{border:"none"},"&.Mui-disabled fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},"&:hover fieldset":{border:"none"}}}}});exports.default=e,exports.selectOverrides=e;
|
|
2
2
|
//# sourceMappingURL=selectOverrides.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectOverrides.cjs.js","sources":["../../../src/themes/overrides/selectOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nexport const selectOverrides = (theme: Theme): Components<Theme>['MuiSelect'] => ({\n styleOverrides: {\n root: {\n '
|
|
1
|
+
{"version":3,"file":"selectOverrides.cjs.js","sources":["../../../src/themes/overrides/selectOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nexport const selectOverrides = (theme: Theme): Components<Theme>['MuiSelect'] => ({\n styleOverrides: {\n root: {\n padding: 0,\n\n '&& .MuiSelect-select': {\n alignItems: 'center',\n display: 'flex',\n minHeight: 46, // Fill base input height of 48px (subtract 2px for border)\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(1),\n\n '&.MuiInputBase-input': {\n paddingRight: theme.spacing(1),\n },\n },\n '&.MuiOutlinedInput-root': {\n borderRadius: theme.radius['radius-8'],\n\n '& fieldset': {\n border: 'none',\n },\n '&.Mui-disabled fieldset': {\n border: 'none',\n },\n '&.Mui-focused fieldset': {\n border: 'none',\n },\n '&:hover fieldset': {\n border: 'none',\n },\n },\n },\n },\n});\n\nexport default selectOverrides;\n"],"names":["selectOverrides","theme","styleOverrides","root","padding","alignItems","display","minHeight","paddingLeft","spacing","paddingRight","borderRadius","radius","border"],"mappings":"0GAEaA,EAAmBC,IAAY,CAC1CC,eAAgB,CACdC,KAAM,CACJC,QAAS,EAET,uBAAwB,CACtBC,WAAY,SACZC,QAAS,OACTC,UAAW,GACXC,YAAaP,EAAMQ,QAAQ,GAC3BC,aAAcT,EAAMQ,QAAQ,GAE5B,uBAAwB,CACtBC,aAAcT,EAAMQ,QAAQ,KAGhC,0BAA2B,CACzBE,aAAcV,EAAMW,OAAO,YAE3B,aAAc,CACZC,OAAQ,QAEV,0BAA2B,CACzBA,OAAQ,QAEV,yBAA0B,CACxBA,OAAQ,QAEV,mBAAoB,CAClBA,OAAQ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"@mui/material/styles";const e=e=>({styleOverrides:{root:{"
|
|
1
|
+
import"@mui/material/styles";const e=e=>({styleOverrides:{root:{padding:0,"&& .MuiSelect-select":{alignItems:"center",display:"flex",minHeight:46,paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.MuiInputBase-input":{paddingRight:e.spacing(1)}},"&.MuiOutlinedInput-root":{borderRadius:e.radius["radius-8"],"& fieldset":{border:"none"},"&.Mui-disabled fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},"&:hover fieldset":{border:"none"}}}}});export{e as default,e as selectOverrides};
|
|
2
2
|
//# sourceMappingURL=selectOverrides.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectOverrides.js","sources":["../../../src/themes/overrides/selectOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nexport const selectOverrides = (theme: Theme): Components<Theme>['MuiSelect'] => ({\n styleOverrides: {\n root: {\n '
|
|
1
|
+
{"version":3,"file":"selectOverrides.js","sources":["../../../src/themes/overrides/selectOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nexport const selectOverrides = (theme: Theme): Components<Theme>['MuiSelect'] => ({\n styleOverrides: {\n root: {\n padding: 0,\n\n '&& .MuiSelect-select': {\n alignItems: 'center',\n display: 'flex',\n minHeight: 46, // Fill base input height of 48px (subtract 2px for border)\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(1),\n\n '&.MuiInputBase-input': {\n paddingRight: theme.spacing(1),\n },\n },\n '&.MuiOutlinedInput-root': {\n borderRadius: theme.radius['radius-8'],\n\n '& fieldset': {\n border: 'none',\n },\n '&.Mui-disabled fieldset': {\n border: 'none',\n },\n '&.Mui-focused fieldset': {\n border: 'none',\n },\n '&:hover fieldset': {\n border: 'none',\n },\n },\n },\n },\n});\n\nexport default selectOverrides;\n"],"names":["selectOverrides","theme","styleOverrides","root","padding","alignItems","display","minHeight","paddingLeft","spacing","paddingRight","borderRadius","radius","border"],"mappings":"mCAEaA,EAAmBC,IAAY,CAC1CC,eAAgB,CACdC,KAAM,CACJC,QAAS,EAET,uBAAwB,CACtBC,WAAY,SACZC,QAAS,OACTC,UAAW,GACXC,YAAaP,EAAMQ,QAAQ,GAC3BC,aAAcT,EAAMQ,QAAQ,GAE5B,uBAAwB,CACtBC,aAAcT,EAAMQ,QAAQ,KAGhC,0BAA2B,CACzBE,aAAcV,EAAMW,OAAO,YAE3B,aAAc,CACZC,OAAQ,QAEV,0BAA2B,CACzBA,OAAQ,QAEV,yBAA0B,CACxBA,OAAQ,QAEV,mBAAoB,CAClBA,OAAQ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const t=t=>("string"==typeof t?t:String(t??"")).replace(/\s+/g," ").trim();exports.normalizeWhitespace=t,exports.truncateWithEllipsis=(e,i=10,s={})=>{const{includeEllipsisInLimit:r=!1,ellipsis:l="..."}=s,n=Number.isFinite(i)?Math.max(1,Math.floor(i)):10,a=t(e);if(a.length<=n)return a;const c=r?Math.max(1,n-l.length):n;return`${a.slice(0,c).replace(/\s+$/,"")}${l}`};
|
|
2
|
+
//# sourceMappingURL=stringUtilities.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stringUtilities.cjs.js","sources":["../../src/utilities/stringUtilities.ts"],"sourcesContent":["export const normalizeWhitespace = (s: string): string => {\n const input = typeof s === 'string' ? s : String(s ?? '');\n return input.replace(/\\s+/g, ' ').trim();\n};\n\nexport const truncateWithEllipsis = (\n s: string,\n max = 10,\n options: { includeEllipsisInLimit?: boolean; ellipsis?: string } = {},\n): string => {\n const { includeEllipsisInLimit = false, ellipsis = '...' } = options;\n const safeMax = Number.isFinite(max) ? Math.max(1, Math.floor(max)) : 10;\n const n = normalizeWhitespace(s);\n\n if (n.length <= safeMax) return n;\n\n const sliceLen = includeEllipsisInLimit ? Math.max(1, safeMax - ellipsis.length) : safeMax;\n const head = n.slice(0, sliceLen).replace(/\\s+$/, '');\n return `${head}${ellipsis}`;\n};\n"],"names":["normalizeWhitespace","s","String","replace","trim","max","options","includeEllipsisInLimit","ellipsis","safeMax","Number","isFinite","Math","floor","n","length","sliceLen","slice"],"mappings":"aAAO,MAAMA,EAAuBC,IACP,iBAANA,EAAiBA,EAAIC,OAAOD,GAAK,KACzCE,QAAQ,OAAQ,KAAKC,kEAGA,CAClCH,EACAI,EAAM,GACNC,EAAmE,CAAA,KAEnE,MAAMC,uBAAEA,GAAyB,EAAKC,SAAEA,EAAW,OAAUF,EACvDG,EAAUC,OAAOC,SAASN,GAAOO,KAAKP,IAAI,EAAGO,KAAKC,MAAMR,IAAQ,GAChES,EAAId,EAAoBC,GAE9B,GAAIa,EAAEC,QAAUN,EAAS,OAAOK,EAEhC,MAAME,EAAWT,EAAyBK,KAAKP,IAAI,EAAGI,EAAUD,EAASO,QAAUN,EAEnF,MAAO,GADMK,EAAEG,MAAM,EAAGD,GAAUb,QAAQ,OAAQ,MACjCK"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const t=t=>("string"==typeof t?t:String(t??"")).replace(/\s+/g," ").trim(),e=(e,i=10,n={})=>{const{includeEllipsisInLimit:r=!1,ellipsis:s="..."}=n,l=Number.isFinite(i)?Math.max(1,Math.floor(i)):10,a=t(e);if(a.length<=l)return a;const c=r?Math.max(1,l-s.length):l;return`${a.slice(0,c).replace(/\s+$/,"")}${s}`};export{t as normalizeWhitespace,e as truncateWithEllipsis};
|
|
2
|
+
//# sourceMappingURL=stringUtilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stringUtilities.js","sources":["../../src/utilities/stringUtilities.ts"],"sourcesContent":["export const normalizeWhitespace = (s: string): string => {\n const input = typeof s === 'string' ? s : String(s ?? '');\n return input.replace(/\\s+/g, ' ').trim();\n};\n\nexport const truncateWithEllipsis = (\n s: string,\n max = 10,\n options: { includeEllipsisInLimit?: boolean; ellipsis?: string } = {},\n): string => {\n const { includeEllipsisInLimit = false, ellipsis = '...' } = options;\n const safeMax = Number.isFinite(max) ? Math.max(1, Math.floor(max)) : 10;\n const n = normalizeWhitespace(s);\n\n if (n.length <= safeMax) return n;\n\n const sliceLen = includeEllipsisInLimit ? Math.max(1, safeMax - ellipsis.length) : safeMax;\n const head = n.slice(0, sliceLen).replace(/\\s+$/, '');\n return `${head}${ellipsis}`;\n};\n"],"names":["normalizeWhitespace","s","String","replace","trim","truncateWithEllipsis","max","options","includeEllipsisInLimit","ellipsis","safeMax","Number","isFinite","Math","floor","n","length","sliceLen","slice"],"mappings":"AAAO,MAAMA,EAAuBC,IACP,iBAANA,EAAiBA,EAAIC,OAAOD,GAAK,KACzCE,QAAQ,OAAQ,KAAKC,OAGvBC,EAAuB,CAClCJ,EACAK,EAAM,GACNC,EAAmE,CAAA,KAEnE,MAAMC,uBAAEA,GAAyB,EAAKC,SAAEA,EAAW,OAAUF,EACvDG,EAAUC,OAAOC,SAASN,GAAOO,KAAKP,IAAI,EAAGO,KAAKC,MAAMR,IAAQ,GAChES,EAAIf,EAAoBC,GAE9B,GAAIc,EAAEC,QAAUN,EAAS,OAAOK,EAEhC,MAAME,EAAWT,EAAyBK,KAAKP,IAAI,EAAGI,EAAUD,EAASO,QAAUN,EAEnF,MAAO,GADMK,EAAEG,MAAM,EAAGD,GAAUd,QAAQ,OAAQ,MACjCM"}
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),a=require("@mui/material/FormControlLabel"),r=require("@mui/material/Switch");module.exports=({label:l,checked:t,onChange:i,labelPlacement:m="start",size:s="medium",disabled:c=!1,testId:d})=>e.jsx(a,{label:l,labelPlacement:m,control:e.jsx(r,{checked:t,onChange:i,color:"primary",size:s,disabled:c,"data-fd":d})});
|
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../../src/components/Switch/index.tsx"],"sourcesContent":["import FormControlLabel, { type FormControlLabelProps } from '@mui/material/FormControlLabel';\nimport MuiSwitch, { type SwitchProps as MuiSwitchProps } from '@mui/material/Switch';\n\nexport type SwitchProps = {\n label: string;\n labelPlacement?: FormControlLabelProps['labelPlacement'];\n checked?: boolean;\n onChange?: MuiSwitchProps['onChange'];\n size?: MuiSwitchProps['size'];\n disabled?: boolean;\n testId?: string;\n};\n\nconst Switch = ({ label, checked, onChange, labelPlacement = 'start', size = 'medium', disabled = false, testId = undefined }: SwitchProps) => {\n return (\n <FormControlLabel\n label={label}\n labelPlacement={labelPlacement}\n control={<MuiSwitch checked={checked} onChange={onChange} color=\"primary\" size={size} disabled={disabled} data-fd={testId} />}\n />\n );\n};\n\nexport default Switch;\n"],"names":["label","checked","onChange","labelPlacement","size","disabled","testId","_jsx","FormControlLabel","control","MuiSwitch","color"],"mappings":"6IAae,EAAGA,QAAOC,UAASC,WAAUC,iBAAiB,QAASC,OAAO,SAAUC,YAAW,EAAOC,YAEjGC,MAACC,GACGR,MAAOA,EACPG,eAAgBA,EAChBM,QAASF,MAACG,EAAS,CAACT,QAASA,EAASC,SAAUA,EAAUS,MAAM,UAAUP,KAAMA,EAAMC,SAAUA,EAAQ,UAAWC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { FormControlLabelProps } from '@mui/material/FormControlLabel';
|
|
3
|
-
import { SwitchProps as SwitchProps$1 } from '@mui/material/Switch';
|
|
4
|
-
|
|
5
|
-
type SwitchProps = {
|
|
6
|
-
label: string;
|
|
7
|
-
labelPlacement?: FormControlLabelProps['labelPlacement'];
|
|
8
|
-
checked?: boolean;
|
|
9
|
-
onChange?: SwitchProps$1['onChange'];
|
|
10
|
-
size?: SwitchProps$1['size'];
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
testId?: string;
|
|
13
|
-
};
|
|
14
|
-
declare const Switch: ({ label, checked, onChange, labelPlacement, size, disabled, testId }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { Switch as default };
|
|
17
|
-
export type { SwitchProps };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import a from"@mui/material/FormControlLabel";import t from"@mui/material/Switch";const l=({label:l,checked:r,onChange:m,labelPlacement:o="start",size:i="medium",disabled:c=!1,testId:d})=>e(a,{label:l,labelPlacement:o,control:e(t,{checked:r,onChange:m,color:"primary",size:i,disabled:c,"data-fd":d})});export{l as default};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Switch/index.tsx"],"sourcesContent":["import FormControlLabel, { type FormControlLabelProps } from '@mui/material/FormControlLabel';\nimport MuiSwitch, { type SwitchProps as MuiSwitchProps } from '@mui/material/Switch';\n\nexport type SwitchProps = {\n label: string;\n labelPlacement?: FormControlLabelProps['labelPlacement'];\n checked?: boolean;\n onChange?: MuiSwitchProps['onChange'];\n size?: MuiSwitchProps['size'];\n disabled?: boolean;\n testId?: string;\n};\n\nconst Switch = ({ label, checked, onChange, labelPlacement = 'start', size = 'medium', disabled = false, testId = undefined }: SwitchProps) => {\n return (\n <FormControlLabel\n label={label}\n labelPlacement={labelPlacement}\n control={<MuiSwitch checked={checked} onChange={onChange} color=\"primary\" size={size} disabled={disabled} data-fd={testId} />}\n />\n );\n};\n\nexport default Switch;\n"],"names":["Switch","label","checked","onChange","labelPlacement","size","disabled","testId","_jsx","FormControlLabel","control","MuiSwitch","color"],"mappings":"0HAaA,MAAMA,EAAS,EAAGC,QAAOC,UAASC,WAAUC,iBAAiB,QAASC,OAAO,SAAUC,YAAW,EAAOC,YAEjGC,EAACC,GACGR,MAAOA,EACPG,eAAgBA,EAChBM,QAASF,EAACG,EAAS,CAACT,QAASA,EAASC,SAAUA,EAAUS,MAAM,UAAUP,KAAMA,EAAMC,SAAUA,EAAQ,UAAWC"}
|