@tedi-design-system/react 14.4.0-rc.7 → 14.4.0-rc.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tedi-design-system/react",
3
- "version": "14.4.0-rc.7",
3
+ "version": "14.4.0-rc.8",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),fe=require("../../../../../external/classnames/index.cjs.js"),m=require("react"),ge=require("../../../../../external/react-select/dist/react-select.esm.cjs.js"),Se=require("../../../../../external/react-select/async/dist/react-select-async.esm.cjs.js"),Me=require("../feedback-text/feedback-text.cjs.js"),be=require("../form-label/form-label.cjs.js"),Ie=require("./components/select-clear-indicator.cjs.js"),qe=require("./components/select-control.cjs.js"),Ce=require("./components/select-dropdown-indicator.cjs.js"),Oe=require("./components/select-group.cjs.js"),ve=require("./components/select-group-heading.cjs.js"),Le=require("./components/select-indicators-container.cjs.js"),Ve=require("./components/select-input.cjs.js"),Re=require("./components/select-loading-indicator.cjs.js"),he=require("./components/select-menu.cjs.js"),ye=require("./components/select-menu-list.cjs.js"),xe=require("./components/select-menu-portal.cjs.js"),_e=require("./components/select-multi-value.cjs.js"),we=require("./components/select-multi-value-remove.cjs.js"),Ne=require("./components/select-option.cjs.js"),je=require("./components/select-value-container.cjs.js"),n=require("./select.module.scss.cjs.js"),Pe=require("../../../providers/label-provider/use-labels.cjs.js"),f=m.forwardRef((L,V)=>{const{options:R,defaultOptions:h,id:s,name:y,iconName:x="arrow_drop_down",label:_,required:g,value:w,defaultValue:N,tagsDirection:S="row",onChange:i,onInputChange:j,inputValue:P,loadOptions:T,isLoading:G,openMenuOnFocus:H=!1,openMenuOnClick:D=!0,tabSelectsValue:F=!1,disabled:M=!1,className:$,hideLabel:k=!1,helper:t,placeholder:B,invalid:E,valid:z,size:c,async:A=!1,renderOption:W,renderMessageListFooter:J,noOptionsMessage:K,loadingMessage:Q,multiple:u=!1,closeMenuOnSelect:U=!u,blurInputOnSelect:b=!1,autoFocus:X=!1,isClearable:Y=!0,isClearIndicatorVisible:Z=!1,isSearchable:I=!0,menuIsOpen:ee,onMenuClose:te,onMenuOpen:ne,onBlur:se,inputIsHidden:le,isTagRemovable:q=!1,optionGroupHeadingText:oe={modifiers:"small",color:"tertiary"},cacheOptions:ae=!0,showRadioButtons:re=!1,renderWithoutLabel:ie,tooltip:ce,classNames:C}=L,O=t?(t==null?void 0:t.id)??`${s}-helper`:void 0,o=m.useRef(null),{getLabel:v}=Pe.useLabels();m.useImperativeHandle(V,()=>o.current);const ue=d=>{i==null||i(d),!b&&o.current&&setTimeout(()=>{var a,r;return(r=(a=o.current)==null?void 0:a.inputRef)==null?void 0:r.focus()},0)},de=()=>{const d={ClearIndicator:e=>Ie.SelectClearIndicator({isClearIndicatorVisible:Z,...e}),DropdownIndicator:()=>Ce.SelectDropDownIndicator({iconName:x}),IndicatorSeparator:()=>null,MenuPortal:xe.SelectMenuPortal,Menu:he.SelectMenu,MenuList:e=>ye.SelectMenuList({renderMessageListFooter:J,...e}),Option:e=>Ne.SelectOption({renderOption:W,multiple:u,showRadioButtons:re,...e}),Control:qe.SelectControl,Input:Ve.SelectInput,MultiValue:e=>_e.SelectMultiValue({isTagRemovable:q,...e}),MultiValueRemove:we.SelectMultiValueRemove,Group:Oe.SelectGroup,GroupHeading:e=>ve.SelectGroupHeading({optionGroupHeadingText:oe,...e}),IndicatorsContainer:Le.SelectIndicatorsContainer,ValueContainer:je.SelectValueContainer,LoadingIndicator:Re.SelectLoadingIndicator},a=A?Se.default:ge.default,r=()=>v("select.no-options"),me=()=>v("select.loading");return l.jsx(a,{id:s,"aria-describedby":O,autoFocus:X,ref:o,instanceId:s,className:"tedi-select__wrapper",name:y,options:R,defaultOptions:h,value:w,defaultValue:N,cacheOptions:ae,onChange:ue,onInputChange:j,onBlur:se,inputValue:P,inputId:`${s}-input`,loadOptions:T,isLoading:G,noOptionsMessage:K||r,loadingMessage:Q||me,classNamePrefix:"select",components:d,isDisabled:M,isSearchable:I,menuIsOpen:ee,openMenuOnFocus:H,openMenuOnClick:D,tabSelectsValue:F,onMenuClose:te,onMenuOpen:ne,placeholder:B||"",isClearable:Y,backspaceRemovesValue:q,menuShouldScrollIntoView:!0,isMulti:u,hideSelectedOptions:!1,closeMenuOnSelect:U,blurInputOnSelect:b,menuPlacement:"auto",inputIsHidden:le,required:g,menuPortalTarget:document.body,menuPosition:"absolute",classNames:C?Object.fromEntries(Object.entries(C).map(([e,p])=>[e,typeof p=="string"?()=>p:p])):void 0,theme:e=>({...e,colors:{...e.colors,primary:"var(--tedi-blue-600)",danger:"var(--tedi-red-600)",dangerLight:"var(--tedi-red-200)"}}),styles:{input:e=>({...e,gridTemplateColumns:"0fr"})}})},pe=fe.default(n.default["tedi-select"],$,{[n.default["tedi-select--invalid"]]:E||(t==null?void 0:t.type)==="error"},{[n.default["tedi-select--valid"]]:z||(t==null?void 0:t.type)==="valid"},{[n.default[`tedi-select--${c}`]]:c},{[n.default[`tedi-select--tags-${S}`]]:S},{[n.default["tedi-select--searchable"]]:I},{[n.default["tedi-select--disabled"]]:M});return l.jsxs("div",{"data-name":"select",className:pe,children:[l.jsxs("div",{className:n.default["tedi-select__inner"],children:[l.jsx(be.FormLabel,{id:`${s}-input`,label:_,required:g,hideLabel:k,size:c,renderWithoutLabel:ie,tooltip:ce}),de()]}),t&&l.jsx(Me.FeedbackText,{...t,id:O})]})});f.displayName="Select";exports.Select=f;exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),ge=require("../../../../../external/classnames/index.cjs.js"),c=require("react"),Se=require("../../../../../external/react-select/dist/react-select.esm.cjs.js"),Me=require("../../../../../external/react-select/async/dist/react-select-async.esm.cjs.js"),be=require("../feedback-text/feedback-text.cjs.js"),Ie=require("../form-label/form-label.cjs.js"),qe=require("./components/select-clear-indicator.cjs.js"),Ce=require("./components/select-control.cjs.js"),Oe=require("./components/select-dropdown-indicator.cjs.js"),ve=require("./components/select-group.cjs.js"),Le=require("./components/select-group-heading.cjs.js"),Ve=require("./components/select-indicators-container.cjs.js"),Re=require("./components/select-input.cjs.js"),he=require("./components/select-loading-indicator.cjs.js"),xe=require("./components/select-menu.cjs.js"),ye=require("./components/select-menu-list.cjs.js"),_e=require("./components/select-menu-portal.cjs.js"),je=require("./components/select-multi-value.cjs.js"),we=require("./components/select-multi-value-remove.cjs.js"),Ne=require("./components/select-option.cjs.js"),Pe=require("./components/select-value-container.cjs.js"),n=require("./select.module.scss.cjs.js"),Te=require("../../../providers/label-provider/use-labels.cjs.js"),f=c.forwardRef((V,R)=>{const{options:h,defaultOptions:x,id:l,name:y,iconName:_="arrow_drop_down",label:j,required:g,value:w,defaultValue:N,tagsDirection:S="row",onChange:u,onInputChange:P,inputValue:T,loadOptions:G,isLoading:H,openMenuOnFocus:D=!1,openMenuOnClick:k=!0,tabSelectsValue:F=!1,disabled:M=!1,className:$,hideLabel:B=!1,helper:t,placeholder:E,invalid:z,valid:A,size:d,async:W=!1,renderOption:J,renderMessageListFooter:b,noOptionsMessage:K,loadingMessage:Q,multiple:p=!1,closeMenuOnSelect:U=!p,blurInputOnSelect:I=!1,autoFocus:X=!1,isClearable:Y=!0,isClearIndicatorVisible:Z=!1,isSearchable:q=!0,menuIsOpen:ee,onMenuClose:te,onMenuOpen:ne,onBlur:se,inputIsHidden:le,isTagRemovable:C=!1,optionGroupHeadingText:oe={modifiers:"small",color:"tertiary"},cacheOptions:ae=!0,showRadioButtons:re=!1,renderWithoutLabel:ie,tooltip:ce,classNames:O}=V,v=t?(t==null?void 0:t.id)??`${l}-helper`:void 0,a=c.useRef(null),{getLabel:L}=Te.useLabels();c.useImperativeHandle(R,()=>a.current);const ue=o=>{u==null||u(o),!I&&a.current&&setTimeout(()=>{var r,i;return(i=(r=a.current)==null?void 0:r.inputRef)==null?void 0:i.focus()},0)},de=c.useCallback(o=>s.jsx(ye.SelectMenuList,{...o,renderMessageListFooter:b}),[b]),pe=()=>{const o={ClearIndicator:e=>qe.SelectClearIndicator({isClearIndicatorVisible:Z,...e}),DropdownIndicator:()=>Oe.SelectDropDownIndicator({iconName:_}),IndicatorSeparator:()=>null,MenuPortal:_e.SelectMenuPortal,Menu:xe.SelectMenu,MenuList:de,Option:e=>Ne.SelectOption({renderOption:J,multiple:p,showRadioButtons:re,...e}),Control:Ce.SelectControl,Input:Re.SelectInput,MultiValue:e=>je.SelectMultiValue({isTagRemovable:C,...e}),MultiValueRemove:we.SelectMultiValueRemove,Group:ve.SelectGroup,GroupHeading:e=>Le.SelectGroupHeading({optionGroupHeadingText:oe,...e}),IndicatorsContainer:Ve.SelectIndicatorsContainer,ValueContainer:Pe.SelectValueContainer,LoadingIndicator:he.SelectLoadingIndicator},r=W?Me.default:Se.default,i=()=>L("select.no-options"),fe=()=>L("select.loading");return s.jsx(r,{id:l,"aria-describedby":v,autoFocus:X,ref:a,instanceId:l,className:"tedi-select__wrapper",name:y,options:h,defaultOptions:x,value:w,defaultValue:N,cacheOptions:ae,onChange:ue,onInputChange:P,onBlur:se,inputValue:T,inputId:`${l}-input`,loadOptions:G,isLoading:H,noOptionsMessage:K||i,loadingMessage:Q||fe,classNamePrefix:"select",components:o,isDisabled:M,isSearchable:q,menuIsOpen:ee,openMenuOnFocus:D,openMenuOnClick:k,tabSelectsValue:F,onMenuClose:te,onMenuOpen:ne,placeholder:E||"",isClearable:Y,backspaceRemovesValue:C,menuShouldScrollIntoView:!0,isMulti:p,hideSelectedOptions:!1,closeMenuOnSelect:U,blurInputOnSelect:I,menuPlacement:"auto",inputIsHidden:le,required:g,menuPortalTarget:document.body,menuPosition:"absolute",classNames:O?Object.fromEntries(Object.entries(O).map(([e,m])=>[e,typeof m=="string"?()=>m:m])):void 0,theme:e=>({...e,colors:{...e.colors,primary:"var(--tedi-blue-600)",danger:"var(--tedi-red-600)",dangerLight:"var(--tedi-red-200)"}}),styles:{input:e=>({...e,gridTemplateColumns:"0fr"})}})},me=ge.default(n.default["tedi-select"],$,{[n.default["tedi-select--invalid"]]:z||(t==null?void 0:t.type)==="error"},{[n.default["tedi-select--valid"]]:A||(t==null?void 0:t.type)==="valid"},{[n.default[`tedi-select--${d}`]]:d},{[n.default[`tedi-select--tags-${S}`]]:S},{[n.default["tedi-select--searchable"]]:q},{[n.default["tedi-select--disabled"]]:M});return s.jsxs("div",{"data-name":"select",className:me,children:[s.jsxs("div",{className:n.default["tedi-select__inner"],children:[s.jsx(Ie.FormLabel,{id:`${l}-input`,label:j,required:g,hideLabel:B,size:d,renderWithoutLabel:ie,tooltip:ce}),pe()]}),t&&s.jsx(be.FeedbackText,{...t,id:v})]})});f.displayName="Select";exports.Select=f;exports.default=f;
@@ -1,160 +1,163 @@
1
- import { jsxs as C, jsx as u } from "react/jsx-runtime";
2
- import fe from "../../../../../external/classnames/index.es.js";
3
- import L, { forwardRef as ge } from "react";
4
- import Se from "../../../../../external/react-select/dist/react-select.esm.es.js";
1
+ import { jsx as s, jsxs as h } from "react/jsx-runtime";
2
+ import ge from "../../../../../external/classnames/index.es.js";
3
+ import p, { forwardRef as Se } from "react";
4
+ import Me from "../../../../../external/react-select/dist/react-select.esm.es.js";
5
5
  import be from "../../../../../external/react-select/async/dist/react-select-async.esm.es.js";
6
- import { FeedbackText as Me } from "../feedback-text/feedback-text.es.js";
7
- import { FormLabel as Ie } from "../form-label/form-label.es.js";
8
- import { SelectClearIndicator as Oe } from "./components/select-clear-indicator.es.js";
6
+ import { FeedbackText as Ie } from "../feedback-text/feedback-text.es.js";
7
+ import { FormLabel as Oe } from "../form-label/form-label.es.js";
8
+ import { SelectClearIndicator as Ce } from "./components/select-clear-indicator.es.js";
9
9
  import { SelectControl as ve } from "./components/select-control.es.js";
10
- import { SelectDropDownIndicator as Ce } from "./components/select-dropdown-indicator.es.js";
11
- import { SelectGroup as Le } from "./components/select-group.es.js";
12
- import { SelectGroupHeading as he } from "./components/select-group-heading.es.js";
13
- import { SelectIndicatorsContainer as ye } from "./components/select-indicators-container.es.js";
14
- import { SelectInput as Ne } from "./components/select-input.es.js";
15
- import { SelectLoadingIndicator as Ve } from "./components/select-loading-indicator.es.js";
16
- import { SelectMenu as Re } from "./components/select-menu.es.js";
17
- import { SelectMenuList as we } from "./components/select-menu-list.es.js";
18
- import { SelectMenuPortal as _e } from "./components/select-menu-portal.es.js";
19
- import { SelectMultiValue as $e } from "./components/select-multi-value.es.js";
20
- import { SelectMultiValueRemove as xe } from "./components/select-multi-value-remove.es.js";
21
- import { SelectOption as He } from "./components/select-option.es.js";
22
- import { SelectValueContainer as Pe } from "./components/select-value-container.es.js";
10
+ import { SelectDropDownIndicator as Le } from "./components/select-dropdown-indicator.es.js";
11
+ import { SelectGroup as he } from "./components/select-group.es.js";
12
+ import { SelectGroupHeading as ye } from "./components/select-group-heading.es.js";
13
+ import { SelectIndicatorsContainer as Ne } from "./components/select-indicators-container.es.js";
14
+ import { SelectInput as Ve } from "./components/select-input.es.js";
15
+ import { SelectLoadingIndicator as Re } from "./components/select-loading-indicator.es.js";
16
+ import { SelectMenu as we } from "./components/select-menu.es.js";
17
+ import { SelectMenuList as _e } from "./components/select-menu-list.es.js";
18
+ import { SelectMenuPortal as $e } from "./components/select-menu-portal.es.js";
19
+ import { SelectMultiValue as xe } from "./components/select-multi-value.es.js";
20
+ import { SelectMultiValueRemove as He } from "./components/select-multi-value-remove.es.js";
21
+ import { SelectOption as Pe } from "./components/select-option.es.js";
22
+ import { SelectValueContainer as Te } from "./components/select-value-container.es.js";
23
23
  import o from "./select.module.scss.es.js";
24
- import { useLabels as Te } from "../../../providers/label-provider/use-labels.es.js";
25
- const De = ge(
26
- (h, y) => {
24
+ import { useLabels as De } from "../../../providers/label-provider/use-labels.es.js";
25
+ const Fe = Se(
26
+ (y, N) => {
27
27
  const {
28
- options: N,
29
- defaultOptions: V,
28
+ options: V,
29
+ defaultOptions: R,
30
30
  id: a,
31
- name: R,
32
- iconName: w = "arrow_drop_down",
33
- label: _,
34
- required: p,
35
- value: $,
36
- defaultValue: x,
37
- tagsDirection: f = "row",
38
- onChange: l,
39
- onInputChange: H,
40
- inputValue: P,
41
- loadOptions: T,
42
- isLoading: D,
43
- openMenuOnFocus: F = !1,
44
- openMenuOnClick: G = !0,
45
- tabSelectsValue: j = !1,
46
- disabled: g = !1,
47
- className: k,
48
- hideLabel: B = !1,
31
+ name: w,
32
+ iconName: _ = "arrow_drop_down",
33
+ label: $,
34
+ required: f,
35
+ value: x,
36
+ defaultValue: H,
37
+ tagsDirection: g = "row",
38
+ onChange: c,
39
+ onInputChange: P,
40
+ inputValue: T,
41
+ loadOptions: D,
42
+ isLoading: F,
43
+ openMenuOnFocus: G = !1,
44
+ openMenuOnClick: j = !0,
45
+ tabSelectsValue: k = !1,
46
+ disabled: S = !1,
47
+ className: B,
48
+ hideLabel: E = !1,
49
49
  helper: t,
50
- placeholder: E,
51
- invalid: q,
52
- valid: z,
53
- size: s,
54
- async: A = !1,
55
- renderOption: W,
56
- renderMessageListFooter: J,
50
+ placeholder: q,
51
+ invalid: z,
52
+ valid: A,
53
+ size: d,
54
+ async: W = !1,
55
+ renderOption: J,
56
+ renderMessageListFooter: M,
57
57
  noOptionsMessage: K,
58
58
  loadingMessage: Q,
59
- multiple: c = !1,
60
- closeMenuOnSelect: U = !c,
61
- blurInputOnSelect: S = !1,
59
+ multiple: m = !1,
60
+ closeMenuOnSelect: U = !m,
61
+ blurInputOnSelect: b = !1,
62
62
  autoFocus: X = !1,
63
63
  isClearable: Y = !0,
64
64
  isClearIndicatorVisible: Z = !1,
65
- isSearchable: b = !0,
65
+ isSearchable: I = !0,
66
66
  menuIsOpen: ee,
67
67
  onMenuClose: te,
68
68
  onMenuOpen: oe,
69
69
  onBlur: ae,
70
70
  inputIsHidden: re,
71
- isTagRemovable: M = !1,
71
+ isTagRemovable: O = !1,
72
72
  optionGroupHeadingText: ie = { modifiers: "small", color: "tertiary" },
73
73
  cacheOptions: ne = !0,
74
74
  showRadioButtons: le = !1,
75
75
  renderWithoutLabel: se,
76
76
  tooltip: ce,
77
- classNames: I
78
- } = h, O = t ? (t == null ? void 0 : t.id) ?? `${a}-helper` : void 0, r = L.useRef(null), { getLabel: v } = Te();
79
- L.useImperativeHandle(
80
- y,
81
- () => r.current
77
+ classNames: C
78
+ } = y, v = t ? (t == null ? void 0 : t.id) ?? `${a}-helper` : void 0, i = p.useRef(null), { getLabel: L } = De();
79
+ p.useImperativeHandle(
80
+ N,
81
+ () => i.current
82
82
  );
83
- const de = (d) => {
84
- l == null || l(d), !S && r.current && setTimeout(() => {
85
- var i, n;
86
- return (n = (i = r.current) == null ? void 0 : i.inputRef) == null ? void 0 : n.focus();
83
+ const de = (r) => {
84
+ c == null || c(r), !b && i.current && setTimeout(() => {
85
+ var n, l;
86
+ return (l = (n = i.current) == null ? void 0 : n.inputRef) == null ? void 0 : l.focus();
87
87
  }, 0);
88
- }, me = () => {
89
- const d = {
90
- ClearIndicator: (e) => Oe({ isClearIndicatorVisible: Z, ...e }),
91
- DropdownIndicator: () => Ce({ iconName: w }),
88
+ }, me = p.useCallback(
89
+ (r) => /* @__PURE__ */ s(_e, { ...r, renderMessageListFooter: M }),
90
+ [M]
91
+ ), ue = () => {
92
+ const r = {
93
+ ClearIndicator: (e) => Ce({ isClearIndicatorVisible: Z, ...e }),
94
+ DropdownIndicator: () => Le({ iconName: _ }),
92
95
  IndicatorSeparator: () => null,
93
- MenuPortal: _e,
94
- Menu: Re,
95
- MenuList: (e) => we({ renderMessageListFooter: J, ...e }),
96
- Option: (e) => He({ renderOption: W, multiple: c, showRadioButtons: le, ...e }),
96
+ MenuPortal: $e,
97
+ Menu: we,
98
+ MenuList: me,
99
+ Option: (e) => Pe({ renderOption: J, multiple: m, showRadioButtons: le, ...e }),
97
100
  Control: ve,
98
- Input: Ne,
99
- MultiValue: (e) => $e({ isTagRemovable: M, ...e }),
100
- MultiValueRemove: xe,
101
- Group: Le,
102
- GroupHeading: (e) => he({ optionGroupHeadingText: ie, ...e }),
103
- IndicatorsContainer: ye,
104
- ValueContainer: Pe,
105
- LoadingIndicator: Ve
106
- }, i = A ? be : Se, n = () => v("select.no-options"), pe = () => v("select.loading");
107
- return /* @__PURE__ */ u(
108
- i,
101
+ Input: Ve,
102
+ MultiValue: (e) => xe({ isTagRemovable: O, ...e }),
103
+ MultiValueRemove: He,
104
+ Group: he,
105
+ GroupHeading: (e) => ye({ optionGroupHeadingText: ie, ...e }),
106
+ IndicatorsContainer: Ne,
107
+ ValueContainer: Te,
108
+ LoadingIndicator: Re
109
+ }, n = W ? be : Me, l = () => L("select.no-options"), fe = () => L("select.loading");
110
+ return /* @__PURE__ */ s(
111
+ n,
109
112
  {
110
113
  id: a,
111
- "aria-describedby": O,
114
+ "aria-describedby": v,
112
115
  autoFocus: X,
113
- ref: r,
116
+ ref: i,
114
117
  instanceId: a,
115
118
  className: "tedi-select__wrapper",
116
- name: R,
117
- options: N,
118
- defaultOptions: V,
119
- value: $,
120
- defaultValue: x,
119
+ name: w,
120
+ options: V,
121
+ defaultOptions: R,
122
+ value: x,
123
+ defaultValue: H,
121
124
  cacheOptions: ne,
122
125
  onChange: de,
123
- onInputChange: H,
126
+ onInputChange: P,
124
127
  onBlur: ae,
125
- inputValue: P,
128
+ inputValue: T,
126
129
  inputId: `${a}-input`,
127
- loadOptions: T,
128
- isLoading: D,
129
- noOptionsMessage: K || n,
130
- loadingMessage: Q || pe,
130
+ loadOptions: D,
131
+ isLoading: F,
132
+ noOptionsMessage: K || l,
133
+ loadingMessage: Q || fe,
131
134
  classNamePrefix: "select",
132
- components: d,
133
- isDisabled: g,
134
- isSearchable: b,
135
+ components: r,
136
+ isDisabled: S,
137
+ isSearchable: I,
135
138
  menuIsOpen: ee,
136
- openMenuOnFocus: F,
137
- openMenuOnClick: G,
138
- tabSelectsValue: j,
139
+ openMenuOnFocus: G,
140
+ openMenuOnClick: j,
141
+ tabSelectsValue: k,
139
142
  onMenuClose: te,
140
143
  onMenuOpen: oe,
141
- placeholder: E || "",
144
+ placeholder: q || "",
142
145
  isClearable: Y,
143
- backspaceRemovesValue: M,
146
+ backspaceRemovesValue: O,
144
147
  menuShouldScrollIntoView: !0,
145
- isMulti: c,
148
+ isMulti: m,
146
149
  hideSelectedOptions: !1,
147
150
  closeMenuOnSelect: U,
148
- blurInputOnSelect: S,
151
+ blurInputOnSelect: b,
149
152
  menuPlacement: "auto",
150
153
  inputIsHidden: re,
151
- required: p,
154
+ required: f,
152
155
  menuPortalTarget: document.body,
153
156
  menuPosition: "absolute",
154
- classNames: I ? Object.fromEntries(
155
- Object.entries(I).map(([e, m]) => [
157
+ classNames: C ? Object.fromEntries(
158
+ Object.entries(C).map(([e, u]) => [
156
159
  e,
157
- typeof m == "string" ? () => m : m
160
+ typeof u == "string" ? () => u : u
158
161
  ])
159
162
  ) : void 0,
160
163
  theme: (e) => ({
@@ -174,38 +177,38 @@ const De = ge(
174
177
  }
175
178
  }
176
179
  );
177
- }, ue = fe(
180
+ }, pe = ge(
178
181
  o["tedi-select"],
179
- k,
180
- { [o["tedi-select--invalid"]]: q || (t == null ? void 0 : t.type) === "error" },
181
- { [o["tedi-select--valid"]]: z || (t == null ? void 0 : t.type) === "valid" },
182
- { [o[`tedi-select--${s}`]]: s },
183
- { [o[`tedi-select--tags-${f}`]]: f },
184
- { [o["tedi-select--searchable"]]: b },
185
- { [o["tedi-select--disabled"]]: g }
182
+ B,
183
+ { [o["tedi-select--invalid"]]: z || (t == null ? void 0 : t.type) === "error" },
184
+ { [o["tedi-select--valid"]]: A || (t == null ? void 0 : t.type) === "valid" },
185
+ { [o[`tedi-select--${d}`]]: d },
186
+ { [o[`tedi-select--tags-${g}`]]: g },
187
+ { [o["tedi-select--searchable"]]: I },
188
+ { [o["tedi-select--disabled"]]: S }
186
189
  );
187
- return /* @__PURE__ */ C("div", { "data-name": "select", className: ue, children: [
188
- /* @__PURE__ */ C("div", { className: o["tedi-select__inner"], children: [
189
- /* @__PURE__ */ u(
190
- Ie,
190
+ return /* @__PURE__ */ h("div", { "data-name": "select", className: pe, children: [
191
+ /* @__PURE__ */ h("div", { className: o["tedi-select__inner"], children: [
192
+ /* @__PURE__ */ s(
193
+ Oe,
191
194
  {
192
195
  id: `${a}-input`,
193
- label: _,
194
- required: p,
195
- hideLabel: B,
196
- size: s,
196
+ label: $,
197
+ required: f,
198
+ hideLabel: E,
199
+ size: d,
197
200
  renderWithoutLabel: se,
198
201
  tooltip: ce
199
202
  }
200
203
  ),
201
- me()
204
+ ue()
202
205
  ] }),
203
- t && /* @__PURE__ */ u(Me, { ...t, id: O })
206
+ t && /* @__PURE__ */ s(Ie, { ...t, id: v })
204
207
  ] });
205
208
  }
206
209
  );
207
- De.displayName = "Select";
210
+ Fe.displayName = "Select";
208
211
  export {
209
- De as Select,
210
- De as default
212
+ Fe as Select,
213
+ Fe as default
211
214
  };