@tiny-design/react 1.4.0 → 1.5.0
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/es/alert/style/_index.scss +2 -2
- package/es/alert/style/index.css +2 -2
- package/es/auto-complete/style/_index.scss +4 -5
- package/es/auto-complete/style/index.css +4 -5
- package/es/breadcrumb/style/index.css +1 -1
- package/es/breadcrumb/types.d.ts +1 -1
- package/es/button/style/index.css +14 -14
- package/es/calendar/style/_index.scss +9 -9
- package/es/calendar/style/index.css +9 -9
- package/es/card/style/index.css +3 -3
- package/es/cascader/style/_index.scss +9 -9
- package/es/cascader/style/index.css +9 -9
- package/es/checkbox/style/_index.scss +9 -12
- package/es/checkbox/style/index.css +9 -12
- package/es/collapse/style/index.css +3 -3
- package/es/color-picker/style/_index.scss +7 -7
- package/es/color-picker/style/index.css +4 -4
- package/es/date-picker/style/_index.scss +1 -1
- package/es/date-picker/style/index.css +1 -1
- package/es/descriptions/style/_index.scss +5 -6
- package/es/descriptions/style/index.css +6 -6
- package/es/empty/style/_index.scss +1 -1
- package/es/empty/style/index.css +1 -1
- package/es/form/style/_index.scss +5 -6
- package/es/form/style/index.css +4 -4
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/input/style/_index.scss +5 -4
- package/es/input/style/_mixin.scss +1 -1
- package/es/input/style/index.css +21 -20
- package/es/input-number/input-number.js +11 -5
- package/es/input-number/input-number.js.map +1 -1
- package/es/input-number/style/_index.scss +5 -3
- package/es/input-number/style/index.css +13 -11
- package/es/input-otp/style/_index.scss +1 -1
- package/es/input-otp/style/index.css +8 -8
- package/es/list/style/_index.scss +3 -3
- package/es/list/style/index.css +3 -3
- package/es/marquee/index.d.ts +1 -0
- package/es/marquee/index.js +9 -0
- package/es/marquee/index.js.map +1 -0
- package/es/marquee/marquee.d.ts +8 -0
- package/es/marquee/marquee.js +42 -0
- package/es/marquee/marquee.js.map +1 -0
- package/es/marquee/style/_index.scss +77 -0
- package/es/marquee/style/index.css +64 -0
- package/es/marquee/style/index.d.ts +1 -0
- package/es/marquee/style/index.js +1 -0
- package/es/marquee/types.d.ts +21 -0
- package/es/native-select/style/index.css +4 -4
- package/es/notification/style/_index.scss +1 -1
- package/es/notification/style/index.css +1 -1
- package/es/pop-confirm/style/_index.scss +1 -1
- package/es/pop-confirm/style/index.css +1 -1
- package/es/popup/style/_index.scss +9 -9
- package/es/popup/style/index.css +10 -10
- package/es/radio/style/_index.scss +5 -8
- package/es/radio/style/index.css +5 -8
- package/es/segmented/style/_index.scss +10 -10
- package/es/segmented/style/index.css +9 -9
- package/es/select/style/_index.scss +16 -17
- package/es/select/style/index.css +15 -16
- package/es/speed-dial/style/_index.scss +2 -2
- package/es/speed-dial/style/index.css +2 -2
- package/es/statistic/style/_index.scss +2 -2
- package/es/statistic/style/index.css +2 -2
- package/es/style/_component.scss +1 -0
- package/es/style/base.css +57 -0
- package/es/table/style/_index.scss +6 -6
- package/es/table/style/index.css +5 -5
- package/es/tag/style/index.css +1 -1
- package/es/textarea/style/index.css +2 -2
- package/es/time-picker/style/_index.scss +1 -1
- package/es/time-picker/style/index.css +1 -1
- package/es/timeline/style/_index.scss +3 -3
- package/es/timeline/style/index.css +3 -3
- package/es/tooltip/style/index.css +1 -1
- package/es/transfer/style/_index.scss +4 -4
- package/es/transfer/style/index.css +4 -4
- package/es/tree/style/index.css +1 -1
- package/es/typography/style/_index.scss +2 -2
- package/es/typography/style/index.css +2 -2
- package/es/upload/style/_index.scss +4 -4
- package/es/upload/style/index.css +4 -4
- package/lib/alert/style/_index.scss +2 -2
- package/lib/alert/style/index.css +2 -2
- package/lib/auto-complete/style/_index.scss +4 -5
- package/lib/auto-complete/style/index.css +4 -5
- package/lib/breadcrumb/style/index.css +1 -1
- package/lib/breadcrumb/types.d.ts +1 -1
- package/lib/button/style/index.css +14 -14
- package/lib/calendar/style/_index.scss +9 -9
- package/lib/calendar/style/index.css +9 -9
- package/lib/card/style/index.css +3 -3
- package/lib/cascader/style/_index.scss +9 -9
- package/lib/cascader/style/index.css +9 -9
- package/lib/checkbox/style/_index.scss +9 -12
- package/lib/checkbox/style/index.css +9 -12
- package/lib/collapse/style/index.css +3 -3
- package/lib/color-picker/style/_index.scss +7 -7
- package/lib/color-picker/style/index.css +4 -4
- package/lib/date-picker/style/_index.scss +1 -1
- package/lib/date-picker/style/index.css +1 -1
- package/lib/descriptions/style/_index.scss +5 -6
- package/lib/descriptions/style/index.css +6 -6
- package/lib/empty/style/_index.scss +1 -1
- package/lib/empty/style/index.css +1 -1
- package/lib/form/style/_index.scss +5 -6
- package/lib/form/style/index.css +4 -4
- package/lib/index.d.ts +2 -1
- package/lib/index.js +76 -74
- package/lib/input/style/_index.scss +5 -4
- package/lib/input/style/_mixin.scss +1 -1
- package/lib/input/style/index.css +21 -20
- package/lib/input-number/input-number.js +11 -5
- package/lib/input-number/input-number.js.map +1 -1
- package/lib/input-number/style/_index.scss +5 -3
- package/lib/input-number/style/index.css +13 -11
- package/lib/input-otp/style/_index.scss +1 -1
- package/lib/input-otp/style/index.css +8 -8
- package/lib/list/style/_index.scss +3 -3
- package/lib/list/style/index.css +3 -3
- package/lib/marquee/index.js +8 -0
- package/lib/marquee/index.js.map +1 -0
- package/lib/marquee/marquee.d.ts +8 -0
- package/lib/marquee/marquee.js +45 -0
- package/lib/marquee/marquee.js.map +1 -0
- package/lib/marquee/style/_index.scss +77 -0
- package/lib/marquee/style/index.css +64 -0
- package/lib/marquee/style/index.d.ts +1 -0
- package/lib/marquee/style/index.js +1 -0
- package/lib/marquee/types.d.ts +21 -0
- package/lib/native-select/style/index.css +4 -4
- package/lib/notification/style/_index.scss +1 -1
- package/lib/notification/style/index.css +1 -1
- package/lib/pop-confirm/style/_index.scss +1 -1
- package/lib/pop-confirm/style/index.css +1 -1
- package/lib/popup/style/_index.scss +9 -9
- package/lib/popup/style/index.css +10 -10
- package/lib/radio/style/_index.scss +5 -8
- package/lib/radio/style/index.css +5 -8
- package/lib/segmented/style/_index.scss +10 -10
- package/lib/segmented/style/index.css +9 -9
- package/lib/select/style/_index.scss +16 -17
- package/lib/select/style/index.css +15 -16
- package/lib/speed-dial/style/_index.scss +2 -2
- package/lib/speed-dial/style/index.css +2 -2
- package/lib/statistic/style/_index.scss +2 -2
- package/lib/statistic/style/index.css +2 -2
- package/lib/style/_component.scss +1 -0
- package/lib/style/base.css +57 -0
- package/lib/table/style/_index.scss +6 -6
- package/lib/table/style/index.css +5 -5
- package/lib/tag/style/index.css +1 -1
- package/lib/textarea/style/index.css +2 -2
- package/lib/time-picker/style/_index.scss +1 -1
- package/lib/time-picker/style/index.css +1 -1
- package/lib/timeline/style/_index.scss +3 -3
- package/lib/timeline/style/index.css +3 -3
- package/lib/tooltip/style/index.css +1 -1
- package/lib/transfer/style/_index.scss +4 -4
- package/lib/transfer/style/index.css +4 -4
- package/lib/tree/style/index.css +1 -1
- package/lib/typography/style/_index.scss +2 -2
- package/lib/typography/style/index.css +2 -2
- package/lib/upload/style/_index.scss +4 -4
- package/lib/upload/style/index.css +4 -4
- package/package.json +3 -3
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
.ty-color-picker__swatch {
|
|
19
19
|
width: 32px;
|
|
20
20
|
height: 32px;
|
|
21
|
-
border-radius:
|
|
21
|
+
border-radius: var(--ty-border-radius);
|
|
22
22
|
border: 1px solid var(--ty-color-picker-border, #dee2e6);
|
|
23
23
|
padding: 3px;
|
|
24
24
|
cursor: pointer;
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
.ty-color-picker__format-btn {
|
|
125
125
|
border: 1px solid var(--ty-color-picker-border, #dee2e6);
|
|
126
126
|
background: transparent;
|
|
127
|
-
border-radius:
|
|
127
|
+
border-radius: var(--ty-border-radius);
|
|
128
128
|
padding: 2px 6px;
|
|
129
129
|
cursor: pointer;
|
|
130
130
|
font-size: 12px;
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
.ty-color-picker__hex-input {
|
|
138
138
|
flex: 1;
|
|
139
139
|
border: 1px solid var(--ty-color-picker-border, #dee2e6);
|
|
140
|
-
border-radius:
|
|
140
|
+
border-radius: var(--ty-border-radius);
|
|
141
141
|
padding: 2px 6px;
|
|
142
142
|
font-size: 12px;
|
|
143
143
|
font-family: lucida console, consolas, monaco, andale mono, ubuntu mono, monospace;
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
.ty-color-picker__preset {
|
|
160
160
|
width: 20px;
|
|
161
161
|
height: 20px;
|
|
162
|
-
border-radius:
|
|
162
|
+
border-radius: var(--ty-border-radius);
|
|
163
163
|
cursor: pointer;
|
|
164
164
|
border: 1px solid var(--ty-color-picker-border, #dee2e6);
|
|
165
165
|
transition: transform 0.15s;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use '../../style/variables' as *;
|
|
2
2
|
|
|
3
3
|
.#{$prefix}-descriptions {
|
|
4
|
-
|
|
5
4
|
&__body {
|
|
6
5
|
width: 100%;
|
|
7
6
|
overflow: hidden;
|
|
@@ -24,7 +23,7 @@
|
|
|
24
23
|
font-size: 16px;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
&__item_colon
|
|
26
|
+
&__item_colon::after {
|
|
28
27
|
content: ':';
|
|
29
28
|
margin-left: 2px;
|
|
30
29
|
margin-right: 5px;
|
|
@@ -32,15 +31,15 @@
|
|
|
32
31
|
|
|
33
32
|
&__item-label {
|
|
34
33
|
color: var(--ty-color-text-label);
|
|
35
|
-
font-size:
|
|
34
|
+
font-size: var(--ty-font-size-base);
|
|
36
35
|
font-weight: 400;
|
|
37
|
-
line-height:
|
|
36
|
+
line-height: var(--ty-line-height-base);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&__item-content {
|
|
41
40
|
color: var(--ty-color-text-secondary);
|
|
42
|
-
font-size:
|
|
43
|
-
line-height:
|
|
41
|
+
font-size: var(--ty-font-size-base);
|
|
42
|
+
line-height: var(--ty-line-height-base);
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
&_bordered {
|
|
@@ -17,25 +17,25 @@
|
|
|
17
17
|
font-weight: 600;
|
|
18
18
|
font-size: 16px;
|
|
19
19
|
}
|
|
20
|
-
.ty-descriptions__item_colon
|
|
20
|
+
.ty-descriptions__item_colon::after {
|
|
21
21
|
content: ":";
|
|
22
22
|
margin-left: 2px;
|
|
23
23
|
margin-right: 5px;
|
|
24
24
|
}
|
|
25
25
|
.ty-descriptions__item-label {
|
|
26
26
|
color: var(--ty-color-text-label);
|
|
27
|
-
font-size:
|
|
27
|
+
font-size: var(--ty-font-size-base);
|
|
28
28
|
font-weight: 400;
|
|
29
|
-
line-height:
|
|
29
|
+
line-height: var(--ty-line-height-base);
|
|
30
30
|
}
|
|
31
31
|
.ty-descriptions__item-content {
|
|
32
32
|
color: var(--ty-color-text-secondary);
|
|
33
|
-
font-size:
|
|
34
|
-
line-height:
|
|
33
|
+
font-size: var(--ty-font-size-base);
|
|
34
|
+
line-height: var(--ty-line-height-base);
|
|
35
35
|
}
|
|
36
36
|
.ty-descriptions_bordered .ty-descriptions__body {
|
|
37
37
|
border: 1px solid var(--ty-descriptions-border);
|
|
38
|
-
border-radius:
|
|
38
|
+
border-radius: var(--ty-border-radius);
|
|
39
39
|
}
|
|
40
40
|
.ty-descriptions_bordered .ty-descriptions__row {
|
|
41
41
|
border-bottom: 1px solid var(--ty-descriptions-border);
|
package/es/empty/style/index.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use '../../style/variables' as *;
|
|
2
2
|
|
|
3
3
|
.#{$prefix}-form {
|
|
4
|
-
|
|
5
4
|
&_vertical {
|
|
6
5
|
.#{$prefix}-form-item__label {
|
|
7
6
|
text-align: left;
|
|
@@ -23,15 +22,15 @@
|
|
|
23
22
|
text-align: right;
|
|
24
23
|
vertical-align: top;
|
|
25
24
|
color: var(--ty-color-text);
|
|
26
|
-
font-size:
|
|
25
|
+
font-size: var(--ty-font-size-base);
|
|
27
26
|
|
|
28
|
-
&_required
|
|
27
|
+
&_required::before {
|
|
29
28
|
content: '*';
|
|
30
29
|
margin-right: 3px;
|
|
31
30
|
color: var(--ty-form-error-color);
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
&_colon
|
|
33
|
+
&_colon::after {
|
|
35
34
|
content: ':';
|
|
36
35
|
margin: 0 8px 0 2px;
|
|
37
36
|
}
|
|
@@ -65,7 +64,7 @@
|
|
|
65
64
|
|
|
66
65
|
&__notice {
|
|
67
66
|
font-size: 13px;
|
|
68
|
-
border-radius:
|
|
67
|
+
border-radius: var(--ty-border-radius);
|
|
69
68
|
background: var(--ty-form-notice-bg);
|
|
70
69
|
color: var(--ty-form-notice-color);
|
|
71
70
|
padding: 5px;
|
|
@@ -86,7 +85,7 @@
|
|
|
86
85
|
|
|
87
86
|
&:focus{
|
|
88
87
|
border-color: var(--ty-form-error-hover);
|
|
89
|
-
box-shadow: 0 0 0 2px
|
|
88
|
+
box-shadow: 0 0 0 2px rgb(255 77 79 / 20%);
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
91
|
}
|
package/es/form/style/index.css
CHANGED
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
text-align: right;
|
|
16
16
|
vertical-align: top;
|
|
17
17
|
color: var(--ty-color-text);
|
|
18
|
-
font-size:
|
|
18
|
+
font-size: var(--ty-font-size-base);
|
|
19
19
|
}
|
|
20
|
-
.ty-form-item__label_required
|
|
20
|
+
.ty-form-item__label_required::before {
|
|
21
21
|
content: "*";
|
|
22
22
|
margin-right: 3px;
|
|
23
23
|
color: var(--ty-form-error-color);
|
|
24
24
|
}
|
|
25
|
-
.ty-form-item__label_colon
|
|
25
|
+
.ty-form-item__label_colon::after {
|
|
26
26
|
content: ":";
|
|
27
27
|
margin: 0 8px 0 2px;
|
|
28
28
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
.ty-form-item__notice {
|
|
52
52
|
font-size: 13px;
|
|
53
|
-
border-radius:
|
|
53
|
+
border-radius: var(--ty-border-radius);
|
|
54
54
|
background: var(--ty-form-notice-bg);
|
|
55
55
|
color: var(--ty-form-notice-color);
|
|
56
56
|
padding: 5px;
|
package/es/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ import { Link } from "./link/link.js";
|
|
|
40
40
|
import { DefaultList } from "./list/index.js";
|
|
41
41
|
import { Loader } from "./loader/loader.js";
|
|
42
42
|
import { _default } from "./loading-bar/index.js";
|
|
43
|
+
import { Marquee } from "./marquee/marquee.js";
|
|
43
44
|
import { DefaultMenu } from "./menu/index.js";
|
|
44
45
|
import { messageContainer } from "./message/message-container.js";
|
|
45
46
|
import { DefaultSelect } from "./native-select/index.js";
|
|
@@ -87,4 +88,4 @@ import { en_US } from "./locale/en_US.js";
|
|
|
87
88
|
import { zh_CN } from "./locale/zh_CN.js";
|
|
88
89
|
import { useLocale } from "./_utils/use-locale.js";
|
|
89
90
|
import { ThemeMode, useTheme } from "./_utils/use-theme.js";
|
|
90
|
-
export { Alert, DefaultAnchor as Anchor, AspectRatio, AutoComplete, DefaultAvatar as Avatar, BackTop, Badge, DefaultBreadcrumb as Breadcrumb, DefaultButton as Button, Calendar, DefaultCard as Card, DefaultCarousel as Carousel, Cascader, DefaultCheckbox as Checkbox, Col, DefaultCollapse as Collapse, ColorPicker, ConfigProvider, CopyToClipboard, Countdown, DatePicker, DefaultDesc as Descriptions, Divider, Drawer, Dropdown, Empty, Flex, DefaultFlip as Flip, DefaultForm as Form, Image, DefaultInput as Input, InputNumber, InputOTP, InputPassword, IntlProvider, Keyboard, DefaultLayout as Layout, Link, DefaultList as List, Loader, _default as LoadingBar, type Locale, DefaultMenu as Menu, messageContainer as Message, ModalWithContext as Modal, DefaultSelect as NativeSelect, notificationContainer as Notification, Overlay, Pagination, PopConfirm, Popover, Progress, DefaultRadio as Radio, Rate, Result, Row, ScrollIndicator, Segmented, DefaultSelect$1 as Select, Skeleton, Slider, Space, DefaultSpeedDial as SpeedDial, Split, SplitButton, Statistic, DefaultSteps as Steps, Sticky, StrengthIndicator, Switch, Table, DefaultTabs as Tabs, DefaultTag as Tag, Textarea, type ThemeMode, TimePicker, DefaultTimeline as Timeline, Tooltip, Transfer, Transition, Tree, DefaultTypo as Typography, Upload, Waterfall, en_US, useLocale, useTheme, withLocale, withSpin, zh_CN };
|
|
91
|
+
export { Alert, DefaultAnchor as Anchor, AspectRatio, AutoComplete, DefaultAvatar as Avatar, BackTop, Badge, DefaultBreadcrumb as Breadcrumb, DefaultButton as Button, Calendar, DefaultCard as Card, DefaultCarousel as Carousel, Cascader, DefaultCheckbox as Checkbox, Col, DefaultCollapse as Collapse, ColorPicker, ConfigProvider, CopyToClipboard, Countdown, DatePicker, DefaultDesc as Descriptions, Divider, Drawer, Dropdown, Empty, Flex, DefaultFlip as Flip, DefaultForm as Form, Image, DefaultInput as Input, InputNumber, InputOTP, InputPassword, IntlProvider, Keyboard, DefaultLayout as Layout, Link, DefaultList as List, Loader, _default as LoadingBar, type Locale, Marquee, DefaultMenu as Menu, messageContainer as Message, ModalWithContext as Modal, DefaultSelect as NativeSelect, notificationContainer as Notification, Overlay, Pagination, PopConfirm, Popover, Progress, DefaultRadio as Radio, Rate, Result, Row, ScrollIndicator, Segmented, DefaultSelect$1 as Select, Skeleton, Slider, Space, DefaultSpeedDial as SpeedDial, Split, SplitButton, Statistic, DefaultSteps as Steps, Sticky, StrengthIndicator, Switch, Table, DefaultTabs as Tabs, DefaultTag as Tag, Textarea, type ThemeMode, TimePicker, DefaultTimeline as Timeline, Tooltip, Transfer, Transition, Tree, DefaultTypo as Typography, Upload, Waterfall, en_US, useLocale, useTheme, withLocale, withSpin, zh_CN };
|
package/es/index.js
CHANGED
|
@@ -46,6 +46,7 @@ import pagination_default from "./pagination/index.js";
|
|
|
46
46
|
import DefaultList from "./list/index.js";
|
|
47
47
|
import loader_default from "./loader/index.js";
|
|
48
48
|
import loading_bar_default from "./loading-bar/index.js";
|
|
49
|
+
import marquee_default from "./marquee/index.js";
|
|
49
50
|
import DefaultMenu from "./menu/index.js";
|
|
50
51
|
import message_default from "./message/index.js";
|
|
51
52
|
import DefaultSelect from "./native-select/index.js";
|
|
@@ -87,4 +88,4 @@ import { withLocale } from "./intl-provider/with-locale.js";
|
|
|
87
88
|
import { withSpin } from "./with-spin/with-spin.js";
|
|
88
89
|
import zh_CN from "./locale/zh_CN.js";
|
|
89
90
|
import { useTheme } from "./_utils/use-theme.js";
|
|
90
|
-
export { alert_default as Alert, DefaultAnchor as Anchor, aspect_ratio_default as AspectRatio, auto_complete_default as AutoComplete, DefaultAvatar as Avatar, back_top_default as BackTop, badge_default as Badge, DefaultBreadcrumb as Breadcrumb, DefaultButton as Button, calendar_default as Calendar, DefaultCard as Card, DefaultCarousel as Carousel, cascader_default as Cascader, DefaultCheckbox as Checkbox, col_default as Col, DefaultCollapse as Collapse, color_picker_default as ColorPicker, config_provider_default as ConfigProvider, copy_to_clipboard_default as CopyToClipboard, countdown_default as Countdown, date_picker_default as DatePicker, DefaultDesc as Descriptions, divider_default as Divider, drawer_default as Drawer, dropdown_default as Dropdown, empty_default as Empty, flex_default as Flex, DefaultFlip as Flip, DefaultForm as Form, image_default as Image, DefaultInput as Input, input_number_default as InputNumber, input_otp_default as InputOTP, input_password_default as InputPassword, intl_provider_default as IntlProvider, keyboard_default as Keyboard, DefaultLayout as Layout, link_default as Link, DefaultList as List, loader_default as Loader, loading_bar_default as LoadingBar, DefaultMenu as Menu, message_default as Message, ModalWithContext as Modal, DefaultSelect as NativeSelect, notification_default as Notification, overlay_default as Overlay, pagination_default as Pagination, pop_confirm_default as PopConfirm, popover_default as Popover, Progress, DefaultRadio as Radio, rate_default as Rate, result_default as Result, row_default as Row, scroll_indicator_default as ScrollIndicator, segmented_default as Segmented, DefaultSelect$1 as Select, skeleton_default as Skeleton, slider_default as Slider, space_default as Space, DefaultSpeedDial as SpeedDial, split_default as Split, split_button_default as SplitButton, statistic_default as Statistic, DefaultSteps as Steps, sticky_default as Sticky, strength_indicator_default as StrengthIndicator, switch_default as Switch, table_default as Table, DefaultTabs as Tabs, DefaultTag as Tag, textarea_default as Textarea, time_picker_default as TimePicker, DefaultTimeline as Timeline, tooltip_default as Tooltip, transfer_default as Transfer, transition_default as Transition, tree_default as Tree, DefaultTypo as Typography, upload_default as Upload, waterfall_default as Waterfall, en_US, useLocale, useTheme, withLocale, withSpin, zh_CN };
|
|
91
|
+
export { alert_default as Alert, DefaultAnchor as Anchor, aspect_ratio_default as AspectRatio, auto_complete_default as AutoComplete, DefaultAvatar as Avatar, back_top_default as BackTop, badge_default as Badge, DefaultBreadcrumb as Breadcrumb, DefaultButton as Button, calendar_default as Calendar, DefaultCard as Card, DefaultCarousel as Carousel, cascader_default as Cascader, DefaultCheckbox as Checkbox, col_default as Col, DefaultCollapse as Collapse, color_picker_default as ColorPicker, config_provider_default as ConfigProvider, copy_to_clipboard_default as CopyToClipboard, countdown_default as Countdown, date_picker_default as DatePicker, DefaultDesc as Descriptions, divider_default as Divider, drawer_default as Drawer, dropdown_default as Dropdown, empty_default as Empty, flex_default as Flex, DefaultFlip as Flip, DefaultForm as Form, image_default as Image, DefaultInput as Input, input_number_default as InputNumber, input_otp_default as InputOTP, input_password_default as InputPassword, intl_provider_default as IntlProvider, keyboard_default as Keyboard, DefaultLayout as Layout, link_default as Link, DefaultList as List, loader_default as Loader, loading_bar_default as LoadingBar, marquee_default as Marquee, DefaultMenu as Menu, message_default as Message, ModalWithContext as Modal, DefaultSelect as NativeSelect, notification_default as Notification, overlay_default as Overlay, pagination_default as Pagination, pop_confirm_default as PopConfirm, popover_default as Popover, Progress, DefaultRadio as Radio, rate_default as Rate, result_default as Result, row_default as Row, scroll_indicator_default as ScrollIndicator, segmented_default as Segmented, DefaultSelect$1 as Select, skeleton_default as Skeleton, slider_default as Slider, space_default as Space, DefaultSpeedDial as SpeedDial, split_default as Split, split_button_default as SplitButton, statistic_default as Statistic, DefaultSteps as Steps, sticky_default as Sticky, strength_indicator_default as StrengthIndicator, switch_default as Switch, table_default as Table, DefaultTabs as Tabs, DefaultTag as Tag, textarea_default as Textarea, time_picker_default as TimePicker, DefaultTimeline as Timeline, tooltip_default as Tooltip, transfer_default as Transfer, transition_default as Transition, tree_default as Tree, DefaultTypo as Typography, upload_default as Upload, waterfall_default as Waterfall, en_US, useLocale, useTheme, withLocale, withSpin, zh_CN };
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
.#{$prefix}-input {
|
|
5
5
|
position: relative;
|
|
6
6
|
box-sizing: border-box;
|
|
7
|
+
width: 100%;
|
|
7
8
|
color: var(--ty-color-text);
|
|
8
9
|
|
|
9
10
|
&__input {
|
|
10
|
-
@include input-default
|
|
11
|
+
@include input-default;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
&__prefix,
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
|
|
78
79
|
&_disabled {
|
|
79
80
|
.#{$prefix}-input__input {
|
|
80
|
-
@include input-default-disabled
|
|
81
|
+
@include input-default-disabled;
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
}
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
|
|
127
|
-
&:not(:first-child
|
|
128
|
+
&:not(:first-child, :last-child) {
|
|
128
129
|
.#{$prefix}-input__input {
|
|
129
130
|
border-radius: 0;
|
|
130
131
|
}
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
border-top-left-radius: 0;
|
|
167
168
|
}
|
|
168
169
|
|
|
169
|
-
&:not(:first-child
|
|
170
|
+
&:not(:first-child, :last-child) {
|
|
170
171
|
border-radius: 0;
|
|
171
172
|
border-left: 0;
|
|
172
173
|
border-right: 0;
|
package/es/input/style/index.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.ty-input {
|
|
2
2
|
position: relative;
|
|
3
3
|
box-sizing: border-box;
|
|
4
|
+
width: 100%;
|
|
4
5
|
color: var(--ty-color-text);
|
|
5
6
|
}
|
|
6
7
|
.ty-input__input {
|
|
@@ -11,8 +12,8 @@
|
|
|
11
12
|
border: 1px solid var(--ty-input-border);
|
|
12
13
|
transition: all 0.3s;
|
|
13
14
|
outline: 0;
|
|
14
|
-
border-radius:
|
|
15
|
-
font-size:
|
|
15
|
+
border-radius: var(--ty-border-radius);
|
|
16
|
+
font-size: var(--ty-font-size-base);
|
|
16
17
|
background-color: var(--ty-input-bg);
|
|
17
18
|
}
|
|
18
19
|
.ty-input__input:hover {
|
|
@@ -51,25 +52,25 @@
|
|
|
51
52
|
cursor: pointer;
|
|
52
53
|
}
|
|
53
54
|
.ty-input_sm .ty-input__input {
|
|
54
|
-
font-size:
|
|
55
|
-
height:
|
|
56
|
-
line-height:
|
|
55
|
+
font-size: var(--ty-font-size-sm);
|
|
56
|
+
height: var(--ty-height-sm);
|
|
57
|
+
line-height: var(--ty-height-sm);
|
|
57
58
|
}
|
|
58
59
|
.ty-input_sm .ty-input__clear-btn {
|
|
59
60
|
transform: scale(0.7);
|
|
60
61
|
}
|
|
61
62
|
.ty-input_md .ty-input__input {
|
|
62
|
-
font-size:
|
|
63
|
-
height:
|
|
64
|
-
line-height:
|
|
63
|
+
font-size: var(--ty-font-size-base);
|
|
64
|
+
height: var(--ty-height-md);
|
|
65
|
+
line-height: var(--ty-height-md);
|
|
65
66
|
}
|
|
66
67
|
.ty-input_md .ty-input__clear-btn {
|
|
67
68
|
transform: scale(0.8);
|
|
68
69
|
}
|
|
69
70
|
.ty-input_lg .ty-input__input {
|
|
70
|
-
font-size:
|
|
71
|
-
height:
|
|
72
|
-
line-height:
|
|
71
|
+
font-size: var(--ty-font-size-lg);
|
|
72
|
+
height: var(--ty-height-lg);
|
|
73
|
+
line-height: var(--ty-height-lg);
|
|
73
74
|
}
|
|
74
75
|
.ty-input_disabled .ty-input__input {
|
|
75
76
|
cursor: not-allowed;
|
|
@@ -92,13 +93,13 @@
|
|
|
92
93
|
justify-content: center;
|
|
93
94
|
}
|
|
94
95
|
.ty-input-group_sm {
|
|
95
|
-
height:
|
|
96
|
+
height: var(--ty-height-sm);
|
|
96
97
|
}
|
|
97
98
|
.ty-input-group_md {
|
|
98
|
-
height:
|
|
99
|
+
height: var(--ty-height-md);
|
|
99
100
|
}
|
|
100
101
|
.ty-input-group_lg {
|
|
101
|
-
height:
|
|
102
|
+
height: var(--ty-height-lg);
|
|
102
103
|
}
|
|
103
104
|
.ty-input-group .ty-input {
|
|
104
105
|
z-index: 1;
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
border-top-left-radius: 0;
|
|
113
114
|
border-bottom-left-radius: 0;
|
|
114
115
|
}
|
|
115
|
-
.ty-input-group .ty-input:not(:first-child
|
|
116
|
+
.ty-input-group .ty-input:not(:first-child, :last-child) .ty-input__input {
|
|
116
117
|
border-radius: 0;
|
|
117
118
|
}
|
|
118
119
|
|
|
@@ -122,18 +123,18 @@
|
|
|
122
123
|
box-sizing: border-box;
|
|
123
124
|
text-align: center;
|
|
124
125
|
line-height: 1;
|
|
125
|
-
border-radius:
|
|
126
|
+
border-radius: var(--ty-border-radius);
|
|
126
127
|
color: var(--ty-color-text);
|
|
127
128
|
padding: 0 7px;
|
|
128
129
|
}
|
|
129
130
|
.ty-input-group-addon_sm {
|
|
130
|
-
font-size:
|
|
131
|
+
font-size: var(--ty-font-size-sm);
|
|
131
132
|
}
|
|
132
133
|
.ty-input-group-addon_md {
|
|
133
|
-
font-size:
|
|
134
|
+
font-size: var(--ty-font-size-base);
|
|
134
135
|
}
|
|
135
136
|
.ty-input-group-addon_lg {
|
|
136
|
-
font-size:
|
|
137
|
+
font-size: var(--ty-font-size-lg);
|
|
137
138
|
}
|
|
138
139
|
.ty-input-group-addon:first-child {
|
|
139
140
|
border-right: 0;
|
|
@@ -145,7 +146,7 @@
|
|
|
145
146
|
border-bottom-left-radius: 0;
|
|
146
147
|
border-top-left-radius: 0;
|
|
147
148
|
}
|
|
148
|
-
.ty-input-group-addon:not(:first-child
|
|
149
|
+
.ty-input-group-addon:not(:first-child, :last-child) {
|
|
149
150
|
border-radius: 0;
|
|
150
151
|
border-left: 0;
|
|
151
152
|
border-right: 0;
|
|
@@ -12,8 +12,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
const isValid = (val) => {
|
|
13
13
|
return !isNaN(+val);
|
|
14
14
|
};
|
|
15
|
+
const getDecimalPrecision = (num) => {
|
|
16
|
+
const str = String(num);
|
|
17
|
+
const dotIndex = str.indexOf(".");
|
|
18
|
+
return dotIndex === -1 ? 0 : str.length - dotIndex - 1;
|
|
19
|
+
};
|
|
15
20
|
const toPrecision = (val, precision) => {
|
|
16
|
-
if (precision === void 0) return val;
|
|
17
21
|
return parseFloat(val.toFixed(precision));
|
|
18
22
|
};
|
|
19
23
|
const InputNumber = React.forwardRef((props, ref) => {
|
|
@@ -24,16 +28,18 @@ const InputNumber = React.forwardRef((props, ref) => {
|
|
|
24
28
|
[`${prefixCls}_disabled`]: disabled,
|
|
25
29
|
[`${prefixCls}_always-controls`]: controls
|
|
26
30
|
});
|
|
31
|
+
const resolvedPrecision = precision ?? Math.max(getDecimalPrecision(step), getDecimalPrecision(defaultValue));
|
|
27
32
|
const [value, setValue] = useState("value" in props ? props.value : defaultValue);
|
|
28
33
|
const inputOnChange = (e) => {
|
|
29
|
-
const
|
|
34
|
+
const raw = Number(e.target.value.trim());
|
|
35
|
+
const val = resolvedPrecision > 0 ? toPrecision(raw, resolvedPrecision) : raw;
|
|
30
36
|
!("value" in props) && setValue(val);
|
|
31
37
|
onChange && isValid(val) && onChange(val, e);
|
|
32
38
|
};
|
|
33
39
|
const plusOnClick = (e) => {
|
|
34
40
|
e.stopPropagation();
|
|
35
41
|
if (!disabled && isValid(step)) {
|
|
36
|
-
const val = toPrecision(+value + +step,
|
|
42
|
+
const val = toPrecision(+value + +step, resolvedPrecision);
|
|
37
43
|
if (val <= max) {
|
|
38
44
|
!("value" in props) && setValue(val);
|
|
39
45
|
onChange && onChange(val, e);
|
|
@@ -43,7 +49,7 @@ const InputNumber = React.forwardRef((props, ref) => {
|
|
|
43
49
|
const minusOnClick = (e) => {
|
|
44
50
|
e.stopPropagation();
|
|
45
51
|
if (!disabled && isValid(step)) {
|
|
46
|
-
const val = toPrecision(+value - +step,
|
|
52
|
+
const val = toPrecision(+value - +step, resolvedPrecision);
|
|
47
53
|
if (val >= min) {
|
|
48
54
|
!("value" in props) && setValue(val);
|
|
49
55
|
onChange && onChange(val, e);
|
|
@@ -60,7 +66,7 @@ const InputNumber = React.forwardRef((props, ref) => {
|
|
|
60
66
|
children: [/* @__PURE__ */ jsx("input", {
|
|
61
67
|
autoComplete: "off",
|
|
62
68
|
disabled,
|
|
63
|
-
value:
|
|
69
|
+
value: resolvedPrecision > 0 ? value.toFixed(resolvedPrecision) : value,
|
|
64
70
|
type: "number",
|
|
65
71
|
className: `${prefixCls}__input`,
|
|
66
72
|
max,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-number.js","names":[],"sources":["../../src/input-number/input-number.tsx"],"sourcesContent":["import React, { useEffect, useState, MouseEvent, useContext } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider/config-context';\nimport { getPrefixCls } from '../_utils/general';\nimport { InputNumberProps } from './types';\nimport { ArrowDown } from '../_utils/components';\n\n/**\n * Valid the string is a number\n * @param val\n */\nconst isValid = (val: string | number): boolean => {\n return !isNaN(+val);\n};\n\nconst
|
|
1
|
+
{"version":3,"file":"input-number.js","names":[],"sources":["../../src/input-number/input-number.tsx"],"sourcesContent":["import React, { useEffect, useState, MouseEvent, useContext } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider/config-context';\nimport { getPrefixCls } from '../_utils/general';\nimport { InputNumberProps } from './types';\nimport { ArrowDown } from '../_utils/components';\n\n/**\n * Valid the string is a number\n * @param val\n */\nconst isValid = (val: string | number): boolean => {\n return !isNaN(+val);\n};\n\nconst getDecimalPrecision = (num: number): number => {\n const str = String(num);\n const dotIndex = str.indexOf('.');\n return dotIndex === -1 ? 0 : str.length - dotIndex - 1;\n};\n\nconst toPrecision = (val: number, precision: number): number => {\n return parseFloat(val.toFixed(precision));\n};\n\nconst InputNumber = React.forwardRef<HTMLDivElement, InputNumberProps>((props, ref) => {\n const {\n size = 'md',\n disabled = false,\n defaultValue = 0,\n step = 1,\n precision,\n controls = false,\n min = Number.NEGATIVE_INFINITY,\n max = Number.POSITIVE_INFINITY,\n onChange,\n className,\n prefixCls: customisedCls,\n style,\n } = props;\n const configContext = useContext(ConfigContext);\n const prefixCls = getPrefixCls('input-number', configContext.prefixCls, customisedCls);\n const inputSize = props.size || configContext.componentSize || size;\n const cls = classNames(prefixCls, className, `${prefixCls}_${inputSize}`, {\n [`${prefixCls}_disabled`]: disabled,\n [`${prefixCls}_always-controls`]: controls,\n });\n const resolvedPrecision = precision ?? Math.max(getDecimalPrecision(step), getDecimalPrecision(defaultValue));\n const [value, setValue] = useState<number>(\n 'value' in props ? (props.value as number) : defaultValue\n );\n\n const inputOnChange = (e: React.ChangeEvent<HTMLInputElement>): void => {\n const raw = Number(e.target.value.trim());\n const val = resolvedPrecision > 0 ? toPrecision(raw, resolvedPrecision) : raw;\n !('value' in props) && setValue(val);\n onChange && isValid(val) && onChange(val, e);\n };\n\n const plusOnClick = (e: MouseEvent<HTMLSpanElement>): void => {\n e.stopPropagation();\n if (!disabled && isValid(step)) {\n const val = toPrecision(+value + +step, resolvedPrecision);\n if (val <= max) {\n !('value' in props) && setValue(val);\n onChange && onChange(val, e);\n }\n }\n };\n\n const minusOnClick = (e: MouseEvent<HTMLSpanElement>): void => {\n e.stopPropagation();\n if (!disabled && isValid(step)) {\n const val = toPrecision(+value - +step, resolvedPrecision);\n if (val >= min) {\n !('value' in props) && setValue(val);\n onChange && onChange(val, e);\n }\n }\n };\n\n useEffect(() => {\n 'value' in props && setValue(props.value as number);\n }, [props]);\n\n return (\n <div ref={ref} className={cls} style={style}>\n <input\n autoComplete=\"off\"\n disabled={disabled}\n value={resolvedPrecision > 0 ? value.toFixed(resolvedPrecision) : value}\n type=\"number\"\n className={`${prefixCls}__input`}\n max={max}\n min={min}\n step={step}\n onChange={inputOnChange}\n aria-valuenow={value}\n aria-valuemax={max}\n aria-valuemin={min}\n aria-disabled={disabled}\n />\n <div className={`${prefixCls}__controls`}>\n <span className={`${prefixCls}__up`} onClick={plusOnClick}>\n <ArrowDown size={8} className={`${prefixCls}__icon ${prefixCls}__icon_reverse`} />\n </span>\n <span className={`${prefixCls}__down`} onClick={minusOnClick}>\n <ArrowDown size={8} className={`${prefixCls}__icon`} />\n </span>\n </div>\n </div>\n );\n});\n\nInputNumber.displayName = 'InputNumber';\n\nexport default InputNumber;\n"],"mappings":";;;;;;;;;;;AAWA,MAAM,WAAW,QAAkC;AACjD,QAAO,CAAC,MAAM,CAAC,IAAI;;AAGrB,MAAM,uBAAuB,QAAwB;CACnD,MAAM,MAAM,OAAO,IAAI;CACvB,MAAM,WAAW,IAAI,QAAQ,IAAI;AACjC,QAAO,aAAa,KAAK,IAAI,IAAI,SAAS,WAAW;;AAGvD,MAAM,eAAe,KAAa,cAA8B;AAC9D,QAAO,WAAW,IAAI,QAAQ,UAAU,CAAC;;AAG3C,MAAM,cAAc,MAAM,YAA8C,OAAO,QAAQ;CACrF,MAAM,EACJ,OAAO,MACP,WAAW,OACX,eAAe,GACf,OAAO,GACP,WACA,WAAW,OACX,MAAM,OAAO,mBACb,MAAM,OAAO,mBACb,UACA,WACA,WAAW,eACX,UACE;CACJ,MAAM,gBAAgB,WAAW,cAAc;CAC/C,MAAM,YAAY,aAAa,gBAAgB,cAAc,WAAW,cAAc;CAEtF,MAAM,MAAM,WAAW,WAAW,WAAW,GAAG,UAAU,GADxC,MAAM,QAAQ,cAAc,iBAAiB,QACW;GACvE,GAAG,UAAU,aAAa;GAC1B,GAAG,UAAU,oBAAoB;EACnC,CAAC;CACF,MAAM,oBAAoB,aAAa,KAAK,IAAI,oBAAoB,KAAK,EAAE,oBAAoB,aAAa,CAAC;CAC7G,MAAM,CAAC,OAAO,YAAY,SACxB,WAAW,QAAS,MAAM,QAAmB,aAC9C;CAED,MAAM,iBAAiB,MAAiD;EACtE,MAAM,MAAM,OAAO,EAAE,OAAO,MAAM,MAAM,CAAC;EACzC,MAAM,MAAM,oBAAoB,IAAI,YAAY,KAAK,kBAAkB,GAAG;AAC1E,IAAE,WAAW,UAAU,SAAS,IAAI;AACpC,cAAY,QAAQ,IAAI,IAAI,SAAS,KAAK,EAAE;;CAG9C,MAAM,eAAe,MAAyC;AAC5D,IAAE,iBAAiB;AACnB,MAAI,CAAC,YAAY,QAAQ,KAAK,EAAE;GAC9B,MAAM,MAAM,YAAY,CAAC,QAAQ,CAAC,MAAM,kBAAkB;AAC1D,OAAI,OAAO,KAAK;AACd,MAAE,WAAW,UAAU,SAAS,IAAI;AACpC,gBAAY,SAAS,KAAK,EAAE;;;;CAKlC,MAAM,gBAAgB,MAAyC;AAC7D,IAAE,iBAAiB;AACnB,MAAI,CAAC,YAAY,QAAQ,KAAK,EAAE;GAC9B,MAAM,MAAM,YAAY,CAAC,QAAQ,CAAC,MAAM,kBAAkB;AAC1D,OAAI,OAAO,KAAK;AACd,MAAE,WAAW,UAAU,SAAS,IAAI;AACpC,gBAAY,SAAS,KAAK,EAAE;;;;AAKlC,iBAAgB;AACd,aAAW,SAAS,SAAS,MAAM,MAAgB;IAClD,CAAC,MAAM,CAAC;AAEX,QACE,qBAAC,OAAD;EAAU;EAAK,WAAW;EAAY;YAAtC,CACE,oBAAC,SAAD;GACE,cAAa;GACH;GACV,OAAO,oBAAoB,IAAI,MAAM,QAAQ,kBAAkB,GAAG;GAClE,MAAK;GACL,WAAW,GAAG,UAAU;GACnB;GACA;GACC;GACN,UAAU;GACV,iBAAe;GACf,iBAAe;GACf,iBAAe;GACf,iBAAe;GACf,CAAA,EACF,qBAAC,OAAD;GAAK,WAAW,GAAG,UAAU;aAA7B,CACE,oBAAC,QAAD;IAAM,WAAW,GAAG,UAAU;IAAO,SAAS;cAC5C,oBAAC,WAAD;KAAW,MAAM;KAAG,WAAW,GAAG,UAAU,SAAS,UAAU;KAAmB,CAAA;IAC7E,CAAA,EACP,oBAAC,QAAD;IAAM,WAAW,GAAG,UAAU;IAAS,SAAS;cAC9C,oBAAC,WAAD;KAAW,MAAM;KAAG,WAAW,GAAG,UAAU;KAAW,CAAA;IAClD,CAAA,CACH;KACF;;EAER;AAEF,YAAY,cAAc"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
.#{$prefix}-input-number {
|
|
5
5
|
position: relative;
|
|
6
6
|
box-sizing: border-box;
|
|
7
|
+
width: 100%;
|
|
7
8
|
|
|
8
9
|
&:hover {
|
|
9
10
|
.#{$prefix}-input-number__controls {
|
|
@@ -12,13 +13,14 @@
|
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
&__input {
|
|
15
|
-
@include input-default
|
|
16
|
+
@include input-default;
|
|
17
|
+
|
|
16
18
|
padding-left: 7px;
|
|
17
19
|
padding-right: 25px;
|
|
18
20
|
|
|
19
21
|
&::-webkit-inner-spin-button,
|
|
20
22
|
&::-webkit-outer-spin-button {
|
|
21
|
-
|
|
23
|
+
appearance: none;
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
|
|
@@ -112,7 +114,7 @@
|
|
|
112
114
|
&_disabled {
|
|
113
115
|
.#{$prefix}-input-number {
|
|
114
116
|
&__input {
|
|
115
|
-
@include input-default-disabled
|
|
117
|
+
@include input-default-disabled;
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
&__up,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.ty-input-number {
|
|
2
2
|
position: relative;
|
|
3
3
|
box-sizing: border-box;
|
|
4
|
+
width: 100%;
|
|
4
5
|
}
|
|
5
6
|
.ty-input-number:hover .ty-input-number__controls {
|
|
6
7
|
opacity: 1;
|
|
@@ -13,8 +14,8 @@
|
|
|
13
14
|
border: 1px solid var(--ty-input-border);
|
|
14
15
|
transition: all 0.3s;
|
|
15
16
|
outline: 0;
|
|
16
|
-
border-radius:
|
|
17
|
-
font-size:
|
|
17
|
+
border-radius: var(--ty-border-radius);
|
|
18
|
+
font-size: var(--ty-font-size-base);
|
|
18
19
|
background-color: var(--ty-input-bg);
|
|
19
20
|
}
|
|
20
21
|
.ty-input-number__input:hover {
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
}
|
|
37
38
|
.ty-input-number__input::-webkit-inner-spin-button, .ty-input-number__input::-webkit-outer-spin-button {
|
|
38
39
|
-webkit-appearance: none;
|
|
40
|
+
appearance: none;
|
|
39
41
|
}
|
|
40
42
|
.ty-input-number__controls {
|
|
41
43
|
box-sizing: border-box;
|
|
@@ -84,19 +86,19 @@
|
|
|
84
86
|
transform: rotate(180deg);
|
|
85
87
|
}
|
|
86
88
|
.ty-input-number_sm .ty-input-number__input {
|
|
87
|
-
font-size:
|
|
88
|
-
height:
|
|
89
|
-
line-height:
|
|
89
|
+
font-size: var(--ty-font-size-sm);
|
|
90
|
+
height: var(--ty-height-sm);
|
|
91
|
+
line-height: var(--ty-height-sm);
|
|
90
92
|
}
|
|
91
93
|
.ty-input-number_md .ty-input-number__input {
|
|
92
|
-
font-size:
|
|
93
|
-
height:
|
|
94
|
-
line-height:
|
|
94
|
+
font-size: var(--ty-font-size-base);
|
|
95
|
+
height: var(--ty-height-md);
|
|
96
|
+
line-height: var(--ty-height-md);
|
|
95
97
|
}
|
|
96
98
|
.ty-input-number_lg .ty-input-number__input {
|
|
97
|
-
font-size:
|
|
98
|
-
height:
|
|
99
|
-
line-height:
|
|
99
|
+
font-size: var(--ty-font-size-lg);
|
|
100
|
+
height: var(--ty-height-lg);
|
|
101
|
+
line-height: var(--ty-height-lg);
|
|
100
102
|
}
|
|
101
103
|
.ty-input-number_disabled .ty-input-number__input {
|
|
102
104
|
cursor: not-allowed;
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
border: 1px solid var(--ty-input-border);
|
|
12
12
|
transition: all 0.3s;
|
|
13
13
|
outline: 0;
|
|
14
|
-
border-radius:
|
|
15
|
-
font-size:
|
|
14
|
+
border-radius: var(--ty-border-radius);
|
|
15
|
+
font-size: var(--ty-font-size-base);
|
|
16
16
|
background-color: var(--ty-input-bg);
|
|
17
17
|
}
|
|
18
18
|
.ty-input-otp__cell:hover {
|
|
@@ -33,24 +33,24 @@
|
|
|
33
33
|
height: 36px;
|
|
34
34
|
text-align: center;
|
|
35
35
|
padding: 0;
|
|
36
|
-
font-size:
|
|
37
|
-
border-radius:
|
|
36
|
+
font-size: var(--ty-font-size-base);
|
|
37
|
+
border-radius: var(--ty-border-radius);
|
|
38
38
|
caret-color: currentcolor;
|
|
39
39
|
}
|
|
40
40
|
.ty-input-otp__cell_sm {
|
|
41
41
|
width: 28px;
|
|
42
42
|
height: 28px;
|
|
43
|
-
font-size:
|
|
43
|
+
font-size: var(--ty-font-size-sm);
|
|
44
44
|
}
|
|
45
45
|
.ty-input-otp__cell_md {
|
|
46
46
|
width: 36px;
|
|
47
47
|
height: 36px;
|
|
48
|
-
font-size:
|
|
48
|
+
font-size: var(--ty-font-size-base);
|
|
49
49
|
}
|
|
50
50
|
.ty-input-otp__cell_lg {
|
|
51
51
|
width: 44px;
|
|
52
52
|
height: 44px;
|
|
53
|
-
font-size:
|
|
53
|
+
font-size: var(--ty-font-size-lg);
|
|
54
54
|
}
|
|
55
55
|
.ty-input-otp__cell_disabled {
|
|
56
56
|
cursor: not-allowed;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
display: inline-flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
color: var(--ty-color-text-secondary);
|
|
67
|
-
font-size:
|
|
67
|
+
font-size: var(--ty-font-size-base);
|
|
68
68
|
}
|
|
69
69
|
.ty-input-otp_disabled {
|
|
70
70
|
cursor: not-allowed;
|