@uzum-tech/ui 1.9.0 → 1.10.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/dist/index.js +5789 -1014
- package/dist/index.prod.js +12 -3
- package/es/_internal/scrollbar/src/Scrollbar.js +19 -38
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/cascader/src/Cascader.d.ts +1 -1
- package/es/chat/index.d.ts +1 -1
- package/es/chat/src/Chat.d.ts +233 -11
- package/es/chat/src/Chat.js +73 -22
- package/es/chat/src/ChatParts/ChatAttachment.js +14 -12
- package/es/chat/src/ChatParts/MainArea.d.ts +1 -0
- package/es/chat/src/ChatParts/MainArea.js +95 -57
- package/es/chat/src/ChatParts/Sidebar.d.ts +920 -0
- package/es/chat/src/ChatParts/Sidebar.js +63 -12
- package/es/chat/src/interface.d.ts +24 -3
- package/es/chat/src/styles/index.cssr.js +13 -2
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/crop/index.d.ts +3 -0
- package/es/crop/index.js +1 -0
- package/es/crop/src/Crop.d.ts +222 -0
- package/es/crop/src/Crop.js +157 -0
- package/es/crop/src/interface.d.ts +6 -0
- package/es/crop/src/interface.js +7 -0
- package/es/crop/src/styles/index.cssr.d.ts +2 -0
- package/es/crop/src/styles/index.cssr.js +333 -0
- package/es/crop/styles/_common.d.ts +4 -0
- package/es/crop/styles/_common.js +3 -0
- package/es/crop/styles/dark.d.ts +3 -0
- package/es/crop/styles/dark.js +9 -0
- package/es/crop/styles/index.d.ts +3 -0
- package/es/crop/styles/index.js +2 -0
- package/es/crop/styles/light.d.ts +14 -0
- package/es/crop/styles/light.js +14 -0
- package/es/date-picker/src/DatePicker.d.ts +1308 -43
- package/es/date-picker/src/DatePicker.js +54 -29
- package/es/date-picker/src/interface.d.ts +1 -0
- package/es/date-picker/src/panel/date.d.ts +141 -0
- package/es/date-picker/src/panel/daterange.d.ts +141 -0
- package/es/date-picker/src/panel/datetime.d.ts +141 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +141 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +283 -1
- package/es/date-picker/src/panel/panelMonthContent.d.ts +141 -0
- package/es/date-picker/src/panel/panelYear.d.ts +283 -1
- package/es/date-picker/src/panel/panelYearContent.d.ts +141 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +141 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +141 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +141 -0
- package/es/date-picker/styles/dark.js +3 -1
- package/es/date-picker/styles/light.d.ts +123 -0
- package/es/date-picker/styles/light.js +3 -1
- package/es/descriptions/src/Descriptions.d.ts +30 -0
- package/es/descriptions/src/Descriptions.js +18 -10
- package/es/dynamic-tags/src/DynamicTags.d.ts +30 -0
- package/es/dynamic-tags/styles/light.d.ts +3 -0
- package/es/infinite-scroll/src/InfiniteScroll.js +3 -6
- package/es/input/src/Input.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +1 -1
- package/es/locales/common/arDZ.js +2 -0
- package/es/locales/common/deDE.js +2 -0
- package/es/locales/common/enGB.js +2 -0
- package/es/locales/common/enUS.d.ts +2 -0
- package/es/locales/common/enUS.js +2 -0
- package/es/locales/common/eo.js +2 -0
- package/es/locales/common/esAR.js +2 -0
- package/es/locales/common/faIR.js +2 -0
- package/es/locales/common/frFR.js +2 -0
- package/es/locales/common/idID.js +2 -0
- package/es/locales/common/itIT.js +2 -0
- package/es/locales/common/jaJP.js +2 -0
- package/es/locales/common/koKR.js +2 -0
- package/es/locales/common/nbNO.js +2 -0
- package/es/locales/common/nlNL.js +2 -0
- package/es/locales/common/plPL.js +2 -0
- package/es/locales/common/ptBR.js +2 -0
- package/es/locales/common/ruRU.js +2 -0
- package/es/locales/common/skSK.js +2 -0
- package/es/locales/common/svSE.js +2 -0
- package/es/locales/common/thTH.js +2 -0
- package/es/locales/common/trTR.js +2 -0
- package/es/locales/common/ukUA.js +2 -0
- package/es/locales/common/viVN.js +2 -0
- package/es/locales/common/zhCN.js +2 -0
- package/es/locales/common/zhTW.js +2 -0
- package/es/modal-fullscreen/index.d.ts +2 -0
- package/es/modal-fullscreen/index.js +1 -0
- package/es/modal-fullscreen/src/ModalFull.d.ts +953 -0
- package/es/modal-fullscreen/src/ModalFull.js +250 -0
- package/es/modal-fullscreen/src/interface.d.ts +0 -0
- package/es/modal-fullscreen/src/interface.js +1 -0
- package/es/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
- package/es/modal-fullscreen/src/styles/index.cssr.js +85 -0
- package/es/modal-fullscreen/styles/_common.d.ts +12 -0
- package/es/modal-fullscreen/styles/_common.js +11 -0
- package/es/modal-fullscreen/styles/dark.d.ts +3 -0
- package/es/modal-fullscreen/styles/dark.js +14 -0
- package/es/modal-fullscreen/styles/index.d.ts +3 -0
- package/es/modal-fullscreen/styles/index.js +2 -0
- package/es/modal-fullscreen/styles/light.d.ts +100 -0
- package/es/modal-fullscreen/styles/light.js +19 -0
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/select/src/Select.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/tag/index.d.ts +2 -0
- package/es/tag/index.js +1 -0
- package/es/tag/src/Tag.d.ts +40 -0
- package/es/tag/src/Tag.js +3 -0
- package/es/tag/src/TagGroup.d.ts +644 -0
- package/es/tag/src/TagGroup.js +109 -0
- package/es/tag/src/styles/index.cssr.d.ts +1 -0
- package/es/tag/src/styles/index.cssr.js +8 -1
- package/es/tag/styles/light.d.ts +3 -0
- package/es/tag/styles/light.js +5 -0
- package/es/themes/dark.js +5 -1
- package/es/themes/light.js +5 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/index.d.ts +1 -1
- package/es/virtual-list/index.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +19 -38
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +1 -1
- package/lib/chat/index.d.ts +1 -1
- package/lib/chat/src/Chat.d.ts +233 -11
- package/lib/chat/src/Chat.js +73 -22
- package/lib/chat/src/ChatParts/ChatAttachment.js +14 -12
- package/lib/chat/src/ChatParts/MainArea.d.ts +1 -0
- package/lib/chat/src/ChatParts/MainArea.js +94 -56
- package/lib/chat/src/ChatParts/Sidebar.d.ts +920 -0
- package/lib/chat/src/ChatParts/Sidebar.js +62 -11
- package/lib/chat/src/interface.d.ts +24 -3
- package/lib/chat/src/styles/index.cssr.js +13 -2
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/crop/index.d.ts +3 -0
- package/lib/crop/index.js +9 -0
- package/lib/crop/src/Crop.d.ts +222 -0
- package/lib/crop/src/Crop.js +163 -0
- package/lib/crop/src/interface.d.ts +6 -0
- package/lib/crop/src/interface.js +10 -0
- package/lib/crop/src/styles/index.cssr.d.ts +2 -0
- package/lib/crop/src/styles/index.cssr.js +338 -0
- package/lib/crop/styles/_common.d.ts +4 -0
- package/lib/crop/styles/_common.js +5 -0
- package/lib/crop/styles/dark.d.ts +3 -0
- package/lib/crop/styles/dark.js +11 -0
- package/lib/crop/styles/index.d.ts +3 -0
- package/lib/crop/styles/index.js +10 -0
- package/lib/crop/styles/light.d.ts +14 -0
- package/lib/crop/styles/light.js +21 -0
- package/lib/date-picker/src/DatePicker.d.ts +1308 -43
- package/lib/date-picker/src/DatePicker.js +53 -28
- package/lib/date-picker/src/interface.d.ts +1 -0
- package/lib/date-picker/src/panel/date.d.ts +141 -0
- package/lib/date-picker/src/panel/daterange.d.ts +141 -0
- package/lib/date-picker/src/panel/datetime.d.ts +141 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +141 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +283 -1
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +141 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +283 -1
- package/lib/date-picker/src/panel/panelYearContent.d.ts +141 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +141 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +141 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +141 -0
- package/lib/date-picker/styles/dark.js +3 -1
- package/lib/date-picker/styles/light.d.ts +123 -0
- package/lib/date-picker/styles/light.js +3 -1
- package/lib/descriptions/src/Descriptions.d.ts +30 -0
- package/lib/descriptions/src/Descriptions.js +18 -10
- package/lib/dynamic-tags/src/DynamicTags.d.ts +30 -0
- package/lib/dynamic-tags/styles/light.d.ts +3 -0
- package/lib/infinite-scroll/src/InfiniteScroll.js +3 -6
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
- package/lib/locales/common/arDZ.js +2 -0
- package/lib/locales/common/deDE.js +2 -0
- package/lib/locales/common/enGB.js +2 -0
- package/lib/locales/common/enUS.d.ts +2 -0
- package/lib/locales/common/enUS.js +2 -0
- package/lib/locales/common/eo.js +2 -0
- package/lib/locales/common/esAR.js +2 -0
- package/lib/locales/common/faIR.js +2 -0
- package/lib/locales/common/frFR.js +2 -0
- package/lib/locales/common/idID.js +2 -0
- package/lib/locales/common/itIT.js +2 -0
- package/lib/locales/common/jaJP.js +2 -0
- package/lib/locales/common/koKR.js +2 -0
- package/lib/locales/common/nbNO.js +2 -0
- package/lib/locales/common/nlNL.js +2 -0
- package/lib/locales/common/plPL.js +2 -0
- package/lib/locales/common/ptBR.js +2 -0
- package/lib/locales/common/ruRU.js +2 -0
- package/lib/locales/common/skSK.js +2 -0
- package/lib/locales/common/svSE.js +2 -0
- package/lib/locales/common/thTH.js +2 -0
- package/lib/locales/common/trTR.js +2 -0
- package/lib/locales/common/ukUA.js +2 -0
- package/lib/locales/common/viVN.js +2 -0
- package/lib/locales/common/zhCN.js +2 -0
- package/lib/locales/common/zhTW.js +2 -0
- package/lib/modal-fullscreen/index.d.ts +2 -0
- package/lib/modal-fullscreen/index.js +9 -0
- package/lib/modal-fullscreen/src/ModalFull.d.ts +953 -0
- package/lib/modal-fullscreen/src/ModalFull.js +256 -0
- package/lib/modal-fullscreen/src/interface.d.ts +0 -0
- package/lib/modal-fullscreen/src/interface.js +1 -0
- package/lib/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
- package/lib/modal-fullscreen/src/styles/index.cssr.js +90 -0
- package/lib/modal-fullscreen/styles/_common.d.ts +12 -0
- package/lib/modal-fullscreen/styles/_common.js +13 -0
- package/lib/modal-fullscreen/styles/dark.d.ts +3 -0
- package/lib/modal-fullscreen/styles/dark.js +16 -0
- package/lib/modal-fullscreen/styles/index.d.ts +3 -0
- package/lib/modal-fullscreen/styles/index.js +10 -0
- package/lib/modal-fullscreen/styles/light.d.ts +100 -0
- package/lib/modal-fullscreen/styles/light.js +26 -0
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/tag/index.d.ts +2 -0
- package/lib/tag/index.js +3 -1
- package/lib/tag/src/Tag.d.ts +40 -0
- package/lib/tag/src/Tag.js +3 -0
- package/lib/tag/src/TagGroup.d.ts +644 -0
- package/lib/tag/src/TagGroup.js +112 -0
- package/lib/tag/src/styles/index.cssr.d.ts +1 -0
- package/lib/tag/src/styles/index.cssr.js +9 -1
- package/lib/tag/styles/light.d.ts +3 -0
- package/lib/tag/styles/light.js +5 -0
- package/lib/themes/dark.js +5 -1
- package/lib/themes/light.js +5 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/index.d.ts +1 -1
- package/lib/virtual-list/index.js +2 -2
- package/package.json +4 -3
- package/volar.d.ts +4 -0
- package/web-types.json +472 -4
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { c, cB, cM } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
3
|
+
// --u-wrapper-border-radius
|
|
4
|
+
// --u-wrapper-bg-color
|
|
5
|
+
// --u-wrapper-width
|
|
6
|
+
// --u-wrapper-height
|
|
7
|
+
// --u-cropper-theme-color
|
|
8
|
+
// --u-wrapper-margin
|
|
9
|
+
export default c([c([c('.cropper-container', {
|
|
10
|
+
direction: 'ltr',
|
|
11
|
+
fontSize: '0',
|
|
12
|
+
lineHeight: '0',
|
|
13
|
+
position: 'relative',
|
|
14
|
+
msTouchAction: 'none',
|
|
15
|
+
touchAction: 'none',
|
|
16
|
+
WebkitTouchCallout: 'none',
|
|
17
|
+
WebkitUserSelect: 'none',
|
|
18
|
+
MozUserSelect: 'none',
|
|
19
|
+
msUserSelect: 'none',
|
|
20
|
+
userSelect: 'none'
|
|
21
|
+
}, [c('img', {
|
|
22
|
+
backfaceVisibility: 'hidden',
|
|
23
|
+
display: 'block',
|
|
24
|
+
height: '100%',
|
|
25
|
+
imageOrientation: '0deg',
|
|
26
|
+
maxHeight: 'none !important',
|
|
27
|
+
maxWidth: 'none !important',
|
|
28
|
+
minHeight: '0 !important',
|
|
29
|
+
minWidth: '0 !important',
|
|
30
|
+
width: '100%'
|
|
31
|
+
})]), c('.cropper-wrap-box, .cropper-canvas, .cropper-drag-box, .cropper-crop-box, .cropper-modal', {
|
|
32
|
+
bottom: '0',
|
|
33
|
+
left: '0',
|
|
34
|
+
position: 'absolute',
|
|
35
|
+
right: '0',
|
|
36
|
+
top: '0'
|
|
37
|
+
}), c('.cropper-wrap-box, .cropper-canvas', {
|
|
38
|
+
overflow: 'hidden'
|
|
39
|
+
}), c('.cropper-drag-box', {
|
|
40
|
+
backgroundColor: '#fff',
|
|
41
|
+
opacity: '0'
|
|
42
|
+
}), c('.cropper-modal', {
|
|
43
|
+
backgroundColor: '#000',
|
|
44
|
+
opacity: '0.5'
|
|
45
|
+
}), c('.cropper-view-box', {
|
|
46
|
+
display: 'block',
|
|
47
|
+
height: '100%',
|
|
48
|
+
outline: '1px solid #39f',
|
|
49
|
+
outlineColor: 'rgba(51, 153, 255, 0.75)',
|
|
50
|
+
overflow: 'hidden',
|
|
51
|
+
width: '100%'
|
|
52
|
+
}), c('.cropper-dashed', {
|
|
53
|
+
border: '0 dashed #eee',
|
|
54
|
+
display: 'block',
|
|
55
|
+
opacity: '0.5',
|
|
56
|
+
position: 'absolute'
|
|
57
|
+
}, [c('&.dashed-h', {
|
|
58
|
+
borderBottomWidth: '1px',
|
|
59
|
+
borderTopWidth: '1px',
|
|
60
|
+
height: 'calc(100% / 3)',
|
|
61
|
+
left: '0',
|
|
62
|
+
top: 'calc(100% / 3)',
|
|
63
|
+
width: '100%'
|
|
64
|
+
}), c('&.dashed-v', {
|
|
65
|
+
borderLeftWidth: '1px',
|
|
66
|
+
borderRightWidth: '1px',
|
|
67
|
+
height: '100%',
|
|
68
|
+
left: 'calc(100% / 3)',
|
|
69
|
+
top: '0',
|
|
70
|
+
width: 'calc(100% / 3)'
|
|
71
|
+
})]), c('.cropper-center', {
|
|
72
|
+
display: 'block',
|
|
73
|
+
height: '0',
|
|
74
|
+
left: '50%',
|
|
75
|
+
opacity: '0.75',
|
|
76
|
+
position: 'absolute',
|
|
77
|
+
top: '50%',
|
|
78
|
+
width: '0'
|
|
79
|
+
}, [c('&::before, &::after', {
|
|
80
|
+
backgroundColor: '#eee',
|
|
81
|
+
content: '" "',
|
|
82
|
+
display: 'block',
|
|
83
|
+
position: 'absolute'
|
|
84
|
+
}), c('&::before', {
|
|
85
|
+
height: '1px',
|
|
86
|
+
left: '-3px',
|
|
87
|
+
top: '0',
|
|
88
|
+
width: '7px'
|
|
89
|
+
}), c('&::after', {
|
|
90
|
+
height: '7px',
|
|
91
|
+
left: '0',
|
|
92
|
+
top: '-3px',
|
|
93
|
+
width: '1px'
|
|
94
|
+
})]), c('.cropper-face, .cropper-line, .cropper-point', {
|
|
95
|
+
display: 'block',
|
|
96
|
+
height: '100%',
|
|
97
|
+
opacity: '0.1',
|
|
98
|
+
position: 'absolute',
|
|
99
|
+
width: '100%'
|
|
100
|
+
}), c('.cropper-face', {
|
|
101
|
+
backgroundColor: '#fff',
|
|
102
|
+
left: '0',
|
|
103
|
+
top: '0'
|
|
104
|
+
}), c('.cropper-line', {
|
|
105
|
+
backgroundColor: '#39f'
|
|
106
|
+
}, [c('&.line-e', {
|
|
107
|
+
cursor: 'ew-resize',
|
|
108
|
+
right: '-3px',
|
|
109
|
+
top: '0',
|
|
110
|
+
width: '5px'
|
|
111
|
+
}), c('&.line-n', {
|
|
112
|
+
cursor: 'ns-resize',
|
|
113
|
+
height: '5px',
|
|
114
|
+
left: '0',
|
|
115
|
+
top: '-3px'
|
|
116
|
+
}), c('&.line-w', {
|
|
117
|
+
cursor: 'ew-resize',
|
|
118
|
+
left: '-3px',
|
|
119
|
+
top: '0',
|
|
120
|
+
width: '5px'
|
|
121
|
+
}), c('&.line-s', {
|
|
122
|
+
bottom: '-3px',
|
|
123
|
+
cursor: 'ns-resize',
|
|
124
|
+
height: '5px',
|
|
125
|
+
left: '0'
|
|
126
|
+
})]), c('.cropper-point', {
|
|
127
|
+
backgroundColor: '#39f',
|
|
128
|
+
height: '5px',
|
|
129
|
+
opacity: '0.75',
|
|
130
|
+
width: '5px'
|
|
131
|
+
}, [c('&.point-e', {
|
|
132
|
+
cursor: 'ew-resize',
|
|
133
|
+
marginTop: '-3px',
|
|
134
|
+
right: '-3px',
|
|
135
|
+
top: '50%'
|
|
136
|
+
}), c('&.point-n', {
|
|
137
|
+
cursor: 'ns-resize',
|
|
138
|
+
left: '50%',
|
|
139
|
+
marginLeft: '-3px',
|
|
140
|
+
top: '-3px'
|
|
141
|
+
}), c('&.point-w', {
|
|
142
|
+
cursor: 'ew-resize',
|
|
143
|
+
left: '-3px',
|
|
144
|
+
marginTop: '-3px',
|
|
145
|
+
top: '50%'
|
|
146
|
+
}), c('&.point-s', {
|
|
147
|
+
bottom: '-3px',
|
|
148
|
+
cursor: 's-resize',
|
|
149
|
+
left: '50%',
|
|
150
|
+
marginLeft: '-3px'
|
|
151
|
+
}), c('&.point-ne', {
|
|
152
|
+
cursor: 'nesw-resize',
|
|
153
|
+
right: '-3px',
|
|
154
|
+
top: '-3px'
|
|
155
|
+
}), c('&.point-nw', {
|
|
156
|
+
cursor: 'nwse-resize',
|
|
157
|
+
left: '-3px',
|
|
158
|
+
top: '-3px'
|
|
159
|
+
}), c('&.point-sw', {
|
|
160
|
+
bottom: '-3px',
|
|
161
|
+
cursor: 'nesw-resize',
|
|
162
|
+
left: '-3px'
|
|
163
|
+
}), c('&.point-se', {
|
|
164
|
+
bottom: '-3px',
|
|
165
|
+
cursor: 'nwse-resize',
|
|
166
|
+
height: '20px',
|
|
167
|
+
opacity: '1',
|
|
168
|
+
right: '-3px',
|
|
169
|
+
width: '20px'
|
|
170
|
+
}, [c('&::before', {
|
|
171
|
+
backgroundColor: '#39f',
|
|
172
|
+
bottom: '-50%',
|
|
173
|
+
content: '" "',
|
|
174
|
+
display: 'block',
|
|
175
|
+
height: '200%',
|
|
176
|
+
opacity: '0',
|
|
177
|
+
position: 'absolute',
|
|
178
|
+
right: '-50%',
|
|
179
|
+
width: '200%'
|
|
180
|
+
})])]), c('@media (min-width: 768px)', [c('.cropper-point.point-se', {
|
|
181
|
+
height: '15px',
|
|
182
|
+
width: '15px'
|
|
183
|
+
})]), c('@media (min-width: 992px)', [c('.cropper-point.point-se', {
|
|
184
|
+
height: '10px',
|
|
185
|
+
width: '10px'
|
|
186
|
+
})]), c('@media (min-width: 1200px)', [c('.cropper-point.point-se', {
|
|
187
|
+
height: '5px',
|
|
188
|
+
opacity: '0.75',
|
|
189
|
+
width: '5px'
|
|
190
|
+
})]), c('.cropper-invisible', {
|
|
191
|
+
opacity: '0'
|
|
192
|
+
}), c('.cropper-bg', {
|
|
193
|
+
backgroundImage: 'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")'
|
|
194
|
+
}), c('.cropper-hide', {
|
|
195
|
+
display: 'block',
|
|
196
|
+
height: '0',
|
|
197
|
+
position: 'absolute',
|
|
198
|
+
width: '0'
|
|
199
|
+
}), c('.cropper-hidden', {
|
|
200
|
+
display: 'none !important'
|
|
201
|
+
}), c('.cropper-move', {
|
|
202
|
+
cursor: 'move'
|
|
203
|
+
}), c('.cropper-crop', {
|
|
204
|
+
cursor: 'crosshair'
|
|
205
|
+
}), c('.cropper-disabled .cropper-drag-box, .cropper-disabled .cropper-face, .cropper-disabled .cropper-line, .cropper-disabled .cropper-point', {
|
|
206
|
+
cursor: 'not-allowed'
|
|
207
|
+
})]), cB('crop-wrapper', `
|
|
208
|
+
overflow: hidden;
|
|
209
|
+
background-color: var(--u-wrapper-bg-color);
|
|
210
|
+
border-radius: var(--u-wrapper-border-radius);
|
|
211
|
+
width: var(--u-wrapper-width);
|
|
212
|
+
height: var(--u-wrapper-height);
|
|
213
|
+
margin: var(--u-wrapper-margin);
|
|
214
|
+
`, [cM('circle', '', [c(`.cropper-view-box,
|
|
215
|
+
.cropper-face`, `
|
|
216
|
+
border-radius: 50%;
|
|
217
|
+
`)]), c('.cropper-view-box', `
|
|
218
|
+
outline: 0;
|
|
219
|
+
box-shadow: 0 0 0 1px var(--u-cropper-theme-color);
|
|
220
|
+
`), c(`.cropper-line,
|
|
221
|
+
.cropper-point`, `
|
|
222
|
+
background-color: var(--u-cropper-theme-color);
|
|
223
|
+
`), c(`
|
|
224
|
+
.point-e,
|
|
225
|
+
.point-n,
|
|
226
|
+
.point-w,
|
|
227
|
+
.point-s
|
|
228
|
+
`, `
|
|
229
|
+
display: none;
|
|
230
|
+
`), c('.point-se', `
|
|
231
|
+
width: 4px !important;
|
|
232
|
+
height: 4px !important;
|
|
233
|
+
right: -4px !important;
|
|
234
|
+
bottom: -4px !important;
|
|
235
|
+
opacity: 1;
|
|
236
|
+
`, [c('&::before', `
|
|
237
|
+
content: "" !important;
|
|
238
|
+
display: block !important;
|
|
239
|
+
position: absolute !important;
|
|
240
|
+
top: 0 !important;
|
|
241
|
+
left: -16px !important;
|
|
242
|
+
width: 16px !important;
|
|
243
|
+
height: 4px !important;
|
|
244
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
245
|
+
opacity: 1 !important;
|
|
246
|
+
`), c('&::after', `
|
|
247
|
+
content: "" !important;
|
|
248
|
+
display: block !important;
|
|
249
|
+
position: absolute !important;
|
|
250
|
+
top: -16px !important;
|
|
251
|
+
left: 0px !important;
|
|
252
|
+
width: 4px !important;
|
|
253
|
+
height: 16px !important;
|
|
254
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
255
|
+
`)]), c('.point-sw', `
|
|
256
|
+
width: 4px !important;
|
|
257
|
+
height: 4px !important;
|
|
258
|
+
left: -4px !important;
|
|
259
|
+
bottom: -4px !important;
|
|
260
|
+
opacity: 1;
|
|
261
|
+
`, [c('&::before', `
|
|
262
|
+
content: "" !important;
|
|
263
|
+
display: block !important;
|
|
264
|
+
position: absolute !important;
|
|
265
|
+
top: 0 !important;
|
|
266
|
+
right: -16px !important;
|
|
267
|
+
width: 16px !important;
|
|
268
|
+
height: 4px !important;
|
|
269
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
270
|
+
opacity: 1 !important;
|
|
271
|
+
`), c('&::after', `
|
|
272
|
+
content: "" !important;
|
|
273
|
+
display: block !important;
|
|
274
|
+
position: absolute !important;
|
|
275
|
+
top: -16px !important;
|
|
276
|
+
left: 0px !important;
|
|
277
|
+
width: 4px !important;
|
|
278
|
+
height: 16px !important;
|
|
279
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
280
|
+
`)]), c('.point-nw', `
|
|
281
|
+
width: 4px !important;
|
|
282
|
+
height: 4px !important;
|
|
283
|
+
left: -4px !important;
|
|
284
|
+
top: -4px !important;
|
|
285
|
+
opacity: 1;
|
|
286
|
+
`, [c('&::before', `
|
|
287
|
+
content: "" !important;
|
|
288
|
+
display: block !important;
|
|
289
|
+
position: absolute !important;
|
|
290
|
+
top: 0 !important;
|
|
291
|
+
right: -16px !important;
|
|
292
|
+
width: 16px !important;
|
|
293
|
+
height: 4px !important;
|
|
294
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
295
|
+
opacity: 1 !important;
|
|
296
|
+
`), c('&::after', `
|
|
297
|
+
content: "" !important;
|
|
298
|
+
display: block !important;
|
|
299
|
+
position: absolute !important;
|
|
300
|
+
bottom: -16px !important;
|
|
301
|
+
left: 0px !important;
|
|
302
|
+
width: 4px !important;
|
|
303
|
+
height: 16px !important;
|
|
304
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
305
|
+
`)]), c('.point-ne', `
|
|
306
|
+
width: 4px !important;
|
|
307
|
+
height: 4px !important;
|
|
308
|
+
right: -4px !important;
|
|
309
|
+
top: -4px !important;
|
|
310
|
+
opacity: 1;
|
|
311
|
+
`, [c('&::before', `
|
|
312
|
+
content: "" !important;
|
|
313
|
+
display: block !important;
|
|
314
|
+
position: absolute !important;
|
|
315
|
+
top: 0 !important;
|
|
316
|
+
left: -16px !important;
|
|
317
|
+
width: 16px !important;
|
|
318
|
+
height: 4px !important;
|
|
319
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
320
|
+
opacity: 1 !important;
|
|
321
|
+
`), c('&::after', `
|
|
322
|
+
content: "" !important;
|
|
323
|
+
display: block !important;
|
|
324
|
+
position: absolute !important;
|
|
325
|
+
bottom: -16px !important;
|
|
326
|
+
left: 0px !important;
|
|
327
|
+
width: 4px !important;
|
|
328
|
+
height: 16px !important;
|
|
329
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
330
|
+
`)])]), cB('crop-img', `
|
|
331
|
+
display: block;
|
|
332
|
+
max-width: 100%;
|
|
333
|
+
`)]);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ThemeCommonVars } from '../../config-provider';
|
|
2
|
+
export declare const self: (vars: ThemeCommonVars) => {
|
|
3
|
+
wrapperBg: string;
|
|
4
|
+
wrapperBorderRadius: string;
|
|
5
|
+
wrapperMargin: string;
|
|
6
|
+
};
|
|
7
|
+
export type CropThemeVars = ReturnType<typeof self>;
|
|
8
|
+
declare const cropLight: import("../../_mixins").Theme<"Crop", {
|
|
9
|
+
wrapperBg: string;
|
|
10
|
+
wrapperBorderRadius: string;
|
|
11
|
+
wrapperMargin: string;
|
|
12
|
+
}, {}>;
|
|
13
|
+
export default cropLight;
|
|
14
|
+
export type CropTheme = typeof cropLight;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createTheme } from '../../_mixins';
|
|
2
|
+
import { commonLight } from '../../_styles/common';
|
|
3
|
+
import commonVars from './_common';
|
|
4
|
+
export const self = (vars) => {
|
|
5
|
+
const { elementsSenary, borderRadiusLarge } = vars;
|
|
6
|
+
return Object.assign(Object.assign({}, commonVars), { wrapperBg: elementsSenary, wrapperBorderRadius: borderRadiusLarge });
|
|
7
|
+
};
|
|
8
|
+
const cropLight = createTheme({
|
|
9
|
+
name: 'Crop',
|
|
10
|
+
common: commonLight,
|
|
11
|
+
peers: {},
|
|
12
|
+
self
|
|
13
|
+
});
|
|
14
|
+
export default cropLight;
|