dgrcorrientes-modulos 1.0.2 → 1.0.4

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 (258) hide show
  1. package/README.md +12 -21
  2. package/components.js +31576 -0
  3. package/components.umd.cjs +311 -0
  4. package/index.d.ts +1 -0
  5. package/package.json +1 -60
  6. package/style.css +5 -0
  7. package/.nvmrc +0 -1
  8. package/.prettierrc.cjs +0 -8
  9. package/.storybook/main.cjs +0 -11
  10. package/.storybook/manager-head.html +0 -2
  11. package/.storybook/manager.cjs +0 -6
  12. package/.storybook/preview-head.html +0 -3
  13. package/.storybook/preview.cjs +0 -11
  14. package/.storybook/themes.cjs +0 -14
  15. package/StoryBook.txt +0 -19
  16. package/dist-config.cjs +0 -57
  17. package/index.html +0 -13
  18. package/src/App.scss +0 -36
  19. package/src/App.tsx +0 -34
  20. package/src/assets/react.svg +0 -1
  21. package/src/index.js +0 -70
  22. package/src/index.scss +0 -63
  23. package/src/index.ts +0 -108
  24. package/src/main.tsx +0 -11
  25. package/src/sass/base/_base.scss +0 -50
  26. package/src/sass/base/_controls.scss +0 -90
  27. package/src/sass/base/_datepicker.scss +0 -114
  28. package/src/sass/base/_typo.scss +0 -71
  29. package/src/sass/base/fonts/SFUIText-Bold.ttf +0 -0
  30. package/src/sass/base/fonts/SFUIText-BoldItalic.ttf +0 -0
  31. package/src/sass/base/fonts/SFUIText-Heavy.ttf +0 -0
  32. package/src/sass/base/fonts/SFUIText-HeavyItalic.ttf +0 -0
  33. package/src/sass/base/fonts/SFUIText-Light.ttf +0 -0
  34. package/src/sass/base/fonts/SFUIText-LightItalic.ttf +0 -0
  35. package/src/sass/base/fonts/SFUIText-Medium.ttf +0 -0
  36. package/src/sass/base/fonts/SFUIText-MediumItalic.ttf +0 -0
  37. package/src/sass/base/fonts/SFUIText-Regular.ttf +0 -0
  38. package/src/sass/base/fonts/SFUIText-RegularItalic.ttf +0 -0
  39. package/src/sass/base/fonts/SFUIText-Semibold.ttf +0 -0
  40. package/src/sass/base/fonts/SFUIText-SemiboldItalic.ttf +0 -0
  41. package/src/sass/bulma/bulma-changes.scss +0 -19
  42. package/src/sass/bulma/extensions/extensions.sass +0 -1
  43. package/src/sass/bulma/extensions/steps/bulma-steps.sass +0 -3
  44. package/src/sass/bulma/extensions/steps/index.sass +0 -421
  45. package/src/sass/bulma/variables/_variables-bulma.sass +0 -16
  46. package/src/sass/bulma/variables/components/card.sass +0 -20
  47. package/src/sass/bulma/variables/components/navbar.sass +0 -50
  48. package/src/sass/bulma/variables/components/tabs.sass +0 -28
  49. package/src/sass/bulma/variables/elements/button.sass +0 -46
  50. package/src/sass/bulma/variables/elements/notification.sass +0 -8
  51. package/src/sass/bulma/variables/elements/title.sass +0 -20
  52. package/src/sass/bulma/variables/grid/column.sass +0 -2
  53. package/src/sass/main.sass +0 -16
  54. package/src/sass/utilities/_bulma-variables.sass +0 -20
  55. package/src/sass/utilities/_derived-variables.scss +0 -68
  56. package/src/sass/utilities/_helpers.scss +0 -70
  57. package/src/sass/utilities/_variables.scss +0 -147
  58. package/src/stories/Changelog.stories.tsx +0 -73
  59. package/src/stories/Components/AssistanceDiary/AssistanceDiary.scss +0 -19
  60. package/src/stories/Components/AssistanceDiary/AssistanceDiary.stories.tsx +0 -25
  61. package/src/stories/Components/AssistanceDiary/AssistanceDiary.tsx +0 -57
  62. package/src/stories/Components/AverageAttended/AverageAttended.scss +0 -39
  63. package/src/stories/Components/AverageAttended/AverageAttended.stories.tsx +0 -71
  64. package/src/stories/Components/AverageAttended/AverageAttended.tsx +0 -311
  65. package/src/stories/Components/Breadcrumb/Breadcrumb.stories.tsx +0 -45
  66. package/src/stories/Components/Breadcrumb/Breadcrumb.tsx +0 -68
  67. package/src/stories/Components/Breadcrumb/breadcrumb.scss +0 -82
  68. package/src/stories/Components/CTA/CTA.scss +0 -76
  69. package/src/stories/Components/CTA/CTA.stories.tsx +0 -46
  70. package/src/stories/Components/CTA/CTA.tsx +0 -70
  71. package/src/stories/Components/Cards/Card CTA/CardCta.stories.tsx +0 -34
  72. package/src/stories/Components/Cards/Card CTA/CardCta.tsx +0 -81
  73. package/src/stories/Components/Cards/Card CTA/cardCta.scss +0 -71
  74. package/src/stories/Components/Cards/Card Expiration/cardExpiration.scss +0 -105
  75. package/src/stories/Components/Cards/Card Expiration/cardExpiration.stories.tsx +0 -40
  76. package/src/stories/Components/Cards/Card Expiration/cardExpiration.tsx +0 -95
  77. package/src/stories/Components/Cards/Card Vertical/CardVertical.stories.tsx +0 -43
  78. package/src/stories/Components/Cards/Card Vertical/CardVertical.tsx +0 -106
  79. package/src/stories/Components/Cards/Card Vertical/cardVertical.scss +0 -130
  80. package/src/stories/Components/Cards/CardActivity/cardActivity.scss +0 -31
  81. package/src/stories/Components/Cards/CardActivity/cardActivity.stories.tsx +0 -20
  82. package/src/stories/Components/Cards/CardActivity/cardActivity.tsx +0 -48
  83. package/src/stories/Components/Cards/CardHorizontal/CardHorizontal.stories.tsx +0 -96
  84. package/src/stories/Components/Cards/CardHorizontal/CardHorizontal.tsx +0 -94
  85. package/src/stories/Components/Cards/CardHorizontal/cardHorizontal.scss +0 -65
  86. package/src/stories/Components/Cards/CardUser/CardUser.stories.tsx +0 -135
  87. package/src/stories/Components/Cards/CardUser/CardUser.tsx +0 -122
  88. package/src/stories/Components/Cards/CardUser/cardUser.scss +0 -115
  89. package/src/stories/Components/Cart/Cart.scss +0 -279
  90. package/src/stories/Components/Cart/Cart.stories.tsx +0 -350
  91. package/src/stories/Components/Cart/Cart.tsx +0 -277
  92. package/src/stories/Components/Collapse/Collapse.scss +0 -339
  93. package/src/stories/Components/Collapse/Collapse.stories.tsx +0 -766
  94. package/src/stories/Components/Collapse/Collapse.tsx +0 -451
  95. package/src/stories/Components/CollapseEdit/CollapseEdit.scss +0 -128
  96. package/src/stories/Components/CollapseEdit/CollapseEdit.stories.tsx +0 -29
  97. package/src/stories/Components/CollapseEdit/CollapseEdit.tsx +0 -185
  98. package/src/stories/Components/CompleteDiary/CompleteDiary.scss +0 -165
  99. package/src/stories/Components/CompleteDiary/CompleteDiary.stories.tsx +0 -219
  100. package/src/stories/Components/CompleteDiary/CompleteDiary.tsx +0 -394
  101. package/src/stories/Components/Dropdown/Dropdown.scss +0 -60
  102. package/src/stories/Components/Dropdown/Dropdown.stories.tsx +0 -19
  103. package/src/stories/Components/Dropdown/Dropdown.tsx +0 -99
  104. package/src/stories/Components/EmptyState/EmptyState.stories.tsx +0 -46
  105. package/src/stories/Components/EmptyState/EmptyState.tsx +0 -44
  106. package/src/stories/Components/EmptyState/emptyState.scss +0 -75
  107. package/src/stories/Components/ErrorPage/ErrorPage.scss +0 -65
  108. package/src/stories/Components/ErrorPage/ErrorPage.stories.tsx +0 -164
  109. package/src/stories/Components/ErrorPage/ErrorPage.tsx +0 -107
  110. package/src/stories/Components/IncomingCall/IncomingCall.scss +0 -27
  111. package/src/stories/Components/IncomingCall/IncomingCall.stories.tsx +0 -43
  112. package/src/stories/Components/IncomingCall/IncomingCall.tsx +0 -76
  113. package/src/stories/Components/ModalConfirm/ModalConfirm.scss +0 -30
  114. package/src/stories/Components/ModalConfirm/ModalConfirm.stories.tsx +0 -21
  115. package/src/stories/Components/ModalConfirm/ModalConfirm.tsx +0 -118
  116. package/src/stories/Components/Pagination/Pagination.scss +0 -42
  117. package/src/stories/Components/Pagination/Pagination.stories.tsx +0 -25
  118. package/src/stories/Components/Pagination/Pagination.tsx +0 -143
  119. package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.scss +0 -26
  120. package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.stories.tsx +0 -27
  121. package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.tsx +0 -108
  122. package/src/stories/Components/ShiftDiary/ShiftDiary.scss +0 -45
  123. package/src/stories/Components/ShiftDiary/ShiftDiary.stories.tsx +0 -32
  124. package/src/stories/Components/ShiftDiary/ShiftDiary.tsx +0 -92
  125. package/src/stories/Components/Stepper/Stepper.stories.tsx +0 -26
  126. package/src/stories/Components/Stepper/Stepper.tsx +0 -102
  127. package/src/stories/Components/Stepper/stepper.scss +0 -59
  128. package/src/stories/Components/Tabs/Tabs.stories.tsx +0 -76
  129. package/src/stories/Components/Tabs/Tabs.tsx +0 -111
  130. package/src/stories/Components/Tabs/tabs.scss +0 -118
  131. package/src/stories/Components/Tooltip/Tooltip.scss +0 -235
  132. package/src/stories/Components/Tooltip/Tooltip.stories.tsx +0 -125
  133. package/src/stories/Components/Tooltip/Tooltip.tsx +0 -222
  134. package/src/stories/Elements/Alert/Alert.stories.tsx +0 -65
  135. package/src/stories/Elements/Alert/Alert.tsx +0 -49
  136. package/src/stories/Elements/Alert/alert.scss +0 -189
  137. package/src/stories/Elements/Badge/Badge.stories.tsx +0 -15
  138. package/src/stories/Elements/Badge/Badge.tsx +0 -21
  139. package/src/stories/Elements/Badge/badge.scss +0 -24
  140. package/src/stories/Elements/Button/Button.stories.tsx +0 -54
  141. package/src/stories/Elements/Button/Button.tsx +0 -118
  142. package/src/stories/Elements/Button/button.scss +0 -102
  143. package/src/stories/Elements/Icon/Icon.stories.tsx +0 -33
  144. package/src/stories/Elements/Icon/Icon.tsx +0 -57
  145. package/src/stories/Elements/Icon/icon.scss +0 -15
  146. package/src/stories/Elements/Icon/icono.svg +0 -1
  147. package/src/stories/Elements/ProgressBar/ProgressBar.scss +0 -26
  148. package/src/stories/Elements/ProgressBar/ProgressBar.stories.tsx +0 -19
  149. package/src/stories/Elements/ProgressBar/ProgressBar.tsx +0 -35
  150. package/src/stories/Form/Autocomplete/Autocomplete.stories.tsx +0 -55
  151. package/src/stories/Form/Autocomplete/Autocomplete.tsx +0 -160
  152. package/src/stories/Form/Autocomplete/autocomplete.scss +0 -311
  153. package/src/stories/Form/Autocomplete-Prueba/Autocomplete.stories.tsx +0 -50
  154. package/src/stories/Form/Autocomplete-Prueba/AutocompletePrueba.tsx +0 -83
  155. package/src/stories/Form/Checkbox/Checkbox.stories.tsx +0 -26
  156. package/src/stories/Form/Checkbox/Checkbox.tsx +0 -89
  157. package/src/stories/Form/Checkbox/checkbox.scss +0 -41
  158. package/src/stories/Form/DatePicker/DatePickerExample.stories.tsx +0 -27
  159. package/src/stories/Form/DatePicker/DatePickerExample.tsx +0 -65
  160. package/src/stories/Form/DatePickerComponent/DatePickerComponent.scss +0 -116
  161. package/src/stories/Form/DatePickerComponent/DatePickerComponent.stories.tsx +0 -37
  162. package/src/stories/Form/DatePickerComponent/DatePickerComponent.tsx +0 -97
  163. package/src/stories/Form/Filters/Filters.stories.tsx +0 -84
  164. package/src/stories/Form/Filters/Filters.tsx +0 -230
  165. package/src/stories/Form/Filters/filters.scss +0 -261
  166. package/src/stories/Form/Input/Input.stories.tsx +0 -25
  167. package/src/stories/Form/Input/Input.tsx +0 -86
  168. package/src/stories/Form/Input/InputVar.sass +0 -26
  169. package/src/stories/Form/Input/input.scss +0 -19
  170. package/src/stories/Form/InputFormControl/Input-form-control.stories.tsx +0 -26
  171. package/src/stories/Form/InputFormControl/Input-form-control.tsx +0 -48
  172. package/src/stories/Form/InputFormControl/input-form-control.scss +0 -34
  173. package/src/stories/Form/Radio/Radio.stories.tsx +0 -19
  174. package/src/stories/Form/Radio/Radio.tsx +0 -84
  175. package/src/stories/Form/Radio/radio.scss +0 -19
  176. package/src/stories/Form/Search/Search.scss +0 -50
  177. package/src/stories/Form/Search/Search.stories.tsx +0 -26
  178. package/src/stories/Form/Search/Search.tsx +0 -84
  179. package/src/stories/Form/Select/Select.stories.tsx +0 -55
  180. package/src/stories/Form/Select/Select.tsx +0 -121
  181. package/src/stories/Form/Select/select.scss +0 -303
  182. package/src/stories/Form/Switch/Switch.stories.tsx +0 -17
  183. package/src/stories/Form/Switch/Switch.tsx +0 -36
  184. package/src/stories/Form/Switch/switch.scss +0 -123
  185. package/src/stories/Form/Textarea/Textarea.stories.tsx +0 -19
  186. package/src/stories/Form/Textarea/Textarea.tsx +0 -52
  187. package/src/stories/Form/Textarea/textarea.scss +0 -25
  188. package/src/stories/Form/UploadFileItem/UploadFileItem.scss +0 -49
  189. package/src/stories/Form/UploadFileItem/UploadFileItem.stories.tsx +0 -18
  190. package/src/stories/Form/UploadFileItem/UploadFileItem.tsx +0 -89
  191. package/src/stories/Form/UploadFiles/UploadFiles.scss +0 -17
  192. package/src/stories/Form/UploadFiles/UploadFiles.stories.tsx +0 -32
  193. package/src/stories/Form/UploadFiles/UploadFiles.tsx +0 -177
  194. package/src/stories/Layout/Footer/Footer.scss +0 -129
  195. package/src/stories/Layout/Footer/Footer.stories.tsx +0 -101
  196. package/src/stories/Layout/Footer/Footer.tsx +0 -81
  197. package/src/stories/Layout/Header/Header.scss +0 -190
  198. package/src/stories/Layout/Header/Header.stories.tsx +0 -223
  199. package/src/stories/Layout/Header/Header.tsx +0 -278
  200. package/src/stories/Layout/HeaderTable/HeaderTable.scss +0 -21
  201. package/src/stories/Layout/HeaderTable/HeaderTable.stories.tsx +0 -112
  202. package/src/stories/Layout/HeaderTable/HeaderTable.tsx +0 -72
  203. package/src/stories/Layout/Sidebar/Sidebar.scss +0 -50
  204. package/src/stories/Layout/Sidebar/Sidebar.stories.tsx +0 -744
  205. package/src/stories/Layout/Sidebar/Sidebar.tsx +0 -129
  206. package/src/stories/Layout/SidebarEmpty/SidebarEmpty.scss +0 -64
  207. package/src/stories/Layout/SidebarEmpty/SidebarEmpty.stories.tsx +0 -26
  208. package/src/stories/Layout/SidebarEmpty/SidebarEmpty.tsx +0 -100
  209. package/src/stories/Layout/Subtitle/Subtitle.scss +0 -88
  210. package/src/stories/Layout/Subtitle/Subtitle.stories.tsx +0 -46
  211. package/src/stories/Layout/Subtitle/Subtitle.tsx +0 -108
  212. package/src/stories/Layout/Title/Title.scss +0 -79
  213. package/src/stories/Layout/Title/Title.stories.tsx +0 -86
  214. package/src/stories/Layout/Title/Title.tsx +0 -96
  215. package/src/stories/Welcome.stories.tsx +0 -111
  216. package/src/stories/assets/404 Page Not Found _Two Color (1).png +0 -0
  217. package/src/stories/assets/404 Page Not Found _Two Color.png +0 -0
  218. package/src/stories/assets/Empty Inbox _Two Color.png +0 -0
  219. package/src/stories/assets/Loading _Two Color.png +0 -0
  220. package/src/stories/assets/Notifications_Two Color 1.png +0 -0
  221. package/src/stories/assets/Online protection_Two Color.png +0 -0
  222. package/src/stories/assets/Under Constructions _Two Color.png +0 -0
  223. package/src/stories/assets/bulma.png +0 -0
  224. package/src/stories/assets/burger.svg +0 -5
  225. package/src/stories/assets/code-brackets.svg +0 -1
  226. package/src/stories/assets/colors.svg +0 -1
  227. package/src/stories/assets/comments.svg +0 -1
  228. package/src/stories/assets/decor-bg.png +0 -0
  229. package/src/stories/assets/direction.svg +0 -1
  230. package/src/stories/assets/e-isologo.svg +0 -4
  231. package/src/stories/assets/e-isotype.svg +0 -4
  232. package/src/stories/assets/e-logo_negative.svg +0 -14
  233. package/src/stories/assets/e-logotype.svg +0 -14
  234. package/src/stories/assets/flow.svg +0 -1
  235. package/src/stories/assets/logo_gobierno_corrientes.svg +0 -9
  236. package/src/stories/assets/logo_rentas_corrientes.svg +0 -10
  237. package/src/stories/assets/logo_rentas_corrientes_compacto.svg +0 -10
  238. package/src/stories/assets/plugin.svg +0 -1
  239. package/src/stories/assets/repo.svg +0 -1
  240. package/src/stories/assets/stackalt.svg +0 -1
  241. package/src/stories/assets/storybook.svg +0 -13
  242. package/src/stories/assets/thumbnail-black.jpg +0 -0
  243. package/src/stories/assets/thumbnail-black[2].jpg +0 -0
  244. package/src/stories/assets/thumbnail.jpg +0 -0
  245. package/src/stories/assets/thumbnail[2].jpg +0 -0
  246. package/src/stories/changelog.ts +0 -389
  247. package/src/utils/functions.ts +0 -57
  248. package/src/vite-env.d.ts +0 -2
  249. package/static/e-isologo-192.jpg +0 -0
  250. package/static/e-isologo.svg +0 -4
  251. package/static/e-logotype.svg +0 -14
  252. package/static/favicon.ico +0 -0
  253. package/tsconfig.json +0 -22
  254. package/tsconfig.node.json +0 -9
  255. package/vite.config.ts +0 -22
  256. /package/{public/elevation.ico → elevation.ico} +0 -0
  257. /package/{public/elevationImage.png → elevationImage.png} +0 -0
  258. /package/{public/vite.svg → vite.svg} +0 -0
@@ -1,102 +0,0 @@
1
- import {useEffect, useState} from 'react';
2
- import './stepper.scss';
3
-
4
- export interface IStepper extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
5
- // base
6
- activeLabel: string;
7
- items: {
8
- label: string;
9
- icon: string;
10
- onClick?: () => void;
11
- }[];
12
-
13
- // events
14
- handlePosition?: (itemActive: ItemValue) => void;
15
-
16
- // react
17
- className?: string;
18
- }
19
-
20
- export interface ItemValue {
21
- label: string;
22
- icon: any;
23
- onClick?: () => void;
24
- }
25
-
26
- export const Stepper = ({items, activeLabel, handlePosition, className, ...props}: IStepper) => {
27
- var activeItemIndex = 0;
28
- const itemActive = items.find(item => item.label === activeLabel);
29
-
30
- const [activeStep, setActiveStep] = useState(itemActive);
31
- const [positionStep, setPositionStep] = useState(itemActive);
32
-
33
- if (activeStep) {
34
- var activeItemIndex = items.indexOf(activeStep);
35
- }
36
-
37
- useEffect(() => {
38
- var newItemActive = items.find(item => item.label === activeLabel);
39
- setActiveStep(newItemActive);
40
-
41
- if (activeStep) {
42
- activeItemIndex = items.indexOf(activeStep);
43
- }
44
-
45
- setPositionStep(newItemActive);
46
- }, [activeLabel, items]);
47
-
48
- const handleClick = (item: ItemValue) => {
49
- setPositionStep(item);
50
-
51
- if (handlePosition) {
52
- handlePosition(item);
53
- }
54
-
55
- if (item.onClick) {
56
- item.onClick();
57
- }
58
- };
59
-
60
- return (
61
- <div className="elv-component elv-steps" {...props}>
62
- <ul className={`steps has-content-centered is-horizontal ${className ? className : ''}`}>
63
- {items.map((item, index) => (
64
- <li
65
- className={`steps-segment ${items[index + 1] !== undefined && items[index + 1] == activeStep ? 'is-pre-active' : ''} ${
66
- item == activeStep ? 'is-active' : ''
67
- }`}
68
- key={index}
69
- >
70
- <span
71
- className="steps-marker"
72
- onClick={() => {
73
- if (index <= activeItemIndex) {
74
- handleClick(item);
75
- } else {
76
- if (item.onClick) {
77
- item.onClick();
78
- }
79
- }
80
- }}
81
- >
82
- {index < activeItemIndex ? (
83
- <span className="icon">
84
- <i className={`${item.icon}`}></i>
85
- </span>
86
- ) : (
87
- <span>{index + 1}</span>
88
- )}
89
- </span>
90
- <div
91
- className={`steps-content ${index <= activeItemIndex ? 'steps-content--completed' : 'steps-content--incompleted'} ${
92
- item === positionStep && 'steps-content--position'
93
- }`}
94
- >
95
- <p className="steps-content__item-label">{item.label}</p>
96
- </div>
97
- </li>
98
- ))}
99
- </ul>
100
- </div>
101
- );
102
- };
@@ -1,59 +0,0 @@
1
- @import '/src/sass/utilities/variables';
2
-
3
- .steps {
4
- list-style: none;
5
- padding-left: 0px;
6
- .steps-segment {
7
- .steps-content {
8
- word-wrap: break-word;
9
-
10
- &__item-label {
11
- font-size: 16px;
12
- line-height: 125%;
13
- margin: 5px;
14
- text-align: center;
15
- }
16
-
17
- &--completed {
18
- color: $text-500;
19
- }
20
-
21
- &--incompleted {
22
- color: $text-300;
23
- }
24
-
25
- &--position {
26
- font-weight: bold;
27
- color: $text-900;
28
- }
29
- }
30
-
31
- .steps-marker {
32
- font-family: 'SF UI Text', sans-serif;
33
- cursor: pointer;
34
-
35
- &:not(.is-hollow) {
36
- color: white !important;
37
- }
38
- }
39
-
40
- &.is-pre-active {
41
- &::after {
42
- background-image: linear-gradient(to right, $success-600 50%, $primary-600 50%);
43
- }
44
- }
45
-
46
- &.is-active {
47
- .steps-content {
48
- &__item-label {
49
- // font-weight: bold;
50
- // color: $text-900;
51
- }
52
- }
53
-
54
- &::after {
55
- background-image: linear-gradient(to right, $primary-600 50%, $muted-300 50%);
56
- }
57
- }
58
- }
59
- }
@@ -1,76 +0,0 @@
1
- import {ComponentStory, ComponentMeta} from '@storybook/react';
2
- import {Tabs} from './Tabs';
3
-
4
- export default {
5
- title: 'Components/Tabs',
6
- component: Tabs,
7
- args: {
8
- activeLabel: {
9
- label: 'Inmobiliario',
10
- disabled: false,
11
- icon: {icon: 'fa fa-home'},
12
- subtitle: '$ 14.181,28',
13
- onClick: () => console.log('Inmobiliario Clicked'),
14
- },
15
- subActiveLabel: null,
16
- items: [
17
- {
18
- label: 'Inmobiliario',
19
- disabled: false,
20
- icon: {icon: 'fa fa-home'},
21
- subtitle: '$ 14.181,28',
22
- onClick: () => console.log('Inmobiliario Clicked'),
23
- },
24
- {
25
- label: 'Ingresos Brutos',
26
- disabled: false,
27
- icon: {icon: 'fa-solid fa-user'},
28
- subtitle: '$ 2.865,86',
29
- onClick: () => console.log('Ingresos Brutos Clicked'),
30
- },
31
- {
32
- label: 'Inmobiliario Rural',
33
- onClick: () => console.log('Inmobiliario Rural Clicked'),
34
- disabled: false,
35
- icon: {icon: 'fa-solid fa-truck-field'},
36
- subtitle: '$ 1.485,71',
37
- sub_labels: [
38
- {label: 'Sub-label 1', disabled: false, onClick: () => console.log('Sub-label 1 Clicked')},
39
- {label: 'Sub-label 2', disabled: false, onClick: () => console.log('Sub-label 2 Clicked')},
40
- {label: 'Sub-label 3', disabled: false, onClick: () => console.log('Sub-label 3 Clicked')},
41
- ],
42
- },
43
- {
44
- label: 'Agentes - Impuestos de Sello',
45
- disabled: false,
46
- icon: {icon: 'fa-solid fa-stamp'},
47
- subtitle: '$ 150,99',
48
- onClick: () => console.log('Impuestos de Sello Clicked'),
49
- },
50
- {
51
- label: 'Agentes - IIBB',
52
- disabled: true,
53
- icon: {icon: 'fa-solid fa-dollar-sign'},
54
- subtitle: '$ 1.161,05',
55
- onClick: () => console.log('IIBB Clicked'),
56
- },
57
- ],
58
- },
59
- } as ComponentMeta<typeof Tabs>;
60
-
61
- const Template: ComponentStory<typeof Tabs> = args => <Tabs {...args} />;
62
-
63
- export const BorderBottom = Template.bind({});
64
- BorderBottom.args = {
65
- type: 'border-bottom',
66
- };
67
-
68
- export const Boxed = Template.bind({});
69
- Boxed.args = {
70
- type: 'boxed',
71
- };
72
-
73
- export const Vertical = Template.bind({});
74
- Vertical.args = {
75
- type: 'vertical',
76
- };
@@ -1,111 +0,0 @@
1
- import {useState} from 'react';
2
- import './tabs.scss';
3
- import {generateRandomKey, shortenText} from '../../../utils/functions';
4
- import {IIcon, Icon} from '../../Elements/Icon/Icon';
5
-
6
- export interface ITabs extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
7
- // base
8
- type: 'border-bottom' | 'boxed' | 'vertical';
9
- activeTab: ITabItemValue | null;
10
- subactiveTab?: ITabSubITabItemValue | null;
11
- items: {
12
- label: string;
13
- sub_labels?: ITabSubITabItemValue[];
14
- icon?: IIcon;
15
- subtitle?: string;
16
- disabled: boolean;
17
- onClick?: () => void;
18
- }[];
19
-
20
- // events
21
- handleActive?: (itemActive: ITabItemValue) => void;
22
- handleSubActive?: (itemActive: ITabSubITabItemValue) => void;
23
-
24
- // react
25
- className?: string;
26
- }
27
-
28
- export interface ITabItemValue {
29
- label: string;
30
- sub_labels?: ITabSubITabItemValue[];
31
- icon?: IIcon;
32
- subtitle?: string;
33
- disabled: boolean;
34
- onClick?: () => void;
35
- }
36
-
37
- export interface ITabSubITabItemValue {
38
- label: string;
39
- disabled: boolean;
40
- onClick?: () => void;
41
- }
42
-
43
- export const Tabs = ({items, type, activeTab, handleActive, handleSubActive, subactiveTab, className, ...props}: ITabs) => {
44
- return (
45
- <div className="elv-component elv-tabs" {...props}>
46
- <ul className={`tabs tabs--${type} ${className ? className : ''}`}>
47
- {items.map((item, index) => (
48
- <div className="tabs__item" key={item.label + generateRandomKey()}>
49
- {type === 'boxed' && item.icon && item.subtitle ? (
50
- <li
51
- onClick={() => {
52
- handleActive && handleActive(item);
53
-
54
- if (item.sub_labels && handleSubActive) {
55
- handleSubActive(item.sub_labels[0]);
56
- }
57
- item.onClick && item.onClick();
58
- }}
59
- className={`item is-clickable ${index !== 0 ? 'ml-3' : ''} ${item.label == activeTab?.label ? 'item--active' : ''} ${
60
- item.disabled ? 'item--disabled' : ''
61
- }`}
62
- >
63
- <div className="boxed-container is-flex is-justify-content-center mb-1">
64
- <Icon {...item.icon} className="boxed-container__icon mb-1 mr-1" />
65
- <p className="boxed-container__label">{shortenText(item.label, 30)}</p>
66
- </div>
67
- <p className="boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered">
68
- {shortenText(item.subtitle, 20)}
69
- </p>
70
- </li>
71
- ) : (
72
- <li
73
- onClick={() => {
74
- handleActive && handleActive(item);
75
-
76
- if (item.sub_labels && handleSubActive) {
77
- handleSubActive(item.sub_labels[0]);
78
- }
79
- item.onClick && item.onClick();
80
- }}
81
- className={`item is-clickable ${index === 0 ? 'item--is-first' : ''} ${
82
- item.label == activeTab?.label ? 'item--active' : ''
83
- } ${item.disabled ? 'item--disabled' : ''}`}
84
- >
85
- {shortenText(item.label, 30)}
86
- </li>
87
- )}
88
- {item.sub_labels !== undefined &&
89
- type === 'vertical' &&
90
- item.sub_labels.map((sub_item, sub_index) => (
91
- <li
92
- key={generateRandomKey()}
93
- onClick={() => {
94
- handleActive && handleActive(item);
95
- handleSubActive && handleSubActive(sub_item);
96
-
97
- sub_item.onClick && sub_item.onClick();
98
- }}
99
- className={`sub-item ${index === 0 ? 'sub-item__--first' : ''} ${
100
- item.label == activeTab?.label && sub_item.label == subactiveTab?.label ? 'sub-item--active' : ''
101
- } ${sub_item.disabled ? 'sub-item--inactive' : ''}`}
102
- >
103
- {shortenText(sub_item.label, 25)}
104
- </li>
105
- ))}
106
- </div>
107
- ))}
108
- </ul>
109
- </div>
110
- );
111
- };
@@ -1,118 +0,0 @@
1
- @import '/src/sass/utilities/variables';
2
-
3
- .elv-tabs {
4
- .tabs {
5
- // min-width: max-content;
6
- flex-wrap: wrap;
7
- font-size: 14px;
8
-
9
- &--border-bottom {
10
- padding-bottom: 20px;
11
-
12
- .item {
13
- padding: 0px 50px 15px 50px !important;
14
-
15
- &--disabled {
16
- color: $text-300;
17
- pointer-events: none !important;
18
- display: block;
19
- }
20
-
21
- &--active {
22
- font-weight: $fw-semibold;
23
- border-bottom: 3px solid $primary-600;
24
- color: $primary-600;
25
- }
26
- }
27
- }
28
-
29
- &--boxed {
30
- padding-bottom: 20px;
31
-
32
- .tabs__item {
33
- flex: 1 0 0;
34
- border-right: 2px solid #eff2f6;
35
- border-bottom: 2px solid #eff2f6;
36
- padding: 10px 16px 0px 0px;
37
-
38
- @media screen and (max-width: 870px){
39
- max-width: calc(50% - 20px);
40
- }
41
- @media screen and (max-width: 530px){
42
- max-width: 100%;
43
-
44
- }
45
- }
46
-
47
- .item {
48
- display: flex;
49
- flex-direction: column;
50
- padding-bottom: 10px;
51
-
52
-
53
- &--inactive {
54
- color: $text-300;
55
- pointer-events: none;
56
- display: block;
57
- }
58
-
59
- &--active {
60
- font-weight: $fw-semibold;
61
- color: $primary-600 !important;
62
- border-bottom: 3px solid $primary-600;
63
- }
64
- }
65
- }
66
-
67
- &--vertical {
68
- flex-direction: column;
69
- align-items: flex-start !important;
70
- padding: 0px;
71
- min-width: min-content;
72
- max-width: 300px;
73
-
74
- .tabs__item {
75
- width: 100%;
76
-
77
- li {
78
- border-left: 6px solid transparent;
79
- padding: 8px 16px;
80
- color: $muted-400;
81
- text-align: left !important;
82
- }
83
-
84
- .item {
85
- border-left-color: $muted-400;
86
- border-bottom-width: 0px !important;
87
- justify-content: flex-start;
88
-
89
- &:hover {
90
- border-left-color: $primary-600;
91
- }
92
-
93
- &--active {
94
- font-weight: $fw-semibold;
95
- border-left: 6px solid $primary-600;
96
- color: $primary-600;
97
- }
98
- }
99
-
100
- .sub-item {
101
- padding-left: 30px;
102
- cursor: pointer;
103
-
104
- &:hover {
105
- border-bottom: 0px;
106
- color: $primary-600;
107
- }
108
-
109
- &--active {
110
- background-color: #e7f0ff;
111
- border-left-color: #e7f0ff;
112
- color: $primary-600;
113
- }
114
- }
115
- }
116
- }
117
- }
118
- }
@@ -1,235 +0,0 @@
1
- @import '/src/sass/utilities/variables';
2
-
3
- .tooltip {
4
- border-radius: 6px;
5
- box-shadow: 0px 10px 28px 5px rgba(14, 31, 53, 0.1);
6
- backdrop-filter: drop-shadow(0px 3px 6px rgba(14, 31, 53, 0.08)) drop-shadow(0px 6px 12px rgba(14, 31, 53, 0.12))
7
- drop-shadow(0px 14px 24px rgba(14, 31, 53, 0.08));
8
- position: relative;
9
- min-width: 290px;
10
-
11
- &__content {
12
- border-radius: 6px;
13
- padding: 10px;
14
- z-index: 2;
15
- background-color: $white;
16
-
17
- .labels {
18
- display: flex;
19
- flex-direction: column;
20
- gap: 5px;
21
-
22
- &__text {
23
- color: $darkText;
24
- font-size: 14px;
25
- }
26
- }
27
-
28
- &--calendar {
29
- .labels {
30
- &__date {
31
- color: $text-400;
32
- font-size: 10px;
33
- }
34
-
35
- &__sub_title {
36
- color: $black;
37
- font-size: 10px;
38
- font-weight: $fw-medium;
39
- }
40
- }
41
- }
42
-
43
- &--text {
44
- .labels {
45
- padding: 5px;
46
- }
47
- }
48
-
49
- &--taxes {
50
- padding: 15px;
51
- .labels {
52
- font-size: 14px;
53
-
54
- .principal-item {
55
- &__label {
56
- color: $text-500;
57
- font-weight: $fw-semibold;
58
- }
59
-
60
- &__value {
61
- color: $darkText;
62
- font-weight: $fw-semibold;
63
- }
64
- }
65
-
66
- .tax-sections {
67
- border-bottom: 1px solid $truegray-300;
68
-
69
- &__sec {
70
- .sec-title {
71
- font-size: 12px;
72
- color: $text-500;
73
- }
74
-
75
- .sec-label {
76
- padding-bottom: 5px;
77
- &__label {
78
- color: $text-500;
79
- }
80
-
81
- &__value {
82
- color: $darkText;
83
- font-weight: $fw-semibold;
84
- }
85
- }
86
- }
87
- }
88
-
89
- .total {
90
- color: $success-500;
91
- font-weight: $fw-medium;
92
- }
93
-
94
- .amount {
95
- color: $black;
96
- font-weight: $fw-medium;
97
- padding-bottom: 4px;
98
- border-bottom: 1px solid $truegray-300;
99
- margin-bottom: 10px;
100
- }
101
-
102
- .tax-notification {
103
- margin-top: 10px;
104
- margin-bottom: 10px;
105
- background-color: $blueGray-100;
106
- color: $blueGray-500;
107
- padding: 10px;
108
- }
109
-
110
- .double-state {
111
- &__state {
112
- font-weight: $fw-medium;
113
-
114
- .state-label {
115
- font-size: 12px;
116
- color: $text-500;
117
- margin-bottom: 2px;
118
- }
119
-
120
- .state-status {
121
- display: flex;
122
- align-items: center;
123
- gap: 5px;
124
-
125
- i {
126
- font-size: 9px;
127
- }
128
-
129
- &__text {
130
- color: $darkText;
131
- }
132
- }
133
- }
134
- }
135
-
136
- .triple-state {
137
- padding-top: 10px;
138
-
139
- &__state {
140
- font-weight: $fw-medium;
141
-
142
- .state-label {
143
- font-size: 12px;
144
- color: $text-500;
145
- margin-bottom: 2px;
146
- }
147
-
148
- .state-status {
149
- display: flex;
150
- align-items: center;
151
- gap: 5px;
152
-
153
- i {
154
- font-size: 9px;
155
- }
156
-
157
- &__text {
158
- color: $darkText;
159
- }
160
- }
161
- }
162
- }
163
-
164
- .tax-alert {
165
- gap: 7px;
166
- font-size: 12px;
167
- color: $text-500;
168
- margin-top: 15px;
169
- padding-top: 15px;
170
- border-top: 1px solid $truegray-300;
171
-
172
- i {
173
- font-size: 20px;
174
- color: $darkBlue-500;
175
- }
176
- }
177
- }
178
- }
179
-
180
- &.tp {
181
- &::after {
182
- content: '';
183
- position: absolute;
184
- background-color: $white;
185
-
186
- width: 16px;
187
- height: 16px;
188
- bottom: -8px;
189
- transform: rotate(-45deg);
190
- z-index: -1;
191
- }
192
-
193
- &--center {
194
- &::after {
195
- left: 47%;
196
- }
197
- }
198
-
199
- &--right {
200
- &::after {
201
- bottom: -4px;
202
- right: 20px;
203
- }
204
- }
205
-
206
- &--left {
207
- &::after {
208
- bottom: -4px;
209
- left: 20px;
210
- }
211
- }
212
-
213
- &--top-center {
214
- &::after {
215
- top: -10px;
216
- left: 47%;
217
- }
218
- }
219
-
220
- &--top-right {
221
- &::after {
222
- top: -4px;
223
- right: 20px;
224
- }
225
- }
226
-
227
- &--top-left {
228
- &::after {
229
- top: -4px;
230
- left: 20px;
231
- }
232
- }
233
- }
234
- }
235
- }