@councilbox/councilbox-ui 0.4.1 → 0.4.3
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/dist/build-index.js +51 -3
- package/dist/components/1.Introduction.stories.mdx +50 -0
- package/dist/components/2.Changelog.stories.mdx +62 -0
- package/dist/components/3.Guide.stories.mdx +179 -0
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.stories.js +4 -2
- package/dist/components/Alert/Alert.css +10 -0
- package/dist/components/Alert/Alert.js +134 -0
- package/dist/components/Alert/Alert.stories.js +38 -0
- package/dist/components/Avatar/Avatar.stories.js +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.stories.js +1 -1
- package/dist/components/Button/Button.stories.js +1 -1
- package/dist/components/ButtonBasic/ButtonBasic.js +3 -3
- package/dist/components/ButtonBasic/ButtonBasic.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.css +1 -1
- package/dist/components/Checkbox/Checkbox.js +24 -16
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/DrawerPanel/DesignDrawerPanel.js +46 -12
- package/dist/components/DrawerPanel/DrawerPanel.stories.js +1 -1
- package/dist/components/DropDown/DropDown.js +9 -1
- package/dist/components/DropDown/DropDown.stories.js +1 -1
- package/dist/components/EnhancedTable/DesignEnhancedTable.stories.js +109 -0
- package/dist/components/EnhancedTable/EnhancedTable.js +280 -0
- package/dist/components/EnhancedTable/EnhancedTable.stories.js +39 -0
- package/dist/components/Grid/Grid.stories.js +1 -1
- package/dist/components/Header/Header.js +10 -10
- package/dist/components/Header/Header.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +1 -1
- package/dist/components/IconFont/IconFont.css +0 -0
- package/dist/components/IconFont/IconFont.js +100 -0
- package/dist/components/{FontCBX/FontCBX.stories.js → IconFont/IconFont.stories.js} +4 -4
- package/dist/components/InputAutocomplete/InputAutocomplete.css +0 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.js +137 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +61 -0
- package/dist/components/InputPassword/InputPassword.stories.js +10 -2
- package/dist/components/InputText/InputText.css +2 -10
- package/dist/components/InputText/InputText.js +98 -59
- package/dist/components/InputText/InputText.stories.js +14 -3
- package/dist/components/LoadingSection/LoadingSection.css +7 -0
- package/dist/components/LoadingSection/LoadingSection.js +36 -0
- package/dist/components/LoadingSection/LoadingSection.stories.js +34 -0
- package/dist/components/MenuItem/DesignMenuItem.stories.js +67 -0
- package/dist/components/MenuItem/MenuItem.css +57 -0
- package/dist/components/MenuItem/MenuItem.js +131 -0
- package/dist/components/MenuItem/MenuItem.stories.js +48 -0
- package/dist/components/MenuLateralLeft/MenuLateralLeft.stories.js +1 -1
- package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +1 -1
- package/dist/components/Modal/Modal.js +15 -4
- package/dist/components/Modal/Modal.stories.js +1 -1
- package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +20 -0
- package/dist/components/PaginationFooter/PaginationFooter.css +0 -0
- package/dist/components/PaginationFooter/PaginationFooter.js +271 -0
- package/dist/components/PaginationFooter/PaginationFooter.stories.js +45 -0
- package/dist/components/RadioButton/Radio.css +31 -0
- package/dist/components/RadioButton/Radio.js +67 -19
- package/dist/components/RadioButton/Radio.stories.js +1 -1
- package/dist/components/Scrollbar/Scrollbar.stories.js +1 -1
- package/dist/components/SelectInput/DesignSelectInput.js +2 -1
- package/dist/components/SelectInput/SelectInput.js +109 -56
- package/dist/components/SelectInput/SelectInput.stories.js +41 -4
- package/dist/components/Spacing/Spacing.stories.js +1 -1
- package/dist/components/Stars/Stars.js +1 -1
- package/dist/components/Stars/Stars.stories.js +1 -1
- package/dist/components/Table/DesignTable.stories.js +22 -0
- package/dist/components/Table/Table.css +0 -0
- package/dist/components/Table/Table.js +166 -0
- package/dist/components/Table/Table.stories.js +49 -0
- package/dist/components/Tabs/Tabs.stories.js +1 -1
- package/dist/components/Tag/Tag.stories.js +1 -1
- package/dist/components/TextInput/TextInput.stories.js +1 -1
- package/dist/components/Toggle/Toggle.stories.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/Typography.stories.js +1 -1
- package/dist/config.js +8 -0
- package/dist/fonts/IconNames.json +6848 -0
- package/package.json +1 -1
- package/dist/components/FontCBX/FontCBX.js +0 -36
- package/dist/components/Introduction.stories.mdx +0 -211
- /package/dist/components/{FontCBX/FontCBX.css → EnhancedTable/EnhancedTable.css} +0 -0
package/dist/build-index.js
CHANGED
|
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "Accordion", {
|
|
|
9
9
|
return _Accordion.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "Alert", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _Alert.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
12
18
|
Object.defineProperty(exports, "Avatar", {
|
|
13
19
|
enumerable: true,
|
|
14
20
|
get: function get() {
|
|
@@ -51,10 +57,10 @@ Object.defineProperty(exports, "DropDown", {
|
|
|
51
57
|
return _DropDown.default;
|
|
52
58
|
}
|
|
53
59
|
});
|
|
54
|
-
Object.defineProperty(exports, "
|
|
60
|
+
Object.defineProperty(exports, "EnhancedTable", {
|
|
55
61
|
enumerable: true,
|
|
56
62
|
get: function get() {
|
|
57
|
-
return
|
|
63
|
+
return _EnhancedTable.default;
|
|
58
64
|
}
|
|
59
65
|
});
|
|
60
66
|
Object.defineProperty(exports, "Grid", {
|
|
@@ -81,6 +87,18 @@ Object.defineProperty(exports, "IconButtonSquare", {
|
|
|
81
87
|
return _IconButtonSquare.default;
|
|
82
88
|
}
|
|
83
89
|
});
|
|
90
|
+
Object.defineProperty(exports, "IconFont", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _IconFont.default;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "InputAutocomplete", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function get() {
|
|
99
|
+
return _InputAutocomplete.default;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
84
102
|
Object.defineProperty(exports, "InputPassword", {
|
|
85
103
|
enumerable: true,
|
|
86
104
|
get: function get() {
|
|
@@ -93,6 +111,18 @@ Object.defineProperty(exports, "InputText", {
|
|
|
93
111
|
return _InputText.default;
|
|
94
112
|
}
|
|
95
113
|
});
|
|
114
|
+
Object.defineProperty(exports, "LoadingSection", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function get() {
|
|
117
|
+
return _LoadingSection.default;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "MenuItem", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _MenuItem.default;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
96
126
|
Object.defineProperty(exports, "MenuLateralLeft", {
|
|
97
127
|
enumerable: true,
|
|
98
128
|
get: function get() {
|
|
@@ -129,6 +159,12 @@ Object.defineProperty(exports, "Stars", {
|
|
|
129
159
|
return _Stars.default;
|
|
130
160
|
}
|
|
131
161
|
});
|
|
162
|
+
Object.defineProperty(exports, "Table", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function get() {
|
|
165
|
+
return _Table.default;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
132
168
|
Object.defineProperty(exports, "Tabs", {
|
|
133
169
|
enumerable: true,
|
|
134
170
|
get: function get() {
|
|
@@ -222,7 +258,19 @@ var _Stars = _interopRequireDefault(require("./components/Stars/Stars"));
|
|
|
222
258
|
|
|
223
259
|
var _Toggle = _interopRequireDefault(require("./components/Toggle/Toggle"));
|
|
224
260
|
|
|
225
|
-
var
|
|
261
|
+
var _InputAutocomplete = _interopRequireDefault(require("./components/InputAutocomplete/InputAutocomplete"));
|
|
262
|
+
|
|
263
|
+
var _Alert = _interopRequireDefault(require("./components/Alert/Alert"));
|
|
264
|
+
|
|
265
|
+
var _EnhancedTable = _interopRequireDefault(require("./components/EnhancedTable/EnhancedTable"));
|
|
266
|
+
|
|
267
|
+
var _Table = _interopRequireDefault(require("./components/Table/Table"));
|
|
268
|
+
|
|
269
|
+
var _MenuItem = _interopRequireDefault(require("./components/MenuItem/MenuItem"));
|
|
270
|
+
|
|
271
|
+
var _LoadingSection = _interopRequireDefault(require("./components/LoadingSection/LoadingSection"));
|
|
272
|
+
|
|
273
|
+
var _IconFont = _interopRequireDefault(require("./components/IconFont/IconFont"));
|
|
226
274
|
|
|
227
275
|
var _ThemeProvider = _interopRequireDefault(require("./components/ThemeProvider/ThemeProvider"));
|
|
228
276
|
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="ui-councilbox" />
|
|
4
|
+
|
|
5
|
+
<style>{`
|
|
6
|
+
#docs-root{
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
a.noStyles{
|
|
11
|
+
color: black;
|
|
12
|
+
}
|
|
13
|
+
a.noStyles:hover{
|
|
14
|
+
border-bottom: 1px solid black;
|
|
15
|
+
}
|
|
16
|
+
`}</style>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# Librería de componentes ui-councilbox v0.4.2
|
|
20
|
+
|
|
21
|
+
<h2>Componentes:</h2>
|
|
22
|
+
<div><a class='noStyles' href='/story/components-accordion--default'>Accordion</a></div>
|
|
23
|
+
<div><a class='noStyles' href='/story/components-alert--default'>Alert</a></div>
|
|
24
|
+
<div><a class='noStyles' href='/story/components-avatar--default'>Avatar</a></div>
|
|
25
|
+
<div><a class='noStyles' href='/story/components-buttonbasic--default'>ButtonBasic</a></div>
|
|
26
|
+
<div><a class='noStyles' href='/story/components-checkbox--default'>Checkbox</a></div>
|
|
27
|
+
<div><a class='noStyles' href='/story/components-drawerpanel--design-drawer-panel-template'>DrawerPanel</a></div>
|
|
28
|
+
<div><a class='noStyles' href='/story/components-dropdown--design-drop-down-template'>DropDown</a></div>
|
|
29
|
+
<div><a class='noStyles' href='/story/components-grid--design-grids'>Grid</a></div>
|
|
30
|
+
<div><a class='noStyles' href='/story/components-header--header-all-buttons'>Header</a></div>
|
|
31
|
+
<div><a class='noStyles' href='/story/components-iconbutton--design-icon-button-template'>IconButton</a></div>
|
|
32
|
+
<div><a class='noStyles' href='/story/components-iconbuttonsquare--design-icon-button-square-template'>IconButtonSquare</a></div>
|
|
33
|
+
<div><a class='noStyles' href='/story/components-input-autocomplete'>IconButtonSquare</a></div>
|
|
34
|
+
<div><a class='noStyles' href='/story/components-input-password--default'>Input Password</a></div>
|
|
35
|
+
<div><a class='noStyles' href='/story/components-inputtext--default'>InputText</a></div>
|
|
36
|
+
<div><a class='noStyles' href='/story/components-menulateralleft--design-menu-lateral-left-template'>MenuLateralLeft</a></div>
|
|
37
|
+
<div><a class='noStyles' href='/story/components-menulateralright--design-menu-lateral-right-template'>MenuLateralRight</a></div>
|
|
38
|
+
<div><a class='noStyles' href='/story/components-modal--default'>Modal</a></div>
|
|
39
|
+
<div><a class='noStyles' href='/story/components-radio--default'>Radio</a></div>
|
|
40
|
+
<div><a class='noStyles' href='/story/components-scrollbar--design-scrollbar-template'>Scrollbar</a></div>
|
|
41
|
+
<div><a class='noStyles' href='/story/components-selectinput--default'>SelectInput</a></div>
|
|
42
|
+
<div><a class='noStyles' href='/story/components-spacing--default'>Spacing</a></div>
|
|
43
|
+
<div><a class='noStyles' href='/story/components-stars--design-stars-template'>Stars</a></div>
|
|
44
|
+
<div><a class='noStyles' href='/story/components-tabs--design-tabs-template'>Tabs</a></div>
|
|
45
|
+
<div><a class='noStyles' href='/story/components-tag--design-tag-template'>Tag</a></div>
|
|
46
|
+
<div><a class='noStyles' href='/story/components-toggle--default'>Toggle</a></div>
|
|
47
|
+
<div><a class='noStyles' href='/story/components-typography--default'>Typography</a></div>
|
|
48
|
+
|
|
49
|
+
<h2>Fuentes:</h2>
|
|
50
|
+
<div><a class='noStyles' href='/story/fonts-iconfont--default'>Iconfont</a></div>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="ui-changelog" />
|
|
4
|
+
|
|
5
|
+
<style>{`
|
|
6
|
+
#docs-root{
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
a.noStyles{
|
|
11
|
+
color: black;
|
|
12
|
+
}
|
|
13
|
+
a.noStyles:hover{
|
|
14
|
+
border-bottom: 1px solid black;
|
|
15
|
+
}
|
|
16
|
+
.hide{
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
`}</style>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# Changelog ui-councilbox
|
|
23
|
+
<div class="hide">
|
|
24
|
+
descargar las fuentes y probarlas, no usar @import, meterlas en css descargadas
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<h2>v0.4.3</h2>
|
|
28
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-64'>DS-64</a></div>
|
|
29
|
+
<div>Fix icon en ButtonBasic</div>
|
|
30
|
+
<div>add box-shadow en Dropdown</div>
|
|
31
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-69'>DS-69</a></div>
|
|
32
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-71'>DS-71</a></div>
|
|
33
|
+
<div>Añadido componente LoadingSection</div>
|
|
34
|
+
<div>Añadido componente PaginationFooter</div>
|
|
35
|
+
<div>Añadido componente EnhanceTable</div>
|
|
36
|
+
<div>Nuevo ejemplo en el drawerPanel para que se vean las tabs</div>
|
|
37
|
+
<div>Añadida Guia</div>
|
|
38
|
+
<div>Fix bug en inputText</div>
|
|
39
|
+
<div>Fix bug en header</div>
|
|
40
|
+
|
|
41
|
+
<h2>v0.4.2</h2>
|
|
42
|
+
<div>fix defaultProps en el label y fullWidth del input</div>
|
|
43
|
+
<div>Añadido component InputAutocomplete </div>
|
|
44
|
+
<div>Añadido página de Changelog </div>
|
|
45
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-65'>DS-65</a></div>
|
|
46
|
+
<h2>v0.4.1</h2>
|
|
47
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-55'>DS-55</a></div>
|
|
48
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-56'>DS-56</a></div>
|
|
49
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-57'>DS-57</a></div>
|
|
50
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-58'>DS-58</a></div>
|
|
51
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-59'>DS-59</a></div>
|
|
52
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-60'>DS-60</a></div>
|
|
53
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-61'>DS-61</a></div>
|
|
54
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-62'>DS-62</a></div>
|
|
55
|
+
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-63'>DS-63</a></div>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<h2>Componentes en desuso:</h2>
|
|
59
|
+
<div><a class='noStyles' href='/story/components-button'>button</a></div>
|
|
60
|
+
<div><a class='noStyles' href='/story/components-avatargroup'>avatargroup</a></div>
|
|
61
|
+
<div><a class='noStyles' href='/story/components-textinput'>textinput</a></div>
|
|
62
|
+
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="ui-guide" />
|
|
4
|
+
|
|
5
|
+
<style>{`
|
|
6
|
+
#docs-root{
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
a.noStyles{
|
|
11
|
+
color: black;
|
|
12
|
+
}
|
|
13
|
+
a.noStyles:hover{
|
|
14
|
+
border-bottom: 1px solid black;
|
|
15
|
+
}
|
|
16
|
+
.hide{
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
.colors{
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
.colors div:first-child{
|
|
24
|
+
margin-right: 1rem;
|
|
25
|
+
}
|
|
26
|
+
.color{
|
|
27
|
+
width: 50px;
|
|
28
|
+
height: 20px;
|
|
29
|
+
}
|
|
30
|
+
`}</style>
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# Guide ui-councilbox
|
|
34
|
+
<h2>Instalación</h2>
|
|
35
|
+
<div>
|
|
36
|
+
yarn add @councilbox/councilbox-ui
|
|
37
|
+
</div>
|
|
38
|
+
<h2>Colores</h2>
|
|
39
|
+
<div>
|
|
40
|
+
<div class="colors">
|
|
41
|
+
<div>--primary: #38398C</div>
|
|
42
|
+
<div class="color" ></div>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="colors">
|
|
45
|
+
<div>--secondary: #9B9BC5</div>
|
|
46
|
+
<div class="color" ></div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="colors">
|
|
49
|
+
<div>--accent: #6BEAF2</div>
|
|
50
|
+
<div class="color" ></div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="colors">
|
|
53
|
+
<div>--success: #128851</div>
|
|
54
|
+
<div class="color" ></div>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="colors">
|
|
57
|
+
<div>--error: #D14642</div>
|
|
58
|
+
<div class="color" ></div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="colors">
|
|
61
|
+
<div>--info: #3B70D8</div>
|
|
62
|
+
<div class="color" ></div>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="colors">
|
|
65
|
+
<div>--warning: #DB7E08</div>
|
|
66
|
+
<div class="color" ></div>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="colors">
|
|
69
|
+
<div>--primary75: #6A6BA9</div>
|
|
70
|
+
<div class="color" ></div>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="colors">
|
|
73
|
+
<div>--primary50: #9B9BC5</div>
|
|
74
|
+
<div class="color" ></div>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="colors">
|
|
77
|
+
<div>--primary25: #CDCDE2</div>
|
|
78
|
+
<div class="color" ></div>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="colors">
|
|
81
|
+
<div>--primary10: #ECECF4</div>
|
|
82
|
+
<div class="color" ></div>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="colors">
|
|
85
|
+
<div>--accent75: #90F0F6</div>
|
|
86
|
+
<div class="color" ></div>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="colors">
|
|
89
|
+
<div>--accent25: #DAFAFC</div>
|
|
90
|
+
<div class="color" ></div>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="colors">
|
|
93
|
+
<div>--accent10: #F1FDFE</div>
|
|
94
|
+
<div class="color" ></div>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="colors">
|
|
97
|
+
<div>--black: #000000</div>
|
|
98
|
+
<div class="color" ></div>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="colors">
|
|
101
|
+
<div>--gray5: #333333</div>
|
|
102
|
+
<div class="color" ></div>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="colors">
|
|
105
|
+
<div>--gray4: #595959</div>
|
|
106
|
+
<div class="color" ></div>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="colors">
|
|
109
|
+
<div>--gray3: #767676</div>
|
|
110
|
+
<div class="color" ></div>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="colors">
|
|
113
|
+
<div>--gray2: #CCCCCC</div>
|
|
114
|
+
<div class="color" ></div>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="colors">
|
|
117
|
+
<div>--gray1: #EEEEEE</div>
|
|
118
|
+
<div class="color" ></div>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="colors">
|
|
121
|
+
<div>--white: #FFFFFF</div>
|
|
122
|
+
<div class="color" ></div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
<h2>Fuentes</h2>
|
|
126
|
+
<div>
|
|
127
|
+
<div class="colors">
|
|
128
|
+
<div>--font-primary: </div>
|
|
129
|
+
<div>Lato, sans-serif;</div>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="colors">
|
|
132
|
+
<div>--font-secondary: </div>
|
|
133
|
+
<div >Montserrat, sans-serif;</div>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
<h2>Tamaños de letra</h2>
|
|
137
|
+
<div>
|
|
138
|
+
<div class="colors">
|
|
139
|
+
<div>5XL: </div>
|
|
140
|
+
<div> font-size: 3rem, line-height: 4rem </div>
|
|
141
|
+
</div>
|
|
142
|
+
<div class="colors">
|
|
143
|
+
<div>4XL: </div>
|
|
144
|
+
<div> font-size: 2.5rem, line-height: 3.5rem </div>
|
|
145
|
+
</div>
|
|
146
|
+
<div class="colors">
|
|
147
|
+
<div>3XL: </div>
|
|
148
|
+
<div> font-size: 2rem, line-height: 3rem </div>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="colors">
|
|
151
|
+
<div>2XL: </div>
|
|
152
|
+
<div> font-size: 1.75rem, line-height: 2.5rem </div>
|
|
153
|
+
</div>
|
|
154
|
+
<div class="colors">
|
|
155
|
+
<div>XL: </div>
|
|
156
|
+
<div> font-size: 1.5rem, line-height: 2rem </div>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="colors">
|
|
159
|
+
<div>L: </div>
|
|
160
|
+
<div> font-size: 1.25rem, line-height: 1.75rem </div>
|
|
161
|
+
</div>
|
|
162
|
+
<div class="colors">
|
|
163
|
+
<div>M: </div>
|
|
164
|
+
<div> font-size: 1rem, line-height: 1.5rem </div>
|
|
165
|
+
</div>
|
|
166
|
+
<div class="colors">
|
|
167
|
+
<div>S: </div>
|
|
168
|
+
<div> font-size: 0.875rem, line-height: 1.25rem </div>
|
|
169
|
+
</div>
|
|
170
|
+
<div class="colors">
|
|
171
|
+
<div>XS: </div>
|
|
172
|
+
<div> font-size: 0.75rem, line-height: 1rem </div>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="colors">
|
|
175
|
+
<div>2XS: </div>
|
|
176
|
+
<div> font-size: 0.625rem, line-height: 0.75rem </div>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
|
|
@@ -12,7 +12,7 @@ var _Accordion = _interopRequireDefault(require("./Accordion"));
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
14
|
var _default = {
|
|
15
|
-
title: '
|
|
15
|
+
title: 'Components/Accordion',
|
|
16
16
|
component: _Accordion.default,
|
|
17
17
|
argTypes: {}
|
|
18
18
|
};
|
|
@@ -25,4 +25,6 @@ var Template = function Template(args) {
|
|
|
25
25
|
Template.displayName = "Template";
|
|
26
26
|
var Default = Template.bind({});
|
|
27
27
|
exports.Default = Default;
|
|
28
|
-
Default.args = {
|
|
28
|
+
Default.args = {
|
|
29
|
+
title: 'Title'
|
|
30
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
13
|
+
|
|
14
|
+
require("../../styles/main.css");
|
|
15
|
+
|
|
16
|
+
require("./Alert.css");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
|
+
|
|
24
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
|
|
26
|
+
var Alert = function Alert(_ref) {
|
|
27
|
+
var id = _ref.id,
|
|
28
|
+
className = _ref.className,
|
|
29
|
+
title = _ref.title,
|
|
30
|
+
type = _ref.type,
|
|
31
|
+
variant = _ref.variant,
|
|
32
|
+
fontWeight = _ref.fontWeight,
|
|
33
|
+
textAlign = _ref.textAlign,
|
|
34
|
+
colorText = _ref.colorText,
|
|
35
|
+
secondaryFont = _ref.secondaryFont,
|
|
36
|
+
component = _ref.component,
|
|
37
|
+
description = _ref.description,
|
|
38
|
+
icon = _ref.icon;
|
|
39
|
+
var stylesType = {
|
|
40
|
+
info: {
|
|
41
|
+
container: {
|
|
42
|
+
background: 'var(--accent25)',
|
|
43
|
+
color: 'var(--primary)'
|
|
44
|
+
},
|
|
45
|
+
icon: 'ri-information-line',
|
|
46
|
+
iconContainer: {
|
|
47
|
+
color: 'var(--primary)'
|
|
48
|
+
},
|
|
49
|
+
textContainer: {
|
|
50
|
+
color: 'var(--primary)'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
success: {
|
|
54
|
+
container: {
|
|
55
|
+
background: 'var(--gray1)',
|
|
56
|
+
color: 'var(--success)'
|
|
57
|
+
},
|
|
58
|
+
icon: 'ri-checkbox-circle-line',
|
|
59
|
+
iconContainer: {
|
|
60
|
+
color: 'var(--success)'
|
|
61
|
+
},
|
|
62
|
+
textContainer: {
|
|
63
|
+
color: 'var(--success)'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
error: {
|
|
67
|
+
container: {
|
|
68
|
+
background: 'var(--gray1)',
|
|
69
|
+
color: 'var(--error)'
|
|
70
|
+
},
|
|
71
|
+
icon: 'ri-error-warning-line',
|
|
72
|
+
iconContainer: {
|
|
73
|
+
color: 'var(--error)'
|
|
74
|
+
},
|
|
75
|
+
textContainer: {
|
|
76
|
+
color: 'var(--error)'
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
var getStyles = function getStyles(element) {
|
|
82
|
+
var typeStyles = type;
|
|
83
|
+
|
|
84
|
+
if (type !== 'info' && type !== 'success' && type !== 'error') {
|
|
85
|
+
typeStyles = 'info';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return stylesType[typeStyles][element];
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
92
|
+
id: id,
|
|
93
|
+
className: "cbx-alert-container ".concat(className),
|
|
94
|
+
style: _objectSpread({
|
|
95
|
+
alignItems: description ? '' : 'center'
|
|
96
|
+
}, getStyles('container'))
|
|
97
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
98
|
+
className: 'cbx-alert-block',
|
|
99
|
+
style: _objectSpread({}, getStyles('iconContainer'))
|
|
100
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
101
|
+
className: icon || getStyles('icon')
|
|
102
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
103
|
+
style: {
|
|
104
|
+
marginTop: description ? '0.25rem' : ''
|
|
105
|
+
}
|
|
106
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
107
|
+
styles: _objectSpread({}, getStyles('textContainer')),
|
|
108
|
+
variant: variant,
|
|
109
|
+
fontWeight: fontWeight,
|
|
110
|
+
textAlign: textAlign,
|
|
111
|
+
color: colorText,
|
|
112
|
+
secondaryFont: secondaryFont,
|
|
113
|
+
component: component
|
|
114
|
+
}, title), description));
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
Alert.displayName = "Alert";
|
|
118
|
+
Alert.propTypes = {
|
|
119
|
+
title: _propTypes.default.string,
|
|
120
|
+
id: _propTypes.default.string,
|
|
121
|
+
className: _propTypes.default.string,
|
|
122
|
+
type: _propTypes.default.string,
|
|
123
|
+
description: _propTypes.default.node
|
|
124
|
+
};
|
|
125
|
+
Alert.defaultProps = {
|
|
126
|
+
title: '',
|
|
127
|
+
id: '',
|
|
128
|
+
className: '',
|
|
129
|
+
type: '',
|
|
130
|
+
description: '',
|
|
131
|
+
icon: ''
|
|
132
|
+
};
|
|
133
|
+
var _default = Alert;
|
|
134
|
+
exports.default = _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _Alert = _interopRequireDefault(require("./Alert"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
title: 'Components/Alert',
|
|
16
|
+
component: _Alert.default,
|
|
17
|
+
argTypes: {
|
|
18
|
+
type: {
|
|
19
|
+
options: ['info', 'success', 'error'],
|
|
20
|
+
control: {
|
|
21
|
+
type: 'radio'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.default = _default;
|
|
27
|
+
|
|
28
|
+
var Template = function Template(args) {
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_Alert.default, args);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
Template.displayName = "Template";
|
|
33
|
+
var Default = Template.bind({});
|
|
34
|
+
exports.Default = Default;
|
|
35
|
+
Default.args = {
|
|
36
|
+
title: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer dignissim, dui congue pharetra vehicula, nibh lacus varius arcu.',
|
|
37
|
+
type: 'info'
|
|
38
|
+
};
|
|
@@ -21,7 +21,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
21
21
|
|
|
22
22
|
// import DesignAvatarText from './DesignAvatarText.stories';
|
|
23
23
|
var _default = {
|
|
24
|
-
title: '
|
|
24
|
+
title: 'Components/Avatar',
|
|
25
25
|
component: _Avatar.default,
|
|
26
26
|
argTypes: {
|
|
27
27
|
src: {
|
|
@@ -14,7 +14,7 @@ var _DesignAvatarGroup = _interopRequireDefault(require("./DesignAvatarGroup.sto
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
|
-
title: '
|
|
17
|
+
title: 'Components/AvatarGroup',
|
|
18
18
|
component: _AvatarGroup.default,
|
|
19
19
|
argTypes: {}
|
|
20
20
|
};
|
|
@@ -92,7 +92,7 @@ var ButtonBasic = function ButtonBasic(_ref) {
|
|
|
92
92
|
id: id,
|
|
93
93
|
className: "".concat(className || '', " ").concat(variant === 'secondaryDark' ? 'secondaryDark' : ''),
|
|
94
94
|
sx: _objectSpread(_objectSpread({}, sx), {}, {
|
|
95
|
-
height: '
|
|
95
|
+
height: '3rem',
|
|
96
96
|
'&:focus': {
|
|
97
97
|
outline: 'none!important'
|
|
98
98
|
},
|
|
@@ -156,8 +156,8 @@ var ButtonBasic = function ButtonBasic(_ref) {
|
|
|
156
156
|
'&.MuiButton-root.MuiButton-text:hover': {
|
|
157
157
|
backgroundColor: success || error ? 'transparent' : 'var(--accent25)'
|
|
158
158
|
},
|
|
159
|
-
paddingTop: '0.
|
|
160
|
-
paddingBottom: '0.
|
|
159
|
+
paddingTop: '0.75rem',
|
|
160
|
+
paddingBottom: '0.75rem',
|
|
161
161
|
paddingLeft: startIcon && endIcon ? 'var(--spacing16)' : startIcon ? 'var(--spacing16)' : 'var(--spacing24)',
|
|
162
162
|
paddingRight: startIcon && endIcon ? 'var(--spacing16)' : endIcon || loading ? 'var(--spacing16)' : 'var(--spacing24)',
|
|
163
163
|
boxShadow: 'none',
|