@coveord/plasma-mantine 52.26.3 → 52.26.4
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 +34 -128
- package/dist/.tsbuildinfo +1 -1
- package/dist/esm/components/action-icon/ActionIcon.js +29 -80
- package/dist/esm/components/action-icon/ActionIcon.js.map +1 -1
- package/dist/esm/components/action-icon/index.js +1 -1
- package/dist/esm/components/blank-slate/BlankSlate.js +3 -6
- package/dist/esm/components/blank-slate/BlankSlate.js.map +1 -1
- package/dist/esm/components/blank-slate/index.js +1 -1
- package/dist/esm/components/browser-preview/BrowserPreview.js +16 -28
- package/dist/esm/components/browser-preview/BrowserPreview.js.map +1 -1
- package/dist/esm/components/browser-preview/BrowserPreview.styles.js +6 -8
- package/dist/esm/components/browser-preview/BrowserPreview.styles.js.map +1 -1
- package/dist/esm/components/browser-preview/index.js +1 -1
- package/dist/esm/components/button/Button.js +29 -80
- package/dist/esm/components/button/Button.js.map +1 -1
- package/dist/esm/components/button/ButtonWithDisabledTooltip.js +16 -28
- package/dist/esm/components/button/ButtonWithDisabledTooltip.js.map +1 -1
- package/dist/esm/components/button/index.js +1 -1
- package/dist/esm/components/code-editor/CodeEditor.js +76 -144
- package/dist/esm/components/code-editor/CodeEditor.js.map +1 -1
- package/dist/esm/components/code-editor/index.js +1 -1
- package/dist/esm/components/code-editor/languages/xml.js +18 -32
- package/dist/esm/components/code-editor/languages/xml.js.map +1 -1
- package/dist/esm/components/code-editor/search/Search.js +6 -13
- package/dist/esm/components/code-editor/search/Search.js.map +1 -1
- package/dist/esm/components/code-editor/search/index.js +1 -1
- package/dist/esm/components/collection/Collection.js +57 -110
- package/dist/esm/components/collection/Collection.js.map +1 -1
- package/dist/esm/components/collection/Collection.styles.js +7 -9
- package/dist/esm/components/collection/Collection.styles.js.map +1 -1
- package/dist/esm/components/collection/CollectionItem.js +47 -54
- package/dist/esm/components/collection/CollectionItem.js.map +1 -1
- package/dist/esm/components/collection/index.js +1 -1
- package/dist/esm/components/copyToClipboard/CopyToClipboard.js +19 -29
- package/dist/esm/components/copyToClipboard/CopyToClipboard.js.map +1 -1
- package/dist/esm/components/copyToClipboard/index.js +1 -1
- package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.js +29 -32
- package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.js.map +1 -1
- package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.js +22 -29
- package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.js.map +1 -1
- package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.js +19 -30
- package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.js.map +1 -1
- package/dist/esm/components/date-range-picker/EditableDateRangePicker.js +21 -22
- package/dist/esm/components/date-range-picker/EditableDateRangePicker.js.map +1 -1
- package/dist/esm/components/date-range-picker/index.js +3 -3
- package/dist/esm/components/header/Header.js +28 -48
- package/dist/esm/components/header/Header.js.map +1 -1
- package/dist/esm/components/header/Header.styles.js +7 -10
- package/dist/esm/components/header/Header.styles.js.map +1 -1
- package/dist/esm/components/header/HeaderActions/HeaderActions.js +16 -25
- package/dist/esm/components/header/HeaderActions/HeaderActions.js.map +1 -1
- package/dist/esm/components/header/HeaderActions/HeaderActions.styles.js +3 -7
- package/dist/esm/components/header/HeaderActions/HeaderActions.styles.js.map +1 -1
- package/dist/esm/components/header/HeaderBreadcrumbs/HeaderBreadcrumbs.js +13 -22
- package/dist/esm/components/header/HeaderBreadcrumbs/HeaderBreadcrumbs.js.map +1 -1
- package/dist/esm/components/header/HeaderBreadcrumbs/HeaderBreadcrumbs.styles.js +3 -7
- package/dist/esm/components/header/HeaderBreadcrumbs/HeaderBreadcrumbs.styles.js.map +1 -1
- package/dist/esm/components/header/HeaderDocAnchor/HeaderDocAnchor.js +17 -28
- package/dist/esm/components/header/HeaderDocAnchor/HeaderDocAnchor.js.map +1 -1
- package/dist/esm/components/header/HeaderDocAnchor/HeaderDocAnchor.styles.js +4 -8
- package/dist/esm/components/header/HeaderDocAnchor/HeaderDocAnchor.styles.js.map +1 -1
- package/dist/esm/components/header/index.js +1 -1
- package/dist/esm/components/index.js +15 -15
- package/dist/esm/components/inline-confirm/InlineConfirm.js +14 -20
- package/dist/esm/components/inline-confirm/InlineConfirm.js.map +1 -1
- package/dist/esm/components/inline-confirm/InlineConfirmButton.js +11 -17
- package/dist/esm/components/inline-confirm/InlineConfirmButton.js.map +1 -1
- package/dist/esm/components/inline-confirm/InlineConfirmContext.js +2 -2
- package/dist/esm/components/inline-confirm/InlineConfirmContext.js.map +1 -1
- package/dist/esm/components/inline-confirm/InlineConfirmMenuItem.js +11 -17
- package/dist/esm/components/inline-confirm/InlineConfirmMenuItem.js.map +1 -1
- package/dist/esm/components/inline-confirm/InlineConfirmPrompt.js +8 -9
- package/dist/esm/components/inline-confirm/InlineConfirmPrompt.js.map +1 -1
- package/dist/esm/components/inline-confirm/index.js +3 -3
- package/dist/esm/components/inline-confirm/useInlineConfirm.js +5 -5
- package/dist/esm/components/inline-confirm/useInlineConfirm.js.map +1 -1
- package/dist/esm/components/menu/Menu.js +13 -21
- package/dist/esm/components/menu/Menu.js.map +1 -1
- package/dist/esm/components/menu/index.js +1 -1
- package/dist/esm/components/modal-wizard/ModalWizard.js +57 -108
- package/dist/esm/components/modal-wizard/ModalWizard.js.map +1 -1
- package/dist/esm/components/modal-wizard/ModalWizardStep.js +1 -4
- package/dist/esm/components/modal-wizard/ModalWizardStep.js.map +1 -1
- package/dist/esm/components/modal-wizard/index.js +1 -1
- package/dist/esm/components/prompt/Prompt.js +29 -41
- package/dist/esm/components/prompt/Prompt.js.map +1 -1
- package/dist/esm/components/prompt/PromptFooter.js +4 -11
- package/dist/esm/components/prompt/PromptFooter.js.map +1 -1
- package/dist/esm/components/prompt/index.js +1 -1
- package/dist/esm/components/sticky-footer/StickyFooter.js +21 -35
- package/dist/esm/components/sticky-footer/StickyFooter.js.map +1 -1
- package/dist/esm/components/sticky-footer/index.js +1 -1
- package/dist/esm/components/table/Table.js +94 -123
- package/dist/esm/components/table/Table.js.map +1 -1
- package/dist/esm/components/table/Table.styles.js +11 -13
- package/dist/esm/components/table/Table.styles.js.map +1 -1
- package/dist/esm/components/table/TableContext.js +5 -5
- package/dist/esm/components/table/TableContext.js.map +1 -1
- package/dist/esm/components/table/index.js +3 -3
- package/dist/esm/components/table/layouts/RowLayout.js +59 -79
- package/dist/esm/components/table/layouts/RowLayout.js.map +1 -1
- package/dist/esm/components/table/layouts/RowLayout.styles.js +27 -28
- package/dist/esm/components/table/layouts/RowLayout.styles.js.map +1 -1
- package/dist/esm/components/table/layouts/TableLayoutControl.js +10 -13
- package/dist/esm/components/table/layouts/TableLayoutControl.js.map +1 -1
- package/dist/esm/components/table/layouts/TableLayouts.js +2 -2
- package/dist/esm/components/table/layouts/TableLayouts.js.map +1 -1
- package/dist/esm/components/table/table-actions/TableActions.js +17 -26
- package/dist/esm/components/table/table-actions/TableActions.js.map +1 -1
- package/dist/esm/components/table/table-actions/TableActions.styles.js +5 -7
- package/dist/esm/components/table/table-actions/TableActions.styles.js.map +1 -1
- package/dist/esm/components/table/table-column/TableCollapsibleColumn.js +19 -23
- package/dist/esm/components/table/table-column/TableCollapsibleColumn.js.map +1 -1
- package/dist/esm/components/table/table-column/TableSelectableColumn.js +9 -13
- package/dist/esm/components/table/table-column/TableSelectableColumn.js.map +1 -1
- package/dist/esm/components/table/table-consumer/TableConsumer.js +1 -4
- package/dist/esm/components/table/table-consumer/TableConsumer.js.map +1 -1
- package/dist/esm/components/table/table-date-range-picker/TableDateRangePicker.js +28 -43
- package/dist/esm/components/table/table-date-range-picker/TableDateRangePicker.js.map +1 -1
- package/dist/esm/components/table/table-date-range-picker/TableDateRangePicker.styles.js +3 -5
- package/dist/esm/components/table/table-date-range-picker/TableDateRangePicker.styles.js.map +1 -1
- package/dist/esm/components/table/table-filter/TableFilter.js +30 -40
- package/dist/esm/components/table/table-filter/TableFilter.js.map +1 -1
- package/dist/esm/components/table/table-filter/TableFilter.styles.js +4 -6
- package/dist/esm/components/table/table-filter/TableFilter.styles.js.map +1 -1
- package/dist/esm/components/table/table-footer/TableFooter.js +5 -13
- package/dist/esm/components/table/table-footer/TableFooter.js.map +1 -1
- package/dist/esm/components/table/table-header/TableHeader.js +20 -29
- package/dist/esm/components/table/table-header/TableHeader.js.map +1 -1
- package/dist/esm/components/table/table-header/TableHeader.styles.js +8 -10
- package/dist/esm/components/table/table-header/TableHeader.styles.js.map +1 -1
- package/dist/esm/components/table/table-header/Th.js +27 -35
- package/dist/esm/components/table/table-header/Th.js.map +1 -1
- package/dist/esm/components/table/table-header/Th.styles.js +13 -16
- package/dist/esm/components/table/table-header/Th.styles.js.map +1 -1
- package/dist/esm/components/table/table-last-updated/TableLastUpdated.js +24 -35
- package/dist/esm/components/table/table-last-updated/TableLastUpdated.js.map +1 -1
- package/dist/esm/components/table/table-last-updated/TableLastUpdated.styles.js +4 -6
- package/dist/esm/components/table/table-last-updated/TableLastUpdated.styles.js.map +1 -1
- package/dist/esm/components/table/table-loading/TableLoading.js +4 -7
- package/dist/esm/components/table/table-loading/TableLoading.js.map +1 -1
- package/dist/esm/components/table/table-pagination/TablePagination.js +21 -25
- package/dist/esm/components/table/table-pagination/TablePagination.js.map +1 -1
- package/dist/esm/components/table/table-per-page/TablePerPage.js +15 -24
- package/dist/esm/components/table/table-per-page/TablePerPage.js.map +1 -1
- package/dist/esm/components/table/table-predicate/TablePredicate.js +25 -35
- package/dist/esm/components/table/table-predicate/TablePredicate.js.map +1 -1
- package/dist/esm/components/table/table-predicate/TablePredicate.styles.js +3 -5
- package/dist/esm/components/table/table-predicate/TablePredicate.styles.js.map +1 -1
- package/dist/esm/form/FormProvider.js +9 -10
- package/dist/esm/form/FormProvider.js.map +1 -1
- package/dist/esm/form/index.js +2 -2
- package/dist/esm/form/useForm.js +18 -25
- package/dist/esm/form/useForm.js.map +1 -1
- package/dist/esm/hooks/index.js +2 -2
- package/dist/esm/hooks/useControlledList.js +24 -30
- package/dist/esm/hooks/useControlledList.js.map +1 -1
- package/dist/esm/hooks/useParentHeight.js +10 -11
- package/dist/esm/hooks/useParentHeight.js.map +1 -1
- package/dist/esm/hooks/useRowSelection.js +33 -44
- package/dist/esm/hooks/useRowSelection.js.map +1 -1
- package/dist/esm/index.js +11 -11
- package/dist/esm/theme/PlasmaColors.js +13 -15
- package/dist/esm/theme/PlasmaColors.js.map +1 -1
- package/dist/esm/theme/Plasmantine.js +3 -6
- package/dist/esm/theme/Plasmantine.js.map +1 -1
- package/dist/esm/theme/Theme.js +142 -171
- package/dist/esm/theme/Theme.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/esm/utils/createPolymorphicComponent.js +2 -2
- package/dist/esm/utils/createPolymorphicComponent.js.map +1 -1
- package/dist/esm/utils/index.js +2 -2
- package/dist/esm/utils/overrideComponent.js +2 -8
- package/dist/esm/utils/overrideComponent.js.map +1 -1
- package/package.json +4 -4
package/dist/esm/theme/Theme.js
CHANGED
|
@@ -1,68 +1,65 @@
|
|
|
1
|
-
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
|
2
|
-
import { _ as _object_destructuring_empty } from "@swc/helpers/_/_object_destructuring_empty";
|
|
3
|
-
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
4
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
import { CheckSize16Px, InfoSize24Px } from
|
|
6
|
-
import { color } from
|
|
7
|
-
import { getSize, getStylesRef, rem } from
|
|
8
|
-
import { PlasmaColors } from
|
|
9
|
-
export
|
|
2
|
+
import { CheckSize16Px, InfoSize24Px } from '@coveord/plasma-react-icons';
|
|
3
|
+
import { color } from '@coveord/plasma-tokens';
|
|
4
|
+
import { getSize, getStylesRef, rem } from '@mantine/core';
|
|
5
|
+
import { PlasmaColors } from './PlasmaColors';
|
|
6
|
+
export const plasmaTheme = {
|
|
10
7
|
// These are overrides over https://github.com/mantinedev/mantine/blob/master/src/mantine-styles/src/theme/default-theme.ts
|
|
11
|
-
colorScheme:
|
|
12
|
-
fontFamily:
|
|
8
|
+
colorScheme: 'light',
|
|
9
|
+
fontFamily: 'canada-type-gibson, sans-serif',
|
|
13
10
|
black: color.primary.gray[9],
|
|
14
11
|
defaultRadius: 8,
|
|
15
12
|
lineHeight: 1.5,
|
|
16
13
|
spacing: {
|
|
17
|
-
xs:
|
|
18
|
-
sm:
|
|
19
|
-
md:
|
|
20
|
-
lg:
|
|
21
|
-
xl:
|
|
14
|
+
xs: '8px',
|
|
15
|
+
sm: '16px',
|
|
16
|
+
md: '24px',
|
|
17
|
+
lg: '32px',
|
|
18
|
+
xl: '40px'
|
|
22
19
|
},
|
|
23
|
-
primaryColor:
|
|
20
|
+
primaryColor: 'action',
|
|
24
21
|
headings: {
|
|
25
|
-
fontFamily:
|
|
22
|
+
fontFamily: 'canada-type-gibson, sans-serif',
|
|
26
23
|
fontWeight: 500,
|
|
27
24
|
sizes: {
|
|
28
25
|
h1: {
|
|
29
|
-
fontSize:
|
|
26
|
+
fontSize: '48px',
|
|
30
27
|
lineHeight: undefined,
|
|
31
28
|
fontWeight: 300
|
|
32
29
|
},
|
|
33
30
|
h2: {
|
|
34
|
-
fontSize:
|
|
31
|
+
fontSize: '32px',
|
|
35
32
|
lineHeight: undefined,
|
|
36
33
|
fontWeight: 500
|
|
37
34
|
},
|
|
38
35
|
h3: {
|
|
39
|
-
fontSize:
|
|
36
|
+
fontSize: '24px',
|
|
40
37
|
lineHeight: undefined,
|
|
41
38
|
fontWeight: 500
|
|
42
39
|
},
|
|
43
40
|
h4: {
|
|
44
|
-
fontSize:
|
|
41
|
+
fontSize: '18px',
|
|
45
42
|
lineHeight: undefined,
|
|
46
43
|
fontWeight: 300
|
|
47
44
|
},
|
|
48
45
|
h5: {
|
|
49
|
-
fontSize:
|
|
46
|
+
fontSize: '14px',
|
|
50
47
|
lineHeight: undefined,
|
|
51
48
|
fontWeight: 500
|
|
52
49
|
},
|
|
53
50
|
h6: {
|
|
54
|
-
fontSize:
|
|
51
|
+
fontSize: '12px',
|
|
55
52
|
lineHeight: undefined,
|
|
56
53
|
fontWeight: 500
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
},
|
|
60
57
|
shadows: {
|
|
61
|
-
xs:
|
|
62
|
-
sm:
|
|
63
|
-
md:
|
|
64
|
-
lg:
|
|
65
|
-
xl:
|
|
58
|
+
xs: '0px 1px 0px rgba(4, 8, 31, 0.08)',
|
|
59
|
+
sm: '0px 2px 4px rgba(4, 8, 31, 0.12)',
|
|
60
|
+
md: '0px 4px 8px rgba(4, 8, 31, 0.08)',
|
|
61
|
+
lg: '0px 8px 16px rgba(7, 12, 41, 0.06)',
|
|
62
|
+
xl: '0px 16px 24px rgba(4, 8, 31, 0.06)'
|
|
66
63
|
},
|
|
67
64
|
colors: PlasmaColors,
|
|
68
65
|
components: {
|
|
@@ -71,7 +68,7 @@ export var plasmaTheme = {
|
|
|
71
68
|
icon: /*#__PURE__*/ _jsx(InfoSize24Px, {
|
|
72
69
|
height: 24
|
|
73
70
|
}),
|
|
74
|
-
color:
|
|
71
|
+
color: 'navy'
|
|
75
72
|
},
|
|
76
73
|
styles: {
|
|
77
74
|
title: {
|
|
@@ -82,8 +79,8 @@ export var plasmaTheme = {
|
|
|
82
79
|
Title: {
|
|
83
80
|
styles: {
|
|
84
81
|
root: {
|
|
85
|
-
|
|
86
|
-
letterSpacing:
|
|
82
|
+
'&:is(h1,h2,h3,h4,h5,h6)': {
|
|
83
|
+
letterSpacing: '0.011em'
|
|
87
84
|
}
|
|
88
85
|
}
|
|
89
86
|
}
|
|
@@ -92,72 +89,62 @@ export var plasmaTheme = {
|
|
|
92
89
|
defaultProps: {
|
|
93
90
|
weight: 300
|
|
94
91
|
},
|
|
95
|
-
styles:
|
|
96
|
-
var ref = _object_destructuring_empty(param), size = param1.size;
|
|
97
|
-
return {
|
|
92
|
+
styles: (theme, {}, { size })=>({
|
|
98
93
|
root: {
|
|
99
94
|
fontSize: getSize({
|
|
100
|
-
size: size
|
|
95
|
+
size: size ?? 'sm',
|
|
101
96
|
sizes: theme.fontSizes
|
|
102
97
|
})
|
|
103
98
|
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
99
|
+
})
|
|
106
100
|
},
|
|
107
101
|
Button: {
|
|
108
|
-
styles:
|
|
109
|
-
return {
|
|
102
|
+
styles: ()=>({
|
|
110
103
|
root: {
|
|
111
104
|
fontWeight: 400
|
|
112
105
|
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
106
|
+
}),
|
|
115
107
|
variants: {
|
|
116
|
-
outline:
|
|
117
|
-
return {
|
|
108
|
+
outline: ()=>({
|
|
118
109
|
root: {
|
|
119
|
-
backgroundColor:
|
|
110
|
+
backgroundColor: 'white'
|
|
120
111
|
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
112
|
+
})
|
|
123
113
|
}
|
|
124
114
|
},
|
|
125
115
|
Modal: {
|
|
126
|
-
styles:
|
|
127
|
-
var fullScreen = param.fullScreen, padding = param.padding, size = param1.size, variant = param1.variant;
|
|
128
|
-
return {
|
|
116
|
+
styles: (theme, { fullScreen, padding }, { size, variant })=>({
|
|
129
117
|
content: {
|
|
130
|
-
flex: fullScreen ?
|
|
131
|
-
size
|
|
118
|
+
flex: fullScreen ? '0 0 100%' : `0 0 ${getSize({
|
|
119
|
+
size,
|
|
132
120
|
sizes: {
|
|
133
121
|
xs: rem(432),
|
|
134
122
|
sm: rem(664),
|
|
135
123
|
md: rem(896),
|
|
136
124
|
lg: rem(1120),
|
|
137
|
-
xl: rem(
|
|
125
|
+
xl: rem('88%')
|
|
138
126
|
}
|
|
139
|
-
})
|
|
140
|
-
overflow:
|
|
127
|
+
})}`,
|
|
128
|
+
overflow: 'auto'
|
|
141
129
|
},
|
|
142
130
|
title: {
|
|
143
|
-
width:
|
|
131
|
+
width: '100%',
|
|
144
132
|
fontSize: theme.headings.sizes.h3.fontSize,
|
|
145
133
|
lineHeight: theme.headings.sizes.h3.lineHeight,
|
|
146
134
|
fontWeight: 500
|
|
147
135
|
},
|
|
148
136
|
header: {
|
|
149
|
-
borderBottom: variant !==
|
|
137
|
+
borderBottom: variant !== 'prompt' ? `1px solid ${color.primary.gray[3]}` : null
|
|
150
138
|
},
|
|
151
139
|
body: {
|
|
152
|
-
|
|
153
|
-
paddingTop: variant ===
|
|
140
|
+
'&:not(:only-child)': {
|
|
141
|
+
paddingTop: variant === 'prompt' ? 0 : getSize({
|
|
154
142
|
size: padding,
|
|
155
143
|
sizes: plasmaTheme.spacing
|
|
156
144
|
})
|
|
157
145
|
}
|
|
158
146
|
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
147
|
+
})
|
|
161
148
|
},
|
|
162
149
|
ModalOverlay: {
|
|
163
150
|
defaultProps: {
|
|
@@ -169,8 +156,7 @@ export var plasmaTheme = {
|
|
|
169
156
|
defaultProps: {
|
|
170
157
|
withAsterisk: false
|
|
171
158
|
},
|
|
172
|
-
styles:
|
|
173
|
-
return {
|
|
159
|
+
styles: (theme)=>({
|
|
174
160
|
label: {
|
|
175
161
|
marginBottom: theme.spacing.xs
|
|
176
162
|
},
|
|
@@ -188,8 +174,7 @@ export var plasmaTheme = {
|
|
|
188
174
|
color: theme.colors.red[9],
|
|
189
175
|
lineHeight: theme.lineHeight
|
|
190
176
|
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
177
|
+
})
|
|
193
178
|
},
|
|
194
179
|
TextInput: {
|
|
195
180
|
defaultProps: {
|
|
@@ -198,7 +183,7 @@ export var plasmaTheme = {
|
|
|
198
183
|
},
|
|
199
184
|
Tooltip: {
|
|
200
185
|
defaultProps: {
|
|
201
|
-
color:
|
|
186
|
+
color: 'navy',
|
|
202
187
|
maw: 300,
|
|
203
188
|
multiline: true,
|
|
204
189
|
withArrow: true,
|
|
@@ -208,71 +193,67 @@ export var plasmaTheme = {
|
|
|
208
193
|
},
|
|
209
194
|
Loader: {
|
|
210
195
|
defaultProps: {
|
|
211
|
-
variant:
|
|
212
|
-
color:
|
|
196
|
+
variant: 'dots',
|
|
197
|
+
color: 'action'
|
|
213
198
|
}
|
|
214
199
|
},
|
|
215
200
|
DateRangePicker: {
|
|
216
201
|
styles: {
|
|
217
202
|
cell: {
|
|
218
|
-
textAlign:
|
|
203
|
+
textAlign: 'center'
|
|
219
204
|
}
|
|
220
205
|
}
|
|
221
206
|
},
|
|
222
207
|
Anchor: {
|
|
223
208
|
defaultProps: {
|
|
224
|
-
color:
|
|
209
|
+
color: 'action.6'
|
|
225
210
|
},
|
|
226
|
-
styles:
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
211
|
+
styles: (theme)=>({
|
|
212
|
+
root: {
|
|
213
|
+
...theme.fn.hover({
|
|
214
|
+
textDecoration: 'underline',
|
|
215
|
+
color: theme.colors.action[8]
|
|
216
|
+
})
|
|
217
|
+
}
|
|
218
|
+
})
|
|
234
219
|
},
|
|
235
220
|
Checkbox: {
|
|
236
221
|
defaultProps: {
|
|
237
|
-
radius:
|
|
222
|
+
radius: 'sm'
|
|
238
223
|
},
|
|
239
|
-
styles:
|
|
240
|
-
return {
|
|
224
|
+
styles: (theme)=>({
|
|
241
225
|
label: {
|
|
242
226
|
fontSize: theme.fontSizes.sm,
|
|
243
227
|
fontWeight: 300
|
|
244
228
|
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
229
|
+
})
|
|
247
230
|
},
|
|
248
231
|
List: {
|
|
249
|
-
styles:
|
|
250
|
-
return {
|
|
232
|
+
styles: ()=>({
|
|
251
233
|
root: {
|
|
252
|
-
listStyleType:
|
|
234
|
+
listStyleType: 'disc'
|
|
253
235
|
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
236
|
+
})
|
|
256
237
|
},
|
|
257
238
|
Radio: {
|
|
258
239
|
styles: {
|
|
259
240
|
labelWrapper: {
|
|
260
|
-
display:
|
|
261
|
-
alignItems:
|
|
241
|
+
display: 'flex',
|
|
242
|
+
alignItems: 'flex-start'
|
|
262
243
|
}
|
|
263
244
|
}
|
|
264
245
|
},
|
|
265
246
|
Popover: {
|
|
266
247
|
defaultProps: {
|
|
267
|
-
shadow:
|
|
248
|
+
shadow: 'md',
|
|
268
249
|
withArrow: true
|
|
269
250
|
}
|
|
270
251
|
},
|
|
271
252
|
Badge: {
|
|
272
253
|
styles: {
|
|
273
254
|
root: {
|
|
274
|
-
textTransform:
|
|
275
|
-
padding:
|
|
255
|
+
textTransform: 'none',
|
|
256
|
+
padding: '4px 8px',
|
|
276
257
|
fontWeight: 500
|
|
277
258
|
}
|
|
278
259
|
}
|
|
@@ -289,73 +270,65 @@ export var plasmaTheme = {
|
|
|
289
270
|
}
|
|
290
271
|
},
|
|
291
272
|
Notification: {
|
|
292
|
-
styles:
|
|
293
|
-
var notificationType = param.color;
|
|
294
|
-
var _theme_colors;
|
|
295
|
-
return {
|
|
273
|
+
styles: (theme, { color: notificationType })=>({
|
|
296
274
|
root: {
|
|
297
275
|
borderColor: theme.colors.gray[3],
|
|
298
276
|
backgroundColor: theme.colors.gray[0],
|
|
299
277
|
boxShadow: theme.shadows.lg,
|
|
300
278
|
padding: theme.spacing.sm,
|
|
301
|
-
|
|
279
|
+
'&[data-with-icon]': {
|
|
302
280
|
paddingLeft: theme.spacing.sm
|
|
303
281
|
}
|
|
304
282
|
},
|
|
305
283
|
icon: {
|
|
306
|
-
backgroundColor:
|
|
284
|
+
backgroundColor: 'transparent',
|
|
307
285
|
marginRight: theme.spacing.sm,
|
|
308
|
-
color:
|
|
286
|
+
color: theme.colors?.[notificationType][6]
|
|
309
287
|
},
|
|
310
288
|
closeButton: {
|
|
311
289
|
margin: theme.spacing.xs,
|
|
312
290
|
color: theme.colors.gray[5]
|
|
313
291
|
}
|
|
314
|
-
}
|
|
315
|
-
},
|
|
292
|
+
}),
|
|
316
293
|
defaultProps: {
|
|
317
294
|
icon: /*#__PURE__*/ _jsx(InfoSize24Px, {
|
|
318
295
|
height: 24
|
|
319
296
|
}),
|
|
320
|
-
color:
|
|
297
|
+
color: 'info'
|
|
321
298
|
}
|
|
322
299
|
},
|
|
323
300
|
Skeleton: {
|
|
324
301
|
styles: {
|
|
325
302
|
visible: {
|
|
326
|
-
|
|
327
|
-
zIndex:
|
|
303
|
+
'&::before': {
|
|
304
|
+
zIndex: 'unset'
|
|
328
305
|
},
|
|
329
|
-
|
|
330
|
-
zIndex:
|
|
306
|
+
'&::after': {
|
|
307
|
+
zIndex: 'unset'
|
|
331
308
|
}
|
|
332
309
|
}
|
|
333
310
|
}
|
|
334
311
|
},
|
|
335
312
|
SegmentedControl: {
|
|
336
|
-
styles:
|
|
337
|
-
return {
|
|
313
|
+
styles: (theme)=>({
|
|
338
314
|
root: {
|
|
339
315
|
backgroundColor: theme.colors.gray[2]
|
|
340
316
|
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
317
|
+
})
|
|
343
318
|
},
|
|
344
319
|
Stepper: {
|
|
345
320
|
defaultProps: {
|
|
346
|
-
size:
|
|
321
|
+
size: 'xs',
|
|
347
322
|
completedIcon: /*#__PURE__*/ _jsx(CheckSize16Px, {})
|
|
348
323
|
},
|
|
349
|
-
styles:
|
|
350
|
-
var ref = _object_destructuring_empty(param), size = param1.size;
|
|
351
|
-
return {
|
|
324
|
+
styles: (theme, {}, { size })=>({
|
|
352
325
|
step: {
|
|
353
|
-
|
|
326
|
+
'&[disabled]': {
|
|
354
327
|
color: theme.colors.gray[5],
|
|
355
|
-
|
|
328
|
+
'& .mantine-Stepper-stepDescription': {
|
|
356
329
|
color: theme.colors.gray[5]
|
|
357
330
|
},
|
|
358
|
-
|
|
331
|
+
'& .mantine-Stepper-stepIcon': {
|
|
359
332
|
borderColor: theme.colors.gray[1]
|
|
360
333
|
}
|
|
361
334
|
}
|
|
@@ -363,12 +336,12 @@ export var plasmaTheme = {
|
|
|
363
336
|
stepIcon: {
|
|
364
337
|
fontWeight: 500,
|
|
365
338
|
backgroundColor: theme.colors.gray[1],
|
|
366
|
-
color:
|
|
367
|
-
border:
|
|
368
|
-
|
|
339
|
+
color: 'inherit',
|
|
340
|
+
border: `${rem(1)} solid ${theme.colors.gray[3]}`,
|
|
341
|
+
'&[data-progress]': {
|
|
369
342
|
backgroundColor: theme.white
|
|
370
343
|
},
|
|
371
|
-
|
|
344
|
+
'&[data-completed]': {
|
|
372
345
|
backgroundColor: theme.white,
|
|
373
346
|
borderColor: theme.colors.lime[6],
|
|
374
347
|
color: theme.colors.lime[6]
|
|
@@ -381,7 +354,7 @@ export var plasmaTheme = {
|
|
|
381
354
|
stepDescription: {
|
|
382
355
|
color: theme.colors.gray[7],
|
|
383
356
|
fontSize: getSize({
|
|
384
|
-
size
|
|
357
|
+
size,
|
|
385
358
|
sizes: theme.fontSizes
|
|
386
359
|
})
|
|
387
360
|
},
|
|
@@ -393,86 +366,84 @@ export var plasmaTheme = {
|
|
|
393
366
|
backgroundColor: theme.colors.gray[3]
|
|
394
367
|
},
|
|
395
368
|
verticalSeparator: {
|
|
396
|
-
borderLeft:
|
|
369
|
+
borderLeft: `${rem(1)} solid ${theme.colors.gray[3]}`
|
|
397
370
|
},
|
|
398
371
|
verticalSeparatorActive: {
|
|
399
372
|
borderColor: theme.colors.gray[3]
|
|
400
373
|
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
374
|
+
})
|
|
403
375
|
},
|
|
404
376
|
Tabs: {
|
|
405
|
-
styles:
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
377
|
+
styles: (theme, { orientation })=>({
|
|
378
|
+
tabsList: {
|
|
379
|
+
[orientation === 'horizontal' ? 'borderBottom' : 'borderRight']: `${rem(1)} solid ${theme.colors.gray[3]}`
|
|
380
|
+
},
|
|
381
|
+
tab: {
|
|
382
|
+
[orientation === 'horizontal' ? 'borderBottom' : 'borderRight']: `${rem(1)} solid transparent`,
|
|
383
|
+
[orientation === 'horizontal' ? 'marginBottom' : 'marginRight']: rem(-1)
|
|
384
|
+
}
|
|
385
|
+
})
|
|
413
386
|
},
|
|
414
387
|
Select: {
|
|
415
|
-
styles:
|
|
416
|
-
return {
|
|
388
|
+
styles: (theme)=>({
|
|
417
389
|
input: {
|
|
418
|
-
color: theme.colorScheme ===
|
|
390
|
+
color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[7]
|
|
419
391
|
},
|
|
420
392
|
item: {
|
|
421
|
-
color: theme.colorScheme ===
|
|
422
|
-
|
|
423
|
-
backgroundColor: theme.colorScheme ===
|
|
393
|
+
color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[7],
|
|
394
|
+
'&[data-hovered]': {
|
|
395
|
+
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[4] : theme.colors.gray[1]
|
|
424
396
|
},
|
|
425
|
-
|
|
397
|
+
'&[data-selected]': {
|
|
426
398
|
backgroundColor: theme.fn.variant({
|
|
427
|
-
variant:
|
|
399
|
+
variant: 'light'
|
|
428
400
|
}).background,
|
|
429
401
|
color: theme.fn.variant({
|
|
430
|
-
variant:
|
|
431
|
-
}).color
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
402
|
+
variant: 'light'
|
|
403
|
+
}).color,
|
|
404
|
+
...theme.fn.hover({
|
|
405
|
+
backgroundColor: theme.fn.variant({
|
|
406
|
+
variant: 'light'
|
|
407
|
+
}).hover
|
|
408
|
+
})
|
|
409
|
+
}
|
|
437
410
|
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
411
|
+
})
|
|
440
412
|
},
|
|
441
413
|
NavLink: {
|
|
442
|
-
styles:
|
|
443
|
-
|
|
444
|
-
root: _object_spread({
|
|
414
|
+
styles: (theme)=>({
|
|
415
|
+
root: {
|
|
445
416
|
color: theme.colors.gray[6],
|
|
446
|
-
borderRadius:
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
417
|
+
borderRadius: `${theme.defaultRadius}px 0px 0px ${theme.defaultRadius}px`,
|
|
418
|
+
...theme.fn.hover({
|
|
419
|
+
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[1]
|
|
420
|
+
})
|
|
421
|
+
},
|
|
450
422
|
label: {
|
|
451
|
-
ref: getStylesRef(
|
|
423
|
+
ref: getStylesRef('label'),
|
|
452
424
|
fontWeight: 500
|
|
453
425
|
},
|
|
454
|
-
children:
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
426
|
+
children: {
|
|
427
|
+
[`.${getStylesRef('label')}`]: {
|
|
428
|
+
fontWeight: 300
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
})
|
|
459
432
|
},
|
|
460
433
|
Navbar: {
|
|
461
|
-
styles:
|
|
462
|
-
return {
|
|
434
|
+
styles: (theme)=>({
|
|
463
435
|
root: {
|
|
464
436
|
borderColor: theme.colors.gray[3]
|
|
465
437
|
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
438
|
+
})
|
|
468
439
|
},
|
|
469
440
|
ScrollArea: {
|
|
470
441
|
styles: {
|
|
471
442
|
viewport: {
|
|
472
443
|
// https://github.com/radix-ui/primitives/issues/926
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
display:
|
|
444
|
+
'&[data-radix-scroll-area-viewport]': {
|
|
445
|
+
'& > :first-of-type': {
|
|
446
|
+
display: 'block !important'
|
|
476
447
|
}
|
|
477
448
|
}
|
|
478
449
|
}
|
|
@@ -480,7 +451,7 @@ export var plasmaTheme = {
|
|
|
480
451
|
},
|
|
481
452
|
Divider: {
|
|
482
453
|
defaultProps: {
|
|
483
|
-
color:
|
|
454
|
+
color: 'gray.3'
|
|
484
455
|
}
|
|
485
456
|
}
|
|
486
457
|
}
|