@wrdagency/blockout 1.0.33 → 1.0.34

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.
@@ -1,5 +1,6 @@
1
1
  import * as e from "react";
2
- const l = /* @__PURE__ */ new Map([
2
+ import { w as l } from "./SSRBase.es-BUXS72ra.js";
3
+ const n = /* @__PURE__ */ new Map([
3
4
  [
4
5
  "bold",
5
6
  /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" }))
@@ -24,7 +25,9 @@ const l = /* @__PURE__ */ new Map([
24
25
  "thin",
25
26
  /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z" }))
26
27
  ]
27
- ]);
28
+ ]), r = e.forwardRef((t, a) => /* @__PURE__ */ e.createElement(l, { ref: a, ...t, weights: n }));
29
+ r.displayName = "CaretDownIcon";
28
30
  export {
29
- l as t
31
+ r as e,
32
+ n as t
30
33
  };
@@ -1 +1 @@
1
- .component-select__input{cursor:pointer;width:100%}.component-select__input:focus{outline:none}.component-select__popover__wrapper{z-index:9999!important}.component-select__popover{background-color:var(--blockout__colours__surface--200);border:1px solid var(--blockout__colours__surface--300);border-radius:var(--blockout__radius--lg)}.component-select__popover:focus{outline:none}.component-select__popover__scroll .primitive-scroll-area__viewport{width:min(calc(var(--popover-anchor-width) + 2px),fit-content);height:100%;max-height:var(--popover-available-height);min-width:12rem;padding:0}.component-select__list{display:flex;flex-direction:column;gap:.325rem;padding:.325rem}.component-select__list:focus{outline:none}.component-select__list__group:not(:first-child){border-top:1px solid var(--blockout__colours__surface--400);padding-top:.5rem}.component-select__list__group__label{padding:.125rem .675rem;font-size:.875rem;color:var(--blockout__colours__surface--600);font-weight:600}.component-select__popover__search-wrapper{display:flex;align-items:center;gap:0;padding-left:1rem}.component-select__popover__search-icon{width:1rem;height:1rem;transform:translateY(.25rem);fill:var(--blockout__colours__surface--500)}.component-select__popover__search{width:100%;padding:.5rem .675rem 0rem;min-height:var(--base-control__min-height)}.component-select__popover__search:focus{outline:none}.component-select__option{display:flex;justify-content:center;align-items:start;flex-direction:column;gap:.25rem;padding:.375rem .5rem .375rem .675rem;min-height:2.25rem;border-radius:var(--blockout__radius--sm);cursor:pointer;transition:background-color .25s ease}.component-select__option:focus{outline:none}.component-select__option:first-child{border-top:none}.component-select__option[aria-disabled=true] .component-select__option__label{color:var(--blockout__colours__surface--400)}.component-select__option[aria-disabled=true] .component-select__option__description{color:var(--blockout__colours__surface--300)}.component-select__option__label{display:flex;align-items:center;gap:.5rem;font-weight:500;color:var(--blockout__colours__surface--900);transition:color .25s ease;white-space:nowrap}.component-select__option__label>svg{width:1.25rem;height:1.25rem;flex-shrink:0;color:var(--blockout__colours__surface--500);fill:var(--blockout__colours__surface--500)}.component-select__option__description{font-weight:400;color:var(--blockout__colours__surface--600);font-size:.875rem;transition:color .25s ease,opacity .25s ease}.component-select__option[data-active-item=true]{background-color:var(--blockout__colours__surface--50)}.component-select__option[data-active-item=true] .component-select__option__label{color:var(--blockout__colours__surface--900)}.component-select__option[data-active-item=true] .component-select__option__description{color:var(--blockout__colours__surface--700)}.component-select-control .component-base-control__control{flex-grow:1!important;min-width:0}.component-select-control .component-select__input{display:flex}.component-select-control__btn{display:flex;flex-direction:row;flex-grow:1;padding:var(--base-control__padding);min-height:var(--base-control__min-height);width:100%;min-width:0;max-width:100%;color:var(--blockout__colours__surface--800);border-top-left-radius:var(--blockout__radius--md);border-bottom-left-radius:var(--blockout__radius--md);font-size:1rem;text-align:left;background-color:transparent;transition:background-color .25s ease}.component-select-control__btn .component-base-control__affix{padding:0;min-height:0}.component-select-control__btn .component-base-control__affix--prefix{padding-right:var(--base-control__padding)}.component-select-control__btn .component-base-control__affix--suffix{padding-left:var(--base-control__padding)}.component-select__input--placeholder--placeholder .component-select-control__btn{color:var(--blockout__colours__surface--400)}.component-select-control__btn__value{display:flex;align-items:center;gap:.5rem;font-weight:500}.component-select-control__btn__value>svg{width:1.25rem;height:1.25rem;flex-shrink:0;color:var(--blockout__colours__surface--500);fill:var(--blockout__colours__surface--500)}.component-select-control__btn__value__label{white-space:nowrap;text-overflow:ellipsis;overflow:clip;min-width:0}.component-select-control__btn__caret{align-self:center}.component-select__input:disabled{opacity:.25}.component-select-control .component-base-control__box:focus-within{background-color:var(--blockout__colours__surface--50);border-color:var(--blockout__colours__surface--300);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-base-control--normal.component-select-control .component-base-control__box:has(.component-select__input:hover){background-color:var(--blockout__colours__surface--200);border-color:var(--blockout__colours__surface--100)}.component-base-control--normal.component-select-control .component-base-control__box:has(.component-select__input:hover) .component-select-control__btn__caret{background-color:transparent!important}.component-base-control--outline .component-base-control__box:not(.component-base-control--normal *):has(.component-select__input:hover){border-color:var(--blockout__colours__primary--500)}.component-base-control--outline .component-base-control__box:not(.component-base-control--normal *):has(.component-select-control__btn__caret:hover){border-color:transparent}.component-base-control--ghost .component-base-control__box:not(.component-base-control--normal *):has(.component-select__input:hover){border-color:var(--blockout__colours__surface--300)}.component-base-control--ghost .component-base-control__box:not(.component-base-control--normal *):has(.component-select-control__btn__caret:hover){border-color:transparent}
1
+ .component-select__input{cursor:pointer;width:100%}.component-select__input:focus{outline:none}.component-select__popover__wrapper{z-index:9999!important}.component-select__popover{background-color:var(--blockout__colours__surface--200);border:1px solid var(--blockout__colours__surface--300);border-radius:var(--blockout__radius--lg)}.component-select__popover:focus{outline:none}.component-select__popover__scroll .primitive-scroll-area__viewport{width:min(calc(var(--popover-anchor-width) + 2px),fit-content);height:100%;max-height:var(--popover-available-height);min-width:12rem;padding:0}.component-select__list{display:flex;flex-direction:column;padding:.325rem}.component-select__list:focus{outline:none}.component-select__list__group:not(:first-child){border-top:1px solid var(--blockout__colours__surface--400);padding-top:.5rem}.component-select__list__group__label{display:flex;align-items:center;justify-content:space-between;gap:2rem;border-top:1px solid var(--blockout__colours__surface--300);padding:.675rem;color:var(--blockout__colours__surface--600);font-weight:600;text-align:left;cursor:pointer;transition:color .15s ease}.component-select__list__group__label:first-child{border-top:none}.component-select__list__group__label:hover{color:var(--blockout__colours__surface--950)}.component-select__list__group__label .component-select__list__group__label__icon{width:1rem;height:1rem;opacity:.375}.component-select__list__group__items{display:flex;flex-direction:column;gap:.325rem}.component-select__popover__search-wrapper{display:flex;align-items:center;gap:0;padding-left:1rem}.component-select__popover__search-icon{width:1rem;height:1rem;transform:translateY(.25rem);fill:var(--blockout__colours__surface--500)}.component-select__popover__search{width:100%;padding:.5rem .675rem 0rem;min-height:var(--base-control__min-height)}.component-select__popover__search:focus{outline:none}.component-select__option{display:flex;justify-content:center;align-items:start;flex-direction:column;gap:.25rem;padding:.375rem .5rem .375rem .675rem;min-height:2.25rem;border-radius:var(--blockout__radius--sm);cursor:pointer;transition:background-color .25s ease}.component-select__option:focus{outline:none}.component-select__option:first-child{border-top:none}.component-select__option[aria-disabled=true] .component-select__option__label{color:var(--blockout__colours__surface--400)}.component-select__option[aria-disabled=true] .component-select__option__description{color:var(--blockout__colours__surface--300)}.component-select__option__label{display:flex;align-items:center;gap:.5rem;font-weight:500;color:var(--blockout__colours__surface--900);transition:color .25s ease;white-space:nowrap}.component-select__option__label>svg{width:1.25rem;height:1.25rem;flex-shrink:0;color:var(--blockout__colours__surface--500);fill:var(--blockout__colours__surface--500)}.component-select__option__description{font-weight:400;color:var(--blockout__colours__surface--600);font-size:.875rem;transition:color .25s ease,opacity .25s ease}.component-select__option[data-active-item=true]{background-color:var(--blockout__colours__surface--50)}.component-select__option[data-active-item=true] .component-select__option__label{color:var(--blockout__colours__surface--900)}.component-select__option[data-active-item=true] .component-select__option__description{color:var(--blockout__colours__surface--700)}.component-select-control .component-base-control__control{flex-grow:1!important;min-width:0}.component-select-control .component-select__input{display:flex}.component-select-control__btn{display:flex;flex-direction:row;flex-grow:1;padding:var(--base-control__padding);min-height:var(--base-control__min-height);width:100%;min-width:0;max-width:100%;color:var(--blockout__colours__surface--800);border-top-left-radius:var(--blockout__radius--md);border-bottom-left-radius:var(--blockout__radius--md);font-size:1rem;text-align:left;background-color:transparent;transition:background-color .25s ease}.component-select-control__btn .component-base-control__affix{padding:0;min-height:0}.component-select-control__btn .component-base-control__affix--prefix{padding-right:var(--base-control__padding)}.component-select-control__btn .component-base-control__affix--suffix{padding-left:var(--base-control__padding)}.component-select__input--placeholder--placeholder .component-select-control__btn{color:var(--blockout__colours__surface--400)}.component-select-control__btn__value{display:flex;align-items:center;gap:.5rem;font-weight:500}.component-select-control__btn__value>svg{width:1.25rem;height:1.25rem;flex-shrink:0;color:var(--blockout__colours__surface--500);fill:var(--blockout__colours__surface--500)}.component-select-control__btn__value__label{white-space:nowrap;text-overflow:ellipsis;overflow:clip;min-width:0}.component-select-control__btn__caret{align-self:center}.component-select__input:disabled{opacity:.25}.component-select-control .component-base-control__box:focus-within{background-color:var(--blockout__colours__surface--50);border-color:var(--blockout__colours__surface--300);outline:1px solid var(--blockout__colours__outline);outline-offset:4px}.component-base-control--normal.component-select-control .component-base-control__box:has(.component-select__input:hover){background-color:var(--blockout__colours__surface--200);border-color:var(--blockout__colours__surface--100)}.component-base-control--normal.component-select-control .component-base-control__box:has(.component-select__input:hover) .component-select-control__btn__caret{background-color:transparent!important}.component-base-control--outline .component-base-control__box:not(.component-base-control--normal *):has(.component-select__input:hover){border-color:var(--blockout__colours__primary--500)}.component-base-control--outline .component-base-control__box:not(.component-base-control--normal *):has(.component-select-control__btn__caret:hover){border-color:transparent}.component-base-control--ghost .component-base-control__box:not(.component-base-control--normal *):has(.component-select__input:hover){border-color:var(--blockout__colours__surface--300)}.component-base-control--ghost .component-base-control__box:not(.component-base-control--normal *):has(.component-select-control__btn__caret:hover){border-color:transparent}
@@ -13,7 +13,7 @@ import "../../../primitives/symbol/index.js";
13
13
  import { Truncate as d } from "../../../primitives/truncate/index.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
- import { e as v } from "../../../CaretDown.es-eyr5AnCc.js";
16
+ import { e as v } from "../../../CaretDown.es-CfgGfmY2.js";
17
17
  import { BaseControl as f } from "../base-control/index.js";
18
18
  import { useBaseControlProps as P } from "../base-control/props.js";
19
19
  /* empty css */
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, Fragment as d, jsx as n } from "react/jsx-runtime";
2
2
  import { noop as c } from "../../../utils/noop.js";
3
- import { e as f } from "../../../CaretDown.es-eyr5AnCc.js";
3
+ import { e as f } from "../../../CaretDown.es-CfgGfmY2.js";
4
4
  import { r as h } from "../../../CaretUp.es-Cy8czlHG.js";
5
5
  import { useRef as x } from "react";
6
6
  import { BaseControl as C } from "../base-control/index.js";
@@ -3,7 +3,7 @@ import { Button as N } from "../../button/index.js";
3
3
  import { findOption as S } from "../../../types/options.js";
4
4
  import * as m from "react";
5
5
  import { p as O } from "../../../IconBase.es-rM5tt24D.js";
6
- import { t as P } from "../../../CaretDown.es-BKFnosGJ.js";
6
+ import { t as P } from "../../../CaretDown.es-CfgGfmY2.js";
7
7
  import { BaseControl as w } from "../base-control/index.js";
8
8
  import { Affix as p } from "../base-control/affix.js";
9
9
  import { useBaseControlProps as C } from "../base-control/props.js";
@@ -15,4 +15,5 @@ export type SelectProps<T extends string = string> = {
15
15
  withIcon?: boolean;
16
16
  autoComplete?: HTMLInputAutoCompleteAttribute;
17
17
  disabled?: boolean;
18
+ defaultGroupOpen?: boolean;
18
19
  };
@@ -1,3 +1,3 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { SelectProps } from './props';
3
- export declare const Select: <T extends string = string>({ className, value, onChangeValue, options: unnormalizedOptions, searchable, combobox, placeholder, prefix, suffix, children, withIcon, ...restControlProps }: SelectProps<T> & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Select: <T extends string = string>({ className, value, onChangeValue, options: unnormalizedOptions, searchable, combobox, placeholder, prefix, suffix, children, withIcon, defaultGroupOpen, ...restControlProps }: SelectProps<T> & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
- import { jsx as s, jsxs as r } from "react/jsx-runtime";
2
- import { cn as j } from "../../../utils/css.js";
1
+ import { jsx as o, jsxs as r } from "react/jsx-runtime";
2
+ import { cn as x } from "../../../utils/css.js";
3
3
  import '../../../assets/style16.css';import '../../../assets/styles.css';import '../../../assets/style6.css';import '../../../assets/style5.css';import '../../../assets/style4.css';import '../../../assets/style3.css';import '../../../assets/style2.css';import '../../../assets/style.css';import '../../../assets/style10.css';import '../../../assets/style7.css';/* empty css */
4
- import { noop as y } from "../../../utils/noop.js";
5
- import { useState as h, useMemo as g, startTransition as k } from "react";
4
+ import { noop as j } from "../../../utils/noop.js";
5
+ import { useState as f, useMemo as y, startTransition as k } from "react";
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  /* empty css */
@@ -15,71 +15,76 @@ import "../../../primitives/symbol/index.js";
15
15
  /* empty css */
16
16
  /* empty css */
17
17
  import { normalizeOptions as A, findOption as H } from "../../../types/options.js";
18
- import { s as M } from "../../../MagnifyingGlass.es-CLstwG_v.js";
19
- import { m as T } from "../../../match-sorter.esm-MNVE8H_6.js";
18
+ import { e as M } from "../../../CaretDown.es-CfgGfmY2.js";
19
+ import { s as T } from "../../../MagnifyingGlass.es-CLstwG_v.js";
20
+ import { m as $ } from "../../../match-sorter.esm-MNVE8H_6.js";
20
21
  /* empty css */
21
- import { C as $, a as f, b as q } from "../../../MAXQOH4L-BYWBWXpb.js";
22
- import { S as B, a as D, b as E, c as F, d as J, e as K, f as Q } from "../../../select-popover-CGgkyRb4.js";
23
- import { C as R } from "../../../combobox-popover-BZ_1wNrj.js";
24
- import { C as U, a as W } from "../../../combobox-group-hNvv1WJm.js";
25
- import { C as u } from "../../../JMHAJKUZ-D5KCN1Aj.js";
26
- const Ie = ({
22
+ import { C as q, a as u, b as B } from "../../../MAXQOH4L-BYWBWXpb.js";
23
+ import { S as E, a as F, b as J, c as K, d as Q, e as R, f as U } from "../../../select-popover-CGgkyRb4.js";
24
+ import { C as W } from "../../../combobox-popover-BZ_1wNrj.js";
25
+ import { C as X, a as Y } from "../../../combobox-group-hNvv1WJm.js";
26
+ import { D as Z } from "../../../F5MUBM3I-75qY3y0N.js";
27
+ import { D as ee } from "../../../KFH4SEIX-DaQeP5D_.js";
28
+ import { C as h } from "../../../JMHAJKUZ-D5KCN1Aj.js";
29
+ import { D as te } from "../../../disclosure-provider-cEVysvZT.js";
30
+ const Ae = ({
27
31
  className: v,
28
32
  value: i,
29
- onChangeValue: c = y,
33
+ onChangeValue: c = j,
30
34
  options: S = [],
31
35
  searchable: l = !1,
32
36
  combobox: e = !1,
33
37
  placeholder: N = "Choose an option...",
34
- prefix: X,
35
- suffix: Y,
38
+ prefix: oe,
39
+ suffix: se,
36
40
  children: C,
37
- withIcon: Z,
38
- ...O
41
+ withIcon: re,
42
+ defaultGroupOpen: O = !0,
43
+ ...P
39
44
  }) => {
40
45
  e && (l = !0);
41
- const [a, p] = h(!1), [n, P] = h(""), m = A(S), _ = g(() => m.map((t) => ({
46
+ const [n, p] = f(!1), [a, w] = f(""), m = A(S), _ = y(() => m.map((t) => ({
42
47
  ...t,
43
- items: T(t.items, n, {
44
- baseSort: (o, x) => o.index < x.index ? -1 : 1,
48
+ items: $(t.items, a, {
49
+ baseSort: (s, g) => s.index < g.index ? -1 : 1,
45
50
  keys: ["label", "description", "aliases"]
46
51
  })
47
- })), [n]), L = l || e ? q : F, w = e ? u : Q, G = e ? f : D, b = e ? R : E, I = e ? U : J, V = e ? W : K, d = !!!H(m, i);
48
- return /* @__PURE__ */ s(
49
- $,
52
+ })), [a]), L = l || e ? B : K, b = e ? h : U, D = e ? u : F, G = e ? W : J, I = e ? X : Q, V = e ? Y : R, d = !!!H(m, i);
53
+ return /* @__PURE__ */ o(
54
+ q,
50
55
  {
51
56
  resetValueOnHide: !e,
52
- open: a,
57
+ open: n,
53
58
  setOpen: p,
54
- value: e ? i : n,
59
+ value: e ? i : a,
55
60
  setValue: (t) => {
56
61
  e && c(t), k(() => {
57
- P(t);
62
+ w(t);
58
63
  });
59
64
  },
60
65
  children: /* @__PURE__ */ r(
61
- B,
66
+ E,
62
67
  {
63
68
  value: d ? "" : i,
64
69
  setValue: c,
65
- open: a,
70
+ open: n,
66
71
  setOpen: p,
67
72
  children: [
68
- /* @__PURE__ */ s(
69
- G,
73
+ /* @__PURE__ */ o(
74
+ D,
70
75
  {
71
- className: j(
76
+ className: x(
72
77
  v,
73
78
  "component-select__input",
74
79
  d && "component-select__input--placeholder"
75
80
  ),
76
81
  children: e ? void 0 : C,
77
82
  placeholder: N,
78
- ...O
83
+ ...P
79
84
  }
80
85
  ),
81
- a && _.length > 0 && /* @__PURE__ */ s(
82
- b,
86
+ n && _.length > 0 && /* @__PURE__ */ o(
87
+ G,
83
88
  {
84
89
  className: "component-select__popover",
85
90
  "data-colour-scheme": "invert",
@@ -92,9 +97,9 @@ const Ie = ({
92
97
  shift: -1,
93
98
  children: /* @__PURE__ */ r(z, { className: "component-select__popover__scroll", axis: "y", children: [
94
99
  l && !e && /* @__PURE__ */ r("div", { className: "component-select__popover__search-wrapper", children: [
95
- /* @__PURE__ */ s(M, { className: "component-select__popover__search-icon" }),
96
- /* @__PURE__ */ s(
97
- f,
100
+ /* @__PURE__ */ o(T, { className: "component-select__popover__search-icon" }),
101
+ /* @__PURE__ */ o(
102
+ u,
98
103
  {
99
104
  autoSelect: !0,
100
105
  placeholder: "Search...",
@@ -102,29 +107,51 @@ const Ie = ({
102
107
  }
103
108
  )
104
109
  ] }),
105
- /* @__PURE__ */ s(L, { className: "component-select__list", children: _.filter((t) => t.items.length > 0).map((t) => /* @__PURE__ */ r(
110
+ /* @__PURE__ */ o(L, { className: "component-select__list", children: _.filter((t) => t.items.length > 0).map((t) => /* @__PURE__ */ r(
106
111
  I,
107
112
  {
108
113
  className: "component-select__list__group",
114
+ render: /* @__PURE__ */ o(
115
+ te,
116
+ {
117
+ defaultOpen: O
118
+ }
119
+ ),
109
120
  children: [
110
- t.label && /* @__PURE__ */ s(V, { className: "component-select__list__group__label", children: t.label }),
111
- t.items.map((o) => /* @__PURE__ */ r(
112
- w,
121
+ t.label && /* @__PURE__ */ r(
122
+ V,
123
+ {
124
+ className: "component-select__list__group__label",
125
+ render: /* @__PURE__ */ o(Z, {}),
126
+ children: [
127
+ t.label,
128
+ /* @__PURE__ */ o(
129
+ M,
130
+ {
131
+ className: "component-select__list__group__label__icon",
132
+ weight: "fill"
133
+ }
134
+ )
135
+ ]
136
+ }
137
+ ),
138
+ /* @__PURE__ */ o(ee, { className: "component-select__list__group__items", children: t.items.map((s) => /* @__PURE__ */ r(
139
+ b,
113
140
  {
114
- disabled: o.disabled,
115
- value: o.value,
141
+ disabled: s.disabled,
142
+ value: s.value,
116
143
  className: "component-select__option",
117
- render: /* @__PURE__ */ s(u, {}),
144
+ render: /* @__PURE__ */ o(h, {}),
118
145
  children: [
119
146
  /* @__PURE__ */ r("div", { className: "component-select__option__label", children: [
120
- o.icon,
121
- o.label
147
+ s.icon,
148
+ s.label
122
149
  ] }),
123
- o.description && /* @__PURE__ */ s("div", { className: "component-select__option__description", children: o.description })
150
+ s.description && /* @__PURE__ */ o("div", { className: "component-select__option__description", children: s.description })
124
151
  ]
125
152
  },
126
- o.value
127
- ))
153
+ s.value
154
+ )) })
128
155
  ]
129
156
  },
130
157
  t.label
@@ -139,5 +166,5 @@ const Ie = ({
139
166
  );
140
167
  };
141
168
  export {
142
- Ie as Select
169
+ Ae as Select
143
170
  };
@@ -2,7 +2,7 @@ import { jsx as l } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
3
  import { w as m } from "../../../SSRBase.es-BUXS72ra.js";
4
4
  import { r as d } from "../../../ArrowBendDownRight.es-mejk84um.js";
5
- import { e as u } from "../../../CaretDown.es-eyr5AnCc.js";
5
+ import { e as u } from "../../../CaretDown.es-CfgGfmY2.js";
6
6
  import { r as p } from "../../../CaretUp.es-Cy8czlHG.js";
7
7
  const E = /* @__PURE__ */ new Map([
8
8
  [
@@ -17,28 +17,27 @@ function f(n) {
17
17
  };
18
18
  }
19
19
  function p(n) {
20
- const o = [], e = {
20
+ const e = [], t = {
21
21
  type: "group",
22
22
  label: "",
23
23
  items: []
24
24
  };
25
- for (const t of n)
26
- s(t) ? o.push(f(t)) : e.items.push(i(t));
27
- return e.items.length > 0 && o.push(e), o;
25
+ for (const o of n)
26
+ s(o) ? e.push(f(o)) : t.items.push(i(o));
27
+ return t.items.length > 0 && e.push(t), e;
28
28
  }
29
- function l(n, o) {
30
- const e = p(n);
31
- console.log(e, o);
32
- for (const t of e) {
33
- const r = t.items.find((u) => u.value === o);
29
+ function l(n, e) {
30
+ const t = p(n);
31
+ for (const o of t) {
32
+ const r = o.items.find((u) => u.value === e);
34
33
  if (r)
35
34
  return r;
36
35
  }
37
36
  }
38
- function c(n, o, e) {
39
- return e.findIndex(
40
- (t) => i(t).value === i(n).value
41
- ) === o;
37
+ function c(n, e, t) {
38
+ return t.findIndex(
39
+ (o) => i(o).value === i(n).value
40
+ ) === e;
42
41
  }
43
42
  export {
44
43
  l as findOption,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrdagency/blockout",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "A React component library created by WRD.agency",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,8 +0,0 @@
1
- import * as r from "react";
2
- import { w as t } from "./SSRBase.es-BUXS72ra.js";
3
- import { t as m } from "./CaretDown.es-BKFnosGJ.js";
4
- const a = r.forwardRef((e, o) => /* @__PURE__ */ r.createElement(t, { ref: o, ...e, weights: m }));
5
- a.displayName = "CaretDownIcon";
6
- export {
7
- a as e
8
- };