@tendaui/react 1.1.1
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/LICENSE +21 -0
- package/README.md +2 -0
- package/es/_chunks/dep-0QH2Ee4R.js +34 -0
- package/es/_chunks/dep-0QH2Ee4R.js.map +1 -0
- package/es/_chunks/dep-B7HmDtze.js +199 -0
- package/es/_chunks/dep-B7HmDtze.js.map +1 -0
- package/es/_chunks/dep-BH5n5r1M.js +55 -0
- package/es/_chunks/dep-BH5n5r1M.js.map +1 -0
- package/es/_chunks/dep-BP0-apUT.js +9 -0
- package/es/_chunks/dep-BP0-apUT.js.map +1 -0
- package/es/_chunks/dep-C1XcmShP.js +18 -0
- package/es/_chunks/dep-C1XcmShP.js.map +1 -0
- package/es/_chunks/dep-C36au4Ip.js +104 -0
- package/es/_chunks/dep-C36au4Ip.js.map +1 -0
- package/es/_chunks/dep-CgyDw_YI.js +20 -0
- package/es/_chunks/dep-CgyDw_YI.js.map +1 -0
- package/es/_chunks/dep-CoIiHOgo.js +162 -0
- package/es/_chunks/dep-CoIiHOgo.js.map +1 -0
- package/es/_chunks/dep-Cwish4GD.js +29 -0
- package/es/_chunks/dep-Cwish4GD.js.map +1 -0
- package/es/_chunks/dep-CzLhKWCf.js +56 -0
- package/es/_chunks/dep-CzLhKWCf.js.map +1 -0
- package/es/_chunks/dep-D-UKOauR.js +12 -0
- package/es/_chunks/dep-D-UKOauR.js.map +1 -0
- package/es/_chunks/dep-D6YxJv-F.js +31 -0
- package/es/_chunks/dep-D6YxJv-F.js.map +1 -0
- package/es/_chunks/dep-D7LanWes.js +171 -0
- package/es/_chunks/dep-D7LanWes.js.map +1 -0
- package/es/_chunks/dep-D8jki30S.js +31 -0
- package/es/_chunks/dep-D8jki30S.js.map +1 -0
- package/es/_chunks/dep-DB5wmwh1.js +48 -0
- package/es/_chunks/dep-DB5wmwh1.js.map +1 -0
- package/es/_chunks/dep-DGvfel3I.js +16 -0
- package/es/_chunks/dep-DGvfel3I.js.map +1 -0
- package/es/_chunks/dep-DHWwZ2Nj.js +139 -0
- package/es/_chunks/dep-DHWwZ2Nj.js.map +1 -0
- package/es/_chunks/dep-DN7d1SzH.js +24 -0
- package/es/_chunks/dep-DN7d1SzH.js.map +1 -0
- package/es/_chunks/dep-DZ_0EvBk.js +440 -0
- package/es/_chunks/dep-DZ_0EvBk.js.map +1 -0
- package/es/_chunks/dep-Dk2xX8lh.js +691 -0
- package/es/_chunks/dep-Dk2xX8lh.js.map +1 -0
- package/es/_chunks/dep-DwWrhxkd.js +26 -0
- package/es/_chunks/dep-DwWrhxkd.js.map +1 -0
- package/es/_chunks/dep-EcrDKDlu.js +1677 -0
- package/es/_chunks/dep-EcrDKDlu.js.map +1 -0
- package/es/_chunks/dep-PPA-yoAy.js +16 -0
- package/es/_chunks/dep-PPA-yoAy.js.map +1 -0
- package/es/_chunks/dep-U1T8CQY9.js +4 -0
- package/es/_chunks/dep-U1T8CQY9.js.map +1 -0
- package/es/_chunks/dep-bWaVq_y3.js +14 -0
- package/es/_chunks/dep-bWaVq_y3.js.map +1 -0
- package/es/_chunks/dep-u1x3x6MJ.js +9 -0
- package/es/_chunks/dep-u1x3x6MJ.js.map +1 -0
- package/es/alert/Alert.js +153 -0
- package/es/alert/Alert.js.map +1 -0
- package/es/alert/index.js +23 -0
- package/es/alert/index.js.map +1 -0
- package/es/alert/style/css.js +1 -0
- package/es/alert/style/index.css +172 -0
- package/es/alert/style/index.js +2 -0
- package/es/alert/style/index.js.map +1 -0
- package/es/badge/Badge.js +81 -0
- package/es/badge/Badge.js.map +1 -0
- package/es/badge/index.js +15 -0
- package/es/badge/index.js.map +1 -0
- package/es/badge/style/css.js +1 -0
- package/es/badge/style/index.css +60 -0
- package/es/badge/style/index.js +2 -0
- package/es/badge/style/index.js.map +1 -0
- package/es/button/Button.js +94 -0
- package/es/button/Button.js.map +1 -0
- package/es/button/index.js +28 -0
- package/es/button/index.js.map +1 -0
- package/es/button/style/css.js +1 -0
- package/es/button/style/index.css +1206 -0
- package/es/button/style/index.js +2 -0
- package/es/button/style/index.js.map +1 -0
- package/es/checkbox/Checkbox.js +17 -0
- package/es/checkbox/Checkbox.js.map +1 -0
- package/es/checkbox/CheckboxGroup.js +17 -0
- package/es/checkbox/CheckboxGroup.js.map +1 -0
- package/es/checkbox/index.js +22 -0
- package/es/checkbox/index.js.map +1 -0
- package/es/checkbox/style/css.js +1 -0
- package/es/checkbox/style/index.css +151 -0
- package/es/checkbox/style/index.js +2 -0
- package/es/checkbox/style/index.js.map +1 -0
- package/es/common/Check.js +101 -0
- package/es/common/Check.js.map +1 -0
- package/es/common/FakeArrow.js +28 -0
- package/es/common/FakeArrow.js.map +1 -0
- package/es/common/PluginContainer.js +19 -0
- package/es/common/PluginContainer.js.map +1 -0
- package/es/common/Portal.js +53 -0
- package/es/common/Portal.js.map +1 -0
- package/es/config-provider/ConfigContext.js +17 -0
- package/es/config-provider/ConfigContext.js.map +1 -0
- package/es/config-provider/ConfigProvider.js +45 -0
- package/es/config-provider/ConfigProvider.js.map +1 -0
- package/es/config-provider/index.js +12 -0
- package/es/config-provider/index.js.map +1 -0
- package/es/dialog/Dialog.js +575 -0
- package/es/dialog/Dialog.js.map +1 -0
- package/es/dialog/DialogCard.js +28 -0
- package/es/dialog/DialogCard.js.map +1 -0
- package/es/dialog/index.js +44 -0
- package/es/dialog/index.js.map +1 -0
- package/es/dialog/plugin.js +199 -0
- package/es/dialog/plugin.js.map +1 -0
- package/es/dialog/style/css.js +1 -0
- package/es/dialog/style/index.css +510 -0
- package/es/dialog/style/index.js +2 -0
- package/es/dialog/style/index.js.map +1 -0
- package/es/form/Form.js +190 -0
- package/es/form/Form.js.map +1 -0
- package/es/form/FormContext.js +38 -0
- package/es/form/FormContext.js.map +1 -0
- package/es/form/FormItem.js +39 -0
- package/es/form/FormItem.js.map +1 -0
- package/es/form/FormList.js +306 -0
- package/es/form/FormList.js.map +1 -0
- package/es/form/hooks/useFormItemStyle.js +10 -0
- package/es/form/hooks/useFormItemStyle.js.map +1 -0
- package/es/form/hooks/useInstance.js +326 -0
- package/es/form/hooks/useInstance.js.map +1 -0
- package/es/form/index.js +47 -0
- package/es/form/index.js.map +1 -0
- package/es/form/style/css.js +1 -0
- package/es/form/style/index.css +296 -0
- package/es/form/style/index.js +2 -0
- package/es/form/style/index.js.map +1 -0
- package/es/form/utils/index.js +75 -0
- package/es/form/utils/index.js.map +1 -0
- package/es/hooks/useDragSorter.js +137 -0
- package/es/hooks/useDragSorter.js.map +1 -0
- package/es/index.js +103 -0
- package/es/index.js.map +1 -0
- package/es/input/Input.js +375 -0
- package/es/input/Input.js.map +1 -0
- package/es/input/InputGroup.js +23 -0
- package/es/input/InputGroup.js.map +1 -0
- package/es/input/index.js +23 -0
- package/es/input/index.js.map +1 -0
- package/es/input/style/css.js +1 -0
- package/es/input/style/index.css +450 -0
- package/es/input/style/index.js +2 -0
- package/es/input/style/index.js.map +1 -0
- package/es/loading/Gradient.js +86 -0
- package/es/loading/Gradient.js.map +1 -0
- package/es/loading/Loading.js +147 -0
- package/es/loading/Loading.js.map +1 -0
- package/es/loading/index.js +24 -0
- package/es/loading/index.js.map +1 -0
- package/es/loading/style/css.js +1 -0
- package/es/loading/style/index.css +191 -0
- package/es/loading/style/index.js +2 -0
- package/es/loading/style/index.js.map +1 -0
- package/es/myform/index.js +2 -0
- package/es/myform/index.js.map +1 -0
- package/es/notification/NotifyContainer.js +78 -0
- package/es/notification/NotifyContainer.js.map +1 -0
- package/es/notification/NotifyContext.js +149 -0
- package/es/notification/NotifyContext.js.map +1 -0
- package/es/notification/NotifyItem.js +150 -0
- package/es/notification/NotifyItem.js.map +1 -0
- package/es/notification/index.js +32 -0
- package/es/notification/index.js.map +1 -0
- package/es/notification/style/css.js +1 -0
- package/es/notification/style/index.css +142 -0
- package/es/notification/style/index.js +2 -0
- package/es/notification/style/index.js.map +1 -0
- package/es/popup/Popup.js +790 -0
- package/es/popup/Popup.js.map +1 -0
- package/es/popup/index.js +28 -0
- package/es/popup/index.js.map +1 -0
- package/es/popup/style/css.js +1 -0
- package/es/popup/style/index.css +186 -0
- package/es/popup/style/index.js +2 -0
- package/es/popup/style/index.js.map +1 -0
- package/es/portal/Portal.js +48 -0
- package/es/portal/Portal.js.map +1 -0
- package/es/portal/index.js +7 -0
- package/es/portal/index.js.map +1 -0
- package/es/select/Option.js +118 -0
- package/es/select/Option.js.map +1 -0
- package/es/select/OptionGroup.js +9 -0
- package/es/select/OptionGroup.js.map +1 -0
- package/es/select/PopupContent.js +16 -0
- package/es/select/PopupContent.js.map +1 -0
- package/es/select/Select.js +709 -0
- package/es/select/Select.js.map +1 -0
- package/es/select/index.js +66 -0
- package/es/select/index.js.map +1 -0
- package/es/select/style/css.js +1 -0
- package/es/select/style/index.css +437 -0
- package/es/select/style/index.js +2 -0
- package/es/select/style/index.js.map +1 -0
- package/es/select-input/SelectInput.js +202 -0
- package/es/select-input/SelectInput.js.map +1 -0
- package/es/select-input/hook/useMultiple.js +118 -0
- package/es/select-input/hook/useMultiple.js.map +1 -0
- package/es/select-input/hook/useSingle.js +105 -0
- package/es/select-input/hook/useSingle.js.map +1 -0
- package/es/select-input/index.js +51 -0
- package/es/select-input/index.js.map +1 -0
- package/es/select-input/style/css.js +1 -0
- package/es/select-input/style/index.css +0 -0
- package/es/select-input/style/index.js +2 -0
- package/es/select-input/style/index.js.map +1 -0
- package/es/space/index.js +2 -0
- package/es/space/index.js.map +1 -0
- package/es/style/index.css +490 -0
- package/es/style/index.js +2 -0
- package/es/style/index.js.map +1 -0
- package/es/switch/Switch.js +174 -0
- package/es/switch/Switch.js.map +1 -0
- package/es/switch/index.js +28 -0
- package/es/switch/index.js.map +1 -0
- package/es/switch/style/css.js +1 -0
- package/es/switch/style/index.css +239 -0
- package/es/switch/style/index.js +2 -0
- package/es/switch/style/index.js.map +1 -0
- package/es/tag/Tag.js +1312 -0
- package/es/tag/Tag.js.map +1 -0
- package/es/tag/index.js +21 -0
- package/es/tag/index.js.map +1 -0
- package/es/tag/style/css.js +1 -0
- package/es/tag/style/index.css +236 -0
- package/es/tag/style/index.js +2 -0
- package/es/tag/style/index.js.map +1 -0
- package/es/tag-input/TagInput.js +360 -0
- package/es/tag-input/TagInput.js.map +1 -0
- package/es/tag-input/hooks/useTagList.js +167 -0
- package/es/tag-input/hooks/useTagList.js.map +1 -0
- package/es/tag-input/index.js +35 -0
- package/es/tag-input/index.js.map +1 -0
- package/es/tag-input/style/css.js +1 -0
- package/es/tag-input/style/index.css +223 -0
- package/es/tag-input/style/index.js +2 -0
- package/es/tag-input/style/index.js.map +1 -0
- package/es/tag-input/useTagList.js +167 -0
- package/es/tag-input/useTagList.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
.t-tips {
|
|
2
|
+
font-size: var(--td-font-size-body-small);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.t-tips.t-is-default {
|
|
6
|
+
color: #000;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.t-tips.t-is-error {
|
|
10
|
+
color: #000;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.t-tips.t-is-warning {
|
|
14
|
+
color: #000;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.t-tips.t-is-success {
|
|
18
|
+
color: #000;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.t-input {
|
|
22
|
+
font: var(--td-font-body-medium);
|
|
23
|
+
color: var(--td-text-color-primary);
|
|
24
|
+
-webkit-box-sizing: border-box;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
list-style: none;
|
|
29
|
+
}
|
|
30
|
+
.t-input.t-is-success {
|
|
31
|
+
border-color: #000;
|
|
32
|
+
}
|
|
33
|
+
.t-input.t-is-success:focus, .t-input.t-is-success.t-input--focused {
|
|
34
|
+
-webkit-box-shadow: 0 0 0 2px #000;
|
|
35
|
+
box-shadow: 0 0 0 2px #000;
|
|
36
|
+
}
|
|
37
|
+
.t-input.t-is-success > .t-input__extra {
|
|
38
|
+
color: #000;
|
|
39
|
+
}
|
|
40
|
+
.t-input.t-is-warning {
|
|
41
|
+
border-color: #000;
|
|
42
|
+
}
|
|
43
|
+
.t-input.t-is-warning:focus, .t-input.t-is-warning.t-input--focused {
|
|
44
|
+
-webkit-box-shadow: 0 0 0 2px #000;
|
|
45
|
+
box-shadow: 0 0 0 2px #000;
|
|
46
|
+
}
|
|
47
|
+
.t-input.t-is-warning > .t-input__extra {
|
|
48
|
+
color: #000;
|
|
49
|
+
}
|
|
50
|
+
.t-input.t-is-error {
|
|
51
|
+
border-color: #000;
|
|
52
|
+
}
|
|
53
|
+
.t-input.t-is-error:focus, .t-input.t-is-error.t-input--focused {
|
|
54
|
+
-webkit-box-shadow: 0 0 0 2px #000;
|
|
55
|
+
box-shadow: 0 0 0 2px #000;
|
|
56
|
+
}
|
|
57
|
+
.t-input.t-is-error > .t-input__extra {
|
|
58
|
+
color: #000;
|
|
59
|
+
}
|
|
60
|
+
.t-input {
|
|
61
|
+
width: 100%;
|
|
62
|
+
position: relative;
|
|
63
|
+
-webkit-box-sizing: border-box;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
height: var(--td-comp-size-m);
|
|
66
|
+
border-width: 1px;
|
|
67
|
+
border-style: solid;
|
|
68
|
+
border-radius: var(--td-radius-default);
|
|
69
|
+
border-color: var(--td-border-level-2-color);
|
|
70
|
+
padding: 0 var(--td-comp-paddingLR-s);
|
|
71
|
+
background-color: var(--td-bg-color-specialcomponent);
|
|
72
|
+
outline: none;
|
|
73
|
+
color: var(--td-text-color-primary);
|
|
74
|
+
font: var(--td-font-body-medium);
|
|
75
|
+
width: 100%;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
-webkit-transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s, -webkit-box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
78
|
+
transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s, -webkit-box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
79
|
+
transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
80
|
+
transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s, -webkit-box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
81
|
+
display: -webkit-box;
|
|
82
|
+
display: -ms-flexbox;
|
|
83
|
+
display: flex;
|
|
84
|
+
-webkit-box-align: center;
|
|
85
|
+
-ms-flex-align: center;
|
|
86
|
+
align-items: center;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
}
|
|
89
|
+
.t-input:hover {
|
|
90
|
+
border-color: var(--td-brand-color);
|
|
91
|
+
}
|
|
92
|
+
.t-input:focus {
|
|
93
|
+
z-index: 1;
|
|
94
|
+
border-color: var(--td-brand-color);
|
|
95
|
+
-webkit-box-shadow: 0 0 0 2px var(--td-brand-color-focus);
|
|
96
|
+
box-shadow: 0 0 0 2px var(--td-brand-color-focus);
|
|
97
|
+
}
|
|
98
|
+
.t-input--borderless:not(.t-input--focused) {
|
|
99
|
+
border-color: transparent;
|
|
100
|
+
-webkit-transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s, -webkit-box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
101
|
+
transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s, -webkit-box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
102
|
+
transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
103
|
+
transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s, -webkit-box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
104
|
+
}
|
|
105
|
+
.t-input--borderless:not(.t-input--focused):hover {
|
|
106
|
+
border-color: var(--td-component-border);
|
|
107
|
+
background-color: var(--td-bg-color-container-hover);
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
}
|
|
110
|
+
.t-input--borderless:not(.t-input--focused).t-is-disabled {
|
|
111
|
+
border: none;
|
|
112
|
+
background-color: var(--td-bg-color-component-disabled);
|
|
113
|
+
}
|
|
114
|
+
.t-input--focused {
|
|
115
|
+
border-color: var(--td-brand-color);
|
|
116
|
+
-webkit-box-shadow: 0 0 0 2px var(--td-brand-color-focus);
|
|
117
|
+
box-shadow: 0 0 0 2px var(--td-brand-color-focus);
|
|
118
|
+
z-index: 1;
|
|
119
|
+
}
|
|
120
|
+
.t-input :focus-visible {
|
|
121
|
+
outline: none;
|
|
122
|
+
}
|
|
123
|
+
.t-input__inner {
|
|
124
|
+
-webkit-box-flex: 1;
|
|
125
|
+
-ms-flex: 1;
|
|
126
|
+
flex: 1;
|
|
127
|
+
border: none;
|
|
128
|
+
outline: none;
|
|
129
|
+
padding: 0;
|
|
130
|
+
max-width: 100%;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
color: var(--td-text-color-primary);
|
|
133
|
+
font: inherit;
|
|
134
|
+
background-color: transparent;
|
|
135
|
+
-webkit-box-sizing: border-box;
|
|
136
|
+
box-sizing: border-box;
|
|
137
|
+
white-space: nowrap;
|
|
138
|
+
word-wrap: normal;
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
text-overflow: ellipsis;
|
|
141
|
+
}
|
|
142
|
+
.t-input__inner::-webkit-input-placeholder {
|
|
143
|
+
color: var(--td-text-color-placeholder);
|
|
144
|
+
}
|
|
145
|
+
.t-input__inner::-moz-placeholder {
|
|
146
|
+
color: var(--td-text-color-placeholder);
|
|
147
|
+
}
|
|
148
|
+
.t-input__inner::-ms-input-placeholder {
|
|
149
|
+
color: var(--td-text-color-placeholder);
|
|
150
|
+
}
|
|
151
|
+
.t-input__inner::placeholder {
|
|
152
|
+
color: var(--td-text-color-placeholder);
|
|
153
|
+
}
|
|
154
|
+
.t-input__inner:placeholder-shown {
|
|
155
|
+
text-overflow: ellipsis;
|
|
156
|
+
width: 100%;
|
|
157
|
+
}
|
|
158
|
+
.t-input__inner[type=password]::-ms-reveal {
|
|
159
|
+
display: none;
|
|
160
|
+
}
|
|
161
|
+
.t-input__inner[type=search]::-webkit-search-decoration, .t-input__inner[type=search]::-webkit-search-cancel-button, .t-input__inner[type=search]::-webkit-search-results-button, .t-input__inner[type=search]::-webkit-search-results-decoration {
|
|
162
|
+
-webkit-appearance: none;
|
|
163
|
+
appearance: none;
|
|
164
|
+
}
|
|
165
|
+
.t-input__inner.t-input--soft-hidden {
|
|
166
|
+
width: 0;
|
|
167
|
+
}
|
|
168
|
+
.t-input__extra {
|
|
169
|
+
font: var(--td-font-body-small);
|
|
170
|
+
color: var(--td-text-color-placeholder);
|
|
171
|
+
}
|
|
172
|
+
.t-input__status {
|
|
173
|
+
position: absolute;
|
|
174
|
+
right: -24px;
|
|
175
|
+
top: 0;
|
|
176
|
+
}
|
|
177
|
+
.t-input.t-input--suffix > span.t-input__clear {
|
|
178
|
+
opacity: 0;
|
|
179
|
+
visibility: hidden;
|
|
180
|
+
-webkit-transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s, -webkit-box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
181
|
+
transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s, -webkit-box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
182
|
+
transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
183
|
+
transition: border cubic-bezier(0.38, 0, 0.24, 1) 0.2s, box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s, background-color cubic-bezier(0.38, 0, 0.24, 1) 0.2s, -webkit-box-shadow cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
|
|
184
|
+
}
|
|
185
|
+
.t-input.t-input--suffix:hover > span.t-input__clear {
|
|
186
|
+
opacity: 1;
|
|
187
|
+
visibility: visible;
|
|
188
|
+
}
|
|
189
|
+
.t-input.t-is-readonly {
|
|
190
|
+
color: var(--td-text-color-primary);
|
|
191
|
+
background-color: var(--td-bg-color-specialcomponent);
|
|
192
|
+
}
|
|
193
|
+
.t-input.t-is-readonly .t-input__inner {
|
|
194
|
+
cursor: pointer;
|
|
195
|
+
}
|
|
196
|
+
.t-input.t-is-disabled {
|
|
197
|
+
color: var(--td-text-color-disabled);
|
|
198
|
+
background-color: var(--td-bg-color-component-disabled);
|
|
199
|
+
}
|
|
200
|
+
.t-input.t-is-disabled:hover {
|
|
201
|
+
border-color: var(--td-border-level-2-color);
|
|
202
|
+
}
|
|
203
|
+
.t-input.t-is-disabled .t-input__inner {
|
|
204
|
+
cursor: not-allowed;
|
|
205
|
+
color: var(--td-text-color-disabled);
|
|
206
|
+
text-overflow: initial;
|
|
207
|
+
}
|
|
208
|
+
.t-input.t-is-disabled .t-input__inner::-webkit-input-placeholder {
|
|
209
|
+
color: var(--td-text-color-disabled);
|
|
210
|
+
}
|
|
211
|
+
.t-input.t-is-disabled .t-input__inner::-moz-placeholder {
|
|
212
|
+
color: var(--td-text-color-disabled);
|
|
213
|
+
}
|
|
214
|
+
.t-input.t-is-disabled .t-input__inner::-ms-input-placeholder {
|
|
215
|
+
color: var(--td-text-color-disabled);
|
|
216
|
+
}
|
|
217
|
+
.t-input.t-is-disabled .t-input__inner::placeholder {
|
|
218
|
+
color: var(--td-text-color-disabled);
|
|
219
|
+
}
|
|
220
|
+
.t-input.t-is-disabled > .t-input__prefix .t-icon, .t-input.t-is-disabled > .t-input__suffix .t-icon {
|
|
221
|
+
color: var(--td-text-color-disabled);
|
|
222
|
+
}
|
|
223
|
+
.t-input.t-is-disabled > .t-input__prefix .t-icon:hover, .t-input.t-is-disabled > .t-input__suffix .t-icon:hover {
|
|
224
|
+
color: var(--td-text-color-disabled);
|
|
225
|
+
}
|
|
226
|
+
.t-input.t-input--prefix > .t-input__prefix {
|
|
227
|
+
z-index: 2;
|
|
228
|
+
height: 100%;
|
|
229
|
+
text-align: center;
|
|
230
|
+
display: -webkit-box;
|
|
231
|
+
display: -ms-flexbox;
|
|
232
|
+
display: flex;
|
|
233
|
+
-webkit-box-align: center;
|
|
234
|
+
-ms-flex-align: center;
|
|
235
|
+
align-items: center;
|
|
236
|
+
}
|
|
237
|
+
.t-input.t-input--prefix > .t-input__prefix-icon {
|
|
238
|
+
font-size: var(--td-font-size-body-large);
|
|
239
|
+
}
|
|
240
|
+
.t-input.t-input--prefix.t-size-s .t-input__prefix-icon {
|
|
241
|
+
font-size: var(--td-font-size-body-medium);
|
|
242
|
+
}
|
|
243
|
+
.t-input.t-input--prefix.t-size-l .t-input__prefix-icon {
|
|
244
|
+
font-size: var(--td-font-size-title-large);
|
|
245
|
+
}
|
|
246
|
+
.t-input.t-input--suffix > .t-input__suffix {
|
|
247
|
+
z-index: 2;
|
|
248
|
+
height: 100%;
|
|
249
|
+
text-align: center;
|
|
250
|
+
display: -webkit-box;
|
|
251
|
+
display: -ms-flexbox;
|
|
252
|
+
display: flex;
|
|
253
|
+
-webkit-box-align: center;
|
|
254
|
+
-ms-flex-align: center;
|
|
255
|
+
align-items: center;
|
|
256
|
+
}
|
|
257
|
+
.t-input.t-input--suffix > .t-input__suffix-icon {
|
|
258
|
+
font-size: var(--td-font-size-body-large);
|
|
259
|
+
}
|
|
260
|
+
.t-input.t-input--suffix.t-size-s .t-input__suffix-icon {
|
|
261
|
+
font-size: var(--td-font-size-body-medium);
|
|
262
|
+
}
|
|
263
|
+
.t-input.t-input--suffix.t-size-l .t-input__suffix-icon {
|
|
264
|
+
font-size: var(--td-font-size-title-large);
|
|
265
|
+
}
|
|
266
|
+
.t-input .t-input__suffix-clear {
|
|
267
|
+
cursor: pointer;
|
|
268
|
+
width: 1em;
|
|
269
|
+
height: 1em;
|
|
270
|
+
}
|
|
271
|
+
.t-input.t-size-l {
|
|
272
|
+
height: var(--td-comp-size-xl);
|
|
273
|
+
font: var(--td-font-body-large);
|
|
274
|
+
padding: var(--td-comp-paddingTB-m) var(--td-comp-paddingLR-m);
|
|
275
|
+
}
|
|
276
|
+
.t-input.t-size-s {
|
|
277
|
+
height: var(--td-comp-size-xs);
|
|
278
|
+
font: var(--td-font-body-small);
|
|
279
|
+
}
|
|
280
|
+
.t-input .t-input__prefix > .t-icon,
|
|
281
|
+
.t-input .t-input__suffix > .t-icon {
|
|
282
|
+
font-size: inherit;
|
|
283
|
+
}
|
|
284
|
+
.t-input .t-input__prefix > .t-icon {
|
|
285
|
+
color: var(--td-text-color-placeholder);
|
|
286
|
+
}
|
|
287
|
+
.t-input .t-input__prefix:not(:empty) {
|
|
288
|
+
margin-right: var(--td-comp-margin-s);
|
|
289
|
+
}
|
|
290
|
+
.t-input .t-input__suffix > .t-icon {
|
|
291
|
+
color: var(--td-text-color-placeholder);
|
|
292
|
+
-webkit-transition: all 0.2s linear;
|
|
293
|
+
transition: all 0.2s linear;
|
|
294
|
+
}
|
|
295
|
+
.t-input .t-input__suffix > .t-icon:hover {
|
|
296
|
+
color: var(--td-text-color-secondary);
|
|
297
|
+
-webkit-transition: all 0.2s linear;
|
|
298
|
+
transition: all 0.2s linear;
|
|
299
|
+
}
|
|
300
|
+
.t-input .t-input__suffix:not(:empty) {
|
|
301
|
+
margin-left: var(--td-comp-margin-s);
|
|
302
|
+
}
|
|
303
|
+
.t-input.t-is-focused .t-input__prefix > .t-icon {
|
|
304
|
+
color: var(--td-brand-color);
|
|
305
|
+
}
|
|
306
|
+
.t-input.t-is-focused .t-input__suffix > .t-icon-time,
|
|
307
|
+
.t-input.t-is-focused .t-input__suffix .t-icon-calendar {
|
|
308
|
+
color: var(--td-brand-color);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.t-input-group {
|
|
312
|
+
position: relative;
|
|
313
|
+
display: -webkit-inline-box;
|
|
314
|
+
display: -ms-inline-flexbox;
|
|
315
|
+
display: inline-flex;
|
|
316
|
+
-webkit-box-align: stretch;
|
|
317
|
+
-ms-flex-align: stretch;
|
|
318
|
+
align-items: stretch;
|
|
319
|
+
}
|
|
320
|
+
.t-input-group .t-input__wrap {
|
|
321
|
+
border-radius: 0;
|
|
322
|
+
}
|
|
323
|
+
.t-input-group .t-input__wrap:first-child {
|
|
324
|
+
border-radius: var(--td-radius-default) 0 0 var(--td-radius-default);
|
|
325
|
+
}
|
|
326
|
+
.t-input-group .t-input__wrap:last-child {
|
|
327
|
+
border-radius: 0 var(--td-radius-default) var(--td-radius-default) 0;
|
|
328
|
+
}
|
|
329
|
+
.t-input-group .t-button,
|
|
330
|
+
.t-input-group .t-select {
|
|
331
|
+
border-radius: 0;
|
|
332
|
+
}
|
|
333
|
+
.t-input-group .t-button:not(:first-child),
|
|
334
|
+
.t-input-group .t-select:not(:first-child) {
|
|
335
|
+
margin-left: -1px;
|
|
336
|
+
}
|
|
337
|
+
.t-input-group .t-input__wrap:not(:first-child) .t-input {
|
|
338
|
+
margin-left: -1px;
|
|
339
|
+
}
|
|
340
|
+
.t-input-group .t-input__wrap:first-child .t-input {
|
|
341
|
+
border-radius: var(--td-radius-default) 0 0 var(--td-radius-default);
|
|
342
|
+
}
|
|
343
|
+
.t-input-group .t-input__wrap:last-child .t-input {
|
|
344
|
+
border-radius: 0 var(--td-radius-default) var(--td-radius-default) 0;
|
|
345
|
+
}
|
|
346
|
+
.t-input-group .t-button:first-child,
|
|
347
|
+
.t-input-group .t-select:first-child {
|
|
348
|
+
border-radius: var(--td-radius-default) 0 0 var(--td-radius-default);
|
|
349
|
+
}
|
|
350
|
+
.t-input-group .t-button:last-child,
|
|
351
|
+
.t-input-group .t-select:last-child {
|
|
352
|
+
border-radius: 0 var(--td-radius-default) var(--td-radius-default) 0;
|
|
353
|
+
}
|
|
354
|
+
.t-input-group--separate .t-input__wrap + .t-input__wrap {
|
|
355
|
+
margin-left: var(--td-comp-margin-xxxl);
|
|
356
|
+
}
|
|
357
|
+
.t-input-group--separate .t-button,
|
|
358
|
+
.t-input-group--separate .t-select {
|
|
359
|
+
border-radius: var(--td-radius-default);
|
|
360
|
+
}
|
|
361
|
+
.t-input-group--separate .t-button:first-child,
|
|
362
|
+
.t-input-group--separate .t-select:first-child {
|
|
363
|
+
border-radius: var(--td-radius-default) 0 0 var(--td-radius-default);
|
|
364
|
+
}
|
|
365
|
+
.t-input-group--separate .t-button:last-child,
|
|
366
|
+
.t-input-group--separate .t-select:last-child {
|
|
367
|
+
border-radius: 0 var(--td-radius-default) var(--td-radius-default) 0;
|
|
368
|
+
}
|
|
369
|
+
.t-input-group--separate .t-input__wrap .t-input {
|
|
370
|
+
border-radius: var(--td-radius-default);
|
|
371
|
+
}
|
|
372
|
+
.t-input-group--separate .t-input__wrap .t-input:first-child {
|
|
373
|
+
border-radius: var(--td-radius-default);
|
|
374
|
+
}
|
|
375
|
+
.t-input-group--separate .t-input__wrap .t-input:last-child {
|
|
376
|
+
border-radius: var(--td-radius-default);
|
|
377
|
+
}
|
|
378
|
+
.t-input-group .t-input__inner,
|
|
379
|
+
.t-input-group .t-button,
|
|
380
|
+
.t-input-group .t-select {
|
|
381
|
+
position: relative;
|
|
382
|
+
z-index: 0;
|
|
383
|
+
}
|
|
384
|
+
.t-input-group .t-input__inner:hover, .t-input-group .t-input__inner:focus, .t-input-group .t-input__inner:active,
|
|
385
|
+
.t-input-group .t-button:hover,
|
|
386
|
+
.t-input-group .t-button:focus,
|
|
387
|
+
.t-input-group .t-button:active,
|
|
388
|
+
.t-input-group .t-select:hover,
|
|
389
|
+
.t-input-group .t-select:focus,
|
|
390
|
+
.t-input-group .t-select:active {
|
|
391
|
+
z-index: 1;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.t-input__wrap {
|
|
395
|
+
width: 100%;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.t-input__tips {
|
|
399
|
+
height: auto;
|
|
400
|
+
min-height: var(--td-line-height-body-small);
|
|
401
|
+
font: var(--td-font-body-small);
|
|
402
|
+
position: absolute;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.t-input__tips--default {
|
|
406
|
+
color: var(--td-text-color-placeholder);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.t-input__tips--success {
|
|
410
|
+
color: var(--td-success-color);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.t-input__tips--warning {
|
|
414
|
+
color: var(--td-warning-color);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.t-input__tips--error {
|
|
418
|
+
color: var(--td-error-color);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.t-align-center > .t-input__inner {
|
|
422
|
+
text-align: center;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.t-align-right > .t-input__inner {
|
|
426
|
+
text-align: right;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.t-input__input-pre {
|
|
430
|
+
position: absolute;
|
|
431
|
+
visibility: hidden;
|
|
432
|
+
white-space: pre;
|
|
433
|
+
display: block;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.t-input--auto-width {
|
|
437
|
+
width: -webkit-fit-content;
|
|
438
|
+
width: -moz-fit-content;
|
|
439
|
+
width: fit-content;
|
|
440
|
+
min-width: 60px;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.t-input__limit-number {
|
|
444
|
+
font: var(--td-font-body-medium);
|
|
445
|
+
color: var(--td-text-color-placeholder);
|
|
446
|
+
background: var(--td-bg-color-specialcomponent);
|
|
447
|
+
}
|
|
448
|
+
.t-input__limit-number.t-is-disabled {
|
|
449
|
+
background: var(--td-bg-color-component-disabled);
|
|
450
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { _ as _slicedToArray } from '../_chunks/dep-CzLhKWCf.js';
|
|
2
|
+
import React, { useEffect } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { _ as _defineProperty } from '../_chunks/dep-Cwish4GD.js';
|
|
5
|
+
import { b as getIEVersion } from '../_chunks/dep-DHWwZ2Nj.js';
|
|
6
|
+
import { u as useDomRefCallback } from '../_chunks/dep-PPA-yoAy.js';
|
|
7
|
+
import { u as useConfig } from '../_chunks/dep-u1x3x6MJ.js';
|
|
8
|
+
import '../_chunks/dep-D-UKOauR.js';
|
|
9
|
+
import '../_chunks/dep-DN7d1SzH.js';
|
|
10
|
+
import 'lodash-es';
|
|
11
|
+
import '../config-provider/ConfigContext.js';
|
|
12
|
+
|
|
13
|
+
function setStyle(el, styles) {
|
|
14
|
+
var keys = Object.keys(styles);
|
|
15
|
+
keys.forEach(function (key) {
|
|
16
|
+
el.style[key] = styles[key];
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
+
function circleAdapter(circleElem) {
|
|
23
|
+
var _window, _window$getComputedSt, _window2;
|
|
24
|
+
var basicStyle = {};
|
|
25
|
+
if (!circleElem || typeof window === "undefined") {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
var computedStyle = (_window = window) === null || _window === void 0 || (_window$getComputedSt = _window.getComputedStyle) === null || _window$getComputedSt === void 0 ? void 0 : _window$getComputedSt.call(_window, circleElem);
|
|
29
|
+
var _ref = computedStyle || {},
|
|
30
|
+
color = _ref.color,
|
|
31
|
+
fontSize = _ref.fontSize;
|
|
32
|
+
var ua = ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.userAgent) || "";
|
|
33
|
+
var isSafari = /Safari/.test(ua) && !/Chrome/.test(ua);
|
|
34
|
+
var isIosWechat = /(?=.*iPhone)[?=.*MicroMessenger]/.test(ua) && !/Chrome/.test(ua);
|
|
35
|
+
var isIpadWechat = /(?=.*iPad)[?=.*MicroMessenger]/.test(ua) && !/Chrome/.test(ua);
|
|
36
|
+
if (isSafari || isIosWechat || isIpadWechat) {
|
|
37
|
+
basicStyle = {
|
|
38
|
+
transformOrigin: "0px 0px",
|
|
39
|
+
transform: "scale(".concat(parseInt(fontSize, 10) / 12, ")")
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
if (color && getIEVersion() > 11) {
|
|
43
|
+
var matched = color.match(/[\d.]+/g);
|
|
44
|
+
var endColor = matched ? "rgba(".concat(matched[0], ", ").concat(matched[1], ", ").concat(matched[2], ", 0)") : "";
|
|
45
|
+
setStyle(circleElem, _objectSpread(_objectSpread({}, basicStyle), {}, {
|
|
46
|
+
background: "conic-gradient(from 90deg at 50% 50%,".concat(endColor, " 0deg, ").concat(color, " 360deg)")
|
|
47
|
+
}));
|
|
48
|
+
} else {
|
|
49
|
+
setStyle(circleElem, _objectSpread(_objectSpread({}, basicStyle), {}, {
|
|
50
|
+
background: ""
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
var GradientLoading = function GradientLoading() {
|
|
56
|
+
var _useConfig = useConfig(),
|
|
57
|
+
classPrefix = _useConfig.classPrefix;
|
|
58
|
+
var _useDomRefCallback = useDomRefCallback(),
|
|
59
|
+
_useDomRefCallback2 = _slicedToArray(_useDomRefCallback, 2),
|
|
60
|
+
conicRef = _useDomRefCallback2[0],
|
|
61
|
+
setConicRef = _useDomRefCallback2[1];
|
|
62
|
+
var gradientClass = "".concat(classPrefix, "-loading__gradient");
|
|
63
|
+
useEffect(function () {
|
|
64
|
+
var el = conicRef;
|
|
65
|
+
circleAdapter(el);
|
|
66
|
+
}, [conicRef]);
|
|
67
|
+
return /* @__PURE__ */React.createElement("svg", {
|
|
68
|
+
className: classNames(gradientClass, "".concat(classPrefix, "-icon-loading")),
|
|
69
|
+
viewBox: "0 0 12 12",
|
|
70
|
+
version: "1.1",
|
|
71
|
+
width: "1em",
|
|
72
|
+
height: "1em",
|
|
73
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
74
|
+
}, /* @__PURE__ */React.createElement("foreignObject", {
|
|
75
|
+
x: "0",
|
|
76
|
+
y: "0",
|
|
77
|
+
width: "12",
|
|
78
|
+
height: "12"
|
|
79
|
+
}, /* @__PURE__ */React.createElement("div", {
|
|
80
|
+
className: "".concat(gradientClass, "-conic"),
|
|
81
|
+
ref: setConicRef
|
|
82
|
+
})));
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export { GradientLoading as default };
|
|
86
|
+
//# sourceMappingURL=Gradient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gradient.js","sources":["../../../components/loading/utils/setStyle.ts","../../../components/loading/circleAdapter.ts","../../../components/loading/Gradient.tsx"],"sourcesContent":["/**\n * 用于为节点增加styles\n * @param el HTMLElement\n * @param style Styles\n */\nfunction setStyle(el: HTMLElement, styles): void {\n const keys = Object.keys(styles);\n keys.forEach((key) => {\n el.style[key] = styles[key];\n });\n}\n\nexport default setStyle;\n","import setStyle from \"./utils/setStyle\";\nimport { getIEVersion } from \"../utils/helper\";\n\nexport default function circleAdapter(circleElem: HTMLElement) {\n let basicStyle = {};\n\n if (!circleElem || typeof window === \"undefined\") {\n return;\n }\n\n const computedStyle = window?.getComputedStyle?.(circleElem);\n const { color, fontSize } = computedStyle || {};\n\n // to fix the browser compat of foreignObject in Safari,\n // https://bugs.webkit.org/show_bug.cgi?id=23113\n const ua = window?.navigator?.userAgent || \"\";\n const isSafari = /Safari/.test(ua) && !/Chrome/.test(ua);\n // 判断是否为 iOS 下的微信和企业微信\n const isIosWechat = /(?=.*iPhone)[?=.*MicroMessenger]/.test(ua) && !/Chrome/.test(ua);\n // 判断是否为 iPadOS 下的微信和企业微信\n const isIpadWechat = /(?=.*iPad)[?=.*MicroMessenger]/.test(ua) && !/Chrome/.test(ua);\n\n // 注意:chrome上调试mobile/ipad端时,loading出现异常,属于正常现象,不需要修改。\n if (isSafari || isIosWechat || isIpadWechat) {\n basicStyle = {\n transformOrigin: \"0px 0px\",\n transform: `scale(${parseInt(fontSize, 10) / 12})`\n };\n }\n // 添加:判断是否为IE浏览器\n if (color && getIEVersion() > 11) {\n const matched = color.match(/[\\d.]+/g);\n const endColor = matched ? `rgba(${matched[0]}, ${matched[1]}, ${matched[2]}, 0)` : \"\";\n setStyle(circleElem, {\n ...basicStyle,\n background: `conic-gradient(from 90deg at 50% 50%,${endColor} 0deg, ${color} 360deg)`\n });\n } else {\n setStyle(circleElem, {\n ...basicStyle,\n background: \"\"\n });\n }\n}\n","import React, { useEffect, FC } from \"react\";\nimport classnames from \"classnames\";\nimport circleAdapter from \"./circleAdapter\";\nimport useDomRefCallback from \"../hooks/useDomRefCallback\";\nimport useConfig from \"../hooks/useConfig\";\n\n/**\n * Loading组件 渐变部分实现\n */\nconst GradientLoading: FC = () => {\n const { classPrefix } = useConfig();\n const [conicRef, setConicRef] = useDomRefCallback();\n const gradientClass = `${classPrefix}-loading__gradient`;\n\n useEffect(() => {\n const el = conicRef;\n circleAdapter(el);\n }, [conicRef]);\n\n return (\n <svg\n className={classnames(gradientClass, `${classPrefix}-icon-loading`)}\n viewBox=\"0 0 12 12\"\n version=\"1.1\"\n width=\"1em\"\n height=\"1em\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <foreignObject x=\"0\" y=\"0\" width=\"12\" height=\"12\">\n <div className={`${gradientClass}-conic`} ref={setConicRef} />\n </foreignObject>\n </svg>\n );\n};\n\nexport default GradientLoading;\n"],"names":["setStyle","el","styles","keys","Object","forEach","key","style","circleAdapter","circleElem","_window","_window$getComputedSt","_window2","basicStyle","window","computedStyle","getComputedStyle","call","_ref","color","fontSize","ua","navigator","userAgent","isSafari","test","isIosWechat","isIpadWechat","transformOrigin","transform","parseInt","getIEVersion","matched","match","endColor","concat","_objectSpread","background","GradientLoading","_useConfig","useConfig","classPrefix","_useDomRefCallback","useDomRefCallback","_useDomRefCallback2","_slicedToArray","conicRef","setConicRef","gradientClass","useEffect","React","createElement","className","classnames","viewBox","version","width","height","xmlns","x","y","ref"],"mappings":";;;;;;;;;;;;AAKA,SAASA,QAAAA,CAASC,IAAiBC,MAAA,EAAc;AAC/C,EAAA,IAAMC,IAAA,GAAOC,MAAA,CAAOD,IAAA,CAAKD,MAAM,CAAA;AAC/BC,EAAAA,IAAA,CAAKE,OAAA,CAAQ,UAACC,GAAA,EAAQ;IACpBL,EAAA,CAAGM,KAAA,CAAMD,GAAG,CAAA,GAAIJ,MAAA,CAAOI,GAAG,CAAA;AAC5B,EAAA,CAAC,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