@ftdata/ui 0.0.1

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 (265) hide show
  1. package/README.md +23 -0
  2. package/dist/assets/AddIcon.d.ts +3 -0
  3. package/dist/assets/AddIcon.js +35 -0
  4. package/dist/assets/ArrowLeftIcon.d.ts +2 -0
  5. package/dist/assets/ArrowLeftIcon.js +26 -0
  6. package/dist/assets/BackArrowIcon.d.ts +3 -0
  7. package/dist/assets/BackArrowIcon.js +35 -0
  8. package/dist/assets/BellIcon.d.ts +2 -0
  9. package/dist/assets/BellIcon.js +43 -0
  10. package/dist/assets/BuildingIcon.d.ts +2 -0
  11. package/dist/assets/BuildingIcon.js +15 -0
  12. package/dist/assets/BurgerMenu.d.ts +3 -0
  13. package/dist/assets/BurgerMenu.js +41 -0
  14. package/dist/assets/CancelSquareIcon.d.ts +3 -0
  15. package/dist/assets/CancelSquareIcon.js +36 -0
  16. package/dist/assets/CarretDownIcon.d.ts +3 -0
  17. package/dist/assets/CarretDownIcon.js +32 -0
  18. package/dist/assets/CavetDown.d.ts +2 -0
  19. package/dist/assets/CavetDown.js +18 -0
  20. package/dist/assets/CavetRight.d.ts +2 -0
  21. package/dist/assets/CavetRight.js +18 -0
  22. package/dist/assets/CavetUp.d.ts +2 -0
  23. package/dist/assets/CavetUp.js +18 -0
  24. package/dist/assets/CheckMarkIcon.d.ts +3 -0
  25. package/dist/assets/CheckMarkIcon.js +39 -0
  26. package/dist/assets/CheckmarkDone.d.ts +3 -0
  27. package/dist/assets/CheckmarkDone.js +27 -0
  28. package/dist/assets/CloseIcon.d.ts +2 -0
  29. package/dist/assets/CloseIcon.js +27 -0
  30. package/dist/assets/CommandIcon.d.ts +2 -0
  31. package/dist/assets/CommandIcon.js +77 -0
  32. package/dist/assets/DoneCircleIcon.d.ts +3 -0
  33. package/dist/assets/DoneCircleIcon.js +29 -0
  34. package/dist/assets/EmptyAlertDetail.d.ts +2 -0
  35. package/dist/assets/EmptyAlertDetail.js +451 -0
  36. package/dist/assets/EmptyPage.d.ts +3 -0
  37. package/dist/assets/EmptyPage.js +551 -0
  38. package/dist/assets/EyeIcon.d.ts +2 -0
  39. package/dist/assets/EyeIcon.js +35 -0
  40. package/dist/assets/FenceIcon.d.ts +2 -0
  41. package/dist/assets/FenceIcon.js +70 -0
  42. package/dist/assets/FolderCheckmark.d.ts +3 -0
  43. package/dist/assets/FolderCheckmark.js +44 -0
  44. package/dist/assets/FulltrackLogo.d.ts +3 -0
  45. package/dist/assets/FulltrackLogo.js +37 -0
  46. package/dist/assets/GlobeIcon.d.ts +2 -0
  47. package/dist/assets/GlobeIcon.js +61 -0
  48. package/dist/assets/GoogleIcon.d.ts +2 -0
  49. package/dist/assets/GoogleIcon.js +18 -0
  50. package/dist/assets/Group.js +2 -0
  51. package/dist/assets/MinusMarkIcon.d.ts +3 -0
  52. package/dist/assets/MinusMarkIcon.js +40 -0
  53. package/dist/assets/MosaicIcon.d.ts +3 -0
  54. package/dist/assets/MosaicIcon.js +41 -0
  55. package/dist/assets/NavLogo.d.ts +3 -0
  56. package/dist/assets/NavLogo.js +73 -0
  57. package/dist/assets/PinLocation.d.ts +2 -0
  58. package/dist/assets/PinLocation.js +31 -0
  59. package/dist/assets/PlusAddIcon.d.ts +2 -0
  60. package/dist/assets/PlusAddIcon.js +42 -0
  61. package/dist/assets/RefreshIcon.d.ts +2 -0
  62. package/dist/assets/RefreshIcon.js +16 -0
  63. package/dist/assets/SearchIcon.d.ts +3 -0
  64. package/dist/assets/SearchIcon.js +30 -0
  65. package/dist/assets/SendIcon.d.ts +3 -0
  66. package/dist/assets/SendIcon.js +20 -0
  67. package/dist/assets/StreetView.d.ts +2 -0
  68. package/dist/assets/StreetView.js +52 -0
  69. package/dist/assets/SwitchCheckMarkIcon.d.ts +3 -0
  70. package/dist/assets/SwitchCheckMarkIcon.js +40 -0
  71. package/dist/assets/WarningIcon.d.ts +2 -0
  72. package/dist/assets/WarningIcon.js +34 -0
  73. package/dist/assets/gif/how-to-use.js +2 -0
  74. package/dist/assets/iconMenu/SettingsIcon.d.ts +2 -0
  75. package/dist/assets/iconMenu/SettingsIcon.js +30 -0
  76. package/dist/assets/img/cover.js +2 -0
  77. package/dist/assets/img/map-sample.js +2 -0
  78. package/dist/assets/img/photo-goes-here.js +2 -0
  79. package/dist/assets/svg/chat.js +2 -0
  80. package/dist/assets/svg/colored-item.js +2 -0
  81. package/dist/assets/svg/mailbox-bro.js +2 -0
  82. package/dist/assets/svg/star-favorite.js +2 -0
  83. package/dist/assets/travolta.js +2 -0
  84. package/dist/components/Avatar/Avatar.stories.d.ts +33 -0
  85. package/dist/components/Avatar/Avatar.stories.js +177 -0
  86. package/dist/components/Avatar/index.d.ts +7 -0
  87. package/dist/components/Avatar/index.js +28 -0
  88. package/dist/components/Avatar/styles.d.ts +4 -0
  89. package/dist/components/Avatar/styles.js +37 -0
  90. package/dist/components/Avatar/utils/getAvatarColors.d.ts +6 -0
  91. package/dist/components/Avatar/utils/getAvatarColors.js +48 -0
  92. package/dist/components/Breadcrumb/Breadcrumb.stories.d.ts +17 -0
  93. package/dist/components/Breadcrumb/Breadcrumb.stories.js +51 -0
  94. package/dist/components/Breadcrumb/index.d.ts +10 -0
  95. package/dist/components/Breadcrumb/index.js +34 -0
  96. package/dist/components/Breadcrumb/styles.d.ts +9 -0
  97. package/dist/components/Breadcrumb/styles.js +43 -0
  98. package/dist/components/Button/Button.stories.d.ts +58 -0
  99. package/dist/components/Button/Button.stories.js +284 -0
  100. package/dist/components/Button/index.d.ts +26 -0
  101. package/dist/components/Button/index.js +69 -0
  102. package/dist/components/Button/modifiers.d.ts +8 -0
  103. package/dist/components/Button/modifiers.js +41 -0
  104. package/dist/components/Button/styles.d.ts +25 -0
  105. package/dist/components/Button/styles.js +111 -0
  106. package/dist/components/Checkbox/CheckMarkIcon.d.ts +3 -0
  107. package/dist/components/Checkbox/CheckMarkIcon.js +38 -0
  108. package/dist/components/Checkbox/Checkbox.stories.d.ts +35 -0
  109. package/dist/components/Checkbox/Checkbox.stories.js +101 -0
  110. package/dist/components/Checkbox/MinusMarkIcon.d.ts +3 -0
  111. package/dist/components/Checkbox/MinusMarkIcon.js +39 -0
  112. package/dist/components/Checkbox/index.d.ts +9 -0
  113. package/dist/components/Checkbox/index.js +40 -0
  114. package/dist/components/Checkbox/styles.d.ts +12 -0
  115. package/dist/components/Checkbox/styles.js +41 -0
  116. package/dist/components/Collapse/Colapse.stories.d.ts +10 -0
  117. package/dist/components/Collapse/Colapse.stories.js +108 -0
  118. package/dist/components/Collapse/index.d.ts +15 -0
  119. package/dist/components/Collapse/index.js +61 -0
  120. package/dist/components/Collapse/styles.d.ts +11 -0
  121. package/dist/components/Collapse/styles.js +23 -0
  122. package/dist/components/CustomSelect/CustomSelect.stories.d.ts +73 -0
  123. package/dist/components/CustomSelect/CustomSelect.stories.js +477 -0
  124. package/dist/components/CustomSelect/CustomSelectList/index.d.ts +10 -0
  125. package/dist/components/CustomSelect/CustomSelectList/index.js +66 -0
  126. package/dist/components/CustomSelect/CustomSelectList/style.d.ts +8 -0
  127. package/dist/components/CustomSelect/CustomSelectList/style.js +95 -0
  128. package/dist/components/CustomSelect/index.d.ts +30 -0
  129. package/dist/components/CustomSelect/index.js +193 -0
  130. package/dist/components/CustomSelect/styles.d.ts +22 -0
  131. package/dist/components/CustomSelect/styles.js +93 -0
  132. package/dist/components/DoubleList/DoubleList.stories.d.ts +13 -0
  133. package/dist/components/DoubleList/DoubleList.stories.js +82 -0
  134. package/dist/components/DoubleList/index.d.ts +9 -0
  135. package/dist/components/DoubleList/index.js +70 -0
  136. package/dist/components/DoubleList/style.d.ts +5 -0
  137. package/dist/components/DoubleList/style.js +92 -0
  138. package/dist/components/EmptyState/Empty.stories.d.ts +26 -0
  139. package/dist/components/EmptyState/Empty.stories.js +72 -0
  140. package/dist/components/EmptyState/index.d.ts +10 -0
  141. package/dist/components/EmptyState/index.js +48 -0
  142. package/dist/components/EmptyState/styles.d.ts +3 -0
  143. package/dist/components/EmptyState/styles.js +39 -0
  144. package/dist/components/Grid/Column/Column.stories.d.ts +26 -0
  145. package/dist/components/Grid/Column/Column.stories.js +335 -0
  146. package/dist/components/Grid/Column/index.d.ts +15 -0
  147. package/dist/components/Grid/Column/index.js +10 -0
  148. package/dist/components/Grid/Container/Container.stories.d.ts +11 -0
  149. package/dist/components/Grid/Container/Container.stories.js +114 -0
  150. package/dist/components/Grid/Container/index.d.ts +6 -0
  151. package/dist/components/Grid/Container/index.js +11 -0
  152. package/dist/components/Grid/Row/Row.stories.d.ts +22 -0
  153. package/dist/components/Grid/Row/Row.stories.js +248 -0
  154. package/dist/components/Grid/Row/index.d.ts +20 -0
  155. package/dist/components/Grid/Row/index.js +10 -0
  156. package/dist/components/Grid/index.d.ts +38 -0
  157. package/dist/components/Grid/index.js +121 -0
  158. package/dist/components/Grid/utils.d.ts +1 -0
  159. package/dist/components/Grid/utils.js +18 -0
  160. package/dist/components/Loading/Loading/index.d.ts +7 -0
  161. package/dist/components/Loading/Loading/index.js +9 -0
  162. package/dist/components/Loading/Loading.stories.d.ts +24 -0
  163. package/dist/components/Loading/Loading.stories.js +145 -0
  164. package/dist/components/Loading/index.d.ts +16 -0
  165. package/dist/components/Loading/index.js +98 -0
  166. package/dist/components/Menu/constants/icons.d.ts +17 -0
  167. package/dist/components/Menu/constants/icons.js +61 -0
  168. package/dist/components/Menu/helpers/createMenus.d.ts +2 -0
  169. package/dist/components/Menu/helpers/createMenus.js +20 -0
  170. package/dist/components/Menu/helpers/createSubMenus.d.ts +2 -0
  171. package/dist/components/Menu/helpers/createSubMenus.js +13 -0
  172. package/dist/components/Menu/helpers/generateColorScale.d.ts +1 -0
  173. package/dist/components/Menu/helpers/generateColorScale.js +62 -0
  174. package/dist/components/Menu/helpers/getLuminance.d.ts +1 -0
  175. package/dist/components/Menu/helpers/getLuminance.js +9 -0
  176. package/dist/components/Menu/index.d.ts +12 -0
  177. package/dist/components/Menu/index.js +108 -0
  178. package/dist/components/Menu/styles.d.ts +17 -0
  179. package/dist/components/Menu/styles.js +202 -0
  180. package/dist/components/Menu/types/IconKeysType.d.ts +2 -0
  181. package/dist/components/Menu/types/IconKeysType.js +0 -0
  182. package/dist/components/Menu/types/MenuItem.d.ts +26 -0
  183. package/dist/components/Menu/types/MenuItem.js +0 -0
  184. package/dist/components/MultiSelect/Badge/index.d.ts +6 -0
  185. package/dist/components/MultiSelect/Badge/index.js +31 -0
  186. package/dist/components/MultiSelect/Badge/styles.d.ts +1 -0
  187. package/dist/components/MultiSelect/Badge/styles.js +57 -0
  188. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +61 -0
  189. package/dist/components/MultiSelect/MultiSelect.stories.js +336 -0
  190. package/dist/components/MultiSelect/MultiSelectList/index.d.ts +10 -0
  191. package/dist/components/MultiSelect/MultiSelectList/index.js +59 -0
  192. package/dist/components/MultiSelect/MultiSelectList/style.d.ts +3 -0
  193. package/dist/components/MultiSelect/MultiSelectList/style.js +82 -0
  194. package/dist/components/MultiSelect/calcTextSize.d.ts +1 -0
  195. package/dist/components/MultiSelect/calcTextSize.js +10 -0
  196. package/dist/components/MultiSelect/index.d.ts +24 -0
  197. package/dist/components/MultiSelect/index.js +284 -0
  198. package/dist/components/MultiSelect/styles.d.ts +24 -0
  199. package/dist/components/MultiSelect/styles.js +165 -0
  200. package/dist/components/Radio/Radio.stories.d.ts +18 -0
  201. package/dist/components/Radio/Radio.stories.js +30 -0
  202. package/dist/components/Radio/index.d.ts +7 -0
  203. package/dist/components/Radio/index.js +27 -0
  204. package/dist/components/Radio/story.d.ts +5 -0
  205. package/dist/components/Radio/story.js +47 -0
  206. package/dist/components/Radio/styles.d.ts +8 -0
  207. package/dist/components/Radio/styles.js +43 -0
  208. package/dist/components/StateAlert/StateAlert.stories.d.ts +46 -0
  209. package/dist/components/StateAlert/StateAlert.stories.js +189 -0
  210. package/dist/components/StateAlert/index.d.ts +22 -0
  211. package/dist/components/StateAlert/index.js +56 -0
  212. package/dist/components/StateAlert/styles.d.ts +7 -0
  213. package/dist/components/StateAlert/styles.js +124 -0
  214. package/dist/components/Switch/Switch.stories.d.ts +26 -0
  215. package/dist/components/Switch/Switch.stories.js +81 -0
  216. package/dist/components/Switch/index.d.ts +8 -0
  217. package/dist/components/Switch/index.js +26 -0
  218. package/dist/components/Switch/styles.d.ts +15 -0
  219. package/dist/components/Switch/styles.js +33 -0
  220. package/dist/components/Text/Paragraph/Paragraph.stories.d.ts +29 -0
  221. package/dist/components/Text/Paragraph/Paragraph.stories.js +124 -0
  222. package/dist/components/Text/Title/Title.stories.d.ts +41 -0
  223. package/dist/components/Text/Title/Title.stories.js +106 -0
  224. package/dist/components/Text/index.d.ts +3 -0
  225. package/dist/components/Text/index.js +17 -0
  226. package/dist/components/Text/styles.d.ts +23 -0
  227. package/dist/components/Text/styles.js +70 -0
  228. package/dist/components/TextArea/Textarea.stories.d.ts +33 -0
  229. package/dist/components/TextArea/Textarea.stories.js +65 -0
  230. package/dist/components/TextArea/index.d.ts +10 -0
  231. package/dist/components/TextArea/index.js +39 -0
  232. package/dist/components/TextArea/styles.d.ts +18 -0
  233. package/dist/components/TextArea/styles.js +88 -0
  234. package/dist/components/TooltipWrapper/Tooltip.stories.d.ts +21 -0
  235. package/dist/components/TooltipWrapper/Tooltip.stories.js +54 -0
  236. package/dist/components/TooltipWrapper/index.d.ts +20 -0
  237. package/dist/components/TooltipWrapper/index.js +56 -0
  238. package/dist/components/TooltipWrapper/styles.d.ts +6 -0
  239. package/dist/components/TooltipWrapper/styles.js +20 -0
  240. package/dist/components/Tooltips/Tooltips.stories.d.ts +25 -0
  241. package/dist/components/Tooltips/Tooltips.stories.js +139 -0
  242. package/dist/components/Tooltips/index.d.ts +8 -0
  243. package/dist/components/Tooltips/index.js +28 -0
  244. package/dist/components/Tooltips/styles.d.ts +5 -0
  245. package/dist/components/Tooltips/styles.js +37 -0
  246. package/dist/components/UserMenu/UserMenu.stories.d.ts +26 -0
  247. package/dist/components/UserMenu/UserMenu.stories.js +174 -0
  248. package/dist/components/UserMenu/index.d.ts +19 -0
  249. package/dist/components/UserMenu/index.js +64 -0
  250. package/dist/components/UserMenu/style.d.ts +2 -0
  251. package/dist/components/UserMenu/style.js +44 -0
  252. package/dist/index.d.ts +3 -0
  253. package/dist/index.js +3 -0
  254. package/dist/static/image/cover.png +0 -0
  255. package/dist/static/image/how-to-use.gif +0 -0
  256. package/dist/static/image/map-sample.png +0 -0
  257. package/dist/static/image/photo-goes-here.png +0 -0
  258. package/dist/static/image/travolta.jpg +0 -0
  259. package/dist/static/svg/Group.svg +5 -0
  260. package/dist/static/svg/chat.svg +10 -0
  261. package/dist/static/svg/colored-item.svg +9 -0
  262. package/dist/static/svg/mailbox-bro.svg +102 -0
  263. package/dist/static/svg/star-favorite.svg +3 -0
  264. package/dist/style/_reset.css +205 -0
  265. package/package.json +43 -0
@@ -0,0 +1,92 @@
1
+ import styled_components from "styled-components";
2
+ import { COLOR_NEUTRAL_DARKER, COLOR_NEUTRAL_DAY, COLOR_NEUTRAL_DUSK, COLOR_NEUTRAL_LIGHT, COLOR_NEUTRAL_LIGHTER } from "@ftdata/f-tokens";
3
+ const DoubleListContainer = styled_components.div`
4
+ display: flex;
5
+ background-color: ${COLOR_NEUTRAL_DAY};
6
+ flex-direction: column;
7
+ gap: 0.75rem;
8
+ width: 100%;
9
+ `;
10
+ const HeadingContainer = styled_components.div`
11
+ align-items: center;
12
+ display: flex;
13
+ justify-content: space-between;
14
+
15
+ h3 {
16
+ color: ${COLOR_NEUTRAL_DUSK};
17
+ max-width: 60%;
18
+ font-size: 0.875rem;
19
+ font-weight: 600;
20
+ line-height: 1rem;
21
+ }
22
+
23
+ span {
24
+ color: ${COLOR_NEUTRAL_DARKER};
25
+ font-size: 0.75rem;
26
+ font-weight: 500;
27
+ line-height: 1.125rem;
28
+ }
29
+ `;
30
+ const ListsContainer = styled_components.div`
31
+ display: flex;
32
+ gap: 0.625rem;
33
+ width: 100%;
34
+
35
+ & > div:nth-child(1) {
36
+ border-right: solid 1px ${COLOR_NEUTRAL_LIGHT};
37
+ }
38
+ `;
39
+ const ListContainer = styled_components.div`
40
+ background-color: ${COLOR_NEUTRAL_DAY};
41
+ display: flex;
42
+ overflow: overlay;
43
+ width: calc(50% - 0.313rem);
44
+
45
+ *::-webkit-scrollbar {
46
+ width: 0.875rem;
47
+ background: transparent;
48
+ }
49
+
50
+ *::-webkit-scrollbar-track {
51
+ background-color: ${COLOR_NEUTRAL_DAY};
52
+ background: transparent;
53
+ border-radius: 0 0.25rem 0.25rem 0;
54
+ }
55
+
56
+ *::-webkit-scrollbar-thumb {
57
+ background: #d5d8da;
58
+ border-radius: 0.5rem;
59
+ width: 0.375rem;
60
+ box-sizing: border-box;
61
+ border: 0.25rem solid transparent;
62
+ background-clip: padding-box;
63
+ }
64
+ `;
65
+ const OptionContainer = styled_components.div`
66
+ align-items: center;
67
+ background-color: ${COLOR_NEUTRAL_DAY};
68
+ box-sizing: border-box;
69
+ display: inline-flex;
70
+ gap: 0.5rem;
71
+ padding: 0.5rem 0;
72
+ width: 100%;
73
+ overflow: hidden;
74
+ transition: all 0.18s fowards;
75
+
76
+ &:hover {
77
+ background-color: ${COLOR_NEUTRAL_LIGHTER};
78
+ }
79
+
80
+ span {
81
+ font-size: 0.875rem;
82
+ color: ${COLOR_NEUTRAL_DARKER};
83
+ line-height: 1.25rem;
84
+ letter-spacing: 0px;
85
+ max-width: 90%;
86
+ font-weight: 500;
87
+ white-space: nowrap;
88
+ overflow: hidden;
89
+ text-overflow: ellipsis;
90
+ }
91
+ `;
92
+ export { DoubleListContainer, HeadingContainer, ListContainer, ListsContainer, OptionContainer };
@@ -0,0 +1,26 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import EmptyState from ".";
3
+ /**
4
+ * EmptyStates são usados para exibir uma página em branco e informar o motivo pelo qual ela está vazia.
5
+ * Este componente também funciona com os atributos nativos de um HTML div element.
6
+ */
7
+ declare const meta: Meta<typeof EmptyState>;
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ /**
11
+ * Variação padrão do EmptyState quando apenas as propriedades obrigatórias são fornecidas.
12
+ */
13
+ export declare const Default: Story;
14
+ /**
15
+ * EmptyState com textos informativos orientam os usuários sobre o que está acontecendo e como eles podem interagir.
16
+ */
17
+ export declare const WithText: Story;
18
+ /**
19
+ * Custom images are utilized to personalize the message for the user's experience.
20
+ * ###### Observação: A imagem apresentada neste exemplo é utilizada apenas para fins ilustrativos e não representa necessariamente a funcionalidade ou o design final do componente.
21
+ */
22
+ export declare const CustomImage: Story;
23
+ /**
24
+ * EmptyState com botões possiblitando que os usuários tomem uma ação.
25
+ */
26
+ export declare const Actions: Story;
@@ -0,0 +1,72 @@
1
+ import index from "./index.js";
2
+ import mailbox_bro from "../../assets/svg/mailbox-bro.js";
3
+ const meta = {
4
+ title: "DESIGN COMPONENTS/EmptyState",
5
+ component: index,
6
+ tags: [
7
+ "autodocs"
8
+ ],
9
+ parameters: {
10
+ layout: "centered"
11
+ },
12
+ argTypes: {
13
+ image: {
14
+ description: "Define a imagem personalizada do EmptySate"
15
+ },
16
+ title: {
17
+ description: "Define o t\xedtulo do EmptySate."
18
+ },
19
+ primaryLabel: {
20
+ description: "Define o r\xf3tulo do bot\xe3o prim\xe1rio do EmptyState."
21
+ },
22
+ onPrimaryClick: {
23
+ description: "Define a fun\xe7\xe3o de callback para o clique do bot\xe3o prim\xe1rio do EmptyState."
24
+ },
25
+ secondaryLabel: {
26
+ description: "Define o r\xf3tulo do bot\xe3o secund\xe1rio do EmptyState."
27
+ },
28
+ onSecondaryClick: {
29
+ description: "Define a fun\xe7\xe3o de callback para o clique do bot\xe3o secund\xe1rio do EmptyState."
30
+ },
31
+ children: {
32
+ control: {
33
+ type: "text"
34
+ },
35
+ description: "Define o conte\xfado que ser\xe1 exibido ao usu\xe1rio, geralmente um texto.",
36
+ table: {
37
+ type: {
38
+ summary: "string | ReactNode"
39
+ }
40
+ }
41
+ }
42
+ }
43
+ };
44
+ const Empty_stories = meta;
45
+ const Default = {};
46
+ const WithText = {
47
+ args: {
48
+ image: "",
49
+ title: "Com T\xedtulo e Texto",
50
+ primaryLabel: "",
51
+ secondaryLabel: "",
52
+ children: "Esta mensagem explica por que n\xe3o h\xe1 conte\xfado nesta p\xe1gina e sugere a\xe7\xf5es que voc\xea pode realizar. "
53
+ }
54
+ };
55
+ const CustomImage = {
56
+ args: {
57
+ image: mailbox_bro,
58
+ title: "Imagem Personalizada",
59
+ children: "Esta mensagem explica por que n\xe3o h\xe1 conte\xfado nesta p\xe1gina e sugere a\xe7\xf5es que voc\xea pode realizar. "
60
+ }
61
+ };
62
+ const Actions = {
63
+ args: {
64
+ title: "A\xe7\xf5es",
65
+ primaryLabel: "A\xe7\xe3o Prim\xe1ria",
66
+ onPrimaryClick: ()=>"click - Primary Button clicado",
67
+ secondaryLabel: "A\xe7\xe3o Secund\xe1ria",
68
+ onSecondaryClick: ()=>"click - Secondary Button clicado",
69
+ children: "Esta mensagem explica por que n\xe3o h\xe1 conte\xfado nesta p\xe1gina e sugere a\xe7\xf5es que voc\xea pode realizar. "
70
+ }
71
+ };
72
+ export { Actions, CustomImage, Default, WithText, Empty_stories as default };
@@ -0,0 +1,10 @@
1
+ interface Props extends React.HTMLAttributes<HTMLDivElement> {
2
+ image?: string;
3
+ title?: string;
4
+ primaryLabel?: string;
5
+ secondaryLabel?: string;
6
+ onPrimaryClick?: () => void;
7
+ onSecondaryClick?: () => void;
8
+ }
9
+ declare const EmptyState: React.FC<Props>;
10
+ export default EmptyState;
@@ -0,0 +1,48 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Image, Wrapper } from "./styles.js";
3
+ import EmptyPage from "../../assets/EmptyPage.js";
4
+ import { Paragraph, Title } from "../Text/index.js";
5
+ import Button from "../Button/index.js";
6
+ const EmptyState_EmptyState = ({ onPrimaryClick, onSecondaryClick, primaryLabel, secondaryLabel, children, image, title })=>{
7
+ console.log({
8
+ onPrimaryClick,
9
+ onSecondaryClick,
10
+ primaryLabel,
11
+ secondaryLabel,
12
+ children,
13
+ image,
14
+ title
15
+ });
16
+ return /*#__PURE__*/ jsxs(Wrapper, {
17
+ children: [
18
+ image ? /*#__PURE__*/ jsx(Image, {
19
+ alt: `${title} image`,
20
+ src: image
21
+ }) : /*#__PURE__*/ jsx(EmptyPage, {}),
22
+ title && /*#__PURE__*/ jsx(Title, {
23
+ size: "section",
24
+ children: title
25
+ }),
26
+ children && /*#__PURE__*/ jsx(Paragraph, {
27
+ size: "sm",
28
+ children: children
29
+ }),
30
+ /*#__PURE__*/ jsxs("div", {
31
+ children: [
32
+ primaryLabel && onPrimaryClick && /*#__PURE__*/ jsx(Button, {
33
+ variant: "primary",
34
+ onClick: onPrimaryClick,
35
+ children: primaryLabel
36
+ }),
37
+ secondaryLabel && onSecondaryClick && /*#__PURE__*/ jsx(Button, {
38
+ variant: "secondary",
39
+ onClick: onSecondaryClick,
40
+ children: secondaryLabel
41
+ })
42
+ ]
43
+ })
44
+ ]
45
+ });
46
+ };
47
+ const EmptyState = EmptyState_EmptyState;
48
+ export { EmptyState as default };
@@ -0,0 +1,3 @@
1
+ import type { ImgHTMLAttributes } from "react";
2
+ export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const Image: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, ImgHTMLAttributes<HTMLImageElement>>> & string;
@@ -0,0 +1,39 @@
1
+ import styled_components from "styled-components";
2
+ import { SPACING_INLINE_02, SPACING_STACK_03, SPACING_STACK_05 } from "@ftdata/f-tokens";
3
+ const Wrapper = styled_components.div`
4
+ align-items: center;
5
+ display: flex;
6
+ flex-direction: column;
7
+ justify-content: center;
8
+ height: 100%;
9
+ text-align: center;
10
+ width: 100%;
11
+
12
+ svg,
13
+ img {
14
+ height: auto;
15
+ margin-bottom: ${SPACING_STACK_05};
16
+ max-width: 240px;
17
+ width: 100%;
18
+ }
19
+
20
+ div {
21
+ display: flex;
22
+
23
+ button {
24
+ margin: 0 ${SPACING_INLINE_02};
25
+ }
26
+ }
27
+
28
+ p {
29
+ margin-bottom: ${SPACING_STACK_05};
30
+ margin-top: ${SPACING_STACK_03};
31
+ max-width: 240px;
32
+ }
33
+ `;
34
+ const Image = styled_components.img`
35
+ height: auto;
36
+ max-width: 240px;
37
+ width: 100%;
38
+ `;
39
+ export { Image, Wrapper };
@@ -0,0 +1,26 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Column from ".";
3
+ /**
4
+ * O componente Column é usado para definir colunas dentro de uma Row dentro de um Container.
5
+ * Este componente também funciona com os atributos nativos de um HTML div element.
6
+ * ###### importante: Estilos como cores e linhas não são aplicados por padrão; eles foram usados apenas para melhor visualização.
7
+ */
8
+ declare const meta: Meta<typeof Column>;
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ /**
12
+ * Variação padrão do Column quando apenas as propriedades obrigatórias são fornecidas.
13
+ */
14
+ export declare const Default: Story;
15
+ /**
16
+ * Exemplo simples do componente.
17
+ */
18
+ export declare const FirstExample: Story;
19
+ /**
20
+ * Exemplo simples do componente.
21
+ */
22
+ export declare const SecondExample: Story;
23
+ /**
24
+ * Exemplo com as variações de tamanho padrão.
25
+ */
26
+ export declare const Sizes: Story;
@@ -0,0 +1,335 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Element } from "../utils.js";
3
+ import index from "./index.js";
4
+ const sizes = [
5
+ 1,
6
+ 2,
7
+ 3,
8
+ 4,
9
+ 5,
10
+ 6,
11
+ 7,
12
+ 8,
13
+ 9,
14
+ 10,
15
+ 11,
16
+ 12
17
+ ];
18
+ const Column_stories_element = /*#__PURE__*/ jsx(Element, {
19
+ style: {
20
+ backgroundColor: "#FF5656",
21
+ fontFamily: "sans-serif",
22
+ border: "none",
23
+ color: "#f5f5f5",
24
+ fontWeight: "800",
25
+ margin: "0.5rem"
26
+ },
27
+ children: "Element"
28
+ });
29
+ const firstExample = [
30
+ Column_stories_element,
31
+ Column_stories_element
32
+ ];
33
+ const secondExample = [
34
+ Column_stories_element,
35
+ Column_stories_element,
36
+ Column_stories_element,
37
+ Column_stories_element,
38
+ Column_stories_element,
39
+ Column_stories_element
40
+ ];
41
+ const meta = {
42
+ title: "DESIGN COMPONENTS/Grid/Column",
43
+ component: index,
44
+ tags: [
45
+ "autodocs"
46
+ ],
47
+ decorators: [
48
+ (Story)=>/*#__PURE__*/ jsx("div", {
49
+ style: {
50
+ width: "100%",
51
+ display: "flex",
52
+ justifyContent: "center",
53
+ alignItems: "center"
54
+ },
55
+ children: /*#__PURE__*/ jsx(Story, {})
56
+ })
57
+ ],
58
+ argTypes: {
59
+ style: {
60
+ table: {
61
+ disable: true
62
+ }
63
+ },
64
+ children: {
65
+ control: {
66
+ type: "select"
67
+ },
68
+ description: "Recebe o conte\xfado que ser\xe1 renderizado dentro do Column.",
69
+ mapping: {
70
+ "Default example": Column_stories_element,
71
+ "First Example": firstExample,
72
+ "Second Example": secondExample
73
+ },
74
+ options: [
75
+ "Default example",
76
+ "First Example",
77
+ "Second Example"
78
+ ],
79
+ table: {
80
+ type: {
81
+ summary: "ReactNode"
82
+ }
83
+ }
84
+ },
85
+ lg: {
86
+ description: "Define o tamanho do Column para dispositivos de desktop (acima de 800px de largura).",
87
+ mapping: {
88
+ "Default lg": null
89
+ },
90
+ options: [
91
+ "Default lg",
92
+ 1,
93
+ 2,
94
+ 3,
95
+ 4,
96
+ 5,
97
+ 6,
98
+ 7,
99
+ 8,
100
+ 9,
101
+ 10,
102
+ 11,
103
+ 12
104
+ ],
105
+ table: {
106
+ type: {
107
+ summary: "number(1...12)"
108
+ }
109
+ }
110
+ },
111
+ md: {
112
+ description: "Define o tamanho do Column para dispositivos tablet (abaixo de 800px de largura).",
113
+ mapping: {
114
+ "Default md": null
115
+ },
116
+ options: [
117
+ "Default md",
118
+ 1,
119
+ 2,
120
+ 3,
121
+ 4,
122
+ 5,
123
+ 6,
124
+ 7,
125
+ 8
126
+ ],
127
+ table: {
128
+ type: {
129
+ summary: "number(1...8)"
130
+ }
131
+ }
132
+ },
133
+ sm: {
134
+ control: {
135
+ type: "select"
136
+ },
137
+ description: "Define o tamanho do Column para dispositivos m\xf3veis (abaixo de 415px de largura).",
138
+ mapping: {
139
+ "Default sm": null
140
+ },
141
+ options: [
142
+ "Default sm",
143
+ 1,
144
+ 2,
145
+ 3,
146
+ 4
147
+ ],
148
+ table: {
149
+ type: {
150
+ summary: "number(1...4)"
151
+ }
152
+ }
153
+ },
154
+ offset: {
155
+ control: {
156
+ type: "select"
157
+ },
158
+ description: "Define o deslocamento do Column para a esquerda, em n\xfamero de colunas.",
159
+ mapping: {
160
+ "Default offset": null
161
+ },
162
+ options: [
163
+ "Default offset",
164
+ 1,
165
+ 2,
166
+ 3,
167
+ 4,
168
+ 5,
169
+ 6,
170
+ 7,
171
+ 8,
172
+ 9,
173
+ 10,
174
+ 11,
175
+ 12
176
+ ],
177
+ table: {
178
+ type: {
179
+ summary: "number(1...12)"
180
+ }
181
+ }
182
+ },
183
+ "offset-lg": {
184
+ description: "Define o 'offset' para dispositivos desktop.",
185
+ mapping: {
186
+ "Default lg": null
187
+ },
188
+ options: [
189
+ "Default lg",
190
+ 1,
191
+ 2,
192
+ 3,
193
+ 4,
194
+ 5,
195
+ 6,
196
+ 7,
197
+ 8,
198
+ 9,
199
+ 10,
200
+ 11,
201
+ 12
202
+ ],
203
+ table: {
204
+ type: {
205
+ summary: "number(1...12)"
206
+ }
207
+ }
208
+ },
209
+ "offset-md": {
210
+ description: "Define o 'offset' para tablets.",
211
+ mapping: {
212
+ "Default md": null
213
+ },
214
+ options: [
215
+ "Default md",
216
+ 1,
217
+ 2,
218
+ 3,
219
+ 4,
220
+ 5,
221
+ 6,
222
+ 7,
223
+ 8
224
+ ],
225
+ table: {
226
+ type: {
227
+ summary: "number(1...8)"
228
+ }
229
+ }
230
+ },
231
+ "offset-sm": {
232
+ control: {
233
+ type: "select"
234
+ },
235
+ description: "Define o 'offset' para dispositivos m\xf3veis.",
236
+ mapping: {
237
+ "Default sm": null
238
+ },
239
+ options: [
240
+ "Default sm",
241
+ 1,
242
+ 2,
243
+ 3,
244
+ 4
245
+ ],
246
+ table: {
247
+ type: {
248
+ summary: "number(1...4)"
249
+ }
250
+ }
251
+ },
252
+ order: {
253
+ description: "Define a posi\xe7\xe3o de ordena\xe7\xe3o do Column, usada como refer\xeancia para outras Colums."
254
+ },
255
+ "order-lg": {
256
+ description: "Define o 'order' para dispositivos desktop."
257
+ },
258
+ "order-md": {
259
+ description: "Define o 'order' para tablets."
260
+ },
261
+ "order-sm": {
262
+ description: "Define o 'order' para dispositivos m\xf3veis."
263
+ }
264
+ }
265
+ };
266
+ const Column_stories = meta;
267
+ const Default = {
268
+ args: {
269
+ children: Column_stories_element,
270
+ style: {
271
+ border: "4px dashed #FF5656",
272
+ borderRadius: "10px"
273
+ }
274
+ }
275
+ };
276
+ const FirstExample = {
277
+ args: {
278
+ children: "First Example",
279
+ style: {
280
+ border: "4px dashed #FF5656",
281
+ borderRadius: "10px"
282
+ }
283
+ }
284
+ };
285
+ const SecondExample = {
286
+ args: {
287
+ children: "Second Example",
288
+ style: {
289
+ border: "4px dashed #FF5656",
290
+ borderRadius: "10px"
291
+ }
292
+ }
293
+ };
294
+ const Sizes = {
295
+ render: ()=>/*#__PURE__*/ jsx("div", {
296
+ style: {
297
+ display: "flex",
298
+ justifyContent: "center",
299
+ gap: "2.5rem",
300
+ width: "100%",
301
+ flexDirection: "column-reverse"
302
+ },
303
+ children: sizes.map((size)=>/*#__PURE__*/ jsx(index, {
304
+ lg: size,
305
+ style: {
306
+ border: "4px dashed #FF5656",
307
+ borderRadius: "10px"
308
+ },
309
+ children: Column_stories_element
310
+ }, size))
311
+ }),
312
+ argTypes: {
313
+ children: {
314
+ table: {
315
+ disable: true
316
+ }
317
+ },
318
+ "offset-sm": {
319
+ table: {
320
+ disable: true
321
+ }
322
+ },
323
+ offset: {
324
+ table: {
325
+ disable: true
326
+ }
327
+ },
328
+ sm: {
329
+ table: {
330
+ disable: true
331
+ }
332
+ }
333
+ }
334
+ };
335
+ export { Default, FirstExample, SecondExample, Sizes, Column_stories as default };
@@ -0,0 +1,15 @@
1
+ interface ColumnProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ lg?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
3
+ md?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
4
+ sm?: 1 | 2 | 3 | 4;
5
+ offset?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
6
+ "offset-lg"?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
7
+ "offset-md"?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
8
+ "offset-sm"?: 1 | 2 | 3 | 4;
9
+ order?: number;
10
+ "order-lg"?: number;
11
+ "order-md"?: number;
12
+ "order-sm"?: number;
13
+ }
14
+ export default function Column({ ...rest }: ColumnProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Fragment, jsx } from "react/jsx-runtime";
2
+ import { Column } from "../index.js";
3
+ function Column_Column({ ...rest }) {
4
+ return /*#__PURE__*/ jsx(Fragment, {
5
+ children: /*#__PURE__*/ jsx(Column, {
6
+ ...rest
7
+ })
8
+ });
9
+ }
10
+ export { Column_Column as default };
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Container from ".";
3
+ /**
4
+ * O Container é o elemento de nível mais alto no sistema de Grid, usado para encapsular Rows e Columns.
5
+ * Este componente também funciona com os atributos nativos de um HTML div element.
6
+ * ###### importante: Estilos como cores e linhas não são aplicados por padrão; eles foram usados apenas para melhor visualização.
7
+ */
8
+ declare const meta: Meta<typeof Container>;
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Default: Story;