@accelint/design-toolkit 2.4.3 → 2.6.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 (283) hide show
  1. package/dist/components/accordion/index.d.ts +1 -1
  2. package/dist/components/accordion/index.js +1 -1
  3. package/dist/components/accordion/index.js.map +1 -1
  4. package/dist/components/accordion/styles.d.ts +1 -5
  5. package/dist/components/accordion/styles.js +1 -1
  6. package/dist/components/accordion/styles.js.map +1 -1
  7. package/dist/components/accordion/types.d.ts +9 -10
  8. package/dist/components/avatar/index.d.ts +4 -2
  9. package/dist/components/avatar/index.js +1 -1
  10. package/dist/components/avatar/index.js.map +1 -1
  11. package/dist/components/avatar/styles.d.ts +16 -15
  12. package/dist/components/avatar/styles.js +1 -1
  13. package/dist/components/avatar/styles.js.map +1 -1
  14. package/dist/components/avatar/types.d.ts +7 -7
  15. package/dist/components/badge/index.d.ts +3 -2
  16. package/dist/components/badge/index.js +1 -1
  17. package/dist/components/badge/index.js.map +1 -1
  18. package/dist/components/badge/styles.js +1 -1
  19. package/dist/components/badge/styles.js.map +1 -1
  20. package/dist/components/badge/types.d.ts +3 -4
  21. package/dist/components/box/index.js +1 -1
  22. package/dist/components/box/index.js.map +1 -1
  23. package/dist/components/button/index.d.ts +6 -4
  24. package/dist/components/button/index.js +1 -1
  25. package/dist/components/button/index.js.map +1 -1
  26. package/dist/components/button/styles.d.ts +25 -24
  27. package/dist/components/button/styles.js +1 -1
  28. package/dist/components/button/styles.js.map +1 -1
  29. package/dist/components/button/types.d.ts +3 -5
  30. package/dist/components/checkbox/index.js +1 -1
  31. package/dist/components/checkbox/index.js.map +1 -1
  32. package/dist/components/checkbox/styles.d.ts +19 -18
  33. package/dist/components/checkbox/styles.js +1 -1
  34. package/dist/components/checkbox/styles.js.map +1 -1
  35. package/dist/components/chip/index.d.ts +4 -2
  36. package/dist/components/chip/index.js +1 -1
  37. package/dist/components/chip/index.js.map +1 -1
  38. package/dist/components/chip/styles.d.ts +70 -69
  39. package/dist/components/chip/styles.js +1 -1
  40. package/dist/components/chip/styles.js.map +1 -1
  41. package/dist/components/chip/types.d.ts +5 -5
  42. package/dist/components/classification-badge/index.d.ts +3 -2
  43. package/dist/components/classification-badge/index.js +1 -1
  44. package/dist/components/classification-badge/index.js.map +1 -1
  45. package/dist/components/classification-badge/styles.js +1 -1
  46. package/dist/components/classification-badge/styles.js.map +1 -1
  47. package/dist/components/classification-badge/types.d.ts +3 -4
  48. package/dist/components/classification-banner/index.d.ts +3 -2
  49. package/dist/components/classification-banner/index.js +1 -1
  50. package/dist/components/classification-banner/index.js.map +1 -1
  51. package/dist/components/classification-banner/styles.js +1 -1
  52. package/dist/components/classification-banner/styles.js.map +1 -1
  53. package/dist/components/classification-banner/types.d.ts +3 -4
  54. package/dist/components/color-picker/index.d.ts +45 -15
  55. package/dist/components/color-picker/index.js +1 -1
  56. package/dist/components/color-picker/index.js.map +1 -1
  57. package/dist/components/color-picker/styles.d.ts +42 -0
  58. package/dist/components/color-picker/styles.js +2 -0
  59. package/dist/components/color-picker/styles.js.map +1 -0
  60. package/dist/components/color-picker/types.d.ts +13 -0
  61. package/dist/components/color-picker/types.js +2 -0
  62. package/dist/components/color-picker/types.js.map +1 -0
  63. package/dist/components/combobox-field/index.d.ts +18 -0
  64. package/dist/components/combobox-field/index.js +2 -0
  65. package/dist/components/combobox-field/index.js.map +1 -0
  66. package/dist/components/combobox-field/styles.d.ts +72 -0
  67. package/dist/components/combobox-field/styles.js +2 -0
  68. package/dist/components/combobox-field/styles.js.map +1 -0
  69. package/dist/components/combobox-field/types.d.ts +28 -0
  70. package/dist/components/combobox-field/types.js +2 -0
  71. package/dist/components/combobox-field/types.js.map +1 -0
  72. package/dist/components/date-field/index.d.ts +8 -24
  73. package/dist/components/date-field/index.js +1 -1
  74. package/dist/components/date-field/index.js.map +1 -1
  75. package/dist/components/date-field/styles.d.ts +69 -0
  76. package/dist/components/date-field/styles.js +2 -0
  77. package/dist/components/date-field/styles.js.map +1 -0
  78. package/dist/components/date-field/types.d.ts +29 -0
  79. package/dist/components/date-field/types.js +2 -0
  80. package/dist/components/date-field/types.js.map +1 -0
  81. package/dist/components/details-list/index.d.ts +59 -0
  82. package/dist/components/details-list/index.js +2 -0
  83. package/dist/components/details-list/index.js.map +1 -0
  84. package/dist/components/details-list/styles.d.ts +65 -0
  85. package/dist/components/details-list/styles.js +2 -0
  86. package/dist/components/details-list/styles.js.map +1 -0
  87. package/dist/components/details-list/types.d.ts +16 -0
  88. package/dist/components/details-list/types.js +2 -0
  89. package/dist/components/details-list/types.js.map +1 -0
  90. package/dist/components/dialog/index.d.ts +1 -0
  91. package/dist/components/dialog/index.js +1 -1
  92. package/dist/components/dialog/index.js.map +1 -1
  93. package/dist/components/drawer/context.d.ts +13 -0
  94. package/dist/components/drawer/context.js +2 -0
  95. package/dist/components/drawer/context.js.map +1 -0
  96. package/dist/components/drawer/index.d.ts +48 -0
  97. package/dist/components/drawer/index.js +2 -0
  98. package/dist/components/drawer/index.js.map +1 -0
  99. package/dist/components/drawer/state.d.ts +26 -0
  100. package/dist/components/drawer/state.js +2 -0
  101. package/dist/components/drawer/state.js.map +1 -0
  102. package/dist/components/drawer/styles.d.ts +118 -0
  103. package/dist/components/drawer/styles.js +2 -0
  104. package/dist/components/drawer/styles.js.map +1 -0
  105. package/dist/components/drawer/types.d.ts +279 -0
  106. package/dist/components/drawer/types.js +2 -0
  107. package/dist/components/drawer/types.js.map +1 -0
  108. package/dist/components/hero/index.d.ts +45 -0
  109. package/dist/components/hero/index.js +2 -0
  110. package/dist/components/hero/index.js.map +1 -0
  111. package/dist/components/hero/styles.d.ts +48 -0
  112. package/dist/components/hero/styles.js +2 -0
  113. package/dist/components/hero/styles.js.map +1 -0
  114. package/dist/components/hero/types.d.ts +13 -0
  115. package/dist/components/hero/types.js +2 -0
  116. package/dist/components/hero/types.js.map +1 -0
  117. package/dist/components/hotkey/index.d.ts +25 -0
  118. package/dist/components/hotkey/index.js +2 -0
  119. package/dist/components/hotkey/index.js.map +1 -0
  120. package/dist/components/hotkey/styles.d.ts +53 -0
  121. package/dist/components/hotkey/styles.js +2 -0
  122. package/dist/components/hotkey/styles.js.map +1 -0
  123. package/dist/components/hotkey/types.d.ts +8 -0
  124. package/dist/components/hotkey/types.js +2 -0
  125. package/dist/components/hotkey/types.js.map +1 -0
  126. package/dist/components/icon/index.d.ts +3 -2
  127. package/dist/components/icon/index.js +1 -1
  128. package/dist/components/icon/index.js.map +1 -1
  129. package/dist/components/icon/styles.js +1 -1
  130. package/dist/components/icon/styles.js.map +1 -1
  131. package/dist/components/icon/types.d.ts +4 -5
  132. package/dist/components/input/index.d.ts +1 -0
  133. package/dist/components/input/index.js +1 -1
  134. package/dist/components/input/index.js.map +1 -1
  135. package/dist/components/input/styles.d.ts +2 -24
  136. package/dist/components/input/styles.js +1 -1
  137. package/dist/components/input/styles.js.map +1 -1
  138. package/dist/components/input/types.d.ts +1 -0
  139. package/dist/components/label/index.d.ts +3 -2
  140. package/dist/components/label/index.js +1 -1
  141. package/dist/components/label/index.js.map +1 -1
  142. package/dist/components/label/styles.js +1 -1
  143. package/dist/components/label/styles.js.map +1 -1
  144. package/dist/components/label/types.d.ts +2 -3
  145. package/dist/components/menu/index.d.ts +16 -21
  146. package/dist/components/menu/index.js +1 -1
  147. package/dist/components/menu/index.js.map +1 -1
  148. package/dist/components/menu/styles.d.ts +9 -6
  149. package/dist/components/menu/styles.js +1 -1
  150. package/dist/components/menu/styles.js.map +1 -1
  151. package/dist/components/menu/types.d.ts +9 -2
  152. package/dist/components/options/index.d.ts +28 -22
  153. package/dist/components/options/index.js +1 -1
  154. package/dist/components/options/index.js.map +1 -1
  155. package/dist/components/options/styles.d.ts +72 -0
  156. package/dist/components/options/styles.js +2 -0
  157. package/dist/components/options/styles.js.map +1 -0
  158. package/dist/components/options/types.d.ts +29 -0
  159. package/dist/components/options/types.js +2 -0
  160. package/dist/components/options/types.js.map +1 -0
  161. package/dist/components/popover/index.js +1 -1
  162. package/dist/components/popover/index.js.map +1 -1
  163. package/dist/components/popover/styles.d.ts +16 -15
  164. package/dist/components/popover/styles.js +1 -1
  165. package/dist/components/popover/styles.js.map +1 -1
  166. package/dist/components/query-builder/action-element.js +1 -1
  167. package/dist/components/query-builder/action-element.js.map +1 -1
  168. package/dist/components/query-builder/constants.js +1 -1
  169. package/dist/components/query-builder/constants.js.map +1 -1
  170. package/dist/components/query-builder/group.js +1 -1
  171. package/dist/components/query-builder/group.js.map +1 -1
  172. package/dist/components/query-builder/index.d.ts +5 -20
  173. package/dist/components/query-builder/index.js +1 -1
  174. package/dist/components/query-builder/index.js.map +1 -1
  175. package/dist/components/query-builder/rule.js +1 -1
  176. package/dist/components/query-builder/rule.js.map +1 -1
  177. package/dist/components/query-builder/types.d.ts +22 -0
  178. package/dist/components/query-builder/types.js +2 -0
  179. package/dist/components/query-builder/types.js.map +1 -0
  180. package/dist/components/query-builder/utils.js +1 -1
  181. package/dist/components/query-builder/utils.js.map +1 -1
  182. package/dist/components/query-builder/value-editor.js +1 -1
  183. package/dist/components/query-builder/value-editor.js.map +1 -1
  184. package/dist/components/query-builder/value-selector.js +1 -1
  185. package/dist/components/query-builder/value-selector.js.map +1 -1
  186. package/dist/components/radio/index.js +1 -1
  187. package/dist/components/radio/index.js.map +1 -1
  188. package/dist/components/radio/styles.d.ts +19 -18
  189. package/dist/components/radio/styles.js +1 -1
  190. package/dist/components/radio/styles.js.map +1 -1
  191. package/dist/components/radio/types.d.ts +2 -3
  192. package/dist/components/search-field/index.d.ts +56 -15
  193. package/dist/components/search-field/index.js +1 -1
  194. package/dist/components/search-field/index.js.map +1 -1
  195. package/dist/components/search-field/styles.d.ts +53 -0
  196. package/dist/components/search-field/styles.js +2 -0
  197. package/dist/components/search-field/styles.js.map +1 -0
  198. package/dist/components/search-field/types.d.ts +25 -0
  199. package/dist/components/search-field/types.js +2 -0
  200. package/dist/components/search-field/types.js.map +1 -0
  201. package/dist/components/select-field/index.d.ts +23 -0
  202. package/dist/components/select-field/index.js +2 -0
  203. package/dist/components/select-field/index.js.map +1 -0
  204. package/dist/components/select-field/styles.d.ts +60 -0
  205. package/dist/components/select-field/styles.js +2 -0
  206. package/dist/components/select-field/styles.js.map +1 -0
  207. package/dist/components/select-field/types.d.ts +26 -0
  208. package/dist/components/select-field/types.js +2 -0
  209. package/dist/components/select-field/types.js.map +1 -0
  210. package/dist/components/skeleton/index.d.ts +42 -0
  211. package/dist/components/skeleton/index.js +2 -0
  212. package/dist/components/skeleton/index.js.map +1 -0
  213. package/dist/components/skeleton/styles.d.ts +23 -0
  214. package/dist/components/skeleton/styles.js +2 -0
  215. package/dist/components/skeleton/styles.js.map +1 -0
  216. package/dist/components/skeleton/types.d.ts +8 -0
  217. package/dist/components/skeleton/types.js +2 -0
  218. package/dist/components/skeleton/types.js.map +1 -0
  219. package/dist/components/slider/index.js +1 -1
  220. package/dist/components/slider/index.js.map +1 -1
  221. package/dist/components/switch/index.d.ts +3 -2
  222. package/dist/components/switch/index.js +1 -1
  223. package/dist/components/switch/index.js.map +1 -1
  224. package/dist/components/switch/styles.d.ts +13 -12
  225. package/dist/components/switch/styles.js +1 -1
  226. package/dist/components/switch/styles.js.map +1 -1
  227. package/dist/components/switch/types.d.ts +2 -3
  228. package/dist/components/tabs/index.js +1 -1
  229. package/dist/components/tabs/index.js.map +1 -1
  230. package/dist/components/text-area-field/index.d.ts +4 -3
  231. package/dist/components/text-area-field/index.js +1 -1
  232. package/dist/components/text-area-field/index.js.map +1 -1
  233. package/dist/components/text-area-field/styles.d.ts +19 -18
  234. package/dist/components/text-area-field/styles.js +1 -1
  235. package/dist/components/text-area-field/styles.js.map +1 -1
  236. package/dist/components/text-area-field/types.d.ts +2 -3
  237. package/dist/components/text-field/index.d.ts +4 -2
  238. package/dist/components/text-field/index.js +1 -1
  239. package/dist/components/text-field/index.js.map +1 -1
  240. package/dist/components/text-field/styles.d.ts +19 -18
  241. package/dist/components/text-field/styles.js +1 -1
  242. package/dist/components/text-field/styles.js.map +1 -1
  243. package/dist/components/text-field/types.d.ts +4 -4
  244. package/dist/components/tooltip/index.d.ts +14 -28
  245. package/dist/components/tooltip/index.js +1 -1
  246. package/dist/components/tooltip/index.js.map +1 -1
  247. package/dist/components/tooltip/styles.d.ts +5 -0
  248. package/dist/components/tooltip/styles.js +2 -0
  249. package/dist/components/tooltip/styles.js.map +1 -0
  250. package/dist/components/tooltip/types.d.ts +8 -0
  251. package/dist/components/tooltip/types.js +2 -0
  252. package/dist/components/tooltip/types.js.map +1 -0
  253. package/dist/components/view-stack/index.d.ts +28 -0
  254. package/dist/components/view-stack/index.js +2 -0
  255. package/dist/components/view-stack/index.js.map +1 -0
  256. package/dist/components/view-stack/types.d.ts +58 -0
  257. package/dist/components/view-stack/types.js +2 -0
  258. package/dist/components/view-stack/types.js.map +1 -0
  259. package/dist/icons/catalog.js +1 -1
  260. package/dist/index.css +20 -0
  261. package/dist/index.d.ts +60 -27
  262. package/dist/index.js +1 -1
  263. package/dist/lib/react.d.ts +13 -12
  264. package/dist/lib/react.js +4 -4
  265. package/dist/lib/react.js.map +1 -1
  266. package/dist/lib/types.d.ts +6 -2
  267. package/dist/lib/utils.js +1 -1
  268. package/dist/lib/utils.js.map +1 -1
  269. package/dist/metafile-esm.json +1 -1
  270. package/dist/styles.css +1476 -321
  271. package/dist/tokens/index.js +1 -1
  272. package/dist/tokens/index.js.map +1 -1
  273. package/dist/variants/variants.css +6 -0
  274. package/package.json +84 -56
  275. package/dist/components/combobox/index.d.ts +0 -32
  276. package/dist/components/combobox/index.js +0 -2
  277. package/dist/components/combobox/index.js.map +0 -1
  278. package/dist/components/options-item/index.d.ts +0 -30
  279. package/dist/components/options-item/index.js +0 -2
  280. package/dist/components/options-item/index.js.map +0 -1
  281. package/dist/components/query-builder/example-configuration.d.ts +0 -30
  282. package/dist/components/query-builder/example-configuration.js +0 -2
  283. package/dist/components/query-builder/example-configuration.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/view-stack/index.tsx"],"names":["bus","Broadcast","ViewStackEventNamespace","ViewStackContext","createContext","ViewStackEventTypes","ViewStackTrigger","children","types","parent","useContext","handlePress","type","isUUID","event","target","stack","jsx","PressResponder","Pressable","ViewStackView","id","view","register","unregister","useEffect","ViewStack","defaultView","views","useRef","setStack","useState","handleBack","useCallback","data","prev","handleClear","handleReset","handlePush"],"mappings":"yTAqCA,MAAMA,CAAAA,CAAMC,SAAAA,CAAU,WAAA,EAAY,CAC5BC,CAAAA,CAA0B,WAAA,CAC1BC,CAAAA,CAAmBC,cAAqC,CAC5D,MAAA,CAAQ,IAAA,CACR,KAAA,CAAO,EAAC,CACR,IAAA,CAAM,IAAA,CACN,QAAA,CAAU,IAAG,CAAA,CAAA,CACb,UAAA,CAAY,IAAG,CAAA,CACjB,CAAC,CAAA,CAEYC,CAAAA,CAAsB,CACjC,IAAA,CAAM,CAAA,EAAGH,CAAuB,QAChC,KAAA,CAAO,CAAA,EAAGA,CAAuB,CAAA,MAAA,CAAA,CACjC,KAAA,CAAO,CAAA,EAAGA,CAAuB,CAAA,MAAA,CAAA,CACjC,IAAA,CAAM,CAAA,EAAGA,CAAuB,CAAA,KAAA,CAClC,EAEA,SAASI,CAAAA,CAAiB,CAAE,QAAA,CAAAC,CAAAA,CAAU,GAAA,CAAKC,CAAM,CAAA,CAA0B,CACzE,KAAM,CAAE,MAAA,CAAAC,CAAO,CAAA,CAAIC,UAAAA,CAAWP,CAAgB,CAAA,CAE9C,SAASQ,CAAAA,EAAc,CACrB,IAAA,MAAWC,CAAAA,IAAQ,KAAA,CAAM,QAAQJ,CAAK,CAAA,CAAIA,CAAAA,CAAQ,CAACA,CAAK,CAAA,CACtD,GAAIK,MAAAA,CAAOD,CAAI,CAAA,CACbZ,CAAAA,CAAI,IAAA,CAAyBK,CAAAA,CAAoB,IAAA,CAAM,CACrD,IAAA,CAAMO,CACR,CAAC,CAAA,CAAA,KACI,CACL,KAAM,CAACE,CAAAA,CAAOC,C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*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { Broadcast, type Payload } from '@accelint/bus';\nimport { type UniqueId, isUUID } from '@accelint/core';\nimport { PressResponder } from '@react-aria/interactions';\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport { Pressable } from 'react-aria-components';\nimport type {\n ViewStackBackEvent,\n ViewStackClearEvent,\n ViewStackContextValue,\n ViewStackProps,\n ViewStackPushEvent,\n ViewStackResetEvent,\n ViewStackTriggerProps,\n ViewStackViewProps,\n} from './types';\n\nconst bus = Broadcast.getInstance();\nconst ViewStackEventNamespace = 'ViewStack';\nconst ViewStackContext = createContext<ViewStackContextValue>({\n parent: null,\n stack: [],\n view: null,\n register: () => undefined,\n unregister: () => undefined,\n});\n\nexport const ViewStackEventTypes = {\n back: `${ViewStackEventNamespace}:back`,\n clear: `${ViewStackEventNamespace}:clear`,\n reset: `${ViewStackEventNamespace}:reset`,\n push: `${ViewStackEventNamespace}:push`,\n} as const;\n\nfunction ViewStackTrigger({ children, for: types }: ViewStackTriggerProps) {\n const { parent } = useContext(ViewStackContext);\n\n function handlePress() {\n for (const type of Array.isArray(types) ? types : [types]) {\n if (isUUID(type)) {\n bus.emit<ViewStackPushEvent>(ViewStackEventTypes.push, {\n view: type,\n });\n } else {\n const [event, target] = type.split(':') as [\n 'back' | 'clear' | 'reset',\n UniqueId | undefined,\n ];\n const stack = target ?? parent;\n\n if (stack) {\n bus.emit<\n ViewStackBackEvent | ViewStackClearEvent | ViewStackResetEvent\n >(`${ViewStackEventNamespace}:${event}`, {\n stack,\n });\n }\n }\n }\n }\n\n return (\n <PressResponder onPress={handlePress}>\n <Pressable>{children}</Pressable>\n </PressResponder>\n );\n}\nViewStackTrigger.displayName = 'ViewStack.Trigger';\n\nfunction ViewStackView({ id, children }: ViewStackViewProps) {\n const { parent, view, register, unregister } = useContext(ViewStackContext);\n\n if (!parent) {\n throw new Error('ViewStack.View must be implemented within a ViewStack');\n }\n\n if (!isUUID(id)) {\n throw new Error(`ViewStack.View's id must be a UniqueId`);\n }\n\n useEffect(() => {\n register(id);\n\n () => unregister(id);\n }, [register, unregister, id]);\n\n return view === id ? children : null;\n}\nViewStackView.displayName = 'ViewStack.View';\n\nexport function ViewStack({ id, children, defaultView }: ViewStackProps) {\n if (!isUUID(id)) {\n throw new Error(`ViewStack's id must be a UniqueId`);\n }\n\n const views = useRef(new Set<UniqueId>());\n const [stack, setStack] = useState<UniqueId[]>(\n defaultView ? [defaultView] : [],\n );\n const view = stack.at(-1) ?? null;\n\n const handleBack = useCallback(\n (data: Payload<ViewStackBackEvent>) => {\n if (id === data?.payload?.stack) {\n setStack((prev) => {\n if (prev.length <= 1) {\n return defaultView ? [defaultView] : [];\n }\n\n return prev.slice(0, -1);\n });\n }\n },\n [id, defaultView],\n );\n\n const handleClear = useCallback(\n (data: Payload<ViewStackClearEvent>) => {\n if (id === data?.payload?.stack) {\n setStack(() => []);\n }\n },\n [id],\n );\n\n const handleReset = useCallback(\n (data: Payload<ViewStackResetEvent>) => {\n if (id === data?.payload?.stack) {\n setStack(() => (defaultView ? [defaultView] : []));\n }\n },\n [id, defaultView],\n );\n\n const handlePush = useCallback((data: Payload<ViewStackPushEvent>) => {\n if (views.current.has(data?.payload?.view)) {\n setStack((prev) => [...prev, data?.payload?.view]);\n }\n }, []);\n\n useEffect(() => {\n bus.on(ViewStackEventTypes.back, handleBack);\n bus.on(ViewStackEventTypes.clear, handleClear);\n bus.on(ViewStackEventTypes.reset, handleReset);\n bus.on(ViewStackEventTypes.push, handlePush);\n\n return () => {\n bus.off(ViewStackEventTypes.back, handleBack);\n bus.off(ViewStackEventTypes.clear, handleClear);\n bus.off(ViewStackEventTypes.reset, handleReset);\n bus.off(ViewStackEventTypes.push, handlePush);\n };\n }, [handleBack, handleClear, handleReset, handlePush]);\n\n return (\n <ViewStackContext.Provider\n value={{\n parent: id,\n stack,\n view,\n register: (view: UniqueId) => views.current.add(view),\n unregister: (view: UniqueId) => views.current.delete(view),\n }}\n >\n {children}\n </ViewStackContext.Provider>\n );\n}\nViewStack.displayName = 'ViewStack';\nViewStack.View = ViewStackView;\nViewStack.Trigger = ViewStackTrigger;\n"]}
@@ -0,0 +1,58 @@
1
+ import { UniqueId } from '@accelint/core';
2
+ import { RefAttributes, PropsWithChildren, ComponentProps } from 'react';
3
+ import { Pressable } from 'react-aria-components';
4
+
5
+ type ViewStackProps = RefAttributes<HTMLDivElement> & PropsWithChildren<{
6
+ id: UniqueId;
7
+ defaultView?: UniqueId;
8
+ }>;
9
+ type ViewStackViewProps = RefAttributes<HTMLDivElement> & PropsWithChildren<{
10
+ id: UniqueId;
11
+ }>;
12
+ type ViewStackBackEvent = {
13
+ stack: UniqueId;
14
+ };
15
+ type ViewStackClearEvent = {
16
+ stack: UniqueId;
17
+ };
18
+ type ViewStackResetEvent = {
19
+ stack: UniqueId;
20
+ };
21
+ type ViewStackPushEvent = {
22
+ view: UniqueId;
23
+ };
24
+ type SimpleEvents = 'back' | 'clear' | 'reset' | UniqueId;
25
+ type TargetedEvents = `back:${UniqueId}` | `clear:${UniqueId}` | `reset:${UniqueId}`;
26
+ type ChainedEvents = (SimpleEvents | TargetedEvents)[];
27
+ type ViewStackTriggerProps = {
28
+ children: ComponentProps<typeof Pressable>['children'];
29
+ /**
30
+ * __SimpleEvents__ allow the easiest implementation of events, but come with some restrictions:
31
+ * - The literal commands `back | clear | reset` will only work inside of the context of a ViewStack
32
+ * - When passing a view's UniqueId the behavior is always to push that id onto it's parent's stack
33
+ *
34
+ * __TargetedEvents__ allow for external control of a ViewStack, the UniqueId of a Stack is passed to know which stack to affect
35
+ *
36
+ * __ChainedEvents__ allow a list of events from a single control to enable multiple behaviors
37
+ *
38
+ * @example
39
+ * // Clear a stack and then push a view on:
40
+ * ['clear', myViewId]
41
+ *
42
+ * // Reset multiple stacks:
43
+ * [`reset:${stackOneId}`, `reset:${stackTwoId}`]
44
+ *
45
+ * // Hydrate a stack with multiple views:
46
+ * [viewOneId, viewTwoId, viewThreeId]
47
+ */
48
+ for: SimpleEvents | TargetedEvents | ChainedEvents;
49
+ };
50
+ type ViewStackContextValue = {
51
+ parent: UniqueId | null;
52
+ stack: string[];
53
+ view: UniqueId | null;
54
+ register: (view: UniqueId) => void;
55
+ unregister: (view: UniqueId) => void;
56
+ };
57
+
58
+ export type { ViewStackBackEvent, ViewStackClearEvent, ViewStackContextValue, ViewStackProps, ViewStackPushEvent, ViewStackResetEvent, ViewStackTriggerProps, ViewStackViewProps };
@@ -0,0 +1,2 @@
1
+ //# sourceMappingURL=types.js.map
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
@@ -1,2 +1,2 @@
1
- import {Bell,Information,Connection,Success,ConnectionLost,Warning,Live,Problem,ArrowDown,ArrowLeft,ArrowNortheast,ArrowNorthwest,ArrowRight,ArrowSoutheast,ArrowSouthwest,ArrowUp,ArrowKeys,Arrow,ChevronDown,ChevronFillDown,ChevronUp,ChevronFillUp,ChevronLeft,ChevronFillLeft,ChevronRight,ChevronFillRight,CursorCrosshair,CursorDefault,CursorDrag,TrackEta,MouseLeftClick,MouseMiddleClick,MouseRightClick,MouseScroll,ScrollClick,Airspaces,Appearance,Ascending,Assignment,Attributes,BoltNotVisible,Bolt,Brightness,BugReport,Calendar,ChartStackedBar,CircleTool,ColorPicker,CommonOperatingPic,Contrast,CopSettings,Coverage,Dashboard,Data,Descending,ElectromagneticSpectrum,Feed,FlightPlan,Gantt,Grid,Hamburger,Handover,Handshake,Help,InterceptPoint,Kebab,LayerGroup,Layers,LineTool,LocationFill,LocationStroke,Message,Mode,Newspaper,NonEditable,None,Note,Overlays,PanelClosed,PanelOpen,Person,Phone,Placeholder,Plots,PolygonTool,Radar,Radio,RectangleTool,Region,Sector,SelectionList,SensorHealth,Settings,Spotlight,ThreatAssess,Ticket,Time,Timer,TrackHistory,UnscheduledMaintenance,UserManual,WatchTower,Wind,AddFill,AddToList,Add,ArrangeTable,AttachFile,Cancel,CancelFill,CenterOn,Check,CollapseWindow,CollapseAll,Condense,CopyToClipboard,CreateCoa,Delete,DragHorz,DragVert,Duplicate,Edit,ExpandAll,ExpandLeft,ExpandRight,ExpandWindow,Expand,ExploreData,Filter,Flag,Focus,GlobalShare,Group,Hide,Import,InsertChart,JumpTo,Lasso,Link,LockFill,LockOutline,Login,Logout,Loop,Move,Mute,OpenContainer,PasteFromClipboard,Pause,Pin,Play,Playback,PolygonLasso,PopBackIn,PopOut,Record,RectangleSelect,RemoveFill,RemoveFromList,Remove,Reverse,Screenshot,Search,Share,Show,StackCards,Stack,Tether,TrackChanges,Undo,ZoomIn,ZoomOut,ZoomTo}from'@accelint/icons';import {jsx}from'react/jsx-runtime';var uo={actions:{description:"These icons mainly represent an act a user can take in the user interface.",icons:[{name:"add-fill",icon:jsx(AddFill,{})},{name:"add-to-list",icon:jsx(AddToList,{})},{name:"add",icon:jsx(Add,{})},{name:"arrange-table",icon:jsx(ArrangeTable,{})},{name:"attach-file",icon:jsx(AttachFile,{})},{name:"cancel",icon:jsx(Cancel,{})},{name:"cancel-fill",icon:jsx(CancelFill,{})},{name:"center-on",icon:jsx(CenterOn,{})},{name:"check",icon:jsx(Check,{})},{name:"collapse-window",icon:jsx(CollapseWindow,{})},{name:"collapse-all",icon:jsx(CollapseAll,{})},{name:"condense",icon:jsx(Condense,{})},{name:"copy-to-clipboard",icon:jsx(CopyToClipboard,{})},{name:"create-coa",icon:jsx(CreateCoa,{})},{name:"delete",icon:jsx(Delete,{})},{name:"drag-horz",icon:jsx(DragHorz,{})},{name:"drag-vert",icon:jsx(DragVert,{})},{name:"duplicate",icon:jsx(Duplicate,{})},{name:"edit",icon:jsx(Edit,{})},{name:"expand-all",icon:jsx(ExpandAll,{})},{name:"expand-left",icon:jsx(ExpandLeft,{})},{name:"expand-right",icon:jsx(ExpandRight,{})},{name:"expand-window",icon:jsx(ExpandWindow,{})},{name:"expand",icon:jsx(Expand,{})},{name:"explore-data",icon:jsx(ExploreData,{})},{name:"filter",icon:jsx(Filter,{})},{name:"flag",icon:jsx(Flag,{})},{name:"focus",icon:jsx(Focus,{})},{name:"global-share",icon:jsx(GlobalShare,{})},{name:"group",icon:jsx(Group,{})},{name:"hide",icon:jsx(Hide,{})},{name:"import",icon:jsx(Import,{})},{name:"insert-chart",icon:jsx(InsertChart,{})},{name:"jump-to",icon:jsx(JumpTo,{})},{name:"lasso",icon:jsx(Lasso,{})},{name:"link",icon:jsx(Link,{})},{name:"lock-fill",icon:jsx(LockFill,{})},{name:"lock-outline",icon:jsx(LockOutline,{})},{name:"login",icon:jsx(Login,{})},{name:"logout",icon:jsx(Logout,{})},{name:"loop",icon:jsx(Loop,{})},{name:"move",icon:jsx(Move,{})},{name:"mute",icon:jsx(Mute,{})},{name:"open-container",icon:jsx(OpenContainer,{})},{name:"paste-from-clipboard",icon:jsx(PasteFromClipboard,{})},{name:"pause",icon:jsx(Pause,{})},{name:"pin",icon:jsx(Pin,{})},{name:"play",icon:jsx(Play,{})},{name:"playback",icon:jsx(Playback,{})},{name:"polygon-lasso",icon:jsx(PolygonLasso,{})},{name:"pop-back-in",icon:jsx(PopBackIn,{})},{name:"pop-out",icon:jsx(PopOut,{})},{name:"record",icon:jsx(Record,{})},{name:"rectangle-select",icon:jsx(RectangleSelect,{})},{name:"remove-fill",icon:jsx(RemoveFill,{})},{name:"remove-from-list",icon:jsx(RemoveFromList,{})},{name:"remove",icon:jsx(Remove,{})},{name:"reverse",icon:jsx(Reverse,{})},{name:"screenshot",icon:jsx(Screenshot,{})},{name:"search",icon:jsx(Search,{})},{name:"share",icon:jsx(Share,{})},{name:"show",icon:jsx(Show,{})},{name:"stack-cards",icon:jsx(StackCards,{})},{name:"stack",icon:jsx(Stack,{})},{name:"tether",icon:jsx(Tether,{})},{name:"track-changes",icon:jsx(TrackChanges,{})},{name:"undo",icon:jsx(Undo,{})},{name:"zoom-in",icon:jsx(ZoomIn,{})},{name:"zoom-out",icon:jsx(ZoomOut,{})},{name:"zoom-to",icon:jsx(ZoomTo,{})}]},symbols:{description:"These icons mainly represent an object or concept.",icons:[{name:"airspaces",icon:jsx(Airspaces,{})},{name:"appearance",icon:jsx(Appearance,{})},{name:"arrow",icon:jsx(Arrow,{})},{name:"ascending",icon:jsx(Ascending,{})},{name:"assignment",icon:jsx(Assignment,{})},{name:"attributes",icon:jsx(Attributes,{})},{name:"bolt-not-visible",icon:jsx(BoltNotVisible,{})},{name:"bolt",icon:jsx(Bolt,{})},{name:"brightness",icon:jsx(Brightness,{})},{name:"bug-report",icon:jsx(BugReport,{})},{name:"calendar",icon:jsx(Calendar,{})},{name:"chart-stacked-bar",icon:jsx(ChartStackedBar,{})},{name:"circle-tool",icon:jsx(CircleTool,{})},{name:"color-picker",icon:jsx(ColorPicker,{})},{name:"common-operating-pic",icon:jsx(CommonOperatingPic,{})},{name:"contrast",icon:jsx(Contrast,{})},{name:"cop-settings",icon:jsx(CopSettings,{})},{name:"coverage",icon:jsx(Coverage,{})},{name:"dashboard",icon:jsx(Dashboard,{})},{name:"data",icon:jsx(Data,{})},{name:"descending",icon:jsx(Descending,{})},{name:"electromagnetic-spectrum",icon:jsx(ElectromagneticSpectrum,{})},{name:"feed",icon:jsx(Feed,{})},{name:"flight-plan",icon:jsx(FlightPlan,{})},{name:"gantt",icon:jsx(Gantt,{})},{name:"grid",icon:jsx(Grid,{})},{name:"hamburger",icon:jsx(Hamburger,{})},{name:"handover",icon:jsx(Handover,{})},{name:"handshake",icon:jsx(Handshake,{})},{name:"help",icon:jsx(Help,{})},{name:"intercept-point",icon:jsx(InterceptPoint,{})},{name:"kebab",icon:jsx(Kebab,{})},{name:"layer-group",icon:jsx(LayerGroup,{})},{name:"layers",icon:jsx(Layers,{})},{name:"line-tool",icon:jsx(LineTool,{})},{name:"location-fill",icon:jsx(LocationFill,{})},{name:"location-stroke",icon:jsx(LocationStroke,{})},{name:"message",icon:jsx(Message,{})},{name:"mode",icon:jsx(Mode,{})},{name:"newspaper",icon:jsx(Newspaper,{})},{name:"non-editable",icon:jsx(NonEditable,{})},{name:"none",icon:jsx(None,{})},{name:"note",icon:jsx(Note,{})},{name:"overlays",icon:jsx(Overlays,{})},{name:"panel-closed",icon:jsx(PanelClosed,{})},{name:"panel-open",icon:jsx(PanelOpen,{})},{name:"person",icon:jsx(Person,{})},{name:"phone",icon:jsx(Phone,{})},{name:"placeholder",icon:jsx(Placeholder,{})},{name:"plots",icon:jsx(Plots,{})},{name:"polygon-tool",icon:jsx(PolygonTool,{})},{name:"radar",icon:jsx(Radar,{})},{name:"radio",icon:jsx(Radio,{})},{name:"rectangle-tool",icon:jsx(RectangleTool,{})},{name:"region",icon:jsx(Region,{})},{name:"sector",icon:jsx(Sector,{})},{name:"selection-list",icon:jsx(SelectionList,{})},{name:"sensor-health",icon:jsx(SensorHealth,{})},{name:"settings",icon:jsx(Settings,{})},{name:"spotlight",icon:jsx(Spotlight,{})},{name:"threat-assess",icon:jsx(ThreatAssess,{})},{name:"ticket",icon:jsx(Ticket,{})},{name:"time",icon:jsx(Time,{})},{name:"timer",icon:jsx(Timer,{})},{name:"track-history",icon:jsx(TrackHistory,{})},{name:"unscheduled-maintenance",icon:jsx(UnscheduledMaintenance,{})},{name:"user-manual",icon:jsx(UserManual,{})},{name:"watch-tower",icon:jsx(WatchTower,{})},{name:"wind",icon:jsx(Wind,{})}]},controls:{description:"These icons portray acts or symbols related to control or configuration.",icons:[{name:"arrow-down",icon:jsx(ArrowDown,{})},{name:"arrow-left",icon:jsx(ArrowLeft,{})},{name:"arrow-northeast",icon:jsx(ArrowNortheast,{})},{name:"arrow-northwest",icon:jsx(ArrowNorthwest,{})},{name:"arrow-right",icon:jsx(ArrowRight,{})},{name:"arrow-southeast",icon:jsx(ArrowSoutheast,{})},{name:"arrow-southeast",icon:jsx(ArrowSouthwest,{})},{name:"arrow-up",icon:jsx(ArrowUp,{})},{name:"arrow-keys",icon:jsx(ArrowKeys,{})},{name:"arrow",icon:jsx(Arrow,{})},{name:"chevron-down",icon:jsx(ChevronDown,{})},{name:"chevron-fill-down",icon:jsx(ChevronFillDown,{})},{name:"chevron-up",icon:jsx(ChevronUp,{})},{name:"chevron-fill-up",icon:jsx(ChevronFillUp,{})},{name:"chevron-left",icon:jsx(ChevronLeft,{})},{name:"chevron-fill-left",icon:jsx(ChevronFillLeft,{})},{name:"chevron-right",icon:jsx(ChevronRight,{})},{name:"chevron-fill-right",icon:jsx(ChevronFillRight,{})},{name:"cursor-crosshair",icon:jsx(CursorCrosshair,{})},{name:"cursor-default",icon:jsx(CursorDefault,{})},{name:"cursor-drag",icon:jsx(CursorDrag,{})},{name:"track-eta",icon:jsx(TrackEta,{})},{name:"mouse-left-click",icon:jsx(MouseLeftClick,{})},{name:"mouse-middle-click",icon:jsx(MouseMiddleClick,{})},{name:"mouse-right-click",icon:jsx(MouseRightClick,{})},{name:"mouse-scroll",icon:jsx(MouseScroll,{})},{name:"scroll-click",icon:jsx(ScrollClick,{})}]},feedback:{description:"These icons portray communication or providing feedback to the user.",icons:[{name:"bell",icon:jsx(Bell,{})},{name:"information",icon:jsx(Information,{})},{name:"connection",icon:jsx(Connection,{})},{name:"success",icon:jsx(Success,{})},{name:"connection-lost",icon:jsx(ConnectionLost,{})},{name:"warning",icon:jsx(Warning,{})},{name:"live",icon:jsx(Live,{})},{name:"problem",icon:jsx(Problem,{})}]}};export{uo as default};//# sourceMappingURL=catalog.js.map
1
+ import {jsx}from'react/jsx-runtime';import {Bell,Information,Connection,Success,ConnectionLost,Warning,Live,Problem,ArrowDown,ArrowLeft,ArrowNortheast,ArrowNorthwest,ArrowRight,ArrowSoutheast,ArrowSouthwest,ArrowUp,ArrowKeys,Arrow,ChevronDown,ChevronFillDown,ChevronUp,ChevronFillUp,ChevronLeft,ChevronFillLeft,ChevronRight,ChevronFillRight,CursorCrosshair,CursorDefault,CursorDrag,TrackEta,MouseLeftClick,MouseMiddleClick,MouseRightClick,MouseScroll,ScrollClick,Airspaces,Appearance,Ascending,Assignment,Attributes,BoltNotVisible,Bolt,Brightness,BugReport,Calendar,ChartStackedBar,CircleTool,ColorPicker,CommonOperatingPic,Contrast,CopSettings,Coverage,Dashboard,Data,Descending,ElectromagneticSpectrum,Feed,FlightPlan,Gantt,Grid,Hamburger,Handover,Handshake,Help,InterceptPoint,Kebab,LayerGroup,Layers,LineTool,LocationFill,LocationStroke,Message,Mode,Newspaper,NonEditable,None,Note,Overlays,PanelClosed,PanelOpen,Person,Phone,Placeholder,Plots,PolygonTool,Radar,Radio,RectangleTool,Region,Sector,SelectionList,SensorHealth,Settings,Spotlight,ThreatAssess,Ticket,Time,Timer,TrackHistory,UnscheduledMaintenance,UserManual,WatchTower,Wind,AddFill,AddToList,Add,ArrangeTable,AttachFile,Cancel,CancelFill,CenterOn,Check,CollapseWindow,CollapseAll,Condense,CopyToClipboard,CreateCoa,Delete,DragHorz,DragVert,Duplicate,Edit,ExpandAll,ExpandLeft,ExpandRight,ExpandWindow,Expand,ExploreData,Filter,Flag,Focus,GlobalShare,Group,Hide,Import,InsertChart,JumpTo,Lasso,Link,LockFill,LockOutline,Login,Logout,Loop,Move,Mute,OpenContainer,PasteFromClipboard,Pause,Pin,Play,Playback,PolygonLasso,PopBackIn,PopOut,Record,RectangleSelect,RemoveFill,RemoveFromList,Remove,Reverse,Screenshot,Search,Share,Show,StackCards,Stack,Tether,TrackChanges,Undo,ZoomIn,ZoomOut,ZoomTo}from'@accelint/icons';var uo={actions:{description:"These icons mainly represent an act a user can take in the user interface.",icons:[{name:"add-fill",icon:jsx(AddFill,{})},{name:"add-to-list",icon:jsx(AddToList,{})},{name:"add",icon:jsx(Add,{})},{name:"arrange-table",icon:jsx(ArrangeTable,{})},{name:"attach-file",icon:jsx(AttachFile,{})},{name:"cancel",icon:jsx(Cancel,{})},{name:"cancel-fill",icon:jsx(CancelFill,{})},{name:"center-on",icon:jsx(CenterOn,{})},{name:"check",icon:jsx(Check,{})},{name:"collapse-window",icon:jsx(CollapseWindow,{})},{name:"collapse-all",icon:jsx(CollapseAll,{})},{name:"condense",icon:jsx(Condense,{})},{name:"copy-to-clipboard",icon:jsx(CopyToClipboard,{})},{name:"create-coa",icon:jsx(CreateCoa,{})},{name:"delete",icon:jsx(Delete,{})},{name:"drag-horz",icon:jsx(DragHorz,{})},{name:"drag-vert",icon:jsx(DragVert,{})},{name:"duplicate",icon:jsx(Duplicate,{})},{name:"edit",icon:jsx(Edit,{})},{name:"expand-all",icon:jsx(ExpandAll,{})},{name:"expand-left",icon:jsx(ExpandLeft,{})},{name:"expand-right",icon:jsx(ExpandRight,{})},{name:"expand-window",icon:jsx(ExpandWindow,{})},{name:"expand",icon:jsx(Expand,{})},{name:"explore-data",icon:jsx(ExploreData,{})},{name:"filter",icon:jsx(Filter,{})},{name:"flag",icon:jsx(Flag,{})},{name:"focus",icon:jsx(Focus,{})},{name:"global-share",icon:jsx(GlobalShare,{})},{name:"group",icon:jsx(Group,{})},{name:"hide",icon:jsx(Hide,{})},{name:"import",icon:jsx(Import,{})},{name:"insert-chart",icon:jsx(InsertChart,{})},{name:"jump-to",icon:jsx(JumpTo,{})},{name:"lasso",icon:jsx(Lasso,{})},{name:"link",icon:jsx(Link,{})},{name:"lock-fill",icon:jsx(LockFill,{})},{name:"lock-outline",icon:jsx(LockOutline,{})},{name:"login",icon:jsx(Login,{})},{name:"logout",icon:jsx(Logout,{})},{name:"loop",icon:jsx(Loop,{})},{name:"move",icon:jsx(Move,{})},{name:"mute",icon:jsx(Mute,{})},{name:"open-container",icon:jsx(OpenContainer,{})},{name:"paste-from-clipboard",icon:jsx(PasteFromClipboard,{})},{name:"pause",icon:jsx(Pause,{})},{name:"pin",icon:jsx(Pin,{})},{name:"play",icon:jsx(Play,{})},{name:"playback",icon:jsx(Playback,{})},{name:"polygon-lasso",icon:jsx(PolygonLasso,{})},{name:"pop-back-in",icon:jsx(PopBackIn,{})},{name:"pop-out",icon:jsx(PopOut,{})},{name:"record",icon:jsx(Record,{})},{name:"rectangle-select",icon:jsx(RectangleSelect,{})},{name:"remove-fill",icon:jsx(RemoveFill,{})},{name:"remove-from-list",icon:jsx(RemoveFromList,{})},{name:"remove",icon:jsx(Remove,{})},{name:"reverse",icon:jsx(Reverse,{})},{name:"screenshot",icon:jsx(Screenshot,{})},{name:"search",icon:jsx(Search,{})},{name:"share",icon:jsx(Share,{})},{name:"show",icon:jsx(Show,{})},{name:"stack-cards",icon:jsx(StackCards,{})},{name:"stack",icon:jsx(Stack,{})},{name:"tether",icon:jsx(Tether,{})},{name:"track-changes",icon:jsx(TrackChanges,{})},{name:"undo",icon:jsx(Undo,{})},{name:"zoom-in",icon:jsx(ZoomIn,{})},{name:"zoom-out",icon:jsx(ZoomOut,{})},{name:"zoom-to",icon:jsx(ZoomTo,{})}]},symbols:{description:"These icons mainly represent an object or concept.",icons:[{name:"airspaces",icon:jsx(Airspaces,{})},{name:"appearance",icon:jsx(Appearance,{})},{name:"arrow",icon:jsx(Arrow,{})},{name:"ascending",icon:jsx(Ascending,{})},{name:"assignment",icon:jsx(Assignment,{})},{name:"attributes",icon:jsx(Attributes,{})},{name:"bolt-not-visible",icon:jsx(BoltNotVisible,{})},{name:"bolt",icon:jsx(Bolt,{})},{name:"brightness",icon:jsx(Brightness,{})},{name:"bug-report",icon:jsx(BugReport,{})},{name:"calendar",icon:jsx(Calendar,{})},{name:"chart-stacked-bar",icon:jsx(ChartStackedBar,{})},{name:"circle-tool",icon:jsx(CircleTool,{})},{name:"color-picker",icon:jsx(ColorPicker,{})},{name:"common-operating-pic",icon:jsx(CommonOperatingPic,{})},{name:"contrast",icon:jsx(Contrast,{})},{name:"cop-settings",icon:jsx(CopSettings,{})},{name:"coverage",icon:jsx(Coverage,{})},{name:"dashboard",icon:jsx(Dashboard,{})},{name:"data",icon:jsx(Data,{})},{name:"descending",icon:jsx(Descending,{})},{name:"electromagnetic-spectrum",icon:jsx(ElectromagneticSpectrum,{})},{name:"feed",icon:jsx(Feed,{})},{name:"flight-plan",icon:jsx(FlightPlan,{})},{name:"gantt",icon:jsx(Gantt,{})},{name:"grid",icon:jsx(Grid,{})},{name:"hamburger",icon:jsx(Hamburger,{})},{name:"handover",icon:jsx(Handover,{})},{name:"handshake",icon:jsx(Handshake,{})},{name:"help",icon:jsx(Help,{})},{name:"intercept-point",icon:jsx(InterceptPoint,{})},{name:"kebab",icon:jsx(Kebab,{})},{name:"layer-group",icon:jsx(LayerGroup,{})},{name:"layers",icon:jsx(Layers,{})},{name:"line-tool",icon:jsx(LineTool,{})},{name:"location-fill",icon:jsx(LocationFill,{})},{name:"location-stroke",icon:jsx(LocationStroke,{})},{name:"message",icon:jsx(Message,{})},{name:"mode",icon:jsx(Mode,{})},{name:"newspaper",icon:jsx(Newspaper,{})},{name:"non-editable",icon:jsx(NonEditable,{})},{name:"none",icon:jsx(None,{})},{name:"note",icon:jsx(Note,{})},{name:"overlays",icon:jsx(Overlays,{})},{name:"panel-closed",icon:jsx(PanelClosed,{})},{name:"panel-open",icon:jsx(PanelOpen,{})},{name:"person",icon:jsx(Person,{})},{name:"phone",icon:jsx(Phone,{})},{name:"placeholder",icon:jsx(Placeholder,{})},{name:"plots",icon:jsx(Plots,{})},{name:"polygon-tool",icon:jsx(PolygonTool,{})},{name:"radar",icon:jsx(Radar,{})},{name:"radio",icon:jsx(Radio,{})},{name:"rectangle-tool",icon:jsx(RectangleTool,{})},{name:"region",icon:jsx(Region,{})},{name:"sector",icon:jsx(Sector,{})},{name:"selection-list",icon:jsx(SelectionList,{})},{name:"sensor-health",icon:jsx(SensorHealth,{})},{name:"settings",icon:jsx(Settings,{})},{name:"spotlight",icon:jsx(Spotlight,{})},{name:"threat-assess",icon:jsx(ThreatAssess,{})},{name:"ticket",icon:jsx(Ticket,{})},{name:"time",icon:jsx(Time,{})},{name:"timer",icon:jsx(Timer,{})},{name:"track-history",icon:jsx(TrackHistory,{})},{name:"unscheduled-maintenance",icon:jsx(UnscheduledMaintenance,{})},{name:"user-manual",icon:jsx(UserManual,{})},{name:"watch-tower",icon:jsx(WatchTower,{})},{name:"wind",icon:jsx(Wind,{})}]},controls:{description:"These icons portray acts or symbols related to control or configuration.",icons:[{name:"arrow-down",icon:jsx(ArrowDown,{})},{name:"arrow-left",icon:jsx(ArrowLeft,{})},{name:"arrow-northeast",icon:jsx(ArrowNortheast,{})},{name:"arrow-northwest",icon:jsx(ArrowNorthwest,{})},{name:"arrow-right",icon:jsx(ArrowRight,{})},{name:"arrow-southeast",icon:jsx(ArrowSoutheast,{})},{name:"arrow-southeast",icon:jsx(ArrowSouthwest,{})},{name:"arrow-up",icon:jsx(ArrowUp,{})},{name:"arrow-keys",icon:jsx(ArrowKeys,{})},{name:"arrow",icon:jsx(Arrow,{})},{name:"chevron-down",icon:jsx(ChevronDown,{})},{name:"chevron-fill-down",icon:jsx(ChevronFillDown,{})},{name:"chevron-up",icon:jsx(ChevronUp,{})},{name:"chevron-fill-up",icon:jsx(ChevronFillUp,{})},{name:"chevron-left",icon:jsx(ChevronLeft,{})},{name:"chevron-fill-left",icon:jsx(ChevronFillLeft,{})},{name:"chevron-right",icon:jsx(ChevronRight,{})},{name:"chevron-fill-right",icon:jsx(ChevronFillRight,{})},{name:"cursor-crosshair",icon:jsx(CursorCrosshair,{})},{name:"cursor-default",icon:jsx(CursorDefault,{})},{name:"cursor-drag",icon:jsx(CursorDrag,{})},{name:"track-eta",icon:jsx(TrackEta,{})},{name:"mouse-left-click",icon:jsx(MouseLeftClick,{})},{name:"mouse-middle-click",icon:jsx(MouseMiddleClick,{})},{name:"mouse-right-click",icon:jsx(MouseRightClick,{})},{name:"mouse-scroll",icon:jsx(MouseScroll,{})},{name:"scroll-click",icon:jsx(ScrollClick,{})}]},feedback:{description:"These icons portray communication or providing feedback to the user.",icons:[{name:"bell",icon:jsx(Bell,{})},{name:"information",icon:jsx(Information,{})},{name:"connection",icon:jsx(Connection,{})},{name:"success",icon:jsx(Success,{})},{name:"connection-lost",icon:jsx(ConnectionLost,{})},{name:"warning",icon:jsx(Warning,{})},{name:"live",icon:jsx(Live,{})},{name:"problem",icon:jsx(Problem,{})}]}};export{uo as default};//# sourceMappingURL=catalog.js.map
2
2
  //# sourceMappingURL=catalog.js.map
package/dist/index.css CHANGED
@@ -179,6 +179,26 @@ body {
179
179
  display: none;
180
180
  }
181
181
 
182
+ /*
183
+ * Scrollbars
184
+ */
185
+ *::-webkit-scrollbar {
186
+ width: var(--spacing-l);
187
+ height: var(--spacing-l);
188
+ }
189
+
190
+ *::-webkit-scrollbar-track {
191
+ background: var(--color-interactive);
192
+ }
193
+
194
+ *::-webkit-scrollbar-thumb{
195
+ background-color: var(--color-interactive-hover-light);
196
+ border-radius: var(--radius-large);
197
+ border: 5px solid transparent;
198
+ background-clip: padding-box;
199
+ }
200
+
201
+
182
202
  /**
183
203
  * Rule line only applicable to the QueryBuilder component
184
204
  */
package/dist/index.d.ts CHANGED
@@ -1,79 +1,112 @@
1
1
  export { Accordion, AccordionContext } from './components/accordion/index.js';
2
- export { AccordionStyleVariants, AccordionStyles, AccordionStylesDefaults } from './components/accordion/styles.js';
3
- export { AccordionGroupProps, AccordionHeaderProps, AccordionPanelProps, AccordionProps, AccordionTriggerProps } from './components/accordion/types.js';
2
+ export { AccordionStyles, AccordionStylesDefaults } from './components/accordion/styles.js';
3
+ export { AccordionGroupProps, AccordionHeaderProps, AccordionPanelProps, AccordionProps, AccordionStyleVariants, AccordionTriggerProps } from './components/accordion/types.js';
4
4
  export { Avatar, AvatarContext } from './components/avatar/index.js';
5
5
  export { AvatarStyles } from './components/avatar/styles.js';
6
- export { AvatarProps, AvatarProviderProps } from './components/avatar/types.js';
6
+ export { AvatarProps } from './components/avatar/types.js';
7
7
  export { Badge, BadgeContext } from './components/badge/index.js';
8
8
  export { BadgeStyles, BadgeStylesDefaults } from './components/badge/styles.js';
9
- export { BadgeProps, BadgeProviderProps } from './components/badge/types.js';
9
+ export { BadgeProps } from './components/badge/types.js';
10
10
  export { Box, BoxProps } from './components/box/index.js';
11
11
  export { Button, ButtonContext, LinkButton, LinkButtonContext, ToggleButton, ToggleButtonContext } from './components/button/index.js';
12
12
  export { ButtonStyles, ButtonStylesDefaults, LinkButtonStyles, ToggleButtonStyles } from './components/button/styles.js';
13
- export { ButtonProps, ButtonProviderProps, ButtonStyleVariants, LinkButtonProps, LinkButtonProviderProps, ToggleButtonProps, ToggleButtonProviderProps } from './components/button/types.js';
13
+ export { ButtonProps, ButtonStyleVariants, LinkButtonProps, ToggleButtonProps } from './components/button/types.js';
14
14
  export { Checkbox, CheckboxContext, CheckboxGroupContext } from './components/checkbox/index.js';
15
15
  export { CheckboxStyles } from './components/checkbox/styles.js';
16
16
  export { CheckboxGroupProps, CheckboxProps } from './components/checkbox/types.js';
17
17
  export { Chip, ChipContext } from './components/chip/index.js';
18
18
  export { BaseChipStyles, ChipStyles, ChipStylesDefaults, DeletableChipStyles, SelectableChipStyles } from './components/chip/styles.js';
19
- export { BaseChipProps, ChipListProps, ChipProps, ChipProviderProps, DeletableChipProps, SelectableChipProps } from './components/chip/types.js';
19
+ export { BaseChipProps, ChipListProps, ChipProps, DeletableChipProps, SelectableChipProps } from './components/chip/types.js';
20
20
  export { ClassificationBadge, ClassificationBadgeContext } from './components/classification-badge/index.js';
21
21
  export { ClassificationBadgeStyles, ClassificationBadgeStylesDefaults } from './components/classification-badge/styles.js';
22
- export { ClassificationBadgeProps, ClassificationBadgeProviderProps, ClassificationBadgeStyleVariants } from './components/classification-badge/types.js';
22
+ export { ClassificationBadgeProps, ClassificationBadgeStyleVariants } from './components/classification-badge/types.js';
23
23
  export { ClassificationBanner, ClassificationBannerContext } from './components/classification-banner/index.js';
24
24
  export { ClassificationBannerStyles, ClassificationBannerStylesDefaults } from './components/classification-banner/styles.js';
25
- export { ClassificationBannerProps, ClassificationBannerProviderProps, ClassificationBannerStyleVariants } from './components/classification-banner/types.js';
26
- export { ColorPicker, ColorPickerProps, useColorPickerState } from './components/color-picker/index.js';
27
- export { ComboBox, ComboBoxProps, ComboBoxSection } from './components/combobox/index.js';
28
- export { DateField, DateFieldProps } from './components/date-field/index.js';
25
+ export { ClassificationBannerProps, ClassificationBannerStyleVariants } from './components/classification-banner/types.js';
26
+ export { ColorPicker } from './components/color-picker/index.js';
27
+ export { ColorPickerStyles } from './components/color-picker/styles.js';
28
+ export { ColorPickerProps } from './components/color-picker/types.js';
29
+ export { ComboBoxField, ComboBoxFieldContext } from './components/combobox-field/index.js';
30
+ export { ComboBoxStyles } from './components/combobox-field/styles.js';
31
+ export { ComboBoxFieldProps } from './components/combobox-field/types.js';
32
+ export { DateField } from './components/date-field/index.js';
33
+ export { DateFieldStyles, DateFieldStylesDefault } from './components/date-field/styles.js';
34
+ export { DateFieldProps, DateInputProps } from './components/date-field/types.js';
35
+ export { DetailsList, DetailsListContext } from './components/details-list/index.js';
36
+ export { DetailsListStyles, DetailsListStylesDefaults } from './components/details-list/styles.js';
37
+ export { DetailsListLabelProps, DetailsListProps, DetailsListValueProps } from './components/details-list/types.js';
29
38
  export { Dialog, DialogProps, DialogTitle } from './components/dialog/index.js';
39
+ export { useDrawerContext, useDrawersContext, useDrawersState } from './components/drawer/context.js';
40
+ export { Drawer } from './components/drawer/index.js';
41
+ export { DrawerAction, createDefaultDrawerState, drawerStateReducer } from './components/drawer/state.js';
42
+ export { DrawerMenuStyles, DrawerStyles } from './components/drawer/styles.js';
43
+ export { DrawerContainerProps, DrawerContextValue, DrawerDefaults, DrawerLayoutProps, DrawerLayoutPush, DrawerLayouts, DrawerMenuItemProps, DrawerMenuProps, DrawerPanelProps, DrawerPlacement, DrawerProps, DrawerProviderProps, DrawerSize, DrawerState, DrawerTriggerProps, DrawersContextValue, OnOpenChangeCallback } from './components/drawer/types.js';
44
+ export { Hero, HeroContext } from './components/hero/index.js';
45
+ export { HeroStyles } from './components/hero/styles.js';
46
+ export { HeroProps } from './components/hero/types.js';
47
+ export { Hotkey, HotkeyContext, HotkeySet } from './components/hotkey/index.js';
48
+ export { HotkeyStyles, HotkeyStylesDefaults } from './components/hotkey/styles.js';
49
+ export { HotkeyProps, HotkeySetProps } from './components/hotkey/types.js';
30
50
  export { Icon, IconContext } from './components/icon/index.js';
31
51
  export { IconStyles } from './components/icon/styles.js';
32
- export { IconProps, IconProviderProps } from './components/icon/types.js';
52
+ export { IconProps } from './components/icon/types.js';
33
53
  export { Input, InputContext } from './components/input/index.js';
34
54
  export { InputStyles, InputStylesDefaults } from './components/input/styles.js';
35
55
  export { InputProps } from './components/input/types.js';
36
56
  export { Label, LabelContext } from './components/label/index.js';
37
57
  export { LabelStyles } from './components/label/styles.js';
38
- export { LabelProps, LabelProviderProps } from './components/label/types.js';
39
- export { Menu, MenuContext, MenuDescription, MenuItem, MenuLabel, MenuSection, MenuSeparator } from './components/menu/index.js';
58
+ export { LabelProps } from './components/label/types.js';
59
+ export { Menu, MenuContext } from './components/menu/index.js';
40
60
  export { MenuStyleVariants, MenuStyles, MenuStylesDefaults } from './components/menu/styles.js';
41
61
  export { MenuItemProps, MenuProps, MenuSectionProps, MenuTextProps, MenuTriggerProps, SeparatorProps, SubmenuTriggerProps } from './components/menu/types.js';
42
- export { Options, OptionsContext, OptionsProps, OptionsSection } from './components/options/index.js';
43
- export { IOptionsItem, OptionsItem, OptionsItemProps } from './components/options-item/index.js';
62
+ export { Options, OptionsContext } from './components/options/index.js';
63
+ export { OptionsStyles } from './components/options/styles.js';
64
+ export { OptionsDataItem, OptionsItemProps, OptionsItemTextProps, OptionsProps, OptionsSectionProps } from './components/options/types.js';
44
65
  export { Popover, PopoverTrigger } from './components/popover/index.js';
45
66
  export { PopoverStyles } from './components/popover/styles.js';
46
67
  export { PopoverBodyProps, PopoverContentProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps } from './components/popover/types.js';
47
- export { ClassNames, DefaultRQBProps, Field, QueryBuilder, QueryBuilderContextType, QueryBuilderProps, QueryBuilderValueEditors, RuleGroupType } from './components/query-builder/index.js';
68
+ export { QueryBuilder } from './components/query-builder/index.js';
69
+ export { ClassNames, DefaultRQBProps, Field, QueryBuilderContextType, QueryBuilderProps, QueryBuilderValueEditors, RuleGroupType } from './components/query-builder/types.js';
48
70
  export { Radio, RadioContext } from './components/radio/index.js';
49
71
  export { RadioStyles } from './components/radio/styles.js';
50
- export { RadioGroupProps, RadioProps, RadioProviderProps } from './components/radio/types.js';
51
- export { SearchField, SearchFieldProps } from './components/search-field/index.js';
72
+ export { RadioGroupProps, RadioProps } from './components/radio/types.js';
73
+ export { SearchField, SearchFieldContext } from './components/search-field/index.js';
74
+ export { SearchFieldStyles, SearchFieldStylesDefaults } from './components/search-field/styles.js';
75
+ export { SearchFieldProps, SearchFieldStyleVariants } from './components/search-field/types.js';
76
+ export { SelectField, SelectFieldContext } from './components/select-field/index.js';
77
+ export { SelectFieldStyles } from './components/select-field/styles.js';
78
+ export { SelectFieldProps } from './components/select-field/types.js';
79
+ export { Skeleton } from './components/skeleton/index.js';
80
+ export { SkeletonStyles, SkeletonStylesDefaults } from './components/skeleton/styles.js';
81
+ export { SkeletonProps, SkeletonStyleVariants } from './components/skeleton/types.js';
52
82
  export { RangeSlider, RangeSliderProps, Slider, SliderProps } from './components/slider/index.js';
53
83
  export { Switch, SwitchContext } from './components/switch/index.js';
54
84
  export { SwitchStyles } from './components/switch/styles.js';
55
- export { SwitchProps, SwitchProviderProps } from './components/switch/types.js';
85
+ export { SwitchProps } from './components/switch/types.js';
56
86
  export { TabListProps, TabPanelProps, TabProps, Tabs, TabsProps } from './components/tabs/index.js';
57
87
  export { TextAreaField, TextAreaFieldContext } from './components/text-area-field/index.js';
58
88
  export { TextAreaStyles } from './components/text-area-field/styles.js';
59
- export { TextAreaFieldProps, TextAreaFieldProviderProps } from './components/text-area-field/types.js';
89
+ export { TextAreaFieldProps } from './components/text-area-field/types.js';
60
90
  export { TextField, TextFieldContext } from './components/text-field/index.js';
61
91
  export { TextFieldStyles } from './components/text-field/styles.js';
62
- export { TextFieldProps, TextFieldProviderProps } from './components/text-field/types.js';
63
- export { Tooltip, TooltipBody, TooltipBodyProps, TooltipProps, TooltipTrigger, TooltipTriggerProps } from './components/tooltip/index.js';
92
+ export { TextFieldProps } from './components/text-field/types.js';
93
+ export { Tooltip, TooltipContext } from './components/tooltip/index.js';
94
+ export { TooltipStyles } from './components/tooltip/styles.js';
95
+ export { TooltipBodyProps, TooltipProps, TooltipTriggerProps } from './components/tooltip/types.js';
96
+ export { ViewStack, ViewStackEventTypes } from './components/view-stack/index.js';
97
+ export { ViewStackBackEvent, ViewStackClearEvent, ViewStackContextValue, ViewStackProps, ViewStackPushEvent, ViewStackResetEvent, ViewStackTriggerProps, ViewStackViewProps } from './components/view-stack/types.js';
64
98
  export { containsExactChildren, expectsIconWrapper } from './lib/react.js';
65
- export { ChildrenRenderProps, ClassNameRenderProps, RenderProps, RenderPropsChildren, RenderPropsClassName, RenderPropsStyle, StylePropRenderProps, StyleRenderProps } from './lib/types.js';
99
+ export { ChildrenRenderProps, ClassNameRenderProps, ProviderProps, RenderProps, RenderPropsChildren, RenderPropsClassName, RenderPropsStyle, SlottedValue, StylePropRenderProps, StyleRenderProps } from './lib/types.js';
66
100
  export { cn, isSlottedContextValue, tv, twMerge } from './lib/utils.js';
67
101
  export { RGBAColor, colorAdvisory, colorAdvisoryBold, colorAdvisoryHover, colorAdvisorySubtle, colorClassificationConfidential, colorClassificationCui, colorClassificationMissing, colorClassificationSecret, colorClassificationTopSecret, colorClassificationTsSci, colorClassificationUnclass, colorCritical, colorCriticalBold, colorCriticalHover, colorCriticalSubtle, colorDefaultDark, colorDefaultLight, colorDisabled, colorHighlight, colorHighlightBold, colorHighlightHover, colorHighlightSubtle, colorInfo, colorInfoBold, colorInfoHover, colorInfoSubtle, colorInteractive, colorInteractiveDefault, colorInteractiveDisabled, colorInteractiveHover, colorInteractiveHoverDark, colorInteractiveHoverLight, colorInverseDark, colorInverseLight, colorNormal, colorNormalBold, colorNormalHover, colorNormalSubtle, colorSerious, colorSeriousBold, colorSeriousHover, colorSeriousSubtle, colorStaticDark, colorStaticLight, colorSurfaceDefault, colorSurfaceOverlay, colorSurfaceRaised, colorTransparentDark, colorTransparentLight, fontDisplay, fontPrimary, iconSizeL, iconSizeM, iconSizeS, iconSizeXs, radiusLarge, radiusMedium, radiusNone, radiusRound, radiusSmall, shadowElevationDefault, shadowElevationOverlay, shadowElevationRaised, spacing0, spacingL, spacingM, spacingNone, spacingOversized, spacingS, spacingXl, spacingXs, spacingXxl, spacingXxs, typographyBodyLHeight, typographyBodyLSize, typographyBodyLSpacing, typographyBodyMHeight, typographyBodyMSize, typographyBodyMSpacing, typographyBodySHeight, typographyBodySSize, typographyBodySSpacing, typographyBodyXsHeight, typographyBodyXsSize, typographyBodyXsSpacing, typographyBodyXxsHeight, typographyBodyXxsSize, typographyBodyXxsSpacing, typographyButtonLHeight, typographyButtonLSize, typographyButtonLSpacing, typographyButtonMHeight, typographyButtonMSize, typographyButtonMSpacing, typographyButtonSHeight, typographyButtonSSize, typographyButtonSSpacing, typographyButtonXsHeight, typographyButtonXsSize, typographyButtonXsSpacing, typographyHeaderLHeight, typographyHeaderLSize, typographyHeaderLSpacing, typographyHeaderMHeight, typographyHeaderMSize, typographyHeaderMSpacing, typographyHeaderSHeight, typographyHeaderSSize, typographyHeaderSSpacing, typographyHeaderXlHeight, typographyHeaderXlSize, typographyHeaderXlSpacing, typographyHeaderXsHeight, typographyHeaderXsSize, typographyHeaderXsSpacing, typographyHeaderXxlHeight, typographyHeaderXxlSize, typographyHeaderXxlSpacing } from './tokens/index.js';
68
102
  import 'react/jsx-runtime';
69
103
  import 'react';
70
104
  import 'react-aria-components';
71
105
  import 'tailwind-variants';
106
+ import 'tailwind-merge';
72
107
  import '@radix-ui/react-avatar';
73
108
  import '@react-types/overlays';
74
109
  import '@react-types/shared';
75
- import 'cva/types';
76
- import 'cva';
77
110
  import '@internationalized/date';
78
111
  import './components/query-builder/value-selector.js';
79
112
  import 'react-querybuilder';
@@ -82,5 +115,5 @@ import './components/query-builder/group.js';
82
115
  import './components/query-builder/rule.js';
83
116
  import './components/query-builder/action-element.js';
84
117
  import 'type-fest';
85
- import 'tailwind-merge';
118
+ import '@accelint/core';
86
119
  import 'clsx';
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{Accordion,AccordionContext}from'./components/accordion/index.js';export{AccordionStyles,AccordionStylesDefaults}from'./components/accordion/styles.js';export{Avatar,AvatarContext}from'./components/avatar/index.js';export{AvatarStyles}from'./components/avatar/styles.js';export{Badge,BadgeContext}from'./components/badge/index.js';export{BadgeStyles,BadgeStylesDefaults}from'./components/badge/styles.js';export{Box}from'./components/box/index.js';export{Button,ButtonContext,LinkButton,LinkButtonContext,ToggleButton,ToggleButtonContext}from'./components/button/index.js';export{ButtonStyles,ButtonStylesDefaults,LinkButtonStyles,ToggleButtonStyles}from'./components/button/styles.js';export{Checkbox,CheckboxContext,CheckboxGroupContext}from'./components/checkbox/index.js';export{CheckboxStyles}from'./components/checkbox/styles.js';export{Chip,ChipContext}from'./components/chip/index.js';export{BaseChipStyles,ChipStyles,ChipStylesDefaults,DeletableChipStyles,SelectableChipStyles}from'./components/chip/styles.js';export{ClassificationBadge,ClassificationBadgeContext}from'./components/classification-badge/index.js';export{ClassificationBadgeStyles,ClassificationBadgeStylesDefaults}from'./components/classification-badge/styles.js';export{ClassificationBanner,ClassificationBannerContext}from'./components/classification-banner/index.js';export{ClassificationBannerStyles,ClassificationBannerStylesDefaults}from'./components/classification-banner/styles.js';export{ColorPicker,useColorPickerState}from'./components/color-picker/index.js';export{ComboBox,ComboBoxSection}from'./components/combobox/index.js';export{DateField}from'./components/date-field/index.js';export{Dialog,DialogTitle}from'./components/dialog/index.js';export{Icon,IconContext}from'./components/icon/index.js';export{IconStyles}from'./components/icon/styles.js';export{Input,InputContext}from'./components/input/index.js';export{InputStyles,InputStylesDefaults}from'./components/input/styles.js';export{Label,LabelContext}from'./components/label/index.js';export{LabelStyles}from'./components/label/styles.js';export{Menu,MenuContext,MenuDescription,MenuItem,MenuLabel,MenuSection,MenuSeparator}from'./components/menu/index.js';export{MenuStyles,MenuStylesDefaults}from'./components/menu/styles.js';export{Options,OptionsContext,OptionsSection}from'./components/options/index.js';export{OptionsItem}from'./components/options-item/index.js';export{Popover,PopoverTrigger}from'./components/popover/index.js';export{PopoverStyles}from'./components/popover/styles.js';export{QueryBuilder}from'./components/query-builder/index.js';export{Radio,RadioContext}from'./components/radio/index.js';export{RadioStyles}from'./components/radio/styles.js';export{SearchField}from'./components/search-field/index.js';export{RangeSlider,Slider}from'./components/slider/index.js';export{Switch,SwitchContext}from'./components/switch/index.js';export{SwitchStyles}from'./components/switch/styles.js';export{Tabs}from'./components/tabs/index.js';export{TextAreaField,TextAreaFieldContext}from'./components/text-area-field/index.js';export{TextAreaStyles}from'./components/text-area-field/styles.js';export{TextField,TextFieldContext}from'./components/text-field/index.js';export{TextFieldStyles}from'./components/text-field/styles.js';export{Tooltip,TooltipBody,TooltipTrigger}from'./components/tooltip/index.js';export{containsExactChildren,expectsIconWrapper}from'./lib/react.js';export{cn,isSlottedContextValue,tv,twMerge}from'./lib/utils.js';export{colorAdvisory,colorAdvisoryBold,colorAdvisoryHover,colorAdvisorySubtle,colorClassificationConfidential,colorClassificationCui,colorClassificationMissing,colorClassificationSecret,colorClassificationTopSecret,colorClassificationTsSci,colorClassificationUnclass,colorCritical,colorCriticalBold,colorCriticalHover,colorCriticalSubtle,colorDefaultDark,colorDefaultLight,colorDisabled,colorHighlight,colorHighlightBold,colorHighlightHover,colorHighlightSubtle,colorInfo,colorInfoBold,colorInfoHover,colorInfoSubtle,colorInteractive,colorInteractiveDefault,colorInteractiveDisabled,colorInteractiveHover,colorInteractiveHoverDark,colorInteractiveHoverLight,colorInverseDark,colorInverseLight,colorNormal,colorNormalBold,colorNormalHover,colorNormalSubtle,colorSerious,colorSeriousBold,colorSeriousHover,colorSeriousSubtle,colorStaticDark,colorStaticLight,colorSurfaceDefault,colorSurfaceOverlay,colorSurfaceRaised,colorTransparentDark,colorTransparentLight,fontDisplay,fontPrimary,iconSizeL,iconSizeM,iconSizeS,iconSizeXs,radiusLarge,radiusMedium,radiusNone,radiusRound,radiusSmall,shadowElevationDefault,shadowElevationOverlay,shadowElevationRaised,spacing0,spacingL,spacingM,spacingNone,spacingOversized,spacingS,spacingXl,spacingXs,spacingXxl,spacingXxs,typographyBodyLHeight,typographyBodyLSize,typographyBodyLSpacing,typographyBodyMHeight,typographyBodyMSize,typographyBodyMSpacing,typographyBodySHeight,typographyBodySSize,typographyBodySSpacing,typographyBodyXsHeight,typographyBodyXsSize,typographyBodyXsSpacing,typographyBodyXxsHeight,typographyBodyXxsSize,typographyBodyXxsSpacing,typographyButtonLHeight,typographyButtonLSize,typographyButtonLSpacing,typographyButtonMHeight,typographyButtonMSize,typographyButtonMSpacing,typographyButtonSHeight,typographyButtonSSize,typographyButtonSSpacing,typographyButtonXsHeight,typographyButtonXsSize,typographyButtonXsSpacing,typographyHeaderLHeight,typographyHeaderLSize,typographyHeaderLSpacing,typographyHeaderMHeight,typographyHeaderMSize,typographyHeaderMSpacing,typographyHeaderSHeight,typographyHeaderSSize,typographyHeaderSSpacing,typographyHeaderXlHeight,typographyHeaderXlSize,typographyHeaderXlSpacing,typographyHeaderXsHeight,typographyHeaderXsSize,typographyHeaderXsSpacing,typographyHeaderXxlHeight,typographyHeaderXxlSize,typographyHeaderXxlSpacing}from'./tokens/index.js';//# sourceMappingURL=index.js.map
1
+ export{Accordion,AccordionContext}from'./components/accordion/index.js';export{AccordionStyles,AccordionStylesDefaults}from'./components/accordion/styles.js';export{Avatar,AvatarContext}from'./components/avatar/index.js';export{AvatarStyles}from'./components/avatar/styles.js';export{Badge,BadgeContext}from'./components/badge/index.js';export{BadgeStyles,BadgeStylesDefaults}from'./components/badge/styles.js';export{Box}from'./components/box/index.js';export{Button,ButtonContext,LinkButton,LinkButtonContext,ToggleButton,ToggleButtonContext}from'./components/button/index.js';export{ButtonStyles,ButtonStylesDefaults,LinkButtonStyles,ToggleButtonStyles}from'./components/button/styles.js';export{Checkbox,CheckboxContext,CheckboxGroupContext}from'./components/checkbox/index.js';export{CheckboxStyles}from'./components/checkbox/styles.js';export{Chip,ChipContext}from'./components/chip/index.js';export{BaseChipStyles,ChipStyles,ChipStylesDefaults,DeletableChipStyles,SelectableChipStyles}from'./components/chip/styles.js';export{ClassificationBadge,ClassificationBadgeContext}from'./components/classification-badge/index.js';export{ClassificationBadgeStyles,ClassificationBadgeStylesDefaults}from'./components/classification-badge/styles.js';export{ClassificationBanner,ClassificationBannerContext}from'./components/classification-banner/index.js';export{ClassificationBannerStyles,ClassificationBannerStylesDefaults}from'./components/classification-banner/styles.js';export{ColorPicker}from'./components/color-picker/index.js';export{ColorPickerStyles}from'./components/color-picker/styles.js';export{ComboBoxField,ComboBoxFieldContext}from'./components/combobox-field/index.js';export{ComboBoxStyles}from'./components/combobox-field/styles.js';export{DateField}from'./components/date-field/index.js';export{DateFieldStyles,DateFieldStylesDefault}from'./components/date-field/styles.js';export{DetailsList,DetailsListContext}from'./components/details-list/index.js';export{DetailsListStyles,DetailsListStylesDefaults}from'./components/details-list/styles.js';export{Dialog,DialogTitle}from'./components/dialog/index.js';export{useDrawerContext,useDrawersContext,useDrawersState}from'./components/drawer/context.js';export{Drawer}from'./components/drawer/index.js';export{createDefaultDrawerState,drawerStateReducer}from'./components/drawer/state.js';export{DrawerMenuStyles,DrawerStyles}from'./components/drawer/styles.js';export{DrawerDefaults}from'./components/drawer/types.js';export{Hero,HeroContext}from'./components/hero/index.js';export{HeroStyles}from'./components/hero/styles.js';export{Hotkey,HotkeyContext,HotkeySet}from'./components/hotkey/index.js';export{HotkeyStyles,HotkeyStylesDefaults}from'./components/hotkey/styles.js';export{Icon,IconContext}from'./components/icon/index.js';export{IconStyles}from'./components/icon/styles.js';export{Input,InputContext}from'./components/input/index.js';export{InputStyles,InputStylesDefaults}from'./components/input/styles.js';export{Label,LabelContext}from'./components/label/index.js';export{LabelStyles}from'./components/label/styles.js';export{Menu,MenuContext}from'./components/menu/index.js';export{MenuStyles,MenuStylesDefaults}from'./components/menu/styles.js';export{Options,OptionsContext}from'./components/options/index.js';export{OptionsStyles}from'./components/options/styles.js';export{Popover,PopoverTrigger}from'./components/popover/index.js';export{PopoverStyles}from'./components/popover/styles.js';export{QueryBuilder}from'./components/query-builder/index.js';export{Radio,RadioContext}from'./components/radio/index.js';export{RadioStyles}from'./components/radio/styles.js';export{SearchField,SearchFieldContext}from'./components/search-field/index.js';export{SearchFieldStyles,SearchFieldStylesDefaults}from'./components/search-field/styles.js';export{SelectField,SelectFieldContext}from'./components/select-field/index.js';export{SelectFieldStyles}from'./components/select-field/styles.js';export{Skeleton}from'./components/skeleton/index.js';export{SkeletonStyles,SkeletonStylesDefaults}from'./components/skeleton/styles.js';export{RangeSlider,Slider}from'./components/slider/index.js';export{Switch,SwitchContext}from'./components/switch/index.js';export{SwitchStyles}from'./components/switch/styles.js';export{Tabs}from'./components/tabs/index.js';export{TextAreaField,TextAreaFieldContext}from'./components/text-area-field/index.js';export{TextAreaStyles}from'./components/text-area-field/styles.js';export{TextField,TextFieldContext}from'./components/text-field/index.js';export{TextFieldStyles}from'./components/text-field/styles.js';export{Tooltip,TooltipContext}from'./components/tooltip/index.js';export{TooltipStyles}from'./components/tooltip/styles.js';export{ViewStack,ViewStackEventTypes}from'./components/view-stack/index.js';export{containsExactChildren,expectsIconWrapper}from'./lib/react.js';export{cn,isSlottedContextValue,tv,twMerge}from'./lib/utils.js';export{colorAdvisory,colorAdvisoryBold,colorAdvisoryHover,colorAdvisorySubtle,colorClassificationConfidential,colorClassificationCui,colorClassificationMissing,colorClassificationSecret,colorClassificationTopSecret,colorClassificationTsSci,colorClassificationUnclass,colorCritical,colorCriticalBold,colorCriticalHover,colorCriticalSubtle,colorDefaultDark,colorDefaultLight,colorDisabled,colorHighlight,colorHighlightBold,colorHighlightHover,colorHighlightSubtle,colorInfo,colorInfoBold,colorInfoHover,colorInfoSubtle,colorInteractive,colorInteractiveDefault,colorInteractiveDisabled,colorInteractiveHover,colorInteractiveHoverDark,colorInteractiveHoverLight,colorInverseDark,colorInverseLight,colorNormal,colorNormalBold,colorNormalHover,colorNormalSubtle,colorSerious,colorSeriousBold,colorSeriousHover,colorSeriousSubtle,colorStaticDark,colorStaticLight,colorSurfaceDefault,colorSurfaceOverlay,colorSurfaceRaised,colorTransparentDark,colorTransparentLight,fontDisplay,fontPrimary,iconSizeL,iconSizeM,iconSizeS,iconSizeXs,radiusLarge,radiusMedium,radiusNone,radiusRound,radiusSmall,shadowElevationDefault,shadowElevationOverlay,shadowElevationRaised,spacing0,spacingL,spacingM,spacingNone,spacingOversized,spacingS,spacingXl,spacingXs,spacingXxl,spacingXxs,typographyBodyLHeight,typographyBodyLSize,typographyBodyLSpacing,typographyBodyMHeight,typographyBodyMSize,typographyBodyMSpacing,typographyBodySHeight,typographyBodySSize,typographyBodySSpacing,typographyBodyXsHeight,typographyBodyXsSize,typographyBodyXsSpacing,typographyBodyXxsHeight,typographyBodyXxsSize,typographyBodyXxsSpacing,typographyButtonLHeight,typographyButtonLSize,typographyButtonLSpacing,typographyButtonMHeight,typographyButtonMSize,typographyButtonMSpacing,typographyButtonSHeight,typographyButtonSSize,typographyButtonSSpacing,typographyButtonXsHeight,typographyButtonXsSize,typographyButtonXsSpacing,typographyHeaderLHeight,typographyHeaderLSize,typographyHeaderLSpacing,typographyHeaderMHeight,typographyHeaderMSize,typographyHeaderMSpacing,typographyHeaderSHeight,typographyHeaderSSize,typographyHeaderSSpacing,typographyHeaderXlHeight,typographyHeaderXlSize,typographyHeaderXlSpacing,typographyHeaderXsHeight,typographyHeaderXsSize,typographyHeaderXsSpacing,typographyHeaderXxlHeight,typographyHeaderXxlSize,typographyHeaderXxlSpacing}from'./tokens/index.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,14 +1,18 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, JSXElementConstructor } from 'react';
2
2
 
3
+ type ChildrenTypes = ReactNode | ReactNode[] | ((values: any & {
4
+ defaultChildren: ReactNode | undefined;
5
+ }) => ReactNode);
3
6
  type ContainsExactChildrenProps = {
4
7
  componentName: string;
5
- children: ReactNode | ReactNode[] | ((values: any & {
6
- defaultChildren: ReactNode | undefined;
7
- }) => ReactNode);
8
- restrictions: Record<string, {
9
- min: number;
10
- max?: number;
11
- }>;
8
+ children: ChildrenTypes;
9
+ restrictions: [
10
+ string | JSXElementConstructor<any>,
11
+ {
12
+ min: number;
13
+ max?: number;
14
+ }
15
+ ][];
12
16
  };
13
17
  /**
14
18
  * Validates the intended composite component structure.
@@ -36,9 +40,6 @@ declare function containsExactChildren({ children, componentName, restrictions,
36
40
  * @param children the children of the calling component
37
41
  * @param componentName the displayName of the calling component
38
42
  */
39
- declare function expectsIconWrapper({ children, componentName }: {
40
- children: any;
41
- componentName: any;
42
- }): void;
43
+ declare function expectsIconWrapper({ children, componentName, }: Omit<ContainsExactChildrenProps, 'restrictions'>): void;
43
44
 
44
45
  export { containsExactChildren, expectsIconWrapper };
package/dist/lib/react.js CHANGED
@@ -1,5 +1,5 @@
1
- import {Children,isValidElement}from'react';var c=class extends Error{constructor(r){super(r),this.name="ComponentStructureError";}};function m({children:s,componentName:r,restrictions:l}){let i=Children.toArray(s);if(!i.every(isValidElement))throw new c(`<${r}> received invalid children.`);let u=i.reduce((n,o)=>{let e=o?.type?.displayName;return e&&(n[e]=(n[e]||0)+1),n},{}),a=[],d=[];for(let[n,{min:o,max:e}]of Object.entries(l)){let t=u[n]??0;t<o&&a.push(`${o-t} of <${n}>`),e!==void 0&&t>e&&d.push(`${t-e} of <${n}>`);}if(a.length||d.length){let n=(e,t)=>t.length?` ${e}:
2
- ${t.join(", ")}
3
- `:"",o=`Invalid <${r}> structure
4
- ${n("Missing the following",a)}${n("Excess of the following",d)}`;throw new c(o.trim())}}function g({children:s,componentName:r}){Children.toArray(s).map(i=>{if(isValidElement(i)&&i.type.name?.startsWith("Svg"))throw new Error(`${r} is using an icon without the required Icon wrapper`)});}export{m as containsExactChildren,g as expectsIconWrapper};//# sourceMappingURL=react.js.map
1
+ import {jsx,Fragment}from'react/jsx-runtime';import {isValidElement,Children,Fragment as Fragment$1}from'react';class m extends Error{constructor(t){super(t),this.name="ComponentStructureError";}}function y(o){const t=Children.toArray(typeof o=="function"?o({state:{},defaultChildren:jsx(Fragment,{})}):o);let i=0;for(;i<t.length;){const e=t[i];e!=null&&typeof e=="object"&&!(e instanceof Promise)&&!(Symbol.iterator in e)&&e.type===Fragment$1&&e.props!=null&&typeof e.props=="object"&&"children"in e.props?t.splice(i,1,...Children.toArray(e.props.children)):i++;}return t}function N({children:o,componentName:t,restrictions:i}){if(process.env.NODE_ENV==="production")return;const e=y(o);if(!e.every(isValidElement))throw new m(`<${t}> received invalid children.`);const f=e.reduce((n,s)=>{const r=s.type?.name??s.type?.displayName??s.type?.render?.name;return r&&(n[r]=(n[r]||0)+1),n},{}),p=[],d=[];for(const[n,{min:s,max:r}]of i){const c=typeof n=="string"?n:n.name??n.displayName??n.render?.name,a=f[c]??0;a<s&&p.push(`${s-a} of <${c}>`),r!==void 0&&a>r&&d.push(`${a-r} of <${c}>`);}if(p.length||d.length){const n=(r,c)=>c.length?` ${r}:
2
+ ${c.join(", ")}
3
+ `:"",s=`Invalid <${t}> structure
4
+ ${n("Missing the following",p)}${n("Excess of the following",d)}`;throw new m(s.trim())}}function x({children:o,componentName:t}){if(process.env.NODE_ENV==="production")return;Children.toArray(o).map(e=>{if(isValidElement(e)&&e.type?.name?.startsWith("Svg"))throw new Error(`${t} is using an icon without the required Icon wrapper`)});}export{N as containsExactChildren,x as expectsIconWrapper};//# sourceMappingURL=react.js.map
5
5
  //# sourceMappingURL=react.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/react.ts"],"names":["ComponentStructureError","message","containsExactChildren","children","componentName","restrictions","childrenComponents","Children","isValidElement","accumulationResults","acc","child","name","missingComponentsArray","excessComponentsArray","key","min","max","found","formatList","label","items","errorMessage","expectsIconWrapper"],"mappings":"4CAeA,IAAMA,CAAAA,CAAN,cAAsC,KAAM,CAC1C,WAAA,CAAYC,CAAAA,CAAS,CACnB,MAAMA,CAAO,CAAA,CACb,IAAA,CAAK,IAAA,CAAO,0BACd,CACF,CAAA,CAuBO,SAASC,EAAsB,CACpC,QAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,EACA,YAAA,CAAAC,CACF,CAAA,CAA+B,CAC7B,IAAMC,CAAAA,CAAqBC,QAAAA,CAAS,OAAA,CAAQJ,CAAQ,CAAA,CAEpD,GAAI,CAACG,CAAAA,CAAmB,MAAME,cAAc,CAAA,CAC1C,MAAM,IAAIR,CAAAA,CACR,CAAA,CAAA,EAAII,CAAa,CAAA,4BAAA,CACnB,EAGF,IAAMK,CAAAA,CAAsBH,CAAAA,CAAmB,MAAA,CAAO,CAACI,CAAAA,CAAKC,CAAAA,GAAU,CACpE,IAAMC,CAAAA,CAAOD,CAAAA,EAAO,IAAA,EAAM,WAAA,CAC1B,OAAIC,CAAAA,GACFF,CAAAA,CAAIE,CAAI,CAAA,CAAA,CAAKF,EAAIE,CAAI,CAAA,EAAK,CAAA,EAAK,CAAA,CAAA,CAE1BF,CACT,CAAA,CAAG,EAAE,EAECG,CAAAA,CAAmC,EAAC,CACpCC,CAAAA,CAAkC,EAAC,CAEzC,IAAA,GAAW,CAACC,EAAK,CAAE,GAAA,CAAAC,CAAAA,CAAK,GAAA,CAAAC,CAAI,CAAC,CAAA,GAAK,MAAA,CAAO,QAAQZ,CAAY,CAAA,CAAG,CAC9D,IAAMa,EAAQT,CAAAA,CAAoBM,CAAG,CAAA,EAAK,CAAA,CAEtCG,EAAQF,CAAAA,EACVH,CAAAA,CAAuB,IAAA,CAAK,CAAA,EAAGG,CAAAA,CAAME,CAAK,CAAA,KAAA,EAAQH,CAAG,GAAG,CAAA,CAGtDE,CAAAA,GAAQ,MAAA,EAAaC,CAAAA,CAAQD,GAC/BH,CAAAA,CAAsB,IAAA,CAAK,CAAA,EAAGI,CAAAA,CAAQD,CAAG,CAAA,KAAA,EAAQF,CAAG,CAAA,CAAA,CAAG,EAE3D,CAEA,GAAIF,CAAAA,CAAuB,MAAA,EAAUC,EAAsB,MAAA,CAAQ,CACjE,IAAMK,CAAAA,CAAa,CAACC,CAAAA,CAAeC,CAAAA,GACjCA,CAAAA,CAAM,MAAA,CAAS,IAAKD,CAAK,CAAA;AAAA,EAAA,EAAUC,CAAAA,CAAM,IAAA,CAAK,IAAI,CAAC;AAAA,CAAA,CAAO,EAAA,CAEtDC,CAAAA,CACJ,CAAA,SAAA,EAAYlB,CAAa,CAAA;AAAA,EACtBe,CAAAA,CAAW,uBAAA,CAAyBN,CAAsB,CAAC,CAAA,EAC3DM,EAAW,yBAAA,CAA2BL,CAAqB,CAAC,CAAA,CAAA,CAEjE,MAAM,IAAId,EAAwBsB,CAAAA,CAAa,IAAA,EAAM,CACvD,CACF,CAoBO,SAASC,CAAAA,CAAmB,CAAE,QAAA,CAAApB,CAAAA,CAAU,aAAA,CAAAC,CAAc,EAAG,CACnCG,QAAAA,CAAS,OAAA,CAAQJ,CAAQ,CAAA,CAEjC,GAAA,CAAKQ,GAAU,CAChC,GAAIH,cAAAA,CAAeG,CAAK,CAAA,EAElBA,CAAAA,CAAM,KAAK,IAAA,EAAM,UAAA,CAAW,KAAK,CAAA,CACnC,MAAM,IAAI,KAAA,CACR,CAAA,EAAGP,CAAa,CAAA,mDAAA,CAClB,CAGN,CAAC,EACH","file":"react.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// @ts-nocheck\nimport { Children, type ReactNode, isValidElement } from 'react';\n\nclass ComponentStructureError extends Error {\n constructor(message) {\n super(message);\n this.name = 'ComponentStructureError';\n }\n}\n\ntype ContainsExactChildrenProps = {\n componentName: string;\n children:\n | ReactNode\n | ReactNode[]\n | ((\n // biome-ignore lint/suspicious/noExplicitAny: aria render props include a generic type\n values: any & {\n defaultChildren: ReactNode | undefined;\n },\n ) => ReactNode);\n restrictions: Record<string, { min: number; max?: number }>;\n};\n\n/**\n * Validates the intended composite component structure.\n *\n * @param children the children of the component\n * @param componentName the displayName of the component\n * @param restrictions the record of validation rules\n */\nexport function containsExactChildren({\n children,\n componentName,\n restrictions,\n}: ContainsExactChildrenProps) {\n const childrenComponents = Children.toArray(children);\n\n if (!childrenComponents.every(isValidElement)) {\n throw new ComponentStructureError(\n `<${componentName}> received invalid children.`,\n );\n }\n\n const accumulationResults = childrenComponents.reduce((acc, child) => {\n const name = child?.type?.displayName;\n if (name) {\n acc[name] = (acc[name] || 0) + 1;\n }\n return acc;\n }, {});\n\n const missingComponentsArray: string[] = [];\n const excessComponentsArray: string[] = [];\n\n for (const [key, { min, max }] of Object.entries(restrictions)) {\n const found = accumulationResults[key] ?? 0;\n\n if (found < min) {\n missingComponentsArray.push(`${min - found} of <${key}>`);\n }\n\n if (max !== undefined && found > max) {\n excessComponentsArray.push(`${found - max} of <${key}>`);\n }\n }\n\n if (missingComponentsArray.length || excessComponentsArray.length) {\n const formatList = (label: string, items: string[]) =>\n items.length ? `\\t${label}:\\n\\t\\t${items.join(', ')}\\n` : '';\n\n const errorMessage =\n `Invalid <${componentName}> structure \\n` +\n `${formatList('Missing the following', missingComponentsArray)}` +\n `${formatList('Excess of the following', excessComponentsArray)}`;\n\n throw new ComponentStructureError(errorMessage.trim());\n }\n}\n\n/**\n * I look for svgIcons exported from the @accelint/icons library\n * and ensure that they are wrapped in an Icon component in order\n * to get the classes and styles they need in context.\n *\n * Using isValidElement means we will filter out strings, boolean, etc.\n * that are valid nodes but not elements.\n *\n * @example\n * expectsIconWrapper({\n * children,\n * componentName: Button.displayName,\n * });\n *\n *\n * @param children the children of the calling component\n * @param componentName the displayName of the calling component\n */\nexport function expectsIconWrapper({ children, componentName }) {\n const childrenComponents = Children.toArray(children);\n\n childrenComponents.map((child) => {\n if (isValidElement(child)) {\n // icons should never be a direct child of the parent\n if (child.type.name?.startsWith('Svg')) {\n throw new Error(\n `${componentName} is using an icon without the required Icon wrapper`,\n );\n }\n }\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/lib/react.tsx"],"names":["ComponentStructureError","message","getChildren","children","childrenArray","Children","jsx","Fragment","index","child","containsExactChildren","componentName","restrictions","childrenComponents","isValidElement","accumulationResults","acc","name","missingComponentsArray","excessComponentsArray","component","min","max","found","formatList","label","items","errorMessage","expectsIconWrapper"],"mappings":"gHAoBA,MAAMA,CAAAA,SAAgC,KAAM,CAC1C,WAAA,CAAYC,CAAAA,CAAiB,CAC3B,KAAA,CAAMA,CAAO,CAAA,CACb,IAAA,CAAK,IAAA,CAAO,0BACd,CACF,CAYA,SAASC,CAAAA,CAAYC,CAAAA,CAAyB,CAC5C,MAAMC,CAAAA,CAAgBC,QAAAA,CAAS,OAAA,CAC7B,OAAOF,CAAAA,EAAa,UAAA,CAChBA,CAAAA,CAAS,CAAE,KAAA,CAAO,EAAC,CAAG,eAAA,CAAiBG,GAAAA,CAAAC,QAAAA,CAAA,EAAE,CAAI,CAAC,CAAA,CAC9CJ,CACN,CAAA,CACA,IAAIK,CAAAA,CAAQ,CAAA,CAEZ,KAAOA,CAAAA,CAAQJ,CAAAA,CAAc,MAAA,EAAQ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B,CAAC,CAAA,CAAA,CAEjE,MAAM,IAAInB,CAAAA,CAAwB2B,CAAAA,CAAa,IAAA,EAAM,CACvD,CACF,CAoBO,SAASC,CAAAA,CAAmB,CACjC,QAAA,CAAAzB,CAAAA,CACA,aAAA,CAAAQ,CACF,CAAA,CAAqD,CACnD,GAAI,OAAA,CAAQ,GAAA,CAAI,QAAA,GAAa,YAAA,CAC3B,OAGyBN,QAAAA,CAAS,OAAA,CAClCF,CACF,CAAA,CAEmB,GAAA,CAAKM,CAAAA,EAAU,CAChC,GAAIK,cAAAA,CAAeL,CAAK,CAAA,EAGlBA,CAAAA,CAAM,IAAA,EAAM,IAAA,EAAM,UAAA,CAAW,KAAK,CAAA,CACpC,MAAM,IAAI,KAAA,CACR,CAAA,EAAGE,CAAa,CAAA,mDAAA,CAClB,CAGN,CAAC,EACH","file":"react.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n Children,\n Fragment,\n type JSXElementConstructor,\n type ReactNode,\n isValidElement,\n} from 'react';\n\nclass ComponentStructureError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'ComponentStructureError';\n }\n}\n\ntype ChildrenTypes =\n | ReactNode\n | ReactNode[]\n | ((\n // biome-ignore lint/suspicious/noExplicitAny: aria render props include a generic type\n values: any & {\n defaultChildren: ReactNode | undefined;\n },\n ) => ReactNode);\n\nfunction getChildren(children: ChildrenTypes) {\n const childrenArray = Children.toArray(\n typeof children === 'function'\n ? children({ state: {}, defaultChildren: <></> })\n : children,\n );\n let index = 0;\n\n while (index < childrenArray.length) {\n const child = childrenArray[index];\n\n if (\n child != null &&\n typeof child === 'object' &&\n !(child instanceof Promise) &&\n !(Symbol.iterator in child) &&\n child.type === Fragment &&\n child.props != null &&\n typeof child.props === 'object' &&\n 'children' in child.props\n ) {\n childrenArray.splice(\n index,\n 1,\n ...Children.toArray(child.props.children as ReactNode | ReactNode[]),\n );\n } else {\n index++;\n }\n }\n\n return childrenArray;\n}\n\ntype ContainsExactChildrenProps = {\n componentName: string;\n children: ChildrenTypes;\n restrictions: [\n // biome-ignore lint/suspicious/noExplicitAny: allow all props\n string | JSXElementConstructor<any>,\n { min: number; max?: number },\n ][];\n};\n\n/**\n * Validates the intended composite component structure.\n *\n * @param children the children of the component\n * @param componentName the displayName of the component\n * @param restrictions the record of validation rules\n */\nexport function containsExactChildren({\n children,\n componentName,\n restrictions,\n}: ContainsExactChildrenProps) {\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n\n const childrenComponents = getChildren(children);\n\n if (!childrenComponents.every(isValidElement)) {\n throw new ComponentStructureError(\n `<${componentName}> received invalid children.`,\n );\n }\n\n const accumulationResults = childrenComponents.reduce(\n (acc: Record<string, number>, child) => {\n const name =\n // @ts-expect-error Accessing undocumented / untyped properties of React components\n child.type?.name ?? child.type?.displayName ?? child.type?.render?.name;\n\n if (name) {\n acc[name] = (acc[name] || 0) + 1;\n }\n return acc;\n },\n {},\n );\n\n const missingComponentsArray: string[] = [];\n const excessComponentsArray: string[] = [];\n\n for (const [component, { min, max }] of restrictions) {\n const name =\n typeof component === 'string'\n ? component\n : // @ts-expect-error Accessing undocumented / untyped properties of React components\n (component.name ?? component.displayName ?? component.render?.name);\n\n const found = accumulationResults[name] ?? 0;\n\n if (found < min) {\n missingComponentsArray.push(`${min - found} of <${name}>`);\n }\n\n if (max !== undefined && found > max) {\n excessComponentsArray.push(`${found - max} of <${name}>`);\n }\n }\n\n if (missingComponentsArray.length || excessComponentsArray.length) {\n const formatList = (label: string, items: string[]) =>\n items.length ? `\\t${label}:\\n\\t\\t${items.join(', ')}\\n` : '';\n\n const errorMessage =\n `Invalid <${componentName}> structure \\n` +\n `${formatList('Missing the following', missingComponentsArray)}` +\n `${formatList('Excess of the following', excessComponentsArray)}`;\n\n throw new ComponentStructureError(errorMessage.trim());\n }\n}\n\n/**\n * I look for svgIcons exported from the @accelint/icons library\n * and ensure that they are wrapped in an Icon component in order\n * to get the classes and styles they need in context.\n *\n * Using isValidElement means we will filter out strings, boolean, etc.\n * that are valid nodes but not elements.\n *\n * @example\n * expectsIconWrapper({\n * children,\n * componentName: Button.displayName,\n * });\n *\n *\n * @param children the children of the calling component\n * @param componentName the displayName of the calling component\n */\nexport function expectsIconWrapper({\n children,\n componentName,\n}: Omit<ContainsExactChildrenProps, 'restrictions'>) {\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n\n const childrenComponents = Children.toArray(\n children as ReactNode | ReactNode[],\n );\n\n childrenComponents.map((child) => {\n if (isValidElement(child)) {\n // icons should never be a direct child of the parent\n // @ts-expect-error Accessing undocumented / untyped properties of React components\n if (child.type?.name?.startsWith('Svg')) {\n throw new Error(\n `${componentName} is using an icon without the required Icon wrapper`,\n );\n }\n }\n });\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { ReactNode, CSSProperties } from 'react';
1
+ import { PropsWithChildren, ReactNode, CSSProperties } from 'react';
2
2
 
3
3
  /**
4
4
  * Re-export due to not being exported by library
@@ -25,5 +25,9 @@ type RenderProps<T extends object> = StyleRenderProps<T> & {
25
25
  /** The children of the component. A function may be provided to alter the children based on component state. */
26
26
  children?: RenderPropsChildren<T>;
27
27
  };
28
+ type SlottedValue<T> = {
29
+ slots?: Record<string | symbol, T>;
30
+ };
31
+ type ProviderProps<T> = PropsWithChildren<Omit<T, 'children' | 'slot'> & SlottedValue<T>>;
28
32
 
29
- export type { ChildrenRenderProps, ClassNameRenderProps, RenderProps, RenderPropsChildren, RenderPropsClassName, RenderPropsStyle, StylePropRenderProps, StyleRenderProps };
33
+ export type { ChildrenRenderProps, ClassNameRenderProps, ProviderProps, RenderProps, RenderPropsChildren, RenderPropsClassName, RenderPropsStyle, SlottedValue, StylePropRenderProps, StyleRenderProps };
package/dist/lib/utils.js CHANGED
@@ -1,2 +1,2 @@
1
- import {clsx}from'clsx';import {extendTailwindMerge,validators}from'tailwind-merge';import {createTV}from'tailwind-variants';var r=extendTailwindMerge({extend:{classGroups:{icon:[{icon:["",validators.isAny]}],fg:[{fg:["",validators.isAny]}]},conflictingClassGroups:{fg:["icon","text-color"]},theme:{color:["current","surface-default","surface-raised","surface-overlay","transparent-dark","transparent-light","interactive-default","interactive-hover-light","interactive-hover-dark","interactive-disabled","static-light","static-dark","interactive","interactive-hover","highlight-bold","highlight-hover","highlight-subtle","info-bold","info-hover","info-subtle","advisory-bold","advisory-hover","advisory-subtle","normal-bold","normal-hover","normal-subtle","serious-bold","serious-hover","serious-subtle","critical-bold","critical-hover","critical-subtle","default-light","default-dark","inverse-dark","inverse-light","disabled","highlight","info","advisory","normal","serious","critical","classification-missing","classification-unclass","classification-cui","classification-confidential","classification-secret","classification-top-secret"],font:["primary","display"],text:["header-xxl","header-xl","header-l","header-m","header-s","header-xs","body-xl","body-l","body-m","body-s","body-xs","body-xxs","button-xl","button-l","button-m","button-s","button-xs"],radius:["none","small","medium","large","round"],shadow:["elevation-default","elevation-overlay","elevation-raised"],spacing:["none","0","xxs","xs","s","m","l","xl","xxl","oversized"]}}});function d(...e){return r(clsx(e))}var c=createTV({twMergeConfig:{extend:{classGroups:{icon:[{icon:["",validators.isAny]}],fg:[{fg:["",validators.isAny]}]},conflictingClassGroups:{fg:["icon","text-color"]},theme:{color:["current","surface-default","surface-raised","surface-overlay","transparent-dark","transparent-light","interactive-default","interactive-hover-light","interactive-hover-dark","interactive-disabled","static-light","static-dark","interactive","interactive-hover","highlight-bold","highlight-hover","highlight-subtle","info-bold","info-hover","info-subtle","advisory-bold","advisory-hover","advisory-subtle","normal-bold","normal-hover","normal-subtle","serious-bold","serious-hover","serious-subtle","critical-bold","critical-hover","critical-subtle","default-light","default-dark","inverse-dark","inverse-light","disabled","highlight","info","advisory","normal","serious","critical","classification-missing","classification-unclass","classification-cui","classification-confidential","classification-secret","classification-top-secret"],font:["primary","display"],text:["header-xxl","header-xl","header-l","header-m","header-s","header-xs","body-xl","body-l","body-m","body-s","body-xs","body-xxs","button-xl","button-l","button-m","button-s","button-xs"],radius:["none","small","medium","large","round"],shadow:["elevation-default","elevation-overlay","elevation-raised"],spacing:["none","0","xxs","xs","s","m","l","xl","xxl","oversized"]}}}});function u(e){return !!e&&"slots"in e}export{d as cn,u as isSlottedContextValue,c as tv,r as twMerge};//# sourceMappingURL=utils.js.map
1
+ import {clsx}from'clsx';import {extendTailwindMerge,validators}from'tailwind-merge';import {createTV}from'tailwind-variants';const r=extendTailwindMerge({extend:{classGroups:{icon:[{icon:["",validators.isAny]}],fg:[{fg:["",validators.isAny]}]},conflictingClassGroups:{fg:["icon","text-color"]},theme:{color:["current","surface-default","surface-raised","surface-overlay","transparent-dark","transparent-light","interactive-default","interactive-hover-light","interactive-hover-dark","interactive-disabled","static-light","static-dark","interactive","interactive-hover","highlight-bold","highlight-hover","highlight-subtle","info-bold","info-hover","info-subtle","advisory-bold","advisory-hover","advisory-subtle","normal-bold","normal-hover","normal-subtle","serious-bold","serious-hover","serious-subtle","critical-bold","critical-hover","critical-subtle","default-light","default-dark","inverse-dark","inverse-light","disabled","highlight","info","advisory","normal","serious","critical","classification-missing","classification-unclass","classification-cui","classification-confidential","classification-secret","classification-top-secret"],font:["primary","display"],text:["header-xxl","header-xl","header-l","header-m","header-s","header-xs","body-xl","body-l","body-m","body-s","body-xs","body-xxs","button-xl","button-l","button-m","button-s","button-xs"],radius:["none","small","medium","large","round"],shadow:["elevation-default","elevation-overlay","elevation-raised"],spacing:["none","0","xxs","xs","s","m","l","xl","xxl","oversized"]}}});function d(...e){return r(clsx(e))}const c=createTV({twMergeConfig:{extend:{classGroups:{icon:[{icon:["",validators.isAny]}],fg:[{fg:["",validators.isAny]}]},conflictingClassGroups:{fg:["icon","text-color"]},theme:{color:["current","surface-default","surface-raised","surface-overlay","transparent-dark","transparent-light","interactive-default","interactive-hover-light","interactive-hover-dark","interactive-disabled","static-light","static-dark","interactive","interactive-hover","highlight-bold","highlight-hover","highlight-subtle","info-bold","info-hover","info-subtle","advisory-bold","advisory-hover","advisory-subtle","normal-bold","normal-hover","normal-subtle","serious-bold","serious-hover","serious-subtle","critical-bold","critical-hover","critical-subtle","default-light","default-dark","inverse-dark","inverse-light","disabled","highlight","info","advisory","normal","serious","critical","classification-missing","classification-unclass","classification-cui","classification-confidential","classification-secret","classification-top-secret"],font:["primary","display"],text:["header-xxl","header-xl","header-l","header-m","header-s","header-xs","body-xl","body-l","body-m","body-s","body-xs","body-xxs","button-xl","button-l","button-m","button-s","button-xs"],radius:["none","small","medium","large","round"],shadow:["elevation-default","elevation-overlay","elevation-raised"],spacing:["none","0","xxs","xs","s","m","l","xl","xxl","oversized"]}}}});function u(e){return !!e&&"slots"in e}export{d as cn,u as isSlottedContextValue,c as tv,r as twMerge};//# sourceMappingURL=utils.js.map
2
2
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/utils.ts"],"names":["twMerge","extendTailwindMerge","validators","cn","inputs","clsx","tv","createTV","isSlottedContextValue","context"],"mappings":"iIAoBaA,CAAAA,CAAUC,mBAAAA,CAA6C,CAClE,MAAA,CAAQ,CACN,WAAA,CAAa,CACX,KAAM,CAAC,CAAE,IAAA,CAAM,CAAC,GAAIC,UAAAA,CAAW,KAAK,CAAE,CAAC,EACvC,EAAA,CAAI,CAAC,CAAE,EAAA,CAAI,CAAC,GAAIA,UAAAA,CAAW,KAAK,CAAE,CAAC,CACrC,CAAA,CACA,sBAAA,CAAwB,CACtB,EAAA,CAAI,CAAC,MAAA,CAAQ,YAAY,CAC3B,CAAA,CACA,MAAO,CACL,KAAA,CAAO,CACL,SAAA,CACA,iBAAA,CACA,iBACA,iBAAA,CACA,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CAAC,CAACA,CAAAA,EAAW,UAAWA,CACjC","file":"utils.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { type ClassValue, clsx } from 'clsx';\nimport type { ForwardedRef } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport { extendTailwindMerge, validators } from 'tailwind-merge';\nimport { createTV } from 'tailwind-variants';\n\ntype AdditionalClassGroupIds = 'icon' | 'icon-size' | 'fg';\n\nexport const twMerge = extendTailwindMerge<AdditionalClassGroupIds>({\n extend: {\n classGroups: {\n icon: [{ icon: ['', validators.isAny] }],\n fg: [{ fg: ['', validators.isAny] }],\n },\n conflictingClassGroups: {\n fg: ['icon', 'text-color'],\n },\n theme: {\n color: [\n 'current',\n 'surface-default',\n 'surface-raised',\n 'surface-overlay',\n 'transparent-dark',\n 'transparent-light',\n 'interactive-default',\n 'interactive-hover-light',\n 'interactive-hover-dark',\n 'interactive-disabled',\n 'static-light',\n 'static-dark',\n 'interactive',\n 'interactive-hover',\n 'highlight-bold',\n 'highlight-hover',\n 'highlight-subtle',\n 'info-bold',\n 'info-hover',\n 'info-subtle',\n 'advisory-bold',\n 'advisory-hover',\n 'advisory-subtle',\n 'normal-bold',\n 'normal-hover',\n 'normal-subtle',\n 'serious-bold',\n 'serious-hover',\n 'serious-subtle',\n 'critical-bold',\n 'critical-hover',\n 'critical-subtle',\n 'default-light',\n 'default-dark',\n 'inverse-dark',\n 'inverse-light',\n 'disabled',\n 'highlight',\n 'info',\n 'advisory',\n 'normal',\n 'serious',\n 'critical',\n 'classification-missing',\n 'classification-unclass',\n 'classification-cui',\n 'classification-confidential',\n 'classification-secret',\n 'classification-top-secret',\n ],\n font: ['primary', 'display'],\n text: [\n 'header-xxl',\n 'header-xl',\n 'header-l',\n 'header-m',\n 'header-s',\n 'header-xs',\n 'body-xl',\n 'body-l',\n 'body-m',\n 'body-s',\n 'body-xs',\n 'body-xxs',\n 'button-xl',\n 'button-l',\n 'button-m',\n 'button-s',\n 'button-xs',\n ],\n radius: ['none', 'small', 'medium', 'large', 'round'],\n shadow: ['elevation-default', 'elevation-overlay', 'elevation-raised'],\n spacing: [\n 'none',\n '0',\n 'xxs',\n 'xs',\n 's',\n 'm',\n 'l',\n 'xl',\n 'xxl',\n 'oversized',\n ],\n },\n },\n});\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const tv = createTV({\n twMergeConfig: {\n extend: {\n classGroups: {\n icon: [{ icon: ['', validators.isAny] }],\n fg: [{ fg: ['', validators.isAny] }],\n },\n conflictingClassGroups: {\n fg: ['icon', 'text-color'],\n },\n theme: {\n color: [\n 'current',\n 'surface-default',\n 'surface-raised',\n 'surface-overlay',\n 'transparent-dark',\n 'transparent-light',\n 'interactive-default',\n 'interactive-hover-light',\n 'interactive-hover-dark',\n 'interactive-disabled',\n 'static-light',\n 'static-dark',\n 'interactive',\n 'interactive-hover',\n 'highlight-bold',\n 'highlight-hover',\n 'highlight-subtle',\n 'info-bold',\n 'info-hover',\n 'info-subtle',\n 'advisory-bold',\n 'advisory-hover',\n 'advisory-subtle',\n 'normal-bold',\n 'normal-hover',\n 'normal-subtle',\n 'serious-bold',\n 'serious-hover',\n 'serious-subtle',\n 'critical-bold',\n 'critical-hover',\n 'critical-subtle',\n 'default-light',\n 'default-dark',\n 'inverse-dark',\n 'inverse-light',\n 'disabled',\n 'highlight',\n 'info',\n 'advisory',\n 'normal',\n 'serious',\n 'critical',\n 'classification-missing',\n 'classification-unclass',\n 'classification-cui',\n 'classification-confidential',\n 'classification-secret',\n 'classification-top-secret',\n ],\n font: ['primary', 'display'],\n text: [\n 'header-xxl',\n 'header-xl',\n 'header-l',\n 'header-m',\n 'header-s',\n 'header-xs',\n 'body-xl',\n 'body-l',\n 'body-m',\n 'body-s',\n 'body-xs',\n 'body-xxs',\n 'button-xl',\n 'button-l',\n 'button-m',\n 'button-s',\n 'button-xs',\n ],\n radius: ['none', 'small', 'medium', 'large', 'round'],\n shadow: ['elevation-default', 'elevation-overlay', 'elevation-raised'],\n spacing: [\n 'none',\n '0',\n 'xxs',\n 'xs',\n 's',\n 'm',\n 'l',\n 'xl',\n 'xxl',\n 'oversized',\n ],\n },\n },\n },\n});\n\n// Types copied from RAC due to not being exported\ntype WithRef<T, E> = T & {\n ref?: ForwardedRef<E>;\n};\n\ninterface SlottedValue<T> {\n slots?: Record<string | symbol, T>;\n}\n\n/**\n * A helper to narrow the type of Context Value\n */\nexport function isSlottedContextValue<T, E>(\n context: ContextValue<T, E>,\n): context is SlottedValue<WithRef<T, E>> {\n return !!context && 'slots' in context;\n}\n"]}
1
+ {"version":3,"sources":["../../src/lib/utils.ts"],"names":["twMerge","extendTailwindMerge","validators","cn","inputs","clsx","tv","createTV","isSlottedContextValue","context"],"mappings":"mIAoBaA,CAAAA,CAAUC,mBAAAA,CAA6C,CAClE,MAAA,CAAQ,CACN,WAAA,CAAa,CACX,KAAM,CAAC,CAAE,IAAA,CAAM,CAAC,GAAIC,UAAAA,CAAW,KAAK,CAAE,CAAC,EACvC,EAAA,CAAI,CAAC,CAAE,EAAA,CAAI,CAAC,GAAIA,UAAAA,CAAW,KAAK,CAAE,CAAC,CACrC,CAAA,CACA,sBAAA,CAAwB,CACtB,EAAA,CAAI,CAAC,MAAA,CAAQ,YAAY,CAC3B,CAAA,CACA,MAAO,CACL,KAAA,CAAO,CACL,SAAA,CACA,iBAAA,CACA,iBACA,iBAAA,CACA,kBAAA,CACA,mBAAA,CACA,qBAAA,CACA,0BACA,wBAAA,CACA,sBAAA,CACA,cAAA,CACA,aAAA,C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BAAwB,CACtB,EAAA,CAAI,CAAC,MAAA,CAAQ,YAAY,CAC3B,CAAA,CACA,KAAA,CAAO,CACL,MAAO,CACL,SAAA,CACA,iBAAA,CACA,gBAAA,CACA,kBACA,kBAAA,CACA,mBAAA,CACA,sBACA,yBAAA,CACA,wBAAA,CACA,uBACA,cAAA,CACA,aAAA,CACA,aAAA,CACA,mBAAA,CACA,iBACA,iBAAA,CACA,kBAAA,CACA,WAAA,CACA,YAAA,CACA,cACA,eAAA,CACA,gBAAA,CACA,iBAAA,CACA,aAAA,CACA,eACA,eAAA,CACA,cAAA,CACA,gBACA,gBAAA,CACA,eAAA,CACA,iBACA,iBAAA,CACA,eAAA,CACA,cAAA,CACA,cAAA,CACA,gBACA,UAAA,CACA,WAAA,CACA,MAAA,CACA,UAAA,CACA,SACA,SAAA,CACA,UAAA,CACA,wBAAA,CACA,wBAAA,CACA,qBACA,6BAAA,CACA,uBAAA,CACA,2BACF,CAAA,CACA,IAAA,CAAM,CAAC,SAAA,CAAW,SAAS,CAAA,CAC3B,IAAA,CAAM,CACJ,YAAA,CACA,WAAA,CACA,UAAA,CACA,UAAA,CACA,WACA,WAAA,CACA,SAAA,CACA,QAAA,CACA,QAAA,CACA,SACA,SAAA,CACA,UAAA,CACA,YACA,UAAA,CACA,UAAA,CACA,WACA,WACF,CAAA,CACA,MAAA,CAAQ,CAAC,OAAQ,OAAA,CAAS,QAAA,CAAU,OAAA,CAAS,OAAO,EACpD,MAAA,CAAQ,CAAC,mBAAA,CAAqB,mBAAA,CAAqB,kBAAkB,CAAA,CACrE,OAAA,CAAS,CACP,MAAA,CACA,GAAA,CACA,MACA,IAAA,CACA,GAAA,CACA,GAAA,CACA,GAAA,CACA,KACA,KAAA,CACA,WACF,CACF,CACF,CACF,CACF,CAAC,EAcM,SAASM,CAAAA,CACdC,EACwC,CACxC,OAAO,CAAC,CAACA,CAAAA,EAAW,UAAWA,CACjC","file":"utils.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { type ClassValue, clsx } from 'clsx';\nimport type { ForwardedRef } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport { extendTailwindMerge, validators } from 'tailwind-merge';\nimport { createTV } from 'tailwind-variants';\n\ntype AdditionalClassGroupIds = 'icon' | 'icon-size' | 'fg';\n\nexport const twMerge = extendTailwindMerge<AdditionalClassGroupIds>({\n extend: {\n classGroups: {\n icon: [{ icon: ['', validators.isAny] }],\n fg: [{ fg: ['', validators.isAny] }],\n },\n conflictingClassGroups: {\n fg: ['icon', 'text-color'],\n },\n theme: {\n color: [\n 'current',\n 'surface-default',\n 'surface-raised',\n 'surface-overlay',\n 'transparent-dark',\n 'transparent-light',\n 'interactive-default',\n 'interactive-hover-light',\n 'interactive-hover-dark',\n 'interactive-disabled',\n 'static-light',\n 'static-dark',\n 'interactive',\n 'interactive-hover',\n 'highlight-bold',\n 'highlight-hover',\n 'highlight-subtle',\n 'info-bold',\n 'info-hover',\n 'info-subtle',\n 'advisory-bold',\n 'advisory-hover',\n 'advisory-subtle',\n 'normal-bold',\n 'normal-hover',\n 'normal-subtle',\n 'serious-bold',\n 'serious-hover',\n 'serious-subtle',\n 'critical-bold',\n 'critical-hover',\n 'critical-subtle',\n 'default-light',\n 'default-dark',\n 'inverse-dark',\n 'inverse-light',\n 'disabled',\n 'highlight',\n 'info',\n 'advisory',\n 'normal',\n 'serious',\n 'critical',\n 'classification-missing',\n 'classification-unclass',\n 'classification-cui',\n 'classification-confidential',\n 'classification-secret',\n 'classification-top-secret',\n ],\n font: ['primary', 'display'],\n text: [\n 'header-xxl',\n 'header-xl',\n 'header-l',\n 'header-m',\n 'header-s',\n 'header-xs',\n 'body-xl',\n 'body-l',\n 'body-m',\n 'body-s',\n 'body-xs',\n 'body-xxs',\n 'button-xl',\n 'button-l',\n 'button-m',\n 'button-s',\n 'button-xs',\n ],\n radius: ['none', 'small', 'medium', 'large', 'round'],\n shadow: ['elevation-default', 'elevation-overlay', 'elevation-raised'],\n spacing: [\n 'none',\n '0',\n 'xxs',\n 'xs',\n 's',\n 'm',\n 'l',\n 'xl',\n 'xxl',\n 'oversized',\n ],\n },\n },\n});\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const tv = createTV({\n twMergeConfig: {\n extend: {\n classGroups: {\n icon: [{ icon: ['', validators.isAny] }],\n fg: [{ fg: ['', validators.isAny] }],\n },\n conflictingClassGroups: {\n fg: ['icon', 'text-color'],\n },\n theme: {\n color: [\n 'current',\n 'surface-default',\n 'surface-raised',\n 'surface-overlay',\n 'transparent-dark',\n 'transparent-light',\n 'interactive-default',\n 'interactive-hover-light',\n 'interactive-hover-dark',\n 'interactive-disabled',\n 'static-light',\n 'static-dark',\n 'interactive',\n 'interactive-hover',\n 'highlight-bold',\n 'highlight-hover',\n 'highlight-subtle',\n 'info-bold',\n 'info-hover',\n 'info-subtle',\n 'advisory-bold',\n 'advisory-hover',\n 'advisory-subtle',\n 'normal-bold',\n 'normal-hover',\n 'normal-subtle',\n 'serious-bold',\n 'serious-hover',\n 'serious-subtle',\n 'critical-bold',\n 'critical-hover',\n 'critical-subtle',\n 'default-light',\n 'default-dark',\n 'inverse-dark',\n 'inverse-light',\n 'disabled',\n 'highlight',\n 'info',\n 'advisory',\n 'normal',\n 'serious',\n 'critical',\n 'classification-missing',\n 'classification-unclass',\n 'classification-cui',\n 'classification-confidential',\n 'classification-secret',\n 'classification-top-secret',\n ],\n font: ['primary', 'display'],\n text: [\n 'header-xxl',\n 'header-xl',\n 'header-l',\n 'header-m',\n 'header-s',\n 'header-xs',\n 'body-xl',\n 'body-l',\n 'body-m',\n 'body-s',\n 'body-xs',\n 'body-xxs',\n 'button-xl',\n 'button-l',\n 'button-m',\n 'button-s',\n 'button-xs',\n ],\n radius: ['none', 'small', 'medium', 'large', 'round'],\n shadow: ['elevation-default', 'elevation-overlay', 'elevation-raised'],\n spacing: [\n 'none',\n '0',\n 'xxs',\n 'xs',\n 's',\n 'm',\n 'l',\n 'xl',\n 'xxl',\n 'oversized',\n ],\n },\n },\n },\n});\n\n// Types copied from RAC due to not being exported\ntype WithRef<T, E> = T & {\n ref?: ForwardedRef<E>;\n};\n\ninterface SlottedValue<T> {\n slots?: Record<string | symbol, T>;\n}\n\n/**\n * A helper to narrow the type of Context Value\n */\nexport function isSlottedContextValue<T, E>(\n context: ContextValue<T, E>,\n): context is SlottedValue<WithRef<T, E>> {\n return !!context && 'slots' in context;\n}\n"]}