impact-nova 2.1.0-alpha.7 → 2.1.0-alpha.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/dist/components/data/ag-grid-react/ag-grid.types.d.ts +6 -0
- package/dist/components/data/ag-grid-react/build-ag-grid-theme.d.ts +3 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/input-cell-editor.js +58 -58
- package/dist/components/data/ag-grid-react/column-indicator-sync-bus.d.ts +9 -0
- package/dist/components/data/ag-grid-react/column-indicator-sync-bus.js +15 -0
- package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +78 -73
- package/dist/components/data/ag-grid-react/headers/custom-header.js +3 -1
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +87 -91
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +109 -100
- package/dist/components/data/ag-grid-react/notify-column-indicator-sync.d.ts +3 -2
- package/dist/components/data/ag-grid-react/notify-column-indicator-sync.js +4 -3
- package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.d.ts +3 -0
- package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.js +10 -0
- package/dist/components/data/ag-grid-react/theme.d.ts +1 -0
- package/dist/components/data/ag-grid-react/theme.js +93 -21
- package/dist/components/data/data-table/column-indicator.d.ts +1 -1
- package/dist/components/data/data-table/column-indicator.js +15 -11
- package/dist/components/data/data-table/data-table-column-def-pin.d.ts +9 -4
- package/dist/components/data/data-table/data-table-column-def-pin.js +38 -38
- package/dist/components/data/data-table/data-table-saved-views.js +37 -37
- package/dist/components/data/data-table/data-table.js +78 -73
- package/dist/components/data/data-table/data-table.types.d.ts +7 -1
- package/dist/components/data/data-table/indicator-legend.d.ts +13 -2
- package/dist/components/data/data-table/indicator-legend.js +20 -17
- package/dist/components/data/data-table/pin-switch.js +9 -9
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +92 -89
- package/dist/components/data/nested-list/nested-list-change-detection.d.ts +11 -0
- package/dist/components/data/nested-list/nested-list-change-detection.js +13 -0
- package/dist/components/data/nested-list/nested-list.js +107 -97
- package/dist/components/data-display/calendar/calendar.d.ts +1 -1
- package/dist/components/data-display/calendar/calendar.js +194 -189
- package/dist/components/data-display/chart/chart-palette.d.ts +16 -0
- package/dist/components/data-display/chart/chart-palette.js +28 -0
- package/dist/components/data-display/chart/chart.js +121 -115
- package/dist/components/data-display/chart/chart.utils.js +9 -6
- package/dist/components/data-display/chart/index.d.ts +1 -0
- package/dist/components/data-display/chart/index.js +15 -9
- package/dist/components/data-display/chart/resolve-highcharts-options.d.ts +3 -0
- package/dist/components/data-display/chart/resolve-highcharts-options.js +35 -0
- package/dist/components/data-display/statistics-card/statistics-card.color.d.ts +6 -0
- package/dist/components/data-display/statistics-card/statistics-card.color.js +19 -0
- package/dist/components/data-display/statistics-card/statistics-card.hooks.js +50 -48
- package/dist/components/data-display/statistics-card/statistics-card.js +127 -146
- package/dist/components/feedback/alert-dialog/alert-dialog.js +15 -15
- package/dist/components/feedback/dialog/dialog.js +3 -3
- package/dist/components/feedback/drawer/drawer.js +32 -32
- package/dist/components/feedback/sheet/sheet.js +8 -8
- package/dist/components/feedback/sheet/sheet.variants.js +1 -1
- package/dist/components/feedback/toast/toast.js +83 -92
- package/dist/components/flows/command-palette/command-palette-context.types.d.ts +5 -0
- package/dist/components/flows/command-palette/command-palette.d.ts +4 -16
- package/dist/components/flows/command-palette/command-palette.js +245 -258
- package/dist/components/flows/command-palette/command-palette.types.d.ts +9 -0
- package/dist/components/flows/command-palette/shortcut-overlay.js +6 -6
- package/dist/components/flows/filter-panel/filter-panel.d.ts +3 -2
- package/dist/components/flows/filter-panel/filter-panel.js +99 -104
- package/dist/components/flows/filter-strip/filter-summary.js +41 -41
- package/dist/components/flows/filter-strip/filter-tag-list.js +48 -48
- package/dist/components/flows/wizard/wizard.js +32 -32
- package/dist/components/forms/choice-card/choice-card.d.ts +2 -2
- package/dist/components/forms/choice-card/choice-card.js +156 -166
- package/dist/components/forms/combobox/combobox.js +70 -70
- package/dist/components/forms/date-picker/date-picker.js +31 -30
- package/dist/components/forms/file-upload/file-upload.js +146 -168
- package/dist/components/forms/prompt/prompt.js +47 -48
- package/dist/components/forms/select/components/SelectAllRow.js +14 -14
- package/dist/components/forms/select/components/SelectMenuFooter.js +12 -12
- package/dist/components/forms/select/components/SelectMenuHeader.js +44 -44
- package/dist/components/forms/select/components/SelectMenuListBody.js +22 -22
- package/dist/components/forms/select/components/SelectMenuPanel.js +8 -8
- package/dist/components/forms/select/components/SelectOptionRow.js +62 -62
- package/dist/components/forms/select/select.d.ts +5 -4
- package/dist/components/forms/select/select.js +123 -120
- package/dist/components/forms/select/select.types.d.ts +95 -204
- package/dist/components/forms/slider/slider.js +17 -17
- package/dist/components/forms/smart-input/smart-input.js +49 -49
- package/dist/components/forms/textarea/textarea.js +25 -25
- package/dist/components/layout/breadcrumb/breadcrumb.js +112 -118
- package/dist/components/layout/header/header.d.ts +5 -17
- package/dist/components/layout/header/header.js +113 -116
- package/dist/components/layout/header/header.types.d.ts +3 -0
- package/dist/components/layout/sidebar/sidebar.js +5 -5
- package/dist/components/layout/sidebar/sidebar.variants.js +1 -1
- package/dist/components/primitives/accordion/accordion.js +38 -41
- package/dist/components/primitives/kbd/kbd.variants.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +2 -0
- package/dist/i18n/defaultMessages.js +6 -4
- package/dist/i18n/locales/de.js +2 -0
- package/dist/i18n/locales/es.js +2 -0
- package/dist/i18n/locales/hi.js +2 -0
- package/dist/i18n/locales/kn.js +2 -0
- package/dist/impact-nova-base.scss +8 -5
- package/dist/impact-nova-components.css +2 -2
- package/dist/impact-nova-tokens.scss +346 -189
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +505 -499
- package/dist/lib/resolve-design-token-color.d.ts +5 -0
- package/dist/lib/resolve-design-token-color.js +12 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +297 -0
- package/dist/theme/tailwind-colors.js +199 -0
- package/dist/theme/tokens/chart-series-palette.json.d.ts +53 -0
- package/dist/theme/tokens/chart-series-palette.json.js +7 -0
- package/package.json +32 -259
- package/tailwind.config.js +0 -335
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsx as u, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as u, jsxs as ee } from "react/jsx-runtime";
|
|
2
|
+
import ut, { useState as x, useRef as S } from "react";
|
|
3
3
|
import * as te from "@radix-ui/react-popover";
|
|
4
|
-
import { useVirtualizer as
|
|
5
|
-
import { SelectMenuFooter as
|
|
6
|
-
import { SelectMenuHeader as
|
|
7
|
-
import { SelectMenuListBody as
|
|
8
|
-
import { SelectMenuPanel as
|
|
9
|
-
import { SelectTrigger as
|
|
4
|
+
import { useVirtualizer as dt } from "@tanstack/react-virtual";
|
|
5
|
+
import { SelectMenuFooter as mt } from "./components/SelectMenuFooter.js";
|
|
6
|
+
import { SelectMenuHeader as ft } from "./components/SelectMenuHeader.js";
|
|
7
|
+
import { SelectMenuListBody as pt } from "./components/SelectMenuListBody.js";
|
|
8
|
+
import { SelectMenuPanel as St } from "./components/SelectMenuPanel.js";
|
|
9
|
+
import { SelectTrigger as ht } from "./components/SelectTrigger.js";
|
|
10
10
|
import { cn as le } from "../../../lib/utils.js";
|
|
11
|
-
import { useFieldChrome as
|
|
12
|
-
import { isOptionArray as
|
|
13
|
-
import { useImpactNovaI18n as
|
|
14
|
-
import { useFlattenOptions as
|
|
15
|
-
import { useSelectKeyboardHandlers as
|
|
16
|
-
import { useSelectValueState as
|
|
17
|
-
import { useSelectMenuHeight as
|
|
18
|
-
import { useSelectMenuScroll as
|
|
19
|
-
import { useSelectOpenEffects as
|
|
20
|
-
import { useSelectOutsideScrollLock as
|
|
11
|
+
import { useFieldChrome as gt } from "../../../lib/primitives/use-field-chrome.js";
|
|
12
|
+
import { isOptionArray as bt, getSequence as Ot } from "./utils/select.js";
|
|
13
|
+
import { useImpactNovaI18n as Mt } from "../../../i18n/use-impact-nova-i18n.js";
|
|
14
|
+
import { useFlattenOptions as Ct } from "./hooks/useFlattenOptions.js";
|
|
15
|
+
import { useSelectKeyboardHandlers as It } from "./hooks/useSelectKeyboardHandlers.js";
|
|
16
|
+
import { useSelectValueState as Vt } from "./hooks/useSelectValueState.js";
|
|
17
|
+
import { useSelectMenuHeight as vt } from "./hooks/useSelectMenuHeight.js";
|
|
18
|
+
import { useSelectMenuScroll as Lt } from "./hooks/useSelectMenuScroll.js";
|
|
19
|
+
import { useSelectOpenEffects as xt } from "./hooks/useSelectOpenEffects.js";
|
|
20
|
+
import { useSelectOutsideScrollLock as yt } from "./hooks/useSelectOutsideScrollLock.js";
|
|
21
21
|
import { useSelectSearchFocus as At } from "./hooks/useSelectSearchFocus.js";
|
|
22
|
-
import { useSelectSelectionHandlers as
|
|
23
|
-
import { useSelectionModel as
|
|
24
|
-
import { useVisibleStats as
|
|
25
|
-
import { SELECT_ALL_INDEX as
|
|
26
|
-
import { getSelectableOptionIndices as
|
|
27
|
-
|
|
22
|
+
import { useSelectSelectionHandlers as Rt } from "./hooks/useSelectSelectionHandlers.js";
|
|
23
|
+
import { useSelectionModel as Pt } from "./hooks/useSelectionModel.js";
|
|
24
|
+
import { useVisibleStats as wt } from "./hooks/useVisibleStats.js";
|
|
25
|
+
import { SELECT_ALL_INDEX as qt } from "./select.constants.js";
|
|
26
|
+
import { getSelectableOptionIndices as Dt } from "./utils/getSelectableOptionIndices.js";
|
|
27
|
+
function oe(y) {
|
|
28
28
|
const {
|
|
29
29
|
options: C,
|
|
30
30
|
value: ne,
|
|
31
31
|
defaultValue: se,
|
|
32
|
-
onChange:
|
|
32
|
+
onChange: N,
|
|
33
33
|
isMulti: re,
|
|
34
34
|
multiple: ie,
|
|
35
35
|
isDisabled: ae,
|
|
@@ -39,7 +39,7 @@ const qt = (oe) => {
|
|
|
39
39
|
isSearchable: h = !0,
|
|
40
40
|
placeholder: de,
|
|
41
41
|
// menuPortalTarget is kept for API compatibility but no longer used (Radix handles portalling)
|
|
42
|
-
menuPortalTarget:
|
|
42
|
+
menuPortalTarget: Ft,
|
|
43
43
|
autoFocus: me,
|
|
44
44
|
closeMenuOnSelect: fe,
|
|
45
45
|
defaultMenuIsOpen: pe = !1,
|
|
@@ -62,23 +62,23 @@ const qt = (oe) => {
|
|
|
62
62
|
isSelectAllEnabled: A = !0,
|
|
63
63
|
isReadOnly: n = !1,
|
|
64
64
|
searchPosition: b = "menu",
|
|
65
|
-
footerContent:
|
|
66
|
-
onInputChange:
|
|
67
|
-
getOptionLabel:
|
|
68
|
-
renderOption:
|
|
65
|
+
footerContent: H,
|
|
66
|
+
onInputChange: ye,
|
|
67
|
+
getOptionLabel: B,
|
|
68
|
+
renderOption: Ae,
|
|
69
69
|
onMenuOpen: Re,
|
|
70
|
-
onMenuClose:
|
|
71
|
-
labelOrientation:
|
|
70
|
+
onMenuClose: K,
|
|
71
|
+
labelOrientation: z = "top",
|
|
72
72
|
size: Pe = "default",
|
|
73
73
|
leftContent: we,
|
|
74
|
-
ignoreCase:
|
|
75
|
-
ignoreAccents:
|
|
76
|
-
matchFrom:
|
|
74
|
+
ignoreCase: qe,
|
|
75
|
+
ignoreAccents: De,
|
|
76
|
+
matchFrom: Ee,
|
|
77
77
|
stringify: Fe,
|
|
78
|
-
trim:
|
|
79
|
-
filterOption:
|
|
78
|
+
trim: Ne,
|
|
79
|
+
filterOption: Te,
|
|
80
80
|
enableSubMenus: I = !1,
|
|
81
|
-
enableGroups:
|
|
81
|
+
enableGroups: R = !1,
|
|
82
82
|
enableInvertedSelection: He,
|
|
83
83
|
fetchError: V,
|
|
84
84
|
onRefetch: Be,
|
|
@@ -86,47 +86,47 @@ const qt = (oe) => {
|
|
|
86
86
|
onClearAll: ze,
|
|
87
87
|
onFocus: $e,
|
|
88
88
|
onBlur: _e
|
|
89
|
-
} =
|
|
89
|
+
} = y, t = ie ?? re ?? !1, i = ce ?? ae ?? !1, je = ge ?? be ?? !1, ke = fe ?? !t, { t: O } = Mt(), P = de ?? O("select.placeholder"), [l, $] = x(pe), [f, v] = x(""), {
|
|
90
90
|
usesMenuSession: Ge,
|
|
91
91
|
currentValue: s,
|
|
92
92
|
setCurrentValue: We,
|
|
93
93
|
beginMenuSession: Xe,
|
|
94
94
|
endMenuSession: Je
|
|
95
|
-
} =
|
|
95
|
+
} = Vt({
|
|
96
96
|
value: ne,
|
|
97
97
|
defaultValue: se,
|
|
98
98
|
isMulti: !!t,
|
|
99
|
-
onChange:
|
|
100
|
-
}), [Qe,
|
|
101
|
-
At(l, h, b,
|
|
102
|
-
const { flatOptions: o, isProcessing: c, totalOptionsCount:
|
|
103
|
-
ignoreCase:
|
|
104
|
-
ignoreAccents:
|
|
105
|
-
matchFrom:
|
|
99
|
+
onChange: N
|
|
100
|
+
}), [Qe, _] = x(null), [a, j] = x(-1), k = S(!1), Ue = ut.useId(), p = m ?? Ue, G = `${p}-listbox`, Ye = l && a >= 0 ? a === qt ? `${p}-option-select-all` : `${p}-option-${a}` : void 0, W = S(null), w = S(null), Ze = S(null), q = S(null), D = S(null);
|
|
101
|
+
At(l, h, b, D);
|
|
102
|
+
const { flatOptions: o, isProcessing: c, totalOptionsCount: X, workerSelectAll: et } = Ct(C, f, {
|
|
103
|
+
ignoreCase: qe,
|
|
104
|
+
ignoreAccents: De,
|
|
105
|
+
matchFrom: Ee,
|
|
106
106
|
stringify: Fe,
|
|
107
|
-
trim:
|
|
108
|
-
filterOption:
|
|
107
|
+
trim: Ne,
|
|
108
|
+
filterOption: Te,
|
|
109
109
|
enableSubMenus: I,
|
|
110
|
-
enableGroups:
|
|
111
|
-
}), tt =
|
|
110
|
+
enableGroups: R
|
|
111
|
+
}), tt = vt(
|
|
112
112
|
l,
|
|
113
113
|
!!r,
|
|
114
114
|
c,
|
|
115
|
-
|
|
116
|
-
), M =
|
|
115
|
+
w
|
|
116
|
+
), M = Pt(s, t ?? !1), { stats: J, getGroupStats: lt } = wt(
|
|
117
117
|
o,
|
|
118
|
-
|
|
118
|
+
X,
|
|
119
119
|
f,
|
|
120
120
|
M,
|
|
121
121
|
s,
|
|
122
122
|
t ?? !1
|
|
123
|
-
), L =
|
|
123
|
+
), L = dt({
|
|
124
124
|
count: o.length,
|
|
125
|
-
getScrollElement: () =>
|
|
125
|
+
getScrollElement: () => q.current,
|
|
126
126
|
estimateSize: () => 34,
|
|
127
127
|
overscan: 5
|
|
128
128
|
});
|
|
129
|
-
|
|
129
|
+
xt({
|
|
130
130
|
isOpen: l,
|
|
131
131
|
isSearchable: h,
|
|
132
132
|
searchPosition: b,
|
|
@@ -139,43 +139,42 @@ const qt = (oe) => {
|
|
|
139
139
|
flatOptions: o,
|
|
140
140
|
searchValue: f,
|
|
141
141
|
highlightedIndex: a,
|
|
142
|
-
setHighlightedIndex:
|
|
143
|
-
openedViaKeyboardRef:
|
|
142
|
+
setHighlightedIndex: j,
|
|
143
|
+
openedViaKeyboardRef: k,
|
|
144
144
|
scrollToSelectedOnOpen: Se,
|
|
145
145
|
selectionModel: M,
|
|
146
146
|
internalValue: s,
|
|
147
147
|
rowVirtualizer: L
|
|
148
|
-
}),
|
|
148
|
+
}), Lt({
|
|
149
149
|
isOpen: l,
|
|
150
150
|
isLoading: r,
|
|
151
151
|
isProcessing: c,
|
|
152
152
|
flatOptions: o,
|
|
153
|
-
listRef:
|
|
153
|
+
listRef: q,
|
|
154
154
|
rowVirtualizer: L,
|
|
155
155
|
onMenuScrollToBottom: ve
|
|
156
156
|
});
|
|
157
|
-
const
|
|
157
|
+
const E = (e) => {
|
|
158
158
|
if (!(i && e))
|
|
159
|
-
if (
|
|
159
|
+
if ($(e), e)
|
|
160
160
|
Xe(), Re?.();
|
|
161
161
|
else {
|
|
162
|
-
const
|
|
163
|
-
|
|
162
|
+
const F = Ge ? Je() : s, at = t && bt(F) ? F.map((ct) => ct.value) : void 0;
|
|
163
|
+
K?.(F, at), v(""), _(null);
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
const J = (e) => H ? H(e) : e.label, { handleSelect: Q, handleSelectAll: U, clearValue: ot } = yt({
|
|
166
|
+
yt(l, w);
|
|
167
|
+
const Q = (e) => B ? B(e) : e.label, { handleSelect: U, handleSelectAll: Y, clearValue: ot } = Rt({
|
|
169
168
|
isMulti: t,
|
|
170
169
|
isDisabled: i,
|
|
171
170
|
isReadOnly: n,
|
|
172
171
|
internalValue: s,
|
|
173
172
|
setInternalValue: We,
|
|
174
|
-
onChange:
|
|
175
|
-
onMenuClose:
|
|
173
|
+
onChange: N,
|
|
174
|
+
onMenuClose: K,
|
|
176
175
|
onClearAll: ze,
|
|
177
176
|
enableSubMenus: I,
|
|
178
|
-
enableGroups:
|
|
177
|
+
enableGroups: R,
|
|
179
178
|
enableInvertedSelection: He,
|
|
180
179
|
maxSelectableOptions: g,
|
|
181
180
|
closeMenuOnSelect: ke,
|
|
@@ -183,17 +182,17 @@ const qt = (oe) => {
|
|
|
183
182
|
flatOptions: o,
|
|
184
183
|
searchValue: f,
|
|
185
184
|
selectionModel: M,
|
|
186
|
-
visibleStats:
|
|
185
|
+
visibleStats: J,
|
|
187
186
|
workerSelectAll: et,
|
|
188
|
-
setIsOpen:
|
|
187
|
+
setIsOpen: $,
|
|
189
188
|
setSearchValue: v
|
|
190
|
-
}), nt = (e) =>
|
|
189
|
+
}), nt = (e) => Ot(
|
|
191
190
|
e,
|
|
192
191
|
T ?? !1,
|
|
193
192
|
t ?? !1,
|
|
194
193
|
he,
|
|
195
194
|
s
|
|
196
|
-
), st = () =>
|
|
195
|
+
), st = () => Dt({
|
|
197
196
|
isLoading: !!r,
|
|
198
197
|
isProcessing: c,
|
|
199
198
|
fetchError: V,
|
|
@@ -202,7 +201,7 @@ const qt = (oe) => {
|
|
|
202
201
|
isReadOnly: n,
|
|
203
202
|
flatOptions: o,
|
|
204
203
|
enableSubMenus: I
|
|
205
|
-
}), { handleTriggerKeyDown: rt, handleSearchKeyDown: it } =
|
|
204
|
+
}), { handleTriggerKeyDown: rt, handleSearchKeyDown: it } = It({
|
|
206
205
|
isDisabled: i,
|
|
207
206
|
isReadOnly: n,
|
|
208
207
|
isOpen: l,
|
|
@@ -210,24 +209,24 @@ const qt = (oe) => {
|
|
|
210
209
|
searchPosition: b,
|
|
211
210
|
getSelectableIndices: st,
|
|
212
211
|
highlightedIndex: a,
|
|
213
|
-
setHighlightedIndex:
|
|
212
|
+
setHighlightedIndex: j,
|
|
214
213
|
flatOptions: o,
|
|
215
214
|
rowVirtualizer: L,
|
|
216
|
-
handleOpenChange:
|
|
217
|
-
handleSelect:
|
|
218
|
-
handleSelectAll:
|
|
219
|
-
openedViaKeyboardRef:
|
|
220
|
-
searchInputRef:
|
|
221
|
-
triggerRef:
|
|
222
|
-
}),
|
|
215
|
+
handleOpenChange: E,
|
|
216
|
+
handleSelect: U,
|
|
217
|
+
handleSelectAll: Y,
|
|
218
|
+
openedViaKeyboardRef: k,
|
|
219
|
+
searchInputRef: D,
|
|
220
|
+
triggerRef: W
|
|
221
|
+
}), Z = gt({
|
|
223
222
|
label: d,
|
|
224
223
|
helperText: Me,
|
|
225
224
|
helperTextPosition: Ce,
|
|
226
|
-
labelOrientation:
|
|
225
|
+
labelOrientation: z,
|
|
227
226
|
error: Oe,
|
|
228
227
|
required: je,
|
|
229
228
|
disabled: i,
|
|
230
|
-
className: le(
|
|
229
|
+
className: le(z === "left" && "w-fit items-center"),
|
|
231
230
|
rootClassName: Ve
|
|
232
231
|
});
|
|
233
232
|
return /* @__PURE__ */ u(
|
|
@@ -235,19 +234,19 @@ const qt = (oe) => {
|
|
|
235
234
|
{
|
|
236
235
|
"data-testid": `select-${m || "default"}`,
|
|
237
236
|
"data-component": "select",
|
|
238
|
-
children:
|
|
239
|
-
/* @__PURE__ */
|
|
237
|
+
children: Z.wrapControl(
|
|
238
|
+
/* @__PURE__ */ ee(te.Root, { open: l && !i, onOpenChange: E, modal: !1, children: [
|
|
240
239
|
/* @__PURE__ */ u(te.Anchor, { asChild: !0, children: /* @__PURE__ */ u(
|
|
241
|
-
|
|
240
|
+
ht,
|
|
242
241
|
{
|
|
243
|
-
triggerRef:
|
|
242
|
+
triggerRef: W,
|
|
244
243
|
inputRef: Ze,
|
|
245
244
|
selectFieldId: p,
|
|
246
|
-
listboxId:
|
|
245
|
+
listboxId: G,
|
|
247
246
|
id: m,
|
|
248
247
|
className: Ie,
|
|
249
248
|
size: Pe,
|
|
250
|
-
error:
|
|
249
|
+
error: Z.hasError,
|
|
251
250
|
isDisabled: i,
|
|
252
251
|
isReadOnly: n,
|
|
253
252
|
isOpen: l,
|
|
@@ -261,34 +260,34 @@ const qt = (oe) => {
|
|
|
261
260
|
autoFocus: me,
|
|
262
261
|
name: xe,
|
|
263
262
|
label: d,
|
|
264
|
-
placeholder:
|
|
263
|
+
placeholder: P,
|
|
265
264
|
leftContent: we,
|
|
266
265
|
activeDescendantId: Ye,
|
|
267
266
|
internalValue: s,
|
|
268
267
|
totalCount: Le,
|
|
269
|
-
totalOptionsCount:
|
|
268
|
+
totalOptionsCount: X,
|
|
270
269
|
formatSelectedCount: (e) => O("select.selectedCount", { count: e }),
|
|
271
|
-
resolveOptionLabel:
|
|
270
|
+
resolveOptionLabel: Q,
|
|
272
271
|
isMulti: t,
|
|
273
272
|
onFocus: $e,
|
|
274
273
|
onBlur: _e,
|
|
275
274
|
onKeyDown: rt,
|
|
276
|
-
onToggle: () =>
|
|
275
|
+
onToggle: () => E(!l),
|
|
277
276
|
onClear: ot
|
|
278
277
|
}
|
|
279
278
|
) }),
|
|
280
|
-
/* @__PURE__ */
|
|
281
|
-
|
|
279
|
+
/* @__PURE__ */ ee(
|
|
280
|
+
St,
|
|
282
281
|
{
|
|
283
|
-
menuRef:
|
|
282
|
+
menuRef: w,
|
|
284
283
|
menuMinHeight: tt,
|
|
285
284
|
menuWidth: Ke,
|
|
286
285
|
isReadOnly: n,
|
|
287
286
|
id: m,
|
|
288
|
-
menuLabel: String(d ||
|
|
287
|
+
menuLabel: String(d || P),
|
|
289
288
|
children: [
|
|
290
289
|
/* @__PURE__ */ u(
|
|
291
|
-
|
|
290
|
+
ft,
|
|
292
291
|
{
|
|
293
292
|
id: m,
|
|
294
293
|
selectFieldId: p,
|
|
@@ -302,19 +301,19 @@ const qt = (oe) => {
|
|
|
302
301
|
isProcessing: c,
|
|
303
302
|
isSelectAllEnabled: A ?? !1,
|
|
304
303
|
flatOptionsLength: o.length,
|
|
305
|
-
searchInputRef:
|
|
304
|
+
searchInputRef: D,
|
|
306
305
|
searchValue: f,
|
|
307
306
|
searchPlaceholder: O("select.searchHere"),
|
|
308
307
|
highlightedIndex: a,
|
|
309
308
|
maxSelectableOptions: g,
|
|
310
|
-
visibleStats:
|
|
309
|
+
visibleStats: J,
|
|
311
310
|
selectAllLabel: O("select.selectAll"),
|
|
312
311
|
unselectAllLabel: O("select.unselectAll"),
|
|
313
312
|
onSearchChange: (e) => {
|
|
314
|
-
v(e),
|
|
313
|
+
v(e), ye?.(e);
|
|
315
314
|
},
|
|
316
315
|
onSearchKeyDown: it,
|
|
317
|
-
onSelectAll:
|
|
316
|
+
onSelectAll: Y
|
|
318
317
|
}
|
|
319
318
|
),
|
|
320
319
|
/* @__PURE__ */ u(
|
|
@@ -322,10 +321,10 @@ const qt = (oe) => {
|
|
|
322
321
|
{
|
|
323
322
|
className: le(
|
|
324
323
|
"flex min-h-0 flex-1 flex-col overflow-hidden",
|
|
325
|
-
!(
|
|
324
|
+
!(H || g || C.length > 5e3) && "rounded-b-[12px]"
|
|
326
325
|
),
|
|
327
326
|
children: /* @__PURE__ */ u(
|
|
328
|
-
|
|
327
|
+
pt,
|
|
329
328
|
{
|
|
330
329
|
fetchError: V,
|
|
331
330
|
onRefetch: Be,
|
|
@@ -334,35 +333,35 @@ const qt = (oe) => {
|
|
|
334
333
|
isProcessing: c,
|
|
335
334
|
isMulti: t,
|
|
336
335
|
isReadOnly: n,
|
|
337
|
-
enableGroups:
|
|
336
|
+
enableGroups: R,
|
|
338
337
|
enableSubMenus: I,
|
|
339
338
|
showSequence: T,
|
|
340
339
|
maxSelectableOptions: g,
|
|
341
|
-
listRef:
|
|
342
|
-
listboxId:
|
|
343
|
-
listboxLabel: d ? String(d) :
|
|
340
|
+
listRef: q,
|
|
341
|
+
listboxId: G,
|
|
342
|
+
listboxLabel: d ? String(d) : P,
|
|
344
343
|
rowVirtualizer: L,
|
|
345
344
|
selectFieldId: p,
|
|
346
345
|
id: m,
|
|
347
346
|
highlightedIndex: a,
|
|
348
347
|
activeSubmenu: Qe,
|
|
349
|
-
setActiveSubmenu:
|
|
348
|
+
setActiveSubmenu: _,
|
|
350
349
|
internalValue: s,
|
|
351
350
|
selectionMode: M.mode,
|
|
352
351
|
selectionSet: M.set,
|
|
353
|
-
resolveOptionLabel:
|
|
352
|
+
resolveOptionLabel: Q,
|
|
354
353
|
getSequenceForOption: nt,
|
|
355
|
-
renderOption:
|
|
356
|
-
onSelect:
|
|
354
|
+
renderOption: Ae,
|
|
355
|
+
onSelect: U,
|
|
357
356
|
getGroupStats: lt
|
|
358
357
|
}
|
|
359
358
|
)
|
|
360
359
|
}
|
|
361
360
|
),
|
|
362
361
|
/* @__PURE__ */ u(
|
|
363
|
-
|
|
362
|
+
mt,
|
|
364
363
|
{
|
|
365
|
-
footerContent:
|
|
364
|
+
footerContent: H,
|
|
366
365
|
maxSelectableOptions: g,
|
|
367
366
|
optionCount: C.length
|
|
368
367
|
}
|
|
@@ -374,8 +373,12 @@ const qt = (oe) => {
|
|
|
374
373
|
)
|
|
375
374
|
}
|
|
376
375
|
);
|
|
377
|
-
}
|
|
378
|
-
|
|
376
|
+
}
|
|
377
|
+
oe.displayName = "Select";
|
|
378
|
+
function Et(y) {
|
|
379
|
+
return oe(y);
|
|
380
|
+
}
|
|
381
|
+
Et.displayName = "Select";
|
|
379
382
|
export {
|
|
380
|
-
|
|
383
|
+
Et as Select
|
|
381
384
|
};
|