mimir-ui-kit 1.37.3 → 1.37.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/dist/assets/styles.css +1 -1
  2. package/dist/{combobox-BpYucpxz.js → combobox-CDU06zJj.js} +1080 -1121
  3. package/dist/components/Accordion/Accordion.d.ts +10 -3
  4. package/dist/components/Accordion/Accordion.js +144 -139
  5. package/dist/components/CheckboxMimir/CheckboxMimir.js +4 -4
  6. package/dist/components/DatePicker/DatePicker.d.ts +4 -4
  7. package/dist/components/DatePicker/DatePicker.js +102 -99
  8. package/dist/components/DatePicker/DatePickerModal.js +1 -1
  9. package/dist/components/DatePicker/MonthPickerModal.js +1 -1
  10. package/dist/components/DatePicker/YearPickerModal.js +1 -1
  11. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +22 -22
  12. package/dist/components/RadioGroup/RadioGroup.js +3 -3
  13. package/dist/components/SelectSearch/SelectSearch.js +24 -24
  14. package/dist/components/Switcher/Switcher.js +4 -4
  15. package/dist/components/TabTrail/TabTrail.js +4 -4
  16. package/dist/{field-C1kt7aNM.js → field-FJ34aSs4.js} +2 -2
  17. package/dist/{focus-management-DOYCPyGg.js → focus-management-XwV-9qkO.js} +1 -1
  18. package/dist/{hidden-PvGXrYUY.js → hidden-DbgtYPOH.js} +1 -1
  19. package/dist/{keyboard-mgWkd2Vh.js → keyboard-B0lm_zyn.js} +111 -114
  20. package/dist/{label-D4GFpe5F.js → label-y3ANLTNC.js} +2 -2
  21. package/dist/open-closed-CdldUPoq.js +86 -0
  22. package/dist/styles.module-CPvzaOtD.js +27 -0
  23. package/dist/{use-active-press-CqLGIFz7.js → use-active-press-86hajhdd.js} +1 -1
  24. package/package.json +1 -1
  25. package/dist/open-closed-D2VjDhAN.js +0 -86
  26. package/dist/styles.module-B3xL6-zc.js +0 -25
@@ -1,86 +0,0 @@
1
- import y, { useState as F, useCallback as p, useRef as g, createContext as A, useContext as x } from "react";
2
- import { p as O, n as j, d as C } from "./keyboard-mgWkd2Vh.js";
3
- function k(e = 0) {
4
- let [t, n] = F(e), r = p((o) => n(o), [t]), s = p((o) => n((u) => u | o), [t]), l = p((o) => (t & o) === o, [t]), a = p((o) => n((u) => u & ~o), [n]), i = p((o) => n((u) => u ^ o), [n]);
5
- return { flags: t, setFlag: r, addFlag: s, hasFlag: l, removeFlag: a, toggleFlag: i };
6
- }
7
- var v, h;
8
- typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((v = process == null ? void 0 : process.env) == null ? void 0 : v.NODE_ENV) === "test" && typeof ((h = Element == null ? void 0 : Element.prototype) == null ? void 0 : h.getAnimations) > "u" && (Element.prototype.getAnimations = function() {
9
- return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
10
- `)), [];
11
- });
12
- var N = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(N || {});
13
- function T(e) {
14
- let t = {};
15
- for (let n in e) e[n] === !0 && (t[`data-${n}`] = "");
16
- return t;
17
- }
18
- function _(e, t, n, r) {
19
- let [s, l] = F(n), { hasFlag: a, addFlag: i, removeFlag: o } = k(e && s ? 3 : 0), u = g(!1), d = g(!1), E = O();
20
- return j(() => {
21
- var f;
22
- if (e) {
23
- if (n && l(!0), !t) {
24
- n && i(3);
25
- return;
26
- }
27
- return (f = void 0) == null || f.call(r, n), $(t, { inFlight: u, prepare() {
28
- d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (i(3), o(4)) : (i(4), o(2)));
29
- }, run() {
30
- d.current ? n ? (o(3), i(4)) : (o(4), i(3)) : n ? o(1) : i(1);
31
- }, done() {
32
- var m;
33
- d.current && typeof t.getAnimations == "function" && t.getAnimations().length > 0 || (u.current = !1, o(7), n || l(!1), (m = void 0) == null || m.call(r, n));
34
- } });
35
- }
36
- }, [e, n, t, E]), e ? [s, { closed: a(1), enter: a(2), leave: a(4), transition: a(2) || a(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
37
- }
38
- function $(e, { prepare: t, run: n, done: r, inFlight: s }) {
39
- let l = C();
40
- return S(e, { prepare: t, inFlight: s }), l.nextFrame(() => {
41
- n(), l.requestAnimationFrame(() => {
42
- l.add(P(e, r));
43
- });
44
- }), l.dispose;
45
- }
46
- function P(e, t) {
47
- var n, r;
48
- let s = C();
49
- if (!e) return s.dispose;
50
- let l = !1;
51
- s.add(() => {
52
- l = !0;
53
- });
54
- let a = (r = (n = e.getAnimations) == null ? void 0 : n.call(e).filter((i) => i instanceof CSSTransition)) != null ? r : [];
55
- return a.length === 0 ? (t(), s.dispose) : (Promise.allSettled(a.map((i) => i.finished)).then(() => {
56
- l || t();
57
- }), s.dispose);
58
- }
59
- function S(e, { inFlight: t, prepare: n }) {
60
- if (t != null && t.current) {
61
- n();
62
- return;
63
- }
64
- let r = e.style.transition;
65
- e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
66
- }
67
- let c = A(null);
68
- c.displayName = "OpenClosedContext";
69
- var b = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(b || {});
70
- function w() {
71
- return x(c);
72
- }
73
- function H({ value: e, children: t }) {
74
- return y.createElement(c.Provider, { value: e }, t);
75
- }
76
- function q({ children: e }) {
77
- return y.createElement(c.Provider, { value: null }, e);
78
- }
79
- export {
80
- T as R,
81
- H as c,
82
- b as i,
83
- q as s,
84
- w as u,
85
- _ as x
86
- };
@@ -1,25 +0,0 @@
1
- import './assets/styles.css';const _ = "_input_hmkm7_2", t = "_inputBorderControl_hmkm7_14", n = "_editable_hmkm7_27", m = "_wrapper_hmkm7_50", r = "_active_hmkm7_56", o = "_button_hmkm7_44", e = "_h_hmkm7_100", c = "_b_hmkm7_44", p = "_d_hmkm7_10", a = "_m_hmkm7_122", h = "_a_hmkm7_56", k = "_prev_hmkm7_124", i = "_orange_hmkm7_138", s = "_current_hmkm7_155", u = "_monthGrid_hmkm7_160", d = {
2
- input: _,
3
- "input-wrapper": "_input-wrapper_hmkm7_6",
4
- "date-wrapper": "_date-wrapper_hmkm7_10",
5
- inputBorderControl: t,
6
- editable: n,
7
- "button-wrapper": "_button-wrapper_hmkm7_44",
8
- wrapper: m,
9
- active: r,
10
- button: o,
11
- "calendar-block": "_calendar-block_hmkm7_78",
12
- h: e,
13
- b: c,
14
- d: p,
15
- m: a,
16
- a: h,
17
- prev: k,
18
- orange: i,
19
- current: s,
20
- monthGrid: u,
21
- "icon-button": "_icon-button_hmkm7_165"
22
- };
23
- export {
24
- d as c
25
- };