@alfadocs/ui-kit 1.66.0 → 1.68.0
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/dist/_chunks/{address-fields-CJtu7LQU.js → address-fields-BUPRs3n-.js} +3 -3
- package/dist/_chunks/{agenda-card-DR9gDdKp.js → agenda-card-BDuvreCe.js} +2 -2
- package/dist/_chunks/{agenda-tray-DGB1Zup-.js → agenda-tray-CfwylhWf.js} +3 -3
- package/dist/_chunks/ai-credits-exhausted-notice-Bg8NpW2K.js +287 -0
- package/dist/_chunks/ai-credits-exhausted-notice.agent-DgTSTgez.js +43 -0
- package/dist/_chunks/ai-credits-notice-DQ-r3iQU.js +191 -0
- package/dist/_chunks/{ai-permission-notice-DpRmZ9Q3.js → ai-permission-notice-C00i6VhY.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DSGSe4LH.js → ai-prompt-input-DzgyoKyk.js} +141 -139
- package/dist/_chunks/{alert-DdDpOi-P.js → alert-9kEwDza3.js} +122 -111
- package/dist/_chunks/{alia-sidebar-qe0quZkB.js → alia-sidebar-B06ZSOaF.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-card-CMzBLTiN.js → anamnesis-summary-card-DQ3iE1gD.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BIfw890v.js → anamnesis-summary-rows-CNK0fIJk.js} +392 -388
- package/dist/_chunks/{appointment-card-CL32sux-.js → appointment-card-5JMWi9_f.js} +2 -2
- package/dist/_chunks/{appointment-peek-B5mcDcXt.js → appointment-peek-D5XCfYKu.js} +2 -2
- package/dist/_chunks/{appointment-timeline-CCqjORFb.js → appointment-timeline-VFP6HoXT.js} +4 -4
- package/dist/_chunks/{appointment-tray-qtpJt8e0.js → appointment-tray-B3PDER3I.js} +3 -3
- package/dist/_chunks/{audio-recorder-DR-u1qbl.js → audio-recorder-4Ll0pwYK.js} +3 -3
- package/dist/_chunks/{auth-form-parts-Cmb41LSQ.js → auth-form-parts-B40zvD-a.js} +2 -2
- package/dist/_chunks/avatar-BPiPL7ND.js +199 -0
- package/dist/_chunks/{balance-badge-cell-DZNthHO1.js → balance-badge-cell-BG3DMly4.js} +4 -4
- package/dist/_chunks/{bishop-score-CaNTrikJ.js → bishop-score-Df8nF1qg.js} +2 -2
- package/dist/_chunks/{booking-DkjatiXc.js → booking-B1pDbERi.js} +377 -335
- package/dist/_chunks/{calendar-BhN-jisv.js → calendar-BvOM8rG3.js} +2 -2
- package/dist/_chunks/{calendar-workspace-Cp8yTZ1g.js → calendar-workspace-CYK1M83j.js} +19 -19
- package/dist/_chunks/{chat-message-fRLZ95O5.js → chat-message-Be-9vIIQ.js} +2 -2
- package/dist/_chunks/{clinical-note-card-BnFTIs6x.js → clinical-note-card-Caidqcwa.js} +2 -2
- package/dist/_chunks/{color-picker-BsggJovx.js → color-picker-AcaWuKah.js} +99 -95
- package/dist/_chunks/{combobox-U5yfO6o0.js → combobox-vF9O-QoG.js} +92 -83
- package/dist/_chunks/{contact-profile-card-C4-OCshj.js → contact-profile-card-CAwwOqHl.js} +40 -40
- package/dist/_chunks/{control-room-rail-DUerqHeo.js → control-room-rail-BB6rCDWI.js} +3 -3
- package/dist/_chunks/{country-select-DF5Bd_mn.js → country-select-CSE2Zm_s.js} +2 -2
- package/dist/_chunks/dashboard-grid-7JzaiKnk.js +1487 -0
- package/dist/_chunks/{data-table-COoCQ4n_.js → data-table-Cty4-Jht.js} +3 -3
- package/dist/_chunks/{dependent-selector-DBr1AhLg.js → dependent-selector-C4kOgO8b.js} +2 -2
- package/dist/_chunks/{document-preview-B1dQm292.js → document-preview-513f3iPn.js} +4 -4
- package/dist/_chunks/{document-scanner-CVPVLK7z.js → document-scanner-Bd3wbzpI.js} +2 -2
- package/dist/_chunks/{editable-description-ChGNdYY8.js → editable-description-DnAFi360.js} +2 -2
- package/dist/_chunks/{entity-summary-BQ9_KA8S.js → entity-summary-C2B8yNmc.js} +4 -4
- package/dist/_chunks/{error-summary-DrUfuKu1.js → error-summary-mGxIyDAY.js} +2 -2
- package/dist/_chunks/{face-scheme-DAD-mXzM.js → face-scheme-CSJdRNad.js} +248 -244
- package/dist/_chunks/{file-manager-RiV7-OEE.js → file-manager-D4cPnRhL.js} +3 -3
- package/dist/_chunks/{forgot-password-form-CgZkEvZy.js → forgot-password-form-Dqi7R-NL.js} +4 -4
- package/dist/_chunks/format-number-DdzqwMs1.js +13 -0
- package/dist/_chunks/{freemium-paywall-DKJHRFpp.js → freemium-paywall-C73C8Rgd.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CZYa2D6m.js → gestational-age-calculator-Du53p8MH.js} +2 -2
- package/dist/_chunks/{header-settings-BSH9Gk0J.js → header-settings-DlUbvAUx.js} +37 -36
- package/dist/_chunks/{heatmap-C1TeC7wT.js → heatmap-DbZIQg14.js} +4 -4
- package/dist/_chunks/help-me-write-templates-5WkUfvc_.js +687 -0
- package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
- package/dist/_chunks/{kit-extensions-DWs1UEXb.js → kit-extensions-CYvLL4ee.js} +3 -3
- package/dist/_chunks/length-token-DwMnGEYT.js +24 -0
- package/dist/_chunks/{link-cell-renderer-CtTsvfPY.js → link-cell-renderer-DtIsQWDO.js} +4 -4
- package/dist/_chunks/{login-dev-card-PnADNcI9.js → login-dev-card-vEL-o5wq.js} +3 -3
- package/dist/_chunks/{map-view-BuVfJMEa.js → map-view-CtohteZD.js} +300 -191
- package/dist/_chunks/{marketplace-app-shell-C-2e4eCD.js → marketplace-app-shell-CcLQ0Dn-.js} +4 -4
- package/dist/_chunks/{message-card-A3mJNqfy.js → message-card-C_ksqIYM.js} +2 -2
- package/dist/_chunks/{message-tray-Ft6vSr71.js → message-tray-DCoQ4GQb.js} +3 -3
- package/dist/_chunks/{multi-select-CMaAQQgb.js → multi-select-BOad3za9.js} +110 -98
- package/dist/_chunks/{muscle-scheme-YoN3rYXV.js → muscle-scheme-C66WlCxG.js} +2 -2
- package/dist/_chunks/{note-timeline-DDqNU46n.js → note-timeline-KzL52MmB.js} +2 -2
- package/dist/_chunks/{notes-panel-uEGIL7mi.js → notes-panel-BXN46XkF.js} +6 -6
- package/dist/_chunks/notice-group-DkYzKyAZ.js +291 -0
- package/dist/_chunks/{notification-tray-BR3seWA7.js → notification-tray-Cp18MW5b.js} +2 -2
- package/dist/_chunks/{operator-hero-3_RG4Dkj.js → operator-hero-6aAIQaFZ.js} +83 -66
- package/dist/_chunks/{optical-prescription-CxfMsbxi.js → optical-prescription-ulXnDbBe.js} +525 -509
- package/dist/_chunks/panel-header-CbtlTe85.js +190 -0
- package/dist/_chunks/{panel-subview-yP4qIbKS.js → panel-subview-BPU7220K.js} +2 -2
- package/dist/_chunks/{patient-details-4P1vA9Ls.js → patient-details-C4Dyo7Ck.js} +4 -4
- package/dist/_chunks/{patient-field-row-CBXhlfGD.js → patient-field-row-DROvUkFu.js} +155 -176
- package/dist/_chunks/{patient-search-DOnDUVsl.js → patient-search-BADdx3M1.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CuDLo8MP.js → patient-summary-card-CAimxbuI.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-C8MEu0t6.js → payment-automation-upsell-CiwF5UrC.js} +2 -2
- package/dist/_chunks/{payment-form-C3dGY7v4.js → payment-form-PBuh8PIa.js} +2 -2
- package/dist/_chunks/{pdf-viewer-DJ9VN7cu.js → pdf-viewer-gAsNUsA8.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-CPy7CNFe.js → periodontal-risk-chart-B7S9OmPC.js} +97 -89
- package/dist/_chunks/practice-profile-hero-qfrsFQI_.js +236 -0
- package/dist/_chunks/{practice-results-8h2Utpt3.js → practice-results-BzThnpnm.js} +328 -298
- package/dist/_chunks/{pregnancy-dating-B8wo4l_r.js → pregnancy-dating-EFcFUJkQ.js} +2 -2
- package/dist/_chunks/{privacy-mask-Ch7743uk.js → privacy-mask-CCz9zuIh.js} +2 -2
- package/dist/_chunks/{product-hub-panel-C_ZosrBt.js → product-hub-panel-YuFbNPlT.js} +2 -2
- package/dist/_chunks/progress-notice-DiHWZ8Ms.js +279 -0
- package/dist/_chunks/{province-select-Bd20Z9Br.js → province-select-CDjs5obD.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-8Ewv8-d7.js → radiograph-panel.agent-4UllIoTQ.js} +2 -2
- package/dist/_chunks/{rating-C1Vrmpsi.js → rating-CGYpg5dj.js} +43 -44
- package/dist/_chunks/{registration-form-BQyT_kBX.js → registration-form-1B0PTDal.js} +4 -4
- package/dist/_chunks/{reviews-panel-AvsVgtJu.js → reviews-panel-CosDZyow.js} +29 -7
- package/dist/_chunks/{rich-text-editor-M2gT_E7f.js → rich-text-editor-56dSsyZI.js} +1653 -1743
- package/dist/_chunks/{select-k4gBdS8N.js → select-4S-eYZUf.js} +244 -214
- package/dist/_chunks/{sign-document-CY7xTXbm.js → sign-document-BiOTs1P4.js} +2 -2
- package/dist/_chunks/{signature-request-BMCHy2ZO.js → signature-request-DAmNj_uq.js} +5 -5
- package/dist/_chunks/skeleton-tTWJpvAq.js +415 -0
- package/dist/_chunks/{slot-grid-dj5f6R2w.js → slot-grid-D_gix9mJ.js} +2 -2
- package/dist/_chunks/{tabs-2x3L13jn.js → tabs-BTj-2qMZ.js} +2 -2
- package/dist/_chunks/{task-card-BS7Uqevr.js → task-card-Ci2XbLmq.js} +2 -2
- package/dist/_chunks/{task-editor-CifOznfq.js → task-editor-BomyxGoZ.js} +8 -8
- package/dist/_chunks/{task-tray-eQU4KJcA.js → task-tray-Dnc72nl-.js} +3 -3
- package/dist/_chunks/{tasks-panel-8nLwBw6P.js → tasks-panel-ATz9JDy8.js} +6 -6
- package/dist/_chunks/{theme-toggle-Ctb77x6O.js → theme-toggle-DT_Jn4DC.js} +147 -138
- package/dist/_chunks/{timeline-DEIuHrWz.js → timeline-wUuTDFY_.js} +2 -2
- package/dist/_chunks/{tool-rail-C-03rH2I.js → tool-rail-C-M3eVdY.js} +2 -2
- package/dist/_chunks/{transcript-panel-XudW5l6l.js → transcript-panel-CoHHpcFg.js} +2 -2
- package/dist/_chunks/{treatment-receipt-Cpm8tqQN.js → treatment-receipt-pFqWFyD_.js} +2 -2
- package/dist/_chunks/{unit-converter-BPZ0Ldkb.js → unit-converter-CIoTmCmP.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-B-FEWbQM.js → use-appointment-details-read-CUGfE0hV.js} +13 -13
- package/dist/_chunks/use-dismissed-CTOWqA0e.js +177 -0
- package/dist/_chunks/voice-control-panel-B8Lrk0C4.js +1148 -0
- package/dist/_chunks/{warning-stack-HYWAytZV.js → warning-stack-BhHUmRiD.js} +2 -2
- package/dist/_chunks/{workflow-map-C2B2qIr1.js → workflow-map-ln4_OG8A.js} +2 -2
- package/dist/agent-catalog.json +221 -6
- package/dist/agent-i18n/en.json +32 -5
- package/dist/components/_shared/format-number.d.ts +20 -0
- package/dist/components/_shared/length-token.d.ts +12 -0
- package/dist/components/_shared/option.d.ts +1 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.agent.d.ts +4 -0
- package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.d.ts +96 -0
- package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +30 -4
- package/dist/components/ai-credits-notice/index.d.ts +3 -0
- package/dist/components/ai-credits-notice/index.js +10 -4
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/alert.d.ts +26 -0
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +2 -0
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +20 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/components/map-view/index.d.ts +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +51 -0
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notice-group/index.d.ts +3 -0
- package/dist/components/notice-group/index.js +6 -0
- package/dist/components/notice-group/notice-group.agent.d.ts +4 -0
- package/dist/components/notice-group/notice-group.d.ts +43 -0
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/optical-prescription/optical-prescription-data.d.ts +8 -8
- package/dist/components/panel-header/index.js +1 -1
- package/dist/components/panel-header/panel-header.d.ts +10 -0
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +4 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +10 -2
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/progress-notice/index.d.ts +3 -0
- package/dist/components/progress-notice/index.js +6 -0
- package/dist/components/progress-notice/progress-notice.agent.d.ts +4 -0
- package/dist/components/progress-notice/progress-notice.d.ts +81 -0
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rating/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +6 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +41 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.d.ts +2 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/voice-control-panel/voice-control-panel.d.ts +43 -3
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +81 -76
- package/dist/hooks/use-dismissed.d.ts +58 -0
- package/dist/i18n/locales/ar.d.ts +49 -12
- package/dist/i18n/locales/ar.js +49 -12
- package/dist/i18n/locales/de.d.ts +49 -12
- package/dist/i18n/locales/de.js +49 -12
- package/dist/i18n/locales/el.d.ts +49 -12
- package/dist/i18n/locales/el.js +49 -12
- package/dist/i18n/locales/en.d.ts +49 -12
- package/dist/i18n/locales/en.js +49 -12
- package/dist/i18n/locales/es.d.ts +49 -12
- package/dist/i18n/locales/es.js +49 -12
- package/dist/i18n/locales/fr.d.ts +49 -12
- package/dist/i18n/locales/fr.js +49 -12
- package/dist/i18n/locales/hi.d.ts +49 -12
- package/dist/i18n/locales/hi.js +49 -12
- package/dist/i18n/locales/it.d.ts +49 -12
- package/dist/i18n/locales/it.js +49 -12
- package/dist/i18n/locales/ja.d.ts +49 -12
- package/dist/i18n/locales/ja.js +49 -12
- package/dist/i18n/locales/nl.d.ts +49 -12
- package/dist/i18n/locales/nl.js +49 -12
- package/dist/i18n/locales/pl.d.ts +49 -12
- package/dist/i18n/locales/pl.js +49 -12
- package/dist/i18n/locales/pt.d.ts +49 -12
- package/dist/i18n/locales/pt.js +49 -12
- package/dist/i18n/locales/ro.d.ts +49 -12
- package/dist/i18n/locales/ro.js +49 -12
- package/dist/i18n/locales/ru.d.ts +49 -12
- package/dist/i18n/locales/ru.js +49 -12
- package/dist/i18n/locales/sq.d.ts +49 -12
- package/dist/i18n/locales/sq.js +49 -12
- package/dist/i18n/locales/sv.d.ts +49 -12
- package/dist/i18n/locales/sv.js +49 -12
- package/dist/i18n/locales/tr.d.ts +49 -12
- package/dist/i18n/locales/tr.js +49 -12
- package/dist/i18n/locales/zh.d.ts +49 -12
- package/dist/i18n/locales/zh.js +49 -12
- package/dist/index.js +1193 -1177
- package/dist/locales/ar.json +49 -12
- package/dist/locales/de.json +49 -12
- package/dist/locales/el.json +49 -12
- package/dist/locales/en.json +49 -12
- package/dist/locales/es.json +49 -12
- package/dist/locales/fr.json +49 -12
- package/dist/locales/hi.json +49 -12
- package/dist/locales/it.json +49 -12
- package/dist/locales/ja.json +49 -12
- package/dist/locales/nl.json +49 -12
- package/dist/locales/pl.json +49 -12
- package/dist/locales/pt.json +49 -12
- package/dist/locales/ro.json +49 -12
- package/dist/locales/ru.json +49 -12
- package/dist/locales/sq.json +49 -12
- package/dist/locales/sv.json +49 -12
- package/dist/locales/tr.json +49 -12
- package/dist/locales/zh.json +49 -12
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +6 -23
- package/dist/patterns/help-me-write-templates/index.js +8 -7
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +9 -1
- package/dist/_chunks/ai-credits-notice-pK9BOmEz.js +0 -90
- package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +0 -17
- package/dist/_chunks/avatar-WZY3eGE7.js +0 -123
- package/dist/_chunks/dashboard-grid-B2MB7SRS.js +0 -1428
- package/dist/_chunks/help-me-write-templates-DFmqnsAa.js +0 -747
- package/dist/_chunks/panel-header-BJkaUwnl.js +0 -128
- package/dist/_chunks/practice-profile-hero-Dfc0F60y.js +0 -193
- package/dist/_chunks/skeleton-B1KTdJ4N.js +0 -116
- package/dist/_chunks/voice-control-panel-C0BfY23Y.js +0 -1009
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsx as l, jsxs as
|
|
2
|
-
import { forwardRef as Pe, useId as
|
|
1
|
+
import { jsx as l, jsxs as m, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Pe, useId as $e, useState as T, useMemo as E, useCallback as Ae, useRef as G, useEffect as ee } from "react";
|
|
3
3
|
import * as F from "@radix-ui/react-popover";
|
|
4
|
-
import { u as
|
|
4
|
+
import { u as Me, f as Se } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
5
5
|
import { c as se } from "./index-D2ZczOXr.js";
|
|
6
|
-
import { useTranslation as
|
|
7
|
-
import {
|
|
6
|
+
import { useTranslation as Te } from "react-i18next";
|
|
7
|
+
import { a as Ee } from "./format-number-DdzqwMs1.js";
|
|
8
|
+
import { u as Le, a as ze } from "./form-field-context-DtiROUJV.js";
|
|
8
9
|
import { S as re } from "./slider-pZ95bEm7.js";
|
|
9
|
-
import { u as
|
|
10
|
+
import { u as Re } from "./registry-DvAUVLHh.js";
|
|
10
11
|
import { C as ne } from "./check-DrFSN__t.js";
|
|
11
|
-
import { X as
|
|
12
|
-
const
|
|
12
|
+
import { X as Ie } from "./x-B5YnXwCz.js";
|
|
13
|
+
const Fe = {
|
|
13
14
|
id: "color-picker",
|
|
14
15
|
capabilities: ["set_value"],
|
|
15
16
|
state: {
|
|
@@ -56,7 +57,7 @@ const Re = {
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
|
-
function
|
|
60
|
+
function He(e) {
|
|
60
61
|
let t = e.startsWith("#") ? e.slice(1) : e;
|
|
61
62
|
(t.length === 3 || t.length === 4) && (t = t.split("").map((c) => c + c).join(""));
|
|
62
63
|
const r = parseInt(t.slice(0, 2), 16) / 255, s = parseInt(t.slice(2, 4), 16) / 255, n = parseInt(t.slice(4, 6), 16) / 255, d = t.length === 8 ? parseInt(t.slice(6, 8), 16) / 255 : 1;
|
|
@@ -64,16 +65,16 @@ function Ie(e) {
|
|
|
64
65
|
}
|
|
65
66
|
function oe(e, t, r, s) {
|
|
66
67
|
const n = Math.max(e, t, r), d = Math.min(e, t, r), c = (n + d) / 2;
|
|
67
|
-
let
|
|
68
|
+
let h = 0, w = 0;
|
|
68
69
|
if (n !== d) {
|
|
69
70
|
const x = n - d;
|
|
70
|
-
w = c > 0.5 ? x / (2 - n - d) : x / (n + d), n === e ?
|
|
71
|
+
w = c > 0.5 ? x / (2 - n - d) : x / (n + d), n === e ? h = ((t - r) / x + (t < r ? 6 : 0)) / 6 : n === t ? h = ((r - e) / x + 2) / 6 : h = ((e - t) / x + 4) / 6;
|
|
71
72
|
}
|
|
72
73
|
return {
|
|
73
74
|
// Preserve byte identity through RGB -> HSL -> RGB. Palette colours
|
|
74
75
|
// can be server identifiers, so even one changed channel is a different
|
|
75
76
|
// selection. Round human-facing labels only, never this stored value.
|
|
76
|
-
h:
|
|
77
|
+
h: h * 360,
|
|
77
78
|
s: w * 100,
|
|
78
79
|
l: c * 100,
|
|
79
80
|
a: s
|
|
@@ -83,7 +84,7 @@ function C(e) {
|
|
|
83
84
|
const { r: t, g: r, b: s } = W(e), n = (c) => Math.round(c * 255).toString(16).padStart(2, "0"), d = `#${n(t)}${n(r)}${n(s)}`;
|
|
84
85
|
return e.a < 1 ? `${d}${n(e.a)}` : d;
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function _e(e) {
|
|
87
88
|
const { r: t, g: r, b: s } = W(e), n = Math.round(t * 255), d = Math.round(r * 255), c = Math.round(s * 255);
|
|
88
89
|
return e.a < 1 ? `rgba(${n}, ${d}, ${c}, ${e.a})` : `rgba(${n}, ${d}, ${c}, 1)`;
|
|
89
90
|
}
|
|
@@ -109,7 +110,7 @@ function j(e, t) {
|
|
|
109
110
|
case "hsl":
|
|
110
111
|
return e.a < 1 ? `hsla(${Math.round(e.h)}, ${Math.round(e.s)}%, ${Math.round(e.l)}%, ${e.a})` : `hsl(${Math.round(e.h)}, ${Math.round(e.s)}%, ${Math.round(e.l)}%)`;
|
|
111
112
|
case "rgba":
|
|
112
|
-
return
|
|
113
|
+
return _e(e);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
function y(e) {
|
|
@@ -117,7 +118,7 @@ function y(e) {
|
|
|
117
118
|
if (!t) return null;
|
|
118
119
|
if (t.startsWith("#")) {
|
|
119
120
|
const n = t.slice(1);
|
|
120
|
-
return !/^[0-9a-fA-F]{3,8}$/.test(n) || ![3, 4, 6, 8].includes(n.length) ? null :
|
|
121
|
+
return !/^[0-9a-fA-F]{3,8}$/.test(n) || ![3, 4, 6, 8].includes(n.length) ? null : He(t);
|
|
121
122
|
}
|
|
122
123
|
const r = t.match(
|
|
123
124
|
/^hsla?\(\s*([\d.]+)\s*[,/]\s*([\d.]+)%?\s*[,/]\s*([\d.]+)%?\s*(?:[,/]\s*([\d.]+))?\s*\)$/
|
|
@@ -133,8 +134,8 @@ function y(e) {
|
|
|
133
134
|
/^rgba?\(\s*([\d.]+)\s*[,/]\s*([\d.]+)\s*[,/]\s*([\d.]+)\s*(?:[,/]\s*([\d.]+))?\s*\)$/
|
|
134
135
|
);
|
|
135
136
|
if (s) {
|
|
136
|
-
const n = parseFloat(s[1]) / 255, d = parseFloat(s[2]) / 255, c = parseFloat(s[3]) / 255,
|
|
137
|
-
return oe(n, d, c,
|
|
137
|
+
const n = parseFloat(s[1]) / 255, d = parseFloat(s[2]) / 255, c = parseFloat(s[3]) / 255, h = s[4] !== void 0 ? parseFloat(s[4]) : 1;
|
|
138
|
+
return oe(n, d, c, h);
|
|
138
139
|
}
|
|
139
140
|
return null;
|
|
140
141
|
}
|
|
@@ -142,17 +143,17 @@ function ae(e) {
|
|
|
142
143
|
const { r: t, g: r, b: s } = W(e), n = (d) => d <= 0.03928 ? d / 12.92 : Math.pow((d + 0.055) / 1.055, 2.4);
|
|
143
144
|
return 0.2126 * n(t) + 0.7152 * n(r) + 0.0722 * n(s);
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
+
function Oe(e, t) {
|
|
146
147
|
const r = ae(e), s = ae(t), n = Math.max(r, s), d = Math.min(r, s);
|
|
147
148
|
return Math.round((n + 0.05) / (d + 0.05) * 100) / 100;
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function Be(e) {
|
|
150
151
|
return e >= 4.5;
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
+
function Ve(e) {
|
|
153
154
|
return e >= 7;
|
|
154
155
|
}
|
|
155
|
-
const
|
|
156
|
+
const Ge = [
|
|
156
157
|
{ name: "Pink 500", hex: "#e91e63", textColor: "#ffffff" },
|
|
157
158
|
{ name: "Black", hex: "#000000", textColor: "#ffffff" },
|
|
158
159
|
{ name: "Blue 500", hex: "#2196f3", textColor: "#ffffff" },
|
|
@@ -183,7 +184,7 @@ const Be = [
|
|
|
183
184
|
{ name: "Orange 900", hex: "#e65100", textColor: "#000000" },
|
|
184
185
|
{ name: "White", hex: "#ffffff", textColor: "#000000" },
|
|
185
186
|
{ name: "Yellow 500", hex: "#ffeb3b", textColor: "#000000" }
|
|
186
|
-
],
|
|
187
|
+
], ca = [
|
|
187
188
|
{ name: "Blue 300", hex: "#70738c" },
|
|
188
189
|
{ name: "Blue 500", hex: "#292e53" },
|
|
189
190
|
{ name: "Blue 700", hex: "#1d213b" },
|
|
@@ -202,7 +203,7 @@ const Be = [
|
|
|
202
203
|
{ name: "Grey 300", hex: "#f9f6f3" },
|
|
203
204
|
{ name: "Grey 500", hex: "#f6f1ed" },
|
|
204
205
|
{ name: "Grey 700", hex: "#afaba8" }
|
|
205
|
-
],
|
|
206
|
+
], fa = [
|
|
206
207
|
{ name: "Tomato", hex: "#d50000" },
|
|
207
208
|
{ name: "Flamingo", hex: "#e67c73" },
|
|
208
209
|
{ name: "Tangerine", hex: "#f4511e" },
|
|
@@ -214,7 +215,7 @@ const Be = [
|
|
|
214
215
|
{ name: "Lavender", hex: "#7986cb" },
|
|
215
216
|
{ name: "Grape", hex: "#8e24aa" },
|
|
216
217
|
{ name: "Graphite", hex: "#616161" }
|
|
217
|
-
], u = 6,
|
|
218
|
+
], u = 6, De = se(
|
|
218
219
|
[
|
|
219
220
|
"ds:inline-flex ds:items-center ds:w-full",
|
|
220
221
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
@@ -233,7 +234,7 @@ const Be = [
|
|
|
233
234
|
},
|
|
234
235
|
defaultVariants: { size: "md" }
|
|
235
236
|
}
|
|
236
|
-
),
|
|
237
|
+
), je = se(
|
|
237
238
|
[
|
|
238
239
|
"ds:relative ds:rounded-[var(--radius-sm)] ds:border-2 ds:cursor-pointer",
|
|
239
240
|
"ds:transition-[transform,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
@@ -268,20 +269,20 @@ const Be = [
|
|
|
268
269
|
},
|
|
269
270
|
defaultVariants: { selected: !1, size: "md" }
|
|
270
271
|
}
|
|
271
|
-
),
|
|
272
|
+
), Ke = [
|
|
272
273
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
273
274
|
"ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
274
275
|
"ds:p-[var(--spacing-md)]"
|
|
275
|
-
].join(" "),
|
|
276
|
+
].join(" "), We = [
|
|
276
277
|
"ds:bg-[image:repeating-conic-gradient(var(--color-grey-700)_0%_25%,transparent_0%_50%)]",
|
|
277
278
|
"ds:bg-[size:8px_8px]"
|
|
278
|
-
].join(" "),
|
|
279
|
+
].join(" "), Ue = [
|
|
279
280
|
"ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
280
281
|
"ds:p-[var(--spacing-sm)]"
|
|
281
|
-
].join(" "),
|
|
282
|
+
].join(" "), Xe = [
|
|
282
283
|
"ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
283
284
|
"ds:p-[var(--spacing-xs)]"
|
|
284
|
-
].join(" "),
|
|
285
|
+
].join(" "), Ye = [
|
|
285
286
|
"ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
|
|
286
287
|
"ds:border ds:border-[color:var(--border)] ds:bg-[var(--background)] ds:shadow-[var(--shadow-lg)]",
|
|
287
288
|
"ds:w-72",
|
|
@@ -289,14 +290,14 @@ const Be = [
|
|
|
289
290
|
"ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0 ds:data-[state=closed]:zoom-out-95",
|
|
290
291
|
"ds:data-[side=bottom]:slide-in-from-top-2 ds:data-[side=top]:slide-in-from-bottom-2",
|
|
291
292
|
"ds:data-[side=left]:slide-in-from-right-2 ds:data-[side=right]:slide-in-from-left-2"
|
|
292
|
-
].join(" "),
|
|
293
|
+
].join(" "), qe = [
|
|
293
294
|
"ds:w-full ds:rounded-[var(--radius-sm)] ds:border ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
294
295
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[length:var(--font-size-sm)]",
|
|
295
296
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
296
297
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
297
298
|
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
298
299
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
299
|
-
].join(" "), ie = "ds:[&>span:first-child]:bg-transparent ds:[&>span:first-child>span]:bg-transparent",
|
|
300
|
+
].join(" "), ie = "ds:[&>span:first-child]:bg-transparent ds:[&>span:first-child>span]:bg-transparent", Je = Pe(
|
|
300
301
|
(e, t) => {
|
|
301
302
|
const {
|
|
302
303
|
value: r,
|
|
@@ -304,14 +305,14 @@ const Be = [
|
|
|
304
305
|
onChange: n,
|
|
305
306
|
format: d = "hex",
|
|
306
307
|
allowOpacity: c = !1,
|
|
307
|
-
palette:
|
|
308
|
+
palette: h,
|
|
308
309
|
against: w,
|
|
309
310
|
size: x = "md",
|
|
310
311
|
disabled: de = !1,
|
|
311
312
|
variant: le = "inline",
|
|
312
313
|
compact: S = !0,
|
|
313
314
|
className: U
|
|
314
|
-
} = e, { t: g } =
|
|
315
|
+
} = e, { t: g, i18n: ce } = Te("ui"), $ = Le(), fe = $e(), N = ze($) || fe, b = $.disabled || de, L = r !== void 0, [X, ue] = T(() => {
|
|
315
316
|
const a = r ?? s;
|
|
316
317
|
if (a) {
|
|
317
318
|
const i = y(a);
|
|
@@ -324,40 +325,40 @@ const Be = [
|
|
|
324
325
|
if (a) return a;
|
|
325
326
|
}
|
|
326
327
|
return X;
|
|
327
|
-
}, [L, r, X]), v =
|
|
328
|
+
}, [L, r, X]), v = Ae(
|
|
328
329
|
(a) => {
|
|
329
330
|
const i = c ? a : { ...a, a: 1 };
|
|
330
|
-
L ||
|
|
331
|
+
L || ue(i), n == null || n(j(i, d));
|
|
331
332
|
},
|
|
332
333
|
[c, d, L, n]
|
|
333
|
-
), [Y, H] = T(() => C(o)), [
|
|
334
|
+
), [Y, H] = T(() => C(o)), [me, z] = T(!1), P = G(void 0), _ = G(o);
|
|
334
335
|
_.current = o, ee(() => {
|
|
335
|
-
H(C(o)), z(!1),
|
|
336
|
+
H(C(o)), z(!1), P.current !== void 0 && (clearTimeout(P.current), P.current = void 0);
|
|
336
337
|
}, [o]), ee(() => () => {
|
|
337
|
-
|
|
338
|
+
P.current !== void 0 && clearTimeout(P.current);
|
|
338
339
|
}, []);
|
|
339
340
|
const he = () => {
|
|
340
341
|
const a = y(Y);
|
|
341
|
-
a ? (z(!1), v(a)) : (z(!0),
|
|
342
|
-
|
|
342
|
+
a ? (z(!1), v(a)) : (z(!0), P.current = setTimeout(() => {
|
|
343
|
+
P.current = void 0, z(!1), H(C(_.current));
|
|
343
344
|
}, 800));
|
|
344
|
-
}, A = E(() =>
|
|
345
|
+
}, A = E(() => h ? h.map(
|
|
345
346
|
(a) => typeof a == "string" ? { name: a.toUpperCase(), hex: a } : a
|
|
346
|
-
) :
|
|
347
|
+
) : Ge, [h]), ge = C(o), O = E(
|
|
347
348
|
() => A.map((a) => {
|
|
348
349
|
const i = y(a.hex);
|
|
349
350
|
return i ? C(i).toLowerCase() : null;
|
|
350
351
|
}),
|
|
351
352
|
[A]
|
|
352
353
|
).findIndex(
|
|
353
|
-
(a) => a !== null && a ===
|
|
354
|
+
(a) => a !== null && a === ge.toLowerCase()
|
|
354
355
|
), R = G(null), [p, q] = T(
|
|
355
356
|
O >= 0 ? O : 0
|
|
356
|
-
),
|
|
357
|
+
), pe = (a) => {
|
|
357
358
|
var f;
|
|
358
359
|
const i = (f = R.current) == null ? void 0 : f.querySelectorAll('[role="gridcell"]');
|
|
359
360
|
i != null && i[a] && (i[a].focus(), q(a));
|
|
360
|
-
},
|
|
361
|
+
}, xe = (a) => {
|
|
361
362
|
if (b) return;
|
|
362
363
|
const i = A.length;
|
|
363
364
|
let f = p;
|
|
@@ -402,8 +403,8 @@ const Be = [
|
|
|
402
403
|
default:
|
|
403
404
|
return;
|
|
404
405
|
}
|
|
405
|
-
a.preventDefault(),
|
|
406
|
-
}, [
|
|
406
|
+
a.preventDefault(), pe(f);
|
|
407
|
+
}, [be, J] = T(!1), ve = E(
|
|
407
408
|
() => ({
|
|
408
409
|
getValue: () => C(_.current),
|
|
409
410
|
setValue: (a) => {
|
|
@@ -413,14 +414,14 @@ const Be = [
|
|
|
413
414
|
}),
|
|
414
415
|
[v]
|
|
415
416
|
);
|
|
416
|
-
|
|
417
|
+
Re(Fe, ve, N);
|
|
417
418
|
const I = E(() => {
|
|
418
419
|
if (!w) return null;
|
|
419
420
|
const a = y(w);
|
|
420
421
|
if (!a) return null;
|
|
421
|
-
const i =
|
|
422
|
-
return { ratio: i, aa:
|
|
423
|
-
}, [w, o]),
|
|
422
|
+
const i = Oe(o, a);
|
|
423
|
+
return { ratio: i, aa: Be(i), aaa: Ve(i) };
|
|
424
|
+
}, [w, o]), Ce = (
|
|
424
425
|
// eslint-disable-next-line jsx-a11y/interactive-supports-focus -- inner gridcells are individually focusable via roving tabindex
|
|
425
426
|
/* @__PURE__ */ l(
|
|
426
427
|
"div",
|
|
@@ -428,7 +429,7 @@ const Be = [
|
|
|
428
429
|
ref: R,
|
|
429
430
|
role: "grid",
|
|
430
431
|
"aria-label": g("inputs.colorPicker.paletteLabel", "Colour palette"),
|
|
431
|
-
onKeyDown:
|
|
432
|
+
onKeyDown: xe,
|
|
432
433
|
className: "ds:grid ds:grid-cols-6 ds:gap-[var(--spacing-xs)]",
|
|
433
434
|
children: A.map((a, i) => {
|
|
434
435
|
const f = Math.floor(i / u) * u;
|
|
@@ -451,7 +452,7 @@ const Be = [
|
|
|
451
452
|
const Z = y(k.hex);
|
|
452
453
|
Z && v(Z), q(B);
|
|
453
454
|
},
|
|
454
|
-
className:
|
|
455
|
+
className: je({ selected: V, size: x }),
|
|
455
456
|
style: { "--swatch-bg": k.hex },
|
|
456
457
|
children: V ? /* @__PURE__ */ l(
|
|
457
458
|
ne,
|
|
@@ -468,12 +469,12 @@ const Be = [
|
|
|
468
469
|
})
|
|
469
470
|
}
|
|
470
471
|
)
|
|
471
|
-
),
|
|
472
|
-
/* @__PURE__ */
|
|
472
|
+
), we = S ? null : /* @__PURE__ */ m(Ne, { children: [
|
|
473
|
+
/* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
473
474
|
/* @__PURE__ */ l(
|
|
474
475
|
"label",
|
|
475
476
|
{
|
|
476
|
-
htmlFor: `${
|
|
477
|
+
htmlFor: `${N}-hex`,
|
|
477
478
|
className: "ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)]",
|
|
478
479
|
children: g("inputs.colorPicker.hex", "Hex")
|
|
479
480
|
}
|
|
@@ -481,17 +482,17 @@ const Be = [
|
|
|
481
482
|
/* @__PURE__ */ l("bdi", { dir: "ltr", children: /* @__PURE__ */ l(
|
|
482
483
|
"input",
|
|
483
484
|
{
|
|
484
|
-
id: `${
|
|
485
|
+
id: `${N}-hex`,
|
|
485
486
|
type: "text",
|
|
486
487
|
value: Y,
|
|
487
488
|
disabled: b,
|
|
488
489
|
onChange: (a) => H(a.target.value),
|
|
489
490
|
onBlur: he,
|
|
490
|
-
className: `${
|
|
491
|
+
className: `${qe} ${me ? "ds:border-[var(--destructive)]" : "ds:border-[color:var(--control-border)]"}`
|
|
491
492
|
}
|
|
492
493
|
) })
|
|
493
494
|
] }),
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
495
496
|
/* @__PURE__ */ l(
|
|
496
497
|
K,
|
|
497
498
|
{
|
|
@@ -531,13 +532,13 @@ const Be = [
|
|
|
531
532
|
disabled: b
|
|
532
533
|
}
|
|
533
534
|
),
|
|
534
|
-
c ? /* @__PURE__ */
|
|
535
|
+
c ? /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
535
536
|
/* @__PURE__ */ l("label", { className: "ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)]", children: g("inputs.colorPicker.opacity", "Opacity") }),
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ m("div", { className: "ds:relative", children: [
|
|
537
538
|
/* @__PURE__ */ l(
|
|
538
539
|
"div",
|
|
539
540
|
{
|
|
540
|
-
className: `ds:absolute ds:inset-0 ds:rounded-[var(--radius-full)] ds:pointer-events-none ${
|
|
541
|
+
className: `ds:absolute ds:inset-0 ds:rounded-[var(--radius-full)] ds:pointer-events-none ${We}`,
|
|
541
542
|
"aria-hidden": "true"
|
|
542
543
|
}
|
|
543
544
|
),
|
|
@@ -568,7 +569,7 @@ const Be = [
|
|
|
568
569
|
] })
|
|
569
570
|
] }) : null
|
|
570
571
|
] }),
|
|
571
|
-
I ? /* @__PURE__ */
|
|
572
|
+
I ? /* @__PURE__ */ m(
|
|
572
573
|
"div",
|
|
573
574
|
{
|
|
574
575
|
className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[length:var(--font-size-sm)]",
|
|
@@ -576,14 +577,17 @@ const Be = [
|
|
|
576
577
|
"aria-live": "polite",
|
|
577
578
|
children: [
|
|
578
579
|
/* @__PURE__ */ l("span", { className: "ds:tabular-nums", children: g("inputs.colorPicker.contrastRatio", {
|
|
579
|
-
ratio: I.ratio.
|
|
580
|
+
ratio: Ee(I.ratio, ce.language, {
|
|
581
|
+
minimumFractionDigits: 1,
|
|
582
|
+
maximumFractionDigits: 1
|
|
583
|
+
})
|
|
580
584
|
}) }),
|
|
581
585
|
/* @__PURE__ */ l(te, { level: "AA", passes: I.aa, t: g }),
|
|
582
586
|
/* @__PURE__ */ l(te, { level: "AAA", passes: I.aaa, t: g })
|
|
583
587
|
]
|
|
584
588
|
}
|
|
585
589
|
) : null,
|
|
586
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ m("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
587
591
|
/* @__PURE__ */ l(
|
|
588
592
|
"div",
|
|
589
593
|
{
|
|
@@ -594,46 +598,46 @@ const Be = [
|
|
|
594
598
|
),
|
|
595
599
|
/* @__PURE__ */ l("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:tabular-nums", children: j(o, d) })
|
|
596
600
|
] })
|
|
597
|
-
] }), Q = /* @__PURE__ */
|
|
601
|
+
] }), Q = /* @__PURE__ */ m(
|
|
598
602
|
"div",
|
|
599
603
|
{
|
|
600
|
-
className: S ? x === "sm" ?
|
|
604
|
+
className: S ? x === "sm" ? Xe : Ue : Ke,
|
|
601
605
|
children: [
|
|
602
|
-
|
|
603
|
-
|
|
606
|
+
Ce,
|
|
607
|
+
we
|
|
604
608
|
]
|
|
605
609
|
}
|
|
606
|
-
),
|
|
607
|
-
getAnchor:
|
|
610
|
+
), ke = Me(!0, {
|
|
611
|
+
getAnchor: Se,
|
|
608
612
|
onReturnToTrigger: () => J(!1)
|
|
609
613
|
});
|
|
610
614
|
return le === "inline" ? /* @__PURE__ */ l(
|
|
611
615
|
"div",
|
|
612
616
|
{
|
|
613
617
|
ref: t,
|
|
614
|
-
id:
|
|
618
|
+
id: N,
|
|
615
619
|
className: U,
|
|
616
620
|
"aria-describedby": $.describedBy || void 0,
|
|
617
621
|
"aria-invalid": $.invalid || void 0,
|
|
618
622
|
"aria-disabled": b || void 0,
|
|
619
623
|
"data-component": "color-picker",
|
|
620
|
-
"data-component-id":
|
|
624
|
+
"data-component-id": N,
|
|
621
625
|
"data-testid": "color-picker",
|
|
622
626
|
children: Q
|
|
623
627
|
}
|
|
624
|
-
) : /* @__PURE__ */
|
|
625
|
-
/* @__PURE__ */ l(F.Trigger, { asChild: !0, disabled: b, children: /* @__PURE__ */
|
|
628
|
+
) : /* @__PURE__ */ m(F.Root, { open: be, onOpenChange: J, children: [
|
|
629
|
+
/* @__PURE__ */ l(F.Trigger, { asChild: !0, disabled: b, children: /* @__PURE__ */ m(
|
|
626
630
|
"button",
|
|
627
631
|
{
|
|
628
632
|
ref: t,
|
|
629
633
|
type: "button",
|
|
630
|
-
id:
|
|
634
|
+
id: N,
|
|
631
635
|
"aria-describedby": $.describedBy || void 0,
|
|
632
636
|
"aria-invalid": $.invalid || void 0,
|
|
633
637
|
"aria-label": S ? g("inputs.colorPicker.triggerLabel", "Choose colour") : void 0,
|
|
634
|
-
className:
|
|
638
|
+
className: De({ size: x, className: U }),
|
|
635
639
|
"data-component": "color-picker",
|
|
636
|
-
"data-component-id":
|
|
640
|
+
"data-component-id": N,
|
|
637
641
|
"data-testid": "color-picker-trigger",
|
|
638
642
|
children: [
|
|
639
643
|
/* @__PURE__ */ l(
|
|
@@ -653,21 +657,21 @@ const Be = [
|
|
|
653
657
|
{
|
|
654
658
|
sideOffset: 4,
|
|
655
659
|
align: "start",
|
|
656
|
-
className:
|
|
657
|
-
onKeyDown:
|
|
660
|
+
className: Ye,
|
|
661
|
+
onKeyDown: ke,
|
|
658
662
|
children: Q
|
|
659
663
|
}
|
|
660
664
|
) })
|
|
661
665
|
] });
|
|
662
666
|
}
|
|
663
667
|
);
|
|
664
|
-
|
|
668
|
+
Je.displayName = "ColorPicker";
|
|
665
669
|
function te({
|
|
666
670
|
level: e,
|
|
667
671
|
passes: t,
|
|
668
672
|
t: r
|
|
669
673
|
}) {
|
|
670
|
-
return /* @__PURE__ */
|
|
674
|
+
return /* @__PURE__ */ m("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
671
675
|
/* @__PURE__ */ l(
|
|
672
676
|
"abbr",
|
|
673
677
|
{
|
|
@@ -683,7 +687,7 @@ function te({
|
|
|
683
687
|
className: "ds:size-4 ds:text-[var(--success)]"
|
|
684
688
|
}
|
|
685
689
|
) : /* @__PURE__ */ l(
|
|
686
|
-
|
|
690
|
+
Ie,
|
|
687
691
|
{
|
|
688
692
|
"aria-hidden": "true",
|
|
689
693
|
className: "ds:size-4 ds:text-[var(--destructive)]"
|
|
@@ -700,11 +704,11 @@ function K({
|
|
|
700
704
|
value: n,
|
|
701
705
|
onChange: d,
|
|
702
706
|
formatValue: c,
|
|
703
|
-
disabled:
|
|
707
|
+
disabled: h
|
|
704
708
|
}) {
|
|
705
|
-
return /* @__PURE__ */
|
|
709
|
+
return /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
706
710
|
/* @__PURE__ */ l("label", { className: "ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)]", children: e }),
|
|
707
|
-
/* @__PURE__ */
|
|
711
|
+
/* @__PURE__ */ m("div", { className: "ds:relative", children: [
|
|
708
712
|
/* @__PURE__ */ l(
|
|
709
713
|
"div",
|
|
710
714
|
{
|
|
@@ -723,7 +727,7 @@ function K({
|
|
|
723
727
|
onValueChange: ([w]) => d(w),
|
|
724
728
|
"aria-label": e,
|
|
725
729
|
formatValue: c,
|
|
726
|
-
disabled:
|
|
730
|
+
disabled: h,
|
|
727
731
|
className: ie
|
|
728
732
|
}
|
|
729
733
|
)
|
|
@@ -731,11 +735,11 @@ function K({
|
|
|
731
735
|
] });
|
|
732
736
|
}
|
|
733
737
|
export {
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
738
|
+
Ge as A,
|
|
739
|
+
ca as B,
|
|
740
|
+
Je as C,
|
|
741
|
+
fa as G,
|
|
742
|
+
Oe as c,
|
|
743
|
+
He as h
|
|
740
744
|
};
|
|
741
|
-
//# sourceMappingURL=color-picker-
|
|
745
|
+
//# sourceMappingURL=color-picker-AcaWuKah.js.map
|