@alfadocs/ui-kit 0.23.0 → 0.25.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.
Files changed (86) hide show
  1. package/dist/_chunks/{autocomplete-BxfabhZ8.js → autocomplete-C7xq06bP.js} +40 -40
  2. package/dist/_chunks/{card-CWzuTLYE.js → card-C353dU-H.js} +21 -13
  3. package/dist/_chunks/carousel.agent-DnPiqijR.js +1733 -0
  4. package/dist/_chunks/{contact-card-DTQUMetD.js → contact-card-CjG7c-1q.js} +2 -2
  5. package/dist/_chunks/description-list-Bsga4IW8.js +309 -0
  6. package/dist/_chunks/editable-currency-cell-renderer-DJB5MxAI.js +2349 -0
  7. package/dist/_chunks/locale-picker-BxEUUPW7.js +638 -0
  8. package/dist/_chunks/{patient-shell-DavGODt9.js → patient-shell-B164drIa.js} +40 -55
  9. package/dist/_chunks/settings-ca2Yi9R8.js +21 -0
  10. package/dist/_chunks/sun-Eweh5fvi.js +50 -0
  11. package/dist/_chunks/{theme-toggle-BswYl0Yp.js → theme-toggle-FrotC2VI.js} +85 -127
  12. package/dist/_chunks/{timeline-Czeqr3HF.js → timeline-jmd7lfDf.js} +19 -12
  13. package/dist/_chunks/use-locale-BkCIHujH.js +20 -0
  14. package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +55 -0
  15. package/dist/_chunks/{whatsapp-button-CtlLwM3M.js → whatsapp-button-DUjlWGKf.js} +26 -25
  16. package/dist/_chunks/{workflow-map-712GL-8u.js → workflow-map-BR6txfFX.js} +2 -2
  17. package/dist/agent-catalog.json +59 -1
  18. package/dist/components/autocomplete/index.js +1 -1
  19. package/dist/components/card/index.js +1 -1
  20. package/dist/components/carousel/carousel.d.ts +21 -0
  21. package/dist/components/carousel/index.js +1 -1
  22. package/dist/components/contact-card/index.js +1 -1
  23. package/dist/components/data-table/filters/number-filter.d.ts +56 -0
  24. package/dist/components/data-table/filters/text-filter.d.ts +49 -0
  25. package/dist/components/data-table/index.d.ts +4 -0
  26. package/dist/components/data-table/index.js +25 -21
  27. package/dist/components/description-list/description-list.d.ts +40 -0
  28. package/dist/components/description-list/index.d.ts +1 -1
  29. package/dist/components/description-list/index.js +1 -1
  30. package/dist/components/header-settings/index.js +232 -0
  31. package/dist/components/locale-picker/index.js +7 -0
  32. package/dist/components/theme-toggle/index.js +1 -1
  33. package/dist/components/timeline/index.js +1 -1
  34. package/dist/components/whatsapp-button/index.js +1 -1
  35. package/dist/components/whatsapp-button/whatsapp-button.d.ts +14 -1
  36. package/dist/components/workflow/index.js +1 -1
  37. package/dist/fonts/Lexend-VF-latin-ext.woff2 +0 -0
  38. package/dist/fonts/Lexend-VF-latin.woff2 +0 -0
  39. package/dist/fonts/Lexend-VF-vietnamese.woff2 +0 -0
  40. package/dist/fonts/NotoSansArabic-VF-arabic.woff2 +0 -0
  41. package/dist/fonts/NotoSansDevanagari-VF-devanagari.woff2 +0 -0
  42. package/dist/hooks/index.js +29 -28
  43. package/dist/i18n/config.js +2726 -134
  44. package/dist/i18n/locales/ar.d.ts +147 -3
  45. package/dist/i18n/locales/de.d.ts +147 -3
  46. package/dist/i18n/locales/el.d.ts +147 -3
  47. package/dist/i18n/locales/es.d.ts +147 -3
  48. package/dist/i18n/locales/fr.d.ts +147 -3
  49. package/dist/i18n/locales/hi.d.ts +147 -3
  50. package/dist/i18n/locales/ja.d.ts +147 -3
  51. package/dist/i18n/locales/nl.d.ts +147 -3
  52. package/dist/i18n/locales/pl.d.ts +149 -5
  53. package/dist/i18n/locales/pt.d.ts +147 -3
  54. package/dist/i18n/locales/ro.d.ts +147 -3
  55. package/dist/i18n/locales/ru.d.ts +148 -4
  56. package/dist/i18n/locales/sq.d.ts +147 -3
  57. package/dist/i18n/locales/sv.d.ts +147 -3
  58. package/dist/i18n/locales/tr.d.ts +147 -3
  59. package/dist/i18n/locales/zh.d.ts +147 -3
  60. package/dist/i18n/resources.d.ts +294 -6
  61. package/dist/index.js +512 -507
  62. package/dist/locales/ar.json +149 -5
  63. package/dist/locales/de.json +149 -5
  64. package/dist/locales/el.json +149 -5
  65. package/dist/locales/en.json +147 -3
  66. package/dist/locales/es.json +149 -5
  67. package/dist/locales/fr.json +149 -5
  68. package/dist/locales/hi.json +149 -5
  69. package/dist/locales/it.json +147 -3
  70. package/dist/locales/ja.json +149 -5
  71. package/dist/locales/nl.json +149 -5
  72. package/dist/locales/pl.json +151 -7
  73. package/dist/locales/pt.json +149 -5
  74. package/dist/locales/ro.json +149 -5
  75. package/dist/locales/ru.json +150 -6
  76. package/dist/locales/sq.json +149 -5
  77. package/dist/locales/sv.json +149 -5
  78. package/dist/locales/tr.json +149 -5
  79. package/dist/locales/zh.json +149 -5
  80. package/dist/patterns/patient-shell/index.js +1 -1
  81. package/dist/tokens.css +2 -2
  82. package/package.json +10 -1
  83. package/dist/_chunks/carousel.agent-CQPFfppK.js +0 -1696
  84. package/dist/_chunks/description-list-y7Hk51KI.js +0 -191
  85. package/dist/_chunks/editable-currency-cell-renderer-1t42gENX.js +0 -1972
  86. package/dist/_chunks/use-locale-C5rS3Xon.js +0 -71
@@ -1,191 +0,0 @@
1
- import { jsx as t, jsxs as C } from "react/jsx-runtime";
2
- import { forwardRef as n, useContext as V, useState as u, useCallback as k, createContext as R } from "react";
3
- import { c as d } from "./index-D2ZczOXr.js";
4
- import { useTranslation as _ } from "react-i18next";
5
- import { I as T } from "./icon-button-C4CGcYuz.js";
6
- import { C as P } from "./check-DPdL_Sm7.js";
7
- import { C as j } from "./copy-B00HK7tj.js";
8
- const f = R({
9
- layout: "inline",
10
- density: "default",
11
- divider: "none"
12
- }), A = d("ds:flex ds:flex-col", {
13
- variants: {
14
- layout: {
15
- inline: "",
16
- stacked: "",
17
- responsive: ""
18
- },
19
- density: {
20
- default: "ds:gap-[var(--spacing-md)]",
21
- compact: "ds:gap-[var(--spacing-sm)]"
22
- },
23
- divider: {
24
- none: "",
25
- between: "",
26
- bordered: ""
27
- }
28
- },
29
- defaultVariants: {
30
- layout: "inline",
31
- density: "default",
32
- divider: "none"
33
- }
34
- }), I = d("", {
35
- variants: {
36
- layout: {
37
- inline: "ds:grid ds:gap-[var(--spacing-md)]",
38
- stacked: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
39
- responsive: "ds:grid ds:gap-[var(--spacing-md)] ds:max-sm:flex ds:max-sm:flex-col ds:max-sm:gap-[var(--spacing-xs)]"
40
- },
41
- divider: {
42
- none: "",
43
- between: "ds:[&:not(:last-child)]:border-b ds:[&:not(:last-child)]:border-[color:var(--border)] ds:[&:not(:last-child)]:pb-[var(--spacing-md)]",
44
- bordered: "ds:border ds:border-[color:var(--border)] ds:rounded-[var(--radius-sm)] ds:p-[var(--spacing-sm)]"
45
- },
46
- copyable: {
47
- true: "",
48
- false: ""
49
- }
50
- },
51
- compoundVariants: [
52
- {
53
- layout: "inline",
54
- copyable: !1,
55
- className: "ds:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]"
56
- },
57
- {
58
- layout: "inline",
59
- copyable: !0,
60
- className: "ds:grid-cols-[minmax(0,1fr)_minmax(0,2fr)_auto]"
61
- },
62
- {
63
- layout: "responsive",
64
- copyable: !1,
65
- className: "ds:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]"
66
- },
67
- {
68
- layout: "responsive",
69
- copyable: !0,
70
- className: "ds:grid-cols-[minmax(0,1fr)_minmax(0,2fr)_auto]"
71
- }
72
- ],
73
- defaultVariants: {
74
- layout: "inline",
75
- divider: "none",
76
- copyable: !1
77
- }
78
- }), v = n(
79
- ({
80
- layout: e = "inline",
81
- density: s = "default",
82
- divider: a = "none",
83
- className: i,
84
- children: l,
85
- ...c
86
- }, m) => /* @__PURE__ */ t(f.Provider, { value: { layout: e, density: s, divider: a }, children: /* @__PURE__ */ t(
87
- "dl",
88
- {
89
- ref: m,
90
- className: A({
91
- layout: e,
92
- density: s,
93
- divider: a,
94
- className: i
95
- }),
96
- "data-component": "description-list",
97
- ...c,
98
- children: l
99
- }
100
- ) })
101
- );
102
- v.displayName = "DescriptionList";
103
- const y = n(
104
- ({ copyable: e = !1, copyText: s, copyLabel: a, className: i, children: l, ...c }, m) => {
105
- const { layout: g, divider: w } = V(f), { t: r } = _(), [D, p] = u(!1), [L, o] = u(""), N = k(async () => {
106
- if (s)
107
- try {
108
- await navigator.clipboard.writeText(s), p(!0), o(r("keyValuePair.copied")), setTimeout(() => {
109
- p(!1), o("");
110
- }, 2e3);
111
- } catch {
112
- o(r("keyValuePair.notAvailable")), setTimeout(() => o(""), 3e3);
113
- }
114
- }, [s, r]), h = r("keyValuePair.copy", {
115
- label: a ?? s ?? ""
116
- });
117
- return /* @__PURE__ */ C(
118
- "div",
119
- {
120
- ref: m,
121
- className: I({
122
- layout: g,
123
- divider: w,
124
- copyable: e,
125
- className: i
126
- }),
127
- ...c,
128
- children: [
129
- l,
130
- e && /* @__PURE__ */ t(
131
- T,
132
- {
133
- icon: D ? /* @__PURE__ */ t(P, {}) : /* @__PURE__ */ t(j, {}),
134
- size: "sm",
135
- "aria-label": h,
136
- onClick: N,
137
- intent: "ghost",
138
- className: "ds:self-start"
139
- }
140
- ),
141
- e && /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: L })
142
- ]
143
- }
144
- );
145
- }
146
- );
147
- y.displayName = "DescriptionList.Row";
148
- const z = d(
149
- "type-label ds:text-[color:var(--muted-foreground)] ds:text-start ds:[overflow-wrap:anywhere] ds:[word-break:normal]"
150
- ), B = d(
151
- "type-body ds:text-[color:var(--foreground)] ds:m-0 ds:[overflow-wrap:anywhere] ds:[word-break:normal]",
152
- {
153
- variants: {
154
- numeric: {
155
- true: "ds:text-end",
156
- false: "ds:text-start"
157
- }
158
- },
159
- defaultVariants: {
160
- numeric: !1
161
- }
162
- }
163
- ), x = n(
164
- ({ className: e, ...s }, a) => /* @__PURE__ */ t(
165
- "dt",
166
- {
167
- ref: a,
168
- className: z({ className: e }),
169
- ...s
170
- }
171
- )
172
- );
173
- x.displayName = "DescriptionList.Term";
174
- const b = n(({ numeric: e = !1, className: s, ...a }, i) => /* @__PURE__ */ t(
175
- "dd",
176
- {
177
- ref: i,
178
- className: B({ numeric: e, className: s }),
179
- ...a
180
- }
181
- ));
182
- b.displayName = "DescriptionList.Detail";
183
- const J = Object.assign(v, {
184
- Row: y,
185
- Term: x,
186
- Detail: b
187
- });
188
- export {
189
- J as D
190
- };
191
- //# sourceMappingURL=description-list-y7Hk51KI.js.map