@coveord/plasma-mantine 52.13.0 → 52.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/.eslintrc.js +1 -1
  2. package/.turbo/turbo-build.log +3 -3
  3. package/.turbo/turbo-test.log +31 -31
  4. package/__mocks__/@monaco-editor/react.tsx +2 -2
  5. package/dist/.tsbuildinfo +1 -1
  6. package/dist/cjs/components/button/Button.js.map +1 -1
  7. package/dist/cjs/components/button/ButtonWithDisabledTooltip.js.map +1 -1
  8. package/dist/cjs/components/collection/Collection.js.map +1 -1
  9. package/dist/cjs/components/date-range-picker/DateRangePickerPresetSelect.js.map +1 -1
  10. package/dist/cjs/components/header/Header.js.map +1 -1
  11. package/dist/cjs/components/inline-confirm/InlineConfirm.js.map +1 -1
  12. package/dist/cjs/components/inline-confirm/InlineConfirmButton.js.map +1 -1
  13. package/dist/cjs/components/inline-confirm/InlineConfirmMenuItem.js.map +1 -1
  14. package/dist/cjs/components/menu/Menu.js.map +1 -1
  15. package/dist/cjs/components/modal-wizard/ModalWizard.js.map +1 -1
  16. package/dist/cjs/components/table/layouts/RowLayout.d.ts.map +1 -1
  17. package/dist/cjs/components/table/layouts/RowLayout.js +2 -1
  18. package/dist/cjs/components/table/layouts/RowLayout.js.map +1 -1
  19. package/dist/cjs/components/table/useRowSelection.js.map +1 -1
  20. package/dist/cjs/form/FormProvider.js.map +1 -1
  21. package/dist/cjs/form/useForm.js.map +1 -1
  22. package/dist/cjs/theme/Theme.d.ts.map +1 -1
  23. package/dist/cjs/theme/Theme.js +4 -2
  24. package/dist/cjs/theme/Theme.js.map +1 -1
  25. package/dist/cjs/utils/overrideComponent.js.map +1 -1
  26. package/dist/esm/components/button/Button.js.map +1 -1
  27. package/dist/esm/components/button/ButtonWithDisabledTooltip.js.map +1 -1
  28. package/dist/esm/components/collection/Collection.js.map +1 -1
  29. package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.js.map +1 -1
  30. package/dist/esm/components/header/Header.js.map +1 -1
  31. package/dist/esm/components/inline-confirm/InlineConfirm.js.map +1 -1
  32. package/dist/esm/components/inline-confirm/InlineConfirmButton.js.map +1 -1
  33. package/dist/esm/components/inline-confirm/InlineConfirmMenuItem.js.map +1 -1
  34. package/dist/esm/components/menu/Menu.js.map +1 -1
  35. package/dist/esm/components/modal-wizard/ModalWizard.js.map +1 -1
  36. package/dist/esm/components/table/layouts/RowLayout.d.ts.map +1 -1
  37. package/dist/esm/components/table/layouts/RowLayout.js +2 -1
  38. package/dist/esm/components/table/layouts/RowLayout.js.map +1 -1
  39. package/dist/esm/components/table/useRowSelection.js.map +1 -1
  40. package/dist/esm/form/FormProvider.js.map +1 -1
  41. package/dist/esm/form/useForm.js.map +1 -1
  42. package/dist/esm/theme/Theme.d.ts.map +1 -1
  43. package/dist/esm/theme/Theme.js +4 -2
  44. package/dist/esm/theme/Theme.js.map +1 -1
  45. package/dist/esm/utils/overrideComponent.js.map +1 -1
  46. package/package.json +6 -4
  47. package/src/components/button/Button.tsx +1 -1
  48. package/src/components/button/ButtonWithDisabledTooltip.tsx +2 -2
  49. package/src/components/button/__tests__/Button.spec.tsx +6 -6
  50. package/src/components/button/__tests__/ButtonWithDisabledTooltip.spec.tsx +3 -3
  51. package/src/components/collection/Collection.tsx +1 -1
  52. package/src/components/date-range-picker/DateRangePickerPresetSelect.tsx +1 -1
  53. package/src/components/date-range-picker/__tests__/DateRangePickerInlineCalendar.spec.tsx +8 -4
  54. package/src/components/date-range-picker/__tests__/DateRangePickerPresetSelect.spec.tsx +4 -4
  55. package/src/components/header/Header.tsx +1 -1
  56. package/src/components/header/__tests__/Header.spec.tsx +4 -4
  57. package/src/components/inline-confirm/InlineConfirm.tsx +1 -1
  58. package/src/components/inline-confirm/InlineConfirmButton.tsx +1 -1
  59. package/src/components/inline-confirm/InlineConfirmMenuItem.tsx +1 -1
  60. package/src/components/inline-confirm/__tests__/InlineConfirm.spec.tsx +5 -5
  61. package/src/components/menu/Menu.tsx +1 -1
  62. package/src/components/modal-wizard/ModalWizard.tsx +3 -3
  63. package/src/components/modal-wizard/__tests__/ModalWizard.spec.tsx +21 -21
  64. package/src/components/prompt/__tests__/Prompt.spec.tsx +2 -2
  65. package/src/components/sticky-footer/__tests__/StickyFooter.spec.tsx +1 -1
  66. package/src/components/table/__tests__/Table.spec.tsx +15 -15
  67. package/src/components/table/__tests__/TableActions.spec.tsx +3 -3
  68. package/src/components/table/__tests__/TableDateRangePicker.spec.tsx +2 -2
  69. package/src/components/table/__tests__/TableFilter.spec.tsx +7 -7
  70. package/src/components/table/__tests__/TableLastUpdated.spec.tsx +2 -2
  71. package/src/components/table/__tests__/TablePagination.spec.tsx +6 -6
  72. package/src/components/table/__tests__/TablePerPage.spec.tsx +10 -10
  73. package/src/components/table/__tests__/TablePredicate.spec.tsx +2 -2
  74. package/src/components/table/layouts/RowLayout.tsx +1 -0
  75. package/src/components/table/layouts/__tests__/RowLayout.spec.tsx +16 -16
  76. package/src/components/table/useRowSelection.ts +4 -4
  77. package/src/form/FormProvider.tsx +2 -2
  78. package/src/form/useForm.ts +1 -1
  79. package/src/theme/Theme.tsx +2 -0
  80. package/src/utils/overrideComponent.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,oBAAoB,EAK5B,MAAM,eAAe,CAAC;AAIvB,eAAO,MAAM,WAAW,EAAE,oBA0XzB,CAAC"}
1
+ {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,oBAAoB,EAK5B,MAAM,eAAe,CAAC;AAIvB,eAAO,MAAM,WAAW,EAAE,oBA4XzB,CAAC"}
@@ -177,14 +177,16 @@ export var plasmaTheme = {
177
177
  description: {
178
178
  fontSize: theme.fontSizes.sm,
179
179
  color: theme.colors.gray[7],
180
- marginBottom: theme.spacing.xs
180
+ marginBottom: theme.spacing.xs,
181
+ lineHeight: theme.lineHeight
181
182
  },
182
183
  invalid: {
183
184
  color: theme.colors.red[9],
184
185
  borderColor: theme.colors.red[6]
185
186
  },
186
187
  error: {
187
- color: theme.colors.red[9]
188
+ color: theme.colors.red[9],
189
+ lineHeight: theme.lineHeight
188
190
  }
189
191
  };
190
192
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/theme/Theme.tsx"],"sourcesContent":["import {CheckSize16Px, InfoSize24Px} from '@coveord/plasma-react-icons';\nimport {color} from '@coveord/plasma-tokens';\nimport {\n getSize,\n rem,\n type MantineThemeOverride,\n type NotificationProps,\n type StepperStylesParams,\n type TabsStylesParams,\n getStylesRef,\n} from '@mantine/core';\n\nimport {PlasmaColors} from './PlasmaColors';\n\nexport const plasmaTheme: MantineThemeOverride = {\n // These are overrides over https://github.com/mantinedev/mantine/blob/master/src/mantine-styles/src/theme/default-theme.ts\n colorScheme: 'light',\n fontFamily: 'canada-type-gibson, sans-serif',\n black: color.primary.gray[9],\n defaultRadius: 8,\n lineHeight: 1.5,\n spacing: {\n xs: '8px',\n sm: '16px',\n md: '24px',\n lg: '32px',\n xl: '40px',\n },\n primaryColor: 'action',\n headings: {\n fontFamily: 'canada-type-gibson, sans-serif',\n fontWeight: 500,\n sizes: {\n h1: {fontSize: '48px', lineHeight: undefined, fontWeight: 300},\n h2: {fontSize: '32px', lineHeight: undefined, fontWeight: 500},\n h3: {fontSize: '24px', lineHeight: undefined, fontWeight: 500},\n h4: {fontSize: '18px', lineHeight: undefined, fontWeight: 300},\n h5: {fontSize: '14px', lineHeight: undefined, fontWeight: 500},\n h6: {fontSize: '12px', lineHeight: undefined, fontWeight: 500},\n },\n },\n shadows: {\n xs: '0px 1px 0px rgba(4, 8, 31, 0.08)',\n sm: '0px 2px 4px rgba(4, 8, 31, 0.12)',\n md: '0px 4px 8px rgba(4, 8, 31, 0.08)',\n lg: '0px 8px 16px rgba(7, 12, 41, 0.06)',\n xl: '0px 16px 24px rgba(4, 8, 31, 0.06)',\n },\n colors: PlasmaColors,\n components: {\n Alert: {\n defaultProps: {\n icon: <InfoSize24Px height={24} />,\n color: 'navy',\n },\n styles: {\n title: {\n fontWeight: 500,\n },\n },\n },\n Title: {\n styles: {\n root: {\n '&:is(h1,h2,h3,h4,h5,h6)': {letterSpacing: '0.011em'},\n },\n },\n },\n Text: {\n defaultProps: {\n weight: 300,\n },\n styles: (theme, {}, {size}) => ({\n root: {\n fontSize: getSize({size: size ?? 'sm', sizes: theme.fontSizes}),\n },\n }),\n },\n Button: {\n styles: () => ({\n root: {\n fontWeight: 400,\n },\n }),\n variants: {\n outline: () => ({\n root: {\n backgroundColor: 'white',\n },\n }),\n },\n },\n Modal: {\n styles: (theme, {fullScreen, padding}, {size, variant}) => ({\n content: {\n flex: fullScreen\n ? '0 0 100%'\n : `0 0 ${getSize({\n size,\n sizes: {\n xs: rem(432),\n sm: rem(664),\n md: rem(896),\n lg: rem(1120),\n xl: rem('88%'),\n },\n })}`,\n overflow: 'auto',\n },\n title: {\n width: '100%',\n fontSize: theme.headings.sizes.h3.fontSize,\n lineHeight: theme.headings.sizes.h3.lineHeight,\n fontWeight: 500,\n },\n header: {\n borderBottom: variant !== 'prompt' ? `1px solid ${color.primary.gray[3]}` : null,\n },\n body: {\n '&:not(:only-child)': {\n paddingTop: variant === 'prompt' ? 0 : getSize({size: padding, sizes: plasmaTheme.spacing}),\n },\n },\n }),\n },\n ModalOverlay: {\n defaultProps: {\n color: color.primary.navy[9],\n opacity: 0.9,\n },\n },\n InputWrapper: {\n defaultProps: {\n withAsterisk: false,\n },\n styles: (theme) => ({\n label: {\n marginBottom: theme.spacing.xs,\n },\n description: {\n fontSize: theme.fontSizes.sm,\n color: theme.colors.gray[7],\n marginBottom: theme.spacing.xs,\n },\n invalid: {\n color: theme.colors.red[9],\n borderColor: theme.colors.red[6],\n },\n error: {\n color: theme.colors.red[9],\n },\n }),\n },\n TextInput: {\n defaultProps: {\n radius: 8,\n },\n },\n Tooltip: {\n defaultProps: {\n color: 'navy',\n withArrow: true,\n withinPortal: true,\n multiline: true,\n zIndex: 10000,\n },\n },\n Loader: {\n defaultProps: {\n variant: 'dots',\n color: 'action',\n },\n },\n DateRangePicker: {\n styles: {\n cell: {\n textAlign: 'center',\n },\n },\n },\n Anchor: {\n defaultProps: {\n color: 'action.6',\n },\n styles: (theme) => ({\n root: {\n ...theme.fn.hover({\n textDecoration: 'underline',\n color: theme.colors.action[8],\n }),\n },\n }),\n },\n Checkbox: {\n defaultProps: {\n radius: 'sm',\n },\n styles: (theme) => ({\n label: {\n fontSize: theme.fontSizes.sm,\n fontWeight: 300,\n },\n }),\n },\n List: {\n styles: () => ({\n root: {\n listStyleType: 'disc',\n },\n }),\n },\n Radio: {\n styles: {\n labelWrapper: {\n display: 'flex',\n alignItems: 'flex-start',\n },\n },\n },\n Popover: {\n defaultProps: {\n shadow: 'md',\n withArrow: true,\n },\n },\n Badge: {\n styles: {\n root: {\n textTransform: 'none',\n padding: '4px 8px',\n fontWeight: 500,\n },\n },\n },\n ColorSwatch: {\n defaultProps: {\n size: 8,\n withShadow: false,\n },\n },\n MenuItem: {\n defaultProps: {\n fw: 300,\n },\n },\n Notification: {\n styles: (theme, {color: notificationType}: NotificationProps) => ({\n root: {\n borderColor: theme.colors.gray[3],\n backgroundColor: theme.colors.gray[0],\n boxShadow: theme.shadows.lg,\n padding: theme.spacing.sm,\n '&[data-with-icon]': {\n paddingLeft: theme.spacing.sm,\n },\n },\n icon: {\n backgroundColor: 'transparent',\n marginRight: theme.spacing.sm,\n color: theme.colors?.[notificationType][6],\n },\n closeButton: {\n margin: theme.spacing.xs,\n color: theme.colors.gray[5],\n },\n }),\n defaultProps: {\n icon: <InfoSize24Px height={24} />,\n color: 'info',\n },\n },\n Skeleton: {\n styles: {\n visible: {\n '&::before': {zIndex: 'unset'},\n '&::after': {zIndex: 'unset'},\n },\n },\n },\n SegmentedControl: {\n styles: (theme) => ({\n root: {\n backgroundColor: theme.colors.gray[2],\n },\n }),\n },\n Stepper: {\n defaultProps: {\n size: 'xs',\n completedIcon: <CheckSize16Px />,\n },\n styles: (theme, {}: StepperStylesParams, {size}) => ({\n step: {\n '&[disabled]': {\n color: theme.colors.gray[5],\n '& .mantine-Stepper-stepDescription': {\n color: theme.colors.gray[5],\n },\n '& .mantine-Stepper-stepIcon': {\n borderColor: theme.colors.gray[1],\n },\n },\n },\n stepIcon: {\n fontWeight: 500,\n backgroundColor: theme.colors.gray[1],\n color: 'inherit',\n border: `${rem(1)} solid ${theme.colors.gray[3]}`,\n '&[data-progress]': {\n backgroundColor: theme.white,\n },\n\n '&[data-completed]': {\n backgroundColor: theme.white,\n borderColor: theme.colors.lime[6],\n color: theme.colors.lime[6],\n },\n },\n stepCompletedIcon: {\n color: theme.colors.lime[6],\n fontSize: rem(16),\n },\n stepDescription: {\n color: theme.colors.gray[7],\n fontSize: getSize({size, sizes: theme.fontSizes}),\n },\n separator: {\n height: rem(1),\n backgroundColor: theme.colors.gray[3],\n },\n separatorActive: {\n backgroundColor: theme.colors.gray[3],\n },\n verticalSeparator: {\n borderLeft: `${rem(1)} solid ${theme.colors.gray[3]}`,\n },\n verticalSeparatorActive: {\n borderColor: theme.colors.gray[3],\n },\n }),\n },\n Tabs: {\n styles: (theme, {orientation}: TabsStylesParams) => ({\n tabsList: {\n [orientation === 'horizontal' ? 'borderBottom' : 'borderRight']: `${rem(1)} solid ${\n theme.colors.gray[3]\n }`,\n },\n tab: {\n [orientation === 'horizontal' ? 'borderBottom' : 'borderRight']: `${rem(1)} solid transparent`,\n [orientation === 'horizontal' ? 'marginBottom' : 'marginRight']: rem(-1),\n },\n }),\n },\n Select: {\n styles: (theme) => ({\n input: {\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[7],\n },\n item: {\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[7],\n\n '&[data-hovered]': {\n backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[4] : theme.colors.gray[1],\n },\n\n '&[data-selected]': {\n backgroundColor: theme.fn.variant({variant: 'light'}).background,\n color: theme.fn.variant({variant: 'light'}).color,\n ...theme.fn.hover({backgroundColor: theme.fn.variant({variant: 'light'}).hover}),\n },\n },\n }),\n },\n NavLink: {\n styles: (theme) => ({\n root: {\n color: theme.colors.gray[6],\n borderRadius: `${theme.defaultRadius}px 0px 0px ${theme.defaultRadius}px`,\n },\n label: {\n ref: getStylesRef('label'),\n fontWeight: 500,\n },\n children: {\n [`.${getStylesRef('label')}`]: {\n fontWeight: 300,\n },\n },\n }),\n },\n },\n};\n"],"names":["CheckSize16Px","InfoSize24Px","color","getSize","rem","getStylesRef","PlasmaColors","plasmaTheme","colorScheme","fontFamily","black","primary","gray","defaultRadius","lineHeight","spacing","xs","sm","md","lg","xl","primaryColor","headings","fontWeight","sizes","h1","fontSize","undefined","h2","h3","h4","h5","h6","shadows","colors","components","Alert","defaultProps","icon","height","styles","title","Title","root","letterSpacing","Text","weight","theme","size","fontSizes","Button","variants","outline","backgroundColor","Modal","fullScreen","padding","variant","content","flex","overflow","width","header","borderBottom","body","paddingTop","ModalOverlay","navy","opacity","InputWrapper","withAsterisk","label","marginBottom","description","invalid","red","borderColor","error","TextInput","radius","Tooltip","withArrow","withinPortal","multiline","zIndex","Loader","DateRangePicker","cell","textAlign","Anchor","fn","hover","textDecoration","action","Checkbox","List","listStyleType","Radio","labelWrapper","display","alignItems","Popover","shadow","Badge","textTransform","ColorSwatch","withShadow","MenuItem","fw","Notification","notificationType","boxShadow","paddingLeft","marginRight","closeButton","margin","Skeleton","visible","SegmentedControl","Stepper","completedIcon","step","stepIcon","border","white","lime","stepCompletedIcon","stepDescription","separator","separatorActive","verticalSeparator","borderLeft","verticalSeparatorActive","Tabs","orientation","tabsList","tab","Select","input","dark","item","background","NavLink","borderRadius","ref","children"],"mappings":";;;;AAAA,SAAQA,aAAa,EAAEC,YAAY,QAAO,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AAM,CAACtB,IAAI,CAAC,EAAE;wBAEjF,mBAAmB;4BACfyC,iBAAiBN,MAAMvC,WAAW,KAAK,SAASuC,MAAMb,MAAM,CAACyG,IAAI,CAAC,EAAE,GAAG5F,MAAMb,MAAM,CAACtB,IAAI,CAAC,EAAE;wBAC/F;wBAEA,oBAAoB;4BAChByC,iBAAiBN,MAAM2C,EAAE,CAACjC,OAAO,CAAC;gCAACA,SAAS;4BAAO,GAAGoF,UAAU;4BAChE3I,OAAO6C,MAAM2C,EAAE,CAACjC,OAAO,CAAC;gCAACA,SAAS;4BAAO,GAAGvD,KAAK;2BAC9C6C,MAAM2C,EAAE,CAACC,KAAK,CAAC;4BAACtC,iBAAiBN,MAAM2C,EAAE,CAACjC,OAAO,CAAC;gCAACA,SAAS;4BAAO,GAAGkC,KAAK;wBAAA;oBAEtF;gBACJ;;QACJ;QACAmD,SAAS;YACLtG,QAAQ,SAACO;uBAAW;oBAChBJ,MAAM;wBACFzC,OAAO6C,MAAMb,MAAM,CAACtB,IAAI,CAAC,EAAE;wBAC3BmI,cAAc,AAAC,GAAmChG,OAAjCA,MAAMlC,aAAa,EAAC,eAAiC,OAApBkC,MAAMlC,aAAa,EAAC;oBAC1E;oBACA0D,OAAO;wBACHyE,KAAK3I,aAAa;wBAClBkB,YAAY;oBAChB;oBACA0H,UACI,qBAAC,AAAC,IAAyB,OAAtB5I,aAAa,WAAa;wBAC3BkB,YAAY;oBAChB;gBAER;;QACJ;IACJ;AACJ,EAAE"}
1
+ {"version":3,"sources":["../../../src/theme/Theme.tsx"],"sourcesContent":["import {CheckSize16Px, InfoSize24Px} from '@coveord/plasma-react-icons';\nimport {color} from '@coveord/plasma-tokens';\nimport {\n getSize,\n rem,\n type MantineThemeOverride,\n type NotificationProps,\n type StepperStylesParams,\n type TabsStylesParams,\n getStylesRef,\n} from '@mantine/core';\n\nimport {PlasmaColors} from './PlasmaColors';\n\nexport const plasmaTheme: MantineThemeOverride = {\n // These are overrides over https://github.com/mantinedev/mantine/blob/master/src/mantine-styles/src/theme/default-theme.ts\n colorScheme: 'light',\n fontFamily: 'canada-type-gibson, sans-serif',\n black: color.primary.gray[9],\n defaultRadius: 8,\n lineHeight: 1.5,\n spacing: {\n xs: '8px',\n sm: '16px',\n md: '24px',\n lg: '32px',\n xl: '40px',\n },\n primaryColor: 'action',\n headings: {\n fontFamily: 'canada-type-gibson, sans-serif',\n fontWeight: 500,\n sizes: {\n h1: {fontSize: '48px', lineHeight: undefined, fontWeight: 300},\n h2: {fontSize: '32px', lineHeight: undefined, fontWeight: 500},\n h3: {fontSize: '24px', lineHeight: undefined, fontWeight: 500},\n h4: {fontSize: '18px', lineHeight: undefined, fontWeight: 300},\n h5: {fontSize: '14px', lineHeight: undefined, fontWeight: 500},\n h6: {fontSize: '12px', lineHeight: undefined, fontWeight: 500},\n },\n },\n shadows: {\n xs: '0px 1px 0px rgba(4, 8, 31, 0.08)',\n sm: '0px 2px 4px rgba(4, 8, 31, 0.12)',\n md: '0px 4px 8px rgba(4, 8, 31, 0.08)',\n lg: '0px 8px 16px rgba(7, 12, 41, 0.06)',\n xl: '0px 16px 24px rgba(4, 8, 31, 0.06)',\n },\n colors: PlasmaColors,\n components: {\n Alert: {\n defaultProps: {\n icon: <InfoSize24Px height={24} />,\n color: 'navy',\n },\n styles: {\n title: {\n fontWeight: 500,\n },\n },\n },\n Title: {\n styles: {\n root: {\n '&:is(h1,h2,h3,h4,h5,h6)': {letterSpacing: '0.011em'},\n },\n },\n },\n Text: {\n defaultProps: {\n weight: 300,\n },\n styles: (theme, {}, {size}) => ({\n root: {\n fontSize: getSize({size: size ?? 'sm', sizes: theme.fontSizes}),\n },\n }),\n },\n Button: {\n styles: () => ({\n root: {\n fontWeight: 400,\n },\n }),\n variants: {\n outline: () => ({\n root: {\n backgroundColor: 'white',\n },\n }),\n },\n },\n Modal: {\n styles: (theme, {fullScreen, padding}, {size, variant}) => ({\n content: {\n flex: fullScreen\n ? '0 0 100%'\n : `0 0 ${getSize({\n size,\n sizes: {\n xs: rem(432),\n sm: rem(664),\n md: rem(896),\n lg: rem(1120),\n xl: rem('88%'),\n },\n })}`,\n overflow: 'auto',\n },\n title: {\n width: '100%',\n fontSize: theme.headings.sizes.h3.fontSize,\n lineHeight: theme.headings.sizes.h3.lineHeight,\n fontWeight: 500,\n },\n header: {\n borderBottom: variant !== 'prompt' ? `1px solid ${color.primary.gray[3]}` : null,\n },\n body: {\n '&:not(:only-child)': {\n paddingTop: variant === 'prompt' ? 0 : getSize({size: padding, sizes: plasmaTheme.spacing}),\n },\n },\n }),\n },\n ModalOverlay: {\n defaultProps: {\n color: color.primary.navy[9],\n opacity: 0.9,\n },\n },\n InputWrapper: {\n defaultProps: {\n withAsterisk: false,\n },\n styles: (theme) => ({\n label: {\n marginBottom: theme.spacing.xs,\n },\n description: {\n fontSize: theme.fontSizes.sm,\n color: theme.colors.gray[7],\n marginBottom: theme.spacing.xs,\n lineHeight: theme.lineHeight,\n },\n invalid: {\n color: theme.colors.red[9],\n borderColor: theme.colors.red[6],\n },\n error: {\n color: theme.colors.red[9],\n lineHeight: theme.lineHeight,\n },\n }),\n },\n TextInput: {\n defaultProps: {\n radius: 8,\n },\n },\n Tooltip: {\n defaultProps: {\n color: 'navy',\n withArrow: true,\n withinPortal: true,\n multiline: true,\n zIndex: 10000,\n },\n },\n Loader: {\n defaultProps: {\n variant: 'dots',\n color: 'action',\n },\n },\n DateRangePicker: {\n styles: {\n cell: {\n textAlign: 'center',\n },\n },\n },\n Anchor: {\n defaultProps: {\n color: 'action.6',\n },\n styles: (theme) => ({\n root: {\n ...theme.fn.hover({\n textDecoration: 'underline',\n color: theme.colors.action[8],\n }),\n },\n }),\n },\n Checkbox: {\n defaultProps: {\n radius: 'sm',\n },\n styles: (theme) => ({\n label: {\n fontSize: theme.fontSizes.sm,\n fontWeight: 300,\n },\n }),\n },\n List: {\n styles: () => ({\n root: {\n listStyleType: 'disc',\n },\n }),\n },\n Radio: {\n styles: {\n labelWrapper: {\n display: 'flex',\n alignItems: 'flex-start',\n },\n },\n },\n Popover: {\n defaultProps: {\n shadow: 'md',\n withArrow: true,\n },\n },\n Badge: {\n styles: {\n root: {\n textTransform: 'none',\n padding: '4px 8px',\n fontWeight: 500,\n },\n },\n },\n ColorSwatch: {\n defaultProps: {\n size: 8,\n withShadow: false,\n },\n },\n MenuItem: {\n defaultProps: {\n fw: 300,\n },\n },\n Notification: {\n styles: (theme, {color: notificationType}: NotificationProps) => ({\n root: {\n borderColor: theme.colors.gray[3],\n backgroundColor: theme.colors.gray[0],\n boxShadow: theme.shadows.lg,\n padding: theme.spacing.sm,\n '&[data-with-icon]': {\n paddingLeft: theme.spacing.sm,\n },\n },\n icon: {\n backgroundColor: 'transparent',\n marginRight: theme.spacing.sm,\n color: theme.colors?.[notificationType][6],\n },\n closeButton: {\n margin: theme.spacing.xs,\n color: theme.colors.gray[5],\n },\n }),\n defaultProps: {\n icon: <InfoSize24Px height={24} />,\n color: 'info',\n },\n },\n Skeleton: {\n styles: {\n visible: {\n '&::before': {zIndex: 'unset'},\n '&::after': {zIndex: 'unset'},\n },\n },\n },\n SegmentedControl: {\n styles: (theme) => ({\n root: {\n backgroundColor: theme.colors.gray[2],\n },\n }),\n },\n Stepper: {\n defaultProps: {\n size: 'xs',\n completedIcon: <CheckSize16Px />,\n },\n styles: (theme, {}: StepperStylesParams, {size}) => ({\n step: {\n '&[disabled]': {\n color: theme.colors.gray[5],\n '& .mantine-Stepper-stepDescription': {\n color: theme.colors.gray[5],\n },\n '& .mantine-Stepper-stepIcon': {\n borderColor: theme.colors.gray[1],\n },\n },\n },\n stepIcon: {\n fontWeight: 500,\n backgroundColor: theme.colors.gray[1],\n color: 'inherit',\n border: `${rem(1)} solid ${theme.colors.gray[3]}`,\n '&[data-progress]': {\n backgroundColor: theme.white,\n },\n\n '&[data-completed]': {\n backgroundColor: theme.white,\n borderColor: theme.colors.lime[6],\n color: theme.colors.lime[6],\n },\n },\n stepCompletedIcon: {\n color: theme.colors.lime[6],\n fontSize: rem(16),\n },\n stepDescription: {\n color: theme.colors.gray[7],\n fontSize: getSize({size, sizes: theme.fontSizes}),\n },\n separator: {\n height: rem(1),\n backgroundColor: theme.colors.gray[3],\n },\n separatorActive: {\n backgroundColor: theme.colors.gray[3],\n },\n verticalSeparator: {\n borderLeft: `${rem(1)} solid ${theme.colors.gray[3]}`,\n },\n verticalSeparatorActive: {\n borderColor: theme.colors.gray[3],\n },\n }),\n },\n Tabs: {\n styles: (theme, {orientation}: TabsStylesParams) => ({\n tabsList: {\n [orientation === 'horizontal' ? 'borderBottom' : 'borderRight']: `${rem(1)} solid ${\n theme.colors.gray[3]\n }`,\n },\n tab: {\n [orientation === 'horizontal' ? 'borderBottom' : 'borderRight']: `${rem(1)} solid transparent`,\n [orientation === 'horizontal' ? 'marginBottom' : 'marginRight']: rem(-1),\n },\n }),\n },\n Select: {\n styles: (theme) => ({\n input: {\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[7],\n },\n item: {\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[7],\n\n '&[data-hovered]': {\n backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[4] : theme.colors.gray[1],\n },\n\n '&[data-selected]': {\n backgroundColor: theme.fn.variant({variant: 'light'}).background,\n color: theme.fn.variant({variant: 'light'}).color,\n ...theme.fn.hover({backgroundColor: theme.fn.variant({variant: 'light'}).hover}),\n },\n },\n }),\n },\n NavLink: {\n styles: (theme) => ({\n root: {\n color: theme.colors.gray[6],\n borderRadius: `${theme.defaultRadius}px 0px 0px ${theme.defaultRadius}px`,\n },\n label: {\n ref: getStylesRef('label'),\n fontWeight: 500,\n },\n children: {\n [`.${getStylesRef('label')}`]: {\n fontWeight: 300,\n },\n },\n }),\n },\n },\n};\n"],"names":["CheckSize16Px","InfoSize24Px","color","getSize","rem","getStylesRef","PlasmaColors","plasmaTheme","colorScheme","fontFamily","black","primary","gray","defaultRadius","lineHeight","spacing","xs","sm","md","lg","xl","primaryColor","headings","fontWeight","sizes","h1","fontSize","undefined","h2","h3","h4","h5","h6","shadows","colors","components","Alert","defaultProps","icon","height","styles","title","Title","root","letterSpacing","Text","weight","theme","size","fontSizes","Button","variants","outline","backgroundColor","Modal","fullScreen","padding","variant","content","flex","overflow","width","header","borderBottom","body","paddingTop","ModalOverlay","navy","opacity","InputWrapper","withAsterisk","label","marginBottom","description","invalid","red","borderColor","error","TextInput","radius","Tooltip","withArrow","withinPortal","multiline","zIndex","Loader","DateRangePicker","cell","textAlign","Anchor","fn","hover","textDecoration","action","Checkbox","List","listStyleType","Radio","labelWrapper","display","alignItems","Popover","shadow","Badge","textTransform","ColorSwatch","withShadow","MenuItem","fw","Notification","notificationType","boxShadow","paddingLeft","marginRight","closeButton","margin","Skeleton","visible","SegmentedControl","Stepper","completedIcon","step","stepIcon","border","white","lime","stepCompletedIcon","stepDescription","separator","separatorActive","verticalSeparator","borderLeft","verticalSeparatorActive","Tabs","orientation","tabsList","tab","Select","input","dark","item","background","NavLink","borderRadius","ref","children"],"mappings":";;;;AAAA,SAAQA,aAAa,EAAEC,YAAY,QAAO,8BAA8B;AACxE,SAAQC,KAAK,QAAO,yBAAyB;AAC7C,SACIC,OAAO,EACPC,GAAG,EAKHC,YAAY,QACT,gBAAgB;AAEvB,SAAQC,YAAY,QAAO,iBAAiB;AAE5C,OAAO,IAAMC,cAAoC;IAC7C,2HAA2H;IAC3HC,aAAa;IACbC,YAAY;IACZC,OAAOR,MAAMS,OAAO,CAACC,IAAI,CAAC,EAAE;IAC5BC,eAAe;IACfC,YAAY;IACZC,SAAS;QACLC,IAAI;QACJC,IAAI;QACJC,IAAI;QACJC,IAAI;QACJC,IAAI;IACR;IACAC,cAAc;IACdC,UAAU;QACNb,YAAY;QACZc,YAAY;QACZC,OAAO;YACHC,IAAI;gBAACC,UAAU;gBAAQZ,YAAYa;gBAAWJ,YAAY;YAAG;YAC7DK,IAAI;gBAACF,UAAU;gBAAQZ,YAAYa;gBAAWJ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C;gCAACA,SAAS;4BAAO,GAAGkC,KAAK;wBAAA;oBAEtF;gBACJ;;QACJ;QACAmD,SAAS;YACLtG,QAAQ,SAACO;uBAAW;oBAChBJ,MAAM;wBACFzC,OAAO6C,MAAMb,MAAM,CAACtB,IAAI,CAAC,EAAE;wBAC3BmI,cAAc,AAAC,GAAmChG,OAAjCA,MAAMlC,aAAa,EAAC,eAAiC,OAApBkC,MAAMlC,aAAa,EAAC;oBAC1E;oBACA0D,OAAO;wBACHyE,KAAK3I,aAAa;wBAClBkB,YAAY;oBAChB;oBACA0H,UACI,qBAAC,AAAC,IAAyB,OAAtB5I,aAAa,WAAa;wBAC3BkB,YAAY;oBAChB;gBAER;;QACJ;IACJ;AACJ,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/overrideComponent.ts"],"sourcesContent":["/**\n * Allows to override static properties from a component function\n *\n * @param component The component which holds the static properties\n * @param properties The new static properties to assign on the component\n * @returns A new component with the specified properties. It doesn't change the original component\n * @example const Menu = overrideComponent(MantineMenu, {Item: MyMenuItem}); // Menu.Item will equal MyMenuItem\n */\nexport const overrideComponent = <\n Component extends (...args: Parameters<Component>) => ReturnType<Component>,\n StaticProperties = Record<keyof Component, never>\n>(\n component: Component,\n properties: StaticProperties\n): ((...args: Parameters<Component>) => ReturnType<Component>) & Component & StaticProperties => {\n const componentClone = (...args: Parameters<Component>) => component(...args);\n return Object.assign(componentClone, component, properties);\n};\n"],"names":["overrideComponent","component","properties","componentClone","args","Object","assign"],"mappings":"AAAA;;;;;;;CAOC;AACD,OAAO,IAAMA,oBAAoB,SAI7BC,WACAC;IAEA,IAAMC,iBAAiB;yCAAIC;YAAAA;;eAAgCH,UAAAA,MAAAA,KAAAA,GAAU,qBAAGG;;IACxE,OAAOC,OAAOC,MAAM,CAACH,gBAAgBF,WAAWC;AACpD,EAAE"}
1
+ {"version":3,"sources":["../../../src/utils/overrideComponent.ts"],"sourcesContent":["/**\n * Allows to override static properties from a component function\n *\n * @param component The component which holds the static properties\n * @param properties The new static properties to assign on the component\n * @returns A new component with the specified properties. It doesn't change the original component\n * @example const Menu = overrideComponent(MantineMenu, {Item: MyMenuItem}); // Menu.Item will equal MyMenuItem\n */\nexport const overrideComponent = <\n Component extends (...args: Parameters<Component>) => ReturnType<Component>,\n StaticProperties = Record<keyof Component, never>,\n>(\n component: Component,\n properties: StaticProperties,\n): ((...args: Parameters<Component>) => ReturnType<Component>) & Component & StaticProperties => {\n const componentClone = (...args: Parameters<Component>) => component(...args);\n return Object.assign(componentClone, component, properties);\n};\n"],"names":["overrideComponent","component","properties","componentClone","args","Object","assign"],"mappings":"AAAA;;;;;;;CAOC;AACD,OAAO,IAAMA,oBAAoB,SAI7BC,WACAC;IAEA,IAAMC,iBAAiB;yCAAIC;YAAAA;;eAAgCH,UAAAA,MAAAA,KAAAA,GAAU,qBAAGG;;IACxE,OAAOC,OAAOC,MAAM,CAACH,gBAAgBF,WAAWC;AACpD,EAAE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveord/plasma-mantine",
3
- "version": "52.13.0",
3
+ "version": "52.13.1",
4
4
  "description": "A Plasma flavoured Mantine theme",
5
5
  "keywords": [
6
6
  "plasma",
@@ -41,8 +41,8 @@
41
41
  "lodash.debounce": "4.0.8",
42
42
  "lodash.defaultsdeep": "4.6.1",
43
43
  "monaco-editor": "0.40.0",
44
- "@coveord/plasma-react-icons": "52.13.0",
45
- "@coveord/plasma-tokens": "52.13.0"
44
+ "@coveord/plasma-react-icons": "52.13.1",
45
+ "@coveord/plasma-tokens": "52.13.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@emotion/react": "11.11.1",
@@ -81,7 +81,8 @@
81
81
  "rimraf": "5.0.1",
82
82
  "tslib": "2.6.0",
83
83
  "typescript": "5.1.6",
84
- "vitest": "0.33.0"
84
+ "vitest": "0.33.0",
85
+ "eslint-config-plasma": "52.13.1"
85
86
  },
86
87
  "peerDependencies": {
87
88
  "@emotion/react": "^11.10.0",
@@ -98,6 +99,7 @@
98
99
  "scripts": {
99
100
  "build": "node ../../scripts/build",
100
101
  "clean": "rimraf dist",
102
+ "lintfix": "../../node_modules/.bin/prettier --write \"**/*.{scss,ts,tsx,js,jsx,json,md,yml,html}\" && ../../node_modules/.bin/eslint -c ./.eslintrc.js \"src/**/*.{ts,tsx}\" --fix",
101
103
  "start": "node ../../scripts/start",
102
104
  "test": "TZ=UTC vitest run",
103
105
  "test:watch": "TZ=UTC vitest"
@@ -49,7 +49,7 @@ const _Button = forwardRef<HTMLButtonElement, ButtonProps>(
49
49
  />
50
50
  </ButtonWithDisabledTooltip>
51
51
  );
52
- }
52
+ },
53
53
  );
54
54
 
55
55
  export const Button = createPolymorphicComponent<'button', ButtonProps, {Group: typeof MantineButton.Group}>(_Button);
@@ -33,9 +33,9 @@ const _ButtonWithDisabledTooltip = forwardRef<HTMLDivElement, ButtonWithDisabled
33
33
  </Tooltip>
34
34
  ) : (
35
35
  <>{children}</>
36
- )
36
+ ),
37
37
  );
38
38
 
39
39
  export const ButtonWithDisabledTooltip = createPolymorphicComponent<'div', ButtonWithDisabledTooltipProps>(
40
- _ButtonWithDisabledTooltip
40
+ _ButtonWithDisabledTooltip,
41
41
  );
@@ -16,11 +16,11 @@ describe('Button', () => {
16
16
  <>
17
17
  <Button loading={true}>I am loading</Button>
18
18
  <Button loading={false}>I am not loading</Button>
19
- </>
19
+ </>,
20
20
  );
21
21
  expect(within(screen.getByRole('button', {name: /I am loading/i})).getByRole('presentation')).toBeVisible();
22
22
  expect(
23
- within(screen.queryByRole('button', {name: /I am not loading/i})).queryByRole('presentation')
23
+ within(screen.queryByRole('button', {name: /I am not loading/i})).queryByRole('presentation'),
24
24
  ).not.toBeInTheDocument();
25
25
  });
26
26
 
@@ -40,7 +40,7 @@ describe('Button', () => {
40
40
  userEvent.click(screen.getByRole('button', {name: /promise handler/i}));
41
41
 
42
42
  expect(
43
- await within(screen.getByRole('button', {name: /promise handler/i})).findByRole('presentation')
43
+ await within(screen.getByRole('button', {name: /promise handler/i})).findByRole('presentation'),
44
44
  ).toBeVisible();
45
45
 
46
46
  resolve();
@@ -50,7 +50,7 @@ describe('Button', () => {
50
50
  });
51
51
 
52
52
  expect(
53
- within(screen.queryByRole('button', {name: /promise handler/i})).queryByRole('presentation')
53
+ within(screen.queryByRole('button', {name: /promise handler/i})).queryByRole('presentation'),
54
54
  ).not.toBeInTheDocument();
55
55
  });
56
56
 
@@ -70,7 +70,7 @@ describe('Button', () => {
70
70
  userEvent.click(screen.getByRole('button', {name: /promise handler/i}));
71
71
 
72
72
  expect(
73
- await within(screen.getByRole('button', {name: /promise handler/i})).findByRole('presentation')
73
+ await within(screen.getByRole('button', {name: /promise handler/i})).findByRole('presentation'),
74
74
  ).toBeVisible();
75
75
 
76
76
  reject();
@@ -80,7 +80,7 @@ describe('Button', () => {
80
80
  });
81
81
 
82
82
  expect(
83
- within(screen.queryByRole('button', {name: /promise handler/i})).queryByRole('presentation')
83
+ within(screen.queryByRole('button', {name: /promise handler/i})).queryByRole('presentation'),
84
84
  ).not.toBeInTheDocument();
85
85
  });
86
86
  });
@@ -7,7 +7,7 @@ describe('ButtonWithDisabledTooltip', () => {
7
7
  render(
8
8
  <ButtonWithDisabledTooltip disabled disabledTooltip="tooltip message">
9
9
  <button disabled>save</button>
10
- </ButtonWithDisabledTooltip>
10
+ </ButtonWithDisabledTooltip>,
11
11
  );
12
12
  const button = screen.getByRole('button', {name: /save/i});
13
13
  expect(button).toBeDisabled();
@@ -21,7 +21,7 @@ describe('ButtonWithDisabledTooltip', () => {
21
21
  render(
22
22
  <ButtonWithDisabledTooltip disabledTooltip="tooltip message">
23
23
  <button>save</button>
24
- </ButtonWithDisabledTooltip>
24
+ </ButtonWithDisabledTooltip>,
25
25
  );
26
26
  const button = screen.getByRole('button', {name: /save/i});
27
27
  expect(screen.queryByRole('tooltip', {name: /tooltip message/i})).not.toBeInTheDocument();
@@ -33,7 +33,7 @@ describe('ButtonWithDisabledTooltip', () => {
33
33
  const {container} = render(
34
34
  <ButtonWithDisabledTooltip>
35
35
  <button>save</button>
36
- </ButtonWithDisabledTooltip>
36
+ </ButtonWithDisabledTooltip>,
37
37
  );
38
38
  expect(container).toMatchInlineSnapshot(`
39
39
  <div>
@@ -174,7 +174,7 @@ export const Collection = <T,>(props: CollectionProps<T>) => {
174
174
  useSensor(PointerSensor),
175
175
  useSensor(KeyboardSensor, {
176
176
  coordinateGetter: sortableKeyboardCoordinates,
177
- })
177
+ }),
178
178
  );
179
179
 
180
180
  const hasOnlyOneItem = value.length === 1;
@@ -26,7 +26,7 @@ export const DateRangePickerPresetSelect = <T extends unknown>({
26
26
  const getSelectedPreset = () => {
27
27
  if (value[0] !== null && value[1] !== null && dayjs(value[0]).unix() !== dayjs(value[1]).unix()) {
28
28
  const selected = Object.entries(presets).find(
29
- ([id, {range}]) => dayjs(range[0]!).isSame(value[0]) && dayjs(value[1]!).isSame(value[1]!)
29
+ ([id, {range}]) => dayjs(range[0]!).isSame(value[0]) && dayjs(value[1]!).isSame(value[1]!),
30
30
  );
31
31
  if (selected) {
32
32
  return selected[0];
@@ -42,13 +42,13 @@ describe('DateRangePickerInlineCalendar', () => {
42
42
  initialRange={[null, null]}
43
43
  onApply={onApply}
44
44
  onCancel={vi.fn()}
45
- />
45
+ />,
46
46
  );
47
47
 
48
48
  await user.click(
49
49
  screen.getByRole('searchbox', {
50
50
  name: 'Date range',
51
- })
51
+ }),
52
52
  );
53
53
  await user.click(screen.getByRole('option', {name: 'select me'}));
54
54
  await user.click(screen.getByRole('button', {name: 'Apply'}));
@@ -107,8 +107,12 @@ describe('DateRangePickerInlineCalendar', () => {
107
107
  await user.click(screen.getByRole('button', {name: 'Apply'}));
108
108
 
109
109
  expect(onApply).toHaveBeenCalledWith([
110
- dayjs(new Date(2022, 0, 8)).startOf('day').toDate(),
111
- dayjs(new Date(2022, 0, 14)).endOf('day').toDate(),
110
+ dayjs(new Date(2022, 0, 8))
111
+ .startOf('day')
112
+ .toDate(),
113
+ dayjs(new Date(2022, 0, 14))
114
+ .endOf('day')
115
+ .toDate(),
112
116
  ]);
113
117
  vi.useRealTimers();
114
118
  });
@@ -13,13 +13,13 @@ describe('DateRangePickerPresetSelect', () => {
13
13
  presets={{
14
14
  year2k: {label: 'select me', range: [new Date(1999, 11, 31), new Date(2000, 0, 1)]},
15
15
  }}
16
- />
16
+ />,
17
17
  );
18
18
 
19
19
  await user.click(
20
20
  screen.getByRole('searchbox', {
21
21
  name: 'Date range',
22
- })
22
+ }),
23
23
  );
24
24
  await user.click(screen.getByRole('option', {name: 'select me'}));
25
25
 
@@ -33,7 +33,7 @@ describe('DateRangePickerPresetSelect', () => {
33
33
  presets={{
34
34
  year2k: {label: 'select me', range: [new Date(1999, 11, 31), new Date(2000, 0, 1)]},
35
35
  }}
36
- />
36
+ />,
37
37
  );
38
38
 
39
39
  // by default no value
@@ -45,7 +45,7 @@ describe('DateRangePickerPresetSelect', () => {
45
45
  presets={{
46
46
  year2k: {label: 'select me', range: [new Date(1999, 11, 31), new Date(2000, 0, 1)]},
47
47
  }}
48
- />
48
+ />,
49
49
  );
50
50
 
51
51
  // if a preset match the value, it selects it
@@ -36,7 +36,7 @@ export const Header: HeaderType = ({description, borderBottom, children, variant
36
36
  const actions = convertedChildren.find((child) => child.type === HeaderActions);
37
37
  const docAnchor = convertedChildren.find((child) => child.type === HeaderDocAnchor);
38
38
  const otherChildren = convertedChildren.filter(
39
- (child) => child.type !== HeaderBreadcrumbs && child.type !== HeaderActions && child.type !== HeaderDocAnchor
39
+ (child) => child.type !== HeaderBreadcrumbs && child.type !== HeaderActions && child.type !== HeaderDocAnchor,
40
40
  );
41
41
  return (
42
42
  <>
@@ -26,7 +26,7 @@ describe('Header', () => {
26
26
  <Anchor>Two</Anchor>
27
27
  <Anchor>Three</Anchor>
28
28
  </Header.Breadcrumbs>
29
- </Header>
29
+ </Header>,
30
30
  );
31
31
  const titleFirst = container;
32
32
 
@@ -38,7 +38,7 @@ describe('Header', () => {
38
38
  <Anchor>Three</Anchor>
39
39
  </Header.Breadcrumbs>
40
40
  Title
41
- </Header>
41
+ </Header>,
42
42
  );
43
43
  const breadcrumbsFirst = container;
44
44
 
@@ -51,7 +51,7 @@ describe('Header', () => {
51
51
  <Header>
52
52
  title
53
53
  <Header.DocAnchor href="/some/path" />
54
- </Header>
54
+ </Header>,
55
55
  );
56
56
 
57
57
  const docLink = await screen.findByRole('link', {name: /question/i});
@@ -77,7 +77,7 @@ describe('Header', () => {
77
77
  <span>action 1</span>
78
78
  <span>action 2</span>
79
79
  </Header.Actions>
80
- </Header>
80
+ </Header>,
81
81
  );
82
82
 
83
83
  expect(screen.getByText('action 1')).toBeInTheDocument();
@@ -16,7 +16,7 @@ export const InlineConfirm: InlineConfirmType = ({children}) => {
16
16
 
17
17
  const convertedChildren = Children.toArray(children) as ReactElement[];
18
18
  const prompt = convertedChildren.find(
19
- (child) => child.type === InlineConfirmPrompt && child.props.id === confirmingId
19
+ (child) => child.type === InlineConfirmPrompt && child.props.id === confirmingId,
20
20
  );
21
21
  const clearConfirm = () => setConfirmingId(null);
22
22
 
@@ -18,5 +18,5 @@ export const InlineConfirmButton = forwardRef<HTMLButtonElement, InlineConfirmBu
18
18
  };
19
19
 
20
20
  return <Button ref={ref} onClick={handleOnClick} {...others} />;
21
- }
21
+ },
22
22
  );
@@ -17,5 +17,5 @@ export const InlineConfirmMenuItem = forwardRef<HTMLButtonElement, InlineConfirm
17
17
  };
18
18
 
19
19
  return <Menu.Item ref={ref} onClick={handleOnClick} {...others} />;
20
- }
20
+ },
21
21
  );
@@ -18,7 +18,7 @@ describe('InlineConfirm', () => {
18
18
  <InlineConfirm.Button id="delete" onClick={onClickSpy}>
19
19
  Delete
20
20
  </InlineConfirm.Button>
21
- </InlineConfirm>
21
+ </InlineConfirm>,
22
22
  );
23
23
 
24
24
  await user.click(screen.getByRole('button', {name: 'Delete'}));
@@ -41,7 +41,7 @@ describe('InlineConfirm', () => {
41
41
  </InlineConfirm.MenuItem>
42
42
  </Menu.Dropdown>
43
43
  </Menu>
44
- </InlineConfirm>
44
+ </InlineConfirm>,
45
45
  );
46
46
 
47
47
  await user.click(screen.getByRole('button', {name: /open menu/i}));
@@ -56,7 +56,7 @@ describe('InlineConfirm', () => {
56
56
  <InlineConfirm>
57
57
  <InlineConfirm.Button id="my-button-id">Remove</InlineConfirm.Button>
58
58
  <InlineConfirm.Prompt id="my-button-id" label="Are you sure?" onConfirm={vi.fn()} />
59
- </InlineConfirm>
59
+ </InlineConfirm>,
60
60
  );
61
61
  expect(screen.queryByText('Are you sure?')).not.toBeInTheDocument();
62
62
  expect(screen.getByRole('button', {name: 'Remove'})).toBeVisible();
@@ -80,7 +80,7 @@ describe('InlineConfirm', () => {
80
80
  cancelLabel="I changed my mind"
81
81
  onConfirm={confirmSpy}
82
82
  />
83
- </InlineConfirm>
83
+ </InlineConfirm>,
84
84
  );
85
85
 
86
86
  await user.click(screen.getByRole('button', {name: 'Remove'}));
@@ -107,7 +107,7 @@ describe('InlineConfirm', () => {
107
107
 
108
108
  <InlineConfirm.Button id="print">Print</InlineConfirm.Button>
109
109
  <InlineConfirm.Prompt id="print" label="Print?" onConfirm={vi.fn()} />
110
- </InlineConfirm>
110
+ </InlineConfirm>,
111
111
  );
112
112
 
113
113
  await user.click(screen.getByRole('button', {name: 'Remove'}));
@@ -16,7 +16,7 @@ const _MenuItem = forwardRef<HTMLButtonElement, MenuItemProps>(
16
16
  >
17
17
  <MantineMenu.Item ref={ref} disabled={disabled} {...others} />
18
18
  </ButtonWithDisabledTooltip>
19
- )
19
+ ),
20
20
  );
21
21
 
22
22
  const MenuItem = createPolymorphicComponent<'button', MenuItemProps>(_MenuItem);
@@ -159,7 +159,7 @@ export const ModalWizard: ModalWizardType = ({
159
159
  };
160
160
 
161
161
  const resolveStepDependentProp = <P extends keyof ModalWizardStepProps>(
162
- prop: P
162
+ prop: P,
163
163
  ): ResolveStep<ModalWizardStepProps[P]> =>
164
164
  typeof currentStep.props[prop] === 'function'
165
165
  ? currentStep.props[prop](currentStepIndex + 1, numberOfSteps)
@@ -169,11 +169,11 @@ export const ModalWizard: ModalWizardType = ({
169
169
  () => (currStepIndex: number) => {
170
170
  const totalNumberOfSteps = modalSteps.filter((step) => step.props.countsAsProgress).length;
171
171
  const numberOfCompletedSteps = modalSteps.filter(
172
- (step, index) => step.props.countsAsProgress && index <= currStepIndex
172
+ (step, index) => step.props.countsAsProgress && index <= currStepIndex,
173
173
  ).length;
174
174
  return (numberOfCompletedSteps / totalNumberOfSteps) * 100;
175
175
  },
176
- []
176
+ [],
177
177
  );
178
178
 
179
179
  return (