@karmo-co/drift-kit-reference 24.3.0 → 24.5.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/manifest/components/brand-sheet.md +37 -0
- package/manifest/components/carousel.md +6 -3
- package/manifest/components/checkbox.md +1 -1
- package/manifest/components/glider.md +1 -1
- package/manifest/components/list.md +33 -0
- package/manifest/components/radio.md +1 -1
- package/manifest/components/shield.md +1 -0
- package/manifest/components/sidebar.md +1 -1
- package/manifest/components/stepper.md +1 -1
- package/manifest/components/switch.md +1 -1
- package/manifest/components/tile-check.md +38 -0
- package/manifest/components/vehicle.md +17 -4
- package/manifest/index.json +42 -1
- package/manifest/setup.md +26 -26
- package/manifest/tokens/motion.md +4 -2
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Brand sheet (`brand-sheet`)
|
|
2
|
+
|
|
3
|
+
A dark brand panel and the page's sheet that meets it, for a sign-in screen (medium) or the top of a home screen (small).
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Anatomy (HTML)
|
|
7
|
+
|
|
8
|
+
```text
|
|
9
|
+
div.dk-component-brand-sheet[data-layout="stacked|split|card|auto"]?[data-size="small|medium"]?
|
|
10
|
+
section.dk-component-brand-sheet__panel[data-theme="dark"]
|
|
11
|
+
section.dk-component-brand-sheet__sheet[data-surface="raised"]
|
|
12
|
+
div.dk-component-brand-sheet__lift? (first child: rises over the edge)
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Attributes
|
|
16
|
+
|
|
17
|
+
| Attribute | Values the stylesheet styles |
|
|
18
|
+
|---|---|
|
|
19
|
+
| `data-layout` | `auto`, `card`, `split` |
|
|
20
|
+
| `data-size` | `small` |
|
|
21
|
+
|
|
22
|
+
## React
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
import { BrandSheet } from '@karmo-co/drift-kit/react';
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
| Prop | Type | Notes |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
| `layout` | `'stacked' \| 'split' \| 'card' \| 'auto'` | Stacked when absent. auto: stacked below a 64rem root, from it split (medium) or card (small). |
|
|
31
|
+
| `size` | `'small' \| 'medium'` | Medium (a sign-in screen) when absent; small is a home screen's band. |
|
|
32
|
+
| `panel` | `ReactNode` | What the dark panel holds. |
|
|
33
|
+
| `lift` | `ReactNode` | The sheet's first child, raised over its edge into the panel. |
|
|
34
|
+
|
|
35
|
+
## Component tokens
|
|
36
|
+
|
|
37
|
+
`--dk-component-brand-sheet-panel-padding-block-start`, `--dk-component-brand-sheet-panel-padding-inline`, `--dk-component-brand-sheet-panel-padding-block-end`, `--dk-component-brand-sheet-panel-gap`, `--dk-component-brand-sheet-sheet-padding-block-start`, `--dk-component-brand-sheet-sheet-padding-inline`, `--dk-component-brand-sheet-sheet-padding-block-end`, `--dk-component-brand-sheet-sheet-gap`, `--dk-component-brand-sheet-radius`, `--dk-component-brand-sheet-rise`, `--dk-component-brand-sheet-column`, `--dk-component-brand-sheet-split-padding`, `--dk-component-brand-sheet-split-panel-gap`, `--dk-component-brand-sheet-split-sheet-gap`, `--dk-component-brand-sheet-overlap`, `--dk-component-brand-sheet-card-radius`, `--dk-component-brand-sheet-card-gap`, `--dk-component-brand-sheet-lift`, `--dk-component-brand-sheet-lift-inset`, `--dk-component-brand-sheet-fade-stop`, `--dk-component-brand-sheet-cast-reach`, `--dk-component-brand-sheet-cast-far`, `--dk-component-brand-sheet-cast-near`, `--dk-component-brand-sheet-cast-near-offset`, `--dk-component-brand-sheet-cast-near-blur`, `--dk-component-brand-sheet-cast-side-offset`, `--dk-component-brand-sheet-cast-side-blur`, `--dk-component-brand-sheet-cast-side-near-offset`, `--dk-component-brand-sheet-cast-side-near-blur`, `--dk-component-brand-sheet-cast-side-far`, `--dk-component-brand-sheet-cast-side-near`, `--dk-component-brand-sheet-cast-up-offset`, `--dk-component-brand-sheet-cast-up-blur`, `--dk-component-brand-sheet-fade`, `--dk-component-brand-sheet-split-fill`
|
|
@@ -6,7 +6,7 @@ Browse a short run of cards sideways. Two presentations: a slider on a phone or
|
|
|
6
6
|
## Anatomy (HTML)
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
|
-
div.dk-component-carousel[data-presentation="slider|row"]?[data-loop]?[data-start]?[data-bleed]?[data-lift]?[data-device]?[data-arrow-look="solid|raised-inverse"]?
|
|
9
|
+
div.dk-component-carousel[data-presentation="slider|row"]?[data-loop]?[data-start]?[data-bleed]?[data-lift]?[data-device]?[data-arrow-look="solid|raised-inverse"]?[data-item-hover="showcase"]?
|
|
10
10
|
(data-presentation follows the nearest data-device when there is one,
|
|
11
11
|
else the kit's phone breakpoint, and the runtime owns it; data-start is
|
|
12
12
|
the real item's index; data-lift is a selector inside an item whose
|
|
@@ -34,8 +34,10 @@ div.dk-component-carousel[data-presentation="slider|row"]?[data-loop]?[data-star
|
|
|
34
34
|
|---|---|
|
|
35
35
|
| `data-at-end` | (present or absent) |
|
|
36
36
|
| `data-at-start` | (present or absent) |
|
|
37
|
+
| `data-item-hover` | `showcase` |
|
|
37
38
|
| `data-presentation` | `row`, `slider` |
|
|
38
|
-
| `data-
|
|
39
|
+
| `data-pseudo-class` | `hover` |
|
|
40
|
+
| `data-variant` | `showcase`, `solid` |
|
|
39
41
|
|
|
40
42
|
## React
|
|
41
43
|
|
|
@@ -53,9 +55,10 @@ import { Carousel } from '@karmo-co/drift-kit/react';
|
|
|
53
55
|
| `device` | `'phone' \| 'tablet' \| 'desktop'` | phone and tablet a slider, desktop a row; else the nearest data-device, else the kit's phone breakpoint. |
|
|
54
56
|
| `arrows` | `{ prev: ReactNode; next: ReactNode; label?: { prev: string; next: string } }` | Previous and Next, for the row (the slider hides them). |
|
|
55
57
|
| `arrowLook` | `'solid' \| 'raised-inverse'` | solid is the primary fill; raised-inverse the raised IconButton in a light island. Unset: solid in light, raised-inverse in dark (the nearest data-theme, followed as it changes). |
|
|
58
|
+
| `itemHover` | `'showcase'` | showcase: in the row, a hovered item's Vehicle showcase steps its panel up and grows its car (the slider has no hover). |
|
|
56
59
|
| `onChange` | `(index: number) => void` | The real item now centred (slider) or first (row). |
|
|
57
60
|
| `className` | `string` | |
|
|
58
61
|
|
|
59
62
|
## Component tokens
|
|
60
63
|
|
|
61
|
-
`--dk-component-carousel-gap`, `--dk-component-carousel-slider-item-width`, `--dk-component-carousel-padding-block`, `--dk-component-carousel-row-count`, `--dk-component-carousel-row-count-wide`, `--dk-component-carousel-row-count-medium`, `--dk-component-carousel-row-count-narrow`, `--dk-component-carousel-row-peek`, `--dk-component-carousel-fade-inset`, `--dk-component-carousel-item-press-scale`, `--dk-component-carousel-arrow-shadow`, `--dk-component-carousel-arrow-shadow-hover`, `--dk-component-carousel-arrow-shadow-active`, `--dk-component-carousel-arrow-offset`
|
|
64
|
+
`--dk-component-carousel-gap`, `--dk-component-carousel-slider-item-width`, `--dk-component-carousel-padding-block`, `--dk-component-carousel-row-count`, `--dk-component-carousel-row-count-wide`, `--dk-component-carousel-row-count-medium`, `--dk-component-carousel-row-count-narrow`, `--dk-component-carousel-row-peek`, `--dk-component-carousel-fade-inset`, `--dk-component-carousel-item-press-scale`, `--dk-component-carousel-showcase-hover-panel`, `--dk-component-carousel-showcase-hover-grow`, `--dk-component-carousel-arrow-shadow`, `--dk-component-carousel-arrow-shadow-hover`, `--dk-component-carousel-arrow-shadow-active`, `--dk-component-carousel-arrow-offset`
|
|
@@ -40,4 +40,4 @@ import { Checkbox } from '@karmo-co/drift-kit/react';
|
|
|
40
40
|
|
|
41
41
|
## Component tokens
|
|
42
42
|
|
|
43
|
-
`--dk-component-checkbox-size`, `--dk-component-checkbox-small-size`, `--dk-component-checkbox-large-size`, `--dk-component-checkbox-glyph-size`, `--dk-component-checkbox-small-glyph-size`, `--dk-component-checkbox-large-glyph-size`, `--dk-component-checkbox-glyph-stroke`, `--dk-component-checkbox-glyph-scale-active`, `--dk-component-checkbox-glyph-draw-length`, `--dk-component-checkbox-glyph-draw-delay`, `--dk-component-checkbox-glyph-draw-duration`, `--dk-component-checkbox-glyph-draw-easing`, `--dk-component-checkbox-glyph-undraw-duration`, `--dk-component-checkbox-glyph-undraw-easing`, `--dk-component-checkbox-dash-thickness`, `--dk-component-checkbox-small-dash-thickness`, `--dk-component-checkbox-large-dash-thickness`, `--dk-component-checkbox-radius`, `--dk-component-checkbox-border-width`, `--dk-component-checkbox-focus-ring-width`, `--dk-component-checkbox-gap`, `--dk-component-checkbox-text-gap`, `--dk-component-checkbox-group-gap`, `--dk-component-checkbox-group-legend-gap`, `--dk-component-checkbox-group-row-gap`, `--dk-component-checkbox-label-font-family`, `--dk-component-checkbox-label-font-size`, `--dk-component-checkbox-label-line-height`, `--dk-component-checkbox-small-label-font-size`, `--dk-component-checkbox-small-label-line-height`, `--dk-component-checkbox-large-label-font-size`, `--dk-component-checkbox-large-label-line-height`, `--dk-component-checkbox-label-font-weight`, `--dk-component-checkbox-desc-font-weight`, `--dk-component-checkbox-surface-default`, `--dk-component-checkbox-surface-hover`, `--dk-component-checkbox-surface-active`, `--dk-component-checkbox-border-default`, `--dk-component-checkbox-border-hover`, `--dk-component-checkbox-border-active`, `--dk-component-checkbox-checked-surface-default`, `--dk-component-checkbox-checked-surface-hover`, `--dk-component-checkbox-checked-surface-active`, `--dk-component-checkbox-checked-border-default`, `--dk-component-checkbox-checked-border-hover`, `--dk-component-checkbox-checked-border-active`, `--dk-component-checkbox-glyph`, `--dk-component-checkbox-halo`, `--dk-component-checkbox-halo-width`, `--dk-component-checkbox-ring`, `--dk-component-checkbox-focus-border`, `--dk-component-checkbox-error-border-default`, `--dk-component-checkbox-error-border-hover`, `--dk-component-checkbox-error-ring`, `--dk-component-checkbox-error-color`, `--dk-component-checkbox-disabled-surface`, `--dk-component-checkbox-disabled-border`, `--dk-component-checkbox-disabled-checked-surface`, `--dk-component-checkbox-disabled-checked-border`, `--dk-component-checkbox-disabled-glyph`, `--dk-component-checkbox-label-color`, `--dk-component-checkbox-desc-color`, `--dk-component-checkbox-disabled-label-color`, `--dk-component-checkbox-disabled-desc-color`, `--dk-component-checkbox-legend-color`
|
|
43
|
+
`--dk-component-checkbox-size`, `--dk-component-checkbox-small-size`, `--dk-component-checkbox-large-size`, `--dk-component-checkbox-glyph-size`, `--dk-component-checkbox-small-glyph-size`, `--dk-component-checkbox-large-glyph-size`, `--dk-component-checkbox-glyph-stroke`, `--dk-component-checkbox-glyph-scale-active`, `--dk-component-checkbox-glyph-draw-length`, `--dk-component-checkbox-glyph-draw-delay`, `--dk-component-checkbox-glyph-draw-duration`, `--dk-component-checkbox-glyph-draw-easing`, `--dk-component-checkbox-glyph-undraw-duration`, `--dk-component-checkbox-glyph-undraw-easing`, `--dk-component-checkbox-dash-thickness`, `--dk-component-checkbox-small-dash-thickness`, `--dk-component-checkbox-large-dash-thickness`, `--dk-component-checkbox-radius`, `--dk-component-checkbox-border-width`, `--dk-component-checkbox-border-width-base`, `--dk-component-checkbox-focus-ring-width`, `--dk-component-checkbox-gap`, `--dk-component-checkbox-text-gap`, `--dk-component-checkbox-group-gap`, `--dk-component-checkbox-group-legend-gap`, `--dk-component-checkbox-group-row-gap`, `--dk-component-checkbox-label-font-family`, `--dk-component-checkbox-label-font-size`, `--dk-component-checkbox-label-line-height`, `--dk-component-checkbox-small-label-font-size`, `--dk-component-checkbox-small-label-line-height`, `--dk-component-checkbox-large-label-font-size`, `--dk-component-checkbox-large-label-line-height`, `--dk-component-checkbox-label-font-weight`, `--dk-component-checkbox-desc-font-weight`, `--dk-component-checkbox-surface-default`, `--dk-component-checkbox-surface-hover`, `--dk-component-checkbox-surface-active`, `--dk-component-checkbox-border-default`, `--dk-component-checkbox-border-hover`, `--dk-component-checkbox-border-active`, `--dk-component-checkbox-checked-surface-default`, `--dk-component-checkbox-checked-surface-hover`, `--dk-component-checkbox-checked-surface-active`, `--dk-component-checkbox-checked-border-default`, `--dk-component-checkbox-checked-border-hover`, `--dk-component-checkbox-checked-border-active`, `--dk-component-checkbox-glyph`, `--dk-component-checkbox-halo`, `--dk-component-checkbox-halo-width`, `--dk-component-checkbox-ring`, `--dk-component-checkbox-focus-border`, `--dk-component-checkbox-error-border-default`, `--dk-component-checkbox-error-border-hover`, `--dk-component-checkbox-error-ring`, `--dk-component-checkbox-error-color`, `--dk-component-checkbox-disabled-surface`, `--dk-component-checkbox-disabled-border`, `--dk-component-checkbox-disabled-checked-surface`, `--dk-component-checkbox-disabled-checked-border`, `--dk-component-checkbox-disabled-glyph`, `--dk-component-checkbox-label-color`, `--dk-component-checkbox-desc-color`, `--dk-component-checkbox-disabled-label-color`, `--dk-component-checkbox-disabled-desc-color`, `--dk-component-checkbox-legend-color`
|
|
@@ -32,4 +32,4 @@ import { Glider } from '@karmo-co/drift-kit/react';
|
|
|
32
32
|
|
|
33
33
|
## Component tokens
|
|
34
34
|
|
|
35
|
-
`--dk-component-glider-height`, `--dk-component-glider-small-height`, `--dk-component-glider-large-height`, `--dk-component-glider-inset`, `--dk-component-glider-gap`, `--dk-component-glider-padding-inline`, `--dk-component-glider-small-padding-inline`, `--dk-component-glider-large-padding-inline`, `--dk-component-glider-font-family`, `--dk-component-glider-font-size`, `--dk-component-glider-line-height`, `--dk-component-glider-small-font-size`, `--dk-component-glider-small-line-height`, `--dk-component-glider-large-font-size`, `--dk-component-glider-large-line-height`, `--dk-component-glider-font-weight`, `--dk-component-glider-count-font-weight`, `--dk-component-glider-icon-size`, `--dk-component-glider-small-icon-size`, `--dk-component-glider-large-icon-size`, `--dk-component-glider-icon-gap`, `--dk-component-glider-surface`, `--dk-component-glider-border`, `--dk-component-glider-border-width`, `--dk-component-glider-radius`, `--dk-component-glider-shadow`, `--dk-component-glider-plain-border`, `--dk-component-glider-inset-surface`, `--dk-component-glider-inset-surface-hover`, `--dk-component-glider-inset-surface-active`, `--dk-component-glider-inset-border`, `--dk-component-glider-inset-toned-color`, `--dk-component-glider-ghost-surface`, `--dk-component-glider-ghost-border`, `--dk-component-glider-ghost-surface-hover`, `--dk-component-glider-ghost-surface-active`, `--dk-component-glider-indicator-surface`, `--dk-component-glider-indicator-surface-hover`, `--dk-component-glider-indicator-surface-active`, `--dk-component-glider-indicator-border`, `--dk-component-glider-indicator-border-hover`, `--dk-component-glider-indicator-border-active`, `--dk-component-glider-indicator-radius`, `--dk-component-glider-selected-color`, `--dk-component-glider-color`, `--dk-component-glider-color-hover`, `--dk-component-glider-surface-hover`, `--dk-component-glider-border-hover`, `--dk-component-glider-surface-active`, `--dk-component-glider-border-active`, `--dk-component-glider-color-disabled`, `--dk-component-glider-indicator-surface-disabled`, `--dk-component-glider-indicator-border-disabled`, `--dk-component-glider-selected-color-disabled`, `--dk-component-glider-transition-duration`, `--dk-component-glider-slide-duration`, `--dk-component-glider-transition-easing`, `--dk-component-glider-slide-lag`, `--dk-component-glider-active-scale`
|
|
35
|
+
`--dk-component-glider-height`, `--dk-component-glider-small-height`, `--dk-component-glider-large-height`, `--dk-component-glider-inset`, `--dk-component-glider-gap`, `--dk-component-glider-padding-inline`, `--dk-component-glider-small-padding-inline`, `--dk-component-glider-large-padding-inline`, `--dk-component-glider-font-family`, `--dk-component-glider-font-size`, `--dk-component-glider-line-height`, `--dk-component-glider-small-font-size`, `--dk-component-glider-small-line-height`, `--dk-component-glider-large-font-size`, `--dk-component-glider-large-line-height`, `--dk-component-glider-font-weight`, `--dk-component-glider-count-font-weight`, `--dk-component-glider-icon-size`, `--dk-component-glider-small-icon-size`, `--dk-component-glider-large-icon-size`, `--dk-component-glider-icon-gap`, `--dk-component-glider-surface`, `--dk-component-glider-border`, `--dk-component-glider-border-width`, `--dk-component-glider-border-width-base`, `--dk-component-glider-radius`, `--dk-component-glider-shadow`, `--dk-component-glider-plain-border`, `--dk-component-glider-inset-surface`, `--dk-component-glider-inset-surface-hover`, `--dk-component-glider-inset-surface-active`, `--dk-component-glider-inset-border`, `--dk-component-glider-inset-toned-color`, `--dk-component-glider-ghost-surface`, `--dk-component-glider-ghost-border`, `--dk-component-glider-ghost-surface-hover`, `--dk-component-glider-ghost-surface-active`, `--dk-component-glider-indicator-surface`, `--dk-component-glider-indicator-surface-hover`, `--dk-component-glider-indicator-surface-active`, `--dk-component-glider-indicator-border`, `--dk-component-glider-indicator-border-hover`, `--dk-component-glider-indicator-border-active`, `--dk-component-glider-indicator-radius`, `--dk-component-glider-selected-color`, `--dk-component-glider-color`, `--dk-component-glider-color-hover`, `--dk-component-glider-surface-hover`, `--dk-component-glider-border-hover`, `--dk-component-glider-surface-active`, `--dk-component-glider-border-active`, `--dk-component-glider-color-disabled`, `--dk-component-glider-indicator-surface-disabled`, `--dk-component-glider-indicator-border-disabled`, `--dk-component-glider-selected-color-disabled`, `--dk-component-glider-transition-duration`, `--dk-component-glider-slide-duration`, `--dk-component-glider-transition-easing`, `--dk-component-glider-slide-lag`, `--dk-component-glider-active-scale`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# List (`list`)
|
|
2
|
+
|
|
3
|
+
A list of interactive rows (things to do, actions to take): one raised panel with a hairline between its rows, or a grid of raised cards, or the panel below a 47.5rem list and the cards from it.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Anatomy (HTML)
|
|
7
|
+
|
|
8
|
+
```text
|
|
9
|
+
div.dk-component-list[data-presentation="divided|cards|auto"]?
|
|
10
|
+
.dk-component-list__item[data-interactive="item"] (a link, a button, or a div with role="button")
|
|
11
|
+
author content
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Attributes
|
|
15
|
+
|
|
16
|
+
| Attribute | Values the stylesheet styles |
|
|
17
|
+
|---|---|
|
|
18
|
+
| `data-presentation` | `auto`, `cards` |
|
|
19
|
+
| `data-pseudo-class` | `active`, `hover` |
|
|
20
|
+
|
|
21
|
+
## React
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import { List } from '@karmo-co/drift-kit/react';
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
| Prop | Type | Notes |
|
|
28
|
+
|---|---|---|
|
|
29
|
+
| `presentation` | `'divided' \| 'cards' \| 'auto'` | divided (the default) is one raised panel with a hairline between its rows; cards is a grid of raised cards; auto is divided below a 47.5rem list and cards from it. |
|
|
30
|
+
|
|
31
|
+
## Component tokens
|
|
32
|
+
|
|
33
|
+
`--dk-component-list-radius`, `--dk-component-list-border-width`, `--dk-component-list-border-color`, `--dk-component-list-shadow`, `--dk-component-list-divider-color`, `--dk-component-list-divider-width`, `--dk-component-list-item-padding`, `--dk-component-list-item-radius`, `--dk-component-list-item-gap`, `--dk-component-list-card-min-width`, `--dk-component-list-gap`, `--dk-component-list-card-shadow`, `--dk-component-list-card-press`, `--dk-component-list-font-family`
|
|
@@ -39,4 +39,4 @@ import { Radio } from '@karmo-co/drift-kit/react';
|
|
|
39
39
|
|
|
40
40
|
## Component tokens
|
|
41
41
|
|
|
42
|
-
`--dk-component-radio-size`, `--dk-component-radio-small-size`, `--dk-component-radio-large-size`, `--dk-component-radio-glyph-size`, `--dk-component-radio-glyph-enter-delay`, `--dk-component-radio-glyph-enter-duration`, `--dk-component-radio-glyph-enter-easing`, `--dk-component-radio-glyph-exit-duration`, `--dk-component-radio-glyph-exit-easing`, `--dk-component-radio-small-glyph-size`, `--dk-component-radio-large-glyph-size`, `--dk-component-radio-radius`, `--dk-component-radio-border-width`, `--dk-component-radio-focus-ring-width`, `--dk-component-radio-gap`, `--dk-component-radio-text-gap`, `--dk-component-radio-group-gap`, `--dk-component-radio-group-legend-gap`, `--dk-component-radio-group-row-gap`, `--dk-component-radio-label-font-family`, `--dk-component-radio-label-font-size`, `--dk-component-radio-label-line-height`, `--dk-component-radio-small-label-font-size`, `--dk-component-radio-small-label-line-height`, `--dk-component-radio-large-label-font-size`, `--dk-component-radio-large-label-line-height`, `--dk-component-radio-label-font-weight`, `--dk-component-radio-desc-font-weight`, `--dk-component-radio-surface-default`, `--dk-component-radio-surface-hover`, `--dk-component-radio-surface-active`, `--dk-component-radio-border-default`, `--dk-component-radio-border-hover`, `--dk-component-radio-border-active`, `--dk-component-radio-checked-surface-default`, `--dk-component-radio-checked-surface-hover`, `--dk-component-radio-checked-surface-active`, `--dk-component-radio-checked-border-default`, `--dk-component-radio-checked-border-hover`, `--dk-component-radio-checked-border-active`, `--dk-component-radio-glyph`, `--dk-component-radio-halo`, `--dk-component-radio-halo-width`, `--dk-component-radio-ring`, `--dk-component-radio-focus-border`, `--dk-component-radio-error-border-default`, `--dk-component-radio-error-border-hover`, `--dk-component-radio-error-ring`, `--dk-component-radio-error-color`, `--dk-component-radio-disabled-surface`, `--dk-component-radio-disabled-border`, `--dk-component-radio-disabled-checked-surface`, `--dk-component-radio-disabled-checked-border`, `--dk-component-radio-disabled-glyph`, `--dk-component-radio-label-color`, `--dk-component-radio-desc-color`, `--dk-component-radio-disabled-label-color`, `--dk-component-radio-disabled-desc-color`, `--dk-component-radio-legend-color`
|
|
42
|
+
`--dk-component-radio-size`, `--dk-component-radio-small-size`, `--dk-component-radio-large-size`, `--dk-component-radio-glyph-size`, `--dk-component-radio-glyph-enter-delay`, `--dk-component-radio-glyph-enter-duration`, `--dk-component-radio-glyph-enter-easing`, `--dk-component-radio-glyph-exit-duration`, `--dk-component-radio-glyph-exit-easing`, `--dk-component-radio-small-glyph-size`, `--dk-component-radio-large-glyph-size`, `--dk-component-radio-radius`, `--dk-component-radio-border-width`, `--dk-component-radio-border-width-base`, `--dk-component-radio-focus-ring-width`, `--dk-component-radio-gap`, `--dk-component-radio-text-gap`, `--dk-component-radio-group-gap`, `--dk-component-radio-group-legend-gap`, `--dk-component-radio-group-row-gap`, `--dk-component-radio-label-font-family`, `--dk-component-radio-label-font-size`, `--dk-component-radio-label-line-height`, `--dk-component-radio-small-label-font-size`, `--dk-component-radio-small-label-line-height`, `--dk-component-radio-large-label-font-size`, `--dk-component-radio-large-label-line-height`, `--dk-component-radio-label-font-weight`, `--dk-component-radio-desc-font-weight`, `--dk-component-radio-surface-default`, `--dk-component-radio-surface-hover`, `--dk-component-radio-surface-active`, `--dk-component-radio-border-default`, `--dk-component-radio-border-hover`, `--dk-component-radio-border-active`, `--dk-component-radio-checked-surface-default`, `--dk-component-radio-checked-surface-hover`, `--dk-component-radio-checked-surface-active`, `--dk-component-radio-checked-border-default`, `--dk-component-radio-checked-border-hover`, `--dk-component-radio-checked-border-active`, `--dk-component-radio-glyph`, `--dk-component-radio-halo`, `--dk-component-radio-halo-width`, `--dk-component-radio-ring`, `--dk-component-radio-focus-border`, `--dk-component-radio-error-border-default`, `--dk-component-radio-error-border-hover`, `--dk-component-radio-error-ring`, `--dk-component-radio-error-color`, `--dk-component-radio-disabled-surface`, `--dk-component-radio-disabled-border`, `--dk-component-radio-disabled-checked-surface`, `--dk-component-radio-disabled-checked-border`, `--dk-component-radio-disabled-glyph`, `--dk-component-radio-label-color`, `--dk-component-radio-desc-color`, `--dk-component-radio-disabled-label-color`, `--dk-component-radio-disabled-desc-color`, `--dk-component-radio-legend-color`
|
|
@@ -16,6 +16,7 @@ div.dk-component-shield[data-animation="idle|enter|success|error"]?[data-size]?
|
|
|
16
16
|
|---|---|
|
|
17
17
|
| `data-animation` | `enter`, `error`, `success` |
|
|
18
18
|
| `data-dk-cascade` | (present or absent) |
|
|
19
|
+
| `data-dk-cascade-after` | `leave` |
|
|
19
20
|
| `data-in` | (present or absent) |
|
|
20
21
|
| `data-part` | `check`, `fill`, `lock`, `outline` |
|
|
21
22
|
|
|
@@ -88,4 +88,4 @@ import { Sidebar } from '@karmo-co/drift-kit/react';
|
|
|
88
88
|
|
|
89
89
|
## Component tokens
|
|
90
90
|
|
|
91
|
-
`--dk-component-sidebar-width`, `--dk-component-sidebar-collapsed-width`, `--dk-component-sidebar-padding-block`, `--dk-component-sidebar-padding-inline`, `--dk-component-sidebar-gap`, `--dk-component-sidebar-section-gap`, `--dk-component-sidebar-border-width`, `--dk-component-sidebar-docked-surface`, `--dk-component-sidebar-docked-border`, `--dk-component-sidebar-floating-surface`, `--dk-component-sidebar-floating-border`, `--dk-component-sidebar-floating-radius`, `--dk-component-sidebar-floating-shadow`, `--dk-component-sidebar-floating-inset`, `--dk-component-sidebar-blur`, `--dk-component-sidebar-brand-height`, `--dk-component-sidebar-head-height`, `--dk-component-sidebar-brand-mark-size`, `--dk-component-sidebar-brand-logo-height`, `--dk-component-sidebar-brand-gap`, `--dk-component-sidebar-wordmark-font-family`, `--dk-component-sidebar-wordmark-font-size`, `--dk-component-sidebar-wordmark-font-weight`, `--dk-component-sidebar-wordmark-color`, `--dk-component-sidebar-divider`, `--dk-component-sidebar-item-height`, `--dk-component-sidebar-item-gap`, `--dk-component-sidebar-item-radius`, `--dk-component-sidebar-item-icon-size`, `--dk-component-sidebar-item-font-family`, `--dk-component-sidebar-item-font-size`, `--dk-component-sidebar-item-line-height`, `--dk-component-sidebar-item-font-weight`, `--dk-component-sidebar-item-text`, `--dk-component-sidebar-item-text-hover`, `--dk-component-sidebar-item-text-active`, `--dk-component-sidebar-item-surface-hover`, `--dk-component-sidebar-item-border-hover`, `--dk-component-sidebar-item-surface-active`, `--dk-component-sidebar-item-border-active`, `--dk-component-sidebar-item-text-disabled`, `--dk-component-sidebar-item-press-scale`, `--dk-component-sidebar-bar-press-scale`, `--dk-component-sidebar-focus-ring`, `--dk-component-sidebar-focus-ring-width`, `--dk-component-sidebar-current-surface`, `--dk-component-sidebar-current-surface-hover`, `--dk-component-sidebar-current-border`, `--dk-component-sidebar-current-border-hover`, `--dk-component-sidebar-current-border-active`, `--dk-component-sidebar-current-text`, `--dk-component-sidebar-menu-current-text`, `--dk-component-sidebar-menu-current-font-weight`, `--dk-component-sidebar-child-height`, `--dk-component-sidebar-child-icon-size`, `--dk-component-sidebar-child-inset`, `--dk-component-sidebar-child-gap`, `--dk-component-sidebar-child-font-weight`, `--dk-component-sidebar-guide`, `--dk-component-sidebar-guide-width`, `--dk-component-sidebar-guide-radius`, `--dk-component-sidebar-heading-font-size`, `--dk-component-sidebar-heading-line-height`, `--dk-component-sidebar-heading-font-weight`, `--dk-component-sidebar-heading-letter-spacing`, `--dk-component-sidebar-heading-color`, `--dk-component-sidebar-badge-size`, `--dk-component-sidebar-badge-font-size`, `--dk-component-sidebar-badge-font-weight`, `--dk-component-sidebar-badge-surface`, `--dk-component-sidebar-badge-text`, `--dk-component-sidebar-badge-current-surface`, `--dk-component-sidebar-badge-current-text`, `--dk-component-sidebar-dot-size`, `--dk-component-sidebar-dot-surface`, `--dk-component-sidebar-bar-dot-surface`, `--dk-component-sidebar-user-height`, `--dk-component-sidebar-user-avatar-size`, `--dk-component-sidebar-user-text-gap`, `--dk-component-sidebar-user-name-font-size`, `--dk-component-sidebar-user-name-font-weight`, `--dk-component-sidebar-user-name-color`, `--dk-component-sidebar-user-meta-font-size`, `--dk-component-sidebar-user-meta-color`, `--dk-component-sidebar-panel-width`, `--dk-component-sidebar-panel-padding`, `--dk-component-sidebar-panel-radius`, `--dk-component-sidebar-panel-surface`, `--dk-component-sidebar-panel-border`, `--dk-component-sidebar-panel-item-surface-hover`, `--dk-component-sidebar-panel-item-border-hover`, `--dk-component-sidebar-panel-item-border-active`, `--dk-component-sidebar-panel-title-font-size`, `--dk-component-sidebar-panel-title-font-weight`, `--dk-component-sidebar-panel-title-color`, `--dk-component-sidebar-scrollbar-size`, `--dk-component-sidebar-scrollbar-thumb`, `--dk-component-sidebar-scrollbar-thumb-hover`, `--dk-component-sidebar-duration`, `--dk-component-sidebar-easing`, `--dk-component-sidebar-rise-duration`, `--dk-component-sidebar-rise-stagger`, `--dk-component-sidebar-rise-row-stagger`, `--dk-component-sidebar-indicator-duration`, `--dk-component-sidebar-group-row-duration`, `--dk-component-sidebar-group-stagger`, `--dk-component-sidebar-group-easing`, `--dk-component-sidebar-panel-duration`, `--dk-component-sidebar-panel-easing`, `--dk-component-sidebar-panel-rows-start`, `--dk-component-sidebar-panel-row-duration`, `--dk-component-sidebar-panel-row-easing`, `--dk-component-sidebar-panel-row-beat`, `--dk-component-sidebar-panel-row-rise`, `--dk-component-sidebar-panel-row-exit-duration`, `--dk-component-sidebar-panel-row-exit-easing`, `--dk-component-sidebar-bar-height`, `--dk-component-sidebar-bar-surface`, `--dk-component-sidebar-bar-border`, `--dk-component-sidebar-bar-shadow`, `--dk-component-sidebar-bar-radius`, `--dk-component-sidebar-bar-inset`, `--dk-component-sidebar-bar-bottom`, `--dk-component-sidebar-bar-max-width`, `--dk-component-sidebar-bar-font-size`, `--dk-component-sidebar-bar-font-weight`, `--dk-component-sidebar-bar-line-height`, `--dk-component-sidebar-bar-icon-size`, `--dk-component-sidebar-bar-pill-width`, `--dk-component-sidebar-bar-pill-height`, `--dk-component-sidebar-bar-padding`, `--dk-component-sidebar-bar-item-gap`, `--dk-component-sidebar-bar-item-radius`, `--dk-component-sidebar-bar-item-surface-hover`, `--dk-component-sidebar-bar-item-surface-active`, `--dk-component-sidebar-bar-current-surface`, `--dk-component-sidebar-bar-current-text`, `--dk-component-sidebar-bar-slots`, `--dk-component-sidebar-bar-z-index`, `--dk-component-sidebar-drawer-width`, `--dk-component-sidebar-drawer-shadow`, `--dk-component-sidebar-scrim`, `--dk-component-sidebar-drawer-duration`, `--dk-component-sidebar-drawer-easing`, `--dk-component-sidebar-drawer-z-index`
|
|
91
|
+
`--dk-component-sidebar-width`, `--dk-component-sidebar-collapsed-width`, `--dk-component-sidebar-padding-block`, `--dk-component-sidebar-padding-inline`, `--dk-component-sidebar-gap`, `--dk-component-sidebar-section-gap`, `--dk-component-sidebar-border-width`, `--dk-component-sidebar-border-width-base`, `--dk-component-sidebar-docked-surface`, `--dk-component-sidebar-docked-border`, `--dk-component-sidebar-floating-surface`, `--dk-component-sidebar-floating-border`, `--dk-component-sidebar-floating-radius`, `--dk-component-sidebar-floating-shadow`, `--dk-component-sidebar-floating-inset`, `--dk-component-sidebar-blur`, `--dk-component-sidebar-brand-height`, `--dk-component-sidebar-head-height`, `--dk-component-sidebar-brand-mark-size`, `--dk-component-sidebar-brand-logo-height`, `--dk-component-sidebar-brand-gap`, `--dk-component-sidebar-wordmark-font-family`, `--dk-component-sidebar-wordmark-font-size`, `--dk-component-sidebar-wordmark-font-weight`, `--dk-component-sidebar-wordmark-color`, `--dk-component-sidebar-divider`, `--dk-component-sidebar-item-height`, `--dk-component-sidebar-item-gap`, `--dk-component-sidebar-item-radius`, `--dk-component-sidebar-item-icon-size`, `--dk-component-sidebar-item-font-family`, `--dk-component-sidebar-item-font-size`, `--dk-component-sidebar-item-line-height`, `--dk-component-sidebar-item-font-weight`, `--dk-component-sidebar-item-text`, `--dk-component-sidebar-item-text-hover`, `--dk-component-sidebar-item-text-active`, `--dk-component-sidebar-item-surface-hover`, `--dk-component-sidebar-item-border-hover`, `--dk-component-sidebar-item-surface-active`, `--dk-component-sidebar-item-border-active`, `--dk-component-sidebar-item-text-disabled`, `--dk-component-sidebar-item-press-scale`, `--dk-component-sidebar-bar-press-scale`, `--dk-component-sidebar-focus-ring`, `--dk-component-sidebar-focus-ring-width`, `--dk-component-sidebar-current-surface`, `--dk-component-sidebar-current-surface-hover`, `--dk-component-sidebar-current-border`, `--dk-component-sidebar-current-border-hover`, `--dk-component-sidebar-current-border-active`, `--dk-component-sidebar-current-text`, `--dk-component-sidebar-menu-current-text`, `--dk-component-sidebar-menu-current-font-weight`, `--dk-component-sidebar-child-height`, `--dk-component-sidebar-child-icon-size`, `--dk-component-sidebar-child-inset`, `--dk-component-sidebar-child-gap`, `--dk-component-sidebar-child-font-weight`, `--dk-component-sidebar-guide`, `--dk-component-sidebar-guide-width`, `--dk-component-sidebar-guide-radius`, `--dk-component-sidebar-heading-font-size`, `--dk-component-sidebar-heading-line-height`, `--dk-component-sidebar-heading-font-weight`, `--dk-component-sidebar-heading-letter-spacing`, `--dk-component-sidebar-heading-color`, `--dk-component-sidebar-badge-size`, `--dk-component-sidebar-badge-font-size`, `--dk-component-sidebar-badge-font-weight`, `--dk-component-sidebar-badge-surface`, `--dk-component-sidebar-badge-text`, `--dk-component-sidebar-badge-current-surface`, `--dk-component-sidebar-badge-current-text`, `--dk-component-sidebar-dot-size`, `--dk-component-sidebar-dot-surface`, `--dk-component-sidebar-bar-dot-surface`, `--dk-component-sidebar-user-height`, `--dk-component-sidebar-user-avatar-size`, `--dk-component-sidebar-user-text-gap`, `--dk-component-sidebar-user-name-font-size`, `--dk-component-sidebar-user-name-font-weight`, `--dk-component-sidebar-user-name-color`, `--dk-component-sidebar-user-meta-font-size`, `--dk-component-sidebar-user-meta-color`, `--dk-component-sidebar-panel-width`, `--dk-component-sidebar-panel-padding`, `--dk-component-sidebar-panel-radius`, `--dk-component-sidebar-panel-surface`, `--dk-component-sidebar-panel-border`, `--dk-component-sidebar-panel-item-surface-hover`, `--dk-component-sidebar-panel-item-border-hover`, `--dk-component-sidebar-panel-item-border-active`, `--dk-component-sidebar-panel-title-font-size`, `--dk-component-sidebar-panel-title-font-weight`, `--dk-component-sidebar-panel-title-color`, `--dk-component-sidebar-scrollbar-size`, `--dk-component-sidebar-scrollbar-thumb`, `--dk-component-sidebar-scrollbar-thumb-hover`, `--dk-component-sidebar-duration`, `--dk-component-sidebar-easing`, `--dk-component-sidebar-rise-duration`, `--dk-component-sidebar-rise-stagger`, `--dk-component-sidebar-rise-row-stagger`, `--dk-component-sidebar-indicator-duration`, `--dk-component-sidebar-group-row-duration`, `--dk-component-sidebar-group-stagger`, `--dk-component-sidebar-group-easing`, `--dk-component-sidebar-panel-duration`, `--dk-component-sidebar-panel-easing`, `--dk-component-sidebar-panel-rows-start`, `--dk-component-sidebar-panel-row-duration`, `--dk-component-sidebar-panel-row-easing`, `--dk-component-sidebar-panel-row-beat`, `--dk-component-sidebar-panel-row-rise`, `--dk-component-sidebar-panel-row-exit-duration`, `--dk-component-sidebar-panel-row-exit-easing`, `--dk-component-sidebar-bar-height`, `--dk-component-sidebar-bar-surface`, `--dk-component-sidebar-bar-border`, `--dk-component-sidebar-bar-shadow`, `--dk-component-sidebar-bar-radius`, `--dk-component-sidebar-bar-inset`, `--dk-component-sidebar-bar-bottom`, `--dk-component-sidebar-bar-max-width`, `--dk-component-sidebar-bar-font-size`, `--dk-component-sidebar-bar-font-weight`, `--dk-component-sidebar-bar-line-height`, `--dk-component-sidebar-bar-icon-size`, `--dk-component-sidebar-bar-pill-width`, `--dk-component-sidebar-bar-pill-height`, `--dk-component-sidebar-bar-padding`, `--dk-component-sidebar-bar-item-gap`, `--dk-component-sidebar-bar-item-radius`, `--dk-component-sidebar-bar-item-surface-hover`, `--dk-component-sidebar-bar-item-surface-active`, `--dk-component-sidebar-bar-current-surface`, `--dk-component-sidebar-bar-current-text`, `--dk-component-sidebar-bar-slots`, `--dk-component-sidebar-bar-z-index`, `--dk-component-sidebar-drawer-width`, `--dk-component-sidebar-drawer-shadow`, `--dk-component-sidebar-scrim`, `--dk-component-sidebar-drawer-duration`, `--dk-component-sidebar-drawer-easing`, `--dk-component-sidebar-drawer-z-index`
|
|
@@ -51,4 +51,4 @@ import { Stepper } from '@karmo-co/drift-kit/react';
|
|
|
51
51
|
|
|
52
52
|
## Component tokens
|
|
53
53
|
|
|
54
|
-
`--dk-component-stepper-small-indicator-size`, `--dk-component-stepper-indicator-size`, `--dk-component-stepper-large-indicator-size`, `--dk-component-stepper-small-number-font-size`, `--dk-component-stepper-number-font-size`, `--dk-component-stepper-large-number-font-size`, `--dk-component-stepper-small-label-font-size`, `--dk-component-stepper-small-label-line-height`, `--dk-component-stepper-label-font-size`, `--dk-component-stepper-label-line-height`, `--dk-component-stepper-large-label-font-size`, `--dk-component-stepper-large-label-line-height`, `--dk-component-stepper-description-font-size`, `--dk-component-stepper-description-line-height`, `--dk-component-stepper-font-family`, `--dk-component-stepper-number-font-weight`, `--dk-component-stepper-label-font-weight`, `--dk-component-stepper-label-font-weight-current`, `--dk-component-stepper-icon-size`, `--dk-component-stepper-indicator-border-width`, `--dk-component-stepper-gap`, `--dk-component-stepper-text-gap`, `--dk-component-stepper-connector-thickness`, `--dk-component-stepper-vertical-step-gap`, `--dk-component-stepper-content-gap`, `--dk-component-stepper-target-radius`, `--dk-component-stepper-target-surface-hover`, `--dk-component-stepper-target-surface-active`, `--dk-component-stepper-inline-gap`, `--dk-component-stepper-target-padding`, `--dk-component-stepper-target-padding-block-interactive`, `--dk-component-stepper-target-padding-inline-interactive`, `--dk-component-stepper-complete-surface`, `--dk-component-stepper-complete-surface-hover`, `--dk-component-stepper-complete-surface-active`, `--dk-component-stepper-complete-icon`, `--dk-component-stepper-complete-icon-hover`, `--dk-component-stepper-complete-icon-active`, `--dk-component-stepper-complete-border`, `--dk-component-stepper-complete-border-hover`, `--dk-component-stepper-complete-border-active`, `--dk-component-stepper-current-surface`, `--dk-component-stepper-current-surface-hover`, `--dk-component-stepper-current-surface-active`, `--dk-component-stepper-current-border`, `--dk-component-stepper-current-text`, `--dk-component-stepper-upcoming-surface`, `--dk-component-stepper-upcoming-border`, `--dk-component-stepper-upcoming-text`, `--dk-component-stepper-error-surface`, `--dk-component-stepper-error-border`, `--dk-component-stepper-error-text`, `--dk-component-stepper-error-label`, `--dk-component-stepper-label-color`, `--dk-component-stepper-label-color-upcoming`, `--dk-component-stepper-label-color-complete`, `--dk-component-stepper-label-color-hover`, `--dk-component-stepper-description-color`, `--dk-component-stepper-optional-color`, `--dk-component-stepper-focus-ring`, `--dk-component-stepper-focus-ring-width`, `--dk-component-stepper-connector-track`, `--dk-component-stepper-connector-fill`, `--dk-component-stepper-fill-duration`, `--dk-component-stepper-easing`, `--dk-component-stepper-state-duration`, `--dk-component-stepper-arrive-delay`, `--dk-component-stepper-arrive-pulse-duration`, `--dk-component-stepper-arrive-pulse-easing`, `--dk-component-stepper-dot-ring-width`, `--dk-component-stepper-dot-size`, `--dk-component-stepper-segment-thickness`, `--dk-component-stepper-segment-content-gap-start`, `--dk-component-stepper-segment-content-gap-end`, `--dk-component-stepper-segment-length`, `--dk-component-stepper-segment-gap`, `--dk-component-stepper-segment-radius`, `--dk-component-stepper-narrow`, `--dk-component-stepper-narrow-label-max`, `--dk-component-stepper-narrow-inline-gap`
|
|
54
|
+
`--dk-component-stepper-small-indicator-size`, `--dk-component-stepper-indicator-size`, `--dk-component-stepper-large-indicator-size`, `--dk-component-stepper-small-number-font-size`, `--dk-component-stepper-number-font-size`, `--dk-component-stepper-large-number-font-size`, `--dk-component-stepper-small-label-font-size`, `--dk-component-stepper-small-label-line-height`, `--dk-component-stepper-label-font-size`, `--dk-component-stepper-label-line-height`, `--dk-component-stepper-large-label-font-size`, `--dk-component-stepper-large-label-line-height`, `--dk-component-stepper-description-font-size`, `--dk-component-stepper-description-line-height`, `--dk-component-stepper-font-family`, `--dk-component-stepper-number-font-weight`, `--dk-component-stepper-label-font-weight`, `--dk-component-stepper-label-font-weight-current`, `--dk-component-stepper-icon-size`, `--dk-component-stepper-indicator-border-width`, `--dk-component-stepper-indicator-border-width-base`, `--dk-component-stepper-gap`, `--dk-component-stepper-text-gap`, `--dk-component-stepper-connector-thickness`, `--dk-component-stepper-vertical-step-gap`, `--dk-component-stepper-content-gap`, `--dk-component-stepper-target-radius`, `--dk-component-stepper-target-surface-hover`, `--dk-component-stepper-target-surface-active`, `--dk-component-stepper-inline-gap`, `--dk-component-stepper-target-padding`, `--dk-component-stepper-target-padding-block-interactive`, `--dk-component-stepper-target-padding-inline-interactive`, `--dk-component-stepper-complete-surface`, `--dk-component-stepper-complete-surface-hover`, `--dk-component-stepper-complete-surface-active`, `--dk-component-stepper-complete-icon`, `--dk-component-stepper-complete-icon-hover`, `--dk-component-stepper-complete-icon-active`, `--dk-component-stepper-complete-border`, `--dk-component-stepper-complete-border-hover`, `--dk-component-stepper-complete-border-active`, `--dk-component-stepper-current-surface`, `--dk-component-stepper-current-surface-hover`, `--dk-component-stepper-current-surface-active`, `--dk-component-stepper-current-border`, `--dk-component-stepper-current-text`, `--dk-component-stepper-upcoming-surface`, `--dk-component-stepper-upcoming-border`, `--dk-component-stepper-upcoming-text`, `--dk-component-stepper-error-surface`, `--dk-component-stepper-error-border`, `--dk-component-stepper-error-text`, `--dk-component-stepper-error-label`, `--dk-component-stepper-label-color`, `--dk-component-stepper-label-color-upcoming`, `--dk-component-stepper-label-color-complete`, `--dk-component-stepper-label-color-hover`, `--dk-component-stepper-description-color`, `--dk-component-stepper-optional-color`, `--dk-component-stepper-focus-ring`, `--dk-component-stepper-focus-ring-width`, `--dk-component-stepper-connector-track`, `--dk-component-stepper-connector-fill`, `--dk-component-stepper-fill-duration`, `--dk-component-stepper-easing`, `--dk-component-stepper-state-duration`, `--dk-component-stepper-arrive-delay`, `--dk-component-stepper-arrive-pulse-duration`, `--dk-component-stepper-arrive-pulse-easing`, `--dk-component-stepper-dot-ring-width`, `--dk-component-stepper-dot-size`, `--dk-component-stepper-segment-thickness`, `--dk-component-stepper-segment-content-gap-start`, `--dk-component-stepper-segment-content-gap-end`, `--dk-component-stepper-segment-length`, `--dk-component-stepper-segment-gap`, `--dk-component-stepper-segment-radius`, `--dk-component-stepper-narrow`, `--dk-component-stepper-narrow-label-max`, `--dk-component-stepper-narrow-inline-gap`
|
|
@@ -42,4 +42,4 @@ import { Switch } from '@karmo-co/drift-kit/react';
|
|
|
42
42
|
|
|
43
43
|
## Component tokens
|
|
44
44
|
|
|
45
|
-
`--dk-component-switch-track-height`, `--dk-component-switch-small-track-height`, `--dk-component-switch-large-track-height`, `--dk-component-switch-track-ratio`, `--dk-component-switch-border-width`, `--dk-component-switch-thumb-inset`, `--dk-component-switch-thumb-radius`, `--dk-component-switch-thumb-shadow`, `--dk-component-switch-thumb-scale-active`, `--dk-component-switch-focus-ring-width`, `--dk-component-switch-gap`, `--dk-component-switch-text-gap`, `--dk-component-switch-group-gap`, `--dk-component-switch-group-legend-gap`, `--dk-component-switch-icon-color`, `--dk-component-switch-icon-size`, `--dk-component-switch-small-icon-size`, `--dk-component-switch-large-icon-size`, `--dk-component-switch-label-font-family`, `--dk-component-switch-label-font-size`, `--dk-component-switch-label-line-height`, `--dk-component-switch-small-label-font-size`, `--dk-component-switch-small-label-line-height`, `--dk-component-switch-large-label-font-size`, `--dk-component-switch-large-label-line-height`, `--dk-component-switch-label-font-weight`, `--dk-component-switch-desc-font-weight`, `--dk-component-switch-surface-default`, `--dk-component-switch-surface-hover`, `--dk-component-switch-surface-active`, `--dk-component-switch-border-default`, `--dk-component-switch-border-hover`, `--dk-component-switch-border-active`, `--dk-component-switch-thumb`, `--dk-component-switch-thumb-hover`, `--dk-component-switch-checked-surface-default`, `--dk-component-switch-checked-surface-hover`, `--dk-component-switch-checked-surface-active`, `--dk-component-switch-checked-border-default`, `--dk-component-switch-checked-border-hover`, `--dk-component-switch-checked-border-active`, `--dk-component-switch-checked-thumb`, `--dk-component-switch-checked-thumb-hover`, `--dk-component-switch-small-container-padding`, `--dk-component-switch-container-padding`, `--dk-component-switch-large-container-padding`, `--dk-component-switch-small-container-radius`, `--dk-component-switch-container-radius`, `--dk-component-switch-large-container-radius`, `--dk-component-switch-container-border-width`, `--dk-component-switch-raised-container-surface`, `--dk-component-switch-raised-container-surface-hover`, `--dk-component-switch-raised-container-border`, `--dk-component-switch-raised-container-border-hover`, `--dk-component-switch-raised-container-shadow`, `--dk-component-switch-plain-container-surface`, `--dk-component-switch-plain-container-surface-hover`, `--dk-component-switch-plain-container-border`, `--dk-component-switch-plain-container-border-hover`, `--dk-component-switch-inset-container-surface`, `--dk-component-switch-inset-container-surface-hover`, `--dk-component-switch-inset-container-shadow`, `--dk-component-switch-halo`, `--dk-component-switch-halo-width`, `--dk-component-switch-ring`, `--dk-component-switch-focus-border`, `--dk-component-switch-disabled-surface`, `--dk-component-switch-disabled-border`, `--dk-component-switch-disabled-thumb`, `--dk-component-switch-disabled-checked-surface`, `--dk-component-switch-disabled-checked-border`, `--dk-component-switch-disabled-checked-thumb`, `--dk-component-switch-label-color`, `--dk-component-switch-desc-color`, `--dk-component-switch-disabled-label-color`, `--dk-component-switch-disabled-desc-color`, `--dk-component-switch-disabled-icon-color`, `--dk-component-switch-duration`, `--dk-component-switch-easing`
|
|
45
|
+
`--dk-component-switch-track-height`, `--dk-component-switch-small-track-height`, `--dk-component-switch-large-track-height`, `--dk-component-switch-track-ratio`, `--dk-component-switch-border-width`, `--dk-component-switch-border-width-base`, `--dk-component-switch-thumb-inset`, `--dk-component-switch-thumb-radius`, `--dk-component-switch-thumb-shadow`, `--dk-component-switch-thumb-scale-active`, `--dk-component-switch-focus-ring-width`, `--dk-component-switch-gap`, `--dk-component-switch-text-gap`, `--dk-component-switch-group-gap`, `--dk-component-switch-group-legend-gap`, `--dk-component-switch-icon-color`, `--dk-component-switch-icon-size`, `--dk-component-switch-small-icon-size`, `--dk-component-switch-large-icon-size`, `--dk-component-switch-label-font-family`, `--dk-component-switch-label-font-size`, `--dk-component-switch-label-line-height`, `--dk-component-switch-small-label-font-size`, `--dk-component-switch-small-label-line-height`, `--dk-component-switch-large-label-font-size`, `--dk-component-switch-large-label-line-height`, `--dk-component-switch-label-font-weight`, `--dk-component-switch-desc-font-weight`, `--dk-component-switch-surface-default`, `--dk-component-switch-surface-hover`, `--dk-component-switch-surface-active`, `--dk-component-switch-border-default`, `--dk-component-switch-border-hover`, `--dk-component-switch-border-active`, `--dk-component-switch-thumb`, `--dk-component-switch-thumb-hover`, `--dk-component-switch-checked-surface-default`, `--dk-component-switch-checked-surface-hover`, `--dk-component-switch-checked-surface-active`, `--dk-component-switch-checked-border-default`, `--dk-component-switch-checked-border-hover`, `--dk-component-switch-checked-border-active`, `--dk-component-switch-checked-thumb`, `--dk-component-switch-checked-thumb-hover`, `--dk-component-switch-small-container-padding`, `--dk-component-switch-container-padding`, `--dk-component-switch-large-container-padding`, `--dk-component-switch-small-container-radius`, `--dk-component-switch-container-radius`, `--dk-component-switch-large-container-radius`, `--dk-component-switch-container-border-width`, `--dk-component-switch-raised-container-surface`, `--dk-component-switch-raised-container-surface-hover`, `--dk-component-switch-raised-container-border`, `--dk-component-switch-raised-container-border-hover`, `--dk-component-switch-raised-container-shadow`, `--dk-component-switch-plain-container-surface`, `--dk-component-switch-plain-container-surface-hover`, `--dk-component-switch-plain-container-border`, `--dk-component-switch-plain-container-border-hover`, `--dk-component-switch-inset-container-surface`, `--dk-component-switch-inset-container-surface-hover`, `--dk-component-switch-inset-container-shadow`, `--dk-component-switch-halo`, `--dk-component-switch-halo-width`, `--dk-component-switch-ring`, `--dk-component-switch-focus-border`, `--dk-component-switch-disabled-surface`, `--dk-component-switch-disabled-border`, `--dk-component-switch-disabled-thumb`, `--dk-component-switch-disabled-checked-surface`, `--dk-component-switch-disabled-checked-border`, `--dk-component-switch-disabled-checked-thumb`, `--dk-component-switch-label-color`, `--dk-component-switch-desc-color`, `--dk-component-switch-disabled-label-color`, `--dk-component-switch-disabled-desc-color`, `--dk-component-switch-disabled-icon-color`, `--dk-component-switch-duration`, `--dk-component-switch-easing`
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Tile check (`tile-check`)
|
|
2
|
+
|
|
3
|
+
The leading mark of a selectable row (a notification, a message, a document): its icon tile at rest, its checkbox once the row is being picked from, ticked once it is picked.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Anatomy (HTML)
|
|
7
|
+
|
|
8
|
+
```text
|
|
9
|
+
span.dk-component-tile-check[data-state="idle|picking|checked"][data-reveal="hover"]?
|
|
10
|
+
.dk-component-icon-tile (the tile)
|
|
11
|
+
span.dk-component-tile-check__box[aria-hidden="true"]
|
|
12
|
+
label.dk-component-checkbox (its input has tabindex="-1")
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Attributes
|
|
16
|
+
|
|
17
|
+
| Attribute | Values the stylesheet styles |
|
|
18
|
+
|---|---|
|
|
19
|
+
| `data-interactive` | (present or absent) |
|
|
20
|
+
| `data-pseudo-class` | `hover` |
|
|
21
|
+
| `data-reveal` | `hover` |
|
|
22
|
+
| `data-state` | `checked`, `picking` |
|
|
23
|
+
|
|
24
|
+
## React
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
import { TileCheck } from '@karmo-co/drift-kit/react';
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
| Prop | Type | Notes |
|
|
31
|
+
|---|---|---|
|
|
32
|
+
| `tile` (required) | `ReactNode` | The tile shown at rest: an IconTile. |
|
|
33
|
+
| `state` | `'idle' \| 'picking' \| 'checked'` | idle (the tile) when absent; picking shows an empty checkbox, checked a ticked one. |
|
|
34
|
+
| `revealOnHover` | `boolean` | Also show the checkbox when the nearest data-interactive ancestor is hovered, where the device can hover. |
|
|
35
|
+
|
|
36
|
+
## Component tokens
|
|
37
|
+
|
|
38
|
+
`--dk-component-tile-check-swap-scale`
|
|
@@ -6,15 +6,22 @@ A photo of a vehicle, from the car-line photo catalogue trimmed to the car: on i
|
|
|
6
6
|
## Anatomy (HTML)
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
|
-
figure.dk-component-vehicle[data-variant="plain|showcase"][data-padding][data-size][data-tone][data-tone-fill][data-surface]
|
|
9
|
+
figure.dk-component-vehicle[data-variant="plain|showcase"][data-padding][data-size][data-tone][data-tone-fill][data-surface][data-on="raised"][data-radius="large|xlarge"][data-headroom="tall"][data-empty]
|
|
10
10
|
img.dk-component-vehicle__image[alt]
|
|
11
|
+
(empty showcase, in place of the image:)
|
|
12
|
+
div.dk-component-vehicle__placeholder > an icon
|
|
13
|
+
button.dk-component-button.dk-component-vehicle__action
|
|
11
14
|
```
|
|
12
15
|
|
|
13
16
|
## Attributes
|
|
14
17
|
|
|
15
18
|
| Attribute | Values the stylesheet styles |
|
|
16
19
|
|---|---|
|
|
20
|
+
| `data-empty` | (present or absent) |
|
|
21
|
+
| `data-headroom` | `tall` |
|
|
22
|
+
| `data-on` | `raised` |
|
|
17
23
|
| `data-padding` | `large`, `medium`, `small` |
|
|
24
|
+
| `data-radius` | `large`, `xlarge` |
|
|
18
25
|
| `data-size` | `large`, `small` |
|
|
19
26
|
| `data-surface` | (present or absent) |
|
|
20
27
|
| `data-tone` | `none` |
|
|
@@ -28,17 +35,23 @@ import { Vehicle } from '@karmo-co/drift-kit/react';
|
|
|
28
35
|
|
|
29
36
|
| Prop | Type | Notes |
|
|
30
37
|
|---|---|---|
|
|
31
|
-
| `src` (required) | `string` | A photo, trimmed to the car: one of drift-kit's vehicle photos (the vehicles export), or a car line's image_url from the vehicle catalogue. |
|
|
32
|
-
| `alt` (required) | `string` | Required. The make and model, or '' when the name sits right beside it. |
|
|
33
38
|
| `variant` | `'plain' \| 'showcase'` | plain (the default) is the photo alone; showcase stands it on a panel whose bottom edge is two thirds down the car. |
|
|
34
39
|
| `padding` | `'none' \| 'small' \| 'medium' \| 'large'` | Plain only: room around the photo, so the car does not touch the edges of what holds it (a card's media): none (the default), small, medium or large, on the responsive spacing tier. |
|
|
35
40
|
| `size` | `'small' \| 'medium' \| 'large'` | Showcase only: the space around the car, 12, 24 (the default) or 32. |
|
|
36
41
|
| `tone` | `'primary' \| 'success' \| 'warning' \| 'error' \| 'information' \| 'inverse'` | Showcase only: the kit tone for the panel; a solid fill with toneFill. |
|
|
37
42
|
| `toneFill` | `'solid'` | |
|
|
38
43
|
| `surface` | `1 \| 2` | A step down the neutral ladder for the panel. |
|
|
44
|
+
| `on` | `'raised'` | Showcase only: standing on a raised surface, the panel is level 1 in light and level 2 in dark, so it still reads in both themes. |
|
|
45
|
+
| `radius` | `'large' \| 'xlarge'` | Showcase only: the panel's corner, large (the default) or xlarge. |
|
|
46
|
+
| `headroom` | `'tall'` | Showcase only: tall puts a floor of spacing-12 under the headroom above the car, for a card-sized showcase. |
|
|
39
47
|
| `className` | `string` | className and style go on the figure, not the image: sizing the figure sizes the photo and its panel together. |
|
|
40
48
|
| `caption` | `ReactNode` | Words under the car, in Body small, inside the figure. |
|
|
49
|
+
| `empty` | `false \| true` | Showcase only: no car, the end of a run of showcases ("see all"). The panel keeps a photo-sized slot, so it is as tall as its neighbours'. |
|
|
50
|
+
| `src` | `string` | A photo, trimmed to the car: one of drift-kit's vehicle photos (the vehicles export), or a car line's image_url from the vehicle catalogue. Required unless empty. |
|
|
51
|
+
| `alt` | `string` | The make and model, or '' when the name sits right beside it. Required unless empty. |
|
|
52
|
+
| `placeholder` | `ReactNode` | Empty only: an icon, centred on the panel where a car would stand. |
|
|
53
|
+
| `action` | `ReactNode` | Empty only: a Button, centred astride the panel's foot. It takes the dk-component-vehicle__action class. |
|
|
41
54
|
|
|
42
55
|
## Component tokens
|
|
43
56
|
|
|
44
|
-
`--dk-component-vehicle-ratio`, `--dk-component-vehicle-small-padding`, `--dk-component-vehicle-padding`, `--dk-component-vehicle-large-padding`, `--dk-component-vehicle-small-inset`, `--dk-component-vehicle-inset`, `--dk-component-vehicle-large-inset`, `--dk-component-vehicle-headroom`, `--dk-component-vehicle-panel-reach`, `--dk-component-vehicle-radius`, `--dk-component-vehicle-panel`
|
|
57
|
+
`--dk-component-vehicle-ratio`, `--dk-component-vehicle-small-padding`, `--dk-component-vehicle-padding`, `--dk-component-vehicle-large-padding`, `--dk-component-vehicle-small-inset`, `--dk-component-vehicle-inset`, `--dk-component-vehicle-large-inset`, `--dk-component-vehicle-headroom`, `--dk-component-vehicle-panel-reach`, `--dk-component-vehicle-radius`, `--dk-component-vehicle-xlarge-radius`, `--dk-component-vehicle-tall-headroom-min`, `--dk-component-vehicle-placeholder-size`, `--dk-component-vehicle-action-offset`, `--dk-component-vehicle-panel`, `--dk-component-vehicle-on-raised-panel`
|
package/manifest/index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.5.0",
|
|
4
4
|
"built": "2026-11-07",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
"name": "Box",
|
|
39
39
|
"purpose": "A grouped surface: a panel that separates what is in it from what is around it, optionally laid out as a responsive grid of facts. data-radius=\"medium|large|xlarge\" is the public way to set a Box's corner, whatever its data-size."
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"id": "brand-sheet",
|
|
43
|
+
"name": "Brand sheet",
|
|
44
|
+
"purpose": "A dark brand panel and the page's sheet that meets it, for a sign-in screen (medium) or the top of a home screen (small)."
|
|
45
|
+
},
|
|
41
46
|
{
|
|
42
47
|
"id": "breadcrumb",
|
|
43
48
|
"name": "Breadcrumb",
|
|
@@ -163,6 +168,11 @@
|
|
|
163
168
|
"name": "Link",
|
|
164
169
|
"purpose": "A way to go somewhere. Inline, it is the sentence it sits in; standalone, it has its own size and room for an icon."
|
|
165
170
|
},
|
|
171
|
+
{
|
|
172
|
+
"id": "list",
|
|
173
|
+
"name": "List",
|
|
174
|
+
"purpose": "A list of interactive rows (things to do, actions to take): one raised panel with a hairline between its rows, or a grid of raised cards, or the panel below a 47.5rem list and the cards from it."
|
|
175
|
+
},
|
|
166
176
|
{
|
|
167
177
|
"id": "loading-spinner",
|
|
168
178
|
"name": "Loading spinner",
|
|
@@ -253,6 +263,11 @@
|
|
|
253
263
|
"name": "Text area",
|
|
254
264
|
"purpose": "Several lines of text: notes, messages, comments. Input's field, sized in rows, with auto-grow, a character counter and a submit shortcut."
|
|
255
265
|
},
|
|
266
|
+
{
|
|
267
|
+
"id": "tile-check",
|
|
268
|
+
"name": "Tile check",
|
|
269
|
+
"purpose": "The leading mark of a selectable row (a notification, a message, a document): its icon tile at rest, its checkbox once the row is being picked from, ticked once it is picked."
|
|
270
|
+
},
|
|
256
271
|
{
|
|
257
272
|
"id": "toast",
|
|
258
273
|
"name": "Toast",
|
|
@@ -1637,6 +1652,32 @@
|
|
|
1637
1652
|
"components": [],
|
|
1638
1653
|
"tokens": []
|
|
1639
1654
|
}
|
|
1655
|
+
},
|
|
1656
|
+
"24.4.0": {
|
|
1657
|
+
"added": {
|
|
1658
|
+
"components": [],
|
|
1659
|
+
"tokens": []
|
|
1660
|
+
},
|
|
1661
|
+
"removed": {
|
|
1662
|
+
"components": [],
|
|
1663
|
+
"tokens": []
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
"24.5.0": {
|
|
1667
|
+
"added": {
|
|
1668
|
+
"components": [
|
|
1669
|
+
"brand-sheet",
|
|
1670
|
+
"list",
|
|
1671
|
+
"tile-check"
|
|
1672
|
+
],
|
|
1673
|
+
"tokens": [
|
|
1674
|
+
"--dk-motion-swap-scale"
|
|
1675
|
+
]
|
|
1676
|
+
},
|
|
1677
|
+
"removed": {
|
|
1678
|
+
"components": [],
|
|
1679
|
+
"tokens": []
|
|
1680
|
+
}
|
|
1640
1681
|
}
|
|
1641
1682
|
}
|
|
1642
1683
|
}
|
package/manifest/setup.md
CHANGED
|
@@ -59,47 +59,47 @@ Both scripts are deferred, and an icon script goes after `components.js`, which
|
|
|
59
59
|
|
|
60
60
|
```html
|
|
61
61
|
<!-- in the head -->
|
|
62
|
-
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/24.
|
|
63
|
-
<script src="https://storage.googleapis.com/drift-kit-public/24.
|
|
64
|
-
<script src="https://storage.googleapis.com/drift-kit-public/24.
|
|
62
|
+
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/24.5.0/drift-kit.css" integrity="sha384-saYjiMYJ0coftEljNzP0VE0l1TSApzvD1VAa9XfpIqNhIxaCRCZn53paXKua5xDa" crossorigin="anonymous" />
|
|
63
|
+
<script src="https://storage.googleapis.com/drift-kit-public/24.5.0/components.js" integrity="sha384-+kNnEjMQlkcKGLU4r0VBVmCEAiMVq/oBea0+t3z24pMwzmoydtHSY8r0bb0yFlTY" crossorigin="anonymous" defer></script>
|
|
64
|
+
<script src="https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
|
|
65
65
|
<!-- the attributes go on the body -->
|
|
66
66
|
<body data-brand="karmo" data-theme="light">
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
| File | Address | Integrity |
|
|
70
70
|
|---|---|---|
|
|
71
|
-
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/24.
|
|
72
|
-
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/24.
|
|
73
|
-
| `components.js` | `https://storage.googleapis.com/drift-kit-public/24.
|
|
74
|
-
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/24.
|
|
75
|
-
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/24.
|
|
76
|
-
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/24.
|
|
77
|
-
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/24.
|
|
78
|
-
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/24.
|
|
79
|
-
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/24.
|
|
80
|
-
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/24.
|
|
71
|
+
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-kit.css` | `sha384-saYjiMYJ0coftEljNzP0VE0l1TSApzvD1VAa9XfpIqNhIxaCRCZn53paXKua5xDa` |
|
|
72
|
+
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-kit.min.css` | `sha384-dfzk6M0lER7pqNTJj4h7C3FuWwSsFKG55ooQPVF0p6u7IpcL1dvAnI1nnGiIN0dz` |
|
|
73
|
+
| `components.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/components.js` | `sha384-+kNnEjMQlkcKGLU4r0VBVmCEAiMVq/oBea0+t3z24pMwzmoydtHSY8r0bb0yFlTY` |
|
|
74
|
+
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
75
|
+
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-coolicon.js` | `sha384-8WaBw9LZuhj/u7G2Jf1aiVo8HBhMj1fBsmpSWJnYi5Xdi2ANXB3BLBZxz2NLQGYl` |
|
|
76
|
+
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
77
|
+
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
78
|
+
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
79
|
+
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
80
|
+
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
81
81
|
|
|
82
82
|
### In Claude chat and Cowork
|
|
83
83
|
|
|
84
84
|
Their previews load nothing from the bucket. There, link the same version from jsdelivr instead, with these addresses and integrity: the stylesheet is `drift-kit.min.css`, and the attributes still go on `<body>`.
|
|
85
85
|
|
|
86
86
|
```html
|
|
87
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
88
|
-
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
87
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-kit.min.css" integrity="sha384-dfzk6M0lER7pqNTJj4h7C3FuWwSsFKG55ooQPVF0p6u7IpcL1dvAnI1nnGiIN0dz" crossorigin="anonymous" />
|
|
88
|
+
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/components.js" integrity="sha384-jpY+JyMiqi1X1Ch30cE84iODtKeBGS5Mu2L75kaM89XqyGEh6ryov1K9ZHMaoUhk" crossorigin="anonymous" defer></script>
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
| File | Address | Integrity |
|
|
92
92
|
|---|---|---|
|
|
93
|
-
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
94
|
-
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
95
|
-
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
96
|
-
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
97
|
-
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
98
|
-
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
99
|
-
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
100
|
-
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
101
|
-
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
102
|
-
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.
|
|
93
|
+
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/components.js` | `sha384-jpY+JyMiqi1X1Ch30cE84iODtKeBGS5Mu2L75kaM89XqyGEh6ryov1K9ZHMaoUhk` |
|
|
94
|
+
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
|
|
95
|
+
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
96
|
+
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-coolicon.js` | `sha384-8WaBw9LZuhj/u7G2Jf1aiVo8HBhMj1fBsmpSWJnYi5Xdi2ANXB3BLBZxz2NLQGYl` |
|
|
97
|
+
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
98
|
+
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
99
|
+
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
100
|
+
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
101
|
+
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
102
|
+
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-kit.min.css` | `sha384-dfzk6M0lER7pqNTJj4h7C3FuWwSsFKG55ooQPVF0p6u7IpcL1dvAnI1nnGiIN0dz` |
|
|
103
103
|
|
|
104
104
|
### Integrity for 23.4.0
|
|
105
105
|
|
|
@@ -127,5 +127,5 @@ The behaviour script initialises every component on the page when it loads. Mark
|
|
|
127
127
|
The kit class names the drift-critique capture script keys on, at this version. Pass them to it as `--kit '<this JSON>'` so its alignment and reduced-motion checks read this version's names.
|
|
128
128
|
|
|
129
129
|
```json
|
|
130
|
-
{"version":"24.
|
|
130
|
+
{"version":"24.5.0","field":".dk-component-input__field","trigger":".dk-component-select__trigger","button":".dk-component-button","iconButton":".dk-component-icon-button","spinners":[".dk-component-loading-spinner",".dk-component-button__spinner"],"componentPrefix":"dk-component-","fieldRoot":"dk-component-input"}
|
|
131
131
|
```
|
|
@@ -72,6 +72,7 @@ Declared values, light and dark. Reference a token by name; never copy its value
|
|
|
72
72
|
| `--dk-motion-state-easing` | `var(--dk-motion-easing-gentle)` | `var(--dk-motion-easing-gentle)` |
|
|
73
73
|
| `--dk-motion-state-enter-duration` | `var(--dk-primitive-motion-duration-160)` | `var(--dk-primitive-motion-duration-160)` |
|
|
74
74
|
| `--dk-motion-state-exit-duration` | `var(--dk-primitive-motion-duration-240)` | `var(--dk-primitive-motion-duration-240)` |
|
|
75
|
+
| `--dk-motion-swap-scale` | `var(--dk-primitive-transform-scale-swap)` | `var(--dk-primitive-transform-scale-swap)` |
|
|
75
76
|
| `--dk-motion-travel-duration` | `var(--dk-motion-duration-moderate)` | `var(--dk-motion-duration-moderate)` |
|
|
76
77
|
| `--dk-motion-travel-easing` | `var(--dk-motion-easing-emphasized)` | `var(--dk-motion-easing-emphasized)` |
|
|
77
78
|
| `--dk-motion-travel-lag` | `0.2` | `0.2` |
|
|
@@ -93,12 +94,13 @@ Every pattern is a duration and an easing pair, named for the pattern in the tok
|
|
|
93
94
|
|
|
94
95
|
### The cascade
|
|
95
96
|
|
|
96
|
-
- **HTML:** `data-dk-cascade` on the root; its children are the units. `data-dk-cascade-grid` on a grid gives each visual row one beat, `data-dk-cascade-list` gives rows half a beat, `data-dk-cascade-through` walks into a wrapper, `data-dk-cascade-skip` leaves something out. Plain HTML reveals itself on load; content added later joins with `dk.motion.cascade.late(nodes)`.
|
|
97
|
-
- **TSX:** `<Cascade ready={loaded}>` (or `useCascade(ready)`), keyed or given `arrival` so a new page replays it.
|
|
97
|
+
- **HTML:** `data-dk-cascade` on the root; its children are the units. `data-dk-cascade-grid` on a grid gives each visual row one beat, `data-dk-cascade-list` gives rows half a beat, `data-dk-cascade-through` walks into a wrapper (a panel: it is drawn from the first paint, at any depth, and only what it holds waits for its beat), `data-dk-cascade-skip` leaves something out. `reveal(root)` writes `--dk-cascade-last` on the root, the last beat it gave a unit, for anything timed to the arrival's end: a Shield with `data-animation="enter"` in the root enters a beat before it. Plain HTML reveals itself on load; content added later joins with `dk.motion.cascade.late(nodes)`.
|
|
98
|
+
- **TSX:** `<Cascade ready={loaded}>` (or `useCascade(ready)`), keyed or given `arrival` so a new page replays it. `after="leave"` waits for a parts leave.
|
|
98
99
|
|
|
99
100
|
### Changing page
|
|
100
101
|
|
|
101
102
|
- **The swap:** `<TransitionRegion>` with `usePageTransition()` in TSX; `data-dk-transition` on the region and `dk.motion.transition.swap(region, update, { direction })` in HTML. `go('forward' | 'back')` runs in the handler before the state change. It slides on phone-width regions and fades on wider ones.
|
|
103
|
+
- **The parts leave:** for two pages on the same panels (two sign-in steps on one brand panel and sheet), `{ leave: 'parts' }` on `swap` or `go` (TSX: `go(direction, pattern, { leave: 'parts' })`). The panels stay put; the old page's cascade units rise out together on the exit-large pattern, then the new page's cascade arrives (`data-dk-cascade-after="leave"` on its root, written for you). Mark the panels `data-dk-cascade-through` and anything the same on both pages (a logo) `data-dk-transition-stay`, on both pages: it neither leaves nor arrives. A host with its own copy of the old page marks that copy `data-dk-transition-leave="parts"` and the new root `data-dk-cascade-after="leave"`.
|
|
102
104
|
- **The curtain:** `curtain(update, { hold, content, cascade })`, in TSX from the React entry and in HTML as `dk.motion.transition.curtain`.
|
|
103
105
|
|
|
104
106
|
### Reduced motion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmo-co/drift-kit-reference",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.5.0",
|
|
4
4
|
"description": "Reference documentation of Karmo's private Drift design system, for Karmo's Claude skills. Documentation only.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"drift-kit-ref": "bin/drift-kit-ref.js"
|