dgrcorrientes-modulos 1.0.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.
- package/.nvmrc +1 -0
- package/.prettierrc.cjs +8 -0
- package/.storybook/main.cjs +11 -0
- package/.storybook/manager-head.html +2 -0
- package/.storybook/manager.cjs +6 -0
- package/.storybook/preview-head.html +3 -0
- package/.storybook/preview.cjs +11 -0
- package/.storybook/themes.cjs +14 -0
- package/README.md +21 -0
- package/StoryBook.txt +19 -0
- package/dist-config.cjs +57 -0
- package/index.html +13 -0
- package/package.json +60 -0
- package/public/elevation.ico +0 -0
- package/public/elevationImage.png +0 -0
- package/public/vite.svg +1 -0
- package/src/App.scss +36 -0
- package/src/App.tsx +34 -0
- package/src/assets/react.svg +1 -0
- package/src/index.js +70 -0
- package/src/index.scss +63 -0
- package/src/index.ts +108 -0
- package/src/main.tsx +11 -0
- package/src/sass/base/_base.scss +50 -0
- package/src/sass/base/_controls.scss +90 -0
- package/src/sass/base/_datepicker.scss +114 -0
- package/src/sass/base/_typo.scss +71 -0
- package/src/sass/base/fonts/SFUIText-Bold.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-BoldItalic.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-Heavy.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-HeavyItalic.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-Light.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-LightItalic.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-Medium.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-MediumItalic.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-Regular.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-RegularItalic.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-Semibold.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-SemiboldItalic.ttf +0 -0
- package/src/sass/bulma/bulma-changes.scss +19 -0
- package/src/sass/bulma/extensions/extensions.sass +1 -0
- package/src/sass/bulma/extensions/steps/bulma-steps.sass +3 -0
- package/src/sass/bulma/extensions/steps/index.sass +421 -0
- package/src/sass/bulma/variables/_variables-bulma.sass +16 -0
- package/src/sass/bulma/variables/components/card.sass +20 -0
- package/src/sass/bulma/variables/components/navbar.sass +50 -0
- package/src/sass/bulma/variables/components/tabs.sass +28 -0
- package/src/sass/bulma/variables/elements/button.sass +46 -0
- package/src/sass/bulma/variables/elements/notification.sass +8 -0
- package/src/sass/bulma/variables/elements/title.sass +20 -0
- package/src/sass/bulma/variables/grid/column.sass +2 -0
- package/src/sass/main.sass +16 -0
- package/src/sass/utilities/_bulma-variables.sass +20 -0
- package/src/sass/utilities/_derived-variables.scss +68 -0
- package/src/sass/utilities/_helpers.scss +70 -0
- package/src/sass/utilities/_variables.scss +147 -0
- package/src/stories/Changelog.stories.tsx +73 -0
- package/src/stories/Components/AssistanceDiary/AssistanceDiary.scss +19 -0
- package/src/stories/Components/AssistanceDiary/AssistanceDiary.stories.tsx +25 -0
- package/src/stories/Components/AssistanceDiary/AssistanceDiary.tsx +57 -0
- package/src/stories/Components/AverageAttended/AverageAttended.scss +39 -0
- package/src/stories/Components/AverageAttended/AverageAttended.stories.tsx +71 -0
- package/src/stories/Components/AverageAttended/AverageAttended.tsx +311 -0
- package/src/stories/Components/Breadcrumb/Breadcrumb.stories.tsx +45 -0
- package/src/stories/Components/Breadcrumb/Breadcrumb.tsx +68 -0
- package/src/stories/Components/Breadcrumb/breadcrumb.scss +82 -0
- package/src/stories/Components/CTA/CTA.scss +76 -0
- package/src/stories/Components/CTA/CTA.stories.tsx +46 -0
- package/src/stories/Components/CTA/CTA.tsx +70 -0
- package/src/stories/Components/Cards/Card CTA/CardCta.stories.tsx +34 -0
- package/src/stories/Components/Cards/Card CTA/CardCta.tsx +81 -0
- package/src/stories/Components/Cards/Card CTA/cardCta.scss +71 -0
- package/src/stories/Components/Cards/Card Expiration/cardExpiration.scss +105 -0
- package/src/stories/Components/Cards/Card Expiration/cardExpiration.stories.tsx +40 -0
- package/src/stories/Components/Cards/Card Expiration/cardExpiration.tsx +95 -0
- package/src/stories/Components/Cards/Card Vertical/CardVertical.stories.tsx +43 -0
- package/src/stories/Components/Cards/Card Vertical/CardVertical.tsx +106 -0
- package/src/stories/Components/Cards/Card Vertical/cardVertical.scss +130 -0
- package/src/stories/Components/Cards/CardActivity/cardActivity.scss +31 -0
- package/src/stories/Components/Cards/CardActivity/cardActivity.stories.tsx +20 -0
- package/src/stories/Components/Cards/CardActivity/cardActivity.tsx +48 -0
- package/src/stories/Components/Cards/CardHorizontal/CardHorizontal.stories.tsx +96 -0
- package/src/stories/Components/Cards/CardHorizontal/CardHorizontal.tsx +94 -0
- package/src/stories/Components/Cards/CardHorizontal/cardHorizontal.scss +65 -0
- package/src/stories/Components/Cards/CardUser/CardUser.stories.tsx +135 -0
- package/src/stories/Components/Cards/CardUser/CardUser.tsx +122 -0
- package/src/stories/Components/Cards/CardUser/cardUser.scss +115 -0
- package/src/stories/Components/Cart/Cart.scss +279 -0
- package/src/stories/Components/Cart/Cart.stories.tsx +350 -0
- package/src/stories/Components/Cart/Cart.tsx +277 -0
- package/src/stories/Components/Collapse/Collapse.scss +339 -0
- package/src/stories/Components/Collapse/Collapse.stories.tsx +766 -0
- package/src/stories/Components/Collapse/Collapse.tsx +451 -0
- package/src/stories/Components/CollapseEdit/CollapseEdit.scss +128 -0
- package/src/stories/Components/CollapseEdit/CollapseEdit.stories.tsx +29 -0
- package/src/stories/Components/CollapseEdit/CollapseEdit.tsx +185 -0
- package/src/stories/Components/CompleteDiary/CompleteDiary.scss +165 -0
- package/src/stories/Components/CompleteDiary/CompleteDiary.stories.tsx +219 -0
- package/src/stories/Components/CompleteDiary/CompleteDiary.tsx +394 -0
- package/src/stories/Components/Dropdown/Dropdown.scss +60 -0
- package/src/stories/Components/Dropdown/Dropdown.stories.tsx +19 -0
- package/src/stories/Components/Dropdown/Dropdown.tsx +99 -0
- package/src/stories/Components/EmptyState/EmptyState.stories.tsx +46 -0
- package/src/stories/Components/EmptyState/EmptyState.tsx +44 -0
- package/src/stories/Components/EmptyState/emptyState.scss +75 -0
- package/src/stories/Components/ErrorPage/ErrorPage.scss +65 -0
- package/src/stories/Components/ErrorPage/ErrorPage.stories.tsx +164 -0
- package/src/stories/Components/ErrorPage/ErrorPage.tsx +107 -0
- package/src/stories/Components/IncomingCall/IncomingCall.scss +27 -0
- package/src/stories/Components/IncomingCall/IncomingCall.stories.tsx +43 -0
- package/src/stories/Components/IncomingCall/IncomingCall.tsx +76 -0
- package/src/stories/Components/ModalConfirm/ModalConfirm.scss +30 -0
- package/src/stories/Components/ModalConfirm/ModalConfirm.stories.tsx +21 -0
- package/src/stories/Components/ModalConfirm/ModalConfirm.tsx +118 -0
- package/src/stories/Components/Pagination/Pagination.scss +42 -0
- package/src/stories/Components/Pagination/Pagination.stories.tsx +25 -0
- package/src/stories/Components/Pagination/Pagination.tsx +143 -0
- package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.scss +26 -0
- package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.stories.tsx +27 -0
- package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.tsx +108 -0
- package/src/stories/Components/ShiftDiary/ShiftDiary.scss +45 -0
- package/src/stories/Components/ShiftDiary/ShiftDiary.stories.tsx +32 -0
- package/src/stories/Components/ShiftDiary/ShiftDiary.tsx +92 -0
- package/src/stories/Components/Stepper/Stepper.stories.tsx +26 -0
- package/src/stories/Components/Stepper/Stepper.tsx +102 -0
- package/src/stories/Components/Stepper/stepper.scss +59 -0
- package/src/stories/Components/Tabs/Tabs.stories.tsx +76 -0
- package/src/stories/Components/Tabs/Tabs.tsx +111 -0
- package/src/stories/Components/Tabs/tabs.scss +118 -0
- package/src/stories/Components/Tooltip/Tooltip.scss +235 -0
- package/src/stories/Components/Tooltip/Tooltip.stories.tsx +125 -0
- package/src/stories/Components/Tooltip/Tooltip.tsx +222 -0
- package/src/stories/Elements/Alert/Alert.stories.tsx +65 -0
- package/src/stories/Elements/Alert/Alert.tsx +49 -0
- package/src/stories/Elements/Alert/alert.scss +189 -0
- package/src/stories/Elements/Badge/Badge.stories.tsx +15 -0
- package/src/stories/Elements/Badge/Badge.tsx +21 -0
- package/src/stories/Elements/Badge/badge.scss +24 -0
- package/src/stories/Elements/Button/Button.stories.tsx +54 -0
- package/src/stories/Elements/Button/Button.tsx +118 -0
- package/src/stories/Elements/Button/button.scss +102 -0
- package/src/stories/Elements/Icon/Icon.stories.tsx +33 -0
- package/src/stories/Elements/Icon/Icon.tsx +57 -0
- package/src/stories/Elements/Icon/icon.scss +15 -0
- package/src/stories/Elements/Icon/icono.svg +1 -0
- package/src/stories/Elements/ProgressBar/ProgressBar.scss +26 -0
- package/src/stories/Elements/ProgressBar/ProgressBar.stories.tsx +19 -0
- package/src/stories/Elements/ProgressBar/ProgressBar.tsx +35 -0
- package/src/stories/Form/Autocomplete/Autocomplete.stories.tsx +55 -0
- package/src/stories/Form/Autocomplete/Autocomplete.tsx +160 -0
- package/src/stories/Form/Autocomplete/autocomplete.scss +311 -0
- package/src/stories/Form/Autocomplete-Prueba/Autocomplete.stories.tsx +50 -0
- package/src/stories/Form/Autocomplete-Prueba/AutocompletePrueba.tsx +83 -0
- package/src/stories/Form/Checkbox/Checkbox.stories.tsx +26 -0
- package/src/stories/Form/Checkbox/Checkbox.tsx +89 -0
- package/src/stories/Form/Checkbox/checkbox.scss +41 -0
- package/src/stories/Form/DatePicker/DatePickerExample.stories.tsx +27 -0
- package/src/stories/Form/DatePicker/DatePickerExample.tsx +65 -0
- package/src/stories/Form/DatePickerComponent/DatePickerComponent.scss +116 -0
- package/src/stories/Form/DatePickerComponent/DatePickerComponent.stories.tsx +37 -0
- package/src/stories/Form/DatePickerComponent/DatePickerComponent.tsx +97 -0
- package/src/stories/Form/Filters/Filters.stories.tsx +84 -0
- package/src/stories/Form/Filters/Filters.tsx +230 -0
- package/src/stories/Form/Filters/filters.scss +261 -0
- package/src/stories/Form/Input/Input.stories.tsx +25 -0
- package/src/stories/Form/Input/Input.tsx +86 -0
- package/src/stories/Form/Input/InputVar.sass +26 -0
- package/src/stories/Form/Input/input.scss +19 -0
- package/src/stories/Form/InputFormControl/Input-form-control.stories.tsx +26 -0
- package/src/stories/Form/InputFormControl/Input-form-control.tsx +48 -0
- package/src/stories/Form/InputFormControl/input-form-control.scss +34 -0
- package/src/stories/Form/Radio/Radio.stories.tsx +19 -0
- package/src/stories/Form/Radio/Radio.tsx +84 -0
- package/src/stories/Form/Radio/radio.scss +19 -0
- package/src/stories/Form/Search/Search.scss +50 -0
- package/src/stories/Form/Search/Search.stories.tsx +26 -0
- package/src/stories/Form/Search/Search.tsx +84 -0
- package/src/stories/Form/Select/Select.stories.tsx +55 -0
- package/src/stories/Form/Select/Select.tsx +121 -0
- package/src/stories/Form/Select/select.scss +303 -0
- package/src/stories/Form/Switch/Switch.stories.tsx +17 -0
- package/src/stories/Form/Switch/Switch.tsx +36 -0
- package/src/stories/Form/Switch/switch.scss +123 -0
- package/src/stories/Form/Textarea/Textarea.stories.tsx +19 -0
- package/src/stories/Form/Textarea/Textarea.tsx +52 -0
- package/src/stories/Form/Textarea/textarea.scss +25 -0
- package/src/stories/Form/UploadFileItem/UploadFileItem.scss +49 -0
- package/src/stories/Form/UploadFileItem/UploadFileItem.stories.tsx +18 -0
- package/src/stories/Form/UploadFileItem/UploadFileItem.tsx +89 -0
- package/src/stories/Form/UploadFiles/UploadFiles.scss +17 -0
- package/src/stories/Form/UploadFiles/UploadFiles.stories.tsx +32 -0
- package/src/stories/Form/UploadFiles/UploadFiles.tsx +177 -0
- package/src/stories/Layout/Footer/Footer.scss +129 -0
- package/src/stories/Layout/Footer/Footer.stories.tsx +101 -0
- package/src/stories/Layout/Footer/Footer.tsx +81 -0
- package/src/stories/Layout/Header/Header.scss +190 -0
- package/src/stories/Layout/Header/Header.stories.tsx +223 -0
- package/src/stories/Layout/Header/Header.tsx +278 -0
- package/src/stories/Layout/HeaderTable/HeaderTable.scss +21 -0
- package/src/stories/Layout/HeaderTable/HeaderTable.stories.tsx +112 -0
- package/src/stories/Layout/HeaderTable/HeaderTable.tsx +72 -0
- package/src/stories/Layout/Sidebar/Sidebar.scss +50 -0
- package/src/stories/Layout/Sidebar/Sidebar.stories.tsx +744 -0
- package/src/stories/Layout/Sidebar/Sidebar.tsx +129 -0
- package/src/stories/Layout/SidebarEmpty/SidebarEmpty.scss +64 -0
- package/src/stories/Layout/SidebarEmpty/SidebarEmpty.stories.tsx +26 -0
- package/src/stories/Layout/SidebarEmpty/SidebarEmpty.tsx +100 -0
- package/src/stories/Layout/Subtitle/Subtitle.scss +88 -0
- package/src/stories/Layout/Subtitle/Subtitle.stories.tsx +46 -0
- package/src/stories/Layout/Subtitle/Subtitle.tsx +108 -0
- package/src/stories/Layout/Title/Title.scss +79 -0
- package/src/stories/Layout/Title/Title.stories.tsx +86 -0
- package/src/stories/Layout/Title/Title.tsx +96 -0
- package/src/stories/Welcome.stories.tsx +111 -0
- package/src/stories/assets/404 Page Not Found _Two Color (1).png +0 -0
- package/src/stories/assets/404 Page Not Found _Two Color.png +0 -0
- package/src/stories/assets/Empty Inbox _Two Color.png +0 -0
- package/src/stories/assets/Loading _Two Color.png +0 -0
- package/src/stories/assets/Notifications_Two Color 1.png +0 -0
- package/src/stories/assets/Online protection_Two Color.png +0 -0
- package/src/stories/assets/Under Constructions _Two Color.png +0 -0
- package/src/stories/assets/bulma.png +0 -0
- package/src/stories/assets/burger.svg +5 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/decor-bg.png +0 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/e-isologo.svg +4 -0
- package/src/stories/assets/e-isotype.svg +4 -0
- package/src/stories/assets/e-logo_negative.svg +14 -0
- package/src/stories/assets/e-logotype.svg +14 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/logo_gobierno_corrientes.svg +9 -0
- package/src/stories/assets/logo_rentas_corrientes.svg +10 -0
- package/src/stories/assets/logo_rentas_corrientes_compacto.svg +10 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/stories/assets/storybook.svg +13 -0
- package/src/stories/assets/thumbnail-black.jpg +0 -0
- package/src/stories/assets/thumbnail-black[2].jpg +0 -0
- package/src/stories/assets/thumbnail.jpg +0 -0
- package/src/stories/assets/thumbnail[2].jpg +0 -0
- package/src/stories/changelog.ts +389 -0
- package/src/utils/functions.ts +57 -0
- package/src/vite-env.d.ts +2 -0
- package/static/e-isologo-192.jpg +0 -0
- package/static/e-isologo.svg +4 -0
- package/static/e-logotype.svg +14 -0
- package/static/favicon.ico +0 -0
- package/tsconfig.json +22 -0
- package/tsconfig.node.json +9 -0
- package/vite.config.ts +22 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
@import '/src/sass/utilities/variables';
|
|
2
|
+
|
|
3
|
+
.card-vertical {
|
|
4
|
+
min-width: 150px;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
border-radius: 16px;
|
|
8
|
+
gap: 16px;
|
|
9
|
+
background-color: $white;
|
|
10
|
+
|
|
11
|
+
.card-header {
|
|
12
|
+
.card__img {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
17
|
+
border-radius: 16px;
|
|
18
|
+
width: 100%;
|
|
19
|
+
position: relative;
|
|
20
|
+
|
|
21
|
+
img {
|
|
22
|
+
border-radius: 16px 16px 0px 0px;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
object-fit: cover;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.elv-badge {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 10px;
|
|
31
|
+
right: 10px;
|
|
32
|
+
border-radius: 10px;
|
|
33
|
+
padding-left: 10px;
|
|
34
|
+
padding-right: 10px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.card__avatar {
|
|
39
|
+
width: 40px;
|
|
40
|
+
height: 40px;
|
|
41
|
+
padding: 9px 16px 0px;
|
|
42
|
+
|
|
43
|
+
img {
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
object-fit: cover;
|
|
47
|
+
border-radius: 16px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.card__icon {
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: flex-start;
|
|
54
|
+
padding: 9px 16px 0px;
|
|
55
|
+
|
|
56
|
+
.icon {
|
|
57
|
+
width: 40px;
|
|
58
|
+
height: 40px;
|
|
59
|
+
background-color: $muted-200;
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
|
|
64
|
+
span {
|
|
65
|
+
display: flex;
|
|
66
|
+
|
|
67
|
+
svg {
|
|
68
|
+
width: 15px;
|
|
69
|
+
fill: $text-800;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.card-body {
|
|
77
|
+
padding: 0px 8px;
|
|
78
|
+
|
|
79
|
+
.card__title {
|
|
80
|
+
margin-bottom: 20px;
|
|
81
|
+
padding: 10px 16px 0px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.card__date {
|
|
85
|
+
display: flex;
|
|
86
|
+
justify-content: flex-start;
|
|
87
|
+
padding: 10px 16px 10px 10px;
|
|
88
|
+
align-items: center;
|
|
89
|
+
|
|
90
|
+
.icon {
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
color: $text-400;
|
|
93
|
+
margin: 0px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.date {
|
|
97
|
+
font-weight: $fw-regular;
|
|
98
|
+
font-size: 12px;
|
|
99
|
+
line-height: 16px;
|
|
100
|
+
color: $text-400;
|
|
101
|
+
padding-left: 4px;
|
|
102
|
+
max-width: 100%;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.card__description {
|
|
107
|
+
padding: 0px 16px 0px;
|
|
108
|
+
|
|
109
|
+
p {
|
|
110
|
+
font-weight: 400;
|
|
111
|
+
font-size: 16px;
|
|
112
|
+
line-height: 22px;
|
|
113
|
+
color: $text-900;
|
|
114
|
+
margin: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.card-footer {
|
|
120
|
+
.card__button {
|
|
121
|
+
padding: 0px 16px 16px;
|
|
122
|
+
|
|
123
|
+
.button {
|
|
124
|
+
width: 100%;
|
|
125
|
+
font-weight: $fw-semibold;
|
|
126
|
+
text-align: center;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@import '/src/sass/utilities/variables';
|
|
2
|
+
|
|
3
|
+
.card-activity {
|
|
4
|
+
padding: 16px;
|
|
5
|
+
background-color: $white;
|
|
6
|
+
gap: 5px;
|
|
7
|
+
|
|
8
|
+
&__title {
|
|
9
|
+
font-weight: $fw-regular;
|
|
10
|
+
font-size: 12px;
|
|
11
|
+
line-height: 21px;
|
|
12
|
+
margin: 0px;
|
|
13
|
+
color: $text-600;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__description {
|
|
17
|
+
font-weight: $fw-semibold;
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
line-height: 21px;
|
|
20
|
+
margin: 0px;
|
|
21
|
+
color: $text-900;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__secondaryDescription {
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
line-height: 21px;
|
|
28
|
+
margin: 0px;
|
|
29
|
+
color: #8b5cf6;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {ComponentStory, ComponentMeta} from '@storybook/react';
|
|
2
|
+
import {CardActivity} from './cardActivity';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/Cards/CardActivity',
|
|
6
|
+
component: CardActivity,
|
|
7
|
+
args: {
|
|
8
|
+
fill: 'default',
|
|
9
|
+
title: '00990000',
|
|
10
|
+
description: 'Servicios de organizaciones y órganos extraterritoriales',
|
|
11
|
+
secondaryDescription: 'Alic. 1.5',
|
|
12
|
+
},
|
|
13
|
+
} as ComponentMeta<typeof CardActivity>;
|
|
14
|
+
|
|
15
|
+
const Template: ComponentStory<typeof CardActivity> = args => <CardActivity {...args} />;
|
|
16
|
+
|
|
17
|
+
export const Standard = Template.bind({});
|
|
18
|
+
Standard.args = {
|
|
19
|
+
fill: 'default',
|
|
20
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import './cardActivity.scss';
|
|
2
|
+
|
|
3
|
+
export interface CardActivityProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
|
+
// base
|
|
5
|
+
fill?: 'default';
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
secondaryDescription?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
|
|
11
|
+
// boolean
|
|
12
|
+
isClickable?: boolean;
|
|
13
|
+
|
|
14
|
+
// events
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const CardActivity = ({
|
|
19
|
+
fill,
|
|
20
|
+
className,
|
|
21
|
+
title,
|
|
22
|
+
description,
|
|
23
|
+
secondaryDescription,
|
|
24
|
+
isClickable,
|
|
25
|
+
onClick,
|
|
26
|
+
...props
|
|
27
|
+
}: CardActivityProps) => {
|
|
28
|
+
return (
|
|
29
|
+
<div className={`elv-component elv-card`} {...props}>
|
|
30
|
+
<div
|
|
31
|
+
className={[
|
|
32
|
+
'card-activity is-flex is-flex-direction-column',
|
|
33
|
+
`${isClickable ? ' is-clickable' : ''}`,
|
|
34
|
+
` ${className ? className : ''}`,
|
|
35
|
+
].join('')}
|
|
36
|
+
onClick={() => {
|
|
37
|
+
if (isClickable && onClick) {
|
|
38
|
+
onClick();
|
|
39
|
+
}
|
|
40
|
+
}}
|
|
41
|
+
>
|
|
42
|
+
<p className="card-activity__title">{title}</p>
|
|
43
|
+
<p className="card-activity__description">{description}</p>
|
|
44
|
+
<p className="card-activity__secondaryDescription">{secondaryDescription}</p>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
48
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {ComponentStory, ComponentMeta} from '@storybook/react';
|
|
2
|
+
import {CardHorizontal} from './CardHorizontal';
|
|
3
|
+
import icono from '/src/stories/Elements/Icon/icono.svg';
|
|
4
|
+
import image2 from '../../../assets/e-isotype.svg';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Components/Cards/CardHorizontal',
|
|
8
|
+
component: CardHorizontal,
|
|
9
|
+
args: {
|
|
10
|
+
trailingIcon: false,
|
|
11
|
+
title: 'Clave de Acceso Virtual',
|
|
12
|
+
subtitle: '54 DDJJ incumplidas',
|
|
13
|
+
menu: false,
|
|
14
|
+
menuButton: {icon: 'fa-solid fa-ellipsis-vertical', fill: 'unstyled'},
|
|
15
|
+
button: {
|
|
16
|
+
type: 'button',
|
|
17
|
+
fill: 'link',
|
|
18
|
+
icon: icono,
|
|
19
|
+
icon_type: 'svg_icon',
|
|
20
|
+
icon_className: 'has-tc-primary-600',
|
|
21
|
+
label: 'Ver detalle',
|
|
22
|
+
trailingIcon: true,
|
|
23
|
+
onClick: () => console.log('Button Clicked'),
|
|
24
|
+
},
|
|
25
|
+
buttonsArray: false,
|
|
26
|
+
buttons: [
|
|
27
|
+
{
|
|
28
|
+
type: 'button',
|
|
29
|
+
fill: 'link',
|
|
30
|
+
loading: false,
|
|
31
|
+
disabled: false,
|
|
32
|
+
icon: 'fa fa-house',
|
|
33
|
+
label: 'Información general',
|
|
34
|
+
trailingIcon: true,
|
|
35
|
+
onClick: () => console.log('Button Clicked'),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: 'button',
|
|
39
|
+
fill: 'link',
|
|
40
|
+
loading: false,
|
|
41
|
+
disabled: false,
|
|
42
|
+
icon: 'fa fa-house',
|
|
43
|
+
label: 'Información general',
|
|
44
|
+
trailingIcon: true,
|
|
45
|
+
onClick: () => console.log('Button Clicked'),
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: 'button',
|
|
49
|
+
fill: 'link',
|
|
50
|
+
loading: false,
|
|
51
|
+
disabled: false,
|
|
52
|
+
icon: 'fa fa-house',
|
|
53
|
+
label: 'Información general',
|
|
54
|
+
trailingIcon: true,
|
|
55
|
+
onClick: () => console.log('Button Clicked'),
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
} as ComponentMeta<typeof CardHorizontal>;
|
|
60
|
+
|
|
61
|
+
const Template: ComponentStory<typeof CardHorizontal> = args => <CardHorizontal {...args} />;
|
|
62
|
+
|
|
63
|
+
export const Standard = Template.bind({});
|
|
64
|
+
Standard.args = {
|
|
65
|
+
iconLeft: true,
|
|
66
|
+
icon: [
|
|
67
|
+
{
|
|
68
|
+
icon: 'fa fa-home',
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export const Example1_IconSVG = Template.bind({});
|
|
74
|
+
Example1_IconSVG.args = {
|
|
75
|
+
iconLeft: true,
|
|
76
|
+
icon: [
|
|
77
|
+
{
|
|
78
|
+
icon: icono,
|
|
79
|
+
type: 'svg_icon',
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
isClickable: true,
|
|
83
|
+
onClick() {
|
|
84
|
+
console.log('Card Horizontal Click');
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const Example2_IconImage = Template.bind({});
|
|
89
|
+
Example2_IconImage.args = {
|
|
90
|
+
iconLeft: true,
|
|
91
|
+
image: image2,
|
|
92
|
+
isClickable: true,
|
|
93
|
+
onClick() {
|
|
94
|
+
console.log('Card Horizontal Click');
|
|
95
|
+
},
|
|
96
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import './cardHorizontal.scss';
|
|
2
|
+
import {Button, IButton} from '../../../Elements/Button/Button';
|
|
3
|
+
import {Icon, IIcon} from '../../../Elements/Icon/Icon';
|
|
4
|
+
import {generateRandomKey} from '../../../../utils/functions';
|
|
5
|
+
|
|
6
|
+
export interface ICardHorizontal extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
7
|
+
// base
|
|
8
|
+
icon?: IIcon[];
|
|
9
|
+
image?: any;
|
|
10
|
+
title?: string;
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
menuButton?: IButton;
|
|
13
|
+
button?: IButton;
|
|
14
|
+
buttons?: IButton[];
|
|
15
|
+
|
|
16
|
+
// boolean
|
|
17
|
+
iconLeft?: boolean;
|
|
18
|
+
trailingIcon?: boolean;
|
|
19
|
+
menu?: boolean;
|
|
20
|
+
isClickable?: boolean;
|
|
21
|
+
isBorderless?: boolean;
|
|
22
|
+
|
|
23
|
+
// events
|
|
24
|
+
onClick?: () => void;
|
|
25
|
+
|
|
26
|
+
// react
|
|
27
|
+
buttonsArray?: boolean;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const CardHorizontal = ({
|
|
32
|
+
iconLeft,
|
|
33
|
+
icon,
|
|
34
|
+
image,
|
|
35
|
+
trailingIcon,
|
|
36
|
+
title,
|
|
37
|
+
subtitle,
|
|
38
|
+
menu,
|
|
39
|
+
menuButton,
|
|
40
|
+
button,
|
|
41
|
+
buttonsArray,
|
|
42
|
+
buttons,
|
|
43
|
+
className,
|
|
44
|
+
isClickable,
|
|
45
|
+
isBorderless,
|
|
46
|
+
onClick,
|
|
47
|
+
...props
|
|
48
|
+
}: ICardHorizontal) => {
|
|
49
|
+
return (
|
|
50
|
+
<div className="elv-component elv-card" {...props}>
|
|
51
|
+
<div
|
|
52
|
+
className={[
|
|
53
|
+
'card-horizontal',
|
|
54
|
+
`${className ? ' ' + className : ''}`,
|
|
55
|
+
`${isClickable ? ' is-clickable' : ''}`,
|
|
56
|
+
`${isBorderless ? ' is-shadowless' : ' card-box'}`,
|
|
57
|
+
].join('')}
|
|
58
|
+
onClick={() => {
|
|
59
|
+
if (isClickable && onClick) {
|
|
60
|
+
onClick();
|
|
61
|
+
}
|
|
62
|
+
}}
|
|
63
|
+
>
|
|
64
|
+
<div className={[`card-header pb-0 `, `${icon || image ? `icon--${trailingIcon ? 'trailing' : 'leading'}` : ''}`, ,].join(' ')}>
|
|
65
|
+
{iconLeft && (icon || image) ? (
|
|
66
|
+
<div className="card__icon">{icon ? <Icon {...icon[0]} /> : image ? <img src={image} alt="Card-Image" /> : null}</div>
|
|
67
|
+
) : (
|
|
68
|
+
<></>
|
|
69
|
+
)}
|
|
70
|
+
|
|
71
|
+
<div className="card__text">
|
|
72
|
+
<p className="title is-6 mb-1">{title}</p>
|
|
73
|
+
<p className="is-size-14px has-tc-truegray-500">{subtitle}</p>
|
|
74
|
+
</div>
|
|
75
|
+
{menu && (
|
|
76
|
+
<div className="card__menu ml-auto">
|
|
77
|
+
<Button {...menuButton} />
|
|
78
|
+
</div>
|
|
79
|
+
)}
|
|
80
|
+
</div>
|
|
81
|
+
<div className="card-body px-4 pb-4 pt-0">
|
|
82
|
+
{button && <Button {...button} />}
|
|
83
|
+
{buttonsArray && (
|
|
84
|
+
<div>
|
|
85
|
+
{buttons?.map((item, index) => (
|
|
86
|
+
<Button key={generateRandomKey()} {...item} />
|
|
87
|
+
))}
|
|
88
|
+
</div>
|
|
89
|
+
)}
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
);
|
|
94
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@import '/src/sass/utilities/variables';
|
|
2
|
+
|
|
3
|
+
.card-horizontal {
|
|
4
|
+
min-width: 150px;
|
|
5
|
+
border-radius: 16px;
|
|
6
|
+
gap: 16px;
|
|
7
|
+
display: flex;
|
|
8
|
+
background-color: $white;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
|
|
11
|
+
.card-header {
|
|
12
|
+
display: flex;
|
|
13
|
+
padding: 16px;
|
|
14
|
+
|
|
15
|
+
.card__icon {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
min-width: 40px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.icon--trailing {
|
|
24
|
+
flex-direction: row-reverse;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.icon--leading .card__icon {
|
|
29
|
+
margin-right: 16px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.icon--trailing .card__icon {
|
|
33
|
+
margin-left: 16px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.card__icon {
|
|
37
|
+
width: 40px;
|
|
38
|
+
height: 40px;
|
|
39
|
+
background-color: $muted-200;
|
|
40
|
+
border-radius: 16px;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
|
|
45
|
+
.icon {
|
|
46
|
+
display: flex;
|
|
47
|
+
|
|
48
|
+
svg {
|
|
49
|
+
width: 15px;
|
|
50
|
+
fill: $text-800;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.card__text {
|
|
56
|
+
width: 212px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.card-body {
|
|
61
|
+
.button__icon {
|
|
62
|
+
font-size: 12px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import {ComponentStory, ComponentMeta} from '@storybook/react';
|
|
2
|
+
import {CardUser} from './CardUser';
|
|
3
|
+
import imglogo from '../../../assets/logo_rentas_corrientes_compacto.svg';
|
|
4
|
+
import icon from '../../../Elements/Icon/icono.svg';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Components/Cards/CardUser',
|
|
8
|
+
component: CardUser,
|
|
9
|
+
args: {
|
|
10
|
+
fill: 'outline',
|
|
11
|
+
list: [
|
|
12
|
+
{
|
|
13
|
+
icon: {icon: 'fa-solid fa-user'},
|
|
14
|
+
title: 'Juan Antonio Pérez',
|
|
15
|
+
subtitle: '20-20215992-8',
|
|
16
|
+
iconType: 'icon',
|
|
17
|
+
menuButton: {
|
|
18
|
+
size: 'large',
|
|
19
|
+
fill: 'unstyled',
|
|
20
|
+
icon: 'fa-solid fa-ellipsis-vertical',
|
|
21
|
+
type: 'button',
|
|
22
|
+
onClick: () => console.log('Button Clicked'),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
icon: {icon: icon, type: 'svg_icon'},
|
|
27
|
+
title: 'Actividad',
|
|
28
|
+
subtitle: '54 DDJJ incumplidas',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
img: imglogo,
|
|
32
|
+
title: 'Info extra',
|
|
33
|
+
subtitle: '54 DDJJ incumplidas',
|
|
34
|
+
iconType: 'img',
|
|
35
|
+
button: [
|
|
36
|
+
{
|
|
37
|
+
label: 'Cambiar',
|
|
38
|
+
size: 'small',
|
|
39
|
+
fill: 'link',
|
|
40
|
+
icon: 'fa-solid fa-circle-info',
|
|
41
|
+
type: 'button',
|
|
42
|
+
onClick: () => console.log('Button Clicked'),
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
img: imglogo,
|
|
48
|
+
title: 'Periodo',
|
|
49
|
+
subtitle: '24/12/2022',
|
|
50
|
+
iconType: 'img',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
} as ComponentMeta<typeof CardUser>;
|
|
55
|
+
|
|
56
|
+
const Template: ComponentStory<typeof CardUser> = args => <CardUser {...args} />;
|
|
57
|
+
|
|
58
|
+
export const Standard = Template.bind({});
|
|
59
|
+
Standard.args = {
|
|
60
|
+
fill: 'none',
|
|
61
|
+
button: [
|
|
62
|
+
{
|
|
63
|
+
label: 'Button',
|
|
64
|
+
color: 'primary',
|
|
65
|
+
fill: 'solid',
|
|
66
|
+
loading: false,
|
|
67
|
+
disabled: false,
|
|
68
|
+
type: 'button',
|
|
69
|
+
onClick: () => console.log('Button Clicked'),
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
badge: [
|
|
73
|
+
{
|
|
74
|
+
color: 'primary',
|
|
75
|
+
text: 'Inscripción',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
color: 'secondary',
|
|
79
|
+
text: 'En convenio',
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export const Outline = Template.bind({});
|
|
85
|
+
Outline.args = {
|
|
86
|
+
fill: 'outline',
|
|
87
|
+
button: [
|
|
88
|
+
{
|
|
89
|
+
label: 'Button',
|
|
90
|
+
color: 'primary',
|
|
91
|
+
fill: 'solid',
|
|
92
|
+
loading: false,
|
|
93
|
+
disabled: false,
|
|
94
|
+
type: 'button',
|
|
95
|
+
onClick: () => console.log('Button Clicked'),
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
badge: [
|
|
99
|
+
{
|
|
100
|
+
color: 'primary',
|
|
101
|
+
text: 'Inscripción',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
color: 'secondary',
|
|
105
|
+
text: 'En convenio',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export const Example1 = Template.bind({});
|
|
111
|
+
Example1.args = {
|
|
112
|
+
fill: 'outline',
|
|
113
|
+
badge: [
|
|
114
|
+
{
|
|
115
|
+
color: 'primary',
|
|
116
|
+
text: 'Inscripción',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
color: 'secondary',
|
|
120
|
+
text: 'En convenio',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
color: 'secondary',
|
|
124
|
+
text: 'En convenio',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
color: 'secondary',
|
|
128
|
+
text: 'En convenio',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
color: 'secondary',
|
|
132
|
+
text: 'En convenio',
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
};
|