@alfadocs/ui-kit 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-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-JnlTqfS4.js → ai-tools-rail-DfmewPUN.js} +92 -76
- 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-CQJ3Nbi5.js} +4 -4
- package/dist/_chunks/{badge-zsf5i5bH.js → badge-CqGsX32l.js} +46 -42
- package/dist/_chunks/{bishop-score-x2fNqbuZ.js → bishop-score-CjsB9bM-.js} +3 -3
- package/dist/_chunks/{bmi-calculator-C3roxbqD.js → bmi-calculator-n-823_1V.js} +3 -3
- package/dist/_chunks/{care-plan-card-D42WD4-T.js → care-plan-card-CJei-nl9.js} +4 -4
- package/dist/_chunks/{care-plan-entry-card-BukNI7Uy.js → care-plan-entry-card-EmfrbHu8.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-B7xsn6tX.js} +186 -167
- package/dist/_chunks/columns-2-BTOBZbep.js +15 -0
- package/dist/_chunks/{contact-profile-card-CCeJmjbd.js → contact-profile-card-7BMB85T6.js} +2 -2
- package/dist/_chunks/{cycle-calculator-DrVXbIB4.js → cycle-calculator-BF0ointe.js} +3 -3
- 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-D4K1BnE2.js → due-date-calculator-DU9AEWNy.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-CFqQc56y.js → editable-currency-cell-renderer-BVJ04DkB.js} +914 -865
- package/dist/_chunks/{fetal-weight-B_pBjlO7.js → fetal-weight-BVSzOhuR.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-BETQAVkA.js → gestational-age-calculator-DBlFdoiP.js} +4 -4
- package/dist/_chunks/{hcg-doubling-8zXCJgAQ.js → hcg-doubling-if4Q8aSX.js} +3 -3
- package/dist/_chunks/{type-DZ5OMRA2.js → image-C6RM5hfF.js} +4 -16
- package/dist/_chunks/{insert-result-DIAG3ltJ.js → insert-result-njqBthzT.js} +68 -57
- package/dist/_chunks/{marketplace-app-shell-BXfRMiRk.js → marketplace-app-shell-Bu-HD3fy.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-CF_qon7C.js → patient-shell-DrV_iekt.js} +2 -2
- package/dist/_chunks/{patient-summary-card-Bgso0p_l.js → patient-summary-card-ByfIU8N0.js} +4 -4
- package/dist/_chunks/{payment-request-card-DBz3hVDz.js → payment-request-card-yTjzKQCU.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-BuzLTwjy.js → pregnancy-dating-QY-sqpvj.js} +4 -4
- package/dist/_chunks/{pregnancy-weight-gain-aicn7qs7.js → pregnancy-weight-gain-DOJXXNYP.js} +3 -3
- package/dist/_chunks/rich-text-editor-BOQr5lHx.js +1970 -0
- package/dist/_chunks/{scroll-area-BWqCkEGz.js → scroll-area-eccd_Uf-.js} +38 -28
- package/dist/_chunks/{sidebar-DPEHzxLZ.js → sidebar-CGjIk_FQ.js} +36 -22
- 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-BrW8P50O.js} +19 -19
- package/dist/_chunks/trash-2-rPAKaRgB.js +18 -0
- package/dist/_chunks/{unit-converter-CHN2cZ4b.js → unit-converter-C1V3ACM9.js} +2 -2
- package/dist/_chunks/{workflow-map-BX3JY1Bu.js → workflow-map-JAZryZJr.js} +137 -149
- 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 +36 -2
- 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/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.js +27 -1
- package/dist/i18n/locales/de.d.ts +26 -0
- package/dist/i18n/locales/de.js +27 -1
- package/dist/i18n/locales/el.d.ts +26 -0
- package/dist/i18n/locales/el.js +27 -1
- package/dist/i18n/locales/en.d.ts +26 -0
- package/dist/i18n/locales/en.js +27 -1
- package/dist/i18n/locales/es.d.ts +26 -0
- package/dist/i18n/locales/es.js +27 -1
- package/dist/i18n/locales/fr.d.ts +26 -0
- package/dist/i18n/locales/fr.js +27 -1
- package/dist/i18n/locales/hi.d.ts +26 -0
- package/dist/i18n/locales/hi.js +27 -1
- package/dist/i18n/locales/it.d.ts +26 -0
- package/dist/i18n/locales/it.js +27 -1
- package/dist/i18n/locales/ja.d.ts +26 -0
- package/dist/i18n/locales/ja.js +27 -1
- package/dist/i18n/locales/nl.d.ts +26 -0
- package/dist/i18n/locales/nl.js +25 -1
- package/dist/i18n/locales/pl.d.ts +26 -0
- package/dist/i18n/locales/pl.js +27 -1
- package/dist/i18n/locales/pt.d.ts +26 -0
- package/dist/i18n/locales/pt.js +27 -1
- package/dist/i18n/locales/ro.d.ts +26 -0
- package/dist/i18n/locales/ro.js +27 -1
- package/dist/i18n/locales/ru.d.ts +26 -0
- package/dist/i18n/locales/ru.js +27 -1
- package/dist/i18n/locales/sq.d.ts +26 -0
- package/dist/i18n/locales/sq.js +27 -1
- package/dist/i18n/locales/sv.d.ts +26 -0
- package/dist/i18n/locales/sv.js +25 -1
- package/dist/i18n/locales/tr.d.ts +26 -0
- package/dist/i18n/locales/tr.js +27 -1
- package/dist/i18n/locales/zh.d.ts +26 -0
- package/dist/i18n/locales/zh.js +25 -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/rich-text-editor-u36FqSWz.js +0 -1190
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as X, useRef as q, useState as E, useEffect as F } from "react";
|
|
3
3
|
import { c as B } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
4
|
+
import { useTranslation as G } from "react-i18next";
|
|
5
5
|
import { T as v } from "./tooltip-DvmfrNvB.js";
|
|
6
|
-
import { X as
|
|
6
|
+
import { X as H } from "./x-CCcI3eJp.js";
|
|
7
7
|
const V = B(
|
|
8
8
|
[
|
|
9
9
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
@@ -26,7 +26,10 @@ const V = B(
|
|
|
26
26
|
brand: ""
|
|
27
27
|
},
|
|
28
28
|
fill: {
|
|
29
|
-
|
|
29
|
+
// Solid chips carry a subtle, theme-aware border (a low-opacity
|
|
30
|
+
// foreground mix) so they read as a defined chip on any surface, not a
|
|
31
|
+
// floating fill — works across every colour variant, light and dark.
|
|
32
|
+
solid: "ds:border ds:border-[color:color-mix(in_srgb,var(--foreground)_15%,transparent)]",
|
|
30
33
|
outline: "ds:border ds:border-[color:var(--border)] ds:bg-transparent"
|
|
31
34
|
},
|
|
32
35
|
size: {
|
|
@@ -43,7 +46,7 @@ const V = B(
|
|
|
43
46
|
{
|
|
44
47
|
fill: "solid",
|
|
45
48
|
variant: "neutral",
|
|
46
|
-
className: "ds:bg-muted/20 ds:text-muted-foreground"
|
|
49
|
+
className: "ds:bg-muted/20 ds:text-muted-foreground ds:border-[color:var(--border)]"
|
|
47
50
|
},
|
|
48
51
|
{
|
|
49
52
|
fill: "solid",
|
|
@@ -74,7 +77,7 @@ const V = B(
|
|
|
74
77
|
{
|
|
75
78
|
fill: "outline",
|
|
76
79
|
variant: "neutral",
|
|
77
|
-
className: "ds:border-
|
|
80
|
+
className: "ds:border-[color:var(--border)] ds:text-muted-foreground"
|
|
78
81
|
},
|
|
79
82
|
{
|
|
80
83
|
fill: "outline",
|
|
@@ -108,7 +111,7 @@ const V = B(
|
|
|
108
111
|
size: "md"
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
|
-
),
|
|
114
|
+
), J = B(
|
|
112
115
|
[
|
|
113
116
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0 ds:rounded-full",
|
|
114
117
|
// Negative end margin keeps the button flush with the pill edge
|
|
@@ -129,48 +132,48 @@ const V = B(
|
|
|
129
132
|
},
|
|
130
133
|
defaultVariants: { size: "md" }
|
|
131
134
|
}
|
|
132
|
-
),
|
|
135
|
+
), L = X(
|
|
133
136
|
({
|
|
134
137
|
label: o,
|
|
135
138
|
variant: g = "neutral",
|
|
136
139
|
fill: p = "solid",
|
|
137
|
-
size:
|
|
140
|
+
size: t = "md",
|
|
138
141
|
leading: m,
|
|
139
|
-
onRemove:
|
|
142
|
+
onRemove: a,
|
|
140
143
|
onClick: b,
|
|
141
|
-
disabled:
|
|
144
|
+
disabled: r = !1,
|
|
142
145
|
maxInlineSize: n = "none",
|
|
143
146
|
className: h
|
|
144
147
|
}, i) => {
|
|
145
|
-
const { t: w } =
|
|
146
|
-
|
|
148
|
+
const { t: w } = G(), y = q(null), [D, C] = E(!1), [O, R] = E("");
|
|
149
|
+
F(() => {
|
|
147
150
|
const s = y.current;
|
|
148
151
|
if (!s || n === "none") return;
|
|
149
152
|
const z = () => C(s.scrollWidth > s.clientWidth), j = new ResizeObserver(z);
|
|
150
153
|
return j.observe(s), z(), () => j.disconnect();
|
|
151
154
|
}, [n]);
|
|
152
155
|
const W = (s) => {
|
|
153
|
-
(s.key === "Backspace" || s.key === "Delete") &&
|
|
156
|
+
(s.key === "Backspace" || s.key === "Delete") && a && !r && (s.preventDefault(), x(), setTimeout(a, 100));
|
|
154
157
|
}, x = () => {
|
|
155
158
|
R(w("tag.removed", { label: o }));
|
|
156
159
|
}, K = () => {
|
|
157
|
-
!
|
|
158
|
-
}, d = !!
|
|
160
|
+
!r && a && (x(), setTimeout(a, 100));
|
|
161
|
+
}, d = !!a, N = !!b && !d, T = V({
|
|
159
162
|
variant: g,
|
|
160
163
|
fill: p,
|
|
161
|
-
size:
|
|
164
|
+
size: t,
|
|
162
165
|
className: [
|
|
163
|
-
N && !
|
|
166
|
+
N && !r ? "ds:hover:brightness-90 ds:cursor-pointer" : "",
|
|
164
167
|
h ?? ""
|
|
165
168
|
].filter(Boolean).join(" ")
|
|
166
|
-
}), l = m ? /* @__PURE__ */
|
|
169
|
+
}), l = m ? /* @__PURE__ */ e(
|
|
167
170
|
"span",
|
|
168
171
|
{
|
|
169
172
|
"aria-hidden": "true",
|
|
170
173
|
className: "ds:shrink-0 ds:inline-flex ds:items-center ds:[&>svg]:size-3.5",
|
|
171
174
|
children: m
|
|
172
175
|
}
|
|
173
|
-
) : null, c = /* @__PURE__ */
|
|
176
|
+
) : null, c = /* @__PURE__ */ e(
|
|
174
177
|
"span",
|
|
175
178
|
{
|
|
176
179
|
ref: y,
|
|
@@ -178,16 +181,16 @@ const V = B(
|
|
|
178
181
|
style: n !== "none" ? { maxInlineSize: n } : void 0,
|
|
179
182
|
children: o
|
|
180
183
|
}
|
|
181
|
-
),
|
|
184
|
+
), _ = /* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: O }), A = d ? /* @__PURE__ */ e(
|
|
182
185
|
"button",
|
|
183
186
|
{
|
|
184
187
|
type: "button",
|
|
185
188
|
"aria-label": w("tag.remove", { label: o }),
|
|
186
189
|
onClick: K,
|
|
187
|
-
disabled:
|
|
190
|
+
disabled: r,
|
|
188
191
|
tabIndex: -1,
|
|
189
|
-
className:
|
|
190
|
-
children: /* @__PURE__ */
|
|
192
|
+
className: J({ size: t }),
|
|
193
|
+
children: /* @__PURE__ */ e(H, { "aria-hidden": "true" })
|
|
191
194
|
}
|
|
192
195
|
) : null, u = n !== "none" && D;
|
|
193
196
|
if (N) {
|
|
@@ -196,8 +199,8 @@ const V = B(
|
|
|
196
199
|
{
|
|
197
200
|
ref: i,
|
|
198
201
|
type: "button",
|
|
199
|
-
onClick:
|
|
200
|
-
disabled:
|
|
202
|
+
onClick: r ? void 0 : b,
|
|
203
|
+
disabled: r,
|
|
201
204
|
"data-component": "tag",
|
|
202
205
|
className: T,
|
|
203
206
|
children: [
|
|
@@ -206,7 +209,7 @@ const V = B(
|
|
|
206
209
|
]
|
|
207
210
|
}
|
|
208
211
|
);
|
|
209
|
-
return u ? /* @__PURE__ */
|
|
212
|
+
return u ? /* @__PURE__ */ e(v, { label: o, children: s }) : s;
|
|
210
213
|
}
|
|
211
214
|
if (d) {
|
|
212
215
|
const s = (
|
|
@@ -217,39 +220,39 @@ const V = B(
|
|
|
217
220
|
ref: i,
|
|
218
221
|
role: "group",
|
|
219
222
|
"aria-label": o,
|
|
220
|
-
tabIndex:
|
|
221
|
-
"aria-disabled":
|
|
223
|
+
tabIndex: r ? -1 : 0,
|
|
224
|
+
"aria-disabled": r || void 0,
|
|
222
225
|
onKeyDown: W,
|
|
223
226
|
"data-component": "tag",
|
|
224
227
|
className: T,
|
|
225
228
|
children: [
|
|
226
|
-
|
|
229
|
+
_,
|
|
227
230
|
l,
|
|
228
231
|
c,
|
|
229
|
-
|
|
232
|
+
A
|
|
230
233
|
]
|
|
231
234
|
}
|
|
232
235
|
)
|
|
233
236
|
);
|
|
234
|
-
return u ? /* @__PURE__ */
|
|
237
|
+
return u ? /* @__PURE__ */ e(v, { label: o, children: s }) : s;
|
|
235
238
|
}
|
|
236
239
|
const k = /* @__PURE__ */ f(
|
|
237
240
|
"span",
|
|
238
241
|
{
|
|
239
242
|
ref: i,
|
|
240
243
|
"data-component": "tag",
|
|
241
|
-
className: V({ variant: g, fill: p, size:
|
|
244
|
+
className: V({ variant: g, fill: p, size: t, className: h }),
|
|
242
245
|
children: [
|
|
243
246
|
l,
|
|
244
247
|
c
|
|
245
248
|
]
|
|
246
249
|
}
|
|
247
250
|
);
|
|
248
|
-
return u ? /* @__PURE__ */
|
|
251
|
+
return u ? /* @__PURE__ */ e(v, { label: o, children: k }) : k;
|
|
249
252
|
}
|
|
250
253
|
);
|
|
251
|
-
|
|
254
|
+
L.displayName = "Tag";
|
|
252
255
|
export {
|
|
253
|
-
|
|
256
|
+
L as T
|
|
254
257
|
};
|
|
255
|
-
//# sourceMappingURL=tag-
|
|
258
|
+
//# sourceMappingURL=tag-BQXwuJq1.js.map
|
|
@@ -65,15 +65,15 @@ const L = [
|
|
|
65
65
|
// Text uses the deeper `*-foreground` token (matching Badge / Tag) so
|
|
66
66
|
// small chip text clears WCAG AA (4.5:1) against the 10% tinted
|
|
67
67
|
// background. The surface and border use the lighter alias.
|
|
68
|
-
debt: "ds:bg-destructive/10 ds:text-[color:var(--error-foreground)] ds:border-
|
|
69
|
-
credit: "ds:bg-success/10 ds:text-[color:var(--success-foreground)] ds:border-success
|
|
68
|
+
debt: "ds:bg-destructive/10 ds:text-[color:var(--error-foreground)] ds:border-[color:var(--error-foreground)]",
|
|
69
|
+
credit: "ds:bg-success/10 ds:text-[color:var(--success-foreground)] ds:border-[color:var(--success-foreground)]",
|
|
70
70
|
// The orange "to-invoice" tint has no kit-wide semantic alias — see
|
|
71
71
|
// src/tokens/index.css §Transaction-chip-scoped tokens. The component
|
|
72
72
|
// owns the alias because the customer-anchored "Da fatturare" orange
|
|
73
73
|
// is distinct from `--warning` (yellow) and from `--destructive`.
|
|
74
|
-
"to-invoice": "ds:bg-transaction-chip-to-invoice/10 ds:text-[color:var(--transaction-chip-to-invoice-foreground)] ds:border-transaction-chip-to-invoice
|
|
75
|
-
"to-deliver": "ds:bg-info/10 ds:text-[color:var(--info-foreground)] ds:border-info
|
|
76
|
-
settled: "ds:bg-muted/30 ds:text-muted-foreground ds:border-
|
|
74
|
+
"to-invoice": "ds:bg-transaction-chip-to-invoice/10 ds:text-[color:var(--transaction-chip-to-invoice-foreground)] ds:border-[color:var(--transaction-chip-to-invoice-foreground)]",
|
|
75
|
+
"to-deliver": "ds:bg-info/10 ds:text-[color:var(--info-foreground)] ds:border-[color:var(--info-foreground)]",
|
|
76
|
+
settled: "ds:bg-muted/30 ds:text-muted-foreground ds:border-[color:var(--border)]"
|
|
77
77
|
},
|
|
78
78
|
size: {
|
|
79
79
|
// Heights tuned for table-cell density (sm), default app surfaces (md),
|
|
@@ -116,24 +116,24 @@ const L = [
|
|
|
116
116
|
), G = T(
|
|
117
117
|
({
|
|
118
118
|
state: e,
|
|
119
|
-
amount:
|
|
120
|
-
currency:
|
|
121
|
-
locale:
|
|
122
|
-
size:
|
|
119
|
+
amount: v,
|
|
120
|
+
currency: r = D,
|
|
121
|
+
locale: m,
|
|
122
|
+
size: t = "md",
|
|
123
123
|
showLabel: f = !1,
|
|
124
|
-
className:
|
|
125
|
-
"aria-label":
|
|
124
|
+
className: u,
|
|
125
|
+
"aria-label": p,
|
|
126
126
|
...g
|
|
127
127
|
}, b) => {
|
|
128
|
-
const { t: o, i18n: h } = C(), a =
|
|
128
|
+
const { t: o, i18n: h } = C(), a = m ?? h.language ?? "en", x = F[e], i = M[e], n = Math.abs(v), y = new Intl.NumberFormat(a, {
|
|
129
129
|
style: "currency",
|
|
130
|
-
currency:
|
|
130
|
+
currency: r,
|
|
131
131
|
signDisplay: "never"
|
|
132
132
|
}).format(n), d = o(`financial.state.${S[e]}`), w = new Intl.NumberFormat(a, {
|
|
133
133
|
style: "currency",
|
|
134
|
-
currency:
|
|
134
|
+
currency: r,
|
|
135
135
|
signDisplay: e === "debt" ? "always" : "auto"
|
|
136
|
-
}).format(n * V[e]), z =
|
|
136
|
+
}).format(n * V[e]), z = p ?? o("financial.aria.label", {
|
|
137
137
|
state: d,
|
|
138
138
|
amount: w
|
|
139
139
|
});
|
|
@@ -147,13 +147,13 @@ const L = [
|
|
|
147
147
|
"data-state": e,
|
|
148
148
|
className: U({
|
|
149
149
|
state: e,
|
|
150
|
-
size:
|
|
150
|
+
size: t,
|
|
151
151
|
bold: e !== "settled",
|
|
152
|
-
className:
|
|
152
|
+
className: u
|
|
153
153
|
}),
|
|
154
154
|
...g,
|
|
155
155
|
children: [
|
|
156
|
-
/* @__PURE__ */ s("span", { "aria-hidden": "true", className: j({ size:
|
|
156
|
+
/* @__PURE__ */ s("span", { "aria-hidden": "true", className: j({ size: t }), children: /* @__PURE__ */ s(x, {}) }),
|
|
157
157
|
f && /* @__PURE__ */ s("span", { "aria-hidden": "true", className: "type-eyebrow", children: d }),
|
|
158
158
|
i && /* @__PURE__ */ s(
|
|
159
159
|
"span",
|
|
@@ -182,4 +182,4 @@ export {
|
|
|
182
182
|
G as T,
|
|
183
183
|
R as a
|
|
184
184
|
};
|
|
185
|
-
//# sourceMappingURL=transaction-chip-
|
|
185
|
+
//# sourceMappingURL=transaction-chip-BrW8P50O.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { c as a } from "./createLucideIcon-CrFbzy84.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.8.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const t = [
|
|
9
|
+
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
10
|
+
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
11
|
+
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
12
|
+
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
13
|
+
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
14
|
+
], o = a("trash-2", t);
|
|
15
|
+
export {
|
|
16
|
+
o as T
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=trash-2-rPAKaRgB.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as j } from "react-i18next";
|
|
|
5
5
|
import { F as v } from "./form-field-BOm9hK35.js";
|
|
6
6
|
import { N as B } from "./number-input-Dj5L3pXK.js";
|
|
7
7
|
import { S as C } from "./select-CEtRcon5.js";
|
|
8
|
-
import { I as L } from "./insert-result-
|
|
8
|
+
import { I as L } from "./insert-result-njqBthzT.js";
|
|
9
9
|
const _ = {
|
|
10
10
|
// weight → base kg
|
|
11
11
|
kg: { id: "kg", category: "weight", factor: 1, offset: 0 },
|
|
@@ -193,4 +193,4 @@ export {
|
|
|
193
193
|
P as b,
|
|
194
194
|
K as c
|
|
195
195
|
};
|
|
196
|
-
//# sourceMappingURL=unit-converter-
|
|
196
|
+
//# sourceMappingURL=unit-converter-C1V3ACM9.js.map
|