@pismo/marola 0.0.1-alpha.9 → 1.0.0-beta.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/README.md +1 -1
- package/dist/{Button-B1umG8kJ.js → Button-2b1peDFT.js} +25 -26
- package/dist/{ClickAwayListener-BKznXF1d.js → ClickAwayListener-BSW-Nd-y.js} +3 -2
- package/dist/Dialog.module-DFEmFdYT.js +30 -0
- package/dist/Group-B3p31ftp.js +26 -0
- package/dist/Popup-B6ZSGIEI.js +1248 -0
- package/dist/{Portal-BcdMtRGF.js → Portal-DIeBsWdL.js} +2 -2
- package/dist/SelectButton-C8JQKaf4.js +61 -0
- package/dist/Tabs.module-jkH1Qjn7.js +22 -0
- package/dist/Toggle-BCgIItCc.js +142 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/EllipsisTooltip.css +1 -0
- package/dist/assets/Group.css +1 -0
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputSearch.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/SelectButton.css +1 -0
- package/dist/assets/Skeleton.css +1 -1
- package/dist/assets/Snackbar.css +1 -1
- package/dist/assets/SortTooltip.css +1 -1
- package/dist/assets/Stepper.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/assets/TextDisplay.css +1 -0
- package/dist/assets/Toggle.css +1 -1
- package/dist/assets/Toggle2.css +1 -0
- package/dist/assets/Typography.css +1 -1
- package/dist/combineHooksSlotProps-DVjg9PRh.js +80 -0
- package/dist/components/Advice/Advice.d.ts +17 -3
- package/dist/components/Advice/Advice.js +39 -17
- package/dist/components/Advice/Advice.stories.d.ts +18 -0
- package/dist/components/Button/Button.d.ts +6 -3
- package/dist/components/Button/Button.js +60 -65
- package/dist/components/Button/Button.stories.d.ts +3 -1
- package/dist/components/Checkbox/Checkbox.d.ts +19 -2
- package/dist/components/Checkbox/Checkbox.js +63 -40
- package/dist/components/Checkbox/Checkbox.stories.d.ts +31 -0
- package/dist/components/Chip/Chip.d.ts +39 -0
- package/dist/components/Chip/Chip.js +19 -0
- package/dist/components/Chip/Chip.stories.d.ts +42 -0
- package/dist/components/Chip/chip.test.d.ts +1 -0
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +2 -2
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/Dialog.js +13 -13
- package/dist/components/Dialog/Dialog.stories.d.ts +10 -10
- package/dist/components/Dialog/{Title.d.ts → DialogTitle.d.ts} +3 -3
- package/dist/components/Dialog/DialogTitle.js +29 -0
- package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +7 -0
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +23 -0
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +31 -0
- package/dist/components/Icon/Icon.d.ts +8 -15
- package/dist/components/Icon/Icon.js +108 -57
- package/dist/components/Icon/Icon.stories.d.ts +14 -0
- package/dist/components/Icon/types.d.ts +5 -0
- package/dist/components/Icon/types.js +1 -0
- package/dist/components/IconButton/Icon.stories.d.ts +15 -0
- package/dist/components/IconButton/IconButton.d.ts +18 -2
- package/dist/components/IconButton/IconButton.js +58 -63
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +241 -230
- package/dist/components/InputSearch/InputSearch.d.ts +7 -9
- package/dist/components/InputSearch/InputSearch.js +30 -25
- package/dist/components/InputSearch/InputSearch.stories.d.ts +21 -4
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +36 -6
- package/dist/components/PageHeader/PageHeader.js +83 -47
- package/dist/components/PageHeader/PageHeader.stories.d.ts +2 -31
- package/dist/components/Pagination/Pagination.d.ts +24 -5
- package/dist/components/Pagination/Pagination.js +127 -109
- package/dist/components/Pagination/Pagination.stories.d.ts +17 -0
- package/dist/components/Select/Select.d.ts +26 -0
- package/dist/components/Select/Select.js +857 -0
- package/dist/components/Select/Select.stories.d.ts +22 -0
- package/dist/components/Select/SelectButton.d.ts +12 -0
- package/dist/components/Select/SelectButton.js +8 -0
- package/dist/components/Skeleton/Skeleton.d.ts +10 -3
- package/dist/components/Skeleton/Skeleton.js +16 -19
- package/dist/components/Skeleton/Skeleton.stories.d.ts +14 -0
- package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +14 -0
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +16 -0
- package/dist/components/Snackbar/Snackbar.d.ts +19 -5
- package/dist/components/Snackbar/Snackbar.js +247 -230
- package/dist/components/Snackbar/Snackbar.stories.d.ts +319 -0
- package/dist/components/SortTooltip/SortTooltip.d.ts +3 -1
- package/dist/components/SortTooltip/SortTooltip.js +55 -29
- package/dist/components/Stepper/Stepper.d.ts +11 -1
- package/dist/components/Stepper/Stepper.js +37 -22
- package/dist/components/Stepper/Stepper.stories.d.ts +16 -0
- package/dist/components/Table/Table.d.ts +33 -16
- package/dist/components/Table/Table.js +106 -91
- package/dist/components/Table/Table.stories.d.ts +29 -0
- package/dist/components/Table/_Table.TBody.stories.d.ts +14 -0
- package/dist/components/Table/_Table.THead.stories.d.ts +14 -0
- package/dist/components/Table/_Table.Td.stories.d.ts +16 -0
- package/dist/components/Table/_Table.Th.stories.d.ts +15 -0
- package/dist/components/Table/_Table.Tr.stories.d.ts +15 -0
- package/dist/components/Tabs/Tab.d.ts +5 -0
- package/dist/components/Tabs/Tab.js +179 -6
- package/dist/components/Tabs/Tab.stories.d.ts +15 -0
- package/dist/components/Tabs/TabPanel.d.ts +4 -0
- package/dist/components/Tabs/TabPanel.js +12 -12
- package/dist/components/Tabs/TabPanel.stories.d.ts +14 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -1
- package/dist/components/Tabs/Tabs.js +242 -668
- package/dist/components/Tabs/Tabs.stories.d.ts +14 -0
- package/dist/components/TextDisplay/TextDisplay.d.ts +23 -0
- package/dist/components/TextDisplay/TextDisplay.js +37 -0
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +13 -0
- package/dist/components/TextDisplay/textDisplay.test.d.ts +1 -0
- package/dist/components/Toggle/Toggle.js +143 -129
- package/dist/components/ToggleGroup/Group.d.ts +18 -0
- package/dist/components/ToggleGroup/Group.js +7 -0
- package/dist/components/ToggleGroup/Group.test.d.ts +1 -0
- package/dist/components/ToggleGroup/Toggle.d.ts +15 -0
- package/dist/components/ToggleGroup/Toggle.js +17 -0
- package/dist/components/ToggleGroup/Toggle.test.d.ts +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +2 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +6 -0
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +25 -0
- package/dist/components/Tooltip/Tooltip.d.ts +22 -6
- package/dist/components/Tooltip/Tooltip.js +114 -1339
- package/dist/components/Tooltip/Tooltip.stories.d.ts +35 -0
- package/dist/components/Typography/Typography.d.ts +5 -2
- package/dist/components/Typography/Typography.js +58 -74
- package/dist/components/Typography/Typography.stories.d.ts +1 -0
- package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +11 -0
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +50 -0
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +21 -0
- package/dist/{index-CqjC7P5Y.js → index-CH45lKw7.js} +333 -307
- package/dist/{index-BNWbc5Kh.js → index-CjW42-M-.js} +3108 -3152
- package/dist/main.d.ts +10 -1
- package/dist/main.js +74 -55
- package/dist/marola.css +1 -0
- package/dist/{useButton-Bc8IAgyk.js → useButton-DNk3wrQp.js} +3 -4
- package/dist/useCompoundItem-D1iRfg8D.js +84 -0
- package/dist/useEventCallback-xTG9piMa.js +45 -0
- package/dist/useList-B0hog_3-.js +436 -0
- package/dist/utils/styleStrings.d.ts +1 -1
- package/dist/utils/styleStrings.js +7 -7
- package/package.json +4 -4
- package/dist/Dialog.module-CGVM5V_D.js +0 -15
- package/dist/Tab-CRwnhsj5.js +0 -254
- package/dist/Tabs.module-yYcTJnj6.js +0 -103
- package/dist/_commonjsHelpers-CT_km90n.js +0 -30
- package/dist/assets/global.css +0 -1
- package/dist/components/Button/Button.stories.js +0 -40
- package/dist/components/Dialog/Dialog.stories.js +0 -59
- package/dist/components/Dialog/Title.js +0 -29
- package/dist/components/Input/Input.stories.js +0 -106
- package/dist/components/InputSearch/InputSearch.stories.js +0 -36
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +0 -38
- package/dist/components/PageHeader/PageHeader.stories.js +0 -49
- package/dist/components/Toggle/Toggle.stories.js +0 -33
- package/dist/components/Typography/Typography.stories.js +0 -30
- package/dist/components/Typography/typography.test.js +0 -11357
- package/dist/magic-string.es-O_8lTkE3.js +0 -738
- package/dist/objectWithoutPropertiesLoose-D7Cp0Pg_.js +0 -26
- package/dist/utils/styleStrings.test.js +0 -41
- package/dist/vi.Y_w82WR8-Df0JUamG.js +0 -9860
package/dist/main.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This file is automatically generated. Any changes will be lost.
|
|
3
|
+
* run "yarn export-files" or "yarn build" to regenerate it.
|
|
4
|
+
*/
|
|
2
5
|
export * from './components/Advice/Advice';
|
|
3
6
|
export * from './components/Button/Button';
|
|
4
7
|
export * from './components/Checkbox/Checkbox';
|
|
8
|
+
export * from './components/Chip/Chip';
|
|
5
9
|
export * from './components/Dialog/Dialog';
|
|
10
|
+
export * from './components/EllipsisTooltip/EllipsisTooltip';
|
|
6
11
|
export * from './components/Icon/Icon';
|
|
7
12
|
export * from './components/IconButton/IconButton';
|
|
8
13
|
export * from './components/Input/Input';
|
|
@@ -10,12 +15,16 @@ export * from './components/InputSearch/InputSearch';
|
|
|
10
15
|
export * from './components/LoadingSpinner/LoadingSpinner';
|
|
11
16
|
export * from './components/PageHeader/PageHeader';
|
|
12
17
|
export * from './components/Pagination/Pagination';
|
|
18
|
+
export * from './components/Select/Select';
|
|
13
19
|
export * from './components/Skeleton/Skeleton';
|
|
14
20
|
export * from './components/Snackbar/Snackbar';
|
|
15
21
|
export * from './components/SortTooltip/SortTooltip';
|
|
16
22
|
export * from './components/Stepper/Stepper';
|
|
17
23
|
export * from './components/Table/Table';
|
|
18
24
|
export * from './components/Tabs/Tabs';
|
|
25
|
+
export * from './components/TextDisplay/TextDisplay';
|
|
19
26
|
export * from './components/Toggle/Toggle';
|
|
27
|
+
export * from './components/ToggleGroup/ToggleGroup';
|
|
20
28
|
export * from './components/Tooltip/Tooltip';
|
|
21
29
|
export * from './components/Typography/Typography';
|
|
30
|
+
export * from './contexts/SnackbarProvider/SnackbarProvider';
|
package/dist/main.js
CHANGED
|
@@ -1,59 +1,78 @@
|
|
|
1
|
-
import './assets/global.css';
|
|
2
|
-
/* empty css */
|
|
3
1
|
import { Advice as e } from "./components/Advice/Advice.js";
|
|
4
|
-
import { Button as
|
|
5
|
-
import { Checkbox as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
2
|
+
import { Button as p } from "./components/Button/Button.js";
|
|
3
|
+
import { Checkbox as f } from "./components/Checkbox/Checkbox.js";
|
|
4
|
+
import { C as m, T as n } from "./Toggle-BCgIItCc.js";
|
|
5
|
+
import { Dialog as i } from "./components/Dialog/Dialog.js";
|
|
6
|
+
import { EllipsisTooltip as s } from "./components/EllipsisTooltip/EllipsisTooltip.js";
|
|
7
|
+
import { Icon as g } from "./components/Icon/Icon.js";
|
|
8
|
+
import { IconButton as u } from "./components/IconButton/IconButton.js";
|
|
9
|
+
import { Input as d } from "./components/Input/Input.js";
|
|
10
|
+
import { InputSearch as C } from "./components/InputSearch/InputSearch.js";
|
|
11
|
+
import { LoadingSpinner as D } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
12
|
+
import { PageHeader as y } from "./components/PageHeader/PageHeader.js";
|
|
13
|
+
import { Pagination as B, paginationDefaultTranslations as G } from "./components/Pagination/Pagination.js";
|
|
14
|
+
import { Select as A, SelectOption as H } from "./components/Select/Select.js";
|
|
15
|
+
import { Skeleton as L, SkeletonCircle as O, SkeletonTable as j } from "./components/Skeleton/Skeleton.js";
|
|
16
|
+
import { Snackbar as w } from "./components/Snackbar/Snackbar.js";
|
|
17
|
+
import { SortTooltip as F, sortTooltipDefaultTranslations as J } from "./components/SortTooltip/SortTooltip.js";
|
|
18
|
+
import { Stepper as M } from "./components/Stepper/Stepper.js";
|
|
19
|
+
import { TBody as Q, THead as R, Table as U, Td as V, Th as W, Tr as X } from "./components/Table/Table.js";
|
|
20
|
+
import { Tabs as Z } from "./components/Tabs/Tabs.js";
|
|
21
|
+
import { TextDisplay as $ } from "./components/TextDisplay/TextDisplay.js";
|
|
22
|
+
import { Toggle as ro } from "./components/Toggle/Toggle.js";
|
|
23
|
+
import { G as to } from "./Group-B3p31ftp.js";
|
|
24
|
+
import { Tooltip as ao } from "./components/Tooltip/Tooltip.js";
|
|
25
|
+
import { Text as xo, Typography as mo } from "./components/Typography/Typography.js";
|
|
26
|
+
import { SnackbarContext as lo, SnackbarProvider as io, useSnackbar as To } from "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
27
|
+
import { default as co } from "./components/Dialog/DialogTitle.js";
|
|
28
|
+
import { default as So } from "./components/Dialog/Content.js";
|
|
29
|
+
import { default as bo } from "./components/Dialog/Actions.js";
|
|
30
|
+
import { Tab as Co } from "./components/Tabs/Tab.js";
|
|
31
|
+
import { TabPanel as Do } from "./components/Tabs/TabPanel.js";
|
|
28
32
|
export {
|
|
29
|
-
|
|
33
|
+
bo as Actions,
|
|
30
34
|
e as Advice,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
u as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
D as
|
|
43
|
-
y as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
Q as
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
p as Button,
|
|
36
|
+
f as Checkbox,
|
|
37
|
+
m as Chip,
|
|
38
|
+
So as Content,
|
|
39
|
+
i as Dialog,
|
|
40
|
+
co as DialogTitle,
|
|
41
|
+
s as EllipsisTooltip,
|
|
42
|
+
g as Icon,
|
|
43
|
+
u as IconButton,
|
|
44
|
+
d as Input,
|
|
45
|
+
C as InputSearch,
|
|
46
|
+
D as LoadingSpinner,
|
|
47
|
+
y as PageHeader,
|
|
48
|
+
B as Pagination,
|
|
49
|
+
A as Select,
|
|
50
|
+
H as SelectOption,
|
|
51
|
+
L as Skeleton,
|
|
52
|
+
O as SkeletonCircle,
|
|
53
|
+
j as SkeletonTable,
|
|
54
|
+
w as Snackbar,
|
|
55
|
+
lo as SnackbarContext,
|
|
56
|
+
io as SnackbarProvider,
|
|
57
|
+
F as SortTooltip,
|
|
58
|
+
M as Stepper,
|
|
59
|
+
Q as TBody,
|
|
60
|
+
R as THead,
|
|
61
|
+
Co as Tab,
|
|
62
|
+
Do as TabPanel,
|
|
63
|
+
U as Table,
|
|
64
|
+
Z as Tabs,
|
|
65
|
+
V as Td,
|
|
66
|
+
xo as Text,
|
|
67
|
+
$ as TextDisplay,
|
|
68
|
+
W as Th,
|
|
69
|
+
ro as Toggle,
|
|
70
|
+
to as ToggleGroup,
|
|
71
|
+
n as ToggleGroupItem,
|
|
72
|
+
ao as Tooltip,
|
|
73
|
+
X as Tr,
|
|
74
|
+
mo as Typography,
|
|
75
|
+
G as paginationDefaultTranslations,
|
|
76
|
+
J as sortTooltipDefaultTranslations,
|
|
77
|
+
To as useSnackbar
|
|
59
78
|
};
|
package/dist/marola.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--secondary-orange: #ffa945;--secondary-orange-rgb: 255, 169, 69;--secondary-orange-dark: #fe8d53;--secondary-orange-dark-rgb: 254, 141, 83;--secondary-orange-light: #525061;--secondary-orange-light-rgb: 82, 80, 97;--secondary-green: #99dec3;--secondary-green-rgb: 153, 222, 195;--secondary-green-dark: #6acbb1;--secondary-green-dark-rgb: 106, 203, 177;--secondary-green-darker: #31aa7e;--secondary-green-darker-rgb: 49, 170, 126;--secondary-green-light: #baedd9;--secondary-green-light-rgb: 186, 237, 217;--accent: #1897f3;--accent-rgb: 24, 151, 243;--accent-dark: #1672c7;--accent-dark-rgb: 22, 114, 199;--accent-light: #4fb1f9;--accent-light-rgb: 79, 177, 249;--accent-lighter: #8ae1fd;--accent-lighter-rgb: 138, 225, 253;--alert: #df4561;--alert-rgb: 223, 69, 97;--alert-dark: #bb2b45;--alert-dark-rgb: 187, 43, 69;--accent-alert-light: #f37c91;--accent-alert-light-rgb: 243, 124, 145;--cream: #fafafa;--cream-rgb: 250, 250, 250;--hover: #42b7ff;--hover-rgb: 66, 183, 255;--active: #0a75cc;--active-rgb: 10, 117, 204;--border: #d9d9d9;--border-rgb: 217, 217, 217}:root{--gray-100: #16161e;--gray-100-rgb: 22, 22, 30;--gray-95: #3f3d4b;--gray-95-rgb: 63, 61, 75;--gray-90: #525061;--gray-90-rgb: 82, 80, 97;--gray-75: #838192;--gray-75-rgb: 131, 129, 146;--gray-50: #bcbac8;--gray-50-rgb: 188, 186, 200;--gray-25: #dbdae2;--gray-25-rgb: 219, 218, 226;--gray-10: #ebeaf0;--gray-10-rgb: 235, 234, 240;--gray-5: #f7f7fc;--gray-5-rgb: 247, 247, 252;--black-100: #000000;--black-100-rgb: 0, 0, 0;--black-75: #616161;--black-75-rgb: 97, 97, 97;--black-50: #838192;--black-50-rgb: 131, 129, 146;--black-25: #bcbac8;--black-25-rgb: 188, 186, 200;--black-10: #ebeaf0;--black-10-rgb: 235, 234, 240;--white-100: #ffffff;--white-100-rgb: 255, 255, 255}:root{--heading-font-weight: 700;--heading-font-size-1: 3.75rem;--heading-line-height-1: 4.875rem;--heading-font-size-2: 3rem;--heading-line-height-2: 4rem;--heading-font-size-3: 2.25rem;--heading-line-height-3: 2.875rem;--heading-font-size-4: 1.875rem;--heading-line-height-4: 2.375rem;--heading-font-size-5: 1.5rem;--heading-line-height-5: 2rem;--heading-font-size-6: 1.25rem;--heading-line-height-6: 1.75rem;--base-font-size: .875rem;--base-line-height: 1.375rem;--base-weight: 400;--base-bold: 700;--base-font-size-sm: .75rem;--base-line-height-sm: 1.25rem;--base-font-size-lg: 1rem;--base-line-height-lg: 1.5rem;--base-font-size-xl: 1.25rem;--base-line-height-xl: 1.75rem;--base-font-size-xxl: 1.5rem;--base-line-height-xxl: 2rem}:root{--heading-font-weight: 700;--heading-font-size-xl: 3.75rem;--heading-line-height-xl: 4.875rem;--heading-font-size-l: 3rem;--heading-line-height-l: 3.9375rem;--heading-font-size: 2.25rem;--heading-line-height: 2.875rem;--heading-font-size-s: 1.5rem;--heading-line-height-s: 2rem;--body-font-size: 1rem;--body-line-height: 1.3125rem;--body-weight: normal;--body-bold: bold;--body-font-size-large: 1.5rem;--body-line-height-large: 1.625rem;--body-font-size-medium: 1.125;--body-line-height-medium: 1rem;--body-font-size-small: .875rem;--body-line-height-small: 1.125rem;--body-font-size-tiny: .75rem;--body-line-height-tiny: 1rem;--quote-font-size-large: 1.5rem;--quote-line-height-large: 2rem;--quote-font-weight-large: normal;--quote-font-size: 1rem;--quote-line-height: 1.3125rem;--quote-font-weight: normal;--form-input-font-size: 1rem;--form-input-line-height: 1.3125rem;--form-input-font-weight: bold;--form-hint-font-size: .875rem;--form-hint-line-height: 1.3125rem;--form-hint-font-weight: normal;--form-label-font-size: .875rem;--form-label-line-height: 1.3125rem;--form-label-font-weight: normal;--form-dropdown-font-size: 1rem;--form-dropdown-line-height: 1.3125rem;--form-dropdown-font-weight: normal;--table-font-size: .875rem;--table-line-height: 1.0625rem;--table-header-font-weight: bold;--table-body-font-weight: normal;--table-body-secondary-line-height: 1.3125rem;--button-font-size: 1rem;--button-line-height: 1.25rem;--button-font-weight: bold;--font-size-small: .75rem;--font-weight-small: 400;--font-line-height-small: 1.25rem;--font-weight-700: 700}:root{--spacing: 8px;--border-radius: 6px;--border-radius-soft: 4px;--transition-soft: .3s;--transition-long: .75s}*{box-sizing:border-box}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as S, b as D, f as k } from "./index-CH45lKw7.js";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { u as S, e as k } from "./index-CqjC7P5Y.js";
|
|
4
3
|
import { u as _ } from "./useIsFocusVisible-BH4IAdcw.js";
|
|
5
4
|
function v(p) {
|
|
6
5
|
const {
|
|
@@ -16,7 +15,7 @@ function v(p) {
|
|
|
16
15
|
}, []);
|
|
17
16
|
return [c, u];
|
|
18
17
|
}
|
|
19
|
-
function
|
|
18
|
+
function W(p = {}) {
|
|
20
19
|
const {
|
|
21
20
|
disabled: n = !1,
|
|
22
21
|
focusableWhenDisabled: l,
|
|
@@ -102,5 +101,5 @@ function h(p = {}) {
|
|
|
102
101
|
};
|
|
103
102
|
}
|
|
104
103
|
export {
|
|
105
|
-
|
|
104
|
+
W as u
|
|
106
105
|
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { u as g } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
3
|
+
let I = 0;
|
|
4
|
+
function x(e) {
|
|
5
|
+
const [n, t] = o.useState(e), u = e || n;
|
|
6
|
+
return o.useEffect(() => {
|
|
7
|
+
n == null && (I += 1, t(`mui-${I}`));
|
|
8
|
+
}, [n]), u;
|
|
9
|
+
}
|
|
10
|
+
const p = o.useId;
|
|
11
|
+
function y(e) {
|
|
12
|
+
if (p !== void 0) {
|
|
13
|
+
const n = p();
|
|
14
|
+
return e ?? n;
|
|
15
|
+
}
|
|
16
|
+
return x(e);
|
|
17
|
+
}
|
|
18
|
+
const b = /* @__PURE__ */ o.createContext(null);
|
|
19
|
+
process.env.NODE_ENV !== "production" && (b.displayName = "CompoundComponentContext");
|
|
20
|
+
function S(e) {
|
|
21
|
+
const n = Array.from(e.keys()).map((t) => {
|
|
22
|
+
const u = e.get(t);
|
|
23
|
+
return {
|
|
24
|
+
key: t,
|
|
25
|
+
subitem: u
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
return n.sort((t, u) => {
|
|
29
|
+
const s = t.subitem.ref.current, r = u.subitem.ref.current;
|
|
30
|
+
return s === null || r === null || s === r ? 0 : s.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_PRECEDING ? 1 : -1;
|
|
31
|
+
}), new Map(n.map((t) => [t.key, t.subitem]));
|
|
32
|
+
}
|
|
33
|
+
function E() {
|
|
34
|
+
const [e, n] = o.useState(/* @__PURE__ */ new Map()), t = o.useRef(/* @__PURE__ */ new Set()), u = o.useCallback(function(a) {
|
|
35
|
+
t.current.delete(a), n((m) => {
|
|
36
|
+
const c = new Map(m);
|
|
37
|
+
return c.delete(a), c;
|
|
38
|
+
});
|
|
39
|
+
}, []), s = o.useCallback(function(a, m) {
|
|
40
|
+
let c;
|
|
41
|
+
return typeof a == "function" ? c = a(t.current) : c = a, t.current.add(c), n((C) => {
|
|
42
|
+
const l = new Map(C);
|
|
43
|
+
return l.set(c, m), l;
|
|
44
|
+
}), {
|
|
45
|
+
id: c,
|
|
46
|
+
deregister: () => u(c)
|
|
47
|
+
};
|
|
48
|
+
}, [u]), r = o.useMemo(() => S(e), [e]), i = o.useCallback(function(a) {
|
|
49
|
+
return Array.from(r.keys()).indexOf(a);
|
|
50
|
+
}, [r]);
|
|
51
|
+
return {
|
|
52
|
+
contextValue: o.useMemo(() => ({
|
|
53
|
+
getItemIndex: i,
|
|
54
|
+
registerItem: s,
|
|
55
|
+
totalSubitemCount: e.size
|
|
56
|
+
}), [i, s, e.size]),
|
|
57
|
+
subitems: r
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function N(e, n) {
|
|
61
|
+
const t = o.useContext(b);
|
|
62
|
+
if (t === null)
|
|
63
|
+
throw new Error("useCompoundItem must be used within a useCompoundParent");
|
|
64
|
+
const {
|
|
65
|
+
registerItem: u
|
|
66
|
+
} = t, [s, r] = o.useState(typeof e == "function" ? void 0 : e);
|
|
67
|
+
return g(() => {
|
|
68
|
+
const {
|
|
69
|
+
id: i,
|
|
70
|
+
deregister: d
|
|
71
|
+
} = u(e, n);
|
|
72
|
+
return r(i), d;
|
|
73
|
+
}, [u, n, e]), {
|
|
74
|
+
id: s,
|
|
75
|
+
index: s !== void 0 ? t.getItemIndex(s) : -1,
|
|
76
|
+
totalItemCount: t.totalSubitemCount
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
b as C,
|
|
81
|
+
N as a,
|
|
82
|
+
E as b,
|
|
83
|
+
y as u
|
|
84
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { P as a } from "./index-CH45lKw7.js";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { u as m } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
4
|
+
function s(e, n) {
|
|
5
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...o) {
|
|
6
|
+
return e(...o) || n(...o);
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function d(e) {
|
|
10
|
+
const {
|
|
11
|
+
prototype: n = {}
|
|
12
|
+
} = e;
|
|
13
|
+
return !!n.isReactComponent;
|
|
14
|
+
}
|
|
15
|
+
function f(e, n, t, o, l) {
|
|
16
|
+
const u = e[n], p = l || n;
|
|
17
|
+
if (u == null || // When server-side rendering React doesn't warn either.
|
|
18
|
+
// This is not an accurate check for SSR.
|
|
19
|
+
// This is only in place for Emotion compat.
|
|
20
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
21
|
+
typeof window > "u")
|
|
22
|
+
return null;
|
|
23
|
+
let r;
|
|
24
|
+
const i = u.type;
|
|
25
|
+
return typeof i == "function" && !d(i) && (r = "Did you accidentally use a plain function component for an element instead?"), r !== void 0 ? new Error(`Invalid ${o} \`${p}\` supplied to \`${t}\`. Expected an element that can hold a ref. ${r} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
26
|
+
}
|
|
27
|
+
const y = s(a.element, f);
|
|
28
|
+
y.isRequired = s(a.element.isRequired, f);
|
|
29
|
+
function E(e) {
|
|
30
|
+
return e && e.ownerDocument || document;
|
|
31
|
+
}
|
|
32
|
+
function h(e) {
|
|
33
|
+
const n = c.useRef(e);
|
|
34
|
+
return m(() => {
|
|
35
|
+
n.current = e;
|
|
36
|
+
}), c.useRef((...t) => (
|
|
37
|
+
// @ts-expect-error hide `this`
|
|
38
|
+
(0, n.current)(...t)
|
|
39
|
+
)).current;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
y as e,
|
|
43
|
+
E as o,
|
|
44
|
+
h as u
|
|
45
|
+
};
|