@pismo/marola 1.0.0-beta.7 → 1.0.0-beta.9
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-DiLqcAJG.js} +2 -2
- package/dist/{ClickAwayListener-BSW-Nd-y.js → ClickAwayListener-BaJ-OV_7.js} +4 -3
- package/dist/Dialog.module-DFcZsVAd.js +30 -0
- package/dist/Input.module-ZTRZRcNt.js +405 -0
- package/dist/{Popup-B6ZSGIEI.js → Popup-lLWZt2wk.js} +3 -3
- package/dist/{Portal-DIeBsWdL.js → Portal-B_Es6eUL.js} +2 -2
- package/dist/SelectButton-CoOT2txy.js +61 -0
- package/dist/Toggle-f5brSwAI.js +175 -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/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/Table.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-BtBYUV_B.js} +1 -1
- 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 +50 -0
- package/dist/components/Autocomplete/Autocomplete.js +689 -0
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +45 -0
- package/dist/components/Button/Button.js +48 -48
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.js +3 -3
- 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.js +13 -12
- package/dist/components/Dialog/Dialog.stories.d.ts +43 -43
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.js +74 -471
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Pagination/Pagination.js +70 -70
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.js +8 -7
- package/dist/components/Select/SelectButton.js +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.js +96 -96
- package/dist/components/Tabs/Tab.js +18 -17
- package/dist/components/Tabs/TabPanel.js +27 -26
- package/dist/components/Tabs/Tabs.js +25 -25
- package/dist/components/Toggle/Toggle.js +55 -55
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/Typography/Typography.js +47 -47
- package/dist/{index-CjW42-M-.js → index-D3Wj0eid.js} +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +77 -75
- package/dist/ownerDocument-B61GUaFs.js +33 -0
- package/dist/{useButton-DNk3wrQp.js → useButton-Bn3MNH8I.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-BpJT77u3.js} +2 -2
- package/dist/{index-CH45lKw7.js → useSlotProps-kRhf7Gil.js} +93 -94
- package/package.json +1 -1
- package/dist/Dialog.module-DFEmFdYT.js +0 -30
- package/dist/SelectButton-K3OIfR5m.js +0 -61
- package/dist/Toggle-BWF0-SPB.js +0 -175
- package/dist/useCompoundItem-D1iRfg8D.js +0 -84
- package/dist/useEventCallback-xTG9piMa.js +0 -45
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import '../../assets/Toggle.css';
|
|
2
2
|
import { jsxs as j, jsx as P } from "react/jsx-runtime";
|
|
3
3
|
import { c as O } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { u as E, b as k, g as v, a as U, _ as
|
|
4
|
+
import { u as E, b as k, g as v, a as U, _ as H, c as C, P as e, d as M, e as A } from "../../useSlotProps-kRhf7Gil.js";
|
|
5
5
|
import * as F from "react";
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
function
|
|
6
|
+
import { u as D } from "../../useControlled-CCMYYdCM.js";
|
|
7
|
+
import { u as L } from "../../useIsFocusVisible-BH4IAdcw.js";
|
|
8
|
+
function W(l) {
|
|
9
9
|
const {
|
|
10
10
|
checked: s,
|
|
11
11
|
defaultChecked: i,
|
|
12
|
-
disabled:
|
|
12
|
+
disabled: a,
|
|
13
13
|
onBlur: c,
|
|
14
14
|
onChange: h,
|
|
15
15
|
onFocus: n,
|
|
16
16
|
onFocusVisible: u,
|
|
17
|
-
readOnly:
|
|
17
|
+
readOnly: r,
|
|
18
18
|
required: p
|
|
19
|
-
} = l, [N, V] =
|
|
19
|
+
} = l, [N, V] = D({
|
|
20
20
|
controlled: s,
|
|
21
21
|
default: !!i,
|
|
22
22
|
name: "Switch",
|
|
@@ -29,26 +29,26 @@ function L(l) {
|
|
|
29
29
|
onBlur: B,
|
|
30
30
|
onFocus: _,
|
|
31
31
|
ref: f
|
|
32
|
-
} =
|
|
33
|
-
|
|
32
|
+
} = L(), [y, q] = F.useState(!1);
|
|
33
|
+
a && y && q(!1), F.useEffect(() => {
|
|
34
34
|
b.current = y;
|
|
35
35
|
}, [y, b]);
|
|
36
36
|
const m = F.useRef(null), w = (t) => (o) => {
|
|
37
37
|
var d;
|
|
38
|
-
m.current || (m.current = o.currentTarget), _(o), b.current === !0 && (
|
|
38
|
+
m.current || (m.current = o.currentTarget), _(o), b.current === !0 && (q(!0), u == null || u(o)), n == null || n(o), (d = t.onFocus) == null || d.call(t, o);
|
|
39
39
|
}, T = (t) => (o) => {
|
|
40
40
|
var d;
|
|
41
|
-
B(o), b.current === !1 &&
|
|
41
|
+
B(o), b.current === !1 && q(!1), c == null || c(o), (d = t.onBlur) == null || d.call(t, o);
|
|
42
42
|
}, x = E(f, m);
|
|
43
43
|
return {
|
|
44
44
|
checked: N,
|
|
45
|
-
disabled: !!
|
|
45
|
+
disabled: !!a,
|
|
46
46
|
focusVisible: y,
|
|
47
47
|
getInputProps: (t = {}) => k({
|
|
48
48
|
checked: s,
|
|
49
49
|
defaultChecked: i,
|
|
50
|
-
disabled:
|
|
51
|
-
readOnly:
|
|
50
|
+
disabled: a,
|
|
51
|
+
readOnly: r,
|
|
52
52
|
ref: x,
|
|
53
53
|
required: p,
|
|
54
54
|
type: "checkbox",
|
|
@@ -60,11 +60,11 @@ function L(l) {
|
|
|
60
60
|
onBlur: T(t)
|
|
61
61
|
}),
|
|
62
62
|
inputRef: x,
|
|
63
|
-
readOnly: !!
|
|
63
|
+
readOnly: !!r
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
const I = "Switch";
|
|
67
|
-
function
|
|
67
|
+
function z(l) {
|
|
68
68
|
return v(I, l);
|
|
69
69
|
}
|
|
70
70
|
U(I, ["root", "input", "track", "thumb", "checked", "disabled", "focusVisible", "readOnly"]);
|
|
@@ -72,32 +72,32 @@ const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFoc
|
|
|
72
72
|
const {
|
|
73
73
|
checked: s,
|
|
74
74
|
disabled: i,
|
|
75
|
-
focusVisible:
|
|
75
|
+
focusVisible: a,
|
|
76
76
|
readOnly: c
|
|
77
77
|
} = l;
|
|
78
|
-
return
|
|
79
|
-
root: ["root", s && "checked", i && "disabled",
|
|
78
|
+
return M({
|
|
79
|
+
root: ["root", s && "checked", i && "disabled", a && "focusVisible", c && "readOnly"],
|
|
80
80
|
thumb: ["thumb"],
|
|
81
81
|
input: ["input"],
|
|
82
82
|
track: ["track"]
|
|
83
|
-
},
|
|
83
|
+
}, A(z));
|
|
84
84
|
}, $ = /* @__PURE__ */ F.forwardRef(function(s, i) {
|
|
85
|
-
var
|
|
85
|
+
var a, c, h, n;
|
|
86
86
|
const {
|
|
87
87
|
slotProps: u = {},
|
|
88
|
-
slots:
|
|
89
|
-
} = s, p =
|
|
88
|
+
slots: r = {}
|
|
89
|
+
} = s, p = H(s, G), {
|
|
90
90
|
getInputProps: N,
|
|
91
91
|
checked: V,
|
|
92
92
|
disabled: S,
|
|
93
93
|
focusVisible: b,
|
|
94
94
|
readOnly: B
|
|
95
|
-
} =
|
|
95
|
+
} = W(s), _ = k({}, s, {
|
|
96
96
|
checked: V,
|
|
97
97
|
disabled: S,
|
|
98
98
|
focusVisible: b,
|
|
99
99
|
readOnly: B
|
|
100
|
-
}), f = J(_), y = (
|
|
100
|
+
}), f = J(_), y = (a = r.root) != null ? a : "span", q = C({
|
|
101
101
|
elementType: y,
|
|
102
102
|
externalSlotProps: u.root,
|
|
103
103
|
externalForwardedProps: p,
|
|
@@ -106,24 +106,24 @@ const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFoc
|
|
|
106
106
|
},
|
|
107
107
|
ownerState: _,
|
|
108
108
|
className: f.root
|
|
109
|
-
}), m = (c =
|
|
109
|
+
}), m = (c = r.thumb) != null ? c : "span", w = C({
|
|
110
110
|
elementType: m,
|
|
111
111
|
externalSlotProps: u.thumb,
|
|
112
112
|
ownerState: _,
|
|
113
113
|
className: f.thumb
|
|
114
|
-
}), T = (h =
|
|
114
|
+
}), T = (h = r.input) != null ? h : "input", x = C({
|
|
115
115
|
elementType: T,
|
|
116
116
|
getSlotProps: N,
|
|
117
117
|
externalSlotProps: u.input,
|
|
118
118
|
ownerState: _,
|
|
119
119
|
className: f.input
|
|
120
|
-
}), R =
|
|
120
|
+
}), R = r.track === null ? () => null : (n = r.track) != null ? n : "span", t = C({
|
|
121
121
|
elementType: R,
|
|
122
122
|
externalSlotProps: u.track,
|
|
123
123
|
ownerState: _,
|
|
124
124
|
className: f.track
|
|
125
125
|
});
|
|
126
|
-
return /* @__PURE__ */ j(y, k({},
|
|
126
|
+
return /* @__PURE__ */ j(y, k({}, q, {
|
|
127
127
|
children: [/* @__PURE__ */ P(R, k({}, t)), /* @__PURE__ */ P(m, k({}, w)), /* @__PURE__ */ P(T, k({}, x))]
|
|
128
128
|
}));
|
|
129
129
|
});
|
|
@@ -198,51 +198,51 @@ process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
|
198
198
|
track: e.oneOfType([e.elementType, e.oneOf([null])])
|
|
199
199
|
})
|
|
200
200
|
});
|
|
201
|
-
const K = "
|
|
202
|
-
"u-typography-h1": "_u-typography-
|
|
203
|
-
"u-typography-h2": "_u-typography-
|
|
204
|
-
"u-typography-h3": "_u-typography-
|
|
205
|
-
"u-typography-h4": "_u-typography-
|
|
206
|
-
"u-typography-h5": "_u-typography-
|
|
207
|
-
"u-typography-h6": "_u-typography-
|
|
208
|
-
"u-typography-base": "_u-typography-
|
|
201
|
+
const K = "_toggle__label_p0gq9_43", Q = "_toggle_p0gq9_43", X = "_input_p0gq9_89", Y = "_thumb_p0gq9_100", Z = "_track_p0gq9_114", g = {
|
|
202
|
+
"u-typography-h1": "_u-typography-h1_p0gq9_1",
|
|
203
|
+
"u-typography-h2": "_u-typography-h2_p0gq9_8",
|
|
204
|
+
"u-typography-h3": "_u-typography-h3_p0gq9_15",
|
|
205
|
+
"u-typography-h4": "_u-typography-h4_p0gq9_22",
|
|
206
|
+
"u-typography-h5": "_u-typography-h5_p0gq9_29",
|
|
207
|
+
"u-typography-h6": "_u-typography-h6_p0gq9_36",
|
|
208
|
+
"u-typography-base": "_u-typography-base_p0gq9_43",
|
|
209
209
|
toggle__label: K,
|
|
210
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
211
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
212
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
213
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
214
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
215
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
216
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
217
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
210
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_p0gq9_49",
|
|
211
|
+
"u-typography-base--xl": "_u-typography-base--xl_p0gq9_53",
|
|
212
|
+
"u-typography-base--lg": "_u-typography-base--lg_p0gq9_57",
|
|
213
|
+
"u-typography-base--sm": "_u-typography-base--sm_p0gq9_61",
|
|
214
|
+
"u-typography-base--bold": "_u-typography-base--bold_p0gq9_65",
|
|
215
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_p0gq9_68",
|
|
216
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_p0gq9_71",
|
|
217
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_p0gq9_74",
|
|
218
218
|
toggle: Q,
|
|
219
|
-
"toggle__toggle-el-wrapper": "_toggle__toggle-el-
|
|
219
|
+
"toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_p0gq9_85",
|
|
220
220
|
input: X,
|
|
221
221
|
thumb: Y,
|
|
222
222
|
track: Z,
|
|
223
|
-
"toggle--focus-visible": "_toggle--focus-
|
|
224
|
-
"toggle--checked": "_toggle--
|
|
225
|
-
"toggle--disabled": "_toggle--
|
|
226
|
-
},
|
|
223
|
+
"toggle--focus-visible": "_toggle--focus-visible_p0gq9_124",
|
|
224
|
+
"toggle--checked": "_toggle--checked_p0gq9_128",
|
|
225
|
+
"toggle--disabled": "_toggle--disabled_p0gq9_141"
|
|
226
|
+
}, ae = ({
|
|
227
227
|
label: l,
|
|
228
228
|
checked: s,
|
|
229
229
|
disabled: i,
|
|
230
|
-
classNameWrapper:
|
|
230
|
+
classNameWrapper: a,
|
|
231
231
|
classNameInput: c,
|
|
232
232
|
"data-testid": h,
|
|
233
233
|
onChange: n,
|
|
234
234
|
classNameLabel: u
|
|
235
235
|
}) => {
|
|
236
|
-
const
|
|
236
|
+
const r = (p) => {
|
|
237
237
|
n == null || n(p);
|
|
238
238
|
};
|
|
239
|
-
return /* @__PURE__ */ j("div", { className: O(g.toggle,
|
|
239
|
+
return /* @__PURE__ */ j("div", { className: O(g.toggle, a), "data-testid": h, children: [
|
|
240
240
|
/* @__PURE__ */ P(
|
|
241
241
|
$,
|
|
242
242
|
{
|
|
243
243
|
checked: s === !0,
|
|
244
244
|
disabled: i,
|
|
245
|
-
onChange:
|
|
245
|
+
onChange: r,
|
|
246
246
|
"aria-label": l,
|
|
247
247
|
slotProps: {
|
|
248
248
|
root: (p) => ({
|
|
@@ -262,5 +262,5 @@ const K = "_toggle__label_1rzg2_43", Q = "_toggle_1rzg2_43", X = "_input_1rzg2_8
|
|
|
262
262
|
] });
|
|
263
263
|
};
|
|
264
264
|
export {
|
|
265
|
-
|
|
265
|
+
ae as Toggle
|
|
266
266
|
};
|
|
@@ -2,10 +2,10 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../clsx-DB4S2d7J.js";
|
|
4
4
|
import "../Icon/Icon.js";
|
|
5
|
+
import "../Typography/Typography.js";
|
|
5
6
|
import "../Button/Button.js";
|
|
6
|
-
import { T as b } from "../../Toggle-
|
|
7
|
+
import { T as b } from "../../Toggle-f5brSwAI.js";
|
|
7
8
|
import "../Dialog/Backdrop.js";
|
|
8
|
-
import "../Typography/Typography.js";
|
|
9
9
|
import "../IconButton/IconButton.js";
|
|
10
10
|
import "../Select/Select.js";
|
|
11
11
|
import "../Table/Table.js";
|
|
@@ -2,10 +2,10 @@ import '../../assets/Tooltip.css';
|
|
|
2
2
|
import { jsx as a, jsxs as v, Fragment as P } from "react/jsx-runtime";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import { useRef as R, useState as T, useEffect as E, isValidElement as q, cloneElement as M } from "react";
|
|
5
|
-
import { T as O, P as V } from "../../Popup-
|
|
6
|
-
import { _ as $, b as z, P as l } from "../../
|
|
5
|
+
import { T as O, P as V } from "../../Popup-lLWZt2wk.js";
|
|
6
|
+
import { _ as $, b as z, P as l } from "../../useSlotProps-kRhf7Gil.js";
|
|
7
7
|
import { c as D } from "../../clsx-DB4S2d7J.js";
|
|
8
|
-
import { C as F } from "../../ClickAwayListener-
|
|
8
|
+
import { C as F } from "../../ClickAwayListener-BaJ-OV_7.js";
|
|
9
9
|
function I() {
|
|
10
10
|
const e = u.useContext(O);
|
|
11
11
|
if (!e)
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import '../../assets/Typography.css';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { bemify as
|
|
5
|
-
import { c as
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as c, useMemo as f } from "react";
|
|
4
|
+
import { bemify as x, getBEMBase as k, getBEMBlock as B } from "../../utils/styleStrings.js";
|
|
5
|
+
import { c as $ } from "../../clsx-DB4S2d7J.js";
|
|
6
6
|
const t = {
|
|
7
|
-
"u-typography-h1": "_u-typography-
|
|
8
|
-
"u-typography-h2": "_u-typography-
|
|
9
|
-
"u-typography-h3": "_u-typography-
|
|
10
|
-
"u-typography-h4": "_u-typography-
|
|
11
|
-
"u-typography-h5": "_u-typography-
|
|
12
|
-
"u-typography-h6": "_u-typography-
|
|
13
|
-
"u-typography-base": "_u-typography-
|
|
14
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
15
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
16
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
17
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
18
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
19
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
20
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
21
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
22
|
-
},
|
|
7
|
+
"u-typography-h1": "_u-typography-h1_gn8st_1",
|
|
8
|
+
"u-typography-h2": "_u-typography-h2_gn8st_8",
|
|
9
|
+
"u-typography-h3": "_u-typography-h3_gn8st_15",
|
|
10
|
+
"u-typography-h4": "_u-typography-h4_gn8st_22",
|
|
11
|
+
"u-typography-h5": "_u-typography-h5_gn8st_29",
|
|
12
|
+
"u-typography-h6": "_u-typography-h6_gn8st_36",
|
|
13
|
+
"u-typography-base": "_u-typography-base_gn8st_43",
|
|
14
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_gn8st_49",
|
|
15
|
+
"u-typography-base--xl": "_u-typography-base--xl_gn8st_53",
|
|
16
|
+
"u-typography-base--lg": "_u-typography-base--lg_gn8st_57",
|
|
17
|
+
"u-typography-base--sm": "_u-typography-base--sm_gn8st_61",
|
|
18
|
+
"u-typography-base--bold": "_u-typography-base--bold_gn8st_65",
|
|
19
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_gn8st_68",
|
|
20
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_gn8st_71",
|
|
21
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_gn8st_74"
|
|
22
|
+
}, E = (e) => {
|
|
23
23
|
const a = e.toString();
|
|
24
24
|
let r = "base";
|
|
25
25
|
return a.match(/^h[1-6]/) && (r = a), r;
|
|
26
|
-
},
|
|
26
|
+
}, M = c((e, a) => {
|
|
27
27
|
const {
|
|
28
28
|
children: r,
|
|
29
|
-
className:
|
|
29
|
+
className: h,
|
|
30
30
|
underline: y = !1,
|
|
31
|
-
element:
|
|
32
|
-
bold:
|
|
33
|
-
color:
|
|
34
|
-
variant:
|
|
35
|
-
strikethrough:
|
|
36
|
-
elementProps:
|
|
37
|
-
} = e,
|
|
38
|
-
const o = `u-typography-${
|
|
39
|
-
return
|
|
40
|
-
t[
|
|
41
|
-
{ [t[`${o}`]]: o !==
|
|
42
|
-
|
|
43
|
-
{ [t[`${p}--bold`]]:
|
|
31
|
+
element: g = "span",
|
|
32
|
+
bold: n = !1,
|
|
33
|
+
color: l,
|
|
34
|
+
variant: u = E(g),
|
|
35
|
+
strikethrough: s = !1,
|
|
36
|
+
elementProps: i
|
|
37
|
+
} = e, b = g, d = f(() => {
|
|
38
|
+
const o = `u-typography-${x(u)}`, _ = k(o), p = B(o);
|
|
39
|
+
return $(
|
|
40
|
+
t[_],
|
|
41
|
+
{ [t[`${o}`]]: o !== _ },
|
|
42
|
+
h,
|
|
43
|
+
{ [t[`${p}--bold`]]: n },
|
|
44
44
|
{ [t[`${p}--underlined`]]: y },
|
|
45
|
-
{ [t[`${p}--strikethrough`]]:
|
|
46
|
-
{ [t[`${p}--strikethrough-underlined`]]:
|
|
45
|
+
{ [t[`${p}--strikethrough`]]: s },
|
|
46
|
+
{ [t[`${p}--strikethrough-underlined`]]: s && s && y }
|
|
47
47
|
);
|
|
48
|
-
}, [
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
|
|
48
|
+
}, [n, h, s, y, u]);
|
|
49
|
+
return /* @__PURE__ */ m(
|
|
50
|
+
b,
|
|
51
51
|
{
|
|
52
|
-
style: { color:
|
|
52
|
+
style: { color: l },
|
|
53
53
|
ref: a,
|
|
54
54
|
"data-testid": e["data-testid"],
|
|
55
|
-
...
|
|
56
|
-
className:
|
|
55
|
+
...i ?? {},
|
|
56
|
+
className: d,
|
|
57
57
|
children: r
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
|
-
}),
|
|
60
|
+
}), w = M;
|
|
61
61
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
w as Text,
|
|
63
|
+
M as Typography,
|
|
64
|
+
M as default
|
|
65
65
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export * from './components/Adornment/Adornment';
|
|
6
6
|
export * from './components/Advice/Advice';
|
|
7
|
+
export * from './components/Autocomplete/Autocomplete';
|
|
7
8
|
export * from './components/Button/Button';
|
|
8
9
|
export * from './components/Checkbox/Checkbox';
|
|
9
10
|
export * from './components/Chip/Chip';
|
package/dist/main.js
CHANGED
|
@@ -1,81 +1,83 @@
|
|
|
1
1
|
import { Adornment as e } from "./components/Adornment/Adornment.js";
|
|
2
2
|
import { Advice as p } from "./components/Advice/Advice.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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 {
|
|
28
|
-
import {
|
|
29
|
-
import { default as ko } from "./components/Dialog/
|
|
30
|
-
import { default as Io } from "./components/Dialog/
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
3
|
+
import { Autocomplete as f } from "./components/Autocomplete/Autocomplete.js";
|
|
4
|
+
import { Button as x } from "./components/Button/Button.js";
|
|
5
|
+
import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
|
|
6
|
+
import { C as T, R as s, T as c } from "./Toggle-f5brSwAI.js";
|
|
7
|
+
import { Dialog as u } from "./components/Dialog/Dialog.js";
|
|
8
|
+
import { EllipsisTooltip as d } from "./components/EllipsisTooltip/EllipsisTooltip.js";
|
|
9
|
+
import { Icon as k } from "./components/Icon/Icon.js";
|
|
10
|
+
import { IconButton as I } from "./components/IconButton/IconButton.js";
|
|
11
|
+
import { Input as D } from "./components/Input/Input.js";
|
|
12
|
+
import { InputSearch as A } from "./components/InputSearch/InputSearch.js";
|
|
13
|
+
import { LoadingSpinner as B } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
14
|
+
import { PageHeader as v } from "./components/PageHeader/PageHeader.js";
|
|
15
|
+
import { Pagination as R, paginationDefaultTranslations as w } from "./components/Pagination/Pagination.js";
|
|
16
|
+
import { Select as L, SelectOption as O } from "./components/Select/Select.js";
|
|
17
|
+
import { Skeleton as q, SkeletonCircle as z, SkeletonTable as F } from "./components/Skeleton/Skeleton.js";
|
|
18
|
+
import { Snackbar as K } from "./components/Snackbar/Snackbar.js";
|
|
19
|
+
import { SortTooltip as N, sortTooltipDefaultTranslations as Q } from "./components/SortTooltip/SortTooltip.js";
|
|
20
|
+
import { Stepper as V } from "./components/Stepper/Stepper.js";
|
|
21
|
+
import { TBody as X, THead as Y, Table as Z, Td as _, Th as $, Tr as oo } from "./components/Table/Table.js";
|
|
22
|
+
import { Tabs as eo } from "./components/Tabs/Tabs.js";
|
|
23
|
+
import { TextDisplay as po } from "./components/TextDisplay/TextDisplay.js";
|
|
24
|
+
import { Toggle as fo } from "./components/Toggle/Toggle.js";
|
|
25
|
+
import { G as xo } from "./Group-B3p31ftp.js";
|
|
26
|
+
import { Tooltip as lo } from "./components/Tooltip/Tooltip.js";
|
|
27
|
+
import { Text as To, Typography as so } from "./components/Typography/Typography.js";
|
|
28
|
+
import { SnackbarContext as go, SnackbarProvider as uo, useSnackbar as So } from "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
29
|
+
import { default as ko } from "./components/Dialog/DialogTitle.js";
|
|
30
|
+
import { default as Io } from "./components/Dialog/Content.js";
|
|
31
|
+
import { default as Do } from "./components/Dialog/Actions.js";
|
|
32
|
+
import { Tab as Ao } from "./components/Tabs/Tab.js";
|
|
33
|
+
import { TabPanel as Bo } from "./components/Tabs/TabPanel.js";
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
Do as Actions,
|
|
35
36
|
e as Adornment,
|
|
36
37
|
p as Advice,
|
|
37
|
-
f as
|
|
38
|
-
|
|
39
|
-
l as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
d as
|
|
45
|
-
k as
|
|
46
|
-
I as
|
|
47
|
-
D as
|
|
48
|
-
|
|
49
|
-
B as
|
|
50
|
-
v as
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
O as
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
F as
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
V as
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
fo as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
38
|
+
f as Autocomplete,
|
|
39
|
+
x as Button,
|
|
40
|
+
l as Checkbox,
|
|
41
|
+
T as Chip,
|
|
42
|
+
Io as Content,
|
|
43
|
+
u as Dialog,
|
|
44
|
+
ko as DialogTitle,
|
|
45
|
+
d as EllipsisTooltip,
|
|
46
|
+
k as Icon,
|
|
47
|
+
I as IconButton,
|
|
48
|
+
D as Input,
|
|
49
|
+
A as InputSearch,
|
|
50
|
+
B as LoadingSpinner,
|
|
51
|
+
v as PageHeader,
|
|
52
|
+
R as Pagination,
|
|
53
|
+
s as RowItem,
|
|
54
|
+
L as Select,
|
|
55
|
+
O as SelectOption,
|
|
56
|
+
q as Skeleton,
|
|
57
|
+
z as SkeletonCircle,
|
|
58
|
+
F as SkeletonTable,
|
|
59
|
+
K as Snackbar,
|
|
60
|
+
go as SnackbarContext,
|
|
61
|
+
uo as SnackbarProvider,
|
|
62
|
+
N as SortTooltip,
|
|
63
|
+
V as Stepper,
|
|
64
|
+
X as TBody,
|
|
65
|
+
Y as THead,
|
|
66
|
+
Ao as Tab,
|
|
67
|
+
Bo as TabPanel,
|
|
68
|
+
Z as Table,
|
|
69
|
+
eo as Tabs,
|
|
70
|
+
_ as Td,
|
|
71
|
+
To as Text,
|
|
72
|
+
po as TextDisplay,
|
|
73
|
+
$ as Th,
|
|
74
|
+
fo as Toggle,
|
|
75
|
+
xo as ToggleGroup,
|
|
76
|
+
c as ToggleGroupItem,
|
|
77
|
+
lo as Tooltip,
|
|
78
|
+
oo as Tr,
|
|
79
|
+
so as Typography,
|
|
80
|
+
w as paginationDefaultTranslations,
|
|
81
|
+
Q as sortTooltipDefaultTranslations,
|
|
82
|
+
So as useSnackbar
|
|
81
83
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { P as c } from "./useSlotProps-kRhf7Gil.js";
|
|
2
|
+
function a(e, n) {
|
|
3
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...t) {
|
|
4
|
+
return e(...t) || n(...t);
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
function p(e) {
|
|
8
|
+
const {
|
|
9
|
+
prototype: n = {}
|
|
10
|
+
} = e;
|
|
11
|
+
return !!n.isReactComponent;
|
|
12
|
+
}
|
|
13
|
+
function l(e, n, i, t, s) {
|
|
14
|
+
const r = e[n], f = s || n;
|
|
15
|
+
if (r == null || // When server-side rendering React doesn't warn either.
|
|
16
|
+
// This is not an accurate check for SSR.
|
|
17
|
+
// This is only in place for Emotion compat.
|
|
18
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
19
|
+
typeof window > "u")
|
|
20
|
+
return null;
|
|
21
|
+
let o;
|
|
22
|
+
const u = r.type;
|
|
23
|
+
return typeof u == "function" && !p(u) && (o = "Did you accidentally use a plain function component for an element instead?"), o !== void 0 ? new Error(`Invalid ${t} \`${f}\` supplied to \`${i}\`. Expected an element that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
24
|
+
}
|
|
25
|
+
const m = a(c.element, l);
|
|
26
|
+
m.isRequired = a(c.element.isRequired, l);
|
|
27
|
+
function y(e) {
|
|
28
|
+
return e && e.ownerDocument || document;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
m as e,
|
|
32
|
+
y as o
|
|
33
|
+
};
|