@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
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
3
+ import { BooleanInput } from '../BooleanInput';
4
+
5
+ <Meta title="Components/Inputs/BooleanInput" />
6
+
7
+ export const inputArgType = {
8
+ label: {
9
+ control: 'text',
10
+ description: 'Label of the input.',
11
+ },
12
+ labelFalse: {
13
+ control: 'text',
14
+ description: 'Label of the FALSE value.',
15
+ },
16
+ labelTrue: {
17
+ control: 'text',
18
+ description: 'Label of the TRUE value.',
19
+ },
20
+ value: {
21
+ control: 'boolean',
22
+ description: 'Value of the input (can be undefined).',
23
+ },
24
+ onChange: {
25
+ control: 'function',
26
+ description: 'The handler called when clicking on input.',
27
+ },
28
+ };
29
+
30
+ # Boolean Input
31
+
32
+ The Boolean input is used to quickly switch between two possible states. It is commonly used for "yes/no" switches. The input can in some cases have a 3rd state, EMPTY.
33
+
34
+ ## Overview
35
+
36
+ <Canvas>
37
+ <Story name="Overview" args={{ label: 'Label', onChange: () => {} }} argTypes={inputArgType}>
38
+ {args => <BooleanInput {...args} />}
39
+ </Story>
40
+ </Canvas>
41
+
42
+ ## Props
43
+
44
+ <ArgsTable story="Overview" of={BooleanInput} />
@@ -0,0 +1,42 @@
1
+ .text-input {
2
+ display: flex;
3
+ flex-direction: column;
4
+ }
5
+ .text-input > label {
6
+ display: block;
7
+ margin-bottom: 4px;
8
+ color: #012b49;
9
+ font-weight: 700;
10
+ }
11
+ .text-input-container {
12
+ position: relative;
13
+ }
14
+ .text-input-container > input {
15
+ width: 100%;
16
+ height: 32px;
17
+ padding: 0 40px 0 12px;
18
+ border: 1px solid #d4d4d4;
19
+ border-radius: 6px;
20
+ color: #007dbc;
21
+ font-weight: 700;
22
+ }
23
+ .text-input-container > input::placeholder {
24
+ font-weight: 400;
25
+ }
26
+ .text-input-container > .icon {
27
+ position: absolute;
28
+ top: 50%;
29
+ right: 12px;
30
+ color: #4e5d6b;
31
+ transform: translateY(-50%);
32
+ }
33
+
34
+ /* ######### */
35
+ /* GLOBALS */
36
+ * {
37
+ font-size: 14px;
38
+ outline: none;
39
+ box-sizing: border-box;
40
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
41
+ 'Helvetica Neue', sans-serif;
42
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { TextInputProps } from './TextInput.types';
3
+ import './TextInput.css';
4
+ export declare const TextInput: ({ icon, label, placeholder, value, autofocus, onChange }: TextInputProps) => React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextInput = void 0;
4
+ const React = require("react");
5
+ const Icon_1 = require("../../Icon/Icon");
6
+ require("./TextInput.css");
7
+ const TextInput = ({ icon, label, placeholder, value, autofocus, onChange }) => {
8
+ // ########
9
+ // Handlers
10
+ const handleChange = (e) => onChange(e.target.value);
11
+ // #########
12
+ // Rendering
13
+ return (React.createElement("div", { className: "text-input" },
14
+ label && React.createElement("label", null, label),
15
+ React.createElement("div", { className: "text-input-container" },
16
+ React.createElement("input", { type: "text", placeholder: placeholder, value: value, autoFocus: autofocus, onChange: handleChange }),
17
+ icon && React.createElement(Icon_1.Icon, { name: icon, size: "16" }))));
18
+ };
19
+ exports.TextInput = TextInput;
20
+ //# sourceMappingURL=TextInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../../src/components/Inputs/TextInput/TextInput.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,0CAAuC;AAEvC,2BAAyB;AAElB,MAAM,SAAS,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAkB,EAAE,EAAE;IACpG,WAAW;IACX,WAAW;IACX,MAAM,YAAY,GAAG,CAAC,CAAgC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEpF,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,YAAY;QACxB,KAAK,IAAI,mCAAQ,KAAK,CAAS;QAEhC,6BAAK,SAAS,EAAC,sBAAsB;YACnC,+BAAO,IAAI,EAAC,MAAM,EAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,GAAI;YAC1G,IAAI,IAAI,oBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,CACnC,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,SAAS,aAiBpB"}
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ import { ChangeEvent } from 'react';
3
+ import { Icon } from '../../Icon/Icon';
4
+ import { TextInputProps } from './TextInput.types';
5
+ import './TextInput.css';
6
+
7
+ export const TextInput = ({ icon, label, placeholder, value, autofocus, onChange }: TextInputProps) => {
8
+ // ########
9
+ // Handlers
10
+ const handleChange = (e: ChangeEvent<HTMLInputElement>) => onChange(e.target.value);
11
+
12
+ // #########
13
+ // Rendering
14
+ return (
15
+ <div className="text-input">
16
+ {label && <label>{label}</label>}
17
+
18
+ <div className="text-input-container">
19
+ <input type="text" placeholder={placeholder} value={value} autoFocus={autofocus} onChange={handleChange} />
20
+ {icon && <Icon name={icon} size="16" />}
21
+ </div>
22
+ </div>
23
+ );
24
+ };
@@ -0,0 +1,8 @@
1
+ export type TextInputProps = {
2
+ icon?: string;
3
+ label?: string;
4
+ placeholder?: string;
5
+ value: string;
6
+ autofocus?: boolean;
7
+ onChange: (value: string) => void;
8
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TextInput.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.types.js","sourceRoot":"","sources":["../../../../src/components/Inputs/TextInput/TextInput.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export type TextInputProps = {
2
+ icon?: string;
3
+ label?: string;
4
+ placeholder?: string;
5
+ value: string;
6
+ autofocus?: boolean;
7
+ onChange: (value: string) => void;
8
+ };
@@ -0,0 +1,55 @@
1
+ import React from 'react';
2
+ import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
3
+ import { TextInput } from '../TextInput';
4
+ import { icons } from '../../../Icon/icons';
5
+
6
+ <Meta title="Components/Inputs/TextInput" />
7
+
8
+ export const inputArgTypes = {
9
+ icon: {
10
+ control: 'select',
11
+ options: Object.keys(icons),
12
+ description: 'Name of an icon.',
13
+ },
14
+ label: {
15
+ control: 'text',
16
+ description: 'Label of the input.',
17
+ },
18
+ placeholder: {
19
+ control: 'text',
20
+ description: 'Placeholder displayed when the input is empty.',
21
+ },
22
+ value: {
23
+ control: 'text',
24
+ description: 'Value of the input.',
25
+ },
26
+ autofocus: {
27
+ control: 'boolean',
28
+ description: 'Auto focus the input once mounted',
29
+ table: { defaultValue: { summary: 'false' } },
30
+ },
31
+ onChange: {
32
+ control: 'function',
33
+ description: 'The handler called when the value of the input changes.',
34
+ },
35
+ };
36
+
37
+ # Text Input
38
+
39
+ Text input allows the user to enter content and data when the expected user input is a single line of text.
40
+
41
+ ## Overview
42
+
43
+ <Canvas>
44
+ <Story
45
+ name="Overview"
46
+ args={{ label: 'Label', placeholder: 'This is a placeholder', autofocus: false, onChange: () => {} }}
47
+ argTypes={inputArgTypes}
48
+ >
49
+ {args => <TextInput {...args} />}
50
+ </Story>
51
+ </Canvas>
52
+
53
+ ## Props
54
+
55
+ <ArgsTable story="Overview" of={TextInput} />
@@ -0,0 +1,42 @@
1
+ @keyframes rotation {
2
+ 0% {
3
+ transform: rotate(0deg);
4
+ }
5
+ 100% {
6
+ transform: rotate(360deg);
7
+ }
8
+ }
9
+
10
+ .loader {
11
+ border: 2px solid;
12
+ border-color: #00689d transparent;
13
+ border-radius: 50%;
14
+ display: inline-block;
15
+ box-sizing: border-box;
16
+ animation: rotation 1.5s linear infinite;
17
+ }
18
+
19
+ /* ####### */
20
+ /* SIZES */
21
+ .loader--sm {
22
+ width: 24px;
23
+ height: 24px;
24
+ }
25
+ .loader--md {
26
+ width: 32px;
27
+ height: 32px;
28
+ }
29
+ .loader--lg {
30
+ width: 44px;
31
+ height: 44px;
32
+ }
33
+
34
+ /* ######### */
35
+ /* GLOBALS */
36
+ * {
37
+ font-size: 14px;
38
+ outline: none;
39
+ box-sizing: border-box;
40
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
41
+ 'Helvetica Neue', sans-serif;
42
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { LoaderProps } from './Loader.types';
3
+ import './Loader.css';
4
+ export declare const Loader: ({ size }: LoaderProps) => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Loader = void 0;
4
+ const React = require("react");
5
+ require("./Loader.css");
6
+ const Loader = ({ size = 'md' }) => {
7
+ return React.createElement("div", { className: `loader loader--${size}` });
8
+ };
9
+ exports.Loader = Loader;
10
+ //# sourceMappingURL=Loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,wBAAsB;AAEf,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,EAAe,EAAE,EAAE;IACrD,OAAO,6BAAK,SAAS,EAAE,kBAAkB,IAAI,EAAE,GAAI,CAAC;AACtD,CAAC,CAAC;AAFW,QAAA,MAAM,UAEjB"}
@@ -0,0 +1,3 @@
1
+ export type LoaderProps = {
2
+ size?: 'sm' | 'md' | 'lg';
3
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Loader.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.types.js","sourceRoot":"","sources":["../../../src/components/Loader/Loader.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
3
+ import { Loader } from '../Loader';
4
+
5
+ <Meta title="Components/Loader" />
6
+
7
+ export const loaderArgTypes = {
8
+ size: {
9
+ control: 'inline-radio',
10
+ options: ['sm', 'md', 'lg'],
11
+ description: 'Define the size of the loader.',
12
+ table: { defaultValue: { summary: 'md' } },
13
+ },
14
+ };
15
+
16
+ # Loader
17
+
18
+ Loader express to user that an action is occuring.
19
+
20
+ ## Overview
21
+
22
+ <Canvas>
23
+ <Story name="Overview" args={{ size: 'md' }} argTypes={loaderArgTypes}>
24
+ {args => <Loader {...args}>{args.children}</Loader>}
25
+ </Story>
26
+ </Canvas>
27
+
28
+ ## Props
29
+
30
+ <ArgsTable story="Overview" of={Loader} />
package/lib/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ export * from './components/Button/Button';
2
+ export * from './components/Icon/Icon';
3
+ export * from './layouts/Header/Header';
4
+ export * from './layouts/Header/HeaderActions';
5
+ export * from './layouts/Header/HeaderProfile';
6
+ export * from './layouts/Header/HeaderTitle';
7
+ export * from './layouts/Navigation/Navigation';
8
+ export * from './layouts/Navigation/NavigationActions';
9
+ export * from './layouts/Navigation/NavigationBreadcrumb';
package/lib/index.js ADDED
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./components/Button/Button"), exports);
18
+ __exportStar(require("./components/Icon/Icon"), exports);
19
+ __exportStar(require("./layouts/Header/Header"), exports);
20
+ __exportStar(require("./layouts/Header/HeaderActions"), exports);
21
+ __exportStar(require("./layouts/Header/HeaderProfile"), exports);
22
+ __exportStar(require("./layouts/Header/HeaderTitle"), exports);
23
+ __exportStar(require("./layouts/Navigation/Navigation"), exports);
24
+ __exportStar(require("./layouts/Navigation/NavigationActions"), exports);
25
+ __exportStar(require("./layouts/Navigation/NavigationBreadcrumb"), exports);
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,yDAAuC;AAEvC,0DAAwC;AACxC,iEAA+C;AAC/C,iEAA+C;AAC/C,+DAA6C;AAC7C,kEAAgD;AAChD,yEAAuD;AACvD,4EAA0D"}
@@ -0,0 +1,83 @@
1
+ @font-face {
2
+ font-family: 'Montserrat';
3
+ src: url('../../assets/fonts/Montserrat-Medium.ttf');
4
+ }
5
+
6
+ /* ######## */
7
+ /* HEADER */
8
+ header {
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: space-between;
12
+ width: 100%;
13
+ height: 64px;
14
+ padding: 0 24px;
15
+ }
16
+ .header-actions {
17
+ display: flex;
18
+ }
19
+ .header-actions > * {
20
+ margin-left: 12px;
21
+ }
22
+
23
+ /* ############## */
24
+ /* HEADER TITLE */
25
+ .header-title-container {
26
+ display: flex;
27
+ align-items: flex-end;
28
+ height: 30px;
29
+ }
30
+ .header-title {
31
+ font-family: 'Montserrat';
32
+ font-size: 25px;
33
+ line-height: 19px;
34
+ text-transform: uppercase;
35
+ }
36
+ .header-by {
37
+ margin-left: 15px;
38
+ font-family: 'Montserrat';
39
+ font-size: 12px;
40
+ line-height: 10px;
41
+ text-transform: uppercase;
42
+ }
43
+ .header-techoff {
44
+ width: 64px;
45
+ margin-left: 4px;
46
+ margin-bottom: -2px;
47
+ }
48
+
49
+ /* ################ */
50
+ /* HEADER PROFILE */
51
+ .header-profile {
52
+ display: flex;
53
+ align-items: center;
54
+ height: 40px;
55
+ padding: 0 4px;
56
+ border-radius: 9999px;
57
+ box-shadow: 0px 12px 12px 0px #00537d1a;
58
+ background: white;
59
+ }
60
+ .header-profile--icon {
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: center;
64
+ width: 32px;
65
+ height: 32px;
66
+ border-radius: 9999px;
67
+ background: #e5e5e5;
68
+ }
69
+ .header-profile--name {
70
+ padding-left: 8px;
71
+ padding-right: 12px;
72
+ color: #4e5d6b;
73
+ }
74
+
75
+ /* ######### */
76
+ /* GLOBALS */
77
+ * {
78
+ font-size: 14px;
79
+ outline: none;
80
+ box-sizing: border-box;
81
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
82
+ 'Helvetica Neue', sans-serif;
83
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import './Header.css';
4
+ export declare const Header: ({ children }: PropsWithChildren) => React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Header = void 0;
4
+ const React = require("react");
5
+ const react_1 = require("react");
6
+ const validator_utils_1 = require("../../utils/validator.utils");
7
+ require("./Header.css");
8
+ const Header = ({ children }) => {
9
+ const titleElement = react_1.Children.toArray(children).find(c => (0, validator_utils_1.isSuiteElement)(c, 'HeaderTitle'));
10
+ const actionsElement = react_1.Children.toArray(children).find(c => (0, validator_utils_1.isSuiteElement)(c, 'HeaderActions'));
11
+ // #########
12
+ // Rendering
13
+ return (React.createElement("header", null,
14
+ React.createElement("div", null, titleElement),
15
+ React.createElement("div", null, actionsElement)));
16
+ };
17
+ exports.Header = Header;
18
+ //# sourceMappingURL=Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/layouts/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAoD;AACpD,iEAA6D;AAC7D,wBAAsB;AAEf,MAAM,MAAM,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE;IACxD,MAAM,YAAY,GAAG,gBAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,gCAAc,EAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;IAC5F,MAAM,cAAc,GAAG,gBAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,gCAAc,EAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC;IAEhG,YAAY;IACZ,YAAY;IACZ,OAAO,CACL;QACE,iCAAM,YAAY,CAAO;QACzB,iCAAM,cAAc,CAAO,CACpB,CACV,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,MAAM,UAYjB"}
@@ -0,0 +1,4 @@
1
+ export type HeaderProfileProps = {
2
+ firstname: string;
3
+ lastname: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Header.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.types.js","sourceRoot":"","sources":["../../../src/layouts/Header/Header.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ export declare const HeaderActions: ({ children }: PropsWithChildren) => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderActions = void 0;
4
+ const React = require("react");
5
+ const HeaderActions = ({ children }) => {
6
+ // #########
7
+ // Rendering
8
+ return React.createElement("div", { className: "header-actions" }, children);
9
+ };
10
+ exports.HeaderActions = HeaderActions;
11
+ //# sourceMappingURL=HeaderActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderActions.js","sourceRoot":"","sources":["../../../src/layouts/Header/HeaderActions.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAGxB,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE;IAC/D,YAAY;IACZ,YAAY;IACZ,OAAO,6BAAK,SAAS,EAAC,gBAAgB,IAAE,QAAQ,CAAO,CAAC;AAC1D,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB"}
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { HeaderProfileProps } from './Header.types';
3
+ export declare const HeaderProfile: ({ firstname, lastname }: HeaderProfileProps) => React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderProfile = void 0;
4
+ const React = require("react");
5
+ const Icon_1 = require("../../components/Icon/Icon");
6
+ const string_utils_1 = require("../../utils/string.utils");
7
+ const HeaderProfile = ({ firstname, lastname }) => {
8
+ // #########
9
+ // Rendering
10
+ return (React.createElement("div", { className: "header-profile" },
11
+ React.createElement("div", { className: "header-profile--icon" },
12
+ React.createElement(Icon_1.Icon, { name: "user", size: "16" })),
13
+ React.createElement("div", { className: "header-profile--name" },
14
+ (0, string_utils_1.capitalize)(firstname),
15
+ " ",
16
+ lastname.charAt(0).toUpperCase(),
17
+ ".")));
18
+ };
19
+ exports.HeaderProfile = HeaderProfile;
20
+ //# sourceMappingURL=HeaderProfile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderProfile.js","sourceRoot":"","sources":["../../../src/layouts/Header/HeaderProfile.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,qDAAkD;AAClD,2DAAsD;AAG/C,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC3E,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,gBAAgB;QAC7B,6BAAK,SAAS,EAAC,sBAAsB;YACnC,oBAAC,WAAI,IAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,GAAG,CAC1B;QAEN,6BAAK,SAAS,EAAC,sBAAsB;YAClC,IAAA,yBAAU,EAAC,SAAS,CAAC;;YAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;gBACrD,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,aAAa,iBAcxB"}
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ export declare const HeaderTitle: ({ children }: PropsWithChildren) => React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderTitle = void 0;
4
+ const React = require("react");
5
+ const svg = '<?xml version="1.0" encoding="utf-8"?><!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --><svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 335 62.6" style="enable-background:new 0 0 335 62.6;" xml:space="preserve"><style type="text/css"> .st0{fill:#0883C4;} .st1{fill:#FFFFFF;}</style><path d="M126.2,24.4c-3.1-3.3-7.4-5.3-12.4-5.3c-9.2,0-16,6.8-16,16.1c0,9.3,6.7,16.2,16,16.2c5.3,0,9.6-2.4,12.6-6l8.1,7.3 c-5.4,6.5-12.1,9.8-20.7,9.8C98,62.6,86.4,51,86.4,35.3C86.4,19.5,98,8,113.8,8c8.2,0,15.4,3,20.3,8.5L126.2,24.4z"/><polygon points="46.8,9.5 80.3,9.5 80.3,19.9 58,19.9 58,30.8 77.3,30.8 77.3,40.9 58,40.9 58,52.1 80.3,52.1 80.3,62.6 46.8,62.6 "/><polygon points="265.4,8.7 297,8.7 297,19.2 276.6,19.2 276.6,32.6 294,32.6 294,42.8 276.6,42.8 276.6,61.8 265.4,61.8 "/><polygon points="303.4,8.7 335,8.7 335,19.2 314.6,19.2 314.6,32.6 332,32.6 332,42.8 314.6,42.8 314.6,61.8 303.4,61.8 "/><polygon points="174.5,40.1 152,40.1 152,61.8 140.8,61.8 140.8,8.7 152,8.7 152,29.2 174.5,29.2 174.5,8.7 185.7,8.7 185.7,61.8 174.5,61.8 "/><polygon points="0,9.5 40.3,9.5 40.3,20.4 25.8,20.4 25.8,62.6 14.6,62.6 14.6,20.4 0,20.4 "/><polyline points="188.4,15.9 198.6,0 209.9,0 199.7,15.9 188.4,15.9 "/><path d="M231.7,8c-15.8,0-27.4,11.5-27.4,27.3c0,15.8,11.6,27.3,27.4,27.3c15.7,0,27.2-11.5,27.2-27.3C258.9,19.5,247.4,8,231.7,8z" /><polygon class="st0" points="208,36.3 243.1,15.9 243,56.6 "/><polygon class="st1" points="231.1,56.7 230.6,37.4 214.2,47.6 "/></svg>';
6
+ const HeaderTitle = ({ children }) => {
7
+ // #########
8
+ // Rendering
9
+ return (React.createElement("div", { className: "header-title-container" },
10
+ React.createElement("div", { className: "header-title" }, children),
11
+ React.createElement("div", { className: "header-by" }, "BY"),
12
+ React.createElement("div", { className: "header-techoff", dangerouslySetInnerHTML: { __html: svg } })));
13
+ };
14
+ exports.HeaderTitle = HeaderTitle;
15
+ //# sourceMappingURL=HeaderTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderTitle.js","sourceRoot":"","sources":["../../../src/layouts/Header/HeaderTitle.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAG/B,MAAM,GAAG,GACP,wjDAAwjD,CAAC;AAEpjD,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE;IAC7D,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,wBAAwB;QACrC,6BAAK,SAAS,EAAC,cAAc,IAAE,QAAQ,CAAO;QAC9C,6BAAK,SAAS,EAAC,WAAW,SAAS;QACnC,6BAAK,SAAS,EAAC,gBAAgB,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAI,CACxE,CACP,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,WAAW,eAUtB"}
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
3
+ import { Header } from '../Header';
4
+ import { HeaderActions } from '../HeaderActions';
5
+ import { HeaderTitle } from '../HeaderTitle';
6
+ import { HeaderProfile } from '../HeaderProfile';
7
+ import { Button } from '../../../components/Button/Button';
8
+
9
+ <Meta title="Layouts/Header" />
10
+
11
+ # Header
12
+
13
+ The header will allow users to quickly find the information they need at a glance but also make some actions. The header is therefore central in the design of each application: it contains all the essential information, obvious shortcuts, which will help boost Deacthlon Techoff brand image.
14
+
15
+ ## Overview
16
+
17
+ <Canvas>
18
+ <Story
19
+ name="Overview"
20
+ args={{
21
+ children: [
22
+ <HeaderTitle>Techoff Suite UI</HeaderTitle>,
23
+ <HeaderActions>
24
+ <Button icon="plus" size="lg" variant="shadow" rounded onClick={() => {}} />
25
+ <HeaderProfile firstname="John" lastname="Doe" />
26
+ </HeaderActions>,
27
+ ],
28
+ }}
29
+ >
30
+ {args => <Header>{args.children}</Header>}
31
+ </Story>
32
+ </Canvas>
33
+
34
+ ## Props
35
+
36
+ <ArgsTable story="Overview" of={Header} />