rocksolidjs 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 (347) hide show
  1. package/LICENSE.txt +21 -0
  2. package/README.md +0 -0
  3. package/dist/Accordion/Accordion.d.ts +12 -0
  4. package/dist/Accordion/Accordion.js +1 -0
  5. package/dist/Accordion/index.d.ts +2 -0
  6. package/dist/Accordion/index.js +1 -0
  7. package/dist/Accordion/style.d.ts +4 -0
  8. package/dist/Accordion/style.js +1 -0
  9. package/dist/AccordionContext/AccordionContext.d.ts +10 -0
  10. package/dist/AccordionContext/AccordionContext.js +1 -0
  11. package/dist/AccordionContext/index.d.ts +1 -0
  12. package/dist/AccordionContext/index.js +1 -0
  13. package/dist/AccordionDetails/AccordionDetails.d.ts +8 -0
  14. package/dist/AccordionDetails/AccordionDetails.js +1 -0
  15. package/dist/AccordionDetails/index.d.ts +2 -0
  16. package/dist/AccordionDetails/index.js +1 -0
  17. package/dist/AccordionDetails/style.d.ts +64 -0
  18. package/dist/AccordionDetails/style.js +1 -0
  19. package/dist/AccordionSummary/AccordionSummary.d.ts +15 -0
  20. package/dist/AccordionSummary/AccordionSummary.js +1 -0
  21. package/dist/AccordionSummary/index.d.ts +2 -0
  22. package/dist/AccordionSummary/index.js +1 -0
  23. package/dist/AccordionSummary/style.d.ts +4 -0
  24. package/dist/AccordionSummary/style.js +1 -0
  25. package/dist/Alert/Alert.d.ts +26 -0
  26. package/dist/Alert/Alert.js +1 -0
  27. package/dist/Alert/index.d.ts +2 -0
  28. package/dist/Alert/index.js +1 -0
  29. package/dist/Alert/style.d.ts +82 -0
  30. package/dist/Alert/style.js +1 -0
  31. package/dist/Avatar/Avatar.d.ts +20 -0
  32. package/dist/Avatar/Avatar.js +1 -0
  33. package/dist/Avatar/index.d.ts +2 -0
  34. package/dist/Avatar/index.js +1 -0
  35. package/dist/Avatar/style.d.ts +130 -0
  36. package/dist/Avatar/style.js +1 -0
  37. package/dist/Backdrop/Backdrop.d.ts +7 -0
  38. package/dist/Backdrop/Backdrop.js +1 -0
  39. package/dist/Backdrop/index.d.ts +2 -0
  40. package/dist/Backdrop/index.js +1 -0
  41. package/dist/Backdrop/style.d.ts +4 -0
  42. package/dist/Backdrop/style.js +1 -0
  43. package/dist/Badge/Badge.d.ts +21 -0
  44. package/dist/Badge/Badge.js +1 -0
  45. package/dist/Badge/index.d.ts +2 -0
  46. package/dist/Badge/index.js +1 -0
  47. package/dist/Badge/style.d.ts +214 -0
  48. package/dist/Badge/style.js +1 -0
  49. package/dist/Breadcrumbs/Breadcrumbs.d.ts +14 -0
  50. package/dist/Breadcrumbs/Breadcrumbs.js +1 -0
  51. package/dist/Breadcrumbs/index.d.ts +2 -0
  52. package/dist/Breadcrumbs/index.js +1 -0
  53. package/dist/Breadcrumbs/style.d.ts +64 -0
  54. package/dist/Breadcrumbs/style.js +1 -0
  55. package/dist/Button/Button.d.ts +24 -0
  56. package/dist/Button/Button.js +1 -0
  57. package/dist/Button/index.d.ts +2 -0
  58. package/dist/Button/index.js +1 -0
  59. package/dist/Button/style.d.ts +238 -0
  60. package/dist/Button/style.js +1 -0
  61. package/dist/Card/Card.d.ts +10 -0
  62. package/dist/Card/Card.js +1 -0
  63. package/dist/Card/index.d.ts +2 -0
  64. package/dist/Card/index.js +1 -0
  65. package/dist/Card/style.d.ts +46 -0
  66. package/dist/Card/style.js +1 -0
  67. package/dist/CardContent/CardContent.d.ts +6 -0
  68. package/dist/CardContent/CardContent.js +1 -0
  69. package/dist/CardContent/index.d.ts +2 -0
  70. package/dist/CardContent/index.js +1 -0
  71. package/dist/CardContent/style.d.ts +4 -0
  72. package/dist/CardContent/style.js +1 -0
  73. package/dist/CardDescription/CardDescription.d.ts +8 -0
  74. package/dist/CardDescription/CardDescription.js +1 -0
  75. package/dist/CardDescription/index.d.ts +2 -0
  76. package/dist/CardDescription/index.js +1 -0
  77. package/dist/CardDescription/style.d.ts +4 -0
  78. package/dist/CardDescription/style.js +1 -0
  79. package/dist/CardFooter/CardFooter.d.ts +6 -0
  80. package/dist/CardFooter/CardFooter.js +1 -0
  81. package/dist/CardFooter/index.d.ts +2 -0
  82. package/dist/CardFooter/index.js +1 -0
  83. package/dist/CardFooter/style.d.ts +4 -0
  84. package/dist/CardFooter/style.js +1 -0
  85. package/dist/CardHeader/CardHeader.d.ts +6 -0
  86. package/dist/CardHeader/CardHeader.js +1 -0
  87. package/dist/CardHeader/index.d.ts +2 -0
  88. package/dist/CardHeader/index.js +1 -0
  89. package/dist/CardHeader/style.d.ts +4 -0
  90. package/dist/CardHeader/style.js +1 -0
  91. package/dist/CardTitle/CardTitle.d.ts +8 -0
  92. package/dist/CardTitle/CardTitle.js +1 -0
  93. package/dist/CardTitle/index.d.ts +2 -0
  94. package/dist/CardTitle/index.js +1 -0
  95. package/dist/CardTitle/style.d.ts +4 -0
  96. package/dist/CardTitle/style.js +1 -0
  97. package/dist/Checkbox/Checkbox.d.ts +18 -0
  98. package/dist/Checkbox/Checkbox.js +1 -0
  99. package/dist/Checkbox/index.d.ts +2 -0
  100. package/dist/Checkbox/index.js +1 -0
  101. package/dist/Checkbox/style.d.ts +88 -0
  102. package/dist/Checkbox/style.js +1 -0
  103. package/dist/Chip/Chip.d.ts +25 -0
  104. package/dist/Chip/Chip.js +1 -0
  105. package/dist/Chip/index.d.ts +2 -0
  106. package/dist/Chip/index.js +1 -0
  107. package/dist/Chip/style.d.ts +298 -0
  108. package/dist/Chip/style.js +1 -0
  109. package/dist/Dialog/Dialog.d.ts +20 -0
  110. package/dist/Dialog/Dialog.js +1 -0
  111. package/dist/Dialog/index.d.ts +2 -0
  112. package/dist/Dialog/index.js +1 -0
  113. package/dist/Dialog/style.d.ts +34 -0
  114. package/dist/Dialog/style.js +1 -0
  115. package/dist/DialogActions/DialogActions.d.ts +7 -0
  116. package/dist/DialogActions/DialogActions.js +1 -0
  117. package/dist/DialogActions/index.d.ts +2 -0
  118. package/dist/DialogActions/index.js +1 -0
  119. package/dist/DialogActions/style.d.ts +4 -0
  120. package/dist/DialogActions/style.js +1 -0
  121. package/dist/DialogContent/DialogContent.d.ts +7 -0
  122. package/dist/DialogContent/DialogContent.js +1 -0
  123. package/dist/DialogContent/index.d.ts +2 -0
  124. package/dist/DialogContent/index.js +1 -0
  125. package/dist/DialogContent/style.d.ts +4 -0
  126. package/dist/DialogContent/style.js +1 -0
  127. package/dist/DialogTitle/DialogTitle.d.ts +8 -0
  128. package/dist/DialogTitle/DialogTitle.js +1 -0
  129. package/dist/DialogTitle/index.d.ts +2 -0
  130. package/dist/DialogTitle/index.js +1 -0
  131. package/dist/DialogTitle/style.d.ts +4 -0
  132. package/dist/DialogTitle/style.js +1 -0
  133. package/dist/Divider/Divider.d.ts +11 -0
  134. package/dist/Divider/Divider.js +1 -0
  135. package/dist/Divider/index.d.ts +2 -0
  136. package/dist/Divider/index.js +1 -0
  137. package/dist/Divider/style.d.ts +34 -0
  138. package/dist/Divider/style.js +1 -0
  139. package/dist/IconButton/IconButton.d.ts +6 -0
  140. package/dist/IconButton/IconButton.js +1 -0
  141. package/dist/IconButton/index.d.ts +2 -0
  142. package/dist/IconButton/index.js +1 -0
  143. package/dist/IconButton/style.d.ts +40 -0
  144. package/dist/IconButton/style.js +1 -0
  145. package/dist/Input/Input.d.ts +27 -0
  146. package/dist/Input/Input.js +1 -0
  147. package/dist/Input/index.d.ts +2 -0
  148. package/dist/Input/index.js +1 -0
  149. package/dist/Input/style.d.ts +232 -0
  150. package/dist/Input/style.js +1 -0
  151. package/dist/Label/Label.d.ts +16 -0
  152. package/dist/Label/Label.js +1 -0
  153. package/dist/Label/index.d.ts +2 -0
  154. package/dist/Label/index.js +1 -0
  155. package/dist/Label/style.d.ts +118 -0
  156. package/dist/Label/style.js +1 -0
  157. package/dist/Link/Link.d.ts +15 -0
  158. package/dist/Link/Link.js +1 -0
  159. package/dist/Link/index.d.ts +2 -0
  160. package/dist/Link/index.js +1 -0
  161. package/dist/Link/style.d.ts +40 -0
  162. package/dist/Link/style.js +1 -0
  163. package/dist/Progress/Progress.d.ts +21 -0
  164. package/dist/Progress/Progress.js +1 -0
  165. package/dist/Progress/index.d.ts +2 -0
  166. package/dist/Progress/index.js +1 -0
  167. package/dist/Progress/style.d.ts +112 -0
  168. package/dist/Progress/style.js +1 -0
  169. package/dist/Radio/Radio.d.ts +19 -0
  170. package/dist/Radio/Radio.js +1 -0
  171. package/dist/Radio/index.d.ts +2 -0
  172. package/dist/Radio/index.js +1 -0
  173. package/dist/Radio/style.d.ts +76 -0
  174. package/dist/Radio/style.js +1 -0
  175. package/dist/RadioGroup/RadioGroup.d.ts +10 -0
  176. package/dist/RadioGroup/RadioGroup.js +1 -0
  177. package/dist/RadioGroup/index.d.ts +2 -0
  178. package/dist/RadioGroup/index.js +1 -0
  179. package/dist/RadioGroupContext/RadioGroupContext.d.ts +8 -0
  180. package/dist/RadioGroupContext/RadioGroupContext.js +1 -0
  181. package/dist/RadioGroupContext/index.d.ts +1 -0
  182. package/dist/RadioGroupContext/index.js +1 -0
  183. package/dist/Select/Select.d.ts +22 -0
  184. package/dist/Select/Select.js +1 -0
  185. package/dist/Select/index.d.ts +2 -0
  186. package/dist/Select/index.js +1 -0
  187. package/dist/Select/style.d.ts +124 -0
  188. package/dist/Select/style.js +1 -0
  189. package/dist/Skeleton/Skeleton.d.ts +9 -0
  190. package/dist/Skeleton/Skeleton.js +1 -0
  191. package/dist/Skeleton/index.d.ts +2 -0
  192. package/dist/Skeleton/index.js +1 -0
  193. package/dist/Skeleton/style.d.ts +34 -0
  194. package/dist/Skeleton/style.js +1 -0
  195. package/dist/Spinner/Spinner.d.ts +13 -0
  196. package/dist/Spinner/Spinner.js +1 -0
  197. package/dist/Spinner/index.d.ts +2 -0
  198. package/dist/Spinner/index.js +1 -0
  199. package/dist/Spinner/style.d.ts +112 -0
  200. package/dist/Spinner/style.js +1 -0
  201. package/dist/Switch/Switch.d.ts +23 -0
  202. package/dist/Switch/Switch.js +1 -0
  203. package/dist/Switch/index.d.ts +2 -0
  204. package/dist/Switch/index.js +1 -0
  205. package/dist/Switch/style.d.ts +226 -0
  206. package/dist/Switch/style.js +1 -0
  207. package/dist/Tab/Tab.d.ts +18 -0
  208. package/dist/Tab/Tab.js +1 -0
  209. package/dist/Tab/index.d.ts +2 -0
  210. package/dist/Tab/index.js +1 -0
  211. package/dist/Tab/style.d.ts +94 -0
  212. package/dist/Tab/style.js +1 -0
  213. package/dist/TabPanel/TabPanel.d.ts +7 -0
  214. package/dist/TabPanel/TabPanel.js +1 -0
  215. package/dist/TabPanel/index.d.ts +2 -0
  216. package/dist/TabPanel/index.js +1 -0
  217. package/dist/Table/Table.d.ts +7 -0
  218. package/dist/Table/Table.js +1 -0
  219. package/dist/Table/index.d.ts +2 -0
  220. package/dist/Table/index.js +1 -0
  221. package/dist/Table/style.d.ts +4 -0
  222. package/dist/Table/style.js +1 -0
  223. package/dist/TableBody/TableBody.d.ts +4 -0
  224. package/dist/TableBody/TableBody.js +1 -0
  225. package/dist/TableBody/index.d.ts +2 -0
  226. package/dist/TableBody/index.js +1 -0
  227. package/dist/TableCell/TableCell.d.ts +11 -0
  228. package/dist/TableCell/TableCell.js +1 -0
  229. package/dist/TableCell/index.d.ts +2 -0
  230. package/dist/TableCell/index.js +1 -0
  231. package/dist/TableCell/style.d.ts +70 -0
  232. package/dist/TableCell/style.js +1 -0
  233. package/dist/TableContext/TableContext.d.ts +6 -0
  234. package/dist/TableContext/TableContext.js +1 -0
  235. package/dist/TableContext/index.d.ts +1 -0
  236. package/dist/TableContext/index.js +1 -0
  237. package/dist/TableFooter/TableFooter.d.ts +4 -0
  238. package/dist/TableFooter/TableFooter.js +1 -0
  239. package/dist/TableFooter/index.d.ts +2 -0
  240. package/dist/TableFooter/index.js +1 -0
  241. package/dist/TableFooter/style.d.ts +4 -0
  242. package/dist/TableFooter/style.js +1 -0
  243. package/dist/TableHead/TableHead.d.ts +4 -0
  244. package/dist/TableHead/TableHead.js +1 -0
  245. package/dist/TableHead/index.d.ts +2 -0
  246. package/dist/TableHead/index.js +1 -0
  247. package/dist/TableHeadContext/TableHeadContext.d.ts +5 -0
  248. package/dist/TableHeadContext/TableHeadContext.js +1 -0
  249. package/dist/TableHeadContext/index.d.ts +1 -0
  250. package/dist/TableHeadContext/index.js +1 -0
  251. package/dist/TableRow/TableRow.d.ts +7 -0
  252. package/dist/TableRow/TableRow.js +1 -0
  253. package/dist/TableRow/index.d.ts +2 -0
  254. package/dist/TableRow/index.js +1 -0
  255. package/dist/TableRow/style.d.ts +34 -0
  256. package/dist/TableRow/style.js +1 -0
  257. package/dist/Tabs/Tabs.d.ts +12 -0
  258. package/dist/Tabs/Tabs.js +1 -0
  259. package/dist/Tabs/TabsContentContext.d.ts +7 -0
  260. package/dist/Tabs/TabsContentContext.js +1 -0
  261. package/dist/Tabs/index.d.ts +2 -0
  262. package/dist/Tabs/index.js +1 -0
  263. package/dist/Tabs/style.d.ts +94 -0
  264. package/dist/Tabs/style.js +1 -0
  265. package/dist/TabsContext/TabsContext.d.ts +10 -0
  266. package/dist/TabsContext/TabsContext.js +1 -0
  267. package/dist/TabsContext/context.d.ts +8 -0
  268. package/dist/TabsContext/context.js +3 -0
  269. package/dist/TabsContext/index.d.ts +2 -0
  270. package/dist/TabsContext/index.js +1 -0
  271. package/dist/Textarea/Textarea.d.ts +16 -0
  272. package/dist/Textarea/Textarea.js +1 -0
  273. package/dist/Textarea/index.d.ts +2 -0
  274. package/dist/Textarea/index.js +1 -0
  275. package/dist/Textarea/style.d.ts +160 -0
  276. package/dist/Textarea/style.js +1 -0
  277. package/dist/ThemeProvider/ThemeContext.d.ts +8 -0
  278. package/dist/ThemeProvider/ThemeContext.js +1 -0
  279. package/dist/ThemeProvider/ThemeProvider.d.ts +8 -0
  280. package/dist/ThemeProvider/ThemeProvider.js +1 -0
  281. package/dist/ThemeProvider/componentsTV.d.ts +1498 -0
  282. package/dist/ThemeProvider/componentsTV.js +1 -0
  283. package/dist/ThemeProvider/index.d.ts +3 -0
  284. package/dist/ThemeProvider/index.js +1 -0
  285. package/dist/Typography/Typography.d.ts +15 -0
  286. package/dist/Typography/Typography.js +1 -0
  287. package/dist/Typography/index.d.ts +2 -0
  288. package/dist/Typography/index.js +1 -0
  289. package/dist/Typography/style.d.ts +154 -0
  290. package/dist/Typography/style.js +1 -0
  291. package/dist/_chunks/dist-C-sN40SQ.js +1 -0
  292. package/dist/icons/Alert.d.ts +3 -0
  293. package/dist/icons/Alert.js +1 -0
  294. package/dist/icons/AngleDown.d.ts +3 -0
  295. package/dist/icons/AngleDown.js +1 -0
  296. package/dist/icons/AngleUp.d.ts +3 -0
  297. package/dist/icons/AngleUp.js +1 -0
  298. package/dist/icons/CheckboxChecked.d.ts +3 -0
  299. package/dist/icons/CheckboxChecked.js +1 -0
  300. package/dist/icons/CheckboxUnchecked.d.ts +3 -0
  301. package/dist/icons/CheckboxUnchecked.js +1 -0
  302. package/dist/icons/Checkmark.d.ts +3 -0
  303. package/dist/icons/Checkmark.js +1 -0
  304. package/dist/icons/Cross.d.ts +3 -0
  305. package/dist/icons/Cross.js +1 -0
  306. package/dist/icons/Error.d.ts +3 -0
  307. package/dist/icons/Error.js +1 -0
  308. package/dist/icons/Info.d.ts +3 -0
  309. package/dist/icons/Info.js +1 -0
  310. package/dist/icons/RadioChecked.d.ts +3 -0
  311. package/dist/icons/RadioChecked.js +1 -0
  312. package/dist/icons/RadioUnchecked.d.ts +3 -0
  313. package/dist/icons/RadioUnchecked.js +1 -0
  314. package/dist/icons/Warning.d.ts +3 -0
  315. package/dist/icons/Warning.js +1 -0
  316. package/dist/index.css +6 -0
  317. package/dist/index.d.ts +137 -0
  318. package/dist/index.js +1 -0
  319. package/dist/styles/createTheme.d.ts +4 -0
  320. package/dist/styles/createTheme.js +2 -0
  321. package/dist/styles/index.d.ts +8 -0
  322. package/dist/styles/index.js +1 -0
  323. package/dist/styles/theme/colors.d.ts +24 -0
  324. package/dist/styles/theme/colors.js +1 -0
  325. package/dist/styles/theme/disabled.d.ts +10 -0
  326. package/dist/styles/theme/disabled.js +1 -0
  327. package/dist/styles/theme/index.d.ts +20 -0
  328. package/dist/styles/theme/index.js +1 -0
  329. package/dist/styles/theme/rounded.d.ts +11 -0
  330. package/dist/styles/theme/rounded.js +1 -0
  331. package/dist/styles/theme/shadow.d.ts +10 -0
  332. package/dist/styles/theme/shadow.js +1 -0
  333. package/dist/styles/theme/themeSchema.d.ts +4 -0
  334. package/dist/styles/theme/themeSchema.js +1 -0
  335. package/dist/styles/theme/typography.d.ts +29 -0
  336. package/dist/styles/theme/typography.js +1 -0
  337. package/dist/styles/theme/utilities.d.ts +7 -0
  338. package/dist/styles/theme/utilities.js +1 -0
  339. package/dist/styles/useTheme.d.ts +2 -0
  340. package/dist/styles/useTheme.js +1 -0
  341. package/dist/utils/asVariant.d.ts +2 -0
  342. package/dist/utils/asVariant.js +1 -0
  343. package/dist/utils/cn.d.ts +2 -0
  344. package/dist/utils/cn.js +1 -0
  345. package/dist/utils/typedKeys.d.ts +2 -0
  346. package/dist/utils/typedKeys.js +1 -0
  347. package/package.json +257 -0
@@ -0,0 +1,15 @@
1
+ import { JSXElement } from 'solid-js';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import { TypographyProps } from '../Typography';
4
+ import { default as linkDefaultStyles } from './style';
5
+ type LinkVariants = VariantProps<typeof linkDefaultStyles>;
6
+ export type LinkProps = {
7
+ children?: JSXElement;
8
+ class?: string;
9
+ color?: TypographyProps["color"];
10
+ href?: string;
11
+ truncate?: boolean;
12
+ underline?: LinkVariants["underline"];
13
+ } & Omit<TypographyProps<"a">, "variant">;
14
+ declare const Link: (props: LinkProps) => import("solid-js").JSX.Element;
15
+ export default Link;
@@ -0,0 +1 @@
1
+ import e from"../utils/cn.js";import t from"./style.js";import{useThemeContext as n}from"../ThemeProvider/ThemeContext.js";import"../ThemeProvider/index.js";import r from"../Typography/Typography.js";import"../Typography/index.js";import{createComponent as i,mergeProps as a}from"solid-js/web";import{createMemo as o,mergeProps as s,splitProps as c}from"solid-js";var l=l=>{let u=s({color:`default`,underline:`hover`},l),[d,f]=c(u,[`class`,`underline`,`variant`]),p=n(),m=o(()=>{let e={underline:d.underline};return p?p.componentsTV.link(e):t(e)});return i(r,a(f,{as:`a`,variant:`body2`,get class(){return e(m(),d.class)}}))};export{l as default};
@@ -0,0 +1,2 @@
1
+ export { default } from './Link';
2
+ export * from './Link';
@@ -0,0 +1 @@
1
+ import"./Link.js";
@@ -0,0 +1,40 @@
1
+ import { Theme } from '../styles/theme';
2
+ export declare const link: (theme?: Theme) => import('tailwind-variants').TVReturnType<{
3
+ underline: {
4
+ none: "";
5
+ hover: "hover:underline";
6
+ always: "underline";
7
+ };
8
+ }, undefined, string[], {
9
+ underline: {
10
+ none: "";
11
+ hover: "hover:underline";
12
+ always: "underline";
13
+ };
14
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
15
+ underline: {
16
+ none: "";
17
+ hover: "hover:underline";
18
+ always: "underline";
19
+ };
20
+ }, undefined>>;
21
+ declare const _default: import('tailwind-variants').TVReturnType<{
22
+ underline: {
23
+ none: "";
24
+ hover: "hover:underline";
25
+ always: "underline";
26
+ };
27
+ }, undefined, string[], {
28
+ underline: {
29
+ none: "";
30
+ hover: "hover:underline";
31
+ always: "underline";
32
+ };
33
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
34
+ underline: {
35
+ none: "";
36
+ hover: "hover:underline";
37
+ always: "underline";
38
+ };
39
+ }, undefined>>;
40
+ export default _default;
@@ -0,0 +1 @@
1
+ import{n as e}from"../_chunks/dist-C-sN40SQ.js";import t from"../styles/theme/index.js";var n=(n=t)=>e({base:[`block`,n.rounded.small,n.focus],variants:{underline:{none:``,hover:`hover:underline`,always:`underline`}}}),r=n();export{r as default,n as link};
@@ -0,0 +1,21 @@
1
+ import { ComponentProps, JSX } from 'solid-js';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import { ThemeColors } from '../styles/theme/colors';
4
+ import { default as progressDefaultStyles } from './style';
5
+ type ProgressVariants = VariantProps<typeof progressDefaultStyles>;
6
+ type ProgressSlotProps = {
7
+ fill?: {
8
+ style?: JSX.CSSProperties;
9
+ } & Omit<ComponentProps<"span">, "style">;
10
+ };
11
+ export type ProgressProps = {
12
+ class?: string;
13
+ color?: keyof ThemeColors;
14
+ max?: number;
15
+ min?: number;
16
+ value?: number;
17
+ size?: ProgressVariants["size"];
18
+ slotProps?: ProgressSlotProps;
19
+ } & Omit<ComponentProps<"div">, "style">;
20
+ declare const Progress: (props: ProgressProps) => JSX.Element;
21
+ export default Progress;
@@ -0,0 +1 @@
1
+ import e from"../utils/cn.js";import t from"./style.js";import{useThemeContext as n}from"../ThemeProvider/ThemeContext.js";import"../ThemeProvider/index.js";import{mergeProps as r,spread as i,template as a}from"solid-js/web";import{createMemo as o,mergeProps as s,splitProps as c}from"solid-js";var l=a(`<div role=progressbar><span>`),u=a=>{let u=s({color:`default`,max:100,min:0,size:`medium`},a),[d,f]=c(u,[`color`,`class`,`max`,`min`,`slotProps`,`size`,`value`,`children`]),p=n(),m=o(()=>{let e=d.min,t=d.max,n=d.value;return Math.min(100,Math.max(0,(n-e)/(t-e)*100))}),h=o(()=>{let e={color:d.color,size:d.size};return p?p.componentsTV.progress(e):t(e)});return(()=>{var t=l(),n=t.firstChild;return i(t,r({get"aria-valuemax"(){return d.max},get"aria-valuemin"(){return d.min},get"aria-valuenow"(){return d.value}},f,{get class(){return e(h().base(),d.class)}}),!1,!0),i(n,r(()=>d.slotProps?.fill,{get class(){return e(h().fill(),d.slotProps?.fill?.class)},get style(){return{...d.slotProps?.fill?.style,width:`${m()}%`}}}),!1,!1),t})()};export{u as default};
@@ -0,0 +1,2 @@
1
+ export { default } from './Progress';
2
+ export * from './Progress';
@@ -0,0 +1 @@
1
+ import"./Progress.js";
@@ -0,0 +1,112 @@
1
+ import { Theme } from '../styles/theme';
2
+ export declare const progress: (theme?: Theme) => import('tailwind-variants').TVReturnType<{
3
+ color: Record<"default" | "success" | "warning" | "info" | "error", {
4
+ fill: string[];
5
+ }>;
6
+ size: {
7
+ small: {
8
+ base: string;
9
+ };
10
+ medium: {
11
+ base: string;
12
+ };
13
+ large: {
14
+ base: string;
15
+ };
16
+ };
17
+ }, {
18
+ base: string[];
19
+ fill: string[];
20
+ }, undefined, {
21
+ color: Record<"default" | "success" | "warning" | "info" | "error", {
22
+ fill: string[];
23
+ }>;
24
+ size: {
25
+ small: {
26
+ base: string;
27
+ };
28
+ medium: {
29
+ base: string;
30
+ };
31
+ large: {
32
+ base: string;
33
+ };
34
+ };
35
+ }, {
36
+ base: string[];
37
+ fill: string[];
38
+ }, import('tailwind-variants').TVReturnTypeLike<{
39
+ color: Record<"default" | "success" | "warning" | "info" | "error", {
40
+ fill: string[];
41
+ }>;
42
+ size: {
43
+ small: {
44
+ base: string;
45
+ };
46
+ medium: {
47
+ base: string;
48
+ };
49
+ large: {
50
+ base: string;
51
+ };
52
+ };
53
+ }, {
54
+ base: string[];
55
+ fill: string[];
56
+ }>>;
57
+ declare const _default: import('tailwind-variants').TVReturnType<{
58
+ color: Record<"default" | "success" | "warning" | "info" | "error", {
59
+ fill: string[];
60
+ }>;
61
+ size: {
62
+ small: {
63
+ base: string;
64
+ };
65
+ medium: {
66
+ base: string;
67
+ };
68
+ large: {
69
+ base: string;
70
+ };
71
+ };
72
+ }, {
73
+ base: string[];
74
+ fill: string[];
75
+ }, undefined, {
76
+ color: Record<"default" | "success" | "warning" | "info" | "error", {
77
+ fill: string[];
78
+ }>;
79
+ size: {
80
+ small: {
81
+ base: string;
82
+ };
83
+ medium: {
84
+ base: string;
85
+ };
86
+ large: {
87
+ base: string;
88
+ };
89
+ };
90
+ }, {
91
+ base: string[];
92
+ fill: string[];
93
+ }, import('tailwind-variants').TVReturnTypeLike<{
94
+ color: Record<"default" | "success" | "warning" | "info" | "error", {
95
+ fill: string[];
96
+ }>;
97
+ size: {
98
+ small: {
99
+ base: string;
100
+ };
101
+ medium: {
102
+ base: string;
103
+ };
104
+ large: {
105
+ base: string;
106
+ };
107
+ };
108
+ }, {
109
+ base: string[];
110
+ fill: string[];
111
+ }>>;
112
+ export default _default;
@@ -0,0 +1 @@
1
+ import{n as e}from"../_chunks/dist-C-sN40SQ.js";import t from"../styles/theme/index.js";import n from"../utils/asVariant.js";var r=(r=t)=>e({slots:{base:[`block w-full overflow-hidden`,`bg-neutral-300 dark:bg-neutral-700`,r.rounded.small],fill:[`block h-full rounded-[inherit]`,`transition-width duration-150`]},variants:{color:n(r.colors,e=>({fill:[e.solid.background]})),size:{small:{base:`h-1`},medium:{base:`h-2`},large:{base:`h-4`}}}}),i=r();export{i as default,r as progress};
@@ -0,0 +1,19 @@
1
+ import { ComponentProps } from 'solid-js';
2
+ import { IconButtonProps } from '../IconButton';
3
+ type RadioSlotProps = {
4
+ base?: ComponentProps<"span">;
5
+ };
6
+ export type RadioProps = {
7
+ class?: string;
8
+ checked?: boolean;
9
+ color?: IconButtonProps["color"];
10
+ defaultChecked?: boolean;
11
+ disabled?: boolean;
12
+ id?: string;
13
+ onChange?: (event: Event) => void;
14
+ size?: IconButtonProps["size"];
15
+ slotProps?: RadioSlotProps;
16
+ value?: string;
17
+ } & Omit<ComponentProps<"input">, "type">;
18
+ declare const Radio: (props: RadioProps) => import("solid-js").JSX.Element;
19
+ export default Radio;
@@ -0,0 +1 @@
1
+ import e from"../utils/cn.js";import t from"./style.js";import{useThemeContext as n}from"../ThemeProvider/ThemeContext.js";import"../ThemeProvider/index.js";import r from"../IconButton/IconButton.js";import"../IconButton/index.js";import{useRadioGroupContext as i}from"../RadioGroupContext/RadioGroupContext.js";import"../RadioGroupContext/index.js";import a from"../icons/RadioChecked.js";import o from"../icons/RadioUnchecked.js";import{createComponent as s,memo as c,mergeProps as l,spread as u,template as d}from"solid-js/web";import{createMemo as f,createSignal as p,splitProps as m}from"solid-js";var h=d(`<input>`),g=d=>{let[g,_]=m(d,[`checked`,`class`,`color`,`defaultChecked`,`disabled`,`name`,`onChange`,`size`,`slotProps`,`value`,`children`]),v=n(),y=i(),b=typeof g.checked==`boolean`,[x,S]=p(!!g.defaultChecked),C=f(()=>y?y.value()===g.value:b?g.checked:x()),w=e=>{let t=e.target,n=t.checked,r=t.value;!y&&!b&&S(n),g.onChange?.(e),y?.onChange(e,r)},T=f(()=>{let e={checked:C(),disabled:g.disabled};return v?v.componentsTV.radio(e):t(e)});return s(r,l(()=>g.slotProps?.base,{as:`span`,get class(){return e(T().base(),g.slotProps?.base?.class)},get color(){return g.color},get size(){return g.size},get disabled(){return g.disabled},get children(){return[c(()=>c(()=>!!C())()?s(a,{}):s(o,{})),(()=>{var t=h();return u(t,l({get name(){return y?.name?.()??g.name}},_,{type:`radio`,get checked(){return C()},onChange:w,get disabled(){return g.disabled},get value(){return g.value},get class(){return e(T().input(),g.class)}}),!1,!1),t})()]}}))};export{g as default};
@@ -0,0 +1,2 @@
1
+ export { default } from './Radio';
2
+ export * from './Radio';
@@ -0,0 +1 @@
1
+ import"./Radio.js";
@@ -0,0 +1,76 @@
1
+ import { Theme } from '../styles/theme';
2
+ export declare const radio: (theme?: Theme) => import('tailwind-variants').TVReturnType<{
3
+ checked: {
4
+ true: {};
5
+ false: {};
6
+ };
7
+ disabled: {
8
+ true: {};
9
+ false: {};
10
+ };
11
+ }, {
12
+ base: string[];
13
+ input: string;
14
+ }, undefined, {
15
+ checked: {
16
+ true: {};
17
+ false: {};
18
+ };
19
+ disabled: {
20
+ true: {};
21
+ false: {};
22
+ };
23
+ }, {
24
+ base: string[];
25
+ input: string;
26
+ }, import('tailwind-variants').TVReturnTypeLike<{
27
+ checked: {
28
+ true: {};
29
+ false: {};
30
+ };
31
+ disabled: {
32
+ true: {};
33
+ false: {};
34
+ };
35
+ }, {
36
+ base: string[];
37
+ input: string;
38
+ }>>;
39
+ declare const _default: import('tailwind-variants').TVReturnType<{
40
+ checked: {
41
+ true: {};
42
+ false: {};
43
+ };
44
+ disabled: {
45
+ true: {};
46
+ false: {};
47
+ };
48
+ }, {
49
+ base: string[];
50
+ input: string;
51
+ }, undefined, {
52
+ checked: {
53
+ true: {};
54
+ false: {};
55
+ };
56
+ disabled: {
57
+ true: {};
58
+ false: {};
59
+ };
60
+ }, {
61
+ base: string[];
62
+ input: string;
63
+ }, import('tailwind-variants').TVReturnTypeLike<{
64
+ checked: {
65
+ true: {};
66
+ false: {};
67
+ };
68
+ disabled: {
69
+ true: {};
70
+ false: {};
71
+ };
72
+ }, {
73
+ base: string[];
74
+ input: string;
75
+ }>>;
76
+ export default _default;
@@ -0,0 +1 @@
1
+ import{n as e}from"../_chunks/dist-C-sN40SQ.js";import t from"../styles/theme/index.js";var n=(n=t)=>e({slots:{base:[`relative`,n.focusWithin],input:`absolute inset-0 w-full h-full opacity-0 outline-none`},variants:{checked:{true:{},false:{}},disabled:{true:{},false:{}}},compoundVariants:[{checked:!1,disabled:!1,class:{base:[n.typography.colors.textTertiary]}}]}),r=n();export{r as default,n as radio};
@@ -0,0 +1,10 @@
1
+ import { ComponentProps, JSXElement } from 'solid-js';
2
+ export type RadioGroupProps = {
3
+ defaultValue?: string;
4
+ name?: string;
5
+ onChange?: (event: Event, value: string) => void;
6
+ value?: string;
7
+ children?: JSXElement;
8
+ } & Omit<ComponentProps<"div">, "onChange">;
9
+ declare const RadioGroup: (props: RadioGroupProps) => import("solid-js").JSX.Element;
10
+ export default RadioGroup;
@@ -0,0 +1 @@
1
+ import{RadioGroupContext as e}from"../RadioGroupContext/RadioGroupContext.js";import"../RadioGroupContext/index.js";import{createComponent as t,insert as n,mergeProps as r,spread as i,template as a}from"solid-js/web";import{createSignal as o,mergeProps as s,splitProps as c}from"solid-js";var l=a(`<div>`),u=a=>{let u=s({defaultValue:``},a),[d,f]=c(u,[`children`,`value`,`defaultValue`,`name`,`onChange`]),p=d.value!==void 0,[m,h]=o(d.defaultValue),g={name:()=>d.name,value:()=>p?d.value:m(),onChange:(e,t)=>{p||h(t),d.onChange?.(e,t)}};return(()=>{var a=l();return i(a,r(f,{role:`radiogroup`}),!1,!0),n(a,t(e.Provider,{value:g,get children(){return d.children}})),a})()};export{u as default};
@@ -0,0 +1,2 @@
1
+ export { default } from './RadioGroup';
2
+ export * from './RadioGroup';
@@ -0,0 +1 @@
1
+ import"./RadioGroup.js";
@@ -0,0 +1,8 @@
1
+ import { Accessor } from 'solid-js';
2
+ export type RadioGroupContextValue = {
3
+ name?: Accessor<string | undefined>;
4
+ value: Accessor<string>;
5
+ onChange: (event: Event, value: string) => void;
6
+ };
7
+ export declare const RadioGroupContext: import('solid-js').Context<RadioGroupContextValue | undefined>;
8
+ export declare const useRadioGroupContext: () => RadioGroupContextValue | undefined;
@@ -0,0 +1 @@
1
+ import{createContext as e,useContext as t}from"solid-js";var n=e(),r=()=>t(n);export{n as RadioGroupContext,r as useRadioGroupContext};
@@ -0,0 +1 @@
1
+ export * from './RadioGroupContext';
@@ -0,0 +1 @@
1
+ import"./RadioGroupContext.js";
@@ -0,0 +1,22 @@
1
+ import { ComponentProps } from 'solid-js';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import { ThemeColors } from '../styles/theme/colors';
4
+ import { default as selectDefaultStyles } from './style';
5
+ type SelectVariants = VariantProps<typeof selectDefaultStyles>;
6
+ export type SelectOption = {
7
+ label: string;
8
+ value: string;
9
+ disabled?: boolean;
10
+ };
11
+ export type SelectProps = {
12
+ class?: string;
13
+ color?: keyof ThemeColors;
14
+ disabled?: boolean;
15
+ fullWidth?: boolean;
16
+ onChange?: (event: InputEvent) => void;
17
+ options?: SelectOption[];
18
+ size?: SelectVariants["size"];
19
+ variant?: SelectVariants["variant"];
20
+ } & Omit<ComponentProps<"select">, "multiple" | "onChange">;
21
+ declare const Select: (props: SelectProps) => import("solid-js").JSX.Element;
22
+ export default Select;
@@ -0,0 +1 @@
1
+ import e from"../utils/cn.js";import t from"./style.js";import{useThemeContext as n}from"../ThemeProvider/ThemeContext.js";import"../ThemeProvider/index.js";import{createComponent as r,effect as i,insert as a,mergeProps as o,spread as s,template as c}from"solid-js/web";import{For as l,createMemo as u,mergeProps as d,splitProps as f}from"solid-js";var p=c(`<select>`),m=c(`<option>`),h=c=>{let h=d({color:`default`,disabled:!1,variant:`outlined`,size:`medium`},c),[g,_]=f(h,[`class`,`color`,`disabled`,`fullWidth`,`options`,`size`,`variant`,`children`,`multiple`]),v=n(),y=u(()=>{let e={color:g.color,disabled:g.disabled,fullWidth:g.fullWidth,size:g.size,variant:g.variant};return v?v.componentsTV.select(e):t(e)}),b=u(()=>g.options??[]);return(()=>{var t=p();return s(t,o(_,{multiple:!1,get disabled(){return g.disabled},get class(){return e(y(),g.class)}}),!1,!0),a(t,r(l,{get each(){return b()},children:e=>(()=>{var t=m();return a(t,()=>e.label),i(()=>t.disabled=e.disabled),i(()=>t.value=e.value),t})()})),t})()};export{h as default};
@@ -0,0 +1,2 @@
1
+ export { default } from './Select';
2
+ export * from './Select';
@@ -0,0 +1 @@
1
+ import"./Select.js";
@@ -0,0 +1,124 @@
1
+ import { Theme } from '../styles/theme';
2
+ export declare const select: (theme?: Theme) => import('tailwind-variants').TVReturnType<{
3
+ color: Record<"default" | "success" | "warning" | "info" | "error", string>;
4
+ disabled: {
5
+ true: "";
6
+ false: "";
7
+ };
8
+ variant: {
9
+ filled: "";
10
+ ghost: "";
11
+ outlined: "border border-1";
12
+ };
13
+ size: {
14
+ small: "py-1 px-1.5 h-6 text-sm";
15
+ medium: "py-1 px-1.5 h-8 text-sm";
16
+ large: "py-1.5 px-2 h-10 text-md";
17
+ };
18
+ fullWidth: {
19
+ true: "w-full";
20
+ false: "";
21
+ };
22
+ }, undefined, string[], {
23
+ color: Record<"default" | "success" | "warning" | "info" | "error", string>;
24
+ disabled: {
25
+ true: "";
26
+ false: "";
27
+ };
28
+ variant: {
29
+ filled: "";
30
+ ghost: "";
31
+ outlined: "border border-1";
32
+ };
33
+ size: {
34
+ small: "py-1 px-1.5 h-6 text-sm";
35
+ medium: "py-1 px-1.5 h-8 text-sm";
36
+ large: "py-1.5 px-2 h-10 text-md";
37
+ };
38
+ fullWidth: {
39
+ true: "w-full";
40
+ false: "";
41
+ };
42
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
43
+ color: Record<"default" | "success" | "warning" | "info" | "error", string>;
44
+ disabled: {
45
+ true: "";
46
+ false: "";
47
+ };
48
+ variant: {
49
+ filled: "";
50
+ ghost: "";
51
+ outlined: "border border-1";
52
+ };
53
+ size: {
54
+ small: "py-1 px-1.5 h-6 text-sm";
55
+ medium: "py-1 px-1.5 h-8 text-sm";
56
+ large: "py-1.5 px-2 h-10 text-md";
57
+ };
58
+ fullWidth: {
59
+ true: "w-full";
60
+ false: "";
61
+ };
62
+ }, undefined>>;
63
+ declare const _default: import('tailwind-variants').TVReturnType<{
64
+ color: Record<"default" | "success" | "warning" | "info" | "error", string>;
65
+ disabled: {
66
+ true: "";
67
+ false: "";
68
+ };
69
+ variant: {
70
+ filled: "";
71
+ ghost: "";
72
+ outlined: "border border-1";
73
+ };
74
+ size: {
75
+ small: "py-1 px-1.5 h-6 text-sm";
76
+ medium: "py-1 px-1.5 h-8 text-sm";
77
+ large: "py-1.5 px-2 h-10 text-md";
78
+ };
79
+ fullWidth: {
80
+ true: "w-full";
81
+ false: "";
82
+ };
83
+ }, undefined, string[], {
84
+ color: Record<"default" | "success" | "warning" | "info" | "error", string>;
85
+ disabled: {
86
+ true: "";
87
+ false: "";
88
+ };
89
+ variant: {
90
+ filled: "";
91
+ ghost: "";
92
+ outlined: "border border-1";
93
+ };
94
+ size: {
95
+ small: "py-1 px-1.5 h-6 text-sm";
96
+ medium: "py-1 px-1.5 h-8 text-sm";
97
+ large: "py-1.5 px-2 h-10 text-md";
98
+ };
99
+ fullWidth: {
100
+ true: "w-full";
101
+ false: "";
102
+ };
103
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
104
+ color: Record<"default" | "success" | "warning" | "info" | "error", string>;
105
+ disabled: {
106
+ true: "";
107
+ false: "";
108
+ };
109
+ variant: {
110
+ filled: "";
111
+ ghost: "";
112
+ outlined: "border border-1";
113
+ };
114
+ size: {
115
+ small: "py-1 px-1.5 h-6 text-sm";
116
+ medium: "py-1 px-1.5 h-8 text-sm";
117
+ large: "py-1.5 px-2 h-10 text-md";
118
+ };
119
+ fullWidth: {
120
+ true: "w-full";
121
+ false: "";
122
+ };
123
+ }, undefined>>;
124
+ export default _default;
@@ -0,0 +1 @@
1
+ import{n as e}from"../_chunks/dist-C-sN40SQ.js";import t from"../styles/theme/index.js";import n from"../utils/asVariant.js";import r from"../utils/typedKeys.js";var i=[`filled`,`outlined`,`ghost`],a=(a=t)=>e({base:[`border-0 outline-0`,a.rounded.small,a.focus],variants:{color:n(a.colors,()=>``),disabled:{true:``,false:``},variant:{filled:``,ghost:``,outlined:`border border-1`},size:{small:`py-1 px-1.5 h-6 text-sm`,medium:`py-1 px-1.5 h-8 text-sm`,large:`py-1.5 px-2 h-10 text-md`},fullWidth:{true:`w-full`,false:``}},compoundVariants:[...r(a.colors).flatMap(e=>i.flatMap(t=>{let n=a.colors[e][t];return[{color:e,variant:t,disabled:!1,class:[n.background,n.border,n.text]},{color:e,variant:t,disabled:!0,class:[t===`filled`?a.disabled.background:``,t===`outlined`?a.disabled.border:``,a.disabled.text]}]}))]}),o=a();export{o as default,a as select};
@@ -0,0 +1,9 @@
1
+ import { ComponentProps, ParentProps } from 'solid-js';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import { default as skeletonDefaultStyles } from './style';
4
+ type SkeletonVariants = VariantProps<typeof skeletonDefaultStyles>;
5
+ export type SkeletonProps = {
6
+ variant?: SkeletonVariants["variant"];
7
+ } & ComponentProps<"span">;
8
+ declare const Skeleton: (props: ParentProps<SkeletonProps>) => import("solid-js").JSX.Element;
9
+ export default Skeleton;
@@ -0,0 +1 @@
1
+ import e from"../utils/cn.js";import t from"./style.js";import{useThemeContext as n}from"../ThemeProvider/ThemeContext.js";import"../ThemeProvider/index.js";import{mergeProps as r,spread as i,template as a}from"solid-js/web";import{createMemo as o,mergeProps as s,splitProps as c}from"solid-js";var l=a(`<span>`),u=a=>{let u=s({variant:`rectangle`},a),[d,f]=c(u,[`children`,`class`,`variant`]),p=n(),m=o(()=>{let e={variant:d.variant};return p?p.componentsTV.skeleton(e):t(e)});return(()=>{var t=l();return i(t,r(f,{get class(){return e(m(),d.class)}}),!1,!1),t})()};export{u as default};
@@ -0,0 +1,2 @@
1
+ export { default } from './Skeleton';
2
+ export * from './Skeleton';
@@ -0,0 +1 @@
1
+ import"./Skeleton.js";
@@ -0,0 +1,34 @@
1
+ import { Theme } from '../styles/theme';
2
+ export declare const skeleton: (theme?: Theme) => import('tailwind-variants').TVReturnType<{
3
+ variant: {
4
+ circle: string[];
5
+ rectangle: string[];
6
+ };
7
+ }, undefined, string[], {
8
+ variant: {
9
+ circle: string[];
10
+ rectangle: string[];
11
+ };
12
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
13
+ variant: {
14
+ circle: string[];
15
+ rectangle: string[];
16
+ };
17
+ }, undefined>>;
18
+ declare const _default: import('tailwind-variants').TVReturnType<{
19
+ variant: {
20
+ circle: string[];
21
+ rectangle: string[];
22
+ };
23
+ }, undefined, string[], {
24
+ variant: {
25
+ circle: string[];
26
+ rectangle: string[];
27
+ };
28
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
29
+ variant: {
30
+ circle: string[];
31
+ rectangle: string[];
32
+ };
33
+ }, undefined>>;
34
+ export default _default;
@@ -0,0 +1 @@
1
+ import{n as e}from"../_chunks/dist-C-sN40SQ.js";import t from"../styles/theme/index.js";var n=(n=t)=>e({base:[`bg-neutral-200 dark:bg-neutral-800`,`shrink-0`,`animate-[fade_2.5s_ease-in-out_infinite]`],variants:{variant:{circle:[`inline-block size-8`,n.rounded.full],rectangle:[`block w-full h-4`,n.rounded.small]}}}),r=n();export{r as default,n as skeleton};
@@ -0,0 +1,13 @@
1
+ import { ComponentProps } from 'solid-js';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import { ThemeColors } from '../styles/theme/colors';
4
+ import { default as spinnerDefaultStyles } from './style';
5
+ type SpinnerVariants = VariantProps<typeof spinnerDefaultStyles>;
6
+ type SpinnerProps = {
7
+ class?: string;
8
+ color?: keyof ThemeColors;
9
+ label?: string;
10
+ size?: SpinnerVariants["size"];
11
+ } & ComponentProps<"span">;
12
+ export declare const Spinner: (props: SpinnerProps) => import("solid-js").JSX.Element;
13
+ export default Spinner;
@@ -0,0 +1 @@
1
+ import e from"../utils/cn.js";import t from"./style.js";import{useThemeContext as n}from"../ThemeProvider/ThemeContext.js";import"../ThemeProvider/index.js";import{effect as r,insert as i,mergeProps as a,setAttribute as o,spread as s,template as c}from"solid-js/web";import{createMemo as l,createUniqueId as u,mergeProps as d,splitProps as f}from"solid-js";var p=c(`<span role=status><svg viewBox="0 0 24 24"fill=none><circle cx=12 cy=12 r=9 stroke=currentColor stroke-width=3 opacity=0.45></circle><path d="M21 12a9 9 0 0 0-9-9"stroke=currentColor stroke-width=3 stroke-linecap=round></path></svg><span class=sr-only>`),m=c=>{let m=d({color:`default`,size:`medium`},c),[h,g]=f(m,[`class`,`color`,`label`,`size`,`children`]),_=n(),v=u(),y=l(()=>{let e={color:h.color,size:h.size};return _?_.componentsTV.spinner(e):t(e)});return(()=>{var t=p(),n=t.firstChild,c=n.nextSibling;return s(t,a(g,{"aria-labelledby":v,get class(){return e(y().base(),h.class)}}),!1,!0),o(n,`aria-hidden`,!0),o(c,`id`,v),i(c,()=>h.label??`Loading`),r(()=>o(n,`class`,e(y().svg()))),t})()};export{m as Spinner,m as default};
@@ -0,0 +1,2 @@
1
+ export { default } from './Spinner';
2
+ export * from './Spinner';
@@ -0,0 +1 @@
1
+ import"./Spinner.js";