@dashx/react 0.0.5 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/README.md +0 -70
  2. package/dist/cjs/components/button.d.ts +8 -0
  3. package/dist/cjs/components/button.js +2 -0
  4. package/dist/cjs/components/button.js.map +7 -0
  5. package/dist/cjs/components/card.d.ts +8 -0
  6. package/dist/cjs/components/card.js +2 -0
  7. package/dist/cjs/components/card.js.map +7 -0
  8. package/dist/cjs/components/flex.d.ts +210 -0
  9. package/dist/cjs/components/flex.js +2 -0
  10. package/dist/cjs/components/flex.js.map +7 -0
  11. package/dist/cjs/components/heading.d.ts +8 -0
  12. package/dist/cjs/components/heading.js +2 -0
  13. package/dist/cjs/components/heading.js.map +7 -0
  14. package/dist/cjs/components/icon-button.d.ts +3 -0
  15. package/dist/cjs/components/icon-button.js +2 -0
  16. package/dist/cjs/components/icon-button.js.map +7 -0
  17. package/dist/cjs/components/index.d.ts +11 -0
  18. package/dist/cjs/components/index.js +2 -0
  19. package/dist/cjs/components/index.js.map +7 -0
  20. package/dist/cjs/components/popover.d.ts +47 -0
  21. package/dist/cjs/components/popover.js +2 -0
  22. package/dist/cjs/components/popover.js.map +7 -0
  23. package/dist/cjs/components/text-field.d.ts +2 -0
  24. package/dist/cjs/components/text-field.js +2 -0
  25. package/dist/cjs/components/text-field.js.map +7 -0
  26. package/dist/cjs/components/text.d.ts +20 -0
  27. package/dist/cjs/components/text.js +2 -0
  28. package/dist/cjs/components/text.js.map +7 -0
  29. package/dist/cjs/components/theme.d.ts +17 -0
  30. package/dist/cjs/components/theme.js +2 -0
  31. package/dist/cjs/components/theme.js.map +7 -0
  32. package/dist/cjs/components/toast.d.ts +4 -0
  33. package/dist/cjs/components/toast.js +2 -0
  34. package/dist/cjs/components/toast.js.map +7 -0
  35. package/dist/cjs/components/tooltip.d.ts +13 -0
  36. package/dist/cjs/components/tooltip.js +2 -0
  37. package/dist/cjs/components/tooltip.js.map +7 -0
  38. package/dist/cjs/hooks/index.d.ts +2 -0
  39. package/dist/cjs/hooks/index.js +2 -0
  40. package/dist/cjs/hooks/index.js.map +7 -0
  41. package/dist/cjs/hooks/use-dashx-provider.d.ts +3 -0
  42. package/dist/cjs/hooks/use-dashx-provider.js +2 -0
  43. package/dist/cjs/hooks/use-dashx-provider.js.map +7 -0
  44. package/dist/cjs/hooks/use-in-app.d.ts +9 -0
  45. package/dist/cjs/hooks/use-in-app.js +2 -0
  46. package/dist/cjs/hooks/use-in-app.js.map +7 -0
  47. package/dist/cjs/icons/index.d.ts +1 -0
  48. package/dist/cjs/icons/index.js +2 -0
  49. package/dist/cjs/icons/index.js.map +7 -0
  50. package/dist/cjs/index.d.ts +3 -0
  51. package/dist/cjs/index.js +2 -0
  52. package/dist/cjs/index.js.map +7 -0
  53. package/dist/cjs/providers/DashXProvider.d.ts +6 -0
  54. package/dist/cjs/providers/DashXProvider.js +2 -0
  55. package/dist/cjs/providers/DashXProvider.js.map +7 -0
  56. package/dist/cjs/providers/index.d.ts +1 -0
  57. package/dist/cjs/providers/index.js +2 -0
  58. package/dist/cjs/providers/index.js.map +7 -0
  59. package/dist/cjs/tsconfig.tsbuildinfo +1 -0
  60. package/dist/cjs/utils/cn.d.ts +3 -0
  61. package/dist/cjs/utils/cn.js +2 -0
  62. package/dist/cjs/utils/cn.js.map +7 -0
  63. package/dist/cjs/variants/base-element.d.ts +58 -0
  64. package/dist/cjs/variants/base-element.js +2 -0
  65. package/dist/cjs/variants/base-element.js.map +7 -0
  66. package/dist/cjs/variants/button.d.ts +147 -0
  67. package/dist/cjs/variants/button.js +2 -0
  68. package/dist/cjs/variants/button.js.map +7 -0
  69. package/dist/cjs/variants/card.d.ts +117 -0
  70. package/dist/cjs/variants/card.js +2 -0
  71. package/dist/cjs/variants/card.js.map +7 -0
  72. package/dist/cjs/variants/heading.d.ts +377 -0
  73. package/dist/cjs/variants/heading.js +2 -0
  74. package/dist/cjs/variants/heading.js.map +7 -0
  75. package/dist/cjs/variants/index.d.ts +6 -0
  76. package/dist/cjs/variants/index.js +2 -0
  77. package/dist/cjs/variants/index.js.map +7 -0
  78. package/dist/cjs/variants/popover.d.ts +106 -0
  79. package/dist/cjs/variants/popover.js +2 -0
  80. package/dist/cjs/variants/popover.js.map +7 -0
  81. package/dist/cjs/variants/text-field.d.ts +93 -0
  82. package/dist/cjs/variants/text-field.js +2 -0
  83. package/dist/cjs/variants/text-field.js.map +7 -0
  84. package/dist/cjs/variants/text.d.ts +377 -0
  85. package/dist/cjs/variants/text.js +2 -0
  86. package/dist/cjs/variants/text.js.map +7 -0
  87. package/dist/cjs/variants/tooltip.d.ts +2 -0
  88. package/dist/cjs/variants/tooltip.js +2 -0
  89. package/dist/cjs/variants/tooltip.js.map +7 -0
  90. package/dist/cjs/variants/typography.d.ts +285 -0
  91. package/dist/cjs/variants/typography.js +2 -0
  92. package/dist/cjs/variants/typography.js.map +7 -0
  93. package/dist/cjs/widgets/NotificationBell.d.ts +2 -0
  94. package/dist/cjs/widgets/NotificationBell.js +2 -0
  95. package/dist/cjs/widgets/NotificationBell.js.map +7 -0
  96. package/dist/cjs/widgets/Preference.d.ts +15 -0
  97. package/dist/cjs/widgets/Preference.js +2 -0
  98. package/dist/cjs/widgets/Preference.js.map +7 -0
  99. package/dist/cjs/widgets/Preferences.d.ts +19 -0
  100. package/dist/cjs/widgets/Preferences.js +2 -0
  101. package/dist/cjs/widgets/Preferences.js.map +7 -0
  102. package/dist/cjs/widgets/Toast.d.ts +4 -0
  103. package/dist/cjs/widgets/Toast.js +2 -0
  104. package/dist/cjs/widgets/Toast.js.map +7 -0
  105. package/dist/cjs/widgets/index.d.ts +3 -0
  106. package/dist/cjs/widgets/index.js +2 -0
  107. package/dist/cjs/widgets/index.js.map +7 -0
  108. package/dist/esm/components/button.d.ts +8 -0
  109. package/dist/esm/components/button.js +2 -0
  110. package/dist/esm/components/button.js.map +7 -0
  111. package/dist/esm/components/card.d.ts +8 -0
  112. package/dist/esm/components/card.js +2 -0
  113. package/dist/esm/components/card.js.map +7 -0
  114. package/dist/esm/components/flex.d.ts +210 -0
  115. package/dist/esm/components/flex.js +2 -0
  116. package/dist/esm/components/flex.js.map +7 -0
  117. package/dist/esm/components/heading.d.ts +8 -0
  118. package/dist/esm/components/heading.js +2 -0
  119. package/dist/esm/components/heading.js.map +7 -0
  120. package/dist/esm/components/icon-button.d.ts +3 -0
  121. package/dist/esm/components/icon-button.js +2 -0
  122. package/dist/esm/components/icon-button.js.map +7 -0
  123. package/dist/esm/components/index.d.ts +11 -0
  124. package/dist/esm/components/index.js +2 -0
  125. package/dist/esm/components/index.js.map +7 -0
  126. package/dist/esm/components/popover.d.ts +47 -0
  127. package/dist/esm/components/popover.js +2 -0
  128. package/dist/esm/components/popover.js.map +7 -0
  129. package/dist/esm/components/text-field.d.ts +2 -0
  130. package/dist/esm/components/text-field.js +2 -0
  131. package/dist/esm/components/text-field.js.map +7 -0
  132. package/dist/esm/components/text.d.ts +20 -0
  133. package/dist/esm/components/text.js +2 -0
  134. package/dist/esm/components/text.js.map +7 -0
  135. package/dist/esm/components/theme.d.ts +17 -0
  136. package/dist/esm/components/theme.js +2 -0
  137. package/dist/esm/components/theme.js.map +7 -0
  138. package/dist/esm/components/toast.d.ts +4 -0
  139. package/dist/esm/components/toast.js +2 -0
  140. package/dist/esm/components/toast.js.map +7 -0
  141. package/dist/esm/components/tooltip.d.ts +13 -0
  142. package/dist/esm/components/tooltip.js +2 -0
  143. package/dist/esm/components/tooltip.js.map +7 -0
  144. package/dist/esm/hooks/index.d.ts +2 -0
  145. package/dist/esm/hooks/index.js +2 -0
  146. package/dist/esm/hooks/index.js.map +7 -0
  147. package/dist/esm/hooks/use-dashx-provider.d.ts +3 -0
  148. package/dist/esm/hooks/use-dashx-provider.js +2 -0
  149. package/dist/esm/hooks/use-dashx-provider.js.map +7 -0
  150. package/dist/esm/hooks/use-in-app.d.ts +9 -0
  151. package/dist/esm/hooks/use-in-app.js +2 -0
  152. package/dist/esm/hooks/use-in-app.js.map +7 -0
  153. package/dist/esm/icons/index.d.ts +1 -0
  154. package/dist/esm/icons/index.js +2 -0
  155. package/dist/esm/icons/index.js.map +7 -0
  156. package/dist/esm/index.d.ts +3 -0
  157. package/dist/esm/index.js +2 -0
  158. package/dist/esm/index.js.map +7 -0
  159. package/dist/esm/package.json +3 -0
  160. package/dist/esm/providers/DashXProvider.d.ts +6 -0
  161. package/dist/esm/providers/DashXProvider.js +2 -0
  162. package/dist/esm/providers/DashXProvider.js.map +7 -0
  163. package/dist/esm/providers/index.d.ts +1 -0
  164. package/dist/esm/providers/index.js +2 -0
  165. package/dist/esm/providers/index.js.map +7 -0
  166. package/dist/esm/tsconfig.tsbuildinfo +1 -0
  167. package/dist/esm/utils/cn.d.ts +3 -0
  168. package/dist/esm/utils/cn.js +2 -0
  169. package/dist/esm/utils/cn.js.map +7 -0
  170. package/dist/esm/variants/base-element.d.ts +58 -0
  171. package/dist/esm/variants/base-element.js +2 -0
  172. package/dist/esm/variants/base-element.js.map +7 -0
  173. package/dist/esm/variants/button.d.ts +147 -0
  174. package/dist/esm/variants/button.js +2 -0
  175. package/dist/esm/variants/button.js.map +7 -0
  176. package/dist/esm/variants/card.d.ts +117 -0
  177. package/dist/esm/variants/card.js +2 -0
  178. package/dist/esm/variants/card.js.map +7 -0
  179. package/dist/esm/variants/heading.d.ts +377 -0
  180. package/dist/esm/variants/heading.js +2 -0
  181. package/dist/esm/variants/heading.js.map +7 -0
  182. package/dist/esm/variants/index.d.ts +6 -0
  183. package/dist/esm/variants/index.js +2 -0
  184. package/dist/esm/variants/index.js.map +7 -0
  185. package/dist/esm/variants/popover.d.ts +106 -0
  186. package/dist/esm/variants/popover.js +2 -0
  187. package/dist/esm/variants/popover.js.map +7 -0
  188. package/dist/esm/variants/text-field.d.ts +93 -0
  189. package/dist/esm/variants/text-field.js +2 -0
  190. package/dist/esm/variants/text-field.js.map +7 -0
  191. package/dist/esm/variants/text.d.ts +377 -0
  192. package/dist/esm/variants/text.js +2 -0
  193. package/dist/esm/variants/text.js.map +7 -0
  194. package/dist/esm/variants/tooltip.d.ts +2 -0
  195. package/dist/esm/variants/tooltip.js +2 -0
  196. package/dist/esm/variants/tooltip.js.map +7 -0
  197. package/dist/esm/variants/typography.d.ts +285 -0
  198. package/dist/esm/variants/typography.js +2 -0
  199. package/dist/esm/variants/typography.js.map +7 -0
  200. package/dist/esm/widgets/NotificationBell.d.ts +2 -0
  201. package/dist/esm/widgets/NotificationBell.js +2 -0
  202. package/dist/esm/widgets/NotificationBell.js.map +7 -0
  203. package/dist/esm/widgets/Preference.d.ts +15 -0
  204. package/dist/esm/widgets/Preference.js +2 -0
  205. package/dist/esm/widgets/Preference.js.map +7 -0
  206. package/dist/esm/widgets/Preferences.d.ts +19 -0
  207. package/dist/esm/widgets/Preferences.js +2 -0
  208. package/dist/esm/widgets/Preferences.js.map +7 -0
  209. package/dist/esm/widgets/Toast.d.ts +4 -0
  210. package/dist/esm/widgets/Toast.js +2 -0
  211. package/dist/esm/widgets/Toast.js.map +7 -0
  212. package/dist/esm/widgets/index.d.ts +3 -0
  213. package/dist/esm/widgets/index.js +2 -0
  214. package/dist/esm/widgets/index.js.map +7 -0
  215. package/package.json +165 -34
  216. package/src/components/button.tsx +88 -0
  217. package/src/components/card.tsx +32 -0
  218. package/src/components/flex.tsx +61 -0
  219. package/src/components/heading.tsx +42 -0
  220. package/src/components/icon-button.tsx +24 -0
  221. package/src/components/index.ts +11 -0
  222. package/src/components/popover.tsx +145 -0
  223. package/src/components/text-field.tsx +7 -0
  224. package/src/components/text.tsx +42 -0
  225. package/src/components/theme.tsx +81 -0
  226. package/src/components/toast.tsx +19 -0
  227. package/src/components/tooltip.tsx +62 -0
  228. package/src/hooks/index.ts +2 -0
  229. package/src/hooks/use-dashx-provider.ts +17 -0
  230. package/src/hooks/use-in-app.ts +96 -0
  231. package/src/icons/index.ts +1 -0
  232. package/src/index.ts +3 -0
  233. package/src/providers/DashXProvider.tsx +30 -0
  234. package/src/providers/index.ts +1 -0
  235. package/src/styles/index.css +368 -0
  236. package/src/utils/cn.ts +8 -0
  237. package/src/variants/base-element.ts +15 -0
  238. package/src/variants/button.ts +191 -0
  239. package/src/variants/card.ts +40 -0
  240. package/src/variants/heading.ts +28 -0
  241. package/src/variants/index.ts +6 -0
  242. package/src/variants/popover.ts +42 -0
  243. package/src/variants/text-field.ts +15 -0
  244. package/src/variants/text.ts +28 -0
  245. package/src/variants/tooltip.ts +7 -0
  246. package/src/variants/typography.ts +100 -0
  247. package/src/widgets/NotificationBell.tsx +101 -0
  248. package/src/widgets/Preference.tsx +80 -0
  249. package/src/widgets/Preferences.tsx +109 -0
  250. package/src/widgets/Toast.tsx +19 -0
  251. package/src/widgets/index.ts +3 -0
  252. package/styles.css +1255 -0
  253. package/dist/index.d.ts +0 -65
  254. package/dist/index.es.js +0 -11772
  255. package/dist/index.umd.js +0 -238
  256. package/dist/style.css +0 -1
package/README.md CHANGED
@@ -1,70 +0,0 @@
1
- <p align="center">
2
- <br />
3
- <a href="https://dashx.com"><img src="https://raw.githubusercontent.com/dashxhq/brand-book/master/assets/logo-black-text-color-icon@2x.png" alt="DashX" height="40" /></a>
4
- <br />
5
- <br />
6
- <strong>Your All-in-One Product Stack</strong>
7
- </p>
8
-
9
- <div align="center">
10
- <h4>
11
- <a href="https://dashx.com">Website</a>
12
- <span> | </span>
13
- <a href="https://dashxdemo.com">Demos</a>
14
- <span> | </span>
15
- <a href="https://docs.dashx.com/developer">Documentation</a>
16
- </h4>
17
- </div>
18
-
19
- <br />
20
-
21
- # @dashx/react
22
-
23
- _DashX SDK for the React
24
-
25
- ## Install
26
-
27
- **npm**
28
-
29
- ```sh
30
- npm install @dashx/react
31
- ```
32
-
33
- **yarn**
34
-
35
- ```sh
36
- yarn add @dashx/react
37
- ```
38
-
39
- ## Usage
40
-
41
- For detailed usage, refer to the [documentation](https://docs.dashx.com).
42
-
43
- ## Contributing
44
-
45
- - Make sure all the dependencies are installed:
46
-
47
- ```sh
48
- npm install
49
- ```
50
-
51
- - To start dev server with hot reload:
52
-
53
- ```sh
54
- yarn dev
55
- ```
56
-
57
- This will run a dev server that logs out errors and warnings and reloads itself on any file save.
58
-
59
- - To create production build:
60
-
61
- ```sh
62
- yarn build
63
- ```
64
-
65
- - To publish package, make sure to login on npm cli and commit all the changes before running this:
66
-
67
- ```sh
68
- yarn publish
69
- git push origin main
70
- ```
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { AriaButtonProps, HoverEvents } from 'react-aria';
3
+ import type { ButtonVariantProps } from '../variants/button.js';
4
+ export interface ButtonProps extends Omit<AriaButtonProps, 'elementType' | 'href' | 'target' | 'rel'>, HoverEvents, ButtonVariantProps {
5
+ asChild?: boolean;
6
+ }
7
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
8
+ export { Button };
@@ -0,0 +1,2 @@
1
+ "use strict";var m=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var G=Object.prototype.hasOwnProperty;var I=(e,t)=>{for(var n in t)m(e,n,{get:t[n],enumerable:!0})},J=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of q(t))!G.call(e,r)&&r!==n&&m(e,r,{get:()=>t[r],enumerable:!(s=j(t,r))||s.enumerable});return e};var K=e=>J(m({},"__esModule",{value:!0}),e);var U={};I(U,{Button:()=>B});module.exports=K(U);var b=require("react/jsx-runtime"),v=require("@radix-ui/react-slot"),d=require("@react-aria/utils"),i=require("react"),o=require("react-aria"),p=require("../utils/cn.js"),y=require("../variants/button.js");function Q(e,t){const{asChild:n,children:s,size:r,mode:H,variant:E,roundness:f,shape:R,inset:h}=e;let C=n&&(0,i.isValidElement)(s)&&s?.type||"button";const a=(c,u)=>{let P=e;return u in e&&!c?[P[u],void 0]:[c,P[u]]},[T,M]=a(e.onPress,"onClick"),[S,g]=a(e.onPressStart,"onPointerDown"),[w,D]=a(e.onHoverStart,"onPointerMove"),[F,L]=a(e.onHoverEnd,"onPointerLeave"),l=(0,i.useRef)(null);let{buttonProps:V,isPressed:x}=(0,o.useButton)({...e,elementType:C,onPress:T,onPressStart:S,onClick:M,onPointerDown:g,onPointerMove:D,onPointerLeave:L},l),{focusProps:A,isFocused:O,isFocusVisible:k}=(0,o.useFocusRing)(e),{hoverProps:z,isHovered:_}=(0,o.useHover)({...e,onHoverStart:w,onHoverEnd:F});return(0,b.jsx)(n?v.Slot:"button",{...(0,d.filterDOMProps)(e),...(0,o.mergeProps)(V,A,z),ref:(0,d.mergeRefs)(t,l),"data-disabled":e.isDisabled||void 0,"data-pressed":x||void 0,"data-hovered":_||void 0,"data-focused":O||void 0,"data-focus-visible":k||void 0,className:(0,p.cn)("dr",(0,y.button)({size:r,mode:H,variant:E,roundness:f,shape:R})),"data-radius":f,"data-inset":h,children:s})}const B=(0,i.forwardRef)(Q);
2
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/button.tsx"],
4
+ "sourcesContent": ["import { Slot } from '@radix-ui/react-slot';\nimport { filterDOMProps, mergeRefs } from '@react-aria/utils';\nimport React, { forwardRef, isValidElement, useRef } from 'react';\nimport { mergeProps, useButton, useFocusRing, useHover } from 'react-aria';\n\nimport { cn } from '../utils/cn.js';\nimport { button } from '../variants/button.js';\n\nimport type { ElementType } from 'react';\nimport type { AriaButtonProps, HoverEvents } from 'react-aria';\nimport type { ButtonVariantProps } from '../variants/button.js';\n\nexport interface ButtonProps\n extends Omit<AriaButtonProps, 'elementType' | 'href' | 'target' | 'rel'>,\n HoverEvents,\n ButtonVariantProps {\n asChild?: boolean;\n}\n\nfunction _Button(props: ButtonProps, ref: React.ForwardedRef<HTMLButtonElement>) {\n const { asChild, children, size, mode, variant, roundness, shape, inset } = props;\n let elementType = asChild\n ? (isValidElement(children) && (children?.type as ElementType)) || 'button'\n : 'button';\n\n const fallbackEventTo = (event: any, fallbackEventName: any) => {\n let anyProps: any = props;\n if (fallbackEventName in props && !event) {\n return [anyProps[fallbackEventName], undefined];\n }\n\n return [event, anyProps[fallbackEventName]];\n };\n\n const [onPress, onClick] = fallbackEventTo(props.onPress, 'onClick');\n const [onPressStart, onPointerDown] = fallbackEventTo(props.onPressStart, 'onPointerDown');\n const [onHoverStart, onPointerMove] = fallbackEventTo(props.onHoverStart, 'onPointerMove');\n const [onHoverEnd, onPointerLeave] = fallbackEventTo(props.onHoverEnd, 'onPointerLeave');\n const innerRef = useRef<HTMLButtonElement>(null);\n let { buttonProps, isPressed } = useButton(\n {\n ...props,\n elementType,\n onPress,\n onPressStart,\n // @ts-ignore\n onClick,\n // @ts-ignore\n onPointerDown,\n // @ts-ignore\n onPointerMove,\n // @ts-ignore\n onPointerLeave,\n },\n innerRef,\n );\n let { focusProps, isFocused, isFocusVisible } = useFocusRing(props);\n\n let { hoverProps, isHovered } = useHover({\n ...props,\n onHoverStart,\n onHoverEnd,\n });\n\n let Comp = asChild ? Slot : 'button';\n\n return (\n <Comp\n {...filterDOMProps(props)}\n {...mergeProps(buttonProps, focusProps, hoverProps)}\n ref={mergeRefs(ref, innerRef)}\n data-disabled={props.isDisabled || undefined}\n data-pressed={isPressed || undefined}\n data-hovered={isHovered || undefined}\n data-focused={isFocused || undefined}\n data-focus-visible={isFocusVisible || undefined}\n className={cn('dr', button({ size, mode, variant, roundness, shape }))}\n data-radius={roundness}\n data-inset={inset}\n >\n {children}\n </Comp>\n );\n}\n\nconst Button = forwardRef(_Button);\n\nexport { Button };\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,YAAAE,IAAA,eAAAC,EAAAH,GAmEI,IAAAI,EAAA,6BAnEJC,EAAqB,gCACrBC,EAA0C,6BAC1CC,EAA0D,iBAC1DC,EAA8D,sBAE9DC,EAAmB,0BACnBC,EAAuB,iCAavB,SAASC,EAAQC,EAAoBC,EAA4C,CAC/E,KAAM,CAAE,QAAAC,EAAS,SAAAC,EAAU,KAAAC,EAAM,KAAAC,EAAM,QAAAC,EAAS,UAAAC,EAAW,MAAAC,EAAO,MAAAC,CAAM,EAAIT,EAC5E,IAAIU,EAAcR,MACb,kBAAeC,CAAQ,GAAMA,GAAU,MAAyB,SAGrE,MAAMQ,EAAkB,CAACC,EAAYC,IAA2B,CAC9D,IAAIC,EAAgBd,EACpB,OAAIa,KAAqBb,GAAS,CAACY,EAC1B,CAACE,EAASD,CAAiB,EAAG,MAAS,EAGzC,CAACD,EAAOE,EAASD,CAAiB,CAAC,CAC5C,EAEM,CAACE,EAASC,CAAO,EAAIL,EAAgBX,EAAM,QAAS,SAAS,EAC7D,CAACiB,EAAcC,CAAa,EAAIP,EAAgBX,EAAM,aAAc,eAAe,EACnF,CAACmB,EAAcC,CAAa,EAAIT,EAAgBX,EAAM,aAAc,eAAe,EACnF,CAACqB,EAAYC,CAAc,EAAIX,EAAgBX,EAAM,WAAY,gBAAgB,EACjFuB,KAAW,UAA0B,IAAI,EAC/C,GAAI,CAAE,YAAAC,EAAa,UAAAC,CAAU,KAAI,aAC/B,CACE,GAAGzB,EACH,YAAAU,EACA,QAAAK,EACA,aAAAE,EAEA,QAAAD,EAEA,cAAAE,EAEA,cAAAE,EAEA,eAAAE,CACF,EACAC,CACF,EACI,CAAE,WAAAG,EAAY,UAAAC,EAAW,eAAAC,CAAe,KAAI,gBAAa5B,CAAK,EAE9D,CAAE,WAAA6B,EAAY,UAAAC,CAAU,KAAI,YAAS,CACvC,GAAG9B,EACH,aAAAmB,EACA,WAAAE,CACF,CAAC,EAID,SACE,OAHSnB,EAAU,OAAO,SAGzB,CACE,MAAG,kBAAeF,CAAK,EACvB,MAAG,cAAWwB,EAAaE,EAAYG,CAAU,EAClD,OAAK,aAAU5B,EAAKsB,CAAQ,EAC5B,gBAAevB,EAAM,YAAc,OACnC,eAAcyB,GAAa,OAC3B,eAAcK,GAAa,OAC3B,eAAcH,GAAa,OAC3B,qBAAoBC,GAAkB,OACtC,aAAW,MAAG,QAAM,UAAO,CAAE,KAAAxB,EAAM,KAAAC,EAAM,QAAAC,EAAS,UAAAC,EAAW,MAAAC,CAAM,CAAC,CAAC,EACrE,cAAaD,EACb,aAAYE,EAEX,SAAAN,EACH,CAEJ,CAEA,MAAMb,KAAS,cAAWS,CAAO",
6
+ "names": ["button_exports", "__export", "Button", "__toCommonJS", "import_jsx_runtime", "import_react_slot", "import_utils", "import_react", "import_react_aria", "import_cn", "import_button", "_Button", "props", "ref", "asChild", "children", "size", "mode", "variant", "roundness", "shape", "inset", "elementType", "fallbackEventTo", "event", "fallbackEventName", "anyProps", "onPress", "onClick", "onPressStart", "onPointerDown", "onHoverStart", "onPointerMove", "onHoverEnd", "onPointerLeave", "innerRef", "buttonProps", "isPressed", "focusProps", "isFocused", "isFocusVisible", "hoverProps", "isHovered"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import type { CardVariantProps } from '../variants/card.js';
3
+ interface CardProps extends React.HTMLAttributes<HTMLDivElement>, CardVariantProps {
4
+ asChild?: boolean;
5
+ }
6
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
7
+ export { Card };
8
+ export type { CardProps };
@@ -0,0 +1,2 @@
1
+ "use strict";var f=Object.create;var e=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var N=(r,a)=>{for(var o in a)e(r,o,{get:a[o],enumerable:!0})},m=(r,a,o,s)=>{if(a&&typeof a=="object"||typeof a=="function")for(let t of u(a))!y.call(r,t)&&t!==o&&e(r,t,{get:()=>a[t],enumerable:!(s=P(a,t))||s.enumerable});return r};var H=(r,a,o)=>(o=r!=null?f(v(r)):{},m(a||!r||!r.__esModule?e(o,"default",{value:r,enumerable:!0}):o,r)),L=r=>m(e({},"__esModule",{value:!0}),r);var R={};N(R,{Card:()=>i});module.exports=L(R);var c=require("react/jsx-runtime"),M=H(require("react")),n=require("@radix-ui/react-slot"),d=require("../variants/card.js"),C=require("../utils/cn.js");const i=M.forwardRef((r,a)=>{const{asChild:o,className:s,spacing:t="medium",roundness:p,...l}=r;return(0,c.jsx)(o?n.Slot:"div",{ref:a,...l,className:(0,C.cn)("dr",(0,d.card)({className:s,spacing:t,roundness:p})),"data-radius":p,style:{"--padding":d.SPACING[t]}})});i.displayName="Card";
2
+ //# sourceMappingURL=card.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/card.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\nimport { SPACING, card } from '../variants/card.js';\nimport { cn } from '../utils/cn.js';\n\nimport type { CardVariantProps } from '../variants/card.js';\n\ninterface CardProps extends React.HTMLAttributes<HTMLDivElement>, CardVariantProps {\n asChild?: boolean;\n}\nconst Card = React.forwardRef<HTMLDivElement, CardProps>((props, ref) => {\n const { asChild, className, spacing = 'medium', roundness, ...rest } = props;\n const Comp = asChild ? Slot : 'div';\n return (\n <Comp\n ref={ref}\n {...rest}\n className={cn('dr', card({ className, spacing, roundness }))}\n data-radius={roundness}\n style={{\n // @ts-ignore\n '--padding': SPACING[spacing],\n }}\n />\n );\n});\n\nCard.displayName = 'Card';\n\nexport { Card };\nexport type { CardProps };\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,IAAA,eAAAC,EAAAH,GAeI,IAAAI,EAAA,6BAfJC,EAAuB,oBACvBC,EAAqB,gCAErBC,EAA8B,+BAC9BC,EAAmB,0BAOnB,MAAMN,EAAOG,EAAM,WAAsC,CAACI,EAAOC,IAAQ,CACvE,KAAM,CAAE,QAAAC,EAAS,UAAAC,EAAW,QAAAC,EAAU,SAAU,UAAAC,EAAW,GAAGC,CAAK,EAAIN,EAEvE,SACE,OAFWE,EAAU,OAAO,MAE3B,CACC,IAAKD,EACJ,GAAGK,EACJ,aAAW,MAAG,QAAM,QAAK,CAAE,UAAAH,EAAW,QAAAC,EAAS,UAAAC,CAAU,CAAC,CAAC,EAC3D,cAAaA,EACb,MAAO,CAEL,YAAa,UAAQD,CAAO,CAC9B,EACF,CAEJ,CAAC,EAEDX,EAAK,YAAc",
6
+ "names": ["card_exports", "__export", "Card", "__toCommonJS", "import_jsx_runtime", "React", "import_react_slot", "import_card", "import_cn", "props", "ref", "asChild", "className", "spacing", "roundness", "rest"]
7
+ }
@@ -0,0 +1,210 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from 'tailwind-variants';
3
+ declare const flexVariants: import("tailwind-variants").TVReturnType<{
4
+ direction: {
5
+ column: string[];
6
+ row: string[];
7
+ };
8
+ gap: {
9
+ 1: string;
10
+ 2: string;
11
+ 3: string;
12
+ 4: string;
13
+ 6: string;
14
+ 8: string;
15
+ 10: string;
16
+ 12: string;
17
+ 14: string;
18
+ 16: string;
19
+ 18: string;
20
+ 24: string;
21
+ 28: string;
22
+ 32: string;
23
+ };
24
+ justify: {
25
+ center: string;
26
+ between: string;
27
+ };
28
+ align: {
29
+ baseline: string;
30
+ center: string;
31
+ };
32
+ }, undefined, "flex", import("tailwind-variants/dist/config.js").TVConfig<{
33
+ direction: {
34
+ column: string[];
35
+ row: string[];
36
+ };
37
+ gap: {
38
+ 1: string;
39
+ 2: string;
40
+ 3: string;
41
+ 4: string;
42
+ 6: string;
43
+ 8: string;
44
+ 10: string;
45
+ 12: string;
46
+ 14: string;
47
+ 16: string;
48
+ 18: string;
49
+ 24: string;
50
+ 28: string;
51
+ 32: string;
52
+ };
53
+ justify: {
54
+ center: string;
55
+ between: string;
56
+ };
57
+ align: {
58
+ baseline: string;
59
+ center: string;
60
+ };
61
+ }, {
62
+ direction: {
63
+ column: string[];
64
+ row: string[];
65
+ };
66
+ gap: {
67
+ 1: string;
68
+ 2: string;
69
+ 3: string;
70
+ 4: string;
71
+ 6: string;
72
+ 8: string;
73
+ 10: string;
74
+ 12: string;
75
+ 14: string;
76
+ 16: string;
77
+ 18: string;
78
+ 24: string;
79
+ 28: string;
80
+ 32: string;
81
+ };
82
+ justify: {
83
+ center: string;
84
+ between: string;
85
+ };
86
+ align: {
87
+ baseline: string;
88
+ center: string;
89
+ };
90
+ }>, {
91
+ direction: {
92
+ column: string[];
93
+ row: string[];
94
+ };
95
+ gap: {
96
+ 1: string;
97
+ 2: string;
98
+ 3: string;
99
+ 4: string;
100
+ 6: string;
101
+ 8: string;
102
+ 10: string;
103
+ 12: string;
104
+ 14: string;
105
+ 16: string;
106
+ 18: string;
107
+ 24: string;
108
+ 28: string;
109
+ 32: string;
110
+ };
111
+ justify: {
112
+ center: string;
113
+ between: string;
114
+ };
115
+ align: {
116
+ baseline: string;
117
+ center: string;
118
+ };
119
+ }, undefined, import("tailwind-variants").TVReturnType<{
120
+ direction: {
121
+ column: string[];
122
+ row: string[];
123
+ };
124
+ gap: {
125
+ 1: string;
126
+ 2: string;
127
+ 3: string;
128
+ 4: string;
129
+ 6: string;
130
+ 8: string;
131
+ 10: string;
132
+ 12: string;
133
+ 14: string;
134
+ 16: string;
135
+ 18: string;
136
+ 24: string;
137
+ 28: string;
138
+ 32: string;
139
+ };
140
+ justify: {
141
+ center: string;
142
+ between: string;
143
+ };
144
+ align: {
145
+ baseline: string;
146
+ center: string;
147
+ };
148
+ }, undefined, "flex", import("tailwind-variants/dist/config.js").TVConfig<{
149
+ direction: {
150
+ column: string[];
151
+ row: string[];
152
+ };
153
+ gap: {
154
+ 1: string;
155
+ 2: string;
156
+ 3: string;
157
+ 4: string;
158
+ 6: string;
159
+ 8: string;
160
+ 10: string;
161
+ 12: string;
162
+ 14: string;
163
+ 16: string;
164
+ 18: string;
165
+ 24: string;
166
+ 28: string;
167
+ 32: string;
168
+ };
169
+ justify: {
170
+ center: string;
171
+ between: string;
172
+ };
173
+ align: {
174
+ baseline: string;
175
+ center: string;
176
+ };
177
+ }, {
178
+ direction: {
179
+ column: string[];
180
+ row: string[];
181
+ };
182
+ gap: {
183
+ 1: string;
184
+ 2: string;
185
+ 3: string;
186
+ 4: string;
187
+ 6: string;
188
+ 8: string;
189
+ 10: string;
190
+ 12: string;
191
+ 14: string;
192
+ 16: string;
193
+ 18: string;
194
+ 24: string;
195
+ 28: string;
196
+ 32: string;
197
+ };
198
+ justify: {
199
+ center: string;
200
+ between: string;
201
+ };
202
+ align: {
203
+ baseline: string;
204
+ center: string;
205
+ };
206
+ }>, unknown, unknown, undefined>>;
207
+ type FlexProps = VariantProps<typeof flexVariants>;
208
+ declare const Flex: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & FlexProps & React.RefAttributes<HTMLDivElement>>;
209
+ export type { FlexProps };
210
+ export { Flex };
@@ -0,0 +1,2 @@
1
+ "use strict";var y=Object.create;var i=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var w=(e,a)=>{for(var t in a)i(e,t,{get:a[t],enumerable:!0})},n=(e,a,t,p)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of d(a))!v.call(e,r)&&r!==t&&i(e,r,{get:()=>a[r],enumerable:!(p=b(a,r))||p.enumerable});return e};var F=(e,a,t)=>(t=e!=null?y(u(e)):{},n(a||!e||!e.__esModule?i(t,"default",{value:e,enumerable:!0}):t,e)),P=e=>n(i({},"__esModule",{value:!0}),e);var j={};w(j,{Flex:()=>s});module.exports=P(j);var f=require("react/jsx-runtime"),o=F(require("react")),l=require("tailwind-variants"),g=require("../utils/cn.js");const V=(0,l.tv)({base:"flex",variants:{direction:{column:["flex-col"],row:["flex-row"]},gap:{1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12",14:"gap-14",16:"gap-16",18:"gap-18",24:"gap-24",28:"gap-28",32:"gap-32"},justify:{center:"justify-center",between:"justify-between"},align:{baseline:"items-baseline",center:"items-center"}}}),s=o.default.forwardRef((e,a)=>{const{className:t,direction:p,gap:r,justify:c,align:m,...x}=e;return(0,f.jsx)("div",{className:(0,g.cn)(V({direction:p,gap:r,justify:c,align:m}),t),ref:a,...x})});s.displayName="Flex";
2
+ //# sourceMappingURL=flex.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/flex.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport { tv } from 'tailwind-variants';\n\nimport { cn } from '../utils/cn.js';\n\nimport type { VariantProps } from 'tailwind-variants';\n\nconst flexVariants = tv({\n base: 'flex',\n variants: {\n direction: {\n column: ['flex-col'],\n row: ['flex-row'],\n },\n gap: {\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3',\n 4: 'gap-4',\n 6: 'gap-6',\n 8: 'gap-8',\n 10: 'gap-10',\n 12: 'gap-12',\n 14: 'gap-14',\n 16: 'gap-16',\n 18: 'gap-18',\n 24: 'gap-24',\n 28: 'gap-28',\n 32: 'gap-32',\n },\n justify: {\n center: 'justify-center',\n between: 'justify-between',\n },\n align: {\n baseline: 'items-baseline',\n center: 'items-center',\n },\n },\n});\n\ntype FlexProps = VariantProps<typeof flexVariants>;\n\nconst Flex = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & FlexProps>(\n (props, ref) => {\n const { className, direction, gap, justify, align, ...rest } = props;\n\n return (\n <div\n className={cn(flexVariants({ direction, gap, justify, align }), className)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\n\nFlex.displayName = 'Flex';\n\nexport type { FlexProps };\nexport { Flex };\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,IAAA,eAAAC,EAAAH,GAgDM,IAAAI,EAAA,6BAhDNC,EAAkB,oBAClBC,EAAmB,6BAEnBC,EAAmB,0BAInB,MAAMC,KAAe,MAAG,CACtB,KAAM,OACN,SAAU,CACR,UAAW,CACT,OAAQ,CAAC,UAAU,EACnB,IAAK,CAAC,UAAU,CAClB,EACA,IAAK,CACH,EAAG,QACH,EAAG,QACH,EAAG,QACH,EAAG,QACH,EAAG,QACH,EAAG,QACH,GAAI,SACJ,GAAI,SACJ,GAAI,SACJ,GAAI,SACJ,GAAI,SACJ,GAAI,SACJ,GAAI,SACJ,GAAI,QACN,EACA,QAAS,CACP,OAAQ,iBACR,QAAS,iBACX,EACA,MAAO,CACL,SAAU,iBACV,OAAQ,cACV,CACF,CACF,CAAC,EAIKN,EAAO,EAAAO,QAAM,WACjB,CAACC,EAAOC,IAAQ,CACd,KAAM,CAAE,UAAAC,EAAW,UAAAC,EAAW,IAAAC,EAAK,QAAAC,EAAS,MAAAC,EAAO,GAAGC,CAAK,EAAIP,EAE/D,SACE,OAAC,OACC,aAAW,MAAGF,EAAa,CAAE,UAAAK,EAAW,IAAAC,EAAK,QAAAC,EAAS,MAAAC,CAAM,CAAC,EAAGJ,CAAS,EACzE,IAAKD,EACJ,GAAGM,EACN,CAEJ,CACF,EAEAf,EAAK,YAAc",
6
+ "names": ["flex_exports", "__export", "Flex", "__toCommonJS", "import_jsx_runtime", "import_react", "import_tailwind_variants", "import_cn", "flexVariants", "React", "props", "ref", "className", "direction", "gap", "justify", "align", "rest"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { HeadingVariantProps } from '../variants/heading.js';
3
+ interface HeadingOwnProps extends HeadingVariantProps {
4
+ asChild?: boolean;
5
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
6
+ }
7
+ declare const Heading: React.ForwardRefExoticComponent<HeadingOwnProps & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLDivElement>>;
8
+ export { Heading };
@@ -0,0 +1,2 @@
1
+ "use strict";var w=Object.create;var t=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var N=(a,e)=>{for(var i in e)t(a,i,{get:e[i],enumerable:!0})},d=(a,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of y(e))!M.call(a,r)&&r!==i&&t(a,r,{get:()=>e[r],enumerable:!(n=v(e,r))||n.enumerable});return a};var R=(a,e,i)=>(i=a!=null?w(L(a)):{},d(e||!a||!a.__esModule?t(i,"default",{value:a,enumerable:!0}):i,a)),b=a=>d(t({},"__esModule",{value:!0}),a);var C={};N(C,{Heading:()=>o});module.exports=b(C);var s=require("react/jsx-runtime"),g=R(require("react")),p=require("@radix-ui/react-slot"),h=require("../variants/heading.js");const o=g.default.forwardRef((a,e)=>{const{as:i="h1",asChild:n,children:r,className:l,size:m,align:H,color:c,variant:f,weight:P,...T}=a;return(0,s.jsx)(p.Slot,{className:(0,h.heading)({size:m,align:H,color:c,variant:f,weight:P,className:l}),ref:e,...T,children:n?r:(0,s.jsx)(i,{children:r})})});o.displayName="Heading";
2
+ //# sourceMappingURL=heading.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/heading.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\nimport { heading } from '../variants/heading.js';\n\nimport type { HeadingVariantProps } from '../variants/heading.js';\n\ninterface HeadingOwnProps extends HeadingVariantProps {\n asChild?: boolean;\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n}\n\ntype HeadingProps = HeadingOwnProps & React.HTMLAttributes<HTMLHeadingElement>;\n\nconst Heading = React.forwardRef<HTMLDivElement, HeadingProps>((props, ref) => {\n const {\n as: Tag = 'h1',\n asChild,\n children,\n className,\n size,\n align,\n color,\n variant,\n weight,\n ...rest\n } = props;\n\n return (\n <Slot\n className={heading({ size, align, color, variant, weight, className })}\n ref={ref}\n {...rest}\n >\n {asChild ? children : <Tag>{children}</Tag>}\n </Slot>\n );\n});\n\nHeading.displayName = 'Heading';\n\nexport { Heading };\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAkC4B,IAAAI,EAAA,6BAlC5BC,EAAkB,oBAClBC,EAAqB,gCAErBC,EAAwB,kCAWxB,MAAML,EAAU,EAAAM,QAAM,WAAyC,CAACC,EAAOC,IAAQ,CAC7E,KAAM,CACJ,GAAIC,EAAM,KACV,QAAAC,EACA,SAAAC,EACA,UAAAC,EACA,KAAAC,EACA,MAAAC,EACA,MAAAC,EACA,QAAAC,EACA,OAAAC,EACA,GAAGC,CACL,EAAIX,EAEJ,SACE,OAAC,QACC,aAAW,WAAQ,CAAE,KAAAM,EAAM,MAAAC,EAAO,MAAAC,EAAO,QAAAC,EAAS,OAAAC,EAAQ,UAAAL,CAAU,CAAC,EACrE,IAAKJ,EACJ,GAAGU,EAEH,SAAAR,EAAUC,KAAW,OAACF,EAAA,CAAK,SAAAE,EAAS,EACvC,CAEJ,CAAC,EAEDX,EAAQ,YAAc",
6
+ "names": ["heading_exports", "__export", "Heading", "__toCommonJS", "import_jsx_runtime", "import_react", "import_react_slot", "import_heading", "React", "props", "ref", "Tag", "asChild", "children", "className", "size", "align", "color", "variant", "weight", "rest"]
7
+ }
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const IconButton: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
3
+ export { IconButton };
@@ -0,0 +1,2 @@
1
+ "use strict";var u=Object.create;var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty;var B=(t,e)=>{for(var o in e)r(t,o,{get:e[o],enumerable:!0})},m=(t,e,o,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of b(e))!i.call(t,n)&&n!==o&&r(t,n,{get:()=>e[n],enumerable:!(c=d(e,n))||c.enumerable});return t};var p=(t,e,o)=>(o=t!=null?u(f(t)):{},m(e||!t||!t.__esModule?r(o,"default",{value:t,enumerable:!0}):o,t)),H=t=>m(r({},"__esModule",{value:!0}),t);var M={};B(M,{IconButton:()=>a});module.exports=H(M);var l=require("react/jsx-runtime"),L=p(require("react")),s=require("../utils/cn.js");const a=L.forwardRef((t,e)=>{const{className:o}=t;return(0,l.jsx)("button",{className:(0,s.cn)("hover:bg-accent-300 border-accent-700 rounded-3 text-accent-700 border p-3 transition-all",o),ref:e,...t})});a.displayName="Button";
2
+ //# sourceMappingURL=icon-button.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/icon-button.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\n\nimport { cn } from '../utils/cn.js';\n\nconst IconButton = React.forwardRef<HTMLButtonElement, React.HTMLAttributes<HTMLButtonElement>>(\n (props, ref) => {\n const { className } = props;\n\n return (\n <button\n className={cn(\n 'hover:bg-accent-300 border-accent-700 rounded-3 text-accent-700 border p-3 transition-all',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\n\nIconButton.displayName = 'Button';\n\nexport { IconButton };\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GASM,IAAAI,EAAA,6BATNC,EAAuB,oBAEvBC,EAAmB,0BAEnB,MAAMJ,EAAaG,EAAM,WACvB,CAACE,EAAOC,IAAQ,CACd,KAAM,CAAE,UAAAC,CAAU,EAAIF,EAEtB,SACE,OAAC,UACC,aAAW,MACT,4FACAE,CACF,EACA,IAAKD,EACJ,GAAGD,EACN,CAEJ,CACF,EAEAL,EAAW,YAAc",
6
+ "names": ["icon_button_exports", "__export", "IconButton", "__toCommonJS", "import_jsx_runtime", "React", "import_cn", "props", "ref", "className"]
7
+ }
@@ -0,0 +1,11 @@
1
+ export * from './button.js';
2
+ export * from './card.js';
3
+ export * from './flex.js';
4
+ export * from './heading.js';
5
+ export * from './icon-button.js';
6
+ export * as Popover from './popover.js';
7
+ export * from './toast.js';
8
+ export * from './text.js';
9
+ export * from './text-field.js';
10
+ export * from './theme.js';
11
+ export * as Tooltip from './tooltip.js';
@@ -0,0 +1,2 @@
1
+ "use strict";var i=Object.create;var x=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var b=(p,e)=>{for(var t in e)x(p,t,{get:e[t],enumerable:!0})},m=(p,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let f of v(e))!T.call(p,f)&&f!==t&&x(p,f,{get:()=>e[f],enumerable:!(a=l(e,f))||a.enumerable});return p},r=(p,e,t)=>(m(p,e,"default"),t&&m(t,e,"default")),s=(p,e,t)=>(t=p!=null?i(P(p)):{},m(e||!p||!p.__esModule?x(t,"default",{value:p,enumerable:!0}):t,p)),c=p=>m(x({},"__esModule",{value:!0}),p);var o={};b(o,{Popover:()=>d,Tooltip:()=>g});module.exports=c(o);r(o,require("./button.js"),module.exports);r(o,require("./card.js"),module.exports);r(o,require("./flex.js"),module.exports);r(o,require("./heading.js"),module.exports);r(o,require("./icon-button.js"),module.exports);var d=s(require("./popover.js"));r(o,require("./toast.js"),module.exports);r(o,require("./text.js"),module.exports);r(o,require("./text-field.js"),module.exports);r(o,require("./theme.js"),module.exports);var g=s(require("./tooltip.js"));
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/index.ts"],
4
+ "sourcesContent": ["export * from './button.js';\nexport * from './card.js';\nexport * from './flex.js';\nexport * from './heading.js';\nexport * from './icon-button.js';\nexport * as Popover from './popover.js';\nexport * from './toast.js';\nexport * from './text.js';\nexport * from './text-field.js';\nexport * from './theme.js';\nexport * as Tooltip from './tooltip.js';\n"],
5
+ "mappings": "wmBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAAAK,EAAAL,EAAc,uBAAd,gBACAK,EAAAL,EAAc,qBADd,gBAEAK,EAAAL,EAAc,qBAFd,gBAGAK,EAAAL,EAAc,wBAHd,gBAIAK,EAAAL,EAAc,4BAJd,gBAKA,IAAAE,EAAyB,2BACzBG,EAAAL,EAAc,sBANd,gBAOAK,EAAAL,EAAc,qBAPd,gBAQAK,EAAAL,EAAc,2BARd,gBASAK,EAAAL,EAAc,sBATd,gBAUA,IAAAG,EAAyB",
6
+ "names": ["components_exports", "__export", "Popover", "Tooltip", "__toCommonJS", "__reExport"]
7
+ }
@@ -0,0 +1,47 @@
1
+ import * as React from 'react';
2
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
3
+ import type { PopoverVariantProps } from '../variants/popover.js';
4
+ interface PopoverRootProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> {
5
+ }
6
+ declare const PopoverRoot: React.FC<PopoverRootProps>;
7
+ interface PopoverTriggerProps extends React.PropsWithChildren<{}> {
8
+ }
9
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
10
+ interface PopoverContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>, PopoverVariantProps {
11
+ maxWidth?: number | string;
12
+ minWidth?: number | string;
13
+ width?: number | string;
14
+ maxHeight?: number | string;
15
+ minHeight?: number | string;
16
+ height?: number | string;
17
+ }
18
+ declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
19
+ type PopoverBodyProps = React.PropsWithChildren<{
20
+ asChild?: boolean;
21
+ }>;
22
+ declare const PopoverBody: React.ForwardRefExoticComponent<{
23
+ asChild?: boolean | undefined;
24
+ } & {
25
+ children?: React.ReactNode;
26
+ } & React.RefAttributes<HTMLDivElement>>;
27
+ type PopoverHeaderProps = React.PropsWithChildren<{
28
+ asChild?: boolean;
29
+ }>;
30
+ declare const PopoverHeader: React.ForwardRefExoticComponent<{
31
+ asChild?: boolean | undefined;
32
+ } & {
33
+ children?: React.ReactNode;
34
+ } & React.RefAttributes<HTMLDivElement>>;
35
+ type PopoverFooterProps = React.PropsWithChildren<{
36
+ asChild?: boolean;
37
+ }>;
38
+ declare const PopoverFooter: React.ForwardRefExoticComponent<{
39
+ asChild?: boolean | undefined;
40
+ } & {
41
+ children?: React.ReactNode;
42
+ } & React.RefAttributes<HTMLDivElement>>;
43
+ interface PopoverCloseProps extends React.PropsWithChildren<{}> {
44
+ }
45
+ declare const PopoverClose: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
46
+ export { PopoverRoot as Root, PopoverContent as Content, PopoverBody as Body, PopoverHeader as Header, PopoverFooter as Footer, PopoverTrigger as Trigger, PopoverClose as Close, };
47
+ export type { PopoverRootProps as RootProps, PopoverContentProps as ContentProps, PopoverBodyProps as BodyProps, PopoverHeaderProps as HeaderProps, PopoverFooterProps as FooterProps, PopoverTriggerProps as TriggerProps, PopoverCloseProps as CloseProps, };
@@ -0,0 +1,2 @@
1
+ "use strict";var B=Object.create;var v=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var D=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var V=(o,e)=>{for(var r in e)v(o,r,{get:e[r],enumerable:!0})},R=(o,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of S(e))!L.call(o,p)&&p!==r&&v(o,p,{get:()=>e[p],enumerable:!(i=M(e,p))||i.enumerable});return o};var y=(o,e,r)=>(r=o!=null?B(D(o)):{},R(e||!o||!o.__esModule?v(r,"default",{value:o,enumerable:!0}):r,o)),A=o=>R(v({},"__esModule",{value:!0}),o);var G={};V(G,{Body:()=>h,Close:()=>c,Content:()=>C,Footer:()=>g,Header:()=>f,Root:()=>l,Trigger:()=>d});module.exports=A(G);var t=require("react/jsx-runtime"),P=y(require("react")),a=y(require("@radix-ui/react-popover")),n=require("@radix-ui/react-slot"),m=require("../utils/cn.js"),s=require("../variants/popover.js"),u=require("../variants/card.js"),T=require("./theme.js");const l=o=>(0,t.jsx)(a.Root,{...o});l.displayName="Popover.Root";const d=P.forwardRef(({children:o,...e},r)=>(0,t.jsx)(a.Trigger,{...e,ref:r,asChild:!0,children:(0,t.jsx)(n.Slot,{children:o})}));d.displayName="Popover.Trigger";const C=P.forwardRef((o,e)=>{const{forceMount:r,container:i,roundness:p,spacing:H="medium",maxWidth:E,minWidth:N,width:W,maxHeight:w,minHeight:x,height:b,...F}=o;return(0,t.jsx)(a.Portal,{container:i,forceMount:r,children:(0,t.jsx)(T.Theme,{roundness:p,asChild:!0,children:(0,t.jsx)(a.Content,{align:"start",sideOffset:8,collisionPadding:10,...F,ref:e,className:(0,m.cn)((0,s.popover)({roundness:p})),style:{"--padding":u.SPACING[H],"--max-width":E,"--min-width":N,"--width":W,"--max-height":w,"--min-height":x,"--height":b}})})})});C.displayName="Popover.Content";const h=P.forwardRef((o,e)=>{let{asChild:r,...i}=o;return(0,t.jsx)(r?n.Slot:"div",{ref:e,...i,className:(0,m.cn)((0,s.popoverBody)())})});h.displayName="Popover.Body";const f=P.forwardRef((o,e)=>{let{asChild:r,...i}=o;return(0,t.jsx)(r?n.Slot:"div",{ref:e,...i,className:(0,m.cn)((0,s.popoverHeader)())})});f.displayName="Popover.Header";const g=P.forwardRef((o,e)=>{let{asChild:r,...i}=o;return(0,t.jsx)(r?n.Slot:"div",{ref:e,...i,className:(0,m.cn)((0,s.popoverFooter)())})});g.displayName="Popover.Footer";const c=P.forwardRef(({children:o},e)=>(0,t.jsx)(a.Close,{ref:e,asChild:!0,children:(0,t.jsx)(n.Slot,{children:o})}));c.displayName="Popover.Close";
2
+ //# sourceMappingURL=popover.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/popover.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { Slot } from '@radix-ui/react-slot';\n\nimport { cn } from '../utils/cn.js';\nimport { popover, popoverBody, popoverFooter, popoverHeader } from '../variants/popover.js';\nimport { SPACING } from '../variants/card.js';\nimport { Theme } from './theme.js';\n\nimport type { PopoverVariantProps } from '../variants/popover.js';\n\ninterface PopoverRootProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> {}\nconst PopoverRoot: React.FC<PopoverRootProps> = (props: PopoverRootProps) => (\n <PopoverPrimitive.Root {...props} />\n);\nPopoverRoot.displayName = 'Popover.Root';\n\ntype PopoverTriggerElement = React.ElementRef<typeof PopoverPrimitive.Trigger>;\ninterface PopoverTriggerProps extends React.PropsWithChildren<{}> {}\nconst PopoverTrigger = React.forwardRef<PopoverTriggerElement, PopoverTriggerProps>(\n ({ children, ...rest }, ref) => (\n <PopoverPrimitive.Trigger {...rest} ref={ref} asChild>\n <Slot>{children}</Slot>\n </PopoverPrimitive.Trigger>\n ),\n);\nPopoverTrigger.displayName = 'Popover.Trigger';\n\ntype PopoverContentElement = React.ElementRef<typeof PopoverPrimitive.Content>;\ninterface PopoverContentProps\n extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>,\n PopoverVariantProps {\n maxWidth?: number | string;\n minWidth?: number | string;\n width?: number | string;\n maxHeight?: number | string;\n minHeight?: number | string;\n height?: number | string;\n}\nconst PopoverContent = React.forwardRef<PopoverContentElement, PopoverContentProps>(\n (props, ref) => {\n const {\n forceMount,\n container,\n roundness,\n spacing = 'medium',\n maxWidth,\n minWidth,\n width,\n maxHeight,\n minHeight,\n height,\n ...rest\n } = props;\n return (\n <PopoverPrimitive.Portal container={container} forceMount={forceMount}>\n <Theme roundness={roundness} asChild>\n <PopoverPrimitive.Content\n align=\"start\"\n sideOffset={8}\n collisionPadding={10}\n {...rest}\n ref={ref}\n className={cn(popover({ roundness }))}\n style={{\n // @ts-ignore\n '--padding': SPACING[spacing],\n '--max-width': maxWidth,\n '--min-width': minWidth,\n '--width': width,\n '--max-height': maxHeight,\n '--min-height': minHeight,\n '--height': height,\n }}\n />\n </Theme>\n </PopoverPrimitive.Portal>\n );\n },\n);\nPopoverContent.displayName = 'Popover.Content';\n\ntype PopoverBodyProps = React.PropsWithChildren<{\n asChild?: boolean;\n}>;\nconst PopoverBody = React.forwardRef<HTMLDivElement, PopoverBodyProps>((props, ref) => {\n let { asChild, ...rest } = props;\n let Comp = asChild ? Slot : 'div';\n\n return <Comp ref={ref} {...rest} className={cn(popoverBody())} />;\n});\nPopoverBody.displayName = 'Popover.Body';\n\ntype PopoverHeaderProps = React.PropsWithChildren<{\n asChild?: boolean;\n}>;\nconst PopoverHeader = React.forwardRef<HTMLDivElement, PopoverHeaderProps>((props, ref) => {\n let { asChild, ...rest } = props;\n let Comp = asChild ? Slot : 'div';\n\n return <Comp ref={ref} {...rest} className={cn(popoverHeader())} />;\n});\nPopoverHeader.displayName = 'Popover.Header';\n\ntype PopoverFooterProps = React.PropsWithChildren<{\n asChild?: boolean;\n}>;\nconst PopoverFooter = React.forwardRef<HTMLDivElement, PopoverFooterProps>((props, ref) => {\n let { asChild, ...rest } = props;\n let Comp = asChild ? Slot : 'div';\n\n return <Comp ref={ref} {...rest} className={cn(popoverFooter())} />;\n});\nPopoverFooter.displayName = 'Popover.Footer';\n\ntype PopoverCloseElement = React.ElementRef<typeof PopoverPrimitive.Close>;\ninterface PopoverCloseProps extends React.PropsWithChildren<{}> {}\nconst PopoverClose = React.forwardRef<PopoverCloseElement, PopoverCloseProps>(\n ({ children }, ref) => (\n <PopoverPrimitive.Close ref={ref} asChild>\n <Slot>{children}</Slot>\n </PopoverPrimitive.Close>\n ),\n);\nPopoverClose.displayName = 'Popover.Close';\n\nexport {\n PopoverRoot as Root,\n PopoverContent as Content,\n PopoverBody as Body,\n PopoverHeader as Header,\n PopoverFooter as Footer,\n PopoverTrigger as Trigger,\n PopoverClose as Close,\n};\nexport type {\n PopoverRootProps as RootProps,\n PopoverContentProps as ContentProps,\n PopoverBodyProps as BodyProps,\n PopoverHeaderProps as HeaderProps,\n PopoverFooterProps as FooterProps,\n PopoverTriggerProps as TriggerProps,\n PopoverCloseProps as CloseProps,\n};\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,EAAA,UAAAC,EAAA,YAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,SAAAC,EAAA,YAAAC,IAAA,eAAAC,EAAAT,GAaE,IAAAU,EAAA,6BAbFC,EAAuB,oBACvBC,EAAkC,sCAClCC,EAAqB,gCAErBC,EAAmB,0BACnBC,EAAmE,kCACnEC,EAAwB,+BACxBC,EAAsB,sBAKtB,MAAMV,EAA2CW,MAC/C,OAACN,EAAiB,KAAjB,CAAuB,GAAGM,EAAO,EAEpCX,EAAY,YAAc,eAI1B,MAAMC,EAAiBG,EAAM,WAC3B,CAAC,CAAE,SAAAQ,EAAU,GAAGC,CAAK,EAAGC,OACtB,OAACT,EAAiB,QAAjB,CAA0B,GAAGQ,EAAM,IAAKC,EAAK,QAAO,GACnD,mBAAC,QAAM,SAAAF,EAAS,EAClB,CAEJ,EACAX,EAAe,YAAc,kBAc7B,MAAMJ,EAAiBO,EAAM,WAC3B,CAACO,EAAOG,IAAQ,CACd,KAAM,CACJ,WAAAC,EACA,UAAAC,EACA,UAAAC,EACA,QAAAC,EAAU,SACV,SAAAC,EACA,SAAAC,EACA,MAAAC,EACA,UAAAC,EACA,UAAAC,EACA,OAAAC,EACA,GAAGX,CACL,EAAIF,EACJ,SACE,OAACN,EAAiB,OAAjB,CAAwB,UAAWW,EAAW,WAAYD,EACzD,mBAAC,SAAM,UAAWE,EAAW,QAAO,GAClC,mBAACZ,EAAiB,QAAjB,CACC,MAAM,QACN,WAAY,EACZ,iBAAkB,GACjB,GAAGQ,EACJ,IAAKC,EACL,aAAW,SAAG,WAAQ,CAAE,UAAAG,CAAU,CAAC,CAAC,EACpC,MAAO,CAEL,YAAa,UAAQC,CAAO,EAC5B,cAAeC,EACf,cAAeC,EACf,UAAWC,EACX,eAAgBC,EAChB,eAAgBC,EAChB,WAAYC,CACd,EACF,EACF,EACF,CAEJ,CACF,EACA3B,EAAe,YAAc,kBAK7B,MAAMF,EAAcS,EAAM,WAA6C,CAACO,EAAOG,IAAQ,CACrF,GAAI,CAAE,QAAAW,EAAS,GAAGZ,CAAK,EAAIF,EAG3B,SAAO,OAFIc,EAAU,OAAO,MAEpB,CAAK,IAAKX,EAAM,GAAGD,EAAM,aAAW,SAAG,eAAY,CAAC,EAAG,CACjE,CAAC,EACDlB,EAAY,YAAc,eAK1B,MAAMI,EAAgBK,EAAM,WAA+C,CAACO,EAAOG,IAAQ,CACzF,GAAI,CAAE,QAAAW,EAAS,GAAGZ,CAAK,EAAIF,EAG3B,SAAO,OAFIc,EAAU,OAAO,MAEpB,CAAK,IAAKX,EAAM,GAAGD,EAAM,aAAW,SAAG,iBAAc,CAAC,EAAG,CACnE,CAAC,EACDd,EAAc,YAAc,iBAK5B,MAAMD,EAAgBM,EAAM,WAA+C,CAACO,EAAOG,IAAQ,CACzF,GAAI,CAAE,QAAAW,EAAS,GAAGZ,CAAK,EAAIF,EAG3B,SAAO,OAFIc,EAAU,OAAO,MAEpB,CAAK,IAAKX,EAAM,GAAGD,EAAM,aAAW,SAAG,iBAAc,CAAC,EAAG,CACnE,CAAC,EACDf,EAAc,YAAc,iBAI5B,MAAMF,EAAeQ,EAAM,WACzB,CAAC,CAAE,SAAAQ,CAAS,EAAGE,OACb,OAACT,EAAiB,MAAjB,CAAuB,IAAKS,EAAK,QAAO,GACvC,mBAAC,QAAM,SAAAF,EAAS,EAClB,CAEJ,EACAhB,EAAa,YAAc",
6
+ "names": ["popover_exports", "__export", "PopoverBody", "PopoverClose", "PopoverContent", "PopoverFooter", "PopoverHeader", "PopoverRoot", "PopoverTrigger", "__toCommonJS", "import_jsx_runtime", "React", "PopoverPrimitive", "import_react_slot", "import_cn", "import_popover", "import_card", "import_theme", "props", "children", "rest", "ref", "forceMount", "container", "roundness", "spacing", "maxWidth", "minWidth", "width", "maxHeight", "minHeight", "height", "asChild"]
7
+ }
@@ -0,0 +1,2 @@
1
+ declare function TextField(): import("react/jsx-runtime").JSX.Element;
2
+ export { TextField };
@@ -0,0 +1,2 @@
1
+ "use strict";var n=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var l=(o,t)=>{for(var i in t)n(o,i,{get:t[i],enumerable:!0})},m=(o,t,i,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of c(t))!d.call(o,e)&&e!==i&&n(o,e,{get:()=>t[e],enumerable:!(p=u(t,e))||p.enumerable});return o};var x=o=>m(n({},"__esModule",{value:!0}),o);var F={};l(F,{TextField:()=>r});module.exports=x(F);var f=require("react/jsx-runtime"),T=require("react");function r(){return(0,f.jsx)("input",{})}
2
+ //# sourceMappingURL=text-field.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/text-field.tsx"],
4
+ "sourcesContent": ["import React from 'react';\n\nfunction TextField() {\n return <input />;\n}\n\nexport { TextField };\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,eAAAE,IAAA,eAAAC,EAAAH,GAGS,IAAAI,EAAA,6BAHTC,EAAkB,iBAElB,SAASH,GAAY,CACnB,SAAO,OAAC,UAAM,CAChB",
6
+ "names": ["text_field_exports", "__export", "TextField", "__toCommonJS", "import_jsx_runtime", "import_react"]
7
+ }
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { TextVariantProps } from '../variants/text.js';
3
+ interface TextOwnProps extends TextVariantProps {
4
+ asChild?: boolean;
5
+ }
6
+ type TextSpanProps = {
7
+ as?: 'span';
8
+ } & React.HTMLAttributes<HTMLSpanElement>;
9
+ type TextDivProps = {
10
+ as: 'div';
11
+ } & React.HTMLAttributes<HTMLDivElement>;
12
+ type TextLabelProps = {
13
+ as: 'label';
14
+ } & React.HTMLAttributes<HTMLLabelElement>;
15
+ type TextPProps = {
16
+ as: 'p';
17
+ } & React.HTMLAttributes<HTMLParagraphElement>;
18
+ type TextProps = TextOwnProps & (TextSpanProps | TextDivProps | TextLabelProps | TextPProps);
19
+ declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLDivElement>>;
20
+ export { Text };
@@ -0,0 +1,2 @@
1
+ "use strict";var f=Object.create;var p=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var g=(t,e)=>{for(var a in e)p(t,a,{get:e[a],enumerable:!0})},i=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of v(e))!R.call(t,r)&&r!==a&&p(t,r,{get:()=>e[r],enumerable:!(s=d(e,r))||s.enumerable});return t};var h=(t,e,a)=>(a=t!=null?f(y(t)):{},i(e||!t||!t.__esModule?p(a,"default",{value:t,enumerable:!0}):a,t)),E=t=>i(p({},"__esModule",{value:!0}),t);var S={};g(S,{Text:()=>o});module.exports=E(S);var T=require("react/jsx-runtime"),n=h(require("react")),l=require("@radix-ui/react-slot"),x=require("../variants/text.js");const o=n.default.forwardRef((t,e)=>{const{as:a="span",asChild:s,children:r,className:P,size:m,align:L,color:c,variant:b,weight:H,...M}=t;return(0,T.jsx)(l.Slot,{className:(0,x.text)({size:m,align:L,color:c,variant:b,className:P,weight:H}),ref:e,...M,children:s?r:(0,T.jsx)(a,{children:r})})});o.displayName="Text";
2
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/text.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\nimport { text } from '../variants/text.js';\n\nimport type { TextVariantProps } from '../variants/text.js';\n\ninterface TextOwnProps extends TextVariantProps {\n asChild?: boolean;\n}\n\ntype TextSpanProps = { as?: 'span' } & React.HTMLAttributes<HTMLSpanElement>;\ntype TextDivProps = { as: 'div' } & React.HTMLAttributes<HTMLDivElement>;\ntype TextLabelProps = { as: 'label' } & React.HTMLAttributes<HTMLLabelElement>;\ntype TextPProps = { as: 'p' } & React.HTMLAttributes<HTMLParagraphElement>;\n\ntype TextProps = TextOwnProps & (TextSpanProps | TextDivProps | TextLabelProps | TextPProps);\n\nconst Text = React.forwardRef<HTMLDivElement, TextProps>((props, ref) => {\n const {\n as: Tag = 'span',\n asChild,\n children,\n className,\n size,\n align,\n color,\n variant,\n weight,\n ...rest\n } = props;\n\n return (\n <Slot className={text({ size, align, color, variant, className, weight })} ref={ref} {...rest}>\n {asChild ? children : <Tag>{children}</Tag>}\n </Slot>\n );\n});\n\nText.displayName = 'Text';\n\nexport { Text };\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,IAAA,eAAAC,EAAAH,GAkC4B,IAAAI,EAAA,6BAlC5BC,EAAkB,oBAClBC,EAAqB,gCAErBC,EAAqB,+BAerB,MAAML,EAAO,EAAAM,QAAM,WAAsC,CAACC,EAAOC,IAAQ,CACvE,KAAM,CACJ,GAAIC,EAAM,OACV,QAAAC,EACA,SAAAC,EACA,UAAAC,EACA,KAAAC,EACA,MAAAC,EACA,MAAAC,EACA,QAAAC,EACA,OAAAC,EACA,GAAGC,CACL,EAAIX,EAEJ,SACE,OAAC,QAAK,aAAW,QAAK,CAAE,KAAAM,EAAM,MAAAC,EAAO,MAAAC,EAAO,QAAAC,EAAS,UAAAJ,EAAW,OAAAK,CAAO,CAAC,EAAG,IAAKT,EAAM,GAAGU,EACtF,SAAAR,EAAUC,KAAW,OAACF,EAAA,CAAK,SAAAE,EAAS,EACvC,CAEJ,CAAC,EAEDX,EAAK,YAAc",
6
+ "names": ["text_exports", "__export", "Text", "__toCommonJS", "import_jsx_runtime", "import_react", "import_react_slot", "import_text", "React", "props", "ref", "Tag", "asChild", "children", "className", "size", "align", "color", "variant", "weight", "rest"]
7
+ }
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ interface ThemeContext {
3
+ accentBaseColor?: string;
4
+ negativeBaseColor?: string;
5
+ grayBaseColor?: string;
6
+ roundness?: 'none' | 'small' | 'medium' | 'large' | 'full';
7
+ density?: number;
8
+ contrast?: number;
9
+ mode?: 'light' | 'dark';
10
+ }
11
+ interface ThemeProps extends ThemeContext, React.HTMLAttributes<HTMLDivElement> {
12
+ asChild?: boolean;
13
+ }
14
+ declare const ThemeContext: React.Context<ThemeContext>;
15
+ declare const Theme: React.ForwardRefExoticComponent<ThemeProps & React.RefAttributes<HTMLDivElement>>;
16
+ export { Theme };
17
+ export type { ThemeProps };
@@ -0,0 +1,2 @@
1
+ "use strict";var x=Object.create;var s=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty;var E=(e,t)=>{for(var o in t)s(e,o,{get:t[o],enumerable:!0})},u=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of b(t))!D.call(e,r)&&r!==o&&s(e,r,{get:()=>t[r],enumerable:!(a=P(t,r))||a.enumerable});return e};var H=(e,t,o)=>(o=e!=null?x(R(e)):{},u(t||!e||!e.__esModule?s(o,"default",{value:e,enumerable:!0}):o,e)),L=e=>u(s({},"__esModule",{value:!0}),e);var M={};E(M,{Theme:()=>d});module.exports=L(M);var n=require("react/jsx-runtime"),g=require("@radix-ui/react-slot"),i=H(require("react")),p=require("@radix-ui/react-tooltip"),v=require("@radix-ui/react-direction");const f=i.createContext({accentBaseColor:void 0,negativeBaseColor:void 0,grayBaseColor:void 0,roundness:"medium",density:1,contrast:void 0,mode:void 0}),d=i.forwardRef((e,t)=>{const o=i.useContext(f),{asChild:a,accentBaseColor:r=o.accentBaseColor,negativeBaseColor:m=o.negativeBaseColor,grayBaseColor:l=o.grayBaseColor,roundness:c=o.roundness,density:C=o.density,contrast:y=o.contrast,mode:T=o.mode,...h}=e,B=a?g.Slot:"div";return(0,n.jsx)(p.TooltipProvider,{delayDuration:200,children:(0,n.jsx)(v.DirectionProvider,{dir:"ltr",children:(0,n.jsx)(f.Provider,{value:{accentBaseColor:r,negativeBaseColor:m,grayBaseColor:l,roundness:c,density:C,contrast:y,mode:T},children:(0,n.jsx)(B,{...h,className:"dr",ref:t,style:{"--accent-base":r,"--negative-base":m,"--gray-base":l,"--base-density":C},"data-radius":c})})})})});d.displayName="Theme";
2
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/theme.tsx"],
4
+ "sourcesContent": ["import { Slot } from '@radix-ui/react-slot';\nimport * as React from 'react';\nimport { TooltipProvider } from '@radix-ui/react-tooltip';\nimport { DirectionProvider } from '@radix-ui/react-direction';\n\ninterface ThemeContext {\n accentBaseColor?: string;\n negativeBaseColor?: string;\n grayBaseColor?: string;\n roundness?: 'none' | 'small' | 'medium' | 'large' | 'full';\n density?: number;\n contrast?: number;\n mode?: 'light' | 'dark';\n}\n\ninterface ThemeProps extends ThemeContext, React.HTMLAttributes<HTMLDivElement> {\n asChild?: boolean;\n}\n\nconst ThemeContext = React.createContext<ThemeContext>({\n accentBaseColor: undefined,\n negativeBaseColor: undefined,\n grayBaseColor: undefined,\n roundness: 'medium',\n density: 1,\n contrast: undefined,\n mode: undefined,\n});\n\nconst Theme = React.forwardRef<React.ElementRef<'div'>, ThemeProps>((props, ref) => {\n const parentTheme = React.useContext(ThemeContext);\n const {\n asChild,\n accentBaseColor = parentTheme.accentBaseColor,\n negativeBaseColor = parentTheme.negativeBaseColor,\n grayBaseColor = parentTheme.grayBaseColor,\n roundness = parentTheme.roundness,\n density = parentTheme.density,\n contrast = parentTheme.contrast,\n mode = parentTheme.mode,\n ...rest\n } = props;\n const Comp = asChild ? Slot : 'div';\n return (\n <TooltipProvider delayDuration={200}>\n <DirectionProvider dir=\"ltr\">\n <ThemeContext.Provider\n value={{\n accentBaseColor,\n negativeBaseColor,\n grayBaseColor,\n roundness,\n density,\n contrast,\n mode,\n }}\n >\n <Comp\n {...rest}\n className=\"dr\"\n ref={ref}\n style={\n {\n '--accent-base': accentBaseColor,\n '--negative-base': negativeBaseColor,\n '--gray-base': grayBaseColor,\n '--base-density': density,\n } as any\n }\n data-radius={roundness}\n />\n </ThemeContext.Provider>\n </DirectionProvider>\n </TooltipProvider>\n );\n});\n\nTheme.displayName = 'Theme';\n\nexport { Theme };\nexport type { ThemeProps };\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,IAAA,eAAAC,EAAAH,GAyDU,IAAAI,EAAA,6BAzDVC,EAAqB,gCACrBC,EAAuB,oBACvBC,EAAgC,mCAChCC,EAAkC,qCAgBlC,MAAMC,EAAeH,EAAM,cAA4B,CACrD,gBAAiB,OACjB,kBAAmB,OACnB,cAAe,OACf,UAAW,SACX,QAAS,EACT,SAAU,OACV,KAAM,MACR,CAAC,EAEKJ,EAAQI,EAAM,WAAgD,CAACI,EAAOC,IAAQ,CAClF,MAAMC,EAAcN,EAAM,WAAWG,CAAY,EAC3C,CACJ,QAAAI,EACA,gBAAAC,EAAkBF,EAAY,gBAC9B,kBAAAG,EAAoBH,EAAY,kBAChC,cAAAI,EAAgBJ,EAAY,cAC5B,UAAAK,EAAYL,EAAY,UACxB,QAAAM,EAAUN,EAAY,QACtB,SAAAO,EAAWP,EAAY,SACvB,KAAAQ,EAAOR,EAAY,KACnB,GAAGS,CACL,EAAIX,EACEY,EAAOT,EAAU,OAAO,MAC9B,SACE,OAAC,mBAAgB,cAAe,IAC9B,mBAAC,qBAAkB,IAAI,MACrB,mBAACJ,EAAa,SAAb,CACC,MAAO,CACL,gBAAAK,EACA,kBAAAC,EACA,cAAAC,EACA,UAAAC,EACA,QAAAC,EACA,SAAAC,EACA,KAAAC,CACF,EAEA,mBAACE,EAAA,CACE,GAAGD,EACJ,UAAU,KACV,IAAKV,EACL,MACE,CACE,gBAAiBG,EACjB,kBAAmBC,EACnB,cAAeC,EACf,iBAAkBE,CACpB,EAEF,cAAaD,EACf,EACF,EACF,EACF,CAEJ,CAAC,EAEDf,EAAM,YAAc",
6
+ "names": ["theme_exports", "__export", "Theme", "__toCommonJS", "import_jsx_runtime", "import_react_slot", "React", "import_react_tooltip", "import_react_direction", "ThemeContext", "props", "ref", "parentTheme", "asChild", "accentBaseColor", "negativeBaseColor", "grayBaseColor", "roundness", "density", "contrast", "mode", "rest", "Comp"]
7
+ }
@@ -0,0 +1,4 @@
1
+ import type { ToasterProps } from 'react-hot-toast';
2
+ type ToastProps = ToasterProps;
3
+ declare const Toast: (props: ToastProps) => import("react/jsx-runtime").JSX.Element;
4
+ export { Toast };