@igne-agency/react-web-ui 0.3.1 → 0.5.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/README.md +32 -1
- package/dist/base.css +3 -0
- package/dist/components/accordion/accordion.css +24 -19
- package/dist/components/accordion/accordion.d.ts +19 -3
- package/dist/components/accordion/accordion.js +86 -32
- package/dist/components/accordion/accordion.module.js +8 -8
- package/dist/components/active-filters/active-filter-describers.d.ts +1 -1
- package/dist/components/active-filters/active-filter-describers.js +1 -1
- package/dist/components/active-filters/active-filters.d.ts +35 -2
- package/dist/components/active-filters/active-filters.js +57 -52
- package/dist/components/active-filters/index.js +2 -2
- package/dist/components/attachment-tile/attachment-preview.d.ts +11 -9
- package/dist/components/attachment-tile/attachment-preview.js +102 -68
- package/dist/components/attachment-tile/attachment-tile.css +22 -13
- package/dist/components/attachment-tile/attachment-tile.d.ts +51 -6
- package/dist/components/attachment-tile/attachment-tile.js +209 -85
- package/dist/components/attachment-tile/attachment-tile.module.js +10 -10
- package/dist/components/attachment-tile/index.d.ts +1 -1
- package/dist/components/attachment-tile/index.js +2 -2
- package/dist/components/avatar/avatar.d.ts +5 -5
- package/dist/components/avatar/avatar.js +64 -37
- package/dist/components/avatar-group/avatar-group.js +2 -2
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +22 -7
- package/dist/components/breadcrumbs/breadcrumbs.js +189 -170
- package/dist/components/button/button.d.ts +2 -3
- package/dist/components/button/button.js +58 -77
- package/dist/components/button/close-button.d.ts +4 -2
- package/dist/components/button/close-button.js +9 -9
- package/dist/components/checkbox-field/checkbox-field.d.ts +17 -3
- package/dist/components/checkbox-field/checkbox-field.js +108 -131
- package/dist/components/checkbox-field/checkbox.css +26 -34
- package/dist/components/checkbox-field/checkbox.d.ts +51 -8
- package/dist/components/checkbox-field/checkbox.js +221 -57
- package/dist/components/checkbox-field/checkbox.module.js +6 -8
- package/dist/components/checkbox-field/index.d.ts +0 -1
- package/dist/components/checkbox-field/index.js +1 -2
- package/dist/components/checkbox-field/tsf-checkbox-field.d.ts +2 -2
- package/dist/components/checkbox-group-field/checkbox-group-field.d.ts +4 -1
- package/dist/components/checkbox-group-field/checkbox-group-field.js +54 -50
- package/dist/components/checkbox-group-field/checkbox-group.d.ts +7 -2
- package/dist/components/checkbox-group-field/checkbox-group.js +8 -3
- package/dist/components/collapsible/collapsible.css +23 -18
- package/dist/components/collapsible/collapsible.d.ts +18 -3
- package/dist/components/collapsible/collapsible.js +85 -32
- package/dist/components/collapsible/collapsible.module.js +7 -7
- package/dist/components/combobox-field/combobox-field.d.ts +9 -1
- package/dist/components/combobox-field/combobox-field.js +195 -175
- package/dist/components/combobox-field/combobox-items.d.ts +2 -2
- package/dist/components/combobox-field/combobox-items.js +4 -4
- package/dist/components/combobox-field/combobox.css +99 -96
- package/dist/components/combobox-field/combobox.d.ts +94 -15
- package/dist/components/combobox-field/combobox.js +484 -159
- package/dist/components/combobox-field/combobox.module.js +21 -21
- package/dist/components/combobox-field/index.d.ts +0 -1
- package/dist/components/combobox-field/selection.d.ts +4 -1
- package/dist/components/combobox-field/value-state-view.css +7 -3
- package/dist/components/combobox-field/value-state-view.d.ts +4 -2
- package/dist/components/combobox-field/value-state-view.js +15 -15
- package/dist/components/combobox-field/value-state-view.module.js +6 -4
- package/dist/components/composer/composer-attachments.d.ts +11 -3
- package/dist/components/composer/composer-attachments.js +61 -47
- package/dist/components/composer/composer-editor.d.ts +2 -1
- package/dist/components/composer/composer-editor.js +79 -71
- package/dist/components/composer/composer-mentions.js +2 -2
- package/dist/components/composer/composer.d.ts +42 -21
- package/dist/components/composer/composer.js +201 -58
- package/dist/components/composer/mention-text.js +3 -3
- package/dist/components/confirm-dialog/confirm-dialog.d.ts +8 -7
- package/dist/components/confirm-dialog/confirm-dialog.js +10 -9
- package/dist/components/conversation/conversation.context.d.ts +0 -5
- package/dist/components/conversation/conversation.d.ts +63 -29
- package/dist/components/conversation/conversation.js +193 -82
- package/dist/components/conversation/index.d.ts +1 -1
- package/dist/components/date-field/date-field.d.ts +10 -4
- package/dist/components/date-field/date-field.js +57 -43
- package/dist/components/date-field/date-input.d.ts +20 -3
- package/dist/components/date-field/date-input.js +28 -13
- package/dist/components/date-field/index.d.ts +1 -1
- package/dist/components/date-field/tsf-date-field.d.ts +1 -1
- package/dist/components/date-field/tsf-date-field.js +1 -1
- package/dist/components/date-range-field/date-range-field.d.ts +8 -4
- package/dist/components/date-range-field/date-range-field.js +57 -45
- package/dist/components/date-range-field/date-range-input.d.ts +20 -3
- package/dist/components/date-range-field/date-range-input.js +27 -12
- package/dist/components/date-range-field/tsf-date-range-field.d.ts +1 -1
- package/dist/components/date-range-field/tsf-date-range-field.js +1 -1
- package/dist/components/detail-list/detail-list.d.ts +28 -27
- package/dist/components/detail-list/detail-list.js +177 -121
- package/dist/components/dialog/dialog.d.ts +47 -27
- package/dist/components/dialog/dialog.js +101 -38
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/drawer.d.ts +48 -30
- package/dist/components/drawer/drawer.js +113 -41
- package/dist/components/email-field/email-field.d.ts +5 -3
- package/dist/components/email-field/email-field.js +1 -3
- package/dist/components/email-field/tsf-email-field.d.ts +3 -2
- package/dist/components/empty-message/empty-message.d.ts +3 -3
- package/dist/components/empty-message/empty-message.js +3 -3
- package/dist/components/error-boundary/error-boundary.d.ts +5 -2
- package/dist/components/error-boundary/error-boundary.js +2 -3
- package/dist/components/error-message/error-message.d.ts +1 -1
- package/dist/components/error-message/error-message.js +1 -1
- package/dist/components/error-text/error-text.js +3 -3
- package/dist/components/field/field.d.ts +5 -5
- package/dist/components/field/field.js +9 -9
- package/dist/components/field/index.js +2 -2
- package/dist/components/field/input-parts.js +1 -1
- package/dist/components/field-placeholder/field-placeholder.d.ts +4 -1
- package/dist/components/field-placeholder/field-placeholder.js +41 -26
- package/dist/components/fieldset/field-group.js +1 -1
- package/dist/components/fieldset/fieldset-root.js +1 -1
- package/dist/components/fieldset/fieldset.js +1 -1
- package/dist/components/file-field/file-field.css +19 -15
- package/dist/components/file-field/file-field.d.ts +10 -1
- package/dist/components/file-field/file-field.js +130 -109
- package/dist/components/file-field/file-field.module.js +6 -4
- package/dist/components/file-field/file-input.d.ts +32 -9
- package/dist/components/file-field/file-input.js +94 -74
- package/dist/components/filter-bar/filter-bar.d.ts +79 -51
- package/dist/components/filter-bar/filter-bar.js +552 -216
- package/dist/components/form/form.d.ts +4 -6
- package/dist/components/form/form.js +6 -8
- package/dist/components/icon/icon.d.ts +5 -10
- package/dist/components/icon/icon.js +4 -6
- package/dist/components/link/link.js +1 -1
- package/dist/components/link-button/link-button.d.ts +1 -2
- package/dist/components/link-button/link-button.js +12 -22
- package/dist/components/loading-message/loading-message.d.ts +2 -2
- package/dist/components/loading-message/loading-message.js +1 -1
- package/dist/components/locale-provider/locale-provider.js +1 -1
- package/dist/components/menu/menu.d.ts +40 -22
- package/dist/components/menu/menu.js +100 -40
- package/dist/components/nav/nav-context.d.ts +0 -1
- package/dist/components/nav/nav-context.js +1 -2
- package/dist/components/nav/nav-item-view.d.ts +7 -7
- package/dist/components/nav/nav-item-view.js +27 -51
- package/dist/components/nav/nav.css +72 -60
- package/dist/components/nav/nav.d.ts +15 -8
- package/dist/components/nav/nav.js +105 -52
- package/dist/components/nav/nav.module.js +14 -14
- package/dist/components/number-field/number-field.d.ts +7 -1
- package/dist/components/number-field/number-field.js +98 -82
- package/dist/components/number-field/number-input.d.ts +53 -4
- package/dist/components/number-field/number-input.js +68 -21
- package/dist/components/number-field/tsf-number-field.d.ts +1 -1
- package/dist/components/number-field/tsf-number-field.js +1 -1
- package/dist/components/otp-field/otp-input.d.ts +25 -0
- package/dist/components/otp-field/otp-input.js +26 -1
- package/dist/components/pagination/pagination.d.ts +82 -23
- package/dist/components/pagination/pagination.js +656 -229
- package/dist/components/password-field/password-field.d.ts +7 -1
- package/dist/components/password-field/password-field.js +117 -126
- package/dist/components/password-field/password-strength.js +1 -1
- package/dist/components/password-field/tsf-password-field.d.ts +1 -1
- package/dist/components/password-field/tsf-password-field.js +1 -1
- package/dist/components/photo-field/photo-field.d.ts +17 -3
- package/dist/components/photo-field/photo-field.js +168 -89
- package/dist/components/photo-field/photo-input-context.d.ts +25 -0
- package/dist/components/photo-field/photo-input-context.js +14 -0
- package/dist/components/photo-field/photo-input.d.ts +58 -23
- package/dist/components/photo-field/photo-input.js +459 -261
- package/dist/components/popover/popover.d.ts +55 -23
- package/dist/components/popover/popover.js +205 -61
- package/dist/components/radio-group-field/radio-group.js +1 -1
- package/dist/components/search-field/search-field.d.ts +7 -5
- package/dist/components/search-field/search-field.js +4 -6
- package/dist/components/search-field/tsf-search-field.d.ts +1 -1
- package/dist/components/search-field/tsf-search-field.js +1 -1
- package/dist/components/segmented-control-field/segmented-control.js +1 -1
- package/dist/components/select-field/select-field.d.ts +7 -1
- package/dist/components/select-field/select-field.js +151 -139
- package/dist/components/select-field/select.d.ts +28 -6
- package/dist/components/select-field/select.js +234 -149
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/spinner/spinner.css +47 -1
- package/dist/components/spinner/spinner.js +28 -11
- package/dist/components/spinner/spinner.module.js +18 -3
- package/dist/components/stale/stale.d.ts +17 -21
- package/dist/components/stale/stale.js +307 -129
- package/dist/components/status-message/status-message.css +22 -21
- package/dist/components/status-message/status-message.d.ts +10 -5
- package/dist/components/status-message/status-message.js +20 -24
- package/dist/components/status-message/status-message.module.js +6 -6
- package/dist/components/status-message/status-preset.d.ts +4 -5
- package/dist/components/status-message/status-preset.js +3 -3
- package/dist/components/switch-field/switch.js +1 -1
- package/dist/components/tabs/tabs.d.ts +51 -28
- package/dist/components/tabs/tabs.js +219 -144
- package/dist/components/tag/tag.css +23 -21
- package/dist/components/tag/tag.d.ts +17 -15
- package/dist/components/tag/tag.js +140 -65
- package/dist/components/tag/tag.module.js +3 -3
- package/dist/components/tag-group/tag-group.css +30 -27
- package/dist/components/tag-group/tag-group.d.ts +10 -4
- package/dist/components/tag-group/tag-group.js +47 -35
- package/dist/components/tag-group/tag-group.module.js +4 -4
- package/dist/components/text-field/text-field.d.ts +14 -3
- package/dist/components/text-field/text-field.js +154 -133
- package/dist/components/text-field/text-input.d.ts +89 -3
- package/dist/components/text-field/text-input.js +184 -70
- package/dist/components/textarea-field/textarea.js +1 -1
- package/dist/components/time-field/time-input.d.ts +6 -0
- package/dist/components/time-field/time-input.js +6 -0
- package/dist/components/time-zone-provider/time-zone-provider.js +1 -1
- package/dist/components/toast/index.js +2 -2
- package/dist/components/toast/toast-provider.css +38 -34
- package/dist/components/toast/toast-provider.d.ts +65 -3
- package/dist/components/toast/toast-provider.js +313 -148
- package/dist/components/toast/toast-provider.module.js +11 -17
- package/dist/components/toast/toast.d.ts +5 -1
- package/dist/components/toast/toast.js +2 -1
- package/dist/components/toggle-group-field/toggle-group.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +6 -6
- package/dist/components/tooltip/tooltip.js +7 -7
- package/dist/data-table/data-table-content.d.ts +18 -10
- package/dist/data-table/data-table-content.js +145 -290
- package/dist/data-table/data-table-context.d.ts +4 -2
- package/dist/data-table/data-table-context.js +1 -1
- package/dist/data-table/data-table-parts.d.ts +99 -0
- package/dist/data-table/data-table-parts.js +1182 -0
- package/dist/data-table/data-table-selection.d.ts +7 -3
- package/dist/data-table/data-table-selection.js +62 -37
- package/dist/data-table/data-table.css +100 -95
- package/dist/data-table/data-table.d.ts +49 -25
- package/dist/data-table/data-table.js +95 -83
- package/dist/data-table/data-table.module.js +34 -34
- package/dist/data-table/index.d.ts +2 -1
- package/dist/data-table/index.js +2 -1
- package/dist/data-view/use-data-view.d.ts +2 -2
- package/dist/data-view/use-data-view.js +2 -2
- package/dist/index.js +7 -8
- package/dist/lib/calendar/calendar-navigation.d.ts +9 -2
- package/dist/lib/calendar/calendar-navigation.js +72 -73
- package/dist/lib/calendar/calendar-year.d.ts +4 -3
- package/dist/lib/calendar/calendar-year.js +137 -156
- package/dist/lib/calendar/temporal.d.ts +18 -12
- package/dist/lib/calendar/temporal.js +191 -147
- package/dist/lib/table-storage.d.ts +2 -2
- package/dist/lib/table-storage.js +2 -2
- package/dist/lib/unsaved-changes/leave-guard.js +1 -1
- package/dist/terrazzo/index.d.ts +20 -3
- package/dist/terrazzo/index.js +110 -7
- package/dist/tokens.css +94 -71
- package/package.json +4 -3
- package/tokens/ref.tokens.json +0 -30
- package/tokens/sys.tokens.json +0 -7
- package/dist/assets/spinner.js +0 -28
- package/dist/components/checkbox-field/checkbox-glyph.d.ts +0 -12
- package/dist/components/checkbox-field/checkbox-glyph.js +0 -38
- package/dist/components/combobox-field/combobox-popup-body.d.ts +0 -34
- package/dist/components/combobox-field/combobox-popup-body.js +0 -142
- package/dist/components/conversation/conversation.context.js +0 -4
- package/dist/vendor/@material-design-icons/svg/outlined/add.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/arrow_downward.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/arrow_forward.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/arrow_upward.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/attach_file.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/block.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/calendar_today.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/check.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/check_circle.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/chevron_left.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/chevron_right.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/close.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/content_copy.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/date_range.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/description.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/download.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/error.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/error_outline.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/expand_less.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/expand_more.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/filter_alt.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/filter_alt_off.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/first_page.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/info.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/keyboard_arrow_down.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/last_page.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/mail.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/more_horiz.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/photo_camera.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/remove.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/restart_alt.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/restore.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/search.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/unfold_more.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/upload_file.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/visibility.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/visibility_off.js +0 -12
- package/dist/vendor/@material-design-icons/svg/outlined/warning_amber.js +0 -12
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import SvgCheck from "../../vendor/@material-design-icons/svg/outlined/check.js";
|
|
2
|
-
import SvgExpandMore from "../../vendor/@material-design-icons/svg/outlined/expand_more.js";
|
|
3
1
|
import { usePopupEdgePadding } from "../../lib/popup-edge-padding.js";
|
|
4
2
|
import { Button } from "../button/button.js";
|
|
5
3
|
import { Field } from "../field/field.js";
|
|
6
4
|
import { fieldStateAttributes } from "../field/field-state.js";
|
|
7
5
|
import { useFieldFocus, withFieldFocus } from "../field/use-field-focus.js";
|
|
8
6
|
import { OPTIONS_LOADED, optionsLoadMessage } from "../field/options-load.js";
|
|
9
|
-
import { Icon } from "../icon/icon.js";
|
|
10
7
|
import { Spinner } from "../spinner/spinner.js";
|
|
11
8
|
import { SelectContext, useSelectContext } from "./select-context.js";
|
|
12
9
|
import select_module_default from "./select.module.js";
|
|
13
10
|
import { c } from "react/compiler-runtime";
|
|
14
|
-
import { useRef } from "react";
|
|
15
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
11
|
import { clsx } from "clsx";
|
|
12
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useRef } from "react";
|
|
17
14
|
import { Select } from "@base-ui/react/select";
|
|
18
15
|
// src/components/select-field/select.tsx
|
|
16
|
+
/** The select's state, holding the options every part below it reads. */
|
|
19
17
|
var SelectRoot = (t0) => {
|
|
20
18
|
const $ = c(15);
|
|
21
19
|
let onValueChange;
|
|
@@ -70,6 +68,7 @@ var SelectRoot = (t0) => {
|
|
|
70
68
|
} else t4 = $[14];
|
|
71
69
|
return t4;
|
|
72
70
|
};
|
|
71
|
+
/** The label that names the trigger. */
|
|
73
72
|
var SelectLabel = (t0) => {
|
|
74
73
|
const $ = c(8);
|
|
75
74
|
let className;
|
|
@@ -102,67 +101,97 @@ var SelectLabel = (t0) => {
|
|
|
102
101
|
return t2;
|
|
103
102
|
};
|
|
104
103
|
var NO_STATE = {};
|
|
104
|
+
/** The chevron after the trigger's value. Its children are the icon; without them it renders nothing. */
|
|
105
|
+
var SelectIcon = (t0) => {
|
|
106
|
+
const $ = c(8);
|
|
107
|
+
let children;
|
|
108
|
+
let className;
|
|
109
|
+
let props;
|
|
110
|
+
if ($[0] !== t0) {
|
|
111
|
+
({className, children, ...props} = t0);
|
|
112
|
+
$[0] = t0;
|
|
113
|
+
$[1] = children;
|
|
114
|
+
$[2] = className;
|
|
115
|
+
$[3] = props;
|
|
116
|
+
} else {
|
|
117
|
+
children = $[1];
|
|
118
|
+
className = $[2];
|
|
119
|
+
props = $[3];
|
|
120
|
+
}
|
|
121
|
+
let t1;
|
|
122
|
+
if ($[4] !== children || $[5] !== className || $[6] !== props) {
|
|
123
|
+
t1 = children === void 0 || children === null || children === false ? null : /* @__PURE__ */ jsx(Select.Icon, {
|
|
124
|
+
className: clsx(select_module_default.icon, className),
|
|
125
|
+
...props,
|
|
126
|
+
children
|
|
127
|
+
});
|
|
128
|
+
$[4] = children;
|
|
129
|
+
$[5] = className;
|
|
130
|
+
$[6] = props;
|
|
131
|
+
$[7] = t1;
|
|
132
|
+
} else t1 = $[7];
|
|
133
|
+
return t1;
|
|
134
|
+
};
|
|
135
|
+
/** The button that opens the list. Without children it shows the value, the pending mark and `icon`. */
|
|
105
136
|
var SelectTrigger = (t0) => {
|
|
106
|
-
const $ = c(
|
|
137
|
+
const $ = c(24);
|
|
107
138
|
let children;
|
|
108
139
|
let className;
|
|
140
|
+
let icon;
|
|
109
141
|
let placeholder;
|
|
110
142
|
let props;
|
|
111
143
|
let t1;
|
|
112
144
|
if ($[0] !== t0) {
|
|
113
|
-
({placeholder, state: t1, className, children, ...props} = t0);
|
|
145
|
+
({placeholder, state: t1, icon, className, children, ...props} = t0);
|
|
114
146
|
$[0] = t0;
|
|
115
147
|
$[1] = children;
|
|
116
148
|
$[2] = className;
|
|
117
|
-
$[3] =
|
|
118
|
-
$[4] =
|
|
119
|
-
$[5] =
|
|
149
|
+
$[3] = icon;
|
|
150
|
+
$[4] = placeholder;
|
|
151
|
+
$[5] = props;
|
|
152
|
+
$[6] = t1;
|
|
120
153
|
} else {
|
|
121
154
|
children = $[1];
|
|
122
155
|
className = $[2];
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
156
|
+
icon = $[3];
|
|
157
|
+
placeholder = $[4];
|
|
158
|
+
props = $[5];
|
|
159
|
+
t1 = $[6];
|
|
126
160
|
}
|
|
127
161
|
const state = t1 === void 0 ? NO_STATE : t1;
|
|
128
162
|
const focus = useFieldFocus(props);
|
|
129
163
|
const t2 = state.validity === "invalid" || void 0;
|
|
130
164
|
let t3;
|
|
131
|
-
if ($[
|
|
165
|
+
if ($[7] !== className) {
|
|
132
166
|
t3 = clsx(select_module_default.trigger, className);
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
} else t3 = $[
|
|
167
|
+
$[7] = className;
|
|
168
|
+
$[8] = t3;
|
|
169
|
+
} else t3 = $[8];
|
|
136
170
|
let t4;
|
|
137
|
-
if ($[
|
|
171
|
+
if ($[9] !== focus || $[10] !== state) {
|
|
138
172
|
t4 = fieldStateAttributes(withFieldFocus(state, focus));
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
} else t4 = $[
|
|
173
|
+
$[9] = focus;
|
|
174
|
+
$[10] = state;
|
|
175
|
+
$[11] = t4;
|
|
176
|
+
} else t4 = $[11];
|
|
143
177
|
let t5;
|
|
144
|
-
if ($[
|
|
145
|
-
t5 = children ?? /* @__PURE__ */ jsxs(Fragment
|
|
178
|
+
if ($[12] !== children || $[13] !== icon || $[14] !== placeholder || $[15] !== state.pending) {
|
|
179
|
+
t5 = children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
146
180
|
/* @__PURE__ */ jsx(Select.Value, {
|
|
147
181
|
className: select_module_default.value,
|
|
148
182
|
placeholder
|
|
149
183
|
}),
|
|
150
184
|
state.pending === true && /* @__PURE__ */ jsx(Field.Pending, {}),
|
|
151
|
-
/* @__PURE__ */ jsx(
|
|
152
|
-
className: select_module_default.icon,
|
|
153
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
154
|
-
svg: SvgExpandMore,
|
|
155
|
-
label: ""
|
|
156
|
-
})
|
|
157
|
-
})
|
|
185
|
+
/* @__PURE__ */ jsx(SelectIcon, { children: icon })
|
|
158
186
|
] });
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
|
|
187
|
+
$[12] = children;
|
|
188
|
+
$[13] = icon;
|
|
189
|
+
$[14] = placeholder;
|
|
190
|
+
$[15] = state.pending;
|
|
191
|
+
$[16] = t5;
|
|
192
|
+
} else t5 = $[16];
|
|
164
193
|
let t6;
|
|
165
|
-
if ($[
|
|
194
|
+
if ($[17] !== focus.props || $[18] !== props || $[19] !== t2 || $[20] !== t3 || $[21] !== t4 || $[22] !== t5) {
|
|
166
195
|
t6 = /* @__PURE__ */ jsx(Select.Trigger, {
|
|
167
196
|
"aria-invalid": t2,
|
|
168
197
|
className: t3,
|
|
@@ -171,16 +200,17 @@ var SelectTrigger = (t0) => {
|
|
|
171
200
|
...focus.props,
|
|
172
201
|
children: t5
|
|
173
202
|
});
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
} else t6 = $[
|
|
203
|
+
$[17] = focus.props;
|
|
204
|
+
$[18] = props;
|
|
205
|
+
$[19] = t2;
|
|
206
|
+
$[20] = t3;
|
|
207
|
+
$[21] = t4;
|
|
208
|
+
$[22] = t5;
|
|
209
|
+
$[23] = t6;
|
|
210
|
+
} else t6 = $[23];
|
|
182
211
|
return t6;
|
|
183
212
|
};
|
|
213
|
+
/** Places the popup against the trigger. */
|
|
184
214
|
var SelectPositioner = (t0) => {
|
|
185
215
|
const $ = c(13);
|
|
186
216
|
let className;
|
|
@@ -227,6 +257,7 @@ var SelectPositioner = (t0) => {
|
|
|
227
257
|
} else t5 = $[12];
|
|
228
258
|
return t5;
|
|
229
259
|
};
|
|
260
|
+
/** The shared popup surface the list sits on. */
|
|
230
261
|
var SelectPopup = (t0) => {
|
|
231
262
|
const $ = c(8);
|
|
232
263
|
let className;
|
|
@@ -258,76 +289,130 @@ var SelectPopup = (t0) => {
|
|
|
258
289
|
} else t2 = $[7];
|
|
259
290
|
return t2;
|
|
260
291
|
};
|
|
292
|
+
/** One option's row, holding its `ItemText` and `ItemIndicator`. */
|
|
261
293
|
var SelectItem = (t0) => {
|
|
262
|
-
const $ = c(
|
|
263
|
-
let children;
|
|
294
|
+
const $ = c(8);
|
|
264
295
|
let className;
|
|
265
296
|
let props;
|
|
266
297
|
if ($[0] !== t0) {
|
|
267
|
-
({className,
|
|
298
|
+
({className, ...props} = t0);
|
|
268
299
|
$[0] = t0;
|
|
269
|
-
$[1] =
|
|
270
|
-
$[2] =
|
|
271
|
-
$[3] = props;
|
|
300
|
+
$[1] = className;
|
|
301
|
+
$[2] = props;
|
|
272
302
|
} else {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
props = $[3];
|
|
303
|
+
className = $[1];
|
|
304
|
+
props = $[2];
|
|
276
305
|
}
|
|
277
306
|
let t1;
|
|
278
|
-
if ($[
|
|
307
|
+
if ($[3] !== className) {
|
|
279
308
|
t1 = clsx(select_module_default.item, className);
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
} else t1 = $[
|
|
309
|
+
$[3] = className;
|
|
310
|
+
$[4] = t1;
|
|
311
|
+
} else t1 = $[4];
|
|
283
312
|
let t2;
|
|
284
|
-
if ($[6] !==
|
|
285
|
-
t2 = /* @__PURE__ */ jsx(Select.
|
|
286
|
-
className:
|
|
287
|
-
|
|
313
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
314
|
+
t2 = /* @__PURE__ */ jsx(Select.Item, {
|
|
315
|
+
className: t1,
|
|
316
|
+
...props
|
|
288
317
|
});
|
|
289
|
-
$[
|
|
318
|
+
$[5] = props;
|
|
319
|
+
$[6] = t1;
|
|
290
320
|
$[7] = t2;
|
|
291
321
|
} else t2 = $[7];
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
322
|
+
return t2;
|
|
323
|
+
};
|
|
324
|
+
/** An option's text, which the trigger shows once it is chosen. */
|
|
325
|
+
var SelectItemText = (t0) => {
|
|
326
|
+
const $ = c(8);
|
|
327
|
+
let className;
|
|
328
|
+
let props;
|
|
329
|
+
if ($[0] !== t0) {
|
|
330
|
+
({className, ...props} = t0);
|
|
331
|
+
$[0] = t0;
|
|
332
|
+
$[1] = className;
|
|
333
|
+
$[2] = props;
|
|
334
|
+
} else {
|
|
335
|
+
className = $[1];
|
|
336
|
+
props = $[2];
|
|
337
|
+
}
|
|
338
|
+
let t1;
|
|
339
|
+
if ($[3] !== className) {
|
|
340
|
+
t1 = clsx(select_module_default.itemText, className);
|
|
341
|
+
$[3] = className;
|
|
342
|
+
$[4] = t1;
|
|
343
|
+
} else t1 = $[4];
|
|
344
|
+
let t2;
|
|
345
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
346
|
+
t2 = /* @__PURE__ */ jsx(Select.ItemText, {
|
|
347
|
+
className: t1,
|
|
348
|
+
...props
|
|
300
349
|
});
|
|
301
|
-
$[
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
350
|
+
$[5] = props;
|
|
351
|
+
$[6] = t1;
|
|
352
|
+
$[7] = t2;
|
|
353
|
+
} else t2 = $[7];
|
|
354
|
+
return t2;
|
|
355
|
+
};
|
|
356
|
+
/** The mark beside the chosen option. Its children are the mark, such as a tick. */
|
|
357
|
+
var SelectItemIndicator = (t0) => {
|
|
358
|
+
const $ = c(8);
|
|
359
|
+
let className;
|
|
360
|
+
let props;
|
|
361
|
+
if ($[0] !== t0) {
|
|
362
|
+
({className, ...props} = t0);
|
|
363
|
+
$[0] = t0;
|
|
364
|
+
$[1] = className;
|
|
365
|
+
$[2] = props;
|
|
366
|
+
} else {
|
|
367
|
+
className = $[1];
|
|
368
|
+
props = $[2];
|
|
369
|
+
}
|
|
370
|
+
let t1;
|
|
371
|
+
if ($[3] !== className) {
|
|
372
|
+
t1 = clsx(select_module_default.indicator, className);
|
|
373
|
+
$[3] = className;
|
|
374
|
+
$[4] = t1;
|
|
375
|
+
} else t1 = $[4];
|
|
376
|
+
let t2;
|
|
377
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
378
|
+
t2 = /* @__PURE__ */ jsx(Select.ItemIndicator, {
|
|
306
379
|
className: t1,
|
|
307
|
-
...props
|
|
308
|
-
children: [t2, t3]
|
|
380
|
+
...props
|
|
309
381
|
});
|
|
310
|
-
$[
|
|
311
|
-
$[
|
|
312
|
-
$[
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
return t4;
|
|
382
|
+
$[5] = props;
|
|
383
|
+
$[6] = t1;
|
|
384
|
+
$[7] = t2;
|
|
385
|
+
} else t2 = $[7];
|
|
386
|
+
return t2;
|
|
316
387
|
};
|
|
317
388
|
/**
|
|
318
389
|
* Every option of the enclosing `Select.Root`, in the order it was given them.
|
|
319
390
|
* Compose the parts directly instead where a row is more than its label.
|
|
320
391
|
*/
|
|
321
|
-
var SelectItems = () => {
|
|
322
|
-
const $ = c(
|
|
392
|
+
var SelectItems = (t0) => {
|
|
393
|
+
const $ = c(5);
|
|
394
|
+
const { checkIcon } = t0;
|
|
323
395
|
const { options } = useSelectContext();
|
|
324
|
-
let
|
|
325
|
-
if ($[0] !== options) {
|
|
326
|
-
|
|
327
|
-
$[
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
396
|
+
let t1;
|
|
397
|
+
if ($[0] !== checkIcon || $[1] !== options) {
|
|
398
|
+
let t2;
|
|
399
|
+
if ($[3] !== checkIcon) {
|
|
400
|
+
t2 = (option) => /* @__PURE__ */ jsxs(SelectItem, {
|
|
401
|
+
value: option.value,
|
|
402
|
+
children: [/* @__PURE__ */ jsxs(SelectItemText, { children: [option.label, option.detail !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
403
|
+
className: select_module_default.itemDetail,
|
|
404
|
+
children: option.detail
|
|
405
|
+
})] }), /* @__PURE__ */ jsx(SelectItemIndicator, { children: checkIcon })]
|
|
406
|
+
}, option.value);
|
|
407
|
+
$[3] = checkIcon;
|
|
408
|
+
$[4] = t2;
|
|
409
|
+
} else t2 = $[4];
|
|
410
|
+
t1 = options.map(t2);
|
|
411
|
+
$[0] = checkIcon;
|
|
412
|
+
$[1] = options;
|
|
413
|
+
$[2] = t1;
|
|
414
|
+
} else t1 = $[2];
|
|
415
|
+
return t1;
|
|
331
416
|
};
|
|
332
417
|
var SelectStatus = (t0) => {
|
|
333
418
|
const $ = c(14);
|
|
@@ -393,7 +478,8 @@ var SelectStatus = (t0) => {
|
|
|
393
478
|
* select takes. Reach for the parts where the list needs anything else.
|
|
394
479
|
*/
|
|
395
480
|
var SelectControl = (t0) => {
|
|
396
|
-
const $ = c(
|
|
481
|
+
const $ = c(27);
|
|
482
|
+
let checkIcon;
|
|
397
483
|
let loadBrokenLabel;
|
|
398
484
|
let loadFailedLabel;
|
|
399
485
|
let loadingLabel;
|
|
@@ -402,42 +488,44 @@ var SelectControl = (t0) => {
|
|
|
402
488
|
let retryLabel;
|
|
403
489
|
let t1;
|
|
404
490
|
if ($[0] !== t0) {
|
|
405
|
-
({load: t1, loadingLabel, loadFailedLabel, loadBrokenLabel, retryLabel, noOptionsLabel, ...props} = t0);
|
|
491
|
+
({load: t1, loadingLabel, loadFailedLabel, loadBrokenLabel, retryLabel, noOptionsLabel, checkIcon, ...props} = t0);
|
|
406
492
|
$[0] = t0;
|
|
407
|
-
$[1] =
|
|
408
|
-
$[2] =
|
|
409
|
-
$[3] =
|
|
410
|
-
$[4] =
|
|
411
|
-
$[5] =
|
|
412
|
-
$[6] =
|
|
413
|
-
$[7] =
|
|
493
|
+
$[1] = checkIcon;
|
|
494
|
+
$[2] = loadBrokenLabel;
|
|
495
|
+
$[3] = loadFailedLabel;
|
|
496
|
+
$[4] = loadingLabel;
|
|
497
|
+
$[5] = noOptionsLabel;
|
|
498
|
+
$[6] = props;
|
|
499
|
+
$[7] = retryLabel;
|
|
500
|
+
$[8] = t1;
|
|
414
501
|
} else {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
502
|
+
checkIcon = $[1];
|
|
503
|
+
loadBrokenLabel = $[2];
|
|
504
|
+
loadFailedLabel = $[3];
|
|
505
|
+
loadingLabel = $[4];
|
|
506
|
+
noOptionsLabel = $[5];
|
|
507
|
+
props = $[6];
|
|
508
|
+
retryLabel = $[7];
|
|
509
|
+
t1 = $[8];
|
|
422
510
|
}
|
|
423
511
|
const load = t1 === void 0 ? OPTIONS_LOADED : t1;
|
|
424
512
|
const popupRef = useRef(null);
|
|
425
513
|
let t2;
|
|
426
|
-
if ($[
|
|
514
|
+
if ($[9] !== props) {
|
|
427
515
|
t2 = /* @__PURE__ */ jsx(SelectTrigger, { ...props });
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
} else t2 = $[
|
|
516
|
+
$[9] = props;
|
|
517
|
+
$[10] = t2;
|
|
518
|
+
} else t2 = $[10];
|
|
431
519
|
let t3;
|
|
432
|
-
if ($[
|
|
520
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
433
521
|
t3 = (retry) => {
|
|
434
522
|
retry();
|
|
435
523
|
popupRef.current?.focus();
|
|
436
524
|
};
|
|
437
|
-
$[
|
|
438
|
-
} else t3 = $[
|
|
525
|
+
$[11] = t3;
|
|
526
|
+
} else t3 = $[11];
|
|
439
527
|
let t4;
|
|
440
|
-
if ($[
|
|
528
|
+
if ($[12] !== load || $[13] !== loadBrokenLabel || $[14] !== loadFailedLabel || $[15] !== loadingLabel || $[16] !== noOptionsLabel || $[17] !== retryLabel) {
|
|
441
529
|
t4 = /* @__PURE__ */ jsx(SelectStatus, {
|
|
442
530
|
load,
|
|
443
531
|
loadingLabel,
|
|
@@ -447,35 +535,37 @@ var SelectControl = (t0) => {
|
|
|
447
535
|
noOptionsLabel,
|
|
448
536
|
onRetry: t3
|
|
449
537
|
});
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
} else t4 = $[
|
|
538
|
+
$[12] = load;
|
|
539
|
+
$[13] = loadBrokenLabel;
|
|
540
|
+
$[14] = loadFailedLabel;
|
|
541
|
+
$[15] = loadingLabel;
|
|
542
|
+
$[16] = noOptionsLabel;
|
|
543
|
+
$[17] = retryLabel;
|
|
544
|
+
$[18] = t4;
|
|
545
|
+
} else t4 = $[18];
|
|
458
546
|
let t5;
|
|
459
|
-
if ($[
|
|
460
|
-
t5 = /* @__PURE__ */ jsx(Select.List, { children: /* @__PURE__ */ jsx(SelectItems, {}) });
|
|
461
|
-
$[
|
|
462
|
-
|
|
547
|
+
if ($[19] !== checkIcon) {
|
|
548
|
+
t5 = /* @__PURE__ */ jsx(Select.List, { children: /* @__PURE__ */ jsx(SelectItems, { checkIcon }) });
|
|
549
|
+
$[19] = checkIcon;
|
|
550
|
+
$[20] = t5;
|
|
551
|
+
} else t5 = $[20];
|
|
463
552
|
let t6;
|
|
464
|
-
if ($[
|
|
553
|
+
if ($[21] !== t4 || $[22] !== t5) {
|
|
465
554
|
t6 = /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(SelectPositioner, { children: /* @__PURE__ */ jsxs(SelectPopup, {
|
|
466
555
|
ref: popupRef,
|
|
467
556
|
children: [t4, t5]
|
|
468
557
|
}) }) });
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
|
|
558
|
+
$[21] = t4;
|
|
559
|
+
$[22] = t5;
|
|
560
|
+
$[23] = t6;
|
|
561
|
+
} else t6 = $[23];
|
|
472
562
|
let t7;
|
|
473
|
-
if ($[
|
|
474
|
-
t7 = /* @__PURE__ */ jsxs(Fragment
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
} else t7 = $[
|
|
563
|
+
if ($[24] !== t2 || $[25] !== t6) {
|
|
564
|
+
t7 = /* @__PURE__ */ jsxs(Fragment, { children: [t2, t6] });
|
|
565
|
+
$[24] = t2;
|
|
566
|
+
$[25] = t6;
|
|
567
|
+
$[26] = t7;
|
|
568
|
+
} else t7 = $[26];
|
|
479
569
|
return t7;
|
|
480
570
|
};
|
|
481
571
|
/**
|
|
@@ -488,6 +578,8 @@ var SelectControl = (t0) => {
|
|
|
488
578
|
* <Select.Root options={options} value={value} onValueChange={setValue}>
|
|
489
579
|
* <Select.Label>Status</Select.Label>
|
|
490
580
|
* <Select.Control
|
|
581
|
+
* icon={<ExpandMoreIcon />}
|
|
582
|
+
* checkIcon={<CheckIcon />}
|
|
491
583
|
* loadingLabel="Loading options…"
|
|
492
584
|
* loadFailedLabel="Options could not be loaded."
|
|
493
585
|
* loadBrokenLabel="Options could not be loaded, and trying again won't help."
|
|
@@ -501,12 +593,14 @@ var Select$1 = {
|
|
|
501
593
|
Label: SelectLabel,
|
|
502
594
|
Trigger: SelectTrigger,
|
|
503
595
|
Value: Select.Value,
|
|
504
|
-
Icon:
|
|
596
|
+
Icon: SelectIcon,
|
|
505
597
|
Portal: Select.Portal,
|
|
506
598
|
Positioner: SelectPositioner,
|
|
507
599
|
Popup: SelectPopup,
|
|
508
600
|
List: Select.List,
|
|
509
601
|
Item: SelectItem,
|
|
602
|
+
ItemText: SelectItemText,
|
|
603
|
+
ItemIndicator: SelectItemIndicator,
|
|
510
604
|
Items: SelectItems,
|
|
511
605
|
Group: Select.Group,
|
|
512
606
|
GroupLabel: Select.GroupLabel,
|
|
@@ -517,13 +611,4 @@ var Select$1 = {
|
|
|
517
611
|
Error: Field.Error,
|
|
518
612
|
useIds: Field.useIds
|
|
519
613
|
};
|
|
520
|
-
function _temp(option) {
|
|
521
|
-
return /* @__PURE__ */ jsxs(SelectItem, {
|
|
522
|
-
value: option.value,
|
|
523
|
-
children: [option.label, option.detail !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
524
|
-
className: select_module_default.itemDetail,
|
|
525
|
-
children: option.detail
|
|
526
|
-
})]
|
|
527
|
-
}, option.value);
|
|
528
|
-
}
|
|
529
614
|
export { Select$1 as Select };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import skeleton_module_default from "./skeleton.module.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
// src/components/skeleton/skeleton.tsx
|
|
6
6
|
/**
|
|
7
7
|
* A placeholder block standing in for content that has not arrived yet. Sized by
|
|
@@ -1,7 +1,53 @@
|
|
|
1
1
|
@layer kit.reset, kit.base, kit.components;
|
|
2
2
|
@layer kit.components {
|
|
3
|
-
|
|
3
|
+
@keyframes _loading-pulse_1ojim_1 {
|
|
4
|
+
50% {
|
|
5
|
+
opacity: 1;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
@keyframes _spinner-turn_1ojim_1 {
|
|
9
|
+
100% {
|
|
10
|
+
transform: rotate(360deg);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
@keyframes _spinner-sweep_1ojim_1 {
|
|
14
|
+
0% {
|
|
15
|
+
stroke-dasharray: 0 150;
|
|
16
|
+
stroke-dashoffset: 0;
|
|
17
|
+
}
|
|
18
|
+
47.5% {
|
|
19
|
+
stroke-dasharray: 42 150;
|
|
20
|
+
stroke-dashoffset: -16;
|
|
21
|
+
}
|
|
22
|
+
95%, 100% {
|
|
23
|
+
stroke-dasharray: 42 150;
|
|
24
|
+
stroke-dashoffset: -59;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
._spinner_1ojim_27 {
|
|
4
28
|
display: inline-block;
|
|
5
29
|
color: var(--spinner-color, currentcolor);
|
|
6
30
|
}
|
|
31
|
+
._ring_1ojim_31 {
|
|
32
|
+
transform-origin: center;
|
|
33
|
+
}
|
|
34
|
+
._arc_1ojim_34 {
|
|
35
|
+
stroke-dasharray: 42 150;
|
|
36
|
+
stroke-dashoffset: -16;
|
|
37
|
+
stroke-linecap: round;
|
|
38
|
+
}
|
|
39
|
+
@media (prefers-reduced-motion) {
|
|
40
|
+
._ring_1ojim_31 {
|
|
41
|
+
opacity: 0.55;
|
|
42
|
+
animation: _loading-pulse_1ojim_1 2.4s var(--sys-motion-standard) infinite;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
@media not (prefers-reduced-motion) {
|
|
46
|
+
._ring_1ojim_31 {
|
|
47
|
+
animation: _spinner-turn_1ojim_1 2s linear infinite;
|
|
48
|
+
}
|
|
49
|
+
._arc_1ojim_34 {
|
|
50
|
+
animation: _spinner-sweep_1ojim_1 1.5s ease-in-out infinite;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
7
53
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import SvgSpinner from "../../assets/spinner.js";
|
|
2
1
|
import spinner_module_default from "./spinner.module.js";
|
|
3
2
|
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
3
|
import { clsx } from "clsx";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
// src/components/spinner/spinner.tsx
|
|
7
6
|
/**
|
|
8
7
|
* Minor inline loading indicator for small, in-place waits: a button, a field,
|
|
@@ -13,7 +12,7 @@ import { clsx } from "clsx";
|
|
|
13
12
|
* {isPending ? <Spinner size={1} /> : <List items={data} />}
|
|
14
13
|
*/
|
|
15
14
|
var Spinner = (t0) => {
|
|
16
|
-
const $ = c(
|
|
15
|
+
const $ = c(9);
|
|
17
16
|
const { size: t1, className } = t0;
|
|
18
17
|
const size = t1 === void 0 ? 1.5 : t1;
|
|
19
18
|
let t2;
|
|
@@ -35,16 +34,34 @@ var Spinner = (t0) => {
|
|
|
35
34
|
$[4] = t5;
|
|
36
35
|
} else t5 = $[4];
|
|
37
36
|
let t6;
|
|
38
|
-
if ($[5]
|
|
39
|
-
t6 = /* @__PURE__ */ jsx(
|
|
37
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
38
|
+
t6 = /* @__PURE__ */ jsx("g", {
|
|
39
|
+
className: spinner_module_default.ring,
|
|
40
|
+
children: /* @__PURE__ */ jsx("circle", {
|
|
41
|
+
className: spinner_module_default.arc,
|
|
42
|
+
cx: "12",
|
|
43
|
+
cy: "12",
|
|
44
|
+
r: "9.5",
|
|
45
|
+
strokeWidth: "3"
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
$[5] = t6;
|
|
49
|
+
} else t6 = $[5];
|
|
50
|
+
let t7;
|
|
51
|
+
if ($[6] !== t2 || $[7] !== t5) {
|
|
52
|
+
t7 = /* @__PURE__ */ jsx("svg", {
|
|
53
|
+
viewBox: "0 0 24 24",
|
|
54
|
+
fill: "none",
|
|
55
|
+
stroke: "currentColor",
|
|
40
56
|
className: t2,
|
|
41
57
|
style: t5,
|
|
42
|
-
"aria-hidden": "true"
|
|
58
|
+
"aria-hidden": "true",
|
|
59
|
+
children: t6
|
|
43
60
|
});
|
|
44
|
-
$[
|
|
45
|
-
$[
|
|
46
|
-
$[
|
|
47
|
-
} else
|
|
48
|
-
return
|
|
61
|
+
$[6] = t2;
|
|
62
|
+
$[7] = t5;
|
|
63
|
+
$[8] = t7;
|
|
64
|
+
} else t7 = $[8];
|
|
65
|
+
return t7;
|
|
49
66
|
};
|
|
50
67
|
export { Spinner };
|