@omniumretail/component-library 0.1.9 → 0.1.10
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/.storybook/main.js +2 -7
- package/.storybook/preview.js +1 -0
- package/dist/bundle.js +7457 -0
- package/dist/main.css +263 -0
- package/dist/types/components/Button/Button.stories.d.ts +6 -0
- package/dist/types/components/Button/index.d.ts +6 -0
- package/dist/types/components/Header/Header.stories.d.ts +5 -0
- package/dist/types/components/Header/index.d.ts +6 -0
- package/dist/types/components/Input/Input.stories.d.ts +5 -0
- package/dist/types/components/Input/index.d.ts +7 -0
- package/dist/types/components/InputCountryCode/index.d.ts +8 -0
- package/dist/types/components/InputCountryCode/inputCountryCode.stories.d.ts +5 -0
- package/dist/types/components/Label/Label.stories.d.ts +6 -0
- package/dist/types/components/Label/index.d.ts +5 -0
- package/dist/types/components/Link/Link.stories.d.ts +7 -0
- package/dist/types/components/Link/index.d.ts +6 -0
- package/dist/types/components/Select/Select.stories.d.ts +6 -0
- package/dist/types/components/Select/index.d.ts +2 -0
- package/dist/types/components/Separator/Separator.stories.d.ts +6 -0
- package/dist/types/components/Separator/index.d.ts +11 -0
- package/dist/types/components/Table/Table.stories.d.ts +7 -0
- package/dist/types/components/Table/index.d.ts +19 -0
- package/dist/types/components/Tag/Tag.stories.d.ts +5 -0
- package/dist/types/components/Tag/index.d.ts +5 -0
- package/dist/types/components/index.d.ts +10 -0
- package/dist/types/constants/i18n.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +125 -16
- package/src/assets/scss/_global.scss +2 -2
- package/src/components/Button/Button.stories.tsx +1 -1
- package/src/components/Button/{Button.tsx → index.tsx} +0 -0
- package/src/components/Button/styles.module.scss +1 -3
- package/src/components/Header/Header.stories.tsx +1 -1
- package/src/components/Header/{Header.tsx → index.tsx} +2 -2
- package/src/components/Input/Input.stories.tsx +13 -0
- package/src/components/Input/index.tsx +21 -0
- package/src/components/Input/styles.module.scss +8 -0
- package/src/components/InputCountryCode/index.tsx +65 -0
- package/src/components/InputCountryCode/inputCountryCode.stories.tsx +33 -0
- package/src/components/InputCountryCode/styles.module.scss +3 -0
- package/src/components/Label/Label.stories.tsx +1 -1
- package/src/components/Label/{Label.tsx → index.tsx} +0 -0
- package/src/components/Link/Link.stories.tsx +1 -2
- package/src/components/Link/{Link.tsx → index.tsx} +0 -0
- package/src/components/Select/Select.stories.tsx +1 -1
- package/src/components/Select/{Select.tsx → index.tsx} +2 -1
- package/src/components/Select/styles.module.scss +3 -0
- package/src/components/Separator/Separator.stories.tsx +1 -1
- package/src/components/Separator/{Separator.tsx → index.tsx} +0 -0
- package/src/components/Table/Table.stories.tsx +152 -0
- package/src/components/Table/index.tsx +127 -0
- package/src/components/Table/styles.module.scss +63 -0
- package/src/components/Tag/Tag.stories.tsx +1 -1
- package/src/components/Tag/{Tag.tsx → index.tsx} +0 -0
- package/src/components/index.tsx +10 -0
- package/src/constants/i18n.ts +22 -0
- package/src/index.ts +1 -0
- package/src/locales/en.json +10 -0
- package/src/locales/es.json +10 -0
- package/src/locales/pt.json +10 -0
- package/src/types/Global.d.ts +4 -0
- package/tsconfig.json +4 -1
- package/webpack.config.js +48 -0
- package/.storybook/scss-presets.js +0 -61
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/src/App.css +0 -38
- package/src/App.test.tsx +0 -9
- package/src/App.tsx +0 -26
- package/src/index.css +0 -13
- package/src/index.js +0 -11
- package/src/index.tsx +0 -19
- package/src/logo.svg +0 -1
- package/src/react-app-env.d.ts +0 -1
- package/src/reportWebVitals.ts +0 -15
- package/src/setupTests.ts +0 -5
- package/storybook-static/229.99f6e327a87e983c7389.manager.bundle.js +0 -1
- package/storybook-static/229.f45c6d90.iframe.bundle.js +0 -1
- package/storybook-static/273.a2543f76.iframe.bundle.js +0 -2
- package/storybook-static/273.a2543f76.iframe.bundle.js.LICENSE.txt +0 -14
- package/storybook-static/295.872d37b80366654037c8.manager.bundle.js +0 -1
- package/storybook-static/409.1f5bfb7f7210fda2e343.manager.bundle.js +0 -2
- package/storybook-static/409.1f5bfb7f7210fda2e343.manager.bundle.js.LICENSE.txt +0 -97
- package/storybook-static/51.055af41355d551455300.manager.bundle.js +0 -2
- package/storybook-static/51.055af41355d551455300.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/51.69587a88.iframe.bundle.js +0 -2
- package/storybook-static/51.69587a88.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/548.2c621cac.iframe.bundle.js +0 -2
- package/storybook-static/548.2c621cac.iframe.bundle.js.LICENSE.txt +0 -102
- package/storybook-static/551.1647eb5d.iframe.bundle.js +0 -1
- package/storybook-static/551.7bddf628ac2ec1b17e0f.manager.bundle.js +0 -1
- package/storybook-static/701.d0c6e7bf.iframe.bundle.js +0 -1
- package/storybook-static/745.50b11d25.iframe.bundle.js +0 -1
- package/storybook-static/807.5048a3e40f1d1f1e3d8f.manager.bundle.js +0 -2
- package/storybook-static/807.5048a3e40f1d1f1e3d8f.manager.bundle.js.LICENSE.txt +0 -31
- package/storybook-static/807.899ed15a.iframe.bundle.js +0 -2
- package/storybook-static/807.899ed15a.iframe.bundle.js.LICENSE.txt +0 -31
- package/storybook-static/897.71aad9b5e10ae8334ffb.manager.bundle.js +0 -2
- package/storybook-static/897.71aad9b5e10ae8334ffb.manager.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/897.e263bb0b.iframe.bundle.js +0 -2
- package/storybook-static/897.e263bb0b.iframe.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/935.1d59a0f5d5ffadecc0db.manager.bundle.js +0 -1
- package/storybook-static/935.a9f48572.iframe.bundle.js +0 -1
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +0 -364
- package/storybook-static/index.html +0 -59
- package/storybook-static/logo192.png +0 -0
- package/storybook-static/logo512.png +0 -0
- package/storybook-static/main.bfef8ba6.iframe.bundle.js +0 -1
- package/storybook-static/main.dd12082b9ec45829986e.manager.bundle.js +0 -1
- package/storybook-static/manifest.json +0 -25
- package/storybook-static/project.json +0 -1
- package/storybook-static/robots.txt +0 -3
- package/storybook-static/runtime~main.1f97ee70.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.4332445a1662821dad2a.manager.bundle.js +0 -1
- package/storybook-static/static/css/main.f5f2ee7f.css +0 -10
- package/storybook-static/static/css/main.f5f2ee7f.css.map +0 -1
package/dist/main.css
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
/*!***************************************************************************************************************************************************************!*\
|
|
2
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Button/styles.module.scss ***!
|
|
3
|
+
\***************************************************************************************************************************************************************/
|
|
4
|
+
.lCPh1mJwiXUUOgmbv_mk {
|
|
5
|
+
padding: 12px 24px;
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
min-width: 100px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-self: flex-start;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
border: none;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 16.8px;
|
|
16
|
+
font-weight: 700;
|
|
17
|
+
font-family: "Silka", sans-serif;
|
|
18
|
+
background-color: var(--button-default-background);
|
|
19
|
+
color: var(--button-default-text-color);
|
|
20
|
+
}
|
|
21
|
+
.lCPh1mJwiXUUOgmbv_mk:hover {
|
|
22
|
+
background-color: var(--button-default-background-hover-color);
|
|
23
|
+
color: var(--button-default-text-hover-color) !important;
|
|
24
|
+
}
|
|
25
|
+
.lCPh1mJwiXUUOgmbv_mk:focus, .lCPh1mJwiXUUOgmbv_mk:active, .lCPh1mJwiXUUOgmbv_mk:focus:active {
|
|
26
|
+
background-color: var(--button-default-background-focus-color);
|
|
27
|
+
color: var(--button-default-text-focus-color);
|
|
28
|
+
}
|
|
29
|
+
.lCPh1mJwiXUUOgmbv_mk:disabled, .lCPh1mJwiXUUOgmbv_mk.vwrGv_jOJcIvImjzKZNv {
|
|
30
|
+
background-color: var(--button-disabled-background-color);
|
|
31
|
+
color: var(--button-disabled-default-text-color);
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|
|
34
|
+
.PYUelyvKNnKRxaBMgCyk {
|
|
35
|
+
flex-direction: row-reverse;
|
|
36
|
+
gap: 5px;
|
|
37
|
+
}
|
|
38
|
+
.edzSVcT9ajLWxd6QfVI1 {
|
|
39
|
+
background-color: var(--button-style-1-background);
|
|
40
|
+
color: var(--button-style-1-text-color);
|
|
41
|
+
}
|
|
42
|
+
.edzSVcT9ajLWxd6QfVI1:hover {
|
|
43
|
+
background-color: var(--button-style-1-background-hover-color);
|
|
44
|
+
color: var(--button-style-1-text-hover-color) !important;
|
|
45
|
+
}
|
|
46
|
+
.edzSVcT9ajLWxd6QfVI1:focus, .edzSVcT9ajLWxd6QfVI1:active, .edzSVcT9ajLWxd6QfVI1:focus:active {
|
|
47
|
+
background-color: var(--button-style-1-background-focus-color);
|
|
48
|
+
color: var(--button-style-1-text-focus-color);
|
|
49
|
+
}
|
|
50
|
+
.edzSVcT9ajLWxd6QfVI1:disabled, .edzSVcT9ajLWxd6QfVI1.vwrGv_jOJcIvImjzKZNv {
|
|
51
|
+
background-color: var(--button-disabled-background-color);
|
|
52
|
+
color: var(--button-disabled-default-text-color);
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
}
|
|
55
|
+
/*!***************************************************************************************************************************************************************!*\
|
|
56
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Header/styles.module.scss ***!
|
|
57
|
+
\***************************************************************************************************************************************************************/
|
|
58
|
+
.SF5f_Q_Ggz_4JHUHS2Xa {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
padding: 0 24px;
|
|
63
|
+
height: 75px;
|
|
64
|
+
gap: 0 24px;
|
|
65
|
+
position: relative;
|
|
66
|
+
}
|
|
67
|
+
@media (max-width: 767px) {
|
|
68
|
+
.SF5f_Q_Ggz_4JHUHS2Xa {
|
|
69
|
+
padding-top: 32px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@media (min-width: 767px) {
|
|
73
|
+
.SF5f_Q_Ggz_4JHUHS2Xa {
|
|
74
|
+
padding: 0 40px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.SF5f_Q_Ggz_4JHUHS2Xa .fVSt3bSZBcJGsOdA5nIN {
|
|
78
|
+
font-size: var(--font-size-body-4);
|
|
79
|
+
font-weight: var(--font-weight-semibold);
|
|
80
|
+
text-transform: uppercase;
|
|
81
|
+
}
|
|
82
|
+
@media (max-width: 767px) {
|
|
83
|
+
.SF5f_Q_Ggz_4JHUHS2Xa .yVW6IeVCSAwXxdRW9PIK {
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 0;
|
|
86
|
+
margin: 0 auto;
|
|
87
|
+
left: 0;
|
|
88
|
+
right: 0;
|
|
89
|
+
text-align: center;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/*!*************************************************************************************************************************************************************!*\
|
|
93
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Link/styles.module.scss ***!
|
|
94
|
+
\*************************************************************************************************************************************************************/
|
|
95
|
+
.ii1Ag3GTfp8unGCe48A0 {
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
text-decoration: none;
|
|
98
|
+
height: auto;
|
|
99
|
+
color: var(--color-black);
|
|
100
|
+
font-size: var(--font-size-body-3);
|
|
101
|
+
line-height: 100%;
|
|
102
|
+
font-weight: 300;
|
|
103
|
+
font-style: var(--font-style-italic);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.L9ncGwaItcjHJBLuwrKb {
|
|
107
|
+
color: var(--color-orange);
|
|
108
|
+
font-style: var(--font-style-normal);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.Yrb4eAglcF7FedoEB9AH span:nth-child(2) {
|
|
112
|
+
margin-inline-end: 8px;
|
|
113
|
+
margin-inline-start: 0;
|
|
114
|
+
order: -1;
|
|
115
|
+
}
|
|
116
|
+
/*!**************************************************************************************************************************************************************!*\
|
|
117
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Input/styles.module.scss ***!
|
|
118
|
+
\**************************************************************************************************************************************************************/
|
|
119
|
+
.GhX1oPovx60SBqLAcIRO {
|
|
120
|
+
border-color: rgba(var(--color-black-rgb), 0.5);
|
|
121
|
+
height: 50px;
|
|
122
|
+
font-size: var(--font-size-body-3);
|
|
123
|
+
line-height: 100%;
|
|
124
|
+
color: var(--color-black);
|
|
125
|
+
border-radius: 5px;
|
|
126
|
+
}
|
|
127
|
+
/*!***************************************************************************************************************************************************************!*\
|
|
128
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Select/styles.module.scss ***!
|
|
129
|
+
\***************************************************************************************************************************************************************/
|
|
130
|
+
._ox_QPqUHev1INeaUhs7 .ant-select-selector {
|
|
131
|
+
border-color: rgba(var(--color-black-rgb), 0.5) !important;
|
|
132
|
+
height: 50px !important;
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
}
|
|
136
|
+
._ox_QPqUHev1INeaUhs7 .ant-select-arrow {
|
|
137
|
+
color: var(--color-black);
|
|
138
|
+
}
|
|
139
|
+
/*!*************************************************************************************************************************************************************************!*\
|
|
140
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/InputCountryCode/styles.module.scss ***!
|
|
141
|
+
\*************************************************************************************************************************************************************************/
|
|
142
|
+
.bisuiYUGnAaj47TMXXcY {
|
|
143
|
+
display: flex !important;
|
|
144
|
+
}
|
|
145
|
+
/*!**************************************************************************************************************************************************************!*\
|
|
146
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Label/styles.module.scss ***!
|
|
147
|
+
\**************************************************************************************************************************************************************/
|
|
148
|
+
.YPXf1KvhUKPvYzjuCpbK {
|
|
149
|
+
display: block;
|
|
150
|
+
color: var(--color-black);
|
|
151
|
+
text-transform: capitalize;
|
|
152
|
+
font-size: var(--font-size-body-base);
|
|
153
|
+
line-height: 125%;
|
|
154
|
+
font-weight: var(--font-weight-semibold);
|
|
155
|
+
}
|
|
156
|
+
.YPXf1KvhUKPvYzjuCpbK:not(:first-child) {
|
|
157
|
+
margin-top: 8px;
|
|
158
|
+
}
|
|
159
|
+
.YPXf1KvhUKPvYzjuCpbK.FpsgzNaIkKnxuWthvj1T {
|
|
160
|
+
margin-top: 24px;
|
|
161
|
+
}
|
|
162
|
+
/*!******************************************************************************************************************************************************************!*\
|
|
163
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Separator/styles.module.scss ***!
|
|
164
|
+
\******************************************************************************************************************************************************************/
|
|
165
|
+
.EBnBgAHgtsQFrDoso9Dw {
|
|
166
|
+
background-color: var(--color-orange);
|
|
167
|
+
height: 1px;
|
|
168
|
+
border: none;
|
|
169
|
+
}
|
|
170
|
+
.FLVlQ5eFtNDkCl4IcIIx {
|
|
171
|
+
opacity: 50%;
|
|
172
|
+
}
|
|
173
|
+
.L2HU9MLCi6B1ZsJyWfp9 {
|
|
174
|
+
background-color: var(--color-blue);
|
|
175
|
+
}
|
|
176
|
+
.MQcBac9Gnb9D2ONENY8Q {
|
|
177
|
+
margin: 8px 0;
|
|
178
|
+
}
|
|
179
|
+
.tdvYp9O5RnLEsNa3E_wz {
|
|
180
|
+
margin: 16px 0;
|
|
181
|
+
}
|
|
182
|
+
.hWWGCDnwP_ROWFDlyVxe {
|
|
183
|
+
margin: 24px 0;
|
|
184
|
+
}
|
|
185
|
+
/*!**************************************************************************************************************************************************************!*\
|
|
186
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Table/styles.module.scss ***!
|
|
187
|
+
\**************************************************************************************************************************************************************/
|
|
188
|
+
.pwZdBKCECvzAH92fQDTI {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-wrap: wrap;
|
|
191
|
+
flex-direction: column;
|
|
192
|
+
}
|
|
193
|
+
.pwZdBKCECvzAH92fQDTI .ant-table-thead > tr > th {
|
|
194
|
+
background-color: transparent;
|
|
195
|
+
border: 0px;
|
|
196
|
+
color: var(--color-blue);
|
|
197
|
+
}
|
|
198
|
+
.pwZdBKCECvzAH92fQDTI .ant-table-thead > tr > th:before {
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
.pwZdBKCECvzAH92fQDTI .ant-table-tbody > tr {
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
}
|
|
204
|
+
.pwZdBKCECvzAH92fQDTI .ant-table-tbody > tr:last-child > td {
|
|
205
|
+
border-bottom: 1px solid var(--color-grey-light) !important;
|
|
206
|
+
}
|
|
207
|
+
.pwZdBKCECvzAH92fQDTI .ant-table-tbody > tr:first-child > td {
|
|
208
|
+
border-top: 1px solid var(--color-blue) !important;
|
|
209
|
+
}
|
|
210
|
+
.pwZdBKCECvzAH92fQDTI .ant-table-tbody > tr:hover td {
|
|
211
|
+
border-radius: 0 !important;
|
|
212
|
+
border-bottom-color: var(--color-grey-light) !important;
|
|
213
|
+
}
|
|
214
|
+
.pwZdBKCECvzAH92fQDTI .ant-space {
|
|
215
|
+
align-self: flex-end;
|
|
216
|
+
}
|
|
217
|
+
.pwZdBKCECvzAH92fQDTI .ant-select-selection-placeholder {
|
|
218
|
+
color: var(--color-black);
|
|
219
|
+
}
|
|
220
|
+
.pwZdBKCECvzAH92fQDTI .ant-select-selector,
|
|
221
|
+
.pwZdBKCECvzAH92fQDTI .ant-select-focused .ant-select-selection-search {
|
|
222
|
+
border: none !important;
|
|
223
|
+
box-shadow: none !important;
|
|
224
|
+
}
|
|
225
|
+
.pwZdBKCECvzAH92fQDTI .ant-select-selector:focus, .pwZdBKCECvzAH92fQDTI .ant-select-selector:hover,
|
|
226
|
+
.pwZdBKCECvzAH92fQDTI .ant-select-focused .ant-select-selection-search:focus,
|
|
227
|
+
.pwZdBKCECvzAH92fQDTI .ant-select-focused .ant-select-selection-search:hover {
|
|
228
|
+
border: none !important;
|
|
229
|
+
box-shadow: none !important;
|
|
230
|
+
}
|
|
231
|
+
/*!************************************************************************************************************************************************************!*\
|
|
232
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Tag/styles.module.scss ***!
|
|
233
|
+
\************************************************************************************************************************************************************/
|
|
234
|
+
.yhGDUJJiYhqjPCJgNdjI {
|
|
235
|
+
contain: inline-size;
|
|
236
|
+
}
|
|
237
|
+
.LEywos4xlf3LV6eEFLFv {
|
|
238
|
+
height: 50px;
|
|
239
|
+
display: flex;
|
|
240
|
+
align-items: center;
|
|
241
|
+
gap: 12px;
|
|
242
|
+
padding: 16px;
|
|
243
|
+
}
|
|
244
|
+
.LEywos4xlf3LV6eEFLFv .ant-input {
|
|
245
|
+
height: 50px;
|
|
246
|
+
padding-left: 40px;
|
|
247
|
+
}
|
|
248
|
+
.VhQgSZHBi1swQZeQePfL {
|
|
249
|
+
height: 50px;
|
|
250
|
+
}
|
|
251
|
+
.Hfh5KLg4Y_g44Ajhx9aV .ant-tag {
|
|
252
|
+
background-color: var(--color-orange);
|
|
253
|
+
color: var(--color-white);
|
|
254
|
+
padding: 6px 16px;
|
|
255
|
+
max-width: 240px;
|
|
256
|
+
}
|
|
257
|
+
.Hfh5KLg4Y_g44Ajhx9aV .anticon-close {
|
|
258
|
+
color: var(--color-white);
|
|
259
|
+
font-size: 12px;
|
|
260
|
+
}
|
|
261
|
+
.Hfh5KLg4Y_g44Ajhx9aV .anticon-close:hover {
|
|
262
|
+
color: var(--color-black);
|
|
263
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
import { CustomButtonProps } from '.';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: Story<CustomButtonProps>;
|
|
6
|
+
export declare const Secondary: Story<CustomButtonProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FormItemProps, InputProps } from 'antd';
|
|
2
|
+
export interface FormInputFieldProps extends Omit<FormItemProps, "name"> {
|
|
3
|
+
name: string;
|
|
4
|
+
inputProps?: InputProps;
|
|
5
|
+
}
|
|
6
|
+
export declare const InputField: (inputProps: InputProps) => JSX.Element;
|
|
7
|
+
export declare const FormInputField: ({ inputProps, ...itemProps }: FormInputFieldProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormItemProps, InputProps, SelectProps } from 'antd';
|
|
2
|
+
export interface FormInputCountryCodeProps extends Omit<FormItemProps, "name"> {
|
|
3
|
+
name: string;
|
|
4
|
+
selectProps?: SelectProps;
|
|
5
|
+
inputProps?: InputProps;
|
|
6
|
+
inputWithSelectBoxValue?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const InputCountryCode: ({ inputProps, selectProps, inputWithSelectBoxValue, ...itemProps }: FormInputCountryCodeProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
import { LabelProps } from '.';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: Story<LabelProps>;
|
|
6
|
+
export declare const Secondary: Story<LabelProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
import { CustomLinkProps } from '.';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: Story<CustomLinkProps>;
|
|
6
|
+
export declare const Secondary: Story<CustomLinkProps>;
|
|
7
|
+
export declare const iconAlignRight: Story<CustomLinkProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
import { SelectProps } from 'antd';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: Story<SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>>;
|
|
6
|
+
export declare const noArguments: Story<SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
import { SeparatorProps } from '.';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: Story<SeparatorProps>;
|
|
6
|
+
export declare const Secondary: Story<SeparatorProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
import { customTableProps } from '.';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: Story<customTableProps>;
|
|
6
|
+
export declare const Secondary: Story<customTableProps>;
|
|
7
|
+
export declare const WithCheckbox: Story<customTableProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TableProps } from 'antd';
|
|
2
|
+
export interface FilterOptions {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
direction: string;
|
|
6
|
+
}
|
|
7
|
+
export declare enum sortBy {
|
|
8
|
+
asc = "asc",
|
|
9
|
+
desc = "desc"
|
|
10
|
+
}
|
|
11
|
+
export interface customTableProps extends TableProps<any> {
|
|
12
|
+
fieldsToSort?: any[];
|
|
13
|
+
selectPlaceholder?: string;
|
|
14
|
+
onSort?: (field: any, sortBy: any) => void;
|
|
15
|
+
sortInfo?: any;
|
|
16
|
+
paginationInfo?: any;
|
|
17
|
+
headingTranslationsKey?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const CustomTable: (props: customTableProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './Header';
|
|
3
|
+
export * from './Input';
|
|
4
|
+
export * from './InputCountryCode';
|
|
5
|
+
export * from './Label';
|
|
6
|
+
export * from './Link';
|
|
7
|
+
export * from './Select';
|
|
8
|
+
export * from './Separator';
|
|
9
|
+
export * from './Table';
|
|
10
|
+
export * from './Tag';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
package/package.json
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omniumretail/component-library",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"private": false,
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://bitbucket.org/product_admin/components-lib-omnium/src/"
|
|
10
|
-
},
|
|
11
|
-
"author": "",
|
|
12
|
-
"license": "MIT",
|
|
5
|
+
"main": "dist/bundle.js",
|
|
6
|
+
"typings": "./dist/types/index",
|
|
13
7
|
"dependencies": {
|
|
8
|
+
"@ant-design/icons": "^4.8.0",
|
|
9
|
+
"@babel/core": "^7.16.0",
|
|
10
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
11
|
+
"@svgr/webpack": "^5.5.0",
|
|
14
12
|
"@testing-library/jest-dom": "^5.14.1",
|
|
15
13
|
"@testing-library/react": "^13.0.0",
|
|
16
14
|
"@testing-library/user-event": "^13.2.1",
|
|
@@ -18,19 +16,67 @@
|
|
|
18
16
|
"@types/node": "^18.11.11",
|
|
19
17
|
"@types/react": "^18.0.26",
|
|
20
18
|
"@types/react-dom": "^18.0.9",
|
|
19
|
+
"antd": "^5.1.2",
|
|
20
|
+
"babel-jest": "^27.4.2",
|
|
21
|
+
"babel-loader": "^8.2.3",
|
|
22
|
+
"babel-plugin-named-asset-import": "^0.3.8",
|
|
23
|
+
"babel-preset-react-app": "^10.0.1",
|
|
24
|
+
"bfj": "^7.0.2",
|
|
25
|
+
"browserslist": "^4.18.1",
|
|
26
|
+
"camelcase": "^6.2.1",
|
|
27
|
+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
21
28
|
"classnames": "^2.3.2",
|
|
29
|
+
"css-loader": "^6.5.1",
|
|
30
|
+
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
31
|
+
"dotenv": "^10.0.0",
|
|
32
|
+
"dotenv-expand": "^5.1.0",
|
|
33
|
+
"eslint": "^8.3.0",
|
|
34
|
+
"eslint-config-react-app": "^7.0.1",
|
|
35
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
36
|
+
"file-loader": "^6.2.0",
|
|
37
|
+
"fs-extra": "^10.0.0",
|
|
38
|
+
"html-webpack-plugin": "^5.5.0",
|
|
39
|
+
"i18next": "^22.4.9",
|
|
40
|
+
"i18next-browser-languagedetector": "^7.0.1",
|
|
41
|
+
"i18next-fetch-backend": "^5.0.1",
|
|
42
|
+
"identity-obj-proxy": "^3.0.0",
|
|
43
|
+
"jest": "^27.4.3",
|
|
44
|
+
"jest-resolve": "^27.4.2",
|
|
45
|
+
"jest-watch-typeahead": "^1.0.0",
|
|
46
|
+
"mini-css-extract-plugin": "^2.7.2",
|
|
47
|
+
"postcss": "^8.4.4",
|
|
48
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
49
|
+
"postcss-loader": "^6.2.1",
|
|
50
|
+
"postcss-normalize": "^10.0.1",
|
|
51
|
+
"postcss-preset-env": "^7.0.1",
|
|
52
|
+
"prompts": "^2.4.2",
|
|
53
|
+
"rc-tween-one": "^3.0.6",
|
|
22
54
|
"react": "^18.2.0",
|
|
55
|
+
"react-app-polyfill": "^3.0.0",
|
|
56
|
+
"react-dev-utils": "^12.0.1",
|
|
23
57
|
"react-dom": "^18.2.0",
|
|
24
|
-
"react-
|
|
58
|
+
"react-i18next": "^12.1.4",
|
|
59
|
+
"react-refresh": "^0.11.0",
|
|
60
|
+
"resolve": "^1.20.0",
|
|
61
|
+
"resolve-url-loader": "^4.0.0",
|
|
25
62
|
"sass": "^1.56.1",
|
|
63
|
+
"sass-loader": "^12.3.0",
|
|
64
|
+
"semver": "^7.3.5",
|
|
65
|
+
"source-map-loader": "^3.0.0",
|
|
66
|
+
"style-loader": "^3.3.1",
|
|
67
|
+
"tailwindcss": "^3.0.2",
|
|
68
|
+
"terser-webpack-plugin": "^5.2.5",
|
|
26
69
|
"typescript": "^4.9.3",
|
|
27
|
-
"web-vitals": "^2.1.0"
|
|
70
|
+
"web-vitals": "^2.1.0",
|
|
71
|
+
"webpack-dev-server": "^4.6.0",
|
|
72
|
+
"webpack-manifest-plugin": "^4.0.2",
|
|
73
|
+
"workbox-webpack-plugin": "^6.4.1"
|
|
28
74
|
},
|
|
29
75
|
"scripts": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
76
|
+
"prepublish": "rm -rf ./dist && npm run build",
|
|
77
|
+
"start": "webpack -w",
|
|
78
|
+
"build": "webpack",
|
|
79
|
+
"test": "node scripts/test.js",
|
|
34
80
|
"storybook": "start-storybook -p 6006 -s public",
|
|
35
81
|
"build-storybook": "build-storybook -s public"
|
|
36
82
|
},
|
|
@@ -75,6 +121,69 @@
|
|
|
75
121
|
"@storybook/testing-library": "^0.0.13",
|
|
76
122
|
"babel-plugin-named-exports-order": "^0.0.2",
|
|
77
123
|
"prop-types": "^15.8.1",
|
|
78
|
-
"
|
|
124
|
+
"react-scripts": "^5.0.1",
|
|
125
|
+
"storybook-addon-sass-postcss": "^0.1.3",
|
|
126
|
+
"storybook-css-modules": "^1.0.8",
|
|
127
|
+
"ts-loader": "^9.4.2",
|
|
128
|
+
"webpack": "^5.75.0",
|
|
129
|
+
"webpack-cli": "^5.0.1"
|
|
130
|
+
},
|
|
131
|
+
"jest": {
|
|
132
|
+
"roots": [
|
|
133
|
+
"<rootDir>/src"
|
|
134
|
+
],
|
|
135
|
+
"collectCoverageFrom": [
|
|
136
|
+
"src/**/*.{js,jsx,ts,tsx}",
|
|
137
|
+
"!src/**/*.d.ts"
|
|
138
|
+
],
|
|
139
|
+
"setupFiles": [
|
|
140
|
+
"react-app-polyfill/jsdom"
|
|
141
|
+
],
|
|
142
|
+
"setupFilesAfterEnv": [
|
|
143
|
+
"<rootDir>/src/setupTests.ts"
|
|
144
|
+
],
|
|
145
|
+
"testMatch": [
|
|
146
|
+
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
147
|
+
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
148
|
+
],
|
|
149
|
+
"testEnvironment": "jsdom",
|
|
150
|
+
"transform": {
|
|
151
|
+
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
|
|
152
|
+
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
153
|
+
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
154
|
+
},
|
|
155
|
+
"transformIgnorePatterns": [
|
|
156
|
+
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
|
|
157
|
+
"^.+\\.module\\.(css|sass|scss)$"
|
|
158
|
+
],
|
|
159
|
+
"modulePaths": [
|
|
160
|
+
"/Users/carlossoares/Workplace/Sitoo/components-lib-omnium/component-library/src"
|
|
161
|
+
],
|
|
162
|
+
"moduleNameMapper": {
|
|
163
|
+
"^react-native$": "react-native-web",
|
|
164
|
+
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
165
|
+
},
|
|
166
|
+
"moduleFileExtensions": [
|
|
167
|
+
"web.js",
|
|
168
|
+
"js",
|
|
169
|
+
"web.ts",
|
|
170
|
+
"ts",
|
|
171
|
+
"web.tsx",
|
|
172
|
+
"tsx",
|
|
173
|
+
"json",
|
|
174
|
+
"web.jsx",
|
|
175
|
+
"jsx",
|
|
176
|
+
"node"
|
|
177
|
+
],
|
|
178
|
+
"watchPlugins": [
|
|
179
|
+
"jest-watch-typeahead/filename",
|
|
180
|
+
"jest-watch-typeahead/testname"
|
|
181
|
+
],
|
|
182
|
+
"resetMocks": true
|
|
183
|
+
},
|
|
184
|
+
"babel": {
|
|
185
|
+
"presets": [
|
|
186
|
+
"react-app"
|
|
187
|
+
]
|
|
79
188
|
}
|
|
80
189
|
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
--color-blue: #09168B;
|
|
12
12
|
--color-blue-rgb: 9, 22, 139;
|
|
13
13
|
|
|
14
|
-
--color-grey-light: #
|
|
15
|
-
--color-grey-light-rgb:
|
|
14
|
+
--color-grey-light: #f0f0f0;
|
|
15
|
+
--color-grey-light-rgb: 240, 240, 240;
|
|
16
16
|
--color-grey: #C7CAC9;
|
|
17
17
|
--color-grey-rgb: 199, 202, 201;
|
|
18
18
|
--color-grey-dark: #797979;
|
|
File without changes
|