@coveord/plasma-mantine 55.3.2 → 55.3.4-next.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 +3 -3
- package/.turbo/turbo-test.log +45 -44
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/components/alert/Alert.d.ts +17 -0
- package/dist/cjs/components/alert/Alert.d.ts.map +1 -0
- package/dist/cjs/components/alert/Alert.js +53 -0
- package/dist/cjs/components/alert/Alert.js.map +1 -0
- package/dist/cjs/components/alert/index.d.ts +2 -0
- package/dist/cjs/components/alert/index.d.ts.map +1 -0
- package/dist/cjs/components/alert/index.js +8 -0
- package/dist/cjs/components/alert/index.js.map +1 -0
- package/dist/cjs/components/badge/Badge.d.ts +8 -0
- package/dist/cjs/components/badge/Badge.d.ts.map +1 -0
- package/dist/cjs/components/badge/Badge.js +60 -0
- package/dist/cjs/components/badge/Badge.js.map +1 -0
- package/dist/cjs/components/badge/index.d.ts +2 -0
- package/dist/cjs/components/badge/index.d.ts.map +1 -0
- package/dist/cjs/components/badge/index.js +8 -0
- package/dist/cjs/components/badge/index.js.map +1 -0
- package/dist/cjs/components/browser-preview/BrowserPreview.module.css +1 -1
- package/dist/cjs/components/button/Button.d.ts +5 -0
- package/dist/cjs/components/button/Button.d.ts.map +1 -1
- package/dist/cjs/components/button/Button.js +40 -3
- package/dist/cjs/components/button/Button.js.map +1 -1
- package/dist/cjs/components/header/Header.module.css +2 -7
- package/dist/cjs/components/index.d.ts +2 -0
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/components/index.js +2 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/inline-confirm/InlineConfirmTarget.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/Prompt.module.css +4 -15
- package/dist/cjs/components/prompt/PromptConfirmButton.js +4 -4
- package/dist/cjs/components/prompt/PromptConfirmButton.js.map +1 -1
- package/dist/cjs/components/sticky-footer/StickyFooter.module.css +3 -3
- package/dist/cjs/components/table/table-column/TableSelectableColumn.d.ts.map +1 -1
- package/dist/cjs/components/table/table-column/TableSelectableColumn.js +5 -1
- package/dist/cjs/components/table/table-column/TableSelectableColumn.js.map +1 -1
- package/dist/cjs/components/table/table-date-range-picker/TableDateRangePicker.d.ts.map +1 -1
- package/dist/cjs/components/table/table-date-range-picker/TableDateRangePicker.js +4 -0
- package/dist/cjs/components/table/table-date-range-picker/TableDateRangePicker.js.map +1 -1
- package/dist/cjs/styles/Alert.module.css +1 -26
- package/dist/cjs/styles/Badge.module.css +0 -2
- package/dist/cjs/styles/Checkbox.module.css +0 -12
- package/dist/cjs/styles/Combobox.module.css +3 -2
- package/dist/cjs/styles/InputWrapper.module.css +0 -9
- package/dist/cjs/styles/Modal.module.css +0 -62
- package/dist/cjs/styles/NavLink.module.css +0 -18
- package/dist/cjs/styles/Radio.module.css +0 -6
- package/dist/cjs/styles/ReadOnlyInput.module.css +3 -3
- package/dist/cjs/styles/SegmentedControl.module.css +0 -32
- package/dist/cjs/styles/Stepper.module.css +0 -66
- package/dist/cjs/styles/Tabs.module.css +0 -4
- package/dist/cjs/theme/PlasmaColors.d.ts +11 -7
- package/dist/cjs/theme/PlasmaColors.d.ts.map +1 -1
- package/dist/cjs/theme/PlasmaColors.js +144 -19
- 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 +43 -115
- package/dist/cjs/theme/Theme.js.map +1 -1
- package/dist/cjs/theme/plasmaCSSVariablesResolver.d.ts.map +1 -1
- package/dist/cjs/theme/plasmaCSSVariablesResolver.js +1 -5
- package/dist/cjs/theme/plasmaCSSVariablesResolver.js.map +1 -1
- package/dist/esm/components/alert/Alert.d.ts +17 -0
- package/dist/esm/components/alert/Alert.d.ts.map +1 -0
- package/dist/esm/components/alert/Alert.js +29 -0
- package/dist/esm/components/alert/Alert.js.map +1 -0
- package/dist/esm/components/alert/index.d.ts +2 -0
- package/dist/esm/components/alert/index.d.ts.map +1 -0
- package/dist/esm/components/alert/index.js +3 -0
- package/dist/esm/components/alert/index.js.map +1 -0
- package/dist/esm/components/badge/Badge.d.ts +8 -0
- package/dist/esm/components/badge/Badge.d.ts.map +1 -0
- package/dist/esm/components/badge/Badge.js +27 -0
- package/dist/esm/components/badge/Badge.js.map +1 -0
- package/dist/esm/components/badge/index.d.ts +2 -0
- package/dist/esm/components/badge/index.d.ts.map +1 -0
- package/dist/esm/components/badge/index.js +3 -0
- package/dist/esm/components/badge/index.js.map +1 -0
- package/dist/esm/components/browser-preview/BrowserPreview.module.css +1 -1
- package/dist/esm/components/button/Button.d.ts +5 -0
- package/dist/esm/components/button/Button.d.ts.map +1 -1
- package/dist/esm/components/button/Button.js +17 -0
- package/dist/esm/components/button/Button.js.map +1 -1
- package/dist/esm/components/header/Header.module.css +2 -7
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/components/inline-confirm/InlineConfirmTarget.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/Prompt.module.css +4 -15
- package/dist/esm/components/prompt/PromptConfirmButton.js +4 -4
- package/dist/esm/components/prompt/PromptConfirmButton.js.map +1 -1
- package/dist/esm/components/sticky-footer/StickyFooter.module.css +3 -3
- package/dist/esm/components/table/table-column/TableSelectableColumn.d.ts.map +1 -1
- package/dist/esm/components/table/table-column/TableSelectableColumn.js +5 -1
- package/dist/esm/components/table/table-column/TableSelectableColumn.js.map +1 -1
- package/dist/esm/components/table/table-date-range-picker/TableDateRangePicker.d.ts.map +1 -1
- package/dist/esm/components/table/table-date-range-picker/TableDateRangePicker.js +4 -0
- package/dist/esm/components/table/table-date-range-picker/TableDateRangePicker.js.map +1 -1
- package/dist/esm/styles/Alert.module.css +1 -26
- package/dist/esm/styles/Badge.module.css +0 -2
- package/dist/esm/styles/Checkbox.module.css +0 -12
- package/dist/esm/styles/Combobox.module.css +3 -2
- package/dist/esm/styles/InputWrapper.module.css +0 -9
- package/dist/esm/styles/Modal.module.css +0 -62
- package/dist/esm/styles/NavLink.module.css +0 -18
- package/dist/esm/styles/Radio.module.css +0 -6
- package/dist/esm/styles/ReadOnlyInput.module.css +3 -3
- package/dist/esm/styles/SegmentedControl.module.css +0 -32
- package/dist/esm/styles/Stepper.module.css +0 -66
- package/dist/esm/styles/Tabs.module.css +0 -4
- package/dist/esm/theme/PlasmaColors.d.ts +11 -7
- package/dist/esm/theme/PlasmaColors.d.ts.map +1 -1
- package/dist/esm/theme/PlasmaColors.js +144 -19
- 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 +44 -114
- package/dist/esm/theme/Theme.js.map +1 -1
- package/dist/esm/theme/plasmaCSSVariablesResolver.d.ts.map +1 -1
- package/dist/esm/theme/plasmaCSSVariablesResolver.js +1 -5
- package/dist/esm/theme/plasmaCSSVariablesResolver.js.map +1 -1
- package/package.json +19 -19
- package/src/components/alert/Alert.tsx +7 -0
- package/src/components/alert/index.ts +1 -0
- package/src/components/badge/Badge.tsx +10 -0
- package/src/components/badge/index.ts +1 -0
- package/src/components/browser-preview/BrowserPreview.module.css +1 -1
- package/src/components/button/Button.tsx +6 -0
- package/src/components/header/Header.module.css +2 -7
- package/src/components/index.ts +2 -0
- package/src/components/prompt/Prompt.module.css +4 -15
- 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/layouts/__tests__/RowLayout.spec.tsx +26 -0
- package/src/components/table/table-column/TableSelectableColumn.tsx +4 -0
- package/src/components/table/table-date-range-picker/TableDateRangePicker.tsx +2 -0
- package/src/styles/Alert.module.css +1 -26
- package/src/styles/Badge.module.css +0 -2
- package/src/styles/Checkbox.module.css +0 -12
- package/src/styles/Combobox.module.css +3 -2
- package/src/styles/InputWrapper.module.css +0 -9
- package/src/styles/Modal.module.css +0 -62
- package/src/styles/NavLink.module.css +0 -18
- package/src/styles/Radio.module.css +0 -6
- package/src/styles/ReadOnlyInput.module.css +3 -3
- package/src/styles/SegmentedControl.module.css +0 -32
- package/src/styles/Stepper.module.css +0 -66
- package/src/styles/Tabs.module.css +0 -4
- package/src/theme/PlasmaColors.ts +144 -19
- package/src/theme/Theme.tsx +37 -86
- package/src/theme/__tests__/plasmaCSSVariablesResolver.spec.ts +3 -46
- package/src/theme/plasmaCSSVariablesResolver.ts +2 -5
- package/dist/cjs/styles/ActionIcon.module.css +0 -6
- package/dist/cjs/styles/Anchor.module.css +0 -6
- package/dist/cjs/styles/AppShellNavBar.module.css +0 -3
- package/dist/cjs/styles/DatePicker.module.css +0 -3
- package/dist/cjs/styles/Input.module.css +0 -3
- package/dist/cjs/styles/Notification.module.css +0 -20
- package/dist/cjs/styles/Pagination.module.css +0 -30
- package/dist/cjs/styles/Select.module.css +0 -39
- package/dist/cjs/vars/Notification.vars.d.ts +0 -3
- package/dist/cjs/vars/Notification.vars.d.ts.map +0 -1
- package/dist/cjs/vars/Notification.vars.js +0 -44
- package/dist/cjs/vars/Notification.vars.js.map +0 -1
- package/dist/cjs/vars/Text.vars.d.ts +0 -3
- package/dist/cjs/vars/Text.vars.d.ts.map +0 -1
- package/dist/cjs/vars/Text.vars.js +0 -25
- package/dist/cjs/vars/Text.vars.js.map +0 -1
- package/dist/esm/styles/ActionIcon.module.css +0 -6
- package/dist/esm/styles/Anchor.module.css +0 -6
- package/dist/esm/styles/AppShellNavBar.module.css +0 -3
- package/dist/esm/styles/DatePicker.module.css +0 -3
- package/dist/esm/styles/Input.module.css +0 -3
- package/dist/esm/styles/Notification.module.css +0 -20
- package/dist/esm/styles/Pagination.module.css +0 -30
- package/dist/esm/styles/Select.module.css +0 -39
- package/dist/esm/vars/Notification.vars.d.ts +0 -3
- package/dist/esm/vars/Notification.vars.d.ts.map +0 -1
- package/dist/esm/vars/Notification.vars.js +0 -34
- package/dist/esm/vars/Notification.vars.js.map +0 -1
- package/dist/esm/vars/Text.vars.d.ts +0 -3
- package/dist/esm/vars/Text.vars.d.ts.map +0 -1
- package/dist/esm/vars/Text.vars.js +0 -15
- package/dist/esm/vars/Text.vars.js.map +0 -1
- package/src/styles/ActionIcon.module.css +0 -6
- package/src/styles/Anchor.module.css +0 -6
- package/src/styles/AppShellNavBar.module.css +0 -3
- package/src/styles/DatePicker.module.css +0 -3
- package/src/styles/Input.module.css +0 -3
- package/src/styles/Notification.module.css +0 -20
- package/src/styles/Pagination.module.css +0 -30
- package/src/styles/Select.module.css +0 -39
- package/src/vars/Notification.vars.ts +0 -14
- package/src/vars/Text.vars.ts +0 -8
|
@@ -1,69 +1,3 @@
|
|
|
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
|
-
|
|
15
1
|
.stepIcon {
|
|
16
2
|
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);
|
|
69
3
|
}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { MantineColorsTuple } from '@mantine/core';
|
|
2
2
|
export declare const PlasmaColors: {
|
|
3
|
+
blue: MantineColorsTuple;
|
|
4
|
+
red: MantineColorsTuple;
|
|
3
5
|
gray: MantineColorsTuple;
|
|
4
|
-
|
|
6
|
+
dark: MantineColorsTuple;
|
|
7
|
+
teal: MantineColorsTuple;
|
|
8
|
+
yellow: MantineColorsTuple;
|
|
9
|
+
violet: MantineColorsTuple;
|
|
10
|
+
grape: MantineColorsTuple;
|
|
11
|
+
'cyan (Not used)': MantineColorsTuple;
|
|
12
|
+
orange: MantineColorsTuple;
|
|
13
|
+
indigo: MantineColorsTuple;
|
|
14
|
+
green: MantineColorsTuple;
|
|
5
15
|
navy: MantineColorsTuple;
|
|
6
16
|
info: MantineColorsTuple;
|
|
7
|
-
blue: MantineColorsTuple;
|
|
8
|
-
red: MantineColorsTuple;
|
|
9
17
|
critical: MantineColorsTuple;
|
|
10
|
-
teal: MantineColorsTuple;
|
|
11
18
|
new: MantineColorsTuple;
|
|
12
|
-
yellow: MantineColorsTuple;
|
|
13
19
|
warning: MantineColorsTuple;
|
|
14
|
-
green: MantineColorsTuple;
|
|
15
|
-
indigo: MantineColorsTuple;
|
|
16
20
|
lime: MantineColorsTuple;
|
|
17
21
|
success: MantineColorsTuple;
|
|
18
22
|
purple: MantineColorsTuple;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlasmaColors.d.ts","sourceRoot":"","sources":["../../../src/theme/PlasmaColors.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAsBjD,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"PlasmaColors.d.ts","sourceRoot":"","sources":["../../../src/theme/PlasmaColors.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAsBjD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CA4JxB,CAAC"}
|
|
@@ -18,32 +18,157 @@ const lime = [
|
|
|
18
18
|
];
|
|
19
19
|
export const PlasmaColors = {
|
|
20
20
|
// Primary
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
blue: toMantineColor({
|
|
22
|
+
'blue-0': '#f8f9ff',
|
|
23
|
+
'blue-1': '#eef2ff',
|
|
24
|
+
'blue-2': '#d5defe',
|
|
25
|
+
'blue-3': '#a6bcfe',
|
|
26
|
+
'blue-4': '#6e99fd',
|
|
27
|
+
'blue-5': '#1169da',
|
|
28
|
+
'blue-6': '#063c82',
|
|
29
|
+
'blue-7': '#03275a',
|
|
30
|
+
'blue-8': '#01193f',
|
|
31
|
+
'blue-9': '#010e29'
|
|
32
|
+
}),
|
|
33
|
+
red: toMantineColor({
|
|
34
|
+
'red-0': '#fff8f8',
|
|
35
|
+
'red-1': '#feefee',
|
|
36
|
+
'red-2': '#fdd5d5',
|
|
37
|
+
'red-3': '#fca7a5',
|
|
38
|
+
'red-4': '#fb6f6c',
|
|
39
|
+
'red-5': '#d2271b',
|
|
40
|
+
'red-6': '#7e0f17',
|
|
41
|
+
'red-7': '#58050f',
|
|
42
|
+
'red-8': '#3e020a',
|
|
43
|
+
'red-9': '#280104'
|
|
44
|
+
}),
|
|
45
|
+
gray: toMantineColor({
|
|
46
|
+
'gray-0': '#f9f9fa',
|
|
47
|
+
'gray-1': '#f1f2f4',
|
|
48
|
+
'gray-2': '#dddfe3',
|
|
49
|
+
'gray-3': '#b9bdc7',
|
|
50
|
+
'gray-4': '#959cab',
|
|
51
|
+
'gray-5': '#676d7a',
|
|
52
|
+
'gray-6': '#3b3e46',
|
|
53
|
+
'gray-7': '#26292f',
|
|
54
|
+
'gray-8': '#191b1f',
|
|
55
|
+
'gray-9': '#0e0f12'
|
|
56
|
+
}),
|
|
57
|
+
dark: toMantineColor({
|
|
58
|
+
'dark-0': '#c9c9c9',
|
|
59
|
+
'dark-1': '#b8b8b8',
|
|
60
|
+
'dark-2': '#828282',
|
|
61
|
+
'dark-3': '#696969',
|
|
62
|
+
'dark-4': '#424242',
|
|
63
|
+
'dark-5': '#3b3b3b',
|
|
64
|
+
'dark-6': '#2e2e2e',
|
|
65
|
+
'dark-7': '#242424',
|
|
66
|
+
'dark-8': '#1f1f1f',
|
|
67
|
+
'dark-9': '#141414'
|
|
68
|
+
}),
|
|
69
|
+
teal: toMantineColor({
|
|
70
|
+
'teal-0': '#e5fff9',
|
|
71
|
+
'teal-1': '#bffff0',
|
|
72
|
+
'teal-2': '#1efadc',
|
|
73
|
+
'teal-3': '#18d4bb',
|
|
74
|
+
'teal-4': '#0faf99',
|
|
75
|
+
'teal-5': '#077b6b',
|
|
76
|
+
'teal-6': '#02473e',
|
|
77
|
+
'teal-7': '#012f2a',
|
|
78
|
+
'teal-8': '#011f1b',
|
|
79
|
+
'teal-9': '#001210'
|
|
80
|
+
}),
|
|
81
|
+
yellow: toMantineColor({
|
|
82
|
+
'yellow-0': '#fff9e5',
|
|
83
|
+
'yellow-1': '#fff2c0',
|
|
84
|
+
'yellow-2': '#fbe000',
|
|
85
|
+
'yellow-3': '#e5b800',
|
|
86
|
+
'yellow-4': '#c89300',
|
|
87
|
+
'yellow-5': '#936400',
|
|
88
|
+
'yellow-6': '#593700',
|
|
89
|
+
'yellow-7': '#3c2301',
|
|
90
|
+
'yellow-8': '#291700',
|
|
91
|
+
'yellow-9': '#180d00'
|
|
92
|
+
}),
|
|
93
|
+
violet: toMantineColor({
|
|
94
|
+
'violet-0': '#faf8ff',
|
|
95
|
+
'violet-1': '#f4f0ff',
|
|
96
|
+
'violet-2': '#e3daff',
|
|
97
|
+
'violet-3': '#c7b2ff',
|
|
98
|
+
'violet-4': '#ac86ff',
|
|
99
|
+
'violet-5': '#8a36ff',
|
|
100
|
+
'violet-6': '#5500aa',
|
|
101
|
+
'violet-7': '#390076',
|
|
102
|
+
'violet-8': '#270054',
|
|
103
|
+
'violet-9': '#180037'
|
|
104
|
+
}),
|
|
105
|
+
grape: toMantineColor({
|
|
106
|
+
'grape-0': '#fbf8fd',
|
|
107
|
+
'grape-1': '#f6f0fb',
|
|
108
|
+
'grape-2': '#e7d6f5',
|
|
109
|
+
'grape-3': '#d2b0ed',
|
|
110
|
+
'grape-4': '#bc85e3',
|
|
111
|
+
'grape-5': '#9946c7',
|
|
112
|
+
'grape-6': '#592676',
|
|
113
|
+
'grape-7': '#3c1851',
|
|
114
|
+
'grape-8': '#290e38',
|
|
115
|
+
'grape-9': '#190624'
|
|
116
|
+
}),
|
|
117
|
+
'cyan (Not used)': toMantineColor({
|
|
118
|
+
'cyan-0': '#e3fafc',
|
|
119
|
+
'cyan-1': '#c5f6fa',
|
|
120
|
+
'cyan-2': '#99e9f2',
|
|
121
|
+
'cyan-3': '#66d9e8',
|
|
122
|
+
'cyan-4': '#3bc9db',
|
|
123
|
+
'cyan-5': '#22b8cf',
|
|
124
|
+
'cyan-6': '#15aabf',
|
|
125
|
+
'cyan-7': '#1098ad',
|
|
126
|
+
'cyan-8': '#0c8599',
|
|
127
|
+
'cyan-9': '#0b7285'
|
|
128
|
+
}),
|
|
129
|
+
orange: toMantineColor({
|
|
130
|
+
'orange-0': '#fff8f5',
|
|
131
|
+
'orange-1': '#ffefe8',
|
|
132
|
+
'orange-2': '#ffeedd',
|
|
133
|
+
'orange-3': '#fea980',
|
|
134
|
+
'orange-4': '#f27a38',
|
|
135
|
+
'orange-5': '#b84b11',
|
|
136
|
+
'orange-6': '#6c2a00',
|
|
137
|
+
'orange-7': '#491b02',
|
|
138
|
+
'orange-8': '#301301',
|
|
139
|
+
'orange-9': '#1c0a00'
|
|
140
|
+
}),
|
|
141
|
+
indigo: toMantineColor({
|
|
142
|
+
'indigo-0': '#f9f9fb',
|
|
143
|
+
'indigo-1': '#f1f1f9',
|
|
144
|
+
'indigo-2': '#dbdbf2',
|
|
145
|
+
'indigo-3': '#babadf',
|
|
146
|
+
'indigo-4': '#9797cb',
|
|
147
|
+
'indigo-5': '#6767a4',
|
|
148
|
+
'indigo-6': '#393968',
|
|
149
|
+
'indigo-7': '#252547',
|
|
150
|
+
'indigo-8': '#181831',
|
|
151
|
+
'indigo-9': '#0d0d1f'
|
|
152
|
+
}),
|
|
153
|
+
green: toMantineColor({
|
|
154
|
+
'green-0': '#e9ffed',
|
|
155
|
+
'green-1': '#cdfed5',
|
|
156
|
+
'green-2': '#73fa84',
|
|
157
|
+
'green-3': '#32d961',
|
|
158
|
+
'green-4': '#15b43c',
|
|
159
|
+
'green-5': '#0b7e2f',
|
|
160
|
+
'green-6': '#044918',
|
|
161
|
+
'green-7': '#02300f',
|
|
162
|
+
'green-8': '#012008',
|
|
163
|
+
'green-9': '#001304'
|
|
164
|
+
}),
|
|
34
165
|
navy,
|
|
35
166
|
info: navy,
|
|
36
167
|
// Accent
|
|
37
|
-
blue: toMantineColor(color.accent.blue),
|
|
38
|
-
red,
|
|
39
168
|
critical: red,
|
|
40
|
-
teal,
|
|
41
169
|
new: teal,
|
|
42
|
-
yellow,
|
|
43
170
|
warning: yellow,
|
|
44
171
|
// Secondary
|
|
45
|
-
green: toMantineColor(color.secondary.green),
|
|
46
|
-
indigo: toMantineColor(color.secondary.indigo),
|
|
47
172
|
lime,
|
|
48
173
|
success: lime,
|
|
49
174
|
purple: toMantineColor(color.secondary.purple)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/theme/PlasmaColors.ts"],"sourcesContent":["import {color} from '@coveord/plasma-tokens';\nimport {MantineColorsTuple} from '@mantine/core';\n\nconst toMantineColor = (plasmaColor: Record<string, string>): MantineColorsTuple =>\n Object.values(plasmaColor) as unknown as MantineColorsTuple;\n\nconst navy = toMantineColor(color.primary.navy);\nconst red = toMantineColor(color.accent.red);\nconst yellow = toMantineColor(color.accent.yellow);\nconst teal = toMantineColor(color.accent.teal);\nconst lime = [\n color.secondary.lime[0],\n color.secondary.lime[0],\n color.secondary.lime[0],\n color.secondary.lime[0],\n color.secondary.lime[6],\n color.secondary.lime[6],\n color.secondary.lime[6],\n color.secondary.lime[9],\n color.secondary.lime[9],\n color.secondary.lime[9],\n] as MantineColorsTuple;\n\nexport const PlasmaColors = {\n // Primary\n
|
|
1
|
+
{"version":3,"sources":["../../../src/theme/PlasmaColors.ts"],"sourcesContent":["import {color} from '@coveord/plasma-tokens';\nimport {MantineColorsTuple} from '@mantine/core';\n\nconst toMantineColor = (plasmaColor: Record<string, string>): MantineColorsTuple =>\n Object.values(plasmaColor) as unknown as MantineColorsTuple;\n\nconst navy = toMantineColor(color.primary.navy);\nconst red = toMantineColor(color.accent.red);\nconst yellow = toMantineColor(color.accent.yellow);\nconst teal = toMantineColor(color.accent.teal);\nconst lime = [\n color.secondary.lime[0],\n color.secondary.lime[0],\n color.secondary.lime[0],\n color.secondary.lime[0],\n color.secondary.lime[6],\n color.secondary.lime[6],\n color.secondary.lime[6],\n color.secondary.lime[9],\n color.secondary.lime[9],\n color.secondary.lime[9],\n] as MantineColorsTuple;\n\nexport const PlasmaColors = {\n // Primary\n blue: toMantineColor({\n 'blue-0': '#f8f9ff',\n 'blue-1': '#eef2ff',\n 'blue-2': '#d5defe',\n 'blue-3': '#a6bcfe',\n 'blue-4': '#6e99fd',\n 'blue-5': '#1169da',\n 'blue-6': '#063c82',\n 'blue-7': '#03275a',\n 'blue-8': '#01193f',\n 'blue-9': '#010e29',\n }),\n red: toMantineColor({\n 'red-0': '#fff8f8',\n 'red-1': '#feefee',\n 'red-2': '#fdd5d5',\n 'red-3': '#fca7a5',\n 'red-4': '#fb6f6c',\n 'red-5': '#d2271b',\n 'red-6': '#7e0f17',\n 'red-7': '#58050f',\n 'red-8': '#3e020a',\n 'red-9': '#280104',\n }),\n gray: toMantineColor({\n 'gray-0': '#f9f9fa',\n 'gray-1': '#f1f2f4',\n 'gray-2': '#dddfe3',\n 'gray-3': '#b9bdc7',\n 'gray-4': '#959cab',\n 'gray-5': '#676d7a',\n 'gray-6': '#3b3e46',\n 'gray-7': '#26292f',\n 'gray-8': '#191b1f',\n 'gray-9': '#0e0f12',\n }),\n dark: toMantineColor({\n 'dark-0': '#c9c9c9',\n 'dark-1': '#b8b8b8',\n 'dark-2': '#828282',\n 'dark-3': '#696969',\n 'dark-4': '#424242',\n 'dark-5': '#3b3b3b',\n 'dark-6': '#2e2e2e',\n 'dark-7': '#242424',\n 'dark-8': '#1f1f1f',\n 'dark-9': '#141414',\n }),\n teal: toMantineColor({\n 'teal-0': '#e5fff9',\n 'teal-1': '#bffff0',\n 'teal-2': '#1efadc',\n 'teal-3': '#18d4bb',\n 'teal-4': '#0faf99',\n 'teal-5': '#077b6b',\n 'teal-6': '#02473e',\n 'teal-7': '#012f2a',\n 'teal-8': '#011f1b',\n 'teal-9': '#001210',\n }),\n yellow: toMantineColor({\n 'yellow-0': '#fff9e5',\n 'yellow-1': '#fff2c0',\n 'yellow-2': '#fbe000',\n 'yellow-3': '#e5b800',\n 'yellow-4': '#c89300',\n 'yellow-5': '#936400',\n 'yellow-6': '#593700',\n 'yellow-7': '#3c2301',\n 'yellow-8': '#291700',\n 'yellow-9': '#180d00',\n }),\n violet: toMantineColor({\n 'violet-0': '#faf8ff',\n 'violet-1': '#f4f0ff',\n 'violet-2': '#e3daff',\n 'violet-3': '#c7b2ff',\n 'violet-4': '#ac86ff',\n 'violet-5': '#8a36ff',\n 'violet-6': '#5500aa',\n 'violet-7': '#390076',\n 'violet-8': '#270054',\n 'violet-9': '#180037',\n }),\n grape: toMantineColor({\n 'grape-0': '#fbf8fd',\n 'grape-1': '#f6f0fb',\n 'grape-2': '#e7d6f5',\n 'grape-3': '#d2b0ed',\n 'grape-4': '#bc85e3',\n 'grape-5': '#9946c7',\n 'grape-6': '#592676',\n 'grape-7': '#3c1851',\n 'grape-8': '#290e38',\n 'grape-9': '#190624',\n }),\n 'cyan (Not used)': toMantineColor({\n 'cyan-0': '#e3fafc',\n 'cyan-1': '#c5f6fa',\n 'cyan-2': '#99e9f2',\n 'cyan-3': '#66d9e8',\n 'cyan-4': '#3bc9db',\n 'cyan-5': '#22b8cf',\n 'cyan-6': '#15aabf',\n 'cyan-7': '#1098ad',\n 'cyan-8': '#0c8599',\n 'cyan-9': '#0b7285',\n }),\n orange: toMantineColor({\n 'orange-0': '#fff8f5',\n 'orange-1': '#ffefe8',\n 'orange-2': '#ffeedd',\n 'orange-3': '#fea980',\n 'orange-4': '#f27a38',\n 'orange-5': '#b84b11',\n 'orange-6': '#6c2a00',\n 'orange-7': '#491b02',\n 'orange-8': '#301301',\n 'orange-9': '#1c0a00',\n }),\n indigo: toMantineColor({\n 'indigo-0': '#f9f9fb',\n 'indigo-1': '#f1f1f9',\n 'indigo-2': '#dbdbf2',\n 'indigo-3': '#babadf',\n 'indigo-4': '#9797cb',\n 'indigo-5': '#6767a4',\n 'indigo-6': '#393968',\n 'indigo-7': '#252547',\n 'indigo-8': '#181831',\n 'indigo-9': '#0d0d1f',\n }),\n green: toMantineColor({\n 'green-0': '#e9ffed',\n 'green-1': '#cdfed5',\n 'green-2': '#73fa84',\n 'green-3': '#32d961',\n 'green-4': '#15b43c',\n 'green-5': '#0b7e2f',\n 'green-6': '#044918',\n 'green-7': '#02300f',\n 'green-8': '#012008',\n 'green-9': '#001304',\n }),\n navy,\n info: navy,\n // Accent\n critical: red,\n new: teal,\n warning: yellow,\n // Secondary\n lime,\n success: lime,\n purple: toMantineColor(color.secondary.purple),\n};\n"],"names":["color","toMantineColor","plasmaColor","Object","values","navy","primary","red","accent","yellow","teal","lime","secondary","PlasmaColors","blue","gray","dark","violet","grape","orange","indigo","green","info","critical","new","warning","success","purple"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.tsx"],"names":[],"mappings":"AAUA,OAAO,
|
|
1
|
+
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.tsx"],"names":[],"mappings":"AAUA,OAAO,EAeH,oBAAoB,EAiBvB,MAAM,eAAe,CAAC;AAsBvB,eAAO,MAAM,WAAW,EAAE,oBAuQxB,CAAC"}
|
package/dist/esm/theme/Theme.js
CHANGED
|
@@ -1,43 +1,32 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ArrowHeadLeftSize16Px, ArrowHeadRightSize16Px, CheckSize16Px, CrossSize16Px, FilterSize16Px, InfoSize16Px, InfoSize24Px } from '@coveord/plasma-react-icons';
|
|
3
3
|
import { color } from '@coveord/plasma-tokens';
|
|
4
|
-
import {
|
|
5
|
-
import { DatePicker } from '@mantine/dates';
|
|
6
|
-
import ActionIconClasses from '../styles/ActionIcon.module.css';
|
|
4
|
+
import { Alert, Badge, Button, Checkbox, CloseButton, ColorSwatch, Combobox, ComboboxSearch, createTheme, deepMerge, Input, InputWrapper, List, Loader, Modal, MultiSelect, NavLink, Notification, Pagination, Popover, Radio, ScrollArea, SegmentedControl, Select, Skeleton, Stepper, Switch, Tabs, Text, Tooltip } from '@mantine/core';
|
|
7
5
|
import AlertClasses from '../styles/Alert.module.css';
|
|
8
|
-
import AnchorClasses from '../styles/Anchor.module.css';
|
|
9
|
-
import AppShellNavBarClasses from '../styles/AppShellNavBar.module.css';
|
|
10
6
|
import BadgeClasses from '../styles/Badge.module.css';
|
|
11
7
|
import ButtonClasses from '../styles/Button.module.css';
|
|
12
8
|
import CheckboxClasses from '../styles/Checkbox.module.css';
|
|
13
9
|
import ComboboxClasses from '../styles/Combobox.module.css';
|
|
14
|
-
import DatePickerClasses from '../styles/DatePicker.module.css';
|
|
15
|
-
import InputClasses from '../styles/Input.module.css';
|
|
16
10
|
import InputWrapperClasses from '../styles/InputWrapper.module.css';
|
|
17
11
|
import ListClasses from '../styles/List.module.css';
|
|
18
12
|
import ModalClasses from '../styles/Modal.module.css';
|
|
19
13
|
import NavLinkClasses from '../styles/NavLink.module.css';
|
|
20
|
-
import NotificationClasses from '../styles/Notification.module.css';
|
|
21
|
-
import PaginationClasses from '../styles/Pagination.module.css';
|
|
22
14
|
import RadioClasses from '../styles/Radio.module.css';
|
|
23
15
|
import ReadOnlyInputClasses from '../styles/ReadOnlyInput.module.css';
|
|
24
16
|
import ReadOnlyStateClasses from '../styles/ReadOnlyState.module.css';
|
|
25
17
|
import ScrollAreaClasses from '../styles/ScrollArea.module.css';
|
|
26
18
|
import SegmentedControlClasses from '../styles/SegmentedControl.module.css';
|
|
27
|
-
import SelectClasses from '../styles/Select.module.css';
|
|
28
19
|
import SkeletonClasses from '../styles/Skeleton.module.css';
|
|
29
20
|
import StepperClasses from '../styles/Stepper.module.css';
|
|
30
21
|
import TabsClasses from '../styles/Tabs.module.css';
|
|
31
22
|
import TextClasses from '../styles/Text.module.css';
|
|
32
23
|
import TooltipClasses from '../styles/Tooltip.module.css';
|
|
33
|
-
import { NotificationVars } from '../vars/Notification.vars';
|
|
34
|
-
import { TextVars } from '../vars/Text.vars';
|
|
35
24
|
import { PlasmaColors } from './PlasmaColors';
|
|
36
25
|
export const plasmaTheme = createTheme({
|
|
37
26
|
// These are overrides over https://github.com/mantinedev/mantine/blob/master/packages/%40mantine/core/src/core/MantineProvider/default-theme.ts
|
|
38
27
|
fontFamily: 'canada-type-gibson, sans-serif',
|
|
39
28
|
black: color.primary.gray[9],
|
|
40
|
-
defaultRadius:
|
|
29
|
+
defaultRadius: 'md',
|
|
41
30
|
lineHeights: {
|
|
42
31
|
md: '1.5'
|
|
43
32
|
},
|
|
@@ -49,43 +38,50 @@ export const plasmaTheme = createTheme({
|
|
|
49
38
|
lg: '32px',
|
|
50
39
|
xl: '40px'
|
|
51
40
|
},
|
|
52
|
-
primaryColor: '
|
|
41
|
+
primaryColor: 'blue',
|
|
53
42
|
headings: {
|
|
54
43
|
fontFamily: 'canada-type-gibson, sans-serif',
|
|
55
44
|
fontWeight: '500',
|
|
56
45
|
sizes: {
|
|
57
46
|
h1: {
|
|
58
|
-
fontSize: '
|
|
59
|
-
lineHeight: '1.
|
|
60
|
-
fontWeight: '
|
|
47
|
+
fontSize: '40px',
|
|
48
|
+
lineHeight: '1.2',
|
|
49
|
+
fontWeight: '500'
|
|
61
50
|
},
|
|
62
51
|
h2: {
|
|
63
52
|
fontSize: '32px',
|
|
64
|
-
lineHeight: '1.
|
|
53
|
+
lineHeight: '1.25',
|
|
65
54
|
fontWeight: '500'
|
|
66
55
|
},
|
|
67
56
|
h3: {
|
|
68
57
|
fontSize: '24px',
|
|
69
|
-
lineHeight: '1.
|
|
58
|
+
lineHeight: '1.33',
|
|
70
59
|
fontWeight: '500'
|
|
71
60
|
},
|
|
72
61
|
h4: {
|
|
73
62
|
fontSize: '18px',
|
|
74
|
-
lineHeight: '1.
|
|
63
|
+
lineHeight: '1.2',
|
|
75
64
|
fontWeight: '300'
|
|
76
65
|
},
|
|
77
66
|
h5: {
|
|
78
|
-
fontSize: '
|
|
79
|
-
lineHeight: '1.
|
|
67
|
+
fontSize: '16px',
|
|
68
|
+
lineHeight: '1.25',
|
|
80
69
|
fontWeight: '500'
|
|
81
70
|
},
|
|
82
71
|
h6: {
|
|
83
72
|
fontSize: '12px',
|
|
84
|
-
lineHeight: '1.
|
|
73
|
+
lineHeight: '1.33',
|
|
85
74
|
fontWeight: '500'
|
|
86
75
|
}
|
|
87
76
|
}
|
|
88
77
|
},
|
|
78
|
+
fontSizes: {
|
|
79
|
+
xs: '12px',
|
|
80
|
+
sm: '14px',
|
|
81
|
+
md: '16px',
|
|
82
|
+
lg: '18px',
|
|
83
|
+
xl: '20px'
|
|
84
|
+
},
|
|
89
85
|
shadows: {
|
|
90
86
|
xs: '0px 1px 0px rgba(4, 8, 31, 0.08)',
|
|
91
87
|
sm: '0px 2px 4px rgba(4, 8, 31, 0.12)',
|
|
@@ -93,44 +89,29 @@ export const plasmaTheme = createTheme({
|
|
|
93
89
|
lg: '0px 8px 16px rgba(7, 12, 41, 0.06)',
|
|
94
90
|
xl: '0px 16px 24px rgba(4, 8, 31, 0.06)'
|
|
95
91
|
},
|
|
92
|
+
primaryShade: 5,
|
|
96
93
|
colors: PlasmaColors,
|
|
97
94
|
components: {
|
|
98
|
-
ActionIcon: ActionIcon.extend({
|
|
99
|
-
classNames: {
|
|
100
|
-
root: ActionIconClasses.root
|
|
101
|
-
}
|
|
102
|
-
}),
|
|
103
95
|
Alert: Alert.extend({
|
|
104
96
|
defaultProps: {
|
|
105
97
|
icon: /*#__PURE__*/ _jsx(InfoSize16Px, {
|
|
106
98
|
height: 16
|
|
107
99
|
}),
|
|
108
|
-
|
|
100
|
+
radius: 'lg'
|
|
109
101
|
},
|
|
110
102
|
classNames: AlertClasses
|
|
111
103
|
}),
|
|
112
|
-
Anchor: Anchor.extend({
|
|
113
|
-
defaultProps: {
|
|
114
|
-
color: 'action.6'
|
|
115
|
-
},
|
|
116
|
-
classNames: {
|
|
117
|
-
root: AnchorClasses.root
|
|
118
|
-
}
|
|
119
|
-
}),
|
|
120
|
-
AppShellNavbar: AppShellNavbar.extend({
|
|
121
|
-
classNames: {
|
|
122
|
-
navbar: AppShellNavBarClasses.navbar
|
|
123
|
-
}
|
|
124
|
-
}),
|
|
125
104
|
Badge: Badge.extend({
|
|
126
|
-
classNames:
|
|
127
|
-
root: BadgeClasses.root
|
|
128
|
-
},
|
|
105
|
+
classNames: BadgeClasses,
|
|
129
106
|
defaultProps: {
|
|
130
107
|
variant: 'light'
|
|
131
108
|
}
|
|
132
109
|
}),
|
|
133
110
|
Button: Button.extend({
|
|
111
|
+
defaultProps: {
|
|
112
|
+
radius: 'lg',
|
|
113
|
+
size: 'sm'
|
|
114
|
+
},
|
|
134
115
|
classNames: ButtonClasses
|
|
135
116
|
}),
|
|
136
117
|
Checkbox: Checkbox.extend({
|
|
@@ -172,10 +153,7 @@ export const plasmaTheme = createTheme({
|
|
|
172
153
|
}
|
|
173
154
|
}),
|
|
174
155
|
Combobox: Combobox.extend({
|
|
175
|
-
classNames:
|
|
176
|
-
option: SelectClasses.option,
|
|
177
|
-
search: ComboboxClasses.search
|
|
178
|
-
}
|
|
156
|
+
classNames: ComboboxClasses
|
|
179
157
|
}),
|
|
180
158
|
ComboboxSearch: ComboboxSearch.extend({
|
|
181
159
|
defaultProps: {
|
|
@@ -186,28 +164,24 @@ export const plasmaTheme = createTheme({
|
|
|
186
164
|
})
|
|
187
165
|
}
|
|
188
166
|
}),
|
|
189
|
-
DatePicker: DatePicker.extend({
|
|
190
|
-
classNames: {
|
|
191
|
-
monthCell: DatePickerClasses.monthCell
|
|
192
|
-
}
|
|
193
|
-
}),
|
|
194
|
-
Divider: Divider.extend({
|
|
195
|
-
defaultProps: {
|
|
196
|
-
color: 'gray.3'
|
|
197
|
-
}
|
|
198
|
-
}),
|
|
199
167
|
Input: Input.extend({
|
|
168
|
+
defaultProps: {
|
|
169
|
+
size: 'sm'
|
|
170
|
+
},
|
|
200
171
|
classNames: (_theme, props)=>{
|
|
201
172
|
const anyProps = props;
|
|
202
173
|
if (anyProps.readOnly && !props.disabled && ![
|
|
203
174
|
'Select'
|
|
204
175
|
].includes(anyProps.__staticSelector)) {
|
|
205
|
-
return
|
|
176
|
+
return ReadOnlyInputClasses;
|
|
206
177
|
}
|
|
207
|
-
return
|
|
178
|
+
return {};
|
|
208
179
|
}
|
|
209
180
|
}),
|
|
210
181
|
InputWrapper: InputWrapper.extend({
|
|
182
|
+
defaultProps: {
|
|
183
|
+
size: 'sm'
|
|
184
|
+
},
|
|
211
185
|
classNames: InputWrapperClasses,
|
|
212
186
|
vars: (theme, props)=>{
|
|
213
187
|
const anyProps = props;
|
|
@@ -237,14 +211,7 @@ export const plasmaTheme = createTheme({
|
|
|
237
211
|
}
|
|
238
212
|
}),
|
|
239
213
|
List: List.extend({
|
|
240
|
-
classNames:
|
|
241
|
-
root: ListClasses.root
|
|
242
|
-
}
|
|
243
|
-
}),
|
|
244
|
-
MenuItem: MenuItem.extend({
|
|
245
|
-
defaultProps: {
|
|
246
|
-
fw: 300
|
|
247
|
-
}
|
|
214
|
+
classNames: ListClasses
|
|
248
215
|
}),
|
|
249
216
|
Modal: Modal.extend({
|
|
250
217
|
classNames: ModalClasses
|
|
@@ -272,23 +239,10 @@ export const plasmaTheme = createTheme({
|
|
|
272
239
|
defaultProps: {
|
|
273
240
|
icon: /*#__PURE__*/ _jsx(InfoSize24Px, {
|
|
274
241
|
height: 24
|
|
275
|
-
})
|
|
276
|
-
|
|
277
|
-
},
|
|
278
|
-
classNames: {
|
|
279
|
-
root: NotificationClasses.root,
|
|
280
|
-
icon: NotificationClasses.icon,
|
|
281
|
-
closeButton: NotificationClasses.closeButton
|
|
282
|
-
},
|
|
283
|
-
vars: NotificationVars
|
|
242
|
+
})
|
|
243
|
+
}
|
|
284
244
|
}),
|
|
285
245
|
Pagination: Pagination.extend({
|
|
286
|
-
classNames: PaginationClasses,
|
|
287
|
-
vars: ()=>({
|
|
288
|
-
root: {
|
|
289
|
-
'--pagination-control-fz': 'var(--mantine-font-size-sm)'
|
|
290
|
-
}
|
|
291
|
-
}),
|
|
292
246
|
defaultProps: {
|
|
293
247
|
nextIcon: ArrowHeadRightSize16Px,
|
|
294
248
|
previousIcon: ArrowHeadLeftSize16Px
|
|
@@ -322,41 +276,25 @@ export const plasmaTheme = createTheme({
|
|
|
322
276
|
}
|
|
323
277
|
}),
|
|
324
278
|
ScrollArea: ScrollArea.extend({
|
|
325
|
-
classNames:
|
|
326
|
-
viewport: ScrollAreaClasses.viewport
|
|
327
|
-
}
|
|
279
|
+
classNames: ScrollAreaClasses
|
|
328
280
|
}),
|
|
329
281
|
SegmentedControl: SegmentedControl.extend({
|
|
330
282
|
classNames: SegmentedControlClasses
|
|
331
283
|
}),
|
|
332
284
|
Select: Select.extend({
|
|
333
285
|
defaultProps: {
|
|
334
|
-
withCheckIcon: false,
|
|
335
286
|
allowDeselect: false
|
|
336
|
-
},
|
|
337
|
-
classNames: {
|
|
338
|
-
input: SelectClasses.input,
|
|
339
|
-
option: SelectClasses.option
|
|
340
287
|
}
|
|
341
288
|
}),
|
|
342
289
|
Skeleton: Skeleton.extend({
|
|
343
|
-
classNames:
|
|
344
|
-
root: SkeletonClasses.root
|
|
345
|
-
}
|
|
290
|
+
classNames: SkeletonClasses
|
|
346
291
|
}),
|
|
347
292
|
Stepper: Stepper.extend({
|
|
348
293
|
defaultProps: {
|
|
349
294
|
size: 'xs',
|
|
350
295
|
completedIcon: /*#__PURE__*/ _jsx(CheckSize16Px, {})
|
|
351
296
|
},
|
|
352
|
-
classNames:
|
|
353
|
-
step: StepperClasses.step,
|
|
354
|
-
stepIcon: StepperClasses.stepIcon,
|
|
355
|
-
stepCompletedIcon: StepperClasses.stepCompletedIcon,
|
|
356
|
-
stepDescription: StepperClasses.stepDescription,
|
|
357
|
-
separator: StepperClasses.separator,
|
|
358
|
-
verticalSeparator: StepperClasses.verticalSeparator
|
|
359
|
-
}
|
|
297
|
+
classNames: StepperClasses
|
|
360
298
|
}),
|
|
361
299
|
Switch: Switch.extend({
|
|
362
300
|
classNames: (theme, props)=>{
|
|
@@ -388,19 +326,11 @@ export const plasmaTheme = createTheme({
|
|
|
388
326
|
Tabs: Tabs.extend({
|
|
389
327
|
classNames: TabsClasses
|
|
390
328
|
}),
|
|
391
|
-
TabsTab: Tabs.Tab.extend({
|
|
392
|
-
defaultProps: {
|
|
393
|
-
px: 'sm'
|
|
394
|
-
}
|
|
395
|
-
}),
|
|
396
329
|
Text: Text.extend({
|
|
397
|
-
classNames: TextClasses,
|
|
398
|
-
vars: TextVars
|
|
399
|
-
}),
|
|
400
|
-
TextInput: TextInput.extend({
|
|
401
330
|
defaultProps: {
|
|
402
|
-
|
|
403
|
-
}
|
|
331
|
+
size: 'sm'
|
|
332
|
+
},
|
|
333
|
+
classNames: TextClasses
|
|
404
334
|
}),
|
|
405
335
|
Tooltip: Tooltip.extend({
|
|
406
336
|
defaultProps: {
|