@karmo-co/drift-kit-reference 25.7.1 → 25.8.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/tag.md +3 -1
- package/manifest/index.json +22 -2
- package/manifest/setup.md +26 -26
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ A label, a category, a status. Six statuses, three variants, and a dot for the c
|
|
|
6
6
|
## Anatomy (HTML)
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
|
-
span.dk-component-tag[data-status|data-hue][data-variant][data-size][data-caret]?
|
|
9
|
+
span.dk-component-tag[data-status|data-hue][data-variant][data-size][data-caret]?[data-shape="circle"]?
|
|
10
10
|
span.dk-component-tag__dot (optional, aria-hidden)
|
|
11
11
|
span.dk-component-tag__icon (optional, aria-hidden, holds an svg)
|
|
12
12
|
span.dk-component-tag__text (the words; end in an ellipsis when a tag alone in its container is squeezed)
|
|
@@ -19,6 +19,7 @@ span.dk-component-tag[data-status|data-hue][data-variant][data-size][data-caret]
|
|
|
19
19
|
|---|---|
|
|
20
20
|
| `data-caret` | (present or absent) |
|
|
21
21
|
| `data-hue` | `next1`, `next2`, `next3`, `next4`, `prev1`, `prev2`, `prev3`, `prev4`, `primary` |
|
|
22
|
+
| `data-shape` | `circle` |
|
|
22
23
|
| `data-size` | `large`, `small`, `xsmall` |
|
|
23
24
|
| `data-status` | `error`, `information`, `primary`, `success`, `warning` |
|
|
24
25
|
| `data-theme` | `dark`, `light` |
|
|
@@ -42,6 +43,7 @@ import { Tag } from '@karmo-co/drift-kit/react';
|
|
|
42
43
|
| `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. |
|
|
43
44
|
| `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. |
|
|
44
45
|
| `caret` | `boolean` | A chevron after the words (data-caret), for a tag that opens a menu, a chip filter. The element that opens it is the button around it. |
|
|
46
|
+
| `shape` | `'circle'` | A count (data-shape="circle"): a number alone in a circle, wider once its digits outgrow it. |
|
|
45
47
|
| `children` | `ReactNode` | |
|
|
46
48
|
|
|
47
49
|
## Component tokens
|
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.8.0",
|
|
4
|
+
"built": "2026-11-11",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"id": "accordion",
|
|
@@ -1856,6 +1856,26 @@
|
|
|
1856
1856
|
"components": [],
|
|
1857
1857
|
"tokens": []
|
|
1858
1858
|
}
|
|
1859
|
+
},
|
|
1860
|
+
"25.7.2": {
|
|
1861
|
+
"added": {
|
|
1862
|
+
"components": [],
|
|
1863
|
+
"tokens": []
|
|
1864
|
+
},
|
|
1865
|
+
"removed": {
|
|
1866
|
+
"components": [],
|
|
1867
|
+
"tokens": []
|
|
1868
|
+
}
|
|
1869
|
+
},
|
|
1870
|
+
"25.8.0": {
|
|
1871
|
+
"added": {
|
|
1872
|
+
"components": [],
|
|
1873
|
+
"tokens": []
|
|
1874
|
+
},
|
|
1875
|
+
"removed": {
|
|
1876
|
+
"components": [],
|
|
1877
|
+
"tokens": []
|
|
1878
|
+
}
|
|
1859
1879
|
}
|
|
1860
1880
|
}
|
|
1861
1881
|
}
|
package/manifest/setup.md
CHANGED
|
@@ -68,47 +68,47 @@ Both scripts are deferred, and an icon script goes after `components.js`, which
|
|
|
68
68
|
|
|
69
69
|
```html
|
|
70
70
|
<!-- in the head -->
|
|
71
|
-
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.
|
|
72
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.
|
|
73
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.
|
|
71
|
+
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.8.0/drift-kit.css" integrity="sha384-1YZwCw3CHCl2PfnHXeR0rRT6qd3psDBSizaSVMl8A/SuMX+sdzFqiklwc3wMeg4q" crossorigin="anonymous" />
|
|
72
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.8.0/components.js" integrity="sha384-WpO0XXa42U+yh2iavgZ63N12qpPVQBPDg7KHoZUP7I2oJaJ3rlOwy5F0qcOGcV9U" crossorigin="anonymous" defer></script>
|
|
73
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.8.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
|
|
74
74
|
<!-- the attributes go on the body -->
|
|
75
75
|
<body data-brand="karmo" data-theme="light">
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
| File | Address | Integrity |
|
|
79
79
|
|---|---|---|
|
|
80
|
-
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
81
|
-
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
82
|
-
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
83
|
-
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
84
|
-
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
85
|
-
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
86
|
-
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
87
|
-
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
88
|
-
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
89
|
-
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
80
|
+
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.8.0/drift-kit.css` | `sha384-1YZwCw3CHCl2PfnHXeR0rRT6qd3psDBSizaSVMl8A/SuMX+sdzFqiklwc3wMeg4q` |
|
|
81
|
+
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.8.0/drift-kit.min.css` | `sha384-ygh2uwNWh2c0gLzVQT2zEPp7FfVT18GKkaIwGxJCbB4+844dmJFkfST+BsPrmD7P` |
|
|
82
|
+
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.8.0/components.js` | `sha384-WpO0XXa42U+yh2iavgZ63N12qpPVQBPDg7KHoZUP7I2oJaJ3rlOwy5F0qcOGcV9U` |
|
|
83
|
+
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.8.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
84
|
+
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.8.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
85
|
+
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.8.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
86
|
+
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.8.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
87
|
+
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.8.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
88
|
+
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.8.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
89
|
+
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.8.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
90
90
|
|
|
91
91
|
### In Claude chat and Cowork
|
|
92
92
|
|
|
93
93
|
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>`.
|
|
94
94
|
|
|
95
95
|
```html
|
|
96
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
97
|
-
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
96
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/drift-kit.min.css" integrity="sha384-ygh2uwNWh2c0gLzVQT2zEPp7FfVT18GKkaIwGxJCbB4+844dmJFkfST+BsPrmD7P" crossorigin="anonymous" />
|
|
97
|
+
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/components.js" integrity="sha384-EkxpP8foDxi+64liYemlkT26UWaZ9+OR6MVJ+bsxZJ9JFermGICWgHTTsHidIKtE" crossorigin="anonymous" defer></script>
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
| File | Address | Integrity |
|
|
101
101
|
|---|---|---|
|
|
102
|
-
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
103
|
-
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
104
|
-
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
105
|
-
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
106
|
-
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
107
|
-
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
108
|
-
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
109
|
-
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
110
|
-
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
111
|
-
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
102
|
+
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/components.js` | `sha384-EkxpP8foDxi+64liYemlkT26UWaZ9+OR6MVJ+bsxZJ9JFermGICWgHTTsHidIKtE` |
|
|
103
|
+
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
|
|
104
|
+
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
105
|
+
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
106
|
+
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
107
|
+
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
108
|
+
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
109
|
+
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
110
|
+
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
111
|
+
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.8.0/drift-kit.min.css` | `sha384-ygh2uwNWh2c0gLzVQT2zEPp7FfVT18GKkaIwGxJCbB4+844dmJFkfST+BsPrmD7P` |
|
|
112
112
|
|
|
113
113
|
### Integrity for 23.4.0
|
|
114
114
|
|
|
@@ -140,5 +140,5 @@ The behaviour script initialises every component on the page when it loads. Mark
|
|
|
140
140
|
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.
|
|
141
141
|
|
|
142
142
|
```json
|
|
143
|
-
{"version":"25.
|
|
143
|
+
{"version":"25.8.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"}
|
|
144
144
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmo-co/drift-kit-reference",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.8.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"
|