@jonmilner/ui 0.21.2 → 0.23.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 (204) hide show
  1. package/README.md +17 -0
  2. package/THIRD_PARTY_NOTICES.md +1 -1
  3. package/dist/Alert/Alert.css +2 -0
  4. package/dist/Alert/Alert.css.mjs +9 -0
  5. package/dist/Alert/index.d.mts +13 -0
  6. package/dist/Alert/index.mjs +45 -0
  7. package/dist/AlertDialog/client.mjs +4 -4
  8. package/dist/AlertDialog/index.d.mts +3 -2
  9. package/dist/AlertDialog/index.mjs +10 -9
  10. package/dist/Avatar/Avatar.css +1 -1
  11. package/dist/Avatar/index.d.mts +1 -1
  12. package/dist/Avatar/index.mjs +5 -5
  13. package/dist/Badge/Badge.css +1 -1
  14. package/dist/Badge/index.d.mts +1 -1
  15. package/dist/Badge/index.mjs +12 -12
  16. package/dist/Body/index.d.mts +9 -0
  17. package/dist/Body/index.mjs +12 -0
  18. package/dist/Box/Box.css +1 -1
  19. package/dist/Box/index.mjs +1 -1
  20. package/dist/Button/Button.css +1 -1
  21. package/dist/Button/index.d.mts +1 -1
  22. package/dist/Button/index.mjs +22 -22
  23. package/dist/Caption/index.d.mts +6 -0
  24. package/dist/Caption/index.mjs +14 -0
  25. package/dist/Checkbox/Checkbox.css +1 -1
  26. package/dist/Checkbox/index.mjs +7 -7
  27. package/dist/Chip/Chip.css +1 -1
  28. package/dist/Chip/index.mjs +35 -35
  29. package/dist/Clickable/Clickable.css +1 -1
  30. package/dist/Clickable/index.d.mts +1 -1
  31. package/dist/Clickable/index.mjs +4 -4
  32. package/dist/Code/Code.css +2 -0
  33. package/dist/Code/Code.css.mjs +7 -0
  34. package/dist/Code/index.d.mts +10 -0
  35. package/dist/Code/index.mjs +40 -0
  36. package/dist/ColorField/ColorField.css +2 -2
  37. package/dist/ColorField/client.mjs +6 -6
  38. package/dist/ColorField/index.mjs +14 -14
  39. package/dist/Combobox/Combobox.css +2 -2
  40. package/dist/Combobox/client.mjs +26 -26
  41. package/dist/Combobox/index.mjs +20 -20
  42. package/dist/Dialog/Dialog.css +2 -2
  43. package/dist/Dialog/client.d.mts +1 -1
  44. package/dist/Dialog/client.mjs +30 -28
  45. package/dist/Dialog/index.d.mts +2 -2
  46. package/dist/Dialog/index.mjs +19 -19
  47. package/dist/Field/Field.css +1 -1
  48. package/dist/Field/client.mjs +6 -6
  49. package/dist/Field/index.mjs +29 -29
  50. package/dist/Flex/index.d.mts +5 -0
  51. package/dist/Flex/index.mjs +14 -0
  52. package/dist/Heading/Heading.css +1 -1
  53. package/dist/Icon/Icon.css +1 -1
  54. package/dist/IconButton/IconButton.css +2 -2
  55. package/dist/IconButton/IconButton.css.mjs +2 -2
  56. package/dist/IconButton/index.d.mts +5 -2
  57. package/dist/IconButton/index.mjs +60 -21
  58. package/dist/Inline/Inline.css +1 -1
  59. package/dist/Inline/index.d.mts +2 -2
  60. package/dist/Inline/index.mjs +4 -4
  61. package/dist/Label/index.d.mts +9 -0
  62. package/dist/Label/index.mjs +19 -0
  63. package/dist/Menu/Menu.css +2 -2
  64. package/dist/Menu/Menu.css.mjs +1 -1
  65. package/dist/Menu/client.d.mts +1 -0
  66. package/dist/Menu/client.mjs +83 -62
  67. package/dist/Menu/index.d.mts +8 -0
  68. package/dist/Menu/index.mjs +123 -87
  69. package/dist/Menu/item-row.mjs +2 -2
  70. package/dist/MultiSelect/MultiSelect.css +2 -2
  71. package/dist/MultiSelect/client.mjs +4 -4
  72. package/dist/MultiSelect/index.mjs +8 -8
  73. package/dist/NavList/NavList.css +2 -2
  74. package/dist/NavList/client.mjs +3 -3
  75. package/dist/NavList/index.d.mts +3 -3
  76. package/dist/NavList/index.mjs +67 -65
  77. package/dist/NumberField/NumberField.css +2 -2
  78. package/dist/NumberField/index.mjs +17 -17
  79. package/dist/Popover/Popover.css +2 -0
  80. package/dist/Popover/Popover.css.mjs +7 -0
  81. package/dist/Popover/client.d.mts +11 -0
  82. package/dist/Popover/client.mjs +54 -0
  83. package/dist/Popover/index.d.mts +20 -0
  84. package/dist/Popover/index.mjs +39 -0
  85. package/dist/RadioGroup/RadioGroup.css +1 -1
  86. package/dist/RadioGroup/index.mjs +23 -23
  87. package/dist/SearchField/SearchField.css +2 -2
  88. package/dist/SearchField/client.mjs +13 -13
  89. package/dist/SearchField/index.mjs +16 -16
  90. package/dist/Select/Select.css +2 -2
  91. package/dist/Select/client.mjs +11 -11
  92. package/dist/Select/index.mjs +8 -8
  93. package/dist/Sidebar/Sidebar.css +1 -1
  94. package/dist/Sidebar/index.d.mts +1 -1
  95. package/dist/Sidebar/index.mjs +21 -21
  96. package/dist/SidebarLayout/SidebarLayout.css +1 -1
  97. package/dist/SidebarLayout/index.d.mts +1 -1
  98. package/dist/SidebarLayout/index.mjs +8 -8
  99. package/dist/Stack/Stack.css +1 -1
  100. package/dist/Stack/index.d.mts +2 -2
  101. package/dist/Stack/index.mjs +4 -4
  102. package/dist/Switch/Switch.css +1 -1
  103. package/dist/Switch/index.mjs +13 -13
  104. package/dist/Table/Table.css +2 -2
  105. package/dist/Table/Table.css.mjs +4 -2
  106. package/dist/Table/index.d.mts +4 -10
  107. package/dist/Table/index.mjs +80 -94
  108. package/dist/Tabs/Tabs.css +1 -1
  109. package/dist/Tabs/index.mjs +26 -26
  110. package/dist/Tag/Tag.css +1 -1
  111. package/dist/Tag/index.d.mts +1 -1
  112. package/dist/Tag/index.mjs +16 -16
  113. package/dist/Text/Text.css +1 -1
  114. package/dist/Text/index.d.mts +2 -2
  115. package/dist/Text/index.mjs +4 -4
  116. package/dist/TextField/TextField.css +2 -2
  117. package/dist/TextField/index.mjs +16 -16
  118. package/dist/Textarea/Textarea.css +2 -2
  119. package/dist/Textarea/index.mjs +9 -9
  120. package/dist/Toast/Toast.css +2 -2
  121. package/dist/Toast/Toast.css.mjs +10 -7
  122. package/dist/Toast/client.d.mts +5 -19
  123. package/dist/Toast/client.mjs +117 -152
  124. package/dist/Tooltip/Tooltip.css +1 -1
  125. package/dist/Tooltip/base.mjs +13 -13
  126. package/dist/VisuallyHidden/VisuallyHidden.css +1 -1
  127. package/dist/base.css +2 -2
  128. package/dist/brands/default.mjs +2 -1
  129. package/dist/brands/forced-colors.mjs +2 -1
  130. package/dist/brands/neutral.mjs +8 -7
  131. package/dist/contrast/contrast.d.mts +1 -1
  132. package/dist/contrast/contrast.mjs +42 -34
  133. package/dist/contrast/mixes.mjs +37 -30
  134. package/dist/docs/Alert.md +106 -0
  135. package/dist/docs/AlertDialog.md +25 -11
  136. package/dist/docs/Body.md +74 -0
  137. package/dist/docs/Box.md +4 -3
  138. package/dist/docs/Caption.md +77 -0
  139. package/dist/docs/Code.md +84 -0
  140. package/dist/docs/ColorField.md +1 -1
  141. package/dist/docs/Combobox.md +3 -1
  142. package/dist/docs/Dialog.md +28 -4
  143. package/dist/docs/Flex.md +76 -0
  144. package/dist/docs/Icon.md +1 -0
  145. package/dist/docs/IconButton.md +9 -1
  146. package/dist/docs/Inline.md +3 -2
  147. package/dist/docs/Label.md +77 -0
  148. package/dist/docs/Menu.md +54 -6
  149. package/dist/docs/MultiSelect.md +2 -0
  150. package/dist/docs/NavList.md +2 -2
  151. package/dist/docs/NumberField.md +1 -1
  152. package/dist/docs/Popover.md +135 -0
  153. package/dist/docs/SearchField.md +1 -1
  154. package/dist/docs/Select.md +2 -0
  155. package/dist/docs/Stack.md +12 -10
  156. package/dist/docs/Table.md +5 -5
  157. package/dist/docs/Text.md +30 -23
  158. package/dist/docs/TextField.md +1 -1
  159. package/dist/docs/Textarea.md +1 -1
  160. package/dist/docs/Toast.md +14 -7
  161. package/dist/docs/Tooltip.md +2 -2
  162. package/dist/docs/lint.md +18 -0
  163. package/dist/docs/llms.txt +20 -11
  164. package/dist/docs/manifest.json +732 -65
  165. package/dist/docs/migrations/0.22.0.md +35 -0
  166. package/dist/docs/migrations/0.23.0.md +84 -0
  167. package/dist/docs/theming.md +3 -3
  168. package/dist/icons/TriangleAlertIcon.d.mts +2 -0
  169. package/dist/icons/TriangleAlertIcon.mjs +10 -0
  170. package/dist/icons/index.d.mts +6 -5
  171. package/dist/icons/index.mjs +35 -34
  172. package/dist/index.d.mts +24 -16
  173. package/dist/index.mjs +47 -40
  174. package/dist/lint/index.d.mts +20 -1
  175. package/dist/lint/index.mjs +19 -3
  176. package/dist/popup/client.d.mts +1 -1
  177. package/dist/popup/client.mjs +59 -41
  178. package/dist/popup/direction.d.mts +2 -0
  179. package/dist/popup/direction.mjs +23 -0
  180. package/dist/popup/listbox-base.mjs +24 -24
  181. package/dist/popup/listbox-options.mjs +4 -4
  182. package/dist/popup/listbox-row.mjs +1 -0
  183. package/dist/popup/positioner.mjs +27 -0
  184. package/dist/popup/tooltip.d.mts +1 -0
  185. package/dist/popup/tooltip.mjs +48 -42
  186. package/dist/scroll-region/scroll-region.d.mts +12 -0
  187. package/dist/scroll-region/scroll-region.mjs +29 -0
  188. package/dist/status-message/status-message.d.mts +5 -0
  189. package/dist/status-message/status-message.mjs +74 -0
  190. package/dist/status-message/tones.d.mts +7 -0
  191. package/dist/status-message/tones.mjs +8 -0
  192. package/dist/styles/atom-values.mjs +131 -0
  193. package/dist/styles/atoms.css +1 -1
  194. package/dist/styles/layers.css +1 -1
  195. package/dist/styles/responsive.css +1 -1
  196. package/dist/styles/scroll-region.css +2 -0
  197. package/dist/styles/scroll-region.css.mjs +7 -0
  198. package/dist/styles/status-message.css +2 -0
  199. package/dist/styles/status-message.css.mjs +7 -0
  200. package/dist/theme/define-theme.mjs +42 -42
  201. package/dist/tokens/contract.d.mts +1 -1
  202. package/dist/tokens/roles.d.mts +1 -1
  203. package/dist/tokens/roles.mjs +1 -1
  204. package/package.json +30 -2
@@ -0,0 +1,35 @@
1
+ # 0.22.0
2
+
3
+ NavList rows inset their end elements by the room the row leaves and nest their corners around the action (decision 0178). Two style props stop applying as a result: `borderRadius` on the control in a row's `action`, which is now `xs`, and `borderRadius`, `paddingInline`, `paddingInlineStart` or `paddingInlineEnd` on a `NavList.Item` in a collapsed Sidebar's rail, which keeps `xs` and `8`.
4
+
5
+ ## Find
6
+
7
+ In the app's source (`*.tsx`), every `NavList.Item` with a style-prop override: regex `<NavList\.Item[^>]*\b(borderRadius|paddingInline(Start|End)?)=`. A match matters only when the item renders in a collapsed `Sidebar`.
8
+
9
+ Every `borderRadius` on a control passed to `action`: regex `action=\{[\s\S]*?borderRadius=` in files that import `NavList`.
10
+
11
+ An app whose rows override the end insets by hand for the old values, such as a negative margin on an `Avatar` or a trigger in a row: regex `<NavList\.Item[\s\S]*?margin(Inline|InlineStart|InlineEnd)=` in those same files.
12
+
13
+ ## Replace
14
+
15
+ Delete a `borderRadius` on the action's control. On a `NavList.Item`, delete the prop if it was set for the rail, since the rail has no prop to replace it. Keep it if the open row needs it: it still applies while the Sidebar is open.
16
+
17
+ ```tsx
18
+ // before
19
+ <NavList.Item borderRadius="lg" href="/" icon={HomeIcon}>Home</NavList.Item>
20
+ // after
21
+ <NavList.Item href="/" icon={HomeIcon}>Home</NavList.Item>
22
+ ```
23
+
24
+ ```tsx
25
+ // before
26
+ action={<Menu><Menu.Trigger borderRadius="sm" icon={EllipsisIcon} label="Actions for ui" size="sm" /></Menu>}
27
+ // after
28
+ action={<Menu><Menu.Trigger icon={EllipsisIcon} label="Actions for ui" size="sm" /></Menu>}
29
+ ```
30
+
31
+ Pass the control as the direct child of `action`; a wrapper element takes the `xs` radius instead of the control. Delete a hand-written inset margin on an end element, since the row now places it.
32
+
33
+ ## Verify
34
+
35
+ Run the app's typecheck and open a page with a NavList, with its Sidebar open and collapsed. An open row's avatar sits 6 from its start, a hovered row's action 4 from its end with `xs` corners, and rail items are 40px squares with their glyph centered.
@@ -0,0 +1,84 @@
1
+ # 0.23.0
2
+
3
+ Three breaking changes: the `backdrop` color role, Toast's `error` variant renamed `danger`, and Toast's title offset.
4
+
5
+ **`backdrop` color role.** `Brand["color"]` gains a required role, `backdrop`, the scrim behind a Dialog (decision 0182). Dialog's backdrop was a fixed 40% of `shadow`, which barely dimmed a dark page. It now uses the role: 40% in light mode and 70% in dark in the presets. A brand that lists its own color roles must add it.
6
+
7
+ **Toast `error` is now `danger`.** Toast's variants are now `info`, `success`, `warning` and `danger`, the names every status message uses (decision 0184). `error` has no alias and is a type error. Toast also takes its variant's tinted fill, and `defineTheme` checks each tinted fill under a secondary Button, so a brand with its own subtle fills can now fail the contrast check.
8
+
9
+ **Toast's title offset.** Toast's title drops to center its first line on the icon, and its close button shares that center without adding height (decision 0186). A toast with only a one-line title shrinks 4px; a taller one, with a description, an action or a wrapped title, grows about 4px. Apps still type-check; most only update their visual baselines.
10
+
11
+ ## Find
12
+
13
+ ### `backdrop` color role
14
+
15
+ In the app's source (`*.ts`, `*.tsx`), every custom brand: regex `defineTheme\(` and `:\s*Brand\b`.
16
+
17
+ - It spreads a preset (`...defaultBrand.color`): nothing to add, and it gets the preset's `backdrop`. The backdrop no longer follows `shadow`, so a brand that recolors `shadow` and wants a matching scrim sets `backdrop` too.
18
+ - It lists every role itself: it is missing `backdrop`.
19
+
20
+ Every workaround that restyled the backdrop through the portal's DOM: regex `data-base-ui-portal|\[role="presentation"\]` in `*.css.ts` and `*.css`.
21
+
22
+ ### Toast `error` is now `danger`
23
+
24
+ In the app's source (`*.ts`, `*.tsx`), every toast with the old variant: regex `variant:\s*["']error["']` near `useToast` or `.add(`. The regex misses a value held in a variable, which the typecheck catches. It also misses one cast past the type or set from untyped code, so check those by hand: at runtime an unknown variant falls back to `info`, a polite toast that closes itself.
25
+
26
+ ### Toast's title offset
27
+
28
+ In the app's visual tests, every baseline that shows a toast: regex `useToast` in the app's source (`*.ts`, `*.tsx`), then find the screens and tests that fire each match. In the app's styles, anything that assumes a toast's height: regex `toast` in `*.css.ts` and `*.css`, then read each match for a fixed height or offset.
29
+
30
+ ## Replace
31
+
32
+ ### `backdrop` color role
33
+
34
+ Add `backdrop` after `shadow`, a `light-dark(<light>, <dark>)` pair of translucent colors.
35
+
36
+ ```ts
37
+ // before
38
+ shadow: "light-dark(#111, #000)",
39
+ // after
40
+ shadow: "light-dark(#111, #000)",
41
+ backdrop: "light-dark(oklch(0.145 0 0 / 0.4), oklch(0 0 0 / 0.7))",
42
+ ```
43
+
44
+ Or take the `default` brand's value: `backdrop: defaultBrand.color.backdrop`.
45
+
46
+ Replace a structural `globalStyle` on the backdrop with the role: delete the rule and set the color in the brand, or override `--color-backdrop` on `[data-brand]` from `@layer app` under a preset. A rule on `:root` has no effect.
47
+
48
+ ### Toast `error` is now `danger`
49
+
50
+ ```ts
51
+ // before
52
+ toast.add({ title: "Couldn't save", variant: "error" });
53
+ // after
54
+ toast.add({ title: "Couldn't save", variant: "danger" });
55
+ ```
56
+
57
+ `danger` keeps what `error` did: it is announced at once and stays until dismissed.
58
+
59
+ A brand that fails the new contrast check names `controlFill` over one of `accentSubtle`, `successSubtle`, `warningSubtle` or `dangerSubtle`, or the mix `secondary Button hover on <fill>` for one of the same fills. Either way, lighten that fill in light mode or darken it in dark mode until `fg` passes 4.5:1.
60
+
61
+ ### Toast's title offset
62
+
63
+ No API changed. Update the baselines found above, and change any fixed height or offset that holds a toast: 4px less for one with only a one-line title, about 4px more for a taller one.
64
+
65
+ ```ts
66
+ // before, a toast with a description
67
+ blockSize: "88px",
68
+ // after
69
+ blockSize: "92px",
70
+ ```
71
+
72
+ ## Verify
73
+
74
+ ### `backdrop` color role
75
+
76
+ Run the app's typecheck (`pnpm typecheck`); it passes with no error naming `backdrop`. Then open a Dialog in dark mode: the page behind it is clearly dimmed, and the backdrop's computed `background-color` has an alpha of 0.7, or the value the brand sets.
77
+
78
+ ### Toast `error` is now `danger`
79
+
80
+ Run the app's typecheck (`pnpm typecheck`); it passes with no error naming `"error"` on a toast. Then trigger a `danger` toast: it has a red tint and stays until dismissed.
81
+
82
+ ### Toast's title offset
83
+
84
+ Run the app's visual tests; the only differences are toasts and dark-mode Dialog backdrops. Then trigger a toast with a description: the icon's center lines up with the center of the title's first line, and the description is not clipped.
@@ -42,11 +42,11 @@ const inbox = defineTheme({
42
42
 
43
43
  `accent` colors links, tabs, checked boxes and pressed chips, and is also text on a surface; `accentFill` is the primary Button's solid fill, with `accentFillFg` text on it in both modes. Recolor both together, and the accent's subtle pair so an accent Tag or subtle Badge turns red too.
44
44
 
45
- Each tone (`neutral`, `accent`, `success`, `warning`, `danger`, `done`) also has a subtle pair, `<tone>Subtle` with `<tone>SubtleFg` text, for Badge's `subtle` variants and Tag's fills. Recolor a tone's subtle pair with it: the text needs 4.5:1 on its fill and 3:1 on `bg`, and `focus` 3:1 on the fill.
45
+ Each tone (`neutral`, `accent`, `success`, `warning`, `danger`, `done`) also has a subtle pair, `<tone>Subtle` with `<tone>SubtleFg` text, for Badge's `subtle` variants and Tag's fills. Recolor a tone's subtle pair with it: the text needs 4.5:1 on its fill and 3:1 on `bg`, and `focus` 3:1 on the fill. A Toast's fills (`accentSubtle`, `successSubtle`, `warningSubtle`, `dangerSubtle`) also carry a secondary Button, so `fg` needs 4.5:1 on `controlFill` over each of them, and on that Button's hover tint.
46
46
 
47
- The neutrals (`bg`, `bgMuted`, `bgRaised`, `bgPanel`, `fg`, `fgMuted`, `border`, `borderStrong`, `neutralSubtle`, `neutralSubtleFg`, `shadow`) come from one OKLCH ramp in the presets: a hue and a chroma on a lightness table every brand shares. Text and borders mirror in dark mode (`fgMuted` is step 600 light, 400 dark); surfaces climb instead, so a raised surface is lighter than the page in dark mode and the same white with a shadow in light.
47
+ The neutrals (`bg`, `bgMuted`, `bgRaised`, `bgPanel`, `fg`, `fgMuted`, `border`, `borderStrong`, `neutralSubtle`, `neutralSubtleFg`, `shadow`, `backdrop`) come from one OKLCH ramp in the presets: a hue and a chroma on a lightness table every brand shares. Text and borders mirror in dark mode (`fgMuted` is step 600 light, 400 dark); surfaces climb instead, so a raised surface is lighter than the page in dark mode and the same white with a shadow in light.
48
48
 
49
- Three overlay roles lay a tint over whatever surface is under them: `hover` for a hovered item, `controlFill` for a resting control, `selected` for a selected one. Each is `fg` at a low alpha (4%, 5% and 7% in the presets), so set them from your `fg` when you recolor it. They are fills, never text, and the only roles that may be translucent. `fg` and `fgMuted` need 4.5:1 on each overlay over every surface. Under forced colors `hover` and `selected` turn `Highlight` and `controlFill` turns `ButtonFace`, so text on a hovered or selected item takes `HighlightText` there.
49
+ Three overlay roles lay a tint over whatever surface is under them: `hover` for a hovered item, `controlFill` for a resting control, `selected` for a selected one. Each is `fg` at a low alpha (4%, 5% and 7% in the presets), so set them from your `fg` when you recolor it. They are fills, never text, and with `backdrop` the only roles that may be translucent. `fg` and `fgMuted` need 4.5:1 on each overlay over every surface. Under forced colors `hover` and `selected` turn `Highlight` and `controlFill` turns `ButtonFace`, so text on a hovered or selected item takes `HighlightText` there.
50
50
 
51
51
  `defineTheme(brand)` takes a full `Brand`: every color role as `light-dark(<light>, <dark>)` and every font role. A missing role is a type error, and a missing color role also throws in every mode. It returns CSS that `ThemeProvider` renders as `<style href precedence="ui-theme">`; React hoists it into `<head>` and renders it once per name.
52
52
 
@@ -0,0 +1,2 @@
1
+ import { IconProps } from "../Icon/index.mjs";
2
+ export declare function TriangleAlertIcon(props: Omit<IconProps, "children" | "viewBox">): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { Icon as e } from "../Icon/index.mjs";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ // src/icons/TriangleAlertIcon.tsx
4
+ function n(n) {
5
+ return /* @__PURE__ */ t(e, {
6
+ ...n,
7
+ children: /* @__PURE__ */ t("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4M12 17h.01" })
8
+ });
9
+ }
10
+ export { n as TriangleAlertIcon };
@@ -1,6 +1,3 @@
1
- import { CircleAlertIcon } from "./CircleAlertIcon.mjs";
2
- import { CircleCheckIcon } from "./CircleCheckIcon.mjs";
3
- import { InfoIcon } from "./InfoIcon.mjs";
4
1
  import { ArrowDownIcon } from "./ArrowDownIcon.mjs";
5
2
  import { ArrowLeftIcon } from "./ArrowLeftIcon.mjs";
6
3
  import { ArrowRightIcon } from "./ArrowRightIcon.mjs";
@@ -8,6 +5,8 @@ import { ArrowUpIcon } from "./ArrowUpIcon.mjs";
8
5
  import { CheckIcon } from "./CheckIcon.mjs";
9
6
  import { ChevronDownIcon } from "./ChevronDownIcon.mjs";
10
7
  import { ChevronRightIcon } from "./ChevronRightIcon.mjs";
8
+ import { CircleAlertIcon } from "./CircleAlertIcon.mjs";
9
+ import { CircleCheckIcon } from "./CircleCheckIcon.mjs";
11
10
  import { CircleDotIcon } from "./CircleDotIcon.mjs";
12
11
  import { CircleSlashIcon } from "./CircleSlashIcon.mjs";
13
12
  import { EllipsisIcon } from "./EllipsisIcon.mjs";
@@ -16,6 +15,7 @@ import { GitPullRequestClosedIcon } from "./GitPullRequestClosedIcon.mjs";
16
15
  import { GitPullRequestDraftIcon } from "./GitPullRequestDraftIcon.mjs";
17
16
  import { GitPullRequestIcon } from "./GitPullRequestIcon.mjs";
18
17
  import { InboxIcon } from "./InboxIcon.mjs";
18
+ import { InfoIcon } from "./InfoIcon.mjs";
19
19
  import { LoaderCircleIcon } from "./LoaderCircleIcon.mjs";
20
20
  import { LockOpenIcon } from "./LockOpenIcon.mjs";
21
21
  import { MinusIcon } from "./MinusIcon.mjs";
@@ -29,7 +29,8 @@ import { ReplyIcon } from "./ReplyIcon.mjs";
29
29
  import { SearchIcon } from "./SearchIcon.mjs";
30
30
  import { SettingsIcon } from "./SettingsIcon.mjs";
31
31
  import { Trash2Icon } from "./Trash2Icon.mjs";
32
+ import { TriangleAlertIcon } from "./TriangleAlertIcon.mjs";
32
33
  import { XIcon } from "./XIcon.mjs";
33
- export declare const iconNames: readonly ["ArrowDownIcon", "ArrowLeftIcon", "ArrowRightIcon", "ArrowUpIcon", "CheckIcon", "ChevronDownIcon", "ChevronRightIcon", "CircleAlertIcon", "CircleCheckIcon", "CircleDotIcon", "CircleSlashIcon", "EllipsisIcon", "GitMergeIcon", "GitPullRequestClosedIcon", "GitPullRequestDraftIcon", "GitPullRequestIcon", "InboxIcon", "InfoIcon", "LoaderCircleIcon", "LockOpenIcon", "MinusIcon", "PanelLeftCloseIcon", "PanelLeftOpenIcon", "PencilIcon", "PlayIcon", "PlusIcon", "RefreshCwIcon", "ReplyIcon", "SearchIcon", "SettingsIcon", "Trash2Icon", "XIcon"];
34
+ export declare const iconNames: readonly ["ArrowDownIcon", "ArrowLeftIcon", "ArrowRightIcon", "ArrowUpIcon", "CheckIcon", "ChevronDownIcon", "ChevronRightIcon", "CircleAlertIcon", "CircleCheckIcon", "CircleDotIcon", "CircleSlashIcon", "EllipsisIcon", "GitMergeIcon", "GitPullRequestClosedIcon", "GitPullRequestDraftIcon", "GitPullRequestIcon", "InboxIcon", "InfoIcon", "LoaderCircleIcon", "LockOpenIcon", "MinusIcon", "PanelLeftCloseIcon", "PanelLeftOpenIcon", "PencilIcon", "PlayIcon", "PlusIcon", "RefreshCwIcon", "ReplyIcon", "SearchIcon", "SettingsIcon", "Trash2Icon", "TriangleAlertIcon", "XIcon"];
34
35
  export type IconName = (typeof iconNames)[number];
35
- export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, CircleAlertIcon, CircleCheckIcon, CircleDotIcon, CircleSlashIcon, EllipsisIcon, GitMergeIcon, GitPullRequestClosedIcon, GitPullRequestDraftIcon, GitPullRequestIcon, InboxIcon, InfoIcon, LoaderCircleIcon, LockOpenIcon, MinusIcon, PanelLeftCloseIcon, PanelLeftOpenIcon, PencilIcon, PlayIcon, PlusIcon, RefreshCwIcon, ReplyIcon, SearchIcon, SettingsIcon, Trash2Icon, XIcon };
36
+ export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, CircleAlertIcon, CircleCheckIcon, CircleDotIcon, CircleSlashIcon, EllipsisIcon, GitMergeIcon, GitPullRequestClosedIcon, GitPullRequestDraftIcon, GitPullRequestIcon, InboxIcon, InfoIcon, LoaderCircleIcon, LockOpenIcon, MinusIcon, PanelLeftCloseIcon, PanelLeftOpenIcon, PencilIcon, PlayIcon, PlusIcon, RefreshCwIcon, ReplyIcon, SearchIcon, SettingsIcon, Trash2Icon, TriangleAlertIcon, XIcon };
@@ -1,35 +1,36 @@
1
- import { CheckIcon as e } from "./CheckIcon.mjs";
2
- import { CircleAlertIcon as t } from "./CircleAlertIcon.mjs";
3
- import { ChevronDownIcon as n } from "./ChevronDownIcon.mjs";
4
- import { MinusIcon as r } from "./MinusIcon.mjs";
5
- import { PlusIcon as i } from "./PlusIcon.mjs";
6
- import { SearchIcon as a } from "./SearchIcon.mjs";
7
- import { XIcon as o } from "./XIcon.mjs";
8
- import { PanelLeftCloseIcon as s } from "./PanelLeftCloseIcon.mjs";
9
- import { PanelLeftOpenIcon as c } from "./PanelLeftOpenIcon.mjs";
10
- import { ArrowDownIcon as l } from "./ArrowDownIcon.mjs";
11
- import { ArrowUpIcon as u } from "./ArrowUpIcon.mjs";
12
- import { CircleCheckIcon as d } from "./CircleCheckIcon.mjs";
13
- import { InfoIcon as f } from "./InfoIcon.mjs";
14
- import { ArrowLeftIcon as p } from "./ArrowLeftIcon.mjs";
15
- import { ArrowRightIcon as m } from "./ArrowRightIcon.mjs";
16
- import { ChevronRightIcon as h } from "./ChevronRightIcon.mjs";
17
- import { CircleDotIcon as g } from "./CircleDotIcon.mjs";
18
- import { CircleSlashIcon as _ } from "./CircleSlashIcon.mjs";
19
- import { EllipsisIcon as v } from "./EllipsisIcon.mjs";
20
- import { GitMergeIcon as y } from "./GitMergeIcon.mjs";
21
- import { GitPullRequestClosedIcon as b } from "./GitPullRequestClosedIcon.mjs";
22
- import { GitPullRequestDraftIcon as x } from "./GitPullRequestDraftIcon.mjs";
23
- import { GitPullRequestIcon as S } from "./GitPullRequestIcon.mjs";
24
- import { InboxIcon as C } from "./InboxIcon.mjs";
25
- import { LoaderCircleIcon as w } from "./LoaderCircleIcon.mjs";
26
- import { LockOpenIcon as T } from "./LockOpenIcon.mjs";
27
- import { PencilIcon as E } from "./PencilIcon.mjs";
28
- import { PlayIcon as D } from "./PlayIcon.mjs";
29
- import { RefreshCwIcon as O } from "./RefreshCwIcon.mjs";
30
- import { ReplyIcon as k } from "./ReplyIcon.mjs";
31
- import { SettingsIcon as A } from "./SettingsIcon.mjs";
32
- import { Trash2Icon as j } from "./Trash2Icon.mjs";
1
+ import { ArrowDownIcon as e } from "./ArrowDownIcon.mjs";
2
+ import { ArrowLeftIcon as t } from "./ArrowLeftIcon.mjs";
3
+ import { ArrowRightIcon as n } from "./ArrowRightIcon.mjs";
4
+ import { ArrowUpIcon as r } from "./ArrowUpIcon.mjs";
5
+ import { CheckIcon as i } from "./CheckIcon.mjs";
6
+ import { ChevronDownIcon as a } from "./ChevronDownIcon.mjs";
7
+ import { ChevronRightIcon as o } from "./ChevronRightIcon.mjs";
8
+ import { CircleAlertIcon as s } from "./CircleAlertIcon.mjs";
9
+ import { CircleCheckIcon as c } from "./CircleCheckIcon.mjs";
10
+ import { CircleDotIcon as l } from "./CircleDotIcon.mjs";
11
+ import { CircleSlashIcon as u } from "./CircleSlashIcon.mjs";
12
+ import { EllipsisIcon as d } from "./EllipsisIcon.mjs";
13
+ import { GitMergeIcon as f } from "./GitMergeIcon.mjs";
14
+ import { GitPullRequestClosedIcon as p } from "./GitPullRequestClosedIcon.mjs";
15
+ import { GitPullRequestDraftIcon as m } from "./GitPullRequestDraftIcon.mjs";
16
+ import { GitPullRequestIcon as h } from "./GitPullRequestIcon.mjs";
17
+ import { InboxIcon as g } from "./InboxIcon.mjs";
18
+ import { InfoIcon as _ } from "./InfoIcon.mjs";
19
+ import { LoaderCircleIcon as v } from "./LoaderCircleIcon.mjs";
20
+ import { LockOpenIcon as y } from "./LockOpenIcon.mjs";
21
+ import { MinusIcon as b } from "./MinusIcon.mjs";
22
+ import { PanelLeftCloseIcon as x } from "./PanelLeftCloseIcon.mjs";
23
+ import { PanelLeftOpenIcon as S } from "./PanelLeftOpenIcon.mjs";
24
+ import { PencilIcon as C } from "./PencilIcon.mjs";
25
+ import { PlayIcon as w } from "./PlayIcon.mjs";
26
+ import { PlusIcon as T } from "./PlusIcon.mjs";
27
+ import { RefreshCwIcon as E } from "./RefreshCwIcon.mjs";
28
+ import { ReplyIcon as D } from "./ReplyIcon.mjs";
29
+ import { SearchIcon as O } from "./SearchIcon.mjs";
30
+ import { SettingsIcon as k } from "./SettingsIcon.mjs";
31
+ import { Trash2Icon as A } from "./Trash2Icon.mjs";
32
+ import { TriangleAlertIcon as j } from "./TriangleAlertIcon.mjs";
33
+ import { XIcon as M } from "./XIcon.mjs";
33
34
  // src/icons/index.ts
34
- var M = /* @__PURE__ */ "ArrowDownIcon.ArrowLeftIcon.ArrowRightIcon.ArrowUpIcon.CheckIcon.ChevronDownIcon.ChevronRightIcon.CircleAlertIcon.CircleCheckIcon.CircleDotIcon.CircleSlashIcon.EllipsisIcon.GitMergeIcon.GitPullRequestClosedIcon.GitPullRequestDraftIcon.GitPullRequestIcon.InboxIcon.InfoIcon.LoaderCircleIcon.LockOpenIcon.MinusIcon.PanelLeftCloseIcon.PanelLeftOpenIcon.PencilIcon.PlayIcon.PlusIcon.RefreshCwIcon.ReplyIcon.SearchIcon.SettingsIcon.Trash2Icon.XIcon".split(".");
35
- export { l as ArrowDownIcon, p as ArrowLeftIcon, m as ArrowRightIcon, u as ArrowUpIcon, e as CheckIcon, n as ChevronDownIcon, h as ChevronRightIcon, t as CircleAlertIcon, d as CircleCheckIcon, g as CircleDotIcon, _ as CircleSlashIcon, v as EllipsisIcon, y as GitMergeIcon, b as GitPullRequestClosedIcon, x as GitPullRequestDraftIcon, S as GitPullRequestIcon, C as InboxIcon, f as InfoIcon, w as LoaderCircleIcon, T as LockOpenIcon, r as MinusIcon, s as PanelLeftCloseIcon, c as PanelLeftOpenIcon, E as PencilIcon, D as PlayIcon, i as PlusIcon, O as RefreshCwIcon, k as ReplyIcon, a as SearchIcon, A as SettingsIcon, j as Trash2Icon, o as XIcon, M as iconNames };
35
+ var N = /* @__PURE__ */ "ArrowDownIcon.ArrowLeftIcon.ArrowRightIcon.ArrowUpIcon.CheckIcon.ChevronDownIcon.ChevronRightIcon.CircleAlertIcon.CircleCheckIcon.CircleDotIcon.CircleSlashIcon.EllipsisIcon.GitMergeIcon.GitPullRequestClosedIcon.GitPullRequestDraftIcon.GitPullRequestIcon.InboxIcon.InfoIcon.LoaderCircleIcon.LockOpenIcon.MinusIcon.PanelLeftCloseIcon.PanelLeftOpenIcon.PencilIcon.PlayIcon.PlusIcon.RefreshCwIcon.ReplyIcon.SearchIcon.SettingsIcon.Trash2Icon.TriangleAlertIcon.XIcon".split(".");
36
+ export { e as ArrowDownIcon, t as ArrowLeftIcon, n as ArrowRightIcon, r as ArrowUpIcon, i as CheckIcon, a as ChevronDownIcon, o as ChevronRightIcon, s as CircleAlertIcon, c as CircleCheckIcon, l as CircleDotIcon, u as CircleSlashIcon, d as EllipsisIcon, f as GitMergeIcon, p as GitPullRequestClosedIcon, m as GitPullRequestDraftIcon, h as GitPullRequestIcon, g as InboxIcon, _ as InfoIcon, v as LoaderCircleIcon, y as LockOpenIcon, b as MinusIcon, x as PanelLeftCloseIcon, S as PanelLeftOpenIcon, C as PencilIcon, w as PlayIcon, T as PlusIcon, E as RefreshCwIcon, D as ReplyIcon, O as SearchIcon, k as SettingsIcon, A as Trash2Icon, j as TriangleAlertIcon, M as XIcon, N as iconNames };
package/dist/index.d.mts CHANGED
@@ -1,31 +1,38 @@
1
1
  import { BoxProps, StyleProps } from "./Box/base.mjs";
2
- import { Clickable, ClickableProps } from "./Clickable/index.mjs";
3
- import { Icon, IconProps } from "./Icon/index.mjs";
4
- import { Button, ButtonProps } from "./Button/index.mjs";
5
- import { Dialog, DialogActionsProps, DialogBodyProps, DialogPopupProps, DialogProps } from "./Dialog/index.mjs";
6
- import { DialogCloseProps, DialogTriggerProps } from "./Dialog/client.mjs";
2
+ import { Alert, AlertProps } from "./Alert/index.mjs";
7
3
  import { AlertDialog, AlertDialogProps, AlertDialogTriggerProps } from "./AlertDialog/index.mjs";
8
4
  import { Avatar, AvatarProps } from "./Avatar/index.mjs";
9
5
  import { Badge, BadgeProps } from "./Badge/index.mjs";
6
+ import { Body, BodyProps, BodySize } from "./Body/index.mjs";
10
7
  import { Box } from "./Box/index.mjs";
8
+ import { DialogCloseProps, DialogTriggerProps } from "./Dialog/client.mjs";
9
+ import { Button, ButtonProps } from "./Button/index.mjs";
10
+ import { Caption, CaptionProps } from "./Caption/index.mjs";
11
11
  import { Checkbox, CheckboxProps } from "./Checkbox/index.mjs";
12
12
  import { Chip, ChipGroup, ChipGroupProps, ChipProps } from "./Chip/index.mjs";
13
- import { SearchFieldInputProps } from "./SearchField/client.mjs";
14
- import { SearchField, SearchFieldProps } from "./SearchField/index.mjs";
15
- import { ColorFieldInputProps } from "./ColorField/client.mjs";
13
+ import { Clickable, ClickableProps } from "./Clickable/index.mjs";
14
+ import { Code, CodeBlockProps, CodeInlineProps, CodeProps } from "./Code/index.mjs";
16
15
  import { ColorField, ColorFieldProps } from "./ColorField/index.mjs";
17
16
  import { Combobox, ComboboxOption, ComboboxProps } from "./Combobox/index.mjs";
18
- import { Text, TextProps } from "./Text/index.mjs";
17
+ import { Dialog, DialogActionsProps, DialogBodyProps, DialogPopupProps, DialogProps } from "./Dialog/index.mjs";
18
+ import { SearchFieldInputProps } from "./SearchField/client.mjs";
19
19
  import { Field, FieldDescriptionProps, FieldErrorProps, FieldLabelProps, FieldProps } from "./Field/index.mjs";
20
+ import { ColorFieldInputProps } from "./ColorField/client.mjs";
21
+ import { Flex, FlexProps } from "./Flex/index.mjs";
20
22
  import { Heading, HeadingLevel, HeadingProps, HeadingSize } from "./Heading/index.mjs";
23
+ import { Icon, IconProps } from "./Icon/index.mjs";
21
24
  import { IconButton, IconButtonProps } from "./IconButton/index.mjs";
22
25
  import { Inline, InlineProps } from "./Inline/index.mjs";
23
- import { MenuTriggerProps } from "./Menu/client.mjs";
24
- import { Menu, MenuGroupProps, MenuItemProps, MenuLinkItemProps, MenuPopupProps, MenuProps, MenuSeparatorProps } from "./Menu/index.mjs";
26
+ import { Label, LabelProps, LabelSize } from "./Label/index.mjs";
27
+ import { Menu, MenuGroupProps, MenuItemProps, MenuLinkItemProps, MenuPopupProps, MenuProps, MenuSeparatorProps, MenuSubmenuRootProps, MenuSubmenuTriggerProps } from "./Menu/index.mjs";
25
28
  import { MultiSelect, MultiSelectOption, MultiSelectProps } from "./MultiSelect/index.mjs";
29
+ import { MenuTriggerProps } from "./Menu/client.mjs";
26
30
  import { NavList, NavListGroupProps, NavListItemOwnProps, NavListItemProps, NavListProps } from "./NavList/index.mjs";
27
31
  import { NumberField, NumberFieldInputProps, NumberFieldProps } from "./NumberField/index.mjs";
32
+ import { Popover, PopoverPopupProps, PopoverProps } from "./Popover/index.mjs";
28
33
  import { RadioGroup, RadioGroupOption, RadioGroupProps } from "./RadioGroup/index.mjs";
34
+ import { PopoverCloseProps, PopoverTriggerProps } from "./Popover/client.mjs";
35
+ import { SearchField, SearchFieldProps } from "./SearchField/index.mjs";
29
36
  import { Select, SelectOption, SelectProps } from "./Select/index.mjs";
30
37
  import { Sidebar, SidebarProps } from "./Sidebar/index.mjs";
31
38
  import { SidebarLayout, SidebarLayoutMainProps, SidebarLayoutProps, SidebarLayoutSidebarProps } from "./SidebarLayout/index.mjs";
@@ -34,14 +41,15 @@ import { Switch, SwitchProps } from "./Switch/index.mjs";
34
41
  import { Table, TableBodyProps, TableCellProps, TableColumnGroupProps, TableColumnProps, TableFootProps, TableHeadProps, TableHeaderCellProps, TableProps, TableRowProps, TableScrollAreaProps, TableSortDirection } from "./Table/index.mjs";
35
42
  import { Tabs, TabsListProps, TabsPanelProps, TabsProps, TabsTabProps } from "./Tabs/index.mjs";
36
43
  import { Tag, TagProps } from "./Tag/index.mjs";
37
- import { TextField, TextFieldInputProps, TextFieldProps } from "./TextField/index.mjs";
44
+ import { Text, TextProps } from "./Text/index.mjs";
38
45
  import { Textarea, TextareaInputProps, TextareaProps } from "./Textarea/index.mjs";
46
+ import { TextField, TextFieldInputProps, TextFieldProps } from "./TextField/index.mjs";
39
47
  import { ToastOptions, ToastProviderProps, ToastVariant, useToast } from "./Toast/client.mjs";
40
- import { Toast } from "./Toast/index.mjs";
48
+ import { Theme, defineTheme } from "./theme/define-theme.mjs";
41
49
  import { TooltipPopupProps } from "./Tooltip/base.mjs";
42
50
  import { TooltipTriggerProps } from "./Tooltip/client.mjs";
51
+ import { ThemeProvider, ThemeProviderProps } from "./theme/ThemeProvider.mjs";
52
+ import { Toast } from "./Toast/index.mjs";
43
53
  import { Tooltip, TooltipProps, TooltipProviderProps } from "./Tooltip/index.mjs";
44
54
  import { VisuallyHidden, VisuallyHiddenProps } from "./VisuallyHidden/index.mjs";
45
- import { Theme, defineTheme } from "./theme/define-theme.mjs";
46
- import { ThemeProvider, ThemeProviderProps } from "./theme/ThemeProvider.mjs";
47
- export { AlertDialog, type AlertDialogProps, type AlertDialogTriggerProps, Avatar, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, Clickable, type ClickableProps, ColorField, type ColorFieldInputProps, type ColorFieldProps, Combobox, type ComboboxOption, type ComboboxProps, Dialog, type DialogActionsProps, type DialogBodyProps, type DialogCloseProps, type DialogPopupProps, type DialogProps, type DialogTriggerProps, Field, type FieldDescriptionProps, type FieldErrorProps, type FieldLabelProps, type FieldProps, Heading, type HeadingLevel, type HeadingProps, type HeadingSize, Icon, IconButton, type IconButtonProps, type IconProps, Inline, type InlineProps, Menu, type MenuGroupProps, type MenuItemProps, type MenuLinkItemProps, type MenuPopupProps, type MenuProps, type MenuSeparatorProps, type MenuTriggerProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavList, type NavListGroupProps, type NavListItemOwnProps, type NavListItemProps, type NavListProps, NumberField, type NumberFieldInputProps, type NumberFieldProps, RadioGroup, type RadioGroupOption, type RadioGroupProps, SearchField, type SearchFieldInputProps, type SearchFieldProps, Select, type SelectOption, type SelectProps, Sidebar, SidebarLayout, type SidebarLayoutMainProps, type SidebarLayoutProps, type SidebarLayoutSidebarProps, type SidebarProps, Stack, type StackProps, type StyleProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnGroupProps, type TableColumnProps, type TableFootProps, type TableHeadProps, type TableHeaderCellProps, type TableProps, type TableRowProps, type TableScrollAreaProps, type TableSortDirection, Tabs, type TabsListProps, type TabsPanelProps, type TabsProps, type TabsTabProps, Tag, type TagProps, Text, TextField, type TextFieldInputProps, type TextFieldProps, type TextProps, Textarea, type TextareaInputProps, type TextareaProps, type Theme, ThemeProvider, type ThemeProviderProps, Toast, type ToastOptions, type ToastProviderProps, type ToastVariant, Tooltip, type TooltipPopupProps, type TooltipProps, type TooltipProviderProps, type TooltipTriggerProps, VisuallyHidden, type VisuallyHiddenProps, defineTheme, useToast };
55
+ export { Alert, AlertDialog, type AlertDialogProps, type AlertDialogTriggerProps, type AlertProps, Avatar, type AvatarProps, Badge, type BadgeProps, Body, type BodyProps, type BodySize, Box, type BoxProps, Button, type ButtonProps, Caption, type CaptionProps, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, Clickable, type ClickableProps, Code, type CodeBlockProps, type CodeInlineProps, type CodeProps, ColorField, type ColorFieldInputProps, type ColorFieldProps, Combobox, type ComboboxOption, type ComboboxProps, Dialog, type DialogActionsProps, type DialogBodyProps, type DialogCloseProps, type DialogPopupProps, type DialogProps, type DialogTriggerProps, Field, type FieldDescriptionProps, type FieldErrorProps, type FieldLabelProps, type FieldProps, Flex, type FlexProps, Heading, type HeadingLevel, type HeadingProps, type HeadingSize, Icon, IconButton, type IconButtonProps, type IconProps, Inline, type InlineProps, Label, type LabelProps, type LabelSize, Menu, type MenuGroupProps, type MenuItemProps, type MenuLinkItemProps, type MenuPopupProps, type MenuProps, type MenuSeparatorProps, type MenuSubmenuRootProps, type MenuSubmenuTriggerProps, type MenuTriggerProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavList, type NavListGroupProps, type NavListItemOwnProps, type NavListItemProps, type NavListProps, NumberField, type NumberFieldInputProps, type NumberFieldProps, Popover, type PopoverCloseProps, type PopoverPopupProps, type PopoverProps, type PopoverTriggerProps, RadioGroup, type RadioGroupOption, type RadioGroupProps, SearchField, type SearchFieldInputProps, type SearchFieldProps, Select, type SelectOption, type SelectProps, Sidebar, SidebarLayout, type SidebarLayoutMainProps, type SidebarLayoutProps, type SidebarLayoutSidebarProps, type SidebarProps, Stack, type StackProps, type StyleProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnGroupProps, type TableColumnProps, type TableFootProps, type TableHeadProps, type TableHeaderCellProps, type TableProps, type TableRowProps, type TableScrollAreaProps, type TableSortDirection, Tabs, type TabsListProps, type TabsPanelProps, type TabsProps, type TabsTabProps, Tag, type TagProps, Text, TextField, type TextFieldInputProps, type TextFieldProps, type TextProps, Textarea, type TextareaInputProps, type TextareaProps, type Theme, ThemeProvider, type ThemeProviderProps, Toast, type ToastOptions, type ToastProviderProps, type ToastVariant, Tooltip, type TooltipPopupProps, type TooltipProps, type TooltipProviderProps, type TooltipTriggerProps, VisuallyHidden, type VisuallyHiddenProps, defineTheme, useToast };
package/dist/index.mjs CHANGED
@@ -1,40 +1,47 @@
1
- import { Clickable as e } from "./Clickable/index.mjs";
2
- import { Icon as t } from "./Icon/index.mjs";
3
- import { Text as n } from "./Text/index.mjs";
4
- import { Button as r } from "./Button/index.mjs";
5
- import { Heading as i } from "./Heading/index.mjs";
6
- import { Dialog as a } from "./Dialog/index.mjs";
7
- import { AlertDialog as o } from "./AlertDialog/index.mjs";
8
- import { Avatar as s } from "./Avatar/index.mjs";
9
- import { Badge as c } from "./Badge/index.mjs";
10
- import { Box as l } from "./Box/index.mjs";
11
- import { Checkbox as u } from "./Checkbox/index.mjs";
12
- import { Chip as d, ChipGroup as f } from "./Chip/index.mjs";
13
- import { Field as p } from "./Field/index.mjs";
14
- import { ColorField as m } from "./ColorField/index.mjs";
15
- import { Combobox as h } from "./Combobox/index.mjs";
16
- import { IconButton as g } from "./IconButton/index.mjs";
17
- import { Inline as _ } from "./Inline/index.mjs";
18
- import { Menu as v } from "./Menu/index.mjs";
19
- import { MultiSelect as y } from "./MultiSelect/index.mjs";
20
- import { VisuallyHidden as b } from "./VisuallyHidden/index.mjs";
21
- import { NavList as x } from "./NavList/index.mjs";
22
- import { NumberField as S } from "./NumberField/index.mjs";
23
- import { RadioGroup as C } from "./RadioGroup/index.mjs";
24
- import { SearchField as w } from "./SearchField/index.mjs";
25
- import { Select as T } from "./Select/index.mjs";
26
- import { Sidebar as E } from "./Sidebar/index.mjs";
27
- import { SidebarLayout as D } from "./SidebarLayout/index.mjs";
28
- import { Stack as O } from "./Stack/index.mjs";
29
- import { Switch as k } from "./Switch/index.mjs";
30
- import { Table as A } from "./Table/index.mjs";
31
- import { Tabs as j } from "./Tabs/index.mjs";
32
- import { Tag as M } from "./Tag/index.mjs";
33
- import { Textarea as N } from "./Textarea/index.mjs";
34
- import { TextField as P } from "./TextField/index.mjs";
35
- import { defineTheme as F } from "./theme/define-theme.mjs";
36
- import { ThemeProvider as I } from "./theme/ThemeProvider.mjs";
37
- import { useToast as L } from "./Toast/client.mjs";
38
- import { Toast as R } from "./Toast/index.mjs";
39
- import { Tooltip as z } from "./Tooltip/index.mjs";
40
- export { o as AlertDialog, s as Avatar, c as Badge, l as Box, r as Button, u as Checkbox, d as Chip, f as ChipGroup, e as Clickable, m as ColorField, h as Combobox, a as Dialog, p as Field, i as Heading, t as Icon, g as IconButton, _ as Inline, v as Menu, y as MultiSelect, x as NavList, S as NumberField, C as RadioGroup, w as SearchField, T as Select, E as Sidebar, D as SidebarLayout, O as Stack, k as Switch, A as Table, j as Tabs, M as Tag, n as Text, P as TextField, N as Textarea, I as ThemeProvider, R as Toast, z as Tooltip, b as VisuallyHidden, F as defineTheme, L as useToast };
1
+ import { Alert as e } from "./Alert/index.mjs";
2
+ import { AlertDialog as t } from "./AlertDialog/index.mjs";
3
+ import { Avatar as n } from "./Avatar/index.mjs";
4
+ import { Badge as r } from "./Badge/index.mjs";
5
+ import { Body as i } from "./Body/index.mjs";
6
+ import { Box as a } from "./Box/index.mjs";
7
+ import { Button as o } from "./Button/index.mjs";
8
+ import { Caption as s } from "./Caption/index.mjs";
9
+ import { Checkbox as c } from "./Checkbox/index.mjs";
10
+ import { Chip as l, ChipGroup as u } from "./Chip/index.mjs";
11
+ import { Clickable as d } from "./Clickable/index.mjs";
12
+ import { Code as f } from "./Code/index.mjs";
13
+ import { ColorField as p } from "./ColorField/index.mjs";
14
+ import { Combobox as m } from "./Combobox/index.mjs";
15
+ import { Dialog as h } from "./Dialog/index.mjs";
16
+ import { Field as g } from "./Field/index.mjs";
17
+ import { Flex as _ } from "./Flex/index.mjs";
18
+ import { Heading as v } from "./Heading/index.mjs";
19
+ import { Icon as y } from "./Icon/index.mjs";
20
+ import { IconButton as b } from "./IconButton/index.mjs";
21
+ import { Inline as x } from "./Inline/index.mjs";
22
+ import { Label as S } from "./Label/index.mjs";
23
+ import { Menu as C } from "./Menu/index.mjs";
24
+ import { MultiSelect as w } from "./MultiSelect/index.mjs";
25
+ import { NavList as T } from "./NavList/index.mjs";
26
+ import { NumberField as E } from "./NumberField/index.mjs";
27
+ import { Popover as D } from "./Popover/index.mjs";
28
+ import { RadioGroup as O } from "./RadioGroup/index.mjs";
29
+ import { SearchField as k } from "./SearchField/index.mjs";
30
+ import { Select as A } from "./Select/index.mjs";
31
+ import { Sidebar as j } from "./Sidebar/index.mjs";
32
+ import { SidebarLayout as M } from "./SidebarLayout/index.mjs";
33
+ import { Stack as N } from "./Stack/index.mjs";
34
+ import { Switch as P } from "./Switch/index.mjs";
35
+ import { Table as F } from "./Table/index.mjs";
36
+ import { Tabs as I } from "./Tabs/index.mjs";
37
+ import { Tag as L } from "./Tag/index.mjs";
38
+ import { Text as R } from "./Text/index.mjs";
39
+ import { Textarea as z } from "./Textarea/index.mjs";
40
+ import { TextField as B } from "./TextField/index.mjs";
41
+ import { defineTheme as V } from "./theme/define-theme.mjs";
42
+ import { ThemeProvider as H } from "./theme/ThemeProvider.mjs";
43
+ import { Toast as U } from "./Toast/index.mjs";
44
+ import { useToast as W } from "./Toast/client.mjs";
45
+ import { Tooltip as G } from "./Tooltip/index.mjs";
46
+ import { VisuallyHidden as K } from "./VisuallyHidden/index.mjs";
47
+ export { e as Alert, t as AlertDialog, n as Avatar, r as Badge, i as Body, a as Box, o as Button, s as Caption, c as Checkbox, l as Chip, u as ChipGroup, d as Clickable, f as Code, p as ColorField, m as Combobox, h as Dialog, g as Field, _ as Flex, v as Heading, y as Icon, b as IconButton, x as Inline, S as Label, C as Menu, w as MultiSelect, T as NavList, E as NumberField, D as Popover, O as RadioGroup, k as SearchField, A as Select, j as Sidebar, M as SidebarLayout, N as Stack, P as Switch, F as Table, I as Tabs, L as Tag, R as Text, B as TextField, z as Textarea, H as ThemeProvider, U as Toast, G as Tooltip, K as VisuallyHidden, V as defineTheme, W as useToast };
@@ -5,4 +5,23 @@
5
5
  * `Tooltip.Popup`, named by its full tag so Menu's and Dialog's popups are still checked (ADR 0168).
6
6
  * Spread it and add the app's own text components; see `docs/lint.md`.
7
7
  */
8
- export declare const textComponents: readonly string[];
8
+ export declare const textComponents: readonly string[];
9
+ /** One style prop: the keys it takes and the CSS value each key sets. */
10
+ export interface StyleProp {
11
+ /** The keys, sorted as `manifest.json` `styleProps` lists them: `"16"`, `"flex"`, `"bgRaised"`. */
12
+ readonly values: readonly (string | number)[];
13
+ /**
14
+ * The CSS value each key sets, so a rule can match a `*.css.ts` property/value pair a style prop
15
+ * covers: `display: "flex"` is `flex`, `gap: vars.space["16"]` is `var(--space-16)`. A shorthand
16
+ * (`padding`) sets the value on each of its logical longhands.
17
+ */
18
+ readonly css: Readonly<Record<string, string>>;
19
+ /** Also takes a breakpoint object (`{ base: "8", med: "16" }`): the layout props (ADR 0011). */
20
+ readonly responsive: boolean;
21
+ }
22
+ /**
23
+ * Every style prop `Box` and the components built on it take, by name, from the values the style
24
+ * props are built from, so it matches `manifest.json` `styleProps`. For a lint rule that reports a
25
+ * `*.css.ts` property/value pair a style prop covers; see `docs/lint.md`.
26
+ */
27
+ export declare const styleProps: Readonly<Record<string, StyleProp>>;
@@ -1,7 +1,11 @@
1
+ import { responsiveValues as e, shorthands as t, staticValues as n } from "../styles/atom-values.mjs";
1
2
  // src/lint/index.ts
2
- var e = Object.freeze([
3
+ var r = Object.freeze([
3
4
  "Text",
4
5
  "Heading",
6
+ "Body",
7
+ "Caption",
8
+ "Code",
5
9
  "Button",
6
10
  "Badge",
7
11
  "Tag",
@@ -13,10 +17,22 @@ var e = Object.freeze([
13
17
  "Error",
14
18
  "Description",
15
19
  "Trigger",
20
+ "SubmenuTrigger",
16
21
  "Close",
17
22
  "HeaderCell",
18
23
  "Cell",
19
24
  "Tooltip.Popup",
20
25
  "VisuallyHidden"
21
- ]);
22
- export { e as textComponents };
26
+ ]), i = (e) => Array.isArray(e) ? e.map((e) => [e, String(e)]) : Object.entries(e), a = new Intl.Collator("en", { numeric: !0 }), o = (e, t) => {
27
+ let n = i(e).toSorted(([e], [t]) => a.compare(String(e), String(t)));
28
+ return Object.freeze({
29
+ values: Object.freeze(n.map(([e]) => e)),
30
+ css: Object.freeze(Object.fromEntries(n)),
31
+ responsive: t
32
+ });
33
+ }, s = (e, t) => Object.entries(e).map(([e, n]) => [e, o(n, t)]), c = s(e, !0), l = new Map(c), u = [
34
+ ...c,
35
+ ...Object.entries(t).map(([e, [t]]) => [e, l.get(t)]),
36
+ ...s(n, !1)
37
+ ], d = Object.freeze(Object.fromEntries(u.toSorted(([e], [t]) => e.localeCompare(t, "en"))));
38
+ export { d as styleProps, r as textComponents };
@@ -1,5 +1,5 @@
1
- import { ClickableProps } from "../Clickable/index.mjs";
2
1
  import { ButtonOwnProps } from "../Button/index.mjs";
2
+ import { ClickableProps } from "../Clickable/index.mjs";
3
3
  import { ReactNode } from "react";
4
4
  export type TriggerLookProps = {
5
5
  variant?: Exclude<ButtonOwnProps["variant"], "danger">;