@uzum-tech/ui 1.9.1 → 1.10.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.
Files changed (149) hide show
  1. package/dist/index.js +5316 -804
  2. package/dist/index.prod.js +12 -3
  3. package/es/_internal/scrollbar/src/Scrollbar.js +19 -38
  4. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  5. package/es/cascader/src/Cascader.d.ts +1 -1
  6. package/es/chat/src/ChatListItems.js +16 -1
  7. package/es/chat/src/ChatParts/MainArea.js +31 -21
  8. package/es/components.d.ts +2 -0
  9. package/es/components.js +2 -0
  10. package/es/config-provider/src/internal-interface.d.ts +4 -0
  11. package/es/crop/index.d.ts +3 -0
  12. package/es/crop/index.js +1 -0
  13. package/es/crop/src/Crop.d.ts +222 -0
  14. package/es/crop/src/Crop.js +157 -0
  15. package/es/crop/src/interface.d.ts +6 -0
  16. package/es/crop/src/interface.js +7 -0
  17. package/es/crop/src/styles/index.cssr.d.ts +2 -0
  18. package/es/crop/src/styles/index.cssr.js +333 -0
  19. package/es/crop/styles/_common.d.ts +4 -0
  20. package/es/crop/styles/_common.js +3 -0
  21. package/es/crop/styles/dark.d.ts +3 -0
  22. package/es/crop/styles/dark.js +9 -0
  23. package/es/crop/styles/index.d.ts +3 -0
  24. package/es/crop/styles/index.js +2 -0
  25. package/es/crop/styles/light.d.ts +14 -0
  26. package/es/crop/styles/light.js +14 -0
  27. package/es/date-picker/src/panel/panelMonth.d.ts +1 -1
  28. package/es/date-picker/src/panel/panelYear.d.ts +1 -1
  29. package/es/dynamic-tags/src/DynamicTags.d.ts +30 -0
  30. package/es/dynamic-tags/styles/light.d.ts +3 -0
  31. package/es/infinite-scroll/src/InfiniteScroll.d.ts +16 -0
  32. package/es/infinite-scroll/src/InfiniteScroll.js +45 -12
  33. package/es/input/src/Input.d.ts +1 -1
  34. package/es/input-number/src/InputNumber.d.ts +1 -1
  35. package/es/legacy-transfer/src/Transfer.d.ts +1 -1
  36. package/es/modal-fullscreen/index.d.ts +2 -0
  37. package/es/modal-fullscreen/index.js +1 -0
  38. package/es/modal-fullscreen/src/ModalFull.d.ts +953 -0
  39. package/es/modal-fullscreen/src/ModalFull.js +250 -0
  40. package/es/modal-fullscreen/src/interface.d.ts +0 -0
  41. package/es/modal-fullscreen/src/interface.js +1 -0
  42. package/es/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
  43. package/es/modal-fullscreen/src/styles/index.cssr.js +85 -0
  44. package/es/modal-fullscreen/styles/_common.d.ts +12 -0
  45. package/es/modal-fullscreen/styles/_common.js +11 -0
  46. package/es/modal-fullscreen/styles/dark.d.ts +3 -0
  47. package/es/modal-fullscreen/styles/dark.js +14 -0
  48. package/es/modal-fullscreen/styles/index.d.ts +3 -0
  49. package/es/modal-fullscreen/styles/index.js +2 -0
  50. package/es/modal-fullscreen/styles/light.d.ts +100 -0
  51. package/es/modal-fullscreen/styles/light.js +19 -0
  52. package/es/rate/src/Rate.d.ts +1 -1
  53. package/es/select/src/Select.d.ts +1 -1
  54. package/es/slider/src/Slider.d.ts +1 -1
  55. package/es/switch/src/Switch.d.ts +1 -1
  56. package/es/tag/index.d.ts +2 -0
  57. package/es/tag/index.js +1 -0
  58. package/es/tag/src/Tag.d.ts +40 -0
  59. package/es/tag/src/Tag.js +3 -0
  60. package/es/tag/src/TagGroup.d.ts +644 -0
  61. package/es/tag/src/TagGroup.js +109 -0
  62. package/es/tag/src/styles/index.cssr.d.ts +1 -0
  63. package/es/tag/src/styles/index.cssr.js +8 -1
  64. package/es/tag/styles/light.d.ts +3 -0
  65. package/es/tag/styles/light.js +5 -0
  66. package/es/themes/dark.js +5 -1
  67. package/es/themes/light.js +5 -1
  68. package/es/time-picker/src/TimePicker.d.ts +1 -1
  69. package/es/transfer/src/Transfer.d.ts +1 -1
  70. package/es/tree-select/src/TreeSelect.d.ts +1 -1
  71. package/es/version.d.ts +1 -1
  72. package/es/version.js +1 -1
  73. package/es/virtual-list/index.d.ts +1 -1
  74. package/es/virtual-list/index.js +1 -1
  75. package/lib/_internal/scrollbar/src/Scrollbar.js +19 -38
  76. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  77. package/lib/cascader/src/Cascader.d.ts +1 -1
  78. package/lib/chat/src/ChatListItems.js +16 -1
  79. package/lib/chat/src/ChatParts/MainArea.js +31 -21
  80. package/lib/components.d.ts +2 -0
  81. package/lib/components.js +2 -0
  82. package/lib/config-provider/src/internal-interface.d.ts +4 -0
  83. package/lib/crop/index.d.ts +3 -0
  84. package/lib/crop/index.js +9 -0
  85. package/lib/crop/src/Crop.d.ts +222 -0
  86. package/lib/crop/src/Crop.js +163 -0
  87. package/lib/crop/src/interface.d.ts +6 -0
  88. package/lib/crop/src/interface.js +10 -0
  89. package/lib/crop/src/styles/index.cssr.d.ts +2 -0
  90. package/lib/crop/src/styles/index.cssr.js +338 -0
  91. package/lib/crop/styles/_common.d.ts +4 -0
  92. package/lib/crop/styles/_common.js +5 -0
  93. package/lib/crop/styles/dark.d.ts +3 -0
  94. package/lib/crop/styles/dark.js +11 -0
  95. package/lib/crop/styles/index.d.ts +3 -0
  96. package/lib/crop/styles/index.js +10 -0
  97. package/lib/crop/styles/light.d.ts +14 -0
  98. package/lib/crop/styles/light.js +21 -0
  99. package/lib/date-picker/src/panel/panelMonth.d.ts +1 -1
  100. package/lib/date-picker/src/panel/panelYear.d.ts +1 -1
  101. package/lib/dynamic-tags/src/DynamicTags.d.ts +30 -0
  102. package/lib/dynamic-tags/styles/light.d.ts +3 -0
  103. package/lib/infinite-scroll/src/InfiniteScroll.d.ts +16 -0
  104. package/lib/infinite-scroll/src/InfiniteScroll.js +44 -11
  105. package/lib/input/src/Input.d.ts +1 -1
  106. package/lib/input-number/src/InputNumber.d.ts +1 -1
  107. package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
  108. package/lib/modal-fullscreen/index.d.ts +2 -0
  109. package/lib/modal-fullscreen/index.js +9 -0
  110. package/lib/modal-fullscreen/src/ModalFull.d.ts +953 -0
  111. package/lib/modal-fullscreen/src/ModalFull.js +256 -0
  112. package/lib/modal-fullscreen/src/interface.d.ts +0 -0
  113. package/lib/modal-fullscreen/src/interface.js +1 -0
  114. package/lib/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
  115. package/lib/modal-fullscreen/src/styles/index.cssr.js +90 -0
  116. package/lib/modal-fullscreen/styles/_common.d.ts +12 -0
  117. package/lib/modal-fullscreen/styles/_common.js +13 -0
  118. package/lib/modal-fullscreen/styles/dark.d.ts +3 -0
  119. package/lib/modal-fullscreen/styles/dark.js +16 -0
  120. package/lib/modal-fullscreen/styles/index.d.ts +3 -0
  121. package/lib/modal-fullscreen/styles/index.js +10 -0
  122. package/lib/modal-fullscreen/styles/light.d.ts +100 -0
  123. package/lib/modal-fullscreen/styles/light.js +26 -0
  124. package/lib/rate/src/Rate.d.ts +1 -1
  125. package/lib/select/src/Select.d.ts +1 -1
  126. package/lib/slider/src/Slider.d.ts +1 -1
  127. package/lib/switch/src/Switch.d.ts +1 -1
  128. package/lib/tag/index.d.ts +2 -0
  129. package/lib/tag/index.js +3 -1
  130. package/lib/tag/src/Tag.d.ts +40 -0
  131. package/lib/tag/src/Tag.js +3 -0
  132. package/lib/tag/src/TagGroup.d.ts +644 -0
  133. package/lib/tag/src/TagGroup.js +112 -0
  134. package/lib/tag/src/styles/index.cssr.d.ts +1 -0
  135. package/lib/tag/src/styles/index.cssr.js +9 -1
  136. package/lib/tag/styles/light.d.ts +3 -0
  137. package/lib/tag/styles/light.js +5 -0
  138. package/lib/themes/dark.js +5 -1
  139. package/lib/themes/light.js +5 -1
  140. package/lib/time-picker/src/TimePicker.d.ts +1 -1
  141. package/lib/transfer/src/Transfer.d.ts +1 -1
  142. package/lib/tree-select/src/TreeSelect.d.ts +1 -1
  143. package/lib/version.d.ts +1 -1
  144. package/lib/version.js +1 -1
  145. package/lib/virtual-list/index.d.ts +1 -1
  146. package/lib/virtual-list/index.js +2 -2
  147. package/package.json +7 -6
  148. package/volar.d.ts +4 -0
  149. package/web-types.json +387 -1
@@ -0,0 +1,256 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.modalFullscreenProps = void 0;
7
+ const vdirs_1 = require("vdirs");
8
+ const vue_1 = require("vue");
9
+ const vueuc_1 = require("vueuc");
10
+ const vooks_1 = require("vooks");
11
+ const _utils_1 = require("../../_utils");
12
+ const _mixins_1 = require("../../_mixins");
13
+ const styles_1 = require("../styles");
14
+ const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
15
+ const _internal_1 = require("../../_internal");
16
+ const flex_1 = require("../../flex");
17
+ const typography_1 = require("../../typography");
18
+ exports.modalFullscreenProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { to: [String, Object], show: Boolean, zIndex: Number, title: String, subtitle: String, backgroundImage: String, fixed: {
19
+ type: Boolean,
20
+ default: false
21
+ }, displayDirective: {
22
+ type: String,
23
+ default: 'if'
24
+ }, transformOrigin: {
25
+ type: String,
26
+ default: 'mouse'
27
+ }, autoFocus: {
28
+ type: Boolean,
29
+ default: true
30
+ }, trapFocus: {
31
+ type: Boolean,
32
+ default: true
33
+ }, closeOnEsc: {
34
+ type: Boolean,
35
+ default: true
36
+ }, blockScroll: {
37
+ type: Boolean,
38
+ default: true
39
+ },
40
+ // events
41
+ onEsc: Function, onClose: Function, onAfterEnter: Function, onBeforeLeave: Function, onAfterLeave: Function, onUpdateShow: [Function, Array], 'onUpdate:show': [Function, Array] });
42
+ exports.default = (0, vue_1.defineComponent)({
43
+ name: 'ModalFullscreen',
44
+ inheritAttrs: false,
45
+ props: exports.modalFullscreenProps,
46
+ setup(props) {
47
+ const isDisplayed = (0, vue_1.ref)(props.show);
48
+ const containerRef = (0, vue_1.ref)(null);
49
+ const scrollbarRef = (0, vue_1.ref)(null);
50
+ const isClicked = (0, vooks_1.useClicked)(64);
51
+ const clickPosition = (0, vooks_1.useClickPosition)();
52
+ const isComposing = (0, _utils_1.useIsComposing)();
53
+ const isMounted = (0, vooks_1.useIsMounted)();
54
+ const transformOriginXRef = (0, vue_1.ref)(null);
55
+ const transformOriginYRef = (0, vue_1.ref)(null);
56
+ const { mergedClsPrefixRef, namespaceRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
57
+ const themeRef = (0, _mixins_1.useTheme)('ModalFullscreen', '-modal-fullscreen', index_cssr_1.default, styles_1.modalFullscreenLight, props, mergedClsPrefixRef);
58
+ const updateShow = (show) => {
59
+ const { onUpdateShow, 'onUpdate:show': _onUpdateShow } = props;
60
+ if (onUpdateShow)
61
+ (0, _utils_1.call)(onUpdateShow, show);
62
+ if (_onUpdateShow)
63
+ (0, _utils_1.call)(_onUpdateShow, show);
64
+ };
65
+ const handleCloseClick = () => {
66
+ const { onClose } = props;
67
+ if (onClose) {
68
+ void Promise.resolve(onClose()).then((value) => {
69
+ if (value === false)
70
+ return;
71
+ updateShow(false);
72
+ });
73
+ }
74
+ else {
75
+ updateShow(false);
76
+ }
77
+ };
78
+ const handleBeforeLeave = (element) => {
79
+ element.style.transformOrigin = styleTransformOrigin();
80
+ const { onBeforeLeave } = props;
81
+ if (onBeforeLeave)
82
+ (0, _utils_1.call)(onBeforeLeave);
83
+ };
84
+ const handleAfterLeave = () => {
85
+ isDisplayed.value = false;
86
+ transformOriginXRef.value = null;
87
+ transformOriginYRef.value = null;
88
+ const { onAfterLeave } = props;
89
+ if (onAfterLeave)
90
+ (0, _utils_1.call)(onAfterLeave);
91
+ };
92
+ const handleEsc = (event) => {
93
+ var _a;
94
+ (_a = props.onEsc) === null || _a === void 0 ? void 0 : _a.call(props);
95
+ if (props.show && props.closeOnEsc && (0, _utils_1.eventEffectNotPerformed)(event)) {
96
+ !isComposing.value && updateShow(false);
97
+ }
98
+ };
99
+ const getMousePosition = () => {
100
+ if (isClicked.value) {
101
+ return clickPosition.value;
102
+ }
103
+ return null;
104
+ };
105
+ const styleTransformOrigin = () => {
106
+ if (props.transformOrigin === 'center') {
107
+ return '';
108
+ }
109
+ const { value: transformOriginX } = transformOriginXRef;
110
+ const { value: transformOriginY } = transformOriginYRef;
111
+ if (transformOriginX === null || transformOriginY === null) {
112
+ return '';
113
+ }
114
+ else if (scrollbarRef.value) {
115
+ const scrollTop = scrollbarRef.value.containerScrollTop;
116
+ return `${transformOriginX}px ${transformOriginY + scrollTop}px`;
117
+ }
118
+ return '';
119
+ };
120
+ const syncTransformOrigin = (element) => {
121
+ if (props.transformOrigin === 'center') {
122
+ return;
123
+ }
124
+ const mousePosition = getMousePosition();
125
+ if (!mousePosition) {
126
+ return;
127
+ }
128
+ if (!scrollbarRef.value)
129
+ return;
130
+ const scrollTop = scrollbarRef.value.containerScrollTop;
131
+ const { offsetLeft, offsetTop } = element;
132
+ if (mousePosition) {
133
+ const top = mousePosition.y;
134
+ const left = mousePosition.x;
135
+ transformOriginXRef.value = -(offsetLeft - left);
136
+ transformOriginYRef.value = -(offsetTop - top - scrollTop);
137
+ }
138
+ element.style.transformOrigin = styleTransformOrigin();
139
+ };
140
+ const handleEnter = (element) => {
141
+ void (0, vue_1.nextTick)(() => {
142
+ syncTransformOrigin(element);
143
+ });
144
+ };
145
+ const cssVarsRef = (0, vue_1.computed)(() => {
146
+ const { common: { cubicBezierEaseOut }, self: { modalBg, headerBg, bodyBg, footerBg, textColor, closeMargin, closeSize, closeIconSize, closeBorderRadius, closeColorHover, closeColorPressed, closeIconColor, closeIconColorHover, closeIconColorPressed, subtitleColor, headerPadding, bodyPadding, footerPadding } } = themeRef.value;
147
+ return {
148
+ '--u-bezier-ease-out': cubicBezierEaseOut,
149
+ '--u-text-color': textColor,
150
+ '--u-close-margin': closeMargin,
151
+ '--u-close-size': closeSize,
152
+ '--u-close-icon-size': closeIconSize,
153
+ '--u-close-border-radius': closeBorderRadius,
154
+ '--u-close-color-hover': closeColorHover,
155
+ '--u-close-color-pressed': closeColorPressed,
156
+ '--u-close-icon-color': closeIconColor,
157
+ '--u-close-icon-color-hover': closeIconColorHover,
158
+ '--u-close-icon-color-pressed': closeIconColorPressed,
159
+ '--u-header-padding': headerPadding,
160
+ '--u-subtitle-color': subtitleColor,
161
+ '--u-body-padding': bodyPadding,
162
+ '--u-footer-padding': footerPadding,
163
+ '--u-modal-bg': props.backgroundImage
164
+ ? `url(${props.backgroundImage})`
165
+ : modalBg,
166
+ '--u-header-bg': headerBg,
167
+ '--u-body-bg': bodyBg,
168
+ '--u-footer-bg': footerBg
169
+ };
170
+ });
171
+ const themeClassHandle = inlineThemeDisabled
172
+ ? (0, _mixins_1.useThemeClass)('theme-class', undefined, cssVarsRef, props)
173
+ : undefined;
174
+ (0, vue_1.watch)((0, vue_1.toRef)(props, 'show'), (value) => {
175
+ if (value)
176
+ isDisplayed.value = true;
177
+ });
178
+ return {
179
+ containerRef,
180
+ scrollbarRef,
181
+ mergedClsPrefix: mergedClsPrefixRef,
182
+ namespace: namespaceRef,
183
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
184
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
185
+ themeRef,
186
+ isMounted,
187
+ isDisplayed,
188
+ handleEnter,
189
+ handleBeforeLeave,
190
+ handleAfterLeave,
191
+ handleEsc,
192
+ handleCloseClick,
193
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
194
+ };
195
+ },
196
+ render() {
197
+ const { mergedClsPrefix, isDisplayed, handleEnter, handleBeforeLeave, handleAfterLeave, handleEsc, handleCloseClick } = this;
198
+ const headerLeftSlot = (0, _utils_1.resolveWrappedSlot)(this.$slots.headerLeft, (children) => children);
199
+ const bodySlot = (0, _utils_1.resolveWrappedSlot)(this.$slots.body || this.$slots.default, (children) => children);
200
+ const footerSlot = (0, _utils_1.resolveWrappedSlot)(this.$slots.footer, (children) => children);
201
+ return ((0, vue_1.h)(vueuc_1.VLazyTeleport, { to: this.to, show: this.show }, {
202
+ default: () => {
203
+ var _a;
204
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
205
+ return (0, vue_1.withDirectives)((0, vue_1.h)("div", { role: "none", ref: "containerRef", class: [
206
+ `${mergedClsPrefix}-modal-container`,
207
+ this.themeClass,
208
+ this.namespace
209
+ ], style: this.cssVars }, this.displayDirective === 'show' || isDisplayed || this.show
210
+ ? (0, vue_1.withDirectives)((0, vue_1.h)("div", { role: "none", class: `${mergedClsPrefix}-modal-body-wrapper` },
211
+ (0, vue_1.h)(_internal_1.UScrollbar, { ref: "scrollbarRef", theme: this.themeRef.peers.Scrollbar, themeOverrides: this.themeRef.peerOverrides.Scrollbar, contentClass: `${mergedClsPrefix}-modal-scroll-content` }, {
212
+ default: () => ((0, vue_1.h)(vueuc_1.VFocusTrap, { disabled: !this.trapFocus, active: this.show, onEsc: handleEsc, autoFocus: this.autoFocus }, {
213
+ default: () => ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted, onEnter: handleEnter, onAfterEnter: this.onAfterEnter, onAfterLeave: handleAfterLeave, onBeforeLeave: handleBeforeLeave }, {
214
+ default: () => {
215
+ const dirs = [
216
+ [vue_1.vShow, this.show]
217
+ ];
218
+ return (0, vue_1.withDirectives)((0, vue_1.h)("div", { class: `${mergedClsPrefix}-modal` },
219
+ (0, vue_1.h)(flex_1.UFlex, { vertical: true, size: [0, 0], class: [
220
+ `${mergedClsPrefix}-modal-content`,
221
+ this.fixed &&
222
+ `${mergedClsPrefix}-modal-content--fixed`
223
+ ] },
224
+ (0, vue_1.h)(flex_1.UFlex, { align: "center", size: [0, 0], wrap: false, class: `${mergedClsPrefix}-modal-header` },
225
+ (0, vue_1.h)("div", { class: `${mergedClsPrefix}-modal-header__left` }, headerLeftSlot),
226
+ (0, vue_1.h)("div", { class: `${mergedClsPrefix}-modal-header__center` },
227
+ this.title ? ((0, vue_1.h)(typography_1.UText, { variant: "body-l-semi-bold", class: `${mergedClsPrefix}-modal-header__title` }, this.title)) : null,
228
+ this.subtitle ? ((0, vue_1.h)(typography_1.UText, { variant: "body-m-medium", class: `${mergedClsPrefix}-modal-header__subtitle` }, this.subtitle)) : null),
229
+ (0, vue_1.h)("div", { class: `${mergedClsPrefix}-modal-header__right` },
230
+ (0, vue_1.h)(_internal_1.UBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-modal__close`, onClick: handleCloseClick }))),
231
+ (0, vue_1.h)("div", { class: `${mergedClsPrefix}-modal-body` }, bodySlot),
232
+ (0, vue_1.h)("div", { class: `${mergedClsPrefix}-modal-footer` }, footerSlot))), dirs);
233
+ }
234
+ }))
235
+ }))
236
+ })), [
237
+ [
238
+ vue_1.vShow,
239
+ this.displayDirective === 'if' ||
240
+ isDisplayed ||
241
+ this.show
242
+ ]
243
+ ])
244
+ : null), [
245
+ [
246
+ vdirs_1.zindexable,
247
+ {
248
+ zIndex: this.zIndex,
249
+ enabled: this.show
250
+ }
251
+ ]
252
+ ]);
253
+ }
254
+ }));
255
+ }
256
+ });
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,2 @@
1
+ declare const _default: import("css-render").CNode;
2
+ export default _default;
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ const cssr_1 = require("../../../_utils/cssr");
7
+ const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
8
+ // vars:
9
+ // --u-bezier-ease-out
10
+ // --u-text-color
11
+ // --u-close-border-radius
12
+ // --u-close-margin
13
+ // --u-close-size
14
+ // --u-close-color-hover
15
+ // --u-close-color-pressed
16
+ // --u-close-icon-color
17
+ // --u-close-icon-color-hover
18
+ // --u-close-icon-color-pressed
19
+ // --u-header-padding
20
+ // --u-subtitle-color
21
+ // --u-body-padding
22
+ // --u-footer-padding
23
+ // --u-modal-bg
24
+ // --u-header-bg
25
+ // --u-body-bg
26
+ // --u-footer-bg
27
+ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('modal-container', `
28
+ position: fixed;
29
+ left: 0;
30
+ top: 0;
31
+ height: 0;
32
+ width: 0;
33
+ display: flex;
34
+ `), (0, cssr_1.cB)('modal-body-wrapper', `
35
+ position: fixed;
36
+ left: 0;
37
+ right: 0;
38
+ top: 0;
39
+ bottom: 0;
40
+ overflow: visible;
41
+ `, [(0, cssr_1.cB)('modal-scroll-content', `
42
+ min-height: 100%;
43
+ position: relative;
44
+ `)]), (0, cssr_1.cB)('modal', `
45
+ position: relative;
46
+ color: var(--u-text-color);
47
+ margin: auto;
48
+ width: 100vw;
49
+ height: 100vh;
50
+ background: var(--u-modal-bg);
51
+ background-repeat: no-repeat;
52
+ background-size: cover;
53
+ `, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)({
54
+ duration: '.25s',
55
+ enterScale: '.5'
56
+ }), (0, cssr_1.cE)('close', `
57
+ margin: var(--u-close-margin);
58
+ transition:
59
+ background-color .3s var(--u-bezier),
60
+ color .3s var(--u-bezier);
61
+ z-index: 1;
62
+ `)]), (0, cssr_1.cB)('modal-content', `
63
+ height: 100%;
64
+ `, [(0, cssr_1.cM)('fixed', '', [(0, cssr_1.cB)('modal-header', `
65
+ flex: 0 0 auto;
66
+ `), (0, cssr_1.cB)('modal-body', `
67
+ flex: 1 1 100%;
68
+ `), (0, cssr_1.cB)('modal-footer', `
69
+ flex: 0 0 auto;
70
+ `)])]), (0, cssr_1.cB)('modal-body', `
71
+ padding: var(--u-body-padding);
72
+ background: var(--u-body-bg);
73
+ overflow-y: auto;
74
+ `), (0, cssr_1.cB)('modal-footer', `
75
+ padding: var(--u-footer-padding);
76
+ background: var(--u-footer-bg);
77
+ `), (0, cssr_1.cB)('modal-header', `
78
+ padding: var(--u-header-padding);
79
+ background: var(--u-header-bg);
80
+ `, [(0, cssr_1.cE)('left', `
81
+ flex: 0 1 50%;
82
+ `), (0, cssr_1.cE)('center', `
83
+ flex: 0 0 auto;
84
+ text-align: center;
85
+ `), (0, cssr_1.cE)('right', `
86
+ flex: 0 1 50%;
87
+ `), (0, cssr_1.cE)('title', `
88
+ `), (0, cssr_1.cE)('subtitle', `
89
+ color: var(--u-subtitle-color)
90
+ `)])]);
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ headerPadding: string;
3
+ bodyPadding: string;
4
+ footerPadding: string;
5
+ headerBg: string;
6
+ bodyBg: string;
7
+ footerBg: string;
8
+ closeMargin: string;
9
+ closeMarginIconTop: string;
10
+ closeBorderRadius: string;
11
+ };
12
+ export default _default;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ headerPadding: '12px 32px',
5
+ bodyPadding: '24px 40px',
6
+ footerPadding: '12px 40px',
7
+ headerBg: 'transparent',
8
+ bodyBg: 'transparent',
9
+ footerBg: 'transparent',
10
+ closeMargin: '0 0 0 auto',
11
+ closeMarginIconTop: '16px 16px 0',
12
+ closeBorderRadius: '100px'
13
+ };
@@ -0,0 +1,3 @@
1
+ import type { ModalFullscreenTheme } from './light';
2
+ declare const modalFullscreenDark: ModalFullscreenTheme;
3
+ export default modalFullscreenDark;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const styles_1 = require("../../_internal/scrollbar/styles");
4
+ const styles_2 = require("../../card/styles");
5
+ const common_1 = require("../../_styles/common");
6
+ const light_1 = require("./light");
7
+ const modalFullscreenDark = {
8
+ name: 'ModalFullscreen',
9
+ common: common_1.commonDark,
10
+ peers: {
11
+ Scrollbar: styles_1.scrollbarDark,
12
+ Card: styles_2.cardDark
13
+ },
14
+ self: light_1.self
15
+ };
16
+ exports.default = modalFullscreenDark;
@@ -0,0 +1,3 @@
1
+ export { default as modalFullscreenDark } from './dark';
2
+ export { default as modalFullscreenLight } from './light';
3
+ export type { ModalFullscreenTheme, ModalFullscreenThemeVars } from './light';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.modalFullscreenLight = exports.modalFullscreenDark = void 0;
7
+ var dark_1 = require("./dark");
8
+ Object.defineProperty(exports, "modalFullscreenDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
9
+ var light_1 = require("./light");
10
+ Object.defineProperty(exports, "modalFullscreenLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
@@ -0,0 +1,100 @@
1
+ import type { ThemeCommonVars } from '../../_styles/common';
2
+ export declare const self: (vars: ThemeCommonVars) => {
3
+ modalBg: string;
4
+ textColor: string;
5
+ closeColorHover: string;
6
+ closeColorPressed: string;
7
+ closeIconColor: string;
8
+ closeIconColorHover: string;
9
+ closeIconColorPressed: string;
10
+ closeIconSize: string;
11
+ closeSize: string;
12
+ subtitleColor: string;
13
+ headerPadding: string;
14
+ bodyPadding: string;
15
+ footerPadding: string;
16
+ headerBg: string;
17
+ bodyBg: string;
18
+ footerBg: string;
19
+ closeMargin: string;
20
+ closeMarginIconTop: string;
21
+ closeBorderRadius: string;
22
+ };
23
+ export type ModalFullscreenThemeVars = ReturnType<typeof self>;
24
+ declare const modalFullscreenLight: import("../../_mixins").Theme<"ModalFullscreen", {
25
+ modalBg: string;
26
+ textColor: string;
27
+ closeColorHover: string;
28
+ closeColorPressed: string;
29
+ closeIconColor: string;
30
+ closeIconColorHover: string;
31
+ closeIconColorPressed: string;
32
+ closeIconSize: string;
33
+ closeSize: string;
34
+ subtitleColor: string;
35
+ headerPadding: string;
36
+ bodyPadding: string;
37
+ footerPadding: string;
38
+ headerBg: string;
39
+ bodyBg: string;
40
+ footerBg: string;
41
+ closeMargin: string;
42
+ closeMarginIconTop: string;
43
+ closeBorderRadius: string;
44
+ }, {
45
+ Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
46
+ height: string;
47
+ width: string;
48
+ borderRadius: string;
49
+ color: string;
50
+ colorHover: string;
51
+ railInsetHorizontalBottom: string;
52
+ railInsetHorizontalTop: string;
53
+ railInsetVerticalRight: string;
54
+ railInsetVerticalLeft: string;
55
+ railColor: string;
56
+ }, any>;
57
+ Card: import("../../_mixins").Theme<"Card", {
58
+ titleFontSizeSmall: string;
59
+ titleFontSizeMedium: string;
60
+ titleFontSizeLarge: string;
61
+ titleFontSizeHuge: string;
62
+ titleLineHeightSmall: string;
63
+ titleLineHeightMedium: string;
64
+ titleLineHeightLarge: string;
65
+ titleLineHeightHuge: string;
66
+ titleFontWeight: string;
67
+ fontSizeSmall: string;
68
+ fontSizeMedium: string;
69
+ fontSizeLarge: string;
70
+ fontSizeHuge: string;
71
+ lineHeightSmall: string;
72
+ lineHeightMedium: string;
73
+ lineHeightLarge: string;
74
+ lineHeightHuge: string;
75
+ fontWeight: string;
76
+ closeIconSize: string;
77
+ closeSize: string;
78
+ color: string;
79
+ colorTarget: string;
80
+ colorEmbedded: string;
81
+ textColor: string;
82
+ titleTextColor: string;
83
+ borderColor: string;
84
+ actionColor: string;
85
+ closeColorHover: string;
86
+ closeColorPressed: string;
87
+ closeIconColor: string;
88
+ closeIconColorHover: string;
89
+ closeIconColorPressed: string;
90
+ closeBorderRadius: string;
91
+ boxShadow: string;
92
+ borderRadius: string;
93
+ paddingSmall: string;
94
+ paddingMedium: string;
95
+ paddingLarge: string;
96
+ paddingHuge: string;
97
+ }, any>;
98
+ }>;
99
+ export default modalFullscreenLight;
100
+ export type ModalFullscreenTheme = typeof modalFullscreenLight;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.self = void 0;
7
+ const styles_1 = require("../../_internal/scrollbar/styles");
8
+ const styles_2 = require("../../card/styles");
9
+ const common_1 = require("../../_styles/common");
10
+ const _mixins_1 = require("../../_mixins");
11
+ const _common_1 = __importDefault(require("./_common"));
12
+ const self = (vars) => {
13
+ const { containerPrimary, textPrimary, transparencySecondary, elementsQuinary, elementsDarkQuinary, elementsSenary, iconMedium, closeMedium, textSecondary } = vars;
14
+ return Object.assign(Object.assign({}, _common_1.default), { modalBg: containerPrimary, textColor: textPrimary, closeColorHover: transparencySecondary, closeColorPressed: transparencySecondary, closeIconColor: elementsQuinary, closeIconColorHover: elementsDarkQuinary, closeIconColorPressed: elementsSenary, closeIconSize: iconMedium, closeSize: closeMedium, subtitleColor: textSecondary });
15
+ };
16
+ exports.self = self;
17
+ const modalFullscreenLight = (0, _mixins_1.createTheme)({
18
+ name: 'ModalFullscreen',
19
+ common: common_1.commonLight,
20
+ peers: {
21
+ Scrollbar: styles_1.scrollbarLight,
22
+ Card: styles_2.cardLight
23
+ },
24
+ self: exports.self
25
+ });
26
+ exports.default = modalFullscreenLight;
@@ -147,8 +147,8 @@ declare const _default: import("vue").DefineComponent<{
147
147
  }, any>>>;
148
148
  }>>, {
149
149
  readonly size: number | "small" | "medium" | "large";
150
- readonly clearable: boolean;
151
150
  readonly defaultValue: number | null;
151
+ readonly clearable: boolean;
152
152
  readonly readonly: boolean;
153
153
  readonly count: number;
154
154
  readonly allowHalf: boolean;
@@ -2448,6 +2448,7 @@ declare const _default: import("vue").DefineComponent<{
2448
2448
  readonly showArrow: boolean;
2449
2449
  readonly displayDirective: "show" | "if";
2450
2450
  readonly placement: FollowerPlacement;
2451
+ readonly defaultValue: Value | null;
2451
2452
  readonly secondary: boolean;
2452
2453
  readonly filterable: boolean;
2453
2454
  readonly clearable: boolean;
@@ -2455,7 +2456,6 @@ declare const _default: import("vue").DefineComponent<{
2455
2456
  readonly ignoreComposition: boolean;
2456
2457
  readonly counter: boolean;
2457
2458
  readonly keyboard: boolean;
2458
- readonly defaultValue: Value | null;
2459
2459
  readonly options: SelectMixedOption[];
2460
2460
  readonly clearFilterAfterSelect: boolean;
2461
2461
  readonly remote: boolean;
@@ -501,9 +501,9 @@ declare const _default: import("vue").DefineComponent<{
501
501
  readonly to: string | boolean | HTMLElement;
502
502
  readonly range: boolean;
503
503
  readonly tooltip: boolean;
504
+ readonly defaultValue: number | number[];
504
505
  readonly max: number;
505
506
  readonly keyboard: boolean;
506
- readonly defaultValue: number | number[];
507
507
  readonly min: number;
508
508
  readonly showTooltip: boolean | undefined;
509
509
  }, {}>;
@@ -519,9 +519,9 @@ declare const _default: import("vue").DefineComponent<{
519
519
  readonly loading: boolean;
520
520
  readonly size: "small" | "medium" | "large";
521
521
  readonly round: boolean;
522
+ readonly defaultValue: string | number | boolean;
522
523
  readonly checkedValue: string | number | boolean;
523
524
  readonly uncheckedValue: string | number | boolean;
524
- readonly defaultValue: string | number | boolean;
525
525
  readonly rubberBand: boolean;
526
526
  }, {}>;
527
527
  export default _default;
@@ -1,2 +1,4 @@
1
1
  export { default as UTag, tagProps } from './src/Tag';
2
2
  export type { TagProps } from './src/Tag';
3
+ export { default as UTagGroup } from './src/TagGroup';
4
+ export type { TagGroupProps } from './src/TagGroup';
package/lib/tag/index.js CHANGED
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.tagProps = exports.UTag = void 0;
6
+ exports.UTagGroup = exports.tagProps = exports.UTag = void 0;
7
7
  var Tag_1 = require("./src/Tag");
8
8
  Object.defineProperty(exports, "UTag", { enumerable: true, get: function () { return __importDefault(Tag_1).default; } });
9
9
  Object.defineProperty(exports, "tagProps", { enumerable: true, get: function () { return Tag_1.tagProps; } });
10
+ var TagGroup_1 = require("./src/TagGroup");
11
+ Object.defineProperty(exports, "UTagGroup", { enumerable: true, get: function () { return __importDefault(TagGroup_1).default; } });