@flipdish/portal-library 7.0.0 → 7.2.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 +12 -14
- 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/Tag/index.cjs.js +2 -0
- package/dist/components/atoms/Tag/index.cjs.js.map +1 -0
- package/dist/components/atoms/Tag/index.d.ts +47 -0
- package/dist/components/atoms/Tag/index.js +2 -0
- package/dist/components/atoms/Tag/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 +57 -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/buttonBaseOverrides.cjs.js +2 -0
- package/dist/themes/overrides/buttonBaseOverrides.cjs.js.map +1 -0
- package/dist/themes/overrides/buttonBaseOverrides.d.ts +5 -0
- package/dist/themes/overrides/buttonBaseOverrides.js +2 -0
- package/dist/themes/overrides/buttonBaseOverrides.js.map +1 -0
- package/dist/themes/overrides/chipOverrides.cjs.js +2 -0
- package/dist/themes/overrides/chipOverrides.cjs.js.map +1 -0
- package/dist/themes/overrides/chipOverrides.d.ts +5 -0
- package/dist/themes/overrides/chipOverrides.js +2 -0
- package/dist/themes/overrides/chipOverrides.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chipOverrides.js","sources":["../../../src/themes/overrides/chipOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const chipOverrides = (theme: Theme): Components<Theme>['MuiChip'] => ({\n styleOverrides: {\n root: {\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\n border: '1px solid',\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n color: theme.palette.semantic.text['text-strong'],\n display: 'flex',\n justifyContent: 'center',\n padding: theme.spacing(0, 1),\n\n '&.MuiChip-clickable': {\n boxShadow: 'none',\n\n '&:hover': {\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n boxShadow: 'none',\n },\n '&:active': {\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n boxShadow: 'none',\n },\n },\n '&.MuiChip-deletable': {\n cursor: 'default',\n\n '&:hover': {\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n boxShadow: 'none',\n },\n },\n '&:focus-visible, &.Mui-focusVisible': {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\n outline: `2px solid ${theme.palette.semantic.stroke['stroke-focus']}`,\n outlineOffset: '2px',\n },\n '&.Mui-disabled': {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\n borderColor: 'transparent',\n color: theme.palette.semantic.text['text-disabled'],\n opacity: 1, // Override default MUI opacity\n\n '& .MuiChip-deleteIcon, & .MuiChip-icon': {\n color: theme.palette.semantic.icon['icon-disabled'],\n },\n },\n '&.MuiChip-sizeSmall': {\n ...typography.captionWeak,\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('caption'),\n },\n },\n '&.MuiChip-sizeMedium': {\n ...typography.b1Weak,\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('b1'),\n },\n },\n '& .MuiChip-label': {\n padding: theme.spacing(0, 0.5),\n },\n '& .MuiChip-icon': {\n paddingRight: theme.spacing(0.5),\n fontSize: 'inherit',\n },\n '& .MuiChip-deleteIcon': {\n color: theme.palette.semantic.icon['icon-strong'],\n margin: 0,\n },\n '&[data-fd-variant=\"badge\"]': {\n '& .MuiChip-icon': {\n color: theme.palette.semantic.icon['icon-strong'],\n },\n '&.MuiChip-sizeSmall': {\n borderRadius: theme.radius['radius-4'],\n },\n '&.MuiChip-sizeMedium': {\n borderRadius: theme.radius['radius-8'],\n },\n },\n '&[data-fd-variant=\"tag\"]': {\n borderRadius: theme.radius['radius-16'],\n },\n },\n },\n});\n\nexport default chipOverrides;\n"],"names":["chipOverrides","theme","styleOverrides","root","alignItems","backgroundColor","palette","semantic","fill","border","borderColor","stroke","color","text","display","justifyContent","padding","spacing","boxShadow","cursor","outline","outlineOffset","opacity","icon","typography","captionWeak","breakpoints","down","getMobileTextStyle","b1Weak","paddingRight","fontSize","margin","borderRadius","radius"],"mappings":"yGAIaA,EAAiBC,IAAY,CACxCC,eAAgB,CACdC,KAAM,CACJC,WAAY,SACZC,gBAAiBJ,EAAMK,QAAQC,SAASC,KAAK,aAC7CC,OAAQ,YACRC,YAAaT,EAAMK,QAAQC,SAASI,OAAO,eAC3CC,MAAOX,EAAMK,QAAQC,SAASM,KAAK,eACnCC,QAAS,OACTC,eAAgB,SAChBC,QAASf,EAAMgB,QAAQ,EAAG,GAE1B,sBAAuB,CACrBC,UAAW,OAEX,UAAW,CACTb,gBAAiBJ,EAAMK,QAAQC,SAASC,KAAK,cAC7CU,UAAW,QAEb,WAAY,CACVb,gBAAiBJ,EAAMK,QAAQC,SAASC,KAAK,cAC7CU,UAAW,SAGf,sBAAuB,CACrBC,OAAQ,UAER,UAAW,CACTd,gBAAiBJ,EAAMK,QAAQC,SAASC,KAAK,cAC7CU,UAAW,SAGf,sCAAuC,CACrCb,gBAAiBJ,EAAMK,QAAQC,SAASC,KAAK,aAC7CY,QAAS,aAAanB,EAAMK,QAAQC,SAASI,OAAO,kBACpDU,cAAe,OAEjB,iBAAkB,CAChBhB,gBAAiBJ,EAAMK,QAAQC,SAASC,KAAK,aAC7CE,YAAa,cACbE,MAAOX,EAAMK,QAAQC,SAASM,KAAK,iBACnCS,QAAS,EAET,yCAA0C,CACxCV,MAAOX,EAAMK,QAAQC,SAASgB,KAAK,mBAGvC,sBAAuB,IAClBC,EAAWC,YAEd,CAACxB,EAAMyB,YAAYC,KAAK,WAAY,IAC/BC,EAAmB,aAG1B,uBAAwB,IACnBJ,EAAWK,OAEd,CAAC5B,EAAMyB,YAAYC,KAAK,WAAY,IAC/BC,EAAmB,QAG1B,mBAAoB,CAClBZ,QAASf,EAAMgB,QAAQ,EAAG,KAE5B,kBAAmB,CACjBa,aAAc7B,EAAMgB,QAAQ,IAC5Bc,SAAU,WAEZ,wBAAyB,CACvBnB,MAAOX,EAAMK,QAAQC,SAASgB,KAAK,eACnCS,OAAQ,GAEV,6BAA8B,CAC5B,kBAAmB,CACjBpB,MAAOX,EAAMK,QAAQC,SAASgB,KAAK,gBAErC,sBAAuB,CACrBU,aAAchC,EAAMiC,OAAO,aAE7B,uBAAwB,CACtBD,aAAchC,EAAMiC,OAAO,cAG/B,2BAA4B,CAC1BD,aAAchC,EAAMiC,OAAO"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@mui/material/styles");var e=require("../typography.cjs.js");const t=t=>({styleOverrides:{root:{backgroundColor:t.palette.semantic.fill["fill-inverse-strong"],backgroundImage:"none",border:"1px solid",borderColor:t.palette.semantic.stroke["stroke-strong"],borderRadius:t.radius["radius-8"],boxSizing:"border-box",minHeight:48,padding:t.spacing(0,2),"&.Mui-disabled":{borderColor:t.palette.semantic.stroke["stroke-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto"},"&.Mui-error":{backgroundColor:t.palette.semantic.fill["fill-error-weak"],border:"2px solid",borderColor:t.palette.semantic.stroke["stroke-error-strong"]},"&.MuiInputBase-multiline":{padding:t.spacing(1.5,2)},"&.Mui-focused:not(.Mui-disabled), &:focus:not(.Mui-disabled)":{outline:`2px solid ${t.palette.semantic.stroke["stroke-focus"]}`,outlineOffset:"2px"},"&:hover:not(.Mui-disabled)":{backgroundImage:`linear-gradient(${t.palette.semantic.fill["fill-hover"]}, ${t.palette.semantic.fill["fill-hover"]})`},"&:active:not(.Mui-disabled)":{backgroundImage:`linear-gradient(${t.palette.semantic.fill["fill-press"]}, ${t.palette.semantic.fill["fill-press"]})`}},input:{...e.typography.b1Weak,color:t.palette.semantic.text["text-strong"],"&.MuiOutlinedInput-input":{padding:0},"&::placeholder":{...e.typography.b1Weak,color:t.palette.semantic.text["text-weak"],opacity:1},"&.Mui-disabled":{color:t.palette.semantic.text["text-disabled"],cursor:"not-allowed",pointerEvents:"auto",
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@mui/material/styles");var e=require("../typography.cjs.js");const t=t=>({styleOverrides:{root:{backgroundColor:t.palette.semantic.fill["fill-inverse-strong"],backgroundImage:"none",border:"1px solid",borderColor:t.palette.semantic.stroke["stroke-strong"],borderRadius:t.radius["radius-8"],boxSizing:"border-box",minHeight:48,padding:t.spacing(0,2),"&.Mui-disabled":{borderColor:t.palette.semantic.stroke["stroke-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto"},"&.Mui-error":{backgroundColor:t.palette.semantic.fill["fill-error-weak"],border:"2px solid",borderColor:t.palette.semantic.stroke["stroke-error-strong"]},"&.MuiInputBase-multiline":{padding:t.spacing(1.5,2)},"&.Mui-focused:not(.Mui-disabled), &:focus:not(.Mui-disabled)":{outline:`2px solid ${t.palette.semantic.stroke["stroke-focus"]}`,outlineOffset:"2px"},"&:hover:not(.Mui-disabled)":{backgroundImage:`linear-gradient(${t.palette.semantic.fill["fill-hover"]}, ${t.palette.semantic.fill["fill-hover"]})`},"&:active:not(.Mui-disabled)":{backgroundImage:`linear-gradient(${t.palette.semantic.fill["fill-press"]}, ${t.palette.semantic.fill["fill-press"]})`}},input:{...e.typography.b1Weak,color:t.palette.semantic.text["text-strong"],"&.MuiOutlinedInput-input":{padding:0},"&::placeholder":{...e.typography.b1Weak,color:t.palette.semantic.text["text-weak"],opacity:1},"&.Mui-disabled":{color:t.palette.semantic.text["text-disabled"],cursor:"not-allowed",pointerEvents:"auto",WebkitTextFillColor:t.palette.semantic.text["text-disabled"],"&::placeholder":{color:t.palette.semantic.text["text-disabled"],WebkitTextFillColor:t.palette.semantic.text["text-disabled"]}},[t.breakpoints.down("tablet")]:{...e.getMobileTextStyle("b1"),"&::placeholder":{...e.getMobileTextStyle("b1")}}}}});exports.default=t,exports.inputBaseOverrides=t;
|
|
2
2
|
//# sourceMappingURL=inputBaseOverrides.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputBaseOverrides.cjs.js","sources":["../../../src/themes/overrides/inputBaseOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const inputBaseOverrides = (theme: Theme): Components<Theme>['MuiInputBase'] => ({\n styleOverrides: {\n root: {\n backgroundColor: theme.palette.semantic.fill['fill-inverse-strong'],\n backgroundImage: 'none',\n border: '1px solid',\n borderColor: theme.palette.semantic.stroke['stroke-strong'],\n borderRadius: theme.radius['radius-8'],\n boxSizing: 'border-box',\n minHeight: 48,\n padding: theme.spacing(0, 2),\n\n '&.Mui-disabled': {\n borderColor: theme.palette.semantic.stroke['stroke-disabled'],\n cursor: 'not-allowed',\n opacity: 1, // Override default MUI opacity\n pointerEvents: 'auto',\n },\n '&.Mui-error': {\n backgroundColor: theme.palette.semantic.fill['fill-error-weak'],\n border: '2px solid',\n borderColor: theme.palette.semantic.stroke['stroke-error-strong'],\n },\n '&.MuiInputBase-multiline': {\n padding: theme.spacing(1.5, 2),\n },\n '&.Mui-focused:not(.Mui-disabled), &:focus:not(.Mui-disabled)': {\n outline: `2px solid ${theme.palette.semantic.stroke['stroke-focus']}`,\n outlineOffset: '2px',\n },\n '&:hover:not(.Mui-disabled)': {\n backgroundImage: `linear-gradient(${theme.palette.semantic.fill['fill-hover']}, ${theme.palette.semantic.fill['fill-hover']})`,\n },\n '&:active:not(.Mui-disabled)': {\n backgroundImage: `linear-gradient(${theme.palette.semantic.fill['fill-press']}, ${theme.palette.semantic.fill['fill-press']})`,\n },\n },\n input: {\n ...typography.b1Weak,\n color: theme.palette.semantic.text['text-strong'],\n\n '&.MuiOutlinedInput-input': {\n padding: 0,\n },\n '&::placeholder': {\n ...typography.b1Weak,\n color: theme.palette.semantic.text['text-weak'],\n opacity: 1,\n },\n '&.Mui-disabled': {\n color: theme.palette.semantic.text['text-disabled'],\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n
|
|
1
|
+
{"version":3,"file":"inputBaseOverrides.cjs.js","sources":["../../../src/themes/overrides/inputBaseOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const inputBaseOverrides = (theme: Theme): Components<Theme>['MuiInputBase'] => ({\n styleOverrides: {\n root: {\n backgroundColor: theme.palette.semantic.fill['fill-inverse-strong'],\n backgroundImage: 'none',\n border: '1px solid',\n borderColor: theme.palette.semantic.stroke['stroke-strong'],\n borderRadius: theme.radius['radius-8'],\n boxSizing: 'border-box',\n minHeight: 48,\n padding: theme.spacing(0, 2),\n\n '&.Mui-disabled': {\n borderColor: theme.palette.semantic.stroke['stroke-disabled'],\n cursor: 'not-allowed',\n opacity: 1, // Override default MUI opacity\n pointerEvents: 'auto',\n },\n '&.Mui-error': {\n backgroundColor: theme.palette.semantic.fill['fill-error-weak'],\n border: '2px solid',\n borderColor: theme.palette.semantic.stroke['stroke-error-strong'],\n },\n '&.MuiInputBase-multiline': {\n padding: theme.spacing(1.5, 2),\n },\n '&.Mui-focused:not(.Mui-disabled), &:focus:not(.Mui-disabled)': {\n outline: `2px solid ${theme.palette.semantic.stroke['stroke-focus']}`,\n outlineOffset: '2px',\n },\n '&:hover:not(.Mui-disabled)': {\n backgroundImage: `linear-gradient(${theme.palette.semantic.fill['fill-hover']}, ${theme.palette.semantic.fill['fill-hover']})`,\n },\n '&:active:not(.Mui-disabled)': {\n backgroundImage: `linear-gradient(${theme.palette.semantic.fill['fill-press']}, ${theme.palette.semantic.fill['fill-press']})`,\n },\n },\n input: {\n ...typography.b1Weak,\n color: theme.palette.semantic.text['text-strong'],\n\n '&.MuiOutlinedInput-input': {\n padding: 0,\n },\n '&::placeholder': {\n ...typography.b1Weak,\n color: theme.palette.semantic.text['text-weak'],\n opacity: 1,\n },\n '&.Mui-disabled': {\n color: theme.palette.semantic.text['text-disabled'],\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n WebkitTextFillColor: theme.palette.semantic.text['text-disabled'],\n\n '&::placeholder': {\n color: theme.palette.semantic.text['text-disabled'],\n WebkitTextFillColor: theme.palette.semantic.text['text-disabled'],\n },\n },\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('b1'),\n\n '&::placeholder': {\n ...getMobileTextStyle('b1'),\n },\n },\n },\n },\n});\n\nexport default inputBaseOverrides;\n"],"names":["inputBaseOverrides","theme","styleOverrides","root","backgroundColor","palette","semantic","fill","backgroundImage","border","borderColor","stroke","borderRadius","radius","boxSizing","minHeight","padding","spacing","cursor","opacity","pointerEvents","outline","outlineOffset","input","typography","b1Weak","color","text","WebkitTextFillColor","breakpoints","down","getMobileTextStyle"],"mappings":"gJAIaA,EAAsBC,IAAY,CAC7CC,eAAgB,CACdC,KAAM,CACJC,gBAAiBH,EAAMI,QAAQC,SAASC,KAAK,uBAC7CC,gBAAiB,OACjBC,OAAQ,YACRC,YAAaT,EAAMI,QAAQC,SAASK,OAAO,iBAC3CC,aAAcX,EAAMY,OAAO,YAC3BC,UAAW,aACXC,UAAW,GACXC,QAASf,EAAMgB,QAAQ,EAAG,GAE1B,iBAAkB,CAChBP,YAAaT,EAAMI,QAAQC,SAASK,OAAO,mBAC3CO,OAAQ,cACRC,QAAS,EACTC,cAAe,QAEjB,cAAe,CACbhB,gBAAiBH,EAAMI,QAAQC,SAASC,KAAK,mBAC7CE,OAAQ,YACRC,YAAaT,EAAMI,QAAQC,SAASK,OAAO,wBAE7C,2BAA4B,CAC1BK,QAASf,EAAMgB,QAAQ,IAAK,IAE9B,+DAAgE,CAC9DI,QAAS,aAAapB,EAAMI,QAAQC,SAASK,OAAO,kBACpDW,cAAe,OAEjB,6BAA8B,CAC5Bd,gBAAiB,mBAAmBP,EAAMI,QAAQC,SAASC,KAAK,kBAAkBN,EAAMI,QAAQC,SAASC,KAAK,kBAEhH,8BAA+B,CAC7BC,gBAAiB,mBAAmBP,EAAMI,QAAQC,SAASC,KAAK,kBAAkBN,EAAMI,QAAQC,SAASC,KAAK,mBAGlHgB,MAAO,IACFC,EAAAA,WAAWC,OACdC,MAAOzB,EAAMI,QAAQC,SAASqB,KAAK,eAEnC,2BAA4B,CAC1BX,QAAS,GAEX,iBAAkB,IACbQ,EAAAA,WAAWC,OACdC,MAAOzB,EAAMI,QAAQC,SAASqB,KAAK,aACnCR,QAAS,GAEX,iBAAkB,CAChBO,MAAOzB,EAAMI,QAAQC,SAASqB,KAAK,iBACnCT,OAAQ,cACRE,cAAe,OACfQ,oBAAqB3B,EAAMI,QAAQC,SAASqB,KAAK,iBAEjD,iBAAkB,CAChBD,MAAOzB,EAAMI,QAAQC,SAASqB,KAAK,iBACnCC,oBAAqB3B,EAAMI,QAAQC,SAASqB,KAAK,mBAIrD,CAAC1B,EAAM4B,YAAYC,KAAK,WAAY,IAC/BC,EAAAA,mBAAmB,MAEtB,iBAAkB,IACbA,EAAAA,mBAAmB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"@mui/material/styles";import{getMobileTextStyle as e,typography as t}from"../typography.js";const o=o=>({styleOverrides:{root:{backgroundColor:o.palette.semantic.fill["fill-inverse-strong"],backgroundImage:"none",border:"1px solid",borderColor:o.palette.semantic.stroke["stroke-strong"],borderRadius:o.radius["radius-8"],boxSizing:"border-box",minHeight:48,padding:o.spacing(0,2),"&.Mui-disabled":{borderColor:o.palette.semantic.stroke["stroke-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto"},"&.Mui-error":{backgroundColor:o.palette.semantic.fill["fill-error-weak"],border:"2px solid",borderColor:o.palette.semantic.stroke["stroke-error-strong"]},"&.MuiInputBase-multiline":{padding:o.spacing(1.5,2)},"&.Mui-focused:not(.Mui-disabled), &:focus:not(.Mui-disabled)":{outline:`2px solid ${o.palette.semantic.stroke["stroke-focus"]}`,outlineOffset:"2px"},"&:hover:not(.Mui-disabled)":{backgroundImage:`linear-gradient(${o.palette.semantic.fill["fill-hover"]}, ${o.palette.semantic.fill["fill-hover"]})`},"&:active:not(.Mui-disabled)":{backgroundImage:`linear-gradient(${o.palette.semantic.fill["fill-press"]}, ${o.palette.semantic.fill["fill-press"]})`}},input:{...t.b1Weak,color:o.palette.semantic.text["text-strong"],"&.MuiOutlinedInput-input":{padding:0},"&::placeholder":{...t.b1Weak,color:o.palette.semantic.text["text-weak"],opacity:1},"&.Mui-disabled":{color:o.palette.semantic.text["text-disabled"],cursor:"not-allowed",pointerEvents:"auto",
|
|
1
|
+
import"@mui/material/styles";import{getMobileTextStyle as e,typography as t}from"../typography.js";const o=o=>({styleOverrides:{root:{backgroundColor:o.palette.semantic.fill["fill-inverse-strong"],backgroundImage:"none",border:"1px solid",borderColor:o.palette.semantic.stroke["stroke-strong"],borderRadius:o.radius["radius-8"],boxSizing:"border-box",minHeight:48,padding:o.spacing(0,2),"&.Mui-disabled":{borderColor:o.palette.semantic.stroke["stroke-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto"},"&.Mui-error":{backgroundColor:o.palette.semantic.fill["fill-error-weak"],border:"2px solid",borderColor:o.palette.semantic.stroke["stroke-error-strong"]},"&.MuiInputBase-multiline":{padding:o.spacing(1.5,2)},"&.Mui-focused:not(.Mui-disabled), &:focus:not(.Mui-disabled)":{outline:`2px solid ${o.palette.semantic.stroke["stroke-focus"]}`,outlineOffset:"2px"},"&:hover:not(.Mui-disabled)":{backgroundImage:`linear-gradient(${o.palette.semantic.fill["fill-hover"]}, ${o.palette.semantic.fill["fill-hover"]})`},"&:active:not(.Mui-disabled)":{backgroundImage:`linear-gradient(${o.palette.semantic.fill["fill-press"]}, ${o.palette.semantic.fill["fill-press"]})`}},input:{...t.b1Weak,color:o.palette.semantic.text["text-strong"],"&.MuiOutlinedInput-input":{padding:0},"&::placeholder":{...t.b1Weak,color:o.palette.semantic.text["text-weak"],opacity:1},"&.Mui-disabled":{color:o.palette.semantic.text["text-disabled"],cursor:"not-allowed",pointerEvents:"auto",WebkitTextFillColor:o.palette.semantic.text["text-disabled"],"&::placeholder":{color:o.palette.semantic.text["text-disabled"],WebkitTextFillColor:o.palette.semantic.text["text-disabled"]}},[o.breakpoints.down("tablet")]:{...e("b1"),"&::placeholder":{...e("b1")}}}}});export{o as default,o as inputBaseOverrides};
|
|
2
2
|
//# sourceMappingURL=inputBaseOverrides.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputBaseOverrides.js","sources":["../../../src/themes/overrides/inputBaseOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const inputBaseOverrides = (theme: Theme): Components<Theme>['MuiInputBase'] => ({\n styleOverrides: {\n root: {\n backgroundColor: theme.palette.semantic.fill['fill-inverse-strong'],\n backgroundImage: 'none',\n border: '1px solid',\n borderColor: theme.palette.semantic.stroke['stroke-strong'],\n borderRadius: theme.radius['radius-8'],\n boxSizing: 'border-box',\n minHeight: 48,\n padding: theme.spacing(0, 2),\n\n '&.Mui-disabled': {\n borderColor: theme.palette.semantic.stroke['stroke-disabled'],\n cursor: 'not-allowed',\n opacity: 1, // Override default MUI opacity\n pointerEvents: 'auto',\n },\n '&.Mui-error': {\n backgroundColor: theme.palette.semantic.fill['fill-error-weak'],\n border: '2px solid',\n borderColor: theme.palette.semantic.stroke['stroke-error-strong'],\n },\n '&.MuiInputBase-multiline': {\n padding: theme.spacing(1.5, 2),\n },\n '&.Mui-focused:not(.Mui-disabled), &:focus:not(.Mui-disabled)': {\n outline: `2px solid ${theme.palette.semantic.stroke['stroke-focus']}`,\n outlineOffset: '2px',\n },\n '&:hover:not(.Mui-disabled)': {\n backgroundImage: `linear-gradient(${theme.palette.semantic.fill['fill-hover']}, ${theme.palette.semantic.fill['fill-hover']})`,\n },\n '&:active:not(.Mui-disabled)': {\n backgroundImage: `linear-gradient(${theme.palette.semantic.fill['fill-press']}, ${theme.palette.semantic.fill['fill-press']})`,\n },\n },\n input: {\n ...typography.b1Weak,\n color: theme.palette.semantic.text['text-strong'],\n\n '&.MuiOutlinedInput-input': {\n padding: 0,\n },\n '&::placeholder': {\n ...typography.b1Weak,\n color: theme.palette.semantic.text['text-weak'],\n opacity: 1,\n },\n '&.Mui-disabled': {\n color: theme.palette.semantic.text['text-disabled'],\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n
|
|
1
|
+
{"version":3,"file":"inputBaseOverrides.js","sources":["../../../src/themes/overrides/inputBaseOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const inputBaseOverrides = (theme: Theme): Components<Theme>['MuiInputBase'] => ({\n styleOverrides: {\n root: {\n backgroundColor: theme.palette.semantic.fill['fill-inverse-strong'],\n backgroundImage: 'none',\n border: '1px solid',\n borderColor: theme.palette.semantic.stroke['stroke-strong'],\n borderRadius: theme.radius['radius-8'],\n boxSizing: 'border-box',\n minHeight: 48,\n padding: theme.spacing(0, 2),\n\n '&.Mui-disabled': {\n borderColor: theme.palette.semantic.stroke['stroke-disabled'],\n cursor: 'not-allowed',\n opacity: 1, // Override default MUI opacity\n pointerEvents: 'auto',\n },\n '&.Mui-error': {\n backgroundColor: theme.palette.semantic.fill['fill-error-weak'],\n border: '2px solid',\n borderColor: theme.palette.semantic.stroke['stroke-error-strong'],\n },\n '&.MuiInputBase-multiline': {\n padding: theme.spacing(1.5, 2),\n },\n '&.Mui-focused:not(.Mui-disabled), &:focus:not(.Mui-disabled)': {\n outline: `2px solid ${theme.palette.semantic.stroke['stroke-focus']}`,\n outlineOffset: '2px',\n },\n '&:hover:not(.Mui-disabled)': {\n backgroundImage: `linear-gradient(${theme.palette.semantic.fill['fill-hover']}, ${theme.palette.semantic.fill['fill-hover']})`,\n },\n '&:active:not(.Mui-disabled)': {\n backgroundImage: `linear-gradient(${theme.palette.semantic.fill['fill-press']}, ${theme.palette.semantic.fill['fill-press']})`,\n },\n },\n input: {\n ...typography.b1Weak,\n color: theme.palette.semantic.text['text-strong'],\n\n '&.MuiOutlinedInput-input': {\n padding: 0,\n },\n '&::placeholder': {\n ...typography.b1Weak,\n color: theme.palette.semantic.text['text-weak'],\n opacity: 1,\n },\n '&.Mui-disabled': {\n color: theme.palette.semantic.text['text-disabled'],\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n WebkitTextFillColor: theme.palette.semantic.text['text-disabled'],\n\n '&::placeholder': {\n color: theme.palette.semantic.text['text-disabled'],\n WebkitTextFillColor: theme.palette.semantic.text['text-disabled'],\n },\n },\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('b1'),\n\n '&::placeholder': {\n ...getMobileTextStyle('b1'),\n },\n },\n },\n },\n});\n\nexport default inputBaseOverrides;\n"],"names":["inputBaseOverrides","theme","styleOverrides","root","backgroundColor","palette","semantic","fill","backgroundImage","border","borderColor","stroke","borderRadius","radius","boxSizing","minHeight","padding","spacing","cursor","opacity","pointerEvents","outline","outlineOffset","input","typography","b1Weak","color","text","WebkitTextFillColor","breakpoints","down","getMobileTextStyle"],"mappings":"yGAIaA,EAAsBC,IAAY,CAC7CC,eAAgB,CACdC,KAAM,CACJC,gBAAiBH,EAAMI,QAAQC,SAASC,KAAK,uBAC7CC,gBAAiB,OACjBC,OAAQ,YACRC,YAAaT,EAAMI,QAAQC,SAASK,OAAO,iBAC3CC,aAAcX,EAAMY,OAAO,YAC3BC,UAAW,aACXC,UAAW,GACXC,QAASf,EAAMgB,QAAQ,EAAG,GAE1B,iBAAkB,CAChBP,YAAaT,EAAMI,QAAQC,SAASK,OAAO,mBAC3CO,OAAQ,cACRC,QAAS,EACTC,cAAe,QAEjB,cAAe,CACbhB,gBAAiBH,EAAMI,QAAQC,SAASC,KAAK,mBAC7CE,OAAQ,YACRC,YAAaT,EAAMI,QAAQC,SAASK,OAAO,wBAE7C,2BAA4B,CAC1BK,QAASf,EAAMgB,QAAQ,IAAK,IAE9B,+DAAgE,CAC9DI,QAAS,aAAapB,EAAMI,QAAQC,SAASK,OAAO,kBACpDW,cAAe,OAEjB,6BAA8B,CAC5Bd,gBAAiB,mBAAmBP,EAAMI,QAAQC,SAASC,KAAK,kBAAkBN,EAAMI,QAAQC,SAASC,KAAK,kBAEhH,8BAA+B,CAC7BC,gBAAiB,mBAAmBP,EAAMI,QAAQC,SAASC,KAAK,kBAAkBN,EAAMI,QAAQC,SAASC,KAAK,mBAGlHgB,MAAO,IACFC,EAAWC,OACdC,MAAOzB,EAAMI,QAAQC,SAASqB,KAAK,eAEnC,2BAA4B,CAC1BX,QAAS,GAEX,iBAAkB,IACbQ,EAAWC,OACdC,MAAOzB,EAAMI,QAAQC,SAASqB,KAAK,aACnCR,QAAS,GAEX,iBAAkB,CAChBO,MAAOzB,EAAMI,QAAQC,SAASqB,KAAK,iBACnCT,OAAQ,cACRE,cAAe,OACfQ,oBAAqB3B,EAAMI,QAAQC,SAASqB,KAAK,iBAEjD,iBAAkB,CAChBD,MAAOzB,EAAMI,QAAQC,SAASqB,KAAK,iBACnCC,oBAAqB3B,EAAMI,QAAQC,SAASqB,KAAK,mBAIrD,CAAC1B,EAAM4B,YAAYC,KAAK,WAAY,IAC/BC,EAAmB,MAEtB,iBAAkB,IACbA,EAAmB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@mui/material/styles");var e=require("../typography.cjs.js");const t=t=>({styleOverrides:{root:{...e.typography.b1Weak,alignItems:"center",backgroundColor:t.palette.semantic.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@mui/material/styles");var e=require("../typography.cjs.js");const t=t=>({defaultProps:{autoFocus:!1,disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},styleOverrides:{root:{...e.typography.b1Weak,alignItems:"center",backgroundColor:t.palette.semantic.background["background-overlay"],color:t.palette.semantic.text["text-strong"],display:"flex",gap:t.spacing(1.5),justifyContent:"flex-start",padding:t.spacing(1.5,2),"& svg":{color:t.palette.semantic.icon["icon-strong"]},"&.Mui-disabled":{color:t.palette.semantic.text["text-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto","& .MuiListItemText-primary":{color:t.palette.semantic.text["text-disabled"]},"& .MuiListItemText-secondary":{color:t.palette.semantic.text["text-disabled"]},"& svg":{color:t.palette.semantic.icon["icon-disabled"]},"&:hover":{backgroundColor:t.palette.semantic.background["background-overlay"],color:t.palette.semantic.text["text-disabled"]}},"&&.Mui-selected":{backgroundColor:`${t.palette.semantic.fill["fill-weak"]} !important`,color:t.palette.semantic.text["text-primary"],"& .MuiListItemText-primary":{color:t.palette.semantic.text["text-primary"]},"& svg":{color:t.palette.semantic.icon["icon-primary"]},"&:hover":{backgroundColor:`${t.palette.semantic.fill["fill-hover"]} !important`,color:t.palette.semantic.text["text-primary"]},"&:focus-visible, &.Mui-focusVisible":{backgroundColor:t.palette.semantic.fill["fill-weak"]}},"&:hover:not(.Mui-disabled):not(.Mui-selected)":{backgroundColor:t.palette.semantic.fill["fill-hover"],color:t.palette.semantic.text["text-strong"]},"&:active:not(.Mui-disabled):not(.Mui-selected)":{backgroundColor:t.palette.semantic.fill["fill-press"],color:t.palette.semantic.text["text-strong"]},"&&:focus-visible, &&.Mui-focusVisible":{backgroundColor:t.palette.semantic.background["background-overlay"],outline:`2px solid ${t.palette.semantic.stroke["stroke-focus"]}`,outlineOffset:"-2px"},[t.breakpoints.down("tablet")]:{...e.getMobileTextStyle("b1")}}}});exports.default=t,exports.menuItemOverrides=t;
|
|
2
2
|
//# sourceMappingURL=menuItemOverrides.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menuItemOverrides.cjs.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.cjs.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":"gJAIaA,EAAqBC,IAAY,CAC5CC,aAAc,CACZC,WAAW,EACXC,eAAe,EACfC,oBAAoB,EACpBC,aAAa,GAEfC,eAAgB,CACdC,KAAM,IACDC,EAAAA,WAAWC,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,EAAAA,mBAAmB"}
|
|
@@ -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"}
|