@karmo-co/drift-kit-reference 25.3.1 → 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.
@@ -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`
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "25.3.1",
3
+ "version": "25.4.0",
4
4
  "built": "2026-11-09",
5
5
  "components": [
6
6
  {
@@ -1782,6 +1782,26 @@
1782
1782
  "components": [],
1783
1783
  "tokens": []
1784
1784
  }
1785
+ },
1786
+ "25.3.2": {
1787
+ "added": {
1788
+ "components": [],
1789
+ "tokens": []
1790
+ },
1791
+ "removed": {
1792
+ "components": [],
1793
+ "tokens": []
1794
+ }
1795
+ },
1796
+ "25.4.0": {
1797
+ "added": {
1798
+ "components": [],
1799
+ "tokens": []
1800
+ },
1801
+ "removed": {
1802
+ "components": [],
1803
+ "tokens": []
1804
+ }
1785
1805
  }
1786
1806
  }
1787
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.3.1/drift-kit.css" integrity="sha384-8x9koMpLjJQfteDzjL/7fdSFB5XNqu/vtVsOQ2eTCQbO87fMW6pzmoc/b84HKFvr" crossorigin="anonymous" />
63
- <script src="https://storage.googleapis.com/drift-kit-public/25.3.1/components.js" integrity="sha384-zEmE4n7dMe0iGb47+SVY1A+k2Cqx4dRg+kaK4e+IxM2wi6BaAnecMX9DGNGMckXt" crossorigin="anonymous" defer></script>
64
- <script src="https://storage.googleapis.com/drift-kit-public/25.3.1/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
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.3.1/drift-kit.css` | `sha384-8x9koMpLjJQfteDzjL/7fdSFB5XNqu/vtVsOQ2eTCQbO87fMW6pzmoc/b84HKFvr` |
72
- | `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.3.1/drift-kit.min.css` | `sha384-a5R+OfcpxQfuIeb3dr6NKh1ztAYkoX+yvmrodIkbvEJmhxJ9WisjVJZIwkB9C9GN` |
73
- | `components.js` | `https://storage.googleapis.com/drift-kit-public/25.3.1/components.js` | `sha384-zEmE4n7dMe0iGb47+SVY1A+k2Cqx4dRg+kaK4e+IxM2wi6BaAnecMX9DGNGMckXt` |
74
- | `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.3.1/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
75
- | `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.3.1/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
76
- | `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.3.1/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
77
- | `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.3.1/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
78
- | `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.3.1/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
79
- | `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.3.1/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
80
- | `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.3.1/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
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.3.1/drift-kit.min.css" integrity="sha384-a5R+OfcpxQfuIeb3dr6NKh1ztAYkoX+yvmrodIkbvEJmhxJ9WisjVJZIwkB9C9GN" crossorigin="anonymous" />
88
- <script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.3.1/components.js" integrity="sha384-iOR9Ax8RWTiGRPsZ6zL0z/Zu959NuxuzIDiS/w8YylVw7EKil2sERcPKpL6JMqai" crossorigin="anonymous" defer></script>
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.3.1/components.js` | `sha384-iOR9Ax8RWTiGRPsZ6zL0z/Zu959NuxuzIDiS/w8YylVw7EKil2sERcPKpL6JMqai` |
94
- | `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.3.1/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
95
- | `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.3.1/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
96
- | `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.3.1/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
97
- | `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.3.1/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.3.1/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.3.1/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
100
- | `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.3.1/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
101
- | `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.3.1/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.3.1/drift-kit.min.css` | `sha384-a5R+OfcpxQfuIeb3dr6NKh1ztAYkoX+yvmrodIkbvEJmhxJ9WisjVJZIwkB9C9GN` |
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.3.1","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.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.1",
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"