@pismo/marola 0.0.1-alpha.1 → 0.0.1-alpha.11
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 +17 -5
- package/dist/Button-B1umG8kJ.js +131 -0
- 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/Tab-CRwnhsj5.js +254 -0
- package/dist/Tabs.module-yYcTJnj6.js +103 -0
- package/dist/_commonjsHelpers-CT_km90n.js +30 -0
- package/dist/assets/Advice.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/Checkbox.css +1 -0
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/IconButton.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/InputSearch.css +1 -0
- package/dist/assets/LoadingSpinner.css +1 -1
- package/dist/assets/PageHeader.css +1 -0
- package/dist/assets/Pagination.css +1 -0
- 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 -0
- package/dist/assets/Toggle.css +1 -0
- package/dist/assets/Tooltip.css +1 -0
- package/dist/assets/Typography.css +1 -1
- package/dist/assets/global.css +1 -0
- package/dist/components/Advice/Advice.d.ts +16 -0
- package/dist/components/Advice/Advice.js +25 -0
- package/dist/components/Button/Button.d.ts +29 -0
- package/dist/components/Button/Button.js +70 -0
- 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 +19 -0
- package/dist/components/Checkbox/Checkbox.js +56 -0
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +1 -1
- package/dist/components/Dialog/Backdrop.js +2 -9
- package/dist/components/Dialog/CloseIconButton.js +11 -10
- package/dist/components/Dialog/Dialog.d.ts +5 -4
- package/dist/components/Dialog/Dialog.js +419 -20077
- 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 +22 -7
- package/dist/components/Icon/Icon.d.ts +18 -0
- package/dist/components/Icon/Icon.js +95 -0
- package/dist/components/IconButton/IconButton.d.ts +22 -0
- package/dist/components/IconButton/IconButton.js +68 -0
- 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/InputSearch/InputSearch.d.ts +11 -0
- package/dist/components/InputSearch/InputSearch.js +29 -0
- package/dist/components/InputSearch/InputSearch.stories.d.ts +22 -0
- package/dist/components/InputSearch/InputSearch.stories.js +36 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +2 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.js +12 -13
- 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 +36 -0
- package/dist/components/PageHeader/PageHeader.js +51 -0
- 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 +36 -0
- package/dist/components/Pagination/Pagination.js +219 -0
- 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 -0
- 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 -0
- package/dist/components/Table/TableContext.d.ts +19 -0
- package/dist/components/Table/TableContext.js +21 -0
- package/dist/components/Tabs/Tab.d.ts +9 -0
- package/dist/components/Tabs/Tab.js +8 -0
- package/dist/components/Tabs/TabPanel.d.ts +8 -0
- package/dist/components/Tabs/TabPanel.js +118 -0
- package/dist/components/Tabs/Tabs.d.ts +11 -0
- package/dist/components/Tabs/Tabs.js +827 -0
- package/dist/components/Toggle/Toggle.d.ts +11 -0
- package/dist/components/Toggle/Toggle.js +252 -0
- package/dist/components/Toggle/Toggle.stories.d.ts +21 -0
- package/dist/components/Toggle/Toggle.stories.js +33 -0
- package/dist/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/components/Tooltip/Tooltip.js +1366 -0
- package/dist/components/Typography/Typography.d.ts +15 -6
- package/dist/components/Typography/Typography.js +75 -67
- 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-CqjC7P5Y.js +814 -0
- package/dist/magic-string.es-O_8lTkE3.js +738 -0
- package/dist/main.d.ts +18 -2
- package/dist/main.js +57 -15
- 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 +14 -7
- package/dist/useButton-Bc8IAgyk.js +106 -0
- package/dist/useControlled-CCMYYdCM.js +31 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- 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 +53 -10
- package/dist/Button-REznN-RP.js +0 -1139
- package/dist/Dialog.module-BO0mdB7d.js +0 -15
- package/dist/assets/CallToActionButton.css +0 -1
- package/dist/assets/main.css +0 -1
- package/dist/components/CallToActionButton/CallToActionButton.d.ts +0 -23
- package/dist/components/CallToActionButton/CallToActionButton.js +0 -57
- package/src/playground/Playground.tsx +0 -58
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
type ToggleProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
+
label?: string;
|
|
5
|
+
classNameWrapper?: string;
|
|
6
|
+
classNameInput?: string;
|
|
7
|
+
classNameLabel?: string;
|
|
8
|
+
'data-testid'?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Toggle: ({ label, checked, disabled, classNameWrapper, classNameInput, "data-testid": dataTestId, onChange, classNameLabel, }: ToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import '../../assets/Toggle.css';
|
|
2
|
+
import { jsxs as I, jsx as P } from "react/jsx-runtime";
|
|
3
|
+
import { c as C } from "../../clsx-DB4S2d7J.js";
|
|
4
|
+
import { a as x, _ as v } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
5
|
+
import * as N from "react";
|
|
6
|
+
import { u as U, g as q, a as H, b as F, P as e, c as M, d as A } from "../../index-CqjC7P5Y.js";
|
|
7
|
+
import { u as D } from "../../useControlled-CCMYYdCM.js";
|
|
8
|
+
import { u as L } from "../../useIsFocusVisible-BH4IAdcw.js";
|
|
9
|
+
function W(l) {
|
|
10
|
+
const {
|
|
11
|
+
checked: s,
|
|
12
|
+
defaultChecked: p,
|
|
13
|
+
disabled: c,
|
|
14
|
+
onBlur: a,
|
|
15
|
+
onChange: g,
|
|
16
|
+
onFocus: r,
|
|
17
|
+
onFocusVisible: u,
|
|
18
|
+
readOnly: n,
|
|
19
|
+
required: i
|
|
20
|
+
} = l, [V, S] = D({
|
|
21
|
+
controlled: s,
|
|
22
|
+
default: !!p,
|
|
23
|
+
name: "Switch",
|
|
24
|
+
state: "checked"
|
|
25
|
+
}), B = (t) => (o) => {
|
|
26
|
+
var b;
|
|
27
|
+
o.nativeEvent.defaultPrevented || (S(o.target.checked), g == null || g(o), (b = t.onChange) == null || b.call(t, o));
|
|
28
|
+
}, {
|
|
29
|
+
isFocusVisibleRef: _,
|
|
30
|
+
onBlur: w,
|
|
31
|
+
onFocus: f,
|
|
32
|
+
ref: m
|
|
33
|
+
} = L(), [h, y] = N.useState(!1);
|
|
34
|
+
c && h && y(!1), N.useEffect(() => {
|
|
35
|
+
_.current = h;
|
|
36
|
+
}, [h, _]);
|
|
37
|
+
const k = N.useRef(null), R = (t) => (o) => {
|
|
38
|
+
var b;
|
|
39
|
+
k.current || (k.current = o.currentTarget), f(o), _.current === !0 && (y(!0), u == null || u(o)), r == null || r(o), (b = t.onFocus) == null || b.call(t, o);
|
|
40
|
+
}, T = (t) => (o) => {
|
|
41
|
+
var b;
|
|
42
|
+
w(o), _.current === !1 && y(!1), a == null || a(o), (b = t.onBlur) == null || b.call(t, o);
|
|
43
|
+
}, O = U(m, k);
|
|
44
|
+
return {
|
|
45
|
+
checked: V,
|
|
46
|
+
disabled: !!c,
|
|
47
|
+
focusVisible: h,
|
|
48
|
+
getInputProps: (t = {}) => x({
|
|
49
|
+
checked: s,
|
|
50
|
+
defaultChecked: p,
|
|
51
|
+
disabled: c,
|
|
52
|
+
readOnly: n,
|
|
53
|
+
ref: O,
|
|
54
|
+
required: i,
|
|
55
|
+
type: "checkbox",
|
|
56
|
+
role: "switch",
|
|
57
|
+
"aria-checked": s
|
|
58
|
+
}, t, {
|
|
59
|
+
onChange: B(t),
|
|
60
|
+
onFocus: R(t),
|
|
61
|
+
onBlur: T(t)
|
|
62
|
+
}),
|
|
63
|
+
inputRef: O,
|
|
64
|
+
readOnly: !!n
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
const $ = "Switch";
|
|
68
|
+
function z(l) {
|
|
69
|
+
return q($, l);
|
|
70
|
+
}
|
|
71
|
+
H($, ["root", "input", "track", "thumb", "checked", "disabled", "focusVisible", "readOnly"]);
|
|
72
|
+
const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFocus", "onFocusVisible", "readOnly", "required", "slotProps", "slots"], J = (l) => {
|
|
73
|
+
const {
|
|
74
|
+
checked: s,
|
|
75
|
+
disabled: p,
|
|
76
|
+
focusVisible: c,
|
|
77
|
+
readOnly: a
|
|
78
|
+
} = l;
|
|
79
|
+
return M({
|
|
80
|
+
root: ["root", s && "checked", p && "disabled", c && "focusVisible", a && "readOnly"],
|
|
81
|
+
thumb: ["thumb"],
|
|
82
|
+
input: ["input"],
|
|
83
|
+
track: ["track"]
|
|
84
|
+
}, A(z));
|
|
85
|
+
}, E = /* @__PURE__ */ N.forwardRef(function(s, p) {
|
|
86
|
+
var c, a, g, r;
|
|
87
|
+
const {
|
|
88
|
+
slotProps: u = {},
|
|
89
|
+
slots: n = {}
|
|
90
|
+
} = s, i = v(s, G), {
|
|
91
|
+
getInputProps: V,
|
|
92
|
+
checked: S,
|
|
93
|
+
disabled: B,
|
|
94
|
+
focusVisible: _,
|
|
95
|
+
readOnly: w
|
|
96
|
+
} = W(s), f = x({}, s, {
|
|
97
|
+
checked: S,
|
|
98
|
+
disabled: B,
|
|
99
|
+
focusVisible: _,
|
|
100
|
+
readOnly: w
|
|
101
|
+
}), m = J(f), h = (c = n.root) != null ? c : "span", y = F({
|
|
102
|
+
elementType: h,
|
|
103
|
+
externalSlotProps: u.root,
|
|
104
|
+
externalForwardedProps: i,
|
|
105
|
+
additionalProps: {
|
|
106
|
+
ref: p
|
|
107
|
+
},
|
|
108
|
+
ownerState: f,
|
|
109
|
+
className: m.root
|
|
110
|
+
}), k = (a = n.thumb) != null ? a : "span", R = F({
|
|
111
|
+
elementType: k,
|
|
112
|
+
externalSlotProps: u.thumb,
|
|
113
|
+
ownerState: f,
|
|
114
|
+
className: m.thumb
|
|
115
|
+
}), T = (g = n.input) != null ? g : "input", O = F({
|
|
116
|
+
elementType: T,
|
|
117
|
+
getSlotProps: V,
|
|
118
|
+
externalSlotProps: u.input,
|
|
119
|
+
ownerState: f,
|
|
120
|
+
className: m.input
|
|
121
|
+
}), j = n.track === null ? () => null : (r = n.track) != null ? r : "span", t = F({
|
|
122
|
+
elementType: j,
|
|
123
|
+
externalSlotProps: u.track,
|
|
124
|
+
ownerState: f,
|
|
125
|
+
className: m.track
|
|
126
|
+
});
|
|
127
|
+
return /* @__PURE__ */ I(h, x({}, y, {
|
|
128
|
+
children: [/* @__PURE__ */ P(j, x({}, t)), /* @__PURE__ */ P(k, x({}, R)), /* @__PURE__ */ P(T, x({}, O))]
|
|
129
|
+
}));
|
|
130
|
+
});
|
|
131
|
+
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
132
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
133
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
134
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
135
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
136
|
+
/**
|
|
137
|
+
* If `true`, the component is checked.
|
|
138
|
+
*/
|
|
139
|
+
checked: e.bool,
|
|
140
|
+
/**
|
|
141
|
+
* Class name applied to the root element.
|
|
142
|
+
*/
|
|
143
|
+
className: e.string,
|
|
144
|
+
/**
|
|
145
|
+
* The default checked state. Use when the component is not controlled.
|
|
146
|
+
*/
|
|
147
|
+
defaultChecked: e.bool,
|
|
148
|
+
/**
|
|
149
|
+
* If `true`, the component is disabled.
|
|
150
|
+
*/
|
|
151
|
+
disabled: e.bool,
|
|
152
|
+
/**
|
|
153
|
+
* @ignore
|
|
154
|
+
*/
|
|
155
|
+
onBlur: e.func,
|
|
156
|
+
/**
|
|
157
|
+
* Callback fired when the state is changed.
|
|
158
|
+
*
|
|
159
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
160
|
+
* You can pull out the new value by accessing `event.target.value` (string).
|
|
161
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
162
|
+
*/
|
|
163
|
+
onChange: e.func,
|
|
164
|
+
/**
|
|
165
|
+
* @ignore
|
|
166
|
+
*/
|
|
167
|
+
onFocus: e.func,
|
|
168
|
+
/**
|
|
169
|
+
* @ignore
|
|
170
|
+
*/
|
|
171
|
+
onFocusVisible: e.func,
|
|
172
|
+
/**
|
|
173
|
+
* If `true`, the component is read only.
|
|
174
|
+
*/
|
|
175
|
+
readOnly: e.bool,
|
|
176
|
+
/**
|
|
177
|
+
* If `true`, the `input` element is required.
|
|
178
|
+
*/
|
|
179
|
+
required: e.bool,
|
|
180
|
+
/**
|
|
181
|
+
* The props used for each slot inside the Switch.
|
|
182
|
+
* @default {}
|
|
183
|
+
*/
|
|
184
|
+
slotProps: e.shape({
|
|
185
|
+
input: e.oneOfType([e.func, e.object]),
|
|
186
|
+
root: e.oneOfType([e.func, e.object]),
|
|
187
|
+
thumb: e.oneOfType([e.func, e.object]),
|
|
188
|
+
track: e.oneOfType([e.func, e.object])
|
|
189
|
+
}),
|
|
190
|
+
/**
|
|
191
|
+
* The components used for each slot inside the Switch.
|
|
192
|
+
* Either a string to use a HTML element or a component.
|
|
193
|
+
* @default {}
|
|
194
|
+
*/
|
|
195
|
+
slots: e.shape({
|
|
196
|
+
input: e.elementType,
|
|
197
|
+
root: e.elementType,
|
|
198
|
+
thumb: e.elementType,
|
|
199
|
+
track: e.oneOfType([e.elementType, e.oneOf([null])])
|
|
200
|
+
})
|
|
201
|
+
});
|
|
202
|
+
const K = "_toggle_1icxx_1", Q = "_input_1icxx_12", X = "_thumb_1icxx_23", Y = "_track_1icxx_37", Z = "_toggle__label_1icxx_61", d = {
|
|
203
|
+
toggle: K,
|
|
204
|
+
"toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_1icxx_8",
|
|
205
|
+
input: Q,
|
|
206
|
+
thumb: X,
|
|
207
|
+
track: Y,
|
|
208
|
+
"toggle--focus-visible": "_toggle--focus-visible_1icxx_47",
|
|
209
|
+
"toggle--checked": "_toggle--checked_1icxx_51",
|
|
210
|
+
toggle__label: Z,
|
|
211
|
+
"toggle--disabled": "_toggle--disabled_1icxx_66"
|
|
212
|
+
}, ne = ({
|
|
213
|
+
label: l,
|
|
214
|
+
checked: s,
|
|
215
|
+
disabled: p,
|
|
216
|
+
classNameWrapper: c,
|
|
217
|
+
classNameInput: a,
|
|
218
|
+
"data-testid": g,
|
|
219
|
+
onChange: r,
|
|
220
|
+
classNameLabel: u
|
|
221
|
+
}) => {
|
|
222
|
+
const n = (i) => {
|
|
223
|
+
r == null || r(i);
|
|
224
|
+
};
|
|
225
|
+
return /* @__PURE__ */ I("div", { className: C(d.toggle, c), "data-testid": g, children: [
|
|
226
|
+
/* @__PURE__ */ P(
|
|
227
|
+
E,
|
|
228
|
+
{
|
|
229
|
+
checked: s === !0,
|
|
230
|
+
disabled: p,
|
|
231
|
+
onChange: n,
|
|
232
|
+
"aria-label": l,
|
|
233
|
+
slotProps: {
|
|
234
|
+
root: (i) => ({
|
|
235
|
+
className: C(d["toggle__toggle-el-wrapper"], {
|
|
236
|
+
[d["toggle--disabled"]]: i.disabled,
|
|
237
|
+
[d["toggle--focus-visible"]]: i.focusVisible,
|
|
238
|
+
[d["toggle--checked"]]: i.checked
|
|
239
|
+
})
|
|
240
|
+
}),
|
|
241
|
+
input: { className: C(d.input, a) },
|
|
242
|
+
thumb: { className: d.thumb },
|
|
243
|
+
track: { className: d.track }
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
),
|
|
247
|
+
l && /* @__PURE__ */ P("label", { className: C(d.toggle__label, u), children: l })
|
|
248
|
+
] });
|
|
249
|
+
};
|
|
250
|
+
export {
|
|
251
|
+
ne as Toggle
|
|
252
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ label, checked, disabled, classNameWrapper, classNameInput, "data-testid": dataTestId, onChange, classNameLabel, }: import('react').InputHTMLAttributes<HTMLInputElement> & {
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
classNameWrapper?: string | undefined;
|
|
8
|
+
classNameInput?: string | undefined;
|
|
9
|
+
classNameLabel?: string | undefined;
|
|
10
|
+
'data-testid'?: string | undefined;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
tags: string[];
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const Simple: Story;
|
|
20
|
+
export declare const WithLabel: Story;
|
|
21
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r } from "react";
|
|
3
|
+
import { Toggle as c } from "./Toggle.js";
|
|
4
|
+
const l = {
|
|
5
|
+
title: "Components/Toggle",
|
|
6
|
+
component: c,
|
|
7
|
+
tags: ["autodocs"],
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: "padded"
|
|
10
|
+
}
|
|
11
|
+
}, h = {
|
|
12
|
+
render: () => {
|
|
13
|
+
const [e, t] = r(!1);
|
|
14
|
+
return /* @__PURE__ */ o(c, { checked: e, onChange: (a) => t(a.target.checked) });
|
|
15
|
+
}
|
|
16
|
+
}, m = {
|
|
17
|
+
name: "With label",
|
|
18
|
+
render: () => {
|
|
19
|
+
const [e, t] = r(!1);
|
|
20
|
+
return /* @__PURE__ */ o(c, { label: "Active", checked: e, onChange: (a) => t(a.target.checked) });
|
|
21
|
+
}
|
|
22
|
+
}, g = {
|
|
23
|
+
render: () => {
|
|
24
|
+
const [e, t] = r(!1);
|
|
25
|
+
return /* @__PURE__ */ o(c, { label: "Active", disabled: !0, checked: e, onChange: (a) => t(a.target.checked) });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
g as Disabled,
|
|
30
|
+
h as Simple,
|
|
31
|
+
m as WithLabel,
|
|
32
|
+
l as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PopupPlacement } from '@mui/base';
|
|
2
|
+
|
|
3
|
+
type TooltipProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
show?: boolean;
|
|
6
|
+
anchorRef?: HTMLElement | null | undefined;
|
|
7
|
+
disableHoverListener?: boolean;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
theme?: 'white' | 'black';
|
|
10
|
+
padding?: 'small' | 'normal';
|
|
11
|
+
position?: PopupPlacement;
|
|
12
|
+
arialRole?: React.AriaRole;
|
|
13
|
+
className?: string;
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const Tooltip: ({ children, show, anchorRef, onClose, arialRole, position, theme, padding, className, disableHoverListener, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { Tooltip };
|