@dktunited-techoff/techoff-suite-ui 1.1.0 → 1.3.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 (413) hide show
  1. package/package.json +1 -1
  2. package/{lib/components/Button/Button.css → src/components/TsButton/TsButton.css} +18 -18
  3. package/src/components/TsButton/TsButton.tsx +34 -0
  4. package/src/components/{Button/Button.types.ts → TsButton/TsButton.types.ts} +1 -1
  5. package/{esm/components/Button/__stories__/Button.stories.mdx → src/components/TsButton/__stories__/TsButton.stories.mdx} +4 -4
  6. package/{esm/components/Icon/Icon.css → src/components/TsIcon/TsIcon.css} +4 -4
  7. package/src/components/TsIcon/TsIcon.tsx +13 -0
  8. package/src/components/TsIcon/TsIcon.types.ts +1 -0
  9. package/{lib/components/Icon/__stories__/Icon.stories.mdx → src/components/TsIcon/__stories__/TsIcon.stories.mdx} +4 -4
  10. package/{lib/components/Loader/Loader.css → src/components/TsLoader/TsLoader.css} +5 -5
  11. package/src/components/TsLoader/TsLoader.tsx +7 -0
  12. package/src/components/TsLoader/TsLoader.types.ts +1 -0
  13. package/{lib/components/Loader/__stories__/Loader.stories.mdx → src/components/TsLoader/__stories__/TsLoader.stories.mdx} +3 -3
  14. package/src/index.ts +6 -11
  15. package/{esm/layouts/Header/Header.css → src/layouts/TsHeader/TsHeader.css} +25 -25
  16. package/src/layouts/TsHeader/TsHeader.tsx +20 -0
  17. package/src/layouts/{Header/Header.types.ts → TsHeader/TsHeader.types.ts} +4 -4
  18. package/src/layouts/TsHeader/TsHeaderProfile.tsx +56 -0
  19. package/src/layouts/{Header/HeaderSearch.tsx → TsHeader/TsHeaderSearch.tsx} +15 -15
  20. package/src/layouts/{Header/__stories__/Header.stories.mdx → TsHeader/__stories__/TsHeader.stories.mdx} +12 -12
  21. package/src/layouts/{Navigation/Navigation.css → TsNavigation/TsNavigation.css} +16 -16
  22. package/src/layouts/TsNavigation/TsNavigation.tsx +54 -0
  23. package/src/layouts/TsNavigation/TsNavigation.types.ts +4 -0
  24. package/src/layouts/TsNavigation/__stories__/TsNavigation.stories.mdx +51 -0
  25. package/esm/assets/fonts/Montserrat-Medium.ttf +0 -0
  26. package/esm/assets/fonts/Roboto-Light.ttf +0 -0
  27. package/esm/components/Button/Button.css +0 -91
  28. package/esm/components/Button/Button.d.ts +0 -5
  29. package/esm/components/Button/Button.js +0 -17
  30. package/esm/components/Button/Button.js.map +0 -1
  31. package/esm/components/Button/Button.types.d.ts +0 -9
  32. package/esm/components/Button/Button.types.js +0 -2
  33. package/esm/components/Button/Button.types.js.map +0 -1
  34. package/esm/components/Checkbox/Checkbox.css +0 -72
  35. package/esm/components/Checkbox/Checkbox.d.ts +0 -4
  36. package/esm/components/Checkbox/Checkbox.js +0 -18
  37. package/esm/components/Checkbox/Checkbox.js.map +0 -1
  38. package/esm/components/Checkbox/Checkbox.types.d.ts +0 -7
  39. package/esm/components/Checkbox/Checkbox.types.js +0 -2
  40. package/esm/components/Checkbox/Checkbox.types.js.map +0 -1
  41. package/esm/components/Checkbox/__stories__/Checkbox.stories.mdx +0 -56
  42. package/esm/components/Icon/Icon.d.ts +0 -4
  43. package/esm/components/Icon/Icon.js +0 -12
  44. package/esm/components/Icon/Icon.js.map +0 -1
  45. package/esm/components/Icon/Icon.types.d.ts +0 -4
  46. package/esm/components/Icon/Icon.types.js +0 -2
  47. package/esm/components/Icon/Icon.types.js.map +0 -1
  48. package/esm/components/Icon/__stories__/Icon.stories.mdx +0 -89
  49. package/esm/components/Icon/icons/index.d.ts +0 -3
  50. package/esm/components/Icon/icons/index.js +0 -59
  51. package/esm/components/Icon/icons/index.js.map +0 -1
  52. package/esm/components/Inputs/BooleanInput/BooleanInput.css +0 -58
  53. package/esm/components/Inputs/BooleanInput/BooleanInput.d.ts +0 -4
  54. package/esm/components/Inputs/BooleanInput/BooleanInput.js +0 -13
  55. package/esm/components/Inputs/BooleanInput/BooleanInput.js.map +0 -1
  56. package/esm/components/Inputs/BooleanInput/BooleanInput.tsx +0 -24
  57. package/esm/components/Inputs/BooleanInput/BooleanInput.types.d.ts +0 -8
  58. package/esm/components/Inputs/BooleanInput/BooleanInput.types.js +0 -2
  59. package/esm/components/Inputs/BooleanInput/BooleanInput.types.js.map +0 -1
  60. package/esm/components/Inputs/BooleanInput/BooleanInput.types.ts +0 -8
  61. package/esm/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +0 -53
  62. package/esm/components/Inputs/Input/Input.css +0 -97
  63. package/esm/components/Inputs/Input/Input.d.ts +0 -4
  64. package/esm/components/Inputs/Input/Input.js +0 -26
  65. package/esm/components/Inputs/Input/Input.js.map +0 -1
  66. package/esm/components/Inputs/Input/Input.tsx +0 -67
  67. package/esm/components/Inputs/Input/Input.types.d.ts +0 -14
  68. package/esm/components/Inputs/Input/Input.types.js +0 -2
  69. package/esm/components/Inputs/Input/Input.types.js.map +0 -1
  70. package/esm/components/Inputs/Input/Input.types.ts +0 -15
  71. package/esm/components/Inputs/Input/__stories__/Input.stories.mdx +0 -95
  72. package/esm/components/Loader/Loader.css +0 -42
  73. package/esm/components/Loader/Loader.d.ts +0 -4
  74. package/esm/components/Loader/Loader.js +0 -6
  75. package/esm/components/Loader/Loader.js.map +0 -1
  76. package/esm/components/Loader/Loader.types.d.ts +0 -3
  77. package/esm/components/Loader/Loader.types.js +0 -2
  78. package/esm/components/Loader/Loader.types.js.map +0 -1
  79. package/esm/components/Loader/__stories__/Loader.stories.mdx +0 -30
  80. package/esm/components/Select/Select.css +0 -30
  81. package/esm/components/Select/Select.d.ts +0 -4
  82. package/esm/components/Select/Select.js +0 -14
  83. package/esm/components/Select/Select.js.map +0 -1
  84. package/esm/components/Select/Select.types.d.ts +0 -7
  85. package/esm/components/Select/Select.types.js +0 -2
  86. package/esm/components/Select/Select.types.js.map +0 -1
  87. package/esm/components/Select/__stories__/Select.stories.mdx +0 -44
  88. package/esm/hooks/use-click-outside.d.ts +0 -2
  89. package/esm/hooks/use-click-outside.js +0 -14
  90. package/esm/hooks/use-click-outside.js.map +0 -1
  91. package/esm/index.d.ts +0 -11
  92. package/esm/index.js +0 -12
  93. package/esm/index.js.map +0 -1
  94. package/esm/layouts/Header/Header.d.ts +0 -4
  95. package/esm/layouts/Header/Header.js +0 -14
  96. package/esm/layouts/Header/Header.js.map +0 -1
  97. package/esm/layouts/Header/Header.types.d.ts +0 -23
  98. package/esm/layouts/Header/Header.types.js +0 -2
  99. package/esm/layouts/Header/Header.types.js.map +0 -1
  100. package/esm/layouts/Header/HeaderProfile.d.ts +0 -5
  101. package/esm/layouts/Header/HeaderProfile.js +0 -38
  102. package/esm/layouts/Header/HeaderProfile.js.map +0 -1
  103. package/esm/layouts/Header/HeaderSearch.d.ts +0 -3
  104. package/esm/layouts/Header/HeaderSearch.js +0 -60
  105. package/esm/layouts/Header/HeaderSearch.js.map +0 -1
  106. package/esm/layouts/Header/__stories__/Header.stories.mdx +0 -71
  107. package/esm/layouts/Navigation/Navigation.css +0 -74
  108. package/esm/layouts/Navigation/Navigation.d.ts +0 -7
  109. package/esm/layouts/Navigation/Navigation.js +0 -29
  110. package/esm/layouts/Navigation/Navigation.js.map +0 -1
  111. package/esm/layouts/Navigation/Navigation.types.d.ts +0 -10
  112. package/esm/layouts/Navigation/Navigation.types.js +0 -2
  113. package/esm/layouts/Navigation/Navigation.types.js.map +0 -1
  114. package/esm/layouts/Navigation/__stories__/Navigation.stories.mdx +0 -51
  115. package/esm/utils/string.utils.d.ts +0 -1
  116. package/esm/utils/string.utils.js +0 -2
  117. package/esm/utils/string.utils.js.map +0 -1
  118. package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
  119. package/lib/assets/fonts/Roboto-Light.ttf +0 -0
  120. package/lib/components/Button/Button.d.ts +0 -5
  121. package/lib/components/Button/Button.js +0 -21
  122. package/lib/components/Button/Button.js.map +0 -1
  123. package/lib/components/Button/Button.types.d.ts +0 -9
  124. package/lib/components/Button/Button.types.js +0 -3
  125. package/lib/components/Button/Button.types.js.map +0 -1
  126. package/lib/components/Button/__stories__/Button.stories.mdx +0 -74
  127. package/lib/components/Checkbox/Checkbox.css +0 -72
  128. package/lib/components/Checkbox/Checkbox.d.ts +0 -4
  129. package/lib/components/Checkbox/Checkbox.js +0 -22
  130. package/lib/components/Checkbox/Checkbox.js.map +0 -1
  131. package/lib/components/Checkbox/Checkbox.types.d.ts +0 -7
  132. package/lib/components/Checkbox/Checkbox.types.js +0 -3
  133. package/lib/components/Checkbox/Checkbox.types.js.map +0 -1
  134. package/lib/components/Checkbox/__stories__/Checkbox.stories.mdx +0 -56
  135. package/lib/components/Icon/Icon.css +0 -26
  136. package/lib/components/Icon/Icon.d.ts +0 -4
  137. package/lib/components/Icon/Icon.js +0 -16
  138. package/lib/components/Icon/Icon.js.map +0 -1
  139. package/lib/components/Icon/Icon.types.d.ts +0 -4
  140. package/lib/components/Icon/Icon.types.js +0 -3
  141. package/lib/components/Icon/Icon.types.js.map +0 -1
  142. package/lib/components/Icon/icons/add-circle.svg +0 -1
  143. package/lib/components/Icon/icons/add.svg +0 -1
  144. package/lib/components/Icon/icons/alert-circle-filled.svg +0 -1
  145. package/lib/components/Icon/icons/alert-circle.svg +0 -1
  146. package/lib/components/Icon/icons/alert-triangle-filled.svg +0 -1
  147. package/lib/components/Icon/icons/alert-triangle.svg +0 -1
  148. package/lib/components/Icon/icons/arrow-diagonal-collapse.svg +0 -1
  149. package/lib/components/Icon/icons/arrow-diagonal-expand.svg +0 -1
  150. package/lib/components/Icon/icons/arrow-down.svg +0 -1
  151. package/lib/components/Icon/icons/arrow-go-back.svg +0 -1
  152. package/lib/components/Icon/icons/arrow-left-right.svg +0 -1
  153. package/lib/components/Icon/icons/arrow-left.svg +0 -1
  154. package/lib/components/Icon/icons/arrow-right.svg +0 -1
  155. package/lib/components/Icon/icons/arrow-up-down.svg +0 -1
  156. package/lib/components/Icon/icons/arrow-up.svg +0 -1
  157. package/lib/components/Icon/icons/award.svg +0 -1
  158. package/lib/components/Icon/icons/check-circle-filled.svg +0 -1
  159. package/lib/components/Icon/icons/check-circle-timer.svg +0 -7
  160. package/lib/components/Icon/icons/check-circle.svg +0 -1
  161. package/lib/components/Icon/icons/check-square-filled.svg +0 -1
  162. package/lib/components/Icon/icons/check-square.svg +0 -1
  163. package/lib/components/Icon/icons/check.svg +0 -1
  164. package/lib/components/Icon/icons/chevron-down.svg +0 -1
  165. package/lib/components/Icon/icons/chevron-left.svg +0 -1
  166. package/lib/components/Icon/icons/chevron-right.svg +0 -1
  167. package/lib/components/Icon/icons/chevron-up.svg +0 -1
  168. package/lib/components/Icon/icons/circle.svg +0 -1
  169. package/lib/components/Icon/icons/close-circle.svg +0 -1
  170. package/lib/components/Icon/icons/close.svg +0 -1
  171. package/lib/components/Icon/icons/currency-euro.svg +0 -1
  172. package/lib/components/Icon/icons/download.svg +0 -1
  173. package/lib/components/Icon/icons/edit.svg +0 -1
  174. package/lib/components/Icon/icons/external-link.svg +0 -1
  175. package/lib/components/Icon/icons/filter-off.svg +0 -1
  176. package/lib/components/Icon/icons/filter.svg +0 -1
  177. package/lib/components/Icon/icons/flashlight-off.svg +0 -1
  178. package/lib/components/Icon/icons/flashlight.svg +0 -1
  179. package/lib/components/Icon/icons/header-bikestudio.svg +0 -32
  180. package/lib/components/Icon/icons/header-nsc-helmet.svg +0 -32
  181. package/lib/components/Icon/icons/header-opticost.svg +0 -32
  182. package/lib/components/Icon/icons/header-repairability.svg +0 -32
  183. package/lib/components/Icon/icons/heart-filled.svg +0 -1
  184. package/lib/components/Icon/icons/heart.svg +0 -1
  185. package/lib/components/Icon/icons/history.svg +0 -1
  186. package/lib/components/Icon/icons/home.svg +0 -1
  187. package/lib/components/Icon/icons/index.d.ts +0 -3
  188. package/lib/components/Icon/icons/index.js +0 -62
  189. package/lib/components/Icon/icons/index.js.map +0 -1
  190. package/lib/components/Icon/icons/index.ts +0 -58
  191. package/lib/components/Icon/icons/link.svg +0 -1
  192. package/lib/components/Icon/icons/list-settings.svg +0 -1
  193. package/lib/components/Icon/icons/lock.svg +0 -1
  194. package/lib/components/Icon/icons/loop-right.svg +0 -1
  195. package/lib/components/Icon/icons/question-circle.svg +0 -1
  196. package/lib/components/Icon/icons/save.svg +0 -1
  197. package/lib/components/Icon/icons/search.svg +0 -1
  198. package/lib/components/Icon/icons/seedling-circle.svg +0 -12
  199. package/lib/components/Icon/icons/square.svg +0 -1
  200. package/lib/components/Icon/icons/tools.svg +0 -1
  201. package/lib/components/Icon/icons/user.svg +0 -1
  202. package/lib/components/Inputs/BooleanInput/BooleanInput.css +0 -58
  203. package/lib/components/Inputs/BooleanInput/BooleanInput.d.ts +0 -4
  204. package/lib/components/Inputs/BooleanInput/BooleanInput.js +0 -17
  205. package/lib/components/Inputs/BooleanInput/BooleanInput.js.map +0 -1
  206. package/lib/components/Inputs/BooleanInput/BooleanInput.tsx +0 -24
  207. package/lib/components/Inputs/BooleanInput/BooleanInput.types.d.ts +0 -8
  208. package/lib/components/Inputs/BooleanInput/BooleanInput.types.js +0 -3
  209. package/lib/components/Inputs/BooleanInput/BooleanInput.types.js.map +0 -1
  210. package/lib/components/Inputs/BooleanInput/BooleanInput.types.ts +0 -8
  211. package/lib/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +0 -53
  212. package/lib/components/Inputs/Input/Input.css +0 -97
  213. package/lib/components/Inputs/Input/Input.d.ts +0 -4
  214. package/lib/components/Inputs/Input/Input.js +0 -30
  215. package/lib/components/Inputs/Input/Input.js.map +0 -1
  216. package/lib/components/Inputs/Input/Input.tsx +0 -67
  217. package/lib/components/Inputs/Input/Input.types.d.ts +0 -14
  218. package/lib/components/Inputs/Input/Input.types.js +0 -3
  219. package/lib/components/Inputs/Input/Input.types.js.map +0 -1
  220. package/lib/components/Inputs/Input/Input.types.ts +0 -15
  221. package/lib/components/Inputs/Input/__stories__/Input.stories.mdx +0 -95
  222. package/lib/components/Loader/Loader.d.ts +0 -4
  223. package/lib/components/Loader/Loader.js +0 -10
  224. package/lib/components/Loader/Loader.js.map +0 -1
  225. package/lib/components/Loader/Loader.types.d.ts +0 -3
  226. package/lib/components/Loader/Loader.types.js +0 -3
  227. package/lib/components/Loader/Loader.types.js.map +0 -1
  228. package/lib/components/Select/Select.css +0 -30
  229. package/lib/components/Select/Select.d.ts +0 -4
  230. package/lib/components/Select/Select.js +0 -18
  231. package/lib/components/Select/Select.js.map +0 -1
  232. package/lib/components/Select/Select.types.d.ts +0 -7
  233. package/lib/components/Select/Select.types.js +0 -3
  234. package/lib/components/Select/Select.types.js.map +0 -1
  235. package/lib/components/Select/__stories__/Select.stories.mdx +0 -44
  236. package/lib/hooks/use-click-outside.d.ts +0 -2
  237. package/lib/hooks/use-click-outside.js +0 -18
  238. package/lib/hooks/use-click-outside.js.map +0 -1
  239. package/lib/index.d.ts +0 -11
  240. package/lib/index.js +0 -28
  241. package/lib/index.js.map +0 -1
  242. package/lib/layouts/Header/Header.css +0 -186
  243. package/lib/layouts/Header/Header.d.ts +0 -4
  244. package/lib/layouts/Header/Header.js +0 -18
  245. package/lib/layouts/Header/Header.js.map +0 -1
  246. package/lib/layouts/Header/Header.types.d.ts +0 -23
  247. package/lib/layouts/Header/Header.types.js +0 -3
  248. package/lib/layouts/Header/Header.types.js.map +0 -1
  249. package/lib/layouts/Header/HeaderProfile.d.ts +0 -5
  250. package/lib/layouts/Header/HeaderProfile.js +0 -43
  251. package/lib/layouts/Header/HeaderProfile.js.map +0 -1
  252. package/lib/layouts/Header/HeaderSearch.d.ts +0 -3
  253. package/lib/layouts/Header/HeaderSearch.js +0 -64
  254. package/lib/layouts/Header/HeaderSearch.js.map +0 -1
  255. package/lib/layouts/Header/__stories__/Header.stories.mdx +0 -71
  256. package/lib/layouts/Navigation/Navigation.css +0 -74
  257. package/lib/layouts/Navigation/Navigation.d.ts +0 -7
  258. package/lib/layouts/Navigation/Navigation.js +0 -35
  259. package/lib/layouts/Navigation/Navigation.js.map +0 -1
  260. package/lib/layouts/Navigation/Navigation.types.d.ts +0 -10
  261. package/lib/layouts/Navigation/Navigation.types.js +0 -3
  262. package/lib/layouts/Navigation/Navigation.types.js.map +0 -1
  263. package/lib/layouts/Navigation/__stories__/Navigation.stories.mdx +0 -51
  264. package/lib/utils/string.utils.d.ts +0 -1
  265. package/lib/utils/string.utils.js +0 -6
  266. package/lib/utils/string.utils.js.map +0 -1
  267. package/src/components/Button/Button.css +0 -91
  268. package/src/components/Button/Button.tsx +0 -34
  269. package/src/components/Button/__stories__/Button.stories.mdx +0 -74
  270. package/src/components/Checkbox/Checkbox.css +0 -72
  271. package/src/components/Checkbox/Checkbox.tsx +0 -26
  272. package/src/components/Checkbox/Checkbox.types.ts +0 -7
  273. package/src/components/Checkbox/__stories__/Checkbox.stories.mdx +0 -56
  274. package/src/components/Icon/Icon.css +0 -26
  275. package/src/components/Icon/Icon.tsx +0 -13
  276. package/src/components/Icon/Icon.types.ts +0 -1
  277. package/src/components/Icon/__stories__/Icon.stories.mdx +0 -89
  278. package/src/components/Icon/icons/add-circle.svg +0 -1
  279. package/src/components/Icon/icons/add.svg +0 -1
  280. package/src/components/Icon/icons/alert-circle-filled.svg +0 -1
  281. package/src/components/Icon/icons/alert-circle.svg +0 -1
  282. package/src/components/Icon/icons/alert-triangle-filled.svg +0 -1
  283. package/src/components/Icon/icons/alert-triangle.svg +0 -1
  284. package/src/components/Icon/icons/arrow-diagonal-collapse.svg +0 -1
  285. package/src/components/Icon/icons/arrow-diagonal-expand.svg +0 -1
  286. package/src/components/Icon/icons/arrow-down.svg +0 -1
  287. package/src/components/Icon/icons/arrow-go-back.svg +0 -1
  288. package/src/components/Icon/icons/arrow-left-right.svg +0 -1
  289. package/src/components/Icon/icons/arrow-left.svg +0 -1
  290. package/src/components/Icon/icons/arrow-right.svg +0 -1
  291. package/src/components/Icon/icons/arrow-up-down.svg +0 -1
  292. package/src/components/Icon/icons/arrow-up.svg +0 -1
  293. package/src/components/Icon/icons/award.svg +0 -1
  294. package/src/components/Icon/icons/check-circle-filled.svg +0 -1
  295. package/src/components/Icon/icons/check-circle-timer.svg +0 -7
  296. package/src/components/Icon/icons/check-circle.svg +0 -1
  297. package/src/components/Icon/icons/check-square-filled.svg +0 -1
  298. package/src/components/Icon/icons/check-square.svg +0 -1
  299. package/src/components/Icon/icons/check.svg +0 -1
  300. package/src/components/Icon/icons/chevron-down.svg +0 -1
  301. package/src/components/Icon/icons/chevron-left.svg +0 -1
  302. package/src/components/Icon/icons/chevron-right.svg +0 -1
  303. package/src/components/Icon/icons/chevron-up.svg +0 -1
  304. package/src/components/Icon/icons/circle.svg +0 -1
  305. package/src/components/Icon/icons/close-circle.svg +0 -1
  306. package/src/components/Icon/icons/close.svg +0 -1
  307. package/src/components/Icon/icons/currency-euro.svg +0 -1
  308. package/src/components/Icon/icons/download.svg +0 -1
  309. package/src/components/Icon/icons/edit.svg +0 -1
  310. package/src/components/Icon/icons/external-link.svg +0 -1
  311. package/src/components/Icon/icons/filter-off.svg +0 -1
  312. package/src/components/Icon/icons/filter.svg +0 -1
  313. package/src/components/Icon/icons/flashlight-off.svg +0 -1
  314. package/src/components/Icon/icons/flashlight.svg +0 -1
  315. package/src/components/Icon/icons/header-bikestudio.svg +0 -32
  316. package/src/components/Icon/icons/header-nsc-helmet.svg +0 -32
  317. package/src/components/Icon/icons/header-opticost.svg +0 -32
  318. package/src/components/Icon/icons/header-repairability.svg +0 -32
  319. package/src/components/Icon/icons/heart-filled.svg +0 -1
  320. package/src/components/Icon/icons/heart.svg +0 -1
  321. package/src/components/Icon/icons/history.svg +0 -1
  322. package/src/components/Icon/icons/home.svg +0 -1
  323. package/src/components/Icon/icons/index.ts +0 -58
  324. package/src/components/Icon/icons/link.svg +0 -1
  325. package/src/components/Icon/icons/list-settings.svg +0 -1
  326. package/src/components/Icon/icons/lock.svg +0 -1
  327. package/src/components/Icon/icons/loop-right.svg +0 -1
  328. package/src/components/Icon/icons/question-circle.svg +0 -1
  329. package/src/components/Icon/icons/save.svg +0 -1
  330. package/src/components/Icon/icons/search.svg +0 -1
  331. package/src/components/Icon/icons/seedling-circle.svg +0 -12
  332. package/src/components/Icon/icons/square.svg +0 -1
  333. package/src/components/Icon/icons/tools.svg +0 -1
  334. package/src/components/Icon/icons/user.svg +0 -1
  335. package/src/components/Inputs/BooleanInput/BooleanInput.css +0 -58
  336. package/src/components/Inputs/BooleanInput/BooleanInput.tsx +0 -24
  337. package/src/components/Inputs/BooleanInput/BooleanInput.types.ts +0 -8
  338. package/src/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +0 -53
  339. package/src/components/Inputs/Input/Input.css +0 -97
  340. package/src/components/Inputs/Input/Input.tsx +0 -67
  341. package/src/components/Inputs/Input/Input.types.ts +0 -15
  342. package/src/components/Inputs/Input/__stories__/Input.stories.mdx +0 -95
  343. package/src/components/Loader/Loader.css +0 -42
  344. package/src/components/Loader/Loader.tsx +0 -7
  345. package/src/components/Loader/Loader.types.ts +0 -1
  346. package/src/components/Loader/__stories__/Loader.stories.mdx +0 -30
  347. package/src/components/Select/Select.css +0 -30
  348. package/src/components/Select/Select.tsx +0 -21
  349. package/src/components/Select/Select.types.ts +0 -3
  350. package/src/components/Select/__stories__/Select.stories.mdx +0 -44
  351. package/src/layouts/Header/Header.css +0 -186
  352. package/src/layouts/Header/Header.tsx +0 -20
  353. package/src/layouts/Header/HeaderProfile.tsx +0 -56
  354. package/src/layouts/Navigation/Navigation.tsx +0 -54
  355. package/src/layouts/Navigation/Navigation.types.ts +0 -4
  356. package/src/layouts/Navigation/__stories__/Navigation.stories.mdx +0 -51
  357. /package/{esm/components/Icon → src/components/TsIcon}/icons/add-circle.svg +0 -0
  358. /package/{esm/components/Icon → src/components/TsIcon}/icons/add.svg +0 -0
  359. /package/{esm/components/Icon → src/components/TsIcon}/icons/alert-circle-filled.svg +0 -0
  360. /package/{esm/components/Icon → src/components/TsIcon}/icons/alert-circle.svg +0 -0
  361. /package/{esm/components/Icon → src/components/TsIcon}/icons/alert-triangle-filled.svg +0 -0
  362. /package/{esm/components/Icon → src/components/TsIcon}/icons/alert-triangle.svg +0 -0
  363. /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-diagonal-collapse.svg +0 -0
  364. /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-diagonal-expand.svg +0 -0
  365. /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-down.svg +0 -0
  366. /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-go-back.svg +0 -0
  367. /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-left-right.svg +0 -0
  368. /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-left.svg +0 -0
  369. /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-right.svg +0 -0
  370. /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-up-down.svg +0 -0
  371. /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-up.svg +0 -0
  372. /package/{esm/components/Icon → src/components/TsIcon}/icons/award.svg +0 -0
  373. /package/{esm/components/Icon → src/components/TsIcon}/icons/check-circle-filled.svg +0 -0
  374. /package/{esm/components/Icon → src/components/TsIcon}/icons/check-circle-timer.svg +0 -0
  375. /package/{esm/components/Icon → src/components/TsIcon}/icons/check-circle.svg +0 -0
  376. /package/{esm/components/Icon → src/components/TsIcon}/icons/check-square-filled.svg +0 -0
  377. /package/{esm/components/Icon → src/components/TsIcon}/icons/check-square.svg +0 -0
  378. /package/{esm/components/Icon → src/components/TsIcon}/icons/check.svg +0 -0
  379. /package/{esm/components/Icon → src/components/TsIcon}/icons/chevron-down.svg +0 -0
  380. /package/{esm/components/Icon → src/components/TsIcon}/icons/chevron-left.svg +0 -0
  381. /package/{esm/components/Icon → src/components/TsIcon}/icons/chevron-right.svg +0 -0
  382. /package/{esm/components/Icon → src/components/TsIcon}/icons/chevron-up.svg +0 -0
  383. /package/{esm/components/Icon → src/components/TsIcon}/icons/circle.svg +0 -0
  384. /package/{esm/components/Icon → src/components/TsIcon}/icons/close-circle.svg +0 -0
  385. /package/{esm/components/Icon → src/components/TsIcon}/icons/close.svg +0 -0
  386. /package/{esm/components/Icon → src/components/TsIcon}/icons/currency-euro.svg +0 -0
  387. /package/{esm/components/Icon → src/components/TsIcon}/icons/download.svg +0 -0
  388. /package/{esm/components/Icon → src/components/TsIcon}/icons/edit.svg +0 -0
  389. /package/{esm/components/Icon → src/components/TsIcon}/icons/external-link.svg +0 -0
  390. /package/{esm/components/Icon → src/components/TsIcon}/icons/filter-off.svg +0 -0
  391. /package/{esm/components/Icon → src/components/TsIcon}/icons/filter.svg +0 -0
  392. /package/{esm/components/Icon → src/components/TsIcon}/icons/flashlight-off.svg +0 -0
  393. /package/{esm/components/Icon → src/components/TsIcon}/icons/flashlight.svg +0 -0
  394. /package/{esm/components/Icon → src/components/TsIcon}/icons/header-bikestudio.svg +0 -0
  395. /package/{esm/components/Icon → src/components/TsIcon}/icons/header-nsc-helmet.svg +0 -0
  396. /package/{esm/components/Icon → src/components/TsIcon}/icons/header-opticost.svg +0 -0
  397. /package/{esm/components/Icon → src/components/TsIcon}/icons/header-repairability.svg +0 -0
  398. /package/{esm/components/Icon → src/components/TsIcon}/icons/heart-filled.svg +0 -0
  399. /package/{esm/components/Icon → src/components/TsIcon}/icons/heart.svg +0 -0
  400. /package/{esm/components/Icon → src/components/TsIcon}/icons/history.svg +0 -0
  401. /package/{esm/components/Icon → src/components/TsIcon}/icons/home.svg +0 -0
  402. /package/{esm/components/Icon → src/components/TsIcon}/icons/index.ts +0 -0
  403. /package/{esm/components/Icon → src/components/TsIcon}/icons/link.svg +0 -0
  404. /package/{esm/components/Icon → src/components/TsIcon}/icons/list-settings.svg +0 -0
  405. /package/{esm/components/Icon → src/components/TsIcon}/icons/lock.svg +0 -0
  406. /package/{esm/components/Icon → src/components/TsIcon}/icons/loop-right.svg +0 -0
  407. /package/{esm/components/Icon → src/components/TsIcon}/icons/question-circle.svg +0 -0
  408. /package/{esm/components/Icon → src/components/TsIcon}/icons/save.svg +0 -0
  409. /package/{esm/components/Icon → src/components/TsIcon}/icons/search.svg +0 -0
  410. /package/{esm/components/Icon → src/components/TsIcon}/icons/seedling-circle.svg +0 -0
  411. /package/{esm/components/Icon → src/components/TsIcon}/icons/square.svg +0 -0
  412. /package/{esm/components/Icon → src/components/TsIcon}/icons/tools.svg +0 -0
  413. /package/{esm/components/Icon → src/components/TsIcon}/icons/user.svg +0 -0
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
3
- import { Header } from '../Header';
4
- import { HeaderProfile, HeaderProfileItem } from '../HeaderProfile';
5
- import { HeaderSearch } from '../HeaderSearch';
6
- import { Button } from '../../../components/Button/Button';
3
+ import { TsHeader } from '../TsHeader';
4
+ import { TsHeaderProfile, TsHeaderProfileItem } from '../TsHeaderProfile';
5
+ import { TsHeaderSearch } from '../TsHeaderSearch';
6
+ import { TsButton } from '../../../components/TsButton/TsButton';
7
7
 
8
8
  <Meta title="Layouts/Header" />
9
9
 
@@ -41,16 +41,16 @@ The header will allow users to quickly find the information they need at a glanc
41
41
  args={{
42
42
  actions: (
43
43
  <>
44
- <Button icon="add" size="lg" variant="shadow" rounded />
45
- <HeaderProfile firstname="John" lastname="Doe">
46
- <HeaderProfileItem icon="alert-triangle" label="Contact support" link="" />
47
- <HeaderProfileItem icon="award" label="Trainings" link="" />
48
- </HeaderProfile>
44
+ <TsButton icon="add" size="lg" variant="shadow" rounded />
45
+ <TsHeaderProfile firstname="John" lastname="Doe">
46
+ <TsHeaderProfileItem icon="alert-triangle" label="Contact support" link="" />
47
+ <TsHeaderProfileItem icon="award" label="Trainings" link="" />
48
+ </TsHeaderProfile>
49
49
  </>
50
50
  ),
51
51
  appName: 'repairability',
52
52
  search: (
53
- <HeaderSearch
53
+ <TsHeaderSearch
54
54
  getItemLabel={item => item.label}
55
55
  getItemValue={item => item.id}
56
56
  loadItems={loadItems}
@@ -62,10 +62,10 @@ The header will allow users to quickly find the information they need at a glanc
62
62
  }}
63
63
  argTypes={headerArgTypes}
64
64
  >
65
- {args => <Header {...args} />}
65
+ {args => <TsHeader {...args} />}
66
66
  </Story>
67
67
  </Canvas>
68
68
 
69
69
  ## Props
70
70
 
71
- <ArgsTable story="Overview" of={Header} />
71
+ <ArgsTable story="Overview" of={TsHeader} />
@@ -1,4 +1,4 @@
1
- .navigation {
1
+ .ts-navigation {
2
2
  display: flex;
3
3
  align-items: center;
4
4
  height: 32px;
@@ -7,59 +7,59 @@
7
7
 
8
8
  /* ############ */
9
9
  /* BREADCRUMB */
10
- .breadcrumb {
10
+ .ts-breadcrumb {
11
11
  display: flex;
12
12
  align-items: center;
13
13
  padding-right: 20px;
14
14
  }
15
- .breadcrumb-container {
15
+ .ts-breadcrumb-container {
16
16
  display: flex;
17
17
  align-items: center;
18
18
  }
19
- .breadcrumb-chevron {
19
+ .ts-breadcrumb-chevron {
20
20
  padding: 0 8px;
21
- color: #00689d;
21
+ color: #3643ba;
22
22
  }
23
- .breadcrumb-item {
23
+ .ts-breadcrumb-item {
24
24
  display: flex;
25
25
  align-items: center;
26
26
  height: 32px;
27
27
  border-radius: 9999px;
28
- color: #00689d;
28
+ color: #3643ba;
29
29
  }
30
- .breadcrumb-item--highlight {
30
+ .ts-breadcrumb-item--highlight {
31
31
  padding: 0 20px;
32
32
  box-shadow: 0px 6px 6px 0px #00537d1a;
33
- background: linear-gradient(270.22deg, #007dbc 43.94%, #7ebee0 114.83%);
33
+ background: linear-gradient(270deg, #3643ba 0%, rgba(54, 67, 186, 0.6) 100%);
34
34
  color: #ffffff;
35
35
  }
36
- .breadcrumb-item--link {
36
+ .ts-breadcrumb-item--link {
37
37
  cursor: pointer;
38
38
  }
39
- .breadcrumb-item--link:hover {
39
+ .ts-breadcrumb-item--link:hover {
40
40
  text-decoration: underline;
41
41
  }
42
- .breadcrumb-item--icon {
42
+ .ts-breadcrumb-item--icon {
43
43
  padding-right: 8px;
44
44
  }
45
45
 
46
46
  /* ######### */
47
47
  /* DIVIDER */
48
- .navigation-divider {
48
+ .ts-navigation-divider {
49
49
  flex: 1;
50
50
  height: 1px;
51
51
  margin: 4px 0;
52
- background: #bedeef;
52
+ background: #ebecf7;
53
53
  }
54
54
 
55
55
  /* ######### */
56
56
  /* ACTIONS */
57
- .navigation-actions {
57
+ .ts-navigation-actions {
58
58
  /* flex items-center [&>*]:ml-4 */
59
59
  display: flex;
60
60
  align-items: center;
61
61
  }
62
- .navigation-actions > * {
62
+ .ts-navigation-actions > * {
63
63
  margin-left: 16px;
64
64
  }
65
65
 
@@ -0,0 +1,54 @@
1
+ import * as React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import { TsIcon } from '../../components/TsIcon/TsIcon';
4
+ import { TsNavigationBreadcrumbItemProps, TsNavigationProps } from './TsNavigation.types';
5
+ import './TsNavigation.css';
6
+
7
+ export const TsNavigationBreadcrumbDivider = () => {
8
+ // #########
9
+ // Rendering
10
+ return (
11
+ <div className="ts-breadcrumb-chevron">
12
+ <TsIcon name="chevron-right" />
13
+ </div>
14
+ );
15
+ };
16
+
17
+ export const TsNavigationBreadcrumbItem = ({
18
+ children,
19
+ icon,
20
+ highlight,
21
+ onClick,
22
+ }: PropsWithChildren<TsNavigationBreadcrumbItemProps>) => {
23
+ // #########
24
+ // Rendering
25
+ return (
26
+ <div
27
+ className={`
28
+ ts-breadcrumb-item
29
+ ${highlight ? 'ts-breadcrumb-item--highlight' : ''} ${onClick ? 'ts-breadcrumb-item--link' : ''}
30
+ `}
31
+ onClick={onClick}
32
+ >
33
+ {icon && (
34
+ <div className="ts-breadcrumb-item--icon">
35
+ <TsIcon name={icon} size="16" />
36
+ </div>
37
+ )}
38
+
39
+ {children}
40
+ </div>
41
+ );
42
+ };
43
+
44
+ export const TsNavigation = ({ actions, breadcrumbs }: TsNavigationProps) => {
45
+ // #########
46
+ // Rendering
47
+ return (
48
+ <div className="ts-navigation">
49
+ <div className="ts-breadcrumb">{breadcrumbs}</div>
50
+ <div className="ts-navigation-divider" />
51
+ <div className="ts-navigation-actions">{actions}</div>
52
+ </div>
53
+ );
54
+ };
@@ -0,0 +1,4 @@
1
+ import { ReactElement } from 'react';
2
+
3
+ export type TsNavigationProps = { actions?: ReactElement; breadcrumbs: ReactElement };
4
+ export type TsNavigationBreadcrumbItemProps = { icon?: string; highlight?: boolean; onClick?: () => void };
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
3
+ import { TsNavigation, TsNavigationBreadcrumbItem, TsNavigationBreadcrumbDivider } from '../TsNavigation';
4
+ import { TsButton } from '../../../components/TsButton/TsButton';
5
+ import { icons } from '../../../components/TsIcon/icons';
6
+
7
+ <Meta title="Layouts/Navigation" />
8
+
9
+ # Navigation
10
+
11
+ Breadcrumbs are an important navigation component that shows content hierarchy. They allow users to be aware of their current location in the hierarchical structure of the application. Breadcrumbs enable users to quickly move up to a parent level. Moreover this navigation component allows user to make some actions.
12
+
13
+ ## Overview
14
+
15
+ <Canvas>
16
+ <Story
17
+ name="Overview"
18
+ args={{
19
+ actions: (
20
+ <>
21
+ <TsButton icon="check" onClick={() => {}}>
22
+ Action 1
23
+ </TsButton>
24
+ <TsButton icon="add" onClick={() => {}}>
25
+ Action 2
26
+ </TsButton>
27
+ </>
28
+ ),
29
+ breadcrumbs: (
30
+ <>
31
+ <TsNavigationBreadcrumbItem icon="home" onClick={() => {}}>
32
+ Home
33
+ </TsNavigationBreadcrumbItem>
34
+ <TsNavigationBreadcrumbDivider />
35
+ <TsNavigationBreadcrumbItem onClick={() => {}}>Menu Item 1</TsNavigationBreadcrumbItem>
36
+ <TsNavigationBreadcrumbDivider />
37
+ <TsNavigationBreadcrumbItem highlight>Menu Item 2</TsNavigationBreadcrumbItem>
38
+ </>
39
+ )
40
+ }}
41
+
42
+ >
43
+
44
+ {args => <TsNavigation {...args} />}
45
+
46
+ </Story>
47
+ </Canvas>
48
+
49
+ ## Props
50
+
51
+ <ArgsTable story="Overview" of={TsNavigation} />
Binary file
@@ -1,91 +0,0 @@
1
- .button {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- border: none;
6
- font-size: 14px;
7
- font-weight: 600;
8
- line-height: 16px;
9
- cursor: pointer;
10
- transition: all ease 0.3s;
11
- }
12
- .button > div {
13
- margin-right: 8px;
14
- }
15
- .button > div:last-child {
16
- margin-right: 0px;
17
- }
18
- /* ####### */
19
- /* BLOCK */
20
- .button--block {
21
- width: 100%;
22
- }
23
- /* ####### */
24
- /* SIZES */
25
- .button--md {
26
- height: 32px;
27
- padding: 0 14px;
28
- }
29
- .button--md.button--icon-only {
30
- width: 32px;
31
- padding: 0;
32
- }
33
- .button--lg {
34
- height: 40px;
35
- padding: 0 16px;
36
- }
37
- .button--lg.button--icon-only {
38
- width: 40px;
39
- padding: 0;
40
- }
41
- /* ########## */
42
- /* VARIANTS */
43
- .button--primary {
44
- background: #3643ba;
45
- color: #ffffff;
46
- }
47
- /* .button--primary:hover {
48
- background: #00689d;
49
- } */
50
- .button--secondary {
51
- background: #ebecf7;
52
- color: #3643ba;
53
- }
54
- /* .button--secondary:hover {
55
- background: #bedeef;
56
- } */
57
- .button--success {
58
- background: #02be8a;
59
- color: #ffffff;
60
- }
61
- .button--success:hover {
62
- background: #029e73;
63
- color: #ffffff;
64
- }
65
- .button--ghost {
66
- background: #ffffff;
67
- color: #1d1d1b;
68
- }
69
- .button--ghost:hover {
70
- background: #ebecf7;
71
- }
72
- .button--shadow {
73
- box-shadow: 0px 12px 12px 0px #00537d1a;
74
- background: #ffffff;
75
- color: #4e5d6b;
76
- }
77
- /* ######### */
78
- /* ROUNDED */
79
- .button--rounded {
80
- border-radius: 9999px;
81
- }
82
-
83
- /* ######### */
84
- /* GLOBALS */
85
- * {
86
- font-size: 14px;
87
- outline: none;
88
- box-sizing: border-box;
89
- font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
90
- 'Helvetica Neue', sans-serif;
91
- }
@@ -1,5 +0,0 @@
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;
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,9 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Button.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.types.js","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":""}
@@ -1,72 +0,0 @@
1
- .checkbox {
2
- display: flex;
3
- align-items: center;
4
- cursor: pointer;
5
- }
6
- /* ########## */
7
- /* DISABLED */
8
- .checkbox--disabled {
9
- cursor: not-allowed;
10
- }
11
- .checkbox--disabled .checkbox-box {
12
- color: #999999;
13
- }
14
- .checkbox--disabled:hover .checkbox-box {
15
- background: transparent;
16
- }
17
- /* ##### */
18
- /* BOX */
19
- .checkbox:hover .checkbox-box {
20
- background: #e7f3f9;
21
- }
22
- .checkbox-box {
23
- position: relative;
24
- display: flex;
25
- align-items: center;
26
- justify-content: center;
27
- width: 24px;
28
- height: 24px;
29
- border-radius: 6px;
30
- color: #007dbc;
31
- transition: all ease 0.3s;
32
- }
33
- .checkbox-box::before {
34
- content: '';
35
- position: absolute;
36
- width: 16px;
37
- height: 16px;
38
- border-radius: 6px;
39
- background: #ffffff;
40
- z-index: 10;
41
- }
42
- .checkbox-box .icon {
43
- z-index: 20;
44
- }
45
-
46
- /* ################# */
47
- /* LABEL / CAPTION */
48
- .checkbox-container {
49
- width: 100%;
50
- margin-left: 4px;
51
- padding: 4px 8px;
52
- border-radius: 6px;
53
- }
54
- .checkbox-container--with-caption .checkbox-label {
55
- color: #007dbc;
56
- font-weight: 700;
57
- }
58
- .checkbox-caption {
59
- color: #404040;
60
- font-size: 12px;
61
- font-style: italic;
62
- }
63
-
64
- /* ######### */
65
- /* GLOBALS */
66
- * {
67
- font-size: 14px;
68
- outline: none;
69
- box-sizing: border-box;
70
- font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
71
- 'Helvetica Neue', sans-serif;
72
- }
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { CheckboxProps } from './Checkbox.types';
3
- import './Checkbox.css';
4
- export declare const Checkbox: ({ caption, label, checked, disabled, onChange }: CheckboxProps) => React.JSX.Element;
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { Icon } from '../Icon/Icon';
3
- import './Checkbox.css';
4
- export const Checkbox = ({ caption, label, checked, disabled, onChange }) => {
5
- // ########
6
- // Handlers
7
- const handleChange = () => !disabled && onChange(!checked);
8
- // #########
9
- // Rendering
10
- return (React.createElement("div", { className: `checkbox ${disabled ? 'checkbox--disabled' : ''}`, onClick: handleChange },
11
- React.createElement("div", { className: "checkbox-box" },
12
- checked && React.createElement(Icon, { name: "check-square-filled" }),
13
- !checked && React.createElement(Icon, { name: "square" })),
14
- React.createElement("div", { className: `checkbox-container ${caption ? 'checkbox-container--with-caption' : ''}` },
15
- React.createElement("div", { className: "checkbox-label" }, label),
16
- caption && React.createElement("div", { className: "checkbox-caption" }, caption))));
17
- };
18
- //# sourceMappingURL=Checkbox.js.map
@@ -1 +0,0 @@
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,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAiB,EAAE,EAAE;IACzF,WAAW;IACX,WAAW;IACX,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;IAE3D,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAE,YAAY,QAAQ,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,YAAY;QACvF,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,OAAO,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,EAAE,EAAE;YACvF,6BAAK,SAAS,EAAC,gBAAgB,IAAE,KAAK,CAAO;YAC5C,OAAO,IAAI,6BAAK,SAAS,EAAC,kBAAkB,IAAE,OAAO,CAAO,CACzD,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export type CheckboxProps = {
2
- caption?: string;
3
- label: string;
4
- checked?: boolean;
5
- disabled?: boolean;
6
- onChange: (value: boolean) => void;
7
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Checkbox.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox.types.js","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":""}
@@ -1,56 +0,0 @@
1
- import React from 'react';
2
- import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
3
- import { Checkbox } from '../Checkbox';
4
-
5
- <Meta title="Components/Checkbox" />
6
-
7
- export const checkboxArgTypes = {
8
- caption: {
9
- control: 'text',
10
- description: 'Caption of the checkbox.',
11
- },
12
- label: {
13
- control: 'text',
14
- description: 'Label of the checkbox.',
15
- },
16
- checked: {
17
- control: 'boolean',
18
- description: 'State of the checkbox.',
19
- table: { defaultValue: { summary: 'false' } },
20
- },
21
- disabled: {
22
- control: 'boolean',
23
- description: 'Enable state of the checkbox.',
24
- table: { defaultValue: { summary: 'false' } },
25
- },
26
- onChange: {
27
- control: 'function',
28
- description: 'The handler called when clicking on the checkbox.',
29
- },
30
- };
31
-
32
- # Checkbox
33
-
34
- Checkboxes are applied when users can select all, several, or none of the options from a given list.
35
-
36
- ## Overview
37
-
38
- <Canvas>
39
- <Story
40
- name="Overview"
41
- args={{
42
- label: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
43
- caption:
44
- 'Auctor nisl justo, sed posuere est dignissim nec. Integer ultricies, metus ac imperdiet ullamcorper, est justo viverra nisl, in posuere dui urna eget quam.',
45
- checked: false,
46
- disabled: false,
47
- }}
48
- argTypes={checkboxArgTypes}
49
- >
50
- {args => <Checkbox {...args}>{args.children}</Checkbox>}
51
- </Story>
52
- </Canvas>
53
-
54
- ## Props
55
-
56
- <ArgsTable story="Overview" of={Checkbox} />
@@ -1,4 +0,0 @@
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;
@@ -1,12 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- export type IconProps = {
2
- name: string;
3
- size?: '16' | '20' | '24';
4
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Icon.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.types.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":""}