mimir-ui-kit 1.38.1 → 1.38.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/dist/assets/SelectSearch.css +1 -1
  2. package/dist/{combobox-CVtJDVoZ.js → combobox-DgSZTriw.js} +254 -251
  3. package/dist/components/Accordion/Accordion.js +3 -3
  4. package/dist/components/CheckboxMimir/CheckboxMimir.js +4 -4
  5. package/dist/components/DatePicker/hooks.js +12 -12
  6. package/dist/components/Dropdown/Dropdown.js +32 -32
  7. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +18 -18
  8. package/dist/components/RadioGroup/RadioGroup.js +3 -3
  9. package/dist/components/SelectSearch/SelectSearch.js +116 -116
  10. package/dist/components/Switcher/Switcher.js +4 -4
  11. package/dist/components/TabTrail/TabTrail.js +4 -4
  12. package/dist/components/UniversalUploader/UniversalUploader.js +56 -50
  13. package/dist/components/Uploader/Uploader.d.ts +12 -0
  14. package/dist/components/Uploader/Uploader.js +64 -59
  15. package/dist/components/UploaderFiles/UploaderFiles.d.ts +12 -0
  16. package/dist/components/UploaderFiles/UploaderFiles.js +45 -39
  17. package/dist/components/UploaderPhotos/UploaderPhotos.d.ts +12 -0
  18. package/dist/components/UploaderPhotos/UploaderPhotos.js +40 -34
  19. package/dist/{field-FJ34aSs4.js → field-C1kt7aNM.js} +2 -2
  20. package/dist/{focus-management-DE4t_lW3.js → focus-management-BtPpk3D1.js} +1 -1
  21. package/dist/{hidden-DbgtYPOH.js → hidden-PvGXrYUY.js} +1 -1
  22. package/dist/{keyboard-B0lm_zyn.js → keyboard-mgWkd2Vh.js} +114 -111
  23. package/dist/{label-y3ANLTNC.js → label-D4GFpe5F.js} +2 -2
  24. package/dist/open-closed-D2VjDhAN.js +86 -0
  25. package/dist/portal-DPqg52FR.js +1946 -0
  26. package/dist/{use-active-press-86hajhdd.js → use-active-press-CqLGIFz7.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/open-closed-CdldUPoq.js +0 -86
  29. package/dist/portal-WDFNoIMz.js +0 -1908
@@ -1,5 +1,5 @@
1
1
  import { useRef as f, useState as a } from "react";
2
- import { p as g, o as c, u as m } from "./keyboard-B0lm_zyn.js";
2
+ import { p as g, o as c, u as m } from "./keyboard-mgWkd2Vh.js";
3
3
  function h(t) {
4
4
  let e = t.width / 2, r = t.height / 2;
5
5
  return { top: t.clientY - r, right: t.clientX + e, bottom: t.clientY + r, left: t.clientX - e };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.38.1",
4
+ "version": "1.38.3",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -1,86 +0,0 @@
1
- import h, { useState as F, useCallback as c, useRef as m, createContext as A, useContext as E } from "react";
2
- import { p as x, n as O, d as y } from "./keyboard-B0lm_zyn.js";
3
- function k(e = 0) {
4
- let [t, n] = F(e), l = c((o) => n(o), [t]), s = c((o) => n((u) => u | o), [t]), r = c((o) => (t & o) === o, [t]), a = c((o) => n((u) => u & ~o), [n]), i = c((o) => n((u) => u ^ o), [n]);
5
- return { flags: t, setFlag: l, addFlag: s, hasFlag: r, removeFlag: a, toggleFlag: i };
6
- }
7
- var v;
8
- typeof process < "u" && typeof globalThis < "u" && ((v = process == null ? void 0 : process.env) == null ? void 0 : v.NODE_ENV) === "test" && typeof Element.prototype.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 L(e) {
14
- let t = {};
15
- for (let n in e) e[n] === !0 && (t[`data-${n}`] = "");
16
- return t;
17
- }
18
- function R(e, t, n, l) {
19
- let [s, r] = F(n), { hasFlag: a, addFlag: i, removeFlag: o } = k(e && s ? 3 : 0), u = m(!1), d = m(!1), C = x();
20
- return O(() => {
21
- var f;
22
- if (e) {
23
- if (n && r(!0), !t) {
24
- n && i(3);
25
- return;
26
- }
27
- return (f = void 0) == null || f.call(l, 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 g;
33
- d.current && typeof t.getAnimations == "function" && t.getAnimations().length > 0 || (u.current = !1, o(7), n || r(!1), (g = void 0) == null || g.call(l, n));
34
- } });
35
- }
36
- }, [e, n, t, C]), 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: l, inFlight: s }) {
39
- let r = y();
40
- return P(e, { prepare: t, inFlight: s }), r.nextFrame(() => {
41
- n(), r.requestAnimationFrame(() => {
42
- r.add(j(e, l));
43
- });
44
- }), r.dispose;
45
- }
46
- function j(e, t) {
47
- var n, l;
48
- let s = y();
49
- if (!e) return s.dispose;
50
- let r = !1;
51
- s.add(() => {
52
- r = !0;
53
- });
54
- let a = (l = (n = e.getAnimations) == null ? void 0 : n.call(e).filter((i) => i instanceof CSSTransition)) != null ? l : [];
55
- return a.length === 0 ? (t(), s.dispose) : (Promise.allSettled(a.map((i) => i.finished)).then(() => {
56
- r || t();
57
- }), s.dispose);
58
- }
59
- function P(e, { inFlight: t, prepare: n }) {
60
- if (t != null && t.current) {
61
- n();
62
- return;
63
- }
64
- let l = e.style.transition;
65
- e.style.transition = "none", n(), e.offsetHeight, e.style.transition = l;
66
- }
67
- let p = A(null);
68
- p.displayName = "OpenClosedContext";
69
- var S = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(S || {});
70
- function T() {
71
- return E(p);
72
- }
73
- function _({ value: e, children: t }) {
74
- return h.createElement(p.Provider, { value: e }, t);
75
- }
76
- function w({ children: e }) {
77
- return h.createElement(p.Provider, { value: null }, e);
78
- }
79
- export {
80
- L as H,
81
- R,
82
- _ as c,
83
- S as i,
84
- w as s,
85
- T as u
86
- };