@rovula/ui 0.0.21 → 0.0.22

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 (299) hide show
  1. package/dist/cjs/bundle.css +155 -495
  2. package/dist/cjs/bundle.js +3 -3
  3. package/dist/cjs/bundle.js.map +1 -1
  4. package/dist/cjs/types/components/ActionButton/ActionButton.stories.d.ts +7 -7
  5. package/dist/cjs/types/components/Button/Button.d.ts +1 -1
  6. package/dist/cjs/types/components/Button/Button.styles.d.ts +1 -1
  7. package/dist/cjs/types/components/Button/Buttons.stories.d.ts +13 -13
  8. package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +60 -60
  9. package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +64 -64
  10. package/dist/cjs/types/components/Icon/Icon.d.ts +11 -0
  11. package/dist/cjs/types/components/Icon/Icon.stories.d.ts +508 -0
  12. package/dist/cjs/types/components/Icon/Icon.styles.d.ts +4 -0
  13. package/dist/cjs/types/components/Input/Input.stories.d.ts +115 -115
  14. package/dist/cjs/types/components/Label/Label.stories.d.ts +51 -51
  15. package/dist/cjs/types/components/RadioGroup/RadioGroup.stories.d.ts +54 -54
  16. package/dist/cjs/types/components/Search/Search.stories.d.ts +64 -64
  17. package/dist/cjs/types/components/Slider/Slider.d.ts +5 -0
  18. package/dist/cjs/types/components/Slider/Slider.stories.d.ts +303 -0
  19. package/dist/cjs/types/components/Switch/Switch.d.ts +4 -0
  20. package/dist/cjs/types/components/Switch/Switch.stories.d.ts +305 -0
  21. package/dist/cjs/types/components/Table/Table.stories.d.ts +7 -7
  22. package/dist/cjs/types/components/Tabs/Tabs.d.ts +12 -3
  23. package/dist/cjs/types/components/Tabs/Tabs.stories.d.ts +18 -0
  24. package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +62 -62
  25. package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +1 -1
  26. package/dist/cjs/types/icons/heroIconConfig.d.ts +1 -0
  27. package/dist/cjs/types/icons/iconConfig.d.ts +2 -0
  28. package/dist/cjs/types/icons/iconRegistry.d.ts +19 -0
  29. package/dist/cjs/types/icons/index.d.ts +1 -0
  30. package/dist/cjs/types/icons/material-icon/outline/ChevronDownIcon.d.ts +3 -0
  31. package/dist/cjs/types/icons/material-icon/outline/CollapseContentIcon.d.ts +3 -0
  32. package/dist/cjs/types/icons/material-icon/outline/ContentCopyIcon.d.ts +3 -0
  33. package/dist/cjs/types/icons/material-icon/outline/ContentPasteIcon.d.ts +3 -0
  34. package/dist/cjs/types/icons/material-icon/outline/DataTableIcon.d.ts +3 -0
  35. package/dist/cjs/types/icons/material-icon/outline/ExpandCircleDownIcon.d.ts +3 -0
  36. package/dist/cjs/types/icons/material-icon/outline/ExpandCircleRightIcon.d.ts +3 -0
  37. package/dist/cjs/types/icons/material-icon/outline/ExpandCircleUpIcon.d.ts +3 -0
  38. package/dist/cjs/types/icons/material-icon/outline/ExpandContentIcon.d.ts +3 -0
  39. package/dist/cjs/types/icons/material-icon/outline/InterestsIcon.d.ts +3 -0
  40. package/dist/cjs/types/icons/material-icon/outline/SaveIcon.d.ts +3 -0
  41. package/dist/cjs/types/icons/material-icon/outline/TableChartIcon.d.ts +3 -0
  42. package/dist/cjs/types/icons/material-icon/outline/index.d.ts +12 -0
  43. package/dist/cjs/types/icons/material-icon/solid/ChevronDownIcon.d.ts +3 -0
  44. package/dist/cjs/types/icons/material-icon/solid/CollapseContentIcon.d.ts +3 -0
  45. package/dist/cjs/types/icons/material-icon/solid/ContentCopyIcon.d.ts +3 -0
  46. package/dist/cjs/types/icons/material-icon/solid/ContentPasteIcon.d.ts +3 -0
  47. package/dist/cjs/types/icons/material-icon/solid/DataTableIcon.d.ts +3 -0
  48. package/dist/cjs/types/icons/material-icon/solid/ExpandCircleDownIcon.d.ts +3 -0
  49. package/dist/cjs/types/icons/material-icon/solid/ExpandCircleRightIcon.d.ts +3 -0
  50. package/dist/cjs/types/icons/material-icon/solid/ExpandCircleUpIcon.d.ts +3 -0
  51. package/dist/cjs/types/icons/material-icon/solid/ExpandContentIcon.d.ts +3 -0
  52. package/dist/cjs/types/icons/material-icon/solid/InterestsIcon.d.ts +3 -0
  53. package/dist/cjs/types/icons/material-icon/solid/SaveIcon.d.ts +3 -0
  54. package/dist/cjs/types/icons/material-icon/solid/TableChartIcon.d.ts +3 -0
  55. package/dist/cjs/types/icons/material-icon/solid/index.d.ts +12 -0
  56. package/dist/cjs/types/icons/materialIconConfig.d.ts +1 -0
  57. package/dist/cjs/types/icons/type.d.ts +8 -0
  58. package/dist/cjs/types/icons/utils.d.ts +1 -0
  59. package/dist/cjs/types/index.d.ts +4 -0
  60. package/dist/components/ActionButton/ActionButton.js +8 -19
  61. package/dist/components/ActionButton/ActionButton.stories.js +12 -22
  62. package/dist/components/ActionButton/ActionButton.styles.js +33 -8
  63. package/dist/components/AlertDialog/Alert.stories.js +5 -16
  64. package/dist/components/AlertDialog/AlertDialog.js +27 -38
  65. package/dist/components/Avatar/Avatar.js +7 -8
  66. package/dist/components/Avatar/Avatar.stories.js +11 -22
  67. package/dist/components/Avatar/Avatar.styles.js +1 -1
  68. package/dist/components/Avatar/AvatarBase.js +9 -20
  69. package/dist/components/Avatar/AvatarGroup.js +9 -10
  70. package/dist/components/Avatar/AvatarGroup.stories.js +9 -20
  71. package/dist/components/Button/Button.js +4 -15
  72. package/dist/components/Button/Button.styles.js +1 -1
  73. package/dist/components/Button/Buttons.stories.js +18 -29
  74. package/dist/components/Calendar/Calendar.js +3 -14
  75. package/dist/components/Calendar/Calendar.stories.js +6 -17
  76. package/dist/components/Checkbox/Checkbox.js +3 -14
  77. package/dist/components/Checkbox/Checkbox.stories.js +12 -23
  78. package/dist/components/Collapsible/Collapsible.js +14 -17
  79. package/dist/components/Collapsible/Collapsible.stories.js +9 -20
  80. package/dist/components/Collapsible/Collapsible.styles.js +4 -4
  81. package/dist/components/Collapsible/CollapsibleContext.js +9 -10
  82. package/dist/components/DataTable/DataTable.js +25 -26
  83. package/dist/components/DataTable/DataTable.stories.js +10 -21
  84. package/dist/components/DatePicker/DatePicker.js +4 -20
  85. package/dist/components/DatePicker/DatePicker.stories.js +6 -17
  86. package/dist/components/Dialog/Dialog.js +22 -33
  87. package/dist/components/Dialog/Dialog.stories.js +8 -19
  88. package/dist/components/Dropdown/Dropdown.js +26 -37
  89. package/dist/components/Dropdown/Dropdown.stories.js +36 -55
  90. package/dist/components/Dropdown/Dropdown.styles.js +3 -3
  91. package/dist/components/Form/Form.js +26 -87
  92. package/dist/components/Form/Text.js +2 -3
  93. package/dist/components/Form/TextInput.js +2 -3
  94. package/dist/components/Icon/Icon.js +37 -0
  95. package/dist/components/Icon/Icon.stories.js +356 -0
  96. package/dist/components/Icon/Icon.styles.js +25 -0
  97. package/dist/components/Input/Input.js +9 -20
  98. package/dist/components/Input/Input.stories.js +6 -17
  99. package/dist/components/Input/Input.styles.js +1 -1
  100. package/dist/components/Label/Label.js +3 -14
  101. package/dist/components/Label/Label.stories.js +5 -16
  102. package/dist/components/Label/Label.styles.js +1 -1
  103. package/dist/components/Loading/Loading.js +5 -17
  104. package/dist/components/Loading/Loading.stories.js +6 -17
  105. package/dist/components/Navbar/Navbar.js +3 -4
  106. package/dist/components/Navbar/Navbar.stories.js +8 -19
  107. package/dist/components/Popover/Popover.js +5 -16
  108. package/dist/components/Popover/Popover.stories.js +5 -16
  109. package/dist/components/ProgressBar/ProgressBar.js +8 -9
  110. package/dist/components/ProgressBar/ProgressBar.stories.js +14 -27
  111. package/dist/components/RadioGroup/RadioGroup.js +6 -17
  112. package/dist/components/RadioGroup/RadioGroup.stories.js +9 -20
  113. package/dist/components/Search/Search.js +2 -13
  114. package/dist/components/Search/Search.stories.js +10 -21
  115. package/dist/components/Slider/Slider.js +22 -0
  116. package/dist/components/Slider/Slider.stories.js +33 -0
  117. package/dist/components/Switch/Switch.js +22 -0
  118. package/dist/components/Switch/Switch.stories.js +32 -0
  119. package/dist/components/Table/Datagrid.js +2 -3
  120. package/dist/components/Table/Table.js +24 -35
  121. package/dist/components/Table/Table.stories.js +5 -16
  122. package/dist/components/Tabs/Tabs.js +56 -9
  123. package/dist/components/Tabs/Tabs.stories.js +13 -24
  124. package/dist/components/Text/Text.js +3 -4
  125. package/dist/components/Text/Text.stories.js +12 -23
  126. package/dist/components/TextInput/TextInput.js +30 -41
  127. package/dist/components/TextInput/TextInput.stories.js +17 -28
  128. package/dist/components/TextInput/TextInput.styles.js +7 -7
  129. package/dist/components/ThemeToggle.js +3 -3
  130. package/dist/esm/bundle.css +155 -495
  131. package/dist/esm/bundle.js +3 -3
  132. package/dist/esm/bundle.js.map +1 -1
  133. package/dist/esm/types/components/ActionButton/ActionButton.stories.d.ts +7 -7
  134. package/dist/esm/types/components/Button/Button.d.ts +1 -1
  135. package/dist/esm/types/components/Button/Button.styles.d.ts +1 -1
  136. package/dist/esm/types/components/Button/Buttons.stories.d.ts +13 -13
  137. package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +60 -60
  138. package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +64 -64
  139. package/dist/esm/types/components/Icon/Icon.d.ts +11 -0
  140. package/dist/esm/types/components/Icon/Icon.stories.d.ts +508 -0
  141. package/dist/esm/types/components/Icon/Icon.styles.d.ts +4 -0
  142. package/dist/esm/types/components/Input/Input.stories.d.ts +115 -115
  143. package/dist/esm/types/components/Label/Label.stories.d.ts +51 -51
  144. package/dist/esm/types/components/RadioGroup/RadioGroup.stories.d.ts +54 -54
  145. package/dist/esm/types/components/Search/Search.stories.d.ts +64 -64
  146. package/dist/esm/types/components/Slider/Slider.d.ts +5 -0
  147. package/dist/esm/types/components/Slider/Slider.stories.d.ts +303 -0
  148. package/dist/esm/types/components/Switch/Switch.d.ts +4 -0
  149. package/dist/esm/types/components/Switch/Switch.stories.d.ts +305 -0
  150. package/dist/esm/types/components/Table/Table.stories.d.ts +7 -7
  151. package/dist/esm/types/components/Tabs/Tabs.d.ts +12 -3
  152. package/dist/esm/types/components/Tabs/Tabs.stories.d.ts +18 -0
  153. package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +62 -62
  154. package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +1 -1
  155. package/dist/esm/types/icons/heroIconConfig.d.ts +1 -0
  156. package/dist/esm/types/icons/iconConfig.d.ts +2 -0
  157. package/dist/esm/types/icons/iconRegistry.d.ts +19 -0
  158. package/dist/esm/types/icons/index.d.ts +1 -0
  159. package/dist/esm/types/icons/material-icon/outline/ChevronDownIcon.d.ts +3 -0
  160. package/dist/esm/types/icons/material-icon/outline/CollapseContentIcon.d.ts +3 -0
  161. package/dist/esm/types/icons/material-icon/outline/ContentCopyIcon.d.ts +3 -0
  162. package/dist/esm/types/icons/material-icon/outline/ContentPasteIcon.d.ts +3 -0
  163. package/dist/esm/types/icons/material-icon/outline/DataTableIcon.d.ts +3 -0
  164. package/dist/esm/types/icons/material-icon/outline/ExpandCircleDownIcon.d.ts +3 -0
  165. package/dist/esm/types/icons/material-icon/outline/ExpandCircleRightIcon.d.ts +3 -0
  166. package/dist/esm/types/icons/material-icon/outline/ExpandCircleUpIcon.d.ts +3 -0
  167. package/dist/esm/types/icons/material-icon/outline/ExpandContentIcon.d.ts +3 -0
  168. package/dist/esm/types/icons/material-icon/outline/InterestsIcon.d.ts +3 -0
  169. package/dist/esm/types/icons/material-icon/outline/SaveIcon.d.ts +3 -0
  170. package/dist/esm/types/icons/material-icon/outline/TableChartIcon.d.ts +3 -0
  171. package/dist/esm/types/icons/material-icon/outline/index.d.ts +12 -0
  172. package/dist/esm/types/icons/material-icon/solid/ChevronDownIcon.d.ts +3 -0
  173. package/dist/esm/types/icons/material-icon/solid/CollapseContentIcon.d.ts +3 -0
  174. package/dist/esm/types/icons/material-icon/solid/ContentCopyIcon.d.ts +3 -0
  175. package/dist/esm/types/icons/material-icon/solid/ContentPasteIcon.d.ts +3 -0
  176. package/dist/esm/types/icons/material-icon/solid/DataTableIcon.d.ts +3 -0
  177. package/dist/esm/types/icons/material-icon/solid/ExpandCircleDownIcon.d.ts +3 -0
  178. package/dist/esm/types/icons/material-icon/solid/ExpandCircleRightIcon.d.ts +3 -0
  179. package/dist/esm/types/icons/material-icon/solid/ExpandCircleUpIcon.d.ts +3 -0
  180. package/dist/esm/types/icons/material-icon/solid/ExpandContentIcon.d.ts +3 -0
  181. package/dist/esm/types/icons/material-icon/solid/InterestsIcon.d.ts +3 -0
  182. package/dist/esm/types/icons/material-icon/solid/SaveIcon.d.ts +3 -0
  183. package/dist/esm/types/icons/material-icon/solid/TableChartIcon.d.ts +3 -0
  184. package/dist/esm/types/icons/material-icon/solid/index.d.ts +12 -0
  185. package/dist/esm/types/icons/materialIconConfig.d.ts +1 -0
  186. package/dist/esm/types/icons/type.d.ts +8 -0
  187. package/dist/esm/types/icons/utils.d.ts +1 -0
  188. package/dist/esm/types/index.d.ts +4 -0
  189. package/dist/icons/heroIconConfig.js +13 -0
  190. package/dist/icons/iconConfig.js +2 -0
  191. package/dist/icons/iconRegistry.js +47 -0
  192. package/dist/icons/index.js +1 -0
  193. package/dist/icons/material-icon/outline/ChevronDownIcon.js +3 -0
  194. package/dist/icons/material-icon/outline/CollapseContentIcon.js +3 -0
  195. package/dist/icons/material-icon/outline/ContentCopyIcon.js +3 -0
  196. package/dist/icons/material-icon/outline/ContentPasteIcon.js +3 -0
  197. package/dist/icons/material-icon/outline/DataTableIcon.js +3 -0
  198. package/dist/icons/material-icon/outline/ExpandCircleDownIcon.js +3 -0
  199. package/dist/icons/material-icon/outline/ExpandCircleRightIcon.js +3 -0
  200. package/dist/icons/material-icon/outline/ExpandCircleUpIcon.js +3 -0
  201. package/dist/icons/material-icon/outline/ExpandContentIcon.js +3 -0
  202. package/dist/icons/material-icon/outline/InterestsIcon.js +3 -0
  203. package/dist/icons/material-icon/outline/SaveIcon.js +3 -0
  204. package/dist/icons/material-icon/outline/TableChartIcon.js +3 -0
  205. package/dist/icons/material-icon/outline/index.js +12 -0
  206. package/dist/icons/material-icon/solid/ChevronDownIcon.js +3 -0
  207. package/dist/icons/material-icon/solid/CollapseContentIcon.js +3 -0
  208. package/dist/icons/material-icon/solid/ContentCopyIcon.js +3 -0
  209. package/dist/icons/material-icon/solid/ContentPasteIcon.js +3 -0
  210. package/dist/icons/material-icon/solid/DataTableIcon.js +3 -0
  211. package/dist/icons/material-icon/solid/ExpandCircleDownIcon.js +3 -0
  212. package/dist/icons/material-icon/solid/ExpandCircleRightIcon.js +3 -0
  213. package/dist/icons/material-icon/solid/ExpandCircleUpIcon.js +3 -0
  214. package/dist/icons/material-icon/solid/ExpandContentIcon.js +3 -0
  215. package/dist/icons/material-icon/solid/InterestsIcon.js +3 -0
  216. package/dist/icons/material-icon/solid/SaveIcon.js +3 -0
  217. package/dist/icons/material-icon/solid/TableChartIcon.js +3 -0
  218. package/dist/icons/material-icon/solid/index.js +12 -0
  219. package/dist/icons/materialIconConfig.js +13 -0
  220. package/dist/icons/type.js +1 -0
  221. package/dist/icons/utils.js +6 -0
  222. package/dist/index.d.ts +30 -4
  223. package/dist/index.js +4 -0
  224. package/dist/src/theme/global.css +187 -619
  225. package/dist/stories/ColorGroupPreview.js +6 -9
  226. package/dist/stories/ColorPreview.js +1 -2
  227. package/dist/theme/presets/colors.js +2 -1
  228. package/dist/utils/cn.js +1 -5
  229. package/dist/utils/datetime.js +12 -12
  230. package/package.json +3 -1
  231. package/src/components/ActionButton/ActionButton.stories.tsx +32 -13
  232. package/src/components/ActionButton/ActionButton.styles.ts +33 -8
  233. package/src/components/DataTable/DataTable.tsx +2 -2
  234. package/src/components/Icon/Icon.stories.tsx +450 -0
  235. package/src/components/Icon/Icon.styles.ts +26 -0
  236. package/src/components/Icon/Icon.tsx +67 -0
  237. package/src/components/Slider/Slider.stories.tsx +47 -0
  238. package/src/components/Slider/Slider.tsx +32 -0
  239. package/src/components/Switch/Switch.stories.tsx +46 -0
  240. package/src/components/Switch/Switch.tsx +32 -0
  241. package/src/components/Table/Table.tsx +2 -2
  242. package/src/components/Tabs/Tabs.tsx +99 -12
  243. package/src/icons/heroIconConfig.ts +23 -0
  244. package/src/icons/iconConfig.ts +2 -0
  245. package/src/icons/iconRegistry.ts +76 -0
  246. package/src/icons/index.ts +1 -0
  247. package/src/icons/material-icon/outline/ChevronDownIcon.tsx +22 -0
  248. package/src/icons/material-icon/outline/CollapseContentIcon.tsx +20 -0
  249. package/src/icons/material-icon/outline/ContentCopyIcon.tsx +20 -0
  250. package/src/icons/material-icon/outline/ContentPasteIcon.tsx +20 -0
  251. package/src/icons/material-icon/outline/DataTableIcon.tsx +20 -0
  252. package/src/icons/material-icon/outline/ExpandCircleDownIcon.tsx +20 -0
  253. package/src/icons/material-icon/outline/ExpandCircleRightIcon.tsx +20 -0
  254. package/src/icons/material-icon/outline/ExpandCircleUpIcon.tsx +20 -0
  255. package/src/icons/material-icon/outline/ExpandContentIcon.tsx +20 -0
  256. package/src/icons/material-icon/outline/InterestsIcon.tsx +20 -0
  257. package/src/icons/material-icon/outline/SaveIcon.tsx +20 -0
  258. package/src/icons/material-icon/outline/TableChartIcon.tsx +20 -0
  259. package/src/icons/material-icon/outline/index.ts +12 -0
  260. package/src/icons/material-icon/solid/ChevronDownIcon.tsx +22 -0
  261. package/src/icons/material-icon/solid/CollapseContentIcon.tsx +20 -0
  262. package/src/icons/material-icon/solid/ContentCopyIcon.tsx +20 -0
  263. package/src/icons/material-icon/solid/ContentPasteIcon.tsx +20 -0
  264. package/src/icons/material-icon/solid/DataTableIcon.tsx +20 -0
  265. package/src/icons/material-icon/solid/ExpandCircleDownIcon.tsx +20 -0
  266. package/src/icons/material-icon/solid/ExpandCircleRightIcon.tsx +20 -0
  267. package/src/icons/material-icon/solid/ExpandCircleUpIcon.tsx +20 -0
  268. package/src/icons/material-icon/solid/ExpandContentIcon.tsx +20 -0
  269. package/src/icons/material-icon/solid/InterestsIcon.tsx +20 -0
  270. package/src/icons/material-icon/solid/SaveIcon.tsx +20 -0
  271. package/src/icons/material-icon/solid/TableChartIcon.tsx +20 -0
  272. package/src/icons/material-icon/solid/index.ts +12 -0
  273. package/src/icons/materialIconConfig.tsx +23 -0
  274. package/src/icons/type.ts +11 -0
  275. package/src/icons/utils.ts +6 -0
  276. package/src/index.ts +5 -0
  277. package/src/theme/presets/colors.js +2 -1
  278. package/dist/cjs/types/components/ActionButton/ActionButton.styles copy.d.ts +0 -6
  279. package/dist/cjs/types/components/Button/Button.styles copy.d.ts +0 -7
  280. package/dist/components/ActionButton/ActionButton.styles copy.js +0 -90
  281. package/dist/components/Button/Button.styles copy.js +0 -210
  282. package/dist/esm/types/components/ActionButton/ActionButton.styles copy.d.ts +0 -6
  283. package/dist/esm/types/components/Button/Button.styles copy.d.ts +0 -7
  284. package/src/_theme/global copy.css +0 -761
  285. package/src/_theme/global.css +0 -39
  286. package/src/_theme/main-preset.js +0 -239
  287. package/src/_theme/plugins/utilities/typography.js +0 -81
  288. package/src/_theme/presets/colors copy 2.js +0 -319
  289. package/src/_theme/presets/colors copy.js +0 -229
  290. package/src/_theme/presets/colors.js +0 -94
  291. package/src/_theme/theme.d.ts +0 -69
  292. package/src/_theme/variables/base/button.css +0 -334
  293. package/src/_theme/variables/base/components copy.css +0 -19
  294. package/src/_theme/variables/default/colors.css +0 -292
  295. package/src/_theme/variables/default/typography.css +0 -178
  296. package/src/_theme/variables/xspector/colors.css +0 -468
  297. package/src/_theme/variables/xspector/typography.css +0 -178
  298. package/src/components/ActionButton/ActionButton.styles copy.ts +0 -95
  299. package/src/components/Button/Button.styles copy.ts +0 -214
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { SVGProps } from "react";
3
+
4
+ const DataTableICon = (props: SVGProps<SVGSVGElement>) => (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="1em"
8
+ height="1em"
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ {...props}
12
+ >
13
+ <path
14
+ fill="currentColor"
15
+ d="M5.308 20.5c-.505 0-.933-.175-1.283-.525a1.745 1.745 0 0 1-.525-1.283V5.308c0-.505.175-.933.525-1.283.35-.35.778-.525 1.283-.525h13.384c.505 0 .933.175 1.283.525.35.35.525.778.525 1.283v13.384c0 .505-.175.933-.525 1.283-.35.35-.778.525-1.283.525H5.308ZM5 8.662h14V5.308a.294.294 0 0 0-.096-.212.294.294 0 0 0-.212-.096H5.308a.294.294 0 0 0-.212.096.294.294 0 0 0-.096.212v3.354Zm0 5.176h14v-3.676H5v3.676ZM5.308 19h13.384a.294.294 0 0 0 .212-.096.294.294 0 0 0 .096-.212v-3.354H5v3.354c0 .077.032.148.096.212a.294.294 0 0 0 .212.096ZM7.287 7.727a.87.87 0 0 1-.644-.26.879.879 0 0 1-.258-.645.87.87 0 0 1 .26-.644.879.879 0 0 1 .645-.259.87.87 0 0 1 .644.26.88.88 0 0 1 .258.646.87.87 0 0 1-.26.643.879.879 0 0 1-.645.259Zm0 5.177a.871.871 0 0 1-.644-.26.88.88 0 0 1-.258-.646.87.87 0 0 1 .26-.643.88.88 0 0 1 .645-.259c.257 0 .471.087.644.26a.88.88 0 0 1 .258.646.871.871 0 0 1-.26.643.88.88 0 0 1-.645.259Zm0 5.177a.87.87 0 0 1-.644-.26.88.88 0 0 1-.258-.646.87.87 0 0 1 .26-.643.879.879 0 0 1 .645-.259.87.87 0 0 1 .644.26.879.879 0 0 1 .258.645.87.87 0 0 1-.26.644.879.879 0 0 1-.645.259Z"
16
+ />
17
+ </svg>
18
+ );
19
+
20
+ export default DataTableICon;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { SVGProps } from "react";
3
+
4
+ const ExpandCircleDownIcon = (props: SVGProps<SVGSVGElement>) => (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="1em"
8
+ height="1em"
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ {...props}
12
+ >
13
+ <path
14
+ fill="currentColor"
15
+ d="m12 13.03-2.558-2.557a.693.693 0 0 0-.513-.208.754.754 0 0 0-.531.208.7.7 0 0 0-.228.535c.003.207.08.386.228.534l2.97 2.97c.18.18.391.27.632.27s.452-.09.633-.27l2.984-2.985a.712.712 0 0 0 .22-.527.717.717 0 0 0-.235-.527.76.76 0 0 0-.527-.21.712.712 0 0 0-.527.22L12 13.03Zm.002 8.47a9.254 9.254 0 0 1-3.706-.748 9.596 9.596 0 0 1-3.016-2.03 9.595 9.595 0 0 1-2.032-3.016 9.246 9.246 0 0 1-.748-3.704c0-1.314.25-2.55.748-3.706a9.596 9.596 0 0 1 2.03-3.016 9.594 9.594 0 0 1 3.016-2.032 9.246 9.246 0 0 1 3.704-.748c1.314 0 2.55.25 3.706.748a9.596 9.596 0 0 1 3.017 2.03 9.594 9.594 0 0 1 2.03 3.016 9.247 9.247 0 0 1 .749 3.704c0 1.314-.25 2.55-.748 3.706a9.596 9.596 0 0 1-2.03 3.017 9.595 9.595 0 0 1-3.016 2.03 9.247 9.247 0 0 1-3.704.749Z"
16
+ />
17
+ </svg>
18
+ );
19
+
20
+ export default ExpandCircleDownIcon;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { SVGProps } from "react";
3
+
4
+ const ExpandCircleRightIcon = (props: SVGProps<SVGSVGElement>) => (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="1em"
8
+ height="1em"
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ {...props}
12
+ >
13
+ <path
14
+ fill="currentColor"
15
+ d="m13.03 12-2.557 2.558a.693.693 0 0 0-.208.513c0 .205.07.382.208.531a.7.7 0 0 0 .535.228.746.746 0 0 0 .534-.228l2.97-2.97a.868.868 0 0 0 .27-.632.867.867 0 0 0-.27-.633l-2.985-2.984a.711.711 0 0 0-.527-.22.717.717 0 0 0-.527.235.76.76 0 0 0-.21.527.712.712 0 0 0 .22.527L13.03 12Zm-1.028 9.5a9.254 9.254 0 0 1-3.706-.748 9.596 9.596 0 0 1-3.016-2.03 9.595 9.595 0 0 1-2.032-3.016 9.246 9.246 0 0 1-.748-3.704c0-1.314.25-2.55.748-3.706a9.596 9.596 0 0 1 2.03-3.016 9.594 9.594 0 0 1 3.016-2.032 9.246 9.246 0 0 1 3.704-.748c1.314 0 2.55.25 3.706.748a9.596 9.596 0 0 1 3.017 2.03 9.594 9.594 0 0 1 2.03 3.016 9.247 9.247 0 0 1 .749 3.704c0 1.314-.25 2.55-.748 3.706a9.596 9.596 0 0 1-2.03 3.017 9.595 9.595 0 0 1-3.016 2.03 9.247 9.247 0 0 1-3.704.749Z"
16
+ />
17
+ </svg>
18
+ );
19
+
20
+ export default ExpandCircleRightIcon;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { SVGProps } from "react";
3
+
4
+ const ExpandCircleUpIcon = (props: SVGProps<SVGSVGElement>) => (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="1em"
8
+ height="1em"
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ {...props}
12
+ >
13
+ <path
14
+ fill="currentColor"
15
+ d="m12 10.97 2.558 2.557a.693.693 0 0 0 .513.208c.205 0 .382-.07.531-.208a.7.7 0 0 0 .228-.535.746.746 0 0 0-.228-.534l-2.97-2.97a.867.867 0 0 0-.632-.27.867.867 0 0 0-.633.27l-2.984 2.985a.711.711 0 0 0-.22.527c.002.203.08.378.235.527a.76.76 0 0 0 .527.21.712.712 0 0 0 .527-.22L12 10.97Zm.002 10.53a9.254 9.254 0 0 1-3.706-.748 9.596 9.596 0 0 1-3.016-2.03 9.595 9.595 0 0 1-2.032-3.016 9.246 9.246 0 0 1-.748-3.704c0-1.314.25-2.55.748-3.706a9.596 9.596 0 0 1 2.03-3.016 9.594 9.594 0 0 1 3.016-2.032 9.246 9.246 0 0 1 3.704-.748c1.314 0 2.55.25 3.706.748a9.596 9.596 0 0 1 3.017 2.03 9.594 9.594 0 0 1 2.03 3.016 9.247 9.247 0 0 1 .749 3.704c0 1.314-.25 2.55-.748 3.706a9.596 9.596 0 0 1-2.03 3.017 9.595 9.595 0 0 1-3.016 2.03 9.247 9.247 0 0 1-3.704.749Z"
16
+ />
17
+ </svg>
18
+ );
19
+
20
+ export default ExpandCircleUpIcon;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { SVGProps } from "react";
3
+
4
+ const ExpandContentIcon = (props: SVGProps<SVGSVGElement>) => (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="1em"
8
+ height="1em"
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ {...props}
12
+ >
13
+ <path
14
+ fill="currentColor"
15
+ d="M5.846 18.154h4c.262 0 .481.088.658.265a.894.894 0 0 1 .265.658.892.892 0 0 1-.265.658.894.894 0 0 1-.658.265H5.113c-.316 0-.58-.107-.793-.32a1.076 1.076 0 0 1-.32-.793v-4.733c0-.262.089-.481.266-.658a.894.894 0 0 1 .657-.265c.262 0 .481.088.658.265a.894.894 0 0 1 .265.658v4ZM18.154 5.846h-4a.893.893 0 0 1-.658-.265.894.894 0 0 1-.265-.658c0-.262.088-.481.265-.658A.894.894 0 0 1 14.154 4h4.733c.316 0 .58.107.793.32.213.213.32.477.32.793v4.733c0 .262-.088.481-.265.658a.894.894 0 0 1-.658.265.892.892 0 0 1-.658-.265.894.894 0 0 1-.265-.658v-4Z"
16
+ />
17
+ </svg>
18
+ );
19
+
20
+ export default ExpandContentIcon;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { SVGProps } from "react";
3
+
4
+ const InterestsIcon = (props: SVGProps<SVGSVGElement>) => (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="1em"
8
+ height="1em"
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ {...props}
12
+ >
13
+ <path
14
+ fill="currentColor"
15
+ d="m3.142 9.371 3.089-5.479a.903.903 0 0 1 .341-.357.914.914 0 0 1 .448-.11.91.91 0 0 1 .446.11.903.903 0 0 1 .342.357l3.088 5.48a.84.84 0 0 1 .113.455.98.98 0 0 1-.128.432.878.878 0 0 1-.775.452H3.932a.862.862 0 0 1-.774-.452.981.981 0 0 1-.128-.432.84.84 0 0 1 .112-.456ZM7.03 20.76c-1.042 0-1.93-.366-2.662-1.098C3.635 18.93 3.27 18.043 3.27 17s.366-1.93 1.098-2.662c.733-.731 1.62-1.097 2.662-1.097 1.042 0 1.93.366 2.661 1.098.733.731 1.099 1.619 1.099 2.661s-.366 1.93-1.099 2.662c-.732.732-1.619 1.098-2.661 1.098Zm6.23-.903v-5.712c0-.256.088-.47.26-.644a.874.874 0 0 1 .645-.26h5.711c.256 0 .47.087.644.26.173.173.26.388.26.644v5.712c0 .256-.087.47-.26.644a.875.875 0 0 1-.644.26h-5.711a.875.875 0 0 1-.644-.26.875.875 0 0 1-.26-.644Zm3.178-9.627-1.095-.913c-1.008-.833-1.747-1.54-2.216-2.12-.468-.58-.703-1.216-.703-1.905 0-.674.23-1.237.687-1.689.458-.453 1.033-.679 1.727-.679.424 0 .82.101 1.19.303.37.202.7.493.992.872a3.26 3.26 0 0 1 1.002-.867 2.447 2.447 0 0 1 1.19-.308c.685 0 1.257.231 1.716.694.459.463.688 1.03.688 1.702 0 .684-.234 1.312-.702 1.887-.469.574-1.208 1.277-2.217 2.11l-1.094.913a.845.845 0 0 1-.583.221.843.843 0 0 1-.582-.221Z"
16
+ />
17
+ </svg>
18
+ );
19
+
20
+ export default InterestsIcon;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { SVGProps } from "react";
3
+
4
+ const SaveIcon = (props: SVGProps<SVGSVGElement>) => (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="1em"
8
+ height="1em"
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ {...props}
12
+ >
13
+ <path
14
+ fill="currentColor"
15
+ d="M5.308 20.5c-.505 0-.933-.175-1.283-.525a1.745 1.745 0 0 1-.525-1.283V5.308c0-.505.175-.933.525-1.283.35-.35.778-.525 1.283-.525H16.04c.241 0 .473.047.695.14.223.094.416.223.58.387l2.658 2.658c.164.164.293.357.387.58.093.222.14.454.14.695v10.732c0 .505-.175.933-.525 1.283-.35.35-.778.525-1.283.525H5.308ZM19 7.85 16.15 5H5.308a.3.3 0 0 0-.221.087.3.3 0 0 0-.087.22v13.385a.3.3 0 0 0 .087.221.3.3 0 0 0 .22.087h13.385a.3.3 0 0 0 .221-.087.3.3 0 0 0 .087-.22V7.85Zm-7 9.42a2.41 2.41 0 0 0 1.77-.732 2.41 2.41 0 0 0 .73-1.769A2.41 2.41 0 0 0 13.77 13a2.41 2.41 0 0 0-1.77-.73 2.41 2.41 0 0 0-1.77.73 2.41 2.41 0 0 0-.73 1.77c0 .692.244 1.281.73 1.768a2.41 2.41 0 0 0 1.77.731ZM7.288 9.883h6.404a.876.876 0 0 0 .646-.258.876.876 0 0 0 .258-.645V7.289a.876.876 0 0 0-.258-.646.876.876 0 0 0-.646-.258H7.288a.876.876 0 0 0-.645.258.876.876 0 0 0-.258.646V8.98c0 .257.086.473.258.645a.876.876 0 0 0 .646.258Z"
16
+ />
17
+ </svg>
18
+ );
19
+
20
+ export default SaveIcon;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { SVGProps } from "react";
3
+
4
+ const TableChartIcon = (props: SVGProps<SVGSVGElement>) => (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="1em"
8
+ height="1em"
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ {...props}
12
+ >
13
+ <path
14
+ fill="currentColor"
15
+ d="M3.5 8.25V5.308c0-.497.177-.923.531-1.277A1.74 1.74 0 0 1 5.308 3.5h13.384c.497 0 .923.177 1.277.531.354.354.531.78.531 1.277V8.25h-17ZM5.308 20.5a1.74 1.74 0 0 1-1.277-.531 1.74 1.74 0 0 1-.531-1.277V9.75h4.192V20.5H5.308Zm11 0V9.75H20.5v8.942c0 .497-.177.923-.531 1.277a1.74 1.74 0 0 1-1.277.531h-2.384Zm-7.116 0V9.75h5.616V20.5H9.192Z"
16
+ />
17
+ </svg>
18
+ );
19
+
20
+ export default TableChartIcon;
@@ -0,0 +1,12 @@
1
+ export { default as SaveIcon } from "./SaveIcon";
2
+ export { default as DataTableIcon } from "./DataTableIcon";
3
+ export { default as TableChartIcon } from "./TableChartIcon";
4
+ export { default as InterestsIcon } from "./InterestsIcon";
5
+ export { default as CollapseContentIcon } from "./CollapseContentIcon";
6
+ export { default as ExpandContentIcon } from "./ExpandContentIcon";
7
+ export { default as ExpandCircleRightIcon } from "./ExpandCircleRightIcon";
8
+ export { default as ExpandCircleDownIcon } from "./ExpandCircleDownIcon";
9
+ export { default as ExpandCircleUpIcon } from "./ExpandCircleUpIcon";
10
+ export { default as ContentCopyIcon } from "./ContentCopyIcon";
11
+ export { default as ContentPasteIcon } from "./ContentPasteIcon";
12
+ export { default as ChevronDownIcon } from "./ChevronDownIcon";
@@ -0,0 +1,23 @@
1
+ import * as MaterialIconSolid from "./material-icon/solid";
2
+ import * as MaterialIconOutline from "./material-icon/outline";
3
+
4
+ import { registerIconSet } from "./iconRegistry";
5
+ import { getIconKeyByNaming } from "./utils";
6
+ import { IconRegistryMap, IconSet } from "./type";
7
+
8
+ const materialIcons: IconRegistryMap = Object.keys(MaterialIconSolid).reduce(
9
+ (prev, key) => {
10
+ const iconKey = getIconKeyByNaming(key);
11
+
12
+ return {
13
+ ...prev,
14
+ [iconKey]: {
15
+ solid: (MaterialIconSolid as IconSet)[key] ?? null,
16
+ outline: (MaterialIconOutline as IconSet)[key] ?? null,
17
+ },
18
+ };
19
+ },
20
+ {} as IconRegistryMap
21
+ );
22
+
23
+ registerIconSet("material", materialIcons);
@@ -0,0 +1,11 @@
1
+ export type IconComponent = React.ComponentType<React.SVGProps<SVGSVGElement>>;
2
+
3
+ export type IconVariant = "solid" | "outline";
4
+
5
+ export type IconVariantsMap = {
6
+ [K in IconVariant]?: IconComponent; // | (() => Promise<{ default: IconComponent }>) TODO
7
+ };
8
+
9
+ export type IconRegistryMap = Record<string, IconVariantsMap>;
10
+
11
+ export type IconSet = Record<string, IconComponent>;
@@ -0,0 +1,6 @@
1
+ export function getIconKeyByNaming(camelCaseStr: string): string {
2
+ return camelCaseStr
3
+ .replace(/([a-z0-9])([A-Z])/g, "$1-$2")
4
+ .toLowerCase()
5
+ .replace("-icon", "");
6
+ }
package/src/index.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  // UI Components
2
2
  // import "./src/styles/style.css";
3
3
  import "./theme/global.css";
4
+ import "./icons/iconConfig";
5
+
4
6
  export { default as Button } from "./components/Button/Button";
5
7
  export { default as TextInput } from "./components/TextInput/TextInput";
6
8
  export { default as Text } from "./components/Text/Text";
@@ -22,11 +24,14 @@ export {
22
24
  } from "./components/Popover/Popover";
23
25
  export { default as Loading } from "./components/Loading/Loading";
24
26
  export { default as ProgressBar } from "./components/ProgressBar/ProgressBar";
27
+ export { default as Icon } from "./components/Icon/Icon";
25
28
  export * from "./components/Table/Table";
26
29
  export * from "./components/DataTable/DataTable";
27
30
  export * from "./components/Dialog/Dialog";
28
31
  export * from "./components/AlertDialog/AlertDialog";
29
32
  export * from "./components/Search/Search";
33
+ export * from "./components/Slider/Slider";
34
+ export * from "./components/Switch/Switch";
30
35
 
31
36
  // Export component types
32
37
  export type { ButtonProps } from "./components/Button/Button";
@@ -36,7 +36,7 @@ module.exports = {
36
36
  ...generateColorConfig("primary", "primary-ramps-primary"),
37
37
  ...generateColorConfig("secondary", "secondary-ramps-secondary"),
38
38
  ...generateColorConfig("tertiary", "tertiary-ramps-tertiary"),
39
- ...generateColorConfig("grey", "grey"),
39
+ ...generateColorConfig("grey", "grey-grey"),
40
40
 
41
41
  ...generateColorConfig("grey2", "grey2-grey2", secondaryRange),
42
42
  ...generateColorConfig("info", "info-info", secondaryRange),
@@ -80,6 +80,7 @@ module.exports = {
80
80
  "base-popup-foreground": withColorMixin(
81
81
  "--base-color-popup-foreground"
82
82
  ),
83
+ "base-stroke": withColorMixin("--base-color-workspace-stroke"),
83
84
 
84
85
  "common-white": withColorMixin("--common-white"),
85
86
  "common-black": withColorMixin("--common-black"),
@@ -1,6 +0,0 @@
1
- export declare const actionButtonVariants: (props?: ({
2
- variant?: "solid" | "outline" | "icon" | null | undefined;
3
- size?: "sm" | "md" | "lg" | "xs" | null | undefined;
4
- disabled?: boolean | null | undefined;
5
- active?: boolean | null | undefined;
6
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,7 +0,0 @@
1
- export declare const buttonVariants: (props?: ({
2
- color?: "primary" | "secondary" | "tertiary" | "success" | "info" | "warning" | "error" | null | undefined;
3
- size?: "sm" | "md" | "lg" | null | undefined;
4
- variant?: "solid" | "outline" | "flat" | "link" | null | undefined;
5
- disabled?: boolean | null | undefined;
6
- fullwidth?: boolean | null | undefined;
7
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,90 +0,0 @@
1
- import { cva } from "class-variance-authority";
2
- export var actionButtonVariants = cva(["rounded box-border flex items-center justify-center"], {
3
- variants: {
4
- variant: {
5
- solid: [
6
- "bg-secondary-default border-secondary-default text-secondary-foreground fill-secondary-foreground",
7
- "hover:bg-secondary-hover hover:border-secondary-hover",
8
- "active:bg-secondary-pressed active:border-secondary-pressed",
9
- ],
10
- outline: [
11
- "border bg-transparent disabled:bg-transparent disabled:border-disable-outline",
12
- "text-secondary-default fill-secondary-default border-secondary-stroke",
13
- "hover:bg-secondary-hover-bg hover:border-secondary-hover hover:text-secondary-hover hover:fill-secondary-hover",
14
- "active:bg-secondary-hover-bg active:border-secondary-pressed active:text-secondary-pressed active:fill-secondary-pressed",
15
- ],
16
- icon: [
17
- "bg-transparent disabled:bg-transparent rounded-full",
18
- "text-secondary-default fill-secondary-default",
19
- "hover:bg-secondary-hover-bg hover:text-secondary-hover hover:fill-secondary-hover",
20
- "active:text-secondary-pressed active:fill-secondary-pressed",
21
- ],
22
- },
23
- size: {
24
- xs: "p-[2px] w-[18px] h-[18px]",
25
- sm: "px-2 py-1 w-[38px] h-[30px]",
26
- md: "px-3 py-2 w-[46px] h-[38px]",
27
- lg: "px-4 py-3 w-[64px] h-[56px]",
28
- },
29
- disabled: {
30
- false: "",
31
- },
32
- active: {
33
- false: "",
34
- },
35
- },
36
- compoundVariants: [
37
- {
38
- variant: "solid",
39
- active: true,
40
- className: [
41
- "bg-primary-default border-primary-default text-primary-foreground fill-primary-foreground",
42
- "hover:bg-primary-hover hover:border-primary-hover",
43
- "active:bg-primary-pressed active:border-primary-pressed",
44
- ],
45
- },
46
- {
47
- variant: "outline",
48
- active: true,
49
- className: [
50
- "text-primary-default fill-primary-default border-primary-stroke",
51
- "hover:bg-primary-hover-bg hover:border-primary-hover hover:text-primary-hover hover:fill-primary-hover",
52
- "active:bg-primary-hover-bg active:border-primary-pressed active:text-primary-pressed active:fill-primary-pressed",
53
- ],
54
- },
55
- {
56
- variant: "icon",
57
- active: true,
58
- className: [
59
- "text-primary-default fill-primary-default",
60
- "hover:bg-primary-hover-bg hover:text-primary-hover hover:fill-primary-hover",
61
- "active:text-primary-pressed active:fill-primary-pressed",
62
- ],
63
- },
64
- {
65
- size: "lg",
66
- variant: "icon",
67
- className: "w-[56px] h-[56px]",
68
- },
69
- {
70
- size: "md",
71
- variant: "icon",
72
- className: "w-[38px] h-[38px]",
73
- },
74
- {
75
- size: "sm",
76
- variant: "icon",
77
- className: "w-[30px] h-[30px]",
78
- },
79
- {
80
- disabled: true,
81
- className: "pointer-events-none border-transparent bg-disable-solid text-disable-outline fill-disable-outline",
82
- },
83
- ],
84
- defaultVariants: {
85
- size: "md",
86
- variant: "solid",
87
- disabled: false,
88
- active: false,
89
- },
90
- });
@@ -1,210 +0,0 @@
1
- import { cva } from "class-variance-authority";
2
- export var buttonVariants = cva([
3
- // "inline-flex items-center justify-center align-middle no-underline transition-colors ease-in-out duration-300",
4
- // "font-sans appearance-none select-none rounded-sm border font-medium tracking-[.02857em]",
5
- // "aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed",
6
- // "gap-2 font-bold text-white hover:bg-opacity-90 active:scale-[98%]",
7
- "gap-2 font-bold text-white outline-none",
8
- "transition ease-in-out duration-45",
9
- ], {
10
- variants: {
11
- color: {
12
- primary: [
13
- "bg-primary-default border-primary-default text-primary-foreground fill-primary-foreground",
14
- "hover:bg-primary-hover hover:border-primary-hover",
15
- "active:bg-primary-pressed active:border-primary-pressed",
16
- ],
17
- secondary: [
18
- "bg-secondary-default border-secondary-default text-secondary-foreground fill-secondary-foreground",
19
- "hover:bg-secondary-hover hover:border-secondary-hover",
20
- "active:bg-secondary-pressed active:border-secondary-pressed",
21
- ],
22
- tertiary: [
23
- "bg-tertiary-default border-tertiary-default text-tertiary-foreground fill-tertiary-foreground",
24
- "hover:bg-tertiary-hover hover:border-tertiary-hover",
25
- "active:bg-tertiary-pressed active:border-tertiary-pressed",
26
- ],
27
- success: [
28
- "bg-success-default border-success-default text-success-foreground fill-success-foreground",
29
- "hover:bg-success-hover hover:border-success-hover",
30
- "active:bg-success-pressed active:border-success-pressed",
31
- ],
32
- info: [
33
- "bg-info-default border-info-default text-info-foreground fill-info-foreground",
34
- "hover:bg-info-hover hover:border-info-hover",
35
- "active:bg-info-pressed active:border-info-pressed",
36
- ],
37
- warning: [
38
- "bg-warning-default border-warning-default text-warning-foreground fill-warning-foreground",
39
- "hover:bg-warning-hover hover:border-warning-hover",
40
- "active:bg-warning-pressed active:border-warning-pressed",
41
- ],
42
- error: [
43
- "bg-error-default border-error-default text-error-foreground fill-error-foreground",
44
- "hover:bg-error-hover hover:border-error-hover",
45
- "active:bg-error-pressed active:border-error-pressed",
46
- ],
47
- },
48
- size: {
49
- sm: "px-3 py-1 text-sm rounded-sm",
50
- md: "px-4 py-2 text-sm rounded-md",
51
- lg: "px-6 py-4 text-base rounded-lg",
52
- },
53
- variant: {
54
- solid: "border",
55
- outline: "border bg-transparent disabled:border-disable-outline",
56
- flat: "bg-transparent",
57
- link: "bg-transparent underline underline-offset-4",
58
- },
59
- disabled: {
60
- true: "pointer-events-none border-transparent bg-disable-solid text-disable-outline fill-disable-outline",
61
- },
62
- fullwidth: {
63
- true: "w-full",
64
- },
65
- },
66
- compoundVariants: [
67
- // --- Outline ---
68
- {
69
- variant: "outline",
70
- color: "primary",
71
- className: [
72
- "text-primary-default fill-primary-default border-primary-stroke",
73
- "hover:bg-primary-hover-bg hover:border-primary-hover hover:text-primary-hover hover:fill-primary-hover",
74
- "active:bg-primary-hover-bg active:border-primary-pressed active:text-primary-pressed active:fill-primary-pressed",
75
- ],
76
- },
77
- {
78
- variant: "outline",
79
- color: "secondary",
80
- className: [
81
- "text-secondary-default fill-secondary-default border-secondary-stroke",
82
- "hover:bg-secondary-hover-bg hover:border-secondary-hover hover:text-secondary-hover hover:fill-secondary-hover",
83
- "active:bg-secondary-hover-bg active:border-secondary-pressed active:text-secondary-pressed active:fill-secondary-pressed",
84
- ],
85
- },
86
- {
87
- variant: "outline",
88
- color: "tertiary",
89
- className: [
90
- "text-tertiary-default fill-tertiary-default border-tertiary-stroke",
91
- "hover:bg-tertiary-hover-bg hover:border-tertiary-hover hover:text-tertiary-hover hover:fill-tertiary-hover",
92
- "active:bg-tertiary-hover-bg active:border-tertiary-pressed active:text-tertiary-pressed active:fill-tertiary-pressed",
93
- ],
94
- },
95
- {
96
- variant: "outline",
97
- color: "success",
98
- className: [
99
- "text-success-default fill-success-default border-success-stroke",
100
- "hover:bg-success-hover-bg hover:border-success-hover hover:text-success-hover hover:fill-success-hover",
101
- "active:bg-success-hover-bg active:border-success-pressed active:text-success-pressed active:fill-success-pressed",
102
- ],
103
- },
104
- {
105
- variant: "outline",
106
- color: "info",
107
- className: [
108
- "text-info-default fill-info-default border-info-stroke",
109
- "hover:bg-info-hover-bg hover:border-info-hover hover:text-info-hover hover:fill-info-hover",
110
- "active:bg-info-hover-bg active:border-info-pressed active:text-info-pressed active:fill-info-pressed",
111
- ],
112
- },
113
- {
114
- variant: "outline",
115
- color: "warning",
116
- className: [
117
- "text-warning-default fill-warning-default border-warning-stroke",
118
- "hover:bg-warning-hover-bg hover:border-warning-hover hover:text-warning-hover hover:fill-warning-hover",
119
- "active:bg-warning-hover-bg active:border-warning-pressed active:text-warning-pressed active:fill-warning-pressed",
120
- ],
121
- },
122
- {
123
- variant: "outline",
124
- color: "error",
125
- className: [
126
- "text-error-default fill-error-default border-error-stroke",
127
- "hover:bg-error-hover-bg hover:border-error-hover hover:text-error-hover hover:fill-error-hover",
128
- "active:bg-error-hover-bg active:border-error-pressed active:text-error-pressed active:fill-error-pressed",
129
- ],
130
- },
131
- // --- Flat, link ---
132
- {
133
- variant: ["flat", "link"],
134
- color: "primary",
135
- className: [
136
- "text-primary-default fill-primary-default",
137
- "hover:bg-primary-hover-bg hover:text-primary-hover hover:fill-primary-hover",
138
- "active:bg-transparent active:text-primary-pressed active:fill-primary-pressed",
139
- ],
140
- },
141
- {
142
- variant: ["flat", "link"],
143
- color: "secondary",
144
- className: [
145
- "text-secondary-default fill-secondary-default",
146
- "hover:bg-secondary-hover-bg hover:text-secondary-hover hover:fill-secondary-hover",
147
- "active:bg-transparent active:text-secondary-pressed active:fill-secondary-pressed",
148
- ],
149
- },
150
- {
151
- variant: ["flat", "link"],
152
- color: "tertiary",
153
- className: [
154
- "text-tertiary-default fill-tertiary-default",
155
- "hover:bg-tertiary-hover-bg hover:text-tertiary-hover hover:fill-tertiary-hover",
156
- "active:bg-transparent active:text-tertiary-pressed active:fill-tertiary-pressed",
157
- ],
158
- },
159
- {
160
- variant: ["flat", "link"],
161
- color: "success",
162
- className: [
163
- "text-success-default fill-success-default",
164
- "hover:bg-success-hover-bg hover:text-success-hover hover:fill-success-hover",
165
- "active:bg-transparent active:text-success-pressed active:fill-success-pressed",
166
- ],
167
- },
168
- {
169
- variant: ["flat", "link"],
170
- color: "info",
171
- className: [
172
- "text-info-default fill-info-default",
173
- "hover:bg-info-hover-bg hover:text-info-hover hover:fill-info-hover",
174
- "active:bg-transparent active:text-info-pressed active:fill-info-pressed",
175
- ],
176
- },
177
- {
178
- variant: ["flat", "link"],
179
- color: "warning",
180
- className: [
181
- "text-warning-default fill-warning-default",
182
- "hover:bg-warning-hover-bg hover:text-warning-hover hover:fill-warning-hover",
183
- "active:bg-transparent active:text-warning-pressed active:fill-warning-pressed",
184
- ],
185
- },
186
- {
187
- variant: ["flat", "link"],
188
- color: "error",
189
- className: [
190
- "text-error-default fill-error-default",
191
- "hover:bg-error-hover-bg hover:text-error-hover hover:fill-error-hover",
192
- "active:bg-transparent active:text-error-pressed active:fill-error-pressed",
193
- ],
194
- },
195
- // --- Disabled --
196
- {
197
- variant: ["outline", "flat", "link"],
198
- disabled: true,
199
- className: [
200
- "bg-transtarent border-disabled-outline text-disable-outline fill-disable-outline",
201
- ],
202
- },
203
- ],
204
- defaultVariants: {
205
- size: "md",
206
- color: "primary",
207
- variant: "solid",
208
- fullwidth: true,
209
- },
210
- });
@@ -1,6 +0,0 @@
1
- export declare const actionButtonVariants: (props?: ({
2
- variant?: "solid" | "outline" | "icon" | null | undefined;
3
- size?: "sm" | "md" | "lg" | "xs" | null | undefined;
4
- disabled?: boolean | null | undefined;
5
- active?: boolean | null | undefined;
6
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,7 +0,0 @@
1
- export declare const buttonVariants: (props?: ({
2
- color?: "primary" | "secondary" | "tertiary" | "success" | "info" | "warning" | "error" | null | undefined;
3
- size?: "sm" | "md" | "lg" | null | undefined;
4
- variant?: "solid" | "outline" | "flat" | "link" | null | undefined;
5
- disabled?: boolean | null | undefined;
6
- fullwidth?: boolean | null | undefined;
7
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;