@igne-agency/react-web-ui 0.4.0 → 0.6.0
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/base.css +3 -0
- package/dist/components/accordion/accordion.css +21 -21
- package/dist/components/accordion/accordion.d.ts +17 -4
- package/dist/components/accordion/accordion.js +83 -36
- package/dist/components/accordion/accordion.module.js +6 -6
- package/dist/components/attachment-tile/attachment-preview.d.ts +56 -13
- package/dist/components/attachment-tile/attachment-preview.js +388 -119
- package/dist/components/attachment-tile/attachment-tile.css +31 -25
- package/dist/components/attachment-tile/attachment-tile.d.ts +32 -10
- package/dist/components/attachment-tile/attachment-tile.js +160 -43
- package/dist/components/attachment-tile/attachment-tile.module.js +8 -8
- package/dist/components/attachment-tile/index.d.ts +1 -1
- package/dist/components/avatar/avatar.css +9 -9
- package/dist/components/avatar/avatar.d.ts +50 -5
- package/dist/components/avatar/avatar.js +178 -64
- package/dist/components/avatar/avatar.module.js +3 -3
- package/dist/components/avatar-group/avatar-group-context.d.ts +2 -4
- package/dist/components/avatar-group/avatar-group-context.js +2 -2
- package/dist/components/avatar-group/avatar-group.css +26 -20
- package/dist/components/avatar-group/avatar-group.d.ts +85 -27
- package/dist/components/avatar-group/avatar-group.js +400 -246
- package/dist/components/avatar-group/avatar-group.module.js +8 -8
- package/dist/components/breadcrumbs/breadcrumbs.css +12 -12
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +69 -23
- package/dist/components/breadcrumbs/breadcrumbs.js +299 -248
- package/dist/components/breadcrumbs/breadcrumbs.module.js +8 -8
- package/dist/components/button/button.css +29 -31
- package/dist/components/button/button.d.ts +20 -16
- package/dist/components/button/button.js +140 -145
- package/dist/components/button/button.module.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/checkbox-field/checkbox-field.js +63 -49
- package/dist/components/checkbox-field/checkbox.css +105 -56
- package/dist/components/checkbox-field/checkbox.d.ts +3 -2
- package/dist/components/checkbox-field/checkbox.js +12 -9
- package/dist/components/checkbox-field/checkbox.module.js +4 -4
- package/dist/components/checkbox-group-field/checkbox-group-field.js +78 -72
- package/dist/components/checkbox-group-field/checkbox-group.css +14 -10
- package/dist/components/checkbox-group-field/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group-field/checkbox-group.js +2 -2
- package/dist/components/checkbox-group-field/checkbox-group.module.js +2 -2
- package/dist/components/collapsible/collapsible.css +20 -20
- package/dist/components/collapsible/collapsible.d.ts +17 -4
- package/dist/components/collapsible/collapsible.js +83 -36
- package/dist/components/collapsible/collapsible.module.js +5 -5
- package/dist/components/combobox-field/combobox-field.js +206 -158
- package/dist/components/combobox-field/combobox.css +492 -277
- package/dist/components/combobox-field/combobox.d.ts +148 -39
- package/dist/components/combobox-field/combobox.js +506 -206
- package/dist/components/combobox-field/combobox.module.js +21 -21
- package/dist/components/combobox-field/value-state-view.css +5 -5
- package/dist/components/combobox-field/value-state-view.module.js +4 -4
- package/dist/components/composer/composer-attachments.d.ts +30 -11
- package/dist/components/composer/composer-attachments.js +45 -40
- package/dist/components/composer/composer-editor.css +40 -35
- package/dist/components/composer/composer-editor.d.ts +14 -4
- package/dist/components/composer/composer-editor.js +134 -44
- package/dist/components/composer/composer-editor.module.js +5 -5
- package/dist/components/composer/composer.css +22 -22
- package/dist/components/composer/composer.d.ts +13 -2
- package/dist/components/composer/composer.js +78 -63
- package/dist/components/composer/composer.module.js +5 -5
- package/dist/components/composer/index.d.ts +2 -2
- package/dist/components/composer/mention-text.css +5 -5
- package/dist/components/composer/mention-text.module.js +1 -1
- package/dist/components/confirm-dialog/confirm-dialog.css +29 -29
- package/dist/components/confirm-dialog/confirm-dialog.d.ts +57 -3
- package/dist/components/confirm-dialog/confirm-dialog.js +266 -108
- package/dist/components/confirm-dialog/confirm-dialog.module.js +5 -5
- package/dist/components/conversation/conversation.css +52 -52
- package/dist/components/conversation/conversation.d.ts +43 -18
- package/dist/components/conversation/conversation.js +120 -78
- package/dist/components/conversation/conversation.module.js +15 -15
- package/dist/components/date-field/date-field.d.ts +1 -1
- package/dist/components/date-field/date-field.js +202 -100
- package/dist/components/date-field/date-input.d.ts +73 -37
- package/dist/components/date-field/date-input.js +72 -45
- package/dist/components/date-field/index.d.ts +1 -1
- package/dist/components/date-range-field/date-range-field.d.ts +1 -1
- package/dist/components/date-range-field/date-range-field.js +219 -107
- package/dist/components/date-range-field/date-range-input.d.ts +84 -40
- package/dist/components/date-range-field/date-range-input.js +83 -48
- package/dist/components/dialog/dialog.css +32 -32
- package/dist/components/dialog/dialog.d.ts +8 -7
- package/dist/components/dialog/dialog.js +8 -26
- package/dist/components/dialog/dialog.module.js +6 -6
- package/dist/components/divider/divider.css +6 -6
- package/dist/components/divider/divider.d.ts +36 -2
- package/dist/components/divider/divider.js +195 -29
- package/dist/components/divider/divider.module.js +3 -3
- package/dist/components/drawer/drawer.css +55 -56
- package/dist/components/drawer/drawer.d.ts +8 -7
- package/dist/components/drawer/drawer.js +8 -26
- package/dist/components/drawer/drawer.module.js +6 -6
- package/dist/components/field/field.css +34 -24
- package/dist/components/field/field.d.ts +60 -37
- package/dist/components/field/field.js +242 -157
- package/dist/components/field/field.module.js +12 -10
- package/dist/components/field/input-parts.d.ts +11 -13
- package/dist/components/field/input-parts.js +23 -42
- package/dist/components/field-placeholder/field-placeholder.css +6 -6
- package/dist/components/field-placeholder/field-placeholder.module.js +4 -4
- package/dist/components/fieldset/field-group.d.ts +1 -1
- package/dist/components/fieldset/field-group.js +48 -42
- package/dist/components/fieldset/fieldset-root.d.ts +1 -1
- package/dist/components/fieldset/fieldset-root.js +19 -17
- package/dist/components/fieldset/fieldset.d.ts +2 -2
- package/dist/components/fieldset/fieldset.js +2 -2
- package/dist/components/file-field/file-field.css +126 -60
- package/dist/components/file-field/file-field.js +201 -109
- package/dist/components/file-field/file-field.module.js +4 -4
- package/dist/components/file-field/file-input.d.ts +66 -40
- package/dist/components/file-field/file-input.js +188 -132
- package/dist/components/filter-bar/filter-bar.css +8 -8
- package/dist/components/filter-bar/filter-bar.d.ts +12 -3
- package/dist/components/filter-bar/filter-bar.js +23 -25
- package/dist/components/filter-bar/filter-bar.module.js +5 -5
- package/dist/components/form/form.d.ts +19 -7
- package/dist/components/form/form.js +80 -29
- package/dist/components/icon/icon.css +2 -2
- package/dist/components/icon/icon.module.js +1 -1
- package/dist/components/link/link.css +6 -5
- package/dist/components/link/link.module.js +1 -1
- package/dist/components/menu/menu.css +52 -47
- package/dist/components/menu/menu.d.ts +32 -25
- package/dist/components/menu/menu.js +75 -124
- package/dist/components/menu/menu.module.js +8 -8
- package/dist/components/nav/nav-context.d.ts +1 -1
- package/dist/components/nav/nav-item-view.d.ts +10 -13
- package/dist/components/nav/nav-item-view.js +42 -54
- package/dist/components/nav/nav.css +150 -119
- package/dist/components/nav/nav.d.ts +61 -17
- package/dist/components/nav/nav.js +271 -176
- package/dist/components/nav/nav.module.js +17 -15
- package/dist/components/number-field/number-field.css +153 -64
- package/dist/components/number-field/number-field.d.ts +2 -2
- package/dist/components/number-field/number-field.js +112 -91
- package/dist/components/number-field/number-field.module.js +6 -6
- package/dist/components/number-field/number-input.d.ts +43 -23
- package/dist/components/number-field/number-input.js +179 -125
- package/dist/components/otp-field/otp-field.css +153 -60
- package/dist/components/otp-field/otp-field.d.ts +2 -2
- package/dist/components/otp-field/otp-field.js +62 -46
- package/dist/components/otp-field/otp-field.module.js +4 -4
- package/dist/components/otp-field/otp-input.d.ts +8 -6
- package/dist/components/otp-field/otp-input.js +92 -92
- package/dist/components/pagination/pagination.d.ts +46 -15
- package/dist/components/pagination/pagination.js +217 -224
- package/dist/components/password-field/password-field.css +23 -23
- package/dist/components/password-field/password-field.js +107 -85
- package/dist/components/password-field/password-field.module.js +8 -8
- package/dist/components/password-field/password-strength.d.ts +107 -3
- package/dist/components/password-field/password-strength.js +569 -92
- package/dist/components/photo-field/photo-field.js +137 -112
- package/dist/components/photo-field/photo-input.css +67 -44
- package/dist/components/photo-field/photo-input.d.ts +59 -15
- package/dist/components/photo-field/photo-input.js +173 -86
- package/dist/components/photo-field/photo-input.module.js +10 -8
- package/dist/components/popover/popover.css +41 -41
- package/dist/components/popover/popover.d.ts +66 -25
- package/dist/components/popover/popover.js +332 -217
- package/dist/components/popover/popover.module.js +15 -19
- package/dist/components/radio-group-field/radio-group-field.js +80 -71
- package/dist/components/radio-group-field/radio-group.css +112 -60
- package/dist/components/radio-group-field/radio-group.d.ts +19 -3
- package/dist/components/radio-group-field/radio-group.js +66 -23
- package/dist/components/radio-group-field/radio-group.module.js +4 -4
- package/dist/components/segmented-control-field/segmented-control-field.d.ts +1 -1
- package/dist/components/segmented-control-field/segmented-control-field.js +111 -96
- package/dist/components/segmented-control-field/segmented-control.css +132 -79
- package/dist/components/segmented-control-field/segmented-control.d.ts +39 -15
- package/dist/components/segmented-control-field/segmented-control.js +124 -41
- package/dist/components/segmented-control-field/segmented-control.module.js +4 -4
- package/dist/components/select-field/select.css +214 -101
- package/dist/components/select-field/select.d.ts +43 -11
- package/dist/components/select-field/select.js +194 -109
- package/dist/components/select-field/select.module.js +14 -14
- package/dist/components/skeleton/skeleton.css +4 -4
- package/dist/components/skeleton/skeleton.module.js +3 -3
- package/dist/components/stale/stale.css +15 -15
- package/dist/components/stale/stale.d.ts +27 -3
- package/dist/components/stale/stale.js +147 -66
- package/dist/components/stale/stale.module.js +6 -6
- package/dist/components/status-message/status-message.css +22 -22
- package/dist/components/status-message/status-message.module.js +6 -6
- package/dist/components/switch-field/switch-field.js +77 -57
- package/dist/components/switch-field/switch.css +112 -63
- package/dist/components/switch-field/switch.d.ts +20 -3
- package/dist/components/switch-field/switch.js +70 -27
- package/dist/components/switch-field/switch.module.js +4 -4
- package/dist/components/tabs/tabs.css +32 -32
- package/dist/components/tabs/tabs.d.ts +21 -7
- package/dist/components/tabs/tabs.js +73 -14
- package/dist/components/tabs/tabs.module.js +7 -7
- package/dist/components/tag/tag.css +84 -84
- package/dist/components/tag/tag.module.js +3 -3
- package/dist/components/tag-group/tag-group.css +94 -94
- package/dist/components/tag-group/tag-group.module.js +4 -4
- package/dist/components/text-field/text-field.css +159 -82
- package/dist/components/text-field/text-field.d.ts +1 -1
- package/dist/components/text-field/text-field.js +139 -110
- package/dist/components/text-field/text-field.module.js +9 -9
- package/dist/components/text-field/text-input.d.ts +81 -45
- package/dist/components/text-field/text-input.js +366 -217
- package/dist/components/textarea-field/textarea-field.css +7 -2
- package/dist/components/textarea-field/textarea-field.js +72 -56
- package/dist/components/textarea-field/textarea-field.module.js +2 -2
- package/dist/components/time-field/time-field.js +153 -60
- package/dist/components/time-field/time-input.d.ts +21 -10
- package/dist/components/time-field/time-input.js +22 -11
- package/dist/components/toast/toast-provider.css +34 -31
- package/dist/components/toast/toast-provider.d.ts +63 -14
- package/dist/components/toast/toast-provider.js +174 -111
- package/dist/components/toast/toast-provider.module.js +7 -7
- package/dist/components/toggle-group-field/toggle-group-field.d.ts +1 -1
- package/dist/components/toggle-group-field/toggle-group-field.js +95 -89
- package/dist/components/toggle-group-field/toggle-group.css +117 -67
- package/dist/components/toggle-group-field/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group-field/toggle-group.js +2 -2
- package/dist/components/toggle-group-field/toggle-group.module.js +2 -2
- package/dist/components/tooltip/tooltip.css +4 -4
- package/dist/components/tooltip/tooltip.module.js +1 -1
- package/dist/data-table/data-table-content.js +6 -5
- package/dist/data-table/data-table-parts.d.ts +41 -13
- package/dist/data-table/data-table-parts.js +213 -172
- package/dist/data-table/data-table-selection.d.ts +105 -3
- package/dist/data-table/data-table-selection.js +654 -145
- package/dist/data-table/data-table.css +125 -128
- package/dist/data-table/data-table.d.ts +21 -26
- package/dist/data-table/data-table.js +20 -23
- package/dist/data-table/data-table.module.js +32 -34
- package/dist/data-table/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/lib/calendar/calendar-navigation.d.ts +39 -5
- package/dist/lib/calendar/calendar-navigation.js +185 -118
- package/dist/lib/calendar/calendar-parts.d.ts +143 -0
- package/dist/lib/calendar/calendar-parts.js +540 -0
- package/dist/lib/calendar/calendar-prefab.d.ts +52 -0
- package/dist/lib/calendar/calendar-prefab.js +311 -0
- package/dist/lib/calendar/calendar-year.d.ts +3 -1
- package/dist/lib/calendar/calendar-year.js +139 -131
- package/dist/lib/calendar/temporal.css +325 -232
- package/dist/lib/calendar/temporal.d.ts +67 -82
- package/dist/lib/calendar/temporal.js +258 -569
- package/dist/lib/calendar/temporal.module.js +38 -38
- package/dist/lib/forms/use-connected-field.d.ts +1 -1
- package/dist/lib/forms/use-connected-field.js +1 -1
- package/dist/lib/render-as.d.ts +13 -0
- package/dist/lib/render-as.js +46 -0
- package/dist/terrazzo/index.d.ts +4 -3
- package/dist/terrazzo/index.js +17 -6
- package/dist/tokens.css +28 -4
- package/package.json +2 -2
- package/tokens/dark.tokens.json +6 -0
- package/tokens/sys.tokens.json +7 -0
- package/dist/components/button/close-button.d.ts +0 -16
- package/dist/components/button/close-button.js +0 -30
|
@@ -2,6 +2,8 @@ import { Field } from "../field/field.js";
|
|
|
2
2
|
import { fieldStateAttributes } from "../field/field-state.js";
|
|
3
3
|
import { useFieldState } from "../field/use-field-state.js";
|
|
4
4
|
import { detachHiddenInput } from "../field/hidden-input.js";
|
|
5
|
+
import { Spinner } from "../spinner/spinner.js";
|
|
6
|
+
import { Tooltip } from "../tooltip/tooltip.js";
|
|
5
7
|
import { Combobox } from "./combobox.js";
|
|
6
8
|
import { itemsOf, loadOf } from "./combobox-items.js";
|
|
7
9
|
import { ItemLookupsContext } from "./item-lookups.js";
|
|
@@ -15,7 +17,7 @@ import { use, useEffect, useRef, useState } from "react";
|
|
|
15
17
|
var DEFAULT_SEARCH_DELAY = 300;
|
|
16
18
|
var alwaysRetryable = () => true;
|
|
17
19
|
var FieldBody = (t0) => {
|
|
18
|
-
const $ = c(
|
|
20
|
+
const $ = c(137);
|
|
19
21
|
const { chrome, source, derivations, mode, labels, unavailableIcon, values, states, onChange } = t0;
|
|
20
22
|
const { label, description, errors, requiredness, optionalLabel, dirty, touched, pending: t1, placeholder, readOnly, name, onBlur, retryable: t2, searchDelay: t3, className, icon, checkIcon } = chrome;
|
|
21
23
|
const pending = t1 === void 0 ? false : t1;
|
|
@@ -199,76 +201,122 @@ var FieldBody = (t0) => {
|
|
|
199
201
|
} else t22 = $[50];
|
|
200
202
|
const root = t22;
|
|
201
203
|
let t23;
|
|
202
|
-
if ($[51] !==
|
|
203
|
-
t23 = /* @__PURE__ */ jsx(Field.
|
|
204
|
+
if ($[51] !== optionalLabel || $[52] !== requiredness) {
|
|
205
|
+
t23 = /* @__PURE__ */ jsx(Field.Requiredness, {
|
|
204
206
|
requiredness,
|
|
205
|
-
optionalLabel
|
|
206
|
-
children: label
|
|
207
|
+
optionalLabel
|
|
207
208
|
});
|
|
208
|
-
$[51] =
|
|
209
|
-
$[52] =
|
|
210
|
-
$[53] =
|
|
211
|
-
|
|
212
|
-
} else t23 = $[54];
|
|
209
|
+
$[51] = optionalLabel;
|
|
210
|
+
$[52] = requiredness;
|
|
211
|
+
$[53] = t23;
|
|
212
|
+
} else t23 = $[53];
|
|
213
213
|
let t24;
|
|
214
|
-
if ($[
|
|
215
|
-
t24 =
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
children:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
214
|
+
if ($[54] !== label || $[55] !== t23) {
|
|
215
|
+
t24 = /* @__PURE__ */ jsxs(Field.Label, { children: [
|
|
216
|
+
label,
|
|
217
|
+
" ",
|
|
218
|
+
t23
|
|
219
|
+
] });
|
|
220
|
+
$[54] = label;
|
|
221
|
+
$[55] = t23;
|
|
222
|
+
$[56] = t24;
|
|
223
|
+
} else t24 = $[56];
|
|
224
|
+
let t25;
|
|
225
|
+
if ($[57] !== disabled || $[58] !== first || $[59] !== itemKey || $[60] !== mode || $[61] !== nameOf || $[62] !== onChange || $[63] !== placeholder || $[64] !== readOnly || $[65] !== states || $[66] !== values || $[67] !== view) {
|
|
226
|
+
t25 = mode.multiple === true && /* @__PURE__ */ jsx(Combobox.Chips, { children: first === void 0 ? /* @__PURE__ */ jsx("span", {
|
|
227
|
+
"aria-hidden": "true",
|
|
228
|
+
children: placeholder
|
|
229
|
+
}) : /* @__PURE__ */ jsx(Combobox.ChipList, {
|
|
230
|
+
label: mode.selectedLabel,
|
|
231
|
+
items: states,
|
|
232
|
+
itemKey: _temp,
|
|
233
|
+
disabled,
|
|
234
|
+
readOnly,
|
|
235
|
+
onRemove: (remaining) => {
|
|
236
|
+
const kept = new Set(remaining.map(_temp2));
|
|
237
|
+
onChange(values.filter((value_0) => kept.has(itemKey(value_0))));
|
|
238
|
+
},
|
|
239
|
+
children: (state_3) => /* @__PURE__ */ jsxs(Combobox.Chip, {
|
|
240
|
+
id: state_3.key,
|
|
241
|
+
textValue: nameOf(state_3),
|
|
242
|
+
children: [view(state_3), /* @__PURE__ */ jsx(Tooltip, {
|
|
243
|
+
content: mode.removeHint(nameOf(state_3)),
|
|
244
|
+
children: /* @__PURE__ */ jsx(Combobox.ChipRemove, {
|
|
245
|
+
"aria-label": mode.removeLabel,
|
|
246
|
+
children: mode.removeIcon
|
|
247
|
+
})
|
|
248
|
+
})]
|
|
249
|
+
}, state_3.key)
|
|
250
|
+
}) });
|
|
251
|
+
$[57] = disabled;
|
|
252
|
+
$[58] = first;
|
|
251
253
|
$[59] = itemKey;
|
|
252
254
|
$[60] = mode;
|
|
253
255
|
$[61] = nameOf;
|
|
254
|
-
$[62] =
|
|
255
|
-
$[63] =
|
|
256
|
-
$[64] =
|
|
257
|
-
$[65] =
|
|
258
|
-
$[66] =
|
|
259
|
-
$[67] =
|
|
260
|
-
$[68] =
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
256
|
+
$[62] = onChange;
|
|
257
|
+
$[63] = placeholder;
|
|
258
|
+
$[64] = readOnly;
|
|
259
|
+
$[65] = states;
|
|
260
|
+
$[66] = values;
|
|
261
|
+
$[67] = view;
|
|
262
|
+
$[68] = t25;
|
|
263
|
+
} else t25 = $[68];
|
|
264
|
+
let t26;
|
|
265
|
+
if ($[69] !== first || $[70] !== mode.multiple || $[71] !== nameOf || $[72] !== placeholder || $[73] !== states || $[74] !== view) {
|
|
266
|
+
t26 = mode.multiple === true ? /* @__PURE__ */ jsx(Combobox.SpokenValue, { children: first === void 0 ? placeholder : states.map(nameOf).join(", ") }) : /* @__PURE__ */ jsx(Combobox.TriggerValue, { children: first === void 0 ? placeholder : view(first) });
|
|
267
|
+
$[69] = first;
|
|
268
|
+
$[70] = mode.multiple;
|
|
269
|
+
$[71] = nameOf;
|
|
270
|
+
$[72] = placeholder;
|
|
271
|
+
$[73] = states;
|
|
272
|
+
$[74] = view;
|
|
273
|
+
$[75] = t26;
|
|
274
|
+
} else t26 = $[75];
|
|
265
275
|
let t27;
|
|
266
|
-
if ($[
|
|
267
|
-
t27 = /* @__PURE__ */ jsx(Combobox.
|
|
276
|
+
if ($[76] === Symbol.for("react.memo_cache_sentinel")) {
|
|
277
|
+
t27 = /* @__PURE__ */ jsx(Combobox.Pending, { children: /* @__PURE__ */ jsx(Spinner, { size: 1 }) });
|
|
278
|
+
$[76] = t27;
|
|
279
|
+
} else t27 = $[76];
|
|
280
|
+
let t28;
|
|
281
|
+
if ($[77] !== icon) {
|
|
282
|
+
t28 = /* @__PURE__ */ jsx(Combobox.Icon, { children: icon });
|
|
283
|
+
$[77] = icon;
|
|
284
|
+
$[78] = t28;
|
|
285
|
+
} else t28 = $[78];
|
|
286
|
+
let t29;
|
|
287
|
+
if ($[79] !== t26 || $[80] !== t28) {
|
|
288
|
+
t29 = /* @__PURE__ */ jsxs(Combobox.Trigger, { children: [
|
|
289
|
+
t26,
|
|
290
|
+
t27,
|
|
291
|
+
t28
|
|
292
|
+
] });
|
|
293
|
+
$[79] = t26;
|
|
294
|
+
$[80] = t28;
|
|
295
|
+
$[81] = t29;
|
|
296
|
+
} else t29 = $[81];
|
|
297
|
+
let t30;
|
|
298
|
+
if ($[82] !== fieldState || $[83] !== onBlur || $[84] !== t25 || $[85] !== t29) {
|
|
299
|
+
t30 = /* @__PURE__ */ jsxs(Combobox.Control, {
|
|
300
|
+
ref: anchorRef,
|
|
301
|
+
state: fieldState,
|
|
302
|
+
onBlur,
|
|
303
|
+
children: [t25, t29]
|
|
304
|
+
});
|
|
305
|
+
$[82] = fieldState;
|
|
306
|
+
$[83] = onBlur;
|
|
307
|
+
$[84] = t25;
|
|
308
|
+
$[85] = t29;
|
|
309
|
+
$[86] = t30;
|
|
310
|
+
} else t30 = $[86];
|
|
311
|
+
const t31 = source.query === void 0 ? items.length === 0 : search === "";
|
|
312
|
+
const t32 = mode.multiple === true;
|
|
313
|
+
let t33;
|
|
314
|
+
if ($[87] !== checkIcon || $[88] !== chrome.loadBrokenLabel || $[89] !== chrome.loadFailedLabel || $[90] !== chrome.loadingLabel || $[91] !== chrome.loadingMoreLabel || $[92] !== chrome.noOptionsLabel || $[93] !== chrome.noResultsLabel || $[94] !== chrome.resultsLabel || $[95] !== chrome.retryLabel || $[96] !== chrome.searchLabel || $[97] !== itemKey || $[98] !== load || $[99] !== renderItem || $[100] !== source.query || $[101] !== t31 || $[102] !== t32) {
|
|
315
|
+
t33 = /* @__PURE__ */ jsx(Combobox.Body, {
|
|
268
316
|
load,
|
|
269
317
|
query: source.query,
|
|
270
|
-
noOptions:
|
|
271
|
-
multiple:
|
|
318
|
+
noOptions: t31,
|
|
319
|
+
multiple: t32,
|
|
272
320
|
itemKey,
|
|
273
321
|
checkIcon,
|
|
274
322
|
loadingLabel: chrome.loadingLabel,
|
|
@@ -282,88 +330,88 @@ var FieldBody = (t0) => {
|
|
|
282
330
|
resultsLabel: chrome.resultsLabel,
|
|
283
331
|
children: renderItem
|
|
284
332
|
});
|
|
285
|
-
$[
|
|
286
|
-
$[
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
} else
|
|
303
|
-
let
|
|
304
|
-
if ($[
|
|
305
|
-
|
|
333
|
+
$[87] = checkIcon;
|
|
334
|
+
$[88] = chrome.loadBrokenLabel;
|
|
335
|
+
$[89] = chrome.loadFailedLabel;
|
|
336
|
+
$[90] = chrome.loadingLabel;
|
|
337
|
+
$[91] = chrome.loadingMoreLabel;
|
|
338
|
+
$[92] = chrome.noOptionsLabel;
|
|
339
|
+
$[93] = chrome.noResultsLabel;
|
|
340
|
+
$[94] = chrome.resultsLabel;
|
|
341
|
+
$[95] = chrome.retryLabel;
|
|
342
|
+
$[96] = chrome.searchLabel;
|
|
343
|
+
$[97] = itemKey;
|
|
344
|
+
$[98] = load;
|
|
345
|
+
$[99] = renderItem;
|
|
346
|
+
$[100] = source.query;
|
|
347
|
+
$[101] = t31;
|
|
348
|
+
$[102] = t32;
|
|
349
|
+
$[103] = t33;
|
|
350
|
+
} else t33 = $[103];
|
|
351
|
+
let t34;
|
|
352
|
+
if ($[104] !== label || $[105] !== t33) {
|
|
353
|
+
t34 = /* @__PURE__ */ jsx(Combobox.Portal, { children: /* @__PURE__ */ jsx(Combobox.Positioner, {
|
|
306
354
|
anchor: anchorRef,
|
|
307
355
|
children: /* @__PURE__ */ jsx(Combobox.Popup, {
|
|
308
356
|
"aria-label": label,
|
|
309
|
-
children:
|
|
357
|
+
children: t33
|
|
310
358
|
})
|
|
311
359
|
}) });
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
314
|
-
$[
|
|
315
|
-
} else
|
|
316
|
-
let
|
|
317
|
-
if ($[
|
|
318
|
-
|
|
360
|
+
$[104] = label;
|
|
361
|
+
$[105] = t33;
|
|
362
|
+
$[106] = t34;
|
|
363
|
+
} else t34 = $[106];
|
|
364
|
+
let t35;
|
|
365
|
+
if ($[107] !== labels || $[108] !== states) {
|
|
366
|
+
t35 = labels !== void 0 && /* @__PURE__ */ jsx(ValueStatesStatus, {
|
|
319
367
|
states,
|
|
320
368
|
labels
|
|
321
369
|
});
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
} else
|
|
326
|
-
let
|
|
327
|
-
if ($[
|
|
328
|
-
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
331
|
-
} else
|
|
332
|
-
let
|
|
333
|
-
if ($[
|
|
334
|
-
|
|
335
|
-
$[
|
|
336
|
-
$[
|
|
337
|
-
} else
|
|
338
|
-
let
|
|
339
|
-
if ($[
|
|
340
|
-
|
|
341
|
-
t23,
|
|
370
|
+
$[107] = labels;
|
|
371
|
+
$[108] = states;
|
|
372
|
+
$[109] = t35;
|
|
373
|
+
} else t35 = $[109];
|
|
374
|
+
let t36;
|
|
375
|
+
if ($[110] !== description) {
|
|
376
|
+
t36 = /* @__PURE__ */ jsx(Field.Description, { children: description });
|
|
377
|
+
$[110] = description;
|
|
378
|
+
$[111] = t36;
|
|
379
|
+
} else t36 = $[111];
|
|
380
|
+
let t37;
|
|
381
|
+
if ($[112] !== errors) {
|
|
382
|
+
t37 = /* @__PURE__ */ jsx(Field.Error, { children: errors });
|
|
383
|
+
$[112] = errors;
|
|
384
|
+
$[113] = t37;
|
|
385
|
+
} else t37 = $[113];
|
|
386
|
+
let t38;
|
|
387
|
+
if ($[114] !== t24 || $[115] !== t30 || $[116] !== t34 || $[117] !== t35 || $[118] !== t36 || $[119] !== t37) {
|
|
388
|
+
t38 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
342
389
|
t24,
|
|
343
|
-
t28,
|
|
344
|
-
t29,
|
|
345
390
|
t30,
|
|
346
|
-
|
|
391
|
+
t34,
|
|
392
|
+
t35,
|
|
393
|
+
t36,
|
|
394
|
+
t37
|
|
347
395
|
] });
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
} else
|
|
356
|
-
const parts =
|
|
357
|
-
const
|
|
358
|
-
let
|
|
359
|
-
if ($[
|
|
360
|
-
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
} else
|
|
364
|
-
let
|
|
365
|
-
if ($[
|
|
366
|
-
|
|
396
|
+
$[114] = t24;
|
|
397
|
+
$[115] = t30;
|
|
398
|
+
$[116] = t34;
|
|
399
|
+
$[117] = t35;
|
|
400
|
+
$[118] = t36;
|
|
401
|
+
$[119] = t37;
|
|
402
|
+
$[120] = t38;
|
|
403
|
+
} else t38 = $[120];
|
|
404
|
+
const parts = t38;
|
|
405
|
+
const t39 = field.invalid;
|
|
406
|
+
let t40;
|
|
407
|
+
if ($[121] !== fieldState) {
|
|
408
|
+
t40 = fieldStateAttributes(fieldState);
|
|
409
|
+
$[121] = fieldState;
|
|
410
|
+
$[122] = t40;
|
|
411
|
+
} else t40 = $[122];
|
|
412
|
+
let t41;
|
|
413
|
+
if ($[123] !== mode.multiple || $[124] !== onChange || $[125] !== parts || $[126] !== root || $[127] !== values) {
|
|
414
|
+
t41 = mode.multiple === true ? /* @__PURE__ */ jsx(Combobox.Root, {
|
|
367
415
|
...root,
|
|
368
416
|
multiple: true,
|
|
369
417
|
value: [...values],
|
|
@@ -375,34 +423,34 @@ var FieldBody = (t0) => {
|
|
|
375
423
|
onValueChange: (next_1) => onChange(next_1 === null ? [] : [next_1]),
|
|
376
424
|
children: parts
|
|
377
425
|
});
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
381
|
-
$[
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
} else
|
|
385
|
-
let
|
|
386
|
-
if ($[
|
|
387
|
-
|
|
426
|
+
$[123] = mode.multiple;
|
|
427
|
+
$[124] = onChange;
|
|
428
|
+
$[125] = parts;
|
|
429
|
+
$[126] = root;
|
|
430
|
+
$[127] = values;
|
|
431
|
+
$[128] = t41;
|
|
432
|
+
} else t41 = $[128];
|
|
433
|
+
let t42;
|
|
434
|
+
if ($[129] !== className || $[130] !== dirty || $[131] !== disabled || $[132] !== field.invalid || $[133] !== t40 || $[134] !== t41 || $[135] !== touched) {
|
|
435
|
+
t42 = /* @__PURE__ */ jsx(Field.Root, {
|
|
388
436
|
className,
|
|
389
437
|
disabled,
|
|
390
|
-
invalid:
|
|
438
|
+
invalid: t39,
|
|
391
439
|
dirty,
|
|
392
440
|
touched,
|
|
393
|
-
...
|
|
394
|
-
children:
|
|
441
|
+
...t40,
|
|
442
|
+
children: t41
|
|
395
443
|
});
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
} else
|
|
405
|
-
return
|
|
444
|
+
$[129] = className;
|
|
445
|
+
$[130] = dirty;
|
|
446
|
+
$[131] = disabled;
|
|
447
|
+
$[132] = field.invalid;
|
|
448
|
+
$[133] = t40;
|
|
449
|
+
$[134] = t41;
|
|
450
|
+
$[135] = touched;
|
|
451
|
+
$[136] = t42;
|
|
452
|
+
} else t42 = $[136];
|
|
453
|
+
return t42;
|
|
406
454
|
};
|
|
407
455
|
/**
|
|
408
456
|
* The assembled combobox: a labelled field whose control shows the selection —
|
|
@@ -538,8 +586,8 @@ var ComboboxField = (props) => {
|
|
|
538
586
|
function _temp(state_1) {
|
|
539
587
|
return state_1.key;
|
|
540
588
|
}
|
|
541
|
-
function _temp2(
|
|
542
|
-
return
|
|
589
|
+
function _temp2(state_2) {
|
|
590
|
+
return state_2.key;
|
|
543
591
|
}
|
|
544
592
|
function _temp3() {
|
|
545
593
|
return /* @__PURE__ */ new Set();
|