@karmo-co/drift-kit-reference 24.5.0 → 25.1.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.
@@ -16,7 +16,7 @@ div.dk-component-brand-sheet[data-layout="stacked|split|card|auto"]?[data-size="
16
16
 
17
17
  | Attribute | Values the stylesheet styles |
18
18
  |---|---|
19
- | `data-layout` | `auto`, `card`, `split` |
19
+ | `data-layout` | `auto`, `card`, `split`, `stacked` |
20
20
  | `data-size` | `small` |
21
21
 
22
22
  ## React
@@ -34,4 +34,4 @@ import { BrandSheet } from '@karmo-co/drift-kit/react';
34
34
 
35
35
  ## Component tokens
36
36
 
37
- `--dk-component-brand-sheet-panel-padding-block-start`, `--dk-component-brand-sheet-panel-padding-inline`, `--dk-component-brand-sheet-panel-padding-block-end`, `--dk-component-brand-sheet-panel-gap`, `--dk-component-brand-sheet-sheet-padding-block-start`, `--dk-component-brand-sheet-sheet-padding-inline`, `--dk-component-brand-sheet-sheet-padding-block-end`, `--dk-component-brand-sheet-sheet-gap`, `--dk-component-brand-sheet-radius`, `--dk-component-brand-sheet-rise`, `--dk-component-brand-sheet-column`, `--dk-component-brand-sheet-split-padding`, `--dk-component-brand-sheet-split-panel-gap`, `--dk-component-brand-sheet-split-sheet-gap`, `--dk-component-brand-sheet-overlap`, `--dk-component-brand-sheet-card-radius`, `--dk-component-brand-sheet-card-gap`, `--dk-component-brand-sheet-lift`, `--dk-component-brand-sheet-lift-inset`, `--dk-component-brand-sheet-fade-stop`, `--dk-component-brand-sheet-cast-reach`, `--dk-component-brand-sheet-cast-far`, `--dk-component-brand-sheet-cast-near`, `--dk-component-brand-sheet-cast-near-offset`, `--dk-component-brand-sheet-cast-near-blur`, `--dk-component-brand-sheet-cast-side-offset`, `--dk-component-brand-sheet-cast-side-blur`, `--dk-component-brand-sheet-cast-side-near-offset`, `--dk-component-brand-sheet-cast-side-near-blur`, `--dk-component-brand-sheet-cast-side-far`, `--dk-component-brand-sheet-cast-side-near`, `--dk-component-brand-sheet-cast-up-offset`, `--dk-component-brand-sheet-cast-up-blur`, `--dk-component-brand-sheet-fade`, `--dk-component-brand-sheet-split-fill`
37
+ `--dk-component-brand-sheet-panel-padding-block-start`, `--dk-component-brand-sheet-panel-padding-inline`, `--dk-component-brand-sheet-panel-padding-block-end`, `--dk-component-brand-sheet-panel-gap`, `--dk-component-brand-sheet-sheet-padding-block-start`, `--dk-component-brand-sheet-sheet-padding-inline`, `--dk-component-brand-sheet-sheet-padding-block-end`, `--dk-component-brand-sheet-sheet-gap`, `--dk-component-brand-sheet-radius`, `--dk-component-brand-sheet-rise`, `--dk-component-brand-sheet-column`, `--dk-component-brand-sheet-split-padding`, `--dk-component-brand-sheet-split-panel-gap`, `--dk-component-brand-sheet-split-sheet-gap`, `--dk-component-brand-sheet-overlap`, `--dk-component-brand-sheet-card-radius`, `--dk-component-brand-sheet-card-gap`, `--dk-component-brand-sheet-lift`, `--dk-component-brand-sheet-lift-inset`, `--dk-component-brand-sheet-fade-stop`, `--dk-component-brand-sheet-cast-reach`, `--dk-component-brand-sheet-panel-surface`, `--dk-component-brand-sheet-split-panel-share`, `--dk-component-brand-sheet-cast-far`, `--dk-component-brand-sheet-cast-near`, `--dk-component-brand-sheet-cast-near-offset`, `--dk-component-brand-sheet-cast-near-blur`, `--dk-component-brand-sheet-cast-side-offset`, `--dk-component-brand-sheet-cast-side-blur`, `--dk-component-brand-sheet-cast-side-near-offset`, `--dk-component-brand-sheet-cast-side-near-blur`, `--dk-component-brand-sheet-cast-side-far`, `--dk-component-brand-sheet-cast-side-near`, `--dk-component-brand-sheet-cast-up-offset`, `--dk-component-brand-sheet-cast-up-blur`, `--dk-component-brand-sheet-fade`, `--dk-component-brand-sheet-split-fill`
@@ -10,7 +10,8 @@ div.dk-component-carousel[data-presentation="slider|row"]?[data-loop]?[data-star
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
13
- centre stays level as the item shrinks; data-bleed runs the track out
13
+ centre stays level as the item shrinks, e.g.
14
+ data-lift=".dk-component-vehicle" for a row of Vehicle cards; data-bleed runs the track out
14
15
  to the nearest scrolling ancestor's edges, else the viewport's, and
15
16
  data-bleed="<selector>" to root.closest(selector)'s, e.g. the page's
16
17
  body beside a rail when the document scrolls)
@@ -51,7 +52,7 @@ import { Carousel } from '@karmo-co/drift-kit/react';
51
52
  | `loop` | `boolean` | The slider loops round (three items or more): React renders two clones a side, the runtime teleports between them at rest. A row never loops. |
52
53
  | `start` | `number` | The real item the slider opens on (0-based; clones never count). |
53
54
  | `bleed` | `boolean \| string` | The track runs out to the page's edges: true, the nearest scrolling ancestor (else the viewport); a selector, root.closest(selector). |
54
- | `lift` | `string` | A selector inside each item whose centre stays level as an item shrinks (the image of a card). |
55
+ | `lift` | `string` | A selector inside each item whose centre stays level as an item shrinks (the image of a card), e.g. lift=".dk-component-vehicle" for a row of Vehicle cards. |
55
56
  | `device` | `'phone' \| 'tablet' \| 'desktop'` | phone and tablet a slider, desktop a row; else the nearest data-device, else the kit's phone breakpoint. |
56
57
  | `arrows` | `{ prev: ReactNode; next: ReactNode; label?: { prev: string; next: string } }` | Previous and Next, for the row (the slider hides them). |
57
58
  | `arrowLook` | `'solid' \| 'raised-inverse'` | solid is the primary fill; raised-inverse the raised IconButton in a light island. Unset: solid in light, raised-inverse in dark (the nearest data-theme, followed as it changes). |
@@ -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]?[data-label-size="small"]?
9
+ div.dk-component-code-input[data-cells="4..8"][data-size="small|large"]?[data-mask]?[data-label-size="small"]?[data-width="cells"]?
10
10
  label.__label
11
11
  div.__field
12
12
  input.__control (one real input)
@@ -19,6 +19,7 @@ div.dk-component-code-input[data-cells="4..8"][data-size="small|large"]?[data-ma
19
19
  | Attribute | Values the stylesheet styles |
20
20
  |---|---|
21
21
  | `data-active` | (present or absent) |
22
+ | `data-cells` | `1`, `10`, `11`, `12`, `2`, `3`, `4`, `5`, `7`, `8`, `9` |
22
23
  | `data-filled` | (present or absent) |
23
24
  | `data-group-end` | (present or absent) |
24
25
  | `data-label-size` | `small` |
@@ -26,6 +27,7 @@ div.dk-component-code-input[data-cells="4..8"][data-size="small|large"]?[data-ma
26
27
  | `data-placeholder` | (present or absent) |
27
28
  | `data-ready` | (present or absent) |
28
29
  | `data-size` | `large`, `small` |
30
+ | `data-width` | `cells` |
29
31
 
30
32
  ## React
31
33
 
@@ -38,6 +40,7 @@ import { CodeInput } from '@karmo-co/drift-kit/react';
38
40
  | `label` | `ReactNode` | |
39
41
  | `labelSize` | `'small' \| 'medium'` | 'small' sets the label a rung smaller, as on Input. |
40
42
  | `size` | `'small' \| 'medium' \| 'large'` | |
43
+ | `width` | `'cells'` | 'cells' makes the field no wider than its cells' row (capped at its column) rather than the column's full width. The row's width for six cells is --dk-component-code-input-cells-width-<size>, on the page's brand and density scopes, for a sibling to match. |
41
44
  | `caption` | `ReactNode` | |
42
45
  | `error` | `ReactNode` | The message AND the invalid state, as on Input: one prop so the red boxes, the words and aria-invalid cannot disagree. |
43
46
  | `required` | `boolean` | |
@@ -55,4 +58,4 @@ import { CodeInput } from '@karmo-co/drift-kit/react';
55
58
 
56
59
  ## Component tokens
57
60
 
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`
61
+ `--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-cells`, `--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`, `--dk-component-code-input-cells-width-small`, `--dk-component-code-input-cells-width-medium`, `--dk-component-code-input-cells-width-large`
@@ -6,7 +6,7 @@ One value from a few options side by side, or several: a raised frame with a pri
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- div.dk-component-glider[data-variant="raised|plain|inset|ghost"]?[data-multiple]?[role="radiogroup"]
9
+ div.dk-component-glider[data-variant="raised|plain|inset|ghost"]?[data-multiple]?[data-overflow="scroll"]?[role="radiogroup"]
10
10
  button.__option[data-value][aria-checked]
11
11
  span.__icon?
12
12
  span.__label
@@ -20,6 +20,7 @@ div.dk-component-glider[data-variant="raised|plain|inset|ghost"]?[data-multiple]
20
20
  | `data-direction` | `back`, `forward` |
21
21
  | `data-full-width` | (present or absent) |
22
22
  | `data-multiple` | (present or absent) |
23
+ | `data-overflow` | `scroll` |
23
24
  | `data-size` | `large`, `small` |
24
25
  | `data-tone` | `error`, `information`, `primary`, `success`, `warning` |
25
26
  | `data-variant` | `ghost`, `inset`, `plain` |
@@ -6,7 +6,7 @@ A way to go somewhere. Inline, it is the sentence it sits in; standalone, it has
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- a.dk-component-link[data-variant][data-standalone][data-size][data-show-visited]
9
+ (a|button).dk-component-link[data-variant][data-standalone][data-size][data-show-visited]
10
10
  span.dk-component-link__icon (standalone only, aria-hidden)
11
11
  the text
12
12
  span.dk-component-link__icon[data-trailing]
@@ -6,8 +6,11 @@ The brand mark, as a symbol or with its wordmark, in three colourways.
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- span.dk-component-logo[data-brand]?[data-lockup="symbol|symbol-text"]?[data-mode="reverse"]?[data-size]?[role="img"][aria-label]
10
- (the vectors are drawn by the runtime)
9
+ span.dk-component-logo[data-brand="karmo|mykarmo"]?[data-lockup="symbol|symbol-text"]?[data-mode="reverse"]?[data-size]?[role="img"][aria-label]
10
+ (the vectors are drawn by the runtime; data-brand on the logo itself
11
+ picks the mark without changing the page's brand, else the nearest
12
+ data-brand's mark is drawn, Karmo's when there is none; React's brand
13
+ prop is the same choice)
11
14
  ```
12
15
 
13
16
  ## Attributes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "24.5.0",
4
- "built": "2026-11-07",
3
+ "version": "25.1.0",
4
+ "built": "2026-11-08",
5
5
  "components": [
6
6
  {
7
7
  "id": "accordion",
@@ -340,6 +340,10 @@
340
340
  }
341
341
  ],
342
342
  "migrations": [
343
+ {
344
+ "major": "25.0.0",
345
+ "title": "25.0.0 - 2026-11-08"
346
+ },
343
347
  {
344
348
  "major": "24.0.0",
345
349
  "title": "24.0.0 - 2026-11-05"
@@ -1678,6 +1682,56 @@
1678
1682
  "components": [],
1679
1683
  "tokens": []
1680
1684
  }
1685
+ },
1686
+ "25.0.0": {
1687
+ "added": {
1688
+ "components": [],
1689
+ "tokens": [
1690
+ "--dk-spacing-fixed-0-25",
1691
+ "--dk-spacing-fixed-0-5",
1692
+ "--dk-spacing-fixed-1",
1693
+ "--dk-spacing-fixed-1-5",
1694
+ "--dk-spacing-fixed-10",
1695
+ "--dk-spacing-fixed-11",
1696
+ "--dk-spacing-fixed-12",
1697
+ "--dk-spacing-fixed-14",
1698
+ "--dk-spacing-fixed-16",
1699
+ "--dk-spacing-fixed-2",
1700
+ "--dk-spacing-fixed-2-5",
1701
+ "--dk-spacing-fixed-20",
1702
+ "--dk-spacing-fixed-24",
1703
+ "--dk-spacing-fixed-28",
1704
+ "--dk-spacing-fixed-3",
1705
+ "--dk-spacing-fixed-3-5",
1706
+ "--dk-spacing-fixed-32",
1707
+ "--dk-spacing-fixed-4",
1708
+ "--dk-spacing-fixed-4-5",
1709
+ "--dk-spacing-fixed-40",
1710
+ "--dk-spacing-fixed-48",
1711
+ "--dk-spacing-fixed-5",
1712
+ "--dk-spacing-fixed-5-5",
1713
+ "--dk-spacing-fixed-56",
1714
+ "--dk-spacing-fixed-6",
1715
+ "--dk-spacing-fixed-64",
1716
+ "--dk-spacing-fixed-7",
1717
+ "--dk-spacing-fixed-8",
1718
+ "--dk-spacing-fixed-9"
1719
+ ]
1720
+ },
1721
+ "removed": {
1722
+ "components": [],
1723
+ "tokens": []
1724
+ }
1725
+ },
1726
+ "25.1.0": {
1727
+ "added": {
1728
+ "components": [],
1729
+ "tokens": []
1730
+ },
1731
+ "removed": {
1732
+ "components": [],
1733
+ "tokens": []
1734
+ }
1681
1735
  }
1682
1736
  }
1683
1737
  }
@@ -0,0 +1,15 @@
1
+ ## 25.0.0 - 2026-11-08
2
+
3
+ ### Migration
4
+
5
+ | Was | Now |
6
+ |---|---|
7
+ | `data-coolicon="bell-add"`, `bell-close`, `bell-remove`, `checkbox-fill`, `timer-add`, `timer-close`, `timer-remove` | Gone: coolicons 5 has no equivalent. Use `bell`, `bell-dot`, `checkbox-checked` or `timer`, or a Lucide icon |
8
+ | `data-coolicon="forward"` (two triangles) | `fast-forward`; `forward` is now a curved arrow |
9
+ | `data-coolicon="info"` (i in a circle) | `circle-info`; `info` is now the bare i |
10
+ | `chevron-up`, `chevron-down`, `chevron-left`, `chevron-right` at their old size | `chevron-*-large`; the plain names are now the smaller chevron |
11
+ | `volume-off` (speaker and a cross) | `volume-close`; `volume-off` is now the slashed speaker |
12
+
13
+ Every other coolicons 4 name still renders: 225 kept their name, and the other
14
+ 218 resolve to their coolicons 5 successor (below).
15
+
package/manifest/setup.md CHANGED
@@ -59,47 +59,47 @@ Both scripts are deferred, and an icon script goes after `components.js`, which
59
59
 
60
60
  ```html
61
61
  <!-- in the head -->
62
- <link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/24.5.0/drift-kit.css" integrity="sha384-saYjiMYJ0coftEljNzP0VE0l1TSApzvD1VAa9XfpIqNhIxaCRCZn53paXKua5xDa" crossorigin="anonymous" />
63
- <script src="https://storage.googleapis.com/drift-kit-public/24.5.0/components.js" integrity="sha384-+kNnEjMQlkcKGLU4r0VBVmCEAiMVq/oBea0+t3z24pMwzmoydtHSY8r0bb0yFlTY" crossorigin="anonymous" defer></script>
64
- <script src="https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
62
+ <link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.1.0/drift-kit.css" integrity="sha384-VZAmKJfwCYo+GfPR/ldXPbSxJkf3wTIr2pXia1KW+5aDkcsxFEwMCCIcuxTprtb7" crossorigin="anonymous" />
63
+ <script src="https://storage.googleapis.com/drift-kit-public/25.1.0/components.js" integrity="sha384-y7gGfgFS4QJv4YlyfAX3GHWejaZP49NY4jOtDpnQxhLMB4pON/25tSvoCdBxtur+" crossorigin="anonymous" defer></script>
64
+ <script src="https://storage.googleapis.com/drift-kit-public/25.1.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
65
65
  <!-- the attributes go on the body -->
66
66
  <body data-brand="karmo" data-theme="light">
67
67
  ```
68
68
 
69
69
  | File | Address | Integrity |
70
70
  |---|---|---|
71
- | `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-kit.css` | `sha384-saYjiMYJ0coftEljNzP0VE0l1TSApzvD1VAa9XfpIqNhIxaCRCZn53paXKua5xDa` |
72
- | `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-kit.min.css` | `sha384-dfzk6M0lER7pqNTJj4h7C3FuWwSsFKG55ooQPVF0p6u7IpcL1dvAnI1nnGiIN0dz` |
73
- | `components.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/components.js` | `sha384-+kNnEjMQlkcKGLU4r0VBVmCEAiMVq/oBea0+t3z24pMwzmoydtHSY8r0bb0yFlTY` |
74
- | `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
75
- | `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-coolicon.js` | `sha384-8WaBw9LZuhj/u7G2Jf1aiVo8HBhMj1fBsmpSWJnYi5Xdi2ANXB3BLBZxz2NLQGYl` |
76
- | `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
77
- | `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
78
- | `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
79
- | `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
80
- | `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/24.5.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
71
+ | `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.1.0/drift-kit.css` | `sha384-VZAmKJfwCYo+GfPR/ldXPbSxJkf3wTIr2pXia1KW+5aDkcsxFEwMCCIcuxTprtb7` |
72
+ | `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.1.0/drift-kit.min.css` | `sha384-gRjVST3jt04oFrg4B9eo0m2BqGxsmT41Sx89VSgv0TpYGgDZ+vPYXu//hwqC64D+` |
73
+ | `components.js` | `https://storage.googleapis.com/drift-kit-public/25.1.0/components.js` | `sha384-y7gGfgFS4QJv4YlyfAX3GHWejaZP49NY4jOtDpnQxhLMB4pON/25tSvoCdBxtur+` |
74
+ | `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.1.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
75
+ | `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.1.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
76
+ | `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.1.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
77
+ | `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.1.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
78
+ | `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.1.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
79
+ | `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.1.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
80
+ | `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.1.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
81
81
 
82
82
  ### In Claude chat and Cowork
83
83
 
84
84
  Their previews load nothing from the bucket. There, link the same version from jsdelivr instead, with these addresses and integrity: the stylesheet is `drift-kit.min.css`, and the attributes still go on `<body>`.
85
85
 
86
86
  ```html
87
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-kit.min.css" integrity="sha384-dfzk6M0lER7pqNTJj4h7C3FuWwSsFKG55ooQPVF0p6u7IpcL1dvAnI1nnGiIN0dz" crossorigin="anonymous" />
88
- <script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/components.js" integrity="sha384-jpY+JyMiqi1X1Ch30cE84iODtKeBGS5Mu2L75kaM89XqyGEh6ryov1K9ZHMaoUhk" crossorigin="anonymous" defer></script>
87
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.1.0/drift-kit.min.css" integrity="sha384-gRjVST3jt04oFrg4B9eo0m2BqGxsmT41Sx89VSgv0TpYGgDZ+vPYXu//hwqC64D+" crossorigin="anonymous" />
88
+ <script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.1.0/components.js" integrity="sha384-iOR9Ax8RWTiGRPsZ6zL0z/Zu959NuxuzIDiS/w8YylVw7EKil2sERcPKpL6JMqai" crossorigin="anonymous" defer></script>
89
89
  ```
90
90
 
91
91
  | File | Address | Integrity |
92
92
  |---|---|---|
93
- | `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/components.js` | `sha384-jpY+JyMiqi1X1Ch30cE84iODtKeBGS5Mu2L75kaM89XqyGEh6ryov1K9ZHMaoUhk` |
94
- | `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
95
- | `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
96
- | `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-coolicon.js` | `sha384-8WaBw9LZuhj/u7G2Jf1aiVo8HBhMj1fBsmpSWJnYi5Xdi2ANXB3BLBZxz2NLQGYl` |
97
- | `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
98
- | `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
99
- | `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
100
- | `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
101
- | `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
102
- | `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@24.5.0/drift-kit.min.css` | `sha384-dfzk6M0lER7pqNTJj4h7C3FuWwSsFKG55ooQPVF0p6u7IpcL1dvAnI1nnGiIN0dz` |
93
+ | `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.1.0/components.js` | `sha384-iOR9Ax8RWTiGRPsZ6zL0z/Zu959NuxuzIDiS/w8YylVw7EKil2sERcPKpL6JMqai` |
94
+ | `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.1.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
95
+ | `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.1.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
96
+ | `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.1.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
97
+ | `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.1.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@25.1.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@25.1.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
100
+ | `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.1.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
101
+ | `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.1.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@25.1.0/drift-kit.min.css` | `sha384-gRjVST3jt04oFrg4B9eo0m2BqGxsmT41Sx89VSgv0TpYGgDZ+vPYXu//hwqC64D+` |
103
103
 
104
104
  ### Integrity for 23.4.0
105
105
 
@@ -122,10 +122,14 @@ A page pinned to 23.4.0 keeps its version in each address and takes the integrit
122
122
 
123
123
  The behaviour script initialises every component on the page when it loads. Markup inserted later is initialised with `dk.component.<name>.init(scope)`, where `<name>` is the component id in camel case (`actionBar` for `action-bar`) and `scope` is the inserted element. React components carry their own behaviour and never need it.
124
124
 
125
+ ## Theme from the address
126
+
127
+ `data-theme-from="url"` on `<body>` makes the behaviour script read `?theme=light` or `?theme=dark` from the address and write it as the body's `data-theme` when the page loads; any other value, or none, leaves the page's own theme. A `[data-theme-toggle]` element flips the nearest `[data-theme-from]` element between the two on click, and `dk.theme.set(el, 'light' | 'dark')` sets one from script.
128
+
125
129
  ## Capture selectors
126
130
 
127
131
  The kit class names the drift-critique capture script keys on, at this version. Pass them to it as `--kit '<this JSON>'` so its alignment and reduced-motion checks read this version's names.
128
132
 
129
133
  ```json
130
- {"version":"24.5.0","field":".dk-component-input__field","trigger":".dk-component-select__trigger","button":".dk-component-button","iconButton":".dk-component-icon-button","spinners":[".dk-component-loading-spinner",".dk-component-button__spinner"],"componentPrefix":"dk-component-","fieldRoot":"dk-component-input"}
134
+ {"version":"25.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"}
131
135
  ```
@@ -33,3 +33,32 @@ Declared values, light and dark. Reference a token by name; never copy its value
33
33
  | `--dk-spacing-48` | `var(--dk-dynamic-spacing-48)` | `var(--dk-dynamic-spacing-48)` |
34
34
  | `--dk-spacing-56` | `var(--dk-dynamic-spacing-56)` | `var(--dk-dynamic-spacing-56)` |
35
35
  | `--dk-spacing-64` | `var(--dk-dynamic-spacing-64)` | `var(--dk-dynamic-spacing-64)` |
36
+ | `--dk-spacing-fixed-0-5` | `var(--dk-primitive-scale-0-5)` | `var(--dk-primitive-scale-0-5)` |
37
+ | `--dk-spacing-fixed-0-25` | `var(--dk-primitive-scale-0-25)` | `var(--dk-primitive-scale-0-25)` |
38
+ | `--dk-spacing-fixed-1` | `var(--dk-primitive-scale-1)` | `var(--dk-primitive-scale-1)` |
39
+ | `--dk-spacing-fixed-1-5` | `var(--dk-primitive-scale-1-5)` | `var(--dk-primitive-scale-1-5)` |
40
+ | `--dk-spacing-fixed-2` | `var(--dk-primitive-scale-2)` | `var(--dk-primitive-scale-2)` |
41
+ | `--dk-spacing-fixed-2-5` | `var(--dk-primitive-scale-2-5)` | `var(--dk-primitive-scale-2-5)` |
42
+ | `--dk-spacing-fixed-3` | `var(--dk-primitive-scale-3)` | `var(--dk-primitive-scale-3)` |
43
+ | `--dk-spacing-fixed-3-5` | `var(--dk-primitive-scale-3-5)` | `var(--dk-primitive-scale-3-5)` |
44
+ | `--dk-spacing-fixed-4` | `var(--dk-primitive-scale-4)` | `var(--dk-primitive-scale-4)` |
45
+ | `--dk-spacing-fixed-4-5` | `var(--dk-primitive-scale-4-5)` | `var(--dk-primitive-scale-4-5)` |
46
+ | `--dk-spacing-fixed-5` | `var(--dk-primitive-scale-5)` | `var(--dk-primitive-scale-5)` |
47
+ | `--dk-spacing-fixed-5-5` | `var(--dk-primitive-scale-5-5)` | `var(--dk-primitive-scale-5-5)` |
48
+ | `--dk-spacing-fixed-6` | `var(--dk-primitive-scale-6)` | `var(--dk-primitive-scale-6)` |
49
+ | `--dk-spacing-fixed-7` | `var(--dk-primitive-scale-7)` | `var(--dk-primitive-scale-7)` |
50
+ | `--dk-spacing-fixed-8` | `var(--dk-primitive-scale-8)` | `var(--dk-primitive-scale-8)` |
51
+ | `--dk-spacing-fixed-9` | `var(--dk-primitive-scale-9)` | `var(--dk-primitive-scale-9)` |
52
+ | `--dk-spacing-fixed-10` | `var(--dk-primitive-scale-10)` | `var(--dk-primitive-scale-10)` |
53
+ | `--dk-spacing-fixed-11` | `var(--dk-primitive-scale-11)` | `var(--dk-primitive-scale-11)` |
54
+ | `--dk-spacing-fixed-12` | `var(--dk-primitive-scale-12)` | `var(--dk-primitive-scale-12)` |
55
+ | `--dk-spacing-fixed-14` | `var(--dk-primitive-scale-14)` | `var(--dk-primitive-scale-14)` |
56
+ | `--dk-spacing-fixed-16` | `var(--dk-primitive-scale-16)` | `var(--dk-primitive-scale-16)` |
57
+ | `--dk-spacing-fixed-20` | `var(--dk-primitive-scale-20)` | `var(--dk-primitive-scale-20)` |
58
+ | `--dk-spacing-fixed-24` | `var(--dk-primitive-scale-24)` | `var(--dk-primitive-scale-24)` |
59
+ | `--dk-spacing-fixed-28` | `var(--dk-primitive-scale-28)` | `var(--dk-primitive-scale-28)` |
60
+ | `--dk-spacing-fixed-32` | `var(--dk-primitive-scale-32)` | `var(--dk-primitive-scale-32)` |
61
+ | `--dk-spacing-fixed-40` | `var(--dk-primitive-scale-40)` | `var(--dk-primitive-scale-40)` |
62
+ | `--dk-spacing-fixed-48` | `var(--dk-primitive-scale-48)` | `var(--dk-primitive-scale-48)` |
63
+ | `--dk-spacing-fixed-56` | `var(--dk-primitive-scale-56)` | `var(--dk-primitive-scale-56)` |
64
+ | `--dk-spacing-fixed-64` | `var(--dk-primitive-scale-64)` | `var(--dk-primitive-scale-64)` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmo-co/drift-kit-reference",
3
- "version": "24.5.0",
3
+ "version": "25.1.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"