themelia-react-ui 1.0.2 → 2.0.1
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 +632 -1
- package/README.md +31 -13
- package/dist/accordion-B6a3vVgA.js +207 -0
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CL84ZN9A.js → affordance-geometry.generated-B5iu-Mkr.js} +9 -3
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-BMJdv-6q.js} +389 -391
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-C_fKpljx.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-C_fKpljx.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-CAQcasMV.js → auth-CYxKfo69.js} +239 -237
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-Bu2HhitA.js → avatar-BBnEJIx8.js} +71 -68
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.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 +19 -19
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +234 -224
- 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 +1 -1
- 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 +81 -76
- 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 +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +175 -174
- 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 +148 -138
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- 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 +4 -4
- 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-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +264 -253
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +293 -323
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +596 -587
- 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 +2246 -1693
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +82 -91
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-BZyfTvwm.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/buttons-SbIcm1HJ.js +661 -0
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-qGSErLw_.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-Bsc5BICK.js → chart-QfrARkXl.js} +17 -15
- package/dist/chart-QfrARkXl.js.map +1 -0
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-ClvC7Bj3.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-D6S8cv_n.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-D6S8cv_n.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-BFnbJJp3.js → combobox-2Ic8N9bL.js} +103 -98
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/combobox-DLl0bfiq.js +867 -0
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-BnmSchli.js → command-kNR20o7x.js} +34 -30
- package/dist/command-kNR20o7x.js.map +1 -0
- package/dist/{comments-u5L0OGip.js → comments-BpDuCUUu.js} +304 -301
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +27 -5
- 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/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +6 -6
- 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/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +24 -3
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
- package/dist/components/base/display/alert-dialog.d.ts +10 -3
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +8 -5
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-sizing.d.ts +43 -8
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- 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/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- 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 +30 -4
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +10 -5
- 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/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- 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 +33 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +38 -12
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.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 +4 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- 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 +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
- 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/loyalty-points/types.d.ts +1 -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-status/types.d.ts +4 -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 +14 -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/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- 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/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- 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/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- 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 +4 -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/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +62 -19
- 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/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +11 -3
- 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 +1 -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 +45 -0
- 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/partials/cell-renderers.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +51 -4
- 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/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +9 -1
- package/dist/components/typography/label.d.ts +3 -0
- 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/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +24 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +35 -13
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/overlay.recipes.d.ts +6 -2
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/{containers-DqB-bSYE.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-BTSByfmq.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-BTSByfmq.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/date-BgK3bTdo.js +144 -0
- package/dist/date-BgK3bTdo.js.map +1 -0
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/date-pickers-BmzxJl5l.js +174 -0
- package/dist/date-pickers-BmzxJl5l.js.map +1 -0
- package/dist/{display-CS6Hbk18.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-E2qmdC7o.js} +23 -16
- package/dist/dropdown-menu-E2qmdC7o.js.map +1 -0
- package/dist/features/activities.js +437 -521
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +174 -172
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- 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 +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +353 -352
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +262 -269
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +914 -824
- 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 +1272 -1311
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +204 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -95
- 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 +193 -189
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +455 -455
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-qNuMBtRH.js +233 -0
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/field-affordance-recipes-qQeIf4lG.js +48 -0
- package/dist/field-affordance-recipes-qQeIf4lG.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-D6FF8L6s.js → filters-BkHH53uv.js} +414 -412
- package/dist/filters-BkHH53uv.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-CZwrkP7m.js → form-field-DUt4UxSV.js} +7 -7
- package/dist/{form-field-CZwrkP7m.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/form-sizing-By94KzXE.js +130 -0
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-B5NCbkSC.js → forms-Bzha-Y3B.js} +25 -25
- package/dist/forms-Bzha-Y3B.js.map +1 -0
- package/dist/forms-numeric-C0bvjRPZ.js +906 -0
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-kxruN3RM.js → header-BOefOKd1.js} +38 -41
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-BrlnCwQd.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-BrlnCwQd.js.map → hooks-9k_TtmKh.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-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-vxcaNCYC.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-vxcaNCYC.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/item-DEmDiTlD.js +265 -0
- package/dist/item-DEmDiTlD.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 +7 -1
- package/dist/lib/field-affordance-recipes.d.ts +41 -1
- package/dist/lib/field-state-recipes.d.ts +9 -6
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -1
- 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 +48 -6
- package/dist/lib/token-merge.generated.d.ts +17 -14
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/track-recipes.d.ts +1 -1
- 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/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +14 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-SZUNB1eX.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-SZUNB1eX.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.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-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DQEXQcqY.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/number-DMhe-Vsk.js +352 -0
- package/dist/number-DMhe-Vsk.js.map +1 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/{page-hGmT4nWK.js → page-B5dTH9gE.js} +79 -68
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-NLGqRirf.js → pagination-3bPA_a6K.js} +19 -19
- package/dist/{pagination-NLGqRirf.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-CghIYdQf.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-B4PoWhRl.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/primitives-B-CkiEMU.js +379 -0
- package/dist/primitives-B-CkiEMU.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BroqrAyV.js → progress-rnS8-uAW.js} +11 -11
- package/dist/progress-rnS8-uAW.js.map +1 -0
- package/dist/{receipt-BuJynLgf.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-BuJynLgf.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.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-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-BNIgG3au.js → separator-C8DlRGwF.js} +4 -4
- package/dist/separator-C8DlRGwF.js.map +1 -0
- package/dist/{separator-BhtFyo4x.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BhtFyo4x.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +22 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +23 -6
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-CyR4XKwR.js → sidebar-C7WWR29L.js} +181 -180
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/sidebar-d7Dg80ln.js +511 -0
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-3F0uhYn3.js → skeleton-Cz890JZF.js} +10 -10
- package/dist/skeleton-Cz890JZF.js.map +1 -0
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-Cpf7oRkF.js → spinner-fa3h1Aif.js} +10 -8
- package/dist/spinner-fa3h1Aif.js.map +1 -0
- package/dist/{structure-CRdqVawd.js → structure-DC2dygdA.js} +3 -3
- package/dist/{structure-CRdqVawd.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- 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-CIKyLUsy.js +163 -0
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/{table-CcRDZiLP.js → table-CrcLN9Io.js} +544 -530
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/tabs-DwBJfjxX.js +190 -0
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-DsR56TR-.js → text-inputs-aaK9wcDT.js} +151 -155
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +16 -12
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-D1pkt3se.js → timelines-C_SBwHNP.js} +154 -164
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BtmYyMZV.js → tree-BiKhg8AY.js} +72 -70
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-DRPn3qNl.js → ui-provider-1D_NSYzO.js} +30 -23
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-CDbYw1WN.js → upload-BO8-CLN6.js} +294 -293
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-CNd_hH_a.js → upload-queue-EOC8g1gf.js} +133 -138
- package/dist/upload-queue-EOC8g1gf.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-VyJLUwRr.js → usage-card-obRaBskq.js} +42 -43
- package/dist/{usage-card-VyJLUwRr.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-BvH9PSmq.js → utils-l5LpDw2z.js} +264 -62
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/value-typography-b8wpz1eX.js +116 -0
- package/dist/value-typography-b8wpz1eX.js.map +1 -0
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +62 -50
- package/docs/consumer-skill/examples/app-layout.tsx +3 -5
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -13
- package/docs/consumer-skill/examples/edit.tsx +2 -2
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +28 -6
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +3 -3
- 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 +139 -24
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/discovery.md +4 -0
- package/docs/consumer-skill/references/installation.md +33 -1
- package/docs/consumer-skill/references/integration.md +32 -1
- package/docs/consumer-skill/references/public-api.json +1051 -610
- package/docs/consumer-skill/references/review.md +44 -8
- package/docs/consumer-skill/references/theming.md +14 -4
- package/docs/consumer-skill/references/tokens.json +5 -2
- package/docs/consumer-skill/references/workflows.md +30 -9
- package/docs/consumer-skill/scripts/composition-policy.mjs +127 -6
- package/docs/consumer-skill/scripts/discovery.mjs +11 -3
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +13 -3
- package/dist/accordion-BRTcsp8J.js +0 -205
- package/dist/accordion-BRTcsp8J.js.map +0 -1
- package/dist/action-menu-Drxw_vJk.js +0 -265
- package/dist/action-menu-Drxw_vJk.js.map +0 -1
- package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
- package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
- package/dist/attachment-DbjUWsP0.js +0 -244
- package/dist/attachment-DbjUWsP0.js.map +0 -1
- package/dist/auth-CAQcasMV.js.map +0 -1
- package/dist/avatar-Bu2HhitA.js.map +0 -1
- package/dist/badge-CzId1Wlm.js +0 -92
- package/dist/badge-CzId1Wlm.js.map +0 -1
- package/dist/breadcrumbs-BuYz5SDU.js +0 -128
- package/dist/breadcrumbs-BuYz5SDU.js.map +0 -1
- package/dist/button-BZDasD04.js +0 -651
- package/dist/button-BZDasD04.js.map +0 -1
- package/dist/button-BZyfTvwm.js.map +0 -1
- package/dist/buttons-D_6KJvEE.js +0 -99
- package/dist/buttons-D_6KJvEE.js.map +0 -1
- package/dist/cards-qGSErLw_.js.map +0 -1
- package/dist/chart-Bsc5BICK.js.map +0 -1
- package/dist/checkbox-BQNDjUCh.js +0 -34
- package/dist/checkbox-BQNDjUCh.js.map +0 -1
- package/dist/choice-inputs-Mk3iWbhr.js +0 -725
- package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
- package/dist/code-block-DzHKRybS.js +0 -183
- package/dist/code-block-DzHKRybS.js.map +0 -1
- package/dist/combobox-BFnbJJp3.js.map +0 -1
- package/dist/combobox-hozNwUcc.js +0 -847
- package/dist/combobox-hozNwUcc.js.map +0 -1
- package/dist/command-BnmSchli.js.map +0 -1
- package/dist/comments-u5L0OGip.js.map +0 -1
- package/dist/containers-DqB-bSYE.js.map +0 -1
- package/dist/data-display-Bihs9Ven.js +0 -1342
- package/dist/data-display-Bihs9Ven.js.map +0 -1
- package/dist/date-DOKhJPu7.js +0 -140
- package/dist/date-DOKhJPu7.js.map +0 -1
- package/dist/date-picker-DzP5HQq7.js +0 -1541
- package/dist/date-picker-DzP5HQq7.js.map +0 -1
- package/dist/date-pickers-BpgGz7S-.js +0 -196
- package/dist/date-pickers-BpgGz7S-.js.map +0 -1
- package/dist/display-CS6Hbk18.js.map +0 -1
- package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
- package/dist/feedback-CJkUAapr.js +0 -233
- package/dist/feedback-CJkUAapr.js.map +0 -1
- package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
- package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
- package/dist/field-state-recipes-DQQpiLWC.js +0 -11
- package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
- package/dist/filters-D6FF8L6s.js.map +0 -1
- package/dist/form-sizing-QP8aIRaW.js +0 -103
- package/dist/form-sizing-QP8aIRaW.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B5NCbkSC.js.map +0 -1
- package/dist/forms-numeric-Crrm80Lm.js +0 -867
- package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
- package/dist/header-kxruN3RM.js.map +0 -1
- package/dist/icon-badge-Btc6pQrp.js +0 -53
- package/dist/icon-badge-Btc6pQrp.js.map +0 -1
- package/dist/input-SX9V0AL3.js +0 -255
- package/dist/input-SX9V0AL3.js.map +0 -1
- package/dist/item-DE4YnuJx.js +0 -258
- package/dist/item-DE4YnuJx.js.map +0 -1
- package/dist/media-gallery-DLp3HAz0.js +0 -201
- package/dist/media-gallery-DLp3HAz0.js.map +0 -1
- package/dist/mentions-Cl0Kt_Pd.js +0 -565
- package/dist/mentions-Cl0Kt_Pd.js.map +0 -1
- package/dist/navigation-DnQSNMT0.js +0 -276
- package/dist/navigation-DnQSNMT0.js.map +0 -1
- package/dist/navigation-DyytsLRB.js +0 -265
- package/dist/navigation-DyytsLRB.js.map +0 -1
- package/dist/number-DasMFWEG.js +0 -269
- package/dist/number-DasMFWEG.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-DUbs1KEi.js +0 -1011
- package/dist/overlays-DUbs1KEi.js.map +0 -1
- package/dist/page-hGmT4nWK.js.map +0 -1
- package/dist/page-header-D8nERkn5.js +0 -112
- package/dist/page-header-D8nERkn5.js.map +0 -1
- package/dist/popover-CghIYdQf.js.map +0 -1
- package/dist/primitives-C7ff0QaI.js +0 -337
- package/dist/primitives-C7ff0QaI.js.map +0 -1
- package/dist/progress-BroqrAyV.js.map +0 -1
- package/dist/rich-text-DlxDOtf4.js +0 -32
- package/dist/rich-text-DlxDOtf4.js.map +0 -1
- package/dist/rich-text-editor-BKyG7rWz.js +0 -574
- package/dist/rich-text-editor-BKyG7rWz.js.map +0 -1
- package/dist/rich-text-editor.recipes-B72Nfuze.js +0 -81
- package/dist/rich-text-editor.recipes-B72Nfuze.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/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-D-pIhEKl.js +0 -47
- package/dist/scroll-area-D-pIhEKl.js.map +0 -1
- package/dist/separator-BNIgG3au.js.map +0 -1
- package/dist/settings-DOTOzeZ2.js +0 -161
- package/dist/settings-DOTOzeZ2.js.map +0 -1
- package/dist/sheet-BFhrNehm.js +0 -205
- package/dist/sheet-BFhrNehm.js.map +0 -1
- package/dist/sidebar-CyR4XKwR.js.map +0 -1
- package/dist/sidebar-SvGJ0Zwi.js +0 -506
- package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
- package/dist/skeleton-3F0uhYn3.js.map +0 -1
- package/dist/smart-card-DjGVV2xr.js +0 -584
- package/dist/smart-card-DjGVV2xr.js.map +0 -1
- package/dist/spinner-Cpf7oRkF.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-Dd__PD-w.js +0 -28
- package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
- package/dist/table-CLtJTxoR.js +0 -147
- package/dist/table-CLtJTxoR.js.map +0 -1
- package/dist/table-CcRDZiLP.js.map +0 -1
- package/dist/tabs-BNgu7g0u.js +0 -188
- package/dist/tabs-BNgu7g0u.js.map +0 -1
- package/dist/text-inputs-DsR56TR-.js.map +0 -1
- package/dist/text.styles-Q4sGAIgA.js.map +0 -1
- package/dist/timelines-D1pkt3se.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/tree-BtmYyMZV.js.map +0 -1
- package/dist/typography-BxQgiZyw.js +0 -96
- package/dist/typography-BxQgiZyw.js.map +0 -1
- package/dist/ui-provider-DRPn3qNl.js.map +0 -1
- package/dist/upload-CDbYw1WN.js.map +0 -1
- package/dist/upload-queue-CNd_hH_a.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-BvH9PSmq.js.map +0 -1
- package/dist/value-inputs-D0KCrfVC.js +0 -840
- package/dist/value-inputs-D0KCrfVC.js.map +0 -1
- package/dist/workspace-CcR8r-Nt.js +0 -395
- package/dist/workspace-CcR8r-Nt.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as n } from "./utils-
|
|
4
|
-
import {
|
|
5
|
-
import { t as o } from "./
|
|
6
|
-
import { t as s } from "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as ie } from "./
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { r as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
2
|
+
import { s as e, v as t } from "./ui-provider-1D_NSYzO.js";
|
|
3
|
+
import { t as n } from "./utils-l5LpDw2z.js";
|
|
4
|
+
import { n as r } from "./buttons-SbIcm1HJ.js";
|
|
5
|
+
import { a as i, s as a, t as o } from "./typography-DTRkE9zL.js";
|
|
6
|
+
import { t as s } from "./focus-recipes-B653VaLq.js";
|
|
7
|
+
import { t as c } from "./structure-DC2dygdA.js";
|
|
8
|
+
import { n as l, t as u } from "./action-menu-TzCoSlwL.js";
|
|
9
|
+
import { t as d } from "./interaction-recipes-CHr0dJUs.js";
|
|
10
|
+
import { _ as f, c as p, d as m, g as h, h as g, i as _, l as v, m as y, o as b, p as x, s as S } from "./primitives-B-CkiEMU.js";
|
|
11
|
+
import { t as C } from "./initials-format-CDoQEOd_.js";
|
|
12
|
+
import { n as w, r as T, t as ee } from "./number-DMhe-Vsk.js";
|
|
13
|
+
import { a as te, i as E, r as ne, s as re, t as D } from "./date-BgK3bTdo.js";
|
|
14
|
+
import { t as O } from "./badge-MrKVNzW9.js";
|
|
15
|
+
import { t as ie } from "./batch-action-bar-BZGDG-Si.js";
|
|
16
|
+
import { t as ae } from "./separator-C8DlRGwF.js";
|
|
17
|
+
import { t as oe } from "./input-DWhBBBww.js";
|
|
18
|
+
import { t as se } from "./checkbox-DhB6K0bK.js";
|
|
19
|
+
import { r as k, t as ce } from "./control-group-recipes-DBXmfh2E.js";
|
|
20
|
+
import { a as le, c as ue, i as de, n as fe, o as pe, r as me, s as he, t as ge } from "./pagination-3bPA_a6K.js";
|
|
21
|
+
import { c as A, i as _e, n as ve, o as ye, s as be, t as xe } from "./table-CIKyLUsy.js";
|
|
22
|
+
import { s as Se } from "./data-display-DafIvCl5.js";
|
|
23
|
+
import { createContext as Ce, isValidElement as j, useCallback as M, useContext as we, useEffect as N, useMemo as P, useRef as F, useState as I } from "react";
|
|
24
|
+
import { Fragment as Te, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
25
|
+
import { ArrowDown as Ee, ArrowUp as z, Calendar as De, ChevronLeft as Oe, ChevronRight as ke, ChevronsUpDown as Ae, Mail as je, Maximize2 as Me, Minimize2 as Ne, PackageOpen as B, Settings2 as Pe } from "lucide-react";
|
|
26
|
+
import { flexRender as Fe, getCoreRowModel as Ie, getFilteredRowModel as Le, getSortedRowModel as Re, useReactTable as ze } from "@tanstack/react-table";
|
|
24
27
|
//#region src/components/features/table/hooks.ts
|
|
25
|
-
var
|
|
26
|
-
function
|
|
28
|
+
var Be = 300;
|
|
29
|
+
function Ve(e) {
|
|
27
30
|
return e ? e.querySelector("[data-slot=\"table-container\"]") : null;
|
|
28
31
|
}
|
|
29
|
-
function
|
|
30
|
-
let { stepPx: n =
|
|
31
|
-
let t =
|
|
32
|
+
function He(e, t = {}) {
|
|
33
|
+
let { stepPx: n = Be, deps: r = [] } = t, [i, a] = I(!1), [o, s] = I(!1), c = F(0), l = M(() => {
|
|
34
|
+
let t = Ve(e.current);
|
|
32
35
|
if (!t) {
|
|
33
36
|
a(!1), s(!1);
|
|
34
37
|
return;
|
|
@@ -39,7 +42,7 @@ function Re(e, t = {}) {
|
|
|
39
42
|
N(() => {
|
|
40
43
|
let t, n = window.setTimeout(() => {
|
|
41
44
|
l();
|
|
42
|
-
let n =
|
|
45
|
+
let n = Ve(e.current);
|
|
43
46
|
if (!n) return;
|
|
44
47
|
let r = () => {
|
|
45
48
|
cancelAnimationFrame(c.current), c.current = requestAnimationFrame(l);
|
|
@@ -59,7 +62,7 @@ function Re(e, t = {}) {
|
|
|
59
62
|
...r
|
|
60
63
|
]);
|
|
61
64
|
let u = M((t) => {
|
|
62
|
-
|
|
65
|
+
Ve(e.current)?.scrollBy({
|
|
63
66
|
left: t,
|
|
64
67
|
behavior: "smooth"
|
|
65
68
|
});
|
|
@@ -72,7 +75,7 @@ function Re(e, t = {}) {
|
|
|
72
75
|
scrollRight: M(() => u(n), [u, n])
|
|
73
76
|
};
|
|
74
77
|
}
|
|
75
|
-
var
|
|
78
|
+
var Ue = [
|
|
76
79
|
"a[href]",
|
|
77
80
|
"button:not([disabled])",
|
|
78
81
|
"input:not([disabled])",
|
|
@@ -80,7 +83,7 @@ var ze = [
|
|
|
80
83
|
"textarea:not([disabled])",
|
|
81
84
|
"[tabindex]:not([tabindex=\"-1\"])"
|
|
82
85
|
].join(",");
|
|
83
|
-
function
|
|
86
|
+
function We(e, t, n) {
|
|
84
87
|
let r = F(n);
|
|
85
88
|
r.current = n, N(() => {
|
|
86
89
|
if (!e || typeof document > "u") return;
|
|
@@ -94,7 +97,7 @@ function Be(e, t, n) {
|
|
|
94
97
|
return;
|
|
95
98
|
}
|
|
96
99
|
if (e.key !== "Tab") return;
|
|
97
|
-
let i = Array.from(n.querySelectorAll(
|
|
100
|
+
let i = Array.from(n.querySelectorAll(Ue)).filter((e) => e.offsetParent !== null || e === document.activeElement);
|
|
98
101
|
if (i.length === 0) return;
|
|
99
102
|
let a = i[0], o = i[i.length - 1], s = document.activeElement, c = s instanceof Node && n.contains(s);
|
|
100
103
|
e.shiftKey && (!c || s === a) ? (e.preventDefault(), o.focus()) : !e.shiftKey && (!c || s === o) && (e.preventDefault(), a.focus());
|
|
@@ -108,14 +111,15 @@ function Be(e, t, n) {
|
|
|
108
111
|
}
|
|
109
112
|
//#endregion
|
|
110
113
|
//#region src/components/features/table/table.strings.ts
|
|
111
|
-
var
|
|
114
|
+
var Ge = (e) => {
|
|
112
115
|
let t = e.replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim();
|
|
113
116
|
return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : "Column";
|
|
114
|
-
},
|
|
117
|
+
}, V = {
|
|
115
118
|
emptyState: { message: "No results found." },
|
|
116
119
|
actions: {
|
|
117
120
|
triggerLabel: "Actions",
|
|
118
|
-
srLabel: "Row actions menu"
|
|
121
|
+
srLabel: "Row actions menu",
|
|
122
|
+
menuLabel: "More actions"
|
|
119
123
|
},
|
|
120
124
|
filter: {
|
|
121
125
|
searchPlaceholder: "Filter...",
|
|
@@ -124,7 +128,7 @@ var Ve = (e) => {
|
|
|
124
128
|
columnVisibility: {
|
|
125
129
|
title: "Toggle columns",
|
|
126
130
|
triggerLabel: "Columns",
|
|
127
|
-
formatLabel: (e, t) => t && t.trim().length > 0 ? t :
|
|
131
|
+
formatLabel: (e, t) => t && t.trim().length > 0 ? t : Ge(e)
|
|
128
132
|
},
|
|
129
133
|
toolbar: {
|
|
130
134
|
scrollLeft: "Scroll left",
|
|
@@ -157,22 +161,25 @@ var Ve = (e) => {
|
|
|
157
161
|
scrollRegion: "Table scroll area",
|
|
158
162
|
fullscreenRegion: "Table, full screen"
|
|
159
163
|
}
|
|
160
|
-
},
|
|
164
|
+
}, H = (e, t) => ({
|
|
161
165
|
...e,
|
|
162
166
|
...t
|
|
163
|
-
}),
|
|
164
|
-
emptyState:
|
|
165
|
-
actions:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
}), Ke = (e) => e ? {
|
|
168
|
+
emptyState: H(V.emptyState, e.emptyState),
|
|
169
|
+
actions: {
|
|
170
|
+
...H(V.actions, e.actions),
|
|
171
|
+
...e.actions?.triggerLabel !== void 0 && e.actions.menuLabel === void 0 ? { menuLabel: e.actions.triggerLabel } : {}
|
|
172
|
+
},
|
|
173
|
+
filter: H(V.filter, e.filter),
|
|
174
|
+
columnVisibility: H(V.columnVisibility, e.columnVisibility),
|
|
175
|
+
toolbar: H(V.toolbar, e.toolbar),
|
|
176
|
+
pagination: H(V.pagination, e.pagination),
|
|
177
|
+
selection: H(V.selection, e.selection),
|
|
178
|
+
accessibility: H(V.accessibility, e.accessibility)
|
|
179
|
+
} : V;
|
|
173
180
|
//#endregion
|
|
174
181
|
//#region src/components/features/table/pagination.tsx
|
|
175
|
-
function
|
|
182
|
+
function qe(e, t) {
|
|
176
183
|
if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
|
|
177
184
|
let n = [1];
|
|
178
185
|
e > 3 && n.push("ellipsis");
|
|
@@ -180,38 +187,38 @@ function Ue(e, t) {
|
|
|
180
187
|
for (let e = r; e <= i; e++) n.push(e);
|
|
181
188
|
return e < t - 2 && n.push("ellipsis"), n.push(t), n;
|
|
182
189
|
}
|
|
183
|
-
function
|
|
190
|
+
function Je(e, t, n) {
|
|
184
191
|
let r = new URLSearchParams();
|
|
185
192
|
return r.set(n, String(t)), `${e}?${r.toString()}`;
|
|
186
193
|
}
|
|
187
|
-
function
|
|
194
|
+
function Ye({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i }) {
|
|
188
195
|
let a = {
|
|
189
|
-
...
|
|
196
|
+
...V.pagination,
|
|
190
197
|
...r
|
|
191
198
|
}, o = {
|
|
192
199
|
navigationLabel: a.ariaLabel,
|
|
193
200
|
previous: a.previous,
|
|
194
201
|
next: a.next,
|
|
195
|
-
previousLabel: a.previousLabel ??
|
|
196
|
-
nextLabel: a.nextLabel ??
|
|
197
|
-
morePages: a.morePages ??
|
|
202
|
+
previousLabel: a.previousLabel ?? ue.previousLabel,
|
|
203
|
+
nextLabel: a.nextLabel ?? ue.nextLabel,
|
|
204
|
+
morePages: a.morePages ?? ue.morePages
|
|
198
205
|
}, s = i ?? "page", c = (e.current_page - 1) * e.per_page + 1, l = Math.min(e.current_page * e.per_page, e.total), u = M((n, r) => {
|
|
199
206
|
r && t?.(n, r, e.path || "");
|
|
200
|
-
}, [t, e.path]), d = e.prev_page_url !== null, f = e.next_page_url !== null,
|
|
207
|
+
}, [t, e.path]), d = e.prev_page_url !== null, f = e.next_page_url !== null, p = qe(e.current_page, e.last_page);
|
|
201
208
|
return /* @__PURE__ */ R("div", {
|
|
202
209
|
className: n("pagination--component", "flex flex-col items-start gap-space-md px-surface py-row-y-lg sm:flex-row sm:items-center sm:justify-between sm:gap-0"),
|
|
203
|
-
children: [/* @__PURE__ */ R(
|
|
210
|
+
children: [/* @__PURE__ */ R(h, {
|
|
204
211
|
size: "xs",
|
|
205
212
|
className: "tabular-nums tracking-tight",
|
|
206
213
|
children: [
|
|
207
|
-
/* @__PURE__ */ L(
|
|
214
|
+
/* @__PURE__ */ L(ee, {
|
|
208
215
|
value: c,
|
|
209
216
|
size: "xs",
|
|
210
217
|
weight: "medium",
|
|
211
218
|
align: "left"
|
|
212
219
|
}),
|
|
213
220
|
"–",
|
|
214
|
-
/* @__PURE__ */ L(
|
|
221
|
+
/* @__PURE__ */ L(ee, {
|
|
215
222
|
value: l,
|
|
216
223
|
size: "xs",
|
|
217
224
|
weight: "medium",
|
|
@@ -220,7 +227,7 @@ function Ge({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
|
|
|
220
227
|
" ",
|
|
221
228
|
a.of,
|
|
222
229
|
" ",
|
|
223
|
-
/* @__PURE__ */ L(
|
|
230
|
+
/* @__PURE__ */ L(ee, {
|
|
224
231
|
value: e.total,
|
|
225
232
|
size: "xs",
|
|
226
233
|
weight: "medium",
|
|
@@ -229,13 +236,13 @@ function Ge({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
|
|
|
229
236
|
" ",
|
|
230
237
|
a.entries
|
|
231
238
|
]
|
|
232
|
-
}), /* @__PURE__ */ L(
|
|
239
|
+
}), /* @__PURE__ */ L(he, {
|
|
233
240
|
strings: o,
|
|
234
241
|
className: "mx-0 w-full justify-start sm:w-auto sm:justify-center",
|
|
235
|
-
children: /* @__PURE__ */ R(
|
|
242
|
+
children: /* @__PURE__ */ R(ge, {
|
|
236
243
|
className: "gap-0 sm:gap-space-2xs",
|
|
237
244
|
children: [
|
|
238
|
-
/* @__PURE__ */ L(
|
|
245
|
+
/* @__PURE__ */ L(me, { children: /* @__PURE__ */ L(pe, {
|
|
239
246
|
text: a.previous,
|
|
240
247
|
href: "#",
|
|
241
248
|
onClick: (t) => {
|
|
@@ -244,19 +251,19 @@ function Ge({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
|
|
|
244
251
|
"aria-disabled": !d,
|
|
245
252
|
className: `h-action-sm text-pxs ${d ? "" : "pointer-events-none opacity-40"}`
|
|
246
253
|
}) }),
|
|
247
|
-
|
|
254
|
+
p.map((t, n) => {
|
|
248
255
|
let r = t === "ellipsis", i = r ? `ellipsis-${e.current_page}-${n}` : `page-${t}`;
|
|
249
|
-
return /* @__PURE__ */ L(
|
|
256
|
+
return /* @__PURE__ */ L(me, { children: r ? /* @__PURE__ */ L(fe, { className: "size-action-sm" }) : /* @__PURE__ */ L(de, {
|
|
250
257
|
href: "#",
|
|
251
258
|
active: t === e.current_page,
|
|
252
259
|
onClick: (n) => {
|
|
253
|
-
n.preventDefault(), u(t,
|
|
260
|
+
n.preventDefault(), u(t, Je(e.path, t, s));
|
|
254
261
|
},
|
|
255
262
|
className: "size-action-sm text-pxs",
|
|
256
263
|
children: t
|
|
257
264
|
}) }, i);
|
|
258
265
|
}),
|
|
259
|
-
/* @__PURE__ */ L(
|
|
266
|
+
/* @__PURE__ */ L(me, { children: /* @__PURE__ */ L(le, {
|
|
260
267
|
text: a.next,
|
|
261
268
|
href: "#",
|
|
262
269
|
onClick: (t) => {
|
|
@@ -270,11 +277,11 @@ function Ge({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
|
|
|
270
277
|
})]
|
|
271
278
|
});
|
|
272
279
|
}
|
|
273
|
-
|
|
280
|
+
Ye.displayName = "Pagination";
|
|
274
281
|
//#endregion
|
|
275
282
|
//#region src/components/features/table/table-actions.tsx
|
|
276
|
-
function
|
|
277
|
-
let { row: t, actions: r, menuLabel: i, displayMode: a = "menu", responsiveBreakpoint: o = 1040, strings: s } = e,
|
|
283
|
+
function Xe(e) {
|
|
284
|
+
let { row: t, actions: r, menuLabel: i, displayMode: a = "menu", responsiveBreakpoint: o = 1040, strings: s } = e, c = s ?? V, d = i ?? c.actions.menuLabel ?? c.actions.triggerLabel, f = P(() => {
|
|
278
285
|
let e = typeof r == "function" ? r(t) : r;
|
|
279
286
|
return Array.isArray(e) ? e : [];
|
|
280
287
|
}, [r, t]), p = P(() => {
|
|
@@ -315,100 +322,98 @@ function Ke(e) {
|
|
|
315
322
|
buttonStyle: e.buttonStyle,
|
|
316
323
|
onClick: () => e.onClick?.(t)
|
|
317
324
|
}));
|
|
318
|
-
return b === "inline" ? /* @__PURE__ */ L(
|
|
325
|
+
return b === "inline" ? /* @__PURE__ */ L(u, {
|
|
319
326
|
actions: x,
|
|
320
327
|
className: n("table-actions--component")
|
|
321
|
-
}) : /* @__PURE__ */ L(
|
|
328
|
+
}) : /* @__PURE__ */ L(l, {
|
|
322
329
|
actions: x,
|
|
323
|
-
|
|
324
|
-
icon: Ae,
|
|
325
|
-
srText: d || u.actions.srLabel,
|
|
330
|
+
srText: d || c.actions.srLabel,
|
|
326
331
|
closeOnSelect: !0,
|
|
327
332
|
align: "end",
|
|
328
333
|
density: "table"
|
|
329
334
|
});
|
|
330
335
|
}
|
|
331
|
-
|
|
336
|
+
Xe.displayName = "DataTableActions";
|
|
332
337
|
//#endregion
|
|
333
338
|
//#region src/components/features/table/table-helpers.tsx
|
|
334
|
-
var
|
|
339
|
+
var U = (e, t, n) => {
|
|
335
340
|
typeof e == "function" ? t((t) => {
|
|
336
341
|
let r = e(t);
|
|
337
342
|
return n && n(r), r;
|
|
338
343
|
}) : (t(e), n && n(e));
|
|
339
|
-
},
|
|
344
|
+
}, Ze = (e, t, n) => {
|
|
340
345
|
typeof e == "function" ? t((t) => {
|
|
341
346
|
let r = e(t);
|
|
342
347
|
return n && n(r), r;
|
|
343
348
|
}) : (t(e), n && n(e));
|
|
344
|
-
},
|
|
349
|
+
}, W = (e, t, n) => {
|
|
345
350
|
typeof e == "function" ? t((t) => {
|
|
346
351
|
let r = e(t);
|
|
347
352
|
return n && n(r), r;
|
|
348
353
|
}) : (t(e), n && n(e));
|
|
349
|
-
},
|
|
354
|
+
}, Qe = (e, t, n, r) => {
|
|
350
355
|
let i = "";
|
|
351
|
-
return r && (i += "bg-
|
|
352
|
-
},
|
|
356
|
+
return r && (i += "bg-muted "), typeof n == "function" ? i += n(e, t) + " " : n && (i += n + " "), i.trim();
|
|
357
|
+
}, $e = (e, t, n, r, i) => {
|
|
353
358
|
let a = "";
|
|
354
359
|
return typeof n == "string" ? a = n : n && (a = n(e, t)), r && i ? `${a} sticky start-0 z-10 bg-card shadow-[1px_0_0_0_var(--border)] rtl:shadow-[-1px_0_0_0_var(--border)]` : a;
|
|
355
|
-
},
|
|
360
|
+
}, et = (e) => e.getSelectedRowModel().rows.map((e) => e.original), tt = (e, t = V) => /* @__PURE__ */ L("div", {
|
|
356
361
|
className: "px-space-sm",
|
|
357
|
-
children: /* @__PURE__ */ L(
|
|
358
|
-
className: "size-icon cursor-pointer disabled:cursor-not-allowed disabled:opacity-
|
|
362
|
+
children: /* @__PURE__ */ L(se, {
|
|
363
|
+
className: "size-icon cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
|
|
359
364
|
checked: e.getIsSelected(),
|
|
360
365
|
disabled: !e.getCanSelect(),
|
|
361
366
|
onCheckedChange: (t) => e.toggleSelected(t === !0),
|
|
362
367
|
onClick: (e) => e.stopPropagation(),
|
|
363
368
|
"aria-label": t.selection.row(e.index)
|
|
364
369
|
})
|
|
365
|
-
}),
|
|
370
|
+
}), nt = (e, t = V) => /* @__PURE__ */ L("div", {
|
|
366
371
|
className: "px-space-sm",
|
|
367
|
-
children: /* @__PURE__ */ L(
|
|
372
|
+
children: /* @__PURE__ */ L(se, {
|
|
368
373
|
className: "size-icon cursor-pointer",
|
|
369
374
|
checked: e.getIsAllPageRowsSelected(),
|
|
370
375
|
indeterminate: e.getIsSomePageRowsSelected() && !e.getIsAllPageRowsSelected(),
|
|
371
376
|
onCheckedChange: (t) => e.toggleAllPageRowsSelected(t === !0),
|
|
372
377
|
"aria-label": t.selection.selectAll
|
|
373
378
|
})
|
|
374
|
-
}),
|
|
379
|
+
}), rt = (e, t = V) => [{
|
|
375
380
|
id: "selection",
|
|
376
|
-
header: ({ table: e }) =>
|
|
377
|
-
cell: ({ row: e }) =>
|
|
381
|
+
header: ({ table: e }) => nt(e, t),
|
|
382
|
+
cell: ({ row: e }) => tt(e, t),
|
|
378
383
|
enableSorting: !1,
|
|
379
384
|
enableResizing: !1,
|
|
380
385
|
size: 40
|
|
381
386
|
}, ...e];
|
|
382
387
|
//#endregion
|
|
383
388
|
//#region src/components/features/table/table-body.tsx
|
|
384
|
-
function
|
|
385
|
-
let u = e.getRowModel().rows,
|
|
389
|
+
function it({ table: e, onRowClick: t, emptyStateMessage: r, emptyStateAction: i, cellClassName: a = "", rowClassName: o = "", stickyFirstColumn: s = !1, striped: c = !1, strings: l }) {
|
|
390
|
+
let u = e.getRowModel().rows, f = r ?? l?.emptyState.message ?? V.emptyState.message, p = (e) => {
|
|
386
391
|
t && t(e);
|
|
387
392
|
};
|
|
388
|
-
return u.length ? /* @__PURE__ */ L(
|
|
389
|
-
let i = e.getIsSelected(), l = e.getVisibleCells(), u =
|
|
390
|
-
t &&
|
|
391
|
-
},
|
|
393
|
+
return u.length ? /* @__PURE__ */ L(ve, { children: u.map((e, r) => {
|
|
394
|
+
let i = e.getIsSelected(), l = e.getVisibleCells(), u = Qe(e, r, o, i), f = () => {
|
|
395
|
+
t && p(e.original);
|
|
396
|
+
}, m = c && r % 2 != 0 ? d.tableStripe : "", h = t ? "cursor-pointer" : "", g = n(u, m, "transition-colors duration-150", `${d.tableRowHover} ${d.tableRowSelected}`, h, "border-b border-border/60 last:border-b-0");
|
|
392
397
|
return /* @__PURE__ */ L(A, {
|
|
393
398
|
"data-state": i ? "selected" : null,
|
|
394
|
-
className:
|
|
395
|
-
onClick:
|
|
396
|
-
children: l.map((t, r) => /* @__PURE__ */ L(
|
|
397
|
-
className: n(
|
|
398
|
-
children:
|
|
399
|
+
className: g,
|
|
400
|
+
onClick: f,
|
|
401
|
+
children: l.map((t, r) => /* @__PURE__ */ L(_e, {
|
|
402
|
+
className: n($e(t.column.id, e, a, s, r === 0), t.column.columnDef.meta?.align === "end" && "text-right", t.column.columnDef.meta?.align === "center" && "text-center"),
|
|
403
|
+
children: Fe(t.column.columnDef.cell, t.getContext())
|
|
399
404
|
}, t.id))
|
|
400
405
|
}, e.id);
|
|
401
|
-
}) }) : /* @__PURE__ */ L(
|
|
406
|
+
}) }) : /* @__PURE__ */ L(ve, {
|
|
402
407
|
className: "table-body--component",
|
|
403
408
|
children: /* @__PURE__ */ L(A, {
|
|
404
409
|
className: "hover:bg-transparent",
|
|
405
|
-
children: /* @__PURE__ */ L(
|
|
410
|
+
children: /* @__PURE__ */ L(_e, {
|
|
406
411
|
className: "p-0! text-center whitespace-normal",
|
|
407
412
|
colSpan: e.getAllColumns().length,
|
|
408
|
-
children: /* @__PURE__ */ L(
|
|
409
|
-
title:
|
|
413
|
+
children: /* @__PURE__ */ L(Se, {
|
|
414
|
+
title: f,
|
|
410
415
|
description: !1,
|
|
411
|
-
media: /* @__PURE__ */ L(
|
|
416
|
+
media: /* @__PURE__ */ L(B, { className: "size-icon" }),
|
|
412
417
|
mediaVariant: "icon-soft",
|
|
413
418
|
actions: i,
|
|
414
419
|
className: "data-table--empty-state w-[100cqw] max-w-full"
|
|
@@ -417,81 +422,81 @@ function $e({ table: e, onRowClick: t, emptyStateMessage: r, emptyStateAction: i
|
|
|
417
422
|
})
|
|
418
423
|
});
|
|
419
424
|
}
|
|
420
|
-
|
|
425
|
+
it.displayName = "DataTableBody";
|
|
421
426
|
//#endregion
|
|
422
427
|
//#region src/components/features/table/table-header.tsx
|
|
423
|
-
function
|
|
424
|
-
let
|
|
425
|
-
return /* @__PURE__ */ R(
|
|
426
|
-
className: n(
|
|
428
|
+
function at({ table: e, enableResizing: t = !1, stickyHeader: a = !1, headerClassName: o = "", cellClassName: c = "", stickyFirstColumn: l = !1, columnGroups: u, headerTransparent: f = !1 }) {
|
|
429
|
+
let p = e.getHeaderGroups(), m = a ? n("shadow-[0_1px_0_0_var(--border)]", f ? "bg-background" : "bg-muted") : "", h = (e) => u ? u.find((t) => t.columns.includes(e)) : null;
|
|
430
|
+
return /* @__PURE__ */ R(be, {
|
|
431
|
+
className: n(a && "sticky top-0 z-20", o),
|
|
427
432
|
children: [(() => {
|
|
428
|
-
if (!
|
|
429
|
-
let e =
|
|
433
|
+
if (!u || u.length === 0 || p.length === 0) return null;
|
|
434
|
+
let e = p[0].headers, t = null, r = 0, a = [];
|
|
430
435
|
return e.forEach((o, s) => {
|
|
431
|
-
let c =
|
|
432
|
-
c === t ? r++ : (t !== null && r > 0 && a.push(/* @__PURE__ */ L(
|
|
436
|
+
let c = h(o.id)?.header || "";
|
|
437
|
+
c === t ? r++ : (t !== null && r > 0 && a.push(/* @__PURE__ */ L(ye, {
|
|
433
438
|
colSpan: r,
|
|
434
|
-
className: n("h-12 border-r border-border/60 bg-muted/
|
|
439
|
+
className: n("h-12 border-r border-border/60 bg-muted/50 px-surface py-row-y-sm text-center text-muted-foreground last:border-r-0", m),
|
|
435
440
|
children: /* @__PURE__ */ L(i, { children: t || "" })
|
|
436
|
-
}, `group-${t}-${a.length}`)), t = c, r = 1), s === e.length - 1 && r > 0 && a.push(/* @__PURE__ */ L(
|
|
441
|
+
}, `group-${t}-${a.length}`)), t = c, r = 1), s === e.length - 1 && r > 0 && a.push(/* @__PURE__ */ L(ye, {
|
|
437
442
|
colSpan: r,
|
|
438
|
-
className: n("h-12 whitespace-nowrap border-r border-border/60 bg-muted/
|
|
443
|
+
className: n("h-12 whitespace-nowrap border-r border-border/60 bg-muted/50 px-surface py-row-y-sm text-center text-muted-foreground last:border-r-0", m),
|
|
439
444
|
children: /* @__PURE__ */ L(i, { children: t || "" })
|
|
440
445
|
}, `group-${t}-${a.length}`));
|
|
441
446
|
}), /* @__PURE__ */ L(A, {
|
|
442
447
|
className: n("table-header--component", "border-b border-border"),
|
|
443
448
|
children: a
|
|
444
449
|
});
|
|
445
|
-
})(),
|
|
446
|
-
className: n("border-b border-border/
|
|
447
|
-
children: i.headers.map((i,
|
|
448
|
-
let
|
|
450
|
+
})(), p.map((i) => /* @__PURE__ */ L(A, {
|
|
451
|
+
className: n("border-b border-border/60", f ? "bg-transparent hover:bg-transparent" : `${d.tableHead} ${d.tableRowHover}`),
|
|
452
|
+
children: i.headers.map((i, o) => {
|
|
453
|
+
let u = n($e(i.id, null, c, l, o === 0), "h-12", "text-muted-foreground font-medium whitespace-nowrap", i.column.columnDef.meta?.align === "end" && "text-right", i.column.columnDef.meta?.align === "center" && "text-center", m, a && l && o === 0 && "z-30", !a && "bg-transparent", t && !(l && o === 0) && "relative"), d = t ? { width: i.getSize() } : void 0, f = i.getResizeHandler(), p = i.getLeafHeaders().filter((e) => e.subHeaders.length === 0), h = p.reduce((e, t) => e + (t.column.columnDef.minSize ?? 20), 0), g = Math.min(2 ** 53 - 1, p.reduce((e, t) => e + (t.column.columnDef.maxSize ?? 2 ** 53 - 1), 0)), _ = (t) => {
|
|
449
454
|
e.setOptions((e) => ({
|
|
450
455
|
...e,
|
|
451
456
|
columnResizeDirection: getComputedStyle(t.currentTarget).direction === "rtl" ? "rtl" : "ltr"
|
|
452
|
-
})),
|
|
453
|
-
},
|
|
457
|
+
})), f(t);
|
|
458
|
+
}, v = i.column.getIsResizing(), y = (() => {
|
|
454
459
|
let e = i.column.columnDef.header;
|
|
455
460
|
return typeof e == "string" ? e : typeof i.id == "string" ? i.id : "column";
|
|
456
461
|
})();
|
|
457
|
-
return /* @__PURE__ */ L(
|
|
462
|
+
return /* @__PURE__ */ L(ye, {
|
|
458
463
|
colSpan: i.colSpan,
|
|
459
|
-
className:
|
|
460
|
-
style:
|
|
464
|
+
className: u,
|
|
465
|
+
style: d,
|
|
461
466
|
children: i.isPlaceholder ? null : /* @__PURE__ */ R("div", {
|
|
462
467
|
className: n(t && i.column.getCanResize() && "pe-action-sm"),
|
|
463
468
|
children: [(() => {
|
|
464
|
-
let e = i.column.getCanSort(), t = i.column.getIsSorted(),
|
|
465
|
-
return e ? /* @__PURE__ */ R(
|
|
469
|
+
let e = i.column.getCanSort(), t = i.column.getIsSorted(), a = Fe(i.column.columnDef.header, i.getContext()), o = t === "asc" ? z : t === "desc" ? Ee : Ae;
|
|
470
|
+
return e ? /* @__PURE__ */ R(r, {
|
|
466
471
|
type: "button",
|
|
467
472
|
tone: "secondary",
|
|
468
473
|
buttonStyle: "ghost",
|
|
469
474
|
size: "sm",
|
|
470
475
|
onClick: i.column.getToggleSortingHandler(),
|
|
471
|
-
className: n("group -ml-space-sm inline-flex select-none items-center gap-space-sm rounded-inner px-space-sm", "hover:text-foreground transition-colors",
|
|
472
|
-
"aria-label": `Sort ${
|
|
473
|
-
children: [
|
|
476
|
+
className: n("group -ml-space-sm inline-flex select-none items-center gap-space-sm rounded-inner px-space-sm", "hover:text-foreground transition-colors", `focus-visible:outline-none ${s.edge}`, t && "text-foreground"),
|
|
477
|
+
"aria-label": `Sort ${y}`,
|
|
478
|
+
children: [a, /* @__PURE__ */ L(o, {
|
|
474
479
|
className: n("size-icon-sm shrink-0 transition-opacity", t ? "opacity-100" : "opacity-30 group-hover:opacity-70"),
|
|
475
480
|
"aria-hidden": "true"
|
|
476
481
|
})]
|
|
477
482
|
}) : /* @__PURE__ */ L("div", {
|
|
478
483
|
className: n("flex items-center", i.column.columnDef.meta?.align === "end" && "justify-end", i.column.columnDef.meta?.align === "center" && "justify-center"),
|
|
479
|
-
children:
|
|
484
|
+
children: a
|
|
480
485
|
});
|
|
481
486
|
})(), !!t && i.column.getCanResize() && /* @__PURE__ */ L("div", {
|
|
482
487
|
role: "separator",
|
|
483
488
|
tabIndex: 0,
|
|
484
|
-
className: n("absolute inset-y-0 end-0 w-action-sm cursor-col-resize select-none touch-none bg-transparent after:absolute after:inset-y-0 after:end-0 after:w-px after:bg-foreground
|
|
485
|
-
"aria-label": `Resize ${
|
|
489
|
+
className: n("absolute inset-y-0 end-0 w-action-sm cursor-col-resize select-none touch-none bg-transparent after:absolute after:inset-y-0 after:end-0 after:w-px after:bg-muted-foreground opacity-0 hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:after:w-1 focus-visible:after:bg-ring", v && "after:bg-primary-accent!"),
|
|
490
|
+
"aria-label": `Resize ${y}`,
|
|
486
491
|
"aria-orientation": "vertical",
|
|
487
492
|
"aria-valuenow": i.getSize(),
|
|
488
|
-
"aria-valuemin":
|
|
489
|
-
"aria-valuemax":
|
|
493
|
+
"aria-valuemin": h,
|
|
494
|
+
"aria-valuemax": g,
|
|
490
495
|
onKeyDown: (t) => {
|
|
491
496
|
let n = getComputedStyle(t.currentTarget).direction === "rtl", r = (t.key === "ArrowRight" ? 10 : t.key === "ArrowLeft" ? -10 : 0) * (n ? -1 : 1);
|
|
492
|
-
if (!r && t.key !== "Home" && t.key !== "End" || t.key === "End" &&
|
|
497
|
+
if (!r && t.key !== "Home" && t.key !== "End" || t.key === "End" && g === 2 ** 53 - 1) return;
|
|
493
498
|
t.preventDefault(), t.stopPropagation();
|
|
494
|
-
let a = i.getSize(), o = Math.max(
|
|
499
|
+
let a = i.getSize(), o = Math.max(h, Math.min(g, a + r)) / Math.max(1, a);
|
|
495
500
|
e.setColumnSizing((e) => ({
|
|
496
501
|
...e,
|
|
497
502
|
...Object.fromEntries(p.map((e) => {
|
|
@@ -500,8 +505,8 @@ function et({ table: e, enableResizing: t = !1, stickyHeader: r = !1, headerClas
|
|
|
500
505
|
}))
|
|
501
506
|
}));
|
|
502
507
|
},
|
|
503
|
-
onMouseDown:
|
|
504
|
-
onTouchStart:
|
|
508
|
+
onMouseDown: _,
|
|
509
|
+
onTouchStart: _
|
|
505
510
|
})]
|
|
506
511
|
})
|
|
507
512
|
}, i.id);
|
|
@@ -509,13 +514,13 @@ function et({ table: e, enableResizing: t = !1, stickyHeader: r = !1, headerClas
|
|
|
509
514
|
}, i.id))]
|
|
510
515
|
});
|
|
511
516
|
}
|
|
512
|
-
|
|
517
|
+
at.displayName = "DataTableHeader";
|
|
513
518
|
//#endregion
|
|
514
519
|
//#region src/components/features/table/column-visibility-toggle.tsx
|
|
515
|
-
function
|
|
520
|
+
function ot({ table: e, className: t, align: r = "end", labelVisibility: i = "hidden", strings: a = V }) {
|
|
516
521
|
let o = e.getAllColumns().filter((e) => e.getCanHide());
|
|
517
522
|
if (o.length === 0) return null;
|
|
518
|
-
let s = i !== "hidden",
|
|
523
|
+
let s = i !== "hidden", c = o.map((e) => {
|
|
519
524
|
let t = e.columnDef.header, n = a.columnVisibility.formatLabel(e.id, typeof t == "string" ? t : void 0);
|
|
520
525
|
return {
|
|
521
526
|
id: e.id,
|
|
@@ -527,9 +532,9 @@ function tt({ table: e, className: t, align: r = "end", labelVisibility: i = "hi
|
|
|
527
532
|
className: "capitalize"
|
|
528
533
|
};
|
|
529
534
|
});
|
|
530
|
-
return /* @__PURE__ */ L(
|
|
531
|
-
actions:
|
|
532
|
-
icon:
|
|
535
|
+
return /* @__PURE__ */ L(l, {
|
|
536
|
+
actions: c,
|
|
537
|
+
icon: Pe,
|
|
533
538
|
label: a.columnVisibility.triggerLabel,
|
|
534
539
|
srText: a.columnVisibility.triggerLabel,
|
|
535
540
|
align: r,
|
|
@@ -547,13 +552,13 @@ function tt({ table: e, className: t, align: r = "end", labelVisibility: i = "hi
|
|
|
547
552
|
preserveOrder: !0
|
|
548
553
|
});
|
|
549
554
|
}
|
|
550
|
-
|
|
555
|
+
ot.displayName = "ColumnVisibilityToggle";
|
|
551
556
|
//#endregion
|
|
552
557
|
//#region src/components/features/table/partials/fullscreen-toggle.tsx
|
|
553
|
-
var
|
|
554
|
-
function
|
|
555
|
-
let s = e ?
|
|
556
|
-
return /* @__PURE__ */ L(
|
|
558
|
+
var st = "text-muted-foreground hover:text-foreground disabled:pointer-events-none disabled:opacity-50";
|
|
559
|
+
function ct({ fullscreen: e, onFullscreenChange: t, enterLabel: i = "Enter full screen", exitLabel: a = "Exit full screen", className: o }) {
|
|
560
|
+
let s = e ? a : i, c = e ? Ne : Me;
|
|
561
|
+
return /* @__PURE__ */ L(r, {
|
|
557
562
|
type: "button",
|
|
558
563
|
tone: "secondary",
|
|
559
564
|
buttonStyle: "ghost",
|
|
@@ -562,34 +567,34 @@ function rt({ fullscreen: e, onFullscreenChange: t, enterLabel: r = "Enter full
|
|
|
562
567
|
"aria-label": s,
|
|
563
568
|
"aria-pressed": e,
|
|
564
569
|
onClick: () => t(!e),
|
|
565
|
-
className: n("fullscreen-toggle--component",
|
|
570
|
+
className: n("fullscreen-toggle--component", st, o),
|
|
566
571
|
children: /* @__PURE__ */ L(c, { className: "size-icon-sm" })
|
|
567
572
|
});
|
|
568
573
|
}
|
|
569
|
-
|
|
574
|
+
ct.displayName = "FullscreenToggle";
|
|
570
575
|
//#endregion
|
|
571
576
|
//#region src/components/features/table/table-toolbar.tsx
|
|
572
|
-
var
|
|
573
|
-
function
|
|
574
|
-
return /* @__PURE__ */ L(
|
|
577
|
+
var lt = 300, ut = "text-muted-foreground transition-colors duration-150 hover:text-foreground disabled:pointer-events-none disabled:opacity-50";
|
|
578
|
+
function dt({ label: e, onClick: t, disabled: i, className: a, children: o }) {
|
|
579
|
+
return /* @__PURE__ */ L(r, {
|
|
575
580
|
type: "button",
|
|
576
581
|
tone: "secondary",
|
|
577
582
|
buttonStyle: "ghost",
|
|
578
583
|
size: "sm",
|
|
579
584
|
iconOnly: !0,
|
|
580
585
|
"aria-label": e,
|
|
581
|
-
className: n("table-toolbar--component",
|
|
586
|
+
className: n("table-toolbar--component", ut, k.joinedItem, a),
|
|
582
587
|
onClick: t,
|
|
583
|
-
disabled:
|
|
584
|
-
children:
|
|
588
|
+
disabled: i,
|
|
589
|
+
children: o
|
|
585
590
|
});
|
|
586
591
|
}
|
|
587
|
-
function
|
|
592
|
+
function G(e) {
|
|
588
593
|
return e ? e.querySelector("[data-slot=\"table-container\"]") : null;
|
|
589
594
|
}
|
|
590
|
-
function
|
|
591
|
-
let { defaultScale: d } =
|
|
592
|
-
let e =
|
|
595
|
+
function ft({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, showFullscreenToggle: s = !1, enableColumnVisibility: c = !1, labelVisibility: l = "hidden", strings: u = V }) {
|
|
596
|
+
let { defaultScale: d } = e(), f = t(void 0, d), [p, m] = I(!1), [h, g] = I(!1), _ = F(0), v = F(null), y = M(() => {
|
|
597
|
+
let e = G(i.current);
|
|
593
598
|
if (!e) {
|
|
594
599
|
m(!1), g(!1);
|
|
595
600
|
return;
|
|
@@ -599,7 +604,7 @@ function st({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, s
|
|
|
599
604
|
}, [i]);
|
|
600
605
|
N(() => {
|
|
601
606
|
let e = window.setTimeout(() => {
|
|
602
|
-
let e =
|
|
607
|
+
let e = G(i.current);
|
|
603
608
|
if (!e || (y(), typeof ResizeObserver > "u")) return;
|
|
604
609
|
let t = () => {
|
|
605
610
|
cancelAnimationFrame(_.current), _.current = requestAnimationFrame(y);
|
|
@@ -619,84 +624,84 @@ function st({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, s
|
|
|
619
624
|
a
|
|
620
625
|
]);
|
|
621
626
|
let b = M(() => {
|
|
622
|
-
|
|
627
|
+
G(i.current)?.scrollBy({
|
|
623
628
|
left: -300,
|
|
624
629
|
behavior: "smooth"
|
|
625
630
|
});
|
|
626
631
|
}, [i]), x = M(() => {
|
|
627
|
-
|
|
628
|
-
left:
|
|
632
|
+
G(i.current)?.scrollBy({
|
|
633
|
+
left: lt,
|
|
629
634
|
behavior: "smooth"
|
|
630
635
|
});
|
|
631
636
|
}, [i]), S = c ? r.getAllColumns().filter((e) => e.getCanHide()) : [], C = p || h, w = S.length > 0, T = s;
|
|
632
637
|
return !C && !w && !T ? null : /* @__PURE__ */ R("div", {
|
|
633
|
-
className: n(
|
|
638
|
+
className: n(k.joinedFrame, ce[f], "bg-card"),
|
|
634
639
|
children: [
|
|
635
|
-
!!C && /* @__PURE__ */ R(
|
|
636
|
-
/* @__PURE__ */ L(
|
|
640
|
+
!!C && /* @__PURE__ */ R(Te, { children: [
|
|
641
|
+
/* @__PURE__ */ L(dt, {
|
|
637
642
|
label: u.toolbar.scrollLeft,
|
|
638
643
|
onClick: b,
|
|
639
644
|
disabled: !p,
|
|
640
|
-
className:
|
|
641
|
-
children: /* @__PURE__ */ L(
|
|
645
|
+
className: k.firstItem,
|
|
646
|
+
children: /* @__PURE__ */ L(Oe, { className: "size-icon-sm" })
|
|
642
647
|
}),
|
|
643
|
-
/* @__PURE__ */ L(
|
|
648
|
+
/* @__PURE__ */ L(dt, {
|
|
644
649
|
label: u.toolbar.scrollRight,
|
|
645
650
|
onClick: x,
|
|
646
651
|
disabled: !h,
|
|
647
|
-
children: /* @__PURE__ */ L(
|
|
652
|
+
children: /* @__PURE__ */ L(ke, { className: "size-icon-sm" })
|
|
648
653
|
}),
|
|
649
654
|
(w || T) && /* @__PURE__ */ L("div", { className: "h-4 w-px self-center bg-border" })
|
|
650
655
|
] }),
|
|
651
|
-
!!w && /* @__PURE__ */ R(
|
|
656
|
+
!!w && /* @__PURE__ */ R(Te, { children: [/* @__PURE__ */ L(ot, {
|
|
652
657
|
table: r,
|
|
653
658
|
strings: u,
|
|
654
659
|
labelVisibility: l,
|
|
655
|
-
className: n(
|
|
660
|
+
className: n(k.joinedItem, "border-0 shadow-none", !C && k.firstItem, !T && k.lastItem)
|
|
656
661
|
}), T && /* @__PURE__ */ L("div", { className: "h-4 w-px self-center bg-border" })] }),
|
|
657
|
-
T && /* @__PURE__ */ L(
|
|
662
|
+
T && /* @__PURE__ */ L(ct, {
|
|
658
663
|
fullscreen: a,
|
|
659
664
|
onFullscreenChange: o,
|
|
660
665
|
enterLabel: u.toolbar.enterFullscreen,
|
|
661
666
|
exitLabel: u.toolbar.exitFullscreen,
|
|
662
|
-
className: n(
|
|
667
|
+
className: n(k.joinedItem, k.lastItem, !C && !w && k.firstItem)
|
|
663
668
|
})
|
|
664
669
|
]
|
|
665
670
|
});
|
|
666
671
|
}
|
|
667
|
-
|
|
672
|
+
ft.displayName = "DataTableToolbar";
|
|
668
673
|
//#endregion
|
|
669
674
|
//#region src/components/features/table/data-table.tsx
|
|
670
|
-
var
|
|
671
|
-
function
|
|
672
|
-
return
|
|
675
|
+
var pt = Ce("sm");
|
|
676
|
+
function mt() {
|
|
677
|
+
return we(pt);
|
|
673
678
|
}
|
|
674
|
-
var
|
|
679
|
+
var ht = {
|
|
675
680
|
sm: "[&_th]:h-12 [&_th]:px-row-x [&_th]:py-row-y-lg [&_th]:text-sm [&_td]:px-row-x [&_td]:py-row-y-sm [&_td]:text-sm",
|
|
676
681
|
md: "[&_th]:h-12 [&_th]:px-row-x [&_th]:py-row-y-lg [&_th]:text-sm [&_td]:px-row-x [&_td]:py-row-y [&_td]:text-sm",
|
|
677
682
|
lg: "[&_th]:h-12 [&_th]:px-row-x [&_th]:py-row-y-lg [&_th]:text-sm [&_td]:px-row-x [&_td]:py-row-y-lg [&_td]:text-sm"
|
|
678
|
-
},
|
|
683
|
+
}, gt = {
|
|
679
684
|
sm: "sm",
|
|
680
685
|
md: "sm",
|
|
681
686
|
lg: "sm"
|
|
682
|
-
},
|
|
687
|
+
}, _t = (e) => {
|
|
683
688
|
if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
|
|
684
689
|
};
|
|
685
|
-
function
|
|
690
|
+
function vt(e, t) {
|
|
686
691
|
return e.map((e) => "columns" in e && e.columns ? {
|
|
687
692
|
...e,
|
|
688
|
-
columns:
|
|
693
|
+
columns: vt(e.columns, t)
|
|
689
694
|
} : (e.id ?? ("accessorKey" in e && typeof e.accessorKey == "string" ? e.accessorKey.replace(/\./g, "_") : void 0) ?? (typeof e.header == "string" ? e.header : void 0)) === t && e.filterFn === void 0 ? {
|
|
690
695
|
...e,
|
|
691
696
|
filterFn: "includesString"
|
|
692
697
|
} : e);
|
|
693
698
|
}
|
|
694
|
-
function
|
|
695
|
-
let { defaultScale:
|
|
696
|
-
let e =
|
|
697
|
-
if (!
|
|
699
|
+
function K({ size: r, surface: i = "card", headerTransparent: a = !0, columns: o, data: c, columnGroups: l, rowActions: u, rowActionsMenuLabel: d, rowActionsDisplayMode: f, rowActionsBreakpoint: p, enableSorting: m = !1, enableResizing: h = !1, enableFiltering: g = !1, filterColumn: _, filterPlaceholder: v, manualSorting: y = !1, enableColumnVisibility: b = !1, fullscreen: x, defaultFullscreen: S = !1, onFullscreenChange: C, showFullscreenToggle: w = !1, enableRowSelection: T = !1, enableMultiRowSelection: ee = !0, enableSubRowSelection: te = !1, pagination: E, pageQueryKey: ne, onPageChange: re, onSortingChange: D, onColumnFiltersChange: O, onRowClick: se, onRowSelectionChange: k, stickyHeader: ce = !1, stickyToolbar: le = !1, stickyFirstColumn: ue = !1, maxBodyHeight: de, fillAvailableHeight: fe = !1, emptyStateMessage: pe, emptyStateAction: me, className: he = "", rowClassName: ge = "", cellClassName: A = "", headerClassName: _e = "", wrapperClassName: ve = "", innerClassName: ye = "", tableContainerClassName: be = "", getRowId: Se, rowSelection: Ce, sorting: j, defaultSorting: we, columnVisibility: N, defaultColumnVisibility: Ee, initialState: z, onColumnVisibilityChange: De, strings: Oe, topbarContent: ke, topbarEnd: Ae, topbarClassName: je, toolbarLabelVisibility: Me = "hidden", footerContent: Ne, selectionToolbar: B, bulkActions: Pe, selectionToolbarClassName: Fe, selectionToolbarPlacement: Be = "floating", totalRowCount: Ve, storageKey: He }) {
|
|
700
|
+
let { defaultScale: Ue } = e(), Ge = t(r, Ue), V = P(() => Ke(Oe), [Oe]), H = n("bg-card", ge), qe = pe ?? V.emptyState.message, Je = ne ?? "page", U = _t(de), Ze = Array.isArray(o) && o.length === 2 && Array.isArray(o[1]) ? o[0] : o, W = P(() => He ? `dt.${He}.columns` : null, [He]), Qe = P(() => {
|
|
701
|
+
let e = Ee ?? z?.columnVisibility ?? {};
|
|
702
|
+
if (!W || typeof window > "u") return e;
|
|
698
703
|
try {
|
|
699
|
-
let t = window.localStorage.getItem(
|
|
704
|
+
let t = window.localStorage.getItem(W);
|
|
700
705
|
return {
|
|
701
706
|
...t ? JSON.parse(t) : {},
|
|
702
707
|
...e
|
|
@@ -705,54 +710,59 @@ function Y({ size: i, surface: a = "card", headerTransparent: s = !0, columns: c
|
|
|
705
710
|
return e;
|
|
706
711
|
}
|
|
707
712
|
}, [
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
]), [
|
|
712
|
-
let
|
|
713
|
-
|
|
714
|
-
}, [
|
|
715
|
-
|
|
716
|
-
|
|
713
|
+
Ee,
|
|
714
|
+
W,
|
|
715
|
+
z?.columnVisibility
|
|
716
|
+
]), [$e, et] = I(we ?? z?.sorting ?? []), [tt, nt] = I(z?.columnFilters ?? []), [ot, st] = I(Qe), [ct, lt] = I(z?.rowSelection || {}), [ut, dt] = I(S), G = j ?? $e, mt = N ?? ot, K = Ce ?? ct, q = x ?? ut, J = F(null), yt = F(null), bt = P(() => ({ get current() {
|
|
717
|
+
let e = yt.current;
|
|
718
|
+
return e?.isConnected ? e : J.current?.querySelector("thead [role=\"checkbox\"]") ?? null;
|
|
719
|
+
} }), []), xt = M((e) => {
|
|
720
|
+
e.target instanceof HTMLElement && (yt.current = e.target);
|
|
721
|
+
}, []), St = M((e) => {
|
|
722
|
+
let t = typeof e == "function" ? e(tt) : e;
|
|
723
|
+
nt(t), O?.(t);
|
|
724
|
+
}, [tt, O]), Ct = M((e) => {
|
|
725
|
+
let t = typeof e == "function" ? e(G) : e;
|
|
726
|
+
j === void 0 && et(t), D?.(t);
|
|
717
727
|
}, [
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
]),
|
|
722
|
-
let t = typeof e == "function" ? e(
|
|
723
|
-
if (
|
|
724
|
-
window.localStorage.setItem(
|
|
728
|
+
j,
|
|
729
|
+
D,
|
|
730
|
+
G
|
|
731
|
+
]), wt = M((e) => {
|
|
732
|
+
let t = typeof e == "function" ? e(mt) : e;
|
|
733
|
+
if (N === void 0 && st(t), W && typeof window < "u") try {
|
|
734
|
+
window.localStorage.setItem(W, JSON.stringify(t));
|
|
725
735
|
} catch {}
|
|
726
|
-
|
|
727
|
-
}, [
|
|
728
|
-
lt,
|
|
729
|
-
z,
|
|
730
|
-
K,
|
|
731
|
-
Ee
|
|
732
|
-
]), _t = M((e) => {
|
|
733
|
-
let t = typeof e == "function" ? e(Y) : e;
|
|
734
|
-
N === void 0 && it(t), se?.(t);
|
|
736
|
+
De?.(t);
|
|
735
737
|
}, [
|
|
738
|
+
mt,
|
|
736
739
|
N,
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
]),
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
740
|
+
W,
|
|
741
|
+
De
|
|
742
|
+
]), Tt = M((e) => {
|
|
743
|
+
let t = typeof e == "function" ? e(K) : e;
|
|
744
|
+
Ce === void 0 && lt(t), k?.(t);
|
|
745
|
+
}, [
|
|
746
|
+
Ce,
|
|
747
|
+
k,
|
|
748
|
+
K
|
|
749
|
+
]), Et = F(null), Y = M((e) => {
|
|
750
|
+
x === void 0 && dt(e), C?.(e);
|
|
751
|
+
}, [x, C]);
|
|
752
|
+
We(q, Et, M(() => Y(!1), [Y]));
|
|
753
|
+
let Dt = M((e) => typeof d == "function" ? d(e) : d ?? V.actions.menuLabel, [d, V.actions.menuLabel]), Ot = P(() => {
|
|
754
|
+
let e = g && _ ? vt(Ze, _) : Ze, t = T ? rt(e, V) : e;
|
|
755
|
+
if (!u) return t;
|
|
746
756
|
let n = {
|
|
747
757
|
id: "actions",
|
|
748
|
-
header:
|
|
749
|
-
cell: ({ row: e }) => /* @__PURE__ */ L(
|
|
758
|
+
header: V.actions.triggerLabel,
|
|
759
|
+
cell: ({ row: e }) => /* @__PURE__ */ L(Xe, {
|
|
750
760
|
row: e.original,
|
|
751
|
-
actions:
|
|
752
|
-
menuLabel:
|
|
753
|
-
displayMode:
|
|
754
|
-
responsiveBreakpoint:
|
|
755
|
-
strings:
|
|
761
|
+
actions: u,
|
|
762
|
+
menuLabel: Dt(e.original),
|
|
763
|
+
displayMode: f,
|
|
764
|
+
responsiveBreakpoint: p,
|
|
765
|
+
strings: V
|
|
756
766
|
}),
|
|
757
767
|
enableSorting: !1,
|
|
758
768
|
enableHiding: !1,
|
|
@@ -760,171 +770,175 @@ function Y({ size: i, surface: a = "card", headerTransparent: s = !0, columns: c
|
|
|
760
770
|
};
|
|
761
771
|
return [...t, n];
|
|
762
772
|
}, [
|
|
763
|
-
|
|
773
|
+
Ze,
|
|
774
|
+
g,
|
|
764
775
|
_,
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
bt,
|
|
769
|
-
m,
|
|
776
|
+
T,
|
|
777
|
+
u,
|
|
778
|
+
Dt,
|
|
770
779
|
p,
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
780
|
+
f,
|
|
781
|
+
V
|
|
782
|
+
]), X = ze({
|
|
783
|
+
data: c,
|
|
784
|
+
columns: Ot,
|
|
775
785
|
state: {
|
|
776
|
-
sorting:
|
|
777
|
-
columnVisibility:
|
|
778
|
-
rowSelection:
|
|
779
|
-
columnFilters:
|
|
786
|
+
sorting: G,
|
|
787
|
+
columnVisibility: mt,
|
|
788
|
+
rowSelection: K,
|
|
789
|
+
columnFilters: tt
|
|
780
790
|
},
|
|
781
|
-
enableSorting:
|
|
782
|
-
enableColumnResizing:
|
|
791
|
+
enableSorting: m,
|
|
792
|
+
enableColumnResizing: h,
|
|
783
793
|
columnResizeMode: "onChange",
|
|
784
|
-
enableColumnFilters:
|
|
785
|
-
manualFiltering: !
|
|
786
|
-
manualSorting:
|
|
794
|
+
enableColumnFilters: g,
|
|
795
|
+
manualFiltering: !g,
|
|
796
|
+
manualSorting: y,
|
|
787
797
|
autoResetPageIndex: !1,
|
|
788
|
-
enableRowSelection:
|
|
798
|
+
enableRowSelection: T,
|
|
789
799
|
enableMultiRowSelection: ee,
|
|
790
|
-
enableSubRowSelection:
|
|
791
|
-
onSortingChange:
|
|
792
|
-
onRowSelectionChange:
|
|
793
|
-
onColumnVisibilityChange:
|
|
794
|
-
onColumnFiltersChange:
|
|
795
|
-
getCoreRowModel:
|
|
796
|
-
getFilteredRowModel:
|
|
797
|
-
getSortedRowModel:
|
|
798
|
-
getRowId:
|
|
799
|
-
}),
|
|
800
|
-
|
|
801
|
-
}, [
|
|
802
|
-
table:
|
|
803
|
-
selectedRows:
|
|
804
|
-
selectedRowCount:
|
|
805
|
-
totalRowCount:
|
|
806
|
-
rowSelection:
|
|
807
|
-
clearSelection:
|
|
808
|
-
},
|
|
809
|
-
|
|
810
|
-
"
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
className: "data-table-selection-toolbar--
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
800
|
+
enableSubRowSelection: te,
|
|
801
|
+
onSortingChange: m ? Ct : void 0,
|
|
802
|
+
onRowSelectionChange: T ? Tt : void 0,
|
|
803
|
+
onColumnVisibilityChange: wt,
|
|
804
|
+
onColumnFiltersChange: St,
|
|
805
|
+
getCoreRowModel: Ie(),
|
|
806
|
+
getFilteredRowModel: Le(),
|
|
807
|
+
getSortedRowModel: Re(),
|
|
808
|
+
getRowId: Se
|
|
809
|
+
}), Z = g && _ ? X.getAllLeafColumns().find((e) => e.id === _ && e.getCanFilter()) : void 0, kt = v ?? V.filter.searchPlaceholder, At = E && E.last_page > 1, jt = X.getSelectedRowModel().rows.map((e) => e.original), Q = jt.length, Mt = M(() => {
|
|
810
|
+
X.resetRowSelection();
|
|
811
|
+
}, [X]), $ = Ve ?? E?.total ?? c.length, Nt = {
|
|
812
|
+
table: X,
|
|
813
|
+
selectedRows: jt,
|
|
814
|
+
selectedRowCount: Q,
|
|
815
|
+
totalRowCount: $,
|
|
816
|
+
rowSelection: K,
|
|
817
|
+
clearSelection: Mt
|
|
818
|
+
}, Pt = (() => {
|
|
819
|
+
if (!T || B === null || B === !1) return null;
|
|
820
|
+
if (B !== void 0) return Q === 0 ? null : typeof B == "function" ? B(Nt) : B;
|
|
821
|
+
let e = Q === 0 ? null : typeof Pe == "function" ? Pe(Nt) : Pe, t = /* @__PURE__ */ L(ie, {
|
|
822
|
+
selectedCount: Q,
|
|
823
|
+
totalCount: $,
|
|
824
|
+
onClear: Mt,
|
|
825
|
+
placement: Be,
|
|
826
|
+
returnFocusRef: bt,
|
|
827
|
+
className: n("data-table-selection-toolbar--component", Fe),
|
|
828
|
+
strings: {
|
|
829
|
+
summary: (e, t) => V.selection.summary(e, t ?? $),
|
|
830
|
+
clear: V.selection.clear
|
|
831
|
+
},
|
|
832
|
+
children: e
|
|
833
|
+
});
|
|
834
|
+
return Be === "inline" ? /* @__PURE__ */ L("div", {
|
|
835
|
+
"data-slot": "data-table-selection-toolbar",
|
|
836
|
+
className: "data-table--selection-toolbar px-surface py-row-y empty:hidden",
|
|
837
|
+
children: t
|
|
838
|
+
}) : t;
|
|
839
|
+
})(), Ft = P(() => {
|
|
840
|
+
if (U) return { "--data-table-body-max-height": U };
|
|
841
|
+
}, [U]), It = q || fe || U !== void 0, Lt = pt.Provider, Rt = gt[Ge];
|
|
842
|
+
return /* @__PURE__ */ L(Lt, {
|
|
843
|
+
value: Rt,
|
|
831
844
|
children: /* @__PURE__ */ R("div", {
|
|
832
|
-
ref:
|
|
833
|
-
role:
|
|
834
|
-
"aria-modal":
|
|
835
|
-
"aria-label":
|
|
836
|
-
className: n("data-table--component @container/data-table box-border",
|
|
845
|
+
ref: Et,
|
|
846
|
+
role: q ? "dialog" : void 0,
|
|
847
|
+
"aria-modal": q ? !0 : void 0,
|
|
848
|
+
"aria-label": q ? V.accessibility.fullscreenRegion : void 0,
|
|
849
|
+
className: n("data-table--component @container/data-table box-border", q ? "fixed inset-0 z-50 bg-background flex flex-col overflow-hidden p-surface" : n("w-full min-w-0 max-w-full", fe && "flex h-full min-h-0 flex-col", i === "card" && "overflow-hidden rounded-radius border border-border bg-card shadow-xs", i === "glass" && "rounded-radius overflow-hidden border border-border/60", ve)),
|
|
837
850
|
children: [
|
|
838
|
-
!!(
|
|
839
|
-
className: n("relative", le && "sticky top-0 z-20 bg-card
|
|
851
|
+
!!(Z || ke || Ae || b || w) && /* @__PURE__ */ R("div", {
|
|
852
|
+
className: n("relative", le && "sticky top-0 z-20 bg-card"),
|
|
840
853
|
children: [/* @__PURE__ */ R("div", {
|
|
841
|
-
className: n("data-table-topbar grid gap-space-lg px-surface py-row-y @2xl/data-table:grid-cols-[minmax(0,1fr)_auto] @2xl/data-table:items-end",
|
|
854
|
+
className: n("data-table-topbar grid gap-space-lg px-surface py-row-y @2xl/data-table:grid-cols-[minmax(0,1fr)_auto] @2xl/data-table:items-end", q ? "mb-space-lg shrink-0" : "mb-0", je),
|
|
842
855
|
children: [/* @__PURE__ */ R("div", {
|
|
843
856
|
className: "data-table-topbar-left flex min-w-0 flex-col gap-space-md",
|
|
844
|
-
children: [
|
|
857
|
+
children: [ke, Z && /* @__PURE__ */ L("div", {
|
|
845
858
|
className: "min-w-0 max-w-sm",
|
|
846
|
-
children: /* @__PURE__ */ L(
|
|
847
|
-
"aria-label":
|
|
848
|
-
placeholder:
|
|
849
|
-
value:
|
|
850
|
-
onChange: (e) =>
|
|
859
|
+
children: /* @__PURE__ */ L(oe, {
|
|
860
|
+
"aria-label": kt,
|
|
861
|
+
placeholder: kt,
|
|
862
|
+
value: Z.getFilterValue() ?? "",
|
|
863
|
+
onChange: (e) => Z.setFilterValue(e.target.value)
|
|
851
864
|
})
|
|
852
865
|
})]
|
|
853
866
|
}), /* @__PURE__ */ R("div", {
|
|
854
867
|
className: "data-table-topbar-right flex flex-wrap items-center justify-end gap-space-md",
|
|
855
|
-
children: [
|
|
856
|
-
table:
|
|
857
|
-
tableAreaRef:
|
|
858
|
-
fullscreen:
|
|
859
|
-
onFullscreenChange:
|
|
860
|
-
showFullscreenToggle:
|
|
861
|
-
enableColumnVisibility:
|
|
862
|
-
labelVisibility:
|
|
863
|
-
strings:
|
|
868
|
+
children: [Ae, /* @__PURE__ */ L(ft, {
|
|
869
|
+
table: X,
|
|
870
|
+
tableAreaRef: J,
|
|
871
|
+
fullscreen: q,
|
|
872
|
+
onFullscreenChange: Y,
|
|
873
|
+
showFullscreenToggle: w,
|
|
874
|
+
enableColumnVisibility: b,
|
|
875
|
+
labelVisibility: Me,
|
|
876
|
+
strings: V
|
|
864
877
|
})]
|
|
865
878
|
})]
|
|
866
|
-
}), /* @__PURE__ */ L(
|
|
879
|
+
}), /* @__PURE__ */ L(ae, {})]
|
|
867
880
|
}),
|
|
868
|
-
|
|
881
|
+
Pt,
|
|
869
882
|
/* @__PURE__ */ L("div", {
|
|
870
|
-
ref:
|
|
871
|
-
style:
|
|
872
|
-
|
|
873
|
-
|
|
883
|
+
ref: J,
|
|
884
|
+
style: Ft,
|
|
885
|
+
onFocus: T ? xt : void 0,
|
|
886
|
+
className: n("min-h-0", It ? "overflow-hidden" : ye, (q || fe) && "flex-1"),
|
|
887
|
+
children: /* @__PURE__ */ R(xe, {
|
|
874
888
|
containerProps: {
|
|
875
889
|
role: "region",
|
|
876
|
-
"aria-label":
|
|
890
|
+
"aria-label": V.accessibility.scrollRegion
|
|
877
891
|
},
|
|
878
|
-
style:
|
|
879
|
-
className: n("relative",
|
|
880
|
-
containerClassName: n(
|
|
881
|
-
children: [/* @__PURE__ */ L(
|
|
882
|
-
enableResizing:
|
|
883
|
-
table:
|
|
892
|
+
style: h ? { width: X.getTotalSize() } : void 0,
|
|
893
|
+
className: n("relative", h && "min-w-full table-fixed", ht[Ge], he),
|
|
894
|
+
containerClassName: n(`focus-visible:outline-none ${s.edge}`, It && "overflow-auto", U !== void 0 && "max-h-(--data-table-body-max-height)", (q || fe) && "h-full min-h-0", be),
|
|
895
|
+
children: [/* @__PURE__ */ L(at, {
|
|
896
|
+
enableResizing: h,
|
|
897
|
+
table: X,
|
|
884
898
|
stickyHeader: ce,
|
|
885
|
-
headerClassName:
|
|
886
|
-
cellClassName:
|
|
899
|
+
headerClassName: _e,
|
|
900
|
+
cellClassName: A,
|
|
887
901
|
stickyFirstColumn: ue,
|
|
888
|
-
columnGroups:
|
|
889
|
-
headerTransparent:
|
|
890
|
-
}), /* @__PURE__ */ L(
|
|
891
|
-
table:
|
|
892
|
-
onRowClick:
|
|
893
|
-
emptyStateMessage:
|
|
894
|
-
emptyStateAction:
|
|
895
|
-
cellClassName:
|
|
896
|
-
rowClassName:
|
|
902
|
+
columnGroups: l,
|
|
903
|
+
headerTransparent: a
|
|
904
|
+
}), /* @__PURE__ */ L(it, {
|
|
905
|
+
table: X,
|
|
906
|
+
onRowClick: se,
|
|
907
|
+
emptyStateMessage: qe,
|
|
908
|
+
emptyStateAction: me,
|
|
909
|
+
cellClassName: A,
|
|
910
|
+
rowClassName: H,
|
|
897
911
|
stickyFirstColumn: ue,
|
|
898
|
-
strings:
|
|
912
|
+
strings: V
|
|
899
913
|
})]
|
|
900
914
|
})
|
|
901
915
|
}),
|
|
902
|
-
!!
|
|
903
|
-
pagination:
|
|
904
|
-
onPageChange:
|
|
905
|
-
pageQueryKey:
|
|
906
|
-
labels:
|
|
916
|
+
!!At && /* @__PURE__ */ R(Te, { children: [/* @__PURE__ */ L(ae, {}), /* @__PURE__ */ L(Ye, {
|
|
917
|
+
pagination: E,
|
|
918
|
+
onPageChange: re,
|
|
919
|
+
pageQueryKey: Je,
|
|
920
|
+
labels: V.pagination
|
|
907
921
|
})] }),
|
|
908
|
-
!!
|
|
922
|
+
!!Ne && /* @__PURE__ */ L("div", {
|
|
909
923
|
"data-slot": "data-table-footer",
|
|
910
|
-
className: "data-table--footer border-t border-border/
|
|
911
|
-
children:
|
|
924
|
+
className: "data-table--footer border-t border-border/60 px-surface py-row-y",
|
|
925
|
+
children: Ne
|
|
912
926
|
})
|
|
913
927
|
]
|
|
914
928
|
})
|
|
915
929
|
});
|
|
916
930
|
}
|
|
917
|
-
|
|
931
|
+
K.displayName = "DataTable";
|
|
918
932
|
//#endregion
|
|
919
933
|
//#region src/components/features/table/filter-bar.tsx
|
|
920
|
-
function
|
|
934
|
+
function q({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibility: i = !1, customContent: a, strings: o = V }) {
|
|
921
935
|
if (!t && !i && !a) return null;
|
|
922
936
|
let s = r ?? o.filter.searchPlaceholder;
|
|
923
937
|
return /* @__PURE__ */ R("div", {
|
|
924
938
|
className: n("filter-bar--component", "flex items-center justify-between p-surface"),
|
|
925
939
|
children: [/* @__PURE__ */ R("div", {
|
|
926
940
|
className: "flex flex-1 items-center space-x-space-md",
|
|
927
|
-
children: [!!t && /* @__PURE__ */ L(
|
|
941
|
+
children: [!!t && /* @__PURE__ */ L(oe, {
|
|
928
942
|
placeholder: s,
|
|
929
943
|
value: e.getColumn(t)?.getFilterValue() ?? "",
|
|
930
944
|
onChange: (n) => {
|
|
@@ -933,7 +947,7 @@ function X({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibi
|
|
|
933
947
|
},
|
|
934
948
|
className: "max-w-sm"
|
|
935
949
|
}), a]
|
|
936
|
-
}), !!i && /* @__PURE__ */ L(
|
|
950
|
+
}), !!i && /* @__PURE__ */ L(ot, {
|
|
937
951
|
table: e,
|
|
938
952
|
strings: o,
|
|
939
953
|
labelVisibility: "responsive",
|
|
@@ -941,22 +955,22 @@ function X({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibi
|
|
|
941
955
|
})]
|
|
942
956
|
});
|
|
943
957
|
}
|
|
944
|
-
|
|
958
|
+
q.displayName = "DataTableFilterBar";
|
|
945
959
|
//#endregion
|
|
946
960
|
//#region src/components/features/table/partials/cell-value.tsx
|
|
947
|
-
function
|
|
961
|
+
function J(e) {
|
|
948
962
|
return e === !1 || e == null || typeof e == "string" && e.trim() === "";
|
|
949
963
|
}
|
|
950
|
-
function
|
|
964
|
+
function yt(e) {
|
|
951
965
|
return e == null;
|
|
952
966
|
}
|
|
953
|
-
function
|
|
954
|
-
return typeof e == "object" && !!e && !Array.isArray(e) && !
|
|
967
|
+
function bt(e) {
|
|
968
|
+
return typeof e == "object" && !!e && !Array.isArray(e) && !j(e) && !(e instanceof Date);
|
|
955
969
|
}
|
|
956
|
-
function
|
|
970
|
+
function xt(e) {
|
|
957
971
|
return Array.isArray(e);
|
|
958
972
|
}
|
|
959
|
-
function
|
|
973
|
+
function St(e) {
|
|
960
974
|
let [t, n, r] = e;
|
|
961
975
|
return {
|
|
962
976
|
...r,
|
|
@@ -964,74 +978,74 @@ function _t(e) {
|
|
|
964
978
|
kind: n
|
|
965
979
|
};
|
|
966
980
|
}
|
|
967
|
-
function
|
|
981
|
+
function Ct(e) {
|
|
968
982
|
if (e === !1) return null;
|
|
969
|
-
if (
|
|
970
|
-
if (
|
|
971
|
-
let t =
|
|
972
|
-
return
|
|
983
|
+
if (j(e)) return e;
|
|
984
|
+
if (xt(e)) {
|
|
985
|
+
let t = St(e);
|
|
986
|
+
return J(t.value) && yt(t.display) ? null : t;
|
|
973
987
|
}
|
|
974
|
-
return
|
|
988
|
+
return bt(e) ? J(e.value) && yt(e.display) ? null : e : J(e) ? null : { value: e };
|
|
975
989
|
}
|
|
976
|
-
function
|
|
990
|
+
function wt(e) {
|
|
977
991
|
return e instanceof Date ? e.toISOString() : String(e ?? "");
|
|
978
992
|
}
|
|
979
|
-
function
|
|
980
|
-
let o = t === 0, s = e.kind ?? (o ? "value" : "secondary"), c = e.value, l = e.display ?? (c instanceof Date ?
|
|
993
|
+
function Tt({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryWeight: a = "medium" }) {
|
|
994
|
+
let o = t === 0, s = e.kind ?? (o ? "value" : "secondary"), c = e.value, l = e.display ?? (c instanceof Date ? wt(c) : c), u = e.emptyLabel ?? r, d = n(i, e.className), x = o ? a : "regular";
|
|
981
995
|
switch (s) {
|
|
982
|
-
case "secondary": return /* @__PURE__ */ L(
|
|
996
|
+
case "secondary": return /* @__PURE__ */ L(h, {
|
|
983
997
|
size: "inherit",
|
|
984
|
-
className:
|
|
998
|
+
className: d,
|
|
985
999
|
children: l
|
|
986
1000
|
});
|
|
987
|
-
case "muted": return /* @__PURE__ */ L(
|
|
1001
|
+
case "muted": return /* @__PURE__ */ L(g, {
|
|
988
1002
|
size: "inherit",
|
|
989
|
-
className:
|
|
1003
|
+
className: d,
|
|
990
1004
|
children: l
|
|
991
1005
|
});
|
|
992
|
-
case "name": return /* @__PURE__ */ L(
|
|
1006
|
+
case "name": return /* @__PURE__ */ L(m, {
|
|
993
1007
|
value: e.display === void 0 && typeof c == "string" ? c : void 0,
|
|
994
1008
|
force: e.force,
|
|
995
|
-
emptyLabel:
|
|
1009
|
+
emptyLabel: u,
|
|
996
1010
|
size: "inherit",
|
|
997
|
-
weight:
|
|
998
|
-
className:
|
|
1011
|
+
weight: x,
|
|
1012
|
+
className: d,
|
|
999
1013
|
children: e.display
|
|
1000
1014
|
});
|
|
1001
|
-
case "mono": return /* @__PURE__ */ L(
|
|
1015
|
+
case "mono": return /* @__PURE__ */ L(y, {
|
|
1002
1016
|
size: "inherit",
|
|
1003
|
-
weight:
|
|
1004
|
-
className:
|
|
1017
|
+
weight: x,
|
|
1018
|
+
className: d,
|
|
1005
1019
|
children: l
|
|
1006
1020
|
});
|
|
1007
1021
|
case "link": {
|
|
1008
|
-
let t = e.href ??
|
|
1009
|
-
return /* @__PURE__ */ L(
|
|
1022
|
+
let t = e.href ?? wt(c);
|
|
1023
|
+
return /* @__PURE__ */ L(S, {
|
|
1010
1024
|
href: t,
|
|
1011
|
-
emptyLabel:
|
|
1012
|
-
className:
|
|
1025
|
+
emptyLabel: u,
|
|
1026
|
+
className: d,
|
|
1013
1027
|
children: l
|
|
1014
1028
|
});
|
|
1015
1029
|
}
|
|
1016
|
-
case "email": return /* @__PURE__ */ L(
|
|
1030
|
+
case "email": return /* @__PURE__ */ L(b, {
|
|
1017
1031
|
value: typeof c == "string" ? c : void 0,
|
|
1018
1032
|
display: e.display,
|
|
1019
|
-
emptyLabel:
|
|
1020
|
-
className:
|
|
1033
|
+
emptyLabel: u,
|
|
1034
|
+
className: d
|
|
1021
1035
|
});
|
|
1022
|
-
case "phone": return /* @__PURE__ */ L(
|
|
1036
|
+
case "phone": return /* @__PURE__ */ L(p, {
|
|
1023
1037
|
value: typeof c == "string" ? c : void 0,
|
|
1024
1038
|
display: e.display,
|
|
1025
|
-
emptyLabel:
|
|
1026
|
-
className:
|
|
1039
|
+
emptyLabel: u,
|
|
1040
|
+
className: d
|
|
1027
1041
|
});
|
|
1028
|
-
case "url": return /* @__PURE__ */ L(
|
|
1042
|
+
case "url": return /* @__PURE__ */ L(v, {
|
|
1029
1043
|
value: typeof c == "string" ? c : void 0,
|
|
1030
1044
|
display: e.display,
|
|
1031
|
-
emptyLabel:
|
|
1032
|
-
className:
|
|
1045
|
+
emptyLabel: u,
|
|
1046
|
+
className: d
|
|
1033
1047
|
});
|
|
1034
|
-
case "money": return /* @__PURE__ */ L(
|
|
1048
|
+
case "money": return /* @__PURE__ */ L(T, {
|
|
1035
1049
|
amount: typeof c == "number" || typeof c == "string" ? c : null,
|
|
1036
1050
|
currency: e.currency,
|
|
1037
1051
|
locale: e.locale,
|
|
@@ -1039,92 +1053,92 @@ function bt({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
|
|
|
1039
1053
|
minimumFractionDigits: e.minimumFractionDigits,
|
|
1040
1054
|
maximumFractionDigits: e.maximumFractionDigits,
|
|
1041
1055
|
formatMode: e.formatMode,
|
|
1042
|
-
emptyLabel:
|
|
1056
|
+
emptyLabel: u,
|
|
1043
1057
|
size: "inherit",
|
|
1044
|
-
weight:
|
|
1045
|
-
className:
|
|
1058
|
+
weight: x,
|
|
1059
|
+
className: d
|
|
1046
1060
|
});
|
|
1047
|
-
case "number": return /* @__PURE__ */ L(
|
|
1061
|
+
case "number": return /* @__PURE__ */ L(ee, {
|
|
1048
1062
|
value: typeof c == "number" || typeof c == "string" ? c : null,
|
|
1049
1063
|
locale: e.locale,
|
|
1050
1064
|
options: e.options,
|
|
1051
|
-
emptyLabel:
|
|
1065
|
+
emptyLabel: u,
|
|
1052
1066
|
size: "inherit",
|
|
1053
|
-
weight:
|
|
1054
|
-
className:
|
|
1067
|
+
weight: x,
|
|
1068
|
+
className: d
|
|
1055
1069
|
});
|
|
1056
|
-
case "percent": return /* @__PURE__ */ L(
|
|
1070
|
+
case "percent": return /* @__PURE__ */ L(w, {
|
|
1057
1071
|
value: typeof c == "number" || typeof c == "string" ? c : null,
|
|
1058
1072
|
locale: e.locale,
|
|
1059
1073
|
scaled: e.scaled,
|
|
1060
1074
|
options: e.options,
|
|
1061
|
-
emptyLabel:
|
|
1075
|
+
emptyLabel: u,
|
|
1062
1076
|
size: "inherit",
|
|
1063
|
-
weight:
|
|
1064
|
-
className:
|
|
1077
|
+
weight: x,
|
|
1078
|
+
className: d
|
|
1065
1079
|
});
|
|
1066
|
-
case "fileSize": return /* @__PURE__ */ L(
|
|
1080
|
+
case "fileSize": return /* @__PURE__ */ L(_, {
|
|
1067
1081
|
value: typeof c == "number" ? c : null,
|
|
1068
1082
|
from: e.from,
|
|
1069
1083
|
locale: e.locale,
|
|
1070
|
-
emptyLabel:
|
|
1084
|
+
emptyLabel: u,
|
|
1071
1085
|
size: "inherit",
|
|
1072
|
-
weight:
|
|
1073
|
-
className:
|
|
1086
|
+
weight: x,
|
|
1087
|
+
className: d
|
|
1074
1088
|
});
|
|
1075
|
-
case "date": return /* @__PURE__ */ L(
|
|
1089
|
+
case "date": return /* @__PURE__ */ L(D, {
|
|
1076
1090
|
value: c,
|
|
1077
1091
|
format: e.dateFormat,
|
|
1078
1092
|
preset: e.datePreset,
|
|
1079
1093
|
locale: e.dateLocale,
|
|
1080
|
-
emptyLabel:
|
|
1094
|
+
emptyLabel: u,
|
|
1081
1095
|
size: "inherit",
|
|
1082
|
-
weight:
|
|
1083
|
-
className:
|
|
1096
|
+
weight: x,
|
|
1097
|
+
className: d
|
|
1084
1098
|
});
|
|
1085
|
-
case "time": return /* @__PURE__ */ L(
|
|
1099
|
+
case "time": return /* @__PURE__ */ L(te, {
|
|
1086
1100
|
value: c,
|
|
1087
1101
|
format: e.timeFormat,
|
|
1088
1102
|
locale: e.dateLocale,
|
|
1089
|
-
emptyLabel:
|
|
1103
|
+
emptyLabel: u,
|
|
1090
1104
|
size: "inherit",
|
|
1091
|
-
weight:
|
|
1092
|
-
className:
|
|
1105
|
+
weight: x,
|
|
1106
|
+
className: d
|
|
1093
1107
|
});
|
|
1094
|
-
case "dateTime": return /* @__PURE__ */ L(
|
|
1108
|
+
case "dateTime": return /* @__PURE__ */ L(ne, {
|
|
1095
1109
|
value: c,
|
|
1096
1110
|
format: e.dateFormat,
|
|
1097
1111
|
timeFormat: e.timeFormat,
|
|
1098
1112
|
preset: e.datePreset,
|
|
1099
1113
|
locale: e.dateLocale,
|
|
1100
|
-
emptyLabel:
|
|
1114
|
+
emptyLabel: u,
|
|
1101
1115
|
size: "inherit",
|
|
1102
|
-
weight:
|
|
1103
|
-
className:
|
|
1116
|
+
weight: x,
|
|
1117
|
+
className: d
|
|
1104
1118
|
});
|
|
1105
1119
|
case "relativeTime": return /* @__PURE__ */ L(E, {
|
|
1106
1120
|
value: c,
|
|
1107
1121
|
locale: e.dateLocale,
|
|
1108
|
-
emptyLabel:
|
|
1122
|
+
emptyLabel: u,
|
|
1109
1123
|
size: "inherit",
|
|
1110
|
-
weight:
|
|
1111
|
-
className:
|
|
1124
|
+
weight: x,
|
|
1125
|
+
className: d
|
|
1112
1126
|
});
|
|
1113
|
-
default: return /* @__PURE__ */ L(
|
|
1127
|
+
default: return /* @__PURE__ */ L(f, {
|
|
1114
1128
|
size: "inherit",
|
|
1115
|
-
weight:
|
|
1116
|
-
className:
|
|
1129
|
+
weight: x,
|
|
1130
|
+
className: d,
|
|
1117
1131
|
children: l
|
|
1118
1132
|
});
|
|
1119
1133
|
}
|
|
1120
1134
|
}
|
|
1121
|
-
function
|
|
1122
|
-
let T = S ??
|
|
1123
|
-
return w === void 0 ? T ? /* @__PURE__ */ L(
|
|
1135
|
+
function Et({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minimumFractionDigits: o, maximumFractionDigits: s, formatMode: c, locale: l, dateLocale: u, from: d, force: p, options: m, scaled: h, dateFormat: g, datePreset: _, timeFormat: v, emptyLabel: y, fallback: b = "--", missing: S, className: C, children: w }) {
|
|
1136
|
+
let T = S ?? J(e);
|
|
1137
|
+
return w === void 0 ? T ? /* @__PURE__ */ L(x, {
|
|
1124
1138
|
size: "inherit",
|
|
1125
1139
|
className: n("cell-value--component", C),
|
|
1126
|
-
children:
|
|
1127
|
-
}) :
|
|
1140
|
+
children: y ?? b
|
|
1141
|
+
}) : Tt({
|
|
1128
1142
|
descriptor: {
|
|
1129
1143
|
value: e,
|
|
1130
1144
|
kind: t,
|
|
@@ -1135,28 +1149,28 @@ function xt({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minim
|
|
|
1135
1149
|
maximumFractionDigits: s,
|
|
1136
1150
|
formatMode: c,
|
|
1137
1151
|
locale: l,
|
|
1138
|
-
dateLocale:
|
|
1139
|
-
from:
|
|
1152
|
+
dateLocale: u,
|
|
1153
|
+
from: d,
|
|
1140
1154
|
force: p,
|
|
1141
1155
|
options: m,
|
|
1142
1156
|
scaled: h,
|
|
1143
1157
|
dateFormat: g,
|
|
1144
1158
|
datePreset: _,
|
|
1145
1159
|
timeFormat: v,
|
|
1146
|
-
emptyLabel:
|
|
1160
|
+
emptyLabel: y,
|
|
1147
1161
|
className: "cell-value--component"
|
|
1148
1162
|
},
|
|
1149
|
-
emptyLabel:
|
|
1163
|
+
emptyLabel: y ?? b,
|
|
1150
1164
|
className: C
|
|
1151
|
-
}) : /* @__PURE__ */ L(T ?
|
|
1165
|
+
}) : /* @__PURE__ */ L(T ? x : f, {
|
|
1152
1166
|
size: "inherit",
|
|
1153
1167
|
className: n("cell-value--component", C),
|
|
1154
1168
|
children: w
|
|
1155
1169
|
});
|
|
1156
1170
|
}
|
|
1157
|
-
function
|
|
1158
|
-
let c = e.map(
|
|
1159
|
-
return c.length === 0 ? /* @__PURE__ */ L(
|
|
1171
|
+
function Y({ values: e = [], emptyLabel: t = "--", className: r, itemClassName: i, primaryClassName: a, secondaryClassName: o, primaryWeight: s = "medium" }) {
|
|
1172
|
+
let c = e.map(Ct).filter((e) => e !== null).slice(0, 4);
|
|
1173
|
+
return c.length === 0 ? /* @__PURE__ */ L(x, {
|
|
1160
1174
|
size: "inherit",
|
|
1161
1175
|
className: n("cell-stack--component", r),
|
|
1162
1176
|
children: t
|
|
@@ -1164,12 +1178,12 @@ function Q({ values: e = [], emptyLabel: t = "--", className: r, itemClassName:
|
|
|
1164
1178
|
className: n("cell-stack--component flex min-w-0 flex-col items-start gap-space-2xs", r),
|
|
1165
1179
|
children: c.map((e, r) => {
|
|
1166
1180
|
let c = r === 0, l = n("cell-stack--item min-w-0 max-w-full truncate", !c && "text-xs", i, c ? a : o);
|
|
1167
|
-
return
|
|
1181
|
+
return j(e) ? /* @__PURE__ */ L("div", {
|
|
1168
1182
|
className: l,
|
|
1169
1183
|
children: e
|
|
1170
1184
|
}, r) : /* @__PURE__ */ L("div", {
|
|
1171
1185
|
className: l,
|
|
1172
|
-
children:
|
|
1186
|
+
children: Tt({
|
|
1173
1187
|
descriptor: e,
|
|
1174
1188
|
index: r,
|
|
1175
1189
|
emptyLabel: t,
|
|
@@ -1180,20 +1194,20 @@ function Q({ values: e = [], emptyLabel: t = "--", className: r, itemClassName:
|
|
|
1180
1194
|
})
|
|
1181
1195
|
});
|
|
1182
1196
|
}
|
|
1183
|
-
|
|
1197
|
+
Et.displayName = "CellValue", Y.displayName = "CellStack";
|
|
1184
1198
|
//#endregion
|
|
1185
1199
|
//#region src/components/features/table/partials/table-link.tsx
|
|
1186
|
-
var
|
|
1200
|
+
var Dt = ({ className: e, ...t }) => /* @__PURE__ */ L(S, {
|
|
1187
1201
|
className: n("table-link--component", "underline decoration-link-color/35 decoration-dotted underline-offset-2 hover:decoration-link-color", e),
|
|
1188
1202
|
...t,
|
|
1189
1203
|
children: t.children
|
|
1190
1204
|
});
|
|
1191
1205
|
//#endregion
|
|
1192
1206
|
//#region src/components/features/table/partials/resource-cell.tsx
|
|
1193
|
-
function
|
|
1207
|
+
function Ot(e, t) {
|
|
1194
1208
|
if (e && typeof e == "object" && !("type" in e) && "label" in e) {
|
|
1195
1209
|
let n = e.icon;
|
|
1196
|
-
return /* @__PURE__ */ R(
|
|
1210
|
+
return /* @__PURE__ */ R(O, {
|
|
1197
1211
|
tone: e.tone ?? "secondary",
|
|
1198
1212
|
dot: e.dot,
|
|
1199
1213
|
children: [!!n && /* @__PURE__ */ L(n, { className: "size-icon-sm" }), e.label]
|
|
@@ -1201,18 +1215,18 @@ function Ct(e, t) {
|
|
|
1201
1215
|
}
|
|
1202
1216
|
return /* @__PURE__ */ L("span", { children: e }, t);
|
|
1203
1217
|
}
|
|
1204
|
-
function
|
|
1218
|
+
function X(e) {
|
|
1205
1219
|
return e ? Array.isArray(e) ? /* @__PURE__ */ L("span", {
|
|
1206
1220
|
className: "inline-flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-2xs",
|
|
1207
1221
|
children: e.map((e, t) => /* @__PURE__ */ R("span", {
|
|
1208
1222
|
className: "inline-flex min-w-0 items-center gap-space-sm",
|
|
1209
|
-
children: [!!e.label && /* @__PURE__ */ L(
|
|
1223
|
+
children: [!!e.label && /* @__PURE__ */ L(a, {
|
|
1210
1224
|
tag: "span",
|
|
1211
1225
|
size: "inherit",
|
|
1212
1226
|
type: "secondary",
|
|
1213
1227
|
className: "shrink-0",
|
|
1214
1228
|
children: e.label
|
|
1215
|
-
}), /* @__PURE__ */ L(
|
|
1229
|
+
}), /* @__PURE__ */ L(a, {
|
|
1216
1230
|
tag: "span",
|
|
1217
1231
|
size: "inherit",
|
|
1218
1232
|
type: "secondary",
|
|
@@ -1222,142 +1236,142 @@ function wt(e) {
|
|
|
1222
1236
|
}, e.id ?? t))
|
|
1223
1237
|
}) : e : null;
|
|
1224
1238
|
}
|
|
1225
|
-
function
|
|
1226
|
-
if (!e) return /* @__PURE__ */ L(
|
|
1239
|
+
function Z({ title: e, subtitle: t, metadata: r, badges: i = [], imageUrl: l, icon: u = je, fallback: d, href: f, renderLink: p, emptyLabel: m = "—", className: h, mediaClassName: g, contentClassName: _, titleClassName: v, subtitleClassName: y }) {
|
|
1240
|
+
if (!e) return /* @__PURE__ */ L(a, {
|
|
1227
1241
|
size: "inherit",
|
|
1228
1242
|
type: "secondary",
|
|
1229
|
-
className:
|
|
1230
|
-
children:
|
|
1243
|
+
className: h,
|
|
1244
|
+
children: m
|
|
1231
1245
|
});
|
|
1232
|
-
let
|
|
1246
|
+
let b = typeof e == "string" ? e : void 0, x = b ? C(b, { strategy: "first-words" }) : "", S = /* @__PURE__ */ R(c, {
|
|
1233
1247
|
render: /* @__PURE__ */ L("span", {}),
|
|
1234
1248
|
gap: "dense",
|
|
1235
|
-
className: n("resource-cell--content",
|
|
1249
|
+
className: n("resource-cell--content", _),
|
|
1236
1250
|
children: [
|
|
1237
|
-
/* @__PURE__ */ R(
|
|
1251
|
+
/* @__PURE__ */ R(c, {
|
|
1238
1252
|
render: /* @__PURE__ */ L("span", {}),
|
|
1239
1253
|
direction: "horizontal",
|
|
1240
1254
|
gap: "sm",
|
|
1241
1255
|
wrap: !1,
|
|
1242
1256
|
className: "resource-cell--title-row",
|
|
1243
|
-
children: [/* @__PURE__ */ L(
|
|
1257
|
+
children: [/* @__PURE__ */ L(a, {
|
|
1244
1258
|
tag: "span",
|
|
1245
1259
|
size: "inherit",
|
|
1246
1260
|
weight: "medium",
|
|
1247
|
-
className: n("resource-cell--title truncate",
|
|
1261
|
+
className: n("resource-cell--title truncate", v),
|
|
1248
1262
|
children: e
|
|
1249
|
-
}),
|
|
1263
|
+
}), i.length > 0 && /* @__PURE__ */ L("span", {
|
|
1250
1264
|
className: "resource-cell--badges inline-flex shrink-0 items-center gap-space-sm",
|
|
1251
|
-
children:
|
|
1265
|
+
children: i.map(Ot)
|
|
1252
1266
|
})]
|
|
1253
1267
|
}),
|
|
1254
|
-
!!t && /* @__PURE__ */ L(
|
|
1268
|
+
!!t && /* @__PURE__ */ L(a, {
|
|
1255
1269
|
tag: "span",
|
|
1256
1270
|
size: "inherit",
|
|
1257
1271
|
type: "secondary",
|
|
1258
|
-
className: n("resource-cell--subtitle truncate",
|
|
1272
|
+
className: n("resource-cell--subtitle truncate", y),
|
|
1259
1273
|
children: t
|
|
1260
1274
|
}),
|
|
1261
|
-
!!
|
|
1275
|
+
!!r && /* @__PURE__ */ L("span", {
|
|
1262
1276
|
className: "resource-cell--metadata min-w-0",
|
|
1263
|
-
children:
|
|
1277
|
+
children: X(r)
|
|
1264
1278
|
})
|
|
1265
1279
|
]
|
|
1266
|
-
}),
|
|
1267
|
-
className: n("resource-cell--component inline-flex min-w-0 items-center gap-space-md",
|
|
1280
|
+
}), w = /* @__PURE__ */ R("span", {
|
|
1281
|
+
className: n("resource-cell--component inline-flex min-w-0 items-center gap-space-md", h),
|
|
1268
1282
|
children: [/* @__PURE__ */ L("span", {
|
|
1269
|
-
className: n("resource-cell--media relative inline-flex size-avatar shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-muted-foreground",
|
|
1270
|
-
children:
|
|
1271
|
-
src:
|
|
1272
|
-
alt:
|
|
1283
|
+
className: n("resource-cell--media relative inline-flex size-avatar shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-muted-foreground", g),
|
|
1284
|
+
children: l ? /* @__PURE__ */ L("img", {
|
|
1285
|
+
src: l,
|
|
1286
|
+
alt: b ?? "",
|
|
1273
1287
|
className: "absolute inset-0 size-full object-cover"
|
|
1274
|
-
}) :
|
|
1288
|
+
}) : d || (x ? /* @__PURE__ */ L(a, {
|
|
1275
1289
|
size: "inherit",
|
|
1276
1290
|
weight: "semibold",
|
|
1277
1291
|
className: "text-sm leading-none",
|
|
1278
|
-
children:
|
|
1279
|
-
}) : /* @__PURE__ */ L(
|
|
1292
|
+
children: x
|
|
1293
|
+
}) : /* @__PURE__ */ L(u, { className: "size-icon" }))
|
|
1280
1294
|
}), S]
|
|
1281
1295
|
});
|
|
1282
|
-
if (!
|
|
1283
|
-
let
|
|
1284
|
-
return
|
|
1285
|
-
href:
|
|
1286
|
-
children:
|
|
1287
|
-
className:
|
|
1288
|
-
"aria-label":
|
|
1289
|
-
}) : /* @__PURE__ */ L(
|
|
1290
|
-
href:
|
|
1296
|
+
if (!f) return w;
|
|
1297
|
+
let T = `resource-cell--link inline-flex min-w-0 rounded-inner outline-none ${s.text}`;
|
|
1298
|
+
return p ? p({
|
|
1299
|
+
href: f,
|
|
1300
|
+
children: w,
|
|
1301
|
+
className: T,
|
|
1302
|
+
"aria-label": b
|
|
1303
|
+
}) : /* @__PURE__ */ L(o, {
|
|
1304
|
+
href: f,
|
|
1291
1305
|
size: "inherit",
|
|
1292
1306
|
underline: !1,
|
|
1293
|
-
className:
|
|
1294
|
-
"aria-label":
|
|
1295
|
-
children:
|
|
1307
|
+
className: T,
|
|
1308
|
+
"aria-label": b,
|
|
1309
|
+
children: w
|
|
1296
1310
|
});
|
|
1297
1311
|
}
|
|
1298
|
-
|
|
1312
|
+
Z.displayName = "ResourceCell";
|
|
1299
1313
|
//#endregion
|
|
1300
1314
|
//#region src/components/features/table/partials/cell-renderers.tsx
|
|
1301
|
-
function
|
|
1302
|
-
if (!e || !(e in t)) return /* @__PURE__ */ L(
|
|
1315
|
+
function kt({ value: e, map: t, emptyLabel: r = "—", className: i }) {
|
|
1316
|
+
if (!e || !(e in t)) return /* @__PURE__ */ L(a, {
|
|
1303
1317
|
size: "inherit",
|
|
1304
1318
|
type: "secondary",
|
|
1305
|
-
className: n("status-cell--component",
|
|
1306
|
-
children:
|
|
1319
|
+
className: n("status-cell--component", i),
|
|
1320
|
+
children: r
|
|
1307
1321
|
});
|
|
1308
1322
|
let o = t[e], s = o.icon;
|
|
1309
|
-
return /* @__PURE__ */ R(
|
|
1323
|
+
return /* @__PURE__ */ R(O, {
|
|
1310
1324
|
tone: o.tone ?? "secondary",
|
|
1311
|
-
className: n("status-cell--component gap-space-sm",
|
|
1325
|
+
className: n("status-cell--component gap-space-sm", i),
|
|
1312
1326
|
children: [!!s && /* @__PURE__ */ L(s, { className: "size-icon-sm" }), o.label]
|
|
1313
1327
|
});
|
|
1314
1328
|
}
|
|
1315
|
-
|
|
1316
|
-
function
|
|
1329
|
+
kt.displayName = "StatusCell";
|
|
1330
|
+
function At({ items: e = [], emptyLabel: t = "—", className: r, badgeClassName: i }) {
|
|
1317
1331
|
let o = e.filter((e) => !e.hidden);
|
|
1318
|
-
return o.length === 0 ? /* @__PURE__ */ L(
|
|
1332
|
+
return o.length === 0 ? /* @__PURE__ */ L(a, {
|
|
1319
1333
|
size: "inherit",
|
|
1320
1334
|
type: "secondary",
|
|
1321
|
-
className: n("status-cluster-cell--component",
|
|
1335
|
+
className: n("status-cluster-cell--component", r),
|
|
1322
1336
|
children: t
|
|
1323
1337
|
}) : /* @__PURE__ */ L("span", {
|
|
1324
|
-
className: n("status-cluster-cell--component inline-flex min-w-0 flex-wrap items-center gap-space-sm",
|
|
1338
|
+
className: n("status-cluster-cell--component inline-flex min-w-0 flex-wrap items-center gap-space-sm", r),
|
|
1325
1339
|
children: o.map((e, t) => {
|
|
1326
1340
|
let r = e.icon;
|
|
1327
|
-
return /* @__PURE__ */ R(
|
|
1341
|
+
return /* @__PURE__ */ R(O, {
|
|
1328
1342
|
tone: e.tone ?? "secondary",
|
|
1329
1343
|
dot: e.dot,
|
|
1330
|
-
className: n("shrink-0",
|
|
1344
|
+
className: n("shrink-0", i),
|
|
1331
1345
|
children: [!!r && /* @__PURE__ */ L(r, { className: "size-icon-sm" }), e.label]
|
|
1332
1346
|
}, e.id ?? t);
|
|
1333
1347
|
})
|
|
1334
1348
|
});
|
|
1335
1349
|
}
|
|
1336
|
-
|
|
1337
|
-
function
|
|
1338
|
-
let u =
|
|
1350
|
+
At.displayName = "StatusClusterCell";
|
|
1351
|
+
function jt({ value: e, format: t, preset: r, locale: i, showIcon: o = !1, icon: s = De, emptyLabel: c = "—", className: l }) {
|
|
1352
|
+
let u = re(e);
|
|
1339
1353
|
return u ? /* @__PURE__ */ R("span", {
|
|
1340
1354
|
className: n("date-cell--component inline-flex items-center gap-space-sm", l),
|
|
1341
|
-
children: [!!o && /* @__PURE__ */ L(s, { className: "size-icon text-muted-foreground" }), /* @__PURE__ */ L(
|
|
1355
|
+
children: [!!o && /* @__PURE__ */ L(s, { className: "size-icon text-muted-foreground" }), /* @__PURE__ */ L(D, {
|
|
1342
1356
|
value: u,
|
|
1343
1357
|
format: t,
|
|
1344
|
-
preset:
|
|
1345
|
-
locale:
|
|
1358
|
+
preset: r,
|
|
1359
|
+
locale: i,
|
|
1346
1360
|
emptyLabel: c,
|
|
1347
1361
|
size: "inherit",
|
|
1348
1362
|
type: "secondary"
|
|
1349
1363
|
})]
|
|
1350
|
-
}) : /* @__PURE__ */ L(
|
|
1364
|
+
}) : /* @__PURE__ */ L(a, {
|
|
1351
1365
|
size: "inherit",
|
|
1352
1366
|
type: "secondary",
|
|
1353
1367
|
className: n("date-cell--component", l),
|
|
1354
1368
|
children: c
|
|
1355
1369
|
});
|
|
1356
1370
|
}
|
|
1357
|
-
|
|
1358
|
-
function
|
|
1359
|
-
let p =
|
|
1360
|
-
if (!p) return /* @__PURE__ */ L(
|
|
1371
|
+
jt.displayName = "DateCell";
|
|
1372
|
+
function Q({ value: e, format: t, preset: r, locale: i, showIcon: o = !1, icon: s = De, emptyLabel: c = "—", className: l, primaryClassName: u, secondary: d, secondaryClassName: f }) {
|
|
1373
|
+
let p = re(e);
|
|
1374
|
+
if (!p) return /* @__PURE__ */ L(a, {
|
|
1361
1375
|
size: "inherit",
|
|
1362
1376
|
type: "secondary",
|
|
1363
1377
|
className: n("date-meta-cell--component", l),
|
|
@@ -1368,16 +1382,16 @@ function Ot({ value: e, format: t, preset: i, locale: a, showIcon: o = !0, icon:
|
|
|
1368
1382
|
className: n("date-meta-cell--component inline-flex min-w-0 items-start gap-space-sm", l),
|
|
1369
1383
|
children: [!!o && /* @__PURE__ */ L(s, { className: "mt-space-2xs size-icon shrink-0 text-muted-foreground" }), /* @__PURE__ */ R("span", {
|
|
1370
1384
|
className: "grid min-w-0 gap-space-2xs",
|
|
1371
|
-
children: [/* @__PURE__ */ L(
|
|
1385
|
+
children: [/* @__PURE__ */ L(D, {
|
|
1372
1386
|
value: p,
|
|
1373
1387
|
format: t,
|
|
1374
|
-
preset:
|
|
1375
|
-
locale:
|
|
1388
|
+
preset: r,
|
|
1389
|
+
locale: i,
|
|
1376
1390
|
emptyLabel: c,
|
|
1377
1391
|
size: "inherit",
|
|
1378
1392
|
type: "secondary",
|
|
1379
1393
|
className: n("truncate tabular-nums", u)
|
|
1380
|
-
}), !!m && /* @__PURE__ */ L(
|
|
1394
|
+
}), !!m && /* @__PURE__ */ L(a, {
|
|
1381
1395
|
tag: "span",
|
|
1382
1396
|
size: "inherit",
|
|
1383
1397
|
type: "secondary",
|
|
@@ -1387,9 +1401,9 @@ function Ot({ value: e, format: t, preset: i, locale: a, showIcon: o = !0, icon:
|
|
|
1387
1401
|
})]
|
|
1388
1402
|
});
|
|
1389
1403
|
}
|
|
1390
|
-
|
|
1391
|
-
function
|
|
1392
|
-
return /* @__PURE__ */ L(
|
|
1404
|
+
Q.displayName = "DateMetaCell";
|
|
1405
|
+
function Mt({ value: e, currency: t, locale: r, emptyLabel: i = "—", className: a, weight: o = "semibold" }) {
|
|
1406
|
+
return /* @__PURE__ */ L(T, {
|
|
1393
1407
|
amount: e,
|
|
1394
1408
|
currency: t,
|
|
1395
1409
|
locale: r,
|
|
@@ -1400,9 +1414,9 @@ function kt({ value: e, currency: t, locale: r, emptyLabel: i = "—", className
|
|
|
1400
1414
|
className: n("currency-cell--component tabular-nums", a)
|
|
1401
1415
|
});
|
|
1402
1416
|
}
|
|
1403
|
-
|
|
1404
|
-
function
|
|
1405
|
-
return !e || e.trim().length === 0 ? /* @__PURE__ */ L(
|
|
1417
|
+
Mt.displayName = "CurrencyCell";
|
|
1418
|
+
function $({ name: e, imageUrl: t, icon: r = je, subtitle: i, emptyLabel: o = "—", className: s }) {
|
|
1419
|
+
return !e || e.trim().length === 0 ? /* @__PURE__ */ L(a, {
|
|
1406
1420
|
size: "inherit",
|
|
1407
1421
|
type: "secondary",
|
|
1408
1422
|
className: n("avatar-cell--component", s),
|
|
@@ -1415,30 +1429,30 @@ function At({ name: e, imageUrl: t, icon: i = De, subtitle: a, emptyLabel: o = "
|
|
|
1415
1429
|
src: t,
|
|
1416
1430
|
alt: e,
|
|
1417
1431
|
className: "absolute inset-0 size-full object-cover"
|
|
1418
|
-
}) : e.length > 0 ? /* @__PURE__ */ L(
|
|
1432
|
+
}) : e.length > 0 ? /* @__PURE__ */ L(a, {
|
|
1419
1433
|
size: "inherit",
|
|
1420
1434
|
weight: "semibold",
|
|
1421
1435
|
className: "text-sm leading-none",
|
|
1422
|
-
children:
|
|
1423
|
-
}) : /* @__PURE__ */ L(
|
|
1436
|
+
children: C(e, { strategy: "first-words" })
|
|
1437
|
+
}) : /* @__PURE__ */ L(r, { className: "size-icon" })
|
|
1424
1438
|
}), /* @__PURE__ */ R("span", {
|
|
1425
1439
|
className: "min-w-0 inline-flex flex-col",
|
|
1426
|
-
children: [/* @__PURE__ */ L(
|
|
1440
|
+
children: [/* @__PURE__ */ L(a, {
|
|
1427
1441
|
size: "inherit",
|
|
1428
1442
|
weight: "medium",
|
|
1429
1443
|
className: "truncate",
|
|
1430
1444
|
children: e
|
|
1431
|
-
}), !!
|
|
1445
|
+
}), !!i && /* @__PURE__ */ L(a, {
|
|
1432
1446
|
size: "inherit",
|
|
1433
1447
|
type: "secondary",
|
|
1434
1448
|
className: "truncate",
|
|
1435
|
-
children:
|
|
1449
|
+
children: i
|
|
1436
1450
|
})]
|
|
1437
1451
|
})]
|
|
1438
1452
|
});
|
|
1439
1453
|
}
|
|
1440
|
-
|
|
1454
|
+
$.displayName = "AvatarCell";
|
|
1441
1455
|
//#endregion
|
|
1442
|
-
export {
|
|
1456
|
+
export { V as A, Qe as C, Ze as D, U as E, Ve as M, He as N, Xe as O, $e as S, W as T, at as _, kt as a, nt as b, Dt as c, q as d, K as f, ot as g, ct as h, Q as i, Ke as j, Ye as k, Y as l, ft as m, Mt as n, At as o, mt as p, jt as r, Z as s, $ as t, Et as u, it as v, et as w, tt as x, rt as y };
|
|
1443
1457
|
|
|
1444
|
-
//# sourceMappingURL=table-
|
|
1458
|
+
//# sourceMappingURL=table-CrcLN9Io.js.map
|