w-design-system 0.0.28 → 0.0.29
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/preview.ts +1 -0
- package/dist/components/DateRangePicker/styles.d.ts.map +1 -1
- package/dist/components/DateRangePicker/styles.js +0 -1
- package/dist/components/DateRangePicker/styles.js.map +1 -1
- package/dist/components/Input/styles.d.ts.map +1 -1
- package/dist/components/Input/styles.js +29 -13
- package/dist/components/Input/styles.js.map +1 -1
- package/dist/components/Select/styles.d.ts.map +1 -1
- package/dist/components/Select/styles.js +17 -9
- package/dist/components/Select/styles.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/src/globalStyles.d.ts.map +1 -1
- package/dist/src/globalStyles.js +6 -1
- package/dist/src/globalStyles.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DateRangePicker/styles.ts +0 -1
- package/src/components/Input/styles.ts +29 -13
- package/src/components/Select/styles.ts +17 -10
- package/src/index.tsx +2 -2
- package/src/reset.css +6 -0
- package/src/src/globalStyles.ts +9 -4
package/.storybook/preview.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/DateRangePicker/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,6NAYxB,CAAA;AAED,eAAO,MAAM,oBAAoB,6NAKhC,CAAA;AAED,eAAO,MAAM,cAAc,6NAyB1B,CAAA;AACD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,cAAc,EAAE,OAAO,CAAA;CACxB;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/DateRangePicker/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,6NAYxB,CAAA;AAED,eAAO,MAAM,oBAAoB,6NAKhC,CAAA;AAED,eAAO,MAAM,cAAc,6NAyB1B,CAAA;AACD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,cAAc,EAAE,OAAO,CAAA;CACxB;AAED,eAAO,MAAM,WAAW,qPAkBvB,CAAA;AAED,MAAM,WAAW,kCAAkC;IACjD,KAAK,EAAE,OAAO,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,cAAc,EAAE,OAAO,CAAA;IACvB,QAAQ,EAAE,OAAO,CAAA;CAClB;AACD,eAAO,MAAM,6BAA6B,uQAiCzC,CAAA;AACD,eAAO,MAAM,gBAAgB,6NAO5B,CAAA"}
|
|
@@ -50,7 +50,6 @@ export const CalendarDay = styled.div `
|
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
width: 36px;
|
|
52
52
|
height: 36px;
|
|
53
|
-
box-sizing: border-box;
|
|
54
53
|
color: ${({ isFirstSelected, isLastSelected }) => isFirstSelected || isLastSelected ? theme.colors.white : theme.colors.shade50};
|
|
55
54
|
|
|
56
55
|
&:before {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/DateRangePicker/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAEjC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;eAUvB,KAAK,CAAC,SAAS,CAAC,KAAK;WACzB,KAAK,CAAC,MAAM,CAAC,OAAO;CAC9B,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;eAC/B,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC;WAC/B,KAAK,CAAC,MAAM,CAAC,OAAO;;;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,MAAM,CAAC,GAAG,CAAA;;;;;;;CAOzC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAA;AAEjC,eAAO,MAAM,YAAY,6NAExB,CAAA;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAA;AAEjC,eAAO,MAAM,YAAY,6NAExB,CAAA;AAED,eAAO,MAAM,WAAW,sOA4BvB,CAAA;AAED,eAAO,MAAM,WAAW,sOAavB,CAAA;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,kBAAkB,4PAiB9B,CAAA;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,QAAQ,CAAA;IACf,OAAO,EAAE,QAAQ,CAAA;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,2PAa7B,CAAA"}
|
|
@@ -5,50 +5,63 @@ export const InputWrapper = styled.div `
|
|
|
5
5
|
`;
|
|
6
6
|
export const StyledInput = styled.input `
|
|
7
7
|
width: 100%;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
font-size: ${theme.paragraph.medium};
|
|
8
|
+
|
|
9
|
+
background-color: transparent;
|
|
11
10
|
border: none;
|
|
11
|
+
outline: none;
|
|
12
|
+
|
|
12
13
|
color: ${theme.colors.shade50};
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
font-family: ${theme.fonts.join(', ')};
|
|
16
|
+
font-size: ${theme.paragraph.medium};
|
|
17
|
+
|
|
15
18
|
&:active,
|
|
16
19
|
&:focus {
|
|
17
20
|
outline: none;
|
|
18
21
|
border: none;
|
|
19
22
|
}
|
|
23
|
+
|
|
20
24
|
&::placeholder {
|
|
21
25
|
color: ${theme.colors.shade30};
|
|
22
26
|
font-size: ${theme.paragraph.medium};
|
|
23
27
|
opacity: 1;
|
|
24
28
|
}
|
|
29
|
+
|
|
25
30
|
&:disabled {
|
|
26
|
-
background-color: transparent
|
|
31
|
+
background-color: transparent;
|
|
27
32
|
cursor: not-allowed;
|
|
28
33
|
}
|
|
29
34
|
`;
|
|
30
35
|
export const StyledLabel = styled.label `
|
|
31
36
|
position: absolute;
|
|
37
|
+
color: ${theme.colors.shade50};
|
|
38
|
+
|
|
39
|
+
box-sizing: content-box;
|
|
32
40
|
left: 15px;
|
|
33
41
|
top: -8px;
|
|
34
42
|
padding: 0 1px;
|
|
35
|
-
|
|
36
|
-
font-size: ${theme.paragraph.small};
|
|
37
|
-
color: ${theme.colors.shade50};
|
|
43
|
+
|
|
38
44
|
font-family: 'Nunito Sans', sans-serif;
|
|
45
|
+
font-size: ${theme.paragraph.small};
|
|
46
|
+
font-weight: 600;
|
|
39
47
|
text-wrap: nowrap;
|
|
40
48
|
`;
|
|
41
49
|
export const StyledInputContent = styled.div `
|
|
42
50
|
position: relative;
|
|
43
|
-
|
|
51
|
+
|
|
44
52
|
display: flex;
|
|
45
|
-
gap: 8px;
|
|
46
|
-
height: 22px;
|
|
47
53
|
align-items: center;
|
|
48
54
|
justify-content: space-between;
|
|
55
|
+
|
|
56
|
+
box-sizing: content-box;
|
|
57
|
+
padding: 18px 16px 14px 16px;
|
|
58
|
+
height: 22px;
|
|
59
|
+
gap: 8px;
|
|
49
60
|
border-radius: 4px;
|
|
50
|
-
|
|
61
|
+
|
|
51
62
|
background-color: ${({ disabled }) => disabled ? theme.colors.shade10 : theme.colors.white};
|
|
63
|
+
|
|
64
|
+
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
|
|
52
65
|
`;
|
|
53
66
|
/**
|
|
54
67
|
* O clip-path faz com que o elemento fique transparente na região do label
|
|
@@ -57,9 +70,12 @@ export const StyledInputContent = styled.div `
|
|
|
57
70
|
*/
|
|
58
71
|
export const StyledInputBorder = styled.div `
|
|
59
72
|
position: absolute;
|
|
73
|
+
|
|
74
|
+
box-sizing: content-box;
|
|
60
75
|
inset: 0px;
|
|
61
76
|
border-radius: 4px;
|
|
62
77
|
border: 1px solid ${theme.colors.shade20};
|
|
78
|
+
|
|
63
79
|
clip-rule: evenodd;
|
|
64
80
|
clip-path: path(
|
|
65
81
|
'${({ label, content }) => `M ${content.x} ${content.y} l ${content.width} 0 l 0 ${content.height} l -${content.width} 0z M ${label.x} ${label.y} l 0 ${label.height} l ${label.width} 0 l 0 -${label.height}z`}'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAGjC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;CAErC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAA;;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAGjC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;CAErC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAA;;;;;;;WAO5B,KAAK,CAAC,MAAM,CAAC,OAAO;;iBAEd,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;eACxB,KAAK,CAAC,SAAS,CAAC,MAAM;;;;;;;;;aASxB,KAAK,CAAC,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|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,6NAQzB,CAAA;AAED,eAAO,MAAM,QAAQ,6NAWpB,CAAA;AAED,eAAO,MAAM,eAAe,6NAG3B,CAAA;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,YAAY,kQA0BxB,CAAA"}
|
|
@@ -11,30 +11,38 @@ export const SelectWrapper = styled.div `
|
|
|
11
11
|
`;
|
|
12
12
|
export const Dropdown = styled.div `
|
|
13
13
|
position: absolute;
|
|
14
|
+
|
|
15
|
+
box-sizing: content-box;
|
|
14
16
|
width: 252px;
|
|
17
|
+
margin-top: 7px;
|
|
15
18
|
padding: 16px;
|
|
16
|
-
|
|
19
|
+
|
|
17
20
|
border-radius: 4px;
|
|
18
21
|
border: 1px solid ${theme.colors.shade20};
|
|
19
|
-
margin-top: 7px;
|
|
20
22
|
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
|
|
21
23
|
`;
|
|
22
24
|
export const DropdownWrapper = styled.div `
|
|
23
25
|
position: relative;
|
|
26
|
+
z-index: ${theme.zIndex.z9};
|
|
24
27
|
`;
|
|
25
28
|
export const OptionButton = styled.button `
|
|
29
|
+
display: flex;
|
|
30
|
+
|
|
31
|
+
align-items: center;
|
|
32
|
+
|
|
33
|
+
color: ${({ selected }) => (selected ? theme.colors.cyan30 : theme.colors.shade40)};
|
|
26
34
|
background-color: transparent;
|
|
27
35
|
border: none;
|
|
28
|
-
|
|
29
|
-
font-family: 'Nunito Sans', sans-serif;
|
|
30
|
-
color: ${({ selected }) => (selected ? theme.colors.cyan30 : theme.colors.shade40)};
|
|
36
|
+
|
|
31
37
|
cursor: pointer;
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
|
|
39
|
+
font-family: 'Nunito Sans', sans-serif;
|
|
40
|
+
font-size: ${theme.paragraph.medium};
|
|
34
41
|
text-align: left;
|
|
42
|
+
|
|
35
43
|
height: 46px;
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
width: 100%;
|
|
45
|
+
padding: 0;
|
|
38
46
|
|
|
39
47
|
&:not(:last-child) {
|
|
40
48
|
border-bottom: 1px solid ${theme.colors.shade10};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAEjC,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;CAQtC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAEjC,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;CAQtC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;sBASZ,KAAK,CAAC,MAAM,CAAC,OAAO;;CAEzC,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;aAE5B,KAAK,CAAC,MAAM,CAAC,EAAE;CAC3B,CAAA;AAMD,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAmB;;;;;WAKjD,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;;;;;;;eAOrE,KAAK,CAAC,SAAS,CAAC,MAAM;;;;;;;;+BAQN,KAAK,CAAC,MAAM,CAAC,OAAO;;;;aAItC,KAAK,CAAC,MAAM,CAAC,MAAM;;CAE/B,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ export { Banner } from './components/Banner/index';
|
|
|
2
2
|
export { Button } from './components/Button/index';
|
|
3
3
|
export { ButtonRadiusIcon } from './components/ButtonRadiusIcon/index';
|
|
4
4
|
export { ButtonRound } from './components/ButtonRound/index';
|
|
5
|
-
export { DatePicker
|
|
5
|
+
export { DatePicker } from './components/DatePicker/index';
|
|
6
6
|
export { IconWrapper } from './components/IconWrapper/index';
|
|
7
7
|
export { Input } from './components/Input/index';
|
|
8
8
|
export { Modal } from './components/Modal/index';
|
|
9
9
|
export { Paginate } from './components/Paginate/index';
|
|
10
10
|
export { Paragraph } from './components/Paragraph/index';
|
|
11
|
-
export { DateRangePicker
|
|
11
|
+
export { DateRangePicker } from './components/DateRangePicker/index';
|
|
12
12
|
export { Table } from './components/Table/index';
|
|
13
13
|
export { Tabs } from './components/Tabs/index';
|
|
14
14
|
export { theme } from './components/Themes/index';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,WAAW,EACX,cAAc,EACd,cAAc,EACd,eAAe,EACf,QAAQ,EACR,UAAU,EACV,WAAW,EACX,MAAM,EACN,OAAO,EACP,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,OAAO,EACP,SAAS,EACT,QAAQ,EACR,aAAa,EACb,UAAU,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,GACR,MAAM,qBAAqB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ export { Banner } from './components/Banner/index';
|
|
|
2
2
|
export { Button } from './components/Button/index';
|
|
3
3
|
export { ButtonRadiusIcon } from './components/ButtonRadiusIcon/index';
|
|
4
4
|
export { ButtonRound } from './components/ButtonRound/index';
|
|
5
|
-
export { DatePicker
|
|
5
|
+
export { DatePicker } from './components/DatePicker/index';
|
|
6
6
|
export { IconWrapper } from './components/IconWrapper/index';
|
|
7
7
|
export { Input } from './components/Input/index';
|
|
8
8
|
export { Modal } from './components/Modal/index';
|
|
9
9
|
export { Paginate } from './components/Paginate/index';
|
|
10
10
|
export { Paragraph } from './components/Paragraph/index';
|
|
11
|
-
export { DateRangePicker
|
|
11
|
+
export { DateRangePicker } from './components/DateRangePicker/index';
|
|
12
12
|
export { Table } from './components/Table/index';
|
|
13
13
|
export { Tabs } from './components/Tabs/index';
|
|
14
14
|
export { theme } from './components/Themes/index';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,WAAW,EACX,cAAc,EACd,cAAc,EACd,eAAe,EACf,QAAQ,EACR,UAAU,EACV,WAAW,EACX,MAAM,EACN,OAAO,EACP,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,OAAO,EACP,SAAS,EACT,QAAQ,EACR,aAAa,EACb,UAAU,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,GACR,MAAM,qBAAqB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalStyles.d.ts","sourceRoot":"","sources":["../../src/src/globalStyles.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"globalStyles.d.ts","sourceRoot":"","sources":["../../src/src/globalStyles.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,2FAWhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
package/dist/src/globalStyles.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { createGlobalStyle } from 'styled-components';
|
|
2
2
|
const GlobalStyle = createGlobalStyle `
|
|
3
3
|
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&display=swap');
|
|
4
|
-
|
|
4
|
+
*{
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
outline: 0;
|
|
9
|
+
}
|
|
5
10
|
body {
|
|
6
11
|
font-family: 'Nunito Sans', sans-serif;
|
|
7
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalStyles.js","sourceRoot":"","sources":["../../src/src/globalStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"globalStyles.js","sourceRoot":"","sources":["../../src/src/globalStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,WAAW,GAAG,iBAAiB,CAAA;;;;;;;;;;;CAWpC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
package/package.json
CHANGED
|
@@ -59,7 +59,6 @@ export const CalendarDay = styled.div<CalendarDayProps>`
|
|
|
59
59
|
cursor: pointer;
|
|
60
60
|
width: 36px;
|
|
61
61
|
height: 36px;
|
|
62
|
-
box-sizing: border-box;
|
|
63
62
|
color: ${({ isFirstSelected, isLastSelected }) =>
|
|
64
63
|
isFirstSelected || isLastSelected ? theme.colors.white : theme.colors.shade50};
|
|
65
64
|
|
|
@@ -8,38 +8,46 @@ export const InputWrapper = styled.div`
|
|
|
8
8
|
|
|
9
9
|
export const StyledInput = styled.input`
|
|
10
10
|
width: 100%;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
font-size: ${theme.paragraph.medium};
|
|
11
|
+
|
|
12
|
+
background-color: transparent;
|
|
14
13
|
border: none;
|
|
14
|
+
outline: none;
|
|
15
|
+
|
|
15
16
|
color: ${theme.colors.shade50};
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
font-family: ${theme.fonts.join(', ')};
|
|
19
|
+
font-size: ${theme.paragraph.medium};
|
|
20
|
+
|
|
18
21
|
&:active,
|
|
19
22
|
&:focus {
|
|
20
23
|
outline: none;
|
|
21
24
|
border: none;
|
|
22
25
|
}
|
|
26
|
+
|
|
23
27
|
&::placeholder {
|
|
24
28
|
color: ${theme.colors.shade30};
|
|
25
29
|
font-size: ${theme.paragraph.medium};
|
|
26
30
|
opacity: 1;
|
|
27
31
|
}
|
|
32
|
+
|
|
28
33
|
&:disabled {
|
|
29
|
-
background-color: transparent
|
|
34
|
+
background-color: transparent;
|
|
30
35
|
cursor: not-allowed;
|
|
31
36
|
}
|
|
32
37
|
`
|
|
33
38
|
|
|
34
39
|
export const StyledLabel = styled.label`
|
|
35
40
|
position: absolute;
|
|
41
|
+
color: ${theme.colors.shade50};
|
|
42
|
+
|
|
43
|
+
box-sizing: content-box;
|
|
36
44
|
left: 15px;
|
|
37
45
|
top: -8px;
|
|
38
46
|
padding: 0 1px;
|
|
39
|
-
|
|
40
|
-
font-size: ${theme.paragraph.small};
|
|
41
|
-
color: ${theme.colors.shade50};
|
|
47
|
+
|
|
42
48
|
font-family: 'Nunito Sans', sans-serif;
|
|
49
|
+
font-size: ${theme.paragraph.small};
|
|
50
|
+
font-weight: 600;
|
|
43
51
|
text-wrap: nowrap;
|
|
44
52
|
`
|
|
45
53
|
|
|
@@ -49,16 +57,21 @@ export interface StyledInputContentProps {
|
|
|
49
57
|
|
|
50
58
|
export const StyledInputContent = styled.div<StyledInputContentProps>`
|
|
51
59
|
position: relative;
|
|
52
|
-
|
|
60
|
+
|
|
53
61
|
display: flex;
|
|
54
|
-
gap: 8px;
|
|
55
|
-
height: 22px;
|
|
56
62
|
align-items: center;
|
|
57
63
|
justify-content: space-between;
|
|
64
|
+
|
|
65
|
+
box-sizing: content-box;
|
|
66
|
+
padding: 18px 16px 14px 16px;
|
|
67
|
+
height: 22px;
|
|
68
|
+
gap: 8px;
|
|
58
69
|
border-radius: 4px;
|
|
59
|
-
|
|
70
|
+
|
|
60
71
|
background-color: ${({ disabled }: StyledInputContentProps) =>
|
|
61
72
|
disabled ? theme.colors.shade10 : theme.colors.white};
|
|
73
|
+
|
|
74
|
+
cursor: ${({ disabled }: StyledInputContentProps) => (disabled ? 'not-allowed' : 'pointer')};
|
|
62
75
|
`
|
|
63
76
|
|
|
64
77
|
export interface StyledInputBorderProps {
|
|
@@ -73,9 +86,12 @@ export interface StyledInputBorderProps {
|
|
|
73
86
|
*/
|
|
74
87
|
export const StyledInputBorder = styled.div<StyledInputBorderProps>`
|
|
75
88
|
position: absolute;
|
|
89
|
+
|
|
90
|
+
box-sizing: content-box;
|
|
76
91
|
inset: 0px;
|
|
77
92
|
border-radius: 4px;
|
|
78
93
|
border: 1px solid ${theme.colors.shade20};
|
|
94
|
+
|
|
79
95
|
clip-rule: evenodd;
|
|
80
96
|
clip-path: path(
|
|
81
97
|
'${({ label, content }) =>
|
|
@@ -13,37 +13,44 @@ export const SelectWrapper = styled.div`
|
|
|
13
13
|
|
|
14
14
|
export const Dropdown = styled.div`
|
|
15
15
|
position: absolute;
|
|
16
|
+
|
|
17
|
+
box-sizing: content-box;
|
|
16
18
|
width: 252px;
|
|
19
|
+
margin-top: 7px;
|
|
17
20
|
padding: 16px;
|
|
18
|
-
|
|
21
|
+
|
|
19
22
|
border-radius: 4px;
|
|
20
23
|
border: 1px solid ${theme.colors.shade20};
|
|
21
|
-
margin-top: 7px;
|
|
22
24
|
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
|
|
23
25
|
`
|
|
24
26
|
|
|
25
27
|
export const DropdownWrapper = styled.div`
|
|
26
28
|
position: relative;
|
|
29
|
+
z-index: ${theme.zIndex.z9};
|
|
27
30
|
`
|
|
28
31
|
|
|
29
|
-
|
|
30
32
|
export interface OptionButtonProps {
|
|
31
33
|
selected: boolean
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
export const OptionButton = styled.button<OptionButtonProps>`
|
|
37
|
+
display: flex;
|
|
38
|
+
|
|
39
|
+
align-items: center;
|
|
40
|
+
|
|
41
|
+
color: ${({ selected }) => (selected ? theme.colors.cyan30 : theme.colors.shade40)};
|
|
35
42
|
background-color: transparent;
|
|
36
43
|
border: none;
|
|
37
|
-
|
|
38
|
-
font-family: 'Nunito Sans', sans-serif;
|
|
39
|
-
color: ${({ selected }) => (selected ? theme.colors.cyan30 : theme.colors.shade40)};
|
|
44
|
+
|
|
40
45
|
cursor: pointer;
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
|
|
47
|
+
font-family: 'Nunito Sans', sans-serif;
|
|
48
|
+
font-size: ${theme.paragraph.medium};
|
|
43
49
|
text-align: left;
|
|
50
|
+
|
|
44
51
|
height: 46px;
|
|
45
|
-
|
|
46
|
-
|
|
52
|
+
width: 100%;
|
|
53
|
+
padding: 0;
|
|
47
54
|
|
|
48
55
|
&:not(:last-child) {
|
|
49
56
|
border-bottom: 1px solid ${theme.colors.shade10};
|
package/src/index.tsx
CHANGED
|
@@ -2,13 +2,13 @@ export { Banner } from './components/Banner/index'
|
|
|
2
2
|
export { Button } from './components/Button/index'
|
|
3
3
|
export { ButtonRadiusIcon } from './components/ButtonRadiusIcon/index'
|
|
4
4
|
export { ButtonRound } from './components/ButtonRound/index'
|
|
5
|
-
export { DatePicker
|
|
5
|
+
export { DatePicker } from './components/DatePicker/index'
|
|
6
6
|
export { IconWrapper } from './components/IconWrapper/index'
|
|
7
7
|
export { Input } from './components/Input/index'
|
|
8
8
|
export { Modal } from './components/Modal/index'
|
|
9
9
|
export { Paginate } from './components/Paginate/index'
|
|
10
10
|
export { Paragraph } from './components/Paragraph/index'
|
|
11
|
-
export { DateRangePicker
|
|
11
|
+
export { DateRangePicker } from './components/DateRangePicker/index'
|
|
12
12
|
export { Table } from './components/Table/index'
|
|
13
13
|
export { Tabs } from './components/Tabs/index'
|
|
14
14
|
export { theme } from './components/Themes/index'
|
package/src/reset.css
ADDED
package/src/src/globalStyles.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { createGlobalStyle } from 'styled-components'
|
|
1
|
+
import { createGlobalStyle } from 'styled-components'
|
|
2
2
|
|
|
3
3
|
const GlobalStyle = createGlobalStyle`
|
|
4
4
|
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&display=swap');
|
|
5
|
-
|
|
5
|
+
*{
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
outline: 0;
|
|
10
|
+
}
|
|
6
11
|
body {
|
|
7
12
|
font-family: 'Nunito Sans', sans-serif;
|
|
8
13
|
}
|
|
9
|
-
|
|
14
|
+
`
|
|
10
15
|
|
|
11
|
-
export default GlobalStyle
|
|
16
|
+
export default GlobalStyle
|