@kitlangton/knobs 0.4.0-next.0 → 0.4.0-next.10

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.
Files changed (74) hide show
  1. package/README.md +451 -54
  2. package/dist/dev/{chunk-7xgkerd2.js → chunk-3ygqgy1x.js} +23 -1
  3. package/dist/dev/{chunk-stbcgz1y.js → chunk-5pb7ymrd.js} +567 -471
  4. package/dist/dev/{chunk-t68smqkc.js → chunk-a7cjgy8x.js} +13 -11
  5. package/dist/dev/{chunk-pmkvb9ep.js → chunk-dyq4m24m.js} +2081 -507
  6. package/dist/dev/index.js +10 -5
  7. package/dist/index.js +25 -1
  8. package/dist/panel.js +3187 -1341
  9. package/dist/react.js +294 -6
  10. package/dist/review-react.js +18580 -0
  11. package/dist/review-solid.js +18482 -0
  12. package/dist/review.js +18488 -0
  13. package/dist/solid.js +292 -4
  14. package/dist/themes.js +1767 -7
  15. package/dist/types/core/adapter.d.ts +6 -2
  16. package/dist/types/core/appearance.d.ts +44 -0
  17. package/dist/types/core/glide.d.ts +7 -0
  18. package/dist/types/core/motion.d.ts +66 -0
  19. package/dist/types/core/root.d.ts +13 -0
  20. package/dist/types/core/store.d.ts +18 -5
  21. package/dist/types/core/theme.d.ts +10 -3
  22. package/dist/types/index.d.ts +2 -1
  23. package/dist/types/panel/gpu/color.d.ts +6 -0
  24. package/dist/types/panel/motion.d.ts +1 -1
  25. package/dist/types/panel/styles.d.ts +2 -3
  26. package/dist/types/review/font.d.ts +13 -0
  27. package/dist/types/review/foundations.d.ts +175 -0
  28. package/dist/types/review/index.d.ts +13 -0
  29. package/dist/types/review/react.d.ts +1 -0
  30. package/dist/types/review/solid.d.ts +1 -0
  31. package/dist/types/themes/define.d.ts +104 -0
  32. package/dist/types/themes/index.d.ts +16 -0
  33. package/dist/types/themes/knobs.d.ts +5 -0
  34. package/dist/types/themes/review.d.ts +8 -0
  35. package/dist/types/themes/void.d.ts +8 -0
  36. package/dist/types/tokens/color.d.ts +42 -0
  37. package/dist/types/tokens/css.d.ts +13 -0
  38. package/dist/types/tokens/evaluate.d.ts +8 -0
  39. package/dist/types/tokens/index.d.ts +4 -0
  40. package/dist/types/tokens/schema.d.ts +1280 -0
  41. package/dist/types/ui/bento-css.d.ts +1 -1
  42. package/dist/types/ui/compare-css.d.ts +1 -1
  43. package/dist/types/ui/compare-gpu.d.ts +6 -6
  44. package/dist/types/ui/compare-model.d.ts +85 -2
  45. package/dist/types/ui/compare.d.ts +18 -4
  46. package/dist/types/ui/diff.d.ts +4 -5
  47. package/dist/types/ui/history-css.d.ts +1 -0
  48. package/dist/types/ui/history-model.d.ts +249 -0
  49. package/dist/types/ui/history.d.ts +38 -0
  50. package/dist/types/ui/icons.d.ts +40 -0
  51. package/dist/types/ui/index.d.ts +9 -5
  52. package/dist/types/ui/look.d.ts +18 -13
  53. package/dist/types/ui/overlay-css.d.ts +1 -1
  54. package/dist/types/ui/player-css.d.ts +1 -0
  55. package/dist/types/ui/player.d.ts +51 -0
  56. package/dist/types/ui/readout-css.d.ts +1 -1
  57. package/dist/types/ui/readout-model.d.ts +5 -1
  58. package/dist/types/ui/review-look.d.ts +6 -0
  59. package/dist/types/ui/review-options.d.ts +28 -0
  60. package/dist/types/ui/rgba.d.ts +11 -0
  61. package/dist/types/ui/selection-pill-css.d.ts +1 -0
  62. package/dist/types/ui/selection-pill.d.ts +106 -0
  63. package/dist/types/ui/timeline-model.d.ts +27 -0
  64. package/dist/types/ui/timeline.d.ts +16 -1
  65. package/dist/types/ui/tree.d.ts +3 -2
  66. package/dist/types/ui/walkthrough-annotations.d.ts +42 -0
  67. package/dist/types/ui/walkthrough-blocks.d.ts +87 -0
  68. package/dist/types/ui/walkthrough-media.d.ts +30 -1
  69. package/dist/types/ui/walkthrough-model.d.ts +469 -5
  70. package/dist/types/ui/walkthrough.d.ts +27 -5
  71. package/dist/ui-react.js +8087 -2350
  72. package/dist/ui-solid.js +8100 -2363
  73. package/dist/ui.js +9751 -3963
  74. package/package.json +13 -1
@@ -1,6 +1,6 @@
1
1
  import { type StoragePort } from "../core/storage.js";
2
2
  import { type UiLook } from "./look.js";
3
- import { type MediaSlot } from "./walkthrough-media.js";
3
+ import { type MediaSlot, type StepLinks } from "./walkthrough-media.js";
4
4
  import { type WalkOption, type WalkPage, type WalkthroughDoc, type WalkthroughFeedback, type WalkthroughOption, type WalkthroughState } from "./walkthrough-model.js";
5
5
  export interface TasteTestOptions extends UiLook {
6
6
  readonly options: readonly (WalkthroughOption | WalkOption)[];
@@ -9,6 +9,10 @@ export interface TasteTestOptions extends UiLook {
9
9
  readonly onPick?: (id: string | null) => void;
10
10
  /** Mount each option's media when near the view (on by default). */
11
11
  readonly lazy?: boolean;
12
+ /** The page's steps, for media that name one. */
13
+ readonly steps?: StepLinks;
14
+ /** Options can be picked (on by default); off, they sit side by side under their labels. */
15
+ readonly pickable?: boolean;
12
16
  }
13
17
  export interface TasteTest {
14
18
  readonly element: HTMLElement;
@@ -24,7 +28,7 @@ export interface TasteTest {
24
28
  * A vs B (or more): each option's letter, label and media side by side (stacking where it's
25
29
  * narrow). The picked one takes a check and a wash; the others step back.
26
30
  */
27
- export declare function tasteTest(container: HTMLElement, options: TasteTestOptions): TasteTest;
31
+ export declare function tasteTest(container: HTMLElement, given: TasteTestOptions): TasteTest;
28
32
  export interface WalkthroughOptions extends UiLook {
29
33
  readonly doc: WalkthroughDoc;
30
34
  /** Where Kit's answers are kept (localStorage by default; `null` keeps none). */
@@ -33,8 +37,26 @@ export interface WalkthroughOptions extends UiLook {
33
37
  readonly onFeedback?: (feedback: WalkthroughFeedback) => void;
34
38
  /** The page's keys (on by default). */
35
39
  readonly keys?: boolean;
36
- /** The contents and progress rail (on by default). */
37
- readonly rail?: boolean;
40
+ /**
41
+ * Kit's review tools (off by default): progress, notes (typed, voice, ink) and their bar,
42
+ * Copy feedback, the key hints, and picking between options. Off, the page only shows: options
43
+ * sit side by side, and j / k, f and the arrows still work.
44
+ */
45
+ readonly review?: boolean;
46
+ /**
47
+ * The contents and progress rail (on by default): sticky at the page's left edge, the column
48
+ * centred in the room beside it; `"right"` mirrors it. Under 960 px it hides (with review
49
+ * on, a bar on top keeps the progress and the export).
50
+ */
51
+ readonly rail?: boolean | "left" | "right";
52
+ /** Each step on a card of its own (off by default: steps sit on the page, hairlines between). */
53
+ readonly cards?: boolean;
54
+ /**
55
+ * The note bar: a small launcher in the column's corner that opens into the bar on a click, n,
56
+ * a recording or ink, and folds back when it's empty (`"collapsed"`, the default); the bar
57
+ * always there (`"docked"`); or none (`"hidden"`; `send()` still works).
58
+ */
59
+ readonly noteBar?: "collapsed" | "docked" | "hidden";
38
60
  /** Sending a note moves on to the next step (on by default). */
39
61
  readonly advance?: boolean;
40
62
  }
@@ -60,4 +82,4 @@ export interface Walkthrough {
60
82
  reset(): void;
61
83
  dispose(): void;
62
84
  }
63
- export declare function walkthrough(container: HTMLElement, options: WalkthroughOptions): Walkthrough;
85
+ export declare function walkthrough(container: HTMLElement, given: WalkthroughOptions): Walkthrough;