@pismo/marola 0.0.1-alpha.5 → 0.0.1-alpha.7
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 +13 -2
- package/dist/{Button-D--uN90N.js → Button-B1umG8kJ.js} +3 -3
- package/dist/ClickAwayListener-BKznXF1d.js +106 -0
- package/dist/Dialog.module-CGVM5V_D.js +15 -0
- package/dist/Portal-BcdMtRGF.js +73 -0
- package/dist/{Tabs.module-BKlNuSPH.js → Tabs.module-BA-PC7fA.js} +13 -13
- package/dist/_commonjsHelpers-CT_km90n.js +30 -0
- package/dist/assets/Advice.css +1 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -0
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Input.css +1 -0
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/Skeleton.css +1 -0
- package/dist/assets/Snackbar.css +1 -0
- package/dist/assets/SortTooltip.css +1 -0
- package/dist/assets/Stepper.css +1 -0
- package/dist/assets/Table.css +1 -0
- package/dist/assets/Tabs.css +1 -1
- package/dist/assets/Toggle.css +1 -0
- package/dist/assets/Tooltip.css +1 -0
- package/dist/assets/Typography.css +1 -1
- package/dist/assets/{main.css → global.css} +1 -1
- package/dist/components/Advice/Advice.d.ts +16 -0
- package/dist/components/Advice/Advice.js +25 -0
- package/dist/components/Button/Button.d.ts +9 -1
- package/dist/components/Button/Button.js +54 -38
- package/dist/components/Button/Button.stories.d.ts +60 -0
- package/dist/components/Button/Button.stories.js +40 -0
- package/dist/components/Checkbox/Checkbox.d.ts +17 -0
- package/dist/components/Checkbox/Checkbox.js +48 -0
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +1 -1
- package/dist/components/Dialog/Backdrop.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +12 -124
- package/dist/components/Dialog/Dialog.d.ts +3 -2
- package/dist/components/Dialog/Dialog.js +418 -20072
- package/dist/components/Dialog/Dialog.stories.d.ts +343 -0
- package/dist/components/Dialog/Dialog.stories.js +59 -0
- package/dist/components/Dialog/Title.js +1 -1
- package/dist/components/Icon/Icon.d.ts +18 -0
- package/dist/components/Icon/Icon.js +95 -0
- package/dist/components/IconButton/IconButton.d.ts +3 -3
- package/dist/components/IconButton/IconButton.js +54 -65
- package/dist/components/Input/Input.d.ts +44 -0
- package/dist/components/Input/Input.js +497 -0
- package/dist/components/Input/Input.stories.d.ts +43 -0
- package/dist/components/Input/Input.stories.js +106 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +2 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +14 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +38 -0
- package/dist/components/PageHeader/PageHeader.d.ts +25 -15
- package/dist/components/PageHeader/PageHeader.js +32 -50
- package/dist/components/PageHeader/PageHeader.stories.d.ts +43 -0
- package/dist/components/PageHeader/PageHeader.stories.js +49 -0
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.js +47 -47
- package/dist/components/Skeleton/Skeleton.d.ts +18 -0
- package/dist/components/Skeleton/Skeleton.js +26 -0
- package/dist/components/Snackbar/Snackbar.d.ts +13 -0
- package/dist/components/Snackbar/Snackbar.js +622 -0
- package/dist/components/SortTooltip/SortTooltip.d.ts +26 -0
- package/dist/components/SortTooltip/SortTooltip.js +67 -1
- package/dist/components/Stepper/Stepper.d.ts +16 -0
- package/dist/components/Stepper/Stepper.js +33 -0
- package/dist/components/Table/Table.d.ts +39 -0
- package/dist/components/Table/Table.js +122 -1
- package/dist/components/Table/TableContext.d.ts +19 -0
- package/dist/components/Table/TableContext.js +21 -1
- package/dist/components/Tabs/Tab.d.ts +1 -1
- package/dist/components/Tabs/Tab.js +5 -5
- package/dist/components/Tabs/TabPanel.d.ts +1 -1
- package/dist/components/Tabs/TabPanel.js +4 -4
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +3 -3
- package/dist/components/Toggle/Toggle.d.ts +14 -0
- package/dist/components/Toggle/Toggle.js +256 -0
- package/dist/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/components/Tooltip/Tooltip.js +1366 -1
- package/dist/components/Typography/Typography.d.ts +14 -5
- package/dist/components/Typography/Typography.js +76 -59
- package/dist/components/Typography/Typography.stories.d.ts +31 -0
- package/dist/components/Typography/Typography.stories.js +30 -0
- package/dist/components/Typography/typography.test.d.ts +1 -0
- package/dist/components/Typography/typography.test.js +11357 -0
- package/dist/index-BNWbc5Kh.js +19628 -0
- package/dist/{index-BvA1HyDs.js → index-CqjC7P5Y.js} +91 -95
- package/dist/magic-string.es-O_8lTkE3.js +738 -0
- package/dist/main.d.ts +16 -7
- package/dist/main.js +50 -28
- package/dist/objectWithoutPropertiesLoose-D7Cp0Pg_.js +26 -0
- package/dist/test-utils/assertStyles.d.ts +1 -0
- package/dist/test-utils/assertStyles.js +11 -0
- package/dist/types/helpers.d.ts +8 -0
- package/dist/useButton-Bc8IAgyk.js +106 -0
- package/dist/{useCompoundItem-wTwXbURC.js → useCompoundItem-CTYi5M_E.js} +1 -1
- package/dist/useIsFocusVisible-BH4IAdcw.js +69 -0
- package/dist/useTimeout-DxF9kiZL.js +36 -0
- package/dist/utils/styleStrings.d.ts +6 -0
- package/dist/utils/styleStrings.js +10 -0
- package/dist/utils/styleStrings.test.d.ts +1 -0
- package/dist/utils/styleStrings.test.js +41 -0
- package/dist/vi.Y_w82WR8-Df0JUamG.js +9860 -0
- package/package.json +30 -9
- package/dist/Dialog.module-BKWFakxu.js +0 -15
- package/dist/objectWithoutPropertiesLoose-ClNcje2_.js +0 -22
- package/dist/useButton-abQpo0za.js +0 -187
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pismo/marola",
|
|
3
3
|
"description": "CDX tribe component library",
|
|
4
|
-
"version": "0.0.1-alpha.
|
|
5
|
-
"private": false,
|
|
4
|
+
"version": "0.0.1-alpha.7",
|
|
6
5
|
"type": "module",
|
|
7
6
|
"main": "dist/main.js",
|
|
8
7
|
"types": "dist/main.d.ts",
|
|
@@ -18,15 +17,23 @@
|
|
|
18
17
|
],
|
|
19
18
|
"scripts": {
|
|
20
19
|
"dev": "vite",
|
|
21
|
-
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
22
20
|
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
|
23
21
|
"lint:fix": "yarn lint --fix",
|
|
24
22
|
"lint:scss": "stylelint \"**/*.scss\" --fix",
|
|
25
23
|
"prettier": "prettier . --write",
|
|
26
24
|
"preview": "vite preview",
|
|
27
25
|
"prepublishOnly": "npm run build",
|
|
28
|
-
"test": "
|
|
29
|
-
"
|
|
26
|
+
"test": "yarn test:unit",
|
|
27
|
+
"test:unit": "vitest run",
|
|
28
|
+
"test:unit:visual": "vitest-preview",
|
|
29
|
+
"test:unit:watch": "vitest",
|
|
30
|
+
"test:e2e": "echo \"no test implemented\"",
|
|
31
|
+
"coverage": "vitest run --coverage",
|
|
32
|
+
"export-files": "node scripts/export-files.cjs",
|
|
33
|
+
"prebuild": "yarn export-files",
|
|
34
|
+
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
35
|
+
"postbuild": "storybook build --disable-telemetry --output-dir build",
|
|
36
|
+
"storybook": "storybook dev -p 6006"
|
|
30
37
|
},
|
|
31
38
|
"peerDependencies": {
|
|
32
39
|
"react": "^18.2.0",
|
|
@@ -34,6 +41,16 @@
|
|
|
34
41
|
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
|
44
|
+
"@storybook/addon-a11y": "^8.0.8",
|
|
45
|
+
"@storybook/addon-essentials": "^8.0.8",
|
|
46
|
+
"@storybook/addon-interactions": "^8.0.8",
|
|
47
|
+
"@storybook/addon-links": "^8.0.8",
|
|
48
|
+
"@storybook/addon-onboarding": "^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",
|
|
53
|
+
"@testing-library/react": "^15.0.5",
|
|
37
54
|
"@types/node": "^20.12.2",
|
|
38
55
|
"@types/react": "^18.2.66",
|
|
39
56
|
"@types/react-dom": "^18.2.22",
|
|
@@ -42,18 +59,22 @@
|
|
|
42
59
|
"@vitejs/plugin-react": "^4.2.1",
|
|
43
60
|
"clsx": "^2.1.0",
|
|
44
61
|
"commitlint": "^19.2.1",
|
|
62
|
+
"cypress": "^13.8.1",
|
|
45
63
|
"eslint": "^8.57.0",
|
|
46
64
|
"eslint-config-prettier": "^9.1.0",
|
|
47
65
|
"eslint-plugin-prettier": "^5.1.3",
|
|
48
66
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
49
67
|
"eslint-plugin-react-refresh": "^0.4.6",
|
|
50
68
|
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
51
|
-
"
|
|
69
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
70
|
+
"glob": "^10.3.14",
|
|
52
71
|
"husky": "^9.0.11",
|
|
72
|
+
"jsdom": "^24.0.0",
|
|
53
73
|
"prettier": "^3.2.5",
|
|
54
74
|
"react": "^18.2.0",
|
|
55
75
|
"react-dom": "^18.2.0",
|
|
56
76
|
"sass": "^1.72.0",
|
|
77
|
+
"storybook": "^8.0.8",
|
|
57
78
|
"stylelint": "^16.3.1",
|
|
58
79
|
"stylelint-config-recess-order": "^5.0.0",
|
|
59
80
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
@@ -63,11 +84,11 @@
|
|
|
63
84
|
"vite-plugin-dts": "^3.8.1",
|
|
64
85
|
"vite-plugin-lib-inject-css": "^2.0.1",
|
|
65
86
|
"vite-plugin-svgr": "^4.2.0",
|
|
66
|
-
"vitest": "^1.4.0"
|
|
87
|
+
"vitest": "^1.4.0",
|
|
88
|
+
"vitest-preview": "^0.0.1"
|
|
67
89
|
},
|
|
68
90
|
"dependencies": {
|
|
69
91
|
"@mui/base": "^5.0.0-beta.40",
|
|
70
|
-
"@mui/material": "^5.15.15"
|
|
71
|
-
"@pismo/waves-icons": "^1.3.3"
|
|
92
|
+
"@mui/material": "^5.15.15"
|
|
72
93
|
}
|
|
73
94
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './assets/Dialog.css';
|
|
2
|
-
const _ = "_dialog_h5vxo_1", o = "_dialog__backdrop_h5vxo_11", i = "_dialog__panel_h5vxo_19", l = "_dialog__title_h5vxo_35", a = "_dialog__subtitle_h5vxo_42", d = "_dialog__divider_h5vxo_51", t = "_dialog__actions_h5vxo_64", g = {
|
|
3
|
-
dialog: _,
|
|
4
|
-
dialog__backdrop: o,
|
|
5
|
-
dialog__panel: i,
|
|
6
|
-
dialog__title: l,
|
|
7
|
-
"dialog__title--small": "_dialog__title--small_h5vxo_39",
|
|
8
|
-
dialog__subtitle: a,
|
|
9
|
-
dialog__divider: d,
|
|
10
|
-
"dialog__close-icon": "_dialog__close-icon_h5vxo_55",
|
|
11
|
-
dialog__actions: t
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
g as s
|
|
15
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
function o() {
|
|
2
|
-
return o = Object.assign ? Object.assign.bind() : function(t) {
|
|
3
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
4
|
-
var n = arguments[e];
|
|
5
|
-
for (var r in n)
|
|
6
|
-
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
}, o.apply(this, arguments);
|
|
10
|
-
}
|
|
11
|
-
function s(t, e) {
|
|
12
|
-
if (t == null)
|
|
13
|
-
return {};
|
|
14
|
-
var n = {}, r = Object.keys(t), a, i;
|
|
15
|
-
for (i = 0; i < r.length; i++)
|
|
16
|
-
a = r[i], !(e.indexOf(a) >= 0) && (n[a] = t[a]);
|
|
17
|
-
return n;
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
s as _,
|
|
21
|
-
o as a
|
|
22
|
-
};
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { a as k } from "./objectWithoutPropertiesLoose-ClNcje2_.js";
|
|
2
|
-
import * as l from "react";
|
|
3
|
-
import { f as A, h as I } from "./index-BvA1HyDs.js";
|
|
4
|
-
function _(r) {
|
|
5
|
-
const {
|
|
6
|
-
rootElementName: n = "",
|
|
7
|
-
componentName: o
|
|
8
|
-
} = r, [s, i] = l.useState(n.toUpperCase());
|
|
9
|
-
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
10
|
-
n && s !== n.toUpperCase() && console.error(`useRootElementName: the \`rootElementName\` prop of ${o ? `the ${o} component` : "a component"} expected the '${n}' element, but a '${s.toLowerCase()}' was rendered instead`, "This may cause hydration issues in an SSR context, for example in a Next.js app");
|
|
11
|
-
}, [n, s, o]);
|
|
12
|
-
const c = l.useCallback((b) => {
|
|
13
|
-
var f;
|
|
14
|
-
i((f = b == null ? void 0 : b.tagName) != null ? f : "");
|
|
15
|
-
}, []);
|
|
16
|
-
return [s, c];
|
|
17
|
-
}
|
|
18
|
-
class F {
|
|
19
|
-
constructor() {
|
|
20
|
-
this.currentId = null, this.clear = () => {
|
|
21
|
-
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
22
|
-
}, this.disposeEffect = () => this.clear;
|
|
23
|
-
}
|
|
24
|
-
static create() {
|
|
25
|
-
return new F();
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
29
|
-
*/
|
|
30
|
-
start(n, o) {
|
|
31
|
-
this.clear(), this.currentId = setTimeout(() => {
|
|
32
|
-
this.currentId = null, o();
|
|
33
|
-
}, n);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
let R = !0, w = !1;
|
|
37
|
-
const W = new F(), j = {
|
|
38
|
-
text: !0,
|
|
39
|
-
search: !0,
|
|
40
|
-
url: !0,
|
|
41
|
-
tel: !0,
|
|
42
|
-
email: !0,
|
|
43
|
-
password: !0,
|
|
44
|
-
number: !0,
|
|
45
|
-
date: !0,
|
|
46
|
-
month: !0,
|
|
47
|
-
week: !0,
|
|
48
|
-
time: !0,
|
|
49
|
-
datetime: !0,
|
|
50
|
-
"datetime-local": !0
|
|
51
|
-
};
|
|
52
|
-
function X(r) {
|
|
53
|
-
const {
|
|
54
|
-
type: n,
|
|
55
|
-
tagName: o
|
|
56
|
-
} = r;
|
|
57
|
-
return !!(o === "INPUT" && j[n] && !r.readOnly || o === "TEXTAREA" && !r.readOnly || r.isContentEditable);
|
|
58
|
-
}
|
|
59
|
-
function q(r) {
|
|
60
|
-
r.metaKey || r.altKey || r.ctrlKey || (R = !0);
|
|
61
|
-
}
|
|
62
|
-
function T() {
|
|
63
|
-
R = !1;
|
|
64
|
-
}
|
|
65
|
-
function z() {
|
|
66
|
-
this.visibilityState === "hidden" && w && (R = !0);
|
|
67
|
-
}
|
|
68
|
-
function G(r) {
|
|
69
|
-
r.addEventListener("keydown", q, !0), r.addEventListener("mousedown", T, !0), r.addEventListener("pointerdown", T, !0), r.addEventListener("touchstart", T, !0), r.addEventListener("visibilitychange", z, !0);
|
|
70
|
-
}
|
|
71
|
-
function J(r) {
|
|
72
|
-
const {
|
|
73
|
-
target: n
|
|
74
|
-
} = r;
|
|
75
|
-
try {
|
|
76
|
-
return n.matches(":focus-visible");
|
|
77
|
-
} catch {
|
|
78
|
-
}
|
|
79
|
-
return R || X(n);
|
|
80
|
-
}
|
|
81
|
-
function Q() {
|
|
82
|
-
const r = l.useCallback((i) => {
|
|
83
|
-
i != null && G(i.ownerDocument);
|
|
84
|
-
}, []), n = l.useRef(!1);
|
|
85
|
-
function o() {
|
|
86
|
-
return n.current ? (w = !0, W.start(100, () => {
|
|
87
|
-
w = !1;
|
|
88
|
-
}), n.current = !1, !0) : !1;
|
|
89
|
-
}
|
|
90
|
-
function s(i) {
|
|
91
|
-
return J(i) ? (n.current = !0, !0) : !1;
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
isFocusVisibleRef: n,
|
|
95
|
-
onFocus: s,
|
|
96
|
-
onBlur: o,
|
|
97
|
-
ref: r
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function ee(r = {}) {
|
|
101
|
-
const {
|
|
102
|
-
disabled: n = !1,
|
|
103
|
-
focusableWhenDisabled: o,
|
|
104
|
-
href: s,
|
|
105
|
-
rootRef: i,
|
|
106
|
-
tabIndex: c,
|
|
107
|
-
to: b,
|
|
108
|
-
type: f,
|
|
109
|
-
rootElementName: V
|
|
110
|
-
} = r, y = l.useRef(), [K, E] = l.useState(!1), {
|
|
111
|
-
isFocusVisibleRef: h,
|
|
112
|
-
onFocus: x,
|
|
113
|
-
onBlur: B,
|
|
114
|
-
ref: v
|
|
115
|
-
} = Q(), [p, N] = l.useState(!1);
|
|
116
|
-
n && !o && p && N(!1), l.useEffect(() => {
|
|
117
|
-
h.current = p;
|
|
118
|
-
}, [p, h]);
|
|
119
|
-
const [m, M] = _({
|
|
120
|
-
rootElementName: V ?? (s || b ? "a" : void 0),
|
|
121
|
-
componentName: "Button"
|
|
122
|
-
}), U = (t) => (e) => {
|
|
123
|
-
var u;
|
|
124
|
-
p && e.preventDefault(), (u = t.onMouseLeave) == null || u.call(t, e);
|
|
125
|
-
}, L = (t) => (e) => {
|
|
126
|
-
var u;
|
|
127
|
-
B(e), h.current === !1 && N(!1), (u = t.onBlur) == null || u.call(t, e);
|
|
128
|
-
}, P = (t) => (e) => {
|
|
129
|
-
var u;
|
|
130
|
-
if (y.current || (y.current = e.currentTarget), x(e), h.current === !0) {
|
|
131
|
-
var d;
|
|
132
|
-
N(!0), (d = t.onFocusVisible) == null || d.call(t, e);
|
|
133
|
-
}
|
|
134
|
-
(u = t.onFocus) == null || u.call(t, e);
|
|
135
|
-
}, g = () => {
|
|
136
|
-
const t = y.current;
|
|
137
|
-
return m === "BUTTON" || m === "INPUT" && ["button", "submit", "reset"].includes(t == null ? void 0 : t.type) || m === "A" && (t == null ? void 0 : t.href);
|
|
138
|
-
}, C = (t) => (e) => {
|
|
139
|
-
if (!n) {
|
|
140
|
-
var u;
|
|
141
|
-
(u = t.onClick) == null || u.call(t, e);
|
|
142
|
-
}
|
|
143
|
-
}, $ = (t) => (e) => {
|
|
144
|
-
var u;
|
|
145
|
-
n || (E(!0), document.addEventListener("mouseup", () => {
|
|
146
|
-
E(!1);
|
|
147
|
-
}, {
|
|
148
|
-
once: !0
|
|
149
|
-
})), (u = t.onMouseDown) == null || u.call(t, e);
|
|
150
|
-
}, S = (t) => (e) => {
|
|
151
|
-
var u;
|
|
152
|
-
if ((u = t.onKeyDown) == null || u.call(t, e), !e.defaultMuiPrevented && (e.target === e.currentTarget && !g() && e.key === " " && e.preventDefault(), e.target === e.currentTarget && e.key === " " && !n && E(!0), e.target === e.currentTarget && !g() && e.key === "Enter" && !n)) {
|
|
153
|
-
var d;
|
|
154
|
-
(d = t.onClick) == null || d.call(t, e), e.preventDefault();
|
|
155
|
-
}
|
|
156
|
-
}, O = (t) => (e) => {
|
|
157
|
-
var u;
|
|
158
|
-
if (e.target === e.currentTarget && E(!1), (u = t.onKeyUp) == null || u.call(t, e), e.target === e.currentTarget && !g() && !n && e.key === " " && !e.defaultMuiPrevented) {
|
|
159
|
-
var d;
|
|
160
|
-
(d = t.onClick) == null || d.call(t, e);
|
|
161
|
-
}
|
|
162
|
-
}, D = A(M, i, v, y), a = {};
|
|
163
|
-
return c !== void 0 && (a.tabIndex = c), m === "BUTTON" ? (a.type = f ?? "button", o ? a["aria-disabled"] = n : a.disabled = n) : m === "INPUT" ? f && ["button", "submit", "reset"].includes(f) && (o ? a["aria-disabled"] = n : a.disabled = n) : m !== "" && (!s && !b && (a.role = "button", a.tabIndex = c ?? 0), n && (a["aria-disabled"] = n, a.tabIndex = o ? c ?? 0 : -1)), {
|
|
164
|
-
getRootProps: (t = {}) => {
|
|
165
|
-
const e = k({}, I(r), I(t)), u = k({
|
|
166
|
-
type: f
|
|
167
|
-
}, e, a, t, {
|
|
168
|
-
onBlur: L(e),
|
|
169
|
-
onClick: C(e),
|
|
170
|
-
onFocus: P(e),
|
|
171
|
-
onKeyDown: S(e),
|
|
172
|
-
onKeyUp: O(e),
|
|
173
|
-
onMouseDown: $(e),
|
|
174
|
-
onMouseLeave: U(e),
|
|
175
|
-
ref: D
|
|
176
|
-
});
|
|
177
|
-
return delete u.onFocusVisible, u;
|
|
178
|
-
},
|
|
179
|
-
focusVisible: p,
|
|
180
|
-
setFocusVisible: N,
|
|
181
|
-
active: K,
|
|
182
|
-
rootRef: D
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
export {
|
|
186
|
-
ee as u
|
|
187
|
-
};
|