@lssm/lib.ui-kit 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821

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 (331) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/-core/dist/utils.js +2 -1
  4. package/dist/-core/dist/utils.js.map +1 -0
  5. package/dist/index.d.ts +2 -1
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +2 -1
  8. package/dist/index.js.map +1 -0
  9. package/dist/ui/accordion.d.ts +7 -6
  10. package/dist/ui/accordion.d.ts.map +1 -0
  11. package/dist/ui/accordion.js +2 -1
  12. package/dist/ui/accordion.js.map +1 -0
  13. package/dist/ui/alert-dialog.d.ts +13 -12
  14. package/dist/ui/alert-dialog.d.ts.map +1 -0
  15. package/dist/ui/alert-dialog.js +2 -1
  16. package/dist/ui/alert-dialog.js.map +1 -0
  17. package/dist/ui/alert.d.ts +8 -7
  18. package/dist/ui/alert.d.ts.map +1 -0
  19. package/dist/ui/alert.js +2 -1
  20. package/dist/ui/alert.js.map +1 -0
  21. package/dist/ui/aspect-ratio.d.ts +8 -7
  22. package/dist/ui/aspect-ratio.d.ts.map +1 -0
  23. package/dist/ui/aspect-ratio.js +2 -1
  24. package/dist/ui/aspect-ratio.js.map +1 -0
  25. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +2 -1
  26. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +1 -0
  27. package/dist/ui/atoms/FilterSelect/FilterSelect.js +2 -1
  28. package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +1 -0
  29. package/dist/ui/atoms/FilterSelect/types.d.ts +2 -1
  30. package/dist/ui/atoms/FilterSelect/types.d.ts.map +1 -0
  31. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +2 -1
  32. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -0
  33. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +2 -1
  34. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +1 -0
  35. package/dist/ui/atoms/Pagination/Pagination.d.ts +2 -1
  36. package/dist/ui/atoms/Pagination/Pagination.d.ts.map +1 -0
  37. package/dist/ui/atoms/Pagination/Pagination.js +2 -1
  38. package/dist/ui/atoms/Pagination/Pagination.js.map +1 -0
  39. package/dist/ui/atoms/Pagination/types.d.ts +2 -1
  40. package/dist/ui/atoms/Pagination/types.d.ts.map +1 -0
  41. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +2 -1
  42. package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +1 -0
  43. package/dist/ui/atoms/SearchInput/SearchInput.js +2 -1
  44. package/dist/ui/atoms/SearchInput/SearchInput.js.map +1 -0
  45. package/dist/ui/atoms/SearchInput/types.d.ts +2 -1
  46. package/dist/ui/atoms/SearchInput/types.d.ts.map +1 -0
  47. package/dist/ui/avatar.d.ts +6 -5
  48. package/dist/ui/avatar.d.ts.map +1 -0
  49. package/dist/ui/avatar.js +2 -1
  50. package/dist/ui/avatar.js.map +1 -0
  51. package/dist/ui/badge.d.ts +7 -6
  52. package/dist/ui/badge.d.ts.map +1 -0
  53. package/dist/ui/badge.js +2 -1
  54. package/dist/ui/badge.js.map +1 -0
  55. package/dist/ui/breadcrumb.d.ts +10 -9
  56. package/dist/ui/breadcrumb.d.ts.map +1 -0
  57. package/dist/ui/breadcrumb.js +2 -2
  58. package/dist/ui/breadcrumb.js.map +1 -0
  59. package/dist/ui/button.d.ts +9 -8
  60. package/dist/ui/button.d.ts.map +1 -0
  61. package/dist/ui/button.js +2 -1
  62. package/dist/ui/button.js.map +1 -0
  63. package/dist/ui/card.d.ts +9 -8
  64. package/dist/ui/card.d.ts.map +1 -0
  65. package/dist/ui/card.js +2 -1
  66. package/dist/ui/card.js.map +1 -0
  67. package/dist/ui/carousel.d.ts +2 -1
  68. package/dist/ui/carousel.d.ts.map +1 -0
  69. package/dist/ui/carousel.js +2 -1
  70. package/dist/ui/carousel.js.map +1 -0
  71. package/dist/ui/checkbox.d.ts +5 -4
  72. package/dist/ui/checkbox.d.ts.map +1 -0
  73. package/dist/ui/checkbox.js +2 -1
  74. package/dist/ui/checkbox.js.map +1 -0
  75. package/dist/ui/collapsible.d.ts +9 -8
  76. package/dist/ui/collapsible.d.ts.map +1 -0
  77. package/dist/ui/collapsible.js +2 -1
  78. package/dist/ui/collapsible.js.map +1 -0
  79. package/dist/ui/command.d.ts +2 -1
  80. package/dist/ui/command.d.ts.map +1 -0
  81. package/dist/ui/command.js +2 -1
  82. package/dist/ui/command.js.map +1 -0
  83. package/dist/ui/context-menu.d.ts +18 -17
  84. package/dist/ui/context-menu.d.ts.map +1 -0
  85. package/dist/ui/context-menu.js +2 -1
  86. package/dist/ui/context-menu.js.map +1 -0
  87. package/dist/ui/date-picker.d.ts +4 -3
  88. package/dist/ui/date-picker.d.ts.map +1 -0
  89. package/dist/ui/date-picker.js +2 -1
  90. package/dist/ui/date-picker.js.map +1 -0
  91. package/dist/ui/date-range-picker.d.ts +4 -3
  92. package/dist/ui/date-range-picker.d.ts.map +1 -0
  93. package/dist/ui/date-range-picker.js +3 -2
  94. package/dist/ui/date-range-picker.js.map +1 -0
  95. package/dist/ui/datetime-picker.d.ts +4 -3
  96. package/dist/ui/datetime-picker.d.ts.map +1 -0
  97. package/dist/ui/datetime-picker.js +2 -1
  98. package/dist/ui/datetime-picker.js.map +1 -0
  99. package/dist/ui/dialog.d.ts +12 -11
  100. package/dist/ui/dialog.d.ts.map +1 -0
  101. package/dist/ui/dialog.js +2 -1
  102. package/dist/ui/dialog.js.map +1 -0
  103. package/dist/ui/dropdown-menu.d.ts +18 -17
  104. package/dist/ui/dropdown-menu.d.ts.map +1 -0
  105. package/dist/ui/dropdown-menu.js +2 -1
  106. package/dist/ui/dropdown-menu.js.map +1 -0
  107. package/dist/ui/empty-state.d.ts +6 -5
  108. package/dist/ui/empty-state.d.ts.map +1 -0
  109. package/dist/ui/empty-state.js +2 -1
  110. package/dist/ui/empty-state.js.map +1 -0
  111. package/dist/ui/empty.d.ts +11 -10
  112. package/dist/ui/empty.d.ts.map +1 -0
  113. package/dist/ui/empty.js +2 -1
  114. package/dist/ui/empty.js.map +1 -0
  115. package/dist/ui/fab.d.ts +5 -4
  116. package/dist/ui/fab.d.ts.map +1 -0
  117. package/dist/ui/fab.js +2 -1
  118. package/dist/ui/fab.js.map +1 -0
  119. package/dist/ui/field.d.ts +15 -14
  120. package/dist/ui/field.d.ts.map +1 -0
  121. package/dist/ui/field.js +2 -1
  122. package/dist/ui/field.js.map +1 -0
  123. package/dist/ui/form.d.ts +9 -8
  124. package/dist/ui/form.d.ts.map +1 -0
  125. package/dist/ui/form.js +2 -1
  126. package/dist/ui/form.js.map +1 -0
  127. package/dist/ui/hover-card.d.ts +8 -7
  128. package/dist/ui/hover-card.d.ts.map +1 -0
  129. package/dist/ui/hover-card.js +2 -1
  130. package/dist/ui/hover-card.js.map +1 -0
  131. package/dist/ui/icons/Check.js +2 -1
  132. package/dist/ui/icons/Check.js.map +1 -0
  133. package/dist/ui/icons/ChevronDown.js +2 -1
  134. package/dist/ui/icons/ChevronDown.js.map +1 -0
  135. package/dist/ui/icons/ChevronRight.js +2 -1
  136. package/dist/ui/icons/ChevronRight.js.map +1 -0
  137. package/dist/ui/icons/ChevronUp.js +2 -1
  138. package/dist/ui/icons/ChevronUp.js.map +1 -0
  139. package/dist/ui/icons/CircleUser.js +2 -1
  140. package/dist/ui/icons/CircleUser.js.map +1 -0
  141. package/dist/ui/icons/Info.js +2 -1
  142. package/dist/ui/icons/Info.js.map +1 -0
  143. package/dist/ui/icons/Key.js +2 -1
  144. package/dist/ui/icons/Key.js.map +1 -0
  145. package/dist/ui/icons/MoonStar.js +2 -1
  146. package/dist/ui/icons/MoonStar.js.map +1 -0
  147. package/dist/ui/icons/Sun.js +2 -1
  148. package/dist/ui/icons/Sun.js.map +1 -0
  149. package/dist/ui/icons/X.js +2 -1
  150. package/dist/ui/icons/X.js.map +1 -0
  151. package/dist/ui/icons/iconWithClassName.d.ts +2 -1
  152. package/dist/ui/icons/iconWithClassName.d.ts.map +1 -0
  153. package/dist/ui/icons/iconWithClassName.js +2 -1
  154. package/dist/ui/icons/iconWithClassName.js.map +1 -0
  155. package/dist/ui/input.d.ts +4 -3
  156. package/dist/ui/input.d.ts.map +1 -0
  157. package/dist/ui/input.js +2 -1
  158. package/dist/ui/input.js.map +1 -0
  159. package/dist/ui/label.d.ts +4 -3
  160. package/dist/ui/label.d.ts.map +1 -0
  161. package/dist/ui/label.js +2 -1
  162. package/dist/ui/label.js.map +1 -0
  163. package/dist/ui/link.d.ts +4 -3
  164. package/dist/ui/link.d.ts.map +1 -0
  165. package/dist/ui/link.js +2 -1
  166. package/dist/ui/link.js.map +1 -0
  167. package/dist/ui/loading-button.d.ts +4 -3
  168. package/dist/ui/loading-button.d.ts.map +1 -0
  169. package/dist/ui/loading-button.js +2 -1
  170. package/dist/ui/loading-button.js.map +1 -0
  171. package/dist/ui/loading-overlay.d.ts +4 -3
  172. package/dist/ui/loading-overlay.d.ts.map +1 -0
  173. package/dist/ui/loading-overlay.js +2 -1
  174. package/dist/ui/loading-overlay.js.map +1 -0
  175. package/dist/ui/loading-screen.d.ts +4 -3
  176. package/dist/ui/loading-screen.d.ts.map +1 -0
  177. package/dist/ui/loading-screen.js +2 -1
  178. package/dist/ui/loading-screen.js.map +1 -0
  179. package/dist/ui/marketing/FeatureGrid.d.ts +4 -3
  180. package/dist/ui/marketing/FeatureGrid.d.ts.map +1 -0
  181. package/dist/ui/marketing/FeatureGrid.js +2 -1
  182. package/dist/ui/marketing/FeatureGrid.js.map +1 -0
  183. package/dist/ui/marketing/Hero.d.ts +4 -3
  184. package/dist/ui/marketing/Hero.d.ts.map +1 -0
  185. package/dist/ui/marketing/Hero.js +2 -1
  186. package/dist/ui/marketing/Hero.js.map +1 -0
  187. package/dist/ui/marketing/PricingTable.d.ts +4 -3
  188. package/dist/ui/marketing/PricingTable.d.ts.map +1 -0
  189. package/dist/ui/marketing/PricingTable.js +2 -1
  190. package/dist/ui/marketing/PricingTable.js.map +1 -0
  191. package/dist/ui/menubar.d.ts +19 -18
  192. package/dist/ui/menubar.d.ts.map +1 -0
  193. package/dist/ui/menubar.js +2 -1
  194. package/dist/ui/menubar.js.map +1 -0
  195. package/dist/ui/molecules/Autocomplete/index.d.ts +2 -1
  196. package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -0
  197. package/dist/ui/molecules/Autocomplete/index.js +2 -1
  198. package/dist/ui/molecules/Autocomplete/index.js.map +1 -0
  199. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +2 -1
  200. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +1 -0
  201. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +2 -1
  202. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +1 -0
  203. package/dist/ui/molecules/SearchAndFilter/types.d.ts +2 -1
  204. package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -0
  205. package/dist/ui/molecules/SkeletonList.d.ts +4 -3
  206. package/dist/ui/molecules/SkeletonList.d.ts.map +1 -0
  207. package/dist/ui/molecules/SkeletonList.js +2 -1
  208. package/dist/ui/molecules/SkeletonList.js.map +1 -0
  209. package/dist/ui/navigation-menu.d.ts +14 -13
  210. package/dist/ui/navigation-menu.d.ts.map +1 -0
  211. package/dist/ui/navigation-menu.js +2 -1
  212. package/dist/ui/navigation-menu.js.map +1 -0
  213. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +4 -3
  214. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
  215. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +2 -1
  216. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -0
  217. package/dist/ui/organisms/ListPage/ListPage.d.ts +4 -3
  218. package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -0
  219. package/dist/ui/organisms/ListPage/ListPage.js +2 -1
  220. package/dist/ui/organisms/ListPage/ListPage.js.map +1 -0
  221. package/dist/ui/organisms/ListPage/types.d.ts +2 -1
  222. package/dist/ui/organisms/ListPage/types.d.ts.map +1 -0
  223. package/dist/ui/page-header.d.ts +6 -5
  224. package/dist/ui/page-header.d.ts.map +1 -0
  225. package/dist/ui/page-header.js +2 -1
  226. package/dist/ui/page-header.js.map +1 -0
  227. package/dist/ui/password-strength.d.ts +4 -3
  228. package/dist/ui/password-strength.d.ts.map +1 -0
  229. package/dist/ui/password-strength.js +2 -1
  230. package/dist/ui/password-strength.js.map +1 -0
  231. package/dist/ui/popover.d.ts +10 -9
  232. package/dist/ui/popover.d.ts.map +1 -0
  233. package/dist/ui/popover.js +2 -1
  234. package/dist/ui/popover.js.map +1 -0
  235. package/dist/ui/progress.d.ts +4 -3
  236. package/dist/ui/progress.d.ts.map +1 -0
  237. package/dist/ui/progress.js +2 -1
  238. package/dist/ui/progress.js.map +1 -0
  239. package/dist/ui/radio-group.d.ts +5 -4
  240. package/dist/ui/radio-group.d.ts.map +1 -0
  241. package/dist/ui/radio-group.js +2 -1
  242. package/dist/ui/radio-group.js.map +1 -0
  243. package/dist/ui/select.d.ts +15 -14
  244. package/dist/ui/select.d.ts.map +1 -0
  245. package/dist/ui/select.js +2 -1
  246. package/dist/ui/select.js.map +1 -0
  247. package/dist/ui/separator.d.ts +4 -3
  248. package/dist/ui/separator.d.ts.map +1 -0
  249. package/dist/ui/separator.js +2 -1
  250. package/dist/ui/separator.js.map +1 -0
  251. package/dist/ui/sheet.d.ts +2 -1
  252. package/dist/ui/sheet.d.ts.map +1 -0
  253. package/dist/ui/sheet.js +2 -1
  254. package/dist/ui/sheet.js.map +1 -0
  255. package/dist/ui/sidebar.d.ts +2 -1
  256. package/dist/ui/sidebar.d.ts.map +1 -0
  257. package/dist/ui/sidebar.js +2 -1
  258. package/dist/ui/sidebar.js.map +1 -0
  259. package/dist/ui/skeleton.d.ts +4 -3
  260. package/dist/ui/skeleton.d.ts.map +1 -0
  261. package/dist/ui/skeleton.js +2 -1
  262. package/dist/ui/skeleton.js.map +1 -0
  263. package/dist/ui/stack.d.ts +19 -18
  264. package/dist/ui/stack.d.ts.map +1 -0
  265. package/dist/ui/stack.js +2 -1
  266. package/dist/ui/stack.js.map +1 -0
  267. package/dist/ui/stepper.d.ts +6 -5
  268. package/dist/ui/stepper.d.ts.map +1 -0
  269. package/dist/ui/stepper.js +2 -1
  270. package/dist/ui/stepper.js.map +1 -0
  271. package/dist/ui/switch.d.ts +4 -3
  272. package/dist/ui/switch.d.ts.map +1 -0
  273. package/dist/ui/switch.js +2 -1
  274. package/dist/ui/switch.js.map +1 -0
  275. package/dist/ui/table.d.ts +10 -9
  276. package/dist/ui/table.d.ts.map +1 -0
  277. package/dist/ui/table.js +2 -1
  278. package/dist/ui/table.js.map +1 -0
  279. package/dist/ui/tabs.d.ts +13 -12
  280. package/dist/ui/tabs.d.ts.map +1 -0
  281. package/dist/ui/tabs.js +2 -1
  282. package/dist/ui/tabs.js.map +1 -0
  283. package/dist/ui/text.d.ts +4 -3
  284. package/dist/ui/text.d.ts.map +1 -0
  285. package/dist/ui/text.js +2 -1
  286. package/dist/ui/text.js.map +1 -0
  287. package/dist/ui/textarea.d.ts +2 -1
  288. package/dist/ui/textarea.d.ts.map +1 -0
  289. package/dist/ui/textarea.js +2 -1
  290. package/dist/ui/textarea.js.map +1 -0
  291. package/dist/ui/time-picker.d.ts +4 -3
  292. package/dist/ui/time-picker.d.ts.map +1 -0
  293. package/dist/ui/time-picker.js +2 -1
  294. package/dist/ui/time-picker.js.map +1 -0
  295. package/dist/ui/toggle-group.d.ts +6 -5
  296. package/dist/ui/toggle-group.d.ts.map +1 -0
  297. package/dist/ui/toggle-group.js +2 -1
  298. package/dist/ui/toggle-group.js.map +1 -0
  299. package/dist/ui/toggle.d.ts +8 -7
  300. package/dist/ui/toggle.d.ts.map +1 -0
  301. package/dist/ui/toggle.js +2 -1
  302. package/dist/ui/toggle.js.map +1 -0
  303. package/dist/ui/tooltip.d.ts +8 -7
  304. package/dist/ui/tooltip.d.ts.map +1 -0
  305. package/dist/ui/tooltip.js +2 -1
  306. package/dist/ui/tooltip.js.map +1 -0
  307. package/dist/ui/typography.d.ts +14 -13
  308. package/dist/ui/typography.d.ts.map +1 -0
  309. package/dist/ui/typography.js +2 -1
  310. package/dist/ui/typography.js.map +1 -0
  311. package/dist/ui/useColorScheme.d.ts +4 -3
  312. package/dist/ui/useColorScheme.d.ts.map +1 -0
  313. package/dist/ui/useColorScheme.js +2 -1
  314. package/dist/ui/useColorScheme.js.map +1 -0
  315. package/dist/ui/useListState.d.ts +2 -1
  316. package/dist/ui/useListState.d.ts.map +1 -0
  317. package/dist/ui/useListState.js +2 -1
  318. package/dist/ui/useListState.js.map +1 -0
  319. package/dist/ui/usecases/UseCaseCard.d.ts +4 -3
  320. package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -0
  321. package/dist/ui/usecases/UseCaseCard.js +2 -1
  322. package/dist/ui/usecases/UseCaseCard.js.map +1 -0
  323. package/dist/ui/usecases/UserStoryCard.d.ts +4 -3
  324. package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -0
  325. package/dist/ui/usecases/UserStoryCard.js +2 -1
  326. package/dist/ui/usecases/UserStoryCard.js.map +1 -0
  327. package/dist/ui/utils.d.ts +2 -1
  328. package/dist/ui/utils.d.ts.map +1 -0
  329. package/dist/ui/utils.js +2 -1
  330. package/dist/ui/utils.js.map +1 -0
  331. package/package.json +15 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.js","names":[],"sources":["../../ui/switch.tsx"],"sourcesContent":["import * as SwitchPrimitives from '@rn-primitives/switch';\nimport * as React from 'react';\nimport { Platform } from 'react-native';\nimport Animated, {\n interpolateColor,\n useAnimatedStyle,\n useDerivedValue,\n withTiming,\n} from 'react-native-reanimated';\nimport { useColorScheme } from './useColorScheme';\nimport { cn } from '@lssm/lib.ui-kit-core/utils';\n\nfunction SwitchWeb({\n className,\n ...props\n}: SwitchPrimitives.RootProps & {\n ref?: React.RefObject<SwitchPrimitives.RootRef>;\n}) {\n return (\n <SwitchPrimitives.Root\n className={cn(\n 'peer focus-visible:ring-ring focus-visible:ring-offset-background h-6 w-11 shrink-0 cursor-pointer flex-row items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed',\n props.checked ? 'bg-primary' : 'bg-input',\n props.disabled && 'opacity-50',\n className\n )}\n {...props}\n >\n <SwitchPrimitives.Thumb\n className={cn(\n 'bg-background shadow-foreground/5 pointer-events-none block h-5 w-5 rounded-full shadow-md ring-0 transition-transform',\n props.checked ? 'translate-x-5' : 'translate-x-0'\n )}\n />\n </SwitchPrimitives.Root>\n );\n}\n\nconst RGB_COLORS = {\n light: {\n primary: 'rgb(24, 24, 27)',\n input: 'rgb(228, 228, 231)',\n },\n dark: {\n primary: 'rgb(250, 250, 250)',\n input: 'rgb(39, 39, 42)',\n },\n} as const;\n\nfunction SwitchNative({\n className,\n ...props\n}: SwitchPrimitives.RootProps & {\n ref?: React.RefObject<SwitchPrimitives.RootRef>;\n}) {\n const { colorScheme } = useColorScheme();\n const translateX = useDerivedValue(() => (props.checked ? 18 : 0));\n const animatedRootStyle = useAnimatedStyle(() => {\n return {\n backgroundColor: interpolateColor(\n translateX.value,\n [0, 18],\n [RGB_COLORS[colorScheme].input, RGB_COLORS[colorScheme].primary]\n ),\n };\n });\n const animatedThumbStyle = useAnimatedStyle(() => ({\n transform: [\n { translateX: withTiming(translateX.value, { duration: 200 }) },\n ],\n }));\n return (\n <Animated.View\n style={animatedRootStyle}\n className={cn(\n 'h-8 w-[46px] rounded-full',\n props.disabled && 'opacity-50'\n )}\n >\n <SwitchPrimitives.Root\n className={cn(\n 'h-8 w-[46px] shrink-0 flex-row items-center rounded-full border-2 border-transparent',\n props.checked ? 'bg-primary' : 'bg-input',\n className\n )}\n {...props}\n >\n <Animated.View style={animatedThumbStyle}>\n <SwitchPrimitives.Thumb\n className={\n 'bg-background shadow-foreground/25 h-7 w-7 rounded-full shadow-md ring-0'\n }\n />\n </Animated.View>\n </SwitchPrimitives.Root>\n </Animated.View>\n );\n}\n\nconst Switch = Platform.select({\n web: SwitchWeb,\n default: SwitchNative,\n});\n\nexport { Switch };\n"],"mappings":";;;;;;;;;AAYA,SAAS,UAAU,EACjB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAChB,WAAW,GACT,iSACA,MAAM,UAAU,eAAe,YAC/B,MAAM,YAAY,cAClB,UACD;EACD,GAAI;YAEJ,oBAAC,iBAAiB,SAChB,WAAW,GACT,0HACA,MAAM,UAAU,kBAAkB,gBACnC,GACD;GACoB;;AAI5B,MAAM,aAAa;CACjB,OAAO;EACL,SAAS;EACT,OAAO;EACR;CACD,MAAM;EACJ,SAAS;EACT,OAAO;EACR;CACF;AAED,SAAS,aAAa,EACpB,WACA,GAAG,SAGF;CACD,MAAM,EAAE,gBAAgB,gBAAgB;CACxC,MAAM,aAAa,sBAAuB,MAAM,UAAU,KAAK,EAAG;CAClE,MAAM,oBAAoB,uBAAuB;AAC/C,SAAO,EACL,iBAAiB,iBACf,WAAW,OACX,CAAC,GAAG,GAAG,EACP,CAAC,WAAW,aAAa,OAAO,WAAW,aAAa,QAAQ,CACjE,EACF;GACD;CACF,MAAM,qBAAqB,wBAAwB,EACjD,WAAW,CACT,EAAE,YAAY,WAAW,WAAW,OAAO,EAAE,UAAU,KAAK,CAAC,EAAE,CAChE,EACF,EAAE;AACH,QACE,oBAAC,SAAS;EACR,OAAO;EACP,WAAW,GACT,6BACA,MAAM,YAAY,aACnB;YAED,oBAAC,iBAAiB;GAChB,WAAW,GACT,wFACA,MAAM,UAAU,eAAe,YAC/B,UACD;GACD,GAAI;aAEJ,oBAAC,SAAS;IAAK,OAAO;cACpB,oBAAC,iBAAiB,SAChB,WACE,6EAEF;KACY;IACM;GACV;;AAIpB,MAAM,SAAS,SAAS,OAAO;CAC7B,KAAK;CACL,SAAS;CACV,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime19 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime155 from "react/jsx-runtime";
3
3
  import * as TablePrimitive from "@rn-primitives/table";
4
4
 
5
5
  //#region ui/table.d.ts
@@ -8,43 +8,44 @@ declare function Table({
8
8
  ...props
9
9
  }: TablePrimitive.RootProps & {
10
10
  ref?: React$1.RefObject<TablePrimitive.RootRef>;
11
- }): react_jsx_runtime19.JSX.Element;
11
+ }): react_jsx_runtime155.JSX.Element;
12
12
  declare function TableHeader({
13
13
  className,
14
14
  ...props
15
15
  }: TablePrimitive.HeaderProps & {
16
16
  ref?: React$1.RefObject<TablePrimitive.HeaderRef>;
17
- }): react_jsx_runtime19.JSX.Element;
17
+ }): react_jsx_runtime155.JSX.Element;
18
18
  declare function TableBody({
19
19
  className,
20
20
  style,
21
21
  ...props
22
22
  }: TablePrimitive.BodyProps & {
23
23
  ref?: React$1.RefObject<TablePrimitive.BodyRef>;
24
- }): react_jsx_runtime19.JSX.Element;
24
+ }): react_jsx_runtime155.JSX.Element;
25
25
  declare function TableFooter({
26
26
  className,
27
27
  ...props
28
28
  }: TablePrimitive.FooterProps & {
29
29
  ref?: React$1.RefObject<TablePrimitive.FooterRef>;
30
- }): react_jsx_runtime19.JSX.Element;
30
+ }): react_jsx_runtime155.JSX.Element;
31
31
  declare function TableRow({
32
32
  className,
33
33
  ...props
34
34
  }: TablePrimitive.RowProps & {
35
35
  ref?: React$1.RefObject<TablePrimitive.RowRef>;
36
- }): react_jsx_runtime19.JSX.Element;
36
+ }): react_jsx_runtime155.JSX.Element;
37
37
  declare function TableHead({
38
38
  className,
39
39
  ...props
40
40
  }: TablePrimitive.HeadProps & {
41
41
  ref?: React$1.RefObject<TablePrimitive.HeadRef>;
42
- }): react_jsx_runtime19.JSX.Element;
42
+ }): react_jsx_runtime155.JSX.Element;
43
43
  declare function TableCell({
44
44
  className,
45
45
  ...props
46
46
  }: TablePrimitive.CellProps & {
47
47
  ref?: React$1.RefObject<TablePrimitive.CellRef>;
48
- }): react_jsx_runtime19.JSX.Element;
48
+ }): react_jsx_runtime155.JSX.Element;
49
49
  //#endregion
50
- export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow };
50
+ export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow };
51
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","names":[],"sources":["../../ui/table.tsx"],"sourcesContent":[],"mappings":";;;;;iBAKS,KAAA;;;GAGN,cAAA,CAAe;QACV,OAAA,CAAM,UAAU,cAAA,CAAe;IACtC,oBAAA,CAAA,GAAA,CAAA;AAT8B,iBAkBtB,WAAA,CAdK;EAAA,SAAA;EAAA,GAAA;CAAA,EAiBX,cAAA,CAAe,WAjBJ,GAAA;EACZ,GAAA,CAAA,EAiBM,OAAA,CAAM,SAjBZ,CAiBsB,cAAA,CAAe,SAjBrC,CAAA;CAEC,CAAA,EAgBF,oBAAA,CAAA,GAAA,CAAA,OAhBiB;iBAyBT,SAAA,CAxB8B;EAAA,SAAA;EAAA,KAAA;EAAA,GAAA;CAAA,EA4BpC,cAAA,CAAe,SA5BqB,GAAA;EAA/B,GAAA,CAAA,EA6BA,OAAA,CAAM,SA7BA,CA6BU,cAAA,CAAe,OA7BzB,CAAA;CACb,CAAA,EA6BA,oBAAA,CAAA,GAAA,CAAA,OA7BA;iBA0CQ,WAAA,CA1CR;EAAA,SAAA;EAAA,GAAA;CAAA,EA6CE,cAAA,CAAe,WA7CjB,GAAA;EASQ,GAAA,CAAA,EAqCD,OAAA,CAAM,SArCM,CAqCI,cAAA,CAAe,SArCnB,CAAA;CAClB,CAAA,EAqCD,oBAAA,CAAA,GAAA,CAAA,OArCC;iBAiDO,QAAA,CA/CS;EAAA,SAAA;EAAA,GAAA;CAAA,EAkDf,cAAA,CAAe,QAlDA,GAAA;EACM,GAAA,CAAA,EAkDhB,OAAA,CAAM,SAlDyB,CAkDf,cAAA,CAAe,MAlDA,CAAA;CAA/B,CAAA,EAmDP,oBAAA,CAAA,GAAA,CAAA,OAnDa;iBA+DL,SAAA,CA9DR;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiEE,cAAA,CAAe,SAjEjB,GAAA;EAAA,GAAA,CAAA,EAkEO,OAAA,CAAM,SAlEb,CAkEuB,cAAA,CAAe,OAlEtC,CAAA;AAAA,CAAA,CAAA,EAmEA,oBAAA,CAAA,GAAA,CAAA,OA1DiB;iBAwET,SAAA,CAvEP;EAAA,SAAA;EAAA,GAAA;CAAA,EA0EC,cAAA,CAAe,SA1EhB,GAAA;EACA,GAAA,CAAA,EA0EM,OAAA,CAAM,SA1EZ,CA0EsB,cAAA,CAAe,OA1ErC,CAAA;CAEC,CAAA,EAyEF,oBAAA,CAAA,GAAA,CAAA,OAzEiB"}
package/dist/ui/table.js CHANGED
@@ -53,4 +53,5 @@ function TableCell({ className, ...props }) {
53
53
  }
54
54
 
55
55
  //#endregion
56
- export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow };
56
+ export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow };
57
+ //# sourceMappingURL=table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.js","names":[],"sources":["../../ui/table.tsx"],"sourcesContent":["import * as TablePrimitive from '@rn-primitives/table';\nimport * as React from 'react';\nimport { cn } from '@lssm/lib.ui-kit-core/utils';\nimport { TextClassContext } from './text';\n\nfunction Table({\n className,\n ...props\n}: TablePrimitive.RootProps & {\n ref?: React.RefObject<TablePrimitive.RootRef>;\n}) {\n return (\n <TablePrimitive.Root\n className={cn('w-full caption-bottom text-sm', className)}\n {...props}\n />\n );\n}\n\nfunction TableHeader({\n className,\n ...props\n}: TablePrimitive.HeaderProps & {\n ref?: React.RefObject<TablePrimitive.HeaderRef>;\n}) {\n return (\n <TablePrimitive.Header\n className={cn('border-border [&_tr]:border-b', className)}\n {...props}\n />\n );\n}\n\nfunction TableBody({\n className,\n style,\n ...props\n}: TablePrimitive.BodyProps & {\n ref?: React.RefObject<TablePrimitive.BodyRef>;\n}) {\n return (\n <TablePrimitive.Body\n className={cn(\n 'border-border flex-1 [&_tr:last-child]:border-0',\n className\n )}\n style={[{ minHeight: 2 }, style]}\n {...props}\n />\n );\n}\n\nfunction TableFooter({\n className,\n ...props\n}: TablePrimitive.FooterProps & {\n ref?: React.RefObject<TablePrimitive.FooterRef>;\n}) {\n return (\n <TablePrimitive.Footer\n className={cn(\n 'bg-muted/50 font-medium [&>tr]:last:border-b-0',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableRow({\n className,\n ...props\n}: TablePrimitive.RowProps & {\n ref?: React.RefObject<TablePrimitive.RowRef>;\n}) {\n return (\n <TablePrimitive.Row\n className={cn(\n 'border-border web:transition-colors web:hover:bg-muted/50 web:data-[state=selected]:bg-muted flex-row border-b',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableHead({\n className,\n ...props\n}: TablePrimitive.HeadProps & {\n ref?: React.RefObject<TablePrimitive.HeadRef>;\n}) {\n return (\n <TextClassContext.Provider value=\"text-muted-foreground\">\n <TablePrimitive.Head\n className={cn(\n 'h-12 justify-center px-4 text-left font-medium [&:has([role=checkbox])]:pr-0',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction TableCell({\n className,\n ...props\n}: TablePrimitive.CellProps & {\n ref?: React.RefObject<TablePrimitive.CellRef>;\n}) {\n return (\n <TablePrimitive.Cell\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pr-0',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Table,\n TableBody,\n TableCell,\n TableFooter,\n TableHead,\n TableHeader,\n TableRow,\n};\n"],"mappings":";;;;;;;AAKA,SAAS,MAAM,EACb,WACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ;;AAIN,SAAS,YAAY,EACnB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ;;AAIN,SAAS,UAAU,EACjB,WACA,OACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GACT,mDACA,UACD;EACD,OAAO,CAAC,EAAE,WAAW,GAAG,EAAE,MAAM;EAChC,GAAI;GACJ;;AAIN,SAAS,YAAY,EACnB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GACT,kDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,SAAS,EAChB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GACT,kHACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,UAAU,EACjB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAAS,OAAM;YAC/B,oBAAC,eAAe;GACd,WAAW,GACT,gFACA,UACD;GACD,GAAI;IACJ;GACwB;;AAIhC,SAAS,UAAU,EACjB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GACT,kDACA,UACD;EACD,GAAI;GACJ"}
package/dist/ui/tabs.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as React$1 from "react";
2
- import * as react_native46 from "react-native";
3
- import * as _rn_primitives_types1 from "@rn-primitives/types";
2
+ import * as react_native0 from "react-native";
3
+ import * as _rn_primitives_types0 from "@rn-primitives/types";
4
4
 
5
5
  //#region ui/tabs.d.ts
6
- declare const Tabs: React$1.ForwardRefExoticComponent<react_native46.ViewProps & {
6
+ declare const Tabs: React$1.ForwardRefExoticComponent<react_native0.ViewProps & {
7
7
  asChild?: boolean;
8
8
  } & {
9
9
  value: string;
@@ -11,22 +11,23 @@ declare const Tabs: React$1.ForwardRefExoticComponent<react_native46.ViewProps &
11
11
  orientation?: "horizontal" | "vertical";
12
12
  dir?: "ltr" | "rtl";
13
13
  activationMode?: "automatic" | "manual";
14
- } & React$1.RefAttributes<react_native46.View>>;
15
- declare const TabsList: React$1.ForwardRefExoticComponent<Omit<react_native46.ViewProps & {
14
+ } & React$1.RefAttributes<react_native0.View>>;
15
+ declare const TabsList: React$1.ForwardRefExoticComponent<Omit<react_native0.ViewProps & {
16
16
  asChild?: boolean;
17
- } & React$1.RefAttributes<react_native46.View>, "ref"> & React$1.RefAttributes<react_native46.View>>;
18
- declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<react_native46.PressableProps & React$1.RefAttributes<react_native46.View>, "ref"> & {
17
+ } & React$1.RefAttributes<react_native0.View>, "ref"> & React$1.RefAttributes<react_native0.View>>;
18
+ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<react_native0.PressableProps & React$1.RefAttributes<react_native0.View>, "ref"> & {
19
19
  asChild?: boolean;
20
20
  } & {
21
21
  onKeyDown?: (ev: React$1.KeyboardEvent) => void;
22
22
  onKeyUp?: (ev: React$1.KeyboardEvent) => void;
23
23
  } & {
24
24
  value: string;
25
- } & React$1.RefAttributes<react_native46.View>, "ref"> & React$1.RefAttributes<react_native46.View>>;
26
- declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<react_native46.ViewProps & {
25
+ } & React$1.RefAttributes<react_native0.View>, "ref"> & React$1.RefAttributes<react_native0.View>>;
26
+ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<react_native0.ViewProps & {
27
27
  asChild?: boolean;
28
- } & _rn_primitives_types1.ForceMountable & {
28
+ } & _rn_primitives_types0.ForceMountable & {
29
29
  value: string;
30
- } & React$1.RefAttributes<react_native46.View>, "ref"> & React$1.RefAttributes<react_native46.View>>;
30
+ } & React$1.RefAttributes<react_native0.View>, "ref"> & React$1.RefAttributes<react_native0.View>>;
31
31
  //#endregion
32
- export { Tabs, TabsContent, TabsList, TabsTrigger };
32
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
33
+ //# sourceMappingURL=tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.d.ts","names":[],"sources":["../../ui/tabs.tsx"],"sourcesContent":[],"mappings":";;;;;cAIM,MAAI,OAAA,CAAA,0BAAqB,aAAA,CAArB,SAAA;;;;EAAJ,aAAyB,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAAA,WAArB,CAAA,EAAA,YAAA,GAAA,UAAA;EAAA,GAAA,CAAA,EAAA,KAAA,GAAA,KAAA;;CAAA,wBAAA,CAAA,aAAA,CAAA,IAAA,CAAA,CAAA;cAEJ,QAFI,EAEI,OAAA,CAAA,yBAFJ,CAEI,IAFJ,CAcR,aAAA,CAZY,SAAA,GAFJ;EAEJ,OAAA,CAAA,EAAA,OAYJ;CAAA,wBAZY,CAAA,aAAA,CAAA,IAAA,CAAA,EAAA,KAAA,CAAA,wBAAA,CAAA,aAAA,CAAA,IAAA,CAAA,CAAA;cAeR,WAfQ,EAeG,OAAA,CAAA,yBAfH,CAeG,IAfH,CAeG,IAfH,CA4BZ,aAAA,CAbe,cAAA,GAAA,OAAA,CAAA,aAfH,CAeG,aAAA,CAAA,IAAA,CAfH,EAAA,KAAA,CAAA,GAAA;;CAAA,GAAA;EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;;CAAA,GAAA;EAAA,KAAA,EAAA,MAAA;AAAA,CAAA,wBA4BZ,oBAAA,EAAA,KAAA,CAAA,wBAAA,CAbe,aAAA,CAAA,IAAA,CAaf,CAAA;cAGI,WAhBW,EAgBA,OAAA,CAAA,yBAhBA,CAgBA,IAhBA,CA4Bf,aAAA,CAZe,SAAA,GAhBA;EAAA,OAAA,CAAA,EAAA,OAAA;CAAA,GAgBA,qBAAA,CAAA,cAAA,GAhBA;EAAA,KAAA,EAAA,MAAA;8EAgBA,aAAA,CAAA,IAAA"}
package/dist/ui/tabs.js CHANGED
@@ -25,4 +25,5 @@ const TabsContent = React$1.forwardRef(({ className, ...props }, ref) => /* @__P
25
25
  TabsContent.displayName = TabsPrimitive.Content.displayName;
26
26
 
27
27
  //#endregion
28
- export { Tabs, TabsContent, TabsList, TabsTrigger };
28
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
29
+ //# sourceMappingURL=tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.js","names":["React"],"sources":["../../ui/tabs.tsx"],"sourcesContent":["import * as TabsPrimitive from '@rn-primitives/tabs';\nimport * as React from 'react';\nimport { cn } from '@lssm/lib.ui-kit-core/utils';\n\nconst Tabs = TabsPrimitive.Root;\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n 'bg-muted text-muted-foreground web:inline-flex h-10 items-center justify-center rounded-md p-1',\n className\n )}\n {...props}\n />\n));\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n 'web:inline-flex web:whitespace-nowrap web:ring-offset-background web:transition-all web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 items-center justify-center rounded-xs px-3 py-1.5 text-sm font-medium disabled:pointer-events-none disabled:opacity-50',\n 'data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-2xs',\n className\n )}\n {...props}\n />\n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n 'web:ring-offset-background web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2',\n className\n )}\n {...props}\n />\n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n"],"mappings":";;;;;;AAIA,MAAM,OAAO,cAAc;AAE3B,MAAM,WAAWA,QAAM,YAGpB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc;CACR;CACL,WAAW,GACT,kGACA,UACD;CACD,GAAI;EACJ,CACF;AACF,SAAS,cAAc,cAAc,KAAK;AAE1C,MAAM,cAAcA,QAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc;CACR;CACL,WAAW,GACT,qUACA,wGACA,UACD;CACD,GAAI;EACJ,CACF;AACF,YAAY,cAAc,cAAc,QAAQ;AAEhD,MAAM,cAAcA,QAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc;CACR;CACL,WAAW,GACT,oJACA,UACD;CACD,GAAI;EACJ,CACF;AACF,YAAY,cAAc,cAAc,QAAQ"}
package/dist/ui/text.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
2
  import { Text as Text$1 } from "react-native";
3
- import * as react_jsx_runtime48 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
4
4
 
5
5
  //#region ui/text.d.ts
6
6
  declare const TextClassContext: React$1.Context<string | undefined>;
@@ -15,6 +15,7 @@ declare function Text({
15
15
  }: React$1.ComponentProps<typeof Text$1> & {
16
16
  ref?: React$1.RefObject<React$1.ComponentRef<typeof Text$1>>;
17
17
  asChild?: boolean;
18
- }): react_jsx_runtime48.JSX.Element;
18
+ }): react_jsx_runtime1.JSX.Element;
19
19
  //#endregion
20
- export { Text, TextClassContext, TextProps };
20
+ export { Text, TextClassContext, TextProps };
21
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","names":[],"sources":["../../ui/text.tsx"],"sourcesContent":[],"mappings":";;;;;cAKM,kBAAgB,OAAA,CAAA;KAEV,SAAA,GAAY,OAAA,CAAM,sBAAsB;QAC5C,OAAA,CAAM,UAAU,OAAA,CAAM,oBAAoB;EAH5C,OAAA,CAAA,EAAA,OAAA;AAEN,CAAA;iBAKS,IAAA,CAL2C;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;CAAA,EASjD,OAAA,CAAM,cAT2C,CAAA,OASrB,MATqB,CAAA,GAAA;EAA5B,GAAA,CAAA,EAUhB,OAAA,CAAM,SAVgB,CAUN,OAAA,CAAM,YAVA,CAAA,OAUoB,MAVpB,CAAA,CAAA;EACoB,OAAA,CAAA,EAAA,OAAA;CAA1B,CAAA,EAWvB,kBAAA,CAAA,GAAA,CAAA,OAX6B"}
package/dist/ui/text.js CHANGED
@@ -15,4 +15,5 @@ function Text({ className, asChild = false, ...props }) {
15
15
  }
16
16
 
17
17
  //#endregion
18
- export { Text, TextClassContext };
18
+ export { Text, TextClassContext };
19
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.js","names":["React","RNText"],"sources":["../../ui/text.tsx"],"sourcesContent":["import * as Slot from '@rn-primitives/slot';\nimport * as React from 'react';\nimport { Text as RNText } from 'react-native';\nimport { cn } from '@lssm/lib.ui-kit-core/utils';\n\nconst TextClassContext = React.createContext<string | undefined>(undefined);\n\nexport type TextProps = React.ComponentProps<typeof RNText> & {\n ref?: React.RefObject<React.ComponentRef<typeof RNText>>;\n asChild?: boolean;\n};\n\nfunction Text({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<typeof RNText> & {\n ref?: React.RefObject<React.ComponentRef<typeof RNText>>;\n asChild?: boolean;\n}) {\n const textClass = React.useContext(TextClassContext);\n const Component = asChild ? Slot.Text : RNText;\n return (\n <Component\n className={cn(\n 'text-foreground web:select-text text-base',\n textClass,\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Text, TextClassContext };\n"],"mappings":";;;;;;;AAKA,MAAM,mBAAmBA,QAAM,cAAkC,OAAU;AAO3E,SAAS,KAAK,EACZ,WACA,UAAU,OACV,GAAG,SAIF;CACD,MAAM,YAAYA,QAAM,WAAW,iBAAiB;AAEpD,QACE,oBAFgB,UAAU,KAAK,OAAOC;EAGpC,WAAW,GACT,6CACA,WACA,UACD;EACD,GAAI;GACJ"}
@@ -6,4 +6,5 @@ declare const Textarea: React$1.ForwardRefExoticComponent<Omit<TextInputProps &
6
6
  ref?: React$1.RefObject<TextInput>;
7
7
  }, "ref"> & React$1.RefAttributes<TextInput>>;
8
8
  //#endregion
9
- export { Textarea };
9
+ export { Textarea };
10
+ //# sourceMappingURL=textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.d.ts","names":[],"sources":["../../ui/textarea.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,UAAQ,OAAA,CAAA,0BAAA,KAAA;QAGJ,OAAA,CAAM,UAAU;AANoC,CAAA,EAAA,KAGxD,CAAA,wBAmBJ,UAAA,CAAA,CAAA"}
@@ -16,4 +16,5 @@ const Textarea = React$1.forwardRef(({ className, placeholderClassName, ...props
16
16
  Textarea.displayName = "Textarea";
17
17
 
18
18
  //#endregion
19
- export { Textarea };
19
+ export { Textarea };
20
+ //# sourceMappingURL=textarea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.js","names":["React"],"sources":["../../ui/textarea.tsx"],"sourcesContent":["import * as React from 'react';\nimport { TextInput, type TextInputProps } from 'react-native';\nimport { cn } from '@lssm/lib.ui-kit-core/utils';\n\nconst Textarea = React.forwardRef<\n TextInput,\n TextInputProps & {\n ref?: React.RefObject<TextInput>;\n }\n>(({ className, placeholderClassName, ...props }, ref) => {\n return (\n <TextInput\n ref={ref}\n className={cn(\n 'native:text-lg native:leading-tight border-input bg-background text-foreground placeholder:text-muted-foreground web:flex web:ring-offset-background web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 min-h-[80px] w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:font-medium lg:text-sm',\n props.editable === false && 'web:cursor-not-allowed opacity-50',\n className\n )}\n placeholderClassName={cn('text-muted-foreground', placeholderClassName)}\n multiline\n {...props}\n />\n );\n});\n\nTextarea.displayName = 'Textarea';\n\nexport { Textarea };\n"],"mappings":";;;;;;AAIA,MAAM,WAAWA,QAAM,YAKpB,EAAE,WAAW,sBAAsB,GAAG,SAAS,QAAQ;AACxD,QACE,oBAAC;EACM;EACL,WAAW,GACT,sYACA,MAAM,aAAa,SAAS,qCAC5B,UACD;EACD,sBAAsB,GAAG,yBAAyB,qBAAqB;EACvE;EACA,GAAI;GACJ;EAEJ;AAEF,SAAS,cAAc"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime47 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
2
2
 
3
3
  //#region ui/time-picker.d.ts
4
4
  interface TimePickerProps {
@@ -16,6 +16,7 @@ declare function TimePicker({
16
16
  placeholder,
17
17
  is24Hour,
18
18
  className
19
- }: TimePickerProps): react_jsx_runtime47.JSX.Element;
19
+ }: TimePickerProps): react_jsx_runtime3.JSX.Element;
20
20
  //#endregion
21
- export { TimePicker, TimePickerProps };
21
+ export { TimePicker, TimePickerProps };
22
+ //# sourceMappingURL=time-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.d.ts","names":[],"sources":["../../ui/time-picker.tsx"],"sourcesContent":[],"mappings":";;;UAUiB,eAAA;SACR;mBACU;EAFF,QAAA,CAAA,EAAA,OAAe;EAsBhB,WAAA,CAAA,EAAU,MAAA;EACxB,QAAA,CAAA,EAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;;AAEA,iBAJc,UAAA,CAId;EAAA,KAAA;EAAA,QAAA;EAAA,QAAA;EAAA,WAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAGC,eAHD,CAAA,EAGgB,kBAAA,CAAA,GAAA,CAAA,OAHhB"}
@@ -49,4 +49,5 @@ function TimePicker({ value, onChange, disabled, placeholder = "Select time", is
49
49
  }
50
50
 
51
51
  //#endregion
52
- export { TimePicker };
52
+ export { TimePicker };
53
+ //# sourceMappingURL=time-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.js","names":["Text"],"sources":["../../ui/time-picker.tsx"],"sourcesContent":["import React, { useMemo, useState } from 'react';\nimport { Platform, Pressable, View } from 'react-native';\nimport type {\n AndroidNativeProps,\n IOSNativeProps,\n} from '@react-native-community/datetimepicker';\nimport DateTimePicker from '@react-native-community/datetimepicker';\nimport { cn } from '@lssm/lib.ui-kit-core/utils';\nimport { Text } from './text';\n\nexport interface TimePickerProps {\n value: Date | null;\n onChange: (date: Date | null) => void;\n disabled?: boolean;\n placeholder?: string;\n is24Hour?: boolean;\n className?: string;\n}\n\nfunction formatTimeDisplay(date: Date | null, is24Hour?: boolean) {\n if (!date) return '';\n try {\n return date.toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n hour12: !is24Hour,\n });\n } catch {\n return '';\n }\n}\n\nexport function TimePicker({\n value,\n onChange,\n disabled,\n placeholder = 'Select time',\n is24Hour = true,\n className,\n}: TimePickerProps) {\n const [show, setShow] = useState(false);\n\n const pickerProps = useMemo<Partial<AndroidNativeProps & IOSNativeProps>>(\n () => ({\n is24Hour,\n timeZoneName: undefined,\n }),\n [is24Hour]\n );\n\n const handleChange = (_event: unknown, selectedDate?: Date | undefined) => {\n if (Platform.OS !== 'ios') setShow(false);\n if (selectedDate) {\n onChange(selectedDate);\n }\n };\n\n return (\n <View className={cn('w-full', className)}>\n <Pressable\n disabled={disabled}\n onPress={() => setShow(true)}\n className={cn(\n 'border-input bg-background h-12 flex-row items-center rounded-md border px-3',\n disabled && 'opacity-50'\n )}\n >\n <Text\n className={cn('text-foreground text-base', !value && 'opacity-50')}\n >\n {value ? formatTimeDisplay(value, is24Hour) : placeholder}\n </Text>\n </Pressable>\n {show && (\n <DateTimePicker\n value={value ?? new Date()}\n mode=\"time\"\n display={Platform.OS === 'ios' ? 'spinner' : 'default'}\n onChange={handleChange}\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n {...(pickerProps as any)}\n />\n )}\n </View>\n );\n}\n"],"mappings":";;;;;;;;AAmBA,SAAS,kBAAkB,MAAmB,UAAoB;AAChE,KAAI,CAAC,KAAM,QAAO;AAClB,KAAI;AACF,SAAO,KAAK,mBAAmB,EAAE,EAAE;GACjC,MAAM;GACN,QAAQ;GACR,QAAQ,CAAC;GACV,CAAC;SACI;AACN,SAAO;;;AAIX,SAAgB,WAAW,EACzB,OACA,UACA,UACA,cAAc,eACd,WAAW,MACX,aACkB;CAClB,MAAM,CAAC,MAAM,WAAW,SAAS,MAAM;CAEvC,MAAM,cAAc,eACX;EACL;EACA,cAAc;EACf,GACD,CAAC,SAAS,CACX;CAED,MAAM,gBAAgB,QAAiB,iBAAoC;AACzE,MAAI,SAAS,OAAO,MAAO,SAAQ,MAAM;AACzC,MAAI,aACF,UAAS,aAAa;;AAI1B,QACE,qBAAC;EAAK,WAAW,GAAG,UAAU,UAAU;aACtC,oBAAC;GACW;GACV,eAAe,QAAQ,KAAK;GAC5B,WAAW,GACT,gFACA,YAAY,aACb;aAED,oBAACA;IACC,WAAW,GAAG,6BAA6B,CAAC,SAAS,aAAa;cAEjE,QAAQ,kBAAkB,OAAO,SAAS,GAAG;KACzC;IACG,EACX,QACC,oBAAC;GACC,OAAO,yBAAS,IAAI,MAAM;GAC1B,MAAK;GACL,SAAS,SAAS,OAAO,QAAQ,YAAY;GAC7C,UAAU;GAEV,GAAK;IACL;GAEC"}
@@ -1,7 +1,7 @@
1
1
  import { toggleVariants } from "./toggle.js";
2
2
  import * as React$1 from "react";
3
3
  import { LucideIcon } from "lucide-react-native";
4
- import * as react_jsx_runtime60 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
5
5
  import { VariantProps } from "class-variance-authority";
6
6
  import * as ToggleGroupPrimitive from "@rn-primitives/toggle-group";
7
7
 
@@ -14,7 +14,7 @@ declare function ToggleGroup({
14
14
  ...props
15
15
  }: ToggleGroupPrimitive.RootProps & VariantProps<typeof toggleVariants> & {
16
16
  ref?: React$1.RefObject<ToggleGroupPrimitive.RootRef>;
17
- }): react_jsx_runtime60.JSX.Element;
17
+ }): react_jsx_runtime5.JSX.Element;
18
18
  declare function ToggleGroupItem({
19
19
  className,
20
20
  children,
@@ -23,13 +23,14 @@ declare function ToggleGroupItem({
23
23
  ...props
24
24
  }: ToggleGroupPrimitive.ItemProps & VariantProps<typeof toggleVariants> & {
25
25
  ref?: React$1.RefObject<ToggleGroupPrimitive.ItemRef>;
26
- }): react_jsx_runtime60.JSX.Element;
26
+ }): react_jsx_runtime5.JSX.Element;
27
27
  declare function ToggleGroupIcon({
28
28
  className,
29
29
  icon: Icon,
30
30
  ...props
31
31
  }: React$1.ComponentPropsWithoutRef<LucideIcon> & {
32
32
  icon: LucideIcon;
33
- }): react_jsx_runtime60.JSX.Element;
33
+ }): react_jsx_runtime5.JSX.Element;
34
34
  //#endregion
35
- export { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };
35
+ export { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };
36
+ //# sourceMappingURL=toggle-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle-group.d.ts","names":[],"sources":["../../ui/toggle-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBAYS,WAAA;;;;;;GAMN,oBAAA,CAAqB,YACtB,oBAAoB;QACZ,OAAA,CAAM,UAAU,oBAAA,CAAqB;IAC5C,kBAAA,CAAA,GAAA,CAAA;AAhBiE,iBA0C3D,eAAA,CAnCW;EAAA,SAAA;EAAA,QAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;CAAA,EAyCjB,oBAAA,CAAqB,SAzCJ,GA0ClB,YA1CkB,CAAA,OA0CE,cA1CF,CAAA,GAAA;EAClB,GAAA,CAAA,EA0CQ,OAAA,CAAM,SA1Cd,CA0CwB,oBAAA,CAAqB,OA1C7C,CAAA;CACA,CAAA,EA0CC,kBAAA,CAAA,GAAA,CAAA,OA1CD;iBA0EO,eAAA,CAzEP;EAAA,SAAA;EAAA,IAAA,EA2EM,IA3EN;EAAA,GAAA;CAAA,EA6EC,OAAA,CAAM,wBA7EP,CA6EgC,UA7EhC,CAAA,GAAA;EACA,IAAA,EA6EM,UA7EN;CAEC,CAAA,EA4EF,kBAAA,CAAA,GAAA,CAAA,OA5EuB"}
@@ -51,4 +51,5 @@ function ToggleGroupIcon({ className, icon: Icon, ...props }) {
51
51
  }
52
52
 
53
53
  //#endregion
54
- export { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };
54
+ export { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };
55
+ //# sourceMappingURL=toggle-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle-group.js","names":["React"],"sources":["../../ui/toggle-group.tsx"],"sourcesContent":["import type { VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react-native';\nimport * as React from 'react';\nimport { toggleTextVariants, toggleVariants } from './toggle';\nimport { TextClassContext } from './text';\nimport * as ToggleGroupPrimitive from '@rn-primitives/toggle-group';\nimport { cn } from '@lssm/lib.ui-kit-core/utils';\n\nconst ToggleGroupContext = React.createContext<VariantProps<\n typeof toggleVariants\n> | null>(null);\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n children,\n ...props\n}: ToggleGroupPrimitive.RootProps &\n VariantProps<typeof toggleVariants> & {\n ref?: React.RefObject<ToggleGroupPrimitive.RootRef>;\n }) {\n return (\n <ToggleGroupPrimitive.Root\n className={cn(\n 'flex flex-row items-center justify-center gap-1',\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n );\n}\n\nfunction useToggleGroupContext() {\n const context = React.useContext(ToggleGroupContext);\n if (context === null) {\n throw new Error(\n 'ToggleGroup compound components cannot be rendered outside the ToggleGroup component'\n );\n }\n return context;\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n ...props\n}: ToggleGroupPrimitive.ItemProps &\n VariantProps<typeof toggleVariants> & {\n ref?: React.RefObject<ToggleGroupPrimitive.ItemRef>;\n }) {\n const context = useToggleGroupContext();\n const { value } = ToggleGroupPrimitive.useRootContext();\n\n return (\n <TextClassContext.Provider\n value={cn(\n toggleTextVariants({ variant, size }),\n ToggleGroupPrimitive.utils.getIsSelected(value, props.value)\n ? 'text-accent-foreground'\n : 'web:group-hover:text-muted-foreground'\n )}\n >\n <ToggleGroupPrimitive.Item\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n }),\n props.disabled && 'web:pointer-events-none opacity-50',\n ToggleGroupPrimitive.utils.getIsSelected(value, props.value) &&\n 'bg-accent',\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n </TextClassContext.Provider>\n );\n}\n\nfunction ToggleGroupIcon({\n className,\n icon: Icon,\n ...props\n}: React.ComponentPropsWithoutRef<LucideIcon> & {\n icon: LucideIcon;\n}) {\n const textClass = React.useContext(TextClassContext);\n return <Icon className={cn(textClass, className)} {...props} />;\n}\n\nexport { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };\n"],"mappings":";;;;;;;;AAQA,MAAM,qBAAqBA,QAAM,cAEvB,KAAK;AAEf,SAAS,YAAY,EACnB,WACA,SACA,MACA,UACA,GAAG,SAIA;AACH,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,mDACA,UACD;EACD,GAAI;YAEJ,oBAAC,mBAAmB;GAAS,OAAO;IAAE;IAAS;IAAM;GAClD;IAC2B;GACJ;;AAIhC,SAAS,wBAAwB;CAC/B,MAAM,UAAUA,QAAM,WAAW,mBAAmB;AACpD,KAAI,YAAY,KACd,OAAM,IAAI,MACR,uFACD;AAEH,QAAO;;AAGT,SAAS,gBAAgB,EACvB,WACA,UACA,SACA,MACA,GAAG,SAIA;CACH,MAAM,UAAU,uBAAuB;CACvC,MAAM,EAAE,UAAU,qBAAqB,gBAAgB;AAEvD,QACE,oBAAC,iBAAiB;EAChB,OAAO,GACL,mBAAmB;GAAE;GAAS;GAAM,CAAC,EACrC,qBAAqB,MAAM,cAAc,OAAO,MAAM,MAAM,GACxD,2BACA,wCACL;YAED,oBAAC,qBAAqB;GACpB,WAAW,GACT,eAAe;IACb,SAAS,QAAQ,WAAW;IAC5B,MAAM,QAAQ,QAAQ;IACvB,CAAC,EACF,MAAM,YAAY,sCAClB,qBAAqB,MAAM,cAAc,OAAO,MAAM,MAAM,IAC1D,aACF,UACD;GACD,GAAI;GAEH;IACyB;GACF;;AAIhC,SAAS,gBAAgB,EACvB,WACA,MAAM,MACN,GAAG,SAGF;AAED,QAAO,oBAAC;EAAK,WAAW,GADNA,QAAM,WAAW,iBAAiB,EACd,UAAU;EAAE,GAAI;GAAS"}
@@ -1,19 +1,19 @@
1
1
  import * as React$1 from "react";
2
2
  import { LucideIcon } from "lucide-react-native";
3
- import * as react_jsx_runtime64 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
  import * as TogglePrimitive from "@rn-primitives/toggle";
6
- import * as class_variance_authority_types2 from "class-variance-authority/types";
6
+ import * as class_variance_authority_types0 from "class-variance-authority/types";
7
7
 
8
8
  //#region ui/toggle.d.ts
9
9
  declare const toggleVariants: (props?: ({
10
10
  variant?: "default" | "outline" | null | undefined;
11
11
  size?: "default" | "sm" | "lg" | null | undefined;
12
- } & class_variance_authority_types2.ClassProp) | undefined) => string;
12
+ } & class_variance_authority_types0.ClassProp) | undefined) => string;
13
13
  declare const toggleTextVariants: (props?: ({
14
14
  variant?: "default" | "outline" | null | undefined;
15
15
  size?: "default" | "sm" | "lg" | null | undefined;
16
- } & class_variance_authority_types2.ClassProp) | undefined) => string;
16
+ } & class_variance_authority_types0.ClassProp) | undefined) => string;
17
17
  declare function Toggle({
18
18
  className,
19
19
  variant,
@@ -21,13 +21,14 @@ declare function Toggle({
21
21
  ...props
22
22
  }: TogglePrimitive.RootProps & VariantProps<typeof toggleVariants> & VariantProps<typeof toggleVariants> & {
23
23
  ref?: React$1.RefObject<TogglePrimitive.RootRef>;
24
- }): react_jsx_runtime64.JSX.Element;
24
+ }): react_jsx_runtime9.JSX.Element;
25
25
  declare function ToggleIcon({
26
26
  className,
27
27
  icon: Icon,
28
28
  ...props
29
29
  }: React$1.ComponentPropsWithoutRef<LucideIcon> & {
30
30
  icon: LucideIcon;
31
- }): react_jsx_runtime64.JSX.Element;
31
+ }): react_jsx_runtime9.JSX.Element;
32
32
  //#endregion
33
- export { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };
33
+ export { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };
34
+ //# sourceMappingURL=toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle.d.ts","names":[],"sources":["../../ui/toggle.tsx"],"sourcesContent":[],"mappings":";;;;;;;;cAOM;;;IAoBL,+BAAA,CAAA;AAxB8B,cA0BzB,kBAFL,EAAA,CAAA,KAyBC,CAzBD,EAAA,CAAA;EAEK,OAAA,CAAA,EAAA,SAAA,GAoBL,SAAA,GAAA,IAAA,GAAA,SAAA;EAEQ,IAAA,CAAA,EAAA,SAAM,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;CACb,GAHD,+BAAA,CAAA,SAGC,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBADO,MAAA,CAEP;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;CAAA,EAGC,eAAA,CAAgB,SAHjB,GAIA,YAJA,CAAA,OAIoB,cAJpB,CAAA,GAKA,YALA,CAAA,OAKoB,cALpB,CAAA,GAAA;EACA,GAAA,CAAA,EAKQ,OAAA,CAAM,SALd,CAKwB,eAAA,CAAgB,OALxC,CAAA;CAEC,CAAA,EAIA,kBAAA,CAAA,GAAA,CAAA,OAJgB;iBA4BV,UAAA,CA3Ba;EAAA,SAAA;EAAA,IAAA,EA6Bd,IA7Bc;EAAA,GAAA;CAAA,EA+BnB,OAAA,CAAM,wBA/Ba,CA+BY,UA/BZ,CAAA,GAAA;EAApB,IAAA,EAgCM,UAhCN;CACoB,CAAA,EAgCrB,kBAAA,CAAA,GAAA,CAAA,OAhCqB"}
package/dist/ui/toggle.js CHANGED
@@ -63,4 +63,5 @@ function ToggleIcon({ className, icon: Icon, ...props }) {
63
63
  }
64
64
 
65
65
  //#endregion
66
- export { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };
66
+ export { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };
67
+ //# sourceMappingURL=toggle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle.js","names":["React"],"sources":["../../ui/toggle.tsx"],"sourcesContent":["import * as TogglePrimitive from '@rn-primitives/toggle';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react-native';\nimport * as React from 'react';\nimport { cn } from '@lssm/lib.ui-kit-core/utils';\nimport { TextClassContext } from './text';\n\nconst toggleVariants = cva(\n 'web:group web:inline-flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:hover:bg-muted active:bg-muted web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n outline:\n 'border border-input bg-transparent web:hover:bg-accent active:bg-accent active:bg-accent',\n },\n size: {\n default: 'h-10 px-3 native:h-12 native:px-[12]',\n sm: 'h-9 px-2.5 native:h-10 native:px-[9]',\n lg: 'h-11 px-5 native:h-14 native:px-6',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nconst toggleTextVariants = cva(\n 'text-sm native:text-base text-foreground font-medium',\n {\n variants: {\n variant: {\n default: '',\n outline:\n 'web:group-hover:text-accent-foreground web:group-active:text-accent-foreground',\n },\n size: {\n default: '',\n sm: '',\n lg: '',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nfunction Toggle({\n className,\n variant,\n size,\n ...props\n}: TogglePrimitive.RootProps &\n VariantProps<typeof toggleVariants> &\n VariantProps<typeof toggleVariants> & {\n ref?: React.RefObject<TogglePrimitive.RootRef>;\n }) {\n return (\n <TextClassContext.Provider\n value={cn(\n toggleTextVariants({ variant, size }),\n props.pressed\n ? 'text-accent-foreground'\n : 'web:group-hover:text-muted-foreground',\n className\n )}\n >\n <TogglePrimitive.Root\n className={cn(\n toggleVariants({ variant, size }),\n props.disabled && 'web:pointer-events-none opacity-50',\n props.pressed && 'bg-accent',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction ToggleIcon({\n className,\n icon: Icon,\n ...props\n}: React.ComponentPropsWithoutRef<LucideIcon> & {\n icon: LucideIcon;\n}) {\n const textClass = React.useContext(TextClassContext);\n return <Icon className={cn(textClass, className)} {...props} />;\n}\n\nexport { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };\n"],"mappings":";;;;;;;;AAOA,MAAM,iBAAiB,IACrB,8QACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SACE;GACH;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,MAAM,qBAAqB,IACzB,wDACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SACE;GACH;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,SAAS,OAAO,EACd,WACA,SACA,MACA,GAAG,SAKA;AACH,QACE,oBAAC,iBAAiB;EAChB,OAAO,GACL,mBAAmB;GAAE;GAAS;GAAM,CAAC,EACrC,MAAM,UACF,2BACA,yCACJ,UACD;YAED,oBAAC,gBAAgB;GACf,WAAW,GACT,eAAe;IAAE;IAAS;IAAM,CAAC,EACjC,MAAM,YAAY,sCAClB,MAAM,WAAW,aACjB,UACD;GACD,GAAI;IACJ;GACwB;;AAIhC,SAAS,WAAW,EAClB,WACA,MAAM,MACN,GAAG,SAGF;AAED,QAAO,oBAAC;EAAK,WAAW,GADNA,QAAM,WAAW,iBAAiB,EACd,UAAU;EAAE,GAAI;GAAS"}
@@ -1,18 +1,18 @@
1
1
  import * as React$1 from "react";
2
- import * as react_native17 from "react-native";
3
- import * as react_jsx_runtime63 from "react/jsx-runtime";
2
+ import * as react_native11 from "react-native";
3
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
4
4
  import * as _rn_primitives_tooltip0 from "@rn-primitives/tooltip";
5
5
 
6
6
  //#region ui/tooltip.d.ts
7
- declare const Tooltip: React$1.ForwardRefExoticComponent<react_native17.ViewProps & {
7
+ declare const Tooltip: React$1.ForwardRefExoticComponent<react_native11.ViewProps & {
8
8
  asChild?: boolean;
9
9
  } & {
10
10
  onOpenChange?: (open: boolean) => void;
11
11
  delayDuration?: number;
12
12
  skipDelayDuration?: number;
13
13
  disableHoverableContent?: boolean;
14
- } & React$1.RefAttributes<react_native17.View>>;
15
- declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<react_native17.PressableProps & React$1.RefAttributes<react_native17.View>, "ref"> & {
14
+ } & React$1.RefAttributes<react_native11.View>>;
15
+ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<react_native11.PressableProps & React$1.RefAttributes<react_native11.View>, "ref"> & {
16
16
  asChild?: boolean;
17
17
  } & {
18
18
  onKeyDown?: (ev: React$1.KeyboardEvent) => void;
@@ -26,6 +26,7 @@ declare function TooltipContent({
26
26
  }: _rn_primitives_tooltip0.ContentProps & {
27
27
  ref?: React$1.RefObject<_rn_primitives_tooltip0.ContentRef>;
28
28
  portalHost?: string;
29
- }): react_jsx_runtime63.JSX.Element;
29
+ }): react_jsx_runtime11.JSX.Element;
30
30
  //#endregion
31
- export { Tooltip, TooltipContent, TooltipTrigger };
31
+ export { Tooltip, TooltipContent, TooltipTrigger };
32
+ //# sourceMappingURL=tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../ui/tooltip.tsx"],"sourcesContent":[],"mappings":";;;;;;cAOM,SAAO,OAAA,CAAA,0BAAwB,cAAA,CAAxB,SAAA;;;;EAAP,aAA+B,CAAA,EAAA,MAAA;EAAA,iBAAxB,CAAA,EAAA,MAAA;EAAA,uBAAA,CAAA,EAAA,OAAA;0BAAA,cAAA,CAAA,IAAA;cAEP,cAFO,EAEO,OAAA,CAAA,yBAFP,CAEO,IAFP,CAEkC,cAAA,CAA3B,cAAA,GAAA,OAAA,CAAA,aAFP,CAEO,cAAA,CAAA,IAAA,CAFP,EAAA,KAAA,CAAA,GAAA;EAAA,OAAA,CAAA,EAAA,OAAA;AAAA,CAAA,GAEP;EAAyC,SAAA,CAAA,EAA3B,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;CAAA,wBAAA,oCAAA,CAAA;iBAEX,cAAA,CAFW;EAAA,SAAA;EAAA,UAAA;EAAA,UAAA;EAAA,GAAA;CAAA,EAOjB,uBAAA,CAAiB,YAPA,GAAA;QAQZ,OAAA,CAAM,UAAU,uBAAA,CAAiB;;IAExC,mBAAA,CAAA,GAAA,CAAA"}
@@ -37,4 +37,5 @@ function TooltipContent({ className, sideOffset = 4, portalHost, ...props }) {
37
37
  }
38
38
 
39
39
  //#endregion
40
- export { Tooltip, TooltipContent, TooltipTrigger };
40
+ export { Tooltip, TooltipContent, TooltipTrigger };
41
+ //# sourceMappingURL=tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.js","names":[],"sources":["../../ui/tooltip.tsx"],"sourcesContent":["import * as TooltipPrimitive from '@rn-primitives/tooltip';\nimport * as React from 'react';\nimport { Platform, StyleSheet } from 'react-native';\nimport Animated, { FadeIn, FadeOut } from 'react-native-reanimated';\nimport { TextClassContext } from './text';\nimport { cn } from '@lssm/lib.ui-kit-core/utils';\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nfunction TooltipContent({\n className,\n sideOffset = 4,\n portalHost,\n ...props\n}: TooltipPrimitive.ContentProps & {\n ref?: React.RefObject<TooltipPrimitive.ContentRef>;\n portalHost?: string;\n}) {\n return (\n <TooltipPrimitive.Portal hostName={portalHost}>\n <TooltipPrimitive.Overlay\n style={Platform.OS !== 'web' ? StyleSheet.absoluteFill : undefined}\n >\n <Animated.View\n entering={Platform.select({ web: undefined, default: FadeIn })}\n exiting={Platform.select({ web: undefined, default: FadeOut })}\n >\n <TextClassContext.Provider value=\"text-sm native:text-base text-popover-foreground\">\n <TooltipPrimitive.Content\n sideOffset={sideOffset}\n className={cn(\n 'border-border bg-popover shadow-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 web:animate-in web:fade-in-0 web:zoom-in-95 z-50 overflow-hidden rounded-md border px-3 py-1.5 shadow-md',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n </Animated.View>\n </TooltipPrimitive.Overlay>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport { Tooltip, TooltipContent, TooltipTrigger };\n"],"mappings":";;;;;;;;;AAOA,MAAM,UAAU,iBAAiB;AAEjC,MAAM,iBAAiB,iBAAiB;AAExC,SAAS,eAAe,EACtB,WACA,aAAa,GACb,YACA,GAAG,SAIF;AACD,QACE,oBAAC,iBAAiB;EAAO,UAAU;YACjC,oBAAC,iBAAiB;GAChB,OAAO,SAAS,OAAO,QAAQ,WAAW,eAAe;aAEzD,oBAAC,SAAS;IACR,UAAU,SAAS,OAAO;KAAE,KAAK;KAAW,SAAS;KAAQ,CAAC;IAC9D,SAAS,SAAS,OAAO;KAAE,KAAK;KAAW,SAAS;KAAS,CAAC;cAE9D,oBAAC,iBAAiB;KAAS,OAAM;eAC/B,oBAAC,iBAAiB;MACJ;MACZ,WAAW,GACT,qTACA,UACD;MACD,GAAI;OACJ;MACwB;KACd;IACS;GACH"}
@@ -1,5 +1,5 @@
1
1
  import { TextProps } from "./text.js";
2
- import * as react_jsx_runtime49 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
3
3
 
4
4
  //#region ui/typography.d.ts
5
5
  type TypographyProps = TextProps & {
@@ -9,56 +9,57 @@ declare function H1({
9
9
  className,
10
10
  asChild,
11
11
  ...props
12
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
12
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
13
13
  declare function H2({
14
14
  className,
15
15
  asChild,
16
16
  ...props
17
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
17
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
18
18
  declare function H3({
19
19
  className,
20
20
  asChild,
21
21
  ...props
22
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
22
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
23
23
  declare function H4({
24
24
  className,
25
25
  asChild,
26
26
  ...props
27
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
27
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
28
28
  declare function P({
29
29
  className,
30
30
  asChild,
31
31
  ...props
32
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
32
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
33
33
  declare function BlockQuote({
34
34
  className,
35
35
  asChild,
36
36
  ...props
37
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
37
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
38
38
  declare function Code({
39
39
  className,
40
40
  asChild,
41
41
  ...props
42
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
42
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
43
43
  declare function Lead({
44
44
  className,
45
45
  asChild,
46
46
  ...props
47
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
47
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
48
48
  declare function Large({
49
49
  className,
50
50
  asChild,
51
51
  ...props
52
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
52
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
53
53
  declare function Small({
54
54
  className,
55
55
  asChild,
56
56
  ...props
57
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
57
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
58
58
  declare function Muted({
59
59
  className,
60
60
  asChild,
61
61
  ...props
62
- }: TypographyProps): react_jsx_runtime49.JSX.Element;
62
+ }: TypographyProps): react_jsx_runtime12.JSX.Element;
63
63
  //#endregion
64
- export { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small, TypographyProps };
64
+ export { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small, TypographyProps };
65
+ //# sourceMappingURL=typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.d.ts","names":[],"sources":["../../ui/typography.tsx"],"sourcesContent":[],"mappings":";;;;KAMY,eAAA,GAAkB;;;AAA9B,iBAIS,EAAA,CAJG;EAAe,SAAA;EAAA,OAAG;EAAA,GAAS;AAAA,CAAA,EAIe,eAJf,CAAA,EAI8B,mBAAA,CAAA,GAAA,CAAA,OAJ9B;AAErC,iBAiBO,EAAA,CAfE;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAe2C,eAf3C,CAAA,EAe0D,mBAAA,CAAA,GAAA,CAAA,OAf1D;iBA8BF,EAAA,CA9BK;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA8BwC,eA9BxC,CAAA,EA8BuD,mBAAA,CAAA,GAAA,CAAA,OA9BvD;iBA6CL,EAAA,CA7CgB;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA6C6B,eA7C7B,CAAA,EA6C4C,mBAAA,CAAA,GAAA,CAAA,OA7C5C;iBA4DhB,CAAA,CA5D6C;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA4DD,eA5DC,CAAA,EA4Dc,mBAAA,CAAA,GAAA,CAAA,OA5Dd;iBAsE7C,UAAA,CAtE4D;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAsEP,eAtEO,CAAA,EAsEQ,mBAAA,CAAA,GAAA,CAAA,OAtER;iBAqF5D,IAAA,CArF4D;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAqFb,eArFa,CAAA,EAqFE,mBAAA,CAAA,GAAA,CAAA,OArFF;AAAA,iBAoG5D,IAAA,CArFE;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAqF6C,eArF7C,CAAA,EAqF4D,mBAAA,CAAA,GAAA,CAAA,OArF5D;iBA+FF,KAAA,CA/FK;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA+F2C,eA/F3C,CAAA,EA+F0D,mBAAA,CAAA,GAAA,CAAA,OA/F1D;iBA4GL,KAAA,CA5GgB;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA4GgC,eA5GhC,CAAA,EA4G+C,mBAAA,CAAA,GAAA,CAAA,OA5G/C;iBAyHhB,KAAA,CAzH6C;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAyHG,eAzHH,CAAA,EAyHkB,mBAAA,CAAA,GAAA,CAAA,OAzHlB"}
@@ -84,4 +84,5 @@ function Muted({ className, asChild = false, ...props }) {
84
84
  }
85
85
 
86
86
  //#endregion
87
- export { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small };
87
+ export { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small };
88
+ //# sourceMappingURL=typography.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.js","names":["Text"],"sources":["../../ui/typography.tsx"],"sourcesContent":["import * as Slot from '@rn-primitives/slot';\nimport * as React from 'react';\nimport { Platform } from 'react-native';\nimport { Text, type TextProps } from './text';\nimport { cn } from '@lssm/lib.ui-kit-core/utils';\n\nexport type TypographyProps = TextProps & {\n asChild?: boolean;\n};\n\nfunction H1({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"1\"\n className={cn(\n 'text-foreground web:select-text web:scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction H2({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"2\"\n className={cn(\n 'border-border text-foreground web:select-text web:scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction H3({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"3\"\n className={cn(\n 'text-foreground web:select-text web:scroll-m-20 text-2xl font-semibold tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction H4({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"4\"\n className={cn(\n 'text-foreground web:select-text web:scroll-m-20 text-xl font-semibold tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction P({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn('text-foreground web:select-text text-base', className)}\n {...props}\n />\n );\n}\n\nfunction BlockQuote({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n // @ts-expect-error - role of blockquote renders blockquote element on the web\n role={Platform.OS === 'web' ? 'blockquote' : undefined}\n className={cn(\n 'native:mt-4 native:pl-3 border-border text-foreground web:select-text mt-6 border-l-2 pl-6 text-base italic',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Code({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n // @ts-expect-error - role of code renders code element on the web\n role={Platform.OS === 'web' ? 'code' : undefined}\n className={cn(\n 'bg-muted text-foreground web:select-text relative rounded-md px-[0.3rem] py-[0.2rem] text-sm font-semibold',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Lead({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn('text-muted-foreground web:select-text text-xl', className)}\n {...props}\n />\n );\n}\n\nfunction Large({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn(\n 'text-foreground web:select-text text-xl font-semibold',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Small({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn(\n 'text-foreground web:select-text text-sm leading-none font-medium',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Muted({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn('text-muted-foreground web:select-text text-sm', className)}\n {...props}\n />\n );\n}\n\nexport { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small };\n"],"mappings":";;;;;;;;AAUA,SAAS,GAAG,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAErE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,MAAK;EACL,cAAW;EACX,WAAW,GACT,sGACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,GAAG,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAErE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,MAAK;EACL,cAAW;EACX,WAAW,GACT,gIACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,GAAG,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAErE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,MAAK;EACL,cAAW;EACX,WAAW,GACT,yFACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,GAAG,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAErE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,MAAK;EACL,cAAW;EACX,WAAW,GACT,wFACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,EAAE,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAEpE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,WAAW,GAAG,6CAA6C,UAAU;EACrE,GAAI;GACJ;;AAIN,SAAS,WAAW,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAE7E,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAIpC,MAAM,SAAS,OAAO,QAAQ,eAAe;EAC7C,WAAW,GACT,+GACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,KAAK,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAEvE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAIpC,MAAM,SAAS,OAAO,QAAQ,SAAS;EACvC,WAAW,GACT,8GACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,KAAK,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAEvE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,WAAW,GAAG,iDAAiD,UAAU;EACzE,GAAI;GACJ;;AAIN,SAAS,MAAM,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAExE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,WAAW,GACT,yDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,MAAM,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAExE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,WAAW,GACT,oEACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,MAAM,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAExE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,WAAW,GAAG,iDAAiD,UAAU;EACzE,GAAI;GACJ"}
@@ -1,11 +1,12 @@
1
- import * as react_native16 from "react-native";
1
+ import * as react_native15 from "react-native";
2
2
 
3
3
  //#region ui/useColorScheme.d.ts
4
4
  declare function useColorScheme(): {
5
5
  colorScheme: "light" | "dark";
6
6
  isDarkColorScheme: boolean;
7
- setColorScheme: (scheme: react_native16.ColorSchemeName) => void;
7
+ setColorScheme: (scheme: react_native15.ColorSchemeName) => void;
8
8
  toggleColorScheme: () => void;
9
9
  };
10
10
  //#endregion
11
- export { useColorScheme };
11
+ export { useColorScheme };
12
+ //# sourceMappingURL=useColorScheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useColorScheme.d.ts","names":[],"sources":["../../ui/useColorScheme.tsx"],"sourcesContent":[],"mappings":";;;iBAIgB,cAAA,CAAA;;;EAAA,cAAA,EAAA,CAAc,MAAA,EAAA,cAAA,CAAA,eAAA,EAAA,GAAA,IAAA"}
@@ -13,4 +13,5 @@ function useColorScheme() {
13
13
  }
14
14
 
15
15
  //#endregion
16
- export { useColorScheme };
16
+ export { useColorScheme };
17
+ //# sourceMappingURL=useColorScheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useColorScheme.js","names":["useNativewindColorScheme"],"sources":["../../ui/useColorScheme.tsx"],"sourcesContent":["import { useColorScheme as useNativewindColorScheme } from 'nativewind';\n\nconst DEFAULT_COLOR_SCHEME = 'light';\n\nexport function useColorScheme() {\n const { colorScheme, setColorScheme, toggleColorScheme } =\n useNativewindColorScheme();\n\n return {\n colorScheme: colorScheme ?? DEFAULT_COLOR_SCHEME,\n isDarkColorScheme: colorScheme === 'dark',\n setColorScheme,\n toggleColorScheme,\n };\n}\n"],"mappings":";;;AAEA,MAAM,uBAAuB;AAE7B,SAAgB,iBAAiB;CAC/B,MAAM,EAAE,aAAa,gBAAgB,sBACnCA,kBAA0B;AAE5B,QAAO;EACL,aAAa,eAAe;EAC5B,mBAAmB,gBAAgB;EACnC;EACA;EACD"}
@@ -30,4 +30,5 @@ declare const useListState: ({
30
30
  initialItemsPerPage
31
31
  }?: UseListStateOptions) => UseListStateReturn;
32
32
  //#endregion
33
- export { UseListStateOptions, UseListStateReturn, useListState };
33
+ export { UseListStateOptions, UseListStateReturn, useListState };
34
+ //# sourceMappingURL=useListState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useListState.d.ts","names":[],"sources":["../../ui/useListState.tsx"],"sourcesContent":[],"mappings":";UAEiB,mBAAA;EAAA,aAAA,CAAA,EAAA,MAAmB;EAQnB,cAAA,CAAA,EANE,MAMgB,CAAA,MAAA,EAAA,MAMxB,CAAA;EAqBE,WAAA,CAAA,EAAA,MA2EZ;EA3E4B,mBAAA,CAAA,EAAA,MAAA;EAAA,UAAA,CAAA,EAAA,MAAA;;AAAA,UA3BZ,kBAAA,CA2BY;EAK1B,WAAA,EAAA,MAAA;EAA2B,cAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAsE7B,OAAA,EAhGU,MAgGV,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;MAjFK;;;cAMO;;;;;IAKV,wBAA2B"}
@@ -71,4 +71,5 @@ const useListState = ({ initialSearch = "", initialFilters = {}, initialPage = 1
71
71
  };
72
72
 
73
73
  //#endregion
74
- export { useListState };
74
+ export { useListState };
75
+ //# sourceMappingURL=useListState.js.map