@coveord/plasma-mantine 57.0.0 → 57.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +4 -4
- package/.turbo/turbo-test.log +101 -106
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/components/ActionIcon/ActionIcon.d.ts +6 -2
- package/dist/cjs/components/ActionIcon/ActionIcon.d.ts.map +1 -1
- package/dist/cjs/components/ActionIcon/ActionIcon.js.map +1 -1
- package/dist/cjs/components/Button/Button.d.ts +6 -2
- package/dist/cjs/components/Button/Button.d.ts.map +1 -1
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/DateTimeRangePicker/DateTimeRangePicker.d.ts +2 -2
- package/dist/cjs/components/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/cjs/components/DateTimeRangePicker/DateTimeRangePicker.js +12 -7
- package/dist/cjs/components/DateTimeRangePicker/DateTimeRangePicker.js.map +1 -1
- package/dist/cjs/components/DateTimeRangePicker/EditableDateTimeRangePicker.d.ts +9 -1
- package/dist/cjs/components/DateTimeRangePicker/EditableDateTimeRangePicker.d.ts.map +1 -1
- package/dist/cjs/components/DateTimeRangePicker/EditableDateTimeRangePicker.js +5 -1
- package/dist/cjs/components/DateTimeRangePicker/EditableDateTimeRangePicker.js.map +1 -1
- package/dist/cjs/hooks/useClickWithLoading.d.ts +8 -1
- package/dist/cjs/hooks/useClickWithLoading.d.ts.map +1 -1
- package/dist/cjs/hooks/useClickWithLoading.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/Input.module.css +1 -3
- package/dist/cjs/styles/NumberInput.module.css +2 -0
- package/dist/cjs/styles/Tooltip.module.css +1 -1
- package/dist/cjs/theme/Theme.d.ts.map +1 -1
- package/dist/cjs/theme/Theme.js +1 -2
- package/dist/cjs/theme/Theme.js.map +1 -1
- package/dist/esm/components/ActionIcon/ActionIcon.d.ts +6 -2
- package/dist/esm/components/ActionIcon/ActionIcon.d.ts.map +1 -1
- package/dist/esm/components/ActionIcon/ActionIcon.js.map +1 -1
- package/dist/esm/components/Button/Button.d.ts +6 -2
- package/dist/esm/components/Button/Button.d.ts.map +1 -1
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/DateTimeRangePicker/DateTimeRangePicker.d.ts +2 -2
- package/dist/esm/components/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/esm/components/DateTimeRangePicker/DateTimeRangePicker.js +2 -3
- package/dist/esm/components/DateTimeRangePicker/DateTimeRangePicker.js.map +1 -1
- package/dist/esm/components/DateTimeRangePicker/EditableDateTimeRangePicker.d.ts +9 -1
- package/dist/esm/components/DateTimeRangePicker/EditableDateTimeRangePicker.d.ts.map +1 -1
- package/dist/esm/components/DateTimeRangePicker/EditableDateTimeRangePicker.js +5 -1
- package/dist/esm/components/DateTimeRangePicker/EditableDateTimeRangePicker.js.map +1 -1
- package/dist/esm/hooks/useClickWithLoading.d.ts +8 -1
- package/dist/esm/hooks/useClickWithLoading.d.ts.map +1 -1
- package/dist/esm/hooks/useClickWithLoading.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/Input.module.css +1 -3
- package/dist/esm/styles/NumberInput.module.css +2 -0
- package/dist/esm/styles/Tooltip.module.css +1 -1
- package/dist/esm/theme/Theme.d.ts.map +1 -1
- package/dist/esm/theme/Theme.js +1 -2
- package/dist/esm/theme/Theme.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ActionIcon/ActionIcon.tsx +7 -4
- package/src/components/Button/Button.tsx +7 -4
- package/src/components/Button/__tests__/Button.spec.tsx +42 -0
- package/src/components/DateTimeRangePicker/DateTimeRangePicker.tsx +6 -9
- package/src/components/DateTimeRangePicker/EditableDateTimeRangePicker.tsx +14 -0
- package/src/components/DateTimeRangePicker/__tests__/EditableDateTimeRangePicker.spec.tsx +15 -0
- package/src/hooks/useClickWithLoading.ts +13 -1
- package/src/index.ts +1 -0
- package/src/styles/Input.module.css +1 -3
- package/src/styles/NumberInput.module.css +2 -0
- package/src/styles/Tooltip.module.css +1 -1
- package/src/theme/Theme.tsx +0 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { ActionIconCssVariables, ActionIconStylesNames, ActionIconVariant, type ActionIconGroup, type ActionIconProps as MantineActionIconProps } from '@mantine/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ClickHandler } from '../../hooks/useClickWithLoading.js';
|
|
3
3
|
import { ButtonWithDisabledTooltipProps } from '../Button/ButtonWithDisabledTooltip.js';
|
|
4
4
|
export interface ActionIconProps extends MantineActionIconProps, ButtonWithDisabledTooltipProps {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Handler executed on click.
|
|
7
|
+
* Supports async handlers - the button will show a loading state while the promise resolves.
|
|
8
|
+
*/
|
|
9
|
+
onClick?: ClickHandler<HTMLButtonElement>;
|
|
6
10
|
}
|
|
7
11
|
export declare const ActionIcon: (<C = "button">(props: import("@mantine/core").PolymorphicComponentProps<C, ActionIconProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(ActionIconProps & {
|
|
8
12
|
component?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionIcon/ActionIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EAIjB,KAAK,eAAe,EACpB,KAAK,eAAe,IAAI,sBAAsB,EACjD,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ActionIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionIcon/ActionIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EAC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A6B,CAAC;QAC1D,qBAAqB,EAAE,OAAO,+BAA+B,CAAC;KACjE;;WAhBM,eAAe;gBACV,iBAAiB;sBACX,QAAQ;iBACb,qBAAqB;UAC5B,sBAAsB;aACnB,iBAAiB;sBACR;QACd,KAAK,EAAE,OAAO,eAAe,CAAC;QAC9B,OAAO,EAAE,OAAO,iBAAiB,CAAC;QAClC,SAAS,EAAE,OAAO,mBAAmB,CAAC;QACtC,QAAQ,EAAE,OAAO,kBAAkB,CAAC;QACpC,UAAU,EAAE,OAAO,oBAAoB,CAAC;QACxC,kBAAkB,EAAE,OAAO,qBAAqB,CAAC;QACjD,oBAAoB,EAAE,OAAO,8BAA8B,CAAC;QAC5D,mBAAmB,EAAE,OAAO,6BAA6B,CAAC;QAC1D,qBAAqB,EAAE,OAAO,+BAA+B,CAAC;KACjE;;WATU,OAAO,eAAe;aACpB,OAAO,iBAAiB;eACtB,OAAO,mBAAmB;cAC3B,OAAO,kBAAkB;gBACvB,OAAO,oBAAoB;wBACnB,OAAO,qBAAqB;0BAC1B,OAAO,8BAA8B;yBACtC,OAAO,6BAA6B;2BAClC,OAAO,+BAA+B;CAyBpE,CAAC;AAEF,QAAA,MAAM,iBAAiB,oHAErB,CAAC;AACH,QAAA,MAAM,mBAAmB,oHAGvB,CAAC;AACH,QAAA,MAAM,kBAAkB,oHAGtB,CAAC;AACH,QAAA,MAAM,oBAAoB,oHAGxB,CAAC;AAEH,QAAA,MAAM,qBAAqB,oHAAiF,CAAC;AAC7G,QAAA,MAAM,8BAA8B,oHAAgF,CAAC;AACrH,QAAA,MAAM,6BAA6B,oHAGjC,CAAC;AACH,QAAA,MAAM,+BAA+B,oHAAiF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ActionIcon/ActionIcon.tsx"],"sourcesContent":["import {\n ActionIconCssVariables,\n ActionIconStylesNames,\n ActionIconVariant,\n Factory,\n ActionIcon as MantineActionIcon,\n polymorphicFactory,\n type ActionIconGroup,\n type ActionIconProps as MantineActionIconProps,\n} from '@mantine/core';\nimport {ComponentType
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ActionIcon/ActionIcon.tsx"],"sourcesContent":["import {\n ActionIconCssVariables,\n ActionIconStylesNames,\n ActionIconVariant,\n Factory,\n ActionIcon as MantineActionIcon,\n polymorphicFactory,\n type ActionIconGroup,\n type ActionIconProps as MantineActionIconProps,\n} from '@mantine/core';\nimport {ComponentType} from 'react';\nimport {ClickHandler, useClickWithLoading} from '../../hooks/useClickWithLoading.js';\nimport {ButtonWithDisabledTooltip, ButtonWithDisabledTooltipProps} from '../Button/ButtonWithDisabledTooltip.js';\n\nexport interface ActionIconProps extends MantineActionIconProps, ButtonWithDisabledTooltipProps {\n /**\n * Handler executed on click.\n * Supports async handlers - the button will show a loading state while the promise resolves.\n */\n onClick?: ClickHandler<HTMLButtonElement>;\n}\n\ntype ActionIconOverloadFactory = Factory<{\n props: ActionIconProps;\n defaultRef: HTMLButtonElement;\n defaultComponent: 'button';\n stylesNames: ActionIconStylesNames;\n vars: ActionIconCssVariables;\n variant: ActionIconVariant;\n staticComponents: {\n Group: typeof ActionIconGroup;\n Primary: typeof ActionIconPrimary;\n Secondary: typeof ActionIconSecondary;\n Tertiary: typeof ActionIconTertiary;\n Quaternary: typeof ActionIconQuaternary;\n DestructivePrimary: typeof ActionIconDestructive;\n DestructiveSecondary: typeof ActionIconDestructiveSecondary;\n DestructiveTertiary: typeof ActionIconDestructiveTertiary;\n DestructiveQuaternary: typeof ActionIconDestructiveQuaternary;\n };\n}>;\n\nexport const ActionIcon = polymorphicFactory<ActionIconOverloadFactory>(\n ({disabledTooltip, disabled, disabledTooltipProps, loading, onClick, ...others}, ref) => {\n const {isLoading, handleClick} = useClickWithLoading(onClick);\n return (\n <ButtonWithDisabledTooltip\n disabled={disabled}\n disabledTooltip={disabledTooltip}\n disabledTooltipProps={disabledTooltipProps}\n fullWidth={others.fullWidth}\n >\n <MantineActionIcon\n loaderProps={{type: 'oval'}}\n ref={ref}\n loading={isLoading || loading}\n onClick={handleClick}\n disabled={disabled}\n {...others}\n />\n </ButtonWithDisabledTooltip>\n );\n },\n);\n\nconst ActionIconPrimary = ActionIcon.withProps({\n variant: 'filled',\n});\nconst ActionIconSecondary = ActionIcon.withProps({\n variant: 'light',\n color: 'var(--coveo-color-text-primary)',\n});\nconst ActionIconTertiary = ActionIcon.withProps({\n variant: 'default',\n color: 'var(--coveo-color-text-primary)',\n});\nconst ActionIconQuaternary = ActionIcon.withProps({\n variant: 'subtle',\n color: 'var(--coveo-color-text-primary)',\n});\n\nconst ActionIconDestructive = ActionIcon.withProps({variant: 'filled', color: 'var(--mantine-color-error)'});\nconst ActionIconDestructiveSecondary = ActionIcon.withProps({variant: 'light', color: 'var(--mantine-color-error)'});\nconst ActionIconDestructiveTertiary = ActionIcon.withProps({\n variant: 'default',\n vars: () => ({root: {'--ai-color': 'var(--mantine-color-error)'}}),\n});\nconst ActionIconDestructiveQuaternary = ActionIcon.withProps({variant: 'subtle', color: 'var(--mantine-color-error)'});\n\nActionIcon.Group = MantineActionIcon.Group;\nActionIcon.Primary = ActionIconPrimary;\nActionIcon.Secondary = ActionIconSecondary;\nActionIcon.Tertiary = ActionIconTertiary;\nActionIcon.Quaternary = ActionIconQuaternary;\nActionIcon.DestructivePrimary = ActionIconDestructive;\nActionIcon.DestructiveSecondary = ActionIconDestructiveSecondary;\nActionIcon.DestructiveTertiary = ActionIconDestructiveTertiary;\nActionIcon.DestructiveQuaternary = ActionIconDestructiveQuaternary;\n\nActionIcon.displayName = 'ActionIcon';\nActionIcon.Group.displayName = 'ActionIcon.Group';\n(ActionIconPrimary as ComponentType).displayName = 'ActionIcon.Primary';\n(ActionIconSecondary as ComponentType).displayName = 'ActionIcon.Secondary';\n(ActionIconTertiary as ComponentType).displayName = 'ActionIcon.Tertiary';\n(ActionIconQuaternary as ComponentType).displayName = 'ActionIcon.Quaternary';\n(ActionIconDestructive as ComponentType).displayName = 'ActionIcon.DestructivePrimary';\n(ActionIconDestructiveSecondary as ComponentType).displayName = 'ActionIcon.DestructiveSecondary';\n(ActionIconDestructiveTertiary as ComponentType).displayName = 'ActionIcon.DestructiveTertiary';\n(ActionIconDestructiveQuaternary as ComponentType).displayName = 'ActionIcon.DestructiveQuaternary';\n"],"names":["ActionIcon","polymorphicFactory","disabledTooltip","disabled","disabledTooltipProps","loading","onClick","others","ref","useClickWithLoading","isLoading","handleClick","ButtonWithDisabledTooltip","fullWidth","MantineActionIcon","loaderProps","type","ActionIconPrimary","withProps","variant","ActionIconSecondary","color","ActionIconTertiary","ActionIconQuaternary","ActionIconDestructive","ActionIconDestructiveSecondary","ActionIconDestructiveTertiary","vars","root","ActionIconDestructiveQuaternary","Group","Primary","Secondary","Tertiary","Quaternary","DestructivePrimary","DestructiveSecondary","DestructiveTertiary","DestructiveQuaternary","displayName"],"mappings":";;;;+BA0CaA;;;eAAAA;;;;;;;;oBAjCN;mCAEyC;yCACwB;AA8BjE,IAAMA,aAAaC,IAAAA,wBAAkB,EACxC;;;;4EAAEC,wBAAAA,iBAAiBC,iBAAAA,UAAUC,6BAAAA,sBAAsBC,gBAAAA,SAASC,gBAAAA,SAAYC;;;;;;+CAASC;IAC7E,IAAiCC,wBAAAA,IAAAA,wCAAmB,EAACH,UAA9CI,YAA0BD,sBAA1BC,WAAWC,cAAeF,sBAAfE;IAClB,qBACI,qBAACC,oDAAyB;QACtBT,UAAUA;QACVD,iBAAiBA;QACjBE,sBAAsBA;QACtBS,WAAWN,OAAOM,SAAS;kBAE3B,cAAA,qBAACC,gBAAiB;YACdC,aAAa;gBAACC,MAAM;YAAM;YAC1BR,KAAKA;YACLH,SAASK,aAAaL;YACtBC,SAASK;YACTR,UAAUA;WACNI;;AAIpB;AAGJ,IAAMU,oBAAoBjB,WAAWkB,SAAS,CAAC;IAC3CC,SAAS;AACb;AACA,IAAMC,sBAAsBpB,WAAWkB,SAAS,CAAC;IAC7CC,SAAS;IACTE,OAAO;AACX;AACA,I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'@mantine/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ClickHandler } from '../../hooks/useClickWithLoading.js';
|
|
3
3
|
import { ButtonWithDisabledTooltipProps } from './ButtonWithDisabledTooltip.js';
|
|
4
4
|
export interface ButtonProps extends MantineButtonProps, ButtonWithDisabledTooltipProps {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Handler executed on click.
|
|
7
|
+
* Supports async handlers - the button will show a loading state while the promise resolves.
|
|
8
|
+
*/
|
|
9
|
+
onClick?: ClickHandler<HTMLButtonElement>;
|
|
6
10
|
}
|
|
7
11
|
export declare const Button: (<C = "button">(props: import("@mantine/core").PolymorphicComponentProps<C, ButtonProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(ButtonProps & {
|
|
8
12
|
component?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,KAAK,WAAW,EAChB,iBAAiB,EACjB,aAAa,EAGb,WAAW,IAAI,kBAAkB,EAEpC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,KAAK,WAAW,EAChB,iBAAiB,EACjB,aAAa,EAGb,WAAW,IAAI,kBAAkB,EAEpC,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAC,YAAY,EAAsB,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAA4B,8BAA8B,EAAC,MAAM,gCAAgC,CAAC;AAEzG,MAAM,WAAW,WAAY,SAAQ,kBAAkB,EAAE,8BAA8B;IACnF;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC;CAC7C;AAsBD,eAAO,MAAM,MAAM;;;;;;;;;WAnBR,WAAW;gBACN,iBAAiB;sBACX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AAE,OAAO,yBAAyB,CAAC;QACtD,qBAAqB,EAAE,OAAO,2BAA2B,CAAC;KAC7D;;WATU,OAAO,WAAW;aAChB,OAAO,aAAa;eAClB,OAAO,eAAe;cACvB,OAAO,cAAc;gBACnB,OAAO,gBAAgB;wBACf,OAAO,iBAAiB;0BACtB,OAAO,0BAA0B;yBAClC,OAAO,yBAAyB;2BAC9B,OAAO,2BAA2B;CA6BhE,CAAC;AACF,QAAA,MAAM,aAAa,gHAAwC,CAAC;AAC5D,QAAA,MAAM,eAAe,gHAGnB,CAAC;AACH,QAAA,MAAM,cAAc,gHAQlB,CAAC;AACH,QAAA,MAAM,gBAAgB,gHAGpB,CAAC;AAEH,QAAA,MAAM,iBAAiB,gHAA6E,CAAC;AACrG,QAAA,MAAM,0BAA0B,gHAG9B,CAAC;AACH,QAAA,MAAM,yBAAyB,gHAQ7B,CAAC;AACH,QAAA,MAAM,2BAA2B,gHAA6E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import {\n ButtonCssVariables,\n type ButtonGroup,\n ButtonStylesNames,\n ButtonVariant,\n Factory,\n Button as MantineButton,\n ButtonProps as MantineButtonProps,\n polymorphicFactory,\n} from '@mantine/core';\nimport {ComponentType
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import {\n ButtonCssVariables,\n type ButtonGroup,\n ButtonStylesNames,\n ButtonVariant,\n Factory,\n Button as MantineButton,\n ButtonProps as MantineButtonProps,\n polymorphicFactory,\n} from '@mantine/core';\nimport {ComponentType} from 'react';\nimport {ClickHandler, useClickWithLoading} from '../../hooks/useClickWithLoading.js';\nimport {ButtonWithDisabledTooltip, ButtonWithDisabledTooltipProps} from './ButtonWithDisabledTooltip.js';\n\nexport interface ButtonProps extends MantineButtonProps, ButtonWithDisabledTooltipProps {\n /**\n * Handler executed on click.\n * Supports async handlers - the button will show a loading state while the promise resolves.\n */\n onClick?: ClickHandler<HTMLButtonElement>;\n}\n\ntype ButtonOverloadFactory = Factory<{\n props: ButtonProps;\n defaultRef: HTMLButtonElement;\n defaultComponent: 'button';\n stylesNames: ButtonStylesNames;\n vars: ButtonCssVariables;\n variant: ButtonVariant;\n staticComponents: {\n Group: typeof ButtonGroup;\n Primary: typeof ButtonPrimary;\n Secondary: typeof ButtonSecondary;\n Tertiary: typeof ButtonTertiary;\n Quaternary: typeof ButtonQuaternary;\n DestructivePrimary: typeof ButtonDestructive;\n DestructiveSecondary: typeof ButtonDestructiveSecondary;\n DestructiveTertiary: typeof ButtonDestructiveTertiary;\n DestructiveQuaternary: typeof ButtonDestructiveQuaternary;\n };\n}>;\n\nexport const Button = polymorphicFactory<ButtonOverloadFactory>(\n (\n {disabledTooltip, disabled, disabledTooltipProps, loading, onClick, 'data-disabled': dataDisabled, ...others},\n ref,\n ) => {\n const {isLoading, handleClick} = useClickWithLoading(onClick);\n return (\n <ButtonWithDisabledTooltip\n disabled={disabled || dataDisabled}\n disabledTooltip={disabledTooltip}\n disabledTooltipProps={disabledTooltipProps}\n fullWidth={others.fullWidth}\n >\n <MantineButton\n loaderProps={{variant: 'oval'}}\n ref={ref}\n loading={isLoading || loading}\n onClick={dataDisabled ? (e) => e.preventDefault() : handleClick}\n disabled={disabled || dataDisabled}\n data-loading={isLoading || loading || undefined}\n {...others}\n />\n </ButtonWithDisabledTooltip>\n );\n },\n);\nconst ButtonPrimary = Button.withProps({variant: 'filled'});\nconst ButtonSecondary = Button.withProps({\n variant: 'light',\n color: 'var(--coveo-color-text-primary)',\n});\nconst ButtonTertiary = Button.withProps({\n variant: 'default',\n vars: (theme) => ({\n root: {\n '--button-color': 'var(--coveo-color-text-primary)',\n '--button-padding-x': theme.spacing.sm,\n },\n }),\n});\nconst ButtonQuaternary = Button.withProps({\n variant: 'subtle',\n color: 'var(--coveo-color-text-primary)',\n});\n\nconst ButtonDestructive = Button.withProps({variant: 'filled', color: 'var(--mantine-color-error)'});\nconst ButtonDestructiveSecondary = Button.withProps({\n variant: 'light',\n color: 'var(--mantine-color-error)',\n});\nconst ButtonDestructiveTertiary = Button.withProps({\n variant: 'default',\n vars: (theme) => ({\n root: {\n '--button-color': 'var(--mantine-color-error)',\n '--button-padding-x': theme.spacing.sm,\n },\n }),\n});\nconst ButtonDestructiveQuaternary = Button.withProps({variant: 'subtle', color: 'var(--mantine-color-error)'});\n\nButton.Group = MantineButton.Group;\nButton.Group.displayName = 'Button.Group';\nButton.Primary = ButtonPrimary;\nButton.Secondary = ButtonSecondary;\nButton.Tertiary = ButtonTertiary;\nButton.Quaternary = ButtonQuaternary;\nButton.DestructivePrimary = ButtonDestructive;\nButton.DestructiveSecondary = ButtonDestructiveSecondary;\nButton.DestructiveTertiary = ButtonDestructiveTertiary;\nButton.DestructiveQuaternary = ButtonDestructiveQuaternary;\n(ButtonPrimary as ComponentType).displayName = 'Button.Primary';\n(ButtonSecondary as ComponentType).displayName = 'Button.Secondary';\n(ButtonTertiary as ComponentType).displayName = 'Button.Tertiary';\n(ButtonQuaternary as ComponentType).displayName = 'Button.Quaternary';\n(ButtonDestructive as ComponentType).displayName = 'Button.DestructivePrimary';\n(ButtonDestructiveSecondary as ComponentType).displayName = 'Button.DestructiveSecondary';\n(ButtonDestructiveTertiary as ComponentType).displayName = 'Button.DestructiveTertiary';\n(ButtonDestructiveQuaternary as ComponentType).displayName = 'Button.DestructiveQuaternary';\n\nButton.displayName = 'Button';\n"],"names":["Button","polymorphicFactory","disabledTooltip","disabled","disabledTooltipProps","loading","onClick","dataDisabled","others","ref","useClickWithLoading","isLoading","handleClick","ButtonWithDisabledTooltip","fullWidth","MantineButton","loaderProps","variant","e","preventDefault","data-loading","undefined","ButtonPrimary","withProps","ButtonSecondary","color","ButtonTertiary","vars","theme","root","spacing","sm","ButtonQuaternary","ButtonDestructive","ButtonDestructiveSecondary","ButtonDestructiveTertiary","ButtonDestructiveQuaternary","Group","displayName","Primary","Secondary","Tertiary","Quaternary","Destructiv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ChDN,SAAS;IACTQ,OAAO;AACX;AACA,IAAMU,4BAA4BnC,OAAOuB,SAAS,CAAC;IAC/CN,SAAS;IACTU,MAAM,SAANA,KAAOC;eAAW;YACdC,MAAM;gBACF,kBAAkB;gBAClB,sBAAsBD,MAAME,OAAO,CAACC,EAAE;YAC1C;QACJ;;AACJ;AACA,IAAMK,8BAA8BpC,OAAOuB,SAAS,CAAC;IAACN,SAAS;IAAUQ,OAAO;AAA4B;AAE5GzB,OAAOqC,KAAK,GAAGtB,YAAa,CAACsB,KAAK;AAClCrC,OAAOqC,KAAK,CAACC,WAAW,GAAG;AAC3BtC,OAAOuC,OAAO,GAAGjB;AACjBtB,OAAOwC,SAAS,GAAGhB;AACnBxB,OAAOyC,QAAQ,GAAGf;AAClB1B,OAAO0C,UAAU,GAAGV;AACpBhC,OAAO2C,kBAAkB,GAAGV;AAC5BjC,OAAO4C,oBAAoB,GAAGV;AAC9BlC,OAAO6C,mBAAmB,GAAGV;AAC7BnC,OAAO8C,qBAAqB,GAAGV;AAC9Bd,cAAgCgB,WAAW,GAAG;AAC9Cd,gBAAkCc,WAAW,GAAG;AAChDZ,eAAiCY,WAAW,GAAG;AAC/CN,iBAAmCM,WAAW,GAAG;AACjDL,kBAAoCK,WAAW,GAAG;AAClDJ,2BAA6CI,WAAW,GAAG;AAC3DH,0BAA4CG,WAAW,GAAG;AAC1DF,4BAA8CE,WAAW,GAAG;AAE7DtC,OAAOsC,WAAW,GAAG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DatesRangeValue, DateStringValue } from '@mantine/dates';
|
|
2
2
|
import { DateRangePickerPreset } from '../DateRangePicker/DateRangePickerPresetSelect.js';
|
|
3
3
|
import { EditableDateTimeRangePickerProps } from './EditableDateTimeRangePicker.js';
|
|
4
|
-
interface DateTimeRangePickerProps extends Pick<EditableDateTimeRangePickerProps, 'startProps' | 'endProps'> {
|
|
4
|
+
interface DateTimeRangePickerProps extends Pick<EditableDateTimeRangePickerProps, 'startProps' | 'endProps' | 'dateFormat' | 'timePickerFormat'> {
|
|
5
5
|
/** Default value for uncontrolled input */
|
|
6
6
|
defaultValue?: DatesRangeValue<DateStringValue | null>;
|
|
7
7
|
/** Value for controlled input */
|
|
@@ -20,6 +20,6 @@ interface DateTimeRangePickerProps extends Pick<EditableDateTimeRangePickerProps
|
|
|
20
20
|
*/
|
|
21
21
|
presets?: Record<string, DateRangePickerPreset>;
|
|
22
22
|
}
|
|
23
|
-
export declare const DateTimeRangePicker: ({ presets, value, defaultValue, onChange,
|
|
23
|
+
export declare const DateTimeRangePicker: ({ presets, value, defaultValue, onChange, ...otherProps }: DateTimeRangePickerProps) => import("react/jsx-runtime.js").JSX.Element;
|
|
24
24
|
export {};
|
|
25
25
|
//# sourceMappingURL=DateTimeRangePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTimeRangePicker/DateTimeRangePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAA8B,MAAM,mDAAmD,CAAC;AACrH,OAAO,EAA8B,gCAAgC,EAAC,MAAM,kCAAkC,CAAC;AAE/G,UAAU,wBAAyB,SAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"DateTimeRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTimeRangePicker/DateTimeRangePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAA8B,MAAM,mDAAmD,CAAC;AACrH,OAAO,EAA8B,gCAAgC,EAAC,MAAM,kCAAkC,CAAC;AAE/G,UAAU,wBAAyB,SAAQ,IAAI,CAC3C,gCAAgC,EAChC,YAAY,GAAG,UAAU,GAAG,YAAY,GAAG,kBAAkB,CAChE;IACG,2CAA2C;IAC3C,YAAY,CAAC,EAAE,eAAe,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IACvD,iCAAiC;IACjC,KAAK,CAAC,EAAE,eAAe,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IAChD,0CAA0C;IAC1C,QAAQ,CAAC,CAAC,KAAK,EAAE,eAAe,CAAC,eAAe,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAChE;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;CACnD;AAED,eAAO,MAAM,mBAAmB,GAAI,2DAMjC,wBAAwB,+CAqB1B,CAAC"}
|
|
@@ -8,14 +8,21 @@ Object.defineProperty(exports, "DateTimeRangePicker", {
|
|
|
8
8
|
return DateTimeRangePicker;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
var _object_spread = require("@swc/helpers/_/_object_spread");
|
|
12
|
+
var _object_without_properties = require("@swc/helpers/_/_object_without_properties");
|
|
11
13
|
var _sliced_to_array = require("@swc/helpers/_/_sliced_to_array");
|
|
12
14
|
var _jsxruntime = require("react/jsx-runtime");
|
|
13
15
|
var _core = require("@mantine/core");
|
|
14
16
|
var _hooks = require("@mantine/hooks");
|
|
15
17
|
var _DateRangePickerPresetSelect = require("../DateRangePicker/DateRangePickerPresetSelect.js");
|
|
16
18
|
var _EditableDateTimeRangePicker = require("./EditableDateTimeRangePicker.js");
|
|
17
|
-
var DateTimeRangePicker = function DateTimeRangePicker(
|
|
18
|
-
var presets =
|
|
19
|
+
var DateTimeRangePicker = function DateTimeRangePicker(_0) {
|
|
20
|
+
var presets = _0.presets, value = _0.value, defaultValue = _0.defaultValue, onChange = _0.onChange, otherProps = _object_without_properties._(_0, [
|
|
21
|
+
"presets",
|
|
22
|
+
"value",
|
|
23
|
+
"defaultValue",
|
|
24
|
+
"onChange"
|
|
25
|
+
]);
|
|
19
26
|
var _useUncontrolled = _sliced_to_array._((0, _hooks.useUncontrolled)({
|
|
20
27
|
value: value,
|
|
21
28
|
defaultValue: defaultValue,
|
|
@@ -28,12 +35,10 @@ var DateTimeRangePicker = function DateTimeRangePicker(param) {
|
|
|
28
35
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_core.Group, {
|
|
29
36
|
align: "center",
|
|
30
37
|
children: [
|
|
31
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_EditableDateTimeRangePicker.EditableDateTimeRangePicker, {
|
|
38
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_EditableDateTimeRangePicker.EditableDateTimeRangePicker, _object_spread._({
|
|
32
39
|
value: _value,
|
|
33
|
-
onChange: handleChange
|
|
34
|
-
|
|
35
|
-
endProps: endProps
|
|
36
|
-
}),
|
|
40
|
+
onChange: handleChange
|
|
41
|
+
}, otherProps)),
|
|
37
42
|
presets && /*#__PURE__*/ (0, _jsxruntime.jsx)(_DateRangePickerPresetSelect.DateRangePickerPresetSelect, {
|
|
38
43
|
presets: presets,
|
|
39
44
|
value: _value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/DateTimeRangePicker/DateTimeRangePicker.tsx"],"sourcesContent":["import {Group} from '@mantine/core';\nimport {useUncontrolled} from '@mantine/hooks';\n\nimport {DatesRangeValue, DateStringValue} from '@mantine/dates';\nimport {DateRangePickerPreset, DateRangePickerPresetSelect} from '../DateRangePicker/DateRangePickerPresetSelect.js';\nimport {EditableDateTimeRangePicker, EditableDateTimeRangePickerProps} from './EditableDateTimeRangePicker.js';\n\ninterface DateTimeRangePickerProps extends Pick
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/DateTimeRangePicker/DateTimeRangePicker.tsx"],"sourcesContent":["import {Group} from '@mantine/core';\nimport {useUncontrolled} from '@mantine/hooks';\n\nimport {DatesRangeValue, DateStringValue} from '@mantine/dates';\nimport {DateRangePickerPreset, DateRangePickerPresetSelect} from '../DateRangePicker/DateRangePickerPresetSelect.js';\nimport {EditableDateTimeRangePicker, EditableDateTimeRangePickerProps} from './EditableDateTimeRangePicker.js';\n\ninterface DateTimeRangePickerProps extends Pick<\n EditableDateTimeRangePickerProps,\n 'startProps' | 'endProps' | 'dateFormat' | 'timePickerFormat'\n> {\n /** Default value for uncontrolled input */\n defaultValue?: DatesRangeValue<DateStringValue | null>;\n /** Value for controlled input */\n value?: DatesRangeValue<DateStringValue | null>;\n /** onChange value for controlled input */\n onChange?(value: DatesRangeValue<DateStringValue | null>): void;\n /**\n * The presets to display\n *\n * @default {}\n * @example\n * {\n * january: {label: 'January', range: [new Date(2022, 0, 1, 0, 0, 0), new Date(2022, 0, 31, 23, 59, 59)]},\n * february: {label: 'February', range: [new Date(2022, 1, 1, 0, 0, 0), new Date(2022, 1, 28, 23, 59, 59)]}\n * }\n */\n presets?: Record<string, DateRangePickerPreset>;\n}\n\nexport const DateTimeRangePicker = ({\n presets,\n value,\n defaultValue,\n onChange,\n ...otherProps\n}: DateTimeRangePickerProps) => {\n const [_value, handleChange] = useUncontrolled<DatesRangeValue<DateStringValue | null>>({\n value,\n defaultValue,\n onChange,\n finalValue: [null, null],\n });\n\n return (\n <Group align=\"center\">\n <EditableDateTimeRangePicker value={_value} onChange={handleChange} {...otherProps} />\n {presets && (\n <DateRangePickerPresetSelect\n presets={presets}\n value={_value}\n onChange={handleChange}\n selectProps={{ml: 'sm'}}\n />\n )}\n </Group>\n );\n};\n"],"names":["DateTimeRangePicker","presets","value","defaultValue","onChange","otherProps","useUncontrolled","finalValue","_value","handleChange","Group","align","EditableDateTimeRangePicker","DateRangePickerPresetSelect","selectProps","ml"],"mappings":";;;;+BA8BaA;;;eAAAA;;;;;;;oBA9BO;qBACU;2CAGmC;2CACW;AAyBrE,IAAMA,sBAAsB;QAC/BC,aAAAA,SACAC,WAAAA,OACAC,kBAAAA,cACAC,cAAAA,UACGC;;;;;;IAEH,IAA+BC,sCAAAA,IAAAA,sBAAe,EAA0C;QACpFJ,OAAAA;QACAC,cAAAA;QACAC,UAAAA;QACAG,YAAY;YAAC;YAAM;SAAK;IAC5B,QALOC,SAAwBF,qBAAhBG,eAAgBH;IAO/B,qBACI,sBAACI,WAAK;QAACC,OAAM;;0BACT,qBAACC,wDAA2B;gBAACV,OAAOM;gBAAQJ,UAAUK;eAAkBJ;YACvEJ,yBACG,qBAACY,wDAA2B;gBACxBZ,SAASA;gBACTC,OAAOM;gBACPJ,UAAUK;gBACVK,aAAa;oBAACC,IAAI;gBAAI;;;;AAK1C"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { DatePickerProps, DatesRangeValue, DateStringValue } from '@mantine/dates';
|
|
2
2
|
export interface EditableDateTimeRangePickerProps {
|
|
3
3
|
value: DatesRangeValue<DateStringValue | null>;
|
|
4
|
+
/**
|
|
5
|
+
* The format of the date in the input
|
|
6
|
+
*/
|
|
7
|
+
dateFormat?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The format of the time in the time picker, either 12h or 24h
|
|
10
|
+
*/
|
|
11
|
+
timePickerFormat?: '12h' | '24h';
|
|
4
12
|
onChange?(value: DatesRangeValue<DateStringValue | null>): void;
|
|
5
13
|
/**
|
|
6
14
|
* Props for the start input
|
|
@@ -11,5 +19,5 @@ export interface EditableDateTimeRangePickerProps {
|
|
|
11
19
|
*/
|
|
12
20
|
endProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;
|
|
13
21
|
}
|
|
14
|
-
export declare const EditableDateTimeRangePicker: ({ value, onChange, startProps, endProps, }: EditableDateTimeRangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const EditableDateTimeRangePicker: ({ value, dateFormat, onChange, timePickerFormat, startProps, endProps, }: EditableDateTimeRangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
23
|
//# sourceMappingURL=EditableDateTimeRangePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableDateTimeRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTimeRangePicker/EditableDateTimeRangePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,eAAe,EAAE,eAAe,EAAiB,MAAM,gBAAgB,CAAC;AAGjG,MAAM,WAAW,gCAAgC;IAC7C,KAAK,EAAE,eAAe,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IAC/C,QAAQ,CAAC,CAAC,KAAK,EAAE,eAAe,CAAC,eAAe,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAChE;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;IAC9E;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;CAC/E;AAED,eAAO,MAAM,2BAA2B,GAAI,
|
|
1
|
+
{"version":3,"file":"EditableDateTimeRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTimeRangePicker/EditableDateTimeRangePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,eAAe,EAAE,eAAe,EAAiB,MAAM,gBAAgB,CAAC;AAGjG,MAAM,WAAW,gCAAgC;IAC7C,KAAK,EAAE,eAAe,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IAC/C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACjC,QAAQ,CAAC,CAAC,KAAK,EAAE,eAAe,CAAC,eAAe,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAChE;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;IAC9E;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;CAC/E;AAED,eAAO,MAAM,2BAA2B,GAAI,0EAOzC,gCAAgC,4CAwClC,CAAC"}
|
|
@@ -14,7 +14,7 @@ var _jsxruntime = require("react/jsx-runtime");
|
|
|
14
14
|
var _dates = require("@mantine/dates");
|
|
15
15
|
var _dayjs = /*#__PURE__*/ _interop_require_default._(require("dayjs"));
|
|
16
16
|
var EditableDateTimeRangePicker = function EditableDateTimeRangePicker(param) {
|
|
17
|
-
var value = param.value, onChange = param.onChange, _param_startProps = param.startProps, startProps = _param_startProps === void 0 ? {} : _param_startProps, _param_endProps = param.endProps, endProps = _param_endProps === void 0 ? {} : _param_endProps;
|
|
17
|
+
var value = param.value, dateFormat = param.dateFormat, onChange = param.onChange, _param_timePickerFormat = param.timePickerFormat, timePickerFormat = _param_timePickerFormat === void 0 ? '12h' : _param_timePickerFormat, _param_startProps = param.startProps, startProps = _param_startProps === void 0 ? {} : _param_startProps, _param_endProps = param.endProps, endProps = _param_endProps === void 0 ? {} : _param_endProps;
|
|
18
18
|
var onStartDateChange = function onStartDateChange(startDate) {
|
|
19
19
|
if ((value === null || value === void 0 ? void 0 : value[1]) && (0, _dayjs.default)(startDate) > (0, _dayjs.default)(value[1])) {
|
|
20
20
|
onChange === null || onChange === void 0 ? void 0 : onChange([
|
|
@@ -35,9 +35,11 @@ var EditableDateTimeRangePicker = function EditableDateTimeRangePicker(param) {
|
|
|
35
35
|
label: "Start",
|
|
36
36
|
value: value === null || value === void 0 ? void 0 : value[0],
|
|
37
37
|
onChange: onStartDateChange,
|
|
38
|
+
valueFormat: dateFormat,
|
|
38
39
|
w: 150,
|
|
39
40
|
styles: _object_spread._({}, startProps.styles),
|
|
40
41
|
timePickerProps: {
|
|
42
|
+
format: timePickerFormat,
|
|
41
43
|
popoverProps: {
|
|
42
44
|
withinPortal: false
|
|
43
45
|
}
|
|
@@ -54,9 +56,11 @@ var EditableDateTimeRangePicker = function EditableDateTimeRangePicker(param) {
|
|
|
54
56
|
endDate
|
|
55
57
|
]);
|
|
56
58
|
},
|
|
59
|
+
valueFormat: dateFormat,
|
|
57
60
|
w: 150,
|
|
58
61
|
styles: _object_spread._({}, endProps.styles),
|
|
59
62
|
timePickerProps: {
|
|
63
|
+
format: timePickerFormat,
|
|
60
64
|
popoverProps: {
|
|
61
65
|
withinPortal: false
|
|
62
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/DateTimeRangePicker/EditableDateTimeRangePicker.tsx"],"sourcesContent":["import {DatePickerProps, DatesRangeValue, DateStringValue, DateTimePicker} from '@mantine/dates';\nimport dayjs from 'dayjs';\n\nexport interface EditableDateTimeRangePickerProps {\n value: DatesRangeValue<DateStringValue | null>;\n onChange?(value: DatesRangeValue<DateStringValue | null>): void;\n /**\n * Props for the start input\n */\n startProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;\n /**\n * Props for the end input\n */\n endProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;\n}\n\nexport const EditableDateTimeRangePicker = ({\n value,\n onChange,\n startProps = {},\n endProps = {},\n}: EditableDateTimeRangePickerProps) => {\n const onStartDateChange = (startDate: string) => {\n if (value?.[1] && dayjs(startDate) > dayjs(value[1])) {\n onChange?.([startDate, null]);\n } else {\n onChange?.([startDate, value?.[1]]);\n }\n };\n\n return (\n <>\n <DateTimePicker\n clearable={false}\n label=\"Start\"\n value={value?.[0]}\n onChange={onStartDateChange}\n w={150}\n styles={{...startProps.styles}}\n timePickerProps={{\n popoverProps: {withinPortal: false},\n }}\n />\n <DateTimePicker\n clearable={false}\n label=\"End\"\n value={value?.[1]}\n minDate={value?.[0]}\n onChange={(endDate) => onChange?.([value?.[0], endDate])}\n w={150}\n styles={{...endProps.styles}}\n timePickerProps={{\n popoverProps: {withinPortal: false},\n }}\n />\n </>\n );\n};\n"],"names":["EditableDateTimeRangePicker","value","onChange","startProps","endProps","onStartDateChange","startDate","dayjs","DateTimePicker","clearable","label","w","styles","timePickerProps","popoverProps","withinPortal","minDate","endDate"],"mappings":";;;;+
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/DateTimeRangePicker/EditableDateTimeRangePicker.tsx"],"sourcesContent":["import {DatePickerProps, DatesRangeValue, DateStringValue, DateTimePicker} from '@mantine/dates';\nimport dayjs from 'dayjs';\n\nexport interface EditableDateTimeRangePickerProps {\n value: DatesRangeValue<DateStringValue | null>;\n /**\n * The format of the date in the input\n */\n dateFormat?: string;\n /**\n * The format of the time in the time picker, either 12h or 24h\n */\n timePickerFormat?: '12h' | '24h';\n onChange?(value: DatesRangeValue<DateStringValue | null>): void;\n /**\n * Props for the start input\n */\n startProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;\n /**\n * Props for the end input\n */\n endProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;\n}\n\nexport const EditableDateTimeRangePicker = ({\n value,\n dateFormat,\n onChange,\n timePickerFormat = '12h',\n startProps = {},\n endProps = {},\n}: EditableDateTimeRangePickerProps) => {\n const onStartDateChange = (startDate: string) => {\n if (value?.[1] && dayjs(startDate) > dayjs(value[1])) {\n onChange?.([startDate, null]);\n } else {\n onChange?.([startDate, value?.[1]]);\n }\n };\n\n return (\n <>\n <DateTimePicker\n clearable={false}\n label=\"Start\"\n value={value?.[0]}\n onChange={onStartDateChange}\n valueFormat={dateFormat}\n w={150}\n styles={{...startProps.styles}}\n timePickerProps={{\n format: timePickerFormat,\n popoverProps: {withinPortal: false},\n }}\n />\n <DateTimePicker\n clearable={false}\n label=\"End\"\n value={value?.[1]}\n minDate={value?.[0]}\n onChange={(endDate) => onChange?.([value?.[0], endDate])}\n valueFormat={dateFormat}\n w={150}\n styles={{...endProps.styles}}\n timePickerProps={{\n format: timePickerFormat,\n popoverProps: {withinPortal: false},\n }}\n />\n </>\n );\n};\n"],"names":["EditableDateTimeRangePicker","value","dateFormat","onChange","timePickerFormat","startProps","endProps","onStartDateChange","startDate","dayjs","DateTimePicker","clearable","label","valueFormat","w","styles","timePickerProps","format","popoverProps","withinPortal","minDate","endDate"],"mappings":";;;;+BAwBaA;;;eAAAA;;;;;;qBAxBmE;8DAC9D;AAuBX,IAAMA,8BAA8B;QACvCC,cAAAA,OACAC,mBAAAA,YACAC,iBAAAA,0CACAC,kBAAAA,wDAAmB,2DACnBC,YAAAA,4CAAa,CAAC,+CACdC,UAAAA,wCAAW,CAAC;IAEZ,IAAMC,oBAAoB,2BAACC;QACvB,IAAIP,CAAAA,kBAAAA,4BAAAA,KAAO,CAAC,EAAE,KAAIQ,IAAAA,cAAK,EAACD,aAAaC,IAAAA,cAAK,EAACR,KAAK,CAAC,EAAE,GAAG;YAClDE,qBAAAA,+BAAAA,SAAW;gBAACK;gBAAW;aAAK;QAChC,OAAO;YACHL,qBAAAA,+BAAAA,SAAW;gBAACK;gBAAWP,kBAAAA,4BAAAA,KAAO,CAAC,EAAE;aAAC;QACtC;IACJ;IAEA,qBACI;;0BACI,qBAACS,qBAAc;gBACXC,WAAW;gBACXC,OAAM;gBACNX,KAAK,EAAEA,kBAAAA,4BAAAA,KAAO,CAAC,EAAE;gBACjBE,UAAUI;gBACVM,aAAaX;gBACbY,GAAG;gBACHC,QAAQ,qBAAIV,WAAWU,MAAM;gBAC7BC,iBAAiB;oBACbC,QAAQb;oBACRc,cAAc;wBAACC,cAAc;oBAAK;gBACtC;;0BAEJ,qBAACT,qBAAc;gBACXC,WAAW;gBACXC,OAAM;gBACNX,KAAK,EAAEA,kBAAAA,4BAAAA,KAAO,CAAC,EAAE;gBACjBmB,OAAO,EAAEnB,kBAAAA,4BAAAA,KAAO,CAAC,EAAE;gBACnBE,UAAU,SAAVA,UAAWkB;2BAAYlB,qBAAAA,+BAAAA,SAAW;wBAACF,kBAAAA,4BAAAA,KAAO,CAAC,EAAE;wBAAEoB;qBAAQ;;gBACvDR,aAAaX;gBACbY,GAAG;gBACHC,QAAQ,qBAAIT,SAASS,MAAM;gBAC3BC,iBAAiB;oBACbC,QAAQb;oBACRc,cAAc;wBAACC,cAAc;oBAAK;gBACtC;;;;AAIhB"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { MouseEvent, MouseEventHandler } from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* A click handler that supports:
|
|
4
|
+
* - Standard MouseEventHandler (receives event, returns void)
|
|
5
|
+
* - Async handlers (receives event, returns Promise)
|
|
6
|
+
* - Parameterless handlers (no event parameter)
|
|
7
|
+
*/
|
|
8
|
+
export type ClickHandler<T = HTMLButtonElement> = MouseEventHandler<T> | ((event: MouseEvent<T>) => Promise<void>) | (() => void) | (() => Promise<void>);
|
|
9
|
+
export declare const useClickWithLoading: (handler?: ClickHandler<HTMLButtonElement>) => {
|
|
3
10
|
isLoading: boolean;
|
|
4
11
|
handleClick: (event: MouseEvent<HTMLButtonElement>) => Promise<void>;
|
|
5
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClickWithLoading.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClickWithLoading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAE9D,eAAO,MAAM,mBAAmB,GAAI,UAAU,
|
|
1
|
+
{"version":3,"file":"useClickWithLoading.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClickWithLoading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,iBAAiB,IACxC,iBAAiB,CAAC,CAAC,CAAC,GACpB,CAAC,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GACzC,CAAC,MAAM,IAAI,CAAC,GACZ,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAE5B,eAAO,MAAM,mBAAmB,GAAI,UAAU,YAAY,CAAC,iBAAiB,CAAC;;yBAGvC,UAAU,CAAC,iBAAiB,CAAC;CAelE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/hooks/useClickWithLoading.ts"],"sourcesContent":["import {MouseEvent, MouseEventHandler, useState} from 'react';\n\nexport const useClickWithLoading = (handler?:
|
|
1
|
+
{"version":3,"sources":["../../../src/hooks/useClickWithLoading.ts"],"sourcesContent":["import {MouseEvent, MouseEventHandler, useState} from 'react';\n\n/**\n * A click handler that supports:\n * - Standard MouseEventHandler (receives event, returns void)\n * - Async handlers (receives event, returns Promise)\n * - Parameterless handlers (no event parameter)\n */\nexport type ClickHandler<T = HTMLButtonElement> =\n | MouseEventHandler<T>\n | ((event: MouseEvent<T>) => Promise<void>)\n | (() => void)\n | (() => Promise<void>);\n\nexport const useClickWithLoading = (handler?: ClickHandler<HTMLButtonElement>) => {\n const [isLoading, setIsLoading] = useState(false);\n\n const handleClick = async (event: MouseEvent<HTMLButtonElement>) => {\n const possiblePromise: unknown = handler?.(event);\n try {\n if (possiblePromise instanceof Promise) {\n setIsLoading(true);\n await possiblePromise;\n setIsLoading(false);\n }\n } catch (err) {\n setIsLoading(false);\n console.error(err);\n }\n };\n\n return {isLoading, handleClick};\n};\n"],"names":["useClickWithLoading","handler","useState","isLoading","setIsLoading","handleClick","event","possiblePromise","err","Promise","console","error"],"mappings":";;;;+BAcaA;;;eAAAA;;;;;;;qBAdyC;AAc/C,IAAMA,sBAAsB,6BAACC;IAChC,IAAkCC,+BAAAA,IAAAA,eAAQ,EAAC,YAApCC,YAA2BD,cAAhBE,eAAgBF;IAElC,IAAMG,cAAc,qBAAOC;;gBACjBC,iBAOGC;;;;wBAPHD,kBAA2BN,oBAAAA,8BAAAA,QAAUK;;;;;;;;;6BAEnCC,AAAe,aAAYE,CAA3BF,iBAA2BE,UAA3BF;;;;wBACAH,aAAa;wBACb;;4BAAMG;;;wBAAN;wBACAH,aAAa;;;;;;;;wBAEZI;wBACLJ,aAAa;wBACbM,QAAQC,KAAK,CAACH;;;;;;;;;;;QAEtB;;IAEA,OAAO;QAACL,WAAAA;QAAWE,aAAAA;IAAW;AAClC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './components/BrowserPreview/BrowserPreview.js';
|
|
|
30
30
|
export * from './components/Burger/Burger.js';
|
|
31
31
|
export { Button, type ButtonProps } from './components/Button/Button.js';
|
|
32
32
|
export { type ButtonWithDisabledTooltipProps } from './components/Button/ButtonWithDisabledTooltip.js';
|
|
33
|
+
export { type ClickHandler } from './hooks/useClickWithLoading.js';
|
|
33
34
|
export * from './components/Card/Card.js';
|
|
34
35
|
export * from './components/Center/Center.js';
|
|
35
36
|
export * from './components/CheckIcon/CheckIcon.js';
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACvD,OAAO,EAAC,KAAK,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAE1D,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,gBAAgB,CAAC;AACpD,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAC,KAAK,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAC/D,cAAc,sBAAsB,CAAC;AAI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,cAAc,iDAAiD,CAAC;AAGhE,cAAc,2BAA2B,CAAC;AAG1C,cAAc,qCAAqC,CAAC;AAGpD,cAAc,2BAA2B,CAAC;AAG1C,cAAc,qCAAqC,CAAC;AAGpD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,6BAA6B,CAAC;AAG5C,cAAc,iCAAiC,CAAC;AAGhD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,2BAA2B,CAAC;AAG1C,cAAc,uCAAuC,CAAC;AAGtD,cAAc,+CAA+C,CAAC;AAG9D,cAAc,+CAA+C,CAAC;AAE9D,OAAO,EAAC,IAAI,EAAC,CAAC;AAGd,cAAc,uCAAuC,CAAC;AACtD,cAAc,wBAAwB,CAAC;AAEvC,OAAO,QAAQ,eAAe,CAAC;IAC3B,UAAiB,0BAA0B;QACvC,MAAM,EAAE,MAAM,CAAC,MAAM,OAAO,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,kBAAkB,CAAC,CAAC;KACjF;CACJ;AAED,OAAO,QAAQ,uBAAuB,CAAC;IAEnC,UAAU,UAAU,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM;QAC9C;;;;WAIG;QACH,aAAa,EAAE,OAAO,CAAC;KAC1B;CACJ"}
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import {MantineColorsTuple, noop} from '@mantine/core';\nimport {type RowData} from '@tanstack/table-core';\nimport {type PlasmaColors} from './theme/PlasmaColors.js';\n\nexport * from '@mantine/carousel';\nexport * from '@mantine/core';\nexport {Pagination} from '@mantine/core';\nexport {type DatesRangeValue} from '@mantine/dates';\nexport * from '@mantine/form';\nexport * from '@mantine/hooks';\nexport * from '@mantine/notifications';\nexport {type NotificationsProps} from '@mantine/notifications';\nexport * from '@tanstack/table-core';\n\n// Export all components\n// Accordion\nexport {Accordion} from './components/Accordion/Accordion.js';\n\n// Action Icon - override Mantine ActionIcon\nexport {ActionIcon, type ActionIconProps} from './components/ActionIcon/ActionIcon.js';\n\n// Affix\nexport * from './components/Affix/Affix.js';\n\n// Anchor\nexport * from './components/Anchor/Anchor.js';\n\n// Angle Slider\nexport * from './components/AngleSlider/AngleSlider.js';\n\n// App Shell\nexport * from './components/AppShell/AppShell.js';\n\n// Aspect Ratio\nexport * from './components/AspectRatio/AspectRatio.js';\n\n// Autocomplete\nexport * from './components/Autocomplete/Autocomplete.js';\n\n// Avatar\nexport * from './components/Avatar/Avatar.js';\n\n// Background Image\nexport * from './components/BackgroundImage/BackgroundImage.js';\n\n// Alert - override Mantine Alert\nexport {Alert} from './components/Alert/Alert.js';\n\n// Badge - override Mantine Badge\nexport {\n Badge,\n type BadgeOverloadFactory,\n type SemanticBadge,\n type SemanticBadgeProps,\n} from './components/Badge/Badge.js';\n\n// Blockquote\nexport * from './components/Blockquote/Blockquote.js';\n\n// Blank Slate\nexport * from './components/BlankSlate/BlankSlate.js';\n\n// Box\nexport * from './components/Box/Box.js';\n\n// Breadcrumbs\nexport * from './components/Breadcrumbs/Breadcrumbs.js';\n\n// Browser Preview\nexport * from './components/BrowserPreview/BrowserPreview.js';\n\n// Burger\nexport * from './components/Burger/Burger.js';\n\n// Button - override Mantine Button\nexport {Button, type ButtonProps} from './components/Button/Button.js';\nexport {type ButtonWithDisabledTooltipProps} from './components/Button/ButtonWithDisabledTooltip.js';\n\n// Card\nexport * from './components/Card/Card.js';\n\n// Center\nexport * from './components/Center/Center.js';\n\n// Check Icon\nexport * from './components/CheckIcon/CheckIcon.js';\n\n// Checkbox\nexport * from './components/Checkbox/Checkbox.js';\n\n// Checkbox Icon\nexport * from './components/CheckboxIcon/CheckboxIcon.js';\n\n// Child Form\nexport * from './components/ChildForm/ChildForm.js';\n\n// Chip - override Mantine Chip\nexport {Chip} from './components/Chip/Chip.js';\n\n// Close Button\nexport * from './components/CloseButton/CloseButton.js';\n\n// Code\nexport * from './components/Code/Code.js';\n\n// Code Editor\nexport * from './components/CodeEditor/CodeEditor.js';\n\n// Collapse\nexport * from './components/Collapse/Collapse.js';\n\n// Collection\nexport * from './components/Collection/Collection.js';\nexport {enhanceWithCollectionProps} from './components/Collection/enhanceWithCollectionProps.js';\nexport type {\n CollectionColumnDef,\n CollectionCellContext,\n CollectionHeaderContext,\n} from './components/Collection/CollectionColumn.types.js';\nexport type {\n CollectionLayout,\n CollectionLayoutHeaderProps,\n CollectionLayoutBodyProps,\n} from './components/Collection/layouts/CollectionLayout.types.js';\n\n// Color Input\nexport * from './components/ColorInput/ColorInput.js';\n\n// Color Picker\nexport * from './components/ColorPicker/ColorPicker.js';\n\n// Color Swatch\nexport * from './components/ColorSwatch/ColorSwatch.js';\n\n// Combobox\nexport * from './components/Combobox/Combobox.js';\n\n// Container\nexport * from './components/Container/Container.js';\n\n// Copy Button\nexport * from './components/CopyButton/CopyButton.js';\n\n// Copy to Clipboard\nexport * from './components/CopyToClipboard/CopyToClipboard.js';\n\n// Date Range Picker\nexport * from './components/DateRangePicker/DateRangePicker.js';\nexport * from './components/DateRangePicker/DateRangePickerInlineCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPopoverCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPresetSelect.js';\n\n// Date Picker Input\nexport * from './components/DatePickerInput/DatePickerInput.js';\n\n// Date Time Range Picker\nexport * from './components/DateTimeRangePicker/DateTimeRangePicker.js';\n\n// Month Picker Input\nexport * from './components/MonthPickerInput/MonthPickerInput.js';\n\n// Time Picker\nexport * from './components/TimePicker/TimePicker.js';\n\n// Year Picker Input\nexport * from './components/YearPickerInput/YearPickerInput.js';\n\n// Dialog\nexport * from './components/Dialog/Dialog.js';\n\n// Divider\nexport * from './components/Divider/Divider.js';\n\n// Drawer\nexport * from './components/Drawer/Drawer.js';\n\n// Ellipsis Text\nexport * from './components/EllipsisText/EllipsisText.js';\n\n// Facet\nexport * from './components/Facet/Facet.js';\n\n// Fieldset\nexport * from './components/Fieldset/Fieldset.js';\n\n// File Button\nexport * from './components/FileButton/FileButton.js';\n\n// File Input\nexport * from './components/FileInput/FileInput.js';\n\n// Flex\nexport * from './components/Flex/Flex.js';\n\n// Floating Indicator\nexport * from './components/FloatingIndicator/FloatingIndicator.js';\n\n// Focus Trap\nexport * from './components/FocusTrap/FocusTrap.js';\n\n// Grid\nexport * from './components/Grid/Grid.js';\n\n// Group\nexport * from './components/Group/Group.js';\n\n// Header - override @tanstack/table-core Header\nexport {\n Header,\n type HeaderBreadcrumbsProps,\n type HeaderDocAnchorProps,\n type HeaderFactory,\n type HeaderProps,\n type HeaderRightProps,\n type HeaderStyleNames,\n type HeaderVariant,\n} from './components/Header/Header.js';\n\n// Highlight\nexport * from './components/Highlight/Highlight.js';\n\n// Hover Card\nexport * from './components/HoverCard/HoverCard.js';\n\n// Image\nexport * from './components/Image/Image.js';\n\n// Indicator\nexport * from './components/Indicator/Indicator.js';\n\n// Info Token\nexport * from './components/InfoToken/InfoToken.js';\n\n// Input\nexport * from './components/Input/Input.js';\n\n// Input Base\nexport * from './components/InputBase/InputBase.js';\n\n// Inline Confirm\nexport * from './components/InlineConfirm/InlineConfirm.js';\nexport * from './components/InlineConfirm/InlineConfirmContext.js';\n\n// Json Input\nexport * from './components/JsonInput/JsonInput.js';\n\n// Kbd\nexport * from './components/Kbd/Kbd.js';\n\n// Last Updated\nexport * from './components/LastUpdated/LastUpdated.js';\n\n// List\nexport * from './components/List/List.js';\n\n// Loader\nexport * from './components/Loader/Loader.js';\n\n// Loading Overlay\nexport * from './components/LoadingOverlay/LoadingOverlay.js';\n\n// Circle Loader\nexport * from './components/CircleLoader/CircleLoader.js';\n\n// Mark\nexport * from './components/Mark/Mark.js';\n\n// Menu - override Mantine Menu\nexport {Menu, type MenuItemProps} from './components/Menu/Menu.js';\n\n// Modal - override Mantine Modal\nexport {Modal, type ModalFactory, type ModalProps} from './components/Modal/Modal.js';\nexport * from './components/Modal/ModalFooter.js';\n\n// Modal Base\nexport * from './components/ModalBase/ModalBase.js';\n\n// Multi Select\nexport * from './components/MultiSelect/MultiSelect.js';\n\n// Native Select\nexport * from './components/NativeSelect/NativeSelect.js';\n\n// Nav Link\nexport * from './components/NavLink/NavLink.js';\n\n// Notification\nexport * from './components/Notification/Notification.js';\n\n// Number Formatter\nexport * from './components/NumberFormatter/NumberFormatter.js';\n\n// Number Input\nexport * from './components/NumberInput/NumberInput.js';\n\n// Overlay\nexport * from './components/Overlay/Overlay.js';\n\n// Pagination\nexport * from './components/Pagination/Pagination.js';\n\n// Paper\nexport * from './components/Paper/Paper.js';\n\n// Pill\nexport * from './components/Pill/Pill.js';\n\n// Pills Input\nexport * from './components/PillsInput/PillsInput.js';\n\n// Pin Input\nexport * from './components/PinInput/PinInput.js';\n\n// Popover\nexport * from './components/Popover/Popover.js';\n\n// Portal\nexport * from './components/Portal/Portal.js';\n\n// Progress\nexport * from './components/Progress/Progress.js';\n\n// Prompt\nexport * from './components/Prompt/Prompt.js';\n\n// Radio\nexport * from './components/Radio/Radio.js';\n\n// RadioCard - override Mantine RadioCard\nexport {RadioCard, type RadioCardProps} from './components/RadioCard/RadioCard.js';\n\n// Rating\nexport * from './components/Rating/Rating.js';\n\n// Ring Progress\nexport * from './components/RingProgress/RingProgress.js';\n\n// Scroll Area\nexport * from './components/ScrollArea/ScrollArea.js';\n\n// Segmented Control\nexport * from './components/SegmentedControl/SegmentedControl.js';\n\n// Semi Circle Progress\nexport * from './components/SemiCircleProgress/SemiCircleProgress.js';\n\n// Read Only - override Mantine PasswordInput and Select\nexport {PasswordInput} from './components/PasswordInput/PasswordInput.js';\nexport {Select} from './components/Select/Select.js';\n\n// Simple Grid\nexport * from './components/SimpleGrid/SimpleGrid.js';\n\n// Skeleton\nexport * from './components/Skeleton/Skeleton.js';\n\n// Slider\nexport * from './components/Slider/Slider.js';\n\n// Space\nexport * from './components/Space/Space.js';\n\n// Spoiler\nexport * from './components/Spoiler/Spoiler.js';\n\n// Stack\nexport * from './components/Stack/Stack.js';\n\n// Status Token\nexport * from './components/StatusToken/StatusToken.js';\n\n// Stepper\nexport * from './components/Stepper/Stepper.js';\n\n// Sticky Footer\n\nexport * from './components/StickyFooter/StickyFooter.js';\n\n// Switch\nexport * from './components/Switch/Switch.js';\n\n// Table - override Mantine Table\nexport {flexRender as renderTableCell} from '@tanstack/react-table';\nexport {TableActionsColumn} from './components/Table/table-column/TableActionsColumn.js';\nexport {type TablePredicateProps} from './components/Table/table-predicate/TablePredicate.js';\nexport {Table, TableComponentsOrder, type PlasmaTableFactory} from './components/Table/Table.js';\nexport {\n type TableAction,\n type TableLayout,\n type TableLayoutProps,\n type TableProps,\n} from './components/Table/Table.types.js';\nexport {useTableContext} from './components/Table/TableContext.js';\nexport {useTable, type TableState, type TableStore, type UseTableOptions} from './components/Table/use-table.js';\nexport {useUrlSyncedState, type SearchParamEntry, type UseUrlSyncedStateOptions} from './hooks/use-url-synced-state.js';\n\n// Table of Contents\nexport * from './components/TableOfContents/TableOfContents.js';\n\n// Tabs\nexport * from './components/Tabs/Tabs.js';\n\n// Tags Input\nexport * from './components/TagsInput/TagsInput.js';\n\n// Text\nexport * from './components/Text/Text.js';\n\n// Text Input\nexport * from './components/TextInput/TextInput.js';\n\n// Textarea\nexport * from './components/Textarea/Textarea.js';\n\n// Theme Icon\nexport * from './components/ThemeIcon/ThemeIcon.js';\n\n// Timeline\nexport * from './components/Timeline/Timeline.js';\n\n// Title\nexport * from './components/Title/Title.js';\n\n// Tooltip\nexport * from './components/Tooltip/Tooltip.js';\n\n// Transition\nexport * from './components/Transition/Transition.js';\n\n// Tree\nexport * from './components/Tree/Tree.js';\n\n// Typography\nexport * from './components/Typography/Typography.js';\n\n// Unstyled Button\nexport * from './components/UnstyledButton/UnstyledButton.js';\n\n// Visually Hidden\nexport * from './components/VisuallyHidden/VisuallyHidden.js';\n\nexport {noop};\n\n// Theme\nexport * from './theme/plasmaCSSVariablesResolver.js';\nexport * from './theme/Plasmantine.js';\n\ndeclare module '@mantine/core' {\n export interface MantineThemeColorsOverride {\n colors: Record<keyof typeof PlasmaColors | (string & {}), MantineColorsTuple>;\n }\n}\n\ndeclare module '@tanstack/react-table' {\n // eslint-disable-next-line unused-imports/no-unused-vars\n interface ColumnMeta<TData extends RowData, TValue> {\n /**\n * Whether the column is a control column.\n * Control columns are columns that are not part of the data but are used to control the table.\n * For example, a column that contains checkboxes to select rows.\n */\n controlColumn: boolean;\n }\n}\n"],"names":["Accordion","ActionIcon","Alert","Badge","Button","Chip","Header","Menu","Modal","Pagination","PasswordInput","RadioCard","Select","Table","TableActionsColumn","TableComponentsOrder","enhanceWithCollectionProps","noop","renderTableCell","flexRender","useTable","useTableContext","useUrlSyncedState"],"mappings":";;;;;;;;;;;QAgBQA;eAAAA,oBAAS;;QAGTC;eAAAA,sBAAU;;QA2BVC;eAAAA,YAAK;;QAITC;eAAAA,YAAK;;QAyBDC;eAAAA,cAAM;;QAsBNC;eAAAA,UAAI;;QA+GRC;eAAAA,cAAM;;QA4DFC;eAAAA,UAAI;;QAGJC;eAAAA,YAAK;;QAzQLC;eAAAA,gBAAU;;QAqVVC;eAAAA,4BAAa;;QAlBbC;eAAAA,oBAAS;;QAmBTC;eAAAA,cAAM;;QAqCNC;eAAAA,YAAK;;QAFLC;eAAAA,sCAAkB;;QAEXC;eAAAA,2BAAoB;;QAhR3BC;eAAAA,sDAA0B;;QAwU1BC;eAAAA,UAAI;;QA3DUC;eAAdC,sBAAU;;QAWVC;eAAAA,kBAAQ;;QADRC;eAAAA,6BAAe;;QAEfC;eAAAA,oCAAiB;;;;mCA1Yc;uBAIzB;uBAIA;uBACA;uBACA;uBAEA;yBAIU;0BAGuB;uBAGjC;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;qBAGM;qBAQb;uBAGO;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;sBAGyB;uBAIzB;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;oBAGK;uBAGL;uBAGA;uBAGA;uBAGA;uBAGA;0CAC2B;uBAa3B;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBACA;uBACA;uBACA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;sBAYP;uBAGO;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBACA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;oBAGyB;qBAGiB;uBAC1C;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;yBAG+B;uBAG/B;uBAGA;uBAGA;uBAGA;uBAGA;6BAGc;sBACP;uBAGP;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAIA;uBAGA;0BAG8B;kCACX;qBAEkC;4BAOrC;wBACiD;iCACO;uBAGxE;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAKA;uBACA"}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import {MantineColorsTuple, noop} from '@mantine/core';\nimport {type RowData} from '@tanstack/table-core';\nimport {type PlasmaColors} from './theme/PlasmaColors.js';\n\nexport * from '@mantine/carousel';\nexport * from '@mantine/core';\nexport {Pagination} from '@mantine/core';\nexport {type DatesRangeValue} from '@mantine/dates';\nexport * from '@mantine/form';\nexport * from '@mantine/hooks';\nexport * from '@mantine/notifications';\nexport {type NotificationsProps} from '@mantine/notifications';\nexport * from '@tanstack/table-core';\n\n// Export all components\n// Accordion\nexport {Accordion} from './components/Accordion/Accordion.js';\n\n// Action Icon - override Mantine ActionIcon\nexport {ActionIcon, type ActionIconProps} from './components/ActionIcon/ActionIcon.js';\n\n// Affix\nexport * from './components/Affix/Affix.js';\n\n// Anchor\nexport * from './components/Anchor/Anchor.js';\n\n// Angle Slider\nexport * from './components/AngleSlider/AngleSlider.js';\n\n// App Shell\nexport * from './components/AppShell/AppShell.js';\n\n// Aspect Ratio\nexport * from './components/AspectRatio/AspectRatio.js';\n\n// Autocomplete\nexport * from './components/Autocomplete/Autocomplete.js';\n\n// Avatar\nexport * from './components/Avatar/Avatar.js';\n\n// Background Image\nexport * from './components/BackgroundImage/BackgroundImage.js';\n\n// Alert - override Mantine Alert\nexport {Alert} from './components/Alert/Alert.js';\n\n// Badge - override Mantine Badge\nexport {\n Badge,\n type BadgeOverloadFactory,\n type SemanticBadge,\n type SemanticBadgeProps,\n} from './components/Badge/Badge.js';\n\n// Blockquote\nexport * from './components/Blockquote/Blockquote.js';\n\n// Blank Slate\nexport * from './components/BlankSlate/BlankSlate.js';\n\n// Box\nexport * from './components/Box/Box.js';\n\n// Breadcrumbs\nexport * from './components/Breadcrumbs/Breadcrumbs.js';\n\n// Browser Preview\nexport * from './components/BrowserPreview/BrowserPreview.js';\n\n// Burger\nexport * from './components/Burger/Burger.js';\n\n// Button - override Mantine Button\nexport {Button, type ButtonProps} from './components/Button/Button.js';\nexport {type ButtonWithDisabledTooltipProps} from './components/Button/ButtonWithDisabledTooltip.js';\nexport {type ClickHandler} from './hooks/useClickWithLoading.js';\n\n// Card\nexport * from './components/Card/Card.js';\n\n// Center\nexport * from './components/Center/Center.js';\n\n// Check Icon\nexport * from './components/CheckIcon/CheckIcon.js';\n\n// Checkbox\nexport * from './components/Checkbox/Checkbox.js';\n\n// Checkbox Icon\nexport * from './components/CheckboxIcon/CheckboxIcon.js';\n\n// Child Form\nexport * from './components/ChildForm/ChildForm.js';\n\n// Chip - override Mantine Chip\nexport {Chip} from './components/Chip/Chip.js';\n\n// Close Button\nexport * from './components/CloseButton/CloseButton.js';\n\n// Code\nexport * from './components/Code/Code.js';\n\n// Code Editor\nexport * from './components/CodeEditor/CodeEditor.js';\n\n// Collapse\nexport * from './components/Collapse/Collapse.js';\n\n// Collection\nexport * from './components/Collection/Collection.js';\nexport {enhanceWithCollectionProps} from './components/Collection/enhanceWithCollectionProps.js';\nexport type {\n CollectionColumnDef,\n CollectionCellContext,\n CollectionHeaderContext,\n} from './components/Collection/CollectionColumn.types.js';\nexport type {\n CollectionLayout,\n CollectionLayoutHeaderProps,\n CollectionLayoutBodyProps,\n} from './components/Collection/layouts/CollectionLayout.types.js';\n\n// Color Input\nexport * from './components/ColorInput/ColorInput.js';\n\n// Color Picker\nexport * from './components/ColorPicker/ColorPicker.js';\n\n// Color Swatch\nexport * from './components/ColorSwatch/ColorSwatch.js';\n\n// Combobox\nexport * from './components/Combobox/Combobox.js';\n\n// Container\nexport * from './components/Container/Container.js';\n\n// Copy Button\nexport * from './components/CopyButton/CopyButton.js';\n\n// Copy to Clipboard\nexport * from './components/CopyToClipboard/CopyToClipboard.js';\n\n// Date Range Picker\nexport * from './components/DateRangePicker/DateRangePicker.js';\nexport * from './components/DateRangePicker/DateRangePickerInlineCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPopoverCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPresetSelect.js';\n\n// Date Picker Input\nexport * from './components/DatePickerInput/DatePickerInput.js';\n\n// Date Time Range Picker\nexport * from './components/DateTimeRangePicker/DateTimeRangePicker.js';\n\n// Month Picker Input\nexport * from './components/MonthPickerInput/MonthPickerInput.js';\n\n// Time Picker\nexport * from './components/TimePicker/TimePicker.js';\n\n// Year Picker Input\nexport * from './components/YearPickerInput/YearPickerInput.js';\n\n// Dialog\nexport * from './components/Dialog/Dialog.js';\n\n// Divider\nexport * from './components/Divider/Divider.js';\n\n// Drawer\nexport * from './components/Drawer/Drawer.js';\n\n// Ellipsis Text\nexport * from './components/EllipsisText/EllipsisText.js';\n\n// Facet\nexport * from './components/Facet/Facet.js';\n\n// Fieldset\nexport * from './components/Fieldset/Fieldset.js';\n\n// File Button\nexport * from './components/FileButton/FileButton.js';\n\n// File Input\nexport * from './components/FileInput/FileInput.js';\n\n// Flex\nexport * from './components/Flex/Flex.js';\n\n// Floating Indicator\nexport * from './components/FloatingIndicator/FloatingIndicator.js';\n\n// Focus Trap\nexport * from './components/FocusTrap/FocusTrap.js';\n\n// Grid\nexport * from './components/Grid/Grid.js';\n\n// Group\nexport * from './components/Group/Group.js';\n\n// Header - override @tanstack/table-core Header\nexport {\n Header,\n type HeaderBreadcrumbsProps,\n type HeaderDocAnchorProps,\n type HeaderFactory,\n type HeaderProps,\n type HeaderRightProps,\n type HeaderStyleNames,\n type HeaderVariant,\n} from './components/Header/Header.js';\n\n// Highlight\nexport * from './components/Highlight/Highlight.js';\n\n// Hover Card\nexport * from './components/HoverCard/HoverCard.js';\n\n// Image\nexport * from './components/Image/Image.js';\n\n// Indicator\nexport * from './components/Indicator/Indicator.js';\n\n// Info Token\nexport * from './components/InfoToken/InfoToken.js';\n\n// Input\nexport * from './components/Input/Input.js';\n\n// Input Base\nexport * from './components/InputBase/InputBase.js';\n\n// Inline Confirm\nexport * from './components/InlineConfirm/InlineConfirm.js';\nexport * from './components/InlineConfirm/InlineConfirmContext.js';\n\n// Json Input\nexport * from './components/JsonInput/JsonInput.js';\n\n// Kbd\nexport * from './components/Kbd/Kbd.js';\n\n// Last Updated\nexport * from './components/LastUpdated/LastUpdated.js';\n\n// List\nexport * from './components/List/List.js';\n\n// Loader\nexport * from './components/Loader/Loader.js';\n\n// Loading Overlay\nexport * from './components/LoadingOverlay/LoadingOverlay.js';\n\n// Circle Loader\nexport * from './components/CircleLoader/CircleLoader.js';\n\n// Mark\nexport * from './components/Mark/Mark.js';\n\n// Menu - override Mantine Menu\nexport {Menu, type MenuItemProps} from './components/Menu/Menu.js';\n\n// Modal - override Mantine Modal\nexport {Modal, type ModalFactory, type ModalProps} from './components/Modal/Modal.js';\nexport * from './components/Modal/ModalFooter.js';\n\n// Modal Base\nexport * from './components/ModalBase/ModalBase.js';\n\n// Multi Select\nexport * from './components/MultiSelect/MultiSelect.js';\n\n// Native Select\nexport * from './components/NativeSelect/NativeSelect.js';\n\n// Nav Link\nexport * from './components/NavLink/NavLink.js';\n\n// Notification\nexport * from './components/Notification/Notification.js';\n\n// Number Formatter\nexport * from './components/NumberFormatter/NumberFormatter.js';\n\n// Number Input\nexport * from './components/NumberInput/NumberInput.js';\n\n// Overlay\nexport * from './components/Overlay/Overlay.js';\n\n// Pagination\nexport * from './components/Pagination/Pagination.js';\n\n// Paper\nexport * from './components/Paper/Paper.js';\n\n// Pill\nexport * from './components/Pill/Pill.js';\n\n// Pills Input\nexport * from './components/PillsInput/PillsInput.js';\n\n// Pin Input\nexport * from './components/PinInput/PinInput.js';\n\n// Popover\nexport * from './components/Popover/Popover.js';\n\n// Portal\nexport * from './components/Portal/Portal.js';\n\n// Progress\nexport * from './components/Progress/Progress.js';\n\n// Prompt\nexport * from './components/Prompt/Prompt.js';\n\n// Radio\nexport * from './components/Radio/Radio.js';\n\n// RadioCard - override Mantine RadioCard\nexport {RadioCard, type RadioCardProps} from './components/RadioCard/RadioCard.js';\n\n// Rating\nexport * from './components/Rating/Rating.js';\n\n// Ring Progress\nexport * from './components/RingProgress/RingProgress.js';\n\n// Scroll Area\nexport * from './components/ScrollArea/ScrollArea.js';\n\n// Segmented Control\nexport * from './components/SegmentedControl/SegmentedControl.js';\n\n// Semi Circle Progress\nexport * from './components/SemiCircleProgress/SemiCircleProgress.js';\n\n// Read Only - override Mantine PasswordInput and Select\nexport {PasswordInput} from './components/PasswordInput/PasswordInput.js';\nexport {Select} from './components/Select/Select.js';\n\n// Simple Grid\nexport * from './components/SimpleGrid/SimpleGrid.js';\n\n// Skeleton\nexport * from './components/Skeleton/Skeleton.js';\n\n// Slider\nexport * from './components/Slider/Slider.js';\n\n// Space\nexport * from './components/Space/Space.js';\n\n// Spoiler\nexport * from './components/Spoiler/Spoiler.js';\n\n// Stack\nexport * from './components/Stack/Stack.js';\n\n// Status Token\nexport * from './components/StatusToken/StatusToken.js';\n\n// Stepper\nexport * from './components/Stepper/Stepper.js';\n\n// Sticky Footer\n\nexport * from './components/StickyFooter/StickyFooter.js';\n\n// Switch\nexport * from './components/Switch/Switch.js';\n\n// Table - override Mantine Table\nexport {flexRender as renderTableCell} from '@tanstack/react-table';\nexport {TableActionsColumn} from './components/Table/table-column/TableActionsColumn.js';\nexport {type TablePredicateProps} from './components/Table/table-predicate/TablePredicate.js';\nexport {Table, TableComponentsOrder, type PlasmaTableFactory} from './components/Table/Table.js';\nexport {\n type TableAction,\n type TableLayout,\n type TableLayoutProps,\n type TableProps,\n} from './components/Table/Table.types.js';\nexport {useTableContext} from './components/Table/TableContext.js';\nexport {useTable, type TableState, type TableStore, type UseTableOptions} from './components/Table/use-table.js';\nexport {useUrlSyncedState, type SearchParamEntry, type UseUrlSyncedStateOptions} from './hooks/use-url-synced-state.js';\n\n// Table of Contents\nexport * from './components/TableOfContents/TableOfContents.js';\n\n// Tabs\nexport * from './components/Tabs/Tabs.js';\n\n// Tags Input\nexport * from './components/TagsInput/TagsInput.js';\n\n// Text\nexport * from './components/Text/Text.js';\n\n// Text Input\nexport * from './components/TextInput/TextInput.js';\n\n// Textarea\nexport * from './components/Textarea/Textarea.js';\n\n// Theme Icon\nexport * from './components/ThemeIcon/ThemeIcon.js';\n\n// Timeline\nexport * from './components/Timeline/Timeline.js';\n\n// Title\nexport * from './components/Title/Title.js';\n\n// Tooltip\nexport * from './components/Tooltip/Tooltip.js';\n\n// Transition\nexport * from './components/Transition/Transition.js';\n\n// Tree\nexport * from './components/Tree/Tree.js';\n\n// Typography\nexport * from './components/Typography/Typography.js';\n\n// Unstyled Button\nexport * from './components/UnstyledButton/UnstyledButton.js';\n\n// Visually Hidden\nexport * from './components/VisuallyHidden/VisuallyHidden.js';\n\nexport {noop};\n\n// Theme\nexport * from './theme/plasmaCSSVariablesResolver.js';\nexport * from './theme/Plasmantine.js';\n\ndeclare module '@mantine/core' {\n export interface MantineThemeColorsOverride {\n colors: Record<keyof typeof PlasmaColors | (string & {}), MantineColorsTuple>;\n }\n}\n\ndeclare module '@tanstack/react-table' {\n // eslint-disable-next-line unused-imports/no-unused-vars\n interface ColumnMeta<TData extends RowData, TValue> {\n /**\n * Whether the column is a control column.\n * Control columns are columns that are not part of the data but are used to control the table.\n * For example, a column that contains checkboxes to select rows.\n */\n controlColumn: boolean;\n }\n}\n"],"names":["Accordion","ActionIcon","Alert","Badge","Button","Chip","Header","Menu","Modal","Pagination","PasswordInput","RadioCard","Select","Table","TableActionsColumn","TableComponentsOrder","enhanceWithCollectionProps","noop","renderTableCell","flexRender","useTable","useTableContext","useUrlSyncedState"],"mappings":";;;;;;;;;;;QAgBQA;eAAAA,oBAAS;;QAGTC;eAAAA,sBAAU;;QA2BVC;eAAAA,YAAK;;QAITC;eAAAA,YAAK;;QAyBDC;eAAAA,cAAM;;QAuBNC;eAAAA,UAAI;;QA+GRC;eAAAA,cAAM;;QA4DFC;eAAAA,UAAI;;QAGJC;eAAAA,YAAK;;QA1QLC;eAAAA,gBAAU;;QAsVVC;eAAAA,4BAAa;;QAlBbC;eAAAA,oBAAS;;QAmBTC;eAAAA,cAAM;;QAqCNC;eAAAA,YAAK;;QAFLC;eAAAA,sCAAkB;;QAEXC;eAAAA,2BAAoB;;QAhR3BC;eAAAA,sDAA0B;;QAwU1BC;eAAAA,UAAI;;QA3DUC;eAAdC,sBAAU;;QAWVC;eAAAA,kBAAQ;;QADRC;eAAAA,6BAAe;;QAEfC;eAAAA,oCAAiB;;;;mCA3Yc;uBAIzB;uBAIA;uBACA;uBACA;uBAEA;yBAIU;0BAGuB;uBAGjC;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;qBAGM;qBAQb;uBAGO;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;sBAGyB;uBAKzB;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;oBAGK;uBAGL;uBAGA;uBAGA;uBAGA;uBAGA;0CAC2B;uBAa3B;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBACA;uBACA;uBACA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;sBAYP;uBAGO;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBACA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;oBAGyB;qBAGiB;uBAC1C;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;yBAG+B;uBAG/B;uBAGA;uBAGA;uBAGA;uBAGA;6BAGc;sBACP;uBAGP;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAIA;uBAGA;0BAG8B;kCACX;qBAEkC;4BAOrC;wBACiD;iCACO;uBAGxE;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAKA;uBACA"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
.wrapper {
|
|
2
|
-
--input-section-color: var(--mantine-color-placeholder);
|
|
3
|
-
|
|
4
2
|
@mixin light {
|
|
5
3
|
--input-disabled-color: var(--mantine-color-disabled-color);
|
|
6
4
|
|
|
@@ -39,6 +37,6 @@
|
|
|
39
37
|
|
|
40
38
|
.section {
|
|
41
39
|
> svg {
|
|
42
|
-
color: var(--mantine-color-
|
|
40
|
+
color: var(--mantine-color-dimmed);
|
|
43
41
|
}
|
|
44
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.tsx"],"names":[],"mappings":"AAYA,OAAO,EAsBH,oBAAoB,EAuBvB,MAAM,eAAe,CAAC;AA6DvB,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.tsx"],"names":[],"mappings":"AAYA,OAAO,EAsBH,oBAAoB,EAuBvB,MAAM,eAAe,CAAC;AA6DvB,eAAO,MAAM,WAAW,EAAE,oBA8axB,CAAC"}
|
package/dist/cjs/theme/Theme.js
CHANGED