@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,6 +1,6 @@
|
|
|
1
1
|
@layer kit.reset, kit.base, kit.components;
|
|
2
2
|
@layer kit.components {
|
|
3
|
-
.
|
|
3
|
+
._root_lpaie_3 {
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
align-items: center;
|
|
@@ -9,111 +9,112 @@
|
|
|
9
9
|
color: var(--status-message-fg, var(--sys-color-text));
|
|
10
10
|
text-align: center;
|
|
11
11
|
}
|
|
12
|
-
.
|
|
12
|
+
._disc_lpaie_12[data-variant=subtle] {
|
|
13
13
|
--_status-message-disc-bg: var(--sys-color-neutral-bg);
|
|
14
14
|
--_status-message-disc-fg: var(--sys-color-neutral-fg);
|
|
15
15
|
--_status-message-disc-border: transparent;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
._disc_lpaie_12[data-variant=solid] {
|
|
18
18
|
--_status-message-disc-bg: var(--sys-color-neutral-fg);
|
|
19
19
|
--_status-message-disc-fg: var(--sys-color-neutral-bg);
|
|
20
20
|
--_status-message-disc-border: transparent;
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
._disc_lpaie_12[data-variant=outline] {
|
|
23
23
|
--_status-message-disc-bg: transparent;
|
|
24
24
|
--_status-message-disc-fg: var(--sys-color-neutral-fg);
|
|
25
25
|
--_status-message-disc-border: var(--sys-color-neutral-border);
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
._disc_lpaie_12[data-tone=info][data-variant=subtle] {
|
|
28
28
|
--_status-message-disc-bg: var(--sys-color-info-bg);
|
|
29
29
|
--_status-message-disc-fg: var(--sys-color-info-fg);
|
|
30
30
|
--_status-message-disc-border: transparent;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
._disc_lpaie_12[data-tone=info][data-variant=solid] {
|
|
33
33
|
--_status-message-disc-bg: var(--sys-color-info-fg);
|
|
34
34
|
--_status-message-disc-fg: var(--sys-color-info-bg);
|
|
35
35
|
--_status-message-disc-border: transparent;
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
._disc_lpaie_12[data-tone=info][data-variant=outline] {
|
|
38
38
|
--_status-message-disc-bg: transparent;
|
|
39
39
|
--_status-message-disc-fg: var(--sys-color-info-fg);
|
|
40
40
|
--_status-message-disc-border: var(
|
|
41
41
|
--sys-color-info-border
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
._disc_lpaie_12[data-tone=success][data-variant=subtle] {
|
|
45
45
|
--_status-message-disc-bg: var(--sys-color-success-bg);
|
|
46
46
|
--_status-message-disc-fg: var(--sys-color-success-fg);
|
|
47
47
|
--_status-message-disc-border: transparent;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
._disc_lpaie_12[data-tone=success][data-variant=solid] {
|
|
50
50
|
--_status-message-disc-bg: var(--sys-color-success-fg);
|
|
51
51
|
--_status-message-disc-fg: var(--sys-color-success-bg);
|
|
52
52
|
--_status-message-disc-border: transparent;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
._disc_lpaie_12[data-tone=success][data-variant=outline] {
|
|
55
55
|
--_status-message-disc-bg: transparent;
|
|
56
56
|
--_status-message-disc-fg: var(--sys-color-success-fg);
|
|
57
57
|
--_status-message-disc-border: var(
|
|
58
58
|
--sys-color-success-border
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
.
|
|
61
|
+
._disc_lpaie_12[data-tone=warning][data-variant=subtle] {
|
|
62
62
|
--_status-message-disc-bg: var(--sys-color-warning-bg);
|
|
63
63
|
--_status-message-disc-fg: var(--sys-color-warning-fg);
|
|
64
64
|
--_status-message-disc-border: transparent;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
._disc_lpaie_12[data-tone=warning][data-variant=solid] {
|
|
67
67
|
--_status-message-disc-bg: var(--sys-color-warning-fg);
|
|
68
68
|
--_status-message-disc-fg: var(--sys-color-warning-bg);
|
|
69
69
|
--_status-message-disc-border: transparent;
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
._disc_lpaie_12[data-tone=warning][data-variant=outline] {
|
|
72
72
|
--_status-message-disc-bg: transparent;
|
|
73
73
|
--_status-message-disc-fg: var(--sys-color-warning-fg);
|
|
74
74
|
--_status-message-disc-border: var(
|
|
75
75
|
--sys-color-warning-border
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
.
|
|
78
|
+
._disc_lpaie_12[data-tone=error][data-variant=subtle] {
|
|
79
79
|
--_status-message-disc-bg: var(--sys-color-error-bg);
|
|
80
80
|
--_status-message-disc-fg: var(--sys-color-error-fg);
|
|
81
81
|
--_status-message-disc-border: transparent;
|
|
82
82
|
}
|
|
83
|
-
.
|
|
83
|
+
._disc_lpaie_12[data-tone=error][data-variant=solid] {
|
|
84
84
|
--_status-message-disc-bg: var(--sys-color-error-fg);
|
|
85
85
|
--_status-message-disc-fg: var(--sys-color-error-bg);
|
|
86
86
|
--_status-message-disc-border: transparent;
|
|
87
87
|
}
|
|
88
|
-
.
|
|
88
|
+
._disc_lpaie_12[data-tone=error][data-variant=outline] {
|
|
89
89
|
--_status-message-disc-bg: transparent;
|
|
90
90
|
--_status-message-disc-fg: var(--sys-color-error-fg);
|
|
91
91
|
--_status-message-disc-border: var(
|
|
92
92
|
--sys-color-error-border
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
._disc_lpaie_12 {
|
|
96
96
|
display: grid;
|
|
97
97
|
place-items: center;
|
|
98
98
|
inline-size: var(--status-message-disc-size, var(--sys-unit-32));
|
|
99
99
|
block-size: var(--status-message-disc-size, var(--sys-unit-32));
|
|
100
100
|
border-radius: var(--sys-radius-full);
|
|
101
|
+
font-size: var(--status-message-icon-size, 2em);
|
|
101
102
|
background: var(--status-message-disc-bg, var(--_status-message-disc-bg));
|
|
102
103
|
color: var(--status-message-disc-fg, var(--_status-message-disc-fg));
|
|
103
104
|
}
|
|
104
|
-
.
|
|
105
|
+
._illustration_lpaie_105 {
|
|
105
106
|
display: grid;
|
|
106
107
|
place-items: center;
|
|
107
108
|
color: var(--status-message-illustration-fg, var(--sys-color-primary));
|
|
108
109
|
}
|
|
109
|
-
.
|
|
110
|
+
._title_lpaie_110 {
|
|
110
111
|
font: var(--status-message-title-font, var(--sys-font-heading-medium));
|
|
111
112
|
}
|
|
112
|
-
.
|
|
113
|
+
._description_lpaie_113 {
|
|
113
114
|
max-inline-size: var(--status-message-measure, 40ch);
|
|
114
115
|
font: var(--status-message-description-font, var(--sys-font-body-medium));
|
|
115
116
|
}
|
|
116
|
-
.
|
|
117
|
+
._action_lpaie_117 {
|
|
117
118
|
display: flex;
|
|
118
119
|
flex-wrap: wrap;
|
|
119
120
|
justify-content: center;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from "react";
|
|
2
2
|
import type { Tone } from "../../lib/tone.ts";
|
|
3
|
-
import { type SvgComponent } from "../icon/icon.tsx";
|
|
4
3
|
/**
|
|
5
4
|
* How a message is announced: `status` waits for a pause in what a screen
|
|
6
5
|
* reader is saying, `alert` interrupts it.
|
|
@@ -16,11 +15,11 @@ export type StatusMessageRootProps = Readonly<{
|
|
|
16
15
|
children?: ReactNode;
|
|
17
16
|
}>;
|
|
18
17
|
export type StatusMessageIconProps = Readonly<{
|
|
19
|
-
/** The glyph, from a SVGR `?react` import. */
|
|
20
|
-
svg: SvgComponent;
|
|
21
18
|
/** The disc's colour. @default "neutral" */
|
|
22
19
|
tone?: Tone;
|
|
23
20
|
className?: string;
|
|
21
|
+
/** The app's icon, drawn at `1em` in `currentColor`; the disc sizes it. */
|
|
22
|
+
children: ReactNode;
|
|
24
23
|
}>;
|
|
25
24
|
export type StatusMessageIllustrationProps = Readonly<{
|
|
26
25
|
/** A picture, a logo or an indicator, hidden from assistive technology. */
|
|
@@ -42,11 +41,17 @@ export type StatusMessageActionProps = Readonly<{
|
|
|
42
41
|
/** The buttons or links that lead on from the message. */
|
|
43
42
|
children: ReactNode;
|
|
44
43
|
}>;
|
|
44
|
+
/** The message's frame, and its live region when `live` is set. */
|
|
45
45
|
declare const Root: ({ live, className, children, }: StatusMessageRootProps) => ReactNode;
|
|
46
|
-
|
|
46
|
+
/** The caller's glyph, on a disc tinted in `tone`. */
|
|
47
|
+
declare const StatusIcon: ({ tone, className, children, }: StatusMessageIconProps) => ReactNode;
|
|
48
|
+
/** The caller's picture in place of an icon, hidden from assistive technology. */
|
|
47
49
|
declare const Illustration: ({ className, children, }: StatusMessageIllustrationProps) => ReactNode;
|
|
50
|
+
/** What happened, in one sentence. A paragraph unless `render` names a heading. */
|
|
48
51
|
declare const Title: ({ render, className, children, }: StatusMessageTitleProps) => ReactElement;
|
|
52
|
+
/** What to do next, or who can help. */
|
|
49
53
|
declare const Description: ({ className, children, }: StatusMessageDescriptionProps) => ReactNode;
|
|
54
|
+
/** The way on: the buttons or links under the message. */
|
|
50
55
|
declare const Action: ({ className, children, }: StatusMessageActionProps) => ReactNode;
|
|
51
56
|
type StatusMessageNamespace = Readonly<{
|
|
52
57
|
Root: typeof Root;
|
|
@@ -63,7 +68,7 @@ type StatusMessageNamespace = Readonly<{
|
|
|
63
68
|
*
|
|
64
69
|
* @example
|
|
65
70
|
* <StatusMessage.Root live="status">
|
|
66
|
-
* <StatusMessage.Icon
|
|
71
|
+
* <StatusMessage.Icon><InboxIcon /></StatusMessage.Icon>
|
|
67
72
|
* <StatusMessage.Title>Your inbox is empty</StatusMessage.Title>
|
|
68
73
|
* <StatusMessage.Description>New messages show up here.</StatusMessage.Description>
|
|
69
74
|
* </StatusMessage.Root>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Icon } from "../icon/icon.js";
|
|
2
1
|
import status_message_module_default from "./status-message.module.js";
|
|
3
2
|
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
6
|
// src/components/status-message/status-message.tsx
|
|
7
|
+
/** The message's frame, and its live region when `live` is set. */
|
|
8
8
|
var Root = (t0) => {
|
|
9
9
|
const $ = c(6);
|
|
10
10
|
const { live, className, children } = t0;
|
|
@@ -28,9 +28,10 @@ var Root = (t0) => {
|
|
|
28
28
|
} else t2 = $[5];
|
|
29
29
|
return t2;
|
|
30
30
|
};
|
|
31
|
+
/** The caller's glyph, on a disc tinted in `tone`. */
|
|
31
32
|
var StatusIcon = (t0) => {
|
|
32
|
-
const $ = c(
|
|
33
|
-
const {
|
|
33
|
+
const $ = c(6);
|
|
34
|
+
const { tone: t1, className, children } = t0;
|
|
34
35
|
const tone = t1 === void 0 ? "neutral" : t1;
|
|
35
36
|
let t2;
|
|
36
37
|
if ($[0] !== className) {
|
|
@@ -39,30 +40,22 @@ var StatusIcon = (t0) => {
|
|
|
39
40
|
$[1] = t2;
|
|
40
41
|
} else t2 = $[1];
|
|
41
42
|
let t3;
|
|
42
|
-
if ($[2] !==
|
|
43
|
-
t3 = /* @__PURE__ */ jsx(
|
|
44
|
-
svg,
|
|
45
|
-
label: "",
|
|
46
|
-
size: 2
|
|
47
|
-
});
|
|
48
|
-
$[2] = svg;
|
|
49
|
-
$[3] = t3;
|
|
50
|
-
} else t3 = $[3];
|
|
51
|
-
let t4;
|
|
52
|
-
if ($[4] !== t2 || $[5] !== t3 || $[6] !== tone) {
|
|
53
|
-
t4 = /* @__PURE__ */ jsx("span", {
|
|
43
|
+
if ($[2] !== children || $[3] !== t2 || $[4] !== tone) {
|
|
44
|
+
t3 = /* @__PURE__ */ jsx("span", {
|
|
54
45
|
"data-tone": tone,
|
|
55
46
|
"data-variant": "subtle",
|
|
47
|
+
"aria-hidden": "true",
|
|
56
48
|
className: t2,
|
|
57
|
-
children
|
|
49
|
+
children
|
|
58
50
|
});
|
|
59
|
-
$[
|
|
51
|
+
$[2] = children;
|
|
52
|
+
$[3] = t2;
|
|
53
|
+
$[4] = tone;
|
|
60
54
|
$[5] = t3;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} else t4 = $[7];
|
|
64
|
-
return t4;
|
|
55
|
+
} else t3 = $[5];
|
|
56
|
+
return t3;
|
|
65
57
|
};
|
|
58
|
+
/** The caller's picture in place of an icon, hidden from assistive technology. */
|
|
66
59
|
var Illustration = (t0) => {
|
|
67
60
|
const $ = c(5);
|
|
68
61
|
const { className, children } = t0;
|
|
@@ -85,6 +78,7 @@ var Illustration = (t0) => {
|
|
|
85
78
|
} else t2 = $[4];
|
|
86
79
|
return t2;
|
|
87
80
|
};
|
|
81
|
+
/** What happened, in one sentence. A paragraph unless `render` names a heading. */
|
|
88
82
|
var Title = (t0) => {
|
|
89
83
|
const $ = c(8);
|
|
90
84
|
const { render, className, children } = t0;
|
|
@@ -117,6 +111,7 @@ var Title = (t0) => {
|
|
|
117
111
|
} else t3 = $[7];
|
|
118
112
|
return useRender(t3);
|
|
119
113
|
};
|
|
114
|
+
/** What to do next, or who can help. */
|
|
120
115
|
var Description = (t0) => {
|
|
121
116
|
const $ = c(5);
|
|
122
117
|
const { className, children } = t0;
|
|
@@ -138,6 +133,7 @@ var Description = (t0) => {
|
|
|
138
133
|
} else t2 = $[4];
|
|
139
134
|
return t2;
|
|
140
135
|
};
|
|
136
|
+
/** The way on: the buttons or links under the message. */
|
|
141
137
|
var Action = (t0) => {
|
|
142
138
|
const $ = c(5);
|
|
143
139
|
const { className, children } = t0;
|
|
@@ -166,7 +162,7 @@ var Action = (t0) => {
|
|
|
166
162
|
*
|
|
167
163
|
* @example
|
|
168
164
|
* <StatusMessage.Root live="status">
|
|
169
|
-
* <StatusMessage.Icon
|
|
165
|
+
* <StatusMessage.Icon><InboxIcon /></StatusMessage.Icon>
|
|
170
166
|
* <StatusMessage.Title>Your inbox is empty</StatusMessage.Title>
|
|
171
167
|
* <StatusMessage.Description>New messages show up here.</StatusMessage.Description>
|
|
172
168
|
* </StatusMessage.Root>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './status-message.css';// src/components/status-message/status-message.module.scss
|
|
2
|
-
var root = "
|
|
3
|
-
var disc = "
|
|
4
|
-
var illustration = "
|
|
5
|
-
var title = "
|
|
6
|
-
var description = "
|
|
7
|
-
var action = "
|
|
2
|
+
var root = "_root_lpaie_3";
|
|
3
|
+
var disc = "_disc_lpaie_12";
|
|
4
|
+
var illustration = "_illustration_lpaie_105";
|
|
5
|
+
var title = "_title_lpaie_110";
|
|
6
|
+
var description = "_description_lpaie_113";
|
|
7
|
+
var action = "_action_lpaie_117";
|
|
8
8
|
var status_message_module_default = {
|
|
9
9
|
root,
|
|
10
10
|
disc,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { Tone } from "../../lib/tone.ts";
|
|
3
|
-
import type { SvgComponent } from "../icon/icon.tsx";
|
|
4
3
|
import { type StatusMessageLive } from "./status-message.tsx";
|
|
5
4
|
/** What a status preset such as `EmptyMessage` or `ErrorMessage` shows. */
|
|
6
5
|
export type StatusPresetProps = Readonly<{
|
|
7
|
-
/** What the region says, such as "No
|
|
6
|
+
/** What the region says, such as "No invoices yet". */
|
|
8
7
|
title: string;
|
|
9
8
|
/** What would change it, or who can help. */
|
|
10
9
|
description?: string;
|
|
11
|
-
/**
|
|
12
|
-
icon?:
|
|
10
|
+
/** The app's icon, on a disc in the preset's tone. Left out, none shows. */
|
|
11
|
+
icon?: ReactNode;
|
|
13
12
|
/** A way on, such as a button to add one or a retry. */
|
|
14
13
|
action?: ReactNode;
|
|
15
14
|
className?: string;
|
|
@@ -18,7 +17,7 @@ export type StatusPresetProps = Readonly<{
|
|
|
18
17
|
* A status message announced as `live`, with its icon on a `tone` disc.
|
|
19
18
|
*
|
|
20
19
|
* @example
|
|
21
|
-
* <StatusPreset live="status" tone="neutral" title="No
|
|
20
|
+
* <StatusPreset live="status" tone="neutral" title="No invoices yet" />
|
|
22
21
|
*/
|
|
23
22
|
export declare const StatusPreset: ({ live, tone, title, description, icon, action, className, }: StatusPresetProps & Readonly<{
|
|
24
23
|
live: StatusMessageLive;
|
|
@@ -6,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* A status message announced as `live`, with its icon on a `tone` disc.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
|
-
* <StatusPreset live="status" tone="neutral" title="No
|
|
9
|
+
* <StatusPreset live="status" tone="neutral" title="No invoices yet" />
|
|
10
10
|
*/
|
|
11
11
|
var StatusPreset = (t0) => {
|
|
12
12
|
const $ = c(16);
|
|
@@ -14,8 +14,8 @@ var StatusPreset = (t0) => {
|
|
|
14
14
|
let t1;
|
|
15
15
|
if ($[0] !== icon || $[1] !== tone) {
|
|
16
16
|
t1 = icon === void 0 ? null : /* @__PURE__ */ jsx(StatusMessage.Icon, {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
tone,
|
|
18
|
+
children: icon
|
|
19
19
|
});
|
|
20
20
|
$[0] = icon;
|
|
21
21
|
$[1] = tone;
|
|
@@ -4,8 +4,8 @@ import { useFieldFocus } from "../field/use-field-focus.js";
|
|
|
4
4
|
import { useFieldState } from "../field/use-field-state.js";
|
|
5
5
|
import switch_module_default from "./switch.module.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { clsx } from "clsx";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import { Field } from "@base-ui/react/field";
|
|
10
10
|
import { Switch } from "@base-ui/react/switch";
|
|
11
11
|
// src/components/switch-field/switch.tsx
|
|
@@ -1,54 +1,77 @@
|
|
|
1
|
+
import { Tabs as BaseTabs } from "@base-ui/react/tabs";
|
|
1
2
|
import { type ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
label: string;
|
|
6
|
-
/** A count shown as a trailing badge. */
|
|
7
|
-
count?: number;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}>;
|
|
10
|
-
export type TabsRootProps = Readonly<{
|
|
11
|
-
tabs: readonly Tab[];
|
|
12
|
-
className?: string;
|
|
3
|
+
import { type BadgeProps } from "../badge/badge.tsx";
|
|
4
|
+
export type TabsRootProps = Omit<BaseTabs.Root.Props, "className" | "value" | "defaultValue" | "onValueChange" | "orientation" | "children"> & Readonly<{
|
|
5
|
+
/** The `Tabs.List` and the `Tabs.Panel`s it opens. */
|
|
13
6
|
children: ReactNode;
|
|
14
|
-
|
|
7
|
+
className?: string;
|
|
8
|
+
}> & Readonly<{
|
|
15
9
|
/** The open tab's `value`, when controlled. */
|
|
10
|
+
value?: string;
|
|
11
|
+
/** The tab open at first, when uncontrolled. */
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
/** Called with the `value` of the tab picked. */
|
|
14
|
+
onValueChange?: (value: string) => void;
|
|
15
|
+
}> & (Readonly<{
|
|
16
16
|
value: string;
|
|
17
17
|
onValueChange: (value: string) => void;
|
|
18
18
|
defaultValue?: never;
|
|
19
19
|
}> | Readonly<{
|
|
20
20
|
value?: never;
|
|
21
|
-
/** The tab open at first, when uncontrolled. */
|
|
22
|
-
defaultValue?: string;
|
|
23
|
-
onValueChange?: (value: string) => void;
|
|
24
21
|
}>);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
/** The tabs and the panels they open. */
|
|
23
|
+
declare const Root: ({ value, defaultValue, onValueChange, className, ...props }: TabsRootProps) => ReactNode;
|
|
24
|
+
export type TabsListProps = Omit<BaseTabs.List.Props, "className" | "aria-label"> & Readonly<{
|
|
25
|
+
/** What the tabs switch between, such as "Invoice". */
|
|
28
26
|
label: string;
|
|
29
27
|
className?: string;
|
|
30
28
|
}>;
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
/** The row of tabs, scrolling sideways when it outgrows its room. */
|
|
30
|
+
declare const List: ({ label, className, children, ...props }: TabsListProps) => ReactNode;
|
|
31
|
+
export type TabsTabProps = Omit<BaseTabs.Tab.Props, "className" | "value"> & Readonly<{
|
|
32
|
+
/** The `value` of the panel this tab opens. */
|
|
33
|
+
value: string;
|
|
34
|
+
className?: string;
|
|
35
|
+
}>;
|
|
36
|
+
/** One tab: its label, and a `Count` where it has one. */
|
|
37
|
+
declare const Tab: ({ value, className, children, ...props }: TabsTabProps) => ReactNode;
|
|
38
|
+
export type TabsCountProps = BadgeProps;
|
|
39
|
+
/** A count after a tab's label, as a neutral badge. */
|
|
40
|
+
declare const Count: ({ tone, variant, ...props }: TabsCountProps) => ReactNode;
|
|
41
|
+
export type TabsIndicatorProps = Omit<BaseTabs.Indicator.Props, "className" | "children"> & Readonly<{
|
|
42
|
+
className?: string;
|
|
43
|
+
}>;
|
|
44
|
+
/**
|
|
45
|
+
* The pill that slides to the open tab, inside the `List`. It holds a copy of
|
|
46
|
+
* the list's tabs, so the open tab's label turns over as the pill arrives.
|
|
47
|
+
*/
|
|
48
|
+
declare const Indicator: ({ className, ...props }: TabsIndicatorProps) => ReactNode;
|
|
49
|
+
export type TabsPanelProps = Omit<BaseTabs.Panel.Props, "className" | "value"> & Readonly<{
|
|
33
50
|
/** The `value` of the tab that opens this panel. */
|
|
34
51
|
value: string;
|
|
35
52
|
className?: string;
|
|
36
|
-
children: ReactNode;
|
|
37
53
|
}>;
|
|
38
|
-
|
|
54
|
+
/** What one tab opens. */
|
|
55
|
+
declare const Panel: ({ className, ...props }: TabsPanelProps) => ReactNode;
|
|
39
56
|
type TabsParts = Readonly<{
|
|
40
57
|
Root: typeof Root;
|
|
41
|
-
|
|
58
|
+
List: typeof List;
|
|
59
|
+
Tab: typeof Tab;
|
|
60
|
+
Count: typeof Count;
|
|
61
|
+
Indicator: typeof Indicator;
|
|
42
62
|
Panel: typeof Panel;
|
|
43
63
|
}>;
|
|
44
64
|
/**
|
|
45
|
-
* In-page tabs over base-ui's `Tabs
|
|
46
|
-
*
|
|
47
|
-
* tab opens. Tabs that lead to pages are a horizontal `Nav`.
|
|
65
|
+
* In-page tabs over base-ui's `Tabs`, with a pill that slides to the open tab.
|
|
66
|
+
* Tabs that lead to pages are a horizontal `Nav`.
|
|
48
67
|
*
|
|
49
68
|
* @example
|
|
50
|
-
* <Tabs.Root
|
|
51
|
-
* <Tabs.
|
|
69
|
+
* <Tabs.Root defaultValue="details">
|
|
70
|
+
* <Tabs.List label="Invoice">
|
|
71
|
+
* <Tabs.Tab value="details">Details</Tabs.Tab>
|
|
72
|
+
* <Tabs.Tab value="history">History<Tabs.Count>3</Tabs.Count></Tabs.Tab>
|
|
73
|
+
* <Tabs.Indicator />
|
|
74
|
+
* </Tabs.List>
|
|
52
75
|
* <Tabs.Panel value="details">…</Tabs.Panel>
|
|
53
76
|
* <Tabs.Panel value="history">…</Tabs.Panel>
|
|
54
77
|
* </Tabs.Root>
|