@karmo-co/drift-kit-reference 25.1.0 → 25.2.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/brand-sheet.md +6 -1
- package/manifest/index.json +21 -1
- package/manifest/setup.md +26 -26
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ A dark brand panel and the page's sheet that meets it, for a sign-in screen (med
|
|
|
6
6
|
## Anatomy (HTML)
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
|
-
div.dk-component-brand-sheet[data-layout="stacked|split|card|auto"]?[data-size="small|medium"]?
|
|
9
|
+
div.dk-component-brand-sheet[data-layout="stacked|split|card|auto"]?[data-size="small|medium"]?[data-page]?
|
|
10
10
|
section.dk-component-brand-sheet__panel[data-theme="dark"]
|
|
11
11
|
section.dk-component-brand-sheet__sheet[data-surface="raised"]
|
|
12
12
|
div.dk-component-brand-sheet__lift? (first child: rises over the edge)
|
|
@@ -17,6 +17,7 @@ div.dk-component-brand-sheet[data-layout="stacked|split|card|auto"]?[data-size="
|
|
|
17
17
|
| Attribute | Values the stylesheet styles |
|
|
18
18
|
|---|---|
|
|
19
19
|
| `data-layout` | `auto`, `card`, `split`, `stacked` |
|
|
20
|
+
| `data-page` | (present or absent) |
|
|
20
21
|
| `data-size` | `small` |
|
|
21
22
|
|
|
22
23
|
## React
|
|
@@ -31,6 +32,10 @@ import { BrandSheet } from '@karmo-co/drift-kit/react';
|
|
|
31
32
|
| `size` | `'small' \| 'medium'` | Medium (a sign-in screen) when absent; small is a home screen's band. |
|
|
32
33
|
| `panel` | `ReactNode` | What the dark panel holds. |
|
|
33
34
|
| `lift` | `ReactNode` | The sheet's first child, raised over its edge into the panel. |
|
|
35
|
+
| `page` | `boolean` | The sheet is the page (data-page): the nearest App shell holding it paints to match. |
|
|
36
|
+
| `panelProps` | `BrandSheetPartProps` | Attributes for the dark panel section, e.g. data-dk-cascade-through. Its data-theme="dark" cannot be overridden; className joins the kit's. |
|
|
37
|
+
| `sheetProps` | `BrandSheetPartProps` | Attributes for the sheet section, e.g. data-dk-cascade-through. Its data-surface="raised" cannot be overridden; className joins the kit's. |
|
|
38
|
+
| `liftProps` | `BrandSheetPartProps` | Attributes for the lift, e.g. data-surface="0" (the lift sets none of its own). className joins the kit's. |
|
|
34
39
|
|
|
35
40
|
## Component tokens
|
|
36
41
|
|
package/manifest/index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.2.0",
|
|
4
4
|
"built": "2026-11-08",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
@@ -1732,6 +1732,26 @@
|
|
|
1732
1732
|
"components": [],
|
|
1733
1733
|
"tokens": []
|
|
1734
1734
|
}
|
|
1735
|
+
},
|
|
1736
|
+
"25.1.1": {
|
|
1737
|
+
"added": {
|
|
1738
|
+
"components": [],
|
|
1739
|
+
"tokens": []
|
|
1740
|
+
},
|
|
1741
|
+
"removed": {
|
|
1742
|
+
"components": [],
|
|
1743
|
+
"tokens": []
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1746
|
+
"25.2.0": {
|
|
1747
|
+
"added": {
|
|
1748
|
+
"components": [],
|
|
1749
|
+
"tokens": []
|
|
1750
|
+
},
|
|
1751
|
+
"removed": {
|
|
1752
|
+
"components": [],
|
|
1753
|
+
"tokens": []
|
|
1754
|
+
}
|
|
1735
1755
|
}
|
|
1736
1756
|
}
|
|
1737
1757
|
}
|
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.2.0/drift-kit.css" integrity="sha384-0Y7AK/ZCIn4T1PlGbDtuEUZABbCCCaCJWt33MwDAar0qQzV1g+B7v3n5/O8pq9JN" crossorigin="anonymous" />
|
|
63
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.2.0/components.js" integrity="sha384-7nzlk0uVQGJmmfWDEbchjuDFVQGnUazBE45YOqqRCRdgfweGUKNKkIALg2tO8UdM" crossorigin="anonymous" defer></script>
|
|
64
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.2.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.2.0/drift-kit.css` | `sha384-0Y7AK/ZCIn4T1PlGbDtuEUZABbCCCaCJWt33MwDAar0qQzV1g+B7v3n5/O8pq9JN` |
|
|
72
|
+
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.2.0/drift-kit.min.css` | `sha384-13Y1ZP5jzIAmWN4UBXmSbQN4iVkFsAn77E5sF4MAlkueZw0TSV7gx4YhLb0NPte4` |
|
|
73
|
+
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.2.0/components.js` | `sha384-7nzlk0uVQGJmmfWDEbchjuDFVQGnUazBE45YOqqRCRdgfweGUKNKkIALg2tO8UdM` |
|
|
74
|
+
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.2.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
75
|
+
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.2.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
76
|
+
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.2.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
77
|
+
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.2.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
78
|
+
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.2.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
79
|
+
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.2.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
80
|
+
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.2.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.2.0/drift-kit.min.css" integrity="sha384-13Y1ZP5jzIAmWN4UBXmSbQN4iVkFsAn77E5sF4MAlkueZw0TSV7gx4YhLb0NPte4" crossorigin="anonymous" />
|
|
88
|
+
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.2.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@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.2.0/components.js` | `sha384-iOR9Ax8RWTiGRPsZ6zL0z/Zu959NuxuzIDiS/w8YylVw7EKil2sERcPKpL6JMqai` |
|
|
94
|
+
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.2.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
|
|
95
|
+
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.2.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.2.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
97
|
+
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.2.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.2.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.2.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.2.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
101
|
+
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.2.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.2.0/drift-kit.min.css` | `sha384-13Y1ZP5jzIAmWN4UBXmSbQN4iVkFsAn77E5sF4MAlkueZw0TSV7gx4YhLb0NPte4` |
|
|
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.2.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.2.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"
|