cetec-design-system 0.0.2

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 (528) hide show
  1. package/.github/CODEOWNERS +1 -0
  2. package/.husky/task-runner.json +10 -0
  3. package/.nvmrc +1 -0
  4. package/.prettierrc +8 -0
  5. package/.storybook/main.ts +18 -0
  6. package/.storybook/preview-body.html +0 -0
  7. package/.storybook/preview-head.tsx +1 -0
  8. package/.storybook/preview.tsx +21 -0
  9. package/LICENSE.md +21 -0
  10. package/README.md +50 -0
  11. package/eslint.config.js +50 -0
  12. package/index.html +13 -0
  13. package/package.json +69 -0
  14. package/panda.config.ts +201 -0
  15. package/postcss.config.cjs +5 -0
  16. package/public/sprite.svg +1 -0
  17. package/public/sprite.symbol.html +4091 -0
  18. package/public/svgs/Building.svg +1 -0
  19. package/public/svgs/aa-placeholder.svg +1 -0
  20. package/public/svgs/alarm.svg +1 -0
  21. package/public/svgs/apps.svg +1 -0
  22. package/public/svgs/arrow-down.svg +1 -0
  23. package/public/svgs/arrow-drop-down.svg +1 -0
  24. package/public/svgs/arrow-drop-up.svg +1 -0
  25. package/public/svgs/arrow-left.svg +1 -0
  26. package/public/svgs/arrow-line-down.svg +1 -0
  27. package/public/svgs/arrow-line-left.svg +1 -0
  28. package/public/svgs/arrow-line-right.svg +1 -0
  29. package/public/svgs/arrow-line-up.svg +1 -0
  30. package/public/svgs/arrow-prompt.svg +1 -0
  31. package/public/svgs/arrow-redo.svg +1 -0
  32. package/public/svgs/arrow-right.svg +1 -0
  33. package/public/svgs/arrow-square-in.svg +1 -0
  34. package/public/svgs/arrow-square-out.svg +1 -0
  35. package/public/svgs/arrow-undo.svg +1 -0
  36. package/public/svgs/arrow-up.svg +1 -0
  37. package/public/svgs/arrows-down-up.svg +1 -0
  38. package/public/svgs/arrows-left-right.svg +1 -0
  39. package/public/svgs/at.svg +1 -0
  40. package/public/svgs/attachment.svg +1 -0
  41. package/public/svgs/barcode-reader.svg +1 -0
  42. package/public/svgs/barcode.svg +1 -0
  43. package/public/svgs/basket.svg +1 -0
  44. package/public/svgs/bell-active.svg +1 -0
  45. package/public/svgs/bell-slash.svg +1 -0
  46. package/public/svgs/bell.svg +1 -0
  47. package/public/svgs/bin.svg +1 -0
  48. package/public/svgs/bookmark-outlined.svg +1 -0
  49. package/public/svgs/bookmark.svg +1 -0
  50. package/public/svgs/bookmarks.svg +1 -0
  51. package/public/svgs/calendar-add.svg +1 -0
  52. package/public/svgs/calendar-view-day.svg +1 -0
  53. package/public/svgs/calendar-view-month.svg +1 -0
  54. package/public/svgs/calendar-view-week.svg +1 -0
  55. package/public/svgs/calendar.svg +1 -0
  56. package/public/svgs/caret-down.svg +1 -0
  57. package/public/svgs/caret-left.svg +1 -0
  58. package/public/svgs/caret-right.svg +1 -0
  59. package/public/svgs/caret-up.svg +1 -0
  60. package/public/svgs/cart.svg +1 -0
  61. package/public/svgs/check-thick.svg +1 -0
  62. package/public/svgs/check.svg +1 -0
  63. package/public/svgs/checkbox-checked.svg +1 -0
  64. package/public/svgs/checkbox-focus.svg +1 -0
  65. package/public/svgs/checkbox-indeterminate.svg +1 -0
  66. package/public/svgs/checkbox.svg +1 -0
  67. package/public/svgs/circle-check.svg +1 -0
  68. package/public/svgs/circle.svg +1 -0
  69. package/public/svgs/circles-add.svg +1 -0
  70. package/public/svgs/clipboard.svg +1 -0
  71. package/public/svgs/clock-countdown.svg +1 -0
  72. package/public/svgs/clock.svg +1 -0
  73. package/public/svgs/cloud-synced.svg +1 -0
  74. package/public/svgs/code.svg +1 -0
  75. package/public/svgs/color.svg +1 -0
  76. package/public/svgs/copy.svg +1 -0
  77. package/public/svgs/credit-card.svg +1 -0
  78. package/public/svgs/cut.svg +1 -0
  79. package/public/svgs/database.svg +1 -0
  80. package/public/svgs/devices.svg +1 -0
  81. package/public/svgs/dictionary.svg +1 -0
  82. package/public/svgs/dots.svg +1 -0
  83. package/public/svgs/download-cloud.svg +1 -0
  84. package/public/svgs/download.svg +1 -0
  85. package/public/svgs/dragger.svg +1 -0
  86. package/public/svgs/edit.svg +1 -0
  87. package/public/svgs/encrypted.svg +1 -0
  88. package/public/svgs/envelope.svg +1 -0
  89. package/public/svgs/equal.svg +1 -0
  90. package/public/svgs/eraser.svg +1 -0
  91. package/public/svgs/error.svg +1 -0
  92. package/public/svgs/event-list.svg +1 -0
  93. package/public/svgs/export.svg +1 -0
  94. package/public/svgs/extension.svg +1 -0
  95. package/public/svgs/eye-slash.svg +1 -0
  96. package/public/svgs/eye.svg +1 -0
  97. package/public/svgs/file-add.svg +1 -0
  98. package/public/svgs/file.svg +1 -0
  99. package/public/svgs/files.svg +1 -0
  100. package/public/svgs/filter-remove.svg +1 -0
  101. package/public/svgs/filter.svg +1 -0
  102. package/public/svgs/finish.svg +1 -0
  103. package/public/svgs/flag.svg +1 -0
  104. package/public/svgs/forklift.svg +1 -0
  105. package/public/svgs/garage.svg +1 -0
  106. package/public/svgs/globe.svg +1 -0
  107. package/public/svgs/hash.svg +1 -0
  108. package/public/svgs/heart-outlined.svg +1 -0
  109. package/public/svgs/heart.svg +1 -0
  110. package/public/svgs/help.svg +1 -0
  111. package/public/svgs/history.svg +1 -0
  112. package/public/svgs/home.svg +1 -0
  113. package/public/svgs/image.svg +1 -0
  114. package/public/svgs/images.svg +1 -0
  115. package/public/svgs/inbox.svg +1 -0
  116. package/public/svgs/infinity.svg +1 -0
  117. package/public/svgs/info.svg +1 -0
  118. package/public/svgs/inventory.svg +1 -0
  119. package/public/svgs/invoice.svg +1 -0
  120. package/public/svgs/jump-back.svg +1 -0
  121. package/public/svgs/jump-forward.svg +1 -0
  122. package/public/svgs/kbd-backspace.svg +1 -0
  123. package/public/svgs/kbd-capslock.svg +1 -0
  124. package/public/svgs/kbd-command.svg +1 -0
  125. package/public/svgs/kbd-control.svg +1 -0
  126. package/public/svgs/kbd-hide.svg +1 -0
  127. package/public/svgs/kbd-option.svg +1 -0
  128. package/public/svgs/kbd-return.svg +1 -0
  129. package/public/svgs/kbd-shift.svg +1 -0
  130. package/public/svgs/kbd-space.svg +1 -0
  131. package/public/svgs/kbd.svg +1 -0
  132. package/public/svgs/link-slash.svg +1 -0
  133. package/public/svgs/link.svg +1 -0
  134. package/public/svgs/list-bullets.svg +1 -0
  135. package/public/svgs/list-checks.svg +1 -0
  136. package/public/svgs/list-numbers.svg +1 -0
  137. package/public/svgs/lock-open.svg +1 -0
  138. package/public/svgs/lock.svg +1 -0
  139. package/public/svgs/map-pin.svg +1 -0
  140. package/public/svgs/mark-unread.svg +1 -0
  141. package/public/svgs/menu-close.svg +1 -0
  142. package/public/svgs/menu.svg +1 -0
  143. package/public/svgs/message.svg +1 -0
  144. package/public/svgs/messages.svg +1 -0
  145. package/public/svgs/minus-thick.svg +1 -0
  146. package/public/svgs/minus.svg +1 -0
  147. package/public/svgs/money.svg +1 -0
  148. package/public/svgs/monitor.svg +1 -0
  149. package/public/svgs/moon.svg +1 -0
  150. package/public/svgs/note.svg +1 -0
  151. package/public/svgs/nut.svg +1 -0
  152. package/public/svgs/order.svg +1 -0
  153. package/public/svgs/package.svg +1 -0
  154. package/public/svgs/page-first.svg +1 -0
  155. package/public/svgs/page-last.svg +1 -0
  156. package/public/svgs/parts.svg +1 -0
  157. package/public/svgs/password.svg +1 -0
  158. package/public/svgs/pause.svg +1 -0
  159. package/public/svgs/pencil.svg +1 -0
  160. package/public/svgs/percent.svg +1 -0
  161. package/public/svgs/placeholder.svg +1 -0
  162. package/public/svgs/plan.svg +1 -0
  163. package/public/svgs/play-pause.svg +1 -0
  164. package/public/svgs/play.svg +1 -0
  165. package/public/svgs/plus.svg +1 -0
  166. package/public/svgs/printer.svg +1 -0
  167. package/public/svgs/prohibit.svg +1 -0
  168. package/public/svgs/question-mark.svg +1 -0
  169. package/public/svgs/quote.svg +1 -0
  170. package/public/svgs/radio-checked.svg +1 -0
  171. package/public/svgs/radio-focus.svg +1 -0
  172. package/public/svgs/radio.svg +1 -0
  173. package/public/svgs/receipt.svg +1 -0
  174. package/public/svgs/refresh.svg +1 -0
  175. package/public/svgs/repeat.svg +1 -0
  176. package/public/svgs/reply-all.svg +1 -0
  177. package/public/svgs/reply.svg +1 -0
  178. package/public/svgs/ribbon.svg +1 -0
  179. package/public/svgs/rows-add.svg +1 -0
  180. package/public/svgs/rules.svg +1 -0
  181. package/public/svgs/search-items.svg +1 -0
  182. package/public/svgs/search.svg +1 -0
  183. package/public/svgs/send.svg +1 -0
  184. package/public/svgs/settings.svg +1 -0
  185. package/public/svgs/share.svg +1 -0
  186. package/public/svgs/shuffle.svg +1 -0
  187. package/public/svgs/skip-back.svg +1 -0
  188. package/public/svgs/skip-forward.svg +1 -0
  189. package/public/svgs/skull.svg +1 -0
  190. package/public/svgs/sliders.svg +1 -0
  191. package/public/svgs/sort-alpha-down.svg +1 -0
  192. package/public/svgs/sort-alpha-up.svg +1 -0
  193. package/public/svgs/sort-ascending.svg +1 -0
  194. package/public/svgs/sort-descending.svg +1 -0
  195. package/public/svgs/sort-time-down.svg +1 -0
  196. package/public/svgs/sort-time-up.svg +1 -0
  197. package/public/svgs/square-add.svg +1 -0
  198. package/public/svgs/square.svg +1 -0
  199. package/public/svgs/stamp.svg +1 -0
  200. package/public/svgs/star-outlined.svg +1 -0
  201. package/public/svgs/star.svg +1 -0
  202. package/public/svgs/start.svg +1 -0
  203. package/public/svgs/stop.svg +1 -0
  204. package/public/svgs/success.svg +1 -0
  205. package/public/svgs/sun.svg +1 -0
  206. package/public/svgs/support.svg +1 -0
  207. package/public/svgs/sync.svg +1 -0
  208. package/public/svgs/tag.svg +1 -0
  209. package/public/svgs/target.svg +1 -0
  210. package/public/svgs/text-add.svg +1 -0
  211. package/public/svgs/time-add.svg +1 -0
  212. package/public/svgs/timer.svg +1 -0
  213. package/public/svgs/toolbox.svg +1 -0
  214. package/public/svgs/tools.svg +1 -0
  215. package/public/svgs/trash.svg +1 -0
  216. package/public/svgs/trophy.svg +1 -0
  217. package/public/svgs/truck-trailer.svg +1 -0
  218. package/public/svgs/update.svg +1 -0
  219. package/public/svgs/upload-cloud.svg +1 -0
  220. package/public/svgs/upload.svg +1 -0
  221. package/public/svgs/user-add.svg +1 -0
  222. package/public/svgs/user-details.svg +1 -0
  223. package/public/svgs/user-group.svg +1 -0
  224. package/public/svgs/user-id-badge.svg +1 -0
  225. package/public/svgs/user-id-card.svg +1 -0
  226. package/public/svgs/user.svg +1 -0
  227. package/public/svgs/verified.svg +1 -0
  228. package/public/svgs/video.svg +1 -0
  229. package/public/svgs/view-cards.svg +1 -0
  230. package/public/svgs/view-doc.svg +1 -0
  231. package/public/svgs/view-grid.svg +1 -0
  232. package/public/svgs/view-rows.svg +1 -0
  233. package/public/svgs/view-table.svg +1 -0
  234. package/public/svgs/warning.svg +1 -0
  235. package/public/svgs/work-order.svg +1 -0
  236. package/public/svgs/x.svg +1 -0
  237. package/public/vite.svg +1 -0
  238. package/src/App.tsx +429 -0
  239. package/src/components/Box/Box.tsx +26 -0
  240. package/src/components/Box/index.tsx +1 -0
  241. package/src/components/Button/Button.stories.tsx +129 -0
  242. package/src/components/Button/Button.tsx +45 -0
  243. package/src/components/Button/ButtonContent.tsx +32 -0
  244. package/src/components/Button/index.tsx +1 -0
  245. package/src/components/CheckBox/CheckBox.tsx +37 -0
  246. package/src/components/CheckBox/index.tsx +1 -0
  247. package/src/components/Code/Code.tsx +35 -0
  248. package/src/components/Code/Pre.tsx +35 -0
  249. package/src/components/Code/copy-to-clipboard-button.tsx +41 -0
  250. package/src/components/Code/index.tsx +2 -0
  251. package/src/components/Divider/Divider.tsx +26 -0
  252. package/src/components/Divider/index.tsx +1 -0
  253. package/src/components/Heading/Heading.tsx +33 -0
  254. package/src/components/Heading/index.tsx +1 -0
  255. package/src/components/Icon/Icon.stories.tsx +31 -0
  256. package/src/components/Icon/Icon.tsx +46 -0
  257. package/src/components/Icon/iconNames.ts +219 -0
  258. package/src/components/Icon/icons.d.ts +1 -0
  259. package/src/components/Icon/index.tsx +3 -0
  260. package/src/components/IconButton/IconButton.tsx +58 -0
  261. package/src/components/IconButton/index.tsx +1 -0
  262. package/src/components/Input/Input.tsx +42 -0
  263. package/src/components/Input/index.tsx +1 -0
  264. package/src/components/Label/Label.tsx +33 -0
  265. package/src/components/Label/index.tsx +1 -0
  266. package/src/components/Link/Link.tsx +54 -0
  267. package/src/components/Link/index.tsx +1 -0
  268. package/src/components/PandaPatterns.tsx +23 -0
  269. package/src/components/Radio/Radio.tsx +28 -0
  270. package/src/components/Radio/index.tsx +1 -0
  271. package/src/components/Slot.tsx +16 -0
  272. package/src/components/Spinner/Spinner.tsx +22 -0
  273. package/src/components/Spinner/index.tsx +1 -0
  274. package/src/components/Text/Text.stories.tsx +106 -0
  275. package/src/components/Text/Text.tsx +39 -0
  276. package/src/components/Text/index.tsx +1 -0
  277. package/src/components/Textarea/Textarea.tsx +46 -0
  278. package/src/components/Textarea/index.tsx +1 -0
  279. package/src/components/ThemeSwitcher/ThemeSwitcher.tsx +20 -0
  280. package/src/components/ThemeSwitcher/index.tsx +1 -0
  281. package/src/contexts/ThemeContext.tsx +77 -0
  282. package/src/index.ts +64 -0
  283. package/src/main.tsx +10 -0
  284. package/src/recipes/box.ts +16 -0
  285. package/src/recipes/button.ts +220 -0
  286. package/src/recipes/checkbox.ts +88 -0
  287. package/src/recipes/code.ts +37 -0
  288. package/src/recipes/divider.ts +40 -0
  289. package/src/recipes/index.ts +10 -0
  290. package/src/recipes/input.ts +56 -0
  291. package/src/recipes/radio.ts +71 -0
  292. package/src/recipes/spinner.ts +42 -0
  293. package/src/recipes/text.ts +185 -0
  294. package/src/recipes/textarea.ts +77 -0
  295. package/src/storybook/Tokens.mdx +169 -0
  296. package/src/storybook/components/Colors.tsx +78 -0
  297. package/src/storybook/doctemplate.mdx +36 -0
  298. package/src/storybook/intro.mdx +15 -0
  299. package/src/styles/conditions.ts +108 -0
  300. package/src/styles/font-imports.css +35 -0
  301. package/src/styles/globalStyle.ts +85 -0
  302. package/src/styles/index.css +3 -0
  303. package/src/styles/semanticTokens.ts +110 -0
  304. package/src/styles/tokens.ts +580 -0
  305. package/src/utils/forwardRefWithAs.ts +26 -0
  306. package/src/utils/generate-sprite.js +174 -0
  307. package/src/utils/splitProps.ts +11 -0
  308. package/src/utils/sprite-config.js +25 -0
  309. package/src/utils/svgsSource/Building.svg +3 -0
  310. package/src/utils/svgsSource/aa-placeholder.svg +3 -0
  311. package/src/utils/svgsSource/alarm.svg +3 -0
  312. package/src/utils/svgsSource/apps.svg +3 -0
  313. package/src/utils/svgsSource/arrow-down.svg +3 -0
  314. package/src/utils/svgsSource/arrow-drop-down.svg +3 -0
  315. package/src/utils/svgsSource/arrow-drop-up.svg +3 -0
  316. package/src/utils/svgsSource/arrow-left.svg +3 -0
  317. package/src/utils/svgsSource/arrow-line-down.svg +3 -0
  318. package/src/utils/svgsSource/arrow-line-left.svg +3 -0
  319. package/src/utils/svgsSource/arrow-line-right.svg +3 -0
  320. package/src/utils/svgsSource/arrow-line-up.svg +3 -0
  321. package/src/utils/svgsSource/arrow-prompt.svg +3 -0
  322. package/src/utils/svgsSource/arrow-redo.svg +3 -0
  323. package/src/utils/svgsSource/arrow-right.svg +3 -0
  324. package/src/utils/svgsSource/arrow-square-in.svg +4 -0
  325. package/src/utils/svgsSource/arrow-square-out.svg +4 -0
  326. package/src/utils/svgsSource/arrow-undo.svg +3 -0
  327. package/src/utils/svgsSource/arrow-up.svg +3 -0
  328. package/src/utils/svgsSource/arrows-down-up.svg +3 -0
  329. package/src/utils/svgsSource/arrows-left-right.svg +3 -0
  330. package/src/utils/svgsSource/at.svg +3 -0
  331. package/src/utils/svgsSource/attachment.svg +3 -0
  332. package/src/utils/svgsSource/barcode-reader.svg +3 -0
  333. package/src/utils/svgsSource/barcode.svg +10 -0
  334. package/src/utils/svgsSource/basket.svg +6 -0
  335. package/src/utils/svgsSource/bell-active.svg +3 -0
  336. package/src/utils/svgsSource/bell-slash.svg +3 -0
  337. package/src/utils/svgsSource/bell.svg +3 -0
  338. package/src/utils/svgsSource/bin.svg +3 -0
  339. package/src/utils/svgsSource/bookmark-outlined.svg +3 -0
  340. package/src/utils/svgsSource/bookmark.svg +3 -0
  341. package/src/utils/svgsSource/bookmarks.svg +3 -0
  342. package/src/utils/svgsSource/calendar-add.svg +3 -0
  343. package/src/utils/svgsSource/calendar-view-day.svg +3 -0
  344. package/src/utils/svgsSource/calendar-view-month.svg +3 -0
  345. package/src/utils/svgsSource/calendar-view-week.svg +3 -0
  346. package/src/utils/svgsSource/calendar.svg +3 -0
  347. package/src/utils/svgsSource/caret-down.svg +3 -0
  348. package/src/utils/svgsSource/caret-left.svg +3 -0
  349. package/src/utils/svgsSource/caret-right.svg +3 -0
  350. package/src/utils/svgsSource/caret-up.svg +3 -0
  351. package/src/utils/svgsSource/cart.svg +3 -0
  352. package/src/utils/svgsSource/check-thick.svg +3 -0
  353. package/src/utils/svgsSource/check.svg +3 -0
  354. package/src/utils/svgsSource/checkbox-checked.svg +3 -0
  355. package/src/utils/svgsSource/checkbox-focus.svg +3 -0
  356. package/src/utils/svgsSource/checkbox-indeterminate.svg +3 -0
  357. package/src/utils/svgsSource/checkbox.svg +3 -0
  358. package/src/utils/svgsSource/circle-check.svg +3 -0
  359. package/src/utils/svgsSource/circle.svg +3 -0
  360. package/src/utils/svgsSource/circles-add.svg +3 -0
  361. package/src/utils/svgsSource/clipboard.svg +3 -0
  362. package/src/utils/svgsSource/clock-countdown.svg +3 -0
  363. package/src/utils/svgsSource/clock.svg +3 -0
  364. package/src/utils/svgsSource/cloud-synced.svg +3 -0
  365. package/src/utils/svgsSource/code.svg +3 -0
  366. package/src/utils/svgsSource/color.svg +3 -0
  367. package/src/utils/svgsSource/copy.svg +4 -0
  368. package/src/utils/svgsSource/credit-card.svg +3 -0
  369. package/src/utils/svgsSource/cut.svg +3 -0
  370. package/src/utils/svgsSource/database.svg +3 -0
  371. package/src/utils/svgsSource/devices.svg +3 -0
  372. package/src/utils/svgsSource/dictionary.svg +3 -0
  373. package/src/utils/svgsSource/dots.svg +3 -0
  374. package/src/utils/svgsSource/download-cloud.svg +3 -0
  375. package/src/utils/svgsSource/download.svg +3 -0
  376. package/src/utils/svgsSource/dragger.svg +3 -0
  377. package/src/utils/svgsSource/edit.svg +3 -0
  378. package/src/utils/svgsSource/encrypted.svg +3 -0
  379. package/src/utils/svgsSource/envelope.svg +3 -0
  380. package/src/utils/svgsSource/equal.svg +3 -0
  381. package/src/utils/svgsSource/eraser.svg +3 -0
  382. package/src/utils/svgsSource/error.svg +3 -0
  383. package/src/utils/svgsSource/event-list.svg +3 -0
  384. package/src/utils/svgsSource/export.svg +4 -0
  385. package/src/utils/svgsSource/extension.svg +3 -0
  386. package/src/utils/svgsSource/eye-slash.svg +3 -0
  387. package/src/utils/svgsSource/eye.svg +3 -0
  388. package/src/utils/svgsSource/file-add.svg +3 -0
  389. package/src/utils/svgsSource/file.svg +3 -0
  390. package/src/utils/svgsSource/files.svg +3 -0
  391. package/src/utils/svgsSource/filter-remove.svg +6 -0
  392. package/src/utils/svgsSource/filter.svg +5 -0
  393. package/src/utils/svgsSource/finish.svg +3 -0
  394. package/src/utils/svgsSource/flag.svg +3 -0
  395. package/src/utils/svgsSource/forklift.svg +3 -0
  396. package/src/utils/svgsSource/garage.svg +3 -0
  397. package/src/utils/svgsSource/globe.svg +3 -0
  398. package/src/utils/svgsSource/hash.svg +3 -0
  399. package/src/utils/svgsSource/heart-outlined.svg +3 -0
  400. package/src/utils/svgsSource/heart.svg +3 -0
  401. package/src/utils/svgsSource/help.svg +3 -0
  402. package/src/utils/svgsSource/history.svg +3 -0
  403. package/src/utils/svgsSource/home.svg +3 -0
  404. package/src/utils/svgsSource/image.svg +3 -0
  405. package/src/utils/svgsSource/images.svg +3 -0
  406. package/src/utils/svgsSource/inbox.svg +3 -0
  407. package/src/utils/svgsSource/infinity.svg +3 -0
  408. package/src/utils/svgsSource/info.svg +3 -0
  409. package/src/utils/svgsSource/inventory.svg +5 -0
  410. package/src/utils/svgsSource/invoice.svg +4 -0
  411. package/src/utils/svgsSource/jump-back.svg +3 -0
  412. package/src/utils/svgsSource/jump-forward.svg +3 -0
  413. package/src/utils/svgsSource/kbd-backspace.svg +3 -0
  414. package/src/utils/svgsSource/kbd-capslock.svg +3 -0
  415. package/src/utils/svgsSource/kbd-command.svg +3 -0
  416. package/src/utils/svgsSource/kbd-control.svg +3 -0
  417. package/src/utils/svgsSource/kbd-hide.svg +3 -0
  418. package/src/utils/svgsSource/kbd-option.svg +3 -0
  419. package/src/utils/svgsSource/kbd-return.svg +3 -0
  420. package/src/utils/svgsSource/kbd-shift.svg +3 -0
  421. package/src/utils/svgsSource/kbd-space.svg +3 -0
  422. package/src/utils/svgsSource/kbd.svg +3 -0
  423. package/src/utils/svgsSource/link-slash.svg +3 -0
  424. package/src/utils/svgsSource/link.svg +3 -0
  425. package/src/utils/svgsSource/list-bullets.svg +8 -0
  426. package/src/utils/svgsSource/list-checks.svg +7 -0
  427. package/src/utils/svgsSource/list-numbers.svg +7 -0
  428. package/src/utils/svgsSource/lock-open.svg +3 -0
  429. package/src/utils/svgsSource/lock.svg +3 -0
  430. package/src/utils/svgsSource/map-pin.svg +3 -0
  431. package/src/utils/svgsSource/mark-unread.svg +3 -0
  432. package/src/utils/svgsSource/menu-close.svg +3 -0
  433. package/src/utils/svgsSource/menu.svg +3 -0
  434. package/src/utils/svgsSource/message.svg +3 -0
  435. package/src/utils/svgsSource/messages.svg +4 -0
  436. package/src/utils/svgsSource/minus-thick.svg +3 -0
  437. package/src/utils/svgsSource/minus.svg +3 -0
  438. package/src/utils/svgsSource/money.svg +3 -0
  439. package/src/utils/svgsSource/monitor.svg +3 -0
  440. package/src/utils/svgsSource/moon.svg +5 -0
  441. package/src/utils/svgsSource/note.svg +3 -0
  442. package/src/utils/svgsSource/nut.svg +3 -0
  443. package/src/utils/svgsSource/order.svg +3 -0
  444. package/src/utils/svgsSource/package.svg +3 -0
  445. package/src/utils/svgsSource/page-first.svg +3 -0
  446. package/src/utils/svgsSource/page-last.svg +3 -0
  447. package/src/utils/svgsSource/parts.svg +7 -0
  448. package/src/utils/svgsSource/password.svg +5 -0
  449. package/src/utils/svgsSource/pause.svg +3 -0
  450. package/src/utils/svgsSource/pencil.svg +4 -0
  451. package/src/utils/svgsSource/percent.svg +3 -0
  452. package/src/utils/svgsSource/play-pause.svg +3 -0
  453. package/src/utils/svgsSource/play.svg +3 -0
  454. package/src/utils/svgsSource/plus.svg +3 -0
  455. package/src/utils/svgsSource/printer.svg +3 -0
  456. package/src/utils/svgsSource/prohibit.svg +3 -0
  457. package/src/utils/svgsSource/question-mark.svg +3 -0
  458. package/src/utils/svgsSource/quote.svg +3 -0
  459. package/src/utils/svgsSource/radio-checked.svg +4 -0
  460. package/src/utils/svgsSource/radio-focus.svg +3 -0
  461. package/src/utils/svgsSource/radio.svg +3 -0
  462. package/src/utils/svgsSource/receipt.svg +3 -0
  463. package/src/utils/svgsSource/refresh.svg +3 -0
  464. package/src/utils/svgsSource/repeat.svg +3 -0
  465. package/src/utils/svgsSource/reply-all.svg +3 -0
  466. package/src/utils/svgsSource/reply.svg +3 -0
  467. package/src/utils/svgsSource/ribbon.svg +3 -0
  468. package/src/utils/svgsSource/rows-add.svg +5 -0
  469. package/src/utils/svgsSource/rules.svg +3 -0
  470. package/src/utils/svgsSource/search-items.svg +3 -0
  471. package/src/utils/svgsSource/search.svg +3 -0
  472. package/src/utils/svgsSource/send.svg +3 -0
  473. package/src/utils/svgsSource/settings.svg +3 -0
  474. package/src/utils/svgsSource/share.svg +4 -0
  475. package/src/utils/svgsSource/shuffle.svg +3 -0
  476. package/src/utils/svgsSource/skip-back.svg +3 -0
  477. package/src/utils/svgsSource/skip-forward.svg +3 -0
  478. package/src/utils/svgsSource/skull.svg +3 -0
  479. package/src/utils/svgsSource/sliders.svg +3 -0
  480. package/src/utils/svgsSource/sort-alpha-down.svg +5 -0
  481. package/src/utils/svgsSource/sort-alpha-up.svg +5 -0
  482. package/src/utils/svgsSource/sort-ascending.svg +6 -0
  483. package/src/utils/svgsSource/sort-descending.svg +6 -0
  484. package/src/utils/svgsSource/sort-time-down.svg +4 -0
  485. package/src/utils/svgsSource/sort-time-up.svg +4 -0
  486. package/src/utils/svgsSource/square-add.svg +3 -0
  487. package/src/utils/svgsSource/square.svg +3 -0
  488. package/src/utils/svgsSource/stamp.svg +3 -0
  489. package/src/utils/svgsSource/star-outlined.svg +3 -0
  490. package/src/utils/svgsSource/star.svg +3 -0
  491. package/src/utils/svgsSource/start.svg +3 -0
  492. package/src/utils/svgsSource/stop.svg +3 -0
  493. package/src/utils/svgsSource/success.svg +3 -0
  494. package/src/utils/svgsSource/sun.svg +3 -0
  495. package/src/utils/svgsSource/support.svg +3 -0
  496. package/src/utils/svgsSource/sync.svg +4 -0
  497. package/src/utils/svgsSource/tag.svg +3 -0
  498. package/src/utils/svgsSource/target.svg +3 -0
  499. package/src/utils/svgsSource/text-add.svg +3 -0
  500. package/src/utils/svgsSource/time-add.svg +3 -0
  501. package/src/utils/svgsSource/timer.svg +3 -0
  502. package/src/utils/svgsSource/toolbox.svg +3 -0
  503. package/src/utils/svgsSource/tools.svg +3 -0
  504. package/src/utils/svgsSource/trash.svg +3 -0
  505. package/src/utils/svgsSource/trophy.svg +3 -0
  506. package/src/utils/svgsSource/truck-trailer.svg +3 -0
  507. package/src/utils/svgsSource/update.svg +3 -0
  508. package/src/utils/svgsSource/upload-cloud.svg +3 -0
  509. package/src/utils/svgsSource/upload.svg +3 -0
  510. package/src/utils/svgsSource/user-add.svg +3 -0
  511. package/src/utils/svgsSource/user-details.svg +7 -0
  512. package/src/utils/svgsSource/user-group.svg +3 -0
  513. package/src/utils/svgsSource/user-id-badge.svg +3 -0
  514. package/src/utils/svgsSource/user-id-card.svg +3 -0
  515. package/src/utils/svgsSource/user.svg +3 -0
  516. package/src/utils/svgsSource/verified.svg +3 -0
  517. package/src/utils/svgsSource/video.svg +3 -0
  518. package/src/utils/svgsSource/view-cards.svg +6 -0
  519. package/src/utils/svgsSource/view-doc.svg +7 -0
  520. package/src/utils/svgsSource/view-grid.svg +3 -0
  521. package/src/utils/svgsSource/view-rows.svg +4 -0
  522. package/src/utils/svgsSource/view-table.svg +3 -0
  523. package/src/utils/svgsSource/warning.svg +3 -0
  524. package/src/utils/svgsSource/work-order.svg +3 -0
  525. package/src/utils/svgsSource/x.svg +3 -0
  526. package/src/vite-env.d.ts +1 -0
  527. package/tsconfig.json +33 -0
  528. package/vite.config.ts +39 -0
@@ -0,0 +1,220 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+
3
+ const buttonBase = {
4
+ position: 'relative',
5
+ appearance: 'none',
6
+ minWidth: '0',
7
+ transitionDuration: 'fast',
8
+ transitionProperty: 'background, border-color, color, box-shadow',
9
+ transitionTimingFunction: 'default',
10
+ userSelect: 'none',
11
+ verticalAlign: 'middle',
12
+ display: 'flex',
13
+ alignItems: 'center',
14
+ gap: '4',
15
+ fontFamily: 'body',
16
+ fontSize: '16',
17
+ fontWeight: 'medium',
18
+ lineHeight: 'default',
19
+ borderWidth: '1',
20
+ borderStyle: 'solid',
21
+ borderColor: 'transparent',
22
+ borderRadius: '4',
23
+ outlineWidth: '2',
24
+ outlineStyle: 'solid',
25
+ outlineColor: 'transparent',
26
+ outlineOffset: '1',
27
+ textDecoration: 'none',
28
+ whiteSpace: 'nowrap',
29
+ cursor: 'pointer',
30
+ _disabled: {
31
+ opacity: 0.4,
32
+ cursor: 'not-allowed',
33
+ },
34
+ _focusVisible: {
35
+ outlineColor: { base: 'slate.80', _dark: 'slate.5' },
36
+ },
37
+ '& svg': {
38
+ fill: 'current',
39
+ },
40
+ };
41
+
42
+ const buttonVariants = {
43
+ variant: {
44
+ primary: {
45
+ bg: { base: 'slate.90', _dark: 'slate.5' },
46
+ color: { base: 'slate.0', _dark: 'slate.90' },
47
+ _hover: {
48
+ bg: { base: 'slate.70', _dark: 'slate.10' },
49
+ },
50
+ _active: {
51
+ bg: { base: 'slate.100', _dark: 'slate.20' },
52
+ },
53
+ _disabled: {
54
+ _hover: {
55
+ bg: { base: 'slate.90', _dark: 'slate.5' },
56
+ },
57
+ },
58
+ _selected: {
59
+ bg: { base: 'slate.5', _dark: 'slate.90' },
60
+ color: { base: 'slate.90', _dark: 'slate.0' },
61
+ },
62
+ },
63
+ standard: {
64
+ bg: { base: 'slate.5', _dark: 'slate.70' },
65
+ color: { base: 'slate.90', _dark: 'slate.0' },
66
+ _hover: {
67
+ bg: { base: 'slate.10', _dark: 'slate.60' },
68
+ },
69
+ _active: {
70
+ bg: { base: 'slate.20', _dark: 'slate.80' },
71
+ },
72
+ _disabled: {
73
+ _hover: {
74
+ bg: { base: 'slate.5', _dark: 'slate.70' },
75
+ },
76
+ },
77
+ _selected: {
78
+ bg: { base: 'slate.90', _dark: 'slate.5' },
79
+ color: { base: 'slate.0', _dark: 'slate.90' },
80
+ },
81
+ },
82
+ hollow: {
83
+ bg: 'transparent',
84
+ borderColor: { base: 'slate.30', _dark: 'slate.60' },
85
+ color: { base: 'slate.90', _dark: 'slate.0' },
86
+ _hover: {
87
+ bg: { base: 'slate.10', _dark: 'slate.60' },
88
+ borderColor: { base: 'slate.10', _dark: 'slate.60' },
89
+ },
90
+ _active: {
91
+ bg: { base: 'slate.20', _dark: 'slate.80' },
92
+ borderColor: { base: 'slate.20', _dark: 'slate.80' },
93
+ },
94
+ _disabled: {
95
+ _hover: {
96
+ bg: 'transparent',
97
+ },
98
+ },
99
+ _selected: {
100
+ bg: { base: 'slate.90', _dark: 'slate.5' },
101
+ color: { base: 'slate.0', _dark: 'slate.90' },
102
+ borderColor: 'transparent',
103
+ },
104
+ },
105
+ ghost: {
106
+ bg: 'transparent',
107
+ color: { base: 'slate.90', _dark: 'slate.0' },
108
+ _hover: {
109
+ bg: { base: 'slate.10', _dark: 'slate.60' },
110
+ },
111
+ _active: {
112
+ bg: { base: 'slate.20', _dark: 'slate.70' },
113
+ },
114
+ _disabled: {
115
+ _hover: {
116
+ bg: 'transparent',
117
+ },
118
+ },
119
+ _selected: {
120
+ bg: { base: 'slate.90', _dark: 'slate.5' },
121
+ color: { base: 'slate.0', _dark: 'slate.90' },
122
+ },
123
+ },
124
+ cta: {
125
+ bg: { base: 'gold.20', _dark: 'gold.30' },
126
+ color: 'slate.90',
127
+ _hover: {
128
+ bg: { base: 'gold.10', _dark: 'gold.20' },
129
+ },
130
+ _active: {
131
+ bg: { base: 'gold.30', _dark: 'gold.40' },
132
+ },
133
+ _disabled: {
134
+ _hover: {
135
+ bg: { base: 'gold.20', _dark: 'gold.30' },
136
+ },
137
+ },
138
+ },
139
+ danger: {
140
+ bg: 'red.50',
141
+ color: 'slate.0',
142
+ _hover: {
143
+ bg: 'red.40',
144
+ },
145
+ _active: {
146
+ bg: 'red.60',
147
+ },
148
+ _disabled: {
149
+ _hover: {
150
+ bg: 'red.50',
151
+ },
152
+ },
153
+ },
154
+ },
155
+ };
156
+
157
+ export const buttonRecipe = defineRecipe({
158
+ className: 'button',
159
+ jsx: ['Button'],
160
+ base: buttonBase,
161
+ variants: {
162
+ ...buttonVariants,
163
+ size: {
164
+ medium: {
165
+ fontSize: '16',
166
+ py: '3',
167
+ px: '10',
168
+ },
169
+ large: {
170
+ fontSize: '16',
171
+ py: '7',
172
+ px: '12',
173
+ },
174
+ small: {
175
+ fontSize: '14',
176
+ py: '0',
177
+ px: '8',
178
+ '& svg': {
179
+ mt: '-1',
180
+ mb: '-1',
181
+ },
182
+ },
183
+ },
184
+ },
185
+ defaultVariants: {
186
+ variant: 'standard',
187
+ size: 'medium',
188
+ },
189
+ });
190
+
191
+ export const iconButtonRecipe = defineRecipe({
192
+ className: 'icon-button',
193
+ jsx: ['IconButton'],
194
+ base: buttonBase,
195
+ variants: {
196
+ ...buttonVariants,
197
+ size: {
198
+ medium: {
199
+ fontSize: '16',
200
+ p: '3',
201
+ },
202
+ large: {
203
+ fontSize: '16',
204
+ p: '7',
205
+ },
206
+ small: {
207
+ fontSize: '14',
208
+ p: '0',
209
+ '& svg': {
210
+ mt: '-1',
211
+ mb: '-1',
212
+ },
213
+ },
214
+ },
215
+ },
216
+ defaultVariants: {
217
+ variant: 'standard',
218
+ size: 'medium',
219
+ },
220
+ });
@@ -0,0 +1,88 @@
1
+ import { defineSlotRecipe } from "@pandacss/dev";
2
+
3
+ export const checkBoxRecipe = defineSlotRecipe({
4
+ className: "checkbox",
5
+ jsx: ['CheckBox'],
6
+ slots: ["container", "input", "indicator"],
7
+ base: {
8
+ container: {
9
+ position: "relative",
10
+ display: "inline-grid",
11
+ gridTemplateColumns: "auto 1fr",
12
+ gap: 4,
13
+ alignItems: "start",
14
+ cursor: "pointer",
15
+ userSelect: "none",
16
+ },
17
+ input: {
18
+ position: "absolute",
19
+ opacity: 0,
20
+ width: "full",
21
+ height: "full",
22
+ margin: "0",
23
+ padding: "0",
24
+ zIndex: 1,
25
+ cursor: "inherit",
26
+ "& ~ [name='checkbox']": {
27
+ display: "inline-grid",
28
+ },
29
+ _checked: {
30
+ "& ~ [name='checkbox-checked']": {
31
+ display: "inline-grid",
32
+ fill: { base: "slate.90", _dark: "slate.0" },
33
+ },
34
+ "& ~ [name='checkbox']": {
35
+ display: "none",
36
+ },
37
+ },
38
+ _indeterminate: {
39
+ "& ~ [name='checkbox-indeterminate']": {
40
+ display: "inline-grid",
41
+ fill: { base: "slate.90", _dark: "slate.0" },
42
+ _disabled: {
43
+ },
44
+ },
45
+ "& ~ [name='checkbox']": {
46
+ display: "none",
47
+ },
48
+ },
49
+ _disabled: {
50
+ "& ~ svg": {
51
+ opacity: 0.4,
52
+ pointerEvents: 'none',
53
+ cursor: 'none',
54
+ },
55
+ display: "inline-grid",
56
+ },
57
+ _error: {
58
+ display: "inline-grid",
59
+ "& ~ svg": {
60
+ fill: "red.50",
61
+ }
62
+ },
63
+ _focusVisible: {
64
+ "& ~ svg": {
65
+ outlineColor: { base: 'slate.80', _dark: 'slate.5' },
66
+ outlineOffset: -3,
67
+ borderRadius: 5,
68
+ outlineWidth: 1,
69
+ outlineStyle: 'solid',
70
+ },
71
+ },
72
+ },
73
+ indicator: {
74
+ placeContent: "center",
75
+ display: 'none',
76
+ width: 24,
77
+ height: 24,
78
+ "&:is([name='checkbox'])": {
79
+ display: "inline-grid",
80
+ fill: "slate.20",
81
+ },
82
+ },
83
+ },
84
+ variants: {
85
+ },
86
+ defaultVariants: {
87
+ },
88
+ });
@@ -0,0 +1,37 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+
3
+ const codeBase = {
4
+ bg: 'slate.80',
5
+ position: "relative",
6
+ overflow: "auto",
7
+ p: "4",
8
+ whiteSpace: "pre",
9
+ fontSize: "14",
10
+ };
11
+
12
+ const preBase = {
13
+ borderRadius: "8",
14
+ overflow: "hidden",
15
+ borderWidth: "0",
16
+ borderColor: "slate.60",
17
+ bg: "slate.80",
18
+ color: "slate.5",
19
+ px: "16",
20
+ py: "8",
21
+ my: "8",
22
+ whiteSpace: "pre",
23
+ };
24
+
25
+ export const codeRecipe = defineRecipe({
26
+ className: 'code',
27
+ jsx:['Code'],
28
+ base: codeBase,
29
+ });
30
+
31
+ export const preRecipe = defineRecipe({
32
+ className: 'pre',
33
+ jsx: ['Pre'],
34
+ base: preBase,
35
+ });
36
+
37
+
@@ -0,0 +1,40 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+
3
+ const dividerBase = {
4
+ '--divider-weight': 'sizes.1',
5
+ borderStyle: 'solid',
6
+ color: { base: 'slate.20', _dark: 'slate.80' },
7
+ borderColor: 'current',
8
+ minWidth: '1',
9
+ minHeight: '1',
10
+ };
11
+
12
+ const dividerVariants = {
13
+ direction: {
14
+ horizontal: {
15
+ width: 'full',
16
+ borderTopWidth: 'var(--divider-weight)',
17
+ },
18
+ vertical: {
19
+ height: 'full',
20
+ borderLeftWidth: 'var(--divider-weight)',
21
+ },
22
+ },
23
+ weight: {
24
+ thin: { '--divider-weight': 'sizes.1' },
25
+ medium: { '--divider-weight': 'sizes.2' },
26
+ thick: { '--divider-weight': 'sizes.4' },
27
+ thicker: { '--divider-weight': 'sizes.6' },
28
+ },
29
+ };
30
+
31
+ export const dividerRecipe = defineRecipe({
32
+ className: 'divider',
33
+ jsx: ['Divider'],
34
+ base: dividerBase,
35
+ variants: dividerVariants,
36
+ defaultVariants: {
37
+ direction: 'horizontal',
38
+ weight: 'thin',
39
+ },
40
+ });
@@ -0,0 +1,10 @@
1
+ export { buttonRecipe, iconButtonRecipe } from './button';
2
+ export { inputRecipe } from './input';
3
+ export { textareaRecipe } from './textarea';
4
+ export { textRecipe, headingRecipe, linkRecipe, labelRecipe } from './text';
5
+ export { checkBoxRecipe } from "./checkbox"
6
+ export { spinnerRecipe } from "./spinner"
7
+ export { dividerRecipe } from "./divider"
8
+ export { preRecipe, codeRecipe } from "./code"
9
+ export { boxRecipe } from './box';
10
+ export { radioRecipe } from './radio';
@@ -0,0 +1,56 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+ const inputBase = {
3
+ position: 'relative',
4
+ display: 'inline-grid',
5
+ verticalAlign: 'top',
6
+ alignItems: 'center',
7
+ padding: '0',
8
+ fontFamily: 'body',
9
+ fontSize: '16',
10
+ fontWeight: 'normal',
11
+ lineHeight: 'normal',
12
+ color: { base: 'slate.90', _osDark: 'slate.5' },
13
+ borderRadius: '8',
14
+ '& input': {
15
+ width: 'auto',
16
+ minWidth: '16',
17
+ maxWidth: 'full',
18
+ font: 'inherit',
19
+ py: '4',
20
+ px: '8',
21
+ m: '0',
22
+ resize: 'none',
23
+ appearance: 'none',
24
+ borderWidth: '1',
25
+ borderStyle: 'solid',
26
+ borderRadius: '4',
27
+ borderColor: 'transparent',
28
+ background: { base: 'slate.0', _osDark: 'slate.90' },
29
+ },
30
+ gridTemplateColumns: 'auto 1fr',
31
+ };
32
+
33
+ const inputVariants = {
34
+ variant: {
35
+ stacked: {
36
+ gridTemplateRows: 'auto 1fr',
37
+ alignItems: 'stretch',
38
+ '& input': {
39
+ gridArea: '2 / 1',
40
+ background: { base: 'slate.0', _osDark: 'slate.90' },
41
+ borderColor: { base: 'slate.40', _osDark: 'slate.50' },
42
+ },
43
+ },
44
+ internalLabel: {},
45
+ },
46
+ };
47
+
48
+ export const inputRecipe = defineRecipe({
49
+ className: 'input',
50
+ jsx: ['Input'],
51
+ base: inputBase,
52
+ variants: inputVariants,
53
+ defaultVariants: {
54
+ variant: 'stacked',
55
+ },
56
+ });
@@ -0,0 +1,71 @@
1
+ import { defineSlotRecipe } from "@pandacss/dev";
2
+
3
+ export const radioRecipe = defineSlotRecipe({
4
+ className: "radio",
5
+ jsx: ['Radio'],
6
+ slots: ["container", "input", "indicator"],
7
+ base: {
8
+ container: {
9
+ position: "relative",
10
+ display: "inline-grid",
11
+ gridTemplateColumns: "auto 1fr",
12
+ gap: 4,
13
+ alignItems: "start",
14
+ cursor: "pointer",
15
+ userSelect: "none",
16
+ },
17
+ input: {
18
+ position: "absolute",
19
+ opacity: 0 ,
20
+ width: "full",
21
+ height: "full",
22
+ margin: "0",
23
+ padding: "0",
24
+ zIndex: 1,
25
+ cursor: "inherit",
26
+ "& ~ [name='radio']": {
27
+ display: "inline-grid",
28
+ },
29
+ _checked: {
30
+ "& ~ [name='radio-checked']": {
31
+ display: "inline-grid",
32
+ fill: { base: "slate.90", _dark: "slate.0" },
33
+ },
34
+ "& ~ [name='radio']": {
35
+ display: "none",
36
+ },
37
+ },
38
+ _disabled: {
39
+ "& ~ svg": {
40
+ opacity: 0.4,
41
+ pointerEvents: 'none',
42
+ cursor: 'none',
43
+ },
44
+ display: "inline-grid",
45
+ },
46
+ _error: {
47
+ display: "inline-grid",
48
+ "& ~ svg": {
49
+ fill: "red.50",
50
+ }
51
+ },
52
+ _focusVisible: {
53
+ "& ~ [name='radio-focus']": {
54
+ display: 'inline-grid',
55
+ position: 'absolute',
56
+ fill: { base: 'slate.90', _dark: 'slate.1' },
57
+ },
58
+ },
59
+ },
60
+ indicator: {
61
+ placeContent: "center",
62
+ display: 'none',
63
+ width: 24,
64
+ height: 24,
65
+ "&:is([name='radio'])": {
66
+ display: "inline-grid",
67
+ fill: "slate.20",
68
+ },
69
+ },
70
+ },
71
+ })
@@ -0,0 +1,42 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+
3
+ const spinnerBase = {
4
+ aspectRatio: 'square',
5
+ rounded: '100',
6
+ borderWidth: '3',
7
+ borderStyle: 'solid',
8
+ borderColor: 'transparent',
9
+ borderTopColor: 'slate.90',
10
+ borderBottomColor: 'slate.90',
11
+ animation: 'spin',
12
+ filter: 'invert(1)',
13
+ mixBlendMode: 'difference',
14
+ isolation: 'isolate',
15
+ };
16
+
17
+ const spinnerVariants = {
18
+ size: {
19
+ medium: {
20
+ height: '24',
21
+ minHeight: '24',
22
+ },
23
+ small: {
24
+ height: '16',
25
+ minHeight: '16',
26
+ },
27
+ large: {
28
+ height: '32',
29
+ minHeight: '32',
30
+ },
31
+ }
32
+ };
33
+
34
+ export const spinnerRecipe = defineRecipe({
35
+ className: 'spinner',
36
+ jsx:['Spinner'],
37
+ base: spinnerBase,
38
+ variants: spinnerVariants,
39
+ defaultVariants: {
40
+ size: 'medium',
41
+ },
42
+ });