@coveord/plasma-mantine 55.3.4-next.0 → 55.4.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 +2 -2
- package/.turbo/turbo-test.log +46 -45
- package/dist/.tsbuildinfo +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/date-range-picker/DateRangePickerInlineCalendar.d.ts.map +1 -1
- package/dist/cjs/components/date-range-picker/DateRangePickerInlineCalendar.js +21 -3
- package/dist/cjs/components/date-range-picker/DateRangePickerInlineCalendar.js.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/sticky-footer/StickyFooter.module.css +3 -3
- package/dist/cjs/components/table/use-table.d.ts +10 -4
- package/dist/cjs/components/table/use-table.d.ts.map +1 -1
- package/dist/cjs/components/table/use-table.js +184 -12
- package/dist/cjs/components/table/use-table.js.map +1 -1
- package/dist/cjs/components/table/use-url-synced-state.d.ts +29 -0
- package/dist/cjs/components/table/use-url-synced-state.d.ts.map +1 -0
- package/dist/cjs/components/table/use-url-synced-state.js +58 -0
- package/dist/cjs/components/table/use-url-synced-state.js.map +1 -0
- 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/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/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.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/date-range-picker/DateRangePickerInlineCalendar.d.ts.map +1 -1
- package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.js +15 -2
- package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.js.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/sticky-footer/StickyFooter.module.css +3 -3
- package/dist/esm/components/table/use-table.d.ts +10 -4
- package/dist/esm/components/table/use-table.d.ts.map +1 -1
- package/dist/esm/components/table/use-table.js +127 -8
- package/dist/esm/components/table/use-table.js.map +1 -1
- package/dist/esm/components/table/use-url-synced-state.d.ts +29 -0
- package/dist/esm/components/table/use-url-synced-state.d.ts.map +1 -0
- package/dist/esm/components/table/use-url-synced-state.js +41 -0
- package/dist/esm/components/table/use-url-synced-state.js.map +1 -0
- 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/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/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 +5 -5
- package/src/components/browser-preview/BrowserPreview.module.css +1 -1
- package/src/components/button/Button.tsx +0 -6
- package/src/components/date-range-picker/DateRangePickerInlineCalendar.tsx +15 -1
- package/src/components/date-range-picker/__tests__/DateRangePickerInlineCalendar.spec.tsx +6 -4
- 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/components/table/__tests__/TableColumnsSelector.spec.tsx +51 -0
- package/src/components/table/__tests__/TableDateRangePicker.spec.tsx +53 -1
- package/src/components/table/__tests__/TableFilter.spec.tsx +43 -0
- package/src/components/table/__tests__/TablePagination.spec.tsx +54 -0
- package/src/components/table/__tests__/TablePerPage.spec.tsx +55 -0
- package/src/components/table/__tests__/TablePredicate.spec.tsx +69 -0
- package/src/components/table/__tests__/Th.spec.tsx +35 -0
- package/src/components/table/__tests__/use-url-synced-state.unit.spec.ts +113 -0
- package/src/components/table/use-table.ts +120 -15
- package/src/components/table/use-url-synced-state.ts +70 -0
- 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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useMemo, useState } from 'react';
|
|
2
|
+
const setSearchParam = (key, value, initial)=>{
|
|
3
|
+
const url = new URL(window.location.href);
|
|
4
|
+
if (value === '' || value === initial) {
|
|
5
|
+
url.searchParams.delete(key);
|
|
6
|
+
} else {
|
|
7
|
+
url.searchParams.set(key, value);
|
|
8
|
+
}
|
|
9
|
+
window.history.replaceState(null, '', url.toString());
|
|
10
|
+
};
|
|
11
|
+
const getSearchParams = ()=>{
|
|
12
|
+
const url = new URL(window.location.href);
|
|
13
|
+
return url.searchParams;
|
|
14
|
+
};
|
|
15
|
+
export const useUrlSyncedState = ({ initialState, serializer, deserializer, sync })=>{
|
|
16
|
+
const [state, setState] = useState(sync ? deserializer(getSearchParams()) : initialState);
|
|
17
|
+
const enhancedSetState = useMemo(()=>{
|
|
18
|
+
if (sync) {
|
|
19
|
+
const initialSerialized = serializer(initialState).reduce((acc, [key, value])=>{
|
|
20
|
+
acc[key] = value;
|
|
21
|
+
return acc;
|
|
22
|
+
}, {});
|
|
23
|
+
return (updater)=>{
|
|
24
|
+
setState((old)=>{
|
|
25
|
+
const newValue = updater instanceof Function ? updater(old) : updater;
|
|
26
|
+
serializer(newValue).forEach(([key, value])=>setSearchParam(key, value, initialSerialized[key]));
|
|
27
|
+
return newValue;
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return setState;
|
|
32
|
+
}, [
|
|
33
|
+
sync
|
|
34
|
+
]);
|
|
35
|
+
return [
|
|
36
|
+
state,
|
|
37
|
+
enhancedSetState
|
|
38
|
+
];
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=use-url-synced-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/table/use-url-synced-state.ts"],"sourcesContent":["import {useMemo, useState} from 'react';\n\nconst setSearchParam = (key: string, value: string, initial: string) => {\n const url = new URL(window.location.href);\n if (value === '' || value === initial) {\n url.searchParams.delete(key);\n } else {\n url.searchParams.set(key, value);\n }\n window.history.replaceState(null, '', url.toString());\n};\n\nconst getSearchParams = (): URLSearchParams => {\n const url = new URL(window.location.href);\n return url.searchParams;\n};\n\nexport interface UseUrlSyncedStateOptions<T> {\n /**\n * The initial state\n */\n initialState: T;\n /**\n * The serializer function is used to determine how the state is translated to url search parameters.\n * Called each time the state changes.\n * @param stateValue The new state value to serialize.\n * @returns A list of [key, value] to set as url search parameters.\n * @example (filterValue) => [['filter', filterValue]] // ?filter=filterValue\n */\n serializer: (stateValue: T) => Array<[string, string]>;\n /**\n * The deserializer function is used to determine how the url parameters influence the initial state.\n * Called only once when initializing the state.\n * @param params All the search parameters of the current url.\n * @returns The initial state based on the current url.\n * @example (params) => params.get('filter') ?? '',\n */\n deserializer: (params: URLSearchParams) => T;\n /**\n * Whether the state should be synced with the url.\n * When set to false, the hook behaves just like a regular useState hook from react.\n */\n sync?: boolean;\n}\n\nexport const useUrlSyncedState = <T>({initialState, serializer, deserializer, sync}: UseUrlSyncedStateOptions<T>) => {\n const [state, setState] = useState<T>(sync ? deserializer(getSearchParams()) : initialState);\n const enhancedSetState = useMemo(() => {\n if (sync) {\n const initialSerialized = serializer(initialState).reduce(\n (acc, [key, value]) => {\n acc[key] = value;\n return acc;\n },\n {} as Record<string, string>,\n );\n return (updater: T | ((old: T) => T)) => {\n setState((old) => {\n const newValue = updater instanceof Function ? updater(old) : updater;\n serializer(newValue).forEach(([key, value]) => setSearchParam(key, value, initialSerialized[key]));\n return newValue;\n });\n };\n }\n\n return setState;\n }, [sync]);\n\n return [state, enhancedSetState] as const;\n};\n"],"names":["useMemo","useState","setSearchParam","key","value","initial","url","URL","window","location","href","searchParams","delete","set","history","replaceState","toString","getSearchParams","useUrlSyncedState","initialState","serializer","deserializer","sync","state","setState","enhancedSetState","initialSerialized","reduce","acc","updater","old","newValue","Function","forEach"],"mappings":"AAAA,SAAQA,OAAO,EAAEC,QAAQ,QAAO,QAAQ;AAExC,MAAMC,iBAAiB,CAACC,KAAaC,OAAeC;IAChD,MAAMC,MAAM,IAAIC,IAAIC,OAAOC,QAAQ,CAACC,IAAI;IACxC,IAAIN,UAAU,MAAMA,UAAUC,SAAS;QACnCC,IAAIK,YAAY,CAACC,MAAM,CAACT;IAC5B,OAAO;QACHG,IAAIK,YAAY,CAACE,GAAG,CAACV,KAAKC;IAC9B;IACAI,OAAOM,OAAO,CAACC,YAAY,CAAC,MAAM,IAAIT,IAAIU,QAAQ;AACtD;AAEA,MAAMC,kBAAkB;IACpB,MAAMX,MAAM,IAAIC,IAAIC,OAAOC,QAAQ,CAACC,IAAI;IACxC,OAAOJ,IAAIK,YAAY;AAC3B;AA8BA,OAAO,MAAMO,oBAAoB,CAAI,EAACC,YAAY,EAAEC,UAAU,EAAEC,YAAY,EAAEC,IAAI,EAA8B;IAC5G,MAAM,CAACC,OAAOC,SAAS,GAAGvB,SAAYqB,OAAOD,aAAaJ,qBAAqBE;IAC/E,MAAMM,mBAAmBzB,QAAQ;QAC7B,IAAIsB,MAAM;YACN,MAAMI,oBAAoBN,WAAWD,cAAcQ,MAAM,CACrD,CAACC,KAAK,CAACzB,KAAKC,MAAM;gBACdwB,GAAG,CAACzB,IAAI,GAAGC;gBACX,OAAOwB;YACX,GACA,CAAC;YAEL,OAAO,CAACC;gBACJL,SAAS,CAACM;oBACN,MAAMC,WAAWF,mBAAmBG,WAAWH,QAAQC,OAAOD;oBAC9DT,WAAWW,UAAUE,OAAO,CAAC,CAAC,CAAC9B,KAAKC,MAAM,GAAKF,eAAeC,KAAKC,OAAOsB,iBAAiB,CAACvB,IAAI;oBAChG,OAAO4B;gBACX;YACJ;QACJ;QAEA,OAAOP;IACX,GAAG;QAACF;KAAK;IAET,OAAO;QAACC;QAAOE;KAAiB;AACpC,EAAE"}
|
|
@@ -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
|
}
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
import { MantineColorsTuple } from '@mantine/core';
|
|
2
2
|
export declare const PlasmaColors: {
|
|
3
|
-
blue: MantineColorsTuple;
|
|
4
|
-
red: MantineColorsTuple;
|
|
5
3
|
gray: MantineColorsTuple;
|
|
6
|
-
|
|
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;
|
|
4
|
+
action: MantineColorsTuple;
|
|
15
5
|
navy: MantineColorsTuple;
|
|
16
6
|
info: MantineColorsTuple;
|
|
7
|
+
blue: MantineColorsTuple;
|
|
8
|
+
red: MantineColorsTuple;
|
|
17
9
|
critical: MantineColorsTuple;
|
|
10
|
+
teal: MantineColorsTuple;
|
|
18
11
|
new: MantineColorsTuple;
|
|
12
|
+
yellow: MantineColorsTuple;
|
|
19
13
|
warning: MantineColorsTuple;
|
|
14
|
+
green: MantineColorsTuple;
|
|
15
|
+
indigo: MantineColorsTuple;
|
|
20
16
|
lime: MantineColorsTuple;
|
|
21
17
|
success: MantineColorsTuple;
|
|
22
18
|
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;;YAchB,kBAAkB;;;;;;;;;;;;;;;CAiB1B,CAAC"}
|