@igne-agency/react-web-ui 0.3.0 → 0.4.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/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.css +4 -3
- package/dist/components/fieldset/fieldset.js +1 -1
- package/dist/components/fieldset/fieldset.module.js +2 -2
- 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 +16 -0
- package/dist/terrazzo/index.js +94 -2
- package/dist/tokens.css +71 -69
- package/package.json +3 -2
- 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,5 +1,3 @@
|
|
|
1
|
-
import SvgExpandLess from "../../vendor/@material-design-icons/svg/outlined/expand_less.js";
|
|
2
|
-
import SvgExpandMore from "../../vendor/@material-design-icons/svg/outlined/expand_more.js";
|
|
3
1
|
import { useSlidingIndicator } from "../../lib/sliding-indicator/use-sliding-indicator.js";
|
|
4
2
|
import { Button } from "../button/button.js";
|
|
5
3
|
import { Tooltip as Tooltip$1 } from "../tooltip/tooltip.js";
|
|
@@ -7,11 +5,11 @@ import { NavContext } from "./nav-context.js";
|
|
|
7
5
|
import { EntryShell, entryAttributes } from "./nav-item-view.js";
|
|
8
6
|
import nav_module_default from "./nav.module.js";
|
|
9
7
|
import { c } from "react/compiler-runtime";
|
|
10
|
-
import {
|
|
11
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
12
9
|
import { clsx } from "clsx";
|
|
10
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { use, useState } from "react";
|
|
13
12
|
import { Tooltip } from "@base-ui/react/tooltip";
|
|
14
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
15
13
|
import { Collapsible } from "@base-ui/react/collapsible";
|
|
16
14
|
// src/components/nav/nav.tsx
|
|
17
15
|
var useOrientation = () => use(NavContext)?.orientation ?? "vertical";
|
|
@@ -160,7 +158,7 @@ var List = (t0) => {
|
|
|
160
158
|
} else t3 = $[10];
|
|
161
159
|
let t4;
|
|
162
160
|
if ($[11] !== children || $[12] !== t3) {
|
|
163
|
-
t4 = /* @__PURE__ */ jsxs(Fragment
|
|
161
|
+
t4 = /* @__PURE__ */ jsxs(Fragment, { children: [t3, children] });
|
|
164
162
|
$[11] = children;
|
|
165
163
|
$[12] = t3;
|
|
166
164
|
$[13] = t4;
|
|
@@ -289,13 +287,12 @@ var Link = (t0) => {
|
|
|
289
287
|
} else t5 = $[21];
|
|
290
288
|
return t5;
|
|
291
289
|
};
|
|
292
|
-
var GroupOpenContext = createContext(false);
|
|
293
290
|
/**
|
|
294
291
|
* A destination with subpages: a `GroupHeader` holding its own `Link` and a
|
|
295
|
-
* `GroupToggle`, over a `GroupPanel` that folds
|
|
292
|
+
* `GroupToggle`, over a `GroupPanel` that folds open a `GroupList` of subpages.
|
|
296
293
|
*/
|
|
297
294
|
var Group = (t0) => {
|
|
298
|
-
const $ = c(
|
|
295
|
+
const $ = c(17);
|
|
299
296
|
let children;
|
|
300
297
|
let className;
|
|
301
298
|
let onOpenChange;
|
|
@@ -352,17 +349,7 @@ var Group = (t0) => {
|
|
|
352
349
|
$[15] = t3;
|
|
353
350
|
$[16] = t4;
|
|
354
351
|
} else t4 = $[16];
|
|
355
|
-
|
|
356
|
-
if ($[17] !== current || $[18] !== t4) {
|
|
357
|
-
t5 = /* @__PURE__ */ jsx(GroupOpenContext, {
|
|
358
|
-
value: current,
|
|
359
|
-
children: t4
|
|
360
|
-
});
|
|
361
|
-
$[17] = current;
|
|
362
|
-
$[18] = t4;
|
|
363
|
-
$[19] = t5;
|
|
364
|
-
} else t5 = $[19];
|
|
365
|
-
return t5;
|
|
352
|
+
return t4;
|
|
366
353
|
};
|
|
367
354
|
/** The group's row: its own `Link`, then its `GroupToggle`. Filled while that link is current. */
|
|
368
355
|
var GroupHeader = (t0) => {
|
|
@@ -396,53 +383,118 @@ var GroupHeader = (t0) => {
|
|
|
396
383
|
} else t2 = $[7];
|
|
397
384
|
return t2;
|
|
398
385
|
};
|
|
386
|
+
/** The icon-only button that folds the group's subpages open and shut; its children are the chevron. */
|
|
399
387
|
var GroupToggle = (t0) => {
|
|
400
|
-
const $ = c(
|
|
401
|
-
|
|
402
|
-
|
|
388
|
+
const $ = c(13);
|
|
389
|
+
let children;
|
|
390
|
+
let className;
|
|
391
|
+
let label;
|
|
392
|
+
let props;
|
|
393
|
+
if ($[0] !== t0) {
|
|
394
|
+
({label, children, className, ...props} = t0);
|
|
395
|
+
$[0] = t0;
|
|
396
|
+
$[1] = children;
|
|
397
|
+
$[2] = className;
|
|
398
|
+
$[3] = label;
|
|
399
|
+
$[4] = props;
|
|
400
|
+
} else {
|
|
401
|
+
children = $[1];
|
|
402
|
+
className = $[2];
|
|
403
|
+
label = $[3];
|
|
404
|
+
props = $[4];
|
|
405
|
+
}
|
|
406
|
+
let t1;
|
|
407
|
+
if ($[5] !== className) {
|
|
408
|
+
t1 = clsx(nav_module_default.groupToggle, className);
|
|
409
|
+
$[5] = className;
|
|
410
|
+
$[6] = t1;
|
|
411
|
+
} else t1 = $[6];
|
|
403
412
|
let t2;
|
|
404
|
-
if ($[
|
|
413
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
405
414
|
t2 = /* @__PURE__ */ jsx(Collapsible.Trigger, {});
|
|
406
|
-
$[
|
|
407
|
-
} else t2 = $[
|
|
415
|
+
$[7] = t2;
|
|
416
|
+
} else t2 = $[7];
|
|
408
417
|
let t3;
|
|
409
|
-
if ($[
|
|
418
|
+
if ($[8] !== children || $[9] !== label || $[10] !== props || $[11] !== t1) {
|
|
410
419
|
t3 = /* @__PURE__ */ jsx(Button, {
|
|
420
|
+
...props,
|
|
411
421
|
variant: "tertiary",
|
|
412
422
|
iconOnly: true,
|
|
413
|
-
className:
|
|
414
|
-
icon:
|
|
423
|
+
className: t1,
|
|
424
|
+
icon: children,
|
|
415
425
|
label,
|
|
416
426
|
render: t2
|
|
417
427
|
});
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
|
|
428
|
+
$[8] = children;
|
|
429
|
+
$[9] = label;
|
|
430
|
+
$[10] = props;
|
|
431
|
+
$[11] = t1;
|
|
432
|
+
$[12] = t3;
|
|
433
|
+
} else t3 = $[12];
|
|
422
434
|
return t3;
|
|
423
435
|
};
|
|
436
|
+
/** The fold that opens and shuts the group's `GroupList`. */
|
|
424
437
|
var GroupPanel = (t0) => {
|
|
425
|
-
const $ = c(
|
|
426
|
-
|
|
438
|
+
const $ = c(8);
|
|
439
|
+
let className;
|
|
440
|
+
let props;
|
|
441
|
+
if ($[0] !== t0) {
|
|
442
|
+
({className, ...props} = t0);
|
|
443
|
+
$[0] = t0;
|
|
444
|
+
$[1] = className;
|
|
445
|
+
$[2] = props;
|
|
446
|
+
} else {
|
|
447
|
+
className = $[1];
|
|
448
|
+
props = $[2];
|
|
449
|
+
}
|
|
427
450
|
let t1;
|
|
428
|
-
if ($[
|
|
429
|
-
t1 = clsx(nav_module_default.
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
} else t1 = $[
|
|
451
|
+
if ($[3] !== className) {
|
|
452
|
+
t1 = clsx(nav_module_default.groupPanel, className);
|
|
453
|
+
$[3] = className;
|
|
454
|
+
$[4] = t1;
|
|
455
|
+
} else t1 = $[4];
|
|
433
456
|
let t2;
|
|
434
|
-
if ($[
|
|
457
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
435
458
|
t2 = /* @__PURE__ */ jsx(Collapsible.Panel, {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
459
|
+
...props,
|
|
460
|
+
className: t1
|
|
461
|
+
});
|
|
462
|
+
$[5] = props;
|
|
463
|
+
$[6] = t1;
|
|
464
|
+
$[7] = t2;
|
|
465
|
+
} else t2 = $[7];
|
|
466
|
+
return t2;
|
|
467
|
+
};
|
|
468
|
+
/** The subpages, each a `Nav.Item` holding a `Nav.Link`, joined to the group by branch lines. */
|
|
469
|
+
var GroupList = (t0) => {
|
|
470
|
+
const $ = c(8);
|
|
471
|
+
let className;
|
|
472
|
+
let props;
|
|
473
|
+
if ($[0] !== t0) {
|
|
474
|
+
({className, ...props} = t0);
|
|
475
|
+
$[0] = t0;
|
|
476
|
+
$[1] = className;
|
|
477
|
+
$[2] = props;
|
|
478
|
+
} else {
|
|
479
|
+
className = $[1];
|
|
480
|
+
props = $[2];
|
|
481
|
+
}
|
|
482
|
+
let t1;
|
|
483
|
+
if ($[3] !== className) {
|
|
484
|
+
t1 = clsx(nav_module_default.groupList, className);
|
|
485
|
+
$[3] = className;
|
|
486
|
+
$[4] = t1;
|
|
487
|
+
} else t1 = $[4];
|
|
488
|
+
let t2;
|
|
489
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
490
|
+
t2 = /* @__PURE__ */ jsx("ul", {
|
|
491
|
+
...props,
|
|
492
|
+
className: t1
|
|
441
493
|
});
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
445
|
-
} else t2 = $[
|
|
494
|
+
$[5] = props;
|
|
495
|
+
$[6] = t1;
|
|
496
|
+
$[7] = t2;
|
|
497
|
+
} else t2 = $[7];
|
|
446
498
|
return t2;
|
|
447
499
|
};
|
|
448
500
|
/**
|
|
@@ -458,7 +510,7 @@ var GroupPanel = (t0) => {
|
|
|
458
510
|
* <Nav.List>
|
|
459
511
|
* <Nav.Item>
|
|
460
512
|
* <NavLink to="/" label="Home" activeOptions={{ exact: true }}>
|
|
461
|
-
* <NavItemView.Icon
|
|
513
|
+
* <NavItemView.Icon><HomeIcon /></NavItemView.Icon>
|
|
462
514
|
* <NavItemView.Label>Home</NavItemView.Label>
|
|
463
515
|
* </NavLink>
|
|
464
516
|
* </Nav.Item>
|
|
@@ -473,7 +525,8 @@ var Nav = {
|
|
|
473
525
|
Group,
|
|
474
526
|
GroupHeader,
|
|
475
527
|
GroupToggle,
|
|
476
|
-
GroupPanel
|
|
528
|
+
GroupPanel,
|
|
529
|
+
GroupList
|
|
477
530
|
};
|
|
478
531
|
function _temp() {
|
|
479
532
|
return Tooltip.createHandle();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import './nav.css';// src/components/nav/nav.module.scss
|
|
2
|
-
var scroller = "
|
|
3
|
-
var list = "
|
|
4
|
-
var indicator = "
|
|
5
|
-
var tab = "
|
|
6
|
-
var iconSlot = "
|
|
7
|
-
var item = "
|
|
8
|
-
var label = "
|
|
9
|
-
var hintPositioner = "
|
|
10
|
-
var hintViewport = "
|
|
11
|
-
var group = "
|
|
12
|
-
var groupHeader = "
|
|
13
|
-
var groupToggle = "
|
|
14
|
-
var groupPanel = "
|
|
15
|
-
var groupList = "
|
|
2
|
+
var scroller = "_scroller_9ce88_3";
|
|
3
|
+
var list = "_list_9ce88_7";
|
|
4
|
+
var indicator = "_indicator_9ce88_21";
|
|
5
|
+
var tab = "_tab_9ce88_59";
|
|
6
|
+
var iconSlot = "_iconSlot_9ce88_103";
|
|
7
|
+
var item = "_item_9ce88_110";
|
|
8
|
+
var label = "_label_9ce88_166";
|
|
9
|
+
var hintPositioner = "_hintPositioner_9ce88_215";
|
|
10
|
+
var hintViewport = "_hintViewport_9ce88_224";
|
|
11
|
+
var group = "_group_9ce88_237";
|
|
12
|
+
var groupHeader = "_groupHeader_9ce88_241";
|
|
13
|
+
var groupToggle = "_groupToggle_9ce88_257";
|
|
14
|
+
var groupPanel = "_groupPanel_9ce88_268";
|
|
15
|
+
var groupList = "_groupList_9ce88_283";
|
|
16
16
|
var nav_module_default = {
|
|
17
17
|
scroller,
|
|
18
18
|
list,
|
|
@@ -11,6 +11,10 @@ export type NumberFieldProps = FieldProps & Omit<NumberInputRootProps, keyof Fie
|
|
|
11
11
|
decrementLabel: string;
|
|
12
12
|
/** The increment button's accessible name and tooltip, such as "Increase". */
|
|
13
13
|
incrementLabel: string;
|
|
14
|
+
/** The decrement button's icon. */
|
|
15
|
+
decrementIcon: ReactNode;
|
|
16
|
+
/** The increment button's icon. */
|
|
17
|
+
incrementIcon: ReactNode;
|
|
14
18
|
/** What the control announces itself as, such as "Number field". */
|
|
15
19
|
roleDescription: string;
|
|
16
20
|
}>;
|
|
@@ -25,10 +29,12 @@ export type NumberFieldProps = FieldProps & Omit<NumberInputRootProps, keyof Fie
|
|
|
25
29
|
* optionalLabel="optional"
|
|
26
30
|
* decrementLabel="Decrease"
|
|
27
31
|
* incrementLabel="Increase"
|
|
32
|
+
* decrementIcon={<RemoveIcon />}
|
|
33
|
+
* incrementIcon={<AddIcon />}
|
|
28
34
|
* roleDescription="Number field"
|
|
29
35
|
* format={percentFormat()}
|
|
30
36
|
* value={rate}
|
|
31
37
|
* onValueChange={setRate}
|
|
32
38
|
* />
|
|
33
39
|
*/
|
|
34
|
-
export declare const NumberField: ({ label, description, prefix, suffix, decrementLabel, incrementLabel, roleDescription, placeholder, autoComplete, enterKeyHint, onBlur, onFocus, ...rootProps }: NumberFieldProps) => ReactNode;
|
|
40
|
+
export declare const NumberField: ({ label, description, prefix, suffix, decrementLabel, incrementLabel, decrementIcon, incrementIcon, roleDescription, placeholder, autoComplete, enterKeyHint, onBlur, onFocus, ...rootProps }: NumberFieldProps) => ReactNode;
|
|
@@ -13,6 +13,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
* optionalLabel="optional"
|
|
14
14
|
* decrementLabel="Decrease"
|
|
15
15
|
* incrementLabel="Increase"
|
|
16
|
+
* decrementIcon={<RemoveIcon />}
|
|
17
|
+
* incrementIcon={<AddIcon />}
|
|
16
18
|
* roleDescription="Number field"
|
|
17
19
|
* format={percentFormat()}
|
|
18
20
|
* value={rate}
|
|
@@ -20,11 +22,13 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
20
22
|
* />
|
|
21
23
|
*/
|
|
22
24
|
var NumberField = (t0) => {
|
|
23
|
-
const $ = c(
|
|
25
|
+
const $ = c(50);
|
|
24
26
|
let autoComplete;
|
|
27
|
+
let decrementIcon;
|
|
25
28
|
let decrementLabel;
|
|
26
29
|
let description;
|
|
27
30
|
let enterKeyHint;
|
|
31
|
+
let incrementIcon;
|
|
28
32
|
let incrementLabel;
|
|
29
33
|
let label;
|
|
30
34
|
let onBlur;
|
|
@@ -35,56 +39,64 @@ var NumberField = (t0) => {
|
|
|
35
39
|
let rootProps;
|
|
36
40
|
let suffix;
|
|
37
41
|
if ($[0] !== t0) {
|
|
38
|
-
({label, description, prefix, suffix, decrementLabel, incrementLabel, roleDescription, placeholder, autoComplete, enterKeyHint, onBlur, onFocus, ...rootProps} = t0);
|
|
42
|
+
({label, description, prefix, suffix, decrementLabel, incrementLabel, decrementIcon, incrementIcon, roleDescription, placeholder, autoComplete, enterKeyHint, onBlur, onFocus, ...rootProps} = t0);
|
|
39
43
|
$[0] = t0;
|
|
40
44
|
$[1] = autoComplete;
|
|
41
|
-
$[2] =
|
|
42
|
-
$[3] =
|
|
43
|
-
$[4] =
|
|
44
|
-
$[5] =
|
|
45
|
-
$[6] =
|
|
46
|
-
$[7] =
|
|
47
|
-
$[8] =
|
|
48
|
-
$[9] =
|
|
49
|
-
$[10] =
|
|
50
|
-
$[11] =
|
|
51
|
-
$[12] =
|
|
52
|
-
$[13] =
|
|
45
|
+
$[2] = decrementIcon;
|
|
46
|
+
$[3] = decrementLabel;
|
|
47
|
+
$[4] = description;
|
|
48
|
+
$[5] = enterKeyHint;
|
|
49
|
+
$[6] = incrementIcon;
|
|
50
|
+
$[7] = incrementLabel;
|
|
51
|
+
$[8] = label;
|
|
52
|
+
$[9] = onBlur;
|
|
53
|
+
$[10] = onFocus;
|
|
54
|
+
$[11] = placeholder;
|
|
55
|
+
$[12] = prefix;
|
|
56
|
+
$[13] = roleDescription;
|
|
57
|
+
$[14] = rootProps;
|
|
58
|
+
$[15] = suffix;
|
|
53
59
|
} else {
|
|
54
60
|
autoComplete = $[1];
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
decrementIcon = $[2];
|
|
62
|
+
decrementLabel = $[3];
|
|
63
|
+
description = $[4];
|
|
64
|
+
enterKeyHint = $[5];
|
|
65
|
+
incrementIcon = $[6];
|
|
66
|
+
incrementLabel = $[7];
|
|
67
|
+
label = $[8];
|
|
68
|
+
onBlur = $[9];
|
|
69
|
+
onFocus = $[10];
|
|
70
|
+
placeholder = $[11];
|
|
71
|
+
prefix = $[12];
|
|
72
|
+
roleDescription = $[13];
|
|
73
|
+
rootProps = $[14];
|
|
74
|
+
suffix = $[15];
|
|
67
75
|
}
|
|
68
76
|
let t1;
|
|
69
|
-
if ($[
|
|
77
|
+
if ($[16] !== label) {
|
|
70
78
|
t1 = /* @__PURE__ */ jsx(NumberInput.Label, { children: label });
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
} else t1 = $[
|
|
79
|
+
$[16] = label;
|
|
80
|
+
$[17] = t1;
|
|
81
|
+
} else t1 = $[17];
|
|
74
82
|
let t2;
|
|
75
|
-
if ($[
|
|
76
|
-
t2 = /* @__PURE__ */ jsx(NumberInput.Decrement, {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
83
|
+
if ($[18] !== decrementIcon || $[19] !== decrementLabel) {
|
|
84
|
+
t2 = /* @__PURE__ */ jsx(NumberInput.Decrement, {
|
|
85
|
+
label: decrementLabel,
|
|
86
|
+
children: decrementIcon
|
|
87
|
+
});
|
|
88
|
+
$[18] = decrementIcon;
|
|
89
|
+
$[19] = decrementLabel;
|
|
90
|
+
$[20] = t2;
|
|
91
|
+
} else t2 = $[20];
|
|
80
92
|
let t3;
|
|
81
|
-
if ($[
|
|
93
|
+
if ($[21] !== prefix) {
|
|
82
94
|
t3 = prefix !== void 0 && /* @__PURE__ */ jsx(NumberInput.Affix, { children: prefix });
|
|
83
|
-
$[
|
|
84
|
-
$[
|
|
85
|
-
} else t3 = $[
|
|
95
|
+
$[21] = prefix;
|
|
96
|
+
$[22] = t3;
|
|
97
|
+
} else t3 = $[22];
|
|
86
98
|
let t4;
|
|
87
|
-
if ($[
|
|
99
|
+
if ($[23] !== autoComplete || $[24] !== enterKeyHint || $[25] !== onBlur || $[26] !== onFocus || $[27] !== placeholder || $[28] !== roleDescription) {
|
|
88
100
|
t4 = /* @__PURE__ */ jsx(NumberInput.Input, {
|
|
89
101
|
"aria-roledescription": roleDescription,
|
|
90
102
|
placeholder,
|
|
@@ -93,33 +105,37 @@ var NumberField = (t0) => {
|
|
|
93
105
|
onBlur,
|
|
94
106
|
onFocus
|
|
95
107
|
});
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
} else t4 = $[
|
|
108
|
+
$[23] = autoComplete;
|
|
109
|
+
$[24] = enterKeyHint;
|
|
110
|
+
$[25] = onBlur;
|
|
111
|
+
$[26] = onFocus;
|
|
112
|
+
$[27] = placeholder;
|
|
113
|
+
$[28] = roleDescription;
|
|
114
|
+
$[29] = t4;
|
|
115
|
+
} else t4 = $[29];
|
|
104
116
|
let t5;
|
|
105
|
-
if ($[
|
|
117
|
+
if ($[30] !== suffix) {
|
|
106
118
|
t5 = suffix !== void 0 && /* @__PURE__ */ jsx(NumberInput.Affix, { children: suffix });
|
|
107
|
-
$[
|
|
108
|
-
$[
|
|
109
|
-
} else t5 = $[
|
|
119
|
+
$[30] = suffix;
|
|
120
|
+
$[31] = t5;
|
|
121
|
+
} else t5 = $[31];
|
|
110
122
|
let t6;
|
|
111
|
-
if ($[
|
|
123
|
+
if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
|
|
112
124
|
t6 = /* @__PURE__ */ jsx(NumberInput.Pending, {});
|
|
113
|
-
$[
|
|
114
|
-
} else t6 = $[
|
|
125
|
+
$[32] = t6;
|
|
126
|
+
} else t6 = $[32];
|
|
115
127
|
let t7;
|
|
116
|
-
if ($[
|
|
117
|
-
t7 = /* @__PURE__ */ jsx(NumberInput.Increment, {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
128
|
+
if ($[33] !== incrementIcon || $[34] !== incrementLabel) {
|
|
129
|
+
t7 = /* @__PURE__ */ jsx(NumberInput.Increment, {
|
|
130
|
+
label: incrementLabel,
|
|
131
|
+
children: incrementIcon
|
|
132
|
+
});
|
|
133
|
+
$[33] = incrementIcon;
|
|
134
|
+
$[34] = incrementLabel;
|
|
135
|
+
$[35] = t7;
|
|
136
|
+
} else t7 = $[35];
|
|
121
137
|
let t8;
|
|
122
|
-
if ($[
|
|
138
|
+
if ($[36] !== t2 || $[37] !== t3 || $[38] !== t4 || $[39] !== t5 || $[40] !== t7) {
|
|
123
139
|
t8 = /* @__PURE__ */ jsxs(NumberInput.Group, { children: [
|
|
124
140
|
t2,
|
|
125
141
|
t3,
|
|
@@ -128,26 +144,26 @@ var NumberField = (t0) => {
|
|
|
128
144
|
t6,
|
|
129
145
|
t7
|
|
130
146
|
] });
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
} else t8 = $[
|
|
147
|
+
$[36] = t2;
|
|
148
|
+
$[37] = t3;
|
|
149
|
+
$[38] = t4;
|
|
150
|
+
$[39] = t5;
|
|
151
|
+
$[40] = t7;
|
|
152
|
+
$[41] = t8;
|
|
153
|
+
} else t8 = $[41];
|
|
138
154
|
let t9;
|
|
139
|
-
if ($[
|
|
155
|
+
if ($[42] !== description) {
|
|
140
156
|
t9 = /* @__PURE__ */ jsx(NumberInput.Description, { children: description });
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
} else t9 = $[
|
|
157
|
+
$[42] = description;
|
|
158
|
+
$[43] = t9;
|
|
159
|
+
} else t9 = $[43];
|
|
144
160
|
let t10;
|
|
145
|
-
if ($[
|
|
161
|
+
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
146
162
|
t10 = /* @__PURE__ */ jsx(NumberInput.Error, {});
|
|
147
|
-
$[
|
|
148
|
-
} else t10 = $[
|
|
163
|
+
$[44] = t10;
|
|
164
|
+
} else t10 = $[44];
|
|
149
165
|
let t11;
|
|
150
|
-
if ($[
|
|
166
|
+
if ($[45] !== rootProps || $[46] !== t1 || $[47] !== t8 || $[48] !== t9) {
|
|
151
167
|
t11 = /* @__PURE__ */ jsxs(NumberInput.Root, {
|
|
152
168
|
...rootProps,
|
|
153
169
|
children: [
|
|
@@ -157,12 +173,12 @@ var NumberField = (t0) => {
|
|
|
157
173
|
t10
|
|
158
174
|
]
|
|
159
175
|
});
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
} else t11 = $[
|
|
176
|
+
$[45] = rootProps;
|
|
177
|
+
$[46] = t1;
|
|
178
|
+
$[47] = t8;
|
|
179
|
+
$[48] = t9;
|
|
180
|
+
$[49] = t11;
|
|
181
|
+
} else t11 = $[49];
|
|
166
182
|
return t11;
|
|
167
183
|
};
|
|
168
184
|
export { NumberField };
|
|
@@ -19,25 +19,70 @@ export type NumberInputRootProps = Omit<FieldProps, "label" | "description"> & R
|
|
|
19
19
|
className?: string;
|
|
20
20
|
children?: ReactNode;
|
|
21
21
|
}>;
|
|
22
|
+
/**
|
|
23
|
+
* The field frame around a number input, holding its value, format and bounds
|
|
24
|
+
* and projecting its state onto every part.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* <NumberInput.Root value={hours} onValueChange={setHours} optionalLabel="optional">…</NumberInput.Root>
|
|
28
|
+
*/
|
|
22
29
|
declare const NumberInputRoot: ({ value, onValueChange, format, min, max, step, disabled, readOnly, requiredness, optionalLabel, errors, dirty, touched, pending, state, name, id, className, children, }: NumberInputRootProps) => ReactNode;
|
|
23
30
|
export type NumberInputLabelProps = InputLabelProps;
|
|
24
31
|
export type NumberInputGroupProps = Omit<BaseNumberField.Group.Props, "className"> & Readonly<{
|
|
25
32
|
className?: string;
|
|
26
33
|
}>;
|
|
34
|
+
/**
|
|
35
|
+
* The bordered box holding the control, its stepper buttons and its inlays.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* <NumberInput.Group><NumberInput.Input /></NumberInput.Group>
|
|
39
|
+
*/
|
|
27
40
|
declare const NumberInputGroup: ({ className, children, ...props }: NumberInputGroupProps) => ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* A slot beside the control inside the group, such as an icon.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* <NumberInput.Inlay aria-hidden="true"><EuroIcon /></NumberInput.Inlay>
|
|
46
|
+
*/
|
|
28
47
|
declare const NumberInputInlay: ({ className, ...props }: ComponentProps<"span">) => ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Static text beside the control, such as a unit. Decoration only.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* <NumberInput.Affix>kg</NumberInput.Affix>
|
|
53
|
+
*/
|
|
29
54
|
declare const NumberInputAffix: ({ className, ...props }: ComponentProps<"span">) => ReactNode;
|
|
30
55
|
export type NumberInputInputProps = Omit<BaseNumberField.Input.Props, "className"> & Readonly<{
|
|
31
56
|
className?: string;
|
|
32
57
|
}>;
|
|
58
|
+
/**
|
|
59
|
+
* The bare control, formatting and parsing `Root`'s value.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* <NumberInput.Input aria-roledescription="Number field" />
|
|
63
|
+
*/
|
|
33
64
|
declare const NumberInputInput: ({ className, ...props }: NumberInputInputProps) => ReactNode;
|
|
34
65
|
export type NumberInputStepProps = Readonly<{
|
|
35
66
|
/** Accessible name and tooltip hint, such as "Increase". */
|
|
36
67
|
label: string;
|
|
37
68
|
className?: string;
|
|
69
|
+
/** The icon the button shows. */
|
|
70
|
+
children: ReactNode;
|
|
38
71
|
}>;
|
|
39
|
-
|
|
40
|
-
|
|
72
|
+
/**
|
|
73
|
+
* The icon-only button that steps the value down.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* <NumberInput.Decrement label="Decrease"><RemoveIcon /></NumberInput.Decrement>
|
|
77
|
+
*/
|
|
78
|
+
declare const NumberInputDecrement: ({ label, className, children, }: NumberInputStepProps) => ReactNode;
|
|
79
|
+
/**
|
|
80
|
+
* The icon-only button that steps the value up.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* <NumberInput.Increment label="Increase"><AddIcon /></NumberInput.Increment>
|
|
84
|
+
*/
|
|
85
|
+
declare const NumberInputIncrement: ({ label, className, children, }: NumberInputStepProps) => ReactNode;
|
|
41
86
|
export type NumberInputPendingProps = InputPendingProps;
|
|
42
87
|
export type NumberInputErrorProps = InputErrorProps;
|
|
43
88
|
/** The parts of a number input. */
|
|
@@ -65,9 +110,13 @@ export type NumberInputParts = Readonly<{
|
|
|
65
110
|
* <NumberInput.Root value={hours} onValueChange={setHours} optionalLabel="optional">
|
|
66
111
|
* <NumberInput.Label>Hours</NumberInput.Label>
|
|
67
112
|
* <NumberInput.Group>
|
|
68
|
-
* <NumberInput.Decrement label="Decrease"
|
|
113
|
+
* <NumberInput.Decrement label="Decrease">
|
|
114
|
+
* <RemoveIcon />
|
|
115
|
+
* </NumberInput.Decrement>
|
|
69
116
|
* <NumberInput.Input aria-roledescription="Number field" />
|
|
70
|
-
* <NumberInput.Increment label="Increase"
|
|
117
|
+
* <NumberInput.Increment label="Increase">
|
|
118
|
+
* <AddIcon />
|
|
119
|
+
* </NumberInput.Increment>
|
|
71
120
|
* </NumberInput.Group>
|
|
72
121
|
* <NumberInput.Error />
|
|
73
122
|
* </NumberInput.Root>
|