@astryxdesign/core 0.2.0-canary.dfccd57 → 0.2.0-canary.e424a04

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 (243) hide show
  1. package/dist/AppShell/AppShell.d.ts +1 -19
  2. package/dist/AppShell/AppShell.d.ts.map +1 -1
  3. package/dist/AppShell/AppShell.js +0 -13
  4. package/dist/AppShell/index.d.ts +20 -1
  5. package/dist/AppShell/index.d.ts.map +1 -1
  6. package/dist/AppShell/index.js +14 -0
  7. package/dist/Avatar/AvatarStatusDot.d.ts +1 -25
  8. package/dist/Avatar/AvatarStatusDot.d.ts.map +1 -1
  9. package/dist/Avatar/AvatarStatusDot.js +0 -21
  10. package/dist/Avatar/index.d.ts +26 -1
  11. package/dist/Avatar/index.d.ts.map +1 -1
  12. package/dist/Avatar/index.js +21 -0
  13. package/dist/Badge/Badge.d.ts +1 -29
  14. package/dist/Badge/Badge.d.ts.map +1 -1
  15. package/dist/Badge/Badge.js +1 -16
  16. package/dist/Badge/index.d.ts +31 -2
  17. package/dist/Badge/index.d.ts.map +1 -1
  18. package/dist/Badge/index.js +15 -1
  19. package/dist/Banner/Banner.d.ts +1 -36
  20. package/dist/Banner/Banner.d.ts.map +1 -1
  21. package/dist/Banner/Banner.js +0 -28
  22. package/dist/Banner/index.d.ts +37 -1
  23. package/dist/Banner/index.d.ts.map +1 -1
  24. package/dist/Banner/index.js +27 -0
  25. package/dist/Breadcrumbs/BreadcrumbItem.js +3 -2
  26. package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -17
  27. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  28. package/dist/Breadcrumbs/Breadcrumbs.js +0 -14
  29. package/dist/Breadcrumbs/index.d.ts +18 -1
  30. package/dist/Breadcrumbs/index.d.ts.map +1 -1
  31. package/dist/Breadcrumbs/index.js +14 -0
  32. package/dist/Button/Button.d.ts +1 -19
  33. package/dist/Button/Button.d.ts.map +1 -1
  34. package/dist/Button/Button.js +1 -16
  35. package/dist/Button/index.d.ts +21 -3
  36. package/dist/Button/index.d.ts.map +1 -1
  37. package/dist/Button/index.js +15 -1
  38. package/dist/Chat/ChatSendButton.d.ts.map +1 -1
  39. package/dist/Chat/ChatSendButton.js +4 -2
  40. package/dist/Collapsible/Collapsible.js +2 -2
  41. package/dist/CommandPalette/CommandPaletteInput.d.ts +1 -1
  42. package/dist/CommandPalette/CommandPaletteInput.d.ts.map +1 -1
  43. package/dist/CommandPalette/CommandPaletteInput.js +3 -1
  44. package/dist/ContextMenu/ContextMenu.d.ts +1 -1
  45. package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
  46. package/dist/ContextMenu/ContextMenu.js +13 -4
  47. package/dist/Dialog/Dialog.d.ts +1 -17
  48. package/dist/Dialog/Dialog.d.ts.map +1 -1
  49. package/dist/Dialog/Dialog.js +1 -16
  50. package/dist/Dialog/index.d.ts +18 -1
  51. package/dist/Dialog/index.d.ts.map +1 -1
  52. package/dist/Dialog/index.js +14 -0
  53. package/dist/Divider/Divider.d.ts +1 -17
  54. package/dist/Divider/Divider.d.ts.map +1 -1
  55. package/dist/Divider/Divider.js +0 -14
  56. package/dist/Divider/index.d.ts +18 -1
  57. package/dist/Divider/index.d.ts.map +1 -1
  58. package/dist/Divider/index.js +14 -0
  59. package/dist/DropdownMenu/DropdownMenu.d.ts +8 -2
  60. package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  61. package/dist/DropdownMenu/DropdownMenu.js +22 -18
  62. package/dist/Field/FieldLabel.d.ts +1 -1
  63. package/dist/Field/FieldLabel.d.ts.map +1 -1
  64. package/dist/Field/FieldLabel.js +40 -1
  65. package/dist/FieldStatus/FieldStatus.d.ts +1 -18
  66. package/dist/FieldStatus/FieldStatus.d.ts.map +1 -1
  67. package/dist/FieldStatus/FieldStatus.js +0 -14
  68. package/dist/FieldStatus/index.d.ts +19 -1
  69. package/dist/FieldStatus/index.d.ts.map +1 -1
  70. package/dist/FieldStatus/index.js +14 -0
  71. package/dist/Icon/Icon.d.ts.map +1 -1
  72. package/dist/Icon/Icon.js +3 -1
  73. package/dist/Icon/globalIconRegistry.d.ts +47 -5
  74. package/dist/Icon/globalIconRegistry.d.ts.map +1 -1
  75. package/dist/Icon/globalIconRegistry.js +73 -6
  76. package/dist/Icon/index.d.ts +4 -3
  77. package/dist/Icon/index.d.ts.map +1 -1
  78. package/dist/Icon/index.js +2 -1
  79. package/dist/Icon/useIcon.d.ts +14 -0
  80. package/dist/Icon/useIcon.d.ts.map +1 -0
  81. package/dist/Icon/useIcon.js +21 -0
  82. package/dist/MoreMenu/MoreMenu.js +2 -2
  83. package/dist/Pagination/Pagination.d.ts +1 -20
  84. package/dist/Pagination/Pagination.d.ts.map +1 -1
  85. package/dist/Pagination/Pagination.js +0 -14
  86. package/dist/Pagination/index.d.ts +21 -1
  87. package/dist/Pagination/index.d.ts.map +1 -1
  88. package/dist/Pagination/index.js +14 -0
  89. package/dist/Popover/Popover.d.ts +19 -2
  90. package/dist/Popover/Popover.d.ts.map +1 -1
  91. package/dist/Popover/Popover.js +4 -0
  92. package/dist/ProgressBar/ProgressBar.d.ts +1 -20
  93. package/dist/ProgressBar/ProgressBar.d.ts.map +1 -1
  94. package/dist/ProgressBar/ProgressBar.js +0 -14
  95. package/dist/ProgressBar/index.d.ts +21 -1
  96. package/dist/ProgressBar/index.d.ts.map +1 -1
  97. package/dist/ProgressBar/index.js +14 -0
  98. package/dist/Section/Section.d.ts +1 -18
  99. package/dist/Section/Section.d.ts.map +1 -1
  100. package/dist/Section/Section.js +0 -14
  101. package/dist/Section/index.d.ts +19 -1
  102. package/dist/Section/index.d.ts.map +1 -1
  103. package/dist/Section/index.js +14 -0
  104. package/dist/SideNav/SideNavCollapseButton.d.ts.map +1 -1
  105. package/dist/SideNav/SideNavCollapseButton.js +3 -2
  106. package/dist/SideNav/SideNavHeading.d.ts.map +1 -1
  107. package/dist/SideNav/SideNavHeading.js +7 -6
  108. package/dist/SideNav/SideNavItem.d.ts +1 -1
  109. package/dist/SideNav/SideNavItem.d.ts.map +1 -1
  110. package/dist/SideNav/SideNavItem.js +5 -6
  111. package/dist/StatusDot/StatusDot.d.ts +1 -20
  112. package/dist/StatusDot/StatusDot.d.ts.map +1 -1
  113. package/dist/StatusDot/StatusDot.js +1 -16
  114. package/dist/StatusDot/index.d.ts +21 -1
  115. package/dist/StatusDot/index.d.ts.map +1 -1
  116. package/dist/StatusDot/index.js +14 -0
  117. package/dist/Text/index.d.ts +31 -1
  118. package/dist/Text/index.d.ts.map +1 -1
  119. package/dist/Text/index.js +23 -0
  120. package/dist/Token/Token.d.ts +1 -26
  121. package/dist/Token/Token.d.ts.map +1 -1
  122. package/dist/Token/Token.js +0 -14
  123. package/dist/Token/index.d.ts +27 -1
  124. package/dist/Token/index.d.ts.map +1 -1
  125. package/dist/Token/index.js +14 -0
  126. package/dist/TopNav/TopNavHeading.d.ts.map +1 -1
  127. package/dist/TopNav/TopNavHeading.js +6 -5
  128. package/dist/TopNav/TopNavMegaMenu.js +5 -3
  129. package/dist/TopNav/TopNavMenu.d.ts.map +1 -1
  130. package/dist/TopNav/TopNavMenu.js +4 -3
  131. package/dist/TreeList/TreeListItem.d.ts.map +1 -1
  132. package/dist/TreeList/TreeListItem.js +3 -2
  133. package/dist/TreeList/TreeListTypes.d.ts +1 -17
  134. package/dist/TreeList/TreeListTypes.d.ts.map +1 -1
  135. package/dist/TreeList/index.d.ts +18 -1
  136. package/dist/TreeList/index.d.ts.map +1 -1
  137. package/dist/TreeList/index.js +14 -0
  138. package/dist/astryx.css +18 -0
  139. package/dist/astryx.umd.js +48 -48
  140. package/dist/astryx.umd.js.map +4 -4
  141. package/dist/hooks/containerReveal.pool.stylex.d.ts +49 -27
  142. package/dist/hooks/containerReveal.pool.stylex.d.ts.map +1 -1
  143. package/dist/hooks/containerReveal.pool.stylex.js +40 -29
  144. package/dist/hooks/useContainerReveal.d.ts +1 -1
  145. package/dist/hooks/useContainerReveal.d.ts.map +1 -1
  146. package/dist/hooks/useContainerReveal.js +1 -1
  147. package/dist/hooks/useInputContainer.d.ts.map +1 -1
  148. package/dist/hooks/useInputContainer.js +29 -1
  149. package/dist/index.d.ts +1 -0
  150. package/dist/index.d.ts.map +1 -1
  151. package/dist/index.js +1 -0
  152. package/dist/theme/Theme.d.ts.map +1 -1
  153. package/dist/theme/Theme.js +2 -7
  154. package/dist/theme/defineTheme.d.ts.map +1 -1
  155. package/dist/theme/defineTheme.js +4 -1
  156. package/dist/theme/index.d.ts +4 -2
  157. package/dist/theme/index.d.ts.map +1 -1
  158. package/dist/theme/index.js +2 -1
  159. package/dist/theme/themeRegistry.d.ts +32 -0
  160. package/dist/theme/themeRegistry.d.ts.map +1 -0
  161. package/dist/theme/themeRegistry.js +49 -0
  162. package/dist/theme/types.d.ts +1 -30
  163. package/dist/theme/types.d.ts.map +1 -1
  164. package/dist/theme/useTheme.d.ts +9 -0
  165. package/dist/theme/useTheme.d.ts.map +1 -1
  166. package/dist/theme/useTheme.js +82 -27
  167. package/package.json +2 -2
  168. package/src/AppShell/AppShell.tsx +1 -19
  169. package/src/AppShell/index.ts +20 -1
  170. package/src/Avatar/AvatarStatusDot.tsx +1 -26
  171. package/src/Avatar/index.ts +26 -1
  172. package/src/Badge/Badge.tsx +1 -30
  173. package/src/Badge/index.ts +32 -6
  174. package/src/Banner/Banner.tsx +1 -38
  175. package/src/Banner/index.ts +39 -7
  176. package/src/Breadcrumbs/BreadcrumbItem.tsx +4 -2
  177. package/src/Breadcrumbs/Breadcrumbs.tsx +1 -18
  178. package/src/Breadcrumbs/index.ts +19 -5
  179. package/src/Button/Button.tsx +1 -20
  180. package/src/Button/index.ts +22 -7
  181. package/src/Chat/ChatSendButton.tsx +5 -3
  182. package/src/CheckboxInput/CheckboxInput.test.tsx +33 -0
  183. package/src/Collapsible/Collapsible.tsx +2 -2
  184. package/src/CommandPalette/CommandPaletteInput.tsx +4 -0
  185. package/src/ContextMenu/ContextMenu.tsx +16 -4
  186. package/src/Dialog/Dialog.tsx +1 -18
  187. package/src/Dialog/index.ts +18 -1
  188. package/src/Divider/Divider.tsx +1 -18
  189. package/src/Divider/index.ts +19 -5
  190. package/src/DropdownMenu/DropdownMenu.doc.mjs +12 -0
  191. package/src/DropdownMenu/DropdownMenu.test.tsx +87 -0
  192. package/src/DropdownMenu/DropdownMenu.tsx +30 -19
  193. package/src/Field/FieldLabel.test.tsx +78 -0
  194. package/src/Field/FieldLabel.tsx +49 -2
  195. package/src/FieldStatus/FieldStatus.tsx +1 -19
  196. package/src/FieldStatus/index.ts +20 -5
  197. package/src/Icon/Icon.doc.mjs +1 -0
  198. package/src/Icon/Icon.test.tsx +23 -0
  199. package/src/Icon/Icon.tsx +3 -1
  200. package/src/Icon/globalIconRegistry.test.tsx +87 -1
  201. package/src/Icon/globalIconRegistry.tsx +108 -8
  202. package/src/Icon/index.ts +9 -7
  203. package/src/Icon/useIcon.ts +23 -0
  204. package/src/List/ListItem.doc.mjs +1 -1
  205. package/src/MoreMenu/MoreMenu.tsx +2 -2
  206. package/src/Pagination/Pagination.tsx +1 -21
  207. package/src/Pagination/index.ts +21 -1
  208. package/src/Popover/Popover.doc.mjs +28 -0
  209. package/src/Popover/Popover.test.tsx +41 -0
  210. package/src/Popover/Popover.tsx +24 -1
  211. package/src/ProgressBar/ProgressBar.tsx +1 -21
  212. package/src/ProgressBar/index.ts +22 -5
  213. package/src/Section/Section.tsx +1 -19
  214. package/src/Section/index.ts +20 -5
  215. package/src/SideNav/SideNavCollapseButton.tsx +3 -2
  216. package/src/SideNav/SideNavHeading.tsx +7 -8
  217. package/src/SideNav/SideNavItem.tsx +4 -5
  218. package/src/StatusDot/StatusDot.tsx +1 -21
  219. package/src/StatusDot/index.ts +22 -5
  220. package/src/Switch/Switch.test.tsx +34 -0
  221. package/src/Text/index.ts +31 -1
  222. package/src/Token/Token.tsx +1 -27
  223. package/src/Token/index.ts +28 -1
  224. package/src/TopNav/TopNavHeading.tsx +6 -7
  225. package/src/TopNav/TopNavMegaMenu.tsx +5 -3
  226. package/src/TopNav/TopNavMenu.tsx +4 -3
  227. package/src/TreeList/TreeListItem.tsx +3 -2
  228. package/src/TreeList/TreeListTypes.ts +1 -18
  229. package/src/TreeList/index.ts +19 -1
  230. package/src/hooks/containerReveal.pool.stylex.ts +154 -47
  231. package/src/hooks/useContainerReveal.doc.mjs +5 -5
  232. package/src/hooks/useContainerReveal.ts +5 -4
  233. package/src/hooks/useInputContainer.test.tsx +180 -0
  234. package/src/hooks/useInputContainer.ts +36 -1
  235. package/src/index.ts +1 -0
  236. package/src/theme/Theme.tsx +3 -7
  237. package/src/theme/defineTheme.ts +5 -1
  238. package/src/theme/index.ts +8 -2
  239. package/src/theme/themeRegistry.test.ts +59 -0
  240. package/src/theme/themeRegistry.ts +53 -0
  241. package/src/theme/types.ts +2 -31
  242. package/src/theme/useTheme.test.tsx +48 -3
  243. package/src/theme/useTheme.ts +100 -29
@@ -17,6 +17,7 @@ import React from 'react';
17
17
  import { type ReactNode } from 'react';
18
18
  import type { SpacingStep } from '../utils/types';
19
19
  import type { BaseProps } from '../BaseProps';
20
+ import type { AppShellVariantMap } from './index';
20
21
  /**
21
22
  * SideNav breakpoint options.
22
23
  * - `sm`: 640px
@@ -33,25 +34,6 @@ export type AppShellBreakpoint = 'sm' | 'md' | 'lg' | 'none';
33
34
  * - `elevated`: Wash nav background with elevated surface content + border radius
34
35
  * @default 'elevated'
35
36
  */
36
- /**
37
- * Extensible variant map for AppShell.
38
- *
39
- * Theme packages can add custom variants via TypeScript module augmentation:
40
- * @example
41
- * ```
42
- * declare module '@astryxdesign/core/AppShell' {
43
- * interface AppShellVariantMap {
44
- * 'glass': true;
45
- * }
46
- * }
47
- * ```
48
- */
49
- export interface AppShellVariantMap {
50
- wash: true;
51
- surface: true;
52
- section: true;
53
- elevated: true;
54
- }
55
37
  /**
56
38
  * Navigation background style. Extensible via module augmentation of AppShellVariantMap.
57
39
  */
@@ -1 +1 @@
1
- {"version":3,"file":"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T,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,aAAa,qBAsXf;yBArYe,QAAQ"}
@@ -84,19 +84,6 @@ const MAIN_CONTENT_ID = 'astryx-app-shell-main';
84
84
  * - `elevated`: Wash nav background with elevated surface content + border radius
85
85
  * @default 'elevated'
86
86
  */
87
- /**
88
- * Extensible variant map for AppShell.
89
- *
90
- * Theme packages can add custom variants via TypeScript module augmentation:
91
- * @example
92
- * ```
93
- * declare module '@astryxdesign/core/AppShell' {
94
- * interface AppShellVariantMap {
95
- * 'glass': true;
96
- * }
97
- * }
98
- * ```
99
- */
100
87
 
101
88
  /**
102
89
  * Navigation background style. Extensible via module augmentation of AppShellVariantMap.
@@ -6,8 +6,27 @@
6
6
  *
7
7
  * SYNC: When modified, update this header and /packages/core/src/AppShell/AppShell.doc.mjs
8
8
  */
9
+ /**
10
+ * Extensible variant map for AppShell.
11
+ *
12
+ * Theme packages can add custom variants via TypeScript module augmentation:
13
+ * @example
14
+ * ```
15
+ * declare module '@astryxdesign/core/AppShell' {
16
+ * interface AppShellVariantMap {
17
+ * 'glass': true;
18
+ * }
19
+ * }
20
+ * ```
21
+ */
22
+ export interface AppShellVariantMap {
23
+ wash: true;
24
+ surface: true;
25
+ section: true;
26
+ elevated: true;
27
+ }
9
28
  export { AppShell } from './AppShell';
10
- export type { AppShellProps, AppShellBreakpoint, AppShellVariant, AppShellVariantMap, MobileNavConfig, } from './AppShell';
29
+ export type { AppShellProps, AppShellBreakpoint, AppShellVariant, MobileNavConfig, } from './AppShell';
11
30
  export { useAppShellMobile, AppShellMobileContext, } from './AppShellMobileContext';
12
31
  export type { AppShellMobileContextValue } from './AppShellMobileContext';
13
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AppShell/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAC,0BAA0B,EAAC,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AppShell/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;IACd,QAAQ,EAAE,IAAI,CAAC;CAChB;AAED,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAC,0BAA0B,EAAC,MAAM,yBAAyB,CAAC"}
@@ -10,5 +10,19 @@
10
10
  *
11
11
  * SYNC: When modified, update this header and /packages/core/src/AppShell/AppShell.doc.mjs
12
12
  */
13
+
14
+ /**
15
+ * Extensible variant map for AppShell.
16
+ *
17
+ * Theme packages can add custom variants via TypeScript module augmentation:
18
+ * @example
19
+ * ```
20
+ * declare module '@astryxdesign/core/AppShell' {
21
+ * interface AppShellVariantMap {
22
+ * 'glass': true;
23
+ * }
24
+ * }
25
+ * ```
26
+ */
13
27
  export { AppShell } from "./AppShell.js";
14
28
  export { useAppShellMobile, AppShellMobileContext } from "./AppShellMobileContext.js";
@@ -12,31 +12,7 @@
12
12
  */
13
13
  import React, { type ReactNode } from 'react';
14
14
  import type { BaseProps } from '../BaseProps';
15
- /**
16
- * Extensible variant map for AvatarStatusDot.
17
- *
18
- * Theme packages can add custom variants via TypeScript module augmentation:
19
- * @example
20
- * ```
21
- * declare module '@astryxdesign/core/Avatar' {
22
- * interface AvatarStatusDotVariantMap {
23
- * 'away': true;
24
- * }
25
- * }
26
- * ```
27
- *
28
- * Custom variants render no background fill, no ink colour, and no built-in
29
- * shape glyph — the theme must supply the fill and, if it passes an `icon`,
30
- * a `color` for it to paint with. It should also supply a non-colour mark
31
- * so the status is not distinguishable by colour alone (a WCAG 1.4.1
32
- * failure): pass `icon`, or theme a glyph onto the dot via
33
- * `.astryx-avatar-status-dot[data-variant="..."]` (e.g. a `::before` mark).
34
- */
35
- export interface AvatarStatusDotVariantMap {
36
- success: true;
37
- neutral: true;
38
- error: true;
39
- }
15
+ import type { AvatarStatusDotVariantMap } from './index';
40
16
  /**
41
17
  * AvatarStatusDot variant type. Extensible via module augmentation of AvatarStatusDotVariantMap.
42
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarStatusDot.d.ts","sourceRoot":"","sources":["../../src/Avatar/AvatarStatusDot.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAAM,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAiD5C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,IAAI,CAAC;CACb;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,yBAAyB,CAAC;AAErE,MAAM,WAAW,oBAAqB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACrE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,sBAAsB,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lDe,eAAe"}
@@ -73,27 +73,6 @@ function resolveStatusDotSize(avatarSize) {
73
73
  };
74
74
  }
75
75
 
76
- /**
77
- * Extensible variant map for AvatarStatusDot.
78
- *
79
- * Theme packages can add custom variants via TypeScript module augmentation:
80
- * @example
81
- * ```
82
- * declare module '@astryxdesign/core/Avatar' {
83
- * interface AvatarStatusDotVariantMap {
84
- * 'away': true;
85
- * }
86
- * }
87
- * ```
88
- *
89
- * Custom variants render no background fill, no ink colour, and no built-in
90
- * shape glyph — the theme must supply the fill and, if it passes an `icon`,
91
- * a `color` for it to paint with. It should also supply a non-colour mark
92
- * so the status is not distinguishable by colour alone (a WCAG 1.4.1
93
- * failure): pass `icon`, or theme a glyph onto the dot via
94
- * `.astryx-avatar-status-dot[data-variant="..."]` (e.g. a `::before` mark).
95
- */
96
-
97
76
  /**
98
77
  * AvatarStatusDot variant type. Extensible via module augmentation of AvatarStatusDotVariantMap.
99
78
  */
@@ -6,8 +6,33 @@
6
6
  *
7
7
  * SYNC: When modified, update this header and /packages/core/src/Avatar/Avatar.doc.mjs
8
8
  */
9
+ /**
10
+ * Extensible variant map for AvatarStatusDot.
11
+ *
12
+ * Theme packages can add custom variants via TypeScript module augmentation:
13
+ * @example
14
+ * ```
15
+ * declare module '@astryxdesign/core/Avatar' {
16
+ * interface AvatarStatusDotVariantMap {
17
+ * 'away': true;
18
+ * }
19
+ * }
20
+ * ```
21
+ *
22
+ * Custom variants render no background fill, no ink colour, and no built-in
23
+ * shape glyph — the theme must supply the fill and, if it passes an `icon`,
24
+ * a `color` for it to paint with. It should also supply a non-colour mark
25
+ * so the status is not distinguishable by colour alone (a WCAG 1.4.1
26
+ * failure): pass `icon`, or theme a glyph onto the dot via
27
+ * `.astryx-avatar-status-dot[data-variant="..."]` (e.g. a `::before` mark).
28
+ */
29
+ export interface AvatarStatusDotVariantMap {
30
+ success: true;
31
+ neutral: true;
32
+ error: true;
33
+ }
9
34
  export { Avatar, resolveSize } from './Avatar';
10
35
  export type { AvatarProps, AvatarSize } from './Avatar';
11
36
  export { AvatarStatusDot } from './AvatarStatusDot';
12
- export type { AvatarStatusDotProps, AvatarStatusDotVariant, AvatarStatusDotVariantMap, } from './AvatarStatusDot';
37
+ export type { AvatarStatusDotProps, AvatarStatusDotVariant, } from './AvatarStatusDot';
13
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Avatar/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH,OAAO,EAAC,MAAM,EAAE,WAAW,EAAC,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AACtD,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,YAAY,EACV,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Avatar/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,IAAI,CAAC;CACb;AAED,OAAO,EAAC,MAAM,EAAE,WAAW,EAAC,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AACtD,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,YAAY,EACV,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC"}
@@ -10,5 +10,26 @@
10
10
  *
11
11
  * SYNC: When modified, update this header and /packages/core/src/Avatar/Avatar.doc.mjs
12
12
  */
13
+
14
+ /**
15
+ * Extensible variant map for AvatarStatusDot.
16
+ *
17
+ * Theme packages can add custom variants via TypeScript module augmentation:
18
+ * @example
19
+ * ```
20
+ * declare module '@astryxdesign/core/Avatar' {
21
+ * interface AvatarStatusDotVariantMap {
22
+ * 'away': true;
23
+ * }
24
+ * }
25
+ * ```
26
+ *
27
+ * Custom variants render no background fill, no ink colour, and no built-in
28
+ * shape glyph — the theme must supply the fill and, if it passes an `icon`,
29
+ * a `color` for it to paint with. It should also supply a non-colour mark
30
+ * so the status is not distinguishable by colour alone (a WCAG 1.4.1
31
+ * failure): pass `icon`, or theme a glyph onto the dot via
32
+ * `.astryx-avatar-status-dot[data-variant="..."]` (e.g. a `::before` mark).
33
+ */
13
34
  export { Avatar, resolveSize } from "./Avatar.js";
14
35
  export { AvatarStatusDot } from "./AvatarStatusDot.js";
@@ -13,35 +13,7 @@
13
13
  */
14
14
  import type { ReactNode } from 'react';
15
15
  import type { BaseProps } from '../BaseProps';
16
- /**
17
- * Extensible variant map for Badge.
18
- *
19
- * Theme packages can add custom variants via TypeScript module augmentation:
20
- * @example
21
- * ```
22
- * declare module '@astryxdesign/core/Badge' {
23
- * interface BadgeVariantMap {
24
- * 'premium': true;
25
- * }
26
- * }
27
- * ```
28
- */
29
- export interface BadgeVariantMap {
30
- neutral: true;
31
- info: true;
32
- success: true;
33
- warning: true;
34
- error: true;
35
- blue: true;
36
- cyan: true;
37
- green: true;
38
- orange: true;
39
- pink: true;
40
- purple: true;
41
- red: true;
42
- teal: true;
43
- yellow: true;
44
- }
16
+ import type { BadgeVariantMap } from './index';
45
17
  /**
46
18
  * Badge variant type derived from BadgeVariantMap.
47
19
  * Extensible via module augmentation of BadgeVariantMap.
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/Badge/Badge.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAkG5C;;;;;;;;;;;;GAYG;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CAAC;AAwF7C;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC5D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,EACpB,OAAmB,EACnB,KAAK,EACL,IAAI,EACJ,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,UAAU,+BAeZ;yBAxBe,KAAK"}
@@ -20,11 +20,10 @@ import "../theme/tokens.stylex.js";
20
20
  import { colorVars, spacingVars, radiusVars, fontWeightVars, typeScaleVars } from "../theme/tokens.stylex.js";
21
21
  import { mergeProps } from "../utils/index.js";
22
22
  import { themeProps } from "../utils/themeProps.js";
23
-
23
+ import { jsxs as _jsxs } from "react/jsx-runtime";
24
24
  /**
25
25
  * Base badge styles
26
26
  */
27
- import { jsxs as _jsxs } from "react/jsx-runtime";
28
27
  const styles = {
29
28
  base: {
30
29
  k1xSpc: "x3nfvp2",
@@ -121,20 +120,6 @@ const variants = {
121
120
  }
122
121
  };
123
122
 
124
- /**
125
- * Extensible variant map for Badge.
126
- *
127
- * Theme packages can add custom variants via TypeScript module augmentation:
128
- * @example
129
- * ```
130
- * declare module '@astryxdesign/core/Badge' {
131
- * interface BadgeVariantMap {
132
- * 'premium': true;
133
- * }
134
- * }
135
- * ```
136
- */
137
-
138
123
  /**
139
124
  * Badge variant type derived from BadgeVariantMap.
140
125
  * Extensible via module augmentation of BadgeVariantMap.
@@ -1,11 +1,40 @@
1
1
  /**
2
2
  * @file index.ts
3
3
  * @input Imports Badge component and types from Badge.tsx
4
- * @output Exports Badge, BadgeProps, BadgeVariant, BadgeVariantMap
4
+ * @output Exports Badge, BadgeProps, BadgeVariant
5
5
  * @position Component entry point; re-exported by /packages/core/src/index.ts
6
6
  *
7
7
  * SYNC: When modified, update this header and /packages/core/src/Badge/Badge.doc.mjs
8
8
  */
9
+ /**
10
+ * Extensible variant map for Badge.
11
+ *
12
+ * Theme packages can add custom variants via TypeScript module augmentation:
13
+ * @example
14
+ * ```
15
+ * declare module '@astryxdesign/core/Badge' {
16
+ * interface BadgeVariantMap {
17
+ * 'premium': true;
18
+ * }
19
+ * }
20
+ * ```
21
+ */
22
+ export interface BadgeVariantMap {
23
+ neutral: true;
24
+ info: true;
25
+ success: true;
26
+ warning: true;
27
+ error: true;
28
+ blue: true;
29
+ cyan: true;
30
+ green: true;
31
+ orange: true;
32
+ pink: true;
33
+ purple: true;
34
+ red: true;
35
+ teal: true;
36
+ yellow: true;
37
+ }
9
38
  export { Badge } from './Badge';
10
- export type { BadgeProps, BadgeVariant, BadgeVariantMap, } from './Badge';
39
+ export type { BadgeProps, BadgeVariant } from './Badge';
11
40
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Badge/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,YAAY,EACV,UAAU,EACV,YAAY,EACZ,eAAe,GAChB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Badge/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,IAAI,CAAC;IACZ,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,IAAI,CAAC;IACZ,MAAM,EAAE,IAAI,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,IAAI,CAAC;IACb,GAAG,EAAE,IAAI,CAAC;IACV,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,IAAI,CAAC;CACd;AAED,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,YAAY,EAAC,UAAU,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC"}
@@ -5,9 +5,23 @@
5
5
  /**
6
6
  * @file index.ts
7
7
  * @input Imports Badge component and types from Badge.tsx
8
- * @output Exports Badge, BadgeProps, BadgeVariant, BadgeVariantMap
8
+ * @output Exports Badge, BadgeProps, BadgeVariant
9
9
  * @position Component entry point; re-exported by /packages/core/src/index.ts
10
10
  *
11
11
  * SYNC: When modified, update this header and /packages/core/src/Badge/Badge.doc.mjs
12
12
  */
13
+
14
+ /**
15
+ * Extensible variant map for Badge.
16
+ *
17
+ * Theme packages can add custom variants via TypeScript module augmentation:
18
+ * @example
19
+ * ```
20
+ * declare module '@astryxdesign/core/Badge' {
21
+ * interface BadgeVariantMap {
22
+ * 'premium': true;
23
+ * }
24
+ * }
25
+ * ```
26
+ */
13
27
  export { Badge } from "./Badge.js";
@@ -29,47 +29,12 @@
29
29
  import { type ReactNode } from 'react';
30
30
  import type { BaseProps } from '../BaseProps';
31
31
  import type { Elevation } from '../utils/types';
32
- /**
33
- * Extensible status map for Banner.
34
- *
35
- * Theme packages can add custom statuses via TypeScript module augmentation:
36
- * @example
37
- * ```
38
- * declare module '@astryxdesign/core/Banner' {
39
- * interface BannerStatusMap {
40
- * 'neutral': true;
41
- * }
42
- * }
43
- * ```
44
- */
45
- export interface BannerStatusMap {
46
- info: true;
47
- warning: true;
48
- error: true;
49
- success: true;
50
- }
32
+ import type { BannerStatusMap, BannerContainerMap } from './index';
51
33
  /**
52
34
  * Status type controlling the banner's icon and color.
53
35
  * Extensible via module augmentation of BannerStatusMap.
54
36
  */
55
37
  export type BannerStatus = keyof BannerStatusMap;
56
- /**
57
- * Extensible container map for Banner.
58
- *
59
- * Theme packages can add custom container types via TypeScript module augmentation:
60
- * @example
61
- * ```
62
- * declare module '@astryxdesign/core/Banner' {
63
- * interface BannerContainerMap {
64
- * 'floating': true;
65
- * }
66
- * }
67
- * ```
68
- */
69
- export interface BannerContainerMap {
70
- card: true;
71
- section: true;
72
- }
73
38
  /**
74
39
  * Container type of the banner.
75
40
  * - `card`: standalone card with border-radius and shadow
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../src/Banner/Banner.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAkB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAgB5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAS9C;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,IAAI,CAAC;IACZ,OAAO,EAAE,IAAI,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,eAAe,CAAC;AAEjD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,IAAI,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,kBAAkB,CAAC;AAEvD,MAAM,WAAW,WAAY,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC5D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,G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18n/index.js";
45
45
  // Types
46
46
  // =============================================================================
47
47
 
48
- /**
49
- * Extensible status map for Banner.
50
- *
51
- * Theme packages can add custom statuses via TypeScript module augmentation:
52
- * @example
53
- * ```
54
- * declare module '@astryxdesign/core/Banner' {
55
- * interface BannerStatusMap {
56
- * 'neutral': true;
57
- * }
58
- * }
59
- * ```
60
- */
61
-
62
48
  /**
63
49
  * Status type controlling the banner's icon and color.
64
50
  * Extensible via module augmentation of BannerStatusMap.
65
51
  */
66
52
 
67
- /**
68
- * Extensible container map for Banner.
69
- *
70
- * Theme packages can add custom container types via TypeScript module augmentation:
71
- * @example
72
- * ```
73
- * declare module '@astryxdesign/core/Banner' {
74
- * interface BannerContainerMap {
75
- * 'floating': true;
76
- * }
77
- * }
78
- * ```
79
- */
80
-
81
53
  /**
82
54
  * Container type of the banner.
83
55
  * - `card`: standalone card with border-radius and shadow
@@ -6,6 +6,42 @@
6
6
  *
7
7
  * SYNC: When modified, update this header and /packages/core/src/Banner/Banner.doc.mjs
8
8
  */
9
+ /**
10
+ * Extensible status map for Banner.
11
+ *
12
+ * Theme packages can add custom statuses via TypeScript module augmentation:
13
+ * @example
14
+ * ```
15
+ * declare module '@astryxdesign/core/Banner' {
16
+ * interface BannerStatusMap {
17
+ * 'neutral': true;
18
+ * }
19
+ * }
20
+ * ```
21
+ */
22
+ /**
23
+ * Extensible container map for Banner.
24
+ *
25
+ * Theme packages can add custom container types via TypeScript module augmentation:
26
+ * @example
27
+ * ```
28
+ * declare module '@astryxdesign/core/Banner' {
29
+ * interface BannerContainerMap {
30
+ * 'floating': true;
31
+ * }
32
+ * }
33
+ * ```
34
+ */
35
+ export interface BannerContainerMap {
36
+ card: true;
37
+ section: true;
38
+ }
39
+ export interface BannerStatusMap {
40
+ info: true;
41
+ warning: true;
42
+ error: true;
43
+ success: true;
44
+ }
9
45
  export { Banner } from './Banner';
10
- export type { BannerProps, BannerStatus, BannerStatusMap, BannerContainer, BannerContainerMap, } from './Banner';
46
+ export type { BannerProps, BannerStatus, BannerContainer } from './Banner';
11
47
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Banner/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,YAAY,EACV,WAAW,EACX,YAAY,EACZ,eAAe,EACf,eAAe,EACf,kBAAkB,GACnB,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Banner/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,IAAI,CAAC;IACZ,OAAO,EAAE,IAAI,CAAC;CACf;AAED,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,YAAY,EAAC,WAAW,EAAE,YAAY,EAAE,eAAe,EAAC,MAAM,UAAU,CAAC"}
@@ -10,4 +10,31 @@
10
10
  *
11
11
  * SYNC: When modified, update this header and /packages/core/src/Banner/Banner.doc.mjs
12
12
  */
13
+
14
+ /**
15
+ * Extensible status map for Banner.
16
+ *
17
+ * Theme packages can add custom statuses via TypeScript module augmentation:
18
+ * @example
19
+ * ```
20
+ * declare module '@astryxdesign/core/Banner' {
21
+ * interface BannerStatusMap {
22
+ * 'neutral': true;
23
+ * }
24
+ * }
25
+ * ```
26
+ */
27
+ /**
28
+ * Extensible container map for Banner.
29
+ *
30
+ * Theme packages can add custom container types via TypeScript module augmentation:
31
+ * @example
32
+ * ```
33
+ * declare module '@astryxdesign/core/Banner' {
34
+ * interface BannerContainerMap {
35
+ * 'floating': true;
36
+ * }
37
+ * }
38
+ * ```
39
+ */
13
40
  export { Banner } from "./Banner.js";
@@ -29,7 +29,7 @@ import { BreadcrumbContext } from "./Breadcrumbs.js";
29
29
  import { useLinkComponent } from "../Link/useLinkComponent.js";
30
30
  import { mergeProps, mergeRefs } from "../utils/index.js";
31
31
  import { themeProps } from "../utils/themeProps.js";
32
- import { getIcon } from "../Icon/globalIconRegistry.js";
32
+ import { useIcon } from "../Icon/index.js";
33
33
  import { usePopover } from "../Popover/usePopover.js";
34
34
  import { useListFocus } from "../hooks/useListFocus.js";
35
35
  import { useTypeahead } from "../hooks/useTypeahead.js";
@@ -312,6 +312,7 @@ function BreadcrumbMenuTrigger({
312
312
  // wrapper would announce an unnamed dialog around the menu.
313
313
  role: 'none'
314
314
  });
315
+ const chevronDownIcon = useIcon('chevronDown');
315
316
  const closeMenu = useCallback(() => {
316
317
  popover.hide();
317
318
  }, [popover]);
@@ -407,7 +408,7 @@ function BreadcrumbMenuTrigger({
407
408
  ...{
408
409
  className: "x78zum5 x6s0dn4 x2lah0s x141an7d"
409
410
  },
410
- children: getIcon('chevronDown')
411
+ children: chevronDownIcon
411
412
  })]
412
413
  }), popover.render(/*#__PURE__*/_jsx("div", {
413
414
  ref: listRef,
@@ -13,23 +13,7 @@
13
13
  */
14
14
  import { type ReactNode } from 'react';
15
15
  import type { BaseProps } from '../BaseProps';
16
- /**
17
- * Extensible variant map for Breadcrumbs.
18
- *
19
- * Theme packages can add custom variants via TypeScript module augmentation:
20
- * @example
21
- * ```
22
- * declare module '@astryxdesign/core/Breadcrumbs' {
23
- * interface BreadcrumbsVariantMap {
24
- * 'compact': true;
25
- * }
26
- * }
27
- * ```
28
- */
29
- export interface BreadcrumbsVariantMap {
30
- default: true;
31
- supporting: true;
32
- }
16
+ import type { BreadcrumbsVariantMap } from './index';
33
17
  /**
34
18
  * Visual variant for the breadcrumb trail.
35
19
  * - `'default'`: Standard text styling
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAyB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAI7D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAQ5C;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,IAAI,CAAC;IACd,UAAU,EAAE,IAAI,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,qBAAqB,CAAC;AAM7D,8FAA8F;AAC9F,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,iDAG5B,CAAC;AAOH,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,WAAW,CAAC;IAC9D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA4BD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAe,EACf,OAAmB,EACnB,MAAM,EACN,SAAS,EACT,KAAK,EACL,KAAK,EAAE,cAAc,EACrB,GAAG,EACH,GAAG,IAAI,EACR,EAAE,gBAAgB,+BAwBlB;yBAlCe,WAAW"}
1
+ {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAIA;;;;;;;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