@alfadocs/ui-kit-debug 0.65.0 → 0.67.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/{agenda-card-Bl-SBiCh.js → agenda-card-BxSFkqgY.js} +2 -2
- package/dist/_chunks/{agenda-card-Bl-SBiCh.js.map → agenda-card-BxSFkqgY.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-Bh1KfEOG.js → agenda-tray-T-BumlGZ.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bh1KfEOG.js.map → agenda-tray-T-BumlGZ.js.map} +1 -1
- package/dist/_chunks/{ai-consent-banner-Btzmk8OH.js → ai-consent-banner-Dxtx_WAh.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-Btzmk8OH.js.map → ai-consent-banner-Dxtx_WAh.js.map} +1 -1
- package/dist/_chunks/{ai-tools-rail-JnlTqfS4.js → ai-tools-rail-DfmewPUN.js} +92 -76
- package/dist/_chunks/ai-tools-rail-DfmewPUN.js.map +1 -0
- package/dist/_chunks/{alia-sidebar-CN8pA6c-.js → alia-sidebar-Ckv0yCKi.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CN8pA6c-.js.map → alia-sidebar-Ckv0yCKi.js.map} +1 -1
- package/dist/_chunks/{anamnesis-card-qeLYRG79.js → anamnesis-card-N8pIKWuS.js} +2 -2
- package/dist/_chunks/{anamnesis-card-qeLYRG79.js.map → anamnesis-card-N8pIKWuS.js.map} +1 -1
- package/dist/_chunks/{antenatal-schedule-timeline-BfzFjEyb.js → antenatal-schedule-timeline-35ebkcZT.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-BfzFjEyb.js.map → antenatal-schedule-timeline-35ebkcZT.js.map} +1 -1
- package/dist/_chunks/{appointment-tray-BQnJEora.js → appointment-tray-CQJ3Nbi5.js} +4 -4
- package/dist/_chunks/{appointment-tray-BQnJEora.js.map → appointment-tray-CQJ3Nbi5.js.map} +1 -1
- package/dist/_chunks/{badge-zsf5i5bH.js → badge-CqGsX32l.js} +46 -42
- package/dist/_chunks/badge-CqGsX32l.js.map +1 -0
- package/dist/_chunks/{bishop-score-x2fNqbuZ.js → bishop-score-CjsB9bM-.js} +3 -3
- package/dist/_chunks/{bishop-score-x2fNqbuZ.js.map → bishop-score-CjsB9bM-.js.map} +1 -1
- package/dist/_chunks/{bmi-calculator-C3roxbqD.js → bmi-calculator-n-823_1V.js} +3 -3
- package/dist/_chunks/{bmi-calculator-C3roxbqD.js.map → bmi-calculator-n-823_1V.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-D42WD4-T.js → care-plan-card-CJei-nl9.js} +4 -4
- package/dist/_chunks/{care-plan-card-D42WD4-T.js.map → care-plan-card-CJei-nl9.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-BukNI7Uy.js → care-plan-entry-card-EmfrbHu8.js} +4 -4
- package/dist/_chunks/{care-plan-entry-card-BukNI7Uy.js.map → care-plan-entry-card-EmfrbHu8.js.map} +1 -1
- package/dist/_chunks/{clinical-note-card-BYo437dU.js → clinical-note-card-gtrxv6zn.js} +2 -2
- package/dist/_chunks/{clinical-note-card-BYo437dU.js.map → clinical-note-card-gtrxv6zn.js.map} +1 -1
- package/dist/_chunks/{color-picker-9tL7pz5y.js → color-picker-B7xsn6tX.js} +186 -167
- package/dist/_chunks/color-picker-B7xsn6tX.js.map +1 -0
- package/dist/_chunks/columns-2-BTOBZbep.js +15 -0
- package/dist/_chunks/columns-2-BTOBZbep.js.map +1 -0
- package/dist/_chunks/{contact-profile-card-CCeJmjbd.js → contact-profile-card-7BMB85T6.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CCeJmjbd.js.map → contact-profile-card-7BMB85T6.js.map} +1 -1
- package/dist/_chunks/{cycle-calculator-DrVXbIB4.js → cycle-calculator-BF0ointe.js} +3 -3
- package/dist/_chunks/{cycle-calculator-DrVXbIB4.js.map → cycle-calculator-BF0ointe.js.map} +1 -1
- package/dist/_chunks/{dependent-selector-CRWgieHm.js → dependent-selector-DpzGtr_J.js} +2 -2
- package/dist/_chunks/{dependent-selector-CRWgieHm.js.map → dependent-selector-DpzGtr_J.js.map} +1 -1
- package/dist/_chunks/{document-scanner-biBS_f6c.js → document-scanner-D2qehl3-.js} +53 -53
- package/dist/_chunks/{document-scanner-biBS_f6c.js.map → document-scanner-D2qehl3-.js.map} +1 -1
- package/dist/_chunks/{due-date-calculator-D4K1BnE2.js → due-date-calculator-DU9AEWNy.js} +4 -4
- package/dist/_chunks/{due-date-calculator-D4K1BnE2.js.map → due-date-calculator-DU9AEWNy.js.map} +1 -1
- package/dist/_chunks/{editable-currency-cell-renderer-CFqQc56y.js → editable-currency-cell-renderer-BVJ04DkB.js} +914 -865
- package/dist/_chunks/editable-currency-cell-renderer-BVJ04DkB.js.map +1 -0
- package/dist/_chunks/{fetal-weight-B_pBjlO7.js → fetal-weight-BVSzOhuR.js} +3 -3
- package/dist/_chunks/{fetal-weight-B_pBjlO7.js.map → fetal-weight-BVSzOhuR.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-BETQAVkA.js → gestational-age-calculator-DBlFdoiP.js} +4 -4
- package/dist/_chunks/{gestational-age-calculator-BETQAVkA.js.map → gestational-age-calculator-DBlFdoiP.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-8zXCJgAQ.js → hcg-doubling-if4Q8aSX.js} +3 -3
- package/dist/_chunks/{hcg-doubling-8zXCJgAQ.js.map → hcg-doubling-if4Q8aSX.js.map} +1 -1
- package/dist/_chunks/{type-DZ5OMRA2.js → image-C6RM5hfF.js} +4 -16
- package/dist/_chunks/image-C6RM5hfF.js.map +1 -0
- package/dist/_chunks/{insert-result-DIAG3ltJ.js → insert-result-njqBthzT.js} +68 -57
- package/dist/_chunks/insert-result-njqBthzT.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-BXfRMiRk.js → marketplace-app-shell-Bu-HD3fy.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-BXfRMiRk.js.map → marketplace-app-shell-Bu-HD3fy.js.map} +1 -1
- package/dist/_chunks/{message-card-Bgcvfj6-.js → message-card-Bx4GmLvf.js} +9 -9
- package/dist/_chunks/{message-card-Bgcvfj6-.js.map → message-card-Bx4GmLvf.js.map} +1 -1
- package/dist/_chunks/{message-tray-saAVMeHP.js → message-tray-CVyJajVJ.js} +2 -2
- package/dist/_chunks/{message-tray-saAVMeHP.js.map → message-tray-CVyJajVJ.js.map} +1 -1
- package/dist/_chunks/{operator-hero-CM8949Hd.js → operator-hero-f_KaRhw5.js} +2 -2
- package/dist/_chunks/{operator-hero-CM8949Hd.js.map → operator-hero-f_KaRhw5.js.map} +1 -1
- package/dist/_chunks/{patient-search-Bw9ONucF.js → patient-search-DR9XUYRQ.js} +2 -2
- package/dist/_chunks/{patient-search-Bw9ONucF.js.map → patient-search-DR9XUYRQ.js.map} +1 -1
- package/dist/_chunks/{patient-shell-CF_qon7C.js → patient-shell-DrV_iekt.js} +2 -2
- package/dist/_chunks/{patient-shell-CF_qon7C.js.map → patient-shell-DrV_iekt.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-Bgso0p_l.js → patient-summary-card-ByfIU8N0.js} +4 -4
- package/dist/_chunks/{patient-summary-card-Bgso0p_l.js.map → patient-summary-card-ByfIU8N0.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-DBz3hVDz.js → payment-request-card-yTjzKQCU.js} +3 -3
- package/dist/_chunks/{payment-request-card-DBz3hVDz.js.map → payment-request-card-yTjzKQCU.js.map} +1 -1
- package/dist/_chunks/{periodontal-chart-card-AYyHtU9K.js → periodontal-chart-card-Dh3KgvYG.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-AYyHtU9K.js.map → periodontal-chart-card-Dh3KgvYG.js.map} +1 -1
- package/dist/_chunks/{practice-results-CVAgY2RZ.js → practice-results-DND2SAt7.js} +2 -2
- package/dist/_chunks/{practice-results-CVAgY2RZ.js.map → practice-results-DND2SAt7.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-BuzLTwjy.js → pregnancy-dating-QY-sqpvj.js} +4 -4
- package/dist/_chunks/{pregnancy-dating-BuzLTwjy.js.map → pregnancy-dating-QY-sqpvj.js.map} +1 -1
- package/dist/_chunks/{pregnancy-weight-gain-aicn7qs7.js → pregnancy-weight-gain-DOJXXNYP.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-aicn7qs7.js.map → pregnancy-weight-gain-DOJXXNYP.js.map} +1 -1
- package/dist/_chunks/rich-text-editor-BOQr5lHx.js +1970 -0
- package/dist/_chunks/rich-text-editor-BOQr5lHx.js.map +1 -0
- package/dist/_chunks/{scroll-area-BWqCkEGz.js → scroll-area-eccd_Uf-.js} +38 -28
- package/dist/_chunks/scroll-area-eccd_Uf-.js.map +1 -0
- package/dist/_chunks/{sidebar-DPEHzxLZ.js → sidebar-CGjIk_FQ.js} +36 -22
- package/dist/_chunks/sidebar-CGjIk_FQ.js.map +1 -0
- package/dist/_chunks/{suggestion-chip-C4kxWUIs.js → suggestion-chip-Bk4PmYTg.js} +30 -30
- package/dist/_chunks/suggestion-chip-Bk4PmYTg.js.map +1 -0
- package/dist/_chunks/{tab-bar-Xetknddo.js → tab-bar-B1ovILzh.js} +2 -2
- package/dist/_chunks/{tab-bar-Xetknddo.js.map → tab-bar-B1ovILzh.js.map} +1 -1
- package/dist/_chunks/{tag-CdA0s_VV.js → tag-BQXwuJq1.js} +41 -38
- package/dist/_chunks/tag-BQXwuJq1.js.map +1 -0
- package/dist/_chunks/{transaction-chip-BZCa6XDn.js → transaction-chip-BrW8P50O.js} +19 -19
- package/dist/_chunks/transaction-chip-BrW8P50O.js.map +1 -0
- package/dist/_chunks/trash-2-rPAKaRgB.js +18 -0
- package/dist/_chunks/trash-2-rPAKaRgB.js.map +1 -0
- package/dist/_chunks/{unit-converter-CHN2cZ4b.js → unit-converter-C1V3ACM9.js} +2 -2
- package/dist/_chunks/{unit-converter-CHN2cZ4b.js.map → unit-converter-C1V3ACM9.js.map} +1 -1
- package/dist/_chunks/{workflow-map-BX3JY1Bu.js → workflow-map-JAZryZJr.js} +137 -149
- package/dist/_chunks/workflow-map-JAZryZJr.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts.map +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +16 -0
- package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts.map +1 -1
- package/dist/components/data-table/cell-renderers/tooth-cell-renderer.d.ts +12 -0
- package/dist/components/data-table/cell-renderers/tooth-cell-renderer.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +1 -1
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/data-table/index.d.ts.map +1 -1
- package/dist/components/data-table/index.js +13 -12
- package/dist/components/data-table/toolbar.d.ts +5 -1
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/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/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +36 -2
- package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/tag.d.ts.map +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts.map +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +26 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +27 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +26 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +27 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +26 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +27 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +26 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +27 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +26 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +27 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +26 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +27 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +26 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +27 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +26 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +27 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +26 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +27 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +26 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +25 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +26 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +27 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +26 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +27 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +26 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +27 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +26 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +27 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +26 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +27 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +26 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +25 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +26 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +27 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +26 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +25 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +509 -508
- package/dist/locales/ar.json +27 -1
- package/dist/locales/de.json +27 -1
- package/dist/locales/el.json +27 -1
- package/dist/locales/en.json +27 -1
- package/dist/locales/es.json +27 -1
- package/dist/locales/fr.json +27 -1
- package/dist/locales/hi.json +27 -1
- package/dist/locales/it.json +27 -1
- package/dist/locales/ja.json +27 -1
- package/dist/locales/nl.json +27 -1
- package/dist/locales/pl.json +27 -1
- package/dist/locales/pt.json +27 -1
- package/dist/locales/ro.json +27 -1
- package/dist/locales/ru.json +27 -1
- package/dist/locales/sq.json +27 -1
- package/dist/locales/sv.json +27 -1
- package/dist/locales/tr.json +27 -1
- package/dist/locales/zh.json +27 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +6 -3
- package/package.json +1 -1
- package/dist/_chunks/ai-tools-rail-JnlTqfS4.js.map +0 -1
- package/dist/_chunks/badge-zsf5i5bH.js.map +0 -1
- package/dist/_chunks/color-picker-9tL7pz5y.js.map +0 -1
- package/dist/_chunks/editable-currency-cell-renderer-CFqQc56y.js.map +0 -1
- package/dist/_chunks/insert-result-DIAG3ltJ.js.map +0 -1
- package/dist/_chunks/rich-text-editor-u36FqSWz.js +0 -1190
- package/dist/_chunks/rich-text-editor-u36FqSWz.js.map +0 -1
- package/dist/_chunks/scroll-area-BWqCkEGz.js.map +0 -1
- package/dist/_chunks/sidebar-DPEHzxLZ.js.map +0 -1
- package/dist/_chunks/suggestion-chip-C4kxWUIs.js.map +0 -1
- package/dist/_chunks/tag-CdA0s_VV.js.map +0 -1
- package/dist/_chunks/transaction-chip-BZCa6XDn.js.map +0 -1
- package/dist/_chunks/type-DZ5OMRA2.js.map +0 -1
- package/dist/_chunks/workflow-map-BX3JY1Bu.js.map +0 -1
|
@@ -4,9 +4,20 @@ import { useTranslation as Dt } from "react-i18next";
|
|
|
4
4
|
import { c as Nt } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { B as Gt } from "./button-DD_0Xdmr.js";
|
|
6
6
|
import { L as Ht } from "./layers-pzGcbLPj.js";
|
|
7
|
-
import { I as Rt
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import { I as Rt } from "./image-C6RM5hfF.js";
|
|
8
|
+
import { c as Pt } from "./createLucideIcon-CrFbzy84.js";
|
|
9
|
+
/**
|
|
10
|
+
* @license lucide-react v1.8.0 - ISC
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the ISC license.
|
|
13
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
const Ft = [
|
|
16
|
+
["path", { d: "M12 4v16", key: "1654pz" }],
|
|
17
|
+
["path", { d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2", key: "e0r10z" }],
|
|
18
|
+
["path", { d: "M9 20h6", key: "s66wpe" }]
|
|
19
|
+
], Ot = Pt("type", Ft), Ut = 15, at = 40, zt = [18.5, 25, 30];
|
|
20
|
+
function Mn() {
|
|
10
21
|
return {
|
|
11
22
|
bands: [
|
|
12
23
|
{ upTo: 18.5, colorToken: "--info" },
|
|
@@ -14,19 +25,19 @@ function Tn() {
|
|
|
14
25
|
{ upTo: 30, colorToken: "--warning-readable" },
|
|
15
26
|
{ upTo: at, colorToken: "--destructive" }
|
|
16
27
|
],
|
|
17
|
-
min:
|
|
28
|
+
min: Ut,
|
|
18
29
|
max: at,
|
|
19
|
-
ticks: [...
|
|
30
|
+
ticks: [...zt]
|
|
20
31
|
};
|
|
21
32
|
}
|
|
22
|
-
const V = 14, j = 12,
|
|
33
|
+
const V = 14, j = 12, Wt = j / 2, ot = 18, Xt = 12, Vt = 16;
|
|
23
34
|
function N(t, n, i, a, o) {
|
|
24
35
|
if (i <= n) return a;
|
|
25
36
|
const r = (t - n) / (i - n);
|
|
26
37
|
return a + r * (o - a);
|
|
27
38
|
}
|
|
28
39
|
function pt(t, { width: n, height: i }) {
|
|
29
|
-
const a = V, o = n - V, r = ot +
|
|
40
|
+
const a = V, o = n - V, r = ot + Xt, e = ot, c = r + j + Vt;
|
|
30
41
|
let u = t.min;
|
|
31
42
|
const d = t.bands.map((l) => {
|
|
32
43
|
const T = Math.max(t.min, Math.min(u, t.max)), y = Math.max(t.min, Math.min(l.upTo, t.max));
|
|
@@ -44,7 +55,7 @@ function pt(t, { width: n, height: i }) {
|
|
|
44
55
|
barEnd: o,
|
|
45
56
|
barY: r,
|
|
46
57
|
barH: j,
|
|
47
|
-
barRadius:
|
|
58
|
+
barRadius: Wt,
|
|
48
59
|
bands: d,
|
|
49
60
|
marker: {
|
|
50
61
|
x: k,
|
|
@@ -67,7 +78,7 @@ function bt(t, n, i, a, o, r) {
|
|
|
67
78
|
c - r
|
|
68
79
|
)} ${d} H${s(t + o)} ${f} V${s(n + o)} ${b} Z`;
|
|
69
80
|
}
|
|
70
|
-
function
|
|
81
|
+
function jt(t, n) {
|
|
71
82
|
const { resolve: i, font: a, fg: o, muted: r, track: e } = n, c = M(a), u = `<rect x="${s(t.barStart)}" y="${s(
|
|
72
83
|
t.barY
|
|
73
84
|
)}" width="${s(t.barEnd - t.barStart)}" height="${t.barH}" rx="${t.barRadius}" fill="${e}"/>`, d = t.bands.length, f = t.bands.map((m, x) => {
|
|
@@ -126,12 +137,12 @@ function Xt(t, n) {
|
|
|
126
137
|
t.ariaLabel
|
|
127
138
|
)}">${D}${u}${f}${h}${y}${E}${w}${B}${S}</g>`;
|
|
128
139
|
}
|
|
129
|
-
const
|
|
130
|
-
function
|
|
140
|
+
const Kt = 260, Q = 64;
|
|
141
|
+
function Zt(t) {
|
|
131
142
|
return `var(${t})`;
|
|
132
143
|
}
|
|
133
|
-
const
|
|
134
|
-
function({ model: n, width: i =
|
|
144
|
+
const qt = ht(
|
|
145
|
+
function({ model: n, width: i = Kt, height: a = Q, className: o }, r) {
|
|
135
146
|
const e = pt(n, { width: i, height: a }), c = e.barY + e.barH, u = c + 4, d = e.barY - 3, f = e.barY + e.barH + 3, b = e.barY - 4, k = e.bands.length, h = e.barY + e.barH / 2;
|
|
136
147
|
return /* @__PURE__ */ P(
|
|
137
148
|
"svg",
|
|
@@ -169,7 +180,7 @@ const Kt = ht(
|
|
|
169
180
|
l === 0 ? e.barRadius : 0,
|
|
170
181
|
l === k - 1 ? e.barRadius : 0
|
|
171
182
|
),
|
|
172
|
-
fill:
|
|
183
|
+
fill: Zt($.colorToken)
|
|
173
184
|
},
|
|
174
185
|
`${$.colorToken}-${l}`
|
|
175
186
|
)),
|
|
@@ -271,8 +282,8 @@ const Kt = ht(
|
|
|
271
282
|
);
|
|
272
283
|
}
|
|
273
284
|
);
|
|
274
|
-
|
|
275
|
-
const
|
|
285
|
+
qt.displayName = "BandedGauge";
|
|
286
|
+
const Jt = 24, mt = 18, G = 12, gt = {
|
|
276
287
|
activity: '<path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"/>',
|
|
277
288
|
scale: '<path d="M12 3v18"/><path d="m19 8 3 8a5 5 0 0 1-6 0zV7"/><path d="M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1"/><path d="m5 8 3 8a5 5 0 0 1-6 0zV7"/><path d="M7 21h10"/>',
|
|
278
289
|
ruler: '<path d="M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z"/><path d="m14.5 12.5 2-2"/><path d="m11.5 9.5 2-2"/><path d="m8.5 6.5 2-2"/><path d="m17.5 15.5 2-2"/>',
|
|
@@ -291,14 +302,14 @@ function xt(t) {
|
|
|
291
302
|
}
|
|
292
303
|
function rt(t, n, i, a, o) {
|
|
293
304
|
if (!xt(t)) return "";
|
|
294
|
-
const r = o /
|
|
305
|
+
const r = o / Jt;
|
|
295
306
|
return `<g transform="translate(${i} ${a}) scale(${r})" fill="none" color="${n}" stroke="${n}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${gt[t]}</g>`;
|
|
296
307
|
}
|
|
297
308
|
function Y(t) {
|
|
298
309
|
return t.variant === "banded";
|
|
299
310
|
}
|
|
300
|
-
const
|
|
301
|
-
function
|
|
311
|
+
const Qt = ["fg", "muted", "accent", "border", "bg"], tt = "--primary", F = 380, vt = (t) => t.trim().replace(/^--/, "");
|
|
312
|
+
function tn(t) {
|
|
302
313
|
return `ds:text-[color:var(${t})]`;
|
|
303
314
|
}
|
|
304
315
|
function kt(t) {
|
|
@@ -368,8 +379,8 @@ function Lt(t) {
|
|
|
368
379
|
const n = t.fields.map((a) => `<li>${v(a.label)}: ${v(a.value)}</li>`).join(""), i = t.highlight ? `<p><strong>${v(t.highlight)}</strong></p>` : "";
|
|
369
380
|
return `<p><strong>${v(t.title)}</strong></p>${i}<ul>${n}</ul>`;
|
|
370
381
|
}
|
|
371
|
-
const L = 20, _ = L + 18, H = 22,
|
|
372
|
-
function
|
|
382
|
+
const L = 20, _ = L + 18, H = 22, nn = 10, wt = 22, st = 16, it = 12, en = 12, Tt = 34, Z = 9, q = (Tt + Z) * 2, an = 16, lt = mt, on = 6, R = L + G + on, X = F - L - R, ct = 13, Et = 14, It = 13, J = 16;
|
|
383
|
+
function rn(t) {
|
|
373
384
|
return t >= 4352 && t <= 4447 || // Hangul Jamo
|
|
374
385
|
t >= 11904 && t <= 42191 || // CJK radicals … Yi
|
|
375
386
|
t >= 44032 && t <= 55203 || // Hangul syllables
|
|
@@ -381,10 +392,10 @@ function an(t) {
|
|
|
381
392
|
function A(t, n) {
|
|
382
393
|
let i = 0;
|
|
383
394
|
for (const a of t)
|
|
384
|
-
i +=
|
|
395
|
+
i += rn(a.codePointAt(0) ?? 0) ? 1 : 0.62;
|
|
385
396
|
return i * n;
|
|
386
397
|
}
|
|
387
|
-
function
|
|
398
|
+
function sn(t, n, i) {
|
|
388
399
|
const a = [];
|
|
389
400
|
let o = "";
|
|
390
401
|
for (const r of t)
|
|
@@ -395,7 +406,7 @@ function ut(t, n, i) {
|
|
|
395
406
|
const a = [];
|
|
396
407
|
let o = "";
|
|
397
408
|
const r = (e) => {
|
|
398
|
-
const c =
|
|
409
|
+
const c = sn(e, n, i);
|
|
399
410
|
for (let u = 0; u < c.length - 1; u += 1) a.push(c[u]);
|
|
400
411
|
o = c[c.length - 1];
|
|
401
412
|
};
|
|
@@ -428,14 +439,14 @@ function nt(t, n) {
|
|
|
428
439
|
const i = n !== void 0 ? n : t.brand;
|
|
429
440
|
return typeof i == "string" ? i : !1;
|
|
430
441
|
}
|
|
431
|
-
function
|
|
442
|
+
function ln(t) {
|
|
432
443
|
if (typeof t.fraction == "number")
|
|
433
444
|
return Math.min(1, Math.max(0, t.fraction));
|
|
434
445
|
const n = parseFloat(t.value);
|
|
435
446
|
return Number.isFinite(n) && typeof t.max == "number" && t.max > 0 ? Math.min(1, Math.max(0, n / t.max)) : 1;
|
|
436
447
|
}
|
|
437
448
|
function _t(t, n) {
|
|
438
|
-
const i = !!t.highlight, a = _ +
|
|
449
|
+
const i = !!t.highlight, a = _ + nn, o = (i ? a + H + st : _ + st) + wt - 6, r = o + Mt(t).endDy, e = t.gauge && Y(t.gauge), d = t.gauge && !Y(t.gauge) ? (i ? a : _) + q : 0, f = e ? r + an : null, b = f !== null ? f + Q : 0, k = Math.max(r, d, b), h = n ? k + it + en - 4 : k, $ = Math.round(h + (n ? it : L));
|
|
439
450
|
return {
|
|
440
451
|
hasChip: i,
|
|
441
452
|
chipY: a,
|
|
@@ -449,8 +460,8 @@ function _t(t, n) {
|
|
|
449
460
|
function At(t, n) {
|
|
450
461
|
return _t(t, n !== !1).height;
|
|
451
462
|
}
|
|
452
|
-
function
|
|
453
|
-
const r = Tt, e = 2 * Math.PI * r, c =
|
|
463
|
+
function cn(t, n, i, a, o) {
|
|
464
|
+
const r = Tt, e = 2 * Math.PI * r, c = ln(t), u = O(n, t.colorToken, n.accent), d = typeof t.segments == "number" && t.segments > 1 ? t.segments : 0, f = d ? 3 : 0, b = d ? e / d - f : e, k = d ? `${b} ${f}` : "", h = `${e * c} ${e}`, $ = `transform="rotate(-90 ${a} ${o})"`, l = v(
|
|
454
465
|
t.label ? `${t.value} — ${t.label}` : t.value
|
|
455
466
|
), T = `<circle cx="${a}" cy="${o}" r="${r}" fill="none" stroke="${n.border}" stroke-width="${Z}"${k ? ` stroke-dasharray="${k}"` : ""} ${$}/>`, y = `<circle cx="${a}" cy="${o}" r="${r}" fill="none" stroke="${u}" stroke-width="${Z}" stroke-linecap="round" stroke-dasharray="${h}" ${$}/>`, p = `<text x="${a}" y="${o + 1}" text-anchor="middle" dominant-baseline="middle" font-family="${i}" font-size="16" font-weight="700" fill="${n.fg}">${v(
|
|
456
467
|
t.value
|
|
@@ -459,7 +470,7 @@ function sn(t, n, i, a, o) {
|
|
|
459
470
|
)}</text>` : "";
|
|
460
471
|
return `<g role="img" aria-label="${l}"><title>${l}</title>${T}${y}${p}${E}</g>`;
|
|
461
472
|
}
|
|
462
|
-
function
|
|
473
|
+
function un(t, n, i, a) {
|
|
463
474
|
const o = L - V, r = i - 2 * o, e = pt(
|
|
464
475
|
{
|
|
465
476
|
value: t.value,
|
|
@@ -473,7 +484,7 @@ function ln(t, n, i, a) {
|
|
|
473
484
|
ticks: t.ticks
|
|
474
485
|
},
|
|
475
486
|
{ width: r, height: Q }
|
|
476
|
-
), c =
|
|
487
|
+
), c = jt(e, {
|
|
477
488
|
resolve: (u) => O(n, u, n.accent),
|
|
478
489
|
// Raw theme font — buildBandedGaugeSvgString escapes it once. Passing the
|
|
479
490
|
// card's already-escaped `font` here would double-escape and break it.
|
|
@@ -495,14 +506,14 @@ function ft([t, n, i]) {
|
|
|
495
506
|
};
|
|
496
507
|
return 0.2126 * a(t) + 0.7152 * a(n) + 0.0722 * a(i);
|
|
497
508
|
}
|
|
498
|
-
function
|
|
509
|
+
function dn(t, n) {
|
|
499
510
|
const i = dt(t), a = dt(n);
|
|
500
511
|
if (!i || !a) return 0;
|
|
501
512
|
const o = ft(i), r = ft(a);
|
|
502
513
|
return (Math.max(o, r) + 0.05) / (Math.min(o, r) + 0.05);
|
|
503
514
|
}
|
|
504
|
-
function
|
|
505
|
-
const o = t.highlight, r = t.highlightToken ?? tt, e = O(n, r, n.accent), c =
|
|
515
|
+
function fn(t, n, i, a) {
|
|
516
|
+
const o = t.highlight, r = t.highlightToken ?? tt, e = O(n, r, n.accent), c = dn(n.bg, e) >= 3 ? n.bg : n.fg, u = Math.round(o.length * 7.2 + 28), d = L + u / 2, f = a + H / 2 + 1;
|
|
506
517
|
return `<rect x="${L}" y="${a}" width="${u}" height="${H}" rx="${H / 2}" fill="${e}"/><text x="${d}" y="${f}" text-anchor="middle" dominant-baseline="middle" font-family="${i}" font-size="12" font-weight="600" fill="${c}">${v(
|
|
507
518
|
o
|
|
508
519
|
)}</text>`;
|
|
@@ -537,9 +548,9 @@ function et(t, n, i = !1) {
|
|
|
537
548
|
)}</text>`;
|
|
538
549
|
}).join("");
|
|
539
550
|
return `${x}${C}`;
|
|
540
|
-
}).join(""), k = o.hasChip ?
|
|
551
|
+
}).join(""), k = o.hasChip ? fn(t, n, e, o.chipY) : "";
|
|
541
552
|
let h = "";
|
|
542
|
-
t.gauge && (Y(t.gauge) && o.bandedGaugeY !== null ? h =
|
|
553
|
+
t.gauge && (Y(t.gauge) && o.bandedGaugeY !== null ? h = un(t.gauge, n, a, o.bandedGaugeY) : Y(t.gauge) || (h = cn(
|
|
543
554
|
t.gauge,
|
|
544
555
|
n,
|
|
545
556
|
e,
|
|
@@ -555,7 +566,7 @@ function et(t, n, i = !1) {
|
|
|
555
566
|
t.title
|
|
556
567
|
)}">${T}${l}${d}${k}${h}${b}${$}${y}</svg>`;
|
|
557
568
|
}
|
|
558
|
-
function
|
|
569
|
+
function $n() {
|
|
559
570
|
var t;
|
|
560
571
|
return typeof navigator < "u" && typeof ((t = navigator.clipboard) == null ? void 0 : t.write) == "function" && typeof ClipboardItem < "u";
|
|
561
572
|
}
|
|
@@ -580,7 +591,7 @@ function Ct() {
|
|
|
580
591
|
const t = typeof window < "u" && typeof window.devicePixelRatio == "number" ? window.devicePixelRatio : 1;
|
|
581
592
|
return Math.max(2, t);
|
|
582
593
|
}
|
|
583
|
-
async function
|
|
594
|
+
async function _n(t, n = {}) {
|
|
584
595
|
return (await Yt(t, n)).dataUri;
|
|
585
596
|
}
|
|
586
597
|
async function Yt(t, n = {}) {
|
|
@@ -589,15 +600,15 @@ async function Yt(t, n = {}) {
|
|
|
589
600
|
Math.round(u * a),
|
|
590
601
|
Math.round(d * a)
|
|
591
602
|
);
|
|
592
|
-
return { dataUri: await
|
|
603
|
+
return { dataUri: await hn(f), width: u, height: d };
|
|
593
604
|
}
|
|
594
|
-
function
|
|
605
|
+
function hn(t) {
|
|
595
606
|
return new Promise((n, i) => {
|
|
596
607
|
const a = new FileReader();
|
|
597
608
|
a.onload = () => n(String(a.result)), a.onerror = () => i(a.error ?? new Error("FileReader error")), a.readAsDataURL(t);
|
|
598
609
|
});
|
|
599
610
|
}
|
|
600
|
-
async function
|
|
611
|
+
async function pn(t, n, i) {
|
|
601
612
|
const a = yt(n), o = new Blob([a], { type: "text/plain" });
|
|
602
613
|
if (t === "text")
|
|
603
614
|
return new ClipboardItem({ "text/plain": o });
|
|
@@ -615,7 +626,7 @@ async function $n(t, n, i) {
|
|
|
615
626
|
"text/plain": o
|
|
616
627
|
});
|
|
617
628
|
}
|
|
618
|
-
const
|
|
629
|
+
const bn = Nt(
|
|
619
630
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
620
631
|
{
|
|
621
632
|
variants: {
|
|
@@ -626,8 +637,8 @@ const hn = Nt(
|
|
|
626
637
|
},
|
|
627
638
|
defaultVariants: { variant: "insert" }
|
|
628
639
|
}
|
|
629
|
-
),
|
|
630
|
-
text: /* @__PURE__ */ g(
|
|
640
|
+
), mn = ["text", "image", "text-image"], gn = {
|
|
641
|
+
text: /* @__PURE__ */ g(Ot, { "aria-hidden": !0 }),
|
|
631
642
|
image: /* @__PURE__ */ g(Rt, { "aria-hidden": !0 }),
|
|
632
643
|
"text-image": /* @__PURE__ */ g(Ht, { "aria-hidden": !0 })
|
|
633
644
|
}, $t = {
|
|
@@ -641,7 +652,7 @@ const hn = Nt(
|
|
|
641
652
|
image: "insert.copyImage",
|
|
642
653
|
"text-image": "insert.copyTextImage"
|
|
643
654
|
}
|
|
644
|
-
},
|
|
655
|
+
}, xn = ht(
|
|
645
656
|
function({
|
|
646
657
|
card: n,
|
|
647
658
|
variant: i = "insert",
|
|
@@ -657,7 +668,7 @@ const hn = Nt(
|
|
|
657
668
|
const w = l === "text" ? null : K(f.current, W(n));
|
|
658
669
|
return w && (p = et(n, w, nt(n, void 0)), E = `data:image/svg+xml,${encodeURIComponent(p)}`), { mode: l, text: T, html: y, svg: p, imageDataUri: E, pngDataUri: () => w ? Yt(n, { colours: w }) : Promise.resolve({ dataUri: "", width: 0, height: 0 }) };
|
|
659
670
|
}, $ = i === "copy" ? (l) => {
|
|
660
|
-
if (
|
|
671
|
+
if (!$n()) {
|
|
661
672
|
r == null || r(new Error("Clipboard write unavailable in this context"));
|
|
662
673
|
return;
|
|
663
674
|
}
|
|
@@ -667,7 +678,7 @@ const hn = Nt(
|
|
|
667
678
|
);
|
|
668
679
|
(async () => {
|
|
669
680
|
try {
|
|
670
|
-
const y = await
|
|
681
|
+
const y = await pn(l, n, T);
|
|
671
682
|
await navigator.clipboard.write([y]), o == null || o(l);
|
|
672
683
|
} catch (y) {
|
|
673
684
|
r == null || r(y);
|
|
@@ -682,10 +693,10 @@ const hn = Nt(
|
|
|
682
693
|
ref: u,
|
|
683
694
|
"data-component": "insert-result",
|
|
684
695
|
"data-variant": i,
|
|
685
|
-
className:
|
|
696
|
+
className: bn({ variant: i }),
|
|
686
697
|
children: [
|
|
687
698
|
/* @__PURE__ */ P("span", { ref: f, "aria-hidden": !0, className: "ds:sr-only", children: [
|
|
688
|
-
|
|
699
|
+
Qt.map((l) => /* @__PURE__ */ g(
|
|
689
700
|
"span",
|
|
690
701
|
{
|
|
691
702
|
"data-k": l,
|
|
@@ -697,18 +708,18 @@ const hn = Nt(
|
|
|
697
708
|
"span",
|
|
698
709
|
{
|
|
699
710
|
"data-token": vt(l),
|
|
700
|
-
className:
|
|
711
|
+
className: tn(l)
|
|
701
712
|
},
|
|
702
713
|
l
|
|
703
714
|
))
|
|
704
715
|
] }),
|
|
705
|
-
|
|
716
|
+
mn.map((l) => /* @__PURE__ */ g(
|
|
706
717
|
Gt,
|
|
707
718
|
{
|
|
708
719
|
type: "button",
|
|
709
720
|
intent: c,
|
|
710
721
|
size: e,
|
|
711
|
-
startIcon:
|
|
722
|
+
startIcon: gn[l],
|
|
712
723
|
"aria-label": d($t[i][l]),
|
|
713
724
|
onClick: () => $(l),
|
|
714
725
|
children: d($t[i][l])
|
|
@@ -720,12 +731,12 @@ const hn = Nt(
|
|
|
720
731
|
);
|
|
721
732
|
}
|
|
722
733
|
);
|
|
723
|
-
|
|
734
|
+
xn.displayName = "InsertButton";
|
|
724
735
|
export {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
736
|
+
qt as B,
|
|
737
|
+
xn as I,
|
|
738
|
+
_n as a,
|
|
739
|
+
Mn as b,
|
|
729
740
|
Yt as s
|
|
730
741
|
};
|
|
731
|
-
//# sourceMappingURL=insert-result-
|
|
742
|
+
//# sourceMappingURL=insert-result-njqBthzT.js.map
|