@caspeco/casper-ui-library 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/combobox/combobox-button.js +72 -73
- package/dist/components/combobox/combobox-menu.js +68 -69
- package/dist/components/combobox/combobox.js +104 -109
- package/dist/components/date-picker/base-date-picker.js +175 -176
- package/dist/components/date-picker/date-picker-header.js +10 -10
- package/dist/components/date-picker/helper.js +9 -9
- package/dist/components/image-upload/image-cropper.js +112 -113
- package/dist/components/image-upload/image-upload-dropzone.js +35 -36
- package/dist/components/menu/menu-group.js +44 -45
- package/dist/components/segmented-control/segmented-control.js +29 -29
- package/dist/components/table/table-cell.js +25 -26
- package/dist/components/table/table-header-dropdown.js +60 -60
- package/dist/components/table/table-header-row.js +19 -20
- package/dist/components/table/table-toolbar.js +63 -64
- package/dist/components/table/use-controllable-state.js +7 -7
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +41 -41
- package/dist/node_modules/date-fns/addDays.js +7 -7
- package/dist/node_modules/date-fns/addMonths.js +13 -13
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -11
- package/dist/node_modules/date-fns/endOfDay.js +6 -6
- package/dist/node_modules/date-fns/endOfMonth.js +6 -6
- package/dist/node_modules/date-fns/format.js +46 -47
- package/dist/node_modules/date-fns/getDayOfYear.js +8 -8
- package/dist/node_modules/date-fns/getISOWeek.js +9 -9
- package/dist/node_modules/date-fns/getISOWeekYear.js +10 -10
- package/dist/node_modules/date-fns/getWeek.js +9 -9
- package/dist/node_modules/date-fns/getWeekYear.js +13 -14
- package/dist/node_modules/date-fns/isSameDay.js +9 -9
- package/dist/node_modules/date-fns/isSameMonth.js +9 -9
- package/dist/node_modules/date-fns/isSameWeek.js +8 -8
- package/dist/node_modules/date-fns/isSameYear.js +9 -9
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +12 -12
- package/dist/node_modules/date-fns/locale/da/_lib/formatDistance.js +4 -4
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +3 -3
- package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +4 -4
- package/dist/node_modules/date-fns/locale/et/_lib/formatDistance.js +6 -6
- package/dist/node_modules/date-fns/locale/fi/_lib/formatDistance.js +17 -17
- package/dist/node_modules/date-fns/locale/lt/_lib/formatDistance.js +47 -47
- package/dist/node_modules/date-fns/locale/lv/_lib/formatDistance.js +11 -11
- package/dist/node_modules/date-fns/locale/nb/_lib/formatDistance.js +3 -3
- package/dist/node_modules/date-fns/locale/nl/_lib/formatDistance.js +4 -4
- package/dist/node_modules/date-fns/locale/sv/_lib/formatDistance.js +5 -5
- package/dist/node_modules/date-fns/startOfDay.js +6 -6
- package/dist/node_modules/date-fns/startOfMonth.js +6 -6
- package/dist/node_modules/date-fns/startOfWeek.js +7 -8
- package/dist/node_modules/date-fns/startOfWeekYear.js +9 -10
- package/dist/node_modules/date-fns/startOfYear.js +5 -5
- package/dist/theme/theme-config/components/modal-theme.js +13 -15
- package/dist/theme/theme-config/components/select-theme.js +15 -19
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useStyleConfig as
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { ComboboxItem as
|
|
5
|
-
import { Tag as
|
|
6
|
-
import { Icon as
|
|
7
|
-
import { Icons as
|
|
8
|
-
import { ThemeColorVariable as n, ThemeSpaceVariable as
|
|
9
|
-
function
|
|
1
|
+
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useStyleConfig as z, Flex as p, Box as c, Input as A } from "@chakra-ui/react";
|
|
3
|
+
import { Fragment as E } from "react";
|
|
4
|
+
import { ComboboxItem as S } from "./combobox-item.js";
|
|
5
|
+
import { Tag as F } from "../tag/tag.js";
|
|
6
|
+
import { Icon as L } from "../icon/icon.js";
|
|
7
|
+
import { Icons as N } from "../icon/types.js";
|
|
8
|
+
import { ThemeColorVariable as n, ThemeSpaceVariable as u, ThemeRadiusVariable as X, ThemeIconSizeVariable as K } from "../../theme/theme-types.js";
|
|
9
|
+
function k() {
|
|
10
10
|
return /* @__PURE__ */ i(
|
|
11
11
|
c,
|
|
12
12
|
{
|
|
@@ -26,48 +26,47 @@ function O() {
|
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
id:
|
|
31
|
-
asPlainText:
|
|
32
|
-
inputValue:
|
|
29
|
+
function Q({
|
|
30
|
+
id: s,
|
|
31
|
+
asPlainText: e,
|
|
32
|
+
inputValue: d,
|
|
33
33
|
selectedItems: r,
|
|
34
|
-
displayItems:
|
|
35
|
-
toggleItem:
|
|
36
|
-
highlightState:
|
|
37
|
-
openState:
|
|
38
|
-
parentStrings:
|
|
39
|
-
size:
|
|
40
|
-
variant:
|
|
41
|
-
label:
|
|
42
|
-
placeHolderText:
|
|
43
|
-
isDisabled:
|
|
34
|
+
displayItems: O,
|
|
35
|
+
toggleItem: m,
|
|
36
|
+
highlightState: l,
|
|
37
|
+
openState: a,
|
|
38
|
+
parentStrings: y,
|
|
39
|
+
size: _,
|
|
40
|
+
variant: D,
|
|
41
|
+
label: g,
|
|
42
|
+
placeHolderText: j,
|
|
43
|
+
isDisabled: b,
|
|
44
44
|
isReadOnly: h,
|
|
45
|
-
isInvalid:
|
|
46
|
-
collapsed:
|
|
47
|
-
setInputValue:
|
|
48
|
-
onSearch:
|
|
49
|
-
isSingleSelect:
|
|
45
|
+
isInvalid: B,
|
|
46
|
+
collapsed: w,
|
|
47
|
+
setInputValue: x,
|
|
48
|
+
onSearch: C,
|
|
49
|
+
isSingleSelect: R
|
|
50
50
|
}) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
o.preventDefault(), o.stopPropagation(), l.close(), a || (C(""), e == null || e(""));
|
|
51
|
+
const V = z("Combobox", { size: _, variant: D }), W = (o) => {
|
|
52
|
+
if (o.key === "Enter" && (o.preventDefault(), o.stopPropagation(), a.isOpen ? m(O[l.index]) : a.open()), o.key === "Escape") {
|
|
53
|
+
if (!a.isOpen) return;
|
|
54
|
+
o.preventDefault(), o.stopPropagation(), a.close(), e || (x(""), C?.(""));
|
|
56
55
|
}
|
|
57
|
-
o.key === "Backspace" &&
|
|
58
|
-
},
|
|
56
|
+
o.key === "Backspace" && d.length === 0 && r.length > 0 && !e && m(r[r.length - 1]), o.key === "ArrowDown" && (a.isOpen ? l.next() : a.open()), o.key === "ArrowUp" && (a.isOpen ? l.previous() : a.open());
|
|
57
|
+
}, v = (o) => {
|
|
59
58
|
o.preventDefault(), o.stopPropagation();
|
|
60
|
-
const
|
|
61
|
-
|
|
59
|
+
const t = o.target.value;
|
|
60
|
+
x(t), C?.(t), l.set(0), a.open();
|
|
62
61
|
};
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
|
|
62
|
+
return /* @__PURE__ */ f(
|
|
63
|
+
p,
|
|
65
64
|
{
|
|
66
|
-
__css:
|
|
67
|
-
"aria-disabled":
|
|
65
|
+
__css: V,
|
|
66
|
+
"aria-disabled": b,
|
|
68
67
|
"aria-readonly": h,
|
|
69
|
-
borderRadius:
|
|
70
|
-
padding:
|
|
68
|
+
borderRadius: X.Small,
|
|
69
|
+
padding: u.Small,
|
|
71
70
|
_focusWithin: {
|
|
72
71
|
borderColor: n.Info,
|
|
73
72
|
boxShadow: `0 0 0 4px ${n.InfoContainer}`,
|
|
@@ -78,31 +77,31 @@ function Y({
|
|
|
78
77
|
backgroundColor: n.SurfaceDisabled
|
|
79
78
|
},
|
|
80
79
|
children: [
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
|
|
80
|
+
/* @__PURE__ */ f(
|
|
81
|
+
p,
|
|
83
82
|
{
|
|
84
|
-
flexWrap:
|
|
85
|
-
gap:
|
|
83
|
+
flexWrap: w || R ? "nowrap" : "wrap",
|
|
84
|
+
gap: u.Small,
|
|
86
85
|
overflow: "hidden",
|
|
87
86
|
children: [
|
|
88
|
-
|
|
89
|
-
!
|
|
90
|
-
|
|
87
|
+
g && /* @__PURE__ */ i(c, { whiteSpace: "nowrap", children: g }),
|
|
88
|
+
!e && (w ? r.length > 0 && /* @__PURE__ */ f(
|
|
89
|
+
p,
|
|
91
90
|
{
|
|
92
|
-
gap:
|
|
91
|
+
gap: u.XSmall,
|
|
93
92
|
flexShrink: "1",
|
|
94
93
|
overflow: "hidden",
|
|
95
94
|
whiteSpace: "nowrap",
|
|
96
95
|
textOverflow: "ellipsis",
|
|
97
96
|
children: [
|
|
98
|
-
r.length > 3 && /* @__PURE__ */ i(
|
|
99
|
-
r.length > 2 && /* @__PURE__ */ i(
|
|
100
|
-
r.length > 1 && /* @__PURE__ */ i(
|
|
101
|
-
/* @__PURE__ */ i(
|
|
97
|
+
r.length > 3 && /* @__PURE__ */ i(k, {}),
|
|
98
|
+
r.length > 2 && /* @__PURE__ */ i(k, {}),
|
|
99
|
+
r.length > 1 && /* @__PURE__ */ i(F, { children: r.length - 1 }),
|
|
100
|
+
/* @__PURE__ */ i(S, { item: r[r.length - 1], asPlainText: e })
|
|
102
101
|
]
|
|
103
102
|
}
|
|
104
|
-
) : r.map((o) => /* @__PURE__ */ i(
|
|
105
|
-
|
|
103
|
+
) : r.map((o) => /* @__PURE__ */ i(S, { item: o, asPlainText: e }, o.id))),
|
|
104
|
+
e && r.length > 0 && d === r[0].label && y[r[0].id]?.map((o) => /* @__PURE__ */ f(E, { children: [
|
|
106
105
|
/* @__PURE__ */ i(
|
|
107
106
|
c,
|
|
108
107
|
{
|
|
@@ -114,21 +113,21 @@ function Y({
|
|
|
114
113
|
}
|
|
115
114
|
),
|
|
116
115
|
/* @__PURE__ */ i(c, { color: n.OnSurfaceSubdued, children: "/" })
|
|
117
|
-
] }, o))
|
|
116
|
+
] }, o)),
|
|
118
117
|
/* @__PURE__ */ i(
|
|
119
|
-
|
|
118
|
+
A,
|
|
120
119
|
{
|
|
121
|
-
id:
|
|
122
|
-
isDisabled:
|
|
120
|
+
id: s,
|
|
121
|
+
isDisabled: b,
|
|
123
122
|
isReadOnly: h,
|
|
124
|
-
isInvalid:
|
|
125
|
-
onKeyDown:
|
|
123
|
+
isInvalid: B,
|
|
124
|
+
onKeyDown: W,
|
|
126
125
|
variant: "unstyled",
|
|
127
|
-
value:
|
|
126
|
+
value: d,
|
|
128
127
|
autoComplete: "off",
|
|
129
|
-
minWidth:
|
|
130
|
-
onChange:
|
|
131
|
-
placeholder:
|
|
128
|
+
minWidth: u.XLarge,
|
|
129
|
+
onChange: v,
|
|
130
|
+
placeholder: j,
|
|
132
131
|
border: "none",
|
|
133
132
|
flex: 1,
|
|
134
133
|
color: n.OnSurface,
|
|
@@ -145,12 +144,12 @@ function Y({
|
|
|
145
144
|
]
|
|
146
145
|
}
|
|
147
146
|
),
|
|
148
|
-
/* @__PURE__ */ i(
|
|
149
|
-
|
|
147
|
+
/* @__PURE__ */ i(p, { className: "combobox-dropdown-icon", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ i(
|
|
148
|
+
L,
|
|
150
149
|
{
|
|
151
|
-
icon:
|
|
152
|
-
size:
|
|
153
|
-
color:
|
|
150
|
+
icon: N.TreeViewCollapse,
|
|
151
|
+
size: K.Small,
|
|
152
|
+
color: b || h ? n.OnSurfaceSubdued : n.OnSurface
|
|
154
153
|
}
|
|
155
154
|
) })
|
|
156
155
|
]
|
|
@@ -158,5 +157,5 @@ function Y({
|
|
|
158
157
|
);
|
|
159
158
|
}
|
|
160
159
|
export {
|
|
161
|
-
|
|
160
|
+
Q as ComboboxButton
|
|
162
161
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsxs as l, jsx as i, Fragment as
|
|
1
|
+
import { jsxs as l, jsx as i, Fragment as G } from "react/jsx-runtime";
|
|
2
2
|
import { Box as d, Flex as g } from "@chakra-ui/react";
|
|
3
|
-
import { autoUpdate as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { ComboboxItem as
|
|
6
|
-
import { interpolate as
|
|
7
|
-
import { ThemeColorVariable as o, ThemeShadowVariable as
|
|
8
|
-
import { Text as
|
|
9
|
-
import { Icon as
|
|
10
|
-
import { Icons as
|
|
11
|
-
const
|
|
12
|
-
const [m, s] =
|
|
3
|
+
import { autoUpdate as J, computePosition as K, flip as L } from "../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
4
|
+
import { Fragment as F, useState as N, useEffect as Q } from "react";
|
|
5
|
+
import { ComboboxItem as Z } from "./combobox-item.js";
|
|
6
|
+
import { interpolate as R } from "./translations.js";
|
|
7
|
+
import { ThemeColorVariable as o, ThemeShadowVariable as oo, ThemeRadiusVariable as V, ThemeSpaceVariable as t, ThemeIconSizeVariable as $, ThemeFontSizeVariable as ro, ThemeBorderVariable as no } from "../../theme/theme-types.js";
|
|
8
|
+
import { Text as z } from "../text/text.js";
|
|
9
|
+
import { Icon as P } from "../icon/icon.js";
|
|
10
|
+
import { Icons as B } from "../icon/types.js";
|
|
11
|
+
const eo = (n, e, u, a, b) => {
|
|
12
|
+
const [m, s] = N({
|
|
13
13
|
transform: "translate(0, 0)",
|
|
14
14
|
minWidth: 0
|
|
15
15
|
});
|
|
16
|
-
return
|
|
16
|
+
return Q(() => {
|
|
17
17
|
if (!n.current || !e.current || !u) return () => {
|
|
18
18
|
};
|
|
19
19
|
const S = async () => {
|
|
20
20
|
if (n.current && e.current && u) {
|
|
21
|
-
const { width: p } = n.current.getBoundingClientRect(), { x: h, y: x } = await
|
|
21
|
+
const { width: p } = n.current.getBoundingClientRect(), { x: h, y: x } = await K(n.current, e.current, {
|
|
22
22
|
placement: b || "bottom-start",
|
|
23
|
-
middleware: [
|
|
23
|
+
middleware: [L()]
|
|
24
24
|
});
|
|
25
25
|
s({
|
|
26
26
|
transform: `translate(${h}px, ${x}px)`,
|
|
@@ -28,10 +28,10 @@ const io = (n, e, u, a, b) => {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
return
|
|
31
|
+
return J(n.current, e.current, S);
|
|
32
32
|
}, [n, e, u, b, a]), m;
|
|
33
33
|
};
|
|
34
|
-
function
|
|
34
|
+
function to({
|
|
35
35
|
isSingleSelect: n,
|
|
36
36
|
isChecked: e
|
|
37
37
|
}) {
|
|
@@ -44,21 +44,21 @@ function ao({
|
|
|
44
44
|
flexShrink: "0",
|
|
45
45
|
border: `${n && e ? 8 : 2}px solid ${e ? o.Primary : o.OnBackground}`,
|
|
46
46
|
backgroundColor: e && !n ? o.Primary : "auto",
|
|
47
|
-
borderRadius: n ? "50%" :
|
|
47
|
+
borderRadius: n ? "50%" : V.Small,
|
|
48
48
|
children: !n && e && /* @__PURE__ */ i(
|
|
49
|
-
|
|
49
|
+
P,
|
|
50
50
|
{
|
|
51
51
|
top: "-2px",
|
|
52
52
|
position: "absolute",
|
|
53
|
-
width:
|
|
53
|
+
width: $.Small,
|
|
54
54
|
color: o.Surface,
|
|
55
|
-
icon:
|
|
55
|
+
icon: B.Checkbox
|
|
56
56
|
}
|
|
57
57
|
)
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function fo({
|
|
62
62
|
asPlainText: n,
|
|
63
63
|
inputValue: e,
|
|
64
64
|
selectedItems: u,
|
|
@@ -70,23 +70,23 @@ function So({
|
|
|
70
70
|
isSingleSelect: p,
|
|
71
71
|
isSearching: h,
|
|
72
72
|
isReadOnly: x,
|
|
73
|
-
isHidingItems:
|
|
74
|
-
popoverWidth:
|
|
75
|
-
popoverPlacement:
|
|
73
|
+
isHidingItems: D,
|
|
74
|
+
popoverWidth: I,
|
|
75
|
+
popoverPlacement: X,
|
|
76
76
|
previousSelectedItems: k,
|
|
77
|
-
parentRef:
|
|
78
|
-
popupRef:
|
|
79
|
-
footerContent:
|
|
80
|
-
subMenuState:
|
|
81
|
-
translation:
|
|
77
|
+
parentRef: j,
|
|
78
|
+
popupRef: C,
|
|
79
|
+
footerContent: O,
|
|
80
|
+
subMenuState: v,
|
|
81
|
+
translation: M
|
|
82
82
|
}) {
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
const H = eo(
|
|
84
|
+
j,
|
|
85
|
+
C,
|
|
86
86
|
s.isOpen,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
),
|
|
87
|
+
I,
|
|
88
|
+
X
|
|
89
|
+
), A = (r) => {
|
|
90
90
|
m.set(r);
|
|
91
91
|
};
|
|
92
92
|
return /* @__PURE__ */ l(
|
|
@@ -98,12 +98,12 @@ function So({
|
|
|
98
98
|
zIndex: "50",
|
|
99
99
|
visibility: "visible",
|
|
100
100
|
backgroundColor: o.Surface,
|
|
101
|
-
borderRadius:
|
|
102
|
-
boxShadow:
|
|
101
|
+
borderRadius: V.Medium,
|
|
102
|
+
boxShadow: oo.Medium,
|
|
103
103
|
color: o.OnSurface,
|
|
104
104
|
overflow: "hidden",
|
|
105
|
-
style:
|
|
106
|
-
ref:
|
|
105
|
+
style: H,
|
|
106
|
+
ref: C,
|
|
107
107
|
onClick: (r) => {
|
|
108
108
|
r.preventDefault(), r.stopPropagation(), p && s.close();
|
|
109
109
|
},
|
|
@@ -119,38 +119,37 @@ function So({
|
|
|
119
119
|
padding: `${t.Small} 0`,
|
|
120
120
|
children: [
|
|
121
121
|
h && a.length === 0 && e.length > 0 && /* @__PURE__ */ i(
|
|
122
|
-
|
|
122
|
+
z,
|
|
123
123
|
{
|
|
124
124
|
px: t.Small,
|
|
125
125
|
color: o.OnSurfaceSubdued,
|
|
126
|
-
children: `${
|
|
126
|
+
children: `${M.noMatchFor} "${e}"`
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
129
|
a.map((r, f) => {
|
|
130
|
-
|
|
131
|
-
const y = u.some((c) => c.id === r.id), Y = (c) => {
|
|
130
|
+
const T = u.some((c) => c.id === r.id), E = (c) => {
|
|
132
131
|
c.stopPropagation(), c.preventDefault(), b(r);
|
|
133
|
-
},
|
|
134
|
-
/* @__PURE__ */ i(
|
|
132
|
+
}, U = r.children?.length, w = r.id === "_back", W = v.opened[v.opened.length - 1], y = r.id === W?.id, Y = w ? /* @__PURE__ */ l(g, { gap: t.XSmall, alignItems: "center", children: [
|
|
133
|
+
/* @__PURE__ */ i(P, { icon: B.Back, size: $.Small }),
|
|
135
134
|
r.label
|
|
136
|
-
] }) : /* @__PURE__ */ l(
|
|
135
|
+
] }) : /* @__PURE__ */ l(G, { children: [
|
|
137
136
|
/* @__PURE__ */ l(g, { gap: t.XSmall, alignItems: "center", whiteSpace: "nowrap", children: [
|
|
138
|
-
|
|
137
|
+
S[r.id]?.map((c) => /* @__PURE__ */ l(F, { children: [
|
|
139
138
|
/* @__PURE__ */ i(d, { color: o.OnSurfaceSubdued, children: c }),
|
|
140
139
|
/* @__PURE__ */ i(d, { color: o.OnSurfaceSubdued, children: "/" })
|
|
141
140
|
] }, c)),
|
|
142
|
-
/* @__PURE__ */ i(
|
|
141
|
+
/* @__PURE__ */ i(Z, { item: r, asPlainText: n })
|
|
143
142
|
] }),
|
|
144
|
-
x ? void 0 :
|
|
145
|
-
|
|
143
|
+
x ? void 0 : U && !y && !h ? /* @__PURE__ */ i(
|
|
144
|
+
P,
|
|
146
145
|
{
|
|
147
|
-
icon:
|
|
148
|
-
size:
|
|
146
|
+
icon: B.Forward,
|
|
147
|
+
size: $.Small,
|
|
149
148
|
color: o.OnBackgroundSubdued
|
|
150
149
|
}
|
|
151
|
-
) : /* @__PURE__ */ i(
|
|
152
|
-
] }),
|
|
153
|
-
return /* @__PURE__ */ l(
|
|
150
|
+
) : /* @__PURE__ */ i(to, { isSingleSelect: p, isChecked: T })
|
|
151
|
+
] }), _ = k.length > 0 && k.length - 1 === f && k.length < a.length, q = !x && !h && (_ || (w || y));
|
|
152
|
+
return /* @__PURE__ */ l(F, { children: [
|
|
154
153
|
/* @__PURE__ */ i(
|
|
155
154
|
g,
|
|
156
155
|
{
|
|
@@ -162,15 +161,15 @@ function So({
|
|
|
162
161
|
gap: t.Medium,
|
|
163
162
|
textDecoration: "none",
|
|
164
163
|
backgroundColor: m.index === f ? o.AccentHoverAlpha : "",
|
|
165
|
-
onClick:
|
|
164
|
+
onClick: E,
|
|
166
165
|
tabIndex: -1,
|
|
167
|
-
onMouseEnter: () =>
|
|
166
|
+
onMouseEnter: () => A(f),
|
|
168
167
|
"data-is-active-index": m.index === f,
|
|
169
|
-
"aria-selected":
|
|
170
|
-
children:
|
|
168
|
+
"aria-selected": T,
|
|
169
|
+
children: Y
|
|
171
170
|
}
|
|
172
171
|
),
|
|
173
|
-
|
|
172
|
+
q && /* @__PURE__ */ i(
|
|
174
173
|
d,
|
|
175
174
|
{
|
|
176
175
|
margin: `${t.Small} ${w ? 0 : t.Medium}`,
|
|
@@ -181,14 +180,14 @@ function So({
|
|
|
181
180
|
)
|
|
182
181
|
] }, r.id);
|
|
183
182
|
}),
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
D && /* @__PURE__ */ i(
|
|
184
|
+
z,
|
|
186
185
|
{
|
|
187
186
|
px: t.Small,
|
|
188
187
|
py: t.Small,
|
|
189
188
|
color: o.OnSurfaceSubdued,
|
|
190
|
-
fontSize:
|
|
191
|
-
children:
|
|
189
|
+
fontSize: ro.Small,
|
|
190
|
+
children: R(M.showMaxItems, {
|
|
192
191
|
count: a.length
|
|
193
192
|
})
|
|
194
193
|
}
|
|
@@ -196,15 +195,15 @@ function So({
|
|
|
196
195
|
]
|
|
197
196
|
}
|
|
198
197
|
),
|
|
199
|
-
|
|
198
|
+
O && /* @__PURE__ */ i(
|
|
200
199
|
d,
|
|
201
200
|
{
|
|
202
201
|
position: "sticky",
|
|
203
202
|
bottom: "0",
|
|
204
203
|
backgroundColor: o.Surface,
|
|
205
204
|
padding: `${t.Small} ${t.Medium}`,
|
|
206
|
-
borderTop: `${
|
|
207
|
-
children:
|
|
205
|
+
borderTop: `${no.XSmall} ${o.OnSurfaceBorder}`,
|
|
206
|
+
children: O
|
|
208
207
|
}
|
|
209
208
|
)
|
|
210
209
|
]
|
|
@@ -212,6 +211,6 @@ function So({
|
|
|
212
211
|
);
|
|
213
212
|
}
|
|
214
213
|
export {
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
to as CheckboxOrRadioButton,
|
|
215
|
+
fo as ComboboxMenu
|
|
217
216
|
};
|