@type-dom/ui 0.4.0 → 0.4.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 (154) hide show
  1. package/README.md +134 -134
  2. package/dist/package.json +1 -1
  3. package/dist/src/components/data/td-progress/td-progress.class.js +5 -5
  4. package/dist/src/components/data/td-statistic/td-statistic.class.d.ts +2 -2
  5. package/dist/src/components/data/td-statistic/td-statistic.class.d.ts.map +1 -1
  6. package/dist/src/components/feedback/td-message/method.d.ts +1 -1
  7. package/dist/src/components/feedback/td-message/method.d.ts.map +1 -1
  8. package/dist/src/components/feedback/td-message/method.js +24 -7
  9. package/dist/src/components/feedback/td-message/method.js.map +1 -1
  10. package/dist/src/components/feedback/td-tooltip/td-tooltip.const.d.ts.map +1 -1
  11. package/dist/src/components/form/td-date-picker/composables/use-shortcut.d.ts +1 -1
  12. package/dist/src/components/form/td-date-picker/composables/use-shortcut.d.ts.map +1 -1
  13. package/dist/src/components/form/td-date-picker/composables/use-shortcut.js +1 -1
  14. package/dist/src/components/form/td-date-picker/composables/use-shortcut.js.map +1 -1
  15. package/dist/src/components/form/td-date-picker/utils.d.ts +1 -1
  16. package/dist/src/components/form/td-date-picker/utils.d.ts.map +1 -1
  17. package/dist/src/components/form/td-date-picker/utils.js +1 -1
  18. package/dist/src/components/form/td-date-picker/utils.js.map +1 -1
  19. package/dist/src/components/form/td-time-picker/time-picker-com/panel-time-pick.class.js +1 -1
  20. package/dist/src/components/form/td-time-picker/time-picker-com/panel-time-pick.class.js.map +1 -1
  21. package/dist/src/components/form/td-time-picker/utils.d.ts +1 -1
  22. package/dist/src/components/form/td-time-picker/utils.d.ts.map +1 -1
  23. package/dist/src/components/form/td-time-picker/utils.js +1 -1
  24. package/dist/src/components/form/td-time-picker/utils.js.map +1 -1
  25. package/dist/src/hooks/use-deprecated/index.js +2 -2
  26. package/dist/src/hooks/use-id/index.js +4 -4
  27. package/dist/src/hooks/use-z-index/index.js +1 -1
  28. package/dist/src/theme-chalk/affix.scss +7 -7
  29. package/dist/src/theme-chalk/alert.scss +115 -115
  30. package/dist/src/theme-chalk/anchor-link.scss +41 -41
  31. package/dist/src/theme-chalk/anchor.scss +88 -88
  32. package/dist/src/theme-chalk/aside.scss +8 -8
  33. package/dist/src/theme-chalk/autocomplete.scss +89 -89
  34. package/dist/src/theme-chalk/avatar.scss +55 -55
  35. package/dist/src/theme-chalk/backtop.scss +29 -29
  36. package/dist/src/theme-chalk/badge.scss +58 -58
  37. package/dist/src/theme-chalk/base.scss +3 -3
  38. package/dist/src/theme-chalk/breadcrumb.scss +62 -62
  39. package/dist/src/theme-chalk/button-group.scss +80 -80
  40. package/dist/src/theme-chalk/button.scss +304 -304
  41. package/dist/src/theme-chalk/calendar.scss +80 -80
  42. package/dist/src/theme-chalk/card.scss +45 -45
  43. package/dist/src/theme-chalk/carousel-item.scss +58 -58
  44. package/dist/src/theme-chalk/carousel.scss +188 -188
  45. package/dist/src/theme-chalk/cascader-panel.scss +138 -138
  46. package/dist/src/theme-chalk/cascader.scss +247 -247
  47. package/dist/src/theme-chalk/check-tag.scss +60 -60
  48. package/dist/src/theme-chalk/checkbox-button.scss +140 -140
  49. package/dist/src/theme-chalk/checkbox-group.scss +7 -7
  50. package/dist/src/theme-chalk/checkbox.scss +298 -298
  51. package/dist/src/theme-chalk/col.scss +48 -48
  52. package/dist/src/theme-chalk/collapse.scss +70 -70
  53. package/dist/src/theme-chalk/color/index.scss +20 -20
  54. package/dist/src/theme-chalk/color-picker.scss +393 -393
  55. package/dist/src/theme-chalk/common/popup.scss +47 -47
  56. package/dist/src/theme-chalk/common/transition.scss +122 -122
  57. package/dist/src/theme-chalk/common/var.scss +1655 -1655
  58. package/dist/src/theme-chalk/container.scss +14 -14
  59. package/dist/src/theme-chalk/dark/css-vars.scss +39 -39
  60. package/dist/src/theme-chalk/dark/var.scss +222 -222
  61. package/dist/src/theme-chalk/date-picker/date-picker.scss +110 -110
  62. package/dist/src/theme-chalk/date-picker/date-range-picker.scss +113 -113
  63. package/dist/src/theme-chalk/date-picker/date-table.scss +158 -158
  64. package/dist/src/theme-chalk/date-picker/month-table.scss +112 -112
  65. package/dist/src/theme-chalk/date-picker/picker-panel.scss +131 -131
  66. package/dist/src/theme-chalk/date-picker/picker.scss +212 -212
  67. package/dist/src/theme-chalk/date-picker/time-picker.scss +90 -90
  68. package/dist/src/theme-chalk/date-picker/time-range-picker.scss +33 -33
  69. package/dist/src/theme-chalk/date-picker/time-spinner.scss +111 -111
  70. package/dist/src/theme-chalk/date-picker/year-table.scss +108 -108
  71. package/dist/src/theme-chalk/date-picker.scss +9 -9
  72. package/dist/src/theme-chalk/descriptions-item.scss +73 -73
  73. package/dist/src/theme-chalk/descriptions.scss +152 -152
  74. package/dist/src/theme-chalk/dialog.scss +192 -192
  75. package/dist/src/theme-chalk/display.scss +12 -12
  76. package/dist/src/theme-chalk/divider.scss +48 -48
  77. package/dist/src/theme-chalk/drawer.scss +155 -155
  78. package/dist/src/theme-chalk/dropdown.scss +208 -208
  79. package/dist/src/theme-chalk/empty.scss +49 -49
  80. package/dist/src/theme-chalk/footer.scss +12 -12
  81. package/dist/src/theme-chalk/form.scss +244 -244
  82. package/dist/src/theme-chalk/header.scss +12 -12
  83. package/dist/src/theme-chalk/icon.scss +45 -45
  84. package/dist/src/theme-chalk/image-viewer.scss +155 -155
  85. package/dist/src/theme-chalk/image.scss +49 -49
  86. package/dist/src/theme-chalk/index.scss +111 -111
  87. package/dist/src/theme-chalk/input-number.scss +186 -186
  88. package/dist/src/theme-chalk/input-tag.scss +220 -220
  89. package/dist/src/theme-chalk/input.scss +474 -474
  90. package/dist/src/theme-chalk/link.scss +90 -90
  91. package/dist/src/theme-chalk/loading.scss +104 -104
  92. package/dist/src/theme-chalk/main.scss +14 -14
  93. package/dist/src/theme-chalk/mention.scss +92 -92
  94. package/dist/src/theme-chalk/menu.scss +339 -339
  95. package/dist/src/theme-chalk/message-box.scss +213 -213
  96. package/dist/src/theme-chalk/message.scss +98 -98
  97. package/dist/src/theme-chalk/mixins/_button.scss +165 -165
  98. package/dist/src/theme-chalk/mixins/_col.scss +33 -33
  99. package/dist/src/theme-chalk/mixins/_var.scss +67 -67
  100. package/dist/src/theme-chalk/mixins/config.scss +5 -5
  101. package/dist/src/theme-chalk/mixins/function.scss +88 -88
  102. package/dist/src/theme-chalk/mixins/mixins.scss +240 -240
  103. package/dist/src/theme-chalk/mixins/utils.scss +39 -39
  104. package/dist/src/theme-chalk/notification.scss +107 -107
  105. package/dist/src/theme-chalk/option-group.scss +33 -33
  106. package/dist/src/theme-chalk/option.scss +71 -71
  107. package/dist/src/theme-chalk/overlay.scss +17 -17
  108. package/dist/src/theme-chalk/page-header.scss +60 -60
  109. package/dist/src/theme-chalk/pagination.scss +238 -238
  110. package/dist/src/theme-chalk/popconfirm.scss +16 -16
  111. package/dist/src/theme-chalk/popover.scss +61 -61
  112. package/dist/src/theme-chalk/popper.scss +106 -106
  113. package/dist/src/theme-chalk/progress.scss +179 -179
  114. package/dist/src/theme-chalk/radio-button.scss +169 -169
  115. package/dist/src/theme-chalk/radio-group.scss +9 -9
  116. package/dist/src/theme-chalk/radio.scss +215 -215
  117. package/dist/src/theme-chalk/rate.scss +108 -108
  118. package/dist/src/theme-chalk/reset.scss +98 -98
  119. package/dist/src/theme-chalk/result.scss +57 -57
  120. package/dist/src/theme-chalk/row.scss +35 -35
  121. package/dist/src/theme-chalk/scrollbar.scss +97 -97
  122. package/dist/src/theme-chalk/segmented.scss +183 -183
  123. package/dist/src/theme-chalk/select-dropdown-v2.scss +1 -1
  124. package/dist/src/theme-chalk/select-dropdown.scss +57 -57
  125. package/dist/src/theme-chalk/select-v2.scss +4 -4
  126. package/dist/src/theme-chalk/select.scss +264 -264
  127. package/dist/src/theme-chalk/skeleton-item.scss +83 -83
  128. package/dist/src/theme-chalk/skeleton.scss +44 -44
  129. package/dist/src/theme-chalk/slider.scss +212 -212
  130. package/dist/src/theme-chalk/space.scss +20 -20
  131. package/dist/src/theme-chalk/spinner.scss +43 -43
  132. package/dist/src/theme-chalk/statistic.scss +35 -35
  133. package/dist/src/theme-chalk/step.scss +316 -316
  134. package/dist/src/theme-chalk/steps.scss +21 -21
  135. package/dist/src/theme-chalk/switch.scss +300 -300
  136. package/dist/src/theme-chalk/table-column.scss +98 -98
  137. package/dist/src/theme-chalk/table-v2.scss +236 -236
  138. package/dist/src/theme-chalk/table.scss +694 -694
  139. package/dist/src/theme-chalk/tabs.scss +660 -660
  140. package/dist/src/theme-chalk/tag.scss +181 -181
  141. package/dist/src/theme-chalk/text.scss +51 -51
  142. package/dist/src/theme-chalk/time-picker.scss +5 -5
  143. package/dist/src/theme-chalk/time-select.scss +37 -37
  144. package/dist/src/theme-chalk/timeline-item.scss +84 -84
  145. package/dist/src/theme-chalk/timeline.scss +46 -46
  146. package/dist/src/theme-chalk/tooltip-v2.scss +95 -95
  147. package/dist/src/theme-chalk/tour.scss +187 -187
  148. package/dist/src/theme-chalk/transfer.scss +203 -203
  149. package/dist/src/theme-chalk/tree-select.scss +41 -41
  150. package/dist/src/theme-chalk/tree.scss +134 -134
  151. package/dist/src/theme-chalk/upload.scss +654 -654
  152. package/dist/src/theme-chalk/var.scss +87 -87
  153. package/dist/src/theme-chalk/virtual-list.scss +40 -40
  154. package/package.json +42 -42
@@ -1,87 +1,87 @@
1
- // CSS3 var
2
- @use 'common/var' as *;
3
- @use 'mixins/var' as *;
4
- @use 'mixins/mixins' as *;
5
-
6
- // for better performance do not dynamically change the root variable if you really
7
- // do not need that, since this could introduce recalculation overhead for rendering.
8
- // https://lisilinhart.info/posts/css-variables-performance/
9
-
10
- // common
11
- :root {
12
- @include set-css-var-value('color-white', $color-white);
13
- @include set-css-var-value('color-black', $color-black);
14
-
15
- // get rgb
16
- @each $type in (primary, success, warning, danger, error, info) {
17
- @include set-css-color-rgb($type);
18
- }
19
-
20
- // Typography
21
- @include set-component-css-var('font-size', $font-size);
22
- @include set-component-css-var('font-family', $font-family);
23
-
24
- @include set-css-var-value('font-weight-primary', 500);
25
- @include set-css-var-value('font-line-height-primary', 24px);
26
-
27
- // z-index --el-index-#{$type}
28
- @include set-component-css-var('index', $z-index);
29
-
30
- // --el-border-radius-#{$type}
31
- @include set-component-css-var('border-radius', $border-radius);
32
-
33
- // Transition
34
- // refer to this website to get the bezier motion function detail
35
- // https://cubic-bezier.com/#p1,p2,p3,p4 (change px as your function parameter)
36
- @include set-component-css-var('transition-duration', $transition-duration);
37
-
38
- @include set-component-css-var('transition-function', $transition-function);
39
- @include set-component-css-var('transition', $transition);
40
-
41
- // common component size
42
- @include set-component-css-var('component-size', $common-component-size);
43
- }
44
-
45
- // for light
46
- :root {
47
- color-scheme: light;
48
-
49
- // --el-color-#{$type}
50
- // --el-color-#{$type}-light-{$i}
51
- @each $type in (primary, success, warning, danger, error, info) {
52
- @include set-css-color-type($colors, $type);
53
- }
54
-
55
- // color-scheme
56
- // Background --el-bg-color-#{$type}
57
- @include set-component-css-var('bg-color', $bg-color);
58
- // --el-text-color-#{$type}
59
- @include set-component-css-var('text-color', $text-color);
60
- // --el-border-color-#{$type}
61
- @include set-component-css-var('border-color', $border-color);
62
- // Fill --el-fill-color-#{$type}
63
- @include set-component-css-var('fill-color', $fill-color);
64
-
65
- // Box-shadow
66
- // --el-box-shadow-#{$type}
67
- @include set-component-css-var('box-shadow', $box-shadow);
68
- // Disable base
69
- @include set-component-css-var('disabled', $disabled);
70
-
71
- // overlay & mask
72
- @include set-component-css-var('overlay-color', $overlay-color);
73
- @include set-component-css-var('mask-color', $mask-color);
74
-
75
- // Border
76
- @include set-css-var-value('border-width', $border-width);
77
- @include set-css-var-value('border-style', $border-style);
78
- @include set-css-var-value('border-color-hover', $border-color-hover);
79
- @include set-css-var-value(
80
- 'border',
81
- getCssVar('border-width') getCssVar('border-style')
82
- getCssVar('border-color')
83
- );
84
-
85
- // Svg
86
- @include css-var-from-global('svg-monochrome-grey', 'border-color');
87
- }
1
+ // CSS3 var
2
+ @use 'common/var' as *;
3
+ @use 'mixins/var' as *;
4
+ @use 'mixins/mixins' as *;
5
+
6
+ // for better performance do not dynamically change the root variable if you really
7
+ // do not need that, since this could introduce recalculation overhead for rendering.
8
+ // https://lisilinhart.info/posts/css-variables-performance/
9
+
10
+ // common
11
+ :root {
12
+ @include set-css-var-value('color-white', $color-white);
13
+ @include set-css-var-value('color-black', $color-black);
14
+
15
+ // get rgb
16
+ @each $type in (primary, success, warning, danger, error, info) {
17
+ @include set-css-color-rgb($type);
18
+ }
19
+
20
+ // Typography
21
+ @include set-component-css-var('font-size', $font-size);
22
+ @include set-component-css-var('font-family', $font-family);
23
+
24
+ @include set-css-var-value('font-weight-primary', 500);
25
+ @include set-css-var-value('font-line-height-primary', 24px);
26
+
27
+ // z-index --el-index-#{$type}
28
+ @include set-component-css-var('index', $z-index);
29
+
30
+ // --el-border-radius-#{$type}
31
+ @include set-component-css-var('border-radius', $border-radius);
32
+
33
+ // Transition
34
+ // refer to this website to get the bezier motion function detail
35
+ // https://cubic-bezier.com/#p1,p2,p3,p4 (change px as your function parameter)
36
+ @include set-component-css-var('transition-duration', $transition-duration);
37
+
38
+ @include set-component-css-var('transition-function', $transition-function);
39
+ @include set-component-css-var('transition', $transition);
40
+
41
+ // common component size
42
+ @include set-component-css-var('component-size', $common-component-size);
43
+ }
44
+
45
+ // for light
46
+ :root {
47
+ color-scheme: light;
48
+
49
+ // --el-color-#{$type}
50
+ // --el-color-#{$type}-light-{$i}
51
+ @each $type in (primary, success, warning, danger, error, info) {
52
+ @include set-css-color-type($colors, $type);
53
+ }
54
+
55
+ // color-scheme
56
+ // Background --el-bg-color-#{$type}
57
+ @include set-component-css-var('bg-color', $bg-color);
58
+ // --el-text-color-#{$type}
59
+ @include set-component-css-var('text-color', $text-color);
60
+ // --el-border-color-#{$type}
61
+ @include set-component-css-var('border-color', $border-color);
62
+ // Fill --el-fill-color-#{$type}
63
+ @include set-component-css-var('fill-color', $fill-color);
64
+
65
+ // Box-shadow
66
+ // --el-box-shadow-#{$type}
67
+ @include set-component-css-var('box-shadow', $box-shadow);
68
+ // Disable base
69
+ @include set-component-css-var('disabled', $disabled);
70
+
71
+ // overlay & mask
72
+ @include set-component-css-var('overlay-color', $overlay-color);
73
+ @include set-component-css-var('mask-color', $mask-color);
74
+
75
+ // Border
76
+ @include set-css-var-value('border-width', $border-width);
77
+ @include set-css-var-value('border-style', $border-style);
78
+ @include set-css-var-value('border-color-hover', $border-color-hover);
79
+ @include set-css-var-value(
80
+ 'border',
81
+ getCssVar('border-width') getCssVar('border-style')
82
+ getCssVar('border-color')
83
+ );
84
+
85
+ // Svg
86
+ @include css-var-from-global('svg-monochrome-grey', 'border-color');
87
+ }
@@ -1,40 +1,40 @@
1
- @use 'mixins/mixins' as *;
2
- @use 'common/var' as *;
3
-
4
- @mixin showScrollbar {
5
- @include b(virtual-scrollbar) {
6
- opacity: 1;
7
- }
8
- }
9
-
10
- @include b(vl) {
11
- @include e(wrapper) {
12
- position: relative;
13
- &:hover {
14
- @include showScrollbar();
15
- }
16
- &.always-on {
17
- @include showScrollbar();
18
- }
19
- }
20
- }
21
-
22
- .#{$namespace}-vl__window {
23
- scrollbar-width: none;
24
- &::-webkit-scrollbar {
25
- display: none;
26
- }
27
- }
28
- @include b(virtual-scrollbar) {
29
- opacity: 0;
30
- transition: opacity 340ms ease-out;
31
- &.always-on {
32
- opacity: 1;
33
- }
34
- }
35
-
36
- @include b(vg) {
37
- @include e(wrapper) {
38
- position: relative;
39
- }
40
- }
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @mixin showScrollbar {
5
+ @include b(virtual-scrollbar) {
6
+ opacity: 1;
7
+ }
8
+ }
9
+
10
+ @include b(vl) {
11
+ @include e(wrapper) {
12
+ position: relative;
13
+ &:hover {
14
+ @include showScrollbar();
15
+ }
16
+ &.always-on {
17
+ @include showScrollbar();
18
+ }
19
+ }
20
+ }
21
+
22
+ .#{$namespace}-vl__window {
23
+ scrollbar-width: none;
24
+ &::-webkit-scrollbar {
25
+ display: none;
26
+ }
27
+ }
28
+ @include b(virtual-scrollbar) {
29
+ opacity: 0;
30
+ transition: opacity 340ms ease-out;
31
+ &.always-on {
32
+ opacity: 1;
33
+ }
34
+ }
35
+
36
+ @include b(vg) {
37
+ @include e(wrapper) {
38
+ position: relative;
39
+ }
40
+ }
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "@type-dom/ui",
3
- "version": "0.4.0",
4
- "type": "module",
5
- "main": "./dist/src/index.js",
6
- "module": "./dist/src/index.js",
7
- "types": "./dist/src/index.d.ts",
8
- "exports": {
9
- "./package.json": "./package.json",
10
- ".": {
11
- "types": "./dist/src/index.d.ts",
12
- "import": "./dist/src/index.js",
13
- "default": "./dist/src/index.js"
14
- }
15
- },
16
- "files": [
17
- "dist",
18
- "!**/*.tsbuildinfo"
19
- ],
20
- "dependencies": {
21
- "tslib": "^2.3.0",
22
- "lodash": "^4.17.21",
23
- "sass-embedded": "^1.86.3",
24
- "@type-dom/async-validator": "*",
25
- "@type-dom/color": "*",
26
- "@type-dom/css-type": "*",
27
- "@type-dom/framework": "*",
28
- "@type-dom/popper": "*",
29
- "@type-dom/router": "*",
30
- "@type-dom/signals": "*",
31
- "@type-dom/svgs": "*",
32
- "@type-dom/utils": "*"
33
- },
34
- "publishConfig": {
35
- "access": "public",
36
- "registry": "https://registry.npmjs.org/"
37
- },
38
- "repository": {
39
- "type": "git",
40
- "url": "git+https://github.com/type-dom/ui.git"
41
- }
42
- }
1
+ {
2
+ "name": "@type-dom/ui",
3
+ "version": "0.4.1",
4
+ "type": "module",
5
+ "main": "./dist/src/index.js",
6
+ "module": "./dist/src/index.js",
7
+ "types": "./dist/src/index.d.ts",
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ ".": {
11
+ "types": "./dist/src/index.d.ts",
12
+ "import": "./dist/src/index.js",
13
+ "default": "./dist/src/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "!**/*.tsbuildinfo"
19
+ ],
20
+ "dependencies": {
21
+ "tslib": "^2.3.0",
22
+ "lodash": "^4.17.21",
23
+ "sass-embedded": "^1.86.3",
24
+ "@type-dom/async-validator": "*",
25
+ "@type-dom/color": "*",
26
+ "@type-dom/css-type": "*",
27
+ "@type-dom/framework": "*",
28
+ "@type-dom/popper": "*",
29
+ "@type-dom/router": "*",
30
+ "@type-dom/signals": "*",
31
+ "@type-dom/svgs": "*",
32
+ "@type-dom/utils": "*"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public",
36
+ "registry": "https://registry.npmjs.org/"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/type-dom/ui.git"
41
+ }
42
+ }