@igne-agency/react-web-ui 0.3.1 → 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.js +1 -1
- package/dist/components/file-field/file-field.css +19 -15
- package/dist/components/file-field/file-field.d.ts +10 -1
- package/dist/components/file-field/file-field.js +130 -109
- package/dist/components/file-field/file-field.module.js +6 -4
- package/dist/components/file-field/file-input.d.ts +32 -9
- package/dist/components/file-field/file-input.js +94 -74
- package/dist/components/filter-bar/filter-bar.d.ts +79 -51
- package/dist/components/filter-bar/filter-bar.js +552 -216
- package/dist/components/form/form.d.ts +4 -6
- package/dist/components/form/form.js +6 -8
- package/dist/components/icon/icon.d.ts +5 -10
- package/dist/components/icon/icon.js +4 -6
- package/dist/components/link/link.js +1 -1
- package/dist/components/link-button/link-button.d.ts +1 -2
- package/dist/components/link-button/link-button.js +12 -22
- package/dist/components/loading-message/loading-message.d.ts +2 -2
- package/dist/components/loading-message/loading-message.js +1 -1
- package/dist/components/locale-provider/locale-provider.js +1 -1
- package/dist/components/menu/menu.d.ts +40 -22
- package/dist/components/menu/menu.js +100 -40
- package/dist/components/nav/nav-context.d.ts +0 -1
- package/dist/components/nav/nav-context.js +1 -2
- package/dist/components/nav/nav-item-view.d.ts +7 -7
- package/dist/components/nav/nav-item-view.js +27 -51
- package/dist/components/nav/nav.css +72 -60
- package/dist/components/nav/nav.d.ts +15 -8
- package/dist/components/nav/nav.js +105 -52
- package/dist/components/nav/nav.module.js +14 -14
- package/dist/components/number-field/number-field.d.ts +7 -1
- package/dist/components/number-field/number-field.js +98 -82
- package/dist/components/number-field/number-input.d.ts +53 -4
- package/dist/components/number-field/number-input.js +68 -21
- package/dist/components/number-field/tsf-number-field.d.ts +1 -1
- package/dist/components/number-field/tsf-number-field.js +1 -1
- package/dist/components/otp-field/otp-input.d.ts +25 -0
- package/dist/components/otp-field/otp-input.js +26 -1
- package/dist/components/pagination/pagination.d.ts +82 -23
- package/dist/components/pagination/pagination.js +656 -229
- package/dist/components/password-field/password-field.d.ts +7 -1
- package/dist/components/password-field/password-field.js +117 -126
- package/dist/components/password-field/password-strength.js +1 -1
- package/dist/components/password-field/tsf-password-field.d.ts +1 -1
- package/dist/components/password-field/tsf-password-field.js +1 -1
- package/dist/components/photo-field/photo-field.d.ts +17 -3
- package/dist/components/photo-field/photo-field.js +168 -89
- package/dist/components/photo-field/photo-input-context.d.ts +25 -0
- package/dist/components/photo-field/photo-input-context.js +14 -0
- package/dist/components/photo-field/photo-input.d.ts +58 -23
- package/dist/components/photo-field/photo-input.js +459 -261
- package/dist/components/popover/popover.d.ts +55 -23
- package/dist/components/popover/popover.js +205 -61
- package/dist/components/radio-group-field/radio-group.js +1 -1
- package/dist/components/search-field/search-field.d.ts +7 -5
- package/dist/components/search-field/search-field.js +4 -6
- package/dist/components/search-field/tsf-search-field.d.ts +1 -1
- package/dist/components/search-field/tsf-search-field.js +1 -1
- package/dist/components/segmented-control-field/segmented-control.js +1 -1
- package/dist/components/select-field/select-field.d.ts +7 -1
- package/dist/components/select-field/select-field.js +151 -139
- package/dist/components/select-field/select.d.ts +28 -6
- package/dist/components/select-field/select.js +234 -149
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/spinner/spinner.css +47 -1
- package/dist/components/spinner/spinner.js +28 -11
- package/dist/components/spinner/spinner.module.js +18 -3
- package/dist/components/stale/stale.d.ts +17 -21
- package/dist/components/stale/stale.js +307 -129
- package/dist/components/status-message/status-message.css +22 -21
- package/dist/components/status-message/status-message.d.ts +10 -5
- package/dist/components/status-message/status-message.js +20 -24
- package/dist/components/status-message/status-message.module.js +6 -6
- package/dist/components/status-message/status-preset.d.ts +4 -5
- package/dist/components/status-message/status-preset.js +3 -3
- package/dist/components/switch-field/switch.js +1 -1
- package/dist/components/tabs/tabs.d.ts +51 -28
- package/dist/components/tabs/tabs.js +219 -144
- package/dist/components/tag/tag.css +23 -21
- package/dist/components/tag/tag.d.ts +17 -15
- package/dist/components/tag/tag.js +140 -65
- package/dist/components/tag/tag.module.js +3 -3
- package/dist/components/tag-group/tag-group.css +30 -27
- package/dist/components/tag-group/tag-group.d.ts +10 -4
- package/dist/components/tag-group/tag-group.js +47 -35
- package/dist/components/tag-group/tag-group.module.js +4 -4
- package/dist/components/text-field/text-field.d.ts +14 -3
- package/dist/components/text-field/text-field.js +154 -133
- package/dist/components/text-field/text-input.d.ts +89 -3
- package/dist/components/text-field/text-input.js +184 -70
- package/dist/components/textarea-field/textarea.js +1 -1
- package/dist/components/time-field/time-input.d.ts +6 -0
- package/dist/components/time-field/time-input.js +6 -0
- package/dist/components/time-zone-provider/time-zone-provider.js +1 -1
- package/dist/components/toast/index.js +2 -2
- package/dist/components/toast/toast-provider.css +38 -34
- package/dist/components/toast/toast-provider.d.ts +65 -3
- package/dist/components/toast/toast-provider.js +313 -148
- package/dist/components/toast/toast-provider.module.js +11 -17
- package/dist/components/toast/toast.d.ts +5 -1
- package/dist/components/toast/toast.js +2 -1
- package/dist/components/toggle-group-field/toggle-group.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +6 -6
- package/dist/components/tooltip/tooltip.js +7 -7
- package/dist/data-table/data-table-content.d.ts +18 -10
- package/dist/data-table/data-table-content.js +145 -290
- package/dist/data-table/data-table-context.d.ts +4 -2
- package/dist/data-table/data-table-context.js +1 -1
- package/dist/data-table/data-table-parts.d.ts +99 -0
- package/dist/data-table/data-table-parts.js +1182 -0
- package/dist/data-table/data-table-selection.d.ts +7 -3
- package/dist/data-table/data-table-selection.js +62 -37
- package/dist/data-table/data-table.css +100 -95
- package/dist/data-table/data-table.d.ts +49 -25
- package/dist/data-table/data-table.js +95 -83
- package/dist/data-table/data-table.module.js +34 -34
- package/dist/data-table/index.d.ts +2 -1
- package/dist/data-table/index.js +2 -1
- package/dist/data-view/use-data-view.d.ts +2 -2
- package/dist/data-view/use-data-view.js +2 -2
- package/dist/index.js +7 -8
- package/dist/lib/calendar/calendar-navigation.d.ts +9 -2
- package/dist/lib/calendar/calendar-navigation.js +72 -73
- package/dist/lib/calendar/calendar-year.d.ts +4 -3
- package/dist/lib/calendar/calendar-year.js +137 -156
- package/dist/lib/calendar/temporal.d.ts +18 -12
- package/dist/lib/calendar/temporal.js +191 -147
- package/dist/lib/table-storage.d.ts +2 -2
- package/dist/lib/table-storage.js +2 -2
- package/dist/lib/unsaved-changes/leave-guard.js +1 -1
- package/dist/terrazzo/index.d.ts +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,25 +1,25 @@
|
|
|
1
1
|
import './combobox.css';// src/components/combobox-field/combobox.module.scss
|
|
2
|
-
var control = "
|
|
3
|
-
var content = "
|
|
4
|
-
var trigger = "
|
|
5
|
-
var spokenValue = "
|
|
6
|
-
var icon = "
|
|
7
|
-
var tags = "
|
|
8
|
-
var tagList = "
|
|
9
|
-
var tag = "
|
|
10
|
-
var tagRemove = "
|
|
11
|
-
var positioner = "
|
|
12
|
-
var popup = "
|
|
13
|
-
var search = "
|
|
14
|
-
var statusArea = "
|
|
15
|
-
var status = "
|
|
16
|
-
var empty = "
|
|
17
|
-
var list = "
|
|
18
|
-
var option = "
|
|
19
|
-
var indicator = "
|
|
20
|
-
var checkbox = "
|
|
21
|
-
var checkboxIndicator = "
|
|
22
|
-
var optionText = "
|
|
2
|
+
var control = "_control_u8epf_3";
|
|
3
|
+
var content = "_content_u8epf_84";
|
|
4
|
+
var trigger = "_trigger_u8epf_99";
|
|
5
|
+
var spokenValue = "_spokenValue_u8epf_110";
|
|
6
|
+
var icon = "_icon_u8epf_118";
|
|
7
|
+
var tags = "_tags_u8epf_122";
|
|
8
|
+
var tagList = "_tagList_u8epf_125";
|
|
9
|
+
var tag = "_tag_u8epf_122";
|
|
10
|
+
var tagRemove = "_tagRemove_u8epf_242";
|
|
11
|
+
var positioner = "_positioner_u8epf_276";
|
|
12
|
+
var popup = "_popup_u8epf_290";
|
|
13
|
+
var search = "_search_u8epf_318";
|
|
14
|
+
var statusArea = "_statusArea_u8epf_394";
|
|
15
|
+
var status = "_status_u8epf_394";
|
|
16
|
+
var empty = "_empty_u8epf_404";
|
|
17
|
+
var list = "_list_u8epf_420";
|
|
18
|
+
var option = "_option_u8epf_428";
|
|
19
|
+
var indicator = "_indicator_u8epf_475";
|
|
20
|
+
var checkbox = "_checkbox_u8epf_480";
|
|
21
|
+
var checkboxIndicator = "_checkboxIndicator_u8epf_505";
|
|
22
|
+
var optionText = "_optionText_u8epf_534";
|
|
23
23
|
var combobox_module_default = {
|
|
24
24
|
control,
|
|
25
25
|
content,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./combobox.tsx";
|
|
2
2
|
export * from "./combobox-field.tsx";
|
|
3
3
|
export type { ComboboxItems, ItemQuery, PagedQuery, } from "./combobox-items.ts";
|
|
4
|
-
export type { ComboboxPopupLabels } from "./combobox-popup-body.tsx";
|
|
5
4
|
export type { ComboboxMode, ComboboxMultipleLabels, } from "./selection.ts";
|
|
6
5
|
export * from "./tsf-combobox-field.tsx";
|
|
7
6
|
export type { ItemLookup, ValueStateLabels, } from "./value-state.ts";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/** The copy and the remove icon a combobox shows only when it holds several values. */
|
|
2
3
|
export type ComboboxMultipleLabels = Readonly<{
|
|
3
4
|
/** Names the group of tags, such as "Selected statuses". */
|
|
4
5
|
selectedLabel: string;
|
|
@@ -6,6 +7,8 @@ export type ComboboxMultipleLabels = Readonly<{
|
|
|
6
7
|
removeLabel: string;
|
|
7
8
|
/** The remove control's tooltip for a value, such as "Remove Jan Jansen". */
|
|
8
9
|
removeHint: (itemLabel: string) => string;
|
|
10
|
+
/** The remove control's icon, such as a cross. */
|
|
11
|
+
removeIcon: ReactNode;
|
|
9
12
|
}>;
|
|
10
13
|
/**
|
|
11
14
|
* One value or several. The shape of `value`, `defaultValue` and
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
@layer kit.reset, kit.base, kit.components;
|
|
2
2
|
@layer kit.components {
|
|
3
|
-
.
|
|
3
|
+
._muted_1bwba_3 {
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
align-items: center;
|
|
6
6
|
gap: var(--sys-unit-2);
|
|
7
7
|
min-inline-size: 0;
|
|
8
8
|
color: var(--combobox-unavailable-fg, var(--sys-color-text-muted));
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
._item_1bwba_10 {
|
|
11
11
|
min-inline-size: 0;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
._icon_1bwba_13 {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
}
|
|
17
|
+
._name_1bwba_17 {
|
|
14
18
|
position: absolute;
|
|
15
19
|
overflow: hidden;
|
|
16
20
|
clip-path: inset(50%);
|
|
@@ -12,15 +12,17 @@ type ValueStateViewProps<TItem> = Readonly<{
|
|
|
12
12
|
renderItem: (item: TItem) => ReactNode;
|
|
13
13
|
itemLabel: (item: TItem) => string;
|
|
14
14
|
labels: ValueStateLabels | undefined;
|
|
15
|
+
/** Marks an unavailable value, beside its label. */
|
|
16
|
+
icon?: ReactNode;
|
|
15
17
|
}>;
|
|
16
18
|
/**
|
|
17
19
|
* One value as it shows in a tag or a trigger: its item, or the item muted and
|
|
18
20
|
* marked unavailable, read as `valueStateName`.
|
|
19
21
|
*
|
|
20
22
|
* @example
|
|
21
|
-
* <ValueStateView state={state} renderItem={renderItem} itemLabel={itemLabel} labels={labels} />
|
|
23
|
+
* <ValueStateView state={state} renderItem={renderItem} itemLabel={itemLabel} labels={labels} icon={<BlockIcon />} />
|
|
22
24
|
*/
|
|
23
|
-
export declare const ValueStateView: <TItem>({ state, renderItem, itemLabel, labels, }: ValueStateViewProps<TItem>) => ReactNode;
|
|
25
|
+
export declare const ValueStateView: <TItem>({ state, renderItem, itemLabel, labels, icon, }: ValueStateViewProps<TItem>) => ReactNode;
|
|
24
26
|
/**
|
|
25
27
|
* The polite status that sums up a field's values that are no longer
|
|
26
28
|
* available. Mount it once per field, outside any popup.
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import SvgBlock from "../../vendor/@material-design-icons/svg/outlined/block.js";
|
|
2
|
-
import { Icon } from "../icon/icon.js";
|
|
3
1
|
import value_state_view_module_default from "./value-state-view.module.js";
|
|
4
2
|
import { c } from "react/compiler-runtime";
|
|
5
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -16,13 +14,13 @@ var valueStateName = (state, itemLabel, labels) => state.status === "unavailable
|
|
|
16
14
|
* marked unavailable, read as `valueStateName`.
|
|
17
15
|
*
|
|
18
16
|
* @example
|
|
19
|
-
* <ValueStateView state={state} renderItem={renderItem} itemLabel={itemLabel} labels={labels} />
|
|
17
|
+
* <ValueStateView state={state} renderItem={renderItem} itemLabel={itemLabel} labels={labels} icon={<BlockIcon />} />
|
|
20
18
|
*/
|
|
21
19
|
var ValueStateView = (t0) => {
|
|
22
|
-
const $ = c(
|
|
23
|
-
const { state, renderItem, itemLabel, labels } = t0;
|
|
20
|
+
const $ = c(6);
|
|
21
|
+
const { state, renderItem, itemLabel, labels, icon } = t0;
|
|
24
22
|
let t1;
|
|
25
|
-
if ($[0] !==
|
|
23
|
+
if ($[0] !== icon || $[1] !== itemLabel || $[2] !== labels || $[3] !== renderItem || $[4] !== state) {
|
|
26
24
|
t1 = state.status === "unavailable" && labels !== void 0 ? /* @__PURE__ */ jsxs("span", {
|
|
27
25
|
className: value_state_view_module_default.muted,
|
|
28
26
|
children: [
|
|
@@ -31,9 +29,10 @@ var ValueStateView = (t0) => {
|
|
|
31
29
|
className: value_state_view_module_default.item,
|
|
32
30
|
children: renderItem(state.item)
|
|
33
31
|
}),
|
|
34
|
-
/* @__PURE__ */ jsx(
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
icon === void 0 ? null : /* @__PURE__ */ jsx("span", {
|
|
33
|
+
"aria-hidden": "true",
|
|
34
|
+
className: value_state_view_module_default.icon,
|
|
35
|
+
children: icon
|
|
37
36
|
}),
|
|
38
37
|
/* @__PURE__ */ jsx("span", {
|
|
39
38
|
"aria-hidden": "true",
|
|
@@ -45,12 +44,13 @@ var ValueStateView = (t0) => {
|
|
|
45
44
|
})
|
|
46
45
|
]
|
|
47
46
|
}) : renderItem(state.item);
|
|
48
|
-
$[0] =
|
|
49
|
-
$[1] =
|
|
50
|
-
$[2] =
|
|
51
|
-
$[3] =
|
|
52
|
-
$[4] =
|
|
53
|
-
|
|
47
|
+
$[0] = icon;
|
|
48
|
+
$[1] = itemLabel;
|
|
49
|
+
$[2] = labels;
|
|
50
|
+
$[3] = renderItem;
|
|
51
|
+
$[4] = state;
|
|
52
|
+
$[5] = t1;
|
|
53
|
+
} else t1 = $[5];
|
|
54
54
|
return t1;
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import './value-state-view.css';// src/components/combobox-field/value-state-view.module.scss
|
|
2
|
-
var muted = "
|
|
3
|
-
var item = "
|
|
4
|
-
var
|
|
2
|
+
var muted = "_muted_1bwba_3";
|
|
3
|
+
var item = "_item_1bwba_10";
|
|
4
|
+
var icon = "_icon_1bwba_13";
|
|
5
|
+
var name = "_name_1bwba_17";
|
|
5
6
|
var value_state_view_module_default = {
|
|
6
7
|
muted,
|
|
7
8
|
item,
|
|
9
|
+
icon,
|
|
8
10
|
name
|
|
9
11
|
};
|
|
10
|
-
export { value_state_view_module_default as default, item, muted, name };
|
|
12
|
+
export { value_state_view_module_default as default, icon, item, muted, name };
|
|
@@ -4,22 +4,30 @@ export type ComposerAttachButtonProps = Readonly<{
|
|
|
4
4
|
label: string;
|
|
5
5
|
/** The MIME types and extensions the file picker offers. */
|
|
6
6
|
accept?: readonly string[];
|
|
7
|
+
/** The attach glyph. */
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
className?: string;
|
|
7
10
|
}>;
|
|
8
|
-
/** An icon button that opens the file picker and stages what is picked. */
|
|
9
|
-
export declare const ComposerAttachButton: ({ label, accept, }: ComposerAttachButtonProps) => ReactNode;
|
|
11
|
+
/** An icon button, its children the glyph, that opens the file picker and stages what is picked. */
|
|
12
|
+
export declare const ComposerAttachButton: ({ label, accept, children, className, }: ComposerAttachButtonProps) => ReactNode;
|
|
10
13
|
export type ComposerAttachmentsProps = Readonly<{
|
|
11
14
|
/** The tile list's accessible name, such as "Attachments". */
|
|
12
15
|
label: string;
|
|
13
16
|
/** Each tile's remove button's accessible name, such as "Remove". */
|
|
14
17
|
removeLabel: string;
|
|
18
|
+
/** Each tile's remove glyph. */
|
|
19
|
+
removeIcon: ReactNode;
|
|
20
|
+
/** A tile's file-type glyph. Left out, a tile that is not an image shows only the file's extension. */
|
|
21
|
+
fileIcon?: ReactNode;
|
|
15
22
|
/** A tile's tooltip, from the file's name and formatted size. */
|
|
16
23
|
fileHint: (name: string, size: string) => string;
|
|
24
|
+
className?: string;
|
|
17
25
|
}>;
|
|
18
26
|
/**
|
|
19
27
|
* The staged files as removable tiles. Removing the last one returns focus to
|
|
20
28
|
* the editor. Renders nothing while no file is staged.
|
|
21
29
|
*/
|
|
22
|
-
export declare const ComposerAttachments: ({ label, removeLabel, fileHint, }: ComposerAttachmentsProps) => ReactNode;
|
|
30
|
+
export declare const ComposerAttachments: ({ label, removeLabel, removeIcon, fileIcon, fileHint, className, }: ComposerAttachmentsProps) => ReactNode;
|
|
23
31
|
export type ComposerAttachmentsErrorProps = Readonly<{
|
|
24
32
|
/** The alert, from the formatted `maxFileSize`, such as "Files over 5 MB must be removed before sending." */
|
|
25
33
|
tooLargeError: (maxSize: string) => string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import SvgAttachFile from "../../vendor/@material-design-icons/svg/outlined/attach_file.js";
|
|
2
1
|
import { formatBytes } from "../../lib/format-bytes.js";
|
|
3
2
|
import { AttachmentTile } from "../attachment-tile/attachment-tile.js";
|
|
4
3
|
import { Button as Button$1 } from "../button/button.js";
|
|
@@ -6,14 +5,15 @@ import { useLocale } from "../locale-provider/locale-provider.js";
|
|
|
6
5
|
import { useComposerContext } from "./composer.context.js";
|
|
7
6
|
import composer_module_default from "./composer.module.js";
|
|
8
7
|
import { c } from "react/compiler-runtime";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import { Button, FileTrigger, TagGroup, TagList } from "react-aria-components";
|
|
11
11
|
// src/components/composer/composer-attachments.tsx
|
|
12
12
|
var isOversized = (file, maxFileSize) => maxFileSize !== void 0 && file.size > maxFileSize;
|
|
13
|
-
/** An icon button that opens the file picker and stages what is picked. */
|
|
13
|
+
/** An icon button, its children the glyph, that opens the file picker and stages what is picked. */
|
|
14
14
|
var ComposerAttachButton = (t0) => {
|
|
15
|
-
const $ = c(
|
|
16
|
-
const { label, accept } = t0;
|
|
15
|
+
const $ = c(14);
|
|
16
|
+
const { label, accept, children, className } = t0;
|
|
17
17
|
const { addFiles, disabled } = useComposerContext();
|
|
18
18
|
let t1;
|
|
19
19
|
if ($[0] !== addFiles) {
|
|
@@ -30,34 +30,37 @@ var ComposerAttachButton = (t0) => {
|
|
|
30
30
|
$[3] = t2;
|
|
31
31
|
} else t2 = $[3];
|
|
32
32
|
let t3;
|
|
33
|
-
if ($[4] !==
|
|
33
|
+
if ($[4] !== children || $[5] !== className || $[6] !== disabled || $[7] !== label || $[8] !== t2) {
|
|
34
34
|
t3 = /* @__PURE__ */ jsx(Button$1, {
|
|
35
|
+
className,
|
|
35
36
|
variant: "tertiary",
|
|
36
37
|
size: "md",
|
|
37
38
|
iconOnly: true,
|
|
38
|
-
icon:
|
|
39
|
+
icon: children,
|
|
39
40
|
disabled,
|
|
40
41
|
label,
|
|
41
42
|
render: t2
|
|
42
43
|
});
|
|
43
|
-
$[4] =
|
|
44
|
-
$[5] =
|
|
45
|
-
$[6] =
|
|
46
|
-
$[7] =
|
|
47
|
-
|
|
44
|
+
$[4] = children;
|
|
45
|
+
$[5] = className;
|
|
46
|
+
$[6] = disabled;
|
|
47
|
+
$[7] = label;
|
|
48
|
+
$[8] = t2;
|
|
49
|
+
$[9] = t3;
|
|
50
|
+
} else t3 = $[9];
|
|
48
51
|
let t4;
|
|
49
|
-
if ($[
|
|
52
|
+
if ($[10] !== accept || $[11] !== t1 || $[12] !== t3) {
|
|
50
53
|
t4 = /* @__PURE__ */ jsx(FileTrigger, {
|
|
51
54
|
allowsMultiple: true,
|
|
52
55
|
acceptedFileTypes: accept,
|
|
53
56
|
onSelect: t1,
|
|
54
57
|
children: t3
|
|
55
58
|
});
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
} else t4 = $[
|
|
59
|
+
$[10] = accept;
|
|
60
|
+
$[11] = t1;
|
|
61
|
+
$[12] = t3;
|
|
62
|
+
$[13] = t4;
|
|
63
|
+
} else t4 = $[13];
|
|
61
64
|
return t4;
|
|
62
65
|
};
|
|
63
66
|
/**
|
|
@@ -65,8 +68,8 @@ var ComposerAttachButton = (t0) => {
|
|
|
65
68
|
* the editor. Renders nothing while no file is staged.
|
|
66
69
|
*/
|
|
67
70
|
var ComposerAttachments = (t0) => {
|
|
68
|
-
const $ = c(
|
|
69
|
-
const { label, removeLabel, fileHint } = t0;
|
|
71
|
+
const $ = c(22);
|
|
72
|
+
const { label, removeLabel, removeIcon, fileIcon, fileHint, className } = t0;
|
|
70
73
|
const locale = useLocale();
|
|
71
74
|
const { attachments, removeAttachment, focusEditor, disabled, maxFileSize } = useComposerContext();
|
|
72
75
|
if (attachments.length === 0) return null;
|
|
@@ -84,46 +87,57 @@ var ComposerAttachments = (t0) => {
|
|
|
84
87
|
} else t1 = $[3];
|
|
85
88
|
const remove = t1;
|
|
86
89
|
let t2;
|
|
87
|
-
if ($[4] !==
|
|
88
|
-
t2 = (
|
|
90
|
+
if ($[4] !== className) {
|
|
91
|
+
t2 = clsx(composer_module_default.attachments, className);
|
|
92
|
+
$[4] = className;
|
|
93
|
+
$[5] = t2;
|
|
94
|
+
} else t2 = $[5];
|
|
95
|
+
let t3;
|
|
96
|
+
if ($[6] !== disabled || $[7] !== fileHint || $[8] !== fileIcon || $[9] !== locale || $[10] !== maxFileSize || $[11] !== removeIcon || $[12] !== removeLabel) {
|
|
97
|
+
t3 = (attachment_1) => /* @__PURE__ */ jsx(AttachmentTile, {
|
|
89
98
|
id: attachment_1.id,
|
|
90
99
|
file: attachment_1.file,
|
|
91
100
|
hint: fileHint(attachment_1.file.name, formatBytes(attachment_1.file.size, locale)),
|
|
92
101
|
removeLabel,
|
|
102
|
+
removeIcon,
|
|
103
|
+
icon: fileIcon,
|
|
93
104
|
invalid: isOversized(attachment_1.file, maxFileSize),
|
|
94
105
|
disabled
|
|
95
106
|
});
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
$[6] = disabled;
|
|
108
|
+
$[7] = fileHint;
|
|
109
|
+
$[8] = fileIcon;
|
|
110
|
+
$[9] = locale;
|
|
111
|
+
$[10] = maxFileSize;
|
|
112
|
+
$[11] = removeIcon;
|
|
113
|
+
$[12] = removeLabel;
|
|
114
|
+
$[13] = t3;
|
|
115
|
+
} else t3 = $[13];
|
|
116
|
+
let t4;
|
|
117
|
+
if ($[14] !== attachments || $[15] !== t2 || $[16] !== t3) {
|
|
118
|
+
t4 = /* @__PURE__ */ jsx(TagList, {
|
|
106
119
|
items: attachments,
|
|
107
|
-
className:
|
|
108
|
-
children:
|
|
120
|
+
className: t2,
|
|
121
|
+
children: t3
|
|
109
122
|
});
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
123
|
+
$[14] = attachments;
|
|
124
|
+
$[15] = t2;
|
|
125
|
+
$[16] = t3;
|
|
126
|
+
$[17] = t4;
|
|
127
|
+
} else t4 = $[17];
|
|
128
|
+
let t5;
|
|
129
|
+
if ($[18] !== label || $[19] !== remove || $[20] !== t4) {
|
|
130
|
+
t5 = /* @__PURE__ */ jsx(TagGroup, {
|
|
117
131
|
"aria-label": label,
|
|
118
132
|
onRemove: remove,
|
|
119
|
-
children:
|
|
133
|
+
children: t4
|
|
120
134
|
});
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
} else
|
|
126
|
-
return
|
|
135
|
+
$[18] = label;
|
|
136
|
+
$[19] = remove;
|
|
137
|
+
$[20] = t4;
|
|
138
|
+
$[21] = t5;
|
|
139
|
+
} else t5 = $[21];
|
|
140
|
+
return t5;
|
|
127
141
|
};
|
|
128
142
|
/**
|
|
129
143
|
* An alert while any staged file is over `maxFileSize`. Renders nothing while
|
|
@@ -10,6 +10,7 @@ export type ComposerEditorProps = Readonly<{
|
|
|
10
10
|
maxLines?: number;
|
|
11
11
|
/** Editor plugins, such as `Composer.Mentions`. */
|
|
12
12
|
children?: ReactNode;
|
|
13
|
+
className?: string;
|
|
13
14
|
}>;
|
|
14
15
|
/** The composer's plain-text editor, with mentions and Enter to send. */
|
|
15
|
-
export declare const ComposerEditor: ({ label, placeholder, minLines, maxLines, children, }: ComposerEditorProps) => ReactNode;
|
|
16
|
+
export declare const ComposerEditor: ({ label, placeholder, minLines, maxLines, children, className, }: ComposerEditorProps) => ReactNode;
|
|
@@ -4,8 +4,9 @@ import { EditorBehaviorPlugin } from "./editor-behavior.js";
|
|
|
4
4
|
import { $createMentionNode, MentionExtension } from "./mention-node.js";
|
|
5
5
|
import { parseMentionString } from "./mention-text.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { useId, useState } from "react";
|
|
9
10
|
import { HistoryExtension } from "@lexical/history";
|
|
10
11
|
import { PlainTextExtension } from "@lexical/plain-text";
|
|
11
12
|
import { ContentEditable } from "@lexical/react/LexicalContentEditable";
|
|
@@ -31,8 +32,8 @@ var seedEditorState = (value) => () => {
|
|
|
31
32
|
};
|
|
32
33
|
/** The composer's plain-text editor, with mentions and Enter to send. */
|
|
33
34
|
var ComposerEditor = (t0) => {
|
|
34
|
-
const $ = c(
|
|
35
|
-
const { label, placeholder, minLines: t1, maxLines, children } = t0;
|
|
35
|
+
const $ = c(34);
|
|
36
|
+
const { label, placeholder, minLines: t1, maxLines, children, className } = t0;
|
|
36
37
|
const minLines = t1 === void 0 ? 3 : t1;
|
|
37
38
|
const { value, initialValue, disabled, setValue, mentionsListboxId, mentionsOpen, mentionsActiveOptionId } = useComposerContext();
|
|
38
39
|
const placeholderId = useId();
|
|
@@ -56,20 +57,26 @@ var ComposerEditor = (t0) => {
|
|
|
56
57
|
} else t2 = $[2];
|
|
57
58
|
const [extension] = useState(t2);
|
|
58
59
|
let t3;
|
|
59
|
-
if ($[3] !==
|
|
60
|
-
t3 =
|
|
60
|
+
if ($[3] !== className) {
|
|
61
|
+
t3 = clsx(composer_editor_module_default.editor, className);
|
|
62
|
+
$[3] = className;
|
|
63
|
+
$[4] = t3;
|
|
64
|
+
} else t3 = $[4];
|
|
65
|
+
let t4;
|
|
66
|
+
if ($[5] !== maxLines || $[6] !== minLines) {
|
|
67
|
+
t4 = {
|
|
61
68
|
"--composer-min-lines": minLines,
|
|
62
69
|
"--composer-max-lines": maxLines
|
|
63
70
|
};
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
67
|
-
} else
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
let
|
|
71
|
-
if ($[
|
|
72
|
-
|
|
71
|
+
$[5] = maxLines;
|
|
72
|
+
$[6] = minLines;
|
|
73
|
+
$[7] = t4;
|
|
74
|
+
} else t4 = $[7];
|
|
75
|
+
const t5 = placeholder === void 0 ? void 0 : placeholderId;
|
|
76
|
+
const t6 = disabled || void 0;
|
|
77
|
+
let t7;
|
|
78
|
+
if ($[8] !== mentionsActiveOptionId || $[9] !== mentionsListboxId || $[10] !== mentionsOpen) {
|
|
79
|
+
t7 = mentionsListboxId === null ? {
|
|
73
80
|
role: "textbox",
|
|
74
81
|
"aria-autocomplete": "none"
|
|
75
82
|
} : {
|
|
@@ -78,86 +85,87 @@ var ComposerEditor = (t0) => {
|
|
|
78
85
|
"aria-expanded": mentionsOpen,
|
|
79
86
|
"aria-activedescendant": mentionsActiveOptionId ?? void 0
|
|
80
87
|
};
|
|
81
|
-
$[
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
84
|
-
$[
|
|
85
|
-
} else
|
|
86
|
-
let
|
|
87
|
-
if ($[
|
|
88
|
-
|
|
88
|
+
$[8] = mentionsActiveOptionId;
|
|
89
|
+
$[9] = mentionsListboxId;
|
|
90
|
+
$[10] = mentionsOpen;
|
|
91
|
+
$[11] = t7;
|
|
92
|
+
} else t7 = $[11];
|
|
93
|
+
let t8;
|
|
94
|
+
if ($[12] !== label || $[13] !== t5 || $[14] !== t6 || $[15] !== t7) {
|
|
95
|
+
t8 = /* @__PURE__ */ jsx(ContentEditable, {
|
|
89
96
|
className: composer_editor_module_default.content,
|
|
90
97
|
"aria-label": label,
|
|
91
|
-
"aria-describedby":
|
|
92
|
-
"aria-disabled":
|
|
93
|
-
...
|
|
98
|
+
"aria-describedby": t5,
|
|
99
|
+
"aria-disabled": t6,
|
|
100
|
+
...t7
|
|
94
101
|
});
|
|
95
|
-
$[
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
} else
|
|
101
|
-
let
|
|
102
|
-
if ($[
|
|
103
|
-
|
|
102
|
+
$[12] = label;
|
|
103
|
+
$[13] = t5;
|
|
104
|
+
$[14] = t6;
|
|
105
|
+
$[15] = t7;
|
|
106
|
+
$[16] = t8;
|
|
107
|
+
} else t8 = $[16];
|
|
108
|
+
let t9;
|
|
109
|
+
if ($[17] !== placeholder || $[18] !== placeholderId || $[19] !== value) {
|
|
110
|
+
t9 = placeholder === void 0 ? null : /* @__PURE__ */ jsx("div", {
|
|
104
111
|
id: placeholderId,
|
|
105
112
|
className: composer_editor_module_default.placeholder,
|
|
106
113
|
hidden: value !== "",
|
|
107
114
|
"aria-hidden": "true",
|
|
108
115
|
children: placeholder
|
|
109
116
|
});
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
$[18] = t8;
|
|
114
|
-
} else t8 = $[18];
|
|
115
|
-
let t9;
|
|
116
|
-
if ($[19] !== setValue) {
|
|
117
|
-
t9 = /* @__PURE__ */ jsx(OnChangePlugin, {
|
|
118
|
-
ignoreSelectionChange: true,
|
|
119
|
-
onChange: (editorState) => editorState.read(() => setValue($getRoot().getTextContent()))
|
|
120
|
-
});
|
|
121
|
-
$[19] = setValue;
|
|
117
|
+
$[17] = placeholder;
|
|
118
|
+
$[18] = placeholderId;
|
|
119
|
+
$[19] = value;
|
|
122
120
|
$[20] = t9;
|
|
123
121
|
} else t9 = $[20];
|
|
124
122
|
let t10;
|
|
125
|
-
if ($[21]
|
|
126
|
-
t10 = /* @__PURE__ */ jsx(
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
if ($[21] !== setValue) {
|
|
124
|
+
t10 = /* @__PURE__ */ jsx(OnChangePlugin, {
|
|
125
|
+
ignoreSelectionChange: true,
|
|
126
|
+
onChange: (editorState) => editorState.read(() => setValue($getRoot().getTextContent()))
|
|
127
|
+
});
|
|
128
|
+
$[21] = setValue;
|
|
129
|
+
$[22] = t10;
|
|
130
|
+
} else t10 = $[22];
|
|
129
131
|
let t11;
|
|
130
|
-
if ($[
|
|
131
|
-
t11 = /* @__PURE__ */
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
133
|
+
t11 = /* @__PURE__ */ jsx(EditorBehaviorPlugin, {});
|
|
134
|
+
$[23] = t11;
|
|
135
|
+
} else t11 = $[23];
|
|
136
|
+
let t12;
|
|
137
|
+
if ($[24] !== children || $[25] !== t10 || $[26] !== t3 || $[27] !== t4 || $[28] !== t8 || $[29] !== t9) {
|
|
138
|
+
t12 = /* @__PURE__ */ jsxs("div", {
|
|
139
|
+
className: t3,
|
|
140
|
+
style: t4,
|
|
134
141
|
children: [
|
|
135
|
-
t7,
|
|
136
142
|
t8,
|
|
137
143
|
t9,
|
|
138
144
|
t10,
|
|
145
|
+
t11,
|
|
139
146
|
children
|
|
140
147
|
]
|
|
141
148
|
});
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
147
|
-
$[
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
$[24] = children;
|
|
150
|
+
$[25] = t10;
|
|
151
|
+
$[26] = t3;
|
|
152
|
+
$[27] = t4;
|
|
153
|
+
$[28] = t8;
|
|
154
|
+
$[29] = t9;
|
|
155
|
+
$[30] = t12;
|
|
156
|
+
} else t12 = $[30];
|
|
157
|
+
let t13;
|
|
158
|
+
if ($[31] !== extension || $[32] !== t12) {
|
|
159
|
+
t13 = /* @__PURE__ */ jsx(LexicalExtensionComposer, {
|
|
152
160
|
extension,
|
|
153
161
|
contentEditable: null,
|
|
154
|
-
children:
|
|
162
|
+
children: t12
|
|
155
163
|
});
|
|
156
|
-
$[
|
|
157
|
-
$[
|
|
158
|
-
$[
|
|
159
|
-
} else
|
|
160
|
-
return
|
|
164
|
+
$[31] = extension;
|
|
165
|
+
$[32] = t12;
|
|
166
|
+
$[33] = t13;
|
|
167
|
+
} else t13 = $[33];
|
|
168
|
+
return t13;
|
|
161
169
|
};
|
|
162
170
|
function _temp(error) {
|
|
163
171
|
throw error;
|
|
@@ -2,8 +2,8 @@ import { useComposerContext } from "./composer.context.js";
|
|
|
2
2
|
import composer_editor_module_default from "./composer-editor.module.js";
|
|
3
3
|
import { $createMentionNode } from "./mention-node.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { useEffect, useEffectEvent, useId, useState } from "react";
|
|
6
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { createPortal } from "react-dom";
|
|
8
8
|
import { $createTextNode, $insertNodes } from "lexical";
|
|
9
9
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
@@ -138,7 +138,7 @@ var MentionMenu = (t0) => {
|
|
|
138
138
|
} else t10 = $[28];
|
|
139
139
|
let t11;
|
|
140
140
|
if ($[29] !== t10 || $[30] !== t9) {
|
|
141
|
-
t11 = /* @__PURE__ */ jsxs(Fragment
|
|
141
|
+
t11 = /* @__PURE__ */ jsxs(Fragment, { children: [t9, t10] });
|
|
142
142
|
$[29] = t10;
|
|
143
143
|
$[30] = t9;
|
|
144
144
|
$[31] = t11;
|