@antscorp/antsomi-ui 1.3.2-beta.23 → 1.3.2-beta.25
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/index.js +1 -1
- package/es/components/molecules/Collapse/Collapse.d.ts +4 -0
- package/es/components/molecules/Collapse/Collapse.js +2 -0
- package/es/components/molecules/Collapse/index.d.ts +1 -0
- package/es/components/molecules/Collapse/index.js +1 -0
- package/es/components/molecules/GradientSetting/index.d.ts +55 -0
- package/es/components/molecules/GradientSetting/index.js +122 -0
- package/es/components/molecules/InputNumber/index.js +2 -2
- package/es/components/molecules/InputNumberWithUnit/index.js +3 -5
- package/es/components/molecules/InputNumberWithUnit/styled.js +2 -10
- package/es/components/molecules/index.d.ts +3 -0
- package/es/components/molecules/index.js +3 -0
- package/es/constants/theme.js +1 -0
- package/es/locales/en/translation.json +33 -0
- package/es/locales/i18n.d.ts +66 -0
- package/es/locales/translations.d.ts +33 -0
- package/es/locales/vi/translation.json +33 -0
- package/es/test.js +7 -1
- package/es/utils/common.d.ts +6 -0
- package/es/utils/common.js +33 -0
- package/package.json +1 -1
- package/es/components/molecules/InputNumber/styled.d.ts +0 -9
- package/es/components/molecules/InputNumber/styled.js +0 -95
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2
|
-
// Libraries
|
|
3
|
-
import styled, { css } from 'styled-components';
|
|
4
|
-
// Components
|
|
5
|
-
import { InputNumber as AntdInputNumber } from 'antd';
|
|
6
|
-
// Constants
|
|
7
|
-
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
8
|
-
export const InputNumberWrapper = styled(AntdInputNumber) `
|
|
9
|
-
height: 30px;
|
|
10
|
-
border-style: none;
|
|
11
|
-
border-radius: none;
|
|
12
|
-
font-family: 'Roboto';
|
|
13
|
-
font-size: ${(_a = THEME.token) === null || _a === void 0 ? void 0 : _a.fontSize}px;
|
|
14
|
-
--tw-shadow: 0 1px 0 0 #e0e0e0;
|
|
15
|
-
--tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color);
|
|
16
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
17
|
-
var(--tw-shadow);
|
|
18
|
-
transition-property: all;
|
|
19
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
20
|
-
transition-duration: 150ms;
|
|
21
|
-
|
|
22
|
-
&::placeholder {
|
|
23
|
-
color: ${(_b = THEME.token) === null || _b === void 0 ? void 0 : _b.accent5};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:hover {
|
|
27
|
-
background-color: ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.blue0};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
${props => css `
|
|
31
|
-
height: ${props.height}${typeof props.height === 'number' ? 'px' : ''};
|
|
32
|
-
width: ${props.width}${typeof props.width === 'number' ? 'px' : ''};
|
|
33
|
-
`}
|
|
34
|
-
|
|
35
|
-
.antsomi-input-number-group {
|
|
36
|
-
min-width: 100px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:active,
|
|
40
|
-
&:focus {
|
|
41
|
-
background-color: ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.bw1_1};
|
|
42
|
-
--tw-shadow: 0 1px 0 0 #194e8d;
|
|
43
|
-
--tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color);
|
|
44
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
45
|
-
var(--tw-shadow);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&:disabled {
|
|
49
|
-
background-color: ${(_e = THEME.token) === null || _e === void 0 ? void 0 : _e.accent1};
|
|
50
|
-
color: ${(_f = THEME.token) === null || _f === void 0 ? void 0 : _f.accent5};
|
|
51
|
-
--tw-shadow: 0 1px 0 0 #e0e0e0;
|
|
52
|
-
--tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color);
|
|
53
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
54
|
-
var(--tw-shadow);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.antsomi-input-number-handler-wrap {
|
|
58
|
-
height: 100%;
|
|
59
|
-
opacity: 1;
|
|
60
|
-
|
|
61
|
-
&:hover {
|
|
62
|
-
.antsomi-input-number-handler {
|
|
63
|
-
height: 50%;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.antsomi-input-number-handler {
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
justify-content: center;
|
|
72
|
-
border: none;
|
|
73
|
-
|
|
74
|
-
&:hover {
|
|
75
|
-
color: ${(_g = THEME.token) === null || _g === void 0 ? void 0 : _g.colorText};
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.antsomi-input-number-input {
|
|
80
|
-
padding: 0px 4px !important;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.antsomi-input-number-group-addon {
|
|
84
|
-
position: relative;
|
|
85
|
-
top: 1px;
|
|
86
|
-
padding: 0;
|
|
87
|
-
border: none;
|
|
88
|
-
--tw-bg-opacity: 1;
|
|
89
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
90
|
-
padding-left: 10px;
|
|
91
|
-
font-size: 13px;
|
|
92
|
-
color: ${(_h = THEME.token) === null || _h === void 0 ? void 0 : _h.colorTextBase};
|
|
93
|
-
border-bottom-width: 1px;
|
|
94
|
-
}
|
|
95
|
-
`;
|