@coveord/plasma-mantine 55.7.2-next.2 → 55.7.3
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 +57 -55
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/components/browser-preview/BrowserPreview.d.ts.map +1 -1
- package/dist/cjs/components/browser-preview/BrowserPreview.module.css +1 -1
- package/dist/cjs/components/button/Button.d.ts +0 -5
- package/dist/cjs/components/button/Button.d.ts.map +1 -1
- package/dist/cjs/components/button/Button.js +3 -40
- package/dist/cjs/components/button/Button.js.map +1 -1
- package/dist/cjs/components/code-editor/CodeEditor.d.ts.map +1 -1
- package/dist/cjs/components/code-editor/CodeEditor.js +31 -13
- package/dist/cjs/components/code-editor/CodeEditor.js.map +1 -1
- package/dist/cjs/components/collection/CollectionItem.js +1 -0
- package/dist/cjs/components/collection/CollectionItem.js.map +1 -1
- package/dist/cjs/components/collection/enhanceWithCollectionProps.d.ts.map +1 -1
- package/dist/cjs/components/copyToClipboard/CopyToClipboard.js +3 -1
- package/dist/cjs/components/copyToClipboard/CopyToClipboard.js.map +1 -1
- package/dist/cjs/components/date-range-picker/DateRangePickerInlineCalendar.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/DateRangePickerPresetSelect.d.ts.map +1 -1
- package/dist/cjs/components/date-range-picker/EditableDateRangePicker.d.ts.map +1 -1
- package/dist/cjs/components/header/Header.module.css +7 -2
- package/dist/cjs/components/header/__tests__/__snapshots__/Header.spec.tsx.snap +73 -0
- package/dist/cjs/components/index.d.ts +0 -2
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/components/index.js +0 -2
- package/dist/cjs/components/index.js.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/Prompt.module.css +15 -4
- package/dist/cjs/components/prompt/PromptConfirmButton.js +4 -4
- package/dist/cjs/components/prompt/PromptConfirmButton.js.map +1 -1
- package/dist/cjs/components/read-only/ReadOnlyInputStyles.d.ts.map +1 -1
- package/dist/cjs/components/sticky-footer/StickyFooter.module.css +3 -3
- package/dist/cjs/components/table/Table.module.css +3 -4
- package/dist/cjs/components/table/use-table.d.ts.map +1 -1
- package/dist/cjs/components/table/use-url-synced-state.d.ts.map +1 -1
- package/dist/cjs/hooks/useClickWithLoading.d.ts.map +1 -1
- package/dist/cjs/hooks/useControlledList.d.ts.map +1 -1
- package/dist/cjs/styles/ActionIcon.module.css +6 -0
- package/dist/cjs/styles/Alert.module.css +32 -0
- package/dist/cjs/styles/Anchor.module.css +6 -0
- package/dist/cjs/styles/AppShellNavBar.module.css +3 -0
- package/dist/cjs/styles/Badge.module.css +2 -0
- package/dist/cjs/styles/Button.module.css +1 -1
- package/dist/cjs/styles/Checkbox.module.css +17 -0
- package/dist/cjs/styles/Combobox.module.css +2 -3
- package/dist/cjs/styles/DatePicker.module.css +3 -0
- package/dist/cjs/styles/Input.module.css +3 -0
- package/dist/cjs/styles/InputWrapper.module.css +9 -0
- package/dist/cjs/styles/Modal.module.css +62 -0
- package/dist/cjs/styles/NavLink.module.css +18 -0
- package/dist/cjs/styles/Notification.module.css +20 -0
- package/dist/cjs/styles/Pagination.module.css +30 -0
- package/dist/cjs/styles/Radio.module.css +6 -0
- package/dist/cjs/styles/ReadOnlyInput.module.css +3 -3
- package/dist/cjs/styles/SegmentedControl.module.css +32 -0
- package/dist/cjs/styles/Select.module.css +39 -0
- package/dist/cjs/styles/Stepper.module.css +66 -0
- package/dist/cjs/styles/Tabs.module.css +6 -1
- package/dist/cjs/styles/Text.module.css +0 -4
- package/dist/cjs/theme/PlasmaColors.d.ts +7 -11
- package/dist/cjs/theme/PlasmaColors.d.ts.map +1 -1
- package/dist/cjs/theme/PlasmaColors.js +19 -144
- package/dist/cjs/theme/PlasmaColors.js.map +1 -1
- package/dist/cjs/theme/Theme.d.ts.map +1 -1
- package/dist/cjs/theme/Theme.js +111 -77
- package/dist/cjs/theme/Theme.js.map +1 -1
- package/dist/cjs/theme/mergeCSSVariablesResolvers.d.ts.map +1 -1
- package/dist/cjs/theme/plasmaCSSVariablesResolver.d.ts.map +1 -1
- package/dist/cjs/theme/plasmaCSSVariablesResolver.js +6 -4
- package/dist/cjs/theme/plasmaCSSVariablesResolver.js.map +1 -1
- package/dist/cjs/utils/createFactoryComponent.d.ts.map +1 -1
- package/dist/cjs/utils/overrideComponent.d.ts.map +1 -1
- package/dist/cjs/vars/Notification.vars.d.ts +3 -0
- package/dist/cjs/vars/Notification.vars.d.ts.map +1 -0
- package/dist/cjs/vars/Notification.vars.js +44 -0
- package/dist/cjs/vars/Notification.vars.js.map +1 -0
- package/dist/cjs/vars/Text.vars.d.ts +3 -0
- package/dist/cjs/vars/Text.vars.d.ts.map +1 -0
- package/dist/cjs/vars/Text.vars.js +25 -0
- package/dist/cjs/vars/Text.vars.js.map +1 -0
- package/dist/esm/components/browser-preview/BrowserPreview.d.ts.map +1 -1
- package/dist/esm/components/browser-preview/BrowserPreview.module.css +1 -1
- package/dist/esm/components/button/Button.d.ts +0 -5
- package/dist/esm/components/button/Button.d.ts.map +1 -1
- package/dist/esm/components/button/Button.js +0 -17
- package/dist/esm/components/button/Button.js.map +1 -1
- package/dist/esm/components/code-editor/CodeEditor.d.ts.map +1 -1
- package/dist/esm/components/code-editor/CodeEditor.js +10 -2
- package/dist/esm/components/code-editor/CodeEditor.js.map +1 -1
- package/dist/esm/components/collection/CollectionItem.js +1 -0
- package/dist/esm/components/collection/CollectionItem.js.map +1 -1
- package/dist/esm/components/collection/enhanceWithCollectionProps.d.ts.map +1 -1
- package/dist/esm/components/copyToClipboard/CopyToClipboard.js +1 -0
- package/dist/esm/components/copyToClipboard/CopyToClipboard.js.map +1 -1
- package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.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/DateRangePickerPresetSelect.d.ts.map +1 -1
- package/dist/esm/components/date-range-picker/EditableDateRangePicker.d.ts.map +1 -1
- package/dist/esm/components/header/Header.module.css +7 -2
- package/dist/esm/components/header/__tests__/__snapshots__/Header.spec.tsx.snap +73 -0
- package/dist/esm/components/index.d.ts +0 -2
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +0 -2
- package/dist/esm/components/index.js.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/Prompt.module.css +15 -4
- package/dist/esm/components/prompt/PromptConfirmButton.js +4 -4
- package/dist/esm/components/prompt/PromptConfirmButton.js.map +1 -1
- package/dist/esm/components/read-only/ReadOnlyInputStyles.d.ts.map +1 -1
- package/dist/esm/components/sticky-footer/StickyFooter.module.css +3 -3
- package/dist/esm/components/table/Table.module.css +3 -4
- package/dist/esm/components/table/use-table.d.ts.map +1 -1
- package/dist/esm/components/table/use-url-synced-state.d.ts.map +1 -1
- package/dist/esm/hooks/useClickWithLoading.d.ts.map +1 -1
- package/dist/esm/hooks/useControlledList.d.ts.map +1 -1
- package/dist/esm/styles/ActionIcon.module.css +6 -0
- package/dist/esm/styles/Alert.module.css +32 -0
- package/dist/esm/styles/Anchor.module.css +6 -0
- package/dist/esm/styles/AppShellNavBar.module.css +3 -0
- package/dist/esm/styles/Badge.module.css +2 -0
- package/dist/esm/styles/Button.module.css +1 -1
- package/dist/esm/styles/Checkbox.module.css +17 -0
- package/dist/esm/styles/Combobox.module.css +2 -3
- package/dist/esm/styles/DatePicker.module.css +3 -0
- package/dist/esm/styles/Input.module.css +3 -0
- package/dist/esm/styles/InputWrapper.module.css +9 -0
- package/dist/esm/styles/Modal.module.css +62 -0
- package/dist/esm/styles/NavLink.module.css +18 -0
- package/dist/esm/styles/Notification.module.css +20 -0
- package/dist/esm/styles/Pagination.module.css +30 -0
- package/dist/esm/styles/Radio.module.css +6 -0
- package/dist/esm/styles/ReadOnlyInput.module.css +3 -3
- package/dist/esm/styles/SegmentedControl.module.css +32 -0
- package/dist/esm/styles/Select.module.css +39 -0
- package/dist/esm/styles/Stepper.module.css +66 -0
- package/dist/esm/styles/Tabs.module.css +6 -1
- package/dist/esm/styles/Text.module.css +0 -4
- package/dist/esm/theme/PlasmaColors.d.ts +7 -11
- package/dist/esm/theme/PlasmaColors.d.ts.map +1 -1
- package/dist/esm/theme/PlasmaColors.js +19 -144
- package/dist/esm/theme/PlasmaColors.js.map +1 -1
- package/dist/esm/theme/Theme.d.ts.map +1 -1
- package/dist/esm/theme/Theme.js +111 -78
- package/dist/esm/theme/Theme.js.map +1 -1
- package/dist/esm/theme/mergeCSSVariablesResolvers.d.ts.map +1 -1
- package/dist/esm/theme/plasmaCSSVariablesResolver.d.ts.map +1 -1
- package/dist/esm/theme/plasmaCSSVariablesResolver.js +6 -4
- package/dist/esm/theme/plasmaCSSVariablesResolver.js.map +1 -1
- package/dist/esm/utils/createFactoryComponent.d.ts.map +1 -1
- package/dist/esm/utils/overrideComponent.d.ts.map +1 -1
- package/dist/esm/vars/Notification.vars.d.ts +3 -0
- package/dist/esm/vars/Notification.vars.d.ts.map +1 -0
- package/dist/esm/vars/Notification.vars.js +34 -0
- package/dist/esm/vars/Notification.vars.js.map +1 -0
- package/dist/esm/vars/Text.vars.d.ts +3 -0
- package/dist/esm/vars/Text.vars.d.ts.map +1 -0
- package/dist/esm/vars/Text.vars.js +15 -0
- package/dist/esm/vars/Text.vars.js.map +1 -0
- package/package.json +24 -23
- package/src/components/browser-preview/BrowserPreview.module.css +1 -1
- package/src/components/button/Button.tsx +0 -6
- package/src/components/code-editor/CodeEditor.tsx +12 -5
- package/src/components/collection/CollectionItem.tsx +1 -1
- package/src/components/copyToClipboard/CopyToClipboard.tsx +1 -1
- package/src/components/header/Header.module.css +7 -2
- package/src/components/header/__tests__/__snapshots__/Header.spec.tsx.snap +73 -0
- package/src/components/index.ts +0 -2
- package/src/components/prompt/Prompt.module.css +15 -4
- package/src/components/prompt/Prompt.tsx +1 -1
- package/src/components/prompt/PromptConfirmButton.tsx +4 -4
- package/src/components/sticky-footer/StickyFooter.module.css +3 -3
- package/src/components/table/Table.module.css +3 -4
- package/src/styles/ActionIcon.module.css +6 -0
- package/src/styles/Alert.module.css +32 -0
- package/src/styles/Anchor.module.css +6 -0
- package/src/styles/AppShellNavBar.module.css +3 -0
- package/src/styles/Badge.module.css +2 -0
- package/src/styles/Button.module.css +1 -1
- package/src/styles/Checkbox.module.css +17 -0
- package/src/styles/Combobox.module.css +2 -3
- package/src/styles/DatePicker.module.css +3 -0
- package/src/styles/Input.module.css +3 -0
- package/src/styles/InputWrapper.module.css +9 -0
- package/src/styles/Modal.module.css +62 -0
- package/src/styles/NavLink.module.css +18 -0
- package/src/styles/Notification.module.css +20 -0
- package/src/styles/Pagination.module.css +30 -0
- package/src/styles/Radio.module.css +6 -0
- package/src/styles/ReadOnlyInput.module.css +3 -3
- package/src/styles/SegmentedControl.module.css +32 -0
- package/src/styles/Select.module.css +39 -0
- package/src/styles/Stepper.module.css +66 -0
- package/src/styles/Tabs.module.css +6 -1
- package/src/styles/Text.module.css +0 -4
- package/src/theme/PlasmaColors.ts +19 -144
- package/src/theme/Theme.tsx +82 -72
- package/src/theme/__tests__/plasmaCSSVariablesResolver.spec.ts +44 -15
- package/src/theme/plasmaCSSVariablesResolver.ts +6 -5
- package/src/vars/Notification.vars.ts +14 -0
- package/src/vars/Text.vars.ts +8 -0
- package/dist/cjs/components/alert/Alert.d.ts +0 -17
- package/dist/cjs/components/alert/Alert.d.ts.map +0 -1
- package/dist/cjs/components/alert/Alert.js +0 -53
- package/dist/cjs/components/alert/Alert.js.map +0 -1
- package/dist/cjs/components/alert/index.d.ts +0 -2
- package/dist/cjs/components/alert/index.d.ts.map +0 -1
- package/dist/cjs/components/alert/index.js +0 -8
- package/dist/cjs/components/alert/index.js.map +0 -1
- package/dist/cjs/components/badge/Badge.d.ts +0 -8
- package/dist/cjs/components/badge/Badge.d.ts.map +0 -1
- package/dist/cjs/components/badge/Badge.js +0 -60
- package/dist/cjs/components/badge/Badge.js.map +0 -1
- package/dist/cjs/components/badge/index.d.ts +0 -2
- package/dist/cjs/components/badge/index.d.ts.map +0 -1
- package/dist/cjs/components/badge/index.js +0 -8
- package/dist/cjs/components/badge/index.js.map +0 -1
- package/dist/cjs/styles/Table.module.css +0 -3
- package/dist/esm/components/alert/Alert.d.ts +0 -17
- package/dist/esm/components/alert/Alert.d.ts.map +0 -1
- package/dist/esm/components/alert/Alert.js +0 -29
- package/dist/esm/components/alert/Alert.js.map +0 -1
- package/dist/esm/components/alert/index.d.ts +0 -2
- package/dist/esm/components/alert/index.d.ts.map +0 -1
- package/dist/esm/components/alert/index.js +0 -3
- package/dist/esm/components/alert/index.js.map +0 -1
- package/dist/esm/components/badge/Badge.d.ts +0 -8
- package/dist/esm/components/badge/Badge.d.ts.map +0 -1
- package/dist/esm/components/badge/Badge.js +0 -27
- package/dist/esm/components/badge/Badge.js.map +0 -1
- package/dist/esm/components/badge/index.d.ts +0 -2
- package/dist/esm/components/badge/index.d.ts.map +0 -1
- package/dist/esm/components/badge/index.js +0 -3
- package/dist/esm/components/badge/index.js.map +0 -1
- package/dist/esm/styles/Table.module.css +0 -3
- package/src/components/alert/Alert.tsx +0 -7
- package/src/components/alert/index.ts +0 -1
- package/src/components/badge/Badge.tsx +0 -10
- package/src/components/badge/index.ts +0 -1
- package/src/styles/Table.module.css +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveord/plasma-mantine",
|
|
3
|
-
"version": "55.7.
|
|
3
|
+
"version": "55.7.3",
|
|
4
4
|
"description": "A Plasma flavoured Mantine theme",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plasma",
|
|
@@ -32,52 +32,53 @@
|
|
|
32
32
|
"@dnd-kit/sortable": "10.0.0",
|
|
33
33
|
"@dnd-kit/utilities": "3.2.2",
|
|
34
34
|
"@mantine/utils": "6.0.22",
|
|
35
|
-
"@monaco-editor/react": "4.
|
|
35
|
+
"@monaco-editor/react": "4.7.0",
|
|
36
36
|
"@swc/helpers": "0.5.15",
|
|
37
|
-
"@tanstack/react-table": "8.
|
|
38
|
-
"@tanstack/table-core": "8.
|
|
37
|
+
"@tanstack/react-table": "8.21.2",
|
|
38
|
+
"@tanstack/table-core": "8.21.2",
|
|
39
39
|
"clsx": "2.1.1",
|
|
40
40
|
"dayjs": "1.11.13",
|
|
41
41
|
"fast-deep-equal": "3.1.3",
|
|
42
42
|
"lodash.debounce": "4.0.8",
|
|
43
43
|
"lodash.defaultsdeep": "4.6.1",
|
|
44
44
|
"monaco-editor": "0.52.2",
|
|
45
|
-
"@coveord/plasma-
|
|
46
|
-
"@coveord/plasma-
|
|
45
|
+
"@coveord/plasma-tokens": "55.7.3",
|
|
46
|
+
"@coveord/plasma-react-icons": "55.7.3"
|
|
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.17.2",
|
|
50
|
+
"@mantine/code-highlight": "7.17.2",
|
|
51
|
+
"@mantine/core": "7.17.2",
|
|
52
|
+
"@mantine/dates": "7.17.2",
|
|
53
|
+
"@mantine/form": "7.17.2",
|
|
54
|
+
"@mantine/hooks": "7.17.2",
|
|
55
|
+
"@mantine/modals": "7.17.2",
|
|
56
|
+
"@mantine/notifications": "7.17.2",
|
|
57
57
|
"@swc/cli": "0.6.0",
|
|
58
|
-
"@swc/core": "1.
|
|
58
|
+
"@swc/core": "1.11.9",
|
|
59
59
|
"@testing-library/dom": "10.4.0",
|
|
60
60
|
"@testing-library/jest-dom": "6.6.3",
|
|
61
61
|
"@testing-library/react": "16.2.0",
|
|
62
|
-
"@testing-library/user-event": "14.6.
|
|
62
|
+
"@testing-library/user-event": "14.6.1",
|
|
63
63
|
"@types/lodash.debounce": "4.0.9",
|
|
64
64
|
"@types/lodash.defaultsdeep": "4.6.9",
|
|
65
65
|
"@types/react": "18.3.18",
|
|
66
66
|
"@types/react-dom": "18.3.5",
|
|
67
|
+
"cross-env": "7.0.3",
|
|
67
68
|
"embla-carousel-react": "7.1.0",
|
|
68
69
|
"identity-obj-proxy": "3.0.0",
|
|
69
70
|
"jsdom": "26.0.0",
|
|
70
|
-
"postcss": "8.5.
|
|
71
|
+
"postcss": "8.5.3",
|
|
71
72
|
"postcss-preset-mantine": "^1.11.0",
|
|
72
73
|
"postcss-simple-vars": "^7.0.1",
|
|
73
|
-
"publint": "0.3.
|
|
74
|
+
"publint": "0.3.9",
|
|
74
75
|
"react": "18.3.1",
|
|
75
76
|
"react-dom": "18.3.1",
|
|
76
77
|
"rimraf": "6.0.1",
|
|
77
|
-
"sass": "1.
|
|
78
|
+
"sass": "1.85.1",
|
|
78
79
|
"tslib": "2.8.1",
|
|
79
|
-
"typescript": "5.
|
|
80
|
-
"vitest": "3.0.
|
|
80
|
+
"typescript": "5.8.2",
|
|
81
|
+
"vitest": "3.0.8"
|
|
81
82
|
},
|
|
82
83
|
"peerDependencies": {
|
|
83
84
|
"@mantine/carousel": "^7.6.1",
|
|
@@ -120,7 +121,7 @@
|
|
|
120
121
|
"clean": "rimraf dist",
|
|
121
122
|
"lintfix": "../../node_modules/.bin/prettier --write \"**/*.{scss,ts,tsx,js,jsx,json,md,yml,html}\" && ../../node_modules/.bin/eslint \"**/*.{ts,tsx}\" --fix",
|
|
122
123
|
"start": "node ../../scripts/start",
|
|
123
|
-
"test": "TZ=UTC vitest run",
|
|
124
|
-
"test:watch": "TZ=UTC vitest"
|
|
124
|
+
"test": "cross-env TZ=UTC vitest run",
|
|
125
|
+
"test:watch": "cross-env TZ=UTC vitest"
|
|
125
126
|
}
|
|
126
127
|
}
|
|
@@ -56,9 +56,3 @@ export const Button = polymorphicFactory<ButtonOverloadFactory>(
|
|
|
56
56
|
},
|
|
57
57
|
);
|
|
58
58
|
Button.Group = MantineButton.Group;
|
|
59
|
-
|
|
60
|
-
export const ButtonPrimary = Button.withProps({variant: 'filled'});
|
|
61
|
-
export const ButtonSecondary = Button.withProps({variant: 'light'});
|
|
62
|
-
export const ButtonTertiary = Button.withProps({variant: 'subtle'});
|
|
63
|
-
export const ButtonDestructive = Button.withProps({variant: 'filled', color: 'var(--mantine-color-error)'});
|
|
64
|
-
export const ButtonDestructiveSecondary = Button.withProps({variant: 'light', color: 'var(--mantine-color-error)'});
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from '@mantine/core';
|
|
16
16
|
import {useUncontrolled} from '@mantine/hooks';
|
|
17
17
|
import Editor, {Monaco, loader} from '@monaco-editor/react';
|
|
18
|
-
import {editor as monacoEditor} from 'monaco-editor';
|
|
18
|
+
import {editor as monacoEditor, MarkerSeverity} from 'monaco-editor';
|
|
19
19
|
import {FunctionComponent, useEffect, useRef, useState} from 'react';
|
|
20
20
|
|
|
21
21
|
import cx from 'clsx';
|
|
@@ -159,6 +159,10 @@ export const CodeEditor: FunctionComponent<CodeEditorProps> = (props) => {
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
const [hasMonacoError, setHasMonacoError] = useState(false);
|
|
162
|
+
const hasMonacoErrorRef = useRef(false);
|
|
163
|
+
|
|
164
|
+
hasMonacoErrorRef.current = hasMonacoError;
|
|
165
|
+
|
|
162
166
|
const renderErrorOutline = !!error || hasMonacoError;
|
|
163
167
|
const theme = useMantineTheme();
|
|
164
168
|
const {colorScheme} = useMantineColorScheme();
|
|
@@ -172,9 +176,7 @@ export const CodeEditor: FunctionComponent<CodeEditorProps> = (props) => {
|
|
|
172
176
|
}, []);
|
|
173
177
|
|
|
174
178
|
const handleValidate = (markers: monacoEditor.IMarker[]) => {
|
|
175
|
-
setHasMonacoError(
|
|
176
|
-
markers.some((marker) => marker.severity === loader.__getMonacoInstance().MarkerSeverity.Error),
|
|
177
|
-
);
|
|
179
|
+
setHasMonacoError(markers.some((marker) => marker.severity === MarkerSeverity.Error));
|
|
178
180
|
};
|
|
179
181
|
|
|
180
182
|
const _label = label ? (
|
|
@@ -247,7 +249,12 @@ export const CodeEditor: FunctionComponent<CodeEditorProps> = (props) => {
|
|
|
247
249
|
registerThemes(monaco);
|
|
248
250
|
editor.onDidFocusEditorText(() => onFocus?.());
|
|
249
251
|
editor.onDidBlurEditorText(async () => {
|
|
250
|
-
|
|
252
|
+
// monaco editor has a timeout of 500ms populating errors, we want to ensure that checking errors happen after that
|
|
253
|
+
setTimeout(async () => {
|
|
254
|
+
if (!hasMonacoErrorRef.current) {
|
|
255
|
+
await editor?.getAction('editor.action.formatDocument')?.run();
|
|
256
|
+
}
|
|
257
|
+
}, 550);
|
|
251
258
|
});
|
|
252
259
|
}}
|
|
253
260
|
/>
|
|
@@ -20,7 +20,7 @@ interface CollectionItemSharedProps extends GroupProps {
|
|
|
20
20
|
const RemoveButton: FunctionComponent<{
|
|
21
21
|
onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
22
22
|
}> = ({onClick}) => (
|
|
23
|
-
<ActionIcon style={{alignSelf: 'center'}} variant="subtle" onClick={onClick}>
|
|
23
|
+
<ActionIcon style={{alignSelf: 'center'}} variant="subtle" onClick={onClick} color="action">
|
|
24
24
|
<RemoveSize16Px height={16} />
|
|
25
25
|
</ActionIcon>
|
|
26
26
|
);
|
|
@@ -50,7 +50,7 @@ export const CopyToClipboard: FunctionComponent<CopyToClipboardProps> = ({withLa
|
|
|
50
50
|
value={others.value}
|
|
51
51
|
readOnly
|
|
52
52
|
autoComplete="off"
|
|
53
|
-
rightSection={<CopyToClipboardButton {...others} />}
|
|
53
|
+
rightSection={<CopyToClipboardButton color="action" {...others} />}
|
|
54
54
|
/>
|
|
55
55
|
) : (
|
|
56
56
|
<CopyToClipboardButton {...others} />
|
|
@@ -5,13 +5,18 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
& .description {
|
|
8
|
-
color: var(--mantine-color-
|
|
8
|
+
color: var(--mantine-color-gray-6);
|
|
9
9
|
font-weight: 300;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.title {
|
|
14
14
|
word-break: break-word;
|
|
15
|
+
|
|
16
|
+
&[data-variant='primary'] {
|
|
17
|
+
color: var(--mantine-color-gray-5);
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
line-height: var(--mantine-line-height-md);
|
|
16
21
|
}
|
|
17
22
|
|
|
@@ -26,5 +31,5 @@
|
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
.breadcrumbsSeparator {
|
|
29
|
-
color: var(--mantine-color-
|
|
34
|
+
color: var(--mantine-color-gray-5);
|
|
30
35
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Header > renders the specified breadcrumbs above the title 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<style
|
|
6
|
+
data-mantine-styles="classes"
|
|
7
|
+
>
|
|
8
|
+
@media (max-width: 35.99375em) {.mantine-visible-from-xs {display: none !important;}}@media (min-width: 36em) {.mantine-hidden-from-xs {display: none !important;}}@media (max-width: 47.99375em) {.mantine-visible-from-sm {display: none !important;}}@media (min-width: 48em) {.mantine-hidden-from-sm {display: none !important;}}@media (max-width: 61.99375em) {.mantine-visible-from-md {display: none !important;}}@media (min-width: 62em) {.mantine-hidden-from-md {display: none !important;}}@media (max-width: 74.99375em) {.mantine-visible-from-lg {display: none !important;}}@media (min-width: 75em) {.mantine-hidden-from-lg {display: none !important;}}@media (max-width: 87.99375em) {.mantine-visible-from-xl {display: none !important;}}@media (min-width: 88em) {.mantine-hidden-from-xl {display: none !important;}}
|
|
9
|
+
</style>
|
|
10
|
+
<div
|
|
11
|
+
class="_root_69e643 mantine-PlasmaHeader-root m_4081bf90 mantine-Group-root"
|
|
12
|
+
data-variant="primary"
|
|
13
|
+
style="--group-gap: var(--mantine-spacing-md); --group-align: center; --group-justify: space-between; --group-wrap: nowrap;"
|
|
14
|
+
>
|
|
15
|
+
<div
|
|
16
|
+
class="m_6d731127 mantine-Stack-root"
|
|
17
|
+
style="--stack-gap: 0rem; --stack-align: stretch; --stack-justify: flex-start;"
|
|
18
|
+
>
|
|
19
|
+
<div
|
|
20
|
+
class="m_8b3717df mantine-Breadcrumbs-root"
|
|
21
|
+
>
|
|
22
|
+
<a
|
|
23
|
+
class="mantine-focus-auto _root_a623ec m_849cf0da _breadcrumbsRoot_69e643 mantine-PlasmaHeader-breadcrumbsRoot m_f678d540 mantine-Breadcrumbs-breadcrumb m_b6d8b162 mantine-Text-root mantine-Anchor-root"
|
|
24
|
+
color="action.6"
|
|
25
|
+
data-underline="hover"
|
|
26
|
+
style="--text-color: var(--mantine-color-action-6); --text-fz: var(--mantine-font-size-sm);"
|
|
27
|
+
>
|
|
28
|
+
One
|
|
29
|
+
</a>
|
|
30
|
+
<div
|
|
31
|
+
class="_breadcrumbsSeparator_69e643 mantine-PlasmaHeader-breadcrumbsSeparator m_3b8f2208 mantine-Breadcrumbs-separator"
|
|
32
|
+
>
|
|
33
|
+
/
|
|
34
|
+
</div>
|
|
35
|
+
<a
|
|
36
|
+
class="mantine-focus-auto _root_a623ec m_849cf0da _breadcrumbsRoot_69e643 mantine-PlasmaHeader-breadcrumbsRoot m_f678d540 mantine-Breadcrumbs-breadcrumb m_b6d8b162 mantine-Text-root mantine-Anchor-root"
|
|
37
|
+
color="action.6"
|
|
38
|
+
data-underline="hover"
|
|
39
|
+
style="--text-color: var(--mantine-color-action-6); --text-fz: var(--mantine-font-size-sm);"
|
|
40
|
+
>
|
|
41
|
+
Two
|
|
42
|
+
</a>
|
|
43
|
+
<div
|
|
44
|
+
class="_breadcrumbsSeparator_69e643 mantine-PlasmaHeader-breadcrumbsSeparator m_3b8f2208 mantine-Breadcrumbs-separator"
|
|
45
|
+
>
|
|
46
|
+
/
|
|
47
|
+
</div>
|
|
48
|
+
<a
|
|
49
|
+
class="mantine-focus-auto _root_a623ec m_849cf0da _breadcrumbsRoot_69e643 mantine-PlasmaHeader-breadcrumbsRoot m_f678d540 mantine-Breadcrumbs-breadcrumb m_b6d8b162 mantine-Text-root mantine-Anchor-root"
|
|
50
|
+
color="action.6"
|
|
51
|
+
data-underline="hover"
|
|
52
|
+
style="--text-color: var(--mantine-color-action-6); --text-fz: var(--mantine-font-size-sm);"
|
|
53
|
+
>
|
|
54
|
+
Three
|
|
55
|
+
</a>
|
|
56
|
+
</div>
|
|
57
|
+
<h1
|
|
58
|
+
class="_root_4eabcc _title_69e643 mantine-PlasmaHeader-title m_8a5d1357 mantine-Title-root"
|
|
59
|
+
data-order="1"
|
|
60
|
+
data-variant="primary"
|
|
61
|
+
style="--title-fw: var(--mantine-h1-font-weight); --title-lh: var(--mantine-h1-line-height); --title-fz: var(--mantine-h1-font-size);"
|
|
62
|
+
>
|
|
63
|
+
Title
|
|
64
|
+
</h1>
|
|
65
|
+
<p
|
|
66
|
+
class="mantine-focus-auto _description_69e643 mantine-PlasmaHeader-description m_b6d8b162 mantine-Text-root"
|
|
67
|
+
data-size="md"
|
|
68
|
+
style="--text-fz: var(--mantine-font-size-md); --text-lh: var(--mantine-line-height-md);"
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
`;
|
package/src/components/index.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
--prompt-icon-size:
|
|
2
|
+
--prompt-icon-size: 88px;
|
|
3
|
+
|
|
4
|
+
.header {
|
|
5
|
+
border-bottom: none;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
3
8
|
|
|
4
9
|
.body {
|
|
5
10
|
padding: 0 var(--mantine-spacing-lg) var(--mantine-spacing-lg)
|
|
6
|
-
calc(var(--prompt-icon-size) +
|
|
11
|
+
calc(var(--prompt-icon-size) + (2 * var(--mantine-spacing-lg)));
|
|
7
12
|
}
|
|
8
13
|
}
|
|
9
14
|
|
|
@@ -13,12 +18,18 @@
|
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
.header {
|
|
16
|
-
gap: var(--mantine-spacing-
|
|
21
|
+
gap: var(--mantine-spacing-lg);
|
|
17
22
|
width: 100%;
|
|
23
|
+
font-size: var(--mantine-h3-font-size);
|
|
24
|
+
line-height: var(--mantine-h3-line-height);
|
|
18
25
|
overflow-wrap: anywhere;
|
|
19
26
|
padding: var(--mantine-spacing-lg) var(--mantine-spacing-md) var(--mantine-spacing-xs) var(--mantine-spacing-lg);
|
|
20
27
|
}
|
|
21
28
|
|
|
29
|
+
.close {
|
|
30
|
+
align-self: flex-start;
|
|
31
|
+
}
|
|
32
|
+
|
|
22
33
|
.inner {
|
|
23
|
-
color: var(--mantine-color-
|
|
34
|
+
color: var(--mantine-color-gray-7);
|
|
24
35
|
}
|
|
@@ -100,7 +100,7 @@ export const Prompt = factory<PromptFactory>((_props, ref) => {
|
|
|
100
100
|
|
|
101
101
|
return (
|
|
102
102
|
<PromptContextProvider value={{variant, getStyles}}>
|
|
103
|
-
<Modal.Root ref={ref} variant="prompt" size="
|
|
103
|
+
<Modal.Root ref={ref} variant="prompt" size="sm" {...others} {...getStyles('root')}>
|
|
104
104
|
<Modal.Overlay {...getStyles('overlay', stylesApiProps)} />
|
|
105
105
|
<Modal.Content {...getStyles('content', stylesApiProps)}>
|
|
106
106
|
<Modal.Header {...getStyles('header', stylesApiProps)}>
|
|
@@ -17,10 +17,10 @@ export type PromptConfirmButtonFactory = Factory<{
|
|
|
17
17
|
}>;
|
|
18
18
|
|
|
19
19
|
const COLOR_BY_VARIANT: Record<PromptVariant, string> = {
|
|
20
|
-
success: '
|
|
21
|
-
info: '
|
|
22
|
-
warning: '
|
|
23
|
-
critical: '
|
|
20
|
+
success: 'action',
|
|
21
|
+
info: 'action',
|
|
22
|
+
warning: 'critical',
|
|
23
|
+
critical: 'critical',
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const defaultProps: Partial<PromptConfirmButtonProps> = {};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
position: sticky;
|
|
3
3
|
bottom: 0;
|
|
4
4
|
z-index: 10;
|
|
5
|
-
background-color:
|
|
5
|
+
background-color: white;
|
|
6
6
|
padding: var(--mantine-spacing-md) var(--mantine-spacing-lg);
|
|
7
7
|
|
|
8
8
|
&[data-variant='modal-footer'] {
|
|
9
|
-
border-top: 1px solid var(--mantine-color-
|
|
9
|
+
border-top: 1px solid var(--mantine-color-gray-3);
|
|
10
10
|
padding-bottom: 0;
|
|
11
11
|
margin: var(--mb-padding) calc(-1 * var(--mb-padding)) calc(var(--mantine-spacing-md) - var(--mb-padding))
|
|
12
12
|
calc(-1 * var(--mb-padding));
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.border {
|
|
17
|
-
border-top: 1px solid var(--mantine-color-
|
|
17
|
+
border-top: 1px solid var(--mantine-color-gray-3);
|
|
18
18
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
left: 0;
|
|
20
20
|
right: 0;
|
|
21
21
|
bottom: 0;
|
|
22
|
-
border-bottom: 1px solid var(--mantine-color-
|
|
22
|
+
border-bottom: 1px solid var(--mantine-color-gray-3);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -66,8 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
/* Table.Header */
|
|
68
68
|
.headerRoot {
|
|
69
|
-
border-bottom: 1px solid var(--mantine-color-
|
|
70
|
-
border-top: 1px solid var(--mantine-color-default-border);
|
|
69
|
+
border-bottom: 1px solid var(--mantine-color-gray-3);
|
|
71
70
|
background-color: var(--mantine-color-gray-1);
|
|
72
71
|
padding: var(--mantine-spacing-sm) var(--mantine-spacing-xl);
|
|
73
72
|
position: relative;
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
color: var(--mantine-color-gray-6);
|
|
91
90
|
height: var(--mantine-spacing-xl);
|
|
92
91
|
font-weight: 500;
|
|
93
|
-
font-size: var(--mantine-font-size-
|
|
92
|
+
font-size: var(--mantine-font-size-xs);
|
|
94
93
|
|
|
95
94
|
&:first-of-type {
|
|
96
95
|
padding-left: var(--mantine-spacing-xl);
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
padding: var(--mantine-spacing-sm);
|
|
3
|
+
|
|
4
|
+
&:not(&[data-variant]) {
|
|
5
|
+
border-color: color-mix(in srgb, var(--alert-color), var(--alert-bg) 85%);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.wrapper {
|
|
10
|
+
gap: var(--mantine-spacing-sm);
|
|
11
|
+
}
|
|
12
|
+
|
|
1
13
|
.title {
|
|
2
14
|
font-weight: 500;
|
|
3
15
|
}
|
|
16
|
+
|
|
17
|
+
.icon {
|
|
18
|
+
width: 16px;
|
|
19
|
+
height: 16px;
|
|
20
|
+
margin-right: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.message {
|
|
24
|
+
@mixin light {
|
|
25
|
+
color: var(--mantine-color-gray-7);
|
|
26
|
+
|
|
27
|
+
&:where([data-variant='filled']) {
|
|
28
|
+
color: var(--alert-color);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:where([data-variant='white']) {
|
|
33
|
+
color: var(--mantine-color-black);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
.label {
|
|
2
|
+
font-size: var(--mantine-font-size-sm);
|
|
2
3
|
font-weight: 300;
|
|
3
4
|
}
|
|
5
|
+
|
|
6
|
+
.input {
|
|
7
|
+
&[data-indeterminate] {
|
|
8
|
+
background-color: var(--mantine-color-pureWhite);
|
|
9
|
+
border-color: var(--mantine-color-gray-4);
|
|
10
|
+
|
|
11
|
+
& + svg {
|
|
12
|
+
color: var(--mantine-color-gray-6);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&[readonly] {
|
|
17
|
+
background-color: var(--mantine-color-gray-2);
|
|
18
|
+
border-color: var(--mantine-color-gray-2);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* TODO: Plasma Reset, validate if we need the custom style for the search */
|
|
2
1
|
.search {
|
|
3
2
|
margin: 0 0 var(--mantine-spacing-xs);
|
|
4
|
-
border-radius: var(--mantine-radius-
|
|
3
|
+
border-radius: var(--mantine-radius-md);
|
|
5
4
|
border: 1px solid;
|
|
6
5
|
width: 100%;
|
|
7
|
-
border-color: var(--mantine-color-
|
|
6
|
+
border-color: var(--mantine-color-gray-4);
|
|
8
7
|
|
|
9
8
|
&:focus {
|
|
10
9
|
border-color: var(--mantine-primary-color-filled);
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
.label {
|
|
2
|
+
margin-bottom: var(--mantine-spacing-xs);
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
.description {
|
|
6
|
+
font-size: var(--mantine-font-size-sm);
|
|
7
|
+
color: var(--mantine-color-gray-7);
|
|
8
|
+
margin-bottom: var(--mantine-spacing-xs);
|
|
9
|
+
line-height: var(--mantine-line-height);
|
|
2
10
|
font-weight: 300;
|
|
3
11
|
}
|
|
4
12
|
|
|
5
13
|
.error {
|
|
14
|
+
line-height: var(--mantine-line-height);
|
|
6
15
|
font-weight: 300;
|
|
7
16
|
}
|
|
@@ -1,3 +1,65 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
&[data-full-screen] {
|
|
3
|
+
.content {
|
|
4
|
+
flex: 0 0 100%;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&[data-size='xs'] {
|
|
9
|
+
.content {
|
|
10
|
+
flex: 0 0 rem(432px);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&[data-size='sm'] {
|
|
15
|
+
.content {
|
|
16
|
+
flex: 0 0 rem(664px);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&[data-size='md'] {
|
|
21
|
+
.content {
|
|
22
|
+
flex: 0 0 rem(896px);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[data-size='lg'] {
|
|
27
|
+
.content {
|
|
28
|
+
flex: 0 0 rem(1120px);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[data-size='xl'] {
|
|
33
|
+
.content {
|
|
34
|
+
flex: 0 0 rem(88%);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:not([data-size]) {
|
|
39
|
+
.content {
|
|
40
|
+
flex: 0 0 rem(896px);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.content {
|
|
46
|
+
overflow: auto;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.header {
|
|
50
|
+
border-bottom: 1px solid var(--mantine-color-gray-3);
|
|
51
|
+
align-items: flex-start;
|
|
52
|
+
}
|
|
53
|
+
|
|
1
54
|
.title {
|
|
55
|
+
width: 100%;
|
|
56
|
+
font-size: var(--mantine-h3-font-size);
|
|
57
|
+
line-height: var(--mantine-h3-line-height);
|
|
2
58
|
font-weight: 500;
|
|
3
59
|
}
|
|
60
|
+
|
|
61
|
+
.body {
|
|
62
|
+
&:where(:not(:only-child)) {
|
|
63
|
+
padding-top: var(--mb-padding, var(--mantine-spacing-md));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
color: var(--mantine-color-gray-6);
|
|
3
|
+
line-height: var(--mantine-line-height);
|
|
4
|
+
border-radius: var(--mantine-radius-default) 0 0 var(--mantine-radius-default);
|
|
5
|
+
|
|
6
|
+
&[data-active] {
|
|
7
|
+
color: var(--mantine-primary-color-6);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mixin hover {
|
|
11
|
+
@mixin light {
|
|
12
|
+
&:where(:not([data-active])) {
|
|
13
|
+
background-color: var(--mantine-color-gray-1);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
1
19
|
.label {
|
|
2
20
|
font-weight: 500;
|
|
3
21
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
border-color: var(--mantine-color-gray-3);
|
|
3
|
+
background-color: var(--mantine-color-gray-0);
|
|
4
|
+
box-shadow: var(--mantine-shadow-lg);
|
|
5
|
+
padding: var(--mantine-spacing-sm);
|
|
6
|
+
|
|
7
|
+
&[data-with-icon] {
|
|
8
|
+
padding-left: var(--mantine-spacing-sm);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.icon {
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
margin-right: var(--mantine-spacing-sm);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.closeButton {
|
|
18
|
+
margin: var(--mantine-spacing-xs);
|
|
19
|
+
color: var(--mantine-color-gray-5);
|
|
20
|
+
}
|