@dktunited-techoff/techoff-suite-ui 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/README.md +1 -0
  2. package/esm/assets/fonts/Montserrat-Medium.ttf +0 -0
  3. package/esm/components/Button/Button.css +93 -0
  4. package/esm/components/Button/Button.d.ts +5 -0
  5. package/esm/components/Button/Button.js +17 -0
  6. package/esm/components/Button/Button.js.map +1 -0
  7. package/esm/components/Button/Button.types.d.ts +9 -0
  8. package/esm/components/Button/Button.types.js +2 -0
  9. package/esm/components/Button/Button.types.js.map +1 -0
  10. package/esm/components/Button/__stories__/Button.stories.mdx +74 -0
  11. package/esm/components/Checkbox/Checkbox.css +61 -0
  12. package/esm/components/Checkbox/Checkbox.d.ts +7 -0
  13. package/esm/components/Checkbox/Checkbox.js +21 -0
  14. package/esm/components/Checkbox/Checkbox.js.map +1 -0
  15. package/esm/components/Checkbox/Checkbox.types.d.ts +4 -0
  16. package/esm/components/Checkbox/Checkbox.types.js +2 -0
  17. package/esm/components/Checkbox/Checkbox.types.js.map +1 -0
  18. package/esm/components/Checkbox/__stories__/Checkbox.stories.mdx +43 -0
  19. package/esm/components/Icon/Icon.css +26 -0
  20. package/esm/components/Icon/Icon.d.ts +4 -0
  21. package/esm/components/Icon/Icon.js +12 -0
  22. package/esm/components/Icon/Icon.js.map +1 -0
  23. package/esm/components/Icon/Icon.types.d.ts +4 -0
  24. package/esm/components/Icon/Icon.types.js +2 -0
  25. package/esm/components/Icon/Icon.types.js.map +1 -0
  26. package/esm/components/Icon/__stories__/Icon.stories.mdx +86 -0
  27. package/esm/components/Icon/icons/check.svg +4 -0
  28. package/esm/components/Icon/icons/chevron-down.svg +4 -0
  29. package/esm/components/Icon/icons/chevron-left.svg +4 -0
  30. package/esm/components/Icon/icons/chevron-right.svg +4 -0
  31. package/esm/components/Icon/icons/chevron-up.svg +4 -0
  32. package/esm/components/Icon/icons/heart-filled.svg +4 -0
  33. package/esm/components/Icon/icons/heart.svg +4 -0
  34. package/esm/components/Icon/icons/home.svg +6 -0
  35. package/esm/components/Icon/icons/index.d.ts +3 -0
  36. package/esm/components/Icon/icons/index.js +16 -0
  37. package/esm/components/Icon/icons/index.js.map +1 -0
  38. package/esm/components/Icon/icons/index.ts +15 -0
  39. package/esm/components/Icon/icons/plus.svg +5 -0
  40. package/esm/components/Icon/icons/search.svg +5 -0
  41. package/esm/components/Icon/icons/square-check-filled.svg +1 -0
  42. package/esm/components/Icon/icons/square.svg +1 -0
  43. package/esm/components/Icon/icons/user.svg +5 -0
  44. package/esm/components/Inputs/BooleanInput/BooleanInput.css +51 -0
  45. package/esm/components/Inputs/BooleanInput/BooleanInput.d.ts +4 -0
  46. package/esm/components/Inputs/BooleanInput/BooleanInput.js +13 -0
  47. package/esm/components/Inputs/BooleanInput/BooleanInput.js.map +1 -0
  48. package/esm/components/Inputs/BooleanInput/BooleanInput.tsx +24 -0
  49. package/esm/components/Inputs/BooleanInput/BooleanInput.types.d.ts +7 -0
  50. package/esm/components/Inputs/BooleanInput/BooleanInput.types.js +2 -0
  51. package/esm/components/Inputs/BooleanInput/BooleanInput.types.js.map +1 -0
  52. package/esm/components/Inputs/BooleanInput/BooleanInput.types.ts +7 -0
  53. package/esm/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +44 -0
  54. package/esm/components/Inputs/TextInput/TextInput.css +42 -0
  55. package/esm/components/Inputs/TextInput/TextInput.d.ts +4 -0
  56. package/esm/components/Inputs/TextInput/TextInput.js +16 -0
  57. package/esm/components/Inputs/TextInput/TextInput.js.map +1 -0
  58. package/esm/components/Inputs/TextInput/TextInput.tsx +24 -0
  59. package/esm/components/Inputs/TextInput/TextInput.types.d.ts +8 -0
  60. package/esm/components/Inputs/TextInput/TextInput.types.js +2 -0
  61. package/esm/components/Inputs/TextInput/TextInput.types.js.map +1 -0
  62. package/esm/components/Inputs/TextInput/TextInput.types.ts +8 -0
  63. package/esm/components/Inputs/TextInput/__stories__/TextInput.stories.mdx +55 -0
  64. package/esm/components/Loader/Loader.css +42 -0
  65. package/esm/components/Loader/Loader.d.ts +4 -0
  66. package/esm/components/Loader/Loader.js +6 -0
  67. package/esm/components/Loader/Loader.js.map +1 -0
  68. package/esm/components/Loader/Loader.types.d.ts +3 -0
  69. package/esm/components/Loader/Loader.types.js +2 -0
  70. package/esm/components/Loader/Loader.types.js.map +1 -0
  71. package/esm/components/Loader/__stories__/Loader.stories.mdx +30 -0
  72. package/esm/index.d.ts +9 -0
  73. package/esm/index.js +10 -0
  74. package/esm/index.js.map +1 -0
  75. package/esm/layouts/Header/Header.css +83 -0
  76. package/esm/layouts/Header/Header.d.ts +4 -0
  77. package/esm/layouts/Header/Header.js +14 -0
  78. package/esm/layouts/Header/Header.js.map +1 -0
  79. package/esm/layouts/Header/Header.types.d.ts +4 -0
  80. package/esm/layouts/Header/Header.types.js +2 -0
  81. package/esm/layouts/Header/Header.types.js.map +1 -0
  82. package/esm/layouts/Header/HeaderActions.d.ts +3 -0
  83. package/esm/layouts/Header/HeaderActions.js +7 -0
  84. package/esm/layouts/Header/HeaderActions.js.map +1 -0
  85. package/esm/layouts/Header/HeaderProfile.d.ts +3 -0
  86. package/esm/layouts/Header/HeaderProfile.js +16 -0
  87. package/esm/layouts/Header/HeaderProfile.js.map +1 -0
  88. package/esm/layouts/Header/HeaderTitle.d.ts +3 -0
  89. package/esm/layouts/Header/HeaderTitle.js +11 -0
  90. package/esm/layouts/Header/HeaderTitle.js.map +1 -0
  91. package/esm/layouts/Header/__stories__/Header.stories.mdx +36 -0
  92. package/esm/layouts/Navigation/Navigation.css +74 -0
  93. package/esm/layouts/Navigation/Navigation.d.ts +4 -0
  94. package/esm/layouts/Navigation/Navigation.js +15 -0
  95. package/esm/layouts/Navigation/Navigation.js.map +1 -0
  96. package/esm/layouts/Navigation/Navigation.types.d.ts +5 -0
  97. package/esm/layouts/Navigation/Navigation.types.js +2 -0
  98. package/esm/layouts/Navigation/Navigation.types.js.map +1 -0
  99. package/esm/layouts/Navigation/NavigationActions.d.ts +4 -0
  100. package/esm/layouts/Navigation/NavigationActions.js +4 -0
  101. package/esm/layouts/Navigation/NavigationActions.js.map +1 -0
  102. package/esm/layouts/Navigation/NavigationBreadcrumb.d.ts +6 -0
  103. package/esm/layouts/Navigation/NavigationBreadcrumb.js +26 -0
  104. package/esm/layouts/Navigation/NavigationBreadcrumb.js.map +1 -0
  105. package/esm/layouts/Navigation/__stories__/Navigation.stories.mdx +46 -0
  106. package/esm/utils/string.utils.d.ts +1 -0
  107. package/esm/utils/string.utils.js +2 -0
  108. package/esm/utils/string.utils.js.map +1 -0
  109. package/esm/utils/validator.utils.d.ts +2 -0
  110. package/esm/utils/validator.utils.js +5 -0
  111. package/esm/utils/validator.utils.js.map +1 -0
  112. package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
  113. package/lib/components/Button/Button.css +93 -0
  114. package/lib/components/Button/Button.d.ts +5 -0
  115. package/lib/components/Button/Button.js +21 -0
  116. package/lib/components/Button/Button.js.map +1 -0
  117. package/lib/components/Button/Button.types.d.ts +9 -0
  118. package/lib/components/Button/Button.types.js +3 -0
  119. package/lib/components/Button/Button.types.js.map +1 -0
  120. package/lib/components/Button/__stories__/Button.stories.mdx +74 -0
  121. package/lib/components/Checkbox/Checkbox.css +61 -0
  122. package/lib/components/Checkbox/Checkbox.d.ts +7 -0
  123. package/lib/components/Checkbox/Checkbox.js +27 -0
  124. package/lib/components/Checkbox/Checkbox.js.map +1 -0
  125. package/lib/components/Checkbox/Checkbox.types.d.ts +4 -0
  126. package/lib/components/Checkbox/Checkbox.types.js +3 -0
  127. package/lib/components/Checkbox/Checkbox.types.js.map +1 -0
  128. package/lib/components/Checkbox/__stories__/Checkbox.stories.mdx +43 -0
  129. package/lib/components/Icon/Icon.css +26 -0
  130. package/lib/components/Icon/Icon.d.ts +4 -0
  131. package/lib/components/Icon/Icon.js +16 -0
  132. package/lib/components/Icon/Icon.js.map +1 -0
  133. package/lib/components/Icon/Icon.types.d.ts +4 -0
  134. package/lib/components/Icon/Icon.types.js +3 -0
  135. package/lib/components/Icon/Icon.types.js.map +1 -0
  136. package/lib/components/Icon/__stories__/Icon.stories.mdx +86 -0
  137. package/lib/components/Icon/icons/check.svg +4 -0
  138. package/lib/components/Icon/icons/chevron-down.svg +4 -0
  139. package/lib/components/Icon/icons/chevron-left.svg +4 -0
  140. package/lib/components/Icon/icons/chevron-right.svg +4 -0
  141. package/lib/components/Icon/icons/chevron-up.svg +4 -0
  142. package/lib/components/Icon/icons/heart-filled.svg +4 -0
  143. package/lib/components/Icon/icons/heart.svg +4 -0
  144. package/lib/components/Icon/icons/home.svg +6 -0
  145. package/lib/components/Icon/icons/index.d.ts +3 -0
  146. package/lib/components/Icon/icons/index.js +19 -0
  147. package/lib/components/Icon/icons/index.js.map +1 -0
  148. package/lib/components/Icon/icons/index.ts +15 -0
  149. package/lib/components/Icon/icons/plus.svg +5 -0
  150. package/lib/components/Icon/icons/search.svg +5 -0
  151. package/lib/components/Icon/icons/square-check-filled.svg +1 -0
  152. package/lib/components/Icon/icons/square.svg +1 -0
  153. package/lib/components/Icon/icons/user.svg +5 -0
  154. package/lib/components/Inputs/BooleanInput/BooleanInput.css +51 -0
  155. package/lib/components/Inputs/BooleanInput/BooleanInput.d.ts +4 -0
  156. package/lib/components/Inputs/BooleanInput/BooleanInput.js +17 -0
  157. package/lib/components/Inputs/BooleanInput/BooleanInput.js.map +1 -0
  158. package/lib/components/Inputs/BooleanInput/BooleanInput.tsx +24 -0
  159. package/lib/components/Inputs/BooleanInput/BooleanInput.types.d.ts +7 -0
  160. package/lib/components/Inputs/BooleanInput/BooleanInput.types.js +3 -0
  161. package/lib/components/Inputs/BooleanInput/BooleanInput.types.js.map +1 -0
  162. package/lib/components/Inputs/BooleanInput/BooleanInput.types.ts +7 -0
  163. package/lib/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +44 -0
  164. package/lib/components/Inputs/TextInput/TextInput.css +42 -0
  165. package/lib/components/Inputs/TextInput/TextInput.d.ts +4 -0
  166. package/lib/components/Inputs/TextInput/TextInput.js +20 -0
  167. package/lib/components/Inputs/TextInput/TextInput.js.map +1 -0
  168. package/lib/components/Inputs/TextInput/TextInput.tsx +24 -0
  169. package/lib/components/Inputs/TextInput/TextInput.types.d.ts +8 -0
  170. package/lib/components/Inputs/TextInput/TextInput.types.js +3 -0
  171. package/lib/components/Inputs/TextInput/TextInput.types.js.map +1 -0
  172. package/lib/components/Inputs/TextInput/TextInput.types.ts +8 -0
  173. package/lib/components/Inputs/TextInput/__stories__/TextInput.stories.mdx +55 -0
  174. package/lib/components/Loader/Loader.css +42 -0
  175. package/lib/components/Loader/Loader.d.ts +4 -0
  176. package/lib/components/Loader/Loader.js +10 -0
  177. package/lib/components/Loader/Loader.js.map +1 -0
  178. package/lib/components/Loader/Loader.types.d.ts +3 -0
  179. package/lib/components/Loader/Loader.types.js +3 -0
  180. package/lib/components/Loader/Loader.types.js.map +1 -0
  181. package/lib/components/Loader/__stories__/Loader.stories.mdx +30 -0
  182. package/lib/index.d.ts +9 -0
  183. package/lib/index.js +26 -0
  184. package/lib/index.js.map +1 -0
  185. package/lib/layouts/Header/Header.css +83 -0
  186. package/lib/layouts/Header/Header.d.ts +4 -0
  187. package/lib/layouts/Header/Header.js +18 -0
  188. package/lib/layouts/Header/Header.js.map +1 -0
  189. package/lib/layouts/Header/Header.types.d.ts +4 -0
  190. package/lib/layouts/Header/Header.types.js +3 -0
  191. package/lib/layouts/Header/Header.types.js.map +1 -0
  192. package/lib/layouts/Header/HeaderActions.d.ts +3 -0
  193. package/lib/layouts/Header/HeaderActions.js +11 -0
  194. package/lib/layouts/Header/HeaderActions.js.map +1 -0
  195. package/lib/layouts/Header/HeaderProfile.d.ts +3 -0
  196. package/lib/layouts/Header/HeaderProfile.js +20 -0
  197. package/lib/layouts/Header/HeaderProfile.js.map +1 -0
  198. package/lib/layouts/Header/HeaderTitle.d.ts +3 -0
  199. package/lib/layouts/Header/HeaderTitle.js +15 -0
  200. package/lib/layouts/Header/HeaderTitle.js.map +1 -0
  201. package/lib/layouts/Header/__stories__/Header.stories.mdx +36 -0
  202. package/lib/layouts/Navigation/Navigation.css +74 -0
  203. package/lib/layouts/Navigation/Navigation.d.ts +4 -0
  204. package/lib/layouts/Navigation/Navigation.js +19 -0
  205. package/lib/layouts/Navigation/Navigation.js.map +1 -0
  206. package/lib/layouts/Navigation/Navigation.types.d.ts +5 -0
  207. package/lib/layouts/Navigation/Navigation.types.js +3 -0
  208. package/lib/layouts/Navigation/Navigation.types.js.map +1 -0
  209. package/lib/layouts/Navigation/NavigationActions.d.ts +4 -0
  210. package/lib/layouts/Navigation/NavigationActions.js +8 -0
  211. package/lib/layouts/Navigation/NavigationActions.js.map +1 -0
  212. package/lib/layouts/Navigation/NavigationBreadcrumb.d.ts +6 -0
  213. package/lib/layouts/Navigation/NavigationBreadcrumb.js +31 -0
  214. package/lib/layouts/Navigation/NavigationBreadcrumb.js.map +1 -0
  215. package/lib/layouts/Navigation/__stories__/Navigation.stories.mdx +46 -0
  216. package/lib/utils/string.utils.d.ts +1 -0
  217. package/lib/utils/string.utils.js +6 -0
  218. package/lib/utils/string.utils.js.map +1 -0
  219. package/lib/utils/validator.utils.d.ts +2 -0
  220. package/lib/utils/validator.utils.js +9 -0
  221. package/lib/utils/validator.utils.js.map +1 -0
  222. package/package.json +51 -0
  223. package/src/assets/fonts/Montserrat-Medium.ttf +0 -0
  224. package/src/components/Button/Button.css +93 -0
  225. package/src/components/Button/Button.tsx +34 -0
  226. package/src/components/Button/Button.types.ts +9 -0
  227. package/src/components/Button/__stories__/Button.stories.mdx +74 -0
  228. package/src/components/Checkbox/Checkbox.css +61 -0
  229. package/src/components/Checkbox/Checkbox.tsx +30 -0
  230. package/src/components/Checkbox/Checkbox.types.ts +1 -0
  231. package/src/components/Checkbox/__stories__/Checkbox.stories.mdx +43 -0
  232. package/src/components/Icon/Icon.css +26 -0
  233. package/src/components/Icon/Icon.tsx +13 -0
  234. package/src/components/Icon/Icon.types.ts +1 -0
  235. package/src/components/Icon/__stories__/Icon.stories.mdx +86 -0
  236. package/src/components/Icon/icons/check.svg +4 -0
  237. package/src/components/Icon/icons/chevron-down.svg +4 -0
  238. package/src/components/Icon/icons/chevron-left.svg +4 -0
  239. package/src/components/Icon/icons/chevron-right.svg +4 -0
  240. package/src/components/Icon/icons/chevron-up.svg +4 -0
  241. package/src/components/Icon/icons/heart-filled.svg +4 -0
  242. package/src/components/Icon/icons/heart.svg +4 -0
  243. package/src/components/Icon/icons/home.svg +6 -0
  244. package/src/components/Icon/icons/index.ts +15 -0
  245. package/src/components/Icon/icons/plus.svg +5 -0
  246. package/src/components/Icon/icons/search.svg +5 -0
  247. package/src/components/Icon/icons/square-check-filled.svg +1 -0
  248. package/src/components/Icon/icons/square.svg +1 -0
  249. package/src/components/Icon/icons/user.svg +5 -0
  250. package/src/components/Inputs/BooleanInput/BooleanInput.css +51 -0
  251. package/src/components/Inputs/BooleanInput/BooleanInput.tsx +24 -0
  252. package/src/components/Inputs/BooleanInput/BooleanInput.types.ts +7 -0
  253. package/src/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +44 -0
  254. package/src/components/Inputs/TextInput/TextInput.css +42 -0
  255. package/src/components/Inputs/TextInput/TextInput.tsx +24 -0
  256. package/src/components/Inputs/TextInput/TextInput.types.ts +8 -0
  257. package/src/components/Inputs/TextInput/__stories__/TextInput.stories.mdx +55 -0
  258. package/src/components/Loader/Loader.css +42 -0
  259. package/src/components/Loader/Loader.tsx +7 -0
  260. package/src/components/Loader/Loader.types.ts +1 -0
  261. package/src/components/Loader/__stories__/Loader.stories.mdx +30 -0
  262. package/src/index.ts +10 -0
  263. package/src/layouts/Header/Header.css +83 -0
  264. package/src/layouts/Header/Header.tsx +18 -0
  265. package/src/layouts/Header/Header.types.ts +1 -0
  266. package/src/layouts/Header/HeaderActions.tsx +8 -0
  267. package/src/layouts/Header/HeaderProfile.tsx +20 -0
  268. package/src/layouts/Header/HeaderTitle.tsx +17 -0
  269. package/src/layouts/Header/__stories__/Header.stories.mdx +36 -0
  270. package/src/layouts/Navigation/Navigation.css +74 -0
  271. package/src/layouts/Navigation/Navigation.tsx +19 -0
  272. package/src/layouts/Navigation/Navigation.types.ts +1 -0
  273. package/src/layouts/Navigation/NavigationActions.tsx +7 -0
  274. package/src/layouts/Navigation/NavigationBreadcrumb.tsx +55 -0
  275. package/src/layouts/Navigation/__stories__/Navigation.stories.mdx +46 -0
  276. package/src/utils/string.utils.ts +1 -0
  277. package/src/utils/validator.utils.ts +8 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # Techoff Suite - UI
@@ -0,0 +1,93 @@
1
+ .button {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ border: none;
6
+ border-radius: 6px;
7
+ font-size: 14px;
8
+ line-height: 16px;
9
+ font-weight: 500;
10
+ cursor: pointer;
11
+ transition: all ease 0.3s;
12
+ }
13
+ .button > div {
14
+ margin-right: 8px;
15
+ }
16
+ .button > div:last-child {
17
+ margin-right: 0px;
18
+ }
19
+ /* ####### */
20
+ /* BLOCK */
21
+ .button--block {
22
+ width: 100%;
23
+ }
24
+ /* ####### */
25
+ /* SIZES */
26
+ .button--md {
27
+ height: 32px;
28
+ padding: 0 14px;
29
+ }
30
+ .button--md.button--icon-only {
31
+ width: 32px;
32
+ padding: 0;
33
+ }
34
+ .button--lg {
35
+ height: 40px;
36
+ padding: 0 16px;
37
+ }
38
+ .button--lg.button--icon-only {
39
+ width: 40px;
40
+ padding: 0;
41
+ }
42
+ /* ########## */
43
+ /* VARIANTS */
44
+ .button--primary {
45
+ background: #007dbc;
46
+ color: #ffffff;
47
+ }
48
+ .button--primary:hover {
49
+ background: #00689d;
50
+ }
51
+ .button--secondary {
52
+ background: #e7f3f9;
53
+ color: #007dbc;
54
+ }
55
+ .button--secondary:hover {
56
+ background: #bedeef;
57
+ }
58
+ .button--success {
59
+ background: #02be8a;
60
+ color: #ffffff;
61
+ }
62
+ .button--success:hover {
63
+ background: #029e73;
64
+ color: #ffffff;
65
+ }
66
+ .button--ghost {
67
+ background: #ffffff;
68
+ color: #1d1d1b;
69
+ font-weight: 400;
70
+ }
71
+ .button--ghost:hover {
72
+ background: #e7f3f9;
73
+ }
74
+ .button--shadow {
75
+ box-shadow: 0px 12px 12px 0px #00537d1a;
76
+ background: #ffffff;
77
+ color: #4e5d6b;
78
+ }
79
+ /* ######### */
80
+ /* ROUNDED */
81
+ .button--rounded {
82
+ border-radius: 9999px;
83
+ }
84
+
85
+ /* ######### */
86
+ /* GLOBALS */
87
+ * {
88
+ font-size: 14px;
89
+ outline: none;
90
+ box-sizing: border-box;
91
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
92
+ 'Helvetica Neue', sans-serif;
93
+ }
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import { ButtonProps } from './Button.types';
4
+ import './Button.css';
5
+ export declare const Button: ({ children, icon, iconDirection, size, variant, block, rounded, onClick, }: PropsWithChildren<ButtonProps>) => React.JSX.Element;
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { Icon } from '../Icon/Icon';
3
+ import './Button.css';
4
+ export const Button = ({ children, icon, iconDirection = 'left', size = 'md', variant = 'primary', block, rounded, onClick, }) => {
5
+ // #########
6
+ // Rendering
7
+ return (React.createElement("button", { className: `
8
+ button button--${size} button--${variant}
9
+ ${block ? 'button--block' : ''}
10
+ ${rounded ? 'button--rounded' : ''}
11
+ ${icon && !children ? 'button--icon-only' : ''}
12
+ `, onClick: onClick },
13
+ icon && iconDirection === 'left' && React.createElement(Icon, { name: icon, size: "16" }),
14
+ children && React.createElement("div", null, children),
15
+ icon && iconDirection === 'right' && React.createElement(Icon, { name: icon, size: "16" })));
16
+ };
17
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,aAAa,GAAG,MAAM,EACtB,IAAI,GAAG,IAAI,EACX,OAAO,GAAG,SAAS,EACnB,KAAK,EACL,OAAO,EACP,OAAO,GACwB,EAAE,EAAE;IACnC,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,gCACE,SAAS,EAAE;yBACQ,IAAI,YAAY,OAAO;UACtC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;UAC5B,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE;UAChC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE;OAC/C,EACD,OAAO,EAAE,OAAO;QAEf,IAAI,IAAI,aAAa,KAAK,MAAM,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG;QAClE,QAAQ,IAAI,iCAAM,QAAQ,CAAO;QACjC,IAAI,IAAI,aAAa,KAAK,OAAO,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,CAC7D,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type ButtonProps = {
2
+ icon?: string;
3
+ iconDirection?: 'left' | 'right';
4
+ size?: 'md' | 'lg';
5
+ variant?: 'primary' | 'secondary' | 'success' | 'ghost' | 'shadow';
6
+ block?: boolean;
7
+ rounded?: boolean;
8
+ onClick: () => void;
9
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Button.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.types.js","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,74 @@
1
+ import React from 'react';
2
+ import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
3
+ import { Button } from '../Button';
4
+ import { icons } from '../../Icon/icons';
5
+
6
+ <Meta title="Components/Button" />
7
+
8
+ export const buttonArgTypes = {
9
+ children: {
10
+ control: 'text',
11
+ description: 'Child of the button.',
12
+ },
13
+ icon: {
14
+ control: 'select',
15
+ options: Object.keys(icons),
16
+ description: 'Icon of the button.',
17
+ },
18
+ iconDirection: {
19
+ control: 'inline-radio',
20
+ options: ['left', 'right'],
21
+ description: 'Define the direction of the icon.',
22
+ table: { defaultValue: { summary: 'left' } },
23
+ },
24
+ size: {
25
+ control: 'inline-radio',
26
+ options: ['md', 'lg'],
27
+ description: 'Define the size of the button.',
28
+ table: { defaultValue: { summary: 'md' } },
29
+ },
30
+ variant: {
31
+ control: 'inline-radio',
32
+ options: ['primary', 'secondary', 'success', 'ghost', 'shadow'],
33
+ description: "Variant of the button defining it's color and outline.",
34
+ table: { defaultValue: { summary: 'primary' } },
35
+ },
36
+ block: {
37
+ control: 'boolean',
38
+ description: 'Define if the button is full width',
39
+ table: { defaultValue: { summary: 'false' } },
40
+ },
41
+ rounded: {
42
+ control: 'boolean',
43
+ description: 'Define if the button has its corner full rounded',
44
+ table: { defaultValue: { summary: 'false' } },
45
+ },
46
+ };
47
+
48
+ # Button
49
+
50
+ Buttons express what action will occur when the users clicks. Buttons are used to initialize an action, either in the background or foreground of an experience.
51
+
52
+ ## Overview
53
+
54
+ <Canvas>
55
+ <Story
56
+ name="Overview"
57
+ args={{
58
+ children: 'Button',
59
+ iconDirection: 'left',
60
+ size: 'md',
61
+ variant: 'primary',
62
+ block: false,
63
+ rounded: false,
64
+ onClick: () => {},
65
+ }}
66
+ argTypes={buttonArgTypes}
67
+ >
68
+ {args => <Button {...args}>{args.children}</Button>}
69
+ </Story>
70
+ </Canvas>
71
+
72
+ ## Props
73
+
74
+ <ArgsTable story="Overview" of={Button} />
@@ -0,0 +1,61 @@
1
+ .checkbox {
2
+ display: flex;
3
+ align-items: center;
4
+ cursor: pointer;
5
+ }
6
+ /* ##### */
7
+ /* BOX */
8
+ .checkbox:hover .checkbox-box {
9
+ background: #e7f3f9;
10
+ }
11
+ .checkbox-box {
12
+ position: relative;
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ width: 24px;
17
+ height: 24px;
18
+ border-radius: 6px;
19
+ color: #007dbc;
20
+ transition: all ease 0.3s;
21
+ }
22
+ .checkbox-box::before {
23
+ content: '';
24
+ position: absolute;
25
+ width: 16px;
26
+ height: 16px;
27
+ border-radius: 6px;
28
+ background: #ffffff;
29
+ z-index: 10;
30
+ }
31
+ .checkbox-box .icon {
32
+ z-index: 20;
33
+ }
34
+
35
+ /* ################# */
36
+ /* LABEL / CAPTION */
37
+ .checkbox-container {
38
+ width: 100%;
39
+ margin-left: 4px;
40
+ padding: 4px 8px;
41
+ border-radius: 6px;
42
+ }
43
+ .checkbox-container--with-caption .checkbox-label {
44
+ color: #007dbc;
45
+ font-weight: 700;
46
+ }
47
+ .checkbox-caption {
48
+ color: #404040;
49
+ font-size: 12px;
50
+ font-style: italic;
51
+ }
52
+
53
+ /* ######### */
54
+ /* GLOBALS */
55
+ * {
56
+ font-size: 14px;
57
+ outline: none;
58
+ box-sizing: border-box;
59
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
60
+ 'Helvetica Neue', sans-serif;
61
+ }
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import { CheckboxProps } from './Checkbox.types';
4
+ import './Checkbox.css';
5
+ export declare const CheckboxLabel: ({ children }: PropsWithChildren) => React.JSX.Element;
6
+ export declare const CheckboxCaption: ({ children }: PropsWithChildren) => React.JSX.Element;
7
+ export declare const Checkbox: ({ children, checked, onChange }: PropsWithChildren<CheckboxProps>) => React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import { Children } from 'react';
3
+ import { isSuiteElement } from '../../utils/validator.utils';
4
+ import { Icon } from '../Icon/Icon';
5
+ import './Checkbox.css';
6
+ export const CheckboxLabel = ({ children }) => React.createElement("div", { className: "checkbox-label" }, children);
7
+ export const CheckboxCaption = ({ children }) => React.createElement("div", { className: "checkbox-caption" }, children);
8
+ export const Checkbox = ({ children, checked, onChange }) => {
9
+ const labelElement = Children.toArray(children).find(c => isSuiteElement(c, 'CheckboxLabel'));
10
+ const captionElement = Children.toArray(children).find(c => isSuiteElement(c, 'CheckboxCaption'));
11
+ // #########
12
+ // Rendering
13
+ return (React.createElement("div", { className: "checkbox", onClick: () => onChange(!checked) },
14
+ React.createElement("div", { className: "checkbox-box" },
15
+ checked && React.createElement(Icon, { name: "square-check-filled" }),
16
+ !checked && React.createElement(Icon, { name: "square" })),
17
+ React.createElement("div", { className: `checkbox-container ${captionElement ? 'checkbox-container--with-caption' : ''}` },
18
+ labelElement,
19
+ captionElement)));
20
+ };
21
+ //# sourceMappingURL=Checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAqB,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE,CAAC,6BAAK,SAAS,EAAC,gBAAgB,IAAE,QAAQ,CAAO,CAAC;AACnH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE,CAAC,6BAAK,SAAS,EAAC,kBAAkB,IAAE,QAAQ,CAAO,CAAC;AAEvH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAoC,EAAE,EAAE;IAC5F,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC;IAC9F,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAElG,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;QACzD,6BAAK,SAAS,EAAC,cAAc;YAC1B,OAAO,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAC,qBAAqB,GAAG;YAC9C,CAAC,OAAO,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,GAAG,CAC/B;QAEN,6BAAK,SAAS,EAAE,sBAAsB,cAAc,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,EAAE,EAAE;YAC7F,YAAY;YACZ,cAAc,CACX,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type CheckboxProps = {
2
+ checked?: boolean;
3
+ onChange: (value: boolean) => void;
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Checkbox.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.types.js","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
3
+ import { Checkbox, CheckboxLabel, CheckboxCaption } from '../Checkbox';
4
+
5
+ <Meta title="Components/Checkbox" />
6
+
7
+ export const checkboxArgTypes = {
8
+ checked: {
9
+ control: 'boolean',
10
+ description: 'State of the checkbox.',
11
+ table: { defaultValue: { summary: 'false' } },
12
+ },
13
+ };
14
+
15
+ # Checkbox
16
+
17
+ The checkboxes are applied when users can select all, several, or none of the options from a given list.
18
+
19
+ ## Overview
20
+
21
+ <Canvas>
22
+ <Story
23
+ name="Overview"
24
+ args={{
25
+ children: [
26
+ <CheckboxLabel>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CheckboxLabel>,
27
+ <CheckboxCaption>
28
+ auctor nisl justo, sed posuere est dignissim nec. Integer ultricies, metus ac imperdiet ullamcorper, est justo
29
+ viverra nisl, in posuere dui urna eget quam.
30
+ </CheckboxCaption>,
31
+ ],
32
+ checked: false,
33
+ onChange: () => {},
34
+ }}
35
+ argTypes={checkboxArgTypes}
36
+ >
37
+ {args => <Checkbox {...args}>{args.children}</Checkbox>}
38
+ </Story>
39
+ </Canvas>
40
+
41
+ ## Props
42
+
43
+ <ArgsTable story="Overview" of={Checkbox} />
@@ -0,0 +1,26 @@
1
+ .icon--16 {
2
+ width: 16px;
3
+ height: 16px;
4
+ }
5
+ .icon--20 {
6
+ width: 20px;
7
+ height: 20px;
8
+ }
9
+ .icon--24 {
10
+ width: 24px;
11
+ height: 24px;
12
+ }
13
+ .icon svg {
14
+ width: 100%;
15
+ height: 100%;
16
+ }
17
+
18
+ /* ######### */
19
+ /* GLOBALS */
20
+ * {
21
+ font-size: 14px;
22
+ outline: none;
23
+ box-sizing: border-box;
24
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
25
+ 'Helvetica Neue', sans-serif;
26
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from './Icon.types';
3
+ import './Icon.css';
4
+ export declare const Icon: ({ name, size }: IconProps) => React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { icons } from './icons';
3
+ import './Icon.css';
4
+ export const Icon = ({ name, size = '20' }) => {
5
+ const icon = icons[name];
6
+ // #########
7
+ // Rendering
8
+ if (!icon)
9
+ return React.createElement(React.Fragment, null);
10
+ return React.createElement("div", { className: `icon icon--${size}`, dangerouslySetInnerHTML: { __html: icon } });
11
+ };
12
+ //# sourceMappingURL=Icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,EAAa,EAAE,EAAE;IACvD,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IAEzB,YAAY;IACZ,YAAY;IACZ,IAAI,CAAC,IAAI;QAAE,OAAO,yCAAK,CAAC;IACxB,OAAO,6BAAK,SAAS,EAAE,cAAc,IAAI,EAAE,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAI,CAAC;AAC7F,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type IconProps = {
2
+ name: string;
3
+ size?: '16' | '20' | '24';
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Icon.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.types.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,86 @@
1
+ import React from 'react';
2
+ import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
3
+ import { Icon } from '../Icon';
4
+ import { icons } from '../icons';
5
+
6
+ <Meta title="Guidelines/Iconography" />
7
+
8
+ <style>
9
+ {`
10
+ .icons {
11
+ display: flex;
12
+ flex-wrap: wrap;
13
+ margin-top: 20px;
14
+ }
15
+ .icon-container {
16
+ display: flex;
17
+ flex-direction: column;
18
+ width: 140px;
19
+ height: 110px;
20
+ margin: 0 10px 10px 0;
21
+ box-shadow: rgba(0, 0, 0, 0.10) 0 1px 3px 0;
22
+ border: 1px solid hsla(203, 50%, 30%, 0.15);
23
+ border-radius: 5px;
24
+ color: #27272a;
25
+ overflow: hidden;
26
+ }
27
+ .icon {
28
+ display: flex;
29
+ flex: 1;
30
+ align-items: center;
31
+ justify-content: center;
32
+ }
33
+ .icon-label {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ height: 30px;
38
+ border-top: 1px solid hsla(203, 50%, 30%, 0.15);
39
+ background: #fafafa;
40
+ font-size: 13px;
41
+ }
42
+ `}
43
+ </style>
44
+
45
+ export const iconArgTypes = {
46
+ name: {
47
+ control: 'select',
48
+ options: Object.keys(icons),
49
+ description: 'Name of an icon.',
50
+ },
51
+ size: {
52
+ control: 'inline-radio',
53
+ options: ['16', '20', '24'],
54
+ description: 'Define the size of an icon.',
55
+ table: { defaultValue: { summary: '20' } },
56
+ },
57
+ };
58
+
59
+ # Iconography
60
+
61
+ Icons are visual symbols used to represent ideas, objects or actions. They communicate messages at a glance, allow interactivity and draw attention to important information.
62
+
63
+ ## Overview
64
+
65
+ <Canvas>
66
+ <Story name="Overview" args={{ name: 'heart', size: '20' }} argTypes={iconArgTypes}>
67
+ {args => <Icon {...args} />}
68
+ </Story>
69
+ </Canvas>
70
+
71
+ ## Props
72
+
73
+ <ArgsTable story="Overview" of={Icon} />
74
+
75
+ ## Icons
76
+
77
+ <div className="icons">
78
+ {Object.keys(icons).map(icon => (
79
+ <div className="icon-container" key={icon}>
80
+ <div className="icon">
81
+ <Icon name={icon} />
82
+ </div>
83
+ <div className="icon-label">{icon}</div>
84
+ </div>
85
+ ))}
86
+ </div>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-check" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
3
+ <path d="M5 12l5 5l10 -10"></path>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-down" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
3
+ <path d="M6 9l6 6l6 -6"></path>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
3
+ <path d="M15 6l-6 6l6 6"></path>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
3
+ <path d="M9 6l6 6l-6 6"></path>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
3
+ <path d="M6 15l6 -6l6 6"></path>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-heart-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
3
+ <path d="M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z" stroke-width="0" fill="currentColor"></path>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-heart" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
3
+ <path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"></path>
4
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
3
+ <path d="M5 12l-2 0l9 -9l9 9l-2 0"></path>
4
+ <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"></path>
5
+ <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"></path>
6
+ </svg>
@@ -0,0 +1,3 @@
1
+ export declare const icons: {
2
+ [k: string]: string;
3
+ };
@@ -0,0 +1,16 @@
1
+ export const icons = {
2
+ 'check': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-check" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M5 12l5 5l10 -10"></path></svg>',
3
+ 'chevron-down': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-down" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M6 9l6 6l6 -6"></path></svg>',
4
+ 'chevron-left': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M15 6l-6 6l6 6"></path></svg>',
5
+ 'chevron-right': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M9 6l6 6l-6 6"></path></svg>',
6
+ 'chevron-up': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M6 15l6 -6l6 6"></path></svg>',
7
+ 'heart-filled': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-heart-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z" stroke-width="0" fill="currentColor"></path></svg>',
8
+ 'heart': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-heart" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"></path></svg>',
9
+ 'home': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M5 12l-2 0l9 -9l9 9l-2 0"></path> <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"></path> <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"></path></svg>',
10
+ 'plus': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-plus" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 5l0 14"></path> <path d="M5 12l14 0"></path></svg>',
11
+ 'search': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"></path> <path d="M21 21l-6 -6"></path></svg>',
12
+ 'square-check-filled': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-square-check-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005 .195v12.666c0 1.96 -1.537 3.56 -3.472 3.662l-.195 .005h-12.666a3.667 3.667 0 0 1 -3.662 -3.472l-.005 -.195v-12.666c0 -1.96 1.537 -3.56 3.472 -3.662l.195 -.005h12.666zm-2.626 7.293a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z" stroke-width="0" fill="currentColor" /></svg>',
13
+ 'square': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-square" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z" /></svg>',
14
+ 'user': '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"></path> <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"></path></svg>',
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Icon/icons/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAA4B;IAC5C,OAAO,EAAE,yUAAyU;IAClV,cAAc,EAAE,6UAA6U;IAC7V,cAAc,EAAE,8UAA8U;IAC9V,eAAe,EAAE,8UAA8U;IAC/V,YAAY,EAAE,4UAA4U;IAC1V,cAAc,EAAE,4jBAA4jB;IAC5kB,OAAO,EAAE,qYAAqY;IAC9Y,MAAM,EAAE,6cAA6c;IACrd,MAAM,EAAE,iWAAiW;IACzW,QAAQ,EAAE,qYAAqY;IAC/Y,qBAAqB,EAAE,qtBAAqtB;IAC5uB,QAAQ,EAAE,wXAAwX;IAClY,MAAM,EAAE,uZAAuZ;CACha,CAAC"}