@duro-app/ui 5.6.0 → 5.7.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.
Files changed (60) hide show
  1. package/dist/{Table-B1sWL3GA.js → Table-Dj7PXqO_.js} +3 -2
  2. package/dist/Table-Dj7PXqO_.js.map +1 -0
  3. package/dist/components/DragDrop/DragDrop.d.ts +95 -14
  4. package/dist/components/DragDrop/DragDrop.d.ts.map +1 -1
  5. package/dist/components/DragDrop/DragDrop.meta.d.ts.map +1 -1
  6. package/dist/components/DragDrop/DragDropBoard.stories.d.ts +69 -0
  7. package/dist/components/DragDrop/DragDropBoard.stories.d.ts.map +1 -0
  8. package/dist/components/DragDrop/styles.css.d.ts +80 -3
  9. package/dist/components/DragDrop/styles.css.d.ts.map +1 -1
  10. package/dist/components/Meter/Meter.d.ts +17 -0
  11. package/dist/components/Meter/Meter.d.ts.map +1 -0
  12. package/dist/components/Meter/Meter.meta.d.ts +3 -0
  13. package/dist/components/Meter/Meter.meta.d.ts.map +1 -0
  14. package/dist/components/Meter/Meter.stories.d.ts +12 -0
  15. package/dist/components/Meter/Meter.stories.d.ts.map +1 -0
  16. package/dist/components/Meter/styles.css.d.ts +34 -0
  17. package/dist/components/Meter/styles.css.d.ts.map +1 -0
  18. package/dist/components/Timeline/Timeline.d.ts +71 -0
  19. package/dist/components/Timeline/Timeline.d.ts.map +1 -0
  20. package/dist/components/Timeline/Timeline.meta.d.ts +3 -0
  21. package/dist/components/Timeline/Timeline.meta.d.ts.map +1 -0
  22. package/dist/components/Timeline/Timeline.stories.d.ts +26 -0
  23. package/dist/components/Timeline/Timeline.stories.d.ts.map +1 -0
  24. package/dist/components/Timeline/styles.css.d.ts +158 -0
  25. package/dist/components/Timeline/styles.css.d.ts.map +1 -0
  26. package/dist/components/Toast/Toast.meta.d.ts.map +1 -1
  27. package/dist/components/Toast/Toast.stories.d.ts +9 -0
  28. package/dist/components/Toast/Toast.stories.d.ts.map +1 -1
  29. package/dist/components/Toast/ToastProvider.d.ts +11 -5
  30. package/dist/components/Toast/ToastProvider.d.ts.map +1 -1
  31. package/dist/components/Toast/index.d.ts +1 -1
  32. package/dist/components/Toast/index.d.ts.map +1 -1
  33. package/dist/components/Toast/styles.css.d.ts +6 -0
  34. package/dist/components/Toast/styles.css.d.ts.map +1 -1
  35. package/dist/index.css +1 -1
  36. package/dist/index.d.ts +4 -2
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +5029 -3927
  39. package/dist/index.js.map +1 -1
  40. package/dist/table.js +1 -1
  41. package/package.json +2 -2
  42. package/src/components/DragDrop/DragDrop.meta.ts +22 -21
  43. package/src/components/DragDrop/DragDrop.tsx +1147 -246
  44. package/src/components/DragDrop/DragDropBoard.stories.tsx +668 -0
  45. package/src/components/DragDrop/styles.css.ts +74 -4
  46. package/src/components/Meter/Meter.meta.ts +24 -0
  47. package/src/components/Meter/Meter.stories.tsx +64 -0
  48. package/src/components/Meter/Meter.tsx +55 -0
  49. package/src/components/Meter/styles.css.ts +30 -0
  50. package/src/components/Timeline/Timeline.meta.ts +46 -0
  51. package/src/components/Timeline/Timeline.stories.tsx +238 -0
  52. package/src/components/Timeline/Timeline.tsx +332 -0
  53. package/src/components/Timeline/styles.css.ts +162 -0
  54. package/src/components/Toast/Toast.meta.ts +2 -1
  55. package/src/components/Toast/Toast.stories.tsx +84 -0
  56. package/src/components/Toast/ToastProvider.tsx +49 -11
  57. package/src/components/Toast/index.ts +7 -1
  58. package/src/components/Toast/styles.css.ts +2 -0
  59. package/src/index.ts +16 -0
  60. package/dist/Table-B1sWL3GA.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"DragDrop.d.ts","sourceRoot":"","sources":["../../../src/components/DragDrop/DragDrop.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AA6Bd,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,OAAO;IAC3C,QAAQ,CAA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oC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;uDACmD;IACnD,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;GAIG;AACH,iBAAS,MAAM,CAAC,EAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAC,EAAE,mBAAmB,2CA2CvE;AAED,8EAA8E;AAC9E,wBAAgB,WAAW,IAAI;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAAA;IACpC,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAA;IACxC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CAC3B,CAOA;AAED,eAAO,MAAM,QAAQ;;;;;CAA6B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"DragDrop.meta.d.ts","sourceRoot":"","sources":["../../../src/components/DragDrop/DragDrop.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aA8ClB,CAAA"}
1
+ {"version":3,"file":"DragDrop.meta.d.ts","sourceRoot":"","sources":["../../../src/components/DragDrop/DragDrop.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aA+ClB,CAAA"}
@@ -0,0 +1,69 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { DragDropEvent, DragDropOverEvent } from './DragDrop';
3
+ /**
4
+ * The board shapes DragDrop 5.x is for: columns that are labelled lists,
5
+ * cards with a keyboard handle, a card zone nested in a column zone (attach),
6
+ * a refusal with a reason, edge auto-scroll, and a 300-card board for the
7
+ * render budget.
8
+ */
9
+ interface Args {
10
+ onDrop?: (e: DragDropEvent<Card>) => void;
11
+ onDragOver?: (e: DragDropOverEvent<Card>) => void;
12
+ }
13
+ declare const meta: Meta<Args>;
14
+ export default meta;
15
+ type Story = StoryObj<Args>;
16
+ interface Card {
17
+ readonly id: string;
18
+ readonly title: string;
19
+ readonly kind: 'task' | 'activity';
20
+ }
21
+ /** Three labelled list columns. Tab reaches one card per column; arrows walk
22
+ * the cards; Space picks a card up, arrows move it, Space drops, Escape
23
+ * cancels. Mouse drags show the same placeholder. */
24
+ export declare const Kanban3: Story;
25
+ /** Space, arrows, Space: the card moves; announcements are list-style and
26
+ * focus comes back to the card. */
27
+ export declare const KeyboardMove: Story;
28
+ /** Escape puts the card back, focused, and nothing is dropped. */
29
+ export declare const KeyboardCancel: Story;
30
+ /** Arrow keys walk the handles without picking: Up/Down in a column,
31
+ * Left/Right across columns. */
32
+ export declare const KeyboardRoving: Story;
33
+ /** `order` decides Left/Right, not the DOM: here Done comes before In
34
+ * progress. */
35
+ export declare const ExplicitZoneOrder: Story;
36
+ /** A mouse drag shows the placeholder where the card would land, calls
37
+ * onDragOver as the target changes, and drops there. */
38
+ export declare const PointerReorder: Story;
39
+ /** An inbox of activities beside two columns of tasks. Drop an activity on a
40
+ * task card to attach it (the card's zone sits inside the column's); drop
41
+ * it on a column and the column refuses, with its reason. */
42
+ export declare const NestedZones: Story;
43
+ /** The card's own zone wins over its column (innermost zone): an activity
44
+ * dropped on a card attaches to it. */
45
+ export declare const NestedAttach: Story;
46
+ /** A task dragged over another task passes through the card's zone (it
47
+ * only takes activities) to the column, which reorders. */
48
+ export declare const NestedFallsThrough: Story;
49
+ /** A column refuses an activity with a reason: the ghost shows it, it is
50
+ * announced, and releasing there drops nothing. */
51
+ export declare const RefusalWithReason: Story;
52
+ /** A 30-card column that scrolls: hold a dragged card near its edge. */
53
+ export declare const ScrollingColumn: Story;
54
+ /** Holding a card near the bottom edge of a scrolling column scrolls it, and
55
+ * the drop lands among the cards scrolled into view. */
56
+ export declare const EdgeAutoScroll: Story;
57
+ declare global {
58
+ interface Window {
59
+ __dragDropRenders?: number;
60
+ }
61
+ }
62
+ /**
63
+ * 300 cards. A pointer drag across a column re-renders at most a handful of
64
+ * zones and items per frame (the two around the moving placeholder); the
65
+ * ghost moves without rendering. The play function counts Profiler commits
66
+ * per frame and asserts fewer than 5.
67
+ */
68
+ export declare const Perf300: Story;
69
+ //# sourceMappingURL=DragDropBoard.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragDropBoard.stories.d.ts","sourceRoot":"","sources":["../../../src/components/DragDrop/DragDropBoard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAIpD,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAA;AASnB;;;;;GAKG;AACH,UAAU,IAAI;IACZ,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,IAAI,CAAA;IACzC,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,iBAAiB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAA;CAClD;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAIpB,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;AA4D3B,UAAU,IAAI;IACZ,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAA;CACnC;AAkMD;;sDAEsD;AACtD,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAA;AAED;oCACoC;AACpC,eAAO,MAAM,YAAY,EAAE,KAqC1B,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,cAAc,EAAE,KAe5B,CAAA;AAED;iCACiC;AACjC,eAAO,MAAM,cAAc,EAAE,KAY5B,CAAA;AAED;gBACgB;AAChB,eAAO,MAAM,iBAAiB,EAAE,KAW/B,CAAA;AAED;yDACyD;AACzD,eAAO,MAAM,cAAc,EAAE,KAmB5B,CAAA;AAgDD;;8DAE8D;AAC9D,eAAO,MAAM,WAAW,EAAE,KAGzB,CAAA;AAED;wCACwC;AACxC,eAAO,MAAM,YAAY,EAAE,KAc1B,CAAA;AAED;4DAC4D;AAC5D,eAAO,MAAM,kBAAkB,EAAE,KAYhC,CAAA;AAED;oDACoD;AACpD,eAAO,MAAM,iBAAiB,EAAE,KAmB/B,CAAA;AAqBD,wEAAwE;AACxE,eAAO,MAAM,eAAe,EAAE,KAE7B,CAAA;AAED;yDACyD;AACzD,eAAO,MAAM,cAAc,EAAE,KAkB5B,CAAA;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAC3B;CACF;AAyCD;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,KAwCrB,CAAA"}
@@ -15,12 +15,59 @@ export declare const styles: Readonly<{
15
15
  readonly opacity: css.StyleXClassNameFor<"opacity", 0.4>;
16
16
  readonly cursor: css.StyleXClassNameFor<"cursor", "grabbing">;
17
17
  }>;
18
+ readonly handle: Readonly<{
19
+ readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
20
+ readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "none" | "solid">;
21
+ readonly outlineWidth: css.StyleXClassNameFor<"outlineWidth", string>;
22
+ readonly outlineColor: css.StyleXClassNameFor<"outlineColor", string>;
23
+ readonly outlineOffset: css.StyleXClassNameFor<"outlineOffset", string>;
24
+ }>;
25
+ readonly handlePicked: Readonly<{
26
+ readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "dashed">;
27
+ }>;
18
28
  readonly zone: Readonly<{
19
29
  readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
20
30
  readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "box-shadow, background-color">;
21
31
  readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
22
32
  readonly transitionTimingFunction: css.StyleXClassNameFor<"transitionTimingFunction", string>;
23
33
  }>;
34
+ readonly listVertical: Readonly<{
35
+ readonly display: css.StyleXClassNameFor<"display", "flex">;
36
+ readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "column">;
37
+ }>;
38
+ readonly listHorizontal: Readonly<{
39
+ readonly display: css.StyleXClassNameFor<"display", "flex">;
40
+ readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "row">;
41
+ }>;
42
+ readonly gapXs: Readonly<{
43
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
44
+ }>;
45
+ readonly gapSm: Readonly<{
46
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
47
+ }>;
48
+ readonly gapMs: Readonly<{
49
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
50
+ }>;
51
+ readonly gapMd: Readonly<{
52
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
53
+ }>;
54
+ readonly gapLg: Readonly<{
55
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
56
+ }>;
57
+ readonly gapXl: Readonly<{
58
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
59
+ }>;
60
+ readonly gapXxl: Readonly<{
61
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
62
+ }>;
63
+ readonly gapXxxl: Readonly<{
64
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
65
+ }>;
66
+ readonly fill: Readonly<{
67
+ readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
68
+ readonly width: css.StyleXClassNameFor<"width", "100%">;
69
+ readonly height: css.StyleXClassNameFor<"height", "100%">;
70
+ }>;
24
71
  readonly zoneReady: Readonly<{
25
72
  readonly boxShadow: css.StyleXClassNameFor<"boxShadow", string>;
26
73
  readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "solid">;
@@ -36,6 +83,16 @@ export declare const styles: Readonly<{
36
83
  readonly outlineColor: css.StyleXClassNameFor<"outlineColor", "transparent">;
37
84
  readonly outlineOffset: css.StyleXClassNameFor<"outlineOffset", `calc(-1 * ${css.StyleXVar<string>})`>;
38
85
  }>;
86
+ readonly zoneRefused: Readonly<{
87
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
88
+ readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "dashed">;
89
+ readonly outlineWidth: css.StyleXClassNameFor<"outlineWidth", string>;
90
+ readonly outlineColor: css.StyleXClassNameFor<"outlineColor", string>;
91
+ readonly outlineOffset: css.StyleXClassNameFor<"outlineOffset", `calc(-1 * ${css.StyleXVar<string>})`>;
92
+ }>;
93
+ readonly placeholder: Readonly<{
94
+ readonly flexShrink: css.StyleXClassNameFor<"flexShrink", 0>;
95
+ }>;
39
96
  readonly ghost: Readonly<{
40
97
  readonly position: css.StyleXClassNameFor<"position", "fixed">;
41
98
  readonly top: css.StyleXClassNameFor<"top", 0>;
@@ -45,10 +102,30 @@ export declare const styles: Readonly<{
45
102
  readonly opacity: css.StyleXClassNameFor<"opacity", 0.9>;
46
103
  readonly cursor: css.StyleXClassNameFor<"cursor", "grabbing">;
47
104
  }>;
48
- readonly ghostAt: (x: number, y: number, width: number, height: number) => readonly [Readonly<{
105
+ readonly ghostTilt: Readonly<{
106
+ readonly transform: css.StyleXClassNameFor<"transform", "none" | "rotate(2deg)">;
107
+ }>;
108
+ readonly refusal: Readonly<{
109
+ readonly marginTop: css.StyleXClassNameFor<"marginTop", string>;
110
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
111
+ readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
112
+ readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
113
+ readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
114
+ readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
115
+ readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
116
+ readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "solid">;
117
+ readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
118
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
119
+ readonly color: css.StyleXClassNameFor<"color", string>;
120
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
121
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
122
+ readonly boxShadow: css.StyleXClassNameFor<"boxShadow", string>;
123
+ readonly width: css.StyleXClassNameFor<"width", "max-content">;
124
+ readonly maxWidth: css.StyleXClassNameFor<"maxWidth", "100%">;
125
+ }>;
126
+ readonly ghostSize: (width: number, height: number) => readonly [Readonly<{
49
127
  width: css.StyleXClassNameFor<"width", number>;
50
- height: css.StyleXClassNameFor<"height", number>;
51
- transform: css.StyleXClassNameFor<"transform", string>;
128
+ minHeight: css.StyleXClassNameFor<"minHeight", number>;
52
129
  }>, css.InlineStyles];
53
130
  }>;
54
131
  //# sourceMappingURL=styles.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/DragDrop/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8DjB,CAAA"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/DragDrop/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AASpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmIjB,CAAA"}
@@ -0,0 +1,17 @@
1
+ export type MeterTone = 'accent' | 'success' | 'warning' | 'error';
2
+ export interface MeterProps {
3
+ value: number;
4
+ /** Defaults to 0. */
5
+ min?: number;
6
+ /** Defaults to 1, so a fraction needs nothing else. */
7
+ max?: number;
8
+ /** The accessible name, e.g. "In progress WIP". */
9
+ label: string;
10
+ /** What screen readers read for the value, e.g. "4 of 3, over the limit".
11
+ * Defaults to the percentage. */
12
+ valueText?: string;
13
+ /** The fill's colour; defaults to accent. */
14
+ tone?: MeterTone;
15
+ }
16
+ export declare function Meter({ value, min, max, label, valueText, tone }: MeterProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=Meter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Meter.d.ts","sourceRoot":"","sources":["../../../src/components/Meter/Meter.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;AAElE,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,qBAAqB;IACrB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,uDAAuD;IACvD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAA;IACb;sCACkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AASD,wBAAgB,KAAK,CAAC,EAAC,KAAK,EAAE,GAAO,EAAE,GAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAe,EAAC,EAAE,UAAU,2CAoB7F"}
@@ -0,0 +1,3 @@
1
+ import { ComponentMeta } from '../component-meta';
2
+ export declare const meta: ComponentMeta;
3
+ //# sourceMappingURL=Meter.meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Meter.meta.d.ts","sourceRoot":"","sources":["../../../src/components/Meter/Meter.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAqBlB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Meter } from './Meter';
3
+ declare const meta: Meta<typeof Meter>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Meter>;
6
+ export declare const Default: Story;
7
+ /** Tones for a level against a limit: under, at, over. */
8
+ export declare const Tones: Story;
9
+ /** Over the maximum, aria-valuenow stays in range and the text carries the
10
+ * true value; the bar fills, no further. */
11
+ export declare const OverTheLimit: Story;
12
+ //# sourceMappingURL=Meter.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Meter.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Meter/Meter.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAGpD,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA;AAU7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAK5B,CAAA;AACD,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAA;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAA;AAED,0DAA0D;AAC1D,eAAO,MAAM,KAAK,EAAE,KAanB,CAAA;AAED;6CAC6C;AAC7C,eAAO,MAAM,YAAY,EAAE,KAY1B,CAAA"}
@@ -0,0 +1,34 @@
1
+ import { css } from 'react-strict-dom';
2
+ export declare const styles: Readonly<{
3
+ readonly track: Readonly<{
4
+ readonly position: css.StyleXClassNameFor<"position", "relative">;
5
+ readonly width: css.StyleXClassNameFor<"width", "100%">;
6
+ readonly height: css.StyleXClassNameFor<"height", string>;
7
+ readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
8
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
9
+ readonly overflow: css.StyleXClassNameFor<"overflow", "hidden">;
10
+ }>;
11
+ readonly fill: Readonly<{
12
+ readonly height: css.StyleXClassNameFor<"height", "100%">;
13
+ readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
14
+ readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "width">;
15
+ readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
16
+ readonly transitionTimingFunction: css.StyleXClassNameFor<"transitionTimingFunction", string>;
17
+ }>;
18
+ readonly accent: Readonly<{
19
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
20
+ }>;
21
+ readonly success: Readonly<{
22
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
23
+ }>;
24
+ readonly warning: Readonly<{
25
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
26
+ }>;
27
+ readonly error: Readonly<{
28
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
29
+ }>;
30
+ readonly fillAt: (percent: number) => readonly [Readonly<{
31
+ width: css.StyleXClassNameFor<"width", string>;
32
+ }>, css.InlineStyles];
33
+ }>;
34
+ //# sourceMappingURL=styles.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Meter/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAMpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBjB,CAAA"}
@@ -0,0 +1,71 @@
1
+ import { ReactNode } from 'react';
2
+ import { DragDropItemData, DragDropVerdict } from '../DragDrop/DragDrop';
3
+ /** A calendar day, 'YYYY-MM-DD'. */
4
+ export type TimelineDate = string;
5
+ export interface TimelineRootProps {
6
+ /** First day on the axis. */
7
+ start: TimelineDate;
8
+ /** Last day on the axis (included). */
9
+ end: TimelineDate;
10
+ /** Draws the today marker when inside the range. */
11
+ today?: TimelineDate;
12
+ /** The timeline's accessible name. */
13
+ 'aria-label': string;
14
+ /** Text above the row labels, e.g. "Milestones". */
15
+ heading?: ReactNode;
16
+ /** The today marker's text. */
17
+ todayLabel?: string;
18
+ /** BCP 47 locale for the default date format. */
19
+ locale?: string;
20
+ /** Formats a day for the axis and the edge sliders' value text. */
21
+ formatDate?: (date: TimelineDate) => string;
22
+ children: ReactNode;
23
+ }
24
+ declare function Root({ start, end, today, 'aria-label': ariaLabel, heading, todayLabel, locale, formatDate, children, }: TimelineRootProps): import("react/jsx-runtime").JSX.Element;
25
+ export interface TimelineRowProps {
26
+ /** The row's name, shown in the label column. */
27
+ label: string;
28
+ /** A second line under the label, e.g. "4 of 7 done". */
29
+ description?: ReactNode;
30
+ children?: ReactNode;
31
+ }
32
+ declare function Row({ label, description, children }: TimelineRowProps): import("react/jsx-runtime").JSX.Element;
33
+ export interface TimelineBarDropZone<T = unknown> {
34
+ /** The DragDrop zone id; drops arrive in the Root's onDrop with it. */
35
+ id: string;
36
+ /** Read to screen readers when an item moves or drops here. */
37
+ label: string;
38
+ accepts?: (item: DragDropItemData<T>) => DragDropVerdict;
39
+ }
40
+ export interface TimelineBarProps<T = unknown> {
41
+ start: TimelineDate;
42
+ end: TimelineDate;
43
+ /** The bar's accessible name. */
44
+ label: string;
45
+ /** Done fraction, 0–1, drawn as a fill from the start edge. */
46
+ progress?: number;
47
+ /** `planned` draws a dashed outline; `done` the success tone. */
48
+ tone?: 'default' | 'planned' | 'done';
49
+ /** Makes the bar a toggle button (aria-pressed). */
50
+ selected?: boolean;
51
+ onSelect?: () => void;
52
+ /** Adds the start-edge slider. */
53
+ onStartChange?: (date: TimelineDate) => void;
54
+ /** Adds the end-edge slider. */
55
+ onEndChange?: (date: TimelineDate) => void;
56
+ /** Names of the edge sliders; default "<label>, start" / "<label>, end". */
57
+ startLabel?: string;
58
+ endLabel?: string;
59
+ /** Makes the bar a DragDrop.Zone (needs a DragDrop.Root above). */
60
+ dropZone?: TimelineBarDropZone<T>;
61
+ /** Text inside the bar, e.g. "4/7". */
62
+ children?: ReactNode;
63
+ }
64
+ declare function Bar<T = unknown>({ start, end, label, progress, tone, selected, onSelect, onStartChange, onEndChange, startLabel, endLabel, dropZone, children, }: TimelineBarProps<T>): import("react/jsx-runtime").JSX.Element;
65
+ export declare const Timeline: {
66
+ Root: typeof Root;
67
+ Row: typeof Row;
68
+ Bar: typeof Bar;
69
+ };
70
+ export {};
71
+ //# sourceMappingURL=Timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAA;AAExE,OAAO,EAAW,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAC,MAAM,sBAAsB,CAAA;AAe1F,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AA8BjC,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,KAAK,EAAE,YAAY,CAAA;IACnB,uCAAuC;IACvC,GAAG,EAAE,YAAY,CAAA;IACjB,oDAAoD;IACpD,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,sCAAsC;IACtC,YAAY,EAAE,MAAM,CAAA;IACpB,oDAAoD;IACpD,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mEAAmE;IACnE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,MAAM,CAAA;IAC3C,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EACZ,KAAK,EACL,GAAG,EACH,KAAK,EACL,YAAY,EAAE,SAAS,EACvB,OAAO,EACP,UAAoB,EACpB,MAAM,EACN,UAAU,EACV,QAAQ,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;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAQD,iBAAS,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,EACxB,KAAK,EACL,GAAG,EACH,KAAK,EACL,QAAQ,EACR,IAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,WAAW,EACX,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE,gBAAgB,CAAC,CAAC,CAAC,2CA+DrB;AAqDD,eAAO,MAAM,QAAQ;;;;CAAmB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ComponentMeta } from '../component-meta';
2
+ export declare const meta: ComponentMeta;
3
+ //# sourceMappingURL=Timeline.meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timeline.meta.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aA2ClB,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { DragDropEvent } from '../DragDrop/DragDrop';
3
+ interface Args {
4
+ onDrop?: (e: DragDropEvent<Task>) => void;
5
+ onSelect?: (id: string) => void;
6
+ }
7
+ declare const meta: Meta<Args>;
8
+ export default meta;
9
+ type Story = StoryObj<Args>;
10
+ interface Task {
11
+ id: string;
12
+ title: string;
13
+ }
14
+ /** Three milestones over seven weeks, with progress fills, today, a
15
+ * selectable bar and keyboard edge sliders. */
16
+ export declare const Default: Story;
17
+ /** Bar edges are sliders whose value is a date: arrows move a day, Page
18
+ * keys a week, Home/End to the limit. */
19
+ export declare const KeyboardEdges: Story;
20
+ /** Drag an unscheduled task onto a milestone bar (or pick it with Space and
21
+ * move it with the arrow keys). */
22
+ export declare const Droppable: Story;
23
+ /** Bars are DragDrop zones: drop a task on a milestone bar, by pointer or
24
+ * by keyboard. */
25
+ export declare const DropOnBar: Story;
26
+ //# sourceMappingURL=Timeline.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timeline.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAKpD,OAAO,EAAW,KAAK,aAAa,EAAC,MAAM,sBAAsB,CAAA;AAQjE,UAAU,IAAI;IACZ,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,IAAI,CAAA;IACzC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAIpB,CAAA;AACD,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;AAgC3B,UAAU,IAAI;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd;AAkFD;gDACgD;AAChD,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAA;AAED;0CAC0C;AAC1C,eAAO,MAAM,aAAa,EAAE,KAmB3B,CAAA;AAED;oCACoC;AACpC,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAA;AAED;mBACmB;AACnB,eAAO,MAAM,SAAS,EAAE,KAiDvB,CAAA"}
@@ -0,0 +1,158 @@
1
+ import { css } from 'react-strict-dom';
2
+ export declare const styles: Readonly<{
3
+ readonly root: Readonly<{
4
+ readonly display: css.StyleXClassNameFor<"display", "grid">;
5
+ readonly gridTemplateColumns: css.StyleXClassNameFor<"gridTemplateColumns", `${css.StyleXVar<string>} 1fr`>;
6
+ readonly rowGap: css.StyleXClassNameFor<"rowGap", string>;
7
+ readonly color: css.StyleXClassNameFor<"color", string>;
8
+ }>;
9
+ readonly heading: Readonly<{
10
+ readonly display: css.StyleXClassNameFor<"display", "flex">;
11
+ readonly alignItems: css.StyleXClassNameFor<"alignItems", "flex-end">;
12
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
13
+ readonly color: css.StyleXClassNameFor<"color", string>;
14
+ }>;
15
+ readonly axis: Readonly<{
16
+ readonly position: css.StyleXClassNameFor<"position", "relative">;
17
+ readonly height: css.StyleXClassNameFor<"height", string>;
18
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
19
+ readonly color: css.StyleXClassNameFor<"color", string>;
20
+ readonly whiteSpace: css.StyleXClassNameFor<"whiteSpace", "nowrap">;
21
+ }>;
22
+ readonly tick: Readonly<{
23
+ readonly position: css.StyleXClassNameFor<"position", "absolute">;
24
+ readonly top: css.StyleXClassNameFor<"top", 0>;
25
+ readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
26
+ readonly borderLeftWidth: css.StyleXClassNameFor<"borderLeftWidth", string>;
27
+ readonly borderLeftStyle: css.StyleXClassNameFor<"borderLeftStyle", "solid">;
28
+ readonly borderLeftColor: css.StyleXClassNameFor<"borderLeftColor", string>;
29
+ }>;
30
+ readonly todayLabel: Readonly<{
31
+ readonly position: css.StyleXClassNameFor<"position", "absolute">;
32
+ readonly bottom: css.StyleXClassNameFor<"bottom", 0>;
33
+ readonly transform: css.StyleXClassNameFor<"transform", "translateX(-50%)">;
34
+ readonly color: css.StyleXClassNameFor<"color", string>;
35
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
36
+ }>;
37
+ readonly left: (percent: number) => readonly [Readonly<{
38
+ left: css.StyleXClassNameFor<"left", string>;
39
+ }>, css.InlineStyles];
40
+ readonly width: (percent: number) => readonly [Readonly<{
41
+ width: css.StyleXClassNameFor<"width", string>;
42
+ }>, css.InlineStyles];
43
+ readonly label: Readonly<{
44
+ readonly display: css.StyleXClassNameFor<"display", "flex">;
45
+ readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "column">;
46
+ readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "center">;
47
+ readonly minWidth: css.StyleXClassNameFor<"minWidth", 0>;
48
+ readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
49
+ }>;
50
+ readonly labelText: Readonly<{
51
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
52
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
53
+ readonly whiteSpace: css.StyleXClassNameFor<"whiteSpace", "nowrap">;
54
+ readonly overflow: css.StyleXClassNameFor<"overflow", "hidden">;
55
+ readonly textOverflow: css.StyleXClassNameFor<"textOverflow", "ellipsis">;
56
+ }>;
57
+ readonly labelDescription: Readonly<{
58
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
59
+ readonly color: css.StyleXClassNameFor<"color", string>;
60
+ readonly whiteSpace: css.StyleXClassNameFor<"whiteSpace", "nowrap">;
61
+ }>;
62
+ readonly track: Readonly<{
63
+ readonly position: css.StyleXClassNameFor<"position", "relative">;
64
+ readonly height: css.StyleXClassNameFor<"height", string>;
65
+ }>;
66
+ readonly today: Readonly<{
67
+ readonly position: css.StyleXClassNameFor<"position", "absolute">;
68
+ readonly top: css.StyleXClassNameFor<"top", 0>;
69
+ readonly bottom: css.StyleXClassNameFor<"bottom", 0>;
70
+ readonly borderLeftWidth: css.StyleXClassNameFor<"borderLeftWidth", string>;
71
+ readonly borderLeftStyle: css.StyleXClassNameFor<"borderLeftStyle", "solid">;
72
+ readonly borderLeftColor: css.StyleXClassNameFor<"borderLeftColor", string>;
73
+ readonly pointerEvents: css.StyleXClassNameFor<"pointerEvents", "none">;
74
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", 2>;
75
+ }>;
76
+ readonly bar: Readonly<{
77
+ readonly position: css.StyleXClassNameFor<"position", "absolute">;
78
+ readonly top: css.StyleXClassNameFor<"top", "50%">;
79
+ readonly transform: css.StyleXClassNameFor<"transform", "translateY(-50%)">;
80
+ readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
81
+ readonly height: css.StyleXClassNameFor<"height", string>;
82
+ }>;
83
+ readonly face: Readonly<{
84
+ readonly position: css.StyleXClassNameFor<"position", "relative">;
85
+ readonly display: css.StyleXClassNameFor<"display", "flex">;
86
+ readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
87
+ readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
88
+ readonly width: css.StyleXClassNameFor<"width", "100%">;
89
+ readonly height: css.StyleXClassNameFor<"height", "100%">;
90
+ readonly padding: css.StyleXClassNameFor<"padding", 0>;
91
+ readonly overflow: css.StyleXClassNameFor<"overflow", "hidden">;
92
+ readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
93
+ readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
94
+ readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "solid">;
95
+ readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
96
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
97
+ readonly color: css.StyleXClassNameFor<"color", string>;
98
+ readonly cursor: css.StyleXClassNameFor<"cursor", "pointer">;
99
+ readonly textAlign: css.StyleXClassNameFor<"textAlign", "left">;
100
+ readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "box-shadow, border-color">;
101
+ readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
102
+ readonly transitionTimingFunction: css.StyleXClassNameFor<"transitionTimingFunction", string>;
103
+ readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "none" | "solid">;
104
+ readonly outlineWidth: css.StyleXClassNameFor<"outlineWidth", string>;
105
+ readonly outlineColor: css.StyleXClassNameFor<"outlineColor", string>;
106
+ readonly outlineOffset: css.StyleXClassNameFor<"outlineOffset", string>;
107
+ }>;
108
+ readonly faceSelected: Readonly<{
109
+ readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
110
+ readonly boxShadow: css.StyleXClassNameFor<"boxShadow", `0 0 0 ${css.StyleXVar<string>} ${css.StyleXVar<string>}`>;
111
+ }>;
112
+ readonly barPlanned: Readonly<{
113
+ readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "dashed">;
114
+ }>;
115
+ readonly barDone: Readonly<{
116
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
117
+ }>;
118
+ readonly fill: Readonly<{
119
+ readonly position: css.StyleXClassNameFor<"position", "absolute">;
120
+ readonly left: css.StyleXClassNameFor<"left", 0>;
121
+ readonly top: css.StyleXClassNameFor<"top", 0>;
122
+ readonly bottom: css.StyleXClassNameFor<"bottom", 0>;
123
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
124
+ readonly borderRightWidth: css.StyleXClassNameFor<"borderRightWidth", string>;
125
+ readonly borderRightStyle: css.StyleXClassNameFor<"borderRightStyle", "solid">;
126
+ readonly borderRightColor: css.StyleXClassNameFor<"borderRightColor", string>;
127
+ }>;
128
+ readonly fillDone: Readonly<{
129
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
130
+ readonly borderRightColor: css.StyleXClassNameFor<"borderRightColor", string>;
131
+ }>;
132
+ readonly barText: Readonly<{
133
+ readonly position: css.StyleXClassNameFor<"position", "relative">;
134
+ readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
135
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
136
+ readonly fontVariantNumeric: css.StyleXClassNameFor<"fontVariantNumeric", "tabular-nums">;
137
+ readonly whiteSpace: css.StyleXClassNameFor<"whiteSpace", "nowrap">;
138
+ }>;
139
+ readonly edge: Readonly<{
140
+ readonly position: css.StyleXClassNameFor<"position", "absolute">;
141
+ readonly top: css.StyleXClassNameFor<"top", 0>;
142
+ readonly bottom: css.StyleXClassNameFor<"bottom", 0>;
143
+ readonly width: css.StyleXClassNameFor<"width", string>;
144
+ readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
145
+ readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "none" | "solid">;
146
+ readonly outlineWidth: css.StyleXClassNameFor<"outlineWidth", string>;
147
+ readonly outlineColor: css.StyleXClassNameFor<"outlineColor", string>;
148
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
149
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", 3>;
150
+ }>;
151
+ readonly edgeStart: Readonly<{
152
+ readonly left: css.StyleXClassNameFor<"left", `calc(-1 * ${css.StyleXVar<string>})`>;
153
+ }>;
154
+ readonly edgeEnd: Readonly<{
155
+ readonly right: css.StyleXClassNameFor<"right", `calc(-1 * ${css.StyleXVar<string>})`>;
156
+ }>;
157
+ }>;
158
+ //# sourceMappingURL=styles.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyJjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.meta.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAiClB,CAAA"}
1
+ {"version":3,"file":"Toast.meta.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAkClB,CAAA"}
@@ -6,4 +6,13 @@ type Story = StoryObj<typeof ToastProvider>;
6
6
  export declare const Success: Story;
7
7
  export declare const Error: Story;
8
8
  export declare const Dismiss: Story;
9
+ /** The WIP-limit shape: a warning, announced politely, with its own tone. */
10
+ export declare const Warning: Story;
11
+ /** The countdown stops while the pointer is on the toast and resumes with
12
+ * what was left when it leaves. */
13
+ export declare const PausesOnHover: Story;
14
+ /** Focus inside the toast (its Undo, its close button) holds it too. */
15
+ export declare const PausesOnFocus: Story;
16
+ /** The close button's name comes from the app (dismissLabel). */
17
+ export declare const LocalisedClose: Story;
9
18
  //# sourceMappingURL=Toast.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAGpD,OAAO,EAAC,aAAa,EAAW,MAAM,iBAAiB,CAAA;AAkDvD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAQpC,CAAA;AACD,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAA;AAE3C,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAA"}
1
+ {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAGpD,OAAO,EAAC,aAAa,EAAW,MAAM,iBAAiB,CAAA;AA2EvD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAQpC,CAAA;AACD,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAA;AAE3C,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAA;AAED,6EAA6E;AAC7E,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAID;oCACoC;AACpC,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,aAAa,EAAE,KAe3B,CAAA;AAED,iEAAiE;AACjE,eAAO,MAAM,cAAc,EAAE,KAW5B,CAAA"}