@king-design/vue 3.1.1 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/__snapshots__/Vue Next Demos.md +44 -38
- package/__tests__/components/upload.spec.ts +39 -0
- package/babel.config.js +29 -0
- package/components/affix/styles.d.ts +4 -1
- package/components/affix/styles.js +4 -2
- package/components/badge/index.vdt.js +1 -1
- package/components/badge/styles.d.ts +4 -1
- package/components/badge/styles.js +4 -2
- package/components/breadcrumb/index.vdt.js +1 -1
- package/components/breadcrumb/styles.d.ts +4 -1
- package/components/breadcrumb/styles.js +4 -2
- package/components/button/styles.d.ts +8 -2
- package/components/button/styles.js +7 -4
- package/components/card/styles.d.ts +4 -1
- package/components/card/styles.js +4 -2
- package/components/carousel/styles.d.ts +8 -2
- package/components/carousel/styles.js +7 -4
- package/components/cascader/index.vdt.js +3 -1
- package/components/cascader/styles.d.ts +8 -2
- package/components/cascader/styles.js +7 -4
- package/components/checkbox/index.vdt.js +1 -1
- package/components/checkbox/styles.d.ts +4 -1
- package/components/checkbox/styles.js +4 -2
- package/components/code/styles.d.ts +4 -1
- package/components/code/styles.js +3 -2
- package/components/collapse/index.spec.js +1 -1
- package/components/collapse/item.vdt.js +3 -3
- package/components/collapse/styles.d.ts +8 -2
- package/components/collapse/styles.js +11 -8
- package/components/colorpicker/styles.d.ts +8 -2
- package/components/colorpicker/styles.js +7 -4
- package/components/copy/styles.d.ts +4 -1
- package/components/copy/styles.js +3 -2
- package/components/datepicker/styles.d.ts +12 -3
- package/components/datepicker/styles.js +10 -6
- package/components/diagram/styles.d.ts +4 -1
- package/components/diagram/styles.js +3 -2
- package/components/dialog/index.spec.js +61 -1
- package/components/dialog/styles.d.ts +12 -3
- package/components/dialog/styles.js +10 -6
- package/components/dialog/usePosition.js +7 -0
- package/components/drawer/styles.d.ts +4 -1
- package/components/drawer/styles.js +4 -2
- package/components/dropdown/styles.d.ts +8 -2
- package/components/dropdown/styles.js +7 -4
- package/components/dropdown/usePosition.js +14 -11
- package/components/editable/styles.d.ts +4 -1
- package/components/editable/styles.js +4 -2
- package/components/form/styles.d.ts +8 -2
- package/components/form/styles.js +7 -4
- package/components/grid/styles.d.ts +8 -2
- package/components/grid/styles.js +12 -13
- package/components/icon/index.vdt.js +1 -1
- package/components/icon/styles.d.ts +4 -1
- package/components/icon/styles.js +4 -2
- package/components/input/styles.d.ts +8 -2
- package/components/input/styles.js +7 -4
- package/components/layout/styles.d.ts +16 -4
- package/components/layout/styles.js +13 -8
- package/components/menu/styles.d.ts +16 -4
- package/components/menu/styles.js +14 -9
- package/components/message/styles.d.ts +8 -2
- package/components/message/styles.js +7 -4
- package/components/pagination/styles.d.ts +4 -1
- package/components/pagination/styles.js +4 -2
- package/components/popover/content.vdt.js +1 -1
- package/components/popover/styles.d.ts +4 -1
- package/components/popover/styles.js +4 -2
- package/components/portal.js +15 -3
- package/components/progress/styles.d.ts +4 -1
- package/components/progress/styles.js +4 -2
- package/components/radio/styles.d.ts +4 -1
- package/components/radio/styles.js +4 -2
- package/components/rate/styles.d.ts +4 -1
- package/components/rate/styles.js +4 -2
- package/components/scrollSelect/styles.d.ts +4 -1
- package/components/scrollSelect/styles.js +4 -2
- package/components/select/base.js +3 -1
- package/components/select/base.vdt.js +1 -1
- package/components/select/styles.d.ts +12 -3
- package/components/select/styles.js +10 -6
- package/components/skeleton/styles.d.ts +8 -2
- package/components/skeleton/styles.js +7 -4
- package/components/slider/styles.d.ts +4 -1
- package/components/slider/styles.js +4 -2
- package/components/spin/styles.d.ts +4 -1
- package/components/spin/styles.js +4 -2
- package/components/spinner/styles.d.ts +4 -1
- package/components/spinner/styles.js +4 -2
- package/components/split/styles.d.ts +4 -1
- package/components/split/styles.js +4 -2
- package/components/steps/index.vdt.js +2 -2
- package/components/steps/styles.d.ts +4 -3
- package/components/steps/styles.js +9 -4
- package/components/switch/styles.d.ts +4 -1
- package/components/switch/styles.js +4 -2
- package/components/table/column.d.ts +1 -0
- package/components/table/column.js +2 -1
- package/components/table/column.vdt.js +9 -3
- package/components/table/index.spec.js +18 -11
- package/components/table/styles.d.ts +8 -2
- package/components/table/styles.js +8 -5
- package/components/table/table.vdt.js +3 -4
- package/components/table/useColumns.js +1 -0
- package/components/table/useFixedColumns.d.ts +3 -3
- package/components/table/useFixedColumns.js +27 -46
- package/components/table/useGroup.d.ts +1 -0
- package/components/table/useGroup.js +11 -1
- package/components/table/useResizable.js +41 -5
- package/components/table/useWidth.js +3 -0
- package/components/tabs/styles.d.ts +4 -1
- package/components/tabs/styles.js +4 -2
- package/components/tag/styles.d.ts +8 -2
- package/components/tag/styles.js +7 -4
- package/components/timeline/styles.d.ts +8 -2
- package/components/timeline/styles.js +7 -5
- package/components/timepicker/styles.d.ts +4 -1
- package/components/timepicker/styles.js +4 -2
- package/components/tip/styles.d.ts +4 -1
- package/components/tip/styles.js +4 -2
- package/components/tooltip/content.vdt.js +1 -1
- package/components/tooltip/styles.d.ts +4 -1
- package/components/tooltip/styles.js +4 -2
- package/components/transfer/styles.d.ts +4 -1
- package/components/transfer/styles.js +4 -2
- package/components/tree/index.spec.js +13 -1
- package/components/tree/styles.d.ts +4 -1
- package/components/tree/styles.js +4 -2
- package/components/tree/useChecked.js +4 -0
- package/components/treeSelect/styles.d.ts +4 -1
- package/components/treeSelect/styles.js +4 -2
- package/components/upload/styles.d.ts +8 -2
- package/components/upload/styles.js +7 -4
- package/components/upload/useFiles.js +3 -2
- package/components/utils.d.ts +10 -2
- package/components/utils.js +9 -2
- package/components/wave/styles.d.ts +4 -1
- package/components/wave/styles.js +4 -2
- package/i18n/en-US.d.ts +1 -0
- package/i18n/en-US.js +1 -0
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +3 -2
- package/styles/fonts/iconfont.d.ts +4 -1
- package/styles/fonts/iconfont.js +1 -1
- package/styles/global.js +7 -2
- package/yarn-error.log +249 -45
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {createApp, render, defineComponent, ref} from 'vue';
|
|
2
|
+
import {mount, unmount, dispatchEvent, getElement, wait} from '@/test/utils';
|
|
3
|
+
import {Upload} from '../../';
|
|
4
|
+
|
|
5
|
+
describe('Upload', () => {
|
|
6
|
+
it('should handle bi-directional data binding for files', async () => {
|
|
7
|
+
const container = document.createElement('div');
|
|
8
|
+
document.body.appendChild(container);
|
|
9
|
+
const test = shouldNotWarn():
|
|
10
|
+
const Demo = defineComponent({
|
|
11
|
+
setup() {
|
|
12
|
+
const files = ref([]);
|
|
13
|
+
return { files };
|
|
14
|
+
},
|
|
15
|
+
components: { Upload },
|
|
16
|
+
template: `<Upload v-model:files="files" :autoUpload="false" />{{ files }}`
|
|
17
|
+
});
|
|
18
|
+
const vue = createApp({
|
|
19
|
+
template: `<Demo /> `,
|
|
20
|
+
components: { Demo },
|
|
21
|
+
}).mount(container);
|
|
22
|
+
|
|
23
|
+
await wait();
|
|
24
|
+
test();
|
|
25
|
+
|
|
26
|
+
render(null, container);
|
|
27
|
+
document.body.removeChild(container);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
function shouldNotWarn() {
|
|
32
|
+
const warn = console.warn;
|
|
33
|
+
const spy = sinon.spy((...args: any[]) => warn.apply(console, args));
|
|
34
|
+
console.warn = spy;
|
|
35
|
+
return () => {
|
|
36
|
+
expect(spy.callCount).to.eql(0);
|
|
37
|
+
console.warn = warn;
|
|
38
|
+
}
|
|
39
|
+
}
|
package/babel.config.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module.exports = function(api) {
|
|
2
|
+
api.cache(true);
|
|
3
|
+
|
|
4
|
+
const corejs = {version: 3, proposals: true};
|
|
5
|
+
|
|
6
|
+
const config = {
|
|
7
|
+
"presets": [
|
|
8
|
+
["@babel/preset-env", {
|
|
9
|
+
"loose": true,
|
|
10
|
+
"modules": 'cjs',
|
|
11
|
+
}],
|
|
12
|
+
"@babel/preset-typescript",
|
|
13
|
+
],
|
|
14
|
+
"plugins": [
|
|
15
|
+
["@babel/plugin-transform-runtime", {
|
|
16
|
+
"corejs": corejs,
|
|
17
|
+
}],
|
|
18
|
+
["@babel/plugin-proposal-decorators", {"legacy": true}],
|
|
19
|
+
"@babel/plugin-proposal-do-expressions",
|
|
20
|
+
['@emotion', {
|
|
21
|
+
sourceMap: false,
|
|
22
|
+
autoLabel: 'never',
|
|
23
|
+
}],
|
|
24
|
+
'@vue/babel-plugin-jsx',
|
|
25
|
+
]
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return config;
|
|
29
|
+
}
|
|
@@ -2,6 +2,7 @@ import { css } from '@emotion/css';
|
|
|
2
2
|
import { theme, setDefault } from '../../styles/theme';
|
|
3
3
|
import { deepDefaults } from '../../styles/utils';
|
|
4
4
|
import '../../styles/global';
|
|
5
|
+
import { cache } from '../utils';
|
|
5
6
|
var defaults = {
|
|
6
7
|
zIndex: 9
|
|
7
8
|
};
|
|
@@ -10,7 +11,8 @@ setDefault(function () {
|
|
|
10
11
|
affix = deepDefaults(theme, {
|
|
11
12
|
affix: defaults
|
|
12
13
|
}).affix;
|
|
14
|
+
makeStyles == null ? void 0 : makeStyles.clearCache();
|
|
13
15
|
});
|
|
14
|
-
export function makeStyles(k) {
|
|
16
|
+
export var makeStyles = cache(function makeStyles(k) {
|
|
15
17
|
return /*#__PURE__*/css("position:relative;z-index:", affix.zIndex, ";");
|
|
16
|
-
}
|
|
18
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
2
2
|
import { createVNode as _$cv, className as _$cn, createElementVNode as _$ce } from 'intact-vue-next';
|
|
3
3
|
import { getRestProps } from '../utils';
|
|
4
|
-
import makeStyles from './styles';
|
|
4
|
+
import { makeStyles } from './styles';
|
|
5
5
|
export default function ($props, $blocks, $__proto__) {
|
|
6
6
|
var _classNameObj;
|
|
7
7
|
|
|
@@ -2,6 +2,7 @@ import { css } from '@emotion/css';
|
|
|
2
2
|
import { theme, setDefault } from '../../styles/theme';
|
|
3
3
|
import { deepDefaults } from '../../styles/utils';
|
|
4
4
|
import '../../styles/global';
|
|
5
|
+
import { cache } from '../utils';
|
|
5
6
|
var defaults = {
|
|
6
7
|
width: '8px',
|
|
7
8
|
|
|
@@ -20,7 +21,8 @@ setDefault(function () {
|
|
|
20
21
|
badge = deepDefaults(theme, {
|
|
21
22
|
badge: defaults
|
|
22
23
|
}).badge;
|
|
24
|
+
makeStyles == null ? void 0 : makeStyles.clearCache();
|
|
23
25
|
});
|
|
24
|
-
export
|
|
26
|
+
export var makeStyles = cache(function makeStyles(k) {
|
|
25
27
|
return /*#__PURE__*/css("display:inline-block;position:relative;vertical-align:middle;>.", k, "-badge-text{display:inline-block;position:absolute;width:", badge.width, ";height:", badge.height, ";border-radius:50%;top:0;right:0;transform:translate(50%, -50%);background:", badge.bgColor, ";font-size:85%;vertical-align:baseline;}&.", k, "-has-text>.", k, "-badge-text{width:auto;height:", badge.textHeight, ";line-height:", badge.textHeight, ";border-radius:calc(", badge.textHeight, " / 2);padding:0 ", badge.textPadding, ";color:", badge.textColor, ";}&.", k, "-alone>.", k, "-badge-text{position:static;transform:none;}");
|
|
26
|
-
}
|
|
28
|
+
});
|
|
@@ -3,7 +3,7 @@ import _spliceInstanceProperty from "@babel/runtime-corejs3/core-js/instance/spl
|
|
|
3
3
|
import { createElementVNode as _$ce, noop as _$no, className as _$cn, createVNode as _$cv } from 'intact-vue-next';
|
|
4
4
|
import { getRestProps, mapChildren } from '../utils';
|
|
5
5
|
import { BreadcrumbItem } from './item';
|
|
6
|
-
import makeStyles from './styles';
|
|
6
|
+
import { makeStyles } from './styles';
|
|
7
7
|
export default function ($props, $blocks, $__proto__) {
|
|
8
8
|
var _classNameObj;
|
|
9
9
|
|
|
@@ -2,6 +2,7 @@ import { css } from '@emotion/css';
|
|
|
2
2
|
import { deepDefaults } from '../../styles/utils';
|
|
3
3
|
import { theme, setDefault } from '../../styles/theme';
|
|
4
4
|
import '../../styles/global';
|
|
5
|
+
import { cache } from '../utils';
|
|
5
6
|
var defaults = {
|
|
6
7
|
fontSize: '14px',
|
|
7
8
|
|
|
@@ -22,7 +23,8 @@ setDefault(function () {
|
|
|
22
23
|
breadcrumb = deepDefaults(theme, {
|
|
23
24
|
breadcrumb: defaults
|
|
24
25
|
}).breadcrumb;
|
|
26
|
+
makeStyles == null ? void 0 : makeStyles.clearCache();
|
|
25
27
|
});
|
|
26
|
-
export
|
|
28
|
+
export var makeStyles = cache(function makeStyles(k) {
|
|
27
29
|
return /*#__PURE__*/css("font-size:", breadcrumb.fontSize, ";display:flex;align-items:center;.", k, "-breadcrumb-item{&:last-of-type .", k, "-breadcrumb-link{font-weight:", breadcrumb.activeFontWeight, ";color:", breadcrumb.activeColor, ";}}.", k, "-breadcrumb-link,.", k, "-breadcrumb-link a{color:", breadcrumb.color, ";}a.", k, "-breadcrumb-link,.", k, "-breadcrumb-link a{cursor:pointer;&:hover{color:", breadcrumb.hoverColor, ";}}.", k, "-breadcrumb-separator{margin:0 ", breadcrumb.gap, ";}");
|
|
28
|
-
}
|
|
30
|
+
});
|
|
@@ -83,5 +83,11 @@ declare const defaults: {
|
|
|
83
83
|
};
|
|
84
84
|
declare let button: typeof defaults;
|
|
85
85
|
export { button };
|
|
86
|
-
export declare
|
|
87
|
-
|
|
86
|
+
export declare const makeButtonStyles: {
|
|
87
|
+
(k: string, iconSide?: string | undefined): string;
|
|
88
|
+
clearCache(): {};
|
|
89
|
+
};
|
|
90
|
+
export declare const makeButtonGroupStyles: {
|
|
91
|
+
(k: string): string;
|
|
92
|
+
clearCache(): {};
|
|
93
|
+
};
|
|
@@ -3,6 +3,7 @@ import { css, cx } from '@emotion/css';
|
|
|
3
3
|
import { theme, setDefault } from '../../styles/theme';
|
|
4
4
|
import { deepDefaults, palette, getLeft, darken } from '../../styles/utils';
|
|
5
5
|
import '../../styles/global';
|
|
6
|
+
import { cache } from '../utils';
|
|
6
7
|
export var types = ['primary', 'warning', 'danger', 'active', 'success'];
|
|
7
8
|
var sizes = ['large', 'small', 'mini'];
|
|
8
9
|
var btnStyles = {
|
|
@@ -230,9 +231,11 @@ setDefault(function () {
|
|
|
230
231
|
button = deepDefaults(theme, {
|
|
231
232
|
button: defaults
|
|
232
233
|
}).button;
|
|
234
|
+
makeButtonStyles == null ? void 0 : makeButtonStyles.clearCache();
|
|
235
|
+
makeButtonGroupStyles == null ? void 0 : makeButtonGroupStyles.clearCache();
|
|
233
236
|
});
|
|
234
237
|
export { button };
|
|
235
|
-
export function makeButtonStyles(k, iconSide) {
|
|
238
|
+
export var makeButtonStyles = cache(function makeButtonStyles(k, iconSide) {
|
|
236
239
|
var _button = button,
|
|
237
240
|
secondary = _button.secondary,
|
|
238
241
|
link = _button.link;
|
|
@@ -259,8 +262,8 @@ export function makeButtonStyles(k, iconSide) {
|
|
|
259
262
|
css(".", k, "-icon{", iconSide === 'right' ? "margin-left: " + button.icon.gap + ";" : "margin-right: " + button.icon.gap + ";", ";}", !iconSide && /*#__PURE__*/css("&.", k, "-loading{&:not(.", k, "-btn-icon){padding-left:calc(", getLeft(button.padding), " + 1em);", _mapInstanceProperty(sizes).call(sizes, function (size) {
|
|
260
263
|
return /*#__PURE__*/css("&.", k, "-", size, "{padding-left:calc(", getLeft(button[size].padding), " + 1em);}");
|
|
261
264
|
}), ";.", k, "-icon-loading{margin-left:-1em;}}}"), ";"));
|
|
262
|
-
}
|
|
263
|
-
export function makeButtonGroupStyles(k) {
|
|
265
|
+
});
|
|
266
|
+
export var makeButtonGroupStyles = cache(function makeButtonGroupStyles(k) {
|
|
264
267
|
return /*#__PURE__*/css("display:inline-flex;align-items:center;flex-wrap:wrap;vertical-align:middle;.", k, "-btn{margin:0;vertical-align:middle;&:hover,&:focus,&.", k, "-active{z-index:1;position:relative;}}&.", k, "-fluid{width:100%;}&:not(.", k, "-vertical){>.", k, "-btn{", _mapInstanceProperty(types).call(types, function (type) {
|
|
265
268
|
if (type === 'active') return;
|
|
266
269
|
var borderColor = button.group[type].borderColor;
|
|
@@ -270,4 +273,4 @@ export function makeButtonGroupStyles(k) {
|
|
|
270
273
|
var borderColor = button.group[type].borderColor;
|
|
271
274
|
return /*#__PURE__*/css("&.", k, "-", type, ":not(:first-child){border-top-color:", borderColor, ";}&.", k, "-", type, ":not(:last-child){border-bottom-color:", borderColor, ";}");
|
|
272
275
|
}), ";&:not(.", k, "-btn-icon){width:100%;}&:not(:first-child){margin-top:-1px;&:not(:last-child){border-radius:0;}}&:not(:only-child):first-child{border-bottom-left-radius:0;border-bottom-right-radius:0;}&:not(:only-child):last-child{border-top-left-radius:0;border-top-right-radius:0;}}}&.", k, "-seperate{gap:8px;>.", k, "-btn{border-radius:", button.borderRadius, "!important;}}");
|
|
273
|
-
}
|
|
276
|
+
});
|
|
@@ -2,6 +2,7 @@ import { css } from '@emotion/css';
|
|
|
2
2
|
import { theme, setDefault } from '../../styles/theme';
|
|
3
3
|
import { deepDefaults } from '../../styles/utils';
|
|
4
4
|
import '../../styles/global';
|
|
5
|
+
import { cache } from '../utils';
|
|
5
6
|
var defaults = {
|
|
6
7
|
border: '1px solid #e5e5e5',
|
|
7
8
|
padding: '16px',
|
|
@@ -23,7 +24,8 @@ setDefault(function () {
|
|
|
23
24
|
card = deepDefaults(theme, {
|
|
24
25
|
card: defaults
|
|
25
26
|
}).card;
|
|
27
|
+
makeStyles == null ? void 0 : makeStyles.clearCache();
|
|
26
28
|
});
|
|
27
|
-
export function makeStyles(k) {
|
|
29
|
+
export var makeStyles = cache(function makeStyles(k) {
|
|
28
30
|
return /*#__PURE__*/css("border-radius:", card.borderRadius, ";background:", card.bgColor, ";.", k, "-card-header{height:", card.headerHeight, ";line-height:", card.headerHeight, ";padding:0 ", card.padding, ";}.", k, "-card-title{font-size:", card.headerFontSize, ";display:inline-block;}.", k, "-card-extra{float:right;height:100%;display:flex;align-items:center;}.", k, "-card-body{padding:0 ", card.padding, " ", card.padding, ";}&.", k, "-shadow{box-shadow:", card.boxShadow, ";}&.", k, "-none{box-shadow:none;}&.", k, "-border{border:", card.border, ";.", k, "-card-header{border-bottom:", card.border, ";}.", k, "-card-body{padding-top:", card.padding, ";}}&.", k, "-no-header{.", k, "-card-body{padding-top:", card.padding, ";}}&.", k, "-card-grid{.", k, "-card-body{display:flex;padding:0;}&.", k, "-border{.", k, "-card-column:not(:last-of-type){border-right:", card.border, ";}}}.", k, "-card-column{display:flex;align-items:center;padding:", card.padding, ";&.", k, "-fluid{flex:1;}&.", k, "-center{justify-content:center;}}");
|
|
29
|
-
}
|
|
31
|
+
});
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import '../../styles/global';
|
|
2
|
-
export declare
|
|
3
|
-
|
|
2
|
+
export declare const makeStyles: {
|
|
3
|
+
(k: string): string;
|
|
4
|
+
clearCache(): {};
|
|
5
|
+
};
|
|
6
|
+
export declare const makeItemStyles: {
|
|
7
|
+
(k: string): string;
|
|
8
|
+
clearCache(): {};
|
|
9
|
+
};
|
|
@@ -2,6 +2,7 @@ import { css } from '@emotion/css';
|
|
|
2
2
|
import { theme, setDefault } from '../../styles/theme';
|
|
3
3
|
import { deepDefaults } from '../../styles/utils';
|
|
4
4
|
import '../../styles/global';
|
|
5
|
+
import { cache } from '../utils';
|
|
5
6
|
var defaults = {
|
|
6
7
|
get transition() {
|
|
7
8
|
return theme.transition.large;
|
|
@@ -38,10 +39,12 @@ setDefault(function () {
|
|
|
38
39
|
carousel = deepDefaults(theme, {
|
|
39
40
|
carousel: defaults
|
|
40
41
|
}).carousel;
|
|
42
|
+
makeStyles == null ? void 0 : makeStyles.clearCache();
|
|
43
|
+
makeItemStyles == null ? void 0 : makeItemStyles.clearCache();
|
|
41
44
|
});
|
|
42
|
-
export function makeStyles(k) {
|
|
45
|
+
export var makeStyles = cache(function makeStyles(k) {
|
|
43
46
|
return /*#__PURE__*/css("height:", carousel.height, ";position:relative;overflow:hidden;.", k, "-carousel-indicator{position:absolute;left:50%;transform:translateX(-50%);bottom:", carousel.indicator.bottom, ";}.", k, "-carousel-dot{height:", carousel.indicator.height, ";float:left;margin:", carousel.dot.margin, ";cursor:pointer;padding-top:", carousel.dot.paddingTop, ";&:before{content:'';display:block;width:", carousel.dot.width, ";height:", carousel.dot.height, ";background:", carousel.dot.bgColor, ";opacity:", carousel.dot.opacity, ";transition:width ", carousel.transition, ";}&.", k, "-active:before{opacity:", carousel.dot.active.opacity, ";width:", carousel.dot.active.width, ";}}.", k, "-carousel-btn{position:absolute;background:", carousel.arrow.bgColor, "!important;top:50%;transform:translateY(-50%);color:", carousel.arrow.color, ";opacity:", carousel.arrow.opacity, ";&:hover{color:#fff;opacity:", carousel.arrow.hoverOpacity, "!important;background:", carousel.arrow.bgColor, ";}&.", k, "-prev{left:", carousel.arrow.left, ";}&.", k, "-next{right:", carousel.arrow.right, ";}}&.", k, "-hover{.", k, "-carousel-btn{opacity:0;}&:hover{.", k, "-carousel-btn{opacity:", carousel.arrow.opacity, ";}}}&.", k, "-never{.", k, "-carousel-btn{display:none;}}&.", k, "-slide{.", k, "-carousel-wrapper{transition:transform ", carousel.transition, ";white-space:nowrap;}}&.", k, "-stop{.", k, "-carousel-wrapper{transition:none;}}&.", k, "-fade{.", k, "-carousel-item{position:absolute;}}");
|
|
44
|
-
}
|
|
45
|
-
export function makeItemStyles(k) {
|
|
47
|
+
});
|
|
48
|
+
export var makeItemStyles = cache(function makeItemStyles(k) {
|
|
46
49
|
return /*#__PURE__*/css("display:inline-block;width:100%;height:100%;&.", k, "-carousel-fade-enter-active,&.", k, "-carousel-fade-leave-active{transition:opacity ", carousel.transition, ";}&.", k, "-carousel-fade-enter-from,&.", k, "-carousel-fade-leave-to{opacity:0;}");
|
|
47
|
-
}
|
|
50
|
+
});
|
|
@@ -18,7 +18,8 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
18
18
|
data = _this$get.data,
|
|
19
19
|
trigger = _this$get.trigger,
|
|
20
20
|
filterable = _this$get.filterable,
|
|
21
|
-
fields = _this$get.fields
|
|
21
|
+
fields = _this$get.fields,
|
|
22
|
+
multiple = _this$get.multiple;
|
|
22
23
|
|
|
23
24
|
var k = this.config.k;
|
|
24
25
|
var baseMenuStyles = makeMenuStyles(k);
|
|
@@ -57,6 +58,7 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
57
58
|
'disabled': getField(item, 'disabled'),
|
|
58
59
|
'className': _$cn((_$cn2 = {}, _$cn2[k + "-cascader-option"] = true, _$cn2[k + "-active"] = showed, _$cn2[k + "-selected"] = selected, _$cn2)),
|
|
59
60
|
'ev-select': onSelect.bind(null, value, level),
|
|
61
|
+
'hideOnSelect': !multiple,
|
|
60
62
|
'children': [getField(item, 'label'), children ? _$cc(Icon, {
|
|
61
63
|
'className': _$cn(k + "-cascader-arrow " + k + "-icon-right")
|
|
62
64
|
}) : undefined]
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import '../../styles/global';
|
|
2
|
-
export declare
|
|
3
|
-
|
|
2
|
+
export declare const makeMenuStyles: {
|
|
3
|
+
(k: string): string;
|
|
4
|
+
clearCache(): {};
|
|
5
|
+
};
|
|
6
|
+
export declare const makeFilterMenuStyles: {
|
|
7
|
+
(k: string): string;
|
|
8
|
+
clearCache(): {};
|
|
9
|
+
};
|
|
@@ -3,6 +3,7 @@ import { css } from '@emotion/css';
|
|
|
3
3
|
import { theme, setDefault } from '../../styles/theme';
|
|
4
4
|
import { deepDefaults } from '../../styles/utils';
|
|
5
5
|
import '../../styles/global';
|
|
6
|
+
import { cache } from '../utils';
|
|
6
7
|
var defaults = {
|
|
7
8
|
width: '140px',
|
|
8
9
|
height: '160px',
|
|
@@ -41,10 +42,12 @@ setDefault(function () {
|
|
|
41
42
|
cascader = deepDefaults(theme, {
|
|
42
43
|
cascader: defaults
|
|
43
44
|
}).cascader;
|
|
45
|
+
makeMenuStyles == null ? void 0 : makeMenuStyles.clearCache();
|
|
46
|
+
makeFilterMenuStyles == null ? void 0 : makeFilterMenuStyles.clearCache();
|
|
44
47
|
});
|
|
45
|
-
export function makeMenuStyles(k) {
|
|
48
|
+
export var makeMenuStyles = cache(function makeMenuStyles(k) {
|
|
46
49
|
return /*#__PURE__*/css("min-width:", cascader.width, "!important;height:", cascader.height, ";overflow:auto;.", k, "-cascader-arrow{float:right;height:100%;margin-left:", cascader.arrowGap, ";line-height:inherit;}.", k, "-cascader-loading{display:block;text-align:center;margin-top:", cascader.loadingGap, ";}.", k, "-cascader-empty{padding:", cascader.empty.padding, ";color:", cascader.empty.color, ";text-align:center;}.", k, "-cascader-option{&.", k, "-selected{color:", cascader.selectedColor, ";}&.", k, "-active{background:", cascader.activeBgColor, ";}}");
|
|
47
|
-
}
|
|
48
|
-
export function makeFilterMenuStyles(k) {
|
|
50
|
+
});
|
|
51
|
+
export var makeFilterMenuStyles = cache(function makeFilterMenuStyles(k) {
|
|
49
52
|
return /*#__PURE__*/css("min-width:", _filterInstanceProperty(cascader).minWidth, "!important;height:auto;max-height:", _filterInstanceProperty(cascader).maxHeight, ";em{font-style:normal;color:", _filterInstanceProperty(cascader).highlightColor, ";}");
|
|
50
|
-
}
|
|
53
|
+
});
|
|
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime-corejs3/helpers/object
|
|
|
3
3
|
var _excluded = ["className", "disabled", "falseValue", "children", "value", "trueValue", "style", "indeterminate", "title"];
|
|
4
4
|
import { createVNode as _$cv, className as _$cn, createUnknownComponentVNode as _$cc, createElementVNode as _$ce } from 'intact-vue-next';
|
|
5
5
|
import { getRestProps } from '../utils';
|
|
6
|
-
import makeStyles from './styles';
|
|
6
|
+
import { makeStyles } from './styles';
|
|
7
7
|
import { Wave } from '../wave';
|
|
8
8
|
export default function ($props, $blocks, $__proto__) {
|
|
9
9
|
var _classNameObj;
|
|
@@ -2,6 +2,7 @@ import { css } from '@emotion/css';
|
|
|
2
2
|
import { theme, setDefault } from '../../styles/theme';
|
|
3
3
|
import { deepDefaults, palette } from '../../styles/utils';
|
|
4
4
|
import '../../styles/global';
|
|
5
|
+
import { cache } from '../utils';
|
|
5
6
|
var defaults = {
|
|
6
7
|
width: '16px',
|
|
7
8
|
|
|
@@ -76,7 +77,8 @@ setDefault(function () {
|
|
|
76
77
|
checkbox = deepDefaults(theme, {
|
|
77
78
|
checkbox: defaults
|
|
78
79
|
}).checkbox;
|
|
80
|
+
makeStyles == null ? void 0 : makeStyles.clearCache();
|
|
79
81
|
});
|
|
80
|
-
export
|
|
82
|
+
export var makeStyles = cache(function makeStyles(k) {
|
|
81
83
|
return /*#__PURE__*/css("display:inline-flex;align-items:center;cursor:pointer;vertical-align:middle;.", k, "-checkbox-wrapper{width:", checkbox.width, ";height:", checkbox.width, ";border:1px solid ", checkbox.borderColor, ";border-radius:", checkbox.borderRadius, ";position:relative;transition:all ", checkbox.transition, ";background:", checkbox.bgColor, ";flex:0 0 auto;&:before{content:\"\";display:block;position:absolute;width:", checkbox.inner.width, ";height:", checkbox.inner.height, ";top:", checkbox.inner.top, ";left:", checkbox.inner.left, ";border:", checkbox.inner.border, ";border-top:0;border-left:0;transform:rotate(45deg) scale(0);transition:all ", checkbox.transition, ";}}&:hover{.", k, "-checkbox-wrapper{border:", checkbox.hoverBorder, ";}}input{width:100%;height:100%;opacity:0;cursor:pointer;position:absolute;left:0;top:0;margin:0;}.", k, "-checkbox-text{margin-left:", checkbox.text.gap, ";flex:0 1 auto;}&.", k, "-checked,&.", k, "-indeterminate{.", k, "-checkbox-wrapper{border-color:", checkbox.checked.borderColor, ";background:", checkbox.checked.bgColor, ";}}&.", k, "-indeterminate{.", k, "-checkbox-wrapper{&:before{transform:rotate(90deg) scale(1);border-bottom:0;}}}&.", k, "-checked{.", k, "-checkbox-wrapper{&:before{transform:rotate(45deg) scale(1);}}}&:focus{outline:none;.", k, "-checkbox-wrapper{border-color:", checkbox.checked.borderColor, ";}}&.", k, "-disabled{color:", checkbox.disabled.color, ";cursor:not-allowed;.", k, "-checkbox-wrapper{border-color:", checkbox.disabled.borderColor, ";background:", checkbox.disabled.bgColor, ";&:before{border-color:", checkbox.disabled.innerColor, ";}}input{cursor:not-allowed;}&.", k, "-checked,&.", k, "-indeterminate{.", k, "-checkbox-wrapper{border-color:", checkbox.disabled.checked.borderColor, ";background:", checkbox.disabled.checked.bgColor, ";}}}");
|
|
82
|
-
}
|
|
84
|
+
});
|
|
@@ -2,7 +2,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
2
2
|
|
|
3
3
|
import { css } from '@emotion/css';
|
|
4
4
|
import '../../styles/global';
|
|
5
|
-
|
|
5
|
+
import { cache } from '../utils';
|
|
6
|
+
export var makeStyles = cache(function makeStyles(k) {
|
|
6
7
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
|
|
7
8
|
name: "1wv4onu",
|
|
8
9
|
styles: "position:relative;height:100%"
|
|
@@ -11,4 +12,4 @@ export function makeStyles(k) {
|
|
|
11
12
|
styles: "position:relative;height:100%",
|
|
12
13
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
13
14
|
});
|
|
14
|
-
}
|
|
15
|
+
});
|
|
@@ -16,7 +16,7 @@ describe('Collapse', function () {
|
|
|
16
16
|
case 0:
|
|
17
17
|
this.timeout(0);
|
|
18
18
|
_mount = mount(BasicDemo), instance = _mount[0], element = _mount[1];
|
|
19
|
-
_element$querySelecto = element.querySelectorAll(':scope > .k-collapse-title'), title1 = _element$querySelecto[0], title2 = _element$querySelecto[1], title3 = _element$querySelecto[2];
|
|
19
|
+
_element$querySelecto = element.querySelectorAll(':scope > .k-collapse-item > .k-collapse-title'), title1 = _element$querySelecto[0], title2 = _element$querySelecto[1], title3 = _element$querySelecto[2];
|
|
20
20
|
title2.click();
|
|
21
21
|
_context.next = 6;
|
|
22
22
|
return wait(500);
|
|
@@ -27,7 +27,7 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
27
27
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-collapse-item"] = true, _classNameObj[makeItemStyles(k)] = true, _classNameObj[className] = className, _classNameObj[k + "-active"] = isActive, _classNameObj[k + "-disabled"] = disabled, _classNameObj);
|
|
28
28
|
return _$cv('div', _extends({
|
|
29
29
|
'className': _$cn(classNameObj)
|
|
30
|
-
}, getRestProps(this)), [_$ce(2, 'div', [(_$blocks['title'] = function ($super) {
|
|
30
|
+
}, getRestProps(this)), [_$ce(2, 'div', [_$ce(2, 'div', (_$blocks['title'] = function ($super) {
|
|
31
31
|
return title;
|
|
32
32
|
}, __$blocks['title'] = function ($super, data) {
|
|
33
33
|
var block = $blocks['title'];
|
|
@@ -37,11 +37,11 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
40
|
-
}, __$blocks['title'](_$no)), _$cc(Icon, {
|
|
40
|
+
}, __$blocks['title'](_$no)), 0, _$cn(k + "-collapse-title-wrapper")), _$cc(Icon, {
|
|
41
41
|
'className': _$cn((_$cn2 = {}, _$cn2[k + "-collapse-arrow"] = true, _$cn2[k + "-icon-right"] = true, _$cn2)),
|
|
42
42
|
'hoverable': true,
|
|
43
43
|
'disabled': disabled
|
|
44
|
-
})],
|
|
44
|
+
})], 4, _$cn(k + "-collapse-title"), {
|
|
45
45
|
'ev-click': this.toggle
|
|
46
46
|
}), _$cc(Transition, _extends({
|
|
47
47
|
'show': isActive
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import '../../styles/global';
|
|
2
|
-
export declare
|
|
3
|
-
|
|
2
|
+
export declare const makeStyles: {
|
|
3
|
+
(k: string): string;
|
|
4
|
+
clearCache(): {};
|
|
5
|
+
};
|
|
6
|
+
export declare const makeItemStyles: {
|
|
7
|
+
(k: string): string;
|
|
8
|
+
clearCache(): {};
|
|
9
|
+
};
|
|
@@ -2,13 +2,13 @@ import { deepDefaults } from '../../styles/utils';
|
|
|
2
2
|
import { theme, setDefault } from '../../styles/theme';
|
|
3
3
|
import { css } from '@emotion/css';
|
|
4
4
|
import '../../styles/global';
|
|
5
|
+
import { cache } from '../utils';
|
|
5
6
|
var defaults = {
|
|
6
7
|
get transition() {
|
|
7
8
|
return theme.transition.large;
|
|
8
9
|
},
|
|
9
10
|
|
|
10
11
|
fontSize: '12px',
|
|
11
|
-
titleMarginRight: '8px',
|
|
12
12
|
borderPadding: '0 24px',
|
|
13
13
|
collBorder: '1px solid #eee',
|
|
14
14
|
|
|
@@ -18,7 +18,8 @@ var defaults = {
|
|
|
18
18
|
|
|
19
19
|
item: {
|
|
20
20
|
borderBottom: '1px solid #e5e5e5',
|
|
21
|
-
titleHeight: '40px'
|
|
21
|
+
titleHeight: '40px',
|
|
22
|
+
titleGap: '8px'
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
25
|
var collapse;
|
|
@@ -26,11 +27,13 @@ setDefault(function () {
|
|
|
26
27
|
collapse = deepDefaults(theme, {
|
|
27
28
|
collapse: defaults
|
|
28
29
|
}).collapse;
|
|
30
|
+
makeStyles == null ? void 0 : makeStyles.clearCache();
|
|
31
|
+
makeItemStyles == null ? void 0 : makeItemStyles.clearCache();
|
|
29
32
|
});
|
|
30
|
-
export function makeStyles(k) {
|
|
31
|
-
return /*#__PURE__*/css("font-size:", collapse.fontSize, ";&.", k, "-left{
|
|
32
|
-
}
|
|
33
|
-
export function makeItemStyles(k) {
|
|
33
|
+
export var makeStyles = cache(function makeStyles(k) {
|
|
34
|
+
return /*#__PURE__*/css("font-size:", collapse.fontSize, ";&.", k, "-left{>.", k, "-collapse-item>.", k, "-collapse-title{flex-direction:row-reverse;}}&.", k, "-border{border-radius:", collapse.borderRadius, ";padding:", collapse.borderPadding, ";border:", collapse.collBorder, ";}");
|
|
35
|
+
});
|
|
36
|
+
export var makeItemStyles = cache(function makeItemStyles(k) {
|
|
34
37
|
var collapseItem = collapse.item;
|
|
35
|
-
return /*#__PURE__*/css("border-bottom:", collapseItem.borderBottom, ";&:last-of-type{border-bottom-color:transparent;}>.", k, "-collapse-title{cursor:pointer;font-weight:bold;height:", collapseItem.titleHeight, ";
|
|
36
|
-
}
|
|
38
|
+
return /*#__PURE__*/css("border-bottom:", collapseItem.borderBottom, ";&:last-of-type{border-bottom-color:transparent;}>.", k, "-collapse-title{cursor:pointer;font-weight:bold;height:", collapseItem.titleHeight, ";transition:color ", collapse.transition, ";display:flex;align-items:center;gap:", collapseItem.titleGap, ";.", k, "-collapse-title-wrapper{flex:1;}.", k, "-collapse-arrow{transition:transform ", collapse.transition, ";}}&:not(.", k, "-disabled){>.", k, "-collapse-title{&:hover{color:", theme.color.primary, ";}}}&.", k, "-active{>.", k, "-collapse-title .", k, "-collapse-arrow{transform:rotate(90deg);}}&.", k, "-disabled{color:", theme.color.disabledBorder, ";>.", k, "-collapse-title{cursor:not-allowed;}}");
|
|
39
|
+
});
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import '../../styles/global';
|
|
2
2
|
import { ColorFormats } from 'tinycolor2';
|
|
3
|
-
export declare
|
|
4
|
-
|
|
3
|
+
export declare const makeStyles: {
|
|
4
|
+
(k: string): string;
|
|
5
|
+
clearCache(): {};
|
|
6
|
+
};
|
|
7
|
+
export declare const makePanelStyles: {
|
|
8
|
+
(k: string): string;
|
|
9
|
+
clearCache(): {};
|
|
10
|
+
};
|
|
5
11
|
export declare function makeAlphaBgColor({ r, g, b }: ColorFormats.RGBA, k: string): string;
|
|
@@ -3,6 +3,7 @@ import { css } from '@emotion/css';
|
|
|
3
3
|
import { theme, setDefault } from '../../styles/theme';
|
|
4
4
|
import { deepDefaults } from '../../styles/utils';
|
|
5
5
|
import '../../styles/global';
|
|
6
|
+
import { cache } from '../utils';
|
|
6
7
|
var defaults = {
|
|
7
8
|
get height() {
|
|
8
9
|
return theme.default.height;
|
|
@@ -114,17 +115,19 @@ setDefault(function () {
|
|
|
114
115
|
colorpicker = deepDefaults(theme, {
|
|
115
116
|
colorpicker: defaults
|
|
116
117
|
}).colorpicker;
|
|
118
|
+
makeStyles == null ? void 0 : makeStyles.clearCache();
|
|
119
|
+
makePanelStyles == null ? void 0 : makePanelStyles.clearCache();
|
|
117
120
|
});
|
|
118
121
|
var _sizes = ['large', 'small', 'mini'];
|
|
119
|
-
export function makeStyles(k) {
|
|
122
|
+
export var makeStyles = cache(function makeStyles(k) {
|
|
120
123
|
return /*#__PURE__*/css("display:inline-block;vertical-align:middle;.", k, "-colorpicker-color{height:", colorpicker.height, ";width:", colorpicker.width, ";border:", colorpicker.border, ";cursor:", colorpicker.cursor, ";border-radius:", colorpicker.borderRadius, ";background:", colorpicker.bgColor, ";padding:", colorpicker.padding, ";}.", k, "-colorpicker-inner{border-radius:", colorpicker.innerBorderRadius, ";height:100%;}", _mapInstanceProperty(_sizes).call(_sizes, function (size) {
|
|
121
124
|
var styles = colorpicker[size];
|
|
122
125
|
return /*#__PURE__*/css("&.", k, "-", size, "{.", k, "-colorpicker-color{height:", styles.height, ";width:", styles.width, ";", styles.padding && "padding: " + styles.padding, ";}}");
|
|
123
126
|
}), "&.", k, "-disabled{.", k, "-colorpicker-color{background:", colorpicker.disabled.bgColor, ";border-color:", colorpicker.disabled.borderColor, ";cursor:", colorpicker.disabled.cursor, ";}}");
|
|
124
|
-
}
|
|
125
|
-
export function makePanelStyles(k) {
|
|
127
|
+
});
|
|
128
|
+
export var makePanelStyles = cache(function makePanelStyles(k) {
|
|
126
129
|
return /*#__PURE__*/css("padding:", colorpicker.panel.padding, ";width:", colorpicker.panel.width, ";.", k, "-colorpicker-saturation{height:", colorpicker.panel.saturationHeight, ";position:relative;overflow:hidden;user-select:none;}.", k, "-colorpicker-white,.", k, "-colorpicker-black{position:absolute;width:100%;height:100%;}.", k, "-colorpicker-white{background:linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));}.", k, "-colorpicker-black{background:linear-gradient(0, #000, rgba(0, 0, 0, 0));}.", k, "-colorpicker-pointer{position:absolute;}.", k, "-colorpicker-circle{width:", colorpicker.panel.circle.width, ";height:", colorpicker.panel.circle.width, ";box-shadow:", colorpicker.panel.circle.boxShadow, ";border-radius:50%;transform:translate(-50%, -50%);}.", k, "-colorpicker-controls{display:flex;margin-top:", colorpicker.panel.gutter, ";}.", k, "-colorpicker-sliders{flex:1;.", k, "-slider{margin-bottom:", colorpicker.panel.gutter, ";}.", k, "-slider-track-wrapper,.", k, "-slider-track{height:", colorpicker.slider.height, ";}.", k, "-slider-track-wrapper{cursor:", colorpicker.slider.cursor, ";}.", k, "-slider-track{border-radius:", colorpicker.slider.borderRadius, ";margin:0 calc(", colorpicker.slider.thumb.width, " / 2 + 1px);background-color:transparent;}.", k, "-slider-bar{background:transparent;}.", k, "-slider-thumb{height:", colorpicker.slider.thumb.height, ";width:", colorpicker.slider.thumb.width, ";border:", colorpicker.slider.thumb.border, ";border-radius:", colorpicker.slider.thumb.borderRadius, ";box-shadow:", colorpicker.slider.thumb.boxShadow, ";&:focus,&:hover{transform:", colorpicker.slider.thumb.hover.transform, ";cursor:", colorpicker.slider.thumb.hover.cursor, ";background-color:", colorpicker.slider.thumb.hover.bgColor, ";}}}.", k, "-colorpicker-hue{.", k, "-slider-track-wrapper{background:linear-gradient(90deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red);}}.", k, "-colorpicker-alpha{background-size:contain;}.", k, "-colorpicker-alpha-bg{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMElEQVQ4T2N89uzZfwY8QFJSEp80A+OoAcMiDP7//483HTx//hx/Ohg1gIFx6IcBALl+VXknOCvFAAAAAElFTkSuQmCC\");}.", k, "-colorpicker-color-wrapper{width:", colorpicker.color.width, ";height:", colorpicker.color.height, ";border-radius:", colorpicker.color.borderRadius, ";margin-left:", colorpicker.panel.gutter, ";overflow:hidden;}.", k, "-colorpicker-color{height:100%;box-shadow:", colorpicker.color.boxShadow, ";}.", k, "-colorpicker-input.", k, "-small{.", k, "-input-inner{height:", colorpicker.input.height, ";line-height:", colorpicker.input.height, ";padding:", colorpicker.input.padding, ";font-size:", colorpicker.panel.fontSize, ";}}.", k, "-colorpicker-text{text-align:center;font-size:", colorpicker.panel.fontSize, ";padding:", colorpicker.input.textPadding, ";}.", k, "-colorpicker-presets{border-top:", colorpicker.presets.delimiter, ";margin:0 -", colorpicker.panel.padding, ";overflow:hidden;}.", k, "-colorpicker-preset-color-wrapper{float:left;border-radius:", colorpicker.presets.borderRadius, ";cursor:pointer;overflow:hidden;margin:", colorpicker.panel.padding, " 0 0 ", colorpicker.panel.padding, ";}.", k, "-colorpicker-preset-color{width:", colorpicker.presets.width, ";height:", colorpicker.presets.height, ";box-shadow:", colorpicker.presets.boxShadow, ";}.", k, "-colorpicker-drag{cursor:ew-resize;user-select:none;}");
|
|
127
|
-
}
|
|
130
|
+
});
|
|
128
131
|
export function makeAlphaBgColor(_ref, k) {
|
|
129
132
|
var r = _ref.r,
|
|
130
133
|
g = _ref.g,
|
|
@@ -2,7 +2,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
2
2
|
|
|
3
3
|
import { css } from '@emotion/css';
|
|
4
4
|
import '../../styles/global';
|
|
5
|
-
|
|
5
|
+
import { cache } from '../utils';
|
|
6
|
+
export var makeStyles = cache(function makeStyles(k) {
|
|
6
7
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
|
|
7
8
|
name: "t3aops",
|
|
8
9
|
styles: "cursor:pointer;vertical-align:middle"
|
|
@@ -11,4 +12,4 @@ export function makeStyles(k) {
|
|
|
11
12
|
styles: "cursor:pointer;vertical-align:middle",
|
|
12
13
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
13
14
|
});
|
|
14
|
-
}
|
|
15
|
+
});
|
|
@@ -46,6 +46,15 @@ declare const defaults: {
|
|
|
46
46
|
};
|
|
47
47
|
declare let datepicker: typeof defaults;
|
|
48
48
|
export { datepicker };
|
|
49
|
-
export declare
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
export declare const makePanelStyles: {
|
|
50
|
+
(k: string): string;
|
|
51
|
+
clearCache(): {};
|
|
52
|
+
};
|
|
53
|
+
export declare const makeCalendarStyles: {
|
|
54
|
+
(k: string): string;
|
|
55
|
+
clearCache(): {};
|
|
56
|
+
};
|
|
57
|
+
export declare const makeTimeStyles: {
|
|
58
|
+
(k: string): string;
|
|
59
|
+
clearCache(): {};
|
|
60
|
+
};
|