welcome-ui 9.0.13 → 9.0.14

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/Select.css CHANGED
@@ -1 +1 @@
1
- @layer components{._indicators_srf8a_2{position:absolute;padding:0;top:0;height:var(--select-height, 100%);right:var(--indicators-right, var(--spacing-md));display:flex;gap:var(--spacing-xs)}._indicators_srf8a_2._size-xs_srf8a_11{--indicators-right: var(--spacing-sm)}._dropdown-indicator_srf8a_14{position:relative;height:100%;padding:0;outline:none!important;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;border:none;background:transparent;display:flex;align-items:center;justify-content:center}._dropdown-indicator_srf8a_14 ._styled-icon_srf8a_27{transform:none;transition-property:transform;transition-duration:var(--duration-medium);transition-timing-function:var(--timing-primary)}._dropdown-indicator_srf8a_14._open_srf8a_33 ._styled-icon_srf8a_27{transform:rotate3d(0,0,1,180deg)}._dropdown-indicator_srf8a_14:not(:last-child){width:auto}._dropdown-indicator_srf8a_14:disabled{color:var(--color-beige-60)}._input-wrapper_srf8a_42{position:relative}._input-wrapper_srf8a_42:has(>._icon-placement-right_srf8a_45) ._indicators_srf8a_2{--indicators-right: calc(var(--spacing-lg) + var(--spacing-md) * 2)}._root_srf8a_49{--select-placeholder-color: var(--color-neutral-60);background-color:var(--select-background-color, var(--color-neutral-10));border-color:var(--select-border-color, var(--color-neutral-30));border-radius:var(--radius-md);border-style:solid;border-width:var(--border-width-sm);color:var(--select-text-color, var(--color-neutral-90));font-size:var(--font-size-sm);font-weight:var(--font-weight-regular);line-height:var(--line-height-16);outline:2px solid var(--select-outline-color, transparent);cursor:default;width:100%;transition-property:all;transition-timing-function:var(--timing-primary);transition-duration:var(--duration-medium);height:var(--select-height);padding-bottom:var(--select-padding-bottom);padding-left:var(--select-padding-left);padding-right:var(--select-padding-right);padding-top:var(--select-padding-top);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._root_srf8a_49._icon-placement-left_srf8a_80,._root_srf8a_49._icon-placement-both_srf8a_80{padding-left:calc(var(--select-padding-left) + var(--select-icon-size, 1rem) + var(--spacing-sm))}._root_srf8a_49._clearable_srf8a_83,._root_srf8a_49._icon-placement-right_srf8a_45,._root_srf8a_49._icon-placement-both_srf8a_80{padding-right:calc(var(--select-padding-right) + var(--select-icon-size, 1rem) + var(--spacing-sm))}._root_srf8a_49._clearable_srf8a_83._icon-placement-right_srf8a_45,._root_srf8a_49._clearable_srf8a_83._icon-placement-both_srf8a_80{padding-right:calc(var(--select-padding-right) + (var(--select-icon-size, 1rem) + var(--spacing-sm)) * 2)}._root_srf8a_49:disabled,._root_srf8a_49._disabled_srf8a_89{--select-background-color: var(--color-beige-30);--select-text-color: var(--color-beige-60);cursor:not-allowed}._root_srf8a_49:hover:not([class*=variant]){--select-border-color: var(--color-brand-40)}._root_srf8a_49:focus:not([class*=variant]){--select-outline-color: var(--color-brand-20);--select-border-color: var(--color-brand-40)}._root_srf8a_49._transparent_srf8a_101{--select-border-color: transparent;--select-background-color: transparent}._root_srf8a_49._transparent_srf8a_101:hover{--select-border-color: var(--color-neutral-20)}._root_srf8a_49::placeholder{color:var(--select-placeholder-color)}._root_srf8a_49 br{display:none}._root_srf8a_49:before{content:attr(data-spacer);visibility:hidden;display:block;height:0}._root_srf8a_49:empty:after{content:attr(placeholder);position:absolute;top:0;right:0;bottom:0;left:0;padding:inherit;color:var(--select-placeholder-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._root_srf8a_49:empty:before{height:auto}._variant-danger_srf8a_136{--select-border-color: var(--color-red-70);--select-outline-color: var(--color-red-30)}._variant-success_srf8a_140{--select-border-color: var(--color-green-60);--select-outline-color: var(--color-green-30)}._variant-warning_srf8a_144{--select-border-color: var(--color-orange-60);--select-outline-color: var(--color-orange-20)}._size-lg_srf8a_148{--select-height: var(--height-48);--select-padding-bottom: var(--spacing-16);--select-padding-left: var(--spacing-12);--select-padding-right: var(--spacing-12);--select-padding-top: var(--spacing-16)}._size-md_srf8a_155{--select-height: var(--height-40);--select-padding-bottom: var(--spacing-12);--select-padding-left: var(--spacing-12);--select-padding-right: var(--spacing-12);--select-padding-top: var(--spacing-12)}._size-sm_srf8a_162{--select-height: var(--height-32);--select-padding-bottom: var(--spacing-8);--select-padding-left: var(--spacing-12);--select-padding-right: var(--spacing-12);--select-padding-top: var(--spacing-8)}._size-xs_srf8a_11{--select-height: var(--height-24);--select-padding-bottom: var(--spacing-4);--select-padding-left: var(--spacing-8);--select-padding-right: var(--spacing-8);--select-padding-top: var(--spacing-4);--select-icon-size: .75rem}._icon-wrapper_srf8a_177{position:absolute;top:0;left:var(--icon-placement-left, auto);right:var(--icon-placement-right, auto);bottom:0;display:flex;justify-content:center;align-items:center;pointer-events:none;transition-property:all;transition-timing-function:var(--timing-primary);transition-duration:var(--duration-medium);color:var(--color-neutral-90)}._icon-wrapper_srf8a_177._icon-placement-left_srf8a_80{--icon-placement-left: var(--spacing-md)}._icon-wrapper_srf8a_177._icon-placement-left_srf8a_80._size-xs_srf8a_11{--icon-placement-left: var(--spacing-sm)}._icon-wrapper_srf8a_177._icon-placement-right_srf8a_45{--icon-placement-right: var(--spacing-md)}._icon-wrapper_srf8a_177._icon-placement-right_srf8a_45._size-xs_srf8a_11{--icon-placement-right: var(--spacing-sm)}._icon-wrapper_srf8a_177>button{pointer-events:auto}._wrapper_srf8a_208{position:relative;width:100%}._wrapper_srf8a_208._disabled_srf8a_89{pointer-events:none}._wrapper_srf8a_208._disabled_srf8a_89 ._icon-wrapper_srf8a_177{color:var(--color-beige-60)}._wrapper_srf8a_208._disabled_srf8a_89 ._root_srf8a_49{--select-background-color: var(--color-beige-30);--select-text-color: var(--color-beige-60);cursor:not-allowed}._menu_srf8a_223{max-height:9.6875rem;background-color:var(--color-neutral-10);border-color:var(--color-neutral-30);border-radius:var(--radius-md);border-style:solid;border-width:var(--border-width-sm);color:var(--color-neutral-90);font-size:var(--font-size-sm);font-weight:var(--font-weight-regular);line-height:var(--line-height-16);outline:none;position:absolute;z-index:2;right:0;left:0;margin:0;margin-top:var(--spacing-md);padding:0;transition-property:all;transition-timing-function:var(--timing-primary);transition-duration:var(--duration-medium);overflow:auto;-webkit-overflow-scrolling:touch}._menu_srf8a_223:hover>*{cursor:pointer}._wrapper_srf8a_208._disabled_srf8a_89 ._menu_srf8a_223,._wrapper_srf8a_208[aria-disabled=true] ._menu_srf8a_223{pointer-events:none}._item_srf8a_255{color:var(--item-text-color, var(--color-beige-70));cursor:var(--item-cursor, default);padding:var(--spacing-md);list-style:none;text-decoration:none;font-size:var(--font-size-sm);transition-property:background;transition-duration:var(--duration-medium);transition-timing-function:var(--timing-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._item_srf8a_255._highlighted_srf8a_269{background-color:var(--color-beige-20)}._item_srf8a_255._selected_srf8a_272:not(._multiple_srf8a_272){--item-text-color: var(--color-neutral-90);font-weight:var(--font-weight-bold)}._item_srf8a_255._selected_srf8a_272._multiple_srf8a_272:not(._allowUnselectFromList_srf8a_276){--item-text-color: var(--color-beige-40);--item-cursor: not-allowed}._item_srf8a_255._disabled_srf8a_89{--item-text-color: var(--color-beige-60);--item-cursor: not-allowed}._tags_srf8a_284{margin-top:var(--spacing-lg)}._tags_srf8a_284 ._styled-tag_srf8a_287:not(:last-child){margin-right:var(--spacing-sm);margin-bottom:var(--spacing-sm)}._tags_srf8a_284:empty{display:none}}
1
+ @layer components{._indicators_yx7jd_2{position:absolute;padding:0;top:0;height:var(--select-height, 100%);right:var(--indicators-right, var(--spacing-md));display:flex;gap:var(--spacing-xs)}._indicators_yx7jd_2._size-xs_yx7jd_11{--indicators-right: var(--spacing-sm)}._dropdown-indicator_yx7jd_14{position:relative;height:100%;padding:0;outline:none!important;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;border:none;background:transparent;display:flex;align-items:center;justify-content:center}._dropdown-indicator_yx7jd_14 ._styled-icon_yx7jd_27{transform:none;transition-property:transform;transition-duration:var(--duration-medium);transition-timing-function:var(--timing-primary)}._dropdown-indicator_yx7jd_14._open_yx7jd_33 ._styled-icon_yx7jd_27{transform:rotate3d(0,0,1,180deg)}._dropdown-indicator_yx7jd_14:not(:last-child){width:auto}._dropdown-indicator_yx7jd_14:disabled{color:var(--color-beige-60)}._input-wrapper_yx7jd_42{position:relative}._input-wrapper_yx7jd_42:has(>._icon-placement-right_yx7jd_45) ._indicators_yx7jd_2{--indicators-right: calc(var(--spacing-lg) + var(--spacing-md) * 2)}._root_yx7jd_49{--select-placeholder-color: var(--color-neutral-60);background-color:var(--select-background-color, var(--color-neutral-10));border-color:var(--select-border-color, var(--color-neutral-30));border-radius:var(--radius-md);border-style:solid;border-width:var(--border-width-sm);color:var(--select-text-color, var(--color-neutral-90));font-size:var(--font-size-sm);font-weight:var(--font-weight-regular);line-height:var(--line-height-16);outline:2px solid var(--select-outline-color, transparent);cursor:default;width:100%;transition-property:all;transition-timing-function:var(--timing-primary);transition-duration:var(--duration-medium);height:var(--select-height);padding-bottom:var(--select-padding-bottom);padding-left:var(--select-padding-left);padding-right:var(--select-padding-right);padding-top:var(--select-padding-top);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._root_yx7jd_49._icon-placement-left_yx7jd_80,._root_yx7jd_49._icon-placement-both_yx7jd_80{padding-left:calc(var(--select-padding-left) + var(--select-icon-size, 1rem) + var(--spacing-sm))}._root_yx7jd_49._clearable_yx7jd_83,._root_yx7jd_49._icon-placement-right_yx7jd_45,._root_yx7jd_49._icon-placement-both_yx7jd_80{padding-right:calc(var(--select-padding-right) + var(--select-icon-size, 1rem) + var(--spacing-sm))}._root_yx7jd_49._clearable_yx7jd_83._icon-placement-right_yx7jd_45,._root_yx7jd_49._clearable_yx7jd_83._icon-placement-both_yx7jd_80{padding-right:calc(var(--select-padding-right) + (var(--select-icon-size, 1rem) + var(--spacing-sm)) * 2)}._root_yx7jd_49:disabled,._root_yx7jd_49._disabled_yx7jd_89{--select-background-color: var(--color-beige-30);--select-text-color: var(--color-beige-60);cursor:not-allowed}._root_yx7jd_49:hover:not([class*=variant]){--select-border-color: var(--color-brand-40)}._root_yx7jd_49:focus:not([class*=variant]){--select-outline-color: var(--color-brand-20);--select-border-color: var(--color-brand-40)}._root_yx7jd_49._transparent_yx7jd_101{--select-border-color: transparent;--select-background-color: transparent}._root_yx7jd_49._transparent_yx7jd_101:hover{--select-border-color: var(--color-neutral-20)}._root_yx7jd_49::placeholder{color:var(--select-placeholder-color)}._root_yx7jd_49 br{display:none}._root_yx7jd_49:before{content:attr(data-spacer);visibility:hidden;display:block;height:0}._root_yx7jd_49:empty:after{content:attr(placeholder);position:absolute;top:0;right:0;bottom:0;left:0;padding:inherit;color:var(--select-placeholder-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._root_yx7jd_49:empty:before{height:auto}._variant-danger_yx7jd_136{--select-border-color: var(--color-red-70);--select-outline-color: var(--color-red-30)}._variant-success_yx7jd_140{--select-border-color: var(--color-green-60);--select-outline-color: var(--color-green-30)}._variant-warning_yx7jd_144{--select-border-color: var(--color-orange-60);--select-outline-color: var(--color-orange-20)}._size-lg_yx7jd_148{--select-height: var(--height-48);--select-padding-bottom: var(--spacing-16);--select-padding-left: var(--spacing-12);--select-padding-right: var(--spacing-12);--select-padding-top: var(--spacing-16)}._size-md_yx7jd_155{--select-height: var(--height-40);--select-padding-bottom: var(--spacing-12);--select-padding-left: var(--spacing-12);--select-padding-right: var(--spacing-12);--select-padding-top: var(--spacing-12)}._size-sm_yx7jd_162{--select-height: var(--height-32);--select-padding-bottom: var(--spacing-8);--select-padding-left: var(--spacing-12);--select-padding-right: var(--spacing-12);--select-padding-top: var(--spacing-8)}._size-xs_yx7jd_11{--select-height: var(--height-24);--select-padding-bottom: var(--spacing-4);--select-padding-left: var(--spacing-8);--select-padding-right: var(--spacing-8);--select-padding-top: var(--spacing-4);--select-icon-size: .75rem}._icon-wrapper_yx7jd_177{position:absolute;top:0;left:var(--icon-placement-left, auto);right:var(--icon-placement-right, auto);bottom:0;display:flex;justify-content:center;align-items:center;pointer-events:none;transition-property:all;transition-timing-function:var(--timing-primary);transition-duration:var(--duration-medium);color:var(--color-neutral-90);height:var(--select-height, 100%)}._icon-wrapper_yx7jd_177._icon-placement-left_yx7jd_80{--icon-placement-left: var(--spacing-md)}._icon-wrapper_yx7jd_177._icon-placement-left_yx7jd_80._size-xs_yx7jd_11{--icon-placement-left: var(--spacing-sm)}._icon-wrapper_yx7jd_177._icon-placement-right_yx7jd_45{--icon-placement-right: var(--spacing-md)}._icon-wrapper_yx7jd_177._icon-placement-right_yx7jd_45._size-xs_yx7jd_11{--icon-placement-right: var(--spacing-sm)}._icon-wrapper_yx7jd_177>button{pointer-events:auto}._wrapper_yx7jd_209{position:relative;width:100%}._wrapper_yx7jd_209._disabled_yx7jd_89{pointer-events:none}._wrapper_yx7jd_209._disabled_yx7jd_89 ._icon-wrapper_yx7jd_177{color:var(--color-beige-60)}._wrapper_yx7jd_209._disabled_yx7jd_89 ._root_yx7jd_49{--select-background-color: var(--color-beige-30);--select-text-color: var(--color-beige-60);cursor:not-allowed}._menu_yx7jd_224{max-height:9.6875rem;background-color:var(--color-neutral-10);border-color:var(--color-neutral-30);border-radius:var(--radius-md);border-style:solid;border-width:var(--border-width-sm);color:var(--color-neutral-90);font-size:var(--font-size-sm);font-weight:var(--font-weight-regular);line-height:var(--line-height-16);outline:none;position:absolute;z-index:2;right:0;left:0;margin:0;margin-top:var(--spacing-md);padding:0;transition-property:all;transition-timing-function:var(--timing-primary);transition-duration:var(--duration-medium);overflow:auto;-webkit-overflow-scrolling:touch}._menu_yx7jd_224:hover>*{cursor:pointer}._wrapper_yx7jd_209._disabled_yx7jd_89 ._menu_yx7jd_224,._wrapper_yx7jd_209[aria-disabled=true] ._menu_yx7jd_224{pointer-events:none}._item_yx7jd_256{color:var(--item-text-color, var(--color-beige-70));cursor:var(--item-cursor, default);padding:var(--spacing-md);list-style:none;text-decoration:none;font-size:var(--font-size-sm);transition-property:background;transition-duration:var(--duration-medium);transition-timing-function:var(--timing-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._item_yx7jd_256._highlighted_yx7jd_270{background-color:var(--color-beige-20)}._item_yx7jd_256._selected_yx7jd_273:not(._multiple_yx7jd_273){--item-text-color: var(--color-neutral-90);font-weight:var(--font-weight-bold)}._item_yx7jd_256._selected_yx7jd_273._multiple_yx7jd_273:not(._allowUnselectFromList_yx7jd_277){--item-text-color: var(--color-beige-40);--item-cursor: not-allowed}._item_yx7jd_256._disabled_yx7jd_89{--item-text-color: var(--color-beige-60);--item-cursor: not-allowed}._tags_yx7jd_285{margin-top:var(--spacing-lg)}._tags_yx7jd_285 ._styled-tag_yx7jd_288:not(:last-child){margin-right:var(--spacing-sm);margin-bottom:var(--spacing-sm)}._tags_yx7jd_285:empty{display:none}}
package/dist/Select.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { jsx as v, jsxs as K } from "react/jsx-runtime";
2
+ import { jsx as I, jsxs as K } from "react/jsx-runtime";
3
3
  import { D as _e, F as Ke } from "./field-icon-size-Cj-yrCqM.js";
4
- import { g as $e, c as ye } from "./index-PAaZGbyz.js";
4
+ import { g as $e, c as Ee } from "./index-PAaZGbyz.js";
5
5
  import Ye, { forwardRef as Be, useMemo as Ze, useState as $, useEffect as he, useCallback as Xe, Fragment as Qe } from "react";
6
6
  import { CloseButton as qe } from "./CloseButton.js";
7
7
  import { useField as Ge } from "./Field.js";
@@ -10,9 +10,9 @@ import { D as Je } from "./index-CTgip19b.js";
10
10
  import { c as en } from "./create-event-rXDe5aCQ.js";
11
11
  import { u as nn } from "./useForkRef-D807AV7D.js";
12
12
  import { Tag as tn } from "./Tag.js";
13
- var H = { exports: {} }, pe;
13
+ var T = { exports: {} }, pe;
14
14
  function rn() {
15
- if (pe) return H.exports;
15
+ if (pe) return T.exports;
16
16
  pe = 1;
17
17
  var e = {
18
18
  À: "A",
@@ -475,25 +475,25 @@ function rn() {
475
475
  ё: "е",
476
476
  Ё: "Е"
477
477
  }, n = Object.keys(e).join("|"), t = new RegExp(n, "g"), r = new RegExp(n, "");
478
- function a(c) {
478
+ function o(c) {
479
479
  return e[c];
480
480
  }
481
481
  var i = function(c) {
482
- return c.replace(t, a);
482
+ return c.replace(t, o);
483
483
  }, s = function(c) {
484
484
  return !!c.match(r);
485
485
  };
486
- return H.exports = i, H.exports.has = s, H.exports.remove = i, H.exports;
486
+ return T.exports = i, T.exports.has = s, T.exports.remove = i, T.exports;
487
487
  }
488
488
  var sn = rn();
489
- const an = /* @__PURE__ */ $e(sn);
489
+ const on = /* @__PURE__ */ $e(sn);
490
490
  /**
491
491
  * @name match-sorter
492
492
  * @license MIT license.
493
493
  * @copyright (c) 2020 Kent C. Dodds
494
494
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
495
495
  */
496
- const g = {
496
+ const y = {
497
497
  CASE_SENSITIVE_EQUAL: 7,
498
498
  EQUAL: 6,
499
499
  STARTS_WITH: 5,
@@ -502,34 +502,34 @@ const g = {
502
502
  ACRONYM: 2,
503
503
  MATCHES: 1,
504
504
  NO_MATCH: 0
505
- }, on = (e, n) => String(e.rankedValue).localeCompare(String(n.rankedValue));
505
+ }, an = (e, n) => String(e.rankedValue).localeCompare(String(n.rankedValue));
506
506
  function G(e, n, t) {
507
507
  t === void 0 && (t = {});
508
508
  const {
509
509
  keys: r,
510
- threshold: a = g.MATCHES,
511
- baseSort: i = on,
512
- sorter: s = (f) => f.sort((u, _) => fn(u, _, i))
510
+ threshold: o = y.MATCHES,
511
+ baseSort: i = an,
512
+ sorter: s = (d) => d.sort((u, _) => dn(u, _, i))
513
513
  } = t, c = e.reduce(l, []);
514
- return s(c).map((f) => {
514
+ return s(c).map((d) => {
515
515
  let {
516
516
  item: u
517
- } = f;
517
+ } = d;
518
518
  return u;
519
519
  });
520
- function l(f, u, _) {
521
- const E = cn(u, r, n, t), {
520
+ function l(d, u, _) {
521
+ const x = cn(u, r, n, t), {
522
522
  rank: p,
523
- keyThreshold: d = a
524
- } = E;
525
- return p >= d && f.push({
526
- ...E,
523
+ keyThreshold: m = o
524
+ } = x;
525
+ return p >= m && d.push({
526
+ ...x,
527
527
  item: u,
528
528
  index: _
529
- }), f;
529
+ }), d;
530
530
  }
531
531
  }
532
- G.rankings = g;
532
+ G.rankings = y;
533
533
  function cn(e, n, t, r) {
534
534
  if (!n) {
535
535
  const i = e;
@@ -544,33 +544,33 @@ function cn(e, n, t, r) {
544
544
  return _n(e, n).reduce((i, s, c) => {
545
545
  let {
546
546
  rank: l,
547
- rankedValue: f,
547
+ rankedValue: d,
548
548
  keyIndex: u,
549
549
  keyThreshold: _
550
550
  } = i, {
551
- itemValue: E,
551
+ itemValue: x,
552
552
  attributes: p
553
- } = s, d = Ae(E, t, r), U = f;
553
+ } = s, m = Ae(x, t, r), k = d;
554
554
  const {
555
- minRanking: D,
556
- maxRanking: S,
557
- threshold: V
555
+ minRanking: H,
556
+ maxRanking: R,
557
+ threshold: U
558
558
  } = p;
559
- return d < D && d >= g.MATCHES ? d = D : d > S && (d = S), d > l && (l = d, u = c, _ = V, U = E), {
560
- rankedValue: U,
559
+ return m < H && m >= y.MATCHES ? m = H : m > R && (m = R), m > l && (l = m, u = c, _ = U, k = x), {
560
+ rankedValue: k,
561
561
  rank: l,
562
562
  keyIndex: u,
563
563
  keyThreshold: _
564
564
  };
565
565
  }, {
566
566
  rankedValue: e,
567
- rank: g.NO_MATCH,
567
+ rank: y.NO_MATCH,
568
568
  keyIndex: -1,
569
569
  keyThreshold: r.threshold
570
570
  });
571
571
  }
572
572
  function Ae(e, n, t) {
573
- return e = ge(e, t), n = ge(n, t), n.length > e.length ? g.NO_MATCH : e === n ? g.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), n = n.toLowerCase(), e === n ? g.EQUAL : e.startsWith(n) ? g.STARTS_WITH : e.includes(` ${n}`) ? g.WORD_STARTS_WITH : e.includes(n) ? g.CONTAINS : n.length === 1 ? g.NO_MATCH : ln(e).includes(n) ? g.ACRONYM : un(e, n));
573
+ return e = ye(e, t), n = ye(n, t), n.length > e.length ? y.NO_MATCH : e === n ? y.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), n = n.toLowerCase(), e === n ? y.EQUAL : e.startsWith(n) ? y.STARTS_WITH : e.includes(` ${n}`) ? y.WORD_STARTS_WITH : e.includes(n) ? y.CONTAINS : n.length === 1 ? y.NO_MATCH : ln(e).includes(n) ? y.ACRONYM : un(e, n));
574
574
  }
575
575
  function ln(e) {
576
576
  let n = "";
@@ -582,29 +582,29 @@ function ln(e) {
582
582
  }
583
583
  function un(e, n) {
584
584
  let t = 0, r = 0;
585
- function a(l, f, u) {
586
- for (let _ = u, E = f.length; _ < E; _++)
587
- if (f[_] === l)
585
+ function o(l, d, u) {
586
+ for (let _ = u, x = d.length; _ < x; _++)
587
+ if (d[_] === l)
588
588
  return t += 1, _ + 1;
589
589
  return -1;
590
590
  }
591
591
  function i(l) {
592
- const f = 1 / l, u = t / n.length;
593
- return g.MATCHES + u * f;
592
+ const d = 1 / l, u = t / n.length;
593
+ return y.MATCHES + u * d;
594
594
  }
595
- const s = a(n[0], e, 0);
595
+ const s = o(n[0], e, 0);
596
596
  if (s < 0)
597
- return g.NO_MATCH;
597
+ return y.NO_MATCH;
598
598
  r = s;
599
- for (let l = 1, f = n.length; l < f; l++) {
599
+ for (let l = 1, d = n.length; l < d; l++) {
600
600
  const u = n[l];
601
- if (r = a(u, e, r), !(r > -1))
602
- return g.NO_MATCH;
601
+ if (r = o(u, e, r), !(r > -1))
602
+ return y.NO_MATCH;
603
603
  }
604
604
  const c = r - s;
605
605
  return i(c);
606
606
  }
607
- function fn(e, n, t) {
607
+ function dn(e, n, t) {
608
608
  const {
609
609
  rank: i,
610
610
  keyIndex: s
@@ -614,13 +614,13 @@ function fn(e, n, t) {
614
614
  } = n;
615
615
  return i === c ? s === l ? t(e, n) : s < l ? -1 : 1 : i > c ? -1 : 1;
616
616
  }
617
- function ge(e, n) {
617
+ function ye(e, n) {
618
618
  let {
619
619
  keepDiacritics: t
620
620
  } = n;
621
- return e = `${e}`, t || (e = an(e)), e;
621
+ return e = `${e}`, t || (e = on(e)), e;
622
622
  }
623
- function mn(e, n) {
623
+ function fn(e, n) {
624
624
  typeof n == "object" && (n = n.key);
625
625
  let t;
626
626
  if (typeof n == "function")
@@ -631,18 +631,18 @@ function mn(e, n) {
631
631
  t = e[n];
632
632
  else {
633
633
  if (n.includes("."))
634
- return dn(n, e);
634
+ return mn(n, e);
635
635
  t = null;
636
636
  }
637
637
  return t == null ? [] : Array.isArray(t) ? t : [String(t)];
638
638
  }
639
- function dn(e, n) {
639
+ function mn(e, n) {
640
640
  const t = e.split(".");
641
641
  let r = [n];
642
- for (let a = 0, i = t.length; a < i; a++) {
643
- const s = t[a];
642
+ for (let o = 0, i = t.length; o < i; o++) {
643
+ const s = t[o];
644
644
  let c = [];
645
- for (let l = 0, f = r.length; l < f; l++) {
645
+ for (let l = 0, d = r.length; l < d; l++) {
646
646
  const u = r[l];
647
647
  if (u != null)
648
648
  if (Object.hasOwnProperty.call(u, s)) {
@@ -656,9 +656,9 @@ function dn(e, n) {
656
656
  }
657
657
  function _n(e, n) {
658
658
  const t = [];
659
- for (let r = 0, a = n.length; r < a; r++) {
660
- const i = n[r], s = hn(i), c = mn(e, i);
661
- for (let l = 0, f = c.length; l < f; l++)
659
+ for (let r = 0, o = n.length; r < o; r++) {
660
+ const i = n[r], s = hn(i), c = fn(e, i);
661
+ for (let l = 0, d = c.length; l < d; l++)
662
662
  t.push({
663
663
  itemValue: c[l],
664
664
  attributes: s
@@ -666,54 +666,54 @@ function _n(e, n) {
666
666
  }
667
667
  return t;
668
668
  }
669
- const Ie = {
669
+ const ge = {
670
670
  maxRanking: 1 / 0,
671
671
  minRanking: -1 / 0
672
672
  };
673
673
  function hn(e) {
674
- return typeof e == "string" ? Ie : {
675
- ...Ie,
674
+ return typeof e == "string" ? ge : {
675
+ ...ge,
676
676
  ...e
677
677
  };
678
678
  }
679
- const pn = "_indicators_srf8a_2", An = "_open_srf8a_33", gn = "_root_srf8a_49", In = "_clearable_srf8a_83", vn = "_disabled_srf8a_89", En = "_transparent_srf8a_101", On = "_wrapper_srf8a_208", yn = "_menu_srf8a_223", wn = "_item_srf8a_255", Cn = "_highlighted_srf8a_269", xn = "_selected_srf8a_272", Nn = "_multiple_srf8a_272", Rn = "_allowUnselectFromList_srf8a_276", Sn = "_tags_srf8a_284", we = {
679
+ const pn = "_indicators_yx7jd_2", An = "_open_yx7jd_33", yn = "_root_yx7jd_49", gn = "_clearable_yx7jd_83", In = "_disabled_yx7jd_89", xn = "_transparent_yx7jd_101", vn = "_wrapper_yx7jd_209", En = "_menu_yx7jd_224", On = "_item_yx7jd_256", wn = "_highlighted_yx7jd_270", jn = "_selected_yx7jd_273", Cn = "_multiple_yx7jd_273", Nn = "_allowUnselectFromList_yx7jd_277", Rn = "_tags_yx7jd_285", Oe = {
680
680
  indicators: pn,
681
- "size-xs": "_size-xs_srf8a_11",
682
- "dropdown-indicator": "_dropdown-indicator_srf8a_14",
683
- "styled-icon": "_styled-icon_srf8a_27",
681
+ "size-xs": "_size-xs_yx7jd_11",
682
+ "dropdown-indicator": "_dropdown-indicator_yx7jd_14",
683
+ "styled-icon": "_styled-icon_yx7jd_27",
684
684
  open: An,
685
- "input-wrapper": "_input-wrapper_srf8a_42",
686
- "icon-placement-right": "_icon-placement-right_srf8a_45",
687
- root: gn,
688
- "icon-placement-left": "_icon-placement-left_srf8a_80",
689
- "icon-placement-both": "_icon-placement-both_srf8a_80",
690
- clearable: In,
691
- disabled: vn,
692
- transparent: En,
693
- "variant-danger": "_variant-danger_srf8a_136",
694
- "variant-success": "_variant-success_srf8a_140",
695
- "variant-warning": "_variant-warning_srf8a_144",
696
- "size-lg": "_size-lg_srf8a_148",
697
- "size-md": "_size-md_srf8a_155",
698
- "size-sm": "_size-sm_srf8a_162",
699
- "icon-wrapper": "_icon-wrapper_srf8a_177",
700
- wrapper: On,
701
- menu: yn,
702
- item: wn,
703
- highlighted: Cn,
704
- selected: xn,
705
- multiple: Nn,
706
- allowUnselectFromList: Rn,
707
- tags: Sn,
708
- "styled-tag": "_styled-tag_srf8a_287"
709
- }, ve = ye(we);
710
- function kn(e, n) {
711
- return /* @__PURE__ */ v("div", { className: ve("tags"), role: "list", children: e.map((t) => (
685
+ "input-wrapper": "_input-wrapper_yx7jd_42",
686
+ "icon-placement-right": "_icon-placement-right_yx7jd_45",
687
+ root: yn,
688
+ "icon-placement-left": "_icon-placement-left_yx7jd_80",
689
+ "icon-placement-both": "_icon-placement-both_yx7jd_80",
690
+ clearable: gn,
691
+ disabled: In,
692
+ transparent: xn,
693
+ "variant-danger": "_variant-danger_yx7jd_136",
694
+ "variant-success": "_variant-success_yx7jd_140",
695
+ "variant-warning": "_variant-warning_yx7jd_144",
696
+ "size-lg": "_size-lg_yx7jd_148",
697
+ "size-md": "_size-md_yx7jd_155",
698
+ "size-sm": "_size-sm_yx7jd_162",
699
+ "icon-wrapper": "_icon-wrapper_yx7jd_177",
700
+ wrapper: vn,
701
+ menu: En,
702
+ item: On,
703
+ highlighted: wn,
704
+ selected: jn,
705
+ multiple: Cn,
706
+ allowUnselectFromList: Nn,
707
+ tags: Rn,
708
+ "styled-tag": "_styled-tag_yx7jd_288"
709
+ }, Ie = Ee(Oe);
710
+ function Sn(e, n) {
711
+ return /* @__PURE__ */ I("div", { className: Ie("tags"), role: "list", children: e.map((t) => (
712
712
  // TODO migrate after WUI-187/tag
713
- /* @__PURE__ */ v(
713
+ /* @__PURE__ */ I(
714
714
  tn,
715
715
  {
716
- className: ve("styled-tag"),
716
+ className: Ie("styled-tag"),
717
717
  onRemove: () => n(t.value.toString()),
718
718
  role: "listitem",
719
719
  children: t.label
@@ -722,297 +722,297 @@ function kn(e, n) {
722
722
  )
723
723
  )) });
724
724
  }
725
- const ee = "", Un = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g, Ce = (e) => {
725
+ const ee = "", kn = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g, we = (e) => {
726
726
  if (typeof e == "number")
727
727
  return String(e);
728
728
  if (typeof e == "string") {
729
- const n = e.match(Un);
729
+ const n = e.match(kn);
730
730
  return n && n.map((t) => t.toLowerCase()).join("-");
731
731
  }
732
- }, Ee = (e) => e ? e.label : ee, Vn = (e) => e.reduce(
732
+ }, xe = (e) => e ? e.label : ee, Un = (e) => e.reduce(
733
733
  (n, t) => t.label && n.length > t.label.length ? n : t.label,
734
734
  ee
735
- ), bn = (e, n, t) => {
736
- const r = n.find((a) => e.value === a.value);
737
- return r && t ? n.filter((a) => e.value !== a.value) : r ? n : [...n, e];
735
+ ), Vn = (e, n, t) => {
736
+ const r = n.find((o) => e.value === o.value);
737
+ return r && t ? n.filter((o) => e.value !== o.value) : r ? n : [...n, e];
738
738
  }, q = (e, n) => !!n.find((t) => t.value === e), J = (e, n = []) => n.find(
739
739
  (r) => r.label === (e.label || e) || r.value === (e.value || e)
740
- ) || { label: e, value: Ce(e) }, Tn = (e, n, t = !1) => {
741
- const r = t ? n.flatMap((a) => a.options) : n;
742
- return !e && e !== 0 ? [] : Array.isArray(e) ? e.map((a) => J(a, r)) : [J(e, r)];
743
- }, Hn = (e, n) => !!n.find((t) => t.value === e.value), Dn = (e, n) => Hn(e, n) ? e.value : e.label, Oe = (e, n) => e ? e.map((t) => Dn(t, n)) : [], Fn = (e, n) => e ? e.filter(
740
+ ) || { label: e, value: we(e) }, bn = (e, n, t = !1) => {
741
+ const r = t ? n.flatMap((o) => o.options) : n;
742
+ return !e && e !== 0 ? [] : Array.isArray(e) ? e.map((o) => J(o, r)) : [J(e, r)];
743
+ }, Tn = (e, n) => !!n.find((t) => t.value === e.value), Hn = (e, n) => Tn(e, n) ? e.value : e.label, ve = (e, n) => e ? e.map((t) => Hn(t, n)) : [], Dn = (e, n) => e ? e.filter(
744
744
  (t) => !n.find((r) => r.value === t.value)
745
- ) : [], zn = ({
745
+ ) : [], Fn = ({
746
746
  inputValue: e,
747
747
  isMultiple: n,
748
748
  isSearchable: t,
749
749
  options: r,
750
- renderItem: a
750
+ renderItem: o
751
751
  }) => {
752
752
  const i = J(e, r);
753
- return n ? e : i.label ? t ? i.label : a(i) : ee;
754
- }, w = ye(we), Mn = _e.default || _e, qn = Be(
753
+ return n ? e : i.label ? t ? i.label : o(i) : ee;
754
+ }, O = Ee(Oe), zn = _e.default || _e, qn = Be(
755
755
  ({
756
756
  allowUnselectFromList: e,
757
757
  autoComplete: n = "off",
758
758
  autoFocus: t,
759
759
  className: r,
760
- dataTestId: a,
760
+ dataTestId: o,
761
761
  disableCloseOnSelect: i,
762
762
  disabled: s,
763
763
  groupsEnabled: c,
764
764
  icon: l,
765
- iconPlacement: f = "left",
765
+ iconPlacement: d = "left",
766
766
  id: u,
767
767
  isClearable: _,
768
- isCreatable: E,
768
+ isCreatable: x,
769
769
  isMultiple: p,
770
- isSearchable: d,
771
- name: U,
772
- onBlur: D,
773
- onChange: S,
774
- onClick: V,
770
+ isSearchable: m,
771
+ name: k,
772
+ onBlur: H,
773
+ onChange: R,
774
+ onClick: U,
775
775
  onCreate: Y,
776
- onFocus: xe,
777
- options: I = [],
776
+ onFocus: je,
777
+ options: g = [],
778
778
  placeholder: ne = "Choose from…",
779
- renderCreateItem: Ne = (z) => `Create "${z}"`,
779
+ renderCreateItem: Ce = (F) => `Create "${F}"`,
780
780
  renderGroupHeader: te,
781
- renderItem: F = Ee,
782
- renderMultiple: Re = kn,
783
- size: b = "md",
781
+ renderItem: D = xe,
782
+ renderMultiple: Ne = Sn,
783
+ size: V = "md",
784
784
  transparent: re,
785
785
  value: se,
786
- variant: ae,
787
- ...oe
788
- }, Se) => {
789
- const { getInputProps: z, variant: ke } = Ge(), ce = ke || ae, M = Ze(
790
- () => Tn(se, I, c),
791
- [se, I, c]
792
- ), B = !p && M[0] || null, Z = B ? B.label : "", [x, X] = $(M), [C, T] = $(Z), [j, W] = $(I), [N, k] = $(!1);
793
- d = E || d;
794
- const [Q, Ue] = nn(Se);
786
+ variant: oe,
787
+ ...ae
788
+ }, Re) => {
789
+ const { getInputProps: F, variant: Se } = Ge(), ce = Se || oe, z = Ze(
790
+ () => bn(se, g, c),
791
+ [se, g, c]
792
+ ), B = !p && z[0] || null, Z = B ? B.label : "", [j, X] = $(z), [w, b] = $(Z), [M, W] = $(g), [C, S] = $(!1);
793
+ m = x || m;
794
+ const [Q, ke] = nn(Re);
795
795
  he(() => {
796
- t && Q.current && !s && (Q.current.focus(), d && k(!0));
797
- }, [d, t, Q, s]), he(() => {
798
- X(M), T(Z), W(I);
799
- }, [Z, I, M]);
800
- const Ve = (o) => {
801
- if (d && o !== C) {
802
- let m = [];
803
- c ? m = G(I, o, {
796
+ t && Q.current && !s && (Q.current.focus(), m && S(!0));
797
+ }, [m, t, Q, s]), he(() => {
798
+ X(z), b(Z), W(g);
799
+ }, [Z, g, z]);
800
+ const Ue = (a) => {
801
+ if (m && a !== w) {
802
+ let f = [];
803
+ c ? f = G(g, a, {
804
804
  // should match on group.label OR group.options.label
805
- keys: [(A) => A.label, (A) => A.options.map((O) => O.label)]
806
- }) : m = G(I, o, { keys: ["label"] }), T(o), W(m);
805
+ keys: [(A) => A.label, (A) => A.options.map((v) => v.label)]
806
+ }) : f = G(g, a, { keys: ["label"] }), b(a), W(f);
807
807
  }
808
- }, be = () => {
809
- s || d && !N && k(!0);
810
- }, le = (o) => {
811
- let m = [];
812
- c ? m = Oe(
813
- o,
814
- I.flatMap((h) => h.options)
815
- ) : m = Oe(o, I);
816
- const A = p ? m : m[0], O = en({ name: U, value: p ? o : o[0] });
817
- if (S == null || S(A, O), E) {
818
- const h = Fn(o, I);
819
- h.length && (Y == null || Y(h[0].label, O));
808
+ }, Ve = () => {
809
+ s || m && !C && S(!0);
810
+ }, le = (a) => {
811
+ let f = [];
812
+ c ? f = ve(
813
+ a,
814
+ g.flatMap((h) => h.options)
815
+ ) : f = ve(a, g);
816
+ const A = p ? f : f[0], v = en({ name: k, value: p ? a : a[0] });
817
+ if (R == null || R(A, v), x) {
818
+ const h = Dn(a, g);
819
+ h.length && (Y == null || Y(h[0].label, v));
820
820
  }
821
- }, Te = (o) => {
821
+ }, be = (a) => {
822
822
  if (s) return;
823
- let m, A;
824
- !o || o != null && o.disabled ? (m = p ? x : [], A = !0) : (m = p ? bn(o, x, e) : [o], A = p), A && T(""), W(I), X(m), le(m), i || k(!1);
825
- }, He = (o) => {
826
- const m = x.filter((A) => A.value !== o);
827
- X(m), le(m);
828
- }, De = (o) => {
829
- s || (V == null || V(o), k(!N));
830
- }, Fe = (o) => {
831
- s || (p && o.selectedItem ? T("") : d && o.selectedItem && T(o.selectedItem.label), W(I), k(!1));
832
- }, ze = Vn(I), ie = zn({
833
- inputValue: C,
823
+ let f, A;
824
+ !a || a != null && a.disabled ? (f = p ? j : [], A = !0) : (f = p ? Vn(a, j, e) : [a], A = p), A && b(""), W(g), X(f), le(f), i || S(!1);
825
+ }, Te = (a) => {
826
+ const f = j.filter((A) => A.value !== a);
827
+ X(f), le(f);
828
+ }, He = (a) => {
829
+ s || (U == null || U(a), S(!C));
830
+ }, De = (a) => {
831
+ s || (p && a.selectedItem ? b("") : m && a.selectedItem && b(a.selectedItem.label), W(g), S(!1));
832
+ }, Fe = Un(g), ie = Fn({
833
+ inputValue: w,
834
834
  isMultiple: p,
835
- isSearchable: d,
836
- options: I,
837
- renderItem: F
838
- }), Me = Xe(
835
+ isSearchable: m,
836
+ options: g,
837
+ renderItem: D
838
+ }), ze = Xe(
839
839
  ({
840
- getItemProps: o,
841
- highlightedIndex: m,
840
+ getItemProps: a,
841
+ highlightedIndex: f,
842
842
  options: A
843
843
  }) => A.reduce(
844
- (O, h, L) => {
844
+ (v, h, L) => {
845
845
  if (c && "options" in h)
846
- O.itemsToRender.push(
846
+ v.itemsToRender.push(
847
847
  /* @__PURE__ */ K(Qe, { children: [
848
848
  te(h),
849
- h.options ? h.options.map((y) => {
850
- const R = O.itemIndex++, P = q(y.value, x);
851
- return /* @__PURE__ */ v(
849
+ h.options ? h.options.map((E) => {
850
+ const N = v.itemIndex++, P = q(E.value, j);
851
+ return /* @__PURE__ */ I(
852
852
  "li",
853
853
  {
854
- className: w(
854
+ className: O(
855
855
  "item",
856
- m === R && "highlighted",
856
+ f === N && "highlighted",
857
857
  p && "multiple",
858
858
  e && "allowUnselectFromList",
859
- y.disabled && "disabled",
859
+ E.disabled && "disabled",
860
860
  P && "selected"
861
861
  ),
862
- ...o({
863
- index: R,
864
- item: y
862
+ ...a({
863
+ index: N,
864
+ item: E
865
865
  }),
866
- children: F(y, P)
866
+ children: D(E, P)
867
867
  },
868
- y.value
868
+ E.value
869
869
  );
870
870
  }) : null
871
871
  ] }, h.label)
872
872
  );
873
873
  else if ("value" in h) {
874
- const y = q(h.value, x), R = m === L;
875
- O.itemsToRender.push(
876
- /* @__PURE__ */ v(
874
+ const E = q(h.value, j), N = f === L;
875
+ v.itemsToRender.push(
876
+ /* @__PURE__ */ I(
877
877
  "li",
878
878
  {
879
- className: w(
879
+ className: O(
880
880
  "item",
881
- R && "highlighted",
881
+ N && "highlighted",
882
882
  p && "multiple",
883
883
  e && "allowUnselectFromList",
884
884
  h.disabled && "disabled",
885
- y && "selected"
885
+ E && "selected"
886
886
  ),
887
- ...o({
887
+ ...a({
888
888
  index: L,
889
889
  item: h
890
890
  }),
891
- children: F(h, y)
891
+ children: D(h, E)
892
892
  },
893
893
  h.value
894
894
  )
895
895
  );
896
896
  }
897
- return O;
897
+ return v;
898
898
  },
899
899
  { itemIndex: 0, itemsToRender: [] }
900
900
  ).itemsToRender,
901
- [p, e, x, c, te, F]
902
- ), je = Ke[b], ue = w(
901
+ [p, e, j, c, te, D]
902
+ ), Me = Ke[V], ue = O(
903
903
  "root",
904
- `size-${b}`,
904
+ `size-${V}`,
905
905
  ce && `variant-${ce}`,
906
906
  _ && "clearable",
907
907
  re && "transparent",
908
- l && `icon-placement-${f}`,
908
+ l && `icon-placement-${d}`,
909
909
  r
910
910
  );
911
- return /* @__PURE__ */ v(
912
- Mn,
911
+ return /* @__PURE__ */ I(
912
+ zn,
913
913
  {
914
914
  id: u,
915
- inputValue: d ? ie : "",
916
- isOpen: N,
917
- itemToString: Ee,
918
- onInputValueChange: Ve,
919
- onOuterClick: Fe,
920
- onSelect: Te,
915
+ inputValue: m ? ie : "",
916
+ isOpen: C,
917
+ itemToString: xe,
918
+ onInputValueChange: Ue,
919
+ onOuterClick: De,
920
+ onSelect: be,
921
921
  selectedItem: B,
922
922
  children: ({
923
- clearSelection: o,
924
- getInputProps: m,
923
+ clearSelection: a,
924
+ getInputProps: f,
925
925
  getItemProps: A,
926
- getMenuProps: O,
926
+ getMenuProps: v,
927
927
  getRootProps: h,
928
928
  getToggleButtonProps: L,
929
- highlightedIndex: y
929
+ highlightedIndex: E
930
930
  }) => {
931
- const R = !!(E && C && !q(C, x)), P = N && (j.length || R), fe = _ && C, We = /* @__PURE__ */ v("div", { className: w("dropdown-indicator", N && "open"), children: /* @__PURE__ */ v(
931
+ const N = !!(x && w && !q(w, j)), P = C && (M.length || N), de = _ && w, We = /* @__PURE__ */ I("div", { className: O("dropdown-indicator", C && "open"), children: /* @__PURE__ */ I(
932
932
  qe,
933
933
  {
934
934
  animatePresence: !0,
935
- onClick: o,
935
+ onClick: a,
936
936
  title: "Clear"
937
937
  }
938
- ) }), Le = /* @__PURE__ */ v(
938
+ ) }), Le = /* @__PURE__ */ I(
939
939
  "div",
940
940
  {
941
- className: w("dropdown-indicator", N && "open", s && "disabled"),
942
- "data-testid": a ? `${a}-arrow-icon` : null,
941
+ className: O("dropdown-indicator", C && "open", s && "disabled"),
942
+ "data-testid": o ? `${o}-arrow-icon` : null,
943
943
  tabIndex: -1,
944
944
  ...L({
945
- onClick: (de) => {
945
+ onClick: (me) => {
946
946
  if (s) {
947
- de.preventDefault(), de.stopPropagation();
947
+ me.preventDefault(), me.stopPropagation();
948
948
  return;
949
949
  }
950
- k(!N);
950
+ S(!C);
951
951
  }
952
952
  }),
953
- children: /* @__PURE__ */ v(Je, { className: w("styled-icon"), size: "sm" })
953
+ children: /* @__PURE__ */ I(Je, { className: O("styled-icon"), size: "sm" })
954
954
  }
955
- ), Pe = h(oe, { suppressRefError: !0 }), me = m({
955
+ ), Pe = h(ae, { suppressRefError: !0 }), fe = f({
956
956
  autoComplete: n,
957
957
  autoFocus: t,
958
- "data-spacer": ze || ne,
959
- "data-testid": a,
958
+ "data-spacer": Fe || ne,
959
+ "data-testid": o,
960
960
  disabled: s,
961
961
  id: u,
962
- name: U,
963
- onBlur: D,
964
- onClick: s ? void 0 : De,
965
- onFocus: s ? void 0 : xe,
966
- onKeyDown: be,
962
+ name: k,
963
+ onBlur: H,
964
+ onClick: s ? void 0 : He,
965
+ onFocus: s ? void 0 : je,
966
+ onKeyDown: Ve,
967
967
  placeholder: ne,
968
- ref: Ue,
969
- size: b,
968
+ ref: ke,
969
+ size: V,
970
970
  tabIndex: 0,
971
971
  transparent: re,
972
- variant: N ? "focused" : ae,
973
- ...oe
972
+ variant: C ? "focused" : oe,
973
+ ...ae
974
974
  });
975
975
  return /* @__PURE__ */ K(
976
976
  "div",
977
977
  {
978
978
  ...Pe,
979
979
  "aria-disabled": s,
980
- className: w("wrapper", s && "disabled"),
980
+ className: O("wrapper", s && "disabled"),
981
981
  children: [
982
- d ? /* @__PURE__ */ v(
982
+ m ? /* @__PURE__ */ I(
983
983
  "input",
984
984
  {
985
985
  className: ue,
986
986
  type: "text",
987
- ...z(me),
987
+ ...F(fe),
988
988
  disabled: s,
989
989
  tabIndex: s ? -1 : 0
990
990
  }
991
- ) : /* @__PURE__ */ v("div", { className: ue, ...z(me), children: ie }),
992
- l ? /* @__PURE__ */ v("div", { className: w("icon-wrapper", "icon-placement-left", `size-${b}`), children: Ye.cloneElement(l, { ...l.props, size: je }) }) : null,
993
- /* @__PURE__ */ K("div", { className: w("indicators", `size-${b}`), children: [
994
- fe ? We : null,
991
+ ) : /* @__PURE__ */ I("div", { className: ue, ...F(fe), children: ie }),
992
+ l ? /* @__PURE__ */ I("div", { className: O("icon-wrapper", "icon-placement-left", `size-${V}`), children: Ye.cloneElement(l, { ...l.props, size: Me }) }) : null,
993
+ /* @__PURE__ */ K("div", { className: O("indicators", `size-${V}`), children: [
994
+ de ? We : null,
995
995
  Le
996
996
  ] }),
997
- P ? /* @__PURE__ */ K("ul", { className: w("menu"), ...O(), children: [
998
- Me({ getItemProps: A, highlightedIndex: y, options: j }),
999
- R && C.length ? /* @__PURE__ */ v(
997
+ P ? /* @__PURE__ */ K("ul", { className: O("menu"), ...v(), children: [
998
+ ze({ getItemProps: A, highlightedIndex: E, options: M }),
999
+ N && w.length ? /* @__PURE__ */ I(
1000
1000
  "li",
1001
1001
  {
1002
- className: w("item", y === j.length && "highlighted"),
1002
+ className: O("item", E === M.length && "highlighted"),
1003
1003
  ...A({
1004
- index: j.length,
1004
+ index: M.length,
1005
1005
  item: {
1006
- label: C,
1007
- value: Ce(C)
1006
+ label: w,
1007
+ value: we(w)
1008
1008
  }
1009
1009
  }),
1010
- children: Ne(C)
1010
+ children: Ce(w)
1011
1011
  },
1012
1012
  "add"
1013
1013
  ) : null
1014
1014
  ] }) : null,
1015
- p ? Re(x, He) : null
1015
+ p ? Ne(j, Te) : null
1016
1016
  ]
1017
1017
  }
1018
1018
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "9.0.13",
3
+ "version": "9.0.14",
4
4
  "description": "Customizable design system with react, typescript, tailwindcss and ariakit.",
5
5
  "files": [
6
6
  "dist"