@karmo-co/drift-kit-reference 24.1.0 → 24.3.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.
@@ -6,7 +6,7 @@ An inline, persistent message in the page: a status colour, an optional icon, ti
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- div.dk-component-alert[data-status="primary|success|warning|error|information"][data-variant="solid|outline|plain"]?[data-size="small"]?[data-pointer]?[data-dismissible]?[role="status"]
9
+ div.dk-component-alert[data-status="primary|success|warning|error|information"][data-variant="solid|outline|plain"]?[data-size="small"]?[data-pointer]?[data-dismissible]?[data-enter]?[role="status"]
10
10
  span.__icon?
11
11
  div.__content
12
12
  p.__title?
@@ -19,6 +19,7 @@ div.dk-component-alert[data-status="primary|success|warning|error|information"][
19
19
 
20
20
  | Attribute | Values the stylesheet styles |
21
21
  |---|---|
22
+ | `data-enter` | (present or absent) |
22
23
  | `data-full-width` | `true` |
23
24
  | `data-pointer` | `bottom`, `left`, `right`, `top` |
24
25
  | `data-size` | `small` |
@@ -47,7 +48,8 @@ import { Alert } from '@karmo-co/drift-kit/react';
47
48
  | `dismissible` | `boolean` | |
48
49
  | `onDismiss` | `() => void` | Called instead of the element removing itself. React owns its own DOM, so this component must never delete nodes out from under it: a React consumer holds visibility in state and does not load components.js for Alert. |
49
50
  | `dismissLabel` | `string` | |
51
+ | `enter` | `boolean` | Arrives on the enter pattern when it is put in the page: for an alert that answers something, such as a wrong code. |
50
52
 
51
53
  ## Component tokens
52
54
 
53
- `--dk-component-alert-gap`, `--dk-component-alert-padding`, `--dk-component-alert-radius`, `--dk-component-alert-border-width`, `--dk-component-alert-icon-size`, `--dk-component-alert-dismiss-padding`, `--dk-component-alert-dismiss-offset`, `--dk-component-alert-trailing-extra`, `--dk-component-alert-small-gap`, `--dk-component-alert-small-padding`, `--dk-component-alert-small-icon-size`, `--dk-component-alert-small-dismiss-padding`, `--dk-component-alert-small-dismiss-offset`, `--dk-component-alert-small-trailing-extra`, `--dk-component-alert-font-family`, `--dk-component-alert-title-font-size`, `--dk-component-alert-title-line-height`, `--dk-component-alert-title-font-weight`, `--dk-component-alert-body-font-size`, `--dk-component-alert-body-line-height`, `--dk-component-alert-body-font-weight`, `--dk-component-alert-small-title-font-size`, `--dk-component-alert-small-title-line-height`, `--dk-component-alert-small-body-font-size`, `--dk-component-alert-small-body-line-height`, `--dk-component-alert-pointer-depth`, `--dk-component-alert-pointer-base`, `--dk-component-alert-neutral-color`, `--dk-component-alert-primary-color`, `--dk-component-alert-warning-color`, `--dk-component-alert-error-color`, `--dk-component-alert-information-color`, `--dk-component-alert-success-color`, `--dk-component-alert-scrim-active-opacity`, `--dk-component-alert-scrim-hover-opacity`
55
+ `--dk-component-alert-gap`, `--dk-component-alert-padding`, `--dk-component-alert-radius`, `--dk-component-alert-border-width`, `--dk-component-alert-icon-size`, `--dk-component-alert-dismiss-padding`, `--dk-component-alert-dismiss-offset`, `--dk-component-alert-trailing-extra`, `--dk-component-alert-small-gap`, `--dk-component-alert-small-padding`, `--dk-component-alert-small-icon-size`, `--dk-component-alert-small-dismiss-padding`, `--dk-component-alert-small-dismiss-offset`, `--dk-component-alert-small-trailing-extra`, `--dk-component-alert-font-family`, `--dk-component-alert-title-font-size`, `--dk-component-alert-title-line-height`, `--dk-component-alert-title-font-weight`, `--dk-component-alert-body-font-size`, `--dk-component-alert-body-line-height`, `--dk-component-alert-body-font-weight`, `--dk-component-alert-small-title-font-size`, `--dk-component-alert-small-title-line-height`, `--dk-component-alert-small-body-font-size`, `--dk-component-alert-small-body-line-height`, `--dk-component-alert-pointer-depth`, `--dk-component-alert-pointer-base`, `--dk-component-alert-neutral-color`, `--dk-component-alert-primary-color`, `--dk-component-alert-warning-color`, `--dk-component-alert-error-color`, `--dk-component-alert-information-color`, `--dk-component-alert-success-color`, `--dk-component-alert-scrim-active-opacity`, `--dk-component-alert-scrim-hover-opacity`, `--dk-component-alert-enter-duration`, `--dk-component-alert-enter-easing`, `--dk-component-alert-enter-offset`
@@ -1,12 +1,12 @@
1
1
  # Box (`box`)
2
2
 
3
- 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.
3
+ 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.
4
4
 
5
5
 
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- section.dk-component-box[data-variant][data-size][data-tone][data-tone-fill][data-surface]
9
+ section.dk-component-box[data-variant][data-size][data-radius][data-tone][data-tone-fill][data-surface][data-interactive][data-align]
10
10
  header.__header
11
11
  div.__heading > .__title + .__description?
12
12
  div.__actions?
@@ -23,6 +23,8 @@ section.dk-component-box[data-variant][data-size][data-tone][data-tone-fill][dat
23
23
  | `data-align` | `center`, `end`, `start` |
24
24
  | `data-columns` | `1`, `2`, `3`, `4`, `5`, `6` |
25
25
  | `data-dividers` | `both`, `columns`, `rows` |
26
+ | `data-interactive` | (present or absent) |
27
+ | `data-radius` | `large`, `medium`, `xlarge` |
26
28
  | `data-size` | `large`, `small`, `xlarge`, `xsmall` |
27
29
  | `data-span` | `full` |
28
30
  | `data-surface` | (present or absent) |
@@ -53,6 +55,9 @@ import { Box } from '@karmo-co/drift-kit/react';
53
55
  | `columns` | `1 \| 2 \| 3 \| 4 \| 5 \| 6` | Lays the children out as a grid of at most this many columns, wrapping to fewer on its own once a column would be narrower than 10rem. Without it the children sit straight in the box, as a plain panel. |
54
56
  | `dividers` | `'rows' \| 'columns' \| 'both'` | Hairlines between the cells, correct at any wrap. |
55
57
  | `align` | `'start' \| 'center' \| 'end'` | Cells stretch to the row when absent. |
58
+ | `contentAlign` | `'center'` | The box's own content: center centres what an interactive box (data-interactive) holds, which otherwise starts it. With or without columns; align stays the cells'. |
59
+ | `radius` | `'medium' \| 'large' \| 'xlarge'` | The corner of that size, whatever the box's size: a small card a rung rounder without the large padding. |
60
+ | `interactivePress` | `InteractivePress` | With data-interactive: the press, over the tier's own. none keeps it still (a row in a divided list), control presses it like a button. |
56
61
  | `as` | `'section' \| 'div' \| 'aside' \| 'article'` | section when the box has a name (a title or an aria-label), div when it does not; pass one to choose. |
57
62
 
58
63
  ## Component tokens
@@ -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]?
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"]?
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
@@ -23,7 +23,9 @@ div.dk-component-carousel[data-presentation="slider|row"]?[data-loop]?[data-star
23
23
  (the row's arrows: a solid IconButton in light, lifted on
24
24
  the carousel's floating / overlay / lifted shadows, and a raised one
25
25
  in a light island in dark, on its own shadow, so they hold on any
26
- level or tone; the slider hides them)
26
+ level or tone; the slider hides them. The runtime writes each
27
+ arrow's data-variant, and data-theme="light" for raised-inverse,
28
+ from data-arrow-look, else from the nearest data-theme as it changes)
27
29
  ```
28
30
 
29
31
  ## Attributes
@@ -6,7 +6,7 @@ A verification code, a PIN, a voucher. N characters, one per box, with one real
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- div.dk-component-code-input[data-cells="4..8"][data-size="small|large"]?[data-mask]?
9
+ div.dk-component-code-input[data-cells="4..8"][data-size="small|large"]?[data-mask]?[data-label-size="small"]?
10
10
  label.__label
11
11
  div.__field
12
12
  input.__control (one real input)
@@ -21,6 +21,7 @@ div.dk-component-code-input[data-cells="4..8"][data-size="small|large"]?[data-ma
21
21
  | `data-active` | (present or absent) |
22
22
  | `data-filled` | (present or absent) |
23
23
  | `data-group-end` | (present or absent) |
24
+ | `data-label-size` | `small` |
24
25
  | `data-mask` | (present or absent) |
25
26
  | `data-placeholder` | (present or absent) |
26
27
  | `data-ready` | (present or absent) |
@@ -35,6 +36,7 @@ import { CodeInput } from '@karmo-co/drift-kit/react';
35
36
  | Prop | Type | Notes |
36
37
  |---|---|---|
37
38
  | `label` | `ReactNode` | |
39
+ | `labelSize` | `'small' \| 'medium'` | 'small' sets the label a rung smaller, as on Input. |
38
40
  | `size` | `'small' \| 'medium' \| 'large'` | |
39
41
  | `caption` | `ReactNode` | |
40
42
  | `error` | `ReactNode` | The message AND the invalid state, as on Input: one prop so the red boxes, the words and aria-invalid cannot disagree. |
@@ -53,4 +55,4 @@ import { CodeInput } from '@karmo-co/drift-kit/react';
53
55
 
54
56
  ## Component tokens
55
57
 
56
- `--dk-component-code-input-gap`, `--dk-component-code-input-cell-size`, `--dk-component-code-input-small-cell-size`, `--dk-component-code-input-large-cell-size`, `--dk-component-code-input-cell-gap`, `--dk-component-code-input-group-gap`, `--dk-component-code-input-padding-inline`, `--dk-component-code-input-radius`, `--dk-component-code-input-border-width`, `--dk-component-code-input-focus-ring-width`, `--dk-component-code-input-caret-width`, `--dk-component-code-input-caret-height`, `--dk-component-code-input-caret-color`, `--dk-component-code-input-caret-blink-duration`, `--dk-component-code-input-placeholder-char`, `--dk-component-code-input-placeholder-color`, `--dk-component-code-input-mask-dot-size`, `--dk-component-code-input-font-family`, `--dk-component-code-input-font-weight`, `--dk-component-code-input-font-size`, `--dk-component-code-input-line-height`, `--dk-component-code-input-small-font-size`, `--dk-component-code-input-small-line-height`, `--dk-component-code-input-large-font-size`, `--dk-component-code-input-large-line-height`, `--dk-component-code-input-label-font-family`, `--dk-component-code-input-label-font-size`, `--dk-component-code-input-label-line-height`, `--dk-component-code-input-label-letter-spacing`, `--dk-component-code-input-label-font-weight`, `--dk-component-code-input-caption-font-size`, `--dk-component-code-input-caption-line-height`, `--dk-component-code-input-error-color`
58
+ `--dk-component-code-input-gap`, `--dk-component-code-input-cell-size`, `--dk-component-code-input-small-cell-size`, `--dk-component-code-input-large-cell-size`, `--dk-component-code-input-cell-gap`, `--dk-component-code-input-group-gap`, `--dk-component-code-input-padding-inline`, `--dk-component-code-input-radius`, `--dk-component-code-input-border-width`, `--dk-component-code-input-focus-ring-width`, `--dk-component-code-input-caret-width`, `--dk-component-code-input-caret-height`, `--dk-component-code-input-caret-color`, `--dk-component-code-input-caret-blink-duration`, `--dk-component-code-input-placeholder-char`, `--dk-component-code-input-placeholder-color`, `--dk-component-code-input-mask-dot-size`, `--dk-component-code-input-font-family`, `--dk-component-code-input-font-weight`, `--dk-component-code-input-font-size`, `--dk-component-code-input-line-height`, `--dk-component-code-input-small-font-size`, `--dk-component-code-input-small-line-height`, `--dk-component-code-input-large-font-size`, `--dk-component-code-input-large-line-height`, `--dk-component-code-input-label-font-family`, `--dk-component-code-input-label-font-size`, `--dk-component-code-input-label-line-height`, `--dk-component-code-input-label-letter-spacing`, `--dk-component-code-input-label-font-weight`, `--dk-component-code-input-small-label-font-size`, `--dk-component-code-input-small-label-line-height`, `--dk-component-code-input-small-label-gap`, `--dk-component-code-input-caption-font-size`, `--dk-component-code-input-caption-line-height`, `--dk-component-code-input-error-color`
@@ -0,0 +1,30 @@
1
+ # Dot (`dot`)
2
+
3
+ A status mark with no room for a word, such as an unread row. Six statuses; primary when none is named.
4
+
5
+
6
+ ## Anatomy (HTML)
7
+
8
+ ```text
9
+ span.dk-component-dot[data-status="primary|error|success|warning|information|neutral"]?[aria-hidden]
10
+ ```
11
+
12
+ ## Attributes
13
+
14
+ | Attribute | Values the stylesheet styles |
15
+ |---|---|
16
+ | `data-status` | `error`, `information`, `neutral`, `primary`, `success`, `warning` |
17
+
18
+ ## React
19
+
20
+ ```tsx
21
+ import { Dot } from '@karmo-co/drift-kit/react';
22
+ ```
23
+
24
+ | Prop | Type | Notes |
25
+ |---|---|---|
26
+ | `status` | `'primary' \| 'error' \| 'success' \| 'warning' \| 'information' \| 'neutral'` | Primary when absent. |
27
+
28
+ ## Component tokens
29
+
30
+ `--dk-component-dot-size`, `--dk-component-dot-primary`, `--dk-component-dot-error`, `--dk-component-dot-success`, `--dk-component-dot-warning`, `--dk-component-dot-information`, `--dk-component-dot-neutral`
@@ -10,6 +10,7 @@ div.dk-component-glider[data-variant="raised|plain|inset|ghost"]?[data-multiple]
10
10
  button.__option[data-value][aria-checked]
11
11
  span.__icon?
12
12
  span.__label
13
+ span.__count?
13
14
  ```
14
15
 
15
16
  ## Attributes
@@ -31,4 +32,4 @@ import { Glider } from '@karmo-co/drift-kit/react';
31
32
 
32
33
  ## Component tokens
33
34
 
34
- `--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-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-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`
@@ -1,12 +1,12 @@
1
1
  # Hero (`hero`)
2
2
 
3
- The display tier: Syne on the heading ramp, five responsive sizes, four weights, the Body colour grammar.
3
+ The display tier: Syne on the heading ramp, eight responsive sizes, four weights, the Body colour grammar.
4
4
 
5
5
 
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- h1|h2.dk-component-hero[data-size="xxlarge|xlarge|large|medium|small"]?[data-weight]?[data-color]?[data-align]?
9
+ h1|h2.dk-component-hero[data-size="xxlarge|xlarge|large|medium|small|xsmall|xxsmall|xxxsmall"]?[data-weight]?[data-color]?[data-align]?
10
10
  ```
11
11
 
12
12
  ## Attributes
@@ -17,7 +17,7 @@ h1|h2.dk-component-hero[data-size="xxlarge|xlarge|large|medium|small"]?[data-wei
17
17
  | `data-color` | `black`, `default`, `error`, `information`, `inverse`, `neutral`, `primary`, `success`, `warning`, `white` |
18
18
  | `data-disabled` | (present or absent) |
19
19
  | `data-emphasis` | `subtle` |
20
- | `data-size` | `large`, `medium`, `small`, `xlarge`, `xxlarge` |
20
+ | `data-size` | `large`, `medium`, `small`, `xlarge`, `xsmall`, `xxlarge`, `xxsmall`, `xxxsmall` |
21
21
  | `data-trim` | `both`, `end`, `start` |
22
22
  | `data-weight` | `bold`, `medium`, `regular`, `semi-bold` |
23
23
 
@@ -29,7 +29,7 @@ import { Hero } from '@karmo-co/drift-kit/react';
29
29
 
30
30
  | Prop | Type | Notes |
31
31
  |---|---|---|
32
- | `size` | `'xxlarge' \| 'xlarge' \| 'large' \| 'medium' \| 'small'` | |
32
+ | `size` | `\| 'xxlarge' \| 'xlarge' \| 'large' \| 'medium' \| 'small' \| 'xsmall' \| 'xxsmall' \| 'xxxsmall'` | |
33
33
  | `weight` | `'regular' \| 'medium' \| 'semi-bold' \| 'bold'` | |
34
34
  | `textStyle` | `` | React owns `style`, so the data-style axis is `textStyle`. This is the one place the mirror-the-HTML rule cannot hold. |
35
35
  | `as` | `ElementType` | |
@@ -43,4 +43,4 @@ import { Hero } from '@karmo-co/drift-kit/react';
43
43
 
44
44
  ## Component tokens
45
45
 
46
- `--dk-component-hero-font-family`, `--dk-component-hero-transition-duration`, `--dk-component-hero-xxlarge-font-size`, `--dk-component-hero-xxlarge-line-height`, `--dk-component-hero-xlarge-font-size`, `--dk-component-hero-xlarge-line-height`, `--dk-component-hero-large-font-size`, `--dk-component-hero-large-line-height`, `--dk-component-hero-medium-font-size`, `--dk-component-hero-medium-line-height`, `--dk-component-hero-small-font-size`, `--dk-component-hero-small-line-height`, `--dk-component-hero-regular-font-weight`, `--dk-component-hero-medium-font-weight`, `--dk-component-hero-semi-bold-font-weight`, `--dk-component-hero-bold-font-weight`, `--dk-component-hero-default-color`, `--dk-component-hero-inverse-color`, `--dk-component-hero-white-color`, `--dk-component-hero-black-color`, `--dk-component-hero-primary-color`, `--dk-component-hero-success-color`, `--dk-component-hero-error-color`, `--dk-component-hero-warning-color`, `--dk-component-hero-information-color`, `--dk-component-hero-neutral-default-color`, `--dk-component-hero-neutral-subtle-color`, `--dk-component-hero-disabled-color`
46
+ `--dk-component-hero-font-family`, `--dk-component-hero-transition-duration`, `--dk-component-hero-xxlarge-font-size`, `--dk-component-hero-xxlarge-line-height`, `--dk-component-hero-xlarge-font-size`, `--dk-component-hero-xlarge-line-height`, `--dk-component-hero-large-font-size`, `--dk-component-hero-large-line-height`, `--dk-component-hero-medium-font-size`, `--dk-component-hero-medium-line-height`, `--dk-component-hero-small-font-size`, `--dk-component-hero-small-line-height`, `--dk-component-hero-xsmall-font-size`, `--dk-component-hero-xsmall-line-height`, `--dk-component-hero-xxsmall-font-size`, `--dk-component-hero-xxsmall-line-height`, `--dk-component-hero-xxxsmall-font-size`, `--dk-component-hero-xxxsmall-line-height`, `--dk-component-hero-regular-font-weight`, `--dk-component-hero-medium-font-weight`, `--dk-component-hero-semi-bold-font-weight`, `--dk-component-hero-bold-font-weight`, `--dk-component-hero-default-color`, `--dk-component-hero-inverse-color`, `--dk-component-hero-white-color`, `--dk-component-hero-black-color`, `--dk-component-hero-primary-color`, `--dk-component-hero-success-color`, `--dk-component-hero-error-color`, `--dk-component-hero-warning-color`, `--dk-component-hero-information-color`, `--dk-component-hero-neutral-default-color`, `--dk-component-hero-neutral-subtle-color`, `--dk-component-hero-disabled-color`
@@ -6,7 +6,7 @@ Label, field and caption, with leading and trailing slots, three sizes, and erro
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- div.dk-component-input[data-size="small|medium|large"]?[data-variant="raised"]?[data-leading-control]?
9
+ div.dk-component-input[data-size="small|medium|large"]?[data-variant="raised"]?[data-leading-control]?[data-label-size="small"]?
10
10
  label.__label
11
11
  div.__field
12
12
  span.__leading?
@@ -22,6 +22,7 @@ div.dk-component-input[data-size="small|medium|large"]?[data-variant="raised"]?[
22
22
  |---|---|
23
23
  | `data-appearance` | `sentence` |
24
24
  | `data-input-reveal` | (present or absent) |
25
+ | `data-label-size` | `small` |
25
26
  | `data-leading-control` | (present or absent) |
26
27
  | `data-open` | (present or absent) |
27
28
  | `data-raised` | (present or absent) |
@@ -39,6 +40,7 @@ import { Input } from '@karmo-co/drift-kit/react';
39
40
  | Prop | Type | Notes |
40
41
  |---|---|---|
41
42
  | `label` | `ReactNode` | The visible label. Optional in the TYPE only: see InputProps below, where the union makes an unlabelled field legal exactly when it carries an aria-label or an aria-labelledby instead. A field with no name at all is not a field anyone can use, and that is still unreachable from here. |
43
+ | `labelSize` | `'small' \| 'medium'` | 'small' sets the label a rung smaller (the overline's md) with a little more air under it. Medium, the default, needs no attribute. |
42
44
  | `size` | `'small' \| 'medium' \| 'large'` | |
43
45
  | `caption` | `ReactNode` | Helper text. Rendered as the control's DESCRIPTION, never part of its name: the markup this component replaces wrapped label, field and caption in one <label>, which made every Karmo field announce its helper text as part of its own name. |
44
46
  | `error` | `ReactNode` | The message AND the invalid state. One prop so the border, the words and aria-invalid cannot disagree; there is deliberately no separate `invalid` boolean. |
@@ -61,4 +63,4 @@ import { Input } from '@karmo-co/drift-kit/react';
61
63
 
62
64
  ## Component tokens
63
65
 
64
- `--dk-component-input-small-padding-y`, `--dk-component-input-padding-y`, `--dk-component-input-large-padding-y`, `--dk-component-input-small-height`, `--dk-component-input-height`, `--dk-component-input-large-height`, `--dk-component-input-label-font-family`, `--dk-component-input-label-font-size`, `--dk-component-input-label-line-height`, `--dk-component-input-label-letter-spacing`, `--dk-component-input-label-font-weight`, `--dk-component-input-border-width`, `--dk-component-input-focus-ring-width`, `--dk-component-input-action-radius`, `--dk-component-input-caption-font-size`, `--dk-component-input-caption-line-height`, `--dk-component-input-font-weight`, `--dk-component-input-padding-inline`, `--dk-component-input-large-padding-inline`, `--dk-component-input-sentence-border`, `--dk-component-input-sentence-surface`, `--dk-component-input-sentence-text`, `--dk-component-input-sentence-font-weight`, `--dk-component-input-sentence-font-size`, `--dk-component-input-sentence-line-height`, `--dk-component-input-sentence-small-font-size`, `--dk-component-input-sentence-small-line-height`, `--dk-component-input-sentence-large-font-size`, `--dk-component-input-sentence-large-line-height`, `--dk-component-input-sentence-padding-inline`, `--dk-component-input-sentence-chevron-size`, `--dk-component-input-sentence-value-min-width`, `--dk-component-input-sentence-margin-inline`, `--dk-component-input-raised-shadow`, `--dk-component-input-raised-shadow-hover`, `--dk-component-input-inset-surface`, `--dk-component-input-inset-surface-hover`, `--dk-component-input-inset-surface-active`, `--dk-component-input-inset-action-hover`, `--dk-component-input-inset-action-active`, `--dk-component-input-inset-border`, `--dk-component-input-inset-text`, `--dk-component-input-inset-placeholder`, `--dk-component-input-inset-icon`, `--dk-component-input-inset-affix`, `--dk-component-input-inset-icon-subtle`, `--dk-component-input-inset-icon-subtle-hover`, `--dk-component-input-inset-icon-primary`, `--dk-component-input-inset-icon-success`, `--dk-component-input-inset-icon-error`, `--dk-component-input-inset-icon-warning`, `--dk-component-input-inset-icon-information`, `--dk-component-input-radius`, `--dk-component-input-gap`, `--dk-component-input-slot-gap`, `--dk-component-input-leading-control-divider`, `--dk-component-input-leading-control-divider-width`, `--dk-component-input-leading-control-gap`, `--dk-component-input-leading-icon-color`, `--dk-component-input-leading-icon-color-hover`, `--dk-component-input-leading-icon-color-focus`, `--dk-component-input-slot-icon-size`, `--dk-component-input-small-slot-icon-size`, `--dk-component-input-large-slot-icon-size`, `--dk-component-input-action-size`, `--dk-component-input-action-glyph-size`, `--dk-component-input-small-action-size`, `--dk-component-input-small-action-glyph-size`, `--dk-component-input-large-action-size`, `--dk-component-input-large-action-glyph-size`, `--dk-component-input-error-color`, `--dk-component-input-obscured-font-family`, `--dk-component-input-font-size`, `--dk-component-input-line-height`, `--dk-component-input-small-font-size`, `--dk-component-input-small-line-height`, `--dk-component-input-large-font-size`, `--dk-component-input-large-line-height`
66
+ `--dk-component-input-small-padding-y`, `--dk-component-input-padding-y`, `--dk-component-input-large-padding-y`, `--dk-component-input-small-height`, `--dk-component-input-height`, `--dk-component-input-large-height`, `--dk-component-input-label-font-family`, `--dk-component-input-label-font-size`, `--dk-component-input-label-line-height`, `--dk-component-input-label-letter-spacing`, `--dk-component-input-label-font-weight`, `--dk-component-input-small-label-font-size`, `--dk-component-input-small-label-line-height`, `--dk-component-input-small-label-gap`, `--dk-component-input-border-width`, `--dk-component-input-focus-ring-width`, `--dk-component-input-action-radius`, `--dk-component-input-caption-font-size`, `--dk-component-input-caption-line-height`, `--dk-component-input-font-weight`, `--dk-component-input-padding-inline`, `--dk-component-input-large-padding-inline`, `--dk-component-input-sentence-border`, `--dk-component-input-sentence-surface`, `--dk-component-input-sentence-text`, `--dk-component-input-sentence-font-weight`, `--dk-component-input-sentence-font-size`, `--dk-component-input-sentence-line-height`, `--dk-component-input-sentence-small-font-size`, `--dk-component-input-sentence-small-line-height`, `--dk-component-input-sentence-large-font-size`, `--dk-component-input-sentence-large-line-height`, `--dk-component-input-sentence-padding-inline`, `--dk-component-input-sentence-chevron-size`, `--dk-component-input-sentence-value-min-width`, `--dk-component-input-sentence-margin-inline`, `--dk-component-input-raised-shadow`, `--dk-component-input-raised-shadow-hover`, `--dk-component-input-inset-surface`, `--dk-component-input-inset-surface-hover`, `--dk-component-input-inset-surface-active`, `--dk-component-input-inset-action-hover`, `--dk-component-input-inset-action-active`, `--dk-component-input-inset-border`, `--dk-component-input-inset-text`, `--dk-component-input-inset-placeholder`, `--dk-component-input-inset-icon`, `--dk-component-input-inset-affix`, `--dk-component-input-inset-icon-subtle`, `--dk-component-input-inset-icon-subtle-hover`, `--dk-component-input-inset-icon-primary`, `--dk-component-input-inset-icon-success`, `--dk-component-input-inset-icon-error`, `--dk-component-input-inset-icon-warning`, `--dk-component-input-inset-icon-information`, `--dk-component-input-radius`, `--dk-component-input-gap`, `--dk-component-input-slot-gap`, `--dk-component-input-leading-control-divider`, `--dk-component-input-leading-control-divider-width`, `--dk-component-input-leading-control-gap`, `--dk-component-input-leading-icon-color`, `--dk-component-input-leading-icon-color-hover`, `--dk-component-input-leading-icon-color-focus`, `--dk-component-input-slot-icon-size`, `--dk-component-input-small-slot-icon-size`, `--dk-component-input-large-slot-icon-size`, `--dk-component-input-action-size`, `--dk-component-input-action-glyph-size`, `--dk-component-input-small-action-size`, `--dk-component-input-small-action-glyph-size`, `--dk-component-input-large-action-size`, `--dk-component-input-large-action-glyph-size`, `--dk-component-input-error-color`, `--dk-component-input-obscured-font-family`, `--dk-component-input-font-size`, `--dk-component-input-line-height`, `--dk-component-input-small-font-size`, `--dk-component-input-small-line-height`, `--dk-component-input-large-font-size`, `--dk-component-input-large-line-height`
@@ -6,7 +6,7 @@ One value from a list. A field-shaped trigger, a floating listbox, and the keybo
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- div.dk-component-select[data-size][data-open][data-selected][data-menu-tone="inverse"]?
9
+ div.dk-component-select[data-size][data-open][data-selected][data-menu-tone="inverse"]?[data-sheet-size="tall"]?[data-sheet-title="hidden"]?
10
10
  label.dk-component-select__label (optional, + __req)
11
11
  input[type=hidden] (the form value)
12
12
  button.dk-component-select__trigger (role=combobox)
@@ -61,6 +61,7 @@ div.dk-component-select[data-size][data-open][data-selected][data-menu-tone="inv
61
61
  | `data-selected` | (present or absent) |
62
62
  | `data-sheet-closing` | (present or absent) |
63
63
  | `data-sheet-open` | (present or absent) |
64
+ | `data-sheet-size` | `tall` |
64
65
  | `data-size` | `large`, `small` |
65
66
  | `data-tone` | `error`, `information`, `inverse`, `primary`, `success`, `warning` |
66
67
  | `data-variant` | `inset`, `raised` |
@@ -92,6 +93,8 @@ import { Select } from '@karmo-co/drift-kit/react';
92
93
  | `raised` | `boolean` | Lifts the trigger off the surface on an elevation instead of sitting flush in it, the same attribute and the same trade as Input's: the shadow is the whole of it, and padding and height still come from the size rung. Kept as an alias of variant="raised". |
93
94
  | `variant` | `'plain' \| 'raised' \| 'inset' \| 'default'` | How the trigger separates from the surface, as Input's and Glider's do: plain (the default) sits flush with an edge, raised lifts it on a shadow, inset sinks it into the nested fill with no edge. 'default' is the old name for plain and still renders as it. |
94
95
  | `sheet` | `'auto' \| 'always' \| 'never'` | How the menu presents itself on a phone. 'auto', the default, is a bottom sheet below the kit's mobile breakpoint and a dropdown above it. 'never' opts out, for a select inside something that is already a sheet or a full-screen modal. 'always' forces the sheet at any width, which is how the documentation shows it on a desktop. |
96
+ | `sheetSize` | `'tall'` | 'tall' makes the phone sheet nearly the whole screen (92% of the dynamic viewport), for a long list that is the whole job. |
97
+ | `sheetTitle` | `boolean` | false leaves out the sheet's heading (the select's label, copied in), for a list that already says what it is. The trigger still names it. |
95
98
  | `menuTone` | `'inverse'` | The menu takes the page's theme, whatever the trigger sits on: an inverse trigger opens a light menu on a light page. 'inverse' asks for an inverse menu. |
96
99
  | `layout` | `'list' \| 'grid' \| 'icons'` | 'grid' lays the options out as cards in a wider popup, for options that are pictures (VehicleSelect). Up and down move a row, left and right a card. 'icons' is a grid of square glyph cells, nine to a row, the closest names first when searching and chips by category (IconSelect). |
97
100
  | `appearance` | `'field' \| 'sentence'` | 'sentence' sets the trigger inside a line of text, the value in bold primary ("Every [Monday] of each week"). Name it with label (kept, not shown) or aria-label. |
@@ -110,4 +113,4 @@ import { Select } from '@karmo-co/drift-kit/react';
110
113
 
111
114
  ## Component tokens
112
115
 
113
- `--dk-component-select-small-padding-y`, `--dk-component-select-padding-y`, `--dk-component-select-large-padding-y`, `--dk-component-select-small-height`, `--dk-component-select-height`, `--dk-component-select-large-height`, `--dk-component-select-padding-inline`, `--dk-component-select-radius`, `--dk-component-select-border-width`, `--dk-component-select-focus-ring-width`, `--dk-component-select-gap`, `--dk-component-select-slot-gap`, `--dk-component-select-leading-divider`, `--dk-component-select-leading-divider-hover`, `--dk-component-select-leading-divider-active`, `--dk-component-select-leading-divider-inverse`, `--dk-component-select-leading-divider-inverse-hover`, `--dk-component-select-leading-divider-inverse-active`, `--dk-component-select-leading-divider-width`, `--dk-component-select-leading-color`, `--dk-component-select-leading-color-hover`, `--dk-component-select-leading-color-active`, `--dk-component-select-leading-after`, `--dk-component-select-chevron-size`, `--dk-component-select-sentence-border`, `--dk-component-select-sentence-surface`, `--dk-component-select-sentence-text`, `--dk-component-select-sentence-font-weight`, `--dk-component-select-sentence-font-size`, `--dk-component-select-sentence-line-height`, `--dk-component-select-sentence-small-font-size`, `--dk-component-select-sentence-small-line-height`, `--dk-component-select-sentence-large-font-size`, `--dk-component-select-sentence-large-line-height`, `--dk-component-select-sentence-padding-inline`, `--dk-component-select-sentence-chevron-size`, `--dk-component-select-sentence-value-min-width`, `--dk-component-select-sentence-margin-inline`, `--dk-component-select-font-family`, `--dk-component-select-font-size`, `--dk-component-select-line-height`, `--dk-component-select-small-font-size`, `--dk-component-select-small-line-height`, `--dk-component-select-large-font-size`, `--dk-component-select-large-line-height`, `--dk-component-select-value-font-weight`, `--dk-component-select-placeholder-font-weight`, `--dk-component-select-label-font-family`, `--dk-component-select-label-font-size`, `--dk-component-select-label-line-height`, `--dk-component-select-label-letter-spacing`, `--dk-component-select-label-font-weight`, `--dk-component-select-label-color`, `--dk-component-select-caption-font-size`, `--dk-component-select-caption-line-height`, `--dk-component-select-caption-color`, `--dk-component-select-error-color`, `--dk-component-select-required-color`, `--dk-component-select-surface-default`, `--dk-component-select-surface-hover`, `--dk-component-select-surface-active`, `--dk-component-select-inset-surface`, `--dk-component-select-inset-surface-hover`, `--dk-component-select-inset-surface-active`, `--dk-component-select-inset-border`, `--dk-component-select-inset-value-color`, `--dk-component-select-inset-placeholder-color`, `--dk-component-select-inset-chevron-color`, `--dk-component-select-inset-chevron-primary`, `--dk-component-select-inset-chevron-success`, `--dk-component-select-inset-chevron-error`, `--dk-component-select-inset-chevron-warning`, `--dk-component-select-inset-chevron-information`, `--dk-component-select-border-default`, `--dk-component-select-border-hover`, `--dk-component-select-border-focus`, `--dk-component-select-ring`, `--dk-component-select-value-color`, `--dk-component-select-placeholder-color`, `--dk-component-select-chevron-color`, `--dk-component-select-chevron-color-hover`, `--dk-component-select-value-icon-color`, `--dk-component-select-raised-shadow`, `--dk-component-select-raised-shadow-hover`, `--dk-component-select-raised-border-default`, `--dk-component-select-raised-border-hover`, `--dk-component-select-raised-border-focus`, `--dk-component-select-error-border-default`, `--dk-component-select-error-border-focus`, `--dk-component-select-error-ring`, `--dk-component-select-disabled-surface`, `--dk-component-select-disabled-border`, `--dk-component-select-disabled-value-color`, `--dk-component-select-disabled-icon-color`, `--dk-component-select-disabled-label-color`, `--dk-component-menu-surface`, `--dk-component-menu-border`, `--dk-component-menu-border-width`, `--dk-component-menu-radius`, `--dk-component-menu-shadow`, `--dk-component-menu-padding-block`, `--dk-component-menu-padding-inline`, `--dk-component-menu-max-height`, `--dk-component-menu-max-width`, `--dk-component-menu-viewport-gap`, `--dk-component-menu-sheet-max-height`, `--dk-component-menu-sheet-radius`, `--dk-component-menu-sheet-padding-block`, `--dk-component-menu-scrim`, `--dk-component-menu-scrim-duration`, `--dk-component-menu-scrim-easing`, `--dk-component-menu-sheet-enter-delay`, `--dk-component-menu-sheet-exit-duration`, `--dk-component-menu-sheet-exit-easing`, `--dk-component-menu-enter-duration`, `--dk-component-menu-enter-easing`, `--dk-component-menu-exit-duration`, `--dk-component-menu-exit-easing`, `--dk-component-menu-motion-offset`, `--dk-component-select-option-touch-height`, `--dk-component-select-sheet-title-color`, `--dk-component-menu-scrollbar-thumb`, `--dk-component-menu-scrollbar-thumb-hover`, `--dk-component-select-chip-gap`, `--dk-component-select-chip-padding-block`, `--dk-component-select-chip-padding-inline`, `--dk-component-select-chip-radius`, `--dk-component-select-chip-surface`, `--dk-component-select-chip-shadow`, `--dk-component-select-chip-surface-hover`, `--dk-component-select-chip-color`, `--dk-component-select-chip-font-size`, `--dk-component-select-chip-line-height`, `--dk-component-select-small-chip-font-size`, `--dk-component-select-small-chip-line-height`, `--dk-component-select-large-chip-font-size`, `--dk-component-select-large-chip-line-height`, `--dk-component-select-chip-remove-size`, `--dk-component-select-chip-remove-icon-size`, `--dk-component-select-chip-remove-radius`, `--dk-component-select-chip-remove-surface`, `--dk-component-select-chip-remove-surface-hover`, `--dk-component-select-chip-remove-surface-active`, `--dk-component-select-chip-remove-color`, `--dk-component-select-chip-remove-color-hover`, `--dk-component-select-chip-remove-color-active`, `--dk-component-select-chip-remove-transform-scale-active`, `--dk-component-select-chips-padding-block`, `--dk-component-select-option-padding-block`, `--dk-component-select-option-padding-inline`, `--dk-component-select-option-radius`, `--dk-component-select-option-gap`, `--dk-component-select-option-transform-scale-active`, `--dk-component-select-option-font-size`, `--dk-component-select-option-line-height`, `--dk-component-select-small-option-font-size`, `--dk-component-select-small-option-line-height`, `--dk-component-select-large-option-font-size`, `--dk-component-select-large-option-line-height`, `--dk-component-select-option-font-weight`, `--dk-component-select-option-color`, `--dk-component-select-option-color-active`, `--dk-component-select-option-color-hover`, `--dk-component-select-option-icon-size`, `--dk-component-select-option-media-width`, `--dk-component-select-value-media-height`, `--dk-component-select-grid-menu-width`, `--dk-component-select-grid-menu-max-height`, `--dk-component-select-grid-card-min`, `--dk-component-select-grid-media-width`, `--dk-component-select-grid-desc-font-size`, `--dk-component-select-grid-desc-line-height`, `--dk-component-select-grid-gap`, `--dk-component-select-grid-card-padding`, `--dk-component-select-grid-card-radius`, `--dk-component-select-grid-card-selected-surface`, `--dk-component-select-grid-card-selected-surface-hover`, `--dk-component-select-grid-card-selected-border`, `--dk-component-select-grid-label-font-size`, `--dk-component-select-grid-label-line-height`, `--dk-component-select-grid-card-selected-width`, `--dk-component-select-icons-menu-width`, `--dk-component-select-icons-menu-max-height`, `--dk-component-select-icons-columns`, `--dk-component-select-icons-gap`, `--dk-component-select-icons-cell-radius`, `--dk-component-select-icons-glyph-size`, `--dk-component-select-icons-glyph`, `--dk-component-select-icons-selected-surface`, `--dk-component-select-icons-selected-surface-hover`, `--dk-component-select-icons-selected-glyph`, `--dk-component-select-filters-gap`, `--dk-component-select-filters-padding-block`, `--dk-component-select-filter-padding-block`, `--dk-component-select-filter-padding-inline`, `--dk-component-select-filter-radius`, `--dk-component-select-filter-border-width`, `--dk-component-select-filter-font-size`, `--dk-component-select-filter-line-height`, `--dk-component-select-filter-font-weight`, `--dk-component-select-filter-surface`, `--dk-component-select-filter-surface-hover`, `--dk-component-select-filter-surface-active`, `--dk-component-select-filter-border`, `--dk-component-select-filter-border-hover`, `--dk-component-select-filter-text`, `--dk-component-select-filter-text-hover`, `--dk-component-select-filter-selected-surface`, `--dk-component-select-filter-selected-surface-hover`, `--dk-component-select-filter-selected-text`, `--dk-component-select-option-icon-color`, `--dk-component-select-option-icon-color-hover`, `--dk-component-select-check-size`, `--dk-component-select-check-color`, `--dk-component-select-option-surface-selected`, `--dk-component-select-check-color-selected`, `--dk-component-select-check-stroke-width`, `--dk-component-select-option-surface-hover`, `--dk-component-select-option-surface-active`, `--dk-component-select-option-disabled-color`, `--dk-component-select-option-disabled-icon-color`, `--dk-component-select-option-desc-color`, `--dk-component-select-option-desc-font-weight`, `--dk-component-select-option-desc-gap`, `--dk-component-select-group-font-size`, `--dk-component-select-group-line-height`, `--dk-component-select-group-letter-spacing`, `--dk-component-select-group-font-weight`, `--dk-component-select-group-color`, `--dk-component-select-group-padding-block`, `--dk-component-select-group-gap`, `--dk-component-select-search-padding-block`, `--dk-component-select-search-gap`, `--dk-component-select-search-font-size`, `--dk-component-select-search-line-height`, `--dk-component-select-small-search-font-size`, `--dk-component-select-small-search-line-height`, `--dk-component-select-large-search-font-size`, `--dk-component-select-large-search-line-height`, `--dk-component-select-search-color`, `--dk-component-select-search-placeholder-color`, `--dk-component-select-search-icon-size`, `--dk-component-select-search-icon-color`, `--dk-component-select-search-border`, `--dk-component-select-search-border-width`, `--dk-component-select-search-focus-border`, `--dk-component-select-search-focus-width`, `--dk-component-select-search-focus-icon-color`, `--dk-component-select-sheet-search-padding-block`, `--dk-component-select-loading-color`, `--dk-component-select-loading-spinner-size`, `--dk-component-select-loading-spinner-track`, `--dk-component-select-loading-spinner-head`, `--dk-component-select-loading-duration`, `--dk-component-select-clear-size`, `--dk-component-select-clear-icon-size`, `--dk-component-select-clear-radius`, `--dk-component-select-clear-surface-hover`, `--dk-component-select-clear-surface-active`, `--dk-component-select-clear-color`, `--dk-component-select-clear-color-hover`, `--dk-component-select-clear-color-active`, `--dk-component-select-clear-transform-scale-active`, `--dk-component-select-option-meta-color`, `--dk-component-select-empty-color`, `--dk-component-select-duration`, `--dk-component-select-duration-fast`, `--dk-component-select-easing`
116
+ `--dk-component-select-small-padding-y`, `--dk-component-select-padding-y`, `--dk-component-select-large-padding-y`, `--dk-component-select-small-height`, `--dk-component-select-height`, `--dk-component-select-large-height`, `--dk-component-select-padding-inline`, `--dk-component-select-radius`, `--dk-component-select-border-width`, `--dk-component-select-focus-ring-width`, `--dk-component-select-gap`, `--dk-component-select-slot-gap`, `--dk-component-select-leading-divider`, `--dk-component-select-leading-divider-hover`, `--dk-component-select-leading-divider-active`, `--dk-component-select-leading-divider-inverse`, `--dk-component-select-leading-divider-inverse-hover`, `--dk-component-select-leading-divider-inverse-active`, `--dk-component-select-leading-divider-width`, `--dk-component-select-leading-color`, `--dk-component-select-leading-color-hover`, `--dk-component-select-leading-color-active`, `--dk-component-select-leading-after`, `--dk-component-select-chevron-size`, `--dk-component-select-sentence-border`, `--dk-component-select-sentence-surface`, `--dk-component-select-sentence-text`, `--dk-component-select-sentence-font-weight`, `--dk-component-select-sentence-font-size`, `--dk-component-select-sentence-line-height`, `--dk-component-select-sentence-small-font-size`, `--dk-component-select-sentence-small-line-height`, `--dk-component-select-sentence-large-font-size`, `--dk-component-select-sentence-large-line-height`, `--dk-component-select-sentence-padding-inline`, `--dk-component-select-sentence-chevron-size`, `--dk-component-select-sentence-value-min-width`, `--dk-component-select-sentence-margin-inline`, `--dk-component-select-font-family`, `--dk-component-select-font-size`, `--dk-component-select-line-height`, `--dk-component-select-small-font-size`, `--dk-component-select-small-line-height`, `--dk-component-select-large-font-size`, `--dk-component-select-large-line-height`, `--dk-component-select-value-font-weight`, `--dk-component-select-placeholder-font-weight`, `--dk-component-select-label-font-family`, `--dk-component-select-label-font-size`, `--dk-component-select-label-line-height`, `--dk-component-select-label-letter-spacing`, `--dk-component-select-label-font-weight`, `--dk-component-select-label-color`, `--dk-component-select-caption-font-size`, `--dk-component-select-caption-line-height`, `--dk-component-select-caption-color`, `--dk-component-select-error-color`, `--dk-component-select-required-color`, `--dk-component-select-surface-default`, `--dk-component-select-surface-hover`, `--dk-component-select-surface-active`, `--dk-component-select-inset-surface`, `--dk-component-select-inset-surface-hover`, `--dk-component-select-inset-surface-active`, `--dk-component-select-inset-border`, `--dk-component-select-inset-value-color`, `--dk-component-select-inset-placeholder-color`, `--dk-component-select-inset-chevron-color`, `--dk-component-select-inset-chevron-primary`, `--dk-component-select-inset-chevron-success`, `--dk-component-select-inset-chevron-error`, `--dk-component-select-inset-chevron-warning`, `--dk-component-select-inset-chevron-information`, `--dk-component-select-border-default`, `--dk-component-select-border-hover`, `--dk-component-select-border-focus`, `--dk-component-select-ring`, `--dk-component-select-value-color`, `--dk-component-select-placeholder-color`, `--dk-component-select-chevron-color`, `--dk-component-select-chevron-color-hover`, `--dk-component-select-value-icon-color`, `--dk-component-select-raised-shadow`, `--dk-component-select-raised-shadow-hover`, `--dk-component-select-raised-border-default`, `--dk-component-select-raised-border-hover`, `--dk-component-select-raised-border-focus`, `--dk-component-select-error-border-default`, `--dk-component-select-error-border-focus`, `--dk-component-select-error-ring`, `--dk-component-select-disabled-surface`, `--dk-component-select-disabled-border`, `--dk-component-select-disabled-value-color`, `--dk-component-select-disabled-icon-color`, `--dk-component-select-disabled-label-color`, `--dk-component-menu-surface`, `--dk-component-menu-border`, `--dk-component-menu-border-width`, `--dk-component-menu-radius`, `--dk-component-menu-shadow`, `--dk-component-menu-padding-block`, `--dk-component-menu-padding-inline`, `--dk-component-menu-max-height`, `--dk-component-menu-max-width`, `--dk-component-menu-viewport-gap`, `--dk-component-menu-sheet-max-height`, `--dk-component-menu-sheet-tall-height`, `--dk-component-menu-sheet-radius`, `--dk-component-menu-sheet-padding-block`, `--dk-component-menu-scrim`, `--dk-component-menu-scrim-duration`, `--dk-component-menu-scrim-easing`, `--dk-component-menu-sheet-enter-delay`, `--dk-component-menu-sheet-exit-duration`, `--dk-component-menu-sheet-exit-easing`, `--dk-component-menu-enter-duration`, `--dk-component-menu-enter-easing`, `--dk-component-menu-exit-duration`, `--dk-component-menu-exit-easing`, `--dk-component-menu-motion-offset`, `--dk-component-select-option-touch-height`, `--dk-component-select-sheet-title-color`, `--dk-component-menu-scrollbar-thumb`, `--dk-component-menu-scrollbar-thumb-hover`, `--dk-component-select-chip-gap`, `--dk-component-select-chip-padding-block`, `--dk-component-select-chip-padding-inline`, `--dk-component-select-chip-radius`, `--dk-component-select-chip-surface`, `--dk-component-select-chip-shadow`, `--dk-component-select-chip-surface-hover`, `--dk-component-select-chip-color`, `--dk-component-select-chip-font-size`, `--dk-component-select-chip-line-height`, `--dk-component-select-small-chip-font-size`, `--dk-component-select-small-chip-line-height`, `--dk-component-select-large-chip-font-size`, `--dk-component-select-large-chip-line-height`, `--dk-component-select-chip-remove-size`, `--dk-component-select-chip-remove-icon-size`, `--dk-component-select-chip-remove-radius`, `--dk-component-select-chip-remove-surface`, `--dk-component-select-chip-remove-surface-hover`, `--dk-component-select-chip-remove-surface-active`, `--dk-component-select-chip-remove-color`, `--dk-component-select-chip-remove-color-hover`, `--dk-component-select-chip-remove-color-active`, `--dk-component-select-chip-remove-transform-scale-active`, `--dk-component-select-chips-padding-block`, `--dk-component-select-option-padding-block`, `--dk-component-select-option-padding-inline`, `--dk-component-select-option-radius`, `--dk-component-select-option-gap`, `--dk-component-select-option-transform-scale-active`, `--dk-component-select-option-font-size`, `--dk-component-select-option-line-height`, `--dk-component-select-small-option-font-size`, `--dk-component-select-small-option-line-height`, `--dk-component-select-large-option-font-size`, `--dk-component-select-large-option-line-height`, `--dk-component-select-option-font-weight`, `--dk-component-select-option-color`, `--dk-component-select-option-color-active`, `--dk-component-select-option-color-hover`, `--dk-component-select-option-icon-size`, `--dk-component-select-option-media-width`, `--dk-component-select-value-media-height`, `--dk-component-select-grid-menu-width`, `--dk-component-select-grid-menu-max-height`, `--dk-component-select-grid-card-min`, `--dk-component-select-grid-media-width`, `--dk-component-select-grid-desc-font-size`, `--dk-component-select-grid-desc-line-height`, `--dk-component-select-grid-gap`, `--dk-component-select-grid-card-padding`, `--dk-component-select-grid-card-radius`, `--dk-component-select-grid-card-selected-surface`, `--dk-component-select-grid-card-selected-surface-hover`, `--dk-component-select-grid-card-selected-border`, `--dk-component-select-grid-label-font-size`, `--dk-component-select-grid-label-line-height`, `--dk-component-select-grid-card-selected-width`, `--dk-component-select-icons-menu-width`, `--dk-component-select-icons-menu-max-height`, `--dk-component-select-icons-columns`, `--dk-component-select-icons-gap`, `--dk-component-select-icons-cell-radius`, `--dk-component-select-icons-glyph-size`, `--dk-component-select-icons-glyph`, `--dk-component-select-icons-selected-surface`, `--dk-component-select-icons-selected-surface-hover`, `--dk-component-select-icons-selected-glyph`, `--dk-component-select-filters-gap`, `--dk-component-select-filters-padding-block`, `--dk-component-select-filter-padding-block`, `--dk-component-select-filter-padding-inline`, `--dk-component-select-filter-radius`, `--dk-component-select-filter-border-width`, `--dk-component-select-filter-font-size`, `--dk-component-select-filter-line-height`, `--dk-component-select-filter-font-weight`, `--dk-component-select-filter-surface`, `--dk-component-select-filter-surface-hover`, `--dk-component-select-filter-surface-active`, `--dk-component-select-filter-border`, `--dk-component-select-filter-border-hover`, `--dk-component-select-filter-text`, `--dk-component-select-filter-text-hover`, `--dk-component-select-filter-selected-surface`, `--dk-component-select-filter-selected-surface-hover`, `--dk-component-select-filter-selected-text`, `--dk-component-select-option-icon-color`, `--dk-component-select-option-icon-color-hover`, `--dk-component-select-check-size`, `--dk-component-select-check-color`, `--dk-component-select-option-surface-selected`, `--dk-component-select-check-color-selected`, `--dk-component-select-check-stroke-width`, `--dk-component-select-option-surface-hover`, `--dk-component-select-option-surface-active`, `--dk-component-select-option-disabled-color`, `--dk-component-select-option-disabled-icon-color`, `--dk-component-select-option-desc-color`, `--dk-component-select-option-desc-font-weight`, `--dk-component-select-option-desc-gap`, `--dk-component-select-group-font-size`, `--dk-component-select-group-line-height`, `--dk-component-select-group-letter-spacing`, `--dk-component-select-group-font-weight`, `--dk-component-select-group-color`, `--dk-component-select-group-padding-block`, `--dk-component-select-group-gap`, `--dk-component-select-search-padding-block`, `--dk-component-select-search-gap`, `--dk-component-select-search-font-size`, `--dk-component-select-search-line-height`, `--dk-component-select-small-search-font-size`, `--dk-component-select-small-search-line-height`, `--dk-component-select-large-search-font-size`, `--dk-component-select-large-search-line-height`, `--dk-component-select-search-color`, `--dk-component-select-search-placeholder-color`, `--dk-component-select-search-icon-size`, `--dk-component-select-search-icon-color`, `--dk-component-select-search-border`, `--dk-component-select-search-border-width`, `--dk-component-select-search-focus-border`, `--dk-component-select-search-focus-width`, `--dk-component-select-search-focus-icon-color`, `--dk-component-select-sheet-search-padding-block`, `--dk-component-select-loading-color`, `--dk-component-select-loading-spinner-size`, `--dk-component-select-loading-spinner-track`, `--dk-component-select-loading-spinner-head`, `--dk-component-select-loading-duration`, `--dk-component-select-clear-size`, `--dk-component-select-clear-icon-size`, `--dk-component-select-clear-radius`, `--dk-component-select-clear-surface-hover`, `--dk-component-select-clear-surface-active`, `--dk-component-select-clear-color`, `--dk-component-select-clear-color-hover`, `--dk-component-select-clear-color-active`, `--dk-component-select-clear-transform-scale-active`, `--dk-component-select-option-meta-color`, `--dk-component-select-empty-color`, `--dk-component-select-duration`, `--dk-component-select-duration-fast`, `--dk-component-select-easing`
@@ -15,6 +15,8 @@ div.dk-component-shield[data-animation="idle|enter|success|error"]?[data-size]?
15
15
  | Attribute | Values the stylesheet styles |
16
16
  |---|---|
17
17
  | `data-animation` | `enter`, `error`, `success` |
18
+ | `data-dk-cascade` | (present or absent) |
19
+ | `data-in` | (present or absent) |
18
20
  | `data-part` | `check`, `fill`, `lock`, `outline` |
19
21
 
20
22
  ## React
@@ -8,15 +8,25 @@ An app's main navigation. A rail on a desktop that collapses to its glyphs, and
8
8
  ```text
9
9
  nav.dk-component-sidebar[data-collapsed]?
10
10
  div.__head > a|div.__brand > span.__mark + span.__wordmark
11
+ (span.__mark > .dk-component-logo[data-lockup="symbol-text"]: the
12
+ brand's whole logo, the mark sized to it, its symbol on the glyph
13
+ column; the collapsed rail shows the symbol lockup in its place,
14
+ marked data-sb-lockup)
11
15
  (a div when the brand goes nowhere: named by its wordmark, or
12
16
  role="img" with aria-label when it has none)
13
17
  div.__body
14
18
  div.__section > span.__heading? + ul.__list > a|button.__item[aria-current]?
15
19
  div.__foot
20
+ ul.__list > li[data-rail-only]? > a|button.__item
21
+ (data-rail-only: the rail and the drawer show the row, the phone
22
+ bar leaves it out, and it never puts More on the bar)
16
23
  ul.__list > button.__item.__toggle
17
24
  div.dk-component-dropdown.__account > button.__user
18
25
  > span.__icon[data-bar-icon]? + an avatar + __user-text
19
26
  (the glyph shows in place of the avatar on a phone bar only)
27
+ (on a touch screen, @media (pointer: coarse), the floating bar sits
28
+ --dk-component-sidebar-bar-bottom = spacing-3 off the foot, not the
29
+ inset's 16, with the raised shadow; a fine pointer keeps both)
20
30
  ```
21
31
 
22
32
  ## Attributes
@@ -31,6 +41,7 @@ nav.dk-component-sidebar[data-collapsed]?
31
41
  | `data-indicator` | (present or absent) |
32
42
  | `data-letter` | `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9` |
33
43
  | `data-level` | `2` |
44
+ | `data-lockup` | `symbol-text` |
34
45
  | `data-nested` | (present or absent) |
35
46
  | `data-open` | (present or absent) |
36
47
  | `data-panel` | `closed`, `closing`, `filling` |
@@ -38,6 +49,7 @@ nav.dk-component-sidebar[data-collapsed]?
38
49
  | `data-rising` | (present or absent) |
39
50
  | `data-sb-carry` | (present or absent) |
40
51
  | `data-sb-instant` | (present or absent) |
52
+ | `data-sb-lockup` | (present or absent) |
41
53
  | `data-sb-unit` | (present or absent) |
42
54
  | `data-space` | (present or absent) |
43
55
  | `data-variant` | `floating` |
@@ -76,4 +88,4 @@ import { Sidebar } from '@karmo-co/drift-kit/react';
76
88
 
77
89
  ## Component tokens
78
90
 
79
- `--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-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-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-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`
@@ -9,7 +9,7 @@ A label, a category, a status. Six statuses, three variants, and a dot for the c
9
9
  span.dk-component-tag[data-status|data-hue][data-variant][data-size]
10
10
  span.dk-component-tag__dot (optional, aria-hidden)
11
11
  span.dk-component-tag__icon (optional, aria-hidden, holds an svg)
12
- the text
12
+ span.dk-component-tag__text (the words; end in an ellipsis when a tag alone in its container is squeezed)
13
13
  ```
14
14
 
15
15
  ## Attributes
@@ -22,6 +22,7 @@ span.dk-component-tag[data-status|data-hue][data-variant][data-size]
22
22
  | `data-theme` | `dark`, `light` |
23
23
  | `data-tone-fill` | `solid` |
24
24
  | `data-variant` | `outline`, `solid` |
25
+ | `data-weight` | `medium`, `semi-bold` |
25
26
 
26
27
  ## React
27
28
 
@@ -35,6 +36,7 @@ import { Tag } from '@karmo-co/drift-kit/react';
35
36
  | `hue` | `'prev4' \| 'prev3' \| 'prev2' \| 'prev1' \| 'primary' \| 'next1' \| 'next2' \| 'next3' \| 'next4'` | A category colour instead of a status, for departments, series and filters. |
36
37
  | `variant` | `'subtle' \| 'solid' \| 'outline'` | |
37
38
  | `size` | `'xsmall' \| 'small' \| 'medium' \| 'large'` | |
39
+ | `weight` | `'medium' \| 'semi-bold'` | The label weight; semi-bold when absent. |
38
40
  | `dot` | `boolean` | A coloured circle before the label, for the status that has a word beside it already. Decorative, and hidden from the reader for that reason. |
39
41
  | `icon` | `ReactNode` | A glyph before the label. It takes the tag's own colour rather than the status tone: on a tint the text IS the status colour, and on a fill anything else would fail. |
40
42
  | `children` | `ReactNode` | |
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "24.1.0",
4
- "built": "2026-11-05",
3
+ "version": "24.3.0",
4
+ "built": "2026-11-07",
5
5
  "components": [
6
6
  {
7
7
  "id": "accordion",
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "id": "box",
38
38
  "name": "Box",
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."
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
41
  {
42
42
  "id": "breadcrumb",
@@ -98,6 +98,11 @@
98
98
  "name": "Divider",
99
99
  "purpose": "A rule between things. An <hr> that follows the border palette, mostly steps with the surface level, and turns vertical without a wrapper."
100
100
  },
101
+ {
102
+ "id": "dot",
103
+ "name": "Dot",
104
+ "purpose": "A status mark with no room for a word, such as an unread row. Six statuses; primary when none is named."
105
+ },
101
106
  {
102
107
  "id": "dropdown",
103
108
  "name": "Dropdown",
@@ -131,7 +136,7 @@
131
136
  {
132
137
  "id": "hero",
133
138
  "name": "Hero",
134
- "purpose": "The display tier: Syne on the heading ramp, five responsive sizes, four weights, the Body colour grammar."
139
+ "purpose": "The display tier: Syne on the heading ramp, eight responsive sizes, four weights, the Body colour grammar."
135
140
  },
136
141
  {
137
142
  "id": "icon",
@@ -1610,6 +1615,28 @@
1610
1615
  "components": [],
1611
1616
  "tokens": []
1612
1617
  }
1618
+ },
1619
+ "24.2.0": {
1620
+ "added": {
1621
+ "components": [
1622
+ "dot"
1623
+ ],
1624
+ "tokens": []
1625
+ },
1626
+ "removed": {
1627
+ "components": [],
1628
+ "tokens": []
1629
+ }
1630
+ },
1631
+ "24.3.0": {
1632
+ "added": {
1633
+ "components": [],
1634
+ "tokens": []
1635
+ },
1636
+ "removed": {
1637
+ "components": [],
1638
+ "tokens": []
1639
+ }
1613
1640
  }
1614
1641
  }
1615
1642
  }
package/manifest/rules.md CHANGED
@@ -30,6 +30,7 @@ Every rule below is a test in drift-kit. A component the kit ships passes all of
30
30
  - an ancestor tone treatment that repaints a part excludes it (Icon tile on a solid)
31
31
  - review: variants are also judged in pairs (a status solid Tag is a mark rule C inverts, not a surface)
32
32
  - the derivation follows --dk-interactive-* to the surface it reads
33
+ - rule D: on a solid fill a quiet chip follows its marks (Stepper check on a solid)
33
34
 
34
35
  ## anatomy
35
36
 
package/manifest/setup.md CHANGED
@@ -34,7 +34,7 @@ Put these on `<body>`, never on `<html>`: the stylesheet reads them on the body
34
34
 
35
35
  ## Container attributes
36
36
 
37
- Set on a panel, not on `<body>`: everything inside follows. A container that sets a level or a tone paints `background: var(--dk-surface-current)`, the colour of the place it is in.
37
+ Set on a panel, not on `<body>`: everything inside follows. The attributes remap the tokens and paint nothing, so the container paints itself: `background: var(--dk-surface-current)`, the colour of the place it is in, and, when it sets `data-theme`, `color: var(--dk-text-default)` too, because Heading and Body inherit their colour. Kit surfaces (Box, Card, Alert, Modal) already paint.
38
38
 
39
39
  | Attribute | Values |
40
40
  |---|---|
@@ -53,51 +53,53 @@ A component token resolves only on its own component's element, so never probe o
53
53
 
54
54
  A page with no npm install (a plain HTML prototype, a slide deck) links this version from the public kit. Every address carries the version, and a version's files never change, so never write a link without one. Link the stylesheet in the head (`drift-kit.min.css` when shipping), `components.js` only when a component on the page has behaviour, and one icon script, only for the set the page's icons come from. Fonts load from the same folder, relative to the stylesheet.
55
55
 
56
+ The Karmo set (`data-karmo`) is built into `components.js`, so it has no icon script of its own. Every other set is its own `drift-icons-<set>.js`.
57
+
56
58
  Both scripts are deferred, and an icon script goes after `components.js`, which replaces the icon registry when it runs: an icon script that runs first loses its set. Every tag carries its file's `integrity` from the table below and `crossorigin="anonymous"`, so a file whose bytes changed never loads. In this order:
57
59
 
58
60
  ```html
59
61
  <!-- in the head -->
60
- <link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/24.1.0/drift-kit.css" integrity="sha384-IhZAcsx3lSCa3I9ZA/TodoTgBiXyKATfVKetaWgnvlhPG6icNy3I1J7dNo4e8oC+" crossorigin="anonymous" />
61
- <script src="https://storage.googleapis.com/drift-kit-public/24.1.0/components.js" integrity="sha384-0Zo9MBrgm5FFHuUfzsVKoXAL/Gjf4+K0vK+SahakBOXKHMw3W90lGXcJHkynjMeG" crossorigin="anonymous" defer></script>
62
- <script src="https://storage.googleapis.com/drift-kit-public/24.1.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
62
+ <link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/24.3.0/drift-kit.css" integrity="sha384-diACJznag8sx9Od8rVv3gigxkW+bFZhBG0Z+x6iGCNj2syMLBsh2cOFqBTilW3HG" crossorigin="anonymous" />
63
+ <script src="https://storage.googleapis.com/drift-kit-public/24.3.0/components.js" integrity="sha384-y71v3nuPSw0u4ndY7jnt0YZGL0/wSVO9ntkzkNszTOxF9ui8582llvPjh5/4p4S3" crossorigin="anonymous" defer></script>
64
+ <script src="https://storage.googleapis.com/drift-kit-public/24.3.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
63
65
  <!-- the attributes go on the body -->
64
66
  <body data-brand="karmo" data-theme="light">
65
67
  ```
66
68
 
67
69
  | File | Address | Integrity |
68
70
  |---|---|---|
69
- | `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/24.1.0/drift-kit.css` | `sha384-IhZAcsx3lSCa3I9ZA/TodoTgBiXyKATfVKetaWgnvlhPG6icNy3I1J7dNo4e8oC+` |
70
- | `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/24.1.0/drift-kit.min.css` | `sha384-jULoMbmb8VFG/sd21Wfr5t5/5ofhXYmtTphmc6TAI+rgmVukocsVdzcAtxXXhef0` |
71
- | `components.js` | `https://storage.googleapis.com/drift-kit-public/24.1.0/components.js` | `sha384-0Zo9MBrgm5FFHuUfzsVKoXAL/Gjf4+K0vK+SahakBOXKHMw3W90lGXcJHkynjMeG` |
72
- | `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/24.1.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
73
- | `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/24.1.0/drift-icons-coolicon.js` | `sha384-8WaBw9LZuhj/u7G2Jf1aiVo8HBhMj1fBsmpSWJnYi5Xdi2ANXB3BLBZxz2NLQGYl` |
74
- | `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/24.1.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
75
- | `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/24.1.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
76
- | `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/24.1.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
77
- | `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/24.1.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
78
- | `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/24.1.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
71
+ | `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/24.3.0/drift-kit.css` | `sha384-diACJznag8sx9Od8rVv3gigxkW+bFZhBG0Z+x6iGCNj2syMLBsh2cOFqBTilW3HG` |
72
+ | `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/24.3.0/drift-kit.min.css` | `sha384-t86COdOgwJZmNwb68b+Lw/oCGu5TiS9KBczSQxzFT4jS/DEnmRPSSb26F2HwA2J7` |
73
+ | `components.js` | `https://storage.googleapis.com/drift-kit-public/24.3.0/components.js` | `sha384-y71v3nuPSw0u4ndY7jnt0YZGL0/wSVO9ntkzkNszTOxF9ui8582llvPjh5/4p4S3` |
74
+ | `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/24.3.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
75
+ | `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/24.3.0/drift-icons-coolicon.js` | `sha384-8WaBw9LZuhj/u7G2Jf1aiVo8HBhMj1fBsmpSWJnYi5Xdi2ANXB3BLBZxz2NLQGYl` |
76
+ | `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/24.3.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
77
+ | `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/24.3.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
78
+ | `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/24.3.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
79
+ | `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/24.3.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
80
+ | `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/24.3.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
79
81
 
80
82
  ### In Claude chat and Cowork
81
83
 
82
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>`.
83
85
 
84
86
  ```html
85
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/drift-kit.min.css" integrity="sha384-jULoMbmb8VFG/sd21Wfr5t5/5ofhXYmtTphmc6TAI+rgmVukocsVdzcAtxXXhef0" crossorigin="anonymous" />
86
- <script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/components.js" integrity="sha384-BHXNaObtpjX/yInqY74BKAUWyQ1k6wXIHkCp089DOq1tI7gQcS+M1lAaf+B4H4/3" crossorigin="anonymous" defer></script>
87
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.3.0/drift-kit.min.css" integrity="sha384-t86COdOgwJZmNwb68b+Lw/oCGu5TiS9KBczSQxzFT4jS/DEnmRPSSb26F2HwA2J7" crossorigin="anonymous" />
88
+ <script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.3.0/components.js" integrity="sha384-98nkziPQwxxRtqNpCcpW3FctHF9tEDv9zp1skpPiW4uUswIdtoK3XJM8++AIsd4j" crossorigin="anonymous" defer></script>
87
89
  ```
88
90
 
89
91
  | File | Address | Integrity |
90
92
  |---|---|---|
91
- | `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/components.js` | `sha384-BHXNaObtpjX/yInqY74BKAUWyQ1k6wXIHkCp089DOq1tI7gQcS+M1lAaf+B4H4/3` |
92
- | `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
93
- | `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
94
- | `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/drift-icons-coolicon.js` | `sha384-8WaBw9LZuhj/u7G2Jf1aiVo8HBhMj1fBsmpSWJnYi5Xdi2ANXB3BLBZxz2NLQGYl` |
95
- | `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
96
- | `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
97
- | `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
98
- | `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
99
- | `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
100
- | `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.1.0/drift-kit.min.css` | `sha384-jULoMbmb8VFG/sd21Wfr5t5/5ofhXYmtTphmc6TAI+rgmVukocsVdzcAtxXXhef0` |
93
+ | `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.3.0/components.js` | `sha384-98nkziPQwxxRtqNpCcpW3FctHF9tEDv9zp1skpPiW4uUswIdtoK3XJM8++AIsd4j` |
94
+ | `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.3.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
95
+ | `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.3.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.3.0/drift-icons-coolicon.js` | `sha384-8WaBw9LZuhj/u7G2Jf1aiVo8HBhMj1fBsmpSWJnYi5Xdi2ANXB3BLBZxz2NLQGYl` |
97
+ | `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.3.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.3.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.3.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.3.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
101
+ | `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.3.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.3.0/drift-kit.min.css` | `sha384-t86COdOgwJZmNwb68b+Lw/oCGu5TiS9KBczSQxzFT4jS/DEnmRPSSb26F2HwA2J7` |
101
103
 
102
104
  ### Integrity for 23.4.0
103
105
 
@@ -125,5 +127,5 @@ The behaviour script initialises every component on the page when it loads. Mark
125
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.
126
128
 
127
129
  ```json
128
- {"version":"24.1.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"}
130
+ {"version":"24.3.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"}
129
131
  ```
@@ -49,6 +49,6 @@ Anything clickable that is not already a kit component (a row, a card you built,
49
49
  | `="surface"` | Cards | Grows a little on hover, presses on click |
50
50
  | `="panel"` | Large panels | The gentlest grow and press |
51
51
 
52
- Add `data-interactive-fill="raised"` or `="nested"` when it should have a fill at rest. The foundation gives hover, press, focus ring and the colour motion, all at weight zero, so a component's own rule always wins.
52
+ Add `data-interactive-fill="raised"` or `="nested"` when it should have a fill at rest. Add `data-interactive-press="none"` when it should not shrink when pressed (a row in a divided list), or `="control"` for a button's press on a bigger tier (a card on a raised fill). A Box with `data-interactive` keeps its own column layout, padding and corner; `data-align="center"` on it centres its content. The foundation gives hover, press, focus ring and the colour motion, all at weight zero, so a component's own rule always wins.
53
53
 
54
54
  The states it reads: selected (a solid primary) from `aria-current`, `aria-pressed` or a single-select `aria-selected`; highlighted (a primary tint, for "in the set") from `aria-checked`, a multi-select `aria-selected` or `data-highlighted`; disabled from `disabled` or `aria-disabled`, which wins over everything. `data-pseudo-class="hover|active|focus"` forces a state for docs and screenshots only.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmo-co/drift-kit-reference",
3
- "version": "24.1.0",
3
+ "version": "24.3.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"