@pismo/marola 1.0.0-beta.3 → 1.0.0-beta.30
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/dist/{Button-2b1peDFT.js → Button-BAljjMv3.js} +2 -2
- package/dist/{ClickAwayListener-BSW-Nd-y.js → ClickAwayListener-DbEYZpyh.js} +4 -3
- package/dist/Dialog.module-D9e4RsKo.js +30 -0
- package/dist/{Popup-B6ZSGIEI.js → Popup-Ck3XlWMq.js} +3 -3
- package/dist/{Portal-DIeBsWdL.js → Portal-oY3enyAm.js} +2 -2
- package/dist/SelectButton-BlVl6pJn.js +70 -0
- package/dist/{Tabs.module-jkH1Qjn7.js → Tabs.module-BGGTkDc5.js} +7 -7
- package/dist/Toggle-Buew6bzm.js +182 -0
- package/dist/assets/Adornment.css +1 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Autocomplete.css +1 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/ResultWithChips.css +1 -0
- package/dist/assets/SelectButton.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/StepperNavigator.css +1 -0
- package/dist/assets/Table.css +1 -1
- package/dist/assets/Tabs.css +1 -1
- package/dist/assets/TextDisplay.css +1 -1
- package/dist/assets/Toggle.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/{combineHooksSlotProps-DVjg9PRh.js → combineHooksSlotProps-C-zYvfnF.js} +1 -1
- package/dist/components/Adornment/Adornment.d.ts +20 -0
- package/dist/components/Adornment/Adornment.js +13 -0
- package/dist/components/Adornment/Adornment.stories.d.ts +14 -0
- package/dist/components/Adornment/adornment.test.d.ts +1 -0
- package/dist/components/Advice/Advice.d.ts +32 -17
- package/dist/components/Advice/Advice.js +39 -40
- package/dist/components/Advice/Advice.stories.d.ts +4 -3
- package/dist/components/Autocomplete/Autocomplete.d.ts +20 -0
- package/dist/components/Autocomplete/Autocomplete.js +679 -0
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +23 -0
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/Button.js +51 -49
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.d.ts +6 -12
- package/dist/components/Chip/Chip.js +7 -5
- package/dist/components/Chip/Chip.stories.d.ts +5 -14
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +3 -3
- package/dist/components/Dialog/Backdrop.js +8 -7
- package/dist/components/Dialog/CloseIconButton.d.ts +1 -2
- package/dist/components/Dialog/CloseIconButton.js +15 -18
- package/dist/components/Dialog/Dialog.d.ts +9 -6
- package/dist/components/Dialog/Dialog.js +139 -139
- package/dist/components/Dialog/Dialog.stories.d.ts +50 -46
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +30 -17
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +2 -1
- package/dist/components/Icon/Icon.js +93 -47
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.d.ts +24 -5
- package/dist/components/Input/Input.js +297 -284
- package/dist/components/Input/Input.stories.d.ts +2 -21
- package/dist/components/InputSearch/InputSearch.stories.d.ts +1 -21
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Pagination/Pagination.d.ts +5 -1
- package/dist/components/Pagination/Pagination.js +87 -185
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/Pagination/usePagination.d.ts +90 -0
- package/dist/components/Pagination/usePagination.js +79 -0
- package/dist/components/ResultWithChips/ResultWithChips.d.ts +12 -0
- package/dist/components/ResultWithChips/ResultWithChips.js +33 -0
- package/dist/components/RowItem/RowItem.d.ts +25 -0
- package/dist/components/RowItem/RowItem.js +20 -0
- package/dist/components/RowItem/RowItem.stories.d.ts +17 -0
- package/dist/components/RowItem/rowItem.test.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +7 -0
- package/dist/components/Select/Select.js +409 -365
- package/dist/components/Select/SelectButton.d.ts +1 -0
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +3 -1
- package/dist/components/Skeleton/Skeleton.js +18 -12
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.js +94 -94
- package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
- package/dist/components/SortTooltip/SortTooltip.js +46 -46
- package/dist/components/Stepper/Stepper.js +35 -35
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +43 -0
- package/dist/components/StepperNavigator/StepperNavigator.js +56 -0
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +16 -0
- package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +3 -1
- package/dist/components/Table/Table.js +88 -85
- package/dist/components/Table/Table.stories.d.ts +1 -1
- package/dist/components/Tabs/Tab.d.ts +5 -3
- package/dist/components/Tabs/Tab.js +38 -36
- package/dist/components/Tabs/TabPanel.d.ts +4 -2
- package/dist/components/Tabs/TabPanel.js +51 -40
- package/dist/components/Tabs/Tabs.d.ts +6 -4
- package/dist/components/Tabs/Tabs.js +131 -128
- package/dist/components/TextDisplay/TextDisplay.d.ts +9 -3
- package/dist/components/TextDisplay/TextDisplay.js +45 -31
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +2 -1
- package/dist/components/Toggle/Toggle.js +56 -56
- package/dist/components/ToggleGroup/Toggle.js +5 -4
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +3 -1
- package/dist/components/Tooltip/Tooltip.js +4 -4
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
- package/dist/components/Typography/Typography.js +47 -47
- package/dist/{index-CjW42-M-.js → index-bQFToy-I.js} +1 -1
- package/dist/main.d.ts +5 -0
- package/dist/main.js +85 -76
- package/dist/ownerDocument-YGhwAnr1.js +33 -0
- package/dist/{useButton-DNk3wrQp.js → useButton-DcihopJG.js} +1 -1
- package/dist/useCompoundItem-B7Eo_qZk.js +68 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useList-B0hog_3-.js → useList-B9C55YB7.js} +2 -2
- package/dist/{index-CH45lKw7.js → useSlotProps-C_I1kEHr.js} +99 -99
- package/package.json +9 -3
- package/dist/Dialog.module-DFEmFdYT.js +0 -30
- package/dist/SelectButton-C8JQKaf4.js +0 -61
- package/dist/Toggle-BCgIItCc.js +0 -142
- package/dist/useCompoundItem-D1iRfg8D.js +0 -84
- package/dist/useEventCallback-xTG9piMa.js +0 -45
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pismo/marola",
|
|
3
3
|
"description": "CDX tribe component library",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.30",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -34,13 +34,16 @@
|
|
|
34
34
|
"prebuild": "yarn export-files & yarn generate-icon-types",
|
|
35
35
|
"build": "tsc --p ./tsconfig-build.json && vite build && mv ./dist/assets/marola.css ./dist",
|
|
36
36
|
"postbuild": "storybook build --disable-telemetry --output-dir build",
|
|
37
|
-
"storybook": "storybook dev -p 6006"
|
|
37
|
+
"storybook": "storybook dev -p 6006",
|
|
38
|
+
"prepare": "husky"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
41
|
"react": "^18.2.0",
|
|
41
42
|
"react-dom": "^18.2.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
45
|
+
"@commitlint/cli": "^19.3.0",
|
|
46
|
+
"@commitlint/config-conventional": "^19.2.2",
|
|
44
47
|
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
|
45
48
|
"@storybook/addon-a11y": "^8.0.8",
|
|
46
49
|
"@storybook/addon-essentials": "^8.0.8",
|
|
@@ -50,6 +53,7 @@
|
|
|
50
53
|
"@storybook/react": "^8.0.8",
|
|
51
54
|
"@storybook/react-vite": "^8.0.8",
|
|
52
55
|
"@storybook/test": "^8.0.8",
|
|
56
|
+
"@testing-library/jest-dom": "^6.4.6",
|
|
53
57
|
"@testing-library/react": "^15.0.5",
|
|
54
58
|
"@types/node": "^20.12.2",
|
|
55
59
|
"@types/react": "^18.2.66",
|
|
@@ -57,6 +61,7 @@
|
|
|
57
61
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
58
62
|
"@typescript-eslint/parser": "^7.6.0",
|
|
59
63
|
"@vitejs/plugin-react": "^4.2.1",
|
|
64
|
+
"@vitest/coverage-v8": "^1.4.0",
|
|
60
65
|
"clsx": "^2.1.0",
|
|
61
66
|
"commitlint": "^19.2.1",
|
|
62
67
|
"cypress": "^13.8.1",
|
|
@@ -70,6 +75,7 @@
|
|
|
70
75
|
"glob": "^10.3.14",
|
|
71
76
|
"husky": "^9.0.11",
|
|
72
77
|
"jsdom": "^24.0.0",
|
|
78
|
+
"lint-staged": "^15.2.7",
|
|
73
79
|
"prettier": "^3.2.5",
|
|
74
80
|
"react": "^18.2.0",
|
|
75
81
|
"react-dom": "^18.2.0",
|
|
@@ -91,4 +97,4 @@
|
|
|
91
97
|
"@mui/base": "^5.0.0-beta.40",
|
|
92
98
|
"@mui/material": "^5.15.15"
|
|
93
99
|
}
|
|
94
|
-
}
|
|
100
|
+
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import './assets/Dialog.css';
|
|
2
|
-
const _ = "_dialog__subtitle_yi7uo_52", o = "_dialog_yi7uo_52", a = "_dialog__backdrop_yi7uo_87", y = "_dialog__panel_yi7uo_95", i = "_dialog__title_yi7uo_56", p = "_dialog__divider_yi7uo_121", t = "_dialog__actions_yi7uo_134", u = {
|
|
3
|
-
"u-typography-h1": "_u-typography-h1_yi7uo_1",
|
|
4
|
-
"u-typography-h2": "_u-typography-h2_yi7uo_8",
|
|
5
|
-
"u-typography-h3": "_u-typography-h3_yi7uo_15",
|
|
6
|
-
"u-typography-h4": "_u-typography-h4_yi7uo_22",
|
|
7
|
-
"u-typography-h5": "_u-typography-h5_yi7uo_29",
|
|
8
|
-
"u-typography-h6": "_u-typography-h6_yi7uo_36",
|
|
9
|
-
"u-typography-base": "_u-typography-base_yi7uo_43",
|
|
10
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_yi7uo_48",
|
|
11
|
-
"u-typography-base--xl": "_u-typography-base--xl_yi7uo_52",
|
|
12
|
-
dialog__subtitle: _,
|
|
13
|
-
"u-typography-base--lg": "_u-typography-base--lg_yi7uo_56",
|
|
14
|
-
"dialog__title--small": "_dialog__title--small_yi7uo_56",
|
|
15
|
-
"u-typography-base--sm": "_u-typography-base--sm_yi7uo_60",
|
|
16
|
-
"u-typography-base--bold": "_u-typography-base--bold_yi7uo_64",
|
|
17
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_yi7uo_67",
|
|
18
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_yi7uo_70",
|
|
19
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_yi7uo_73",
|
|
20
|
-
dialog: o,
|
|
21
|
-
dialog__backdrop: a,
|
|
22
|
-
dialog__panel: y,
|
|
23
|
-
dialog__title: i,
|
|
24
|
-
dialog__divider: p,
|
|
25
|
-
"dialog__close-icon": "_dialog__close-icon_yi7uo_125",
|
|
26
|
-
dialog__actions: t
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
u as s
|
|
30
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import './assets/SelectButton.css';
|
|
2
|
-
import { jsxs as r, jsx as _ } from "react/jsx-runtime";
|
|
3
|
-
import * as o from "react";
|
|
4
|
-
import { forwardRef as u } from "react";
|
|
5
|
-
import { c as b } from "./clsx-DB4S2d7J.js";
|
|
6
|
-
import { Typography as p } from "./components/Typography/Typography.js";
|
|
7
|
-
const m = "_select__listbox__option__text_1mn0r_64", g = "_select_1mn0r_64", x = "_select__popup_1mn0r_80", d = "_select__listbox_1mn0r_64", w = "_select__listbox__option_1mn0r_64", C = "_select__listbox__option__icon_1mn0r_101", f = "_select__list__option__icon_1mn0r_122", e = {
|
|
8
|
-
"u-typography-h1": "_u-typography-h1_1mn0r_1",
|
|
9
|
-
"u-typography-h2": "_u-typography-h2_1mn0r_8",
|
|
10
|
-
"u-typography-h3": "_u-typography-h3_1mn0r_15",
|
|
11
|
-
"u-typography-h4": "_u-typography-h4_1mn0r_22",
|
|
12
|
-
"u-typography-h5": "_u-typography-h5_1mn0r_29",
|
|
13
|
-
"u-typography-h6": "_u-typography-h6_1mn0r_36",
|
|
14
|
-
"u-typography-base": "_u-typography-base_1mn0r_43",
|
|
15
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_1mn0r_48",
|
|
16
|
-
"u-typography-base--xl": "_u-typography-base--xl_1mn0r_52",
|
|
17
|
-
"u-typography-base--lg": "_u-typography-base--lg_1mn0r_56",
|
|
18
|
-
"u-typography-base--sm": "_u-typography-base--sm_1mn0r_60",
|
|
19
|
-
"u-typography-base--bold": "_u-typography-base--bold_1mn0r_64",
|
|
20
|
-
select__listbox__option__text: m,
|
|
21
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1mn0r_67",
|
|
22
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_1mn0r_70",
|
|
23
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1mn0r_73",
|
|
24
|
-
select: g,
|
|
25
|
-
select__popup: x,
|
|
26
|
-
select__listbox: d,
|
|
27
|
-
select__listbox__option: w,
|
|
28
|
-
select__listbox__option__icon: C,
|
|
29
|
-
"select__listbox__option--disabled": "_select__listbox__option--disabled_1mn0r_105",
|
|
30
|
-
"select__listbox__option--selected": "_select__listbox__option--selected_1mn0r_114",
|
|
31
|
-
select__list__option__icon: f,
|
|
32
|
-
"select-button": "_select-button_1mn0r_127",
|
|
33
|
-
"base-Select-popup": "_base-Select-popup_1mn0r_142",
|
|
34
|
-
"select-button__text": "_select-button__text_1mn0r_145",
|
|
35
|
-
"select-button__icon": "_select-button__icon_1mn0r_154",
|
|
36
|
-
"select-button--active": "_select-button--active_1mn0r_160"
|
|
37
|
-
}, v = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M2.11104 4.9999C2.36691 4.9999 2.62291 5.09756 2.81791 5.29287L8.11104 10.5843L13.4048 5.29053C13.7954 4.8999 14.4282 4.8999 14.8188 5.29053C15.2095 5.68115 15.2095 6.31396 14.8188 6.70459L8.81885 12.7046C8.42822 13.0952 7.79541 13.0952 7.40479 12.7046L1.40479 6.70459C1.01416 6.31396 1.01416 5.68115 1.40479 5.29053C1.59854 5.09678 1.85479 4.9999 2.11104 4.9999Z", fill: "currentColor" })), L = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M13.8889 11C13.633 11 13.377 10.9023 13.182 10.707L7.8889 5.41563L2.59515 10.7094C2.20453 11.1 1.57172 11.1 1.18109 10.7094C0.790466 10.3188 0.790466 9.68594 1.18109 9.29532L7.18109 3.29532C7.57172 2.90469 8.20453 2.90469 8.59515 3.29532L14.5952 9.29532C14.9858 9.68594 14.9858 10.3188 14.5952 10.7094C14.4014 10.9031 14.1452 11 13.8889 11Z", fill: "#3F3D4B", fillOpacity: 0.88 })), N = u((t, l) => {
|
|
38
|
-
const { children: a, disabled: c, className: i, "data-testid": h, prefix: s, onClick: y } = t, n = t["aria-expanded"];
|
|
39
|
-
return /* @__PURE__ */ r(
|
|
40
|
-
"button",
|
|
41
|
-
{
|
|
42
|
-
className: b(i, n ? e["select-button--active"] : "", e["select-button"]),
|
|
43
|
-
type: "button",
|
|
44
|
-
onClick: y,
|
|
45
|
-
disabled: c,
|
|
46
|
-
"data-testid": h,
|
|
47
|
-
ref: l,
|
|
48
|
-
children: [
|
|
49
|
-
/* @__PURE__ */ r("span", { className: e["select-button__text"], children: [
|
|
50
|
-
s && /* @__PURE__ */ _(p, { children: s }),
|
|
51
|
-
/* @__PURE__ */ _(p, { children: a })
|
|
52
|
-
] }),
|
|
53
|
-
/* @__PURE__ */ _("span", { className: e["select-button__icon"], children: n ? /* @__PURE__ */ _(L, {}) : /* @__PURE__ */ _(v, {}) })
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
N as S,
|
|
60
|
-
e as s
|
|
61
|
-
};
|
package/dist/Toggle-BCgIItCc.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import './assets/Toggle.css';
|
|
2
|
-
import { jsx as p, jsxs as u } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as d, cloneElement as m } from "react";
|
|
4
|
-
import { c as n } from "./clsx-DB4S2d7J.js";
|
|
5
|
-
import { Icon as b } from "./components/Icon/Icon.js";
|
|
6
|
-
import "./components/Button/Button.js";
|
|
7
|
-
import "./components/Dialog/Backdrop.js";
|
|
8
|
-
import { Typography as k } from "./components/Typography/Typography.js";
|
|
9
|
-
import "./components/IconButton/IconButton.js";
|
|
10
|
-
import "./components/Select/Select.js";
|
|
11
|
-
import { Skeleton as f } from "./components/Skeleton/Skeleton.js";
|
|
12
|
-
import "./components/Table/Table.js";
|
|
13
|
-
import "./components/Tabs/Tabs.js";
|
|
14
|
-
import { s as h } from "./Group-B3p31ftp.js";
|
|
15
|
-
import "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
16
|
-
import { B as x } from "./Button-2b1peDFT.js";
|
|
17
|
-
const C = "_chip_ccpk4_60", N = "_chip__adornment_ccpk4_114", v = "_chip__remove_ccpk4_119", s = {
|
|
18
|
-
"u-typography-h1": "_u-typography-h1_ccpk4_1",
|
|
19
|
-
"u-typography-h2": "_u-typography-h2_ccpk4_8",
|
|
20
|
-
"u-typography-h3": "_u-typography-h3_ccpk4_15",
|
|
21
|
-
"u-typography-h4": "_u-typography-h4_ccpk4_22",
|
|
22
|
-
"u-typography-h5": "_u-typography-h5_ccpk4_29",
|
|
23
|
-
"u-typography-h6": "_u-typography-h6_ccpk4_36",
|
|
24
|
-
"u-typography-base": "_u-typography-base_ccpk4_43",
|
|
25
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_ccpk4_48",
|
|
26
|
-
"u-typography-base--xl": "_u-typography-base--xl_ccpk4_52",
|
|
27
|
-
"u-typography-base--lg": "_u-typography-base--lg_ccpk4_56",
|
|
28
|
-
"u-typography-base--sm": "_u-typography-base--sm_ccpk4_60",
|
|
29
|
-
chip: C,
|
|
30
|
-
"u-typography-base--bold": "_u-typography-base--bold_ccpk4_64",
|
|
31
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_ccpk4_67",
|
|
32
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_ccpk4_70",
|
|
33
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_ccpk4_73",
|
|
34
|
-
"chip--button": "_chip--button_ccpk4_89",
|
|
35
|
-
"chip--outlined": "_chip--outlined_ccpk4_102",
|
|
36
|
-
"chip--contained": "_chip--contained_ccpk4_108",
|
|
37
|
-
chip__adornment: N,
|
|
38
|
-
chip__remove: v,
|
|
39
|
-
"chip__remove--disabled": "_chip__remove--disabled_ccpk4_130",
|
|
40
|
-
"chip-loading": "_chip-loading_ccpk4_134"
|
|
41
|
-
}, T = d((a, t) => {
|
|
42
|
-
const { children: c, onClickContent: e, disabled: r, className: i, variant: l } = a;
|
|
43
|
-
let o = n(
|
|
44
|
-
s.chip,
|
|
45
|
-
{ [s["chip--outlined"]]: l === "outlined" },
|
|
46
|
-
{ [s["chip--contained"]]: l === "contained" },
|
|
47
|
-
i
|
|
48
|
-
);
|
|
49
|
-
return e ? (o += ` ${s["chip--button"]}`, /* @__PURE__ */ p(
|
|
50
|
-
x,
|
|
51
|
-
{
|
|
52
|
-
onClick: e,
|
|
53
|
-
disabled: r,
|
|
54
|
-
"data-testid": a["data-testid"],
|
|
55
|
-
ref: t,
|
|
56
|
-
className: o,
|
|
57
|
-
children: c
|
|
58
|
-
}
|
|
59
|
-
)) : /* @__PURE__ */ p("span", { "data-testid": a["data-testid"], ref: t, className: o, children: c });
|
|
60
|
-
}), A = (a) => {
|
|
61
|
-
const { icon: t, disabled: c = !1, className: e } = a;
|
|
62
|
-
if (t) {
|
|
63
|
-
const r = n(s.chip__adornment, e), i = c ? m(t, { color: "rgb(var(--gray-95-rgb), 0.4)" }) : t;
|
|
64
|
-
return /* @__PURE__ */ p("span", { className: r, children: i });
|
|
65
|
-
}
|
|
66
|
-
return null;
|
|
67
|
-
}, G = d((a, t) => {
|
|
68
|
-
const {
|
|
69
|
-
label: c,
|
|
70
|
-
className: e,
|
|
71
|
-
onClickContent: r,
|
|
72
|
-
leftAdornment: i,
|
|
73
|
-
loading: l = !1,
|
|
74
|
-
disabled: o = !1,
|
|
75
|
-
variant: g = "default",
|
|
76
|
-
onClickRemove: y
|
|
77
|
-
} = a;
|
|
78
|
-
return l ? /* @__PURE__ */ p(
|
|
79
|
-
f,
|
|
80
|
-
{
|
|
81
|
-
className: n(s["chip-loading"], a["className-skeleton"]),
|
|
82
|
-
"data-testid": a["data-testid-skeleton"]
|
|
83
|
-
}
|
|
84
|
-
) : /* @__PURE__ */ u(
|
|
85
|
-
T,
|
|
86
|
-
{
|
|
87
|
-
ref: t,
|
|
88
|
-
"data-testid": a["data-testid"],
|
|
89
|
-
onClickContent: r,
|
|
90
|
-
disabled: o,
|
|
91
|
-
className: e,
|
|
92
|
-
variant: g,
|
|
93
|
-
children: [
|
|
94
|
-
i && /* @__PURE__ */ p(A, { ...i, disabled: o }),
|
|
95
|
-
c,
|
|
96
|
-
y && /* @__PURE__ */ p(
|
|
97
|
-
"span",
|
|
98
|
-
{
|
|
99
|
-
className: n(s.chip__remove, { [s["chip__remove--disabled"]]: o }),
|
|
100
|
-
role: "button",
|
|
101
|
-
tabIndex: o ? -1 : 0,
|
|
102
|
-
"aria-label": "remove",
|
|
103
|
-
onClick: (_) => {
|
|
104
|
-
_ == null || _.stopPropagation(), _ == null || _.nativeEvent.stopImmediatePropagation(), y();
|
|
105
|
-
},
|
|
106
|
-
"aria-disabled": o,
|
|
107
|
-
children: /* @__PURE__ */ p(b, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
}), H = d((a, t) => {
|
|
114
|
-
const { text: c, isSelected: e = !1, value: r, onChange: i } = a;
|
|
115
|
-
return /* @__PURE__ */ u(
|
|
116
|
-
"label",
|
|
117
|
-
{
|
|
118
|
-
className: n([h.toggle__label], { [h["toggle__label--selected"]]: e }),
|
|
119
|
-
"data-testid": a["data-testid"],
|
|
120
|
-
children: [
|
|
121
|
-
/* @__PURE__ */ p(
|
|
122
|
-
"input",
|
|
123
|
-
{
|
|
124
|
-
className: n([h.toggle__input]),
|
|
125
|
-
type: "radio",
|
|
126
|
-
ref: t,
|
|
127
|
-
value: r.toString(),
|
|
128
|
-
onChange: () => i(r),
|
|
129
|
-
role: "radio",
|
|
130
|
-
checked: e,
|
|
131
|
-
"aria-checked": e
|
|
132
|
-
}
|
|
133
|
-
),
|
|
134
|
-
/* @__PURE__ */ p(k, { bold: !0, children: c })
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
});
|
|
139
|
-
export {
|
|
140
|
-
G as C,
|
|
141
|
-
H as T
|
|
142
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
};
|