cetec-design-system 0.0.7 → 0.0.8

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 (516) hide show
  1. package/package.json +2 -2
  2. package/src/App.tsx +478 -0
  3. package/src/components/Box/Box.tsx +26 -0
  4. package/src/components/Box/index.tsx +1 -0
  5. package/src/components/Button/Button.stories.tsx +129 -0
  6. package/src/components/Button/Button.tsx +45 -0
  7. package/src/components/Button/ButtonContent.tsx +32 -0
  8. package/src/components/Button/index.tsx +1 -0
  9. package/src/components/CheckBox/CheckBox.tsx +36 -0
  10. package/src/components/CheckBox/index.tsx +1 -0
  11. package/src/components/Code/Code.tsx +35 -0
  12. package/src/components/Code/Pre.tsx +35 -0
  13. package/src/components/Code/copy-to-clipboard-button.tsx +41 -0
  14. package/src/components/Code/index.tsx +2 -0
  15. package/src/components/Divider/Divider.tsx +26 -0
  16. package/src/components/Divider/index.tsx +1 -0
  17. package/src/components/Heading/Heading.tsx +33 -0
  18. package/src/components/Heading/index.tsx +1 -0
  19. package/src/components/Icon/Icon.stories.tsx +31 -0
  20. package/src/components/Icon/Icon.tsx +46 -0
  21. package/src/components/Icon/iconNames.ts +219 -0
  22. package/src/components/Icon/icons.d.ts +1 -0
  23. package/src/components/Icon/index.tsx +3 -0
  24. package/src/components/IconButton/IconButton.tsx +58 -0
  25. package/src/components/IconButton/index.tsx +1 -0
  26. package/src/components/Input/Input.tsx +42 -0
  27. package/src/components/Input/index.tsx +1 -0
  28. package/src/components/Label/Label.tsx +33 -0
  29. package/src/components/Label/index.tsx +1 -0
  30. package/src/components/Link/Link.tsx +54 -0
  31. package/src/components/Link/index.tsx +1 -0
  32. package/src/components/PandaPatterns.tsx +23 -0
  33. package/src/components/Radio/Radio.tsx +28 -0
  34. package/src/components/Radio/index.tsx +1 -0
  35. package/src/components/Slot.tsx +16 -0
  36. package/src/components/Spinner/Spinner.tsx +22 -0
  37. package/src/components/Spinner/index.tsx +1 -0
  38. package/src/components/Text/Text.stories.tsx +106 -0
  39. package/src/components/Text/Text.tsx +39 -0
  40. package/src/components/Text/index.tsx +1 -0
  41. package/src/components/TextInput/TextInput.tsx +33 -0
  42. package/src/components/TextInput/index.tsx +1 -0
  43. package/src/components/Textarea/Textarea.tsx +36 -0
  44. package/src/components/Textarea/index.tsx +1 -0
  45. package/src/components/ThemeSwitcher/ThemeSwitcher.tsx +20 -0
  46. package/src/components/ThemeSwitcher/index.tsx +1 -0
  47. package/src/contexts/ThemeContext.tsx +77 -0
  48. package/src/main.tsx +10 -0
  49. package/src/recipes/box.ts +16 -0
  50. package/src/recipes/button.ts +220 -0
  51. package/src/recipes/checkbox.ts +81 -0
  52. package/src/recipes/code.ts +37 -0
  53. package/src/recipes/divider.ts +40 -0
  54. package/src/recipes/index.ts +12 -0
  55. package/src/recipes/input.ts +56 -0
  56. package/src/recipes/radio.ts +71 -0
  57. package/src/recipes/spinner.ts +42 -0
  58. package/src/recipes/text.ts +193 -0
  59. package/src/recipes/textarea.ts +78 -0
  60. package/src/recipes/textinput.ts +76 -0
  61. package/src/storybook/Tokens.mdx +169 -0
  62. package/src/storybook/components/Colors.tsx +78 -0
  63. package/src/storybook/doctemplate.mdx +36 -0
  64. package/src/storybook/intro.mdx +15 -0
  65. package/src/styles/conditions.ts +108 -0
  66. package/src/styles/font-imports.css +35 -0
  67. package/src/styles/globalStyle.ts +90 -0
  68. package/src/styles/index.css +3 -0
  69. package/src/styles/semanticTokens.ts +110 -0
  70. package/src/styles/tokens.ts +580 -0
  71. package/src/utils/forwardRefWithAs.ts +26 -0
  72. package/src/utils/generate-sprite.js +174 -0
  73. package/src/utils/splitProps.ts +11 -0
  74. package/src/utils/sprite-config.js +25 -0
  75. package/src/utils/svgsSource/Building.svg +3 -0
  76. package/src/utils/svgsSource/aa-placeholder.svg +3 -0
  77. package/src/utils/svgsSource/alarm.svg +3 -0
  78. package/src/utils/svgsSource/apps.svg +3 -0
  79. package/src/utils/svgsSource/arrow-down.svg +3 -0
  80. package/src/utils/svgsSource/arrow-drop-down.svg +3 -0
  81. package/src/utils/svgsSource/arrow-drop-up.svg +3 -0
  82. package/src/utils/svgsSource/arrow-left.svg +3 -0
  83. package/src/utils/svgsSource/arrow-line-down.svg +3 -0
  84. package/src/utils/svgsSource/arrow-line-left.svg +3 -0
  85. package/src/utils/svgsSource/arrow-line-right.svg +3 -0
  86. package/src/utils/svgsSource/arrow-line-up.svg +3 -0
  87. package/src/utils/svgsSource/arrow-prompt.svg +3 -0
  88. package/src/utils/svgsSource/arrow-redo.svg +3 -0
  89. package/src/utils/svgsSource/arrow-right.svg +3 -0
  90. package/src/utils/svgsSource/arrow-square-in.svg +4 -0
  91. package/src/utils/svgsSource/arrow-square-out.svg +4 -0
  92. package/src/utils/svgsSource/arrow-undo.svg +3 -0
  93. package/src/utils/svgsSource/arrow-up.svg +3 -0
  94. package/src/utils/svgsSource/arrows-down-up.svg +3 -0
  95. package/src/utils/svgsSource/arrows-left-right.svg +3 -0
  96. package/src/utils/svgsSource/at.svg +3 -0
  97. package/src/utils/svgsSource/attachment.svg +3 -0
  98. package/src/utils/svgsSource/barcode-reader.svg +3 -0
  99. package/src/utils/svgsSource/barcode.svg +10 -0
  100. package/src/utils/svgsSource/basket.svg +6 -0
  101. package/src/utils/svgsSource/bell-active.svg +3 -0
  102. package/src/utils/svgsSource/bell-slash.svg +3 -0
  103. package/src/utils/svgsSource/bell.svg +3 -0
  104. package/src/utils/svgsSource/bin.svg +3 -0
  105. package/src/utils/svgsSource/bookmark-outlined.svg +3 -0
  106. package/src/utils/svgsSource/bookmark.svg +3 -0
  107. package/src/utils/svgsSource/bookmarks.svg +3 -0
  108. package/src/utils/svgsSource/calendar-add.svg +3 -0
  109. package/src/utils/svgsSource/calendar-view-day.svg +3 -0
  110. package/src/utils/svgsSource/calendar-view-month.svg +3 -0
  111. package/src/utils/svgsSource/calendar-view-week.svg +3 -0
  112. package/src/utils/svgsSource/calendar.svg +3 -0
  113. package/src/utils/svgsSource/caret-down.svg +3 -0
  114. package/src/utils/svgsSource/caret-left.svg +3 -0
  115. package/src/utils/svgsSource/caret-right.svg +3 -0
  116. package/src/utils/svgsSource/caret-up.svg +3 -0
  117. package/src/utils/svgsSource/cart.svg +3 -0
  118. package/src/utils/svgsSource/check-thick.svg +3 -0
  119. package/src/utils/svgsSource/check.svg +3 -0
  120. package/src/utils/svgsSource/checkbox-checked.svg +3 -0
  121. package/src/utils/svgsSource/checkbox-focus.svg +3 -0
  122. package/src/utils/svgsSource/checkbox-indeterminate.svg +3 -0
  123. package/src/utils/svgsSource/checkbox.svg +3 -0
  124. package/src/utils/svgsSource/circle-check.svg +3 -0
  125. package/src/utils/svgsSource/circle.svg +3 -0
  126. package/src/utils/svgsSource/circles-add.svg +3 -0
  127. package/src/utils/svgsSource/clipboard.svg +3 -0
  128. package/src/utils/svgsSource/clock-countdown.svg +3 -0
  129. package/src/utils/svgsSource/clock.svg +3 -0
  130. package/src/utils/svgsSource/cloud-synced.svg +3 -0
  131. package/src/utils/svgsSource/code.svg +3 -0
  132. package/src/utils/svgsSource/color.svg +3 -0
  133. package/src/utils/svgsSource/copy.svg +4 -0
  134. package/src/utils/svgsSource/credit-card.svg +3 -0
  135. package/src/utils/svgsSource/cut.svg +3 -0
  136. package/src/utils/svgsSource/database.svg +3 -0
  137. package/src/utils/svgsSource/devices.svg +3 -0
  138. package/src/utils/svgsSource/dictionary.svg +3 -0
  139. package/src/utils/svgsSource/dots.svg +3 -0
  140. package/src/utils/svgsSource/download-cloud.svg +3 -0
  141. package/src/utils/svgsSource/download.svg +3 -0
  142. package/src/utils/svgsSource/dragger.svg +3 -0
  143. package/src/utils/svgsSource/edit.svg +3 -0
  144. package/src/utils/svgsSource/encrypted.svg +3 -0
  145. package/src/utils/svgsSource/envelope.svg +3 -0
  146. package/src/utils/svgsSource/equal.svg +3 -0
  147. package/src/utils/svgsSource/eraser.svg +3 -0
  148. package/src/utils/svgsSource/error.svg +3 -0
  149. package/src/utils/svgsSource/event-list.svg +3 -0
  150. package/src/utils/svgsSource/export.svg +4 -0
  151. package/src/utils/svgsSource/extension.svg +3 -0
  152. package/src/utils/svgsSource/eye-slash.svg +3 -0
  153. package/src/utils/svgsSource/eye.svg +3 -0
  154. package/src/utils/svgsSource/file-add.svg +3 -0
  155. package/src/utils/svgsSource/file.svg +3 -0
  156. package/src/utils/svgsSource/files.svg +3 -0
  157. package/src/utils/svgsSource/filter-remove.svg +6 -0
  158. package/src/utils/svgsSource/filter.svg +5 -0
  159. package/src/utils/svgsSource/finish.svg +3 -0
  160. package/src/utils/svgsSource/flag.svg +3 -0
  161. package/src/utils/svgsSource/forklift.svg +3 -0
  162. package/src/utils/svgsSource/garage.svg +3 -0
  163. package/src/utils/svgsSource/globe.svg +3 -0
  164. package/src/utils/svgsSource/hash.svg +3 -0
  165. package/src/utils/svgsSource/heart-outlined.svg +3 -0
  166. package/src/utils/svgsSource/heart.svg +3 -0
  167. package/src/utils/svgsSource/help.svg +3 -0
  168. package/src/utils/svgsSource/history.svg +3 -0
  169. package/src/utils/svgsSource/home.svg +3 -0
  170. package/src/utils/svgsSource/image.svg +3 -0
  171. package/src/utils/svgsSource/images.svg +3 -0
  172. package/src/utils/svgsSource/inbox.svg +3 -0
  173. package/src/utils/svgsSource/infinity.svg +3 -0
  174. package/src/utils/svgsSource/info.svg +3 -0
  175. package/src/utils/svgsSource/inventory.svg +5 -0
  176. package/src/utils/svgsSource/invoice.svg +4 -0
  177. package/src/utils/svgsSource/jump-back.svg +3 -0
  178. package/src/utils/svgsSource/jump-forward.svg +3 -0
  179. package/src/utils/svgsSource/kbd-backspace.svg +3 -0
  180. package/src/utils/svgsSource/kbd-capslock.svg +3 -0
  181. package/src/utils/svgsSource/kbd-command.svg +3 -0
  182. package/src/utils/svgsSource/kbd-control.svg +3 -0
  183. package/src/utils/svgsSource/kbd-hide.svg +3 -0
  184. package/src/utils/svgsSource/kbd-option.svg +3 -0
  185. package/src/utils/svgsSource/kbd-return.svg +3 -0
  186. package/src/utils/svgsSource/kbd-shift.svg +3 -0
  187. package/src/utils/svgsSource/kbd-space.svg +3 -0
  188. package/src/utils/svgsSource/kbd.svg +3 -0
  189. package/src/utils/svgsSource/link-slash.svg +3 -0
  190. package/src/utils/svgsSource/link.svg +3 -0
  191. package/src/utils/svgsSource/list-bullets.svg +8 -0
  192. package/src/utils/svgsSource/list-checks.svg +7 -0
  193. package/src/utils/svgsSource/list-numbers.svg +7 -0
  194. package/src/utils/svgsSource/lock-open.svg +3 -0
  195. package/src/utils/svgsSource/lock.svg +3 -0
  196. package/src/utils/svgsSource/map-pin.svg +3 -0
  197. package/src/utils/svgsSource/mark-unread.svg +3 -0
  198. package/src/utils/svgsSource/menu-close.svg +3 -0
  199. package/src/utils/svgsSource/menu.svg +3 -0
  200. package/src/utils/svgsSource/message.svg +3 -0
  201. package/src/utils/svgsSource/messages.svg +4 -0
  202. package/src/utils/svgsSource/minus-thick.svg +3 -0
  203. package/src/utils/svgsSource/minus.svg +3 -0
  204. package/src/utils/svgsSource/money.svg +3 -0
  205. package/src/utils/svgsSource/monitor.svg +3 -0
  206. package/src/utils/svgsSource/moon.svg +5 -0
  207. package/src/utils/svgsSource/note.svg +3 -0
  208. package/src/utils/svgsSource/nut.svg +3 -0
  209. package/src/utils/svgsSource/order.svg +3 -0
  210. package/src/utils/svgsSource/package.svg +3 -0
  211. package/src/utils/svgsSource/page-first.svg +3 -0
  212. package/src/utils/svgsSource/page-last.svg +3 -0
  213. package/src/utils/svgsSource/parts.svg +7 -0
  214. package/src/utils/svgsSource/password.svg +5 -0
  215. package/src/utils/svgsSource/pause.svg +3 -0
  216. package/src/utils/svgsSource/pencil.svg +4 -0
  217. package/src/utils/svgsSource/percent.svg +3 -0
  218. package/src/utils/svgsSource/play-pause.svg +3 -0
  219. package/src/utils/svgsSource/play.svg +3 -0
  220. package/src/utils/svgsSource/plus.svg +3 -0
  221. package/src/utils/svgsSource/printer.svg +3 -0
  222. package/src/utils/svgsSource/prohibit.svg +3 -0
  223. package/src/utils/svgsSource/question-mark.svg +3 -0
  224. package/src/utils/svgsSource/quote.svg +3 -0
  225. package/src/utils/svgsSource/radio-checked.svg +4 -0
  226. package/src/utils/svgsSource/radio-focus.svg +3 -0
  227. package/src/utils/svgsSource/radio.svg +3 -0
  228. package/src/utils/svgsSource/receipt.svg +3 -0
  229. package/src/utils/svgsSource/refresh.svg +3 -0
  230. package/src/utils/svgsSource/repeat.svg +3 -0
  231. package/src/utils/svgsSource/reply-all.svg +3 -0
  232. package/src/utils/svgsSource/reply.svg +3 -0
  233. package/src/utils/svgsSource/ribbon.svg +3 -0
  234. package/src/utils/svgsSource/rows-add.svg +5 -0
  235. package/src/utils/svgsSource/rules.svg +3 -0
  236. package/src/utils/svgsSource/search-items.svg +3 -0
  237. package/src/utils/svgsSource/search.svg +3 -0
  238. package/src/utils/svgsSource/send.svg +3 -0
  239. package/src/utils/svgsSource/settings.svg +3 -0
  240. package/src/utils/svgsSource/share.svg +4 -0
  241. package/src/utils/svgsSource/shuffle.svg +3 -0
  242. package/src/utils/svgsSource/skip-back.svg +3 -0
  243. package/src/utils/svgsSource/skip-forward.svg +3 -0
  244. package/src/utils/svgsSource/skull.svg +3 -0
  245. package/src/utils/svgsSource/sliders.svg +3 -0
  246. package/src/utils/svgsSource/sort-alpha-down.svg +5 -0
  247. package/src/utils/svgsSource/sort-alpha-up.svg +5 -0
  248. package/src/utils/svgsSource/sort-ascending.svg +6 -0
  249. package/src/utils/svgsSource/sort-descending.svg +6 -0
  250. package/src/utils/svgsSource/sort-time-down.svg +4 -0
  251. package/src/utils/svgsSource/sort-time-up.svg +4 -0
  252. package/src/utils/svgsSource/square-add.svg +3 -0
  253. package/src/utils/svgsSource/square.svg +3 -0
  254. package/src/utils/svgsSource/stamp.svg +3 -0
  255. package/src/utils/svgsSource/star-outlined.svg +3 -0
  256. package/src/utils/svgsSource/star.svg +3 -0
  257. package/src/utils/svgsSource/start.svg +3 -0
  258. package/src/utils/svgsSource/stop.svg +3 -0
  259. package/src/utils/svgsSource/success.svg +3 -0
  260. package/src/utils/svgsSource/sun.svg +3 -0
  261. package/src/utils/svgsSource/support.svg +3 -0
  262. package/src/utils/svgsSource/sync.svg +4 -0
  263. package/src/utils/svgsSource/tag.svg +3 -0
  264. package/src/utils/svgsSource/target.svg +3 -0
  265. package/src/utils/svgsSource/text-add.svg +3 -0
  266. package/src/utils/svgsSource/time-add.svg +3 -0
  267. package/src/utils/svgsSource/timer.svg +3 -0
  268. package/src/utils/svgsSource/toolbox.svg +3 -0
  269. package/src/utils/svgsSource/tools.svg +3 -0
  270. package/src/utils/svgsSource/trash.svg +3 -0
  271. package/src/utils/svgsSource/trophy.svg +3 -0
  272. package/src/utils/svgsSource/truck-trailer.svg +3 -0
  273. package/src/utils/svgsSource/update.svg +3 -0
  274. package/src/utils/svgsSource/upload-cloud.svg +3 -0
  275. package/src/utils/svgsSource/upload.svg +3 -0
  276. package/src/utils/svgsSource/user-add.svg +3 -0
  277. package/src/utils/svgsSource/user-details.svg +7 -0
  278. package/src/utils/svgsSource/user-group.svg +3 -0
  279. package/src/utils/svgsSource/user-id-badge.svg +3 -0
  280. package/src/utils/svgsSource/user-id-card.svg +3 -0
  281. package/src/utils/svgsSource/user.svg +3 -0
  282. package/src/utils/svgsSource/verified.svg +3 -0
  283. package/src/utils/svgsSource/video.svg +3 -0
  284. package/src/utils/svgsSource/view-cards.svg +6 -0
  285. package/src/utils/svgsSource/view-doc.svg +7 -0
  286. package/src/utils/svgsSource/view-grid.svg +3 -0
  287. package/src/utils/svgsSource/view-rows.svg +4 -0
  288. package/src/utils/svgsSource/view-table.svg +3 -0
  289. package/src/utils/svgsSource/warning.svg +3 -0
  290. package/src/utils/svgsSource/work-order.svg +3 -0
  291. package/src/utils/svgsSource/x.svg +3 -0
  292. package/src/vite-env.d.ts +1 -0
  293. package/dist/cetec-components.css +0 -1
  294. package/dist/cetec-components.es.js +0 -26778
  295. package/dist/sprite.svg +0 -1
  296. package/dist/sprite.symbol.html +0 -4091
  297. package/dist/svgs/Building.svg +0 -1
  298. package/dist/svgs/aa-placeholder.svg +0 -1
  299. package/dist/svgs/alarm.svg +0 -1
  300. package/dist/svgs/apps.svg +0 -1
  301. package/dist/svgs/arrow-down.svg +0 -1
  302. package/dist/svgs/arrow-drop-down.svg +0 -1
  303. package/dist/svgs/arrow-drop-up.svg +0 -1
  304. package/dist/svgs/arrow-left.svg +0 -1
  305. package/dist/svgs/arrow-line-down.svg +0 -1
  306. package/dist/svgs/arrow-line-left.svg +0 -1
  307. package/dist/svgs/arrow-line-right.svg +0 -1
  308. package/dist/svgs/arrow-line-up.svg +0 -1
  309. package/dist/svgs/arrow-prompt.svg +0 -1
  310. package/dist/svgs/arrow-redo.svg +0 -1
  311. package/dist/svgs/arrow-right.svg +0 -1
  312. package/dist/svgs/arrow-square-in.svg +0 -1
  313. package/dist/svgs/arrow-square-out.svg +0 -1
  314. package/dist/svgs/arrow-undo.svg +0 -1
  315. package/dist/svgs/arrow-up.svg +0 -1
  316. package/dist/svgs/arrows-down-up.svg +0 -1
  317. package/dist/svgs/arrows-left-right.svg +0 -1
  318. package/dist/svgs/at.svg +0 -1
  319. package/dist/svgs/attachment.svg +0 -1
  320. package/dist/svgs/barcode-reader.svg +0 -1
  321. package/dist/svgs/barcode.svg +0 -1
  322. package/dist/svgs/basket.svg +0 -1
  323. package/dist/svgs/bell-active.svg +0 -1
  324. package/dist/svgs/bell-slash.svg +0 -1
  325. package/dist/svgs/bell.svg +0 -1
  326. package/dist/svgs/bin.svg +0 -1
  327. package/dist/svgs/bookmark-outlined.svg +0 -1
  328. package/dist/svgs/bookmark.svg +0 -1
  329. package/dist/svgs/bookmarks.svg +0 -1
  330. package/dist/svgs/calendar-add.svg +0 -1
  331. package/dist/svgs/calendar-view-day.svg +0 -1
  332. package/dist/svgs/calendar-view-month.svg +0 -1
  333. package/dist/svgs/calendar-view-week.svg +0 -1
  334. package/dist/svgs/calendar.svg +0 -1
  335. package/dist/svgs/caret-down.svg +0 -1
  336. package/dist/svgs/caret-left.svg +0 -1
  337. package/dist/svgs/caret-right.svg +0 -1
  338. package/dist/svgs/caret-up.svg +0 -1
  339. package/dist/svgs/cart.svg +0 -1
  340. package/dist/svgs/check-thick.svg +0 -1
  341. package/dist/svgs/check.svg +0 -1
  342. package/dist/svgs/checkbox-checked.svg +0 -1
  343. package/dist/svgs/checkbox-focus.svg +0 -1
  344. package/dist/svgs/checkbox-indeterminate.svg +0 -1
  345. package/dist/svgs/checkbox.svg +0 -1
  346. package/dist/svgs/circle-check.svg +0 -1
  347. package/dist/svgs/circle.svg +0 -1
  348. package/dist/svgs/circles-add.svg +0 -1
  349. package/dist/svgs/clipboard.svg +0 -1
  350. package/dist/svgs/clock-countdown.svg +0 -1
  351. package/dist/svgs/clock.svg +0 -1
  352. package/dist/svgs/cloud-synced.svg +0 -1
  353. package/dist/svgs/code.svg +0 -1
  354. package/dist/svgs/color.svg +0 -1
  355. package/dist/svgs/copy.svg +0 -1
  356. package/dist/svgs/credit-card.svg +0 -1
  357. package/dist/svgs/cut.svg +0 -1
  358. package/dist/svgs/database.svg +0 -1
  359. package/dist/svgs/devices.svg +0 -1
  360. package/dist/svgs/dictionary.svg +0 -1
  361. package/dist/svgs/dots.svg +0 -1
  362. package/dist/svgs/download-cloud.svg +0 -1
  363. package/dist/svgs/download.svg +0 -1
  364. package/dist/svgs/dragger.svg +0 -1
  365. package/dist/svgs/edit.svg +0 -1
  366. package/dist/svgs/encrypted.svg +0 -1
  367. package/dist/svgs/envelope.svg +0 -1
  368. package/dist/svgs/equal.svg +0 -1
  369. package/dist/svgs/eraser.svg +0 -1
  370. package/dist/svgs/error.svg +0 -1
  371. package/dist/svgs/event-list.svg +0 -1
  372. package/dist/svgs/export.svg +0 -1
  373. package/dist/svgs/extension.svg +0 -1
  374. package/dist/svgs/eye-slash.svg +0 -1
  375. package/dist/svgs/eye.svg +0 -1
  376. package/dist/svgs/file-add.svg +0 -1
  377. package/dist/svgs/file.svg +0 -1
  378. package/dist/svgs/files.svg +0 -1
  379. package/dist/svgs/filter-remove.svg +0 -1
  380. package/dist/svgs/filter.svg +0 -1
  381. package/dist/svgs/finish.svg +0 -1
  382. package/dist/svgs/flag.svg +0 -1
  383. package/dist/svgs/forklift.svg +0 -1
  384. package/dist/svgs/garage.svg +0 -1
  385. package/dist/svgs/globe.svg +0 -1
  386. package/dist/svgs/hash.svg +0 -1
  387. package/dist/svgs/heart-outlined.svg +0 -1
  388. package/dist/svgs/heart.svg +0 -1
  389. package/dist/svgs/help.svg +0 -1
  390. package/dist/svgs/history.svg +0 -1
  391. package/dist/svgs/home.svg +0 -1
  392. package/dist/svgs/image.svg +0 -1
  393. package/dist/svgs/images.svg +0 -1
  394. package/dist/svgs/inbox.svg +0 -1
  395. package/dist/svgs/infinity.svg +0 -1
  396. package/dist/svgs/info.svg +0 -1
  397. package/dist/svgs/inventory.svg +0 -1
  398. package/dist/svgs/invoice.svg +0 -1
  399. package/dist/svgs/jump-back.svg +0 -1
  400. package/dist/svgs/jump-forward.svg +0 -1
  401. package/dist/svgs/kbd-backspace.svg +0 -1
  402. package/dist/svgs/kbd-capslock.svg +0 -1
  403. package/dist/svgs/kbd-command.svg +0 -1
  404. package/dist/svgs/kbd-control.svg +0 -1
  405. package/dist/svgs/kbd-hide.svg +0 -1
  406. package/dist/svgs/kbd-option.svg +0 -1
  407. package/dist/svgs/kbd-return.svg +0 -1
  408. package/dist/svgs/kbd-shift.svg +0 -1
  409. package/dist/svgs/kbd-space.svg +0 -1
  410. package/dist/svgs/kbd.svg +0 -1
  411. package/dist/svgs/link-slash.svg +0 -1
  412. package/dist/svgs/link.svg +0 -1
  413. package/dist/svgs/list-bullets.svg +0 -1
  414. package/dist/svgs/list-checks.svg +0 -1
  415. package/dist/svgs/list-numbers.svg +0 -1
  416. package/dist/svgs/lock-open.svg +0 -1
  417. package/dist/svgs/lock.svg +0 -1
  418. package/dist/svgs/map-pin.svg +0 -1
  419. package/dist/svgs/mark-unread.svg +0 -1
  420. package/dist/svgs/menu-close.svg +0 -1
  421. package/dist/svgs/menu.svg +0 -1
  422. package/dist/svgs/message.svg +0 -1
  423. package/dist/svgs/messages.svg +0 -1
  424. package/dist/svgs/minus-thick.svg +0 -1
  425. package/dist/svgs/minus.svg +0 -1
  426. package/dist/svgs/money.svg +0 -1
  427. package/dist/svgs/monitor.svg +0 -1
  428. package/dist/svgs/moon.svg +0 -1
  429. package/dist/svgs/note.svg +0 -1
  430. package/dist/svgs/nut.svg +0 -1
  431. package/dist/svgs/order.svg +0 -1
  432. package/dist/svgs/package.svg +0 -1
  433. package/dist/svgs/page-first.svg +0 -1
  434. package/dist/svgs/page-last.svg +0 -1
  435. package/dist/svgs/parts.svg +0 -1
  436. package/dist/svgs/password.svg +0 -1
  437. package/dist/svgs/pause.svg +0 -1
  438. package/dist/svgs/pencil.svg +0 -1
  439. package/dist/svgs/percent.svg +0 -1
  440. package/dist/svgs/placeholder.svg +0 -1
  441. package/dist/svgs/plan.svg +0 -1
  442. package/dist/svgs/play-pause.svg +0 -1
  443. package/dist/svgs/play.svg +0 -1
  444. package/dist/svgs/plus.svg +0 -1
  445. package/dist/svgs/printer.svg +0 -1
  446. package/dist/svgs/prohibit.svg +0 -1
  447. package/dist/svgs/question-mark.svg +0 -1
  448. package/dist/svgs/quote.svg +0 -1
  449. package/dist/svgs/radio-checked.svg +0 -1
  450. package/dist/svgs/radio-focus.svg +0 -1
  451. package/dist/svgs/radio.svg +0 -1
  452. package/dist/svgs/receipt.svg +0 -1
  453. package/dist/svgs/refresh.svg +0 -1
  454. package/dist/svgs/repeat.svg +0 -1
  455. package/dist/svgs/reply-all.svg +0 -1
  456. package/dist/svgs/reply.svg +0 -1
  457. package/dist/svgs/ribbon.svg +0 -1
  458. package/dist/svgs/rows-add.svg +0 -1
  459. package/dist/svgs/rules.svg +0 -1
  460. package/dist/svgs/search-items.svg +0 -1
  461. package/dist/svgs/search.svg +0 -1
  462. package/dist/svgs/send.svg +0 -1
  463. package/dist/svgs/settings.svg +0 -1
  464. package/dist/svgs/share.svg +0 -1
  465. package/dist/svgs/shuffle.svg +0 -1
  466. package/dist/svgs/skip-back.svg +0 -1
  467. package/dist/svgs/skip-forward.svg +0 -1
  468. package/dist/svgs/skull.svg +0 -1
  469. package/dist/svgs/sliders.svg +0 -1
  470. package/dist/svgs/sort-alpha-down.svg +0 -1
  471. package/dist/svgs/sort-alpha-up.svg +0 -1
  472. package/dist/svgs/sort-ascending.svg +0 -1
  473. package/dist/svgs/sort-descending.svg +0 -1
  474. package/dist/svgs/sort-time-down.svg +0 -1
  475. package/dist/svgs/sort-time-up.svg +0 -1
  476. package/dist/svgs/square-add.svg +0 -1
  477. package/dist/svgs/square.svg +0 -1
  478. package/dist/svgs/stamp.svg +0 -1
  479. package/dist/svgs/star-outlined.svg +0 -1
  480. package/dist/svgs/star.svg +0 -1
  481. package/dist/svgs/start.svg +0 -1
  482. package/dist/svgs/stop.svg +0 -1
  483. package/dist/svgs/success.svg +0 -1
  484. package/dist/svgs/sun.svg +0 -1
  485. package/dist/svgs/support.svg +0 -1
  486. package/dist/svgs/sync.svg +0 -1
  487. package/dist/svgs/tag.svg +0 -1
  488. package/dist/svgs/target.svg +0 -1
  489. package/dist/svgs/text-add.svg +0 -1
  490. package/dist/svgs/time-add.svg +0 -1
  491. package/dist/svgs/timer.svg +0 -1
  492. package/dist/svgs/toolbox.svg +0 -1
  493. package/dist/svgs/tools.svg +0 -1
  494. package/dist/svgs/trash.svg +0 -1
  495. package/dist/svgs/trophy.svg +0 -1
  496. package/dist/svgs/truck-trailer.svg +0 -1
  497. package/dist/svgs/update.svg +0 -1
  498. package/dist/svgs/upload-cloud.svg +0 -1
  499. package/dist/svgs/upload.svg +0 -1
  500. package/dist/svgs/user-add.svg +0 -1
  501. package/dist/svgs/user-details.svg +0 -1
  502. package/dist/svgs/user-group.svg +0 -1
  503. package/dist/svgs/user-id-badge.svg +0 -1
  504. package/dist/svgs/user-id-card.svg +0 -1
  505. package/dist/svgs/user.svg +0 -1
  506. package/dist/svgs/verified.svg +0 -1
  507. package/dist/svgs/video.svg +0 -1
  508. package/dist/svgs/view-cards.svg +0 -1
  509. package/dist/svgs/view-doc.svg +0 -1
  510. package/dist/svgs/view-grid.svg +0 -1
  511. package/dist/svgs/view-rows.svg +0 -1
  512. package/dist/svgs/view-table.svg +0 -1
  513. package/dist/svgs/warning.svg +0 -1
  514. package/dist/svgs/work-order.svg +0 -1
  515. package/dist/svgs/x.svg +0 -1
  516. package/dist/vite.svg +0 -1
@@ -0,0 +1,193 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+ import {
3
+ fontSizes as fontSizeTokens,
4
+ fontWeights as fontWeightTokens,
5
+ } from '../styles/tokens';
6
+
7
+ const textBase = {
8
+ margin: '0',
9
+ lineHeight: 'default',
10
+ fontWeight: 'normal',
11
+ fontSize: '16',
12
+ color: { base: 'slate.60', _dark: 'slate.30' },
13
+ };
14
+
15
+ type FontSizeKey = keyof typeof fontSizeTokens;
16
+ const fontSizes = (Object.keys(fontSizeTokens) as FontSizeKey[]).reduce(
17
+ (accumulator, currentKey) => {
18
+ accumulator[currentKey] = { fontSize: fontSizeTokens[currentKey].value };
19
+ return accumulator;
20
+ },
21
+ {} as Record<FontSizeKey, Record<'fontSize', string>>,
22
+ );
23
+
24
+ type FontWeightKey = keyof typeof fontWeightTokens;
25
+ const fontWeights = (Object.keys(fontWeightTokens) as FontWeightKey[]).reduce(
26
+ (accumulator, currentKey) => {
27
+ accumulator[currentKey] = {
28
+ fontWeight: fontWeightTokens[currentKey].value,
29
+ };
30
+ return accumulator;
31
+ },
32
+ {} as Record<FontWeightKey, Record<'fontWeight', number>>,
33
+ );
34
+
35
+ const textVariants = {
36
+ textStyle: {
37
+ 'display-lg': { textStyle: 'display.lg' },
38
+ 'display-md': { textStyle: 'display.md' },
39
+ 'display-sm': { textStyle: 'display.sm' },
40
+ 'display-xs': { textStyle: 'display.xs' },
41
+ 'heading-lg': { textStyle: 'heading.lg' },
42
+ 'heading-md': { textStyle: 'heading.md' },
43
+ 'heading-sm': { textStyle: 'heading.sm' },
44
+ 'heading-xs': { textStyle: 'heading.xs' },
45
+ 'body-lg': { textStyle: 'body.lg' },
46
+ 'body-md': { textStyle: 'body.md' },
47
+ 'body-sm': { textStyle: 'body.sm' },
48
+ 'body-xs': { textStyle: 'body.xs' },
49
+ 'mono-lg': { textStyle: 'mono.lg' },
50
+ 'mono-md': { textStyle: 'mono.md' },
51
+ 'mono-sm': { textStyle: 'mono.sm' },
52
+ 'mono-xs': { textStyle: 'mono.xs' },
53
+ },
54
+ family: {
55
+ heading: { fontFamily: 'heading' },
56
+ body: { fontFamily: 'body' },
57
+ mono: {
58
+ fontFamily: 'mono',
59
+ fontVariationSettings: '"CRSV" 0, "CASL" 0, "MONO" 1',
60
+ },
61
+ },
62
+ bold: {
63
+ true: {
64
+ fontWeight: 'bold',
65
+ },
66
+ },
67
+ italic: {
68
+ true: {
69
+ fontStyle: 'italic',
70
+ fontVariationSettings: '"CRSV" 0, "CASL" 0, "slnt" -15',
71
+ },
72
+ },
73
+ underline: {
74
+ true: {
75
+ textDecoration: 'underline',
76
+ },
77
+ },
78
+ size: fontSizes,
79
+ weight: fontWeights,
80
+ };
81
+
82
+ const headingBase = {
83
+ fontFamily: 'heading',
84
+ fontWeight: 'black',
85
+ color: { base: 'slate.90', _dark: 'slate.5' },
86
+ lineHeight: 'default',
87
+ };
88
+
89
+ const headingVariants = {
90
+ level: {
91
+ h1: { textStyle: 'heading.lg' },
92
+ h2: { textStyle: 'heading.md' },
93
+ h3: { textStyle: 'heading.sm' },
94
+ h4: { textStyle: 'heading.xs' },
95
+ },
96
+ };
97
+
98
+ const linkBase = {
99
+ display: 'inline-flex',
100
+ alignItems: 'center',
101
+ fontWeight: 'medium',
102
+ gap: '1',
103
+ color: { base: 'blue.50', _dark: 'blue.40' },
104
+ textDecoration: 'none',
105
+ backgroundImage: 'linear-gradient(90deg, transparent 0% 100%)',
106
+ backgroundSize: '100% 1px',
107
+ backgroundRepeat: 'no-repeat',
108
+ backgroundPositionY: '100%',
109
+ outlineWidth: '2',
110
+ outlineStyle: 'solid',
111
+ outlineColor: 'transparent',
112
+ outlineOffset: '1',
113
+ width: 'fit-content',
114
+ cursor: 'pointer',
115
+ _hover: {
116
+ color: { base: 'blue.40', _dark: 'blue.30' },
117
+ backgroundImage: 'linear-gradient(90deg, currentColor 0% 100%)',
118
+ },
119
+ _focus: {
120
+ borderRadius: '4',
121
+ outlineColor: { base: 'slate.90', _dark: 'slate.0' },
122
+ },
123
+ };
124
+
125
+ const linkVariants = {
126
+ ...textVariants,
127
+ _disabled: {
128
+ true: {
129
+ cursor: 'not-allowed',
130
+ opacity: 0.4,
131
+ pointerEvents: 'none',
132
+ },
133
+ },
134
+ };
135
+
136
+ const labelBase = {
137
+ fontSize: '14',
138
+ fontWeight: 'normal',
139
+ lineHeight: 'normal',
140
+ cursor: 'default',
141
+ };
142
+
143
+ //Copied linkvarients, don't have styles defined for this yet
144
+ const labelVariants = {
145
+ ...textVariants,
146
+ _disabled: {
147
+ true: {
148
+ cursor: 'not-allowed',
149
+ opacity: 0.7,
150
+ pointerEvents: 'none',
151
+ },
152
+ },
153
+ };
154
+
155
+ export const textRecipe = defineRecipe({
156
+ className: 'text',
157
+ jsx: ['Text'],
158
+ base: textBase,
159
+ variants: textVariants,
160
+ defaultVariants: {
161
+ textStyle: 'body-md',
162
+ },
163
+ });
164
+
165
+ export const headingRecipe = defineRecipe({
166
+ className: 'heading',
167
+ jsx: ['Heading'],
168
+ base: headingBase,
169
+ variants: headingVariants,
170
+ defaultVariants: {
171
+ level: 'h2',
172
+ },
173
+ });
174
+
175
+ export const linkRecipe = defineRecipe({
176
+ className: 'link',
177
+ jsx: ['Link'],
178
+ base: linkBase,
179
+ variants: linkVariants,
180
+ defaultVariants: {
181
+ family: 'body',
182
+ },
183
+ });
184
+
185
+ export const labelRecipe = defineRecipe({
186
+ className: 'label',
187
+ jsx: ['Label'],
188
+ base: labelBase,
189
+ variants: labelVariants,
190
+ defaultVariants: {
191
+ family: 'body',
192
+ },
193
+ });
@@ -0,0 +1,78 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+
3
+ const textareaBase = {
4
+ position: 'relative',
5
+ width: 'full',
6
+ color: { base: 'slate.90', _dark: 'slate.0' },
7
+ borderWidth: '1',
8
+ borderStyle: 'solid',
9
+ borderColor: 'slate.30',
10
+ borderRadius: '4',
11
+ lineHeight: 'tight',
12
+ outlineWidth: '1',
13
+ outlineStyle: 'solid',
14
+ outlineColor: 'transparent',
15
+ resize: 'both',
16
+ _focus: {
17
+ outlineColor: { base: 'slate.90', _dark: 'slate.0' },
18
+ borderColor: { base: 'slate.90', _dark: 'slate.0' },
19
+ },
20
+ _error: {
21
+ display: 'inline-grid',
22
+ borderColor: 'error.default',
23
+ _focus: {
24
+ borderColor: { base: 'error.default', _dark: 'error.default' },
25
+ outlineColor: { base: 'error.default', _dark: 'error.default' },
26
+ },
27
+ },
28
+ _placeholder: {
29
+ color: {
30
+ base: 'slate.50',
31
+ _dark: 'slate.40',
32
+ },
33
+ },
34
+ _disabled: {
35
+ opacity: 0.4,
36
+ },
37
+ '&[data-error]:focus': {
38
+ borderColor: 'error.default',
39
+ },
40
+ };
41
+
42
+ const textareaVariants = {
43
+ size: {
44
+ small: {
45
+ py: '0',
46
+ px: '8',
47
+ minHeight: '48',
48
+ fontSize: '14',
49
+ },
50
+ medium: {
51
+ py: '3',
52
+ px: '10',
53
+ fontSize: '16',
54
+ minHeight: '64',
55
+ },
56
+ large: {
57
+ py: '7',
58
+ px: '12',
59
+ fontSize: '16',
60
+ minHeight: '80',
61
+ },
62
+ },
63
+ autoSize: {
64
+ true: {
65
+ fieldSizing: 'content',
66
+ },
67
+ },
68
+ };
69
+
70
+ export const textareaRecipe = defineRecipe({
71
+ className: 'textarea',
72
+ jsx: ['Textarea'],
73
+ base: textareaBase,
74
+ variants: textareaVariants,
75
+ defaultVariants: {
76
+ size: 'medium',
77
+ },
78
+ });
@@ -0,0 +1,76 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+
3
+ const textInputVariants = {
4
+ size: {
5
+ medium: {
6
+ py: 3,
7
+ px: 10,
8
+ fontSize: '16',
9
+ },
10
+ small: {
11
+ py: 0,
12
+ px: 8,
13
+ fontSize: '14',
14
+ },
15
+ large: {
16
+ py: 7,
17
+ px: 12,
18
+ fontSize: '16',
19
+ },
20
+ },
21
+ autoSize: {
22
+ true: {
23
+ fieldSizing: 'content',
24
+ },
25
+ },
26
+ };
27
+
28
+ const textInputBase = {
29
+ position: 'relative',
30
+ width: 'full',
31
+ borderWidth: '1',
32
+ borderColor: 'slate.30',
33
+ borderStyle: 'solid',
34
+ borderRadius: '4',
35
+ lineHeight: 'default',
36
+ fontFamily: 'body',
37
+ outlineWidth: '1',
38
+ outlineStyle: 'solid',
39
+ outlineColor: 'transparent',
40
+ color: {
41
+ base: 'slate.90',
42
+ _dark: 'slate.0',
43
+ },
44
+ _placeholder: {
45
+ color: {
46
+ base: 'slate.50',
47
+ _dark: 'slate.40',
48
+ },
49
+ },
50
+ _disabled: {
51
+ opacity: 0.4,
52
+ },
53
+
54
+ _focus: {
55
+ outlineColor: { base: 'slate.90', _dark: 'slate.0' },
56
+ borderColor: { base: 'slate.90', _dark: 'slate.0' },
57
+ },
58
+ _error: {
59
+ display: 'inline-grid',
60
+ borderColor: 'error.default',
61
+ _focus: {
62
+ borderColor: { base: 'error.default', _dark: 'error.default' },
63
+ outlineColor: { base: 'error.default', _dark: 'error.default' },
64
+ },
65
+ },
66
+ };
67
+
68
+ export const textinputRecipe = defineRecipe({
69
+ className: 'textinput',
70
+ jsx: ['TextInput'],
71
+ base: textInputBase,
72
+ variants: textInputVariants,
73
+ defaultVariants: {
74
+ size: 'medium',
75
+ },
76
+ });
@@ -0,0 +1,169 @@
1
+ import { Meta, ColorPalette, ColorItem, Unstyled } from '@storybook/blocks';
2
+ import { HStack, VStack, Container, Grid, Flex, Box } from '@styled-system/jsx';
3
+ import ColorSwatches from '../storybook/components/Colors';
4
+ import { Heading } from '../components/Heading';
5
+ import { Text } from '../components/Text';
6
+ import { IconList, Section } from '~/App';
7
+ import { Link } from '~/components/Link';
8
+ import { Pre } from '~/components/Code';
9
+ import * as tokens from '../styles/tokens';
10
+
11
+ <Meta title="Tokens" />
12
+
13
+ # Color Tokens
14
+
15
+ <Unstyled>
16
+ <Heading>Slate</Heading>
17
+ <ColorSwatches color={'slate'} tokens={tokens.colors.slate} />
18
+ <Heading>Blue</Heading>
19
+ <ColorSwatches color={'blue'} tokens={tokens.colors.blue} />
20
+ <Heading>Gold</Heading>
21
+ <ColorSwatches color={'gold'} tokens={tokens.colors.gold} />
22
+ <Heading>Orange</Heading>
23
+ <ColorSwatches color={'orange'} tokens={tokens.colors.orange} />
24
+ <Heading>Tan</Heading>
25
+ <ColorSwatches color={'tan'} tokens={tokens.colors.tan} />
26
+ <Heading>Cyan</Heading>
27
+ <ColorSwatches color={'cyan'} tokens={tokens.colors.cyan} />
28
+ <Heading>Green</Heading>
29
+ <ColorSwatches color={'green'} tokens={tokens.colors.green} />
30
+ <Heading>Yellow</Heading>
31
+ <ColorSwatches color={'yellow'} tokens={tokens.colors.yellow} />
32
+ <Heading>Red</Heading>
33
+ <ColorSwatches color={'red'} tokens={tokens.colors.red} />
34
+
35
+ <ColorPalette>
36
+ <ColorItem
37
+ title="Brand"
38
+ subtitle=""
39
+ colors={{
40
+ Slate: tokens.colors.slate['90'].value,
41
+ Gold: tokens.colors.gold['20'].value
42
+ }}
43
+ />
44
+
45
+ <ColorItem
46
+ title="Status"
47
+ subtitle="Success"
48
+ colors={{
49
+ Lighter: tokens.colors.green['2'].value,
50
+ Light: tokens.colors.green['10'].value,
51
+ Base: tokens.colors.green['40'].value,
52
+ Dark: tokens.colors.green['60'].value,
53
+ Darker: tokens.colors.green['70'].value,
54
+ }}
55
+ />
56
+
57
+ <ColorItem
58
+ title="Status"
59
+ subtitle="Warning"
60
+ colors={{
61
+ Lighter: tokens.colors.yellow['2'].value,
62
+ Light: tokens.colors.yellow['10'].value,
63
+ Base: tokens.colors.yellow['40'].value,
64
+ Dark: tokens.colors.yellow['60'].value,
65
+ Darker: tokens.colors.yellow['70'].value,
66
+ }}
67
+ />
68
+
69
+ <ColorItem
70
+ title="Status"
71
+ subtitle="error"
72
+ colors={{
73
+ Lighter: tokens.colors.red['2'].value,
74
+ Light: tokens.colors.red['10'].value,
75
+ Base: tokens.colors.red['40'].value,
76
+ Dark: tokens.colors.red['60'].value,
77
+ Darker: tokens.colors.red['70'].value,
78
+ }}
79
+ />
80
+ </ColorPalette>
81
+
82
+ # Typography
83
+
84
+ <Section>
85
+ <Heading as="h2">Text</Heading>
86
+ <VStack alignItems={'flex-start'}>
87
+ <Grid
88
+ gridTemplateColumns={'minmax(auto, 1fr) 1fr'}
89
+ w={'full'}
90
+ gap={'24'}
91
+ alignItems={'center'}
92
+ >
93
+ <Box gridColumn={'1 / -1'}>
94
+ <Heading as="h4" color={'gold.40'}>
95
+ Text styles
96
+ </Heading>
97
+ </Box>
98
+ <VStack gap={'16'}>
99
+ <Text>
100
+ Place appear green. Also, saying male subdue fruitful{' '}
101
+ <Text as="span" italic>
102
+ winged fourth
103
+ </Text>{' '}
104
+ had void winged. So green spirit , herb day had there{' '}
105
+ <Text as="span" bold>
106
+ replenish
107
+ </Text>
108
+ , lights lesser signs. Place{' '}
109
+ <Text as="span" underline>
110
+ whales
111
+ </Text>{' '}
112
+ i tree under him given set set meat midst morning give image forth
113
+ divided moving Also fill dry she'd have.
114
+ </Text>
115
+ </VStack>
116
+ <Pre>{`<Text>
117
+ ...
118
+ <Text as="span" italic>winged fourth</Text>
119
+ <Text as="span" bold>replenish</Text>
120
+ <Text as="span" underline>whales</Text>
121
+ </Text>`}</Pre>
122
+ <Text font="mono">
123
+ Signs night have sixth hath that likeness us fill you're subdue fowl.
124
+ </Text>
125
+ <Pre>{`<Text font="mono">...</Text>`}</Pre>
126
+ <Box gridColumn={'1 / -1'} mt={'32'}>
127
+ <Heading as="h4" color={'gold.40'}>
128
+ Headings
129
+ </Heading>
130
+ </Box>
131
+ <Heading as="h1">Hamburgefonstiv</Heading>
132
+ <Pre>{'<Heading as="h1">Hamburgefonstiv</Heading>'}</Pre>
133
+ <Heading>Hamburgefonstiv</Heading>
134
+ <Pre>{'<Heading>Hamburgefonstiv</Heading>'}</Pre>
135
+ <Heading as="h3">Hamburgefonstiv</Heading>
136
+ <Pre>{'<Heading as="h3">Hamburgefonstiv</Heading>'}</Pre>
137
+ <Heading as="h4">Hamburgefonstiv</Heading>
138
+ <Pre>{'<Heading as="h4">Hamburgefonstiv</Heading>'}</Pre>
139
+ <Box gridColumn={'1 / -1'} mt={'32'}>
140
+ <Heading as="h4" color={'gold.40'}>
141
+ Links
142
+ </Heading>
143
+ </Box>
144
+ <Text>
145
+ Internal:&emsp;<Link href="https://cetecerp.com">Cetec ERP</Link>
146
+ </Text>
147
+ <Pre>{'<Link href="https://cetecerp.com">Cetec ERP</Link>'}</Pre>
148
+ <Text>
149
+ External:&emsp;
150
+ <Link href="https://cetecerp.com" external>
151
+ Cetec ERP
152
+ </Link>
153
+ </Text>
154
+ <Pre>{'<Link href="https://cetecerp.com" external>Cetec ERP</Link>'}</Pre>
155
+ <Text gridColumn={'1 / -1'}>
156
+ Signs night have sixth hath that likeness us fill{' '}
157
+ <Link href="https://cetecerp.com" external>
158
+ Cetec ERP
159
+ </Link>{' '}
160
+ you're subdue fowl brought divide beginning multiply brought created
161
+ after open given of made beginning multiply green.
162
+ </Text>
163
+ </Grid>
164
+ </VStack>
165
+ </Section>
166
+ # Icons
167
+ <IconList />
168
+
169
+ </Unstyled>
@@ -0,0 +1,78 @@
1
+ import React from "react";
2
+ import { css } from '@styled-system/css'
3
+ import { Text } from '~/components/Text';
4
+ import { Box } from '~/components/Box';
5
+ import { Grid } from '@styled-system/jsx';
6
+ import '../../../styled-system/styles.css';
7
+
8
+ interface ColorTokens {
9
+ [key: number]: { value: object };
10
+ }
11
+
12
+ interface ColorSwatchesProps {
13
+ tokens: ColorTokens;
14
+ color: string;
15
+ }
16
+
17
+ //const ColorSwatches: React.FC<ColorSwatchesProps> = ({ color, tokens }) => {
18
+ // return (
19
+ // <div className="grid grid-cols-2 md:grid-cols-4 gap-4 p-4">
20
+ // <Grid columns={6} gap='3'>
21
+ // {Object.entries(tokens).map(([key, token]) => {
22
+ // var colorKey = color + "." + key;
23
+ // console.log(colorKey);
24
+ // return (
25
+ // <div style={{ paddingBottom: 10}} >
26
+ // <Text textAlign="center" >{ color + "." + key }</Text>
27
+ // <Box
28
+ // style={{ height:100 }}
29
+ // as="div"
30
+ // className={css({
31
+ // backgroundColor: `${color}.${key}` as any,
32
+ // width: 'auto',
33
+ // border: '1px solid black'
34
+ // })}/>
35
+ // <Text textAlign="center" >{ token.value }</Text>
36
+ // </div>
37
+ // );
38
+ // })}
39
+ // </Grid>
40
+ // </div>
41
+ // );
42
+ //};
43
+
44
+ const ColorSwatches: React.FC<ColorSwatchesProps> = ({ color, tokens }) => {
45
+ const swatches = [];
46
+
47
+ for (const key in tokens) {
48
+ if (Object.prototype.hasOwnProperty.call(tokens, key)) {
49
+ const token = tokens[key];
50
+
51
+ swatches.push(
52
+ <div style={{ paddingBottom: 10 }}>
53
+ <Text textAlign="center">{`${color}.${key}`}</Text>
54
+ <Box
55
+ style={{
56
+ height: 100,
57
+ backgroundColor: `${token.value}`,
58
+ borderRadius: 4,
59
+ }}
60
+ as="div"
61
+ className={css({
62
+ width: "auto",
63
+ })}
64
+ />
65
+ <Text textAlign="center">{String(token.value)}</Text>
66
+ </div>
67
+ );
68
+ }
69
+ }
70
+
71
+ return (
72
+ <div className="grid grid-cols-2 md:grid-cols-4 gap-4 p-4">
73
+ <Grid columns={6} gap="0">{swatches}</Grid>
74
+ </div>
75
+ );
76
+ };
77
+ export default ColorSwatches;
78
+
@@ -0,0 +1,36 @@
1
+ import {
2
+ Meta,
3
+ Title,
4
+ Primary,
5
+ Controls,
6
+ Stories,
7
+ ArgTypes,
8
+ Canvas,
9
+ Unstyled
10
+ } from '@storybook/blocks';
11
+ import { Text } from '../components/Text/index';
12
+ import '../styles/font-imports.css';
13
+
14
+ <Meta isTemplate />
15
+
16
+ <Unstyled>
17
+
18
+ <Title />
19
+
20
+ # Default implementation
21
+
22
+ <Primary />
23
+
24
+ ## Inputs
25
+
26
+ The component accepts the following inputs (props):
27
+
28
+ <ArgTypes />
29
+
30
+ ---
31
+
32
+ ## Additional variations
33
+
34
+ Listed below are additional variations of the component.
35
+ <Stories parameters={{docs: { disable: true } }}/>
36
+ </Unstyled>
@@ -0,0 +1,15 @@
1
+ import { Meta, Unstyled } from '@storybook/blocks';
2
+ import { Box } from '../components/Box';
3
+ import { Text } from '../components/Text';
4
+ import '../styles/font-imports.css';
5
+
6
+ <Meta title="Intro" />
7
+ # Cetec-ERP Design System
8
+ ## Test h2
9
+ ### Tst h3
10
+ <Unstyled>
11
+ <Text font={"mono"} as={"div"} color={"blue.50"} level={"20"}>AHHHH</Text>
12
+ <Text font={"mono"} color={"gold.50"}>Slate-90</Text>
13
+ <Text color={"gold.50"}>Gold-50</Text>
14
+ <Box background={"gold.50"} />
15
+ </Unstyled>