@karmo-co/drift-kit-reference 25.3.2 → 25.4.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/feedback-badge.md +10 -3
- package/manifest/index.json +11 -1
- package/manifest/setup.md +26 -26
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ A status's circle inside its own soft ring, with a white glyph. The big mark at
|
|
|
6
6
|
## Anatomy (HTML)
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
|
-
div.dk-component-feedback-badge[data-status]?[data-size="small|medium|large"]?
|
|
9
|
+
div.dk-component-feedback-badge[data-status]?[data-size="small|medium|large"]?[data-animation="enter|exit"]?
|
|
10
10
|
(the glyph is drawn by the runtime)
|
|
11
11
|
```
|
|
12
12
|
|
|
@@ -14,8 +14,13 @@ div.dk-component-feedback-badge[data-status]?[data-size="small|medium|large"]?
|
|
|
14
14
|
|
|
15
15
|
| Attribute | Values the stylesheet styles |
|
|
16
16
|
|---|---|
|
|
17
|
+
| `data-animation` | `enter`, `exit` |
|
|
18
|
+
| `data-default-glyph` | (present or absent) |
|
|
19
|
+
| `data-dk-cascade` | (present or absent) |
|
|
20
|
+
| `data-dk-cascade-after` | `leave` |
|
|
21
|
+
| `data-in` | (present or absent) |
|
|
17
22
|
| `data-size` | `medium`, `small` |
|
|
18
|
-
| `data-status` | `error`, `information`, `neutral`, `success`, `warning` |
|
|
23
|
+
| `data-status` | `error`, `information`, `neutral`, `primary`, `success`, `warning` |
|
|
19
24
|
|
|
20
25
|
## React
|
|
21
26
|
|
|
@@ -29,7 +34,9 @@ import { FeedbackBadge } from '@karmo-co/drift-kit/react';
|
|
|
29
34
|
| `size` | `'small' \| 'medium' \| 'large'` | |
|
|
30
35
|
| `icon` | `ReactNode` | Any kit icon. Without one, the status's own glyph, as in CL. |
|
|
31
36
|
| `label` | `string` | |
|
|
37
|
+
| `animation` | `'enter' \| 'exit'` | Opt-in motion. enter springs the badge in; exit takes it out and leaves it gone. Without it the badge is still. |
|
|
38
|
+
| `replayKey` | `string \| number` | Change it (a counter) to play the same animation again. |
|
|
32
39
|
|
|
33
40
|
## Component tokens
|
|
34
41
|
|
|
35
|
-
`--dk-component-feedback-badge-small-size`, `--dk-component-feedback-badge-small-padding`, `--dk-component-feedback-badge-small-icon`, `--dk-component-feedback-badge-medium-size`, `--dk-component-feedback-badge-medium-padding`, `--dk-component-feedback-badge-medium-icon`, `--dk-component-feedback-badge-large-size`, `--dk-component-feedback-badge-large-padding`, `--dk-component-feedback-badge-large-icon`, `--dk-component-feedback-badge-glyph`
|
|
42
|
+
`--dk-component-feedback-badge-small-size`, `--dk-component-feedback-badge-small-padding`, `--dk-component-feedback-badge-small-icon`, `--dk-component-feedback-badge-medium-size`, `--dk-component-feedback-badge-medium-padding`, `--dk-component-feedback-badge-medium-icon`, `--dk-component-feedback-badge-large-size`, `--dk-component-feedback-badge-large-padding`, `--dk-component-feedback-badge-large-icon`, `--dk-component-feedback-badge-glyph`, `--dk-component-feedback-badge-enter-duration`, `--dk-component-feedback-badge-enter-easing`, `--dk-component-feedback-badge-core-delay`, `--dk-component-feedback-badge-glyph-duration`, `--dk-component-feedback-badge-glyph-easing`, `--dk-component-feedback-badge-glyph-delay`, `--dk-component-feedback-badge-glyph-scale`, `--dk-component-feedback-badge-check-length`, `--dk-component-feedback-badge-exit-duration`, `--dk-component-feedback-badge-exit-easing`, `--dk-component-feedback-badge-ring-exit-duration`, `--dk-component-feedback-badge-ring-exit-delay`
|
package/manifest/index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.4.0",
|
|
4
4
|
"built": "2026-11-09",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
@@ -1792,6 +1792,16 @@
|
|
|
1792
1792
|
"components": [],
|
|
1793
1793
|
"tokens": []
|
|
1794
1794
|
}
|
|
1795
|
+
},
|
|
1796
|
+
"25.4.0": {
|
|
1797
|
+
"added": {
|
|
1798
|
+
"components": [],
|
|
1799
|
+
"tokens": []
|
|
1800
|
+
},
|
|
1801
|
+
"removed": {
|
|
1802
|
+
"components": [],
|
|
1803
|
+
"tokens": []
|
|
1804
|
+
}
|
|
1795
1805
|
}
|
|
1796
1806
|
}
|
|
1797
1807
|
}
|
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/25.
|
|
63
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.
|
|
64
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.
|
|
62
|
+
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.4.0/drift-kit.css" integrity="sha384-F05GyC8Jat9Zc+fif4wft8PN03GhykdThxwO9qIKQfphsvaad7Wd1KOjmg8sHwan" crossorigin="anonymous" />
|
|
63
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.4.0/components.js" integrity="sha384-Cx9YF+SfzqHSi//6GuGedmjiWfuLhDvOPfs2x1VmPTZ12Kp498LOhqepVXG/vbSC" crossorigin="anonymous" defer></script>
|
|
64
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.4.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/25.
|
|
72
|
-
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
73
|
-
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
74
|
-
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
75
|
-
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
76
|
-
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
77
|
-
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
78
|
-
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
79
|
-
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
80
|
-
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
71
|
+
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.4.0/drift-kit.css` | `sha384-F05GyC8Jat9Zc+fif4wft8PN03GhykdThxwO9qIKQfphsvaad7Wd1KOjmg8sHwan` |
|
|
72
|
+
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.4.0/drift-kit.min.css` | `sha384-pLHk88KMqkno4RlcaGEKrvML6ScaoD5K4BhkSZABooiMxH+Ucbf5fSfxDdmgST0I` |
|
|
73
|
+
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.4.0/components.js` | `sha384-Cx9YF+SfzqHSi//6GuGedmjiWfuLhDvOPfs2x1VmPTZ12Kp498LOhqepVXG/vbSC` |
|
|
74
|
+
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.4.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
75
|
+
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.4.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
76
|
+
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.4.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
77
|
+
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.4.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
78
|
+
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.4.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
79
|
+
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.4.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
80
|
+
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.4.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@25.
|
|
88
|
-
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
87
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.4.0/drift-kit.min.css" integrity="sha384-pLHk88KMqkno4RlcaGEKrvML6ScaoD5K4BhkSZABooiMxH+Ucbf5fSfxDdmgST0I" crossorigin="anonymous" />
|
|
88
|
+
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.4.0/components.js" integrity="sha384-AR7ols3mCyiOuTlA35yMMRfm2j/ZGjn6oeMYslsd61nRqSpGi+m2ESKbnMDH8vht" 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@25.
|
|
94
|
-
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
95
|
-
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
96
|
-
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
97
|
-
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
98
|
-
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
99
|
-
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
100
|
-
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
101
|
-
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
102
|
-
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
93
|
+
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.4.0/components.js` | `sha384-AR7ols3mCyiOuTlA35yMMRfm2j/ZGjn6oeMYslsd61nRqSpGi+m2ESKbnMDH8vht` |
|
|
94
|
+
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.4.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
|
|
95
|
+
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.4.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.4.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
97
|
+
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.4.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.4.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.4.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.4.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
101
|
+
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.4.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.4.0/drift-kit.min.css` | `sha384-pLHk88KMqkno4RlcaGEKrvML6ScaoD5K4BhkSZABooiMxH+Ucbf5fSfxDdmgST0I` |
|
|
103
103
|
|
|
104
104
|
### Integrity for 23.4.0
|
|
105
105
|
|
|
@@ -131,5 +131,5 @@ The behaviour script initialises every component on the page when it loads. Mark
|
|
|
131
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.
|
|
132
132
|
|
|
133
133
|
```json
|
|
134
|
-
{"version":"25.
|
|
134
|
+
{"version":"25.4.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"}
|
|
135
135
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmo-co/drift-kit-reference",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.4.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"
|