@karmo-co/drift-kit-reference 25.18.0 → 25.18.2
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/action-bar.md +1 -1
- package/manifest/components/alert.md +1 -1
- package/manifest/components/box.md +4 -4
- package/manifest/components/choice-card.md +1 -1
- package/manifest/components/confetti.md +28 -0
- package/manifest/components/feedback-badge.md +5 -4
- package/manifest/index.json +29 -2
- package/manifest/setup.md +26 -26
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ div.dk-component-action-bar[data-variant="float"]?[data-align="split"]?[data-lay
|
|
|
11
11
|
div.__start (Back: a plain Button)
|
|
12
12
|
button.__summary? (__summary-media? (40 tall, its media's own width), __summary-label, __summary-value, __summary-chevron; opens __detail)
|
|
13
13
|
div.__end (Next: a Button, default + primary)
|
|
14
|
-
div.__detail[data-surface="raised"]? (a glass panel a gap above the bar; raised, so what is in it reads against raised)
|
|
14
|
+
div.__detail[data-surface="raised"]? (a glass panel a gap above the bar, the bar's width; raised, so what is in it reads against raised)
|
|
15
15
|
div.__backdrop (the runtime's, the bar's previous sibling, while __detail is open;
|
|
16
16
|
the bar data-detail-open meanwhile, its glass on ::before)
|
|
17
17
|
div.__progress?
|
|
@@ -52,4 +52,4 @@ import { Alert } from '@karmo-co/drift-kit/react';
|
|
|
52
52
|
|
|
53
53
|
## Component tokens
|
|
54
54
|
|
|
55
|
-
`--dk-component-alert-gap`, `--dk-component-alert-padding`, `--dk-component-alert-radius`, `--dk-component-alert-border-width`, `--dk-component-alert-icon-size`, `--dk-component-alert-dismiss-padding`, `--dk-component-alert-dismiss-offset`, `--dk-component-alert-trailing-extra`, `--dk-component-alert-small-gap`, `--dk-component-alert-small-padding`, `--dk-component-alert-small-icon-size`, `--dk-component-alert-small-dismiss-padding`, `--dk-component-alert-small-dismiss-offset`, `--dk-component-alert-small-trailing-extra`, `--dk-component-alert-font-family`, `--dk-component-alert-title-font-size`, `--dk-component-alert-title-line-height`, `--dk-component-alert-title-font-weight`, `--dk-component-alert-body-font-size`, `--dk-component-alert-body-line-height`, `--dk-component-alert-body-font-weight`, `--dk-component-alert-small-title-font-size`, `--dk-component-alert-small-title-line-height`, `--dk-component-alert-small-body-font-size`, `--dk-component-alert-small-body-line-height`, `--dk-component-alert-pointer-depth`, `--dk-component-alert-pointer-base`, `--dk-component-alert-neutral-color`, `--dk-component-alert-primary-color`, `--dk-component-alert-warning-color`, `--dk-component-alert-error-color`, `--dk-component-alert-information-color`, `--dk-component-alert-success-color`, `--dk-component-alert-scrim-active-opacity`, `--dk-component-alert-scrim-hover-opacity`, `--dk-component-alert-enter-duration`, `--dk-component-alert-enter-easing`, `--dk-component-alert-enter-offset`
|
|
55
|
+
`--dk-component-alert-gap`, `--dk-component-alert-content-gap`, `--dk-component-alert-padding`, `--dk-component-alert-radius`, `--dk-component-alert-border-width`, `--dk-component-alert-icon-size`, `--dk-component-alert-dismiss-padding`, `--dk-component-alert-dismiss-offset`, `--dk-component-alert-trailing-extra`, `--dk-component-alert-small-gap`, `--dk-component-alert-small-padding`, `--dk-component-alert-small-icon-size`, `--dk-component-alert-small-dismiss-padding`, `--dk-component-alert-small-dismiss-offset`, `--dk-component-alert-small-trailing-extra`, `--dk-component-alert-font-family`, `--dk-component-alert-title-font-size`, `--dk-component-alert-title-line-height`, `--dk-component-alert-title-font-weight`, `--dk-component-alert-body-font-size`, `--dk-component-alert-body-line-height`, `--dk-component-alert-body-font-weight`, `--dk-component-alert-small-title-font-size`, `--dk-component-alert-small-title-line-height`, `--dk-component-alert-small-body-font-size`, `--dk-component-alert-small-body-line-height`, `--dk-component-alert-pointer-depth`, `--dk-component-alert-pointer-base`, `--dk-component-alert-neutral-color`, `--dk-component-alert-primary-color`, `--dk-component-alert-warning-color`, `--dk-component-alert-error-color`, `--dk-component-alert-information-color`, `--dk-component-alert-success-color`, `--dk-component-alert-scrim-active-opacity`, `--dk-component-alert-scrim-hover-opacity`, `--dk-component-alert-enter-duration`, `--dk-component-alert-enter-easing`, `--dk-component-alert-enter-offset`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Box (`box`)
|
|
2
2
|
|
|
3
|
-
A grouped surface: a panel that separates what is in it from what is around it, optionally laid out as a responsive grid of facts. data-radius="medium|large|xlarge" is the public way to set a Box's corner, whatever its data-size.
|
|
3
|
+
A grouped surface: a panel that separates what is in it from what is around it, optionally laid out as a responsive grid of facts. data-radius="medium|large|xlarge" is the public way to set a Box's corner, whatever its data-size. data-size runs xsmall to xxlarge; xxlarge is for a moment alone on its page, roomier still and a step tighter at the sides on a phone.
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## Anatomy (HTML)
|
|
@@ -30,7 +30,7 @@ section.dk-component-box[data-variant][data-pointer="top|right|bottom|left"][dat
|
|
|
30
30
|
| `data-pseudo-class` | `active`, `focus`, `hover` |
|
|
31
31
|
| `data-radius` | `large`, `medium`, `xlarge` |
|
|
32
32
|
| `data-shadow` | `card`, `none` |
|
|
33
|
-
| `data-size` | `large`, `small`, `xlarge`, `xsmall` |
|
|
33
|
+
| `data-size` | `large`, `small`, `xlarge`, `xsmall`, `xxlarge` |
|
|
34
34
|
| `data-span` | `full` |
|
|
35
35
|
| `data-surface` | (present or absent) |
|
|
36
36
|
| `data-tone` | `none` |
|
|
@@ -46,7 +46,7 @@ import { Box } from '@karmo-co/drift-kit/react';
|
|
|
46
46
|
| Prop | Type | Notes |
|
|
47
47
|
|---|---|---|
|
|
48
48
|
| `variant` | `'outline' \| 'raised' \| 'inset' \| 'flat'` | How the box separates from what is around it. outline (the default) is a hairline, raised lifts it with a shadow, inset presses it in, flat is its fill alone and needs a tone or a surface to be seen. |
|
|
49
|
-
| `size` | `'xsmall' \| 'small' \| 'medium' \| 'large' \| 'xlarge'` | Padding and gaps together: 12, 18, 24 (medium, the default), 32 or 40. Past medium the corner and the header grow with it. |
|
|
49
|
+
| `size` | `'xsmall' \| 'small' \| 'medium' \| 'large' \| 'xlarge' \| 'xxlarge'` | Padding and gaps together: 12, 18, 24 (medium, the default), 32 or 40. Past medium the corner and the header grow with it. |
|
|
50
50
|
| `tone` | `'primary' \| 'success' \| 'warning' \| 'error' \| 'information' \| 'inverse'` | The kit's tone: tints the box and remaps the colours of everything in it. |
|
|
51
51
|
| `toneFill` | `'solid'` | With a tone: the solid fill instead of the tint. |
|
|
52
52
|
| `surface` | `0 \| 1 \| 2 \| 'below'` | A step down the neutral ladder (1 or 2), so a flat box reads as a panel. below is one level under whatever level the box sits on: level 1 on the page, level 2 on level 1, and on a raised surface level 1 in light and level 2 in dark. One markup that reads in both themes. |
|
|
@@ -73,4 +73,4 @@ import { Box } from '@karmo-co/drift-kit/react';
|
|
|
73
73
|
|
|
74
74
|
## Component tokens
|
|
75
75
|
|
|
76
|
-
`--dk-component-box-xsmall-padding`, `--dk-component-box-small-padding`, `--dk-component-box-padding`, `--dk-component-box-large-padding`, `--dk-component-box-xlarge-padding`, `--dk-component-box-radius`, `--dk-component-box-large-radius`, `--dk-component-box-xlarge-radius`, `--dk-component-box-border-width`, `--dk-component-box-pointer-depth`, `--dk-component-box-pointer-base`, `--dk-component-box-pointer-offset`, `--dk-component-box-border-color`, `--dk-component-box-raised-border-color`, `--dk-component-box-inset-border-color`, `--dk-component-box-raised-shadow`, `--dk-component-box-card-shadow`, `--dk-component-box-inset-shadow`, `--dk-component-box-column-min`, `--dk-component-box-line-color`, `--dk-component-box-line-color-neutral`, `--dk-component-box-line-width`, `--dk-component-box-focus-room`, `--dk-component-box-label-color`, `--dk-component-box-label-font-size`, `--dk-component-box-label-line-height`, `--dk-component-box-label-letter-spacing`, `--dk-component-box-label-font-weight`, `--dk-component-box-fact-gap`, `--dk-component-box-value-color`, `--dk-component-box-value-font-size`, `--dk-component-box-value-line-height`, `--dk-component-box-value-font-weight`, `--dk-component-box-title-font-size`, `--dk-component-box-title-line-height`, `--dk-component-box-title-font-weight`, `--dk-component-box-description-font-size`, `--dk-component-box-description-line-height`, `--dk-component-box-large-title-font-size`, `--dk-component-box-large-title-line-height`, `--dk-component-box-large-description-font-size`, `--dk-component-box-large-description-line-height`, `--dk-component-box-xlarge-title-font-size`, `--dk-component-box-xlarge-title-line-height`, `--dk-component-box-xlarge-description-font-size`, `--dk-component-box-xlarge-description-line-height`, `--dk-component-box-header-gap`, `--dk-component-box-xsmall-band-padding`, `--dk-component-box-small-band-padding`, `--dk-component-box-band-padding`, `--dk-component-box-large-band-padding`, `--dk-component-box-xlarge-band-padding`, `--dk-component-box-font-family`, `--dk-component-box-title-color`, `--dk-component-box-description-color`
|
|
76
|
+
`--dk-component-box-xsmall-padding`, `--dk-component-box-small-padding`, `--dk-component-box-padding`, `--dk-component-box-large-padding`, `--dk-component-box-xlarge-padding`, `--dk-component-box-xxlarge-padding`, `--dk-component-box-xxlarge-phone-padding-block`, `--dk-component-box-xxlarge-phone-padding-inline`, `--dk-component-box-radius`, `--dk-component-box-large-radius`, `--dk-component-box-xlarge-radius`, `--dk-component-box-border-width`, `--dk-component-box-pointer-depth`, `--dk-component-box-pointer-base`, `--dk-component-box-pointer-offset`, `--dk-component-box-border-color`, `--dk-component-box-raised-border-color`, `--dk-component-box-inset-border-color`, `--dk-component-box-raised-shadow`, `--dk-component-box-card-shadow`, `--dk-component-box-inset-shadow`, `--dk-component-box-column-min`, `--dk-component-box-line-color`, `--dk-component-box-line-color-neutral`, `--dk-component-box-line-width`, `--dk-component-box-focus-room`, `--dk-component-box-label-color`, `--dk-component-box-label-font-size`, `--dk-component-box-label-line-height`, `--dk-component-box-label-letter-spacing`, `--dk-component-box-label-font-weight`, `--dk-component-box-fact-gap`, `--dk-component-box-value-color`, `--dk-component-box-value-font-size`, `--dk-component-box-value-line-height`, `--dk-component-box-value-font-weight`, `--dk-component-box-title-font-size`, `--dk-component-box-title-line-height`, `--dk-component-box-title-font-weight`, `--dk-component-box-description-font-size`, `--dk-component-box-description-line-height`, `--dk-component-box-large-title-font-size`, `--dk-component-box-large-title-line-height`, `--dk-component-box-large-description-font-size`, `--dk-component-box-large-description-line-height`, `--dk-component-box-xlarge-title-font-size`, `--dk-component-box-xlarge-title-line-height`, `--dk-component-box-xlarge-description-font-size`, `--dk-component-box-xlarge-description-line-height`, `--dk-component-box-header-gap`, `--dk-component-box-xsmall-band-padding`, `--dk-component-box-small-band-padding`, `--dk-component-box-band-padding`, `--dk-component-box-large-band-padding`, `--dk-component-box-xlarge-band-padding`, `--dk-component-box-font-family`, `--dk-component-box-title-color`, `--dk-component-box-description-color`
|
|
@@ -55,7 +55,7 @@ import { ChoiceCard } from '@karmo-co/drift-kit/react';
|
|
|
55
55
|
| `noteStatus` | `'error'` | 'error' turns the note red ("Card expired"). |
|
|
56
56
|
| `amount` | `ReactNode` | Right-aligned: an amount, drawn as the card's __value. |
|
|
57
57
|
| `aside` | `ReactNode` | Right-aligned too, after the amount: a Tag. Anything with data-show="checked" shows only while chosen. |
|
|
58
|
-
| `action` | `ChoiceCardAction` | An edit button beside the card, never inside it. Interactive cards only: a static card has nothing to edit. A disabled one shows no tooltip. |
|
|
58
|
+
| `action` | `ChoiceCardAction` | An edit button beside the card, never inside it. Interactive cards only: a static card has nothing to edit. A disabled one shows no tooltip, unless it has a disabledReason, which is then its tooltip. |
|
|
59
59
|
| `id` | `string` | |
|
|
60
60
|
| `className` | `string` | |
|
|
61
61
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Confetti (`confetti`)
|
|
2
|
+
|
|
3
|
+
A celebration at the end of a successful workflow (a subscription confirmed, a payment made): pieces in the brand's colours raining down from the top of the screen and fading away. One moment per flow, never decoration.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Anatomy (HTML)
|
|
7
|
+
|
|
8
|
+
```text
|
|
9
|
+
canvas.dk-component-confetti (added by the runtime, removed when done)
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## React
|
|
13
|
+
|
|
14
|
+
An imperative API rather than a component:
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
import { confetti } from '@karmo-co/drift-kit/react';
|
|
18
|
+
confetti.show({ /* options */ });
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
| Option | Type | Notes |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| `count` | `number` | How many pieces; --dk-component-confetti-rain-count (rain) or -count (burst) by default. |
|
|
24
|
+
| `duration` | `number` | How long, in milliseconds; -rain-duration or -duration by default. |
|
|
25
|
+
|
|
26
|
+
## Component tokens
|
|
27
|
+
|
|
28
|
+
`--dk-component-confetti-color-1`, `--dk-component-confetti-color-2`, `--dk-component-confetti-color-3`, `--dk-component-confetti-color-4`, `--dk-component-confetti-color-5`, `--dk-component-confetti-size`, `--dk-component-confetti-count`, `--dk-component-confetti-duration`, `--dk-component-confetti-rain-count`, `--dk-component-confetti-rain-duration`, `--dk-component-confetti-z-index`
|
|
@@ -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"]?[data-animation="enter|exit"]?
|
|
9
|
+
div.dk-component-feedback-badge[data-status]?[data-size="small|medium|large|xlarge"]?[data-animation="enter|exit"]?
|
|
10
10
|
(the glyph is drawn by the runtime)
|
|
11
11
|
```
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@ div.dk-component-feedback-badge[data-status]?[data-size="small|medium|large"]?[d
|
|
|
19
19
|
| `data-dk-cascade` | (present or absent) |
|
|
20
20
|
| `data-dk-cascade-after` | `leave` |
|
|
21
21
|
| `data-in` | (present or absent) |
|
|
22
|
-
| `data-size` | `medium`, `small` |
|
|
22
|
+
| `data-size` | `medium`, `small`, `xlarge` |
|
|
23
23
|
| `data-status` | `error`, `information`, `neutral`, `primary`, `success`, `warning` |
|
|
24
24
|
|
|
25
25
|
## React
|
|
@@ -31,12 +31,13 @@ import { FeedbackBadge } from '@karmo-co/drift-kit/react';
|
|
|
31
31
|
| Prop | Type | Notes |
|
|
32
32
|
|---|---|---|
|
|
33
33
|
| `status` | `FeedbackBadgeStatus` | |
|
|
34
|
-
| `size` | `'small' \| 'medium' \| 'large'` | |
|
|
34
|
+
| `size` | `'small' \| 'medium' \| 'large' \| 'xlarge'` | |
|
|
35
35
|
| `icon` | `ReactNode` | Any kit icon. Without one, the status's own glyph, as in CL. |
|
|
36
36
|
| `label` | `string` | |
|
|
37
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
38
|
| `replayKey` | `string \| number` | Change it (a counter) to play the same animation again. |
|
|
39
|
+
| `celebrate` | `boolean \| 'burst'` | Confetti in the brand's colours as the badge starts to enter: the end of a successful workflow. true rains from the top of the screen, 'burst' bursts from the badge. Never under reduced motion. |
|
|
39
40
|
|
|
40
41
|
## Component tokens
|
|
41
42
|
|
|
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`
|
|
43
|
+
`--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-xlarge-size`, `--dk-component-feedback-badge-xlarge-padding`, `--dk-component-feedback-badge-xlarge-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.18.
|
|
3
|
+
"version": "25.18.2",
|
|
4
4
|
"built": "2026-11-18",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
{
|
|
37
37
|
"id": "box",
|
|
38
38
|
"name": "Box",
|
|
39
|
-
"purpose": "A grouped surface: a panel that separates what is in it from what is around it, optionally laid out as a responsive grid of facts. data-radius=\"medium|large|xlarge\" is the public way to set a Box's corner, whatever its data-size."
|
|
39
|
+
"purpose": "A grouped surface: a panel that separates what is in it from what is around it, optionally laid out as a responsive grid of facts. data-radius=\"medium|large|xlarge\" is the public way to set a Box's corner, whatever its data-size. data-size runs xsmall to xxlarge; xxlarge is for a moment alone on its page, roomier still and a step tighter at the sides on a phone."
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"id": "brand-sheet",
|
|
@@ -83,6 +83,11 @@
|
|
|
83
83
|
"name": "Code input",
|
|
84
84
|
"purpose": "A verification code, a PIN, a voucher. N characters, one per box, with one real input underneath them."
|
|
85
85
|
},
|
|
86
|
+
{
|
|
87
|
+
"id": "confetti",
|
|
88
|
+
"name": "Confetti",
|
|
89
|
+
"purpose": "A celebration at the end of a successful workflow (a subscription confirmed, a payment made): pieces in the brand's colours raining down from the top of the screen and fading away. One moment per flow, never decoration."
|
|
90
|
+
},
|
|
86
91
|
{
|
|
87
92
|
"id": "date-picker",
|
|
88
93
|
"name": "Date picker",
|
|
@@ -2029,6 +2034,28 @@
|
|
|
2029
2034
|
"components": [],
|
|
2030
2035
|
"tokens": []
|
|
2031
2036
|
}
|
|
2037
|
+
},
|
|
2038
|
+
"25.18.1": {
|
|
2039
|
+
"added": {
|
|
2040
|
+
"components": [],
|
|
2041
|
+
"tokens": []
|
|
2042
|
+
},
|
|
2043
|
+
"removed": {
|
|
2044
|
+
"components": [],
|
|
2045
|
+
"tokens": []
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
"25.18.2": {
|
|
2049
|
+
"added": {
|
|
2050
|
+
"components": [
|
|
2051
|
+
"confetti"
|
|
2052
|
+
],
|
|
2053
|
+
"tokens": []
|
|
2054
|
+
},
|
|
2055
|
+
"removed": {
|
|
2056
|
+
"components": [],
|
|
2057
|
+
"tokens": []
|
|
2058
|
+
}
|
|
2032
2059
|
}
|
|
2033
2060
|
}
|
|
2034
2061
|
}
|
package/manifest/setup.md
CHANGED
|
@@ -69,47 +69,47 @@ Both scripts are deferred, and an icon script goes after `components.js`, which
|
|
|
69
69
|
|
|
70
70
|
```html
|
|
71
71
|
<!-- in the head -->
|
|
72
|
-
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.18.
|
|
73
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.18.
|
|
74
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.18.
|
|
72
|
+
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.18.2/drift-kit.css" integrity="sha384-+mfsz3HG6UNQuU8+I2eW6jrpD1ILxCgZquPsD+smJx4weww8olzYwMrJTVx80zDe" crossorigin="anonymous" />
|
|
73
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.18.2/components.js" integrity="sha384-r/JfvGKjaQduaO/Kdsq2doWJMi3CaqwFgZwSG8jdOrOkNG+GRKJkp87FMdjaDSry" crossorigin="anonymous" defer></script>
|
|
74
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.18.2/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
|
|
75
75
|
<!-- the attributes go on the body -->
|
|
76
76
|
<body data-brand="karmo" data-theme="light">
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
| File | Address | Integrity |
|
|
80
80
|
|---|---|---|
|
|
81
|
-
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.18.
|
|
82
|
-
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.18.
|
|
83
|
-
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.18.
|
|
84
|
-
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.18.
|
|
85
|
-
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.18.
|
|
86
|
-
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.18.
|
|
87
|
-
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.18.
|
|
88
|
-
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.18.
|
|
89
|
-
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.18.
|
|
90
|
-
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.18.
|
|
81
|
+
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.18.2/drift-kit.css` | `sha384-+mfsz3HG6UNQuU8+I2eW6jrpD1ILxCgZquPsD+smJx4weww8olzYwMrJTVx80zDe` |
|
|
82
|
+
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.18.2/drift-kit.min.css` | `sha384-u35hv6thR83+opjrjO6R0AjTu79HeW37Rs+MdaUER9XHc+W9Vrkd0XWQwGqQk2Fg` |
|
|
83
|
+
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.18.2/components.js` | `sha384-r/JfvGKjaQduaO/Kdsq2doWJMi3CaqwFgZwSG8jdOrOkNG+GRKJkp87FMdjaDSry` |
|
|
84
|
+
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.18.2/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
85
|
+
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.18.2/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
86
|
+
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.18.2/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
87
|
+
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.18.2/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
88
|
+
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.18.2/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
89
|
+
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.18.2/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
90
|
+
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.18.2/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
91
91
|
|
|
92
92
|
### In Claude chat and Cowork
|
|
93
93
|
|
|
94
94
|
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>`.
|
|
95
95
|
|
|
96
96
|
```html
|
|
97
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
98
|
-
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
97
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/drift-kit.min.css" integrity="sha384-u35hv6thR83+opjrjO6R0AjTu79HeW37Rs+MdaUER9XHc+W9Vrkd0XWQwGqQk2Fg" crossorigin="anonymous" />
|
|
98
|
+
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/components.js" integrity="sha384-4Shcc3ZgB2U3j0KAq2QSVNQnfl3SPFSSfFwETo0OJfgUswDQm/GcBvbJHMjLqqIY" crossorigin="anonymous" defer></script>
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
| File | Address | Integrity |
|
|
102
102
|
|---|---|---|
|
|
103
|
-
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
104
|
-
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
105
|
-
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
106
|
-
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
107
|
-
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
108
|
-
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
109
|
-
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
110
|
-
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
111
|
-
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
112
|
-
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.
|
|
103
|
+
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/components.js` | `sha384-4Shcc3ZgB2U3j0KAq2QSVNQnfl3SPFSSfFwETo0OJfgUswDQm/GcBvbJHMjLqqIY` |
|
|
104
|
+
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
|
|
105
|
+
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
106
|
+
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
107
|
+
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
108
|
+
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
109
|
+
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
110
|
+
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
111
|
+
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
112
|
+
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.18.2/drift-kit.min.css` | `sha384-u35hv6thR83+opjrjO6R0AjTu79HeW37Rs+MdaUER9XHc+W9Vrkd0XWQwGqQk2Fg` |
|
|
113
113
|
|
|
114
114
|
### Integrity for 23.4.0
|
|
115
115
|
|
|
@@ -141,5 +141,5 @@ The behaviour script initialises every component on the page when it loads. Mark
|
|
|
141
141
|
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.
|
|
142
142
|
|
|
143
143
|
```json
|
|
144
|
-
{"version":"25.18.
|
|
144
|
+
{"version":"25.18.2","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","icon":".dk-component-icon","card":".dk-component-card","symmetric":[".dk-component-tag",".dk-component-alert"]}
|
|
145
145
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmo-co/drift-kit-reference",
|
|
3
|
-
"version": "25.18.
|
|
3
|
+
"version": "25.18.2",
|
|
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"
|