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,24 +0,0 @@
|
|
|
1
|
-
@import '/src/sass/utilities/variables';
|
|
2
|
-
|
|
3
|
-
.badge {
|
|
4
|
-
font-weight: 500;
|
|
5
|
-
font-size: 14px;
|
|
6
|
-
line-height: 18px;
|
|
7
|
-
padding: 2px 8px;
|
|
8
|
-
border-radius: 8px;
|
|
9
|
-
color: #ffffff;
|
|
10
|
-
line-height: 150%;
|
|
11
|
-
font-weight: $fw-medium;
|
|
12
|
-
|
|
13
|
-
&.badge--primary {
|
|
14
|
-
background-color: $primary-600;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.badge--secondary {
|
|
18
|
-
background-color: $secondary-600;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&.badge--tertiary {
|
|
22
|
-
background-color: $tertiary-600;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {ComponentStory, ComponentMeta} from '@storybook/react';
|
|
2
|
-
import {Button} from './Button';
|
|
3
|
-
import icono from '../../Elements/Icon/icono.svg';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Elements/Button',
|
|
7
|
-
component: Button,
|
|
8
|
-
args: {
|
|
9
|
-
label: 'Button',
|
|
10
|
-
isFullWidth: false,
|
|
11
|
-
isRounded: false,
|
|
12
|
-
color: 'primary',
|
|
13
|
-
size: 'normal',
|
|
14
|
-
fill: 'solid',
|
|
15
|
-
loading: false,
|
|
16
|
-
disabled: false,
|
|
17
|
-
trailingIcon: false,
|
|
18
|
-
type: 'button',
|
|
19
|
-
onClick: () => console.log('Button Clicked'),
|
|
20
|
-
},
|
|
21
|
-
} as ComponentMeta<typeof Button>;
|
|
22
|
-
|
|
23
|
-
const Template: ComponentStory<typeof Button> = args => <Button {...args} />;
|
|
24
|
-
|
|
25
|
-
export const Solid = Template.bind({});
|
|
26
|
-
Solid.args = {
|
|
27
|
-
fill: 'solid',
|
|
28
|
-
icon: icono,
|
|
29
|
-
icon_type: 'svg_icon',
|
|
30
|
-
icon_color: 'white',
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const SolidIcon = Template.bind({});
|
|
34
|
-
SolidIcon.args = {
|
|
35
|
-
fill: 'solid',
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const Outline = Template.bind({});
|
|
39
|
-
Outline.args = {
|
|
40
|
-
fill: 'outline',
|
|
41
|
-
icon: 'fa-solid fa-user',
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export const Unstyled = Template.bind({});
|
|
45
|
-
Unstyled.args = {
|
|
46
|
-
fill: 'unstyled',
|
|
47
|
-
icon: 'fa-solid fa-user',
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const Link = Template.bind({});
|
|
51
|
-
Link.args = {
|
|
52
|
-
fill: 'link',
|
|
53
|
-
icon: 'fa-solid fa-user',
|
|
54
|
-
};
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import './button.scss';
|
|
2
|
-
import {Icon} from '../Icon/Icon';
|
|
3
|
-
|
|
4
|
-
export interface IButton extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
5
|
-
//base
|
|
6
|
-
color?: 'primary' | 'secondary' | 'tertiary';
|
|
7
|
-
type?: 'button' | 'submit' | 'reset';
|
|
8
|
-
size?: 'small' | 'normal' | 'medium' | 'large';
|
|
9
|
-
fill?: 'solid' | 'outline' | 'unstyled' | 'link';
|
|
10
|
-
label?: string;
|
|
11
|
-
|
|
12
|
-
icon?: string;
|
|
13
|
-
icon_type?: 'fa_icon' | 'svg_icon';
|
|
14
|
-
icon_size?: string;
|
|
15
|
-
icon_size_height?: string;
|
|
16
|
-
icon_color?: string;
|
|
17
|
-
icon_className?: string;
|
|
18
|
-
|
|
19
|
-
// boolean
|
|
20
|
-
isFullWidth?: boolean;
|
|
21
|
-
isRounded?: boolean;
|
|
22
|
-
isOnlyIcon?: boolean;
|
|
23
|
-
loading?: boolean;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
trailingIcon?: boolean;
|
|
26
|
-
|
|
27
|
-
// events
|
|
28
|
-
onClick?: () => void;
|
|
29
|
-
|
|
30
|
-
//REACT
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const Button = ({
|
|
35
|
-
color = 'primary',
|
|
36
|
-
type = 'button',
|
|
37
|
-
size = 'normal',
|
|
38
|
-
fill = 'solid',
|
|
39
|
-
isFullWidth,
|
|
40
|
-
isRounded,
|
|
41
|
-
isOnlyIcon,
|
|
42
|
-
loading = false,
|
|
43
|
-
disabled = false,
|
|
44
|
-
icon,
|
|
45
|
-
icon_type = 'fa_icon',
|
|
46
|
-
icon_size,
|
|
47
|
-
icon_size_height,
|
|
48
|
-
icon_color,
|
|
49
|
-
icon_className,
|
|
50
|
-
trailingIcon = false,
|
|
51
|
-
label,
|
|
52
|
-
onClick,
|
|
53
|
-
className,
|
|
54
|
-
...props
|
|
55
|
-
}: IButton) => {
|
|
56
|
-
const handleButtonClick = (event: React.MouseEvent<HTMLButtonElement>) => {
|
|
57
|
-
event.stopPropagation();
|
|
58
|
-
onClick && onClick();
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<div className={`elv-component elv-button ${isFullWidth ? 'is-fullw' : ''}`} {...props}>
|
|
63
|
-
<button
|
|
64
|
-
type={type}
|
|
65
|
-
className={[
|
|
66
|
-
'button',
|
|
67
|
-
`${fill === 'solid' || fill === 'outline' ? ' is-' + color + '-600' : ''}`,
|
|
68
|
-
`${fill === 'link' ? ' is-linked' : ''}`,
|
|
69
|
-
`${fill === 'outline' ? ' is-outlined' : ''}`,
|
|
70
|
-
`${fill === 'unstyled' ? ' is-unstyled' : ''}`,
|
|
71
|
-
`${size !== 'normal' ? ' is-' + size : ''}`,
|
|
72
|
-
`${trailingIcon ? ' button__icon--trailing' : ''}`,
|
|
73
|
-
`${loading ? ' is-loading' : ''}`,
|
|
74
|
-
`${isFullWidth ? ' is-fullwidth' : ''}`,
|
|
75
|
-
`${isOnlyIcon ? ' is-only-icon' : ''}`,
|
|
76
|
-
`${isRounded ? ' is-rounded' : ''}`,
|
|
77
|
-
`${className ? ' ' + className : ''}`,
|
|
78
|
-
].join('')}
|
|
79
|
-
onClick={e => {
|
|
80
|
-
handleButtonClick(e);
|
|
81
|
-
}}
|
|
82
|
-
disabled={disabled}
|
|
83
|
-
>
|
|
84
|
-
<div className="button-content is-flex">
|
|
85
|
-
{trailingIcon ? (
|
|
86
|
-
<>
|
|
87
|
-
{label}
|
|
88
|
-
{icon && (
|
|
89
|
-
<Icon
|
|
90
|
-
icon={icon}
|
|
91
|
-
type={icon_type}
|
|
92
|
-
color={icon_color}
|
|
93
|
-
size={icon_size}
|
|
94
|
-
size_height={icon_size_height}
|
|
95
|
-
className={'button__icon ' + icon_className}
|
|
96
|
-
/>
|
|
97
|
-
)}
|
|
98
|
-
</>
|
|
99
|
-
) : (
|
|
100
|
-
<>
|
|
101
|
-
{icon && (
|
|
102
|
-
<Icon
|
|
103
|
-
icon={icon}
|
|
104
|
-
type={icon_type}
|
|
105
|
-
color={icon_color}
|
|
106
|
-
size={icon_size}
|
|
107
|
-
size_height={icon_size_height}
|
|
108
|
-
className={'button__icon ' + icon_className}
|
|
109
|
-
/>
|
|
110
|
-
)}
|
|
111
|
-
{label}
|
|
112
|
-
</>
|
|
113
|
-
)}
|
|
114
|
-
</div>
|
|
115
|
-
</button>
|
|
116
|
-
</div>
|
|
117
|
-
);
|
|
118
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
@import '/src/sass/utilities/variables';
|
|
2
|
-
|
|
3
|
-
.elv-button {
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
|
|
6
|
-
.button {
|
|
7
|
-
border-radius: 12px;
|
|
8
|
-
height: max-content;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.button.is-small:not(.is-rounded) {
|
|
12
|
-
border-radius: 12px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.is-unstyled {
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
border-color: transparent;
|
|
18
|
-
|
|
19
|
-
&:hover {
|
|
20
|
-
background-color: transparent;
|
|
21
|
-
border-color: transparent;
|
|
22
|
-
color: $primary-600;
|
|
23
|
-
fill: $primary-600;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:active {
|
|
27
|
-
color: $primary-600;
|
|
28
|
-
fill: $primary-600;
|
|
29
|
-
background-color: transparent;
|
|
30
|
-
border-color: transparent;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:focus {
|
|
34
|
-
border-color: transparent;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:focus:not(:active) {
|
|
38
|
-
box-shadow: none;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.is-linked {
|
|
43
|
-
background: none;
|
|
44
|
-
border: 0px;
|
|
45
|
-
border-color: transparent;
|
|
46
|
-
color: $primary-600;
|
|
47
|
-
fill: $primary-600;
|
|
48
|
-
text-decoration: none;
|
|
49
|
-
|
|
50
|
-
.button-content {
|
|
51
|
-
border-bottom: 1px solid transparent;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&:hover {
|
|
55
|
-
color: $primary-600;
|
|
56
|
-
fill: $primary-600;
|
|
57
|
-
border-color: transparent;
|
|
58
|
-
|
|
59
|
-
.button-content {
|
|
60
|
-
border-bottom: 1px solid $primary-600;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&:active {
|
|
65
|
-
color: $primary-600;
|
|
66
|
-
fill: $primary-600;
|
|
67
|
-
|
|
68
|
-
border-color: $primary-600;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&:focus {
|
|
72
|
-
color: $primary-600;
|
|
73
|
-
fill: $primary-600;
|
|
74
|
-
border-color: $primary-600;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&:focus:not(:active) {
|
|
78
|
-
box-shadow: none;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.is-only-icon {
|
|
83
|
-
padding: 3px;
|
|
84
|
-
|
|
85
|
-
&:hover {
|
|
86
|
-
border-color: transparent;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&:active {
|
|
90
|
-
border-color: transparent;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:focus {
|
|
94
|
-
border-color: transparent;
|
|
95
|
-
box-shadow: none;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.button-content {
|
|
100
|
-
gap: 6px;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {ComponentStory, ComponentMeta} from '@storybook/react';
|
|
2
|
-
import {Icon} from './Icon';
|
|
3
|
-
import icono from './icono.svg';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Elements/Icon',
|
|
7
|
-
component: Icon,
|
|
8
|
-
args: {
|
|
9
|
-
className: '',
|
|
10
|
-
},
|
|
11
|
-
parameters: {
|
|
12
|
-
docs: {
|
|
13
|
-
description: {
|
|
14
|
-
component:
|
|
15
|
-
'Cada componente Icon, por defecto estará utilizando el type: "fa_icon", si se quiere usar un ícono del tipo SVG, se debe cargar la propiedad type: "svg_icon", y pasarle directamente la url del SVG en la propiedad "icon". Cabe aclarar que el TAMAÑO y el COLOR de un ícono SVG, se manejan con propiedades distintas de CSS.',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
} as ComponentMeta<typeof Icon>;
|
|
20
|
-
|
|
21
|
-
const Template: ComponentStory<typeof Icon> = args => <Icon {...args} />;
|
|
22
|
-
|
|
23
|
-
export const FA_Icon = Template.bind({});
|
|
24
|
-
FA_Icon.args = {
|
|
25
|
-
icon: 'fa-solid fa-user',
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const SVG_Icon = Template.bind({});
|
|
29
|
-
SVG_Icon.args = {
|
|
30
|
-
type: 'svg_icon',
|
|
31
|
-
size: '16px',
|
|
32
|
-
icon: icono.toString(),
|
|
33
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import {useEffect, useRef} from 'react';
|
|
2
|
-
import './icon.scss';
|
|
3
|
-
|
|
4
|
-
export interface IIcon extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
5
|
-
// base
|
|
6
|
-
icon: string;
|
|
7
|
-
type?: 'fa_icon' | 'svg_icon';
|
|
8
|
-
size?: string;
|
|
9
|
-
size_height?: string;
|
|
10
|
-
color?: string;
|
|
11
|
-
|
|
12
|
-
// events
|
|
13
|
-
onClick?: () => void;
|
|
14
|
-
|
|
15
|
-
// react
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const Icon = ({icon, className, type, size = '16px', size_height, color, onClick, ...props}: IIcon) => {
|
|
20
|
-
const spanRef = useRef<HTMLSpanElement>(null);
|
|
21
|
-
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
if (type == 'svg_icon') {
|
|
24
|
-
getTheSvg(icon).then(res => {
|
|
25
|
-
if (spanRef.current && icon) {
|
|
26
|
-
spanRef.current.innerHTML = res;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}, [spanRef.current, icon]);
|
|
31
|
-
|
|
32
|
-
function getTheSvg(url: string) {
|
|
33
|
-
return fetch(url).then(res => res.text());
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return type === 'svg_icon' ? (
|
|
37
|
-
<span
|
|
38
|
-
className={`svg_icon ${className}`}
|
|
39
|
-
ref={spanRef}
|
|
40
|
-
style={{fill: color, width: size, height: size_height}}
|
|
41
|
-
onClick={() => {
|
|
42
|
-
onClick && onClick();
|
|
43
|
-
}}
|
|
44
|
-
{...props}
|
|
45
|
-
/>
|
|
46
|
-
) : (
|
|
47
|
-
<div className="elv-component elv-icon" {...props}>
|
|
48
|
-
<i
|
|
49
|
-
className={`fa_icon ${icon} ${className}`}
|
|
50
|
-
style={{fontSize: size, color: color}}
|
|
51
|
-
onClick={() => {
|
|
52
|
-
onClick && onClick();
|
|
53
|
-
}}
|
|
54
|
-
></i>
|
|
55
|
-
</div>
|
|
56
|
-
);
|
|
57
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M249 1c-4 1-11 8-12 13l-1 113v109H13l-4 3c-6 4-8 9-8 17 0 5 0 7 2 11l7 6 4 2 111 1h111v222l3 4 6 7c4 2 6 2 11 2 6 0 7 0 11-2l6-7 2-4 1-111V276h111l111-1 4-2 7-6c2-4 2-6 2-11s0-7-2-11l-7-6-4-2-111-1H276V125l-1-112-2-3c-5-8-15-12-24-9z" /></svg>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@import '/src/sass/utilities/variables';
|
|
2
|
-
.elv-progressbar{
|
|
3
|
-
.progressbar{
|
|
4
|
-
|
|
5
|
-
.progress{
|
|
6
|
-
&--small{
|
|
7
|
-
height: 3px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&--normal{
|
|
11
|
-
height: 6px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&--medium{
|
|
15
|
-
height: 12px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&--large{
|
|
19
|
-
height: 18px;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {ComponentStory, ComponentMeta} from '@storybook/react';
|
|
2
|
-
import {ProgressBar} from './ProgressBar';
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Elements/ProgressBar',
|
|
6
|
-
component: ProgressBar,
|
|
7
|
-
args: {
|
|
8
|
-
value: 50,
|
|
9
|
-
max: '100',
|
|
10
|
-
color: 'primary',
|
|
11
|
-
size: 'normal',
|
|
12
|
-
type: 'progress',
|
|
13
|
-
},
|
|
14
|
-
} as ComponentMeta<typeof ProgressBar>;
|
|
15
|
-
|
|
16
|
-
const Template: ComponentStory<typeof ProgressBar> = args => <ProgressBar {...args} />;
|
|
17
|
-
|
|
18
|
-
export const Standard = Template.bind({});
|
|
19
|
-
Standard.args = {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import {link} from 'fs';
|
|
2
|
-
import './ProgressBar.scss';
|
|
3
|
-
import {Warning} from '../Alert/Alert.stories';
|
|
4
|
-
|
|
5
|
-
export interface IProgressBar extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
6
|
-
// BASE
|
|
7
|
-
color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
|
|
8
|
-
size?: 'small' | 'normal' | 'medium' | 'large';
|
|
9
|
-
max?: string;
|
|
10
|
-
value?: number;
|
|
11
|
-
|
|
12
|
-
// IS-OPTIONS
|
|
13
|
-
|
|
14
|
-
// EVENTS
|
|
15
|
-
|
|
16
|
-
// GENERIC
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const ProgressBar = ({color = 'primary', size = 'normal', max, value, className, ...props}: IProgressBar) => {
|
|
21
|
-
return (
|
|
22
|
-
<div className="elv-component elv-progressbar" {...props}>
|
|
23
|
-
<div className={['progressbar ', `${className ? ' ' + className : ''}`].join('')}>
|
|
24
|
-
<progress
|
|
25
|
-
className={[
|
|
26
|
-
`progress progress--${size}`,
|
|
27
|
-
`${color === 'primary' || 'link' || 'info' || 'success' || 'warning' || 'danger' ? ' is-' + color : ''}`,
|
|
28
|
-
].join('')}
|
|
29
|
-
value={value}
|
|
30
|
-
max={max}
|
|
31
|
-
></progress>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
);
|
|
35
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import {ComponentStory, ComponentMeta} from '@storybook/react';
|
|
2
|
-
import {Autocomplete} from './Autocomplete';
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Form/Autocomplete',
|
|
6
|
-
component: Autocomplete,
|
|
7
|
-
args: {
|
|
8
|
-
size: 'md',
|
|
9
|
-
fill: 'outline',
|
|
10
|
-
disabled: false,
|
|
11
|
-
error: false,
|
|
12
|
-
placeholder: 'Default Autocomplete',
|
|
13
|
-
defaultValue: '2',
|
|
14
|
-
maxCharacters: 10,
|
|
15
|
-
options: [
|
|
16
|
-
{value: '1', label: 'Option 1', icon: 'fa fa-house'},
|
|
17
|
-
{value: '2', label: 'Option 2'},
|
|
18
|
-
{value: '3', label: 'Option 3'},
|
|
19
|
-
{value: '4', label: 'Option 4', icon: 'fa fa-house'},
|
|
20
|
-
{value: '5', label: 'Option 5'},
|
|
21
|
-
{value: '6', label: 'Option 6'},
|
|
22
|
-
{value: '7', label: 'Option 7'},
|
|
23
|
-
{value: '8', label: 'Option 8'},
|
|
24
|
-
],
|
|
25
|
-
onChangeSelect(value) {
|
|
26
|
-
console.log('Select change: ' + value);
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
} as ComponentMeta<typeof Autocomplete>;
|
|
30
|
-
|
|
31
|
-
const Template: ComponentStory<typeof Autocomplete> = args => <Autocomplete {...args} />;
|
|
32
|
-
|
|
33
|
-
export const Outline = Template.bind({});
|
|
34
|
-
Outline.args = {
|
|
35
|
-
fill: 'outline',
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const Rounded = Template.bind({});
|
|
39
|
-
Rounded.args = {
|
|
40
|
-
fill: 'rounded',
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export const Underline = Template.bind({});
|
|
44
|
-
Underline.args = {
|
|
45
|
-
fill: 'underline',
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export const Unstyled = Template.bind({});
|
|
49
|
-
Unstyled.args = {
|
|
50
|
-
fill: 'unstyled',
|
|
51
|
-
};
|
|
52
|
-
export const Background = Template.bind({});
|
|
53
|
-
Background.args = {
|
|
54
|
-
fill: 'background',
|
|
55
|
-
};
|