@king-design/react 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.
Files changed (146) hide show
  1. package/__tests__/__snapshots__/React Demos.md +44 -38
  2. package/__tests__/components/cascader.spec.tsx +1 -2
  3. package/components/affix/styles.d.ts +4 -1
  4. package/components/affix/styles.js +4 -2
  5. package/components/badge/index.vdt.js +1 -1
  6. package/components/badge/styles.d.ts +4 -1
  7. package/components/badge/styles.js +4 -2
  8. package/components/breadcrumb/index.vdt.js +1 -1
  9. package/components/breadcrumb/styles.d.ts +4 -1
  10. package/components/breadcrumb/styles.js +4 -2
  11. package/components/button/styles.d.ts +8 -2
  12. package/components/button/styles.js +7 -4
  13. package/components/card/styles.d.ts +4 -1
  14. package/components/card/styles.js +4 -2
  15. package/components/carousel/styles.d.ts +8 -2
  16. package/components/carousel/styles.js +7 -4
  17. package/components/cascader/index.vdt.js +3 -1
  18. package/components/cascader/styles.d.ts +8 -2
  19. package/components/cascader/styles.js +7 -4
  20. package/components/checkbox/index.vdt.js +1 -1
  21. package/components/checkbox/styles.d.ts +4 -1
  22. package/components/checkbox/styles.js +4 -2
  23. package/components/code/styles.d.ts +4 -1
  24. package/components/code/styles.js +3 -2
  25. package/components/collapse/index.spec.js +1 -1
  26. package/components/collapse/item.vdt.js +3 -3
  27. package/components/collapse/styles.d.ts +8 -2
  28. package/components/collapse/styles.js +11 -8
  29. package/components/colorpicker/styles.d.ts +8 -2
  30. package/components/colorpicker/styles.js +7 -4
  31. package/components/copy/styles.d.ts +4 -1
  32. package/components/copy/styles.js +3 -2
  33. package/components/datepicker/styles.d.ts +12 -3
  34. package/components/datepicker/styles.js +10 -6
  35. package/components/diagram/styles.d.ts +4 -1
  36. package/components/diagram/styles.js +3 -2
  37. package/components/dialog/index.spec.js +61 -1
  38. package/components/dialog/styles.d.ts +12 -3
  39. package/components/dialog/styles.js +10 -6
  40. package/components/dialog/usePosition.js +7 -0
  41. package/components/drawer/styles.d.ts +4 -1
  42. package/components/drawer/styles.js +4 -2
  43. package/components/dropdown/styles.d.ts +8 -2
  44. package/components/dropdown/styles.js +7 -4
  45. package/components/dropdown/usePosition.js +14 -11
  46. package/components/editable/styles.d.ts +4 -1
  47. package/components/editable/styles.js +4 -2
  48. package/components/form/styles.d.ts +8 -2
  49. package/components/form/styles.js +7 -4
  50. package/components/grid/styles.d.ts +8 -2
  51. package/components/grid/styles.js +12 -13
  52. package/components/icon/index.vdt.js +1 -1
  53. package/components/icon/styles.d.ts +4 -1
  54. package/components/icon/styles.js +4 -2
  55. package/components/input/styles.d.ts +8 -2
  56. package/components/input/styles.js +7 -4
  57. package/components/layout/styles.d.ts +16 -4
  58. package/components/layout/styles.js +13 -8
  59. package/components/menu/styles.d.ts +16 -4
  60. package/components/menu/styles.js +14 -9
  61. package/components/message/styles.d.ts +8 -2
  62. package/components/message/styles.js +7 -4
  63. package/components/pagination/styles.d.ts +4 -1
  64. package/components/pagination/styles.js +4 -2
  65. package/components/popover/content.vdt.js +1 -1
  66. package/components/popover/styles.d.ts +4 -1
  67. package/components/popover/styles.js +4 -2
  68. package/components/portal.js +15 -3
  69. package/components/progress/styles.d.ts +4 -1
  70. package/components/progress/styles.js +4 -2
  71. package/components/radio/styles.d.ts +4 -1
  72. package/components/radio/styles.js +4 -2
  73. package/components/rate/styles.d.ts +4 -1
  74. package/components/rate/styles.js +4 -2
  75. package/components/scrollSelect/styles.d.ts +4 -1
  76. package/components/scrollSelect/styles.js +4 -2
  77. package/components/select/base.js +3 -1
  78. package/components/select/base.vdt.js +1 -1
  79. package/components/select/styles.d.ts +12 -3
  80. package/components/select/styles.js +10 -6
  81. package/components/skeleton/styles.d.ts +8 -2
  82. package/components/skeleton/styles.js +7 -4
  83. package/components/slider/styles.d.ts +4 -1
  84. package/components/slider/styles.js +4 -2
  85. package/components/spin/styles.d.ts +4 -1
  86. package/components/spin/styles.js +4 -2
  87. package/components/spinner/styles.d.ts +4 -1
  88. package/components/spinner/styles.js +4 -2
  89. package/components/split/styles.d.ts +4 -1
  90. package/components/split/styles.js +4 -2
  91. package/components/steps/index.vdt.js +2 -2
  92. package/components/steps/styles.d.ts +4 -3
  93. package/components/steps/styles.js +9 -4
  94. package/components/switch/styles.d.ts +4 -1
  95. package/components/switch/styles.js +4 -2
  96. package/components/table/column.d.ts +1 -0
  97. package/components/table/column.js +2 -1
  98. package/components/table/column.vdt.js +9 -3
  99. package/components/table/index.spec.js +18 -11
  100. package/components/table/styles.d.ts +8 -2
  101. package/components/table/styles.js +8 -5
  102. package/components/table/table.vdt.js +3 -4
  103. package/components/table/useColumns.js +1 -0
  104. package/components/table/useFixedColumns.d.ts +3 -3
  105. package/components/table/useFixedColumns.js +27 -46
  106. package/components/table/useGroup.d.ts +1 -0
  107. package/components/table/useGroup.js +11 -1
  108. package/components/table/useResizable.js +41 -5
  109. package/components/table/useWidth.js +3 -0
  110. package/components/tabs/styles.d.ts +4 -1
  111. package/components/tabs/styles.js +4 -2
  112. package/components/tag/styles.d.ts +8 -2
  113. package/components/tag/styles.js +7 -4
  114. package/components/timeline/styles.d.ts +8 -2
  115. package/components/timeline/styles.js +7 -5
  116. package/components/timepicker/styles.d.ts +4 -1
  117. package/components/timepicker/styles.js +4 -2
  118. package/components/tip/styles.d.ts +4 -1
  119. package/components/tip/styles.js +4 -2
  120. package/components/tooltip/content.vdt.js +1 -1
  121. package/components/tooltip/styles.d.ts +4 -1
  122. package/components/tooltip/styles.js +4 -2
  123. package/components/transfer/styles.d.ts +4 -1
  124. package/components/transfer/styles.js +4 -2
  125. package/components/tree/index.spec.js +13 -1
  126. package/components/tree/styles.d.ts +4 -1
  127. package/components/tree/styles.js +4 -2
  128. package/components/tree/useChecked.js +4 -0
  129. package/components/treeSelect/styles.d.ts +4 -1
  130. package/components/treeSelect/styles.js +4 -2
  131. package/components/upload/styles.d.ts +8 -2
  132. package/components/upload/styles.js +7 -4
  133. package/components/upload/useFiles.js +3 -2
  134. package/components/utils.d.ts +10 -2
  135. package/components/utils.js +9 -2
  136. package/components/wave/styles.d.ts +4 -1
  137. package/components/wave/styles.js +4 -2
  138. package/i18n/en-US.d.ts +1 -0
  139. package/i18n/en-US.js +1 -0
  140. package/index.d.ts +2 -2
  141. package/index.js +2 -2
  142. package/package.json +2 -2
  143. package/styles/fonts/iconfont.d.ts +4 -1
  144. package/styles/fonts/iconfont.js +1 -1
  145. package/styles/global.js +7 -2
  146. package/yarn-error.log +205 -221
@@ -17,13 +17,12 @@ describe('Cascader', () => {
17
17
 
18
18
  it('should hide all menu on selected', async () => {
19
19
  function App() {
20
- const [value, setValue] = useState<string[][]>([]);
20
+ const [value, setValue] = useState<string[]>([]);
21
21
  return (
22
22
  <div>
23
23
  <Cascader
24
24
  data={[{value: 'a', label: 'a', children: [{value: 'b', label: 'b'}]}]}
25
25
  value={value}
26
- multiple
27
26
  filterable
28
27
  onChangeValue={(v) => {
29
28
  setValue(v!);
@@ -1,2 +1,5 @@
1
1
  import '../../styles/global';
2
- export declare function makeStyles(k: string): string;
2
+ export declare const makeStyles: {
3
+ (k: string): string;
4
+ clearCache(): {};
5
+ };
@@ -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-react';
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
 
@@ -1,2 +1,5 @@
1
1
  import '../../styles/global';
2
- export default function makeStyles(k: string): string;
2
+ export declare const makeStyles: {
3
+ (k: string): string;
4
+ clearCache(): {};
5
+ };
@@ -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 default function makeStyles(k) {
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-react';
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
 
@@ -1,2 +1,5 @@
1
1
  import '../../styles/global';
2
- export default function makeStyles(k: string): string;
2
+ export declare const makeStyles: {
3
+ (k: string): string;
4
+ clearCache(): {};
5
+ };
@@ -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 default function makeStyles(k) {
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 function makeButtonStyles(k: string, iconSide?: string): string;
87
- export declare function makeButtonGroupStyles(k: string): string;
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
+ });
@@ -1,2 +1,5 @@
1
1
  import '../../styles/global';
2
- export declare function makeStyles(k: string): string;
2
+ export declare const makeStyles: {
3
+ (k: string): string;
4
+ clearCache(): {};
5
+ };
@@ -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 function makeStyles(k: string): string;
3
- export declare function makeItemStyles(k: string): string;
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 function makeMenuStyles(k: string): string;
3
- export declare function makeFilterMenuStyles(k: string): string;
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-react';
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;
@@ -1,2 +1,5 @@
1
1
  import '../../styles/global';
2
- export default function makeStyles(k: string): string;
2
+ export declare const makeStyles: {
3
+ (k: string): string;
4
+ clearCache(): {};
5
+ };
@@ -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 default function makeStyles(k) {
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
+ });
@@ -1,2 +1,5 @@
1
1
  import '../../styles/global';
2
- export declare function makeStyles(k: string): string;
2
+ export declare const makeStyles: {
3
+ (k: string): string;
4
+ clearCache(): {};
5
+ };
@@ -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
- export function makeStyles(k) {
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
- })], 0, _$cn(k + "-collapse-title"), {
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 function makeStyles(k: string): string;
3
- export declare function makeItemStyles(k: string): string;
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{.", k, "-collapse-arrow{float:left;margin-right:", collapse.titleMarginRight, ";}}&.", k, "-border{border-radius:", collapse.borderRadius, ";padding:", collapse.borderPadding, ";border:", collapse.collBorder, ";}");
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, ";line-height:", collapseItem.titleHeight, ";transition:color ", collapse.transition, ";.", k, "-collapse-arrow{float:right;transition:transform ", collapse.transition, ";line-height:", collapseItem.titleHeight, ";height:", collapseItem.titleHeight, ";}}&: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;}}");
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 function makeStyles(k: string): string;
4
- export declare function makePanelStyles(k: string): string;
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,
@@ -1,2 +1,5 @@
1
1
  import '../../styles/global';
2
- export declare function makeStyles(k: string): string;
2
+ export declare const makeStyles: {
3
+ (k: string): string;
4
+ clearCache(): {};
5
+ };
@@ -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
- export function makeStyles(k) {
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 function makePanelStyles(k: string): string;
50
- export declare function makeCalendarStyles(k: string): string;
51
- export declare function makeTimeStyles(k: string): string;
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
+ };
@@ -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: "300px",
7
8
  padding: "16px 16px 4px",
@@ -77,14 +78,17 @@ setDefault(function () {
77
78
  datepicker = deepDefaults(theme, {
78
79
  datepicker: defaults
79
80
  }).datepicker;
81
+ makePanelStyles == null ? void 0 : makePanelStyles.clearCache();
82
+ makeCalendarStyles == null ? void 0 : makeCalendarStyles.clearCache();
83
+ makeTimeStyles == null ? void 0 : makeTimeStyles.clearCache();
80
84
  });
81
85
  export { datepicker };
82
- export function makePanelStyles(k) {
86
+ export var makePanelStyles = cache(function makePanelStyles(k) {
83
87
  return /*#__PURE__*/css("display:flex;.", k, "-datepicker-shortcuts{width:", datepicker.shortcuts.width, ";padding:", datepicker.shortcuts.padding, ";border-right:", datepicker.border, ";}.", k, "-datepicker-shortcut{height:", datepicker.shortcuts.shortcut.height, ";line-height:", datepicker.shortcuts.shortcut.height, ";padding:", datepicker.shortcuts.shortcut.padding, ";cursor:pointer;&:hover{background:", datepicker.shortcuts.shortcut.hoverBgcolor, ";}}.", k, "-datepicker-calendars{display:flex;}.", k, "-datepicker-calendar-wrapper{&:nth-child(2){border-left:", datepicker.border, ";}.", k, "-tabs{border:none;.", k, "-tabs-wrapper{float:none;}.", k, "-tab{width:50%;}}}.", k, "-datepicker-footer{border-top:", datepicker.border, ";padding:", datepicker.footer.padding, ";text-align:right;}");
84
- }
85
- export function makeCalendarStyles(k) {
88
+ });
89
+ export var makeCalendarStyles = cache(function makeCalendarStyles(k) {
86
90
  return /*#__PURE__*/css("padding:", datepicker.padding, ";width:", datepicker.width, ";position:relative;.", k, "-datepicker-month{display:flex;padding:", datepicker.month.padding, ";}.", k, "-prev .", k, "-icon,.", k, "-next .", k, "-icon{margin:0 -5px!important;}.", k, "-month-values{flex:1;font-size:14px;text-align:center;cursor:pointer;overflow:hidden;position:relative;}.", k, "-month-value{margin:0 ", datepicker.month.valueGap, ";line-height:", theme.small.height, ";&:hover{color:", theme.color.primary, ";}},.", k, "-weekdays{display:flex;border-bottom:", datepicker.border, ";padding:", datepicker.weekday.padding, ";}.", k, "-weekday{flex:1;text-align:center;}.", k, "-calendar-item{text-align:center;margin:", datepicker.item.gutter, ";aspect-ratio:1;display:flex;align-items:center;cursor:pointer;position:relative;border-radius:", datepicker.item.borderRadius, ";.", k, "-value{border-radius:", datepicker.item.borderRadius, ";}&.", k, "-hover{background:", datepicker.item.hoverBgColor, ";}&.", k, "-exceed{color:", datepicker.item.exceedColor, ";}&.", k, "-today .", k, "-value{border:", datepicker.item.todayBorder, ";}&.", k, "-active{background:", datepicker.item.active.bgColor, ";color:", datepicker.item.active.color, ";&.", k, "-today .", k, "-value{border-color:", datepicker.item.active.todayBorderColor, ";}}&.", k, "-disabled{color:", datepicker.item.disabled.color, ";cursor:not-allowed;background:", datepicker.item.disabled.hoverBgColor, ";}&.", k, "-in-range:after{content:'';display:block;position:absolute;box-sizing:content-box;background:", datepicker.item.range.bgColor, ";width:100%;height:100%;left:-", datepicker.item.gutter, ";padding:0 ", datepicker.item.gutter, ";z-index:-1;}.", k, "-value{flex:1;display:flex;align-items:center;justify-content:center;height:100%;}}.", k, "-days{display:grid;grid-template-columns:repeat(7, 1fr);}.", k, "-years{display:grid;grid-template-columns:repeat(4, 1fr);}");
87
- }
88
- export function makeTimeStyles(k) {
91
+ });
92
+ export var makeTimeStyles = cache(function makeTimeStyles(k) {
89
93
  return /*#__PURE__*/css("display:flex;padding:", datepicker.padding, ";width:", datepicker.width, ";position:relative;.", k, "-scroll-select{flex:1;height:305px;}");
90
- }
94
+ });
@@ -1,2 +1,5 @@
1
1
  import '../../styles/global';
2
- export declare function makeStyles(k: string): string;
2
+ export declare const makeStyles: {
3
+ (k: string): string;
4
+ clearCache(): {};
5
+ };