@lssm/lib.ui-kit 1.7.4 → 1.9.1

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 (169) hide show
  1. package/README.md +82 -0
  2. package/dist/node_modules/react-hook-form/dist/index.esm.js +27 -16
  3. package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
  4. package/dist/node_modules/zod/v4/core/core.js +0 -1
  5. package/dist/node_modules/zod/v4/core/core.js.map +1 -1
  6. package/dist/node_modules/zod/v4/core/registries.js +0 -2
  7. package/dist/node_modules/zod/v4/core/registries.js.map +1 -1
  8. package/dist/tsconfig.tsbuildinfo +1 -1
  9. package/dist/ui/accordion.js +4 -4
  10. package/dist/ui/accordion.js.map +1 -1
  11. package/dist/ui/alert-dialog.d.ts +11 -11
  12. package/dist/ui/alert-dialog.js +9 -9
  13. package/dist/ui/alert-dialog.js.map +1 -1
  14. package/dist/ui/alert.d.ts +4 -4
  15. package/dist/ui/alert.d.ts.map +1 -1
  16. package/dist/ui/alert.js +3 -3
  17. package/dist/ui/alert.js.map +1 -1
  18. package/dist/ui/avatar.d.ts +4 -4
  19. package/dist/ui/avatar.d.ts.map +1 -1
  20. package/dist/ui/avatar.js +3 -3
  21. package/dist/ui/avatar.js.map +1 -1
  22. package/dist/ui/badge.d.ts +2 -2
  23. package/dist/ui/badge.js +1 -1
  24. package/dist/ui/badge.js.map +1 -1
  25. package/dist/ui/breadcrumb.d.ts +8 -8
  26. package/dist/ui/breadcrumb.js +6 -6
  27. package/dist/ui/breadcrumb.js.map +1 -1
  28. package/dist/ui/button.js +1 -1
  29. package/dist/ui/button.js.map +1 -1
  30. package/dist/ui/card.d.ts +7 -7
  31. package/dist/ui/card.d.ts.map +1 -1
  32. package/dist/ui/card.js +6 -6
  33. package/dist/ui/card.js.map +1 -1
  34. package/dist/ui/checkbox.d.ts +3 -3
  35. package/dist/ui/checkbox.d.ts.map +1 -1
  36. package/dist/ui/checkbox.js +1 -1
  37. package/dist/ui/checkbox.js.map +1 -1
  38. package/dist/ui/collapsible.d.ts +8 -8
  39. package/dist/ui/collapsible.d.ts.map +1 -1
  40. package/dist/ui/context-menu.d.ts +16 -16
  41. package/dist/ui/context-menu.js +9 -9
  42. package/dist/ui/context-menu.js.map +1 -1
  43. package/dist/ui/date-picker.d.ts +2 -2
  44. package/dist/ui/date-range-picker.d.ts +2 -2
  45. package/dist/ui/datetime-picker.d.ts +2 -2
  46. package/dist/ui/dialog.d.ts +10 -10
  47. package/dist/ui/dialog.js +7 -7
  48. package/dist/ui/dialog.js.map +1 -1
  49. package/dist/ui/dropdown-menu.d.ts +16 -16
  50. package/dist/ui/dropdown-menu.js +9 -9
  51. package/dist/ui/dropdown-menu.js.map +1 -1
  52. package/dist/ui/empty-state.d.ts +4 -4
  53. package/dist/ui/empty-state.d.ts.map +1 -1
  54. package/dist/ui/empty.d.ts +9 -9
  55. package/dist/ui/empty.d.ts.map +1 -1
  56. package/dist/ui/empty.js +6 -6
  57. package/dist/ui/empty.js.map +1 -1
  58. package/dist/ui/fab.d.ts +3 -3
  59. package/dist/ui/fab.d.ts.map +1 -1
  60. package/dist/ui/field.d.ts +14 -14
  61. package/dist/ui/field.d.ts.map +1 -1
  62. package/dist/ui/field.js +10 -11
  63. package/dist/ui/field.js.map +1 -1
  64. package/dist/ui/form.d.ts +7 -7
  65. package/dist/ui/form.d.ts.map +1 -1
  66. package/dist/ui/form.js +5 -6
  67. package/dist/ui/form.js.map +1 -1
  68. package/dist/ui/hover-card.d.ts +6 -6
  69. package/dist/ui/hover-card.d.ts.map +1 -1
  70. package/dist/ui/hover-card.js +1 -1
  71. package/dist/ui/hover-card.js.map +1 -1
  72. package/dist/ui/input.d.ts +2 -2
  73. package/dist/ui/input.d.ts.map +1 -1
  74. package/dist/ui/input.js +1 -1
  75. package/dist/ui/input.js.map +1 -1
  76. package/dist/ui/label.d.ts +2 -2
  77. package/dist/ui/label.d.ts.map +1 -1
  78. package/dist/ui/label.js +1 -1
  79. package/dist/ui/label.js.map +1 -1
  80. package/dist/ui/link.d.ts +2 -2
  81. package/dist/ui/link.d.ts.map +1 -1
  82. package/dist/ui/link.js +1 -1
  83. package/dist/ui/link.js.map +1 -1
  84. package/dist/ui/loading-button.d.ts +2 -2
  85. package/dist/ui/loading-button.d.ts.map +1 -1
  86. package/dist/ui/loading-button.js +1 -1
  87. package/dist/ui/loading-button.js.map +1 -1
  88. package/dist/ui/loading-overlay.d.ts +2 -2
  89. package/dist/ui/loading-overlay.d.ts.map +1 -1
  90. package/dist/ui/loading-screen.d.ts +2 -2
  91. package/dist/ui/marketing/FeatureGrid.d.ts +2 -2
  92. package/dist/ui/marketing/Hero.d.ts +2 -2
  93. package/dist/ui/marketing/PricingTable.d.ts +2 -2
  94. package/dist/ui/menubar.d.ts +17 -17
  95. package/dist/ui/menubar.d.ts.map +1 -1
  96. package/dist/ui/menubar.js +11 -11
  97. package/dist/ui/menubar.js.map +1 -1
  98. package/dist/ui/molecules/SkeletonList.d.ts +2 -2
  99. package/dist/ui/navigation-menu.d.ts +12 -12
  100. package/dist/ui/navigation-menu.js +6 -6
  101. package/dist/ui/navigation-menu.js.map +1 -1
  102. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  103. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -1
  104. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -1
  105. package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -2
  106. package/dist/ui/page-header.d.ts +4 -4
  107. package/dist/ui/page-header.d.ts.map +1 -1
  108. package/dist/ui/password-strength.d.ts +2 -2
  109. package/dist/ui/popover.d.ts +6 -6
  110. package/dist/ui/popover.js +1 -1
  111. package/dist/ui/popover.js.map +1 -1
  112. package/dist/ui/progress.d.ts +2 -2
  113. package/dist/ui/progress.js +1 -1
  114. package/dist/ui/progress.js.map +1 -1
  115. package/dist/ui/radio-group.d.ts +3 -3
  116. package/dist/ui/radio-group.js +2 -2
  117. package/dist/ui/radio-group.js.map +1 -1
  118. package/dist/ui/select.d.ts +13 -13
  119. package/dist/ui/select.js +7 -7
  120. package/dist/ui/select.js.map +1 -1
  121. package/dist/ui/separator.d.ts +2 -2
  122. package/dist/ui/separator.js +1 -1
  123. package/dist/ui/separator.js.map +1 -1
  124. package/dist/ui/skeleton.d.ts +2 -2
  125. package/dist/ui/skeleton.js +1 -1
  126. package/dist/ui/skeleton.js.map +1 -1
  127. package/dist/ui/stack.d.ts +4 -4
  128. package/dist/ui/stack.js +3 -3
  129. package/dist/ui/stack.js.map +1 -1
  130. package/dist/ui/stepper.d.ts +2 -2
  131. package/dist/ui/switch.d.ts +2 -2
  132. package/dist/ui/switch.js +2 -2
  133. package/dist/ui/switch.js.map +1 -1
  134. package/dist/ui/table.d.ts +8 -8
  135. package/dist/ui/table.js +7 -7
  136. package/dist/ui/table.js.map +1 -1
  137. package/dist/ui/tabs.d.ts +11 -11
  138. package/dist/ui/tabs.js +3 -3
  139. package/dist/ui/tabs.js.map +1 -1
  140. package/dist/ui/text.d.ts +2 -2
  141. package/dist/ui/text.d.ts.map +1 -1
  142. package/dist/ui/text.js +1 -1
  143. package/dist/ui/text.js.map +1 -1
  144. package/dist/ui/textarea.js +1 -1
  145. package/dist/ui/textarea.js.map +1 -1
  146. package/dist/ui/time-picker.d.ts +2 -2
  147. package/dist/ui/time-picker.d.ts.map +1 -1
  148. package/dist/ui/toggle-group.d.ts +4 -4
  149. package/dist/ui/toggle-group.d.ts.map +1 -1
  150. package/dist/ui/toggle-group.js +3 -3
  151. package/dist/ui/toggle-group.js.map +1 -1
  152. package/dist/ui/toggle.d.ts +6 -6
  153. package/dist/ui/toggle.d.ts.map +1 -1
  154. package/dist/ui/toggle.js +2 -2
  155. package/dist/ui/toggle.js.map +1 -1
  156. package/dist/ui/tooltip.d.ts +6 -6
  157. package/dist/ui/tooltip.d.ts.map +1 -1
  158. package/dist/ui/tooltip.js +1 -1
  159. package/dist/ui/tooltip.js.map +1 -1
  160. package/dist/ui/typography.d.ts +12 -12
  161. package/dist/ui/typography.d.ts.map +1 -1
  162. package/dist/ui/typography.js +11 -11
  163. package/dist/ui/typography.js.map +1 -1
  164. package/dist/ui/useColorScheme.d.ts +2 -2
  165. package/dist/ui/useColorScheme.d.ts.map +1 -1
  166. package/dist/ui/usecases/UseCaseCard.d.ts +2 -2
  167. package/dist/ui/usecases/UserStoryCard.d.ts +2 -2
  168. package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
  169. package/package.json +4 -4
@@ -8,7 +8,7 @@ import Animated, { Extrapolation, FadeIn, FadeOutUp, LayoutAnimationConfig, Line
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
 
10
10
  //#region ui/accordion.tsx
11
- function Accordion({ children,...props }) {
11
+ function Accordion({ children, ...props }) {
12
12
  return /* @__PURE__ */ jsx(LayoutAnimationConfig, {
13
13
  skipEntering: true,
14
14
  children: /* @__PURE__ */ jsx(AccordionPrimitive.Root, {
@@ -21,7 +21,7 @@ function Accordion({ children,...props }) {
21
21
  })
22
22
  });
23
23
  }
24
- function AccordionItem({ className, value,...props }) {
24
+ function AccordionItem({ className, value, ...props }) {
25
25
  return /* @__PURE__ */ jsx(Animated.View, {
26
26
  className: "overflow-hidden",
27
27
  layout: LinearTransition.duration(200),
@@ -33,7 +33,7 @@ function AccordionItem({ className, value,...props }) {
33
33
  });
34
34
  }
35
35
  const Trigger = Platform.OS === "web" ? View : Pressable;
36
- function AccordionTrigger({ className, children,...props }) {
36
+ function AccordionTrigger({ className, children, ...props }) {
37
37
  const { isExpanded } = AccordionPrimitive.useItemContext();
38
38
  const progress = useDerivedValue(() => isExpanded ? withTiming(1, { duration: 250 }) : withTiming(0, { duration: 200 }));
39
39
  const chevronStyle = useAnimatedStyle(() => ({
@@ -61,7 +61,7 @@ function AccordionTrigger({ className, children,...props }) {
61
61
  })
62
62
  });
63
63
  }
64
- function AccordionContent({ className, children,...props }) {
64
+ function AccordionContent({ className, children, ...props }) {
65
65
  const { isExpanded } = AccordionPrimitive.useItemContext();
66
66
  return /* @__PURE__ */ jsx(TextClassContext.Provider, {
67
67
  value: "native:text-lg",
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.js","names":[],"sources":["../../ui/accordion.tsx"],"sourcesContent":["import * as AccordionPrimitive from '@rn-primitives/accordion';\nimport * as React from 'react';\nimport { Platform, Pressable, View } from 'react-native';\nimport Animated, {\n Extrapolation,\n FadeIn,\n FadeOutUp,\n interpolate,\n LayoutAnimationConfig,\n LinearTransition,\n useAnimatedStyle,\n useDerivedValue,\n withTiming,\n} from 'react-native-reanimated';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { TextClassContext } from './text';\nimport { cn } from './utils';\n\nfunction Accordion({\n children,\n ...props\n}: Omit<AccordionPrimitive.RootProps, 'asChild'> & {\n ref?: React.RefObject<AccordionPrimitive.RootRef>;\n}) {\n return (\n <LayoutAnimationConfig skipEntering>\n <AccordionPrimitive.Root\n {...(props as AccordionPrimitive.RootProps)}\n asChild={Platform.OS !== 'web'}\n >\n <Animated.View layout={LinearTransition.duration(200)}>\n {children}\n </Animated.View>\n </AccordionPrimitive.Root>\n </LayoutAnimationConfig>\n );\n}\n\nfunction AccordionItem({\n className,\n value,\n ...props\n}: AccordionPrimitive.ItemProps & {\n ref?: React.RefObject<AccordionPrimitive.ItemRef>;\n}) {\n return (\n <Animated.View\n className={'overflow-hidden'}\n layout={LinearTransition.duration(200)}\n >\n <AccordionPrimitive.Item\n className={cn('border-border border-b', className)}\n value={value}\n {...props}\n />\n </Animated.View>\n );\n}\n\nconst Trigger = Platform.OS === 'web' ? View : Pressable;\n\nfunction AccordionTrigger({\n className,\n children,\n ...props\n}: AccordionPrimitive.TriggerProps & {\n children?: React.ReactNode;\n ref?: React.RefObject<AccordionPrimitive.TriggerRef>;\n}) {\n const { isExpanded } = AccordionPrimitive.useItemContext();\n\n const progress = useDerivedValue(() =>\n isExpanded\n ? withTiming(1, { duration: 250 })\n : withTiming(0, { duration: 200 })\n );\n const chevronStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${progress.value * 180}deg` }],\n opacity: interpolate(progress.value, [0, 1], [1, 0.8], Extrapolation.CLAMP),\n }));\n\n return (\n <TextClassContext.Provider value=\"native:text-lg font-medium web:group-hover:underline\">\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger {...props} asChild>\n <Trigger\n className={cn(\n 'group web:flex-1 web:transition-all web:focus-visible:outline-hidden web:focus-visible:ring-1 web:focus-visible:ring-muted-foreground flex flex-row items-center justify-between py-4',\n className\n )}\n >\n {children}\n <Animated.View style={chevronStyle}>\n <ChevronDown size={18} className={'text-foreground shrink-0'} />\n </Animated.View>\n </Trigger>\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n </TextClassContext.Provider>\n );\n}\n\nfunction AccordionContent({\n className,\n children,\n ...props\n}: AccordionPrimitive.ContentProps & {\n ref?: React.RefObject<AccordionPrimitive.ContentRef>;\n}) {\n const { isExpanded } = AccordionPrimitive.useItemContext();\n return (\n <TextClassContext.Provider value=\"native:text-lg\">\n <AccordionPrimitive.Content\n className={cn(\n 'web:transition-all overflow-hidden text-sm',\n isExpanded ? 'web:animate-accordion-down' : 'web:animate-accordion-up'\n )}\n {...props}\n >\n <InnerContent className={cn('pb-4', className)}>\n {children}\n </InnerContent>\n </AccordionPrimitive.Content>\n </TextClassContext.Provider>\n );\n}\n\nfunction InnerContent({\n children,\n className,\n}: {\n children: React.ReactNode;\n className?: string;\n}) {\n if (Platform.OS === 'web') {\n return <View className={cn('pb-4', className)}>{children}</View>;\n }\n return (\n <Animated.View\n entering={FadeIn}\n exiting={FadeOutUp.duration(200)}\n className={cn('pb-4', className)}\n >\n {children}\n </Animated.View>\n );\n}\n\nexport { Accordion, AccordionContent, AccordionItem, AccordionTrigger };\n"],"mappings":";;;;;;;;;;AAkBA,SAAS,UAAU,EACjB,SACA,GAAG,SAGF;AACD,QACE,oBAAC;EAAsB;YACrB,oBAAC,mBAAmB;GAClB,GAAK;GACL,SAAS,SAAS,OAAO;aAEzB,oBAAC,SAAS;IAAK,QAAQ,iBAAiB,SAAS,IAAI;IAClD;KACa;IACQ;GACJ;;AAI5B,SAAS,cAAc,EACrB,WACA,MACA,GAAG,SAGF;AACD,QACE,oBAAC,SAAS;EACR,WAAW;EACX,QAAQ,iBAAiB,SAAS,IAAI;YAEtC,oBAAC,mBAAmB;GAClB,WAAW,GAAG,0BAA0B,UAAU;GAC3C;GACP,GAAI;IACJ;GACY;;AAIpB,MAAM,UAAU,SAAS,OAAO,QAAQ,OAAO;AAE/C,SAAS,iBAAiB,EACxB,WACA,SACA,GAAG,SAIF;CACD,MAAM,EAAE,eAAe,mBAAmB,gBAAgB;CAE1D,MAAM,WAAW,sBACf,aACI,WAAW,GAAG,EAAE,UAAU,KAAK,CAAC,GAChC,WAAW,GAAG,EAAE,UAAU,KAAK,CAAC,CACrC;CACD,MAAM,eAAe,wBAAwB;EAC3C,WAAW,CAAC,EAAE,QAAQ,GAAG,SAAS,QAAQ,IAAI,MAAM,CAAC;EACrD,SAAS,YAAY,SAAS,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAI,EAAE,cAAc,MAAM;EAC5E,EAAE;AAEH,QACE,oBAAC,iBAAiB;EAAS,OAAM;YAC/B,oBAAC,mBAAmB;GAAO,WAAU;aACnC,oBAAC,mBAAmB;IAAQ,GAAI;IAAO;cACrC,qBAAC;KACC,WAAW,GACT,yLACA,UACD;gBAEA,UACD,oBAAC,SAAS;MAAK,OAAO;gBACpB,oBAAC;OAAY,MAAM;OAAI,WAAW;QAA8B;OAClD;MACR;KACiB;IACH;GACF;;AAIhC,SAAS,iBAAiB,EACxB,WACA,SACA,GAAG,SAGF;CACD,MAAM,EAAE,eAAe,mBAAmB,gBAAgB;AAC1D,QACE,oBAAC,iBAAiB;EAAS,OAAM;YAC/B,oBAAC,mBAAmB;GAClB,WAAW,GACT,8CACA,aAAa,+BAA+B,2BAC7C;GACD,GAAI;aAEJ,oBAAC;IAAa,WAAW,GAAG,QAAQ,UAAU;IAC3C;KACY;IACY;GACH;;AAIhC,SAAS,aAAa,EACpB,UACA,aAIC;AACD,KAAI,SAAS,OAAO,MAClB,QAAO,oBAAC;EAAK,WAAW,GAAG,QAAQ,UAAU;EAAG;GAAgB;AAElE,QACE,oBAAC,SAAS;EACR,UAAU;EACV,SAAS,UAAU,SAAS,IAAI;EAChC,WAAW,GAAG,QAAQ,UAAU;EAE/B;GACa"}
1
+ {"version":3,"file":"accordion.js","names":[],"sources":["../../ui/accordion.tsx"],"sourcesContent":["import * as AccordionPrimitive from '@rn-primitives/accordion';\nimport * as React from 'react';\nimport { Platform, Pressable, View } from 'react-native';\nimport Animated, {\n Extrapolation,\n FadeIn,\n FadeOutUp,\n interpolate,\n LayoutAnimationConfig,\n LinearTransition,\n useAnimatedStyle,\n useDerivedValue,\n withTiming,\n} from 'react-native-reanimated';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { TextClassContext } from './text';\nimport { cn } from './utils';\n\nfunction Accordion({\n children,\n ...props\n}: Omit<AccordionPrimitive.RootProps, 'asChild'> & {\n ref?: React.RefObject<AccordionPrimitive.RootRef>;\n}) {\n return (\n <LayoutAnimationConfig skipEntering>\n <AccordionPrimitive.Root\n {...(props as AccordionPrimitive.RootProps)}\n asChild={Platform.OS !== 'web'}\n >\n <Animated.View layout={LinearTransition.duration(200)}>\n {children}\n </Animated.View>\n </AccordionPrimitive.Root>\n </LayoutAnimationConfig>\n );\n}\n\nfunction AccordionItem({\n className,\n value,\n ...props\n}: AccordionPrimitive.ItemProps & {\n ref?: React.RefObject<AccordionPrimitive.ItemRef>;\n}) {\n return (\n <Animated.View\n className={'overflow-hidden'}\n layout={LinearTransition.duration(200)}\n >\n <AccordionPrimitive.Item\n className={cn('border-border border-b', className)}\n value={value}\n {...props}\n />\n </Animated.View>\n );\n}\n\nconst Trigger = Platform.OS === 'web' ? View : Pressable;\n\nfunction AccordionTrigger({\n className,\n children,\n ...props\n}: AccordionPrimitive.TriggerProps & {\n children?: React.ReactNode;\n ref?: React.RefObject<AccordionPrimitive.TriggerRef>;\n}) {\n const { isExpanded } = AccordionPrimitive.useItemContext();\n\n const progress = useDerivedValue(() =>\n isExpanded\n ? withTiming(1, { duration: 250 })\n : withTiming(0, { duration: 200 })\n );\n const chevronStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${progress.value * 180}deg` }],\n opacity: interpolate(progress.value, [0, 1], [1, 0.8], Extrapolation.CLAMP),\n }));\n\n return (\n <TextClassContext.Provider value=\"native:text-lg font-medium web:group-hover:underline\">\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger {...props} asChild>\n <Trigger\n className={cn(\n 'group web:flex-1 web:transition-all web:focus-visible:outline-hidden web:focus-visible:ring-1 web:focus-visible:ring-muted-foreground flex flex-row items-center justify-between py-4',\n className\n )}\n >\n {children}\n <Animated.View style={chevronStyle}>\n <ChevronDown size={18} className={'text-foreground shrink-0'} />\n </Animated.View>\n </Trigger>\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n </TextClassContext.Provider>\n );\n}\n\nfunction AccordionContent({\n className,\n children,\n ...props\n}: AccordionPrimitive.ContentProps & {\n ref?: React.RefObject<AccordionPrimitive.ContentRef>;\n}) {\n const { isExpanded } = AccordionPrimitive.useItemContext();\n return (\n <TextClassContext.Provider value=\"native:text-lg\">\n <AccordionPrimitive.Content\n className={cn(\n 'web:transition-all overflow-hidden text-sm',\n isExpanded ? 'web:animate-accordion-down' : 'web:animate-accordion-up'\n )}\n {...props}\n >\n <InnerContent className={cn('pb-4', className)}>\n {children}\n </InnerContent>\n </AccordionPrimitive.Content>\n </TextClassContext.Provider>\n );\n}\n\nfunction InnerContent({\n children,\n className,\n}: {\n children: React.ReactNode;\n className?: string;\n}) {\n if (Platform.OS === 'web') {\n return <View className={cn('pb-4', className)}>{children}</View>;\n }\n return (\n <Animated.View\n entering={FadeIn}\n exiting={FadeOutUp.duration(200)}\n className={cn('pb-4', className)}\n >\n {children}\n </Animated.View>\n );\n}\n\nexport { Accordion, AccordionContent, AccordionItem, AccordionTrigger };\n"],"mappings":";;;;;;;;;;AAkBA,SAAS,UAAU,EACjB,UACA,GAAG,SAGF;AACD,QACE,oBAAC;EAAsB;YACrB,oBAAC,mBAAmB;GAClB,GAAK;GACL,SAAS,SAAS,OAAO;aAEzB,oBAAC,SAAS;IAAK,QAAQ,iBAAiB,SAAS,IAAI;IAClD;KACa;IACQ;GACJ;;AAI5B,SAAS,cAAc,EACrB,WACA,OACA,GAAG,SAGF;AACD,QACE,oBAAC,SAAS;EACR,WAAW;EACX,QAAQ,iBAAiB,SAAS,IAAI;YAEtC,oBAAC,mBAAmB;GAClB,WAAW,GAAG,0BAA0B,UAAU;GAC3C;GACP,GAAI;IACJ;GACY;;AAIpB,MAAM,UAAU,SAAS,OAAO,QAAQ,OAAO;AAE/C,SAAS,iBAAiB,EACxB,WACA,UACA,GAAG,SAIF;CACD,MAAM,EAAE,eAAe,mBAAmB,gBAAgB;CAE1D,MAAM,WAAW,sBACf,aACI,WAAW,GAAG,EAAE,UAAU,KAAK,CAAC,GAChC,WAAW,GAAG,EAAE,UAAU,KAAK,CAAC,CACrC;CACD,MAAM,eAAe,wBAAwB;EAC3C,WAAW,CAAC,EAAE,QAAQ,GAAG,SAAS,QAAQ,IAAI,MAAM,CAAC;EACrD,SAAS,YAAY,SAAS,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAI,EAAE,cAAc,MAAM;EAC5E,EAAE;AAEH,QACE,oBAAC,iBAAiB;EAAS,OAAM;YAC/B,oBAAC,mBAAmB;GAAO,WAAU;aACnC,oBAAC,mBAAmB;IAAQ,GAAI;IAAO;cACrC,qBAAC;KACC,WAAW,GACT,yLACA,UACD;gBAEA,UACD,oBAAC,SAAS;MAAK,OAAO;gBACpB,oBAAC;OAAY,MAAM;OAAI,WAAW;QAA8B;OAClD;MACR;KACiB;IACH;GACF;;AAIhC,SAAS,iBAAiB,EACxB,WACA,UACA,GAAG,SAGF;CACD,MAAM,EAAE,eAAe,mBAAmB,gBAAgB;AAC1D,QACE,oBAAC,iBAAiB;EAAS,OAAM;YAC/B,oBAAC,mBAAmB;GAClB,WAAW,GACT,8CACA,aAAa,+BAA+B,2BAC7C;GACD,GAAI;aAEJ,oBAAC;IAAa,WAAW,GAAG,QAAQ,UAAU;IAC3C;KACY;IACY;GACH;;AAIhC,SAAS,aAAa,EACpB,UACA,aAIC;AACD,KAAI,SAAS,OAAO,MAClB,QAAO,oBAAC;EAAK,WAAW,GAAG,QAAQ,UAAU;EAAG;GAAgB;AAElE,QACE,oBAAC,SAAS;EACR,UAAU;EACV,SAAS,UAAU,SAAS,IAAI;EAChC,WAAW,GAAG,QAAQ,UAAU;EAE/B;GACa"}
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from "react";
2
- import * as react_native0 from "react-native";
2
+ import * as react_native1 from "react-native";
3
3
  import { View, ViewProps } from "react-native";
4
- import * as react_jsx_runtime3 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
5
5
  import * as AlertDialogPrimitive from "@rn-primitives/alert-dialog";
6
6
 
7
7
  //#region ui/alert-dialog.d.ts
@@ -12,7 +12,7 @@ declare const AlertDialog: React$1.ForwardRefExoticComponent<{
12
12
  } & ViewProps & {
13
13
  asChild?: boolean;
14
14
  } & React$1.RefAttributes<View>>;
15
- declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<Omit<react_native0.PressableProps & React$1.RefAttributes<View>, "ref"> & {
15
+ declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<Omit<react_native1.PressableProps & React$1.RefAttributes<View>, "ref"> & {
16
16
  asChild?: boolean;
17
17
  } & {
18
18
  onKeyDown?: (ev: React$1.KeyboardEvent) => void;
@@ -25,7 +25,7 @@ declare function AlertDialogOverlayNative({
25
25
  ...props
26
26
  }: AlertDialogPrimitive.OverlayProps & {
27
27
  ref?: React$1.RefObject<AlertDialogPrimitive.OverlayRef>;
28
- }): react_jsx_runtime3.JSX.Element;
28
+ }): react_jsx_runtime9.JSX.Element;
29
29
  declare const AlertDialogOverlay: typeof AlertDialogOverlayNative;
30
30
  declare function AlertDialogContent({
31
31
  className,
@@ -34,39 +34,39 @@ declare function AlertDialogContent({
34
34
  }: AlertDialogPrimitive.ContentProps & {
35
35
  ref?: React$1.RefObject<AlertDialogPrimitive.ContentRef>;
36
36
  portalHost?: string;
37
- }): react_jsx_runtime3.JSX.Element;
37
+ }): react_jsx_runtime9.JSX.Element;
38
38
  declare function AlertDialogHeader({
39
39
  className,
40
40
  ...props
41
- }: ViewProps): react_jsx_runtime3.JSX.Element;
41
+ }: ViewProps): react_jsx_runtime9.JSX.Element;
42
42
  declare function AlertDialogFooter({
43
43
  className,
44
44
  ...props
45
- }: ViewProps): react_jsx_runtime3.JSX.Element;
45
+ }: ViewProps): react_jsx_runtime9.JSX.Element;
46
46
  declare function AlertDialogTitle({
47
47
  className,
48
48
  ...props
49
49
  }: AlertDialogPrimitive.TitleProps & {
50
50
  ref?: React$1.RefObject<AlertDialogPrimitive.TitleRef>;
51
- }): react_jsx_runtime3.JSX.Element;
51
+ }): react_jsx_runtime9.JSX.Element;
52
52
  declare function AlertDialogDescription({
53
53
  className,
54
54
  ...props
55
55
  }: AlertDialogPrimitive.DescriptionProps & {
56
56
  ref?: React$1.RefObject<AlertDialogPrimitive.DescriptionRef>;
57
- }): react_jsx_runtime3.JSX.Element;
57
+ }): react_jsx_runtime9.JSX.Element;
58
58
  declare function AlertDialogAction({
59
59
  className,
60
60
  ...props
61
61
  }: AlertDialogPrimitive.ActionProps & {
62
62
  ref?: React$1.RefObject<AlertDialogPrimitive.ActionRef>;
63
- }): react_jsx_runtime3.JSX.Element;
63
+ }): react_jsx_runtime9.JSX.Element;
64
64
  declare function AlertDialogCancel({
65
65
  className,
66
66
  ...props
67
67
  }: AlertDialogPrimitive.CancelProps & {
68
68
  ref?: React$1.RefObject<AlertDialogPrimitive.CancelRef>;
69
- }): react_jsx_runtime3.JSX.Element;
69
+ }): react_jsx_runtime9.JSX.Element;
70
70
  //#endregion
71
71
  export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
72
72
  //# sourceMappingURL=alert-dialog.d.ts.map
@@ -11,14 +11,14 @@ import * as AlertDialogPrimitive from "@rn-primitives/alert-dialog";
11
11
  const AlertDialog = AlertDialogPrimitive.Root;
12
12
  const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
13
13
  const AlertDialogPortal = AlertDialogPrimitive.Portal;
14
- function AlertDialogOverlayWeb({ className,...props }) {
14
+ function AlertDialogOverlayWeb({ className, ...props }) {
15
15
  const { open } = AlertDialogPrimitive.useRootContext();
16
16
  return /* @__PURE__ */ jsx(AlertDialogPrimitive.Overlay, {
17
17
  className: cn("absolute top-0 right-0 bottom-0 left-0 z-50 flex items-center justify-center bg-black/80 p-2", open ? "web:animate-in web:fade-in-0" : "web:animate-out web:fade-out-0", className),
18
18
  ...props
19
19
  });
20
20
  }
21
- function AlertDialogOverlayNative({ className, children,...props }) {
21
+ function AlertDialogOverlayNative({ className, children, ...props }) {
22
22
  return /* @__PURE__ */ jsx(AlertDialogPrimitive.Overlay, {
23
23
  className: cn("absolute top-0 right-0 bottom-0 left-0 z-50 flex items-center justify-center bg-black/80 p-2", className),
24
24
  ...props,
@@ -34,7 +34,7 @@ const AlertDialogOverlay = Platform.select({
34
34
  web: AlertDialogOverlayWeb,
35
35
  default: AlertDialogOverlayNative
36
36
  });
37
- function AlertDialogContent({ className, portalHost,...props }) {
37
+ function AlertDialogContent({ className, portalHost, ...props }) {
38
38
  const { open } = AlertDialogPrimitive.useRootContext();
39
39
  return /* @__PURE__ */ jsx(AlertDialogPortal, {
40
40
  hostName: portalHost,
@@ -44,31 +44,31 @@ function AlertDialogContent({ className, portalHost,...props }) {
44
44
  }) })
45
45
  });
46
46
  }
47
- function AlertDialogHeader({ className,...props }) {
47
+ function AlertDialogHeader({ className, ...props }) {
48
48
  return /* @__PURE__ */ jsx(View, {
49
49
  className: cn("flex flex-col gap-2", className),
50
50
  ...props
51
51
  });
52
52
  }
53
- function AlertDialogFooter({ className,...props }) {
53
+ function AlertDialogFooter({ className, ...props }) {
54
54
  return /* @__PURE__ */ jsx(View, {
55
55
  className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
56
56
  ...props
57
57
  });
58
58
  }
59
- function AlertDialogTitle({ className,...props }) {
59
+ function AlertDialogTitle({ className, ...props }) {
60
60
  return /* @__PURE__ */ jsx(AlertDialogPrimitive.Title, {
61
61
  className: cn("native:text-xl text-foreground text-lg font-semibold", className),
62
62
  ...props
63
63
  });
64
64
  }
65
- function AlertDialogDescription({ className,...props }) {
65
+ function AlertDialogDescription({ className, ...props }) {
66
66
  return /* @__PURE__ */ jsx(AlertDialogPrimitive.Description, {
67
67
  className: cn("native:text-base text-muted-foreground text-sm", className),
68
68
  ...props
69
69
  });
70
70
  }
71
- function AlertDialogAction({ className,...props }) {
71
+ function AlertDialogAction({ className, ...props }) {
72
72
  return /* @__PURE__ */ jsx(TextClassContext.Provider, {
73
73
  value: buttonTextVariants({ className }),
74
74
  children: /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, {
@@ -77,7 +77,7 @@ function AlertDialogAction({ className,...props }) {
77
77
  })
78
78
  });
79
79
  }
80
- function AlertDialogCancel({ className,...props }) {
80
+ function AlertDialogCancel({ className, ...props }) {
81
81
  return /* @__PURE__ */ jsx(TextClassContext.Provider, {
82
82
  value: buttonTextVariants({
83
83
  className,
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog.js","names":[],"sources":["../../ui/alert-dialog.tsx"],"sourcesContent":["import * as AlertDialogPrimitive from '@rn-primitives/alert-dialog';\nimport * as React from 'react';\nimport { Platform, View, type ViewProps } from 'react-native';\nimport Animated, { FadeIn, FadeOut } from 'react-native-reanimated';\nimport { buttonTextVariants, buttonVariants } from './button';\nimport { cn } from './utils';\nimport { TextClassContext } from './text';\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nfunction AlertDialogOverlayWeb({\n className,\n ...props\n}: AlertDialogPrimitive.OverlayProps & {\n ref?: React.RefObject<AlertDialogPrimitive.OverlayRef>;\n}) {\n const { open } = AlertDialogPrimitive.useRootContext();\n return (\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'absolute top-0 right-0 bottom-0 left-0 z-50 flex items-center justify-center bg-black/80 p-2',\n open\n ? 'web:animate-in web:fade-in-0'\n : 'web:animate-out web:fade-out-0',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDialogOverlayNative({\n className,\n children,\n ...props\n}: AlertDialogPrimitive.OverlayProps & {\n ref?: React.RefObject<AlertDialogPrimitive.OverlayRef>;\n}) {\n return (\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'absolute top-0 right-0 bottom-0 left-0 z-50 flex items-center justify-center bg-black/80 p-2',\n className\n )}\n {...props}\n asChild\n >\n <Animated.View\n entering={FadeIn.duration(150)}\n exiting={FadeOut.duration(150)}\n >\n {children}\n </Animated.View>\n </AlertDialogPrimitive.Overlay>\n );\n}\n\nconst AlertDialogOverlay = Platform.select({\n web: AlertDialogOverlayWeb,\n default: AlertDialogOverlayNative,\n});\n\nfunction AlertDialogContent({\n className,\n portalHost,\n ...props\n}: AlertDialogPrimitive.ContentProps & {\n ref?: React.RefObject<AlertDialogPrimitive.ContentRef>;\n portalHost?: string;\n}) {\n const { open } = AlertDialogPrimitive.useRootContext();\n\n return (\n <AlertDialogPortal hostName={portalHost}>\n <AlertDialogOverlay>\n <AlertDialogPrimitive.Content\n className={cn(\n 'border-border bg-background shadow-foreground/10 web:duration-200 z-50 max-w-lg gap-4 rounded-lg border p-6 shadow-lg',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n {...props}\n />\n </AlertDialogOverlay>\n </AlertDialogPortal>\n );\n}\n\nfunction AlertDialogHeader({ className, ...props }: ViewProps) {\n return <View className={cn('flex flex-col gap-2', className)} {...props} />;\n}\n\nfunction AlertDialogFooter({ className, ...props }: ViewProps) {\n return (\n <View\n className={cn(\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDialogTitle({\n className,\n ...props\n}: AlertDialogPrimitive.TitleProps & {\n ref?: React.RefObject<AlertDialogPrimitive.TitleRef>;\n}) {\n return (\n <AlertDialogPrimitive.Title\n className={cn(\n 'native:text-xl text-foreground text-lg font-semibold',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDialogDescription({\n className,\n ...props\n}: AlertDialogPrimitive.DescriptionProps & {\n ref?: React.RefObject<AlertDialogPrimitive.DescriptionRef>;\n}) {\n return (\n <AlertDialogPrimitive.Description\n className={cn(\n 'native:text-base text-muted-foreground text-sm',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDialogAction({\n className,\n ...props\n}: AlertDialogPrimitive.ActionProps & {\n ref?: React.RefObject<AlertDialogPrimitive.ActionRef>;\n}) {\n return (\n <TextClassContext.Provider value={buttonTextVariants({ className })}>\n <AlertDialogPrimitive.Action\n className={cn(buttonVariants(), className)}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction AlertDialogCancel({\n className,\n ...props\n}: AlertDialogPrimitive.CancelProps & {\n ref?: React.RefObject<AlertDialogPrimitive.CancelRef>;\n}) {\n return (\n <TextClassContext.Provider\n value={buttonTextVariants({ className, variant: 'outline' })}\n >\n <AlertDialogPrimitive.Cancel\n className={cn(buttonVariants({ variant: 'outline', className }))}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n};\n"],"mappings":";;;;;;;;;;AAQA,MAAM,cAAc,qBAAqB;AAEzC,MAAM,qBAAqB,qBAAqB;AAEhD,MAAM,oBAAoB,qBAAqB;AAE/C,SAAS,sBAAsB,EAC7B,UACA,GAAG,SAGF;CACD,MAAM,EAAE,SAAS,qBAAqB,gBAAgB;AACtD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,gGACA,OACI,iCACA,kCACJ,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,yBAAyB,EAChC,WACA,SACA,GAAG,SAGF;AACD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,gGACA,UACD;EACD,GAAI;EACJ;YAEA,oBAAC,SAAS;GACR,UAAU,OAAO,SAAS,IAAI;GAC9B,SAAS,QAAQ,SAAS,IAAI;GAE7B;IACa;GACa;;AAInC,MAAM,qBAAqB,SAAS,OAAO;CACzC,KAAK;CACL,SAAS;CACV,CAAC;AAEF,SAAS,mBAAmB,EAC1B,WACA,WACA,GAAG,SAIF;CACD,MAAM,EAAE,SAAS,qBAAqB,gBAAgB;AAEtD,QACE,oBAAC;EAAkB,UAAU;YAC3B,oBAAC,gCACC,oBAAC,qBAAqB;GACpB,WAAW,GACT,yHACA,OACI,gDACA,kDACJ,UACD;GACD,GAAI;IACJ,GACiB;GACH;;AAIxB,SAAS,kBAAkB,EAAE,UAAW,GAAG,SAAoB;AAC7D,QAAO,oBAAC;EAAK,WAAW,GAAG,uBAAuB,UAAU;EAAE,GAAI;GAAS;;AAG7E,SAAS,kBAAkB,EAAE,UAAW,GAAG,SAAoB;AAC7D,QACE,oBAAC;EACC,WAAW,GACT,0DACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,wDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,uBAAuB,EAC9B,UACA,GAAG,SAGF;AACD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,kDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,kBAAkB,EACzB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAAS,OAAO,mBAAmB,EAAE,WAAW,CAAC;YACjE,oBAAC,qBAAqB;GACpB,WAAW,GAAG,gBAAgB,EAAE,UAAU;GAC1C,GAAI;IACJ;GACwB;;AAIhC,SAAS,kBAAkB,EACzB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAChB,OAAO,mBAAmB;GAAE;GAAW,SAAS;GAAW,CAAC;YAE5D,oBAAC,qBAAqB;GACpB,WAAW,GAAG,eAAe;IAAE,SAAS;IAAW;IAAW,CAAC,CAAC;GAChE,GAAI;IACJ;GACwB"}
1
+ {"version":3,"file":"alert-dialog.js","names":[],"sources":["../../ui/alert-dialog.tsx"],"sourcesContent":["import * as AlertDialogPrimitive from '@rn-primitives/alert-dialog';\nimport * as React from 'react';\nimport { Platform, View, type ViewProps } from 'react-native';\nimport Animated, { FadeIn, FadeOut } from 'react-native-reanimated';\nimport { buttonTextVariants, buttonVariants } from './button';\nimport { cn } from './utils';\nimport { TextClassContext } from './text';\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nfunction AlertDialogOverlayWeb({\n className,\n ...props\n}: AlertDialogPrimitive.OverlayProps & {\n ref?: React.RefObject<AlertDialogPrimitive.OverlayRef>;\n}) {\n const { open } = AlertDialogPrimitive.useRootContext();\n return (\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'absolute top-0 right-0 bottom-0 left-0 z-50 flex items-center justify-center bg-black/80 p-2',\n open\n ? 'web:animate-in web:fade-in-0'\n : 'web:animate-out web:fade-out-0',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDialogOverlayNative({\n className,\n children,\n ...props\n}: AlertDialogPrimitive.OverlayProps & {\n ref?: React.RefObject<AlertDialogPrimitive.OverlayRef>;\n}) {\n return (\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'absolute top-0 right-0 bottom-0 left-0 z-50 flex items-center justify-center bg-black/80 p-2',\n className\n )}\n {...props}\n asChild\n >\n <Animated.View\n entering={FadeIn.duration(150)}\n exiting={FadeOut.duration(150)}\n >\n {children}\n </Animated.View>\n </AlertDialogPrimitive.Overlay>\n );\n}\n\nconst AlertDialogOverlay = Platform.select({\n web: AlertDialogOverlayWeb,\n default: AlertDialogOverlayNative,\n});\n\nfunction AlertDialogContent({\n className,\n portalHost,\n ...props\n}: AlertDialogPrimitive.ContentProps & {\n ref?: React.RefObject<AlertDialogPrimitive.ContentRef>;\n portalHost?: string;\n}) {\n const { open } = AlertDialogPrimitive.useRootContext();\n\n return (\n <AlertDialogPortal hostName={portalHost}>\n <AlertDialogOverlay>\n <AlertDialogPrimitive.Content\n className={cn(\n 'border-border bg-background shadow-foreground/10 web:duration-200 z-50 max-w-lg gap-4 rounded-lg border p-6 shadow-lg',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n {...props}\n />\n </AlertDialogOverlay>\n </AlertDialogPortal>\n );\n}\n\nfunction AlertDialogHeader({ className, ...props }: ViewProps) {\n return <View className={cn('flex flex-col gap-2', className)} {...props} />;\n}\n\nfunction AlertDialogFooter({ className, ...props }: ViewProps) {\n return (\n <View\n className={cn(\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDialogTitle({\n className,\n ...props\n}: AlertDialogPrimitive.TitleProps & {\n ref?: React.RefObject<AlertDialogPrimitive.TitleRef>;\n}) {\n return (\n <AlertDialogPrimitive.Title\n className={cn(\n 'native:text-xl text-foreground text-lg font-semibold',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDialogDescription({\n className,\n ...props\n}: AlertDialogPrimitive.DescriptionProps & {\n ref?: React.RefObject<AlertDialogPrimitive.DescriptionRef>;\n}) {\n return (\n <AlertDialogPrimitive.Description\n className={cn(\n 'native:text-base text-muted-foreground text-sm',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDialogAction({\n className,\n ...props\n}: AlertDialogPrimitive.ActionProps & {\n ref?: React.RefObject<AlertDialogPrimitive.ActionRef>;\n}) {\n return (\n <TextClassContext.Provider value={buttonTextVariants({ className })}>\n <AlertDialogPrimitive.Action\n className={cn(buttonVariants(), className)}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction AlertDialogCancel({\n className,\n ...props\n}: AlertDialogPrimitive.CancelProps & {\n ref?: React.RefObject<AlertDialogPrimitive.CancelRef>;\n}) {\n return (\n <TextClassContext.Provider\n value={buttonTextVariants({ className, variant: 'outline' })}\n >\n <AlertDialogPrimitive.Cancel\n className={cn(buttonVariants({ variant: 'outline', className }))}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n};\n"],"mappings":";;;;;;;;;;AAQA,MAAM,cAAc,qBAAqB;AAEzC,MAAM,qBAAqB,qBAAqB;AAEhD,MAAM,oBAAoB,qBAAqB;AAE/C,SAAS,sBAAsB,EAC7B,WACA,GAAG,SAGF;CACD,MAAM,EAAE,SAAS,qBAAqB,gBAAgB;AACtD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,gGACA,OACI,iCACA,kCACJ,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,yBAAyB,EAChC,WACA,UACA,GAAG,SAGF;AACD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,gGACA,UACD;EACD,GAAI;EACJ;YAEA,oBAAC,SAAS;GACR,UAAU,OAAO,SAAS,IAAI;GAC9B,SAAS,QAAQ,SAAS,IAAI;GAE7B;IACa;GACa;;AAInC,MAAM,qBAAqB,SAAS,OAAO;CACzC,KAAK;CACL,SAAS;CACV,CAAC;AAEF,SAAS,mBAAmB,EAC1B,WACA,YACA,GAAG,SAIF;CACD,MAAM,EAAE,SAAS,qBAAqB,gBAAgB;AAEtD,QACE,oBAAC;EAAkB,UAAU;YAC3B,oBAAC,gCACC,oBAAC,qBAAqB;GACpB,WAAW,GACT,yHACA,OACI,gDACA,kDACJ,UACD;GACD,GAAI;IACJ,GACiB;GACH;;AAIxB,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAoB;AAC7D,QAAO,oBAAC;EAAK,WAAW,GAAG,uBAAuB,UAAU;EAAE,GAAI;GAAS;;AAG7E,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAoB;AAC7D,QACE,oBAAC;EACC,WAAW,GACT,0DACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,wDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,uBAAuB,EAC9B,WACA,GAAG,SAGF;AACD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,kDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,kBAAkB,EACzB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAAS,OAAO,mBAAmB,EAAE,WAAW,CAAC;YACjE,oBAAC,qBAAqB;GACpB,WAAW,GAAG,gBAAgB,EAAE,UAAU;GAC1C,GAAI;IACJ;GACwB;;AAIhC,SAAS,kBAAkB,EACzB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAChB,OAAO,mBAAmB;GAAE;GAAW,SAAS;GAAW,CAAC;YAE5D,oBAAC,qBAAqB;GACpB,WAAW,GAAG,eAAe;IAAE,SAAS;IAAW;IAAW,CAAC,CAAC;GAChE,GAAI;IACJ;GACwB"}
@@ -2,7 +2,7 @@ import { Text as Text$1 } from "./text.js";
2
2
  import * as React$1 from "react";
3
3
  import { View, ViewProps } from "react-native";
4
4
  import { LucideIcon } from "lucide-react-native";
5
- import * as react_jsx_runtime11 from "react/jsx-runtime";
5
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
6
6
  import { VariantProps } from "class-variance-authority";
7
7
  import * as class_variance_authority_types0 from "class-variance-authority/types";
8
8
 
@@ -23,15 +23,15 @@ declare function Alert({
23
23
  icon: LucideIcon;
24
24
  iconSize?: number;
25
25
  iconClassName?: string;
26
- }): react_jsx_runtime11.JSX.Element;
26
+ }): react_jsx_runtime3.JSX.Element;
27
27
  declare function AlertTitle({
28
28
  className,
29
29
  ...props
30
- }: React$1.ComponentProps<typeof Text$1>): react_jsx_runtime11.JSX.Element;
30
+ }: React$1.ComponentProps<typeof Text$1>): react_jsx_runtime3.JSX.Element;
31
31
  declare function AlertDescription({
32
32
  className,
33
33
  ...props
34
- }: React$1.ComponentProps<typeof Text$1>): react_jsx_runtime11.JSX.Element;
34
+ }: React$1.ComponentProps<typeof Text$1>): react_jsx_runtime3.JSX.Element;
35
35
  //#endregion
36
36
  export { Alert, AlertDescription, AlertTitle };
37
37
  //# sourceMappingURL=alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","names":[],"sources":["../../ui/alert.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;cAQM;;IAaL,+BAAA,CAAA;iBAEQ,KAAA;;;;QAID;;;;GAIL,YACD,oBAAoB;EAxBhB,GAAA,CAAA,EAyBI,OAAA,CAAM,SAZf,CAYyB,IAZzB,CAAA;EAEQ,IAAA,EAWC,UAXI;EACZ,QAAA,CAAA,EAAA,MAAA;EACA,aAAA,CAAA,EAAA,MAAA;CACA,CAAA,EAWC,mBAAA,CAAA,GAAA,CAAA,OAXD;iBA8BO,UAAA,CA7BD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgCL,OAAA,CAAM,cAhCD,CAAA,OAgCuB,MAhCvB,CAAA,CAAA,EAgC4B,mBAAA,CAAA,GAAA,CAAA,OAhC5B;iBA4CC,gBAAA,CA3CP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA8CC,OAAA,CAAM,cA9CP,CAAA,OA8C6B,MA9C7B,CAAA,CAAA,EA8CkC,mBAAA,CAAA,GAAA,CAAA,OA9ClC"}
1
+ {"version":3,"file":"alert.d.ts","names":[],"sources":["../../ui/alert.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;cAQM;;IAaL,+BAAA,CAAA;iBAEQ,KAAA;;;;QAID;;;;GAIL,YACD,oBAAoB;EAxBhB,GAAA,CAAA,EAyBI,OAAA,CAAM,SAZf,CAYyB,IAZzB,CAAA;EAEQ,IAAA,EAWC,UAXI;EACZ,QAAA,CAAA,EAAA,MAAA;EACA,aAAA,CAAA,EAAA,MAAA;CACA,CAAA,EAWC,kBAAA,CAAA,GAAA,CAAA,OAXD;iBA8BO,UAAA,CA7BD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgCL,OAAA,CAAM,cAhCD,CAAA,OAgCuB,MAhCvB,CAAA,CAAA,EAgC4B,kBAAA,CAAA,GAAA,CAAA,OAhC5B;iBA4CC,gBAAA,CA3CP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA8CC,OAAA,CAAM,cA9CP,CAAA,OA8C6B,MA9C7B,CAAA,CAAA,EA8CkC,kBAAA,CAAA,GAAA,CAAA,OA9ClC"}
package/dist/ui/alert.js CHANGED
@@ -14,7 +14,7 @@ const alertVariants = cva("relative bg-background w-full rounded-lg border borde
14
14
  } },
15
15
  defaultVariants: { variant: "default" }
16
16
  });
17
- function Alert({ className, variant, children, icon: Icon, iconSize = 16, iconClassName,...props }) {
17
+ function Alert({ className, variant, children, icon: Icon, iconSize = 16, iconClassName, ...props }) {
18
18
  const { colors } = useTheme();
19
19
  return /* @__PURE__ */ jsxs(View, {
20
20
  role: "alert",
@@ -32,13 +32,13 @@ function Alert({ className, variant, children, icon: Icon, iconSize = 16, iconCl
32
32
  }), children]
33
33
  });
34
34
  }
35
- function AlertTitle({ className,...props }) {
35
+ function AlertTitle({ className, ...props }) {
36
36
  return /* @__PURE__ */ jsx(Text$1, {
37
37
  className: cn("text-foreground mb-1 pl-7 text-base leading-none font-medium tracking-tight", className),
38
38
  ...props
39
39
  });
40
40
  }
41
- function AlertDescription({ className,...props }) {
41
+ function AlertDescription({ className, ...props }) {
42
42
  return /* @__PURE__ */ jsx(Text$1, {
43
43
  className: cn("text-foreground pl-7 text-sm leading-relaxed", className),
44
44
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"alert.js","names":["Text"],"sources":["../../ui/alert.tsx"],"sourcesContent":["import { useTheme } from '@react-navigation/native';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react-native';\nimport * as React from 'react';\nimport { View, type ViewProps } from 'react-native';\nimport { cn } from './utils';\nimport { Text } from './text';\n\nconst alertVariants = cva(\n 'relative bg-background w-full rounded-lg border border-border p-4 shadow-2xs shadow-foreground/10',\n {\n variants: {\n variant: {\n default: '',\n destructive: 'border-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\nfunction Alert({\n className,\n variant,\n children,\n icon: Icon,\n iconSize = 16,\n iconClassName,\n ...props\n}: ViewProps &\n VariantProps<typeof alertVariants> & {\n ref?: React.RefObject<View>;\n icon: LucideIcon;\n iconSize?: number;\n iconClassName?: string;\n }) {\n const { colors } = useTheme();\n return (\n <View\n role=\"alert\"\n className={alertVariants({ variant, className })}\n {...props}\n >\n <View className=\"absolute top-4 left-3.5 -translate-y-0.5\">\n <Icon\n size={iconSize}\n color={variant === 'destructive' ? colors.notification : colors.text}\n />\n </View>\n {children}\n </View>\n );\n}\n\nfunction AlertTitle({\n className,\n ...props\n}: React.ComponentProps<typeof Text>) {\n return (\n <Text\n className={cn(\n 'text-foreground mb-1 pl-7 text-base leading-none font-medium tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDescription({\n className,\n ...props\n}: React.ComponentProps<typeof Text>) {\n return (\n <Text\n className={cn('text-foreground pl-7 text-sm leading-relaxed', className)}\n {...props}\n />\n );\n}\n\nexport { Alert, AlertDescription, AlertTitle };\n"],"mappings":";;;;;;;;;AAQA,MAAM,gBAAgB,IACpB,qGACA;CACE,UAAU,EACR,SAAS;EACP,SAAS;EACT,aAAa;EACd,EACF;CACD,iBAAiB,EACf,SAAS,WACV;CACF,CACF;AAED,SAAS,MAAM,EACb,WACA,SACA,UACA,MAAM,MACN,WAAW,IACX,cACA,GAAG,SAOA;CACH,MAAM,EAAE,WAAW,UAAU;AAC7B,QACE,qBAAC;EACC,MAAK;EACL,WAAW,cAAc;GAAE;GAAS;GAAW,CAAC;EAChD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC;IACC,MAAM;IACN,OAAO,YAAY,gBAAgB,OAAO,eAAe,OAAO;KAChE;IACG,EACN;GACI;;AAIX,SAAS,WAAW,EAClB,UACA,GAAG,SACiC;AACpC,QACE,oBAACA;EACC,WAAW,GACT,+EACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,UACA,GAAG,SACiC;AACpC,QACE,oBAACA;EACC,WAAW,GAAG,gDAAgD,UAAU;EACxE,GAAI;GACJ"}
1
+ {"version":3,"file":"alert.js","names":["Text"],"sources":["../../ui/alert.tsx"],"sourcesContent":["import { useTheme } from '@react-navigation/native';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react-native';\nimport * as React from 'react';\nimport { View, type ViewProps } from 'react-native';\nimport { cn } from './utils';\nimport { Text } from './text';\n\nconst alertVariants = cva(\n 'relative bg-background w-full rounded-lg border border-border p-4 shadow-2xs shadow-foreground/10',\n {\n variants: {\n variant: {\n default: '',\n destructive: 'border-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\nfunction Alert({\n className,\n variant,\n children,\n icon: Icon,\n iconSize = 16,\n iconClassName,\n ...props\n}: ViewProps &\n VariantProps<typeof alertVariants> & {\n ref?: React.RefObject<View>;\n icon: LucideIcon;\n iconSize?: number;\n iconClassName?: string;\n }) {\n const { colors } = useTheme();\n return (\n <View\n role=\"alert\"\n className={alertVariants({ variant, className })}\n {...props}\n >\n <View className=\"absolute top-4 left-3.5 -translate-y-0.5\">\n <Icon\n size={iconSize}\n color={variant === 'destructive' ? colors.notification : colors.text}\n />\n </View>\n {children}\n </View>\n );\n}\n\nfunction AlertTitle({\n className,\n ...props\n}: React.ComponentProps<typeof Text>) {\n return (\n <Text\n className={cn(\n 'text-foreground mb-1 pl-7 text-base leading-none font-medium tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDescription({\n className,\n ...props\n}: React.ComponentProps<typeof Text>) {\n return (\n <Text\n className={cn('text-foreground pl-7 text-sm leading-relaxed', className)}\n {...props}\n />\n );\n}\n\nexport { Alert, AlertDescription, AlertTitle };\n"],"mappings":";;;;;;;;;AAQA,MAAM,gBAAgB,IACpB,qGACA;CACE,UAAU,EACR,SAAS;EACP,SAAS;EACT,aAAa;EACd,EACF;CACD,iBAAiB,EACf,SAAS,WACV;CACF,CACF;AAED,SAAS,MAAM,EACb,WACA,SACA,UACA,MAAM,MACN,WAAW,IACX,eACA,GAAG,SAOA;CACH,MAAM,EAAE,WAAW,UAAU;AAC7B,QACE,qBAAC;EACC,MAAK;EACL,WAAW,cAAc;GAAE;GAAS;GAAW,CAAC;EAChD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC;IACC,MAAM;IACN,OAAO,YAAY,gBAAgB,OAAO,eAAe,OAAO;KAChE;IACG,EACN;GACI;;AAIX,SAAS,WAAW,EAClB,WACA,GAAG,SACiC;AACpC,QACE,oBAACA;EACC,WAAW,GACT,+EACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,WACA,GAAG,SACiC;AACpC,QACE,oBAACA;EACC,WAAW,GAAG,gDAAgD,UAAU;EACxE,GAAI;GACJ"}
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime14 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
3
3
  import * as AvatarPrimitive from "@rn-primitives/avatar";
4
4
 
5
5
  //#region ui/avatar.d.ts
@@ -8,7 +8,7 @@ declare function Avatar({
8
8
  ...props
9
9
  }: AvatarPrimitive.RootProps & {
10
10
  ref?: React$1.RefObject<AvatarPrimitive.RootRef>;
11
- }): react_jsx_runtime14.JSX.Element;
11
+ }): react_jsx_runtime6.JSX.Element;
12
12
  declare function AvatarImage({
13
13
  className,
14
14
  alt,
@@ -16,13 +16,13 @@ declare function AvatarImage({
16
16
  }: AvatarPrimitive.ImageProps & {
17
17
  ref?: React$1.RefObject<AvatarPrimitive.ImageRef>;
18
18
  alt?: string;
19
- }): react_jsx_runtime14.JSX.Element;
19
+ }): react_jsx_runtime6.JSX.Element;
20
20
  declare function AvatarFallback({
21
21
  className,
22
22
  ...props
23
23
  }: AvatarPrimitive.FallbackProps & {
24
24
  ref?: React$1.RefObject<AvatarPrimitive.FallbackRef>;
25
- }): react_jsx_runtime14.JSX.Element;
25
+ }): react_jsx_runtime6.JSX.Element;
26
26
  //#endregion
27
27
  export { Avatar, AvatarFallback, AvatarImage };
28
28
  //# sourceMappingURL=avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","names":[],"sources":["../../ui/avatar.tsx"],"sourcesContent":[],"mappings":";;;;;iBAIS,MAAA;;;GAGN,eAAA,CAAgB;QACX,OAAA,CAAM,UAAU,eAAA,CAAgB;IACvC,mBAAA,CAAA,GAAA,CAAA;AAR8B,iBAoBtB,WAAA,CAjBM;EAAA,SAAA;EAAA,GAAA;EAAA,GAAA;CAAA,EAqBZ,eAAA,CAAgB,UArBJ,GAAA;EACb,GAAA,CAAA,EAqBM,OAAA,CAAM,SArBZ,CAqBsB,eAAA,CAAgB,QArBtC,CAAA;EAEC,GAAA,CAAA,EAAA,MAAA;CACqB,CAAA,EAoBvB,mBAAA,CAAA,GAAA,CAAA,OApBuC;iBA6B/B,cAAA,CA7BK;EAAA,SAAA;EAAA,GAAA;CAAA,EAgCX,eAAA,CAAgB,aAhCL,GAAA;EACb,GAAA,CAAA,EAgCO,OAAA,CAAM,SAhCb,CAgCuB,eAAA,CAAgB,WAhCvC,CAAA;CAAA,CAAA,EAiCA,mBAAA,CAAA,GAAA,CAAA,OAjCA"}
1
+ {"version":3,"file":"avatar.d.ts","names":[],"sources":["../../ui/avatar.tsx"],"sourcesContent":[],"mappings":";;;;;iBAIS,MAAA;;;GAGN,eAAA,CAAgB;QACX,OAAA,CAAM,UAAU,eAAA,CAAgB;IACvC,kBAAA,CAAA,GAAA,CAAA;AAR8B,iBAoBtB,WAAA,CAjBM;EAAA,SAAA;EAAA,GAAA;EAAA,GAAA;CAAA,EAqBZ,eAAA,CAAgB,UArBJ,GAAA;EACb,GAAA,CAAA,EAqBM,OAAA,CAAM,SArBZ,CAqBsB,eAAA,CAAgB,QArBtC,CAAA;EAEC,GAAA,CAAA,EAAA,MAAA;CACqB,CAAA,EAoBvB,kBAAA,CAAA,GAAA,CAAA,OApBuC;iBA6B/B,cAAA,CA7BK;EAAA,SAAA;EAAA,GAAA;CAAA,EAgCX,eAAA,CAAgB,aAhCL,GAAA;EACb,GAAA,CAAA,EAgCO,OAAA,CAAM,SAhCb,CAgCuB,eAAA,CAAgB,WAhCvC,CAAA;CAAA,CAAA,EAiCA,kBAAA,CAAA,GAAA,CAAA,OAjCA"}
package/dist/ui/avatar.js CHANGED
@@ -4,19 +4,19 @@ import { jsx } from "react/jsx-runtime";
4
4
  import * as AvatarPrimitive from "@rn-primitives/avatar";
5
5
 
6
6
  //#region ui/avatar.tsx
7
- function Avatar({ className,...props }) {
7
+ function Avatar({ className, ...props }) {
8
8
  return /* @__PURE__ */ jsx(AvatarPrimitive.Root, {
9
9
  className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className),
10
10
  ...props
11
11
  });
12
12
  }
13
- function AvatarImage({ className, alt,...props }) {
13
+ function AvatarImage({ className, alt, ...props }) {
14
14
  return /* @__PURE__ */ jsx(AvatarPrimitive.Image, {
15
15
  className: cn("aspect-square h-full w-full", className),
16
16
  ...props
17
17
  });
18
18
  }
19
- function AvatarFallback({ className,...props }) {
19
+ function AvatarFallback({ className, ...props }) {
20
20
  return /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, {
21
21
  className: cn("bg-muted flex h-full w-full items-center justify-center rounded-full", className),
22
22
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.js","names":[],"sources":["../../ui/avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from '@rn-primitives/avatar';\nimport * as React from 'react';\nimport { cn } from './utils';\n\nfunction Avatar({\n className,\n ...props\n}: AvatarPrimitive.RootProps & {\n ref?: React.RefObject<AvatarPrimitive.RootRef>;\n}) {\n return (\n <AvatarPrimitive.Root\n className={cn(\n 'relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarImage({\n className,\n alt,\n ...props\n}: AvatarPrimitive.ImageProps & {\n ref?: React.RefObject<AvatarPrimitive.ImageRef>;\n alt?: string;\n}) {\n return (\n <AvatarPrimitive.Image\n className={cn('aspect-square h-full w-full', className)}\n {...props}\n />\n );\n}\n\nfunction AvatarFallback({\n className,\n ...props\n}: AvatarPrimitive.FallbackProps & {\n ref?: React.RefObject<AvatarPrimitive.FallbackRef>;\n}) {\n return (\n <AvatarPrimitive.Fallback\n className={cn(\n 'bg-muted flex h-full w-full items-center justify-center rounded-full',\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Avatar, AvatarFallback, AvatarImage };\n"],"mappings":";;;;;;AAIA,SAAS,OAAO,EACd,UACA,GAAG,SAGF;AACD,QACE,oBAAC,gBAAgB;EACf,WAAW,GACT,iEACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,YAAY,EACnB,WACA,IACA,GAAG,SAIF;AACD,QACE,oBAAC,gBAAgB;EACf,WAAW,GAAG,+BAA+B,UAAU;EACvD,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,gBAAgB;EACf,WAAW,GACT,wEACA,UACD;EACD,GAAI;GACJ"}
1
+ {"version":3,"file":"avatar.js","names":[],"sources":["../../ui/avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from '@rn-primitives/avatar';\nimport * as React from 'react';\nimport { cn } from './utils';\n\nfunction Avatar({\n className,\n ...props\n}: AvatarPrimitive.RootProps & {\n ref?: React.RefObject<AvatarPrimitive.RootRef>;\n}) {\n return (\n <AvatarPrimitive.Root\n className={cn(\n 'relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarImage({\n className,\n alt,\n ...props\n}: AvatarPrimitive.ImageProps & {\n ref?: React.RefObject<AvatarPrimitive.ImageRef>;\n alt?: string;\n}) {\n return (\n <AvatarPrimitive.Image\n className={cn('aspect-square h-full w-full', className)}\n {...props}\n />\n );\n}\n\nfunction AvatarFallback({\n className,\n ...props\n}: AvatarPrimitive.FallbackProps & {\n ref?: React.RefObject<AvatarPrimitive.FallbackRef>;\n}) {\n return (\n <AvatarPrimitive.Fallback\n className={cn(\n 'bg-muted flex h-full w-full items-center justify-center rounded-full',\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Avatar, AvatarFallback, AvatarImage };\n"],"mappings":";;;;;;AAIA,SAAS,OAAO,EACd,WACA,GAAG,SAGF;AACD,QACE,oBAAC,gBAAgB;EACf,WAAW,GACT,iEACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,YAAY,EACnB,WACA,KACA,GAAG,SAIF;AACD,QACE,oBAAC,gBAAgB;EACf,WAAW,GAAG,+BAA+B,UAAU;EACvD,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,gBAAgB;EACf,WAAW,GACT,wEACA,UACD;EACD,GAAI;GACJ"}
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
2
  import { View } from "react-native";
3
- import * as react_jsx_runtime17 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
  import * as class_variance_authority_types0 from "class-variance-authority/types";
6
6
 
@@ -16,7 +16,7 @@ declare function Badge({
16
16
  variant,
17
17
  labelClassName,
18
18
  ...props
19
- }: BadgeProps): react_jsx_runtime17.JSX.Element;
19
+ }: BadgeProps): react_jsx_runtime24.JSX.Element;
20
20
  //#endregion
21
21
  export { Badge, badgeVariants };
22
22
  //# sourceMappingURL=badge.d.ts.map
package/dist/ui/badge.js CHANGED
@@ -14,7 +14,7 @@ const badgeVariants = cva("web:inline-flex items-center rounded-full border bord
14
14
  } },
15
15
  defaultVariants: { variant: "default" }
16
16
  });
17
- function Badge({ className, variant, labelClassName,...props }) {
17
+ function Badge({ className, variant, labelClassName, ...props }) {
18
18
  return /* @__PURE__ */ jsx(View, {
19
19
  className: cn(badgeVariants({ variant }), className),
20
20
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","names":[],"sources":["../../ui/badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { View } from 'react-native';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from './utils';\n\nconst badgeVariants = cva(\n 'web:inline-flex items-center rounded-full border border-border px-2.5 py-0.5 text-xs font-semibold web:transition-colors web:focus:outline-hidden web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2',\n {\n variants: {\n variant: {\n default:\n 'border-transparent bg-primary text-primary-foreground web:hover:opacity-80 active:opacity-80',\n secondary:\n 'border-transparent bg-secondary text-secondary-foreground web:hover:opacity-80 active:opacity-80',\n destructive:\n 'border-transparent bg-destructive text-destructive-foreground web:hover:opacity-80 active:opacity-80',\n outline: 'text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\ntype BadgeProps = React.ComponentProps<typeof View> &\n VariantProps<typeof badgeVariants> & {\n labelClassName?: string;\n };\n\nfunction Badge({ className, variant, labelClassName, ...props }: BadgeProps) {\n return (\n <View className={cn(badgeVariants({ variant }), className)} {...props} />\n );\n}\n\nexport { Badge, badgeVariants };\n"],"mappings":";;;;;;;AAKA,MAAM,gBAAgB,IACpB,kNACA;CACE,UAAU,EACR,SAAS;EACP,SACE;EACF,WACE;EACF,aACE;EACF,SAAS;EACV,EACF;CACD,iBAAiB,EACf,SAAS,WACV;CACF,CACF;AAOD,SAAS,MAAM,EAAE,WAAW,SAAS,eAAgB,GAAG,SAAqB;AAC3E,QACE,oBAAC;EAAK,WAAW,GAAG,cAAc,EAAE,SAAS,CAAC,EAAE,UAAU;EAAE,GAAI;GAAS"}
1
+ {"version":3,"file":"badge.js","names":[],"sources":["../../ui/badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { View } from 'react-native';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from './utils';\n\nconst badgeVariants = cva(\n 'web:inline-flex items-center rounded-full border border-border px-2.5 py-0.5 text-xs font-semibold web:transition-colors web:focus:outline-hidden web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2',\n {\n variants: {\n variant: {\n default:\n 'border-transparent bg-primary text-primary-foreground web:hover:opacity-80 active:opacity-80',\n secondary:\n 'border-transparent bg-secondary text-secondary-foreground web:hover:opacity-80 active:opacity-80',\n destructive:\n 'border-transparent bg-destructive text-destructive-foreground web:hover:opacity-80 active:opacity-80',\n outline: 'text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\ntype BadgeProps = React.ComponentProps<typeof View> &\n VariantProps<typeof badgeVariants> & {\n labelClassName?: string;\n };\n\nfunction Badge({ className, variant, labelClassName, ...props }: BadgeProps) {\n return (\n <View className={cn(badgeVariants({ variant }), className)} {...props} />\n );\n}\n\nexport { Badge, badgeVariants };\n"],"mappings":";;;;;;;AAKA,MAAM,gBAAgB,IACpB,kNACA;CACE,UAAU,EACR,SAAS;EACP,SACE;EACF,WACE;EACF,aACE;EACF,SAAS;EACV,EACF;CACD,iBAAiB,EACf,SAAS,WACV;CACF,CACF;AAOD,SAAS,MAAM,EAAE,WAAW,SAAS,gBAAgB,GAAG,SAAqB;AAC3E,QACE,oBAAC;EAAK,WAAW,GAAG,cAAc,EAAE,SAAS,CAAC,EAAE,UAAU;EAAE,GAAI;GAAS"}
@@ -1,39 +1,39 @@
1
1
  import * as React$1 from "react";
2
2
  import { View } from "react-native";
3
- import * as react_jsx_runtime18 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
4
4
 
5
5
  //#region ui/breadcrumb.d.ts
6
6
  declare function Breadcrumb({
7
7
  ...props
8
- }: React$1.ComponentProps<'nav'>): react_jsx_runtime18.JSX.Element;
8
+ }: React$1.ComponentProps<'nav'>): react_jsx_runtime17.JSX.Element;
9
9
  declare function BreadcrumbList({
10
10
  className,
11
11
  ...props
12
- }: React$1.ComponentProps<typeof View>): react_jsx_runtime18.JSX.Element;
12
+ }: React$1.ComponentProps<typeof View>): react_jsx_runtime17.JSX.Element;
13
13
  declare function BreadcrumbItem({
14
14
  className,
15
15
  ...props
16
- }: React$1.ComponentProps<typeof View>): react_jsx_runtime18.JSX.Element;
16
+ }: React$1.ComponentProps<typeof View>): react_jsx_runtime17.JSX.Element;
17
17
  declare function BreadcrumbLink({
18
18
  asChild,
19
19
  className,
20
20
  ...props
21
21
  }: React$1.ComponentProps<typeof View> & {
22
22
  asChild?: boolean;
23
- }): react_jsx_runtime18.JSX.Element;
23
+ }): react_jsx_runtime17.JSX.Element;
24
24
  declare function BreadcrumbPage({
25
25
  className,
26
26
  ...props
27
- }: React$1.ComponentProps<typeof View>): react_jsx_runtime18.JSX.Element;
27
+ }: React$1.ComponentProps<typeof View>): react_jsx_runtime17.JSX.Element;
28
28
  declare function BreadcrumbSeparator({
29
29
  children,
30
30
  className,
31
31
  ...props
32
- }: React$1.ComponentProps<typeof View>): react_jsx_runtime18.JSX.Element;
32
+ }: React$1.ComponentProps<typeof View>): react_jsx_runtime17.JSX.Element;
33
33
  declare function BreadcrumbEllipsis({
34
34
  className,
35
35
  ...props
36
- }: React$1.ComponentProps<typeof View>): react_jsx_runtime18.JSX.Element;
36
+ }: React$1.ComponentProps<typeof View>): react_jsx_runtime17.JSX.Element;
37
37
  //#endregion
38
38
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
39
39
  //# sourceMappingURL=breadcrumb.d.ts.map
@@ -13,28 +13,28 @@ function Breadcrumb({ ...props }) {
13
13
  ...props
14
14
  });
15
15
  }
16
- function BreadcrumbList({ className,...props }) {
16
+ function BreadcrumbList({ className, ...props }) {
17
17
  return /* @__PURE__ */ jsx(View, {
18
18
  "data-slot": "breadcrumb-list",
19
19
  className: cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", className),
20
20
  ...props
21
21
  });
22
22
  }
23
- function BreadcrumbItem({ className,...props }) {
23
+ function BreadcrumbItem({ className, ...props }) {
24
24
  return /* @__PURE__ */ jsx(View, {
25
25
  "data-slot": "breadcrumb-item",
26
26
  className: cn("inline-flex items-center gap-1.5", className),
27
27
  ...props
28
28
  });
29
29
  }
30
- function BreadcrumbLink({ asChild, className,...props }) {
30
+ function BreadcrumbLink({ asChild, className, ...props }) {
31
31
  return /* @__PURE__ */ jsx(View, {
32
32
  "data-slot": "breadcrumb-link",
33
33
  className: cn("hover:text-foreground transition-colors", className),
34
34
  ...props
35
35
  });
36
36
  }
37
- function BreadcrumbPage({ className,...props }) {
37
+ function BreadcrumbPage({ className, ...props }) {
38
38
  return /* @__PURE__ */ jsx(View, {
39
39
  "data-slot": "breadcrumb-page",
40
40
  role: "link",
@@ -44,7 +44,7 @@ function BreadcrumbPage({ className,...props }) {
44
44
  ...props
45
45
  });
46
46
  }
47
- function BreadcrumbSeparator({ children, className,...props }) {
47
+ function BreadcrumbSeparator({ children, className, ...props }) {
48
48
  return /* @__PURE__ */ jsx(View, {
49
49
  role: "presentation",
50
50
  "data-slot": "breadcrumb-separator",
@@ -54,7 +54,7 @@ function BreadcrumbSeparator({ children, className,...props }) {
54
54
  children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
55
55
  });
56
56
  }
57
- function BreadcrumbEllipsis({ className,...props }) {
57
+ function BreadcrumbEllipsis({ className, ...props }) {
58
58
  return /* @__PURE__ */ jsxs(View, {
59
59
  "data-slot": "breadcrumb-ellipsis",
60
60
  role: "presentation",
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.js","names":[],"sources":["../../ui/breadcrumb.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as Slot from '@rn-primitives/slot';\nimport { ChevronRight, MoreHorizontal } from 'lucide-react';\nimport { Text, View, type ViewProps } from 'react-native';\n\nimport { cn } from './utils';\n\nfunction Breadcrumb({ ...props }: React.ComponentProps<'nav'>) {\n return <nav aria-label=\"breadcrumb\" data-slot=\"breadcrumb\" {...props} />;\n}\n\nfunction BreadcrumbList({\n className,\n ...props\n}: React.ComponentProps<typeof View>) {\n return (\n <View\n data-slot=\"breadcrumb-list\"\n className={cn(\n 'text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbItem({\n className,\n ...props\n}: React.ComponentProps<typeof View>) {\n return (\n <View\n data-slot=\"breadcrumb-item\"\n className={cn('inline-flex items-center gap-1.5', className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbLink({\n asChild,\n className,\n ...props\n}: React.ComponentProps<typeof View> & {\n asChild?: boolean;\n}) {\n // const Comp = asChild ? Slot : View;\n\n return (\n <View\n data-slot=\"breadcrumb-link\"\n className={cn('hover:text-foreground transition-colors', className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbPage({\n className,\n ...props\n}: React.ComponentProps<typeof View>) {\n return (\n <View\n data-slot=\"breadcrumb-page\"\n role=\"link\"\n aria-disabled\n aria-current=\"page\"\n className={cn('text-foreground font-normal', className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbSeparator({\n children,\n className,\n ...props\n}: React.ComponentProps<typeof View>) {\n return (\n <View\n role=\"presentation\"\n data-slot=\"breadcrumb-separator\"\n aria-hidden\n className={cn('[&>svg]:size-3.5', className)}\n {...props}\n >\n {children ?? <ChevronRight />}\n </View>\n );\n}\n\nfunction BreadcrumbEllipsis({\n className,\n ...props\n}: React.ComponentProps<typeof View>) {\n return (\n <View\n data-slot=\"breadcrumb-ellipsis\"\n role=\"presentation\"\n aria-hidden\n className={cn('flex size-9 items-center justify-center', className)}\n {...props}\n >\n <MoreHorizontal className=\"size-4\" />\n <View className=\"sr-only\">\n <Text>More</Text>\n </View>\n </View>\n );\n}\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n};\n"],"mappings":";;;;;;;;AAOA,SAAS,WAAW,EAAE,GAAG,SAAsC;AAC7D,QAAO,oBAAC;EAAI,cAAW;EAAa,aAAU;EAAa,GAAI;GAAS;;AAG1E,SAAS,eAAe,EACtB,UACA,GAAG,SACiC;AACpC,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,4FACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,UACA,GAAG,SACiC;AACpC,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,oCAAoC,UAAU;EAC5D,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,SACA,UACA,GAAG,SAGF;AAGD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,2CAA2C,UAAU;EACnE,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,UACA,GAAG,SACiC;AACpC,QACE,oBAAC;EACC,aAAU;EACV,MAAK;EACL;EACA,gBAAa;EACb,WAAW,GAAG,+BAA+B,UAAU;EACvD,GAAI;GACJ;;AAIN,SAAS,oBAAoB,EAC3B,UACA,UACA,GAAG,SACiC;AACpC,QACE,oBAAC;EACC,MAAK;EACL,aAAU;EACV;EACA,WAAW,GAAG,oBAAoB,UAAU;EAC5C,GAAI;YAEH,YAAY,oBAAC,iBAAe;GACxB;;AAIX,SAAS,mBAAmB,EAC1B,UACA,GAAG,SACiC;AACpC,QACE,qBAAC;EACC,aAAU;EACV,MAAK;EACL;EACA,WAAW,GAAG,2CAA2C,UAAU;EACnE,GAAI;aAEJ,oBAAC,kBAAe,WAAU,WAAW,EACrC,oBAAC;GAAK,WAAU;aACd,oBAAC,kBAAK,SAAW;IACZ;GACF"}
1
+ {"version":3,"file":"breadcrumb.js","names":[],"sources":["../../ui/breadcrumb.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as Slot from '@rn-primitives/slot';\nimport { ChevronRight, MoreHorizontal } from 'lucide-react';\nimport { Text, View, type ViewProps } from 'react-native';\n\nimport { cn } from './utils';\n\nfunction Breadcrumb({ ...props }: React.ComponentProps<'nav'>) {\n return <nav aria-label=\"breadcrumb\" data-slot=\"breadcrumb\" {...props} />;\n}\n\nfunction BreadcrumbList({\n className,\n ...props\n}: React.ComponentProps<typeof View>) {\n return (\n <View\n data-slot=\"breadcrumb-list\"\n className={cn(\n 'text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbItem({\n className,\n ...props\n}: React.ComponentProps<typeof View>) {\n return (\n <View\n data-slot=\"breadcrumb-item\"\n className={cn('inline-flex items-center gap-1.5', className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbLink({\n asChild,\n className,\n ...props\n}: React.ComponentProps<typeof View> & {\n asChild?: boolean;\n}) {\n // const Comp = asChild ? Slot : View;\n\n return (\n <View\n data-slot=\"breadcrumb-link\"\n className={cn('hover:text-foreground transition-colors', className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbPage({\n className,\n ...props\n}: React.ComponentProps<typeof View>) {\n return (\n <View\n data-slot=\"breadcrumb-page\"\n role=\"link\"\n aria-disabled\n aria-current=\"page\"\n className={cn('text-foreground font-normal', className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbSeparator({\n children,\n className,\n ...props\n}: React.ComponentProps<typeof View>) {\n return (\n <View\n role=\"presentation\"\n data-slot=\"breadcrumb-separator\"\n aria-hidden\n className={cn('[&>svg]:size-3.5', className)}\n {...props}\n >\n {children ?? <ChevronRight />}\n </View>\n );\n}\n\nfunction BreadcrumbEllipsis({\n className,\n ...props\n}: React.ComponentProps<typeof View>) {\n return (\n <View\n data-slot=\"breadcrumb-ellipsis\"\n role=\"presentation\"\n aria-hidden\n className={cn('flex size-9 items-center justify-center', className)}\n {...props}\n >\n <MoreHorizontal className=\"size-4\" />\n <View className=\"sr-only\">\n <Text>More</Text>\n </View>\n </View>\n );\n}\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n};\n"],"mappings":";;;;;;;;AAOA,SAAS,WAAW,EAAE,GAAG,SAAsC;AAC7D,QAAO,oBAAC;EAAI,cAAW;EAAa,aAAU;EAAa,GAAI;GAAS;;AAG1E,SAAS,eAAe,EACtB,WACA,GAAG,SACiC;AACpC,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,4FACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,WACA,GAAG,SACiC;AACpC,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,oCAAoC,UAAU;EAC5D,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,SACA,WACA,GAAG,SAGF;AAGD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,2CAA2C,UAAU;EACnE,GAAI;GACJ;;AAIN,SAAS,eAAe,EACtB,WACA,GAAG,SACiC;AACpC,QACE,oBAAC;EACC,aAAU;EACV,MAAK;EACL;EACA,gBAAa;EACb,WAAW,GAAG,+BAA+B,UAAU;EACvD,GAAI;GACJ;;AAIN,SAAS,oBAAoB,EAC3B,UACA,WACA,GAAG,SACiC;AACpC,QACE,oBAAC;EACC,MAAK;EACL,aAAU;EACV;EACA,WAAW,GAAG,oBAAoB,UAAU;EAC5C,GAAI;YAEH,YAAY,oBAAC,iBAAe;GACxB;;AAIX,SAAS,mBAAmB,EAC1B,WACA,GAAG,SACiC;AACpC,QACE,qBAAC;EACC,aAAU;EACV,MAAK;EACL;EACA,WAAW,GAAG,2CAA2C,UAAU;EACnE,GAAI;aAEJ,oBAAC,kBAAe,WAAU,WAAW,EACrC,oBAAC;GAAK,WAAU;aACd,oBAAC,kBAAK,SAAW;IACZ;GACF"}
package/dist/ui/button.js CHANGED
@@ -50,7 +50,7 @@ const buttonTextVariants = cva("web:whitespace-nowrap text-sm native:text-base f
50
50
  size: "default"
51
51
  }
52
52
  });
53
- function Button({ ref, className, variant, size,...props }) {
53
+ function Button({ ref, className, variant, size, ...props }) {
54
54
  return /* @__PURE__ */ jsx(TextClassContext.Provider, {
55
55
  value: buttonTextVariants({
56
56
  variant,
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","names":[],"sources":["../../ui/button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\nimport { Pressable } from 'react-native';\nimport { TextClassContext } from './text';\nimport { cn } from './utils';\n\nconst buttonVariants = cva(\n 'group flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors 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-primary web:hover:opacity-90 active:opacity-90',\n destructive: 'bg-destructive web:hover:opacity-90 active:opacity-90',\n outline:\n 'border border-input bg-background web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent',\n secondary: 'bg-secondary web:hover:opacity-80 active:opacity-80',\n ghost:\n 'web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent',\n link: 'web:underline-offset-4 web:hover:underline web:focus:underline',\n },\n size: {\n default: 'h-10 px-4 py-2 native:h-12 native:px-5 native:py-3',\n sm: 'h-9 rounded-md px-3',\n lg: 'h-11 rounded-md px-8 native:h-14',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nconst buttonTextVariants = cva(\n 'web:whitespace-nowrap text-sm native:text-base font-medium text-foreground web:transition-colors',\n {\n variants: {\n variant: {\n default: 'text-primary-foreground',\n destructive: 'text-destructive-foreground',\n outline: 'group-active:text-accent-foreground',\n secondary:\n 'text-secondary-foreground group-active:text-secondary-foreground',\n ghost: 'group-active:text-accent-foreground',\n link: 'text-primary group-active:underline',\n },\n size: {\n default: '',\n sm: '',\n lg: 'native:text-lg',\n icon: '',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\ntype ButtonProps = React.ComponentProps<typeof Pressable> &\n VariantProps<typeof buttonVariants>;\n\nfunction Button({ ref, className, variant, size, ...props }: ButtonProps) {\n return (\n <TextClassContext.Provider\n value={buttonTextVariants({\n variant,\n size,\n className: 'web:pointer-events-none',\n })}\n >\n <Pressable\n className={cn(\n props.disabled && 'web:pointer-events-none opacity-50',\n buttonVariants({ variant, size, className })\n )}\n ref={ref}\n role=\"button\"\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nexport { Button, buttonTextVariants, buttonVariants };\nexport type { ButtonProps };\n"],"mappings":";;;;;;;;AAMA,MAAM,iBAAiB,IACrB,4NACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,aAAa;GACb,SACE;GACF,WAAW;GACX,OACE;GACF,MAAM;GACP;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,MAAM;GACP;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,MAAM,qBAAqB,IACzB,oGACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,aAAa;GACb,SAAS;GACT,WACE;GACF,OAAO;GACP,MAAM;GACP;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,MAAM;GACP;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAKD,SAAS,OAAO,EAAE,KAAK,WAAW,SAAS,KAAM,GAAG,SAAsB;AACxE,QACE,oBAAC,iBAAiB;EAChB,OAAO,mBAAmB;GACxB;GACA;GACA,WAAW;GACZ,CAAC;YAEF,oBAAC;GACC,WAAW,GACT,MAAM,YAAY,sCAClB,eAAe;IAAE;IAAS;IAAM;IAAW,CAAC,CAC7C;GACI;GACL,MAAK;GACL,GAAI;IACJ;GACwB"}
1
+ {"version":3,"file":"button.js","names":[],"sources":["../../ui/button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\nimport { Pressable } from 'react-native';\nimport { TextClassContext } from './text';\nimport { cn } from './utils';\n\nconst buttonVariants = cva(\n 'group flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors 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-primary web:hover:opacity-90 active:opacity-90',\n destructive: 'bg-destructive web:hover:opacity-90 active:opacity-90',\n outline:\n 'border border-input bg-background web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent',\n secondary: 'bg-secondary web:hover:opacity-80 active:opacity-80',\n ghost:\n 'web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent',\n link: 'web:underline-offset-4 web:hover:underline web:focus:underline',\n },\n size: {\n default: 'h-10 px-4 py-2 native:h-12 native:px-5 native:py-3',\n sm: 'h-9 rounded-md px-3',\n lg: 'h-11 rounded-md px-8 native:h-14',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nconst buttonTextVariants = cva(\n 'web:whitespace-nowrap text-sm native:text-base font-medium text-foreground web:transition-colors',\n {\n variants: {\n variant: {\n default: 'text-primary-foreground',\n destructive: 'text-destructive-foreground',\n outline: 'group-active:text-accent-foreground',\n secondary:\n 'text-secondary-foreground group-active:text-secondary-foreground',\n ghost: 'group-active:text-accent-foreground',\n link: 'text-primary group-active:underline',\n },\n size: {\n default: '',\n sm: '',\n lg: 'native:text-lg',\n icon: '',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\ntype ButtonProps = React.ComponentProps<typeof Pressable> &\n VariantProps<typeof buttonVariants>;\n\nfunction Button({ ref, className, variant, size, ...props }: ButtonProps) {\n return (\n <TextClassContext.Provider\n value={buttonTextVariants({\n variant,\n size,\n className: 'web:pointer-events-none',\n })}\n >\n <Pressable\n className={cn(\n props.disabled && 'web:pointer-events-none opacity-50',\n buttonVariants({ variant, size, className })\n )}\n ref={ref}\n role=\"button\"\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nexport { Button, buttonTextVariants, buttonVariants };\nexport type { ButtonProps };\n"],"mappings":";;;;;;;;AAMA,MAAM,iBAAiB,IACrB,4NACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,aAAa;GACb,SACE;GACF,WAAW;GACX,OACE;GACF,MAAM;GACP;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,MAAM;GACP;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,MAAM,qBAAqB,IACzB,oGACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,aAAa;GACb,SAAS;GACT,WACE;GACF,OAAO;GACP,MAAM;GACP;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,MAAM;GACP;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAKD,SAAS,OAAO,EAAE,KAAK,WAAW,SAAS,MAAM,GAAG,SAAsB;AACxE,QACE,oBAAC,iBAAiB;EAChB,OAAO,mBAAmB;GACxB;GACA;GACA,WAAW;GACZ,CAAC;YAEF,oBAAC;GACC,WAAW,GACT,MAAM,YAAY,sCAClB,eAAe;IAAE;IAAS;IAAM;IAAW,CAAC,CAC7C;GACI;GACL,MAAK;GACL,GAAI;IACJ;GACwB"}