@coveord/plasma-mantine 53.0.0 → 53.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-test.log +30 -30
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/components/inline-confirm/InlineConfirm.d.ts +2 -4
- package/dist/cjs/components/inline-confirm/InlineConfirm.d.ts.map +1 -1
- package/dist/cjs/components/inline-confirm/InlineConfirm.js +2 -2
- package/dist/cjs/components/inline-confirm/InlineConfirm.js.map +1 -1
- package/dist/cjs/components/table/Table.module.css +1 -2
- package/dist/cjs/components/table/layouts/row-layout/RowLayoutHeader.d.ts.map +1 -1
- package/dist/cjs/components/table/layouts/row-layout/RowLayoutHeader.js +2 -1
- package/dist/cjs/components/table/layouts/row-layout/RowLayoutHeader.js.map +1 -1
- package/dist/cjs/components/table/table-column/TableCollapsibleColumn.js +1 -1
- package/dist/cjs/components/table/table-column/TableCollapsibleColumn.js.map +1 -1
- package/dist/cjs/components/table/table-header/TableHeader.d.ts.map +1 -1
- package/dist/cjs/components/table/table-header/TableHeader.js +0 -2
- package/dist/cjs/components/table/table-header/TableHeader.js.map +1 -1
- package/dist/cjs/components/table/table-per-page/TablePerPage.d.ts.map +1 -1
- package/dist/cjs/components/table/table-per-page/TablePerPage.js +0 -1
- package/dist/cjs/components/table/table-per-page/TablePerPage.js.map +1 -1
- package/dist/cjs/styles/Alert.module.css +31 -1
- package/dist/cjs/styles/Pagination.module.css +27 -0
- package/dist/cjs/styles/SegmentedControl.module.css +32 -0
- package/dist/cjs/theme/Theme.d.ts.map +1 -1
- package/dist/cjs/theme/Theme.js +19 -8
- package/dist/cjs/theme/Theme.js.map +1 -1
- package/dist/esm/components/inline-confirm/InlineConfirm.d.ts +2 -4
- package/dist/esm/components/inline-confirm/InlineConfirm.d.ts.map +1 -1
- package/dist/esm/components/inline-confirm/InlineConfirm.js +3 -3
- package/dist/esm/components/inline-confirm/InlineConfirm.js.map +1 -1
- package/dist/esm/components/table/Table.module.css +1 -2
- package/dist/esm/components/table/layouts/row-layout/RowLayoutHeader.d.ts.map +1 -1
- package/dist/esm/components/table/layouts/row-layout/RowLayoutHeader.js +1 -1
- package/dist/esm/components/table/layouts/row-layout/RowLayoutHeader.js.map +1 -1
- package/dist/esm/components/table/table-column/TableCollapsibleColumn.js +1 -1
- package/dist/esm/components/table/table-column/TableCollapsibleColumn.js.map +1 -1
- package/dist/esm/components/table/table-header/TableHeader.d.ts.map +1 -1
- package/dist/esm/components/table/table-header/TableHeader.js +0 -2
- package/dist/esm/components/table/table-header/TableHeader.js.map +1 -1
- package/dist/esm/components/table/table-per-page/TablePerPage.d.ts.map +1 -1
- package/dist/esm/components/table/table-per-page/TablePerPage.js +0 -1
- package/dist/esm/components/table/table-per-page/TablePerPage.js.map +1 -1
- package/dist/esm/styles/Alert.module.css +31 -1
- package/dist/esm/styles/Pagination.module.css +27 -0
- package/dist/esm/styles/SegmentedControl.module.css +32 -0
- package/dist/esm/theme/Theme.d.ts.map +1 -1
- package/dist/esm/theme/Theme.js +19 -10
- package/dist/esm/theme/Theme.js.map +1 -1
- package/package.json +1 -1
- package/src/components/inline-confirm/InlineConfirm.tsx +4 -6
- package/src/components/inline-confirm/__tests__/InlineConfirm.spec.tsx +2 -2
- package/src/components/table/Table.module.css +1 -2
- package/src/components/table/layouts/row-layout/RowLayoutHeader.tsx +2 -5
- package/src/components/table/table-column/TableCollapsibleColumn.tsx +1 -1
- package/src/components/table/table-header/TableHeader.tsx +1 -7
- package/src/components/table/table-per-page/TablePerPage.tsx +0 -1
- package/src/styles/Alert.module.css +31 -1
- package/src/styles/Pagination.module.css +27 -0
- package/src/styles/SegmentedControl.module.css +32 -0
- package/src/theme/Theme.tsx +22 -4
|
@@ -1,3 +1,35 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
background-color: var(--mantine-color-gray-2);
|
|
3
3
|
}
|
|
4
|
+
|
|
5
|
+
.indicator {
|
|
6
|
+
border-radius: var(--sc-radius, var(--mantine-radius-sm));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.label {
|
|
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
|
+
}
|
|
35
|
+
}
|
package/src/theme/Theme.tsx
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ArrowHeadLeftSize16Px,
|
|
3
|
+
ArrowHeadRightSize16Px,
|
|
4
|
+
CheckSize16Px,
|
|
5
|
+
CrossSize16Px,
|
|
6
|
+
FilterSize16Px,
|
|
7
|
+
InfoSize16Px,
|
|
8
|
+
InfoSize24Px,
|
|
9
|
+
} from '@coveord/plasma-react-icons';
|
|
2
10
|
import {color} from '@coveord/plasma-tokens';
|
|
3
11
|
import {
|
|
4
12
|
ActionIcon,
|
|
@@ -23,6 +31,7 @@ import {
|
|
|
23
31
|
MultiSelect,
|
|
24
32
|
NavLink,
|
|
25
33
|
Notification,
|
|
34
|
+
Pagination,
|
|
26
35
|
Popover,
|
|
27
36
|
Radio,
|
|
28
37
|
ScrollArea,
|
|
@@ -53,6 +62,7 @@ import ListClasses from '../styles/List.module.css';
|
|
|
53
62
|
import ModalClasses from '../styles/Modal.module.css';
|
|
54
63
|
import NavLinkClasses from '../styles/NavLink.module.css';
|
|
55
64
|
import NotificationClasses from '../styles/Notification.module.css';
|
|
65
|
+
import PaginationClasses from '../styles/Pagination.module.css';
|
|
56
66
|
import RadioClasses from '../styles/Radio.module.css';
|
|
57
67
|
import ScrollAreaClasses from '../styles/ScrollArea.module.css';
|
|
58
68
|
import SegmentedControlClasses from '../styles/SegmentedControl.module.css';
|
|
@@ -107,10 +117,10 @@ export const plasmaTheme: MantineThemeOverride = createTheme({
|
|
|
107
117
|
}),
|
|
108
118
|
Alert: Alert.extend({
|
|
109
119
|
defaultProps: {
|
|
110
|
-
icon: <
|
|
120
|
+
icon: <InfoSize16Px height={16} />,
|
|
111
121
|
color: 'navy',
|
|
112
122
|
},
|
|
113
|
-
classNames:
|
|
123
|
+
classNames: AlertClasses,
|
|
114
124
|
}),
|
|
115
125
|
Anchor: Anchor.extend({
|
|
116
126
|
defaultProps: {
|
|
@@ -213,6 +223,14 @@ export const plasmaTheme: MantineThemeOverride = createTheme({
|
|
|
213
223
|
},
|
|
214
224
|
vars: NotificationVars,
|
|
215
225
|
}),
|
|
226
|
+
Pagination: Pagination.extend({
|
|
227
|
+
classNames: PaginationClasses,
|
|
228
|
+
vars: () => ({root: {'--pagination-control-fz': 'var(--mantine-font-size-sm)'}}),
|
|
229
|
+
defaultProps: {
|
|
230
|
+
nextIcon: ArrowHeadRightSize16Px,
|
|
231
|
+
previousIcon: ArrowHeadLeftSize16Px,
|
|
232
|
+
},
|
|
233
|
+
}),
|
|
216
234
|
Popover: Popover.extend({
|
|
217
235
|
defaultProps: {
|
|
218
236
|
shadow: 'md',
|
|
@@ -226,7 +244,7 @@ export const plasmaTheme: MantineThemeOverride = createTheme({
|
|
|
226
244
|
classNames: {viewport: ScrollAreaClasses.viewport},
|
|
227
245
|
}),
|
|
228
246
|
SegmentedControl: SegmentedControl.extend({
|
|
229
|
-
classNames:
|
|
247
|
+
classNames: SegmentedControlClasses,
|
|
230
248
|
}),
|
|
231
249
|
Select: Select.extend({
|
|
232
250
|
defaultProps: {withCheckIcon: false, allowDeselect: false},
|