themelia-react-ui 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +307 -131
- package/README.md +28 -8
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/{accordion-B6a3vVgA.js → accordion-Cjb6sx0G.js} +14 -13
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-ZK5RWdo6.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-ZK5RWdo6.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-CYxKfo69.js → auth-ax2BqjrI.js} +58 -54
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-BBnEJIx8.js → avatar-DAPlDvhJ.js} +7 -7
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/{badge-MrKVNzW9.js → badge-HpFqoqSY.js} +40 -40
- package/dist/badge-HpFqoqSY.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +40 -36
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +92 -92
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +6 -6
- 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 +14 -14
- 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 +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +171 -176
- 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 +6 -6
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +46 -45
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-BZGDG-Si.js → batch-action-bar-DnUJ21NQ.js} +6 -5
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +42 -42
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +260 -240
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +620 -585
- 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 +1152 -1109
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +48 -39
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +13 -12
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-D5t7I023.js → breadcrumbs-C-oqs1sQ.js} +5 -5
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-QYwiyhD2.js → button-DVzspB_G.js} +2 -2
- package/dist/{button-QYwiyhD2.js.map → button-DVzspB_G.js.map} +1 -1
- package/dist/{buttons-SbIcm1HJ.js → buttons-DPZekJFu.js} +20 -15
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-QfrARkXl.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/{checkbox-DhB6K0bK.js → checkbox-AWIhNhmo.js} +2 -2
- package/dist/{checkbox-DhB6K0bK.js.map → checkbox-AWIhNhmo.js.map} +1 -1
- package/dist/{choice-inputs-t6w3ATNz.js → choice-inputs-CNHvARCJ.js} +49 -45
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/{code-block-Dgbu-CU3.js → code-block-DeneBJR_.js} +8 -8
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-D8AEGU1-.js → collapsible-C-_l4hpy.js} +3 -3
- package/dist/{collapsible-D8AEGU1-.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-uK16Grv0.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-uK16Grv0.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kNR20o7x.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kNR20o7x.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-BpDuCUUu.js → comments-BYYlTA8E.js} +114 -105
- package/dist/comments-BYYlTA8E.js.map +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +1 -1
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/forms/form-sizing.d.ts +11 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +3 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
- package/dist/components/features/rich-text-editor/index.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +9 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +17 -4
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/text-link.d.ts +4 -0
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-DmWiJa2I.js → containers-Mu1LMGV1.js} +2 -2
- package/dist/{containers-DmWiJa2I.js.map → containers-Mu1LMGV1.js.map} +1 -1
- package/dist/{copyable-B3Gwgdqc.js → copyable-ClBuk_UK.js} +4 -4
- package/dist/{copyable-B3Gwgdqc.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/{data-display-DafIvCl5.js → data-display-DT_khPl_.js} +98 -87
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-BgK3bTdo.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-BgK3bTdo.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/{date-picker-CF-DtUpF.js → date-picker-ay0Pha_a.js} +594 -593
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/{display-DsQTVzMz.js → display-hAc1HjpI.js} +49 -49
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +398 -375
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +188 -179
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +137 -137
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer.js +255 -255
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +254 -248
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +35 -32
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +118 -117
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +233 -231
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +789 -775
- 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 +922 -902
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +28 -24
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +18 -15
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +12 -12
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +15 -13
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +493 -489
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/{field-affordance-recipes-qQeIf4lG.js → field-affordance-recipes-DZhnIL_Y.js} +11 -18
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/{filters-BkHH53uv.js → filters-BGfvjP4d.js} +589 -580
- package/dist/filters-BGfvjP4d.js.map +1 -0
- package/dist/{form-field-DUt4UxSV.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-By94KzXE.js → form-sizing-BdP_Mf5p.js} +39 -44
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-Bzha-Y3B.js → forms-B9G_xwzi.js} +8 -8
- package/dist/{forms-Bzha-Y3B.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/{forms-numeric-C0bvjRPZ.js → forms-numeric-B_jraJaQ.js} +309 -309
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-BOefOKd1.js → header-CGXuhcRm.js} +160 -153
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-9k_TtmKh.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-9k_TtmKh.js.map → hooks-Dkz0K2WT.js.map} +1 -1
- package/dist/{icon-badge-CAuKupo9.js → icon-badge-DYKIwvOV.js} +4 -4
- package/dist/{icon-badge-CAuKupo9.js.map → icon-badge-DYKIwvOV.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/{interaction-recipes-CHr0dJUs.js → interaction-recipes-XR9ZpVYL.js} +2 -1
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/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 +71 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +2 -2
- package/dist/lib/interaction-recipes.d.ts +5 -0
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/tone-recipes.d.ts +8 -0
- package/dist/lib/ui-provider/types.d.ts +2 -2
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-DcTtAaeC.js → media-gallery-3zIVLMWH.js} +8 -8
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/{mentions-D-uyCh01.js → mentions-utuUvH1K.js} +144 -142
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-CdHgIWKf.js → message-DZ_ruyUV.js} +6 -5
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/{metadata-list-X5rYAKSB.js → metadata-list-8N16ZMW_.js} +130 -119
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{navigation-D3KwXmaq.js → navigation-Bnotn4AQ.js} +19 -19
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/{navigation-HJf5zxlH.js → navigation-BzhHI3lo.js} +36 -35
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-BVowojQw.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-BVowojQw.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-DMhe-Vsk.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-DMhe-Vsk.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/{overflow-tab-bar-sQHXLlwQ.js → overflow-tab-bar-CWY7Nogn.js} +105 -103
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/{overlays-I0axtYA6.js → overlays-DNWmZrJ4.js} +14 -12
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/{page-B5dTH9gE.js → page-Bgl1F560.js} +8 -8
- package/dist/{page-B5dTH9gE.js.map → page-Bgl1F560.js.map} +1 -1
- package/dist/{page-header-commands-DjzFEq3E.js → page-header-commands-DOb6WsfD.js} +5 -5
- package/dist/{page-header-commands-DjzFEq3E.js.map → page-header-commands-DOb6WsfD.js.map} +1 -1
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Di55PyAI.js → popover-7_m66eYW.js} +8 -7
- package/dist/{popover-Di55PyAI.js.map → popover-7_m66eYW.js.map} +1 -1
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-Bdyhj2db.js → popover.recipes-D3j8R8Yp.js} +17 -10
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-B-CkiEMU.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-rnS8-uAW.js → progress-B1VnCT0K.js} +5 -5
- package/dist/{progress-rnS8-uAW.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-D0oswZ0p.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-D0oswZ0p.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/{rich-text-DvGulsNJ.js → rich-text-GOUyKQ-s.js} +3 -3
- package/dist/{rich-text-DvGulsNJ.js.map → rich-text-GOUyKQ-s.js.map} +1 -1
- package/dist/{rich-text-editor-sMU_Scqm.js → rich-text-editor-cRLC-eBK.js} +418 -426
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/{scroll-area-Bt_vXY2b.js → scroll-area-DcI-M1UT.js} +2 -2
- package/dist/{scroll-area-Bt_vXY2b.js.map → scroll-area-DcI-M1UT.js.map} +1 -1
- package/dist/{separator-C8DlRGwF.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-C8DlRGwF.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-CYHnjsAb.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-CYHnjsAb.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/{settings-CQW3b-Cu.js → settings-ybnjVwbd.js} +20 -19
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/{sheet-4SEvVYzA.js → sheet-CGpB3omz.js} +8 -7
- package/dist/{sheet-4SEvVYzA.js.map → sheet-CGpB3omz.js.map} +1 -1
- package/dist/{sidebar-d7Dg80ln.js → sidebar-A0ElHINE.js} +14 -13
- package/dist/{sidebar-d7Dg80ln.js.map → sidebar-A0ElHINE.js.map} +1 -1
- package/dist/{sidebar-C7WWR29L.js → sidebar-CPx_7YBa.js} +183 -182
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-Cz890JZF.js → skeleton-Byjnt7qr.js} +3 -3
- package/dist/{skeleton-Cz890JZF.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-DC2dygdA.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-DC2dygdA.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/{table-CIKyLUsy.js → table-DsfzoUia.js} +75 -63
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/{tabs-DwBJfjxX.js → tabs-CDocW5D1.js} +14 -13
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/{tone-recipes-CPoExcTE.js → tone-recipes-BPsRAvhu.js} +5 -2
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/{tooltip-CsfgrfS7.js → tooltip-yiRJUFjp.js} +4 -4
- package/dist/{tooltip-CsfgrfS7.js.map → tooltip-yiRJUFjp.js.map} +1 -1
- package/dist/{tree-BiKhg8AY.js → tree-WnKQzwbq.js} +9 -9
- package/dist/{tree-BiKhg8AY.js.map → tree-WnKQzwbq.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-DTRkE9zL.js → typography-UTnveOEy.js} +6 -6
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-1D_NSYzO.js → ui-provider-C_U0Xma4.js} +3 -3
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +2 -2
- package/dist/{upload-BO8-CLN6.js → upload-CXyxmQBP.js} +13 -12
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-EOC8g1gf.js → upload-queue-Boscubn9.js} +11 -9
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/{usage-card-obRaBskq.js → usage-card-BhO5eqkX.js} +53 -37
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-l5LpDw2z.js → utils-BRhFDwuU.js} +59 -44
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/{value-inputs-TAYMX111.js → value-inputs-DXPDjvBU.js} +268 -252
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-b8wpz1eX.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-b8wpz1eX.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/{workspace-DH0v0KcB.js → workspace-Cdrg7k9f.js} +34 -33
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +2 -2
- package/docs/consumer-skill/references/agents-md.md +1 -1
- package/docs/consumer-skill/references/composition.md +8 -6
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +105 -2
- package/docs/consumer-skill/references/review.md +7 -0
- package/docs/consumer-skill/references/theming.md +71 -6
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +25 -0
- package/docs/consumer-skill/scripts/composition-policy.mjs +3 -2
- package/docs/consumer-skill/scripts/surface-policy.mjs +11 -0
- package/package.json +8 -4
- package/dist/accordion-B6a3vVgA.js.map +0 -1
- package/dist/action-menu-TzCoSlwL.js +0 -280
- package/dist/action-menu-TzCoSlwL.js.map +0 -1
- package/dist/affordance-geometry.generated-B5iu-Mkr.js +0 -69
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +0 -1
- package/dist/ai-artifact-BMJdv-6q.js +0 -1115
- package/dist/ai-artifact-BMJdv-6q.js.map +0 -1
- package/dist/attachment-BtfhGm8i.js +0 -245
- package/dist/attachment-BtfhGm8i.js.map +0 -1
- package/dist/auth-CYxKfo69.js.map +0 -1
- package/dist/avatar-BBnEJIx8.js.map +0 -1
- package/dist/badge-MrKVNzW9.js.map +0 -1
- package/dist/batch-action-bar-BZGDG-Si.js.map +0 -1
- package/dist/breadcrumbs-D5t7I023.js.map +0 -1
- package/dist/buttons-SbIcm1HJ.js.map +0 -1
- package/dist/cards-CiiHpKYd.js +0 -66
- package/dist/cards-CiiHpKYd.js.map +0 -1
- package/dist/chart-QfrARkXl.js.map +0 -1
- package/dist/choice-inputs-t6w3ATNz.js.map +0 -1
- package/dist/code-block-Dgbu-CU3.js.map +0 -1
- package/dist/combobox-2Ic8N9bL.js +0 -278
- package/dist/combobox-2Ic8N9bL.js.map +0 -1
- package/dist/combobox-DLl0bfiq.js +0 -867
- package/dist/combobox-DLl0bfiq.js.map +0 -1
- package/dist/comments-BpDuCUUu.js.map +0 -1
- package/dist/data-display-DafIvCl5.js.map +0 -1
- package/dist/date-picker-CF-DtUpF.js.map +0 -1
- package/dist/date-pickers-BmzxJl5l.js +0 -174
- package/dist/date-pickers-BmzxJl5l.js.map +0 -1
- package/dist/display-DsQTVzMz.js.map +0 -1
- package/dist/dropdown-menu-E2qmdC7o.js +0 -193
- package/dist/dropdown-menu-E2qmdC7o.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-qNuMBtRH.js +0 -233
- package/dist/feedback-qNuMBtRH.js.map +0 -1
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +0 -1
- package/dist/filters-BkHH53uv.js.map +0 -1
- package/dist/form-field-DUt4UxSV.js.map +0 -1
- package/dist/form-sizing-By94KzXE.js.map +0 -1
- package/dist/forms-numeric-C0bvjRPZ.js.map +0 -1
- package/dist/header-BOefOKd1.js.map +0 -1
- package/dist/input-DWhBBBww.js +0 -262
- package/dist/input-DWhBBBww.js.map +0 -1
- package/dist/input-Ddi_LSYv.js +0 -20
- package/dist/input-Ddi_LSYv.js.map +0 -1
- package/dist/interaction-recipes-CHr0dJUs.js.map +0 -1
- package/dist/item-DEmDiTlD.js +0 -265
- package/dist/item-DEmDiTlD.js.map +0 -1
- package/dist/media-gallery-DcTtAaeC.js.map +0 -1
- package/dist/mentions-D-uyCh01.js.map +0 -1
- package/dist/message-CdHgIWKf.js.map +0 -1
- package/dist/metadata-list-X5rYAKSB.js.map +0 -1
- package/dist/navigation-D3KwXmaq.js.map +0 -1
- package/dist/navigation-HJf5zxlH.js.map +0 -1
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +0 -1
- package/dist/overlays-I0axtYA6.js.map +0 -1
- package/dist/pagination-3bPA_a6K.js +0 -149
- package/dist/pagination-3bPA_a6K.js.map +0 -1
- package/dist/popover-menu-B71Tn2Qz.js +0 -99
- package/dist/popover-menu-B71Tn2Qz.js.map +0 -1
- package/dist/popover.recipes-Bdyhj2db.js.map +0 -1
- package/dist/primitives-B-CkiEMU.js.map +0 -1
- package/dist/rich-text-editor-sMU_Scqm.js.map +0 -1
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +0 -88
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +0 -1
- package/dist/settings-CQW3b-Cu.js.map +0 -1
- package/dist/sidebar-C7WWR29L.js.map +0 -1
- package/dist/smart-card-lFKxn5Hu.js +0 -595
- package/dist/smart-card-lFKxn5Hu.js.map +0 -1
- package/dist/spinner-fa3h1Aif.js +0 -80
- package/dist/spinner-fa3h1Aif.js.map +0 -1
- package/dist/table-CIKyLUsy.js.map +0 -1
- package/dist/table-CrcLN9Io.js +0 -1458
- package/dist/table-CrcLN9Io.js.map +0 -1
- package/dist/tabs-DwBJfjxX.js.map +0 -1
- package/dist/text-inputs-aaK9wcDT.js +0 -326
- package/dist/text-inputs-aaK9wcDT.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-C_SBwHNP.js +0 -442
- package/dist/timelines-C_SBwHNP.js.map +0 -1
- package/dist/tone-recipes-CPoExcTE.js.map +0 -1
- package/dist/typography-DTRkE9zL.js.map +0 -1
- package/dist/ui-provider-1D_NSYzO.js.map +0 -1
- package/dist/upload-BO8-CLN6.js.map +0 -1
- package/dist/upload-queue-EOC8g1gf.js.map +0 -1
- package/dist/usage-card-obRaBskq.js.map +0 -1
- package/dist/utils-l5LpDw2z.js.map +0 -1
- package/dist/value-inputs-TAYMX111.js.map +0 -1
- package/dist/workspace-DH0v0KcB.js.map +0 -1
|
@@ -1,118 +1,117 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useStrings as e } from "../lib/strings.js";
|
|
3
|
-
import { t } from "../utils-
|
|
4
|
-
import { n } from "../buttons-
|
|
5
|
-
import {
|
|
6
|
-
import { r as i, t as a } from "../structure-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { isValid as O, parse as k } from "date-fns";
|
|
3
|
+
import { t } from "../utils-BRhFDwuU.js";
|
|
4
|
+
import { n } from "../buttons-DPZekJFu.js";
|
|
5
|
+
import { c as r } from "../typography-UTnveOEy.js";
|
|
6
|
+
import { r as i, t as a } from "../structure-BmisBK-3.js";
|
|
7
|
+
import { g as o } from "../primitives-BFK08r9M.js";
|
|
8
|
+
import { t as s } from "../number-DbV1Dija.js";
|
|
9
|
+
import { i as c, r as l, t as u } from "../tabs-CDocW5D1.js";
|
|
10
|
+
import { t as d } from "../popover-menu-B9WWygpa.js";
|
|
11
|
+
import { f } from "../table-BweFy_P9.js";
|
|
12
|
+
import { N as p, O as m, P as h, T as g, l as _, w as v } from "../filters-BGfvjP4d.js";
|
|
13
|
+
import { useEffect as y, useMemo as b, useRef as x } from "react";
|
|
14
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
15
|
+
import { Check as T, ChevronsUpDown as E } from "lucide-react";
|
|
16
|
+
import { isValid as D, parse as O } from "date-fns";
|
|
18
17
|
//#region src/components/features/data-view/data-view.strings.ts
|
|
19
|
-
var
|
|
18
|
+
var k = {
|
|
20
19
|
page: "Page",
|
|
21
20
|
previous: "Previous",
|
|
22
21
|
next: "Next"
|
|
23
|
-
},
|
|
22
|
+
}, A = "View";
|
|
24
23
|
//#endregion
|
|
25
24
|
//#region src/components/features/data-view/data-view-filtering.ts
|
|
26
|
-
function
|
|
25
|
+
function j(e, t) {
|
|
27
26
|
return t.includes(".") ? t.split(".").reduce((e, t) => {
|
|
28
27
|
if (e && typeof e == "object") return e[t];
|
|
29
28
|
}, e) : e && typeof e == "object" ? e[t] : void 0;
|
|
30
29
|
}
|
|
31
|
-
function
|
|
30
|
+
function M(e) {
|
|
32
31
|
return e == null ? "" : e instanceof Date ? e.toISOString() : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
|
|
33
32
|
}
|
|
34
|
-
function
|
|
35
|
-
return e == null || t > 2 ? "" : e instanceof Date ? e.toISOString() : typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : Array.isArray(e) ? e.map((e) =>
|
|
33
|
+
function N(e, t = 0) {
|
|
34
|
+
return e == null || t > 2 ? "" : e instanceof Date ? e.toISOString() : typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : Array.isArray(e) ? e.map((e) => N(e, t + 1)).join(" ") : typeof e == "object" ? Object.values(e).map((e) => N(e, t + 1)).join(" ") : "";
|
|
36
35
|
}
|
|
37
|
-
function
|
|
38
|
-
if (Array.isArray(e)) return e.map(
|
|
39
|
-
let t =
|
|
36
|
+
function P(e) {
|
|
37
|
+
if (Array.isArray(e)) return e.map(M).filter(Boolean).map((e) => e.toLowerCase());
|
|
38
|
+
let t = M(e);
|
|
40
39
|
return t ? [t.toLowerCase()] : [];
|
|
41
40
|
}
|
|
42
|
-
function
|
|
41
|
+
function F(e) {
|
|
43
42
|
let t = Number(e);
|
|
44
43
|
return Number.isFinite(t) ? t : void 0;
|
|
45
44
|
}
|
|
46
|
-
function
|
|
45
|
+
function I(e, t) {
|
|
47
46
|
if (t) {
|
|
48
|
-
let n =
|
|
49
|
-
if (
|
|
47
|
+
let n = O(e, t, /* @__PURE__ */ new Date(0));
|
|
48
|
+
if (D(n)) return n.getTime();
|
|
50
49
|
}
|
|
51
50
|
let n = new Date(e);
|
|
52
|
-
return
|
|
51
|
+
return D(n) ? n.getTime() : void 0;
|
|
53
52
|
}
|
|
54
|
-
function
|
|
55
|
-
let i = r?.type ===
|
|
53
|
+
function L(e, t, n, r) {
|
|
54
|
+
let i = r?.type === h.DATE ? (e) => I(e, r.dateFormat?.param ?? "yyyy-MM-dd") : F, a = e.map(i).filter((e) => e !== void 0), o = t.map(i).filter((e) => e !== void 0);
|
|
56
55
|
if (a.length === 0 || o.length === 0) return !1;
|
|
57
56
|
switch (n) {
|
|
58
|
-
case
|
|
59
|
-
case
|
|
60
|
-
case
|
|
61
|
-
case
|
|
62
|
-
case
|
|
63
|
-
case
|
|
64
|
-
case
|
|
57
|
+
case p.GT:
|
|
58
|
+
case p.AFTER: return a.some((e) => e > o[0]);
|
|
59
|
+
case p.GTE: return a.some((e) => e >= o[0]);
|
|
60
|
+
case p.LT:
|
|
61
|
+
case p.BEFORE: return a.some((e) => e < o[0]);
|
|
62
|
+
case p.LTE: return a.some((e) => e <= o[0]);
|
|
63
|
+
case p.BETWEEN: return o.length < 2 ? !1 : a.some((e) => e >= o[0] && e <= o[1]);
|
|
65
64
|
default: return !1;
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
|
-
function
|
|
67
|
+
function R(e) {
|
|
69
68
|
return {
|
|
70
69
|
key: e,
|
|
71
70
|
label: e,
|
|
72
|
-
type:
|
|
71
|
+
type: h.SEARCH,
|
|
73
72
|
icon: null,
|
|
74
73
|
displayConfig: {}
|
|
75
74
|
};
|
|
76
75
|
}
|
|
77
|
-
function
|
|
76
|
+
function z(e, t, n, r) {
|
|
78
77
|
let i = t.value.map((e) => e.trim().toLowerCase()).filter(Boolean);
|
|
79
78
|
if (i.length === 0) return !0;
|
|
80
|
-
if (n?.type ===
|
|
81
|
-
let n =
|
|
82
|
-
return t.operator ===
|
|
79
|
+
if (n?.type === h.SEARCH) {
|
|
80
|
+
let n = N(e).toLowerCase();
|
|
81
|
+
return t.operator === p.NOT || t.operator === p.NOT_IN ? i.every((e) => !n.includes(e)) : i.every((e) => n.includes(e));
|
|
83
82
|
}
|
|
84
|
-
let a = n ??
|
|
83
|
+
let a = n ?? R(t.key), o = P(r?.(e, a) ?? j(e, t.key));
|
|
85
84
|
if (o.length === 0) return !1;
|
|
86
85
|
switch (t.operator) {
|
|
87
|
-
case
|
|
88
|
-
case
|
|
89
|
-
case
|
|
90
|
-
case
|
|
91
|
-
case
|
|
92
|
-
case
|
|
93
|
-
case
|
|
94
|
-
case
|
|
95
|
-
case
|
|
96
|
-
case
|
|
97
|
-
case
|
|
98
|
-
case
|
|
99
|
-
case
|
|
100
|
-
case
|
|
101
|
-
case
|
|
86
|
+
case p.CONTAINS: return i.every((e) => o.some((t) => t.includes(e)));
|
|
87
|
+
case p.HAS: return i.every((e) => o.includes(e));
|
|
88
|
+
case p.NOT_IN: return i.every((e) => o.every((t) => t !== e));
|
|
89
|
+
case p.NOT: return n?.type === h.SELECT || n?.type === h.MULTI_SELECT || n?.type === h.ASYNC_SELECT ? i.every((e) => o.every((t) => t !== e)) : i.every((e) => o.every((t) => !t.includes(e)));
|
|
90
|
+
case p.IN:
|
|
91
|
+
case p.EQUALS:
|
|
92
|
+
case p.HAS_ANY: return i.some((e) => o.includes(e));
|
|
93
|
+
case p.HAS_ALL: return i.every((e) => o.includes(e));
|
|
94
|
+
case p.GT:
|
|
95
|
+
case p.GTE:
|
|
96
|
+
case p.LT:
|
|
97
|
+
case p.LTE:
|
|
98
|
+
case p.BEFORE:
|
|
99
|
+
case p.AFTER:
|
|
100
|
+
case p.BETWEEN: return L(o, i, t.operator, n);
|
|
102
101
|
default: return i.some((e) => o.includes(e));
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
|
-
function
|
|
104
|
+
function B(e, t, n, r) {
|
|
106
105
|
if (t.length === 0) return e;
|
|
107
106
|
let i = new Map(n.map((e) => [e.key, e]));
|
|
108
|
-
return e.filter((e) => t.every((t) =>
|
|
107
|
+
return e.filter((e) => t.every((t) => z(e, t, i.get(t.key), r)));
|
|
109
108
|
}
|
|
110
109
|
//#endregion
|
|
111
110
|
//#region src/components/features/data-view/hooks/use-data-view.ts
|
|
112
|
-
function
|
|
113
|
-
let n =
|
|
111
|
+
function V({ data: e, filtering: t }) {
|
|
112
|
+
let n = x(t?.onError);
|
|
114
113
|
n.current = t?.onError;
|
|
115
|
-
let r =
|
|
114
|
+
let r = x(null), i = t?.activeFilters, a = t?.filterRows, o = t?.filters, s = t?.getFilterValue, c = t !== void 0, l = b(() => {
|
|
116
115
|
if (!c || !i || !o) return {
|
|
117
116
|
rows: e,
|
|
118
117
|
error: null,
|
|
@@ -124,7 +123,7 @@ function H({ data: e, filtering: t }) {
|
|
|
124
123
|
data: e,
|
|
125
124
|
activeFilters: i,
|
|
126
125
|
filters: o
|
|
127
|
-
}) :
|
|
126
|
+
}) : B(e, i, o, s),
|
|
128
127
|
error: null,
|
|
129
128
|
failed: !1
|
|
130
129
|
};
|
|
@@ -143,7 +142,7 @@ function H({ data: e, filtering: t }) {
|
|
|
143
142
|
s,
|
|
144
143
|
c
|
|
145
144
|
]);
|
|
146
|
-
return
|
|
145
|
+
return y(() => {
|
|
147
146
|
if (!l.failed) {
|
|
148
147
|
r.current = null;
|
|
149
148
|
return;
|
|
@@ -153,8 +152,8 @@ function H({ data: e, filtering: t }) {
|
|
|
153
152
|
}
|
|
154
153
|
//#endregion
|
|
155
154
|
//#region src/components/features/data-view/data-view.tsx
|
|
156
|
-
function
|
|
157
|
-
let { activeFilters: t, filters: n, replaceFilters: r } =
|
|
155
|
+
function H(e) {
|
|
156
|
+
let { activeFilters: t, filters: n, replaceFilters: r } = g(), i = b(() => t.filter((e) => n.find((t) => t.key === e.key)?.type !== h.SEARCH), [t, n]), a = b(() => t.filter((e) => n.find((t) => t.key === e.key)?.type === h.SEARCH), [t, n]), o = b(() => {
|
|
158
157
|
for (let t of e) {
|
|
159
158
|
if (t.presets.length === 0) {
|
|
160
159
|
if (i.length === 0) return t;
|
|
@@ -174,7 +173,7 @@ function U(e) {
|
|
|
174
173
|
return;
|
|
175
174
|
}
|
|
176
175
|
let t = e.presets.map((e) => {
|
|
177
|
-
let t = n.find((t) => t.key === e.key), r = e.operator ?? t?.operator ?? (t ?
|
|
176
|
+
let t = n.find((t) => t.key === e.key), r = e.operator ?? t?.operator ?? (t ? m(t.type) : p.EQUALS);
|
|
178
177
|
return {
|
|
179
178
|
id: e.key,
|
|
180
179
|
key: e.key,
|
|
@@ -189,9 +188,9 @@ function U(e) {
|
|
|
189
188
|
applyTab: s
|
|
190
189
|
};
|
|
191
190
|
}
|
|
192
|
-
function
|
|
193
|
-
let { activeTab: i, applyTab: a } =
|
|
194
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
191
|
+
function U({ tabs: e, label: t = A }) {
|
|
192
|
+
let { activeTab: i, applyTab: a } = H(e);
|
|
193
|
+
return e.length === 0 ? null : /* @__PURE__ */ C(d, {
|
|
195
194
|
search: !1,
|
|
196
195
|
contentClassName: "w-48",
|
|
197
196
|
items: e.map((e) => ({
|
|
@@ -204,69 +203,70 @@ function W({ tabs: e, label: t = j }) {
|
|
|
204
203
|
onSelect: (e) => {
|
|
205
204
|
e.data && a(e.data);
|
|
206
205
|
},
|
|
207
|
-
renderItem: (e) => /* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
206
|
+
renderItem: (e) => /* @__PURE__ */ w(S, { children: [
|
|
207
|
+
/* @__PURE__ */ C("span", {
|
|
209
208
|
className: "flex size-icon-sm shrink-0 items-center justify-center",
|
|
210
|
-
children: !!e.selected && /* @__PURE__ */
|
|
209
|
+
children: !!e.selected && /* @__PURE__ */ C(T, {
|
|
211
210
|
className: "size-icon-sm",
|
|
212
211
|
"aria-hidden": "true"
|
|
213
212
|
})
|
|
214
213
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ C(r, {
|
|
216
215
|
tag: "span",
|
|
216
|
+
type: "inherit",
|
|
217
217
|
weight: e.selected ? "medium" : "regular",
|
|
218
218
|
className: "min-w-0 flex-1 truncate",
|
|
219
219
|
children: e.label
|
|
220
220
|
}),
|
|
221
|
-
!!e.description && /* @__PURE__ */
|
|
221
|
+
!!e.description && /* @__PURE__ */ C(o, {
|
|
222
222
|
size: "xs",
|
|
223
223
|
className: "tabular-nums",
|
|
224
224
|
children: e.description
|
|
225
225
|
})
|
|
226
226
|
] }),
|
|
227
|
-
trigger: /* @__PURE__ */
|
|
227
|
+
trigger: /* @__PURE__ */ w(n, {
|
|
228
228
|
type: "button",
|
|
229
229
|
tone: "secondary",
|
|
230
230
|
buttonStyle: "ghost",
|
|
231
231
|
size: "sm",
|
|
232
232
|
className: "h-action-sm px-control-sm",
|
|
233
233
|
"aria-label": t,
|
|
234
|
-
children: [/* @__PURE__ */
|
|
234
|
+
children: [/* @__PURE__ */ C(r, {
|
|
235
235
|
tag: "span",
|
|
236
236
|
size: "inherit",
|
|
237
237
|
className: "truncate text-current",
|
|
238
238
|
children: i?.label ?? t
|
|
239
|
-
}), /* @__PURE__ */
|
|
239
|
+
}), /* @__PURE__ */ C(E, {
|
|
240
240
|
className: "size-icon-sm",
|
|
241
241
|
"aria-hidden": "true"
|
|
242
242
|
})]
|
|
243
243
|
})
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
return /* @__PURE__ */
|
|
248
|
-
render: /* @__PURE__ */
|
|
246
|
+
function W({ children: e, header: n, toolbar: r, footer: i, emptySlot: o, empty: s = !1, className: c, contentClassName: l }) {
|
|
247
|
+
return /* @__PURE__ */ w(a, {
|
|
248
|
+
render: /* @__PURE__ */ C("section", {}),
|
|
249
249
|
gap: "lg",
|
|
250
250
|
"data-component": "data-view-shell",
|
|
251
251
|
"data-slot": "data-view-shell",
|
|
252
252
|
className: t("data-view-shell--component @container/data-view", c),
|
|
253
253
|
children: [
|
|
254
|
-
!!n && /* @__PURE__ */
|
|
254
|
+
!!n && /* @__PURE__ */ C("div", {
|
|
255
255
|
"data-slot": "data-view-header",
|
|
256
256
|
className: "data-view-shell--header",
|
|
257
257
|
children: n
|
|
258
258
|
}),
|
|
259
|
-
!!r && /* @__PURE__ */
|
|
259
|
+
!!r && /* @__PURE__ */ C("div", {
|
|
260
260
|
"data-slot": "data-view-toolbar-slot",
|
|
261
261
|
className: "data-view-shell--toolbar",
|
|
262
262
|
children: r
|
|
263
263
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ C("div", {
|
|
265
265
|
"data-slot": "data-view-content",
|
|
266
266
|
className: t("data-view-shell--content min-w-0", l),
|
|
267
267
|
children: s ? o : e
|
|
268
268
|
}),
|
|
269
|
-
!!i && /* @__PURE__ */
|
|
269
|
+
!!i && /* @__PURE__ */ C("div", {
|
|
270
270
|
"data-slot": "data-view-footer",
|
|
271
271
|
className: "data-view-shell--footer",
|
|
272
272
|
children: i
|
|
@@ -274,14 +274,14 @@ function G({ children: e, header: n, toolbar: r, footer: i, emptySlot: o, empty:
|
|
|
274
274
|
]
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
return /* @__PURE__ */
|
|
277
|
+
function G({ leading: e, search: n, filters: r, views: i, actions: o, className: s }) {
|
|
278
|
+
return /* @__PURE__ */ C("div", {
|
|
279
279
|
"data-component": "data-view-toolbar",
|
|
280
280
|
"data-slot": "data-view-toolbar",
|
|
281
|
-
className: t("data-view-toolbar--component rounded-radius border border-border bg-card p-surface shadow-sm", s),
|
|
282
|
-
children: /* @__PURE__ */
|
|
281
|
+
className: t("data-view-toolbar--component box-border rounded-radius border border-border bg-card text-card-foreground p-surface shadow-sm", s),
|
|
282
|
+
children: /* @__PURE__ */ w("div", {
|
|
283
283
|
className: "flex min-w-0 flex-col gap-space-lg @2xl/data-view:flex-row @2xl/data-view:items-center @2xl/data-view:justify-between @2xl/data-view:flex-nowrap",
|
|
284
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ w(a, {
|
|
285
285
|
direction: "horizontal",
|
|
286
286
|
wrap: !0,
|
|
287
287
|
align: "center",
|
|
@@ -294,7 +294,7 @@ function K({ leading: e, search: n, filters: r, views: i, actions: o, className:
|
|
|
294
294
|
r,
|
|
295
295
|
i
|
|
296
296
|
]
|
|
297
|
-
}), !!o && /* @__PURE__ */
|
|
297
|
+
}), !!o && /* @__PURE__ */ C(a, {
|
|
298
298
|
direction: "horizontal",
|
|
299
299
|
wrap: !0,
|
|
300
300
|
align: "center",
|
|
@@ -306,27 +306,27 @@ function K({ leading: e, search: n, filters: r, views: i, actions: o, className:
|
|
|
306
306
|
})
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
return /* @__PURE__ */
|
|
309
|
+
function K({ toolbar: e, children: n, footer: r, className: a, toolbarClassName: o, contentClassName: s, footerClassName: c }) {
|
|
310
|
+
return /* @__PURE__ */ w("section", {
|
|
311
311
|
"data-component": "data-view-table-frame",
|
|
312
312
|
"data-slot": "data-view-table-frame",
|
|
313
|
-
className: t("data-view-table-frame--component @container/data-view overflow-hidden rounded-radius border border-border bg-card shadow-xs", a),
|
|
313
|
+
className: t("data-view-table-frame--component box-border @container/data-view overflow-hidden rounded-radius border border-border bg-card text-card-foreground shadow-xs", a),
|
|
314
314
|
children: [
|
|
315
|
-
!!e && /* @__PURE__ */
|
|
315
|
+
!!e && /* @__PURE__ */ C("div", {
|
|
316
316
|
"data-slot": "data-view-table-frame-toolbar",
|
|
317
317
|
className: t("data-view-table-frame--toolbar border-b border-border/60 px-surface py-surface", o),
|
|
318
|
-
children: /* @__PURE__ */
|
|
318
|
+
children: /* @__PURE__ */ C(i, {
|
|
319
319
|
columns: 1,
|
|
320
320
|
gap: "lg",
|
|
321
321
|
children: e
|
|
322
322
|
})
|
|
323
323
|
}),
|
|
324
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ C("div", {
|
|
325
325
|
"data-slot": "data-view-table-frame-content",
|
|
326
326
|
className: t("data-view-table-frame--content min-w-0", s),
|
|
327
327
|
children: n
|
|
328
328
|
}),
|
|
329
|
-
!!r && /* @__PURE__ */
|
|
329
|
+
!!r && /* @__PURE__ */ C("div", {
|
|
330
330
|
"data-slot": "data-view-table-frame-footer",
|
|
331
331
|
className: t("data-view-table-frame--footer border-t border-border/60 px-surface py-row-y", c),
|
|
332
332
|
children: r
|
|
@@ -334,16 +334,16 @@ function q({ toolbar: e, children: n, footer: r, className: a, toolbarClassName:
|
|
|
334
334
|
]
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
let { rows: c } =
|
|
337
|
+
function q({ data: e, columns: n, filtering: r, table: i, slots: o, className: s }) {
|
|
338
|
+
let { rows: c } = V({
|
|
339
339
|
data: e,
|
|
340
340
|
filtering: r
|
|
341
|
-
}), l = r?.tabs ?? r?.layout?.tabs ?? [], u = r?.tabsDisplay ?? "tabs", d = u === "tabs" ? l : r?.layout?.tabs,
|
|
341
|
+
}), l = r?.tabs ?? r?.layout?.tabs ?? [], u = r?.tabsDisplay ?? "tabs", d = u === "tabs" ? l : r?.layout?.tabs, p = !!o?.toolbarStart || !!o?.toolbarAfterFilters || u === "select" && l.length > 0, m = !!r || !!o?.topbarContent || p, h = /* @__PURE__ */ C(K, {
|
|
342
342
|
className: t("data-view--component", s),
|
|
343
343
|
contentClassName: "data-view--content data-view-table--content",
|
|
344
344
|
footerClassName: "data-view--footer data-view-table--footer",
|
|
345
345
|
footer: o?.footer,
|
|
346
|
-
children: /* @__PURE__ */
|
|
346
|
+
children: /* @__PURE__ */ C(f, {
|
|
347
347
|
...i,
|
|
348
348
|
columns: n,
|
|
349
349
|
data: c,
|
|
@@ -351,30 +351,30 @@ function J({ data: e, columns: n, filtering: r, table: i, slots: o, className: s
|
|
|
351
351
|
headerTransparent: !1,
|
|
352
352
|
topbarClassName: t("data-view--topbar data-view-table--topbar py-surface @2xl/data-table:items-start", i?.topbarClassName),
|
|
353
353
|
toolbarLabelVisibility: i?.toolbarLabelVisibility ?? "hidden",
|
|
354
|
-
topbarContent: m ? /* @__PURE__ */
|
|
354
|
+
topbarContent: m ? /* @__PURE__ */ w(a, {
|
|
355
355
|
gap: "lg",
|
|
356
356
|
"data-slot": "data-view-topbar-content",
|
|
357
357
|
className: "data-view--topbar-content data-view-table--topbar-content",
|
|
358
358
|
children: [
|
|
359
359
|
o?.topbarContent,
|
|
360
|
-
|
|
360
|
+
p && /* @__PURE__ */ w(a, {
|
|
361
361
|
"data-slot": "data-view-toolbar-row",
|
|
362
362
|
direction: "horizontal",
|
|
363
363
|
gap: "md",
|
|
364
364
|
className: "data-view--toolbar-row data-view-table--toolbar-row",
|
|
365
365
|
children: [
|
|
366
366
|
o?.toolbarStart,
|
|
367
|
-
r && u === "select" && l.length > 0 && /* @__PURE__ */
|
|
367
|
+
r && u === "select" && l.length > 0 && /* @__PURE__ */ C(U, {
|
|
368
368
|
tabs: l,
|
|
369
369
|
label: r.tabsLabel
|
|
370
370
|
}),
|
|
371
371
|
o?.toolbarAfterFilters
|
|
372
372
|
]
|
|
373
373
|
}),
|
|
374
|
-
r && /* @__PURE__ */
|
|
374
|
+
r && /* @__PURE__ */ C("div", {
|
|
375
375
|
"data-slot": "data-view-filters",
|
|
376
376
|
className: "data-view--filters data-view-table--filters min-w-0",
|
|
377
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ C(_, {
|
|
378
378
|
...r.layout,
|
|
379
379
|
variant: r.layout?.variant ?? "compact",
|
|
380
380
|
showClearFilters: r.layout?.showClearFilters ?? r.activeFilters.length > 0,
|
|
@@ -384,14 +384,14 @@ function J({ data: e, columns: n, filtering: r, table: i, slots: o, className: s
|
|
|
384
384
|
})
|
|
385
385
|
]
|
|
386
386
|
}) : void 0,
|
|
387
|
-
topbarEnd: !!(o?.toolbarEnd || o?.topbarEnd) && /* @__PURE__ */
|
|
387
|
+
topbarEnd: !!(o?.toolbarEnd || o?.topbarEnd) && /* @__PURE__ */ w("div", {
|
|
388
388
|
"data-slot": "data-view-topbar-end",
|
|
389
389
|
className: "data-view--topbar-end",
|
|
390
390
|
children: [o?.toolbarEnd, o?.topbarEnd]
|
|
391
391
|
})
|
|
392
392
|
})
|
|
393
393
|
});
|
|
394
|
-
return r ? /* @__PURE__ */
|
|
394
|
+
return r ? /* @__PURE__ */ C(v, {
|
|
395
395
|
filters: r.filters,
|
|
396
396
|
activeFilters: r.activeFilters,
|
|
397
397
|
onFilterChange: r.onFilterChange,
|
|
@@ -401,8 +401,8 @@ function J({ data: e, columns: n, filtering: r, table: i, slots: o, className: s
|
|
|
401
401
|
children: h
|
|
402
402
|
}) : h;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
return /* @__PURE__ */
|
|
404
|
+
function J({ data: e, columns: t, filtering: n, table: r, slots: i, className: a }) {
|
|
405
|
+
return /* @__PURE__ */ C(q, {
|
|
406
406
|
data: e,
|
|
407
407
|
columns: t,
|
|
408
408
|
filtering: n,
|
|
@@ -411,39 +411,39 @@ function Y({ data: e, columns: t, filtering: n, table: r, slots: i, className: a
|
|
|
411
411
|
className: a
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
let p = e(
|
|
416
|
-
return /* @__PURE__ */
|
|
414
|
+
function Y({ page: i, pageCount: a, total: c, onPageChange: l, disabled: u = !1, className: d, strings: f }) {
|
|
415
|
+
let p = e(k, f), m = i > 1, h = a === void 0 || i < a, g = a ? `${p.page} ${i} / ${a}` : `${p.page} ${i}`, _ = !!l && !u;
|
|
416
|
+
return /* @__PURE__ */ w("nav", {
|
|
417
417
|
"data-component": "data-view-pagination",
|
|
418
418
|
"data-slot": "data-view-pagination",
|
|
419
419
|
className: t("data-view-pagination--component flex min-w-0 flex-col gap-space-md @md/data-view:flex-row @md/data-view:justify-between", d),
|
|
420
420
|
"aria-label": p.page,
|
|
421
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ C("div", {
|
|
422
422
|
"data-slot": "data-view-pagination-summary",
|
|
423
423
|
className: "data-view-pagination--summary min-w-0",
|
|
424
|
-
children:
|
|
424
|
+
children: c != null && /* @__PURE__ */ C(r, {
|
|
425
425
|
size: "xs",
|
|
426
426
|
type: "secondary",
|
|
427
|
-
children:
|
|
427
|
+
children: c
|
|
428
428
|
})
|
|
429
|
-
}), /* @__PURE__ */
|
|
429
|
+
}), /* @__PURE__ */ w("div", {
|
|
430
430
|
"data-slot": "data-view-pagination-controls",
|
|
431
431
|
className: "data-view-pagination--controls flex shrink-0 items-center gap-space-md",
|
|
432
432
|
children: [
|
|
433
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ w(o, {
|
|
434
434
|
size: "xs",
|
|
435
435
|
className: "tabular-nums",
|
|
436
436
|
"aria-label": g,
|
|
437
437
|
children: [
|
|
438
438
|
p.page,
|
|
439
439
|
" ",
|
|
440
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ C(s, {
|
|
441
441
|
value: i,
|
|
442
442
|
size: "xs",
|
|
443
443
|
align: "left",
|
|
444
444
|
type: "secondary"
|
|
445
445
|
}),
|
|
446
|
-
a ? /* @__PURE__ */
|
|
446
|
+
a ? /* @__PURE__ */ w(S, { children: [" / ", /* @__PURE__ */ C(s, {
|
|
447
447
|
value: a,
|
|
448
448
|
size: "xs",
|
|
449
449
|
align: "left",
|
|
@@ -451,7 +451,7 @@ function X({ page: i, pageCount: a, total: o, onPageChange: l, disabled: u = !1,
|
|
|
451
451
|
})] }) : null
|
|
452
452
|
]
|
|
453
453
|
}),
|
|
454
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ C(n, {
|
|
455
455
|
size: "sm",
|
|
456
456
|
type: "button",
|
|
457
457
|
tone: "secondary",
|
|
@@ -460,7 +460,7 @@ function X({ page: i, pageCount: a, total: o, onPageChange: l, disabled: u = !1,
|
|
|
460
460
|
onClick: () => l?.(i - 1),
|
|
461
461
|
children: p.previous
|
|
462
462
|
}),
|
|
463
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ C(n, {
|
|
464
464
|
size: "sm",
|
|
465
465
|
type: "button",
|
|
466
466
|
tone: "secondary",
|
|
@@ -473,8 +473,8 @@ function X({ page: i, pageCount: a, total: o, onPageChange: l, disabled: u = !1,
|
|
|
473
473
|
})]
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
|
-
function
|
|
477
|
-
return /* @__PURE__ */
|
|
476
|
+
function X({ views: e, value: n, onValueChange: i, className: a }) {
|
|
477
|
+
return /* @__PURE__ */ C(u, {
|
|
478
478
|
"data-component": "saved-view-tabs",
|
|
479
479
|
"data-slot": "saved-view-tabs",
|
|
480
480
|
className: t("saved-view-tabs--component rounded-radius bg-muted p-space-xs", a),
|
|
@@ -482,29 +482,29 @@ function Z({ views: e, value: n, onValueChange: i, className: a }) {
|
|
|
482
482
|
onValueChange: (e) => {
|
|
483
483
|
typeof e == "string" && i(e);
|
|
484
484
|
},
|
|
485
|
-
children: /* @__PURE__ */
|
|
485
|
+
children: /* @__PURE__ */ C(l, {
|
|
486
|
+
variant: "chips",
|
|
486
487
|
role: "group",
|
|
487
488
|
"aria-orientation": void 0,
|
|
488
489
|
activateOnFocus: !0,
|
|
489
|
-
className: "h-auto! flex-wrap justify-start gap-space-xs bg-transparent p-0",
|
|
490
490
|
children: e.map((e) => {
|
|
491
|
-
let
|
|
492
|
-
return /* @__PURE__ */
|
|
491
|
+
let t = e.id === n;
|
|
492
|
+
return /* @__PURE__ */ w(c, {
|
|
493
493
|
"data-slot": "saved-view-tab",
|
|
494
494
|
type: "button",
|
|
495
495
|
role: "button",
|
|
496
496
|
value: e.id,
|
|
497
497
|
"aria-selected": void 0,
|
|
498
498
|
"aria-controls": void 0,
|
|
499
|
-
"aria-pressed":
|
|
499
|
+
"aria-pressed": t,
|
|
500
500
|
disabled: e.disabled,
|
|
501
|
-
className:
|
|
502
|
-
children: [/* @__PURE__ */
|
|
501
|
+
className: "saved-view-tabs--tab gap-space-xs",
|
|
502
|
+
children: [/* @__PURE__ */ C(r, {
|
|
503
503
|
tag: "span",
|
|
504
504
|
size: "inherit",
|
|
505
505
|
className: "truncate text-current",
|
|
506
506
|
children: e.label
|
|
507
|
-
}), e.count !== void 0 && e.count !== null && /* @__PURE__ */
|
|
507
|
+
}), e.count !== void 0 && e.count !== null && /* @__PURE__ */ C(r, {
|
|
508
508
|
tag: "span",
|
|
509
509
|
size: "xs",
|
|
510
510
|
type: "secondary",
|
|
@@ -517,6 +517,6 @@ function Z({ views: e, value: n, onValueChange: i, className: a }) {
|
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
519
|
//#endregion
|
|
520
|
-
export {
|
|
520
|
+
export { J as DataView, Y as DataViewPagination, W as DataViewShell, K as DataViewTableFrame, G as DataViewToolbar, X as SavedViewTabs, A as defaultDataViewFilterTabsLabel, k as defaultDataViewPaginationStrings, V as useDataView };
|
|
521
521
|
|
|
522
522
|
//# sourceMappingURL=data-view.js.map
|