@alfadocs/ui-kit 1.56.0 → 1.57.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/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
- package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-CCQ62mMN.js} +4 -4
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CII3SDmR.js} +3 -3
- package/dist/_chunks/{booking-WyNGKPE2.js → booking-81WnKDsH.js} +3 -3
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-D5-k_9zE.js} +13 -13
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
- package/dist/_chunks/{chart-HsF1KHbx.js → chart-DQ5GxqgT.js} +347 -350
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
- package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
- package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
- package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-fAMTeAjM.js} +2 -2
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
- package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
- package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
- package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
- package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
- package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
- package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
- package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-CFsL1KVt.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
- package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-BEeOThkW.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-BUoYGo6f.js} +2 -2
- package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
- package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
- package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-CxW_oLa5.js} +2 -2
- package/dist/_chunks/link-gRw3NtOt.js +137 -0
- package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
- package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
- package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
- package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
- package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-Cm4pttpl.js} +4 -4
- package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
- package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-opdyfeW2.js} +4 -4
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
- package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
- package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
- package/dist/_chunks/popover-BG75rYjN.js +367 -0
- package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-CfRkjzsI.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
- package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
- package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-BctevbuY.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
- package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-8qsiMoUI.js} +2 -2
- package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
- package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-DRuYAG5I.js} +2 -2
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
- package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-NkcopDna.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
- package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-rBA7MR5P.js} +2 -2
- package/dist/agent-catalog.json +2 -2
- package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- 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/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chart/chart.d.ts +5 -5
- package/dist/components/chart/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/contact-card/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/index.js +2 -2
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/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/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -3
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/nav-grid/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/notification-tray/index.js +1 -1
- package/dist/components/patient-details/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-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +14 -0
- package/dist/i18n/locales/ar.js +15 -1
- package/dist/i18n/locales/de.d.ts +14 -0
- package/dist/i18n/locales/de.js +15 -1
- package/dist/i18n/locales/el.d.ts +14 -0
- package/dist/i18n/locales/el.js +15 -1
- package/dist/i18n/locales/en.d.ts +14 -0
- package/dist/i18n/locales/en.js +15 -1
- package/dist/i18n/locales/es.d.ts +14 -0
- package/dist/i18n/locales/es.js +15 -1
- package/dist/i18n/locales/fr.d.ts +14 -0
- package/dist/i18n/locales/fr.js +15 -1
- package/dist/i18n/locales/hi.d.ts +14 -0
- package/dist/i18n/locales/hi.js +15 -1
- package/dist/i18n/locales/it.d.ts +14 -0
- package/dist/i18n/locales/it.js +15 -1
- package/dist/i18n/locales/ja.d.ts +14 -0
- package/dist/i18n/locales/ja.js +15 -1
- package/dist/i18n/locales/nl.d.ts +14 -0
- package/dist/i18n/locales/nl.js +15 -1
- package/dist/i18n/locales/pl.d.ts +14 -0
- package/dist/i18n/locales/pl.js +15 -1
- package/dist/i18n/locales/pt.d.ts +14 -0
- package/dist/i18n/locales/pt.js +15 -1
- package/dist/i18n/locales/ro.d.ts +14 -0
- package/dist/i18n/locales/ro.js +15 -1
- package/dist/i18n/locales/ru.d.ts +14 -0
- package/dist/i18n/locales/ru.js +15 -1
- package/dist/i18n/locales/sq.d.ts +14 -0
- package/dist/i18n/locales/sq.js +15 -1
- package/dist/i18n/locales/sv.d.ts +14 -0
- package/dist/i18n/locales/sv.js +15 -1
- package/dist/i18n/locales/tr.d.ts +14 -0
- package/dist/i18n/locales/tr.js +15 -1
- package/dist/i18n/locales/zh.d.ts +14 -0
- package/dist/i18n/locales/zh.js +15 -1
- package/dist/index.js +194 -193
- package/dist/locales/ar.json +15 -1
- package/dist/locales/de.json +15 -1
- package/dist/locales/el.json +15 -1
- package/dist/locales/en.json +15 -1
- package/dist/locales/es.json +15 -1
- package/dist/locales/fr.json +15 -1
- package/dist/locales/hi.json +15 -1
- package/dist/locales/it.json +15 -1
- package/dist/locales/ja.json +15 -1
- package/dist/locales/nl.json +15 -1
- package/dist/locales/pl.json +15 -1
- package/dist/locales/pt.json +15 -1
- package/dist/locales/ro.json +15 -1
- package/dist/locales/ru.json +15 -1
- package/dist/locales/sq.json +15 -1
- package/dist/locales/sv.json +15 -1
- package/dist/locales/tr.json +15 -1
- package/dist/locales/zh.json +15 -1
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
- package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
- package/dist/patterns/alia-assistant/index.d.ts +2 -0
- package/dist/patterns/alia-assistant/index.js +6 -5
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
- package/dist/_chunks/link-2HokYuIi.js +0 -130
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
- package/dist/_chunks/popover-BI3oV3eY.js +0 -305
|
@@ -7,7 +7,7 @@ import { B as b } from "./badge-hnBt8o7n.js";
|
|
|
7
7
|
import { C as S } from "./card-DMO2nkt4.js";
|
|
8
8
|
import { T as B } from "./timestamp-DPLDWdxA.js";
|
|
9
9
|
import { SafeHtml as ie } from "../safe-html/index.js";
|
|
10
|
-
import { n as te, P as I, F as O, N as re } from "./note-attachment-
|
|
10
|
+
import { n as te, P as I, F as O, N as re } from "./note-attachment-Bt2cddsZ.js";
|
|
11
11
|
import { u as de } from "./use-clamp-overflow-DQE2kwZ9.js";
|
|
12
12
|
import { u as ne } from "./registry-DvAUVLHh.js";
|
|
13
13
|
const oe = {
|
|
@@ -337,4 +337,4 @@ export {
|
|
|
337
337
|
ue as C,
|
|
338
338
|
oe as c
|
|
339
339
|
};
|
|
340
|
-
//# sourceMappingURL=clinical-note-card-
|
|
340
|
+
//# sourceMappingURL=clinical-note-card-hx939bvw.js.map
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsx as l, jsxs as h, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as l, jsxs as h, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Pe, useId as Ne, useState as T, useMemo as E, useCallback as $e, useRef as G, useEffect as ee } from "react";
|
|
3
3
|
import * as F from "@radix-ui/react-popover";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
4
|
+
import { u as Ae, f as Me } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
5
|
+
import { c as se } from "./index-D2ZczOXr.js";
|
|
6
|
+
import { useTranslation as Se } from "react-i18next";
|
|
7
|
+
import { u as Te, a as Ee } from "./form-field-context-DtiROUJV.js";
|
|
8
|
+
import { S as re } from "./slider-pZ95bEm7.js";
|
|
9
|
+
import { u as Le } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { C as ne } from "./check-DrFSN__t.js";
|
|
11
|
+
import { X as ze } from "./x-B5YnXwCz.js";
|
|
12
|
+
const Re = {
|
|
12
13
|
id: "color-picker",
|
|
13
14
|
capabilities: ["set_value"],
|
|
14
15
|
state: {
|
|
@@ -55,13 +56,13 @@ const Ee = {
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
};
|
|
58
|
-
function
|
|
59
|
+
function Ie(e) {
|
|
59
60
|
let t = e.startsWith("#") ? e.slice(1) : e;
|
|
60
61
|
(t.length === 3 || t.length === 4) && (t = t.split("").map((c) => c + c).join(""));
|
|
61
62
|
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;
|
|
62
|
-
return
|
|
63
|
+
return oe(r, s, n, d);
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function oe(e, t, r, s) {
|
|
65
66
|
const n = Math.max(e, t, r), d = Math.min(e, t, r), c = (n + d) / 2;
|
|
66
67
|
let m = 0, w = 0;
|
|
67
68
|
if (n !== d) {
|
|
@@ -82,7 +83,7 @@ function C(e) {
|
|
|
82
83
|
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)}`;
|
|
83
84
|
return e.a < 1 ? `${d}${n(e.a)}` : d;
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function Fe(e) {
|
|
86
87
|
const { r: t, g: r, b: s } = W(e), n = Math.round(t * 255), d = Math.round(r * 255), c = Math.round(s * 255);
|
|
87
88
|
return e.a < 1 ? `rgba(${n}, ${d}, ${c}, ${e.a})` : `rgba(${n}, ${d}, ${c}, 1)`;
|
|
88
89
|
}
|
|
@@ -92,23 +93,23 @@ function W(e) {
|
|
|
92
93
|
return { r: s, g: s, b: s };
|
|
93
94
|
const n = s < 0.5 ? s * (1 + r) : s + r - s * r, d = 2 * s - n;
|
|
94
95
|
return {
|
|
95
|
-
r:
|
|
96
|
-
g:
|
|
97
|
-
b:
|
|
96
|
+
r: D(d, n, t + 1 / 3),
|
|
97
|
+
g: D(d, n, t),
|
|
98
|
+
b: D(d, n, t - 1 / 3)
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function D(e, t, r) {
|
|
101
102
|
let s = r;
|
|
102
103
|
return s < 0 && (s += 1), s > 1 && (s -= 1), s < 1 / 6 ? e + (t - e) * 6 * s : s < 1 / 2 ? t : s < 2 / 3 ? e + (t - e) * (2 / 3 - s) * 6 : e;
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function j(e, t) {
|
|
105
106
|
switch (t) {
|
|
106
107
|
case "hex":
|
|
107
108
|
return C(e);
|
|
108
109
|
case "hsl":
|
|
109
110
|
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)}%)`;
|
|
110
111
|
case "rgba":
|
|
111
|
-
return
|
|
112
|
+
return Fe(e);
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
function y(e) {
|
|
@@ -116,7 +117,7 @@ function y(e) {
|
|
|
116
117
|
if (!t) return null;
|
|
117
118
|
if (t.startsWith("#")) {
|
|
118
119
|
const n = t.slice(1);
|
|
119
|
-
return !/^[0-9a-fA-F]{3,8}$/.test(n) || ![3, 4, 6, 8].includes(n.length) ? null :
|
|
120
|
+
return !/^[0-9a-fA-F]{3,8}$/.test(n) || ![3, 4, 6, 8].includes(n.length) ? null : Ie(t);
|
|
120
121
|
}
|
|
121
122
|
const r = t.match(
|
|
122
123
|
/^hsla?\(\s*([\d.]+)\s*[,/]\s*([\d.]+)%?\s*[,/]\s*([\d.]+)%?\s*(?:[,/]\s*([\d.]+))?\s*\)$/
|
|
@@ -133,25 +134,25 @@ function y(e) {
|
|
|
133
134
|
);
|
|
134
135
|
if (s) {
|
|
135
136
|
const n = parseFloat(s[1]) / 255, d = parseFloat(s[2]) / 255, c = parseFloat(s[3]) / 255, m = s[4] !== void 0 ? parseFloat(s[4]) : 1;
|
|
136
|
-
return
|
|
137
|
+
return oe(n, d, c, m);
|
|
137
138
|
}
|
|
138
139
|
return null;
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
+
function ae(e) {
|
|
141
142
|
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);
|
|
142
143
|
return 0.2126 * n(t) + 0.7152 * n(r) + 0.0722 * n(s);
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
-
const r =
|
|
145
|
+
function He(e, t) {
|
|
146
|
+
const r = ae(e), s = ae(t), n = Math.max(r, s), d = Math.min(r, s);
|
|
146
147
|
return Math.round((n + 0.05) / (d + 0.05) * 100) / 100;
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
+
function _e(e) {
|
|
149
150
|
return e >= 4.5;
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
+
function Oe(e) {
|
|
152
153
|
return e >= 7;
|
|
153
154
|
}
|
|
154
|
-
const
|
|
155
|
+
const Be = [
|
|
155
156
|
{ name: "Pink 500", hex: "#e91e63", textColor: "#ffffff" },
|
|
156
157
|
{ name: "Black", hex: "#000000", textColor: "#ffffff" },
|
|
157
158
|
{ name: "Blue 500", hex: "#2196f3", textColor: "#ffffff" },
|
|
@@ -182,7 +183,7 @@ const He = [
|
|
|
182
183
|
{ name: "Orange 900", hex: "#e65100", textColor: "#000000" },
|
|
183
184
|
{ name: "White", hex: "#ffffff", textColor: "#000000" },
|
|
184
185
|
{ name: "Yellow 500", hex: "#ffeb3b", textColor: "#000000" }
|
|
185
|
-
],
|
|
186
|
+
], ia = [
|
|
186
187
|
{ name: "Blue 300", hex: "#70738c" },
|
|
187
188
|
{ name: "Blue 500", hex: "#292e53" },
|
|
188
189
|
{ name: "Blue 700", hex: "#1d213b" },
|
|
@@ -201,7 +202,7 @@ const He = [
|
|
|
201
202
|
{ name: "Grey 300", hex: "#f9f6f3" },
|
|
202
203
|
{ name: "Grey 500", hex: "#f6f1ed" },
|
|
203
204
|
{ name: "Grey 700", hex: "#afaba8" }
|
|
204
|
-
],
|
|
205
|
+
], da = [
|
|
205
206
|
{ name: "Tomato", hex: "#d50000" },
|
|
206
207
|
{ name: "Flamingo", hex: "#e67c73" },
|
|
207
208
|
{ name: "Tangerine", hex: "#f4511e" },
|
|
@@ -213,7 +214,7 @@ const He = [
|
|
|
213
214
|
{ name: "Lavender", hex: "#7986cb" },
|
|
214
215
|
{ name: "Grape", hex: "#8e24aa" },
|
|
215
216
|
{ name: "Graphite", hex: "#616161" }
|
|
216
|
-
], u = 6,
|
|
217
|
+
], u = 6, Ve = se(
|
|
217
218
|
[
|
|
218
219
|
"ds:inline-flex ds:items-center ds:w-full",
|
|
219
220
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
@@ -232,7 +233,7 @@ const He = [
|
|
|
232
233
|
},
|
|
233
234
|
defaultVariants: { size: "md" }
|
|
234
235
|
}
|
|
235
|
-
),
|
|
236
|
+
), Ge = se(
|
|
236
237
|
[
|
|
237
238
|
"ds:relative ds:rounded-[var(--radius-sm)] ds:border-2 ds:cursor-pointer",
|
|
238
239
|
"ds:transition-[transform,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
@@ -267,20 +268,20 @@ const He = [
|
|
|
267
268
|
},
|
|
268
269
|
defaultVariants: { selected: !1, size: "md" }
|
|
269
270
|
}
|
|
270
|
-
),
|
|
271
|
+
), De = [
|
|
271
272
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
272
273
|
"ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
273
274
|
"ds:p-[var(--spacing-md)]"
|
|
274
|
-
].join(" "),
|
|
275
|
+
].join(" "), je = [
|
|
275
276
|
"ds:bg-[image:repeating-conic-gradient(var(--color-grey-700)_0%_25%,transparent_0%_50%)]",
|
|
276
277
|
"ds:bg-[size:8px_8px]"
|
|
277
|
-
].join(" "),
|
|
278
|
+
].join(" "), Ke = [
|
|
278
279
|
"ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
279
280
|
"ds:p-[var(--spacing-sm)]"
|
|
280
|
-
].join(" "),
|
|
281
|
+
].join(" "), We = [
|
|
281
282
|
"ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
282
283
|
"ds:p-[var(--spacing-xs)]"
|
|
283
|
-
].join(" "),
|
|
284
|
+
].join(" "), Ue = [
|
|
284
285
|
"ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
|
|
285
286
|
"ds:border ds:border-[color:var(--border)] ds:bg-[var(--background)] ds:shadow-[var(--shadow-lg)]",
|
|
286
287
|
"ds:w-72",
|
|
@@ -288,14 +289,14 @@ const He = [
|
|
|
288
289
|
"ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0 ds:data-[state=closed]:zoom-out-95",
|
|
289
290
|
"ds:data-[side=bottom]:slide-in-from-top-2 ds:data-[side=top]:slide-in-from-bottom-2",
|
|
290
291
|
"ds:data-[side=left]:slide-in-from-right-2 ds:data-[side=right]:slide-in-from-left-2"
|
|
291
|
-
].join(" "),
|
|
292
|
+
].join(" "), Xe = [
|
|
292
293
|
"ds:w-full ds:rounded-[var(--radius-sm)] ds:border ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
293
294
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[length:var(--font-size-sm)]",
|
|
294
295
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
295
296
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
296
297
|
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
297
298
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
298
|
-
].join(" "),
|
|
299
|
+
].join(" "), ie = "ds:[&>span:first-child]:bg-transparent ds:[&>span:first-child>span]:bg-transparent", Ye = Pe(
|
|
299
300
|
(e, t) => {
|
|
300
301
|
const {
|
|
301
302
|
value: r,
|
|
@@ -306,11 +307,11 @@ const He = [
|
|
|
306
307
|
palette: m,
|
|
307
308
|
against: w,
|
|
308
309
|
size: x = "md",
|
|
309
|
-
disabled:
|
|
310
|
-
variant:
|
|
310
|
+
disabled: de = !1,
|
|
311
|
+
variant: le = "inline",
|
|
311
312
|
compact: S = !0,
|
|
312
313
|
className: U
|
|
313
|
-
} = e, { t: g } =
|
|
314
|
+
} = e, { t: g } = Se("ui"), $ = Te(), ce = Ne(), P = Ee($) || ce, b = $.disabled || de, L = r !== void 0, [X, fe] = T(() => {
|
|
314
315
|
const a = r ?? s;
|
|
315
316
|
if (a) {
|
|
316
317
|
const i = y(a);
|
|
@@ -323,41 +324,41 @@ const He = [
|
|
|
323
324
|
if (a) return a;
|
|
324
325
|
}
|
|
325
326
|
return X;
|
|
326
|
-
}, [L, r, X]),
|
|
327
|
+
}, [L, r, X]), v = $e(
|
|
327
328
|
(a) => {
|
|
328
329
|
const i = c ? a : { ...a, a: 1 };
|
|
329
|
-
L ||
|
|
330
|
+
L || fe(i), n == null || n(j(i, d));
|
|
330
331
|
},
|
|
331
332
|
[c, d, L, n]
|
|
332
|
-
), [Y, H] = T(() => C(o)), [
|
|
333
|
-
_.current = o,
|
|
334
|
-
H(C(o)), z(!1),
|
|
335
|
-
}, [o]),
|
|
336
|
-
|
|
333
|
+
), [Y, H] = T(() => C(o)), [ue, z] = T(!1), N = G(void 0), _ = G(o);
|
|
334
|
+
_.current = o, ee(() => {
|
|
335
|
+
H(C(o)), z(!1), N.current !== void 0 && (clearTimeout(N.current), N.current = void 0);
|
|
336
|
+
}, [o]), ee(() => () => {
|
|
337
|
+
N.current !== void 0 && clearTimeout(N.current);
|
|
337
338
|
}, []);
|
|
338
|
-
const
|
|
339
|
+
const he = () => {
|
|
339
340
|
const a = y(Y);
|
|
340
|
-
a ? (z(!1),
|
|
341
|
-
|
|
341
|
+
a ? (z(!1), v(a)) : (z(!0), N.current = setTimeout(() => {
|
|
342
|
+
N.current = void 0, z(!1), H(C(_.current));
|
|
342
343
|
}, 800));
|
|
343
344
|
}, A = E(() => m ? m.map(
|
|
344
345
|
(a) => typeof a == "string" ? { name: a.toUpperCase(), hex: a } : a
|
|
345
|
-
) :
|
|
346
|
+
) : Be, [m]), me = C(o), O = E(
|
|
346
347
|
() => A.map((a) => {
|
|
347
348
|
const i = y(a.hex);
|
|
348
349
|
return i ? C(i).toLowerCase() : null;
|
|
349
350
|
}),
|
|
350
351
|
[A]
|
|
351
352
|
).findIndex(
|
|
352
|
-
(a) => a !== null && a ===
|
|
353
|
+
(a) => a !== null && a === me.toLowerCase()
|
|
353
354
|
), R = G(null), [p, q] = T(
|
|
354
|
-
|
|
355
|
-
),
|
|
355
|
+
O >= 0 ? O : 0
|
|
356
|
+
), ge = (a) => {
|
|
356
357
|
var f;
|
|
357
358
|
const i = (f = R.current) == null ? void 0 : f.querySelectorAll('[role="gridcell"]');
|
|
358
359
|
i != null && i[a] && (i[a].focus(), q(a));
|
|
359
|
-
},
|
|
360
|
-
if (
|
|
360
|
+
}, pe = (a) => {
|
|
361
|
+
if (b) return;
|
|
361
362
|
const i = A.length;
|
|
362
363
|
let f = p;
|
|
363
364
|
const k = (typeof window < "u" && R.current ? window.getComputedStyle(R.current).direction === "rtl" : !1) ? -1 : 1;
|
|
@@ -395,31 +396,31 @@ const He = [
|
|
|
395
396
|
case " ": {
|
|
396
397
|
a.preventDefault();
|
|
397
398
|
const M = y(A[p].hex);
|
|
398
|
-
M &&
|
|
399
|
+
M && v(M);
|
|
399
400
|
return;
|
|
400
401
|
}
|
|
401
402
|
default:
|
|
402
403
|
return;
|
|
403
404
|
}
|
|
404
|
-
a.preventDefault(),
|
|
405
|
-
}, [
|
|
405
|
+
a.preventDefault(), ge(f);
|
|
406
|
+
}, [xe, J] = T(!1), be = E(
|
|
406
407
|
() => ({
|
|
407
408
|
getValue: () => C(_.current),
|
|
408
409
|
setValue: (a) => {
|
|
409
410
|
const i = y(a);
|
|
410
|
-
i &&
|
|
411
|
+
i && v(i);
|
|
411
412
|
}
|
|
412
413
|
}),
|
|
413
|
-
[
|
|
414
|
+
[v]
|
|
414
415
|
);
|
|
415
|
-
|
|
416
|
+
Le(Re, be, P);
|
|
416
417
|
const I = E(() => {
|
|
417
418
|
if (!w) return null;
|
|
418
419
|
const a = y(w);
|
|
419
420
|
if (!a) return null;
|
|
420
|
-
const i =
|
|
421
|
-
return { ratio: i, aa:
|
|
422
|
-
}, [w, o]),
|
|
421
|
+
const i = He(o, a);
|
|
422
|
+
return { ratio: i, aa: _e(i), aaa: Oe(i) };
|
|
423
|
+
}, [w, o]), ve = (
|
|
423
424
|
// eslint-disable-next-line jsx-a11y/interactive-supports-focus -- inner gridcells are individually focusable via roving tabindex
|
|
424
425
|
/* @__PURE__ */ l(
|
|
425
426
|
"div",
|
|
@@ -427,12 +428,12 @@ const He = [
|
|
|
427
428
|
ref: R,
|
|
428
429
|
role: "grid",
|
|
429
430
|
"aria-label": g("inputs.colorPicker.paletteLabel", "Colour palette"),
|
|
430
|
-
onKeyDown:
|
|
431
|
+
onKeyDown: pe,
|
|
431
432
|
className: "ds:grid ds:grid-cols-6 ds:gap-[var(--spacing-xs)]",
|
|
432
433
|
children: A.map((a, i) => {
|
|
433
434
|
const f = Math.floor(i / u) * u;
|
|
434
435
|
return i === f ? /* @__PURE__ */ l("div", { role: "row", className: "ds:contents", children: A.slice(f, f + u).map((k, M) => {
|
|
435
|
-
const
|
|
436
|
+
const B = f + M, V = B === O;
|
|
436
437
|
return (
|
|
437
438
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events -- parent grid handles keyboard navigation via onKeyDown
|
|
438
439
|
/* @__PURE__ */ l(
|
|
@@ -444,16 +445,16 @@ const He = [
|
|
|
444
445
|
name: k.name,
|
|
445
446
|
hex: k.hex
|
|
446
447
|
}),
|
|
447
|
-
tabIndex:
|
|
448
|
+
tabIndex: B === p ? 0 : -1,
|
|
448
449
|
onClick: () => {
|
|
449
|
-
if (
|
|
450
|
-
const
|
|
451
|
-
|
|
450
|
+
if (b) return;
|
|
451
|
+
const Z = y(k.hex);
|
|
452
|
+
Z && v(Z), q(B);
|
|
452
453
|
},
|
|
453
|
-
className:
|
|
454
|
+
className: Ge({ selected: V, size: x }),
|
|
454
455
|
style: { "--swatch-bg": k.hex },
|
|
455
456
|
children: V ? /* @__PURE__ */ l(
|
|
456
|
-
|
|
457
|
+
ne,
|
|
457
458
|
{
|
|
458
459
|
"aria-hidden": "true",
|
|
459
460
|
className: "ds:absolute ds:inset-0 ds:m-auto ds:size-4 ds:text-[var(--background)] ds:mix-blend-difference"
|
|
@@ -467,7 +468,7 @@ const He = [
|
|
|
467
468
|
})
|
|
468
469
|
}
|
|
469
470
|
)
|
|
470
|
-
), Ce = S ? null : /* @__PURE__ */ h(
|
|
471
|
+
), Ce = S ? null : /* @__PURE__ */ h(ye, { children: [
|
|
471
472
|
/* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
472
473
|
/* @__PURE__ */ l(
|
|
473
474
|
"label",
|
|
@@ -483,10 +484,10 @@ const He = [
|
|
|
483
484
|
id: `${P}-hex`,
|
|
484
485
|
type: "text",
|
|
485
486
|
value: Y,
|
|
486
|
-
disabled:
|
|
487
|
+
disabled: b,
|
|
487
488
|
onChange: (a) => H(a.target.value),
|
|
488
|
-
onBlur:
|
|
489
|
-
className: `${
|
|
489
|
+
onBlur: he,
|
|
490
|
+
className: `${Xe} ${ue ? "ds:border-[var(--destructive)]" : "ds:border-[color:var(--control-border)]"}`
|
|
490
491
|
}
|
|
491
492
|
) })
|
|
492
493
|
] }),
|
|
@@ -499,9 +500,9 @@ const He = [
|
|
|
499
500
|
min: 0,
|
|
500
501
|
max: 360,
|
|
501
502
|
value: o.h,
|
|
502
|
-
onChange: (a) =>
|
|
503
|
+
onChange: (a) => v({ ...o, h: a }),
|
|
503
504
|
formatValue: (a) => `H ${Math.round(a)}°`,
|
|
504
|
-
disabled:
|
|
505
|
+
disabled: b
|
|
505
506
|
}
|
|
506
507
|
),
|
|
507
508
|
/* @__PURE__ */ l(
|
|
@@ -512,9 +513,9 @@ const He = [
|
|
|
512
513
|
min: 0,
|
|
513
514
|
max: 100,
|
|
514
515
|
value: o.s,
|
|
515
|
-
onChange: (a) =>
|
|
516
|
+
onChange: (a) => v({ ...o, s: a }),
|
|
516
517
|
formatValue: (a) => `S ${Math.round(a)}%`,
|
|
517
|
-
disabled:
|
|
518
|
+
disabled: b
|
|
518
519
|
}
|
|
519
520
|
),
|
|
520
521
|
/* @__PURE__ */ l(
|
|
@@ -525,9 +526,9 @@ const He = [
|
|
|
525
526
|
min: 0,
|
|
526
527
|
max: 100,
|
|
527
528
|
value: o.l,
|
|
528
|
-
onChange: (a) =>
|
|
529
|
+
onChange: (a) => v({ ...o, l: a }),
|
|
529
530
|
formatValue: (a) => `L ${Math.round(a)}%`,
|
|
530
|
-
disabled:
|
|
531
|
+
disabled: b
|
|
531
532
|
}
|
|
532
533
|
),
|
|
533
534
|
c ? /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
@@ -536,7 +537,7 @@ const He = [
|
|
|
536
537
|
/* @__PURE__ */ l(
|
|
537
538
|
"div",
|
|
538
539
|
{
|
|
539
|
-
className: `ds:absolute ds:inset-0 ds:rounded-[var(--radius-full)] ds:pointer-events-none ${
|
|
540
|
+
className: `ds:absolute ds:inset-0 ds:rounded-[var(--radius-full)] ds:pointer-events-none ${je}`,
|
|
540
541
|
"aria-hidden": "true"
|
|
541
542
|
}
|
|
542
543
|
),
|
|
@@ -551,17 +552,17 @@ const He = [
|
|
|
551
552
|
}
|
|
552
553
|
),
|
|
553
554
|
/* @__PURE__ */ l(
|
|
554
|
-
|
|
555
|
+
re,
|
|
555
556
|
{
|
|
556
557
|
min: 0,
|
|
557
558
|
max: 100,
|
|
558
559
|
step: 1,
|
|
559
560
|
value: [Math.round(o.a * 100)],
|
|
560
|
-
onValueChange: ([a]) =>
|
|
561
|
+
onValueChange: ([a]) => v({ ...o, a: a / 100 }),
|
|
561
562
|
"aria-label": g("inputs.colorPicker.opacity", "Opacity"),
|
|
562
563
|
formatValue: (a) => `${a}%`,
|
|
563
|
-
disabled:
|
|
564
|
-
className:
|
|
564
|
+
disabled: b,
|
|
565
|
+
className: ie
|
|
565
566
|
}
|
|
566
567
|
)
|
|
567
568
|
] })
|
|
@@ -577,8 +578,8 @@ const He = [
|
|
|
577
578
|
/* @__PURE__ */ l("span", { className: "ds:tabular-nums", children: g("inputs.colorPicker.contrastRatio", {
|
|
578
579
|
ratio: I.ratio.toFixed(1)
|
|
579
580
|
}) }),
|
|
580
|
-
/* @__PURE__ */ l(
|
|
581
|
-
/* @__PURE__ */ l(
|
|
581
|
+
/* @__PURE__ */ l(te, { level: "AA", passes: I.aa, t: g }),
|
|
582
|
+
/* @__PURE__ */ l(te, { level: "AAA", passes: I.aaa, t: g })
|
|
582
583
|
]
|
|
583
584
|
}
|
|
584
585
|
) : null,
|
|
@@ -591,43 +592,46 @@ const He = [
|
|
|
591
592
|
"aria-hidden": "true"
|
|
592
593
|
}
|
|
593
594
|
),
|
|
594
|
-
/* @__PURE__ */ l("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:tabular-nums", children:
|
|
595
|
+
/* @__PURE__ */ l("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:tabular-nums", children: j(o, d) })
|
|
595
596
|
] })
|
|
596
|
-
] }),
|
|
597
|
+
] }), Q = /* @__PURE__ */ h(
|
|
597
598
|
"div",
|
|
598
599
|
{
|
|
599
|
-
className: S ? x === "sm" ?
|
|
600
|
+
className: S ? x === "sm" ? We : Ke : De,
|
|
600
601
|
children: [
|
|
601
|
-
|
|
602
|
+
ve,
|
|
602
603
|
Ce
|
|
603
604
|
]
|
|
604
605
|
}
|
|
605
|
-
)
|
|
606
|
-
|
|
606
|
+
), we = Ae(!0, {
|
|
607
|
+
getAnchor: Me,
|
|
608
|
+
onReturnToTrigger: () => J(!1)
|
|
609
|
+
});
|
|
610
|
+
return le === "inline" ? /* @__PURE__ */ l(
|
|
607
611
|
"div",
|
|
608
612
|
{
|
|
609
613
|
ref: t,
|
|
610
614
|
id: P,
|
|
611
615
|
className: U,
|
|
612
|
-
"aria-describedby":
|
|
613
|
-
"aria-invalid":
|
|
614
|
-
"aria-disabled":
|
|
616
|
+
"aria-describedby": $.describedBy || void 0,
|
|
617
|
+
"aria-invalid": $.invalid || void 0,
|
|
618
|
+
"aria-disabled": b || void 0,
|
|
615
619
|
"data-component": "color-picker",
|
|
616
620
|
"data-component-id": P,
|
|
617
621
|
"data-testid": "color-picker",
|
|
618
|
-
children:
|
|
622
|
+
children: Q
|
|
619
623
|
}
|
|
620
|
-
) : /* @__PURE__ */ h(F.Root, { open:
|
|
621
|
-
/* @__PURE__ */ l(F.Trigger, { asChild: !0, disabled:
|
|
624
|
+
) : /* @__PURE__ */ h(F.Root, { open: xe, onOpenChange: J, children: [
|
|
625
|
+
/* @__PURE__ */ l(F.Trigger, { asChild: !0, disabled: b, children: /* @__PURE__ */ h(
|
|
622
626
|
"button",
|
|
623
627
|
{
|
|
624
628
|
ref: t,
|
|
625
629
|
type: "button",
|
|
626
630
|
id: P,
|
|
627
|
-
"aria-describedby":
|
|
628
|
-
"aria-invalid":
|
|
631
|
+
"aria-describedby": $.describedBy || void 0,
|
|
632
|
+
"aria-invalid": $.invalid || void 0,
|
|
629
633
|
"aria-label": S ? g("inputs.colorPicker.triggerLabel", "Choose colour") : void 0,
|
|
630
|
-
className:
|
|
634
|
+
className: Ve({ size: x, className: U }),
|
|
631
635
|
"data-component": "color-picker",
|
|
632
636
|
"data-component-id": P,
|
|
633
637
|
"data-testid": "color-picker-trigger",
|
|
@@ -640,7 +644,7 @@ const He = [
|
|
|
640
644
|
style: { "--swatch-bg": C(o) }
|
|
641
645
|
}
|
|
642
646
|
),
|
|
643
|
-
S ? null : /* @__PURE__ */ l("span", { className: "ds:text-start ds:truncate ds:tabular-nums", children:
|
|
647
|
+
S ? null : /* @__PURE__ */ l("span", { className: "ds:text-start ds:truncate ds:tabular-nums", children: j(o, d) })
|
|
644
648
|
]
|
|
645
649
|
}
|
|
646
650
|
) }),
|
|
@@ -649,15 +653,16 @@ const He = [
|
|
|
649
653
|
{
|
|
650
654
|
sideOffset: 4,
|
|
651
655
|
align: "start",
|
|
652
|
-
className:
|
|
653
|
-
|
|
656
|
+
className: Ue,
|
|
657
|
+
onKeyDown: we,
|
|
658
|
+
children: Q
|
|
654
659
|
}
|
|
655
660
|
) })
|
|
656
661
|
] });
|
|
657
662
|
}
|
|
658
663
|
);
|
|
659
|
-
|
|
660
|
-
function
|
|
664
|
+
Ye.displayName = "ColorPicker";
|
|
665
|
+
function te({
|
|
661
666
|
level: e,
|
|
662
667
|
passes: t,
|
|
663
668
|
t: r
|
|
@@ -672,13 +677,13 @@ function ae({
|
|
|
672
677
|
}
|
|
673
678
|
),
|
|
674
679
|
t ? /* @__PURE__ */ l(
|
|
675
|
-
|
|
680
|
+
ne,
|
|
676
681
|
{
|
|
677
682
|
"aria-hidden": "true",
|
|
678
683
|
className: "ds:size-4 ds:text-[var(--success)]"
|
|
679
684
|
}
|
|
680
685
|
) : /* @__PURE__ */ l(
|
|
681
|
-
|
|
686
|
+
ze,
|
|
682
687
|
{
|
|
683
688
|
"aria-hidden": "true",
|
|
684
689
|
className: "ds:size-4 ds:text-[var(--destructive)]"
|
|
@@ -709,7 +714,7 @@ function K({
|
|
|
709
714
|
}
|
|
710
715
|
),
|
|
711
716
|
/* @__PURE__ */ l(
|
|
712
|
-
|
|
717
|
+
re,
|
|
713
718
|
{
|
|
714
719
|
min: r,
|
|
715
720
|
max: s,
|
|
@@ -719,18 +724,18 @@ function K({
|
|
|
719
724
|
"aria-label": e,
|
|
720
725
|
formatValue: c,
|
|
721
726
|
disabled: m,
|
|
722
|
-
className:
|
|
727
|
+
className: ie
|
|
723
728
|
}
|
|
724
729
|
)
|
|
725
730
|
] })
|
|
726
731
|
] });
|
|
727
732
|
}
|
|
728
733
|
export {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
734
|
+
Be as A,
|
|
735
|
+
ia as B,
|
|
736
|
+
Ye as C,
|
|
737
|
+
da as G,
|
|
738
|
+
He as c,
|
|
739
|
+
Ie as h
|
|
735
740
|
};
|
|
736
|
-
//# sourceMappingURL=color-picker-
|
|
741
|
+
//# sourceMappingURL=color-picker-BsggJovx.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as r, Fragment as b } from "react";
|
|
3
3
|
import { useTranslation as k } from "react-i18next";
|
|
4
4
|
import { C as o } from "./card-DMO2nkt4.js";
|
|
5
|
-
import { L as p } from "./link-
|
|
5
|
+
import { L as p } from "./link-gRw3NtOt.js";
|
|
6
6
|
import { M as v } from "./map-pin-BaY37-Km.js";
|
|
7
7
|
function L(s) {
|
|
8
8
|
return `tel:${s.replace(/\(0\)/g, "").replace(/[^\d+]/g, "")}`;
|
|
@@ -118,4 +118,4 @@ const M = Object.assign(f, {
|
|
|
118
118
|
export {
|
|
119
119
|
M as C
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=contact-card-
|
|
121
|
+
//# sourceMappingURL=contact-card-fHBMwEsx.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as pe } from "react-i18next";
|
|
|
5
5
|
import { B as P } from "./badge-hnBt8o7n.js";
|
|
6
6
|
import { C as F } from "./card-DMO2nkt4.js";
|
|
7
7
|
import { K as fe, a as ue } from "./key-value-pair-BNNITp6S.js";
|
|
8
|
-
import { L as d } from "./link-
|
|
8
|
+
import { L as d } from "./link-gRw3NtOt.js";
|
|
9
9
|
import { b as me } from "./format-price-BKle6Xwt.js";
|
|
10
10
|
import { u as he } from "./registry-DvAUVLHh.js";
|
|
11
11
|
import { S as O } from "./stethoscope-sZXGC43m.js";
|
|
@@ -315,4 +315,4 @@ export {
|
|
|
315
315
|
ke as b,
|
|
316
316
|
ge as c
|
|
317
317
|
};
|
|
318
|
-
//# sourceMappingURL=contact-profile-card-
|
|
318
|
+
//# sourceMappingURL=contact-profile-card-CMyBYgRR.js.map
|
|
@@ -4,7 +4,7 @@ import { c as q } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as z } from "react-i18next";
|
|
5
5
|
import { u as B } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { F as S } from "./form-field-Ani72sVY.js";
|
|
7
|
-
import { D as Y } from "./date-picker-
|
|
7
|
+
import { D as Y } from "./date-picker-BSZuKo13.js";
|
|
8
8
|
import { N as H } from "./number-input-CVwI1ltI.js";
|
|
9
9
|
import { C as M } from "./card-DMO2nkt4.js";
|
|
10
10
|
import { B as T } from "./badge-hnBt8o7n.js";
|
|
@@ -422,4 +422,4 @@ export {
|
|
|
422
422
|
ie as L,
|
|
423
423
|
se as p
|
|
424
424
|
};
|
|
425
|
-
//# sourceMappingURL=cycle-calculator-
|
|
425
|
+
//# sourceMappingURL=cycle-calculator-Cww9DzIa.js.map
|
|
@@ -9,7 +9,7 @@ import { ModuleRegistry as Wt, AllCommunityModule as Bt } from "ag-grid-communit
|
|
|
9
9
|
import { I as $t } from "./icon-button-group-C5hhI-R5.js";
|
|
10
10
|
import { B as de } from "./button-Bn16lcFM.js";
|
|
11
11
|
import { I as ie } from "./icon-button-COX76Jdj.js";
|
|
12
|
-
import { P as he } from "./popover-
|
|
12
|
+
import { P as he } from "./popover-BG75rYjN.js";
|
|
13
13
|
import { C as Ut } from "./checkbox--ndmyokr.js";
|
|
14
14
|
import { T as Kt } from "./text-input-CaG9ApoE.js";
|
|
15
15
|
import { T as We } from "./tag-CS5cXpfx.js";
|
|
@@ -1990,4 +1990,4 @@ export {
|
|
|
1990
1990
|
Cr as h,
|
|
1991
1991
|
B as i
|
|
1992
1992
|
};
|
|
1993
|
-
//# sourceMappingURL=data-table-
|
|
1993
|
+
//# sourceMappingURL=data-table-fAMTeAjM.js.map
|