@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.
- package/_virtual/index.es13.js +2 -2
- package/_virtual/index.es14.js +2 -2
- package/bundle-stats.html +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/prop-types/external/react-is/index.cjs.js +1 -1
- package/external/prop-types/external/react-is/index.es.js +1 -1
- package/external/react-is/index.cjs.js +1 -1
- package/external/react-is/index.es.js +1 -1
- package/external/toposort/index.cjs.js +1 -1
- package/external/toposort/index.es.js +1 -1
- package/index.css +1 -1
- package/package.json +1 -1
- package/src/tedi/components/form/choice-group/components/choice-group-item/choice-group-item.cjs.js +1 -1
- package/src/tedi/components/form/choice-group/components/choice-group-item/choice-group-item.es.js +70 -70
- package/src/tedi/components/form/input-group/components/input/input.es.js +8 -8
- package/src/tedi/components/form/input-group/components/prefix/prefix.es.js +10 -10
- package/src/tedi/components/form/input-group/components/suffix/suffix.es.js +6 -6
- package/src/tedi/components/form/input-group/input-group.es.js +13 -13
- package/src/tedi/components/form/select/components/select-bulk-helpers.cjs.js +1 -0
- package/src/tedi/components/form/select/components/select-bulk-helpers.d.ts +55 -0
- package/src/tedi/components/form/select/components/select-bulk-helpers.es.js +34 -0
- package/src/tedi/components/form/select/components/select-group-bulk-context.cjs.js +1 -0
- package/src/tedi/components/form/select/components/select-group-bulk-context.d.ts +18 -0
- package/src/tedi/components/form/select/components/select-group-bulk-context.es.js +6 -0
- package/src/tedi/components/form/select/components/select-group-heading.cjs.js +1 -1
- package/src/tedi/components/form/select/components/select-group-heading.d.ts +4 -1
- package/src/tedi/components/form/select/components/select-group-heading.es.js +43 -8
- package/src/tedi/components/form/select/components/select-group.cjs.js +1 -1
- package/src/tedi/components/form/select/components/select-group.d.ts +4 -1
- package/src/tedi/components/form/select/components/select-group.es.js +18 -6
- package/src/tedi/components/form/select/components/select-menu-list.cjs.js +1 -1
- package/src/tedi/components/form/select/components/select-menu-list.d.ts +9 -1
- package/src/tedi/components/form/select/components/select-menu-list.es.js +22 -8
- package/src/tedi/components/form/select/components/select-multi-option.cjs.js +1 -1
- package/src/tedi/components/form/select/components/select-multi-option.es.js +40 -18
- package/src/tedi/components/form/select/components/select-multi-value.cjs.js +1 -1
- package/src/tedi/components/form/select/components/select-multi-value.d.ts +12 -1
- package/src/tedi/components/form/select/components/select-multi-value.es.js +42 -8
- package/src/tedi/components/form/select/components/select-single-option.cjs.js +1 -1
- package/src/tedi/components/form/select/components/select-single-option.es.js +5 -4
- package/src/tedi/components/form/select/components/select-single-value.cjs.js +1 -0
- package/src/tedi/components/form/select/components/select-single-value.d.ts +3 -0
- package/src/tedi/components/form/select/components/select-single-value.es.js +9 -0
- package/src/tedi/components/form/select/components/select-tags-context.cjs.js +1 -0
- package/src/tedi/components/form/select/components/select-tags-context.d.ts +11 -0
- package/src/tedi/components/form/select/components/select-tags-context.es.js +9 -0
- package/src/tedi/components/form/select/components/select-value-container.cjs.js +1 -1
- package/src/tedi/components/form/select/components/select-value-container.d.ts +12 -2
- package/src/tedi/components/form/select/components/select-value-container.es.js +76 -13
- package/src/tedi/components/form/select/select.cjs.js +1 -1
- package/src/tedi/components/form/select/select.d.ts +258 -0
- package/src/tedi/components/form/select/select.es.js +265 -175
- package/src/tedi/components/form/select/select.module.scss.cjs.js +1 -1
- package/src/tedi/components/form/select/select.module.scss.es.js +14 -5
- package/src/tedi/components/form/textfield/textfield.cjs.js +1 -1
- package/src/tedi/components/form/textfield/textfield.es.js +110 -110
- package/src/tedi/components/form/time-field/time-field-helpers.cjs.js +1 -0
- package/src/tedi/components/form/time-field/time-field-helpers.d.ts +51 -0
- package/src/tedi/components/form/time-field/time-field-helpers.es.js +65 -0
- package/src/tedi/components/form/time-field/time-field.cjs.js +1 -0
- package/src/tedi/components/form/time-field/time-field.d.ts +87 -0
- package/src/tedi/components/form/time-field/time-field.es.js +149 -0
- package/src/tedi/components/form/time-field/time-field.module.scss.cjs.js +1 -0
- package/src/tedi/components/form/time-field/time-field.module.scss.es.js +10 -0
- package/src/tedi/components/form/time-picker/components/time-grid/time-grid.cjs.js +1 -0
- package/src/tedi/components/form/time-picker/components/time-grid/time-grid.d.ts +38 -0
- package/src/tedi/components/form/time-picker/components/time-grid/time-grid.es.js +101 -0
- package/src/tedi/components/form/time-picker/components/time-wheel/time-wheel.cjs.js +1 -0
- package/src/tedi/components/form/time-picker/components/time-wheel/time-wheel.d.ts +40 -0
- package/src/tedi/components/form/time-picker/components/time-wheel/time-wheel.es.js +184 -0
- package/src/tedi/components/form/time-picker/time-picker.cjs.js +1 -0
- package/src/tedi/components/form/time-picker/time-picker.d.ts +60 -0
- package/src/tedi/components/form/time-picker/time-picker.es.js +45 -0
- package/src/tedi/components/form/time-picker/time-picker.module.scss.cjs.js +1 -0
- package/src/tedi/components/form/time-picker/time-picker.module.scss.es.js +14 -0
- package/src/tedi/components/overlays/dropdown/dropdown.cjs.js +1 -1
- package/src/tedi/components/overlays/dropdown/dropdown.d.ts +9 -0
- package/src/tedi/components/overlays/dropdown/dropdown.es.js +98 -88
- package/src/tedi/components/tags/tag/tag.cjs.js +1 -1
- package/src/tedi/components/tags/tag/tag.d.ts +8 -0
- package/src/tedi/components/tags/tag/tag.es.js +14 -13
- package/src/tedi/index.d.ts +2 -0
- package/src/tedi/providers/label-provider/labels-map.cjs.js +1 -1
- package/src/tedi/providers/label-provider/labels-map.d.ts +14 -0
- package/src/tedi/providers/label-provider/labels-map.es.js +14 -0
- package/tedi.cjs.js +1 -1
- package/tedi.es.js +170 -166
package/package.json
CHANGED
package/src/tedi/components/form/choice-group/components/choice-group-item/choice-group-item.cjs.js
CHANGED
|
@@ -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"),
|
|
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=_;
|
package/src/tedi/components/form/choice-group/components/choice-group-item/choice-group-item.es.js
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import { jsx as
|
|
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
|
|
4
|
-
import { Checkbox as
|
|
5
|
-
import { FeedbackText as
|
|
6
|
-
import { Radio as
|
|
7
|
-
import { ChoiceGroupContext as
|
|
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
|
|
10
|
-
import { Col as
|
|
11
|
-
const
|
|
12
|
-
const { getCurrentBreakpointProps:
|
|
13
|
-
id:
|
|
14
|
-
label:
|
|
15
|
-
value:
|
|
16
|
-
className:
|
|
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:
|
|
19
|
-
colProps:
|
|
18
|
+
disabled: a,
|
|
19
|
+
colProps: I = h === "column" ? { width: 12 } : { width: "auto" },
|
|
20
20
|
onChange: p,
|
|
21
|
-
hideLabel:
|
|
22
|
-
helper:
|
|
23
|
-
tooltip:
|
|
24
|
-
type:
|
|
21
|
+
hideLabel: j,
|
|
22
|
+
helper: d,
|
|
23
|
+
tooltip: w,
|
|
24
|
+
type: o = "radio",
|
|
25
25
|
variant: m = "default",
|
|
26
|
-
color:
|
|
27
|
-
layout:
|
|
28
|
-
showIndicator:
|
|
29
|
-
justifyContent:
|
|
30
|
-
} =
|
|
31
|
-
f == null || f(
|
|
32
|
-
},
|
|
33
|
-
e[`tedi-choice-group-item--${
|
|
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}-${
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{ [e["tedi-choice-group-item--disabled"]]:
|
|
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-${
|
|
44
|
-
)
|
|
45
|
-
|
|
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:
|
|
50
|
-
onClick:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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:
|
|
60
|
-
label:
|
|
61
|
-
value:
|
|
62
|
-
name:
|
|
63
|
-
className: u(e["tedi-choice-group-item__indicator"],
|
|
64
|
-
disabled:
|
|
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:
|
|
66
|
+
defaultChecked: P,
|
|
67
67
|
onChange: x,
|
|
68
|
-
hideLabel:
|
|
69
|
-
helper:
|
|
70
|
-
tooltip:
|
|
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__ */ _(
|
|
75
|
-
/* @__PURE__ */
|
|
74
|
+
) : /* @__PURE__ */ _(H, { children: [
|
|
75
|
+
/* @__PURE__ */ s(
|
|
76
76
|
"input",
|
|
77
77
|
{
|
|
78
|
-
id:
|
|
79
|
-
value:
|
|
80
|
-
name:
|
|
81
|
-
type:
|
|
82
|
-
disabled:
|
|
78
|
+
id: c,
|
|
79
|
+
value: r,
|
|
80
|
+
name: v,
|
|
81
|
+
type: G,
|
|
82
|
+
disabled: a,
|
|
83
83
|
checked: t,
|
|
84
|
-
defaultChecked: n === void 0 ?
|
|
85
|
-
onChange: (
|
|
86
|
-
x(
|
|
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:
|
|
89
|
+
role: o === "radio" ? "radio" : void 0,
|
|
90
90
|
"aria-checked": t,
|
|
91
91
|
tabIndex: -1
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
|
-
/* @__PURE__ */ _("label", { htmlFor:
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
104
|
-
|
|
103
|
+
oe as ChoiceGroupItem,
|
|
104
|
+
oe as default
|
|
105
105
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { useInputGroup as
|
|
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 } =
|
|
7
|
-
if (!
|
|
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:
|
|
11
|
+
className: t(p.props.className, o["tedi-input-group__input"]),
|
|
12
12
|
...!a && {
|
|
13
|
-
wrapperClassName:
|
|
13
|
+
wrapperClassName: t(p.props.wrapperClassName, o["tedi-input-group__input"])
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
return
|
|
16
|
+
return s.cloneElement(p, i);
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
19
|
f as Input
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useEffect as
|
|
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, ...
|
|
7
|
-
const { registerPrefix: e, unregisterPrefix: t, disabled:
|
|
8
|
-
|
|
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__ */
|
|
10
|
+
return /* @__PURE__ */ u(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
|
13
|
-
...
|
|
14
|
-
className:
|
|
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":
|
|
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
|
|
6
|
-
const
|
|
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
|
-
...
|
|
13
|
+
...s,
|
|
14
14
|
className: m(
|
|
15
|
-
|
|
16
|
-
{ [
|
|
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
|
-
|
|
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
|
|
11
|
-
const u = G(
|
|
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(
|
|
15
|
-
({ className: u, addons:
|
|
16
|
-
const m = g.useRef(null), N = g.useId(), i = y ?? N, [n, d] = 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:
|
|
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,
|
|
34
|
+
[i, n, p, s, o]
|
|
35
35
|
), A = F(
|
|
36
36
|
t["tedi-input-group"],
|
|
37
37
|
{
|
|
38
|
-
[t["tedi-input-group--addons"]]:
|
|
38
|
+
[t["tedi-input-group--addons"]]: P,
|
|
39
39
|
[t["tedi-input-group--has-prefix"]]: n,
|
|
40
|
-
[t["tedi-input-group--has-suffix"]]:
|
|
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(
|
|
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
|
-
|
|
53
|
-
const f =
|
|
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
|
-
|
|
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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:
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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 {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
46
|
+
k as SelectGroupHeading
|
|
12
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),
|
|
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:
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
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
|
-
|
|
19
|
+
a as SelectGroup
|
|
8
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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;
|