@duro-app/ui 5.6.0 → 5.8.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 (176) hide show
  1. package/dist/{Table-B1sWL3GA.js → Table-CAjPFgTX.js} +398 -394
  2. package/dist/Table-CAjPFgTX.js.map +1 -0
  3. package/dist/{compiler-runtime-B2IcI8_O.js → compiler-runtime-BuugS4D0.js} +67 -59
  4. package/dist/{compiler-runtime-B2IcI8_O.js.map → compiler-runtime-BuugS4D0.js.map} +1 -1
  5. package/dist/components/AppShell/AppShell.d.ts +74 -0
  6. package/dist/components/AppShell/AppShell.d.ts.map +1 -0
  7. package/dist/components/AppShell/AppShell.meta.d.ts +3 -0
  8. package/dist/components/AppShell/AppShell.meta.d.ts.map +1 -0
  9. package/dist/components/AppShell/AppShell.stories.d.ts +186 -0
  10. package/dist/components/AppShell/AppShell.stories.d.ts.map +1 -0
  11. package/dist/components/AppShell/styles.css.d.ts +187 -0
  12. package/dist/components/AppShell/styles.css.d.ts.map +1 -0
  13. package/dist/components/Aside/Aside.d.ts +23 -0
  14. package/dist/components/Aside/Aside.d.ts.map +1 -0
  15. package/dist/components/Aside/Aside.meta.d.ts +3 -0
  16. package/dist/components/Aside/Aside.meta.d.ts.map +1 -0
  17. package/dist/components/Aside/Aside.stories.d.ts +45 -0
  18. package/dist/components/Aside/Aside.stories.d.ts.map +1 -0
  19. package/dist/components/Aside/styles.css.d.ts +44 -0
  20. package/dist/components/Aside/styles.css.d.ts.map +1 -0
  21. package/dist/components/Button/styles.css.d.ts +2 -0
  22. package/dist/components/Button/styles.css.d.ts.map +1 -1
  23. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +3 -3
  24. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts.map +1 -1
  25. package/dist/components/CodeBlock/CodeBlock.d.ts +29 -0
  26. package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
  27. package/dist/components/CodeBlock/CodeBlock.meta.d.ts +3 -0
  28. package/dist/components/CodeBlock/CodeBlock.meta.d.ts.map +1 -0
  29. package/dist/components/CodeBlock/CodeBlock.stories.d.ts +67 -0
  30. package/dist/components/CodeBlock/CodeBlock.stories.d.ts.map +1 -0
  31. package/dist/components/CodeBlock/styles.css.d.ts +32 -0
  32. package/dist/components/CodeBlock/styles.css.d.ts.map +1 -0
  33. package/dist/components/DragDrop/DragDrop.d.ts +95 -14
  34. package/dist/components/DragDrop/DragDrop.d.ts.map +1 -1
  35. package/dist/components/DragDrop/DragDrop.meta.d.ts.map +1 -1
  36. package/dist/components/DragDrop/DragDropBoard.stories.d.ts +69 -0
  37. package/dist/components/DragDrop/DragDropBoard.stories.d.ts.map +1 -0
  38. package/dist/components/DragDrop/styles.css.d.ts +80 -3
  39. package/dist/components/DragDrop/styles.css.d.ts.map +1 -1
  40. package/dist/components/Grid/Grid.d.ts +13 -4
  41. package/dist/components/Grid/Grid.d.ts.map +1 -1
  42. package/dist/components/Grid/Grid.meta.d.ts.map +1 -1
  43. package/dist/components/Grid/Grid.stories.d.ts +28 -0
  44. package/dist/components/Grid/Grid.stories.d.ts.map +1 -1
  45. package/dist/components/Grid/styles.css.d.ts +3 -0
  46. package/dist/components/Grid/styles.css.d.ts.map +1 -1
  47. package/dist/components/Heading/Heading.d.ts +3 -1
  48. package/dist/components/Heading/Heading.d.ts.map +1 -1
  49. package/dist/components/Heading/Heading.stories.d.ts +9 -0
  50. package/dist/components/Heading/Heading.stories.d.ts.map +1 -0
  51. package/dist/components/LinkButton/LinkButton.stories.d.ts +7 -0
  52. package/dist/components/LinkButton/LinkButton.stories.d.ts.map +1 -1
  53. package/dist/components/LinkButton/styles.css.d.ts +2 -0
  54. package/dist/components/LinkButton/styles.css.d.ts.map +1 -1
  55. package/dist/components/LiveRegion/LiveRegion.d.ts +28 -0
  56. package/dist/components/LiveRegion/LiveRegion.d.ts.map +1 -0
  57. package/dist/components/LiveRegion/LiveRegion.meta.d.ts +3 -0
  58. package/dist/components/LiveRegion/LiveRegion.meta.d.ts.map +1 -0
  59. package/dist/components/LiveRegion/LiveRegion.stories.d.ts +66 -0
  60. package/dist/components/LiveRegion/LiveRegion.stories.d.ts.map +1 -0
  61. package/dist/components/Menu/Menu.stories.d.ts +7 -0
  62. package/dist/components/Menu/Menu.stories.d.ts.map +1 -1
  63. package/dist/components/Menu/styles.css.d.ts +2 -0
  64. package/dist/components/Menu/styles.css.d.ts.map +1 -1
  65. package/dist/components/Meter/Meter.d.ts +17 -0
  66. package/dist/components/Meter/Meter.d.ts.map +1 -0
  67. package/dist/components/Meter/Meter.meta.d.ts +3 -0
  68. package/dist/components/Meter/Meter.meta.d.ts.map +1 -0
  69. package/dist/components/Meter/Meter.stories.d.ts +12 -0
  70. package/dist/components/Meter/Meter.stories.d.ts.map +1 -0
  71. package/dist/components/Meter/styles.css.d.ts +34 -0
  72. package/dist/components/Meter/styles.css.d.ts.map +1 -0
  73. package/dist/components/PageNav/styles.css.d.ts +1 -1
  74. package/dist/components/Prose/Prose.d.ts +17 -0
  75. package/dist/components/Prose/Prose.d.ts.map +1 -0
  76. package/dist/components/Prose/Prose.meta.d.ts +3 -0
  77. package/dist/components/Prose/Prose.meta.d.ts.map +1 -0
  78. package/dist/components/Prose/Prose.stories.d.ts +63 -0
  79. package/dist/components/Prose/Prose.stories.d.ts.map +1 -0
  80. package/dist/components/SideNav/SideNav.d.ts +7 -1
  81. package/dist/components/SideNav/SideNav.d.ts.map +1 -1
  82. package/dist/components/SideNav/SideNav.stories.d.ts +3 -0
  83. package/dist/components/SideNav/SideNav.stories.d.ts.map +1 -1
  84. package/dist/components/Time/Time.d.ts +26 -0
  85. package/dist/components/Time/Time.d.ts.map +1 -0
  86. package/dist/components/Time/Time.meta.d.ts +3 -0
  87. package/dist/components/Time/Time.meta.d.ts.map +1 -0
  88. package/dist/components/Time/Time.stories.d.ts +77 -0
  89. package/dist/components/Time/Time.stories.d.ts.map +1 -0
  90. package/dist/components/Time/relative.d.ts +27 -0
  91. package/dist/components/Time/relative.d.ts.map +1 -0
  92. package/dist/components/Timeline/Timeline.d.ts +71 -0
  93. package/dist/components/Timeline/Timeline.d.ts.map +1 -0
  94. package/dist/components/Timeline/Timeline.meta.d.ts +3 -0
  95. package/dist/components/Timeline/Timeline.meta.d.ts.map +1 -0
  96. package/dist/components/Timeline/Timeline.stories.d.ts +26 -0
  97. package/dist/components/Timeline/Timeline.stories.d.ts.map +1 -0
  98. package/dist/components/Timeline/styles.css.d.ts +158 -0
  99. package/dist/components/Timeline/styles.css.d.ts.map +1 -0
  100. package/dist/components/Toast/Toast.meta.d.ts.map +1 -1
  101. package/dist/components/Toast/Toast.stories.d.ts +9 -0
  102. package/dist/components/Toast/Toast.stories.d.ts.map +1 -1
  103. package/dist/components/Toast/ToastProvider.d.ts +11 -5
  104. package/dist/components/Toast/ToastProvider.d.ts.map +1 -1
  105. package/dist/components/Toast/index.d.ts +1 -1
  106. package/dist/components/Toast/index.d.ts.map +1 -1
  107. package/dist/components/Toast/styles.css.d.ts +6 -0
  108. package/dist/components/Toast/styles.css.d.ts.map +1 -1
  109. package/dist/form.js +1 -1
  110. package/dist/hooks/useContainerBelow.d.ts +18 -0
  111. package/dist/hooks/useContainerBelow.d.ts.map +1 -0
  112. package/dist/index.css +1 -1
  113. package/dist/index.d.ts +13 -3
  114. package/dist/index.d.ts.map +1 -1
  115. package/dist/index.js +7316 -5536
  116. package/dist/index.js.map +1 -1
  117. package/dist/table.js +2 -2
  118. package/package.json +2 -2
  119. package/src/components/AppShell/AppShell.meta.ts +62 -0
  120. package/src/components/AppShell/AppShell.stories.tsx +770 -0
  121. package/src/components/AppShell/AppShell.tsx +346 -0
  122. package/src/components/AppShell/styles.css.ts +219 -0
  123. package/src/components/Aside/Aside.meta.ts +33 -0
  124. package/src/components/Aside/Aside.stories.tsx +106 -0
  125. package/src/components/Aside/Aside.tsx +42 -0
  126. package/src/components/Aside/styles.css.ts +60 -0
  127. package/src/components/Button/styles.css.ts +7 -2
  128. package/src/components/ButtonGroup/ButtonGroup.stories.tsx +4 -5
  129. package/src/components/CodeBlock/CodeBlock.meta.ts +29 -0
  130. package/src/components/CodeBlock/CodeBlock.stories.tsx +162 -0
  131. package/src/components/CodeBlock/CodeBlock.tsx +99 -0
  132. package/src/components/CodeBlock/styles.css.ts +36 -0
  133. package/src/components/DragDrop/DragDrop.meta.ts +22 -21
  134. package/src/components/DragDrop/DragDrop.tsx +1147 -246
  135. package/src/components/DragDrop/DragDropBoard.stories.tsx +668 -0
  136. package/src/components/DragDrop/styles.css.ts +74 -4
  137. package/src/components/Grid/Grid.meta.ts +2 -1
  138. package/src/components/Grid/Grid.stories.tsx +202 -3
  139. package/src/components/Grid/Grid.tsx +35 -6
  140. package/src/components/Grid/styles.css.ts +11 -0
  141. package/src/components/Heading/Heading.stories.tsx +51 -0
  142. package/src/components/Heading/Heading.tsx +38 -7
  143. package/src/components/LinkButton/LinkButton.stories.tsx +41 -1
  144. package/src/components/LinkButton/styles.css.ts +6 -2
  145. package/src/components/LiveRegion/LiveRegion.meta.ts +29 -0
  146. package/src/components/LiveRegion/LiveRegion.stories.tsx +139 -0
  147. package/src/components/LiveRegion/LiveRegion.tsx +48 -0
  148. package/src/components/Menu/Menu.stories.tsx +62 -0
  149. package/src/components/Menu/styles.css.ts +6 -3
  150. package/src/components/Meter/Meter.meta.ts +24 -0
  151. package/src/components/Meter/Meter.stories.tsx +64 -0
  152. package/src/components/Meter/Meter.tsx +55 -0
  153. package/src/components/Meter/styles.css.ts +30 -0
  154. package/src/components/Prose/Prose.meta.ts +32 -0
  155. package/src/components/Prose/Prose.stories.tsx +233 -0
  156. package/src/components/Prose/Prose.tsx +25 -0
  157. package/src/components/Prose/prose.css +177 -0
  158. package/src/components/SideNav/SideNav.stories.tsx +29 -0
  159. package/src/components/SideNav/SideNav.tsx +14 -2
  160. package/src/components/Time/Time.meta.ts +17 -0
  161. package/src/components/Time/Time.stories.tsx +173 -0
  162. package/src/components/Time/Time.tsx +33 -0
  163. package/src/components/Time/relative.ts +89 -0
  164. package/src/components/Timeline/Timeline.meta.ts +46 -0
  165. package/src/components/Timeline/Timeline.stories.tsx +238 -0
  166. package/src/components/Timeline/Timeline.tsx +332 -0
  167. package/src/components/Timeline/styles.css.ts +162 -0
  168. package/src/components/Toast/Toast.meta.ts +2 -1
  169. package/src/components/Toast/Toast.stories.tsx +84 -0
  170. package/src/components/Toast/ToastProvider.tsx +49 -11
  171. package/src/components/Toast/index.ts +7 -1
  172. package/src/components/Toast/styles.css.ts +2 -0
  173. package/src/hooks/useContainerBelow.ts +39 -0
  174. package/src/index.ts +29 -1
  175. package/src/strict.css +4 -1
  176. package/dist/Table-B1sWL3GA.js.map +0 -1
@@ -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"}
@@ -1,16 +1,18 @@
1
1
  import { ReactNode } from 'react';
2
- export type ToastVariant = 'success' | 'error' | 'info';
2
+ export type ToastVariant = 'success' | 'error' | 'info' | 'warning';
3
3
  export interface ToastAction {
4
4
  label: string;
5
5
  onClick: () => void;
6
6
  }
7
7
  export interface ToastOptions {
8
- /** Visual + semantic tone. Errors announce assertively and linger longer. */
8
+ /** Visual + semantic tone. Errors announce assertively; errors and
9
+ * warnings linger longer. */
9
10
  variant?: ToastVariant;
10
11
  message: ReactNode;
11
12
  /** Optional single action, e.g. Undo. Runs, then dismisses the toast. */
12
13
  action?: ToastAction;
13
- /** Auto-dismiss delay in ms. `0` (or negative) keeps it until dismissed. */
14
+ /** Auto-dismiss delay in ms. `0` (or negative) keeps it until dismissed.
15
+ * The countdown pauses while the toast is hovered or holds focus. */
14
16
  duration?: number;
15
17
  }
16
18
  export interface ToastContextValue {
@@ -19,7 +21,11 @@ export interface ToastContextValue {
19
21
  dismiss: (id: string) => void;
20
22
  }
21
23
  export declare function useToast(): ToastContextValue;
22
- export declare function ToastProvider({ children }: {
24
+ export interface ToastProviderProps {
25
+ /** Accessible name of each toast's close button, e.g. from the app's
26
+ * message catalog. */
27
+ dismissLabel?: string;
23
28
  children: ReactNode;
24
- }): import("react/jsx-runtime").JSX.Element;
29
+ }
30
+ export declare function ToastProvider({ dismissLabel, children }: ToastProviderProps): import("react/jsx-runtime").JSX.Element;
25
31
  //# sourceMappingURL=ToastProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/ToastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAOd,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAEvD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,6EAA6E;IAC7E,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,OAAO,EAAE,SAAS,CAAA;IAClB,yEAAyE;IACzE,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,4EAA4E;IAC5E,KAAK,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,MAAM,CAAA;IACrC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9B;AAkED,wBAAgB,QAAQ,IAAI,iBAAiB,CAI5C;AA+CD,wBAAgB,aAAa,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,2CAkC9D"}
1
+ {"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/ToastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAOd,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AAEnE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B;kCAC8B;IAC9B,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,OAAO,EAAE,SAAS,CAAA;IAClB,yEAAyE;IACzE,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB;0EACsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,4EAA4E;IAC5E,KAAK,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,MAAM,CAAA;IACrC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9B;AAqED,wBAAgB,QAAQ,IAAI,iBAAiB,CAI5C;AAwED,MAAM,WAAW,kBAAkB;IACjC;2BACuB;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAC,YAAwB,EAAE,QAAQ,EAAC,EAAE,kBAAkB,2CAkCrF"}
@@ -1,3 +1,3 @@
1
1
  export { ToastProvider, useToast } from './ToastProvider';
2
- export type { ToastVariant, ToastOptions, ToastAction, ToastContextValue } from './ToastProvider';
2
+ export type { ToastVariant, ToastOptions, ToastAction, ToastContextValue, ToastProviderProps, } from './ToastProvider';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACvD,YAAY,EAAC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACvD,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,iBAAiB,CAAA"}
@@ -47,6 +47,9 @@ export declare const styles: Readonly<{
47
47
  readonly info: Readonly<{
48
48
  readonly borderLeftColor: css.StyleXClassNameFor<"borderLeftColor", string>;
49
49
  }>;
50
+ readonly warning: Readonly<{
51
+ readonly borderLeftColor: css.StyleXClassNameFor<"borderLeftColor", string>;
52
+ }>;
50
53
  readonly iconWrap: Readonly<{
51
54
  readonly flexShrink: css.StyleXClassNameFor<"flexShrink", 0>;
52
55
  readonly display: css.StyleXClassNameFor<"display", "flex">;
@@ -63,6 +66,9 @@ export declare const styles: Readonly<{
63
66
  readonly iconInfo: Readonly<{
64
67
  readonly color: css.StyleXClassNameFor<"color", string>;
65
68
  }>;
69
+ readonly iconWarning: Readonly<{
70
+ readonly color: css.StyleXClassNameFor<"color", string>;
71
+ }>;
66
72
  readonly content: Readonly<{
67
73
  readonly flex: css.StyleXClassNameFor<"flex", 1>;
68
74
  readonly minWidth: css.StyleXClassNameFor<"minWidth", 0>;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAepC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyGjB,CAAA"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAepC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2GjB,CAAA"}
package/dist/form.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as T } from "react/jsx-runtime";
2
- import { c as A, m as B, d as G } from "./compiler-runtime-B2IcI8_O.js";
2
+ import { c as A, m as B, d as G } from "./compiler-runtime-BuugS4D0.js";
3
3
  import { useRef as M, useEffect as q } from "react";
4
4
  import { useForm as H, FormProvider as J } from "react-hook-form";
5
5
  import { effectTsResolver as N } from "@hookform/resolvers/effect-ts";
@@ -0,0 +1,18 @@
1
+ import { RefObject } from 'react';
2
+ import { Breakpoint } from '@duro-app/tokens/tokens/breakpoints.css';
3
+ /**
4
+ * Whether the element behind `ref` is narrower than a Duro breakpoint — its
5
+ * own width, as a container query sees it, not the window's. For the choices
6
+ * CSS cannot make (a table of contents as a list or a menu, a row of buttons
7
+ * or an overflow `Menu`).
8
+ *
9
+ * `false` on the server and until the first measurement, so the server and
10
+ * the first client render agree on the wide layout; a ResizeObserver then
11
+ * follows the element. A width of 0 (the element is not laid out, e.g.
12
+ * `display: none`) keeps the last answer.
13
+ *
14
+ * Narrower than means `width < breakpoint`: at exactly 768px an element is not
15
+ * below `md`, the same line `Grid`'s named layouts collapse on.
16
+ */
17
+ export declare function useContainerBelow(ref: RefObject<HTMLElement | null>, breakpoint: Breakpoint): boolean;
18
+ //# sourceMappingURL=useContainerBelow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useContainerBelow.d.ts","sourceRoot":"","sources":["../../src/hooks/useContainerBelow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAA;AACzD,OAAO,EAAgB,KAAK,UAAU,EAAC,MAAM,yCAAyC,CAAA;AAEtF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAClC,UAAU,EAAE,UAAU,GACrB,OAAO,CAkBT"}