admin-ui-starter-kit 0.1.3 → 0.4.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/.agents/skills/admin-ui-consumer-migration/SKILL.md +285 -2
- package/.agents/skills/component-library-rules/SKILL.md +9 -8
- package/.agents/skills/component-library-rules/references/audit-followups.md +4 -4
- package/.agents/skills/component-library-rules/references/components/INDEX.json +106 -92
- package/.agents/skills/component-library-rules/references/components/INDEX.md +18 -4
- package/.agents/skills/component-library-rules/references/components/base__accordion.md +78 -9
- package/.agents/skills/component-library-rules/references/components/base__alert.md +156 -0
- package/.agents/skills/component-library-rules/references/components/base__badge.md +8 -1
- package/.agents/skills/component-library-rules/references/components/base__buttons.md +139 -7
- package/.agents/skills/component-library-rules/references/components/base__cards.md +101 -4
- package/.agents/skills/component-library-rules/references/components/base__carousel.md +524 -0
- package/.agents/skills/component-library-rules/references/components/base__chart.md +391 -0
- package/.agents/skills/component-library-rules/references/components/base__combobox.md +213 -4
- package/.agents/skills/component-library-rules/references/components/base__copyable.md +49 -1
- package/.agents/skills/component-library-rules/references/components/base__currency.md +72 -1
- package/.agents/skills/component-library-rules/references/components/base__date-pickers.md +84 -50
- package/.agents/skills/component-library-rules/references/components/base__display.md +186 -39
- package/.agents/skills/component-library-rules/references/components/base__empty-state.md +67 -1
- package/.agents/skills/component-library-rules/references/components/base__event-calendar.md +57 -2
- package/.agents/skills/component-library-rules/references/components/base__forms.md +338 -8
- package/.agents/skills/component-library-rules/references/components/base__frame.md +235 -0
- package/.agents/skills/component-library-rules/references/components/base__item.md +48 -2
- package/.agents/skills/component-library-rules/references/components/base__map.md +44 -8
- package/.agents/skills/component-library-rules/references/components/base__metadata-list.md +99 -7
- package/.agents/skills/component-library-rules/references/components/base__navigation.md +79 -9
- package/.agents/skills/component-library-rules/references/components/base__spinner.md +44 -3
- package/.agents/skills/component-library-rules/references/components/base__table.md +110 -16
- package/.agents/skills/component-library-rules/references/components/base__typography.md +128 -5
- package/.agents/skills/component-library-rules/references/components/base__upload-tray.md +43 -1
- package/.agents/skills/component-library-rules/references/components/common__brand.md +21 -25
- package/.agents/skills/component-library-rules/references/components/composed__admin.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__ai-elements.md +21 -6
- package/.agents/skills/component-library-rules/references/components/composed__ai-new.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__ai.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__api-key-list.md +12 -5
- package/.agents/skills/component-library-rules/references/components/composed__commerce-extras.md +179 -114
- package/.agents/skills/component-library-rules/references/components/composed__commerce.md +57 -49
- package/.agents/skills/component-library-rules/references/components/composed__contact-card.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__course-card.md +90 -105
- package/.agents/skills/component-library-rules/references/components/composed__dark-surfaces.md +10 -3
- package/.agents/skills/component-library-rules/references/components/composed__dense-info.md +11 -4
- package/.agents/skills/component-library-rules/references/components/composed__feature-announcement.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__giftcard-cards.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__gradient-card.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__invoice-header.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__invoice-items.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__invoice-mini.md +9 -2
- package/.agents/skills/component-library-rules/references/components/composed__invoice-table.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__navigation-extras.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__navigation.md +18 -7
- package/.agents/skills/component-library-rules/references/components/composed__onboarding-checklist.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__timelines.md +29 -8
- package/.agents/skills/component-library-rules/references/components/composed__vendor-profile.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__activities.md +60 -19
- package/.agents/skills/component-library-rules/references/components/features__ai-chat.md +134 -1
- package/.agents/skills/component-library-rules/references/components/features__card.md +239 -0
- package/.agents/skills/component-library-rules/references/components/features__comments.md +48 -5
- package/.agents/skills/component-library-rules/references/components/features__enhanced-activities.md +23 -6
- package/.agents/skills/component-library-rules/references/components/features__event-log.md +14 -3
- package/.agents/skills/component-library-rules/references/components/features__filters.md +21 -1
- package/.agents/skills/component-library-rules/references/components/features__global-search.md +173 -2
- package/.agents/skills/component-library-rules/references/components/features__kanban.md +99 -81
- package/.agents/skills/component-library-rules/references/components/features__media-library.md +796 -0
- package/.agents/skills/component-library-rules/references/components/features__mentions.md +187 -0
- package/.agents/skills/component-library-rules/references/components/features__metrics-analytics-bar.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-analytics-cards.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-comparison.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-heatmap.md +10 -3
- package/.agents/skills/component-library-rules/references/components/features__metrics-inline-badge.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-kpi-row.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-micro-grid.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-overview.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-stat-cards.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__overlays.md +56 -22
- package/.agents/skills/component-library-rules/references/components/features__products.md +491 -0
- package/.agents/skills/component-library-rules/references/components/features__rich-text-editor.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__schema-form.md +375 -0
- package/.agents/skills/component-library-rules/references/components/features__suggestions.md +177 -0
- package/.agents/skills/component-library-rules/references/components/features__sync.md +155 -0
- package/.agents/skills/component-library-rules/references/components/layout__layout-app-shell.md +667 -0
- package/.agents/skills/component-library-rules/references/components/layout__layout-auth.md +826 -0
- package/.agents/skills/component-library-rules/references/components/layout__layout-containers.md +15 -3
- package/.agents/skills/component-library-rules/references/components/layout__layout-header.md +10 -3
- package/.agents/skills/component-library-rules/references/components/layout__layout-page.md +8 -1
- package/.agents/skills/component-library-rules/references/components/layout__layout-sidebar.md +10 -3
- package/.agents/skills/component-library-rules/references/components/layout__layout-users.md +58 -37
- package/.agents/skills/component-library-rules/references/components/layout__layout-workspace.md +234 -0
- package/.agents/skills/component-library-rules/references/components/ui__alert.md +6 -2
- package/.agents/skills/component-library-rules/references/components/ui__avatar.md +2 -2
- package/.agents/skills/component-library-rules/references/components/ui__breadcrumb.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__button.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__calendar.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__collapsible.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__empty-item.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__input-group.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__inputs.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__menus.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__overlays.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__pagination.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__progress.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__scroll-area.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__separator.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__skeleton.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__sonner.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__spinner.md +2 -2
- package/.agents/skills/component-library-rules/references/components/ui__tabs.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__toggles-group.md +8 -8
- package/.agents/skills/component-library-rules/references/components/ui__toggles.md +2 -2
- package/.agents/skills/component-library-rules/references/components/ui__ui-badge.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__ui-card.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__ui-table.md +1 -1
- package/.agents/skills/component-library-rules/references/visual-eval.md +1 -1
- package/.agents/skills/component-quality-pass/SKILL.md +47 -0
- package/.agents/skills/component-quality-pass/agents/openai.yaml +4 -0
- package/.agents/skills/component-quality-pass/references/audit-workflow.md +133 -0
- package/.agents/skills/component-quality-pass/scripts/list-preview-routes.mjs +71 -0
- package/.agents/skills/component-quality-pass/scripts/scan-quality-smells.mjs +213 -0
- package/CHANGELOG.md +27 -1
- package/COMPONENT_SELECTION.md +51 -5
- package/INTEGRATION.md +52 -2
- package/MIGRATION.md +21 -3
- package/PUBLISHING.md +4 -1
- package/README.md +62 -9
- package/dist/_shared/accordion-BWU7zxlO.cjs +2 -0
- package/dist/_shared/accordion-BWU7zxlO.cjs.map +1 -0
- package/dist/_shared/accordion-DTYKGqWD.js +130 -0
- package/dist/_shared/accordion-DTYKGqWD.js.map +1 -0
- package/dist/_shared/action-menu-BoQnI2UF.cjs +2 -0
- package/dist/_shared/action-menu-BoQnI2UF.cjs.map +1 -0
- package/dist/_shared/action-menu-uyg1Phsn.js +96 -0
- package/dist/_shared/action-menu-uyg1Phsn.js.map +1 -0
- package/dist/_shared/ai-artifact-CY1Jf9gM.cjs +3 -0
- package/dist/_shared/ai-artifact-CY1Jf9gM.cjs.map +1 -0
- package/dist/_shared/ai-artifact-DdlK_l56.js +1099 -0
- package/dist/_shared/ai-artifact-DdlK_l56.js.map +1 -0
- package/dist/_shared/alert-CuIIKJC-.cjs +2 -0
- package/dist/_shared/alert-CuIIKJC-.cjs.map +1 -0
- package/dist/_shared/alert-k60OnTtb.js +81 -0
- package/dist/_shared/alert-k60OnTtb.js.map +1 -0
- package/dist/_shared/app-shell-DqDnnKT4.cjs +2 -0
- package/dist/_shared/app-shell-DqDnnKT4.cjs.map +1 -0
- package/dist/_shared/app-shell-w5h0vEKg.js +69 -0
- package/dist/_shared/app-shell-w5h0vEKg.js.map +1 -0
- package/dist/_shared/auth-CDjZFJxy.cjs +2 -0
- package/dist/_shared/auth-CDjZFJxy.cjs.map +1 -0
- package/dist/_shared/auth-_udUdWtn.js +643 -0
- package/dist/_shared/auth-_udUdWtn.js.map +1 -0
- package/dist/_shared/avatar-0spfQEHG.cjs +2 -0
- package/dist/_shared/avatar-0spfQEHG.cjs.map +1 -0
- package/dist/_shared/avatar-CBi4LGxy.js +52 -0
- package/dist/_shared/avatar-CBi4LGxy.js.map +1 -0
- package/dist/_shared/badge--o9wFHB_.cjs +2 -0
- package/dist/_shared/badge--o9wFHB_.cjs.map +1 -0
- package/dist/_shared/badge-yGlx9trX.js +108 -0
- package/dist/_shared/badge-yGlx9trX.js.map +1 -0
- package/dist/_shared/breadcrumbs-Dqp2qAmo.cjs +2 -0
- package/dist/_shared/breadcrumbs-Dqp2qAmo.cjs.map +1 -0
- package/dist/_shared/breadcrumbs-bJ-J0oCd.js +111 -0
- package/dist/_shared/breadcrumbs-bJ-J0oCd.js.map +1 -0
- package/dist/_shared/button-683R5quQ.js +46 -0
- package/dist/_shared/button-683R5quQ.js.map +1 -0
- package/dist/_shared/button-C1qc97U1.cjs +2 -0
- package/dist/_shared/button-C1qc97U1.cjs.map +1 -0
- package/dist/_shared/button-CjZrRLzR.cjs +2 -0
- package/dist/_shared/button-CjZrRLzR.cjs.map +1 -0
- package/dist/_shared/button-SuocMQFT.js +173 -0
- package/dist/_shared/button-SuocMQFT.js.map +1 -0
- package/dist/_shared/buttons-9YBwevkP.cjs +2 -0
- package/dist/_shared/buttons-9YBwevkP.cjs.map +1 -0
- package/dist/_shared/buttons-BR4BGVYf.js +143 -0
- package/dist/_shared/buttons-BR4BGVYf.js.map +1 -0
- package/dist/_shared/card-radio-group-Bna2uZs1.cjs +2 -0
- package/dist/_shared/card-radio-group-Bna2uZs1.cjs.map +1 -0
- package/dist/_shared/card-radio-group-D_CY1HRy.js +158 -0
- package/dist/_shared/card-radio-group-D_CY1HRy.js.map +1 -0
- package/dist/_shared/checkbox-CTqqawIT.js +22 -0
- package/dist/_shared/checkbox-CTqqawIT.js.map +1 -0
- package/dist/_shared/checkbox-D1n-nfLP.cjs +2 -0
- package/dist/_shared/checkbox-D1n-nfLP.cjs.map +1 -0
- package/dist/_shared/chunk-CMqjfN_6.cjs +1 -0
- package/dist/_shared/combobox-CpSmiPV8.cjs +2 -0
- package/dist/_shared/combobox-CpSmiPV8.cjs.map +1 -0
- package/dist/_shared/combobox-D01JwyFZ.js +810 -0
- package/dist/_shared/combobox-D01JwyFZ.js.map +1 -0
- package/dist/_shared/command-Bxe_FmGD.cjs +2 -0
- package/dist/_shared/command-Bxe_FmGD.cjs.map +1 -0
- package/dist/_shared/command-CAI-BCSR.js +123 -0
- package/dist/_shared/command-CAI-BCSR.js.map +1 -0
- package/dist/_shared/command-DRIySU26.cjs +2 -0
- package/dist/_shared/command-DRIySU26.cjs.map +1 -0
- package/dist/_shared/command-DwRnPIGs.js +39 -0
- package/dist/_shared/command-DwRnPIGs.js.map +1 -0
- package/dist/_shared/comments-D9velZAW.js +952 -0
- package/dist/_shared/comments-D9velZAW.js.map +1 -0
- package/dist/_shared/comments-DyUAKSQu.cjs +2 -0
- package/dist/_shared/comments-DyUAKSQu.cjs.map +1 -0
- package/dist/_shared/containers-D7oZE4XI.cjs +2 -0
- package/dist/_shared/containers-D7oZE4XI.cjs.map +1 -0
- package/dist/_shared/containers-anBivbL9.js +19 -0
- package/dist/_shared/containers-anBivbL9.js.map +1 -0
- package/dist/_shared/content-container-CVUJCLhn.cjs +2 -0
- package/dist/_shared/content-container-CVUJCLhn.cjs.map +1 -0
- package/dist/_shared/content-container-Dv8XsAw4.js +33 -0
- package/dist/_shared/content-container-Dv8XsAw4.js.map +1 -0
- package/dist/_shared/copyable-Bx4J7fuT.cjs +2 -0
- package/dist/_shared/copyable-Bx4J7fuT.cjs.map +1 -0
- package/dist/_shared/copyable-cfF4gZoT.js +38 -0
- package/dist/_shared/copyable-cfF4gZoT.js.map +1 -0
- package/dist/_shared/date-picker-BnsvBFOZ.cjs +2 -0
- package/dist/_shared/date-picker-BnsvBFOZ.cjs.map +1 -0
- package/dist/_shared/date-picker-TMcjGO26.js +1361 -0
- package/dist/_shared/date-picker-TMcjGO26.js.map +1 -0
- package/dist/_shared/date-pickers-BI4xLjHR.js +330 -0
- package/dist/_shared/date-pickers-BI4xLjHR.js.map +1 -0
- package/dist/_shared/date-pickers-BhaUK5S2.cjs +2 -0
- package/dist/_shared/date-pickers-BhaUK5S2.cjs.map +1 -0
- package/dist/_shared/dialog-A95-614f.js +101 -0
- package/dist/_shared/dialog-A95-614f.js.map +1 -0
- package/dist/_shared/dialog-ivDByBmO.cjs +2 -0
- package/dist/_shared/dialog-ivDByBmO.cjs.map +1 -0
- package/dist/_shared/display-C4n0uuxl.js +1154 -0
- package/dist/_shared/display-C4n0uuxl.js.map +1 -0
- package/dist/_shared/display-oDW0O9yB.cjs +2 -0
- package/dist/_shared/display-oDW0O9yB.cjs.map +1 -0
- package/dist/_shared/dropdown-menu-CHQzQWUK.cjs +2 -0
- package/dist/_shared/dropdown-menu-CHQzQWUK.cjs.map +1 -0
- package/dist/_shared/dropdown-menu-CoWmrjYX.js +147 -0
- package/dist/_shared/dropdown-menu-CoWmrjYX.js.map +1 -0
- package/dist/_shared/form-field-B7taMVbC.js +329 -0
- package/dist/_shared/form-field-B7taMVbC.js.map +1 -0
- package/dist/_shared/form-field-rMGPvHFK.cjs +2 -0
- package/dist/_shared/form-field-rMGPvHFK.cjs.map +1 -0
- package/dist/_shared/form-sizing-D74IS9KG.js +21 -0
- package/dist/_shared/form-sizing-D74IS9KG.js.map +1 -0
- package/dist/_shared/form-sizing-aVwVuF-w.cjs +2 -0
- package/dist/_shared/form-sizing-aVwVuF-w.cjs.map +1 -0
- package/dist/_shared/format-BTtJC6oz.cjs +2 -0
- package/dist/_shared/format-BTtJC6oz.cjs.map +1 -0
- package/dist/_shared/format-BX3QestD.js +48 -0
- package/dist/_shared/format-BX3QestD.js.map +1 -0
- package/dist/_shared/forms-CwJci54_.js +3430 -0
- package/dist/_shared/forms-CwJci54_.js.map +1 -0
- package/dist/_shared/forms-E3JkTgcC.cjs +2 -0
- package/dist/_shared/forms-E3JkTgcC.cjs.map +1 -0
- package/dist/_shared/header-BUAddfdE.js +360 -0
- package/dist/_shared/header-BUAddfdE.js.map +1 -0
- package/dist/_shared/header-BnxWOiNm.cjs +2 -0
- package/dist/_shared/header-BnxWOiNm.cjs.map +1 -0
- package/dist/_shared/heading-0DYCOrgC.cjs +2 -0
- package/dist/_shared/heading-0DYCOrgC.cjs.map +1 -0
- package/dist/_shared/heading-HeP06nXG.js +107 -0
- package/dist/_shared/heading-HeP06nXG.js.map +1 -0
- package/dist/_shared/hooks-MW0UTO3q.cjs +2 -0
- package/dist/_shared/hooks-MW0UTO3q.cjs.map +1 -0
- package/dist/_shared/hooks-ZiPIvs0_.js +118 -0
- package/dist/_shared/hooks-ZiPIvs0_.js.map +1 -0
- package/dist/_shared/icon-badge-BAWl1oOe.cjs +2 -0
- package/dist/_shared/icon-badge-BAWl1oOe.cjs.map +1 -0
- package/dist/_shared/icon-badge-zTBVtgt9.js +52 -0
- package/dist/_shared/icon-badge-zTBVtgt9.js.map +1 -0
- package/dist/_shared/input-C7t-RHYq.js +182 -0
- package/dist/_shared/input-C7t-RHYq.js.map +1 -0
- package/dist/_shared/input-COMcb1WY.cjs +2 -0
- package/dist/_shared/input-COMcb1WY.cjs.map +1 -0
- package/dist/_shared/input-D43_IMWW.cjs +2 -0
- package/dist/_shared/input-D43_IMWW.cjs.map +1 -0
- package/dist/_shared/input-R8c90tNY.js +17 -0
- package/dist/_shared/input-R8c90tNY.js.map +1 -0
- package/dist/_shared/item-DAjqQhhj.js +225 -0
- package/dist/_shared/item-DAjqQhhj.js.map +1 -0
- package/dist/_shared/item-DoXXYgPm.cjs +2 -0
- package/dist/_shared/item-DoXXYgPm.cjs.map +1 -0
- package/dist/_shared/mentions-Br-EP9tq.js +506 -0
- package/dist/_shared/mentions-Br-EP9tq.js.map +1 -0
- package/dist/_shared/mentions-DNTsRHJl.cjs +2 -0
- package/dist/_shared/mentions-DNTsRHJl.cjs.map +1 -0
- package/dist/_shared/metadata-CPSQGPJh.cjs +2 -0
- package/dist/_shared/metadata-CPSQGPJh.cjs.map +1 -0
- package/dist/_shared/metadata-qTNAOM7E.js +235 -0
- package/dist/_shared/metadata-qTNAOM7E.js.map +1 -0
- package/dist/_shared/money-display-CFSMUtxS.cjs +2 -0
- package/dist/_shared/money-display-CFSMUtxS.cjs.map +1 -0
- package/dist/_shared/money-display-D4Z3P3f_.js +198 -0
- package/dist/_shared/money-display-D4Z3P3f_.js.map +1 -0
- package/dist/_shared/navigation-HnnA6uSV.js +419 -0
- package/dist/_shared/navigation-HnnA6uSV.js.map +1 -0
- package/dist/_shared/navigation-J2g0Tw9D.cjs +2 -0
- package/dist/_shared/navigation-J2g0Tw9D.cjs.map +1 -0
- package/dist/_shared/overlays-CIeniDjj.js +639 -0
- package/dist/_shared/overlays-CIeniDjj.js.map +1 -0
- package/dist/_shared/overlays-Xc_F_Y-E.cjs +2 -0
- package/dist/_shared/overlays-Xc_F_Y-E.cjs.map +1 -0
- package/dist/_shared/page-BFV-KE8H.js +262 -0
- package/dist/_shared/page-BFV-KE8H.js.map +1 -0
- package/dist/_shared/page-UJfWfw2R.cjs +2 -0
- package/dist/_shared/page-UJfWfw2R.cjs.map +1 -0
- package/dist/_shared/popover-CaHvG8Vj.cjs +2 -0
- package/dist/_shared/popover-CaHvG8Vj.cjs.map +1 -0
- package/dist/_shared/popover-L37RqoRO.js +83 -0
- package/dist/_shared/popover-L37RqoRO.js.map +1 -0
- package/dist/_shared/popover-menu-Fz-bvWJF.cjs +2 -0
- package/dist/_shared/popover-menu-Fz-bvWJF.cjs.map +1 -0
- package/dist/_shared/popover-menu-bKQatoYF.js +93 -0
- package/dist/_shared/popover-menu-bKQatoYF.js.map +1 -0
- package/dist/_shared/rich-text-editor-B6WKHUKC.js +620 -0
- package/dist/_shared/rich-text-editor-B6WKHUKC.js.map +1 -0
- package/dist/_shared/rich-text-editor-Dm-6r_xe.cjs +2 -0
- package/dist/_shared/rich-text-editor-Dm-6r_xe.cjs.map +1 -0
- package/dist/_shared/scroll-area-BH5CPQh4.js +41 -0
- package/dist/_shared/scroll-area-BH5CPQh4.js.map +1 -0
- package/dist/_shared/scroll-area-u46BOVcC.cjs +2 -0
- package/dist/_shared/scroll-area-u46BOVcC.cjs.map +1 -0
- package/dist/_shared/select-BwUUXpsb.js +85 -0
- package/dist/_shared/select-BwUUXpsb.js.map +1 -0
- package/dist/_shared/select-CG5Yq-6A.cjs +2 -0
- package/dist/_shared/select-CG5Yq-6A.cjs.map +1 -0
- package/dist/_shared/separator-B8FBp-7E.js +16 -0
- package/dist/_shared/separator-B8FBp-7E.js.map +1 -0
- package/dist/_shared/separator-q42IlFFA.cjs +2 -0
- package/dist/_shared/separator-q42IlFFA.cjs.map +1 -0
- package/dist/_shared/sheet-BKEfwhCn.js +100 -0
- package/dist/_shared/sheet-BKEfwhCn.js.map +1 -0
- package/dist/_shared/sheet-D4yWgkwC.cjs +2 -0
- package/dist/_shared/sheet-D4yWgkwC.cjs.map +1 -0
- package/dist/_shared/sidebar-BML5ZZ5s.js +537 -0
- package/dist/_shared/sidebar-BML5ZZ5s.js.map +1 -0
- package/dist/_shared/sidebar-Bl_KRk-S.cjs +2 -0
- package/dist/_shared/sidebar-Bl_KRk-S.cjs.map +1 -0
- package/dist/_shared/sidebar-C89O5ho_.cjs +2 -0
- package/dist/_shared/sidebar-C89O5ho_.cjs.map +1 -0
- package/dist/_shared/sidebar-ux-yk-Ph.js +382 -0
- package/dist/_shared/sidebar-ux-yk-Ph.js.map +1 -0
- package/dist/_shared/skeleton-CGQMeno1.js +14 -0
- package/dist/_shared/skeleton-CGQMeno1.js.map +1 -0
- package/dist/_shared/skeleton-D1c5OHXa.cjs +2 -0
- package/dist/_shared/skeleton-D1c5OHXa.cjs.map +1 -0
- package/dist/_shared/slot-C5EJicOc.js +18 -0
- package/dist/_shared/slot-C5EJicOc.js.map +1 -0
- package/dist/_shared/slot-D-Rwlrz2.cjs +2 -0
- package/dist/_shared/slot-D-Rwlrz2.cjs.map +1 -0
- package/dist/_shared/smart-card-DYZGY_Su.js +361 -0
- package/dist/_shared/smart-card-DYZGY_Su.js.map +1 -0
- package/dist/_shared/smart-card-Df80VF8x.cjs +2 -0
- package/dist/_shared/smart-card-Df80VF8x.cjs.map +1 -0
- package/dist/_shared/spinner-BfAbXTQ7.js +67 -0
- package/dist/_shared/spinner-BfAbXTQ7.js.map +1 -0
- package/dist/_shared/spinner-DWn3x9Tl.cjs +2 -0
- package/dist/_shared/spinner-DWn3x9Tl.cjs.map +1 -0
- package/dist/_shared/switch-BBP3u1z5.js +55 -0
- package/dist/_shared/switch-BBP3u1z5.js.map +1 -0
- package/dist/_shared/switch-zFZhhOEP.cjs +2 -0
- package/dist/_shared/switch-zFZhhOEP.cjs.map +1 -0
- package/dist/_shared/table-CBKDA7ZE.js +1189 -0
- package/dist/_shared/table-CBKDA7ZE.js.map +1 -0
- package/dist/_shared/table-CJoxRCWy.cjs +2 -0
- package/dist/_shared/table-CJoxRCWy.cjs.map +1 -0
- package/dist/_shared/textarea-C4SOrh0z.cjs +2 -0
- package/dist/_shared/textarea-C4SOrh0z.cjs.map +1 -0
- package/dist/_shared/textarea-CsMkelmp.js +119 -0
- package/dist/_shared/textarea-CsMkelmp.js.map +1 -0
- package/dist/_shared/tooltip-CLr_sPX8.js +49 -0
- package/dist/_shared/tooltip-CLr_sPX8.js.map +1 -0
- package/dist/_shared/tooltip-mvxZV_Lu.cjs +2 -0
- package/dist/_shared/tooltip-mvxZV_Lu.cjs.map +1 -0
- package/dist/_shared/typography-Bzsl7aTu.cjs +2 -0
- package/dist/_shared/typography-Bzsl7aTu.cjs.map +1 -0
- package/dist/_shared/typography-CdxyWB1T.js +102 -0
- package/dist/_shared/typography-CdxyWB1T.js.map +1 -0
- package/dist/_shared/ui-provider-BF4m2cR0.cjs +2 -0
- package/dist/_shared/ui-provider-BF4m2cR0.cjs.map +1 -0
- package/dist/_shared/ui-provider-C8Ot88lS.js +85 -0
- package/dist/_shared/ui-provider-C8Ot88lS.js.map +1 -0
- package/dist/_shared/workspace-CTjIGCE0.cjs +2 -0
- package/dist/_shared/workspace-CTjIGCE0.cjs.map +1 -0
- package/dist/_shared/workspace-WgJgiSUA.js +357 -0
- package/dist/_shared/workspace-WgJgiSUA.js.map +1 -0
- package/dist/components/base/accordion/index.cjs +1 -1
- package/dist/components/base/accordion/index.js +2 -2
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.d.ts.map +1 -1
- package/dist/components/base/badge/index.cjs +1 -1
- package/dist/components/base/badge/index.js +1 -1
- package/dist/components/base/buttons/base-button.d.ts.map +1 -1
- package/dist/components/base/buttons/google-button.d.ts +1 -1
- package/dist/components/base/buttons/google-button.d.ts.map +1 -1
- package/dist/components/base/buttons/index.cjs +1 -1
- package/dist/components/base/buttons/index.js +2 -2
- package/dist/components/base/buttons/shopify-button.d.ts +1 -1
- package/dist/components/base/buttons/shopify-button.d.ts.map +1 -1
- package/dist/components/base/buttons/tooltip-button.d.ts.map +1 -1
- package/dist/components/base/cards/index.cjs +1 -1
- package/dist/components/base/cards/index.d.ts +1 -1
- package/dist/components/base/cards/index.d.ts.map +1 -1
- package/dist/components/base/cards/index.js +1 -1
- package/dist/components/base/cards/partials/card-primitives.d.ts +6 -6
- package/dist/components/base/cards/partials/card-primitives.d.ts.map +1 -1
- package/dist/components/base/cards/partials/smart-card-actions-menu.d.ts +1 -1
- package/dist/components/base/cards/partials/smart-card-actions-menu.d.ts.map +1 -1
- package/dist/components/base/cards/partials/smart-card-alert.d.ts +1 -1
- package/dist/components/base/cards/partials/smart-card-alert.d.ts.map +1 -1
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts +1 -1
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts.map +1 -1
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +1 -1
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts.map +1 -1
- package/dist/components/base/cards/smart-card.d.ts.map +1 -1
- package/dist/components/base/cards/smart-card.tokens.d.ts +1 -1
- package/dist/components/base/cards/smart-card.types.d.ts +2 -1
- package/dist/components/base/cards/smart-card.types.d.ts.map +1 -1
- package/dist/components/base/carousel/carousel.d.ts +66 -0
- package/dist/components/base/carousel/carousel.d.ts.map +1 -0
- package/dist/components/base/carousel/carousel.strings.d.ts +7 -0
- package/dist/components/base/carousel/carousel.strings.d.ts.map +1 -0
- package/dist/components/base/carousel/index.cjs +2 -0
- package/dist/components/base/carousel/index.cjs.map +1 -0
- package/dist/components/base/carousel/index.d.ts +3 -0
- package/dist/components/base/carousel/index.d.ts.map +1 -0
- package/dist/components/base/carousel/index.js +239 -0
- package/dist/components/base/carousel/index.js.map +1 -0
- package/dist/components/base/combobox/combobox.strings.d.ts.map +1 -1
- package/dist/components/base/combobox/components/highlighted-text.d.ts.map +1 -1
- package/dist/components/base/combobox/enhanced-combobox.d.ts +2 -2
- package/dist/components/base/combobox/enhanced-combobox.d.ts.map +1 -1
- package/dist/components/base/combobox/hooks/use-debounced-search.d.ts.map +1 -1
- package/dist/components/base/combobox/index.cjs +1 -1
- package/dist/components/base/combobox/index.js +1 -1
- package/dist/components/base/combobox/types.d.ts +6 -1
- package/dist/components/base/combobox/types.d.ts.map +1 -1
- package/dist/components/base/command/command.d.ts +5 -5
- package/dist/components/base/command/command.d.ts.map +1 -1
- package/dist/components/base/command/index.cjs +1 -1
- package/dist/components/base/command/index.js +2 -2
- package/dist/components/base/copyable/copyable.d.ts +1 -1
- package/dist/components/base/copyable/copyable.d.ts.map +1 -1
- package/dist/components/base/copyable/index.cjs +1 -1
- package/dist/components/base/copyable/index.js +1 -1
- package/dist/components/base/currency/currency-pair-preview.d.ts +1 -1
- package/dist/components/base/currency/currency-pair-preview.d.ts.map +1 -1
- package/dist/components/base/currency/index.cjs +1 -1
- package/dist/components/base/currency/index.js +1 -1
- package/dist/components/base/date-pickers/date-picker-footer.d.ts +2 -1
- package/dist/components/base/date-pickers/date-picker-footer.d.ts.map +1 -1
- package/dist/components/base/date-pickers/date-picker-header.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-header.d.ts.map +1 -1
- package/dist/components/base/date-pickers/date-picker-helpers.d.ts +5 -1
- package/dist/components/base/date-pickers/date-picker-helpers.d.ts.map +1 -1
- package/dist/components/base/date-pickers/date-picker.d.ts +2 -1
- package/dist/components/base/date-pickers/date-picker.d.ts.map +1 -1
- package/dist/components/base/date-pickers/date-range-picker.d.ts +2 -1
- package/dist/components/base/date-pickers/date-range-picker.d.ts.map +1 -1
- package/dist/components/base/date-pickers/index.cjs +1 -1
- package/dist/components/base/date-pickers/index.js +3 -3
- package/dist/components/base/date-pickers/month-year-picker.d.ts +2 -1
- package/dist/components/base/date-pickers/month-year-picker.d.ts.map +1 -1
- package/dist/components/base/date-pickers/segmented-time-input.d.ts +2 -1
- package/dist/components/base/date-pickers/segmented-time-input.d.ts.map +1 -1
- package/dist/components/base/display/alert.d.ts +13 -1
- package/dist/components/base/display/alert.d.ts.map +1 -1
- package/dist/components/base/display/boolean-indicator.d.ts +1 -1
- package/dist/components/base/display/boolean-indicator.d.ts.map +1 -1
- package/dist/components/base/display/chart.cjs +8 -0
- package/dist/components/base/display/chart.cjs.map +1 -0
- package/dist/components/base/display/chart.d.ts +71 -1
- package/dist/components/base/display/chart.d.ts.map +1 -1
- package/dist/components/base/display/chart.js +144 -0
- package/dist/components/base/display/chart.js.map +1 -0
- package/dist/components/base/display/date-block.d.ts +2 -2
- package/dist/components/base/display/date-block.d.ts.map +1 -1
- package/dist/components/base/display/empty-state/partials/illustrations/document-stack.d.ts +1 -1
- package/dist/components/base/display/empty-state/partials/illustrations/document-stack.d.ts.map +1 -1
- package/dist/components/base/display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -1
- package/dist/components/base/display/empty-state/partials/illustrations/inbox-clean.d.ts.map +1 -1
- package/dist/components/base/display/empty-state/partials/illustrations/search-glass.d.ts +1 -1
- package/dist/components/base/display/empty-state/partials/illustrations/search-glass.d.ts.map +1 -1
- package/dist/components/base/display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -1
- package/dist/components/base/display/empty-state/partials/illustrations/stacked-cards.d.ts.map +1 -1
- package/dist/components/base/display/empty-state/partials/illustrations/users-circle.d.ts +1 -1
- package/dist/components/base/display/empty-state/partials/illustrations/users-circle.d.ts.map +1 -1
- package/dist/components/base/display/fields/email-display.d.ts +1 -1
- package/dist/components/base/display/fields/email-display.d.ts.map +1 -1
- package/dist/components/base/display/fields/phone-display.d.ts +1 -1
- package/dist/components/base/display/fields/phone-display.d.ts.map +1 -1
- package/dist/components/base/display/fields/url-display.d.ts +1 -1
- package/dist/components/base/display/fields/url-display.d.ts.map +1 -1
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/display/icon-badge/icon-badge.d.ts.map +1 -1
- package/dist/components/base/display/index.cjs +1 -1
- package/dist/components/base/display/index.d.ts +1 -2
- package/dist/components/base/display/index.d.ts.map +1 -1
- package/dist/components/base/display/index.js +12 -12
- package/dist/components/base/display/inline-stat/inline-stat.d.ts +1 -1
- package/dist/components/base/display/inline-stat/inline-stat.d.ts.map +1 -1
- package/dist/components/base/display/metadata/index.cjs +1 -1
- package/dist/components/base/display/metadata/index.js +1 -1
- package/dist/components/base/display/metadata/metadata-list.d.ts +1 -1
- package/dist/components/base/display/metadata/metadata-list.d.ts.map +1 -1
- package/dist/components/base/display/money-display.d.ts +1 -1
- package/dist/components/base/display/money-display.d.ts.map +1 -1
- package/dist/components/base/display/money-input.d.ts +1 -1
- package/dist/components/base/display/money-input.d.ts.map +1 -1
- package/dist/components/base/display/notification-banner.d.ts +1 -1
- package/dist/components/base/display/notification-banner.d.ts.map +1 -1
- package/dist/components/base/display/numeric-value/numeric-value.d.ts +1 -1
- package/dist/components/base/display/numeric-value/numeric-value.d.ts.map +1 -1
- package/dist/components/base/display/placeholder-pattern.d.ts +1 -1
- package/dist/components/base/display/placeholder-pattern.d.ts.map +1 -1
- package/dist/components/base/display/qr-code.d.ts +1 -1
- package/dist/components/base/display/qr-code.d.ts.map +1 -1
- package/dist/components/base/display/section-header/section-header.d.ts +1 -1
- package/dist/components/base/display/section-header/section-header.d.ts.map +1 -1
- package/dist/components/base/display/stacked-avatars.d.ts +7 -6
- package/dist/components/base/display/stacked-avatars.d.ts.map +1 -1
- package/dist/components/base/display/throttle-alert.d.ts +1 -1
- package/dist/components/base/display/throttle-alert.d.ts.map +1 -1
- package/dist/components/base/display/user-cell/user-cell.d.ts +1 -1
- package/dist/components/base/display/user-cell/user-cell.d.ts.map +1 -1
- package/dist/components/base/display/visually-hidden.d.ts +1 -1
- package/dist/components/base/display/visually-hidden.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar-day-cell.d.ts +1 -1
- package/dist/components/base/event-calendar/event-calendar-day-cell.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar-event-badge.d.ts +1 -1
- package/dist/components/base/event-calendar/event-calendar-event-badge.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar-event-card.d.ts +1 -1
- package/dist/components/base/event-calendar/event-calendar-event-card.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar-header.d.ts +1 -1
- package/dist/components/base/event-calendar/event-calendar-header.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar-legend.d.ts +1 -1
- package/dist/components/base/event-calendar/event-calendar-legend.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar.d.ts +1 -1
- package/dist/components/base/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar.types.d.ts +3 -2
- package/dist/components/base/event-calendar/event-calendar.types.d.ts.map +1 -1
- package/dist/components/base/event-calendar/index.cjs +1 -1
- package/dist/components/base/event-calendar/index.cjs.map +1 -1
- package/dist/components/base/event-calendar/index.js +200 -209
- package/dist/components/base/event-calendar/index.js.map +1 -1
- package/dist/components/base/forms/fields/avatar-upload.d.ts.map +1 -1
- package/dist/components/base/forms/fields/card-checkbox-group.d.ts +1 -1
- package/dist/components/base/forms/fields/card-checkbox-group.d.ts.map +1 -1
- package/dist/components/base/forms/fields/card-radio-group.d.ts +1 -1
- package/dist/components/base/forms/fields/card-radio-group.d.ts.map +1 -1
- package/dist/components/base/forms/fields/coordinates-input.d.ts +1 -1
- package/dist/components/base/forms/fields/coordinates-input.d.ts.map +1 -1
- package/dist/components/base/forms/fields/currency-input.d.ts.map +1 -1
- package/dist/components/base/forms/fields/date-time-input.d.ts +1 -1
- package/dist/components/base/forms/fields/date-time-input.d.ts.map +1 -1
- package/dist/components/base/forms/fields/decimal-input.d.ts.map +1 -1
- package/dist/components/base/forms/fields/dimensions-input.d.ts +1 -1
- package/dist/components/base/forms/fields/dimensions-input.d.ts.map +1 -1
- package/dist/components/base/forms/fields/index.d.ts +2 -0
- package/dist/components/base/forms/fields/index.d.ts.map +1 -1
- package/dist/components/base/forms/fields/key-value-editor.d.ts +1 -1
- package/dist/components/base/forms/fields/key-value-editor.d.ts.map +1 -1
- package/dist/components/base/forms/fields/list-radio-group.d.ts +1 -1
- package/dist/components/base/forms/fields/list-radio-group.d.ts.map +1 -1
- package/dist/components/base/forms/fields/list.d.ts +1 -1
- package/dist/components/base/forms/fields/list.d.ts.map +1 -1
- package/dist/components/base/forms/fields/localized-object-field.d.ts +1 -1
- package/dist/components/base/forms/fields/localized-object-field.d.ts.map +1 -1
- package/dist/components/base/forms/fields/localized-string-field.d.ts +1 -1
- package/dist/components/base/forms/fields/localized-string-field.d.ts.map +1 -1
- package/dist/components/base/forms/fields/localized-string-repeater.d.ts +1 -1
- package/dist/components/base/forms/fields/localized-string-repeater.d.ts.map +1 -1
- package/dist/components/base/forms/fields/media-gallery.d.ts +1 -1
- package/dist/components/base/forms/fields/media-gallery.d.ts.map +1 -1
- package/dist/components/base/forms/fields/object-repeater.d.ts +1 -1
- package/dist/components/base/forms/fields/object-repeater.d.ts.map +1 -1
- package/dist/components/base/forms/fields/password-input.d.ts +21 -0
- package/dist/components/base/forms/fields/password-input.d.ts.map +1 -0
- package/dist/components/base/forms/fields/pill-radio-group.d.ts +11 -1
- package/dist/components/base/forms/fields/pill-radio-group.d.ts.map +1 -1
- package/dist/components/base/forms/fields/repeater.d.ts +1 -1
- package/dist/components/base/forms/fields/repeater.d.ts.map +1 -1
- package/dist/components/base/forms/fields/rounding-mode-select.d.ts +1 -1
- package/dist/components/base/forms/fields/rounding-mode-select.d.ts.map +1 -1
- package/dist/components/base/forms/fields/select.d.ts +2 -0
- package/dist/components/base/forms/fields/select.d.ts.map +1 -1
- package/dist/components/base/forms/fields/slug-field.d.ts +16 -0
- package/dist/components/base/forms/fields/slug-field.d.ts.map +1 -0
- package/dist/components/base/forms/fields/string-repeater.d.ts +1 -1
- package/dist/components/base/forms/fields/string-repeater.d.ts.map +1 -1
- package/dist/components/base/forms/fields/switch-card.d.ts +2 -1
- package/dist/components/base/forms/fields/switch-card.d.ts.map +1 -1
- package/dist/components/base/forms/fields/switch.d.ts.map +1 -1
- package/dist/components/base/forms/fields/tags-input.d.ts +1 -1
- package/dist/components/base/forms/fields/tags-input.d.ts.map +1 -1
- package/dist/components/base/forms/fields/time-picker.d.ts +2 -1
- package/dist/components/base/forms/fields/time-picker.d.ts.map +1 -1
- package/dist/components/base/forms/fields/toggle-field.d.ts +1 -1
- package/dist/components/base/forms/fields/toggle-field.d.ts.map +1 -1
- package/dist/components/base/forms/fields/upload-progress-list.d.ts +1 -1
- package/dist/components/base/forms/fields/upload-progress-list.d.ts.map +1 -1
- package/dist/components/base/forms/fields/weight-input.d.ts +2 -1
- package/dist/components/base/forms/fields/weight-input.d.ts.map +1 -1
- package/dist/components/base/forms/form-field.d.ts +63 -2
- package/dist/components/base/forms/form-field.d.ts.map +1 -1
- package/dist/components/base/forms/index.cjs +1 -1
- package/dist/components/base/forms/index.js +8 -7
- package/dist/components/base/forms/operation-password-form.d.ts +1 -1
- package/dist/components/base/forms/operation-password-form.d.ts.map +1 -1
- package/dist/components/base/frame/frame.d.ts +24 -0
- package/dist/components/base/frame/frame.d.ts.map +1 -0
- package/dist/components/base/frame/index.cjs +2 -0
- package/dist/components/base/frame/index.cjs.map +1 -0
- package/dist/components/base/frame/index.d.ts +2 -0
- package/dist/components/base/frame/index.d.ts.map +1 -0
- package/dist/components/base/frame/index.js +164 -0
- package/dist/components/base/frame/index.js.map +1 -0
- package/dist/components/base/index.d.ts.map +1 -1
- package/dist/components/base/item/index.cjs +1 -1
- package/dist/components/base/item/index.js +1 -1
- package/dist/components/base/item/item.d.ts.map +1 -1
- package/dist/components/base/map/index.cjs +1 -1
- package/dist/components/base/map/index.cjs.map +1 -1
- package/dist/components/base/map/index.js +104 -85
- package/dist/components/base/map/index.js.map +1 -1
- package/dist/components/base/map/map.d.ts +31 -30
- package/dist/components/base/map/map.d.ts.map +1 -1
- package/dist/components/base/map/place-autocomplete.d.ts +1 -1
- package/dist/components/base/map/place-autocomplete.d.ts.map +1 -1
- package/dist/components/base/navigation/action-menu.d.ts +1 -1
- package/dist/components/base/navigation/aside-navigation-menu.d.ts +1 -1
- package/dist/components/base/navigation/aside-navigation-menu.d.ts.map +1 -1
- package/dist/components/base/navigation/breadcrumbs.d.ts +1 -1
- package/dist/components/base/navigation/breadcrumbs.d.ts.map +1 -1
- package/dist/components/base/navigation/index.cjs +1 -1
- package/dist/components/base/navigation/index.js +4 -4
- package/dist/components/base/navigation/language-switcher.d.ts +1 -1
- package/dist/components/base/navigation/language-switcher.d.ts.map +1 -1
- package/dist/components/base/navigation/navigation-tabs.d.ts +1 -1
- package/dist/components/base/navigation/navigation-tabs.d.ts.map +1 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +1 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts.map +1 -1
- package/dist/components/base/navigation/page-header/page-header.d.ts +1 -1
- package/dist/components/base/navigation/page-header/page-header.d.ts.map +1 -1
- package/dist/components/base/navigation/section-nav/section-nav.d.ts +1 -1
- package/dist/components/base/navigation/section-nav/section-nav.d.ts.map +1 -1
- package/dist/components/base/navigation/side-nav.d.ts +1 -1
- package/dist/components/base/navigation/side-nav.d.ts.map +1 -1
- package/dist/components/base/navigation/tab-navigation-menu.d.ts +1 -1
- package/dist/components/base/navigation/tab-navigation-menu.d.ts.map +1 -1
- package/dist/components/base/popover/index.cjs +1 -1
- package/dist/components/base/popover/index.js +1 -1
- package/dist/components/base/popover/popover.d.ts +1 -1
- package/dist/components/base/popover/popover.d.ts.map +1 -1
- package/dist/components/base/popover-menu/index.cjs +1 -1
- package/dist/components/base/popover-menu/index.js +1 -1
- package/dist/components/base/popover-menu/popover-menu.d.ts +3 -2
- package/dist/components/base/popover-menu/popover-menu.d.ts.map +1 -1
- package/dist/components/base/sheet/index.cjs +1 -1
- package/dist/components/base/sheet/index.js +1 -1
- package/dist/components/base/sidebar/index.cjs +1 -1
- package/dist/components/base/sidebar/index.js +2 -2
- package/dist/components/base/sidebar/sidebar.d.ts +10 -9
- package/dist/components/base/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/base/spinner/index.cjs +1 -1
- package/dist/components/base/spinner/index.js +1 -1
- package/dist/components/base/table/column-visibility-toggle.d.ts +1 -1
- package/dist/components/base/table/column-visibility-toggle.d.ts.map +1 -1
- package/dist/components/base/table/data-table.d.ts +1 -1
- package/dist/components/base/table/data-table.d.ts.map +1 -1
- package/dist/components/base/table/filter-bar.d.ts +1 -1
- package/dist/components/base/table/filter-bar.d.ts.map +1 -1
- package/dist/components/base/table/index.cjs +1 -2
- package/dist/components/base/table/index.js +2 -1189
- package/dist/components/base/table/pagination.d.ts +1 -1
- package/dist/components/base/table/pagination.d.ts.map +1 -1
- package/dist/components/base/table/partials/cell-renderers.d.ts +4 -4
- package/dist/components/base/table/partials/cell-renderers.d.ts.map +1 -1
- package/dist/components/base/table/partials/cell-value.d.ts +1 -1
- package/dist/components/base/table/partials/cell-value.d.ts.map +1 -1
- package/dist/components/base/table/partials/density-toggle.d.ts +1 -1
- package/dist/components/base/table/partials/density-toggle.d.ts.map +1 -1
- package/dist/components/base/table/partials/table-link.d.ts +1 -1
- package/dist/components/base/table/partials/table-link.d.ts.map +1 -1
- package/dist/components/base/table/table-actions.d.ts +1 -1
- package/dist/components/base/table/table-actions.d.ts.map +1 -1
- package/dist/components/base/table/table-body.d.ts +1 -1
- package/dist/components/base/table/table-body.d.ts.map +1 -1
- package/dist/components/base/table/table-header.d.ts +2 -1
- package/dist/components/base/table/table-header.d.ts.map +1 -1
- package/dist/components/base/table/table-helpers.d.ts +2 -2
- package/dist/components/base/table/table-helpers.d.ts.map +1 -1
- package/dist/components/base/table/table-pagination.d.ts +1 -1
- package/dist/components/base/table/table-pagination.d.ts.map +1 -1
- package/dist/components/base/table/table-toolbar.d.ts +1 -1
- package/dist/components/base/table/table-toolbar.d.ts.map +1 -1
- package/dist/components/base/table/table.types.d.ts +6 -1
- package/dist/components/base/table/table.types.d.ts.map +1 -1
- package/dist/components/base/toaster/index.cjs +1 -1
- package/dist/components/base/toaster/index.cjs.map +1 -1
- package/dist/components/base/toaster/index.js +1 -1
- package/dist/components/base/toaster/index.js.map +1 -1
- package/dist/components/base/toaster/toaster.d.ts +1 -1
- package/dist/components/base/toaster/toaster.d.ts.map +1 -1
- package/dist/components/composed/admin/api-key-list/api-key-list.d.ts.map +1 -1
- package/dist/components/composed/admin/conversation-row/conversation-row.d.ts +1 -1
- package/dist/components/composed/admin/conversation-row/conversation-row.d.ts.map +1 -1
- package/dist/components/composed/admin/index.cjs +1 -1
- package/dist/components/composed/admin/index.cjs.map +1 -1
- package/dist/components/composed/admin/index.js +167 -158
- package/dist/components/composed/admin/index.js.map +1 -1
- package/dist/components/composed/admin/inventory-level/inventory-level.d.ts +1 -1
- package/dist/components/composed/admin/inventory-level/inventory-level.d.ts.map +1 -1
- package/dist/components/composed/admin/role-permission/role-permission.d.ts +1 -1
- package/dist/components/composed/admin/role-permission/role-permission.d.ts.map +1 -1
- package/dist/components/composed/admin/settings-toggle/settings-toggle.d.ts +1 -1
- package/dist/components/composed/admin/settings-toggle/settings-toggle.d.ts.map +1 -1
- package/dist/components/composed/admin/team-member/team-member.d.ts +1 -1
- package/dist/components/composed/admin/team-member/team-member.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-agent/ai-agent.d.ts +1 -1
- package/dist/components/composed/ai/ai-agent/ai-agent.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-artifact/ai-artifact.d.ts +1 -1
- package/dist/components/composed/ai/ai-artifact/ai-artifact.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-attachment/ai-attachment.d.ts +1 -1
- package/dist/components/composed/ai/ai-attachment/ai-attachment.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +1 -1
- package/dist/components/composed/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-citation/ai-citation.d.ts +1 -1
- package/dist/components/composed/ai/ai-citation/ai-citation.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-classification/ai-classification.d.ts +1 -1
- package/dist/components/composed/ai/ai-classification/ai-classification.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-code-block/ai-code-block.d.ts +1 -1
- package/dist/components/composed/ai/ai-code-block/ai-code-block.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-confidence/ai-confidence.d.ts +1 -1
- package/dist/components/composed/ai/ai-confidence/ai-confidence.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-confirmation/ai-confirmation.d.ts +1 -1
- package/dist/components/composed/ai/ai-confirmation/ai-confirmation.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-feedback/ai-feedback.d.ts +1 -1
- package/dist/components/composed/ai/ai-feedback/ai-feedback.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-file-tree/ai-file-tree.d.ts +1 -1
- package/dist/components/composed/ai/ai-file-tree/ai-file-tree.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-inline-citation/ai-inline-citation.d.ts +1 -1
- package/dist/components/composed/ai/ai-inline-citation/ai-inline-citation.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-message-bubble/ai-message-bubble.d.ts +1 -1
- package/dist/components/composed/ai/ai-message-bubble/ai-message-bubble.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-package-info/ai-package-info.d.ts +1 -1
- package/dist/components/composed/ai/ai-package-info/ai-package-info.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-prompt-suggestions/ai-prompt-suggestions.d.ts +1 -1
- package/dist/components/composed/ai/ai-prompt-suggestions/ai-prompt-suggestions.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-reasoning/ai-reasoning.d.ts +1 -1
- package/dist/components/composed/ai/ai-reasoning/ai-reasoning.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/composed/ai/ai-shimmer/ai-shimmer.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-sources/ai-sources.d.ts +1 -1
- package/dist/components/composed/ai/ai-sources/ai-sources.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-summary/ai-summary.d.ts +1 -1
- package/dist/components/composed/ai/ai-summary/ai-summary.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-task/ai-task.d.ts +1 -1
- package/dist/components/composed/ai/ai-task/ai-task.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-task/types.d.ts +2 -0
- package/dist/components/composed/ai/ai-task/types.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-token-usage/ai-token-usage.d.ts +1 -1
- package/dist/components/composed/ai/ai-token-usage/ai-token-usage.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-tool-call/ai-tool-call.d.ts +1 -1
- package/dist/components/composed/ai/ai-tool-call/ai-tool-call.d.ts.map +1 -1
- package/dist/components/composed/ai/index.cjs +1 -1
- package/dist/components/composed/ai/index.cjs.map +1 -1
- package/dist/components/composed/ai/index.js +111 -109
- package/dist/components/composed/ai/index.js.map +1 -1
- package/dist/components/composed/analytics/activity-heatmap/activity-heatmap.d.ts +1 -1
- package/dist/components/composed/analytics/activity-heatmap/activity-heatmap.d.ts.map +1 -1
- package/dist/components/composed/analytics/atoms/metric-skeleton.d.ts +1 -1
- package/dist/components/composed/analytics/atoms/metric-skeleton.d.ts.map +1 -1
- package/dist/components/composed/analytics/atoms/metric-sparkline.d.ts +1 -1
- package/dist/components/composed/analytics/atoms/metric-sparkline.d.ts.map +1 -1
- package/dist/components/composed/analytics/atoms/metric-trend-chip.d.ts +1 -1
- package/dist/components/composed/analytics/atoms/metric-trend-chip.d.ts.map +1 -1
- package/dist/components/composed/analytics/chart-card/chart-card.d.ts +22 -0
- package/dist/components/composed/analytics/chart-card/chart-card.d.ts.map +1 -0
- package/dist/components/composed/analytics/chart-card/index.d.ts +2 -0
- package/dist/components/composed/analytics/chart-card/index.d.ts.map +1 -0
- package/dist/components/composed/analytics/format-metric-value.d.ts.map +1 -1
- package/dist/components/composed/analytics/index.cjs +1 -1
- package/dist/components/composed/analytics/index.cjs.map +1 -1
- package/dist/components/composed/analytics/index.d.ts +2 -0
- package/dist/components/composed/analytics/index.d.ts.map +1 -1
- package/dist/components/composed/analytics/index.js +408 -427
- package/dist/components/composed/analytics/index.js.map +1 -1
- package/dist/components/composed/analytics/metric/metric.d.ts +1 -1
- package/dist/components/composed/analytics/metric/metric.d.ts.map +1 -1
- package/dist/components/composed/analytics/metric-bar/metric-bar.d.ts +1 -1
- package/dist/components/composed/analytics/metric-bar/metric-bar.d.ts.map +1 -1
- package/dist/components/composed/analytics/metric-comparison/metric-comparison.d.ts +3 -2
- package/dist/components/composed/analytics/metric-comparison/metric-comparison.d.ts.map +1 -1
- package/dist/components/composed/analytics/metric-gradient/metric-gradient.d.ts +1 -1
- package/dist/components/composed/analytics/metric-gradient/metric-gradient.d.ts.map +1 -1
- package/dist/components/composed/analytics/metric-grid/metric-grid.d.ts +1 -1
- package/dist/components/composed/analytics/metric-grid/metric-grid.d.ts.map +1 -1
- package/dist/components/composed/analytics/metric-micro-grid/metric-micro-grid.d.ts +1 -1
- package/dist/components/composed/analytics/metric-micro-grid/metric-micro-grid.d.ts.map +1 -1
- package/dist/components/composed/cards/contact-card/contact-card.d.ts +1 -1
- package/dist/components/composed/cards/contact-card/contact-card.d.ts.map +1 -1
- package/dist/components/composed/cards/course-card/course-card.d.ts +1 -1
- package/dist/components/composed/cards/course-card/course-card.d.ts.map +1 -1
- package/dist/components/composed/cards/feature-announcement/feature-announcement.d.ts +1 -1
- package/dist/components/composed/cards/feature-announcement/feature-announcement.d.ts.map +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-compact.d.ts +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-compact.d.ts.map +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-dark.d.ts +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-dark.d.ts.map +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-full.d.ts +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-full.d.ts.map +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-illustrated.d.ts +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-illustrated.d.ts.map +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-minimal.d.ts +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-minimal.d.ts.map +1 -1
- package/dist/components/composed/cards/gradient-card/gradient-card.d.ts +2 -2
- package/dist/components/composed/cards/gradient-card/gradient-card.d.ts.map +1 -1
- package/dist/components/composed/cards/index.cjs +1 -1
- package/dist/components/composed/cards/index.cjs.map +1 -1
- package/dist/components/composed/cards/index.js +661 -701
- package/dist/components/composed/cards/index.js.map +1 -1
- package/dist/components/composed/cards/vendor-profile/vendor-profile.d.ts +1 -1
- package/dist/components/composed/cards/vendor-profile/vendor-profile.d.ts.map +1 -1
- package/dist/components/composed/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/composed/commerce/address-card/address-card.d.ts.map +1 -1
- package/dist/components/composed/commerce/cart-summary/cart-summary.d.ts +1 -1
- package/dist/components/composed/commerce/cart-summary/cart-summary.d.ts.map +1 -1
- package/dist/components/composed/commerce/cart-summary/types.d.ts +8 -1
- package/dist/components/composed/commerce/cart-summary/types.d.ts.map +1 -1
- package/dist/components/composed/commerce/coupon-input/coupon-input.d.ts +1 -1
- package/dist/components/composed/commerce/coupon-input/coupon-input.d.ts.map +1 -1
- package/dist/components/composed/commerce/discount-stack/discount-stack.d.ts +1 -1
- package/dist/components/composed/commerce/discount-stack/discount-stack.d.ts.map +1 -1
- package/dist/components/composed/commerce/index.cjs +1 -1
- package/dist/components/composed/commerce/index.cjs.map +1 -1
- package/dist/components/composed/commerce/index.js +604 -514
- package/dist/components/composed/commerce/index.js.map +1 -1
- package/dist/components/composed/commerce/loyalty-points/loyalty-points.d.ts +1 -1
- package/dist/components/composed/commerce/loyalty-points/loyalty-points.d.ts.map +1 -1
- package/dist/components/composed/commerce/order-status/order-status.d.ts +1 -1
- package/dist/components/composed/commerce/order-status/order-status.d.ts.map +1 -1
- package/dist/components/composed/commerce/order-status/types.d.ts +2 -0
- package/dist/components/composed/commerce/order-status/types.d.ts.map +1 -1
- package/dist/components/composed/commerce/payment-method/payment-method.d.ts +1 -1
- package/dist/components/composed/commerce/payment-method/payment-method.d.ts.map +1 -1
- package/dist/components/composed/commerce/refund-status/refund-status.d.ts +1 -1
- package/dist/components/composed/commerce/refund-status/refund-status.d.ts.map +1 -1
- package/dist/components/composed/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/composed/commerce/shipment-tracking/shipment-tracking.d.ts.map +1 -1
- package/dist/components/composed/commerce/subscription-summary/subscription-summary.d.ts +1 -1
- package/dist/components/composed/commerce/subscription-summary/subscription-summary.d.ts.map +1 -1
- package/dist/components/composed/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/composed/commerce/tax-breakdown/tax-breakdown.d.ts.map +1 -1
- package/dist/components/composed/commerce/upcoming-booking/upcoming-booking.d.ts +1 -1
- package/dist/components/composed/commerce/upcoming-booking/upcoming-booking.d.ts.map +1 -1
- package/dist/components/composed/commerce/voucher-entry/types.d.ts +3 -0
- package/dist/components/composed/commerce/voucher-entry/types.d.ts.map +1 -1
- package/dist/components/composed/commerce/voucher-entry/voucher-entry.d.ts +1 -1
- package/dist/components/composed/commerce/voucher-entry/voucher-entry.d.ts.map +1 -1
- package/dist/components/composed/dark-surfaces/booking-receipt/booking-receipt.d.ts +1 -1
- package/dist/components/composed/dark-surfaces/booking-receipt/booking-receipt.d.ts.map +1 -1
- package/dist/components/composed/dark-surfaces/dark-info-panel/dark-info-panel.d.ts +1 -1
- package/dist/components/composed/dark-surfaces/dark-info-panel/dark-info-panel.d.ts.map +1 -1
- package/dist/components/composed/dark-surfaces/dark-payment/dark-payment.d.ts +1 -1
- package/dist/components/composed/dark-surfaces/dark-payment/dark-payment.d.ts.map +1 -1
- package/dist/components/composed/dark-surfaces/index.cjs +1 -1
- package/dist/components/composed/dark-surfaces/index.cjs.map +1 -1
- package/dist/components/composed/dark-surfaces/index.js +46 -36
- package/dist/components/composed/dark-surfaces/index.js.map +1 -1
- package/dist/components/composed/dark-surfaces/order-items/order-items.d.ts +1 -1
- package/dist/components/composed/dark-surfaces/order-items/order-items.d.ts.map +1 -1
- package/dist/components/composed/dark-surfaces/order-items/types.d.ts +3 -1
- package/dist/components/composed/dark-surfaces/order-items/types.d.ts.map +1 -1
- package/dist/components/composed/dark-surfaces/outstanding-balance/outstanding-balance.d.ts +1 -1
- package/dist/components/composed/dark-surfaces/outstanding-balance/outstanding-balance.d.ts.map +1 -1
- package/dist/components/composed/data-display/dense-info-card/helpers.d.ts +2 -2
- package/dist/components/composed/data-display/dense-info-card/helpers.d.ts.map +1 -1
- package/dist/components/composed/data-display/dense-info-card/partials/dense-info-classification.d.ts +1 -1
- package/dist/components/composed/data-display/dense-info-card/partials/dense-info-classification.d.ts.map +1 -1
- package/dist/components/composed/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +1 -1
- package/dist/components/composed/data-display/dense-info-card/partials/dense-info-dashboard.d.ts.map +1 -1
- package/dist/components/composed/data-display/dense-info-card/partials/dense-info-financial.d.ts +1 -1
- package/dist/components/composed/data-display/dense-info-card/partials/dense-info-financial.d.ts.map +1 -1
- package/dist/components/composed/data-display/dense-info-card/partials/dense-info-project.d.ts +1 -1
- package/dist/components/composed/data-display/dense-info-card/partials/dense-info-project.d.ts.map +1 -1
- package/dist/components/composed/data-display/dense-info-card/partials/dense-info-score.d.ts +1 -1
- package/dist/components/composed/data-display/dense-info-card/partials/dense-info-score.d.ts.map +1 -1
- package/dist/components/composed/data-display/index.cjs +1 -1
- package/dist/components/composed/data-display/index.cjs.map +1 -1
- package/dist/components/composed/data-display/index.js +355 -329
- package/dist/components/composed/data-display/index.js.map +1 -1
- package/dist/components/composed/data-display/inline-metric/inline-metric.d.ts +1 -1
- package/dist/components/composed/data-display/inline-metric/inline-metric.d.ts.map +1 -1
- package/dist/components/composed/data-display/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/composed/data-display/invoice-header/invoice-header.d.ts.map +1 -1
- package/dist/components/composed/data-display/invoice-items/invoice-items.d.ts +3 -3
- package/dist/components/composed/data-display/invoice-items/invoice-items.d.ts.map +1 -1
- package/dist/components/composed/data-display/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/composed/data-display/invoice-mini/invoice-mini.d.ts.map +1 -1
- package/dist/components/composed/data-display/invoice-table/invoice-table.d.ts +1 -1
- package/dist/components/composed/data-display/invoice-table/invoice-table.d.ts.map +1 -1
- package/dist/components/composed/data-display/mini-kpi/mini-kpi.d.ts +1 -1
- package/dist/components/composed/data-display/mini-kpi/mini-kpi.d.ts.map +1 -1
- package/dist/components/composed/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +1 -1
- package/dist/components/composed/navigation/breadcrumb-progress/breadcrumb-progress.d.ts.map +1 -1
- package/dist/components/composed/navigation/category-nav/category-nav.d.ts +1 -1
- package/dist/components/composed/navigation/category-nav/category-nav.d.ts.map +1 -1
- package/dist/components/composed/navigation/experience-activity/experience-activity.d.ts +1 -1
- package/dist/components/composed/navigation/experience-activity/experience-activity.d.ts.map +1 -1
- package/dist/components/composed/navigation/experience-activity/experience-activity.strings.d.ts +8 -0
- package/dist/components/composed/navigation/experience-activity/experience-activity.strings.d.ts.map +1 -0
- package/dist/components/composed/navigation/experience-activity/index.d.ts +1 -0
- package/dist/components/composed/navigation/experience-activity/index.d.ts.map +1 -1
- package/dist/components/composed/navigation/experience-activity/types.d.ts +2 -0
- package/dist/components/composed/navigation/experience-activity/types.d.ts.map +1 -1
- package/dist/components/composed/navigation/index.cjs +1 -1
- package/dist/components/composed/navigation/index.cjs.map +1 -1
- package/dist/components/composed/navigation/index.js +111 -86
- package/dist/components/composed/navigation/index.js.map +1 -1
- package/dist/components/composed/navigation/kanban-board/kanban-board.d.ts +1 -1
- package/dist/components/composed/navigation/kanban-board/kanban-board.d.ts.map +1 -1
- package/dist/components/composed/navigation/kanban-board/types.d.ts +5 -1
- package/dist/components/composed/navigation/kanban-board/types.d.ts.map +1 -1
- package/dist/components/composed/navigation/tab-switcher/tab-switcher.d.ts +1 -1
- package/dist/components/composed/navigation/tab-switcher/tab-switcher.d.ts.map +1 -1
- package/dist/components/composed/navigation/time-ruler/time-ruler.d.ts +1 -1
- package/dist/components/composed/navigation/time-ruler/time-ruler.d.ts.map +1 -1
- package/dist/components/composed/navigation/vendor-performance/vendor-performance.d.ts +1 -1
- package/dist/components/composed/navigation/vendor-performance/vendor-performance.d.ts.map +1 -1
- package/dist/components/composed/onboarding/checklist/checklist.d.ts.map +1 -1
- package/dist/components/composed/onboarding/checklist/partials/step-status-indicator.d.ts +1 -1
- package/dist/components/composed/onboarding/checklist/partials/step-status-indicator.d.ts.map +1 -1
- package/dist/components/composed/onboarding/index.cjs +1 -1
- package/dist/components/composed/onboarding/index.cjs.map +1 -1
- package/dist/components/composed/onboarding/index.js +60 -60
- package/dist/components/composed/onboarding/index.js.map +1 -1
- package/dist/components/composed/timelines/activity-stream/activity-stream.d.ts +1 -1
- package/dist/components/composed/timelines/activity-stream/activity-stream.d.ts.map +1 -1
- package/dist/components/composed/timelines/changelog/changelog-timeline.d.ts +1 -1
- package/dist/components/composed/timelines/changelog/changelog-timeline.d.ts.map +1 -1
- package/dist/components/composed/timelines/index.cjs +1 -1
- package/dist/components/composed/timelines/index.cjs.map +1 -1
- package/dist/components/composed/timelines/index.js +37 -10
- package/dist/components/composed/timelines/index.js.map +1 -1
- package/dist/components/composed/timelines/milestones/milestones-timeline.d.ts +1 -1
- package/dist/components/composed/timelines/milestones/milestones-timeline.d.ts.map +1 -1
- package/dist/components/composed/timelines/order-timeline/order-timeline.d.ts +1 -1
- package/dist/components/composed/timelines/order-timeline/order-timeline.d.ts.map +1 -1
- package/dist/components/composed/timelines/payment-timeline/payment-timeline.d.ts +1 -1
- package/dist/components/composed/timelines/payment-timeline/payment-timeline.d.ts.map +1 -1
- package/dist/components/composed/timelines/shared/timeline.d.ts +1 -1
- package/dist/components/composed/timelines/shared/timeline.d.ts.map +1 -1
- package/dist/components/composed/timelines/steps-card/steps-card.d.ts +2 -2
- package/dist/components/composed/timelines/steps-card/steps-card.d.ts.map +1 -1
- package/dist/components/features/activities/activities-feed.d.ts +1 -1
- package/dist/components/features/activities/activities-feed.d.ts.map +1 -1
- package/dist/components/features/activities/activities.types.d.ts +2 -1
- package/dist/components/features/activities/activities.types.d.ts.map +1 -1
- package/dist/components/features/activities/index.cjs +1 -1
- package/dist/components/features/activities/index.cjs.map +1 -1
- package/dist/components/features/activities/index.js +287 -302
- package/dist/components/features/activities/index.js.map +1 -1
- package/dist/components/features/activities/partials/activities-feed-card.d.ts +1 -1
- package/dist/components/features/activities/partials/activities-feed-card.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-actions-menu.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-actions-menu.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-changes.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-changes.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-date-label.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-date-label.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-empty-state.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-empty-state.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-headline.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-headline.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-marker.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-marker.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-resource-tag.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-resource-tag.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-row.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-row.d.ts.map +1 -1
- package/dist/components/features/ai-chat/ai-chat.d.ts +3 -2
- package/dist/components/features/ai-chat/ai-chat.d.ts.map +1 -1
- package/dist/components/features/ai-chat/index.cjs +2 -2
- package/dist/components/features/ai-chat/index.cjs.map +1 -1
- package/dist/components/features/ai-chat/index.js +17 -15
- package/dist/components/features/ai-chat/index.js.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts +3 -2
- package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-empty-state.d.ts +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-empty-state.d.ts.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts +3 -2
- package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +3 -2
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +3 -2
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +3 -2
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts.map +1 -1
- package/dist/components/features/card/booking-calendar-event-card.d.ts +1 -1
- package/dist/components/features/card/booking-calendar-event-card.d.ts.map +1 -1
- package/dist/components/features/card/card.types.d.ts +2 -0
- package/dist/components/features/card/card.types.d.ts.map +1 -1
- package/dist/components/features/card/index.cjs +1 -1
- package/dist/components/features/card/index.cjs.map +1 -1
- package/dist/components/features/card/index.js +37 -43
- package/dist/components/features/card/index.js.map +1 -1
- package/dist/components/features/card/partials/default-shared-resource-partials.d.ts +6 -5
- package/dist/components/features/card/partials/default-shared-resource-partials.d.ts.map +1 -1
- package/dist/components/features/card/shared-resource-card.d.ts +1 -1
- package/dist/components/features/card/shared-resource-card.d.ts.map +1 -1
- package/dist/components/features/comments/comments-provider.d.ts +2 -1
- package/dist/components/features/comments/comments-provider.d.ts.map +1 -1
- package/dist/components/features/comments/comments.d.ts +1 -1
- package/dist/components/features/comments/comments.d.ts.map +1 -1
- package/dist/components/features/comments/comments.types.d.ts +6 -5
- package/dist/components/features/comments/comments.types.d.ts.map +1 -1
- package/dist/components/features/comments/index.cjs +1 -1
- package/dist/components/features/comments/index.js +2 -2
- package/dist/components/features/comments/partials/comment-attachment-chip.d.ts +2 -1
- package/dist/components/features/comments/partials/comment-attachment-chip.d.ts.map +1 -1
- package/dist/components/features/comments/partials/comment-composer.d.ts.map +1 -1
- package/dist/components/features/comments/partials/comment-empty.d.ts +2 -1
- package/dist/components/features/comments/partials/comment-empty.d.ts.map +1 -1
- package/dist/components/features/comments/partials/comment-item.d.ts.map +1 -1
- package/dist/components/features/event-log/event-log.d.ts +1 -1
- package/dist/components/features/event-log/event-log.d.ts.map +1 -1
- package/dist/components/features/event-log/event-log.types.d.ts +2 -2
- package/dist/components/features/event-log/event-log.types.d.ts.map +1 -1
- package/dist/components/features/event-log/index.cjs +1 -1
- package/dist/components/features/event-log/index.cjs.map +1 -1
- package/dist/components/features/event-log/index.js +86 -86
- package/dist/components/features/event-log/index.js.map +1 -1
- package/dist/components/features/filters/facets/async-select-facet.d.ts +2 -2
- package/dist/components/features/filters/facets/async-select-facet.d.ts.map +1 -1
- package/dist/components/features/filters/facets/date-facet.d.ts +1 -1
- package/dist/components/features/filters/facets/date-facet.d.ts.map +1 -1
- package/dist/components/features/filters/facets/range-facet.d.ts +1 -1
- package/dist/components/features/filters/facets/range-facet.d.ts.map +1 -1
- package/dist/components/features/filters/facets/search-facet.d.ts +1 -1
- package/dist/components/features/filters/facets/search-facet.d.ts.map +1 -1
- package/dist/components/features/filters/facets/select-facet.d.ts +1 -1
- package/dist/components/features/filters/facets/select-facet.d.ts.map +1 -1
- package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
- package/dist/components/features/filters/facets/tags-facet.d.ts.map +1 -1
- package/dist/components/features/filters/filter-context.d.ts +1 -1
- package/dist/components/features/filters/filter-context.d.ts.map +1 -1
- package/dist/components/features/filters/filter-layout.d.ts +1 -1
- package/dist/components/features/filters/filter-layout.d.ts.map +1 -1
- package/dist/components/features/filters/filters.strings.d.ts +1 -0
- package/dist/components/features/filters/filters.strings.d.ts.map +1 -1
- package/dist/components/features/filters/filters.types.d.ts +8 -8
- package/dist/components/features/filters/filters.types.d.ts.map +1 -1
- package/dist/components/features/filters/hooks/use-async-options.d.ts.map +1 -1
- package/dist/components/features/filters/index.cjs +1 -1
- package/dist/components/features/filters/index.cjs.map +1 -1
- package/dist/components/features/filters/index.js +622 -592
- package/dist/components/features/filters/index.js.map +1 -1
- package/dist/components/features/filters/partials/active-filter-item.d.ts +2 -1
- package/dist/components/features/filters/partials/active-filter-item.d.ts.map +1 -1
- package/dist/components/features/filters/partials/async-filter-content.d.ts +2 -2
- package/dist/components/features/filters/partials/async-filter-content.d.ts.map +1 -1
- package/dist/components/features/filters/partials/date-filter-content.d.ts +1 -1
- package/dist/components/features/filters/partials/date-filter-content.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filter-error-boundary.d.ts +1 -1
- package/dist/components/features/filters/partials/filter-error-boundary.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filter-list-content.d.ts +1 -1
- package/dist/components/features/filters/partials/filter-list-content.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filter-list-item.d.ts +1 -1
- package/dist/components/features/filters/partials/filter-list-item.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filter-operator-select.d.ts +2 -1
- package/dist/components/features/filters/partials/filter-operator-select.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filter-pill.d.ts +1 -1
- package/dist/components/features/filters/partials/filter-pill.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +1 -1
- package/dist/components/features/filters/partials/filter-popover-content.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filter-tabs.d.ts +1 -1
- package/dist/components/features/filters/partials/filter-tabs.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filter-value-display.d.ts +1 -1
- package/dist/components/features/filters/partials/filter-value-display.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filters-button.d.ts +1 -1
- package/dist/components/features/filters/partials/filters-button.d.ts.map +1 -1
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +1 -1
- package/dist/components/features/filters/partials/regular-filter-content.d.ts.map +1 -1
- package/dist/components/features/filters/partials/search-filters-list.d.ts +1 -1
- package/dist/components/features/filters/partials/search-filters-list.d.ts.map +1 -1
- package/dist/components/features/filters/partials/tags-filter-content.d.ts +1 -1
- package/dist/components/features/filters/partials/tags-filter-content.d.ts.map +1 -1
- package/dist/components/features/global-search/global-search.d.ts +24 -2
- package/dist/components/features/global-search/global-search.d.ts.map +1 -1
- package/dist/components/features/global-search/index.cjs +1 -1
- package/dist/components/features/global-search/index.cjs.map +1 -1
- package/dist/components/features/global-search/index.js +291 -271
- package/dist/components/features/global-search/index.js.map +1 -1
- package/dist/components/features/global-search/partials/global-search-empty-state.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-empty-state.d.ts.map +1 -1
- package/dist/components/features/global-search/partials/global-search-footer.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-footer.d.ts.map +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts.map +1 -1
- package/dist/components/features/global-search/partials/global-search-input.d.ts.map +1 -1
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +2 -1
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts.map +1 -1
- package/dist/components/features/global-search/partials/global-search-tabs.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-tabs.d.ts.map +1 -1
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/kanban/index.cjs +1 -1
- package/dist/components/features/kanban/index.cjs.map +1 -1
- package/dist/components/features/kanban/index.js +133 -124
- package/dist/components/features/kanban/index.js.map +1 -1
- package/dist/components/features/kanban/kanban-context.d.ts +1 -0
- package/dist/components/features/kanban/kanban-context.d.ts.map +1 -1
- package/dist/components/features/kanban/kanban.d.ts +7 -7
- package/dist/components/features/kanban/kanban.d.ts.map +1 -1
- package/dist/components/features/media-library/hooks/index.d.ts +2 -0
- package/dist/components/features/media-library/hooks/index.d.ts.map +1 -0
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +6 -0
- package/dist/components/features/media-library/hooks/use-media-library.d.ts.map +1 -0
- package/dist/components/features/media-library/index.cjs +2 -0
- package/dist/components/features/media-library/index.cjs.map +1 -0
- package/dist/components/features/media-library/index.d.ts +7 -0
- package/dist/components/features/media-library/index.d.ts.map +1 -0
- package/dist/components/features/media-library/index.js +1796 -0
- package/dist/components/features/media-library/index.js.map +1 -0
- package/dist/components/features/media-library/media-library.d.ts +4 -0
- package/dist/components/features/media-library/media-library.d.ts.map +1 -0
- package/dist/components/features/media-library/media-library.strings.d.ts +120 -0
- package/dist/components/features/media-library/media-library.strings.d.ts.map +1 -0
- package/dist/components/features/media-library/media-library.types.d.ts +340 -0
- package/dist/components/features/media-library/media-library.types.d.ts.map +1 -0
- package/dist/components/features/media-library/media-resource-gallery.d.ts +3 -0
- package/dist/components/features/media-library/media-resource-gallery.d.ts.map +1 -0
- package/dist/components/features/media-library/partials/index.d.ts +2 -0
- package/dist/components/features/media-library/partials/index.d.ts.map +1 -0
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +11 -0
- package/dist/components/features/media-library/partials/media-library-partials.d.ts.map +1 -0
- package/dist/components/features/mentions/index.cjs +1 -1
- package/dist/components/features/mentions/index.js +1 -1
- package/dist/components/features/mentions/partials/mention-chip.d.ts.map +1 -1
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +1 -1
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts.map +1 -1
- package/dist/components/features/mentions/partials/mention-picker.d.ts +1 -1
- package/dist/components/features/mentions/partials/mention-picker.d.ts.map +1 -1
- package/dist/components/features/mentions/utils/build-mention-html.d.ts +3 -3
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/alert-dialog.d.ts.map +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts.map +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts.map +1 -1
- package/dist/components/features/overlays/index.cjs +1 -1
- package/dist/components/features/overlays/index.js +1 -1
- package/dist/components/features/overlays/overlays.types.d.ts +3 -1
- package/dist/components/features/overlays/overlays.types.d.ts.map +1 -1
- package/dist/components/features/products/components/index.d.ts +15 -0
- package/dist/components/features/products/components/index.d.ts.map +1 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +6 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts.map +1 -0
- package/dist/components/features/products/components/product-details-card.d.ts +6 -0
- package/dist/components/features/products/components/product-details-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +6 -0
- package/dist/components/features/products/components/product-operations-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +6 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts.map +1 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +6 -0
- package/dist/components/features/products/components/product-options-summary.d.ts.map +1 -0
- package/dist/components/features/products/components/product-overview.d.ts +6 -0
- package/dist/components/features/products/components/product-overview.d.ts.map +1 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +6 -0
- package/dist/components/features/products/components/product-policies-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +6 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +6 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +6 -0
- package/dist/components/features/products/components/product-structure-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +6 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts.map +1 -0
- package/dist/components/features/products/components/product-variant-details.d.ts +6 -0
- package/dist/components/features/products/components/product-variant-details.d.ts.map +1 -0
- package/dist/components/features/products/components/product-variant-editor.d.ts +6 -0
- package/dist/components/features/products/components/product-variant-editor.d.ts.map +1 -0
- package/dist/components/features/products/components/product-variants-table.d.ts +6 -0
- package/dist/components/features/products/components/product-variants-table.d.ts.map +1 -0
- package/dist/components/features/products/index.cjs +2 -0
- package/dist/components/features/products/index.cjs.map +1 -0
- package/dist/components/features/products/index.d.ts +6 -0
- package/dist/components/features/products/index.d.ts.map +1 -0
- package/dist/components/features/products/index.js +1749 -0
- package/dist/components/features/products/index.js.map +1 -0
- package/dist/components/features/products/partials/index.d.ts +8 -0
- package/dist/components/features/products/partials/index.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-actions.d.ts +8 -0
- package/dist/components/features/products/partials/product-actions.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-empty-state.d.ts +8 -0
- package/dist/components/features/products/partials/product-empty-state.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-metric-tile.d.ts +5 -0
- package/dist/components/features/products/partials/product-metric-tile.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-rows.d.ts +25 -0
- package/dist/components/features/products/partials/product-rows.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-tone.d.ts +9 -0
- package/dist/components/features/products/partials/product-tone.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-values.d.ts +2 -0
- package/dist/components/features/products/partials/product-values.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-variant-table-parts.d.ts +22 -0
- package/dist/components/features/products/partials/product-variant-table-parts.d.ts.map +1 -0
- package/dist/components/features/products/products.d.ts +7 -0
- package/dist/components/features/products/products.d.ts.map +1 -0
- package/dist/components/features/products/products.strings.d.ts +197 -0
- package/dist/components/features/products/products.strings.d.ts.map +1 -0
- package/dist/components/features/products/products.types.d.ts +372 -0
- package/dist/components/features/products/products.types.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts.map +1 -1
- package/dist/components/features/rich-text-editor/index.cjs +1 -1
- package/dist/components/features/rich-text-editor/index.cjs.map +1 -1
- package/dist/components/features/rich-text-editor/index.js +1 -1
- package/dist/components/features/rich-text-editor/index.js.map +1 -1
- package/dist/components/features/rich-text-editor/partials/counts-footer.d.ts +2 -2
- package/dist/components/features/rich-text-editor/partials/counts-footer.d.ts.map +1 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts.map +1 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts.map +1 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts.map +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +4 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts.map +1 -1
- package/dist/components/features/schema-form/hooks/index.d.ts +2 -0
- package/dist/components/features/schema-form/hooks/index.d.ts.map +1 -0
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +24 -0
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts.map +1 -0
- package/dist/components/features/schema-form/index.cjs +2 -0
- package/dist/components/features/schema-form/index.cjs.map +1 -0
- package/dist/components/features/schema-form/index.d.ts +6 -0
- package/dist/components/features/schema-form/index.d.ts.map +1 -0
- package/dist/components/features/schema-form/index.js +721 -0
- package/dist/components/features/schema-form/index.js.map +1 -0
- package/dist/components/features/schema-form/partials/index.d.ts +4 -0
- package/dist/components/features/schema-form/partials/index.d.ts.map +1 -0
- package/dist/components/features/schema-form/partials/schema-form-actions.d.ts +16 -0
- package/dist/components/features/schema-form/partials/schema-form-actions.d.ts.map +1 -0
- package/dist/components/features/schema-form/partials/schema-form-empty.d.ts +10 -0
- package/dist/components/features/schema-form/partials/schema-form-empty.d.ts.map +1 -0
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +11 -0
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts.map +1 -0
- package/dist/components/features/schema-form/schema-form.d.ts +6 -0
- package/dist/components/features/schema-form/schema-form.d.ts.map +1 -0
- package/dist/components/features/schema-form/schema-form.strings.d.ts +12 -0
- package/dist/components/features/schema-form/schema-form.strings.d.ts.map +1 -0
- package/dist/components/features/schema-form/schema-form.types.d.ts +198 -0
- package/dist/components/features/schema-form/schema-form.types.d.ts.map +1 -0
- package/dist/components/features/schema-form/schema-form.utils.d.ts +19 -0
- package/dist/components/features/schema-form/schema-form.utils.d.ts.map +1 -0
- package/dist/components/features/suggestions/hooks/use-suggestions.d.ts.map +1 -1
- package/dist/components/features/suggestions/index.cjs +1 -1
- package/dist/components/features/suggestions/index.cjs.map +1 -1
- package/dist/components/features/suggestions/index.js +64 -64
- package/dist/components/features/suggestions/index.js.map +1 -1
- package/dist/components/features/suggestions/suggestions.d.ts +1 -1
- package/dist/components/features/suggestions/suggestions.d.ts.map +1 -1
- package/dist/components/features/suggestions/suggestions.types.d.ts +1 -0
- package/dist/components/features/suggestions/suggestions.types.d.ts.map +1 -1
- package/dist/components/features/sync/index.cjs +1 -1
- package/dist/components/features/sync/index.cjs.map +1 -1
- package/dist/components/features/sync/index.js +3 -3
- package/dist/components/features/sync/index.js.map +1 -1
- package/dist/components/features/sync/sync-range-dialog-form.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.types.d.ts +65 -0
- package/dist/components/layout/app-shell/app-shell.types.d.ts.map +1 -0
- package/dist/components/layout/app-shell/index.cjs +1 -0
- package/dist/components/layout/app-shell/index.d.ts +3 -0
- package/dist/components/layout/app-shell/index.d.ts.map +1 -0
- package/dist/components/layout/app-shell/index.js +2 -0
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +3 -0
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-card.d.ts +3 -0
- package/dist/components/layout/auth/auth-card.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-footer-links.d.ts +3 -0
- package/dist/components/layout/auth/auth-footer-links.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-hooks.d.ts +5 -0
- package/dist/components/layout/auth/auth-hooks.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-method-switch.d.ts +5 -0
- package/dist/components/layout/auth/auth-method-switch.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-shell.d.ts +3 -0
- package/dist/components/layout/auth/auth-shell.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-social-providers.d.ts +4 -0
- package/dist/components/layout/auth/auth-social-providers.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-split-panel.d.ts +3 -0
- package/dist/components/layout/auth/auth-split-panel.d.ts.map +1 -0
- package/dist/components/layout/auth/auth.strings.d.ts +22 -0
- package/dist/components/layout/auth/auth.strings.d.ts.map +1 -0
- package/dist/components/layout/auth/auth.types.d.ts +187 -0
- package/dist/components/layout/auth/auth.types.d.ts.map +1 -0
- package/dist/components/layout/auth/index.cjs +1 -0
- package/dist/components/layout/auth/index.d.ts +10 -0
- package/dist/components/layout/auth/index.d.ts.map +1 -0
- package/dist/components/layout/auth/index.js +2 -0
- package/dist/components/layout/containers/content-container.d.ts +1 -1
- package/dist/components/layout/containers/content-container.d.ts.map +1 -1
- package/dist/components/layout/containers/index.cjs +1 -1
- package/dist/components/layout/containers/index.js +2 -2
- package/dist/components/layout/containers/section.d.ts +1 -1
- package/dist/components/layout/containers/section.d.ts.map +1 -1
- package/dist/components/layout/header/header.d.ts +1 -1
- package/dist/components/layout/header/header.d.ts.map +1 -1
- package/dist/components/layout/header/index.cjs +1 -1
- package/dist/components/layout/header/index.js +1 -1
- package/dist/components/layout/header/partials/header-breadcrumbs.d.ts +3 -1
- package/dist/components/layout/header/partials/header-breadcrumbs.d.ts.map +1 -1
- package/dist/components/layout/header/partials/header-notifications.d.ts +1 -1
- package/dist/components/layout/header/partials/header-notifications.d.ts.map +1 -1
- package/dist/components/layout/header/partials/header-search.d.ts +1 -1
- package/dist/components/layout/header/partials/header-search.d.ts.map +1 -1
- package/dist/components/layout/header/partials/header-user-menu.d.ts +1 -1
- package/dist/components/layout/header/partials/header-user-menu.d.ts.map +1 -1
- package/dist/components/layout/hooks/index.cjs +1 -1
- package/dist/components/layout/hooks/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.d.ts +3 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/index.js +10 -7
- package/dist/components/layout/page/index.cjs +1 -1
- package/dist/components/layout/page/index.js +1 -1
- package/dist/components/layout/page/page-content.d.ts +1 -1
- package/dist/components/layout/page/page-content.d.ts.map +1 -1
- package/dist/components/layout/page/page.d.ts +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -1
- package/dist/components/layout/page/partials/page-actions.d.ts.map +1 -1
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/page/partials/page-header.d.ts.map +1 -1
- package/dist/components/layout/sidebar/app-sidebar.d.ts +6 -1
- package/dist/components/layout/sidebar/app-sidebar.d.ts.map +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts.map +1 -1
- package/dist/components/layout/sidebar/components/sidebar-logo.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-logo.d.ts.map +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts.map +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation-user.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation-user.d.ts.map +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +3 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts.map +1 -1
- package/dist/components/layout/sidebar/components/sidebar-workspace-dropdown.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-workspace-dropdown.d.ts.map +1 -1
- package/dist/components/layout/sidebar/index.cjs +1 -1
- package/dist/components/layout/sidebar/index.js +2 -2
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.context.d.ts.map +1 -1
- package/dist/components/layout/sidebar/sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +2 -2
- package/dist/components/layout/sidebar/sidebar.utils.d.ts.map +1 -1
- package/dist/components/layout/workspace/index.cjs +1 -0
- package/dist/components/layout/workspace/index.d.ts +4 -0
- package/dist/components/layout/workspace/index.d.ts.map +1 -0
- package/dist/components/layout/workspace/index.js +2 -0
- package/dist/components/layout/workspace/workspace.d.ts +7 -0
- package/dist/components/layout/workspace/workspace.d.ts.map +1 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts +19 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts.map +1 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +96 -0
- package/dist/components/layout/workspace/workspace.types.d.ts.map +1 -0
- package/dist/components/typography/heading.d.ts +2 -1
- package/dist/components/typography/heading.d.ts.map +1 -1
- package/dist/components/typography/index.cjs +1 -1
- package/dist/components/typography/index.js +2 -3
- package/dist/components/typography/label.d.ts +1 -1
- package/dist/components/typography/label.d.ts.map +1 -1
- package/dist/components/typography/text-link.d.ts +1 -1
- package/dist/components/typography/text-link.d.ts.map +1 -1
- package/dist/components/typography/text.d.ts +2 -1
- package/dist/components/typography/text.d.ts.map +1 -1
- package/dist/components/typography/typography.d.ts +3 -3
- package/dist/components/typography/typography.d.ts.map +1 -1
- package/dist/components/ui/accordion.d.ts +4 -4
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts +4 -4
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/avatar.d.ts +6 -6
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +7 -7
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/button-group.d.ts +2 -2
- package/dist/components/ui/button-group.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/calendar.d.ts +2 -2
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +7 -7
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/chart.d.ts +4 -4
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/collapsible.d.ts +4 -3
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/combobox.d.ts +20 -20
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/command.d.ts +9 -9
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/context-menu.d.ts +15 -15
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts +10 -10
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/empty.d.ts +6 -6
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/hover-card.d.ts +3 -3
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/input-group.d.ts +7 -7
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/item.d.ts +9 -9
- package/dist/components/ui/item.d.ts.map +1 -1
- package/dist/components/ui/pagination.d.ts +7 -7
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/progress.d.ts +5 -5
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/radio-group.d.ts +2 -2
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +2 -2
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts +9 -9
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/separator.d.ts +1 -1
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts +8 -8
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts +19 -19
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider.d.ts +2 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/sonner.d.ts +1 -1
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/spinner.d.ts +1 -1
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/table.d.ts +8 -8
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +4 -4
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +3 -2
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/tooltip.d.ts +4 -4
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/strings.cjs +1 -1
- package/dist/lib/strings.cjs.map +1 -1
- package/dist/lib/strings.js.map +1 -1
- package/dist/lib/ui-provider/index.cjs +1 -1
- package/dist/lib/ui-provider/index.js +1 -1
- package/dist/lib/ui-provider/provider.d.ts +1 -1
- package/dist/lib/ui-provider/provider.d.ts.map +1 -1
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.cjs.map +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +19 -16
- package/dist/lib/utils.js.map +1 -1
- package/dist/showcase/assets/AreaChart-DUe3j5uB.js +6 -0
- package/dist/showcase/assets/CSPContext-ImKusJJ_.js +1 -0
- package/dist/showcase/assets/CompositeItem-DleE4kTc.js +1 -0
- package/dist/showcase/assets/CompositeRoot-BbNkvtLz.js +1 -0
- package/dist/showcase/assets/Control.FullScreen-CwLQ1MMK.js +1 -0
- package/dist/showcase/assets/DialogTrigger-C0DB0bXw.js +1 -0
- package/dist/showcase/assets/FieldItemContext-CFTR-INZ.js +1 -0
- package/dist/showcase/assets/FormContext-lmjYAh4E.js +1 -0
- package/dist/showcase/assets/LabelableContext-CDv6gSfU.js +1 -0
- package/dist/showcase/assets/PreviewLayout-BG1B5TzA.js +1 -0
- package/dist/showcase/assets/RadioGroup-C-0MNAYY.js +1 -0
- package/dist/showcase/assets/Separator-KsPLUEno.js +1 -0
- package/dist/showcase/assets/ToolbarRootContext-AV8xAl2m.js +1 -0
- package/dist/showcase/assets/accordion-BWkuKg77.js +171 -0
- package/dist/showcase/assets/accordion-variants-CVT_62VO.js +1 -0
- package/dist/showcase/assets/action-menu-BOUHlGba.js +1 -0
- package/dist/showcase/assets/activities-DMDQje7Y.js +501 -0
- package/dist/showcase/assets/activities-feed-card-B8wpu4F3.js +1 -0
- package/dist/showcase/assets/activity-B-FxNryB.js +1 -0
- package/dist/showcase/assets/admin-CAhEeKt_.js +80 -0
- package/dist/showcase/assets/ai-UioEgJ90.js +41 -0
- package/dist/showcase/assets/ai-artifact-CUAlhcSX.js +2 -0
- package/dist/showcase/assets/ai-chat-C_w2PSmy.js +568 -0
- package/dist/showcase/assets/ai-elements-DmxqXR6H.js +387 -0
- package/dist/showcase/assets/ai-new-PG02TWQq.js +167 -0
- package/dist/showcase/assets/ai-tool-call-BaJx1rR4.js +1 -0
- package/dist/showcase/assets/alert-D7n-kQoO.js +93 -0
- package/dist/showcase/assets/alert-DIelf1qF.js +1 -0
- package/dist/showcase/assets/alert-TQCZEcn-.js +62 -0
- package/dist/showcase/assets/api-key-list-CSt4trYG.js +73 -0
- package/dist/showcase/assets/app-sidebar-DixqrLf2.js +1 -0
- package/dist/showcase/assets/arrow-down-CYh_aUsd.js +1 -0
- package/dist/showcase/assets/arrow-left-pYYsNkZE.js +1 -0
- package/dist/showcase/assets/arrow-right-Bf1Tl6D5.js +1 -0
- package/dist/showcase/assets/arrow-up-BhmQRZs9.js +1 -0
- package/dist/showcase/assets/arrow-up-right-CuAsO3-r.js +1 -0
- package/dist/showcase/assets/avatar-5EFTnHEG.js +1 -0
- package/dist/showcase/assets/avatar-DLpnivU0.js +57 -0
- package/dist/showcase/assets/badge-check-BRAVo7dA.js +1 -0
- package/dist/showcase/assets/badge-yFoRqbiq.js +28 -0
- package/dist/showcase/assets/bell-Dt3Nz2y2.js +1 -0
- package/dist/showcase/assets/bot-5Ro5Dayc.js +1 -0
- package/dist/showcase/assets/box-mt6TbZO6.js +1 -0
- package/dist/showcase/assets/brain-736080Wh.js +1 -0
- package/dist/showcase/assets/brand-4K8xsJ91.js +36 -0
- package/dist/showcase/assets/breadcrumb-CAlApdCw.js +1 -0
- package/dist/showcase/assets/breadcrumb-DHeGqoTD.js +52 -0
- package/dist/showcase/assets/breadcrumbs-D_lniGJs.js +1 -0
- package/dist/showcase/assets/briefcase-B_Uti-Iu.js +1 -0
- package/dist/showcase/assets/building-2-zgcwuzxP.js +1 -0
- package/dist/showcase/assets/button-PmqgeJKm.js +44 -0
- package/dist/showcase/assets/button-group-DAOmmujV.js +1 -0
- package/dist/showcase/assets/buttons-PtpR_v16.js +270 -0
- package/dist/showcase/assets/calendar-BiOGjB7a.js +1 -0
- package/dist/showcase/assets/calendar-C1A98cz0.js +16 -0
- package/dist/showcase/assets/calendar-DTgagmt7.js +1 -0
- package/dist/showcase/assets/calendar-days-pr8kXiTx.js +1 -0
- package/dist/showcase/assets/camera-CGKLOOep.js +1 -0
- package/dist/showcase/assets/card-CFIG8Dgg.js +1 -0
- package/dist/showcase/assets/card-CRd07Iun.js +188 -0
- package/dist/showcase/assets/card-primitives-YgCOqVDI.js +1 -0
- package/dist/showcase/assets/card-radio-group-Du6yaMZ-.js +1 -0
- package/dist/showcase/assets/cards-H7ywhTNM.js +328 -0
- package/dist/showcase/assets/carousel-Dwll5oz1.js +449 -0
- package/dist/showcase/assets/chart-BWnVf-d-.js +358 -0
- package/dist/showcase/assets/chart-column-DjAyOA-t.js +1 -0
- package/dist/showcase/assets/checkbox-fwuAAaUZ.js +1 -0
- package/dist/showcase/assets/chevron-down-CSn8HCwf.js +1 -0
- package/dist/showcase/assets/chevron-left-Ddj6-KOu.js +1 -0
- package/dist/showcase/assets/chevron-right-d-umkBru.js +1 -0
- package/dist/showcase/assets/chevron-up-CeFY6O0I.js +1 -0
- package/dist/showcase/assets/chevrons-up-down-Ck3rUZtc.js +1 -0
- package/dist/showcase/assets/circle-Dy08kACD.js +1 -0
- package/dist/showcase/assets/circle-alert-ysbx8rsZ.js +1 -0
- package/dist/showcase/assets/circle-check-TT7cFQrr.js +1 -0
- package/dist/showcase/assets/circle-check-big-4RnJfeaC.js +1 -0
- package/dist/showcase/assets/circle-dot-CvoDXS-W.js +1 -0
- package/dist/showcase/assets/circle-question-mark-Dbi-WTYN.js +1 -0
- package/dist/showcase/assets/circle-x-c5z6-eYV.js +1 -0
- package/dist/showcase/assets/clock-3-DDEsD4Tb.js +1 -0
- package/dist/showcase/assets/clock-DuBsP5t3.js +1 -0
- package/dist/showcase/assets/code-xml-SoYTMEdm.js +1 -0
- package/dist/showcase/assets/collapsible-Cv3oGVkH.js +27 -0
- package/dist/showcase/assets/collapsible-DagkA3To.js +1 -0
- package/dist/showcase/assets/combobox-CPC4a_MH.js +696 -0
- package/dist/showcase/assets/command-BtaMPVtf.js +45 -0
- package/dist/showcase/assets/command-C37Q471b.js +1 -0
- package/dist/showcase/assets/comment-composer-W0xfh_HP.js +1 -0
- package/dist/showcase/assets/comment-item-Ctcpx1GX.js +1 -0
- package/dist/showcase/assets/comments-BODDdRry.js +357 -0
- package/dist/showcase/assets/commerce-B9MICTY2.js +79 -0
- package/dist/showcase/assets/commerce-extras-DsgnTkBH.js +189 -0
- package/dist/showcase/assets/composite-B-19wwf9.js +1 -0
- package/dist/showcase/assets/contact-card-CqP3YxTq.js +65 -0
- package/dist/showcase/assets/content-container-x2tsQKwH.js +1 -0
- package/dist/showcase/assets/copyable-DH0w0i_h.js +96 -0
- package/dist/showcase/assets/course-card-qpC4JUUM.js +77 -0
- package/dist/showcase/assets/cpu-DjJeD_0Z.js +1 -0
- package/dist/showcase/assets/credit-card-CYgRtM77.js +1 -0
- package/dist/showcase/assets/currency-hguqIjWU.js +149 -0
- package/dist/showcase/assets/dark-surfaces-Cj34O9A0.js +90 -0
- package/dist/showcase/assets/database-BVwSMeGM.js +1 -0
- package/dist/showcase/assets/date-block-LCTDXG5-.js +1 -0
- package/dist/showcase/assets/date-picker-CbYq8wZ7.js +1 -0
- package/dist/showcase/assets/date-pickers-BaSX23MK.js +73 -0
- package/dist/showcase/assets/dense-info-kY1QmtaP.js +106 -0
- package/dist/showcase/assets/dialog-B85US9Ue.js +1 -0
- package/dist/showcase/assets/dialog-iIgfMvTJ.js +1 -0
- package/dist/showcase/assets/display-DTaQWVJp.js +403 -0
- package/dist/showcase/assets/dist-CnonIdcR.js +1 -0
- package/dist/showcase/assets/dollar-sign-DlK6XF_v.js +1 -0
- package/dist/showcase/assets/download-B_EY5cGA.js +1 -0
- package/dist/showcase/assets/dropdown-menu-bPWrLPgm.js +1 -0
- package/dist/showcase/assets/dropzone-Bl7RO_Uk.js +1 -0
- package/dist/showcase/assets/earth-C7n2JAYm.js +1 -0
- package/dist/showcase/assets/ellipsis-ntuo3ejh.js +1 -0
- package/dist/showcase/assets/ellipsis-vertical-yH8S83bc.js +1 -0
- package/dist/showcase/assets/empty-CY8f7iFe.js +1 -0
- package/dist/showcase/assets/empty-item-Ct7uCr40.js +49 -0
- package/dist/showcase/assets/empty-state-DlO8SJi8.js +188 -0
- package/dist/showcase/assets/empty-state-IAAUTn6f.js +1 -0
- package/dist/showcase/assets/enhanced-activities-DLwShhof.js +361 -0
- package/dist/showcase/assets/enhanced-combobox-Cs_-wq9p.js +1 -0
- package/dist/showcase/assets/esm-CAF_uoYd.js +2 -0
- package/dist/showcase/assets/event-calendar-C4KlumlG.js +138 -0
- package/dist/showcase/assets/event-log-BvUU5Rj8.js +330 -0
- package/dist/showcase/assets/example-BIrQab7K.js +1 -0
- package/dist/showcase/assets/external-link-DuJlM_H4.js +1 -0
- package/dist/showcase/assets/eye-CnRPL_H8.js +1 -0
- package/dist/showcase/assets/feature-announcement-0dOcSH7F.js +34 -0
- package/dist/showcase/assets/fetchers-DHuMQ6PN.js +1 -0
- package/dist/showcase/assets/file-Dc5UHkfE.js +1 -0
- package/dist/showcase/assets/file-text-D3AE37vP.js +1 -0
- package/dist/showcase/assets/filters-CsovNSxS.js +78 -0
- package/dist/showcase/assets/flag-CJJ43K4x.js +1 -0
- package/dist/showcase/assets/folder-open-Dp0sceCi.js +1 -0
- package/dist/showcase/assets/form-field-Cxm4APa9.js +1 -0
- package/dist/showcase/assets/form-sizing-DHUDpiPA.js +1 -0
- package/dist/showcase/assets/format-bDaUGCSP.js +1 -0
- package/dist/showcase/assets/format-metric-value-BTsvOjZQ.js +1 -0
- package/dist/showcase/assets/forms-BrVikK1p.js +862 -0
- package/dist/showcase/assets/frame-CkLEABTd.js +167 -0
- package/dist/showcase/assets/generic-BH5YLC_H.js +1 -0
- package/dist/showcase/assets/getPseudoElementBounds-Bznj386s.js +1 -0
- package/dist/showcase/assets/gift-Bx8IO1FQ.js +1 -0
- package/dist/showcase/assets/giftcard-cards-CZTXBjv0.js +85 -0
- package/dist/showcase/assets/git-branch-D9jt-u1q.js +1 -0
- package/dist/showcase/assets/global-search-C2R_3Pb3.js +215 -0
- package/dist/showcase/assets/global-search-D9XJ747r.js +1 -0
- package/dist/showcase/assets/globe-BJHI134i.js +1 -0
- package/dist/showcase/assets/gradient-card-CV8w2JG5.js +58 -0
- package/dist/showcase/assets/hash-CtBGoIvf.js +1 -0
- package/dist/showcase/assets/header-B3FSlVv4.js +1 -0
- package/dist/showcase/assets/header-notifications-3VH9lzzJ.js +1 -0
- package/dist/showcase/assets/heart-BWZYF4xJ.js +1 -0
- package/dist/showcase/assets/hero-CLDdwZDr.png +0 -0
- package/dist/showcase/assets/house-CAQOnHLO.js +1 -0
- package/dist/showcase/assets/icon-badge-CxvxB8Vd.js +1 -0
- package/dist/showcase/assets/image-Byz-p7hT.js +1 -0
- package/dist/showcase/assets/inbox-D4UE_W9O.js +1 -0
- package/dist/showcase/assets/index-ADfexGMA.css +2 -0
- package/dist/showcase/assets/index-Cz4UGUT2.js +10 -0
- package/dist/showcase/assets/index.esm-Ducg7a0P.js +1 -0
- package/dist/showcase/assets/inertValue-BVXUUuS4.js +1 -0
- package/dist/showcase/assets/info-DFu8OfxV.js +1 -0
- package/dist/showcase/assets/inline-stat-DqI70yoJ.js +1 -0
- package/dist/showcase/assets/input-BPDdWrB1.js +1 -0
- package/dist/showcase/assets/input-BzafMIDj.js +1 -0
- package/dist/showcase/assets/input-group-BYZYeQ7j.js +1 -0
- package/dist/showcase/assets/input-group-YIWmmLJ6.js +47 -0
- package/dist/showcase/assets/inputs-DjzrYJdb.js +49 -0
- package/dist/showcase/assets/invoice-header-B00JrPAb.js +36 -0
- package/dist/showcase/assets/invoice-items-CUt5D3Wz.js +36 -0
- package/dist/showcase/assets/invoice-mini-CRoaQ9g9.js +14 -0
- package/dist/showcase/assets/invoice-table-DYNnDTQl.js +30 -0
- package/dist/showcase/assets/isSameDay-DVNkwpSk.js +1 -0
- package/dist/showcase/assets/isToday-DZ1HTCty.js +1 -0
- package/dist/showcase/assets/italic-AbetEb3d.js +1 -0
- package/dist/showcase/assets/item-BGA6_5Zh.js +134 -0
- package/dist/showcase/assets/item-BJOYyqeO.js +1 -0
- package/dist/showcase/assets/item-CbiuwbAN.js +1 -0
- package/dist/showcase/assets/kanban-Br-Yz002.js +186 -0
- package/dist/showcase/assets/label-BlCKlLE-.js +1 -0
- package/dist/showcase/assets/languages-CKcUvHnt.js +1 -0
- package/dist/showcase/assets/layers-CakZLRSD.js +1 -0
- package/dist/showcase/assets/layout-app-shell-ukDXqPxC.js +608 -0
- package/dist/showcase/assets/layout-auth-BFza65L3.js +754 -0
- package/dist/showcase/assets/layout-containers-v1jG_b7r.js +101 -0
- package/dist/showcase/assets/layout-header-CqBf9wjY.js +170 -0
- package/dist/showcase/assets/layout-page-WJcljCac.js +122 -0
- package/dist/showcase/assets/layout-sidebar-DL6TLuQC.js +224 -0
- package/dist/showcase/assets/layout-users-B8qpsvV9.js +117 -0
- package/dist/showcase/assets/layout-workspace-iOKZ4-9K.js +183 -0
- package/dist/showcase/assets/leaflet-src-S_KZeH2q.js +1 -0
- package/dist/showcase/assets/lib-DMGme4uo.js +1 -0
- package/dist/showcase/assets/lock-Dn4-vUBz.js +1 -0
- package/dist/showcase/assets/lock-keyhole-M6KZ_7RC.js +1 -0
- package/dist/showcase/assets/mail-check-DXqQwivW.js +1 -0
- package/dist/showcase/assets/mail-w1nhszbW.js +1 -0
- package/dist/showcase/assets/map-CquesVXo.js +124 -0
- package/dist/showcase/assets/map-pin-DUl-Lt6t.js +1 -0
- package/dist/showcase/assets/media-library-CCJBQRPu.js +695 -0
- package/dist/showcase/assets/mention-inline-suggestions-DyW6IwL8.js +1 -0
- package/dist/showcase/assets/mentions-Ea4pSJqG.js +138 -0
- package/dist/showcase/assets/menus-CJjtE4fD.js +89 -0
- package/dist/showcase/assets/message-square-B0RnrJV6.js +1 -0
- package/dist/showcase/assets/metadata-list-DkN9yfTj.js +288 -0
- package/dist/showcase/assets/metadata-list-fm8e58ID.js +1 -0
- package/dist/showcase/assets/metric-bar-BydkmggA.js +1 -0
- package/dist/showcase/assets/metric-grid-BKjrYpt9.js +1 -0
- package/dist/showcase/assets/metric-guQTLTAa.js +1 -0
- package/dist/showcase/assets/metric-trend-chip-DehaJ3nC.js +1 -0
- package/dist/showcase/assets/metrics-analytics-bar-YjwFT4ae.js +44 -0
- package/dist/showcase/assets/metrics-analytics-cards-B6DspERM.js +50 -0
- package/dist/showcase/assets/metrics-comparison-Nru5wypZ.js +76 -0
- package/dist/showcase/assets/metrics-heatmap-CcumN0Or.js +27 -0
- package/dist/showcase/assets/metrics-inline-badge-2WB7w9mz.js +17 -0
- package/dist/showcase/assets/metrics-kpi-row-jU3hsB3C.js +31 -0
- package/dist/showcase/assets/metrics-micro-grid-CaJ99RXL.js +42 -0
- package/dist/showcase/assets/metrics-overview-Sa7z6jct.js +192 -0
- package/dist/showcase/assets/metrics-stat-cards-PLvMkA0M.js +54 -0
- package/dist/showcase/assets/minus-OyRBql2C.js +1 -0
- package/dist/showcase/assets/money-display-23DKz-jK.js +1 -0
- package/dist/showcase/assets/month-year-picker-oEoInnKW.js +1 -0
- package/dist/showcase/assets/navigation-Ds60FMAs.js +230 -0
- package/dist/showcase/assets/navigation-Dufz6qnF.js +90 -0
- package/dist/showcase/assets/navigation-extras-DKufT82I.js +43 -0
- package/dist/showcase/assets/onboarding-checklist-DSkS2ktA.js +119 -0
- package/dist/showcase/assets/overlays-BptoR4sm.js +408 -0
- package/dist/showcase/assets/overlays-CVGJ_FEg.js +88 -0
- package/dist/showcase/assets/package-0ZgMoFm1.js +1 -0
- package/dist/showcase/assets/package-check-CT0dhSM8.js +1 -0
- package/dist/showcase/assets/page-action-button-DrHJKFbp.js +1 -0
- package/dist/showcase/assets/page-header-CikNDnqI.js +1 -0
- package/dist/showcase/assets/pagination-CxuA2zkE.js +42 -0
- package/dist/showcase/assets/pagination-DsPLs2Tx.js +1 -0
- package/dist/showcase/assets/paperclip-CDMZ_JAo.js +1 -0
- package/dist/showcase/assets/password-input-BVaUPw7a.js +1 -0
- package/dist/showcase/assets/pencil-BouoJ5x7.js +1 -0
- package/dist/showcase/assets/phone-DCNFH5yg.js +1 -0
- package/dist/showcase/assets/plus-DkHZm34I.js +1 -0
- package/dist/showcase/assets/popover-BSB11Qjp.js +1 -0
- package/dist/showcase/assets/popover-CECpX3MQ.js +1 -0
- package/dist/showcase/assets/popover-menu-CuA8fb7i.js +1 -0
- package/dist/showcase/assets/products-BJHNTW62.js +407 -0
- package/dist/showcase/assets/progress-DGvRQyPS.js +1 -0
- package/dist/showcase/assets/progress-tpxRVOkp.js +18 -0
- package/dist/showcase/assets/props-table-BR-KjRNe.js +1 -0
- package/dist/showcase/assets/props.generated-qdUud3iu.json +38611 -0
- package/dist/showcase/assets/quote-CN-Sodsj.js +1 -0
- package/dist/showcase/assets/react-dom-Bz4cALsF.js +1 -0
- package/dist/showcase/assets/receipt-T8B9lscp.js +1 -0
- package/dist/showcase/assets/receipt-text-CeBruM29.js +1 -0
- package/dist/showcase/assets/refresh-cw-DnxNcOMm.js +1 -0
- package/dist/showcase/assets/resolveAriaLabelledBy-B2ZzrlGb.js +1 -0
- package/dist/showcase/assets/resolveValueLabel-CGuVi0Dj.js +1 -0
- package/dist/showcase/assets/rich-text-editor-Bha0lSKT.js +143 -0
- package/dist/showcase/assets/rich-text-editor-NeOPmoZF.js +124 -0
- package/dist/showcase/assets/rotate-ccw-7aUlKQpX.js +1 -0
- package/dist/showcase/assets/save-AT8JlA8E.js +1 -0
- package/dist/showcase/assets/schema-form-BpkVygoO.js +325 -0
- package/dist/showcase/assets/scroll-area-B0wmaMAD.js +32 -0
- package/dist/showcase/assets/scroll-area-CgXTHlpJ.js +1 -0
- package/dist/showcase/assets/select-BG_Iad8E.js +1 -0
- package/dist/showcase/assets/select-t6dryszf.js +1 -0
- package/dist/showcase/assets/send-BzGRF4t-.js +1 -0
- package/dist/showcase/assets/separator-BjGdXNcn.js +1 -0
- package/dist/showcase/assets/separator-DbiGagrP.js +28 -0
- package/dist/showcase/assets/serializeValue-B_EucO5O.js +1 -0
- package/dist/showcase/assets/settings-BSRT_96A.js +1 -0
- package/dist/showcase/assets/sheet-CEuKOBxr.js +1 -0
- package/dist/showcase/assets/shield-CcR2q5u_.js +1 -0
- package/dist/showcase/assets/shield-alert-DhbgXV1X.js +1 -0
- package/dist/showcase/assets/shield-check-CRbBJXw2.js +1 -0
- package/dist/showcase/assets/shopping-bag-B5BzpLV5.js +1 -0
- package/dist/showcase/assets/sidebar--2nHUTn3.js +1 -0
- package/dist/showcase/assets/sidebar.context-BCb20eIt.js +1 -0
- package/dist/showcase/assets/skeleton-BeVdks4r.js +1 -0
- package/dist/showcase/assets/skeleton-DijlT51X.js +29 -0
- package/dist/showcase/assets/slider-Cp4m3NTK.js +1 -0
- package/dist/showcase/assets/sliders-horizontal-C8RwUn0S.js +1 -0
- package/dist/showcase/assets/smart-card-B4P_C0nk.js +1 -0
- package/dist/showcase/assets/sonner-CLYYRmEW.js +22 -0
- package/dist/showcase/assets/sortable.esm-CoekVJlU.js +5 -0
- package/dist/showcase/assets/sparkles-DFJmoAFP.js +1 -0
- package/dist/showcase/assets/spinner-CeQHboSs.js +49 -0
- package/dist/showcase/assets/spinner-DMKANM9S.js +30 -0
- package/dist/showcase/assets/spinner-WEI7TMVk.js +1 -0
- package/dist/showcase/assets/square-pen-CfvmmXYo.js +1 -0
- package/dist/showcase/assets/stacked-avatars-CcCnnUrA.js +1 -0
- package/dist/showcase/assets/star-DK5onZCp.js +1 -0
- package/dist/showcase/assets/startOfDay-BuizEr24.js +1 -0
- package/dist/showcase/assets/styles-BStlbPXe.js +1 -0
- package/dist/showcase/assets/suggestions-Cd_XUmz3.js +126 -0
- package/dist/showcase/assets/switch-5f1vwEZ7.js +1 -0
- package/dist/showcase/assets/switch-arjWj-n7.js +1 -0
- package/dist/showcase/assets/sync-DorQdMfx.js +107 -0
- package/dist/showcase/assets/table-ClYkDRAk.js +1 -0
- package/dist/showcase/assets/table-D9q0odD8.js +382 -0
- package/dist/showcase/assets/table-actions-UJbkGb44.js +1 -0
- package/dist/showcase/assets/tabs-BENBPFif.js +19 -0
- package/dist/showcase/assets/tabs-ePpje8sU.js +1 -0
- package/dist/showcase/assets/tags-input-DRlg3zQH.js +1 -0
- package/dist/showcase/assets/text-button-CQvP6Kic.js +1 -0
- package/dist/showcase/assets/text-link-DT-nOORV.js +1 -0
- package/dist/showcase/assets/textarea-BGHGV17m.js +1 -0
- package/dist/showcase/assets/textarea-pstF1OBP.js +1 -0
- package/dist/showcase/assets/timelines-D8y-IyxW.js +200 -0
- package/dist/showcase/assets/toggle-group-BVyFo04r.js +1 -0
- package/dist/showcase/assets/toggles-dhLpAHSR.js +71 -0
- package/dist/showcase/assets/toggles-group-BJ5Jio2p.js +32 -0
- package/dist/showcase/assets/trash-2-OsaEm8cc.js +1 -0
- package/dist/showcase/assets/trending-up-HlQQXTth.js +1 -0
- package/dist/showcase/assets/truck-CvvBxBeB.js +1 -0
- package/dist/showcase/assets/typography-D_99bjSh.js +223 -0
- package/dist/showcase/assets/ui-badge-C1bu7wRu.js +28 -0
- package/dist/showcase/assets/ui-card-Ct1FFUxv.js +30 -0
- package/dist/showcase/assets/ui-table-Dxu9Jjq0.js +42 -0
- package/dist/showcase/assets/upload-tray-BeOBVU1z.js +138 -0
- package/dist/showcase/assets/use-form-field-state-Sbo6tfr9.js +1 -0
- package/dist/showcase/assets/use-layout-link-BK_oEoBg.js +1 -0
- package/dist/showcase/assets/useAnchoredPopupScrollLock-DLXArfPo.js +1 -0
- package/dist/showcase/assets/useAriaLabelledBy-etINba8U.js +1 -0
- package/dist/showcase/assets/useCollapsiblePanel-BNe9r1t_.js +1 -0
- package/dist/showcase/assets/useCompositeItem-CvG1CBEV.js +1 -0
- package/dist/showcase/assets/useCompositeListItem-CcY0U1bY.js +1 -0
- package/dist/showcase/assets/useControlled-Cpg8gDqb.js +1 -0
- package/dist/showcase/assets/useLabelableId-Czdg4nY8.js +1 -0
- package/dist/showcase/assets/useOpenInteractionType-eyZ6twES.js +1 -0
- package/dist/showcase/assets/useRender-BAZlIYnj.js +1 -0
- package/dist/showcase/assets/useTriggerFocusGuards-C2I8g7TT.js +1 -0
- package/dist/showcase/assets/useValueChanged-Bz3WRSDy.js +1 -0
- package/dist/showcase/assets/user-Bqmz8M16.js +1 -0
- package/dist/showcase/assets/user-plus-MMxrhI4h.js +1 -0
- package/dist/showcase/assets/users-ERTaffcv.js +1 -0
- package/dist/showcase/assets/vendor-profile-BAwCE0wP.js +37 -0
- package/dist/showcase/assets/video-DJm0ubTE.js +1 -0
- package/dist/showcase/assets/wrench-gaXnvr_b.js +1 -0
- package/dist/showcase/assets/x-BqJnRkKw.js +1 -0
- package/dist/showcase/assets/zap-DHBVTfYZ.js +1 -0
- package/dist/showcase/index.html +4 -3
- package/dist/style.css +2 -2
- package/package.json +67 -4
- package/scripts/audit-consumer.mjs +17 -6
- package/scripts/install-skill.mjs +5 -1
- package/src/App.css +9 -360
- package/dist/_shared/accordion-CztqyaIN.js +0 -130
- package/dist/_shared/accordion-CztqyaIN.js.map +0 -1
- package/dist/_shared/accordion-D5uTCLCB.cjs +0 -2
- package/dist/_shared/accordion-D5uTCLCB.cjs.map +0 -1
- package/dist/_shared/action-menu-Yrj6VzFS.js +0 -96
- package/dist/_shared/action-menu-Yrj6VzFS.js.map +0 -1
- package/dist/_shared/action-menu-eVP8GGlv.cjs +0 -2
- package/dist/_shared/action-menu-eVP8GGlv.cjs.map +0 -1
- package/dist/_shared/ai-artifact-DaHXJTKg.cjs +0 -3
- package/dist/_shared/ai-artifact-DaHXJTKg.cjs.map +0 -1
- package/dist/_shared/ai-artifact-DyLn3JAs.js +0 -1068
- package/dist/_shared/ai-artifact-DyLn3JAs.js.map +0 -1
- package/dist/_shared/alert-BVw4Mq6H.js +0 -48
- package/dist/_shared/alert-BVw4Mq6H.js.map +0 -1
- package/dist/_shared/alert-DXSlR9ja.cjs +0 -2
- package/dist/_shared/alert-DXSlR9ja.cjs.map +0 -1
- package/dist/_shared/avatar-CpBz9pTv.js +0 -52
- package/dist/_shared/avatar-CpBz9pTv.js.map +0 -1
- package/dist/_shared/avatar-dg20YFFs.cjs +0 -2
- package/dist/_shared/avatar-dg20YFFs.cjs.map +0 -1
- package/dist/_shared/badge-BVCh_hfL.js +0 -108
- package/dist/_shared/badge-BVCh_hfL.js.map +0 -1
- package/dist/_shared/badge-C49SSz-6.cjs +0 -2
- package/dist/_shared/badge-C49SSz-6.cjs.map +0 -1
- package/dist/_shared/breadcrumbs-Bo7j5Rhv.cjs +0 -2
- package/dist/_shared/breadcrumbs-Bo7j5Rhv.cjs.map +0 -1
- package/dist/_shared/breadcrumbs-Dc93fqqE.js +0 -111
- package/dist/_shared/breadcrumbs-Dc93fqqE.js.map +0 -1
- package/dist/_shared/button-2xglT7yf.cjs +0 -2
- package/dist/_shared/button-2xglT7yf.cjs.map +0 -1
- package/dist/_shared/button-ChCkwoOD.js +0 -176
- package/dist/_shared/button-ChCkwoOD.js.map +0 -1
- package/dist/_shared/button-D0nF99a9.cjs +0 -2
- package/dist/_shared/button-D0nF99a9.cjs.map +0 -1
- package/dist/_shared/button-DBR4QI9E.js +0 -46
- package/dist/_shared/button-DBR4QI9E.js.map +0 -1
- package/dist/_shared/buttons-Bcnt1md_.js +0 -143
- package/dist/_shared/buttons-Bcnt1md_.js.map +0 -1
- package/dist/_shared/buttons-km9xqXJv.cjs +0 -2
- package/dist/_shared/buttons-km9xqXJv.cjs.map +0 -1
- package/dist/_shared/card-radio-group-BGH93O5-.js +0 -158
- package/dist/_shared/card-radio-group-BGH93O5-.js.map +0 -1
- package/dist/_shared/card-radio-group-Vq741uhL.cjs +0 -2
- package/dist/_shared/card-radio-group-Vq741uhL.cjs.map +0 -1
- package/dist/_shared/chunk-D3uCBrYO.cjs +0 -1
- package/dist/_shared/combobox-BgXAxjU2.js +0 -746
- package/dist/_shared/combobox-BgXAxjU2.js.map +0 -1
- package/dist/_shared/combobox-DuIyh3xJ.cjs +0 -2
- package/dist/_shared/combobox-DuIyh3xJ.cjs.map +0 -1
- package/dist/_shared/command-BbiijN61.js +0 -39
- package/dist/_shared/command-BbiijN61.js.map +0 -1
- package/dist/_shared/command-D7zTvyBJ.cjs +0 -2
- package/dist/_shared/command-D7zTvyBJ.cjs.map +0 -1
- package/dist/_shared/command-DGNtTI-V.cjs +0 -2
- package/dist/_shared/command-DGNtTI-V.cjs.map +0 -1
- package/dist/_shared/command-jKbwFRtS.js +0 -123
- package/dist/_shared/command-jKbwFRtS.js.map +0 -1
- package/dist/_shared/comments-CNUsdwGW.cjs +0 -2
- package/dist/_shared/comments-CNUsdwGW.cjs.map +0 -1
- package/dist/_shared/comments-CvmS7zG3.js +0 -945
- package/dist/_shared/comments-CvmS7zG3.js.map +0 -1
- package/dist/_shared/containers-BFDv7cCV.cjs +0 -2
- package/dist/_shared/containers-BFDv7cCV.cjs.map +0 -1
- package/dist/_shared/containers-C1-A_2PT.js +0 -19
- package/dist/_shared/containers-C1-A_2PT.js.map +0 -1
- package/dist/_shared/content-container-CwqFnaI0.cjs +0 -2
- package/dist/_shared/content-container-CwqFnaI0.cjs.map +0 -1
- package/dist/_shared/content-container-D_3JGBSc.js +0 -33
- package/dist/_shared/content-container-D_3JGBSc.js.map +0 -1
- package/dist/_shared/copyable-CHhCGMfW.js +0 -38
- package/dist/_shared/copyable-CHhCGMfW.js.map +0 -1
- package/dist/_shared/copyable-ndaiocYq.cjs +0 -2
- package/dist/_shared/copyable-ndaiocYq.cjs.map +0 -1
- package/dist/_shared/date-picker-B8O_qbik.js +0 -1353
- package/dist/_shared/date-picker-B8O_qbik.js.map +0 -1
- package/dist/_shared/date-picker-BnOjyuKS.cjs +0 -2
- package/dist/_shared/date-picker-BnOjyuKS.cjs.map +0 -1
- package/dist/_shared/date-pickers-Cas9cPlj.js +0 -330
- package/dist/_shared/date-pickers-Cas9cPlj.js.map +0 -1
- package/dist/_shared/date-pickers-Dk-G3RMy.cjs +0 -2
- package/dist/_shared/date-pickers-Dk-G3RMy.cjs.map +0 -1
- package/dist/_shared/dialog-67GmkMLC.js +0 -101
- package/dist/_shared/dialog-67GmkMLC.js.map +0 -1
- package/dist/_shared/dialog-BF_4uAhE.cjs +0 -2
- package/dist/_shared/dialog-BF_4uAhE.cjs.map +0 -1
- package/dist/_shared/display-B9xVWboG.cjs +0 -8
- package/dist/_shared/display-B9xVWboG.cjs.map +0 -1
- package/dist/_shared/display-BM_GxDAo.js +0 -1237
- package/dist/_shared/display-BM_GxDAo.js.map +0 -1
- package/dist/_shared/dropdown-menu-4nxEBMnd.js +0 -147
- package/dist/_shared/dropdown-menu-4nxEBMnd.js.map +0 -1
- package/dist/_shared/dropdown-menu-DZlWHqWS.cjs +0 -2
- package/dist/_shared/dropdown-menu-DZlWHqWS.cjs.map +0 -1
- package/dist/_shared/form-field-BQlki-8s.js +0 -319
- package/dist/_shared/form-field-BQlki-8s.js.map +0 -1
- package/dist/_shared/form-field-DzpwVS99.cjs +0 -2
- package/dist/_shared/form-field-DzpwVS99.cjs.map +0 -1
- package/dist/_shared/form-sizing-CcbB-OHF.js +0 -21
- package/dist/_shared/form-sizing-CcbB-OHF.js.map +0 -1
- package/dist/_shared/form-sizing-Cw12UeI6.cjs +0 -2
- package/dist/_shared/form-sizing-Cw12UeI6.cjs.map +0 -1
- package/dist/_shared/format-B2AdSQVn.cjs +0 -2
- package/dist/_shared/format-B2AdSQVn.cjs.map +0 -1
- package/dist/_shared/format-CP65h1vK.js +0 -48
- package/dist/_shared/format-CP65h1vK.js.map +0 -1
- package/dist/_shared/forms-B8aaNG44.cjs +0 -2
- package/dist/_shared/forms-B8aaNG44.cjs.map +0 -1
- package/dist/_shared/forms-BusuTZZ2.js +0 -3374
- package/dist/_shared/forms-BusuTZZ2.js.map +0 -1
- package/dist/_shared/header-DWfOUjFL.cjs +0 -2
- package/dist/_shared/header-DWfOUjFL.cjs.map +0 -1
- package/dist/_shared/header-KpdoLtP9.js +0 -369
- package/dist/_shared/header-KpdoLtP9.js.map +0 -1
- package/dist/_shared/heading-BprqyzDs.js +0 -39
- package/dist/_shared/heading-BprqyzDs.js.map +0 -1
- package/dist/_shared/heading-mZc_jan1.cjs +0 -2
- package/dist/_shared/heading-mZc_jan1.cjs.map +0 -1
- package/dist/_shared/hooks-C-uWoRq5.cjs +0 -2
- package/dist/_shared/hooks-C-uWoRq5.cjs.map +0 -1
- package/dist/_shared/hooks-D5HJtvvP.js +0 -118
- package/dist/_shared/hooks-D5HJtvvP.js.map +0 -1
- package/dist/_shared/icon-badge-BBqDyAUz.cjs +0 -2
- package/dist/_shared/icon-badge-BBqDyAUz.cjs.map +0 -1
- package/dist/_shared/icon-badge-Bi63T-bj.js +0 -52
- package/dist/_shared/icon-badge-Bi63T-bj.js.map +0 -1
- package/dist/_shared/input-B2YXTHqz.cjs +0 -2
- package/dist/_shared/input-B2YXTHqz.cjs.map +0 -1
- package/dist/_shared/input-BJb10xb9.cjs +0 -2
- package/dist/_shared/input-BJb10xb9.cjs.map +0 -1
- package/dist/_shared/input-CZxP5Xgj.js +0 -17
- package/dist/_shared/input-CZxP5Xgj.js.map +0 -1
- package/dist/_shared/input-DQahu2sm.js +0 -182
- package/dist/_shared/input-DQahu2sm.js.map +0 -1
- package/dist/_shared/item-Cu5JbZyZ.js +0 -224
- package/dist/_shared/item-Cu5JbZyZ.js.map +0 -1
- package/dist/_shared/item-Cx_7QZ2o.cjs +0 -2
- package/dist/_shared/item-Cx_7QZ2o.cjs.map +0 -1
- package/dist/_shared/mentions-CS3rIhze.js +0 -493
- package/dist/_shared/mentions-CS3rIhze.js.map +0 -1
- package/dist/_shared/mentions-D7gnP3Nf.cjs +0 -2
- package/dist/_shared/mentions-D7gnP3Nf.cjs.map +0 -1
- package/dist/_shared/metadata-CRsVWE8Y.cjs +0 -2
- package/dist/_shared/metadata-CRsVWE8Y.cjs.map +0 -1
- package/dist/_shared/metadata-CfG0FdFZ.js +0 -236
- package/dist/_shared/metadata-CfG0FdFZ.js.map +0 -1
- package/dist/_shared/money-display-Bd0rkjc9.js +0 -198
- package/dist/_shared/money-display-Bd0rkjc9.js.map +0 -1
- package/dist/_shared/money-display-DSFft9Mi.cjs +0 -2
- package/dist/_shared/money-display-DSFft9Mi.cjs.map +0 -1
- package/dist/_shared/navigation-Do9k5Xh1.js +0 -420
- package/dist/_shared/navigation-Do9k5Xh1.js.map +0 -1
- package/dist/_shared/navigation-QAAD3HJd.cjs +0 -2
- package/dist/_shared/navigation-QAAD3HJd.cjs.map +0 -1
- package/dist/_shared/overlays-B8AH8fNv.js +0 -633
- package/dist/_shared/overlays-B8AH8fNv.js.map +0 -1
- package/dist/_shared/overlays-DOcoRy8k.cjs +0 -2
- package/dist/_shared/overlays-DOcoRy8k.cjs.map +0 -1
- package/dist/_shared/page-BPCeKX9X.js +0 -263
- package/dist/_shared/page-BPCeKX9X.js.map +0 -1
- package/dist/_shared/page-DMM32sxi.cjs +0 -2
- package/dist/_shared/page-DMM32sxi.cjs.map +0 -1
- package/dist/_shared/popover-B1f_EUQS.cjs +0 -2
- package/dist/_shared/popover-B1f_EUQS.cjs.map +0 -1
- package/dist/_shared/popover-CgRGcFk9.js +0 -83
- package/dist/_shared/popover-CgRGcFk9.js.map +0 -1
- package/dist/_shared/popover-menu-BEKIT3LR.cjs +0 -2
- package/dist/_shared/popover-menu-BEKIT3LR.cjs.map +0 -1
- package/dist/_shared/popover-menu-BHdHLEVL.js +0 -95
- package/dist/_shared/popover-menu-BHdHLEVL.js.map +0 -1
- package/dist/_shared/rich-text-editor-0uoIoYXU.js +0 -608
- package/dist/_shared/rich-text-editor-0uoIoYXU.js.map +0 -1
- package/dist/_shared/rich-text-editor-wTiARGuB.cjs +0 -2
- package/dist/_shared/rich-text-editor-wTiARGuB.cjs.map +0 -1
- package/dist/_shared/scroll-area-Bo17wtZD.cjs +0 -2
- package/dist/_shared/scroll-area-Bo17wtZD.cjs.map +0 -1
- package/dist/_shared/scroll-area-Cj-hmB5D.js +0 -41
- package/dist/_shared/scroll-area-Cj-hmB5D.js.map +0 -1
- package/dist/_shared/select-07RRiTWc.js +0 -85
- package/dist/_shared/select-07RRiTWc.js.map +0 -1
- package/dist/_shared/select-BfiU7a4n.cjs +0 -2
- package/dist/_shared/select-BfiU7a4n.cjs.map +0 -1
- package/dist/_shared/separator-CN9zAJfs.cjs +0 -2
- package/dist/_shared/separator-CN9zAJfs.cjs.map +0 -1
- package/dist/_shared/separator-DR0uUMKa.js +0 -16
- package/dist/_shared/separator-DR0uUMKa.js.map +0 -1
- package/dist/_shared/sheet-B5FoGJAZ.cjs +0 -2
- package/dist/_shared/sheet-B5FoGJAZ.cjs.map +0 -1
- package/dist/_shared/sheet-cUI8cypP.js +0 -100
- package/dist/_shared/sheet-cUI8cypP.js.map +0 -1
- package/dist/_shared/sidebar-Bq7yKLrG.cjs +0 -2
- package/dist/_shared/sidebar-Bq7yKLrG.cjs.map +0 -1
- package/dist/_shared/sidebar-Da20tCUc.cjs +0 -2
- package/dist/_shared/sidebar-Da20tCUc.cjs.map +0 -1
- package/dist/_shared/sidebar-Q6TYE8Ux.js +0 -371
- package/dist/_shared/sidebar-Q6TYE8Ux.js.map +0 -1
- package/dist/_shared/sidebar-WmnQ55YY.js +0 -537
- package/dist/_shared/sidebar-WmnQ55YY.js.map +0 -1
- package/dist/_shared/skeleton-B3HWEc6G.js +0 -14
- package/dist/_shared/skeleton-B3HWEc6G.js.map +0 -1
- package/dist/_shared/skeleton-Cz_l8-fc.cjs +0 -2
- package/dist/_shared/skeleton-Cz_l8-fc.cjs.map +0 -1
- package/dist/_shared/slot-BgnZtKR5.js +0 -18
- package/dist/_shared/slot-BgnZtKR5.js.map +0 -1
- package/dist/_shared/slot-Dac1ipUC.cjs +0 -2
- package/dist/_shared/slot-Dac1ipUC.cjs.map +0 -1
- package/dist/_shared/smart-card-Bm_VxYUG.cjs +0 -2
- package/dist/_shared/smart-card-Bm_VxYUG.cjs.map +0 -1
- package/dist/_shared/smart-card-MT6JjkoI.js +0 -360
- package/dist/_shared/smart-card-MT6JjkoI.js.map +0 -1
- package/dist/_shared/spinner-BQjxJ_Kx.js +0 -67
- package/dist/_shared/spinner-BQjxJ_Kx.js.map +0 -1
- package/dist/_shared/spinner-Dvaa6GUm.cjs +0 -2
- package/dist/_shared/spinner-Dvaa6GUm.cjs.map +0 -1
- package/dist/_shared/switch-C0yyhsXZ.js +0 -51
- package/dist/_shared/switch-C0yyhsXZ.js.map +0 -1
- package/dist/_shared/switch-DozkSQNn.cjs +0 -2
- package/dist/_shared/switch-DozkSQNn.cjs.map +0 -1
- package/dist/_shared/text-DBnY6fcL.cjs +0 -2
- package/dist/_shared/text-DBnY6fcL.cjs.map +0 -1
- package/dist/_shared/text-DIxMTECE.js +0 -74
- package/dist/_shared/text-DIxMTECE.js.map +0 -1
- package/dist/_shared/textarea-Cgl-FPwu.js +0 -119
- package/dist/_shared/textarea-Cgl-FPwu.js.map +0 -1
- package/dist/_shared/textarea-D8wC0XlZ.cjs +0 -2
- package/dist/_shared/textarea-D8wC0XlZ.cjs.map +0 -1
- package/dist/_shared/tooltip-Cws4BiPT.js +0 -49
- package/dist/_shared/tooltip-Cws4BiPT.js.map +0 -1
- package/dist/_shared/tooltip-DyUi-Tac.cjs +0 -2
- package/dist/_shared/tooltip-DyUi-Tac.cjs.map +0 -1
- package/dist/_shared/typography-BW7iZBx7.cjs +0 -2
- package/dist/_shared/typography-BW7iZBx7.cjs.map +0 -1
- package/dist/_shared/typography-a3hydyvI.js +0 -102
- package/dist/_shared/typography-a3hydyvI.js.map +0 -1
- package/dist/_shared/ui-provider-4qKSKMPd.js +0 -85
- package/dist/_shared/ui-provider-4qKSKMPd.js.map +0 -1
- package/dist/_shared/ui-provider-uiQgATj1.cjs +0 -2
- package/dist/_shared/ui-provider-uiQgATj1.cjs.map +0 -1
- package/dist/components/base/table/index.cjs.map +0 -1
- package/dist/components/base/table/index.js.map +0 -1
- package/dist/showcase/assets/AreaChart-CJ57G5Ub.js +0 -6
- package/dist/showcase/assets/CSPContext-BA7DfnCI.js +0 -1
- package/dist/showcase/assets/CompositeItem-PwzgE4va.js +0 -1
- package/dist/showcase/assets/CompositeRoot-Du4CMlK7.js +0 -1
- package/dist/showcase/assets/Control.FullScreen-B9vseC57.js +0 -1
- package/dist/showcase/assets/DialogTrigger-FkENgwo6.js +0 -1
- package/dist/showcase/assets/FormContext-ChygLayp.js +0 -1
- package/dist/showcase/assets/PreviewLayout-z6vpJJGt.js +0 -1
- package/dist/showcase/assets/RadioGroup-CcDmbxOw.js +0 -1
- package/dist/showcase/assets/Separator-Dk4eN76U.js +0 -1
- package/dist/showcase/assets/ToolbarRootContext-D_KAA5hZ.js +0 -1
- package/dist/showcase/assets/accordion-dQszzfmw.js +0 -172
- package/dist/showcase/assets/accordion-variants-Dp4wxic-.js +0 -1
- package/dist/showcase/assets/action-menu-CBi2Eiy0.js +0 -1
- package/dist/showcase/assets/activities-DoXsgP4G.js +0 -501
- package/dist/showcase/assets/activities-feed-card-xz5FtkOm.js +0 -1
- package/dist/showcase/assets/admin-CxklUqAG.js +0 -80
- package/dist/showcase/assets/ai-artifact-DkhUdEbM.js +0 -2
- package/dist/showcase/assets/ai-chat-B6PuqkEu.js +0 -568
- package/dist/showcase/assets/ai-elements-D_rpj_ds.js +0 -379
- package/dist/showcase/assets/ai-new-CUPrAbOK.js +0 -167
- package/dist/showcase/assets/ai-tool-call-CEr-dGVx.js +0 -1
- package/dist/showcase/assets/ai-zxF_msJF.js +0 -41
- package/dist/showcase/assets/alert-771BE3Ny.js +0 -59
- package/dist/showcase/assets/alert-CG42DAlX.js +0 -1
- package/dist/showcase/assets/api-key-list-D6jUN7Fq.js +0 -73
- package/dist/showcase/assets/arrow-down-CUoXUyN1.js +0 -1
- package/dist/showcase/assets/arrow-left-Cdq69X6h.js +0 -1
- package/dist/showcase/assets/arrow-right-i25q9L2H.js +0 -1
- package/dist/showcase/assets/arrow-up-pnezegnF.js +0 -1
- package/dist/showcase/assets/arrow-up-right-CK3XnMah.js +0 -1
- package/dist/showcase/assets/avatar-LPmQqZQv.js +0 -1
- package/dist/showcase/assets/avatar-ZVFIQouy.js +0 -57
- package/dist/showcase/assets/badge-DK4bsgZC.js +0 -28
- package/dist/showcase/assets/badge-check-Cw5gkVcG.js +0 -1
- package/dist/showcase/assets/bell-BvJELoaV.js +0 -1
- package/dist/showcase/assets/bot-DRj6sdSR.js +0 -1
- package/dist/showcase/assets/box-BNND3M2m.js +0 -1
- package/dist/showcase/assets/brain-Cy3o-12l.js +0 -1
- package/dist/showcase/assets/brand-DvipEpFn.js +0 -40
- package/dist/showcase/assets/breadcrumb-B-LNuOyv.js +0 -1
- package/dist/showcase/assets/breadcrumb-Lzpc0yo4.js +0 -52
- package/dist/showcase/assets/breadcrumbs-DD6msKFZ.js +0 -1
- package/dist/showcase/assets/briefcase-LcAwoEmu.js +0 -1
- package/dist/showcase/assets/button-CuwcGzk1.js +0 -44
- package/dist/showcase/assets/button-group-CAImjDrl.js +0 -1
- package/dist/showcase/assets/buttons-DTjNHCMl.js +0 -259
- package/dist/showcase/assets/calendar-B1zW0q6I.js +0 -1
- package/dist/showcase/assets/calendar-Dlv72ytt.js +0 -1
- package/dist/showcase/assets/calendar-ls2A08Pn.js +0 -16
- package/dist/showcase/assets/card-BhtkM1BT.js +0 -1
- package/dist/showcase/assets/cards-BRpRXzGk.js +0 -328
- package/dist/showcase/assets/chart-column-BpQkEi1H.js +0 -1
- package/dist/showcase/assets/chevron-down-DyObdfSb.js +0 -1
- package/dist/showcase/assets/chevron-left-T7dHNxYM.js +0 -1
- package/dist/showcase/assets/chevron-right-D_EcqHpT.js +0 -1
- package/dist/showcase/assets/chevron-up-B38ivdGO.js +0 -1
- package/dist/showcase/assets/chevrons-up-down-SdRARzoq.js +0 -1
- package/dist/showcase/assets/circle-BrCPAmDA.js +0 -1
- package/dist/showcase/assets/circle-alert-DdhzLPY_.js +0 -1
- package/dist/showcase/assets/circle-check-DlA6zidQ.js +0 -1
- package/dist/showcase/assets/circle-check-big-DFGJANQF.js +0 -1
- package/dist/showcase/assets/circle-dot-BKmnVUqM.js +0 -1
- package/dist/showcase/assets/circle-question-mark-BNREvgVC.js +0 -1
- package/dist/showcase/assets/circle-x-C45QjHEs.js +0 -1
- package/dist/showcase/assets/clock-D1nKQzQo.js +0 -1
- package/dist/showcase/assets/code-xml-B8N3GRSu.js +0 -1
- package/dist/showcase/assets/collapsible-4TfcWyNs.js +0 -1
- package/dist/showcase/assets/collapsible-CKbZtvTj.js +0 -27
- package/dist/showcase/assets/combobox-DTdGPaU0.js +0 -622
- package/dist/showcase/assets/command-DymTXwL1.js +0 -1
- package/dist/showcase/assets/command-ksVIHQKJ.js +0 -45
- package/dist/showcase/assets/comment-composer-DC9oS1Yy.js +0 -1
- package/dist/showcase/assets/comment-item-CAmKnJa7.js +0 -1
- package/dist/showcase/assets/comments-Benk-2mV.js +0 -349
- package/dist/showcase/assets/commerce-Qz-mq8mQ.js +0 -78
- package/dist/showcase/assets/commerce-extras-CQRc3Bna.js +0 -179
- package/dist/showcase/assets/composite-DBDXLPyz.js +0 -1
- package/dist/showcase/assets/contact-card-DkL2nI3r.js +0 -65
- package/dist/showcase/assets/content-container-mRm6oJEa.js +0 -1
- package/dist/showcase/assets/copyable-DmLlmwzy.js +0 -96
- package/dist/showcase/assets/course-card-CJJoeZj9.js +0 -113
- package/dist/showcase/assets/cpu-BXJnF2Xy.js +0 -1
- package/dist/showcase/assets/credit-card-BQK3KKb2.js +0 -1
- package/dist/showcase/assets/currency-DBPUh8ee.js +0 -149
- package/dist/showcase/assets/dark-surfaces-LpPuIeYy.js +0 -90
- package/dist/showcase/assets/database-BZerpzGE.js +0 -1
- package/dist/showcase/assets/date-block-iiHUpbNX.js +0 -1
- package/dist/showcase/assets/date-picker-BQeBGL7T.js +0 -1
- package/dist/showcase/assets/date-pickers-CKcUEMMF.js +0 -110
- package/dist/showcase/assets/dense-info-DATmxRU8.js +0 -106
- package/dist/showcase/assets/dialog-Bqu5KDYH.js +0 -1
- package/dist/showcase/assets/display-Bj7uPXD4.js +0 -392
- package/dist/showcase/assets/dist-QK7JxeYv.js +0 -1
- package/dist/showcase/assets/dollar-sign-DFZs6vfz.js +0 -1
- package/dist/showcase/assets/download-5oGw_WbW.js +0 -1
- package/dist/showcase/assets/dropdown-menu-1CJgYn0S.js +0 -1
- package/dist/showcase/assets/dropzone-Co1uhsDn.js +0 -1
- package/dist/showcase/assets/ellipsis-cKRcvuyL.js +0 -1
- package/dist/showcase/assets/ellipsis-vertical-B1RErEkj.js +0 -1
- package/dist/showcase/assets/empty-Y2-4nCBr.js +0 -1
- package/dist/showcase/assets/empty-item-USa6xcUv.js +0 -49
- package/dist/showcase/assets/empty-state-DfhZ9AT5.js +0 -188
- package/dist/showcase/assets/enhanced-activities-DmAPVUSu.js +0 -359
- package/dist/showcase/assets/esm-BeGQ_ZTM.js +0 -2
- package/dist/showcase/assets/event-calendar-D-jGrrZS.js +0 -138
- package/dist/showcase/assets/event-log-tA_i4eR9.js +0 -326
- package/dist/showcase/assets/example-6phCHGsN.js +0 -1
- package/dist/showcase/assets/external-link-BuVHkCy0.js +0 -1
- package/dist/showcase/assets/eye-DC5HfGm6.js +0 -1
- package/dist/showcase/assets/feature-announcement-DwvxLytd.js +0 -34
- package/dist/showcase/assets/fetchers-SLCIqgnM.js +0 -1
- package/dist/showcase/assets/file-D-xM4vLy.js +0 -1
- package/dist/showcase/assets/file-text-tmG5vNbr.js +0 -1
- package/dist/showcase/assets/filters-CrGRXmq6.js +0 -78
- package/dist/showcase/assets/flag-CWrEtkY5.js +0 -1
- package/dist/showcase/assets/folder-open-Br-x1pjP.js +0 -1
- package/dist/showcase/assets/form-sizing-Bb5hiM45.js +0 -1
- package/dist/showcase/assets/format-D_ETCyg4.js +0 -1
- package/dist/showcase/assets/format-metric-value-cyOYS377.js +0 -1
- package/dist/showcase/assets/forms-B_MkQ3rm.js +0 -790
- package/dist/showcase/assets/generic-CdmsyXV3.js +0 -1
- package/dist/showcase/assets/getPseudoElementBounds-CZnCbCFP.js +0 -1
- package/dist/showcase/assets/gift-NkuklfU2.js +0 -1
- package/dist/showcase/assets/giftcard-cards-BAvevZ0i.js +0 -85
- package/dist/showcase/assets/git-branch-B_CBqPeO.js +0 -1
- package/dist/showcase/assets/global-search-D9teAbPe.js +0 -90
- package/dist/showcase/assets/globe-gzw45GU2.js +0 -1
- package/dist/showcase/assets/gradient-card-Xk2r7R5H.js +0 -58
- package/dist/showcase/assets/header-notifications-_aZCpE5A.js +0 -1
- package/dist/showcase/assets/heart-CEMKbRaZ.js +0 -1
- package/dist/showcase/assets/house-BlGXAcMH.js +0 -1
- package/dist/showcase/assets/icon-badge-z6N9reH_.js +0 -1
- package/dist/showcase/assets/image-B8mzmVBr.js +0 -1
- package/dist/showcase/assets/inbox-qdSnP4UV.js +0 -1
- package/dist/showcase/assets/index-B4ubXfly.js +0 -10
- package/dist/showcase/assets/index-Cu3Ssz5r.css +0 -2
- package/dist/showcase/assets/inertValue-D5Q8cLku.js +0 -1
- package/dist/showcase/assets/info-DBvvNjc_.js +0 -1
- package/dist/showcase/assets/inline-stat-Bm1zVT8D.js +0 -1
- package/dist/showcase/assets/input-CBQR0aeX.js +0 -1
- package/dist/showcase/assets/input-OrUzpI55.js +0 -1
- package/dist/showcase/assets/input-group-DhqOen2N.js +0 -47
- package/dist/showcase/assets/input-group-l8xa5nUq.js +0 -1
- package/dist/showcase/assets/inputs-DbiJ0qy2.js +0 -49
- package/dist/showcase/assets/invoice-header-C6youIbL.js +0 -36
- package/dist/showcase/assets/invoice-items-g6dgryF-.js +0 -36
- package/dist/showcase/assets/invoice-mini-0iWhufpt.js +0 -14
- package/dist/showcase/assets/invoice-table-Bvdh3rRq.js +0 -30
- package/dist/showcase/assets/isSameDay-BpZEtJe8.js +0 -1
- package/dist/showcase/assets/isToday-F0CS28oK.js +0 -1
- package/dist/showcase/assets/italic-CJOEwjdc.js +0 -1
- package/dist/showcase/assets/item-BiMm1PPB.js +0 -1
- package/dist/showcase/assets/item-CN0cwdj_.js +0 -1
- package/dist/showcase/assets/item-DNqEUYLT.js +0 -117
- package/dist/showcase/assets/kanban-DxePEUiQ.js +0 -175
- package/dist/showcase/assets/label-Dx4WO-fg.js +0 -1
- package/dist/showcase/assets/layout-containers-DDl8rG8S.js +0 -96
- package/dist/showcase/assets/layout-header-Bu6IcDWu.js +0 -170
- package/dist/showcase/assets/layout-page-D-88Qnoy.js +0 -122
- package/dist/showcase/assets/layout-sidebar-Ctft10pk.js +0 -224
- package/dist/showcase/assets/layout-users-DtbZduBG.js +0 -104
- package/dist/showcase/assets/leaflet-src-9EZQ14iG.js +0 -1
- package/dist/showcase/assets/lib-D9BoOYUd.js +0 -1
- package/dist/showcase/assets/lock-CHurDI0n.js +0 -1
- package/dist/showcase/assets/mail-DZ1o1RLW.js +0 -1
- package/dist/showcase/assets/map-C8xiyT9X.js +0 -124
- package/dist/showcase/assets/map-pin-CAKaoYod.js +0 -1
- package/dist/showcase/assets/menus-C6mnp636.js +0 -89
- package/dist/showcase/assets/message-square-Zo5J_zU1.js +0 -1
- package/dist/showcase/assets/metadata-list-W83-UMhc.js +0 -278
- package/dist/showcase/assets/metric-BSvxidIX.js +0 -1
- package/dist/showcase/assets/metric-grid-Dtqx_3Lg.js +0 -1
- package/dist/showcase/assets/metric-trend-chip-mtvcJ_M9.js +0 -1
- package/dist/showcase/assets/metrics-analytics-bar-DQbyss7i.js +0 -44
- package/dist/showcase/assets/metrics-analytics-cards-CEBu5Uw0.js +0 -77
- package/dist/showcase/assets/metrics-comparison-Bs-R6v4y.js +0 -76
- package/dist/showcase/assets/metrics-heatmap-BKHWH8sM.js +0 -27
- package/dist/showcase/assets/metrics-inline-badge-BxVn0Y2p.js +0 -17
- package/dist/showcase/assets/metrics-kpi-row-DtACYEds.js +0 -31
- package/dist/showcase/assets/metrics-micro-grid-BkwUGOUR.js +0 -42
- package/dist/showcase/assets/metrics-overview-BAtrlzsI.js +0 -192
- package/dist/showcase/assets/metrics-stat-cards-iCRCNyHY.js +0 -54
- package/dist/showcase/assets/minus-C6eBW-2t.js +0 -1
- package/dist/showcase/assets/money-display-DjGRJ16l.js +0 -1
- package/dist/showcase/assets/month-year-picker-DTDebPqf.js +0 -1
- package/dist/showcase/assets/navigation-BrG8Chig.js +0 -86
- package/dist/showcase/assets/navigation-CfXQJbyM.js +0 -230
- package/dist/showcase/assets/navigation-extras-D_gzLlZ5.js +0 -43
- package/dist/showcase/assets/onboarding-checklist-1EerUwAo.js +0 -119
- package/dist/showcase/assets/overlays-2AB9-S1Z.js +0 -88
- package/dist/showcase/assets/overlays-CYt9o3Xq.js +0 -393
- package/dist/showcase/assets/package-BJMP-Fcr.js +0 -1
- package/dist/showcase/assets/page-action-button-BZxJ0X1j.js +0 -1
- package/dist/showcase/assets/page-header-B_rqHJhe.js +0 -1
- package/dist/showcase/assets/pagination-BHiQvvka.js +0 -1
- package/dist/showcase/assets/pagination-Dq0GruQd.js +0 -42
- package/dist/showcase/assets/paperclip-BMYKrUQo.js +0 -1
- package/dist/showcase/assets/pencil-BJ3VS_FO.js +0 -1
- package/dist/showcase/assets/phone-CsRIyvep.js +0 -1
- package/dist/showcase/assets/plus-D2JuXYLg.js +0 -1
- package/dist/showcase/assets/popover-DNT9755r.js +0 -1
- package/dist/showcase/assets/popover-KvGgcPNg.js +0 -1
- package/dist/showcase/assets/popover-menu-CJx30R65.js +0 -1
- package/dist/showcase/assets/progress-B7WuXcJR.js +0 -1
- package/dist/showcase/assets/progress-CweCSAUv.js +0 -18
- package/dist/showcase/assets/props-table-uDY4eIzt.js +0 -1
- package/dist/showcase/assets/props.generated-BqPfiNI-.json +0 -32423
- package/dist/showcase/assets/quote-DAyyfzQd.js +0 -1
- package/dist/showcase/assets/receipt-C0mMZGbF.js +0 -1
- package/dist/showcase/assets/refresh-cw-X06JbXb-.js +0 -1
- package/dist/showcase/assets/resolveAriaLabelledBy-DmY5COAB.js +0 -1
- package/dist/showcase/assets/resolveValueLabel-Bks7UDko.js +0 -1
- package/dist/showcase/assets/rich-text-editor-QJsb-qIe.js +0 -124
- package/dist/showcase/assets/rich-text-editor-h07VBNI9.js +0 -141
- package/dist/showcase/assets/rotate-ccw-D84bdX_x.js +0 -1
- package/dist/showcase/assets/scroll-area-0rT06pXZ.js +0 -1
- package/dist/showcase/assets/scroll-area-YXwdzGpN.js +0 -32
- package/dist/showcase/assets/select-BoWQDtUf.js +0 -1
- package/dist/showcase/assets/send-DJsk3cr1.js +0 -1
- package/dist/showcase/assets/separator-CLSnRcJa.js +0 -28
- package/dist/showcase/assets/separator-DWv-twD-.js +0 -1
- package/dist/showcase/assets/settings-Cb2MsAmN.js +0 -1
- package/dist/showcase/assets/sheet-Dn1-MYus.js +0 -1
- package/dist/showcase/assets/shield-DwLjF5ch.js +0 -1
- package/dist/showcase/assets/shield-alert-D8i6gzMK.js +0 -1
- package/dist/showcase/assets/shield-check-D5YRSBIz.js +0 -1
- package/dist/showcase/assets/shopping-bag-BqlAP4vn.js +0 -1
- package/dist/showcase/assets/sidebar.context-BAp_pBEB.js +0 -1
- package/dist/showcase/assets/skeleton-CeNPp4hr.js +0 -1
- package/dist/showcase/assets/skeleton-QPsnM_NR.js +0 -29
- package/dist/showcase/assets/smart-card-BisUbLPt.js +0 -1
- package/dist/showcase/assets/sonner-B7GzbBK2.js +0 -22
- package/dist/showcase/assets/sortable.esm-BDcEOHT7.js +0 -5
- package/dist/showcase/assets/sparkles-CF9P5Tqh.js +0 -1
- package/dist/showcase/assets/spinner-BeamEyJd.js +0 -49
- package/dist/showcase/assets/spinner-DoYBfalR.js +0 -1
- package/dist/showcase/assets/spinner-UsLsOYzn.js +0 -30
- package/dist/showcase/assets/square-pen-BGTVdnt1.js +0 -1
- package/dist/showcase/assets/stacked-avatars-BWfVX1Ov.js +0 -1
- package/dist/showcase/assets/star-NsPNO9gR.js +0 -1
- package/dist/showcase/assets/startOfDay-zJBpxLuW.js +0 -1
- package/dist/showcase/assets/styles-DA7a7hVy.js +0 -1
- package/dist/showcase/assets/switch-C62S4U2o.js +0 -1
- package/dist/showcase/assets/switch-CYQcinJZ.js +0 -1
- package/dist/showcase/assets/table-w4IABkpa.js +0 -1
- package/dist/showcase/assets/table-xgB63UrY.js +0 -390
- package/dist/showcase/assets/tabs-BFTEaTXj.js +0 -19
- package/dist/showcase/assets/tabs-oMJn9Ujq.js +0 -1
- package/dist/showcase/assets/text-button-BgcutPuu.js +0 -1
- package/dist/showcase/assets/text-link-CS9thOWL.js +0 -1
- package/dist/showcase/assets/textarea-BOBx4EM6.js +0 -1
- package/dist/showcase/assets/textarea-CTzYZZqa.js +0 -1
- package/dist/showcase/assets/timelines-CK07mEBK.js +0 -186
- package/dist/showcase/assets/toggle-group-CSPdPT6G.js +0 -1
- package/dist/showcase/assets/toggles-DDSdl-gA.js +0 -71
- package/dist/showcase/assets/toggles-group-Y2BdKEFB.js +0 -32
- package/dist/showcase/assets/trash-2-C-FAptQP.js +0 -1
- package/dist/showcase/assets/trending-up-BmLhdF_w.js +0 -1
- package/dist/showcase/assets/truck-pZdUS_as.js +0 -1
- package/dist/showcase/assets/typography-CnBH2z7f.js +0 -214
- package/dist/showcase/assets/ui-badge-Cl6INRO5.js +0 -28
- package/dist/showcase/assets/ui-card-B5P-thNu.js +0 -30
- package/dist/showcase/assets/ui-table-B32RILKk.js +0 -42
- package/dist/showcase/assets/upload-tray-mu6bR2ZE.js +0 -138
- package/dist/showcase/assets/useAnchoredPopupScrollLock-CzDaXxmM.js +0 -1
- package/dist/showcase/assets/useCollapsiblePanel-B0DZvDFu.js +0 -1
- package/dist/showcase/assets/useCompositeItem-BVIVLT9X.js +0 -1
- package/dist/showcase/assets/useCompositeListItem-JEMeTFPx.js +0 -1
- package/dist/showcase/assets/useControlled-ZjqBfPCn.js +0 -1
- package/dist/showcase/assets/useLabelableId-D8CZq8Bm.js +0 -1
- package/dist/showcase/assets/useOpenInteractionType-CopGCf3q.js +0 -1
- package/dist/showcase/assets/useRender-zuKv6JQF.js +0 -1
- package/dist/showcase/assets/useRole-08KeyiD3.js +0 -1
- package/dist/showcase/assets/useTriggerFocusGuards-DEuz5CGe.js +0 -1
- package/dist/showcase/assets/useValueChanged-BxFi_qyj.js +0 -1
- package/dist/showcase/assets/user-Bgc2t2_e.js +0 -1
- package/dist/showcase/assets/user-plus-F_TfagnP.js +0 -1
- package/dist/showcase/assets/users-B7G4yTCR.js +0 -1
- package/dist/showcase/assets/vendor-profile-BTQmsKM6.js +0 -37
- package/dist/showcase/assets/wrench-BdzICmjR.js +0 -1
- package/dist/showcase/assets/x-B156Wr-5.js +0 -1
- package/dist/showcase/assets/zap-B3iByjNV.js +0 -1
- /package/dist/showcase/assets/{analytics.strings-BcotPUad.js → analytics.strings-B9262Jmq.js} +0 -0
- /package/dist/showcase/assets/{chunk-CilyBKbf.js → chunk-QTnfLwEv.js} +0 -0
- /package/dist/showcase/assets/{customers-BETQwFRp.js → customers-DvBxRjHv.js} +0 -0
- /package/dist/showcase/assets/{format-DoQ4Wqkq.js → format-C_LjuBUs.js} +0 -0
- /package/dist/showcase/assets/{isElementDisabled-BLmk_uhf.js → isElementDisabled-KSuuBj8D.js} +0 -0
- /package/dist/showcase/assets/{leaflet.draw-CwFqqsDc.js → leaflet.draw-lpeKTWFs.js} +0 -0
- /package/dist/showcase/assets/{orders-DNn7r9k_.js → orders-BFwWtubb.js} +0 -0
- /package/dist/showcase/assets/{valueToPercent-CDF3aNnc.js → valueToPercent-B5BHWU68.js} +0 -0
|
@@ -0,0 +1,3430 @@
|
|
|
1
|
+
import { useStrings as e } from "../lib/strings.js";
|
|
2
|
+
import { s as t } from "./ui-provider-C8Ot88lS.js";
|
|
3
|
+
import { cn as n } from "../lib/utils.js";
|
|
4
|
+
import { n as r } from "./heading-HeP06nXG.js";
|
|
5
|
+
import { a as i, i as a } from "./typography-CdxyWB1T.js";
|
|
6
|
+
import { t as o } from "./badge-yGlx9trX.js";
|
|
7
|
+
import { t as s } from "./button-SuocMQFT.js";
|
|
8
|
+
import { n as c } from "./buttons-BR4BGVYf.js";
|
|
9
|
+
import { t as l } from "./input-C7t-RHYq.js";
|
|
10
|
+
import { t as u } from "./checkbox-CTqqawIT.js";
|
|
11
|
+
import { i as d, n as f, t as p } from "./form-sizing-D74IS9KG.js";
|
|
12
|
+
import { t as m } from "./textarea-CsMkelmp.js";
|
|
13
|
+
import { a as h, i as g, n as _, o as v, r as y, t as b } from "./select-BwUUXpsb.js";
|
|
14
|
+
import { a as x, n as S, t as C } from "./form-field-B7taMVbC.js";
|
|
15
|
+
import { r as w } from "./switch-BBP3u1z5.js";
|
|
16
|
+
import { i as T, r as E } from "./card-radio-group-D_CY1HRy.js";
|
|
17
|
+
import { n as D, t as O } from "./date-picker-TMcjGO26.js";
|
|
18
|
+
import { n as k, s as A, t as j } from "./popover-L37RqoRO.js";
|
|
19
|
+
import * as M from "react";
|
|
20
|
+
import N, { forwardRef as P, memo as F, useCallback as I, useEffect as L, useId as R, useMemo as z, useRef as B, useState as V } from "react";
|
|
21
|
+
import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
|
|
22
|
+
import { AlertCircle as G, Camera as K, Check as q, Circle as J, Clock as Y, Eye as X, EyeOff as ee, File as te, GripVertical as ne, ImageIcon as re, ImagePlus as ie, Plus as ae, RefreshCw as oe, Trash2 as se, Trash2Icon as ce, UploadCloud as le, UploadIcon as ue, X as Z } from "lucide-react";
|
|
23
|
+
import { Slider as de } from "@base-ui/react/slider";
|
|
24
|
+
import { Radio as fe } from "@base-ui/react/radio";
|
|
25
|
+
import { RadioGroup as pe } from "@base-ui/react/radio-group";
|
|
26
|
+
import { DndContext as me, KeyboardSensor as he, PointerSensor as ge, closestCenter as _e, useSensor as ve, useSensors as ye } from "@dnd-kit/core";
|
|
27
|
+
import { SortableContext as be, rectSortingStrategy as xe, sortableKeyboardCoordinates as Se, useSortable as Ce, verticalListSortingStrategy as we } from "@dnd-kit/sortable";
|
|
28
|
+
import { CSS as Te } from "@dnd-kit/utilities";
|
|
29
|
+
import { useFieldArray as Ee, useForm as De, useFormContext as Oe } from "react-hook-form";
|
|
30
|
+
//#region src/components/base/forms/fields/password-input.tsx
|
|
31
|
+
var ke = {
|
|
32
|
+
showPassword: "Show password",
|
|
33
|
+
hidePassword: "Hide password"
|
|
34
|
+
}, Ae = M.forwardRef(function({ visible: t, defaultVisible: r = !1, onVisibilityChange: i, revealable: a = !0, wrapperClassName: o, visibilityButtonClassName: s, className: c, disabled: u, isLoading: d, inputStrings: f, strings: p, ...m }, h) {
|
|
35
|
+
let g = e(ke, p), [_, v] = M.useState(r), y = t !== void 0, b = y ? t : _, x = u || d, S = M.useCallback(() => {
|
|
36
|
+
let e = !b;
|
|
37
|
+
y || v(e), i?.(e);
|
|
38
|
+
}, [
|
|
39
|
+
y,
|
|
40
|
+
b,
|
|
41
|
+
i
|
|
42
|
+
]);
|
|
43
|
+
return /* @__PURE__ */ W("div", {
|
|
44
|
+
className: n("password-input--component", "relative", o),
|
|
45
|
+
children: [/* @__PURE__ */ U(l, {
|
|
46
|
+
ref: h,
|
|
47
|
+
type: b ? "text" : "password",
|
|
48
|
+
disabled: u,
|
|
49
|
+
isLoading: d,
|
|
50
|
+
className: n(a && "pe-10", c),
|
|
51
|
+
strings: f,
|
|
52
|
+
...m
|
|
53
|
+
}), !!a && /* @__PURE__ */ U("button", {
|
|
54
|
+
type: "button",
|
|
55
|
+
className: n("password-input--toggle", "text-muted-foreground/80 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus-visible:z-10 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", s),
|
|
56
|
+
"aria-label": b ? g.hidePassword : g.showPassword,
|
|
57
|
+
"aria-pressed": b,
|
|
58
|
+
disabled: x,
|
|
59
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
60
|
+
onClick: S,
|
|
61
|
+
children: U(b ? ee : X, {
|
|
62
|
+
className: "size-4",
|
|
63
|
+
"aria-hidden": "true"
|
|
64
|
+
})
|
|
65
|
+
})]
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
Ae.displayName = "PasswordInput";
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/components/base/forms/fields/slug-field.tsx
|
|
71
|
+
function je(e, { separator: t = "-", lowercase: n = !0, trim: r = !0 } = {}) {
|
|
72
|
+
let i = t || "-", a = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), o = String(e ?? "").normalize("NFKD").replace(/[\u0300-\u036f]/g, "").replace(/&/g, " and ").replace(/['’]/g, "");
|
|
73
|
+
return n && (o = o.toLowerCase()), o = o.replace(/[^\p{Letter}\p{Number}]+/gu, i).replace(RegExp(`${a}{2,}`, "g"), i), r && (o = o.replace(RegExp(`^${a}|${a}$`, "g"), "")), o;
|
|
74
|
+
}
|
|
75
|
+
var Me = M.forwardRef(function({ value: e, slugify: t, separator: r = "-", lowercase: i = !0, trim: a = !0, wrapperClassName: o, className: s, ...c }, u) {
|
|
76
|
+
let d = M.useMemo(() => t?.(e) ?? je(e, {
|
|
77
|
+
separator: r,
|
|
78
|
+
lowercase: i,
|
|
79
|
+
trim: a
|
|
80
|
+
}), [
|
|
81
|
+
i,
|
|
82
|
+
r,
|
|
83
|
+
t,
|
|
84
|
+
a,
|
|
85
|
+
e
|
|
86
|
+
]);
|
|
87
|
+
return /* @__PURE__ */ U("div", {
|
|
88
|
+
className: n("slug-field--component", o),
|
|
89
|
+
children: /* @__PURE__ */ U(l, {
|
|
90
|
+
ref: u,
|
|
91
|
+
...c,
|
|
92
|
+
type: "text",
|
|
93
|
+
value: d,
|
|
94
|
+
readOnly: !0,
|
|
95
|
+
className: s
|
|
96
|
+
})
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
Me.displayName = "SlugField";
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/base/forms/fields/select.tsx
|
|
102
|
+
var Ne = { placeholder: "Select an option" }, Pe = "__select_empty__", Fe = (e) => e === "" || e === null ? Pe : e ?? void 0, Ie = (e) => {
|
|
103
|
+
if (e !== Pe) return e;
|
|
104
|
+
}, Le = F(P(({ options: r, placeholder: i, strings: a, allowClear: o = !1, invalid: s, size: c, className: l, onChange: u, disabled: p, defaultOpen: m, open: x, onOpenChange: S, name: C, required: w, "aria-label": T, value: E, defaultValue: D }, O) => {
|
|
105
|
+
let k = e(Ne, a), { defaultControlSize: A } = t(), j = d(c, A), M = i ?? k.placeholder, N = z(() => {
|
|
106
|
+
let e = r.map((e) => ({
|
|
107
|
+
...e,
|
|
108
|
+
value: Fe(e.value) ?? ""
|
|
109
|
+
}));
|
|
110
|
+
return o && (e.some((e) => e.value === Pe) || e.unshift({
|
|
111
|
+
label: M,
|
|
112
|
+
value: Pe
|
|
113
|
+
})), e;
|
|
114
|
+
}, [
|
|
115
|
+
r,
|
|
116
|
+
o,
|
|
117
|
+
M
|
|
118
|
+
]), P = z(() => Fe(E), [E]), F = z(() => Fe(D), [D]), L = z(() => {
|
|
119
|
+
let e = P ?? F;
|
|
120
|
+
if (e !== void 0) return N.find((t) => t.value === e)?.label;
|
|
121
|
+
}, [
|
|
122
|
+
F,
|
|
123
|
+
N,
|
|
124
|
+
P
|
|
125
|
+
]), R = I((e) => {
|
|
126
|
+
e !== null && u?.(Ie(e));
|
|
127
|
+
}, [u]);
|
|
128
|
+
return /* @__PURE__ */ W(b, {
|
|
129
|
+
onValueChange: (e) => R(e),
|
|
130
|
+
disabled: p,
|
|
131
|
+
defaultOpen: m,
|
|
132
|
+
open: x,
|
|
133
|
+
onOpenChange: S,
|
|
134
|
+
name: C,
|
|
135
|
+
required: w,
|
|
136
|
+
value: P,
|
|
137
|
+
defaultValue: F,
|
|
138
|
+
children: [/* @__PURE__ */ U(h, {
|
|
139
|
+
ref: O,
|
|
140
|
+
"aria-label": T,
|
|
141
|
+
"aria-invalid": !!s || void 0,
|
|
142
|
+
className: n("select--component", "flex w-full items-center justify-between rounded-radius border px-3 py-1 !shadow-none", "transition-[color,box-shadow] outline-none", f[j], "bg-transparent dark:bg-input/30", "data-[placeholder]:text-muted-foreground", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", l),
|
|
143
|
+
children: /* @__PURE__ */ U(v, {
|
|
144
|
+
placeholder: M,
|
|
145
|
+
children: L
|
|
146
|
+
})
|
|
147
|
+
}), /* @__PURE__ */ U(_, { children: /* @__PURE__ */ U(y, { children: N.map((e) => /* @__PURE__ */ W(g, {
|
|
148
|
+
value: e.value,
|
|
149
|
+
disabled: e.disabled,
|
|
150
|
+
children: [!!e.icon && /* @__PURE__ */ W("div", {
|
|
151
|
+
className: "flex items-center gap-2",
|
|
152
|
+
children: [/* @__PURE__ */ U("span", {
|
|
153
|
+
className: "h-4 w-4 shrink-0",
|
|
154
|
+
children: e.icon
|
|
155
|
+
}), e.label]
|
|
156
|
+
}), !e.icon && e.label]
|
|
157
|
+
}, e.value)) }) })]
|
|
158
|
+
});
|
|
159
|
+
}));
|
|
160
|
+
Le.displayName = "Select";
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/components/base/forms/fields/switch-card.tsx
|
|
163
|
+
function Re({ label: e, description: t, hint: a, icon: o, name: s, value: c, defaultValue: l, onChange: u, disabled: d = !1, invalid: f, className: p }) {
|
|
164
|
+
let m = c !== void 0, [h, g] = V(l ?? !1), _ = m ? c ?? !1 : h, v = R(), y = z(() => s ?? v, [s, v]), b = typeof t == "string" && t.trim() !== "", x = b ? `${y}-description` : void 0, S = I((e) => {
|
|
165
|
+
d || (m || g(e), u?.(e));
|
|
166
|
+
}, [
|
|
167
|
+
d,
|
|
168
|
+
m,
|
|
169
|
+
u
|
|
170
|
+
]), C = I((e) => {
|
|
171
|
+
e.target.closest("[role=\"switch\"]") || S(!_);
|
|
172
|
+
}, [_, S]);
|
|
173
|
+
return /* @__PURE__ */ W("div", {
|
|
174
|
+
"aria-invalid": f || void 0,
|
|
175
|
+
onClick: C,
|
|
176
|
+
className: n("switch-card--component", "group relative flex items-start gap-3 rounded-lg border bg-card p-4 transition-[background,border-color,box-shadow] duration-150", "border-border", _ && "border-primary bg-primary/[0.04]", "aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20", !d && "cursor-pointer hover:border-foreground/20 hover:bg-muted/30", d && "cursor-not-allowed opacity-50", p),
|
|
177
|
+
children: [
|
|
178
|
+
!!s && /* @__PURE__ */ U("input", {
|
|
179
|
+
type: "hidden",
|
|
180
|
+
name: s,
|
|
181
|
+
value: _ ? "1" : "0",
|
|
182
|
+
"aria-hidden": "true"
|
|
183
|
+
}),
|
|
184
|
+
!!o && /* @__PURE__ */ U("span", {
|
|
185
|
+
className: n("mt-0.5 inline-flex size-9 shrink-0 items-center justify-center rounded-md transition-colors", _ ? "bg-primary/10 text-primary" : "bg-muted/50 text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),
|
|
186
|
+
children: /* @__PURE__ */ U(o, { className: "size-4" })
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ W("div", {
|
|
189
|
+
className: "min-w-0 flex-1 space-y-0.5",
|
|
190
|
+
children: [
|
|
191
|
+
/* @__PURE__ */ U(i, {
|
|
192
|
+
htmlFor: y,
|
|
193
|
+
className: n("block font-semibold tracking-tight", d ? "cursor-not-allowed" : "cursor-pointer"),
|
|
194
|
+
children: e
|
|
195
|
+
}),
|
|
196
|
+
!!b && /* @__PURE__ */ U(r, {
|
|
197
|
+
type: "secondary",
|
|
198
|
+
className: "leading-snug",
|
|
199
|
+
children: t
|
|
200
|
+
}),
|
|
201
|
+
!!a && /* @__PURE__ */ U(r, {
|
|
202
|
+
size: "xs",
|
|
203
|
+
type: "discrete",
|
|
204
|
+
className: "leading-snug",
|
|
205
|
+
children: a
|
|
206
|
+
})
|
|
207
|
+
]
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ U("div", {
|
|
210
|
+
className: "mt-1 flex shrink-0 items-center",
|
|
211
|
+
children: /* @__PURE__ */ U(w, {
|
|
212
|
+
id: y,
|
|
213
|
+
checked: _,
|
|
214
|
+
onCheckedChange: (e) => S(e),
|
|
215
|
+
disabled: d,
|
|
216
|
+
"aria-label": e,
|
|
217
|
+
"aria-describedby": x
|
|
218
|
+
})
|
|
219
|
+
}),
|
|
220
|
+
!!b && /* @__PURE__ */ U("span", {
|
|
221
|
+
id: `${y}-description`,
|
|
222
|
+
className: "sr-only",
|
|
223
|
+
children: t
|
|
224
|
+
})
|
|
225
|
+
]
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
Re.displayName = "SwitchCard";
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region src/components/base/forms/fields/toggle-field.tsx
|
|
231
|
+
function ze({ label: e, description: t, kind: a = "switch", value: o, defaultValue: s, onChange: c, disabled: l = !1, invalid: d = !1, name: f, className: p, controlPosition: m = "trailing" }) {
|
|
232
|
+
let h = o !== void 0, [g, _] = V(s ?? !1), v = h ? o ?? !1 : g, y = R(), b = I((e) => {
|
|
233
|
+
l || (h || _(e), c?.(e));
|
|
234
|
+
}, [
|
|
235
|
+
l,
|
|
236
|
+
h,
|
|
237
|
+
c
|
|
238
|
+
]), x = (e) => {
|
|
239
|
+
e.target.closest("[role=\"switch\"], [role=\"checkbox\"], input[type=\"checkbox\"]") || b(!v);
|
|
240
|
+
}, S = a === "switch" ? /* @__PURE__ */ U(w, {
|
|
241
|
+
id: y,
|
|
242
|
+
name: f,
|
|
243
|
+
checked: v,
|
|
244
|
+
onCheckedChange: (e) => b(e),
|
|
245
|
+
disabled: l,
|
|
246
|
+
"aria-invalid": d || void 0
|
|
247
|
+
}) : /* @__PURE__ */ U(u, {
|
|
248
|
+
id: y,
|
|
249
|
+
name: f,
|
|
250
|
+
checked: v,
|
|
251
|
+
onCheckedChange: (e) => b(e === !0),
|
|
252
|
+
disabled: l,
|
|
253
|
+
"aria-invalid": d || void 0
|
|
254
|
+
}), C = /* @__PURE__ */ W("div", {
|
|
255
|
+
className: "min-w-0 flex-1",
|
|
256
|
+
children: [/* @__PURE__ */ U(i, {
|
|
257
|
+
htmlFor: y,
|
|
258
|
+
className: n("block leading-snug", l ? "cursor-not-allowed opacity-50" : "cursor-pointer"),
|
|
259
|
+
children: e
|
|
260
|
+
}), !!t && /* @__PURE__ */ U(r, {
|
|
261
|
+
size: "xs",
|
|
262
|
+
type: "secondary",
|
|
263
|
+
className: "mt-0.5 leading-snug",
|
|
264
|
+
children: t
|
|
265
|
+
})]
|
|
266
|
+
});
|
|
267
|
+
return /* @__PURE__ */ W("div", {
|
|
268
|
+
role: "group",
|
|
269
|
+
onClick: x,
|
|
270
|
+
className: n("toggle-field--component", "flex items-start gap-3 rounded-md py-1", l && "pointer-events-none", p),
|
|
271
|
+
children: [
|
|
272
|
+
m === "leading" && /* @__PURE__ */ U("div", {
|
|
273
|
+
className: "mt-0.5 flex shrink-0",
|
|
274
|
+
children: S
|
|
275
|
+
}),
|
|
276
|
+
C,
|
|
277
|
+
m === "trailing" && /* @__PURE__ */ U("div", {
|
|
278
|
+
className: "mt-0.5 flex shrink-0",
|
|
279
|
+
children: S
|
|
280
|
+
})
|
|
281
|
+
]
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
ze.displayName = "ToggleField";
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region src/components/base/forms/fields/tags-input.tsx
|
|
287
|
+
var Be = {
|
|
288
|
+
placeholder: "Add a tag…",
|
|
289
|
+
emptyRecommendations: "No recommendations found.",
|
|
290
|
+
clearAll: "Clear all",
|
|
291
|
+
summary: (e, t) => `${e} / ${t} tags`
|
|
292
|
+
};
|
|
293
|
+
function Ve({ value: t = [], onChange: i, placeholder: a, recommendations: s, maxTags: u, showMaxTags: d = !1, allowDuplicates: f = !1, validate: p, disabled: m = !1, showClearAll: h = !1, renderTag: g, delimiter: _ = /[\n,]/, addOnBlur: v = !0, minLength: y = 1, maxLength: b, emptyMessage: x, sortTags: S = !1, caseSensitive: C = !1, field: w, invalid: T, className: E, strings: D }) {
|
|
294
|
+
let O = e(Be, {
|
|
295
|
+
...a ? { placeholder: a } : {},
|
|
296
|
+
...x ? { emptyRecommendations: x } : {},
|
|
297
|
+
...D
|
|
298
|
+
}), [k, A] = V(""), [j, M] = V(!1), [N, P] = V(-1), F = B(null), L = I((e) => {
|
|
299
|
+
if (typeof e == "string") return e;
|
|
300
|
+
if (w && typeof e == "object" && e) {
|
|
301
|
+
let t = e[w];
|
|
302
|
+
return typeof t == "string" ? t : t == null ? "" : String(t);
|
|
303
|
+
}
|
|
304
|
+
return String(e);
|
|
305
|
+
}, [w]), R = I((e) => typeof t[0] == "string" || t.length === 0 ? e : w ? { [w]: e } : e, [w, t]), H = z(() => s ? s.map((e) => e && typeof e == "object" && "value" in e && "label" in e ? e : {
|
|
306
|
+
value: e,
|
|
307
|
+
label: L(e)
|
|
308
|
+
}) : [], [s, L]), G = z(() => {
|
|
309
|
+
if (!H.length || !k) return H;
|
|
310
|
+
let e = C ? k : k.toLowerCase(), n = new Set(t.map((e) => {
|
|
311
|
+
let t = L(e);
|
|
312
|
+
return C ? t : t.toLowerCase();
|
|
313
|
+
}));
|
|
314
|
+
return H.filter((t) => {
|
|
315
|
+
let r = C ? t.label : t.label.toLowerCase(), i = L(t.value), a = C ? i : i.toLowerCase();
|
|
316
|
+
return (r.includes(e) || a.includes(e)) && (f || !n.has(a));
|
|
317
|
+
});
|
|
318
|
+
}, [
|
|
319
|
+
H,
|
|
320
|
+
k,
|
|
321
|
+
t,
|
|
322
|
+
f,
|
|
323
|
+
C,
|
|
324
|
+
L
|
|
325
|
+
]), K = z(() => S ? [...t].sort((e, t) => {
|
|
326
|
+
let n = L(e), r = L(t);
|
|
327
|
+
return n.localeCompare(r);
|
|
328
|
+
}) : t, [
|
|
329
|
+
t,
|
|
330
|
+
S,
|
|
331
|
+
L
|
|
332
|
+
]), J = I((e) => {
|
|
333
|
+
let n = typeof e == "string" ? R(e) : e, r = L(n).trim();
|
|
334
|
+
if (!r || r.length < y || b && r.length > b || u && t.length >= u || !f && t.some((e) => {
|
|
335
|
+
let t = L(e);
|
|
336
|
+
return C ? t === r : t.toLowerCase() === r.toLowerCase();
|
|
337
|
+
}) || p && !p(n)) return;
|
|
338
|
+
let a = [...t, n];
|
|
339
|
+
i?.(a), A(""), M(!1), P(-1);
|
|
340
|
+
}, [
|
|
341
|
+
t,
|
|
342
|
+
i,
|
|
343
|
+
u,
|
|
344
|
+
f,
|
|
345
|
+
p,
|
|
346
|
+
y,
|
|
347
|
+
b,
|
|
348
|
+
C,
|
|
349
|
+
L,
|
|
350
|
+
R
|
|
351
|
+
]), Y = I((e) => {
|
|
352
|
+
let n = t.filter((t, n) => n !== e);
|
|
353
|
+
i?.(n);
|
|
354
|
+
}, [t, i]), X = I((e) => {
|
|
355
|
+
let t = e.target.value;
|
|
356
|
+
A(t), P(-1), s && s.length > 0 && M(!0);
|
|
357
|
+
}, [s]), ee = I((e) => {
|
|
358
|
+
m || (e.key === "Enter" ? (e.preventDefault(), j && N >= 0 && N < G.length ? (J(G[N].value), P(-1)) : k.trim() && J(k)) : e.key === "Tab" ? k && (e.preventDefault(), J(k)) : e.key === "ArrowDown" ? (e.preventDefault(), j && P((e) => e < G.length - 1 ? e + 1 : e)) : e.key === "ArrowUp" ? (e.preventDefault(), j && P((e) => e > 0 ? e - 1 : 0)) : e.key === "Escape" ? (M(!1), P(-1)) : e.key === "Backspace" && !k && t.length > 0 && Y(t.length - 1));
|
|
359
|
+
}, [
|
|
360
|
+
m,
|
|
361
|
+
j,
|
|
362
|
+
N,
|
|
363
|
+
G,
|
|
364
|
+
k,
|
|
365
|
+
J,
|
|
366
|
+
Y,
|
|
367
|
+
t.length
|
|
368
|
+
]), te = I((e) => {
|
|
369
|
+
m || (e.preventDefault(), e.clipboardData.getData("text").split(_).map((e) => e.trim()).filter(Boolean).forEach((e) => J(e)));
|
|
370
|
+
}, [
|
|
371
|
+
m,
|
|
372
|
+
_,
|
|
373
|
+
J
|
|
374
|
+
]), ne = I(() => {
|
|
375
|
+
setTimeout(() => {
|
|
376
|
+
M(!1), v && k && J(k);
|
|
377
|
+
}, 200);
|
|
378
|
+
}, [
|
|
379
|
+
v,
|
|
380
|
+
k,
|
|
381
|
+
J
|
|
382
|
+
]), re = I(() => {
|
|
383
|
+
i?.([]), A("");
|
|
384
|
+
}, [i]), ie = I((e, t, r) => {
|
|
385
|
+
let i = `${L(e)}-${t}`;
|
|
386
|
+
return /* @__PURE__ */ W(o, {
|
|
387
|
+
variant: "secondary",
|
|
388
|
+
className: n("tags-input--component", "gap-1 pr-1 font-normal"),
|
|
389
|
+
children: [L(e), /* @__PURE__ */ U("button", {
|
|
390
|
+
type: "button",
|
|
391
|
+
"aria-label": `Remove ${L(e)}`,
|
|
392
|
+
className: n("inline-flex size-3.5 items-center justify-center rounded-full", "text-muted-foreground/70 hover:bg-foreground/10 hover:text-foreground", "outline-none focus-visible:ring-2 focus-visible:ring-ring/50", "disabled:opacity-50 disabled:pointer-events-none"),
|
|
393
|
+
onClick: () => r(t),
|
|
394
|
+
disabled: m,
|
|
395
|
+
children: /* @__PURE__ */ U(Z, {
|
|
396
|
+
className: "size-3",
|
|
397
|
+
"aria-hidden": "true"
|
|
398
|
+
})
|
|
399
|
+
})]
|
|
400
|
+
}, i);
|
|
401
|
+
}, [L, m]), ae = !!T;
|
|
402
|
+
return /* @__PURE__ */ W("div", {
|
|
403
|
+
className: n("w-full relative", E),
|
|
404
|
+
children: [
|
|
405
|
+
/* @__PURE__ */ W("div", {
|
|
406
|
+
className: "relative",
|
|
407
|
+
children: [/* @__PURE__ */ U(l, {
|
|
408
|
+
ref: F,
|
|
409
|
+
type: "text",
|
|
410
|
+
placeholder: O.placeholder,
|
|
411
|
+
value: k,
|
|
412
|
+
onChange: X,
|
|
413
|
+
onKeyDown: ee,
|
|
414
|
+
onPaste: te,
|
|
415
|
+
onBlur: ne,
|
|
416
|
+
onFocus: () => {
|
|
417
|
+
s && G.length > 0 && M(!0);
|
|
418
|
+
},
|
|
419
|
+
disabled: m || u !== void 0 && t.length >= u,
|
|
420
|
+
invalid: ae,
|
|
421
|
+
maxLength: b,
|
|
422
|
+
className: "w-full"
|
|
423
|
+
}), !!s && !!j && /* @__PURE__ */ U("div", {
|
|
424
|
+
className: "absolute top-full left-0 right-0 z-50 mt-1 max-h-[200px] overflow-y-auto rounded-md bg-popover text-popover-foreground p-1 text-sm shadow-md ring-1 ring-foreground/10",
|
|
425
|
+
children: G.length > 0 ? G.map((e, r) => {
|
|
426
|
+
let i = L(e.value), a = t.some((t) => L(t) === L(e.value));
|
|
427
|
+
return /* @__PURE__ */ W("button", {
|
|
428
|
+
type: "button",
|
|
429
|
+
onMouseDown: (t) => {
|
|
430
|
+
t.preventDefault(), J(e.value), P(-1), F.current?.focus();
|
|
431
|
+
},
|
|
432
|
+
onMouseEnter: () => P(r),
|
|
433
|
+
className: n("relative flex w-full cursor-pointer items-center justify-between gap-2 rounded-md px-2 py-(--row-py) text-[length:var(--text-xs)]", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none", N === r && "bg-accent text-accent-foreground"),
|
|
434
|
+
children: [/* @__PURE__ */ U("span", { children: e.label }), /* @__PURE__ */ U(q, { className: n("ml-auto size-4", a ? "opacity-100" : "opacity-0") })]
|
|
435
|
+
}, i);
|
|
436
|
+
}) : /* @__PURE__ */ U(r, {
|
|
437
|
+
tag: "div",
|
|
438
|
+
size: "xs",
|
|
439
|
+
type: "secondary",
|
|
440
|
+
className: "px-2 py-(--row-py)",
|
|
441
|
+
children: O.emptyRecommendations
|
|
442
|
+
})
|
|
443
|
+
})]
|
|
444
|
+
}),
|
|
445
|
+
K.length > 0 && /* @__PURE__ */ W("div", {
|
|
446
|
+
className: "flex flex-wrap items-center gap-1.5 mt-2",
|
|
447
|
+
children: [K.map((e, t) => g ? g(e, t, Y) : ie(e, t, Y)), !!h && t.length > 0 && !m && /* @__PURE__ */ U(c, {
|
|
448
|
+
type: "button",
|
|
449
|
+
size: "sm",
|
|
450
|
+
onClick: re,
|
|
451
|
+
className: "ml-auto",
|
|
452
|
+
children: O.clearAll
|
|
453
|
+
})]
|
|
454
|
+
}),
|
|
455
|
+
!!u && !!d && /* @__PURE__ */ U(r, {
|
|
456
|
+
size: "xs",
|
|
457
|
+
type: "secondary",
|
|
458
|
+
className: "mt-1",
|
|
459
|
+
children: O.summary(t.length, u)
|
|
460
|
+
})
|
|
461
|
+
]
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
Ve.displayName = "TagsInput";
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region src/components/base/forms/fields/phone-input.tsx
|
|
467
|
+
var He = { prefixPlaceholder: "Prefix" }, Ue = {
|
|
468
|
+
US: {
|
|
469
|
+
value: "+1",
|
|
470
|
+
label: "United States",
|
|
471
|
+
iso: "US"
|
|
472
|
+
},
|
|
473
|
+
CA: {
|
|
474
|
+
value: "+1",
|
|
475
|
+
label: "Canada",
|
|
476
|
+
iso: "CA"
|
|
477
|
+
},
|
|
478
|
+
AU: {
|
|
479
|
+
value: "+61",
|
|
480
|
+
label: "Australia",
|
|
481
|
+
iso: "AU"
|
|
482
|
+
},
|
|
483
|
+
BG: {
|
|
484
|
+
value: "+359",
|
|
485
|
+
label: "Bulgaria",
|
|
486
|
+
iso: "BG"
|
|
487
|
+
},
|
|
488
|
+
GR: {
|
|
489
|
+
value: "+30",
|
|
490
|
+
label: "Greece",
|
|
491
|
+
iso: "GR"
|
|
492
|
+
},
|
|
493
|
+
GB: {
|
|
494
|
+
value: "+44",
|
|
495
|
+
label: "United Kingdom",
|
|
496
|
+
iso: "GB"
|
|
497
|
+
},
|
|
498
|
+
DE: {
|
|
499
|
+
value: "+49",
|
|
500
|
+
label: "Germany",
|
|
501
|
+
iso: "DE"
|
|
502
|
+
},
|
|
503
|
+
FR: {
|
|
504
|
+
value: "+33",
|
|
505
|
+
label: "France",
|
|
506
|
+
iso: "FR"
|
|
507
|
+
},
|
|
508
|
+
IT: {
|
|
509
|
+
value: "+39",
|
|
510
|
+
label: "Italy",
|
|
511
|
+
iso: "IT"
|
|
512
|
+
},
|
|
513
|
+
ES: {
|
|
514
|
+
value: "+34",
|
|
515
|
+
label: "Spain",
|
|
516
|
+
iso: "ES"
|
|
517
|
+
},
|
|
518
|
+
NL: {
|
|
519
|
+
value: "+31",
|
|
520
|
+
label: "Netherlands",
|
|
521
|
+
iso: "NL"
|
|
522
|
+
},
|
|
523
|
+
BE: {
|
|
524
|
+
value: "+32",
|
|
525
|
+
label: "Belgium",
|
|
526
|
+
iso: "BE"
|
|
527
|
+
},
|
|
528
|
+
AT: {
|
|
529
|
+
value: "+43",
|
|
530
|
+
label: "Austria",
|
|
531
|
+
iso: "AT"
|
|
532
|
+
},
|
|
533
|
+
CH: {
|
|
534
|
+
value: "+41",
|
|
535
|
+
label: "Switzerland",
|
|
536
|
+
iso: "CH"
|
|
537
|
+
},
|
|
538
|
+
PL: {
|
|
539
|
+
value: "+48",
|
|
540
|
+
label: "Poland",
|
|
541
|
+
iso: "PL"
|
|
542
|
+
},
|
|
543
|
+
RO: {
|
|
544
|
+
value: "+40",
|
|
545
|
+
label: "Romania",
|
|
546
|
+
iso: "RO"
|
|
547
|
+
},
|
|
548
|
+
RS: {
|
|
549
|
+
value: "+381",
|
|
550
|
+
label: "Serbia",
|
|
551
|
+
iso: "RS"
|
|
552
|
+
},
|
|
553
|
+
HR: {
|
|
554
|
+
value: "+385",
|
|
555
|
+
label: "Croatia",
|
|
556
|
+
iso: "HR"
|
|
557
|
+
},
|
|
558
|
+
SI: {
|
|
559
|
+
value: "+386",
|
|
560
|
+
label: "Slovenia",
|
|
561
|
+
iso: "SI"
|
|
562
|
+
},
|
|
563
|
+
MK: {
|
|
564
|
+
value: "+389",
|
|
565
|
+
label: "North Macedonia",
|
|
566
|
+
iso: "MK"
|
|
567
|
+
},
|
|
568
|
+
TR: {
|
|
569
|
+
value: "+90",
|
|
570
|
+
label: "Turkey",
|
|
571
|
+
iso: "TR"
|
|
572
|
+
},
|
|
573
|
+
RU: {
|
|
574
|
+
value: "+7",
|
|
575
|
+
label: "Russia",
|
|
576
|
+
iso: "RU"
|
|
577
|
+
},
|
|
578
|
+
UA: {
|
|
579
|
+
value: "+380",
|
|
580
|
+
label: "Ukraine",
|
|
581
|
+
iso: "UA"
|
|
582
|
+
},
|
|
583
|
+
SK: {
|
|
584
|
+
value: "+421",
|
|
585
|
+
label: "Slovakia",
|
|
586
|
+
iso: "SK"
|
|
587
|
+
},
|
|
588
|
+
CZ: {
|
|
589
|
+
value: "+420",
|
|
590
|
+
label: "Czech Republic",
|
|
591
|
+
iso: "CZ"
|
|
592
|
+
},
|
|
593
|
+
HU: {
|
|
594
|
+
value: "+36",
|
|
595
|
+
label: "Hungary",
|
|
596
|
+
iso: "HU"
|
|
597
|
+
},
|
|
598
|
+
PT: {
|
|
599
|
+
value: "+351",
|
|
600
|
+
label: "Portugal",
|
|
601
|
+
iso: "PT"
|
|
602
|
+
},
|
|
603
|
+
IE: {
|
|
604
|
+
value: "+353",
|
|
605
|
+
label: "Ireland",
|
|
606
|
+
iso: "IE"
|
|
607
|
+
},
|
|
608
|
+
SE: {
|
|
609
|
+
value: "+46",
|
|
610
|
+
label: "Sweden",
|
|
611
|
+
iso: "SE"
|
|
612
|
+
},
|
|
613
|
+
NO: {
|
|
614
|
+
value: "+47",
|
|
615
|
+
label: "Norway",
|
|
616
|
+
iso: "NO"
|
|
617
|
+
},
|
|
618
|
+
DK: {
|
|
619
|
+
value: "+45",
|
|
620
|
+
label: "Denmark",
|
|
621
|
+
iso: "DK"
|
|
622
|
+
},
|
|
623
|
+
FI: {
|
|
624
|
+
value: "+358",
|
|
625
|
+
label: "Finland",
|
|
626
|
+
iso: "FI"
|
|
627
|
+
},
|
|
628
|
+
CY: {
|
|
629
|
+
value: "+357",
|
|
630
|
+
label: "Cyprus",
|
|
631
|
+
iso: "CY"
|
|
632
|
+
},
|
|
633
|
+
AL: {
|
|
634
|
+
value: "+355",
|
|
635
|
+
label: "Albania",
|
|
636
|
+
iso: "AL"
|
|
637
|
+
},
|
|
638
|
+
ME: {
|
|
639
|
+
value: "+382",
|
|
640
|
+
label: "Montenegro",
|
|
641
|
+
iso: "ME"
|
|
642
|
+
},
|
|
643
|
+
BA: {
|
|
644
|
+
value: "+387",
|
|
645
|
+
label: "Bosnia and Herzegovina",
|
|
646
|
+
iso: "BA"
|
|
647
|
+
},
|
|
648
|
+
XK: {
|
|
649
|
+
value: "+383",
|
|
650
|
+
label: "Kosovo",
|
|
651
|
+
iso: "XK"
|
|
652
|
+
},
|
|
653
|
+
MD: {
|
|
654
|
+
value: "+373",
|
|
655
|
+
label: "Moldova",
|
|
656
|
+
iso: "MD"
|
|
657
|
+
},
|
|
658
|
+
BY: {
|
|
659
|
+
value: "+375",
|
|
660
|
+
label: "Belarus",
|
|
661
|
+
iso: "BY"
|
|
662
|
+
},
|
|
663
|
+
LT: {
|
|
664
|
+
value: "+370",
|
|
665
|
+
label: "Lithuania",
|
|
666
|
+
iso: "LT"
|
|
667
|
+
},
|
|
668
|
+
LV: {
|
|
669
|
+
value: "+371",
|
|
670
|
+
label: "Latvia",
|
|
671
|
+
iso: "LV"
|
|
672
|
+
},
|
|
673
|
+
EE: {
|
|
674
|
+
value: "+372",
|
|
675
|
+
label: "Estonia",
|
|
676
|
+
iso: "EE"
|
|
677
|
+
}
|
|
678
|
+
}, We = [
|
|
679
|
+
"US",
|
|
680
|
+
"CA",
|
|
681
|
+
"GB",
|
|
682
|
+
"DE",
|
|
683
|
+
"FR",
|
|
684
|
+
"IT",
|
|
685
|
+
"ES",
|
|
686
|
+
"AU"
|
|
687
|
+
], Ge = (e) => typeof e == "string" ? Ue[e.toUpperCase()] ?? null : e, Ke = (e) => e.map(Ge).filter((e) => e !== null), qe = (e, t) => {
|
|
688
|
+
let n = e.trim().replace(/\s+/g, " ").replace(/[^\d ()+-]/g, "");
|
|
689
|
+
return t && n.startsWith(t) && (n = n.slice(t.length).replace(/^[\s-]+/, "")), t && n.startsWith("0") && (n = n.slice(1)), n;
|
|
690
|
+
}, Je = (e, t) => e ? e.startsWith("+") ? e : Ue[e.toUpperCase()]?.value ?? e : t[0]?.value ?? "";
|
|
691
|
+
function Ye({ normalizeOnBlur: i = !0, onBlur: a, onChange: o, prefix: s, defaultPrefix: c, prefixes: u = We, onPrefixChange: p, disablePrefixSelector: m = !1, prefixPlaceholder: x, prefixWidth: S = "w-[120px]", showCountryName: C = !0, showPrefixInDropdown: w = !0, invalid: T, disabled: E, className: D, size: O, strings: k, ...A }, j) {
|
|
692
|
+
let { defaultControlSize: M } = t(), N = d(O, M), P = e(He, k), F = z(() => Ke(u), [u]), [L, R] = V(z(() => Je(c, F), [c, F])), B = s !== void 0, H = B ? Je(s, F) : L, G = z(() => F.find((e) => e.value === H), [F, H]), K = I((e) => {
|
|
693
|
+
e !== null && (B || R(e), p?.(e));
|
|
694
|
+
}, [B, p]), q = I((e) => {
|
|
695
|
+
if (!o) return;
|
|
696
|
+
let t = e.target.value;
|
|
697
|
+
if (H && t.startsWith(H)) {
|
|
698
|
+
let n = t.slice(H.length).replace(/^[\s-]+/, ""), r = n.startsWith("0") ? n.slice(1) : n;
|
|
699
|
+
if (r !== t) {
|
|
700
|
+
o({
|
|
701
|
+
...e,
|
|
702
|
+
target: {
|
|
703
|
+
...e.target,
|
|
704
|
+
value: r
|
|
705
|
+
},
|
|
706
|
+
currentTarget: {
|
|
707
|
+
...e.currentTarget,
|
|
708
|
+
value: r
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
return;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
o(e);
|
|
715
|
+
}, [o, H]), J = I((e) => {
|
|
716
|
+
if (i && typeof o == "function") {
|
|
717
|
+
let t = qe(e.target.value, H);
|
|
718
|
+
t !== e.target.value && o({
|
|
719
|
+
...e,
|
|
720
|
+
target: {
|
|
721
|
+
...e.target,
|
|
722
|
+
value: t
|
|
723
|
+
},
|
|
724
|
+
currentTarget: {
|
|
725
|
+
...e.currentTarget,
|
|
726
|
+
value: t
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
a?.(e);
|
|
731
|
+
}, [
|
|
732
|
+
i,
|
|
733
|
+
o,
|
|
734
|
+
a,
|
|
735
|
+
H
|
|
736
|
+
]);
|
|
737
|
+
if (F.length === 0 || m) {
|
|
738
|
+
let e = H || c;
|
|
739
|
+
return e ? /* @__PURE__ */ W("div", {
|
|
740
|
+
className: "flex items-start gap-2",
|
|
741
|
+
children: [/* @__PURE__ */ U("div", {
|
|
742
|
+
"aria-invalid": T || void 0,
|
|
743
|
+
className: n("flex items-center justify-center rounded-md border border-input bg-muted px-3", f[N], E && "opacity-50", "aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20"),
|
|
744
|
+
children: /* @__PURE__ */ U(r, {
|
|
745
|
+
tag: "span",
|
|
746
|
+
type: "secondary",
|
|
747
|
+
weight: "medium",
|
|
748
|
+
children: e
|
|
749
|
+
})
|
|
750
|
+
}), /* @__PURE__ */ U("div", {
|
|
751
|
+
className: "flex-1",
|
|
752
|
+
children: /* @__PURE__ */ U(l, {
|
|
753
|
+
ref: j,
|
|
754
|
+
size: N,
|
|
755
|
+
type: "tel",
|
|
756
|
+
autoComplete: "tel",
|
|
757
|
+
inputMode: "tel",
|
|
758
|
+
onChange: q,
|
|
759
|
+
onBlur: J,
|
|
760
|
+
invalid: T,
|
|
761
|
+
disabled: E,
|
|
762
|
+
className: D,
|
|
763
|
+
...A
|
|
764
|
+
})
|
|
765
|
+
})]
|
|
766
|
+
}) : /* @__PURE__ */ U(l, {
|
|
767
|
+
ref: j,
|
|
768
|
+
size: N,
|
|
769
|
+
type: "tel",
|
|
770
|
+
autoComplete: "tel",
|
|
771
|
+
inputMode: "tel",
|
|
772
|
+
onChange: q,
|
|
773
|
+
onBlur: J,
|
|
774
|
+
invalid: T,
|
|
775
|
+
disabled: E,
|
|
776
|
+
className: n("phone-input--component", D),
|
|
777
|
+
...A
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
return /* @__PURE__ */ W("div", {
|
|
781
|
+
className: "flex items-start gap-2",
|
|
782
|
+
children: [/* @__PURE__ */ W(b, {
|
|
783
|
+
value: H,
|
|
784
|
+
onValueChange: (e) => K(e),
|
|
785
|
+
disabled: E,
|
|
786
|
+
children: [/* @__PURE__ */ U(h, {
|
|
787
|
+
"aria-invalid": T || void 0,
|
|
788
|
+
className: n("border-input bg-transparent shrink-0 !shadow-none", f[N], "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", S, E && "opacity-50 cursor-not-allowed"),
|
|
789
|
+
children: /* @__PURE__ */ U(v, {
|
|
790
|
+
placeholder: x ?? P.prefixPlaceholder,
|
|
791
|
+
children: !!G && /* @__PURE__ */ U(r, {
|
|
792
|
+
tag: "span",
|
|
793
|
+
children: G.value
|
|
794
|
+
})
|
|
795
|
+
})
|
|
796
|
+
}), /* @__PURE__ */ U(_, { children: /* @__PURE__ */ U(y, { children: F.map((e) => /* @__PURE__ */ U(g, {
|
|
797
|
+
value: e.value,
|
|
798
|
+
children: /* @__PURE__ */ W("div", {
|
|
799
|
+
className: "flex items-center gap-2",
|
|
800
|
+
children: [!!w && /* @__PURE__ */ U(r, {
|
|
801
|
+
tag: "span",
|
|
802
|
+
weight: "medium",
|
|
803
|
+
className: "min-w-[50px]",
|
|
804
|
+
children: e.value
|
|
805
|
+
}), !!C && /* @__PURE__ */ U(r, {
|
|
806
|
+
tag: "span",
|
|
807
|
+
type: "secondary",
|
|
808
|
+
lineHeight: "tight",
|
|
809
|
+
children: e.label
|
|
810
|
+
})]
|
|
811
|
+
})
|
|
812
|
+
}, e.value)) }) })]
|
|
813
|
+
}), /* @__PURE__ */ U("div", {
|
|
814
|
+
className: "flex-1",
|
|
815
|
+
children: /* @__PURE__ */ U(l, {
|
|
816
|
+
ref: j,
|
|
817
|
+
size: N,
|
|
818
|
+
type: "tel",
|
|
819
|
+
autoComplete: "tel",
|
|
820
|
+
inputMode: "tel",
|
|
821
|
+
onChange: q,
|
|
822
|
+
onBlur: J,
|
|
823
|
+
invalid: T,
|
|
824
|
+
disabled: E,
|
|
825
|
+
className: D,
|
|
826
|
+
...A
|
|
827
|
+
})
|
|
828
|
+
})]
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
var Xe = F(M.forwardRef(Ye));
|
|
832
|
+
Xe.displayName = "PhoneInput";
|
|
833
|
+
//#endregion
|
|
834
|
+
//#region src/components/base/forms/fields/percentage-input.tsx
|
|
835
|
+
var Ze = P(function({ decimalPlaces: e = 2, min: t = 0, max: n = 100, step: r, ...i }, a) {
|
|
836
|
+
return /* @__PURE__ */ U(x, {
|
|
837
|
+
className: "percentage-input--component",
|
|
838
|
+
ref: a,
|
|
839
|
+
decimalPlaces: e,
|
|
840
|
+
allowNegative: !1,
|
|
841
|
+
min: t,
|
|
842
|
+
max: n,
|
|
843
|
+
step: r,
|
|
844
|
+
endAddon: "%",
|
|
845
|
+
...i
|
|
846
|
+
});
|
|
847
|
+
});
|
|
848
|
+
Ze.displayName = "PercentageInput";
|
|
849
|
+
//#endregion
|
|
850
|
+
//#region src/components/ui/slider.tsx
|
|
851
|
+
function Qe({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100, ...o }) {
|
|
852
|
+
let s = M.useMemo(() => Array.isArray(r) ? r : Array.isArray(t) ? t : [i, a], [
|
|
853
|
+
r,
|
|
854
|
+
t,
|
|
855
|
+
i,
|
|
856
|
+
a
|
|
857
|
+
]);
|
|
858
|
+
return /* @__PURE__ */ U(de.Root, {
|
|
859
|
+
className: n("data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full", e),
|
|
860
|
+
"data-slot": "slider",
|
|
861
|
+
defaultValue: t,
|
|
862
|
+
value: r,
|
|
863
|
+
min: i,
|
|
864
|
+
max: a,
|
|
865
|
+
thumbAlignment: "edge",
|
|
866
|
+
...o,
|
|
867
|
+
children: /* @__PURE__ */ W(de.Control, {
|
|
868
|
+
className: "relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
|
|
869
|
+
children: [/* @__PURE__ */ U(de.Track, {
|
|
870
|
+
"data-slot": "slider-track",
|
|
871
|
+
className: "relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5",
|
|
872
|
+
children: /* @__PURE__ */ U(de.Indicator, {
|
|
873
|
+
"data-slot": "slider-range",
|
|
874
|
+
className: "absolute bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
875
|
+
})
|
|
876
|
+
}), Array.from({ length: s.length }, (e, t) => /* @__PURE__ */ U(de.Thumb, {
|
|
877
|
+
"data-slot": "slider-thumb",
|
|
878
|
+
className: "block size-4 shrink-0 rounded-full border border-primary bg-white shadow-sm ring-ring/50 transition-[color,box-shadow] select-none hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
879
|
+
}, t))]
|
|
880
|
+
})
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
//#endregion
|
|
884
|
+
//#region src/components/base/forms/fields/slider.tsx
|
|
885
|
+
function $e({ name: e, id: t, value: i, defaultValue: a, min: o = 0, max: s = 100, step: c = 1, disabled: l = !1, invalid: u = !1, onChange: d, onValueChange: f, onValueCommitted: p, showValue: m = !1, formatValue: h, unit: g, className: _, orientation: v = "horizontal" }, y) {
|
|
886
|
+
let b = R(), x = t ?? `slider-${b}`, S = e ?? x, C = I((e) => {
|
|
887
|
+
let t = Array.isArray(e) ? e[0] : e;
|
|
888
|
+
f?.(t), d?.({ target: {
|
|
889
|
+
name: S,
|
|
890
|
+
value: t
|
|
891
|
+
} });
|
|
892
|
+
}, [
|
|
893
|
+
S,
|
|
894
|
+
d,
|
|
895
|
+
f
|
|
896
|
+
]), w = I((e) => {
|
|
897
|
+
let t = Array.isArray(e) ? e[0] : e;
|
|
898
|
+
p?.(t);
|
|
899
|
+
}, [p]), T = z(() => {
|
|
900
|
+
if (!m) return null;
|
|
901
|
+
let e = i ?? a ?? o;
|
|
902
|
+
return h ? h(e) : g ? `${e}${g}` : String(e);
|
|
903
|
+
}, [
|
|
904
|
+
m,
|
|
905
|
+
i,
|
|
906
|
+
a,
|
|
907
|
+
o,
|
|
908
|
+
h,
|
|
909
|
+
g
|
|
910
|
+
]), E = i === void 0 ? void 0 : [i], D = a === void 0 ? [o] : [a];
|
|
911
|
+
return /* @__PURE__ */ W("div", {
|
|
912
|
+
className: n("slider--component", "flex items-center gap-3", _),
|
|
913
|
+
children: [/* @__PURE__ */ U(Qe, {
|
|
914
|
+
ref: y,
|
|
915
|
+
id: x,
|
|
916
|
+
value: E,
|
|
917
|
+
defaultValue: D,
|
|
918
|
+
min: o,
|
|
919
|
+
max: s,
|
|
920
|
+
step: c,
|
|
921
|
+
disabled: l,
|
|
922
|
+
orientation: v,
|
|
923
|
+
onValueChange: C,
|
|
924
|
+
onValueCommitted: w,
|
|
925
|
+
"aria-invalid": u || void 0,
|
|
926
|
+
className: n("min-w-0 flex-1", u && "[&_[data-slot=slider-range]]:bg-destructive [&_[data-slot=slider-thumb]]:border-destructive")
|
|
927
|
+
}), !!m && T !== null && /* @__PURE__ */ U(r, {
|
|
928
|
+
tag: "span",
|
|
929
|
+
type: u ? "error" : "secondary",
|
|
930
|
+
className: "min-w-[3ch] shrink-0 text-right tabular-nums",
|
|
931
|
+
children: T
|
|
932
|
+
})]
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
var et = M.forwardRef($e);
|
|
936
|
+
et.displayName = "SliderField";
|
|
937
|
+
//#endregion
|
|
938
|
+
//#region src/components/base/forms/fields/list-radio-group.tsx
|
|
939
|
+
function tt({ options: e, value: i, defaultValue: a, onChange: o, name: s, invalid: c, disabled: l, size: u, className: f }) {
|
|
940
|
+
let { defaultControlSize: p } = t(), m = E[d(u, p)];
|
|
941
|
+
return /* @__PURE__ */ U(pe, {
|
|
942
|
+
value: i,
|
|
943
|
+
defaultValue: a,
|
|
944
|
+
onValueChange: (e) => e && o?.(e),
|
|
945
|
+
name: s,
|
|
946
|
+
disabled: l,
|
|
947
|
+
"aria-invalid": c || void 0,
|
|
948
|
+
className: n("list-radio-group--component", "overflow-hidden rounded-md border [&>[role=radio]~[role=radio]]:border-t", "aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20", l && "pointer-events-none opacity-50", f),
|
|
949
|
+
children: e.map((e) => /* @__PURE__ */ W(fe.Root, {
|
|
950
|
+
value: e.value,
|
|
951
|
+
disabled: l || e.disabled,
|
|
952
|
+
className: n("group flex w-full items-start gap-3 text-start outline-none cursor-pointer", "transition-colors hover:bg-muted/40 focus-visible:bg-muted/40", "data-[checked]:bg-primary/10", "disabled:cursor-not-allowed disabled:opacity-50", m),
|
|
953
|
+
children: [/* @__PURE__ */ U("div", {
|
|
954
|
+
className: "mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full border border-primary group-data-[checked]:border-primary group-not-data-[checked]:border-muted-foreground/50",
|
|
955
|
+
children: /* @__PURE__ */ U(fe.Indicator, { render: /* @__PURE__ */ U(J, { className: "h-2.5 w-2.5 fill-primary text-primary" }) })
|
|
956
|
+
}), /* @__PURE__ */ W("div", {
|
|
957
|
+
className: "flex-1 min-w-0",
|
|
958
|
+
children: [/* @__PURE__ */ U(r, {
|
|
959
|
+
tag: "span",
|
|
960
|
+
weight: "medium",
|
|
961
|
+
lineHeight: "tight",
|
|
962
|
+
className: "block",
|
|
963
|
+
children: e.label
|
|
964
|
+
}), !!e.description && /* @__PURE__ */ U(r, {
|
|
965
|
+
tag: "span",
|
|
966
|
+
size: "xs",
|
|
967
|
+
type: "secondary",
|
|
968
|
+
className: "block mt-0.5",
|
|
969
|
+
children: e.description
|
|
970
|
+
})]
|
|
971
|
+
})]
|
|
972
|
+
}, e.value))
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
tt.displayName = "ListRadioGroup";
|
|
976
|
+
//#endregion
|
|
977
|
+
//#region src/components/base/forms/fields/rounding-mode-select.tsx
|
|
978
|
+
var nt = [
|
|
979
|
+
"floor",
|
|
980
|
+
"half_up",
|
|
981
|
+
"ceil"
|
|
982
|
+
];
|
|
983
|
+
function rt({ value: e, onChange: t, labels: n, placeholder: r, ...i }) {
|
|
984
|
+
return /* @__PURE__ */ U(Le, {
|
|
985
|
+
className: "rounding-mode-select--component",
|
|
986
|
+
options: z(() => nt.map((e) => ({
|
|
987
|
+
value: e,
|
|
988
|
+
label: n?.[e] ?? e
|
|
989
|
+
})), [n]),
|
|
990
|
+
value: e,
|
|
991
|
+
onChange: I((e) => {
|
|
992
|
+
t?.(e);
|
|
993
|
+
}, [t]),
|
|
994
|
+
placeholder: r,
|
|
995
|
+
...i
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
rt.displayName = "RoundingModeSelect";
|
|
999
|
+
//#endregion
|
|
1000
|
+
//#region src/components/base/forms/fields/rich-select.tsx
|
|
1001
|
+
var it = { placeholder: "Select an item" }, at = "__rich_select_empty__", ot = P(({ options: i, placeholder: a, strings: o, onChange: s, className: c, disabled: l, defaultOpen: u, open: m, onOpenChange: x, name: S, required: C, value: w, defaultValue: T, allowClear: E = !1, invalid: D, size: O }, k) => {
|
|
1002
|
+
let { defaultControlSize: A } = t(), j = d(O, A), M = e(it, o), N = a ?? M.placeholder, P = I((e) => {
|
|
1003
|
+
if (e !== at) return e === "" || e == null ? E ? at : void 0 : e;
|
|
1004
|
+
}, [E]), F = I((e) => {
|
|
1005
|
+
if (e !== at) return e;
|
|
1006
|
+
}, []), L = z(() => {
|
|
1007
|
+
let e = i.map((e) => ({
|
|
1008
|
+
...e,
|
|
1009
|
+
value: P(e.value) ?? ""
|
|
1010
|
+
}));
|
|
1011
|
+
return E && (e.some((e) => e.label === N) || e.unshift({
|
|
1012
|
+
label: N,
|
|
1013
|
+
value: at
|
|
1014
|
+
})), e;
|
|
1015
|
+
}, [
|
|
1016
|
+
i,
|
|
1017
|
+
E,
|
|
1018
|
+
N,
|
|
1019
|
+
P
|
|
1020
|
+
]), R = z(() => P(w ?? void 0), [w, P]), B = z(() => P(T ?? void 0), [T, P]), H = w !== void 0, [G, K] = V(B), q = H ? R : G, J = z(() => L.find((e) => e.value === q), [q, L]), Y = I((e) => {
|
|
1021
|
+
e != null && (H || K(e), s?.(F(e)));
|
|
1022
|
+
}, [
|
|
1023
|
+
H,
|
|
1024
|
+
s,
|
|
1025
|
+
F
|
|
1026
|
+
]), X = n("border-input bg-transparent w-full rounded-radius border outline-none transition-[color,box-shadow] !shadow-none", f[j], p[j], "h-auto py-2", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aria-invalid:text-destructive", "disabled:cursor-not-allowed disabled:opacity-50", c);
|
|
1027
|
+
return /* @__PURE__ */ W(b, {
|
|
1028
|
+
onValueChange: (e) => Y(e),
|
|
1029
|
+
disabled: l,
|
|
1030
|
+
defaultOpen: u,
|
|
1031
|
+
open: m,
|
|
1032
|
+
onOpenChange: x,
|
|
1033
|
+
name: S,
|
|
1034
|
+
required: C,
|
|
1035
|
+
defaultValue: B,
|
|
1036
|
+
...H ? { value: R } : {},
|
|
1037
|
+
children: [/* @__PURE__ */ U(h, {
|
|
1038
|
+
ref: k,
|
|
1039
|
+
className: n("rich-select--component", X),
|
|
1040
|
+
"aria-invalid": D,
|
|
1041
|
+
children: J ? /* @__PURE__ */ U(r, {
|
|
1042
|
+
tag: "span",
|
|
1043
|
+
className: "text-left break-words whitespace-normal",
|
|
1044
|
+
children: J.label
|
|
1045
|
+
}) : /* @__PURE__ */ U(v, { placeholder: N })
|
|
1046
|
+
}), /* @__PURE__ */ U(_, { children: /* @__PURE__ */ U(y, { children: L.map((e) => /* @__PURE__ */ U(g, {
|
|
1047
|
+
value: e.value,
|
|
1048
|
+
disabled: e.disabled,
|
|
1049
|
+
children: /* @__PURE__ */ W("div", {
|
|
1050
|
+
className: "flex w-full items-center gap-2",
|
|
1051
|
+
children: [!!e.icon && /* @__PURE__ */ U("span", {
|
|
1052
|
+
className: "w-4 h-4 shrink-0 flex items-center justify-center self-start mt-0.5",
|
|
1053
|
+
children: e.icon
|
|
1054
|
+
}), /* @__PURE__ */ W("div", {
|
|
1055
|
+
className: "flex flex-col min-w-0 text-left flex-1",
|
|
1056
|
+
children: [/* @__PURE__ */ U(r, {
|
|
1057
|
+
tag: "span",
|
|
1058
|
+
weight: "medium",
|
|
1059
|
+
children: e.label
|
|
1060
|
+
}), !!e.description && /* @__PURE__ */ U(r, {
|
|
1061
|
+
tag: "span",
|
|
1062
|
+
size: "xs",
|
|
1063
|
+
type: "secondary",
|
|
1064
|
+
lineHeight: "tight",
|
|
1065
|
+
className: "mt-0.5 line-clamp-2",
|
|
1066
|
+
children: e.description
|
|
1067
|
+
})]
|
|
1068
|
+
})]
|
|
1069
|
+
})
|
|
1070
|
+
}, e.value)) }) })]
|
|
1071
|
+
});
|
|
1072
|
+
});
|
|
1073
|
+
ot.displayName = "RichSelect";
|
|
1074
|
+
//#endregion
|
|
1075
|
+
//#region src/components/base/forms/fields/dimensions-input.tsx
|
|
1076
|
+
var st = {
|
|
1077
|
+
width: "Width",
|
|
1078
|
+
height: "Height",
|
|
1079
|
+
depth: "Depth",
|
|
1080
|
+
unit: "Unit",
|
|
1081
|
+
widthPlaceholder: "0.00",
|
|
1082
|
+
heightPlaceholder: "0.00",
|
|
1083
|
+
depthPlaceholder: "0.00"
|
|
1084
|
+
}, ct = [{
|
|
1085
|
+
value: "g",
|
|
1086
|
+
label: "g (grams)"
|
|
1087
|
+
}, {
|
|
1088
|
+
value: "kg",
|
|
1089
|
+
label: "kg (kilograms)"
|
|
1090
|
+
}], lt = (e, t) => {
|
|
1091
|
+
if (!e) return {
|
|
1092
|
+
width: "",
|
|
1093
|
+
height: "",
|
|
1094
|
+
depth: ""
|
|
1095
|
+
};
|
|
1096
|
+
if (t === "string" && typeof e == "string") {
|
|
1097
|
+
let t = e.split("x").map((e) => e.trim());
|
|
1098
|
+
return {
|
|
1099
|
+
width: t[0] || "",
|
|
1100
|
+
height: t[1] || "",
|
|
1101
|
+
depth: t[2] || ""
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
return t === "object" && typeof e == "object" ? {
|
|
1105
|
+
width: e.width || "",
|
|
1106
|
+
height: e.height || "",
|
|
1107
|
+
depth: e.depth || ""
|
|
1108
|
+
} : {
|
|
1109
|
+
width: "",
|
|
1110
|
+
height: "",
|
|
1111
|
+
depth: ""
|
|
1112
|
+
};
|
|
1113
|
+
}, ut = (e, t, n, r) => r === "string" ? `${e}x${t}x${n}` : {
|
|
1114
|
+
width: e,
|
|
1115
|
+
height: t,
|
|
1116
|
+
depth: n
|
|
1117
|
+
};
|
|
1118
|
+
function dt({ value: a, defaultValue: o, format: s = "string", unit: c, defaultUnit: l = "g", widthLabel: u, heightLabel: p, depthLabel: m, unitLabel: S, unitPlaceholder: C, widthPlaceholder: w, heightPlaceholder: T, depthPlaceholder: E, onChange: D, onUnitChange: O, decimalPlaces: k = 2, min: A = 0, max: j, showUnitSelector: M = !0, disableUnitSelector: N = !1, layout: P = "horizontal", invalid: F, disabled: R = !1, className: z, size: B, strings: H }) {
|
|
1119
|
+
let { defaultControlSize: G } = t(), K = d(B, G), q = e(st, H), J = u ?? q.width, Y = p ?? q.height, X = m ?? q.depth, ee = C ?? q.unit, te = w ?? q.widthPlaceholder, ne = T ?? q.heightPlaceholder, re = E ?? q.depthPlaceholder, ie = P === "horizontal", ae = P === "vertical", oe = M === !0, se = (S ?? "").length > 0, ce = ae ? J : "", le = ae ? Y : "", ue = ae ? X : "", Z = a !== void 0, de = c !== void 0, fe = lt(Z ? a : o, s), [pe, me] = V(fe.width), [he, ge] = V(fe.height), [_e, ve] = V(fe.depth), [ye, be] = V(c || l), xe = lt(a, s), Se = Z ? xe.width : pe, Ce = Z ? xe.height : he, we = Z ? xe.depth : _e, Te = de ? c : ye;
|
|
1120
|
+
L(() => {
|
|
1121
|
+
if (Z) {
|
|
1122
|
+
let e = lt(a, s);
|
|
1123
|
+
me(e.width), ge(e.height), ve(e.depth);
|
|
1124
|
+
}
|
|
1125
|
+
}, [
|
|
1126
|
+
a,
|
|
1127
|
+
s,
|
|
1128
|
+
Z
|
|
1129
|
+
]);
|
|
1130
|
+
let Ee = I((e, t) => {
|
|
1131
|
+
let n = Se, r = Ce, i = we;
|
|
1132
|
+
e === "width" && (n = t), e === "height" && (r = t), e === "depth" && (i = t), Z || (me(n), ge(r), ve(i));
|
|
1133
|
+
let a = ut(n, r, i, s);
|
|
1134
|
+
D?.({ target: { value: a } });
|
|
1135
|
+
}, [
|
|
1136
|
+
Se,
|
|
1137
|
+
Ce,
|
|
1138
|
+
we,
|
|
1139
|
+
Z,
|
|
1140
|
+
s,
|
|
1141
|
+
D
|
|
1142
|
+
]), De = I((e) => {
|
|
1143
|
+
if (e === null) return;
|
|
1144
|
+
let t = e;
|
|
1145
|
+
de || be(t), O?.(t);
|
|
1146
|
+
}, [de, O]), Oe = /* @__PURE__ */ W("div", {
|
|
1147
|
+
className: "space-y-2",
|
|
1148
|
+
children: [!!se && /* @__PURE__ */ U(i, {
|
|
1149
|
+
className: "leading-6",
|
|
1150
|
+
children: S
|
|
1151
|
+
}), /* @__PURE__ */ W(b, {
|
|
1152
|
+
value: Te,
|
|
1153
|
+
onValueChange: (e) => De(e),
|
|
1154
|
+
disabled: R || N,
|
|
1155
|
+
children: [/* @__PURE__ */ U(h, {
|
|
1156
|
+
"aria-invalid": F || void 0,
|
|
1157
|
+
className: n("border-input bg-transparent !shadow-none", f[K], "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", "w-32", R && "opacity-50 cursor-not-allowed"),
|
|
1158
|
+
children: /* @__PURE__ */ U(v, { placeholder: ee })
|
|
1159
|
+
}), /* @__PURE__ */ U(_, { children: /* @__PURE__ */ U(y, { children: ct.map((e) => /* @__PURE__ */ U(g, {
|
|
1160
|
+
value: e.value,
|
|
1161
|
+
children: e.label
|
|
1162
|
+
}, e.value)) }) })]
|
|
1163
|
+
})]
|
|
1164
|
+
});
|
|
1165
|
+
return /* @__PURE__ */ U("div", {
|
|
1166
|
+
className: n("dimensions-input--component", "space-y-2", z),
|
|
1167
|
+
children: /* @__PURE__ */ W("div", {
|
|
1168
|
+
className: n("flex gap-2", P === "vertical" ? "flex-col" : "flex-row items-start"),
|
|
1169
|
+
children: [
|
|
1170
|
+
/* @__PURE__ */ W("div", {
|
|
1171
|
+
className: "flex-1 space-y-1",
|
|
1172
|
+
children: [
|
|
1173
|
+
!!ae && !!ce && /* @__PURE__ */ U(i, { children: ce }),
|
|
1174
|
+
/* @__PURE__ */ U(x, {
|
|
1175
|
+
size: K,
|
|
1176
|
+
value: Se,
|
|
1177
|
+
onChange: (e) => Ee("width", e.target.value),
|
|
1178
|
+
placeholder: te,
|
|
1179
|
+
decimalPlaces: k,
|
|
1180
|
+
min: A,
|
|
1181
|
+
max: j,
|
|
1182
|
+
disabled: R,
|
|
1183
|
+
invalid: F,
|
|
1184
|
+
"aria-label": J
|
|
1185
|
+
}),
|
|
1186
|
+
!!ie && /* @__PURE__ */ U(r, {
|
|
1187
|
+
size: "xs",
|
|
1188
|
+
type: "secondary",
|
|
1189
|
+
className: "text-center",
|
|
1190
|
+
children: J
|
|
1191
|
+
})
|
|
1192
|
+
]
|
|
1193
|
+
}),
|
|
1194
|
+
P === "horizontal" && /* @__PURE__ */ U("div", {
|
|
1195
|
+
className: "flex items-center pt-2",
|
|
1196
|
+
children: /* @__PURE__ */ U(r, {
|
|
1197
|
+
tag: "span",
|
|
1198
|
+
type: "secondary",
|
|
1199
|
+
children: "×"
|
|
1200
|
+
})
|
|
1201
|
+
}),
|
|
1202
|
+
/* @__PURE__ */ W("div", {
|
|
1203
|
+
className: "flex-1 space-y-1",
|
|
1204
|
+
children: [
|
|
1205
|
+
!!ae && !!le && /* @__PURE__ */ U(i, { children: le }),
|
|
1206
|
+
/* @__PURE__ */ U(x, {
|
|
1207
|
+
size: K,
|
|
1208
|
+
value: Ce,
|
|
1209
|
+
onChange: (e) => Ee("height", e.target.value),
|
|
1210
|
+
placeholder: ne,
|
|
1211
|
+
decimalPlaces: k,
|
|
1212
|
+
min: A,
|
|
1213
|
+
max: j,
|
|
1214
|
+
disabled: R,
|
|
1215
|
+
invalid: F,
|
|
1216
|
+
"aria-label": Y
|
|
1217
|
+
}),
|
|
1218
|
+
!!ie && /* @__PURE__ */ U(r, {
|
|
1219
|
+
size: "xs",
|
|
1220
|
+
type: "secondary",
|
|
1221
|
+
className: "text-center",
|
|
1222
|
+
children: Y
|
|
1223
|
+
})
|
|
1224
|
+
]
|
|
1225
|
+
}),
|
|
1226
|
+
P === "horizontal" && /* @__PURE__ */ U("div", {
|
|
1227
|
+
className: "flex items-center pt-2",
|
|
1228
|
+
children: /* @__PURE__ */ U(r, {
|
|
1229
|
+
tag: "span",
|
|
1230
|
+
type: "secondary",
|
|
1231
|
+
children: "×"
|
|
1232
|
+
})
|
|
1233
|
+
}),
|
|
1234
|
+
/* @__PURE__ */ W("div", {
|
|
1235
|
+
className: "flex-1 space-y-1",
|
|
1236
|
+
children: [
|
|
1237
|
+
!!ae && !!ue && /* @__PURE__ */ U(i, { children: ue }),
|
|
1238
|
+
/* @__PURE__ */ U(x, {
|
|
1239
|
+
size: K,
|
|
1240
|
+
value: we,
|
|
1241
|
+
onChange: (e) => Ee("depth", e.target.value),
|
|
1242
|
+
placeholder: re,
|
|
1243
|
+
decimalPlaces: k,
|
|
1244
|
+
min: A,
|
|
1245
|
+
max: j,
|
|
1246
|
+
disabled: R,
|
|
1247
|
+
invalid: F,
|
|
1248
|
+
"aria-label": X
|
|
1249
|
+
}),
|
|
1250
|
+
!!ie && /* @__PURE__ */ U(r, {
|
|
1251
|
+
size: "xs",
|
|
1252
|
+
type: "secondary",
|
|
1253
|
+
className: "text-center",
|
|
1254
|
+
children: X
|
|
1255
|
+
})
|
|
1256
|
+
]
|
|
1257
|
+
}),
|
|
1258
|
+
!!oe && /* @__PURE__ */ W("div", {
|
|
1259
|
+
className: n(P === "vertical" ? "w-full" : "w-32 pt-0"),
|
|
1260
|
+
children: [Oe, !!ie && !se && /* @__PURE__ */ U(r, {
|
|
1261
|
+
size: "xs",
|
|
1262
|
+
type: "secondary",
|
|
1263
|
+
className: "mt-1 text-center",
|
|
1264
|
+
children: ee
|
|
1265
|
+
})]
|
|
1266
|
+
})
|
|
1267
|
+
]
|
|
1268
|
+
})
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
dt.displayName = "DimensionsInput";
|
|
1272
|
+
//#endregion
|
|
1273
|
+
//#region src/components/base/forms/fields/weight-input.tsx
|
|
1274
|
+
var ft = {
|
|
1275
|
+
unitLabel: "",
|
|
1276
|
+
unitPlaceholder: ""
|
|
1277
|
+
}, pt = [
|
|
1278
|
+
{
|
|
1279
|
+
value: "g",
|
|
1280
|
+
label: "g"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
value: "kg",
|
|
1284
|
+
label: "kg"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
value: "lb",
|
|
1288
|
+
label: "lb"
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
value: "oz",
|
|
1292
|
+
label: "oz"
|
|
1293
|
+
}
|
|
1294
|
+
];
|
|
1295
|
+
function mt({ value: r, defaultValue: a, unit: o, defaultUnit: s = "g", onChange: c, onUnitChange: l, decimalPlaces: u = 2, min: p = 0, max: m, showUnitSelector: S = !0, disableUnitSelector: C = !1, unitLabel: w, unitPlaceholder: T, unitWidth: E = "w-24", strings: D, invalid: O, disabled: k = !1, size: A, className: j }) {
|
|
1296
|
+
let { defaultControlSize: M } = t(), N = d(A, M), P = e(ft, {
|
|
1297
|
+
...w === void 0 ? {} : { unitLabel: w },
|
|
1298
|
+
...T === void 0 ? {} : { unitPlaceholder: T },
|
|
1299
|
+
...D
|
|
1300
|
+
}), F = r !== void 0, L = o !== void 0, [R, B] = V(a ?? ""), [H, G] = V(o ?? s), K = F ? r ?? "" : R, q = L ? o ?? s : H, J = I((e) => {
|
|
1301
|
+
F || B(e.target.value), c?.({ target: { value: e.target.value } });
|
|
1302
|
+
}, [F, c]), Y = I((e) => {
|
|
1303
|
+
if (e === null) return;
|
|
1304
|
+
let t = e;
|
|
1305
|
+
L || G(t), l?.(t);
|
|
1306
|
+
}, [L, l]), X = z(() => pt, []), ee = P.unitLabel !== "";
|
|
1307
|
+
return /* @__PURE__ */ W("div", {
|
|
1308
|
+
className: n("weight-input--component", "flex items-start gap-2", j),
|
|
1309
|
+
children: [/* @__PURE__ */ U("div", {
|
|
1310
|
+
className: "flex-1",
|
|
1311
|
+
children: /* @__PURE__ */ U(x, {
|
|
1312
|
+
size: N,
|
|
1313
|
+
value: K,
|
|
1314
|
+
onChange: J,
|
|
1315
|
+
decimalPlaces: u,
|
|
1316
|
+
allowNegative: !1,
|
|
1317
|
+
min: p,
|
|
1318
|
+
max: m,
|
|
1319
|
+
disabled: k,
|
|
1320
|
+
invalid: O
|
|
1321
|
+
})
|
|
1322
|
+
}), !!S && /* @__PURE__ */ W("div", {
|
|
1323
|
+
className: "space-y-2",
|
|
1324
|
+
children: [!!ee && /* @__PURE__ */ U(i, {
|
|
1325
|
+
className: "leading-6",
|
|
1326
|
+
children: P.unitLabel
|
|
1327
|
+
}), /* @__PURE__ */ W(b, {
|
|
1328
|
+
value: q,
|
|
1329
|
+
onValueChange: (e) => Y(e),
|
|
1330
|
+
disabled: k || C,
|
|
1331
|
+
children: [/* @__PURE__ */ U(h, {
|
|
1332
|
+
"aria-invalid": O || void 0,
|
|
1333
|
+
className: n("border-input bg-transparent !shadow-none", f[N], "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", (k || C) && "opacity-50 cursor-not-allowed", E),
|
|
1334
|
+
children: /* @__PURE__ */ U(v, { placeholder: P.unitPlaceholder || void 0 })
|
|
1335
|
+
}), /* @__PURE__ */ U(_, { children: /* @__PURE__ */ U(y, { children: X.map((e) => /* @__PURE__ */ U(g, {
|
|
1336
|
+
value: e.value,
|
|
1337
|
+
children: e.label
|
|
1338
|
+
}, e.value)) }) })]
|
|
1339
|
+
})]
|
|
1340
|
+
})]
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
mt.displayName = "WeightInput";
|
|
1344
|
+
//#endregion
|
|
1345
|
+
//#region src/components/base/forms/fields/coordinates-input.tsx
|
|
1346
|
+
var ht = {
|
|
1347
|
+
latLabel: "",
|
|
1348
|
+
lngLabel: "",
|
|
1349
|
+
latPlaceholder: "",
|
|
1350
|
+
lngPlaceholder: "",
|
|
1351
|
+
previewLinkLabel: ""
|
|
1352
|
+
}, gt = (e, t) => {
|
|
1353
|
+
if (!e) return {
|
|
1354
|
+
lat: "",
|
|
1355
|
+
lng: ""
|
|
1356
|
+
};
|
|
1357
|
+
if (t === "string" && typeof e == "string") {
|
|
1358
|
+
let [t, n] = e.split(",").map((e) => e.trim());
|
|
1359
|
+
return {
|
|
1360
|
+
lat: t ?? "",
|
|
1361
|
+
lng: n ?? ""
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
return t === "object" && typeof e == "object" ? {
|
|
1365
|
+
lat: e.lat ?? "",
|
|
1366
|
+
lng: e.lng ?? ""
|
|
1367
|
+
} : {
|
|
1368
|
+
lat: "",
|
|
1369
|
+
lng: ""
|
|
1370
|
+
};
|
|
1371
|
+
}, _t = (e, t, n) => n === "string" ? `${e},${t}` : {
|
|
1372
|
+
lat: e,
|
|
1373
|
+
lng: t
|
|
1374
|
+
}, vt = (e, t, n) => {
|
|
1375
|
+
if (!e) return !1;
|
|
1376
|
+
let r = Number(e);
|
|
1377
|
+
return Number.isFinite(r) && r >= t && r <= n;
|
|
1378
|
+
};
|
|
1379
|
+
function yt({ value: t, defaultValue: r, format: o = "object", onChange: s, latLabel: c, lngLabel: l, latPlaceholder: u, lngPlaceholder: d, decimalPlaces: f = 6, showPreviewLink: p = !0, previewLinkLabel: m, strings: h, invalid: g, className: _, disabled: v }) {
|
|
1380
|
+
let y = e(ht, {
|
|
1381
|
+
...c === void 0 ? {} : { latLabel: c },
|
|
1382
|
+
...l === void 0 ? {} : { lngLabel: l },
|
|
1383
|
+
...u === void 0 ? {} : { latPlaceholder: u },
|
|
1384
|
+
...d === void 0 ? {} : { lngPlaceholder: d },
|
|
1385
|
+
...m === void 0 ? {} : { previewLinkLabel: m },
|
|
1386
|
+
...h
|
|
1387
|
+
}), b = t !== void 0, S = gt(b ? t : r, o), [C, w] = V(S.lat), [T, E] = V(S.lng), D = gt(t, o), O = b ? D.lat : C, k = b ? D.lng : T;
|
|
1388
|
+
L(() => {
|
|
1389
|
+
b && (w(D.lat), E(D.lng));
|
|
1390
|
+
}, [
|
|
1391
|
+
b,
|
|
1392
|
+
D.lat,
|
|
1393
|
+
D.lng
|
|
1394
|
+
]);
|
|
1395
|
+
let A = I((e, t) => {
|
|
1396
|
+
b || (w(e), E(t)), s?.({ target: { value: _t(e, t, o) } });
|
|
1397
|
+
}, [
|
|
1398
|
+
b,
|
|
1399
|
+
s,
|
|
1400
|
+
o
|
|
1401
|
+
]), j = z(() => {
|
|
1402
|
+
let e = vt(O, -90, 90), t = vt(k, -180, 180);
|
|
1403
|
+
return !e || !t ? null : `https://www.google.com/maps?q=${encodeURIComponent(`${O},${k}`)}`;
|
|
1404
|
+
}, [O, k]);
|
|
1405
|
+
return /* @__PURE__ */ W("div", {
|
|
1406
|
+
className: n("coordinates-input--component", "space-y-3", _),
|
|
1407
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1408
|
+
className: "grid grid-cols-1 gap-3 md:grid-cols-2",
|
|
1409
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1410
|
+
className: "space-y-2",
|
|
1411
|
+
children: [!!y.latLabel && /* @__PURE__ */ U(i, { children: y.latLabel }), /* @__PURE__ */ U(x, {
|
|
1412
|
+
placeholder: y.latPlaceholder || void 0,
|
|
1413
|
+
value: O,
|
|
1414
|
+
onChange: (e) => A(e.target.value, k),
|
|
1415
|
+
decimalPlaces: f,
|
|
1416
|
+
allowNegative: !0,
|
|
1417
|
+
min: -90,
|
|
1418
|
+
max: 90,
|
|
1419
|
+
invalid: g,
|
|
1420
|
+
disabled: v
|
|
1421
|
+
})]
|
|
1422
|
+
}), /* @__PURE__ */ W("div", {
|
|
1423
|
+
className: "space-y-2",
|
|
1424
|
+
children: [!!y.lngLabel && /* @__PURE__ */ U(i, { children: y.lngLabel }), /* @__PURE__ */ U(x, {
|
|
1425
|
+
placeholder: y.lngPlaceholder || void 0,
|
|
1426
|
+
value: k,
|
|
1427
|
+
onChange: (e) => A(O, e.target.value),
|
|
1428
|
+
decimalPlaces: f,
|
|
1429
|
+
allowNegative: !0,
|
|
1430
|
+
min: -180,
|
|
1431
|
+
max: 180,
|
|
1432
|
+
invalid: g,
|
|
1433
|
+
disabled: v
|
|
1434
|
+
})]
|
|
1435
|
+
})]
|
|
1436
|
+
}), !!p && !!j && !!y.previewLinkLabel && /* @__PURE__ */ U(a, {
|
|
1437
|
+
href: j,
|
|
1438
|
+
type: "secondary",
|
|
1439
|
+
underline: !1,
|
|
1440
|
+
children: y.previewLinkLabel
|
|
1441
|
+
})]
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
yt.displayName = "CoordinatesInput";
|
|
1445
|
+
//#endregion
|
|
1446
|
+
//#region src/components/base/forms/fields/date-time-input.tsx
|
|
1447
|
+
function bt({ value: e, onChange: t, placeholder: n, readableFormat: r = "dd-MM-yyyy HH:mm", stepMinutes: i = 30, modal: a = !0, invalid: o, disabled: s }) {
|
|
1448
|
+
let c = e ? new Date(e) : void 0;
|
|
1449
|
+
return /* @__PURE__ */ U(O, {
|
|
1450
|
+
className: "date-time-input--component",
|
|
1451
|
+
mode: "single",
|
|
1452
|
+
disabled: s,
|
|
1453
|
+
error: o ? " " : void 0,
|
|
1454
|
+
placeholder: n,
|
|
1455
|
+
value: c,
|
|
1456
|
+
onChange: I((e) => {
|
|
1457
|
+
t?.(e.date ? e.date.toISOString() : void 0);
|
|
1458
|
+
}, [t]),
|
|
1459
|
+
readableFormat: r,
|
|
1460
|
+
withTime: {
|
|
1461
|
+
enabled: !0,
|
|
1462
|
+
format: "24",
|
|
1463
|
+
step: i
|
|
1464
|
+
},
|
|
1465
|
+
modal: a
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
bt.displayName = "DateTimeInput";
|
|
1469
|
+
//#endregion
|
|
1470
|
+
//#region src/components/base/forms/fields/time-picker.tsx
|
|
1471
|
+
var xt = {
|
|
1472
|
+
placeholder: "Select time",
|
|
1473
|
+
dialogTitle: "Select Time",
|
|
1474
|
+
hours: "Hours",
|
|
1475
|
+
minutes: "Minutes",
|
|
1476
|
+
seconds: "Seconds",
|
|
1477
|
+
now: "Now",
|
|
1478
|
+
done: "Done",
|
|
1479
|
+
hoursPlaceholder: "HH",
|
|
1480
|
+
minutesPlaceholder: "MM",
|
|
1481
|
+
secondsPlaceholder: "SS",
|
|
1482
|
+
am: "AM",
|
|
1483
|
+
pm: "PM"
|
|
1484
|
+
}, Q = (e) => String(e).padStart(2, "0"), $ = (e) => {
|
|
1485
|
+
let t = e.trim();
|
|
1486
|
+
if (t === "") return null;
|
|
1487
|
+
let n = Number.parseInt(t, 10);
|
|
1488
|
+
return Number.isFinite(n) ? n : null;
|
|
1489
|
+
}, St = (e, t, n) => Math.min(Math.max(e, t), n), Ct = (e) => (e ?? "").replace(/\D/g, "").slice(0, 2), wt = (e, t) => {
|
|
1490
|
+
if (!Number.isFinite(t) || t <= 0 || t === 1) return e;
|
|
1491
|
+
let n = e % t, r = n >= Math.max(1, Math.floor(t * .8)), i = e - n, a = r ? i + t : i;
|
|
1492
|
+
return a >= 60 ? 0 : a;
|
|
1493
|
+
};
|
|
1494
|
+
function Tt({ className: t, value: a = "00:00:00", onChange: o, invalid: c, disabled: u, placeholder: d, dialogTitle: f, hoursLabel: p, minutesLabel: m, secondsLabel: h, nowLabel: g, doneLabel: _, format: v = "24", minuteStep: y = 5, showSeconds: b = !0, strings: x }) {
|
|
1495
|
+
let S = R(), C = e(xt, {
|
|
1496
|
+
...d === void 0 ? {} : { placeholder: d },
|
|
1497
|
+
...f === void 0 ? {} : { dialogTitle: f },
|
|
1498
|
+
...p === void 0 ? {} : { hours: p },
|
|
1499
|
+
...m === void 0 ? {} : { minutes: m },
|
|
1500
|
+
...h === void 0 ? {} : { seconds: h },
|
|
1501
|
+
...g === void 0 ? {} : { now: g },
|
|
1502
|
+
..._ === void 0 ? {} : { done: _ },
|
|
1503
|
+
...x ?? {}
|
|
1504
|
+
}), w = I((e, t) => {
|
|
1505
|
+
let n = $(e ?? "") ?? 0;
|
|
1506
|
+
return v === "12" ? {
|
|
1507
|
+
hours: Q(n > 12 ? 12 : St(n === 0 ? 12 : n, 1, 12)),
|
|
1508
|
+
meridiem: t
|
|
1509
|
+
} : {
|
|
1510
|
+
hours: Q(n > 24 ? 24 : St(n, 0, 24)),
|
|
1511
|
+
meridiem: t
|
|
1512
|
+
};
|
|
1513
|
+
}, [v]), T = I((e) => {
|
|
1514
|
+
let t = $(e ?? "") ?? 0;
|
|
1515
|
+
return t > 59 && (t = 0), t = wt(St(t, 0, 59), y), Q(t);
|
|
1516
|
+
}, [y]), E = I((e) => {
|
|
1517
|
+
let t = $(e ?? "") ?? 0;
|
|
1518
|
+
return t > 59 && (t = 0), t = St(t, 0, 59), Q(t);
|
|
1519
|
+
}, []), O = I((e, t, n, r) => {
|
|
1520
|
+
let i = $(e) ?? 0, a = $(t) ?? 0;
|
|
1521
|
+
a > 59 && (a = 0), a = wt(St(a, 0, 59), y);
|
|
1522
|
+
let o = b ? $(n) ?? 0 : 0;
|
|
1523
|
+
if (o > 59 && (o = 0), o = b ? St(o, 0, 59) : 0, v === "12") {
|
|
1524
|
+
let e = i > 12 ? 12 : St(i === 0 ? 12 : i, 1, 12);
|
|
1525
|
+
return `${Q(r === "AM" ? e === 12 ? 0 : e : e === 12 ? 12 : e + 12)}:${Q(a)}:${Q(o)}`;
|
|
1526
|
+
}
|
|
1527
|
+
return `${Q(i > 24 ? 24 : St(i, 0, 24))}:${Q(a)}:${Q(o)}`;
|
|
1528
|
+
}, [
|
|
1529
|
+
v,
|
|
1530
|
+
y,
|
|
1531
|
+
b
|
|
1532
|
+
]), M = I((e) => {
|
|
1533
|
+
let [t = "00", n = "00", r = "00"] = (e ?? "").split(":"), i = b ? r : "00";
|
|
1534
|
+
return {
|
|
1535
|
+
hours: Ct(t),
|
|
1536
|
+
minutes: Ct(n),
|
|
1537
|
+
seconds: Ct(i)
|
|
1538
|
+
};
|
|
1539
|
+
}, [b]), [N, P] = V(!1), [F, G] = V(() => M(a)), [K, q] = V(() => {
|
|
1540
|
+
let [e = "00"] = (a ?? "").split(":");
|
|
1541
|
+
return ($(e) ?? 0) >= 12 ? "PM" : "AM";
|
|
1542
|
+
}), J = B({});
|
|
1543
|
+
L(() => {
|
|
1544
|
+
if (N) return;
|
|
1545
|
+
G(M(a));
|
|
1546
|
+
let [e = "00"] = (a ?? "").split(":");
|
|
1547
|
+
q(($(e) ?? 0) >= 12 ? "PM" : "AM");
|
|
1548
|
+
}, [
|
|
1549
|
+
N,
|
|
1550
|
+
M,
|
|
1551
|
+
a
|
|
1552
|
+
]);
|
|
1553
|
+
let X = (e, t) => {
|
|
1554
|
+
let n = Ct(t);
|
|
1555
|
+
G((t) => ({
|
|
1556
|
+
...t,
|
|
1557
|
+
[e]: n
|
|
1558
|
+
})), J.current[e] && window.clearTimeout(J.current[e]), J.current[e] = window.setTimeout(() => {
|
|
1559
|
+
G((t) => {
|
|
1560
|
+
let n = { ...t };
|
|
1561
|
+
if (e === "hours") {
|
|
1562
|
+
let e = (n.hours ?? "").trim();
|
|
1563
|
+
e.length === 1 && (n.hours = `0${e}`), (n.hours ?? "").trim().length === 2 && (n.hours = w(n.hours, K).hours);
|
|
1564
|
+
}
|
|
1565
|
+
if (e === "minutes") {
|
|
1566
|
+
let e = (n.minutes ?? "").trim();
|
|
1567
|
+
e.length === 1 && (n.minutes = `0${e}`), (n.minutes ?? "").trim().length === 2 && (n.minutes = T(n.minutes));
|
|
1568
|
+
}
|
|
1569
|
+
if (e === "seconds") {
|
|
1570
|
+
let e = (n.seconds ?? "").trim();
|
|
1571
|
+
e.length === 1 && (n.seconds = `0${e}`), (n.seconds ?? "").trim().length === 2 && (n.seconds = E(n.seconds));
|
|
1572
|
+
}
|
|
1573
|
+
let r = O(n.hours, n.minutes, n.seconds, K);
|
|
1574
|
+
o?.(r);
|
|
1575
|
+
let [i = "00", a = "00", s = "00"] = r.split(":");
|
|
1576
|
+
return v === "12" ? n.hours = Q(($(i) ?? 0) % 12 || 12) : n.hours = i, n.minutes = a, n.seconds = s, n;
|
|
1577
|
+
});
|
|
1578
|
+
}, 400);
|
|
1579
|
+
}, ee = (e) => {
|
|
1580
|
+
J.current[e] && window.clearTimeout(J.current[e]), G((e) => {
|
|
1581
|
+
let t = { ...e };
|
|
1582
|
+
t.hours = w(t.hours, K).hours, t.minutes = T(t.minutes), t.seconds = E(t.seconds);
|
|
1583
|
+
let n = O(t.hours, t.minutes, t.seconds, K);
|
|
1584
|
+
o?.(n);
|
|
1585
|
+
let [r = "00", i = "00", a = "00"] = n.split(":");
|
|
1586
|
+
return {
|
|
1587
|
+
hours: v === "12" ? Ct(String(($(r) ?? 0) % 12 || 12)) : r,
|
|
1588
|
+
minutes: i,
|
|
1589
|
+
seconds: a
|
|
1590
|
+
};
|
|
1591
|
+
});
|
|
1592
|
+
}, te = z(() => {
|
|
1593
|
+
let e = O(F.hours, F.minutes, F.seconds, K);
|
|
1594
|
+
if (!b) {
|
|
1595
|
+
let [t = "00", n = "00"] = e.split(":");
|
|
1596
|
+
return `${t}:${n}`;
|
|
1597
|
+
}
|
|
1598
|
+
return e;
|
|
1599
|
+
}, [
|
|
1600
|
+
K,
|
|
1601
|
+
O,
|
|
1602
|
+
b,
|
|
1603
|
+
F.hours,
|
|
1604
|
+
F.minutes,
|
|
1605
|
+
F.seconds
|
|
1606
|
+
]);
|
|
1607
|
+
return /* @__PURE__ */ W(k, {
|
|
1608
|
+
open: N,
|
|
1609
|
+
onOpenChange: P,
|
|
1610
|
+
children: [/* @__PURE__ */ U(A, {
|
|
1611
|
+
render: (e) => /* @__PURE__ */ U(s, {
|
|
1612
|
+
...e,
|
|
1613
|
+
id: S,
|
|
1614
|
+
variant: "secondary",
|
|
1615
|
+
buttonStyle: "outline",
|
|
1616
|
+
"aria-expanded": N,
|
|
1617
|
+
"aria-invalid": c,
|
|
1618
|
+
disabled: u,
|
|
1619
|
+
className: n("time-picker--component", D, "w-full justify-between text-left", !a && "!text-muted-foreground", e.className, t),
|
|
1620
|
+
children: e.children
|
|
1621
|
+
}),
|
|
1622
|
+
children: /* @__PURE__ */ W("div", {
|
|
1623
|
+
className: "flex items-center gap-2",
|
|
1624
|
+
children: [/* @__PURE__ */ U(Y, { className: "h-4 w-4" }), /* @__PURE__ */ U("span", { children: te || C.placeholder })]
|
|
1625
|
+
})
|
|
1626
|
+
}), /* @__PURE__ */ U(j, {
|
|
1627
|
+
className: "w-auto p-4",
|
|
1628
|
+
align: "start",
|
|
1629
|
+
children: /* @__PURE__ */ W("div", {
|
|
1630
|
+
className: "space-y-4",
|
|
1631
|
+
children: [
|
|
1632
|
+
/* @__PURE__ */ U(r, {
|
|
1633
|
+
tag: "div",
|
|
1634
|
+
weight: "medium",
|
|
1635
|
+
align: "center",
|
|
1636
|
+
children: C.dialogTitle
|
|
1637
|
+
}),
|
|
1638
|
+
/* @__PURE__ */ W("div", {
|
|
1639
|
+
className: "flex items-center gap-2",
|
|
1640
|
+
children: [
|
|
1641
|
+
/* @__PURE__ */ W("div", {
|
|
1642
|
+
className: "text-center",
|
|
1643
|
+
children: [/* @__PURE__ */ U(i, {
|
|
1644
|
+
size: "xs",
|
|
1645
|
+
className: "text-muted-foreground",
|
|
1646
|
+
children: C.hours
|
|
1647
|
+
}), /* @__PURE__ */ U(l, {
|
|
1648
|
+
inputMode: "numeric",
|
|
1649
|
+
value: F.hours,
|
|
1650
|
+
onChange: (e) => X("hours", e.target.value),
|
|
1651
|
+
onFocus: (e) => e.currentTarget.select(),
|
|
1652
|
+
onClick: (e) => e.currentTarget.select(),
|
|
1653
|
+
onBlur: () => ee("hours"),
|
|
1654
|
+
placeholder: C.hoursPlaceholder,
|
|
1655
|
+
className: "w-16 text-center"
|
|
1656
|
+
})]
|
|
1657
|
+
}),
|
|
1658
|
+
/* @__PURE__ */ U(r, {
|
|
1659
|
+
tag: "div",
|
|
1660
|
+
className: "text-2xl",
|
|
1661
|
+
children: ":"
|
|
1662
|
+
}),
|
|
1663
|
+
/* @__PURE__ */ W("div", {
|
|
1664
|
+
className: "text-center",
|
|
1665
|
+
children: [/* @__PURE__ */ U(i, {
|
|
1666
|
+
size: "xs",
|
|
1667
|
+
className: "text-muted-foreground",
|
|
1668
|
+
children: C.minutes
|
|
1669
|
+
}), /* @__PURE__ */ U(l, {
|
|
1670
|
+
inputMode: "numeric",
|
|
1671
|
+
value: F.minutes,
|
|
1672
|
+
onChange: (e) => X("minutes", e.target.value),
|
|
1673
|
+
onFocus: (e) => e.currentTarget.select(),
|
|
1674
|
+
onClick: (e) => e.currentTarget.select(),
|
|
1675
|
+
onBlur: () => ee("minutes"),
|
|
1676
|
+
placeholder: C.minutesPlaceholder,
|
|
1677
|
+
className: "w-16 text-center"
|
|
1678
|
+
})]
|
|
1679
|
+
}),
|
|
1680
|
+
!!b && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(r, {
|
|
1681
|
+
tag: "div",
|
|
1682
|
+
className: "text-2xl",
|
|
1683
|
+
children: ":"
|
|
1684
|
+
}), /* @__PURE__ */ W("div", {
|
|
1685
|
+
className: "text-center",
|
|
1686
|
+
children: [/* @__PURE__ */ U(i, {
|
|
1687
|
+
size: "xs",
|
|
1688
|
+
className: "text-muted-foreground",
|
|
1689
|
+
children: C.seconds
|
|
1690
|
+
}), /* @__PURE__ */ U(l, {
|
|
1691
|
+
inputMode: "numeric",
|
|
1692
|
+
value: F.seconds,
|
|
1693
|
+
onChange: (e) => X("seconds", e.target.value),
|
|
1694
|
+
onFocus: (e) => e.currentTarget.select(),
|
|
1695
|
+
onClick: (e) => e.currentTarget.select(),
|
|
1696
|
+
onBlur: () => ee("seconds"),
|
|
1697
|
+
placeholder: C.secondsPlaceholder,
|
|
1698
|
+
className: "w-16 text-center"
|
|
1699
|
+
})]
|
|
1700
|
+
})] }),
|
|
1701
|
+
v === "12" && /* @__PURE__ */ W("div", {
|
|
1702
|
+
className: "flex items-end gap-1 pb-0.5",
|
|
1703
|
+
children: [/* @__PURE__ */ U(s, {
|
|
1704
|
+
type: "button",
|
|
1705
|
+
variant: K === "AM" ? "primary" : "secondary",
|
|
1706
|
+
buttonStyle: K === "AM" ? "solid" : "outline",
|
|
1707
|
+
onClick: () => q("AM"),
|
|
1708
|
+
children: C.am
|
|
1709
|
+
}), /* @__PURE__ */ U(s, {
|
|
1710
|
+
type: "button",
|
|
1711
|
+
variant: K === "PM" ? "primary" : "secondary",
|
|
1712
|
+
buttonStyle: K === "PM" ? "solid" : "outline",
|
|
1713
|
+
onClick: () => q("PM"),
|
|
1714
|
+
children: C.pm
|
|
1715
|
+
})]
|
|
1716
|
+
})
|
|
1717
|
+
]
|
|
1718
|
+
}),
|
|
1719
|
+
/* @__PURE__ */ W("div", {
|
|
1720
|
+
className: "flex gap-2",
|
|
1721
|
+
children: [/* @__PURE__ */ U(s, {
|
|
1722
|
+
variant: "secondary",
|
|
1723
|
+
buttonStyle: "outline",
|
|
1724
|
+
className: "flex-1",
|
|
1725
|
+
onClick: () => {
|
|
1726
|
+
let e = /* @__PURE__ */ new Date(), t = {
|
|
1727
|
+
hours: String(v === "12" ? e.getHours() % 12 || 12 : e.getHours()),
|
|
1728
|
+
minutes: String(e.getMinutes()),
|
|
1729
|
+
seconds: ""
|
|
1730
|
+
};
|
|
1731
|
+
G(t), q(e.getHours() >= 12 ? "PM" : "AM"), o?.(O(t.hours, t.minutes, t.seconds, e.getHours() >= 12 ? "PM" : "AM"));
|
|
1732
|
+
},
|
|
1733
|
+
children: C.now
|
|
1734
|
+
}), /* @__PURE__ */ U(s, {
|
|
1735
|
+
variant: "primary",
|
|
1736
|
+
buttonStyle: "solid",
|
|
1737
|
+
className: "flex-1",
|
|
1738
|
+
onClick: () => {
|
|
1739
|
+
o?.(O(F.hours, F.minutes, F.seconds, K)), P(!1);
|
|
1740
|
+
},
|
|
1741
|
+
children: C.done
|
|
1742
|
+
})]
|
|
1743
|
+
})
|
|
1744
|
+
]
|
|
1745
|
+
})
|
|
1746
|
+
})]
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
Tt.displayName = "TimePicker";
|
|
1750
|
+
//#endregion
|
|
1751
|
+
//#region src/hooks/use-files.ts
|
|
1752
|
+
var Et = (e) => {
|
|
1753
|
+
if (e === 0) return "0 Bytes";
|
|
1754
|
+
let t = 1024, n = [
|
|
1755
|
+
"Bytes",
|
|
1756
|
+
"KB",
|
|
1757
|
+
"MB",
|
|
1758
|
+
"GB",
|
|
1759
|
+
"TB"
|
|
1760
|
+
], r = Math.floor(Math.log(e) / Math.log(t));
|
|
1761
|
+
return `${(e / t ** r).toFixed(2)} ${n[r]}`;
|
|
1762
|
+
}, Dt = 0, Ot = () => `${Date.now().toString(36)}-${(Dt++).toString(36)}`, kt = (e) => {
|
|
1763
|
+
let [t, n] = V([]), [r, i] = V({}), a = I(Et, []), o = I((t) => {
|
|
1764
|
+
if (e?.minSize !== void 0 && t.size < e.minSize) return `Size (${Et(t.size)}) is smaller than minimum (${Et(e.minSize)}).`;
|
|
1765
|
+
if (e?.maxSize !== void 0 && t.size > e.maxSize) return `Size (${Et(t.size)}) exceeds maximum (${Et(e.maxSize)}).`;
|
|
1766
|
+
let n = t.name.split(".").pop()?.toLowerCase() || "";
|
|
1767
|
+
if (e?.allowedExtensions && !e.allowedExtensions.map((e) => e.toLowerCase()).includes(n)) return `Extension (.${n}) is not allowed.`;
|
|
1768
|
+
if (e?.customValidator) {
|
|
1769
|
+
let n = e.customValidator(t);
|
|
1770
|
+
if (n !== !0) return typeof n == "string" ? n : "Custom validation failed.";
|
|
1771
|
+
}
|
|
1772
|
+
return null;
|
|
1773
|
+
}, [e]), s = I((t, r = !1) => {
|
|
1774
|
+
let a = Array.isArray(t) ? t : Array.from(t), s = {};
|
|
1775
|
+
n((t) => {
|
|
1776
|
+
let n = r ? [] : [...t];
|
|
1777
|
+
return a.forEach((t) => {
|
|
1778
|
+
let r = t.name.split(".").pop()?.toLowerCase() || "";
|
|
1779
|
+
if (n.some((e) => e.name === t.name && e.size === t.size && e.extension === r)) return;
|
|
1780
|
+
let i = o(t);
|
|
1781
|
+
if (i) {
|
|
1782
|
+
s[t.name] = i;
|
|
1783
|
+
return;
|
|
1784
|
+
}
|
|
1785
|
+
if (e?.maxFiles !== void 0 && n.length + 1 > e.maxFiles) {
|
|
1786
|
+
s[t.name] = `Cannot exceed max files limit of ${e.maxFiles}.`;
|
|
1787
|
+
return;
|
|
1788
|
+
}
|
|
1789
|
+
let a = {
|
|
1790
|
+
id: Ot(),
|
|
1791
|
+
file: t,
|
|
1792
|
+
name: t.name,
|
|
1793
|
+
size: t.size,
|
|
1794
|
+
formattedSize: Et(t.size),
|
|
1795
|
+
type: t.type,
|
|
1796
|
+
extension: r,
|
|
1797
|
+
lastModified: t.lastModified
|
|
1798
|
+
};
|
|
1799
|
+
n.push(a);
|
|
1800
|
+
}), n;
|
|
1801
|
+
}), i(s);
|
|
1802
|
+
}, [e?.maxFiles, o]);
|
|
1803
|
+
return {
|
|
1804
|
+
files: t,
|
|
1805
|
+
addFiles: I((e) => s(e, !1), [s]),
|
|
1806
|
+
setFiles: I((e) => s(e, !0), [s]),
|
|
1807
|
+
remove: I((e) => {
|
|
1808
|
+
n((t) => t.filter((t) => t.id !== e));
|
|
1809
|
+
}, []),
|
|
1810
|
+
removeAll: I(() => {
|
|
1811
|
+
n((e) => e.length === 0 ? e : []), i({});
|
|
1812
|
+
}, []),
|
|
1813
|
+
formatSize: a,
|
|
1814
|
+
validationErrors: r
|
|
1815
|
+
};
|
|
1816
|
+
}, At = {
|
|
1817
|
+
instruction: "Drag a file here or click to browse",
|
|
1818
|
+
helper: "",
|
|
1819
|
+
browse: "Browse files",
|
|
1820
|
+
remove: "Remove"
|
|
1821
|
+
};
|
|
1822
|
+
function jt({ accept: t, multiple: i = !1, value: a, onChange: o, onChangeFiles: c, disabled: l, invalid: u, instructionText: d, browseButtonText: f, removeButtonText: p, helperText: m, strings: h }, g) {
|
|
1823
|
+
let _ = e(At, {
|
|
1824
|
+
...d === void 0 ? {} : { instruction: d },
|
|
1825
|
+
...m === void 0 ? {} : { helper: m },
|
|
1826
|
+
...f === void 0 ? {} : { browse: f },
|
|
1827
|
+
...p === void 0 ? {} : { remove: p },
|
|
1828
|
+
...h
|
|
1829
|
+
}), { files: v, setFiles: y, remove: b, removeAll: x, validationErrors: S } = kt({ maxFiles: i ? void 0 : 1 }), C = B(null), [w, T] = V(!1);
|
|
1830
|
+
L(() => {
|
|
1831
|
+
if (i) {
|
|
1832
|
+
Array.isArray(a) && a.length > 0 ? y(a) : a || x();
|
|
1833
|
+
return;
|
|
1834
|
+
}
|
|
1835
|
+
a instanceof File ? y([a]) : a || x();
|
|
1836
|
+
}, [a, i]);
|
|
1837
|
+
let E = v[0], D = E?.name ?? (a instanceof File ? a.name : ""), O = E?.formattedSize ?? (a instanceof File ? `${Math.round(a.size / 1024 * 100) / 100} KB` : ""), k = i && v.length > 0, A = !i && D.length > 0, j = I(() => {
|
|
1838
|
+
l || C.current?.click();
|
|
1839
|
+
}, [l]), M = I((e) => {
|
|
1840
|
+
if (!e || e.length === 0) {
|
|
1841
|
+
x(), i ? c?.([]) : o?.(void 0);
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1844
|
+
let t = Array.from(e);
|
|
1845
|
+
y(e), i ? c?.(t) : o?.(t[0]);
|
|
1846
|
+
}, [
|
|
1847
|
+
i,
|
|
1848
|
+
o,
|
|
1849
|
+
c,
|
|
1850
|
+
x,
|
|
1851
|
+
y
|
|
1852
|
+
]), N = I((e) => {
|
|
1853
|
+
let t = e.target.files;
|
|
1854
|
+
if (!t || t.length === 0) {
|
|
1855
|
+
C.current && (C.current.value = "");
|
|
1856
|
+
return;
|
|
1857
|
+
}
|
|
1858
|
+
M(t), C.current && (C.current.value = "");
|
|
1859
|
+
}, [M]), P = I(() => {
|
|
1860
|
+
E && b(E.id), C.current && (C.current.value = ""), o?.(void 0);
|
|
1861
|
+
}, [
|
|
1862
|
+
o,
|
|
1863
|
+
b,
|
|
1864
|
+
E
|
|
1865
|
+
]), F = I((e) => {
|
|
1866
|
+
let t = v.filter((t) => t.id !== e).map((e) => e.file);
|
|
1867
|
+
b(e), c?.(t), C.current && (C.current.value = "");
|
|
1868
|
+
}, [
|
|
1869
|
+
v,
|
|
1870
|
+
c,
|
|
1871
|
+
b
|
|
1872
|
+
]), R = I((e) => {
|
|
1873
|
+
e.preventDefault(), e.stopPropagation();
|
|
1874
|
+
}, []), H = I((e) => {
|
|
1875
|
+
R(e), l || T(!0);
|
|
1876
|
+
}, [l, R]), G = I((e) => {
|
|
1877
|
+
R(e), T(!1);
|
|
1878
|
+
}, [R]), K = I((e) => {
|
|
1879
|
+
if (R(e), T(!1), l) return;
|
|
1880
|
+
let t = e.dataTransfer?.files;
|
|
1881
|
+
!t || t.length === 0 || (M(t), C.current && (C.current.value = ""));
|
|
1882
|
+
}, [
|
|
1883
|
+
l,
|
|
1884
|
+
M,
|
|
1885
|
+
R
|
|
1886
|
+
]), q = z(() => n("relative flex min-h-[180px] flex-col items-center justify-center gap-4 rounded-xl border border-dashed px-6 py-10 text-center transition-colors duration-150", u ? "border-destructive" : "border-muted-foreground/60", "bg-muted/40", "hover:border-primary hover:bg-primary/5 hover:text-primary", l ? "cursor-not-allowed opacity-50 hover:border-muted-foreground/60 hover:bg-muted/40 hover:text-muted-foreground" : "", !l && w ? "border-primary bg-primary/10 text-primary" : ""), [
|
|
1887
|
+
l,
|
|
1888
|
+
w,
|
|
1889
|
+
u
|
|
1890
|
+
]);
|
|
1891
|
+
return /* @__PURE__ */ W("div", {
|
|
1892
|
+
className: n("file-upload--component", "space-y-3"),
|
|
1893
|
+
children: [
|
|
1894
|
+
/* @__PURE__ */ W("div", {
|
|
1895
|
+
role: "button",
|
|
1896
|
+
tabIndex: l ? -1 : 0,
|
|
1897
|
+
className: q,
|
|
1898
|
+
onClick: (e) => {
|
|
1899
|
+
e.defaultPrevented || j();
|
|
1900
|
+
},
|
|
1901
|
+
onKeyDown: (e) => {
|
|
1902
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), j());
|
|
1903
|
+
},
|
|
1904
|
+
onDragEnter: H,
|
|
1905
|
+
onDragOver: H,
|
|
1906
|
+
onDragLeave: G,
|
|
1907
|
+
onDrop: K,
|
|
1908
|
+
"aria-disabled": l,
|
|
1909
|
+
"aria-invalid": u || void 0,
|
|
1910
|
+
children: [
|
|
1911
|
+
/* @__PURE__ */ U("input", {
|
|
1912
|
+
ref: (e) => {
|
|
1913
|
+
C.current = e, typeof g == "function" ? g(e) : g && (g.current = e);
|
|
1914
|
+
},
|
|
1915
|
+
type: "file",
|
|
1916
|
+
className: "hidden",
|
|
1917
|
+
accept: t,
|
|
1918
|
+
multiple: i,
|
|
1919
|
+
onChange: N,
|
|
1920
|
+
onClick: (e) => {
|
|
1921
|
+
e.stopPropagation();
|
|
1922
|
+
},
|
|
1923
|
+
disabled: l
|
|
1924
|
+
}),
|
|
1925
|
+
/* @__PURE__ */ U("div", {
|
|
1926
|
+
className: "flex h-12 w-12 items-center justify-center rounded-full bg-primary/10 text-primary",
|
|
1927
|
+
children: /* @__PURE__ */ U(ue, {
|
|
1928
|
+
className: "h-6 w-6",
|
|
1929
|
+
"aria-hidden": "true"
|
|
1930
|
+
})
|
|
1931
|
+
}),
|
|
1932
|
+
/* @__PURE__ */ W("div", {
|
|
1933
|
+
className: "space-y-1",
|
|
1934
|
+
children: [/* @__PURE__ */ U(r, {
|
|
1935
|
+
weight: "medium",
|
|
1936
|
+
children: _.instruction
|
|
1937
|
+
}), !!_.helper && /* @__PURE__ */ U(r, {
|
|
1938
|
+
size: "xs",
|
|
1939
|
+
type: "secondary",
|
|
1940
|
+
children: _.helper
|
|
1941
|
+
})]
|
|
1942
|
+
}),
|
|
1943
|
+
/* @__PURE__ */ U(s, {
|
|
1944
|
+
type: "button",
|
|
1945
|
+
variant: "secondary",
|
|
1946
|
+
buttonStyle: "outline",
|
|
1947
|
+
onClick: (e) => {
|
|
1948
|
+
e.preventDefault(), e.stopPropagation(), j();
|
|
1949
|
+
},
|
|
1950
|
+
disabled: l,
|
|
1951
|
+
children: _.browse
|
|
1952
|
+
})
|
|
1953
|
+
]
|
|
1954
|
+
}),
|
|
1955
|
+
!!k && /* @__PURE__ */ U("div", {
|
|
1956
|
+
className: "space-y-2",
|
|
1957
|
+
children: v.map((e) => /* @__PURE__ */ W("div", {
|
|
1958
|
+
className: "flex items-center gap-3 border rounded-md p-3 bg-card",
|
|
1959
|
+
children: [
|
|
1960
|
+
/* @__PURE__ */ U("div", {
|
|
1961
|
+
className: "shrink-0 h-10 w-10 rounded bg-muted flex items-center justify-center",
|
|
1962
|
+
children: /* @__PURE__ */ U(te, { className: "h-5 w-5 text-muted-foreground" })
|
|
1963
|
+
}),
|
|
1964
|
+
/* @__PURE__ */ W("div", {
|
|
1965
|
+
className: "flex-1 min-w-0",
|
|
1966
|
+
children: [/* @__PURE__ */ U(r, {
|
|
1967
|
+
tag: "div",
|
|
1968
|
+
weight: "medium",
|
|
1969
|
+
className: "truncate",
|
|
1970
|
+
title: e.name,
|
|
1971
|
+
children: e.name
|
|
1972
|
+
}), /* @__PURE__ */ U(r, {
|
|
1973
|
+
tag: "div",
|
|
1974
|
+
size: "xs",
|
|
1975
|
+
type: "secondary",
|
|
1976
|
+
children: e.formattedSize
|
|
1977
|
+
})]
|
|
1978
|
+
}),
|
|
1979
|
+
/* @__PURE__ */ U(s, {
|
|
1980
|
+
type: "button",
|
|
1981
|
+
variant: "error",
|
|
1982
|
+
buttonStyle: "ghost",
|
|
1983
|
+
size: "xs",
|
|
1984
|
+
icon: ce,
|
|
1985
|
+
onClick: () => F(e.id),
|
|
1986
|
+
children: _.remove
|
|
1987
|
+
})
|
|
1988
|
+
]
|
|
1989
|
+
}, e.id))
|
|
1990
|
+
}),
|
|
1991
|
+
!!A && /* @__PURE__ */ W("div", {
|
|
1992
|
+
className: "flex items-center gap-3 border rounded-md p-3 bg-card",
|
|
1993
|
+
children: [
|
|
1994
|
+
/* @__PURE__ */ U("div", {
|
|
1995
|
+
className: "shrink-0 h-10 w-10 rounded bg-muted flex items-center justify-center",
|
|
1996
|
+
children: /* @__PURE__ */ U(te, { className: "h-5 w-5 text-muted-foreground" })
|
|
1997
|
+
}),
|
|
1998
|
+
/* @__PURE__ */ W("div", {
|
|
1999
|
+
className: "flex-1 min-w-0",
|
|
2000
|
+
children: [/* @__PURE__ */ U(r, {
|
|
2001
|
+
tag: "div",
|
|
2002
|
+
weight: "medium",
|
|
2003
|
+
className: "truncate",
|
|
2004
|
+
title: D,
|
|
2005
|
+
children: D
|
|
2006
|
+
}), /* @__PURE__ */ U(r, {
|
|
2007
|
+
tag: "div",
|
|
2008
|
+
size: "xs",
|
|
2009
|
+
type: "secondary",
|
|
2010
|
+
children: O
|
|
2011
|
+
})]
|
|
2012
|
+
}),
|
|
2013
|
+
/* @__PURE__ */ U(s, {
|
|
2014
|
+
type: "button",
|
|
2015
|
+
variant: "error",
|
|
2016
|
+
buttonStyle: "ghost",
|
|
2017
|
+
size: "xs",
|
|
2018
|
+
icon: ce,
|
|
2019
|
+
onClick: P,
|
|
2020
|
+
children: _.remove
|
|
2021
|
+
})
|
|
2022
|
+
]
|
|
2023
|
+
}),
|
|
2024
|
+
Object.keys(S).length > 0 && /* @__PURE__ */ U("ul", {
|
|
2025
|
+
className: "space-y-1.5",
|
|
2026
|
+
children: Object.entries(S).map(([e, t]) => /* @__PURE__ */ W("li", {
|
|
2027
|
+
role: "alert",
|
|
2028
|
+
className: "flex items-start gap-2 rounded-md border border-destructive/30 bg-destructive/5 px-3 py-2",
|
|
2029
|
+
children: [/* @__PURE__ */ U("span", {
|
|
2030
|
+
"aria-hidden": "true",
|
|
2031
|
+
className: "mt-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-destructive/15 text-destructive",
|
|
2032
|
+
children: /* @__PURE__ */ U("span", { className: "size-1.5 rounded-full bg-destructive" })
|
|
2033
|
+
}), /* @__PURE__ */ W("div", {
|
|
2034
|
+
className: "min-w-0 flex-1",
|
|
2035
|
+
children: [/* @__PURE__ */ U(r, {
|
|
2036
|
+
size: "xs",
|
|
2037
|
+
weight: "medium",
|
|
2038
|
+
className: "truncate text-destructive",
|
|
2039
|
+
children: e
|
|
2040
|
+
}), /* @__PURE__ */ U(r, {
|
|
2041
|
+
size: "xs",
|
|
2042
|
+
type: "secondary",
|
|
2043
|
+
className: "text-destructive/80",
|
|
2044
|
+
children: t
|
|
2045
|
+
})]
|
|
2046
|
+
})]
|
|
2047
|
+
}, e))
|
|
2048
|
+
})
|
|
2049
|
+
]
|
|
2050
|
+
});
|
|
2051
|
+
}
|
|
2052
|
+
var Mt = N.forwardRef(jt);
|
|
2053
|
+
Mt.displayName = "FileUpload";
|
|
2054
|
+
//#endregion
|
|
2055
|
+
//#region src/components/base/forms/fields/image-upload.tsx
|
|
2056
|
+
var Nt = 2, Pt = {
|
|
2057
|
+
square: "aspect-square",
|
|
2058
|
+
standard: "aspect-[4/3]",
|
|
2059
|
+
widescreen: "aspect-[16/9]",
|
|
2060
|
+
portrait: "aspect-[9/16]"
|
|
2061
|
+
}, Ft = {
|
|
2062
|
+
select: "Select image",
|
|
2063
|
+
change: "Change image",
|
|
2064
|
+
remove: "Remove",
|
|
2065
|
+
noSelection: "No file selected yet.",
|
|
2066
|
+
keepCurrent: "Current image stays until you upload a new one.",
|
|
2067
|
+
supportsTemplate: "Supports {ext} files up to {size} MB.",
|
|
2068
|
+
moreFiles: (e) => `+ ${e} more file${e === 1 ? "" : "s"}`
|
|
2069
|
+
};
|
|
2070
|
+
function It({ accept: t = ".png,.jpg,.jpeg,.gif,.svg", multiple: i = !1, value: a, onChange: o, disabled: c, defaultPreviewUrl: l, aspectRatio: u = "square", fit: d = "cover", maxWidth: f, layout: p = "stacked", invalid: m, selectButtonText: h, changeButtonText: g, removeButtonText: _, strings: v }, y) {
|
|
2071
|
+
let b = e(Ft, {
|
|
2072
|
+
...h === void 0 ? {} : { select: h },
|
|
2073
|
+
...g === void 0 ? {} : { change: g },
|
|
2074
|
+
..._ === void 0 ? {} : { remove: _ },
|
|
2075
|
+
...v
|
|
2076
|
+
}), x = R(), S = B(null), C = z(() => {
|
|
2077
|
+
if (!t) return [
|
|
2078
|
+
"png",
|
|
2079
|
+
"jpg",
|
|
2080
|
+
"jpeg",
|
|
2081
|
+
"gif",
|
|
2082
|
+
"svg"
|
|
2083
|
+
];
|
|
2084
|
+
let e = t.split(",").map((e) => e.trim()).map((e) => {
|
|
2085
|
+
if (!e) return null;
|
|
2086
|
+
if (e.startsWith(".")) return e.slice(1).toLowerCase();
|
|
2087
|
+
if (e.includes("/")) {
|
|
2088
|
+
let t = e.split("/")[1] ?? "";
|
|
2089
|
+
return t === "*" || t.length === 0 ? null : t.replace(/\+.*/, "").toLowerCase();
|
|
2090
|
+
}
|
|
2091
|
+
return e.toLowerCase();
|
|
2092
|
+
}).filter((e) => !!e);
|
|
2093
|
+
if (e.length !== 0) return Array.from(new Set(e));
|
|
2094
|
+
}, [t]), { files: w, setFiles: T, remove: E, removeAll: D, validationErrors: O } = kt(z(() => ({
|
|
2095
|
+
maxFiles: i ? void 0 : 1,
|
|
2096
|
+
allowedExtensions: C
|
|
2097
|
+
}), [i, C]));
|
|
2098
|
+
L(() => {
|
|
2099
|
+
a ? T([a]) : (D(), S.current && (S.current.value = ""));
|
|
2100
|
+
}, [
|
|
2101
|
+
a,
|
|
2102
|
+
T,
|
|
2103
|
+
D
|
|
2104
|
+
]);
|
|
2105
|
+
let k = w[0], A = k ? b.change : b.select, [j, M] = V(void 0), N = z(() => !C || C.length === 0 ? null : C.map((e) => e.toUpperCase()).join(", "), [C]);
|
|
2106
|
+
L(() => {
|
|
2107
|
+
let e = k?.file ?? a;
|
|
2108
|
+
if (!e) {
|
|
2109
|
+
M(void 0);
|
|
2110
|
+
return;
|
|
2111
|
+
}
|
|
2112
|
+
let t = URL.createObjectURL(e);
|
|
2113
|
+
return M(t), () => URL.revokeObjectURL(t);
|
|
2114
|
+
}, [k, a]);
|
|
2115
|
+
let P = j ?? l, F = !!P, H = Pt[u] ?? Pt.square, G = d === "contain" ? "object-contain p-3" : "object-cover", K = f ? typeof f == "number" ? `${f}px` : f : "240px", q = p === "inline" ? void 0 : { maxWidth: K }, J = p === "inline" ? {
|
|
2116
|
+
maxWidth: f ? K : "185px",
|
|
2117
|
+
width: "100%"
|
|
2118
|
+
} : void 0, Y = I((e) => {
|
|
2119
|
+
let t = e.target.files;
|
|
2120
|
+
if (!t || t.length === 0) {
|
|
2121
|
+
D(), o?.(void 0), S.current && (S.current.value = "");
|
|
2122
|
+
return;
|
|
2123
|
+
}
|
|
2124
|
+
T(t), o?.(t[0]);
|
|
2125
|
+
}, [
|
|
2126
|
+
D,
|
|
2127
|
+
T,
|
|
2128
|
+
o
|
|
2129
|
+
]), X = I(() => {
|
|
2130
|
+
c || S.current?.click();
|
|
2131
|
+
}, [c]), ee = I(() => {
|
|
2132
|
+
k && E(k.id), o?.(void 0), S.current && (S.current.value = "");
|
|
2133
|
+
}, [
|
|
2134
|
+
k,
|
|
2135
|
+
E,
|
|
2136
|
+
o
|
|
2137
|
+
]);
|
|
2138
|
+
return /* @__PURE__ */ W("div", {
|
|
2139
|
+
className: n("image-upload--component", "space-y-3"),
|
|
2140
|
+
style: q,
|
|
2141
|
+
children: [
|
|
2142
|
+
/* @__PURE__ */ U("input", {
|
|
2143
|
+
ref: (e) => {
|
|
2144
|
+
S.current = e, typeof y == "function" ? y(e) : y && (y.current = e);
|
|
2145
|
+
},
|
|
2146
|
+
id: x,
|
|
2147
|
+
type: "file",
|
|
2148
|
+
className: "sr-only",
|
|
2149
|
+
accept: t,
|
|
2150
|
+
multiple: i,
|
|
2151
|
+
disabled: c,
|
|
2152
|
+
onChange: Y
|
|
2153
|
+
}),
|
|
2154
|
+
/* @__PURE__ */ W("div", {
|
|
2155
|
+
className: n(p === "inline" ? "flex items-start gap-4" : "space-y-3"),
|
|
2156
|
+
children: [/* @__PURE__ */ U("div", {
|
|
2157
|
+
className: n("relative overflow-hidden rounded-md border transition-colors", p === "inline" ? "flex-shrink-0 w-full" : "w-full", H, F ? "border-border bg-muted/20" : n("border-dashed bg-background text-muted-foreground dark:bg-foreground", m ? "border-destructive" : "border-muted-foreground/60")),
|
|
2158
|
+
style: J,
|
|
2159
|
+
children: F && P ? /* @__PURE__ */ U("img", {
|
|
2160
|
+
src: P,
|
|
2161
|
+
alt: k?.name || "Selected image",
|
|
2162
|
+
className: n("absolute inset-0 h-full w-full", G)
|
|
2163
|
+
}) : /* @__PURE__ */ U("div", {
|
|
2164
|
+
className: "absolute inset-0 flex items-center justify-center",
|
|
2165
|
+
children: /* @__PURE__ */ U(re, {
|
|
2166
|
+
"aria-hidden": !0,
|
|
2167
|
+
className: "h-8 w-8"
|
|
2168
|
+
})
|
|
2169
|
+
})
|
|
2170
|
+
}), /* @__PURE__ */ W("div", {
|
|
2171
|
+
className: n("space-y-2", p === "inline" && "flex-1 min-w-0"),
|
|
2172
|
+
children: [
|
|
2173
|
+
/* @__PURE__ */ W("div", {
|
|
2174
|
+
className: "flex flex-wrap items-center gap-2",
|
|
2175
|
+
children: [/* @__PURE__ */ U(s, {
|
|
2176
|
+
type: "button",
|
|
2177
|
+
variant: "secondary",
|
|
2178
|
+
buttonStyle: "outline",
|
|
2179
|
+
onClick: X,
|
|
2180
|
+
disabled: c,
|
|
2181
|
+
children: A
|
|
2182
|
+
}), !k && !!F && /* @__PURE__ */ U(r, {
|
|
2183
|
+
size: "xs",
|
|
2184
|
+
type: "secondary",
|
|
2185
|
+
children: b.keepCurrent
|
|
2186
|
+
})]
|
|
2187
|
+
}),
|
|
2188
|
+
!!N && /* @__PURE__ */ U(r, {
|
|
2189
|
+
size: "xs",
|
|
2190
|
+
type: "secondary",
|
|
2191
|
+
children: b.supportsTemplate.replace("{ext}", N).replace("{size}", String(Nt))
|
|
2192
|
+
}),
|
|
2193
|
+
!!k && /* @__PURE__ */ W("div", {
|
|
2194
|
+
className: "space-y-1",
|
|
2195
|
+
children: [
|
|
2196
|
+
/* @__PURE__ */ U(r, {
|
|
2197
|
+
weight: "medium",
|
|
2198
|
+
title: k.name,
|
|
2199
|
+
className: "truncate",
|
|
2200
|
+
children: k.name
|
|
2201
|
+
}),
|
|
2202
|
+
/* @__PURE__ */ U(r, {
|
|
2203
|
+
size: "xs",
|
|
2204
|
+
type: "secondary",
|
|
2205
|
+
children: k.formattedSize
|
|
2206
|
+
}),
|
|
2207
|
+
!!i && w.length > 1 && /* @__PURE__ */ U(r, {
|
|
2208
|
+
size: "xs",
|
|
2209
|
+
type: "secondary",
|
|
2210
|
+
children: b.moreFiles(w.length - 1)
|
|
2211
|
+
}),
|
|
2212
|
+
/* @__PURE__ */ U(s, {
|
|
2213
|
+
type: "button",
|
|
2214
|
+
variant: "error",
|
|
2215
|
+
buttonStyle: "ghost",
|
|
2216
|
+
size: "xs",
|
|
2217
|
+
icon: se,
|
|
2218
|
+
onClick: ee,
|
|
2219
|
+
children: b.remove
|
|
2220
|
+
})
|
|
2221
|
+
]
|
|
2222
|
+
}),
|
|
2223
|
+
!k && !F && /* @__PURE__ */ U(r, {
|
|
2224
|
+
size: "xs",
|
|
2225
|
+
type: "secondary",
|
|
2226
|
+
children: b.noSelection
|
|
2227
|
+
})
|
|
2228
|
+
]
|
|
2229
|
+
})]
|
|
2230
|
+
}),
|
|
2231
|
+
Object.keys(O).length > 0 && /* @__PURE__ */ U("div", {
|
|
2232
|
+
className: "space-y-1",
|
|
2233
|
+
children: Object.entries(O).map(([e, t]) => /* @__PURE__ */ W(r, {
|
|
2234
|
+
size: "xs",
|
|
2235
|
+
type: "error",
|
|
2236
|
+
children: [
|
|
2237
|
+
e,
|
|
2238
|
+
": ",
|
|
2239
|
+
t
|
|
2240
|
+
]
|
|
2241
|
+
}, e))
|
|
2242
|
+
})
|
|
2243
|
+
]
|
|
2244
|
+
});
|
|
2245
|
+
}
|
|
2246
|
+
var Lt = N.forwardRef(It);
|
|
2247
|
+
Lt.displayName = "ImageUpload";
|
|
2248
|
+
//#endregion
|
|
2249
|
+
//#region src/components/base/forms/fields/dropzone.tsx
|
|
2250
|
+
var Rt = {
|
|
2251
|
+
instruction: "Drag files here or click to browse",
|
|
2252
|
+
helper: "",
|
|
2253
|
+
dragOver: "Release to upload"
|
|
2254
|
+
}, zt = {
|
|
2255
|
+
compact: {
|
|
2256
|
+
padding: "px-4 py-4",
|
|
2257
|
+
minH: "min-h-[112px]",
|
|
2258
|
+
iconBox: "h-9 w-9",
|
|
2259
|
+
iconSize: "size-4"
|
|
2260
|
+
},
|
|
2261
|
+
base: {
|
|
2262
|
+
padding: "px-6 py-8",
|
|
2263
|
+
minH: "min-h-[180px]",
|
|
2264
|
+
iconBox: "h-12 w-12",
|
|
2265
|
+
iconSize: "size-6"
|
|
2266
|
+
},
|
|
2267
|
+
lg: {
|
|
2268
|
+
padding: "px-8 py-12",
|
|
2269
|
+
minH: "min-h-[260px]",
|
|
2270
|
+
iconBox: "h-14 w-14",
|
|
2271
|
+
iconSize: "size-7"
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
function Bt({ onDrop: t, accept: i, multiple: a = !1, disabled: o = !1, invalid: s = !1, size: c = "base", icon: l, className: u, children: d, strings: f }, p) {
|
|
2275
|
+
let m = e(Rt, f), h = B(null), [g, _] = V(!1), v = zt[c], y = I(() => {
|
|
2276
|
+
o || h.current?.click();
|
|
2277
|
+
}, [o]), b = I((e) => {
|
|
2278
|
+
let n = e.target.files;
|
|
2279
|
+
!n || n.length === 0 || (t(Array.from(n)), h.current && (h.current.value = ""));
|
|
2280
|
+
}, [t]), x = I((e) => {
|
|
2281
|
+
e.preventDefault(), e.stopPropagation(), o || _(!0);
|
|
2282
|
+
}, [o]), S = I((e) => {
|
|
2283
|
+
e.preventDefault(), e.stopPropagation(), _(!1);
|
|
2284
|
+
}, []), C = I((e) => {
|
|
2285
|
+
if (e.preventDefault(), e.stopPropagation(), _(!1), o) return;
|
|
2286
|
+
let n = e.dataTransfer?.files;
|
|
2287
|
+
!n || n.length === 0 || t(Array.from(n));
|
|
2288
|
+
}, [o, t]);
|
|
2289
|
+
return /* @__PURE__ */ W("div", {
|
|
2290
|
+
role: "button",
|
|
2291
|
+
tabIndex: o ? -1 : 0,
|
|
2292
|
+
"aria-disabled": o || void 0,
|
|
2293
|
+
"aria-invalid": s || void 0,
|
|
2294
|
+
onClick: (e) => {
|
|
2295
|
+
e.defaultPrevented || y();
|
|
2296
|
+
},
|
|
2297
|
+
onKeyDown: (e) => {
|
|
2298
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), y());
|
|
2299
|
+
},
|
|
2300
|
+
onDragEnter: x,
|
|
2301
|
+
onDragOver: x,
|
|
2302
|
+
onDragLeave: S,
|
|
2303
|
+
onDrop: C,
|
|
2304
|
+
className: n("dropzone--component", "relative flex flex-col items-center justify-center gap-3 rounded-xl border border-dashed text-center transition-colors duration-150", v.minH, v.padding, s ? "border-destructive" : "border-muted-foreground/40", "bg-muted/30 hover:border-primary hover:bg-primary/5 hover:text-primary", o && "cursor-not-allowed opacity-50 hover:border-muted-foreground/40 hover:bg-muted/30 hover:text-muted-foreground", !o && g && "border-primary bg-primary/10 text-primary", u),
|
|
2305
|
+
children: [
|
|
2306
|
+
/* @__PURE__ */ U("input", {
|
|
2307
|
+
ref: (e) => {
|
|
2308
|
+
h.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
|
|
2309
|
+
},
|
|
2310
|
+
type: "file",
|
|
2311
|
+
className: "hidden",
|
|
2312
|
+
accept: i,
|
|
2313
|
+
multiple: a,
|
|
2314
|
+
disabled: o,
|
|
2315
|
+
onChange: b,
|
|
2316
|
+
onClick: (e) => e.stopPropagation()
|
|
2317
|
+
}),
|
|
2318
|
+
/* @__PURE__ */ U("span", {
|
|
2319
|
+
className: n("inline-flex items-center justify-center rounded-full bg-primary/10 text-primary", v.iconBox),
|
|
2320
|
+
"aria-hidden": "true",
|
|
2321
|
+
children: l ?? /* @__PURE__ */ U(le, { className: v.iconSize })
|
|
2322
|
+
}),
|
|
2323
|
+
/* @__PURE__ */ W("div", {
|
|
2324
|
+
className: "space-y-1",
|
|
2325
|
+
children: [/* @__PURE__ */ U(r, {
|
|
2326
|
+
size: c === "compact" ? "xs" : "sm",
|
|
2327
|
+
weight: "medium",
|
|
2328
|
+
children: g ? m.dragOver : m.instruction
|
|
2329
|
+
}), !!m.helper && /* @__PURE__ */ U(r, {
|
|
2330
|
+
size: "xs",
|
|
2331
|
+
type: "secondary",
|
|
2332
|
+
children: m.helper
|
|
2333
|
+
})]
|
|
2334
|
+
}),
|
|
2335
|
+
!!d && /* @__PURE__ */ U("div", {
|
|
2336
|
+
onClick: (e) => e.stopPropagation(),
|
|
2337
|
+
onKeyDown: (e) => e.stopPropagation(),
|
|
2338
|
+
children: d
|
|
2339
|
+
})
|
|
2340
|
+
]
|
|
2341
|
+
});
|
|
2342
|
+
}
|
|
2343
|
+
var Vt = M.forwardRef(Bt);
|
|
2344
|
+
Vt.displayName = "Dropzone";
|
|
2345
|
+
//#endregion
|
|
2346
|
+
//#region src/components/base/forms/fields/avatar-upload.tsx
|
|
2347
|
+
var Ht = {
|
|
2348
|
+
change: "Change photo",
|
|
2349
|
+
remove: "Remove photo",
|
|
2350
|
+
hint: "Click or drop an image",
|
|
2351
|
+
dragOver: "Drop image to upload"
|
|
2352
|
+
}, Ut = {
|
|
2353
|
+
sm: {
|
|
2354
|
+
box: "size-16",
|
|
2355
|
+
icon: "size-4",
|
|
2356
|
+
remove: "size-5"
|
|
2357
|
+
},
|
|
2358
|
+
base: {
|
|
2359
|
+
box: "size-24",
|
|
2360
|
+
icon: "size-5",
|
|
2361
|
+
remove: "size-6"
|
|
2362
|
+
},
|
|
2363
|
+
lg: {
|
|
2364
|
+
box: "size-32",
|
|
2365
|
+
icon: "size-6",
|
|
2366
|
+
remove: "size-7"
|
|
2367
|
+
}
|
|
2368
|
+
};
|
|
2369
|
+
function Wt({ value: t, onChange: i, defaultPreviewUrl: a, accept: o = ".png,.jpg,.jpeg,.gif,.webp", disabled: s = !1, invalid: c = !1, size: l = "base", className: u, strings: d, initials: f }, p) {
|
|
2370
|
+
let m = e(Ht, d), h = R(), g = B(null), [_, v] = V(!1), y = Ut[l], { files: b, setFiles: x, removeAll: S } = kt({
|
|
2371
|
+
maxFiles: 1,
|
|
2372
|
+
allowedExtensions: z(() => o.split(",").map((e) => e.trim().replace(/^\./, "").toLowerCase()).filter(Boolean), [o])
|
|
2373
|
+
});
|
|
2374
|
+
L(() => {
|
|
2375
|
+
t ? x([t]) : S();
|
|
2376
|
+
}, [t]);
|
|
2377
|
+
let C = b[0], [w, T] = V(void 0);
|
|
2378
|
+
L(() => {
|
|
2379
|
+
let e = C?.file ?? t;
|
|
2380
|
+
if (!e) {
|
|
2381
|
+
T(void 0);
|
|
2382
|
+
return;
|
|
2383
|
+
}
|
|
2384
|
+
let n = URL.createObjectURL(e);
|
|
2385
|
+
return T(n), () => URL.revokeObjectURL(n);
|
|
2386
|
+
}, [C, t]);
|
|
2387
|
+
let E = w ?? a, D = !!E, O = I((e) => {
|
|
2388
|
+
let t = e.target.files;
|
|
2389
|
+
!t || t.length === 0 || (x(t), i?.(t[0]), g.current && (g.current.value = ""));
|
|
2390
|
+
}, [i, x]), k = I(() => {
|
|
2391
|
+
s || g.current?.click();
|
|
2392
|
+
}, [s]), A = I(() => {
|
|
2393
|
+
S(), i?.(void 0), g.current && (g.current.value = "");
|
|
2394
|
+
}, [i, S]), j = (e) => {
|
|
2395
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), k());
|
|
2396
|
+
}, M = I((e) => {
|
|
2397
|
+
e.preventDefault(), e.stopPropagation(), s || v(!0);
|
|
2398
|
+
}, [s]), N = I((e) => {
|
|
2399
|
+
e.preventDefault(), e.stopPropagation(), v(!1);
|
|
2400
|
+
}, []), P = I((e) => {
|
|
2401
|
+
if (e.preventDefault(), e.stopPropagation(), v(!1), s) return;
|
|
2402
|
+
let t = e.dataTransfer?.files;
|
|
2403
|
+
!t || t.length === 0 || (x(t), i?.(t[0]));
|
|
2404
|
+
}, [
|
|
2405
|
+
s,
|
|
2406
|
+
i,
|
|
2407
|
+
x
|
|
2408
|
+
]);
|
|
2409
|
+
return /* @__PURE__ */ W("div", {
|
|
2410
|
+
className: n("avatar-upload--component", "inline-flex flex-col items-center gap-2", u),
|
|
2411
|
+
children: [/* @__PURE__ */ W("div", {
|
|
2412
|
+
role: "button",
|
|
2413
|
+
tabIndex: s ? -1 : 0,
|
|
2414
|
+
"aria-label": m.change,
|
|
2415
|
+
"aria-disabled": s || void 0,
|
|
2416
|
+
"aria-invalid": c || void 0,
|
|
2417
|
+
onClick: k,
|
|
2418
|
+
onKeyDown: j,
|
|
2419
|
+
onDragEnter: M,
|
|
2420
|
+
onDragOver: M,
|
|
2421
|
+
onDragLeave: N,
|
|
2422
|
+
onDrop: P,
|
|
2423
|
+
className: n("group relative flex shrink-0 items-center justify-center overflow-hidden rounded-full", "border border-dashed transition-colors duration-150 outline-none", "focus-visible:ring-2 focus-visible:ring-ring/50", D ? "border-border/60 bg-muted/20" : n("bg-muted/30 hover:border-primary hover:bg-primary/5", c ? "border-destructive" : "border-muted-foreground/40"), s && "cursor-not-allowed opacity-50", !s && _ && "border-primary bg-primary/10", y.box),
|
|
2424
|
+
children: [
|
|
2425
|
+
/* @__PURE__ */ U("input", {
|
|
2426
|
+
id: h,
|
|
2427
|
+
ref: (e) => {
|
|
2428
|
+
g.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
|
|
2429
|
+
},
|
|
2430
|
+
type: "file",
|
|
2431
|
+
className: "sr-only",
|
|
2432
|
+
"aria-label": m.change,
|
|
2433
|
+
accept: o,
|
|
2434
|
+
disabled: s,
|
|
2435
|
+
onChange: O
|
|
2436
|
+
}),
|
|
2437
|
+
D && E ? /* @__PURE__ */ U("img", {
|
|
2438
|
+
src: E,
|
|
2439
|
+
alt: m.change,
|
|
2440
|
+
className: "absolute inset-0 size-full object-cover"
|
|
2441
|
+
}) : f ? /* @__PURE__ */ U(r, {
|
|
2442
|
+
size: l === "lg" ? "lg" : "base",
|
|
2443
|
+
weight: "bold",
|
|
2444
|
+
className: "leading-none",
|
|
2445
|
+
children: f
|
|
2446
|
+
}) : /* @__PURE__ */ U(K, {
|
|
2447
|
+
className: n(y.icon, "text-muted-foreground"),
|
|
2448
|
+
"aria-hidden": "true"
|
|
2449
|
+
}),
|
|
2450
|
+
!s && D && /* @__PURE__ */ U("div", {
|
|
2451
|
+
className: "pointer-events-none absolute inset-0 hidden items-center justify-center bg-foreground/50 text-background backdrop-blur-[1px] group-hover:flex",
|
|
2452
|
+
"aria-hidden": "true",
|
|
2453
|
+
children: /* @__PURE__ */ U(K, { className: y.icon })
|
|
2454
|
+
}),
|
|
2455
|
+
!s && D && /* @__PURE__ */ U("button", {
|
|
2456
|
+
type: "button",
|
|
2457
|
+
"aria-label": m.remove,
|
|
2458
|
+
onClick: (e) => {
|
|
2459
|
+
e.stopPropagation(), A();
|
|
2460
|
+
},
|
|
2461
|
+
className: n("absolute right-0.5 top-0.5 inline-flex items-center justify-center rounded-full bg-card text-foreground shadow ring-1 ring-border", "opacity-0 transition-opacity group-hover:opacity-100 focus-visible:opacity-100", y.remove),
|
|
2462
|
+
children: /* @__PURE__ */ U(Z, { className: "size-3" })
|
|
2463
|
+
}),
|
|
2464
|
+
!s && !D && _ && /* @__PURE__ */ U(r, {
|
|
2465
|
+
size: "xxs",
|
|
2466
|
+
weight: "medium",
|
|
2467
|
+
className: "absolute inset-x-0 bottom-1.5 text-center text-primary",
|
|
2468
|
+
children: m.dragOver
|
|
2469
|
+
})
|
|
2470
|
+
]
|
|
2471
|
+
}), !D && /* @__PURE__ */ U(r, {
|
|
2472
|
+
size: "xs",
|
|
2473
|
+
type: "secondary",
|
|
2474
|
+
children: m.hint
|
|
2475
|
+
})]
|
|
2476
|
+
});
|
|
2477
|
+
}
|
|
2478
|
+
var Gt = M.forwardRef(Wt);
|
|
2479
|
+
Gt.displayName = "AvatarUpload";
|
|
2480
|
+
//#endregion
|
|
2481
|
+
//#region src/components/base/forms/fields/media-gallery.tsx
|
|
2482
|
+
var Kt = {
|
|
2483
|
+
addInstruction: "Drop or click to add images",
|
|
2484
|
+
helper: "",
|
|
2485
|
+
dragOver: "Release to upload",
|
|
2486
|
+
cover: "Cover",
|
|
2487
|
+
removeAria: "Remove image",
|
|
2488
|
+
maxReached: "You have reached the maximum number of images."
|
|
2489
|
+
}, qt = 0, Jt = () => `media-${Date.now().toString(36)}-${(qt++).toString(36)}`;
|
|
2490
|
+
function Yt({ item: e, isFirst: t, disabled: r, onRemove: i, strings: a, tileClassName: o }) {
|
|
2491
|
+
let { attributes: s, listeners: c, setNodeRef: l, transform: u, transition: d, isDragging: f } = Ce({
|
|
2492
|
+
id: e.id,
|
|
2493
|
+
disabled: r
|
|
2494
|
+
});
|
|
2495
|
+
return /* @__PURE__ */ W("div", {
|
|
2496
|
+
ref: l,
|
|
2497
|
+
style: {
|
|
2498
|
+
transform: Te.Transform.toString(u),
|
|
2499
|
+
transition: d
|
|
2500
|
+
},
|
|
2501
|
+
className: n("media-gallery--component", "group relative aspect-square overflow-hidden rounded-lg border border-border/60 bg-muted/30", "cursor-grab active:cursor-grabbing", f && "z-10 shadow-lg ring-2 ring-primary/40", r && "pointer-events-none opacity-50", o),
|
|
2502
|
+
...s,
|
|
2503
|
+
...c,
|
|
2504
|
+
children: [
|
|
2505
|
+
/* @__PURE__ */ U("img", {
|
|
2506
|
+
src: e.previewUrl,
|
|
2507
|
+
alt: e.file.name,
|
|
2508
|
+
className: "absolute inset-0 size-full object-cover",
|
|
2509
|
+
draggable: !1
|
|
2510
|
+
}),
|
|
2511
|
+
t && /* @__PURE__ */ U("span", {
|
|
2512
|
+
className: "absolute left-1.5 top-1.5 rounded-full bg-card/90 px-1.5 py-0.5 text-xxs font-semibold text-foreground shadow ring-1 ring-border",
|
|
2513
|
+
children: a.cover
|
|
2514
|
+
}),
|
|
2515
|
+
/* @__PURE__ */ U("button", {
|
|
2516
|
+
type: "button",
|
|
2517
|
+
"aria-label": a.removeAria,
|
|
2518
|
+
onPointerDown: (e) => e.stopPropagation(),
|
|
2519
|
+
onClick: (e) => {
|
|
2520
|
+
e.stopPropagation(), i();
|
|
2521
|
+
},
|
|
2522
|
+
className: n("absolute right-1.5 top-1.5 inline-flex size-6 items-center justify-center rounded-full bg-card text-foreground shadow ring-1 ring-border", "opacity-0 transition-opacity group-hover:opacity-100 focus-visible:opacity-100"),
|
|
2523
|
+
children: /* @__PURE__ */ U(Z, { className: "size-3.5" })
|
|
2524
|
+
})
|
|
2525
|
+
]
|
|
2526
|
+
});
|
|
2527
|
+
}
|
|
2528
|
+
function Xt({ value: t, onChange: i, accept: a = ".png,.jpg,.jpeg,.gif,.webp", maxFiles: o, disabled: s = !1, invalid: c = !1, className: l, tileClassName: u, strings: d }) {
|
|
2529
|
+
let f = e(Kt, d), p = R(), m = B(null), [h, g] = V([]), [_, v] = V(!1), y = ye(ve(ge, { activationConstraint: { distance: 6 } })), b = B([]);
|
|
2530
|
+
b.current = h, L(() => {
|
|
2531
|
+
t && g((e) => e.length === t.length && e.every((e, n) => e.file === t[n]) ? e : (e.forEach((e) => URL.revokeObjectURL(e.previewUrl)), t.map((e) => ({
|
|
2532
|
+
id: Jt(),
|
|
2533
|
+
file: e,
|
|
2534
|
+
previewUrl: URL.createObjectURL(e)
|
|
2535
|
+
}))));
|
|
2536
|
+
}, [t]), L(() => () => {
|
|
2537
|
+
b.current.forEach((e) => URL.revokeObjectURL(e.previewUrl));
|
|
2538
|
+
}, []);
|
|
2539
|
+
let x = I((e) => {
|
|
2540
|
+
i?.(e.map((e) => e.file));
|
|
2541
|
+
}, [i]), S = I((e) => {
|
|
2542
|
+
s || g((t) => {
|
|
2543
|
+
let n = o === void 0 ? e.length : Math.max(0, o - t.length), r = e.slice(0, n).map((e) => ({
|
|
2544
|
+
id: Jt(),
|
|
2545
|
+
file: e,
|
|
2546
|
+
previewUrl: URL.createObjectURL(e)
|
|
2547
|
+
})), i = [...t, ...r];
|
|
2548
|
+
return x(i), i;
|
|
2549
|
+
});
|
|
2550
|
+
}, [
|
|
2551
|
+
s,
|
|
2552
|
+
x,
|
|
2553
|
+
o
|
|
2554
|
+
]), C = I((e) => {
|
|
2555
|
+
g((t) => {
|
|
2556
|
+
let n = t.find((t) => t.id === e);
|
|
2557
|
+
n && URL.revokeObjectURL(n.previewUrl);
|
|
2558
|
+
let r = t.filter((t) => t.id !== e);
|
|
2559
|
+
return x(r), r;
|
|
2560
|
+
});
|
|
2561
|
+
}, [x]), w = I((e) => {
|
|
2562
|
+
let t = e.target.files;
|
|
2563
|
+
!t || t.length === 0 || (S(Array.from(t)), m.current && (m.current.value = ""));
|
|
2564
|
+
}, [S]), T = I((e) => {
|
|
2565
|
+
e.preventDefault(), e.stopPropagation(), s || v(!0);
|
|
2566
|
+
}, [s]), E = I((e) => {
|
|
2567
|
+
e.preventDefault(), e.stopPropagation(), v(!1);
|
|
2568
|
+
}, []), D = I((e) => {
|
|
2569
|
+
if (e.preventDefault(), e.stopPropagation(), v(!1), s) return;
|
|
2570
|
+
let t = e.dataTransfer?.files;
|
|
2571
|
+
!t || t.length === 0 || S(Array.from(t));
|
|
2572
|
+
}, [S, s]), O = I((e) => {
|
|
2573
|
+
let { active: t, over: n } = e;
|
|
2574
|
+
!n || t.id === n.id || g((e) => {
|
|
2575
|
+
let r = e.findIndex((e) => e.id === t.id), i = e.findIndex((e) => e.id === n.id);
|
|
2576
|
+
if (r === -1 || i === -1) return e;
|
|
2577
|
+
let a = [...e], [o] = a.splice(r, 1);
|
|
2578
|
+
return a.splice(i, 0, o), x(a), a;
|
|
2579
|
+
});
|
|
2580
|
+
}, [x]), k = z(() => h.map((e) => e.id), [h]), A = o !== void 0 && h.length >= o;
|
|
2581
|
+
return /* @__PURE__ */ W("div", {
|
|
2582
|
+
className: n("space-y-3", l),
|
|
2583
|
+
children: [
|
|
2584
|
+
/* @__PURE__ */ U(me, {
|
|
2585
|
+
sensors: y,
|
|
2586
|
+
onDragEnd: O,
|
|
2587
|
+
children: /* @__PURE__ */ U(be, {
|
|
2588
|
+
items: k,
|
|
2589
|
+
strategy: xe,
|
|
2590
|
+
children: /* @__PURE__ */ W("div", {
|
|
2591
|
+
className: n("grid grid-cols-2 gap-2", "sm:grid-cols-3 md:grid-cols-4"),
|
|
2592
|
+
children: [h.map((e, t) => /* @__PURE__ */ U(Yt, {
|
|
2593
|
+
item: e,
|
|
2594
|
+
isFirst: t === 0,
|
|
2595
|
+
disabled: s,
|
|
2596
|
+
onRemove: () => C(e.id),
|
|
2597
|
+
strings: f,
|
|
2598
|
+
tileClassName: u
|
|
2599
|
+
}, e.id)), !A && /* @__PURE__ */ W("div", {
|
|
2600
|
+
role: "button",
|
|
2601
|
+
tabIndex: s ? -1 : 0,
|
|
2602
|
+
"aria-disabled": s || void 0,
|
|
2603
|
+
"aria-invalid": c || void 0,
|
|
2604
|
+
onClick: () => !s && m.current?.click(),
|
|
2605
|
+
onKeyDown: (e) => {
|
|
2606
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), m.current?.click());
|
|
2607
|
+
},
|
|
2608
|
+
onDragEnter: T,
|
|
2609
|
+
onDragOver: T,
|
|
2610
|
+
onDragLeave: E,
|
|
2611
|
+
onDrop: D,
|
|
2612
|
+
className: n("flex aspect-square items-center justify-center rounded-lg border border-dashed text-center outline-none transition-colors", "hover:border-primary hover:bg-primary/5 hover:text-primary focus-visible:ring-2 focus-visible:ring-ring/50", c ? "border-destructive" : "border-muted-foreground/40", s && "cursor-not-allowed opacity-50", !s && _ && "border-primary bg-primary/10 text-primary"),
|
|
2613
|
+
children: [/* @__PURE__ */ U("input", {
|
|
2614
|
+
id: p,
|
|
2615
|
+
ref: m,
|
|
2616
|
+
type: "file",
|
|
2617
|
+
className: "sr-only",
|
|
2618
|
+
accept: a,
|
|
2619
|
+
multiple: !0,
|
|
2620
|
+
disabled: s,
|
|
2621
|
+
onChange: w
|
|
2622
|
+
}), /* @__PURE__ */ W("div", {
|
|
2623
|
+
className: "flex flex-col items-center gap-2 px-2",
|
|
2624
|
+
children: [/* @__PURE__ */ U(ie, {
|
|
2625
|
+
className: "size-5 text-muted-foreground",
|
|
2626
|
+
"aria-hidden": "true"
|
|
2627
|
+
}), /* @__PURE__ */ U(r, {
|
|
2628
|
+
size: "xs",
|
|
2629
|
+
weight: "medium",
|
|
2630
|
+
children: _ ? f.dragOver : f.addInstruction
|
|
2631
|
+
})]
|
|
2632
|
+
})]
|
|
2633
|
+
})]
|
|
2634
|
+
})
|
|
2635
|
+
})
|
|
2636
|
+
}),
|
|
2637
|
+
!!A && /* @__PURE__ */ U(r, {
|
|
2638
|
+
size: "xs",
|
|
2639
|
+
type: "secondary",
|
|
2640
|
+
children: f.maxReached
|
|
2641
|
+
}),
|
|
2642
|
+
!A && !!f.helper && /* @__PURE__ */ U(r, {
|
|
2643
|
+
size: "xs",
|
|
2644
|
+
type: "secondary",
|
|
2645
|
+
children: f.helper
|
|
2646
|
+
})
|
|
2647
|
+
]
|
|
2648
|
+
});
|
|
2649
|
+
}
|
|
2650
|
+
Xt.displayName = "MediaGallery";
|
|
2651
|
+
//#endregion
|
|
2652
|
+
//#region src/components/base/forms/fields/upload-progress-list.tsx
|
|
2653
|
+
var Zt = {
|
|
2654
|
+
queued: "Queued",
|
|
2655
|
+
uploading: "Uploading",
|
|
2656
|
+
done: "Uploaded",
|
|
2657
|
+
error: "Failed",
|
|
2658
|
+
cancelled: "Cancelled",
|
|
2659
|
+
cancel: "Cancel",
|
|
2660
|
+
retry: "Retry",
|
|
2661
|
+
remove: "Remove"
|
|
2662
|
+
}, Qt = {
|
|
2663
|
+
queued: {
|
|
2664
|
+
icon: Y,
|
|
2665
|
+
bg: "bg-muted",
|
|
2666
|
+
fg: "text-muted-foreground",
|
|
2667
|
+
bar: "bg-muted-foreground/30"
|
|
2668
|
+
},
|
|
2669
|
+
uploading: {
|
|
2670
|
+
icon: le,
|
|
2671
|
+
bg: "bg-primary/15",
|
|
2672
|
+
fg: "text-primary",
|
|
2673
|
+
bar: "bg-primary"
|
|
2674
|
+
},
|
|
2675
|
+
done: {
|
|
2676
|
+
icon: q,
|
|
2677
|
+
bg: "bg-success/15",
|
|
2678
|
+
fg: "text-success",
|
|
2679
|
+
bar: "bg-success"
|
|
2680
|
+
},
|
|
2681
|
+
error: {
|
|
2682
|
+
icon: G,
|
|
2683
|
+
bg: "bg-destructive/15",
|
|
2684
|
+
fg: "text-destructive",
|
|
2685
|
+
bar: "bg-destructive"
|
|
2686
|
+
},
|
|
2687
|
+
cancelled: {
|
|
2688
|
+
icon: Z,
|
|
2689
|
+
bg: "bg-muted",
|
|
2690
|
+
fg: "text-muted-foreground",
|
|
2691
|
+
bar: "bg-muted-foreground/30"
|
|
2692
|
+
}
|
|
2693
|
+
};
|
|
2694
|
+
function $t({ items: t, onCancel: i, onRetry: a, onRemove: o, className: c, strings: l }) {
|
|
2695
|
+
let u = e(Zt, l), d = {
|
|
2696
|
+
queued: u.queued,
|
|
2697
|
+
uploading: u.uploading,
|
|
2698
|
+
done: u.done,
|
|
2699
|
+
error: u.error,
|
|
2700
|
+
cancelled: u.cancelled
|
|
2701
|
+
};
|
|
2702
|
+
return t.length === 0 ? null : /* @__PURE__ */ U("ul", {
|
|
2703
|
+
className: n("upload-progress-list--component", "space-y-2", c),
|
|
2704
|
+
children: t.map((e) => {
|
|
2705
|
+
let t = Qt[e.status], c = t.icon, l = e.status === "done" ? 100 : e.status === "cancelled" || e.status === "error" ? e.progress ?? 0 : Math.max(0, Math.min(100, e.progress ?? 0)), f = e.status === "uploading" || e.status === "queued";
|
|
2706
|
+
return /* @__PURE__ */ U("li", {
|
|
2707
|
+
className: "rounded-md border border-border/60 bg-card px-3 py-2",
|
|
2708
|
+
children: /* @__PURE__ */ W("div", {
|
|
2709
|
+
className: "flex items-center gap-3",
|
|
2710
|
+
children: [
|
|
2711
|
+
/* @__PURE__ */ U("span", {
|
|
2712
|
+
className: n("inline-flex size-7 shrink-0 items-center justify-center rounded-md", t.bg, t.fg),
|
|
2713
|
+
children: /* @__PURE__ */ U(c, { className: n("size-3.5", e.status === "uploading" && "animate-pulse") })
|
|
2714
|
+
}),
|
|
2715
|
+
/* @__PURE__ */ W("div", {
|
|
2716
|
+
className: "min-w-0 flex-1",
|
|
2717
|
+
children: [/* @__PURE__ */ W("div", {
|
|
2718
|
+
className: "flex items-baseline justify-between gap-2",
|
|
2719
|
+
children: [/* @__PURE__ */ U(r, {
|
|
2720
|
+
weight: "medium",
|
|
2721
|
+
className: "truncate",
|
|
2722
|
+
children: e.name
|
|
2723
|
+
}), /* @__PURE__ */ U(r, {
|
|
2724
|
+
size: "xxs",
|
|
2725
|
+
type: "secondary",
|
|
2726
|
+
className: "shrink-0 tabular-nums",
|
|
2727
|
+
children: e.size
|
|
2728
|
+
})]
|
|
2729
|
+
}), f ? /* @__PURE__ */ U("div", {
|
|
2730
|
+
className: "mt-1.5 h-1 w-full overflow-hidden rounded-full bg-muted",
|
|
2731
|
+
children: /* @__PURE__ */ U("div", {
|
|
2732
|
+
className: n("h-full rounded-full transition-[width] duration-200", t.bar),
|
|
2733
|
+
style: { width: `${l}%` }
|
|
2734
|
+
})
|
|
2735
|
+
}) : /* @__PURE__ */ W(r, {
|
|
2736
|
+
size: "xxs",
|
|
2737
|
+
type: e.status === "error" ? "error" : "secondary",
|
|
2738
|
+
children: [d[e.status], e.status === "error" && !!e.error && ` — ${e.error}`]
|
|
2739
|
+
})]
|
|
2740
|
+
}),
|
|
2741
|
+
/* @__PURE__ */ W("div", {
|
|
2742
|
+
className: "flex shrink-0 items-center gap-1",
|
|
2743
|
+
children: [
|
|
2744
|
+
e.status === "uploading" && !!i && /* @__PURE__ */ U(s, {
|
|
2745
|
+
type: "button",
|
|
2746
|
+
variant: "secondary",
|
|
2747
|
+
buttonStyle: "ghost",
|
|
2748
|
+
size: "icon-xs",
|
|
2749
|
+
"aria-label": u.cancel,
|
|
2750
|
+
onClick: () => i(e.id),
|
|
2751
|
+
children: /* @__PURE__ */ U(Z, { className: "size-3.5" })
|
|
2752
|
+
}),
|
|
2753
|
+
e.status === "error" && !!a && /* @__PURE__ */ U(s, {
|
|
2754
|
+
type: "button",
|
|
2755
|
+
variant: "secondary",
|
|
2756
|
+
buttonStyle: "ghost",
|
|
2757
|
+
size: "icon-xs",
|
|
2758
|
+
"aria-label": u.retry,
|
|
2759
|
+
onClick: () => a(e.id),
|
|
2760
|
+
children: /* @__PURE__ */ U(oe, { className: "size-3.5" })
|
|
2761
|
+
}),
|
|
2762
|
+
(e.status === "done" || e.status === "error" || e.status === "cancelled") && !!o && /* @__PURE__ */ U(s, {
|
|
2763
|
+
type: "button",
|
|
2764
|
+
variant: "secondary",
|
|
2765
|
+
buttonStyle: "ghost",
|
|
2766
|
+
size: "icon-xs",
|
|
2767
|
+
"aria-label": u.remove,
|
|
2768
|
+
onClick: () => o(e.id),
|
|
2769
|
+
children: /* @__PURE__ */ U(Z, { className: "size-3.5" })
|
|
2770
|
+
})
|
|
2771
|
+
]
|
|
2772
|
+
})
|
|
2773
|
+
]
|
|
2774
|
+
})
|
|
2775
|
+
}, e.id);
|
|
2776
|
+
})
|
|
2777
|
+
});
|
|
2778
|
+
}
|
|
2779
|
+
$t.displayName = "UploadProgressList";
|
|
2780
|
+
//#endregion
|
|
2781
|
+
//#region src/components/base/forms/fields/upload-tray.tsx
|
|
2782
|
+
var en = {
|
|
2783
|
+
heading: "Upload progress",
|
|
2784
|
+
completedLabel: "Completed",
|
|
2785
|
+
failedLabel: "Failed",
|
|
2786
|
+
uploadingLabel: "Uploading",
|
|
2787
|
+
queuedLabel: "Queued",
|
|
2788
|
+
clearAll: "Clear all"
|
|
2789
|
+
};
|
|
2790
|
+
function tn(e) {
|
|
2791
|
+
let t = 0, n = 0, r = 0, i = 0;
|
|
2792
|
+
for (let a of e) a.status === "done" ? t += 1 : a.status === "error" ? n += 1 : a.status === "uploading" ? r += 1 : a.status === "queued" && (i += 1);
|
|
2793
|
+
return {
|
|
2794
|
+
completed: t,
|
|
2795
|
+
failed: n,
|
|
2796
|
+
uploading: r,
|
|
2797
|
+
queued: i
|
|
2798
|
+
};
|
|
2799
|
+
}
|
|
2800
|
+
var nn = P(function({ items: t, onAddFiles: i, onCancel: a, onRetry: c, onRemove: l, onClearAll: u, dropzone: d, className: f, strings: p, listStrings: m }, h) {
|
|
2801
|
+
let g = e(en, p), { completed: _, failed: v, uploading: y, queued: b } = tn(t), x = I((e) => {
|
|
2802
|
+
e.length > 0 && i(e);
|
|
2803
|
+
}, [i]), S = t.length > 0;
|
|
2804
|
+
return /* @__PURE__ */ W("div", {
|
|
2805
|
+
ref: h,
|
|
2806
|
+
className: n("upload-tray--component", "flex flex-col gap-4", f),
|
|
2807
|
+
children: [/* @__PURE__ */ U(Vt, {
|
|
2808
|
+
onDrop: x,
|
|
2809
|
+
accept: d?.accept,
|
|
2810
|
+
multiple: d?.multiple,
|
|
2811
|
+
size: d?.size,
|
|
2812
|
+
disabled: d?.disabled,
|
|
2813
|
+
invalid: d?.invalid,
|
|
2814
|
+
strings: d?.strings
|
|
2815
|
+
}), !!S && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ W("div", {
|
|
2816
|
+
className: "flex flex-wrap items-center justify-between gap-2",
|
|
2817
|
+
children: [/* @__PURE__ */ W("div", {
|
|
2818
|
+
className: "flex flex-wrap items-center gap-2",
|
|
2819
|
+
children: [
|
|
2820
|
+
/* @__PURE__ */ U(r, {
|
|
2821
|
+
tag: "span",
|
|
2822
|
+
weight: "semibold",
|
|
2823
|
+
children: g.heading
|
|
2824
|
+
}),
|
|
2825
|
+
_ > 0 && /* @__PURE__ */ W(o, {
|
|
2826
|
+
variant: "success",
|
|
2827
|
+
children: [
|
|
2828
|
+
g.completedLabel,
|
|
2829
|
+
": ",
|
|
2830
|
+
_
|
|
2831
|
+
]
|
|
2832
|
+
}),
|
|
2833
|
+
v > 0 && /* @__PURE__ */ W(o, {
|
|
2834
|
+
variant: "destructive",
|
|
2835
|
+
children: [
|
|
2836
|
+
g.failedLabel,
|
|
2837
|
+
": ",
|
|
2838
|
+
v
|
|
2839
|
+
]
|
|
2840
|
+
}),
|
|
2841
|
+
y > 0 && /* @__PURE__ */ W(o, {
|
|
2842
|
+
variant: "info",
|
|
2843
|
+
children: [
|
|
2844
|
+
g.uploadingLabel,
|
|
2845
|
+
": ",
|
|
2846
|
+
y
|
|
2847
|
+
]
|
|
2848
|
+
}),
|
|
2849
|
+
b > 0 && /* @__PURE__ */ W(o, {
|
|
2850
|
+
variant: "secondary",
|
|
2851
|
+
children: [
|
|
2852
|
+
g.queuedLabel,
|
|
2853
|
+
": ",
|
|
2854
|
+
b
|
|
2855
|
+
]
|
|
2856
|
+
})
|
|
2857
|
+
]
|
|
2858
|
+
}), !!u && /* @__PURE__ */ U(s, {
|
|
2859
|
+
variant: "secondary",
|
|
2860
|
+
buttonStyle: "ghost",
|
|
2861
|
+
onClick: u,
|
|
2862
|
+
children: g.clearAll
|
|
2863
|
+
})]
|
|
2864
|
+
}), /* @__PURE__ */ U($t, {
|
|
2865
|
+
items: t,
|
|
2866
|
+
onCancel: a,
|
|
2867
|
+
onRetry: c,
|
|
2868
|
+
onRemove: l,
|
|
2869
|
+
strings: m
|
|
2870
|
+
})] })]
|
|
2871
|
+
});
|
|
2872
|
+
});
|
|
2873
|
+
nn.displayName = "UploadTray";
|
|
2874
|
+
//#endregion
|
|
2875
|
+
//#region src/components/base/forms/fields/repeaters.strings.ts
|
|
2876
|
+
var rn = {
|
|
2877
|
+
emptyState: "No items added yet.",
|
|
2878
|
+
addItem: "Add item",
|
|
2879
|
+
removeAriaLabel: "Remove item"
|
|
2880
|
+
}, an = {
|
|
2881
|
+
emptyState: rn.emptyState,
|
|
2882
|
+
addButton: rn.addItem,
|
|
2883
|
+
removeAriaLabel: rn.removeAriaLabel,
|
|
2884
|
+
dragHandleAriaLabel: "Drag to reorder"
|
|
2885
|
+
};
|
|
2886
|
+
function on({ item: e, index: t, sortable: r, rowVariant: i, removeVariant: a, hideRemove: o, disabled: c, strings: l, onRemove: u, renderRow: d }) {
|
|
2887
|
+
let f = Ce({
|
|
2888
|
+
id: e.id,
|
|
2889
|
+
disabled: c || !r
|
|
2890
|
+
}), p = r ? f.isDragging : !1, m = r ? {
|
|
2891
|
+
transform: Te.Transform.toString(f.transform),
|
|
2892
|
+
transition: f.transition,
|
|
2893
|
+
opacity: p ? .6 : 1
|
|
2894
|
+
} : void 0, h = r ? f.setNodeRef : void 0, g = r ? f.attributes : {}, _ = r ? f.listeners : void 0, v = r ? /* @__PURE__ */ U("button", {
|
|
2895
|
+
type: "button",
|
|
2896
|
+
"aria-label": l.dragHandleAriaLabel,
|
|
2897
|
+
className: n("inline-flex size-9 shrink-0 items-center justify-center rounded-md", "text-muted-foreground/50 hover:text-foreground hover:bg-muted", "cursor-grab active:cursor-grabbing", "outline-none focus-visible:ring-2 focus-visible:ring-ring/50", "transition-colors", c && "pointer-events-none opacity-50"),
|
|
2898
|
+
...g,
|
|
2899
|
+
..._,
|
|
2900
|
+
children: /* @__PURE__ */ U(ne, {
|
|
2901
|
+
className: "size-4",
|
|
2902
|
+
"aria-hidden": "true"
|
|
2903
|
+
})
|
|
2904
|
+
}) : null, y = o ? null : a === "icon-button" ? /* @__PURE__ */ U(s, {
|
|
2905
|
+
type: "button",
|
|
2906
|
+
variant: "secondary",
|
|
2907
|
+
buttonStyle: "outline",
|
|
2908
|
+
size: "sm",
|
|
2909
|
+
"aria-label": l.removeAriaLabel,
|
|
2910
|
+
disabled: c,
|
|
2911
|
+
onClick: () => u(t),
|
|
2912
|
+
className: "shrink-0",
|
|
2913
|
+
children: /* @__PURE__ */ U(se, {
|
|
2914
|
+
className: "size-4",
|
|
2915
|
+
"aria-hidden": "true"
|
|
2916
|
+
})
|
|
2917
|
+
}) : /* @__PURE__ */ U("button", {
|
|
2918
|
+
type: "button",
|
|
2919
|
+
"aria-label": l.removeAriaLabel,
|
|
2920
|
+
disabled: c,
|
|
2921
|
+
onClick: () => u(t),
|
|
2922
|
+
className: n("inline-flex size-9 shrink-0 items-center justify-center rounded-md", "text-muted-foreground/70 hover:bg-destructive/10 hover:text-destructive", "outline-none focus-visible:ring-2 focus-visible:ring-ring/50", "transition-colors", "disabled:pointer-events-none disabled:opacity-50"),
|
|
2923
|
+
children: /* @__PURE__ */ U(Z, {
|
|
2924
|
+
className: "size-4",
|
|
2925
|
+
"aria-hidden": "true"
|
|
2926
|
+
})
|
|
2927
|
+
});
|
|
2928
|
+
return i === "card" ? /* @__PURE__ */ U("div", {
|
|
2929
|
+
ref: h,
|
|
2930
|
+
style: m,
|
|
2931
|
+
className: n("repeater--component", "relative rounded-md border border-input bg-card p-4", r && "pl-2"),
|
|
2932
|
+
children: /* @__PURE__ */ W("div", {
|
|
2933
|
+
className: "flex items-start gap-2",
|
|
2934
|
+
children: [
|
|
2935
|
+
v,
|
|
2936
|
+
/* @__PURE__ */ U("div", {
|
|
2937
|
+
className: "min-w-0 flex-1",
|
|
2938
|
+
children: d(e, {
|
|
2939
|
+
index: t,
|
|
2940
|
+
isDragging: p
|
|
2941
|
+
})
|
|
2942
|
+
}),
|
|
2943
|
+
y
|
|
2944
|
+
]
|
|
2945
|
+
})
|
|
2946
|
+
}) : /* @__PURE__ */ W("div", {
|
|
2947
|
+
ref: h,
|
|
2948
|
+
style: m,
|
|
2949
|
+
className: "flex items-start gap-2",
|
|
2950
|
+
children: [
|
|
2951
|
+
v,
|
|
2952
|
+
/* @__PURE__ */ U("div", {
|
|
2953
|
+
className: "min-w-0 flex-1",
|
|
2954
|
+
children: d(e, {
|
|
2955
|
+
index: t,
|
|
2956
|
+
isDragging: p
|
|
2957
|
+
})
|
|
2958
|
+
}),
|
|
2959
|
+
y
|
|
2960
|
+
]
|
|
2961
|
+
});
|
|
2962
|
+
}
|
|
2963
|
+
function sn({ items: t, renderRow: i, onAdd: a, onRemove: o, onMove: c, sortable: l = !1, rowVariant: u = "inline", removeVariant: d = "ghost", hideRemove: f = !1, hideAdd: p = !1, disabled: m = !1, strings: h, className: g }) {
|
|
2964
|
+
let _ = e(an, h), v = ye(ve(ge, { activationConstraint: { distance: 4 } }), ve(he, { coordinateGetter: Se })), y = I((e) => {
|
|
2965
|
+
let { active: n, over: r } = e;
|
|
2966
|
+
if (!r || n.id === r.id) return;
|
|
2967
|
+
let i = t.findIndex((e) => e.id === n.id), a = t.findIndex((e) => e.id === r.id);
|
|
2968
|
+
i < 0 || a < 0 || c?.(i, a);
|
|
2969
|
+
}, [t, c]), b = z(() => t.map((e) => e.id), [t]), x = /* @__PURE__ */ U("div", {
|
|
2970
|
+
className: "space-y-2",
|
|
2971
|
+
children: t.map((e, t) => /* @__PURE__ */ U(on, {
|
|
2972
|
+
item: e,
|
|
2973
|
+
index: t,
|
|
2974
|
+
sortable: l,
|
|
2975
|
+
rowVariant: u,
|
|
2976
|
+
removeVariant: d,
|
|
2977
|
+
hideRemove: f,
|
|
2978
|
+
disabled: m,
|
|
2979
|
+
strings: _,
|
|
2980
|
+
onRemove: o,
|
|
2981
|
+
renderRow: i
|
|
2982
|
+
}, e.id))
|
|
2983
|
+
});
|
|
2984
|
+
return /* @__PURE__ */ W("div", {
|
|
2985
|
+
className: n("space-y-3", g),
|
|
2986
|
+
children: [t.length === 0 ? /* @__PURE__ */ U("div", {
|
|
2987
|
+
className: "rounded-md border border-dashed border-input p-4",
|
|
2988
|
+
children: /* @__PURE__ */ U(r, {
|
|
2989
|
+
type: "secondary",
|
|
2990
|
+
children: _.emptyState
|
|
2991
|
+
})
|
|
2992
|
+
}) : l ? /* @__PURE__ */ U(me, {
|
|
2993
|
+
sensors: v,
|
|
2994
|
+
collisionDetection: _e,
|
|
2995
|
+
onDragEnd: y,
|
|
2996
|
+
children: /* @__PURE__ */ U(be, {
|
|
2997
|
+
items: b,
|
|
2998
|
+
strategy: we,
|
|
2999
|
+
children: x
|
|
3000
|
+
})
|
|
3001
|
+
}) : x, !p && /* @__PURE__ */ W(s, {
|
|
3002
|
+
type: "button",
|
|
3003
|
+
variant: "secondary",
|
|
3004
|
+
buttonStyle: "outline",
|
|
3005
|
+
size: "sm",
|
|
3006
|
+
disabled: m,
|
|
3007
|
+
onClick: a,
|
|
3008
|
+
children: [/* @__PURE__ */ U(ae, { className: "size-4 mr-1.5" }), _.addButton]
|
|
3009
|
+
})]
|
|
3010
|
+
});
|
|
3011
|
+
}
|
|
3012
|
+
sn.displayName = "Repeater";
|
|
3013
|
+
//#endregion
|
|
3014
|
+
//#region src/components/base/forms/fields/key-value-editor.tsx
|
|
3015
|
+
var cn = {
|
|
3016
|
+
keyLabel: "Key",
|
|
3017
|
+
valueLabel: "Value",
|
|
3018
|
+
keyPlaceholder: "key",
|
|
3019
|
+
valuePlaceholder: "value",
|
|
3020
|
+
addButton: "Add row",
|
|
3021
|
+
removeRowAriaLabel: "Remove row",
|
|
3022
|
+
emptyState: "No rows yet."
|
|
3023
|
+
}, ln = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2, 10), un = F(function({ row: e, keyPlaceholder: t, valuePlaceholder: r, invalid: i, onKeyChange: a, onValueChange: o }) {
|
|
3024
|
+
let { id: s, key: c, value: u } = e;
|
|
3025
|
+
return /* @__PURE__ */ W("div", {
|
|
3026
|
+
className: n("key-value-editor--component", "grid grid-cols-1 md:grid-cols-2 gap-2"),
|
|
3027
|
+
children: [/* @__PURE__ */ U(l, {
|
|
3028
|
+
value: c ?? "",
|
|
3029
|
+
placeholder: t,
|
|
3030
|
+
onChange: (e) => a(s, e.target.value),
|
|
3031
|
+
invalid: i
|
|
3032
|
+
}), /* @__PURE__ */ U(l, {
|
|
3033
|
+
value: u ?? "",
|
|
3034
|
+
placeholder: r,
|
|
3035
|
+
onChange: (e) => o(s, e.target.value),
|
|
3036
|
+
invalid: i
|
|
3037
|
+
})]
|
|
3038
|
+
});
|
|
3039
|
+
});
|
|
3040
|
+
function dn({ value: t, onChange: r, invalid: a, sortable: o = !1, keyPlaceholder: s, valuePlaceholder: c, keyLabel: l, valueLabel: u, addButtonText: d, strings: f }) {
|
|
3041
|
+
let p = e(cn, {
|
|
3042
|
+
...s === void 0 ? {} : { keyPlaceholder: s },
|
|
3043
|
+
...c === void 0 ? {} : { valuePlaceholder: c },
|
|
3044
|
+
...l === void 0 ? {} : { keyLabel: l },
|
|
3045
|
+
...u === void 0 ? {} : { valueLabel: u },
|
|
3046
|
+
...d === void 0 ? {} : { addButton: d },
|
|
3047
|
+
...f
|
|
3048
|
+
}), m = B(!1), [h, g] = V(() => t && Object.keys(t).length > 0 ? Object.entries(t).map(([e, t]) => ({
|
|
3049
|
+
id: ln(),
|
|
3050
|
+
key: e,
|
|
3051
|
+
value: String(t ?? "")
|
|
3052
|
+
})) : [{
|
|
3053
|
+
id: ln(),
|
|
3054
|
+
key: "",
|
|
3055
|
+
value: ""
|
|
3056
|
+
}]), _ = I((e) => {
|
|
3057
|
+
let t = {};
|
|
3058
|
+
e.forEach(({ key: e, value: n }) => {
|
|
3059
|
+
e.trim() !== "" && (t[e] = n ?? "");
|
|
3060
|
+
}), m.current = !0, r?.(t), queueMicrotask(() => {
|
|
3061
|
+
m.current = !1;
|
|
3062
|
+
});
|
|
3063
|
+
}, [r]), v = I((e, t) => {
|
|
3064
|
+
g((n) => {
|
|
3065
|
+
let r = n.map((n) => n.id === e ? {
|
|
3066
|
+
...n,
|
|
3067
|
+
key: t
|
|
3068
|
+
} : n);
|
|
3069
|
+
return _(r), r;
|
|
3070
|
+
});
|
|
3071
|
+
}, [_]), y = I((e, t) => {
|
|
3072
|
+
g((n) => {
|
|
3073
|
+
let r = n.map((n) => n.id === e ? {
|
|
3074
|
+
...n,
|
|
3075
|
+
value: t
|
|
3076
|
+
} : n);
|
|
3077
|
+
return _(r), r;
|
|
3078
|
+
});
|
|
3079
|
+
}, [_]), b = I(() => {
|
|
3080
|
+
g((e) => {
|
|
3081
|
+
let t = [...e, {
|
|
3082
|
+
id: ln(),
|
|
3083
|
+
key: "",
|
|
3084
|
+
value: ""
|
|
3085
|
+
}];
|
|
3086
|
+
return _(t), t;
|
|
3087
|
+
});
|
|
3088
|
+
}, [_]), x = I((e) => {
|
|
3089
|
+
g((t) => {
|
|
3090
|
+
let n = t.filter((t, n) => n !== e), r = n.length ? n : [{
|
|
3091
|
+
id: ln(),
|
|
3092
|
+
key: "",
|
|
3093
|
+
value: ""
|
|
3094
|
+
}];
|
|
3095
|
+
return _(r), r;
|
|
3096
|
+
});
|
|
3097
|
+
}, [_]), S = I((e, t) => {
|
|
3098
|
+
g((n) => {
|
|
3099
|
+
let r = [...n], [i] = r.splice(e, 1);
|
|
3100
|
+
return r.splice(t, 0, i), _(r), r;
|
|
3101
|
+
});
|
|
3102
|
+
}, [_]);
|
|
3103
|
+
return /* @__PURE__ */ W("div", {
|
|
3104
|
+
className: "space-y-2",
|
|
3105
|
+
children: [(!!p.keyLabel || !!p.valueLabel) && /* @__PURE__ */ W("div", {
|
|
3106
|
+
className: n("grid grid-cols-1 md:grid-cols-2 gap-2", o ? "pl-11" : "", "pr-11"),
|
|
3107
|
+
children: [!!p.keyLabel && /* @__PURE__ */ U(i, {
|
|
3108
|
+
className: "flex items-center",
|
|
3109
|
+
children: p.keyLabel
|
|
3110
|
+
}), !!p.valueLabel && /* @__PURE__ */ U(i, {
|
|
3111
|
+
className: "flex items-center",
|
|
3112
|
+
children: p.valueLabel
|
|
3113
|
+
})]
|
|
3114
|
+
}), /* @__PURE__ */ U(sn, {
|
|
3115
|
+
items: h,
|
|
3116
|
+
sortable: o,
|
|
3117
|
+
onAdd: b,
|
|
3118
|
+
onRemove: x,
|
|
3119
|
+
onMove: S,
|
|
3120
|
+
strings: {
|
|
3121
|
+
emptyState: p.emptyState,
|
|
3122
|
+
addButton: p.addButton,
|
|
3123
|
+
removeAriaLabel: p.removeRowAriaLabel
|
|
3124
|
+
},
|
|
3125
|
+
renderRow: (e) => /* @__PURE__ */ U(un, {
|
|
3126
|
+
row: e,
|
|
3127
|
+
keyPlaceholder: p.keyPlaceholder,
|
|
3128
|
+
valuePlaceholder: p.valuePlaceholder,
|
|
3129
|
+
invalid: a,
|
|
3130
|
+
onKeyChange: v,
|
|
3131
|
+
onValueChange: y
|
|
3132
|
+
})
|
|
3133
|
+
})]
|
|
3134
|
+
});
|
|
3135
|
+
}
|
|
3136
|
+
dn.displayName = "KeyValueEditor";
|
|
3137
|
+
//#endregion
|
|
3138
|
+
//#region src/components/base/forms/fields/string-repeater.tsx
|
|
3139
|
+
var fn = {
|
|
3140
|
+
placeholder: "Enter value",
|
|
3141
|
+
addButton: "Add item",
|
|
3142
|
+
...rn
|
|
3143
|
+
};
|
|
3144
|
+
function pn({ name: t, placeholder: n, addButtonText: r, emptyMessage: i, invalid: a, sortable: o = !1, strings: s }) {
|
|
3145
|
+
let c = e(fn, {
|
|
3146
|
+
...n === void 0 ? {} : { placeholder: n },
|
|
3147
|
+
...r === void 0 ? {} : { addButton: r },
|
|
3148
|
+
...i === void 0 ? {} : { emptyState: i },
|
|
3149
|
+
...s
|
|
3150
|
+
}), { control: u, register: d } = Oe(), { fields: f, append: p, remove: m, move: h } = Ee({
|
|
3151
|
+
control: u,
|
|
3152
|
+
name: t
|
|
3153
|
+
});
|
|
3154
|
+
return /* @__PURE__ */ U(sn, {
|
|
3155
|
+
className: "string-repeater--component",
|
|
3156
|
+
items: f,
|
|
3157
|
+
sortable: o,
|
|
3158
|
+
onAdd: () => p(""),
|
|
3159
|
+
onRemove: (e) => m(e),
|
|
3160
|
+
onMove: (e, t) => h(e, t),
|
|
3161
|
+
strings: {
|
|
3162
|
+
emptyState: c.emptyState,
|
|
3163
|
+
addButton: c.addButton,
|
|
3164
|
+
removeAriaLabel: c.removeAriaLabel
|
|
3165
|
+
},
|
|
3166
|
+
renderRow: (e, { index: n }) => /* @__PURE__ */ U(l, {
|
|
3167
|
+
...d(`${t}.${n}`),
|
|
3168
|
+
placeholder: c.placeholder,
|
|
3169
|
+
invalid: a
|
|
3170
|
+
})
|
|
3171
|
+
});
|
|
3172
|
+
}
|
|
3173
|
+
pn.displayName = "StringRepeater";
|
|
3174
|
+
//#endregion
|
|
3175
|
+
//#region src/components/base/forms/fields/object-repeater.tsx
|
|
3176
|
+
var mn = {
|
|
3177
|
+
addButton: "Add item",
|
|
3178
|
+
...rn
|
|
3179
|
+
};
|
|
3180
|
+
function hn({ name: t, fields: r, addButtonText: i, emptyMessage: a, invalid: o, sortable: s = !1, strings: c }) {
|
|
3181
|
+
let u = e(mn, {
|
|
3182
|
+
...i === void 0 ? {} : { addButton: i },
|
|
3183
|
+
...a === void 0 ? {} : { emptyState: a },
|
|
3184
|
+
...c
|
|
3185
|
+
}), { control: d, register: f } = Oe(), { fields: p, append: h, remove: g, move: _ } = Ee({
|
|
3186
|
+
control: d,
|
|
3187
|
+
name: t
|
|
3188
|
+
}), v = I(() => r.reduce((e, t) => (e[t.name] = "", e), {}), [r]);
|
|
3189
|
+
return /* @__PURE__ */ U(sn, {
|
|
3190
|
+
items: p,
|
|
3191
|
+
sortable: s,
|
|
3192
|
+
rowVariant: "card",
|
|
3193
|
+
removeVariant: "ghost",
|
|
3194
|
+
onAdd: () => h(v()),
|
|
3195
|
+
onRemove: (e) => g(e),
|
|
3196
|
+
onMove: (e, t) => _(e, t),
|
|
3197
|
+
strings: {
|
|
3198
|
+
emptyState: u.emptyState,
|
|
3199
|
+
addButton: u.addButton,
|
|
3200
|
+
removeAriaLabel: u.removeAriaLabel
|
|
3201
|
+
},
|
|
3202
|
+
renderRow: (e, { index: i }) => /* @__PURE__ */ U("div", {
|
|
3203
|
+
className: n("object-repeater--component", "space-y-3"),
|
|
3204
|
+
children: r.map((e) => {
|
|
3205
|
+
let n = `${t}.${i}.${e.name}`;
|
|
3206
|
+
return /* @__PURE__ */ U(S, {
|
|
3207
|
+
label: e.label,
|
|
3208
|
+
required: e.required,
|
|
3209
|
+
hint: e.hint,
|
|
3210
|
+
htmlFor: n,
|
|
3211
|
+
children: e.type === "textarea" ? /* @__PURE__ */ U(m, {
|
|
3212
|
+
...f(n),
|
|
3213
|
+
id: n,
|
|
3214
|
+
placeholder: e.placeholder,
|
|
3215
|
+
minRows: 3,
|
|
3216
|
+
invalid: o
|
|
3217
|
+
}) : /* @__PURE__ */ U(l, {
|
|
3218
|
+
...f(n),
|
|
3219
|
+
id: n,
|
|
3220
|
+
type: e.type || "text",
|
|
3221
|
+
placeholder: e.placeholder,
|
|
3222
|
+
invalid: o
|
|
3223
|
+
})
|
|
3224
|
+
}, e.name);
|
|
3225
|
+
})
|
|
3226
|
+
})
|
|
3227
|
+
});
|
|
3228
|
+
}
|
|
3229
|
+
hn.displayName = "ObjectRepeater";
|
|
3230
|
+
//#endregion
|
|
3231
|
+
//#region src/components/base/forms/fields/list.tsx
|
|
3232
|
+
var gn = {
|
|
3233
|
+
addButton: "Add item",
|
|
3234
|
+
emptyState: rn.emptyState,
|
|
3235
|
+
dragHandle: "Drag to reorder",
|
|
3236
|
+
removeAriaLabel: rn.removeAriaLabel
|
|
3237
|
+
};
|
|
3238
|
+
function _n({ name: t, placeholder: n, addButtonText: r, emptyMessage: i, disableSort: a = !1, invalid: o, strings: s }) {
|
|
3239
|
+
let c = e(gn, {
|
|
3240
|
+
...r === void 0 ? {} : { addButton: r },
|
|
3241
|
+
...i === void 0 ? {} : { emptyState: i },
|
|
3242
|
+
...s ?? {}
|
|
3243
|
+
}), { control: u, register: d } = Oe(), { fields: f, append: p, remove: m, move: h } = Ee({
|
|
3244
|
+
control: u,
|
|
3245
|
+
name: t
|
|
3246
|
+
});
|
|
3247
|
+
return /* @__PURE__ */ U(sn, {
|
|
3248
|
+
className: "list--component",
|
|
3249
|
+
items: f,
|
|
3250
|
+
sortable: !a,
|
|
3251
|
+
onAdd: () => p(""),
|
|
3252
|
+
onRemove: (e) => m(e),
|
|
3253
|
+
onMove: (e, t) => h(e, t),
|
|
3254
|
+
strings: {
|
|
3255
|
+
emptyState: c.emptyState,
|
|
3256
|
+
addButton: c.addButton,
|
|
3257
|
+
removeAriaLabel: c.removeAriaLabel,
|
|
3258
|
+
dragHandleAriaLabel: c.dragHandle
|
|
3259
|
+
},
|
|
3260
|
+
renderRow: (e, { index: r }) => /* @__PURE__ */ U(l, {
|
|
3261
|
+
...d(`${t}.${r}`),
|
|
3262
|
+
placeholder: n,
|
|
3263
|
+
invalid: o
|
|
3264
|
+
})
|
|
3265
|
+
});
|
|
3266
|
+
}
|
|
3267
|
+
_n.displayName = "List";
|
|
3268
|
+
//#endregion
|
|
3269
|
+
//#region src/components/base/forms/fields/pill-radio-group.tsx
|
|
3270
|
+
function vn({ name: e, value: r, options: i, onChange: a, allowClear: o = !1, size: s, fullWidth: c = !1, disabled: l = !1, invalid: u = !1, className: f }) {
|
|
3271
|
+
let { defaultControlSize: p } = t(), m = d(s, p), h = M.useCallback((e) => {
|
|
3272
|
+
e === r ? o && a(null) : a(e);
|
|
3273
|
+
}, [
|
|
3274
|
+
o,
|
|
3275
|
+
a,
|
|
3276
|
+
r
|
|
3277
|
+
]);
|
|
3278
|
+
return /* @__PURE__ */ U("div", {
|
|
3279
|
+
"data-name": e,
|
|
3280
|
+
role: "radiogroup",
|
|
3281
|
+
"aria-invalid": u || void 0,
|
|
3282
|
+
className: n("pill-radio-group--component", "border-input inline-flex items-center overflow-hidden rounded-lg border", c && "w-full", "aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20", l && "pointer-events-none opacity-50", f),
|
|
3283
|
+
children: i.map((e, t) => {
|
|
3284
|
+
let i = e.value === r, a = e.icon;
|
|
3285
|
+
return /* @__PURE__ */ W("button", {
|
|
3286
|
+
type: "button",
|
|
3287
|
+
role: "radio",
|
|
3288
|
+
"aria-checked": i,
|
|
3289
|
+
"aria-label": (typeof e.label == "string" ? e.label : void 0) || e.value,
|
|
3290
|
+
disabled: l || e.disabled,
|
|
3291
|
+
onClick: () => h(e.value),
|
|
3292
|
+
className: n("inline-flex select-none items-center justify-center font-medium transition-colors", "focus-visible:ring-ring/50 outline-none focus-visible:z-10 focus-visible:ring-2", "disabled:pointer-events-none disabled:opacity-50", T[m], c && "flex-1", t > 0 && "border-input border-l", i ? "bg-primary text-primary-foreground" : "bg-background text-foreground hover:bg-muted"),
|
|
3293
|
+
children: [!!a && /* @__PURE__ */ U(a, { className: n("size-3.5", e.label && "mr-1.5") }), e.label]
|
|
3294
|
+
}, e.value);
|
|
3295
|
+
})
|
|
3296
|
+
});
|
|
3297
|
+
}
|
|
3298
|
+
vn.displayName = "PillRadioGroup";
|
|
3299
|
+
//#endregion
|
|
3300
|
+
//#region src/components/base/forms/fields/localized-string-field.tsx
|
|
3301
|
+
function yn({ name: e, type: t = "text", placeholder: r, primaryLocale: i, secondaryLocale: a, activeLocale: o, invalid: s, className: c }) {
|
|
3302
|
+
let { register: u } = Oe(), d = `${e}.${o === "primary" ? i : a}`;
|
|
3303
|
+
return t === "textarea" ? /* @__PURE__ */ U(m, {
|
|
3304
|
+
...u(d),
|
|
3305
|
+
placeholder: r,
|
|
3306
|
+
minRows: 3,
|
|
3307
|
+
invalid: s,
|
|
3308
|
+
className: n("localized-string-field--component", c)
|
|
3309
|
+
}) : /* @__PURE__ */ U(l, {
|
|
3310
|
+
...u(d),
|
|
3311
|
+
type: t === "number" ? "number" : "text",
|
|
3312
|
+
placeholder: r,
|
|
3313
|
+
invalid: s,
|
|
3314
|
+
className: c
|
|
3315
|
+
});
|
|
3316
|
+
}
|
|
3317
|
+
yn.displayName = "LocalizedStringField";
|
|
3318
|
+
//#endregion
|
|
3319
|
+
//#region src/components/base/forms/fields/localized-object-field.tsx
|
|
3320
|
+
function bn({ name: e, fields: t, primaryLocale: n, secondaryLocale: r, activeLocale: a, invalid: o, className: s }) {
|
|
3321
|
+
let { register: c } = Oe(), u = a === "primary" ? n : r;
|
|
3322
|
+
return /* @__PURE__ */ U("div", {
|
|
3323
|
+
className: `w-full space-y-3 rounded-md border p-4 ${s ?? ""}`,
|
|
3324
|
+
children: t.map((t) => {
|
|
3325
|
+
let n = `${e}.${u}.${t.name}`;
|
|
3326
|
+
return /* @__PURE__ */ W("div", {
|
|
3327
|
+
className: "w-full space-y-1.5",
|
|
3328
|
+
children: [/* @__PURE__ */ W(i, {
|
|
3329
|
+
htmlFor: n,
|
|
3330
|
+
children: [t.label, !!t.required && /* @__PURE__ */ U("span", {
|
|
3331
|
+
className: "text-destructive ml-1",
|
|
3332
|
+
children: "*"
|
|
3333
|
+
})]
|
|
3334
|
+
}), t.type === "textarea" ? /* @__PURE__ */ U(m, {
|
|
3335
|
+
...c(n),
|
|
3336
|
+
id: n,
|
|
3337
|
+
placeholder: t.placeholder,
|
|
3338
|
+
minRows: 3,
|
|
3339
|
+
invalid: o
|
|
3340
|
+
}) : /* @__PURE__ */ U(l, {
|
|
3341
|
+
...c(n),
|
|
3342
|
+
id: n,
|
|
3343
|
+
type: t.type === "number" ? "number" : "text",
|
|
3344
|
+
placeholder: t.placeholder,
|
|
3345
|
+
invalid: o
|
|
3346
|
+
})]
|
|
3347
|
+
}, t.name);
|
|
3348
|
+
})
|
|
3349
|
+
});
|
|
3350
|
+
}
|
|
3351
|
+
bn.displayName = "LocalizedObjectField";
|
|
3352
|
+
//#endregion
|
|
3353
|
+
//#region src/components/base/forms/fields/localized-string-repeater.tsx
|
|
3354
|
+
var xn = {
|
|
3355
|
+
placeholder: "Enter value",
|
|
3356
|
+
addButton: rn.addItem,
|
|
3357
|
+
emptyState: rn.emptyState,
|
|
3358
|
+
removeAriaLabel: rn.removeAriaLabel
|
|
3359
|
+
};
|
|
3360
|
+
function Sn({ name: t, placeholder: n, addButtonText: r, emptyMessage: i, primaryLocale: a, secondaryLocale: o, activeLocale: s, invalid: c, sortable: l = !1, strings: u }) {
|
|
3361
|
+
let d = e(xn, {
|
|
3362
|
+
...n === void 0 ? {} : { placeholder: n },
|
|
3363
|
+
...r === void 0 ? {} : { addButton: r },
|
|
3364
|
+
...i === void 0 ? {} : { emptyState: i },
|
|
3365
|
+
...u ?? {}
|
|
3366
|
+
}), { control: f, register: p } = Oe(), h = `${t}.${s === "primary" ? a : o}`, { fields: g, append: _, remove: v, move: y } = Ee({
|
|
3367
|
+
control: f,
|
|
3368
|
+
name: h
|
|
3369
|
+
});
|
|
3370
|
+
return /* @__PURE__ */ U(sn, {
|
|
3371
|
+
className: "localized-string-repeater--component",
|
|
3372
|
+
items: g,
|
|
3373
|
+
sortable: l,
|
|
3374
|
+
onAdd: () => _(""),
|
|
3375
|
+
onRemove: (e) => v(e),
|
|
3376
|
+
onMove: (e, t) => y(e, t),
|
|
3377
|
+
strings: {
|
|
3378
|
+
emptyState: d.emptyState,
|
|
3379
|
+
addButton: d.addButton,
|
|
3380
|
+
removeAriaLabel: d.removeAriaLabel
|
|
3381
|
+
},
|
|
3382
|
+
renderRow: (e, { index: t }) => /* @__PURE__ */ U(m, {
|
|
3383
|
+
...p(`${h}.${t}`),
|
|
3384
|
+
placeholder: d.placeholder,
|
|
3385
|
+
minRows: 2,
|
|
3386
|
+
invalid: c
|
|
3387
|
+
})
|
|
3388
|
+
});
|
|
3389
|
+
}
|
|
3390
|
+
Sn.displayName = "LocalizedStringRepeater";
|
|
3391
|
+
//#endregion
|
|
3392
|
+
//#region src/components/base/forms/operation-password-form.tsx
|
|
3393
|
+
function Cn(e) {
|
|
3394
|
+
let { formId: t, onSubmit: i, errors: a, isLoading: o, label: s } = e, c = ((e) => {
|
|
3395
|
+
let t = a?.[e];
|
|
3396
|
+
return Array.isArray(t) ? t[0] : t;
|
|
3397
|
+
})("password"), u = c ? () => c : void 0, d = (Array.isArray(a?.general) ? a.general[0] : a?.general) || (Array.isArray(a?.server) ? a.server[0] : a?.server), { handleSubmit: f, control: p } = De({ defaultValues: z(() => ({ password: "" }), []) }), m = async (e) => {
|
|
3398
|
+
await i({ password: e.password });
|
|
3399
|
+
}, h = !!o;
|
|
3400
|
+
return /* @__PURE__ */ W("form", {
|
|
3401
|
+
id: t,
|
|
3402
|
+
onSubmit: f(m),
|
|
3403
|
+
className: n("operation-password-form--component", "space-y-4"),
|
|
3404
|
+
children: [!!d && /* @__PURE__ */ U(r, {
|
|
3405
|
+
type: "error",
|
|
3406
|
+
children: d
|
|
3407
|
+
}), /* @__PURE__ */ U(C, {
|
|
3408
|
+
name: "password",
|
|
3409
|
+
control: p,
|
|
3410
|
+
error: u,
|
|
3411
|
+
label: s,
|
|
3412
|
+
required: !0,
|
|
3413
|
+
children: (e, t, n) => /* @__PURE__ */ U(l, {
|
|
3414
|
+
type: "password",
|
|
3415
|
+
value: e.value ?? "",
|
|
3416
|
+
onChange: e.onChange,
|
|
3417
|
+
onBlur: e.onBlur,
|
|
3418
|
+
name: e.name,
|
|
3419
|
+
invalid: n,
|
|
3420
|
+
disabled: h,
|
|
3421
|
+
autoFocus: !0
|
|
3422
|
+
})
|
|
3423
|
+
})]
|
|
3424
|
+
});
|
|
3425
|
+
}
|
|
3426
|
+
Cn.displayName = "OperationPasswordForm";
|
|
3427
|
+
//#endregion
|
|
3428
|
+
export { dt as A, ze as B, Ft as C, bt as D, Tt as E, Ze as F, Ae as G, Le as H, Ue as I, ke as K, We as L, rt as M, tt as N, yt as O, et as P, Xe as R, Lt as S, At as T, Me as U, Re as V, je as W, Kt as _, vn as a, Vt as b, pn as c, an as d, nn as f, Xt as g, Zt as h, yn as i, ot as j, mt as k, dn as l, $t as m, Sn as n, _n as o, en as p, bn as r, hn as s, Cn as t, sn as u, Gt as v, Mt as w, Rt as x, Ht as y, Ve as z };
|
|
3429
|
+
|
|
3430
|
+
//# sourceMappingURL=forms-CwJci54_.js.map
|