@alfadocs/ui-kit 0.9.1 → 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/{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/star-vav0SJ9e.js +20 -0
- package/dist/agent-catalog.json +15 -1
- package/dist/components/index.d.ts +1 -0
- 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/i18n/config.js +18 -0
- package/dist/i18n/resources.d.ts +15 -0
- package/dist/index.js +321 -319
- 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
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.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}}";
|