@coveord/plasma-mantine 55.2.1 → 55.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-test.log +47 -44
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/components/action-icon/ActionIcon.d.ts +3 -3
- package/dist/cjs/components/action-icon/ActionIcon.d.ts.map +1 -1
- package/dist/cjs/components/button/Button.d.ts +3 -3
- package/dist/cjs/components/button/Button.d.ts.map +1 -1
- package/dist/cjs/components/child-form/ChildForm.d.ts +3 -3
- package/dist/cjs/components/child-form/ChildForm.d.ts.map +1 -1
- package/dist/cjs/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts.map +1 -1
- package/dist/cjs/components/date-range-picker/DateRangePickerPopoverCalendar.js +34 -32
- package/dist/cjs/components/date-range-picker/DateRangePickerPopoverCalendar.js.map +1 -1
- package/dist/cjs/components/ellipsis-text/EllipsisText.d.ts +3 -3
- package/dist/cjs/components/ellipsis-text/EllipsisText.d.ts.map +1 -1
- package/dist/cjs/components/inline-confirm/InlineConfirmTarget.d.ts +6 -6
- package/dist/cjs/components/inline-confirm/InlineConfirmTarget.d.ts.map +1 -1
- package/dist/cjs/components/prompt/Prompt.d.ts +2 -2
- package/dist/cjs/components/prompt/Prompt.d.ts.map +1 -1
- package/dist/cjs/components/prompt/Prompt.js +1 -1
- package/dist/cjs/components/prompt/Prompt.js.map +1 -1
- package/dist/cjs/components/prompt/PromptConfirmButton.d.ts.map +1 -1
- package/dist/cjs/components/prompt/PromptConfirmButton.js +12 -5
- package/dist/cjs/components/prompt/PromptConfirmButton.js.map +1 -1
- package/dist/cjs/components/table/Table.d.ts +3 -3
- package/dist/cjs/components/table/Table.d.ts.map +1 -1
- package/dist/cjs/components/table/Table.module.css +20 -0
- package/dist/cjs/components/table/table-actions/TableActionItem.d.ts +3 -3
- package/dist/cjs/components/table/table-actions/TableActionItem.d.ts.map +1 -1
- package/dist/cjs/components/table/table-actions/TableActionsList.js +5 -4
- package/dist/cjs/components/table/table-actions/TableActionsList.js.map +1 -1
- package/dist/esm/components/action-icon/ActionIcon.d.ts +3 -3
- package/dist/esm/components/action-icon/ActionIcon.d.ts.map +1 -1
- package/dist/esm/components/button/Button.d.ts +3 -3
- package/dist/esm/components/button/Button.d.ts.map +1 -1
- package/dist/esm/components/child-form/ChildForm.d.ts +3 -3
- package/dist/esm/components/child-form/ChildForm.d.ts.map +1 -1
- package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts.map +1 -1
- package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.js +32 -30
- package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.js.map +1 -1
- package/dist/esm/components/ellipsis-text/EllipsisText.d.ts +3 -3
- package/dist/esm/components/ellipsis-text/EllipsisText.d.ts.map +1 -1
- package/dist/esm/components/inline-confirm/InlineConfirmTarget.d.ts +6 -6
- package/dist/esm/components/inline-confirm/InlineConfirmTarget.d.ts.map +1 -1
- package/dist/esm/components/prompt/Prompt.d.ts +2 -2
- package/dist/esm/components/prompt/Prompt.d.ts.map +1 -1
- package/dist/esm/components/prompt/Prompt.js +1 -1
- package/dist/esm/components/prompt/Prompt.js.map +1 -1
- package/dist/esm/components/prompt/PromptConfirmButton.d.ts.map +1 -1
- package/dist/esm/components/prompt/PromptConfirmButton.js +7 -3
- package/dist/esm/components/prompt/PromptConfirmButton.js.map +1 -1
- package/dist/esm/components/table/Table.d.ts +3 -3
- package/dist/esm/components/table/Table.d.ts.map +1 -1
- package/dist/esm/components/table/Table.module.css +20 -0
- package/dist/esm/components/table/table-actions/TableActionItem.d.ts +3 -3
- package/dist/esm/components/table/table-actions/TableActionItem.d.ts.map +1 -1
- package/dist/esm/components/table/table-actions/TableActionsList.js +4 -2
- package/dist/esm/components/table/table-actions/TableActionsList.js.map +1 -1
- package/package.json +16 -16
- package/src/components/date-range-picker/DateRangePickerPopoverCalendar.tsx +17 -16
- package/src/components/prompt/Prompt.tsx +7 -3
- package/src/components/prompt/PromptConfirmButton.tsx +18 -4
- package/src/components/table/Table.module.css +20 -0
- package/src/components/table/table-actions/TableActionsList.tsx +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveord/plasma-mantine",
|
|
3
|
-
"version": "55.
|
|
3
|
+
"version": "55.3.1",
|
|
4
4
|
"description": "A Plasma flavoured Mantine theme",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plasma",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@dnd-kit/utilities": "3.2.2",
|
|
34
34
|
"@mantine/utils": "6.0.22",
|
|
35
35
|
"@monaco-editor/react": "4.6.0",
|
|
36
|
-
"@swc/helpers": "0.5.
|
|
36
|
+
"@swc/helpers": "0.5.15",
|
|
37
37
|
"@tanstack/react-table": "8.20.5",
|
|
38
38
|
"@tanstack/table-core": "8.20.5",
|
|
39
39
|
"clsx": "2.1.1",
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
"lodash.debounce": "4.0.8",
|
|
43
43
|
"lodash.defaultsdeep": "4.6.1",
|
|
44
44
|
"monaco-editor": "0.52.0",
|
|
45
|
-
"@coveord/plasma-react-icons": "55.
|
|
46
|
-
"@coveord/plasma-tokens": "55.
|
|
45
|
+
"@coveord/plasma-react-icons": "55.3.1",
|
|
46
|
+
"@coveord/plasma-tokens": "55.3.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@mantine/carousel": "7.
|
|
50
|
-
"@mantine/code-highlight": "7.
|
|
51
|
-
"@mantine/core": "7.
|
|
52
|
-
"@mantine/dates": "7.
|
|
53
|
-
"@mantine/form": "7.
|
|
54
|
-
"@mantine/hooks": "7.
|
|
55
|
-
"@mantine/modals": "7.
|
|
56
|
-
"@mantine/notifications": "7.
|
|
49
|
+
"@mantine/carousel": "7.14.0",
|
|
50
|
+
"@mantine/code-highlight": "7.14.0",
|
|
51
|
+
"@mantine/core": "7.14.0",
|
|
52
|
+
"@mantine/dates": "7.14.0",
|
|
53
|
+
"@mantine/form": "7.14.0",
|
|
54
|
+
"@mantine/hooks": "7.14.0",
|
|
55
|
+
"@mantine/modals": "7.14.0",
|
|
56
|
+
"@mantine/notifications": "7.14.0",
|
|
57
57
|
"@swc/cli": "0.5.0",
|
|
58
|
-
"@swc/core": "1.
|
|
58
|
+
"@swc/core": "1.9.2",
|
|
59
59
|
"@testing-library/dom": "10.4.0",
|
|
60
60
|
"@testing-library/jest-dom": "6.6.3",
|
|
61
61
|
"@testing-library/react": "16.0.1",
|
|
@@ -67,17 +67,17 @@
|
|
|
67
67
|
"embla-carousel-react": "7.1.0",
|
|
68
68
|
"identity-obj-proxy": "3.0.0",
|
|
69
69
|
"jsdom": "25.0.1",
|
|
70
|
-
"postcss": "8.4.
|
|
70
|
+
"postcss": "8.4.49",
|
|
71
71
|
"postcss-preset-mantine": "^1.11.0",
|
|
72
72
|
"postcss-simple-vars": "^7.0.1",
|
|
73
73
|
"publint": "0.2.12",
|
|
74
74
|
"react": "18.3.1",
|
|
75
75
|
"react-dom": "18.3.1",
|
|
76
76
|
"rimraf": "6.0.1",
|
|
77
|
-
"sass": "1.80.
|
|
77
|
+
"sass": "1.80.7",
|
|
78
78
|
"tslib": "2.8.1",
|
|
79
79
|
"typescript": "5.6.3",
|
|
80
|
-
"vitest": "2.1.
|
|
80
|
+
"vitest": "2.1.5"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@mantine/carousel": "^7.6.1",
|
|
@@ -63,23 +63,24 @@ export const DateRangePickerPopoverCalendar = ({
|
|
|
63
63
|
|
|
64
64
|
return (
|
|
65
65
|
<>
|
|
66
|
-
<Group align="center">
|
|
67
|
-
<EditableDateRangePicker
|
|
68
|
-
value={_value}
|
|
69
|
-
onChange={handleChange}
|
|
70
|
-
onFocus={() => setOpened(true)}
|
|
71
|
-
startProps={startProps}
|
|
72
|
-
endProps={endProps}
|
|
73
|
-
/>
|
|
74
|
-
{presets ? (
|
|
75
|
-
<>
|
|
76
|
-
<Space w="sm" />
|
|
77
|
-
<DateRangePickerPresetSelect presets={presets} value={_value} onChange={handleChange} />
|
|
78
|
-
</>
|
|
79
|
-
) : null}
|
|
80
|
-
</Group>
|
|
81
|
-
|
|
82
66
|
<Popover opened={opened} onChange={setOpened} trapFocus>
|
|
67
|
+
<Popover.Target>
|
|
68
|
+
<Group align="center">
|
|
69
|
+
<EditableDateRangePicker
|
|
70
|
+
value={_value}
|
|
71
|
+
onChange={handleChange}
|
|
72
|
+
onFocus={() => setOpened(true)}
|
|
73
|
+
startProps={startProps}
|
|
74
|
+
endProps={endProps}
|
|
75
|
+
/>
|
|
76
|
+
{presets ? (
|
|
77
|
+
<>
|
|
78
|
+
<Space w="sm" />
|
|
79
|
+
<DateRangePickerPresetSelect presets={presets} value={_value} onChange={handleChange} />
|
|
80
|
+
</>
|
|
81
|
+
) : null}
|
|
82
|
+
</Group>
|
|
83
|
+
</Popover.Target>
|
|
83
84
|
<Popover.Dropdown>
|
|
84
85
|
<DatePicker
|
|
85
86
|
ref={ref}
|
|
@@ -12,19 +12,23 @@ import {
|
|
|
12
12
|
useStyles,
|
|
13
13
|
} from '@mantine/core';
|
|
14
14
|
import {Children, ReactElement, ReactNode} from 'react';
|
|
15
|
-
import classes from './Prompt.module.css';
|
|
16
15
|
import Critical from './icons/critical.svg';
|
|
17
16
|
import Info from './icons/info.svg';
|
|
18
17
|
import Success from './icons/success.svg';
|
|
19
18
|
import Warning from './icons/warning.svg';
|
|
20
19
|
import {PromptContextProvider} from './Prompt.context';
|
|
20
|
+
import classes from './Prompt.module.css';
|
|
21
21
|
import {PromptCancelButton, PromptCancelButtonStylesNamesVariant} from './PromptCancelButton';
|
|
22
|
-
import {PromptConfirmButton} from './PromptConfirmButton';
|
|
22
|
+
import {PromptConfirmButton, PromptConfirmButtonStylesNamesVariant} from './PromptConfirmButton';
|
|
23
23
|
import {PromptFooter} from './PromptFooter';
|
|
24
24
|
|
|
25
25
|
export type PromptVariant = 'success' | 'warning' | 'critical' | 'info';
|
|
26
26
|
export type PromptVars = {root: '--prompt-icon-size'};
|
|
27
|
-
export type PromptStylesNames =
|
|
27
|
+
export type PromptStylesNames =
|
|
28
|
+
| ModalStylesNames
|
|
29
|
+
| 'icon'
|
|
30
|
+
| PromptCancelButtonStylesNamesVariant
|
|
31
|
+
| PromptConfirmButtonStylesNamesVariant;
|
|
28
32
|
|
|
29
33
|
export interface PromptProps
|
|
30
34
|
extends StylesApiProps<PromptFactory>,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {ButtonProps} from '../button/Button';
|
|
1
|
+
import {CompoundStylesApiProps, factory, Factory, useProps} from '@mantine/core';
|
|
2
|
+
import {Button, ButtonProps} from '../button/Button';
|
|
3
3
|
import {PromptVariant} from './Prompt';
|
|
4
4
|
import {usePromptContext} from './Prompt.context';
|
|
5
5
|
|
|
@@ -28,15 +28,29 @@ const defaultProps: Partial<PromptConfirmButtonProps> = {};
|
|
|
28
28
|
export const PromptConfirmButton = factory<PromptConfirmButtonFactory>((_props, ref) => {
|
|
29
29
|
const {variant, getStyles} = usePromptContext();
|
|
30
30
|
const props = useProps('PromptConfirmButton', defaultProps, _props);
|
|
31
|
-
const {
|
|
31
|
+
const {
|
|
32
|
+
className,
|
|
33
|
+
classNames,
|
|
34
|
+
style,
|
|
35
|
+
styles,
|
|
36
|
+
unstyled,
|
|
37
|
+
vars,
|
|
38
|
+
disabled,
|
|
39
|
+
disabledTooltip,
|
|
40
|
+
disabledTooltipProps,
|
|
41
|
+
...others
|
|
42
|
+
} = props;
|
|
32
43
|
|
|
33
44
|
return (
|
|
34
45
|
<Button
|
|
35
46
|
ref={ref}
|
|
36
47
|
variant="filled"
|
|
37
48
|
color={COLOR_BY_VARIANT[variant]}
|
|
49
|
+
disabled={disabled}
|
|
50
|
+
disabledTooltip={disabledTooltip}
|
|
51
|
+
disabledTooltipProps={disabledTooltipProps}
|
|
38
52
|
{...others}
|
|
39
|
-
{...getStyles('
|
|
53
|
+
{...getStyles('confirm', {style, styles, className, classNames})}
|
|
40
54
|
/>
|
|
41
55
|
);
|
|
42
56
|
});
|
|
@@ -20,15 +20,35 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/* Table.Actions */
|
|
23
|
+
|
|
24
|
+
/* Hide empty menus */
|
|
25
|
+
.actionsTarget {
|
|
26
|
+
display: none;
|
|
27
|
+
|
|
28
|
+
&:has(+ .actionsDropdown :global(.mantine-Menu-item)) {
|
|
29
|
+
display: block;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
.actionsDropdown {
|
|
24
34
|
text-align: left;
|
|
25
35
|
}
|
|
26
36
|
|
|
37
|
+
.actionsGroupDivider {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
27
41
|
.actionsGroup {
|
|
28
42
|
&:has(.actionsGroupItems:empty) {
|
|
29
43
|
/* Hide empty groups */
|
|
30
44
|
display: none;
|
|
31
45
|
}
|
|
46
|
+
|
|
47
|
+
&:has(~ .actionsGroup :global(.mantine-Menu-item)) {
|
|
48
|
+
.actionsGroupDivider {
|
|
49
|
+
display: block;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
32
52
|
}
|
|
33
53
|
|
|
34
54
|
/* Table.Filter */
|
|
@@ -129,7 +129,7 @@ export const TableActionsList = (props: TableActionsListProps) => {
|
|
|
129
129
|
<TableActionProvider value={{primary: true}}>{primaryActions}</TableActionProvider>
|
|
130
130
|
{secondaryActionGroups.length > 0 ? (
|
|
131
131
|
<TableActionProvider value={{primary: false}}>
|
|
132
|
-
<Menu withinPortal={false} {...others}>
|
|
132
|
+
<Menu withinPortal={false} {...others} keepMounted>
|
|
133
133
|
<Menu.Target>
|
|
134
134
|
<Button
|
|
135
135
|
{...getStyles('actionsTarget', {styles, classNames})}
|
|
@@ -156,13 +156,13 @@ export const TableActionsList = (props: TableActionsListProps) => {
|
|
|
156
156
|
<InlineConfirm>
|
|
157
157
|
{confirmPrompts}
|
|
158
158
|
<TableActionProvider value={{primary: false}}>
|
|
159
|
-
<Menu opened={opened} onChange={onChange} {...others}>
|
|
159
|
+
<Menu opened={opened} onChange={onChange} {...others} keepMounted>
|
|
160
160
|
<Menu.Target>
|
|
161
161
|
<Tooltip label={label} {...getStyles('actionsTooltip', {styles, classNames})}>
|
|
162
162
|
<ActionIcon
|
|
163
|
+
{...getStyles('actionsTarget', {styles, classNames})}
|
|
163
164
|
onClick={onClick}
|
|
164
165
|
variant="subtle"
|
|
165
|
-
{...getStyles('actionsTarget', {styles, classNames})}
|
|
166
166
|
>
|
|
167
167
|
{icon}
|
|
168
168
|
</ActionIcon>
|