@karmo-co/drift-kit-reference 25.3.2 → 25.5.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 grouped surface: a panel that separates what is in it from what is around it,
|
|
|
6
6
|
## Anatomy (HTML)
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
|
-
section.dk-component-box[data-variant][data-size][data-radius][data-tone][data-tone-fill][data-surface][data-interactive][data-align]
|
|
9
|
+
section.dk-component-box[data-variant][data-size][data-radius][data-tone][data-tone-fill][data-surface][data-interactive][data-align][data-sticky]
|
|
10
10
|
header.__header
|
|
11
11
|
div.__heading > .__title + .__description?
|
|
12
12
|
div.__actions?
|
|
@@ -57,6 +57,7 @@ import { Box } from '@karmo-co/drift-kit/react';
|
|
|
57
57
|
| `align` | `'start' \| 'center' \| 'end'` | Cells stretch to the row when absent. |
|
|
58
58
|
| `contentAlign` | `'center'` | The box's own content: center centres what an interactive box (data-interactive) holds, which otherwise starts it. With or without columns; align stays the cells'. |
|
|
59
59
|
| `radius` | `'medium' \| 'large' \| 'xlarge'` | The corner of that size, whatever the box's size: a small card a rung rounder without the large padding. |
|
|
60
|
+
| `sticky` | `boolean` | Stays at the top of what scrolls, in its own paint (data-sticky): the page's surface for an untoned box; a toned or levelled one paints its fill, so stick a plain section around it instead. In style, --dk-sticky-cover opts into a cover rising above it (only where nothing sits above it in its scroller), --dk-sticky-bleed widens that cover and --dk-sticky-z-index lifts it. |
|
|
60
61
|
| `interactivePress` | `InteractivePress` | With data-interactive: the press, over the tier's own. none keeps it still (a row in a divided list), control presses it like a button. |
|
|
61
62
|
| `as` | `'section' \| 'div' \| 'aside' \| 'article'` | section when the box has a name (a title or an aria-label), div when it does not; pass one to choose. |
|
|
62
63
|
|
|
@@ -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`
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Image (`image`)
|
|
2
|
+
|
|
3
|
+
An image slot: a picture on the kit's corner, or, with data-placeholder, the empty slot drawn as a hairline box crossed corner to corner. data-size="16|20|24" is the small square that stands beside a title or a row.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Anatomy (HTML)
|
|
7
|
+
|
|
8
|
+
```text
|
|
9
|
+
div.dk-component-image[data-placeholder]?[data-size="16|20|24"]?[data-ratio="1/1|4/3|3/2|16/9|21/9"]?
|
|
10
|
+
img (a picture; none on a placeholder)
|
|
11
|
+
::before (the cross, on a placeholder)
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Attributes
|
|
15
|
+
|
|
16
|
+
| Attribute | Values the stylesheet styles |
|
|
17
|
+
|---|---|
|
|
18
|
+
| `data-placeholder` | (present or absent) |
|
|
19
|
+
| `data-ratio` | `1/1`, `16/9`, `21/9`, `3/2`, `4/3` |
|
|
20
|
+
| `data-size` | `16`, `20`, `24` |
|
|
21
|
+
|
|
22
|
+
## React
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
import { Image } from '@karmo-co/drift-kit/react';
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
| Prop | Type | Notes |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
| `src` | `string` | The picture. Absent with placeholder, which draws the empty slot. |
|
|
31
|
+
| `alt` | `string` | The picture's text alternative; "" for a decorative one. |
|
|
32
|
+
| `placeholder` | `boolean` | The empty slot: a hairline box crossed corner to corner. Decorative (aria-hidden) unless it is given an aria-label, which makes it an image with that name. |
|
|
33
|
+
| `size` | `16 \| 20 \| 24` | A fixed square, Icon's sizes: the small slot beside a title or a row. |
|
|
34
|
+
| `ratio` | `'1/1' \| '4/3' \| '3/2' \| '16/9' \| '21/9'` | The height from the width. Without it, or a size, the layout sizes it. |
|
|
35
|
+
| `imgProps` | `ImgHTMLAttributes<HTMLImageElement>` | The img's own attributes (loading, decoding, srcSet, sizes, width, height). src and alt above win over any here. |
|
|
36
|
+
|
|
37
|
+
## Component tokens
|
|
38
|
+
|
|
39
|
+
`--dk-component-image-radius`, `--dk-component-image-placeholder-color`, `--dk-component-image-placeholder-border-width`, `--dk-component-image-16-size`, `--dk-component-image-20-size`, `--dk-component-image-24-size`
|
|
@@ -63,4 +63,4 @@ import { Modal } from '@karmo-co/drift-kit/react';
|
|
|
63
63
|
|
|
64
64
|
## Component tokens
|
|
65
65
|
|
|
66
|
-
`--dk-component-modal-small-width`, `--dk-component-modal-width`, `--dk-component-modal-large-width`, `--dk-component-modal-xlarge-width`, `--dk-component-modal-radius`, `--dk-component-modal-surface`, `--dk-component-modal-border`, `--dk-component-modal-border-width`, `--dk-component-modal-shadow`, `--dk-component-modal-inset`, `--dk-component-modal-max-height`, `--dk-component-modal-backdrop`, `--dk-component-modal-backdrop-blur`, `--dk-component-modal-padding-inline`, `--dk-component-modal-header-padding-block`, `--dk-component-modal-body-padding-block`, `--dk-component-modal-footer-padding-block`, `--dk-component-modal-body-gap`, `--dk-component-modal-footer-gap`, `--dk-component-modal-header-gap`, `--dk-component-modal-divider`, `--dk-component-modal-title-font-size`, `--dk-component-modal-title-line-height`, `--dk-component-modal-title-font-weight`, `--dk-component-modal-title-color`, `--dk-component-modal-icon-size`, `--dk-component-modal-icon-color`, `--dk-component-modal-sheet-max-height`, `--dk-component-modal-sheet-max-width`, `--dk-component-modal-sheet-radius`, `--dk-component-modal-sheet-action-height`, `--dk-component-modal-sheet-action-min`, `--dk-component-modal-grabber-width`, `--dk-component-modal-grabber-height`, `--dk-component-modal-grabber-offset`, `--dk-component-modal-grabber-color`, `--dk-component-modal-sheet-header-padding-top`, `--dk-component-modal-settle-duration`, `--dk-component-modal-settle-easing`, `--dk-component-modal-enter-duration`, `--dk-component-modal-exit-duration`, `--dk-component-modal-enter-easing`, `--dk-component-modal-exit-easing`, `--dk-component-modal-enter-travel`
|
|
66
|
+
`--dk-component-modal-small-width`, `--dk-component-modal-width`, `--dk-component-modal-large-width`, `--dk-component-modal-xlarge-width`, `--dk-component-modal-radius`, `--dk-component-modal-surface`, `--dk-component-modal-border`, `--dk-component-modal-border-width`, `--dk-component-modal-shadow`, `--dk-component-modal-inset`, `--dk-component-modal-max-height`, `--dk-component-modal-backdrop`, `--dk-component-modal-backdrop-blur`, `--dk-component-modal-padding-inline`, `--dk-component-modal-header-padding-block`, `--dk-component-modal-body-padding-block`, `--dk-component-modal-footer-padding-block`, `--dk-component-modal-body-gap`, `--dk-component-modal-footer-gap`, `--dk-component-modal-header-gap`, `--dk-component-modal-divider`, `--dk-component-modal-title-font-size`, `--dk-component-modal-title-line-height`, `--dk-component-modal-title-font-weight`, `--dk-component-modal-title-color`, `--dk-component-modal-text-color`, `--dk-component-modal-icon-size`, `--dk-component-modal-icon-color`, `--dk-component-modal-sheet-max-height`, `--dk-component-modal-sheet-max-width`, `--dk-component-modal-sheet-radius`, `--dk-component-modal-sheet-action-height`, `--dk-component-modal-sheet-action-min`, `--dk-component-modal-grabber-width`, `--dk-component-modal-grabber-height`, `--dk-component-modal-grabber-offset`, `--dk-component-modal-grabber-color`, `--dk-component-modal-sheet-header-padding-top`, `--dk-component-modal-settle-duration`, `--dk-component-modal-settle-easing`, `--dk-component-modal-enter-duration`, `--dk-component-modal-exit-duration`, `--dk-component-modal-enter-easing`, `--dk-component-modal-exit-easing`, `--dk-component-modal-enter-travel`
|
package/manifest/index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.5.0",
|
|
4
4
|
"built": "2026-11-09",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
@@ -158,6 +158,11 @@
|
|
|
158
158
|
"name": "Icon tile",
|
|
159
159
|
"purpose": "A glyph on a small coloured square, subtle or solid, with one corner at every size."
|
|
160
160
|
},
|
|
161
|
+
{
|
|
162
|
+
"id": "image",
|
|
163
|
+
"name": "Image",
|
|
164
|
+
"purpose": "An image slot: a picture on the kit's corner, or, with data-placeholder, the empty slot drawn as a hairline box crossed corner to corner. data-size=\"16|20|24\" is the small square that stands beside a title or a row."
|
|
165
|
+
},
|
|
161
166
|
{
|
|
162
167
|
"id": "input",
|
|
163
168
|
"name": "Text input",
|
|
@@ -1792,6 +1797,28 @@
|
|
|
1792
1797
|
"components": [],
|
|
1793
1798
|
"tokens": []
|
|
1794
1799
|
}
|
|
1800
|
+
},
|
|
1801
|
+
"25.4.0": {
|
|
1802
|
+
"added": {
|
|
1803
|
+
"components": [],
|
|
1804
|
+
"tokens": []
|
|
1805
|
+
},
|
|
1806
|
+
"removed": {
|
|
1807
|
+
"components": [],
|
|
1808
|
+
"tokens": []
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1811
|
+
"25.5.0": {
|
|
1812
|
+
"added": {
|
|
1813
|
+
"components": [
|
|
1814
|
+
"image"
|
|
1815
|
+
],
|
|
1816
|
+
"tokens": []
|
|
1817
|
+
},
|
|
1818
|
+
"removed": {
|
|
1819
|
+
"components": [],
|
|
1820
|
+
"tokens": []
|
|
1821
|
+
}
|
|
1795
1822
|
}
|
|
1796
1823
|
}
|
|
1797
1824
|
}
|
package/manifest/setup.md
CHANGED
|
@@ -34,7 +34,7 @@ Put these on `<body>`, never on `<html>`: the stylesheet reads them on the body
|
|
|
34
34
|
|
|
35
35
|
## Container attributes
|
|
36
36
|
|
|
37
|
-
Set on a panel, not on `<body>`: everything inside follows. The attributes remap the tokens and paint nothing, so the container paints itself: `background: var(--dk-surface-current)`, the colour of the place it is in, and
|
|
37
|
+
Set on a panel, not on `<body>`: everything inside follows. The attributes remap the tokens and paint nothing, so the container paints itself: `background: var(--dk-surface-current)`, the colour of the place it is in, and nothing more for text: `data-theme` also sets `color: var(--dk-text-default)` on the container (at no weight), so a colour written on it still wins. Kit surfaces (Box, Card, Alert, Modal) already paint.
|
|
38
38
|
|
|
39
39
|
| Attribute | Values |
|
|
40
40
|
|---|---|
|
|
@@ -42,6 +42,14 @@ Set on a panel, not on `<body>`: everything inside follows. The attributes remap
|
|
|
42
42
|
| `data-tone` | `credit`, `error`, `information`, `inverse`, `muted`, `neutral`, `none`, `primary`, `success`, `warning` |
|
|
43
43
|
| `data-tone-fill` | `solid` |
|
|
44
44
|
|
|
45
|
+
## Kit attributes
|
|
46
|
+
|
|
47
|
+
Set on any element, a kit component's or a plain one.
|
|
48
|
+
|
|
49
|
+
| Attribute | What it does |
|
|
50
|
+
|---|---|
|
|
51
|
+
| `data-sticky` | On a Box or a plain section: stays at the top of what scrolls, in its own paint (`--dk-surface-current` as the element resolves it), at `z-index` `--dk-sticky-z-index` (5 when unset). `--dk-sticky-cover` opts into a cover of that height rising above it, set only where nothing sits above it in its scroller; `--dk-sticky-bleed` widens the cover past its sides. Top bar and Action bar keep their own `data-sticky`. |
|
|
52
|
+
|
|
45
53
|
## Verify
|
|
46
54
|
|
|
47
55
|
1. **The tokens resolve:** `getComputedStyle(document.body).getPropertyValue('--dk-surface-current')` is non-empty. Probe on `document.body`, never `document.documentElement`: the tokens live on the attribute scopes. Empty means the root attributes are missing or miscased.
|
|
@@ -59,47 +67,47 @@ Both scripts are deferred, and an icon script goes after `components.js`, which
|
|
|
59
67
|
|
|
60
68
|
```html
|
|
61
69
|
<!-- 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.
|
|
70
|
+
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.5.0/drift-kit.css" integrity="sha384-JsiZQ6T5S2cuPivciAh3Sc3mtNRz0aqIuayhez2LZGJjgLdNQKqtfdyKcwzCMF0D" crossorigin="anonymous" />
|
|
71
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.5.0/components.js" integrity="sha384-6tJdGvxuWDCYQqhJ4O3Rhrt3G0sRcwiw4jXZ6z6on98BnDtH7FWdvFiWRrZlQJSZ" crossorigin="anonymous" defer></script>
|
|
72
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.5.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
|
|
65
73
|
<!-- the attributes go on the body -->
|
|
66
74
|
<body data-brand="karmo" data-theme="light">
|
|
67
75
|
```
|
|
68
76
|
|
|
69
77
|
| File | Address | Integrity |
|
|
70
78
|
|---|---|---|
|
|
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.
|
|
79
|
+
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.5.0/drift-kit.css` | `sha384-JsiZQ6T5S2cuPivciAh3Sc3mtNRz0aqIuayhez2LZGJjgLdNQKqtfdyKcwzCMF0D` |
|
|
80
|
+
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.5.0/drift-kit.min.css` | `sha384-b0EkofU5kMMC4ICOotKPYYO2GwhduZUXNjmNcc13vHHLGgCl20eK2RCsf3HpYN1L` |
|
|
81
|
+
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.5.0/components.js` | `sha384-6tJdGvxuWDCYQqhJ4O3Rhrt3G0sRcwiw4jXZ6z6on98BnDtH7FWdvFiWRrZlQJSZ` |
|
|
82
|
+
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.5.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
83
|
+
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.5.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
84
|
+
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.5.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
85
|
+
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.5.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
86
|
+
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.5.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
87
|
+
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.5.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
88
|
+
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.5.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
81
89
|
|
|
82
90
|
### In Claude chat and Cowork
|
|
83
91
|
|
|
84
92
|
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
93
|
|
|
86
94
|
```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.
|
|
95
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/drift-kit.min.css" integrity="sha384-b0EkofU5kMMC4ICOotKPYYO2GwhduZUXNjmNcc13vHHLGgCl20eK2RCsf3HpYN1L" crossorigin="anonymous" />
|
|
96
|
+
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/components.js" integrity="sha384-AR7ols3mCyiOuTlA35yMMRfm2j/ZGjn6oeMYslsd61nRqSpGi+m2ESKbnMDH8vht" crossorigin="anonymous" defer></script>
|
|
89
97
|
```
|
|
90
98
|
|
|
91
99
|
| File | Address | Integrity |
|
|
92
100
|
|---|---|---|
|
|
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.
|
|
101
|
+
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/components.js` | `sha384-AR7ols3mCyiOuTlA35yMMRfm2j/ZGjn6oeMYslsd61nRqSpGi+m2ESKbnMDH8vht` |
|
|
102
|
+
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
|
|
103
|
+
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
104
|
+
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
105
|
+
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
106
|
+
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
107
|
+
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
108
|
+
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
109
|
+
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
110
|
+
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.5.0/drift-kit.min.css` | `sha384-b0EkofU5kMMC4ICOotKPYYO2GwhduZUXNjmNcc13vHHLGgCl20eK2RCsf3HpYN1L` |
|
|
103
111
|
|
|
104
112
|
### Integrity for 23.4.0
|
|
105
113
|
|
|
@@ -131,5 +139,5 @@ The behaviour script initialises every component on the page when it loads. Mark
|
|
|
131
139
|
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
140
|
|
|
133
141
|
```json
|
|
134
|
-
{"version":"25.
|
|
142
|
+
{"version":"25.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"}
|
|
135
143
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmo-co/drift-kit-reference",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.5.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"
|