@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,15 +1,12 @@
|
|
|
1
|
-
import SvgChevronRight from "../../vendor/@material-design-icons/svg/outlined/chevron_right.js";
|
|
2
|
-
import SvgMoreHoriz from "../../vendor/@material-design-icons/svg/outlined/more_horiz.js";
|
|
3
1
|
import { Button } from "../button/button.js";
|
|
4
|
-
import { Icon } from "../icon/icon.js";
|
|
5
2
|
import { Menu } from "../menu/menu.js";
|
|
6
3
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
7
4
|
import breadcrumbs_module_default from "./breadcrumbs.module.js";
|
|
8
5
|
import { useFold } from "./use-fold.js";
|
|
9
6
|
import { c } from "react/compiler-runtime";
|
|
10
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { clsx } from "clsx";
|
|
12
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
10
|
// src/components/breadcrumbs/breadcrumbs.tsx
|
|
14
11
|
var isClipped = (element) => element.scrollWidth > element.clientWidth;
|
|
15
12
|
/**
|
|
@@ -342,105 +339,93 @@ var Page = (t0) => {
|
|
|
342
339
|
} else t3 = $[12];
|
|
343
340
|
return t3;
|
|
344
341
|
};
|
|
345
|
-
/**
|
|
342
|
+
/**
|
|
343
|
+
* The decorative space between two crumbs, holding the app's mark, such as a
|
|
344
|
+
* chevron, given as `children`. Without one it is spacing alone.
|
|
345
|
+
*/
|
|
346
346
|
var Separator = (t0) => {
|
|
347
|
-
const $ = c(
|
|
348
|
-
let children;
|
|
347
|
+
const $ = c(14);
|
|
349
348
|
let className;
|
|
350
349
|
let props;
|
|
351
350
|
let ref;
|
|
352
351
|
let render;
|
|
353
352
|
if ($[0] !== t0) {
|
|
354
|
-
({render, className,
|
|
353
|
+
({render, className, ref, ...props} = t0);
|
|
355
354
|
$[0] = t0;
|
|
356
|
-
$[1] =
|
|
357
|
-
$[2] =
|
|
358
|
-
$[3] =
|
|
359
|
-
$[4] =
|
|
360
|
-
$[5] = render;
|
|
355
|
+
$[1] = className;
|
|
356
|
+
$[2] = props;
|
|
357
|
+
$[3] = ref;
|
|
358
|
+
$[4] = render;
|
|
361
359
|
} else {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
render = $[5];
|
|
360
|
+
className = $[1];
|
|
361
|
+
props = $[2];
|
|
362
|
+
ref = $[3];
|
|
363
|
+
render = $[4];
|
|
367
364
|
}
|
|
368
365
|
let t1;
|
|
369
|
-
if ($[
|
|
366
|
+
if ($[5] !== className) {
|
|
370
367
|
t1 = clsx(breadcrumbs_module_default.separator, className);
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
} else t1 = $[
|
|
368
|
+
$[5] = className;
|
|
369
|
+
$[6] = t1;
|
|
370
|
+
} else t1 = $[6];
|
|
374
371
|
let t2;
|
|
375
|
-
if ($[8] !==
|
|
376
|
-
t2 =
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
372
|
+
if ($[7] !== props || $[8] !== t1) {
|
|
373
|
+
t2 = {
|
|
374
|
+
...props,
|
|
375
|
+
"aria-hidden": true,
|
|
376
|
+
className: t1
|
|
377
|
+
};
|
|
378
|
+
$[7] = props;
|
|
379
|
+
$[8] = t1;
|
|
381
380
|
$[9] = t2;
|
|
382
381
|
} else t2 = $[9];
|
|
383
382
|
let t3;
|
|
384
|
-
if ($[10] !==
|
|
383
|
+
if ($[10] !== ref || $[11] !== render || $[12] !== t2) {
|
|
385
384
|
t3 = {
|
|
386
|
-
...props,
|
|
387
|
-
"aria-hidden": true,
|
|
388
|
-
className: t1,
|
|
389
|
-
children: t2
|
|
390
|
-
};
|
|
391
|
-
$[10] = props;
|
|
392
|
-
$[11] = t1;
|
|
393
|
-
$[12] = t2;
|
|
394
|
-
$[13] = t3;
|
|
395
|
-
} else t3 = $[13];
|
|
396
|
-
let t4;
|
|
397
|
-
if ($[14] !== ref || $[15] !== render || $[16] !== t3) {
|
|
398
|
-
t4 = {
|
|
399
385
|
defaultTagName: "li",
|
|
400
386
|
render,
|
|
401
387
|
ref,
|
|
402
|
-
props:
|
|
388
|
+
props: t2
|
|
403
389
|
};
|
|
404
|
-
$[
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
} else
|
|
409
|
-
return useRender(
|
|
390
|
+
$[10] = ref;
|
|
391
|
+
$[11] = render;
|
|
392
|
+
$[12] = t2;
|
|
393
|
+
$[13] = t3;
|
|
394
|
+
} else t3 = $[13];
|
|
395
|
+
return useRender(t3);
|
|
410
396
|
};
|
|
411
397
|
/** A button that opens a menu of the crumbs the trail has no room for. */
|
|
412
398
|
var Overflow = (t0) => {
|
|
413
|
-
const $ = c(
|
|
414
|
-
const { label, children } = t0;
|
|
399
|
+
const $ = c(8);
|
|
400
|
+
const { label, icon, children } = t0;
|
|
415
401
|
let t1;
|
|
416
|
-
if ($[0] !== label) {
|
|
402
|
+
if ($[0] !== icon || $[1] !== label) {
|
|
417
403
|
t1 = /* @__PURE__ */ jsx(Menu.Trigger, {
|
|
418
|
-
icon
|
|
404
|
+
icon,
|
|
419
405
|
label
|
|
420
406
|
});
|
|
421
|
-
$[0] =
|
|
422
|
-
$[1] =
|
|
423
|
-
|
|
407
|
+
$[0] = icon;
|
|
408
|
+
$[1] = label;
|
|
409
|
+
$[2] = t1;
|
|
410
|
+
} else t1 = $[2];
|
|
424
411
|
let t2;
|
|
425
|
-
if ($[
|
|
426
|
-
t2 = /* @__PURE__ */ jsx(Menu.
|
|
412
|
+
if ($[3] !== children) {
|
|
413
|
+
t2 = /* @__PURE__ */ jsx(Menu.Content, {
|
|
427
414
|
align: "start",
|
|
428
415
|
sideOffset: 4,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
$[3] = t2;
|
|
436
|
-
} else t2 = $[3];
|
|
416
|
+
className: breadcrumbs_module_default.popup,
|
|
417
|
+
children
|
|
418
|
+
});
|
|
419
|
+
$[3] = children;
|
|
420
|
+
$[4] = t2;
|
|
421
|
+
} else t2 = $[4];
|
|
437
422
|
let t3;
|
|
438
|
-
if ($[
|
|
423
|
+
if ($[5] !== t1 || $[6] !== t2) {
|
|
439
424
|
t3 = /* @__PURE__ */ jsxs(Menu.Root, { children: [t1, t2] });
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
} else t3 = $[
|
|
425
|
+
$[5] = t1;
|
|
426
|
+
$[6] = t2;
|
|
427
|
+
$[7] = t3;
|
|
428
|
+
} else t3 = $[7];
|
|
444
429
|
return t3;
|
|
445
430
|
};
|
|
446
431
|
/**
|
|
@@ -448,8 +433,8 @@ var Overflow = (t0) => {
|
|
|
448
433
|
* the overflow button, for `useFold` to measure.
|
|
449
434
|
*/
|
|
450
435
|
var Gauge = (t0) => {
|
|
451
|
-
const $ = c(
|
|
452
|
-
const { labels, overflowLabel, ref } = t0;
|
|
436
|
+
const $ = c(13);
|
|
437
|
+
const { labels, overflowLabel, overflowIcon, separator, ref } = t0;
|
|
453
438
|
let t1;
|
|
454
439
|
if ($[0] !== labels) {
|
|
455
440
|
t1 = labels.map(_temp2);
|
|
@@ -458,27 +443,37 @@ var Gauge = (t0) => {
|
|
|
458
443
|
} else t1 = $[1];
|
|
459
444
|
let t2;
|
|
460
445
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
461
|
-
t2 = /* @__PURE__ */ jsx(
|
|
446
|
+
t2 = /* @__PURE__ */ jsx("li", { "data-gauge": "separator" });
|
|
462
447
|
$[2] = t2;
|
|
463
448
|
} else t2 = $[2];
|
|
464
449
|
let t3;
|
|
465
|
-
if ($[3] !==
|
|
466
|
-
t3 = /* @__PURE__ */ jsx(
|
|
450
|
+
if ($[3] !== separator) {
|
|
451
|
+
t3 = /* @__PURE__ */ jsx(Separator, {
|
|
452
|
+
render: t2,
|
|
453
|
+
children: separator
|
|
454
|
+
});
|
|
455
|
+
$[3] = separator;
|
|
456
|
+
$[4] = t3;
|
|
457
|
+
} else t3 = $[4];
|
|
458
|
+
let t4;
|
|
459
|
+
if ($[5] !== overflowIcon || $[6] !== overflowLabel) {
|
|
460
|
+
t4 = /* @__PURE__ */ jsx("li", {
|
|
467
461
|
"data-gauge": "overflow",
|
|
468
462
|
className: breadcrumbs_module_default.item,
|
|
469
463
|
children: /* @__PURE__ */ jsx(Button, {
|
|
470
464
|
variant: "tertiary",
|
|
471
465
|
iconOnly: true,
|
|
472
|
-
icon:
|
|
466
|
+
icon: overflowIcon,
|
|
473
467
|
label: overflowLabel
|
|
474
468
|
})
|
|
475
469
|
});
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
470
|
+
$[5] = overflowIcon;
|
|
471
|
+
$[6] = overflowLabel;
|
|
472
|
+
$[7] = t4;
|
|
473
|
+
} else t4 = $[7];
|
|
474
|
+
let t5;
|
|
475
|
+
if ($[8] !== ref || $[9] !== t1 || $[10] !== t3 || $[11] !== t4) {
|
|
476
|
+
t5 = /* @__PURE__ */ jsx("div", {
|
|
482
477
|
className: breadcrumbs_module_default.gauge,
|
|
483
478
|
"aria-hidden": true,
|
|
484
479
|
inert: true,
|
|
@@ -487,21 +482,22 @@ var Gauge = (t0) => {
|
|
|
487
482
|
className: breadcrumbs_module_default.gaugeList,
|
|
488
483
|
children: [
|
|
489
484
|
t1,
|
|
490
|
-
|
|
491
|
-
|
|
485
|
+
t3,
|
|
486
|
+
t4
|
|
492
487
|
]
|
|
493
488
|
})
|
|
494
489
|
});
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
498
|
-
$[
|
|
499
|
-
|
|
500
|
-
|
|
490
|
+
$[8] = ref;
|
|
491
|
+
$[9] = t1;
|
|
492
|
+
$[10] = t3;
|
|
493
|
+
$[11] = t4;
|
|
494
|
+
$[12] = t5;
|
|
495
|
+
} else t5 = $[12];
|
|
496
|
+
return t5;
|
|
501
497
|
};
|
|
502
498
|
var Ancestor = (t0) => {
|
|
503
|
-
const $ = c(
|
|
504
|
-
const { crumb } = t0;
|
|
499
|
+
const $ = c(8);
|
|
500
|
+
const { crumb, separator } = t0;
|
|
505
501
|
let t1;
|
|
506
502
|
if ($[0] !== crumb.label || $[1] !== crumb.render) {
|
|
507
503
|
t1 = /* @__PURE__ */ jsx(Item, { children: crumb.render === void 0 ? /* @__PURE__ */ jsx("span", {
|
|
@@ -516,16 +512,18 @@ var Ancestor = (t0) => {
|
|
|
516
512
|
$[2] = t1;
|
|
517
513
|
} else t1 = $[2];
|
|
518
514
|
let t2;
|
|
519
|
-
if ($[3]
|
|
520
|
-
t2 = /* @__PURE__ */ jsx(Separator, {});
|
|
521
|
-
$[3] =
|
|
522
|
-
|
|
515
|
+
if ($[3] !== separator) {
|
|
516
|
+
t2 = /* @__PURE__ */ jsx(Separator, { children: separator });
|
|
517
|
+
$[3] = separator;
|
|
518
|
+
$[4] = t2;
|
|
519
|
+
} else t2 = $[4];
|
|
523
520
|
let t3;
|
|
524
|
-
if ($[
|
|
521
|
+
if ($[5] !== t1 || $[6] !== t2) {
|
|
525
522
|
t3 = /* @__PURE__ */ jsxs(Fragment, { children: [t1, t2] });
|
|
526
|
-
$[
|
|
527
|
-
$[
|
|
528
|
-
|
|
523
|
+
$[5] = t1;
|
|
524
|
+
$[6] = t2;
|
|
525
|
+
$[7] = t3;
|
|
526
|
+
} else t3 = $[7];
|
|
529
527
|
return t3;
|
|
530
528
|
};
|
|
531
529
|
/**
|
|
@@ -534,8 +532,8 @@ var Ancestor = (t0) => {
|
|
|
534
532
|
* and the current page stay. Renders nothing for a trail of one.
|
|
535
533
|
*/
|
|
536
534
|
var Trail = (t0) => {
|
|
537
|
-
const $ = c(
|
|
538
|
-
const { label, overflowLabel, crumbs, className } = t0;
|
|
535
|
+
const $ = c(45);
|
|
536
|
+
const { label, overflowLabel, overflowIcon, separator, crumbs, className } = t0;
|
|
539
537
|
const { root, gauge, folded } = useFold();
|
|
540
538
|
let t1;
|
|
541
539
|
if ($[0] !== crumbs) {
|
|
@@ -553,7 +551,7 @@ var Trail = (t0) => {
|
|
|
553
551
|
let t5;
|
|
554
552
|
let t6;
|
|
555
553
|
let t7;
|
|
556
|
-
if ($[2] !== className || $[3] !== crumbs || $[4] !== folded || $[5] !== label || $[6] !==
|
|
554
|
+
if ($[2] !== className || $[3] !== crumbs || $[4] !== folded || $[5] !== label || $[6] !== overflowIcon || $[7] !== overflowLabel || $[8] !== root || $[9] !== separator) {
|
|
557
555
|
const ancestors = crumbs.slice(0, -1);
|
|
558
556
|
const hidden = ancestors.slice(1, 1 + folded);
|
|
559
557
|
T1 = Root;
|
|
@@ -561,91 +559,116 @@ var Trail = (t0) => {
|
|
|
561
559
|
t6 = label;
|
|
562
560
|
t7 = className;
|
|
563
561
|
T0 = List;
|
|
564
|
-
|
|
562
|
+
let t8;
|
|
563
|
+
if ($[18] !== separator) {
|
|
564
|
+
t8 = (crumb) => /* @__PURE__ */ jsx(Ancestor, {
|
|
565
|
+
crumb,
|
|
566
|
+
separator
|
|
567
|
+
}, crumb.id);
|
|
568
|
+
$[18] = separator;
|
|
569
|
+
$[19] = t8;
|
|
570
|
+
} else t8 = $[19];
|
|
571
|
+
t2 = ancestors.slice(0, 1).map(t8);
|
|
565
572
|
t3 = hidden.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Item, { children: /* @__PURE__ */ jsx(Overflow, {
|
|
566
573
|
label: overflowLabel,
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
574
|
+
icon: overflowIcon,
|
|
575
|
+
children: hidden.map(_temp3)
|
|
576
|
+
}) }), /* @__PURE__ */ jsx(Separator, { children: separator })] }) : null;
|
|
577
|
+
let t9;
|
|
578
|
+
if ($[20] !== separator) {
|
|
579
|
+
t9 = (crumb_1) => /* @__PURE__ */ jsx(Ancestor, {
|
|
580
|
+
crumb: crumb_1,
|
|
581
|
+
separator
|
|
582
|
+
}, crumb_1.id);
|
|
583
|
+
$[20] = separator;
|
|
584
|
+
$[21] = t9;
|
|
585
|
+
} else t9 = $[21];
|
|
586
|
+
t4 = ancestors.slice(1 + hidden.length).map(t9);
|
|
570
587
|
$[2] = className;
|
|
571
588
|
$[3] = crumbs;
|
|
572
589
|
$[4] = folded;
|
|
573
590
|
$[5] = label;
|
|
574
|
-
$[6] =
|
|
575
|
-
$[7] =
|
|
576
|
-
$[8] =
|
|
577
|
-
$[9] =
|
|
578
|
-
$[10] =
|
|
579
|
-
$[11] =
|
|
580
|
-
$[12] =
|
|
581
|
-
$[13] =
|
|
582
|
-
$[14] =
|
|
583
|
-
$[15] =
|
|
591
|
+
$[6] = overflowIcon;
|
|
592
|
+
$[7] = overflowLabel;
|
|
593
|
+
$[8] = root;
|
|
594
|
+
$[9] = separator;
|
|
595
|
+
$[10] = T0;
|
|
596
|
+
$[11] = T1;
|
|
597
|
+
$[12] = t2;
|
|
598
|
+
$[13] = t3;
|
|
599
|
+
$[14] = t4;
|
|
600
|
+
$[15] = t5;
|
|
601
|
+
$[16] = t6;
|
|
602
|
+
$[17] = t7;
|
|
584
603
|
} else {
|
|
585
|
-
T0 = $[
|
|
586
|
-
T1 = $[
|
|
587
|
-
t2 = $[
|
|
588
|
-
t3 = $[
|
|
589
|
-
t4 = $[
|
|
590
|
-
t5 = $[
|
|
591
|
-
t6 = $[
|
|
592
|
-
t7 = $[
|
|
604
|
+
T0 = $[10];
|
|
605
|
+
T1 = $[11];
|
|
606
|
+
t2 = $[12];
|
|
607
|
+
t3 = $[13];
|
|
608
|
+
t4 = $[14];
|
|
609
|
+
t5 = $[15];
|
|
610
|
+
t6 = $[16];
|
|
611
|
+
t7 = $[17];
|
|
593
612
|
}
|
|
594
613
|
let t8;
|
|
595
|
-
if ($[
|
|
614
|
+
if ($[22] !== current.label) {
|
|
596
615
|
t8 = /* @__PURE__ */ jsx(Item, { children: /* @__PURE__ */ jsx(Page, { children: current.label }) });
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
599
|
-
} else t8 = $[
|
|
616
|
+
$[22] = current.label;
|
|
617
|
+
$[23] = t8;
|
|
618
|
+
} else t8 = $[23];
|
|
600
619
|
let t9;
|
|
601
|
-
if ($[
|
|
620
|
+
if ($[24] !== T0 || $[25] !== t2 || $[26] !== t3 || $[27] !== t4 || $[28] !== t8) {
|
|
602
621
|
t9 = /* @__PURE__ */ jsxs(T0, { children: [
|
|
603
622
|
t2,
|
|
604
623
|
t3,
|
|
605
624
|
t4,
|
|
606
625
|
t8
|
|
607
626
|
] });
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
611
|
-
$[
|
|
612
|
-
$[
|
|
613
|
-
$[
|
|
614
|
-
} else t9 = $[
|
|
627
|
+
$[24] = T0;
|
|
628
|
+
$[25] = t2;
|
|
629
|
+
$[26] = t3;
|
|
630
|
+
$[27] = t4;
|
|
631
|
+
$[28] = t8;
|
|
632
|
+
$[29] = t9;
|
|
633
|
+
} else t9 = $[29];
|
|
615
634
|
let t10;
|
|
616
|
-
if ($[
|
|
617
|
-
t10 = crumbs.map(
|
|
618
|
-
$[
|
|
619
|
-
$[
|
|
620
|
-
} else t10 = $[
|
|
635
|
+
if ($[30] !== crumbs) {
|
|
636
|
+
t10 = crumbs.map(_temp4);
|
|
637
|
+
$[30] = crumbs;
|
|
638
|
+
$[31] = t10;
|
|
639
|
+
} else t10 = $[31];
|
|
621
640
|
let t11;
|
|
622
|
-
if ($[
|
|
641
|
+
if ($[32] !== gauge || $[33] !== overflowIcon || $[34] !== overflowLabel || $[35] !== separator || $[36] !== t10) {
|
|
623
642
|
t11 = /* @__PURE__ */ jsx(Gauge, {
|
|
624
643
|
ref: gauge,
|
|
625
644
|
labels: t10,
|
|
626
|
-
overflowLabel
|
|
645
|
+
overflowLabel,
|
|
646
|
+
overflowIcon,
|
|
647
|
+
separator
|
|
627
648
|
});
|
|
628
|
-
$[
|
|
629
|
-
$[
|
|
630
|
-
$[
|
|
631
|
-
$[
|
|
632
|
-
|
|
649
|
+
$[32] = gauge;
|
|
650
|
+
$[33] = overflowIcon;
|
|
651
|
+
$[34] = overflowLabel;
|
|
652
|
+
$[35] = separator;
|
|
653
|
+
$[36] = t10;
|
|
654
|
+
$[37] = t11;
|
|
655
|
+
} else t11 = $[37];
|
|
633
656
|
let t12;
|
|
634
|
-
if ($[
|
|
657
|
+
if ($[38] !== T1 || $[39] !== t11 || $[40] !== t5 || $[41] !== t6 || $[42] !== t7 || $[43] !== t9) {
|
|
635
658
|
t12 = /* @__PURE__ */ jsxs(T1, {
|
|
636
659
|
ref: t5,
|
|
637
660
|
"aria-label": t6,
|
|
638
661
|
className: t7,
|
|
639
662
|
children: [t9, t11]
|
|
640
663
|
});
|
|
641
|
-
$[
|
|
642
|
-
$[
|
|
643
|
-
$[
|
|
644
|
-
$[
|
|
645
|
-
$[
|
|
646
|
-
$[
|
|
647
|
-
$[
|
|
648
|
-
} else t12 = $[
|
|
664
|
+
$[38] = T1;
|
|
665
|
+
$[39] = t11;
|
|
666
|
+
$[40] = t5;
|
|
667
|
+
$[41] = t6;
|
|
668
|
+
$[42] = t7;
|
|
669
|
+
$[43] = t9;
|
|
670
|
+
$[44] = t12;
|
|
671
|
+
} else t12 = $[44];
|
|
649
672
|
return t12;
|
|
650
673
|
};
|
|
651
674
|
/**
|
|
@@ -656,10 +679,12 @@ var Trail = (t0) => {
|
|
|
656
679
|
* <Breadcrumbs
|
|
657
680
|
* label="Breadcrumbs"
|
|
658
681
|
* overflowLabel="Show more"
|
|
682
|
+
* overflowIcon={<MoreIcon />}
|
|
683
|
+
* separator={<ChevronIcon />}
|
|
659
684
|
* crumbs={[
|
|
660
685
|
* { id: "home", label: "Home", render: <Link to="/" /> },
|
|
661
|
-
* { id: "
|
|
662
|
-
* { id: "
|
|
686
|
+
* { id: "invoices", label: "Invoices", render: <Link to="/invoices" /> },
|
|
687
|
+
* { id: "invoice", label: "Invoice 2041" },
|
|
663
688
|
* ]}
|
|
664
689
|
* />
|
|
665
690
|
*/
|
|
@@ -686,10 +711,7 @@ function _temp2(label, index) {
|
|
|
686
711
|
})
|
|
687
712
|
}, index);
|
|
688
713
|
}
|
|
689
|
-
function _temp3(
|
|
690
|
-
return /* @__PURE__ */ jsx(Ancestor, { crumb }, crumb.id);
|
|
691
|
-
}
|
|
692
|
-
function _temp4(crumb_0) {
|
|
714
|
+
function _temp3(crumb_0) {
|
|
693
715
|
return crumb_0.render === void 0 ? /* @__PURE__ */ jsx(Menu.Item, {
|
|
694
716
|
label: crumb_0.textValue,
|
|
695
717
|
disabled: true,
|
|
@@ -701,10 +723,7 @@ function _temp4(crumb_0) {
|
|
|
701
723
|
children: crumb_0.label
|
|
702
724
|
}, crumb_0.id);
|
|
703
725
|
}
|
|
704
|
-
function
|
|
705
|
-
return /* @__PURE__ */ jsx(Ancestor, { crumb: crumb_1 }, crumb_1.id);
|
|
706
|
-
}
|
|
707
|
-
function _temp6(crumb_2) {
|
|
726
|
+
function _temp4(crumb_2) {
|
|
708
727
|
return crumb_2.label;
|
|
709
728
|
}
|
|
710
729
|
export { Breadcrumbs };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ComponentPropsWithRef, ReactElement, ReactNode } from "react";
|
|
2
|
-
import { type SvgComponent } from "../icon/icon.tsx";
|
|
3
2
|
/** A button's visual tier. */
|
|
4
3
|
export type ButtonVariant = "primary" | "secondary" | "tertiary";
|
|
5
4
|
/** A button's size. */
|
|
@@ -22,13 +21,13 @@ type BaseProps = ComponentPropsWithRef<"button"> & Readonly<{
|
|
|
22
21
|
type TextButtonProps = BaseProps & Readonly<{
|
|
23
22
|
iconOnly?: false;
|
|
24
23
|
/** Optional leading icon rendered before the label. */
|
|
25
|
-
icon?:
|
|
24
|
+
icon?: ReactNode;
|
|
26
25
|
children: ReactNode;
|
|
27
26
|
}>;
|
|
28
27
|
type IconOnlyButtonProps = BaseProps & Readonly<{
|
|
29
28
|
iconOnly: true;
|
|
30
29
|
/** Icon to render; required in icon-only mode. */
|
|
31
|
-
icon:
|
|
30
|
+
icon: ReactNode;
|
|
32
31
|
/** Accessible name, surfaced as the tooltip hint and set as `aria-label`, since the icon alone conveys no text. */
|
|
33
32
|
label: string;
|
|
34
33
|
children?: never;
|