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
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useStrings as e } from "./lib/strings.js";
|
|
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 { t as i } from "./focus-recipes-B653VaLq.js";
|
|
7
|
+
import { t as a } from "./progress-B1VnCT0K.js";
|
|
8
|
+
import { t as o } from "./interaction-recipes-XR9ZpVYL.js";
|
|
9
|
+
import { i as s } from "./primitives-BFK08r9M.js";
|
|
10
|
+
import { c, i as l, n as u, r as d, t as f, u as p } from "./item-K5_ghvze.js";
|
|
11
|
+
import { forwardRef as m } from "react";
|
|
12
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
13
|
+
import { Archive as v, AudioLines as y, Download as b, Eye as x, FileCode as S, FileText as C, ImageIcon as w, Video as T, X as E } from "lucide-react";
|
|
14
|
+
import { Button as D } from "@base-ui/react/button";
|
|
15
|
+
//#region src/components/base/attachment/attachment.types.ts
|
|
16
|
+
var O = {
|
|
17
|
+
preview: (e) => `Preview ${e}`,
|
|
18
|
+
download: (e) => `Download ${e}`,
|
|
19
|
+
remove: (e) => `Remove ${e}`,
|
|
20
|
+
queued: "Queued",
|
|
21
|
+
uploading: "Uploading",
|
|
22
|
+
done: "Uploaded",
|
|
23
|
+
error: "Failed",
|
|
24
|
+
cancelled: "Cancelled"
|
|
25
|
+
}, k = {
|
|
26
|
+
image: w,
|
|
27
|
+
document: C,
|
|
28
|
+
audio: y,
|
|
29
|
+
video: T,
|
|
30
|
+
code: S,
|
|
31
|
+
archive: v,
|
|
32
|
+
generic: C
|
|
33
|
+
};
|
|
34
|
+
function A(e) {
|
|
35
|
+
let t = e.split(".").at(-1)?.toLowerCase();
|
|
36
|
+
return t && [
|
|
37
|
+
"png",
|
|
38
|
+
"jpg",
|
|
39
|
+
"jpeg",
|
|
40
|
+
"gif",
|
|
41
|
+
"webp",
|
|
42
|
+
"svg",
|
|
43
|
+
"avif"
|
|
44
|
+
].includes(t) ? "image" : t && [
|
|
45
|
+
"mp3",
|
|
46
|
+
"wav",
|
|
47
|
+
"ogg",
|
|
48
|
+
"flac",
|
|
49
|
+
"m4a"
|
|
50
|
+
].includes(t) ? "audio" : t && [
|
|
51
|
+
"mp4",
|
|
52
|
+
"webm",
|
|
53
|
+
"mov",
|
|
54
|
+
"avi"
|
|
55
|
+
].includes(t) ? "video" : t && [
|
|
56
|
+
"zip",
|
|
57
|
+
"gz",
|
|
58
|
+
"tar",
|
|
59
|
+
"rar",
|
|
60
|
+
"7z"
|
|
61
|
+
].includes(t) ? "archive" : t && [
|
|
62
|
+
"ts",
|
|
63
|
+
"tsx",
|
|
64
|
+
"js",
|
|
65
|
+
"jsx",
|
|
66
|
+
"css",
|
|
67
|
+
"html",
|
|
68
|
+
"json",
|
|
69
|
+
"py",
|
|
70
|
+
"sh",
|
|
71
|
+
"sql"
|
|
72
|
+
].includes(t) ? "code" : t && [
|
|
73
|
+
"pdf",
|
|
74
|
+
"doc",
|
|
75
|
+
"docx",
|
|
76
|
+
"txt",
|
|
77
|
+
"md",
|
|
78
|
+
"xls",
|
|
79
|
+
"xlsx",
|
|
80
|
+
"csv"
|
|
81
|
+
].includes(t) ? "document" : "generic";
|
|
82
|
+
}
|
|
83
|
+
function j({ name: e, kind: t }) {
|
|
84
|
+
let n = k[t ?? A(e)];
|
|
85
|
+
return /* @__PURE__ */ g(n, { "aria-hidden": "true" });
|
|
86
|
+
}
|
|
87
|
+
var M = m(function({ className: e, ...n }, r) {
|
|
88
|
+
return /* @__PURE__ */ g(c, {
|
|
89
|
+
...n,
|
|
90
|
+
ref: r,
|
|
91
|
+
className: t("attachment--media self-center group-has-data-[slot=item-description]/item:self-center", e)
|
|
92
|
+
});
|
|
93
|
+
}), N = m(function({ className: e, ...n }, r) {
|
|
94
|
+
return /* @__PURE__ */ g(d, {
|
|
95
|
+
...n,
|
|
96
|
+
ref: r,
|
|
97
|
+
className: t("attachment--content w-full max-w-full", e)
|
|
98
|
+
});
|
|
99
|
+
}), P = m(function({ className: e, ...n }, r) {
|
|
100
|
+
return /* @__PURE__ */ g(p, {
|
|
101
|
+
...n,
|
|
102
|
+
ref: r,
|
|
103
|
+
className: t("attachment--title block w-full truncate [&>span]:block [&>span]:min-w-0 [&>span]:truncate", e)
|
|
104
|
+
});
|
|
105
|
+
}), F = m(function({ className: e, ...n }, r) {
|
|
106
|
+
return /* @__PURE__ */ g(l, {
|
|
107
|
+
...n,
|
|
108
|
+
ref: r,
|
|
109
|
+
className: t("attachment--description", e)
|
|
110
|
+
});
|
|
111
|
+
}), I = m(function({ className: e, ...n }, r) {
|
|
112
|
+
return /* @__PURE__ */ g(u, {
|
|
113
|
+
...n,
|
|
114
|
+
ref: r,
|
|
115
|
+
className: t("attachment--actions relative z-10", e)
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
function L({ className: e, ...n }) {
|
|
119
|
+
return /* @__PURE__ */ g(a, {
|
|
120
|
+
...n,
|
|
121
|
+
className: t("attachment--progress", e)
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
var R = m(function({ name: a = "", meta: c, bytes: l, locale: u, kind: d, media: p, thumbnailUrl: m, status: v, progress: y, error: S, description: C, actions: w, onOpen: T, onPreview: k, onDownload: A, onRemove: R, disabled: z = !1, layout: B = "list", size: V, density: H, variant: U = "outline", render: W, strings: G, children: K, className: q, ...J }, Y) {
|
|
125
|
+
let X = e(O, G), Z = v === "queued" || v === "uploading", Q = y == null ? null : Number.isFinite(y) ? Math.max(0, Math.min(100, y)) : 0, $ = v ? X[v] : void 0;
|
|
126
|
+
return /* @__PURE__ */ _(f, {
|
|
127
|
+
...J,
|
|
128
|
+
ref: Y,
|
|
129
|
+
render: W,
|
|
130
|
+
size: V,
|
|
131
|
+
density: H ?? (B === "compact" ? "compact" : "default"),
|
|
132
|
+
variant: U,
|
|
133
|
+
padding: "default",
|
|
134
|
+
"data-status": v,
|
|
135
|
+
"data-layout": B,
|
|
136
|
+
"data-disabled": z || void 0,
|
|
137
|
+
className: t("attachment--component relative isolate min-w-0 max-w-full bg-card text-card-foreground", B === "gallery" ? "flex-col items-stretch" : "flex-nowrap", v === "error" && "border-destructive", q),
|
|
138
|
+
children: [K ?? /* @__PURE__ */ _(h, { children: [
|
|
139
|
+
/* @__PURE__ */ g(M, {
|
|
140
|
+
variant: m && B !== "gallery" ? "image" : "icon",
|
|
141
|
+
className: B === "gallery" ? "aspect-video h-auto w-full overflow-hidden rounded-inner bg-muted text-muted-foreground" : void 0,
|
|
142
|
+
children: p ?? (m ? /* @__PURE__ */ g("img", {
|
|
143
|
+
src: m,
|
|
144
|
+
alt: "",
|
|
145
|
+
className: "h-full w-full object-cover"
|
|
146
|
+
}) : /* @__PURE__ */ g(j, {
|
|
147
|
+
name: a,
|
|
148
|
+
kind: d
|
|
149
|
+
}))
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ _(N, { children: [
|
|
152
|
+
/* @__PURE__ */ g(P, {
|
|
153
|
+
title: a,
|
|
154
|
+
children: a
|
|
155
|
+
}),
|
|
156
|
+
(c !== void 0 || l !== void 0) && /* @__PURE__ */ g(F, {
|
|
157
|
+
clamp: 1,
|
|
158
|
+
children: c ?? /* @__PURE__ */ g(s, {
|
|
159
|
+
value: l,
|
|
160
|
+
locale: u,
|
|
161
|
+
size: "xs",
|
|
162
|
+
type: "secondary",
|
|
163
|
+
align: "left"
|
|
164
|
+
})
|
|
165
|
+
}),
|
|
166
|
+
(C !== void 0 || $) && /* @__PURE__ */ _(F, {
|
|
167
|
+
clamp: "none",
|
|
168
|
+
children: [C === void 0 ? /* @__PURE__ */ g(r, {
|
|
169
|
+
tag: "span",
|
|
170
|
+
size: "xs",
|
|
171
|
+
type: v === "error" ? "error" : "secondary",
|
|
172
|
+
children: $
|
|
173
|
+
}) : C, v === "error" && S ? /* @__PURE__ */ _(h, { children: [" — ", /* @__PURE__ */ g(r, {
|
|
174
|
+
tag: "span",
|
|
175
|
+
role: "alert",
|
|
176
|
+
size: "xs",
|
|
177
|
+
type: "error",
|
|
178
|
+
children: S
|
|
179
|
+
})] }) : null]
|
|
180
|
+
}),
|
|
181
|
+
Z && /* @__PURE__ */ g(L, {
|
|
182
|
+
value: v === "queued" && Q === null ? 0 : Q,
|
|
183
|
+
"aria-label": a,
|
|
184
|
+
size: "sm",
|
|
185
|
+
tone: v === "queued" ? "neutral" : "primary"
|
|
186
|
+
})
|
|
187
|
+
] }),
|
|
188
|
+
(w || k || A || R) && /* @__PURE__ */ _(I, { children: [
|
|
189
|
+
k && /* @__PURE__ */ g(n, {
|
|
190
|
+
type: "button",
|
|
191
|
+
tone: "secondary",
|
|
192
|
+
buttonStyle: "ghost",
|
|
193
|
+
size: "sm",
|
|
194
|
+
iconOnly: !0,
|
|
195
|
+
disabled: z,
|
|
196
|
+
"aria-label": X.preview(a),
|
|
197
|
+
onClick: k,
|
|
198
|
+
children: /* @__PURE__ */ g(x, {
|
|
199
|
+
"aria-hidden": "true",
|
|
200
|
+
className: "size-icon-sm"
|
|
201
|
+
})
|
|
202
|
+
}),
|
|
203
|
+
A && /* @__PURE__ */ g(n, {
|
|
204
|
+
type: "button",
|
|
205
|
+
tone: "secondary",
|
|
206
|
+
buttonStyle: "ghost",
|
|
207
|
+
size: "sm",
|
|
208
|
+
iconOnly: !0,
|
|
209
|
+
disabled: z,
|
|
210
|
+
"aria-label": X.download(a),
|
|
211
|
+
onClick: A,
|
|
212
|
+
children: /* @__PURE__ */ g(b, {
|
|
213
|
+
"aria-hidden": "true",
|
|
214
|
+
className: "size-icon-sm"
|
|
215
|
+
})
|
|
216
|
+
}),
|
|
217
|
+
R && /* @__PURE__ */ g(n, {
|
|
218
|
+
type: "button",
|
|
219
|
+
tone: "secondary",
|
|
220
|
+
buttonStyle: "ghost",
|
|
221
|
+
size: "sm",
|
|
222
|
+
iconOnly: !0,
|
|
223
|
+
disabled: z,
|
|
224
|
+
"aria-label": X.remove(a),
|
|
225
|
+
onClick: R,
|
|
226
|
+
children: /* @__PURE__ */ g(E, {
|
|
227
|
+
"aria-hidden": "true",
|
|
228
|
+
className: "size-icon-sm"
|
|
229
|
+
})
|
|
230
|
+
}),
|
|
231
|
+
w
|
|
232
|
+
] })
|
|
233
|
+
] }), T && /* @__PURE__ */ g(D, {
|
|
234
|
+
type: "button",
|
|
235
|
+
disabled: z,
|
|
236
|
+
"aria-label": X.preview(a),
|
|
237
|
+
onClick: T,
|
|
238
|
+
className: `attachment--trigger ${o.nativeButtonReset} absolute inset-0 z-0 cursor-pointer rounded-inner outline-none ${i.inset} disabled:cursor-not-allowed`
|
|
239
|
+
})]
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
R.displayName = "Attachment";
|
|
243
|
+
//#endregion
|
|
244
|
+
export { j as a, P as c, F as i, A as l, I as n, M as o, N as r, L as s, R as t, O as u };
|
|
245
|
+
|
|
246
|
+
//# sourceMappingURL=attachment-BxDfL2mw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment-BxDfL2mw.js","names":["_Fragment","Button","ButtonPrimitive","Text","focusRecipes","Progress","interactionRecipes","FileSize","ItemDescription","ItemActions","ItemContent","Item","ItemTitle","Fragment$1","defaultAttachmentStrings","name","icons","ImageIcon","FileText","AudioLines","Video","FileCode","Archive","getAttachmentKind","extension","AttachmentFileIcon","Icon","kind","AttachmentMedia","forwardRef","props","ItemMedia","cn","className","AttachmentContent","AttachmentTitle","AttachmentDescription","AttachmentActions","AttachmentProgress","Attachment","stringsProp","strings","useStrings","showProgress","status","pct","progress","statusCopy","density","layout","disabled","children","thumbnailUrl","media","meta","bytes","description","error","actions","onPreview","onDownload","onRemove","Button$1","Eye","Download","X","onOpen","Button"],"sources":["../src/components/base/attachment/attachment.types.ts","../src/components/base/attachment/attachment.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode, ReactElement } from 'react';\nimport type { StringsProp } from '../../../lib/strings';\nimport type { ItemDensity, ItemSize, ItemVariant } from '../item';\nexport type AttachmentKind = 'image' | 'document' | 'audio' | 'video' | 'code' | 'archive' | 'generic';\nexport type AttachmentStatus = 'queued' | 'uploading' | 'done' | 'error' | 'cancelled';\nexport interface AttachmentStrings {\n preview: (name: string) => string;\n download: (name: string) => string;\n remove: (name: string) => string;\n queued: string; uploading: string; done: string; error: string; cancelled: string;\n}\nexport const defaultAttachmentStrings: AttachmentStrings = {\n preview: name => `Preview ${name}`, download: name => `Download ${name}`, remove: name => `Remove ${name}`,\n queued: 'Queued', uploading: 'Uploading', done: 'Uploaded', error: 'Failed', cancelled: 'Cancelled',\n};\nexport interface AttachmentProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title' | 'onError'> {\n /** Display filename. Omit only when assembling children using Attachment anatomy. */\n name?: string;\n /** Caller-formatted metadata takes precedence over bytes. */\n meta?: ReactNode;\n bytes?: number;\n locale?: string;\n kind?: AttachmentKind;\n media?: ReactNode;\n thumbnailUrl?: string;\n status?: AttachmentStatus;\n /** Upload progress in the 0–100 range. A missing uploading value is indeterminate. */\n progress?: number | null;\n error?: ReactNode;\n /** Override generated status copy while preserving status/progress behavior. */\n description?: ReactNode;\n /** Additional sibling actions. */\n actions?: ReactNode;\n /** Open or preview the whole body, with independent sibling action buttons. Uses the preview string for its accessible name. */\n onOpen?: () => void;\n onPreview?: () => void;\n onDownload?: () => void;\n onRemove?: () => void;\n disabled?: boolean;\n /** Compact horizontal chip, full list row, or a media-first gallery tile. */\n layout?: 'compact' | 'list' | 'gallery';\n size?: ItemSize;\n density?: ItemDensity;\n variant?: ItemVariant;\n /** Element used for a list item without wrapping or inspecting children. */\n render?: ReactElement;\n strings?: StringsProp<AttachmentStrings>;\n}\n","import { forwardRef } from 'react';\nimport { Button as ButtonPrimitive } from '@base-ui/react/button';\nimport { Archive, AudioLines, Download, Eye, FileCode, FileText, ImageIcon, Video, X } from 'lucide-react';\nimport { Button } from '../buttons';\nimport { FileSize } from '../../primitives';\nimport { Text } from '../../typography';\nimport { Progress, type ProgressProps } from '../feedback';\nimport { Item, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemActions, type ItemMediaProps, type ItemContentProps, type ItemTitleProps, type ItemDescriptionProps, type ItemActionsProps } from '../item';\nimport { useStrings } from '../../../lib/strings';\nimport { cn } from '../../../lib/utils';\nimport { defaultAttachmentStrings, type AttachmentProps, type AttachmentKind } from './attachment.types';\nimport { focusRecipes } from '../../../lib/focus-recipes';\nimport { interactionRecipes } from '../../../lib/interaction-recipes';\n\nconst icons = { image: ImageIcon, document: FileText, audio: AudioLines, video: Video, code: FileCode, archive: Archive, generic: FileText };\n/** Filename categorization is display-only and does not trust a file's extension for validation. */\nexport function getAttachmentKind(name: string): AttachmentKind {\n const extension = name.split('.').at(-1)?.toLowerCase();\n if (extension && ['png','jpg','jpeg','gif','webp','svg','avif'].includes(extension)) return 'image';\n if (extension && ['mp3','wav','ogg','flac','m4a'].includes(extension)) return 'audio';\n if (extension && ['mp4','webm','mov','avi'].includes(extension)) return 'video';\n if (extension && ['zip','gz','tar','rar','7z'].includes(extension)) return 'archive';\n if (extension && ['ts','tsx','js','jsx','css','html','json','py','sh','sql'].includes(extension)) return 'code';\n if (extension && ['pdf','doc','docx','txt','md','xls','xlsx','csv'].includes(extension)) return 'document';\n return 'generic';\n}\nexport function AttachmentFileIcon({ name, kind }: { name: string; kind?: AttachmentKind }) { const Icon = icons[kind ?? getAttachmentKind(name)]; return <Icon aria-hidden=\"true\" />; }\nexport const AttachmentMedia = forwardRef<HTMLDivElement, ItemMediaProps>(function AttachmentMedia({ className, ...props }, ref) { return <ItemMedia {...props} ref={ref} className={cn('attachment--media self-center group-has-data-[slot=item-description]/item:self-center', className)} />; });\nexport const AttachmentContent = forwardRef<HTMLDivElement, ItemContentProps>(function AttachmentContent({ className, ...props }, ref) { return <ItemContent {...props} ref={ref} className={cn('attachment--content w-full max-w-full', className)} />; });\nexport const AttachmentTitle = forwardRef<HTMLDivElement, ItemTitleProps>(function AttachmentTitle({ className, ...props }, ref) { return <ItemTitle {...props} ref={ref} className={cn('attachment--title block w-full truncate [&>span]:block [&>span]:min-w-0 [&>span]:truncate', className)} />; });\nexport const AttachmentDescription = forwardRef<HTMLParagraphElement, ItemDescriptionProps>(function AttachmentDescription({ className, ...props }, ref) { return <ItemDescription {...props} ref={ref} className={cn('attachment--description', className)} />; });\nexport const AttachmentActions = forwardRef<HTMLDivElement, ItemActionsProps>(function AttachmentActions({ className, ...props }, ref) { return <ItemActions {...props} ref={ref} className={cn('attachment--actions relative z-10', className)} />; });\nexport function AttachmentProgress({ className, ...props }: ProgressProps) { return <Progress {...props} className={cn('attachment--progress', className)} />; }\n/** File presentation; callbacks own preview, transfer and removal. Card framing belongs to the caller. */\nexport const Attachment = forwardRef<HTMLDivElement, AttachmentProps>(function Attachment({\n name = '', meta, bytes, locale, kind, media, thumbnailUrl, status, progress, error, description, actions, onOpen, onPreview, onDownload, onRemove,\n disabled = false, layout = 'list', size, density, variant = 'outline', render, strings: stringsProp, children, className, ...props\n}, ref) {\n const strings = useStrings(defaultAttachmentStrings, stringsProp);\n const showProgress = status === 'queued' || status === 'uploading';\n const pct = progress === null || progress === undefined ? null : Number.isFinite(progress) ? Math.max(0, Math.min(100, progress)) : 0;\n const statusCopy = status ? strings[status] : undefined;\n return <Item {...props} ref={ref} render={render} size={size} density={density ?? (layout === 'compact' ? 'compact' : 'default')} variant={variant} padding=\"default\" data-status={status} data-layout={layout} data-disabled={disabled || undefined} className={cn('attachment--component relative isolate min-w-0 max-w-full bg-card text-card-foreground', layout === 'gallery' ? 'flex-col items-stretch' : 'flex-nowrap', status === 'error' && 'border-destructive', className)}>\n {children ?? <>\n {/* A gallery tile owns one full-width media frame. The row thumbnail recipe (a\n size-scaled square) would otherwise shrink a gallery image to an icon. */}\n <AttachmentMedia variant={thumbnailUrl && layout !== 'gallery' ? 'image' : 'icon'} className={layout === 'gallery' ? 'aspect-video h-auto w-full overflow-hidden rounded-inner bg-muted text-muted-foreground' : undefined}>{media ?? (thumbnailUrl ? <img src={thumbnailUrl} alt=\"\" className=\"h-full w-full object-cover\" /> : <AttachmentFileIcon name={name} kind={kind} />)}</AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle title={name}>{name}</AttachmentTitle>\n {(meta !== undefined || bytes !== undefined) && <AttachmentDescription clamp={1}>{meta ?? <FileSize value={bytes} locale={locale} size=\"xs\" type=\"secondary\" align=\"left\" />}</AttachmentDescription>}\n {(description !== undefined || statusCopy) && <AttachmentDescription clamp=\"none\">{description !== undefined ? description : <Text tag=\"span\" size=\"xs\" type={status === 'error' ? 'error' : 'secondary'}>{statusCopy}</Text>}{status === 'error' && error ? <> — <Text tag=\"span\" role=\"alert\" size=\"xs\" type=\"error\">{error}</Text></> : null}</AttachmentDescription>}\n {showProgress && <AttachmentProgress value={status === 'queued' && pct === null ? 0 : pct} aria-label={name} size=\"sm\" tone={status === 'queued' ? 'neutral' : 'primary'} />}\n </AttachmentContent>\n {(actions || onPreview || onDownload || onRemove) && <AttachmentActions>\n {onPreview && <Button type=\"button\" tone=\"secondary\" buttonStyle=\"ghost\" size=\"sm\" iconOnly disabled={disabled} aria-label={strings.preview(name)} onClick={onPreview}><Eye aria-hidden=\"true\" className=\"size-icon-sm\" /></Button>}\n {onDownload && <Button type=\"button\" tone=\"secondary\" buttonStyle=\"ghost\" size=\"sm\" iconOnly disabled={disabled} aria-label={strings.download(name)} onClick={onDownload}><Download aria-hidden=\"true\" className=\"size-icon-sm\" /></Button>}\n {onRemove && <Button type=\"button\" tone=\"secondary\" buttonStyle=\"ghost\" size=\"sm\" iconOnly disabled={disabled} aria-label={strings.remove(name)} onClick={onRemove}><X aria-hidden=\"true\" className=\"size-icon-sm\" /></Button>}\n {actions}\n </AttachmentActions>}\n </>}\n {onOpen && <ButtonPrimitive type=\"button\" disabled={disabled} aria-label={strings.preview(name)} onClick={onOpen} className={`attachment--trigger ${interactionRecipes.nativeButtonReset} absolute inset-0 z-0 cursor-pointer rounded-inner outline-none ${focusRecipes.inset} disabled:cursor-not-allowed`} />}\n </Item>;\n});\nAttachment.displayName = 'Attachment';\n"],"mappings":"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"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { s as e, v as t } from "./ui-provider-
|
|
2
|
+
import { s as e, v as t } from "./ui-provider-C_U0Xma4.js";
|
|
3
3
|
import { useStrings as n } from "./lib/strings.js";
|
|
4
|
-
import { t as r } from "./utils-
|
|
5
|
-
import { a as i, n as a } from "./buttons-
|
|
6
|
-
import {
|
|
4
|
+
import { t as r } from "./utils-BRhFDwuU.js";
|
|
5
|
+
import { a as i, n as a } from "./buttons-DPZekJFu.js";
|
|
6
|
+
import { c as o, o as s, s as c } from "./typography-UTnveOEy.js";
|
|
7
7
|
import { n as l } from "./text.styles-g4He6UIW.js";
|
|
8
8
|
import { t as u } from "./focus-recipes-B653VaLq.js";
|
|
9
|
-
import { r as d, t as f } from "./structure-
|
|
10
|
-
import { a as p, l as m, s as h } from "./smart-card-
|
|
11
|
-
import { t as g } from "./interaction-recipes-
|
|
12
|
-
import { c as _, i as v, o as y, r as b, t as x, u as S } from "./item-
|
|
13
|
-
import { d as C } from "./hooks-
|
|
9
|
+
import { r as d, t as f } from "./structure-BmisBK-3.js";
|
|
10
|
+
import { a as p, l as m, s as h } from "./smart-card-DiC5aac3.js";
|
|
11
|
+
import { t as g } from "./interaction-recipes-XR9ZpVYL.js";
|
|
12
|
+
import { c as _, i as v, o as y, r as b, t as x, u as S } from "./item-K5_ghvze.js";
|
|
13
|
+
import { d as C } from "./hooks-Dkz0K2WT.js";
|
|
14
14
|
import { t as w } from "./container.recipes-D9t8MHR3.js";
|
|
15
15
|
import * as T from "react";
|
|
16
16
|
import { Fragment as ee, isValidElement as E, useMemo as D } from "react";
|
|
@@ -22,7 +22,7 @@ function ne({ surface: e = "card", eyebrow: t, title: n, description: i, headerE
|
|
|
22
22
|
return /* @__PURE__ */ A(m, {
|
|
23
23
|
"data-slot": "auth-card",
|
|
24
24
|
"data-surface": e,
|
|
25
|
-
className: r("auth-card--component", "w-full min-w-0 gap-0 py-0", e === "card" ? "overflow-hidden rounded-radius border border-border bg-card shadow-sm" : "border-0 bg-transparent shadow-none", _),
|
|
25
|
+
className: r("auth-card--component", "w-full min-w-0 gap-0 py-0", e === "card" ? "overflow-hidden rounded-radius border border-border bg-card text-card-foreground shadow-sm" : "border-0 bg-transparent text-inherit shadow-none", _),
|
|
26
26
|
...S,
|
|
27
27
|
children: [
|
|
28
28
|
!!u && /* @__PURE__ */ k("div", {
|
|
@@ -41,18 +41,19 @@ function ne({ surface: e = "card", eyebrow: t, title: n, description: i, headerE
|
|
|
41
41
|
gap: "normal",
|
|
42
42
|
className: "min-w-0",
|
|
43
43
|
children: [
|
|
44
|
-
!!t && /* @__PURE__ */ k(
|
|
44
|
+
!!t && /* @__PURE__ */ k(s, {
|
|
45
45
|
tag: "div",
|
|
46
|
-
className: "auth-card--eyebrow",
|
|
46
|
+
className: "auth-card--eyebrow text-inherit",
|
|
47
47
|
children: t
|
|
48
48
|
}),
|
|
49
|
-
!!n && /* @__PURE__ */ k(
|
|
49
|
+
!!n && /* @__PURE__ */ k(c, {
|
|
50
50
|
tag: "h1",
|
|
51
51
|
containerClassName: "space-y-0",
|
|
52
|
-
|
|
52
|
+
size: "base",
|
|
53
|
+
className: "auth-card--title text-inherit",
|
|
53
54
|
children: n
|
|
54
55
|
}),
|
|
55
|
-
!!i && /* @__PURE__ */ k(
|
|
56
|
+
!!i && /* @__PURE__ */ k(o, {
|
|
56
57
|
tag: "div",
|
|
57
58
|
type: "secondary",
|
|
58
59
|
lineHeight: "relaxed",
|
|
@@ -126,14 +127,14 @@ var F = {
|
|
|
126
127
|
};
|
|
127
128
|
//#endregion
|
|
128
129
|
//#region src/components/layout/auth/auth-footer-links.tsx
|
|
129
|
-
function z({ links: e, leadingIcon: t, separator: i = "·", renderLink: a, className:
|
|
130
|
-
let u = n(I,
|
|
130
|
+
function z({ links: e, leadingIcon: t, separator: i = "·", renderLink: a, className: s, strings: c, ...l }) {
|
|
131
|
+
let u = n(I, c), { links: d, renderLink: f } = N({
|
|
131
132
|
links: e,
|
|
132
133
|
renderLink: a
|
|
133
134
|
});
|
|
134
135
|
return d.length === 0 ? null : /* @__PURE__ */ A("nav", {
|
|
135
136
|
"aria-label": l["aria-label"] ?? u.label,
|
|
136
|
-
className: r("auth-footer-links--component", "flex flex-wrap items-center justify-center gap-x-space-md gap-y-space-xs text-center",
|
|
137
|
+
className: r("auth-footer-links--component", "flex flex-wrap items-center justify-center gap-x-space-md gap-y-space-xs text-center", s),
|
|
137
138
|
...l,
|
|
138
139
|
children: [!!t && /* @__PURE__ */ k("span", {
|
|
139
140
|
className: "auth-footer-links--icon flex shrink-0 items-center text-muted-foreground",
|
|
@@ -148,14 +149,14 @@ function z({ links: e, leadingIcon: t, separator: i = "·", renderLink: a, class
|
|
|
148
149
|
disabled: e.disabled,
|
|
149
150
|
onClick: e.onClick,
|
|
150
151
|
className: r("auth-footer-links--item", "text-muted-foreground transition-colors hover:text-foreground", e.disabled && "pointer-events-none opacity-50"),
|
|
151
|
-
children: /* @__PURE__ */ k(
|
|
152
|
+
children: /* @__PURE__ */ k(o, {
|
|
152
153
|
tag: "span",
|
|
153
154
|
size: "xs",
|
|
154
155
|
className: "text-inherit",
|
|
155
156
|
children: e.label
|
|
156
157
|
})
|
|
157
158
|
});
|
|
158
|
-
return /* @__PURE__ */ A(ee, { children: [t > 0 && /* @__PURE__ */ k(
|
|
159
|
+
return /* @__PURE__ */ A(ee, { children: [t > 0 && /* @__PURE__ */ k(o, {
|
|
159
160
|
tag: "span",
|
|
160
161
|
size: "xs",
|
|
161
162
|
type: "secondary",
|
|
@@ -255,8 +256,8 @@ function G({ provider: e }) {
|
|
|
255
256
|
});
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
|
-
function K({ provider: n, renderLink:
|
|
259
|
-
let { defaultScale: l } = e(), u = t(void 0, l), d = C({ renderLink:
|
|
259
|
+
function K({ provider: n, renderLink: s, className: c }) {
|
|
260
|
+
let { defaultScale: l } = e(), u = t(void 0, l), d = C({ renderLink: s }), f = /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(G, { provider: n }), /* @__PURE__ */ k(o, {
|
|
260
261
|
tag: "span",
|
|
261
262
|
className: "text-inherit",
|
|
262
263
|
children: n.label
|
|
@@ -265,7 +266,7 @@ function K({ provider: n, renderLink: o, className: s }) {
|
|
|
265
266
|
tone: "secondary",
|
|
266
267
|
buttonStyle: "outline",
|
|
267
268
|
fullWidth: !0
|
|
268
|
-
}), n.disabled && "pointer-events-none opacity-50",
|
|
269
|
+
}), n.disabled && "pointer-events-none opacity-50", c);
|
|
269
270
|
return n.href ? d({
|
|
270
271
|
href: n.href,
|
|
271
272
|
target: n.target,
|
|
@@ -281,7 +282,7 @@ function K({ provider: n, renderLink: o, className: s }) {
|
|
|
281
282
|
buttonStyle: "outline",
|
|
282
283
|
fullWidth: !0,
|
|
283
284
|
disabled: n.disabled,
|
|
284
|
-
className: r("auth-social-provider-button--component",
|
|
285
|
+
className: r("auth-social-provider-button--component", c),
|
|
285
286
|
onClick: (e) => n.onClick?.(e),
|
|
286
287
|
children: f
|
|
287
288
|
});
|
|
@@ -308,7 +309,7 @@ function re({ providers: e, layout: t = "stack", renderLink: i, className: a, st
|
|
|
308
309
|
//#endregion
|
|
309
310
|
//#region src/components/layout/auth/auth-split-panel.tsx
|
|
310
311
|
var ie = {
|
|
311
|
-
card: "border-border bg-card",
|
|
312
|
+
card: "border-border bg-card text-card-foreground",
|
|
312
313
|
muted: "border-border bg-muted/30"
|
|
313
314
|
};
|
|
314
315
|
function q({ eyebrow: e, title: t, description: n, media: i, features: a, footer: l, children: u, surface: d = "muted", className: p, contentClassName: m, ...h }) {
|
|
@@ -319,7 +320,7 @@ function q({ eyebrow: e, title: t, description: n, media: i, features: a, footer
|
|
|
319
320
|
justify: "between",
|
|
320
321
|
"data-slot": "auth-split-panel",
|
|
321
322
|
"data-surface": d,
|
|
322
|
-
className: r("auth-split-panel--component", "min-h-full w-full overflow-hidden border", ie[d], p),
|
|
323
|
+
className: r("auth-split-panel--component", "box-border min-h-full w-full overflow-hidden border", ie[d], p),
|
|
323
324
|
...h,
|
|
324
325
|
children: /* @__PURE__ */ A(f, {
|
|
325
326
|
gap: "2xl",
|
|
@@ -327,25 +328,26 @@ function q({ eyebrow: e, title: t, description: n, media: i, features: a, footer
|
|
|
327
328
|
className: r("auth-split-panel--content", "min-h-full p-surface md:p-surface-lg", m),
|
|
328
329
|
children: [
|
|
329
330
|
!!i && /* @__PURE__ */ k("div", {
|
|
330
|
-
className: "auth-split-panel--media overflow-hidden rounded-radius border border-border/60 bg-card",
|
|
331
|
+
className: "auth-split-panel--media overflow-hidden rounded-radius border border-border/60 bg-card text-card-foreground",
|
|
331
332
|
children: i
|
|
332
333
|
}),
|
|
333
334
|
!!g && /* @__PURE__ */ A(f, {
|
|
334
335
|
gap: "md",
|
|
335
336
|
className: "auth-split-panel--intro max-w-xl",
|
|
336
337
|
children: [
|
|
337
|
-
!!e && /* @__PURE__ */ k(
|
|
338
|
+
!!e && /* @__PURE__ */ k(s, {
|
|
338
339
|
tag: "div",
|
|
339
|
-
className: "auth-split-panel--eyebrow",
|
|
340
|
+
className: "auth-split-panel--eyebrow text-inherit",
|
|
340
341
|
children: e
|
|
341
342
|
}),
|
|
342
|
-
!!t && /* @__PURE__ */ k(
|
|
343
|
+
!!t && /* @__PURE__ */ k(c, {
|
|
343
344
|
tag: "h2",
|
|
344
345
|
containerClassName: "space-y-0",
|
|
345
|
-
|
|
346
|
+
size: "base",
|
|
347
|
+
className: "auth-split-panel--title text-inherit",
|
|
346
348
|
children: t
|
|
347
349
|
}),
|
|
348
|
-
!!n && /* @__PURE__ */ k(
|
|
350
|
+
!!n && /* @__PURE__ */ k(o, {
|
|
349
351
|
tag: "div",
|
|
350
352
|
type: "secondary",
|
|
351
353
|
lineHeight: "relaxed",
|
|
@@ -358,7 +360,7 @@ function q({ eyebrow: e, title: t, description: n, media: i, features: a, footer
|
|
|
358
360
|
className: "auth-split-panel--features",
|
|
359
361
|
children: C.map((e, t) => /* @__PURE__ */ A(x, {
|
|
360
362
|
variant: "muted",
|
|
361
|
-
className: "auth-split-panel--feature bg-card",
|
|
363
|
+
className: "auth-split-panel--feature bg-card text-card-foreground",
|
|
362
364
|
children: [!!e.icon && /* @__PURE__ */ k(_, {
|
|
363
365
|
variant: "icon",
|
|
364
366
|
className: "text-muted-foreground",
|
|
@@ -398,12 +400,12 @@ function se(e) {
|
|
|
398
400
|
children: e.logo
|
|
399
401
|
}), !!t && /* @__PURE__ */ A("div", {
|
|
400
402
|
className: "auth-shell--brand-text min-w-0",
|
|
401
|
-
children: [!!e.label && /* @__PURE__ */ k(
|
|
403
|
+
children: [!!e.label && /* @__PURE__ */ k(o, {
|
|
402
404
|
tag: "div",
|
|
403
405
|
weight: "semibold",
|
|
404
406
|
className: "auth-shell--brand-label",
|
|
405
407
|
children: e.label
|
|
406
|
-
}), !!e.description && /* @__PURE__ */ k(
|
|
408
|
+
}), !!e.description && /* @__PURE__ */ k(o, {
|
|
407
409
|
tag: "div",
|
|
408
410
|
size: "xs",
|
|
409
411
|
type: "secondary",
|
|
@@ -432,10 +434,10 @@ function ce({ brand: e, renderLink: t }) {
|
|
|
432
434
|
function le(e) {
|
|
433
435
|
return e ? E(e) ? e : oe(e) ? /* @__PURE__ */ k(q, { ...e }) : null : null;
|
|
434
436
|
}
|
|
435
|
-
function J({ children: e, variant: t = "card", size: i = "md", align: a = "center", brand:
|
|
437
|
+
function J({ children: e, variant: t = "card", size: i = "md", align: a = "center", brand: s, eyebrow: c, title: l, description: u, headerEnd: d, banner: p, cardMedia: m, cardMediaClassName: h, cardFooter: g, postCard: _, footer: v, footerLinks: y, policyLinks: b, languageLinks: x, languageSwitcher: S, socialProviders: C, socialProvidersLayout: T = "stack", socialDivider: ee, splitPanel: E, splitSide: D = "left", splitMobile: O = "hidden", renderLink: j, className: M, mainClassName: N, stackClassName: I, cardClassName: L, cardContentClassName: R, splitGridClassName: B, splitPanelClassName: V, footerClassName: H, strings: U, ...W }) {
|
|
436
438
|
let G = n(F, U), { variant: K, hasBrand: ie, hasAfterCard: q, hasSplitPanel: oe, hasSocialProviders: se, renderLink: J, footerLinks: Y, policyLinks: X, languageLinks: Z, socialProviders: Q } = P({
|
|
437
439
|
variant: t,
|
|
438
|
-
brand:
|
|
440
|
+
brand: s,
|
|
439
441
|
footer: v,
|
|
440
442
|
footerLinks: y,
|
|
441
443
|
policyLinks: b,
|
|
@@ -446,7 +448,7 @@ function J({ children: e, variant: t = "card", size: i = "md", align: a = "cente
|
|
|
446
448
|
splitPanel: E,
|
|
447
449
|
renderLink: j
|
|
448
450
|
}), ue = K === "split" && oe, de = le(E), $ = D === "left", fe = O === "stacked", pe = ie ? ce({
|
|
449
|
-
brand:
|
|
451
|
+
brand: s,
|
|
450
452
|
renderLink: J
|
|
451
453
|
}) : null, me = /* @__PURE__ */ k(f, {
|
|
452
454
|
render: /* @__PURE__ */ k("main", {}),
|
|
@@ -464,7 +466,7 @@ function J({ children: e, variant: t = "card", size: i = "md", align: a = "cente
|
|
|
464
466
|
pe,
|
|
465
467
|
/* @__PURE__ */ A(ne, {
|
|
466
468
|
surface: K === "bare" ? "bare" : "card",
|
|
467
|
-
eyebrow:
|
|
469
|
+
eyebrow: c,
|
|
468
470
|
title: l,
|
|
469
471
|
description: u,
|
|
470
472
|
headerEnd: d,
|
|
@@ -489,7 +491,7 @@ function J({ children: e, variant: t = "card", size: i = "md", align: a = "cente
|
|
|
489
491
|
className: "h-px min-w-0 flex-1 bg-border",
|
|
490
492
|
"aria-hidden": "true"
|
|
491
493
|
}),
|
|
492
|
-
/* @__PURE__ */ k(
|
|
494
|
+
/* @__PURE__ */ k(o, {
|
|
493
495
|
tag: "span",
|
|
494
496
|
size: "xs",
|
|
495
497
|
type: "secondary",
|
|
@@ -623,7 +625,7 @@ function Q({ options: e = [], value: t, defaultValue: n, onValueChange: r } = {}
|
|
|
623
625
|
setValue: d
|
|
624
626
|
};
|
|
625
627
|
}
|
|
626
|
-
function ue({ options: e = [], value: t, defaultValue: i, onValueChange: a, layout:
|
|
628
|
+
function ue({ options: e = [], value: t, defaultValue: i, onValueChange: a, layout: s = "stack", divider: c, className: p, strings: m, ...h }) {
|
|
627
629
|
let _ = n(R, m), { "aria-label": v, ...y } = h, { value: b, options: x, setValue: S } = Q({
|
|
628
630
|
options: e,
|
|
629
631
|
value: t,
|
|
@@ -631,7 +633,7 @@ function ue({ options: e = [], value: t, defaultValue: i, onValueChange: a, layo
|
|
|
631
633
|
onValueChange: a
|
|
632
634
|
});
|
|
633
635
|
if (x.length === 0) return null;
|
|
634
|
-
let C =
|
|
636
|
+
let C = s === "segmented", w = x.map((e) => {
|
|
635
637
|
let t = e.id === b, n = /* @__PURE__ */ A(O, { children: [!!e.icon && /* @__PURE__ */ k("span", {
|
|
636
638
|
className: "auth-method-switch--option-icon shrink-0",
|
|
637
639
|
"aria-hidden": "true",
|
|
@@ -640,15 +642,17 @@ function ue({ options: e = [], value: t, defaultValue: i, onValueChange: a, layo
|
|
|
640
642
|
render: /* @__PURE__ */ k("span", {}),
|
|
641
643
|
gap: "dense",
|
|
642
644
|
className: "auth-method-switch--option-copy w-full",
|
|
643
|
-
children: [/* @__PURE__ */ k(
|
|
645
|
+
children: [/* @__PURE__ */ k(o, {
|
|
644
646
|
tag: "span",
|
|
645
647
|
weight: "semibold",
|
|
646
|
-
|
|
648
|
+
lineHeight: "tight",
|
|
649
|
+
className: r("max-w-full whitespace-normal break-words text-inherit", C ? "text-center min-[480px]:truncate min-[480px]:text-start" : "text-start"),
|
|
647
650
|
children: e.label
|
|
648
|
-
}), !!e.description && /* @__PURE__ */ k(
|
|
651
|
+
}), !!e.description && /* @__PURE__ */ k(o, {
|
|
649
652
|
tag: "span",
|
|
650
653
|
size: "xs",
|
|
651
|
-
|
|
654
|
+
lineHeight: C ? void 0 : "snug",
|
|
655
|
+
className: r("whitespace-normal break-words", C ? "hidden min-[480px]:block min-[480px]:truncate" : "text-start", t ? "text-inherit" : "text-muted-foreground"),
|
|
652
656
|
children: e.description
|
|
653
657
|
})]
|
|
654
658
|
})] });
|
|
@@ -681,39 +685,39 @@ function ue({ options: e = [], value: t, defaultValue: i, onValueChange: a, layo
|
|
|
681
685
|
gap: "lg",
|
|
682
686
|
className: r("auth-method-switch--component", p),
|
|
683
687
|
...y,
|
|
684
|
-
children: [
|
|
688
|
+
children: [c !== null && c !== !1 && /* @__PURE__ */ A("div", {
|
|
685
689
|
className: "auth-method-switch--divider flex items-center gap-space-lg",
|
|
686
690
|
children: [
|
|
687
691
|
/* @__PURE__ */ k("span", {
|
|
688
692
|
className: "h-px min-w-0 flex-1 bg-border",
|
|
689
693
|
"aria-hidden": "true"
|
|
690
694
|
}),
|
|
691
|
-
/* @__PURE__ */ k(
|
|
695
|
+
/* @__PURE__ */ k(o, {
|
|
692
696
|
tag: "span",
|
|
693
697
|
size: "xs",
|
|
694
698
|
type: "secondary",
|
|
695
|
-
children:
|
|
699
|
+
children: c ?? _.divider
|
|
696
700
|
}),
|
|
697
701
|
/* @__PURE__ */ k("span", {
|
|
698
702
|
className: "h-px min-w-0 flex-1 bg-border",
|
|
699
703
|
"aria-hidden": "true"
|
|
700
704
|
})
|
|
701
705
|
]
|
|
702
|
-
}),
|
|
706
|
+
}), s === "segmented" ? /* @__PURE__ */ k("div", {
|
|
703
707
|
role: "group",
|
|
704
708
|
"aria-label": v ?? _.label,
|
|
705
|
-
"data-layout":
|
|
709
|
+
"data-layout": s,
|
|
706
710
|
className: "auth-method-switch--options grid min-w-0 grid-cols-[repeat(auto-fit,minmax(0,1fr))] gap-space-xs rounded-inner border border-border bg-muted p-space-xs",
|
|
707
711
|
children: w
|
|
708
712
|
}) : /* @__PURE__ */ k(d, {
|
|
709
|
-
columns:
|
|
713
|
+
columns: s === "grid" ? {
|
|
710
714
|
base: 1,
|
|
711
715
|
sm: 2
|
|
712
716
|
} : 1,
|
|
713
717
|
gap: "md",
|
|
714
718
|
role: "group",
|
|
715
719
|
"aria-label": v ?? _.label,
|
|
716
|
-
"data-layout":
|
|
720
|
+
"data-layout": s,
|
|
717
721
|
className: "auth-method-switch--options",
|
|
718
722
|
children: w
|
|
719
723
|
})]
|
|
@@ -722,4 +726,4 @@ function ue({ options: e = [], value: t, defaultValue: i, onValueChange: a, layo
|
|
|
722
726
|
//#endregion
|
|
723
727
|
export { ne as _, J as a, re as c, R as d, F as f, P as g, N as h, X as i, z as l, M as m, Q as n, q as o, L as p, Y as r, K as s, ue as t, I as u };
|
|
724
728
|
|
|
725
|
-
//# sourceMappingURL=auth-
|
|
729
|
+
//# sourceMappingURL=auth-ax2BqjrI.js.map
|