@flipdish/portal-library 5.9.1 → 6.0.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.
Files changed (226) hide show
  1. package/dist/02aa6e71ecb2b9b2.svg +29 -0
  2. package/dist/a79a4dce3f63ccbe.svg +29 -0
  3. package/dist/adapters/DateFns.cjs.js +2 -0
  4. package/dist/adapters/DateFns.cjs.js.map +1 -0
  5. package/dist/adapters/DateFns.d.ts +2 -0
  6. package/dist/adapters/DateFns.js +2 -0
  7. package/dist/adapters/DateFns.js.map +1 -0
  8. package/dist/adapters/Dayjs.cjs.js +2 -0
  9. package/dist/adapters/Dayjs.cjs.js.map +1 -0
  10. package/dist/adapters/Dayjs.d.ts +2 -0
  11. package/dist/adapters/Dayjs.js +2 -0
  12. package/dist/adapters/Dayjs.js.map +1 -0
  13. package/dist/adapters/Moment.cjs.js +2 -0
  14. package/dist/adapters/Moment.cjs.js.map +1 -0
  15. package/dist/adapters/Moment.d.ts +2 -0
  16. package/dist/adapters/Moment.js +2 -0
  17. package/dist/adapters/Moment.js.map +1 -0
  18. package/dist/assets/images/flipdish-icon-dark.svg.cjs.js +2 -0
  19. package/dist/assets/images/flipdish-icon-dark.svg.cjs.js.map +1 -0
  20. package/dist/assets/images/flipdish-icon-dark.svg.js +2 -0
  21. package/dist/assets/images/flipdish-icon-dark.svg.js.map +1 -0
  22. package/dist/assets/images/flipdish-icon.svg.cjs.js +2 -0
  23. package/dist/assets/images/flipdish-icon.svg.cjs.js.map +1 -0
  24. package/dist/assets/images/flipdish-icon.svg.js +2 -0
  25. package/dist/assets/images/flipdish-icon.svg.js.map +1 -0
  26. package/dist/assets/images/flipdish-logo-dark.svg.cjs.js +2 -0
  27. package/dist/assets/images/flipdish-logo-dark.svg.cjs.js.map +1 -0
  28. package/dist/assets/images/flipdish-logo-dark.svg.js +2 -0
  29. package/dist/assets/images/flipdish-logo-dark.svg.js.map +1 -0
  30. package/dist/assets/images/flipdish-logo.svg.cjs.js +2 -0
  31. package/dist/assets/images/flipdish-logo.svg.cjs.js.map +1 -0
  32. package/dist/assets/images/flipdish-logo.svg.js +2 -0
  33. package/dist/assets/images/flipdish-logo.svg.js.map +1 -0
  34. package/dist/assets/images/flipdish-powered-by-dark.svg.cjs.js +2 -0
  35. package/dist/assets/images/flipdish-powered-by-dark.svg.cjs.js.map +1 -0
  36. package/dist/assets/images/flipdish-powered-by-dark.svg.js +2 -0
  37. package/dist/assets/images/flipdish-powered-by-dark.svg.js.map +1 -0
  38. package/dist/assets/images/flipdish-powered-by.svg.cjs.js +2 -0
  39. package/dist/assets/images/flipdish-powered-by.svg.cjs.js.map +1 -0
  40. package/dist/assets/images/flipdish-powered-by.svg.js +2 -0
  41. package/dist/assets/images/flipdish-powered-by.svg.js.map +1 -0
  42. package/dist/components/Spacer/index.cjs.js +1 -1
  43. package/dist/components/Spacer/index.cjs.js.map +1 -1
  44. package/dist/components/Spacer/index.d.ts +1 -1
  45. package/dist/components/Spacer/index.js +1 -1
  46. package/dist/components/Spacer/index.js.map +1 -1
  47. package/dist/components/atoms/Checkbox/index.cjs.js +1 -1
  48. package/dist/components/atoms/Checkbox/index.cjs.js.map +1 -1
  49. package/dist/components/atoms/Checkbox/index.d.ts +11 -2
  50. package/dist/components/atoms/Checkbox/index.js +1 -1
  51. package/dist/components/atoms/Checkbox/index.js.map +1 -1
  52. package/dist/components/atoms/CircularProgress/index.cjs.js +1 -1
  53. package/dist/components/atoms/CircularProgress/index.cjs.js.map +1 -1
  54. package/dist/components/atoms/CircularProgress/index.d.ts +32 -2
  55. package/dist/components/atoms/CircularProgress/index.js +1 -1
  56. package/dist/components/atoms/CircularProgress/index.js.map +1 -1
  57. package/dist/components/atoms/DatePicker/CalendarHeader.cjs.js +2 -0
  58. package/dist/components/atoms/DatePicker/CalendarHeader.cjs.js.map +1 -0
  59. package/dist/components/atoms/DatePicker/CalendarHeader.d.ts +6 -0
  60. package/dist/components/atoms/DatePicker/CalendarHeader.js +2 -0
  61. package/dist/components/atoms/DatePicker/CalendarHeader.js.map +1 -0
  62. package/dist/components/atoms/DatePicker/index.cjs.js +2 -0
  63. package/dist/components/atoms/DatePicker/index.cjs.js.map +1 -0
  64. package/dist/components/atoms/DatePicker/index.d.ts +17 -0
  65. package/dist/components/atoms/DatePicker/index.js +2 -0
  66. package/dist/components/atoms/DatePicker/index.js.map +1 -0
  67. package/dist/components/atoms/FlipdishLogo/index.cjs.js +2 -0
  68. package/dist/components/atoms/FlipdishLogo/index.cjs.js.map +1 -0
  69. package/dist/components/atoms/FlipdishLogo/index.d.ts +80 -0
  70. package/dist/components/atoms/FlipdishLogo/index.js +2 -0
  71. package/dist/components/atoms/FlipdishLogo/index.js.map +1 -0
  72. package/dist/components/atoms/LinearProgress/index.cjs.js +1 -1
  73. package/dist/components/atoms/LinearProgress/index.cjs.js.map +1 -1
  74. package/dist/components/atoms/LinearProgress/index.d.ts +2 -1
  75. package/dist/components/atoms/LinearProgress/index.js +1 -1
  76. package/dist/components/atoms/LinearProgress/index.js.map +1 -1
  77. package/dist/components/atoms/Link/getLinkStyles.cjs.js +2 -0
  78. package/dist/components/atoms/Link/getLinkStyles.cjs.js.map +1 -0
  79. package/dist/components/atoms/Link/getLinkStyles.d.ts +14 -0
  80. package/dist/components/atoms/Link/getLinkStyles.js +2 -0
  81. package/dist/components/atoms/Link/getLinkStyles.js.map +1 -0
  82. package/dist/components/atoms/Link/index.cjs.js +1 -1
  83. package/dist/components/atoms/Link/index.cjs.js.map +1 -1
  84. package/dist/components/atoms/Link/index.d.ts +26 -2
  85. package/dist/components/atoms/Link/index.js +1 -1
  86. package/dist/components/atoms/Link/index.js.map +1 -1
  87. package/dist/components/atoms/MenuItem/index.cjs.js +1 -1
  88. package/dist/components/atoms/MenuItem/index.cjs.js.map +1 -1
  89. package/dist/components/atoms/MenuItem/index.d.ts +38 -2
  90. package/dist/components/atoms/MenuItem/index.js +1 -1
  91. package/dist/components/atoms/MenuItem/index.js.map +1 -1
  92. package/dist/components/atoms/Select/index.cjs.js +1 -1
  93. package/dist/components/atoms/Select/index.cjs.js.map +1 -1
  94. package/dist/components/atoms/Select/index.d.ts +1 -1
  95. package/dist/components/atoms/Select/index.js +1 -1
  96. package/dist/components/atoms/Select/index.js.map +1 -1
  97. package/dist/components/atoms/Slider/index.cjs.js +2 -0
  98. package/dist/components/atoms/Slider/index.cjs.js.map +1 -0
  99. package/dist/components/atoms/Slider/index.d.ts +17 -0
  100. package/dist/components/atoms/Slider/index.js +2 -0
  101. package/dist/components/atoms/Slider/index.js.map +1 -0
  102. package/dist/components/atoms/Slot/index.cjs.js +2 -0
  103. package/dist/components/atoms/Slot/index.cjs.js.map +1 -0
  104. package/dist/components/atoms/Slot/index.d.ts +3 -0
  105. package/dist/components/atoms/Slot/index.js +2 -0
  106. package/dist/components/atoms/Slot/index.js.map +1 -0
  107. package/dist/components/atoms/TextArea/index.cjs.js +2 -0
  108. package/dist/components/atoms/TextArea/index.cjs.js.map +1 -0
  109. package/dist/components/atoms/TextArea/index.d.ts +9 -0
  110. package/dist/components/atoms/TextArea/index.js +2 -0
  111. package/dist/components/atoms/TextArea/index.js.map +1 -0
  112. package/dist/components/atoms/TextField/index.cjs.js +1 -1
  113. package/dist/components/atoms/TextField/index.cjs.js.map +1 -1
  114. package/dist/components/atoms/TextField/index.d.ts +6 -8
  115. package/dist/components/atoms/TextField/index.js +1 -1
  116. package/dist/components/atoms/TextField/index.js.map +1 -1
  117. package/dist/components/molecules/Alert/index.cjs.js +1 -1
  118. package/dist/components/molecules/Alert/index.cjs.js.map +1 -1
  119. package/dist/components/molecules/Alert/index.js +1 -1
  120. package/dist/components/molecules/Alert/index.js.map +1 -1
  121. package/dist/components/molecules/AlertSnackbar/index.cjs.js +2 -0
  122. package/dist/components/molecules/AlertSnackbar/index.cjs.js.map +1 -0
  123. package/dist/components/molecules/AlertSnackbar/index.d.ts +56 -0
  124. package/dist/components/molecules/AlertSnackbar/index.js +2 -0
  125. package/dist/components/molecules/AlertSnackbar/index.js.map +1 -0
  126. package/dist/components/molecules/ButtonGroup/index.cjs.js +1 -1
  127. package/dist/components/molecules/ButtonGroup/index.cjs.js.map +1 -1
  128. package/dist/components/molecules/ButtonGroup/index.js +1 -1
  129. package/dist/components/molecules/ButtonGroup/index.js.map +1 -1
  130. package/dist/components/molecules/CheckboxGroup/index.cjs.js +2 -0
  131. package/dist/components/molecules/CheckboxGroup/index.cjs.js.map +1 -0
  132. package/dist/components/molecules/CheckboxGroup/index.d.ts +27 -0
  133. package/dist/components/molecules/CheckboxGroup/index.js +2 -0
  134. package/dist/components/molecules/CheckboxGroup/index.js.map +1 -0
  135. package/dist/components/molecules/Modal/index.cjs.js +1 -1
  136. package/dist/components/molecules/Modal/index.cjs.js.map +1 -1
  137. package/dist/components/molecules/Modal/index.d.ts +2 -2
  138. package/dist/components/molecules/Modal/index.js +1 -1
  139. package/dist/components/molecules/Modal/index.js.map +1 -1
  140. package/dist/components/molecules/Pagination/index.cjs.js +2 -0
  141. package/dist/components/molecules/Pagination/index.cjs.js.map +1 -0
  142. package/dist/components/molecules/Pagination/index.d.ts +27 -0
  143. package/dist/components/molecules/Pagination/index.js +2 -0
  144. package/dist/components/molecules/Pagination/index.js.map +1 -0
  145. package/dist/components/molecules/ProgressStepper/index.cjs.js +1 -1
  146. package/dist/components/molecules/ProgressStepper/index.cjs.js.map +1 -1
  147. package/dist/components/molecules/ProgressStepper/index.js +1 -1
  148. package/dist/components/molecules/ProgressStepper/index.js.map +1 -1
  149. package/dist/components/molecules/QuantitySelector/index.cjs.js +2 -0
  150. package/dist/components/molecules/QuantitySelector/index.cjs.js.map +1 -0
  151. package/dist/components/molecules/QuantitySelector/index.d.ts +47 -0
  152. package/dist/components/molecules/QuantitySelector/index.js +2 -0
  153. package/dist/components/molecules/QuantitySelector/index.js.map +1 -0
  154. package/dist/components/molecules/TextBlock/index.cjs.js +2 -0
  155. package/dist/components/molecules/TextBlock/index.cjs.js.map +1 -0
  156. package/dist/components/molecules/TextBlock/index.d.ts +49 -0
  157. package/dist/components/molecules/TextBlock/index.js +2 -0
  158. package/dist/components/molecules/TextBlock/index.js.map +1 -0
  159. package/dist/components/organisms/ImageUploadWidget/components/ImageDropZone.cjs.js +1 -1
  160. package/dist/components/organisms/ImageUploadWidget/components/ImageDropZone.cjs.js.map +1 -1
  161. package/dist/components/organisms/ImageUploadWidget/components/ImageDropZone.js +1 -1
  162. package/dist/components/organisms/ImageUploadWidget/components/ImageDropZone.js.map +1 -1
  163. package/dist/providers/DateTimeLocalizationProvider.cjs.js +1 -1
  164. package/dist/providers/DateTimeLocalizationProvider.cjs.js.map +1 -1
  165. package/dist/providers/DateTimeLocalizationProvider.d.ts +4 -5
  166. package/dist/providers/DateTimeLocalizationProvider.js +1 -1
  167. package/dist/providers/DateTimeLocalizationProvider.js.map +1 -1
  168. package/dist/themes/flipdishPublicTheme.cjs.js +1 -1
  169. package/dist/themes/flipdishPublicTheme.cjs.js.map +1 -1
  170. package/dist/themes/flipdishPublicTheme.js +1 -1
  171. package/dist/themes/flipdishPublicTheme.js.map +1 -1
  172. package/dist/themes/overrides/checkboxOverrides.cjs.js +2 -0
  173. package/dist/themes/overrides/checkboxOverrides.cjs.js.map +1 -0
  174. package/dist/themes/overrides/checkboxOverrides.d.ts +5 -0
  175. package/dist/themes/overrides/checkboxOverrides.js +2 -0
  176. package/dist/themes/overrides/checkboxOverrides.js.map +1 -0
  177. package/dist/themes/overrides/formControlLabelOverrides.cjs.js +2 -0
  178. package/dist/themes/overrides/formControlLabelOverrides.cjs.js.map +1 -0
  179. package/dist/themes/overrides/formControlLabelOverrides.d.ts +5 -0
  180. package/dist/themes/overrides/formControlLabelOverrides.js +2 -0
  181. package/dist/themes/overrides/formControlLabelOverrides.js.map +1 -0
  182. package/dist/themes/overrides/formHelperTextOverrides.cjs.js +1 -1
  183. package/dist/themes/overrides/formHelperTextOverrides.cjs.js.map +1 -1
  184. package/dist/themes/overrides/formHelperTextOverrides.d.ts +1 -1
  185. package/dist/themes/overrides/formHelperTextOverrides.js +1 -1
  186. package/dist/themes/overrides/formHelperTextOverrides.js.map +1 -1
  187. package/dist/themes/overrides/formLabelOverrides.cjs.js +2 -0
  188. package/dist/themes/overrides/formLabelOverrides.cjs.js.map +1 -0
  189. package/dist/themes/overrides/formLabelOverrides.d.ts +5 -0
  190. package/dist/themes/overrides/formLabelOverrides.js +2 -0
  191. package/dist/themes/overrides/formLabelOverrides.js.map +1 -0
  192. package/dist/themes/overrides/inputBaseOverrides.cjs.js +1 -1
  193. package/dist/themes/overrides/inputBaseOverrides.cjs.js.map +1 -1
  194. package/dist/themes/overrides/inputBaseOverrides.js +1 -1
  195. package/dist/themes/overrides/inputBaseOverrides.js.map +1 -1
  196. package/dist/themes/overrides/listItemTextOverrides.cjs.js +2 -0
  197. package/dist/themes/overrides/listItemTextOverrides.cjs.js.map +1 -0
  198. package/dist/themes/overrides/listItemTextOverrides.d.ts +5 -0
  199. package/dist/themes/overrides/listItemTextOverrides.js +2 -0
  200. package/dist/themes/overrides/listItemTextOverrides.js.map +1 -0
  201. package/dist/themes/overrides/menuItemOverrides.cjs.js +1 -1
  202. package/dist/themes/overrides/menuItemOverrides.cjs.js.map +1 -1
  203. package/dist/themes/overrides/menuItemOverrides.d.ts +1 -1
  204. package/dist/themes/overrides/menuItemOverrides.js +1 -1
  205. package/dist/themes/overrides/menuItemOverrides.js.map +1 -1
  206. package/dist/themes/overrides/menuOverrides.cjs.js +2 -0
  207. package/dist/themes/overrides/menuOverrides.cjs.js.map +1 -0
  208. package/dist/themes/overrides/menuOverrides.d.ts +5 -0
  209. package/dist/themes/overrides/menuOverrides.js +2 -0
  210. package/dist/themes/overrides/menuOverrides.js.map +1 -0
  211. package/dist/themes/overrides/selectOverrides.cjs.js +1 -1
  212. package/dist/themes/overrides/selectOverrides.cjs.js.map +1 -1
  213. package/dist/themes/overrides/selectOverrides.js +1 -1
  214. package/dist/themes/overrides/selectOverrides.js.map +1 -1
  215. package/dist/themes/overrides/textFieldOverrides.cjs.js +1 -1
  216. package/dist/themes/overrides/textFieldOverrides.cjs.js.map +1 -1
  217. package/dist/themes/overrides/textFieldOverrides.d.ts +2 -2
  218. package/dist/themes/overrides/textFieldOverrides.js +1 -1
  219. package/dist/themes/overrides/textFieldOverrides.js.map +1 -1
  220. package/dist/themes/theme.d.ts +6 -6
  221. package/dist/utilities/numericUtilities.cjs.js +2 -0
  222. package/dist/utilities/numericUtilities.cjs.js.map +1 -0
  223. package/dist/utilities/numericUtilities.d.ts +10 -0
  224. package/dist/utilities/numericUtilities.js +2 -0
  225. package/dist/utilities/numericUtilities.js.map +1 -0
  226. package/package.json +6 -3
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("@mui/material/styles/createTheme"),r=require("../components/atoms/Button/buttonThemeOverrides.cjs.js"),t=require("../components/atoms/IconButton/iconButtonThemeOverrides.cjs.js"),s=require("../icons/Cancel/index.cjs.js"),i=require("./overrides/formHelperTextOverrides.cjs.js"),o=require("./overrides/inputBaseOverrides.cjs.js"),a=require("./overrides/inputLabelOverrides.cjs.js"),n=require("./overrides/menuItemOverrides.cjs.js"),d=require("./overrides/selectOverrides.cjs.js"),p=require("./overrides/textFieldOverrides.cjs.js"),u=require("./tokens/breakpoints/breakpoints.cjs.js"),l=require("./tokens/colours/semantic.cjs.js"),c=require("./tokens/radius/radius.cjs.js"),h=require("./tokens/shadows/shadows.cjs.js"),v=require("./tokens/typography/variant-mapping.cjs.js"),y=require("./typography.cjs.js");const g=g=>{const m={typography:y.typography,palette:"light"===g?l.lightColours:l.darkColours,radius:c.radius,breakpoints:{values:u.breakpointValues}},j=e(m);return Object.keys(y.typography).forEach((e=>{const r=e.split(/(?=[A-Z])/)[0],t=e;j.typography[t]={...j.typography[t],[j.breakpoints.down("tablet")]:{...y.getMobileTextStyle(r)}}})),e({...m,typography:j.typography,shape:{borderRadius:4},customShadows:{...h.shadows},components:{MuiAlert:{defaultProps:{components:{CloseIcon:s}},styleOverrides:{root:{borderRadius:"8px",padding:"24px"},icon:{marginRight:"12px",padding:0},action:{padding:0,"& button":{marginTop:"-5px"}},message:{padding:0}}},MuiButton:r.buttonStyleOverrides(j),MuiIconButton:t.iconButtonStyleOverrides(),MuiCard:{styleOverrides:{root:{boxShadow:"none",borderWidth:"1px",borderStyle:"solid",borderColor:j.palette.divider}}},MuiChip:{styleOverrides:{root:{fontWeight:"bold",paddingLeft:"6px",paddingRight:"6px"}}},MuiListItemButton:{styleOverrides:{root:{"&:hover":{backgroundColor:j.palette.semantic.fill["fill-primary-weak"]},"&:not(:last-child)":{borderBottom:`1px solid ${j.palette.semantic.stroke["stroke-weak"]}`}}}},MuiTableRow:{styleOverrides:{root:{"&.MuiTableRow-hover:hover":{backgroundColor:j.palette.semantic.fill["fill-secondary"],cursor:"pointer"}}}},MuiTypography:{defaultProps:{variantMapping:v.typographyVariantMapping}},MuiFormHelperText:i.formHelperTextOverrides(j),MuiInputBase:o.inputBaseOverrides(j),MuiInputLabel:a.inputLabelOverrides(j),MuiMenuItem:n.menuItemOverrides(j),MuiSelect:d.selectOverrides(j),MuiTextField:p.textFieldOverrides()}})},m=g("light"),j=g("dark");exports.darkTheme=j,exports.lightTheme=m;
1
+ "use strict";var e=require("@mui/material/styles/createTheme"),r=require("../components/atoms/Button/buttonThemeOverrides.cjs.js"),s=require("../components/atoms/IconButton/iconButtonThemeOverrides.cjs.js"),i=require("../icons/Cancel/index.cjs.js"),t=require("./overrides/checkboxOverrides.cjs.js"),o=require("./overrides/formControlLabelOverrides.cjs.js"),a=require("./overrides/formHelperTextOverrides.cjs.js"),d=require("./overrides/formLabelOverrides.cjs.js"),u=require("./overrides/inputBaseOverrides.cjs.js"),n=require("./overrides/inputLabelOverrides.cjs.js"),p=require("./overrides/listItemTextOverrides.cjs.js"),l=require("./overrides/menuItemOverrides.cjs.js"),c=require("./overrides/menuOverrides.cjs.js"),v=require("./overrides/selectOverrides.cjs.js"),m=require("./overrides/textFieldOverrides.cjs.js"),h=require("./tokens/breakpoints/breakpoints.cjs.js"),j=require("./tokens/colours/semantic.cjs.js"),b=require("./tokens/radius/radius.cjs.js"),y=require("./tokens/shadows/shadows.cjs.js"),g=require("./tokens/typography/variant-mapping.cjs.js"),O=require("./typography.cjs.js");const x=x=>{const M={typography:O.typography,palette:"light"===x?j.lightColours:j.darkColours,radius:b.radius,breakpoints:{values:h.breakpointValues},customShadows:{...y.shadows}},k=e(M);return Object.keys(O.typography).forEach((e=>{const r=e.split(/(?=[A-Z])/)[0],s=e;k.typography[s]={...k.typography[s],[k.breakpoints.down("tablet")]:{...O.getMobileTextStyle(r)}}})),e({...M,typography:k.typography,shape:{borderRadius:4},customShadows:k.customShadows,components:{MuiAlert:{defaultProps:{components:{CloseIcon:i}},styleOverrides:{root:{borderRadius:"8px",padding:"24px"},icon:{marginRight:"12px",padding:0},action:{padding:0,"& button":{marginTop:"-5px"}},message:{padding:0}}},MuiButton:r.buttonStyleOverrides(k),MuiIconButton:s.iconButtonStyleOverrides(),MuiCard:{styleOverrides:{root:{boxShadow:"none",borderWidth:"1px",borderStyle:"solid",borderColor:k.palette.divider}}},MuiChip:{styleOverrides:{root:{fontWeight:"bold",paddingLeft:"6px",paddingRight:"6px"}}},MuiListItemButton:{styleOverrides:{root:{"&:hover":{backgroundColor:k.palette.semantic.fill["fill-primary-weak"]},"&:not(:last-child)":{borderBottom:`1px solid ${k.palette.semantic.stroke["stroke-weak"]}`}}}},MuiTableRow:{styleOverrides:{root:{"&.MuiTableRow-hover:hover":{backgroundColor:k.palette.semantic.fill["fill-secondary"],cursor:"pointer"}}}},MuiTypography:{defaultProps:{variantMapping:g.typographyVariantMapping}},MuiFormHelperText:a.formHelperTextOverrides(k),MuiInputBase:u.inputBaseOverrides(k),MuiInputLabel:n.inputLabelOverrides(k),MuiListItemText:p.listItemTextOverrides(k),MuiMenu:c.menuOverrides(k),MuiMenuItem:l.menuItemOverrides(k),MuiSelect:v.selectOverrides(k),MuiTextField:m.textFieldOverrides(k),MuiFormControlLabel:o.formControlLabelOverrides(k),MuiFormLabel:d.formLabelOverrides(k),MuiCheckbox:t.checkboxOverrides(k)}})},M=x("light"),k=x("dark");exports.darkTheme=k,exports.lightTheme=M;
2
2
  //# sourceMappingURL=flipdishPublicTheme.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flipdishPublicTheme.cjs.js","sources":["../../src/themes/flipdishPublicTheme.ts"],"sourcesContent":["import createTheme, { type Theme, type ThemeOptions } from '@mui/material/styles/createTheme';\n\nimport { buttonStyleOverrides } from '../components/atoms/Button/buttonThemeOverrides';\nimport { iconButtonStyleOverrides } from '../components/atoms/IconButton/iconButtonThemeOverrides';\nimport CancelIcon from '../icons/Cancel';\nimport { formHelperTextOverrides } from './overrides/formHelperTextOverrides';\nimport { inputBaseOverrides } from './overrides/inputBaseOverrides';\nimport { inputLabelOverrides } from './overrides/inputLabelOverrides';\nimport { menuItemOverrides } from './overrides/menuItemOverrides';\nimport { selectOverrides } from './overrides/selectOverrides';\nimport { textFieldOverrides } from './overrides/textFieldOverrides';\nimport { breakpointValues } from './tokens/breakpoints/breakpoints';\nimport { darkColours, lightColours } from './tokens/colours/semantic';\nimport { radius } from './tokens/radius/radius';\nimport { shadows } from './tokens/shadows/shadows';\nimport { fontSize } from './tokens/typography/font-size';\nimport { typographyVariantMapping } from './tokens/typography/variant-mapping';\nimport { getMobileTextStyle, typography } from './typography';\n\nconst createFlipdishThemeFactory = (mode: 'dark' | 'light'): Theme => {\n const themeOptions: ThemeOptions = {\n typography,\n palette: mode === 'light' ? lightColours : darkColours,\n radius,\n breakpoints: {\n values: breakpointValues,\n },\n };\n const baseTheme = createTheme(themeOptions);\n\n /*\n Add mobile text styles to typography\n Has to be done using media queries, otherwise it isn't responsive :(\n https://mui.com/material-ui/customization/typography/#responsive-font-sizes\n */\n Object.keys(typography).forEach((key) => {\n // only key before the suffix split by capital letter (h1Strong -> h1)\n const keyWithoutVariantSuffix = key.split(/(?=[A-Z])/)[0];\n const typographyKey = key as keyof typeof typography;\n baseTheme.typography[typographyKey] = {\n ...baseTheme.typography[typographyKey],\n [baseTheme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle(keyWithoutVariantSuffix as keyof (typeof fontSize)['mobile']),\n },\n };\n });\n\n // Create final theme with component overrides and additional configurations\n return createTheme({\n ...themeOptions,\n typography: baseTheme.typography,\n shape: {\n borderRadius: 4,\n },\n customShadows: {\n ...shadows,\n },\n components: {\n MuiAlert: {\n defaultProps: {\n components: {\n CloseIcon: CancelIcon,\n },\n },\n styleOverrides: {\n root: {\n // TODO: Replace with borderRadius from tokens when implemented\n borderRadius: '8px',\n // TODO: Replace with spacing from tokens when implemented\n padding: '24px',\n },\n icon: {\n // TODO: Replace with spacing from tokens when implemented\n marginRight: '12px',\n padding: 0,\n },\n action: {\n padding: 0,\n '& button': {\n marginTop: '-5px',\n },\n },\n message: {\n padding: 0,\n },\n },\n },\n MuiButton: buttonStyleOverrides(baseTheme),\n MuiIconButton: iconButtonStyleOverrides(),\n MuiCard: {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: baseTheme.palette.divider,\n },\n },\n },\n MuiChip: {\n styleOverrides: {\n root: {\n fontWeight: 'bold',\n paddingLeft: '6px',\n paddingRight: '6px',\n },\n },\n },\n MuiListItemButton: {\n styleOverrides: {\n root: {\n '&:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-primary-weak'],\n },\n '&:not(:last-child)': {\n borderBottom: `1px solid ${baseTheme.palette.semantic.stroke['stroke-weak']}`,\n },\n },\n },\n },\n MuiTableRow: {\n styleOverrides: {\n root: {\n '&.MuiTableRow-hover:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-secondary'],\n cursor: 'pointer',\n },\n },\n },\n },\n MuiTypography: {\n defaultProps: {\n variantMapping: typographyVariantMapping,\n },\n },\n MuiFormHelperText: formHelperTextOverrides(baseTheme),\n MuiInputBase: inputBaseOverrides(baseTheme),\n MuiInputLabel: inputLabelOverrides(baseTheme),\n MuiMenuItem: menuItemOverrides(baseTheme),\n MuiSelect: selectOverrides(baseTheme),\n MuiTextField: textFieldOverrides(),\n },\n });\n};\n\nexport const lightTheme = createFlipdishThemeFactory('light');\nexport const darkTheme = createFlipdishThemeFactory('dark');\n"],"names":["createFlipdishThemeFactory","mode","themeOptions","typography","palette","lightColours","darkColours","radius","breakpoints","values","breakpointValues","baseTheme","createTheme","Object","keys","forEach","key","keyWithoutVariantSuffix","split","typographyKey","down","getMobileTextStyle","shape","borderRadius","customShadows","shadows","components","MuiAlert","defaultProps","CloseIcon","CancelIcon","styleOverrides","root","padding","icon","marginRight","action","marginTop","message","MuiButton","buttonStyleOverrides","MuiIconButton","iconButtonStyleOverrides","MuiCard","boxShadow","borderWidth","borderStyle","borderColor","divider","MuiChip","fontWeight","paddingLeft","paddingRight","MuiListItemButton","backgroundColor","semantic","fill","borderBottom","stroke","MuiTableRow","cursor","MuiTypography","variantMapping","typographyVariantMapping","MuiFormHelperText","formHelperTextOverrides","MuiInputBase","inputBaseOverrides","MuiInputLabel","inputLabelOverrides","MuiMenuItem","menuItemOverrides","MuiSelect","selectOverrides","MuiTextField","textFieldOverrides","lightTheme","darkTheme"],"mappings":"i0BAmBA,MAAMA,EAA8BC,IAClC,MAAMC,EAA6B,YACjCC,EAAAA,WACAC,QAAkB,UAATH,EAAmBI,EAAAA,aAAeC,EAAAA,mBAC3CC,EAAAA,OACAC,YAAa,CACXC,OAAQC,EAAAA,mBAGNC,EAAYC,EAAYV,GAoB9B,OAbAW,OAAOC,KAAKX,EAAAA,YAAYY,SAASC,IAE/B,MAAMC,EAA0BD,EAAIE,MAAM,aAAa,GACjDC,EAAgBH,EACtBL,EAAUR,WAAWgB,GAAiB,IACjCR,EAAUR,WAAWgB,GACxB,CAACR,EAAUH,YAAYY,KAAK,WAAY,IACnCC,EAAAA,mBAAmBJ,QAMrBL,EAAY,IACdV,EACHC,WAAYQ,EAAUR,WACtBmB,MAAO,CACLC,aAAc,GAEhBC,cAAe,IACVC,EAAAA,SAELC,WAAY,CACVC,SAAU,CACRC,aAAc,CACZF,WAAY,CACVG,UAAWC,IAGfC,eAAgB,CACdC,KAAM,CAEJT,aAAc,MAEdU,QAAS,QAEXC,KAAM,CAEJC,YAAa,OACbF,QAAS,GAEXG,OAAQ,CACNH,QAAS,EACT,WAAY,CACVI,UAAW,SAGfC,QAAS,CACPL,QAAS,KAIfM,UAAWC,EAAAA,qBAAqB7B,GAChC8B,cAAeC,EAAAA,2BACfC,QAAS,CACPZ,eAAgB,CACdC,KAAM,CACJY,UAAW,OACXC,YAAa,MACbC,YAAa,QACbC,YAAapC,EAAUP,QAAQ4C,WAIrCC,QAAS,CACPlB,eAAgB,CACdC,KAAM,CACJkB,WAAY,OACZC,YAAa,MACbC,aAAc,SAIpBC,kBAAmB,CACjBtB,eAAgB,CACdC,KAAM,CACJ,UAAW,CACTsB,gBAAiB3C,EAAUP,QAAQmD,SAASC,KAAK,sBAEnD,qBAAsB,CACpBC,aAAc,aAAa9C,EAAUP,QAAQmD,SAASG,OAAO,qBAKrEC,YAAa,CACX5B,eAAgB,CACdC,KAAM,CACJ,4BAA6B,CAC3BsB,gBAAiB3C,EAAUP,QAAQmD,SAASC,KAAK,kBACjDI,OAAQ,cAKhBC,cAAe,CACbjC,aAAc,CACZkC,eAAgBC,EAAAA,2BAGpBC,kBAAmBC,EAAAA,wBAAwBtD,GAC3CuD,aAAcC,EAAAA,mBAAmBxD,GACjCyD,cAAeC,EAAAA,oBAAoB1D,GACnC2D,YAAaC,EAAAA,kBAAkB5D,GAC/B6D,UAAWC,EAAAA,gBAAgB9D,GAC3B+D,aAAcC,EAAAA,yBAKPC,EAAa5E,EAA2B,SACxC6E,EAAY7E,EAA2B"}
1
+ {"version":3,"file":"flipdishPublicTheme.cjs.js","sources":["../../src/themes/flipdishPublicTheme.ts"],"sourcesContent":["import createTheme, { type Theme, type ThemeOptions } from '@mui/material/styles/createTheme';\n\nimport { buttonStyleOverrides } from '../components/atoms/Button/buttonThemeOverrides';\nimport { iconButtonStyleOverrides } from '../components/atoms/IconButton/iconButtonThemeOverrides';\nimport CancelIcon from '../icons/Cancel';\nimport { checkboxOverrides } from './overrides/checkboxOverrides';\nimport { formControlLabelOverrides } from './overrides/formControlLabelOverrides';\nimport { formHelperTextOverrides } from './overrides/formHelperTextOverrides';\nimport { formLabelOverrides } from './overrides/formLabelOverrides';\nimport { inputBaseOverrides } from './overrides/inputBaseOverrides';\nimport { inputLabelOverrides } from './overrides/inputLabelOverrides';\nimport { listItemTextOverrides } from './overrides/listItemTextOverrides';\nimport { menuItemOverrides } from './overrides/menuItemOverrides';\nimport { menuOverrides } from './overrides/menuOverrides';\nimport { selectOverrides } from './overrides/selectOverrides';\nimport { textFieldOverrides } from './overrides/textFieldOverrides';\nimport { breakpointValues } from './tokens/breakpoints/breakpoints';\nimport { darkColours, lightColours } from './tokens/colours/semantic';\nimport { radius } from './tokens/radius/radius';\nimport { shadows } from './tokens/shadows/shadows';\nimport { fontSize } from './tokens/typography/font-size';\nimport { typographyVariantMapping } from './tokens/typography/variant-mapping';\nimport { getMobileTextStyle, typography } from './typography';\n\nconst createFlipdishThemeFactory = (mode: 'dark' | 'light'): Theme => {\n const themeOptions: ThemeOptions = {\n typography,\n palette: mode === 'light' ? lightColours : darkColours,\n radius,\n breakpoints: {\n values: breakpointValues,\n },\n customShadows: {\n ...shadows,\n },\n };\n const baseTheme = createTheme(themeOptions);\n\n /*\n Add mobile text styles to typography\n Has to be done using media queries, otherwise it isn't responsive :(\n https://mui.com/material-ui/customization/typography/#responsive-font-sizes\n */\n Object.keys(typography).forEach((key) => {\n // only key before the suffix split by capital letter (h1Strong -> h1)\n const keyWithoutVariantSuffix = key.split(/(?=[A-Z])/)[0];\n const typographyKey = key as keyof typeof typography;\n baseTheme.typography[typographyKey] = {\n ...baseTheme.typography[typographyKey],\n [baseTheme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle(keyWithoutVariantSuffix as keyof (typeof fontSize)['mobile']),\n },\n };\n });\n\n // Create final theme with component overrides and additional configurations\n return createTheme({\n ...themeOptions,\n typography: baseTheme.typography,\n shape: {\n borderRadius: 4,\n },\n customShadows: baseTheme.customShadows,\n components: {\n MuiAlert: {\n defaultProps: {\n components: {\n CloseIcon: CancelIcon,\n },\n },\n styleOverrides: {\n root: {\n // TODO: Replace with borderRadius from tokens when implemented\n borderRadius: '8px',\n // TODO: Replace with spacing from tokens when implemented\n padding: '24px',\n },\n icon: {\n // TODO: Replace with spacing from tokens when implemented\n marginRight: '12px',\n padding: 0,\n },\n action: {\n padding: 0,\n '& button': {\n marginTop: '-5px',\n },\n },\n message: {\n padding: 0,\n },\n },\n },\n MuiButton: buttonStyleOverrides(baseTheme),\n MuiIconButton: iconButtonStyleOverrides(),\n MuiCard: {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: baseTheme.palette.divider,\n },\n },\n },\n MuiChip: {\n styleOverrides: {\n root: {\n fontWeight: 'bold',\n paddingLeft: '6px',\n paddingRight: '6px',\n },\n },\n },\n MuiListItemButton: {\n styleOverrides: {\n root: {\n '&:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-primary-weak'],\n },\n '&:not(:last-child)': {\n borderBottom: `1px solid ${baseTheme.palette.semantic.stroke['stroke-weak']}`,\n },\n },\n },\n },\n MuiTableRow: {\n styleOverrides: {\n root: {\n '&.MuiTableRow-hover:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-secondary'],\n cursor: 'pointer',\n },\n },\n },\n },\n MuiTypography: {\n defaultProps: {\n variantMapping: typographyVariantMapping,\n },\n },\n MuiFormHelperText: formHelperTextOverrides(baseTheme),\n MuiInputBase: inputBaseOverrides(baseTheme),\n MuiInputLabel: inputLabelOverrides(baseTheme),\n MuiListItemText: listItemTextOverrides(baseTheme),\n MuiMenu: menuOverrides(baseTheme),\n MuiMenuItem: menuItemOverrides(baseTheme),\n MuiSelect: selectOverrides(baseTheme),\n MuiTextField: textFieldOverrides(baseTheme),\n MuiFormControlLabel: formControlLabelOverrides(baseTheme),\n MuiFormLabel: formLabelOverrides(baseTheme),\n MuiCheckbox: checkboxOverrides(baseTheme),\n },\n });\n};\n\nexport const lightTheme = createFlipdishThemeFactory('light');\nexport const darkTheme = createFlipdishThemeFactory('dark');\n"],"names":["createFlipdishThemeFactory","mode","themeOptions","typography","palette","lightColours","darkColours","radius","breakpoints","values","breakpointValues","customShadows","shadows","baseTheme","createTheme","Object","keys","forEach","key","keyWithoutVariantSuffix","split","typographyKey","down","getMobileTextStyle","shape","borderRadius","components","MuiAlert","defaultProps","CloseIcon","CancelIcon","styleOverrides","root","padding","icon","marginRight","action","marginTop","message","MuiButton","buttonStyleOverrides","MuiIconButton","iconButtonStyleOverrides","MuiCard","boxShadow","borderWidth","borderStyle","borderColor","divider","MuiChip","fontWeight","paddingLeft","paddingRight","MuiListItemButton","backgroundColor","semantic","fill","borderBottom","stroke","MuiTableRow","cursor","MuiTypography","variantMapping","typographyVariantMapping","MuiFormHelperText","formHelperTextOverrides","MuiInputBase","inputBaseOverrides","MuiInputLabel","inputLabelOverrides","MuiListItemText","listItemTextOverrides","MuiMenu","menuOverrides","MuiMenuItem","menuItemOverrides","MuiSelect","selectOverrides","MuiTextField","textFieldOverrides","MuiFormControlLabel","formControlLabelOverrides","MuiFormLabel","formLabelOverrides","MuiCheckbox","checkboxOverrides","lightTheme","darkTheme"],"mappings":"okCAwBA,MAAMA,EAA8BC,IAClC,MAAMC,EAA6B,YACjCC,EAAAA,WACAC,QAAkB,UAATH,EAAmBI,EAAAA,aAAeC,EAAAA,mBAC3CC,EAAAA,OACAC,YAAa,CACXC,OAAQC,EAAAA,kBAEVC,cAAe,IACVC,EAAAA,UAGDC,EAAYC,EAAYZ,GAoB9B,OAbAa,OAAOC,KAAKb,EAAAA,YAAYc,SAASC,IAE/B,MAAMC,EAA0BD,EAAIE,MAAM,aAAa,GACjDC,EAAgBH,EACtBL,EAAUV,WAAWkB,GAAiB,IACjCR,EAAUV,WAAWkB,GACxB,CAACR,EAAUL,YAAYc,KAAK,WAAY,IACnCC,EAAAA,mBAAmBJ,QAMrBL,EAAY,IACdZ,EACHC,WAAYU,EAAUV,WACtBqB,MAAO,CACLC,aAAc,GAEhBd,cAAeE,EAAUF,cACzBe,WAAY,CACVC,SAAU,CACRC,aAAc,CACZF,WAAY,CACVG,UAAWC,IAGfC,eAAgB,CACdC,KAAM,CAEJP,aAAc,MAEdQ,QAAS,QAEXC,KAAM,CAEJC,YAAa,OACbF,QAAS,GAEXG,OAAQ,CACNH,QAAS,EACT,WAAY,CACVI,UAAW,SAGfC,QAAS,CACPL,QAAS,KAIfM,UAAWC,EAAAA,qBAAqB3B,GAChC4B,cAAeC,EAAAA,2BACfC,QAAS,CACPZ,eAAgB,CACdC,KAAM,CACJY,UAAW,OACXC,YAAa,MACbC,YAAa,QACbC,YAAalC,EAAUT,QAAQ4C,WAIrCC,QAAS,CACPlB,eAAgB,CACdC,KAAM,CACJkB,WAAY,OACZC,YAAa,MACbC,aAAc,SAIpBC,kBAAmB,CACjBtB,eAAgB,CACdC,KAAM,CACJ,UAAW,CACTsB,gBAAiBzC,EAAUT,QAAQmD,SAASC,KAAK,sBAEnD,qBAAsB,CACpBC,aAAc,aAAa5C,EAAUT,QAAQmD,SAASG,OAAO,qBAKrEC,YAAa,CACX5B,eAAgB,CACdC,KAAM,CACJ,4BAA6B,CAC3BsB,gBAAiBzC,EAAUT,QAAQmD,SAASC,KAAK,kBACjDI,OAAQ,cAKhBC,cAAe,CACbjC,aAAc,CACZkC,eAAgBC,EAAAA,2BAGpBC,kBAAmBC,EAAAA,wBAAwBpD,GAC3CqD,aAAcC,EAAAA,mBAAmBtD,GACjCuD,cAAeC,EAAAA,oBAAoBxD,GACnCyD,gBAAiBC,EAAAA,sBAAsB1D,GACvC2D,QAASC,EAAAA,cAAc5D,GACvB6D,YAAaC,EAAAA,kBAAkB9D,GAC/B+D,UAAWC,EAAAA,gBAAgBhE,GAC3BiE,aAAcC,EAAAA,mBAAmBlE,GACjCmE,oBAAqBC,EAAAA,0BAA0BpE,GAC/CqE,aAAcC,EAAAA,mBAAmBtE,GACjCuE,YAAaC,EAAAA,kBAAkBxE,OAKxByE,EAAatF,EAA2B,SACxCuF,EAAYvF,EAA2B"}
@@ -1,2 +1,2 @@
1
- import o from"@mui/material/styles/createTheme";import{buttonStyleOverrides as e}from"../components/atoms/Button/buttonThemeOverrides.js";import{iconButtonStyleOverrides as r}from"../components/atoms/IconButton/iconButtonThemeOverrides.js";import t from"../icons/Cancel/index.js";import{formHelperTextOverrides as i}from"./overrides/formHelperTextOverrides.js";import{inputBaseOverrides as s}from"./overrides/inputBaseOverrides.js";import{inputLabelOverrides as p}from"./overrides/inputLabelOverrides.js";import{menuItemOverrides as a}from"./overrides/menuItemOverrides.js";import{selectOverrides as n}from"./overrides/selectOverrides.js";import{textFieldOverrides as d}from"./overrides/textFieldOverrides.js";import{breakpointValues as m}from"./tokens/breakpoints/breakpoints.js";import{lightColours as l,darkColours as u}from"./tokens/colours/semantic.js";import{radius as c}from"./tokens/radius/radius.js";import{shadows as h}from"./tokens/shadows/shadows.js";import{typographyVariantMapping as f}from"./tokens/typography/variant-mapping.js";import{typography as g,getMobileTextStyle as v}from"./typography.js";const y=y=>{const b={typography:g,palette:"light"===y?l:u,radius:c,breakpoints:{values:m}},k=o(b);return Object.keys(g).forEach((o=>{const e=o.split(/(?=[A-Z])/)[0],r=o;k.typography[r]={...k.typography[r],[k.breakpoints.down("tablet")]:{...v(e)}}})),o({...b,typography:k.typography,shape:{borderRadius:4},customShadows:{...h},components:{MuiAlert:{defaultProps:{components:{CloseIcon:t}},styleOverrides:{root:{borderRadius:"8px",padding:"24px"},icon:{marginRight:"12px",padding:0},action:{padding:0,"& button":{marginTop:"-5px"}},message:{padding:0}}},MuiButton:e(k),MuiIconButton:r(),MuiCard:{styleOverrides:{root:{boxShadow:"none",borderWidth:"1px",borderStyle:"solid",borderColor:k.palette.divider}}},MuiChip:{styleOverrides:{root:{fontWeight:"bold",paddingLeft:"6px",paddingRight:"6px"}}},MuiListItemButton:{styleOverrides:{root:{"&:hover":{backgroundColor:k.palette.semantic.fill["fill-primary-weak"]},"&:not(:last-child)":{borderBottom:`1px solid ${k.palette.semantic.stroke["stroke-weak"]}`}}}},MuiTableRow:{styleOverrides:{root:{"&.MuiTableRow-hover:hover":{backgroundColor:k.palette.semantic.fill["fill-secondary"],cursor:"pointer"}}}},MuiTypography:{defaultProps:{variantMapping:f}},MuiFormHelperText:i(k),MuiInputBase:s(k),MuiInputLabel:p(k),MuiMenuItem:a(k),MuiSelect:n(k),MuiTextField:d()}})},b=y("light"),k=y("dark");export{k as darkTheme,b as lightTheme};
1
+ import r from"@mui/material/styles/createTheme";import{buttonStyleOverrides as e}from"../components/atoms/Button/buttonThemeOverrides.js";import{iconButtonStyleOverrides as o}from"../components/atoms/IconButton/iconButtonThemeOverrides.js";import t from"../icons/Cancel/index.js";import{checkboxOverrides as i}from"./overrides/checkboxOverrides.js";import{formControlLabelOverrides as s}from"./overrides/formControlLabelOverrides.js";import{formHelperTextOverrides as p}from"./overrides/formHelperTextOverrides.js";import{formLabelOverrides as a}from"./overrides/formLabelOverrides.js";import{inputBaseOverrides as m}from"./overrides/inputBaseOverrides.js";import{inputLabelOverrides as d}from"./overrides/inputLabelOverrides.js";import{listItemTextOverrides as n}from"./overrides/listItemTextOverrides.js";import{menuItemOverrides as l}from"./overrides/menuItemOverrides.js";import{menuOverrides as u}from"./overrides/menuOverrides.js";import{selectOverrides as c}from"./overrides/selectOverrides.js";import{textFieldOverrides as v}from"./overrides/textFieldOverrides.js";import{breakpointValues as f}from"./tokens/breakpoints/breakpoints.js";import{lightColours as h,darkColours as b}from"./tokens/colours/semantic.js";import{radius as g}from"./tokens/radius/radius.js";import{shadows as y}from"./tokens/shadows/shadows.js";import{typographyVariantMapping as M}from"./tokens/typography/variant-mapping.js";import{typography as j,getMobileTextStyle as k}from"./typography.js";const x=x=>{const O={typography:j,palette:"light"===x?h:b,radius:g,breakpoints:{values:f},customShadows:{...y}},T=r(O);return Object.keys(j).forEach((r=>{const e=r.split(/(?=[A-Z])/)[0],o=r;T.typography[o]={...T.typography[o],[T.breakpoints.down("tablet")]:{...k(e)}}})),r({...O,typography:T.typography,shape:{borderRadius:4},customShadows:T.customShadows,components:{MuiAlert:{defaultProps:{components:{CloseIcon:t}},styleOverrides:{root:{borderRadius:"8px",padding:"24px"},icon:{marginRight:"12px",padding:0},action:{padding:0,"& button":{marginTop:"-5px"}},message:{padding:0}}},MuiButton:e(T),MuiIconButton:o(),MuiCard:{styleOverrides:{root:{boxShadow:"none",borderWidth:"1px",borderStyle:"solid",borderColor:T.palette.divider}}},MuiChip:{styleOverrides:{root:{fontWeight:"bold",paddingLeft:"6px",paddingRight:"6px"}}},MuiListItemButton:{styleOverrides:{root:{"&:hover":{backgroundColor:T.palette.semantic.fill["fill-primary-weak"]},"&:not(:last-child)":{borderBottom:`1px solid ${T.palette.semantic.stroke["stroke-weak"]}`}}}},MuiTableRow:{styleOverrides:{root:{"&.MuiTableRow-hover:hover":{backgroundColor:T.palette.semantic.fill["fill-secondary"],cursor:"pointer"}}}},MuiTypography:{defaultProps:{variantMapping:M}},MuiFormHelperText:p(T),MuiInputBase:m(T),MuiInputLabel:d(T),MuiListItemText:n(T),MuiMenu:u(T),MuiMenuItem:l(T),MuiSelect:c(T),MuiTextField:v(T),MuiFormControlLabel:s(T),MuiFormLabel:a(T),MuiCheckbox:i(T)}})},O=x("light"),T=x("dark");export{T as darkTheme,O as lightTheme};
2
2
  //# sourceMappingURL=flipdishPublicTheme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flipdishPublicTheme.js","sources":["../../src/themes/flipdishPublicTheme.ts"],"sourcesContent":["import createTheme, { type Theme, type ThemeOptions } from '@mui/material/styles/createTheme';\n\nimport { buttonStyleOverrides } from '../components/atoms/Button/buttonThemeOverrides';\nimport { iconButtonStyleOverrides } from '../components/atoms/IconButton/iconButtonThemeOverrides';\nimport CancelIcon from '../icons/Cancel';\nimport { formHelperTextOverrides } from './overrides/formHelperTextOverrides';\nimport { inputBaseOverrides } from './overrides/inputBaseOverrides';\nimport { inputLabelOverrides } from './overrides/inputLabelOverrides';\nimport { menuItemOverrides } from './overrides/menuItemOverrides';\nimport { selectOverrides } from './overrides/selectOverrides';\nimport { textFieldOverrides } from './overrides/textFieldOverrides';\nimport { breakpointValues } from './tokens/breakpoints/breakpoints';\nimport { darkColours, lightColours } from './tokens/colours/semantic';\nimport { radius } from './tokens/radius/radius';\nimport { shadows } from './tokens/shadows/shadows';\nimport { fontSize } from './tokens/typography/font-size';\nimport { typographyVariantMapping } from './tokens/typography/variant-mapping';\nimport { getMobileTextStyle, typography } from './typography';\n\nconst createFlipdishThemeFactory = (mode: 'dark' | 'light'): Theme => {\n const themeOptions: ThemeOptions = {\n typography,\n palette: mode === 'light' ? lightColours : darkColours,\n radius,\n breakpoints: {\n values: breakpointValues,\n },\n };\n const baseTheme = createTheme(themeOptions);\n\n /*\n Add mobile text styles to typography\n Has to be done using media queries, otherwise it isn't responsive :(\n https://mui.com/material-ui/customization/typography/#responsive-font-sizes\n */\n Object.keys(typography).forEach((key) => {\n // only key before the suffix split by capital letter (h1Strong -> h1)\n const keyWithoutVariantSuffix = key.split(/(?=[A-Z])/)[0];\n const typographyKey = key as keyof typeof typography;\n baseTheme.typography[typographyKey] = {\n ...baseTheme.typography[typographyKey],\n [baseTheme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle(keyWithoutVariantSuffix as keyof (typeof fontSize)['mobile']),\n },\n };\n });\n\n // Create final theme with component overrides and additional configurations\n return createTheme({\n ...themeOptions,\n typography: baseTheme.typography,\n shape: {\n borderRadius: 4,\n },\n customShadows: {\n ...shadows,\n },\n components: {\n MuiAlert: {\n defaultProps: {\n components: {\n CloseIcon: CancelIcon,\n },\n },\n styleOverrides: {\n root: {\n // TODO: Replace with borderRadius from tokens when implemented\n borderRadius: '8px',\n // TODO: Replace with spacing from tokens when implemented\n padding: '24px',\n },\n icon: {\n // TODO: Replace with spacing from tokens when implemented\n marginRight: '12px',\n padding: 0,\n },\n action: {\n padding: 0,\n '& button': {\n marginTop: '-5px',\n },\n },\n message: {\n padding: 0,\n },\n },\n },\n MuiButton: buttonStyleOverrides(baseTheme),\n MuiIconButton: iconButtonStyleOverrides(),\n MuiCard: {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: baseTheme.palette.divider,\n },\n },\n },\n MuiChip: {\n styleOverrides: {\n root: {\n fontWeight: 'bold',\n paddingLeft: '6px',\n paddingRight: '6px',\n },\n },\n },\n MuiListItemButton: {\n styleOverrides: {\n root: {\n '&:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-primary-weak'],\n },\n '&:not(:last-child)': {\n borderBottom: `1px solid ${baseTheme.palette.semantic.stroke['stroke-weak']}`,\n },\n },\n },\n },\n MuiTableRow: {\n styleOverrides: {\n root: {\n '&.MuiTableRow-hover:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-secondary'],\n cursor: 'pointer',\n },\n },\n },\n },\n MuiTypography: {\n defaultProps: {\n variantMapping: typographyVariantMapping,\n },\n },\n MuiFormHelperText: formHelperTextOverrides(baseTheme),\n MuiInputBase: inputBaseOverrides(baseTheme),\n MuiInputLabel: inputLabelOverrides(baseTheme),\n MuiMenuItem: menuItemOverrides(baseTheme),\n MuiSelect: selectOverrides(baseTheme),\n MuiTextField: textFieldOverrides(),\n },\n });\n};\n\nexport const lightTheme = createFlipdishThemeFactory('light');\nexport const darkTheme = createFlipdishThemeFactory('dark');\n"],"names":["createFlipdishThemeFactory","mode","themeOptions","typography","palette","lightColours","darkColours","radius","breakpoints","values","breakpointValues","baseTheme","createTheme","Object","keys","forEach","key","keyWithoutVariantSuffix","split","typographyKey","down","getMobileTextStyle","shape","borderRadius","customShadows","shadows","components","MuiAlert","defaultProps","CloseIcon","CancelIcon","styleOverrides","root","padding","icon","marginRight","action","marginTop","message","MuiButton","buttonStyleOverrides","MuiIconButton","iconButtonStyleOverrides","MuiCard","boxShadow","borderWidth","borderStyle","borderColor","divider","MuiChip","fontWeight","paddingLeft","paddingRight","MuiListItemButton","backgroundColor","semantic","fill","borderBottom","stroke","MuiTableRow","cursor","MuiTypography","variantMapping","typographyVariantMapping","MuiFormHelperText","formHelperTextOverrides","MuiInputBase","inputBaseOverrides","MuiInputLabel","inputLabelOverrides","MuiMenuItem","menuItemOverrides","MuiSelect","selectOverrides","MuiTextField","textFieldOverrides","lightTheme","darkTheme"],"mappings":"0lCAmBA,MAAMA,EAA8BC,IAClC,MAAMC,EAA6B,CACjCC,aACAC,QAAkB,UAATH,EAAmBI,EAAeC,EAC3CC,SACAC,YAAa,CACXC,OAAQC,IAGNC,EAAYC,EAAYV,GAoB9B,OAbAW,OAAOC,KAAKX,GAAYY,SAASC,IAE/B,MAAMC,EAA0BD,EAAIE,MAAM,aAAa,GACjDC,EAAgBH,EACtBL,EAAUR,WAAWgB,GAAiB,IACjCR,EAAUR,WAAWgB,GACxB,CAACR,EAAUH,YAAYY,KAAK,WAAY,IACnCC,EAAmBJ,QAMrBL,EAAY,IACdV,EACHC,WAAYQ,EAAUR,WACtBmB,MAAO,CACLC,aAAc,GAEhBC,cAAe,IACVC,GAELC,WAAY,CACVC,SAAU,CACRC,aAAc,CACZF,WAAY,CACVG,UAAWC,IAGfC,eAAgB,CACdC,KAAM,CAEJT,aAAc,MAEdU,QAAS,QAEXC,KAAM,CAEJC,YAAa,OACbF,QAAS,GAEXG,OAAQ,CACNH,QAAS,EACT,WAAY,CACVI,UAAW,SAGfC,QAAS,CACPL,QAAS,KAIfM,UAAWC,EAAqB7B,GAChC8B,cAAeC,IACfC,QAAS,CACPZ,eAAgB,CACdC,KAAM,CACJY,UAAW,OACXC,YAAa,MACbC,YAAa,QACbC,YAAapC,EAAUP,QAAQ4C,WAIrCC,QAAS,CACPlB,eAAgB,CACdC,KAAM,CACJkB,WAAY,OACZC,YAAa,MACbC,aAAc,SAIpBC,kBAAmB,CACjBtB,eAAgB,CACdC,KAAM,CACJ,UAAW,CACTsB,gBAAiB3C,EAAUP,QAAQmD,SAASC,KAAK,sBAEnD,qBAAsB,CACpBC,aAAc,aAAa9C,EAAUP,QAAQmD,SAASG,OAAO,qBAKrEC,YAAa,CACX5B,eAAgB,CACdC,KAAM,CACJ,4BAA6B,CAC3BsB,gBAAiB3C,EAAUP,QAAQmD,SAASC,KAAK,kBACjDI,OAAQ,cAKhBC,cAAe,CACbjC,aAAc,CACZkC,eAAgBC,IAGpBC,kBAAmBC,EAAwBtD,GAC3CuD,aAAcC,EAAmBxD,GACjCyD,cAAeC,EAAoB1D,GACnC2D,YAAaC,EAAkB5D,GAC/B6D,UAAWC,EAAgB9D,GAC3B+D,aAAcC,QAKPC,EAAa5E,EAA2B,SACxC6E,EAAY7E,EAA2B"}
1
+ {"version":3,"file":"flipdishPublicTheme.js","sources":["../../src/themes/flipdishPublicTheme.ts"],"sourcesContent":["import createTheme, { type Theme, type ThemeOptions } from '@mui/material/styles/createTheme';\n\nimport { buttonStyleOverrides } from '../components/atoms/Button/buttonThemeOverrides';\nimport { iconButtonStyleOverrides } from '../components/atoms/IconButton/iconButtonThemeOverrides';\nimport CancelIcon from '../icons/Cancel';\nimport { checkboxOverrides } from './overrides/checkboxOverrides';\nimport { formControlLabelOverrides } from './overrides/formControlLabelOverrides';\nimport { formHelperTextOverrides } from './overrides/formHelperTextOverrides';\nimport { formLabelOverrides } from './overrides/formLabelOverrides';\nimport { inputBaseOverrides } from './overrides/inputBaseOverrides';\nimport { inputLabelOverrides } from './overrides/inputLabelOverrides';\nimport { listItemTextOverrides } from './overrides/listItemTextOverrides';\nimport { menuItemOverrides } from './overrides/menuItemOverrides';\nimport { menuOverrides } from './overrides/menuOverrides';\nimport { selectOverrides } from './overrides/selectOverrides';\nimport { textFieldOverrides } from './overrides/textFieldOverrides';\nimport { breakpointValues } from './tokens/breakpoints/breakpoints';\nimport { darkColours, lightColours } from './tokens/colours/semantic';\nimport { radius } from './tokens/radius/radius';\nimport { shadows } from './tokens/shadows/shadows';\nimport { fontSize } from './tokens/typography/font-size';\nimport { typographyVariantMapping } from './tokens/typography/variant-mapping';\nimport { getMobileTextStyle, typography } from './typography';\n\nconst createFlipdishThemeFactory = (mode: 'dark' | 'light'): Theme => {\n const themeOptions: ThemeOptions = {\n typography,\n palette: mode === 'light' ? lightColours : darkColours,\n radius,\n breakpoints: {\n values: breakpointValues,\n },\n customShadows: {\n ...shadows,\n },\n };\n const baseTheme = createTheme(themeOptions);\n\n /*\n Add mobile text styles to typography\n Has to be done using media queries, otherwise it isn't responsive :(\n https://mui.com/material-ui/customization/typography/#responsive-font-sizes\n */\n Object.keys(typography).forEach((key) => {\n // only key before the suffix split by capital letter (h1Strong -> h1)\n const keyWithoutVariantSuffix = key.split(/(?=[A-Z])/)[0];\n const typographyKey = key as keyof typeof typography;\n baseTheme.typography[typographyKey] = {\n ...baseTheme.typography[typographyKey],\n [baseTheme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle(keyWithoutVariantSuffix as keyof (typeof fontSize)['mobile']),\n },\n };\n });\n\n // Create final theme with component overrides and additional configurations\n return createTheme({\n ...themeOptions,\n typography: baseTheme.typography,\n shape: {\n borderRadius: 4,\n },\n customShadows: baseTheme.customShadows,\n components: {\n MuiAlert: {\n defaultProps: {\n components: {\n CloseIcon: CancelIcon,\n },\n },\n styleOverrides: {\n root: {\n // TODO: Replace with borderRadius from tokens when implemented\n borderRadius: '8px',\n // TODO: Replace with spacing from tokens when implemented\n padding: '24px',\n },\n icon: {\n // TODO: Replace with spacing from tokens when implemented\n marginRight: '12px',\n padding: 0,\n },\n action: {\n padding: 0,\n '& button': {\n marginTop: '-5px',\n },\n },\n message: {\n padding: 0,\n },\n },\n },\n MuiButton: buttonStyleOverrides(baseTheme),\n MuiIconButton: iconButtonStyleOverrides(),\n MuiCard: {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: baseTheme.palette.divider,\n },\n },\n },\n MuiChip: {\n styleOverrides: {\n root: {\n fontWeight: 'bold',\n paddingLeft: '6px',\n paddingRight: '6px',\n },\n },\n },\n MuiListItemButton: {\n styleOverrides: {\n root: {\n '&:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-primary-weak'],\n },\n '&:not(:last-child)': {\n borderBottom: `1px solid ${baseTheme.palette.semantic.stroke['stroke-weak']}`,\n },\n },\n },\n },\n MuiTableRow: {\n styleOverrides: {\n root: {\n '&.MuiTableRow-hover:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-secondary'],\n cursor: 'pointer',\n },\n },\n },\n },\n MuiTypography: {\n defaultProps: {\n variantMapping: typographyVariantMapping,\n },\n },\n MuiFormHelperText: formHelperTextOverrides(baseTheme),\n MuiInputBase: inputBaseOverrides(baseTheme),\n MuiInputLabel: inputLabelOverrides(baseTheme),\n MuiListItemText: listItemTextOverrides(baseTheme),\n MuiMenu: menuOverrides(baseTheme),\n MuiMenuItem: menuItemOverrides(baseTheme),\n MuiSelect: selectOverrides(baseTheme),\n MuiTextField: textFieldOverrides(baseTheme),\n MuiFormControlLabel: formControlLabelOverrides(baseTheme),\n MuiFormLabel: formLabelOverrides(baseTheme),\n MuiCheckbox: checkboxOverrides(baseTheme),\n },\n });\n};\n\nexport const lightTheme = createFlipdishThemeFactory('light');\nexport const darkTheme = createFlipdishThemeFactory('dark');\n"],"names":["createFlipdishThemeFactory","mode","themeOptions","typography","palette","lightColours","darkColours","radius","breakpoints","values","breakpointValues","customShadows","shadows","baseTheme","createTheme","Object","keys","forEach","key","keyWithoutVariantSuffix","split","typographyKey","down","getMobileTextStyle","shape","borderRadius","components","MuiAlert","defaultProps","CloseIcon","CancelIcon","styleOverrides","root","padding","icon","marginRight","action","marginTop","message","MuiButton","buttonStyleOverrides","MuiIconButton","iconButtonStyleOverrides","MuiCard","boxShadow","borderWidth","borderStyle","borderColor","divider","MuiChip","fontWeight","paddingLeft","paddingRight","MuiListItemButton","backgroundColor","semantic","fill","borderBottom","stroke","MuiTableRow","cursor","MuiTypography","variantMapping","typographyVariantMapping","MuiFormHelperText","formHelperTextOverrides","MuiInputBase","inputBaseOverrides","MuiInputLabel","inputLabelOverrides","MuiListItemText","listItemTextOverrides","MuiMenu","menuOverrides","MuiMenuItem","menuItemOverrides","MuiSelect","selectOverrides","MuiTextField","textFieldOverrides","MuiFormControlLabel","formControlLabelOverrides","MuiFormLabel","formLabelOverrides","MuiCheckbox","checkboxOverrides","lightTheme","darkTheme"],"mappings":"q8CAwBA,MAAMA,EAA8BC,IAClC,MAAMC,EAA6B,CACjCC,aACAC,QAAkB,UAATH,EAAmBI,EAAeC,EAC3CC,SACAC,YAAa,CACXC,OAAQC,GAEVC,cAAe,IACVC,IAGDC,EAAYC,EAAYZ,GAoB9B,OAbAa,OAAOC,KAAKb,GAAYc,SAASC,IAE/B,MAAMC,EAA0BD,EAAIE,MAAM,aAAa,GACjDC,EAAgBH,EACtBL,EAAUV,WAAWkB,GAAiB,IACjCR,EAAUV,WAAWkB,GACxB,CAACR,EAAUL,YAAYc,KAAK,WAAY,IACnCC,EAAmBJ,QAMrBL,EAAY,IACdZ,EACHC,WAAYU,EAAUV,WACtBqB,MAAO,CACLC,aAAc,GAEhBd,cAAeE,EAAUF,cACzBe,WAAY,CACVC,SAAU,CACRC,aAAc,CACZF,WAAY,CACVG,UAAWC,IAGfC,eAAgB,CACdC,KAAM,CAEJP,aAAc,MAEdQ,QAAS,QAEXC,KAAM,CAEJC,YAAa,OACbF,QAAS,GAEXG,OAAQ,CACNH,QAAS,EACT,WAAY,CACVI,UAAW,SAGfC,QAAS,CACPL,QAAS,KAIfM,UAAWC,EAAqB3B,GAChC4B,cAAeC,IACfC,QAAS,CACPZ,eAAgB,CACdC,KAAM,CACJY,UAAW,OACXC,YAAa,MACbC,YAAa,QACbC,YAAalC,EAAUT,QAAQ4C,WAIrCC,QAAS,CACPlB,eAAgB,CACdC,KAAM,CACJkB,WAAY,OACZC,YAAa,MACbC,aAAc,SAIpBC,kBAAmB,CACjBtB,eAAgB,CACdC,KAAM,CACJ,UAAW,CACTsB,gBAAiBzC,EAAUT,QAAQmD,SAASC,KAAK,sBAEnD,qBAAsB,CACpBC,aAAc,aAAa5C,EAAUT,QAAQmD,SAASG,OAAO,qBAKrEC,YAAa,CACX5B,eAAgB,CACdC,KAAM,CACJ,4BAA6B,CAC3BsB,gBAAiBzC,EAAUT,QAAQmD,SAASC,KAAK,kBACjDI,OAAQ,cAKhBC,cAAe,CACbjC,aAAc,CACZkC,eAAgBC,IAGpBC,kBAAmBC,EAAwBpD,GAC3CqD,aAAcC,EAAmBtD,GACjCuD,cAAeC,EAAoBxD,GACnCyD,gBAAiBC,EAAsB1D,GACvC2D,QAASC,EAAc5D,GACvB6D,YAAaC,EAAkB9D,GAC/B+D,UAAWC,EAAgBhE,GAC3BiE,aAAcC,EAAmBlE,GACjCmE,oBAAqBC,EAA0BpE,GAC/CqE,aAAcC,EAAmBtE,GACjCuE,YAAaC,EAAkBxE,OAKxByE,EAAatF,EAA2B,SACxCuF,EAAYvF,EAA2B"}
@@ -0,0 +1,2 @@
1
+ "use strict";require("@mui/material/styles");exports.checkboxOverrides=e=>({styleOverrides:{root:{padding:e.spacing(1,1.5,1,1)}}});
2
+ //# sourceMappingURL=checkboxOverrides.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkboxOverrides.cjs.js","sources":["../../../src/themes/overrides/checkboxOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nexport const checkboxOverrides = (baseTheme: Theme): Components<Theme>['MuiCheckbox'] => ({\n styleOverrides: {\n root: {\n padding: baseTheme.spacing(1, 1.5, 1, 1),\n },\n },\n});"],"names":["baseTheme","styleOverrides","root","padding","spacing"],"mappings":"uEAEkCA,IAAgB,CAChDC,eAAgB,CACdC,KAAM,CACJC,QAASH,EAAUI,QAAQ,EAAG,IAAK,EAAG"}
@@ -0,0 +1,5 @@
1
+ import { Theme, Components } from '@mui/material/styles';
2
+
3
+ declare const checkboxOverrides: (baseTheme: Theme) => Components<Theme>['MuiCheckbox'];
4
+
5
+ export { checkboxOverrides };
@@ -0,0 +1,2 @@
1
+ import"@mui/material/styles";const t=t=>({styleOverrides:{root:{padding:t.spacing(1,1.5,1,1)}}});export{t as checkboxOverrides};
2
+ //# sourceMappingURL=checkboxOverrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkboxOverrides.js","sources":["../../../src/themes/overrides/checkboxOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nexport const checkboxOverrides = (baseTheme: Theme): Components<Theme>['MuiCheckbox'] => ({\n styleOverrides: {\n root: {\n padding: baseTheme.spacing(1, 1.5, 1, 1),\n },\n },\n});"],"names":["checkboxOverrides","baseTheme","styleOverrides","root","padding","spacing"],"mappings":"mCAEaA,EAAqBC,IAAgB,CAChDC,eAAgB,CACdC,KAAM,CACJC,QAASH,EAAUI,QAAQ,EAAG,IAAK,EAAG"}
@@ -0,0 +1,2 @@
1
+ "use strict";require("@mui/material/styles");var t=require("../tokens/typography/font-family.cjs.js"),e=require("../typography.cjs.js");exports.formControlLabelOverrides=o=>({styleOverrides:{root:{"& .MuiTypography-root":{...e.typography.b1Weak,[o.breakpoints.down("tablet")]:{fontFamily:t.fontFamily.mobile.body,...e.getMobileTextStyle("b1")}},"& .MuiFormControlLabel-label":{color:o.palette.semantic.text["text-strong"]},"& .Mui-disabled":{color:`${o.palette.semantic.text["text-disabled"]} !important`}}}});
2
+ //# sourceMappingURL=formControlLabelOverrides.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formControlLabelOverrides.cjs.js","sources":["../../../src/themes/overrides/formControlLabelOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { fontFamily } from '@fd/themes/tokens/typography/font-family';\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const formControlLabelOverrides = (baseTheme: Theme): Components<Theme>['MuiFormControlLabel'] => ({\n styleOverrides: {\n root: {\n '& .MuiTypography-root': {\n ...typography.b1Weak,\n [baseTheme.breakpoints.down('tablet')]: {\n fontFamily: fontFamily.mobile.body,\n ...getMobileTextStyle('b1'),\n },\n },\n '& .MuiFormControlLabel-label': {\n color: baseTheme.palette.semantic.text['text-strong'],\n },\n '& .Mui-disabled': {\n color: `${baseTheme.palette.semantic.text['text-disabled']} !important`,\n },\n },\n },\n});"],"names":["baseTheme","styleOverrides","root","typography","b1Weak","breakpoints","down","fontFamily","mobile","body","getMobileTextStyle","color","palette","semantic","text"],"mappings":"0KAK0CA,IAAgB,CACxDC,eAAgB,CACdC,KAAM,CACJ,wBAAyB,IACpBC,EAAAA,WAAWC,OACd,CAACJ,EAAUK,YAAYC,KAAK,WAAY,CACtCC,WAAYA,EAAAA,WAAWC,OAAOC,QAC3BC,EAAAA,mBAAmB,QAG1B,+BAAgC,CAC9BC,MAAOX,EAAUY,QAAQC,SAASC,KAAK,gBAEzC,kBAAmB,CACjBH,MAAO,GAAGX,EAAUY,QAAQC,SAASC,KAAK"}
@@ -0,0 +1,5 @@
1
+ import { Theme, Components } from '@mui/material/styles';
2
+
3
+ declare const formControlLabelOverrides: (baseTheme: Theme) => Components<Theme>['MuiFormControlLabel'];
4
+
5
+ export { formControlLabelOverrides };
@@ -0,0 +1,2 @@
1
+ import"@mui/material/styles";import{fontFamily as t}from"../tokens/typography/font-family.js";import{getMobileTextStyle as o,typography as e}from"../typography.js";const r=r=>({styleOverrides:{root:{"& .MuiTypography-root":{...e.b1Weak,[r.breakpoints.down("tablet")]:{fontFamily:t.mobile.body,...o("b1")}},"& .MuiFormControlLabel-label":{color:r.palette.semantic.text["text-strong"]},"& .Mui-disabled":{color:`${r.palette.semantic.text["text-disabled"]} !important`}}}});export{r as formControlLabelOverrides};
2
+ //# sourceMappingURL=formControlLabelOverrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formControlLabelOverrides.js","sources":["../../../src/themes/overrides/formControlLabelOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { fontFamily } from '@fd/themes/tokens/typography/font-family';\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const formControlLabelOverrides = (baseTheme: Theme): Components<Theme>['MuiFormControlLabel'] => ({\n styleOverrides: {\n root: {\n '& .MuiTypography-root': {\n ...typography.b1Weak,\n [baseTheme.breakpoints.down('tablet')]: {\n fontFamily: fontFamily.mobile.body,\n ...getMobileTextStyle('b1'),\n },\n },\n '& .MuiFormControlLabel-label': {\n color: baseTheme.palette.semantic.text['text-strong'],\n },\n '& .Mui-disabled': {\n color: `${baseTheme.palette.semantic.text['text-disabled']} !important`,\n },\n },\n },\n});"],"names":["formControlLabelOverrides","baseTheme","styleOverrides","root","typography","b1Weak","breakpoints","down","fontFamily","mobile","body","getMobileTextStyle","color","palette","semantic","text"],"mappings":"0KAKaA,EAA6BC,IAAgB,CACxDC,eAAgB,CACdC,KAAM,CACJ,wBAAyB,IACpBC,EAAWC,OACd,CAACJ,EAAUK,YAAYC,KAAK,WAAY,CACtCC,WAAYA,EAAWC,OAAOC,QAC3BC,EAAmB,QAG1B,+BAAgC,CAC9BC,MAAOX,EAAUY,QAAQC,SAASC,KAAK,gBAEzC,kBAAmB,CACjBH,MAAO,GAAGX,EAAUY,QAAQC,SAASC,KAAK"}
@@ -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.captionWeak,alignItems:"center",color:t.palette.semantic.text["text-weak"],display:"flex",gap:t.spacing(.5),margin:0,"&.Mui-disabled":{color:t.palette.semantic.text["text-disabled"],"& svg":{color:t.palette.semantic.icon["icon-disabled"]}},"&.Mui-error":{color:t.palette.semantic.text["text-error"],fontWeight:600,"& svg":{color:t.palette.semantic.icon["icon-error"]}},[t.breakpoints.down("tablet")]:{...e.getMobileTextStyle("caption")}}}});exports.default=t,exports.formHelperTextOverrides=t;
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.captionWeak,alignItems:"center",color:t.palette.semantic.text["text-weak"],display:"flex",gap:t.spacing(1),margin:0,"&.Mui-disabled":{color:t.palette.semantic.text["text-disabled"],"& svg":{color:t.palette.semantic.icon["icon-disabled"]}},"&.Mui-error":{color:t.palette.semantic.text["text-error"],fontWeight:600,padding:t.spacing(.5,0),"& svg":{color:t.palette.semantic.icon["icon-error"]}},[t.breakpoints.down("tablet")]:{...e.getMobileTextStyle("caption")}}}});exports.default=t,exports.formHelperTextOverrides=t;
2
2
  //# sourceMappingURL=formHelperTextOverrides.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formHelperTextOverrides.cjs.js","sources":["../../../src/themes/overrides/formHelperTextOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const formHelperTextOverrides = (baseTheme: Theme): Components<Theme>['MuiFormHelperText'] => ({\n styleOverrides: {\n root: {\n ...typography.captionWeak,\n alignItems: 'center',\n color: baseTheme.palette.semantic.text['text-weak'],\n display: 'flex',\n gap: baseTheme.spacing(0.5),\n margin: 0,\n\n '&.Mui-disabled': {\n color: baseTheme.palette.semantic.text['text-disabled'],\n\n '& svg': {\n color: baseTheme.palette.semantic.icon['icon-disabled'],\n },\n },\n '&.Mui-error': {\n color: baseTheme.palette.semantic.text['text-error'],\n fontWeight: 600,\n\n '& svg': {\n color: baseTheme.palette.semantic.icon['icon-error'],\n },\n },\n\n [baseTheme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('caption'),\n },\n },\n },\n});\n\nexport default formHelperTextOverrides;\n"],"names":["formHelperTextOverrides","baseTheme","styleOverrides","root","typography","captionWeak","alignItems","color","palette","semantic","text","display","gap","spacing","margin","icon","fontWeight","breakpoints","down","getMobileTextStyle"],"mappings":"gJAIaA,EAA2BC,IAAgB,CACtDC,eAAgB,CACdC,KAAM,IACDC,EAAAA,WAAWC,YACdC,WAAY,SACZC,MAAON,EAAUO,QAAQC,SAASC,KAAK,aACvCC,QAAS,OACTC,IAAKX,EAAUY,QAAQ,IACvBC,OAAQ,EAER,iBAAkB,CAChBP,MAAON,EAAUO,QAAQC,SAASC,KAAK,iBAEvC,QAAS,CACPH,MAAON,EAAUO,QAAQC,SAASM,KAAK,mBAG3C,cAAe,CACbR,MAAON,EAAUO,QAAQC,SAASC,KAAK,cACvCM,WAAY,IAEZ,QAAS,CACPT,MAAON,EAAUO,QAAQC,SAASM,KAAK,gBAI3C,CAACd,EAAUgB,YAAYC,KAAK,WAAY,IACnCC,EAAAA,mBAAmB"}
1
+ {"version":3,"file":"formHelperTextOverrides.cjs.js","sources":["../../../src/themes/overrides/formHelperTextOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const formHelperTextOverrides = (theme: Theme): Components<Theme>['MuiFormHelperText'] => ({\n styleOverrides: {\n root: {\n ...typography.captionWeak,\n alignItems: 'center',\n color: theme.palette.semantic.text['text-weak'],\n display: 'flex',\n gap: theme.spacing(1),\n margin: 0,\n\n '&.Mui-disabled': {\n color: theme.palette.semantic.text['text-disabled'],\n\n '& svg': {\n color: theme.palette.semantic.icon['icon-disabled'],\n },\n },\n '&.Mui-error': {\n color: theme.palette.semantic.text['text-error'],\n fontWeight: 600,\n padding: theme.spacing(0.5, 0),\n\n '& svg': {\n color: theme.palette.semantic.icon['icon-error'],\n },\n },\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('caption'),\n },\n },\n },\n});\n\nexport default formHelperTextOverrides;\n"],"names":["formHelperTextOverrides","theme","styleOverrides","root","typography","captionWeak","alignItems","color","palette","semantic","text","display","gap","spacing","margin","icon","fontWeight","padding","breakpoints","down","getMobileTextStyle"],"mappings":"gJAIaA,EAA2BC,IAAY,CAClDC,eAAgB,CACdC,KAAM,IACDC,EAAAA,WAAWC,YACdC,WAAY,SACZC,MAAON,EAAMO,QAAQC,SAASC,KAAK,aACnCC,QAAS,OACTC,IAAKX,EAAMY,QAAQ,GACnBC,OAAQ,EAER,iBAAkB,CAChBP,MAAON,EAAMO,QAAQC,SAASC,KAAK,iBAEnC,QAAS,CACPH,MAAON,EAAMO,QAAQC,SAASM,KAAK,mBAGvC,cAAe,CACbR,MAAON,EAAMO,QAAQC,SAASC,KAAK,cACnCM,WAAY,IACZC,QAAShB,EAAMY,QAAQ,GAAK,GAE5B,QAAS,CACPN,MAAON,EAAMO,QAAQC,SAASM,KAAK,gBAIvC,CAACd,EAAMiB,YAAYC,KAAK,WAAY,IAC/BC,EAAAA,mBAAmB"}
@@ -1,5 +1,5 @@
1
1
  import { Theme, Components } from '@mui/material/styles';
2
2
 
3
- declare const formHelperTextOverrides: (baseTheme: Theme) => Components<Theme>['MuiFormHelperText'];
3
+ declare const formHelperTextOverrides: (theme: Theme) => Components<Theme>['MuiFormHelperText'];
4
4
 
5
5
  export { formHelperTextOverrides as default, formHelperTextOverrides };
@@ -1,2 +1,2 @@
1
- import"@mui/material/styles";import{getMobileTextStyle as t,typography as e}from"../typography.js";const o=o=>({styleOverrides:{root:{...e.captionWeak,alignItems:"center",color:o.palette.semantic.text["text-weak"],display:"flex",gap:o.spacing(.5),margin:0,"&.Mui-disabled":{color:o.palette.semantic.text["text-disabled"],"& svg":{color:o.palette.semantic.icon["icon-disabled"]}},"&.Mui-error":{color:o.palette.semantic.text["text-error"],fontWeight:600,"& svg":{color:o.palette.semantic.icon["icon-error"]}},[o.breakpoints.down("tablet")]:{...t("caption")}}}});export{o as default,o as formHelperTextOverrides};
1
+ import"@mui/material/styles";import{getMobileTextStyle as t,typography as e}from"../typography.js";const a=a=>({styleOverrides:{root:{...e.captionWeak,alignItems:"center",color:a.palette.semantic.text["text-weak"],display:"flex",gap:a.spacing(1),margin:0,"&.Mui-disabled":{color:a.palette.semantic.text["text-disabled"],"& svg":{color:a.palette.semantic.icon["icon-disabled"]}},"&.Mui-error":{color:a.palette.semantic.text["text-error"],fontWeight:600,padding:a.spacing(.5,0),"& svg":{color:a.palette.semantic.icon["icon-error"]}},[a.breakpoints.down("tablet")]:{...t("caption")}}}});export{a as default,a as formHelperTextOverrides};
2
2
  //# sourceMappingURL=formHelperTextOverrides.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formHelperTextOverrides.js","sources":["../../../src/themes/overrides/formHelperTextOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const formHelperTextOverrides = (baseTheme: Theme): Components<Theme>['MuiFormHelperText'] => ({\n styleOverrides: {\n root: {\n ...typography.captionWeak,\n alignItems: 'center',\n color: baseTheme.palette.semantic.text['text-weak'],\n display: 'flex',\n gap: baseTheme.spacing(0.5),\n margin: 0,\n\n '&.Mui-disabled': {\n color: baseTheme.palette.semantic.text['text-disabled'],\n\n '& svg': {\n color: baseTheme.palette.semantic.icon['icon-disabled'],\n },\n },\n '&.Mui-error': {\n color: baseTheme.palette.semantic.text['text-error'],\n fontWeight: 600,\n\n '& svg': {\n color: baseTheme.palette.semantic.icon['icon-error'],\n },\n },\n\n [baseTheme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('caption'),\n },\n },\n },\n});\n\nexport default formHelperTextOverrides;\n"],"names":["formHelperTextOverrides","baseTheme","styleOverrides","root","typography","captionWeak","alignItems","color","palette","semantic","text","display","gap","spacing","margin","icon","fontWeight","breakpoints","down","getMobileTextStyle"],"mappings":"yGAIaA,EAA2BC,IAAgB,CACtDC,eAAgB,CACdC,KAAM,IACDC,EAAWC,YACdC,WAAY,SACZC,MAAON,EAAUO,QAAQC,SAASC,KAAK,aACvCC,QAAS,OACTC,IAAKX,EAAUY,QAAQ,IACvBC,OAAQ,EAER,iBAAkB,CAChBP,MAAON,EAAUO,QAAQC,SAASC,KAAK,iBAEvC,QAAS,CACPH,MAAON,EAAUO,QAAQC,SAASM,KAAK,mBAG3C,cAAe,CACbR,MAAON,EAAUO,QAAQC,SAASC,KAAK,cACvCM,WAAY,IAEZ,QAAS,CACPT,MAAON,EAAUO,QAAQC,SAASM,KAAK,gBAI3C,CAACd,EAAUgB,YAAYC,KAAK,WAAY,IACnCC,EAAmB"}
1
+ {"version":3,"file":"formHelperTextOverrides.js","sources":["../../../src/themes/overrides/formHelperTextOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const formHelperTextOverrides = (theme: Theme): Components<Theme>['MuiFormHelperText'] => ({\n styleOverrides: {\n root: {\n ...typography.captionWeak,\n alignItems: 'center',\n color: theme.palette.semantic.text['text-weak'],\n display: 'flex',\n gap: theme.spacing(1),\n margin: 0,\n\n '&.Mui-disabled': {\n color: theme.palette.semantic.text['text-disabled'],\n\n '& svg': {\n color: theme.palette.semantic.icon['icon-disabled'],\n },\n },\n '&.Mui-error': {\n color: theme.palette.semantic.text['text-error'],\n fontWeight: 600,\n padding: theme.spacing(0.5, 0),\n\n '& svg': {\n color: theme.palette.semantic.icon['icon-error'],\n },\n },\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('caption'),\n },\n },\n },\n});\n\nexport default formHelperTextOverrides;\n"],"names":["formHelperTextOverrides","theme","styleOverrides","root","typography","captionWeak","alignItems","color","palette","semantic","text","display","gap","spacing","margin","icon","fontWeight","padding","breakpoints","down","getMobileTextStyle"],"mappings":"yGAIaA,EAA2BC,IAAY,CAClDC,eAAgB,CACdC,KAAM,IACDC,EAAWC,YACdC,WAAY,SACZC,MAAON,EAAMO,QAAQC,SAASC,KAAK,aACnCC,QAAS,OACTC,IAAKX,EAAMY,QAAQ,GACnBC,OAAQ,EAER,iBAAkB,CAChBP,MAAON,EAAMO,QAAQC,SAASC,KAAK,iBAEnC,QAAS,CACPH,MAAON,EAAMO,QAAQC,SAASM,KAAK,mBAGvC,cAAe,CACbR,MAAON,EAAMO,QAAQC,SAASC,KAAK,cACnCM,WAAY,IACZC,QAAShB,EAAMY,QAAQ,GAAK,GAE5B,QAAS,CACPN,MAAON,EAAMO,QAAQC,SAASM,KAAK,gBAIvC,CAACd,EAAMiB,YAAYC,KAAK,WAAY,IAC/BC,EAAmB"}
@@ -0,0 +1,2 @@
1
+ "use strict";require("@mui/material/styles");var e=require("../tokens/typography/font-family.cjs.js"),t=require("../typography.cjs.js");exports.formLabelOverrides=r=>({styleOverrides:{root:{...t.typography.b1Weak,color:r.palette.semantic.text["text-strong"],[r.breakpoints.down("tablet")]:{fontFamily:e.fontFamily.mobile.body,...t.getMobileTextStyle("b1")},"&.Mui-focused":{color:r.palette.semantic.text["text-strong"]}}}});
2
+ //# sourceMappingURL=formLabelOverrides.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formLabelOverrides.cjs.js","sources":["../../../src/themes/overrides/formLabelOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { fontFamily } from '@fd/themes/tokens/typography/font-family';\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const formLabelOverrides = (baseTheme: Theme): Components<Theme>['MuiFormLabel'] => ({\n styleOverrides: {\n root: {\n ...typography.b1Weak,\n color: baseTheme.palette.semantic.text['text-strong'],\n [baseTheme.breakpoints.down('tablet')]: {\n fontFamily: fontFamily.mobile.body,\n ...getMobileTextStyle('b1'),\n },\n '&.Mui-focused': {\n color: baseTheme.palette.semantic.text['text-strong'],\n }\n },\n },\n});"],"names":["baseTheme","styleOverrides","root","typography","b1Weak","color","palette","semantic","text","breakpoints","down","fontFamily","mobile","body","getMobileTextStyle"],"mappings":"mKAKmCA,IAAgB,CACjDC,eAAgB,CACdC,KAAM,IACDC,EAAAA,WAAWC,OACdC,MAAOL,EAAUM,QAAQC,SAASC,KAAK,eACvC,CAACR,EAAUS,YAAYC,KAAK,WAAY,CACtCC,WAAYA,EAAAA,WAAWC,OAAOC,QAC3BC,EAAAA,mBAAmB,OAExB,gBAAiB,CACfT,MAAOL,EAAUM,QAAQC,SAASC,KAAK"}
@@ -0,0 +1,5 @@
1
+ import { Theme, Components } from '@mui/material/styles';
2
+
3
+ declare const formLabelOverrides: (baseTheme: Theme) => Components<Theme>['MuiFormLabel'];
4
+
5
+ export { formLabelOverrides };
@@ -0,0 +1,2 @@
1
+ import"@mui/material/styles";import{fontFamily as t}from"../tokens/typography/font-family.js";import{getMobileTextStyle as o,typography as e}from"../typography.js";const r=r=>({styleOverrides:{root:{...e.b1Weak,color:r.palette.semantic.text["text-strong"],[r.breakpoints.down("tablet")]:{fontFamily:t.mobile.body,...o("b1")},"&.Mui-focused":{color:r.palette.semantic.text["text-strong"]}}}});export{r as formLabelOverrides};
2
+ //# sourceMappingURL=formLabelOverrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formLabelOverrides.js","sources":["../../../src/themes/overrides/formLabelOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { fontFamily } from '@fd/themes/tokens/typography/font-family';\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const formLabelOverrides = (baseTheme: Theme): Components<Theme>['MuiFormLabel'] => ({\n styleOverrides: {\n root: {\n ...typography.b1Weak,\n color: baseTheme.palette.semantic.text['text-strong'],\n [baseTheme.breakpoints.down('tablet')]: {\n fontFamily: fontFamily.mobile.body,\n ...getMobileTextStyle('b1'),\n },\n '&.Mui-focused': {\n color: baseTheme.palette.semantic.text['text-strong'],\n }\n },\n },\n});"],"names":["formLabelOverrides","baseTheme","styleOverrides","root","typography","b1Weak","color","palette","semantic","text","breakpoints","down","fontFamily","mobile","body","getMobileTextStyle"],"mappings":"0KAKaA,EAAsBC,IAAgB,CACjDC,eAAgB,CACdC,KAAM,IACDC,EAAWC,OACdC,MAAOL,EAAUM,QAAQC,SAASC,KAAK,eACvC,CAACR,EAAUS,YAAYC,KAAK,WAAY,CACtCC,WAAYA,EAAWC,OAAOC,QAC3BC,EAAmB,OAExB,gBAAiB,CACfT,MAAOL,EAAUM,QAAQC,SAASC,KAAK"}
@@ -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"],minHeight:50,padding:t.spacing(0,2),"&.Mui-disabled":{borderColor:t.palette.semantic.stroke["stroke-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto"},"&.Mui-focused: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"]})`},"&.Mui-error":{backgroundColor:t.palette.semantic.fill["fill-error-weak"],border:"2px solid",borderColor:t.palette.semantic.stroke["stroke-error-strong"]}},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","-webkit-text-fill-color":t.palette.semantic.text["text-disabled"],"&::placeholder":{color:t.palette.semantic.text["text-disabled"],"-webkit-text-fill-color":t.palette.semantic.text["text-disabled"]}},[t.breakpoints.down("tablet")]:{...e.getMobileTextStyle("b1"),"&::placeholder":{...e.getMobileTextStyle("b1")}}},inputMultiline:{padding:t.spacing(1.5,2),"&.MuiOutlinedInput-input":{padding:0}}}});exports.default=t,exports.inputBaseOverrides=t;
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","-webkit-text-fill-color":t.palette.semantic.text["text-disabled"],"&::placeholder":{color:t.palette.semantic.text["text-disabled"],"-webkit-text-fill-color":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 minHeight: 50,\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-focused: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 '&.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 },\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 '-webkit-text-fill-color': theme.palette.semantic.text['text-disabled'],\n\n '&::placeholder': {\n color: theme.palette.semantic.text['text-disabled'],\n '-webkit-text-fill-color': 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 inputMultiline: {\n padding: theme.spacing(1.5, 2),\n\n '&.MuiOutlinedInput-input': {\n padding: 0,\n },\n },\n },\n});\n\nexport default inputBaseOverrides;\n"],"names":["inputBaseOverrides","theme","styleOverrides","root","backgroundColor","palette","semantic","fill","backgroundImage","border","borderColor","stroke","borderRadius","radius","minHeight","padding","spacing","cursor","opacity","pointerEvents","outline","outlineOffset","input","typography","b1Weak","color","text","breakpoints","down","getMobileTextStyle","inputMultiline"],"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,GACXC,QAASd,EAAMe,QAAQ,EAAG,GAE1B,iBAAkB,CAChBN,YAAaT,EAAMI,QAAQC,SAASK,OAAO,mBAC3CM,OAAQ,cACRC,QAAS,EACTC,cAAe,QAEjB,mCAAoC,CAClCC,QAAS,aAAanB,EAAMI,QAAQC,SAASK,OAAO,kBACpDU,cAAe,OAEjB,6BAA8B,CAC5Bb,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,kBAEhH,cAAe,CACbH,gBAAiBH,EAAMI,QAAQC,SAASC,KAAK,mBAC7CE,OAAQ,YACRC,YAAaT,EAAMI,QAAQC,SAASK,OAAO,yBAG/CW,MAAO,IACFC,EAAAA,WAAWC,OACdC,MAAOxB,EAAMI,QAAQC,SAASoB,KAAK,eAEnC,2BAA4B,CAC1BX,QAAS,GAEX,iBAAkB,IACbQ,EAAAA,WAAWC,OACdC,MAAOxB,EAAMI,QAAQC,SAASoB,KAAK,aACnCR,QAAS,GAEX,iBAAkB,CAChBO,MAAOxB,EAAMI,QAAQC,SAASoB,KAAK,iBACnCT,OAAQ,cACRE,cAAe,OACf,0BAA2BlB,EAAMI,QAAQC,SAASoB,KAAK,iBAEvD,iBAAkB,CAChBD,MAAOxB,EAAMI,QAAQC,SAASoB,KAAK,iBACnC,0BAA2BzB,EAAMI,QAAQC,SAASoB,KAAK,mBAI3D,CAACzB,EAAM0B,YAAYC,KAAK,WAAY,IAC/BC,EAAAA,mBAAmB,MAEtB,iBAAkB,IACbA,EAAAA,mBAAmB,SAI5BC,eAAgB,CACdf,QAASd,EAAMe,QAAQ,IAAK,GAE5B,2BAA4B,CAC1BD,QAAS"}
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 '-webkit-text-fill-color': theme.palette.semantic.text['text-disabled'],\n\n '&::placeholder': {\n color: theme.palette.semantic.text['text-disabled'],\n '-webkit-text-fill-color': 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","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,OACf,0BAA2BnB,EAAMI,QAAQC,SAASqB,KAAK,iBAEvD,iBAAkB,CAChBD,MAAOzB,EAAMI,QAAQC,SAASqB,KAAK,iBACnC,0BAA2B1B,EAAMI,QAAQC,SAASqB,KAAK,mBAI3D,CAAC1B,EAAM2B,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 i=i=>({styleOverrides:{root:{backgroundColor:i.palette.semantic.fill["fill-inverse-strong"],backgroundImage:"none",border:"1px solid",borderColor:i.palette.semantic.stroke["stroke-strong"],borderRadius:i.radius["radius-8"],minHeight:50,padding:i.spacing(0,2),"&.Mui-disabled":{borderColor:i.palette.semantic.stroke["stroke-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto"},"&.Mui-focused:not(.Mui-disabled)":{outline:`2px solid ${i.palette.semantic.stroke["stroke-focus"]}`,outlineOffset:"2px"},"&:hover:not(.Mui-disabled)":{backgroundImage:`linear-gradient(${i.palette.semantic.fill["fill-hover"]}, ${i.palette.semantic.fill["fill-hover"]})`},"&:active:not(.Mui-disabled)":{backgroundImage:`linear-gradient(${i.palette.semantic.fill["fill-press"]}, ${i.palette.semantic.fill["fill-press"]})`},"&.Mui-error":{backgroundColor:i.palette.semantic.fill["fill-error-weak"],border:"2px solid",borderColor:i.palette.semantic.stroke["stroke-error-strong"]}},input:{...t.b1Weak,color:i.palette.semantic.text["text-strong"],"&.MuiOutlinedInput-input":{padding:0},"&::placeholder":{...t.b1Weak,color:i.palette.semantic.text["text-weak"],opacity:1},"&.Mui-disabled":{color:i.palette.semantic.text["text-disabled"],cursor:"not-allowed",pointerEvents:"auto","-webkit-text-fill-color":i.palette.semantic.text["text-disabled"],"&::placeholder":{color:i.palette.semantic.text["text-disabled"],"-webkit-text-fill-color":i.palette.semantic.text["text-disabled"]}},[i.breakpoints.down("tablet")]:{...e("b1"),"&::placeholder":{...e("b1")}}},inputMultiline:{padding:i.spacing(1.5,2),"&.MuiOutlinedInput-input":{padding:0}}}});export{i as default,i as inputBaseOverrides};
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","-webkit-text-fill-color":o.palette.semantic.text["text-disabled"],"&::placeholder":{color:o.palette.semantic.text["text-disabled"],"-webkit-text-fill-color":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 minHeight: 50,\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-focused: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 '&.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 },\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 '-webkit-text-fill-color': theme.palette.semantic.text['text-disabled'],\n\n '&::placeholder': {\n color: theme.palette.semantic.text['text-disabled'],\n '-webkit-text-fill-color': 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 inputMultiline: {\n padding: theme.spacing(1.5, 2),\n\n '&.MuiOutlinedInput-input': {\n padding: 0,\n },\n },\n },\n});\n\nexport default inputBaseOverrides;\n"],"names":["inputBaseOverrides","theme","styleOverrides","root","backgroundColor","palette","semantic","fill","backgroundImage","border","borderColor","stroke","borderRadius","radius","minHeight","padding","spacing","cursor","opacity","pointerEvents","outline","outlineOffset","input","typography","b1Weak","color","text","breakpoints","down","getMobileTextStyle","inputMultiline"],"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,GACXC,QAASd,EAAMe,QAAQ,EAAG,GAE1B,iBAAkB,CAChBN,YAAaT,EAAMI,QAAQC,SAASK,OAAO,mBAC3CM,OAAQ,cACRC,QAAS,EACTC,cAAe,QAEjB,mCAAoC,CAClCC,QAAS,aAAanB,EAAMI,QAAQC,SAASK,OAAO,kBACpDU,cAAe,OAEjB,6BAA8B,CAC5Bb,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,kBAEhH,cAAe,CACbH,gBAAiBH,EAAMI,QAAQC,SAASC,KAAK,mBAC7CE,OAAQ,YACRC,YAAaT,EAAMI,QAAQC,SAASK,OAAO,yBAG/CW,MAAO,IACFC,EAAWC,OACdC,MAAOxB,EAAMI,QAAQC,SAASoB,KAAK,eAEnC,2BAA4B,CAC1BX,QAAS,GAEX,iBAAkB,IACbQ,EAAWC,OACdC,MAAOxB,EAAMI,QAAQC,SAASoB,KAAK,aACnCR,QAAS,GAEX,iBAAkB,CAChBO,MAAOxB,EAAMI,QAAQC,SAASoB,KAAK,iBACnCT,OAAQ,cACRE,cAAe,OACf,0BAA2BlB,EAAMI,QAAQC,SAASoB,KAAK,iBAEvD,iBAAkB,CAChBD,MAAOxB,EAAMI,QAAQC,SAASoB,KAAK,iBACnC,0BAA2BzB,EAAMI,QAAQC,SAASoB,KAAK,mBAI3D,CAACzB,EAAM0B,YAAYC,KAAK,WAAY,IAC/BC,EAAmB,MAEtB,iBAAkB,IACbA,EAAmB,SAI5BC,eAAgB,CACdf,QAASd,EAAMe,QAAQ,IAAK,GAE5B,2BAA4B,CAC1BD,QAAS"}
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 '-webkit-text-fill-color': theme.palette.semantic.text['text-disabled'],\n\n '&::placeholder': {\n color: theme.palette.semantic.text['text-disabled'],\n '-webkit-text-fill-color': 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","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,OACf,0BAA2BnB,EAAMI,QAAQC,SAASqB,KAAK,iBAEvD,iBAAkB,CAChBD,MAAOzB,EAAMI,QAAQC,SAASqB,KAAK,iBACnC,0BAA2B1B,EAAMI,QAAQC,SAASqB,KAAK,mBAI3D,CAAC1B,EAAM2B,YAAYC,KAAK,WAAY,IAC/BC,EAAmB,MAEtB,iBAAkB,IACbA,EAAmB"}
@@ -0,0 +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:{primary:{...e.typography.b1Weak,color:t.palette.semantic.text["text-strong"],[t.breakpoints.down("tablet")]:{...e.getMobileTextStyle("b1")}},secondary:{...e.typography.captionWeak,color:t.palette.semantic.text["text-weak"],[t.breakpoints.down("tablet")]:{...e.getMobileTextStyle("caption")}}}});exports.default=t,exports.listItemTextOverrides=t;
2
+ //# sourceMappingURL=listItemTextOverrides.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listItemTextOverrides.cjs.js","sources":["../../../src/themes/overrides/listItemTextOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const listItemTextOverrides = (theme: Theme): Components<Theme>['MuiListItemText'] => ({\n styleOverrides: {\n primary: {\n ...typography.b1Weak,\n color: theme.palette.semantic.text['text-strong'],\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('b1'),\n },\n },\n secondary: {\n ...typography.captionWeak,\n color: theme.palette.semantic.text['text-weak'],\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('caption'),\n },\n },\n },\n});\n\nexport default listItemTextOverrides;\n"],"names":["listItemTextOverrides","theme","styleOverrides","primary","typography","b1Weak","color","palette","semantic","text","breakpoints","down","getMobileTextStyle","secondary","captionWeak"],"mappings":"gJAIaA,EAAyBC,IAAY,CAChDC,eAAgB,CACdC,QAAS,IACJC,EAAAA,WAAWC,OACdC,MAAOL,EAAMM,QAAQC,SAASC,KAAK,eAEnC,CAACR,EAAMS,YAAYC,KAAK,WAAY,IAC/BC,EAAAA,mBAAmB,QAG1BC,UAAW,IACNT,EAAAA,WAAWU,YACdR,MAAOL,EAAMM,QAAQC,SAASC,KAAK,aAEnC,CAACR,EAAMS,YAAYC,KAAK,WAAY,IAC/BC,EAAAA,mBAAmB"}
@@ -0,0 +1,5 @@
1
+ import { Theme, Components } from '@mui/material/styles';
2
+
3
+ declare const listItemTextOverrides: (theme: Theme) => Components<Theme>['MuiListItemText'];
4
+
5
+ export { listItemTextOverrides as default, listItemTextOverrides };
@@ -0,0 +1,2 @@
1
+ import"@mui/material/styles";import{getMobileTextStyle as t,typography as e}from"../typography.js";const a=a=>({styleOverrides:{primary:{...e.b1Weak,color:a.palette.semantic.text["text-strong"],[a.breakpoints.down("tablet")]:{...t("b1")}},secondary:{...e.captionWeak,color:a.palette.semantic.text["text-weak"],[a.breakpoints.down("tablet")]:{...t("caption")}}}});export{a as default,a as listItemTextOverrides};
2
+ //# sourceMappingURL=listItemTextOverrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listItemTextOverrides.js","sources":["../../../src/themes/overrides/listItemTextOverrides.ts"],"sourcesContent":["import { type Components, type Theme } from '@mui/material/styles';\n\nimport { getMobileTextStyle, typography } from '@fd/themes/typography';\n\nexport const listItemTextOverrides = (theme: Theme): Components<Theme>['MuiListItemText'] => ({\n styleOverrides: {\n primary: {\n ...typography.b1Weak,\n color: theme.palette.semantic.text['text-strong'],\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('b1'),\n },\n },\n secondary: {\n ...typography.captionWeak,\n color: theme.palette.semantic.text['text-weak'],\n\n [theme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('caption'),\n },\n },\n },\n});\n\nexport default listItemTextOverrides;\n"],"names":["listItemTextOverrides","theme","styleOverrides","primary","typography","b1Weak","color","palette","semantic","text","breakpoints","down","getMobileTextStyle","secondary","captionWeak"],"mappings":"yGAIaA,EAAyBC,IAAY,CAChDC,eAAgB,CACdC,QAAS,IACJC,EAAWC,OACdC,MAAOL,EAAMM,QAAQC,SAASC,KAAK,eAEnC,CAACR,EAAMS,YAAYC,KAAK,WAAY,IAC/BC,EAAmB,QAG1BC,UAAW,IACNT,EAAWU,YACdR,MAAOL,EAAMM,QAAQC,SAASC,KAAK,aAEnC,CAACR,EAAMS,YAAYC,KAAK,WAAY,IAC/BC,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,backgroundColor:t.palette.semantic.fill["fill-inverse-strong"],color:t.palette.semantic.text["text-strong"],padding:t.spacing(1.5,2),"&.Mui-disabled":{color:t.palette.semantic.text["text-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto","&:hover":{backgroundColor:t.palette.semantic.fill["fill-inverse-strong"],color:t.palette.semantic.text["text-disabled"]}},"&.Mui-selected":{backgroundColor:t.palette.semantic.fill["fill-weak"],color:t.palette.semantic.text["text-primary"],"&:hover":{backgroundColor:t.palette.semantic.fill["fill-weak"],color:t.palette.semantic.text["text-primary"]}},"&: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"]},[t.breakpoints.down("tablet")]:{...e.getMobileTextStyle("b1")}}}});exports.default=t,exports.menuItemOverrides=t;
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.fill["fill-inverse-strong"],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.fill["fill-inverse-strong"],color:t.palette.semantic.text["text-disabled"]}},"&.Mui-selected":{backgroundColor:t.palette.semantic.fill["fill-weak"],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-weak"],color:t.palette.semantic.text["text-primary"]}},"&: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":{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 = (baseTheme: Theme): Components<Theme>['MuiMenuItem'] => ({\n styleOverrides: {\n root: {\n ...typography.b1Weak,\n backgroundColor: baseTheme.palette.semantic.fill['fill-inverse-strong'],\n color: baseTheme.palette.semantic.text['text-strong'],\n padding: baseTheme.spacing(1.5, 2),\n\n '&.Mui-disabled': {\n color: baseTheme.palette.semantic.text['text-disabled'],\n cursor: 'not-allowed',\n opacity: 1, // Override default MUI opacity\n pointerEvents: 'auto',\n\n '&:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-inverse-strong'],\n color: baseTheme.palette.semantic.text['text-disabled'],\n },\n },\n '&.Mui-selected': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-weak'],\n color: baseTheme.palette.semantic.text['text-primary'],\n\n '&:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-weak'],\n color: baseTheme.palette.semantic.text['text-primary'],\n },\n },\n '&:hover:not(.Mui-disabled):not(.Mui-selected)': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-hover'],\n color: baseTheme.palette.semantic.text['text-strong'],\n },\n '&:active:not(.Mui-disabled):not(.Mui-selected)': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-press'],\n color: baseTheme.palette.semantic.text['text-strong'],\n },\n\n [baseTheme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('b1'),\n },\n },\n },\n});\n\nexport default menuItemOverrides;\n"],"names":["menuItemOverrides","baseTheme","styleOverrides","root","typography","b1Weak","backgroundColor","palette","semantic","fill","color","text","padding","spacing","cursor","opacity","pointerEvents","breakpoints","down","getMobileTextStyle"],"mappings":"gJAIaA,EAAqBC,IAAgB,CAChDC,eAAgB,CACdC,KAAM,IACDC,EAAAA,WAAWC,OACdC,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,uBACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,eACvCC,QAASX,EAAUY,QAAQ,IAAK,GAEhC,iBAAkB,CAChBH,MAAOT,EAAUM,QAAQC,SAASG,KAAK,iBACvCG,OAAQ,cACRC,QAAS,EACTC,cAAe,OAEf,UAAW,CACTV,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,uBACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,mBAG3C,iBAAkB,CAChBL,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,aACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,gBAEvC,UAAW,CACTL,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,aACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,kBAG3C,gDAAiD,CAC/CL,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,cACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,gBAEzC,iDAAkD,CAChDL,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,cACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,gBAGzC,CAACV,EAAUgB,YAAYC,KAAK,WAAY,IACnCC,EAAAA,mBAAmB"}
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.fill['fill-inverse-strong'],\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.fill['fill-inverse-strong'],\n color: theme.palette.semantic.text['text-disabled'],\n },\n },\n '&.Mui-selected': {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\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-weak'],\n color: theme.palette.semantic.text['text-primary'],\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 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","styleOverrides","root","typography","b1Weak","alignItems","backgroundColor","palette","semantic","fill","color","text","display","gap","spacing","justifyContent","padding","icon","cursor","opacity","pointerEvents","outline","stroke","outlineOffset","breakpoints","down","getMobileTextStyle"],"mappings":"gJAIaA,EAAqBC,IAAY,CAC5CC,eAAgB,CACdC,KAAM,IACDC,EAAAA,WAAWC,OACdC,WAAY,SACZC,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,uBAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,eACnCC,QAAS,OACTC,IAAKb,EAAMc,QAAQ,KACnBC,eAAgB,aAChBC,QAAShB,EAAMc,QAAQ,IAAK,GAE5B,QAAS,CACPJ,MAAOV,EAAMO,QAAQC,SAASS,KAAK,gBAErC,iBAAkB,CAChBP,MAAOV,EAAMO,QAAQC,SAASG,KAAK,iBACnCO,OAAQ,cACRC,QAAS,EACTC,cAAe,OAEf,6BAA8B,CAC5BV,MAAOV,EAAMO,QAAQC,SAASG,KAAK,kBAErC,+BAAgC,CAC9BD,MAAOV,EAAMO,QAAQC,SAASG,KAAK,kBAErC,QAAS,CACPD,MAAOV,EAAMO,QAAQC,SAASS,KAAK,kBAErC,UAAW,CACTX,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,uBAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,mBAGvC,iBAAkB,CAChBL,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,aAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,gBAEnC,6BAA8B,CAC5BD,MAAOV,EAAMO,QAAQC,SAASG,KAAK,iBAErC,QAAS,CACPD,MAAOV,EAAMO,QAAQC,SAASS,KAAK,iBAErC,UAAW,CACTX,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,aAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,kBAGvC,gDAAiD,CAC/CL,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,cAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,gBAErC,iDAAkD,CAChDL,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,cAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,gBAErC,sCAAuC,CACrCU,QAAS,aAAarB,EAAMO,QAAQC,SAASc,OAAO,kBACpDC,cAAe,QAGjB,CAACvB,EAAMwB,YAAYC,KAAK,WAAY,IAC/BC,EAAAA,mBAAmB"}
@@ -1,5 +1,5 @@
1
1
  import { Theme, Components } from '@mui/material/styles';
2
2
 
3
- declare const menuItemOverrides: (baseTheme: Theme) => Components<Theme>['MuiMenuItem'];
3
+ declare const menuItemOverrides: (theme: Theme) => Components<Theme>['MuiMenuItem'];
4
4
 
5
5
  export { menuItemOverrides as default, menuItemOverrides };
@@ -1,2 +1,2 @@
1
- import"@mui/material/styles";import{getMobileTextStyle as t,typography as e}from"../typography.js";const l=l=>({styleOverrides:{root:{...e.b1Weak,backgroundColor:l.palette.semantic.fill["fill-inverse-strong"],color:l.palette.semantic.text["text-strong"],padding:l.spacing(1.5,2),"&.Mui-disabled":{color:l.palette.semantic.text["text-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto","&:hover":{backgroundColor:l.palette.semantic.fill["fill-inverse-strong"],color:l.palette.semantic.text["text-disabled"]}},"&.Mui-selected":{backgroundColor:l.palette.semantic.fill["fill-weak"],color:l.palette.semantic.text["text-primary"],"&:hover":{backgroundColor:l.palette.semantic.fill["fill-weak"],color:l.palette.semantic.text["text-primary"]}},"&:hover:not(.Mui-disabled):not(.Mui-selected)":{backgroundColor:l.palette.semantic.fill["fill-hover"],color:l.palette.semantic.text["text-strong"]},"&:active:not(.Mui-disabled):not(.Mui-selected)":{backgroundColor:l.palette.semantic.fill["fill-press"],color:l.palette.semantic.text["text-strong"]},[l.breakpoints.down("tablet")]:{...t("b1")}}}});export{l as default,l as menuItemOverrides};
1
+ import"@mui/material/styles";import{getMobileTextStyle as t,typography as e}from"../typography.js";const l=l=>({styleOverrides:{root:{...e.b1Weak,alignItems:"center",backgroundColor:l.palette.semantic.fill["fill-inverse-strong"],color:l.palette.semantic.text["text-strong"],display:"flex",gap:l.spacing(1.5),justifyContent:"flex-start",padding:l.spacing(1.5,2),"& svg":{color:l.palette.semantic.icon["icon-strong"]},"&.Mui-disabled":{color:l.palette.semantic.text["text-disabled"],cursor:"not-allowed",opacity:1,pointerEvents:"auto","& .MuiListItemText-primary":{color:l.palette.semantic.text["text-disabled"]},"& .MuiListItemText-secondary":{color:l.palette.semantic.text["text-disabled"]},"& svg":{color:l.palette.semantic.icon["icon-disabled"]},"&:hover":{backgroundColor:l.palette.semantic.fill["fill-inverse-strong"],color:l.palette.semantic.text["text-disabled"]}},"&.Mui-selected":{backgroundColor:l.palette.semantic.fill["fill-weak"],color:l.palette.semantic.text["text-primary"],"& .MuiListItemText-primary":{color:l.palette.semantic.text["text-primary"]},"& svg":{color:l.palette.semantic.icon["icon-primary"]},"&:hover":{backgroundColor:l.palette.semantic.fill["fill-weak"],color:l.palette.semantic.text["text-primary"]}},"&:hover:not(.Mui-disabled):not(.Mui-selected)":{backgroundColor:l.palette.semantic.fill["fill-hover"],color:l.palette.semantic.text["text-strong"]},"&:active:not(.Mui-disabled):not(.Mui-selected)":{backgroundColor:l.palette.semantic.fill["fill-press"],color:l.palette.semantic.text["text-strong"]},"&:focus-visible, &.Mui-focusVisible":{outline:`2px solid ${l.palette.semantic.stroke["stroke-focus"]}`,outlineOffset:"-2px"},[l.breakpoints.down("tablet")]:{...t("b1")}}}});export{l as default,l 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 = (baseTheme: Theme): Components<Theme>['MuiMenuItem'] => ({\n styleOverrides: {\n root: {\n ...typography.b1Weak,\n backgroundColor: baseTheme.palette.semantic.fill['fill-inverse-strong'],\n color: baseTheme.palette.semantic.text['text-strong'],\n padding: baseTheme.spacing(1.5, 2),\n\n '&.Mui-disabled': {\n color: baseTheme.palette.semantic.text['text-disabled'],\n cursor: 'not-allowed',\n opacity: 1, // Override default MUI opacity\n pointerEvents: 'auto',\n\n '&:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-inverse-strong'],\n color: baseTheme.palette.semantic.text['text-disabled'],\n },\n },\n '&.Mui-selected': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-weak'],\n color: baseTheme.palette.semantic.text['text-primary'],\n\n '&:hover': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-weak'],\n color: baseTheme.palette.semantic.text['text-primary'],\n },\n },\n '&:hover:not(.Mui-disabled):not(.Mui-selected)': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-hover'],\n color: baseTheme.palette.semantic.text['text-strong'],\n },\n '&:active:not(.Mui-disabled):not(.Mui-selected)': {\n backgroundColor: baseTheme.palette.semantic.fill['fill-press'],\n color: baseTheme.palette.semantic.text['text-strong'],\n },\n\n [baseTheme.breakpoints.down('tablet')]: {\n ...getMobileTextStyle('b1'),\n },\n },\n },\n});\n\nexport default menuItemOverrides;\n"],"names":["menuItemOverrides","baseTheme","styleOverrides","root","typography","b1Weak","backgroundColor","palette","semantic","fill","color","text","padding","spacing","cursor","opacity","pointerEvents","breakpoints","down","getMobileTextStyle"],"mappings":"yGAIaA,EAAqBC,IAAgB,CAChDC,eAAgB,CACdC,KAAM,IACDC,EAAWC,OACdC,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,uBACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,eACvCC,QAASX,EAAUY,QAAQ,IAAK,GAEhC,iBAAkB,CAChBH,MAAOT,EAAUM,QAAQC,SAASG,KAAK,iBACvCG,OAAQ,cACRC,QAAS,EACTC,cAAe,OAEf,UAAW,CACTV,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,uBACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,mBAG3C,iBAAkB,CAChBL,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,aACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,gBAEvC,UAAW,CACTL,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,aACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,kBAG3C,gDAAiD,CAC/CL,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,cACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,gBAEzC,iDAAkD,CAChDL,gBAAiBL,EAAUM,QAAQC,SAASC,KAAK,cACjDC,MAAOT,EAAUM,QAAQC,SAASG,KAAK,gBAGzC,CAACV,EAAUgB,YAAYC,KAAK,WAAY,IACnCC,EAAmB"}
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.fill['fill-inverse-strong'],\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.fill['fill-inverse-strong'],\n color: theme.palette.semantic.text['text-disabled'],\n },\n },\n '&.Mui-selected': {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\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-weak'],\n color: theme.palette.semantic.text['text-primary'],\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 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","styleOverrides","root","typography","b1Weak","alignItems","backgroundColor","palette","semantic","fill","color","text","display","gap","spacing","justifyContent","padding","icon","cursor","opacity","pointerEvents","outline","stroke","outlineOffset","breakpoints","down","getMobileTextStyle"],"mappings":"yGAIaA,EAAqBC,IAAY,CAC5CC,eAAgB,CACdC,KAAM,IACDC,EAAWC,OACdC,WAAY,SACZC,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,uBAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,eACnCC,QAAS,OACTC,IAAKb,EAAMc,QAAQ,KACnBC,eAAgB,aAChBC,QAAShB,EAAMc,QAAQ,IAAK,GAE5B,QAAS,CACPJ,MAAOV,EAAMO,QAAQC,SAASS,KAAK,gBAErC,iBAAkB,CAChBP,MAAOV,EAAMO,QAAQC,SAASG,KAAK,iBACnCO,OAAQ,cACRC,QAAS,EACTC,cAAe,OAEf,6BAA8B,CAC5BV,MAAOV,EAAMO,QAAQC,SAASG,KAAK,kBAErC,+BAAgC,CAC9BD,MAAOV,EAAMO,QAAQC,SAASG,KAAK,kBAErC,QAAS,CACPD,MAAOV,EAAMO,QAAQC,SAASS,KAAK,kBAErC,UAAW,CACTX,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,uBAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,mBAGvC,iBAAkB,CAChBL,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,aAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,gBAEnC,6BAA8B,CAC5BD,MAAOV,EAAMO,QAAQC,SAASG,KAAK,iBAErC,QAAS,CACPD,MAAOV,EAAMO,QAAQC,SAASS,KAAK,iBAErC,UAAW,CACTX,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,aAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,kBAGvC,gDAAiD,CAC/CL,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,cAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,gBAErC,iDAAkD,CAChDL,gBAAiBN,EAAMO,QAAQC,SAASC,KAAK,cAC7CC,MAAOV,EAAMO,QAAQC,SAASG,KAAK,gBAErC,sCAAuC,CACrCU,QAAS,aAAarB,EAAMO,QAAQC,SAASc,OAAO,kBACpDC,cAAe,QAGjB,CAACvB,EAAMwB,YAAYC,KAAK,WAAY,IAC/BC,EAAmB"}
@@ -0,0 +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;
2
+ //# sourceMappingURL=menuOverrides.cjs.js.map
@@ -0,0 +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","styleOverrides","paper","border","borderColor","palette","semantic","stroke","borderRadius","radius","boxShadow","customShadows","overlay","margin","spacing","list","padding"],"mappings":"0GAEaA,EAAiBC,IAAY,CACxCC,eAAgB,CACdC,MAAO,CACLC,OAAQ,YACRC,YAAaJ,EAAMK,QAAQC,SAASC,OAAO,eAC3CC,aAAcR,EAAMS,OAAO,YAC3BC,UAAWV,EAAMW,cAAcC,QAC/BC,OAAQb,EAAMc,QAAQ,GAAK,IAE7BC,KAAM,CACJC,QAAShB,EAAMc,QAAQ,EAAG"}
@@ -0,0 +1,5 @@
1
+ import { Theme, Components } from '@mui/material/styles';
2
+
3
+ declare const menuOverrides: (theme: Theme) => Components<Theme>['MuiMenu'];
4
+
5
+ export { menuOverrides as default, menuOverrides };
@@ -0,0 +1,2 @@
1
+ import"@mui/material/styles";const r=r=>({styleOverrides:{paper:{border:"1px solid",borderColor:r.palette.semantic.stroke["stroke-weak"],borderRadius:r.radius["radius-8"],boxShadow:r.customShadows.overlay,margin:r.spacing(.5,0)},list:{padding:r.spacing(1,0)}}});export{r as default,r as menuOverrides};
2
+ //# sourceMappingURL=menuOverrides.js.map
@@ -0,0 +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","styleOverrides","paper","border","borderColor","palette","semantic","stroke","borderRadius","radius","boxShadow","customShadows","overlay","margin","spacing","list","padding"],"mappings":"mCAEaA,EAAiBC,IAAY,CACxCC,eAAgB,CACdC,MAAO,CACLC,OAAQ,YACRC,YAAaJ,EAAMK,QAAQC,SAASC,OAAO,eAC3CC,aAAcR,EAAMS,OAAO,YAC3BC,UAAWV,EAAMW,cAAcC,QAC/BC,OAAQb,EAAMc,QAAQ,GAAK,IAE7BC,KAAM,CACJC,QAAShB,EAAMc,QAAQ,EAAG"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@mui/material/styles");const e=e=>({defaultProps:{MenuProps:{PaperProps:{style:{boxShadow:e.customShadows?.overlay,marginBottom:e.spacing(.5),marginTop:e.spacing(.5)}}}},styleOverrides:{root:{"& .MuiSelect-select":{"&.MuiInputBase-input":{paddingRight:e.spacing(1)}},"&.MuiOutlinedInput-root":{"& fieldset":{border:"none"},"&.Mui-disabled fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},"&:hover fieldset":{border:"none"}}}}});exports.default=e,exports.selectOverrides=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@mui/material/styles");const e=e=>({styleOverrides:{root:{"& .MuiSelect-select":{"&.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 defaultProps: {\n MenuProps: {\n PaperProps: {\n style: {\n boxShadow: theme.customShadows?.overlay,\n marginBottom: theme.spacing(0.5),\n marginTop: theme.spacing(0.5),\n },\n },\n },\n },\n styleOverrides: {\n root: {\n '& .MuiSelect-select': {\n '&.MuiInputBase-input': {\n paddingRight: theme.spacing(1),\n },\n },\n '&.MuiOutlinedInput-root': {\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","defaultProps","MenuProps","PaperProps","style","boxShadow","customShadows","overlay","marginBottom","spacing","marginTop","styleOverrides","root","paddingRight","border"],"mappings":"0GAEaA,EAAmBC,IAAY,CAC1CC,aAAc,CACZC,UAAW,CACTC,WAAY,CACVC,MAAO,CACLC,UAAWL,EAAMM,eAAeC,QAChCC,aAAcR,EAAMS,QAAQ,IAC5BC,UAAWV,EAAMS,QAAQ,QAKjCE,eAAgB,CACdC,KAAM,CACJ,sBAAuB,CACrB,uBAAwB,CACtBC,aAAcb,EAAMS,QAAQ,KAGhC,0BAA2B,CACzB,aAAc,CACZK,OAAQ,QAEV,0BAA2B,CACzBA,OAAQ,QAEV,yBAA0B,CACxBA,OAAQ,QAEV,mBAAoB,CAClBA,OAAQ"}
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 '& .MuiSelect-select': {\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","paddingRight","spacing","borderRadius","radius","border"],"mappings":"0GAEaA,EAAmBC,IAAY,CAC1CC,eAAgB,CACdC,KAAM,CACJ,sBAAuB,CACrB,uBAAwB,CACtBC,aAAcH,EAAMI,QAAQ,KAGhC,0BAA2B,CACzBC,aAAcL,EAAMM,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=>({defaultProps:{MenuProps:{PaperProps:{style:{boxShadow:e.customShadows?.overlay,marginBottom:e.spacing(.5),marginTop:e.spacing(.5)}}}},styleOverrides:{root:{"& .MuiSelect-select":{"&.MuiInputBase-input":{paddingRight:e.spacing(1)}},"&.MuiOutlinedInput-root":{"& fieldset":{border:"none"},"&.Mui-disabled fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},"&:hover fieldset":{border:"none"}}}}});export{e as default,e as selectOverrides};
1
+ import"@mui/material/styles";const e=e=>({styleOverrides:{root:{"& .MuiSelect-select":{"&.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