@f-ewald/components 1.37.5 → 1.39.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/README.md +25 -1
- package/custom-elements.json +45 -6
- package/dist/calendar-day.js +1 -1
- package/dist/calendar-day.js.map +1 -1
- package/dist/distribution-chart.js +1 -1
- package/dist/distribution-chart.js.map +1 -1
- package/dist/dropdown-button.js +1 -1
- package/dist/dropdown-button.js.map +1 -1
- package/dist/form-select.js +1 -1
- package/dist/form-select.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/kanban-board.js +1 -1
- package/dist/kanban-board.js.map +1 -1
- package/dist/kanban-column.js +1 -1
- package/dist/kanban-column.js.map +1 -1
- package/dist/link-card.js +1 -1
- package/dist/link-card.js.map +1 -1
- package/dist/loading-dots.js +1 -1
- package/dist/loading-dots.js.map +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/multi-select.js.map +1 -1
- package/dist/photo-gallery.js +3 -3
- package/dist/photo-gallery.js.map +1 -1
- package/dist/radio-pills.js +1 -1
- package/dist/radio-pills.js.map +1 -1
- package/dist/range-slider.js +5 -5
- package/dist/range-slider.js.map +1 -1
- package/dist/scroll-dots.js +1 -1
- package/dist/scroll-dots.js.map +1 -1
- package/dist/slide-panel.js +1 -1
- package/dist/slide-panel.js.map +1 -1
- package/dist/stat-meter.js +1 -1
- package/dist/stat-meter.js.map +1 -1
- package/dist/status-pill.js +1 -1
- package/dist/status-pill.js.map +1 -1
- package/dist/timeline-entry.js +2 -2
- package/dist/timeline-entry.js.map +1 -1
- package/dist/tokens.css +17 -1
- package/dist/tokens.d.ts +27 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +54 -0
- package/dist/tokens.js.map +1 -1
- package/dist/ui-button.js +2 -2
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-checkbox.d.ts +10 -1
- package/dist/ui-checkbox.d.ts.map +1 -1
- package/dist/ui-checkbox.js +11 -2
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/user-avatar.js +2 -2
- package/dist/user-avatar.js.map +1 -1
- package/dist/utils/transport-controls.js +5 -5
- package/dist/utils/transport-controls.js.map +1 -1
- package/docs/calendar-day.md +1 -0
- package/docs/design-language.md +21 -4
- package/docs/distribution-chart.md +1 -0
- package/docs/dropdown-button.md +1 -0
- package/docs/form-select.md +1 -0
- package/docs/kanban-board.md +1 -0
- package/docs/kanban-column.md +1 -0
- package/docs/link-card.md +1 -0
- package/docs/loading-dots.md +1 -0
- package/docs/multi-select.md +1 -0
- package/docs/photo-gallery.md +1 -0
- package/docs/radio-pills.md +1 -0
- package/docs/range-slider.md +2 -0
- package/docs/scroll-dots.md +1 -0
- package/docs/slide-panel.md +1 -0
- package/docs/stat-meter.md +1 -0
- package/docs/status-pill.md +1 -0
- package/docs/timeline-entry.md +1 -0
- package/docs/ui-button.md +1 -0
- package/docs/ui-checkbox.md +13 -2
- package/docs/user-avatar.md +1 -0
- package/llms.txt +34 -20
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -14,7 +14,12 @@ Import patterns:
|
|
|
14
14
|
Theming: components use `var(--ui-*, <fallback>)` custom properties, so they
|
|
15
15
|
render correctly with zero external CSS. Override any `--ui-*` property on
|
|
16
16
|
`:root` (or an ancestor) to retheme, or import the optional
|
|
17
|
-
`@f-ewald/components/tokens.css` stylesheet as a starting point.
|
|
17
|
+
`@f-ewald/components/tokens.css` stylesheet as a starting point. That
|
|
18
|
+
stylesheet also ships four named themes, selected with a `data-theme`
|
|
19
|
+
attribute on `<html>` (mutually exclusive): `"dark"`/`"light"` force one of
|
|
20
|
+
the two flat palettes over the OS preference, `"gradient"` glosses buttons and
|
|
21
|
+
toasts, and `"metro"` squares every tokenized corner and replaces drop shadows
|
|
22
|
+
with hairline rings over a blue accent.
|
|
18
23
|
|
|
19
24
|
## Icons
|
|
20
25
|
|
|
@@ -435,7 +440,7 @@ Import: `import "@f-ewald/components/calendar-day.js";`
|
|
|
435
440
|
|
|
436
441
|
Properties: `date` (attribute `date`) : string, default —; `timeMarker` (attribute `time-marker`) : boolean, default false; `minWidth` (attribute `min-width`) : string, default ""
|
|
437
442
|
Events: none
|
|
438
|
-
CSS custom properties: `--ui-border`, `--ui-danger`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-lg`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-font-weight-medium`, `--ui-font-weight-regular`, `--ui-font-weight-semibold`, `--ui-hover-overlay`, `--ui-info`, `--ui-line-height-tight`, `--ui-on-accent`, `--ui-primary`, `--ui-radius-sm`, `--ui-success`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`, `--ui-warning`
|
|
443
|
+
CSS custom properties: `--ui-border`, `--ui-danger`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-lg`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-font-weight-medium`, `--ui-font-weight-regular`, `--ui-font-weight-semibold`, `--ui-hover-overlay`, `--ui-info`, `--ui-line-height-tight`, `--ui-on-accent`, `--ui-primary`, `--ui-radius-pill`, `--ui-radius-sm`, `--ui-success`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`, `--ui-warning`
|
|
439
444
|
|
|
440
445
|
Example:
|
|
441
446
|
```html
|
|
@@ -891,7 +896,7 @@ Import: `import "@f-ewald/components/distribution-chart.js";`
|
|
|
891
896
|
|
|
892
897
|
Properties: `metric` (attribute `metric`) : string, default ""; `values` (JS property only) : DistributionValue[], default []; `markerColors` (JS property only) : string[], default ["#4f46e5", "#d97706", "#0d9488", "#e11d48"]; `fontSize` (attribute `font-size`) : number, default 10
|
|
893
898
|
Events: none
|
|
894
|
-
CSS custom properties: `--ui-border`, `--ui-danger`, `--ui-font`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-primary`, `--ui-radius-sm`, `--ui-surface-muted`, `--ui-text-muted`
|
|
899
|
+
CSS custom properties: `--ui-border`, `--ui-danger`, `--ui-font`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-primary`, `--ui-radius-circle`, `--ui-radius-sm`, `--ui-surface-muted`, `--ui-text-muted`
|
|
895
900
|
|
|
896
901
|
Example:
|
|
897
902
|
```html
|
|
@@ -923,7 +928,7 @@ Import: `import "@f-ewald/components/dropdown-button.js";`
|
|
|
923
928
|
|
|
924
929
|
Properties: `label` (attribute `label`) : string, default ""; `options` (JS property only) : DropdownOption[], default []; `disabled` (attribute `disabled`) : boolean, default false; `variant` (attribute `variant`) : DropdownButtonVariant, default "text"; `icon` (JS property only) : TemplateResult | null, default null; `size` (attribute `size`) : "sm" | "md", default "md"; `circular` (attribute `circular`) : boolean, default false
|
|
925
930
|
Events: `select`
|
|
926
|
-
CSS custom properties: `--ui-border`, `--ui-button-background`, `--ui-button-background-active`, `--ui-button-background-hover`, `--ui-button-border`, `--ui-button-highlight`, `--ui-button-text-shadow`, `--ui-danger`, `--ui-danger-hover`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-font-weight-medium`, `--ui-line-height-tight`, `--ui-on-accent`, `--ui-primary`, `--ui-primary-hover`, `--ui-radius-sm`, `--ui-shadow`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
931
|
+
CSS custom properties: `--ui-border`, `--ui-button-background`, `--ui-button-background-active`, `--ui-button-background-hover`, `--ui-button-border`, `--ui-button-highlight`, `--ui-button-text-shadow`, `--ui-danger`, `--ui-danger-hover`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-font-weight-medium`, `--ui-line-height-tight`, `--ui-on-accent`, `--ui-primary`, `--ui-primary-hover`, `--ui-radius-circle`, `--ui-radius-sm`, `--ui-shadow`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
927
932
|
|
|
928
933
|
Example:
|
|
929
934
|
```html
|
|
@@ -1063,7 +1068,7 @@ Import: `import "@f-ewald/components/form-select.js";`
|
|
|
1063
1068
|
|
|
1064
1069
|
Properties: `options` (JS property only) : SelectOption[], default []; `value` (attribute `value`) : string, default ""; `label` (attribute `label`) : string, default ""; `disabled` (attribute `disabled`) : boolean, default false; `searchable` (attribute `searchable`) : boolean, default false
|
|
1065
1070
|
Events: `change`
|
|
1066
|
-
CSS custom properties: `--ui-border`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size`, `--ui-font-weight-semibold`, `--ui-line-height-tight`, `--ui-primary`, `--ui-radius-sm`, `--ui-shadow`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1071
|
+
CSS custom properties: `--ui-border`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size`, `--ui-font-weight-semibold`, `--ui-line-height-tight`, `--ui-primary`, `--ui-radius-pill`, `--ui-radius-sm`, `--ui-shadow`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1067
1072
|
|
|
1068
1073
|
Example:
|
|
1069
1074
|
```html
|
|
@@ -1232,7 +1237,7 @@ Import: `import "@f-ewald/components/kanban-board.js";`
|
|
|
1232
1237
|
|
|
1233
1238
|
Properties: `columns` (JS property only) : KanbanColumnData[], default []; `label` (attribute `label`) : string, default "Board"; `manual` (attribute `manual`) : boolean, default false; `reorderable` (attribute `reorderable`) : boolean, default true
|
|
1234
1239
|
Events: `card-move`, `card-open`
|
|
1235
|
-
CSS custom properties: `--ui-font`, `--ui-font-size`, `--ui-font-size-sm`, `--ui-font-weight-medium`, `--ui-line-height-normal`, `--ui-primary`, `--ui-text`, `--ui-text-muted`
|
|
1240
|
+
CSS custom properties: `--ui-font`, `--ui-font-size`, `--ui-font-size-sm`, `--ui-font-weight-medium`, `--ui-line-height-normal`, `--ui-primary`, `--ui-radius-pill`, `--ui-text`, `--ui-text-muted`
|
|
1236
1241
|
|
|
1237
1242
|
Example:
|
|
1238
1243
|
```html
|
|
@@ -1299,7 +1304,7 @@ Import: `import "@f-ewald/components/kanban-column.js";`
|
|
|
1299
1304
|
|
|
1300
1305
|
Properties: `heading` (attribute `heading`) : string, default ""; `count` (attribute `count`) : number, default 0; `dragover` (attribute `dragover`) : boolean, default false; `empty` (attribute `empty`) : boolean, default false
|
|
1301
1306
|
Events: none
|
|
1302
|
-
CSS custom properties: `--ui-border`, `--ui-font`, `--ui-font-size`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-font-weight-medium`, `--ui-font-weight-semibold`, `--ui-line-height-glyph`, `--ui-line-height-tight`, `--ui-primary`, `--ui-radius`, `--ui-radius-sm`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1307
|
+
CSS custom properties: `--ui-border`, `--ui-font`, `--ui-font-size`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-font-weight-medium`, `--ui-font-weight-semibold`, `--ui-line-height-glyph`, `--ui-line-height-tight`, `--ui-primary`, `--ui-radius`, `--ui-radius-pill`, `--ui-radius-sm`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1303
1308
|
|
|
1304
1309
|
Example:
|
|
1305
1310
|
```html
|
|
@@ -1337,7 +1342,7 @@ Import: `import "@f-ewald/components/link-card.js";`
|
|
|
1337
1342
|
|
|
1338
1343
|
Properties: `heading` (attribute `heading`) : string, default ""; `description` (attribute `description`) : string, default ""; `href` (attribute `href`) : string, default ""; `logo` (attribute `logo`) : string, default ""; `status` (attribute `status`) : LinkCardStatus, default ""
|
|
1339
1344
|
Events: none
|
|
1340
|
-
CSS custom properties: `--ui-border`, `--ui-danger`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size`, `--ui-font-size-lg`, `--ui-font-weight-semibold`, `--ui-line-height-normal`, `--ui-line-height-tight`, `--ui-radius`, `--ui-shadow`, `--ui-success`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1345
|
+
CSS custom properties: `--ui-border`, `--ui-danger`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size`, `--ui-font-size-lg`, `--ui-font-weight-semibold`, `--ui-line-height-normal`, `--ui-line-height-tight`, `--ui-radius`, `--ui-radius-pill`, `--ui-shadow`, `--ui-success`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1341
1346
|
|
|
1342
1347
|
Example:
|
|
1343
1348
|
```html
|
|
@@ -1402,7 +1407,7 @@ Import: `import "@f-ewald/components/loading-dots.js";`
|
|
|
1402
1407
|
|
|
1403
1408
|
Properties: `size` (attribute `size`) : "sm" | "md" | "lg", default "md"; `label` (attribute `label`) : string, default "Loading"
|
|
1404
1409
|
Events: none
|
|
1405
|
-
CSS custom properties: `--ui-line-height-glyph`, `--ui-primary`
|
|
1410
|
+
CSS custom properties: `--ui-line-height-glyph`, `--ui-primary`, `--ui-radius-pill`
|
|
1406
1411
|
|
|
1407
1412
|
Example:
|
|
1408
1413
|
```html
|
|
@@ -1657,7 +1662,7 @@ Import: `import "@f-ewald/components/multi-select.js";`
|
|
|
1657
1662
|
|
|
1658
1663
|
Properties: `options` (JS property only) : MultiSelectOption[], default []; `values` (JS property only) : string[], default []; `name` (attribute `name`) : string, default ""; `label` (attribute `label`) : string, default ""; `placeholder` (attribute `placeholder`) : string, default "Select options"; `disabled` (attribute `disabled`) : boolean, default false; `required` (attribute `required`) : boolean, default false; `searchable` (attribute `searchable`) : boolean, default false; `max` (attribute `max`) : number, default 0; `variant` (attribute `variant`) : MultiSelectVariant, default "dropdown"; `visibleRows` (attribute `visible-rows`) : number, default 5; `showChips` (attribute `show-chips`) : boolean, default false
|
|
1659
1664
|
Events: `change`
|
|
1660
|
-
CSS custom properties: `--ui-border`, `--ui-danger`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size`, `--ui-font-size-sm`, `--ui-font-weight-medium`, `--ui-font-weight-semibold`, `--ui-line-height-tight`, `--ui-primary`, `--ui-radius`, `--ui-radius-sm`, `--ui-shadow`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1665
|
+
CSS custom properties: `--ui-border`, `--ui-danger`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size`, `--ui-font-size-sm`, `--ui-font-weight-medium`, `--ui-font-weight-semibold`, `--ui-line-height-tight`, `--ui-primary`, `--ui-radius`, `--ui-radius-pill`, `--ui-radius-sm`, `--ui-shadow`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1661
1666
|
|
|
1662
1667
|
Example:
|
|
1663
1668
|
```html
|
|
@@ -1781,7 +1786,7 @@ Import: `import "@f-ewald/components/photo-gallery.js";`
|
|
|
1781
1786
|
|
|
1782
1787
|
Properties: `currentIndex` (attribute `current-index`) : number, default 0; `delay` (attribute `delay`) : number, default 0; `showControls` (attribute `show-controls`) : boolean, default true; `showCounter` (attribute `show-counter`) : boolean, default false; `showIndicators` (attribute `show-indicators`) : boolean, default false; `showAutoplayControl` (attribute `show-autoplay-control`) : boolean, default true; `paused` (attribute `paused`) : boolean, default false; `aspectRatio` (attribute `aspect-ratio`) : string, default "16 / 9"; `objectFit` (attribute `object-fit`) : PhotoGalleryObjectFit, default "cover"
|
|
1783
1788
|
Events: `slide-change`
|
|
1784
|
-
CSS custom properties: `--ui-border`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size`, `--ui-font-size-sm`, `--ui-line-height-normal`, `--ui-line-height-tight`, `--ui-on-accent`, `--ui-overlay`, `--ui-primary`, `--ui-radius`, `--ui-radius-sm`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1789
|
+
CSS custom properties: `--ui-border`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size`, `--ui-font-size-sm`, `--ui-line-height-normal`, `--ui-line-height-tight`, `--ui-on-accent`, `--ui-overlay`, `--ui-primary`, `--ui-radius`, `--ui-radius-pill`, `--ui-radius-sm`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1785
1790
|
|
|
1786
1791
|
Example:
|
|
1787
1792
|
```html
|
|
@@ -1950,7 +1955,7 @@ Import: `import "@f-ewald/components/radio-pills.js";`
|
|
|
1950
1955
|
|
|
1951
1956
|
Properties: `options` (JS property only) : RadioPillOption[], default []; `value` (attribute `value`) : string, default ""; `disabled` (attribute `disabled`) : boolean, default false
|
|
1952
1957
|
Events: `change`
|
|
1953
|
-
CSS custom properties: `--ui-border`, `--ui-button-accent`, `--ui-button-highlight`, `--ui-button-secondary-surface-muted`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-sm`, `--ui-line-height-tight`, `--ui-primary`, `--ui-surface-muted`, `--ui-text`
|
|
1958
|
+
CSS custom properties: `--ui-border`, `--ui-button-accent`, `--ui-button-highlight`, `--ui-button-secondary-surface-muted`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-sm`, `--ui-line-height-tight`, `--ui-primary`, `--ui-radius-pill`, `--ui-surface-muted`, `--ui-text`
|
|
1954
1959
|
|
|
1955
1960
|
Example:
|
|
1956
1961
|
```html
|
|
@@ -1981,7 +1986,7 @@ Import: `import "@f-ewald/components/range-slider.js";`
|
|
|
1981
1986
|
|
|
1982
1987
|
Properties: `min` (attribute `min`) : number, default 0; `max` (attribute `max`) : number, default 100; `step` (attribute `step`) : number, default 1; `value` (attribute `value`) : number, default 0; `disabled` (attribute `disabled`) : boolean, default false; `name` (attribute `name`) : string, default ""
|
|
1983
1988
|
Events: `input`, `change`
|
|
1984
|
-
CSS custom properties: `--ui-button-accent`, `--ui-button-background`, `--ui-button-highlight`, `--ui-focus-ring`, `--ui-primary`, `--ui-surface`, `--ui-surface-muted`, `--ui-text-muted`
|
|
1989
|
+
CSS custom properties: `--ui-button-accent`, `--ui-button-background`, `--ui-button-highlight`, `--ui-focus-ring`, `--ui-primary`, `--ui-radius-circle`, `--ui-radius-pill`, `--ui-surface`, `--ui-surface-muted`, `--ui-text-muted`
|
|
1985
1990
|
|
|
1986
1991
|
Example:
|
|
1987
1992
|
```html
|
|
@@ -2068,7 +2073,7 @@ Import: `import "@f-ewald/components/scroll-dots.js";`
|
|
|
2068
2073
|
|
|
2069
2074
|
Properties: `items` (JS property only) : ScrollDotsItem[], default []; `active` (attribute `active`) : number, default 0; `color` (attribute `color`) : string, default ""; `label` (attribute `label`) : string, default ""
|
|
2070
2075
|
Events: `dot-select`
|
|
2071
|
-
CSS custom properties: `--ui-focus-ring`, `--ui-primary`, `--ui-text-muted`
|
|
2076
|
+
CSS custom properties: `--ui-focus-ring`, `--ui-primary`, `--ui-radius-pill`, `--ui-text-muted`
|
|
2072
2077
|
|
|
2073
2078
|
Example:
|
|
2074
2079
|
```html
|
|
@@ -2170,7 +2175,7 @@ Import: `import "@f-ewald/components/slide-panel.js";`
|
|
|
2170
2175
|
|
|
2171
2176
|
Properties: `open` (attribute `open`) : boolean, default false; `heading` (attribute `heading`) : string, default ""
|
|
2172
2177
|
Events: `panel-close`
|
|
2173
|
-
CSS custom properties: `--ui-border`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-lg`, `--ui-font-weight-semibold`, `--ui-line-height-tight`, `--ui-radius`, `--ui-radius-sm`, `--ui-shadow-lg`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
2178
|
+
CSS custom properties: `--ui-border`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-lg`, `--ui-font-weight-semibold`, `--ui-line-height-tight`, `--ui-radius`, `--ui-radius-pill`, `--ui-radius-sm`, `--ui-shadow-lg`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
2174
2179
|
|
|
2175
2180
|
Example:
|
|
2176
2181
|
```html
|
|
@@ -2217,7 +2222,7 @@ Import: `import "@f-ewald/components/stat-meter.js";`
|
|
|
2217
2222
|
|
|
2218
2223
|
Properties: `label` (attribute `label`) : string, default ""; `percent` (attribute `percent`) : number | null, default null; `color` (attribute `color`) : string, default ""; `trackColor` (attribute `track-color`) : string, default ""
|
|
2219
2224
|
Events: none
|
|
2220
|
-
CSS custom properties: `--ui-font`, `--ui-font-size-sm`, `--ui-font-weight-medium`, `--ui-font-weight-semibold`, `--ui-success`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`, `--ui-tracking-wide`
|
|
2225
|
+
CSS custom properties: `--ui-font`, `--ui-font-size-sm`, `--ui-font-weight-medium`, `--ui-font-weight-semibold`, `--ui-radius-pill`, `--ui-success`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`, `--ui-tracking-wide`
|
|
2221
2226
|
|
|
2222
2227
|
Example:
|
|
2223
2228
|
```html
|
|
@@ -2263,7 +2268,7 @@ Import: `import "@f-ewald/components/status-pill.js";`
|
|
|
2263
2268
|
|
|
2264
2269
|
Properties: `label` (attribute `label`) : string, default ""; `color` (attribute `color`) : StatusPillColor, default "neutral"; `spinner` (attribute `spinner`) : boolean, default false
|
|
2265
2270
|
Events: none
|
|
2266
|
-
CSS custom properties: `--ui-danger`, `--ui-font`, `--ui-font-size-sm`, `--ui-font-weight-medium`, `--ui-info`, `--ui-primary`, `--ui-success`, `--ui-text-muted`, `--ui-warning`
|
|
2271
|
+
CSS custom properties: `--ui-danger`, `--ui-font`, `--ui-font-size-sm`, `--ui-font-weight-medium`, `--ui-info`, `--ui-primary`, `--ui-radius-pill`, `--ui-success`, `--ui-text-muted`, `--ui-warning`
|
|
2267
2272
|
|
|
2268
2273
|
Example:
|
|
2269
2274
|
```html
|
|
@@ -2473,7 +2478,7 @@ Import: `import "@f-ewald/components/timeline-entry.js";`
|
|
|
2473
2478
|
|
|
2474
2479
|
Properties: `datetime` (attribute `datetime`) : string | null, default null; `label` (attribute `label`) : string | null, default null; `alternating` (attribute `alternating`) : boolean, default false; `color` (attribute `color`) : StatusPillColor, default "primary"; `compact` (attribute `compact`) : boolean, default false; `running` (attribute `running`) : boolean, default false
|
|
2475
2480
|
Events: none
|
|
2476
|
-
CSS custom properties: `--ui-border`, `--ui-danger`, `--ui-font`, `--ui-font-size`, `--ui-font-size-lg`, `--ui-font-size-sm`, `--ui-font-weight-medium`, `--ui-font-weight-semibold`, `--ui-info`, `--ui-line-height-normal`, `--ui-line-height-tight`, `--ui-primary`, `--ui-success`, `--ui-surface`, `--ui-text`, `--ui-text-muted`, `--ui-tracking-wide`, `--ui-warning`
|
|
2481
|
+
CSS custom properties: `--ui-border`, `--ui-danger`, `--ui-font`, `--ui-font-size`, `--ui-font-size-lg`, `--ui-font-size-sm`, `--ui-font-weight-medium`, `--ui-font-weight-semibold`, `--ui-info`, `--ui-line-height-normal`, `--ui-line-height-tight`, `--ui-primary`, `--ui-radius-pill`, `--ui-success`, `--ui-surface`, `--ui-text`, `--ui-text-muted`, `--ui-tracking-wide`, `--ui-warning`
|
|
2477
2482
|
|
|
2478
2483
|
Example:
|
|
2479
2484
|
```html
|
|
@@ -2663,7 +2668,7 @@ Import: `import "@f-ewald/components/ui-button.js";`
|
|
|
2663
2668
|
|
|
2664
2669
|
Properties: `variant` (attribute `variant`) : ButtonVariant, default "primary"; `size` (attribute `size`) : "sm" | "md", default "md"; `pill` (attribute `pill`) : boolean, default false; `ai` (attribute `ai`) : boolean, default false; `href` (attribute `href`) : string | null, default null; `type` (attribute `type`) : "button" | "submit" | "reset", default "button"; `disabled` (attribute `disabled`) : boolean, default false; `busy` (attribute `busy`) : boolean, default false
|
|
2665
2670
|
Events: none
|
|
2666
|
-
CSS custom properties: `--ui-ai-1`, `--ui-ai-2`, `--ui-ai-3`, `--ui-ai-4`, `--ui-border`, `--ui-button-background`, `--ui-button-background-active`, `--ui-button-background-hover`, `--ui-button-border`, `--ui-button-danger-background`, `--ui-button-danger-background-active`, `--ui-button-danger-background-hover`, `--ui-button-danger-border`, `--ui-button-highlight`, `--ui-button-secondary-`, `--ui-button-secondary-background`, `--ui-button-secondary-background-active`, `--ui-button-secondary-background-hover`, `--ui-button-secondary-border`, `--ui-button-secondary-border-hover`, `--ui-button-text-shadow`, `--ui-danger`, `--ui-danger-hover`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-font-weight-medium`, `--ui-line-height-tight`, `--ui-on-accent`, `--ui-primary`, `--ui-primary-hover`, `--ui-radius-sm`, `--ui-text`, `--ui-text-muted`
|
|
2671
|
+
CSS custom properties: `--ui-ai-1`, `--ui-ai-2`, `--ui-ai-3`, `--ui-ai-4`, `--ui-border`, `--ui-button-background`, `--ui-button-background-active`, `--ui-button-background-hover`, `--ui-button-border`, `--ui-button-danger-background`, `--ui-button-danger-background-active`, `--ui-button-danger-background-hover`, `--ui-button-danger-border`, `--ui-button-highlight`, `--ui-button-secondary-`, `--ui-button-secondary-background`, `--ui-button-secondary-background-active`, `--ui-button-secondary-background-hover`, `--ui-button-secondary-border`, `--ui-button-secondary-border-hover`, `--ui-button-text-shadow`, `--ui-danger`, `--ui-danger-hover`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-sm`, `--ui-font-size-xs`, `--ui-font-weight-medium`, `--ui-line-height-tight`, `--ui-on-accent`, `--ui-primary`, `--ui-primary-hover`, `--ui-radius-pill`, `--ui-radius-sm`, `--ui-text`, `--ui-text-muted`
|
|
2667
2672
|
|
|
2668
2673
|
Example:
|
|
2669
2674
|
```html
|
|
@@ -2692,6 +2697,13 @@ renders between the box and the label, inside the same clickable `<label>`
|
|
|
2692
2697
|
— for a row that pairs a checkbox with an icon/swatch and needs the whole
|
|
2693
2698
|
row, icon included, to stay one click target.
|
|
2694
2699
|
|
|
2700
|
+
The label is the default slot, with the `label` property as its fallback.
|
|
2701
|
+
Slot it instead of setting the property when it needs its own markup or
|
|
2702
|
+
styling — a link, an emphasized word — since a property renders inside this
|
|
2703
|
+
component's shadow DOM and cannot be reached from outside. Either way the
|
|
2704
|
+
label sits inside the native `<label>`, so it stays clickable and still
|
|
2705
|
+
names the checkbox for assistive technology.
|
|
2706
|
+
|
|
2695
2707
|
Import: `import "@f-ewald/components/ui-checkbox.js";`
|
|
2696
2708
|
|
|
2697
2709
|
Properties: `checked` (attribute `checked`) : boolean, default false; `indeterminate` (attribute `indeterminate`) : boolean, default false; `disabled` (attribute `disabled`) : boolean, default false; `required` (attribute `required`) : boolean, default false; `name` (attribute `name`) : string, default ""; `label` (attribute `label`) : string, default ""; `icon` (JS property only) : TemplateResult | null, default null; `iconSize` (attribute `iconSize`) : number, default 14
|
|
@@ -2702,6 +2714,8 @@ Example:
|
|
|
2702
2714
|
```html
|
|
2703
2715
|
<ui-checkbox label="Subscribe to updates"></ui-checkbox>
|
|
2704
2716
|
<ui-checkbox name="terms" label="I agree to the terms" required></ui-checkbox>
|
|
2717
|
+
<!-- Slot the label when it needs its own markup; it overrides the property -->
|
|
2718
|
+
<ui-checkbox name="beta">Enable <strong>beta</strong> features</ui-checkbox>
|
|
2705
2719
|
<!-- .icon is set programmatically (a pre-rendered TemplateResult), not an attribute -->
|
|
2706
2720
|
<ui-checkbox label="Show list view"></ui-checkbox>
|
|
2707
2721
|
```
|
|
@@ -2718,7 +2732,7 @@ Import: `import "@f-ewald/components/user-avatar.js";`
|
|
|
2718
2732
|
|
|
2719
2733
|
Properties: `src` (attribute `src`) : string | null, default null; `name` (attribute `name`) : string | null, default null; `size` (attribute `size`) : string | number, default 32
|
|
2720
2734
|
Events: none
|
|
2721
|
-
CSS custom properties: `--ui-font`, `--ui-font-weight-semibold`, `--ui-on-accent`, `--ui-primary`
|
|
2735
|
+
CSS custom properties: `--ui-font`, `--ui-font-weight-semibold`, `--ui-on-accent`, `--ui-primary`, `--ui-radius-circle`
|
|
2722
2736
|
|
|
2723
2737
|
Example:
|
|
2724
2738
|
```html
|