@f-ewald/components 1.37.5 → 1.38.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 +36 -3
- 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/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/user-avatar.md +1 -0
- package/llms.txt +25 -20
- package/package.json +1 -1
package/docs/design-language.md
CHANGED
|
@@ -21,6 +21,17 @@ defines the details used when creating or reviewing components.
|
|
|
21
21
|
radii, shadows, and focus rings. `tokens.ts` (`tokenValues`) is the single
|
|
22
22
|
source of truth; every `var(--ui-*, …)` usage must repeat that token's exact
|
|
23
23
|
fallback, and any newly introduced `--ui-*` usage must add/carry one too.
|
|
24
|
+
- Themes are single-valued and mutually exclusive, selected by `data-theme` on
|
|
25
|
+
`<html>`: `dark` and `light` force one of the two flat palettes, `gradient`
|
|
26
|
+
glosses buttons and toasts, and `metro` squares corners and flattens shadows
|
|
27
|
+
over a blue accent. `dark` aside, each is layered on the light palette and
|
|
28
|
+
must be excluded from `tokens.css`'s `prefers-color-scheme: dark` media query
|
|
29
|
+
— that selector outranks a bare `[data-theme]`, so a missing exclusion yields
|
|
30
|
+
a half-dark hybrid rather than an outright failure. Adding a theme therefore
|
|
31
|
+
means adding it to `lightThemes` in `generate-tokens-css.mjs`, which derives
|
|
32
|
+
both the block and the exclusion from that one list.
|
|
33
|
+
- Colors are the normal subject of a theme; `metro` is the sole precedent for
|
|
34
|
+
overriding shape, and type metrics are never themed.
|
|
24
35
|
- Semantic states use `primary`, `info`, `success`, `warning`, and `danger`.
|
|
25
36
|
- Foregrounds on solid semantic fills use `--ui-on-accent`.
|
|
26
37
|
- Elevated dark tooltips use `--ui-tooltip`; modal backdrops use
|
|
@@ -88,14 +99,20 @@ literal values are migrated onto them.
|
|
|
88
99
|
aspect ratios, animation timing, proportional calculations derived from a
|
|
89
100
|
public size, `0.125rem` optical alignment nudges, and domain geometry.
|
|
90
101
|
- Use `--ui-radius-sm` (`0.25rem` ≈ 4px) for controls, `--ui-radius`
|
|
91
|
-
(`0.5rem` ≈ 8px) for cards/dialogs/surfaces, and
|
|
92
|
-
|
|
102
|
+
(`0.5rem` ≈ 8px) for cards/dialogs/surfaces, and `--ui-radius-pill`
|
|
103
|
+
(`9999px`) / `--ui-radius-circle` (`50%`) for intentional pill and circle
|
|
104
|
+
shapes — a chip, an avatar, a slider thumb, a dot. Those four rem/px values
|
|
105
|
+
are the light palette's, not constants: `data-theme="metro"` sets all four to
|
|
106
|
+
`0`. Always read the token, never inline its current value — a hardcoded
|
|
107
|
+
`0.25rem` or `9999px` silently opts that corner out of the theme, which a
|
|
108
|
+
contract test now rejects.
|
|
93
109
|
- Chart bars and their tracks use `--ui-radius-sm` as well — literal `4` on
|
|
94
110
|
SVG `rx` attributes, which can't take `var()` (`percent-bar-chart`,
|
|
95
111
|
`price-history-chart`), or the token in CSS (`distribution-chart`,
|
|
96
112
|
`weight-bar-chart`). A bar is a data mark, not a pill: fully rounded ends
|
|
97
113
|
round away the value being read at short lengths. Genuine pill controls
|
|
98
|
-
(e.g. `range-slider`'s track and thumb) keep their full radius
|
|
114
|
+
(e.g. `range-slider`'s track and thumb) keep their full radius, via
|
|
115
|
+
`--ui-radius-pill`/`--ui-radius-circle`.
|
|
99
116
|
- Compact controls must retain a clear hit target and must not reserve layout
|
|
100
117
|
space for optional content that is absent.
|
|
101
118
|
|
|
@@ -118,7 +135,7 @@ literal values are migrated onto them.
|
|
|
118
135
|
add new names through `scripts/generate-icons.mjs` and `npm run icons`, not
|
|
119
136
|
ad hoc inline SVGs.
|
|
120
137
|
- Control corners use `--ui-radius-sm` (4px); enclosing surfaces use
|
|
121
|
-
`--ui-radius` (8px).
|
|
138
|
+
`--ui-radius` (8px). Both are theme-overridable — see the radius rule above.
|
|
122
139
|
- Side panels use a `20rem` compact / `25rem` comfortable width; the shared
|
|
123
140
|
responsive breakpoint is `48rem`.
|
|
124
141
|
- Radio inputs render at `1rem`.
|
package/docs/dropdown-button.md
CHANGED
package/docs/form-select.md
CHANGED
package/docs/kanban-board.md
CHANGED
package/docs/kanban-column.md
CHANGED
package/docs/link-card.md
CHANGED
package/docs/loading-dots.md
CHANGED
package/docs/multi-select.md
CHANGED
package/docs/photo-gallery.md
CHANGED
package/docs/radio-pills.md
CHANGED
package/docs/range-slider.md
CHANGED
package/docs/scroll-dots.md
CHANGED
package/docs/slide-panel.md
CHANGED
package/docs/stat-meter.md
CHANGED
package/docs/status-pill.md
CHANGED
package/docs/timeline-entry.md
CHANGED
package/docs/ui-button.md
CHANGED
package/docs/user-avatar.md
CHANGED
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
|
|
@@ -2718,7 +2723,7 @@ Import: `import "@f-ewald/components/user-avatar.js";`
|
|
|
2718
2723
|
|
|
2719
2724
|
Properties: `src` (attribute `src`) : string | null, default null; `name` (attribute `name`) : string | null, default null; `size` (attribute `size`) : string | number, default 32
|
|
2720
2725
|
Events: none
|
|
2721
|
-
CSS custom properties: `--ui-font`, `--ui-font-weight-semibold`, `--ui-on-accent`, `--ui-primary`
|
|
2726
|
+
CSS custom properties: `--ui-font`, `--ui-font-weight-semibold`, `--ui-on-accent`, `--ui-primary`, `--ui-radius-circle`
|
|
2722
2727
|
|
|
2723
2728
|
Example:
|
|
2724
2729
|
```html
|