@coveord/plasma-mantine 55.7.2-next.0 → 55.7.2
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 +51 -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 +30 -13
- package/dist/cjs/components/code-editor/CodeEditor.js.map +1 -1
- package/dist/cjs/components/collection/enhanceWithCollectionProps.d.ts.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/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/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 +26 -1
- 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/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 +4 -0
- 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 +115 -43
- 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 +5 -1
- 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/enhanceWithCollectionProps.d.ts.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/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/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 +26 -1
- 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/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 +4 -0
- 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 +114 -44
- 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 +5 -1
- 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 +21 -21
- 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/header/Header.module.css +7 -2
- 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/styles/ActionIcon.module.css +6 -0
- package/src/styles/Alert.module.css +26 -1
- 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/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 +4 -0
- package/src/theme/PlasmaColors.ts +19 -144
- package/src/theme/Theme.tsx +86 -37
- package/src/theme/__tests__/plasmaCSSVariablesResolver.spec.ts +46 -3
- package/src/theme/plasmaCSSVariablesResolver.ts +5 -2
- 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/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/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
|
@@ -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
|
/>
|
|
@@ -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
|
}
|
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
|
}
|
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
.root {
|
|
2
|
+
padding: var(--mantine-spacing-sm);
|
|
3
|
+
|
|
2
4
|
&:not(&[data-variant]) {
|
|
3
|
-
/* TODO: Plasma Reset, validate if we need the border */
|
|
4
5
|
border-color: color-mix(in srgb, var(--alert-color), var(--alert-bg) 85%);
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
8
|
|
|
9
|
+
.wrapper {
|
|
10
|
+
gap: var(--mantine-spacing-sm);
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
.title {
|
|
9
14
|
font-weight: 500;
|
|
10
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
--pagination-control-fz: var(--mantine-font-size-sm);
|
|
3
|
+
|
|
4
|
+
color: var(--mantine-color-gray-6);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.control {
|
|
8
|
+
color: var(--mantine-color-gray-6);
|
|
9
|
+
|
|
10
|
+
@mixin light {
|
|
11
|
+
border-color: var(--mantine-color-gray-3);
|
|
12
|
+
|
|
13
|
+
@mixin hover {
|
|
14
|
+
&:where(:not(:disabled, [data-disabled])) {
|
|
15
|
+
background-color: var(--mantine-primary-color-1);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:where([data-active]) {
|
|
21
|
+
@mixin light {
|
|
22
|
+
border-color: var(--pagination-active-bg);
|
|
23
|
+
color: var(--pagination-active-color, var(--mantine-color-white));
|
|
24
|
+
|
|
25
|
+
@mixin hover {
|
|
26
|
+
background-color: var(--pagination-active-bg);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
cursor: text;
|
|
3
3
|
|
|
4
4
|
--input-bd: transparent;
|
|
5
|
-
--input-bg: var(--mantine-color-
|
|
6
|
-
--input-color: var(--mantine-color-
|
|
7
|
-
--input-placeholder-color: var(--mantine-color-
|
|
5
|
+
--input-bg: var(--mantine-color-gray-2);
|
|
6
|
+
--input-color: var(--mantine-color-gray-7);
|
|
7
|
+
--input-placeholder-color: var(--mantine-color-gray-7);
|
|
8
8
|
}
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
background-color: var(--mantine-color-gray-2);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.indicator {
|
|
6
|
+
border-radius: var(--sc-radius, var(--mantine-radius-sm));
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
.label {
|
|
2
10
|
font-weight: 300;
|
|
11
|
+
|
|
12
|
+
@mixin light {
|
|
13
|
+
color: var(--mantine-color-gray-6);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:where([data-disabled]) {
|
|
17
|
+
@mixin light {
|
|
18
|
+
color: var(--mantine-color-gray-5);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:where([data-active]) {
|
|
23
|
+
@mixin light {
|
|
24
|
+
color: var(--sc-label-color, var(--mantine-color-black));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:where(:not([data-disabled], [data-active], [data-read-only])) {
|
|
29
|
+
@mixin hover {
|
|
30
|
+
@mixin light {
|
|
31
|
+
color: var(--mantine-color-black);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
3
35
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.input {
|
|
2
|
+
@mixin light {
|
|
3
|
+
color: var(--mantine-color-gray-7);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin dark {
|
|
7
|
+
color: var(--mantine-color-dark-0);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.option {
|
|
12
|
+
padding: 12px 16px;
|
|
13
|
+
|
|
14
|
+
@mixin light {
|
|
15
|
+
color: var(--mantine-color-gray-7);
|
|
16
|
+
|
|
17
|
+
@mixin hover {
|
|
18
|
+
background-color: var(--mantine-color-gray-1);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin dark {
|
|
23
|
+
color: var(--mantine-color-dark-0);
|
|
24
|
+
|
|
25
|
+
@mixin hover {
|
|
26
|
+
background-color: var(--mantine-color-dark-4);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[aria-selected='true'] {
|
|
31
|
+
background-color: var(--mantine-color-action-1);
|
|
32
|
+
color: var(--mantine-color-action-6);
|
|
33
|
+
|
|
34
|
+
@mixin hover {
|
|
35
|
+
color: var(--mantine-color-action-6);
|
|
36
|
+
background-color: rgb(237 246 255 / 65%);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,3 +1,69 @@
|
|
|
1
|
+
.step {
|
|
2
|
+
&[disabled] {
|
|
3
|
+
color: var(--mantine-color-gray-5);
|
|
4
|
+
|
|
5
|
+
& .mantine-Stepper-stepDescription {
|
|
6
|
+
color: var(--mantine-color-gray-5);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
& .mantine-Stepper-stepIcon {
|
|
10
|
+
border-color: var(--mantine-color-gray-1);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
1
15
|
.stepIcon {
|
|
2
16
|
font-weight: 500;
|
|
17
|
+
background-color: var(--mantine-color-gray-1);
|
|
18
|
+
color: inherit;
|
|
19
|
+
border: rem(1) solid var(--mantine-color-gray-3);
|
|
20
|
+
|
|
21
|
+
&[data-progress] {
|
|
22
|
+
background-color: var(--mantine-color-white);
|
|
23
|
+
border-color: var(--step-color);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[data-completed] {
|
|
27
|
+
background-color: var(--mantine-color-white);
|
|
28
|
+
border-color: var(--mantine-color-lime-6);
|
|
29
|
+
color: var(--mantine-color-lime-6);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.stepCompletedIcon {
|
|
34
|
+
color: var(--mantine-color-lime-6);
|
|
35
|
+
font-size: rem(16);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.stepDescription {
|
|
39
|
+
color: var(--mantine-color-gray-7);
|
|
40
|
+
|
|
41
|
+
&[data-size='xs'] {
|
|
42
|
+
font-size: var(--mantine-font-size-xs);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&[data-size='sm'] {
|
|
46
|
+
font-size: var(--mantine-font-size-sm);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&[data-size='md'] {
|
|
50
|
+
font-size: var(--mantine-font-size-md);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-size='lg'] {
|
|
54
|
+
font-size: var(--mantine-font-size-lg);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[data-size='xl'] {
|
|
58
|
+
font-size: var(--mantine-font-size-xl);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.separator {
|
|
63
|
+
height: rem(1);
|
|
64
|
+
background-color: var(--mantine-color-gray-3);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.verticalSeparator {
|
|
68
|
+
border-left: rem(1) solid var(--mantine-color-gray-3);
|
|
3
69
|
}
|