mimir-ui-kit 1.37.12 → 1.37.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/{combobox-BpYucpxz.js → combobox-CDU06zJj.js} +1080 -1121
- package/dist/components/Accordion/Accordion.js +116 -116
- package/dist/components/CheckboxMimir/CheckboxMimir.js +46 -50
- package/dist/components/Drawer/Drawer.d.ts +9 -1
- package/dist/components/Drawer/Drawer.js +49 -47
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +3 -3
- package/dist/components/SelectSearch/SelectSearch.js +131 -131
- package/dist/components/Switcher/Switcher.js +4 -4
- package/dist/components/TabTrail/TabTrail.js +4 -4
- package/dist/{field-C1kt7aNM.js → field-FJ34aSs4.js} +2 -2
- package/dist/{focus-management-DOYCPyGg.js → focus-management-XwV-9qkO.js} +1 -1
- package/dist/{hidden-PvGXrYUY.js → hidden-DbgtYPOH.js} +1 -1
- package/dist/hooks/useMediaQuery/useMediaQuery.d.ts +1 -1
- package/dist/{keyboard-mgWkd2Vh.js → keyboard-B0lm_zyn.js} +111 -114
- package/dist/{label-D4GFpe5F.js → label-y3ANLTNC.js} +2 -2
- package/dist/open-closed-CdldUPoq.js +86 -0
- package/dist/{use-active-press-CqLGIFz7.js → use-active-press-86hajhdd.js} +1 -1
- package/package.json +1 -1
- package/dist/open-closed-D2VjDhAN.js +0 -86
@@ -1,24 +1,24 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
3
|
-
import
|
1
|
+
import { jsxs as A, Fragment as K, jsx as I } from "react/jsx-runtime";
|
2
|
+
import { c as x } from "../../index-DIxK0V-G.js";
|
3
|
+
import b, { createContext as M, useRef as oe, Fragment as re, useReducer as pe, useMemo as O, useId as le, useEffect as se, useState as ae, useContext as U, forwardRef as me } from "react";
|
4
4
|
import { AccordionItem as fe } from "./AccordionItem/AccordionItem.js";
|
5
|
-
import { EAccordionButtonType as
|
6
|
-
import { useMediaQuery as
|
7
|
-
import { EMediaQuery as
|
8
|
-
import { Icon as
|
9
|
-
import { Link as
|
10
|
-
import { M as ee, W as q, y as j, T as
|
11
|
-
import { w as
|
12
|
-
import { e as
|
13
|
-
import { c as
|
14
|
-
import { r as
|
15
|
-
import '../../assets/Accordion.css';let
|
5
|
+
import { EAccordionButtonType as g, EAccordionSize as B, EAccordionLinkIconSize as J, EAccordionButtonStyle as _e, EAccordionIconType as Y, EAccordionButtonIconSize as Z } from "./constants.js";
|
6
|
+
import { useMediaQuery as ye } from "../../hooks/useMediaQuery/useMediaQuery.js";
|
7
|
+
import { EMediaQuery as Ee } from "../../hooks/useMediaQuery/constants.js";
|
8
|
+
import { Icon as Se } from "../../icons/Icon.js";
|
9
|
+
import { Link as ke } from "../AnchorLink/Link.js";
|
10
|
+
import { M as ee, W as q, y as j, T as Ie, o as D, a as W, H as Q, I as ce, $ as be, b as ve, D as te, u as $e, c as T } from "../../keyboard-B0lm_zyn.js";
|
11
|
+
import { w as he } from "../../use-active-press-86hajhdd.js";
|
12
|
+
import { e as xe } from "../../use-resolve-button-type-DhFdPxnv.js";
|
13
|
+
import { c as De, i as R, u as Pe, R as ge, H as Te, s as we } from "../../open-closed-CdldUPoq.js";
|
14
|
+
import { r as Ne } from "../../bugs-diTMAGNw.js";
|
15
|
+
import '../../assets/Accordion.css';let Ce = M(() => {
|
16
16
|
});
|
17
|
-
function
|
18
|
-
return
|
17
|
+
function Ae({ value: e, children: t }) {
|
18
|
+
return b.createElement(Ce.Provider, { value: e }, t);
|
19
19
|
}
|
20
|
-
var
|
21
|
-
let
|
20
|
+
var ne;
|
21
|
+
let Be = (ne = b.startTransition) != null ? ne : function(e) {
|
22
22
|
e();
|
23
23
|
};
|
24
24
|
var Oe = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Oe || {}), Re = ((e) => (e[e.ToggleDisclosure = 0] = "ToggleDisclosure", e[e.CloseDisclosure = 1] = "CloseDisclosure", e[e.SetButtonId = 2] = "SetButtonId", e[e.SetPanelId = 3] = "SetPanelId", e[e.SetButtonElement = 4] = "SetButtonElement", e[e.SetPanelElement = 5] = "SetPanelElement", e))(Re || {});
|
@@ -60,148 +60,148 @@ function Le(e, t) {
|
|
60
60
|
}
|
61
61
|
let He = re;
|
62
62
|
function Ke(e, t) {
|
63
|
-
let { defaultOpen: u = !1, ...p } = e, s =
|
63
|
+
let { defaultOpen: u = !1, ...p } = e, s = oe(null), m = j(t, Ie((c) => {
|
64
64
|
s.current = c;
|
65
|
-
}, e.as === void 0 || e.as === re)), a = pe(Le, { disclosureState: u ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState:
|
66
|
-
|
67
|
-
let f =
|
65
|
+
}, e.as === void 0 || e.as === re)), a = pe(Le, { disclosureState: u ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: n, buttonId: r }, y] = a, l = D((c) => {
|
66
|
+
y({ type: 1 });
|
67
|
+
let f = $e(s);
|
68
68
|
if (!f || !r) return;
|
69
69
|
let _ = c ? c instanceof HTMLElement ? c : c.current instanceof HTMLElement ? c.current : f.getElementById(r) : f.getElementById(r);
|
70
70
|
_ == null || _.focus();
|
71
|
-
}),
|
72
|
-
return
|
71
|
+
}), v = O(() => ({ close: l }), [l]), E = O(() => ({ open: n === 0, close: l }), [n, l]), S = { ref: m };
|
72
|
+
return b.createElement(V.Provider, { value: a }, b.createElement(X.Provider, { value: v }, b.createElement(Ae, { value: l }, b.createElement(De, { value: W(n, { 0: R.Open, 1: R.Closed }) }, Q({ ourProps: S, theirProps: p, slot: E, defaultTag: He, name: "Disclosure" })))));
|
73
73
|
}
|
74
74
|
let Ue = "button";
|
75
75
|
function qe(e, t) {
|
76
|
-
let u = le(), { id: p = `headlessui-disclosure-button-${u}`, disabled: s = !1, autoFocus: m = !1, ...a } = e, [
|
76
|
+
let u = le(), { id: p = `headlessui-disclosure-button-${u}`, disabled: s = !1, autoFocus: m = !1, ...a } = e, [n, r] = z("Disclosure.Button"), y = Fe(), l = y === null ? !1 : y === n.panelId, v = oe(null), E = j(v, t, D((i) => {
|
77
77
|
if (!l) return r({ type: 4, element: i });
|
78
|
-
})),
|
78
|
+
})), S = ce();
|
79
79
|
se(() => {
|
80
80
|
if (!l) return r({ type: 2, buttonId: p }), () => {
|
81
81
|
r({ type: 2, buttonId: null });
|
82
82
|
};
|
83
83
|
}, [p, r, l]);
|
84
|
-
let c =
|
85
|
-
var
|
84
|
+
let c = D((i) => {
|
85
|
+
var o;
|
86
86
|
if (l) {
|
87
|
-
if (
|
87
|
+
if (n.disclosureState === 1) return;
|
88
88
|
switch (i.key) {
|
89
|
-
case
|
90
|
-
case
|
91
|
-
i.preventDefault(), i.stopPropagation(), r({ type: 0 }), (
|
89
|
+
case T.Space:
|
90
|
+
case T.Enter:
|
91
|
+
i.preventDefault(), i.stopPropagation(), r({ type: 0 }), (o = n.buttonElement) == null || o.focus();
|
92
92
|
break;
|
93
93
|
}
|
94
94
|
} else switch (i.key) {
|
95
|
-
case
|
96
|
-
case
|
95
|
+
case T.Space:
|
96
|
+
case T.Enter:
|
97
97
|
i.preventDefault(), i.stopPropagation(), r({ type: 0 });
|
98
98
|
break;
|
99
99
|
}
|
100
|
-
}), f =
|
100
|
+
}), f = D((i) => {
|
101
101
|
switch (i.key) {
|
102
|
-
case
|
102
|
+
case T.Space:
|
103
103
|
i.preventDefault();
|
104
104
|
break;
|
105
105
|
}
|
106
|
-
}), _ =
|
107
|
-
var
|
108
|
-
|
109
|
-
}), { isFocusVisible:
|
110
|
-
return Q({ mergeRefs:
|
106
|
+
}), _ = D((i) => {
|
107
|
+
var o;
|
108
|
+
Ne(i.currentTarget) || s || (l ? (r({ type: 0 }), (o = n.buttonElement) == null || o.focus()) : r({ type: 0 }));
|
109
|
+
}), { isFocusVisible: $, focusProps: h } = be({ autoFocus: m }), { isHovered: w, hoverProps: N } = ve({ isDisabled: s }), { pressed: k, pressProps: P } = he({ disabled: s }), F = O(() => ({ open: n.disclosureState === 0, hover: w, active: k, disabled: s, focus: $, autofocus: m }), [n, w, k, $, s, m]), C = xe(e, n.buttonElement), L = l ? te({ ref: E, type: C, disabled: s || void 0, autoFocus: m, onKeyDown: c, onClick: _ }, h, N, P) : te({ ref: E, id: p, type: C, "aria-expanded": n.disclosureState === 0, "aria-controls": n.panelElement ? n.panelId : void 0, disabled: s || void 0, autoFocus: m, onKeyDown: c, onKeyUp: f, onClick: _ }, h, N, P);
|
110
|
+
return Q({ mergeRefs: S, ourProps: L, theirProps: a, slot: F, defaultTag: Ue, name: "Disclosure.Button" });
|
111
111
|
}
|
112
112
|
let je = "div", We = ee.RenderStrategy | ee.Static;
|
113
113
|
function Qe(e, t) {
|
114
|
-
let u = le(), { id: p = `headlessui-disclosure-panel-${u}`, transition: s = !1, ...m } = e, [a,
|
115
|
-
|
116
|
-
}),
|
117
|
-
se(() => (
|
118
|
-
|
119
|
-
}), [p,
|
120
|
-
let
|
121
|
-
return
|
114
|
+
let u = le(), { id: p = `headlessui-disclosure-panel-${u}`, transition: s = !1, ...m } = e, [a, n] = z("Disclosure.Panel"), { close: r } = ie("Disclosure.Panel"), y = ce(), [l, v] = ae(null), E = j(t, D((h) => {
|
115
|
+
Be(() => n({ type: 5, element: h }));
|
116
|
+
}), v);
|
117
|
+
se(() => (n({ type: 3, panelId: p }), () => {
|
118
|
+
n({ type: 3, panelId: null });
|
119
|
+
}), [p, n]);
|
120
|
+
let S = Pe(), [c, f] = ge(s, l, S !== null ? (S & R.Open) === R.Open : a.disclosureState === 0), _ = O(() => ({ open: a.disclosureState === 0, close: r }), [a.disclosureState, r]), $ = { ref: E, id: p, ...Te(f) };
|
121
|
+
return b.createElement(we, null, b.createElement(G.Provider, { value: a.panelId }, Q({ mergeRefs: y, ourProps: $, theirProps: m, slot: _, defaultTag: je, features: We, visible: c, name: "Disclosure.Panel" })));
|
122
122
|
}
|
123
123
|
let Ve = q(Ke), ue = q(qe), de = q(Qe), ze = Object.assign(Ve, { Button: ue, Panel: de });
|
124
|
-
const Xe = "
|
125
|
-
|
126
|
-
"
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
"
|
133
|
-
|
134
|
-
|
124
|
+
const Xe = "_icon_1yk0x_2", Ge = "_open_1yk0x_15", Je = "_square_1yk0x_19", Ye = "_circle_1yk0x_23", Ze = "_disabled_1yk0x_23", et = "_accordion_1yk0x_37", tt = "_header_1yk0x_45", nt = "_title_1yk0x_61", ot = "_panel_1yk0x_88", rt = "_m_1yk0x_112", lt = "_s_1yk0x_19", d = {
|
125
|
+
icon: Xe,
|
126
|
+
"icon-container": "_icon-container_1yk0x_8",
|
127
|
+
open: Ge,
|
128
|
+
square: Je,
|
129
|
+
circle: Ye,
|
130
|
+
disabled: Ze,
|
131
|
+
accordion: et,
|
132
|
+
"is-link": "_is-link_1yk0x_41",
|
133
|
+
header: tt,
|
134
|
+
title: nt,
|
135
|
+
"title-uppercase": "_title-uppercase_1yk0x_64",
|
135
136
|
panel: ot,
|
136
|
-
open:
|
137
|
-
"link-open": "_link-open_1k9to_102",
|
137
|
+
"link-open": "_link-open_1yk0x_108",
|
138
138
|
m: rt,
|
139
139
|
s: lt,
|
140
|
-
"wrapper-button": "_wrapper-
|
141
|
-
},
|
140
|
+
"wrapper-button": "_wrapper-button_1yk0x_140"
|
141
|
+
}, It = me(
|
142
142
|
({
|
143
143
|
title: e,
|
144
144
|
disabled: t,
|
145
|
-
buttonType: u =
|
145
|
+
buttonType: u = g.BUTTON,
|
146
146
|
children: p,
|
147
147
|
showTitleByDefault: s = !0,
|
148
148
|
linkClassName: m,
|
149
|
-
size: a =
|
150
|
-
titleUppercase:
|
149
|
+
size: a = B.M,
|
150
|
+
titleUppercase: n,
|
151
151
|
buttonStyle: r = _e.CIRCLE,
|
152
|
-
iconType:
|
152
|
+
iconType: y = Y.ARROW,
|
153
153
|
classNameTitle: l,
|
154
|
-
classNameContent:
|
155
|
-
classNameAccordion:
|
156
|
-
classNameIconButton:
|
154
|
+
classNameContent: v,
|
155
|
+
classNameAccordion: E,
|
156
|
+
classNameIconButton: S,
|
157
157
|
subtitleNode: c,
|
158
158
|
onlyOpenSubtitleNode: f,
|
159
159
|
classNameSubtitleContainer: _
|
160
|
-
},
|
161
|
-
const [
|
162
|
-
[d["is-link"]]:
|
160
|
+
}, $) => {
|
161
|
+
const [h, w] = ae(!1), N = ye(Ee.XS1), k = u === g.LINK, P = {
|
162
|
+
[d["is-link"]]: k
|
163
163
|
}, F = () => {
|
164
|
-
t ||
|
165
|
-
},
|
164
|
+
t || w((o) => !o);
|
165
|
+
}, C = a === B.S ? J.S : J.M, L = (o) => ({
|
166
166
|
variant: "anchor",
|
167
|
-
size:
|
167
|
+
size: N ? "s" : "l",
|
168
168
|
rightIcon: {
|
169
|
-
iconName:
|
170
|
-
className:
|
171
|
-
[d["link-open"]]:
|
169
|
+
iconName: C,
|
170
|
+
className: x({
|
171
|
+
[d["link-open"]]: o
|
172
172
|
})
|
173
173
|
}
|
174
|
-
}), i = (
|
175
|
-
const H = () =>
|
174
|
+
}), i = (o) => {
|
175
|
+
const H = () => y === Y.DROPDOWN ? a === B.S ? "DropdownArrowBottom16px" : "DropdownArrowDown24px" : a === B.S ? Z.S : Z.M;
|
176
176
|
switch (u) {
|
177
|
-
case
|
177
|
+
case g.LINK:
|
178
178
|
return e;
|
179
|
-
case
|
180
|
-
return /* @__PURE__ */
|
181
|
-
/* @__PURE__ */
|
179
|
+
case g.BUTTON:
|
180
|
+
return /* @__PURE__ */ A(K, { children: [
|
181
|
+
/* @__PURE__ */ I(
|
182
182
|
"span",
|
183
183
|
{
|
184
|
-
className:
|
184
|
+
className: x(
|
185
185
|
d.title,
|
186
186
|
l,
|
187
|
-
|
187
|
+
n && d["title-uppercase"]
|
188
188
|
),
|
189
189
|
children: e
|
190
190
|
}
|
191
191
|
),
|
192
|
-
/* @__PURE__ */
|
192
|
+
/* @__PURE__ */ I(
|
193
193
|
"div",
|
194
194
|
{
|
195
|
-
className:
|
195
|
+
className: x(
|
196
196
|
d["icon-container"],
|
197
|
-
|
197
|
+
o && d.open,
|
198
198
|
t && d.disabled,
|
199
199
|
d[r],
|
200
|
-
|
200
|
+
S
|
201
201
|
),
|
202
202
|
"data-testid": "accordion-icon-container",
|
203
|
-
children: /* @__PURE__ */
|
204
|
-
|
203
|
+
children: /* @__PURE__ */ I(
|
204
|
+
Se,
|
205
205
|
{
|
206
206
|
iconName: H(),
|
207
207
|
className: d.icon,
|
@@ -215,43 +215,43 @@ const Xe = "_accordion_1k9to_2", Ge = "_header_1k9to_13", Je = "_disabled_1k9to_
|
|
215
215
|
return null;
|
216
216
|
}
|
217
217
|
};
|
218
|
-
return /* @__PURE__ */
|
219
|
-
/* @__PURE__ */
|
218
|
+
return /* @__PURE__ */ A(K, { children: [
|
219
|
+
/* @__PURE__ */ I(
|
220
220
|
"div",
|
221
221
|
{
|
222
|
-
className:
|
222
|
+
className: x(
|
223
223
|
d.accordion,
|
224
224
|
d[a],
|
225
|
-
|
226
|
-
|
225
|
+
P,
|
226
|
+
E
|
227
227
|
),
|
228
|
-
children: /* @__PURE__ */
|
229
|
-
(!
|
228
|
+
children: /* @__PURE__ */ I(ze, { ref: $, children: ({ open: o, close: H }) => /* @__PURE__ */ A(K, { children: [
|
229
|
+
(!o || s) && /* @__PURE__ */ I(
|
230
230
|
ue,
|
231
231
|
{
|
232
232
|
disabled: t,
|
233
|
-
as:
|
233
|
+
as: k ? ke : g.BUTTON,
|
234
234
|
onClick: F,
|
235
|
-
className:
|
236
|
-
[d.header]: !
|
235
|
+
className: x({
|
236
|
+
[d.header]: !k,
|
237
237
|
[d.disabled]: t,
|
238
|
-
[m ?? ""]:
|
238
|
+
[m ?? ""]: k && m
|
239
239
|
}),
|
240
|
-
...
|
241
|
-
children: (!
|
240
|
+
...k ? L(o) : {},
|
241
|
+
children: (!o || s) && i(o)
|
242
242
|
}
|
243
243
|
),
|
244
|
-
|
244
|
+
o && /* @__PURE__ */ I(
|
245
245
|
de,
|
246
246
|
{
|
247
247
|
"data-testid": "accordion-panel",
|
248
|
-
className:
|
248
|
+
className: x(
|
249
249
|
d.panel,
|
250
|
-
|
251
|
-
|
250
|
+
v,
|
251
|
+
P
|
252
252
|
),
|
253
|
-
children: /* @__PURE__ */
|
254
|
-
open:
|
253
|
+
children: /* @__PURE__ */ I(fe, { size: a, children: typeof p == "function" ? p({
|
254
|
+
open: o,
|
255
255
|
close: H
|
256
256
|
}) : p })
|
257
257
|
}
|
@@ -259,13 +259,13 @@ const Xe = "_accordion_1k9to_2", Ge = "_header_1k9to_13", Je = "_disabled_1k9to_
|
|
259
259
|
] }) })
|
260
260
|
}
|
261
261
|
),
|
262
|
-
(c || f) && /* @__PURE__ */
|
262
|
+
(c || f) && /* @__PURE__ */ A("div", { className: _, children: [
|
263
263
|
c,
|
264
|
-
|
264
|
+
h && f
|
265
265
|
] })
|
266
266
|
] });
|
267
267
|
}
|
268
268
|
);
|
269
269
|
export {
|
270
|
-
|
270
|
+
It as Accordion
|
271
271
|
};
|
@@ -1,64 +1,60 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { W as
|
3
|
-
import
|
4
|
-
import { w as re } from "../../use-active-press-
|
5
|
-
import { u as
|
6
|
-
import { r as
|
7
|
-
import { H as
|
1
|
+
import { jsxs as L, jsx as p } from "react/jsx-runtime";
|
2
|
+
import { W as O, p as V, o as d, $ as W, b as X, D as q, H as z, c as D } from "../../keyboard-B0lm_zyn.js";
|
3
|
+
import h, { useId as J, useState as Q, useMemo as Y, useCallback as Z, forwardRef as ee } from "react";
|
4
|
+
import { w as re } from "../../use-active-press-86hajhdd.js";
|
5
|
+
import { u as ae, a as oe, b as te, T as ce, I as ne, G as se, j as ie, p as le, K as de } from "../../label-y3ANLTNC.js";
|
6
|
+
import { r as be } from "../../bugs-diTMAGNw.js";
|
7
|
+
import { H as ue } from "../../field-FJ34aSs4.js";
|
8
8
|
import { c as me } from "../../index-DIxK0V-G.js";
|
9
|
-
import { Icon as
|
10
|
-
import '../../assets/CheckboxMimir.css';let
|
11
|
-
function
|
12
|
-
let
|
13
|
-
|
14
|
-
|
9
|
+
import { Icon as fe } from "../../icons/Icon.js";
|
10
|
+
import '../../assets/CheckboxMimir.css';let pe = "span";
|
11
|
+
function he(u, m) {
|
12
|
+
let n = J(), f = ae(), s = oe(), { id: i = f || `headlessui-checkbox-${n}`, disabled: e = s || !1, autoFocus: a = !1, checked: P, defaultChecked: j, onChange: y, name: v, value: F, form: I, indeterminate: l = !1, ...H } = u, o = te(j), [t, c] = ce(P, y, o ?? !1), N = ne(), R = se(), E = V(), [k, x] = Q(!1), $ = d(() => {
|
13
|
+
x(!0), c == null || c(!t), E.nextFrame(() => {
|
14
|
+
x(!1);
|
15
15
|
});
|
16
|
-
}),
|
17
|
-
if (
|
18
|
-
|
19
|
-
}),
|
20
|
-
|
21
|
-
}),
|
22
|
-
if (
|
23
|
-
}, [
|
24
|
-
return
|
16
|
+
}), K = d((r) => {
|
17
|
+
if (be(r.currentTarget)) return r.preventDefault();
|
18
|
+
r.preventDefault(), $();
|
19
|
+
}), T = d((r) => {
|
20
|
+
r.key === D.Space ? (r.preventDefault(), $()) : r.key === D.Enter && le(r.currentTarget);
|
21
|
+
}), M = d((r) => r.preventDefault()), { isFocusVisible: _, focusProps: w } = W({ autoFocus: a }), { isHovered: g, hoverProps: G } = X({ isDisabled: e }), { pressed: C, pressProps: S } = re({ disabled: e }), U = q({ ref: m, id: i, role: "checkbox", "aria-checked": l ? "mixed" : t ? "true" : "false", "aria-labelledby": N, "aria-describedby": R, "aria-disabled": e ? !0 : void 0, indeterminate: l ? "true" : void 0, tabIndex: e ? void 0 : 0, onKeyUp: e ? void 0 : T, onKeyPress: e ? void 0 : M, onClick: e ? void 0 : K }, w, G, S), A = Y(() => ({ checked: t, disabled: e, hover: g, focus: _, active: C, indeterminate: l, changing: k, autofocus: a }), [t, l, e, g, _, C, k, a]), B = Z(() => {
|
22
|
+
if (o !== void 0) return c == null ? void 0 : c(o);
|
23
|
+
}, [c, o]);
|
24
|
+
return h.createElement(h.Fragment, null, v != null && h.createElement(ie, { disabled: e, data: { [v]: F || "on" }, overrides: { type: "checkbox", checked: t }, form: I, onReset: B }), z({ ourProps: U, theirProps: H, slot: A, defaultTag: pe, name: "Checkbox" }));
|
25
25
|
}
|
26
|
-
let ve =
|
27
|
-
const
|
28
|
-
container:
|
29
|
-
checkbox:
|
30
|
-
label:
|
31
|
-
enabled:
|
26
|
+
let ve = O(he);
|
27
|
+
const ke = "_container_13bjb_2", xe = "_checkbox_13bjb_8", $e = "_label_13bjb_27", _e = "_enabled_13bjb_31", b = {
|
28
|
+
container: ke,
|
29
|
+
checkbox: xe,
|
30
|
+
label: $e,
|
31
|
+
enabled: _e
|
32
32
|
}, Ne = ee(
|
33
|
-
(
|
33
|
+
(u, m) => {
|
34
34
|
const {
|
35
|
-
checked:
|
36
|
-
onChange:
|
37
|
-
children:
|
38
|
-
id:
|
35
|
+
checked: n,
|
36
|
+
onChange: f,
|
37
|
+
children: s,
|
38
|
+
id: i,
|
39
39
|
isInteractive: e = !0,
|
40
|
-
...
|
41
|
-
} =
|
42
|
-
|
43
|
-
|
44
|
-
return ae(() => {
|
45
|
-
r !== void 0 && u(r);
|
46
|
-
}, [r]), /* @__PURE__ */ O(fe, { className: p.container, children: [
|
47
|
-
/* @__PURE__ */ x(
|
40
|
+
...a
|
41
|
+
} = u;
|
42
|
+
return /* @__PURE__ */ L(ue, { className: b.container, children: [
|
43
|
+
/* @__PURE__ */ p(
|
48
44
|
ve,
|
49
45
|
{
|
50
|
-
id:
|
51
|
-
ref:
|
52
|
-
checked:
|
53
|
-
onChange:
|
54
|
-
className: me(
|
55
|
-
[
|
46
|
+
id: i,
|
47
|
+
ref: m,
|
48
|
+
checked: n,
|
49
|
+
onChange: e ? f : void 0,
|
50
|
+
className: me(b.checkbox, {
|
51
|
+
[b.enabled]: n
|
56
52
|
}),
|
57
|
-
...
|
58
|
-
children: /* @__PURE__ */
|
53
|
+
...a,
|
54
|
+
children: /* @__PURE__ */ p(fe, { iconName: "Done16px" })
|
59
55
|
}
|
60
56
|
),
|
61
|
-
|
57
|
+
s && /* @__PURE__ */ p(de, { htmlFor: i, className: b.label, children: s })
|
62
58
|
] });
|
63
59
|
}
|
64
60
|
);
|
@@ -49,6 +49,14 @@ type TProps = {
|
|
49
49
|
footer?: ReactNode | ((props: {
|
50
50
|
handleClose: VoidFunction;
|
51
51
|
}) => JSX.Element);
|
52
|
+
/**
|
53
|
+
* Дополнительный класс для title.
|
54
|
+
*/
|
55
|
+
classNameTitle?: string;
|
56
|
+
/**
|
57
|
+
* Дополнительный класс для header.
|
58
|
+
*/
|
59
|
+
classNameHeader?: string;
|
52
60
|
/**
|
53
61
|
* Дополнительный класс для inner.
|
54
62
|
*/
|
@@ -69,5 +77,5 @@ type TProps = {
|
|
69
77
|
/**
|
70
78
|
* Компонент шторки, который может выезжать слева, справа или внизу.
|
71
79
|
*/
|
72
|
-
export declare const Drawer: ({ isOpen, onClose, title, className, unmount, isLoading, stickyHeader, fullBottomHeight, position, paddingRight, footer, children, classNameInner, classNameFooter, closeOnClickOutside, showCloseButton }: PropsWithChildren<TProps>) => import("react/jsx-runtime").JSX.Element | null;
|
80
|
+
export declare const Drawer: ({ isOpen, onClose, title, className, unmount, isLoading, stickyHeader, fullBottomHeight, position, paddingRight, footer, children, classNameTitle, classNameHeader, classNameInner, classNameFooter, closeOnClickOutside, showCloseButton }: PropsWithChildren<TProps>) => import("react/jsx-runtime").JSX.Element | null;
|
73
81
|
export {};
|