mimir-ui-kit 1.35.3 → 1.36.0
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/Accordion.css +1 -1
- 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 +180 -174
- 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.js +1 -1
- package/dist/index.js +1 -1
- 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,204 +1,208 @@
|
|
1
|
-
import { jsxs as
|
1
|
+
import { jsxs as x, Fragment as X, jsx as v } from "react/jsx-runtime";
|
2
2
|
import { c as D } from "../../index-DIxK0V-G.js";
|
3
|
-
import
|
4
|
-
import { AccordionItem as
|
5
|
-
import { EAccordionButtonType as
|
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
6
|
import { useMediaQuery as _e } from "../../hooks/useMediaQuery/useMediaQuery.js";
|
7
|
-
import { EMediaQuery as
|
8
|
-
import { Icon as
|
7
|
+
import { EMediaQuery as Ee } from "../../hooks/useMediaQuery/constants.js";
|
8
|
+
import { Icon as ke } from "../../icons/Icon.js";
|
9
9
|
import { Link as Se } from "../AnchorLink/Link.js";
|
10
|
-
import { M as
|
11
|
-
import { w as
|
12
|
-
import {
|
13
|
-
import { c as $e, i as
|
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
|
17
|
+
function Be({ value: e, children: t }) {
|
18
|
+
return S.createElement(Ce.Provider, { value: e }, t);
|
19
19
|
}
|
20
20
|
var te;
|
21
|
-
let Ae = (te =
|
21
|
+
let Ae = (te = S.startTransition) != null ? te : function(e) {
|
22
22
|
e();
|
23
23
|
};
|
24
|
-
var
|
25
|
-
let
|
26
|
-
return e.
|
27
|
-
},
|
28
|
-
return e.
|
29
|
-
},
|
30
|
-
return e.
|
31
|
-
},
|
32
|
-
return e.
|
33
|
-
} },
|
34
|
-
|
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) {
|
26
|
+
return e.buttonId === t.buttonId ? e : { ...e, buttonId: t.buttonId };
|
27
|
+
}, 3(e, t) {
|
28
|
+
return e.panelId === t.panelId ? e : { ...e, panelId: t.panelId };
|
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
|
37
|
-
if (
|
38
|
-
let
|
39
|
-
throw Error.captureStackTrace && Error.captureStackTrace(
|
36
|
+
let t = L(W);
|
37
|
+
if (t === null) {
|
38
|
+
let a = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
|
39
|
+
throw Error.captureStackTrace && Error.captureStackTrace(a, Q), a;
|
40
40
|
}
|
41
|
-
return
|
41
|
+
return t;
|
42
42
|
}
|
43
|
-
let
|
44
|
-
|
45
|
-
function
|
46
|
-
let
|
47
|
-
if (
|
48
|
-
let
|
49
|
-
throw Error.captureStackTrace && Error.captureStackTrace(
|
43
|
+
let V = F(null);
|
44
|
+
V.displayName = "DisclosureAPIContext";
|
45
|
+
function ce(e) {
|
46
|
+
let t = L(V);
|
47
|
+
if (t === null) {
|
48
|
+
let a = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
|
49
|
+
throw Error.captureStackTrace && Error.captureStackTrace(a, ce), a;
|
50
50
|
}
|
51
|
-
return
|
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 ===
|
66
|
-
|
67
|
-
let
|
68
|
-
if (!
|
69
|
-
let
|
70
|
-
|
71
|
-
}), I =
|
72
|
-
return
|
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
|
+
k({ type: 1 });
|
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",
|
111
|
-
function We(e,
|
112
|
-
let
|
113
|
-
Ae(() =>
|
114
|
-
});
|
115
|
-
le(() => (
|
116
|
-
|
117
|
-
}), [
|
118
|
-
let _ =
|
119
|
-
return
|
112
|
+
let qe = "div", je = Z.RenderStrategy | Z.Static;
|
113
|
+
function We(e, t) {
|
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 = "
|
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
|
-
"is-link": "_is-
|
125
|
-
header:
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
126
|
+
"is-link": "_is-link_1k9to_9",
|
127
|
+
header: Xe,
|
128
|
+
disabled: Ge,
|
129
|
+
title: Je,
|
130
|
+
"title-uppercase": "_title-uppercase_1k9to_32",
|
131
|
+
icon: Ye,
|
132
|
+
"icon-container": "_icon-container_1k9to_39",
|
133
|
+
circle: Ze,
|
134
|
+
square: et,
|
135
|
+
panel: tt,
|
136
|
+
open: ot,
|
137
|
+
"link-open": "_link-open_1k9to_102",
|
138
|
+
m: nt,
|
139
|
+
s: rt,
|
140
|
+
"wrapper-button": "_wrapper-button_1k9to_134"
|
141
|
+
}, It = pe(
|
139
142
|
({
|
140
143
|
title: e,
|
141
|
-
disabled:
|
142
|
-
buttonType:
|
143
|
-
children:
|
144
|
-
size:
|
145
|
-
titleUppercase:
|
146
|
-
buttonStyle:
|
147
|
-
iconType:
|
148
|
-
classNameTitle:
|
149
|
-
classNameContent:
|
150
|
-
classNameAccordion:
|
151
|
-
classNameIconButton:
|
152
|
-
subtitleNode:
|
153
|
-
onlyOpenSubtitleNode:
|
154
|
-
classNameSubtitleContainer:
|
155
|
-
},
|
156
|
-
const [
|
157
|
-
[
|
158
|
-
},
|
159
|
-
|
160
|
-
},
|
144
|
+
disabled: t,
|
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,
|
156
|
+
onlyOpenSubtitleNode: _,
|
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 = {
|
161
164
|
variant: "anchor",
|
162
165
|
size: y ? "s" : "l",
|
163
166
|
rightIcon: {
|
164
|
-
iconName:
|
167
|
+
iconName: B,
|
165
168
|
className: D({
|
166
|
-
[
|
169
|
+
[i["link-open"]]: u
|
167
170
|
})
|
168
171
|
}
|
169
|
-
},
|
170
|
-
const
|
171
|
-
switch (
|
172
|
-
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:
|
173
176
|
return e;
|
174
|
-
case
|
175
|
-
return /* @__PURE__ */
|
176
|
-
/* @__PURE__ */
|
177
|
+
case w.BUTTON:
|
178
|
+
return /* @__PURE__ */ x(X, { children: [
|
179
|
+
/* @__PURE__ */ v(
|
177
180
|
"span",
|
178
181
|
{
|
179
182
|
className: D(
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
+
i.title,
|
184
|
+
r,
|
185
|
+
p && i["title-uppercase"]
|
183
186
|
),
|
184
187
|
children: e
|
185
188
|
}
|
186
189
|
),
|
187
|
-
/* @__PURE__ */
|
190
|
+
/* @__PURE__ */ v(
|
188
191
|
"div",
|
189
192
|
{
|
190
193
|
className: D(
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
194
|
+
i["icon-container"],
|
195
|
+
g && i.open,
|
196
|
+
t && i.disabled,
|
197
|
+
i[m],
|
198
|
+
I
|
195
199
|
),
|
196
200
|
"data-testid": "accordion-icon-container",
|
197
|
-
children: /* @__PURE__ */
|
198
|
-
|
201
|
+
children: /* @__PURE__ */ v(
|
202
|
+
ke,
|
199
203
|
{
|
200
|
-
iconName:
|
201
|
-
className:
|
204
|
+
iconName: s(),
|
205
|
+
className: i.icon,
|
202
206
|
"data-testid": "accordion-icon"
|
203
207
|
}
|
204
208
|
)
|
@@ -209,51 +213,53 @@ const ze = "_accordion_1p5o7_2", Ge = "_header_1p5o7_13", Xe = "_title_1p5o7_26"
|
|
209
213
|
return null;
|
210
214
|
}
|
211
215
|
};
|
212
|
-
return /* @__PURE__ */
|
213
|
-
/* @__PURE__ */
|
216
|
+
return /* @__PURE__ */ x(X, { children: [
|
217
|
+
/* @__PURE__ */ v(
|
214
218
|
"div",
|
215
219
|
{
|
216
220
|
className: D(
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
+
i.accordion,
|
222
|
+
i[n],
|
223
|
+
P,
|
224
|
+
l
|
221
225
|
),
|
222
|
-
children: /* @__PURE__ */
|
223
|
-
/* @__PURE__ */
|
224
|
-
|
226
|
+
children: /* @__PURE__ */ x(Ve, { ref: E, children: [
|
227
|
+
/* @__PURE__ */ v(
|
228
|
+
ie,
|
225
229
|
{
|
226
|
-
|
227
|
-
|
230
|
+
disabled: t,
|
231
|
+
as: b ? Se : w.BUTTON,
|
232
|
+
onClick: C,
|
228
233
|
className: D({
|
229
|
-
[
|
234
|
+
[i.header]: !b,
|
235
|
+
[i.disabled]: t
|
230
236
|
}),
|
231
|
-
...
|
232
|
-
children:
|
237
|
+
...b ? H : {},
|
238
|
+
children: A(u)
|
233
239
|
}
|
234
240
|
),
|
235
|
-
|
236
|
-
|
241
|
+
u && /* @__PURE__ */ v(
|
242
|
+
ue,
|
237
243
|
{
|
238
244
|
"data-testid": "accordion-panel",
|
239
245
|
className: D(
|
240
|
-
|
241
|
-
|
242
|
-
|
246
|
+
i.panel,
|
247
|
+
k,
|
248
|
+
P
|
243
249
|
),
|
244
|
-
children: /* @__PURE__ */
|
250
|
+
children: /* @__PURE__ */ v(me, { size: n, children: d })
|
245
251
|
}
|
246
252
|
)
|
247
253
|
] })
|
248
254
|
}
|
249
255
|
),
|
250
|
-
(
|
251
|
-
|
252
|
-
|
256
|
+
(f || _) && /* @__PURE__ */ x("div", { className: c, children: [
|
257
|
+
f,
|
258
|
+
u && _
|
253
259
|
] })
|
254
260
|
] });
|
255
261
|
}
|
256
262
|
);
|
257
263
|
export {
|
258
|
-
|
264
|
+
It as Accordion
|
259
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
|
*/
|