react-native-terra-ui 0.1.0 → 0.2.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 (304) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/lib/module/components/avatar/Avatar.js +118 -35
  3. package/lib/module/components/avatar/Avatar.js.map +1 -1
  4. package/lib/module/components/avatar/index.js.map +1 -1
  5. package/lib/module/components/box/Box.js +15 -2
  6. package/lib/module/components/box/Box.js.map +1 -1
  7. package/lib/module/components/box/index.js.map +1 -1
  8. package/lib/module/components/box/utils.js +5 -2
  9. package/lib/module/components/box/utils.js.map +1 -1
  10. package/lib/module/components/button/Button.js +7 -14
  11. package/lib/module/components/button/Button.js.map +1 -1
  12. package/lib/module/components/button/index.js.map +1 -1
  13. package/lib/module/components/chip/Chip.js +372 -0
  14. package/lib/module/components/chip/Chip.js.map +1 -0
  15. package/lib/module/components/chip/index.js +4 -0
  16. package/lib/module/components/chip/index.js.map +1 -0
  17. package/lib/module/components/chip/types.js +2 -0
  18. package/lib/module/components/chip/types.js.map +1 -0
  19. package/lib/module/components/chip/utils.js +36 -0
  20. package/lib/module/components/chip/utils.js.map +1 -0
  21. package/lib/module/components/empty-state/EmptyState.js +200 -0
  22. package/lib/module/components/empty-state/EmptyState.js.map +1 -0
  23. package/lib/module/components/empty-state/index.js +4 -0
  24. package/lib/module/components/empty-state/index.js.map +1 -0
  25. package/lib/module/components/empty-state/types.js +2 -0
  26. package/lib/module/components/empty-state/types.js.map +1 -0
  27. package/lib/module/components/header/Header.js.map +1 -1
  28. package/lib/module/components/header/header-buttons.js +31 -36
  29. package/lib/module/components/header/header-buttons.js.map +1 -1
  30. package/lib/module/components/header/index.js +1 -1
  31. package/lib/module/components/header/index.js.map +1 -1
  32. package/lib/module/components/header/parts/HeaderGradientOverlay.js +38 -0
  33. package/lib/module/components/header/parts/HeaderGradientOverlay.js.map +1 -0
  34. package/lib/module/components/header/variants/LargeTitleHeader/index.js +71 -101
  35. package/lib/module/components/header/variants/LargeTitleHeader/index.js.map +1 -1
  36. package/lib/module/components/header/variants/TitleHeader/index.js +34 -65
  37. package/lib/module/components/header/variants/TitleHeader/index.js.map +1 -1
  38. package/lib/module/components/icon/Icon.js +21 -9
  39. package/lib/module/components/icon/Icon.js.map +1 -1
  40. package/lib/module/components/icon/index.js.map +1 -1
  41. package/lib/module/components/image/Image.js +54 -0
  42. package/lib/module/components/image/Image.js.map +1 -0
  43. package/lib/module/components/image/index.js +4 -0
  44. package/lib/module/components/image/index.js.map +1 -0
  45. package/lib/module/components/image/types.js +4 -0
  46. package/lib/module/components/image/types.js.map +1 -0
  47. package/lib/module/components/index.js +4 -0
  48. package/lib/module/components/index.js.map +1 -1
  49. package/lib/module/components/page-indicator/PageIndicator.js.map +1 -1
  50. package/lib/module/components/page-indicator/PageIndicatorRoot.js.map +1 -1
  51. package/lib/module/components/page-indicator/hooks/use-page-indicator-colors.js +1 -1
  52. package/lib/module/components/page-indicator/hooks/use-page-indicator-colors.js.map +1 -1
  53. package/lib/module/components/page-indicator/hooks/use-page-indicator-core.js.map +1 -1
  54. package/lib/module/components/page-indicator/hooks/use-page-indicator-progress.js.map +1 -1
  55. package/lib/module/components/page-indicator/index.js.map +1 -1
  56. package/lib/module/components/page-indicator/variants/DotIndicator/InactiveDot.js.map +1 -1
  57. package/lib/module/components/page-indicator/variants/DotIndicator/LoadingOrbit.js.map +1 -1
  58. package/lib/module/components/page-indicator/variants/DotIndicator/TravelingPill.js.map +1 -1
  59. package/lib/module/components/page-indicator/variants/DotIndicator/index.js.map +1 -1
  60. package/lib/module/components/page-indicator/variants/PillIndicator/PillIndicatorDot.js.map +1 -1
  61. package/lib/module/components/page-indicator/variants/PillIndicator/index.js.map +1 -1
  62. package/lib/module/components/portal/Portal.js +42 -0
  63. package/lib/module/components/portal/Portal.js.map +1 -0
  64. package/lib/module/components/portal/PortalContext.js +1 -16
  65. package/lib/module/components/portal/PortalContext.js.map +1 -1
  66. package/lib/module/components/portal/PortalHost.js +16 -14
  67. package/lib/module/components/portal/PortalHost.js.map +1 -1
  68. package/lib/module/components/portal/PortalProvider.js +51 -19
  69. package/lib/module/components/portal/PortalProvider.js.map +1 -1
  70. package/lib/module/components/portal/index.js +1 -1
  71. package/lib/module/components/portal/index.js.map +1 -1
  72. package/lib/module/components/screen/Screen.js +26 -29
  73. package/lib/module/components/screen/Screen.js.map +1 -1
  74. package/lib/module/components/screen/ScreenContext.js +7 -5
  75. package/lib/module/components/screen/ScreenContext.js.map +1 -1
  76. package/lib/module/components/screen/ScreenFlashList.js +144 -0
  77. package/lib/module/components/screen/ScreenFlashList.js.map +1 -0
  78. package/lib/module/components/screen/ScreenFlatList.js +88 -27
  79. package/lib/module/components/screen/ScreenFlatList.js.map +1 -1
  80. package/lib/module/components/screen/ScreenScrollView.js +101 -34
  81. package/lib/module/components/screen/ScreenScrollView.js.map +1 -1
  82. package/lib/module/components/screen/index.js +1 -0
  83. package/lib/module/components/screen/index.js.map +1 -1
  84. package/lib/module/components/screen/parts/BottomSafeArea.js +62 -0
  85. package/lib/module/components/screen/parts/BottomSafeArea.js.map +1 -0
  86. package/lib/module/components/screen/parts/ScreenPlaceholder.js +50 -0
  87. package/lib/module/components/screen/parts/ScreenPlaceholder.js.map +1 -0
  88. package/lib/module/components/screen/types.js +4 -0
  89. package/lib/module/components/screen/types.js.map +1 -0
  90. package/lib/module/components/screen/utils.js +12 -9
  91. package/lib/module/components/screen/utils.js.map +1 -1
  92. package/lib/module/components/slot/Slot.js.map +1 -1
  93. package/lib/module/components/slot/index.js.map +1 -1
  94. package/lib/module/components/spinner/Spinner.js +1 -1
  95. package/lib/module/components/spinner/Spinner.js.map +1 -1
  96. package/lib/module/components/spinner/index.js.map +1 -1
  97. package/lib/module/components/surface/Surface.js +16 -9
  98. package/lib/module/components/surface/Surface.js.map +1 -1
  99. package/lib/module/components/surface/index.js.map +1 -1
  100. package/lib/module/components/text/Text.js +25 -7
  101. package/lib/module/components/text/Text.js.map +1 -1
  102. package/lib/module/components/text/index.js.map +1 -1
  103. package/lib/module/components/toast/Toast.js +8 -8
  104. package/lib/module/components/toast/Toast.js.map +1 -1
  105. package/lib/module/components/toast/ToastProvider.js.map +1 -1
  106. package/lib/module/components/toast/index.js.map +1 -1
  107. package/lib/module/components/toolbar/Toolbar.js +268 -0
  108. package/lib/module/components/toolbar/Toolbar.js.map +1 -0
  109. package/lib/module/components/toolbar/index.js +4 -0
  110. package/lib/module/components/toolbar/index.js.map +1 -0
  111. package/lib/module/context/ThemeProvider.js +5 -2
  112. package/lib/module/context/ThemeProvider.js.map +1 -1
  113. package/lib/module/context/index.js.map +1 -1
  114. package/lib/module/index.js.map +1 -1
  115. package/lib/module/{components/icon/utils.js → theme/defaults/icons.js} +1 -1
  116. package/lib/module/theme/defaults/icons.js.map +1 -0
  117. package/lib/module/theme/defaults/image.js +30 -0
  118. package/lib/module/theme/defaults/image.js.map +1 -0
  119. package/lib/module/theme/index.js +6 -6
  120. package/lib/module/theme/index.js.map +1 -1
  121. package/lib/module/theme/{configure.js → registry.js} +23 -30
  122. package/lib/module/theme/registry.js.map +1 -0
  123. package/lib/module/theme/runtime.js +1 -1
  124. package/lib/module/theme/runtime.js.map +1 -1
  125. package/lib/module/theme/theme.js +92 -11
  126. package/lib/module/theme/theme.js.map +1 -1
  127. package/lib/module/theme/tokens/dark.js +59 -68
  128. package/lib/module/theme/tokens/dark.js.map +1 -1
  129. package/lib/module/theme/tokens/light.js +49 -67
  130. package/lib/module/theme/tokens/light.js.map +1 -1
  131. package/lib/module/theme/tokens/primitives.js +241 -20
  132. package/lib/module/theme/tokens/primitives.js.map +1 -1
  133. package/lib/module/utils/accent-utils.js +4 -4
  134. package/lib/module/utils/accent-utils.js.map +1 -1
  135. package/lib/typescript/src/components/avatar/Avatar.d.ts.map +1 -1
  136. package/lib/typescript/src/components/avatar/types.d.ts +5 -5
  137. package/lib/typescript/src/components/avatar/types.d.ts.map +1 -1
  138. package/lib/typescript/src/components/box/Box.d.ts.map +1 -1
  139. package/lib/typescript/src/components/box/utils.d.ts +6 -1
  140. package/lib/typescript/src/components/box/utils.d.ts.map +1 -1
  141. package/lib/typescript/src/components/button/Button.d.ts +2 -2
  142. package/lib/typescript/src/components/button/Button.d.ts.map +1 -1
  143. package/lib/typescript/src/components/chip/Chip.d.ts +24 -0
  144. package/lib/typescript/src/components/chip/Chip.d.ts.map +1 -0
  145. package/lib/typescript/src/components/chip/index.d.ts +4 -0
  146. package/lib/typescript/src/components/chip/index.d.ts.map +1 -0
  147. package/lib/typescript/src/components/chip/types.d.ts +8 -0
  148. package/lib/typescript/src/components/chip/types.d.ts.map +1 -0
  149. package/lib/typescript/src/components/chip/utils.d.ts +8 -0
  150. package/lib/typescript/src/components/chip/utils.d.ts.map +1 -0
  151. package/lib/typescript/src/components/empty-state/EmptyState.d.ts +45 -0
  152. package/lib/typescript/src/components/empty-state/EmptyState.d.ts.map +1 -0
  153. package/lib/typescript/src/components/empty-state/index.d.ts +4 -0
  154. package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -0
  155. package/lib/typescript/src/components/empty-state/types.d.ts +6 -0
  156. package/lib/typescript/src/components/empty-state/types.d.ts.map +1 -0
  157. package/lib/typescript/src/components/header/header-buttons.d.ts +27 -0
  158. package/lib/typescript/src/components/header/header-buttons.d.ts.map +1 -1
  159. package/lib/typescript/src/components/header/index.d.ts +1 -1
  160. package/lib/typescript/src/components/header/index.d.ts.map +1 -1
  161. package/lib/typescript/src/components/header/parts/HeaderGradientOverlay.d.ts +7 -0
  162. package/lib/typescript/src/components/header/parts/HeaderGradientOverlay.d.ts.map +1 -0
  163. package/lib/typescript/src/components/header/variants/LargeTitleHeader/index.d.ts +1 -1
  164. package/lib/typescript/src/components/header/variants/LargeTitleHeader/index.d.ts.map +1 -1
  165. package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts +19 -8
  166. package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts.map +1 -1
  167. package/lib/typescript/src/components/icon/Icon.d.ts +1 -1
  168. package/lib/typescript/src/components/icon/Icon.d.ts.map +1 -1
  169. package/lib/typescript/src/components/image/Image.d.ts +16 -0
  170. package/lib/typescript/src/components/image/Image.d.ts.map +1 -0
  171. package/lib/typescript/src/components/image/index.d.ts +3 -0
  172. package/lib/typescript/src/components/image/index.d.ts.map +1 -0
  173. package/lib/typescript/src/components/image/types.d.ts +7 -0
  174. package/lib/typescript/src/components/image/types.d.ts.map +1 -0
  175. package/lib/typescript/src/components/index.d.ts +4 -0
  176. package/lib/typescript/src/components/index.d.ts.map +1 -1
  177. package/lib/typescript/src/components/page-indicator/PageIndicator.d.ts +1 -1
  178. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-colors.d.ts +1 -1
  179. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/index.d.ts +1 -1
  180. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/index.d.ts +1 -1
  181. package/lib/typescript/src/components/portal/Portal.d.ts +26 -0
  182. package/lib/typescript/src/components/portal/Portal.d.ts.map +1 -0
  183. package/lib/typescript/src/components/portal/PortalContext.d.ts +11 -14
  184. package/lib/typescript/src/components/portal/PortalContext.d.ts.map +1 -1
  185. package/lib/typescript/src/components/portal/PortalHost.d.ts +9 -4
  186. package/lib/typescript/src/components/portal/PortalHost.d.ts.map +1 -1
  187. package/lib/typescript/src/components/portal/PortalProvider.d.ts +3 -3
  188. package/lib/typescript/src/components/portal/PortalProvider.d.ts.map +1 -1
  189. package/lib/typescript/src/components/portal/index.d.ts +4 -2
  190. package/lib/typescript/src/components/portal/index.d.ts.map +1 -1
  191. package/lib/typescript/src/components/screen/Screen.d.ts +19 -14
  192. package/lib/typescript/src/components/screen/Screen.d.ts.map +1 -1
  193. package/lib/typescript/src/components/screen/ScreenContext.d.ts +12 -9
  194. package/lib/typescript/src/components/screen/ScreenContext.d.ts.map +1 -1
  195. package/lib/typescript/src/components/screen/ScreenFlashList.d.ts +43 -0
  196. package/lib/typescript/src/components/screen/ScreenFlashList.d.ts.map +1 -0
  197. package/lib/typescript/src/components/screen/ScreenFlatList.d.ts +17 -7
  198. package/lib/typescript/src/components/screen/ScreenFlatList.d.ts.map +1 -1
  199. package/lib/typescript/src/components/screen/ScreenScrollView.d.ts +51 -16
  200. package/lib/typescript/src/components/screen/ScreenScrollView.d.ts.map +1 -1
  201. package/lib/typescript/src/components/screen/index.d.ts +3 -0
  202. package/lib/typescript/src/components/screen/index.d.ts.map +1 -1
  203. package/lib/typescript/src/components/screen/parts/BottomSafeArea.d.ts +30 -0
  204. package/lib/typescript/src/components/screen/parts/BottomSafeArea.d.ts.map +1 -0
  205. package/lib/typescript/src/components/screen/parts/ScreenPlaceholder.d.ts +22 -0
  206. package/lib/typescript/src/components/screen/parts/ScreenPlaceholder.d.ts.map +1 -0
  207. package/lib/typescript/src/components/screen/types.d.ts +42 -0
  208. package/lib/typescript/src/components/screen/types.d.ts.map +1 -0
  209. package/lib/typescript/src/components/screen/utils.d.ts +9 -9
  210. package/lib/typescript/src/components/screen/utils.d.ts.map +1 -1
  211. package/lib/typescript/src/components/spinner/Spinner.d.ts +1 -1
  212. package/lib/typescript/src/components/surface/Surface.d.ts +8 -1
  213. package/lib/typescript/src/components/surface/Surface.d.ts.map +1 -1
  214. package/lib/typescript/src/components/text/Text.d.ts +1 -1
  215. package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
  216. package/lib/typescript/src/components/toast/Toast.d.ts +1 -1
  217. package/lib/typescript/src/components/toolbar/Toolbar.d.ts +115 -0
  218. package/lib/typescript/src/components/toolbar/Toolbar.d.ts.map +1 -0
  219. package/lib/typescript/src/components/toolbar/index.d.ts +3 -0
  220. package/lib/typescript/src/components/toolbar/index.d.ts.map +1 -0
  221. package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -1
  222. package/lib/typescript/src/{components/icon/utils.d.ts → theme/defaults/icons.d.ts} +2 -2
  223. package/lib/typescript/src/theme/defaults/icons.d.ts.map +1 -0
  224. package/lib/typescript/src/theme/defaults/image.d.ts +4 -0
  225. package/lib/typescript/src/theme/defaults/image.d.ts.map +1 -0
  226. package/lib/typescript/src/theme/index.d.ts +7 -7
  227. package/lib/typescript/src/theme/index.d.ts.map +1 -1
  228. package/lib/typescript/src/theme/{configure.d.ts → registry.d.ts} +1 -1
  229. package/lib/typescript/src/theme/registry.d.ts.map +1 -0
  230. package/lib/typescript/src/theme/theme.d.ts +21 -1
  231. package/lib/typescript/src/theme/theme.d.ts.map +1 -1
  232. package/lib/typescript/src/theme/tokens/dark.d.ts +41 -64
  233. package/lib/typescript/src/theme/tokens/dark.d.ts.map +1 -1
  234. package/lib/typescript/src/theme/tokens/light.d.ts +44 -65
  235. package/lib/typescript/src/theme/tokens/light.d.ts.map +1 -1
  236. package/lib/typescript/src/theme/tokens/primitives.d.ts +228 -17
  237. package/lib/typescript/src/theme/tokens/primitives.d.ts.map +1 -1
  238. package/lib/typescript/src/theme/types.d.ts +66 -36
  239. package/lib/typescript/src/theme/types.d.ts.map +1 -1
  240. package/lib/typescript/src/utils/accent-utils.d.ts +1 -1
  241. package/lib/typescript/src/utils/resolve-theme-color.d.ts +1 -1
  242. package/lib/typescript/src/utils/typography.d.ts +1 -1
  243. package/package.json +28 -12
  244. package/skills/terra-ui/SKILL.md +193 -0
  245. package/skills/terra-ui/references/recipes.md +198 -0
  246. package/skills/terra-ui/references/troubleshooting.md +112 -0
  247. package/src/components/avatar/Avatar.tsx +128 -38
  248. package/src/components/avatar/types.ts +5 -5
  249. package/src/components/box/Box.tsx +13 -1
  250. package/src/components/box/utils.ts +10 -0
  251. package/src/components/button/Button.tsx +7 -15
  252. package/src/components/chip/Chip.tsx +444 -0
  253. package/src/components/chip/index.ts +3 -0
  254. package/src/components/chip/types.ts +15 -0
  255. package/src/components/chip/utils.ts +34 -0
  256. package/src/components/empty-state/EmptyState.tsx +209 -0
  257. package/src/components/empty-state/index.ts +3 -0
  258. package/src/components/empty-state/types.ts +5 -0
  259. package/src/components/header/header-buttons.tsx +33 -45
  260. package/src/components/header/index.ts +2 -0
  261. package/src/components/header/parts/HeaderGradientOverlay.tsx +29 -0
  262. package/src/components/header/variants/LargeTitleHeader/index.tsx +68 -102
  263. package/src/components/header/variants/TitleHeader/index.tsx +47 -56
  264. package/src/components/icon/Icon.tsx +20 -15
  265. package/src/components/image/Image.tsx +48 -0
  266. package/src/components/image/index.ts +2 -0
  267. package/src/components/image/types.ts +7 -0
  268. package/src/components/index.ts +4 -0
  269. package/src/components/portal/Portal.tsx +55 -0
  270. package/src/components/portal/PortalContext.tsx +14 -22
  271. package/src/components/portal/PortalHost.tsx +17 -10
  272. package/src/components/portal/PortalProvider.tsx +58 -21
  273. package/src/components/portal/index.ts +4 -2
  274. package/src/components/screen/Screen.tsx +45 -59
  275. package/src/components/screen/ScreenContext.tsx +19 -12
  276. package/src/components/screen/ScreenFlashList.tsx +196 -0
  277. package/src/components/screen/ScreenFlatList.tsx +100 -39
  278. package/src/components/screen/ScreenScrollView.tsx +114 -53
  279. package/src/components/screen/index.ts +3 -0
  280. package/src/components/screen/parts/BottomSafeArea.tsx +60 -0
  281. package/src/components/screen/parts/ScreenPlaceholder.tsx +55 -0
  282. package/src/components/screen/types.ts +43 -0
  283. package/src/components/screen/utils.ts +29 -15
  284. package/src/components/surface/Surface.tsx +17 -20
  285. package/src/components/text/Text.tsx +23 -5
  286. package/src/components/toast/Toast.tsx +8 -8
  287. package/src/components/toolbar/Toolbar.tsx +353 -0
  288. package/src/components/toolbar/index.ts +6 -0
  289. package/src/context/ThemeProvider.tsx +5 -4
  290. package/src/{components/icon/utils.tsx → theme/defaults/icons.tsx} +1 -1
  291. package/src/theme/defaults/image.tsx +34 -0
  292. package/src/theme/index.ts +1 -1
  293. package/src/theme/{configure.ts → registry.ts} +19 -34
  294. package/src/theme/runtime.ts +1 -1
  295. package/src/theme/theme.ts +127 -13
  296. package/src/theme/tokens/dark.ts +60 -69
  297. package/src/theme/tokens/light.ts +50 -68
  298. package/src/theme/tokens/primitives.ts +248 -20
  299. package/src/theme/types.ts +67 -35
  300. package/src/utils/accent-utils.ts +4 -4
  301. package/lib/module/components/icon/utils.js.map +0 -1
  302. package/lib/module/theme/configure.js.map +0 -1
  303. package/lib/typescript/src/components/icon/utils.d.ts.map +0 -1
  304. package/lib/typescript/src/theme/configure.d.ts.map +0 -1
@@ -0,0 +1,372 @@
1
+ "use strict";
2
+
3
+ import { Children, createContext, forwardRef, useContext } from 'react';
4
+ import { View } from 'react-native';
5
+ import { StyleSheet, withUnistyles } from 'react-native-unistyles';
6
+ import { Icon } from "../icon/index.js";
7
+ import { Text } from "../text/index.js";
8
+ import { getCustomColorColors } from "./utils.js";
9
+
10
+ // ─── Context (lets Chip.Icon read the resolved foreground + size) ─────────────
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ const ChipContext = /*#__PURE__*/createContext({
13
+ color: 'text.default',
14
+ size: 'md'
15
+ });
16
+
17
+ // ─── Colors ─────────────────────────────────────────────────────────────────
18
+ //
19
+ // The chip's own paint (background + border) is a style, so named schemes
20
+ // (primary/secondary/success/warning/danger) are resolved declaratively via
21
+ // unistyles `compoundVariants` on `styles.base` — one entry per (color, variant)
22
+ // pair, straight from the spec's token table.
23
+ //
24
+ // The foreground is *not* a style on this View — it is inherited by the label
25
+ // and icon. It therefore lives here as a token table and is passed down
26
+ // unresolved, so `Text`/`Icon` resolve it against the live theme on every
27
+ // change.
28
+ //
29
+ // A custom color literal (hex/rgb/hsl) isn't a bounded set of options, so it
30
+ // can't be a compound variant condition — see `getCustomColorColors` in
31
+ // `utils.ts` for how it's derived instead.
32
+
33
+ const SCHEME_NAMES = new Set(['primary', 'secondary', 'success', 'warning', 'danger']);
34
+ /** Foreground token per (scheme, variant) — mirrors the spec's token table. */
35
+ const FG_TOKEN = {
36
+ primary: {
37
+ solid: 'action.fg.primary',
38
+ soft: 'action.fg.primary.subtle',
39
+ outline: 'text.accent'
40
+ },
41
+ secondary: {
42
+ solid: 'action.fg.secondary',
43
+ soft: 'action.fg.secondary.subtle',
44
+ outline: 'text.default'
45
+ },
46
+ success: {
47
+ solid: 'status.success.fg',
48
+ soft: 'status.success.fg.subtle',
49
+ outline: 'status.success.fg.subtle'
50
+ },
51
+ warning: {
52
+ solid: 'status.warning.fg',
53
+ soft: 'status.warning.fg.subtle',
54
+ outline: 'status.warning.fg.subtle'
55
+ },
56
+ danger: {
57
+ solid: 'status.danger.fg',
58
+ soft: 'status.danger.fg.subtle',
59
+ outline: 'status.danger.fg.subtle'
60
+ }
61
+ };
62
+
63
+ /** The label/icon color as a token, so children resolve it per theme. */
64
+ function resolveForeground(color, variant, customColors) {
65
+ if (customColors) return customColors.fg;
66
+ if (variant === 'ghost') return 'text.default';
67
+ return FG_TOKEN[color][variant];
68
+ }
69
+
70
+ // ─── Label sub-component ───────────────────────────────────────────────────────
71
+
72
+ const LABEL_VARIANT = {
73
+ sm: 'label-sm',
74
+ md: 'label-md',
75
+ lg: 'label-lg'
76
+ };
77
+ const ChipLabel = ({
78
+ children
79
+ }) => {
80
+ const {
81
+ color,
82
+ size
83
+ } = useContext(ChipContext);
84
+ return /*#__PURE__*/_jsx(Text, {
85
+ variant: LABEL_VARIANT[size],
86
+ weight: "semibold",
87
+ color: color,
88
+ children: children
89
+ });
90
+ };
91
+
92
+ // ─── Icon sub-component ────────────────────────────────────────────────────────
93
+
94
+ const ICON_SIZE = {
95
+ sm: 12,
96
+ md: 14,
97
+ lg: 16
98
+ };
99
+ const ChipIcon = ({
100
+ name,
101
+ size: sizeProp,
102
+ color,
103
+ strokeWidth,
104
+ style,
105
+ ...rest
106
+ }) => {
107
+ const {
108
+ color: contextColor,
109
+ size
110
+ } = useContext(ChipContext);
111
+ return /*#__PURE__*/_jsx(Icon, {
112
+ name: name,
113
+ color: color || contextColor,
114
+ size: sizeProp ?? ICON_SIZE[size],
115
+ strokeWidth: strokeWidth,
116
+ style: style,
117
+ ...rest
118
+ });
119
+ };
120
+ function renderChildren(children) {
121
+ return Children.map(children, child => {
122
+ if (typeof child === 'string') {
123
+ return child.trim().length > 0 ? /*#__PURE__*/_jsx(ChipLabel, {
124
+ children: child
125
+ }) : null;
126
+ }
127
+ if (typeof child === 'number') {
128
+ return /*#__PURE__*/_jsx(ChipLabel, {
129
+ children: child
130
+ });
131
+ }
132
+ return child;
133
+ });
134
+ }
135
+
136
+ // ─── Component ────────────────────────────────────────────────────────────────
137
+
138
+ const ChipRoot = /*#__PURE__*/forwardRef(function Chip({
139
+ size = 'md',
140
+ variant = 'soft',
141
+ color = 'secondary',
142
+ children,
143
+ style,
144
+ ...rest
145
+ }, ref) {
146
+ // Compound variants only match the 5 named schemes above — an arbitrary
147
+ // literal never matches one, so it's cast to satisfy `useVariants`'s
148
+ // literal-union type while still comparing against the real value below.
149
+ styles.useVariants({
150
+ color: color,
151
+ variant,
152
+ size
153
+ });
154
+ const isCustomColor = variant !== 'ghost' && !SCHEME_NAMES.has(color);
155
+ const customColors = isCustomColor ? getCustomColorColors(color, variant) : null;
156
+ const fg = resolveForeground(color, variant, customColors);
157
+ return /*#__PURE__*/_jsx(ChipContext.Provider, {
158
+ value: {
159
+ color: fg,
160
+ size
161
+ },
162
+ children: /*#__PURE__*/_jsx(View, {
163
+ ref: ref,
164
+ style: [styles.base, customColors ? {
165
+ backgroundColor: customColors.bg,
166
+ borderColor: customColors.border,
167
+ borderWidth: customColors.borderWidth
168
+ } : null, style],
169
+ ...rest,
170
+ children: renderChildren(children)
171
+ })
172
+ });
173
+ });
174
+ // Subscribes the chip to theme changes. The background below comes from
175
+ // `compoundVariants`, which unistyles applies straight to the native node when
176
+ // the theme switches — no re-render, so React goes on believing the node holds
177
+ // the previous theme's value. React Native only mutates a node when newly
178
+ // rendered props differ from the last ones it rendered, so a later variant
179
+ // change that computes a value equal to that stale record emits no update at
180
+ // all, and the node keeps whatever the theme switch painted. That is reachable
181
+ // whenever one colour fills two roles across themes — an accent equal to
182
+ // another theme's `action.bg.secondary.subtle`, say — and it shows up as a
183
+ // deselected chip still wearing the selected background.
184
+ //
185
+ // Re-rendering on a theme switch commits the new value there and then, so no
186
+ // stale record survives to collide. `Text` already subscribes this way for its
187
+ // colour; this gives the chip's own paint the same guarantee. The cast keeps
188
+ // `ChipProps` and the ref, which `withUnistyles` widens to `Partial<{}>`.
189
+ export const Chip = withUnistyles(ChipRoot);
190
+ Chip.Icon = ChipIcon;
191
+
192
+ // ─── Styles ───────────────────────────────────────────────────────────────────
193
+
194
+ // One compound variant per (color, variant) cell of the spec's token table —
195
+ // `variants` below only registers the axis names/options for the type
196
+ // system; the actual bg/border values all come from `compoundVariants`.
197
+ // `size` has no cross-axis interaction, so it's a plain variant.
198
+ //
199
+ // Foreground is deliberately absent: it belongs to the label and icon, not to
200
+ // this View, and is handed to them as a token via `FG_TOKEN` / context.
201
+ const styles = StyleSheet.create(theme => {
202
+ const c = theme.color;
203
+ return {
204
+ base: {
205
+ flexDirection: 'row',
206
+ alignItems: 'center',
207
+ alignSelf: 'flex-start',
208
+ borderRadius: theme.radius.full,
209
+ variants: {
210
+ size: {
211
+ sm: {
212
+ minHeight: 24,
213
+ paddingVertical: 6,
214
+ paddingHorizontal: 12,
215
+ gap: 4
216
+ },
217
+ md: {
218
+ minHeight: 26,
219
+ paddingVertical: 8,
220
+ paddingHorizontal: 14,
221
+ gap: 4
222
+ },
223
+ lg: {
224
+ minHeight: 28,
225
+ paddingVertical: 8,
226
+ paddingHorizontal: 16,
227
+ gap: 4
228
+ }
229
+ },
230
+ color: {
231
+ primary: {},
232
+ secondary: {},
233
+ success: {},
234
+ warning: {},
235
+ danger: {}
236
+ },
237
+ variant: {
238
+ solid: {},
239
+ soft: {},
240
+ outline: {},
241
+ ghost: {
242
+ backgroundColor: 'transparent',
243
+ borderColor: 'transparent',
244
+ borderWidth: 0
245
+ }
246
+ }
247
+ },
248
+ compoundVariants: [{
249
+ color: 'primary',
250
+ variant: 'solid',
251
+ styles: {
252
+ backgroundColor: c['action.bg.primary'],
253
+ borderColor: c['action.bg.primary'],
254
+ borderWidth: 0
255
+ }
256
+ }, {
257
+ color: 'primary',
258
+ variant: 'soft',
259
+ styles: {
260
+ backgroundColor: c['action.bg.primary.subtle'],
261
+ borderColor: c['action.bg.primary.subtle'],
262
+ borderWidth: 0
263
+ }
264
+ }, {
265
+ color: 'primary',
266
+ variant: 'outline',
267
+ styles: {
268
+ backgroundColor: 'transparent',
269
+ borderColor: c['border.accent'],
270
+ borderWidth: 1
271
+ }
272
+ }, {
273
+ color: 'secondary',
274
+ variant: 'solid',
275
+ styles: {
276
+ backgroundColor: c['action.bg.secondary'],
277
+ borderColor: c['action.bg.secondary'],
278
+ borderWidth: 0
279
+ }
280
+ }, {
281
+ color: 'secondary',
282
+ variant: 'soft',
283
+ styles: {
284
+ backgroundColor: c['action.bg.secondary.subtle'],
285
+ borderColor: c['action.bg.secondary.subtle'],
286
+ borderWidth: 0
287
+ }
288
+ }, {
289
+ color: 'secondary',
290
+ variant: 'outline',
291
+ styles: {
292
+ backgroundColor: 'transparent',
293
+ borderColor: c['border.default'],
294
+ borderWidth: 1
295
+ }
296
+ }, {
297
+ color: 'success',
298
+ variant: 'solid',
299
+ styles: {
300
+ backgroundColor: c['status.success.bg'],
301
+ borderColor: c['status.success.bg'],
302
+ borderWidth: 0
303
+ }
304
+ }, {
305
+ color: 'success',
306
+ variant: 'soft',
307
+ styles: {
308
+ backgroundColor: c['status.success.bg.subtle'],
309
+ borderColor: c['status.success.bg.subtle'],
310
+ borderWidth: 0
311
+ }
312
+ }, {
313
+ color: 'success',
314
+ variant: 'outline',
315
+ styles: {
316
+ backgroundColor: 'transparent',
317
+ borderColor: c['status.success.border'],
318
+ borderWidth: 1
319
+ }
320
+ }, {
321
+ color: 'warning',
322
+ variant: 'solid',
323
+ styles: {
324
+ backgroundColor: c['status.warning.bg'],
325
+ borderColor: c['status.warning.bg'],
326
+ borderWidth: 0
327
+ }
328
+ }, {
329
+ color: 'warning',
330
+ variant: 'soft',
331
+ styles: {
332
+ backgroundColor: c['status.warning.bg.subtle'],
333
+ borderColor: c['status.warning.bg.subtle'],
334
+ borderWidth: 0
335
+ }
336
+ }, {
337
+ color: 'warning',
338
+ variant: 'outline',
339
+ styles: {
340
+ backgroundColor: 'transparent',
341
+ borderColor: c['status.warning.border'],
342
+ borderWidth: 1
343
+ }
344
+ }, {
345
+ color: 'danger',
346
+ variant: 'solid',
347
+ styles: {
348
+ backgroundColor: c['status.danger.bg'],
349
+ borderColor: c['status.danger.bg'],
350
+ borderWidth: 0
351
+ }
352
+ }, {
353
+ color: 'danger',
354
+ variant: 'soft',
355
+ styles: {
356
+ backgroundColor: c['status.danger.bg.subtle'],
357
+ borderColor: c['status.danger.bg.subtle'],
358
+ borderWidth: 0
359
+ }
360
+ }, {
361
+ color: 'danger',
362
+ variant: 'outline',
363
+ styles: {
364
+ backgroundColor: 'transparent',
365
+ borderColor: c['status.danger.border'],
366
+ borderWidth: 1
367
+ }
368
+ }]
369
+ }
370
+ };
371
+ });
372
+ //# sourceMappingURL=Chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Children","createContext","forwardRef","useContext","View","StyleSheet","withUnistyles","Icon","Text","getCustomColorColors","jsx","_jsx","ChipContext","color","size","SCHEME_NAMES","Set","FG_TOKEN","primary","solid","soft","outline","secondary","success","warning","danger","resolveForeground","variant","customColors","fg","LABEL_VARIANT","sm","md","lg","ChipLabel","children","weight","ICON_SIZE","ChipIcon","name","sizeProp","strokeWidth","style","rest","contextColor","renderChildren","map","child","trim","length","ChipRoot","Chip","ref","styles","useVariants","isCustomColor","has","Provider","value","base","backgroundColor","bg","borderColor","border","borderWidth","create","theme","c","flexDirection","alignItems","alignSelf","borderRadius","radius","full","variants","minHeight","paddingVertical","paddingHorizontal","gap","ghost","compoundVariants"],"sourceRoot":"../../../../src","sources":["components/chip/Chip.tsx"],"mappings":";;AAAA,SACEA,QAAQ,EAERC,aAAa,EACbC,UAAU,EAEVC,UAAU,QACL,OAAO;AACd,SAASC,IAAI,QAAwB,cAAc;AAEnD,SAASC,UAAU,EAAEC,aAAa,QAA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MAAM,EAAE;UACNO,eAAe,EAAE,aAAa;UAC9BE,WAAW,EAAEK,CAAC,CAAC,uBAAuB,CAAC;UACvCH,WAAW,EAAE;QACf;MACF,CAAC,EACD;QACEnD,KAAK,EAAE,QAAQ;QACfc,OAAO,EAAE,OAAO;QAChB0B,MAAM,EAAE;UACNO,eAAe,EAAEO,CAAC,CAAC,kBAAkB,CAAC;UACtCL,WAAW,EAAEK,CAAC,CAAC,kBAAkB,CAAC;UAClCH,WAAW,EAAE;QACf;MACF,CAAC,EACD;QACEnD,KAAK,EAAE,QAAQ;QACfc,OAAO,EAAE,MAAM;QACf0B,MAAM,EAAE;UACNO,eAAe,EAAEO,CAAC,CAAC,yBAAyB,CAAC;UAC7CL,WAAW,EAAEK,CAAC,CAAC,yBAAyB,CAAC;UACzCH,WAAW,EAAE;QACf;MACF,CAAC,EACD;QACEnD,KAAK,EAAE,QAAQ;QACfc,OAAO,EAAE,SAAS;QAClB0B,MAAM,EAAE;UACNO,eAAe,EAAE,aAAa;UAC9BE,WAAW,EAAEK,CAAC,CAAC,sBAAsB,CAAC;UACtCH,WAAW,EAAE;QACf;MACF,CAAC;IAEL;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { Chip } from "./Chip.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Chip"],"sourceRoot":"../../../../src","sources":["components/chip/index.ts"],"mappings":";;AACA,SAASA,IAAI","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/chip/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ import { readableOn, withAlpha } from "../../utils/color-utils.js";
4
+
5
+ // A custom color literal (hex/rgb/hsl) can't be a unistyles compound variant
6
+ // condition (it's not a bounded set of options), so it's derived here
7
+ // instead, the same way `utils/accent-utils.ts` expands a single hue into a
8
+ // full color scheme.
9
+
10
+ const CUSTOM_COLOR_SOFT_ALPHA = 0.16;
11
+ export function getCustomColorColors(literal, variant) {
12
+ if (variant === 'outline') {
13
+ return {
14
+ bg: 'transparent',
15
+ border: literal,
16
+ borderWidth: 1,
17
+ fg: literal
18
+ };
19
+ }
20
+ if (variant === 'soft') {
21
+ const bg = withAlpha(literal, CUSTOM_COLOR_SOFT_ALPHA);
22
+ return {
23
+ bg,
24
+ border: bg,
25
+ borderWidth: 0,
26
+ fg: literal
27
+ };
28
+ }
29
+ return {
30
+ bg: literal,
31
+ border: literal,
32
+ borderWidth: 0,
33
+ fg: readableOn(literal)
34
+ };
35
+ }
36
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["readableOn","withAlpha","CUSTOM_COLOR_SOFT_ALPHA","getCustomColorColors","literal","variant","bg","border","borderWidth","fg"],"sourceRoot":"../../../../src","sources":["components/chip/utils.ts"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,SAAS;;AAE9B;AACA;AACA;AACA;;AASA,MAAMC,uBAAuB,GAAG,IAAI;AAEpC,OAAO,SAASC,oBAAoBA,CAClCC,OAAe,EACfC,OAAqC,EACnB;EAClB,IAAIA,OAAO,KAAK,SAAS,EAAE;IACzB,OAAO;MAAEC,EAAE,EAAE,aAAa;MAAEC,MAAM,EAAEH,OAAO;MAAEI,WAAW,EAAE,CAAC;MAAEC,EAAE,EAAEL;IAAQ,CAAC;EAC5E;EACA,IAAIC,OAAO,KAAK,MAAM,EAAE;IACtB,MAAMC,EAAE,GAAGL,SAAS,CAACG,OAAO,EAAEF,uBAAuB,CAAC;IACtD,OAAO;MAAEI,EAAE;MAAEC,MAAM,EAAED,EAAE;MAAEE,WAAW,EAAE,CAAC;MAAEC,EAAE,EAAEL;IAAQ,CAAC;EACxD;EACA,OAAO;IACLE,EAAE,EAAEF,OAAO;IACXG,MAAM,EAAEH,OAAO;IACfI,WAAW,EAAE,CAAC;IACdC,EAAE,EAAET,UAAU,CAACI,OAAO;EACxB,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,200 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { View } from 'react-native';
5
+ import { StyleSheet } from 'react-native-unistyles';
6
+ import { Icon } from "../icon/index.js";
7
+ import { Text } from "../text/index.js";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ // ─── Per-size lookups ─────────────────────────────────────────────────────────
10
+ //
11
+ // These feed *props* (a `Text` variant, an `Icon` size in dp), not styles, so
12
+ // they stay plain tables here; everything that is a style is a unistyles
13
+ // variant below.
14
+
15
+ const TYPOGRAPHY = {
16
+ sm: {
17
+ title: 'title-sm',
18
+ description: 'body-sm'
19
+ },
20
+ md: {
21
+ title: 'title-md',
22
+ description: 'body-md'
23
+ },
24
+ lg: {
25
+ title: 'title-lg',
26
+ description: 'body-lg'
27
+ }
28
+ };
29
+ const ICON_SIZE = {
30
+ sm: 28,
31
+ md: 34,
32
+ lg: 44
33
+ };
34
+
35
+ /** Wraps a bare string/number in the slot's themed `Text`; elements pass through. */
36
+ function renderSlot(node, wrap) {
37
+ if (node === null || node === undefined || node === false) return null;
38
+ return typeof node === 'string' || typeof node === 'number' ? wrap(node) : node;
39
+ }
40
+
41
+ /**
42
+ * Centered placeholder for a screen, list, or panel with nothing to show:
43
+ * a large icon, a title, optional supporting copy, and an optional action.
44
+ *
45
+ * @example
46
+ * ```tsx
47
+ * <EmptyState
48
+ * icon="status.info"
49
+ * title="No results"
50
+ * description="Try a different search term or clear your filters."
51
+ * action={<Button onPress={reset}>Clear filters</Button>}
52
+ * />
53
+ * ```
54
+ */
55
+ export const EmptyState = /*#__PURE__*/forwardRef(function EmptyState({
56
+ icon,
57
+ iconColor = 'text.default',
58
+ media,
59
+ title,
60
+ description,
61
+ action,
62
+ size = 'md',
63
+ fill = false,
64
+ style,
65
+ ...rest
66
+ }, ref) {
67
+ styles.useVariants({
68
+ size,
69
+ fill
70
+ });
71
+ const typography = TYPOGRAPHY[size];
72
+ return /*#__PURE__*/_jsxs(View, {
73
+ ref: ref,
74
+ style: [styles.root, style],
75
+ ...rest,
76
+ children: [media ?? (icon ? /*#__PURE__*/_jsx(View, {
77
+ style: styles.iconBadge,
78
+ children: /*#__PURE__*/_jsx(Icon, {
79
+ name: icon,
80
+ size: ICON_SIZE[size],
81
+ color: iconColor
82
+ })
83
+ }) : null), /*#__PURE__*/_jsxs(View, {
84
+ style: styles.text,
85
+ children: [renderSlot(title, value => /*#__PURE__*/_jsx(Text, {
86
+ weight: "semibold",
87
+ variant: typography.title,
88
+ align: "center",
89
+ children: value
90
+ })), renderSlot(description, value => /*#__PURE__*/_jsx(Text, {
91
+ variant: typography.description,
92
+ color: "text.subtle",
93
+ align: "center",
94
+ children: value
95
+ }))]
96
+ }), action ? /*#__PURE__*/_jsx(View, {
97
+ style: styles.actions,
98
+ children: action
99
+ }) : null]
100
+ });
101
+ });
102
+
103
+ // ─── Styles ───────────────────────────────────────────────────────────────────
104
+ //
105
+ // `size` and `fill` are the only style axes, and neither interacts with the
106
+ // other, so a plain variant per element does the whole job — no compound
107
+ // variants needed.
108
+ // The badge is sized by padding around the icon rather than an explicit
109
+ // width/height, which keeps it a perfect circle on the spacing scale.
110
+ const styles = StyleSheet.create(theme => ({
111
+ root: {
112
+ alignItems: 'center',
113
+ justifyContent: 'center',
114
+ variants: {
115
+ // `alignSelf` matters as much as `flex` here: a column parent hands its
116
+ // children the cross-axis size of their content unless they stretch, so
117
+ // without it the state would fill the height and still be pinned to the
118
+ // width of its longest line.
119
+ fill: {
120
+ true: {
121
+ flex: 1,
122
+ alignSelf: 'stretch'
123
+ },
124
+ false: {}
125
+ },
126
+ size: {
127
+ sm: {
128
+ gap: theme.spacing['2'],
129
+ paddingVertical: theme.spacing['4'],
130
+ paddingHorizontal: theme.spacing['4']
131
+ },
132
+ md: {
133
+ gap: theme.spacing['3'],
134
+ paddingVertical: theme.spacing['6'],
135
+ paddingHorizontal: theme.spacing['6']
136
+ },
137
+ lg: {
138
+ gap: theme.spacing['4'],
139
+ paddingVertical: theme.spacing['8'],
140
+ paddingHorizontal: theme.spacing['6']
141
+ }
142
+ }
143
+ }
144
+ },
145
+ iconBadge: {
146
+ alignItems: 'center',
147
+ justifyContent: 'center',
148
+ backgroundColor: theme.color['action.bg.primary.subtle'],
149
+ borderRadius: theme.radius.full,
150
+ variants: {
151
+ size: {
152
+ sm: {
153
+ padding: theme.spacing['3']
154
+ },
155
+ md: {
156
+ padding: theme.spacing['4']
157
+ },
158
+ lg: {
159
+ padding: theme.spacing['5']
160
+ }
161
+ }
162
+ }
163
+ },
164
+ text: {
165
+ alignItems: 'center',
166
+ variants: {
167
+ size: {
168
+ sm: {
169
+ gap: theme.spacing['1']
170
+ },
171
+ md: {
172
+ gap: theme.spacing['1']
173
+ },
174
+ lg: {
175
+ gap: theme.spacing['2']
176
+ }
177
+ }
178
+ }
179
+ },
180
+ actions: {
181
+ alignItems: 'center',
182
+ variants: {
183
+ size: {
184
+ sm: {
185
+ gap: theme.spacing['2'],
186
+ marginTop: theme.spacing['1']
187
+ },
188
+ md: {
189
+ gap: theme.spacing['3'],
190
+ marginTop: theme.spacing['2']
191
+ },
192
+ lg: {
193
+ gap: theme.spacing['3'],
194
+ marginTop: theme.spacing['2']
195
+ }
196
+ }
197
+ }
198
+ }
199
+ }));
200
+ //# sourceMappingURL=EmptyState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","View","StyleSheet","Icon","Text","jsx","_jsx","jsxs","_jsxs","TYPOGRAPHY","sm","title","description","md","lg","ICON_SIZE","renderSlot","node","wrap","undefined","EmptyState","icon","iconColor","media","action","size","fill","style","rest","ref","styles","useVariants","typography","root","children","iconBadge","name","color","text","value","weight","variant","align","actions","create","theme","alignItems","justifyContent","variants","true","flex","alignSelf","false","gap","spacing","paddingVertical","paddingHorizontal","backgroundColor","borderRadius","radius","full","padding","marginTop"],"sourceRoot":"../../../../src","sources":["components/empty-state/EmptyState.tsx"],"mappings":";;AAAA,SAA4BA,UAAU,QAAwB,OAAO;AACrE,SAASC,IAAI,QAAwB,cAAc;AAEnD,SAASC,UAAU,QAAQ,wBAAwB;AAInD,SAASC,IAAI;AACb,SAASC,IAAI;AAAkB,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA6B/B;AACA;AACA;AACA;AACA;;AAEA,MAAMC,UAGL,GAAG;EACFC,EAAE,EAAE;IAAEC,KAAK,EAAE,UAAU;IAAEC,WAAW,EAAE;EAAU,CAAC;EACjDC,EAAE,EAAE;IAAEF,KAAK,EAAE,UAAU;IAAEC,WAAW,EAAE;EAAU,CAAC;EACjDE,EAAE,EAAE;IAAEH,KAAK,EAAE,UAAU;IAAEC,WAAW,EAAE;EAAU;AAClD,CAAC;AAED,MAAMG,SAAyC,GAAG;EAChDL,EAAE,EAAE,EAAE;EACNG,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE;AACN,CAAC;;AAED;AACA,SAASE,UAAUA,CACjBC,IAAe,EACfC,IAAqC,EAC1B;EACX,IAAID,IAAI,KAAK,IAAI,IAAIA,IAAI,KAAKE,SAAS,IAAIF,IAAI,KAAK,KAAK,EAAE,OAAO,IAAI;EACtE,OAAO,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,QAAQ,GACvDC,IAAI,CAACD,IAAI,CAAC,GACVA,IAAI;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,UAAU,gBAAGpB,UAAU,CAGlC,SAASoB,UAAUA,CACnB;EACEC,IAAI;EACJC,SAAS,GAAG,cAAc;EAC1BC,KAAK;EACLZ,KAAK;EACLC,WAAW;EACXY,MAAM;EACNC,IAAI,GAAG,IAAI;EACXC,IAAI,GAAG,KAAK;EACZC,KAAK;EAC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ingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["EmptyState"],"sourceRoot":"../../../../src","sources":["components/empty-state/index.ts"],"mappings":";;AACA,SAASA,UAAU","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/empty-state/types.ts"],"mappings":"","ignoreList":[]}