@karmo-co/drift-kit-reference 25.29.0 → 25.30.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 +3 -1
- package/manifest/components/detail-list.md +3 -1
- package/manifest/components/eyebrow.md +2 -0
- package/manifest/components/icon.md +1 -1
- package/manifest/components/list.md +3 -1
- package/manifest/components/modal.md +4 -1
- package/manifest/components/timeline.md +9 -5
- package/manifest/components/toast.md +1 -0
- package/manifest/index.json +16 -2
- package/manifest/setup.md +28 -28
- package/manifest/tokens/interactive.md +3 -0
- 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"]?[data-page]?
|
|
9
|
+
div.dk-component-brand-sheet[data-layout="stacked|split|card|auto"]?[data-size="small|medium"]?[data-page]?[data-lift="rise"]?
|
|
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)
|
|
@@ -20,6 +20,7 @@ div.dk-component-brand-sheet[data-layout="stacked|split|card|auto"]?[data-size="
|
|
|
20
20
|
|---|---|
|
|
21
21
|
| `data-full` | (present or absent) |
|
|
22
22
|
| `data-layout` | `auto`, `card`, `split`, `stacked` |
|
|
23
|
+
| `data-lift` | `rise` |
|
|
23
24
|
| `data-page` | (present or absent) |
|
|
24
25
|
| `data-size` | `small` |
|
|
25
26
|
|
|
@@ -35,6 +36,7 @@ import { BrandSheet } from '@karmo-co/drift-kit/react';
|
|
|
35
36
|
| `size` | `'small' \| 'medium'` | Medium (a sign-in screen) when absent; small is a home screen's band. |
|
|
36
37
|
| `panel` | `ReactNode` | What the dark panel holds. |
|
|
37
38
|
| `lift` | `ReactNode` | The sheet's first child, raised over its edge into the panel. |
|
|
39
|
+
| `liftRise` | `boolean` | The card layout from a 47.5rem root keeps the lift rising over the panel (data-lift="rise") instead of laying it flat. |
|
|
38
40
|
| `page` | `boolean` | The sheet is the page (data-page): the nearest App shell holding it paints to match. |
|
|
39
41
|
| `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. |
|
|
40
42
|
| `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. |
|
|
@@ -6,7 +6,7 @@ Rows of a glyph, a title and a line, with a value at the end, on a hairline betw
|
|
|
6
6
|
## Anatomy (HTML)
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
|
-
ul.dk-component-detail-list[data-size]
|
|
9
|
+
ul.dk-component-detail-list[data-size][data-divider]?[data-trim]?
|
|
10
10
|
li.__row
|
|
11
11
|
span.__media? usually an Icon tile; the author picks its size
|
|
12
12
|
div.__body
|
|
@@ -23,6 +23,7 @@ ul.dk-component-detail-list[data-size]
|
|
|
23
23
|
| `data-divider` | `inset` |
|
|
24
24
|
| `data-interactive` | (present or absent) |
|
|
25
25
|
| `data-size` | `large`, `small` |
|
|
26
|
+
| `data-trim` | `both`, `end`, `start` |
|
|
26
27
|
|
|
27
28
|
## React
|
|
28
29
|
|
|
@@ -34,6 +35,7 @@ import { DetailList } from '@karmo-co/drift-kit/react';
|
|
|
34
35
|
|---|---|---|
|
|
35
36
|
| `size` | `'small' \| 'medium' \| 'large'` | Row padding, gap and type together. medium when absent. |
|
|
36
37
|
| `divider` | `'inset'` | 'inset' starts each hairline where the words do, past a 40px media (--dk-component-detail-list-divider-inset for another). |
|
|
38
|
+
| `trim` | `'start' \| 'end' \| 'both'` | Drops the first row's top padding (start), the last row's bottom (end) or both, so the list sits evenly in a padded Box. |
|
|
37
39
|
|
|
38
40
|
## Component tokens
|
|
39
41
|
|
|
@@ -17,6 +17,8 @@ span.dk-component-eyebrow[data-size="large|medium|small"]?[data-color]?[data-emp
|
|
|
17
17
|
| `data-color` | `black`, `default`, `error`, `information`, `inverse`, `neutral`, `primary`, `success`, `warning`, `white` |
|
|
18
18
|
| `data-disabled` | (present or absent) |
|
|
19
19
|
| `data-emphasis` | `subtle` |
|
|
20
|
+
| `data-interactive` | (present or absent) |
|
|
21
|
+
| `data-pseudo-class` | `active`, `hover` |
|
|
20
22
|
| `data-size` | `large`, `medium`, `small` |
|
|
21
23
|
| `data-weight` | `bold`, `medium`, `semi-bold` |
|
|
22
24
|
|
|
@@ -30,4 +30,4 @@ One component per glyph, per set: `import { Heart } from '@karmo-co/drift-kit/ic
|
|
|
30
30
|
|
|
31
31
|
## Component tokens
|
|
32
32
|
|
|
33
|
-
`--dk-component-icon-transition-duration`, `--dk-component-icon-extra-light-stroke-width`, `--dk-component-icon-light-stroke-width`, `--dk-component-icon-regular-stroke-width`, `--dk-component-icon-bold-stroke-width`, `--dk-component-icon-12-size`, `--dk-component-icon-14-size`, `--dk-component-icon-16-size`, `--dk-component-icon-18-size`, `--dk-component-icon-20-size`, `--dk-component-icon-24-size`, `--dk-component-icon-28-size`, `--dk-component-icon-32-size`, `--dk-component-icon-40-size`, `--dk-component-icon-48-size`, `--dk-component-icon-64-size`, `--dk-component-icon-96-size`, `--dk-component-icon-default-color`, `--dk-component-icon-inverse-color`, `--dk-component-icon-white-color`, `--dk-component-icon-black-color`, `--dk-component-icon-primary-color`, `--dk-component-icon-success-color`, `--dk-component-icon-error-color`, `--dk-component-icon-warning-color`, `--dk-component-icon-information-color`, `--dk-component-icon-neutral-default-color`, `--dk-component-icon-neutral-subtle-color`, `--dk-component-icon-disabled-color`, `--dk-component-icon-object-j1`, `--dk-component-icon-object-j2`, `--dk-component-icon-object-jr`, `--dk-component-icon-object-jt`, `--dk-component-icon-object-g1`, `--dk-component-icon-object-g2`, `--dk-component-icon-object-gr`, `--dk-component-icon-object-gi`, `--dk-component-icon-object-p1`, `--dk-component-icon-object-p2`, `--dk-component-icon-object-pr`, `--dk-component-icon-object-s1`, `--dk-component-icon-object-s2`, `--dk-component-icon-object-sr`, `--dk-component-icon-object-line`, `--dk-component-icon-object-d1`, `--dk-component-icon-object-needle`, `--dk-component-icon-object-w1`, `--dk-component-icon-object-w2`, `--dk-component-icon-object-wd`, `--dk-component-icon-object-e1`, `--dk-component-icon-object-e2`, `--dk-component-icon-object-ed`, `--dk-component-icon-object-hi`, `--dk-component-icon-object-shadow`, `--dk-component-icon-object-shade`, `--dk-component-icon-object-dial1`, `--dk-component-icon-object-dial2`, `--dk-component-icon-object-arc1`, `--dk-component-icon-object-arc2`, `--dk-component-icon-object-tick`, `--dk-component-icon-object-hover`, `--dk-component-icon-object-press`
|
|
33
|
+
`--dk-component-icon-transition-duration`, `--dk-component-icon-extra-light-stroke-width`, `--dk-component-icon-light-stroke-width`, `--dk-component-icon-regular-stroke-width`, `--dk-component-icon-bold-stroke-width`, `--dk-component-icon-12-size`, `--dk-component-icon-14-size`, `--dk-component-icon-16-size`, `--dk-component-icon-18-size`, `--dk-component-icon-20-size`, `--dk-component-icon-24-size`, `--dk-component-icon-28-size`, `--dk-component-icon-32-size`, `--dk-component-icon-40-size`, `--dk-component-icon-48-size`, `--dk-component-icon-64-size`, `--dk-component-icon-96-size`, `--dk-component-icon-default-color`, `--dk-component-icon-inverse-color`, `--dk-component-icon-white-color`, `--dk-component-icon-black-color`, `--dk-component-icon-primary-color`, `--dk-component-icon-success-color`, `--dk-component-icon-error-color`, `--dk-component-icon-warning-color`, `--dk-component-icon-information-color`, `--dk-component-icon-neutral-default-color`, `--dk-component-icon-neutral-subtle-color`, `--dk-component-icon-disabled-color`, `--dk-component-icon-object-j1`, `--dk-component-icon-object-j2`, `--dk-component-icon-object-jr`, `--dk-component-icon-object-jt`, `--dk-component-icon-object-g1`, `--dk-component-icon-object-g2`, `--dk-component-icon-object-gr`, `--dk-component-icon-object-gi`, `--dk-component-icon-object-p1`, `--dk-component-icon-object-p2`, `--dk-component-icon-object-pr`, `--dk-component-icon-object-hole`, `--dk-component-icon-object-mark`, `--dk-component-icon-object-sheet1`, `--dk-component-icon-object-sheet2`, `--dk-component-icon-object-nib`, `--dk-component-icon-object-k1`, `--dk-component-icon-object-k2`, `--dk-component-icon-object-kr`, `--dk-component-icon-object-s1`, `--dk-component-icon-object-s2`, `--dk-component-icon-object-sr`, `--dk-component-icon-object-tyre`, `--dk-component-icon-object-line`, `--dk-component-icon-object-d1`, `--dk-component-icon-object-needle`, `--dk-component-icon-object-w1`, `--dk-component-icon-object-w2`, `--dk-component-icon-object-wd`, `--dk-component-icon-object-e1`, `--dk-component-icon-object-e2`, `--dk-component-icon-object-ed`, `--dk-component-icon-object-hi`, `--dk-component-icon-object-shadow`, `--dk-component-icon-object-shade`, `--dk-component-icon-object-dial1`, `--dk-component-icon-object-dial2`, `--dk-component-icon-object-arc1`, `--dk-component-icon-object-arc2`, `--dk-component-icon-object-tick`, `--dk-component-icon-object-hover`, `--dk-component-icon-object-press`
|
|
@@ -6,7 +6,7 @@ A list of interactive rows (things to do, actions to take): one raised panel wit
|
|
|
6
6
|
## Anatomy (HTML)
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
|
-
div.dk-component-list[data-presentation="divided|cards|auto"]?
|
|
9
|
+
div.dk-component-list[data-presentation="divided|cards|auto"]?[data-lift]?
|
|
10
10
|
.dk-component-list__item[data-interactive="item"] (a link, a button, or a div with role="button")
|
|
11
11
|
author content
|
|
12
12
|
```
|
|
@@ -16,6 +16,7 @@ div.dk-component-list[data-presentation="divided|cards|auto"]?
|
|
|
16
16
|
| Attribute | Values the stylesheet styles |
|
|
17
17
|
|---|---|
|
|
18
18
|
| `data-columns` | `2` |
|
|
19
|
+
| `data-lift` | (present or absent) |
|
|
19
20
|
| `data-presentation` | `auto`, `cards` |
|
|
20
21
|
| `data-pseudo-class` | `active`, `hover` |
|
|
21
22
|
| `data-radius` | `xlarge` |
|
|
@@ -33,6 +34,7 @@ import { List } from '@karmo-co/drift-kit/react';
|
|
|
33
34
|
| `radius` | `'xlarge'` | xlarge: a Box xlarge's corner, among such cards. |
|
|
34
35
|
| `size` | `'large'` | large: rows padded as a Box is, among such cards. |
|
|
35
36
|
| `columns` | `2` | 2: divided, two rows across (facts that pair). |
|
|
37
|
+
| `lift` | `boolean` | Divided: each row lifts as a card does on hover and press (its own corners, edge and shadow, the surface tier's grow and press), among single cards. A pair (columns 2) always does. |
|
|
36
38
|
|
|
37
39
|
## Component tokens
|
|
38
40
|
|
|
@@ -23,13 +23,16 @@ div.dk-component-modal[hidden][data-sheet][data-sheet-open][data-sheet-drag][dat
|
|
|
23
23
|
|
|
24
24
|
| Attribute | Values the stylesheet styles |
|
|
25
25
|
|---|---|
|
|
26
|
+
| `data-bleed` | (present or absent) |
|
|
26
27
|
| `data-closing` | (present or absent) |
|
|
27
28
|
| `data-dragging` | (present or absent) |
|
|
29
|
+
| `data-phone` | (present or absent) |
|
|
28
30
|
| `data-sheet` | `always`, `never` |
|
|
29
31
|
| `data-sheet-drag` | (present or absent) |
|
|
30
32
|
| `data-sheet-open` | (present or absent) |
|
|
31
33
|
| `data-size` | `large`, `small`, `xlarge` |
|
|
32
34
|
| `data-tone` | (present or absent) |
|
|
35
|
+
| `data-variant` | `bare`, `viewer` |
|
|
33
36
|
|
|
34
37
|
## React
|
|
35
38
|
|
|
@@ -65,4 +68,4 @@ import { Modal } from '@karmo-co/drift-kit/react';
|
|
|
65
68
|
|
|
66
69
|
## Component tokens
|
|
67
70
|
|
|
68
|
-
`--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-subtle-control-default`, `--dk-component-modal-subtle-control-hover`, `--dk-component-modal-subtle-control-active`, `--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-actions-padding-block-start`, `--dk-component-modal-actions-gap`, `--dk-component-modal-header-gap`, `--dk-component-modal-divider`, `--dk-component-modal-title-font-family`, `--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`
|
|
71
|
+
`--dk-component-modal-small-width`, `--dk-component-modal-width`, `--dk-component-modal-large-width`, `--dk-component-modal-xlarge-width`, `--dk-component-modal-lightbox-room`, `--dk-component-modal-lightbox-width`, `--dk-component-modal-lightbox-blur`, `--dk-component-modal-lightbox-gap`, `--dk-component-modal-lightbox-inset`, `--dk-component-modal-lightbox-photo-radius`, `--dk-component-modal-radius`, `--dk-component-modal-surface`, `--dk-component-modal-subtle-control-default`, `--dk-component-modal-subtle-control-hover`, `--dk-component-modal-subtle-control-active`, `--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-actions-padding-block-start`, `--dk-component-modal-actions-gap`, `--dk-component-modal-header-gap`, `--dk-component-modal-divider`, `--dk-component-modal-title-font-family`, `--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`
|
|
@@ -11,6 +11,7 @@ ol.dk-component-timeline[aria-label]?[data-orientation="horizontal"]?
|
|
|
11
11
|
span.__marker[data-status="neutral"]?[data-nudge="up"]? (an icon in a disc, in place of the dot)
|
|
12
12
|
::before (the dot)
|
|
13
13
|
::after (the line to the next dot; not on the last)
|
|
14
|
+
span.__traveller (data-progress, across: what rides the fill's end; in the first item)
|
|
14
15
|
```
|
|
15
16
|
|
|
16
17
|
## Attributes
|
|
@@ -21,11 +22,13 @@ ol.dk-component-timeline[aria-label]?[data-orientation="horizontal"]?
|
|
|
21
22
|
| `data-interactive` | (present or absent) |
|
|
22
23
|
| `data-nudge` | `up` |
|
|
23
24
|
| `data-orientation` | `horizontal` |
|
|
24
|
-
| `data-pointer` |
|
|
25
|
-
| `data-progress` |
|
|
25
|
+
| `data-pointer` | `left`, `right` |
|
|
26
|
+
| `data-progress` | `end`, `start` |
|
|
26
27
|
| `data-pseudo-class` | `active`, `hover` |
|
|
27
|
-
| `data-
|
|
28
|
+
| `data-size` | `small` |
|
|
29
|
+
| `data-start` | `full` |
|
|
28
30
|
| `data-status` | `neutral` |
|
|
31
|
+
| `data-variant` | `dot` |
|
|
29
32
|
|
|
30
33
|
## React
|
|
31
34
|
|
|
@@ -37,8 +40,9 @@ import { Timeline } from '@karmo-co/drift-kit/react';
|
|
|
37
40
|
|---|---|---|
|
|
38
41
|
| `orientation` | `'vertical' \| 'horizontal'` | horizontal: the moments side by side, the line across (a wide screen); vertical, the default, down the page. |
|
|
39
42
|
| `ends` | `'flush'` | flush (across): the first marker on the start edge and the last on the end edge, the last moment's words to the end under it. |
|
|
40
|
-
| `progress` | `number` | 0 to 1 (across, two moments): the trail filled that far with the kit's progress gradient, the rest the trail's own colour. |
|
|
43
|
+
| `progress` | `number` | 0 to 1 (across, two moments): the trail filled that far with the kit's progress gradient, the rest the trail's own colour. At 0 or 1 the root says start or end, so a TimelineTraveller sitting on a marker takes its glyph's place. |
|
|
44
|
+
| `size` | `'small'` | small: the markers' discs a step smaller (glyphs 16 in them). |
|
|
41
45
|
|
|
42
46
|
## Component tokens
|
|
43
47
|
|
|
44
|
-
`--dk-component-timeline-color`, `--dk-component-timeline-dot-size`, `--dk-component-timeline-dot-offset`, `--dk-component-timeline-line-width`, `--dk-component-timeline-line-clearance`, `--dk-component-timeline-indent`, `--dk-component-timeline-item-gap`, `--dk-component-timeline-spacing`, `--dk-component-timeline-marker-size`, `--dk-component-timeline-horizontal-marker-size`, `--dk-component-timeline-marker-fill`, `--dk-component-timeline-marker-glyph`, `--dk-component-timeline-marker-ring-width`, `--dk-component-timeline-marker-ring`, `--dk-component-timeline-marker-shadow`, `--dk-component-timeline-marker-gap`, `--dk-component-timeline-marker-neutral-fill`, `--dk-component-timeline-marker-neutral-ring`, `--dk-component-timeline-marker-neutral-glyph`, `--dk-component-timeline-marker-nudge`, `--dk-component-timeline-trail-width`, `--dk-component-timeline-horizontal-trail-width`, `--dk-component-timeline-trail-color`, `--dk-component-timeline-trail-start-color`, `--dk-component-timeline-trail-start-length`, `--dk-component-timeline-column-gap`, `--dk-component-timeline-edge-inset`, `--dk-component-timeline-half`, `--dk-component-timeline-whole`, `--dk-component-timeline-progress-fill`, `--dk-component-timeline-progress-fill-rtl`, `--dk-component-timeline-progress-cap`, `--dk-component-timeline-progress-ramp-hover`, `--dk-component-timeline-progress-ramp-hover-soft`, `--dk-component-timeline-progress-ramp-active`, `--dk-component-timeline-progress-ramp-active-soft`, `--dk-component-timeline-none`
|
|
48
|
+
`--dk-component-timeline-color`, `--dk-component-timeline-dot-size`, `--dk-component-timeline-dot-offset`, `--dk-component-timeline-line-width`, `--dk-component-timeline-line-clearance`, `--dk-component-timeline-indent`, `--dk-component-timeline-item-gap`, `--dk-component-timeline-spacing`, `--dk-component-timeline-marker-size`, `--dk-component-timeline-horizontal-marker-size`, `--dk-component-timeline-small-marker-size`, `--dk-component-timeline-small-horizontal-marker-size`, `--dk-component-timeline-traveller-size`, `--dk-component-timeline-small-marker-gap`, `--dk-component-timeline-marker-fill`, `--dk-component-timeline-marker-glyph`, `--dk-component-timeline-marker-ring-width`, `--dk-component-timeline-marker-ring`, `--dk-component-timeline-marker-shadow`, `--dk-component-timeline-marker-gap`, `--dk-component-timeline-marker-neutral-fill`, `--dk-component-timeline-marker-neutral-ring`, `--dk-component-timeline-marker-neutral-glyph`, `--dk-component-timeline-marker-nudge`, `--dk-component-timeline-dot-marker-size`, `--dk-component-timeline-dot-marker-fill`, `--dk-component-timeline-dot-marker-halo`, `--dk-component-timeline-dot-marker-halo-strength`, `--dk-component-timeline-dot-marker-halo-color`, `--dk-component-timeline-dot-marker-pulse-duration`, `--dk-component-timeline-dot-marker-pulse-scale`, `--dk-component-timeline-dot-marker-pulse-strength`, `--dk-component-timeline-dot-marker-pulse-color`, `--dk-component-timeline-trail-width`, `--dk-component-timeline-horizontal-trail-width`, `--dk-component-timeline-trail-color`, `--dk-component-timeline-trail-start-color`, `--dk-component-timeline-trail-start-length`, `--dk-component-timeline-column-gap`, `--dk-component-timeline-edge-inset`, `--dk-component-timeline-half`, `--dk-component-timeline-whole`, `--dk-component-timeline-progress-fill`, `--dk-component-timeline-progress-fill-rtl`, `--dk-component-timeline-progress-cap`, `--dk-component-timeline-progress-ramp-hover`, `--dk-component-timeline-progress-ramp-hover-soft`, `--dk-component-timeline-progress-ramp-active`, `--dk-component-timeline-progress-ramp-active-soft`, `--dk-component-timeline-none`
|
|
@@ -17,6 +17,7 @@ div.dk-component-toast[data-status][data-variant="compact"]?
|
|
|
17
17
|
|
|
18
18
|
| Attribute | Values the stylesheet styles |
|
|
19
19
|
|---|---|
|
|
20
|
+
| `data-contained` | (present or absent) |
|
|
20
21
|
| `data-counter` | (present or absent) |
|
|
21
22
|
| `data-paused` | (present or absent) |
|
|
22
23
|
| `data-placement` | `bottom-center`, `bottom-left`, `bottom-right`, `top-center`, `top-left`, `top-right` |
|
package/manifest/index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"version": "25.
|
|
4
|
-
"built": "2026-11-
|
|
3
|
+
"version": "25.30.0",
|
|
4
|
+
"built": "2026-11-25",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"id": "accordion",
|
|
@@ -2281,6 +2281,20 @@
|
|
|
2281
2281
|
"components": [
|
|
2282
2282
|
"progress"
|
|
2283
2283
|
],
|
|
2284
|
+
"tokens": [
|
|
2285
|
+
"--dk-interactive-ink-step-active",
|
|
2286
|
+
"--dk-interactive-ink-step-hover",
|
|
2287
|
+
"--dk-interactive-press-delay-touch"
|
|
2288
|
+
]
|
|
2289
|
+
},
|
|
2290
|
+
"removed": {
|
|
2291
|
+
"components": [],
|
|
2292
|
+
"tokens": []
|
|
2293
|
+
}
|
|
2294
|
+
},
|
|
2295
|
+
"25.30.0": {
|
|
2296
|
+
"added": {
|
|
2297
|
+
"components": [],
|
|
2284
2298
|
"tokens": []
|
|
2285
2299
|
},
|
|
2286
2300
|
"removed": {
|
package/manifest/setup.md
CHANGED
|
@@ -69,49 +69,49 @@ 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.
|
|
73
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.
|
|
74
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.
|
|
72
|
+
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.30.0/drift-kit.css" integrity="sha384-IYMOrnC5e0irxSbaSO5LK0roYk85aNWqVMN5MqmukxwAma3sdt4K+xPndP/GLk6c" crossorigin="anonymous" />
|
|
73
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.30.0/components.js" integrity="sha384-DoHmUhxF7jqeAhxwzfPpa8etPzeiRmcMzOq8hWWdSE2/urbjR7TmgNA5tiB4b+h3" crossorigin="anonymous" defer></script>
|
|
74
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.30.0/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.
|
|
82
|
-
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
83
|
-
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
84
|
-
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
85
|
-
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
86
|
-
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
87
|
-
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
88
|
-
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
89
|
-
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
90
|
-
| `drift-icons-object.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
91
|
-
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
81
|
+
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.30.0/drift-kit.css` | `sha384-IYMOrnC5e0irxSbaSO5LK0roYk85aNWqVMN5MqmukxwAma3sdt4K+xPndP/GLk6c` |
|
|
82
|
+
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.30.0/drift-kit.min.css` | `sha384-1ojU/DdqXihVrJ9M2jR6o61Y64HEdUzEAOhugMdatVuCJOedC1j3bXQFMeeP1GhM` |
|
|
83
|
+
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.30.0/components.js` | `sha384-DoHmUhxF7jqeAhxwzfPpa8etPzeiRmcMzOq8hWWdSE2/urbjR7TmgNA5tiB4b+h3` |
|
|
84
|
+
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.30.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
85
|
+
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.30.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
86
|
+
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.30.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
87
|
+
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.30.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
88
|
+
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.30.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
89
|
+
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.30.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
90
|
+
| `drift-icons-object.js` | `https://storage.googleapis.com/drift-kit-public/25.30.0/drift-icons-object.js` | `sha384-fWRlm1vvFJFGsDfvC85/C5NtzYkuv9x/p4sLBKd2j8JtSL2Pz+NrpYocyyCl76Ui` |
|
|
91
|
+
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.30.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
92
92
|
|
|
93
93
|
### In Claude chat and Cowork
|
|
94
94
|
|
|
95
95
|
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>`.
|
|
96
96
|
|
|
97
97
|
```html
|
|
98
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
99
|
-
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
98
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-kit.min.css" integrity="sha384-1ojU/DdqXihVrJ9M2jR6o61Y64HEdUzEAOhugMdatVuCJOedC1j3bXQFMeeP1GhM" crossorigin="anonymous" />
|
|
99
|
+
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/components.js" integrity="sha384-RM20ryaRG5TfzHy+dCZ2pJEmMSnZjV0mHqILvyD1C5FuTNPfvKxQbIkf5jsgc7iL" crossorigin="anonymous" defer></script>
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
| File | Address | Integrity |
|
|
103
103
|
|---|---|---|
|
|
104
|
-
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
105
|
-
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
106
|
-
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
107
|
-
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
108
|
-
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
109
|
-
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
110
|
-
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
111
|
-
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
112
|
-
| `drift-icons-object.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
113
|
-
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
114
|
-
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
104
|
+
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/components.js` | `sha384-RM20ryaRG5TfzHy+dCZ2pJEmMSnZjV0mHqILvyD1C5FuTNPfvKxQbIkf5jsgc7iL` |
|
|
105
|
+
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
|
|
106
|
+
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
107
|
+
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
108
|
+
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
109
|
+
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
110
|
+
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
111
|
+
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
112
|
+
| `drift-icons-object.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-icons-object.js` | `sha384-fWRlm1vvFJFGsDfvC85/C5NtzYkuv9x/p4sLBKd2j8JtSL2Pz+NrpYocyyCl76Ui` |
|
|
113
|
+
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
114
|
+
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.30.0/drift-kit.min.css` | `sha384-1ojU/DdqXihVrJ9M2jR6o61Y64HEdUzEAOhugMdatVuCJOedC1j3bXQFMeeP1GhM` |
|
|
115
115
|
|
|
116
116
|
### Integrity for 23.4.0
|
|
117
117
|
|
|
@@ -143,5 +143,5 @@ The behaviour script initialises every component on the page when it loads. Mark
|
|
|
143
143
|
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.
|
|
144
144
|
|
|
145
145
|
```json
|
|
146
|
-
{"version":"25.
|
|
146
|
+
{"version":"25.30.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","icon":".dk-component-icon","card":".dk-component-card","symmetric":[".dk-component-tag",".dk-component-alert"]}
|
|
147
147
|
```
|
|
@@ -10,6 +10,8 @@ Declared values, light and dark. Reference a token by name; never copy its value
|
|
|
10
10
|
| `--dk-interactive-grow-panel` | `var(--dk-motion-grow-scale-panel)` | `var(--dk-motion-grow-scale-panel)` |
|
|
11
11
|
| `--dk-interactive-grow-surface` | `var(--dk-motion-grow-scale-surface)` | `var(--dk-motion-grow-scale-surface)` |
|
|
12
12
|
| `--dk-interactive-halo-strength` | `18%` | `40%` |
|
|
13
|
+
| `--dk-interactive-ink-step-active` | `-0.13` | `0.15` |
|
|
14
|
+
| `--dk-interactive-ink-step-hover` | `-0.07` | `0.08` |
|
|
13
15
|
| `--dk-interactive-item-padding-block` | `var(--dk-primitive-scale-2)` | `var(--dk-primitive-scale-2)` |
|
|
14
16
|
| `--dk-interactive-item-padding-inline` | `var(--dk-primitive-scale-2-5)` | `var(--dk-primitive-scale-2-5)` |
|
|
15
17
|
| `--dk-interactive-item-radius` | `var(--dk-border-radius-150)` | `var(--dk-border-radius-150)` |
|
|
@@ -20,6 +22,7 @@ Declared values, light and dark. Reference a token by name; never copy its value
|
|
|
20
22
|
| `--dk-interactive-panel-radius` | `var(--dk-border-radius-300)` | `var(--dk-border-radius-300)` |
|
|
21
23
|
| `--dk-interactive-press-compact` | `var(--dk-motion-press-scale-compact)` | `var(--dk-motion-press-scale-compact)` |
|
|
22
24
|
| `--dk-interactive-press-control` | `var(--dk-motion-press-scale-control)` | `var(--dk-motion-press-scale-control)` |
|
|
25
|
+
| `--dk-interactive-press-delay-touch` | `120ms` | `120ms` |
|
|
23
26
|
| `--dk-interactive-press-item` | `var(--dk-motion-press-scale-item)` | `var(--dk-motion-press-scale-item)` |
|
|
24
27
|
| `--dk-interactive-press-panel` | `var(--dk-motion-press-scale-panel)` | `var(--dk-motion-press-scale-panel)` |
|
|
25
28
|
| `--dk-interactive-press-surface` | `var(--dk-motion-press-scale-surface)` | `var(--dk-motion-press-scale-surface)` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmo-co/drift-kit-reference",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.30.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"
|