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.
- package/README.md +12 -21
- package/components.js +31576 -0
- package/components.umd.cjs +311 -0
- package/index.d.ts +1 -0
- package/package.json +1 -60
- package/style.css +5 -0
- package/.nvmrc +0 -1
- package/.prettierrc.cjs +0 -8
- package/.storybook/main.cjs +0 -11
- package/.storybook/manager-head.html +0 -2
- package/.storybook/manager.cjs +0 -6
- package/.storybook/preview-head.html +0 -3
- package/.storybook/preview.cjs +0 -11
- package/.storybook/themes.cjs +0 -14
- package/StoryBook.txt +0 -19
- package/dist-config.cjs +0 -57
- package/index.html +0 -13
- package/src/App.scss +0 -36
- package/src/App.tsx +0 -34
- package/src/assets/react.svg +0 -1
- package/src/index.js +0 -70
- package/src/index.scss +0 -63
- package/src/index.ts +0 -108
- package/src/main.tsx +0 -11
- package/src/sass/base/_base.scss +0 -50
- package/src/sass/base/_controls.scss +0 -90
- package/src/sass/base/_datepicker.scss +0 -114
- package/src/sass/base/_typo.scss +0 -71
- 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 +0 -19
- package/src/sass/bulma/extensions/extensions.sass +0 -1
- package/src/sass/bulma/extensions/steps/bulma-steps.sass +0 -3
- package/src/sass/bulma/extensions/steps/index.sass +0 -421
- package/src/sass/bulma/variables/_variables-bulma.sass +0 -16
- package/src/sass/bulma/variables/components/card.sass +0 -20
- package/src/sass/bulma/variables/components/navbar.sass +0 -50
- package/src/sass/bulma/variables/components/tabs.sass +0 -28
- package/src/sass/bulma/variables/elements/button.sass +0 -46
- package/src/sass/bulma/variables/elements/notification.sass +0 -8
- package/src/sass/bulma/variables/elements/title.sass +0 -20
- package/src/sass/bulma/variables/grid/column.sass +0 -2
- package/src/sass/main.sass +0 -16
- package/src/sass/utilities/_bulma-variables.sass +0 -20
- package/src/sass/utilities/_derived-variables.scss +0 -68
- package/src/sass/utilities/_helpers.scss +0 -70
- package/src/sass/utilities/_variables.scss +0 -147
- package/src/stories/Changelog.stories.tsx +0 -73
- package/src/stories/Components/AssistanceDiary/AssistanceDiary.scss +0 -19
- package/src/stories/Components/AssistanceDiary/AssistanceDiary.stories.tsx +0 -25
- package/src/stories/Components/AssistanceDiary/AssistanceDiary.tsx +0 -57
- package/src/stories/Components/AverageAttended/AverageAttended.scss +0 -39
- package/src/stories/Components/AverageAttended/AverageAttended.stories.tsx +0 -71
- package/src/stories/Components/AverageAttended/AverageAttended.tsx +0 -311
- package/src/stories/Components/Breadcrumb/Breadcrumb.stories.tsx +0 -45
- package/src/stories/Components/Breadcrumb/Breadcrumb.tsx +0 -68
- package/src/stories/Components/Breadcrumb/breadcrumb.scss +0 -82
- package/src/stories/Components/CTA/CTA.scss +0 -76
- package/src/stories/Components/CTA/CTA.stories.tsx +0 -46
- package/src/stories/Components/CTA/CTA.tsx +0 -70
- package/src/stories/Components/Cards/Card CTA/CardCta.stories.tsx +0 -34
- package/src/stories/Components/Cards/Card CTA/CardCta.tsx +0 -81
- package/src/stories/Components/Cards/Card CTA/cardCta.scss +0 -71
- package/src/stories/Components/Cards/Card Expiration/cardExpiration.scss +0 -105
- package/src/stories/Components/Cards/Card Expiration/cardExpiration.stories.tsx +0 -40
- package/src/stories/Components/Cards/Card Expiration/cardExpiration.tsx +0 -95
- package/src/stories/Components/Cards/Card Vertical/CardVertical.stories.tsx +0 -43
- package/src/stories/Components/Cards/Card Vertical/CardVertical.tsx +0 -106
- package/src/stories/Components/Cards/Card Vertical/cardVertical.scss +0 -130
- package/src/stories/Components/Cards/CardActivity/cardActivity.scss +0 -31
- package/src/stories/Components/Cards/CardActivity/cardActivity.stories.tsx +0 -20
- package/src/stories/Components/Cards/CardActivity/cardActivity.tsx +0 -48
- package/src/stories/Components/Cards/CardHorizontal/CardHorizontal.stories.tsx +0 -96
- package/src/stories/Components/Cards/CardHorizontal/CardHorizontal.tsx +0 -94
- package/src/stories/Components/Cards/CardHorizontal/cardHorizontal.scss +0 -65
- package/src/stories/Components/Cards/CardUser/CardUser.stories.tsx +0 -135
- package/src/stories/Components/Cards/CardUser/CardUser.tsx +0 -122
- package/src/stories/Components/Cards/CardUser/cardUser.scss +0 -115
- package/src/stories/Components/Cart/Cart.scss +0 -279
- package/src/stories/Components/Cart/Cart.stories.tsx +0 -350
- package/src/stories/Components/Cart/Cart.tsx +0 -277
- package/src/stories/Components/Collapse/Collapse.scss +0 -339
- package/src/stories/Components/Collapse/Collapse.stories.tsx +0 -766
- package/src/stories/Components/Collapse/Collapse.tsx +0 -451
- package/src/stories/Components/CollapseEdit/CollapseEdit.scss +0 -128
- package/src/stories/Components/CollapseEdit/CollapseEdit.stories.tsx +0 -29
- package/src/stories/Components/CollapseEdit/CollapseEdit.tsx +0 -185
- package/src/stories/Components/CompleteDiary/CompleteDiary.scss +0 -165
- package/src/stories/Components/CompleteDiary/CompleteDiary.stories.tsx +0 -219
- package/src/stories/Components/CompleteDiary/CompleteDiary.tsx +0 -394
- package/src/stories/Components/Dropdown/Dropdown.scss +0 -60
- package/src/stories/Components/Dropdown/Dropdown.stories.tsx +0 -19
- package/src/stories/Components/Dropdown/Dropdown.tsx +0 -99
- package/src/stories/Components/EmptyState/EmptyState.stories.tsx +0 -46
- package/src/stories/Components/EmptyState/EmptyState.tsx +0 -44
- package/src/stories/Components/EmptyState/emptyState.scss +0 -75
- package/src/stories/Components/ErrorPage/ErrorPage.scss +0 -65
- package/src/stories/Components/ErrorPage/ErrorPage.stories.tsx +0 -164
- package/src/stories/Components/ErrorPage/ErrorPage.tsx +0 -107
- package/src/stories/Components/IncomingCall/IncomingCall.scss +0 -27
- package/src/stories/Components/IncomingCall/IncomingCall.stories.tsx +0 -43
- package/src/stories/Components/IncomingCall/IncomingCall.tsx +0 -76
- package/src/stories/Components/ModalConfirm/ModalConfirm.scss +0 -30
- package/src/stories/Components/ModalConfirm/ModalConfirm.stories.tsx +0 -21
- package/src/stories/Components/ModalConfirm/ModalConfirm.tsx +0 -118
- package/src/stories/Components/Pagination/Pagination.scss +0 -42
- package/src/stories/Components/Pagination/Pagination.stories.tsx +0 -25
- package/src/stories/Components/Pagination/Pagination.tsx +0 -143
- package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.scss +0 -26
- package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.stories.tsx +0 -27
- package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.tsx +0 -108
- package/src/stories/Components/ShiftDiary/ShiftDiary.scss +0 -45
- package/src/stories/Components/ShiftDiary/ShiftDiary.stories.tsx +0 -32
- package/src/stories/Components/ShiftDiary/ShiftDiary.tsx +0 -92
- package/src/stories/Components/Stepper/Stepper.stories.tsx +0 -26
- package/src/stories/Components/Stepper/Stepper.tsx +0 -102
- package/src/stories/Components/Stepper/stepper.scss +0 -59
- package/src/stories/Components/Tabs/Tabs.stories.tsx +0 -76
- package/src/stories/Components/Tabs/Tabs.tsx +0 -111
- package/src/stories/Components/Tabs/tabs.scss +0 -118
- package/src/stories/Components/Tooltip/Tooltip.scss +0 -235
- package/src/stories/Components/Tooltip/Tooltip.stories.tsx +0 -125
- package/src/stories/Components/Tooltip/Tooltip.tsx +0 -222
- package/src/stories/Elements/Alert/Alert.stories.tsx +0 -65
- package/src/stories/Elements/Alert/Alert.tsx +0 -49
- package/src/stories/Elements/Alert/alert.scss +0 -189
- package/src/stories/Elements/Badge/Badge.stories.tsx +0 -15
- package/src/stories/Elements/Badge/Badge.tsx +0 -21
- package/src/stories/Elements/Badge/badge.scss +0 -24
- package/src/stories/Elements/Button/Button.stories.tsx +0 -54
- package/src/stories/Elements/Button/Button.tsx +0 -118
- package/src/stories/Elements/Button/button.scss +0 -102
- package/src/stories/Elements/Icon/Icon.stories.tsx +0 -33
- package/src/stories/Elements/Icon/Icon.tsx +0 -57
- package/src/stories/Elements/Icon/icon.scss +0 -15
- package/src/stories/Elements/Icon/icono.svg +0 -1
- package/src/stories/Elements/ProgressBar/ProgressBar.scss +0 -26
- package/src/stories/Elements/ProgressBar/ProgressBar.stories.tsx +0 -19
- package/src/stories/Elements/ProgressBar/ProgressBar.tsx +0 -35
- package/src/stories/Form/Autocomplete/Autocomplete.stories.tsx +0 -55
- package/src/stories/Form/Autocomplete/Autocomplete.tsx +0 -160
- package/src/stories/Form/Autocomplete/autocomplete.scss +0 -311
- package/src/stories/Form/Autocomplete-Prueba/Autocomplete.stories.tsx +0 -50
- package/src/stories/Form/Autocomplete-Prueba/AutocompletePrueba.tsx +0 -83
- package/src/stories/Form/Checkbox/Checkbox.stories.tsx +0 -26
- package/src/stories/Form/Checkbox/Checkbox.tsx +0 -89
- package/src/stories/Form/Checkbox/checkbox.scss +0 -41
- package/src/stories/Form/DatePicker/DatePickerExample.stories.tsx +0 -27
- package/src/stories/Form/DatePicker/DatePickerExample.tsx +0 -65
- package/src/stories/Form/DatePickerComponent/DatePickerComponent.scss +0 -116
- package/src/stories/Form/DatePickerComponent/DatePickerComponent.stories.tsx +0 -37
- package/src/stories/Form/DatePickerComponent/DatePickerComponent.tsx +0 -97
- package/src/stories/Form/Filters/Filters.stories.tsx +0 -84
- package/src/stories/Form/Filters/Filters.tsx +0 -230
- package/src/stories/Form/Filters/filters.scss +0 -261
- package/src/stories/Form/Input/Input.stories.tsx +0 -25
- package/src/stories/Form/Input/Input.tsx +0 -86
- package/src/stories/Form/Input/InputVar.sass +0 -26
- package/src/stories/Form/Input/input.scss +0 -19
- package/src/stories/Form/InputFormControl/Input-form-control.stories.tsx +0 -26
- package/src/stories/Form/InputFormControl/Input-form-control.tsx +0 -48
- package/src/stories/Form/InputFormControl/input-form-control.scss +0 -34
- package/src/stories/Form/Radio/Radio.stories.tsx +0 -19
- package/src/stories/Form/Radio/Radio.tsx +0 -84
- package/src/stories/Form/Radio/radio.scss +0 -19
- package/src/stories/Form/Search/Search.scss +0 -50
- package/src/stories/Form/Search/Search.stories.tsx +0 -26
- package/src/stories/Form/Search/Search.tsx +0 -84
- package/src/stories/Form/Select/Select.stories.tsx +0 -55
- package/src/stories/Form/Select/Select.tsx +0 -121
- package/src/stories/Form/Select/select.scss +0 -303
- package/src/stories/Form/Switch/Switch.stories.tsx +0 -17
- package/src/stories/Form/Switch/Switch.tsx +0 -36
- package/src/stories/Form/Switch/switch.scss +0 -123
- package/src/stories/Form/Textarea/Textarea.stories.tsx +0 -19
- package/src/stories/Form/Textarea/Textarea.tsx +0 -52
- package/src/stories/Form/Textarea/textarea.scss +0 -25
- package/src/stories/Form/UploadFileItem/UploadFileItem.scss +0 -49
- package/src/stories/Form/UploadFileItem/UploadFileItem.stories.tsx +0 -18
- package/src/stories/Form/UploadFileItem/UploadFileItem.tsx +0 -89
- package/src/stories/Form/UploadFiles/UploadFiles.scss +0 -17
- package/src/stories/Form/UploadFiles/UploadFiles.stories.tsx +0 -32
- package/src/stories/Form/UploadFiles/UploadFiles.tsx +0 -177
- package/src/stories/Layout/Footer/Footer.scss +0 -129
- package/src/stories/Layout/Footer/Footer.stories.tsx +0 -101
- package/src/stories/Layout/Footer/Footer.tsx +0 -81
- package/src/stories/Layout/Header/Header.scss +0 -190
- package/src/stories/Layout/Header/Header.stories.tsx +0 -223
- package/src/stories/Layout/Header/Header.tsx +0 -278
- package/src/stories/Layout/HeaderTable/HeaderTable.scss +0 -21
- package/src/stories/Layout/HeaderTable/HeaderTable.stories.tsx +0 -112
- package/src/stories/Layout/HeaderTable/HeaderTable.tsx +0 -72
- package/src/stories/Layout/Sidebar/Sidebar.scss +0 -50
- package/src/stories/Layout/Sidebar/Sidebar.stories.tsx +0 -744
- package/src/stories/Layout/Sidebar/Sidebar.tsx +0 -129
- package/src/stories/Layout/SidebarEmpty/SidebarEmpty.scss +0 -64
- package/src/stories/Layout/SidebarEmpty/SidebarEmpty.stories.tsx +0 -26
- package/src/stories/Layout/SidebarEmpty/SidebarEmpty.tsx +0 -100
- package/src/stories/Layout/Subtitle/Subtitle.scss +0 -88
- package/src/stories/Layout/Subtitle/Subtitle.stories.tsx +0 -46
- package/src/stories/Layout/Subtitle/Subtitle.tsx +0 -108
- package/src/stories/Layout/Title/Title.scss +0 -79
- package/src/stories/Layout/Title/Title.stories.tsx +0 -86
- package/src/stories/Layout/Title/Title.tsx +0 -96
- package/src/stories/Welcome.stories.tsx +0 -111
- 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 +0 -5
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/assets/colors.svg +0 -1
- package/src/stories/assets/comments.svg +0 -1
- package/src/stories/assets/decor-bg.png +0 -0
- package/src/stories/assets/direction.svg +0 -1
- package/src/stories/assets/e-isologo.svg +0 -4
- package/src/stories/assets/e-isotype.svg +0 -4
- package/src/stories/assets/e-logo_negative.svg +0 -14
- package/src/stories/assets/e-logotype.svg +0 -14
- package/src/stories/assets/flow.svg +0 -1
- package/src/stories/assets/logo_gobierno_corrientes.svg +0 -9
- package/src/stories/assets/logo_rentas_corrientes.svg +0 -10
- package/src/stories/assets/logo_rentas_corrientes_compacto.svg +0 -10
- package/src/stories/assets/plugin.svg +0 -1
- package/src/stories/assets/repo.svg +0 -1
- package/src/stories/assets/stackalt.svg +0 -1
- package/src/stories/assets/storybook.svg +0 -13
- 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 +0 -389
- package/src/utils/functions.ts +0 -57
- package/src/vite-env.d.ts +0 -2
- package/static/e-isologo-192.jpg +0 -0
- package/static/e-isologo.svg +0 -4
- package/static/e-logotype.svg +0 -14
- package/static/favicon.ico +0 -0
- package/tsconfig.json +0 -22
- package/tsconfig.node.json +0 -9
- package/vite.config.ts +0 -22
- /package/{public/elevation.ico → elevation.ico} +0 -0
- /package/{public/elevationImage.png → elevationImage.png} +0 -0
- /package/{public/vite.svg → vite.svg} +0 -0
|
@@ -1,135 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import './cardUser.scss';
|
|
2
|
-
import {Button, IButton} from '../../../Elements/Button/Button';
|
|
3
|
-
import {Icon, IIcon} from '../../../Elements/Icon/Icon';
|
|
4
|
-
import {Badge, BadgeProps} from '../../../Elements/Badge/Badge';
|
|
5
|
-
|
|
6
|
-
export interface ICardUser extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
7
|
-
// base
|
|
8
|
-
fill: 'outline' | 'none';
|
|
9
|
-
list: {
|
|
10
|
-
icon?: IIcon;
|
|
11
|
-
img?: string;
|
|
12
|
-
iconType: 'icon' | 'img';
|
|
13
|
-
title?: any;
|
|
14
|
-
subtitle?: any;
|
|
15
|
-
button?: IButton[];
|
|
16
|
-
menuButton?: IButton;
|
|
17
|
-
}[];
|
|
18
|
-
badge?: BadgeProps[];
|
|
19
|
-
button?: IButton[];
|
|
20
|
-
|
|
21
|
-
// boolean
|
|
22
|
-
isClickable?: boolean;
|
|
23
|
-
|
|
24
|
-
// events
|
|
25
|
-
onClick?: () => void;
|
|
26
|
-
|
|
27
|
-
// react
|
|
28
|
-
className?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface IImgs {
|
|
31
|
-
img?: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const CardUser = ({fill, list, badge, button, className, isClickable, onClick, ...props}: ICardUser) => {
|
|
35
|
-
return (
|
|
36
|
-
<div className="elv-component elv-card" {...props}>
|
|
37
|
-
<div
|
|
38
|
-
className={[
|
|
39
|
-
`card card-user ${fill === 'outline' && 'outline'} ${className ? className : ''}`,
|
|
40
|
-
`${isClickable ? ' is-clickable' : ''}`,
|
|
41
|
-
].join('')}
|
|
42
|
-
onClick={() => {
|
|
43
|
-
if (isClickable && onClick) {
|
|
44
|
-
onClick();
|
|
45
|
-
}
|
|
46
|
-
}}
|
|
47
|
-
>
|
|
48
|
-
<div className="card-body">
|
|
49
|
-
{list.map((item, index) => (
|
|
50
|
-
<div key={index} className="list-item">
|
|
51
|
-
{item.iconType == 'img' ? (
|
|
52
|
-
<>
|
|
53
|
-
{item.img && (
|
|
54
|
-
<div className="list-item__img">
|
|
55
|
-
<img key={index} src={item.img} className={'img-p'} />
|
|
56
|
-
</div>
|
|
57
|
-
)}
|
|
58
|
-
</>
|
|
59
|
-
) : (
|
|
60
|
-
<>
|
|
61
|
-
{item.icon && (
|
|
62
|
-
<div className="list-item__img">
|
|
63
|
-
<Icon key={index} className={'img-p'} {...item.icon} />
|
|
64
|
-
</div>
|
|
65
|
-
)}
|
|
66
|
-
</>
|
|
67
|
-
)}
|
|
68
|
-
|
|
69
|
-
<div className="list-item__text">
|
|
70
|
-
<p className="text__subtitle">{item.title}</p>
|
|
71
|
-
<p className="text__title">{item.subtitle}</p>
|
|
72
|
-
</div>
|
|
73
|
-
{item.button && (
|
|
74
|
-
<div className={'list-item__button left'}>
|
|
75
|
-
{item?.button?.map(button => (
|
|
76
|
-
<Button {...button} />
|
|
77
|
-
))}
|
|
78
|
-
</div>
|
|
79
|
-
)}
|
|
80
|
-
|
|
81
|
-
{item.menuButton && (
|
|
82
|
-
<div className="list-item__menu">
|
|
83
|
-
<Button {...item.menuButton} />
|
|
84
|
-
</div>
|
|
85
|
-
)}
|
|
86
|
-
</div>
|
|
87
|
-
))}
|
|
88
|
-
</div>
|
|
89
|
-
{badge || button ? (
|
|
90
|
-
<div className="card-footer p-4 mt-4 is-flex is-justify-content-space-between">
|
|
91
|
-
{badge && (
|
|
92
|
-
<>
|
|
93
|
-
{button ? (
|
|
94
|
-
<div className="card-footer__badges card-footer__badges--button">
|
|
95
|
-
{badge?.map((badge, index) => (
|
|
96
|
-
<Badge key={index} {...badge} />
|
|
97
|
-
))}
|
|
98
|
-
</div>
|
|
99
|
-
) : (
|
|
100
|
-
<div
|
|
101
|
-
className={['card-footer__badges '].join('')}
|
|
102
|
-
style={{maxWidth: `${badge.length * 100 < 400 ? badge.length * 100 : 400}px`}}
|
|
103
|
-
>
|
|
104
|
-
{badge.map((badge, index) => (
|
|
105
|
-
<Badge key={index} {...badge} />
|
|
106
|
-
))}
|
|
107
|
-
</div>
|
|
108
|
-
)}
|
|
109
|
-
</>
|
|
110
|
-
)}
|
|
111
|
-
|
|
112
|
-
{button?.map((button, index) => (
|
|
113
|
-
<Button {...button} className="px-6" />
|
|
114
|
-
))}
|
|
115
|
-
</div>
|
|
116
|
-
) : (
|
|
117
|
-
<></>
|
|
118
|
-
)}
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
);
|
|
122
|
-
};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
@import '/src/sass/utilities/variables';
|
|
2
|
-
|
|
3
|
-
.card-user {
|
|
4
|
-
display: flex;
|
|
5
|
-
min-width: 300px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
background-color: $white;
|
|
8
|
-
box-shadow: none !important;
|
|
9
|
-
|
|
10
|
-
&.outline {
|
|
11
|
-
border-radius: 16px;
|
|
12
|
-
box-shadow: 0px 0px 2px rgba(14, 31, 53, 0.12), 0px 1px 4px rgba(14, 31, 53, 0.06) !important;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.card-body {
|
|
16
|
-
padding: 16px;
|
|
17
|
-
padding-bottom: 0px;
|
|
18
|
-
|
|
19
|
-
.list-item {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
margin-bottom: 16px;
|
|
23
|
-
|
|
24
|
-
&__img {
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: flex-start;
|
|
27
|
-
align-items: center;
|
|
28
|
-
color: $text-700;
|
|
29
|
-
min-width: 32px;
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
width: 32px;
|
|
32
|
-
height: 32px;
|
|
33
|
-
background-color: $muted-200;
|
|
34
|
-
border-radius: 12px;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
|
|
37
|
-
.img-p {
|
|
38
|
-
display: flex;
|
|
39
|
-
object-fit: cover;
|
|
40
|
-
|
|
41
|
-
svg {
|
|
42
|
-
width: 12px;
|
|
43
|
-
fill: $text-800;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&__text {
|
|
49
|
-
margin-left: 10px;
|
|
50
|
-
max-width: 100%;
|
|
51
|
-
|
|
52
|
-
.text__subtitle {
|
|
53
|
-
color: $text-600;
|
|
54
|
-
max-width: 300px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.text__title {
|
|
58
|
-
color: $primary-600;
|
|
59
|
-
font-weight: $fw-semibold;
|
|
60
|
-
max-width: 300px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&__menu {
|
|
65
|
-
margin-left: auto;
|
|
66
|
-
|
|
67
|
-
.button {
|
|
68
|
-
padding: 0;
|
|
69
|
-
margin: 0;
|
|
70
|
-
margin-right: 24px;
|
|
71
|
-
height: 23px;
|
|
72
|
-
|
|
73
|
-
.button__icon {
|
|
74
|
-
// width: 18px;
|
|
75
|
-
font-size: 18px;
|
|
76
|
-
margin: 0;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&__button {
|
|
82
|
-
&.left {
|
|
83
|
-
display: flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
margin-left: auto;
|
|
87
|
-
margin-right: 24px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
button {
|
|
91
|
-
margin-left: 0;
|
|
92
|
-
font-size: 12px;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.card-footer {
|
|
99
|
-
max-width: 400px;
|
|
100
|
-
|
|
101
|
-
&__badges {
|
|
102
|
-
gap: 10px;
|
|
103
|
-
width: 100%;
|
|
104
|
-
display: grid;
|
|
105
|
-
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
|
106
|
-
|
|
107
|
-
&--button {
|
|
108
|
-
display: flex;
|
|
109
|
-
@media screen and (max-width: 450px) {
|
|
110
|
-
flex-direction: column;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
@import '/src/sass/utilities/variables';
|
|
2
|
-
|
|
3
|
-
.cart {
|
|
4
|
-
min-width: 306px;
|
|
5
|
-
background-color: $white;
|
|
6
|
-
border-radius: 16px;
|
|
7
|
-
box-shadow: 0px 0px 2px rgba(14, 31, 53, 0.12), 0px 1px 4px rgba(14, 31, 53, 0.06);
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
|
|
10
|
-
&__wallet {
|
|
11
|
-
&--icon {
|
|
12
|
-
background-color: $truegray-100;
|
|
13
|
-
height: 65px;
|
|
14
|
-
border-bottom-left-radius: 50%;
|
|
15
|
-
border-bottom-right-radius: 50%;
|
|
16
|
-
|
|
17
|
-
.fa_icon {
|
|
18
|
-
height: 19px;
|
|
19
|
-
width: 18px;
|
|
20
|
-
color: $primary-600;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.svg_icon {
|
|
24
|
-
height: 19px;
|
|
25
|
-
width: 18px;
|
|
26
|
-
fill: $primary-600;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&--dropdownButton {
|
|
31
|
-
padding-top: 21px;
|
|
32
|
-
padding-right: 21px;
|
|
33
|
-
padding-left: 21px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&__content {
|
|
38
|
-
background-color: white;
|
|
39
|
-
padding: 24px;
|
|
40
|
-
|
|
41
|
-
.perception {
|
|
42
|
-
&__title {
|
|
43
|
-
margin-bottom: 20px;
|
|
44
|
-
.title {
|
|
45
|
-
margin: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.button {
|
|
49
|
-
.fa_icon {
|
|
50
|
-
height: 16px;
|
|
51
|
-
width: 4px;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&__labels {
|
|
57
|
-
padding-bottom: 5px;
|
|
58
|
-
margin-bottom: 5px;
|
|
59
|
-
border-bottom: 2px solid $truegray-300;
|
|
60
|
-
.item {
|
|
61
|
-
font-size: 14px;
|
|
62
|
-
font-weight: $fw-regular;
|
|
63
|
-
|
|
64
|
-
&__label {
|
|
65
|
-
color: $text-400;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&__value {
|
|
69
|
-
color: $black;
|
|
70
|
-
font-weight: $fw-medium;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&__sub-list {
|
|
76
|
-
margin-bottom: 5px;
|
|
77
|
-
padding-bottom: 5px;
|
|
78
|
-
border-bottom: 2px solid $truegray-300;
|
|
79
|
-
gap: 5px;
|
|
80
|
-
|
|
81
|
-
.item {
|
|
82
|
-
font-weight: $fw-medium;
|
|
83
|
-
font-size: 14px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&__total {
|
|
88
|
-
color: $success-600;
|
|
89
|
-
margin-bottom: 17px;
|
|
90
|
-
|
|
91
|
-
.total-label {
|
|
92
|
-
font-size: 18px;
|
|
93
|
-
font-weight: $fw-regular;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.total-value {
|
|
97
|
-
font-size: 20px;
|
|
98
|
-
font-weight: $fw-medium;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.bonds {
|
|
104
|
-
&__labels {
|
|
105
|
-
padding-bottom: 5px;
|
|
106
|
-
margin-bottom: 25px;
|
|
107
|
-
|
|
108
|
-
.item {
|
|
109
|
-
font-size: 14px;
|
|
110
|
-
font-weight: $fw-regular;
|
|
111
|
-
|
|
112
|
-
&__label {
|
|
113
|
-
.micro-label {
|
|
114
|
-
font-size: 20px;
|
|
115
|
-
color: $text-500;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.micro-sub_label {
|
|
119
|
-
font-size: 12px;
|
|
120
|
-
color: $text-400;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&__value {
|
|
125
|
-
font-size: 30px;
|
|
126
|
-
color: $black;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.inter-label {
|
|
131
|
-
font-size: 14px;
|
|
132
|
-
color: $text-400;
|
|
133
|
-
border-top: 1px solid $truegray-300;
|
|
134
|
-
border-bottom: 1px solid $truegray-300;
|
|
135
|
-
margin-top: 15px;
|
|
136
|
-
margin-bottom: 15px;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.footer {
|
|
142
|
-
&--button {
|
|
143
|
-
.button-list {
|
|
144
|
-
width: 100%;
|
|
145
|
-
gap: 15px;
|
|
146
|
-
.button {
|
|
147
|
-
width: 100%;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&--total-button {
|
|
153
|
-
gap: 5%;
|
|
154
|
-
.total {
|
|
155
|
-
min-width: 40%;
|
|
156
|
-
&__label {
|
|
157
|
-
font-size: 16px;
|
|
158
|
-
font-weight: $fw-medium;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
&__value {
|
|
162
|
-
font-size: 24px;
|
|
163
|
-
font-weight: $fw-medium;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.button {
|
|
168
|
-
width: 42%;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&--big-total-button {
|
|
173
|
-
.button-list {
|
|
174
|
-
width: 100%;
|
|
175
|
-
gap: 15px;
|
|
176
|
-
.button {
|
|
177
|
-
width: 100%;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.total {
|
|
182
|
-
&__label {
|
|
183
|
-
font-weight: $fw-semibold;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&__value {
|
|
187
|
-
font-size: 30px;
|
|
188
|
-
margin-bottom: 10px;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&__description {
|
|
192
|
-
font-size: 10px;
|
|
193
|
-
color: $text-400;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
&--big-total-button-sub {
|
|
199
|
-
.button-list {
|
|
200
|
-
width: 100%;
|
|
201
|
-
gap: 15px;
|
|
202
|
-
.button {
|
|
203
|
-
width: 100%;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.total {
|
|
208
|
-
&__label {
|
|
209
|
-
font-weight: $fw-semibold;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&__sub_label {
|
|
213
|
-
color: $text-400;
|
|
214
|
-
font-size: 14px;
|
|
215
|
-
margin-top: 15px;
|
|
216
|
-
margin-bottom: 15px;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
&__sub_value {
|
|
220
|
-
color: $text-400;
|
|
221
|
-
font-size: 18px;
|
|
222
|
-
margin-bottom: 5px;
|
|
223
|
-
text-decoration: line-through;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
&__value {
|
|
227
|
-
font-size: 30px;
|
|
228
|
-
margin-bottom: 10px;
|
|
229
|
-
font-weight: $fw-semibold;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
&__sub_desc {
|
|
233
|
-
font-size: 10px;
|
|
234
|
-
line-height: 11.93px;
|
|
235
|
-
font-weight: $fw-semibold;
|
|
236
|
-
color: $text-600;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
&__description {
|
|
240
|
-
font-size: 10px;
|
|
241
|
-
color: $text-400;
|
|
242
|
-
padding-bottom: 15px;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
&--total-button-sub-mobile {
|
|
248
|
-
gap: 5%;
|
|
249
|
-
.total {
|
|
250
|
-
min-width: 40%;
|
|
251
|
-
&__label {
|
|
252
|
-
font-size: 14px;
|
|
253
|
-
font-weight: $fw-semibold;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
&__sub_label {
|
|
257
|
-
color: $text-400;
|
|
258
|
-
font-size: 12px;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
&__sub_value {
|
|
262
|
-
color: $text-400;
|
|
263
|
-
font-size: 12px;
|
|
264
|
-
text-decoration: line-through;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
&__value {
|
|
268
|
-
font-size: 16px;
|
|
269
|
-
font-weight: $fw-semibold;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.button {
|
|
274
|
-
width: 45%;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|