mimir-ui-kit 1.37.3 → 1.37.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/styles.css +1 -1
- package/dist/{combobox-BpYucpxz.js → combobox-CDU06zJj.js} +1080 -1121
- package/dist/components/Accordion/Accordion.js +15 -15
- package/dist/components/CheckboxMimir/CheckboxMimir.js +4 -4
- package/dist/components/DatePicker/DatePicker.d.ts +4 -4
- package/dist/components/DatePicker/DatePicker.js +102 -99
- package/dist/components/DatePicker/DatePickerModal.js +1 -1
- package/dist/components/DatePicker/MonthPickerModal.js +1 -1
- package/dist/components/DatePicker/YearPickerModal.js +1 -1
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +22 -22
- package/dist/components/RadioGroup/RadioGroup.js +3 -3
- package/dist/components/SelectSearch/SelectSearch.js +24 -24
- 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/{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/styles.module-CPvzaOtD.js +27 -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
- package/dist/styles.module-B3xL6-zc.js +0 -25
@@ -1,13 +1,13 @@
|
|
1
1
|
import { jsx as s, jsxs as _, Fragment as z } from "react/jsx-runtime";
|
2
2
|
import { c as i } from "../../index-DIxK0V-G.js";
|
3
|
-
import { forwardRef as K, useState as D, useMemo as U, useCallback as
|
3
|
+
import { forwardRef as K, useState as D, useMemo as U, useCallback as W, useEffect as R } from "react";
|
4
4
|
import { ESelectSearchSize as v } from "./constants.js";
|
5
|
-
import { mapSizeToInputSize as
|
6
|
-
import { Icon as
|
7
|
-
import { Button as
|
8
|
-
import { I as
|
9
|
-
import { EInputVariant as
|
10
|
-
import { H as X, U as
|
5
|
+
import { mapSizeToInputSize as q, getDropdownArrowIcon as $ } from "./utils.js";
|
6
|
+
import { Icon as A } from "../../icons/Icon.js";
|
7
|
+
import { Button as J } from "../Button/Button.js";
|
8
|
+
import { I as O } from "../../Input-BYrIS5GU.js";
|
9
|
+
import { EInputVariant as Q } from "../Input/constants.js";
|
10
|
+
import { H as X, U as B, G as M, K as Y, W as Z } from "../../combobox-CDU06zJj.js";
|
11
11
|
import '../../assets/SelectSearch.css';const ee = "_disabled_rphak_5", te = "_container_rphak_9", oe = "_full_rphak_22", ae = "_button_rphak_34", ne = "_options_rphak_48", se = "_top_rphak_59", re = "_bottom_rphak_64", ie = "_m_rphak_91", le = "_l_rphak_106", ce = "_option_rphak_48", pe = "_clear_rphak_160", e = {
|
12
12
|
"select-search": "_select-search_rphak_2",
|
13
13
|
disabled: ee,
|
@@ -34,7 +34,7 @@ import '../../assets/SelectSearch.css';const ee = "_disabled_rphak_5", te = "_co
|
|
34
34
|
clear: pe,
|
35
35
|
"icon-button": "_icon-button_rphak_169"
|
36
36
|
}, ge = K(
|
37
|
-
(
|
37
|
+
(j, E) => {
|
38
38
|
const {
|
39
39
|
placeholder: g,
|
40
40
|
size: r = v.L,
|
@@ -47,18 +47,18 @@ import '../../assets/SelectSearch.css';const ee = "_disabled_rphak_5", te = "_co
|
|
47
47
|
displayValue: G = "name",
|
48
48
|
filterOnSearch: w = !0,
|
49
49
|
onSearch: m,
|
50
|
-
variant: C =
|
50
|
+
variant: C = Q.DefaultGray,
|
51
51
|
menuPlacement: b = "bottom",
|
52
52
|
disabled: l = !1,
|
53
53
|
searchProps: I,
|
54
54
|
withClearButton: f = !1,
|
55
55
|
disableInput: c = !1,
|
56
56
|
autocomplete: S = "on"
|
57
|
-
} =
|
57
|
+
} = j, k = String((a == null ? void 0 : a[G]) || ""), [p, u] = D(k), [N, h] = D(a), y = U(() => !w || a && (a.id || a.name) ? d : p.trim().toLowerCase() ? d.filter(
|
58
58
|
(o) => o.name.toLowerCase().includes(p.toLowerCase())
|
59
59
|
) : d, [p, d, a, w]), P = (o) => {
|
60
60
|
o ? (u(o.name), h(o), n == null || n(o)) : (u(""), h(null), n == null || n({ id: "", name: "" }));
|
61
|
-
}, x =
|
61
|
+
}, x = W(
|
62
62
|
(o) => {
|
63
63
|
if (c) return;
|
64
64
|
const t = o.target.value;
|
@@ -68,7 +68,7 @@ import '../../assets/SelectSearch.css';const ee = "_disabled_rphak_5", te = "_co
|
|
68
68
|
), T = () => {
|
69
69
|
u(""), h(null), n == null || n({ id: "", name: "" });
|
70
70
|
};
|
71
|
-
return
|
71
|
+
return R(() => {
|
72
72
|
const o = !a || typeof a == "object" && !Object.keys(a).length;
|
73
73
|
u(o ? "" : k), h(o ? null : a);
|
74
74
|
}, [a, k]), /* @__PURE__ */ s(
|
@@ -93,12 +93,12 @@ import '../../assets/SelectSearch.css';const ee = "_disabled_rphak_5", te = "_co
|
|
93
93
|
}),
|
94
94
|
children: [
|
95
95
|
c && /* @__PURE__ */ _("div", { style: { position: "relative", width: "100%" }, children: [
|
96
|
-
/* @__PURE__ */ s(
|
97
|
-
|
96
|
+
/* @__PURE__ */ s(B, { disabled: l, style: { width: "100%" }, children: /* @__PURE__ */ s(
|
97
|
+
M,
|
98
98
|
{
|
99
|
-
as:
|
99
|
+
as: O,
|
100
100
|
label: g,
|
101
|
-
size:
|
101
|
+
size: q(r),
|
102
102
|
className: i(e["select-input"], {
|
103
103
|
[e["select-input-disabled"]]: c && f
|
104
104
|
}),
|
@@ -114,14 +114,14 @@ import '../../assets/SelectSearch.css';const ee = "_disabled_rphak_5", te = "_co
|
|
114
114
|
},
|
115
115
|
rightAddon: {
|
116
116
|
addonType: "icon",
|
117
|
-
addonContent:
|
117
|
+
addonContent: $(o, r)
|
118
118
|
},
|
119
119
|
autocomplete: S,
|
120
120
|
...I
|
121
121
|
}
|
122
122
|
) }),
|
123
123
|
f && p && /* @__PURE__ */ s(
|
124
|
-
|
124
|
+
J,
|
125
125
|
{
|
126
126
|
tabIndex: -1,
|
127
127
|
className: i(e.clear, {
|
@@ -142,11 +142,11 @@ import '../../assets/SelectSearch.css';const ee = "_disabled_rphak_5", te = "_co
|
|
142
142
|
)
|
143
143
|
] }),
|
144
144
|
!c && /* @__PURE__ */ s(
|
145
|
-
|
145
|
+
M,
|
146
146
|
{
|
147
|
-
as:
|
147
|
+
as: O,
|
148
148
|
label: g,
|
149
|
-
size:
|
149
|
+
size: q(r),
|
150
150
|
className: e["select-input"],
|
151
151
|
onChange: x,
|
152
152
|
value: p,
|
@@ -159,14 +159,14 @@ import '../../assets/SelectSearch.css';const ee = "_disabled_rphak_5", te = "_co
|
|
159
159
|
rightAddon: {
|
160
160
|
addonType: "react-node",
|
161
161
|
addonContent: V && /* @__PURE__ */ s(
|
162
|
-
|
162
|
+
B,
|
163
163
|
{
|
164
164
|
className: i(e.button, {
|
165
165
|
[e.disabled]: l
|
166
166
|
}),
|
167
167
|
disabled: l,
|
168
168
|
children: /* @__PURE__ */ s(
|
169
|
-
|
169
|
+
A,
|
170
170
|
{
|
171
171
|
iconName: r == v.M ? "DropdownArrowBottom16px" : "DropdownArrowDown24px",
|
172
172
|
className: i(e["selector-icon"], {
|
@@ -215,7 +215,7 @@ import '../../assets/SelectSearch.css';const ee = "_disabled_rphak_5", te = "_co
|
|
215
215
|
t.bottom && /* @__PURE__ */ s("div", { children: t.bottom })
|
216
216
|
] }),
|
217
217
|
N && N.id === t.id && /* @__PURE__ */ s(
|
218
|
-
|
218
|
+
A,
|
219
219
|
{
|
220
220
|
iconName: r === v.M ? "Done16px" : "Done24px",
|
221
221
|
className: e["selected-icon"]
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsxs as L, jsx as N } from "react/jsx-runtime";
|
2
|
-
import { H as te } from "../../field-
|
3
|
-
import { K as I, w as re, z as se, U as ae, u as ce, a as le, b as oe, T as ie, I as ne, G as ue, j as he, p as me } from "../../label-
|
4
|
-
import { W as de, H as j, y as pe, p as fe, o as $, $ as be, b as we, D as _e, c as H } from "../../keyboard-
|
2
|
+
import { H as te } from "../../field-FJ34aSs4.js";
|
3
|
+
import { K as I, w as re, z as se, U as ae, u as ce, a as le, b as oe, T as ie, I as ne, G as ue, j as he, p as me } from "../../label-y3ANLTNC.js";
|
4
|
+
import { W as de, H as j, y as pe, p as fe, o as $, $ as be, b as we, D as _e, c as H } from "../../keyboard-B0lm_zyn.js";
|
5
5
|
import u, { createContext as $e, useState as x, useMemo as G, useId as ge, useContext as ve, useRef as ke, useCallback as xe, Fragment as ye, forwardRef as Pe } from "react";
|
6
|
-
import { w as Ce } from "../../use-active-press-
|
6
|
+
import { w as Ce } from "../../use-active-press-86hajhdd.js";
|
7
7
|
import { e as De } from "../../use-resolve-button-type-DhFdPxnv.js";
|
8
8
|
import { r as Fe } from "../../bugs-diTMAGNw.js";
|
9
9
|
import { c as g } from "../../index-DIxK0V-G.js";
|
@@ -5,11 +5,11 @@ import N, { useRef as U, useState as Q, createContext as oe, useReducer as ke, u
|
|
5
5
|
import { ETabTrailSize as Ae } from "./constants.js";
|
6
6
|
import { TabButtons as Se } from "./TabButtons/TabButtons.js";
|
7
7
|
import { NotificationBadge as Fe } from "../NotificationBadge/NotificationBadge.js";
|
8
|
-
import { n as W, M as se, W as q, s as H, y as z, o as E, H as V, $ as ce, b as De, D as de, a as B, u as Ne, c as h, t as Re } from "../../keyboard-
|
9
|
-
import { w as Me } from "../../use-active-press-
|
8
|
+
import { n as W, M as se, W as q, s as H, y as z, o as E, H as V, $ as ce, b as De, D as de, a as B, u as Ne, c as h, t as Re } from "../../keyboard-B0lm_zyn.js";
|
9
|
+
import { w as Me } from "../../use-active-press-86hajhdd.js";
|
10
10
|
import { e as Ce } from "../../use-resolve-button-type-DhFdPxnv.js";
|
11
|
-
import { T as pe, s as Le } from "../../hidden-
|
12
|
-
import { _ as G, T as J, P as D, F as T } from "../../focus-management-
|
11
|
+
import { T as pe, s as Le } from "../../hidden-DbgtYPOH.js";
|
12
|
+
import { _ as G, T as J, P as D, F as T } from "../../focus-management-XwV-9qkO.js";
|
13
13
|
import '../../assets/TabTrail.css';function Oe() {
|
14
14
|
let e = U(!1);
|
15
15
|
return W(() => (e.current = !0, () => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import l, { useId as u, useMemo as f } from "react";
|
2
|
-
import { z as p, U as h, a as v, l as E, f as b, W as $ } from "./label-
|
3
|
-
import { W as H, H as W } from "./keyboard-
|
2
|
+
import { z as p, U as h, a as v, l as E, f as b, W as $ } from "./label-y3ANLTNC.js";
|
3
|
+
import { W as H, H as W } from "./keyboard-B0lm_zyn.js";
|
4
4
|
let P = "div";
|
5
5
|
function _(a, i) {
|
6
6
|
let d = `headlessui-control-${u()}`, [o, n] = p(), [m, s] = h(), c = v(), { disabled: e = c || !1, ...t } = a, r = f(() => ({ disabled: e }), [e]);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { u as N, a as v } from "./keyboard-
|
1
|
+
import { u as N, a as v } from "./keyboard-B0lm_zyn.js";
|
2
2
|
let m = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), F = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
3
3
|
var h = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(h || {}), x = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(x || {}), A = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(A || {});
|
4
4
|
function y(e = document.body) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { W as t, H as a } from "./keyboard-
|
1
|
+
import { W as t, H as a } from "./keyboard-B0lm_zyn.js";
|
2
2
|
let l = "span";
|
3
3
|
var p = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(p || {});
|
4
4
|
function s(e, n) {
|