@tedi-design-system/react 17.1.0-rc.7 → 17.1.0-rc.9

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.
Files changed (96) hide show
  1. package/_virtual/index.es13.js +2 -2
  2. package/_virtual/index.es14.js +2 -2
  3. package/bundle-stats.html +1 -1
  4. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.cjs.js +1 -1
  5. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.es.js +1 -1
  6. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
  7. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.es.js +1 -1
  8. package/external/hoist-non-react-statics/external/react-is/index.cjs.js +1 -1
  9. package/external/hoist-non-react-statics/external/react-is/index.es.js +1 -1
  10. package/external/prop-types/external/react-is/cjs/react-is.development.cjs.js +1 -1
  11. package/external/prop-types/external/react-is/cjs/react-is.development.es.js +1 -1
  12. package/external/prop-types/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
  13. package/external/prop-types/external/react-is/cjs/react-is.production.min.es.js +1 -1
  14. package/external/prop-types/external/react-is/index.cjs.js +1 -1
  15. package/external/prop-types/external/react-is/index.es.js +1 -1
  16. package/external/react-is/index.cjs.js +1 -1
  17. package/external/react-is/index.es.js +1 -1
  18. package/external/toposort/index.cjs.js +1 -1
  19. package/external/toposort/index.es.js +1 -1
  20. package/index.css +1 -1
  21. package/package.json +1 -1
  22. package/src/tedi/components/form/choice-group/components/choice-group-item/choice-group-item.cjs.js +1 -1
  23. package/src/tedi/components/form/choice-group/components/choice-group-item/choice-group-item.es.js +70 -70
  24. package/src/tedi/components/form/input-group/components/input/input.es.js +8 -8
  25. package/src/tedi/components/form/input-group/components/prefix/prefix.es.js +10 -10
  26. package/src/tedi/components/form/input-group/components/suffix/suffix.es.js +6 -6
  27. package/src/tedi/components/form/input-group/input-group.es.js +13 -13
  28. package/src/tedi/components/form/select/components/select-bulk-helpers.cjs.js +1 -0
  29. package/src/tedi/components/form/select/components/select-bulk-helpers.d.ts +55 -0
  30. package/src/tedi/components/form/select/components/select-bulk-helpers.es.js +34 -0
  31. package/src/tedi/components/form/select/components/select-group-bulk-context.cjs.js +1 -0
  32. package/src/tedi/components/form/select/components/select-group-bulk-context.d.ts +18 -0
  33. package/src/tedi/components/form/select/components/select-group-bulk-context.es.js +6 -0
  34. package/src/tedi/components/form/select/components/select-group-heading.cjs.js +1 -1
  35. package/src/tedi/components/form/select/components/select-group-heading.d.ts +4 -1
  36. package/src/tedi/components/form/select/components/select-group-heading.es.js +43 -8
  37. package/src/tedi/components/form/select/components/select-group.cjs.js +1 -1
  38. package/src/tedi/components/form/select/components/select-group.d.ts +4 -1
  39. package/src/tedi/components/form/select/components/select-group.es.js +18 -6
  40. package/src/tedi/components/form/select/components/select-menu-list.cjs.js +1 -1
  41. package/src/tedi/components/form/select/components/select-menu-list.d.ts +9 -1
  42. package/src/tedi/components/form/select/components/select-menu-list.es.js +22 -8
  43. package/src/tedi/components/form/select/components/select-multi-option.cjs.js +1 -1
  44. package/src/tedi/components/form/select/components/select-multi-option.es.js +40 -18
  45. package/src/tedi/components/form/select/components/select-multi-value.cjs.js +1 -1
  46. package/src/tedi/components/form/select/components/select-multi-value.d.ts +12 -1
  47. package/src/tedi/components/form/select/components/select-multi-value.es.js +42 -8
  48. package/src/tedi/components/form/select/components/select-single-option.cjs.js +1 -1
  49. package/src/tedi/components/form/select/components/select-single-option.es.js +5 -4
  50. package/src/tedi/components/form/select/components/select-single-value.cjs.js +1 -0
  51. package/src/tedi/components/form/select/components/select-single-value.d.ts +3 -0
  52. package/src/tedi/components/form/select/components/select-single-value.es.js +9 -0
  53. package/src/tedi/components/form/select/components/select-tags-context.cjs.js +1 -0
  54. package/src/tedi/components/form/select/components/select-tags-context.d.ts +11 -0
  55. package/src/tedi/components/form/select/components/select-tags-context.es.js +9 -0
  56. package/src/tedi/components/form/select/components/select-value-container.cjs.js +1 -1
  57. package/src/tedi/components/form/select/components/select-value-container.d.ts +12 -2
  58. package/src/tedi/components/form/select/components/select-value-container.es.js +76 -13
  59. package/src/tedi/components/form/select/select.cjs.js +1 -1
  60. package/src/tedi/components/form/select/select.d.ts +258 -0
  61. package/src/tedi/components/form/select/select.es.js +265 -175
  62. package/src/tedi/components/form/select/select.module.scss.cjs.js +1 -1
  63. package/src/tedi/components/form/select/select.module.scss.es.js +14 -5
  64. package/src/tedi/components/form/textfield/textfield.cjs.js +1 -1
  65. package/src/tedi/components/form/textfield/textfield.es.js +110 -110
  66. package/src/tedi/components/form/time-field/time-field-helpers.cjs.js +1 -0
  67. package/src/tedi/components/form/time-field/time-field-helpers.d.ts +51 -0
  68. package/src/tedi/components/form/time-field/time-field-helpers.es.js +65 -0
  69. package/src/tedi/components/form/time-field/time-field.cjs.js +1 -0
  70. package/src/tedi/components/form/time-field/time-field.d.ts +87 -0
  71. package/src/tedi/components/form/time-field/time-field.es.js +149 -0
  72. package/src/tedi/components/form/time-field/time-field.module.scss.cjs.js +1 -0
  73. package/src/tedi/components/form/time-field/time-field.module.scss.es.js +10 -0
  74. package/src/tedi/components/form/time-picker/components/time-grid/time-grid.cjs.js +1 -0
  75. package/src/tedi/components/form/time-picker/components/time-grid/time-grid.d.ts +38 -0
  76. package/src/tedi/components/form/time-picker/components/time-grid/time-grid.es.js +101 -0
  77. package/src/tedi/components/form/time-picker/components/time-wheel/time-wheel.cjs.js +1 -0
  78. package/src/tedi/components/form/time-picker/components/time-wheel/time-wheel.d.ts +40 -0
  79. package/src/tedi/components/form/time-picker/components/time-wheel/time-wheel.es.js +184 -0
  80. package/src/tedi/components/form/time-picker/time-picker.cjs.js +1 -0
  81. package/src/tedi/components/form/time-picker/time-picker.d.ts +60 -0
  82. package/src/tedi/components/form/time-picker/time-picker.es.js +45 -0
  83. package/src/tedi/components/form/time-picker/time-picker.module.scss.cjs.js +1 -0
  84. package/src/tedi/components/form/time-picker/time-picker.module.scss.es.js +14 -0
  85. package/src/tedi/components/overlays/dropdown/dropdown.cjs.js +1 -1
  86. package/src/tedi/components/overlays/dropdown/dropdown.d.ts +9 -0
  87. package/src/tedi/components/overlays/dropdown/dropdown.es.js +98 -88
  88. package/src/tedi/components/tags/tag/tag.cjs.js +1 -1
  89. package/src/tedi/components/tags/tag/tag.d.ts +8 -0
  90. package/src/tedi/components/tags/tag/tag.es.js +14 -13
  91. package/src/tedi/index.d.ts +2 -0
  92. package/src/tedi/providers/label-provider/labels-map.cjs.js +1 -1
  93. package/src/tedi/providers/label-provider/labels-map.d.ts +14 -0
  94. package/src/tedi/providers/label-provider/labels-map.es.js +14 -0
  95. package/tedi.cjs.js +1 -1
  96. package/tedi.es.js +170 -166
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tedi-design-system/react",
3
- "version": "17.1.0-rc.7",
3
+ "version": "17.1.0-rc.9",
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 t=require("react/jsx-runtime"),h=require("../../../../../../../external/classnames/index.cjs.js"),R=require("react"),S=require("../../../checkbox/checkbox.cjs.js"),A=require("../../../feedback-text/feedback-text.cjs.js"),H=require("../../../radio/radio.cjs.js"),L=require("../../choice-group-context.cjs.js"),e=require("./choice-group-item.module.scss.cjs.js"),O=require("../../../../../helpers/hooks/use-breakpoint-props.cjs.js"),V=require("../../../../layout/grid/col.cjs.js"),v=n=>{const{getCurrentBreakpointProps:_}=O.useBreakpointProps(n.defaultServerBreakpoint),{id:c,label:k,value:a,className:q,direction:m,disabled:d,colProps:N=m==="column"?{width:12}:{width:"auto"},onChange:p,hideLabel:I,helper:r,tooltip:B,type:u="radio",variant:s="default",color:$="primary",layout:G,showIndicator:C,justifyContent:x="start"}=_(n),{currentValue:l,name:b,onChange:f,inputType:P}=R.useContext(L.ChoiceGroupContext),i=Array.isArray(l)?l.includes(a):a===l,M=l===void 0?n.defaultChecked:i,y=(o,g)=>{f==null||f(o,g),p==null||p(o,g)},T=h.default(e.default[`tedi-choice-group-item--${G==="separated"?"separated":"segmented"}`],m&&e.default[`tedi-choice-group-item--${m}`]),w=h.default(e.default["tedi-choice-group-item"],e.default[`tedi-choice-group-item--${s}`],e.default[`tedi-choice-group-item--${s}-${$}`],C&&e.default["tedi-choice-group-item--indicator"],u&&e.default[`tedi-choice-group-item--${u}`],{[e.default["tedi-choice-group-item--disabled"]]:d},{[e.default["tedi-choice-group-item--checked"]]:i},{[`justify-content-${x}`]:x}),E=u==="radio"?H.Radio:S.Checkbox,F=o=>{var j;d||s!=="card"||o.target.closest("input, label")||(j=document.getElementById(c))==null||j.click()};return t.jsx(V.Col,{...N,className:T,children:t.jsx("div",{className:w,tabIndex:d?-1:0,onClick:F,role:u,"aria-checked":i,children:s==="default"||C?t.jsx(E,{id:c,label:k,value:a,name:b,className:h.default(e.default["tedi-choice-group-item__indicator"],q),disabled:d,checked:i,defaultChecked:M,onChange:y,hideLabel:I,helper:r?{...r,className:h.default(e.default["tedi-choice-group-item__feedback-text"],r.className)}:void 0,tooltip:B,"data-testid":"choice-group-item-indicator","aria-checked":i}):t.jsxs(t.Fragment,{children:[t.jsx("input",{id:c,value:a,name:b,type:P,disabled:d,checked:i,defaultChecked:l===void 0?n.defaultChecked:void 0,onChange:o=>{y(a,o.target.checked)},className:"visually-hidden",role:u==="radio"?"radio":void 0,"aria-checked":i,tabIndex:-1}),t.jsxs("label",{htmlFor:c,className:e.default["tedi-choice-group-item__label"],children:[k,r&&t.jsx(A.FeedbackText,{...r,id:c,className:e.default["tedi-choice-group-item__feedback-text"]})]})]})})})};exports.ChoiceGroupItem=v;exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),h=require("../../../../../../../external/classnames/index.cjs.js"),S=require("react"),A=require("../../../checkbox/checkbox.cjs.js"),H=require("../../../feedback-text/feedback-text.cjs.js"),L=require("../../../radio/radio.cjs.js"),O=require("../../choice-group-context.cjs.js"),e=require("./choice-group-item.module.scss.cjs.js"),V=require("../../../../../helpers/hooks/use-breakpoint-props.cjs.js"),z=require("../../../../layout/grid/col.cjs.js"),_=n=>{const{getCurrentBreakpointProps:q}=V.useBreakpointProps(n.defaultServerBreakpoint),{id:a,label:C,value:d,className:N,direction:m,disabled:r,colProps:I=m==="column"?{width:12}:{width:"auto"},onChange:p,hideLabel:B,helper:u,tooltip:$,type:o="radio",variant:s="default",color:G="primary",layout:P,showIndicator:x,justifyContent:b="start"}=q(n),{currentValue:l,name:v,onChange:f,inputType:M}=S.useContext(O.ChoiceGroupContext),i=Array.isArray(l)?l.includes(d):d===l,R=l===void 0?n.defaultChecked:i,y=(c,k)=>{f==null||f(c,k),p==null||p(c,k)},T=h.default(e.default[`tedi-choice-group-item--${P==="separated"?"separated":"segmented"}`],m&&e.default[`tedi-choice-group-item--${m}`]),w=h.default(e.default["tedi-choice-group-item"],e.default[`tedi-choice-group-item--${s}`],e.default[`tedi-choice-group-item--${s}-${G}`],x&&e.default["tedi-choice-group-item--indicator"],o&&e.default[`tedi-choice-group-item--${o}`],{[e.default["tedi-choice-group-item--disabled"]]:r},{[e.default["tedi-choice-group-item--checked"]]:i},{[`justify-content-${b}`]:b}),E=o==="radio"?L.Radio:A.Checkbox,F=c=>{var j;r||s!=="card"||c.target.closest("input, label")||(j=document.getElementById(a))==null||j.click()},g=o==="radio";return t.jsx(z.Col,{...I,className:T,children:t.jsx("div",{className:w,tabIndex:g||r?-1:0,onClick:F,role:g?void 0:o,"aria-checked":g?void 0:i,children:s==="default"||x?t.jsx(E,{id:a,label:C,value:d,name:v,className:h.default(e.default["tedi-choice-group-item__indicator"],N),disabled:r,checked:i,defaultChecked:R,onChange:y,hideLabel:B,helper:u?{...u,className:h.default(e.default["tedi-choice-group-item__feedback-text"],u.className)}:void 0,tooltip:$,"data-testid":"choice-group-item-indicator","aria-checked":i}):t.jsxs(t.Fragment,{children:[t.jsx("input",{id:a,value:d,name:v,type:M,disabled:r,checked:i,defaultChecked:l===void 0?n.defaultChecked:void 0,onChange:c=>{y(d,c.target.checked)},className:"visually-hidden",role:o==="radio"?"radio":void 0,"aria-checked":i,tabIndex:-1}),t.jsxs("label",{htmlFor:a,className:e.default["tedi-choice-group-item__label"],children:[C,u&&t.jsx(H.FeedbackText,{...u,id:a,className:e.default["tedi-choice-group-item__feedback-text"]})]})]})})})};exports.ChoiceGroupItem=_;exports.default=_;
@@ -1,105 +1,105 @@
1
- import { jsx as l, jsxs as _, Fragment as M } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as _, Fragment as H } from "react/jsx-runtime";
2
2
  import u from "../../../../../../../external/classnames/index.es.js";
3
- import R from "react";
4
- import { Checkbox as T } from "../../../checkbox/checkbox.es.js";
5
- import { FeedbackText as H } from "../../../feedback-text/feedback-text.es.js";
6
- import { Radio as L } from "../../../radio/radio.es.js";
7
- import { ChoiceGroupContext as S } from "../../choice-group-context.es.js";
3
+ import L from "react";
4
+ import { Checkbox as S } from "../../../checkbox/checkbox.es.js";
5
+ import { FeedbackText as V } from "../../../feedback-text/feedback-text.es.js";
6
+ import { Radio as q } from "../../../radio/radio.es.js";
7
+ import { ChoiceGroupContext as z } from "../../choice-group-context.es.js";
8
8
  import e from "./choice-group-item.module.scss.es.js";
9
- import { useBreakpointProps as V } from "../../../../../helpers/hooks/use-breakpoint-props.es.js";
10
- import { Col as q } from "../../../../layout/grid/col.es.js";
11
- const te = (s) => {
12
- const { getCurrentBreakpointProps: v } = V(s.defaultServerBreakpoint), {
13
- id: i,
14
- label: k,
15
- value: c,
16
- className: I,
9
+ import { useBreakpointProps as D } from "../../../../../helpers/hooks/use-breakpoint-props.es.js";
10
+ import { Col as J } from "../../../../layout/grid/col.es.js";
11
+ const oe = (l) => {
12
+ const { getCurrentBreakpointProps: $ } = D(l.defaultServerBreakpoint), {
13
+ id: c,
14
+ label: C,
15
+ value: r,
16
+ className: B,
17
17
  direction: h,
18
- disabled: r,
19
- colProps: $ = h === "column" ? { width: 12 } : { width: "auto" },
18
+ disabled: a,
19
+ colProps: I = h === "column" ? { width: 12 } : { width: "auto" },
20
20
  onChange: p,
21
- hideLabel: B,
22
- helper: a,
23
- tooltip: j,
24
- type: d = "radio",
21
+ hideLabel: j,
22
+ helper: d,
23
+ tooltip: w,
24
+ type: o = "radio",
25
25
  variant: m = "default",
26
- color: w = "primary",
27
- layout: E,
28
- showIndicator: C,
29
- justifyContent: b = "start"
30
- } = v(s), { currentValue: n, name: y, onChange: f, inputType: F } = R.useContext(S), t = Array.isArray(n) ? n.includes(c) : c === n, G = n === void 0 ? s.defaultChecked : t, x = (o, g) => {
31
- f == null || f(o, g), p == null || p(o, g);
32
- }, P = u(
33
- e[`tedi-choice-group-item--${E === "separated" ? "separated" : "segmented"}`],
26
+ color: E = "primary",
27
+ layout: F,
28
+ showIndicator: b,
29
+ justifyContent: y = "start"
30
+ } = $(l), { currentValue: n, name: v, onChange: f, inputType: G } = L.useContext(z), t = Array.isArray(n) ? n.includes(r) : r === n, P = n === void 0 ? l.defaultChecked : t, x = (i, k) => {
31
+ f == null || f(i, k), p == null || p(i, k);
32
+ }, R = u(
33
+ e[`tedi-choice-group-item--${F === "separated" ? "separated" : "segmented"}`],
34
34
  h && e[`tedi-choice-group-item--${h}`]
35
35
  ), A = u(
36
36
  e["tedi-choice-group-item"],
37
37
  e[`tedi-choice-group-item--${m}`],
38
- e[`tedi-choice-group-item--${m}-${w}`],
39
- C && e["tedi-choice-group-item--indicator"],
40
- d && e[`tedi-choice-group-item--${d}`],
41
- { [e["tedi-choice-group-item--disabled"]]: r },
38
+ e[`tedi-choice-group-item--${m}-${E}`],
39
+ b && e["tedi-choice-group-item--indicator"],
40
+ o && e[`tedi-choice-group-item--${o}`],
41
+ { [e["tedi-choice-group-item--disabled"]]: a },
42
42
  { [e["tedi-choice-group-item--checked"]]: t },
43
- { [`justify-content-${b}`]: b }
44
- );
45
- return /* @__PURE__ */ l(q, { ...$, className: P, children: /* @__PURE__ */ l(
43
+ { [`justify-content-${y}`]: y }
44
+ ), M = o === "radio" ? q : S, T = (i) => {
45
+ var N;
46
+ a || m !== "card" || i.target.closest("input, label") || (N = document.getElementById(c)) == null || N.click();
47
+ }, g = o === "radio";
48
+ return /* @__PURE__ */ s(J, { ...I, className: R, children: /* @__PURE__ */ s(
46
49
  "div",
47
50
  {
48
51
  className: A,
49
- tabIndex: r ? -1 : 0,
50
- onClick: (o) => {
51
- var N;
52
- r || m !== "card" || o.target.closest("input, label") || (N = document.getElementById(i)) == null || N.click();
53
- },
54
- role: d,
55
- "aria-checked": t,
56
- children: m === "default" || C ? /* @__PURE__ */ l(
57
- d === "radio" ? L : T,
52
+ tabIndex: g || a ? -1 : 0,
53
+ onClick: T,
54
+ role: g ? void 0 : o,
55
+ "aria-checked": g ? void 0 : t,
56
+ children: m === "default" || b ? /* @__PURE__ */ s(
57
+ M,
58
58
  {
59
- id: i,
60
- label: k,
61
- value: c,
62
- name: y,
63
- className: u(e["tedi-choice-group-item__indicator"], I),
64
- disabled: r,
59
+ id: c,
60
+ label: C,
61
+ value: r,
62
+ name: v,
63
+ className: u(e["tedi-choice-group-item__indicator"], B),
64
+ disabled: a,
65
65
  checked: t,
66
- defaultChecked: G,
66
+ defaultChecked: P,
67
67
  onChange: x,
68
- hideLabel: B,
69
- helper: a ? { ...a, className: u(e["tedi-choice-group-item__feedback-text"], a.className) } : void 0,
70
- tooltip: j,
68
+ hideLabel: j,
69
+ helper: d ? { ...d, className: u(e["tedi-choice-group-item__feedback-text"], d.className) } : void 0,
70
+ tooltip: w,
71
71
  "data-testid": "choice-group-item-indicator",
72
72
  "aria-checked": t
73
73
  }
74
- ) : /* @__PURE__ */ _(M, { children: [
75
- /* @__PURE__ */ l(
74
+ ) : /* @__PURE__ */ _(H, { children: [
75
+ /* @__PURE__ */ s(
76
76
  "input",
77
77
  {
78
- id: i,
79
- value: c,
80
- name: y,
81
- type: F,
82
- disabled: r,
78
+ id: c,
79
+ value: r,
80
+ name: v,
81
+ type: G,
82
+ disabled: a,
83
83
  checked: t,
84
- defaultChecked: n === void 0 ? s.defaultChecked : void 0,
85
- onChange: (o) => {
86
- x(c, o.target.checked);
84
+ defaultChecked: n === void 0 ? l.defaultChecked : void 0,
85
+ onChange: (i) => {
86
+ x(r, i.target.checked);
87
87
  },
88
88
  className: "visually-hidden",
89
- role: d === "radio" ? "radio" : void 0,
89
+ role: o === "radio" ? "radio" : void 0,
90
90
  "aria-checked": t,
91
91
  tabIndex: -1
92
92
  }
93
93
  ),
94
- /* @__PURE__ */ _("label", { htmlFor: i, className: e["tedi-choice-group-item__label"], children: [
95
- k,
96
- a && /* @__PURE__ */ l(H, { ...a, id: i, className: e["tedi-choice-group-item__feedback-text"] })
94
+ /* @__PURE__ */ _("label", { htmlFor: c, className: e["tedi-choice-group-item__label"], children: [
95
+ C,
96
+ d && /* @__PURE__ */ s(V, { ...d, id: c, className: e["tedi-choice-group-item__feedback-text"] })
97
97
  ] })
98
98
  ] })
99
99
  }
100
100
  ) });
101
101
  };
102
102
  export {
103
- te as ChoiceGroupItem,
104
- te as default
103
+ oe as ChoiceGroupItem,
104
+ oe as default
105
105
  };
@@ -1,19 +1,19 @@
1
- import s from "../../../../../../../external/classnames/index.es.js";
2
- import t from "react";
3
- import { useInputGroup as m } from "../../input-group.es.js";
1
+ import t from "../../../../../../../external/classnames/index.es.js";
2
+ import s from "react";
3
+ import { useInputGroup as u } from "../../input-group.es.js";
4
4
  import o from "../../input-group.module.scss.es.js";
5
5
  const f = ({ children: p }) => {
6
- const { disabled: r, inputId: e } = m();
7
- if (!t.isValidElement(p)) return p;
6
+ const { disabled: r, inputId: e } = u();
7
+ if (!s.isValidElement(p)) return p;
8
8
  const a = typeof p.type == "string", i = {
9
9
  disabled: r || p.props.disabled,
10
10
  id: p.props.id ?? e,
11
- className: s(p.props.className, o["tedi-input-group__input"]),
11
+ className: t(p.props.className, o["tedi-input-group__input"]),
12
12
  ...!a && {
13
- wrapperClassName: s(p.props.wrapperClassName, o["tedi-input-group__input"])
13
+ wrapperClassName: t(p.props.wrapperClassName, o["tedi-input-group__input"])
14
14
  }
15
15
  };
16
- return t.cloneElement(p, i);
16
+ return s.cloneElement(p, i);
17
17
  };
18
18
  export {
19
19
  f as Input
@@ -1,22 +1,22 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import n from "../../../../../../../external/classnames/index.es.js";
3
- import { useEffect as u } from "react";
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import m from "../../../../../../../external/classnames/index.es.js";
3
+ import { useEffect as n } from "react";
4
4
  import { useInputGroup as a } from "../../input-group.es.js";
5
5
  import i from "../../input-group.module.scss.es.js";
6
- const b = ({ children: r, className: o, ...s }) => {
7
- const { registerPrefix: e, unregisterPrefix: t, disabled: p } = a();
8
- u(() => (e(), () => t()), [e, t]);
6
+ const b = ({ children: r, className: o, ...p }) => {
7
+ const { registerPrefix: e, unregisterPrefix: t, disabled: s } = a();
8
+ n(() => (e(), () => t()), [e, t]);
9
9
  const f = typeof r == "string" || typeof r == "number";
10
- return /* @__PURE__ */ m(
10
+ return /* @__PURE__ */ u(
11
11
  "div",
12
12
  {
13
- ...s,
14
- className: n(
13
+ ...p,
14
+ className: m(
15
15
  i["tedi-input-group__prefix"],
16
16
  { [i["tedi-input-group__prefix--no-inner-div"]]: f },
17
17
  o
18
18
  ),
19
- "aria-disabled": p,
19
+ "aria-disabled": s,
20
20
  children: r
21
21
  }
22
22
  );
@@ -2,18 +2,18 @@ import { jsx as p } from "react/jsx-runtime";
2
2
  import m from "../../../../../../../external/classnames/index.es.js";
3
3
  import { useEffect as n } from "react";
4
4
  import { useInputGroup as a } from "../../input-group.es.js";
5
- import s from "../../input-group.module.scss.es.js";
6
- const b = ({ children: r, className: e, ...o }) => {
5
+ import o from "../../input-group.module.scss.es.js";
6
+ const _ = ({ children: r, className: e, ...s }) => {
7
7
  const { registerSuffix: t, unregisterSuffix: i, disabled: f } = a();
8
8
  n(() => (t(), () => i()), [t, i]);
9
9
  const u = typeof r == "string" || typeof r == "number";
10
10
  return /* @__PURE__ */ p(
11
11
  "div",
12
12
  {
13
- ...o,
13
+ ...s,
14
14
  className: m(
15
- s["tedi-input-group__suffix"],
16
- { [s["tedi-input-group__suffix--no-inner-div"]]: u },
15
+ o["tedi-input-group__suffix"],
16
+ { [o["tedi-input-group__suffix--no-inner-div"]]: u },
17
17
  e
18
18
  ),
19
19
  "aria-disabled": f,
@@ -22,5 +22,5 @@ const b = ({ children: r, className: e, ...o }) => {
22
22
  );
23
23
  };
24
24
  export {
25
- b as Suffix
25
+ _ as Suffix
26
26
  };
@@ -7,13 +7,13 @@ import { Input as B } from "./components/input/input.es.js";
7
7
  import { Prefix as M } from "./components/prefix/prefix.es.js";
8
8
  import { Suffix as O } from "./components/suffix/suffix.es.js";
9
9
  import t from "./input-group.module.scss.es.js";
10
- const p = j(null), U = () => {
11
- const u = G(p);
10
+ const a = j(null), U = () => {
11
+ const u = G(a);
12
12
  if (!u) throw new Error("InputGroupContext missing");
13
13
  return u;
14
- }, W = () => G(p), P = H(
15
- ({ className: u, addons: S = !0, helper: r, label: o, children: h, disabled: s, id: y, ...v }, C) => {
16
- const m = g.useRef(null), N = g.useId(), i = y ?? N, [n, d] = l(!1), [a, c] = l(!1);
14
+ }, W = () => G(a), S = H(
15
+ ({ className: u, addons: P = !0, helper: r, label: o, children: h, disabled: s, id: y, ...v }, C) => {
16
+ const m = g.useRef(null), N = g.useId(), i = y ?? N, [n, d] = l(!1), [p, c] = l(!1);
17
17
  E(C, () => ({
18
18
  get root() {
19
19
  return m.current;
@@ -22,7 +22,7 @@ const p = j(null), U = () => {
22
22
  const w = L(
23
23
  () => ({
24
24
  hasPrefix: n,
25
- hasSuffix: a,
25
+ hasSuffix: p,
26
26
  disabled: s,
27
27
  hasExternalLabel: !!o,
28
28
  inputId: i,
@@ -31,31 +31,31 @@ const p = j(null), U = () => {
31
31
  registerSuffix: () => c(!0),
32
32
  unregisterSuffix: () => c(!1)
33
33
  }),
34
- [i, n, a, s, o]
34
+ [i, n, p, s, o]
35
35
  ), A = F(
36
36
  t["tedi-input-group"],
37
37
  {
38
- [t["tedi-input-group--addons"]]: S,
38
+ [t["tedi-input-group--addons"]]: P,
39
39
  [t["tedi-input-group--has-prefix"]]: n,
40
- [t["tedi-input-group--has-suffix"]]: a,
40
+ [t["tedi-input-group--has-suffix"]]: p,
41
41
  [t["tedi-input-group--disabled"]]: s
42
42
  },
43
43
  u
44
44
  ), R = () => !r || Array.isArray(r) && r.length === 0 ? null : /* @__PURE__ */ e("div", { className: t["tedi-input-group__feedback-wrapper"], children: Array.isArray(r) ? r.map((_, x) => /* @__PURE__ */ e(I, { ..._, id: `group-helper-${x}` }, x)) : /* @__PURE__ */ e(I, { ...r, id: "group-helper" }) });
45
- return /* @__PURE__ */ k(p.Provider, { value: w, children: [
45
+ return /* @__PURE__ */ k(a.Provider, { value: w, children: [
46
46
  o && /* @__PURE__ */ e(b, { ...v, label: o, id: i }),
47
47
  /* @__PURE__ */ e("div", { ref: m, className: A, "data-name": "tedi-input-group", "aria-disabled": s, children: h }),
48
48
  R()
49
49
  ] });
50
50
  }
51
51
  );
52
- P.displayName = "InputGroup";
53
- const f = P;
52
+ S.displayName = "InputGroup";
53
+ const f = S;
54
54
  f.Prefix = M;
55
55
  f.Suffix = O;
56
56
  f.Input = B;
57
57
  export {
58
- P as InputGroupBase,
58
+ S as InputGroupBase,
59
59
  f as default,
60
60
  U as useInputGroup,
61
61
  W as useOptionalInputGroup
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i="__tedi_select_all__",r="__tedi_select_group__:",u=e=>!!e&&typeof e.value=="string"&&e.value.startsWith(r),a=e=>{if(!e||e.length===0)return[];const t=[];for(const s of e)if(s&&typeof s=="object"&&Array.isArray(s.options))for(const n of s.options)n.isDisabled||t.push(n);else{const n=s;n&&!n.isDisabled&&t.push(n)}return t},f=e=>!e||!Array.isArray(e.options)?[]:e.options.filter(t=>!t.isDisabled),l=(e,t)=>t.length===0?!1:t.every(s=>e.some(n=>n.value===s.value)),c=(e,t)=>{if(t.length===0)return!1;const s=t.filter(n=>e.some(o=>o.value===n.value)).length;return s>0&&s<t.length},_=(e,t)=>{if(l(e,t))return e.filter(n=>!t.some(o=>o.value===n.value));const s=[...e];for(const n of t)s.some(o=>o.value===n.value)||s.push(n);return s};exports.GROUP_OPTION_PREFIX=r;exports.SELECT_ALL_VALUE=i;exports.areAllSelected=l;exports.getEnabledOptions=a;exports.getGroupEnabledOptions=f;exports.isGroupSentinel=u;exports.isIndeterminate=c;exports.toggleBulkSelection=_;
@@ -0,0 +1,55 @@
1
+ import { GroupBase, OptionsOrGroups } from 'react-select';
2
+ import { ISelectOption } from '../select';
3
+ /**
4
+ * Sentinel value used by the "Select all" option when it is injected into
5
+ * react-select's option list. The sentinel is stripped from the value before
6
+ * it is exposed to consumers via onChange — it never leaks outside the
7
+ * component.
8
+ */
9
+ export declare const SELECT_ALL_VALUE = "__tedi_select_all__";
10
+ export declare const isSelectAllSentinel: (option: {
11
+ value?: string;
12
+ } | null | undefined) => boolean;
13
+ /**
14
+ * Prefix for group sentinel options. When `selectableGroups + multiple` is on,
15
+ * each group is flattened into the option list with a sentinel option at the
16
+ * top of its run; toggling the sentinel toggles every enabled child of that
17
+ * group. The label after the prefix is the original group's label.
18
+ */
19
+ export declare const GROUP_OPTION_PREFIX = "__tedi_select_group__:";
20
+ export declare const isGroupSentinel: (option: {
21
+ value?: string;
22
+ } | null | undefined) => boolean;
23
+ /**
24
+ * Returns true when `options` is a grouped tree (i.e. each top-level entry
25
+ * has its own `options` array).
26
+ */
27
+ export declare const isGroupedOptions: (options: OptionsOrGroups<ISelectOption, GroupBase<ISelectOption>>) => options is ReadonlyArray<GroupBase<ISelectOption>>;
28
+ /**
29
+ * Flattens grouped/non-grouped options into a single list of enabled
30
+ * `ISelectOption`s. Used by Select All and group toggles to decide which
31
+ * options to flip on/off.
32
+ *
33
+ * Handles a mixed input where a flat option (e.g. the injected Select-all
34
+ * sentinel) sits alongside groups in the same top-level array, by checking
35
+ * each item individually rather than only inspecting `options[0]`.
36
+ */
37
+ export declare const getEnabledOptions: (options: OptionsOrGroups<ISelectOption, GroupBase<ISelectOption>>) => ISelectOption[];
38
+ /**
39
+ * Returns the enabled options of a specific group. Pass the group object
40
+ * directly (e.g. `GroupHeadingProps.data` from react-select) — looking groups
41
+ * up by label is unsafe because duplicate labels would always resolve to the
42
+ * first match, mutating the wrong group.
43
+ */
44
+ export declare const getGroupEnabledOptions: (group: GroupBase<ISelectOption> | null | undefined) => ISelectOption[];
45
+ /** True iff every enabled option is currently in the selection. */
46
+ export declare const areAllSelected: (selected: ReadonlyArray<ISelectOption>, enabled: ReadonlyArray<ISelectOption>) => boolean;
47
+ /** True when some — but not all — enabled options are selected. */
48
+ export declare const isIndeterminate: (selected: ReadonlyArray<ISelectOption>, enabled: ReadonlyArray<ISelectOption>) => boolean;
49
+ /**
50
+ * Toggle behaviour for both Select All and group toggle: when every enabled
51
+ * option in `target` is selected, remove them all; otherwise add the missing
52
+ * ones to the existing selection. Other selected values (e.g. options
53
+ * outside `target`) are preserved.
54
+ */
55
+ export declare const toggleBulkSelection: (selected: ReadonlyArray<ISelectOption>, target: ReadonlyArray<ISelectOption>) => ISelectOption[];
@@ -0,0 +1,34 @@
1
+ const i = "__tedi_select_all__", o = "__tedi_select_group__:", u = (t) => !!t && typeof t.value == "string" && t.value.startsWith(o), f = (t) => {
2
+ if (!t || t.length === 0) return [];
3
+ const e = [];
4
+ for (const n of t)
5
+ if (n && typeof n == "object" && Array.isArray(n.options))
6
+ for (const s of n.options)
7
+ s.isDisabled || e.push(s);
8
+ else {
9
+ const s = n;
10
+ s && !s.isDisabled && e.push(s);
11
+ }
12
+ return e;
13
+ }, a = (t) => !t || !Array.isArray(t.options) ? [] : t.options.filter((e) => !e.isDisabled), l = (t, e) => e.length === 0 ? !1 : e.every((n) => t.some((s) => s.value === n.value)), c = (t, e) => {
14
+ if (e.length === 0) return !1;
15
+ const n = e.filter((s) => t.some((r) => r.value === s.value)).length;
16
+ return n > 0 && n < e.length;
17
+ }, _ = (t, e) => {
18
+ if (l(t, e))
19
+ return t.filter((s) => !e.some((r) => r.value === s.value));
20
+ const n = [...t];
21
+ for (const s of e)
22
+ n.some((r) => r.value === s.value) || n.push(s);
23
+ return n;
24
+ };
25
+ export {
26
+ o as GROUP_OPTION_PREFIX,
27
+ i as SELECT_ALL_VALUE,
28
+ l as areAllSelected,
29
+ f as getEnabledOptions,
30
+ a as getGroupEnabledOptions,
31
+ u as isGroupSentinel,
32
+ c as isIndeterminate,
33
+ _ as toggleBulkSelection
34
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(null),u=()=>e.useContext(t);exports.SelectGroupBulkContext=t;exports.useSelectGroupBulkApi=u;
@@ -0,0 +1,18 @@
1
+ import { SetValueAction } from 'react-select';
2
+ import { ISelectOption } from '../select';
3
+ /**
4
+ * Exposes react-select's `getValue` / `setValue` helpers from the `Group`
5
+ * component down to `GroupHeading`. react-select only forwards `selectProps`
6
+ * + theme/styles to the heading at runtime, so the heading can't read these
7
+ * helpers from its own props — it has to grab them from this context.
8
+ *
9
+ * Using `selectProps.value` / `selectProps.onChange` instead would only work
10
+ * in fully controlled mode: in uncontrolled mode `value` is undefined and
11
+ * `onChange` bypasses react-select's internal state.
12
+ */
13
+ export interface SelectGroupBulkApi {
14
+ getValue: () => ReadonlyArray<ISelectOption>;
15
+ setValue: (value: ReadonlyArray<ISelectOption>, action: SetValueAction) => void;
16
+ }
17
+ export declare const SelectGroupBulkContext: import('react').Context<SelectGroupBulkApi | null>;
18
+ export declare const useSelectGroupBulkApi: () => SelectGroupBulkApi | null;
@@ -0,0 +1,6 @@
1
+ import { useContext as t, createContext as e } from "react";
2
+ const o = e(null), l = () => t(o);
3
+ export {
4
+ o as SelectGroupBulkContext,
5
+ l as useSelectGroupBulkApi
6
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("../../../../../../external/classnames/index.cjs.js"),c=require("../../../base/typography/text/text.cjs.js"),u=require("../select.module.scss.cjs.js"),d=require("../../../../../../external/react-select/dist/index-641ee5b8.esm.cjs.js"),s=({optionGroupHeadingText:n,...e})=>{const r=e.data.text||n;return t.jsx(d.c.GroupHeading,{...e,className:i.default(u.default["tedi-select__group-heading"]),children:t.jsx(c.Text,{...r,children:e.data.label})})};exports.SelectGroupHeading=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),S=require("../../../../../../external/classnames/index.cjs.js"),q=require("react"),u=require("../../../base/typography/text/text.cjs.js"),G=require("../../checkbox/checkbox.cjs.js"),i=require("../select.module.scss.cjs.js"),s=require("./select-bulk-helpers.cjs.js"),f=require("./select-group-bulk-context.cjs.js"),j=require("../../../../../../external/react-select/dist/index-641ee5b8.esm.cjs.js"),g=({optionGroupHeadingText:x,...e})=>{const _=q.useId(),d=e.data.text||x,{selectableGroups:h,isMulti:b}=e.selectProps,t=f.useSelectGroupBulkApi(),l=!!b&&!!h&&!!t,c=l?s.getGroupEnabledOptions(e.data):[],o=(t==null?void 0:t.getValue())??[],r=l&&s.areAllSelected(o,c),p=l&&s.isIndeterminate(o,c),m=()=>{if(!l||!t||c.length===0)return;const a=s.toggleBulkSelection(o,c);t.setValue(a,r?"deselect-option":"select-option")};return n.jsx(j.c.GroupHeading,{...e,className:S.default(i.default["tedi-select__group-heading"],{[i.default["tedi-select__group-heading--selectable"]]:l}),children:l?n.jsx("div",{className:i.default["tedi-select__group-heading-toggle"],onMouseDown:a=>a.preventDefault(),children:n.jsx(G.Checkbox,{id:`${e.selectProps.instanceId??"tedi-select"}-group-${_}`,name:"tedi-select__group-toggle",value:`__group_${e.data.label}__`,label:n.jsx(u.Text,{...d,children:e.data.label}),checked:r,indeterminate:p,onChange:m})}):n.jsx(u.Text,{...d,children:e.data.label})})};g.displayName="SelectGroupHeading";exports.SelectGroupHeading=g;
@@ -5,5 +5,8 @@ import { IGroupedOptions, ISelectOption } from '../select';
5
5
  type GroupHeadingType = GroupHeadingProps<ISelectOption, boolean, IGroupedOptions<ISelectOption>> & {
6
6
  optionGroupHeadingText?: Pick<TextProps, 'modifiers' | 'color'>;
7
7
  };
8
- export declare const SelectGroupHeading: ({ optionGroupHeadingText, ...props }: GroupHeadingType) => ReactElement;
8
+ export declare const SelectGroupHeading: {
9
+ ({ optionGroupHeadingText, ...props }: GroupHeadingType): ReactElement;
10
+ displayName: string;
11
+ };
9
12
  export {};
@@ -1,12 +1,47 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import a from "../../../../../../external/classnames/index.es.js";
3
- import { Text as m } from "../../../base/typography/text/text.es.js";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import f from "../../../../../../external/classnames/index.es.js";
3
+ import { useId as b } from "react";
4
+ import { Text as d } from "../../../base/typography/text/text.es.js";
5
+ import { Checkbox as x } from "../../checkbox/checkbox.es.js";
4
6
  import i from "../select.module.scss.es.js";
5
- import { c as s } from "../../../../../../external/react-select/dist/index-641ee5b8.esm.es.js";
6
- const f = ({ optionGroupHeadingText: o, ...t }) => {
7
- const r = t.data.text || o;
8
- return /* @__PURE__ */ e(s.GroupHeading, { ...t, className: a(i["tedi-select__group-heading"]), children: /* @__PURE__ */ e(m, { ...r, children: t.data.label }) });
7
+ import { getGroupEnabledOptions as S, areAllSelected as G, isIndeterminate as v, toggleBulkSelection as H } from "./select-bulk-helpers.es.js";
8
+ import { useSelectGroupBulkApi as I } from "./select-group-bulk-context.es.js";
9
+ import { c as N } from "../../../../../../external/react-select/dist/index-641ee5b8.esm.es.js";
10
+ const k = ({ optionGroupHeadingText: g, ...e }) => {
11
+ const m = b(), s = e.data.text || g, { selectableGroups: u, isMulti: p } = e.selectProps, t = I(), o = !!p && !!u && !!t, n = o ? S(e.data) : [], a = (t == null ? void 0 : t.getValue()) ?? [], r = o && G(a, n), _ = o && v(a, n), h = () => {
12
+ if (!o || !t || n.length === 0) return;
13
+ const c = H(a, n);
14
+ t.setValue(c, r ? "deselect-option" : "select-option");
15
+ };
16
+ return /* @__PURE__ */ l(
17
+ N.GroupHeading,
18
+ {
19
+ ...e,
20
+ className: f(i["tedi-select__group-heading"], {
21
+ [i["tedi-select__group-heading--selectable"]]: o
22
+ }),
23
+ children: o ? (
24
+ // The Checkbox owns the toggle path through its own `onChange`;
25
+ // attaching another handler to the wrapper would fire `handleToggle`
26
+ // twice on a single user click. The wrapper stays only to swallow the
27
+ // mousedown that would otherwise close react-select's menu.
28
+ /* @__PURE__ */ l("div", { className: i["tedi-select__group-heading-toggle"], onMouseDown: (c) => c.preventDefault(), children: /* @__PURE__ */ l(
29
+ x,
30
+ {
31
+ id: `${e.selectProps.instanceId ?? "tedi-select"}-group-${m}`,
32
+ name: "tedi-select__group-toggle",
33
+ value: `__group_${e.data.label}__`,
34
+ label: /* @__PURE__ */ l(d, { ...s, children: e.data.label }),
35
+ checked: r,
36
+ indeterminate: _,
37
+ onChange: h
38
+ }
39
+ ) })
40
+ ) : /* @__PURE__ */ l(d, { ...s, children: e.data.label })
41
+ }
42
+ );
9
43
  };
44
+ k.displayName = "SelectGroupHeading";
10
45
  export {
11
- f as SelectGroupHeading
46
+ k as SelectGroupHeading
12
47
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("../../../../../../external/classnames/index.cjs.js"),u=require("../select.module.scss.cjs.js"),c=require("../../../../../../external/react-select/dist/index-641ee5b8.esm.cjs.js"),i=e=>t.jsx(c.c.Group,{...e,className:r.default(u.default["tedi-select__group"]),children:e.children});exports.SelectGroup=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),o=require("../../../../../../external/classnames/index.cjs.js"),i=require("react"),n=require("../select.module.scss.cjs.js"),s=require("./select-group-bulk-context.cjs.js"),a=require("../../../../../../external/react-select/dist/index-641ee5b8.esm.cjs.js"),u=e=>{const l=i.useMemo(()=>({getValue:()=>e.getValue(),setValue:(r,c)=>e.setValue(r,c)}),[e]);return t.jsx(s.SelectGroupBulkContext.Provider,{value:l,children:t.jsx(a.c.Group,{...e,className:o.default(n.default["tedi-select__group"]),children:e.children})})};u.displayName="SelectGroup";exports.SelectGroup=u;
@@ -1,3 +1,6 @@
1
1
  import { GroupProps } from 'react-select';
2
2
  import { IGroupedOptions, ISelectOption } from '../select';
3
- export declare const SelectGroup: (props: GroupProps<ISelectOption, boolean, IGroupedOptions<ISelectOption>>) => JSX.Element;
3
+ export declare const SelectGroup: {
4
+ (props: GroupProps<ISelectOption, boolean, IGroupedOptions<ISelectOption>>): JSX.Element;
5
+ displayName: string;
6
+ };
@@ -1,8 +1,20 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import e from "../../../../../../external/classnames/index.es.js";
3
- import t from "../select.module.scss.es.js";
4
- import { c as m } from "../../../../../../external/react-select/dist/index-641ee5b8.esm.es.js";
5
- const p = (r) => /* @__PURE__ */ o(m.Group, { ...r, className: e(t["tedi-select__group"]), children: r.children });
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import m from "../../../../../../external/classnames/index.es.js";
3
+ import { useMemo as u } from "react";
4
+ import c from "../select.module.scss.es.js";
5
+ import { SelectGroupBulkContext as i } from "./select-group-bulk-context.es.js";
6
+ import { c as s } from "../../../../../../external/react-select/dist/index-641ee5b8.esm.es.js";
7
+ const a = (e) => {
8
+ const o = u(
9
+ () => ({
10
+ getValue: () => e.getValue(),
11
+ setValue: (r, l) => e.setValue(r, l)
12
+ }),
13
+ [e]
14
+ );
15
+ return /* @__PURE__ */ t(i.Provider, { value: o, children: /* @__PURE__ */ t(s.Group, { ...e, className: m(c["tedi-select__group"]), children: e.children }) });
16
+ };
17
+ a.displayName = "SelectGroup";
6
18
  export {
7
- p as SelectGroup
19
+ a as SelectGroup
8
20
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("../../../../../../external/classnames/index.cjs.js"),l=require("../select.module.scss.cjs.js"),c=require("../../../../../../external/react-select/dist/index-641ee5b8.esm.cjs.js"),n=({renderMessageListFooter:s,...e})=>t.jsxs("div",{className:l.default["tedi-select__menu-list-wrapper"],children:[t.jsx(c.c.MenuList,{...e,className:i.default(e.className,l.default["tedi-select__menu-list"]),children:e.children}),s&&t.jsx("div",{className:l.default["tedi-select__menu-list-footer"],children:s(e)})]});exports.SelectMenuList=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),u=require("../../../../../../external/classnames/index.cjs.js"),t=require("../select.module.scss.cjs.js"),a=require("../../../../../../external/react-select/dist/index-641ee5b8.esm.cjs.js"),d=({renderMessageListFooter:l,...e})=>{const{keyboardMode:s,exitKeyboardMode:c,dropdownType:n}=e.selectProps;return i.jsxs("div",{className:t.default["tedi-select__menu-list-wrapper"],onMouseMove:s?c:void 0,children:[i.jsx(a.c.MenuList,{...e,className:u.default(e.className,t.default["tedi-select__menu-list"],{[t.default["tedi-select__menu-list--keyboard"]]:s,[t.default["tedi-select__menu-list--grid"]]:n==="grid"}),children:e.children}),l&&i.jsx("div",{className:t.default["tedi-select__menu-list-footer"],children:l(e)})]})};d.displayName="SelectMenuList";exports.SelectMenuList=d;