@flipdish/portal-library 3.7.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/components/FDErrorBoundary/index.cjs.js.map +1 -1
  2. package/dist/components/FDErrorBoundary/index.js.map +1 -1
  3. package/dist/components/Form/FormItemLayout/index.cjs.js.map +1 -1
  4. package/dist/components/Form/FormItemLayout/index.js.map +1 -1
  5. package/dist/components/Form/GenericAutocompleteField/index.cjs.js +1 -1
  6. package/dist/components/Form/GenericAutocompleteField/index.cjs.js.map +1 -1
  7. package/dist/components/Form/GenericAutocompleteField/index.d.ts +4 -4
  8. package/dist/components/Form/GenericAutocompleteField/index.js +1 -1
  9. package/dist/components/Form/GenericAutocompleteField/index.js.map +1 -1
  10. package/dist/components/Form/GenericFormContainer/index.cjs.js +1 -1
  11. package/dist/components/Form/GenericFormContainer/index.cjs.js.map +1 -1
  12. package/dist/components/Form/GenericFormContainer/index.d.ts +3 -3
  13. package/dist/components/Form/GenericFormContainer/index.js +1 -1
  14. package/dist/components/Form/GenericFormContainer/index.js.map +1 -1
  15. package/dist/components/Form/GenericTextField/index.cjs.js.map +1 -1
  16. package/dist/components/Form/GenericTextField/index.js.map +1 -1
  17. package/dist/components/Form/PaginatedAutocompleteField/index.cjs.js +1 -1
  18. package/dist/components/Form/PaginatedAutocompleteField/index.cjs.js.map +1 -1
  19. package/dist/components/Form/PaginatedAutocompleteField/index.js +1 -1
  20. package/dist/components/Form/PaginatedAutocompleteField/index.js.map +1 -1
  21. package/dist/components/GenericDatePickerField/GenericDateFieldBase.cjs.js.map +1 -1
  22. package/dist/components/GenericDatePickerField/GenericDateFieldBase.js.map +1 -1
  23. package/dist/components/GenericRadioButtons/index.cjs.js +1 -1
  24. package/dist/components/GenericRadioButtons/index.cjs.js.map +1 -1
  25. package/dist/components/GenericRadioButtons/index.d.ts +3 -3
  26. package/dist/components/GenericRadioButtons/index.js +1 -1
  27. package/dist/components/GenericRadioButtons/index.js.map +1 -1
  28. package/dist/components/GenericTable/HighlightScrollbar.cjs.js.map +1 -1
  29. package/dist/components/GenericTable/HighlightScrollbar.js.map +1 -1
  30. package/dist/components/GenericTable/index.cjs.js +1 -1
  31. package/dist/components/GenericTable/index.cjs.js.map +1 -1
  32. package/dist/components/GenericTable/index.js +1 -1
  33. package/dist/components/GenericTable/index.js.map +1 -1
  34. package/dist/components/GenericTableBody/index.cjs.js +1 -1
  35. package/dist/components/GenericTableBody/index.cjs.js.map +1 -1
  36. package/dist/components/GenericTableBody/index.d.ts +9 -9
  37. package/dist/components/GenericTableBody/index.js +1 -1
  38. package/dist/components/GenericTableBody/index.js.map +1 -1
  39. package/dist/components/GenericTableBodyRow/index.cjs.js +1 -1
  40. package/dist/components/GenericTableBodyRow/index.cjs.js.map +1 -1
  41. package/dist/components/GenericTableBodyRow/index.d.ts +2 -2
  42. package/dist/components/GenericTableBodyRow/index.js +1 -1
  43. package/dist/components/GenericTableBodyRow/index.js.map +1 -1
  44. package/dist/components/ListItemLinkButton/index.cjs.js +1 -1
  45. package/dist/components/ListItemLinkButton/index.cjs.js.map +1 -1
  46. package/dist/components/ListItemLinkButton/index.js +1 -1
  47. package/dist/components/ListItemLinkButton/index.js.map +1 -1
  48. package/dist/components/NoResults/index.cjs.js.map +1 -1
  49. package/dist/components/NoResults/index.js.map +1 -1
  50. package/dist/components/PageLayout/DocumentTitle.cjs.js.map +1 -1
  51. package/dist/components/PageLayout/DocumentTitle.d.ts +1 -1
  52. package/dist/components/PageLayout/DocumentTitle.js.map +1 -1
  53. package/dist/components/PageLayout/FullWidthContainer.cjs.js.map +1 -1
  54. package/dist/components/PageLayout/FullWidthContainer.js.map +1 -1
  55. package/dist/components/PageLayout/GlobalSpacingStyles.cjs.js.map +1 -1
  56. package/dist/components/PageLayout/GlobalSpacingStyles.js.map +1 -1
  57. package/dist/components/PageLayout/index.cjs.js.map +1 -1
  58. package/dist/components/PageLayout/index.js.map +1 -1
  59. package/dist/components/PortalMock/index.cjs.js.map +1 -1
  60. package/dist/components/PortalMock/index.js.map +1 -1
  61. package/dist/components/Spacer/index.cjs.js.map +1 -1
  62. package/dist/components/Spacer/index.js.map +1 -1
  63. package/dist/components/atoms/Badge/index.cjs.js +1 -1
  64. package/dist/components/atoms/Badge/index.cjs.js.map +1 -1
  65. package/dist/components/atoms/Badge/index.js +1 -1
  66. package/dist/components/atoms/Badge/index.js.map +1 -1
  67. package/dist/components/atoms/Button/buttonThemeOverrides.cjs.js +2 -0
  68. package/dist/components/atoms/Button/buttonThemeOverrides.cjs.js.map +1 -0
  69. package/dist/components/atoms/Button/buttonThemeOverrides.d.ts +21 -0
  70. package/dist/components/atoms/Button/buttonThemeOverrides.js +2 -0
  71. package/dist/components/atoms/Button/buttonThemeOverrides.js.map +1 -0
  72. package/dist/components/atoms/Button/getButtonStyles.cjs.js +2 -0
  73. package/dist/components/atoms/Button/getButtonStyles.cjs.js.map +1 -0
  74. package/dist/components/atoms/Button/getButtonStyles.d.ts +15 -0
  75. package/dist/components/atoms/Button/getButtonStyles.js +2 -0
  76. package/dist/components/atoms/Button/getButtonStyles.js.map +1 -0
  77. package/dist/components/atoms/Button/index.cjs.js +2 -0
  78. package/dist/components/atoms/Button/index.cjs.js.map +1 -0
  79. package/dist/components/atoms/Button/index.d.ts +26 -0
  80. package/dist/components/atoms/Button/index.js +2 -0
  81. package/dist/components/atoms/Button/index.js.map +1 -0
  82. package/dist/components/atoms/IconContainer/index.cjs.js.map +1 -1
  83. package/dist/components/molecules/Alert/index.cjs.js +1 -1
  84. package/dist/components/molecules/Alert/index.cjs.js.map +1 -1
  85. package/dist/components/molecules/Alert/index.d.ts +1 -1
  86. package/dist/components/molecules/Alert/index.js +1 -1
  87. package/dist/components/molecules/Alert/index.js.map +1 -1
  88. package/dist/components/molecules/Modal/index.cjs.js.map +1 -1
  89. package/dist/components/molecules/Modal/index.js.map +1 -1
  90. package/dist/custom-hooks/useMicroFrontendAttributes.cjs.js +1 -1
  91. package/dist/custom-hooks/useMicroFrontendAttributes.cjs.js.map +1 -1
  92. package/dist/custom-hooks/useMicroFrontendAttributes.d.ts +4 -4
  93. package/dist/custom-hooks/useMicroFrontendAttributes.js +1 -1
  94. package/dist/custom-hooks/useMicroFrontendAttributes.js.map +1 -1
  95. package/dist/custom-hooks/useRenderValidText.cjs.js.map +1 -1
  96. package/dist/custom-hooks/useRenderValidText.d.ts +3 -3
  97. package/dist/custom-hooks/useRenderValidText.js.map +1 -1
  98. package/dist/custom-hooks/useToasts.cjs.js.map +1 -1
  99. package/dist/custom-hooks/useToasts.js.map +1 -1
  100. package/dist/icons/helpers/withSvgIcon.cjs.js.map +1 -1
  101. package/dist/icons/helpers/withSvgIcon.js.map +1 -1
  102. package/dist/themes/ThemeProvider.cjs.js.map +1 -1
  103. package/dist/themes/flipdishPublicTheme.cjs.js +1 -1
  104. package/dist/themes/flipdishPublicTheme.cjs.js.map +1 -1
  105. package/dist/themes/flipdishPublicTheme.js +1 -1
  106. package/dist/themes/flipdishPublicTheme.js.map +1 -1
  107. package/dist/themes/theme.d.ts +14 -2
  108. package/dist/themes/tokens/colours/colours-stories-utils.cjs.js +1 -1
  109. package/dist/themes/tokens/colours/colours-stories-utils.cjs.js.map +1 -1
  110. package/dist/themes/tokens/colours/colours-stories-utils.js +1 -1
  111. package/dist/themes/tokens/colours/colours-stories-utils.js.map +1 -1
  112. package/dist/themes/tokens/colours/primitives.cjs.js +1 -1
  113. package/dist/themes/tokens/colours/primitives.cjs.js.map +1 -1
  114. package/dist/themes/tokens/colours/primitives.js +1 -1
  115. package/dist/themes/tokens/colours/primitives.js.map +1 -1
  116. package/dist/themes/tokens/colours/semantic.cjs.js +1 -1
  117. package/dist/themes/tokens/colours/semantic.cjs.js.map +1 -1
  118. package/dist/themes/tokens/colours/semantic.d.ts +223 -4
  119. package/dist/themes/tokens/colours/semantic.js +1 -1
  120. package/dist/themes/tokens/colours/semantic.js.map +1 -1
  121. package/dist/themes/tokens/colours/types.d.ts +14 -14
  122. package/dist/themes/tokens/shadows/shadows.cjs.js +2 -0
  123. package/dist/themes/tokens/shadows/shadows.cjs.js.map +1 -0
  124. package/dist/themes/tokens/shadows/shadows.d.ts +8 -0
  125. package/dist/themes/tokens/shadows/shadows.js +2 -0
  126. package/dist/themes/tokens/shadows/shadows.js.map +1 -0
  127. package/dist/themes/typography.cjs.js.map +1 -1
  128. package/dist/themes/typography.d.ts +31 -2
  129. package/dist/themes/typography.js.map +1 -1
  130. package/dist/utilities/formValidation.cjs.js +1 -1
  131. package/dist/utilities/formValidation.cjs.js.map +1 -1
  132. package/dist/utilities/formValidation.d.ts +1 -1
  133. package/dist/utilities/formValidation.js.map +1 -1
  134. package/dist/utilities/genericUtilities.cjs.js.map +1 -1
  135. package/dist/utilities/genericUtilities.js.map +1 -1
  136. package/dist/utilities/renderUtilities.cjs.js.map +1 -1
  137. package/dist/utilities/renderUtilities.js.map +1 -1
  138. package/package.json +5 -4
  139. package/dist/components/Button/index.cjs.js +0 -2
  140. package/dist/components/Button/index.cjs.js.map +0 -1
  141. package/dist/components/Button/index.d.ts +0 -6
  142. package/dist/components/Button/index.js +0 -2
  143. package/dist/components/Button/index.js.map +0 -1
  144. package/dist/themes/tokens/colours/index.cjs.js +0 -2
  145. package/dist/themes/tokens/colours/index.cjs.js.map +0 -1
  146. package/dist/themes/tokens/colours/index.d.ts +0 -3
  147. package/dist/themes/tokens/colours/index.js +0 -2
  148. package/dist/themes/tokens/colours/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../src/components/PortalMock/index.tsx"],"sourcesContent":["import AppBar from '@mui/material/AppBar';\nimport Box from '@mui/material/Box';\nimport CssBaseline from '@mui/material/CssBaseline';\nimport Drawer from '@mui/material/Drawer';\nimport { styled } from '@mui/material/styles';\nimport Typography from '@mui/material/Typography';\n\nconst drawerWidth = 198;\n\nconst StyledHeader = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.background['background-sunken'],\n height: '65px',\n color: theme.palette.semantic.text['text-weak'],\n borderBottom: `2px solid ${theme.palette.semantic.stroke['stroke-weak']}`,\n}));\n\nconst StyledSidebar = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.background['background-sunken'],\n height: '100%',\n color: theme.palette.semantic.text['text-weak'],\n}));\n\nconst StyledAppBar = styled(AppBar)`\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `calc(100% - ${drawerWidth}px)` : '100%')};\n margin-left: ${({ theme }) => (theme.breakpoints.up('tablet') ? `${drawerWidth}px` : '0')};\n box-shadow: none;\n`;\n\nconst StyledDrawer = styled(Drawer)`\n display: ${({ theme }) => (theme.breakpoints.up('tablet') ? 'block' : 'none')};\n & .MuiDrawer-paper {\n box-sizing: border-box;\n width: ${drawerWidth}px;\n border-color: ${({ theme }) => theme.palette.semantic.stroke['stroke-weak']};\n border-width: 2px;\n }\n`;\n\nconst StyledNavBox = styled(Box)`\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `${drawerWidth}px` : '0')};\n flex-shrink: ${({ theme }) => (theme.breakpoints.up('tablet') ? '0' : '1')};\n`;\n\nconst StyledMainBox = styled(Box)`\n flex-grow: 1;\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `calc(100% - ${drawerWidth}px)` : '100%')};\n margin-top: 65px;\n`;\n\nconst StyledBoldTypography = styled(Typography)`\n font-weight: bold;\n`;\n\ninterface Props {\n loadedFromPortal: boolean;\n children: React.ReactNode;\n}\n\nconst PortalMock = ({ children, loadedFromPortal }: Props) => {\n if (loadedFromPortal) {\n /* eslint-disable-next-line react/jsx-no-useless-fragment */\n return <>{children}</>;\n }\n\n const drawer = (\n <StyledSidebar>\n <StyledBoldTypography>Sidebar</StyledBoldTypography>\n </StyledSidebar>\n );\n\n return (\n <Box sx={{ display: 'flex' }}>\n <CssBaseline />\n <StyledAppBar position=\"fixed\">\n <StyledHeader>\n <StyledBoldTypography>Header</StyledBoldTypography>\n </StyledHeader>\n </StyledAppBar>\n <StyledNavBox aria-label=\"mailbox folders\" as=\"nav\">\n <StyledDrawer open variant=\"permanent\">\n {drawer}\n </StyledDrawer>\n </StyledNavBox>\n <StyledMainBox as=\"main\">{children}</StyledMainBox>\n </Box>\n );\n};\n\nexport default PortalMock;\n"],"names":["drawerWidth","StyledHeader","styled","theme","display","justifyContent","alignItems","backgroundColor","palette","semantic","background","height","color","text","borderBottom","stroke","StyledSidebar","StyledAppBar","AppBar","breakpoints","up","StyledDrawer","Drawer","StyledNavBox","Box","StyledMainBox","StyledBoldTypography","Typography","children","loadedFromPortal","_jsx","jsx","_Fragment","Fragment","drawer","_jsxs","jsxs","sx","CssBaseline","position","as","open","variant"],"mappings":"kQAOA,MAAMA,EAAc,IAEdC,EAAeC,EAAAA,OAAO,MAAPA,EAAc,EAAGC,YAAa,CACjDC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,gBAAiBJ,EAAMK,QAAQC,SAASC,WAAW,qBACnDC,OAAQ,OACRC,MAAOT,EAAMK,QAAQC,SAASI,KAAK,aACnCC,aAAc,aAAaX,EAAMK,QAAQC,SAASM,OAAO,qBAGrDC,EAAgBd,EAAAA,OAAO,MAAPA,EAAc,EAAGC,YAAa,CAClDC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,gBAAiBJ,EAAMK,QAAQC,SAASC,WAAW,qBACnDC,OAAQ,OACRC,MAAOT,EAAMK,QAAQC,SAASI,KAAK,iBAG/BI,EAAef,EAAAA,OAAOgB,EAAO;WACxB,EAAGf,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,qBAAkC;iBAC7E,EAAGjB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAqB;;EAIjFC,EAAenB,EAAAA,OAAOoB,EAAO;aACtB,EAAGnB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAU;;;aAG3DpB;oBACO,EAAGG,WAAYA,EAAMK,QAAQC,SAASM,OAAO;;;EAK3DQ,EAAerB,EAAAA,OAAOsB,EAAI;WACrB,EAAGrB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAqB;iBAChE,EAAGjB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,IAAM;EAGlEK,EAAgBvB,EAAAA,OAAOsB,EAAI;;WAEtB,EAAGrB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,qBAAkC;;EAIxFM,EAAuBxB,EAAAA,OAAOyB,EAAW;;iBAS5B,EAAGC,WAAUC,uBAC9B,GAAIA,EAEF,OAAOC,EAAAC,IAAAC,EAAAC,SAAA,CAAAL,SAAGA,IAGZ,MAAMM,EACJJ,EAAAA,IAACd,EACC,CAAAY,SAAAE,EAAAA,IAACJ,EAAoB,CAAAE,SAAA,cAIzB,OACEO,EAAAC,KAACZ,EAAG,CAACa,GAAI,CAAEjC,QAAS,QAAQwB,SAAA,CAC1BE,MAACQ,EAAW,CAAA,GACZR,EAAAC,IAACd,EAAY,CAACsB,SAAS,QAAOX,SAC5BE,EAAAA,IAAC7B,EACC,CAAA2B,SAAAE,EAAAA,IAACJ,EAAoB,CAAAE,SAAA,eAGzBE,EAACC,IAAAR,EAAwB,CAAA,aAAA,kBAAkBiB,GAAG,MAC5CZ,SAAAE,EAAAA,IAACT,EAAY,CAACoB,MAAI,EAACC,QAAQ,YACxBd,SAAAM,MAGLJ,EAAAA,IAACL,EAAc,CAAAe,GAAG,OAAQZ,SAAAA,MACtB"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../src/components/PortalMock/index.tsx"],"sourcesContent":["import AppBar from '@mui/material/AppBar';\nimport Box from '@mui/material/Box';\nimport CssBaseline from '@mui/material/CssBaseline';\nimport Drawer from '@mui/material/Drawer';\nimport { styled } from '@mui/material/styles';\nimport Typography from '@mui/material/Typography';\n\nconst drawerWidth = 198;\n\nconst StyledHeader = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.background['background-sunken'],\n height: '65px',\n color: theme.palette.semantic.text['text-weak'],\n borderBottom: `2px solid ${theme.palette.semantic.stroke['stroke-weak']}`,\n}));\n\nconst StyledSidebar = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.background['background-sunken'],\n height: '100%',\n color: theme.palette.semantic.text['text-weak'],\n}));\n\nconst StyledAppBar = styled(AppBar)`\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `calc(100% - ${drawerWidth}px)` : '100%')};\n margin-left: ${({ theme }) => (theme.breakpoints.up('tablet') ? `${drawerWidth}px` : '0')};\n box-shadow: none;\n`;\n\nconst StyledDrawer = styled(Drawer)`\n display: ${({ theme }) => (theme.breakpoints.up('tablet') ? 'block' : 'none')};\n & .MuiDrawer-paper {\n box-sizing: border-box;\n width: ${drawerWidth}px;\n border-color: ${({ theme }) => theme.palette.semantic.stroke['stroke-weak']};\n border-width: 2px;\n }\n`;\n\nconst StyledNavBox = styled(Box)`\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `${drawerWidth}px` : '0')};\n flex-shrink: ${({ theme }) => (theme.breakpoints.up('tablet') ? '0' : '1')};\n`;\n\nconst StyledMainBox = styled(Box)`\n flex-grow: 1;\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `calc(100% - ${drawerWidth}px)` : '100%')};\n margin-top: 65px;\n`;\n\nconst StyledBoldTypography = styled(Typography)`\n font-weight: bold;\n`;\n\ninterface Props {\n loadedFromPortal: boolean;\n children: React.ReactNode;\n}\n\nconst PortalMock = ({ children, loadedFromPortal }: Props) => {\n if (loadedFromPortal) {\n /* eslint-disable-next-line react/jsx-no-useless-fragment */\n return <>{children}</>;\n }\n\n const drawer = (\n <StyledSidebar>\n <StyledBoldTypography>Sidebar</StyledBoldTypography>\n </StyledSidebar>\n );\n\n return (\n <Box sx={{ display: 'flex' }}>\n <CssBaseline />\n <StyledAppBar position=\"fixed\">\n <StyledHeader>\n <StyledBoldTypography>Header</StyledBoldTypography>\n </StyledHeader>\n </StyledAppBar>\n <StyledNavBox aria-label=\"mailbox folders\" as=\"nav\">\n <StyledDrawer open variant=\"permanent\">\n {drawer}\n </StyledDrawer>\n </StyledNavBox>\n <StyledMainBox as=\"main\">{children}</StyledMainBox>\n </Box>\n );\n};\n\nexport default PortalMock;\n"],"names":["drawerWidth","StyledHeader","styled","theme","display","justifyContent","alignItems","backgroundColor","palette","semantic","background","height","color","text","borderBottom","stroke","StyledSidebar","StyledAppBar","AppBar","breakpoints","up","StyledDrawer","Drawer","StyledNavBox","Box","StyledMainBox","StyledBoldTypography","Typography","children","loadedFromPortal","_jsx","jsx","_Fragment","Fragment","drawer","_jsxs","jsxs","sx","CssBaseline","position","as","open","variant"],"mappings":"kQAOA,MAAMA,EAAc,IAEdC,EAAeC,EAAAA,OAAO,MAAPA,EAAc,EAAGC,YAAa,CACjDC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,gBAAiBJ,EAAMK,QAAQC,SAASC,WAAW,qBACnDC,OAAQ,OACRC,MAAOT,EAAMK,QAAQC,SAASI,KAAK,aACnCC,aAAc,aAAaX,EAAMK,QAAQC,SAASM,OAAO,qBAGrDC,EAAgBd,EAAAA,OAAO,MAAPA,EAAc,EAAGC,YAAa,CAClDC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,gBAAiBJ,EAAMK,QAAQC,SAASC,WAAW,qBACnDC,OAAQ,OACRC,MAAOT,EAAMK,QAAQC,SAASI,KAAK,iBAG/BI,EAAef,EAAAA,OAAOgB,EAAO;WACxB,EAAGf,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,qBAAkC;iBAC7E,EAAGjB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAqB;;EAIjFC,EAAenB,EAAAA,OAAOoB,EAAO;aACtB,EAAGnB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAU;;;aAG3DpB;oBACO,EAAGG,WAAYA,EAAMK,QAAQC,SAASM,OAAO;;;EAK3DQ,EAAerB,EAAAA,OAAOsB,EAAI;WACrB,EAAGrB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAqB;iBAChE,EAAGjB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,IAAM;EAGlEK,EAAgBvB,EAAAA,OAAOsB,EAAI;;WAEtB,EAAGrB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,qBAAkC;;EAIxFM,EAAuBxB,EAAAA,OAAOyB,EAAW;;iBAS5B,EAAGC,WAAUC,uBAC9B,GAAIA,EAEF,OAAOC,EAAAC,IAAAC,EAAAC,SAAA,CAAAL,SAAGA,IAGZ,MAAMM,EACJJ,EAAAA,IAACd,EACC,CAAAY,SAAAE,EAAAA,IAACJ,EAAoB,CAAAE,SAAA,cAIzB,OACEO,EAAAC,KAACZ,EAAG,CAACa,GAAI,CAAEjC,QAAS,QAAQwB,SAAA,CAC1BE,MAACQ,EAAW,CAAA,GACZR,EAAAC,IAACd,EAAY,CAACsB,SAAS,QAAOX,SAC5BE,EAAAA,IAAC7B,EACC,CAAA2B,SAAAE,EAAAA,IAACJ,EAAoB,CAAAE,SAAA,eAGzBE,EAACC,IAAAR,EAAwB,CAAA,aAAA,kBAAkBiB,GAAG,MAC5CZ,SAAAE,EAAAA,IAACT,EAAY,CAACoB,MAAI,EAACC,QAAQ,YACxBd,SAAAM,MAGLJ,EAAAA,IAACL,EAAc,CAAAe,GAAG,OAAQZ,SAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/PortalMock/index.tsx"],"sourcesContent":["import AppBar from '@mui/material/AppBar';\nimport Box from '@mui/material/Box';\nimport CssBaseline from '@mui/material/CssBaseline';\nimport Drawer from '@mui/material/Drawer';\nimport { styled } from '@mui/material/styles';\nimport Typography from '@mui/material/Typography';\n\nconst drawerWidth = 198;\n\nconst StyledHeader = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.background['background-sunken'],\n height: '65px',\n color: theme.palette.semantic.text['text-weak'],\n borderBottom: `2px solid ${theme.palette.semantic.stroke['stroke-weak']}`,\n}));\n\nconst StyledSidebar = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.background['background-sunken'],\n height: '100%',\n color: theme.palette.semantic.text['text-weak'],\n}));\n\nconst StyledAppBar = styled(AppBar)`\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `calc(100% - ${drawerWidth}px)` : '100%')};\n margin-left: ${({ theme }) => (theme.breakpoints.up('tablet') ? `${drawerWidth}px` : '0')};\n box-shadow: none;\n`;\n\nconst StyledDrawer = styled(Drawer)`\n display: ${({ theme }) => (theme.breakpoints.up('tablet') ? 'block' : 'none')};\n & .MuiDrawer-paper {\n box-sizing: border-box;\n width: ${drawerWidth}px;\n border-color: ${({ theme }) => theme.palette.semantic.stroke['stroke-weak']};\n border-width: 2px;\n }\n`;\n\nconst StyledNavBox = styled(Box)`\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `${drawerWidth}px` : '0')};\n flex-shrink: ${({ theme }) => (theme.breakpoints.up('tablet') ? '0' : '1')};\n`;\n\nconst StyledMainBox = styled(Box)`\n flex-grow: 1;\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `calc(100% - ${drawerWidth}px)` : '100%')};\n margin-top: 65px;\n`;\n\nconst StyledBoldTypography = styled(Typography)`\n font-weight: bold;\n`;\n\ninterface Props {\n loadedFromPortal: boolean;\n children: React.ReactNode;\n}\n\nconst PortalMock = ({ children, loadedFromPortal }: Props) => {\n if (loadedFromPortal) {\n /* eslint-disable-next-line react/jsx-no-useless-fragment */\n return <>{children}</>;\n }\n\n const drawer = (\n <StyledSidebar>\n <StyledBoldTypography>Sidebar</StyledBoldTypography>\n </StyledSidebar>\n );\n\n return (\n <Box sx={{ display: 'flex' }}>\n <CssBaseline />\n <StyledAppBar position=\"fixed\">\n <StyledHeader>\n <StyledBoldTypography>Header</StyledBoldTypography>\n </StyledHeader>\n </StyledAppBar>\n <StyledNavBox aria-label=\"mailbox folders\" as=\"nav\">\n <StyledDrawer open variant=\"permanent\">\n {drawer}\n </StyledDrawer>\n </StyledNavBox>\n <StyledMainBox as=\"main\">{children}</StyledMainBox>\n </Box>\n );\n};\n\nexport default PortalMock;\n"],"names":["drawerWidth","StyledHeader","styled","theme","display","justifyContent","alignItems","backgroundColor","palette","semantic","background","height","color","text","borderBottom","stroke","StyledSidebar","StyledAppBar","AppBar","breakpoints","up","StyledDrawer","Drawer","StyledNavBox","Box","StyledMainBox","StyledBoldTypography","Typography","PortalMock","children","loadedFromPortal","_jsx","_Fragment","drawer","_jsxs","sx","CssBaseline","position","as","open","variant"],"mappings":"wSAOA,MAAMA,EAAc,IAEdC,EAAeC,EAAO,MAAPA,EAAc,EAAGC,YAAa,CACjDC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,gBAAiBJ,EAAMK,QAAQC,SAASC,WAAW,qBACnDC,OAAQ,OACRC,MAAOT,EAAMK,QAAQC,SAASI,KAAK,aACnCC,aAAc,aAAaX,EAAMK,QAAQC,SAASM,OAAO,qBAGrDC,EAAgBd,EAAO,MAAPA,EAAc,EAAGC,YAAa,CAClDC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,gBAAiBJ,EAAMK,QAAQC,SAASC,WAAW,qBACnDC,OAAQ,OACRC,MAAOT,EAAMK,QAAQC,SAASI,KAAK,iBAG/BI,EAAef,EAAOgB,EAAO;WACxB,EAAGf,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,qBAAkC;iBAC7E,EAAGjB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAqB;;EAIjFC,EAAenB,EAAOoB,EAAO;aACtB,EAAGnB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAU;;;aAG3DpB;oBACO,EAAGG,WAAYA,EAAMK,QAAQC,SAASM,OAAO;;;EAK3DQ,EAAerB,EAAOsB,EAAI;WACrB,EAAGrB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAqB;iBAChE,EAAGjB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,IAAM;EAGlEK,EAAgBvB,EAAOsB,EAAI;;WAEtB,EAAGrB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,qBAAkC;;EAIxFM,EAAuBxB,EAAOyB,EAAW;;EASzCC,EAAa,EAAGC,WAAUC,uBAC9B,GAAIA,EAEF,OAAOC,EAAAC,EAAA,CAAAH,SAAGA,IAGZ,MAAMI,EACJF,EAACf,EACC,CAAAa,SAAAE,EAACL,EAAoB,CAAAG,SAAA,cAIzB,OACEK,EAACV,EAAG,CAACW,GAAI,CAAE/B,QAAS,QAAQyB,SAAA,CAC1BE,EAACK,EAAW,CAAA,GACZL,EAACd,EAAY,CAACoB,SAAS,QAAOR,SAC5BE,EAAC9B,EACC,CAAA4B,SAAAE,EAACL,EAAoB,CAAAG,SAAA,eAGzBE,EAACR,EAAwB,CAAA,aAAA,kBAAkBe,GAAG,MAC5CT,SAAAE,EAACV,EAAY,CAACkB,MAAI,EAACC,QAAQ,YACxBX,SAAAI,MAGLF,EAACN,EAAc,CAAAa,GAAG,OAAQT,SAAAA,MACtB"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/PortalMock/index.tsx"],"sourcesContent":["import AppBar from '@mui/material/AppBar';\nimport Box from '@mui/material/Box';\nimport CssBaseline from '@mui/material/CssBaseline';\nimport Drawer from '@mui/material/Drawer';\nimport { styled } from '@mui/material/styles';\nimport Typography from '@mui/material/Typography';\n\nconst drawerWidth = 198;\n\nconst StyledHeader = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.background['background-sunken'],\n height: '65px',\n color: theme.palette.semantic.text['text-weak'],\n borderBottom: `2px solid ${theme.palette.semantic.stroke['stroke-weak']}`,\n}));\n\nconst StyledSidebar = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: theme.palette.semantic.background['background-sunken'],\n height: '100%',\n color: theme.palette.semantic.text['text-weak'],\n}));\n\nconst StyledAppBar = styled(AppBar)`\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `calc(100% - ${drawerWidth}px)` : '100%')};\n margin-left: ${({ theme }) => (theme.breakpoints.up('tablet') ? `${drawerWidth}px` : '0')};\n box-shadow: none;\n`;\n\nconst StyledDrawer = styled(Drawer)`\n display: ${({ theme }) => (theme.breakpoints.up('tablet') ? 'block' : 'none')};\n & .MuiDrawer-paper {\n box-sizing: border-box;\n width: ${drawerWidth}px;\n border-color: ${({ theme }) => theme.palette.semantic.stroke['stroke-weak']};\n border-width: 2px;\n }\n`;\n\nconst StyledNavBox = styled(Box)`\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `${drawerWidth}px` : '0')};\n flex-shrink: ${({ theme }) => (theme.breakpoints.up('tablet') ? '0' : '1')};\n`;\n\nconst StyledMainBox = styled(Box)`\n flex-grow: 1;\n width: ${({ theme }) => (theme.breakpoints.up('tablet') ? `calc(100% - ${drawerWidth}px)` : '100%')};\n margin-top: 65px;\n`;\n\nconst StyledBoldTypography = styled(Typography)`\n font-weight: bold;\n`;\n\ninterface Props {\n loadedFromPortal: boolean;\n children: React.ReactNode;\n}\n\nconst PortalMock = ({ children, loadedFromPortal }: Props) => {\n if (loadedFromPortal) {\n /* eslint-disable-next-line react/jsx-no-useless-fragment */\n return <>{children}</>;\n }\n\n const drawer = (\n <StyledSidebar>\n <StyledBoldTypography>Sidebar</StyledBoldTypography>\n </StyledSidebar>\n );\n\n return (\n <Box sx={{ display: 'flex' }}>\n <CssBaseline />\n <StyledAppBar position=\"fixed\">\n <StyledHeader>\n <StyledBoldTypography>Header</StyledBoldTypography>\n </StyledHeader>\n </StyledAppBar>\n <StyledNavBox aria-label=\"mailbox folders\" as=\"nav\">\n <StyledDrawer open variant=\"permanent\">\n {drawer}\n </StyledDrawer>\n </StyledNavBox>\n <StyledMainBox as=\"main\">{children}</StyledMainBox>\n </Box>\n );\n};\n\nexport default PortalMock;\n"],"names":["drawerWidth","StyledHeader","styled","theme","display","justifyContent","alignItems","backgroundColor","palette","semantic","background","height","color","text","borderBottom","stroke","StyledSidebar","StyledAppBar","AppBar","breakpoints","up","StyledDrawer","Drawer","StyledNavBox","Box","StyledMainBox","StyledBoldTypography","Typography","PortalMock","children","loadedFromPortal","_jsx","_Fragment","drawer","_jsxs","sx","CssBaseline","position","as","open","variant"],"mappings":"wSAOA,MAAMA,EAAc,IAEdC,EAAeC,EAAO,MAAPA,EAAc,EAAGC,YAAa,CACjDC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,gBAAiBJ,EAAMK,QAAQC,SAASC,WAAW,qBACnDC,OAAQ,OACRC,MAAOT,EAAMK,QAAQC,SAASI,KAAK,aACnCC,aAAc,aAAaX,EAAMK,QAAQC,SAASM,OAAO,qBAGrDC,EAAgBd,EAAO,MAAPA,EAAc,EAAGC,YAAa,CAClDC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,gBAAiBJ,EAAMK,QAAQC,SAASC,WAAW,qBACnDC,OAAQ,OACRC,MAAOT,EAAMK,QAAQC,SAASI,KAAK,iBAG/BI,EAAef,EAAOgB,EAAO;WACxB,EAAGf,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,qBAAkC;iBAC7E,EAAGjB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAqB;;EAIjFC,EAAenB,EAAOoB,EAAO;aACtB,EAAGnB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAU;;;aAG3DpB;oBACO,EAAGG,WAAYA,EAAMK,QAAQC,SAASM,OAAO;;;EAK3DQ,EAAerB,EAAOsB,EAAI;WACrB,EAAGrB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,QAAqB;iBAChE,EAAGjB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,IAAM;EAGlEK,EAAgBvB,EAAOsB,EAAI;;WAEtB,EAAGrB,WAAaA,EAAMgB,YAAYC,GAAG,UAAY,qBAAkC;;EAIxFM,EAAuBxB,EAAOyB,EAAW;;EASzCC,EAAa,EAAGC,WAAUC,uBAC9B,GAAIA,EAEF,OAAOC,EAAAC,EAAA,CAAAH,SAAGA,IAGZ,MAAMI,EACJF,EAACf,EACC,CAAAa,SAAAE,EAACL,EAAoB,CAAAG,SAAA,cAIzB,OACEK,EAACV,EAAG,CAACW,GAAI,CAAE/B,QAAS,QAAQyB,SAAA,CAC1BE,EAACK,EAAW,CAAA,GACZL,EAACd,EAAY,CAACoB,SAAS,QAAOR,SAC5BE,EAAC9B,EACC,CAAA4B,SAAAE,EAACL,EAAoB,CAAAG,SAAA,eAGzBE,EAACR,EAAwB,CAAA,aAAA,kBAAkBe,GAAG,MAC5CT,SAAAE,EAACV,EAAY,CAACkB,MAAI,EAACC,QAAQ,YACxBX,SAAAI,MAGLF,EAACN,EAAc,CAAAa,GAAG,OAAQT,SAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../src/components/Spacer/index.tsx"],"sourcesContent":["import { type ReactNode } from 'react';\nimport { styled } from '@mui/material/styles';\n\nexport interface ISpacerProps {\n className?: string;\n variant?: 'horizontal' | 'vertical';\n size?: 8 | 16 | 24 | 32 | 40 | 56;\n children?: ReactNode;\n}\n\nconst SpacerDiv = styled('div')<ISpacerProps>(({ size = 8, variant, children }) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const style: any = {\n padding: children ? `${size}px` : undefined,\n };\n\n if (!children) {\n if (variant === 'horizontal') {\n style.height = `${size}px`;\n } else if (variant === 'vertical') {\n style.width = `${size}px`;\n }\n } else if (variant === 'horizontal') {\n style.margin = `${size}px 0`;\n } else if (variant === 'vertical') {\n style.margin = `0 ${size}px`;\n }\n\n return style;\n});\n\nconst Spacer = ({ className, variant, size = 8, children }: ISpacerProps) => {\n return (\n <SpacerDiv className={className} variant={variant} size={size}>\n {children}\n </SpacerDiv>\n );\n};\n\nexport default Spacer;\n"],"names":["SpacerDiv","styled","size","variant","children","style","padding","undefined","margin","height","width","className","_jsx"],"mappings":"iEAUA,MAAMA,kCAAYC,OAAO,MAAPA,EAA4B,EAAGC,OAAO,EAAGC,UAASC,eAEhE,MAAMC,EAAa,CACfC,QAASF,EAAW,GAAGF,WAAWK,GAetC,OAZKH,EAMkB,eAAZD,EACPE,EAAMG,OAAS,GAAGN,QACC,aAAZC,IACPE,EAAMG,OAAS,KAAKN,OARJ,eAAZC,EACAE,EAAMI,OAAS,GAAGP,MACC,aAAZC,IACPE,EAAMK,MAAQ,GAAGR,OAQlBG,CAAK,mBAGD,EAAGM,YAAWR,UAASD,OAAO,EAAGE,cAExCQ,MAACZ,GAAUW,UAAWA,EAAWR,QAASA,EAASD,KAAMA,WACpDE"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../src/components/Spacer/index.tsx"],"sourcesContent":["import { type ReactNode } from 'react';\nimport { styled } from '@mui/material/styles';\n\nexport interface ISpacerProps {\n className?: string;\n variant?: 'horizontal' | 'vertical';\n size?: 8 | 16 | 24 | 32 | 40 | 56;\n children?: ReactNode;\n}\n\nconst SpacerDiv = styled('div')<ISpacerProps>(({ size = 8, variant, children }) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const style: any = {\n padding: children ? `${size}px` : undefined,\n };\n\n if (!children) {\n if (variant === 'horizontal') {\n style.height = `${size}px`;\n } else if (variant === 'vertical') {\n style.width = `${size}px`;\n }\n } else if (variant === 'horizontal') {\n style.margin = `${size}px 0`;\n } else if (variant === 'vertical') {\n style.margin = `0 ${size}px`;\n }\n\n return style;\n});\n\nconst Spacer = ({ className, variant, size = 8, children }: ISpacerProps) => {\n return (\n <SpacerDiv className={className} variant={variant} size={size}>\n {children}\n </SpacerDiv>\n );\n};\n\nexport default Spacer;\n"],"names":["SpacerDiv","styled","size","variant","children","style","padding","undefined","margin","height","width","className","_jsx"],"mappings":"iEAUA,MAAMA,kCAAYC,OAAO,MAAPA,EAA4B,EAAGC,OAAO,EAAGC,UAASC,eAEhE,MAAMC,EAAa,CACfC,QAASF,EAAW,GAAGF,WAAWK,GAetC,OAZKH,EAMkB,eAAZD,EACPE,EAAMG,OAAS,GAAGN,QACC,aAAZC,IACPE,EAAMG,OAAS,KAAKN,OARJ,eAAZC,EACAE,EAAMI,OAAS,GAAGP,MACC,aAAZC,IACPE,EAAMK,MAAQ,GAAGR,OAQlBG,oBAGI,EAAGM,YAAWR,UAASD,OAAO,EAAGE,cAExCQ,MAACZ,GAAUW,UAAWA,EAAWR,QAASA,EAASD,KAAMA,WACpDE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Spacer/index.tsx"],"sourcesContent":["import { type ReactNode } from 'react';\nimport { styled } from '@mui/material/styles';\n\nexport interface ISpacerProps {\n className?: string;\n variant?: 'horizontal' | 'vertical';\n size?: 8 | 16 | 24 | 32 | 40 | 56;\n children?: ReactNode;\n}\n\nconst SpacerDiv = styled('div')<ISpacerProps>(({ size = 8, variant, children }) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const style: any = {\n padding: children ? `${size}px` : undefined,\n };\n\n if (!children) {\n if (variant === 'horizontal') {\n style.height = `${size}px`;\n } else if (variant === 'vertical') {\n style.width = `${size}px`;\n }\n } else if (variant === 'horizontal') {\n style.margin = `${size}px 0`;\n } else if (variant === 'vertical') {\n style.margin = `0 ${size}px`;\n }\n\n return style;\n});\n\nconst Spacer = ({ className, variant, size = 8, children }: ISpacerProps) => {\n return (\n <SpacerDiv className={className} variant={variant} size={size}>\n {children}\n </SpacerDiv>\n );\n};\n\nexport default Spacer;\n"],"names":["SpacerDiv","styled","size","variant","children","style","padding","undefined","margin","height","width","Spacer","className","_jsx"],"mappings":"oGAUA,MAAMA,EAAYC,EAAO,MAAPA,EAA4B,EAAGC,OAAO,EAAGC,UAASC,eAEhE,MAAMC,EAAa,CACfC,QAASF,EAAW,GAAGF,WAAWK,GAetC,OAZKH,EAMkB,eAAZD,EACPE,EAAMG,OAAS,GAAGN,QACC,aAAZC,IACPE,EAAMG,OAAS,KAAKN,OARJ,eAAZC,EACAE,EAAMI,OAAS,GAAGP,MACC,aAAZC,IACPE,EAAMK,MAAQ,GAAGR,OAQlBG,CAAK,IAGVM,EAAS,EAAGC,YAAWT,UAASD,OAAO,EAAGE,cAExCS,EAACb,GAAUY,UAAWA,EAAWT,QAASA,EAASD,KAAMA,WACpDE"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Spacer/index.tsx"],"sourcesContent":["import { type ReactNode } from 'react';\nimport { styled } from '@mui/material/styles';\n\nexport interface ISpacerProps {\n className?: string;\n variant?: 'horizontal' | 'vertical';\n size?: 8 | 16 | 24 | 32 | 40 | 56;\n children?: ReactNode;\n}\n\nconst SpacerDiv = styled('div')<ISpacerProps>(({ size = 8, variant, children }) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const style: any = {\n padding: children ? `${size}px` : undefined,\n };\n\n if (!children) {\n if (variant === 'horizontal') {\n style.height = `${size}px`;\n } else if (variant === 'vertical') {\n style.width = `${size}px`;\n }\n } else if (variant === 'horizontal') {\n style.margin = `${size}px 0`;\n } else if (variant === 'vertical') {\n style.margin = `0 ${size}px`;\n }\n\n return style;\n});\n\nconst Spacer = ({ className, variant, size = 8, children }: ISpacerProps) => {\n return (\n <SpacerDiv className={className} variant={variant} size={size}>\n {children}\n </SpacerDiv>\n );\n};\n\nexport default Spacer;\n"],"names":["SpacerDiv","styled","size","variant","children","style","padding","undefined","margin","height","width","Spacer","className","_jsx"],"mappings":"oGAUA,MAAMA,EAAYC,EAAO,MAAPA,EAA4B,EAAGC,OAAO,EAAGC,UAASC,eAEhE,MAAMC,EAAa,CACfC,QAASF,EAAW,GAAGF,WAAWK,GAetC,OAZKH,EAMkB,eAAZD,EACPE,EAAMG,OAAS,GAAGN,QACC,aAAZC,IACPE,EAAMG,OAAS,KAAKN,OARJ,eAAZC,EACAE,EAAMI,OAAS,GAAGP,MACC,aAAZC,IACPE,EAAMK,MAAQ,GAAGR,OAQlBG,KAGLM,EAAS,EAAGC,YAAWT,UAASD,OAAO,EAAGE,cAExCS,EAACb,GAAUY,UAAWA,EAAWT,QAASA,EAASD,KAAMA,WACpDE"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material/Chip"),a=require("@mui/material/styles");function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=o(t);const l=(e,t)=>({neutral:{backgroundColor:t.palette.semantic.fill["fill-weak"],borderColor:t.palette.semantic.stroke["stroke-weak"],color:t.palette.semantic.text["text-strong"]},error:{backgroundColor:t.palette.semantic.fill["fill-error-weak"],borderColor:t.palette.semantic.stroke["stroke-error-weak"],color:t.palette.semantic.text["text-error"]},warning:{backgroundColor:t.palette.semantic.fill["fill-warning-weak"],borderColor:t.palette.semantic.stroke["stroke-warning-weak"],color:t.palette.semantic.text["text-warning"]},success:{backgroundColor:t.palette.semantic.fill["fill-success-weak"],borderColor:t.palette.semantic.stroke["stroke-success-weak"],color:t.palette.semantic.text["text-success"]},information:{backgroundColor:t.palette.semantic.fill["fill-information-weak"],borderColor:t.palette.semantic.stroke["stroke-information-weak"],color:t.palette.semantic.text["text-information"]},brand:{backgroundColor:t.palette.semantic.fill["fill-primary-weak"],borderColor:t.palette.semantic.stroke["stroke-primary-weak"],color:t.palette.semantic.text["text-primary"]}}[e]),n=a.styled(r,{shouldForwardProp:e=>!["tone"].includes(e)})((({theme:e,tone:t,size:r})=>({fontSize:"small"===r?e.typography.caption.fontSize:e.typography.body1.fontSize,lineHeight:"small"===r?e.typography.caption.lineHeight:e.typography.body1.lineHeight,fontWeight:400,padding:e.spacing(0,1),borderRadius:"small"===r?e.radius["radius-4"]:e.radius["radius-8"],borderWidth:"1px",borderStyle:"solid","& .MuiChip-label":{padding:e.spacing(0,.5)},"& .MuiChip-icon":{paddingRight:e.spacing(.5),color:"neutral"===t?e.palette.semantic.icon[""]:"inherit",fontSize:"inherit"},...l(t,e)}))),s=i.memo((({label:t,tone:r="neutral",size:a="medium",icon:o,className:i,"data-testid":l})=>e.jsx(n,{className:i,"data-testid":l,icon:o,label:t,size:a,tone:r})));s.displayName="Badge",exports.BADGE_TONES=["neutral","error","warning","success","information","brand"],exports.default=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material/Chip"),a=require("@mui/material/styles");function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=o(t);const l=(e,t)=>({neutral:{backgroundColor:t.palette.semantic.fill["fill-weak"],borderColor:t.palette.semantic.stroke["stroke-weak"],color:t.palette.semantic.text["text-strong"]},error:{backgroundColor:t.palette.semantic.fill["fill-error-weak"],borderColor:t.palette.semantic.stroke["stroke-error-weak"],color:t.palette.semantic.text["text-error"]},warning:{backgroundColor:t.palette.semantic.fill["fill-warning-weak"],borderColor:t.palette.semantic.stroke["stroke-warning-weak"],color:t.palette.semantic.text["text-warning"]},success:{backgroundColor:t.palette.semantic.fill["fill-success-weak"],borderColor:t.palette.semantic.stroke["stroke-success-weak"],color:t.palette.semantic.text["text-success"]},information:{backgroundColor:t.palette.semantic.fill["fill-information-weak"],borderColor:t.palette.semantic.stroke["stroke-information-weak"],color:t.palette.semantic.text["text-information"]},brand:{backgroundColor:t.palette.semantic.fill["fill-primary-weak"],borderColor:t.palette.semantic.stroke["stroke-primary-weak"],color:t.palette.semantic.text["text-primary"]}}[e]),n=a.styled(r,{shouldForwardProp:e=>!["tone"].includes(e)})((({theme:e,tone:t,size:r})=>({fontSize:"small"===r?e.typography.caption.fontSize:e.typography.body1.fontSize,lineHeight:"small"===r?e.typography.caption.lineHeight:e.typography.body1.lineHeight,fontWeight:400,padding:e.spacing(0,1),borderRadius:"small"===r?e.radius["radius-4"]:e.radius["radius-8"],borderWidth:"1px",borderStyle:"solid","& .MuiChip-label":{padding:e.spacing(0,.5)},"& .MuiChip-icon":{paddingRight:e.spacing(.5),color:"neutral"===t?e.palette.semantic.icon["icon-strong"]:"inherit",fontSize:"inherit"},...l(t,e)}))),s=i.memo((({label:t,tone:r="neutral",size:a="medium",icon:o,className:i,"data-testid":l})=>e.jsx(n,{className:i,"data-testid":l,icon:o,label:t,size:a,tone:r})));s.displayName="Badge",exports.BADGE_TONES=["neutral","error","warning","success","information","brand"],exports.default=s;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../../src/components/atoms/Badge/index.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport MuiChip, { type ChipProps as MuiChipProps } from '@mui/material/Chip';\nimport { styled, type Theme } from '@mui/material/styles';\n\n/** Available visual tones for the Badge component */\nexport const BADGE_TONES = ['neutral', 'error', 'warning', 'success', 'information', 'brand'] as const;\nexport type BadgeTone = (typeof BADGE_TONES)[number];\n\n/** Props for the Badge component */\nexport interface BadgeProps {\n /** Text label displayed in the badge */\n label: string;\n /** Visual tone/color of the badge */\n tone?: BadgeTone;\n /** Size of the badge */\n size?: MuiChipProps['size'];\n /** Optional icon to display within the badge */\n icon?: MuiChipProps['icon'];\n /** Additional CSS class names */\n className?: string;\n /** Test ID for testing and automation */\n 'data-testid'?: string;\n}\n\ninterface StyledBadgeProps {\n tone: BadgeTone;\n size: MuiChipProps['size'];\n}\n\n/** Color mapping for different tones */\nconst getToneStyles = (\n tone: BadgeTone,\n theme: Theme,\n): {\n backgroundColor: string;\n borderColor: string;\n color: string;\n} => {\n const colorMap = {\n neutral: {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n color: theme.palette.semantic.text['text-strong'],\n },\n error: {\n backgroundColor: theme.palette.semantic.fill['fill-error-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-error-weak'],\n color: theme.palette.semantic.text['text-error'],\n },\n warning: {\n backgroundColor: theme.palette.semantic.fill['fill-warning-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-warning-weak'],\n color: theme.palette.semantic.text['text-warning'],\n },\n success: {\n backgroundColor: theme.palette.semantic.fill['fill-success-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-success-weak'],\n color: theme.palette.semantic.text['text-success'],\n },\n information: {\n backgroundColor: theme.palette.semantic.fill['fill-information-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-information-weak'],\n color: theme.palette.semantic.text['text-information'],\n },\n brand: {\n backgroundColor: theme.palette.semantic.fill['fill-primary-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-primary-weak'],\n color: theme.palette.semantic.text['text-primary'],\n },\n } satisfies Record<BadgeTone, object>;\n\n return colorMap[tone];\n};\n\nconst StyledBadge = styled(MuiChip, {\n shouldForwardProp: (prop) => !['tone'].includes(prop as string),\n})<StyledBadgeProps>(({ theme, tone, size }) => ({\n fontSize: size === 'small' ? theme.typography.caption.fontSize : theme.typography.body1.fontSize,\n lineHeight: size === 'small' ? theme.typography.caption.lineHeight : theme.typography.body1.lineHeight,\n fontWeight: 400,\n padding: theme.spacing(0, 1),\n borderRadius: size === 'small' ? theme.radius['radius-4'] : theme.radius['radius-8'],\n borderWidth: '1px',\n borderStyle: 'solid',\n '& .MuiChip-label': {\n padding: theme.spacing(0, 0.5),\n },\n '& .MuiChip-icon': {\n paddingRight: theme.spacing(0.5),\n color: tone === 'neutral' ? theme.palette.semantic.icon[''] : 'inherit',\n fontSize: 'inherit',\n },\n ...getToneStyles(tone, theme),\n}));\n\n/**\n * Badge component is used to highlight and categorize information using short text labels.\n * It supports different visual tones to convey different semantic meanings and can include\n * an optional icon.\n *\n * React.memo is used to optimize performance by preventing unnecessary re-renders\n * when the component's props haven't changed, which is beneficial for components\n * that may be used frequently throughout the application.\n */\nconst Badge = React.memo(\n ({\n label,\n tone = 'neutral',\n size = 'medium',\n icon,\n className,\n 'data-testid': dataTestId,\n }: BadgeProps): JSX.Element => (\n <StyledBadge\n className={className}\n data-testid={dataTestId}\n icon={icon}\n label={label}\n size={size}\n tone={tone}\n />\n ),\n);\n\nBadge.displayName = 'Badge';\n\nexport default Badge;\n"],"names":["getToneStyles","tone","theme","neutral","backgroundColor","palette","semantic","fill","borderColor","stroke","color","text","error","warning","success","information","brand","StyledBadge","styled","MuiChip","shouldForwardProp","prop","includes","size","fontSize","typography","caption","body1","lineHeight","fontWeight","padding","spacing","borderRadius","radius","borderWidth","borderStyle","paddingRight","icon","Badge","React","memo","label","className","dataTestId","_jsx","displayName"],"mappings":"0cAMa,MAyBPA,EAAgB,CACpBC,EACAC,KAMiB,CACfC,QAAS,CACPC,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,aAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,eAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,gBAErCC,MAAO,CACLR,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,mBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,qBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,eAErCE,QAAS,CACPT,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,qBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,uBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,iBAErCG,QAAS,CACPV,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,qBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,uBAC3CC,MAAOR,EAAMG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":"index.cjs.js","sources":["../../../../src/components/atoms/Badge/index.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport MuiChip, { type ChipProps as MuiChipProps } from '@mui/material/Chip';\nimport { styled, type Theme } from '@mui/material/styles';\n\n/** Available visual tones for the Badge component */\nexport const BADGE_TONES = ['neutral', 'error', 'warning', 'success', 'information', 'brand'] as const;\nexport type BadgeTone = (typeof BADGE_TONES)[number];\n\n/** Props for the Badge component */\nexport interface BadgeProps {\n /** Text label displayed in the badge */\n label: string;\n /** Visual tone/color of the badge */\n tone?: BadgeTone;\n /** Size of the badge */\n size?: MuiChipProps['size'];\n /** Optional icon to display within the badge */\n icon?: MuiChipProps['icon'];\n /** Additional CSS class names */\n className?: string;\n /** Test ID for testing and automation */\n 'data-testid'?: string;\n}\n\ninterface StyledBadgeProps {\n tone: BadgeTone;\n size: MuiChipProps['size'];\n}\n\n/** Color mapping for different tones */\nconst getToneStyles = (\n tone: BadgeTone,\n theme: Theme,\n): {\n backgroundColor: string;\n borderColor: string;\n color: string;\n} => {\n const colorMap = {\n neutral: {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n color: theme.palette.semantic.text['text-strong'],\n },\n error: {\n backgroundColor: theme.palette.semantic.fill['fill-error-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-error-weak'],\n color: theme.palette.semantic.text['text-error'],\n },\n warning: {\n backgroundColor: theme.palette.semantic.fill['fill-warning-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-warning-weak'],\n color: theme.palette.semantic.text['text-warning'],\n },\n success: {\n backgroundColor: theme.palette.semantic.fill['fill-success-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-success-weak'],\n color: theme.palette.semantic.text['text-success'],\n },\n information: {\n backgroundColor: theme.palette.semantic.fill['fill-information-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-information-weak'],\n color: theme.palette.semantic.text['text-information'],\n },\n brand: {\n backgroundColor: theme.palette.semantic.fill['fill-primary-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-primary-weak'],\n color: theme.palette.semantic.text['text-primary'],\n },\n } satisfies Record<BadgeTone, object>;\n\n return colorMap[tone];\n};\n\nconst StyledBadge = styled(MuiChip, {\n shouldForwardProp: (prop) => !['tone'].includes(prop as string),\n})<StyledBadgeProps>(({ theme, tone, size }) => ({\n fontSize: size === 'small' ? theme.typography.caption.fontSize : theme.typography.body1.fontSize,\n lineHeight: size === 'small' ? theme.typography.caption.lineHeight : theme.typography.body1.lineHeight,\n fontWeight: 400,\n padding: theme.spacing(0, 1),\n borderRadius: size === 'small' ? theme.radius['radius-4'] : theme.radius['radius-8'],\n borderWidth: '1px',\n borderStyle: 'solid',\n '& .MuiChip-label': {\n padding: theme.spacing(0, 0.5),\n },\n '& .MuiChip-icon': {\n paddingRight: theme.spacing(0.5),\n color: tone === 'neutral' ? theme.palette.semantic.icon['icon-strong'] : 'inherit',\n fontSize: 'inherit',\n },\n ...getToneStyles(tone, theme),\n}));\n\n/**\n * Badge component is used to highlight and categorize information using short text labels.\n * It supports different visual tones to convey different semantic meanings and can include\n * an optional icon.\n *\n * React.memo is used to optimize performance by preventing unnecessary re-renders\n * when the component's props haven't changed, which is beneficial for components\n * that may be used frequently throughout the application.\n */\nconst Badge = React.memo(\n ({\n label,\n tone = 'neutral',\n size = 'medium',\n icon,\n className,\n 'data-testid': dataTestId,\n }: BadgeProps): JSX.Element => (\n <StyledBadge\n className={className}\n data-testid={dataTestId}\n icon={icon}\n label={label}\n size={size}\n tone={tone}\n />\n ),\n);\n\nBadge.displayName = 'Badge';\n\nexport default Badge;\n"],"names":["getToneStyles","tone","theme","neutral","backgroundColor","palette","semantic","fill","borderColor","stroke","color","text","error","warning","success","information","brand","StyledBadge","styled","MuiChip","shouldForwardProp","prop","includes","size","fontSize","typography","caption","body1","lineHeight","fontWeight","padding","spacing","borderRadius","radius","borderWidth","borderStyle","paddingRight","icon","Badge","React","memo","label","className","dataTestId","_jsx","display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AS5B,EAAM6B,QAAQ,EAAG,GAC1BC,aAAuB,UAATT,EAAmBrB,EAAM+B,OAAO,YAAc/B,EAAM+B,OAAO,YACzEC,YAAa,MACbC,YAAa,QACb,mBAAoB,CAClBL,QAAS5B,EAAM6B,QAAQ,EAAG,KAE5B,kBAAmB,CACjBK,aAAclC,EAAM6B,QAAQ,IAC5BrB,MAAgB,YAATT,EAAqBC,EAAMG,QAAQC,SAAS+B,KAAK,eAAiB,UACzEb,SAAU,cAETxB,EAAcC,EAAMC,OAYnBoC,EAAQC,EAAMC,MAClB,EACEC,QACAxC,OAAO,UACPsB,OAAO,SACPc,OACAK,YACA,cAAeC,KAEfC,EAAAA,IAAC3B,EAAW,CACVyB,UAAWA,EAAS,cACPC,EACbN,KAAMA,EACNI,MAAOA,EACPlB,KAAMA,EACNtB,KAAMA,MAKZqC,EAAMO,YAAc,4BAvHO,CAAC,UAAW,QAAS,UAAW,UAAW,cAAe"}
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import*as t from"react";import r from"@mui/material/Chip";import{styled as a}from"@mui/material/styles";const o=["neutral","error","warning","success","information","brand"],i=(e,t)=>({neutral:{backgroundColor:t.palette.semantic.fill["fill-weak"],borderColor:t.palette.semantic.stroke["stroke-weak"],color:t.palette.semantic.text["text-strong"]},error:{backgroundColor:t.palette.semantic.fill["fill-error-weak"],borderColor:t.palette.semantic.stroke["stroke-error-weak"],color:t.palette.semantic.text["text-error"]},warning:{backgroundColor:t.palette.semantic.fill["fill-warning-weak"],borderColor:t.palette.semantic.stroke["stroke-warning-weak"],color:t.palette.semantic.text["text-warning"]},success:{backgroundColor:t.palette.semantic.fill["fill-success-weak"],borderColor:t.palette.semantic.stroke["stroke-success-weak"],color:t.palette.semantic.text["text-success"]},information:{backgroundColor:t.palette.semantic.fill["fill-information-weak"],borderColor:t.palette.semantic.stroke["stroke-information-weak"],color:t.palette.semantic.text["text-information"]},brand:{backgroundColor:t.palette.semantic.fill["fill-primary-weak"],borderColor:t.palette.semantic.stroke["stroke-primary-weak"],color:t.palette.semantic.text["text-primary"]}}[e]),l=a(r,{shouldForwardProp:e=>!["tone"].includes(e)})((({theme:e,tone:t,size:r})=>({fontSize:"small"===r?e.typography.caption.fontSize:e.typography.body1.fontSize,lineHeight:"small"===r?e.typography.caption.lineHeight:e.typography.body1.lineHeight,fontWeight:400,padding:e.spacing(0,1),borderRadius:"small"===r?e.radius["radius-4"]:e.radius["radius-8"],borderWidth:"1px",borderStyle:"solid","& .MuiChip-label":{padding:e.spacing(0,.5)},"& .MuiChip-icon":{paddingRight:e.spacing(.5),color:"neutral"===t?e.palette.semantic.icon[""]:"inherit",fontSize:"inherit"},...i(t,e)}))),n=t.memo((({label:t,tone:r="neutral",size:a="medium",icon:o,className:i,"data-testid":n})=>e(l,{className:i,"data-testid":n,icon:o,label:t,size:a,tone:r})));n.displayName="Badge";export{o as BADGE_TONES,n as default};
1
+ import{jsx as e}from"react/jsx-runtime";import*as t from"react";import r from"@mui/material/Chip";import{styled as a}from"@mui/material/styles";const o=["neutral","error","warning","success","information","brand"],i=(e,t)=>({neutral:{backgroundColor:t.palette.semantic.fill["fill-weak"],borderColor:t.palette.semantic.stroke["stroke-weak"],color:t.palette.semantic.text["text-strong"]},error:{backgroundColor:t.palette.semantic.fill["fill-error-weak"],borderColor:t.palette.semantic.stroke["stroke-error-weak"],color:t.palette.semantic.text["text-error"]},warning:{backgroundColor:t.palette.semantic.fill["fill-warning-weak"],borderColor:t.palette.semantic.stroke["stroke-warning-weak"],color:t.palette.semantic.text["text-warning"]},success:{backgroundColor:t.palette.semantic.fill["fill-success-weak"],borderColor:t.palette.semantic.stroke["stroke-success-weak"],color:t.palette.semantic.text["text-success"]},information:{backgroundColor:t.palette.semantic.fill["fill-information-weak"],borderColor:t.palette.semantic.stroke["stroke-information-weak"],color:t.palette.semantic.text["text-information"]},brand:{backgroundColor:t.palette.semantic.fill["fill-primary-weak"],borderColor:t.palette.semantic.stroke["stroke-primary-weak"],color:t.palette.semantic.text["text-primary"]}}[e]),l=a(r,{shouldForwardProp:e=>!["tone"].includes(e)})((({theme:e,tone:t,size:r})=>({fontSize:"small"===r?e.typography.caption.fontSize:e.typography.body1.fontSize,lineHeight:"small"===r?e.typography.caption.lineHeight:e.typography.body1.lineHeight,fontWeight:400,padding:e.spacing(0,1),borderRadius:"small"===r?e.radius["radius-4"]:e.radius["radius-8"],borderWidth:"1px",borderStyle:"solid","& .MuiChip-label":{padding:e.spacing(0,.5)},"& .MuiChip-icon":{paddingRight:e.spacing(.5),color:"neutral"===t?e.palette.semantic.icon["icon-strong"]:"inherit",fontSize:"inherit"},...i(t,e)}))),n=t.memo((({label:t,tone:r="neutral",size:a="medium",icon:o,className:i,"data-testid":n})=>e(l,{className:i,"data-testid":n,icon:o,label:t,size:a,tone:r})));n.displayName="Badge";export{o as BADGE_TONES,n as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/atoms/Badge/index.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport MuiChip, { type ChipProps as MuiChipProps } from '@mui/material/Chip';\nimport { styled, type Theme } from '@mui/material/styles';\n\n/** Available visual tones for the Badge component */\nexport const BADGE_TONES = ['neutral', 'error', 'warning', 'success', 'information', 'brand'] as const;\nexport type BadgeTone = (typeof BADGE_TONES)[number];\n\n/** Props for the Badge component */\nexport interface BadgeProps {\n /** Text label displayed in the badge */\n label: string;\n /** Visual tone/color of the badge */\n tone?: BadgeTone;\n /** Size of the badge */\n size?: MuiChipProps['size'];\n /** Optional icon to display within the badge */\n icon?: MuiChipProps['icon'];\n /** Additional CSS class names */\n className?: string;\n /** Test ID for testing and automation */\n 'data-testid'?: string;\n}\n\ninterface StyledBadgeProps {\n tone: BadgeTone;\n size: MuiChipProps['size'];\n}\n\n/** Color mapping for different tones */\nconst getToneStyles = (\n tone: BadgeTone,\n theme: Theme,\n): {\n backgroundColor: string;\n borderColor: string;\n color: string;\n} => {\n const colorMap = {\n neutral: {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n color: theme.palette.semantic.text['text-strong'],\n },\n error: {\n backgroundColor: theme.palette.semantic.fill['fill-error-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-error-weak'],\n color: theme.palette.semantic.text['text-error'],\n },\n warning: {\n backgroundColor: theme.palette.semantic.fill['fill-warning-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-warning-weak'],\n color: theme.palette.semantic.text['text-warning'],\n },\n success: {\n backgroundColor: theme.palette.semantic.fill['fill-success-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-success-weak'],\n color: theme.palette.semantic.text['text-success'],\n },\n information: {\n backgroundColor: theme.palette.semantic.fill['fill-information-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-information-weak'],\n color: theme.palette.semantic.text['text-information'],\n },\n brand: {\n backgroundColor: theme.palette.semantic.fill['fill-primary-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-primary-weak'],\n color: theme.palette.semantic.text['text-primary'],\n },\n } satisfies Record<BadgeTone, object>;\n\n return colorMap[tone];\n};\n\nconst StyledBadge = styled(MuiChip, {\n shouldForwardProp: (prop) => !['tone'].includes(prop as string),\n})<StyledBadgeProps>(({ theme, tone, size }) => ({\n fontSize: size === 'small' ? theme.typography.caption.fontSize : theme.typography.body1.fontSize,\n lineHeight: size === 'small' ? theme.typography.caption.lineHeight : theme.typography.body1.lineHeight,\n fontWeight: 400,\n padding: theme.spacing(0, 1),\n borderRadius: size === 'small' ? theme.radius['radius-4'] : theme.radius['radius-8'],\n borderWidth: '1px',\n borderStyle: 'solid',\n '& .MuiChip-label': {\n padding: theme.spacing(0, 0.5),\n },\n '& .MuiChip-icon': {\n paddingRight: theme.spacing(0.5),\n color: tone === 'neutral' ? theme.palette.semantic.icon[''] : 'inherit',\n fontSize: 'inherit',\n },\n ...getToneStyles(tone, theme),\n}));\n\n/**\n * Badge component is used to highlight and categorize information using short text labels.\n * It supports different visual tones to convey different semantic meanings and can include\n * an optional icon.\n *\n * React.memo is used to optimize performance by preventing unnecessary re-renders\n * when the component's props haven't changed, which is beneficial for components\n * that may be used frequently throughout the application.\n */\nconst Badge = React.memo(\n ({\n label,\n tone = 'neutral',\n size = 'medium',\n icon,\n className,\n 'data-testid': dataTestId,\n }: BadgeProps): JSX.Element => (\n <StyledBadge\n className={className}\n data-testid={dataTestId}\n icon={icon}\n label={label}\n size={size}\n tone={tone}\n />\n ),\n);\n\nBadge.displayName = 'Badge';\n\nexport default Badge;\n"],"names":["BADGE_TONES","getToneStyles","tone","theme","neutral","backgroundColor","palette","semantic","fill","borderColor","stroke","color","text","error","warning","success","information","brand","StyledBadge","styled","MuiChip","shouldForwardProp","prop","includes","size","fontSize","typography","caption","body1","lineHeight","fontWeight","padding","spacing","borderRadius","radius","borderWidth","borderStyle","paddingRight","icon","Badge","React","memo","label","className","dataTestId","_jsx","displayName"],"mappings":"gJAMa,MAAAA,EAAc,CAAC,UAAW,QAAS,UAAW,UAAW,cAAe,SAyB/EC,EAAgB,CACpBC,EACAC,KAMiB,CACfC,QAAS,CACPC,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,aAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,eAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,gBAErCC,MAAO,CACLR,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,mBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,qBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,eAErCE,QAAS,CACPT,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,qBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,uBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,iBAErCG,QAAS,CACPV,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,qBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,uBAC3CC,MA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ent":["import * as React from 'react';\n\nimport MuiChip, { type ChipProps as MuiChipProps } from '@mui/material/Chip';\nimport { styled, type Theme } from '@mui/material/styles';\n\n/** Available visual tones for the Badge component */\nexport const BADGE_TONES = ['neutral', 'error', 'warning', 'success', 'information', 'brand'] as const;\nexport type BadgeTone = (typeof BADGE_TONES)[number];\n\n/** Props for the Badge component */\nexport interface BadgeProps {\n /** Text label displayed in the badge */\n label: string;\n /** Visual tone/color of the badge */\n tone?: BadgeTone;\n /** Size of the badge */\n size?: MuiChipProps['size'];\n /** Optional icon to display within the badge */\n icon?: MuiChipProps['icon'];\n /** Additional CSS class names */\n className?: string;\n /** Test ID for testing and automation */\n 'data-testid'?: string;\n}\n\ninterface StyledBadgeProps {\n tone: BadgeTone;\n size: MuiChipProps['size'];\n}\n\n/** Color mapping for different tones */\nconst getToneStyles = (\n tone: BadgeTone,\n theme: Theme,\n): {\n backgroundColor: string;\n borderColor: string;\n color: string;\n} => {\n const colorMap = {\n neutral: {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n color: theme.palette.semantic.text['text-strong'],\n },\n error: {\n backgroundColor: theme.palette.semantic.fill['fill-error-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-error-weak'],\n color: theme.palette.semantic.text['text-error'],\n },\n warning: {\n backgroundColor: theme.palette.semantic.fill['fill-warning-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-warning-weak'],\n color: theme.palette.semantic.text['text-warning'],\n },\n success: {\n backgroundColor: theme.palette.semantic.fill['fill-success-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-success-weak'],\n color: theme.palette.semantic.text['text-success'],\n },\n information: {\n backgroundColor: theme.palette.semantic.fill['fill-information-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-information-weak'],\n color: theme.palette.semantic.text['text-information'],\n },\n brand: {\n backgroundColor: theme.palette.semantic.fill['fill-primary-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-primary-weak'],\n color: theme.palette.semantic.text['text-primary'],\n },\n } satisfies Record<BadgeTone, object>;\n\n return colorMap[tone];\n};\n\nconst StyledBadge = styled(MuiChip, {\n shouldForwardProp: (prop) => !['tone'].includes(prop as string),\n})<StyledBadgeProps>(({ theme, tone, size }) => ({\n fontSize: size === 'small' ? theme.typography.caption.fontSize : theme.typography.body1.fontSize,\n lineHeight: size === 'small' ? theme.typography.caption.lineHeight : theme.typography.body1.lineHeight,\n fontWeight: 400,\n padding: theme.spacing(0, 1),\n borderRadius: size === 'small' ? theme.radius['radius-4'] : theme.radius['radius-8'],\n borderWidth: '1px',\n borderStyle: 'solid',\n '& .MuiChip-label': {\n padding: theme.spacing(0, 0.5),\n },\n '& .MuiChip-icon': {\n paddingRight: theme.spacing(0.5),\n color: tone === 'neutral' ? theme.palette.semantic.icon['icon-strong'] : 'inherit',\n fontSize: 'inherit',\n },\n ...getToneStyles(tone, theme),\n}));\n\n/**\n * Badge component is used to highlight and categorize information using short text labels.\n * It supports different visual tones to convey different semantic meanings and can include\n * an optional icon.\n *\n * React.memo is used to optimize performance by preventing unnecessary re-renders\n * when the component's props haven't changed, which is beneficial for components\n * that may be used frequently throughout the application.\n */\nconst Badge = React.memo(\n ({\n label,\n tone = 'neutral',\n size = 'medium',\n icon,\n className,\n 'data-testid': dataTestId,\n }: BadgeProps): JSX.Element => (\n <StyledBadge\n className={className}\n data-testid={dataTestId}\n icon={icon}\n label={label}\n size={size}\n tone={tone}\n />\n ),\n);\n\nBadge.displayName = 'Badge';\n\nexport default Badge;\n"],"names":["BADGE_TONES","getToneStyles","tone","theme","neutral","backgroundColor","palette","semantic","fill","borderColor","stroke","color","text","error","warning","success","information","brand","StyledBadge","styled","MuiChip","shouldForwardProp","prop","includes","size","fontSize","typography","caption","body1","lineHeight","fontWeight","padding","spacing","borderRadius","radius","borderWidth","borderStyle","paddingRight","icon","Badge","React","memo","label","className","dataTestId","_jsx","displayName"],"mappings":"gJAMa,MAAAA,EAAc,CAAC,UAA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,QAAS5B,EAAM6B,QAAQ,EAAG,GAC1BC,aAAuB,UAATT,EAAmBrB,EAAM+B,OAAO,YAAc/B,EAAM+B,OAAO,YACzEC,YAAa,MACbC,YAAa,QACb,mBAAoB,CAClBL,QAAS5B,EAAM6B,QAAQ,EAAG,KAE5B,kBAAmB,CACjBK,aAAclC,EAAM6B,QAAQ,IAC5BrB,MAAgB,YAATT,EAAqBC,EAAMG,QAAQC,SAAS+B,KAAK,eAAiB,UACzEb,SAAU,cAETxB,EAAcC,EAAMC,OAYnBoC,EAAQC,EAAMC,MAClB,EACEC,QACAxC,OAAO,UACPsB,OAAO,SACPc,OACAK,YACA,cAAeC,KAEfC,EAAC3B,EAAW,CACVyB,UAAWA,EAAS,cACPC,EACbN,KAAMA,EACNI,MAAOA,EACPlB,KAAMA,EACNtB,KAAMA,MAKZqC,EAAMO,YAAc"}
@@ -0,0 +1,2 @@
1
+ "use strict";require("@mui/material/styles");var e=require("../../../themes/tokens/typography/font-family.cjs.js"),t=require("../../../themes/tokens/typography/font-size.cjs.js"),i=require("../../../themes/tokens/typography/letter-spacing.cjs.js"),n=require("../../../themes/tokens/typography/line-height.cjs.js");exports.buttonStyleOverrides=o=>({styleOverrides:{root:{textAlign:"center",textTransform:"none",display:"flex",alignItems:"center",justifyContent:"center",flex:"1 0 0",alignSelf:"stretch"},sizeSmall:{height:"32px",padding:"0px 12px",fontStyle:"normal",fontFamily:e.fontFamily.desktop.body,fontSize:t.fontSize.desktop.caption,lineHeight:"normal",letterSpacing:i.letterSpacing.desktop.caption,fontWeight:"600",[o.breakpoints.down("tablet")]:{fontFamily:e.fontFamily.mobile.body,fontSize:t.fontSize.mobile.caption,lineHeight:n.lineHeight.mobile.caption,letterSpacing:i.letterSpacing.mobile.caption}},sizeMedium:{height:"48px",gap:"4px",padding:"0px 16px",fontStyle:"normal",fontFamily:e.fontFamily.desktop.body,fontSize:t.fontSize.desktop.b1,lineHeight:"normal",letterSpacing:i.letterSpacing.desktop.b1,fontWeight:"600",[o.breakpoints.down("tablet")]:{fontFamily:e.fontFamily.mobile.body,fontSize:t.fontSize.mobile.b1,lineHeight:n.lineHeight.mobile.b1,letterSpacing:i.letterSpacing.mobile.b1}},sizeLarge:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center",flex:"1 0 0",alignSelf:"stretch",gap:"4px",padding:"0px 24px",fontStyle:"normal",fontFamily:e.fontFamily.desktop.heading,fontSize:t.fontSize.desktop.h4,lineHeight:"normal",letterSpacing:i.letterSpacing.desktop.h4,fontWeight:"600",[o.breakpoints.down("tablet")]:{fontFamily:e.fontFamily.mobile.heading,fontSize:t.fontSize.mobile.h4,lineHeight:n.lineHeight.mobile.h4,letterSpacing:i.letterSpacing.mobile.h4}}}});
2
+ //# sourceMappingURL=buttonThemeOverrides.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buttonThemeOverrides.cjs.js","sources":["../../../../src/components/atoms/Button/buttonThemeOverrides.ts"],"sourcesContent":["import { type Theme } from \"@mui/material/styles\";\n\nimport { fontFamily } from \"../../../themes/tokens/typography/font-family\";\nimport { fontSize } from \"../../../themes/tokens/typography/font-size\"\nimport { letterSpacing } from \"../../../themes/tokens/typography/letter-spacing\"\nimport { lineHeight } from \"../../../themes/tokens/typography/line-height\"\n\ninterface ButtonStyleOverrides {\n styleOverrides: {\n root: Record<string, string | { [key: string]: string }>;\n sizeSmall: Record<string, string | { [key: string]: string }>;\n sizeMedium: Record<string, string | { [key: string]: string }>;\n sizeLarge: Record<string, string | { [key: string]: string }>;\n };\n}\n\nexport const buttonStyleOverrides = (baseTheme: Theme): ButtonStyleOverrides => ({\n styleOverrides: {\n root: {\n textAlign: 'center',\n textTransform: 'none',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flex: '1 0 0',\n alignSelf: 'stretch',\n },\n sizeSmall: {\n height: '32px',\n padding: '0px 12px',\n fontStyle: 'normal',\n fontFamily: fontFamily.desktop.body,\n fontSize: fontSize.desktop.caption,\n lineHeight: 'normal', // normal vs lineHeight.desktop.caption due to mui issue with text alignment https://github.com/mui/material-ui/issues/29965\n letterSpacing: letterSpacing.desktop.caption,\n fontWeight: '600',\n [baseTheme.breakpoints.down('tablet')]: {\n fontFamily: fontFamily.mobile.body,\n fontSize: fontSize.mobile.caption,\n lineHeight: lineHeight.mobile.caption,\n letterSpacing: letterSpacing.mobile.caption,\n },\n },\n sizeMedium: {\n height: '48px',\n gap: '4px',\n padding: '0px 16px',\n fontStyle: 'normal',\n fontFamily: fontFamily.desktop.body,\n fontSize: fontSize.desktop.b1,\n lineHeight: 'normal',\n letterSpacing: letterSpacing.desktop.b1,\n fontWeight: '600',\n [baseTheme.breakpoints.down('tablet')]: {\n fontFamily: fontFamily.mobile.body,\n fontSize: fontSize.mobile.b1,\n lineHeight: lineHeight.mobile.b1,\n letterSpacing: letterSpacing.mobile.b1,\n },\n },\n sizeLarge: {\n height: '64px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flex: '1 0 0',\n alignSelf: 'stretch',\n gap: '4px',\n padding: '0px 24px',\n fontStyle: 'normal',\n fontFamily: fontFamily.desktop.heading,\n fontSize: fontSize.desktop.h4,\n lineHeight: 'normal',\n letterSpacing: letterSpacing.desktop.h4,\n fontWeight: '600',\n [baseTheme.breakpoints.down('tablet')]: {\n fontFamily: fontFamily.mobile.heading,\n fontSize: fontSize.mobile.h4,\n lineHeight: lineHeight.mobile.h4,\n letterSpacing: letterSpacing.mobile.h4,\n },\n },\n },\n})\n"],"names":["baseTheme","styleOverrides","root","textAlign","textTransform","display","alignItems","justifyContent","flex","alignSelf","sizeSmall","height","padding","fontStyle","fontFamily","desktop","body","fontSize","caption","lineHeight","letterSpacing","fontWeight","breakpoints","down","mobile","sizeMedium","gap","b1","sizeLarge","heading","h4"],"mappings":"uVAgBqCA,IAA4C,CAC7EC,eAAgB,CAChBC,KAAM,CACJC,UAAW,SACXC,cAAe,OACfC,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChBC,KAAM,Q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21 @@
1
+ import { Theme } from '@mui/material/styles';
2
+
3
+ interface ButtonStyleOverrides {
4
+ styleOverrides: {
5
+ root: Record<string, string | {
6
+ [key: string]: string;
7
+ }>;
8
+ sizeSmall: Record<string, string | {
9
+ [key: string]: string;
10
+ }>;
11
+ sizeMedium: Record<string, string | {
12
+ [key: string]: string;
13
+ }>;
14
+ sizeLarge: Record<string, string | {
15
+ [key: string]: string;
16
+ }>;
17
+ };
18
+ }
19
+ declare const buttonStyleOverrides: (baseTheme: Theme) => ButtonStyleOverrides;
20
+
21
+ export { buttonStyleOverrides };
@@ -0,0 +1,2 @@
1
+ import"@mui/material/styles";import{fontFamily as e}from"../../../themes/tokens/typography/font-family.js";import{fontSize as t}from"../../../themes/tokens/typography/font-size.js";import{letterSpacing as i}from"../../../themes/tokens/typography/letter-spacing.js";import{lineHeight as o}from"../../../themes/tokens/typography/line-height.js";const n=n=>({styleOverrides:{root:{textAlign:"center",textTransform:"none",display:"flex",alignItems:"center",justifyContent:"center",flex:"1 0 0",alignSelf:"stretch"},sizeSmall:{height:"32px",padding:"0px 12px",fontStyle:"normal",fontFamily:e.desktop.body,fontSize:t.desktop.caption,lineHeight:"normal",letterSpacing:i.desktop.caption,fontWeight:"600",[n.breakpoints.down("tablet")]:{fontFamily:e.mobile.body,fontSize:t.mobile.caption,lineHeight:o.mobile.caption,letterSpacing:i.mobile.caption}},sizeMedium:{height:"48px",gap:"4px",padding:"0px 16px",fontStyle:"normal",fontFamily:e.desktop.body,fontSize:t.desktop.b1,lineHeight:"normal",letterSpacing:i.desktop.b1,fontWeight:"600",[n.breakpoints.down("tablet")]:{fontFamily:e.mobile.body,fontSize:t.mobile.b1,lineHeight:o.mobile.b1,letterSpacing:i.mobile.b1}},sizeLarge:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center",flex:"1 0 0",alignSelf:"stretch",gap:"4px",padding:"0px 24px",fontStyle:"normal",fontFamily:e.desktop.heading,fontSize:t.desktop.h4,lineHeight:"normal",letterSpacing:i.desktop.h4,fontWeight:"600",[n.breakpoints.down("tablet")]:{fontFamily:e.mobile.heading,fontSize:t.mobile.h4,lineHeight:o.mobile.h4,letterSpacing:i.mobile.h4}}}});export{n as buttonStyleOverrides};
2
+ //# sourceMappingURL=buttonThemeOverrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buttonThemeOverrides.js","sources":["../../../../src/components/atoms/Button/buttonThemeOverrides.ts"],"sourcesContent":["import { type Theme } from \"@mui/material/styles\";\n\nimport { fontFamily } from \"../../../themes/tokens/typography/font-family\";\nimport { fontSize } from \"../../../themes/tokens/typography/font-size\"\nimport { letterSpacing } from \"../../../themes/tokens/typography/letter-spacing\"\nimport { lineHeight } from \"../../../themes/tokens/typography/line-height\"\n\ninterface ButtonStyleOverrides {\n styleOverrides: {\n root: Record<string, string | { [key: string]: string }>;\n sizeSmall: Record<string, string | { [key: string]: string }>;\n sizeMedium: Record<string, string | { [key: string]: string }>;\n sizeLarge: Record<string, string | { [key: string]: string }>;\n };\n}\n\nexport const buttonStyleOverrides = (baseTheme: Theme): ButtonStyleOverrides => ({\n styleOverrides: {\n root: {\n textAlign: 'center',\n textTransform: 'none',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flex: '1 0 0',\n alignSelf: 'stretch',\n },\n sizeSmall: {\n height: '32px',\n padding: '0px 12px',\n fontStyle: 'normal',\n fontFamily: fontFamily.desktop.body,\n fontSize: fontSize.desktop.caption,\n lineHeight: 'normal', // normal vs lineHeight.desktop.caption due to mui issue with text alignment https://github.com/mui/material-ui/issues/29965\n letterSpacing: letterSpacing.desktop.caption,\n fontWeight: '600',\n [baseTheme.breakpoints.down('tablet')]: {\n fontFamily: fontFamily.mobile.body,\n fontSize: fontSize.mobile.caption,\n lineHeight: lineHeight.mobile.caption,\n letterSpacing: letterSpacing.mobile.caption,\n },\n },\n sizeMedium: {\n height: '48px',\n gap: '4px',\n padding: '0px 16px',\n fontStyle: 'normal',\n fontFamily: fontFamily.desktop.body,\n fontSize: fontSize.desktop.b1,\n lineHeight: 'normal',\n letterSpacing: letterSpacing.desktop.b1,\n fontWeight: '600',\n [baseTheme.breakpoints.down('tablet')]: {\n fontFamily: fontFamily.mobile.body,\n fontSize: fontSize.mobile.b1,\n lineHeight: lineHeight.mobile.b1,\n letterSpacing: letterSpacing.mobile.b1,\n },\n },\n sizeLarge: {\n height: '64px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flex: '1 0 0',\n alignSelf: 'stretch',\n gap: '4px',\n padding: '0px 24px',\n fontStyle: 'normal',\n fontFamily: fontFamily.desktop.heading,\n fontSize: fontSize.desktop.h4,\n lineHeight: 'normal',\n letterSpacing: letterSpacing.desktop.h4,\n fontWeight: '600',\n [baseTheme.breakpoints.down('tablet')]: {\n fontFamily: fontFamily.mobile.heading,\n fontSize: fontSize.mobile.h4,\n lineHeight: lineHeight.mobile.h4,\n letterSpacing: letterSpacing.mobile.h4,\n },\n },\n },\n})\n"],"names":["buttonStyleOverrides","baseTheme","styleOverrides","root","textAlign","textTransform","display","alignItems","justifyContent","flex","alignSelf","sizeSmall","height","padding","fontStyle","fontFamily","desktop","body","fontSize","caption","lineHeight","letterSpacing","fontWeight","breakpoints","down","mobile","sizeMedium","gap","b1","sizeLarge","heading","h4"],"mappings":"6VAgBaA,EAAwBC,IAA4C,CAC7EC,eAAgB,CAChBC,KAAM,CACJC,UAAW,SACXC,cAAe,OACfC,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChBC,KAAM,QACNC,UAAW,WAEbC,UAAW,CACTC,OAAQ,OACRC,QAAS,WACTC,UAAW,SACXC,WAAYA,EAAWC,QAAQC,KAC/BC,SAAUA,EAASF,QAAQG,QAC3BC,WAAY,SACZC,cAAeA,EAAcL,QAAQG,QACrCG,WAAY,MACZ,CAACrB,EAAUsB,YAAYC,KAAK,WAAY,CACtCT,WAAYA,EAAWU,OAAOR,KAC9BC,SAAUA,EAASO,OAAON,QAC1BC,WAAYA,EAAWK,OAAON,QAC9BE,cAAeA,EAAcI,OAAON,UAGxCO,WAAY,CACVd,OAAQ,OACRe,IAAK,MACLd,QAAS,WACTC,UAAW,SACXC,WAAYA,EAAWC,QAAQC,KAC/BC,SAAUA,EAASF,QAAQY,GAC3BR,WAAY,SACZC,cAAeA,EAAcL,QAAQY,GACrCN,WAAY,MACZ,CAACrB,EAAUsB,YAAYC,KAAK,WAAY,CACtCT,WAAYA,EAAWU,OAAOR,KAC9BC,SAAUA,EAASO,OAAOG,GAC1BR,WAAYA,EAAWK,OAAOG,GAC9BP,cAAeA,EAAcI,OAAOG,KAGxCC,UAAW,CACTjB,OAAQ,OACRN,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChBC,KAAM,QACNC,UAAW,UACXiB,IAAK,MACLd,QAAS,WACTC,UAAW,SACXC,WAAYA,EAAWC,QAAQc,QAC/BZ,SAAUA,EAASF,QAAQe,GAC3BX,WAAY,SACZC,cAAeA,EAAcL,QAAQe,GACrCT,WAAY,MACZ,CAACrB,EAAUsB,YAAYC,KAAK,WAAY,CACtCT,WAAYA,EAAWU,OAAOK,QAC9BZ,SAAUA,EAASO,OAAOM,GAC1BX,WAAYA,EAAWK,OAAOM,GAC9BV,cAAeA,EAAcI,OAAOM"}
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("@mui/material/styles");module.exports=(t,o="primary",r="brand")=>{const a={generic:{focus:{outlineOffset:"2px",outline:`2px solid ${t.palette.semantic.stroke["stroke-focus"]}`,transition:"none"}},primary:{brand:{default:{backgroundColor:t.palette.semantic.fill["fill-primary-strong"],color:t.palette.semantic.text["text-inverse-strong"],borderRadius:"8px",boxShadow:t.customShadows?.raised},hover:{backgroundColor:e.darken(t.palette.semantic.fill["fill-primary-strong"],.1),color:t.palette.semantic.text["text-inverse-strong"],borderRadius:"8px",boxShadow:t.customShadows?.raised},press:{backgroundColor:e.darken(t.palette.semantic.fill["fill-primary-strong"],.2),color:t.palette.semantic.text["text-inverse-strong"],borderRadius:"8px",boxShadow:t.customShadows?.raised},disabled:{backgroundColor:t.palette.semantic.fill["fill-disabled"],borderColor:"transparent",color:t.palette.semantic.text["text-inverse-strong"],boxShadow:"none",cursor:"not-allowed"}},neutral:{default:{borderRadius:t.radius["radius-8"],backgroundColor:t.palette.semantic.fill["fill-strong"],color:t.palette.semantic.text["text-inverse-strong"],boxShadow:t.customShadows?.raised},hover:{borderRadius:t.radius["radius-8"],backgroundColor:e.lighten(t.palette.semantic.fill["fill-strong"],.1),color:t.palette.semantic.text["text-inverse-strong"],boxShadow:t.customShadows?.raised},press:{borderRadius:t.radius["radius-8"],backgroundColor:e.lighten(t.palette.semantic.fill["fill-strong"],.2),color:t.palette.semantic.text["text-inverse-strong"],boxShadow:t.customShadows?.raised},disabled:{backgroundColor:t.palette.semantic.fill["fill-disabled"],borderColor:"transparent",color:t.palette.semantic.text["text-inverse-strong"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},inverse:{default:{borderRadius:t.radius["radius-8"],backgroundColor:t.palette.semantic.fill["fill-inverse-strong"],color:t.palette.semantic.text["text-strong"],boxShadow:t.customShadows?.raised},hover:{borderRadius:t.radius["radius-8"],backgroundColor:e.darken(t.palette.semantic.fill["fill-inverse-strong"],.1),color:t.palette.semantic.text["text-strong"],boxShadow:t.customShadows?.raised},press:{borderRadius:t.radius["radius-8"],backgroundColor:e.darken(t.palette.semantic.fill["fill-inverse-strong"],.2),color:t.palette.semantic.text["text-strong"],boxShadow:t.customShadows?.raised},focus:{borderRadius:t.radius["radius-8"],outlineOffset:"2px",outline:`2px solid ${e.lighten(t.palette.semantic.stroke["stroke-inverse-strong"],.4)}`,transition:"none"},disabled:{backgroundColor:t.palette.semantic.fill["fill-inverse-disabled"],color:t.palette.semantic.text["text-strong"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},destructive:{default:{borderRadius:t.radius["radius-8"],backgroundColor:t.palette.semantic.fill["fill-error-strong"],color:t.palette.semantic.text["text-inverse-strong"],boxShadow:t.customShadows?.raised},hover:{borderRadius:t.radius["radius-8"],backgroundColor:e.darken(t.palette.semantic.fill["fill-error-strong"],.1),color:t.palette.semantic.text["text-inverse-strong"],boxShadow:t.customShadows?.raised},press:{borderRadius:t.radius["radius-8"],backgroundColor:e.darken(t.palette.semantic.fill["fill-error-strong"],.2),color:t.palette.semantic.text["text-inverse-strong"],boxShadow:t.customShadows?.raised},disabled:{backgroundColor:t.palette.semantic.fill["fill-disabled"],borderColor:"transparent",color:t.palette.semantic.text["text-inverse-strong"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}}},secondary:{brand:{default:{border:`1px solid ${t.palette.semantic.stroke["stroke-primary-strong"]}`,borderRadius:t.radius["radius-8"],backgroundColor:"transparent",color:t.palette.semantic.text["text-primary"],boxShadow:t.customShadows?.raised},hover:{border:`1px solid ${t.palette.semantic.stroke["stroke-primary-strong"]}`,borderRadius:t.radius["radius-8"],backgroundColor:t.palette.semantic.fill["fill-hover"],color:t.palette.semantic.text["text-primary"],boxShadow:t.customShadows?.raised},press:{border:`1px solid ${t.palette.semantic.stroke["stroke-primary-strong"]}`,borderRadius:t.radius["radius-8"],backgroundColor:t.palette.semantic.fill["fill-press"],color:t.palette.semantic.text["text-primary"],boxShadow:t.customShadows?.raised},disabled:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-disabled"]}`,backgroundColor:t.palette.semantic.fill["fill-white"],color:t.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},neutral:{default:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-strong"]}`,color:t.palette.semantic.text["text-strong"],boxShadow:t.customShadows?.raised},hover:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-strong"]}`,backgroundColor:t.palette.semantic.fill["fill-hover"],color:t.palette.semantic.text["text-strong"],boxShadow:t.customShadows?.raised},press:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-strong"]}`,backgroundColor:t.palette.semantic.fill["fill-press"],color:t.palette.semantic.text["text-strong"],boxShadow:t.customShadows?.raised},disabled:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-disabled"]}`,backgroundColor:t.palette.semantic.fill["fill-white"],color:t.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},inverse:{default:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-inverse-strong"]}`,backgroundColor:"transparent",color:t.palette.semantic.text["text-inverse-strong"],boxShadow:t.customShadows?.raised},hover:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-inverse-strong"]}`,backgroundColor:t.palette.semantic.fill["fill-inverse-hover"],color:t.palette.semantic.text["text-inverse-strong"],boxShadow:t.customShadows?.raised},press:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-inverse-strong"]}`,backgroundColor:t.palette.semantic.fill["fill-inverse-press"],color:t.palette.semantic.text["text-inverse-strong"],boxShadow:t.customShadows?.raised},disabled:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-inverse-disabled"]}`,backgroundColor:t.palette.semantic.fill["fill-inverse-hover"],color:t.palette.semantic.stroke["stroke-inverse-disabled"],boxShadow:"none",cursor:"not-allowed"}},destructive:{default:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-error-strong"]}`,backgroundColor:"transparent",color:t.palette.semantic.text["text-error"],boxShadow:t.customShadows?.raised},hover:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-error-strong"]}`,backgroundColor:t.palette.semantic.fill["fill-hover"],color:t.palette.semantic.text["text-error"],boxShadow:t.customShadows?.raised},press:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-error-strong"]}`,backgroundColor:t.palette.semantic.fill["fill-press"],color:t.palette.semantic.text["text-error"],boxShadow:t.customShadows?.raised},disabled:{backgroundColor:t.palette.semantic.fill["fill-white"],border:`1px solid ${t.palette.semantic.stroke["stroke-disabled"]}`,color:t.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}}},tertiary:{brand:{default:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:"transparent",textDecoration:"underline",textUnderlineOffset:"25%",textUnderlinePosition:"from-font",color:t.palette.semantic.text["text-primary"],boxShadow:"none"},hover:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:t.palette.semantic.fill["fill-hover"],color:t.palette.semantic.text["text-primary"],boxShadow:"none"},press:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:t.palette.semantic.fill["fill-press"],color:t.palette.semantic.text["text-primary"],boxShadow:"none"},disabled:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:t.palette.semantic.fill["fill-white"],color:t.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},neutral:{default:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:"transparent",textDecoration:"underline",textUnderlineOffset:"25%",textUnderlinePosition:"from-font",color:t.palette.semantic.text["text-strong"],boxShadow:"none"},hover:{backgroundColor:t.palette.semantic.fill["fill-hover"],borderColor:t.palette.semantic.stroke["stroke-strong"],color:t.palette.semantic.text["text-strong"],boxShadow:"none"},press:{backgroundColor:t.palette.semantic.fill["fill-press"],borderColor:t.palette.semantic.stroke["stroke-strong"],color:t.palette.semantic.text["text-strong"],boxShadow:"none"},disabled:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:t.palette.semantic.fill["fill-white"],color:t.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},inverse:{default:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:"transparent",textDecoration:"underline",textUnderlineOffset:"25%",textUnderlinePosition:"from-font",color:t.palette.semantic.text["text-inverse-strong"],boxShadow:"none"},hover:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:t.palette.semantic.fill["fill-inverse-hover"],color:t.palette.semantic.text["text-inverse-strong"],boxShadow:"none"},press:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:t.palette.semantic.fill["fill-inverse-press"],color:t.palette.semantic.text["text-inverse-strong"],boxShadow:"none"},disabled:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:t.palette.semantic.fill["fill-strong"],color:t.palette.semantic.stroke["stroke-inverse-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"},focus:{borderRadius:t.radius["radius-8"],border:`1px solid ${t.palette.semantic.stroke["stroke-inverse-strong"]}`,backgroundColor:t.palette.semantic.fill["fill-inverse-hover"],color:t.palette.semantic.text["text-inverse-strong"],boxShadow:"none"}},destructive:{default:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:"transparent",textDecoration:"underline",textUnderlineOffset:"25%",textUnderlinePosition:"from-font",color:t.palette.semantic.text["text-error"],boxShadow:"none"},hover:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:t.palette.semantic.fill["fill-hover"],color:t.palette.semantic.text["text-error"],boxShadow:"none"},press:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:t.palette.semantic.fill["fill-press"],color:t.palette.semantic.text["text-error"],boxShadow:"none"},disabled:{borderRadius:t.radius["radius-8"],border:"none",backgroundColor:t.palette.semantic.fill["fill-white"],color:t.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}}}};return{...a.generic,...a[o][r]}};
2
+ //# sourceMappingURL=getButtonStyles.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getButtonStyles.cjs.js","sources":["../../../../src/components/atoms/Button/getButtonStyles.ts"],"sourcesContent":["import { darken, lighten, type Theme } from '@mui/material/styles';\n\nexport type ButtonType = 'primary' | 'secondary' | 'tertiary';\nexport type ButtonTone = 'brand' | 'destructive' | 'inverse' | 'neutral' | undefined;\ntype ButtonState = 'default' | 'disabled' | 'focus' | 'hover' | 'press';\n\ninterface StyleObject {\n [property: string]: number | string | undefined;\n}\n\ntype ButtonStyles = {\n [state in ButtonState]?: StyleObject;\n};\nconst getButtonStyles = (theme: Theme, variant: ButtonType = 'primary', tone: ButtonTone = 'brand'): ButtonStyles => {\n const variants = {\n generic: {\n focus: {\n outlineOffset: '2px',\n outline: `2px solid ${theme.palette.semantic.stroke['stroke-focus']}`,\n transition: 'none',\n },\n },\n primary: {\n brand: {\n default: {\n backgroundColor: theme.palette.semantic.fill['fill-primary-strong'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n borderRadius: '8px',\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n backgroundColor: darken(theme.palette.semantic.fill['fill-primary-strong'], 0.1),\n color: theme.palette.semantic.text['text-inverse-strong'],\n borderRadius: '8px',\n boxShadow: theme.customShadows?.raised\n },\n press: {\n backgroundColor: darken(theme.palette.semantic.fill['fill-primary-strong'], 0.2),\n color: theme.palette.semantic.text['text-inverse-strong'],\n borderRadius: '8px',\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n backgroundColor: theme.palette.semantic.fill['fill-disabled'],\n borderColor: 'transparent',\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n },\n },\n neutral: {\n default: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: theme.palette.semantic.fill['fill-strong'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: lighten(theme.palette.semantic.fill['fill-strong'], 0.1),\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: lighten(theme.palette.semantic.fill['fill-strong'], 0.2),\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n backgroundColor: theme.palette.semantic.fill['fill-disabled'],\n borderColor: 'transparent',\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n inverse: {\n default: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: theme.palette.semantic.fill['fill-inverse-strong'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: darken(theme.palette.semantic.fill['fill-inverse-strong'], 0.1),\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: darken(theme.palette.semantic.fill['fill-inverse-strong'], 0.2),\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n focus: {\n borderRadius: theme.radius['radius-8'],\n outlineOffset: '2px',\n outline: `2px solid ${lighten(theme.palette.semantic.stroke['stroke-inverse-strong'], 0.4)}`,\n transition: 'none',\n },\n disabled: {\n backgroundColor: theme.palette.semantic.fill['fill-inverse-disabled'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n destructive: {\n default: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: theme.palette.semantic.fill['fill-error-strong'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: darken(theme.palette.semantic.fill['fill-error-strong'], 0.1),\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: darken(theme.palette.semantic.fill['fill-error-strong'], 0.2),\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n backgroundColor: theme.palette.semantic.fill['fill-disabled'],\n borderColor: 'transparent',\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n },\n secondary: {\n brand: {\n default: {\n border: `1px solid ${theme.palette.semantic.stroke['stroke-primary-strong']}`,\n borderRadius: theme.radius['radius-8'],\n backgroundColor: 'transparent',\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n border: `1px solid ${theme.palette.semantic.stroke['stroke-primary-strong']}`,\n borderRadius: theme.radius['radius-8'],\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n border: `1px solid ${theme.palette.semantic.stroke['stroke-primary-strong']}`,\n borderRadius: theme.radius['radius-8'],\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-disabled']}`,\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n neutral: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-strong']}`,\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-disabled']}`,\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n inverse: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-inverse-strong']}`,\n backgroundColor: 'transparent',\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-inverse-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-inverse-hover'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-inverse-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-inverse-press'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-inverse-disabled']}`,\n backgroundColor: theme.palette.semantic.fill['fill-inverse-hover'],\n color: theme.palette.semantic.stroke['stroke-inverse-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n },\n },\n destructive: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-error-strong']}`,\n backgroundColor: 'transparent',\n color: theme.palette.semantic.text['text-error'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-error-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-error'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-error-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-error'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-disabled']}`,\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n },\n\n tertiary: {\n brand: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: 'transparent',\n textDecoration: 'underline',\n textUnderlineOffset: '25%',\n textUnderlinePosition: 'from-font',\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: 'none'\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: 'none'\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: 'none'\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n neutral: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: 'transparent',\n textDecoration: 'underline',\n textUnderlineOffset: '25%',\n textUnderlinePosition: 'from-font',\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: 'none'\n },\n hover: {\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n borderColor: theme.palette.semantic.stroke['stroke-strong'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: 'none'\n },\n press: {\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n borderColor: theme.palette.semantic.stroke['stroke-strong'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: 'none'\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border:'none',\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n inverse: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: 'transparent',\n textDecoration: 'underline',\n textUnderlineOffset: '25%',\n textUnderlinePosition: 'from-font',\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none'\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-inverse-hover'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none'\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-inverse-press'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none'\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-strong'],\n color: theme.palette.semantic.stroke['stroke-inverse-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n focus: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-inverse-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-inverse-hover'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none'\n },\n },\n destructive: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: 'transparent',\n textDecoration: 'underline',\n textUnderlineOffset: '25%',\n textUnderlinePosition: 'from-font',\n color: theme.palette.semantic.text['text-error'],\n boxShadow: 'none',\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-error'],\n boxShadow: 'none'\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-error'],\n boxShadow: 'none'\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n },\n };\n return { ...variants.generic, ...variants[variant][tone] };\n};\n\nexport default getButtonStyles;\n"],"names":["theme","variant","tone","variants","generic","focus","outlineOffset","outline","palette","semantic","stroke","transition","primary","brand","default","backgroundColor","fill","color","text","borderRadius","boxShadow","customShadows","raised","hover","darken","press","disabled","borderColor","cursor","neutral","radius","lighten","pointerEvents","inverse","destructive","secondary","border","tertiary","textDecoration","textUnderlineOffset","textUnderlinePosition"],"mappings":"kEAawB,CAACA,EAAcC,EAAsB,UAAWC,EAAmB,WACzF,MAAMC,EAAW,CACfC,QAAS,CACPC,MAAO,CACLC,cAAe,MACfC,QAAS,aAAaP,EAAMQ,QAAQC,SAASC,OAAO,kBACpDC,WAAY,SAGhBC,QAAS,CACPC,MAAO,CACLC,QAAS,CACPC,gBAAiBf,EAAMQ,QAAQC,SAASO,KAAK,uBAC7CC,MAAOjB,EAAMQ,QAAQC,SAASS,KAAK,uBACnCC,aAAc,MACdC,UAAWpB,EAAMqB,eAAeC,QAElCC,MAAO,CACLR,gBAAiBS,EAAAA,OAAOxB,EAAMQ,QAAQC,SAASO,KAAK,uBAAwB,IAC5EC,MAAOjB,EAAMQ,QAAQC,SAASS,KAAK,uBACnCC,aAAc,MACdC,UAAWpB,EAAMqB,eAAeC,QAElCG,MAAO,CACLV,gBAAiBS,EAAAA,OAAOxB,EAAMQ,QAAQC,SAASO,KAAK,uBAAwB,IAC5EC,MAAOjB,EAAMQ,QAAQC,SAASS,KAAK,uBACnCC,aAAc,MACd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,QAAQC,SAASS,KAAK,cACnCE,UAAW,QAEbM,SAAU,CACRP,aAAcnB,EAAM8B,OAAO,YAC3BM,OAAQ,OACRrB,gBAAiBf,EAAMQ,QAAQC,SAASO,KAAK,cAC7CC,MAAOjB,EAAMQ,QAAQC,SAASS,KAAK,iBACnCE,UAAW,OACXQ,OAAQ,cACRI,cAAe,WAKvB,MAAO,IAAK7B,EAASC,WAAYD,EAASF,GAASC"}
@@ -0,0 +1,15 @@
1
+ import { Theme } from '@mui/material/styles';
2
+
3
+ type ButtonType = 'primary' | 'secondary' | 'tertiary';
4
+ type ButtonTone = 'brand' | 'destructive' | 'inverse' | 'neutral' | undefined;
5
+ type ButtonState = 'default' | 'disabled' | 'focus' | 'hover' | 'press';
6
+ interface StyleObject {
7
+ [property: string]: number | string | undefined;
8
+ }
9
+ type ButtonStyles = {
10
+ [state in ButtonState]?: StyleObject;
11
+ };
12
+ declare const getButtonStyles: (theme: Theme, variant?: ButtonType, tone?: ButtonTone) => ButtonStyles;
13
+
14
+ export { getButtonStyles as default };
15
+ export type { ButtonTone, ButtonType };
@@ -0,0 +1,2 @@
1
+ import{darken as e,lighten as t}from"@mui/material/styles";const o=(o,r="primary",a="brand")=>{const s={generic:{focus:{outlineOffset:"2px",outline:`2px solid ${o.palette.semantic.stroke["stroke-focus"]}`,transition:"none"}},primary:{brand:{default:{backgroundColor:o.palette.semantic.fill["fill-primary-strong"],color:o.palette.semantic.text["text-inverse-strong"],borderRadius:"8px",boxShadow:o.customShadows?.raised},hover:{backgroundColor:e(o.palette.semantic.fill["fill-primary-strong"],.1),color:o.palette.semantic.text["text-inverse-strong"],borderRadius:"8px",boxShadow:o.customShadows?.raised},press:{backgroundColor:e(o.palette.semantic.fill["fill-primary-strong"],.2),color:o.palette.semantic.text["text-inverse-strong"],borderRadius:"8px",boxShadow:o.customShadows?.raised},disabled:{backgroundColor:o.palette.semantic.fill["fill-disabled"],borderColor:"transparent",color:o.palette.semantic.text["text-inverse-strong"],boxShadow:"none",cursor:"not-allowed"}},neutral:{default:{borderRadius:o.radius["radius-8"],backgroundColor:o.palette.semantic.fill["fill-strong"],color:o.palette.semantic.text["text-inverse-strong"],boxShadow:o.customShadows?.raised},hover:{borderRadius:o.radius["radius-8"],backgroundColor:t(o.palette.semantic.fill["fill-strong"],.1),color:o.palette.semantic.text["text-inverse-strong"],boxShadow:o.customShadows?.raised},press:{borderRadius:o.radius["radius-8"],backgroundColor:t(o.palette.semantic.fill["fill-strong"],.2),color:o.palette.semantic.text["text-inverse-strong"],boxShadow:o.customShadows?.raised},disabled:{backgroundColor:o.palette.semantic.fill["fill-disabled"],borderColor:"transparent",color:o.palette.semantic.text["text-inverse-strong"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},inverse:{default:{borderRadius:o.radius["radius-8"],backgroundColor:o.palette.semantic.fill["fill-inverse-strong"],color:o.palette.semantic.text["text-strong"],boxShadow:o.customShadows?.raised},hover:{borderRadius:o.radius["radius-8"],backgroundColor:e(o.palette.semantic.fill["fill-inverse-strong"],.1),color:o.palette.semantic.text["text-strong"],boxShadow:o.customShadows?.raised},press:{borderRadius:o.radius["radius-8"],backgroundColor:e(o.palette.semantic.fill["fill-inverse-strong"],.2),color:o.palette.semantic.text["text-strong"],boxShadow:o.customShadows?.raised},focus:{borderRadius:o.radius["radius-8"],outlineOffset:"2px",outline:`2px solid ${t(o.palette.semantic.stroke["stroke-inverse-strong"],.4)}`,transition:"none"},disabled:{backgroundColor:o.palette.semantic.fill["fill-inverse-disabled"],color:o.palette.semantic.text["text-strong"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},destructive:{default:{borderRadius:o.radius["radius-8"],backgroundColor:o.palette.semantic.fill["fill-error-strong"],color:o.palette.semantic.text["text-inverse-strong"],boxShadow:o.customShadows?.raised},hover:{borderRadius:o.radius["radius-8"],backgroundColor:e(o.palette.semantic.fill["fill-error-strong"],.1),color:o.palette.semantic.text["text-inverse-strong"],boxShadow:o.customShadows?.raised},press:{borderRadius:o.radius["radius-8"],backgroundColor:e(o.palette.semantic.fill["fill-error-strong"],.2),color:o.palette.semantic.text["text-inverse-strong"],boxShadow:o.customShadows?.raised},disabled:{backgroundColor:o.palette.semantic.fill["fill-disabled"],borderColor:"transparent",color:o.palette.semantic.text["text-inverse-strong"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}}},secondary:{brand:{default:{border:`1px solid ${o.palette.semantic.stroke["stroke-primary-strong"]}`,borderRadius:o.radius["radius-8"],backgroundColor:"transparent",color:o.palette.semantic.text["text-primary"],boxShadow:o.customShadows?.raised},hover:{border:`1px solid ${o.palette.semantic.stroke["stroke-primary-strong"]}`,borderRadius:o.radius["radius-8"],backgroundColor:o.palette.semantic.fill["fill-hover"],color:o.palette.semantic.text["text-primary"],boxShadow:o.customShadows?.raised},press:{border:`1px solid ${o.palette.semantic.stroke["stroke-primary-strong"]}`,borderRadius:o.radius["radius-8"],backgroundColor:o.palette.semantic.fill["fill-press"],color:o.palette.semantic.text["text-primary"],boxShadow:o.customShadows?.raised},disabled:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-disabled"]}`,backgroundColor:o.palette.semantic.fill["fill-white"],color:o.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},neutral:{default:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-strong"]}`,color:o.palette.semantic.text["text-strong"],boxShadow:o.customShadows?.raised},hover:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-strong"]}`,backgroundColor:o.palette.semantic.fill["fill-hover"],color:o.palette.semantic.text["text-strong"],boxShadow:o.customShadows?.raised},press:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-strong"]}`,backgroundColor:o.palette.semantic.fill["fill-press"],color:o.palette.semantic.text["text-strong"],boxShadow:o.customShadows?.raised},disabled:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-disabled"]}`,backgroundColor:o.palette.semantic.fill["fill-white"],color:o.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},inverse:{default:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-inverse-strong"]}`,backgroundColor:"transparent",color:o.palette.semantic.text["text-inverse-strong"],boxShadow:o.customShadows?.raised},hover:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-inverse-strong"]}`,backgroundColor:o.palette.semantic.fill["fill-inverse-hover"],color:o.palette.semantic.text["text-inverse-strong"],boxShadow:o.customShadows?.raised},press:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-inverse-strong"]}`,backgroundColor:o.palette.semantic.fill["fill-inverse-press"],color:o.palette.semantic.text["text-inverse-strong"],boxShadow:o.customShadows?.raised},disabled:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-inverse-disabled"]}`,backgroundColor:o.palette.semantic.fill["fill-inverse-hover"],color:o.palette.semantic.stroke["stroke-inverse-disabled"],boxShadow:"none",cursor:"not-allowed"}},destructive:{default:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-error-strong"]}`,backgroundColor:"transparent",color:o.palette.semantic.text["text-error"],boxShadow:o.customShadows?.raised},hover:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-error-strong"]}`,backgroundColor:o.palette.semantic.fill["fill-hover"],color:o.palette.semantic.text["text-error"],boxShadow:o.customShadows?.raised},press:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-error-strong"]}`,backgroundColor:o.palette.semantic.fill["fill-press"],color:o.palette.semantic.text["text-error"],boxShadow:o.customShadows?.raised},disabled:{backgroundColor:o.palette.semantic.fill["fill-white"],border:`1px solid ${o.palette.semantic.stroke["stroke-disabled"]}`,color:o.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}}},tertiary:{brand:{default:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:"transparent",textDecoration:"underline",textUnderlineOffset:"25%",textUnderlinePosition:"from-font",color:o.palette.semantic.text["text-primary"],boxShadow:"none"},hover:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:o.palette.semantic.fill["fill-hover"],color:o.palette.semantic.text["text-primary"],boxShadow:"none"},press:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:o.palette.semantic.fill["fill-press"],color:o.palette.semantic.text["text-primary"],boxShadow:"none"},disabled:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:o.palette.semantic.fill["fill-white"],color:o.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},neutral:{default:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:"transparent",textDecoration:"underline",textUnderlineOffset:"25%",textUnderlinePosition:"from-font",color:o.palette.semantic.text["text-strong"],boxShadow:"none"},hover:{backgroundColor:o.palette.semantic.fill["fill-hover"],borderColor:o.palette.semantic.stroke["stroke-strong"],color:o.palette.semantic.text["text-strong"],boxShadow:"none"},press:{backgroundColor:o.palette.semantic.fill["fill-press"],borderColor:o.palette.semantic.stroke["stroke-strong"],color:o.palette.semantic.text["text-strong"],boxShadow:"none"},disabled:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:o.palette.semantic.fill["fill-white"],color:o.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}},inverse:{default:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:"transparent",textDecoration:"underline",textUnderlineOffset:"25%",textUnderlinePosition:"from-font",color:o.palette.semantic.text["text-inverse-strong"],boxShadow:"none"},hover:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:o.palette.semantic.fill["fill-inverse-hover"],color:o.palette.semantic.text["text-inverse-strong"],boxShadow:"none"},press:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:o.palette.semantic.fill["fill-inverse-press"],color:o.palette.semantic.text["text-inverse-strong"],boxShadow:"none"},disabled:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:o.palette.semantic.fill["fill-strong"],color:o.palette.semantic.stroke["stroke-inverse-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"},focus:{borderRadius:o.radius["radius-8"],border:`1px solid ${o.palette.semantic.stroke["stroke-inverse-strong"]}`,backgroundColor:o.palette.semantic.fill["fill-inverse-hover"],color:o.palette.semantic.text["text-inverse-strong"],boxShadow:"none"}},destructive:{default:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:"transparent",textDecoration:"underline",textUnderlineOffset:"25%",textUnderlinePosition:"from-font",color:o.palette.semantic.text["text-error"],boxShadow:"none"},hover:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:o.palette.semantic.fill["fill-hover"],color:o.palette.semantic.text["text-error"],boxShadow:"none"},press:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:o.palette.semantic.fill["fill-press"],color:o.palette.semantic.text["text-error"],boxShadow:"none"},disabled:{borderRadius:o.radius["radius-8"],border:"none",backgroundColor:o.palette.semantic.fill["fill-white"],color:o.palette.semantic.text["text-disabled"],boxShadow:"none",cursor:"not-allowed",pointerEvents:"auto"}}}};return{...s.generic,...s[r][a]}};export{o as default};
2
+ //# sourceMappingURL=getButtonStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getButtonStyles.js","sources":["../../../../src/components/atoms/Button/getButtonStyles.ts"],"sourcesContent":["import { darken, lighten, type Theme } from '@mui/material/styles';\n\nexport type ButtonType = 'primary' | 'secondary' | 'tertiary';\nexport type ButtonTone = 'brand' | 'destructive' | 'inverse' | 'neutral' | undefined;\ntype ButtonState = 'default' | 'disabled' | 'focus' | 'hover' | 'press';\n\ninterface StyleObject {\n [property: string]: number | string | undefined;\n}\n\ntype ButtonStyles = {\n [state in ButtonState]?: StyleObject;\n};\nconst getButtonStyles = (theme: Theme, variant: ButtonType = 'primary', tone: ButtonTone = 'brand'): ButtonStyles => {\n const variants = {\n generic: {\n focus: {\n outlineOffset: '2px',\n outline: `2px solid ${theme.palette.semantic.stroke['stroke-focus']}`,\n transition: 'none',\n },\n },\n primary: {\n brand: {\n default: {\n backgroundColor: theme.palette.semantic.fill['fill-primary-strong'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n borderRadius: '8px',\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n backgroundColor: darken(theme.palette.semantic.fill['fill-primary-strong'], 0.1),\n color: theme.palette.semantic.text['text-inverse-strong'],\n borderRadius: '8px',\n boxShadow: theme.customShadows?.raised\n },\n press: {\n backgroundColor: darken(theme.palette.semantic.fill['fill-primary-strong'], 0.2),\n color: theme.palette.semantic.text['text-inverse-strong'],\n borderRadius: '8px',\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n backgroundColor: theme.palette.semantic.fill['fill-disabled'],\n borderColor: 'transparent',\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n },\n },\n neutral: {\n default: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: theme.palette.semantic.fill['fill-strong'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: lighten(theme.palette.semantic.fill['fill-strong'], 0.1),\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: lighten(theme.palette.semantic.fill['fill-strong'], 0.2),\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n backgroundColor: theme.palette.semantic.fill['fill-disabled'],\n borderColor: 'transparent',\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n inverse: {\n default: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: theme.palette.semantic.fill['fill-inverse-strong'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: darken(theme.palette.semantic.fill['fill-inverse-strong'], 0.1),\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: darken(theme.palette.semantic.fill['fill-inverse-strong'], 0.2),\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n focus: {\n borderRadius: theme.radius['radius-8'],\n outlineOffset: '2px',\n outline: `2px solid ${lighten(theme.palette.semantic.stroke['stroke-inverse-strong'], 0.4)}`,\n transition: 'none',\n },\n disabled: {\n backgroundColor: theme.palette.semantic.fill['fill-inverse-disabled'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n destructive: {\n default: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: theme.palette.semantic.fill['fill-error-strong'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: darken(theme.palette.semantic.fill['fill-error-strong'], 0.1),\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n backgroundColor: darken(theme.palette.semantic.fill['fill-error-strong'], 0.2),\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n backgroundColor: theme.palette.semantic.fill['fill-disabled'],\n borderColor: 'transparent',\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n },\n secondary: {\n brand: {\n default: {\n border: `1px solid ${theme.palette.semantic.stroke['stroke-primary-strong']}`,\n borderRadius: theme.radius['radius-8'],\n backgroundColor: 'transparent',\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n border: `1px solid ${theme.palette.semantic.stroke['stroke-primary-strong']}`,\n borderRadius: theme.radius['radius-8'],\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n border: `1px solid ${theme.palette.semantic.stroke['stroke-primary-strong']}`,\n borderRadius: theme.radius['radius-8'],\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-disabled']}`,\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n neutral: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-strong']}`,\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-disabled']}`,\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n inverse: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-inverse-strong']}`,\n backgroundColor: 'transparent',\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-inverse-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-inverse-hover'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-inverse-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-inverse-press'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-inverse-disabled']}`,\n backgroundColor: theme.palette.semantic.fill['fill-inverse-hover'],\n color: theme.palette.semantic.stroke['stroke-inverse-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n },\n },\n destructive: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-error-strong']}`,\n backgroundColor: 'transparent',\n color: theme.palette.semantic.text['text-error'],\n boxShadow: theme.customShadows?.raised\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-error-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-error'],\n boxShadow: theme.customShadows?.raised\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-error-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-error'],\n boxShadow: theme.customShadows?.raised\n },\n disabled: {\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-disabled']}`,\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n },\n\n tertiary: {\n brand: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: 'transparent',\n textDecoration: 'underline',\n textUnderlineOffset: '25%',\n textUnderlinePosition: 'from-font',\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: 'none'\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: 'none'\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-primary'],\n boxShadow: 'none'\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n neutral: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: 'transparent',\n textDecoration: 'underline',\n textUnderlineOffset: '25%',\n textUnderlinePosition: 'from-font',\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: 'none'\n },\n hover: {\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n borderColor: theme.palette.semantic.stroke['stroke-strong'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: 'none'\n },\n press: {\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n borderColor: theme.palette.semantic.stroke['stroke-strong'],\n color: theme.palette.semantic.text['text-strong'],\n boxShadow: 'none'\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border:'none',\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n inverse: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: 'transparent',\n textDecoration: 'underline',\n textUnderlineOffset: '25%',\n textUnderlinePosition: 'from-font',\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none'\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-inverse-hover'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none'\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-inverse-press'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none'\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-strong'],\n color: theme.palette.semantic.stroke['stroke-inverse-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n focus: {\n borderRadius: theme.radius['radius-8'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-inverse-strong']}`,\n backgroundColor: theme.palette.semantic.fill['fill-inverse-hover'],\n color: theme.palette.semantic.text['text-inverse-strong'],\n boxShadow: 'none'\n },\n },\n destructive: {\n default: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: 'transparent',\n textDecoration: 'underline',\n textUnderlineOffset: '25%',\n textUnderlinePosition: 'from-font',\n color: theme.palette.semantic.text['text-error'],\n boxShadow: 'none',\n },\n hover: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-hover'],\n color: theme.palette.semantic.text['text-error'],\n boxShadow: 'none'\n },\n press: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-press'],\n color: theme.palette.semantic.text['text-error'],\n boxShadow: 'none'\n },\n disabled: {\n borderRadius: theme.radius['radius-8'],\n border: 'none',\n backgroundColor: theme.palette.semantic.fill['fill-white'],\n color: theme.palette.semantic.text['text-disabled'],\n boxShadow: 'none',\n cursor: 'not-allowed',\n pointerEvents: 'auto',\n },\n },\n },\n };\n return { ...variants.generic, ...variants[variant][tone] };\n};\n\nexport default getButtonStyles;\n"],"names":["getButtonStyles","theme","variant","tone","variants","generic","focus","outlineOffset","outline","palette","semantic","stroke","transition","primary","brand","default","backgroundColor","fill","color","text","borderRadius","boxShadow","customShadows","raised","hover","darken","press","disabled","borderColor","cursor","neutral","radius","lighten","pointerEvents","inverse","destructive","secondary","border","tertiary","textDecoration","textUnderlineOffset","textUnderlinePosition"],"mappings":"2DAaM,MAAAA,EAAkB,CAACC,EAAcC,EAAsB,UAAWC,EAAmB,WACzF,MAAMC,EAAW,CACfC,QAAS,CACPC,MAAO,CACLC,cAAe,MACfC,QAAS,aAAaP,EAAMQ,QAAQC,SAASC,OAAO,kBACpDC,WAAY,SAGhBC,QAAS,CACPC,MAAO,CACLC,QAAS,CACPC,gBAAiBf,EAAMQ,QAAQC,SAASO,KAAK,uBAC7CC,MAAOjB,EAAMQ,QAAQC,SAASS,KAAK,uBACnCC,aAAc,MACdC,UAAWpB,EAAMqB,eAAeC,QAElCC,MAAO,CACLR,gBAAiBS,EAAOxB,EAAMQ,QAAQC,SAASO,KAAK,uBAAwB,IAC5EC,MAAOjB,EAAMQ,QAAQC,SAASS,KAAK,uBACnCC,aAAc,MACdC,UAAWpB,EAAMqB,eAAeC,QAElCG,MAAO,CACLV,gBAAiBS,EAAOxB,EAAMQ,QAAQC,SAASO,KAAK,uBAAwB,IAC5EC,MAAOjB,EAAMQ,QAAQC,SAASS,KAAK,uBACnCC,aAAc,MACdC,UAAWpB,EAAMqB,eAAeC,QAElCI,SAAU,CACRX,gBAAiBf,EAAMQ,QAAQC,SAASO,KAAK,iBAC7CW,YAAa,cACbV,MAAOjB,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AAQC,SAASS,KAAK,iBACnCE,UAAW,OACXQ,OAAQ,cACRI,cAAe,WAKvB,MAAO,IAAK7B,EAASC,WAAYD,EAASF,GAASC"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("react");var r=require("@mui/material/Button"),t=require("@mui/material/styles"),a=require("./getButtonStyles.cjs.js");const n=t.styled(r,{shouldForwardProp:e=>!["casingOverride","customVariant","tone"].includes(e)})((({theme:e,customVariant:r="primary",tone:t="brand",casingOverride:n="none"})=>{const i=a(e,r,t);return{...i.default,textTransform:n,transition:"all 0.2s ease-in-out",padding:"12px 24px","&:hover":{...i.hover},"&:focus":{outline:"none"},"&:focus-visible":{...i.focus},"&:active":{...i.press},"&:disabled":{...i.disabled,cursor:"not-allowed"}}})),i={primary:"contained",secondary:"outlined",tertiary:"text"},o=({children:r,className:t,disabled:a=!1,fdKey:o,form:s,fullWidth:d=!1,href:l,casingOverride:c="none",type:u="button",variant:m="primary",tone:p,target:f,startIcon:y,endIcon:v,onClick:h,onKeyDown:b,...x})=>e.jsx(n,{disableRipple:!0,casingOverride:c,className:t,customVariant:m,"data-fd":o,disabled:a,endIcon:v,form:s,fullWidth:d,href:l,startIcon:y,target:f,tone:p,type:u,variant:i[m],...x,onClick:h,onKeyDown:b,children:r});exports.Button=o,exports.default=o;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../src/components/atoms/Button/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport MuiButton, { type ButtonProps as MuiButtonProps } from '@mui/material/Button';\nimport { styled } from '@mui/material/styles';\n\nimport getButtonStyles, { type ButtonTone, type ButtonType } from './getButtonStyles';\n\ntype CasingOverride = 'capitalize' | 'lowercase' | 'none' | 'uppercase';\n\nexport interface ButtonProps extends Omit<MuiButtonProps, 'variant'> {\n className?: string;\n children: React.ReactNode;\n disabled?: boolean;\n form?: string;\n fullWidth?: boolean;\n casingOverride?: CasingOverride;\n type?: 'button' | 'reset' | 'submit';\n fdKey: string;\n variant?: ButtonType;\n tone?: ButtonTone;\n target?: '_blank';\n startIcon?: React.ReactNode;\n endIcon?: React.ReactNode;\n onClick?: () => void;\n onKeyDown?: (e: React.KeyboardEvent) => void;\n}\n\nconst StyledButton = styled(MuiButton, {\n shouldForwardProp: (prop) => !['casingOverride', 'customVariant', 'tone'].includes(prop as string),\n})<{ casingOverride?: CasingOverride; customVariant?: ButtonType; tone?: ButtonTone }>(({\n theme,\n customVariant = 'primary',\n tone = 'brand',\n casingOverride = 'none',\n}) => {\n const styles = getButtonStyles(theme, customVariant, tone);\n\n return {\n ...styles.default,\n textTransform: casingOverride,\n transition: 'all 0.2s ease-in-out',\n padding: '12px 24px',\n\n '&:hover': { ...styles.hover },\n '&:focus': {\n outline: 'none', // Removes the focus ring on click\n },\n // focus visible so that the focus ring only shows for keyboard users\n '&:focus-visible': { ...styles.focus },\n '&:active': { ...styles.press },\n '&:disabled': { ...styles.disabled, cursor: 'not-allowed' },\n };\n});\n\nconst MUI_VARIANT_MAP = {\n primary: 'contained',\n secondary: 'outlined',\n tertiary: 'text',\n};\n\nexport const Button = ({\n children,\n className,\n disabled = false,\n fdKey,\n form,\n fullWidth = false,\n href,\n casingOverride = 'none',\n type = 'button',\n variant = 'primary',\n tone,\n target,\n startIcon,\n endIcon,\n onClick,\n onKeyDown,\n ...rest\n}: ButtonProps): JSX.Element => {\n return (\n <StyledButton\n disableRipple\n casingOverride={casingOverride}\n className={className}\n customVariant={variant}\n data-fd={fdKey}\n disabled={disabled}\n endIcon={endIcon}\n form={form}\n fullWidth={fullWidth}\n href={href}\n startIcon={startIcon}\n // @ts-expect-error - target is not a valid prop for MuiButton\n target={target}\n tone={tone}\n type={type}\n variant={MUI_VARIANT_MAP[variant] as MuiButtonProps['variant']}\n {...rest}\n onClick={onClick}\n onKeyDown={onKeyDown}\n >\n {children}\n </StyledButton>\n );\n};\n\nexport default Button;\n"],"names":["StyledButton","styled","MuiButton","shouldForwardProp","prop","includes","theme","customVariant","tone","casingOverride","styles","getButtonStyles","default","textTransform","transition","padding","hover","outline","focus","press","disabled","cursor","MUI_VARIANT_MAP","primary","secondary","tertiary","Button","children","className","fdKey","form","fullWidth","href","type","variant","target","startIcon","endIcon","onClick","onKeyDown","rest","_jsx","disableRipple"],"mappings":"sOA2BA,MAAMA,EAAeC,EAAMA,OAACC,EAAW,CACrCC,kBAAoBC,IAAU,CAAC,iBAAkB,gBAAiB,QAAQC,SAASD,IADhEH,EAEkE,EACrFK,QACAC,gBAAgB,UAChBC,OAAO,QACPC,iBAAiB,WAEjB,MAAMC,EAASC,EAAgBL,EAAOC,EAAeC,GAEnD,MAAO,IACJE,EAAOE,QACVC,cAAeJ,EACfK,WAAY,uBACZC,QAAS,YAET,UAAW,IAAKL,EAAOM,OACvB,UAAW,CACTC,QAAS,QAGX,kBAAmB,IAAKP,EAAOQ,OAC/B,WAAY,IAAKR,EAAOS,OACxB,aAAc,IAAKT,EAAOU,SAAUC,OAAQ,mBAI1CC,EAAkB,CACtBC,QAAS,YACTC,UAAW,WACXC,SAAU,QAGCC,EAAS,EACpBC,WACAC,YACAR,YAAW,EACXS,QACAC,OACAC,aAAY,EACZC,OACAvB,iBAAiB,OACjBwB,OAAO,SACPC,UAAU,UACV1B,OACA2B,SACAC,YACAC,UACAC,UACAC,eACGC,KAGDC,MAACzC,GACC0C,eAAa,EACbjC,eAAgBA,EAChBmB,UAAWA,EACXrB,cAAe2B,EAAO,UACbL,EACTT,SAAUA,EACViB,QAASA,EACTP,KAAMA,EACNC,UAAWA,EACXC,KAAMA,EACNI,UAAWA,EAEXD,OAAQA,EACR3B,KAAMA,EACNyB,KAAMA,EACNC,QAASZ,EAAgBY,MACrBM,EACJF,QAASA,EACTC,UAAWA,EAASZ,SAEnBA"}
@@ -0,0 +1,26 @@
1
+ import react__default from 'react';
2
+ import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
3
+ import { ButtonType, ButtonTone } from './getButtonStyles.js';
4
+
5
+ type CasingOverride = 'capitalize' | 'lowercase' | 'none' | 'uppercase';
6
+ interface ButtonProps extends Omit<ButtonProps$1, 'variant'> {
7
+ className?: string;
8
+ children: react__default.ReactNode;
9
+ disabled?: boolean;
10
+ form?: string;
11
+ fullWidth?: boolean;
12
+ casingOverride?: CasingOverride;
13
+ type?: 'button' | 'reset' | 'submit';
14
+ fdKey: string;
15
+ variant?: ButtonType;
16
+ tone?: ButtonTone;
17
+ target?: '_blank';
18
+ startIcon?: react__default.ReactNode;
19
+ endIcon?: react__default.ReactNode;
20
+ onClick?: () => void;
21
+ onKeyDown?: (e: react__default.KeyboardEvent) => void;
22
+ }
23
+ declare const Button: ({ children, className, disabled, fdKey, form, fullWidth, href, casingOverride, type, variant, tone, target, startIcon, endIcon, onClick, onKeyDown, ...rest }: ButtonProps) => JSX.Element;
24
+
25
+ export { Button, Button as default };
26
+ export type { ButtonProps };
@@ -0,0 +1,2 @@
1
+ import{jsx as e}from"react/jsx-runtime";import"react";import t from"@mui/material/Button";import{styled as r}from"@mui/material/styles";import o from"./getButtonStyles.js";const a=r(t,{shouldForwardProp:e=>!["casingOverride","customVariant","tone"].includes(e)})((({theme:e,customVariant:t="primary",tone:r="brand",casingOverride:a="none"})=>{const n=o(e,t,r);return{...n.default,textTransform:a,transition:"all 0.2s ease-in-out",padding:"12px 24px","&:hover":{...n.hover},"&:focus":{outline:"none"},"&:focus-visible":{...n.focus},"&:active":{...n.press},"&:disabled":{...n.disabled,cursor:"not-allowed"}}})),n={primary:"contained",secondary:"outlined",tertiary:"text"},i=({children:t,className:r,disabled:o=!1,fdKey:i,form:s,fullWidth:d=!1,href:l,casingOverride:c="none",type:m="button",variant:u="primary",tone:f,target:p,startIcon:y,endIcon:h,onClick:v,onKeyDown:b,...g})=>e(a,{disableRipple:!0,casingOverride:c,className:r,customVariant:u,"data-fd":i,disabled:o,endIcon:h,form:s,fullWidth:d,href:l,startIcon:y,target:p,tone:f,type:m,variant:n[u],...g,onClick:v,onKeyDown:b,children:t});export{i as Button,i as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/atoms/Button/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport MuiButton, { type ButtonProps as MuiButtonProps } from '@mui/material/Button';\nimport { styled } from '@mui/material/styles';\n\nimport getButtonStyles, { type ButtonTone, type ButtonType } from './getButtonStyles';\n\ntype CasingOverride = 'capitalize' | 'lowercase' | 'none' | 'uppercase';\n\nexport interface ButtonProps extends Omit<MuiButtonProps, 'variant'> {\n className?: string;\n children: React.ReactNode;\n disabled?: boolean;\n form?: string;\n fullWidth?: boolean;\n casingOverride?: CasingOverride;\n type?: 'button' | 'reset' | 'submit';\n fdKey: string;\n variant?: ButtonType;\n tone?: ButtonTone;\n target?: '_blank';\n startIcon?: React.ReactNode;\n endIcon?: React.ReactNode;\n onClick?: () => void;\n onKeyDown?: (e: React.KeyboardEvent) => void;\n}\n\nconst StyledButton = styled(MuiButton, {\n shouldForwardProp: (prop) => !['casingOverride', 'customVariant', 'tone'].includes(prop as string),\n})<{ casingOverride?: CasingOverride; customVariant?: ButtonType; tone?: ButtonTone }>(({\n theme,\n customVariant = 'primary',\n tone = 'brand',\n casingOverride = 'none',\n}) => {\n const styles = getButtonStyles(theme, customVariant, tone);\n\n return {\n ...styles.default,\n textTransform: casingOverride,\n transition: 'all 0.2s ease-in-out',\n padding: '12px 24px',\n\n '&:hover': { ...styles.hover },\n '&:focus': {\n outline: 'none', // Removes the focus ring on click\n },\n // focus visible so that the focus ring only shows for keyboard users\n '&:focus-visible': { ...styles.focus },\n '&:active': { ...styles.press },\n '&:disabled': { ...styles.disabled, cursor: 'not-allowed' },\n };\n});\n\nconst MUI_VARIANT_MAP = {\n primary: 'contained',\n secondary: 'outlined',\n tertiary: 'text',\n};\n\nexport const Button = ({\n children,\n className,\n disabled = false,\n fdKey,\n form,\n fullWidth = false,\n href,\n casingOverride = 'none',\n type = 'button',\n variant = 'primary',\n tone,\n target,\n startIcon,\n endIcon,\n onClick,\n onKeyDown,\n ...rest\n}: ButtonProps): JSX.Element => {\n return (\n <StyledButton\n disableRipple\n casingOverride={casingOverride}\n className={className}\n customVariant={variant}\n data-fd={fdKey}\n disabled={disabled}\n endIcon={endIcon}\n form={form}\n fullWidth={fullWidth}\n href={href}\n startIcon={startIcon}\n // @ts-expect-error - target is not a valid prop for MuiButton\n target={target}\n tone={tone}\n type={type}\n variant={MUI_VARIANT_MAP[variant] as MuiButtonProps['variant']}\n {...rest}\n onClick={onClick}\n onKeyDown={onKeyDown}\n >\n {children}\n </StyledButton>\n );\n};\n\nexport default Button;\n"],"names":["StyledButton","styled","MuiButton","shouldForwardProp","prop","includes","theme","customVariant","tone","casingOverride","styles","getButtonStyles","default","textTransform","transition","padding","hover","outline","focus","press","disabled","cursor","MUI_VARIANT_MAP","primary","secondary","tertiary","Button","children","className","fdKey","form","fullWidth","href","type","variant","target","startIcon","endIcon","onClick","onKeyDown","rest","_jsx","disableRipple"],"mappings":"4KA2BA,MAAMA,EAAeC,EAAOC,EAAW,CACrCC,kBAAoBC,IAAU,CAAC,iBAAkB,gBAAiB,QAAQC,SAASD,IADhEH,EAEkE,EACrFK,QACAC,gBAAgB,UAChBC,OAAO,QACPC,iBAAiB,WAEjB,MAAMC,EAASC,EAAgBL,EAAOC,EAAeC,GAEnD,MAAO,IACJE,EAAOE,QACVC,cAAeJ,EACfK,WAAY,uBACZC,QAAS,YAET,UAAW,IAAKL,EAAOM,OACvB,UAAW,CACTC,QAAS,QAGX,kBAAmB,IAAKP,EAAOQ,OAC/B,WAAY,IAAKR,EAAOS,OACxB,aAAc,IAAKT,EAAOU,SAAUC,OAAQ,mBAI1CC,EAAkB,CACtBC,QAAS,YACTC,UAAW,WACXC,SAAU,QAGCC,EAAS,EACpBC,WACAC,YACAR,YAAW,EACXS,QACAC,OACAC,aAAY,EACZC,OACAvB,iBAAiB,OACjBwB,OAAO,SACPC,UAAU,UACV1B,OACA2B,SACAC,YACAC,UACAC,UACAC,eACGC,KAGDC,EAACzC,GACC0C,eAAa,EACbjC,eAAgBA,EAChBmB,UAAWA,EACXrB,cAAe2B,EAAO,UACbL,EACTT,SAAUA,EACViB,QAASA,EACTP,KAAMA,EACNC,UAAWA,EACXC,KAAMA,EACNI,UAAWA,EAEXD,OAAQA,EACR3B,KAAMA,EACNyB,KAAMA,EACNC,QAASZ,EAAgBY,MACrBM,EACJF,QAASA,EACTC,UAAWA,EAASZ,SAEnBA"}