eidotter 0.28.0 → 0.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/dist/components/CmdPalette/components/CmdPalette.d.ts +1 -0
- package/dist/components/FilterBar/components/FilterBar.d.ts +7 -1
- package/dist/components/Lightbox/components/Lightbox.d.ts +1 -0
- package/dist/components/Modal/components/Modal.d.ts +1 -0
- package/dist/components/RetroEffects/components/RetroEffects.d.ts +22 -0
- package/dist/eidotter.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +598 -548
- package/dist/index.umd.js +3 -3
- package/guidelines/design-principles.md +49 -0
- package/package.json +1 -1
|
@@ -9,7 +9,13 @@ export interface FilterBarItem {
|
|
|
9
9
|
count?: number;
|
|
10
10
|
/** Whether this item is disabled */
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Optional colour-role token for the active state, applied as a CSS custom
|
|
14
|
+
* property. Prefer a semantic role (e.g. `--color-semantic-text-accent`) so
|
|
15
|
+
* the active colour follows the active theme; raw `--color-cga-*` primitives
|
|
16
|
+
* are accepted but won't re-theme. (A themeable per-category palette is
|
|
17
|
+
* tracked with the token rationalization, DMNC-922/1059.)
|
|
18
|
+
*/
|
|
13
19
|
color?: string;
|
|
14
20
|
}
|
|
15
21
|
export interface FilterBarProps {
|
|
@@ -31,6 +31,28 @@ export interface RetroEffectsProps {
|
|
|
31
31
|
* pattern (DMNC-1047).
|
|
32
32
|
*/
|
|
33
33
|
boot?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Gate `boot` to once per browser tab/session (via sessionStorage). The boot
|
|
36
|
+
* sequence plays on the first load of a tab and is suppressed on every
|
|
37
|
+
* subsequent mount within the same tab — both SPA route changes and MPA
|
|
38
|
+
* full-reload navigation. A new tab/visit replays it; a hard refresh does not.
|
|
39
|
+
* No-op unless `boot` is also set. Falls back to playing if storage is
|
|
40
|
+
* unavailable (e.g. private mode).
|
|
41
|
+
*
|
|
42
|
+
* Like `boot`, this is evaluated once on mount; changing it afterwards has no
|
|
43
|
+
* effect (remount the component — e.g. via `key` — to re-evaluate).
|
|
44
|
+
*/
|
|
45
|
+
bootOnce?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* sessionStorage key used by `bootOnce`. Defaults to `'eidotter:retro-boot'`.
|
|
48
|
+
* Override to scope the once-per-session flag independently, or to force a
|
|
49
|
+
* replay (e.g. a fresh key in a Storybook story). Read once on mount.
|
|
50
|
+
*
|
|
51
|
+
* Instances that mount simultaneously and share a key share one flag (the
|
|
52
|
+
* intended single-overlay case); give each a distinct key if they must gate
|
|
53
|
+
* independently.
|
|
54
|
+
*/
|
|
55
|
+
bootStorageKey?: string;
|
|
34
56
|
/**
|
|
35
57
|
* Intensity of the effects (0-1)
|
|
36
58
|
*/
|