themelia-react-ui 2.0.0 → 2.0.2
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/CHANGELOG.md +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- package/dist/badge-HpFqoqSY.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +20 -20
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +216 -220
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +46 -45
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +5 -5
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +26 -15
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +35 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +501 -496
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +40 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/tone-recipes-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/message-YfFmbXNP.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js +0 -162
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/usage-card-U0YBLTNT.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { c as e, s as t, v as n } from "./ui-provider-C_U0Xma4.js";
|
|
3
3
|
import { useStrings as r } from "./lib/strings.js";
|
|
4
|
-
import { t as i } from "./utils-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { h as s, p as c, v as l } from "./smart-card-
|
|
8
|
-
import { a as u, i as d } from "./primitives-
|
|
9
|
-
import {
|
|
10
|
-
import { o as p } from "./item-
|
|
11
|
-
import {
|
|
12
|
-
import { a as te,
|
|
13
|
-
import { a as h, c as g, i as _, n as v, o as y, r as b, t as x } from "./attachment-
|
|
4
|
+
import { t as i } from "./utils-BRhFDwuU.js";
|
|
5
|
+
import { n as a } from "./buttons-DPZekJFu.js";
|
|
6
|
+
import { c as o } from "./typography-UTnveOEy.js";
|
|
7
|
+
import { h as s, p as c, v as l } from "./smart-card-DiC5aac3.js";
|
|
8
|
+
import { a as u, i as d } from "./primitives-BFK08r9M.js";
|
|
9
|
+
import { n as f } from "./field-affordance-recipes-DZhnIL_Y.js";
|
|
10
|
+
import { o as p } from "./item-K5_ghvze.js";
|
|
11
|
+
import { n as ee, t as m } from "./upload.recipes-BbxTqrCT.js";
|
|
12
|
+
import { a as te, s as ne } from "./upload-queue-Boscubn9.js";
|
|
13
|
+
import { a as h, c as g, i as _, n as v, o as y, r as b, t as x } from "./attachment-BxDfL2mw.js";
|
|
14
14
|
import * as S from "react";
|
|
15
|
-
import C, { forwardRef as w, useCallback as T, useEffect as
|
|
15
|
+
import C, { forwardRef as w, useCallback as T, useEffect as E, useId as re, useLayoutEffect as ie, useMemo as D, useRef as O, useState as k } from "react";
|
|
16
16
|
import { jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
17
17
|
import { Camera as M, ImageIcon as ae, Trash2Icon as N, TriangleAlert as oe, UploadIcon as P, X as se } from "lucide-react";
|
|
18
18
|
//#region src/components/base/upload/file-upload.strings.ts
|
|
@@ -38,14 +38,14 @@ var F = {
|
|
|
38
38
|
function I(e) {
|
|
39
39
|
return `${e.name}\u0000${e.size}\u0000${e.type}\u0000${e.lastModified}`;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ce(e, t) {
|
|
42
42
|
if (!t?.trim()) return !0;
|
|
43
43
|
let n = e.name.toLowerCase(), r = e.type.toLowerCase();
|
|
44
44
|
return t.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean).some((e) => e.startsWith(".") ? n.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r === e);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function L(e, t) {
|
|
47
47
|
let { accept: n, minSizeBytes: r, maxSizeBytes: i, validateFile: a, formatSize: o, strings: s } = t;
|
|
48
|
-
if (!
|
|
48
|
+
if (!ce(e, n)) return {
|
|
49
49
|
file: e,
|
|
50
50
|
code: "invalid-type",
|
|
51
51
|
message: s.invalidType(e.name, n ?? "")
|
|
@@ -74,10 +74,10 @@ function R(e, t) {
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function le({ incoming: e, current: t, accept: n, minSizeBytes: r, maxSizeBytes: i, maxFiles: a, append: o, validateFile: s, formatSize: c, strings: l }) {
|
|
78
78
|
let u = o ? [...t] : [], d = new Set(u.map(I)), f = [], p = [];
|
|
79
79
|
for (let t of e) {
|
|
80
|
-
let e =
|
|
80
|
+
let e = L(t, {
|
|
81
81
|
accept: n,
|
|
82
82
|
minSizeBytes: r,
|
|
83
83
|
maxSizeBytes: i,
|
|
@@ -116,19 +116,19 @@ function ce({ incoming: e, current: t, accept: n, minSizeBytes: r, maxSizeBytes:
|
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region src/components/base/upload/file-upload.tsx
|
|
119
|
-
function
|
|
119
|
+
function R(e) {
|
|
120
120
|
return Object.prototype.hasOwnProperty.call(e, "value");
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function ue(e) {
|
|
123
123
|
return e === void 0 || !Number.isFinite(e) ? 2 ** 53 - 1 : Math.max(1, Math.floor(e));
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function de(e, t) {
|
|
126
126
|
return `${e.name}-${e.size}-${e.type}-${e.lastModified}-${t}`;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function z(e, t, n) {
|
|
129
129
|
t.current = e, typeof n == "function" ? n(e) : n && (n.current = e);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function fe({ file: e, index: t, disabled: n, size: r, locale: i, strings: s, showReplace: c, onReplace: l, onRemove: u }) {
|
|
132
132
|
let f = s.replaceFileAria(e.name), p = s.removeFileAria(e.name);
|
|
133
133
|
return /* @__PURE__ */ j(x, {
|
|
134
134
|
variant: "outline",
|
|
@@ -160,7 +160,7 @@ function de({ file: e, index: t, disabled: n, size: r, locale: i, strings: s, sh
|
|
|
160
160
|
}),
|
|
161
161
|
/* @__PURE__ */ j(v, {
|
|
162
162
|
className: "file-upload--actions gap-space-xs",
|
|
163
|
-
children: [c && /* @__PURE__ */ A(
|
|
163
|
+
children: [c && /* @__PURE__ */ A(a, {
|
|
164
164
|
type: "button",
|
|
165
165
|
tone: "secondary",
|
|
166
166
|
buttonStyle: "ghost",
|
|
@@ -171,13 +171,13 @@ function de({ file: e, index: t, disabled: n, size: r, locale: i, strings: s, sh
|
|
|
171
171
|
title: f,
|
|
172
172
|
disabled: n,
|
|
173
173
|
onClick: l,
|
|
174
|
-
children: /* @__PURE__ */ A(
|
|
174
|
+
children: /* @__PURE__ */ A(o, {
|
|
175
175
|
tag: "span",
|
|
176
176
|
size: "inherit",
|
|
177
177
|
className: "sr-only",
|
|
178
178
|
children: s.replace
|
|
179
179
|
})
|
|
180
|
-
}), /* @__PURE__ */ A(
|
|
180
|
+
}), /* @__PURE__ */ A(a, {
|
|
181
181
|
type: "button",
|
|
182
182
|
tone: "destructive",
|
|
183
183
|
buttonStyle: "ghost",
|
|
@@ -188,7 +188,7 @@ function de({ file: e, index: t, disabled: n, size: r, locale: i, strings: s, sh
|
|
|
188
188
|
title: p,
|
|
189
189
|
disabled: n,
|
|
190
190
|
onClick: () => u(t),
|
|
191
|
-
children: /* @__PURE__ */ A(
|
|
191
|
+
children: /* @__PURE__ */ A(o, {
|
|
192
192
|
tag: "span",
|
|
193
193
|
size: "inherit",
|
|
194
194
|
className: "sr-only",
|
|
@@ -199,169 +199,170 @@ function de({ file: e, index: t, disabled: n, size: r, locale: i, strings: s, sh
|
|
|
199
199
|
]
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
let { accept:
|
|
204
|
-
|
|
202
|
+
function B(d, f) {
|
|
203
|
+
let { accept: h, disabled: g = !1, invalid: _ = !1, size: v, minSizeBytes: y, maxSizeBytes: b, validateFile: x, onRejectedFiles: S, className: C, strings: w, multiple: E = !1, value: M, defaultValue: ae, onValueChange: N, selectionMode: P, maxFiles: se, "aria-describedby": I, "aria-invalid": ce, ...L } = d, B = r(F, w), { defaultScale: V } = t(), { locale: H } = e(), U = n(v, V), W = R(d), [pe, me] = k(() => d.multiple ? [...d.defaultValue ?? []] : d.defaultValue ? [d.defaultValue] : []), [G, he] = k([]), K = O(null), q = O(null), J = O(!1), Y = O(!1), ge = re(), X = D(() => W ? d.multiple ? d.value ?? [] : d.value ? [d.value] : [] : pe, [
|
|
204
|
+
W,
|
|
205
205
|
d.multiple,
|
|
206
206
|
d.value,
|
|
207
207
|
pe
|
|
208
208
|
]);
|
|
209
|
-
|
|
210
|
-
if (!
|
|
211
|
-
let e =
|
|
212
|
-
e && (e.focus(),
|
|
213
|
-
}, [
|
|
214
|
-
let
|
|
215
|
-
if (
|
|
209
|
+
ie(() => {
|
|
210
|
+
if (!J.current) return;
|
|
211
|
+
let e = q.current?.querySelector(".file-upload--actions button, .file-upload--dropzone input[type=file], .file-upload--dropzone button");
|
|
212
|
+
e && (e.focus(), J.current = !1);
|
|
213
|
+
}, [X]);
|
|
214
|
+
let _e = d.multiple ? d : void 0, ve = E ? ue(_e?.maxFiles) : 1, Z = E && (_e?.selectionMode ?? "append") === "append", ye = `${L.id ?? `file-upload-${ge}`}-errors`, be = [I, G.length > 0 ? ye : void 0].filter(Boolean).join(" ") || void 0, Q = _ || G.length > 0, $ = T((e) => {
|
|
215
|
+
if (W || me(e), d.multiple) d.onValueChange?.(e);
|
|
216
216
|
else {
|
|
217
217
|
let t = e[0];
|
|
218
218
|
d.onValueChange?.(t);
|
|
219
219
|
}
|
|
220
|
-
}, [
|
|
221
|
-
if (
|
|
222
|
-
let t =
|
|
220
|
+
}, [W, d]), xe = T((e) => u(e, { locale: H }) ?? `${e} B`, [H]), Se = T((e) => {
|
|
221
|
+
if (g || e.length === 0) return !1;
|
|
222
|
+
let t = le({
|
|
223
223
|
incoming: e,
|
|
224
|
-
current:
|
|
225
|
-
accept:
|
|
226
|
-
minSizeBytes:
|
|
227
|
-
maxSizeBytes:
|
|
228
|
-
maxFiles:
|
|
229
|
-
append:
|
|
230
|
-
validateFile:
|
|
224
|
+
current: X,
|
|
225
|
+
accept: h,
|
|
226
|
+
minSizeBytes: y,
|
|
227
|
+
maxSizeBytes: b,
|
|
228
|
+
maxFiles: ve,
|
|
229
|
+
append: Z,
|
|
230
|
+
validateFile: x,
|
|
231
231
|
formatSize: xe,
|
|
232
|
-
strings:
|
|
232
|
+
strings: B
|
|
233
233
|
});
|
|
234
|
-
return he(t.rejections), t.rejections.length > 0 &&
|
|
234
|
+
return he(t.rejections), t.rejections.length > 0 && S?.(t.rejections), t.accepted.length !== 0 && (J.current = !E && (Y.current || !!q.current?.contains(document.activeElement)), Y.current = !1, $(t.nextFiles), t.rejections.length === 0);
|
|
235
235
|
}, [
|
|
236
|
-
m,
|
|
237
|
-
ve,
|
|
238
|
-
Q,
|
|
239
236
|
h,
|
|
240
|
-
|
|
241
|
-
|
|
237
|
+
Z,
|
|
238
|
+
$,
|
|
239
|
+
g,
|
|
240
|
+
E,
|
|
241
|
+
X,
|
|
242
242
|
xe,
|
|
243
|
-
|
|
243
|
+
ve,
|
|
244
|
+
b,
|
|
244
245
|
y,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
h || (he([]), Se(), q.current = !!K.current?.contains(document.activeElement), Q(Y.filter((t, n) => n !== e)));
|
|
246
|
+
S,
|
|
247
|
+
B,
|
|
248
|
+
x
|
|
249
|
+
]), Ce = T(() => {
|
|
250
|
+
K.current && (K.current.value = "");
|
|
251
|
+
}, []), we = T((e) => {
|
|
252
|
+
g || (he([]), Ce(), J.current = !!q.current?.contains(document.activeElement), $(X.filter((t, n) => n !== e)));
|
|
253
253
|
}, [
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
]),
|
|
259
|
-
|
|
260
|
-
}, [
|
|
261
|
-
disabled:
|
|
262
|
-
onFiles:
|
|
263
|
-
}),
|
|
254
|
+
Ce,
|
|
255
|
+
$,
|
|
256
|
+
g,
|
|
257
|
+
X
|
|
258
|
+
]), Te = T(() => {
|
|
259
|
+
g || (Y.current = !!q.current?.contains(document.activeElement), K.current?.click());
|
|
260
|
+
}, [g]), { isDragging: Ee, dropTargetProps: De } = ee({
|
|
261
|
+
disabled: g,
|
|
262
|
+
onFiles: Se
|
|
263
|
+
}), Oe = {
|
|
264
264
|
...L,
|
|
265
|
-
accept:
|
|
266
|
-
multiple:
|
|
267
|
-
disabled:
|
|
265
|
+
accept: h,
|
|
266
|
+
multiple: E,
|
|
267
|
+
disabled: g,
|
|
268
268
|
"aria-describedby": be,
|
|
269
|
-
"aria-invalid":
|
|
270
|
-
},
|
|
271
|
-
ref: (e) =>
|
|
272
|
-
onDrop:
|
|
273
|
-
accept:
|
|
274
|
-
multiple:
|
|
275
|
-
disabled:
|
|
276
|
-
invalid:
|
|
277
|
-
size:
|
|
269
|
+
"aria-invalid": Q ? !0 : ce
|
|
270
|
+
}, ke = /* @__PURE__ */ A(te, {
|
|
271
|
+
ref: (e) => z(e, K, f),
|
|
272
|
+
onDrop: Se,
|
|
273
|
+
accept: h,
|
|
274
|
+
multiple: E,
|
|
275
|
+
disabled: g,
|
|
276
|
+
invalid: Q,
|
|
277
|
+
size: U,
|
|
278
278
|
className: "file-upload--dropzone",
|
|
279
|
-
inputProps:
|
|
279
|
+
inputProps: Oe,
|
|
280
280
|
strings: {
|
|
281
|
-
instruction:
|
|
282
|
-
helper:
|
|
283
|
-
dragOver:
|
|
281
|
+
instruction: B.instruction,
|
|
282
|
+
helper: B.helper,
|
|
283
|
+
dragOver: B.dragOver
|
|
284
284
|
},
|
|
285
|
-
children: /* @__PURE__ */ A(
|
|
285
|
+
children: /* @__PURE__ */ A(a, {
|
|
286
286
|
type: "button",
|
|
287
287
|
tone: "secondary",
|
|
288
288
|
buttonStyle: "outline",
|
|
289
|
-
size:
|
|
290
|
-
disabled:
|
|
291
|
-
|
|
292
|
-
|
|
289
|
+
size: U,
|
|
290
|
+
disabled: g,
|
|
291
|
+
className: "disabled:opacity-100 aria-disabled:opacity-100",
|
|
292
|
+
onClick: Te,
|
|
293
|
+
children: B.browse
|
|
293
294
|
})
|
|
294
295
|
});
|
|
295
296
|
return /* @__PURE__ */ j("div", {
|
|
296
|
-
ref:
|
|
297
|
-
"data-disabled":
|
|
298
|
-
"data-invalid":
|
|
299
|
-
className: i("file-upload--component grid gap-space-md",
|
|
297
|
+
ref: q,
|
|
298
|
+
"data-disabled": g || void 0,
|
|
299
|
+
"data-invalid": Q || void 0,
|
|
300
|
+
className: i("file-upload--component grid gap-space-md", C),
|
|
300
301
|
children: [
|
|
301
|
-
(
|
|
302
|
-
!
|
|
303
|
-
...
|
|
304
|
-
"data-dragging":
|
|
305
|
-
"data-invalid":
|
|
306
|
-
className: i("file-upload--selected rounded-radius transition-shadow",
|
|
302
|
+
(E || X.length === 0) && ke,
|
|
303
|
+
!E && X[0] && /* @__PURE__ */ j("div", {
|
|
304
|
+
...De,
|
|
305
|
+
"data-dragging": Ee || void 0,
|
|
306
|
+
"data-invalid": Q || void 0,
|
|
307
|
+
className: i("file-upload--selected rounded-radius transition-shadow", Q && "[&_.file-upload--file]:border-destructive", !g && Ee && (Q ? m.invalidDraggingRing : m.draggingRing)),
|
|
307
308
|
children: [/* @__PURE__ */ A(ne, {
|
|
308
|
-
...
|
|
309
|
-
ref: (e) =>
|
|
309
|
+
...Oe,
|
|
310
|
+
ref: (e) => z(e, K, f),
|
|
310
311
|
tabIndex: -1,
|
|
311
312
|
className: "file-upload--input",
|
|
312
|
-
onFiles:
|
|
313
|
-
}), /* @__PURE__ */ A(
|
|
314
|
-
file:
|
|
313
|
+
onFiles: Se
|
|
314
|
+
}), /* @__PURE__ */ A(fe, {
|
|
315
|
+
file: X[0],
|
|
315
316
|
index: 0,
|
|
316
|
-
disabled:
|
|
317
|
-
size:
|
|
318
|
-
locale:
|
|
319
|
-
strings:
|
|
317
|
+
disabled: g,
|
|
318
|
+
size: U,
|
|
319
|
+
locale: H,
|
|
320
|
+
strings: B,
|
|
320
321
|
showReplace: !0,
|
|
321
|
-
onReplace:
|
|
322
|
-
onRemove:
|
|
322
|
+
onReplace: Te,
|
|
323
|
+
onRemove: we
|
|
323
324
|
})]
|
|
324
325
|
}),
|
|
325
|
-
|
|
326
|
+
E && X.length > 0 && /* @__PURE__ */ A(p, {
|
|
326
327
|
className: "file-upload--files",
|
|
327
|
-
children:
|
|
328
|
+
children: X.map((e, t) => /* @__PURE__ */ A(fe, {
|
|
328
329
|
file: e,
|
|
329
330
|
index: t,
|
|
330
|
-
disabled:
|
|
331
|
-
size:
|
|
332
|
-
locale:
|
|
333
|
-
strings:
|
|
331
|
+
disabled: g,
|
|
332
|
+
size: U,
|
|
333
|
+
locale: H,
|
|
334
|
+
strings: B,
|
|
334
335
|
showReplace: !1,
|
|
335
|
-
onReplace:
|
|
336
|
-
onRemove:
|
|
337
|
-
},
|
|
336
|
+
onReplace: Te,
|
|
337
|
+
onRemove: we
|
|
338
|
+
}, de(e, t)))
|
|
338
339
|
}),
|
|
339
|
-
|
|
340
|
+
G.length > 0 && /* @__PURE__ */ j(c, {
|
|
340
341
|
id: ye,
|
|
341
342
|
tone: "destructive",
|
|
342
343
|
"aria-live": "polite",
|
|
343
|
-
className: i("file-upload--errors",
|
|
344
|
+
className: i("file-upload--errors", U === "sm" && "p-surface-xs"),
|
|
344
345
|
children: [
|
|
345
346
|
/* @__PURE__ */ A(oe, { "aria-hidden": "true" }),
|
|
346
|
-
/* @__PURE__ */ A(l, { children:
|
|
347
|
+
/* @__PURE__ */ A(l, { children: B.errorsHeading }),
|
|
347
348
|
/* @__PURE__ */ A(s, { children: /* @__PURE__ */ A("ul", {
|
|
348
349
|
className: "m-0 p-0 list-none grid gap-space-2xs",
|
|
349
|
-
children:
|
|
350
|
+
children: G.map((e, t) => /* @__PURE__ */ A("li", {
|
|
350
351
|
className: "file-upload--error",
|
|
351
|
-
children: /* @__PURE__ */ A(
|
|
352
|
+
children: /* @__PURE__ */ A(o, {
|
|
352
353
|
tag: "span",
|
|
353
354
|
size: "xs",
|
|
354
355
|
type: "error",
|
|
355
356
|
children: e.message
|
|
356
357
|
})
|
|
357
|
-
}, `${e.code}-${
|
|
358
|
+
}, `${e.code}-${de(e.file, t)}`))
|
|
358
359
|
}) })
|
|
359
360
|
]
|
|
360
361
|
})
|
|
361
362
|
]
|
|
362
363
|
});
|
|
363
364
|
}
|
|
364
|
-
var V = w(
|
|
365
|
+
var V = w(B);
|
|
365
366
|
V.displayName = "FileUpload";
|
|
366
367
|
//#endregion
|
|
367
368
|
//#region src/hooks/use-files.ts
|
|
@@ -377,30 +378,30 @@ function U(e) {
|
|
|
377
378
|
let t = Math.min(Math.floor(Math.log(e) / Math.log(1024)), H.length - 1), n = e / 1024 ** t;
|
|
378
379
|
return `${t === 0 ? n.toFixed(0) : Number(n.toFixed(1)).toString()} ${H[t]}`;
|
|
379
380
|
}
|
|
380
|
-
var
|
|
381
|
-
function
|
|
382
|
-
return `${Date.now().toString(36)}-${(
|
|
381
|
+
var W = 0;
|
|
382
|
+
function pe() {
|
|
383
|
+
return `${Date.now().toString(36)}-${(W++).toString(36)}`;
|
|
383
384
|
}
|
|
384
|
-
function
|
|
385
|
+
function me(e) {
|
|
385
386
|
return e.name.split(".").pop()?.toLowerCase() ?? "";
|
|
386
387
|
}
|
|
387
|
-
function
|
|
388
|
+
function G(e) {
|
|
388
389
|
return `${e.name}\u0000${e.size}\u0000${e.type}\u0000${e.lastModified}`;
|
|
389
390
|
}
|
|
390
|
-
function
|
|
391
|
+
function he(e) {
|
|
391
392
|
return {
|
|
392
|
-
id:
|
|
393
|
+
id: pe(),
|
|
393
394
|
file: e,
|
|
394
395
|
name: e.name,
|
|
395
396
|
size: e.size,
|
|
396
397
|
formattedSize: U(e.size),
|
|
397
398
|
type: e.type,
|
|
398
|
-
extension:
|
|
399
|
+
extension: me(e),
|
|
399
400
|
lastModified: e.lastModified
|
|
400
401
|
};
|
|
401
402
|
}
|
|
402
403
|
function K(e, t) {
|
|
403
|
-
let n =
|
|
404
|
+
let n = me(e);
|
|
404
405
|
if (t?.minSize !== void 0 && e.size < t.minSize) return {
|
|
405
406
|
file: e,
|
|
406
407
|
code: "too-small",
|
|
@@ -435,9 +436,9 @@ function q(e) {
|
|
|
435
436
|
}
|
|
436
437
|
function J(e) {
|
|
437
438
|
let [t, n] = k([]), r = O([]), [i, a] = k([]), o = T(U, []), s = T((t, i) => {
|
|
438
|
-
let o = Array.isArray(t) ? t : Array.from(t), s = r.current, c = i ? [] : [...s], l = new Set(c.map((e) =>
|
|
439
|
+
let o = Array.isArray(t) ? t : Array.from(t), s = r.current, c = i ? [] : [...s], l = new Set(c.map((e) => G(e.file))), u = [], d = [];
|
|
439
440
|
for (let t of o) {
|
|
440
|
-
let n =
|
|
441
|
+
let n = G(t);
|
|
441
442
|
if (l.has(n)) {
|
|
442
443
|
d.push({
|
|
443
444
|
file: t,
|
|
@@ -459,7 +460,7 @@ function J(e) {
|
|
|
459
460
|
});
|
|
460
461
|
continue;
|
|
461
462
|
}
|
|
462
|
-
let i =
|
|
463
|
+
let i = he(t);
|
|
463
464
|
u.push(i), c.push(i), l.add(n);
|
|
464
465
|
}
|
|
465
466
|
return i && u.length === 0 && d.length > 0 && (c = s), r.current = c, n(c), a(d), {
|
|
@@ -486,7 +487,7 @@ function J(e) {
|
|
|
486
487
|
}
|
|
487
488
|
//#endregion
|
|
488
489
|
//#region src/components/base/upload/image-upload.tsx
|
|
489
|
-
var
|
|
490
|
+
var Y = 2, ge = {
|
|
490
491
|
square: "aspect-square",
|
|
491
492
|
standard: "aspect-[4/3]",
|
|
492
493
|
widescreen: "aspect-[16/9]",
|
|
@@ -519,7 +520,7 @@ function _e(e, t, n) {
|
|
|
519
520
|
}
|
|
520
521
|
}
|
|
521
522
|
function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value: n, onValueChange: s, disabled: c, initialPreviewUrl: l, aspectRatio: u = "square", fit: d = "cover", maxWidth: f, layout: p = "stacked", invalid: te, strings: ne }, h) {
|
|
522
|
-
let g = r(X, ne), _ =
|
|
523
|
+
let g = r(X, ne), _ = re(), v = O(null), y = D(() => {
|
|
523
524
|
if (!e) return [
|
|
524
525
|
"png",
|
|
525
526
|
"jpg",
|
|
@@ -537,12 +538,12 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
|
|
|
537
538
|
return e.toLowerCase();
|
|
538
539
|
}).filter((e) => !!e);
|
|
539
540
|
if (t.length !== 0) return Array.from(new Set(t));
|
|
540
|
-
}, [e]), { files: b, setFiles: x, remove: S, removeAll: C, formatSize: w, rejections:
|
|
541
|
+
}, [e]), { files: b, setFiles: x, remove: S, removeAll: C, formatSize: w, rejections: ie } = J(D(() => ({
|
|
541
542
|
maxFiles: t ? void 0 : 1,
|
|
542
|
-
maxSize:
|
|
543
|
+
maxSize: Y * 1024 * 1024,
|
|
543
544
|
allowedExtensions: y
|
|
544
545
|
}), [t, y]));
|
|
545
|
-
|
|
546
|
+
E(() => {
|
|
546
547
|
n ? x([n]) : (C(), v.current && (v.current.value = ""));
|
|
547
548
|
}, [
|
|
548
549
|
n,
|
|
@@ -550,7 +551,7 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
|
|
|
550
551
|
C
|
|
551
552
|
]);
|
|
552
553
|
let M = b[0], N = M ? g.change : g.select, [oe, P] = k(void 0), se = D(() => !y || y.length === 0 ? null : y.map((e) => e.toUpperCase()).join(", "), [y]);
|
|
553
|
-
|
|
554
|
+
E(() => {
|
|
554
555
|
let e = M?.file ?? n;
|
|
555
556
|
if (!e) {
|
|
556
557
|
P(void 0);
|
|
@@ -559,10 +560,10 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
|
|
|
559
560
|
let t = URL.createObjectURL(e);
|
|
560
561
|
return P(t), () => URL.revokeObjectURL(t);
|
|
561
562
|
}, [M, n]);
|
|
562
|
-
let F = oe ?? l, I = !!F,
|
|
563
|
-
maxWidth: f ?
|
|
563
|
+
let F = oe ?? l, I = !!F, ce = M?.name ?? g.previewAlt ?? X.previewAlt, L = ge[u] ?? ge.square, le = d === "contain" ? "object-contain p-space-sm" : "object-cover", R = f ? typeof f == "number" ? `${f}px` : f : "240px", ue = p === "inline" ? void 0 : { maxWidth: R }, de = p === "inline" ? {
|
|
564
|
+
maxWidth: f ? R : "185px",
|
|
564
565
|
width: "100%"
|
|
565
|
-
} : void 0,
|
|
566
|
+
} : void 0, z = T((e) => {
|
|
566
567
|
if (c || e.length === 0) return;
|
|
567
568
|
let t = x(e).accepted[0]?.file;
|
|
568
569
|
t && s?.(t);
|
|
@@ -570,11 +571,11 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
|
|
|
570
571
|
c,
|
|
571
572
|
x,
|
|
572
573
|
s
|
|
573
|
-
]),
|
|
574
|
-
|
|
575
|
-
}, [
|
|
574
|
+
]), fe = T((e) => {
|
|
575
|
+
z(Array.from(e.target.files ?? []));
|
|
576
|
+
}, [z]), { isDragging: B, dropTargetProps: V } = ee({
|
|
576
577
|
disabled: c,
|
|
577
|
-
onFiles:
|
|
578
|
+
onFiles: z
|
|
578
579
|
}), H = T(() => {
|
|
579
580
|
c || v.current?.click();
|
|
580
581
|
}, [c]), U = T(() => {
|
|
@@ -586,7 +587,7 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
|
|
|
586
587
|
]);
|
|
587
588
|
return /* @__PURE__ */ j("div", {
|
|
588
589
|
className: i("image-upload--component", "grid gap-space-md"),
|
|
589
|
-
style:
|
|
590
|
+
style: ue,
|
|
590
591
|
children: [
|
|
591
592
|
/* @__PURE__ */ A("input", {
|
|
592
593
|
ref: (e) => {
|
|
@@ -600,19 +601,19 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
|
|
|
600
601
|
accept: e,
|
|
601
602
|
multiple: t,
|
|
602
603
|
disabled: c,
|
|
603
|
-
onChange:
|
|
604
|
+
onChange: fe
|
|
604
605
|
}),
|
|
605
606
|
/* @__PURE__ */ j("div", {
|
|
606
607
|
className: i(p === "inline" ? "flex flex-wrap items-start gap-space-xl" : "grid gap-space-md"),
|
|
607
608
|
children: [/* @__PURE__ */ A("div", {
|
|
608
609
|
...V,
|
|
609
|
-
"data-dragging":
|
|
610
|
-
className: i("relative overflow-hidden rounded-radius border transition-colors", p === "inline" ? "flex-shrink-0 w-full" : "w-full",
|
|
611
|
-
style:
|
|
610
|
+
"data-dragging": B || void 0,
|
|
611
|
+
className: i("relative overflow-hidden rounded-radius border transition-colors", p === "inline" ? "flex-shrink-0 w-full" : "w-full", L, I ? "border-border bg-muted" : i("border-dashed bg-background text-muted-foreground", m.idle), te && m.invalid, !c && B && m.dragging),
|
|
612
|
+
style: de,
|
|
612
613
|
children: I && F ? /* @__PURE__ */ A("img", {
|
|
613
614
|
src: F,
|
|
614
|
-
alt:
|
|
615
|
-
className: i("absolute inset-0 box-border h-full w-full",
|
|
615
|
+
alt: ce,
|
|
616
|
+
className: i("absolute inset-0 box-border h-full w-full", le)
|
|
616
617
|
}) : /* @__PURE__ */ A("div", {
|
|
617
618
|
className: "absolute inset-0 flex items-center justify-center",
|
|
618
619
|
children: /* @__PURE__ */ A(ae, {
|
|
@@ -625,44 +626,44 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
|
|
|
625
626
|
children: [
|
|
626
627
|
/* @__PURE__ */ j("div", {
|
|
627
628
|
className: "flex flex-wrap items-center gap-space-md",
|
|
628
|
-
children: [/* @__PURE__ */ A(
|
|
629
|
+
children: [/* @__PURE__ */ A(a, {
|
|
629
630
|
type: "button",
|
|
630
631
|
tone: "secondary",
|
|
631
632
|
buttonStyle: "outline",
|
|
632
633
|
onClick: H,
|
|
633
634
|
disabled: c,
|
|
634
635
|
children: N
|
|
635
|
-
}), !M && !!I && /* @__PURE__ */ A(
|
|
636
|
+
}), !M && !!I && /* @__PURE__ */ A(o, {
|
|
636
637
|
size: "xs",
|
|
637
638
|
type: "secondary",
|
|
638
639
|
children: g.keepCurrent
|
|
639
640
|
})]
|
|
640
641
|
}),
|
|
641
|
-
!!se && /* @__PURE__ */ A(
|
|
642
|
+
!!se && /* @__PURE__ */ A(o, {
|
|
642
643
|
size: "xs",
|
|
643
644
|
type: "secondary",
|
|
644
|
-
children: g.supportsTemplate.replace("{ext}", se).replace("{size}", String(
|
|
645
|
+
children: g.supportsTemplate.replace("{ext}", se).replace("{size}", String(Y))
|
|
645
646
|
}),
|
|
646
647
|
!!M && /* @__PURE__ */ j("div", {
|
|
647
648
|
className: "grid gap-space-2xs",
|
|
648
649
|
children: [
|
|
649
|
-
/* @__PURE__ */ A(
|
|
650
|
+
/* @__PURE__ */ A(o, {
|
|
650
651
|
weight: "medium",
|
|
651
652
|
title: M.name,
|
|
652
653
|
className: "truncate",
|
|
653
654
|
children: M.name
|
|
654
655
|
}),
|
|
655
|
-
/* @__PURE__ */ A(
|
|
656
|
+
/* @__PURE__ */ A(o, {
|
|
656
657
|
size: "xs",
|
|
657
658
|
type: "secondary",
|
|
658
659
|
children: M.formattedSize
|
|
659
660
|
}),
|
|
660
|
-
!!t && b.length > 1 && /* @__PURE__ */ A(
|
|
661
|
+
!!t && b.length > 1 && /* @__PURE__ */ A(o, {
|
|
661
662
|
size: "xs",
|
|
662
663
|
type: "secondary",
|
|
663
664
|
children: g.moreFiles(b.length - 1)
|
|
664
665
|
}),
|
|
665
|
-
/* @__PURE__ */ A(
|
|
666
|
+
/* @__PURE__ */ A(a, {
|
|
666
667
|
type: "button",
|
|
667
668
|
tone: "destructive",
|
|
668
669
|
buttonStyle: "ghost",
|
|
@@ -673,7 +674,7 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
|
|
|
673
674
|
})
|
|
674
675
|
]
|
|
675
676
|
}),
|
|
676
|
-
!M && !I && /* @__PURE__ */ A(
|
|
677
|
+
!M && !I && /* @__PURE__ */ A(o, {
|
|
677
678
|
size: "xs",
|
|
678
679
|
type: "secondary",
|
|
679
680
|
children: g.noSelection
|
|
@@ -681,11 +682,11 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
|
|
|
681
682
|
]
|
|
682
683
|
})]
|
|
683
684
|
}),
|
|
684
|
-
|
|
685
|
+
ie.length > 0 && /* @__PURE__ */ A("div", {
|
|
685
686
|
className: "image-upload--errors grid gap-space-2xs",
|
|
686
687
|
role: "alert",
|
|
687
688
|
"aria-live": "polite",
|
|
688
|
-
children:
|
|
689
|
+
children: ie.map((e, t) => /* @__PURE__ */ A(o, {
|
|
689
690
|
size: "xs",
|
|
690
691
|
type: "error",
|
|
691
692
|
children: _e(e, g, w)
|
|
@@ -694,11 +695,11 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
|
|
|
694
695
|
]
|
|
695
696
|
});
|
|
696
697
|
}
|
|
697
|
-
var
|
|
698
|
-
|
|
698
|
+
var Z = C.forwardRef(ve);
|
|
699
|
+
Z.displayName = "ImageUpload";
|
|
699
700
|
//#endregion
|
|
700
701
|
//#region src/components/base/upload/avatar-upload.tsx
|
|
701
|
-
var
|
|
702
|
+
var ye = {
|
|
702
703
|
change: "Change photo",
|
|
703
704
|
remove: "Remove photo",
|
|
704
705
|
hint: "Click or drop an image",
|
|
@@ -710,7 +711,7 @@ var be = {
|
|
|
710
711
|
duplicate: (e) => `${e} is already selected.`,
|
|
711
712
|
customValidationFailed: (e) => `${e} did not pass validation.`
|
|
712
713
|
};
|
|
713
|
-
function
|
|
714
|
+
function be(e, t, n) {
|
|
714
715
|
let { file: r, code: i, details: a } = e;
|
|
715
716
|
switch (i) {
|
|
716
717
|
case "invalid-type": return t.invalidType(r.name, a.extension ?? "");
|
|
@@ -738,44 +739,44 @@ var Q = {
|
|
|
738
739
|
remove: "size-action-lg"
|
|
739
740
|
}
|
|
740
741
|
};
|
|
741
|
-
function
|
|
742
|
-
let { defaultScale: g } =
|
|
742
|
+
function $({ value: e, onValueChange: a, initialPreviewUrl: s, accept: c = ".png,.jpg,.jpeg,.gif,.webp", disabled: l = !1, invalid: u = !1, size: d, className: p, strings: te, initials: ne }, h) {
|
|
743
|
+
let { defaultScale: g } = t(), _ = n(d, g), v = r(ye, te), y = re(), b = O(null), x = Q[_], { files: S, setFiles: C, removeAll: w, formatSize: ie, rejections: ae } = J({
|
|
743
744
|
maxFiles: 1,
|
|
744
745
|
allowedExtensions: D(() => c.split(",").map((e) => e.trim().replace(/^\./, "").toLowerCase()).filter(Boolean), [c])
|
|
745
746
|
});
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
}, [
|
|
747
|
+
E(() => {
|
|
748
|
+
e ? C([e]) : w();
|
|
749
|
+
}, [e]);
|
|
749
750
|
let N = S[0], [oe, P] = k(void 0);
|
|
750
|
-
|
|
751
|
-
let
|
|
752
|
-
if (!
|
|
751
|
+
E(() => {
|
|
752
|
+
let t = N?.file ?? e;
|
|
753
|
+
if (!t) {
|
|
753
754
|
P(void 0);
|
|
754
755
|
return;
|
|
755
756
|
}
|
|
756
|
-
let n = URL.createObjectURL(
|
|
757
|
+
let n = URL.createObjectURL(t);
|
|
757
758
|
return P(n), () => URL.revokeObjectURL(n);
|
|
758
|
-
}, [N,
|
|
759
|
-
let F = oe ?? s, I = !!F,
|
|
759
|
+
}, [N, e]);
|
|
760
|
+
let F = oe ?? s, I = !!F, ce = T((e) => {
|
|
760
761
|
let t = e.target.files;
|
|
761
762
|
if (!t || t.length === 0) return;
|
|
762
763
|
let n = C(t).accepted[0]?.file;
|
|
763
|
-
n &&
|
|
764
|
-
}, [
|
|
765
|
-
w(),
|
|
766
|
-
}, [
|
|
764
|
+
n && a?.(n), b.current && (b.current.value = "");
|
|
765
|
+
}, [a, C]), L = T(() => {
|
|
766
|
+
w(), a?.(void 0), b.current && (b.current.value = "");
|
|
767
|
+
}, [a, w]), le = T((e) => {
|
|
767
768
|
let t = C(e).accepted[0]?.file;
|
|
768
|
-
t &&
|
|
769
|
-
}, [
|
|
769
|
+
t && a?.(t);
|
|
770
|
+
}, [a, C]), { isDragging: R, dropTargetProps: ue } = ee({
|
|
770
771
|
disabled: l,
|
|
771
|
-
onFiles:
|
|
772
|
+
onFiles: le
|
|
772
773
|
});
|
|
773
774
|
return /* @__PURE__ */ j("div", {
|
|
774
775
|
className: i("avatar-upload--component", "inline-flex w-fit flex-col items-center gap-space-md self-start", p),
|
|
775
776
|
children: [
|
|
776
777
|
/* @__PURE__ */ j("div", {
|
|
777
|
-
...
|
|
778
|
-
className: i("group relative flex shrink-0 items-center justify-center rounded-full", "border transition-colors duration-150 outline-none", "has-[input:focus-visible]:ring-
|
|
778
|
+
...ue,
|
|
779
|
+
className: i("group relative flex shrink-0 items-center justify-center rounded-full", "border transition-colors duration-150 outline-none", "has-[input:focus-visible]:ring-3", I ? "border-border bg-muted" : i("border-dashed bg-muted", !l && m.hover, m.idle), u ? i(m.invalid, m.focus.input.invalid) : m.focus.input.valid, l && "cursor-not-allowed opacity-50", !l && R && m.dragging, x.box),
|
|
779
780
|
children: [
|
|
780
781
|
/* @__PURE__ */ A("input", {
|
|
781
782
|
id: y,
|
|
@@ -788,7 +789,7 @@ function xe({ value: t, onValueChange: o, initialPreviewUrl: s, accept: c = ".pn
|
|
|
788
789
|
"aria-invalid": u || void 0,
|
|
789
790
|
accept: c,
|
|
790
791
|
disabled: l,
|
|
791
|
-
onChange:
|
|
792
|
+
onChange: ce
|
|
792
793
|
}),
|
|
793
794
|
/* @__PURE__ */ j("div", {
|
|
794
795
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center overflow-hidden rounded-full",
|
|
@@ -796,7 +797,7 @@ function xe({ value: t, onValueChange: o, initialPreviewUrl: s, accept: c = ".pn
|
|
|
796
797
|
src: F,
|
|
797
798
|
alt: v.change,
|
|
798
799
|
className: "absolute inset-0 size-full object-cover"
|
|
799
|
-
}) : ne ? /* @__PURE__ */ A(
|
|
800
|
+
}) : ne ? /* @__PURE__ */ A(o, {
|
|
800
801
|
size: _ === "sm" ? "sm" : _ === "lg" ? "lg" : "base",
|
|
801
802
|
weight: "medium",
|
|
802
803
|
lineHeight: "none",
|
|
@@ -814,12 +815,12 @@ function xe({ value: t, onValueChange: o, initialPreviewUrl: s, accept: c = ".pn
|
|
|
814
815
|
type: "button",
|
|
815
816
|
"aria-label": v.remove,
|
|
816
817
|
onClick: (e) => {
|
|
817
|
-
e.stopPropagation(),
|
|
818
|
+
e.stopPropagation(), L();
|
|
818
819
|
},
|
|
819
|
-
className: i(f.target, f.focus, "absolute end-0.5 top-0.5 z-
|
|
820
|
+
className: i(f.target, f.focus, "absolute end-0.5 top-0.5 z-10 bg-card text-card-foreground shadow-sm ring-1 ring-border", "opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100", x.remove),
|
|
820
821
|
children: /* @__PURE__ */ A(se, { className: f.icon })
|
|
821
822
|
}),
|
|
822
|
-
!l && !I &&
|
|
823
|
+
!l && !I && R && /* @__PURE__ */ A(o, {
|
|
823
824
|
size: "xs",
|
|
824
825
|
weight: "medium",
|
|
825
826
|
className: "absolute inset-x-0 bottom-1.5 text-center text-primary-accent",
|
|
@@ -827,7 +828,7 @@ function xe({ value: t, onValueChange: o, initialPreviewUrl: s, accept: c = ".pn
|
|
|
827
828
|
})
|
|
828
829
|
]
|
|
829
830
|
}),
|
|
830
|
-
!I && /* @__PURE__ */ A(
|
|
831
|
+
!I && /* @__PURE__ */ A(o, {
|
|
831
832
|
size: "xs",
|
|
832
833
|
type: "secondary",
|
|
833
834
|
children: v.hint
|
|
@@ -836,18 +837,18 @@ function xe({ value: t, onValueChange: o, initialPreviewUrl: s, accept: c = ".pn
|
|
|
836
837
|
className: "avatar-upload--errors grid gap-space-2xs",
|
|
837
838
|
role: "alert",
|
|
838
839
|
"aria-live": "polite",
|
|
839
|
-
children: ae.map((e, t) => /* @__PURE__ */ A(
|
|
840
|
+
children: ae.map((e, t) => /* @__PURE__ */ A(o, {
|
|
840
841
|
size: "xs",
|
|
841
842
|
type: "error",
|
|
842
|
-
children:
|
|
843
|
+
children: be(e, v, ie)
|
|
843
844
|
}, `${e.file.name}-${e.code}-${t}`))
|
|
844
845
|
})
|
|
845
846
|
]
|
|
846
847
|
});
|
|
847
848
|
}
|
|
848
|
-
var
|
|
849
|
-
|
|
849
|
+
var xe = S.forwardRef($);
|
|
850
|
+
xe.displayName = "AvatarUpload";
|
|
850
851
|
//#endregion
|
|
851
|
-
export { V as a, X as i,
|
|
852
|
+
export { V as a, X as i, ye as n, F as o, Z as r, xe as t };
|
|
852
853
|
|
|
853
|
-
//# sourceMappingURL=upload-
|
|
854
|
+
//# sourceMappingURL=upload-CXyxmQBP.js.map
|