mimir-ui-kit 1.45.0 → 1.47.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/assets/CheckboxMimir.css +1 -1
 - package/dist/assets/SelectSearch.css +1 -1
 - package/dist/assets/useNestedSelection.css +1 -0
 - package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +2 -0
 - package/dist/components/CheckboxMimir/CheckboxMimir.js +42 -41
 - package/dist/components/MultiSelectSearch/MultiSelectSearch.d.ts +5 -1
 - package/dist/components/MultiSelectSearch/MultiSelectSearch.js +277 -467
 - package/dist/components/MultiSelectSearch/hooks/useChips.d.ts +18 -0
 - package/dist/components/MultiSelectSearch/hooks/useChips.js +101 -0
 - package/dist/components/MultiSelectSearch/hooks/useDataLoading.d.ts +10 -0
 - package/dist/components/MultiSelectSearch/hooks/useDataLoading.js +21 -0
 - package/dist/components/MultiSelectSearch/hooks/useEventHandling.d.ts +12 -0
 - package/dist/components/MultiSelectSearch/hooks/useEventHandling.js +31 -0
 - package/dist/components/MultiSelectSearch/hooks/useMenuPlacement.d.ts +19 -0
 - package/dist/components/MultiSelectSearch/hooks/useMenuPlacement.js +38 -0
 - package/dist/components/MultiSelectSearch/hooks/useMultiSelectState.d.ts +21 -0
 - package/dist/components/MultiSelectSearch/hooks/useMultiSelectState.js +31 -0
 - package/dist/components/MultiSelectSearch/hooks/useNestedSelection.d.ts +26 -0
 - package/dist/components/MultiSelectSearch/hooks/useNestedSelection.js +12 -0
 - package/dist/components/MultiSelectSearch/hooks/useRenderVirtualizedList.d.ts +30 -0
 - package/dist/components/MultiSelectSearch/hooks/useRenderVirtualizedList.js +226 -0
 - package/dist/components/MultiSelectSearch/hooks/useSearch.d.ts +17 -0
 - package/dist/components/MultiSelectSearch/hooks/useSearch.js +68 -0
 - package/dist/components/MultiSelectSearch/hooks/useVirtualization.d.ts +18 -0
 - package/dist/components/MultiSelectSearch/hooks/useVirtualization.js +38 -0
 - package/dist/components/MultiSelectSearch/types.d.ts +26 -0
 - package/dist/components/MultiSelectSearch/utils.d.ts +32 -0
 - package/dist/components/MultiSelectSearch/utils.js +145 -59
 - package/dist/components/SelectSearch/SelectSearch.d.ts +1 -0
 - package/dist/components/SelectSearch/SelectSearch.js +304 -324
 - package/dist/components/SelectSearch/types.d.ts +5 -0
 - package/dist/components/SelectSearch/utils.js +18 -17
 - package/dist/useNestedSelection-bo9wXvE-.js +181 -0
 - package/package.json +1 -1
 - package/dist/assets/MultiSelectSearch.css +0 -1
 
| 
         @@ -109,4 +109,9 @@ export type TSelectSearchProps = Pick<TInputProps, 'withClearButton' | 'variant' 
     | 
|
| 
       109 
109 
     | 
    
         
             
                 * @default false
         
     | 
| 
       110 
110 
     | 
    
         
             
                 */
         
     | 
| 
       111 
111 
     | 
    
         
             
                highlightMatches?: boolean;
         
     | 
| 
      
 112 
     | 
    
         
            +
                /**
         
     | 
| 
      
 113 
     | 
    
         
            +
                 * Включить поиск по хедерам группы вложенных элементов в режиме группировки
         
     | 
| 
      
 114 
     | 
    
         
            +
                 * @default false
         
     | 
| 
      
 115 
     | 
    
         
            +
                 */
         
     | 
| 
      
 116 
     | 
    
         
            +
                searchInHeaderGroupItems?: boolean;
         
     | 
| 
       112 
117 
     | 
    
         
             
            };
         
     | 
| 
         @@ -1,5 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import { createElement as u, Fragment as l, isValidElement as g, cloneElement as m } from "react";
         
     | 
| 
       2 
     | 
    
         
            -
            import { ESelectSearchSize as s, MOBILE_MENU_HEIGHT as  
     | 
| 
      
 2 
     | 
    
         
            +
            import { ESelectSearchSize as s, MOBILE_MENU_HEIGHT as h, DESKTOP_MENU_HEIGHT as w } from "./constants.js";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import "../../Input-IzZ6B9kw.js";
         
     | 
| 
       4 
4 
     | 
    
         
             
            import { EInputSize as c } from "../Input/constants.js";
         
     | 
| 
       5 
5 
     | 
    
         
             
            const A = (r) => {
         
     | 
| 
         @@ -15,33 +15,34 @@ const A = (r) => { 
     | 
|
| 
       15 
15 
     | 
    
         
             
              }
         
     | 
| 
       16 
16 
     | 
    
         
             
            }, H = (r, t) => r ? t === s.L ? "DropdownArrowUp24px" : "DropdownArrowUp16px" : t === s.L ? "DropdownArrowDown24px" : "DropdownArrowBottom16px", M = (r, t, n) => {
         
     | 
| 
       17 
17 
     | 
    
         
             
              if (!r.length || !t) return r;
         
     | 
| 
       18 
     | 
    
         
            -
              const e = [],  
     | 
| 
      
 18 
     | 
    
         
            +
              const e = [], p = /* @__PURE__ */ new Set();
         
     | 
| 
       19 
19 
     | 
    
         
             
              for (const o of r) {
         
     | 
| 
       20 
     | 
    
         
            -
                const  
     | 
| 
       21 
     | 
    
         
            -
                 
     | 
| 
       22 
     | 
    
         
            -
                  id: `group-header-${ 
     | 
| 
       23 
     | 
    
         
            -
                  name: n( 
     | 
| 
      
 20 
     | 
    
         
            +
                const i = String(o[t] || "Без группы");
         
     | 
| 
      
 21 
     | 
    
         
            +
                p.has(i) || (p.add(i), e.push({
         
     | 
| 
      
 22 
     | 
    
         
            +
                  id: `group-header-${i}`,
         
     | 
| 
      
 23 
     | 
    
         
            +
                  name: n(i),
         
     | 
| 
       24 
24 
     | 
    
         
             
                  isGroupHeader: !0,
         
     | 
| 
       25 
     | 
    
         
            -
                  originalValue:  
     | 
| 
      
 25 
     | 
    
         
            +
                  originalValue: i
         
     | 
| 
       26 
26 
     | 
    
         
             
                })), e.push(o);
         
     | 
| 
       27 
27 
     | 
    
         
             
              }
         
     | 
| 
       28 
28 
     | 
    
         
             
              return e;
         
     | 
| 
       29 
29 
     | 
    
         
             
            }, D = (r, t) => {
         
     | 
| 
       30 
30 
     | 
    
         
             
              if (!r.current) return !1;
         
     | 
| 
       31 
     | 
    
         
            -
              const n = r.current.getBoundingClientRect(), e = window.innerHeight,  
     | 
| 
       32 
     | 
    
         
            -
              return o >=  
     | 
| 
       33 
     | 
    
         
            -
            },  
     | 
| 
      
 31 
     | 
    
         
            +
              const n = r.current.getBoundingClientRect(), e = window.innerHeight, p = t === s.M || t === s.S ? h : w, o = e - n.bottom, i = n.top;
         
     | 
| 
      
 32 
     | 
    
         
            +
              return o >= p ? !1 : i > o;
         
     | 
| 
      
 33 
     | 
    
         
            +
            }, f = (r, t, n) => {
         
     | 
| 
       34 
34 
     | 
    
         
             
              if (!t.trim())
         
     | 
| 
       35 
35 
     | 
    
         
             
                return [r];
         
     | 
| 
       36 
36 
     | 
    
         
             
              const e = new RegExp(
         
     | 
| 
       37 
37 
     | 
    
         
             
                `(${t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`,
         
     | 
| 
       38 
38 
     | 
    
         
             
                "gi"
         
     | 
| 
       39 
39 
     | 
    
         
             
              );
         
     | 
| 
       40 
     | 
    
         
            -
              return r.split(e).map((o,  
     | 
| 
      
 40 
     | 
    
         
            +
              return r.split(e).map((o, i) => e.test(o) ? u(
         
     | 
| 
       41 
41 
     | 
    
         
             
                "span",
         
     | 
| 
       42 
42 
     | 
    
         
             
                {
         
     | 
| 
       43 
     | 
    
         
            -
                  key:  
     | 
| 
       44 
     | 
    
         
            -
                  className: n
         
     | 
| 
      
 43 
     | 
    
         
            +
                  key: i,
         
     | 
| 
      
 44 
     | 
    
         
            +
                  className: n,
         
     | 
| 
      
 45 
     | 
    
         
            +
                  "data-testid": "highlighted-match"
         
     | 
| 
       45 
46 
     | 
    
         
             
                },
         
     | 
| 
       46 
47 
     | 
    
         
             
                o
         
     | 
| 
       47 
48 
     | 
    
         
             
              ) : o);
         
     | 
| 
         @@ -49,7 +50,7 @@ const A = (r) => { 
     | 
|
| 
       49 
50 
     | 
    
         
             
              if (!t.trim())
         
     | 
| 
       50 
51 
     | 
    
         
             
                return r;
         
     | 
| 
       51 
52 
     | 
    
         
             
              if (typeof r == "string") {
         
     | 
| 
       52 
     | 
    
         
            -
                const e =  
     | 
| 
      
 53 
     | 
    
         
            +
                const e = f(
         
     | 
| 
       53 
54 
     | 
    
         
             
                  r,
         
     | 
| 
       54 
55 
     | 
    
         
             
                  t,
         
     | 
| 
       55 
56 
     | 
    
         
             
                  n
         
     | 
| 
         @@ -61,9 +62,9 @@ const A = (r) => { 
     | 
|
| 
       61 
62 
     | 
    
         
             
                );
         
     | 
| 
       62 
63 
     | 
    
         
             
              }
         
     | 
| 
       63 
64 
     | 
    
         
             
              return Array.isArray(r) ? r.map(
         
     | 
| 
       64 
     | 
    
         
            -
                (e,  
     | 
| 
      
 65 
     | 
    
         
            +
                (e, p) => u(
         
     | 
| 
       65 
66 
     | 
    
         
             
                  l,
         
     | 
| 
       66 
     | 
    
         
            -
                  { key:  
     | 
| 
      
 67 
     | 
    
         
            +
                  { key: p },
         
     | 
| 
       67 
68 
     | 
    
         
             
                  a(e, t, n)
         
     | 
| 
       68 
69 
     | 
    
         
             
                )
         
     | 
| 
       69 
70 
     | 
    
         
             
              ) : g(r) ? m(r, {
         
     | 
| 
         @@ -78,7 +79,7 @@ const A = (r) => { 
     | 
|
| 
       78 
79 
     | 
    
         
             
            export {
         
     | 
| 
       79 
80 
     | 
    
         
             
              H as getDropdownArrowIcon,
         
     | 
| 
       80 
81 
     | 
    
         
             
              a as highlightReactNode,
         
     | 
| 
       81 
     | 
    
         
            -
               
     | 
| 
      
 82 
     | 
    
         
            +
              f as highlightText,
         
     | 
| 
       82 
83 
     | 
    
         
             
              A as mapSizeToInputSize,
         
     | 
| 
       83 
84 
     | 
    
         
             
              M as prepareGroupedItems,
         
     | 
| 
       84 
85 
     | 
    
         
             
              D as shouldShowMenuOnTop
         
     | 
| 
         @@ -0,0 +1,181 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import { jsxs as C, jsx as r } from "react/jsx-runtime";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { c as w } from "./index-DIxK0V-G.js";
         
     | 
| 
      
 3 
     | 
    
         
            +
            import { useEffect as j } from "react";
         
     | 
| 
      
 4 
     | 
    
         
            +
            import { Icon as k } from "./icons/Icon.js";
         
     | 
| 
      
 5 
     | 
    
         
            +
            import { CheckboxMimir as q } from "./components/CheckboxMimir/CheckboxMimir.js";
         
     | 
| 
      
 6 
     | 
    
         
            +
            import { EMultiSelectSearchSize as M } from "./components/MultiSelectSearch/constants.js";
         
     | 
| 
      
 7 
     | 
    
         
            +
            import { getAllChildrenIds as F } from "./components/MultiSelectSearch/utils.js";
         
     | 
| 
      
 8 
     | 
    
         
            +
            import { W as P } from "./combobox-fIVOzEhl.js";
         
     | 
| 
      
 9 
     | 
    
         
            +
            import './assets/useNestedSelection.css';const W = "_disabled_1l3p8_5", B = "_container_1l3p8_9", L = "_l_1l3p8_36", T = "_loader_1l3p8_40", V = "_full_1l3p8_50", $ = "_button_1l3p8_62", y = "_options_1l3p8_32", G = "_visible_1l3p8_89", H = "_top_1l3p8_92", J = "_bottom_1l3p8_97", K = "_m_1l3p8_2", R = "_focused_1l3p8_157", U = "_option_1l3p8_32", X = "_chip_1l3p8_186", Y = "_clear_1l3p8_211", s = {
         
     | 
| 
      
 10 
     | 
    
         
            +
              "multi-select-search": "_multi-select-search_1l3p8_2",
         
     | 
| 
      
 11 
     | 
    
         
            +
              disabled: W,
         
     | 
| 
      
 12 
     | 
    
         
            +
              container: B,
         
     | 
| 
      
 13 
     | 
    
         
            +
              "container-open": "_container-open_1l3p8_18",
         
     | 
| 
      
 14 
     | 
    
         
            +
              "group-header": "_group-header_1l3p8_22",
         
     | 
| 
      
 15 
     | 
    
         
            +
              "options-container": "_options-container_1l3p8_32",
         
     | 
| 
      
 16 
     | 
    
         
            +
              l: L,
         
     | 
| 
      
 17 
     | 
    
         
            +
              loader: T,
         
     | 
| 
      
 18 
     | 
    
         
            +
              "input-container": "_input-container_1l3p8_45",
         
     | 
| 
      
 19 
     | 
    
         
            +
              full: V,
         
     | 
| 
      
 20 
     | 
    
         
            +
              "selected-icon": "_selected-icon_1l3p8_54",
         
     | 
| 
      
 21 
     | 
    
         
            +
              "selector-icon-open": "_selector-icon-open_1l3p8_58",
         
     | 
| 
      
 22 
     | 
    
         
            +
              button: $,
         
     | 
| 
      
 23 
     | 
    
         
            +
              "selector-icon": "_selector-icon_1l3p8_58",
         
     | 
| 
      
 24 
     | 
    
         
            +
              options: y,
         
     | 
| 
      
 25 
     | 
    
         
            +
              visible: G,
         
     | 
| 
      
 26 
     | 
    
         
            +
              top: H,
         
     | 
| 
      
 27 
     | 
    
         
            +
              bottom: J,
         
     | 
| 
      
 28 
     | 
    
         
            +
              "no-options": "_no-options_1l3p8_118",
         
     | 
| 
      
 29 
     | 
    
         
            +
              m: K,
         
     | 
| 
      
 30 
     | 
    
         
            +
              "multi-select-input-disabled": "_multi-select-input-disabled_1l3p8_154",
         
     | 
| 
      
 31 
     | 
    
         
            +
              "multi-select-input": "_multi-select-input_1l3p8_154",
         
     | 
| 
      
 32 
     | 
    
         
            +
              focused: R,
         
     | 
| 
      
 33 
     | 
    
         
            +
              option: U,
         
     | 
| 
      
 34 
     | 
    
         
            +
              "option-active": "_option-active_1l3p8_176",
         
     | 
| 
      
 35 
     | 
    
         
            +
              "option-inner": "_option-inner_1l3p8_179",
         
     | 
| 
      
 36 
     | 
    
         
            +
              chip: X,
         
     | 
| 
      
 37 
     | 
    
         
            +
              "chip-container": "_chip-container_1l3p8_191",
         
     | 
| 
      
 38 
     | 
    
         
            +
              "chip-root": "_chip-root_1l3p8_197",
         
     | 
| 
      
 39 
     | 
    
         
            +
              "right-slot": "_right-slot_1l3p8_201",
         
     | 
| 
      
 40 
     | 
    
         
            +
              "required-mark": "_required-mark_1l3p8_206",
         
     | 
| 
      
 41 
     | 
    
         
            +
              clear: Y,
         
     | 
| 
      
 42 
     | 
    
         
            +
              "icon-button": "_icon-button_1l3p8_220",
         
     | 
| 
      
 43 
     | 
    
         
            +
              "highlighted-text": "_highlighted-text_1l3p8_224",
         
     | 
| 
      
 44 
     | 
    
         
            +
              "highlighted-text-wrapper": "_highlighted-text-wrapper_1l3p8_229",
         
     | 
| 
      
 45 
     | 
    
         
            +
              "nested-option": "_nested-option_1l3p8_233",
         
     | 
| 
      
 46 
     | 
    
         
            +
              "expand-button": "_expand-button_1l3p8_241",
         
     | 
| 
      
 47 
     | 
    
         
            +
              "expand-icon": "_expand-icon_1l3p8_253",
         
     | 
| 
      
 48 
     | 
    
         
            +
              "expand-icon-expanded": "_expand-icon-expanded_1l3p8_256"
         
     | 
| 
      
 49 
     | 
    
         
            +
            }, cn = ({
         
     | 
| 
      
 50 
     | 
    
         
            +
              filteredItems: p,
         
     | 
| 
      
 51 
     | 
    
         
            +
              selectedItems: v,
         
     | 
| 
      
 52 
     | 
    
         
            +
              expandedOptions: S,
         
     | 
| 
      
 53 
     | 
    
         
            +
              setExpandedOptions: a,
         
     | 
| 
      
 54 
     | 
    
         
            +
              size: _,
         
     | 
| 
      
 55 
     | 
    
         
            +
              classNameOption: N,
         
     | 
| 
      
 56 
     | 
    
         
            +
              items: h,
         
     | 
| 
      
 57 
     | 
    
         
            +
              enableNestedSelection: u,
         
     | 
| 
      
 58 
     | 
    
         
            +
              searchInNestedItems: f = !1,
         
     | 
| 
      
 59 
     | 
    
         
            +
              internalSearchQuery: g,
         
     | 
| 
      
 60 
     | 
    
         
            +
              renderOptionContent: D,
         
     | 
| 
      
 61 
     | 
    
         
            +
              groupBy: E,
         
     | 
| 
      
 62 
     | 
    
         
            +
              useIconInsteadOfCheckbox: A = !1
         
     | 
| 
      
 63 
     | 
    
         
            +
            }) => {
         
     | 
| 
      
 64 
     | 
    
         
            +
              const b = (t) => {
         
     | 
| 
      
 65 
     | 
    
         
            +
                a((i) => {
         
     | 
| 
      
 66 
     | 
    
         
            +
                  const e = new Set(i);
         
     | 
| 
      
 67 
     | 
    
         
            +
                  return e.has(t) ? e.delete(t) : e.add(t), e;
         
     | 
| 
      
 68 
     | 
    
         
            +
                });
         
     | 
| 
      
 69 
     | 
    
         
            +
              };
         
     | 
| 
      
 70 
     | 
    
         
            +
              j(() => {
         
     | 
| 
      
 71 
     | 
    
         
            +
                if (u && f && g) {
         
     | 
| 
      
 72 
     | 
    
         
            +
                  const t = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), e = (c) => {
         
     | 
| 
      
 73 
     | 
    
         
            +
                    c.forEach((n) => {
         
     | 
| 
      
 74 
     | 
    
         
            +
                      i.has(n.id) || (i.add(n.id), n.children && n.children.length > 0 && (n.children.some(
         
     | 
| 
      
 75 
     | 
    
         
            +
                        (l) => p.some((o) => o.id === l.id)
         
     | 
| 
      
 76 
     | 
    
         
            +
                      ) && t.add(n.id), e(n.children)));
         
     | 
| 
      
 77 
     | 
    
         
            +
                    });
         
     | 
| 
      
 78 
     | 
    
         
            +
                  };
         
     | 
| 
      
 79 
     | 
    
         
            +
                  e(h), a((c) => /* @__PURE__ */ new Set([...c, ...t]));
         
     | 
| 
      
 80 
     | 
    
         
            +
                }
         
     | 
| 
      
 81 
     | 
    
         
            +
              }, [
         
     | 
| 
      
 82 
     | 
    
         
            +
                p,
         
     | 
| 
      
 83 
     | 
    
         
            +
                u,
         
     | 
| 
      
 84 
     | 
    
         
            +
                f,
         
     | 
| 
      
 85 
     | 
    
         
            +
                g,
         
     | 
| 
      
 86 
     | 
    
         
            +
                h,
         
     | 
| 
      
 87 
     | 
    
         
            +
                a
         
     | 
| 
      
 88 
     | 
    
         
            +
              ]);
         
     | 
| 
      
 89 
     | 
    
         
            +
              const I = (t) => {
         
     | 
| 
      
 90 
     | 
    
         
            +
                const i = v.map((o) => o.id);
         
     | 
| 
      
 91 
     | 
    
         
            +
                if (!t.children || t.children.length === 0)
         
     | 
| 
      
 92 
     | 
    
         
            +
                  return {
         
     | 
| 
      
 93 
     | 
    
         
            +
                    checked: i.includes(t.id),
         
     | 
| 
      
 94 
     | 
    
         
            +
                    isMinusIcon: !1
         
     | 
| 
      
 95 
     | 
    
         
            +
                  };
         
     | 
| 
      
 96 
     | 
    
         
            +
                const e = t.children.flatMap((o) => [
         
     | 
| 
      
 97 
     | 
    
         
            +
                  o.id,
         
     | 
| 
      
 98 
     | 
    
         
            +
                  ...F(o)
         
     | 
| 
      
 99 
     | 
    
         
            +
                ]), c = e.filter(
         
     | 
| 
      
 100 
     | 
    
         
            +
                  (o) => i.includes(o)
         
     | 
| 
      
 101 
     | 
    
         
            +
                ).length, n = e.length, d = c > 0;
         
     | 
| 
      
 102 
     | 
    
         
            +
                return {
         
     | 
| 
      
 103 
     | 
    
         
            +
                  checked: d,
         
     | 
| 
      
 104 
     | 
    
         
            +
                  isMinusIcon: d && !(c === n)
         
     | 
| 
      
 105 
     | 
    
         
            +
                };
         
     | 
| 
      
 106 
     | 
    
         
            +
              }, m = (t, i = 0) => {
         
     | 
| 
      
 107 
     | 
    
         
            +
                const e = /* @__PURE__ */ new Map(), c = (n) => {
         
     | 
| 
      
 108 
     | 
    
         
            +
                  if (e.has(n.id))
         
     | 
| 
      
 109 
     | 
    
         
            +
                    return e.get(n.id);
         
     | 
| 
      
 110 
     | 
    
         
            +
                  if (p.some((l) => l.id === n.id))
         
     | 
| 
      
 111 
     | 
    
         
            +
                    return e.set(n.id, !0), !0;
         
     | 
| 
      
 112 
     | 
    
         
            +
                  if (n.children && n.children.length > 0) {
         
     | 
| 
      
 113 
     | 
    
         
            +
                    const l = n.children.some(
         
     | 
| 
      
 114 
     | 
    
         
            +
                      (o) => c(o)
         
     | 
| 
      
 115 
     | 
    
         
            +
                    );
         
     | 
| 
      
 116 
     | 
    
         
            +
                    return e.set(n.id, l), l;
         
     | 
| 
      
 117 
     | 
    
         
            +
                  }
         
     | 
| 
      
 118 
     | 
    
         
            +
                  return e.set(n.id, !1), !1;
         
     | 
| 
      
 119 
     | 
    
         
            +
                };
         
     | 
| 
      
 120 
     | 
    
         
            +
                return t.filter((n) => i === 0 ? c(n) && h.some((d) => d.id === n.id) : f ? c(n) : !n.children).map((n) => {
         
     | 
| 
      
 121 
     | 
    
         
            +
                  const d = S.has(n.id), l = n.children && n.children.length > 0, o = I(n);
         
     | 
| 
      
 122 
     | 
    
         
            +
                  return /* @__PURE__ */ C("div", { children: [
         
     | 
| 
      
 123 
     | 
    
         
            +
                    /* @__PURE__ */ C(
         
     | 
| 
      
 124 
     | 
    
         
            +
                      P,
         
     | 
| 
      
 125 
     | 
    
         
            +
                      {
         
     | 
| 
      
 126 
     | 
    
         
            +
                        value: n,
         
     | 
| 
      
 127 
     | 
    
         
            +
                        className: ({ focus: x }) => w(s.option, N, _ && s[_], {
         
     | 
| 
      
 128 
     | 
    
         
            +
                          [s["option-active"]]: x && !E && !u,
         
     | 
| 
      
 129 
     | 
    
         
            +
                          [s["nested-option"]]: i > 0
         
     | 
| 
      
 130 
     | 
    
         
            +
                        }),
         
     | 
| 
      
 131 
     | 
    
         
            +
                        children: [
         
     | 
| 
      
 132 
     | 
    
         
            +
                          A ? o.checked && /* @__PURE__ */ r(
         
     | 
| 
      
 133 
     | 
    
         
            +
                            k,
         
     | 
| 
      
 134 
     | 
    
         
            +
                            {
         
     | 
| 
      
 135 
     | 
    
         
            +
                              iconName: _ === M.L ? "Done24px" : "Done16px",
         
     | 
| 
      
 136 
     | 
    
         
            +
                              className: s["selected-icon"]
         
     | 
| 
      
 137 
     | 
    
         
            +
                            }
         
     | 
| 
      
 138 
     | 
    
         
            +
                          ) : /* @__PURE__ */ r(
         
     | 
| 
      
 139 
     | 
    
         
            +
                            q,
         
     | 
| 
      
 140 
     | 
    
         
            +
                            {
         
     | 
| 
      
 141 
     | 
    
         
            +
                              isInteractive: !1,
         
     | 
| 
      
 142 
     | 
    
         
            +
                              checked: o.checked,
         
     | 
| 
      
 143 
     | 
    
         
            +
                              isMinusIcon: o.isMinusIcon
         
     | 
| 
      
 144 
     | 
    
         
            +
                            }
         
     | 
| 
      
 145 
     | 
    
         
            +
                          ),
         
     | 
| 
      
 146 
     | 
    
         
            +
                          /* @__PURE__ */ r("div", { className: s["option-inner"], children: D(n) }),
         
     | 
| 
      
 147 
     | 
    
         
            +
                          l && /* @__PURE__ */ r(
         
     | 
| 
      
 148 
     | 
    
         
            +
                            "div",
         
     | 
| 
      
 149 
     | 
    
         
            +
                            {
         
     | 
| 
      
 150 
     | 
    
         
            +
                              className: s["expand-button"],
         
     | 
| 
      
 151 
     | 
    
         
            +
                              "data-testid": `expand-button-${n.id}`,
         
     | 
| 
      
 152 
     | 
    
         
            +
                              onMouseDown: (x) => {
         
     | 
| 
      
 153 
     | 
    
         
            +
                                x.stopPropagation(), b(n.id);
         
     | 
| 
      
 154 
     | 
    
         
            +
                              },
         
     | 
| 
      
 155 
     | 
    
         
            +
                              children: /* @__PURE__ */ r(
         
     | 
| 
      
 156 
     | 
    
         
            +
                                k,
         
     | 
| 
      
 157 
     | 
    
         
            +
                                {
         
     | 
| 
      
 158 
     | 
    
         
            +
                                  iconName: _ === M.M ? "DropdownArrowBottom16px" : "DropdownArrowDown24px",
         
     | 
| 
      
 159 
     | 
    
         
            +
                                  className: w(s["expand-icon"], {
         
     | 
| 
      
 160 
     | 
    
         
            +
                                    [s["expand-icon-expanded"]]: d
         
     | 
| 
      
 161 
     | 
    
         
            +
                                  })
         
     | 
| 
      
 162 
     | 
    
         
            +
                                }
         
     | 
| 
      
 163 
     | 
    
         
            +
                              )
         
     | 
| 
      
 164 
     | 
    
         
            +
                            }
         
     | 
| 
      
 165 
     | 
    
         
            +
                          )
         
     | 
| 
      
 166 
     | 
    
         
            +
                        ]
         
     | 
| 
      
 167 
     | 
    
         
            +
                      }
         
     | 
| 
      
 168 
     | 
    
         
            +
                    ),
         
     | 
| 
      
 169 
     | 
    
         
            +
                    l && d && /* @__PURE__ */ r("div", { className: s["nested-children"], children: m(n.children, i + 1) })
         
     | 
| 
      
 170 
     | 
    
         
            +
                  ] }, n.id);
         
     | 
| 
      
 171 
     | 
    
         
            +
                });
         
     | 
| 
      
 172 
     | 
    
         
            +
              };
         
     | 
| 
      
 173 
     | 
    
         
            +
              return {
         
     | 
| 
      
 174 
     | 
    
         
            +
                toggleExpanded: b,
         
     | 
| 
      
 175 
     | 
    
         
            +
                renderNestedOptions: m
         
     | 
| 
      
 176 
     | 
    
         
            +
              };
         
     | 
| 
      
 177 
     | 
    
         
            +
            };
         
     | 
| 
      
 178 
     | 
    
         
            +
            export {
         
     | 
| 
      
 179 
     | 
    
         
            +
              s as c,
         
     | 
| 
      
 180 
     | 
    
         
            +
              cn as u
         
     | 
| 
      
 181 
     | 
    
         
            +
            };
         
     | 
    
        package/package.json
    CHANGED
    
    
| 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            ._multi-select-search_1phc4_2{position:relative}._multi-select-search_1phc4_2._disabled_1phc4_5{cursor:not-allowed}._container_1phc4_9{display:block;gap:var(--select-search-gap);-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:var(--select-search-height);background-color:var(--black-5);border-radius:var(--select-search-radius)}._container-open_1phc4_18{border-bottom:1px solid var(--citrine-100)}._group-header_1phc4_22{position:-webkit-sticky;position:sticky;top:0;z-index:2;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:var(--select-search-option-space);background-color:var(--black-10);border-bottom:1px solid var(--black-20)}._group-header_1phc4_22._sticky-active_1phc4_33{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.1);box-shadow:0 2px 4px #0000001a}._loader_1phc4_37{display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--mimir-space-m)}._input-container_1phc4_42{position:relative;width:100%}._full_1phc4_47{width:100%}._selected-icon_1phc4_51 path{fill:var(--sapphire-100)}._selector-icon-open_1phc4_55{-webkit-transform:rotate(180deg);transform:rotate(180deg)}._button_1phc4_59{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:none;border:none;cursor:pointer}._button_1phc4_59._disabled_1phc4_5{cursor:not-allowed}._button_1phc4_59._disabled_1phc4_5 ._selector-icon_1phc4_55 path{fill:var(--white)}._options_1phc4_73{position:absolute;z-index:10;width:100%;min-height:50%;max-height:var(--select-search-options-height);overflow-y:auto;font-size:var(--mimir-size-text-l);background:var(--white);-webkit-box-shadow:var(--mimir-box-shadow-select-search);box-shadow:var(--mimir-box-shadow-select-search);opacity:0;-webkit-transition:opacity .2s ease-out,-webkit-transform .2s ease-out;transition:opacity .2s ease-out,-webkit-transform .2s ease-out;transition:transform .2s ease-out,opacity .2s ease-out;transition:transform .2s ease-out,opacity .2s ease-out,-webkit-transform .2s ease-out}._options_1phc4_73._visible_1phc4_86{opacity:1}._options_1phc4_73._top_1phc4_89{bottom:100%;margin-bottom:1px;border-radius:var(--select-search-radius) var(--select-search-radius) 0 0}._options_1phc4_73._bottom_1phc4_94{top:100%;margin-top:1px;border-radius:0 0 var(--select-search-radius) var(--select-search-radius)}._options_1phc4_73::-webkit-scrollbar{width:3px}._options_1phc4_73::-webkit-scrollbar-thumb{background-color:var(--black-80);border-radius:var(--mimir-control-radius-xs2)}._options_1phc4_73::-webkit-scrollbar-track{background-color:var(--white)}@media (max-width: 600px){._options_1phc4_73{max-height:var(--mimir-select-search-options-height-mobile)}}._no-options_1phc4_115{height:100%;padding:var(--select-search-option-space);color:var(--black-80)}._m_1phc4_2{--select-search-height: var(--mimir-select-search-height-l);--select-search-space: var(--mimir-space-xss) var(--mimir-space-m);--select-search-radius: var(--mimir-control-radius);--select-search-gap: var(--mimir-space-2xs);--select-search-btn-space: var(--mimir-space-m) var(--mimir-space-m) var(--mimir-space-m) var(--mimir-space-xs);--select-search-option-space: var(--mimir-space-2s) var(--mimir-space-m);--select-search-options-height: var( --mimir-select-search-options-height-mobile );--clear-right: var(--mimir-space-2xxl);--multi-select-input-disabled-margin-right: var(--mimir-space-l)}._l_1phc4_37{--select-search-height: var(--mimir-select-search-height-xxl);--select-search-space: var(--mimir-space-xss) var(--mimir-space-m);--select-search-radius: var(--mimir-control-radius-s);--select-search-gap: var(--mimir-space-xs);--select-search-btn-space: var(--mimir-space-l) var(--mimir-space-m) var(--mimir-space-l) var(--mimir-space-xs);--select-search-option-space: var(--mimir-space-2l) var(--mimir-space-m);--select-search-options-height: var( --mimir-select-search-options-height-desktop );--clear-right: var(--mimir-space-4xl);--multi-select-input-disabled-margin-right: var(--mimir-space-1xl)}._multi-select-input-disabled_1phc4_151{margin-right:var(--multi-select-input-disabled-margin-right)}._multi-select-input_1phc4_151._focused_1phc4_154{height:auto;min-height:var(--input-height);overflow:hidden;resize:vertical}._multi-select-input_1phc4_151:last-child{padding-right:var(--mimir-space-4xl)}._option_1phc4_73{display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--mimir-space-m);-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:var(--select-search-option-space);cursor:pointer;-webkit-transition:background-color .2s ease-in-out;transition:background-color .2s ease-in-out}._option-active_1phc4_173{background-color:var(--black-5)}._option-inner_1phc4_176{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:var(--mimir-space-xs);width:100%}._chip_1phc4_183{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._chip-container_1phc4_188{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--mimir-space-2xs);margin-top:var(--mimir-space-xs)}._chip-root_1phc4_194{max-width:100%}._right-slot_1phc4_198{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;padding-top:0!important}._required-mark_1phc4_203{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;margin-right:var(--mimir-space-xs)}._clear_1phc4_208{position:absolute;top:50%;right:var(--clear-right);-webkit-transform:translateY(-50%);transform:translateY(-50%)}._clear_1phc4_208._disabled_1phc4_5{cursor:not-allowed}._clear_1phc4_208._disabled_1phc4_5 ._icon-button_1phc4_217 path{fill:var(--white)}._highlighted-text_1phc4_221{color:var(--citrine-100);font-weight:inherit}._highlighted-text-wrapper_1phc4_226{display:inline}
         
     |