tiny-ui 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/styles/index.css +2 -2
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/index.min.css +1 -1
- package/dist/styles/index.min.css.map +1 -1
- package/dist/tiny.min.js +1 -1
- package/dist/tiny.min.js.map +1 -1
- package/es/alert/style/_index.scss +72 -0
- package/es/alert/style/_mixin.scss +5 -0
- package/es/alert/style/css.js +2 -0
- package/es/anchor/style/_index.scss +83 -0
- package/es/anchor/style/css.js +3 -0
- package/es/aspect-ratio/style/_index.scss +22 -0
- package/es/aspect-ratio/style/css.js +2 -0
- package/es/auto-complete/style/_index.scss +58 -0
- package/es/auto-complete/style/css.js +2 -0
- package/es/avatar/style/_index.scss +80 -0
- package/es/avatar/style/css.js +2 -0
- package/es/back-top/style/_index.scss +25 -0
- package/es/back-top/style/css.js +2 -0
- package/es/badge/style/_index.scss +60 -0
- package/es/badge/style/_mixin.scss +11 -0
- package/es/badge/style/css.js +2 -0
- package/es/breadcrumb/style/_index.scss +38 -0
- package/es/breadcrumb/style/css.js +2 -0
- package/es/button/style/_index.scss +215 -0
- package/es/button/style/_mixin.scss +45 -0
- package/es/button/style/css.js +2 -0
- package/es/calendar/style/_index.scss +190 -0
- package/es/calendar/style/css.js +2 -0
- package/es/card/style/_index.scss +57 -0
- package/es/card/style/_mixin.scss +4 -0
- package/es/card/style/css.js +2 -0
- package/es/carousel/style/_index.scss +158 -0
- package/es/carousel/style/css.js +2 -0
- package/es/cascader/style/_index.scss +162 -0
- package/es/cascader/style/css.js +2 -0
- package/es/checkbox/style/_index.scss +139 -0
- package/es/checkbox/style/css.js +2 -0
- package/es/collapse/style/_index.scss +101 -0
- package/es/collapse/style/css.js +2 -0
- package/es/collapse-transition/style/_index.scss +4 -0
- package/es/collapse-transition/style/css.js +2 -0
- package/es/color-picker/style/_index.scss +196 -0
- package/es/color-picker/style/css.js +2 -0
- package/es/date-picker/style/_index.scss +272 -0
- package/es/date-picker/style/css.js +2 -0
- package/es/descriptions/style/_index.scss +116 -0
- package/es/descriptions/style/css.js +2 -0
- package/es/divider/style/_index.scss +80 -0
- package/es/divider/style/css.js +2 -0
- package/es/drawer/style/_index.scss +152 -0
- package/es/drawer/style/css.js +4 -0
- package/es/dropdown/style/_index.scss +37 -0
- package/es/dropdown/style/css.js +4 -0
- package/es/empty/style/_index.scss +26 -0
- package/es/empty/style/css.js +2 -0
- package/es/flex/style/_index.scss +5 -0
- package/es/flex/style/css.js +2 -0
- package/es/flip/style/_index.scss +61 -0
- package/es/flip/style/css.js +2 -0
- package/es/form/style/_index.scss +93 -0
- package/es/form/style/css.js +3 -0
- package/es/grid/style/_index.scss +90 -0
- package/es/grid/style/css.js +2 -0
- package/es/icon/style/_index.scss +16 -0
- package/es/icon/style/css.js +2 -0
- package/es/image/style/_index.scss +9 -0
- package/es/image/style/css.js +2 -0
- package/es/input/style/_index.scss +180 -0
- package/es/input/style/_mixin.scss +38 -0
- package/es/input/style/css.js +2 -0
- package/es/input-number/style/_index.scss +142 -0
- package/es/input-number/style/css.js +3 -0
- package/es/input-password/style/_index.scss +20 -0
- package/es/input-password/style/css.js +3 -0
- package/es/keyboard/style/_index.scss +23 -0
- package/es/keyboard/style/css.js +2 -0
- package/es/layout/style/_index.scss +82 -0
- package/es/layout/style/css.js +2 -0
- package/es/link/style/_index.scss +17 -0
- package/es/link/style/css.js +2 -0
- package/es/list/style/_index.scss +141 -0
- package/es/list/style/css.js +2 -0
- package/es/loader/style/_index.scss +142 -0
- package/es/loader/style/css.js +2 -0
- package/es/loading-bar/style/_index.scss +17 -0
- package/es/loading-bar/style/css.js +2 -0
- package/es/menu/style/_index.scss +183 -0
- package/es/menu/style/_mixin.scss +16 -0
- package/es/menu/style/css.js +4 -0
- package/es/message/style/_index.scss +59 -0
- package/es/message/style/css.js +2 -0
- package/es/modal/style/_index.scss +116 -0
- package/es/modal/style/css.js +5 -0
- package/es/native-select/style/_index.scss +65 -0
- package/es/native-select/style/_mixin.scss +4 -0
- package/es/native-select/style/css.js +2 -0
- package/es/notification/style/_index.scss +66 -0
- package/es/notification/style/css.js +2 -0
- package/es/overlay/style/_index.scss +51 -0
- package/es/overlay/style/css.js +2 -0
- package/es/pagination/style/_index.scss +143 -0
- package/es/pagination/style/css.js +2 -0
- package/es/pop-confirm/style/_index.scss +25 -0
- package/es/pop-confirm/style/css.js +5 -0
- package/es/popover/style/_index.scss +42 -0
- package/es/popover/style/css.js +4 -0
- package/es/popup/style/_index.scss +84 -0
- package/es/popup/style/css.js +4 -0
- package/es/progress/style/_index.scss +170 -0
- package/es/progress/style/css.js +2 -0
- package/es/radio/style/_index.scss +86 -0
- package/es/radio/style/css.js +2 -0
- package/es/rate/style/_index.scss +31 -0
- package/es/rate/style/css.js +2 -0
- package/es/result/style/_index.scss +48 -0
- package/es/result/style/css.js +2 -0
- package/es/scroll-indicator/style/_index.scss +15 -0
- package/es/scroll-indicator/style/css.js +2 -0
- package/es/segmented/style/_index.scss +93 -0
- package/es/segmented/style/css.js +2 -0
- package/es/select/style/_index.scss +313 -0
- package/es/select/style/css.js +4 -0
- package/es/skeleton/style/_index.scss +42 -0
- package/es/skeleton/style/css.js +2 -0
- package/es/slider/style/_index.scss +177 -0
- package/es/slider/style/css.js +4 -0
- package/es/space/style/_index.scss +25 -0
- package/es/space/style/css.js +2 -0
- package/es/speed-dial/style/_index.scss +230 -0
- package/es/speed-dial/style/css.js +2 -0
- package/es/split/style/_index.scss +98 -0
- package/es/split/style/css.js +2 -0
- package/es/split-button/style/_index.scss +9 -0
- package/es/split-button/style/css.js +5 -0
- package/es/statistic/style/_index.scss +31 -0
- package/es/statistic/style/css.js +2 -0
- package/es/steps/style/_index.scss +208 -0
- package/es/steps/style/css.js +2 -0
- package/es/sticky/style/_index.scss +8 -0
- package/es/sticky/style/css.js +2 -0
- package/es/strength-indicator/style/_index.scss +46 -0
- package/es/strength-indicator/style/css.js +2 -0
- package/es/style/_animation.scss +31 -0
- package/es/style/_component.scss +78 -0
- package/es/style/_font.scss +981 -0
- package/es/style/_mixins.scss +13 -0
- package/es/style/_normalise.scss +405 -0
- package/es/style/_theme.scss +26 -0
- package/es/style/_tokens.scss +61 -0
- package/es/style/_variables.scss +266 -0
- package/es/style/fonts/iconfont.eot +0 -0
- package/es/style/fonts/iconfont.svg +752 -0
- package/es/style/fonts/iconfont.ttf +0 -0
- package/es/style/fonts/iconfont.woff +0 -0
- package/es/style/index.css +10048 -0
- package/es/style/index.scss +7 -0
- package/es/style/themes/_dark.scss +380 -0
- package/es/style/themes/_light.scss +380 -0
- package/es/switch/style/_index.scss +144 -0
- package/es/switch/style/_mixin.scss +16 -0
- package/es/switch/style/css.js +2 -0
- package/es/table/style/_index.scss +143 -0
- package/es/table/style/css.js +2 -0
- package/es/tabs/style/css.js +2 -0
- package/es/tabs/style/index.css +241 -0
- package/es/tabs/style/index.scss +315 -0
- package/es/tag/style/_index.scss +119 -0
- package/es/tag/style/css.js +2 -0
- package/es/textarea/style/_index.scss +28 -0
- package/es/textarea/style/css.js +4 -0
- package/es/time-picker/style/_index.scss +212 -0
- package/es/time-picker/style/css.js +2 -0
- package/es/timeline/style/_index.scss +91 -0
- package/es/timeline/style/css.js +2 -0
- package/es/tooltip/style/_index.scss +41 -0
- package/es/tooltip/style/css.js +4 -0
- package/es/transfer/style/_index.scss +98 -0
- package/es/transfer/style/css.js +6 -0
- package/es/transition/style/_index.scss +20 -0
- package/es/transition/style/_mixin.scss +58 -0
- package/es/transition/style/css.js +2 -0
- package/es/tree/style/_index.scss +66 -0
- package/es/tree/style/css.js +4 -0
- package/es/typography/style/_index.scss +126 -0
- package/es/typography/style/css.js +2 -0
- package/es/upload/style/_index.scss +99 -0
- package/es/upload/style/css.js +4 -0
- package/lib/alert/style/_index.scss +72 -0
- package/lib/alert/style/_mixin.scss +5 -0
- package/lib/alert/style/css.js +4 -0
- package/lib/anchor/style/_index.scss +83 -0
- package/lib/anchor/style/css.js +5 -0
- package/lib/aspect-ratio/style/_index.scss +22 -0
- package/lib/aspect-ratio/style/css.js +4 -0
- package/lib/auto-complete/style/_index.scss +58 -0
- package/lib/auto-complete/style/css.js +4 -0
- package/lib/avatar/style/_index.scss +80 -0
- package/lib/avatar/style/css.js +4 -0
- package/lib/back-top/style/_index.scss +25 -0
- package/lib/back-top/style/css.js +4 -0
- package/lib/badge/style/_index.scss +60 -0
- package/lib/badge/style/_mixin.scss +11 -0
- package/lib/badge/style/css.js +4 -0
- package/lib/breadcrumb/style/_index.scss +38 -0
- package/lib/breadcrumb/style/css.js +4 -0
- package/lib/button/style/_index.scss +215 -0
- package/lib/button/style/_mixin.scss +45 -0
- package/lib/button/style/css.js +4 -0
- package/lib/calendar/style/_index.scss +190 -0
- package/lib/calendar/style/css.js +4 -0
- package/lib/card/style/_index.scss +57 -0
- package/lib/card/style/_mixin.scss +4 -0
- package/lib/card/style/css.js +4 -0
- package/lib/carousel/style/_index.scss +158 -0
- package/lib/carousel/style/css.js +4 -0
- package/lib/cascader/style/_index.scss +162 -0
- package/lib/cascader/style/css.js +4 -0
- package/lib/checkbox/style/_index.scss +139 -0
- package/lib/checkbox/style/css.js +4 -0
- package/lib/collapse/style/_index.scss +101 -0
- package/lib/collapse/style/css.js +4 -0
- package/lib/collapse-transition/style/_index.scss +4 -0
- package/lib/collapse-transition/style/css.js +4 -0
- package/lib/color-picker/style/_index.scss +196 -0
- package/lib/color-picker/style/css.js +4 -0
- package/lib/date-picker/style/_index.scss +272 -0
- package/lib/date-picker/style/css.js +4 -0
- package/lib/descriptions/style/_index.scss +116 -0
- package/lib/descriptions/style/css.js +4 -0
- package/lib/divider/style/_index.scss +80 -0
- package/lib/divider/style/css.js +4 -0
- package/lib/drawer/style/_index.scss +152 -0
- package/lib/drawer/style/css.js +6 -0
- package/lib/dropdown/style/_index.scss +37 -0
- package/lib/dropdown/style/css.js +6 -0
- package/lib/empty/style/_index.scss +26 -0
- package/lib/empty/style/css.js +4 -0
- package/lib/flex/style/_index.scss +5 -0
- package/lib/flex/style/css.js +4 -0
- package/lib/flip/style/_index.scss +61 -0
- package/lib/flip/style/css.js +4 -0
- package/lib/form/style/_index.scss +93 -0
- package/lib/form/style/css.js +5 -0
- package/lib/grid/style/_index.scss +90 -0
- package/lib/grid/style/css.js +4 -0
- package/lib/icon/style/_index.scss +16 -0
- package/lib/icon/style/css.js +4 -0
- package/lib/image/style/_index.scss +9 -0
- package/lib/image/style/css.js +4 -0
- package/lib/input/style/_index.scss +180 -0
- package/lib/input/style/_mixin.scss +38 -0
- package/lib/input/style/css.js +4 -0
- package/lib/input-number/style/_index.scss +142 -0
- package/lib/input-number/style/css.js +5 -0
- package/lib/input-password/style/_index.scss +20 -0
- package/lib/input-password/style/css.js +5 -0
- package/lib/keyboard/style/_index.scss +23 -0
- package/lib/keyboard/style/css.js +4 -0
- package/lib/layout/style/_index.scss +82 -0
- package/lib/layout/style/css.js +4 -0
- package/lib/link/style/_index.scss +17 -0
- package/lib/link/style/css.js +4 -0
- package/lib/list/style/_index.scss +141 -0
- package/lib/list/style/css.js +4 -0
- package/lib/loader/style/_index.scss +142 -0
- package/lib/loader/style/css.js +4 -0
- package/lib/loading-bar/style/_index.scss +17 -0
- package/lib/loading-bar/style/css.js +4 -0
- package/lib/menu/style/_index.scss +183 -0
- package/lib/menu/style/_mixin.scss +16 -0
- package/lib/menu/style/css.js +6 -0
- package/lib/message/style/_index.scss +59 -0
- package/lib/message/style/css.js +4 -0
- package/lib/modal/style/_index.scss +116 -0
- package/lib/modal/style/css.js +7 -0
- package/lib/native-select/style/_index.scss +65 -0
- package/lib/native-select/style/_mixin.scss +4 -0
- package/lib/native-select/style/css.js +4 -0
- package/lib/notification/style/_index.scss +66 -0
- package/lib/notification/style/css.js +4 -0
- package/lib/overlay/style/_index.scss +51 -0
- package/lib/overlay/style/css.js +4 -0
- package/lib/pagination/style/_index.scss +143 -0
- package/lib/pagination/style/css.js +4 -0
- package/lib/pop-confirm/style/_index.scss +25 -0
- package/lib/pop-confirm/style/css.js +7 -0
- package/lib/popover/style/_index.scss +42 -0
- package/lib/popover/style/css.js +6 -0
- package/lib/popup/style/_index.scss +84 -0
- package/lib/popup/style/css.js +6 -0
- package/lib/progress/style/_index.scss +170 -0
- package/lib/progress/style/css.js +4 -0
- package/lib/radio/style/_index.scss +86 -0
- package/lib/radio/style/css.js +4 -0
- package/lib/rate/style/_index.scss +31 -0
- package/lib/rate/style/css.js +4 -0
- package/lib/result/style/_index.scss +48 -0
- package/lib/result/style/css.js +4 -0
- package/lib/scroll-indicator/style/_index.scss +15 -0
- package/lib/scroll-indicator/style/css.js +4 -0
- package/lib/segmented/style/_index.scss +93 -0
- package/lib/segmented/style/css.js +4 -0
- package/lib/select/style/_index.scss +313 -0
- package/lib/select/style/css.js +6 -0
- package/lib/skeleton/style/_index.scss +42 -0
- package/lib/skeleton/style/css.js +4 -0
- package/lib/slider/style/_index.scss +177 -0
- package/lib/slider/style/css.js +6 -0
- package/lib/space/style/_index.scss +25 -0
- package/lib/space/style/css.js +4 -0
- package/lib/speed-dial/style/_index.scss +230 -0
- package/lib/speed-dial/style/css.js +4 -0
- package/lib/split/style/_index.scss +98 -0
- package/lib/split/style/css.js +4 -0
- package/lib/split-button/style/_index.scss +9 -0
- package/lib/split-button/style/css.js +7 -0
- package/lib/statistic/style/_index.scss +31 -0
- package/lib/statistic/style/css.js +4 -0
- package/lib/steps/style/_index.scss +208 -0
- package/lib/steps/style/css.js +4 -0
- package/lib/sticky/style/_index.scss +8 -0
- package/lib/sticky/style/css.js +4 -0
- package/lib/strength-indicator/style/_index.scss +46 -0
- package/lib/strength-indicator/style/css.js +4 -0
- package/lib/style/_animation.scss +31 -0
- package/lib/style/_component.scss +78 -0
- package/lib/style/_font.scss +981 -0
- package/lib/style/_mixins.scss +13 -0
- package/lib/style/_normalise.scss +405 -0
- package/lib/style/_theme.scss +26 -0
- package/lib/style/_tokens.scss +61 -0
- package/lib/style/_variables.scss +266 -0
- package/lib/style/fonts/iconfont.eot +0 -0
- package/lib/style/fonts/iconfont.svg +752 -0
- package/lib/style/fonts/iconfont.ttf +0 -0
- package/lib/style/fonts/iconfont.woff +0 -0
- package/lib/style/index.css +10048 -0
- package/lib/style/index.scss +7 -0
- package/lib/style/themes/_dark.scss +380 -0
- package/lib/style/themes/_light.scss +380 -0
- package/lib/switch/style/_index.scss +144 -0
- package/lib/switch/style/_mixin.scss +16 -0
- package/lib/switch/style/css.js +4 -0
- package/lib/table/style/_index.scss +143 -0
- package/lib/table/style/css.js +4 -0
- package/lib/tabs/style/css.js +4 -0
- package/lib/tabs/style/index.css +241 -0
- package/lib/tabs/style/index.scss +315 -0
- package/lib/tag/style/_index.scss +119 -0
- package/lib/tag/style/css.js +4 -0
- package/lib/textarea/style/_index.scss +28 -0
- package/lib/textarea/style/css.js +6 -0
- package/lib/time-picker/style/_index.scss +212 -0
- package/lib/time-picker/style/css.js +4 -0
- package/lib/timeline/style/_index.scss +91 -0
- package/lib/timeline/style/css.js +4 -0
- package/lib/tooltip/style/_index.scss +41 -0
- package/lib/tooltip/style/css.js +6 -0
- package/lib/transfer/style/_index.scss +98 -0
- package/lib/transfer/style/css.js +8 -0
- package/lib/transition/style/_index.scss +20 -0
- package/lib/transition/style/_mixin.scss +58 -0
- package/lib/transition/style/css.js +4 -0
- package/lib/tree/style/_index.scss +66 -0
- package/lib/tree/style/css.js +6 -0
- package/lib/typography/style/_index.scss +126 -0
- package/lib/typography/style/css.js +4 -0
- package/lib/upload/style/_index.scss +99 -0
- package/lib/upload/style/css.js +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
@use '../../style/variables' as *;
|
|
2
|
+
|
|
3
|
+
$tp: #{$prefix}-time-picker;
|
|
4
|
+
|
|
5
|
+
.#{$tp} {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
position: relative;
|
|
8
|
+
font-size: $font-size-base;
|
|
9
|
+
font-family: $font-family;
|
|
10
|
+
|
|
11
|
+
// ---- Input ----
|
|
12
|
+
&__input {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
width: 100%;
|
|
16
|
+
padding: 4px 11px;
|
|
17
|
+
border: 1px solid var(--ty-input-border);
|
|
18
|
+
border-radius: 6px;
|
|
19
|
+
background: var(--ty-picker-input-bg);
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
transition: border-color 0.3s, box-shadow 0.3s;
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
border-color: var(--ty-color-primary);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&_open &__input {
|
|
29
|
+
border-color: var(--ty-color-primary);
|
|
30
|
+
box-shadow: var(--ty-input-focus-shadow);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__input-field {
|
|
34
|
+
flex: 1;
|
|
35
|
+
border: none;
|
|
36
|
+
outline: none;
|
|
37
|
+
background: transparent;
|
|
38
|
+
font-size: inherit;
|
|
39
|
+
font-family: inherit;
|
|
40
|
+
color: var(--ty-color-text);
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
min-width: 90px;
|
|
43
|
+
|
|
44
|
+
&::placeholder {
|
|
45
|
+
color: var(--ty-color-text-quaternary);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:disabled {
|
|
49
|
+
cursor: not-allowed;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__suffix {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
width: 14px;
|
|
59
|
+
height: 14px;
|
|
60
|
+
margin-left: 4px;
|
|
61
|
+
color: var(--ty-color-text-quaternary);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__icon {
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__clear {
|
|
70
|
+
display: none;
|
|
71
|
+
position: absolute;
|
|
72
|
+
inset: 0;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
color: var(--ty-color-text-quaternary);
|
|
77
|
+
background: var(--ty-picker-clear-bg);
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
transition: color 0.2s;
|
|
80
|
+
border: none;
|
|
81
|
+
padding: 0;
|
|
82
|
+
|
|
83
|
+
&:hover {
|
|
84
|
+
color: var(--ty-color-text-tertiary);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&_has-value:hover &__clear {
|
|
89
|
+
display: inline-flex;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ---- Sizes ----
|
|
93
|
+
&_sm &__input {
|
|
94
|
+
padding: 0 7px;
|
|
95
|
+
font-size: 12px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&_sm &__input-field {
|
|
99
|
+
min-width: 70px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&_lg &__input {
|
|
103
|
+
padding: 6px 11px;
|
|
104
|
+
font-size: 16px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&_lg &__input-field {
|
|
108
|
+
min-width: 110px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// ---- Disabled ----
|
|
112
|
+
&_disabled {
|
|
113
|
+
opacity: 0.65;
|
|
114
|
+
|
|
115
|
+
.#{$tp}__input {
|
|
116
|
+
background: var(--ty-color-bg-disabled);
|
|
117
|
+
cursor: not-allowed;
|
|
118
|
+
border-color: var(--ty-input-border);
|
|
119
|
+
|
|
120
|
+
&:hover {
|
|
121
|
+
border-color: var(--ty-input-border);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.#{$tp}__input-field {
|
|
126
|
+
color: var(--ty-color-text-quaternary);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// ---- Dropdown ----
|
|
131
|
+
&__dropdown {
|
|
132
|
+
background: var(--ty-picker-dropdown-bg);
|
|
133
|
+
border-radius: 8px;
|
|
134
|
+
box-shadow: var(--ty-shadow-popup);
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// ---- Panel ----
|
|
139
|
+
&__panel {
|
|
140
|
+
display: flex;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__column {
|
|
144
|
+
flex: 1;
|
|
145
|
+
max-height: 224px;
|
|
146
|
+
overflow-y: auto;
|
|
147
|
+
border-left: 1px solid var(--ty-color-border-light);
|
|
148
|
+
scrollbar-width: thin;
|
|
149
|
+
|
|
150
|
+
&:first-child {
|
|
151
|
+
border-left: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&::-webkit-scrollbar {
|
|
155
|
+
width: 4px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&::-webkit-scrollbar-thumb {
|
|
159
|
+
background: var(--ty-color-text-quaternary);
|
|
160
|
+
border-radius: 2px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&__column-list {
|
|
165
|
+
list-style: none;
|
|
166
|
+
padding: 4px 0;
|
|
167
|
+
margin: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// ---- Cell ----
|
|
171
|
+
&__cell {
|
|
172
|
+
padding: 4px 0;
|
|
173
|
+
text-align: center;
|
|
174
|
+
min-width: 52px;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
border-radius: 4px;
|
|
177
|
+
margin: 0 4px;
|
|
178
|
+
line-height: 20px;
|
|
179
|
+
transition: background 0.2s;
|
|
180
|
+
user-select: none;
|
|
181
|
+
|
|
182
|
+
&:hover {
|
|
183
|
+
background: var(--ty-picker-cell-hover-bg);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&_selected {
|
|
187
|
+
background: var(--ty-color-primary-bg);
|
|
188
|
+
font-weight: 500;
|
|
189
|
+
|
|
190
|
+
&:hover {
|
|
191
|
+
background: var(--ty-color-primary-bg-hover);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&_disabled {
|
|
196
|
+
color: var(--ty-color-text-quaternary);
|
|
197
|
+
cursor: not-allowed;
|
|
198
|
+
|
|
199
|
+
&:hover {
|
|
200
|
+
background: transparent;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// ---- Footer ----
|
|
206
|
+
&__footer {
|
|
207
|
+
padding: 8px 12px;
|
|
208
|
+
border-top: 1px solid var(--ty-color-border-light);
|
|
209
|
+
text-align: center;
|
|
210
|
+
font-size: 12px;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
@use '../../style/variables' as *;
|
|
2
|
+
|
|
3
|
+
.#{$prefix}-timeline {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
color: var(--ty-color-text-secondary);
|
|
6
|
+
font-size: $font-size-base;
|
|
7
|
+
line-height: 1.5;
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
list-style: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.#{$prefix}-timeline-item {
|
|
14
|
+
position: relative;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0 0 20px;
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
list-style: none;
|
|
20
|
+
|
|
21
|
+
&:last-child {
|
|
22
|
+
.#{$prefix}-timeline-item__head {
|
|
23
|
+
&:before {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__head {
|
|
30
|
+
width: 16px;
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
position: absolute;
|
|
33
|
+
color: var(--ty-color-primary);
|
|
34
|
+
height: 100%;
|
|
35
|
+
|
|
36
|
+
&:before {
|
|
37
|
+
content: '';
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0;
|
|
40
|
+
left: 50%;
|
|
41
|
+
transform: translateX(-50%);
|
|
42
|
+
height: 100%;
|
|
43
|
+
border-left: 2px solid var(--ty-timeline-line-color);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__dot-container {
|
|
48
|
+
position: absolute;
|
|
49
|
+
left: 50%;
|
|
50
|
+
transform: translateX(-50%);
|
|
51
|
+
background-color: transparent;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__dot {
|
|
55
|
+
display: inline-block;
|
|
56
|
+
width: 10px;
|
|
57
|
+
height: 10px;
|
|
58
|
+
border: 2px solid var(--ty-color-primary);
|
|
59
|
+
border-radius: 100px;
|
|
60
|
+
background-color: var(--ty-color-bg);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__content {
|
|
64
|
+
position: relative;
|
|
65
|
+
top: 0;
|
|
66
|
+
padding-left: 25px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&_left,
|
|
70
|
+
&_right {
|
|
71
|
+
.#{$prefix}-timeline-item__head {
|
|
72
|
+
left: 50%;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&_left {
|
|
77
|
+
.#{$prefix}-timeline-item__content {
|
|
78
|
+
left: 50%;
|
|
79
|
+
width: 50%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&_right {
|
|
84
|
+
.#{$prefix}-timeline-item__content {
|
|
85
|
+
width: 50%;
|
|
86
|
+
text-align: right;
|
|
87
|
+
padding-left: 0;
|
|
88
|
+
padding-right: 9px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../style/variables' as *;
|
|
3
|
+
|
|
4
|
+
.#{$prefix}-tooltip {
|
|
5
|
+
font-size: $tooltip-font-size;
|
|
6
|
+
|
|
7
|
+
&__inner {
|
|
8
|
+
padding: $tooltip-content-padding;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.#{$prefix}-popup {
|
|
12
|
+
&__arrow, &__arrow:before {
|
|
13
|
+
width: $tooltip-arrow-size;
|
|
14
|
+
height: $tooltip-arrow-size;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[data-popper-placement^='top'] {
|
|
19
|
+
& > .#{$prefix}-popup__arrow {
|
|
20
|
+
bottom: math.div(-$tooltip-arrow-size, 2);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-popper-placement^='bottom'] {
|
|
25
|
+
> .#{$prefix}-popup__arrow {
|
|
26
|
+
top: math.div(-$tooltip-arrow-size, 2);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[data-popper-placement^='left'] {
|
|
31
|
+
> .#{$prefix}-popup__arrow {
|
|
32
|
+
right: math.div(-$tooltip-arrow-size, 2);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[data-popper-placement^='right'] {
|
|
37
|
+
> .#{$prefix}-popup__arrow {
|
|
38
|
+
left: math.div(-$tooltip-arrow-size, 2);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
@use '../../style/variables' as *;
|
|
2
|
+
|
|
3
|
+
.#{$prefix}-transfer {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
font-size: $font-size-base;
|
|
6
|
+
color: var(--ty-color-text);
|
|
7
|
+
|
|
8
|
+
&__left-arrow {
|
|
9
|
+
transform: rotate(-90deg);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__right-arrow {
|
|
13
|
+
transform: rotate(90deg);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__buttons {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
margin: 0 8px;
|
|
20
|
+
vertical-align: middle;
|
|
21
|
+
|
|
22
|
+
.#{$prefix}-btn {
|
|
23
|
+
display: block;
|
|
24
|
+
margin: 3px 0;
|
|
25
|
+
padding: 3px;
|
|
26
|
+
min-width: 30px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.#{$prefix}-transfer-panel {
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
display: inline-block;
|
|
34
|
+
vertical-align: middle;
|
|
35
|
+
width: 180px;
|
|
36
|
+
border: 1px solid var(--ty-transfer-border);
|
|
37
|
+
border-radius: $border-radius;
|
|
38
|
+
|
|
39
|
+
&__header {
|
|
40
|
+
padding: 8px 12px 9px;
|
|
41
|
+
color: var(--ty-color-text);
|
|
42
|
+
background: var(--ty-transfer-header-bg);
|
|
43
|
+
border-bottom: 1px solid var(--ty-transfer-footer-border);
|
|
44
|
+
border-radius: $border-radius $border-radius 0 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__body {
|
|
48
|
+
position: relative;
|
|
49
|
+
padding: 6px 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__input-container{
|
|
53
|
+
padding: 6px 12px 12px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__list-container{
|
|
57
|
+
height: 192px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__list {
|
|
61
|
+
display: block;
|
|
62
|
+
position: relative;
|
|
63
|
+
height: 100%;
|
|
64
|
+
overflow-y: auto;
|
|
65
|
+
margin: 0;
|
|
66
|
+
list-style: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__list-item {
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
padding: 0 12px;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
text-overflow: ellipsis;
|
|
75
|
+
min-height: 32px;
|
|
76
|
+
display: flex;
|
|
77
|
+
margin-right: 0;
|
|
78
|
+
transition: background-color 250ms;
|
|
79
|
+
|
|
80
|
+
&:not(.#{$prefix}-checkbox_disabled):hover{
|
|
81
|
+
background-color: var(--ty-transfer-item-hover-bg);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&__not-found {
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 50%;
|
|
88
|
+
transform: translateY(-50%);
|
|
89
|
+
width: 100%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&__footer {
|
|
93
|
+
padding: 8px 12px 9px;
|
|
94
|
+
border-top: 1px solid var(--ty-transfer-footer-border);
|
|
95
|
+
background-color: var(--ty-transfer-footer-bg);
|
|
96
|
+
border-radius: 0 0 $border-radius $border-radius;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
require("./index.css");
|
|
4
|
+
require("../../button/style/index.css");
|
|
5
|
+
require("../../checkbox/style/index.css");
|
|
6
|
+
require("../../empty/style/index.css");
|
|
7
|
+
require("../../input/style/index.css");
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use "./mixin" as *;
|
|
2
|
+
|
|
3
|
+
// Only scale in one direction
|
|
4
|
+
@include zoom-animation('center-top', scaleY(0), scaleY(1), center bottom);
|
|
5
|
+
@include zoom-animation('center-left', scaleX(0), scaleX(1), right center);
|
|
6
|
+
@include zoom-animation('center-right', scaleX(0), scaleX(1), left center);
|
|
7
|
+
@include zoom-animation('center-bottom', scaleY(0), scaleY(1), center top);
|
|
8
|
+
|
|
9
|
+
// Scale both horizontal and vertical direction
|
|
10
|
+
@include zoom-animation('top-start', scale(0, 0), scale(1, 1), left bottom);
|
|
11
|
+
@include zoom-animation('top', scale(0, 0), scale(1, 1), center bottom);
|
|
12
|
+
@include zoom-animation('top-end', scale(0, 0), scale(1, 1), right bottom);
|
|
13
|
+
@include zoom-animation('bottom-start', scale(0, 0), scale(1, 1), left top);
|
|
14
|
+
@include zoom-animation('bottom', scale(0, 0), scale(1, 1), center top);
|
|
15
|
+
@include zoom-animation('bottom-end', scale(0, 0), scale(1, 1), right top);
|
|
16
|
+
@include zoom-animation('left', scale(0, 0), scale(1, 1), right center);
|
|
17
|
+
@include zoom-animation('right', scale(0, 0), scale(1, 1), left center);
|
|
18
|
+
|
|
19
|
+
@include slide-animation('down', translateY(-10px), translateY(0));
|
|
20
|
+
@include slide-animation('up', translateY(10px), translateY(0));
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use "../../style/variables" as *;
|
|
2
|
+
|
|
3
|
+
@mixin zoom-animation(
|
|
4
|
+
$direction: 'top',
|
|
5
|
+
$scaleStart: scaleY(0),
|
|
6
|
+
$scaleEnd: scaleY(1),
|
|
7
|
+
$origin: center top,
|
|
8
|
+
) {
|
|
9
|
+
.#{$prefix}-zoom-#{$direction} {
|
|
10
|
+
&-enter {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
transform: $scaleStart;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-enter-active {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
transform: $scaleEnd;
|
|
18
|
+
transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms;
|
|
19
|
+
transform-origin: $origin
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-exit {
|
|
23
|
+
opacity: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-exit-active {
|
|
27
|
+
opacity: 0;
|
|
28
|
+
transform: $scaleStart;
|
|
29
|
+
transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms;
|
|
30
|
+
transform-origin: $origin;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin slide-animation($direction, $moveStart, $moveEnd) {
|
|
36
|
+
.#{$prefix}-slide-#{$direction} {
|
|
37
|
+
&-enter {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
transform: $moveStart;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-enter-active {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
transform: $moveEnd;
|
|
45
|
+
transition: transform 300ms, opacity 300ms;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-exit {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-exit-active {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
transform: $moveStart;
|
|
55
|
+
transition: transform 300ms, opacity 300ms;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use '../../style/variables' as *;
|
|
2
|
+
|
|
3
|
+
.#{$prefix}-tree {
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
list-style: none;
|
|
7
|
+
font-size: $tree-font-size;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.#{$prefix}-tree-node {
|
|
11
|
+
margin: 2px 0;
|
|
12
|
+
|
|
13
|
+
&__switcher {
|
|
14
|
+
width: 20px;
|
|
15
|
+
height: 20px;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__arrow {
|
|
22
|
+
color: var(--ty-tree-arrow-color);
|
|
23
|
+
transform: rotate(-90deg);
|
|
24
|
+
transition: transform 250ms;
|
|
25
|
+
|
|
26
|
+
&_active {
|
|
27
|
+
transform: rotate(0deg);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__label {
|
|
32
|
+
padding: 1px 2px;
|
|
33
|
+
margin-left: -4px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__title {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
align-items: center;
|
|
39
|
+
min-height: 24px;
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
transition: background-color 250ms;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__label {
|
|
45
|
+
flex: 1;
|
|
46
|
+
transition: background-color 250ms;
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
background-color: var(--ty-tree-hover-bg);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.#{$prefix}-checkbox {
|
|
54
|
+
margin-right: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&_block {
|
|
58
|
+
.#{$prefix}-tree-node__title {
|
|
59
|
+
display: flex;
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
background-color: var(--ty-tree-hover-bg);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|