@skodaflow/web-library 8.0.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/cjs/components/advancedTable/agGrid.js +1 -1
- package/cjs/components/advancedTable/agGrid.js.map +1 -1
- package/cjs/components/advancedTable/index.d.ts +1 -0
- package/cjs/components/carousel/Carousel.js +1 -1
- package/cjs/components/carousel/Carousel.js.map +1 -1
- package/cjs/components/carousel/Navigation.js +1 -1
- package/cjs/components/carousel/Navigation.js.map +1 -1
- package/cjs/components/carousel/Pagination.js +1 -1
- package/cjs/components/carousel/Pagination.js.map +1 -1
- package/cjs/components/carousel/Slide.js +1 -1
- package/cjs/components/carousel/Slide.js.map +1 -1
- package/cjs/components/playPauseButton/PlayPauseButton.d.ts +0 -2
- package/cjs/components/playPauseButton/PlayPauseButton.js.map +1 -1
- package/cjs/components/quickLink/QuickLink.js +1 -1
- package/cjs/components/quickLink/QuickLink.js.map +1 -1
- package/cjs/index.js +1 -1
- package/cjs/materialui/avatar/avatar.theme.js +1 -1
- package/cjs/materialui/avatar/avatar.theme.js.map +1 -1
- package/cjs/materialui/chip/chip.theme.js +1 -1
- package/cjs/materialui/chip/chip.theme.js.map +1 -1
- package/cjs/materialui/datepicker/PickersActionBar.js +1 -1
- package/cjs/materialui/datepicker/PickersActionBar.js.map +1 -1
- package/cjs/materialui/datepicker/PickersCalendarHeader.js +1 -1
- package/cjs/materialui/datepicker/PickersCalendarHeader.js.map +1 -1
- package/cjs/materialui/datepicker/datecalendar.theme.js.map +1 -1
- package/cjs/materialui/datepicker/datepicker.theme.d.ts +1 -0
- package/cjs/materialui/datepicker/datepicker.theme.js +1 -1
- package/cjs/materialui/datepicker/datepicker.theme.js.map +1 -1
- package/cjs/materialui/datepicker/datetimepicker.theme.d.ts +1 -0
- package/cjs/materialui/datepicker/datetimepicker.theme.js +1 -1
- package/cjs/materialui/datepicker/datetimepicker.theme.js.map +1 -1
- package/cjs/materialui/datepicker/daycalendar.theme.js +1 -1
- package/cjs/materialui/datepicker/daycalendar.theme.js.map +1 -1
- package/cjs/materialui/datepicker/index.d.ts +2 -2
- package/cjs/materialui/datepicker/pickerslayout.theme.d.ts +3 -0
- package/cjs/materialui/datepicker/pickerslayout.theme.js +2 -0
- package/cjs/materialui/datepicker/pickerslayout.theme.js.map +1 -0
- package/cjs/materialui/datepicker/timepicker.theme.d.ts +1 -0
- package/cjs/materialui/datepicker/timepicker.theme.js +1 -1
- package/cjs/materialui/datepicker/timepicker.theme.js.map +1 -1
- package/cjs/materialui/dialog/DialogTitle.d.ts +1 -1
- package/cjs/materialui/dialog/DialogTitle.js +1 -1
- package/cjs/materialui/dialog/DialogTitle.js.map +1 -1
- package/cjs/materialui/dialog/dialogTitle.theme.js +1 -1
- package/cjs/materialui/dialog/dialogTitle.theme.js.map +1 -1
- package/cjs/materialui/slider/slider.theme.js +1 -1
- package/cjs/materialui/slider/slider.theme.js.map +1 -1
- package/cjs/materialui/tabs/TabsScrollButton.js +1 -1
- package/cjs/materialui/tabs/TabsScrollButton.js.map +1 -1
- package/cjs/materialui/textfield/FormHelperText.js +1 -1
- package/cjs/materialui/textfield/FormHelperText.js.map +1 -1
- package/cjs/materialui/theme/theme.extensions.d.ts +10 -1
- package/cjs/materialui/theme/theme.js +1 -1
- package/cjs/materialui/theme/theme.js.map +1 -1
- package/cjs/materialui/theme/theme.zIndex.d.ts +1 -0
- package/cjs/materialui/theme/theme.zIndex.js +1 -1
- package/cjs/materialui/theme/theme.zIndex.js.map +1 -1
- package/cjs/utils/rgbaToRgb/index.d.ts +1 -0
- package/cjs/utils/rgbaToRgb/rgbaToRgb.d.ts +6 -0
- package/components/advancedTable/agGrid.js +1 -1
- package/components/advancedTable/agGrid.js.map +1 -1
- package/components/advancedTable/index.d.ts +1 -0
- package/components/carousel/Carousel.js +1 -1
- package/components/carousel/Carousel.js.map +1 -1
- package/components/carousel/Navigation.js +1 -1
- package/components/carousel/Navigation.js.map +1 -1
- package/components/carousel/Pagination.js +1 -1
- package/components/carousel/Pagination.js.map +1 -1
- package/components/carousel/Slide.js +1 -1
- package/components/carousel/Slide.js.map +1 -1
- package/components/playPauseButton/PlayPauseButton.d.ts +0 -2
- package/components/playPauseButton/PlayPauseButton.js.map +1 -1
- package/components/quickLink/QuickLink.js +1 -1
- package/components/quickLink/QuickLink.js.map +1 -1
- package/index.js +1 -1
- package/materialui/avatar/avatar.theme.js +1 -1
- package/materialui/avatar/avatar.theme.js.map +1 -1
- package/materialui/chip/chip.theme.js +1 -1
- package/materialui/chip/chip.theme.js.map +1 -1
- package/materialui/datepicker/PickersActionBar.js +1 -1
- package/materialui/datepicker/PickersActionBar.js.map +1 -1
- package/materialui/datepicker/PickersCalendarHeader.js +1 -1
- package/materialui/datepicker/PickersCalendarHeader.js.map +1 -1
- package/materialui/datepicker/datecalendar.theme.js.map +1 -1
- package/materialui/datepicker/datepicker.theme.d.ts +1 -0
- package/materialui/datepicker/datepicker.theme.js +1 -1
- package/materialui/datepicker/datepicker.theme.js.map +1 -1
- package/materialui/datepicker/datetimepicker.theme.d.ts +1 -0
- package/materialui/datepicker/datetimepicker.theme.js +1 -1
- package/materialui/datepicker/datetimepicker.theme.js.map +1 -1
- package/materialui/datepicker/daycalendar.theme.js +1 -1
- package/materialui/datepicker/daycalendar.theme.js.map +1 -1
- package/materialui/datepicker/index.d.ts +2 -2
- package/materialui/datepicker/pickerslayout.theme.d.ts +3 -0
- package/materialui/datepicker/pickerslayout.theme.js +2 -0
- package/materialui/datepicker/pickerslayout.theme.js.map +1 -0
- package/materialui/datepicker/timepicker.theme.d.ts +1 -0
- package/materialui/datepicker/timepicker.theme.js +1 -1
- package/materialui/datepicker/timepicker.theme.js.map +1 -1
- package/materialui/dialog/DialogTitle.d.ts +1 -1
- package/materialui/dialog/DialogTitle.js +1 -1
- package/materialui/dialog/DialogTitle.js.map +1 -1
- package/materialui/dialog/dialogTitle.theme.js +1 -1
- package/materialui/dialog/dialogTitle.theme.js.map +1 -1
- package/materialui/slider/slider.theme.js +1 -1
- package/materialui/slider/slider.theme.js.map +1 -1
- package/materialui/tabs/TabsScrollButton.js +1 -1
- package/materialui/tabs/TabsScrollButton.js.map +1 -1
- package/materialui/textfield/FormHelperText.js +1 -1
- package/materialui/textfield/FormHelperText.js.map +1 -1
- package/materialui/theme/theme.extensions.d.ts +10 -1
- package/materialui/theme/theme.js +1 -1
- package/materialui/theme/theme.js.map +1 -1
- package/materialui/theme/theme.zIndex.d.ts +1 -0
- package/materialui/theme/theme.zIndex.js +1 -1
- package/materialui/theme/theme.zIndex.js.map +1 -1
- package/package.json +1 -1
- package/utils/rgbaToRgb/index.d.ts +1 -0
- package/utils/rgbaToRgb/rgbaToRgb.d.ts +6 -0
- package/cjs/materialui/textfield/textfield.component.d.ts +0 -3
- package/materialui/textfield/textfield.component.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.theme.js","sources":["../../../../../src/materialui/avatar/avatar.theme.tsx"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { UserFilledIcon } from '@/src/components/icon/filled/UserFilledIcon';\nimport { getFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\n\nexport const flowAvatar: Components<Theme>['MuiAvatar'] = {\n defaultProps: {\n variant: 'circular',\n size: 'md',\n // default avatar\n children: <UserFilledIcon />,\n },\n styleOverrides: {\n root: ({ theme, ownerState }) => ({\n overflow: 'visible',\n color: theme.palette.brand.tertiary,\n backgroundColor: theme.palette.brand.quarternary,\n '&:has(.MuiAvatar-img)': {\n color: theme.palette.onSurface.os500,\n backgroundColor: theme.palette.surface.primary,\n ...((!ownerState.border || ownerState.border === 'auto') && {\n border: `1px solid currentColor`,\n }),\n },\n // font, rest is set in the variants bellow\n letterSpacing: '0.02em',\n fontWeight: '700',\n // optional border\n ...(ownerState.border === 'on' && {\n border: `1px solid currentColor`,\n }),\n // custom 'disabled' state\n ...(ownerState.disabled && {\n '&, &:has(.MuiAvatar-img)': {\n color: theme.palette.disabled.tertiary,\n backgroundColor: theme.palette.surface.secondary,\n },\n }),\n // avatar img\n '& .MuiAvatar-img': {\n borderRadius: 'inherit',\n // custom 'disabled' state\n ...(ownerState.disabled && {\n opacity: '0.65',\n }),\n },\n // button\n '&.MuiButtonBase-root': {\n // focused style\n ...getFocusRingStyle(theme, true, 0),\n // pseudo background for hover\n ':after': {\n display: 'block',\n content: '\"\"',\n position: 'absolute',\n inset: '0',\n borderRadius: 'inherit',\n backgroundColor: theme.palette.transparent.primary,\n transition: 'opacity 0.3s ease-out',\n opacity: '0',\n },\n // interactive style\n ...getInteractiveStyle(\n {\n '&:after': {\n opacity: '0',\n },\n },\n {\n '&:after': {\n opacity: '1',\n },\n },\n ),\n },\n }),\n rounded: {\n // rounded variant is used in listItemAvatar\n borderRadius: '4px',\n },\n },\n variants: [\n // size property\n {\n props: { size: 'sm' },\n style: {\n width: '24px',\n height: '24px',\n lineHeight: '24px',\n fontSize: '10px',\n },\n },\n {\n props: { size: 'md' },\n style: {\n width: '44px',\n height: '44px',\n lineHeight: '44px',\n fontSize: '14px',\n },\n },\n {\n props: { size: 'lg' },\n style: {\n width: '56px',\n height: '56px',\n lineHeight: '56px',\n fontSize: '20px',\n },\n },\n ],\n};\n"],"names":["flowAvatar","defaultProps","variant","size","children","_jsx","UserFilledIcon","styleOverrides","root","theme","ownerState","Object","assign","overflow","color","palette","brand","tertiary","backgroundColor","quarternary","onSurface","os500","surface","primary","border","letterSpacing","fontWeight","disabled","secondary","borderRadius","opacity","getFocusRingStyle","display","content","position","inset","transparent","transition","getInteractiveStyle","rounded","variants","props","style","width","height","lineHeight","fontSize"],"mappings":"uMAMO,MAAMA,EAA6C,CACxDC,aAAc,CACZC,QAAS,WACTC,KAAM,KAENC,SAAUC,EAAAA,IAACC,EAAAA,eAAc,KAE3BC,eAAgB,CACdC,KAAM,EAAGC,QAAOC,gBAAiBC,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAC/BC,SAAU,UACVC,MAAOL,EAAMM,QAAQC,MAAMC,SAC3BC,gBAAiBT,EAAMM,QAAQC,MAAMG,YACrC,wBAAuBR,OAAAC,OAAA,CACrBE,MAAOL,EAAMM,QAAQK,UAAUC,MAC/BH,gBAAiBT,EAAMM,QAAQO,QAAQC,WACjCb,EAAWc,QAAgC,SAAtBd,EAAWc,SAAsB,CAC1DA,OAAQ,2BAIZC,cAAe,SACfC,WAAY,OAEc,OAAtBhB,EAAWc,QAAmB,CAChCA,OAAQ,2BAGNd,EAAWiB,UAAY,CACzB,2BAA4B,CAC1Bb,MAAOL,EAAMM,QAAQY,SAASV,SAC9BC,gBAAiBT,EAAMM,QAAQO,QAAQM,aAEzC,CAEF,mBAAkBjB,OAAAC,OAAA,CAChBiB,aAAc,WAEVnB,EAAWiB,UAAY,CACzBG,QAAS,SAIb,uBAAsBnB,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAEjBmB,EAAAA,kBAAkBtB,GAAO,EAAM,IAAE,
|
|
1
|
+
{"version":3,"file":"avatar.theme.js","sources":["../../../../../src/materialui/avatar/avatar.theme.tsx"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { UserFilledIcon } from '@/src/components/icon/filled/UserFilledIcon';\nimport { getFocusRingStyle, updateFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\n\nexport const flowAvatar: Components<Theme>['MuiAvatar'] = {\n defaultProps: {\n variant: 'circular',\n size: 'md',\n // default avatar\n children: <UserFilledIcon />,\n },\n styleOverrides: {\n root: ({ theme, ownerState }) => ({\n overflow: 'visible',\n color: theme.palette.brand.tertiary,\n backgroundColor: theme.palette.brand.quarternary,\n '&:has(.MuiAvatar-img)': {\n color: theme.palette.onSurface.os500,\n backgroundColor: theme.palette.surface.primary,\n ...((!ownerState.border || ownerState.border === 'auto') && {\n border: `1px solid currentColor`,\n }),\n },\n // font, rest is set in the variants bellow\n letterSpacing: '0.02em',\n fontWeight: '700',\n // optional border\n ...(ownerState.border === 'on' && {\n border: `1px solid currentColor`,\n }),\n // custom 'disabled' state\n ...(ownerState.disabled && {\n '&, &:has(.MuiAvatar-img)': {\n color: theme.palette.disabled.tertiary,\n backgroundColor: theme.palette.surface.secondary,\n },\n }),\n // avatar img\n '& .MuiAvatar-img': {\n borderRadius: 'inherit',\n // custom 'disabled' state\n ...(ownerState.disabled && {\n opacity: '0.65',\n }),\n },\n // button\n '&.MuiButtonBase-root': {\n // focused style\n ...getFocusRingStyle(theme, true, 0),\n '&:has(.MuiAvatar-img)': {\n ...((!ownerState.border || ownerState.border === 'auto') && {\n ...updateFocusRingStyle(1),\n }),\n },\n ...(ownerState.border === 'on' && {\n ...updateFocusRingStyle(1),\n }),\n // pseudo background for hover\n ':after': {\n display: 'block',\n content: '\"\"',\n position: 'absolute',\n inset: '0',\n borderRadius: 'inherit',\n backgroundColor: theme.palette.transparent.primary,\n transition: 'opacity 0.3s ease-out',\n opacity: '0',\n },\n // interactive style\n ...getInteractiveStyle(\n {\n '&:after': {\n opacity: '0',\n },\n },\n {\n '&:after': {\n opacity: '1',\n },\n },\n ),\n },\n }),\n rounded: {\n // rounded variant is used in listItemAvatar\n borderRadius: '4px',\n },\n },\n variants: [\n // size property\n {\n props: { size: 'sm' },\n style: {\n width: '24px',\n height: '24px',\n lineHeight: '24px',\n fontSize: '10px',\n },\n },\n {\n props: { size: 'md' },\n style: {\n width: '44px',\n height: '44px',\n lineHeight: '44px',\n fontSize: '14px',\n },\n },\n {\n props: { size: 'lg' },\n style: {\n width: '56px',\n height: '56px',\n lineHeight: '56px',\n fontSize: '20px',\n },\n },\n ],\n};\n"],"names":["flowAvatar","defaultProps","variant","size","children","_jsx","UserFilledIcon","styleOverrides","root","theme","ownerState","Object","assign","overflow","color","palette","brand","tertiary","backgroundColor","quarternary","onSurface","os500","surface","primary","border","letterSpacing","fontWeight","disabled","secondary","borderRadius","opacity","getFocusRingStyle","updateFocusRingStyle","display","content","position","inset","transparent","transition","getInteractiveStyle","rounded","variants","props","style","width","height","lineHeight","fontSize"],"mappings":"uMAMO,MAAMA,EAA6C,CACxDC,aAAc,CACZC,QAAS,WACTC,KAAM,KAENC,SAAUC,EAAAA,IAACC,EAAAA,eAAc,KAE3BC,eAAgB,CACdC,KAAM,EAAGC,QAAOC,gBAAiBC,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAC/BC,SAAU,UACVC,MAAOL,EAAMM,QAAQC,MAAMC,SAC3BC,gBAAiBT,EAAMM,QAAQC,MAAMG,YACrC,wBAAuBR,OAAAC,OAAA,CACrBE,MAAOL,EAAMM,QAAQK,UAAUC,MAC/BH,gBAAiBT,EAAMM,QAAQO,QAAQC,WACjCb,EAAWc,QAAgC,SAAtBd,EAAWc,SAAsB,CAC1DA,OAAQ,2BAIZC,cAAe,SACfC,WAAY,OAEc,OAAtBhB,EAAWc,QAAmB,CAChCA,OAAQ,2BAGNd,EAAWiB,UAAY,CACzB,2BAA4B,CAC1Bb,MAAOL,EAAMM,QAAQY,SAASV,SAC9BC,gBAAiBT,EAAMM,QAAQO,QAAQM,aAEzC,CAEF,mBAAkBjB,OAAAC,OAAA,CAChBiB,aAAc,WAEVnB,EAAWiB,UAAY,CACzBG,QAAS,SAIb,uBAAsBnB,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAEjBmB,EAAAA,kBAAkBtB,GAAO,EAAM,IAAE,CACpC,wBAAuBE,OAAAC,OAAA,KACfF,EAAWc,QAAgC,SAAtBd,EAAWc,0BACjCQ,uBAAqB,OAGF,OAAtBtB,EAAWc,QAAeb,OAAAC,OAAA,CAAA,EACzBoB,EAAAA,qBAAqB,KACxB,CAEF,SAAU,CACRC,QAAS,QACTC,QAAS,KACTC,SAAU,WACVC,MAAO,IACPP,aAAc,UACdX,gBAAiBT,EAAMM,QAAQsB,YAAYd,QAC3Ce,WAAY,wBACZR,QAAS,OAGRS,EAAAA,oBACD,CACE,UAAW,CACTT,QAAS,MAGb,CACE,UAAW,CACTA,QAAS,UAMnBU,QAAS,CAEPX,aAAc,QAGlBY,SAAU,CAER,CACEC,MAAO,CAAEvC,KAAM,MACfwC,MAAO,CACLC,MAAO,OACPC,OAAQ,OACRC,WAAY,OACZC,SAAU,SAGd,CACEL,MAAO,CAAEvC,KAAM,MACfwC,MAAO,CACLC,MAAO,OACPC,OAAQ,OACRC,WAAY,OACZC,SAAU,SAGd,CACEL,MAAO,CAAEvC,KAAM,MACfwC,MAAO,CACLC,MAAO,OACPC,OAAQ,OACRC,WAAY,OACZC,SAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("../../components/icon/stroke/CloseIcon.js"),o=require("../../components/focusring/focusring.js"),t=require("../button/interactive.js");function a(e,r){return Object.assign(Object.assign({},e),{"&.MuiButtonBase-root":Object.assign({},t.getInteractiveStyle(e,r))})}function n(e,r,o,t){return"outlined"===r?{backgroundColor:t?e.palette.transparent.secondary:"transparent",color:o,borderColor:o}:{backgroundColor:o,color:e.palette.onSurface.os0,borderColor:o}}const i={defaultProps:{deleteIcon:e.jsx(r.CloseIcon,{})},styleOverrides:{root:({theme:e,ownerState:r})=>{var t,i,s;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({position:"relative",height:"auto",minWidth:"0",padding:"5px 16px"},"small"===r.size&&{padding:"2px 12px"}),{textRendering:"geometricPrecision",textTransform:"none",fontSize:"16px",lineHeight:"20px",fontWeight:"400",letterSpacing:"0px",outline:"none",borderRadius:"1000px",textAlign:"center",transition:"transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out","&&.MuiButtonBase-root":{cursor:"pointer"},"&, &:active":Object.assign({boxShadow:"none"},(r.raised||(null===(t=r.className)||void 0===t?void 0:t.includes(".MuiChip-shadow")))&&{boxShadow:e.flowShadows.xs}),border:`1px solid ${e.palette.onSurface.os900}`}),a(Object.assign({backgroundColor:e.palette.surface.primary,color:e.palette.text.primary,borderColor:e.palette.onSurface.os500},(r.raised||(null===(i=r.className)||void 0===i?void 0:i.includes(".MuiChip-shadow")))&&{backgroundColor:e.palette.background.primary}),Object.assign({backgroundColor:e.palette.surface.secondary,color:e.palette.text.primary,borderColor:e.palette.onSurface.os500},(r.raised||(null===(s=r.className)||void 0===s?void 0:s.includes(".MuiChip-shadow")))&&{backgroundColor:e.palette.surface.primary}))),"transparent"===r.variant&&Object.assign({},a({backgroundColor:e.palette.transparent.primary},{backgroundColor:e.palette.transparent.secondary}))),"secondary"===r.color&&"outlined"!==r.variant&&Object.assign({},a({backgroundColor:e.palette.secondary.main,color:e.palette.common.white,borderColor:e.palette.secondary.main},{backgroundColor:e.palette.secondary.dark,color:e.palette.common.white,borderColor:e.palette.secondary.dark}))),"error"===r.color&&Object.assign({},a(Object.assign({},n(e,r.variant,e.palette.error.main)),Object.assign({},n(e,r.variant,e.palette.error.dark,!0))))),"warning"===r.color&&Object.assign({},a(Object.assign({},n(e,r.variant,e.palette.warning.main)),Object.assign({},n(e,r.variant,e.palette.warning.dark,!0))))),"info"===r.color&&Object.assign({},a(Object.assign({},n(e,r.variant,e.palette.info.main)),Object.assign({},n(e,r.variant,e.palette.info.dark,!0))))),(r.isSelected||["success","primary"].includes(r.color))&&Object.assign(Object.assign({borderWidth:"2px",padding:"4px 15px"},"small"===r.size&&{padding:"1px 11px"}),a("dark"===e.palette.mode?{backgroundColor:e.palette.onSurface.os800,color:e.palette.brand.secondary,borderColor:e.palette.brand.secondary}:{backgroundColor:e.palette.brand.quarternary,color:e.palette.brand.primary,borderColor:e.palette.brand.primary},"dark"===e.palette.mode?{backgroundColor:e.palette.onSurface.os800,color:e.palette.brandHover.secondary,borderColor:e.palette.brandHover.secondary}:{backgroundColor:e.palette.brand.quarternary,color:e.palette.brandHover.primary,borderColor:e.palette.brandHover.primary}))),{"&.Mui-disabled":Object.assign({opacity:"1",userSelect:"none",color:e.palette.disabled.primary,backgroundColor:e.palette.surface.primary,borderColor:e.palette.disabled.primary},"transparent"===r.variant&&{backgroundColor:e.palette.transparent.primary})}),o.getFocusRingStyle(e,!0,1)),(r.isSelected||["success","primary"].includes(r.color))&&Object.assign({},o.updateFocusRingStyle(2))),{"& .count":Object.assign(Object.assign({},"dark"===e.palette.mode?{backgroundColor:e.palette.brand.secondary,color:e.palette.onSurface.os900}:{backgroundColor:e.palette.brand.primary,color:e.palette.common.white}),{minWidth:"20px",height:"20px",borderRadius:"20px",paddingLeft:"4px",paddingRight:"4px",textAlign:"center",marginLeft:"10px",fontSize:"14px",lineHeight:"20px",fontWeight:"700","& + .MuiChip-deleteIcon":{marginLeft:"5px"}}),"& .chevron-down, & .chevron-up, & .MuiSvgIcon-root:last-child":{fontSize:"17px",marginRight:"0",marginLeft:"10px"},"&.chevron-down.isOpen, & .MuiSvgIcon-root:last-child.isOpen":{transform:"rotate(180deg)"}})},icon:{"&, &:hover":{color:"currentColor"},fontSize:"17px",marginRight:"10px",marginLeft:"0"},deleteIcon:{"&, &:hover":{color:"currentColor"},fontSize:"17px",marginRight:"0",marginLeft:"10px"},label:{display:"inline-flex",alignItems:"center",justifyContent:"flex-start",padding:"0"}}};exports.flowChip=i;
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("../../components/icon/stroke/CloseIcon.js"),o=require("../../components/focusring/focusring.js"),t=require("../button/interactive.js");function a(e,r){return Object.assign(Object.assign({},e),{"&.MuiButtonBase-root":Object.assign({},t.getInteractiveStyle(e,r))})}function n(e,r,o,t){return"outlined"===r?{backgroundColor:t?e.palette.transparent.secondary:"transparent",color:o,borderColor:o}:{backgroundColor:o,color:e.palette.onSurface.os0,borderColor:o}}const i={defaultProps:{deleteIcon:e.jsx(r.CloseIcon,{})},styleOverrides:{root:({theme:e,ownerState:r})=>{var t,i,s;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({position:"relative",height:"auto",minWidth:"0",padding:"5px 16px"},"small"===r.size&&{padding:"2px 12px"}),{textRendering:"geometricPrecision",textTransform:"none",fontSize:"16px",lineHeight:"20px",fontWeight:"400",letterSpacing:"0px",outline:"none",borderRadius:"1000px",textAlign:"center",transition:"transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out","&&.MuiButtonBase-root":{cursor:"pointer"},"&, &:active":Object.assign({boxShadow:"none"},(r.raised||(null===(t=r.className)||void 0===t?void 0:t.includes(".MuiChip-shadow")))&&{boxShadow:e.flowShadows.xs}),border:`1px solid ${e.palette.onSurface.os900}`}),a(Object.assign({backgroundColor:e.palette.surface.primary,color:e.palette.text.primary,borderColor:e.palette.onSurface.os500},(r.raised||(null===(i=r.className)||void 0===i?void 0:i.includes(".MuiChip-shadow")))&&{backgroundColor:e.palette.background.primary}),Object.assign({backgroundColor:e.palette.surface.secondary,color:e.palette.text.primary,borderColor:e.palette.onSurface.os500},(r.raised||(null===(s=r.className)||void 0===s?void 0:s.includes(".MuiChip-shadow")))&&{backgroundColor:e.palette.surface.primary}))),"transparent"===r.variant&&Object.assign({},a({backgroundColor:e.palette.transparent.primary},{backgroundColor:e.palette.transparent.secondary}))),"secondary"===r.color&&"outlined"!==r.variant&&Object.assign({},a({backgroundColor:e.palette.secondary.main,color:e.palette.common.white,borderColor:e.palette.secondary.main},{backgroundColor:e.palette.secondary.dark,color:e.palette.common.white,borderColor:e.palette.secondary.dark}))),"error"===r.color&&Object.assign({},a(Object.assign({},n(e,r.variant,e.palette.error.main)),Object.assign({},n(e,r.variant,e.palette.error.dark,!0))))),"warning"===r.color&&Object.assign({},a(Object.assign({},n(e,r.variant,e.palette.warning.main)),Object.assign({},n(e,r.variant,e.palette.warning.dark,!0))))),"info"===r.color&&Object.assign({},a(Object.assign({},n(e,r.variant,e.palette.info.main)),Object.assign({},n(e,r.variant,e.palette.info.dark,!0))))),(r.isSelected||["success","primary"].includes(r.color))&&Object.assign(Object.assign({borderWidth:"2px",padding:"4px 15px"},"small"===r.size&&{padding:"1px 11px"}),a("dark"===e.palette.mode?{backgroundColor:e.palette.onSurface.os800,color:e.palette.brand.secondary,borderColor:e.palette.brand.secondary}:{backgroundColor:e.palette.brand.quarternary,color:e.palette.brand.primary,borderColor:e.palette.brand.primary},"dark"===e.palette.mode?{backgroundColor:e.palette.onSurface.os800,color:e.palette.brandHover.secondary,borderColor:e.palette.brandHover.secondary}:{backgroundColor:e.palette.brand.quarternary,color:e.palette.brandHover.primary,borderColor:e.palette.brandHover.primary}))),{"&.Mui-disabled":Object.assign({opacity:"1",userSelect:"none",color:e.palette.disabled.primary,backgroundColor:e.palette.surface.primary,borderColor:e.palette.disabled.primary},"transparent"===r.variant&&{backgroundColor:e.palette.transparent.primary})}),o.getFocusRingStyle(e,!0,1)),(r.isSelected||["success","primary"].includes(r.color))&&Object.assign({},o.updateFocusRingStyle(2))),{"& .count":Object.assign(Object.assign({},"dark"===e.palette.mode?{backgroundColor:e.palette.brand.secondary,color:e.palette.onSurface.os900}:{backgroundColor:e.palette.brand.primary,color:e.palette.common.white}),{minWidth:"20px",height:"20px",borderRadius:"20px",paddingLeft:"4px",paddingRight:"4px",textAlign:"center",marginLeft:"10px",fontSize:"14px",lineHeight:"20px",fontWeight:"700","& + .MuiChip-deleteIcon":{marginLeft:"5px"}}),"& .chevron-down, & .chevron-up, & .MuiSvgIcon-root:last-child":{fontSize:"17px",marginRight:"0",marginLeft:"10px"},"&.chevron-down.isOpen, & .MuiSvgIcon-root:last-child.isOpen":{transform:"rotate(180deg)"}})},icon:{"&, &:hover":{color:"currentColor"},fontSize:"17px",marginRight:"10px",marginLeft:"0"},deleteIcon:{"&, &:hover":{color:"currentColor"},fontSize:"17px",marginRight:"0",marginLeft:"10px"},label:{"&:has(> *)":{display:"inline-flex",alignItems:"center",justifyContent:"flex-start","& > div, & > span":{minWidth:"0",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},padding:"0"}}};exports.flowChip=i;
|
|
2
2
|
//# sourceMappingURL=chip.theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.theme.js","sources":["../../../../../src/materialui/chip/chip.theme.tsx"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { CSSObject, Theme } from '@mui/material';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\nimport { getFocusRingStyle, updateFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\n\n/**\n * Wrapper around getInteractiveStyle() function to provide interactive style\n * only for chip that is actually a button\n */\nfunction getChipInteractiveStyle(defaultStyle: CSSObject, hoverStyle: CSSObject): CSSObject {\n return {\n ...defaultStyle,\n '&.MuiButtonBase-root': {\n ...getInteractiveStyle(defaultStyle, hoverStyle),\n },\n };\n}\n\n/**\n * Return style for either outlined or filled variant. Used by deprecated semantic colors\n */\nfunction getVariantStyle(theme: Theme, variant: string, primaryColor: string, hover?: boolean): CSSObject {\n if (variant === 'outlined') {\n return {\n backgroundColor: hover ? theme.palette.transparent.secondary : 'transparent',\n color: primaryColor,\n borderColor: primaryColor,\n };\n } else {\n return {\n backgroundColor: primaryColor,\n color: theme.palette.onSurface.os0,\n borderColor: primaryColor,\n };\n }\n}\n\nexport const flowChip: Components<Theme>['MuiChip'] = {\n defaultProps: {\n deleteIcon: <CloseIcon />,\n },\n styleOverrides: {\n root: ({ theme, ownerState }) => ({\n position: 'relative',\n // proportions\n height: 'auto',\n minWidth: '0',\n padding: '5px 16px',\n // not recommended small variant\n ...(ownerState.size === 'small' && {\n padding: '2px 12px',\n }),\n // custom font size\n textRendering: 'geometricPrecision',\n textTransform: 'none',\n fontSize: '16px',\n lineHeight: '20px',\n fontWeight: '400',\n letterSpacing: '0px',\n outline: 'none',\n // 50% border radius without skewing ratio\n borderRadius: '1000px',\n textAlign: 'center',\n transition:\n 'transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out',\n // correct cursor if the chip is clickable button\n '&&.MuiButtonBase-root': {\n cursor: 'pointer',\n },\n // more important selector to overwrite default @mui styling\n '&, &:active': {\n boxShadow: 'none',\n // drop shadow variant (+ old API support)\n ...((ownerState.raised || ownerState.className?.includes('.MuiChip-shadow')) && {\n boxShadow: theme.flowShadows.xs,\n }),\n },\n // style (default 'filled' (solid) variant)\n border: `1px solid ${theme.palette.onSurface.os900}`,\n ...getChipInteractiveStyle(\n {\n backgroundColor: theme.palette.surface.primary,\n color: theme.palette.text.primary,\n borderColor: theme.palette.onSurface.os500,\n // drop shadow variant (+ old API support)\n ...((ownerState.raised || ownerState.className?.includes('.MuiChip-shadow')) && {\n backgroundColor: theme.palette.background.primary,\n }),\n },\n {\n backgroundColor: theme.palette.surface.secondary,\n color: theme.palette.text.primary,\n borderColor: theme.palette.onSurface.os500,\n // drop shadow variant (+ old API support)\n ...((ownerState.raised || ownerState.className?.includes('.MuiChip-shadow')) && {\n backgroundColor: theme.palette.surface.primary,\n }),\n },\n ),\n // transparent variant\n ...(ownerState.variant === 'transparent' && {\n ...getChipInteractiveStyle(\n {\n backgroundColor: theme.palette.transparent.primary,\n },\n {\n backgroundColor: theme.palette.transparent.secondary,\n },\n ),\n }),\n // deprecated secondary color\n ...(ownerState.color === 'secondary' &&\n ownerState.variant !== 'outlined' && {\n ...getChipInteractiveStyle(\n {\n backgroundColor: theme.palette.secondary.main,\n color: theme.palette.common.white,\n borderColor: theme.palette.secondary.main,\n },\n {\n backgroundColor: theme.palette.secondary.dark,\n color: theme.palette.common.white,\n borderColor: theme.palette.secondary.dark,\n },\n ),\n }),\n // deprecated semantic colors, used by Production team\n ...(ownerState.color === 'error' && {\n ...getChipInteractiveStyle(\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.error.main),\n },\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.error.dark, true),\n },\n ),\n }),\n ...(ownerState.color === 'warning' && {\n ...getChipInteractiveStyle(\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.warning.main),\n },\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.warning.dark, true),\n },\n ),\n }),\n ...(ownerState.color === 'info' && {\n ...getChipInteractiveStyle(\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.info.main),\n },\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.info.dark, true),\n },\n ),\n }),\n // selected chip\n ...((ownerState.isSelected || ['success', 'primary'].includes(ownerState.color)) && {\n borderWidth: '2px',\n // remove 1px border for each side\n padding: '4px 15px',\n ...(ownerState.size === 'small' && {\n padding: '1px 11px',\n }),\n ...getChipInteractiveStyle(\n theme.palette.mode === 'dark'\n ? {\n backgroundColor: theme.palette.onSurface.os800,\n color: theme.palette.brand.secondary,\n borderColor: theme.palette.brand.secondary,\n }\n : {\n backgroundColor: theme.palette.brand.quarternary,\n color: theme.palette.brand.primary,\n borderColor: theme.palette.brand.primary,\n },\n theme.palette.mode === 'dark'\n ? {\n backgroundColor: theme.palette.onSurface.os800,\n color: theme.palette.brandHover.secondary,\n borderColor: theme.palette.brandHover.secondary,\n }\n : {\n backgroundColor: theme.palette.brand.quarternary,\n color: theme.palette.brandHover.primary,\n borderColor: theme.palette.brandHover.primary,\n },\n ),\n }),\n // disabled\n '&.Mui-disabled': {\n opacity: '1',\n userSelect: 'none',\n color: theme.palette.disabled.primary,\n backgroundColor: theme.palette.surface.primary,\n borderColor: theme.palette.disabled.primary,\n // transparent variant\n ...(ownerState.variant === 'transparent' && {\n backgroundColor: theme.palette.transparent.primary,\n }),\n },\n // focused style\n ...getFocusRingStyle(theme, true, 1),\n ...((ownerState.isSelected || ['success', 'primary'].includes(ownerState.color)) && {\n ...updateFocusRingStyle(2),\n }),\n // old api, counting dot\n '& .count': {\n ...(theme.palette.mode === 'dark'\n ? {\n backgroundColor: theme.palette.brand.secondary,\n color: theme.palette.onSurface.os900,\n }\n : {\n backgroundColor: theme.palette.brand.primary,\n color: theme.palette.common.white,\n }),\n minWidth: '20px',\n height: '20px',\n borderRadius: '20px',\n paddingLeft: '4px',\n paddingRight: '4px',\n textAlign: 'center',\n marginLeft: '10px',\n fontSize: '14px',\n lineHeight: '20px',\n fontWeight: '700',\n '& + .MuiChip-deleteIcon': {\n marginLeft: '5px',\n },\n },\n '& .chevron-down, & .chevron-up, & .MuiSvgIcon-root:last-child': {\n fontSize: '17px',\n // space between text and icon\n marginRight: '0',\n marginLeft: '10px',\n },\n '&.chevron-down.isOpen, & .MuiSvgIcon-root:last-child.isOpen': {\n transform: 'rotate(180deg)',\n },\n }),\n icon: {\n '&, &:hover': {\n color: 'currentColor',\n },\n fontSize: '17px',\n // space between text and icon\n marginRight: '10px',\n marginLeft: '0',\n },\n deleteIcon: {\n '&, &:hover': {\n color: 'currentColor',\n },\n fontSize: '17px',\n // space between text and icon\n marginRight: '0',\n marginLeft: '10px',\n },\n label: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'flex-start',\n padding: '0',\n },\n },\n};\n"],"names":["getChipInteractiveStyle","defaultStyle","hoverStyle","Object","assign","getInteractiveStyle","getVariantStyle","theme","variant","primaryColor","hover","backgroundColor","palette","transparent","secondary","color","borderColor","onSurface","os0","flowChip","defaultProps","deleteIcon","_jsx","CloseIcon","styleOverrides","root","ownerState","position","height","minWidth","padding","size","textRendering","textTransform","fontSize","lineHeight","fontWeight","letterSpacing","outline","borderRadius","textAlign","transition","cursor","boxShadow","raised","className","_a","includes","flowShadows","xs","border","os900","surface","primary","text","os500","_b","background","_c","main","common","white","dark","error","warning","info","isSelected","borderWidth","mode","os800","brand","quarternary","brandHover","opacity","userSelect","disabled","getFocusRingStyle","updateFocusRingStyle","paddingLeft","paddingRight","marginLeft","marginRight","transform","icon","label","display","alignItems","justifyContent"],"mappings":"kMAUA,SAASA,EAAwBC,EAAyBC,GACxD,OAAAC,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACKH,GAAY,CACf,uBAAsBE,OAAAC,OAAA,GACjBC,EAAAA,oBAAoBJ,EAAcC,KAG3C,CAKA,SAASI,EAAgBC,EAAcC,EAAiBC,EAAsBC,GAC5E,MAAgB,aAAZF,EACK,CACLG,gBAAiBD,EAAQH,EAAMK,QAAQC,YAAYC,UAAY,cAC/DC,MAAON,EACPO,YAAaP,GAGR,CACLE,gBAAiBF,EACjBM,MAAOR,EAAMK,QAAQK,UAAUC,IAC/BF,YAAaP,EAGnB,CAEO,MAAMU,EAAyC,CACpDC,aAAc,CACZC,WAAYC,EAAAA,IAACC,EAAAA,UAAS,KAExBC,eAAgB,CACdC,KAAM,EAAGlB,QAAOmB,2BAAiB,OAAAvB,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAC/BuB,SAAU,WAEVC,OAAQ,OACRC,SAAU,IACVC,QAAS,YAEe,UAApBJ,EAAWK,MAAoB,CACjCD,QAAS,aACT,CAEFE,cAAe,qBACfC,cAAe,OACfC,SAAU,OACVC,WAAY,OACZC,WAAY,MACZC,cAAe,MACfC,QAAS,OAETC,aAAc,SACdC,UAAW,SACXC,WACE,4JAEF,wBAAyB,CACvBC,OAAQ,WAGV,cAAavC,OAAAC,OAAA,CACXuC,UAAW,SAENjB,EAAWkB,SAA8B,UAApBlB,EAAWmB,iBAAS,IAAAC,OAAA,EAAAA,EAAEC,SAAS,sBAAuB,CAC9EJ,UAAWpC,EAAMyC,YAAYC,KAIjC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AAWnB,QAChCrC,YAAaT,EAAMK,QAAQ4D,WAAWnB,YAG9C,CAEF,iBAAgBlD,OAAAC,OAAA,CACdqE,QAAS,IACTC,WAAY,OACZ3D,MAAOR,EAAMK,QAAQ+D,SAAStB,QAC9B1C,gBAAiBJ,EAAMK,QAAQwC,QAAQC,QACvCrC,YAAaT,EAAMK,QAAQ+D,SAAStB,SAET,gBAAvB3B,EAAWlB,SAA6B,CAC1CG,gBAAiBJ,EAAMK,QAAQC,YAAYwC,YAI5CuB,oBAAkBrE,GAAO,EAAM,KAC7BmB,EAAWwC,YAAc,CAAC,UAAW,WAAWnB,SAASrB,EAAWX,0BACpE8D,EAAAA,qBAAqB,KACxB,CAEF,WAAU1E,OAAAC,OAAAD,OAAAC,OAAA,GACmB,SAAvBG,EAAMK,QAAQwD,KACd,CACEzD,gBAAiBJ,EAAMK,QAAQ0D,MAAMxD,UACrCC,MAAOR,EAAMK,QAAQK,UAAUkC,OAEjC,CACExC,gBAAiBJ,EAAMK,QAAQ0D,MAAMjB,QACrCtC,MAAOR,EAAMK,QAAQgD,OAAOC,SAElChC,SAAU,OACVD,OAAQ,OACRW,aAAc,OACduC,YAAa,MACbC,aAAc,MACdvC,UAAW,SACXwC,WAAY,OACZ9C,SAAU,OACVC,WAAY,OACZC,WAAY,MACZ,0BAA2B,CACzB4C,WAAY,SAGhB,gEAAiE,CAC/D9C,SAAU,OAEV+C,YAAa,IACbD,WAAY,QAEd,8DAA+D,CAC7DE,UAAW,qBAGfC,KAAM,CACJ,aAAc,CACZpE,MAAO,gBAETmB,SAAU,OAEV+C,YAAa,OACbD,WAAY,KAEd3D,WAAY,CACV,aAAc,CACZN,MAAO,gBAETmB,SAAU,OAEV+C,YAAa,IACbD,WAAY,QAEdI,MAAO,CACLC,QAAS,cACTC,WAAY,SACZC,eAAgB,aAChBzD,QAAS"}
|
|
1
|
+
{"version":3,"file":"chip.theme.js","sources":["../../../../../src/materialui/chip/chip.theme.tsx"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { CSSObject, Theme } from '@mui/material';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\nimport { getFocusRingStyle, updateFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\n\n/**\n * Wrapper around getInteractiveStyle() function to provide interactive style\n * only for chip that is actually a button\n */\nfunction getChipInteractiveStyle(defaultStyle: CSSObject, hoverStyle: CSSObject): CSSObject {\n return {\n ...defaultStyle,\n '&.MuiButtonBase-root': {\n ...getInteractiveStyle(defaultStyle, hoverStyle),\n },\n };\n}\n\n/**\n * Return style for either outlined or filled variant. Used by deprecated semantic colors\n */\nfunction getVariantStyle(theme: Theme, variant: string, primaryColor: string, hover?: boolean): CSSObject {\n if (variant === 'outlined') {\n return {\n backgroundColor: hover ? theme.palette.transparent.secondary : 'transparent',\n color: primaryColor,\n borderColor: primaryColor,\n };\n } else {\n return {\n backgroundColor: primaryColor,\n color: theme.palette.onSurface.os0,\n borderColor: primaryColor,\n };\n }\n}\n\nexport const flowChip: Components<Theme>['MuiChip'] = {\n defaultProps: {\n deleteIcon: <CloseIcon />,\n },\n styleOverrides: {\n root: ({ theme, ownerState }) => ({\n position: 'relative',\n // proportions\n height: 'auto',\n minWidth: '0',\n padding: '5px 16px',\n // not recommended small variant\n ...(ownerState.size === 'small' && {\n padding: '2px 12px',\n }),\n // custom font size\n textRendering: 'geometricPrecision',\n textTransform: 'none',\n fontSize: '16px',\n lineHeight: '20px',\n fontWeight: '400',\n letterSpacing: '0px',\n outline: 'none',\n // 50% border radius without skewing ratio\n borderRadius: '1000px',\n textAlign: 'center',\n transition:\n 'transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out',\n // correct cursor if the chip is clickable button\n '&&.MuiButtonBase-root': {\n cursor: 'pointer',\n },\n // more important selector to overwrite default @mui styling\n '&, &:active': {\n boxShadow: 'none',\n // drop shadow variant (+ old API support)\n ...((ownerState.raised || ownerState.className?.includes('.MuiChip-shadow')) && {\n boxShadow: theme.flowShadows.xs,\n }),\n },\n // style (default 'filled' (solid) variant)\n border: `1px solid ${theme.palette.onSurface.os900}`,\n ...getChipInteractiveStyle(\n {\n backgroundColor: theme.palette.surface.primary,\n color: theme.palette.text.primary,\n borderColor: theme.palette.onSurface.os500,\n // drop shadow variant (+ old API support)\n ...((ownerState.raised || ownerState.className?.includes('.MuiChip-shadow')) && {\n backgroundColor: theme.palette.background.primary,\n }),\n },\n {\n backgroundColor: theme.palette.surface.secondary,\n color: theme.palette.text.primary,\n borderColor: theme.palette.onSurface.os500,\n // drop shadow variant (+ old API support)\n ...((ownerState.raised || ownerState.className?.includes('.MuiChip-shadow')) && {\n backgroundColor: theme.palette.surface.primary,\n }),\n },\n ),\n // transparent variant\n ...(ownerState.variant === 'transparent' && {\n ...getChipInteractiveStyle(\n {\n backgroundColor: theme.palette.transparent.primary,\n },\n {\n backgroundColor: theme.palette.transparent.secondary,\n },\n ),\n }),\n // deprecated secondary color\n ...(ownerState.color === 'secondary' &&\n ownerState.variant !== 'outlined' && {\n ...getChipInteractiveStyle(\n {\n backgroundColor: theme.palette.secondary.main,\n color: theme.palette.common.white,\n borderColor: theme.palette.secondary.main,\n },\n {\n backgroundColor: theme.palette.secondary.dark,\n color: theme.palette.common.white,\n borderColor: theme.palette.secondary.dark,\n },\n ),\n }),\n // deprecated semantic colors, used by Production team\n ...(ownerState.color === 'error' && {\n ...getChipInteractiveStyle(\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.error.main),\n },\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.error.dark, true),\n },\n ),\n }),\n ...(ownerState.color === 'warning' && {\n ...getChipInteractiveStyle(\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.warning.main),\n },\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.warning.dark, true),\n },\n ),\n }),\n ...(ownerState.color === 'info' && {\n ...getChipInteractiveStyle(\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.info.main),\n },\n {\n ...getVariantStyle(theme, ownerState.variant, theme.palette.info.dark, true),\n },\n ),\n }),\n // selected chip\n ...((ownerState.isSelected || ['success', 'primary'].includes(ownerState.color)) && {\n borderWidth: '2px',\n // remove 1px border for each side\n padding: '4px 15px',\n ...(ownerState.size === 'small' && {\n padding: '1px 11px',\n }),\n ...getChipInteractiveStyle(\n theme.palette.mode === 'dark'\n ? {\n backgroundColor: theme.palette.onSurface.os800,\n color: theme.palette.brand.secondary,\n borderColor: theme.palette.brand.secondary,\n }\n : {\n backgroundColor: theme.palette.brand.quarternary,\n color: theme.palette.brand.primary,\n borderColor: theme.palette.brand.primary,\n },\n theme.palette.mode === 'dark'\n ? {\n backgroundColor: theme.palette.onSurface.os800,\n color: theme.palette.brandHover.secondary,\n borderColor: theme.palette.brandHover.secondary,\n }\n : {\n backgroundColor: theme.palette.brand.quarternary,\n color: theme.palette.brandHover.primary,\n borderColor: theme.palette.brandHover.primary,\n },\n ),\n }),\n // disabled\n '&.Mui-disabled': {\n opacity: '1',\n userSelect: 'none',\n color: theme.palette.disabled.primary,\n backgroundColor: theme.palette.surface.primary,\n borderColor: theme.palette.disabled.primary,\n // transparent variant\n ...(ownerState.variant === 'transparent' && {\n backgroundColor: theme.palette.transparent.primary,\n }),\n },\n // focused style\n ...getFocusRingStyle(theme, true, 1),\n ...((ownerState.isSelected || ['success', 'primary'].includes(ownerState.color)) && {\n ...updateFocusRingStyle(2),\n }),\n // old api, counting dot\n '& .count': {\n ...(theme.palette.mode === 'dark'\n ? {\n backgroundColor: theme.palette.brand.secondary,\n color: theme.palette.onSurface.os900,\n }\n : {\n backgroundColor: theme.palette.brand.primary,\n color: theme.palette.common.white,\n }),\n minWidth: '20px',\n height: '20px',\n borderRadius: '20px',\n paddingLeft: '4px',\n paddingRight: '4px',\n textAlign: 'center',\n marginLeft: '10px',\n fontSize: '14px',\n lineHeight: '20px',\n fontWeight: '700',\n '& + .MuiChip-deleteIcon': {\n marginLeft: '5px',\n },\n },\n '& .chevron-down, & .chevron-up, & .MuiSvgIcon-root:last-child': {\n fontSize: '17px',\n // space between text and icon\n marginRight: '0',\n marginLeft: '10px',\n },\n '&.chevron-down.isOpen, & .MuiSvgIcon-root:last-child.isOpen': {\n transform: 'rotate(180deg)',\n },\n }),\n icon: {\n '&, &:hover': {\n color: 'currentColor',\n },\n fontSize: '17px',\n // space between text and icon\n marginRight: '10px',\n marginLeft: '0',\n },\n deleteIcon: {\n '&, &:hover': {\n color: 'currentColor',\n },\n fontSize: '17px',\n // space between text and icon\n marginRight: '0',\n marginLeft: '10px',\n },\n label: {\n // has children\n '&:has(> *)': {\n // this breaks ellipsis, eases align of multiselection\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'flex-start',\n // reactive ellipsis\n '& > div, & > span': {\n minWidth: '0',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n },\n },\n padding: '0',\n },\n },\n};\n"],"names":["getChipInteractiveStyle","defaultStyle","hoverStyle","Object","assign","getInteractiveStyle","getVariantStyle","theme","variant","primaryColor","hover","backgroundColor","palette","transparent","secondary","color","borderColor","onSurface","os0","flowChip","defaultProps","deleteIcon","_jsx","CloseIcon","styleOverrides","root","ownerState","position","height","minWidth","padding","size","textRendering","textTransform","fontSize","lineHeight","fontWeight","letterSpacing","outline","borderRadius","textAlign","transition","cursor","boxShadow","raised","className","_a","includes","flowShadows","xs","border","os900","surface","primary","text","os500","_b","background","_c","main","common","white","dark","error","warning","info","isSelected","borderWidth","mode","os800","brand","quarternary","brandHover","opacity","userSelect","disabled","getFocusRingStyle","updateFocusRingStyle","paddingLeft","paddingRight","marginLeft","marginRight","transform","icon","label","display","alignItems","justifyContent","overflow","whiteSpace","textOverflow"],"mappings":"kMAUA,SAASA,EAAwBC,EAAyBC,GACxD,OAAAC,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACKH,GAAY,CACf,uBAA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AAaT,EAAMK,QAAQ+D,SAAStB,SAET,gBAAvB3B,EAAWlB,SAA6B,CAC1CG,gBAAiBJ,EAAMK,QAAQC,YAAYwC,YAI5CuB,oBAAkBrE,GAAO,EAAM,KAC7BmB,EAAWwC,YAAc,CAAC,UAAW,WAAWnB,SAASrB,EAAWX,0BACpE8D,EAAAA,qBAAqB,KACxB,CAEF,WAAU1E,OAAAC,OAAAD,OAAAC,OAAA,GACmB,SAAvBG,EAAMK,QAAQwD,KACd,CACEzD,gBAAiBJ,EAAMK,QAAQ0D,MAAMxD,UACrCC,MAAOR,EAAMK,QAAQK,UAAUkC,OAEjC,CACExC,gBAAiBJ,EAAMK,QAAQ0D,MAAMjB,QACrCtC,MAAOR,EAAMK,QAAQgD,OAAOC,SAElChC,SAAU,OACVD,OAAQ,OACRW,aAAc,OACduC,YAAa,MACbC,aAAc,MACdvC,UAAW,SACXwC,WAAY,OACZ9C,SAAU,OACVC,WAAY,OACZC,WAAY,MACZ,0BAA2B,CACzB4C,WAAY,SAGhB,gEAAiE,CAC/D9C,SAAU,OAEV+C,YAAa,IACbD,WAAY,QAEd,8DAA+D,CAC7DE,UAAW,qBAGfC,KAAM,CACJ,aAAc,CACZpE,MAAO,gBAETmB,SAAU,OAEV+C,YAAa,OACbD,WAAY,KAEd3D,WAAY,CACV,aAAc,CACZN,MAAO,gBAETmB,SAAU,OAEV+C,YAAa,IACbD,WAAY,QAEdI,MAAO,CAEL,aAAc,CAEZC,QAAS,cACTC,WAAY,SACZC,eAAgB,aAEhB,oBAAqB,CACnB1D,SAAU,IACV2D,SAAU,SACVC,WAAY,SACZC,aAAc,aAGlB5D,QAAS"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),s=require("react"),n=require("@mui/material"),l=require("@mui/x-date-pickers/hooks");const c=s.forwardRef((s,c)=>{var{actions:a}=s,i=e.__rest(s,["actions"]);const o=l.usePickerTranslations(),{view:r,variant:u,clearValue:d,setValueToToday:x,acceptValueChanges:B,cancelValueChanges:k,goToNextStep:m,hasNextStep:p}=l.usePickerContext();return t.jsxs(n.Box,Object.assign({sx:Object.assign({},!!(null==a?void 0:a.length)&&Object.assign(Object.assign({p:2},["hours","minutes","seconds","meridiem"].includes(r)&&"desktop"===u&&{p:1}),{display:"flex",gap:1,alignItems:"center",justifyContent:"flex-end"})),ref:c},i,{children:[a.includes("cancel")&&t.jsx(n.Button,{size:"small",variant:"text",color:"secondary",onClick:k,children:o.cancelButtonLabel}),a.includes("clear")&&t.jsx(n.Button,{size:"small",color:"surface",onClick:d,children:o.clearButtonLabel}),a.includes("today")&&t.jsx(n.Button,{size:"small",color:"surface",onClick:x,children:o.todayButtonLabel}),a.includes("next")&&t.jsx(n.Button,{size:"small",color:"surface",onClick:m,children:o.nextStepButtonLabel}),a.includes("nextOrAccept")&&t.jsx(n.Button,{size:"small",color:"surface",onClick:p?m:B,children:p?o.nextStepButtonLabel:o.okButtonLabel}),a.includes("accept")&&t.jsx(n.Button,{size:"small",color:"surface",onClick:B,children:o.okButtonLabel})]}))});exports.FlowPickersActionsBar=c;
|
|
2
2
|
//# sourceMappingURL=PickersActionBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PickersActionBar.js","sources":["../../../../../src/materialui/datepicker/PickersActionBar.tsx"],"sourcesContent":["import React, { FC, forwardRef } from 'react';\nimport { PickersActionBarProps } from '@mui/x-date-pickers';\nimport { Box, Button } from '@mui/material';\nimport { usePickerContext, usePickerTranslations } from '@mui/x-date-pickers/hooks';\n\n/**\n * Customization of action buttons in Date/Time pickers\n * Taken from original code:\n * https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/PickersActionBar/PickersActionBar.tsx\n */\nexport const FlowPickersActionsBar: FC<PickersActionBarProps> = forwardRef(({ actions, ...rest }, ref) => {\n const translations = usePickerTranslations();\n const {
|
|
1
|
+
{"version":3,"file":"PickersActionBar.js","sources":["../../../../../src/materialui/datepicker/PickersActionBar.tsx"],"sourcesContent":["import React, { FC, forwardRef } from 'react';\nimport { PickersActionBarProps } from '@mui/x-date-pickers';\nimport { Box, Button } from '@mui/material';\nimport { usePickerContext, usePickerTranslations } from '@mui/x-date-pickers/hooks';\n\n/**\n * Customization of action buttons in Date/Time pickers\n * Taken from original code:\n * https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/PickersActionBar/PickersActionBar.tsx\n */\nexport const FlowPickersActionsBar: FC<PickersActionBarProps> = forwardRef(({ actions, ...rest }, ref) => {\n const translations = usePickerTranslations();\n const {\n view,\n variant,\n clearValue,\n setValueToToday,\n acceptValueChanges,\n cancelValueChanges,\n goToNextStep,\n hasNextStep,\n } = usePickerContext();\n\n return (\n <Box\n sx={{\n ...(!!actions?.length && {\n p: 2,\n ...(['hours', 'minutes', 'seconds', 'meridiem'].includes(view) &&\n variant === 'desktop' && {\n p: 1,\n }),\n display: 'flex',\n gap: 1,\n alignItems: 'center',\n justifyContent: 'flex-end',\n }),\n }}\n ref={ref}\n {...rest}\n >\n {actions.includes('cancel') && (\n <Button size=\"small\" variant=\"text\" color=\"secondary\" onClick={cancelValueChanges}>\n {translations.cancelButtonLabel}\n </Button>\n )}\n {actions.includes('clear') && (\n <Button size=\"small\" color=\"surface\" onClick={clearValue}>\n {translations.clearButtonLabel}\n </Button>\n )}\n {actions.includes('today') && (\n <Button size=\"small\" color=\"surface\" onClick={setValueToToday}>\n {translations.todayButtonLabel}\n </Button>\n )}\n {actions.includes('next') && (\n <Button size=\"small\" color=\"surface\" onClick={goToNextStep}>\n {translations.nextStepButtonLabel}\n </Button>\n )}\n {actions.includes('nextOrAccept') && (\n <Button size=\"small\" color=\"surface\" onClick={hasNextStep ? goToNextStep : acceptValueChanges}>\n {hasNextStep ? translations.nextStepButtonLabel : translations.okButtonLabel}\n </Button>\n )}\n {actions.includes('accept') && (\n <Button size=\"small\" color=\"surface\" onClick={acceptValueChanges}>\n {translations.okButtonLabel}\n </Button>\n )}\n </Box>\n );\n});\n"],"names":["FlowPickersActionsBar","forwardRef","_a","ref","actions","rest","__rest","translations","usePickerTranslations","view","variant","clearValue","setValueToToday","acceptValueChanges","cancelValueChanges","goToNextStep","hasNextStep","usePickerContext","_jsxs","Box","Object","assign","sx","length","p","includes","display","gap","alignItems","justifyContent","children","_jsx","Button","size","color","onClick","cancelButtonLabel","clearButtonLabel","todayButtonLabel","nextStepButtonLabel","okButtonLabel"],"mappings":"wJAUO,MAAMA,EAAmDC,EAAAA,WAAW,CAACC,EAAsBC,KAAtB,IAAAC,QAAEA,GAAOF,EAAKG,EAAIC,EAAAA,OAAAJ,EAAlB,aAC1E,MAAMK,EAAeC,EAAAA,yBACfC,KACJA,EAAIC,QACJA,EAAOC,WACPA,EAAUC,gBACVA,EAAeC,mBACfA,EAAkBC,mBAClBA,EAAkBC,aAClBA,EAAYC,YACZA,GACEC,qBAEJ,OACEC,EAAAA,KAACC,EAAAA,IAAGC,OAAAC,OAAA,CACFC,uBACQlB,aAAO,EAAPA,EAASmB,SAAMH,OAAAC,OAAAD,OAAAC,OAAA,CACnBG,EAAG,GACC,CAAC,QAAS,UAAW,UAAW,YAAYC,SAAShB,IAC3C,YAAZC,GAAyB,CACvBc,EAAG,IACH,CACJE,QAAS,OACTC,IAAK,EACLC,WAAY,SACZC,eAAgB,cAGpB1B,IAAKA,GACDE,EAAI,CAAAyB,SAAA,CAEP1B,EAAQqB,SAAS,WAChBM,EAAAA,IAACC,EAAAA,OAAM,CAACC,KAAK,QAAQvB,QAAQ,OAAOwB,MAAM,YAAYC,QAASrB,EAAkBgB,SAC9EvB,EAAa6B,oBAGjBhC,EAAQqB,SAAS,UAChBM,EAAAA,IAACC,EAAAA,QAAOC,KAAK,QAAQC,MAAM,UAAUC,QAASxB,EAAUmB,SACrDvB,EAAa8B,mBAGjBjC,EAAQqB,SAAS,UAChBM,EAAAA,IAACC,EAAAA,OAAM,CAACC,KAAK,QAAQC,MAAM,UAAUC,QAASvB,EAAekB,SAC1DvB,EAAa+B,mBAGjBlC,EAAQqB,SAAS,SAChBM,EAAAA,IAACC,EAAAA,OAAM,CAACC,KAAK,QAAQC,MAAM,UAAUC,QAASpB,EAAYe,SACvDvB,EAAagC,sBAGjBnC,EAAQqB,SAAS,iBAChBM,EAAAA,IAACC,EAAAA,OAAM,CAACC,KAAK,QAAQC,MAAM,UAAUC,QAASnB,EAAcD,EAAeF,EAAkBiB,SAC1Fd,EAAcT,EAAagC,oBAAsBhC,EAAaiC,gBAGlEpC,EAAQqB,SAAS,WAChBM,EAAAA,IAACC,EAAAA,QAAOC,KAAK,QAAQC,MAAM,UAAUC,QAAStB,EAAkBiB,SAC7DvB,EAAaiC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),o=require("react"),n=require("@mui/x-date-pickers"),t=require("@mui/material"),i=require("../../components/icon/stroke/ChevronLeftIcon.js"),a=require("../../components/icon/stroke/ChevronRightIcon.js"),s=require("../../components/icon/stroke/ChevronDownIcon.js"),c=require("../typography/typography.theme.js");const l=o.forwardRef(({view:e,views:o,currentMonth:s,onMonthChange:c,onViewChange:l,className:h},u)=>{const y=n.usePickerTranslations(),m=n.usePickerAdapter();return r.jsxs(t.Box,{sx:{borderBottom:1,borderColor:"surface.secondary",display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:1.75,boxSizing:"border-box",minHeight:"61px"},ref:u,className:h,children:[o.includes("month")?r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"50%"},children:[r.jsx(d,{onClick:()=>c(s.subtract(1,"month")),"aria-label":`${y.openPreviousView} (${y.month})`,disabled:"day"!==e,children:r.jsx(i.ChevronLeftIcon,{})}),r.jsx(x,{active:"month"===e,onClick:()=>{l("month"===e?"day":"month")},disabled:!o.includes("day")&&"month"===e,"aria-label":y.month,children:m.formatByString(s,"MMM")}),r.jsx(d,{onClick:()=>c(s.add(1,"month")),"aria-label":`${y.openNextView} (${y.month})`,disabled:"day"!==e,children:r.jsx(a.ChevronRightIcon,{})})]}):r.jsx(t.Box,{}),o.includes("year")&&r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"50%"},children:[r.jsx(d,{onClick:()=>c(s.subtract(1,"year")),"aria-label":`${y.openPreviousView} (${y.year})`,disabled:"day"!==e,children:r.jsx(i.ChevronLeftIcon,{})}),r.jsx(x,{active:"year"===e,onClick:()=>{l("year"===e?"day":"year")},disabled:!o.includes("day")&&"year"===e,"aria-label":y.year,children:m.formatByString(s,"YYYY")}),r.jsx(d,{onClick:()=>c(s.add(1,"year")),"aria-label":`${y.openNextView} (${y.year})`,disabled:"day"!==e,children:r.jsx(a.ChevronRightIcon,{})})]})]})}),d=e=>r.jsx(t.IconButton,Object.assign({size:"small",sx:{"&.Mui-disabled":{opacity:"0"},"& .MuiSvgIcon-root":{fontSize:"20px"}}},e)),x=o=>{var{active:n}=o,i=e.__rest(o,["active"]);return r.jsx(t.Button,Object.assign({sx:e=>({flexGrow:"1",py:.75,gap:.75,color:"dark"===e.palette.mode?"onSurface.os200":"onSurface.os700",[e.breakpoints.up("xs")]:Object.assign({},c.getTypography("disclaimer1","rtl"===e.direction,"large")),"& .MuiButton-icon .MuiSvgIcon-root":{color:"text.primary",fontSize:"20px"}}),endIcon:r.jsx(s.ChevronDownIcon,{sx:{transform:n?"rotate(-180deg)":"rotate(0deg)"}}),size:"small",variant:"text",color:"secondary"},i))};exports.FlowPickersCalendarHeader=l;
|
|
2
2
|
//# sourceMappingURL=PickersCalendarHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PickersCalendarHeader.js","sources":["../../../../../src/materialui/datepicker/PickersCalendarHeader.tsx"],"sourcesContent":["import React, { FC, forwardRef } from 'react';\nimport { PickersCalendarHeaderProps, usePickerTranslations, usePickerAdapter } from '@mui/x-date-pickers';\nimport { Box, Button, IconButton, IconButtonProps, ButtonProps } from '@mui/material';\nimport { ChevronLeftIcon } from '@/src/components/icon/stroke/ChevronLeftIcon';\nimport { ChevronRightIcon } from '@/src/components/icon/stroke/ChevronRightIcon';\nimport { ChevronDownIcon } from '@/src/components/icon/stroke/ChevronDownIcon';\nimport { getTypography } from '@/src/materialui/typography/typography.theme';\n\n/**\n * Customization of header in Date/Time pickers\n */\nexport const FlowPickersCalendarHeader: FC<PickersCalendarHeaderProps> = forwardRef(\n ({ view, views, currentMonth, onMonthChange, onViewChange, className }, ref) => {\n const translations = usePickerTranslations();\n const adapter = usePickerAdapter();\n const selectNextMonth = () => onMonthChange(currentMonth.add(1, 'month'));\n const selectNextYear = () => onMonthChange(currentMonth.add(1, 'year'));\n const selectPreviousMonth = () => onMonthChange(currentMonth.subtract(1, 'month'));\n const selectPreviousYear = () => onMonthChange(currentMonth.subtract(1, 'year'));\n\n return (\n <Box\n sx={{\n borderBottom: 1,\n borderColor: 'surface.secondary',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n // height affects datecalendar.theme\n px: 2.5,\n py: 1.75,\n // prevent jumping when switching between calendars\n minHeight: '61px',\n }}\n ref={ref}\n className={className}\n >\n {views.includes('month') ? (\n <Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'center', width: '50%' }}>\n <PickersCalendarHeaderIconButton\n onClick={selectPreviousMonth}\n aria-label={`${translations.openPreviousView} (${translations.month})`}\n disabled={view !== 'day'}\n >\n <ChevronLeftIcon />\n </PickersCalendarHeaderIconButton>\n <PickersCalendarHeaderButton\n active={view === 'month'}\n onClick={() => {\n onViewChange(view === 'month' ? 'day' : 'month');\n }}\n disabled={!views.includes('day') && view === 'month'}\n >\n {adapter.formatByString(currentMonth, 'MMM')}\n </PickersCalendarHeaderButton>\n <PickersCalendarHeaderIconButton\n onClick={selectNextMonth}\n aria-label={`${translations.openNextView} (${translations.month})`}\n disabled={view !== 'day'}\n >\n <ChevronRightIcon />\n </PickersCalendarHeaderIconButton>\n </Box>\n ) : (\n <Box />\n )}\n {views.includes('year') && (\n <Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'center', width: '50%' }}>\n <PickersCalendarHeaderIconButton\n onClick={selectPreviousYear}\n aria-label={`${translations.openPreviousView} (${translations.year})`}\n disabled={view !== 'day'}\n >\n <ChevronLeftIcon />\n </PickersCalendarHeaderIconButton>\n <PickersCalendarHeaderButton\n active={view === 'year'}\n onClick={() => {\n onViewChange(view === 'year' ? 'day' : 'year');\n }}\n disabled={!views.includes('day') && view === 'year'}\n >\n {adapter.formatByString(currentMonth, 'YYYY')}\n </PickersCalendarHeaderButton>\n <PickersCalendarHeaderIconButton\n onClick={selectNextYear}\n aria-label={`${translations.openNextView} (${translations.year})`}\n disabled={view !== 'day'}\n >\n <ChevronRightIcon />\n </PickersCalendarHeaderIconButton>\n </Box>\n )}\n </Box>\n );\n },\n);\n\nconst PickersCalendarHeaderIconButton: FC<IconButtonProps> = (props) => {\n return (\n <IconButton\n size=\"small\"\n sx={{\n '&.Mui-disabled': {\n opacity: '0',\n },\n '& .MuiSvgIcon-root': {\n fontSize: '20px',\n },\n }}\n {...props}\n />\n );\n};\n\nconst PickersCalendarHeaderButton: FC<ButtonProps & { active?: boolean }> = ({ active, ...rest }) => {\n return (\n <Button\n sx={(theme) => ({\n flexGrow: '1',\n py: 0.75,\n gap: 0.75,\n color: theme.palette.mode === 'dark' ? 'onSurface.os200' : 'onSurface.os700',\n [theme.breakpoints.up('xs')]: {\n ...getTypography('disclaimer1', theme.direction === 'rtl', 'large'),\n },\n '& .MuiButton-icon .MuiSvgIcon-root': {\n color: 'text.primary',\n fontSize: '20px',\n },\n })}\n endIcon={\n <ChevronDownIcon\n sx={{\n transform: active ? 'rotate(-180deg)' : 'rotate(0deg)',\n }}\n />\n }\n size=\"small\"\n variant=\"text\"\n color=\"secondary\"\n {...rest}\n />\n );\n};\n"],"names":["FlowPickersCalendarHeader","forwardRef","view","views","currentMonth","onMonthChange","onViewChange","className","ref","translations","usePickerTranslations","adapter","usePickerAdapter","_jsxs","Box","sx","borderBottom","borderColor","display","alignItems","justifyContent","px","py","minHeight","children","includes","width","_jsx","PickersCalendarHeaderIconButton","onClick","subtract","openPreviousView","month","disabled","ChevronLeftIcon","PickersCalendarHeaderButton","active","formatByString","add","openNextView","ChevronRightIcon","year","props","IconButton","Object","assign","size","opacity","fontSize","_a","rest","__rest","Button","theme","flexGrow","gap","color","palette","mode","breakpoints","up","getTypography","direction","endIcon","ChevronDownIcon","transform","variant"],"mappings":"+XAWaA,EAA4DC,EAAAA,WACvE,EAAGC,OAAMC,QAAOC,eAAcC,gBAAeC,eAAcC,aAAaC,KACtE,MAAMC,EAAeC,EAAAA,wBACfC,EAAUC,EAAAA,mBAMhB,OACEC,EAAAA,KAACC,MAAG,CACFC,GAAI,CACFC,aAAc,EACdC,YAAa,oBACbC,QAAS,OACTC,WAAY,SACZC,eAAgB,gBAEhBC,GAAI,IACJC,GAAI,KAEJC,UAAW,
|
|
1
|
+
{"version":3,"file":"PickersCalendarHeader.js","sources":["../../../../../src/materialui/datepicker/PickersCalendarHeader.tsx"],"sourcesContent":["import React, { FC, forwardRef } from 'react';\nimport { PickersCalendarHeaderProps, usePickerTranslations, usePickerAdapter } from '@mui/x-date-pickers';\nimport { Box, Button, IconButton, IconButtonProps, ButtonProps } from '@mui/material';\nimport { ChevronLeftIcon } from '@/src/components/icon/stroke/ChevronLeftIcon';\nimport { ChevronRightIcon } from '@/src/components/icon/stroke/ChevronRightIcon';\nimport { ChevronDownIcon } from '@/src/components/icon/stroke/ChevronDownIcon';\nimport { getTypography } from '@/src/materialui/typography/typography.theme';\n\n/**\n * Customization of header in Date/Time pickers\n */\nexport const FlowPickersCalendarHeader: FC<PickersCalendarHeaderProps> = forwardRef(\n ({ view, views, currentMonth, onMonthChange, onViewChange, className }, ref) => {\n const translations = usePickerTranslations();\n const adapter = usePickerAdapter();\n const selectNextMonth = () => onMonthChange(currentMonth.add(1, 'month'));\n const selectNextYear = () => onMonthChange(currentMonth.add(1, 'year'));\n const selectPreviousMonth = () => onMonthChange(currentMonth.subtract(1, 'month'));\n const selectPreviousYear = () => onMonthChange(currentMonth.subtract(1, 'year'));\n\n return (\n <Box\n sx={{\n borderBottom: 1,\n borderColor: 'surface.secondary',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n // height affects datecalendar.theme\n px: 2.5,\n py: 1.75,\n // prevent jumping when switching between calendars\n boxSizing: 'border-box',\n minHeight: '61px',\n }}\n ref={ref}\n className={className}\n >\n {views.includes('month') ? (\n <Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'center', width: '50%' }}>\n <PickersCalendarHeaderIconButton\n onClick={selectPreviousMonth}\n aria-label={`${translations.openPreviousView} (${translations.month})`}\n disabled={view !== 'day'}\n >\n <ChevronLeftIcon />\n </PickersCalendarHeaderIconButton>\n <PickersCalendarHeaderButton\n active={view === 'month'}\n onClick={() => {\n onViewChange(view === 'month' ? 'day' : 'month');\n }}\n disabled={!views.includes('day') && view === 'month'}\n aria-label={translations.month}\n >\n {adapter.formatByString(currentMonth, 'MMM')}\n </PickersCalendarHeaderButton>\n <PickersCalendarHeaderIconButton\n onClick={selectNextMonth}\n aria-label={`${translations.openNextView} (${translations.month})`}\n disabled={view !== 'day'}\n >\n <ChevronRightIcon />\n </PickersCalendarHeaderIconButton>\n </Box>\n ) : (\n <Box />\n )}\n {views.includes('year') && (\n <Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'center', width: '50%' }}>\n <PickersCalendarHeaderIconButton\n onClick={selectPreviousYear}\n aria-label={`${translations.openPreviousView} (${translations.year})`}\n disabled={view !== 'day'}\n >\n <ChevronLeftIcon />\n </PickersCalendarHeaderIconButton>\n <PickersCalendarHeaderButton\n active={view === 'year'}\n onClick={() => {\n onViewChange(view === 'year' ? 'day' : 'year');\n }}\n disabled={!views.includes('day') && view === 'year'}\n aria-label={translations.year}\n >\n {adapter.formatByString(currentMonth, 'YYYY')}\n </PickersCalendarHeaderButton>\n <PickersCalendarHeaderIconButton\n onClick={selectNextYear}\n aria-label={`${translations.openNextView} (${translations.year})`}\n disabled={view !== 'day'}\n >\n <ChevronRightIcon />\n </PickersCalendarHeaderIconButton>\n </Box>\n )}\n </Box>\n );\n },\n);\n\nconst PickersCalendarHeaderIconButton: FC<IconButtonProps> = (props) => {\n return (\n <IconButton\n size=\"small\"\n sx={{\n '&.Mui-disabled': {\n opacity: '0',\n },\n '& .MuiSvgIcon-root': {\n fontSize: '20px',\n },\n }}\n {...props}\n />\n );\n};\n\nconst PickersCalendarHeaderButton: FC<ButtonProps & { active?: boolean }> = ({ active, ...rest }) => {\n return (\n <Button\n sx={(theme) => ({\n flexGrow: '1',\n py: 0.75,\n gap: 0.75,\n color: theme.palette.mode === 'dark' ? 'onSurface.os200' : 'onSurface.os700',\n [theme.breakpoints.up('xs')]: {\n ...getTypography('disclaimer1', theme.direction === 'rtl', 'large'),\n },\n '& .MuiButton-icon .MuiSvgIcon-root': {\n color: 'text.primary',\n fontSize: '20px',\n },\n })}\n endIcon={\n <ChevronDownIcon\n sx={{\n transform: active ? 'rotate(-180deg)' : 'rotate(0deg)',\n }}\n />\n }\n size=\"small\"\n variant=\"text\"\n color=\"secondary\"\n {...rest}\n />\n );\n};\n"],"names":["FlowPickersCalendarHeader","forwardRef","view","views","currentMonth","onMonthChange","onViewChange","className","ref","translations","usePickerTranslations","adapter","usePickerAdapter","_jsxs","Box","sx","borderBottom","borderColor","display","alignItems","justifyContent","px","py","boxSizing","minHeight","children","includes","width","_jsx","PickersCalendarHeaderIconButton","onClick","subtract","openPreviousView","month","disabled","ChevronLeftIcon","PickersCalendarHeaderButton","active","formatByString","add","openNextView","ChevronRightIcon","year","props","IconButton","Object","assign","size","opacity","fontSize","_a","rest","__rest","Button","theme","flexGrow","gap","color","palette","mode","breakpoints","up","getTypography","direction","endIcon","ChevronDownIcon","transform","variant"],"mappings":"+XAWaA,E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1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datecalendar.theme.js","sources":["../../../../../src/materialui/datepicker/datecalendar.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { ChevronLeftIcon } from '@/src/components/icon/stroke/ChevronLeftIcon';\nimport { ChevronRightIcon } from '@/src/components/icon/stroke/ChevronRightIcon';\nimport { ChevronDownIcon } from '@/src/components/icon/stroke/ChevronDownIcon';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\nimport { getFocusRingStyle } from '@/src/components/focusring';\nimport { getTypography } from '@/src/materialui/typography/typography.theme';\nimport { FlowPickersCalendarHeader } from './PickersCalendarHeader';\n\n// style for various buttons in calendars (day, month, year)\nexport const flowPickersItemStyle = (theme: Theme) => ({\n transition:\n 'transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out',\n ...getFocusRingStyle(theme, true, 1, ':focus-visible'),\n border: '1px solid transparent',\n [theme.breakpoints.up('xs')]: {\n // switch to 'medium body' typography according to figma\n ...getTypography('body', theme.direction === 'rtl', 'medium'),\n },\n '&:not(.Mui-selected)': {\n // hover\n ...getInteractiveStyle(\n {\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n color: theme.palette.text.primary,\n },\n {\n borderColor: theme.palette.surface.primary,\n backgroundColor: theme.palette.surface.primary,\n color: theme.palette.text.primary,\n },\n undefined,\n undefined,\n ':focus-visible',\n ),\n // disabled\n '&.Mui-disabled': {\n color: theme.palette.disabled.primary,\n },\n },\n // selected\n '&.Mui-selected': {\n '&, &:hover, &:focus': {\n fontWeight: '300',\n borderColor: theme.palette.mode === 'dark' ? theme.palette.brand.secondary : theme.palette.brand.primary,\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette.brand.secondary : theme.palette.brand.primary,\n color: theme.palette.background.primary,\n },\n },\n});\n\nexport const flowDateCalendar: Components<Theme>['MuiDateCalendar'] = {\n defaultProps: {\n slots: {\n leftArrowIcon: ChevronLeftIcon,\n rightArrowIcon: ChevronRightIcon,\n switchViewIcon: ChevronDownIcon,\n calendarHeader: FlowPickersCalendarHeader,\n },\n slotProps: {\n nextIconButton: {\n size: 'small',\n },\n previousIconButton: {\n size: 'small',\n },\n switchViewButton: {\n size: 'small',\n },\n },\n views: ['year', 'month', 'day'],\n },\n styleOverrides: {\n root: {\n // width of whole calendar, increased from 320px, affects mobiledatepicker.theme\n width: '360px',\n // height calculated on largest possible month, affects monthcalendar.theme\n height: '400px',\n maxHeight: '400px',\n // correct time height in DateTime field\n '& ~ .MuiMultiSectionDigitalClock-root.MuiMultiSectionDigitalClock-root': {\n '&, & .MuiMultiSectionDigitalClockSection-root': {\n maxHeight: '400px',\n },\n },\n },\n },\n};\n"],"names":["flowDateCalendar","defaultProps","slots","leftArrowIcon","ChevronLeftIcon","rightArrowIcon","ChevronRightIcon","switchViewIcon","ChevronDownIcon","calendarHeader","FlowPickersCalendarHeader","slotProps","nextIconButton","size","previousIconButton","switchViewButton","views","styleOverrides","root","width","height","maxHeight","theme","Object","assign","transition","getFocusRingStyle","border","breakpoints","up","getTypography","direction","getInteractiveStyle","backgroundColor","borderColor","color","palette","text","primary","surface","undefined","disabled","fontWeight","mode","brand","secondary","background"],"mappings":"2XAWO,MA0CMA,EAAyD,CACpEC,aAAc,CACZC,MAAO,CACLC,cAAeC,EAAAA,gBACfC,eAAgBC,EAAAA,iBAChBC,eAAgBC,EAAAA,gBAChBC,eAAgBC,EAAAA,2BAElBC,UAAW,CACTC,eAAgB,CACdC,KAAM,SAERC,mBAAoB,CAClBD,KAAM,SAERE,iBAAkB,CAChBF,KAAM,UAGVG,MAAO,CAAC,OAAQ,QAAS,QAE3BC,eAAgB,CACdC,KAAM,CAEJC,MAAO,QAEPC,OAAQ,QACRC,UAAW,QAEX,yEAA0E,CACxE,gDAAiD,CAC/CA,UAAW,qEAzEgBC,GAAiBC,OAAAC,OAAAD,OAAAC,OAAA,CACpDC,WACE,6JACCC,EAAAA,kBAAkBJ,GAAO,EAAM,EAAG,mBAAiB,CACtDK,OAAQ,wBACR,CAACL,EAAMM,YAAYC,GAAG,OAAMN,OAAAC,OAAA,CAAA,EAEvBM,EAAAA,cAAc,OAA4B,QAApBR,EAAMS,UAAqB,WAEtD,uBAAsBR,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAEjBQ,sBACD,CACEC,gBAAiB,cACjBC,YAAa,cACbC,MAAOb,EAAMc,QAAQC,KAAKC,SAE5B,CACEJ,YAAaZ,EAAMc,QAAQG,QAAQD,QACnCL,gBAAiBX,EAAMc,QAAQG,QAAQD,QACvCH,MAAOb,EAAMc,QAAQC,KAAKC,cAE5BE,OACAA,EACA,mBACD,CAED,iBAAkB,CAChBL,MAAOb,EAAMc,QAAQK,SAASH,WAIlC,iBAAkB,CAChB,sBAAuB,CACrBI,WAAY,MACZR,YAAoC,SAAvBZ,EAAMc,QAAQO,KAAkBrB,EAAMc,QAAQQ,MAAMC,UAAYvB,EAAMc,QAAQQ,MAAMN,QACjGL,gBAAwC,SAAvBX,EAAMc,QAAQO,KAAkBrB,EAAMc,QAAQQ,MAAMC,UAAYvB,EAAMc,QAAQQ,MAAMN,QACrGH,MAAOb,EAAMc,QAAQU,WAAWR"}
|
|
1
|
+
{"version":3,"file":"datecalendar.theme.js","sources":["../../../../../src/materialui/datepicker/datecalendar.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { ChevronLeftIcon } from '@/src/components/icon/stroke/ChevronLeftIcon';\nimport { ChevronRightIcon } from '@/src/components/icon/stroke/ChevronRightIcon';\nimport { ChevronDownIcon } from '@/src/components/icon/stroke/ChevronDownIcon';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\nimport { getFocusRingStyle } from '@/src/components/focusring';\nimport { getTypography } from '@/src/materialui/typography/typography.theme';\nimport { FlowPickersCalendarHeader } from './PickersCalendarHeader';\n\n// style for various buttons in calendars (day, month, year)\nexport const flowPickersItemStyle = (theme: Theme) => ({\n transition:\n 'transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out',\n ...getFocusRingStyle(theme, true, 1, ':focus-visible'),\n border: '1px solid transparent',\n [theme.breakpoints.up('xs')]: {\n // switch to 'medium body' typography according to figma\n ...getTypography('body', theme.direction === 'rtl', 'medium'),\n },\n '&:not(.Mui-selected)': {\n // hover\n ...getInteractiveStyle(\n {\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n color: theme.palette.text.primary,\n },\n {\n borderColor: theme.palette.surface.primary,\n backgroundColor: theme.palette.surface.primary,\n color: theme.palette.text.primary,\n },\n undefined,\n undefined,\n ':focus-visible',\n ),\n // disabled\n '&.Mui-disabled': {\n color: theme.palette.disabled.primary,\n },\n },\n // selected\n '&.Mui-selected': {\n '&, &:hover, &:focus': {\n fontWeight: '300',\n borderColor: theme.palette.mode === 'dark' ? theme.palette.brand.secondary : theme.palette.brand.primary,\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette.brand.secondary : theme.palette.brand.primary,\n color: theme.palette.background.primary,\n },\n },\n});\n\nexport const flowDateCalendar: Components<Theme>['MuiDateCalendar'] = {\n defaultProps: {\n slots: {\n leftArrowIcon: ChevronLeftIcon,\n rightArrowIcon: ChevronRightIcon,\n switchViewIcon: ChevronDownIcon,\n calendarHeader: FlowPickersCalendarHeader,\n },\n slotProps: {\n nextIconButton: {\n size: 'small',\n },\n previousIconButton: {\n size: 'small',\n },\n switchViewButton: {\n size: 'small',\n },\n },\n views: ['year', 'month', 'day'],\n },\n styleOverrides: {\n root: {\n // width of whole calendar, increased from 320px, affects mobiledatepicker.theme and pickerslayout.theme\n width: '360px',\n // height calculated on largest possible month, affects monthcalendar.theme\n height: '400px',\n maxHeight: '400px',\n // correct time height in DateTime field\n '& ~ .MuiMultiSectionDigitalClock-root.MuiMultiSectionDigitalClock-root': {\n '&, & .MuiMultiSectionDigitalClockSection-root': {\n maxHeight: '400px',\n },\n },\n },\n },\n};\n"],"names":["flowDateCalendar","defaultProps","slots","leftArrowIcon","ChevronLeftIcon","rightArrowIcon","ChevronRightIcon","switchViewIcon","ChevronDownIcon","calendarHeader","FlowPickersCalendarHeader","slotProps","nextIconButton","size","previousIconButton","switchViewButton","views","styleOverrides","root","width","height","maxHeight","theme","Object","assign","transition","getFocusRingStyle","border","breakpoints","up","getTypography","direction","getInteractiveStyle","backgroundColor","borderColor","color","palette","text","primary","surface","undefined","disabled","fontWeight","mode","brand","secondary","background"],"mappings":"2XAWO,MA0CMA,EAAyD,CACpEC,aAAc,CACZC,MAAO,CACLC,cAAeC,EAAAA,gBACfC,eAAgBC,EAAAA,iBAChBC,eAAgBC,EAAAA,gBAChBC,eAAgBC,EAAAA,2BAElBC,UAAW,CACTC,eAAgB,CACdC,KAAM,SAERC,mBAAoB,CAClBD,KAAM,SAERE,iBAAkB,CAChBF,KAAM,UAGVG,MAAO,CAAC,OAAQ,QAAS,QAE3BC,eAAgB,CACdC,KAAM,CAEJC,MAAO,QAEPC,OAAQ,QACRC,UAAW,QAEX,yEAA0E,CACxE,gDAAiD,CAC/CA,UAAW,qEAzEgBC,GAAiBC,OAAAC,OAAAD,OAAAC,OAAA,CACpDC,WACE,6JACCC,EAAAA,kBAAkBJ,GAAO,EAAM,EAAG,mBAAiB,CACtDK,OAAQ,wBACR,CAACL,EAAMM,YAAYC,GAAG,OAAMN,OAAAC,OAAA,CAAA,EAEvBM,EAAAA,cAAc,OAA4B,QAApBR,EAAMS,UAAqB,WAEtD,uBAAsBR,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAEjBQ,sBACD,CACEC,gBAAiB,cACjBC,YAAa,cACbC,MAAOb,EAAMc,QAAQC,KAAKC,SAE5B,CACEJ,YAAaZ,EAAMc,QAAQG,QAAQD,QACnCL,gBAAiBX,EAAMc,QAAQG,QAAQD,QACvCH,MAAOb,EAAMc,QAAQC,KAAKC,cAE5BE,OACAA,EACA,mBACD,CAED,iBAAkB,CAChBL,MAAOb,EAAMc,QAAQK,SAASH,WAIlC,iBAAkB,CAChB,sBAAuB,CACrBI,WAAY,MACZR,YAAoC,SAAvBZ,EAAMc,QAAQO,KAAkBrB,EAAMc,QAAQQ,MAAMC,UAAYvB,EAAMc,QAAQQ,MAAMN,QACjGL,gBAAwC,SAAvBX,EAAMc,QAAQO,KAAkBrB,EAAMc,QAAQQ,MAAMC,UAAYvB,EAAMc,QAAQQ,MAAMN,QACrGH,MAAOb,EAAMc,QAAQU,WAAWR"}
|
|
@@ -2,3 +2,4 @@ import { Components } from '@mui/material/styles';
|
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
3
|
export declare const flowDatePicker: Components<Theme>['MuiDatePicker'];
|
|
4
4
|
export declare const flowDesktopDatePicker: Components<Theme>['MuiDesktopDatePicker'];
|
|
5
|
+
export declare const flowStaticDatePicker: Components<Theme>['MuiStaticDatePicker'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var o=require("../../components/icon/stroke/CloseIcon.js"),e=require("../../components/icon/stroke/CalendarPointIcon.js"),t=require("./PickersActionBar.js");const r={defaultProps:{slots:{openPickerIcon:e.CalendarPointIcon,clearIcon:o.CloseIcon,actionBar:t.FlowPickersActionsBar},slotProps:{openPickerButton:{edge:!1},textField:{variant:"filled"},shortcuts:{sx:{position:"relative",overflow:"auto",width:"230px",pr:2,display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"center","& .MuiListItem-root":{padding:"6px 16px",minHeight:"0"},"&:after":{content:'""',position:"absolute",right:"16px",top:"16px",bottom:"16px",borderRight:1,borderColor:"surface.secondary"}}}},views:["day","month","year"]}},i=r,n=r;exports.flowDatePicker=r,exports.flowDesktopDatePicker=i,exports.flowStaticDatePicker=n;
|
|
2
2
|
//# sourceMappingURL=datepicker.theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datepicker.theme.js","sources":["../../../../../src/materialui/datepicker/datepicker.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\nimport { CalendarPointIcon } from '@/src/components/icon/stroke/CalendarPointIcon';\nimport { FlowPickersActionsBar } from './PickersActionBar';\n\nexport const flowDatePicker: Components<Theme>['MuiDatePicker'] = {\n defaultProps: {\n slots: {\n openPickerIcon: CalendarPointIcon,\n clearIcon: CloseIcon,\n actionBar: FlowPickersActionsBar,\n },\n slotProps: {\n openPickerButton: {\n edge: false,\n },\n textField: {\n variant: 'filled',\n },\n },\n views: ['day', 'month', 'year'],\n },\n};\n\nexport const flowDesktopDatePicker: Components<Theme>['MuiDesktopDatePicker'] =\n flowDatePicker as Components<Theme>['MuiDesktopDatePicker'];\n"],"names":["flowDatePicker","defaultProps","slots","openPickerIcon","CalendarPointIcon","clearIcon","CloseIcon","actionBar","FlowPickersActionsBar","slotProps","openPickerButton","edge","textField","variant","views","flowDesktopDatePicker"],"mappings":"0KAMO,MAAMA,EAAqD,CAChEC,aAAc,CACZC,MAAO,CACLC,eAAgBC,EAAAA,kBAChBC,UAAWC,EAAAA,UACXC,UAAWC,EAAAA,uBAEbC,UAAW,CACTC,iBAAkB,CAChBC,MAAM,GAERC,UAAW,CACTC,QAAS,
|
|
1
|
+
{"version":3,"file":"datepicker.theme.js","sources":["../../../../../src/materialui/datepicker/datepicker.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\nimport { CalendarPointIcon } from '@/src/components/icon/stroke/CalendarPointIcon';\nimport { FlowPickersActionsBar } from './PickersActionBar';\n\nexport const flowDatePicker: Components<Theme>['MuiDatePicker'] = {\n defaultProps: {\n slots: {\n openPickerIcon: CalendarPointIcon,\n clearIcon: CloseIcon,\n actionBar: FlowPickersActionsBar,\n },\n slotProps: {\n openPickerButton: {\n edge: false,\n },\n textField: {\n variant: 'filled',\n },\n // MuiPickersShortcuts does not exist, therefore we have style here\n shortcuts: {\n sx: {\n position: 'relative',\n overflow: 'auto',\n // affects pickerslayout.theme\n width: '230px',\n pr: 2,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'stretch',\n justifyContent: 'center',\n // li items\n '& .MuiListItem-root': {\n padding: '6px 16px',\n minHeight: '0',\n },\n '&:after': {\n content: '\"\"',\n position: 'absolute',\n right: '16px',\n // proportions also changed in pickerslayout.theme\n top: '16px',\n bottom: '16px',\n borderRight: 1,\n borderColor: 'surface.secondary',\n },\n },\n },\n },\n views: ['day', 'month', 'year'],\n },\n};\n\nexport const flowDesktopDatePicker: Components<Theme>['MuiDesktopDatePicker'] =\n flowDatePicker as Components<Theme>['MuiDesktopDatePicker'];\n\nexport const flowStaticDatePicker: Components<Theme>['MuiStaticDatePicker'] =\n flowDatePicker as Components<Theme>['MuiStaticDatePicker'];\n"],"names":["flowDatePicker","defaultProps","slots","openPickerIcon","CalendarPointIcon","clearIcon","CloseIcon","actionBar","FlowPickersActionsBar","slotProps","openPickerButton","edge","textField","variant","shortcuts","sx","position","overflow","width","pr","display","flexDirection","alignItems","justifyContent","padding","minHeight","content","right","top","bottom","borderRight","borderColor","views","flowDesktopDatePicker","flowStaticDatePicker"],"mappings":"0KAMO,MAAMA,EAAqD,CAChEC,aAAc,CACZC,MAAO,CACLC,eAAgBC,EAAAA,kBAChBC,UAAWC,EAAAA,UACXC,UAAWC,EAAAA,uBAEbC,UAAW,CACTC,iBAAkB,CAChBC,MAAM,GAERC,UAAW,CACTC,QAAS,UAGXC,UAAW,CACTC,GAAI,CACFC,SAAU,WACVC,SAAU,OAEVC,MAAO,QACPC,GAAI,EACJC,QAAS,OACTC,cAAe,SACfC,WAAY,UACZC,eAAgB,SAEhB,sBAAuB,CACrBC,QAAS,WACTC,UAAW,KAEb,UAAW,CACTC,QAAS,KACTV,SAAU,WACVW,MAAO,OAEPC,IAAK,OACLC,OAAQ,OACRC,YAAa,EACbC,YAAa,wBAKrBC,MAAO,CAAC,MAAO,QAAS,UAIfC,EACXjC,EAEWkC,EACXlC"}
|
|
@@ -2,3 +2,4 @@ import { Components } from '@mui/material/styles';
|
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
3
|
export declare const flowDateTimePicker: Components<Theme>['MuiDateTimePicker'];
|
|
4
4
|
export declare const flowDesktopDateTimePicker: Components<Theme>['MuiDesktopDateTimePicker'];
|
|
5
|
+
export declare const flowStaticDateTimePicker: Components<Theme>['MuiStaticDateTimePicker'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("./datepicker.theme.js");const
|
|
1
|
+
"use strict";var e=require("./datepicker.theme.js");const t=Object.assign(Object.assign({},e.flowDatePicker),{defaultProps:Object.assign(Object.assign({},e.flowDatePicker.defaultProps),{views:["day","month","year","hours","minutes"]})}),s=t,i=t;exports.flowDateTimePicker=t,exports.flowDesktopDateTimePicker=s,exports.flowStaticDateTimePicker=i;
|
|
2
2
|
//# sourceMappingURL=datetimepicker.theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datetimepicker.theme.js","sources":["../../../../../src/materialui/datepicker/datetimepicker.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { flowDatePicker } from './datepicker.theme';\n\nexport const flowDateTimePicker: Components<Theme>['MuiDateTimePicker'] = {\n ...(flowDatePicker as Components<Theme>['MuiDateTimePicker']),\n defaultProps: {\n ...(flowDatePicker.defaultProps as Components<Theme>['MuiDateTimePicker']['defaultProps']),\n views: ['day', 'month', 'year', 'hours', 'minutes'],\n },\n};\n\nexport const flowDesktopDateTimePicker: Components<Theme>['MuiDesktopDateTimePicker'] =\n flowDateTimePicker as Components<Theme>['MuiDesktopDateTimePicker'];\n"],"names":["flowDateTimePicker","Object","assign","flowDatePicker","defaultProps","views","flowDesktopDateTimePicker"],"mappings":"oDAIO,MAAMA,EAAkBC,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACzBC,EAAAA,gBAAyD,CAC7DC,aAAYH,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACNC,EAAAA,eAAeC,cAAuE,CAC1FC,MAAO,CAAC,MAAO,QAAS,OAAQ,QAAS,eAIhCC,EACXN"}
|
|
1
|
+
{"version":3,"file":"datetimepicker.theme.js","sources":["../../../../../src/materialui/datepicker/datetimepicker.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { flowDatePicker } from './datepicker.theme';\n\nexport const flowDateTimePicker: Components<Theme>['MuiDateTimePicker'] = {\n ...(flowDatePicker as Components<Theme>['MuiDateTimePicker']),\n defaultProps: {\n ...(flowDatePicker.defaultProps as Components<Theme>['MuiDateTimePicker']['defaultProps']),\n views: ['day', 'month', 'year', 'hours', 'minutes'],\n },\n};\n\nexport const flowDesktopDateTimePicker: Components<Theme>['MuiDesktopDateTimePicker'] =\n flowDateTimePicker as Components<Theme>['MuiDesktopDateTimePicker'];\n\nexport const flowStaticDateTimePicker: Components<Theme>['MuiStaticDateTimePicker'] =\n flowDateTimePicker as Components<Theme>['MuiStaticDateTimePicker'];\n"],"names":["flowDateTimePicker","Object","assign","flowDatePicker","defaultProps","views","flowDesktopDateTimePicker","flowStaticDateTimePicker"],"mappings":"oDAIO,MAAMA,EAAkBC,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACzBC,EAAAA,gBAAyD,CAC7DC,aAAYH,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACNC,EAAAA,eAAeC,cAAuE,CAC1FC,MAAO,CAAC,MAAO,QAAS,OAAQ,QAAS,eAIhCC,EACXN,EAEWO,EACXP"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../typography/typography.theme.js");const t={styleOverrides:{weekDayLabel:({theme:t})=>({color:t.palette.text.primary,[t.breakpoints.up("xs")]:Object.assign(Object.assign({},e.getTypography("body","rtl"===t.direction,"medium")),{fontWeight:"400"}),margin:"4px 3px",width:"40px",height:"40px"}),slideTransition:{minHeight:"
|
|
1
|
+
"use strict";var e=require("../typography/typography.theme.js");const t={styleOverrides:{weekDayLabel:({theme:t})=>({color:t.palette.text.primary,[t.breakpoints.up("xs")]:Object.assign(Object.assign({},e.getTypography("body","rtl"===t.direction,"medium")),{fontWeight:"400"}),margin:"4px 3px",width:"40px",height:"40px"}),slideTransition:{minHeight:"294px"}}};exports.flowDayCalendar=t;
|
|
2
2
|
//# sourceMappingURL=daycalendar.theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daycalendar.theme.js","sources":["../../../../../src/materialui/datepicker/daycalendar.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { getTypography } from '@/src/materialui/typography/typography.theme';\n\nexport const flowDayCalendar: Components<Theme>['MuiDayCalendar'] = {\n styleOverrides: {\n // DateCalendar header week days (e.g. M, T, W)\n weekDayLabel: ({ theme }) => ({\n color: theme.palette.text.primary,\n [theme.breakpoints.up('xs')]: {\n ...getTypography('body', theme.direction === 'rtl', 'medium'),\n fontWeight: '400',\n },\n // update proportions to match figma\n margin: '4px 3px',\n width: '40px',\n height: '40px',\n }),\n slideTransition: {\n // increased from 240px to fit content without scroll\n minHeight: '
|
|
1
|
+
{"version":3,"file":"daycalendar.theme.js","sources":["../../../../../src/materialui/datepicker/daycalendar.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { getTypography } from '@/src/materialui/typography/typography.theme';\n\nexport const flowDayCalendar: Components<Theme>['MuiDayCalendar'] = {\n styleOverrides: {\n // DateCalendar header week days (e.g. M, T, W)\n weekDayLabel: ({ theme }) => ({\n color: theme.palette.text.primary,\n [theme.breakpoints.up('xs')]: {\n ...getTypography('body', theme.direction === 'rtl', 'medium'),\n fontWeight: '400',\n },\n // update proportions to match figma\n margin: '4px 3px',\n width: '40px',\n height: '40px',\n }),\n slideTransition: {\n // increased from 240px to fit content without scroll\n minHeight: '294px',\n },\n },\n};\n"],"names":["flowDayCalendar","styleOverrides","weekDayLabel","theme","color","palette","text","primary","breakpoints","up","Object","assign","getTypography","direction","fontWeight","margin","width","height","slideTransition","minHeight"],"mappings":"gEAIO,MAAMA,EAAuD,CAClEC,eAAgB,CAEdC,aAAc,EAAGC,YAAO,CACtBC,MAAOD,EAAME,QAAQC,KAAKC,QAC1B,CAACJ,EAAMK,YAAYC,GAAG,OAAMC,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACvBC,EAAAA,cAAc,OAA4B,QAApBT,EAAMU,UAAqB,WAAS,CAC7DC,WAAY,QAGdC,OAAQ,UACRC,MAAO,OACPC,OAAQ,SAEVC,gBAAiB,CAEfC,UAAW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { LocalizationProvider, DatePicker, DateCalendar, DateTimePicker, DateTimeField, TimePicker, TimeField, TimeClock, DigitalClock, MultiSectionDigitalClock, MobileDatePicker, MobileDateTimePicker, MobileTimePicker, DesktopDatePicker, DesktopDateTimePicker, DesktopTimePicker, } from '@mui/x-date-pickers';
|
|
2
|
-
export type { LocalizationProviderProps, DatePickerProps, DateFieldProps, DateCalendarProps, DateTimePickerProps, DateTimeFieldProps, TimePickerProps, TimeFieldProps, TimeClockProps, DigitalClockProps, MultiSectionDigitalClockProps, MobileDatePickerProps, MobileDateTimePickerProps, MobileTimePickerProps, DesktopDatePickerProps, DesktopDateTimePickerProps, DesktopTimePickerProps, } from '@mui/x-date-pickers';
|
|
1
|
+
export { LocalizationProvider, DatePicker, DateCalendar, DateTimePicker, DateTimeField, TimePicker, TimeField, TimeClock, DigitalClock, MultiSectionDigitalClock, MobileDatePicker, MobileDateTimePicker, MobileTimePicker, DesktopDatePicker, DesktopDateTimePicker, DesktopTimePicker, StaticDatePicker, StaticDateTimePicker, StaticTimePicker, } from '@mui/x-date-pickers';
|
|
2
|
+
export type { LocalizationProviderProps, DatePickerProps, DateFieldProps, DateCalendarProps, DateTimePickerProps, DateTimeFieldProps, TimePickerProps, TimeFieldProps, TimeClockProps, DigitalClockProps, MultiSectionDigitalClockProps, MobileDatePickerProps, MobileDateTimePickerProps, MobileTimePickerProps, DesktopDatePickerProps, DesktopDateTimePickerProps, DesktopTimePickerProps, StaticDatePickerProps, StaticDateTimePickerProps, StaticTimePickerProps, } from '@mui/x-date-pickers';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const t={styleOverrides:{root:{maxWidth:"400px","&:has(.MuiPickersLayout-shortcuts)":{maxWidth:"630px",paddingTop:"16px","&:not(&:has(.MuiPickersLayout-actionBar > *))":{paddingBottom:"16px","& .MuiPickersLayout-shortcuts":{"&:after":{bottom:"0"}}},"& .MuiPickersLayout-shortcuts":{gridRow:"1/4","&:after":{top:"0"}},"& .MuiPickersLayout-actionBar":{gridColumn:"2/4"}}}}};exports.flowPickersLayout=t;
|
|
2
|
+
//# sourceMappingURL=pickerslayout.theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pickerslayout.theme.js","sources":["../../../../../src/materialui/datepicker/pickerslayout.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\n\nexport const flowPickersLayout: Components<Theme>['MuiPickersLayout'] = {\n styleOverrides: {\n root: {\n maxWidth: '400px',\n '&:has(.MuiPickersLayout-shortcuts)': {\n maxWidth: `${230 + 400}px`,\n // extra space\n paddingTop: '16px',\n // has action bar with content\n '&:not(&:has(.MuiPickersLayout-actionBar > *))': {\n paddingBottom: '16px',\n '& .MuiPickersLayout-shortcuts': {\n '&:after': {\n bottom: '0',\n },\n },\n },\n // move into actionBar\n '& .MuiPickersLayout-shortcuts': {\n gridRow: '1/4',\n '&:after': {\n top: '0',\n },\n },\n '& .MuiPickersLayout-actionBar': {\n gridColumn: '2/4',\n },\n },\n },\n },\n};\n"],"names":["flowPickersLayout","styleOverrides","root","maxWidth","paddingTop","paddingBottom","bottom","gridRow","top","gridColumn"],"mappings":"aAGO,MAAMA,EAA2D,CACtEC,eAAgB,CACdC,KAAM,CACJC,SAAU,QACV,qCAAsC,CACpCA,SAAU,QAEVC,WAAY,OAEZ,gDAAiD,CAC/CC,cAAe,OACf,gCAAiC,CAC/B,UAAW,CACTC,OAAQ,OAKd,gCAAiC,CAC/BC,QAAS,MACT,UAAW,CACTC,IAAK,MAGT,gCAAiC,CAC/BC,WAAY"}
|
|
@@ -2,3 +2,4 @@ import { Components } from '@mui/material/styles';
|
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
3
|
export declare const flowTimePicker: Components<Theme>['MuiTimePicker'];
|
|
4
4
|
export declare const flowDesktopTimePicker: Components<Theme>['MuiDesktopTimePicker'];
|
|
5
|
+
export declare const flowStaticTimePicker: Components<Theme>['MuiStaticTimePicker'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var o=require("../../components/icon/stroke/CloseIcon.js"),e=require("../../components/icon/stroke/ClockIcon.js"),c=require("./PickersActionBar.js");const r={defaultProps:{slots:{openPickerIcon:e.ClockIcon,clearIcon:o.CloseIcon,actionBar:c.FlowPickersActionsBar},slotProps:{actionBar:{actions:["accept"]},openPickerButton:{edge:!1},textField:{variant:"filled"}}}},
|
|
1
|
+
"use strict";var o=require("../../components/icon/stroke/CloseIcon.js"),e=require("../../components/icon/stroke/ClockIcon.js"),c=require("./PickersActionBar.js");const r={defaultProps:{slots:{openPickerIcon:e.ClockIcon,clearIcon:o.CloseIcon,actionBar:c.FlowPickersActionsBar},slotProps:{actionBar:{actions:["accept"]},openPickerButton:{edge:!1},textField:{variant:"filled"}}}},t=r,i=r;exports.flowDesktopTimePicker=t,exports.flowStaticTimePicker=i,exports.flowTimePicker=r;
|
|
2
2
|
//# sourceMappingURL=timepicker.theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timepicker.theme.js","sources":["../../../../../src/materialui/datepicker/timepicker.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\nimport { ClockIcon } from '@/src/components/icon/stroke/ClockIcon';\nimport { FlowPickersActionsBar } from './PickersActionBar';\n\nexport const flowTimePicker: Components<Theme>['MuiTimePicker'] = {\n defaultProps: {\n slots: {\n openPickerIcon: ClockIcon,\n clearIcon: CloseIcon,\n actionBar: FlowPickersActionsBar,\n },\n slotProps: {\n actionBar: {\n // keep just select button\n actions: ['accept'],\n },\n openPickerButton: {\n edge: false,\n },\n textField: {\n variant: 'filled',\n },\n },\n },\n};\n\nexport const flowDesktopTimePicker: Components<Theme>['MuiDesktopTimePicker'] =\n flowTimePicker as Components<Theme>['MuiDesktopTimePicker'];\n"],"names":["flowTimePicker","defaultProps","slots","openPickerIcon","ClockIcon","clearIcon","CloseIcon","actionBar","FlowPickersActionsBar","slotProps","actions","openPickerButton","edge","textField","variant","flowDesktopTimePicker"],"mappings":"kKAMO,MAAMA,EAAqD,CAChEC,aAAc,CACZC,MAAO,CACLC,eAAgBC,EAAAA,UAChBC,UAAWC,EAAAA,UACXC,UAAWC,EAAAA,uBAEbC,UAAW,CACTF,UAAW,CAETG,QAAS,CAAC,WAEZC,iBAAkB,CAChBC,MAAM,GAERC,UAAW,CACTC,QAAS,aAMJC,EACXf"}
|
|
1
|
+
{"version":3,"file":"timepicker.theme.js","sources":["../../../../../src/materialui/datepicker/timepicker.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\nimport { ClockIcon } from '@/src/components/icon/stroke/ClockIcon';\nimport { FlowPickersActionsBar } from './PickersActionBar';\n\nexport const flowTimePicker: Components<Theme>['MuiTimePicker'] = {\n defaultProps: {\n slots: {\n openPickerIcon: ClockIcon,\n clearIcon: CloseIcon,\n actionBar: FlowPickersActionsBar,\n },\n slotProps: {\n actionBar: {\n // keep just select button\n actions: ['accept'],\n },\n openPickerButton: {\n edge: false,\n },\n textField: {\n variant: 'filled',\n },\n },\n },\n};\n\nexport const flowDesktopTimePicker: Components<Theme>['MuiDesktopTimePicker'] =\n flowTimePicker as Components<Theme>['MuiDesktopTimePicker'];\n\nexport const flowStaticTimePicker: Components<Theme>['MuiStaticTimePicker'] =\n flowTimePicker as Components<Theme>['MuiStaticTimePicker'];\n"],"names":["flowTimePicker","defaultProps","slots","openPickerIcon","ClockIcon","clearIcon","CloseIcon","actionBar","FlowPickersActionsBar","slotProps","actions","openPickerButton","edge","textField","variant","flowDesktopTimePicker","flowStaticTimePicker"],"mappings":"kKAMO,MAAMA,EAAqD,CAChEC,aAAc,CACZC,MAAO,CACLC,eAAgBC,EAAAA,UAChBC,UAAWC,EAAAA,UACXC,UAAWC,EAAAA,uBAEbC,UAAW,CACTF,UAAW,CAETG,QAAS,CAAC,WAEZC,iBAAkB,CAChBC,MAAM,GAERC,UAAW,CACTC,QAAS,aAMJC,EACXf,EAEWgB,EACXhB"}
|
|
@@ -4,4 +4,4 @@ import { DialogTitleProps } from '@mui/material';
|
|
|
4
4
|
* This component serves as an extended title section for a dialog,
|
|
5
5
|
* including an optional close button displayed when `onClose` prop is provided.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const FlowDialogTitle: FC<DialogTitleProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),s=require("react/jsx-runtime"),r=require("react"),
|
|
1
|
+
"use strict";var e=require("tslib"),s=require("react/jsx-runtime"),r=require("react"),o=require("@mui/material"),n=require("../../components/icon/stroke/CloseIcon.js");const t=r.forwardRef((r,t)=>{var{onClose:i,closeIconButtonProps:l,children:c}=r,a=e.__rest(r,["onClose","closeIconButtonProps","children"]);const x=null!=l?l:{},{sx:u}=x,p=e.__rest(x,["sx"]);return s.jsxs(o.Box,{sx:{display:"flex",justifyContent:c?"space-between":"flex-end",alignItems:"flex-start",gap:1,overflow:"hidden"},children:[c&&s.jsx(o.Typography,Object.assign({component:"h2",ref:t},a,{children:c})),i&&s.jsx(o.IconButton,Object.assign({size:"medium",onClick:e=>i(e,"backdropClick"),"aria-label":"Close",sx:Object.assign({marginRight:"16px",marginTop:"16px"},u)},p,{children:s.jsx(n.CloseIcon,{})}))]})});exports.FlowDialogTitle=t;
|
|
2
2
|
//# sourceMappingURL=DialogTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogTitle.js","sources":["../../../../../src/materialui/dialog/DialogTitle.tsx"],"sourcesContent":["import React, { FC, forwardRef } from 'react';\nimport { DialogTitleProps, Typography, IconButton, Box } from '@mui/material';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\n\n/**\n * This component serves as an extended title section for a dialog,\n * including an optional close button displayed when `onClose` prop is provided.\n */\nexport const
|
|
1
|
+
{"version":3,"file":"DialogTitle.js","sources":["../../../../../src/materialui/dialog/DialogTitle.tsx"],"sourcesContent":["import React, { FC, forwardRef } from 'react';\nimport { DialogTitleProps, Typography, IconButton, Box } from '@mui/material';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\n\n/**\n * This component serves as an extended title section for a dialog,\n * including an optional close button displayed when `onClose` prop is provided.\n */\nexport const FlowDialogTitle: FC<DialogTitleProps> = forwardRef(\n ({ onClose, closeIconButtonProps, children, ...rest }, ref) => {\n const { sx: closeIconButtonSx, ...restCloseIconButton } = closeIconButtonProps ?? {};\n\n return (\n <Box\n sx={{\n display: 'flex',\n justifyContent: children ? 'space-between' : 'flex-end',\n alignItems: 'flex-start',\n gap: 1,\n overflow: 'hidden',\n }}\n >\n {children && (\n <Typography component=\"h2\" ref={ref} {...rest}>\n {children}\n </Typography>\n )}\n {onClose && (\n <IconButton\n size=\"medium\"\n onClick={(e) => onClose(e, 'backdropClick')}\n aria-label=\"Close\"\n sx={{\n // move to the right side\n marginRight: '16px',\n marginTop: '16px',\n ...closeIconButtonSx,\n }}\n {...restCloseIconButton}\n >\n <CloseIcon />\n </IconButton>\n )}\n </Box>\n );\n },\n);\n"],"names":["FlowDialogTitle","forwardRef","_a","ref","onClose","closeIconButtonProps","children","rest","__rest","_b","sx","closeIconButtonSx","restCloseIconButton","_jsxs","Box","display","justifyContent","alignItems","gap","overflow","_jsx","Typography","Object","assign","component","IconButton","size","onClick","e","marginRight","marginTop","CloseIcon"],"mappings":"wKAQO,MAAMA,EAAwCC,EAAAA,WACnD,CAACC,EAAsDC,SAAtDC,QAAEA,EAAOC,qBAAEA,EAAoBC,SAAEA,KAAaC,EAAIC,EAAAA,OAAAN,EAAlD,CAAA,UAAA,uBAAA,aACC,MAAMO,EAAoDJ,QAAAA,EAAwB,IAA1EK,GAAIC,GAAiBF,EAAKG,EAAmBJ,EAAAA,OAAAC,EAA/C,CAAA,OAEN,OACEI,EAAAA,KAACC,MAAG,CACFJ,GAAI,CACFK,QAAS,OACTC,eAAgBV,EAAW,gBAAkB,WAC7CW,WAAY,aACZC,IAAK,EACLC,SAAU,UACXb,SAAA,CAEAA,GACCc,EAAAA,IAACC,EAAAA,WAAUC,OAAAC,OAAA,CAACC,UAAU,KAAKrB,IAAKA,GAASI,EAAI,CAAAD,SAC1CA,KAGJF,GACCgB,EAAAA,IAACK,EAAAA,WAAUH,OAAAC,OAAA,CACTG,KAAK,SACLC,QAAUC,GAAMxB,EAAQwB,EAAG,iBAAgB,aAChC,QACXlB,GAAEY,OAAAC,OAAA,CAEAM,YAAa,OACbC,UAAW,QACRnB,IAEDC,EAAmB,CAAAN,SAEvBc,EAAAA,IAACW,EAAAA,UAAS,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e={defaultProps:{variant:"h3",component:require("./DialogTitle.js").
|
|
1
|
+
"use strict";const e={defaultProps:{variant:"h3",component:require("./DialogTitle.js").FlowDialogTitle},styleOverrides:{root:({theme:e})=>({minWidth:"0",flexShrink:"1",flexGrow:"1",padding:"24px 40px 8px",[e.breakpoints.down("md")]:{paddingLeft:"24px",paddingRight:"24px"}})}};exports.flowDialogTitle=e;
|
|
2
2
|
//# sourceMappingURL=dialogTitle.theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogTitle.theme.js","sources":["../../../../../src/materialui/dialog/dialogTitle.theme.ts"],"sourcesContent":["import { Components, Theme } from '@mui/material/styles';\nimport {
|
|
1
|
+
{"version":3,"file":"dialogTitle.theme.js","sources":["../../../../../src/materialui/dialog/dialogTitle.theme.ts"],"sourcesContent":["import { Components, Theme } from '@mui/material/styles';\nimport { FlowDialogTitle } from './DialogTitle';\n\nexport const flowDialogTitle: Components<Theme>['MuiDialogTitle'] = {\n defaultProps: {\n variant: 'h3',\n component: FlowDialogTitle,\n },\n styleOverrides: {\n root: ({ theme }) => ({\n minWidth: '0',\n flexShrink: '1',\n flexGrow: '1',\n padding: '24px 40px 8px',\n [theme.breakpoints.down('md')]: {\n paddingLeft: '24px',\n paddingRight: '24px',\n },\n }),\n },\n};\n"],"names":["flowDialogTitle","defaultProps","variant","component","FlowDialogTitle","styleOverrides","root","theme","minWidth","flexShrink","flexGrow","padding","breakpoints","down","paddingLeft","paddingRight"],"mappings":"aAGO,MAAMA,EAAuD,CAClEC,aAAc,CACZC,QAAS,KACTC,sCAAWC,iBAEbC,eAAgB,CACdC,KAAM,EAAGC,YAAO,CACdC,SAAU,IACVC,WAAY,IACZC,SAAU,IACVC,QAAS,gBACT,CAACJ,EAAMK,YAAYC,KAAK,OAAQ,CAC9BC,YAAa,OACbC,aAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../../components/focusring/focusring.js");const t={defaultProps:{min:0,max:100,step:1,valueLabelDisplay:"auto",marks:!1},styleOverrides:{root:({theme:e,ownerState:t})=>Object.assign(Object.assign({display:"block",borderRadius:"0"},"vertical"===t.orientation?{width:"6px",height:"320px"}:{height:"6px"}),{"&.Mui-disabled":{"& .MuiSlider-rail":{color:e.palette.disabled.primary},"& .MuiSlider-track":{color:e.palette.disabled.tertiary},"& .MuiSlider-mark":{backgroundColor:"dark"===e.palette.mode?e.palette.onSurface.os900:e.palette.onSurface.os0,"&.MuiSlider-markActive":{backgroundColor:"dark"===e.palette.mode?e.palette.onSurface.os900:e.palette.onSurface.os0}},"& .MuiSlider-thumb":{borderColor:e.palette.disabled.tertiary}}}),rail:({theme:e})=>({borderRadius:"6px",opacity:"1",color:e.palette.onSurface.os500,transform:"translate3d(0px, -50%, 0px)"}),track:({theme:e})=>({borderRadius:"6px",border:"none",color:"dark"===e.palette.mode?e.palette.brand.secondary:e.palette.brand.primary,transform:"translate3d(0px, -50%, 0px)"}),mark:({theme:e})=>({height:"4px",width:"4px",borderRadius:"4px",opacity:"1",backgroundColor:"dark"===e.palette.mode?e.palette.onSurface.os900:e.palette.onSurface.os0,"&.MuiSlider-markActive":{backgroundColor:"dark"===e.palette.mode?e.palette.onSurface.os900:e.palette.onSurface.os0}}),thumb:({theme:t,ownerState:
|
|
1
|
+
"use strict";var e=require("../../components/focusring/focusring.js");const t={defaultProps:{min:0,max:100,step:1,valueLabelDisplay:"auto",marks:!1},styleOverrides:{root:({theme:e,ownerState:t})=>Object.assign(Object.assign({display:"block",borderRadius:"0",padding:"13px 0"},"vertical"===t.orientation?{width:"6px",height:"320px"}:{height:"6px"}),{"&.Mui-disabled":{"& .MuiSlider-rail":{color:e.palette.disabled.primary},"& .MuiSlider-track":{color:e.palette.disabled.tertiary},"& .MuiSlider-mark":{backgroundColor:"dark"===e.palette.mode?e.palette.onSurface.os900:e.palette.onSurface.os0,"&.MuiSlider-markActive":{backgroundColor:"dark"===e.palette.mode?e.palette.onSurface.os900:e.palette.onSurface.os0}},"& .MuiSlider-thumb":{borderColor:e.palette.disabled.tertiary}}}),rail:({theme:e})=>({borderRadius:"6px",opacity:"1",color:e.palette.onSurface.os500,transform:"translate3d(0px, -50%, 0px)"}),track:({theme:e})=>({borderRadius:"6px",border:"none",color:"dark"===e.palette.mode?e.palette.brand.secondary:e.palette.brand.primary,transform:"translate3d(0px, -50%, 0px)"}),mark:({theme:e})=>({height:"4px",width:"4px",borderRadius:"4px",opacity:"1",backgroundColor:"dark"===e.palette.mode?e.palette.onSurface.os900:e.palette.onSurface.os0,"&.MuiSlider-markActive":{backgroundColor:"dark"===e.palette.mode?e.palette.onSurface.os900:e.palette.onSurface.os0}}),thumb:({theme:t,ownerState:a})=>Object.assign(Object.assign(Object.assign(Object.assign({},"vertical"===a.orientation?{width:"20px",height:"40px"}:{width:"40px",height:"20px"}),{borderRadius:"20px",backgroundColor:t.palette.onSurface.os0,border:`1px solid ${t.palette.onSurface.os900}`,"&:after":{width:"40px",height:"40px",borderRadius:"1000px"}}),e.getFocusRingStyle(t,!0,1)),{transition:"box-shadow 0.3s ease-out","&, &:hover, &.Mui-active":{boxShadow:"none"},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${t.palette.background.primary}`,"&.Mui-active":{boxShadow:"none",outline:`0px solid ${t.palette.background.primary}`,"&:before":{boxShadow:"none"}}}}),valueLabel:({theme:e})=>({maxWidth:"none",top:"-12px",backgroundColor:e.palette.text.primary,color:e.palette.background.primary,borderRadius:"2px",padding:"8px 12px",[e.breakpoints.up("xs")]:{fontSize:"12px",lineHeight:"16px",fontWeight:"400"}})}};exports.flowSlider=t,exports.flowThumbHeight=20,exports.flowThumbWidth=40;
|
|
2
2
|
//# sourceMappingURL=slider.theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.theme.js","sources":["../../../../../src/materialui/slider/slider.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { getFocusRingStyle } from '@/src/components/focusring/focusring';\n\n// make sure the value can be divided by 2\nexport const flowThumbWidth = 40;\nexport const flowThumbHeight = 20;\n\nexport const flowSlider: Components<Theme>['MuiSlider'] = {\n defaultProps: {\n // value properties\n min: 0,\n max: 100,\n step: 1,\n // display label with hover\n valueLabelDisplay: 'auto',\n // disable auto-generated marks, it is recommended to use ./getSliderMarks.ts function\n marks: false,\n },\n styleOverrides: {\n root: ({ theme, ownerState }) => ({\n display: 'block',\n borderRadius: '0',\n ...(ownerState.orientation === 'vertical'\n ? {\n width: '6px',\n height: '320px',\n }\n : {\n height: '6px',\n }),\n // disabled state\n '&.Mui-disabled': {\n '& .MuiSlider-rail': {\n color: theme.palette.disabled.primary,\n },\n '& .MuiSlider-track': {\n color: theme.palette.disabled.tertiary,\n },\n '& .MuiSlider-mark': {\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette.onSurface.os900 : theme.palette.onSurface.os0,\n '&.MuiSlider-markActive': {\n backgroundColor:\n theme.palette.mode === 'dark' ? theme.palette.onSurface.os900 : theme.palette.onSurface.os0,\n },\n },\n '& .MuiSlider-thumb': {\n borderColor: theme.palette.disabled.tertiary,\n },\n },\n }),\n // whole rail bellow the thumb\n rail: ({ theme }) => ({\n borderRadius: '6px',\n opacity: '1',\n color: theme.palette.onSurface.os500,\n // add translate3d, in addition to translateY(-50%), to prevent overflowing borderRadius\n transform: 'translate3d(0px, -50%, 0px)',\n }),\n // track marking selected segment\n track: ({ theme }) => ({\n borderRadius: '6px',\n border: 'none',\n color: theme.palette.mode === 'dark' ? theme.palette.brand.secondary : theme.palette.brand.primary,\n // add translate3d, in addition to translateY(-50%), to prevent overflowing borderRadius\n transform: 'translate3d(0px, -50%, 0px)',\n }),\n // dot on the rail and track\n mark: ({ theme }) => ({\n height: '4px',\n width: '4px',\n borderRadius: '4px',\n opacity: '1',\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette.onSurface.os900 : theme.palette.onSurface.os0,\n '&.MuiSlider-markActive': {\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette.onSurface.os900 : theme.palette.onSurface.os0,\n },\n }),\n // pointer\n thumb: ({ theme, ownerState }) => ({\n ...(ownerState.orientation === 'vertical'\n ? {\n width: `${flowThumbHeight}px`,\n height: `${flowThumbWidth}px`,\n }\n : {\n width: `${flowThumbWidth}px`,\n height: `${flowThumbHeight}px`,\n }),\n borderRadius: `${flowThumbHeight}px`,\n backgroundColor: theme.palette.onSurface.os0,\n border: `1px solid ${theme.palette.onSurface.os900}`,\n // focus style\n ...getFocusRingStyle(theme, true, 1),\n // extra shadow around\n transition: 'box-shadow 0.3s ease-out',\n '&, &:hover, &.Mui-active': {\n boxShadow: `none`,\n },\n '&.Mui-focusVisible': {\n // extra white border\n boxShadow: `0 0 0 2px ${theme.palette.background.primary}`,\n // hide focus during dragging\n '&.Mui-active': {\n boxShadow: 'none',\n outline: `0px solid ${theme.palette.background.primary}`,\n '&:before': {\n boxShadow: 'none',\n },\n },\n },\n }),\n // label above thumb\n valueLabel: ({ theme }) => ({\n maxWidth: 'none',\n // increase space between thumb and tooltip\n top: '-12px',\n // style box\n backgroundColor: theme.palette.text.primary,\n color: theme.palette.background.primary,\n borderRadius: '2px',\n padding: '8px 12px',\n // custom font-size\n [theme.breakpoints.up('xs')]: {\n fontSize: '12px',\n lineHeight: '16px',\n fontWeight: '400',\n },\n }),\n },\n};\n"],"names":["flowSlider","defaultProps","min","max","step","valueLabelDisplay","marks","styleOverrides","root","theme","ownerState","
|
|
1
|
+
{"version":3,"file":"slider.theme.js","sources":["../../../../../src/materialui/slider/slider.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { getFocusRingStyle } from '@/src/components/focusring/focusring';\n\n// make sure the value can be divided by 2\nexport const flowThumbWidth = 40;\nexport const flowThumbHeight = 20;\n\nexport const flowSlider: Components<Theme>['MuiSlider'] = {\n defaultProps: {\n // value properties\n min: 0,\n max: 100,\n step: 1,\n // display label with hover\n valueLabelDisplay: 'auto',\n // disable auto-generated marks, it is recommended to use ./getSliderMarks.ts function\n marks: false,\n },\n styleOverrides: {\n root: ({ theme, ownerState }) => ({\n display: 'block',\n borderRadius: '0',\n // 32px height\n padding: '13px 0',\n ...(ownerState.orientation === 'vertical'\n ? {\n width: '6px',\n height: '320px',\n }\n : {\n height: '6px',\n }),\n // disabled state\n '&.Mui-disabled': {\n '& .MuiSlider-rail': {\n color: theme.palette.disabled.primary,\n },\n '& .MuiSlider-track': {\n color: theme.palette.disabled.tertiary,\n },\n '& .MuiSlider-mark': {\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette.onSurface.os900 : theme.palette.onSurface.os0,\n '&.MuiSlider-markActive': {\n backgroundColor:\n theme.palette.mode === 'dark' ? theme.palette.onSurface.os900 : theme.palette.onSurface.os0,\n },\n },\n '& .MuiSlider-thumb': {\n borderColor: theme.palette.disabled.tertiary,\n },\n },\n }),\n // whole rail bellow the thumb\n rail: ({ theme }) => ({\n borderRadius: '6px',\n opacity: '1',\n color: theme.palette.onSurface.os500,\n // add translate3d, in addition to translateY(-50%), to prevent overflowing borderRadius\n transform: 'translate3d(0px, -50%, 0px)',\n }),\n // track marking selected segment\n track: ({ theme }) => ({\n borderRadius: '6px',\n border: 'none',\n color: theme.palette.mode === 'dark' ? theme.palette.brand.secondary : theme.palette.brand.primary,\n // add translate3d, in addition to translateY(-50%), to prevent overflowing borderRadius\n transform: 'translate3d(0px, -50%, 0px)',\n }),\n // dot on the rail and track\n mark: ({ theme }) => ({\n height: '4px',\n width: '4px',\n borderRadius: '4px',\n opacity: '1',\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette.onSurface.os900 : theme.palette.onSurface.os0,\n '&.MuiSlider-markActive': {\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette.onSurface.os900 : theme.palette.onSurface.os0,\n },\n }),\n // pointer\n thumb: ({ theme, ownerState }) => ({\n ...(ownerState.orientation === 'vertical'\n ? {\n width: `${flowThumbHeight}px`,\n height: `${flowThumbWidth}px`,\n }\n : {\n width: `${flowThumbWidth}px`,\n height: `${flowThumbHeight}px`,\n }),\n borderRadius: `${flowThumbHeight}px`,\n backgroundColor: theme.palette.onSurface.os0,\n border: `1px solid ${theme.palette.onSurface.os900}`,\n // hitbox target\n '&:after': {\n width: `${flowThumbWidth}px`,\n height: `${flowThumbWidth}px`,\n borderRadius: '1000px',\n },\n // focus style\n ...getFocusRingStyle(theme, true, 1),\n // extra shadow around\n transition: 'box-shadow 0.3s ease-out',\n '&, &:hover, &.Mui-active': {\n boxShadow: `none`,\n },\n '&.Mui-focusVisible': {\n // extra white border\n boxShadow: `0 0 0 2px ${theme.palette.background.primary}`,\n // hide focus during dragging\n '&.Mui-active': {\n boxShadow: 'none',\n outline: `0px solid ${theme.palette.background.primary}`,\n '&:before': {\n boxShadow: 'none',\n },\n },\n },\n }),\n // label above thumb\n valueLabel: ({ theme }) => ({\n maxWidth: 'none',\n // increase space between thumb and tooltip\n top: '-12px',\n // style box\n backgroundColor: theme.palette.text.primary,\n color: theme.palette.background.primary,\n borderRadius: '2px',\n padding: '8px 12px',\n // custom font-size\n [theme.breakpoints.up('xs')]: {\n fontSize: '12px',\n lineHeight: '16px',\n fontWeight: '400',\n },\n }),\n },\n};\n"],"names":["flowSlider","defaultProps","min","max","step","valueLabelDisplay","marks","styleOverrides","root","theme","ownerState","display","borderRadius","padding","orientation","width","height","color","palette","disabled","primary","tertiary","backgroundColor","mode","onSurface","os900","os0","borderColor","rail","opacity","os500","transform","track","border","brand","secondary","mark","thumb","getFocusRingStyle","transition","boxShadow","background","outline","valueLabel","maxWidth","top","text","breakpoints","up","fontSize","lineHeight","fontWeight"],"mappings":"sEAKO,MAGMA,EAA6C,CACxDC,aAAc,CAEZC,IAAK,EACLC,IAAK,IACLC,KAAM,EAENC,kBAAmB,OAEnBC,OAAO,GAETC,eAAgB,CACdC,KAAM,EAAGC,QAAOC,6CACdC,QAAS,QACTC,aAAc,IAEdC,QAAS,UACsB,aAA3BH,EAAWI,YACX,CACEC,MAAO,MACPC,OAAQ,SAEV,CACEA,OAAQ,QACR,CAEN,iBAAkB,CAChB,oBAAqB,CACnBC,MAAOR,EAAMS,QAAQC,SAASC,SAEhC,qBAAsB,CACpBH,MAAOR,EAAMS,QAAQC,SAASE,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/B,EAAMS,QAAQuB,WAAWrB,UAEjD,eAAgB,CACdoB,UAAW,OACXE,QAAS,aAAajC,EAAMS,QAAQuB,WAAWrB,UAC/C,WAAY,CACVoB,UAAW,YAMnBG,WAAY,EAAGlC,YAAO,CACpBmC,SAAU,OAEVC,IAAK,QAELvB,gBAAiBb,EAAMS,QAAQ4B,KAAK1B,QACpCH,MAAOR,EAAMS,QAAQuB,WAAWrB,QAChCR,aAAc,MACdC,QAAS,WAET,CAACJ,EAAMsC,YAAYC,GAAG,OAAQ,CAC5BC,SAAU,OACVC,WAAY,OACZC,WAAY,wDAhIW,0BADD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),
|
|
1
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),r=require("@mui/material"),o=require("../../components/icon/stroke/ChevronLeftIcon.js"),s=require("../../components/icon/stroke/ChevronRightIcon.js");exports.TabsScrollButton=n=>{var{direction:i,slots:l,slotProps:c,ownerState:a}=n,u=e.__rest(n,["direction","slots","slotProps","ownerState"]);return t.jsx(r.IconButton,Object.assign({"aria-label":"left"===i?"Scroll left":"Scroll right","data-testid":`TabsScrollButton-${i}`,size:"small",sx:{m:"4px"}},u,{children:"left"===i?t.jsx(o.ChevronLeftIcon,{}):t.jsx(s.ChevronRightIcon,{})}))};
|
|
2
2
|
//# sourceMappingURL=TabsScrollButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsScrollButton.js","sources":["../../../../../src/materialui/tabs/TabsScrollButton.tsx"],"sourcesContent":["import { IconButton } from '@mui/material';\nimport { ChevronLeftIcon } from '@/src/components/icon/stroke/ChevronLeftIcon';\nimport { ChevronRightIcon } from '@/src/components/icon/stroke/ChevronRightIcon';\n\n/**\n * This component renders a scroll button that changes based on the scroll direction\n */\nexport const TabsScrollButton = ({ direction, slots, slotProps, ownerState, ...rest }) => {\n return (\n <IconButton\n aria-label={direction === 'left' ? 'Scroll left' : 'Scroll right'}\n size=\"small\"\n sx={{ m: '4px' }}\n {...rest}\n >\n {direction === 'left' ? <ChevronLeftIcon /> : <ChevronRightIcon />}\n </IconButton>\n );\n};\n"],"names":["_a","direction","slots","slotProps","ownerState","rest","__rest","_jsx","IconButton","Object","assign","size","sx","m","ChevronLeftIcon","ChevronRightIcon"],"mappings":"kPAOiCA,IAAA,IAAAC,UAAEA,EAASC,MAAEA,EAAKC,UAAEA,EAASC,WAAEA,GAAUJ,EAAKK,EAAIC,EAAAA,OAAAN,EAAlD,CAAA,YAAA,QAAA,YAAA,eAC/B,OACEO,EAAAA,IAACC,EAAAA,WAAUC,OAAAC,OAAA,CAAA,aACiB,SAAdT,EAAuB,cAAgB,
|
|
1
|
+
{"version":3,"file":"TabsScrollButton.js","sources":["../../../../../src/materialui/tabs/TabsScrollButton.tsx"],"sourcesContent":["import { IconButton } from '@mui/material';\nimport { ChevronLeftIcon } from '@/src/components/icon/stroke/ChevronLeftIcon';\nimport { ChevronRightIcon } from '@/src/components/icon/stroke/ChevronRightIcon';\n\n/**\n * This component renders a scroll button that changes based on the scroll direction\n */\nexport const TabsScrollButton = ({ direction, slots, slotProps, ownerState, ...rest }) => {\n return (\n <IconButton\n aria-label={direction === 'left' ? 'Scroll left' : 'Scroll right'}\n data-testid={`TabsScrollButton-${direction}`}\n size=\"small\"\n sx={{ m: '4px' }}\n {...rest}\n >\n {direction === 'left' ? <ChevronLeftIcon /> : <ChevronRightIcon />}\n </IconButton>\n );\n};\n"],"names":["_a","direction","slots","slotProps","ownerState","rest","__rest","_jsx","IconButton","Object","assign","size","sx","m","children","ChevronLeftIcon","ChevronRightIcon"],"mappings":"kPAOiCA,IAAA,IAAAC,UAAEA,EAASC,MAAEA,EAAKC,UAAEA,EAASC,WAAEA,GAAUJ,EAAKK,EAAIC,EAAAA,OAAAN,EAAlD,CAAA,YAAA,QAAA,YAAA,eAC/B,OACEO,EAAAA,IAACC,EAAAA,WAAUC,OAAAC,OAAA,CAAA,aACiB,SAAdT,EAAuB,cAAgB,eAAc,cACpD,oBAAoBA,IACjCU,KAAK,QACLC,GAAI,CAAEC,EAAG,QACLR,EAAI,CAAAS,SAEO,SAAdb,EAAuBM,EAAAA,IAACQ,EAAAA,gBAAe,CAAA,GAAMR,EAAAA,IAACS,EAAAA,iBAAgB,CAAA"}
|