mimir-ui-kit 1.35.4 → 1.36.1
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/{Input-B-gKQ9FT.js → Input-DlGNMuUD.js} +67 -64
- package/dist/assets/Input.css +1 -1
- package/dist/assets/ListPhotos.css +1 -1
- package/dist/assets/MultiSelectSearch.css +1 -0
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/combobox-CDU06zJj.js +2855 -0
- package/dist/components/Accordion/Accordion.js +168 -166
- package/dist/components/Button/Button.d.ts +36 -0
- package/dist/components/Button/Button.js +44 -43
- package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +2 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.js +37 -30
- package/dist/components/Chip/Chip.d.ts +5 -1
- package/dist/components/Chip/Chip.js +23 -22
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputPassword/InputPassword.js +1 -1
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/ListPhotos/ListPhotos.js +4 -4
- package/dist/components/MultiSelectSearch/MultiSelectSearch.d.ts +22 -0
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +318 -0
- package/dist/components/MultiSelectSearch/constants.d.ts +4 -0
- package/dist/components/MultiSelectSearch/constants.js +4 -0
- package/dist/components/MultiSelectSearch/index.d.ts +3 -0
- package/dist/components/MultiSelectSearch/index.js +6 -0
- package/dist/components/MultiSelectSearch/types.d.ts +60 -0
- package/dist/components/MultiSelectSearch/utils.d.ts +8 -0
- package/dist/components/MultiSelectSearch/utils.js +19 -0
- package/dist/components/OtpInput/OtpInput.js +1 -1
- package/dist/components/SelectSearch/SelectSearch.js +172 -3017
- package/dist/components/SelectSearch/utils.d.ts +5 -0
- package/dist/components/SelectSearch/utils.js +17 -0
- package/dist/components/Switcher/Switcher.js +48 -48
- package/dist/components/TabTrail/TabTrail.js +171 -171
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +48 -44
- package/dist/index.js +50 -46
- package/dist/open-closed-CdldUPoq.js +86 -0
- package/dist/use-resolve-button-type-DhFdPxnv.js +12 -0
- package/package.json +3 -2
- package/dist/open-closed-Cy6VDfYc.js +0 -93
- package/dist/use-resolve-button-type-BAxjHhds.js +0 -19
@@ -1,129 +1,131 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
3
|
-
import S, { createContext as F, useRef as
|
4
|
-
import { AccordionItem as
|
5
|
-
import { EAccordionButtonType as
|
6
|
-
import { useMediaQuery as
|
7
|
-
import { EMediaQuery as
|
8
|
-
import { Icon as
|
9
|
-
import { Link as
|
10
|
-
import { M as
|
11
|
-
import { w as
|
12
|
-
import {
|
13
|
-
import { c as
|
1
|
+
import { jsxs as x, Fragment as X, jsx as v } from "react/jsx-runtime";
|
2
|
+
import { c as D } from "../../index-DIxK0V-G.js";
|
3
|
+
import S, { createContext as F, useRef as oe, Fragment as ne, useReducer as de, useMemo as R, useId as re, useEffect as le, useState as se, useContext as L, forwardRef as pe } from "react";
|
4
|
+
import { AccordionItem as me } from "./AccordionItem/AccordionItem.js";
|
5
|
+
import { EAccordionButtonType as w, EAccordionSize as O, EAccordionLinkIconSize as G, EAccordionButtonStyle as fe, EAccordionIconType as J, EAccordionButtonIconSize as Y } from "./constants.js";
|
6
|
+
import { useMediaQuery as _e } from "../../hooks/useMediaQuery/useMediaQuery.js";
|
7
|
+
import { EMediaQuery as Ee } from "../../hooks/useMediaQuery/constants.js";
|
8
|
+
import { Icon as ke } from "../../icons/Icon.js";
|
9
|
+
import { Link as Se } from "../AnchorLink/Link.js";
|
10
|
+
import { M as Z, W as K, y as U, T as Ie, o as $, a as q, H as j, I as ae, $ as be, b as ve, D as ee, u as he, c as N } from "../../keyboard-B0lm_zyn.js";
|
11
|
+
import { w as ye } from "../../use-active-press-86hajhdd.js";
|
12
|
+
import { e as De } from "../../use-resolve-button-type-DhFdPxnv.js";
|
13
|
+
import { c as $e, i as M, u as Pe, R as ge, H as Te, s as we } from "../../open-closed-CdldUPoq.js";
|
14
14
|
import { r as Ne } from "../../bugs-diTMAGNw.js";
|
15
|
-
import '../../assets/Accordion.css';let
|
15
|
+
import '../../assets/Accordion.css';let Ce = F(() => {
|
16
16
|
});
|
17
|
-
function
|
18
|
-
return S.createElement(
|
17
|
+
function Be({ value: e, children: t }) {
|
18
|
+
return S.createElement(Ce.Provider, { value: e }, t);
|
19
19
|
}
|
20
|
-
var
|
21
|
-
let Ae = (
|
20
|
+
var te;
|
21
|
+
let Ae = (te = S.startTransition) != null ? te : function(e) {
|
22
22
|
e();
|
23
23
|
};
|
24
|
-
var
|
25
|
-
let
|
26
|
-
return e.linkedPanel === !0 ? e : { ...e, linkedPanel: !0 };
|
27
|
-
}, 5(e) {
|
28
|
-
return e.linkedPanel === !1 ? e : { ...e, linkedPanel: !1 };
|
29
|
-
}, 2(e, t) {
|
24
|
+
var xe = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(xe || {}), Oe = ((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))(Oe || {});
|
25
|
+
let Re = { 0: (e) => ({ ...e, disclosureState: q(e.disclosureState, { 0: 1, 1: 0 }) }), 1: (e) => e.disclosureState === 1 ? e : { ...e, disclosureState: 1 }, 2(e, t) {
|
30
26
|
return e.buttonId === t.buttonId ? e : { ...e, buttonId: t.buttonId };
|
31
27
|
}, 3(e, t) {
|
32
28
|
return e.panelId === t.panelId ? e : { ...e, panelId: t.panelId };
|
33
|
-
}
|
34
|
-
|
29
|
+
}, 4(e, t) {
|
30
|
+
return e.buttonElement === t.element ? e : { ...e, buttonElement: t.element };
|
31
|
+
}, 5(e, t) {
|
32
|
+
return e.panelElement === t.element ? e : { ...e, panelElement: t.element };
|
33
|
+
} }, W = F(null);
|
34
|
+
W.displayName = "DisclosureContext";
|
35
35
|
function Q(e) {
|
36
|
-
let t =
|
36
|
+
let t = L(W);
|
37
37
|
if (t === null) {
|
38
|
-
let
|
39
|
-
throw Error.captureStackTrace && Error.captureStackTrace(
|
38
|
+
let a = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
|
39
|
+
throw Error.captureStackTrace && Error.captureStackTrace(a, Q), a;
|
40
40
|
}
|
41
41
|
return t;
|
42
42
|
}
|
43
|
-
let
|
44
|
-
|
45
|
-
function
|
46
|
-
let t =
|
43
|
+
let V = F(null);
|
44
|
+
V.displayName = "DisclosureAPIContext";
|
45
|
+
function ce(e) {
|
46
|
+
let t = L(V);
|
47
47
|
if (t === null) {
|
48
|
-
let
|
49
|
-
throw Error.captureStackTrace && Error.captureStackTrace(
|
48
|
+
let a = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
|
49
|
+
throw Error.captureStackTrace && Error.captureStackTrace(a, ce), a;
|
50
50
|
}
|
51
51
|
return t;
|
52
52
|
}
|
53
|
-
let
|
54
|
-
|
53
|
+
let z = F(null);
|
54
|
+
z.displayName = "DisclosurePanelContext";
|
55
55
|
function Me() {
|
56
|
-
return
|
56
|
+
return L(z);
|
57
57
|
}
|
58
|
-
function
|
59
|
-
return
|
58
|
+
function Fe(e, t) {
|
59
|
+
return q(t.type, Re, e, t);
|
60
60
|
}
|
61
|
-
let
|
62
|
-
function
|
63
|
-
let { defaultOpen:
|
64
|
-
|
65
|
-
}, e.as === void 0 || e.as ===
|
61
|
+
let He = ne;
|
62
|
+
function Le(e, t) {
|
63
|
+
let { defaultOpen: a = !1, ...d } = e, n = oe(null), p = U(t, Ie((c) => {
|
64
|
+
n.current = c;
|
65
|
+
}, e.as === void 0 || e.as === ne)), m = de(Fe, { disclosureState: a ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: o, buttonId: r }, k] = m, l = $((c) => {
|
66
66
|
k({ type: 1 });
|
67
|
-
let
|
68
|
-
if (!
|
69
|
-
let
|
70
|
-
|
71
|
-
}),
|
72
|
-
return S.createElement(
|
67
|
+
let E = he(n);
|
68
|
+
if (!E || !r) return;
|
69
|
+
let u = c ? c instanceof HTMLElement ? c : c.current instanceof HTMLElement ? c.current : E.getElementById(r) : E.getElementById(r);
|
70
|
+
u == null || u.focus();
|
71
|
+
}), I = R(() => ({ close: l }), [l]), f = R(() => ({ open: o === 0, close: l }), [o, l]), _ = { ref: p };
|
72
|
+
return S.createElement(W.Provider, { value: m }, S.createElement(V.Provider, { value: I }, S.createElement(Be, { value: l }, S.createElement($e, { value: q(o, { 0: M.Open, 1: M.Closed }) }, j({ ourProps: _, theirProps: d, slot: f, defaultTag: He, name: "Disclosure" })))));
|
73
73
|
}
|
74
|
-
let
|
75
|
-
function
|
76
|
-
let
|
74
|
+
let Ke = "button";
|
75
|
+
function Ue(e, t) {
|
76
|
+
let a = re(), { id: d = `headlessui-disclosure-button-${a}`, disabled: n = !1, autoFocus: p = !1, ...m } = e, [o, r] = Q("Disclosure.Button"), k = Me(), l = k === null ? !1 : k === o.panelId, I = oe(null), f = U(I, t, $((s) => {
|
77
|
+
if (!l) return r({ type: 4, element: s });
|
78
|
+
})), _ = ae();
|
77
79
|
le(() => {
|
78
|
-
if (!
|
79
|
-
|
80
|
+
if (!l) return r({ type: 2, buttonId: d }), () => {
|
81
|
+
r({ type: 2, buttonId: null });
|
80
82
|
};
|
81
|
-
}, [
|
82
|
-
let
|
83
|
-
var
|
84
|
-
if (
|
85
|
-
if (
|
86
|
-
switch (
|
87
|
-
case
|
88
|
-
case
|
89
|
-
|
83
|
+
}, [d, r, l]);
|
84
|
+
let c = $((s) => {
|
85
|
+
var T;
|
86
|
+
if (l) {
|
87
|
+
if (o.disclosureState === 1) return;
|
88
|
+
switch (s.key) {
|
89
|
+
case N.Space:
|
90
|
+
case N.Enter:
|
91
|
+
s.preventDefault(), s.stopPropagation(), r({ type: 0 }), (T = o.buttonElement) == null || T.focus();
|
90
92
|
break;
|
91
93
|
}
|
92
|
-
} else switch (
|
93
|
-
case
|
94
|
-
case
|
95
|
-
|
94
|
+
} else switch (s.key) {
|
95
|
+
case N.Space:
|
96
|
+
case N.Enter:
|
97
|
+
s.preventDefault(), s.stopPropagation(), r({ type: 0 });
|
96
98
|
break;
|
97
99
|
}
|
98
|
-
}),
|
99
|
-
switch (
|
100
|
-
case
|
101
|
-
|
100
|
+
}), E = $((s) => {
|
101
|
+
switch (s.key) {
|
102
|
+
case N.Space:
|
103
|
+
s.preventDefault();
|
102
104
|
break;
|
103
105
|
}
|
104
|
-
}),
|
105
|
-
var
|
106
|
-
Ne(
|
107
|
-
}), { isFocusVisible:
|
108
|
-
return
|
106
|
+
}), u = $((s) => {
|
107
|
+
var T;
|
108
|
+
Ne(s.currentTarget) || n || (l ? (r({ type: 0 }), (T = o.buttonElement) == null || T.focus()) : r({ type: 0 }));
|
109
|
+
}), { isFocusVisible: h, focusProps: y } = be({ autoFocus: p }), { isHovered: b, hoverProps: P } = ve({ isDisabled: n }), { pressed: C, pressProps: B } = ye({ disabled: n }), H = R(() => ({ open: o.disclosureState === 0, hover: b, active: C, disabled: n, focus: h, autofocus: p }), [o, b, C, h, n, p]), A = De(e, o.buttonElement), g = l ? ee({ ref: f, type: A, disabled: n || void 0, autoFocus: p, onKeyDown: c, onClick: u }, y, P, B) : ee({ ref: f, id: d, type: A, "aria-expanded": o.disclosureState === 0, "aria-controls": o.panelElement ? o.panelId : void 0, disabled: n || void 0, autoFocus: p, onKeyDown: c, onKeyUp: E, onClick: u }, y, P, B);
|
110
|
+
return j({ mergeRefs: _, ourProps: g, theirProps: m, slot: H, defaultTag: Ke, name: "Disclosure.Button" });
|
109
111
|
}
|
110
|
-
let qe = "div",
|
112
|
+
let qe = "div", je = Z.RenderStrategy | Z.Static;
|
111
113
|
function We(e, t) {
|
112
|
-
let
|
113
|
-
Ae(() =>
|
114
|
-
});
|
115
|
-
le(() => (
|
116
|
-
|
117
|
-
}), [
|
118
|
-
let
|
119
|
-
return S.createElement(we, null, S.createElement(
|
114
|
+
let a = re(), { id: d = `headlessui-disclosure-panel-${a}`, transition: n = !1, ...p } = e, [m, o] = Q("Disclosure.Panel"), { close: r } = ce("Disclosure.Panel"), k = ae(), [l, I] = se(null), f = U(t, $((y) => {
|
115
|
+
Ae(() => o({ type: 5, element: y }));
|
116
|
+
}), I);
|
117
|
+
le(() => (o({ type: 3, panelId: d }), () => {
|
118
|
+
o({ type: 3, panelId: null });
|
119
|
+
}), [d, o]);
|
120
|
+
let _ = Pe(), [c, E] = ge(n, l, _ !== null ? (_ & M.Open) === M.Open : m.disclosureState === 0), u = R(() => ({ open: m.disclosureState === 0, close: r }), [m.disclosureState, r]), h = { ref: f, id: d, ...Te(E) };
|
121
|
+
return S.createElement(we, null, S.createElement(z.Provider, { value: m.panelId }, j({ mergeRefs: k, ourProps: h, theirProps: p, slot: u, defaultTag: qe, features: je, visible: c, name: "Disclosure.Panel" })));
|
120
122
|
}
|
121
|
-
let
|
122
|
-
const ze = "_accordion_1k9to_2",
|
123
|
+
let Qe = K(Le), ie = K(Ue), ue = K(We), Ve = Object.assign(Qe, { Button: ie, Panel: ue });
|
124
|
+
const ze = "_accordion_1k9to_2", Xe = "_header_1k9to_13", Ge = "_disabled_1k9to_25", Je = "_title_1k9to_29", Ye = "_icon_1k9to_36", Ze = "_circle_1k9to_46", et = "_square_1k9to_53", tt = "_panel_1k9to_73", ot = "_open_1k9to_80", nt = "_m_1k9to_106", rt = "_s_1k9to_53", i = {
|
123
125
|
accordion: ze,
|
124
126
|
"is-link": "_is-link_1k9to_9",
|
125
|
-
header:
|
126
|
-
disabled:
|
127
|
+
header: Xe,
|
128
|
+
disabled: Ge,
|
127
129
|
title: Je,
|
128
130
|
"title-uppercase": "_title-uppercase_1k9to_32",
|
129
131
|
icon: Ye,
|
@@ -131,76 +133,76 @@ const ze = "_accordion_1k9to_2", Ge = "_header_1k9to_13", Xe = "_disabled_1k9to_
|
|
131
133
|
circle: Ze,
|
132
134
|
square: et,
|
133
135
|
panel: tt,
|
134
|
-
open:
|
136
|
+
open: ot,
|
135
137
|
"link-open": "_link-open_1k9to_102",
|
136
|
-
m:
|
138
|
+
m: nt,
|
137
139
|
s: rt,
|
138
140
|
"wrapper-button": "_wrapper-button_1k9to_134"
|
139
|
-
},
|
141
|
+
}, It = pe(
|
140
142
|
({
|
141
143
|
title: e,
|
142
144
|
disabled: t,
|
143
|
-
buttonType:
|
144
|
-
children:
|
145
|
-
size:
|
146
|
-
titleUppercase:
|
147
|
-
buttonStyle:
|
148
|
-
iconType:
|
149
|
-
classNameTitle:
|
150
|
-
classNameContent:
|
151
|
-
classNameAccordion:
|
152
|
-
classNameIconButton:
|
153
|
-
subtitleNode:
|
145
|
+
buttonType: a = w.BUTTON,
|
146
|
+
children: d,
|
147
|
+
size: n = O.M,
|
148
|
+
titleUppercase: p,
|
149
|
+
buttonStyle: m = fe.CIRCLE,
|
150
|
+
iconType: o = J.ARROW,
|
151
|
+
classNameTitle: r,
|
152
|
+
classNameContent: k,
|
153
|
+
classNameAccordion: l,
|
154
|
+
classNameIconButton: I,
|
155
|
+
subtitleNode: f,
|
154
156
|
onlyOpenSubtitleNode: _,
|
155
|
-
classNameSubtitleContainer:
|
156
|
-
},
|
157
|
-
const [
|
158
|
-
[
|
159
|
-
},
|
160
|
-
t ||
|
161
|
-
},
|
157
|
+
classNameSubtitleContainer: c
|
158
|
+
}, E) => {
|
159
|
+
const [u, h] = se(!1), y = _e(Ee.XS1), b = a === w.LINK, P = {
|
160
|
+
[i["is-link"]]: b
|
161
|
+
}, C = () => {
|
162
|
+
t || h((g) => !g);
|
163
|
+
}, B = n === O.S ? G.S : G.M, H = {
|
162
164
|
variant: "anchor",
|
163
|
-
size:
|
165
|
+
size: y ? "s" : "l",
|
164
166
|
rightIcon: {
|
165
|
-
iconName:
|
166
|
-
className:
|
167
|
-
[
|
167
|
+
iconName: B,
|
168
|
+
className: D({
|
169
|
+
[i["link-open"]]: u
|
168
170
|
})
|
169
171
|
}
|
170
|
-
},
|
171
|
-
const
|
172
|
-
switch (
|
173
|
-
case
|
172
|
+
}, A = (g) => {
|
173
|
+
const s = () => o === J.DROPDOWN ? n === O.S ? "DropdownArrowBottom16px" : "DropdownArrowDown24px" : n === O.S ? Y.S : Y.M;
|
174
|
+
switch (a) {
|
175
|
+
case w.LINK:
|
174
176
|
return e;
|
175
|
-
case
|
176
|
-
return /* @__PURE__ */
|
177
|
-
/* @__PURE__ */
|
177
|
+
case w.BUTTON:
|
178
|
+
return /* @__PURE__ */ x(X, { children: [
|
179
|
+
/* @__PURE__ */ v(
|
178
180
|
"span",
|
179
181
|
{
|
180
|
-
className:
|
181
|
-
|
182
|
-
|
183
|
-
|
182
|
+
className: D(
|
183
|
+
i.title,
|
184
|
+
r,
|
185
|
+
p && i["title-uppercase"]
|
184
186
|
),
|
185
187
|
children: e
|
186
188
|
}
|
187
189
|
),
|
188
|
-
/* @__PURE__ */
|
190
|
+
/* @__PURE__ */ v(
|
189
191
|
"div",
|
190
192
|
{
|
191
|
-
className:
|
192
|
-
|
193
|
-
|
194
|
-
t &&
|
195
|
-
|
196
|
-
|
193
|
+
className: D(
|
194
|
+
i["icon-container"],
|
195
|
+
g && i.open,
|
196
|
+
t && i.disabled,
|
197
|
+
i[m],
|
198
|
+
I
|
197
199
|
),
|
198
200
|
"data-testid": "accordion-icon-container",
|
199
|
-
children: /* @__PURE__ */
|
200
|
-
|
201
|
+
children: /* @__PURE__ */ v(
|
202
|
+
ke,
|
201
203
|
{
|
202
|
-
iconName:
|
203
|
-
className:
|
204
|
+
iconName: s(),
|
205
|
+
className: i.icon,
|
204
206
|
"data-testid": "accordion-icon"
|
205
207
|
}
|
206
208
|
)
|
@@ -211,53 +213,53 @@ const ze = "_accordion_1k9to_2", Ge = "_header_1k9to_13", Xe = "_disabled_1k9to_
|
|
211
213
|
return null;
|
212
214
|
}
|
213
215
|
};
|
214
|
-
return /* @__PURE__ */
|
215
|
-
/* @__PURE__ */
|
216
|
+
return /* @__PURE__ */ x(X, { children: [
|
217
|
+
/* @__PURE__ */ v(
|
216
218
|
"div",
|
217
219
|
{
|
218
|
-
className:
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
220
|
+
className: D(
|
221
|
+
i.accordion,
|
222
|
+
i[n],
|
223
|
+
P,
|
224
|
+
l
|
223
225
|
),
|
224
|
-
children: /* @__PURE__ */
|
225
|
-
/* @__PURE__ */
|
226
|
-
|
226
|
+
children: /* @__PURE__ */ x(Ve, { ref: E, children: [
|
227
|
+
/* @__PURE__ */ v(
|
228
|
+
ie,
|
227
229
|
{
|
228
230
|
disabled: t,
|
229
|
-
as:
|
230
|
-
onClick:
|
231
|
-
className:
|
232
|
-
[
|
233
|
-
[
|
231
|
+
as: b ? Se : w.BUTTON,
|
232
|
+
onClick: C,
|
233
|
+
className: D({
|
234
|
+
[i.header]: !b,
|
235
|
+
[i.disabled]: t
|
234
236
|
}),
|
235
|
-
...
|
236
|
-
children:
|
237
|
+
...b ? H : {},
|
238
|
+
children: A(u)
|
237
239
|
}
|
238
240
|
),
|
239
|
-
|
240
|
-
|
241
|
+
u && /* @__PURE__ */ v(
|
242
|
+
ue,
|
241
243
|
{
|
242
244
|
"data-testid": "accordion-panel",
|
243
|
-
className:
|
244
|
-
|
245
|
-
|
246
|
-
|
245
|
+
className: D(
|
246
|
+
i.panel,
|
247
|
+
k,
|
248
|
+
P
|
247
249
|
),
|
248
|
-
children: /* @__PURE__ */
|
250
|
+
children: /* @__PURE__ */ v(me, { size: n, children: d })
|
249
251
|
}
|
250
252
|
)
|
251
253
|
] })
|
252
254
|
}
|
253
255
|
),
|
254
|
-
(
|
255
|
-
|
256
|
-
|
256
|
+
(f || _) && /* @__PURE__ */ x("div", { className: c, children: [
|
257
|
+
f,
|
258
|
+
u && _
|
257
259
|
] })
|
258
260
|
] });
|
259
261
|
}
|
260
262
|
);
|
261
263
|
export {
|
262
|
-
|
264
|
+
It as Accordion
|
263
265
|
};
|
@@ -7,6 +7,10 @@ export type TProps = TCommonButtonProps & ComponentProps<'button'> & {
|
|
7
7
|
* Класс, применяемый к корневому элементу кнопки.
|
8
8
|
*/
|
9
9
|
className?: string;
|
10
|
+
/**
|
11
|
+
* Класс, применяемый к иконке.
|
12
|
+
*/
|
13
|
+
iconButtonClassName?: string;
|
10
14
|
/**
|
11
15
|
* Флаг, указывающий, отключена ли кнопка.
|
12
16
|
*/
|
@@ -41,6 +45,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
41
45
|
* Класс, применяемый к корневому элементу кнопки.
|
42
46
|
*/
|
43
47
|
className?: string;
|
48
|
+
/**
|
49
|
+
* Класс, применяемый к иконке.
|
50
|
+
*/
|
51
|
+
iconButtonClassName?: string;
|
44
52
|
/**
|
45
53
|
* Флаг, указывающий, отключена ли кнопка.
|
46
54
|
*/
|
@@ -71,6 +79,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
71
79
|
* Класс, применяемый к корневому элементу кнопки.
|
72
80
|
*/
|
73
81
|
className?: string;
|
82
|
+
/**
|
83
|
+
* Класс, применяемый к иконке.
|
84
|
+
*/
|
85
|
+
iconButtonClassName?: string;
|
74
86
|
/**
|
75
87
|
* Флаг, указывающий, отключена ли кнопка.
|
76
88
|
*/
|
@@ -101,6 +113,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
101
113
|
* Класс, применяемый к корневому элементу кнопки.
|
102
114
|
*/
|
103
115
|
className?: string;
|
116
|
+
/**
|
117
|
+
* Класс, применяемый к иконке.
|
118
|
+
*/
|
119
|
+
iconButtonClassName?: string;
|
104
120
|
/**
|
105
121
|
* Флаг, указывающий, отключена ли кнопка.
|
106
122
|
*/
|
@@ -131,6 +147,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
131
147
|
* Класс, применяемый к корневому элементу кнопки.
|
132
148
|
*/
|
133
149
|
className?: string;
|
150
|
+
/**
|
151
|
+
* Класс, применяемый к иконке.
|
152
|
+
*/
|
153
|
+
iconButtonClassName?: string;
|
134
154
|
/**
|
135
155
|
* Флаг, указывающий, отключена ли кнопка.
|
136
156
|
*/
|
@@ -161,6 +181,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
161
181
|
* Класс, применяемый к корневому элементу кнопки.
|
162
182
|
*/
|
163
183
|
className?: string;
|
184
|
+
/**
|
185
|
+
* Класс, применяемый к иконке.
|
186
|
+
*/
|
187
|
+
iconButtonClassName?: string;
|
164
188
|
/**
|
165
189
|
* Флаг, указывающий, отключена ли кнопка.
|
166
190
|
*/
|
@@ -191,6 +215,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
191
215
|
* Класс, применяемый к корневому элементу кнопки.
|
192
216
|
*/
|
193
217
|
className?: string;
|
218
|
+
/**
|
219
|
+
* Класс, применяемый к иконке.
|
220
|
+
*/
|
221
|
+
iconButtonClassName?: string;
|
194
222
|
/**
|
195
223
|
* Флаг, указывающий, отключена ли кнопка.
|
196
224
|
*/
|
@@ -221,6 +249,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
221
249
|
* Класс, применяемый к корневому элементу кнопки.
|
222
250
|
*/
|
223
251
|
className?: string;
|
252
|
+
/**
|
253
|
+
* Класс, применяемый к иконке.
|
254
|
+
*/
|
255
|
+
iconButtonClassName?: string;
|
224
256
|
/**
|
225
257
|
* Флаг, указывающий, отключена ли кнопка.
|
226
258
|
*/
|
@@ -251,6 +283,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
|
|
251
283
|
* Класс, применяемый к корневому элементу кнопки.
|
252
284
|
*/
|
253
285
|
className?: string;
|
286
|
+
/**
|
287
|
+
* Класс, применяемый к иконке.
|
288
|
+
*/
|
289
|
+
iconButtonClassName?: string;
|
254
290
|
/**
|
255
291
|
* Флаг, указывающий, отключена ли кнопка.
|
256
292
|
*/
|