@alfadocs/ui-kit 0.66.0 → 0.67.1
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-tray-Bh1KfEOG.js → agenda-tray-T-BumlGZ.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-Btzmk8OH.js → ai-consent-banner-Dxtx_WAh.js} +2 -2
- package/dist/_chunks/{ai-tools-rail-DAfaW8eA.js → ai-tools-rail-CInA_1-E.js} +57 -50
- package/dist/_chunks/{alia-sidebar-CN8pA6c-.js → alia-sidebar-Ckv0yCKi.js} +2 -2
- package/dist/_chunks/{anamnesis-card-qeLYRG79.js → anamnesis-card-N8pIKWuS.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-BfzFjEyb.js → antenatal-schedule-timeline-35ebkcZT.js} +2 -2
- package/dist/_chunks/{appointment-tray-BQnJEora.js → appointment-tray-BMl89NPW.js} +4 -4
- package/dist/_chunks/{badge-zsf5i5bH.js → badge-CqGsX32l.js} +46 -42
- package/dist/_chunks/{bishop-score-DPN4Ched.js → bishop-score-CjsB9bM-.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DuUneHuZ.js → bmi-calculator-n-823_1V.js} +2 -2
- package/dist/_chunks/{care-plan-card-D42WD4-T.js → care-plan-card-BwVUyUBb.js} +4 -4
- package/dist/_chunks/{care-plan-entry-card-BukNI7Uy.js → care-plan-entry-card-VzdQHcOL.js} +4 -4
- package/dist/_chunks/{clinical-note-card-BYo437dU.js → clinical-note-card-gtrxv6zn.js} +2 -2
- package/dist/_chunks/{color-picker-9tL7pz5y.js → color-picker-FXpItIaF.js} +198 -175
- package/dist/_chunks/{contact-profile-card-CCeJmjbd.js → contact-profile-card-7BMB85T6.js} +2 -2
- package/dist/_chunks/{cycle-calculator-D6LTmtQt.js → cycle-calculator-BF0ointe.js} +2 -2
- package/dist/_chunks/{dependent-selector-CRWgieHm.js → dependent-selector-DpzGtr_J.js} +2 -2
- package/dist/_chunks/{document-scanner-biBS_f6c.js → document-scanner-D2qehl3-.js} +53 -53
- package/dist/_chunks/{due-date-calculator-CIG194vq.js → due-date-calculator-DU9AEWNy.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-f3d0Rhue.js → editable-currency-cell-renderer-D1ewvJKO.js} +875 -809
- package/dist/_chunks/{fetal-weight-Xf8-ZoDy.js → fetal-weight-BVSzOhuR.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-BGsZaWXW.js → gestational-age-calculator-DBlFdoiP.js} +3 -3
- package/dist/_chunks/{hcg-doubling-LH5i6oM7.js → hcg-doubling-if4Q8aSX.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-Cou6XnMJ.js → marketplace-app-shell-D4-T9Qzz.js} +3 -3
- package/dist/_chunks/{message-card-Bgcvfj6-.js → message-card-Bx4GmLvf.js} +9 -9
- package/dist/_chunks/{message-tray-saAVMeHP.js → message-tray-CVyJajVJ.js} +2 -2
- package/dist/_chunks/{operator-hero-CM8949Hd.js → operator-hero-f_KaRhw5.js} +2 -2
- package/dist/_chunks/{patient-search-Bw9ONucF.js → patient-search-DR9XUYRQ.js} +2 -2
- package/dist/_chunks/{patient-shell-Tgpv0HND.js → patient-shell-BfgufL_q.js} +2 -2
- package/dist/_chunks/{patient-summary-card-Bgso0p_l.js → patient-summary-card-hEmr4eTW.js} +4 -4
- package/dist/_chunks/{payment-request-card-DBz3hVDz.js → payment-request-card-CYE5vhZ0.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-AYyHtU9K.js → periodontal-chart-card-Dh3KgvYG.js} +2 -2
- package/dist/_chunks/{practice-results-CVAgY2RZ.js → practice-results-DND2SAt7.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-f9aJbiAk.js → pregnancy-dating-QY-sqpvj.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-BMRBeA8V.js → pregnancy-weight-gain-DOJXXNYP.js} +2 -2
- package/dist/_chunks/rich-text-editor-DAeCXiQG.js +1973 -0
- package/dist/_chunks/{scroll-area-BWqCkEGz.js → scroll-area-5wNK0Cyz.js} +40 -30
- package/dist/_chunks/{sidebar-BFwbx74W.js → sidebar-DaB4ulxH.js} +351 -344
- package/dist/_chunks/{suggestion-chip-C4kxWUIs.js → suggestion-chip-Bk4PmYTg.js} +30 -30
- package/dist/_chunks/{tab-bar-Xetknddo.js → tab-bar-B1ovILzh.js} +2 -2
- package/dist/_chunks/{tag-CdA0s_VV.js → tag-BQXwuJq1.js} +41 -38
- package/dist/_chunks/{transaction-chip-BZCa6XDn.js → transaction-chip-DK84XCBU.js} +46 -33
- package/dist/_chunks/{workflow-map-Bt4Of5dT.js → workflow-map-JAZryZJr.js} +2 -2
- 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/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/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/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/tooth-cell-renderer.d.ts +12 -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.js +13 -12
- package/dist/components/data-table/toolbar.d.ts +5 -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 +25 -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/scroll-area/index.js +1 -1
- package/dist/components/sidebar/index.js +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/transaction-chip/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +14 -1
- package/dist/i18n/locales/ar.js +16 -3
- package/dist/i18n/locales/de.d.ts +14 -1
- package/dist/i18n/locales/de.js +16 -3
- package/dist/i18n/locales/el.d.ts +14 -1
- package/dist/i18n/locales/el.js +16 -3
- package/dist/i18n/locales/en.d.ts +14 -1
- package/dist/i18n/locales/en.js +16 -3
- package/dist/i18n/locales/es.d.ts +14 -1
- package/dist/i18n/locales/es.js +16 -3
- package/dist/i18n/locales/fr.d.ts +14 -1
- package/dist/i18n/locales/fr.js +16 -3
- package/dist/i18n/locales/hi.d.ts +14 -1
- package/dist/i18n/locales/hi.js +16 -3
- package/dist/i18n/locales/it.d.ts +14 -1
- package/dist/i18n/locales/it.js +16 -3
- package/dist/i18n/locales/ja.d.ts +14 -1
- package/dist/i18n/locales/ja.js +16 -3
- package/dist/i18n/locales/nl.d.ts +14 -1
- package/dist/i18n/locales/nl.js +14 -3
- package/dist/i18n/locales/pl.d.ts +14 -1
- package/dist/i18n/locales/pl.js +16 -3
- package/dist/i18n/locales/pt.d.ts +14 -1
- package/dist/i18n/locales/pt.js +16 -3
- package/dist/i18n/locales/ro.d.ts +14 -1
- package/dist/i18n/locales/ro.js +16 -3
- package/dist/i18n/locales/ru.d.ts +14 -1
- package/dist/i18n/locales/ru.js +16 -3
- package/dist/i18n/locales/sq.d.ts +14 -1
- package/dist/i18n/locales/sq.js +16 -3
- package/dist/i18n/locales/sv.d.ts +14 -1
- package/dist/i18n/locales/sv.js +14 -3
- package/dist/i18n/locales/tr.d.ts +14 -1
- package/dist/i18n/locales/tr.js +16 -3
- package/dist/i18n/locales/zh.d.ts +14 -1
- package/dist/i18n/locales/zh.js +14 -3
- package/dist/index.js +508 -507
- package/dist/locales/ar.json +16 -3
- package/dist/locales/de.json +16 -3
- package/dist/locales/el.json +16 -3
- package/dist/locales/en.json +16 -3
- package/dist/locales/es.json +16 -3
- package/dist/locales/fr.json +16 -3
- package/dist/locales/hi.json +16 -3
- package/dist/locales/it.json +16 -3
- package/dist/locales/ja.json +16 -3
- package/dist/locales/nl.json +16 -3
- package/dist/locales/pl.json +16 -3
- package/dist/locales/pt.json +16 -3
- package/dist/locales/ro.json +16 -3
- package/dist/locales/ru.json +16 -3
- package/dist/locales/sq.json +16 -3
- package/dist/locales/sv.json +16 -3
- package/dist/locales/tr.json +16 -3
- package/dist/locales/zh.json +16 -3
- 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/rich-text-editor-B5XQNxe8.js +0 -1586
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v, useRef as z } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as r from "@radix-ui/react-scroll-area";
|
|
4
4
|
import { c as b } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { u as p } from "./use-direction-Dp8h70PP.js";
|
|
6
6
|
const u = b(
|
|
@@ -40,75 +40,85 @@ const u = b(
|
|
|
40
40
|
// forced-color-adjust: auto so forced-colors paint ButtonFace/ButtonText
|
|
41
41
|
"ds:[forced-color-adjust:auto]",
|
|
42
42
|
// hit area extension via ::before for touch pointers (must be absolute)
|
|
43
|
-
'ds:before:absolute ds:before:content-[""] ds:before:inset-
|
|
44
|
-
"ds:before:inset-
|
|
43
|
+
'ds:before:absolute ds:before:content-[""] ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)]',
|
|
44
|
+
"ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)]"
|
|
45
45
|
].join(" ")
|
|
46
|
-
), w = (
|
|
46
|
+
), w = (o) => o === "auto" || o === void 0 ? "hover" : o, S = {
|
|
47
47
|
vertical: "ds:overflow-y-auto",
|
|
48
48
|
horizontal: "ds:overflow-x-auto",
|
|
49
49
|
both: "ds:overflow-auto"
|
|
50
50
|
}, m = v(
|
|
51
51
|
({
|
|
52
|
-
orientation:
|
|
52
|
+
orientation: o = "vertical",
|
|
53
53
|
size: e = "md",
|
|
54
|
-
type:
|
|
55
|
-
className:
|
|
54
|
+
type: l = "auto",
|
|
55
|
+
className: i,
|
|
56
56
|
children: t,
|
|
57
57
|
scrollHideDelay: n,
|
|
58
58
|
...d
|
|
59
59
|
}, c) => {
|
|
60
60
|
const a = z(null), h = p(a);
|
|
61
61
|
return /* @__PURE__ */ g(
|
|
62
|
-
|
|
62
|
+
r.Root,
|
|
63
63
|
{
|
|
64
64
|
ref: a,
|
|
65
|
-
type: w(
|
|
65
|
+
type: w(l),
|
|
66
66
|
dir: h,
|
|
67
67
|
scrollHideDelay: n,
|
|
68
68
|
"data-component": "scroll-area",
|
|
69
69
|
className: [
|
|
70
70
|
"ds:relative ds:overflow-hidden",
|
|
71
71
|
"ds:min-w-0 ds:min-h-0",
|
|
72
|
-
|
|
72
|
+
i
|
|
73
73
|
].filter(Boolean).join(" "),
|
|
74
74
|
...d,
|
|
75
75
|
children: [
|
|
76
76
|
/* @__PURE__ */ s(
|
|
77
|
-
|
|
77
|
+
r.Viewport,
|
|
78
78
|
{
|
|
79
79
|
ref: c,
|
|
80
80
|
tabIndex: 0,
|
|
81
81
|
className: [
|
|
82
82
|
"ds:h-full ds:w-full ds:rounded-[inherit]",
|
|
83
|
+
// Radix wraps the viewport content in an inline
|
|
84
|
+
// `display:table; min-width:100%` div that grows to the content's
|
|
85
|
+
// MAX-content width. In a vertical-only scroll area the Root's
|
|
86
|
+
// overflow-x is hidden, so anything wider than the viewport is
|
|
87
|
+
// silently CLIPPED — not scrollable (seen in the AiToolsRail inbox
|
|
88
|
+
// panel once accessible-mode type pushed content past the panel
|
|
89
|
+
// width). Forcing that wrapper to `block` makes content wrap to the
|
|
90
|
+
// viewport width instead. Horizontal / both keep the table wrapper
|
|
91
|
+
// so they can still scroll on the x-axis.
|
|
92
|
+
o === "vertical" ? "ds:[&>div]:!block" : "",
|
|
83
93
|
// keyboard focus ring on the scroll container
|
|
84
94
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
85
95
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
86
96
|
"ds:forced-colors:focus-visible:outline-[Highlight]"
|
|
87
|
-
].join(" "),
|
|
97
|
+
].filter(Boolean).join(" "),
|
|
88
98
|
children: t
|
|
89
99
|
}
|
|
90
100
|
),
|
|
91
|
-
(
|
|
101
|
+
(o === "vertical" || o === "both") && // forceMount keeps the element in the DOM so CSS opacity transition
|
|
92
102
|
// can animate the show/hide instead of mount/unmount snapping.
|
|
93
103
|
/* @__PURE__ */ s(
|
|
94
|
-
|
|
104
|
+
r.Scrollbar,
|
|
95
105
|
{
|
|
96
106
|
forceMount: !0,
|
|
97
107
|
orientation: "vertical",
|
|
98
108
|
className: u({ size: e }),
|
|
99
|
-
children: /* @__PURE__ */ s(
|
|
109
|
+
children: /* @__PURE__ */ s(r.Thumb, { className: f() })
|
|
100
110
|
}
|
|
101
111
|
),
|
|
102
|
-
(
|
|
103
|
-
|
|
112
|
+
(o === "horizontal" || o === "both") && /* @__PURE__ */ s(
|
|
113
|
+
r.Scrollbar,
|
|
104
114
|
{
|
|
105
115
|
forceMount: !0,
|
|
106
116
|
orientation: "horizontal",
|
|
107
117
|
className: u({ size: e }),
|
|
108
|
-
children: /* @__PURE__ */ s(
|
|
118
|
+
children: /* @__PURE__ */ s(r.Thumb, { className: f() })
|
|
109
119
|
}
|
|
110
120
|
),
|
|
111
|
-
/* @__PURE__ */ s(
|
|
121
|
+
/* @__PURE__ */ s(r.Corner, {})
|
|
112
122
|
]
|
|
113
123
|
}
|
|
114
124
|
);
|
|
@@ -116,24 +126,24 @@ const u = b(
|
|
|
116
126
|
);
|
|
117
127
|
m.displayName = "RadixScrollArea";
|
|
118
128
|
const x = v(
|
|
119
|
-
(
|
|
129
|
+
(o, e) => {
|
|
120
130
|
const {
|
|
121
|
-
orientation:
|
|
122
|
-
type:
|
|
131
|
+
orientation: l = "vertical",
|
|
132
|
+
type: i = "auto",
|
|
123
133
|
className: t,
|
|
124
134
|
children: n,
|
|
125
135
|
scrollHideDelay: d,
|
|
126
136
|
size: c,
|
|
127
137
|
...a
|
|
128
|
-
} =
|
|
129
|
-
return
|
|
138
|
+
} = o;
|
|
139
|
+
return i === "native" ? /* @__PURE__ */ s(
|
|
130
140
|
"div",
|
|
131
141
|
{
|
|
132
142
|
ref: e,
|
|
133
143
|
"data-component": "scroll-area",
|
|
134
144
|
tabIndex: 0,
|
|
135
145
|
className: [
|
|
136
|
-
S[
|
|
146
|
+
S[l],
|
|
137
147
|
"ds:min-w-0 ds:min-h-0",
|
|
138
148
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
139
149
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
@@ -143,17 +153,17 @@ const x = v(
|
|
|
143
153
|
...a,
|
|
144
154
|
children: n
|
|
145
155
|
}
|
|
146
|
-
) : /* @__PURE__ */ s(m, { ref: e, ...
|
|
156
|
+
) : /* @__PURE__ */ s(m, { ref: e, ...o });
|
|
147
157
|
}
|
|
148
158
|
);
|
|
149
159
|
x.displayName = "ScrollArea";
|
|
150
|
-
const R =
|
|
160
|
+
const R = r.Root, T = r.Viewport, V = r.Scrollbar, B = r.Thumb, H = r.Corner;
|
|
151
161
|
export {
|
|
152
162
|
x as S,
|
|
153
|
-
|
|
163
|
+
H as a,
|
|
154
164
|
R as b,
|
|
155
165
|
V as c,
|
|
156
|
-
|
|
166
|
+
B as d,
|
|
157
167
|
T as e
|
|
158
168
|
};
|
|
159
|
-
//# sourceMappingURL=scroll-area-
|
|
169
|
+
//# sourceMappingURL=scroll-area-5wNK0Cyz.js.map
|