@karmo-co/drift-kit-reference 25.15.0 → 25.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/manifest/components/action-bar.md +9 -4
- package/manifest/components/box.md +3 -3
- package/manifest/components/choice-card.md +3 -1
- package/manifest/components/payment-form.md +1 -1
- package/manifest/components/stepper.md +1 -1
- package/manifest/index.json +22 -2
- package/manifest/rules.md +65 -0
- package/manifest/setup.md +26 -26
- package/package.json +1 -1
|
@@ -9,9 +9,11 @@ A flow's controls along the bottom: Back, Next, what the step costs and how far
|
|
|
9
9
|
div.dk-component-action-bar[data-variant="float"]?[data-align="split"]?[data-layout="fill"]?[data-sticky]?
|
|
10
10
|
div.__inner
|
|
11
11
|
div.__start (Back: a plain Button)
|
|
12
|
-
button.__summary? (__summary-label, __summary-value, __summary-chevron; opens __detail)
|
|
12
|
+
button.__summary? (__summary-media? (40 tall, its media's own width), __summary-label, __summary-value, __summary-chevron; opens __detail)
|
|
13
13
|
div.__end (Next: a Button, default + primary)
|
|
14
|
-
div.__detail?
|
|
14
|
+
div.__detail[data-surface="raised"]? (a glass panel a gap above the bar; raised, so what is in it reads against raised)
|
|
15
|
+
div.__backdrop (the runtime's, the bar's previous sibling, while __detail is open;
|
|
16
|
+
the bar data-detail-open meanwhile, its glass on ::before)
|
|
15
17
|
div.__progress?
|
|
16
18
|
```
|
|
17
19
|
|
|
@@ -21,9 +23,12 @@ div.dk-component-action-bar[data-variant="float"]?[data-align="split"]?[data-lay
|
|
|
21
23
|
|---|---|
|
|
22
24
|
| `data-align` | `split` |
|
|
23
25
|
| `data-closing` | (present or absent) |
|
|
26
|
+
| `data-detail-open` | (present or absent) |
|
|
24
27
|
| `data-layout` | `fill` |
|
|
25
28
|
| `data-open` | (present or absent) |
|
|
26
29
|
| `data-phone` | (present or absent) |
|
|
30
|
+
| `data-ratio` | (present or absent) |
|
|
31
|
+
| `data-size` | (present or absent) |
|
|
27
32
|
| `data-sticky` | (present or absent) |
|
|
28
33
|
| `data-stuck` | (present or absent) |
|
|
29
34
|
| `data-variant` | `float` |
|
|
@@ -38,7 +43,7 @@ import { ActionBar } from '@karmo-co/drift-kit/react';
|
|
|
38
43
|
|---|---|---|
|
|
39
44
|
| `start` | `ReactNode` | Back, usually a plain Button. |
|
|
40
45
|
| `end` | `ReactNode` | Next, usually a default primary Button. |
|
|
41
|
-
| `summary` | `{ label: ReactNode; value: ReactNode; detail?: ReactNode; detailLabel?: string }` | What the step costs: "Due today", "$224.50". With a detail the summary is a button: press it and the detail opens above the bar (the price breakdown, a photo of the car). detailLabel names it. |
|
|
46
|
+
| `summary` | `{ label: ReactNode; value: ReactNode; media?: ReactNode; detail?: ReactNode; detailLabel?: string }` | What the step costs: "Due today", "$224.50". With a detail the summary is a button: press it and the detail opens above the bar (the price breakdown, a photo of the car). detailLabel names it. media (17 Nov 2026): a thumbnail before the words, a square spanning both lines (the car in a subscription's flow). |
|
|
42
47
|
| `progress` | `{ value: number; max: number; label?: string; text?: string }` | Where the flow is, drawn along the bar's top edge. |
|
|
43
48
|
| `variant` | `'fixed' \| 'float'` | |
|
|
44
49
|
| `sticky` | `boolean` | |
|
|
@@ -50,4 +55,4 @@ import { ActionBar } from '@karmo-co/drift-kit/react';
|
|
|
50
55
|
|
|
51
56
|
## Component tokens
|
|
52
57
|
|
|
53
|
-
`--dk-component-action-bar-padding-block`, `--dk-component-action-bar-padding-inline`, `--dk-component-action-bar-phone-padding-inline`, `--dk-component-action-bar-gap`, `--dk-component-action-bar-button-gap`, `--dk-component-action-bar-max-width`, `--dk-component-action-bar-surface`, `--dk-component-action-bar-border`, `--dk-component-action-bar-border-width`, `--dk-component-action-bar-fill-surface`, `--dk-component-action-bar-fill-border`, `--dk-component-action-bar-fill-padding-block`, `--dk-component-action-bar-fill-padding-inline`, `--dk-component-action-bar-fill-phone-padding-block-end`, `--dk-component-action-bar-float-radius`, `--dk-component-action-bar-float-surface`, `--dk-component-action-bar-blur`, `--dk-component-action-bar-float-inset`, `--dk-component-action-bar-float-shadow`, `--dk-component-action-bar-stuck-shadow`, `--dk-component-action-bar-z-index`, `--dk-component-action-bar-summary-label-font-size`, `--dk-component-action-bar-summary-label-line-height`, `--dk-component-action-bar-summary-label-font-weight`, `--dk-component-action-bar-summary-label-letter-spacing`, `--dk-component-action-bar-summary-label-color`, `--dk-component-action-bar-summary-value-font-size`, `--dk-component-action-bar-summary-value-line-height`, `--dk-component-action-bar-summary-value-font-weight`, `--dk-component-action-bar-summary-value-color`, `--dk-component-action-bar-progress-thickness`, `--dk-component-action-bar-progress-track`, `--dk-component-action-bar-progress-fill`, `--dk-component-action-bar-progress-gradient`, `--dk-component-action-bar-progress-gradient-rtl`, `--dk-component-action-bar-duration`, `--dk-component-action-bar-progress-duration`, `--dk-component-action-bar-easing`, `--dk-component-action-bar-summary-padding`, `--dk-component-action-bar-summary-radius`, `--dk-component-action-bar-summary-surface-hover`, `--dk-component-action-bar-summary-surface-active`, `--dk-component-action-bar-summary-press-scale`, `--dk-component-action-bar-summary-ring`, `--dk-component-action-bar-summary-ring-width`, `--dk-component-action-bar-chevron-size`, `--dk-component-action-bar-chevron-color`, `--dk-component-action-bar-chevron-color-hover`, `--dk-component-action-bar-chevron-color-active`, `--dk-component-action-bar-detail-surface`, `--dk-component-action-bar-detail-border`, `--dk-component-action-bar-detail-radius`, `--dk-component-action-bar-detail-shadow`, `--dk-component-action-bar-detail-padding`, `--dk-component-action-bar-detail-width`, `--dk-component-action-bar-detail-gap`, `--dk-component-action-bar-detail-rise`, `--dk-component-action-bar-detail-enter-duration`, `--dk-component-action-bar-detail-enter-easing`, `--dk-component-action-bar-detail-exit-duration`, `--dk-component-action-bar-detail-exit-easing`
|
|
58
|
+
`--dk-component-action-bar-padding-block`, `--dk-component-action-bar-padding-inline`, `--dk-component-action-bar-phone-padding-inline`, `--dk-component-action-bar-gap`, `--dk-component-action-bar-button-gap`, `--dk-component-action-bar-max-width`, `--dk-component-action-bar-surface`, `--dk-component-action-bar-border`, `--dk-component-action-bar-border-width`, `--dk-component-action-bar-fill-surface`, `--dk-component-action-bar-fill-border`, `--dk-component-action-bar-fill-padding-block`, `--dk-component-action-bar-fill-padding-inline`, `--dk-component-action-bar-fill-phone-padding-block-end`, `--dk-component-action-bar-float-radius`, `--dk-component-action-bar-float-surface`, `--dk-component-action-bar-blur`, `--dk-component-action-bar-float-inset`, `--dk-component-action-bar-float-shadow`, `--dk-component-action-bar-stuck-shadow`, `--dk-component-action-bar-z-index`, `--dk-component-action-bar-summary-media-size`, `--dk-component-action-bar-summary-media-phone-size`, `--dk-component-action-bar-summary-media-label-font-size`, `--dk-component-action-bar-summary-media-label-line-height`, `--dk-component-action-bar-summary-media-value-font-size`, `--dk-component-action-bar-summary-media-value-line-height`, `--dk-component-action-bar-summary-media-value-font-weight`, `--dk-component-action-bar-summary-media-gap`, `--dk-component-action-bar-summary-label-font-size`, `--dk-component-action-bar-summary-label-line-height`, `--dk-component-action-bar-summary-label-font-weight`, `--dk-component-action-bar-summary-label-letter-spacing`, `--dk-component-action-bar-summary-label-color`, `--dk-component-action-bar-summary-value-font-size`, `--dk-component-action-bar-summary-value-line-height`, `--dk-component-action-bar-summary-value-font-weight`, `--dk-component-action-bar-summary-value-color`, `--dk-component-action-bar-progress-thickness`, `--dk-component-action-bar-progress-track`, `--dk-component-action-bar-progress-fill`, `--dk-component-action-bar-progress-gradient`, `--dk-component-action-bar-progress-gradient-rtl`, `--dk-component-action-bar-duration`, `--dk-component-action-bar-progress-duration`, `--dk-component-action-bar-easing`, `--dk-component-action-bar-summary-padding`, `--dk-component-action-bar-summary-radius`, `--dk-component-action-bar-summary-surface-hover`, `--dk-component-action-bar-summary-surface-active`, `--dk-component-action-bar-summary-press-scale`, `--dk-component-action-bar-summary-ring`, `--dk-component-action-bar-summary-ring-width`, `--dk-component-action-bar-chevron-size`, `--dk-component-action-bar-chevron-color`, `--dk-component-action-bar-chevron-color-hover`, `--dk-component-action-bar-chevron-color-active`, `--dk-component-action-bar-detail-surface`, `--dk-component-action-bar-detail-blur`, `--dk-component-action-bar-detail-border`, `--dk-component-action-bar-detail-radius`, `--dk-component-action-bar-detail-shadow`, `--dk-component-action-bar-detail-padding`, `--dk-component-action-bar-detail-width`, `--dk-component-action-bar-detail-gap`, `--dk-component-action-bar-detail-phone-inset`, `--dk-component-action-bar-backdrop`, `--dk-component-action-bar-backdrop-blur`, `--dk-component-action-bar-detail-rise`, `--dk-component-action-bar-detail-enter-duration`, `--dk-component-action-bar-detail-enter-easing`, `--dk-component-action-bar-detail-exit-duration`, `--dk-component-action-bar-detail-exit-easing`
|
|
@@ -29,7 +29,7 @@ section.dk-component-box[data-variant][data-pointer="top|right|bottom|left"][dat
|
|
|
29
29
|
| `data-pointer` | `bottom`, `left`, `right`, `top` |
|
|
30
30
|
| `data-pseudo-class` | `active`, `focus`, `hover` |
|
|
31
31
|
| `data-radius` | `large`, `medium`, `xlarge` |
|
|
32
|
-
| `data-shadow` | `none` |
|
|
32
|
+
| `data-shadow` | `card`, `none` |
|
|
33
33
|
| `data-size` | `large`, `small`, `xlarge`, `xsmall` |
|
|
34
34
|
| `data-span` | `full` |
|
|
35
35
|
| `data-surface` | (present or absent) |
|
|
@@ -64,7 +64,7 @@ import { Box } from '@karmo-co/drift-kit/react';
|
|
|
64
64
|
| `radius` | `'medium' \| 'large' \| 'xlarge'` | The corner of that size, whatever the box's size: a small card a rung rounder without the large padding. |
|
|
65
65
|
| `sticky` | `boolean` | Stays at the top of what scrolls, in its own paint (data-sticky): the page's surface for an untoned box; a toned or levelled one paints its fill, so stick a plain section around it instead. In style, --dk-sticky-cover opts into a cover rising above it (only where nothing sits above it in its scroller), --dk-sticky-bleed widens that cover and --dk-sticky-z-index lifts it. |
|
|
66
66
|
| `flush` | `'phone'` | phone: below the kit's breakpoint the box runs to the screen's sides, no corner and no side edges (data-flush). The page bleeds it to the edges. |
|
|
67
|
-
| `shadow` | `boolean` | false drops the variant's shadow (data-shadow="none"), keeping its fill and edge. |
|
|
67
|
+
| `shadow` | `boolean \| 'card'` | false drops the variant's shadow (data-shadow="none"), keeping its fill and edge; 'card' gives a raised box a card's shadow (data-shadow="card"). |
|
|
68
68
|
| `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. |
|
|
69
69
|
| `interactive` | `true \| 'control' \| 'compact' \| 'item' \| 'surface' \| 'panel'` | The interaction foundation (data-interactive): a whole box you click, its tier named. With it, interactiveFill gives it a fill at rest that ramps with its states (data-interactive-fill). |
|
|
70
70
|
| `interactiveFill` | `'raised' \| 'nested'` | |
|
|
@@ -73,4 +73,4 @@ import { Box } from '@karmo-co/drift-kit/react';
|
|
|
73
73
|
|
|
74
74
|
## Component tokens
|
|
75
75
|
|
|
76
|
-
`--dk-component-box-xsmall-padding`, `--dk-component-box-small-padding`, `--dk-component-box-padding`, `--dk-component-box-large-padding`, `--dk-component-box-xlarge-padding`, `--dk-component-box-radius`, `--dk-component-box-large-radius`, `--dk-component-box-xlarge-radius`, `--dk-component-box-border-width`, `--dk-component-box-pointer-depth`, `--dk-component-box-pointer-base`, `--dk-component-box-pointer-offset`, `--dk-component-box-border-color`, `--dk-component-box-raised-border-color`, `--dk-component-box-inset-border-color`, `--dk-component-box-raised-shadow`, `--dk-component-box-inset-shadow`, `--dk-component-box-column-min`, `--dk-component-box-line-color`, `--dk-component-box-line-color-neutral`, `--dk-component-box-line-width`, `--dk-component-box-focus-room`, `--dk-component-box-label-color`, `--dk-component-box-label-font-size`, `--dk-component-box-label-line-height`, `--dk-component-box-label-letter-spacing`, `--dk-component-box-label-font-weight`, `--dk-component-box-fact-gap`, `--dk-component-box-value-color`, `--dk-component-box-value-font-size`, `--dk-component-box-value-line-height`, `--dk-component-box-value-font-weight`, `--dk-component-box-title-font-size`, `--dk-component-box-title-line-height`, `--dk-component-box-title-font-weight`, `--dk-component-box-description-font-size`, `--dk-component-box-description-line-height`, `--dk-component-box-large-title-font-size`, `--dk-component-box-large-title-line-height`, `--dk-component-box-large-description-font-size`, `--dk-component-box-large-description-line-height`, `--dk-component-box-xlarge-title-font-size`, `--dk-component-box-xlarge-title-line-height`, `--dk-component-box-xlarge-description-font-size`, `--dk-component-box-xlarge-description-line-height`, `--dk-component-box-header-gap`, `--dk-component-box-xsmall-band-padding`, `--dk-component-box-small-band-padding`, `--dk-component-box-band-padding`, `--dk-component-box-large-band-padding`, `--dk-component-box-xlarge-band-padding`, `--dk-component-box-font-family`, `--dk-component-box-title-color`, `--dk-component-box-description-color`
|
|
76
|
+
`--dk-component-box-xsmall-padding`, `--dk-component-box-small-padding`, `--dk-component-box-padding`, `--dk-component-box-large-padding`, `--dk-component-box-xlarge-padding`, `--dk-component-box-radius`, `--dk-component-box-large-radius`, `--dk-component-box-xlarge-radius`, `--dk-component-box-border-width`, `--dk-component-box-pointer-depth`, `--dk-component-box-pointer-base`, `--dk-component-box-pointer-offset`, `--dk-component-box-border-color`, `--dk-component-box-raised-border-color`, `--dk-component-box-inset-border-color`, `--dk-component-box-raised-shadow`, `--dk-component-box-card-shadow`, `--dk-component-box-inset-shadow`, `--dk-component-box-column-min`, `--dk-component-box-line-color`, `--dk-component-box-line-color-neutral`, `--dk-component-box-line-width`, `--dk-component-box-focus-room`, `--dk-component-box-label-color`, `--dk-component-box-label-font-size`, `--dk-component-box-label-line-height`, `--dk-component-box-label-letter-spacing`, `--dk-component-box-label-font-weight`, `--dk-component-box-fact-gap`, `--dk-component-box-value-color`, `--dk-component-box-value-font-size`, `--dk-component-box-value-line-height`, `--dk-component-box-value-font-weight`, `--dk-component-box-title-font-size`, `--dk-component-box-title-line-height`, `--dk-component-box-title-font-weight`, `--dk-component-box-description-font-size`, `--dk-component-box-description-line-height`, `--dk-component-box-large-title-font-size`, `--dk-component-box-large-title-line-height`, `--dk-component-box-large-description-font-size`, `--dk-component-box-large-description-line-height`, `--dk-component-box-xlarge-title-font-size`, `--dk-component-box-xlarge-title-line-height`, `--dk-component-box-xlarge-description-font-size`, `--dk-component-box-xlarge-description-line-height`, `--dk-component-box-header-gap`, `--dk-component-box-xsmall-band-padding`, `--dk-component-box-small-band-padding`, `--dk-component-box-band-padding`, `--dk-component-box-large-band-padding`, `--dk-component-box-xlarge-band-padding`, `--dk-component-box-font-family`, `--dk-component-box-title-color`, `--dk-component-box-description-color`
|
|
@@ -21,6 +21,7 @@ fieldset.dk-component-choice-card-group[data-legend="visible"]?
|
|
|
21
21
|
| Attribute | Values the stylesheet styles |
|
|
22
22
|
|---|---|
|
|
23
23
|
| `data-legend` | `visible` |
|
|
24
|
+
| `data-locked` | (present or absent) |
|
|
24
25
|
| `data-show` | `checked` |
|
|
25
26
|
| `data-size` | `large`, `small` |
|
|
26
27
|
| `data-status` | `error` |
|
|
@@ -41,6 +42,7 @@ import { ChoiceCard } from '@karmo-co/drift-kit/react';
|
|
|
41
42
|
| `defaultChecked` | `boolean` | |
|
|
42
43
|
| `onChange` | `(value: string, checked: boolean) => void` | The card's value, and whether it is now checked. |
|
|
43
44
|
| `disabled` | `boolean` | |
|
|
45
|
+
| `locked` | `boolean` | Chosen and not the person's to change (a subscription's bond): the control disabled and checked, the card in full colour, nothing hovers. |
|
|
44
46
|
| `required` | `boolean` | |
|
|
45
47
|
| `size` | `'small' \| 'medium' \| 'large'` | The title and the value's type: body-sm, body-md (default), body-lg. |
|
|
46
48
|
| `tone` | `'muted'` | Static only: muted greys its words (what is due later). |
|
|
@@ -59,4 +61,4 @@ import { ChoiceCard } from '@karmo-co/drift-kit/react';
|
|
|
59
61
|
|
|
60
62
|
## Component tokens
|
|
61
63
|
|
|
62
|
-
`--dk-component-choice-card-surface`, `--dk-component-choice-card-border`, `--dk-component-choice-card-border-width`, `--dk-component-choice-card-radius`, `--dk-component-choice-card-padding`, `--dk-component-choice-card-gap`, `--dk-component-choice-card-shadow`, `--dk-component-choice-card-shadow-hover`, `--dk-component-choice-card-focus-ring-width`, `--dk-component-choice-card-focus-ring`, `--dk-component-choice-card-scale-active`, `--dk-component-choice-card-scale-hover`, `--dk-component-choice-card-duration`, `--dk-component-choice-card-easing`, `--dk-component-choice-card-surface-hover`, `--dk-component-choice-card-surface-active`, `--dk-component-choice-card-border-hover`, `--dk-component-choice-card-border-active`, `--dk-component-choice-card-checked-border`, `--dk-component-choice-card-checked-border-hover`, `--dk-component-choice-card-checked-border-active`, `--dk-component-choice-card-disabled-border`, `--dk-component-choice-card-disabled-text`, `--dk-component-choice-card-font-family`, `--dk-component-choice-card-text`, `--dk-component-choice-card-text-muted`, `--dk-component-choice-card-title-font-weight`, `--dk-component-choice-card-small-title-font-size`, `--dk-component-choice-card-small-title-line-height`, `--dk-component-choice-card-title-font-size`, `--dk-component-choice-card-title-line-height`, `--dk-component-choice-card-large-title-font-size`, `--dk-component-choice-card-large-title-line-height`, `--dk-component-choice-card-overline-font-size`, `--dk-component-choice-card-overline-line-height`, `--dk-component-choice-card-overline-letter-spacing`, `--dk-component-choice-card-overline-font-weight`, `--dk-component-choice-card-overline-color`, `--dk-component-choice-card-description-font-size`, `--dk-component-choice-card-description-line-height`, `--dk-component-choice-card-description-color`, `--dk-component-choice-card-note-font-size`, `--dk-component-choice-card-note-line-height`, `--dk-component-choice-card-note-font-weight`, `--dk-component-choice-card-note-color`, `--dk-component-choice-card-note-error-color`, `--dk-component-choice-card-body-gap`, `--dk-component-choice-card-phone-padding`, `--dk-component-choice-card-phone-action-width`, `--dk-component-choice-card-media-size`, `--dk-component-choice-card-group-gap`, `--dk-component-choice-card-row-gap`, `--dk-component-choice-card-action-width`, `--dk-component-choice-card-action-icon-size`, `--dk-component-choice-card-action-icon`, `--dk-component-choice-card-action-icon-hover`, `--dk-component-choice-card-action-icon-active`, `--dk-component-choice-card-action-border-hover`, `--dk-component-choice-card-action-border-active`, `--dk-component-choice-card-action-disabled-icon`, `--dk-component-choice-card-action-disabled-border`
|
|
64
|
+
`--dk-component-choice-card-surface`, `--dk-component-choice-card-border`, `--dk-component-choice-card-border-width`, `--dk-component-choice-card-radius`, `--dk-component-choice-card-padding`, `--dk-component-choice-card-gap`, `--dk-component-choice-card-shadow`, `--dk-component-choice-card-shadow-hover`, `--dk-component-choice-card-focus-ring-width`, `--dk-component-choice-card-focus-ring`, `--dk-component-choice-card-scale-active`, `--dk-component-choice-card-scale-hover`, `--dk-component-choice-card-duration`, `--dk-component-choice-card-easing`, `--dk-component-choice-card-surface-hover`, `--dk-component-choice-card-surface-active`, `--dk-component-choice-card-border-hover`, `--dk-component-choice-card-border-active`, `--dk-component-choice-card-checked-border`, `--dk-component-choice-card-checked-border-hover`, `--dk-component-choice-card-checked-border-active`, `--dk-component-choice-card-disabled-border`, `--dk-component-choice-card-disabled-text`, `--dk-component-choice-card-locked-control-surface`, `--dk-component-choice-card-locked-control-glyph`, `--dk-component-choice-card-font-family`, `--dk-component-choice-card-text`, `--dk-component-choice-card-text-muted`, `--dk-component-choice-card-title-font-weight`, `--dk-component-choice-card-small-title-font-size`, `--dk-component-choice-card-small-title-line-height`, `--dk-component-choice-card-title-font-size`, `--dk-component-choice-card-title-line-height`, `--dk-component-choice-card-large-title-font-size`, `--dk-component-choice-card-large-title-line-height`, `--dk-component-choice-card-overline-font-size`, `--dk-component-choice-card-overline-line-height`, `--dk-component-choice-card-overline-letter-spacing`, `--dk-component-choice-card-overline-font-weight`, `--dk-component-choice-card-overline-color`, `--dk-component-choice-card-description-font-size`, `--dk-component-choice-card-description-line-height`, `--dk-component-choice-card-description-color`, `--dk-component-choice-card-note-font-size`, `--dk-component-choice-card-note-line-height`, `--dk-component-choice-card-note-font-weight`, `--dk-component-choice-card-note-color`, `--dk-component-choice-card-note-error-color`, `--dk-component-choice-card-body-gap`, `--dk-component-choice-card-phone-padding`, `--dk-component-choice-card-phone-action-width`, `--dk-component-choice-card-media-size`, `--dk-component-choice-card-group-gap`, `--dk-component-choice-card-row-gap`, `--dk-component-choice-card-action-width`, `--dk-component-choice-card-action-icon-size`, `--dk-component-choice-card-action-icon`, `--dk-component-choice-card-action-icon-hover`, `--dk-component-choice-card-action-icon-active`, `--dk-component-choice-card-action-border-hover`, `--dk-component-choice-card-action-border-active`, `--dk-component-choice-card-action-disabled-icon`, `--dk-component-choice-card-action-disabled-border`
|
|
@@ -26,4 +26,4 @@ import { PaymentForm } from '@karmo-co/drift-kit/react';
|
|
|
26
26
|
|
|
27
27
|
## Component tokens
|
|
28
28
|
|
|
29
|
-
`--dk-component-payment-form-font-family`, `--dk-component-payment-form-font-size`, `--dk-component-payment-form-spacing-unit`, `--dk-component-payment-form-radius`, `--dk-component-payment-form-gap`, `--dk-component-payment-form-primary`, `--dk-component-payment-form-surface`, `--dk-component-payment-form-border`, `--dk-component-payment-form-border-hover`, `--dk-component-payment-form-border-focus`, `--dk-component-payment-form-border-width`, `--dk-component-payment-form-ring`, `--dk-component-payment-form-ring-width`, `--dk-component-payment-form-padding-block`, `--dk-component-payment-form-padding-inline`, `--dk-component-payment-form-text`, `--dk-component-payment-form-text-secondary`, `--dk-component-payment-form-placeholder`, `--dk-component-payment-form-danger`, `--dk-component-payment-form-icon`, `--dk-component-payment-form-label-color`, `--dk-component-payment-form-label-font-size`, `--dk-component-payment-form-label-font-weight`, `--dk-component-payment-form-label-letter-spacing`, `--dk-component-payment-form-tab-surface`, `--dk-component-payment-form-tab-surface-hover`, `--dk-component-payment-form-tab-border`, `--dk-component-payment-form-tab-selected-surface`, `--dk-component-payment-form-tab-selected-surface-hover`, `--dk-component-payment-form-tab-selected-border`, `--dk-component-payment-form-tab-selected-text`, `--dk-component-payment-form-error-font-size`, `--dk-component-payment-form-error-line-height`, `--dk-component-payment-form-element-min-height`
|
|
29
|
+
`--dk-component-payment-form-font-family`, `--dk-component-payment-form-font-size`, `--dk-component-payment-form-spacing-unit`, `--dk-component-payment-form-radius`, `--dk-component-payment-form-gap`, `--dk-component-payment-form-row-gap`, `--dk-component-payment-form-label-gap`, `--dk-component-payment-form-primary`, `--dk-component-payment-form-surface`, `--dk-component-payment-form-border`, `--dk-component-payment-form-border-hover`, `--dk-component-payment-form-border-focus`, `--dk-component-payment-form-border-width`, `--dk-component-payment-form-ring`, `--dk-component-payment-form-ring-width`, `--dk-component-payment-form-padding-block`, `--dk-component-payment-form-padding-inline`, `--dk-component-payment-form-text`, `--dk-component-payment-form-text-secondary`, `--dk-component-payment-form-placeholder`, `--dk-component-payment-form-danger`, `--dk-component-payment-form-icon`, `--dk-component-payment-form-label-color`, `--dk-component-payment-form-label-font-size`, `--dk-component-payment-form-label-font-weight`, `--dk-component-payment-form-label-letter-spacing`, `--dk-component-payment-form-tab-surface`, `--dk-component-payment-form-tab-surface-hover`, `--dk-component-payment-form-tab-border`, `--dk-component-payment-form-tab-selected-surface`, `--dk-component-payment-form-tab-selected-surface-hover`, `--dk-component-payment-form-tab-selected-border`, `--dk-component-payment-form-tab-selected-text`, `--dk-component-payment-form-terms-color`, `--dk-component-payment-form-error-font-size`, `--dk-component-payment-form-error-line-height`, `--dk-component-payment-form-element-min-height`
|
|
@@ -19,7 +19,7 @@ Where someone is in a process with a known number of steps, and what is left.
|
|
|
19
19
|
|
|
20
20
|
| Attribute | Values the stylesheet styles |
|
|
21
21
|
|---|---|
|
|
22
|
-
| `data-arriving` |
|
|
22
|
+
| `data-arriving` | `back` |
|
|
23
23
|
| `data-error` | (present or absent) |
|
|
24
24
|
| `data-labels` | `hidden` |
|
|
25
25
|
| `data-narrow` | (present or absent) |
|
package/manifest/index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"version": "25.
|
|
4
|
-
"built": "2026-11-
|
|
3
|
+
"version": "25.17.0",
|
|
4
|
+
"built": "2026-11-17",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"id": "accordion",
|
|
@@ -1969,6 +1969,26 @@
|
|
|
1969
1969
|
"components": [],
|
|
1970
1970
|
"tokens": []
|
|
1971
1971
|
}
|
|
1972
|
+
},
|
|
1973
|
+
"25.16.0": {
|
|
1974
|
+
"added": {
|
|
1975
|
+
"components": [],
|
|
1976
|
+
"tokens": []
|
|
1977
|
+
},
|
|
1978
|
+
"removed": {
|
|
1979
|
+
"components": [],
|
|
1980
|
+
"tokens": []
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
"25.17.0": {
|
|
1984
|
+
"added": {
|
|
1985
|
+
"components": [],
|
|
1986
|
+
"tokens": []
|
|
1987
|
+
},
|
|
1988
|
+
"removed": {
|
|
1989
|
+
"components": [],
|
|
1990
|
+
"tokens": []
|
|
1991
|
+
}
|
|
1972
1992
|
}
|
|
1973
1993
|
}
|
|
1974
1994
|
}
|
package/manifest/rules.md
CHANGED
|
@@ -36,3 +36,68 @@ Every rule below is a test in drift-kit. A component the kit ships passes all of
|
|
|
36
36
|
|
|
37
37
|
- every component stylesheet opens with an Anatomy block rooted at its own class
|
|
38
38
|
- every component stylesheet says what the component is for, in a Purpose line
|
|
39
|
+
|
|
40
|
+
## border-geometry
|
|
41
|
+
|
|
42
|
+
- no component subtracts a border width from a size (allow-list carries the reasons)
|
|
43
|
+
- every allow-list entry still exists and has a reason
|
|
44
|
+
- the guard catches the class: a thumb sized from what a border leaves
|
|
45
|
+
- a thicker border tier grows the parts outward: the inner geometry is the same at thin and bold
|
|
46
|
+
- a rail too short for its rows scrolls them, and at the end the last row keeps thin's space above the divider
|
|
47
|
+
- the collapsed rail centres its glyph and the current row's fill covers it at bold
|
|
48
|
+
|
|
49
|
+
## hover-gate
|
|
50
|
+
|
|
51
|
+
- a plain hover rule is wrapped in @media (hover: hover)
|
|
52
|
+
- a list mixing hover with the forced state or focus is split; the rest stays outside
|
|
53
|
+
- :is() and :where() alternatives that mix hover with others are split
|
|
54
|
+
- hover only in :not(), the :is(:hover, *) specificity idiom, and rules already gated are left alone
|
|
55
|
+
- comments before a rule are kept, and a hover rule inside another @media nests
|
|
56
|
+
- the built bundle has no ungated hover rule
|
|
57
|
+
|
|
58
|
+
## control-heights
|
|
59
|
+
|
|
60
|
+
- one height at
|
|
61
|
+
- Glider labels read at Button's size at
|
|
62
|
+
|
|
63
|
+
## collection-scoping
|
|
64
|
+
|
|
65
|
+
- every component collection is scoped to its own component
|
|
66
|
+
- no collection carries the four legs any more
|
|
67
|
+
- no collection is declared on :root
|
|
68
|
+
- the collections that need extra roots still name them
|
|
69
|
+
|
|
70
|
+
## popup-contract
|
|
71
|
+
|
|
72
|
+
- every behaviour that opens a popup is in the contract
|
|
73
|
+
|
|
74
|
+
## hairline
|
|
75
|
+
|
|
76
|
+
- the hairline ramp: a rung up in light, the old values in dark
|
|
77
|
+
- hairline-current reads its own ramp at every level
|
|
78
|
+
- the raised chrome border does not move
|
|
79
|
+
|
|
80
|
+
## field-palette
|
|
81
|
+
|
|
82
|
+
- every field token is declared in both themes
|
|
83
|
+
- level 0 is written as primitives, never as a public token
|
|
84
|
+
- the ten level-dependent tokens step at levels 1 and 2
|
|
85
|
+
- no status tone declares a field token anywhere in the kit
|
|
86
|
+
- the field-shaped components paint from the palette
|
|
87
|
+
- the build mirrors the palette for inverse
|
|
88
|
+
|
|
89
|
+
## box-focus-ring
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## interactive-selected-content
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## Known exceptions
|
|
96
|
+
|
|
97
|
+
Each of these reads below the usual contrast line by decision. Do not report it as a finding or change it.
|
|
98
|
+
|
|
99
|
+
- **The selected Tabs label, glyph and bar in the brand's primary mid tone (about 2.8 to 1 on white).** A branding decision, made knowing the ratio. Decided 12 Oct 2026, by the kit's owner.
|
|
100
|
+
- **The Sidebar's current row filled with the brand's primary mid tone under white contents (2.82 to 1).** A branding decision, made knowing the ratio; the brand teal under white is a palette fact. Decided 12 Oct 2026, by the kit's owner.
|
|
101
|
+
- **A link at rest in light one step under the darker primary (4.25 to 1 on white).** The darker step clears AA and was judged too dark for links. Decided 29 Sep 2026, by the kit's owner.
|
|
102
|
+
- **A field's placeholder below AA on a light page at the page level.** The only colour clearing AA everywhere makes a placeholder read as a value. Decided with the Input rebuild.
|
|
103
|
+
- **A Switch track at rest a little under the graphical-object line (about 2.9 to 1 light, 2.8 to 1 dark).** The thumb's shadow carries the control; the steps that clear the floor read too heavy at rest. Decided with the Switch's choice palette.
|
package/manifest/setup.md
CHANGED
|
@@ -69,47 +69,47 @@ Both scripts are deferred, and an icon script goes after `components.js`, which
|
|
|
69
69
|
|
|
70
70
|
```html
|
|
71
71
|
<!-- in the head -->
|
|
72
|
-
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.
|
|
73
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.
|
|
74
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.
|
|
72
|
+
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.17.0/drift-kit.css" integrity="sha384-G3KnbT9QpOa199wVcdHH6Kc6Seq3ihL4UODs+BGZOXl2Yy4qLNBcpf7MAdUfOzO9" crossorigin="anonymous" />
|
|
73
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.17.0/components.js" integrity="sha384-DGmN+lP1vl87xvMMYnzWy6258B8ODt2eYJEpJY7OVnQKg8chgSjy2SS56ujK/uib" crossorigin="anonymous" defer></script>
|
|
74
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.17.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
|
|
75
75
|
<!-- the attributes go on the body -->
|
|
76
76
|
<body data-brand="karmo" data-theme="light">
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
| File | Address | Integrity |
|
|
80
80
|
|---|---|---|
|
|
81
|
-
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
82
|
-
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
83
|
-
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
84
|
-
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
85
|
-
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
86
|
-
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
87
|
-
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
88
|
-
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
89
|
-
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
90
|
-
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
81
|
+
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.17.0/drift-kit.css` | `sha384-G3KnbT9QpOa199wVcdHH6Kc6Seq3ihL4UODs+BGZOXl2Yy4qLNBcpf7MAdUfOzO9` |
|
|
82
|
+
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.17.0/drift-kit.min.css` | `sha384-zI1LeBYPoq7JJkx165T2JkH9LzAHYD7+M9jgcploI1iC4wcV+NF6UU8iKPjlFC8B` |
|
|
83
|
+
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.17.0/components.js` | `sha384-DGmN+lP1vl87xvMMYnzWy6258B8ODt2eYJEpJY7OVnQKg8chgSjy2SS56ujK/uib` |
|
|
84
|
+
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.17.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
85
|
+
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.17.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
86
|
+
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.17.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
87
|
+
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.17.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
88
|
+
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.17.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
89
|
+
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.17.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
90
|
+
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.17.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
91
91
|
|
|
92
92
|
### In Claude chat and Cowork
|
|
93
93
|
|
|
94
94
|
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>`.
|
|
95
95
|
|
|
96
96
|
```html
|
|
97
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
98
|
-
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
97
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/drift-kit.min.css" integrity="sha384-zI1LeBYPoq7JJkx165T2JkH9LzAHYD7+M9jgcploI1iC4wcV+NF6UU8iKPjlFC8B" crossorigin="anonymous" />
|
|
98
|
+
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/components.js" integrity="sha384-FT5CYlGdaFvA3S6P7q4JtTX/5awubxQoWo0oF9HOPdBIpZ3viHXOnySoIZdLSROU" crossorigin="anonymous" defer></script>
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
| File | Address | Integrity |
|
|
102
102
|
|---|---|---|
|
|
103
|
-
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
104
|
-
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
105
|
-
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
106
|
-
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
107
|
-
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
108
|
-
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
109
|
-
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
110
|
-
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
111
|
-
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
112
|
-
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
103
|
+
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/components.js` | `sha384-FT5CYlGdaFvA3S6P7q4JtTX/5awubxQoWo0oF9HOPdBIpZ3viHXOnySoIZdLSROU` |
|
|
104
|
+
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
|
|
105
|
+
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
106
|
+
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
107
|
+
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
108
|
+
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
109
|
+
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
110
|
+
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
111
|
+
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
112
|
+
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.17.0/drift-kit.min.css` | `sha384-zI1LeBYPoq7JJkx165T2JkH9LzAHYD7+M9jgcploI1iC4wcV+NF6UU8iKPjlFC8B` |
|
|
113
113
|
|
|
114
114
|
### Integrity for 23.4.0
|
|
115
115
|
|
|
@@ -141,5 +141,5 @@ The behaviour script initialises every component on the page when it loads. Mark
|
|
|
141
141
|
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.
|
|
142
142
|
|
|
143
143
|
```json
|
|
144
|
-
{"version":"25.
|
|
144
|
+
{"version":"25.17.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","icon":".dk-component-icon","card":".dk-component-card","symmetric":[".dk-component-tag",".dk-component-alert"]}
|
|
145
145
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmo-co/drift-kit-reference",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.17.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"
|