@pismo/marola 1.0.0-beta.49 → 1.0.0-beta.5
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-BAljjMv3.js → Button-2b1peDFT.js} +2 -2
- package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-BSW-Nd-y.js} +3 -4
- package/dist/Dialog.module-DFEmFdYT.js +30 -0
- package/dist/Group-B3p31ftp.js +26 -0
- package/dist/{Popup-Ck3XlWMq.js → Popup-B6ZSGIEI.js} +3 -3
- package/dist/{Portal-oY3enyAm.js → Portal-DIeBsWdL.js} +2 -2
- package/dist/SelectButton-K3OIfR5m.js +61 -0
- package/dist/{Tabs.module-BGGTkDc5.js → Tabs.module-jkH1Qjn7.js} +7 -7
- 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 -1
- package/dist/assets/Group.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/SelectButton.css +1 -1
- 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/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-C-zYvfnF.js → combineHooksSlotProps-DVjg9PRh.js} +1 -1
- package/dist/components/Advice/Advice.d.ts +17 -32
- package/dist/components/Advice/Advice.js +40 -39
- package/dist/components/Advice/Advice.stories.d.ts +3 -4
- package/dist/components/Button/Button.d.ts +0 -2
- package/dist/components/Button/Button.js +49 -51
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.d.ts +12 -6
- package/dist/components/Chip/Chip.js +6 -9
- package/dist/components/Chip/Chip.stories.d.ts +14 -5
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +3 -3
- package/dist/components/Dialog/Backdrop.js +7 -8
- package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
- package/dist/components/Dialog/CloseIconButton.js +18 -15
- package/dist/components/Dialog/Dialog.d.ts +6 -9
- package/dist/components/Dialog/Dialog.js +139 -139
- package/dist/components/Dialog/Dialog.stories.d.ts +46 -50
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
- package/dist/components/Icon/Icon.js +52 -177
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.d.ts +5 -24
- package/dist/components/Input/Input.js +292 -301
- package/dist/components/Input/Input.stories.d.ts +21 -2
- package/dist/components/InputSearch/InputSearch.stories.d.ts +21 -1
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Pagination/Pagination.d.ts +1 -5
- package/dist/components/Pagination/Pagination.js +185 -87
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +0 -21
- package/dist/components/Select/Select.js +413 -476
- package/dist/components/Select/SelectButton.d.ts +0 -2
- package/dist/components/Select/SelectButton.js +2 -3
- package/dist/components/Skeleton/Skeleton.d.ts +1 -3
- package/dist/components/Skeleton/Skeleton.js +14 -20
- 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/Table/Table.d.ts +1 -3
- package/dist/components/Table/Table.js +99 -87
- package/dist/components/Table/Table.stories.d.ts +1 -1
- package/dist/components/Tabs/Tab.d.ts +3 -5
- package/dist/components/Tabs/Tab.js +36 -38
- package/dist/components/Tabs/TabPanel.d.ts +2 -4
- package/dist/components/Tabs/TabPanel.js +40 -51
- package/dist/components/Tabs/Tabs.d.ts +4 -6
- package/dist/components/Tabs/Tabs.js +128 -131
- package/dist/components/TextDisplay/TextDisplay.d.ts +3 -9
- package/dist/components/TextDisplay/TextDisplay.js +31 -45
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
- package/dist/components/Toggle/Toggle.js +56 -56
- package/dist/components/ToggleGroup/Group.d.ts +0 -2
- package/dist/components/ToggleGroup/Group.js +2 -4
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -2
- package/dist/components/ToggleGroup/Toggle.js +5 -7
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +1 -3
- package/dist/components/Tooltip/Tooltip.js +4 -4
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
- package/dist/components/Typography/Typography.js +47 -47
- package/dist/{useSlotProps-C_I1kEHr.js → index-CH45lKw7.js} +99 -99
- package/dist/{index-bQFToy-I.js → index-CjW42-M-.js} +1 -1
- package/dist/main.d.ts +0 -6
- package/dist/main.js +76 -87
- package/dist/{useButton-DcihopJG.js → useButton-DNk3wrQp.js} +1 -1
- package/dist/useCompoundItem-D1iRfg8D.js +84 -0
- package/dist/useEventCallback-xTG9piMa.js +45 -0
- package/dist/{useList-B9C55YB7.js → useList-B0hog_3-.js} +2 -2
- package/package.json +12 -21
- package/dist/Dialog.module-D9e4RsKo.js +0 -30
- package/dist/Group-DspH8hyO.js +0 -30
- package/dist/Popover.module-B4boCutS.js +0 -10
- package/dist/SelectButton-B38avP9u.js +0 -75
- package/dist/Toggle-BbmXeuJd.js +0 -188
- package/dist/assets/Adornment.css +0 -1
- package/dist/assets/Autocomplete.css +0 -1
- package/dist/assets/Popover.css +0 -1
- package/dist/assets/ResultWithChips.css +0 -1
- package/dist/assets/StepperNavigator.css +0 -1
- package/dist/components/Adornment/Adornment.d.ts +0 -20
- package/dist/components/Adornment/Adornment.js +0 -13
- package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
- package/dist/components/Adornment/adornment.test.d.ts +0 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
- package/dist/components/Autocomplete/Autocomplete.js +0 -679
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -23
- package/dist/components/Pagination/usePagination.d.ts +0 -90
- package/dist/components/Pagination/usePagination.js +0 -79
- package/dist/components/Popover/Popover.d.ts +0 -32
- package/dist/components/Popover/Popover.js +0 -24
- package/dist/components/Popover/Popover.stories.d.ts +0 -34
- package/dist/components/Popover/PopoverBody.d.ts +0 -6
- package/dist/components/Popover/PopoverBody.js +0 -6
- package/dist/components/Popover/PopoverFooter.d.ts +0 -6
- package/dist/components/Popover/PopoverFooter.js +0 -6
- package/dist/components/Popover/PopoverHeader.d.ts +0 -6
- package/dist/components/Popover/PopoverHeader.js +0 -6
- package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
- package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
- package/dist/components/RowItem/RowItem.d.ts +0 -25
- package/dist/components/RowItem/RowItem.js +0 -21
- package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
- package/dist/components/RowItem/rowItem.test.d.ts +0 -1
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -58
- package/dist/components/StepperNavigator/StepperNavigator.js +0 -115
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -18
- package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
- package/dist/ownerDocument-YGhwAnr1.js +0 -33
- package/dist/useCompoundItem-B7Eo_qZk.js +0 -68
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useId-BW-oWmul.js +0 -19
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.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -34,29 +34,22 @@
|
|
|
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"
|
|
38
|
-
"prepare": "husky"
|
|
37
|
+
"storybook": "storybook dev -p 6006"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
40
|
"react": "^18.2.0",
|
|
42
41
|
"react-dom": "^18.2.0"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
|
-
"@commitlint/cli": "^19.3.0",
|
|
46
|
-
"@commitlint/config-conventional": "^19.2.2",
|
|
47
44
|
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
|
48
|
-
"@storybook/addon-a11y": "^8.
|
|
49
|
-
"@storybook/addon-essentials": "^8.
|
|
50
|
-
"@storybook/addon-interactions": "^8.
|
|
51
|
-
"@storybook/addon-links": "^8.
|
|
52
|
-
"@storybook/blocks": "^8.
|
|
53
|
-
"@storybook/
|
|
54
|
-
"@storybook/
|
|
55
|
-
"@storybook/
|
|
56
|
-
"@storybook/react-vite": "^8.3.4",
|
|
57
|
-
"@storybook/test": "^8.3.4",
|
|
58
|
-
"@storybook/theming": "^8.3.4",
|
|
59
|
-
"@testing-library/jest-dom": "^6.4.6",
|
|
45
|
+
"@storybook/addon-a11y": "^8.0.8",
|
|
46
|
+
"@storybook/addon-essentials": "^8.0.8",
|
|
47
|
+
"@storybook/addon-interactions": "^8.0.8",
|
|
48
|
+
"@storybook/addon-links": "^8.0.8",
|
|
49
|
+
"@storybook/blocks": "^8.0.8",
|
|
50
|
+
"@storybook/react": "^8.0.8",
|
|
51
|
+
"@storybook/react-vite": "^8.0.8",
|
|
52
|
+
"@storybook/test": "^8.0.8",
|
|
60
53
|
"@testing-library/react": "^15.0.5",
|
|
61
54
|
"@types/node": "^20.12.2",
|
|
62
55
|
"@types/react": "^18.2.66",
|
|
@@ -64,7 +57,6 @@
|
|
|
64
57
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
65
58
|
"@typescript-eslint/parser": "^7.6.0",
|
|
66
59
|
"@vitejs/plugin-react": "^4.2.1",
|
|
67
|
-
"@vitest/coverage-v8": "^1.4.0",
|
|
68
60
|
"clsx": "^2.1.0",
|
|
69
61
|
"commitlint": "^19.2.1",
|
|
70
62
|
"cypress": "^13.8.1",
|
|
@@ -74,16 +66,15 @@
|
|
|
74
66
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
75
67
|
"eslint-plugin-react-refresh": "^0.4.6",
|
|
76
68
|
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
77
|
-
"eslint-plugin-storybook": "^0.
|
|
69
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
78
70
|
"glob": "^10.3.14",
|
|
79
71
|
"husky": "^9.0.11",
|
|
80
72
|
"jsdom": "^24.0.0",
|
|
81
|
-
"lint-staged": "^15.2.7",
|
|
82
73
|
"prettier": "^3.2.5",
|
|
83
74
|
"react": "^18.2.0",
|
|
84
75
|
"react-dom": "^18.2.0",
|
|
85
76
|
"sass": "^1.72.0",
|
|
86
|
-
"storybook": "^8.
|
|
77
|
+
"storybook": "^8.0.8",
|
|
87
78
|
"stylelint": "^16.3.1",
|
|
88
79
|
"stylelint-config-recess-order": "^5.0.0",
|
|
89
80
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import './assets/Dialog.css';
|
|
2
|
-
const _ = "_dialog__subtitle_1rdlq_53", a = "_dialog_1rdlq_53", o = "_dialog__backdrop_1rdlq_88", l = "_dialog__panel_1rdlq_96", r = "_dialog__title_1rdlq_57", d = "_dialog__divider_1rdlq_122", p = "_dialog__actions_1rdlq_136", t = {
|
|
3
|
-
"u-typography-h1": "_u-typography-h1_1rdlq_1",
|
|
4
|
-
"u-typography-h2": "_u-typography-h2_1rdlq_8",
|
|
5
|
-
"u-typography-h3": "_u-typography-h3_1rdlq_15",
|
|
6
|
-
"u-typography-h4": "_u-typography-h4_1rdlq_22",
|
|
7
|
-
"u-typography-h5": "_u-typography-h5_1rdlq_29",
|
|
8
|
-
"u-typography-h6": "_u-typography-h6_1rdlq_36",
|
|
9
|
-
"u-typography-base": "_u-typography-base_1rdlq_43",
|
|
10
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_1rdlq_49",
|
|
11
|
-
"u-typography-base--xl": "_u-typography-base--xl_1rdlq_53",
|
|
12
|
-
dialog__subtitle: _,
|
|
13
|
-
"u-typography-base--lg": "_u-typography-base--lg_1rdlq_57",
|
|
14
|
-
"dialog__title--small": "_dialog__title--small_1rdlq_57",
|
|
15
|
-
"u-typography-base--sm": "_u-typography-base--sm_1rdlq_61",
|
|
16
|
-
"u-typography-base--bold": "_u-typography-base--bold_1rdlq_65",
|
|
17
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1rdlq_68",
|
|
18
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_1rdlq_71",
|
|
19
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1rdlq_74",
|
|
20
|
-
dialog: a,
|
|
21
|
-
dialog__backdrop: o,
|
|
22
|
-
dialog__panel: l,
|
|
23
|
-
dialog__title: r,
|
|
24
|
-
dialog__divider: d,
|
|
25
|
-
"dialog__close-icon": "_dialog__close-icon_1rdlq_126",
|
|
26
|
-
dialog__actions: p
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
t as s
|
|
30
|
-
};
|
package/dist/Group-DspH8hyO.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import './assets/Group.css';
|
|
2
|
-
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as n } from "react";
|
|
4
|
-
import { c as u } from "./clsx-DB4S2d7J.js";
|
|
5
|
-
import { Icon as m } from "./components/Icon/Icon.js";
|
|
6
|
-
import { Typography as c } from "./components/Typography/Typography.js";
|
|
7
|
-
const p = "_toggle__input_hu6m0_1", h = "_toggle__label_hu6m0_11", t = {
|
|
8
|
-
toggle__input: p,
|
|
9
|
-
toggle__label: h,
|
|
10
|
-
"toggle__label--selected": "_toggle__label--selected_hu6m0_21",
|
|
11
|
-
"toggle__label--disabled": "_toggle__label--disabled_hu6m0_21",
|
|
12
|
-
"toggle-group__fieldset": "_toggle-group__fieldset_hu6m0_35",
|
|
13
|
-
"toggle-group__options": "_toggle-group__options_hu6m0_40",
|
|
14
|
-
"toggle-group__options-same-width": "_toggle-group__options-same-width_hu6m0_44",
|
|
15
|
-
"toggle-group__error": "_toggle-group__error_hu6m0_47"
|
|
16
|
-
}, y = n((e, r) => {
|
|
17
|
-
const { children: s, legend: _, error: g, equalWidth: a } = e, d = e["data-testid"] ? `${e["data-testid"]}-legend` : void 0, i = e["data-testid"] ? `${e["data-testid"]}-error` : void 0;
|
|
18
|
-
return /* @__PURE__ */ l("fieldset", { ref: r, "data-testid": e["data-testid"], className: t["toggle-group__fieldset"], children: [
|
|
19
|
-
_ && /* @__PURE__ */ o("legend", { "data-testid": d, children: _ }),
|
|
20
|
-
/* @__PURE__ */ o("div", { className: u(t["toggle-group__options"], a && t["toggle-group__options-same-width"]), children: s }),
|
|
21
|
-
g && /* @__PURE__ */ l(c, { className: t["toggle-group__error"], "data-testid": i, children: [
|
|
22
|
-
/* @__PURE__ */ o(m, { icon: "circle-exclamation" }),
|
|
23
|
-
g
|
|
24
|
-
] })
|
|
25
|
-
] });
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
y as G,
|
|
29
|
-
t as s
|
|
30
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import './assets/SelectButton.css';
|
|
2
|
-
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as g } from "react";
|
|
4
|
-
import { c as d } from "./clsx-DB4S2d7J.js";
|
|
5
|
-
import { Icon as p } from "./components/Icon/Icon.js";
|
|
6
|
-
import { Typography as b } from "./components/Typography/Typography.js";
|
|
7
|
-
const q = "_select__listbox__option__text_1abqy_65", x = "_select__wrapper_1abqy_78", m = "_select__label_1abqy_84", f = "_select_1abqy_57", w = "_select__popup_1abqy_99", v = "_select__listbox_1abqy_65", S = "_select__listbox__option_1abqy_65", k = "_select__listbox__option__icon_1abqy_129", t = {
|
|
8
|
-
"u-typography-h1": "_u-typography-h1_1abqy_1",
|
|
9
|
-
"u-typography-h2": "_u-typography-h2_1abqy_8",
|
|
10
|
-
"u-typography-h3": "_u-typography-h3_1abqy_15",
|
|
11
|
-
"u-typography-h4": "_u-typography-h4_1abqy_22",
|
|
12
|
-
"u-typography-h5": "_u-typography-h5_1abqy_29",
|
|
13
|
-
"u-typography-h6": "_u-typography-h6_1abqy_36",
|
|
14
|
-
"u-typography-base": "_u-typography-base_1abqy_43",
|
|
15
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_1abqy_49",
|
|
16
|
-
"u-typography-base--xl": "_u-typography-base--xl_1abqy_53",
|
|
17
|
-
"u-typography-base--lg": "_u-typography-base--lg_1abqy_57",
|
|
18
|
-
"select-button__text": "_select-button__text_1abqy_57",
|
|
19
|
-
"u-typography-base--sm": "_u-typography-base--sm_1abqy_61",
|
|
20
|
-
"u-typography-base--bold": "_u-typography-base--bold_1abqy_65",
|
|
21
|
-
select__listbox__option__text: q,
|
|
22
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1abqy_68",
|
|
23
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_1abqy_71",
|
|
24
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1abqy_74",
|
|
25
|
-
select__wrapper: x,
|
|
26
|
-
"select__wrapper--fit-content-width": "_select__wrapper--fit-content-width_1abqy_81",
|
|
27
|
-
select__label: m,
|
|
28
|
-
"messages-wrapper": "_messages-wrapper_1abqy_92",
|
|
29
|
-
select: f,
|
|
30
|
-
select__popup: w,
|
|
31
|
-
select__listbox: v,
|
|
32
|
-
select__listbox__option: S,
|
|
33
|
-
select__listbox__option__icon: k,
|
|
34
|
-
"select__listbox__option--disabled": "_select__listbox__option--disabled_1abqy_132",
|
|
35
|
-
"select__listbox__option--selected": "_select__listbox__option--selected_1abqy_132",
|
|
36
|
-
"select-button": "_select-button_1abqy_57",
|
|
37
|
-
"select-button--full-width": "_select-button--full-width_1abqy_167",
|
|
38
|
-
"select-button--placeholder": "_select-button--placeholder_1abqy_170",
|
|
39
|
-
"base-Select-popup": "_base-Select-popup_1abqy_176",
|
|
40
|
-
"select-button__icon": "_select-button__icon_1abqy_188",
|
|
41
|
-
"select-button--active": "_select-button--active_1abqy_191",
|
|
42
|
-
"select-button--error": "_select-button--error_1abqy_194",
|
|
43
|
-
"info-message": "_info-message_1abqy_223",
|
|
44
|
-
"error-message": "_error-message_1abqy_224"
|
|
45
|
-
}, C = g((_, y) => {
|
|
46
|
-
const { children: o, disabled: c, className: r, "data-testid": n, prefix: s, onClick: i, fullWidth: u, placeholder: h } = _, a = _["aria-expanded"];
|
|
47
|
-
return /* @__PURE__ */ l(
|
|
48
|
-
"button",
|
|
49
|
-
{
|
|
50
|
-
className: d(
|
|
51
|
-
r,
|
|
52
|
-
a ? t["select-button--active"] : "",
|
|
53
|
-
t["select-button"],
|
|
54
|
-
u && t["select-button--full-width"],
|
|
55
|
-
String(h) === String(o) && t["select-button--placeholder"]
|
|
56
|
-
),
|
|
57
|
-
type: "button",
|
|
58
|
-
onClick: i,
|
|
59
|
-
disabled: c,
|
|
60
|
-
"data-testid": n,
|
|
61
|
-
ref: y,
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ l("span", { className: t["select-button__text"], children: [
|
|
64
|
-
s && /* @__PURE__ */ e(b, { variant: "base-lg", children: s }),
|
|
65
|
-
/* @__PURE__ */ e(b, { variant: "base-lg", children: o })
|
|
66
|
-
] }),
|
|
67
|
-
/* @__PURE__ */ e("span", { className: t["select-button__icon"], children: a ? /* @__PURE__ */ e(p, { icon: "chevron-up" }) : /* @__PURE__ */ e(p, { icon: "chevron-down" }) })
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
});
|
|
72
|
-
export {
|
|
73
|
-
C as S,
|
|
74
|
-
t as s
|
|
75
|
-
};
|
package/dist/Toggle-BbmXeuJd.js
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import './assets/Toggle2.css';
|
|
2
|
-
import { jsx as i, jsxs as k } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as u } from "react";
|
|
4
|
-
import { c as l } from "./clsx-DB4S2d7J.js";
|
|
5
|
-
import { Icon as C } from "./components/Icon/Icon.js";
|
|
6
|
-
import { Typography as N } from "./components/Typography/Typography.js";
|
|
7
|
-
import "./components/Input/Input.js";
|
|
8
|
-
import "./components/Button/Button.js";
|
|
9
|
-
import { Adornment as v } from "./components/Adornment/Adornment.js";
|
|
10
|
-
import "./components/Dialog/Dialog.js";
|
|
11
|
-
import "./components/IconButton/IconButton.js";
|
|
12
|
-
import "./components/Select/Select.js";
|
|
13
|
-
import "./components/Popover/Popover.js";
|
|
14
|
-
import "./components/Table/Table.js";
|
|
15
|
-
import "./components/Tabs/Tabs.js";
|
|
16
|
-
import { s as y } from "./Group-DspH8hyO.js";
|
|
17
|
-
import "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
18
|
-
import { Skeleton as f } from "./components/Skeleton/Skeleton.js";
|
|
19
|
-
import { B as x } from "./Button-BAljjMv3.js";
|
|
20
|
-
const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove_1wvod_121", n = {
|
|
21
|
-
"u-typography-h1": "_u-typography-h1_1wvod_1",
|
|
22
|
-
"u-typography-h2": "_u-typography-h2_1wvod_8",
|
|
23
|
-
"u-typography-h3": "_u-typography-h3_1wvod_15",
|
|
24
|
-
"u-typography-h4": "_u-typography-h4_1wvod_22",
|
|
25
|
-
"u-typography-h5": "_u-typography-h5_1wvod_29",
|
|
26
|
-
"u-typography-h6": "_u-typography-h6_1wvod_36",
|
|
27
|
-
"u-typography-base": "_u-typography-base_1wvod_43",
|
|
28
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_1wvod_49",
|
|
29
|
-
"u-typography-base--xl": "_u-typography-base--xl_1wvod_53",
|
|
30
|
-
"u-typography-base--lg": "_u-typography-base--lg_1wvod_57",
|
|
31
|
-
"u-typography-base--sm": "_u-typography-base--sm_1wvod_61",
|
|
32
|
-
chip: I,
|
|
33
|
-
"u-typography-base--bold": "_u-typography-base--bold_1wvod_65",
|
|
34
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1wvod_68",
|
|
35
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_1wvod_71",
|
|
36
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1wvod_74",
|
|
37
|
-
"chip--button": "_chip--button_1wvod_90",
|
|
38
|
-
"chip--outlined": "_chip--outlined_1wvod_104",
|
|
39
|
-
"chip--contained": "_chip--contained_1wvod_110",
|
|
40
|
-
chip__adornment: P,
|
|
41
|
-
chip__remove: z,
|
|
42
|
-
"chip__remove--disabled": "_chip__remove--disabled_1wvod_133",
|
|
43
|
-
"chip-loading": "_chip-loading_1wvod_137"
|
|
44
|
-
}, S = u((t, d) => {
|
|
45
|
-
const { children: _, onClickContent: o, disabled: r, className: a, variant: s } = t;
|
|
46
|
-
let e = l(
|
|
47
|
-
n.chip,
|
|
48
|
-
{ [n["chip--outlined"]]: s === "outlined" },
|
|
49
|
-
{ [n["chip--contained"]]: s === "contained" },
|
|
50
|
-
a
|
|
51
|
-
);
|
|
52
|
-
return o ? (e += ` ${n["chip--button"]}`, /* @__PURE__ */ i(
|
|
53
|
-
x,
|
|
54
|
-
{
|
|
55
|
-
onClick: o,
|
|
56
|
-
disabled: r,
|
|
57
|
-
"data-testid": t["data-testid"],
|
|
58
|
-
ref: d,
|
|
59
|
-
className: e,
|
|
60
|
-
children: _
|
|
61
|
-
}
|
|
62
|
-
)) : /* @__PURE__ */ i("span", { "data-testid": t["data-testid"], ref: d, className: e, children: _ });
|
|
63
|
-
}), Q = u((t, d) => {
|
|
64
|
-
const {
|
|
65
|
-
label: _,
|
|
66
|
-
className: o,
|
|
67
|
-
onClickContent: r,
|
|
68
|
-
leftAdornment: a,
|
|
69
|
-
loading: s = !1,
|
|
70
|
-
disabled: e = !1,
|
|
71
|
-
variant: g = "default",
|
|
72
|
-
onClickRemove: m
|
|
73
|
-
} = t;
|
|
74
|
-
if (s)
|
|
75
|
-
return /* @__PURE__ */ i(
|
|
76
|
-
f,
|
|
77
|
-
{
|
|
78
|
-
className: l(n["chip-loading"], t["className-skeleton"]),
|
|
79
|
-
"data-testid": t["data-testid-skeleton"]
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
const b = l(a == null ? void 0 : a.className, n.chip__adornment), w = a != null && a.customIcon ? { ...a, className: b } : { ...a, disabled: e, className: b };
|
|
83
|
-
return /* @__PURE__ */ k(
|
|
84
|
-
S,
|
|
85
|
-
{
|
|
86
|
-
ref: d,
|
|
87
|
-
"data-testid": t["data-testid"],
|
|
88
|
-
onClickContent: r,
|
|
89
|
-
disabled: e,
|
|
90
|
-
className: o,
|
|
91
|
-
variant: g,
|
|
92
|
-
children: [
|
|
93
|
-
a && /* @__PURE__ */ i(v, { ...w }),
|
|
94
|
-
_,
|
|
95
|
-
m && /* @__PURE__ */ i(
|
|
96
|
-
"span",
|
|
97
|
-
{
|
|
98
|
-
className: l(n.chip__remove, { [n["chip__remove--disabled"]]: e }),
|
|
99
|
-
role: "button",
|
|
100
|
-
tabIndex: e ? -1 : 0,
|
|
101
|
-
"aria-label": "remove",
|
|
102
|
-
onClick: (c) => {
|
|
103
|
-
c == null || c.stopPropagation(), c == null || c.nativeEvent.stopImmediatePropagation(), m();
|
|
104
|
-
},
|
|
105
|
-
"aria-disabled": e,
|
|
106
|
-
children: /* @__PURE__ */ i(C, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
}), h = {
|
|
113
|
-
"row-item": "_row-item_8z1a0_1",
|
|
114
|
-
"row-item--clickable": "_row-item--clickable_8z1a0_13",
|
|
115
|
-
"row-item--disabled": "_row-item--disabled_8z1a0_19",
|
|
116
|
-
"row-item__content": "_row-item__content_8z1a0_22"
|
|
117
|
-
}, V = u((t, d) => {
|
|
118
|
-
const { children: _, leftAdornment: o, disabled: r, onClick: a, buttons: s, ariaLabel: e, className: g } = t, m = l(o == null ? void 0 : o.className, h["row-item__adornment"]), w = {
|
|
119
|
-
onClick: (p) => {
|
|
120
|
-
r || a && a(p);
|
|
121
|
-
},
|
|
122
|
-
tabIndex: 0,
|
|
123
|
-
"aria-label": e,
|
|
124
|
-
role: "button"
|
|
125
|
-
}, c = o != null && o.customIcon ? o : { size: "1rem", ...o };
|
|
126
|
-
return /* @__PURE__ */ k(
|
|
127
|
-
"div",
|
|
128
|
-
{
|
|
129
|
-
"data-testid": t["data-testid"],
|
|
130
|
-
className: l(
|
|
131
|
-
h["row-item"],
|
|
132
|
-
a && h["row-item--clickable"],
|
|
133
|
-
a && r && h["row-item--disabled"],
|
|
134
|
-
g
|
|
135
|
-
),
|
|
136
|
-
...!!a && w,
|
|
137
|
-
ref: d,
|
|
138
|
-
children: [
|
|
139
|
-
o && /* @__PURE__ */ i(v, { ...c, className: m, disabled: r }),
|
|
140
|
-
/* @__PURE__ */ i("span", { className: l(h["row-item__content"]), children: _ }),
|
|
141
|
-
s && /* @__PURE__ */ i(
|
|
142
|
-
"div",
|
|
143
|
-
{
|
|
144
|
-
onClick: (p) => {
|
|
145
|
-
p == null || p.stopPropagation(), p == null || p.nativeEvent.stopImmediatePropagation();
|
|
146
|
-
},
|
|
147
|
-
children: s
|
|
148
|
-
}
|
|
149
|
-
)
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
);
|
|
153
|
-
}), X = u((t, d) => {
|
|
154
|
-
const { text: _, isSelected: o = !1, value: r, onChange: a, disabled: s } = t;
|
|
155
|
-
return /* @__PURE__ */ k(
|
|
156
|
-
"label",
|
|
157
|
-
{
|
|
158
|
-
className: l(
|
|
159
|
-
[y.toggle__label],
|
|
160
|
-
o && y["toggle__label--selected"],
|
|
161
|
-
s && y["toggle__label--disabled"]
|
|
162
|
-
),
|
|
163
|
-
"data-testid": t["data-testid"],
|
|
164
|
-
children: [
|
|
165
|
-
/* @__PURE__ */ i(
|
|
166
|
-
"input",
|
|
167
|
-
{
|
|
168
|
-
className: l([y.toggle__input]),
|
|
169
|
-
type: "radio",
|
|
170
|
-
ref: d,
|
|
171
|
-
value: r.toString(),
|
|
172
|
-
onChange: () => a(r),
|
|
173
|
-
role: "radio",
|
|
174
|
-
checked: o,
|
|
175
|
-
"aria-checked": o,
|
|
176
|
-
disabled: s
|
|
177
|
-
}
|
|
178
|
-
),
|
|
179
|
-
/* @__PURE__ */ i(N, { bold: !0, children: _ })
|
|
180
|
-
]
|
|
181
|
-
}
|
|
182
|
-
);
|
|
183
|
-
});
|
|
184
|
-
export {
|
|
185
|
-
Q as C,
|
|
186
|
-
V as R,
|
|
187
|
-
X as T
|
|
188
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._adornment_1bwrg_1{display:flex}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._u-typography-h1_mj65r_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_mj65r_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_mj65r_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_mj65r_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_mj65r_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_mj65r_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_mj65r_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_mj65r_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_mj65r_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_mj65r_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_mj65r_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_mj65r_65,._autocomplete__dropdown-item_mj65r_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_mj65r_68{text-decoration:line-through}._u-typography-base--underlined_mj65r_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_mj65r_74{text-decoration:underline line-through}._autocomplete_mj65r_65{position:relative;margin-bottom:16px}._autocomplete__dropdown-list_mj65r_82{position:absolute;z-index:1;width:100%;max-height:25rem;padding:0;margin-top:.25rem;overflow-y:auto;background-color:#fff;border-radius:var(--border-radius);box-shadow:0 6px 12px rgba(var(--black-100-rgb),20%)}._autocomplete__dropdown-item_mj65r_65{display:flex;padding:.375rem 1rem;color:rgba(var(--gray-95-rgb),88%);list-style:none;cursor:pointer;border-radius:var(--border-radius-soft)}._autocomplete__dropdown-item_mj65r_65[aria-selected=true]{color:var(--gray-90);background-color:var(--accent-lighter)}._autocomplete__dropdown-item_mj65r_65[aria-selected=true]._option-focused_mj65r_106{color:var(--accent)}._autocomplete__dropdown-item_mj65r_65:hover{color:var(--accent);background-color:rgba(var(--black-100-rgb),4%);border-radius:var(--border-radius-soft)}._option-focused_mj65r_106{color:var(--accent)}
|
package/dist/assets/Popover.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._popover_n95k7_1{background-color:#fff;border-radius:.375rem;box-shadow:0 0 10px #0003}._popover-header_n95k7_6{padding:1rem .5rem;border-bottom:1px solid var(--gray-5)}._popover-footer_n95k7_10{padding:1rem .5rem;border-top:1px solid var(--gray-5)}._popover-body_n95k7_14{padding:1rem .5rem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._container_hgp0p_1{position:relative;padding:1.5rem 1rem;background:var(--white-100);border:1px solid var(--gray-50);border-radius:.375rem}._container_hgp0p_1 ._chip-item-wrapper_hgp0p_8{display:flex;gap:.5rem}._container_hgp0p_1:not(first-child){min-height:4.125rem;padding:1rem;margin-top:1.5rem}._container_hgp0p_1 ._label_hgp0p_17{position:absolute;top:-1px;left:1.18rem;display:flex;align-items:center;justify-content:center;padding:0 .25rem;font-family:Lato;font-size:.6875rem;font-style:normal;font-weight:400;line-height:1rem;color:var(--gray-75);background:var(--white-100);transform:translateY(-50%)}._chips-container_hgp0p_35{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}._chip-content_hgp0p_42{display:block;font-family:Lato;font-size:.6875rem;font-style:normal;line-height:1rem;color:var(--gray-90)}._chip-label_hgp0p_51{font-weight:700}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._stepper-navigator_27f6m_1{display:flex;justify-content:space-between;padding:1rem 0}._stepper-navigator_27f6m_1>span{display:flex;gap:1rem}._cancel-button_27f6m_11{color:var(--accent-alert-light);background-color:transparent}._cancel-button_27f6m_11:hover:not(:disabled){color:rgba(var(--alert-dark-rgb),.75);background-color:var(--gray-5)}._previous-button_27f6m_20{color:var(--gray-75);background-color:transparent;border:solid 1px var(--gray-75)}._previous-button_27f6m_20:disabled{border-color:transparent}._previous-button_27f6m_20:hover:not(:disabled){color:rgba(var(--gray-75-rgb),.75);background-color:var(--gray-5);border-color:rgba(var(--gray-75),.75)}._previous-button_27f6m_20,._cancel-button_27f6m_11{min-width:6.25rem}._next-button_27f6m_39,._finish-button_27f6m_40{min-width:15rem}._previous-button_27f6m_20,._cancel-button_27f6m_11,._next-button_27f6m_39,._finish-button_27f6m_40{display:flex;gap:.25rem;align-items:center;justify-content:space-between;padding:0 1rem;font-size:.875rem}._previous-button_27f6m_20>*,._cancel-button_27f6m_11>*,._next-button_27f6m_39>*,._finish-button_27f6m_40>*{display:inline-flex;flex:1;align-items:center;justify-content:center}._previous-button_27f6m_20>*:nth-child(1),._cancel-button_27f6m_11>*:nth-child(1),._next-button_27f6m_39>*:nth-child(1),._finish-button_27f6m_40>*:nth-child(1){justify-content:flex-start}._previous-button_27f6m_20>*:nth-child(3),._cancel-button_27f6m_11>*:nth-child(3),._next-button_27f6m_39>*:nth-child(3),._finish-button_27f6m_40>*:nth-child(3){justify-content:flex-end}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IconProps } from '../Icon/Icon.tsx';
|
|
2
|
-
import { Either } from '../../types/helpers';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
export type AdornmentSlotProps = {
|
|
6
|
-
/** Any additional classes to apply to the adornment */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Dataset test id only used for tests to reach in and grab the rendered DOM node of the adornment */
|
|
9
|
-
'data-testid'?: string;
|
|
10
|
-
};
|
|
11
|
-
export type MarolaIconAdornment = AdornmentSlotProps & Partial<IconProps> & {
|
|
12
|
-
/** Whether to render in a disabled state */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export type CustomIconAdornment = AdornmentSlotProps & {
|
|
16
|
-
/** Render a complete custom icon outside of Marola icon system */
|
|
17
|
-
customIcon: ReactNode;
|
|
18
|
-
};
|
|
19
|
-
export type AdornmentProps = Either<CustomIconAdornment, MarolaIconAdornment>;
|
|
20
|
-
export declare const Adornment: (props: AdornmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import '../../assets/Adornment.css';
|
|
2
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { c } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { Icon as d } from "../Icon/Icon.js";
|
|
5
|
-
const l = "_adornment_1bwrg_1", i = {
|
|
6
|
-
adornment: l
|
|
7
|
-
}, g = (t) => {
|
|
8
|
-
const e = c(t.className), { disabled: a, icon: m } = t, o = a ? "rgb(var(--gray-95-rgb), 0.4)" : t == null ? void 0 : t.color;
|
|
9
|
-
return /* @__PURE__ */ n("span", { className: c(i.adornment, e), "data-testid": t["data-testid"], children: t != null && t.customIcon ? t == null ? void 0 : t.customIcon : /* @__PURE__ */ n(d, { color: o, icon: m, size: t.size }) });
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
g as Adornment
|
|
13
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: (props: import('./Adornment').AdornmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default meta;
|
|
12
|
-
type Story = StoryObj<typeof meta>;
|
|
13
|
-
export declare const WithMarolaIcon: Story;
|
|
14
|
-
export declare const WithCustomIcon: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { InputProps } from '../Input/Input.tsx';
|
|
2
|
-
import { SyntheticEvent } from 'react';
|
|
3
|
-
|
|
4
|
-
export type AutocompleteProps<T> = Omit<InputProps, 'onChange' | 'value'> & {
|
|
5
|
-
/** Object key to be used as label when options are an array of object */
|
|
6
|
-
labelKey?: T extends object ? keyof T : never;
|
|
7
|
-
/** Object key to be used as value when options are an array of object */
|
|
8
|
-
valueKey?: T extends object ? keyof T : never;
|
|
9
|
-
/** Value */
|
|
10
|
-
value?: T;
|
|
11
|
-
/** Options array */
|
|
12
|
-
options?: Array<T>;
|
|
13
|
-
/** callback for new option selected */
|
|
14
|
-
onChange?: (event: SyntheticEvent<Element, Event>, newValue: T) => void;
|
|
15
|
-
/** callback when characters are entered into the input box */
|
|
16
|
-
onInputChange?: (event: SyntheticEvent<Element, Event>, newValue: string) => void;
|
|
17
|
-
/** Id to be applied as `data-testid` on the container element */
|
|
18
|
-
'data-testid-wrapper'?: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const Autocomplete: <T extends string | object>({ labelKey, valueKey, options, type, value, onChange, onInputChange, "data-testid-wrapper": dataTestId, ...props }: AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|