@alfadocs/ui-kit 0.9.0 → 0.10.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-DU13wUTA.js → agenda-card-CsCm7hQv.js} +2 -2
- package/dist/_chunks/{agenda-tray-gQUXklO4.js → agenda-tray-B8QZ3wEp.js} +2 -2
- package/dist/_chunks/{combobox-DUpWoPPk.js → combobox-BHhnR3qm.js} +4 -8
- package/dist/_chunks/{file-upload-BVbfiANR.js → file-upload-DIecAfC-.js} +4 -8
- package/dist/_chunks/{notification-card-CRIE2Cuk.js → notification-card-ejOw5g6g.js} +2 -5
- package/dist/_chunks/{notification-tray-CfXNYrxv.js → notification-tray-C3dYdLAF.js} +3 -6
- package/dist/_chunks/{patient-shell-BS2V6V1b.js → patient-shell-CL20JnVJ.js} +2 -2
- package/dist/_chunks/rating-BRD7O74e.js +171 -0
- package/dist/_chunks/{sidebar-CoLHtVrP.js → sidebar-D8Lq065m.js} +107 -121
- package/dist/_chunks/{sparkline-D4Np8ikf.js → sparkline-B5Ms55PZ.js} +2 -2
- package/dist/_chunks/star-vav0SJ9e.js +20 -0
- package/dist/_chunks/{timeline-BaSULpSJ.js → timeline-rmls7dIh.js} +9 -9
- package/dist/_chunks/{transaction-chip-eVbolm0B.js → transaction-chip-z9ENE50O.js} +2 -2
- package/dist/_chunks/{use-password-requirements-B1M8lE2t.js → use-password-requirements-DbPZMfV9.js} +2 -2
- package/dist/agent-catalog.json +15 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/rating/index.d.ts +3 -0
- package/dist/components/rating/index.js +5 -0
- package/dist/components/rating/rating.d.ts +29 -0
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/i18n/config.d.ts +1 -1
- package/dist/i18n/config.js +18 -0
- package/dist/i18n/resources.d.ts +15 -0
- package/dist/index.js +324 -322
- package/dist/locales/de.json +5 -0
- package/dist/locales/en.json +5 -0
- package/dist/locales/it.json +5 -0
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,20 @@
|
|
|
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 o = [
|
|
9
|
+
[
|
|
10
|
+
"path",
|
|
11
|
+
{
|
|
12
|
+
d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",
|
|
13
|
+
key: "r04s7s"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
], c = a("star", o);
|
|
17
|
+
export {
|
|
18
|
+
c as S
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=star-vav0SJ9e.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as m, useMemo as p, useRef as w, useState as V, useCallback as I, useImperativeHandle as O, useContext as
|
|
2
|
+
import { forwardRef as m, useMemo as p, useRef as w, useState as V, useCallback as I, useImperativeHandle as O, useContext as v, createContext as C } from "react";
|
|
3
3
|
import { c as b } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as A } from "react-i18next";
|
|
5
5
|
import { A as P } from "./avatar-I10iCDs8.js";
|
|
@@ -49,7 +49,7 @@ const K = {
|
|
|
49
49
|
description: "Opaque event id emitted on each Timeline.Event when the `eventId` prop is provided."
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, u = C({
|
|
53
53
|
layout: "rail-start",
|
|
54
54
|
order: "newest-first"
|
|
55
55
|
}), g = C({
|
|
@@ -141,7 +141,7 @@ const K = {
|
|
|
141
141
|
}),
|
|
142
142
|
[x]
|
|
143
143
|
);
|
|
144
|
-
return O(a, () => o.current, []), H(K, R, n.id), /* @__PURE__ */ e(
|
|
144
|
+
return O(a, () => o.current, []), H(K, R, n.id), /* @__PURE__ */ e(u.Provider, { value: d, children: /* @__PURE__ */ e(
|
|
145
145
|
"ol",
|
|
146
146
|
{
|
|
147
147
|
ref: o,
|
|
@@ -158,7 +158,7 @@ const K = {
|
|
|
158
158
|
E.displayName = "Timeline";
|
|
159
159
|
const S = m(
|
|
160
160
|
({ type: t = "neutral", eventId: r, className: s, children: i, ...n }, a) => {
|
|
161
|
-
const { layout: d } = u
|
|
161
|
+
const { layout: d } = v(u), { t: o } = A(), l = p(() => ({ type: t }), [t]);
|
|
162
162
|
return d === "alternating" ? /* @__PURE__ */ e(g.Provider, { value: l, children: /* @__PURE__ */ c(
|
|
163
163
|
"li",
|
|
164
164
|
{
|
|
@@ -167,7 +167,7 @@ const S = m(
|
|
|
167
167
|
className: ["ds:contents", s].filter(Boolean).join(" "),
|
|
168
168
|
...n,
|
|
169
169
|
children: [
|
|
170
|
-
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: o(`
|
|
170
|
+
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: o(`timeline.type.${t}`) }),
|
|
171
171
|
i
|
|
172
172
|
]
|
|
173
173
|
}
|
|
@@ -179,7 +179,7 @@ const S = m(
|
|
|
179
179
|
className: W({ layout: d, className: s }),
|
|
180
180
|
...n,
|
|
181
181
|
children: [
|
|
182
|
-
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: o(`
|
|
182
|
+
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: o(`timeline.type.${t}`) }),
|
|
183
183
|
i
|
|
184
184
|
]
|
|
185
185
|
}
|
|
@@ -189,7 +189,7 @@ const S = m(
|
|
|
189
189
|
S.displayName = "Timeline.Event";
|
|
190
190
|
const _ = m(
|
|
191
191
|
({ icon: t, className: r, ...s }, i) => {
|
|
192
|
-
const { type: n } =
|
|
192
|
+
const { type: n } = v(g), { layout: a } = v(u), d = /* @__PURE__ */ e(
|
|
193
193
|
"div",
|
|
194
194
|
{
|
|
195
195
|
ref: i,
|
|
@@ -216,7 +216,7 @@ const _ = m(
|
|
|
216
216
|
_.displayName = "Timeline.Dot";
|
|
217
217
|
const k = m(
|
|
218
218
|
({ title: t, description: r, actor: s, children: i, className: n, ...a }, d) => {
|
|
219
|
-
const { layout: o } = u
|
|
219
|
+
const { layout: o } = v(u), l = /* @__PURE__ */ e(
|
|
220
220
|
"div",
|
|
221
221
|
{
|
|
222
222
|
ref: d,
|
|
@@ -276,4 +276,4 @@ export {
|
|
|
276
276
|
le as T,
|
|
277
277
|
K as t
|
|
278
278
|
};
|
|
279
|
-
//# sourceMappingURL=timeline-
|
|
279
|
+
//# sourceMappingURL=timeline-rmls7dIh.js.map
|
|
@@ -142,7 +142,7 @@ const L = [
|
|
|
142
142
|
style: "currency",
|
|
143
143
|
currency: o,
|
|
144
144
|
signDisplay: "never"
|
|
145
|
-
}).format(d), c = a(`
|
|
145
|
+
}).format(d), c = a(`financial.state.${S[e]}`), k = new Intl.NumberFormat(i, {
|
|
146
146
|
style: "currency",
|
|
147
147
|
currency: o,
|
|
148
148
|
signDisplay: e === "debt" ? "always" : "auto"
|
|
@@ -193,4 +193,4 @@ q.displayName = "TransactionChip";
|
|
|
193
193
|
export {
|
|
194
194
|
q as T
|
|
195
195
|
};
|
|
196
|
-
//# sourceMappingURL=transaction-chip-
|
|
196
|
+
//# sourceMappingURL=transaction-chip-z9ENE50O.js.map
|
package/dist/_chunks/{use-password-requirements-B1M8lE2t.js → use-password-requirements-DbPZMfV9.js}
RENAMED
|
@@ -243,7 +243,7 @@ const fs = [
|
|
|
243
243
|
const s = o.filter((P) => P.met).length, t = o.length;
|
|
244
244
|
return Math.min(3, Math.floor(s / t * 4));
|
|
245
245
|
}, [u, o]), E = n !== void 0 ? n : u ? es : 0, O = xs[E], K = f(
|
|
246
|
-
`
|
|
246
|
+
`inputs.password.strength.${O}`,
|
|
247
247
|
O.charAt(0).toUpperCase() + O.slice(1)
|
|
248
248
|
);
|
|
249
249
|
return /* @__PURE__ */ g(
|
|
@@ -440,4 +440,4 @@ export {
|
|
|
440
440
|
Ns as P,
|
|
441
441
|
Hs as u
|
|
442
442
|
};
|
|
443
|
-
//# sourceMappingURL=use-password-requirements-
|
|
443
|
+
//# sourceMappingURL=use-password-requirements-DbPZMfV9.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "0.
|
|
3
|
+
"packageVersion": "0.10.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -2445,6 +2445,20 @@
|
|
|
2445
2445
|
}
|
|
2446
2446
|
}
|
|
2447
2447
|
},
|
|
2448
|
+
{
|
|
2449
|
+
"kind": "component",
|
|
2450
|
+
"id": "rating",
|
|
2451
|
+
"capabilities": [],
|
|
2452
|
+
"state": [],
|
|
2453
|
+
"actions": [],
|
|
2454
|
+
"domHooks": {
|
|
2455
|
+
"root": {
|
|
2456
|
+
"attr": "data-component",
|
|
2457
|
+
"value": "rating",
|
|
2458
|
+
"description": "Marks the element as a kit Rating."
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
},
|
|
2448
2462
|
{
|
|
2449
2463
|
"kind": "component",
|
|
2450
2464
|
"id": "recaptcha-widget",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const ratingVariants: (props?: ({
|
|
4
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
interface RatingProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'aria-label'>, VariantProps<typeof ratingVariants> {
|
|
7
|
+
/** Average score, 0..max. Fractional values render as half-step fills. */
|
|
8
|
+
value: number;
|
|
9
|
+
/** Total number of stars. Defaults to 5. */
|
|
10
|
+
max?: number;
|
|
11
|
+
/** Optional inline review-count summary. Plural-aware via i18next. */
|
|
12
|
+
reviews?: {
|
|
13
|
+
count: number;
|
|
14
|
+
label?: string;
|
|
15
|
+
};
|
|
16
|
+
/** Underline the reviews summary text — useful when it's a link. */
|
|
17
|
+
underlined?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* When `true`, the rating is decorative — `aria-hidden`, no role, no
|
|
20
|
+
* computed label. Use when the surrounding context already announces
|
|
21
|
+
* the score (e.g. a card whose accessible name includes the value).
|
|
22
|
+
*/
|
|
23
|
+
decorative?: boolean;
|
|
24
|
+
/** Override the default i18n-derived `aria-label`. */
|
|
25
|
+
'aria-label'?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const Rating: import("react").ForwardRefExoticComponent<RatingProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
28
|
+
export type { RatingProps };
|
|
29
|
+
//# sourceMappingURL=rating.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as l, k as c, l as I, m as g, n as p, o as u, p as P, s as f, u as B, q as F } from "../../_chunks/sidebar-
|
|
1
|
+
import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as l, k as c, l as I, m as g, n as p, o as u, p as P, s as f, u as B, q as F } from "../../_chunks/sidebar-D8Lq065m.js";
|
|
2
2
|
export {
|
|
3
3
|
r as Sidebar,
|
|
4
4
|
i as SidebarBody,
|
package/dist/i18n/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i18next from 'i18next';
|
|
2
2
|
export default i18next;
|
|
3
|
-
export { enUi, itUi, deUi, arUi, uiResources, LOCALES_WITH_BUNDLES } from './resources';
|
|
3
|
+
export { enUi, itUi, deUi, arUi, uiResources, LOCALES_WITH_BUNDLES, } from './resources';
|
|
4
4
|
export { registerUiBundle } from './registerUiBundle';
|
|
5
5
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/i18n/config.js
CHANGED
|
@@ -349,6 +349,14 @@ const a = {
|
|
|
349
349
|
secondaryCta: "Contact support"
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
|
+
rating: {
|
|
353
|
+
// Default aria-label for a non-decorative Rating, plus the inline
|
|
354
|
+
// summary used when `reviews` is provided. `_one` / `_other` plurals
|
|
355
|
+
// make the i18next CLDR pluralizer pick the right form per locale.
|
|
356
|
+
label: "{{value}} out of {{max}} stars",
|
|
357
|
+
reviews_one: "{{value}} stars · 1 review",
|
|
358
|
+
reviews_other: "{{value}} stars · {{count}} reviews"
|
|
359
|
+
},
|
|
352
360
|
sparkline: {
|
|
353
361
|
summary: "{{label}}: min {{min}}, max {{max}}, current {{current}}, {{direction}}",
|
|
354
362
|
summaryNoLabel: "min {{min}}, max {{max}}, current {{current}}, {{direction}}",
|
|
@@ -1321,6 +1329,11 @@ const a = {
|
|
|
1321
1329
|
secondaryCta: "Contatta il supporto"
|
|
1322
1330
|
}
|
|
1323
1331
|
},
|
|
1332
|
+
rating: {
|
|
1333
|
+
label: "{{value}} stelle su {{max}}",
|
|
1334
|
+
reviews_one: "{{value}} stelle · 1 opinione",
|
|
1335
|
+
reviews_other: "{{value}} stelle · {{count}} opinioni"
|
|
1336
|
+
},
|
|
1324
1337
|
sparkline: {
|
|
1325
1338
|
summary: "{{label}}: min {{min}}, max {{max}}, attuale {{current}}, {{direction}}",
|
|
1326
1339
|
summaryNoLabel: "min {{min}}, max {{max}}, attuale {{current}}, {{direction}}",
|
|
@@ -2266,6 +2279,11 @@ const a = {
|
|
|
2266
2279
|
secondaryCta: "Support kontaktieren"
|
|
2267
2280
|
}
|
|
2268
2281
|
},
|
|
2282
|
+
rating: {
|
|
2283
|
+
label: "{{value}} von {{max}} Sternen",
|
|
2284
|
+
reviews_one: "{{value}} Sterne · 1 Bewertung",
|
|
2285
|
+
reviews_other: "{{value}} Sterne · {{count}} Bewertungen"
|
|
2286
|
+
},
|
|
2269
2287
|
sparkline: {
|
|
2270
2288
|
summary: "{{label}}: Min. {{min}}, Max. {{max}}, aktuell {{current}}, {{direction}}",
|
|
2271
2289
|
summaryNoLabel: "Min. {{min}}, Max. {{max}}, aktuell {{current}}, {{direction}}",
|
package/dist/i18n/resources.d.ts
CHANGED
|
@@ -367,6 +367,11 @@ export declare const enUi: {
|
|
|
367
367
|
readonly secondaryCta: "Contact support";
|
|
368
368
|
};
|
|
369
369
|
};
|
|
370
|
+
readonly rating: {
|
|
371
|
+
readonly label: "{{value}} out of {{max}} stars";
|
|
372
|
+
readonly reviews_one: "{{value}} stars · 1 review";
|
|
373
|
+
readonly reviews_other: "{{value}} stars · {{count}} reviews";
|
|
374
|
+
};
|
|
370
375
|
readonly sparkline: {
|
|
371
376
|
readonly summary: "{{label}}: min {{min}}, max {{max}}, current {{current}}, {{direction}}";
|
|
372
377
|
readonly summaryNoLabel: "min {{min}}, max {{max}}, current {{current}}, {{direction}}";
|
|
@@ -1358,6 +1363,11 @@ export declare const itUi: {
|
|
|
1358
1363
|
readonly secondaryCta: "Contatta il supporto";
|
|
1359
1364
|
};
|
|
1360
1365
|
};
|
|
1366
|
+
readonly rating: {
|
|
1367
|
+
readonly label: "{{value}} stelle su {{max}}";
|
|
1368
|
+
readonly reviews_one: "{{value}} stelle · 1 opinione";
|
|
1369
|
+
readonly reviews_other: "{{value}} stelle · {{count}} opinioni";
|
|
1370
|
+
};
|
|
1361
1371
|
readonly sparkline: {
|
|
1362
1372
|
readonly summary: "{{label}}: min {{min}}, max {{max}}, attuale {{current}}, {{direction}}";
|
|
1363
1373
|
readonly summaryNoLabel: "min {{min}}, max {{max}}, attuale {{current}}, {{direction}}";
|
|
@@ -2328,6 +2338,11 @@ export declare const deUi: {
|
|
|
2328
2338
|
readonly secondaryCta: "Support kontaktieren";
|
|
2329
2339
|
};
|
|
2330
2340
|
};
|
|
2341
|
+
readonly rating: {
|
|
2342
|
+
readonly label: "{{value}} von {{max}} Sternen";
|
|
2343
|
+
readonly reviews_one: "{{value}} Sterne · 1 Bewertung";
|
|
2344
|
+
readonly reviews_other: "{{value}} Sterne · {{count}} Bewertungen";
|
|
2345
|
+
};
|
|
2331
2346
|
readonly sparkline: {
|
|
2332
2347
|
readonly summary: "{{label}}: Min. {{min}}, Max. {{max}}, aktuell {{current}}, {{direction}}";
|
|
2333
2348
|
readonly summaryNoLabel: "Min. {{min}}, Max. {{max}}, aktuell {{current}}, {{direction}}";
|