@canlooks/can-ui 0.0.98 → 0.0.100

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 (185) hide show
  1. package/dist/cjs/components/accordion/accordion.style.js +88 -86
  2. package/dist/cjs/components/actionSheet/actionSheet.style.js +35 -33
  3. package/dist/cjs/components/alert/alert.style.js +44 -42
  4. package/dist/cjs/components/anchorList/anchorList.style.js +40 -38
  5. package/dist/cjs/components/app/app.style.js +24 -17
  6. package/dist/cjs/components/avatar/avatar.style.js +22 -20
  7. package/dist/cjs/components/avatar/avatarGroup.style.js +24 -22
  8. package/dist/cjs/components/backdrop/backdrop.style.js +11 -9
  9. package/dist/cjs/components/badge/badge.style.js +42 -40
  10. package/dist/cjs/components/bottomNavigation/bottomNavigation.style.js +61 -59
  11. package/dist/cjs/components/boundary/errorBoundary.style.js +11 -9
  12. package/dist/cjs/components/breadcrumb/breadcrumb.style.js +8 -6
  13. package/dist/cjs/components/bubble/bubble.style.js +10 -8
  14. package/dist/cjs/components/bubbleConfirm/bubbleConfirm.style.js +37 -35
  15. package/dist/cjs/components/button/button.style.js +219 -197
  16. package/dist/cjs/components/calendar/calendar.style.js +93 -91
  17. package/dist/cjs/components/card/card.style.js +47 -44
  18. package/dist/cjs/components/cascade/cascade.style.js +58 -54
  19. package/dist/cjs/components/checkboxBase/checkboxBase.style.js +122 -120
  20. package/dist/cjs/components/colorPicker/colorPicker.style.js +68 -64
  21. package/dist/cjs/components/counter/counter.style.js +19 -17
  22. package/dist/cjs/components/curd/curd.style.js +70 -66
  23. package/dist/cjs/components/curd/curdColumnConfig.style.js +17 -15
  24. package/dist/cjs/components/dataGrid/dataGrid.style.js +113 -111
  25. package/dist/cjs/components/dateTimePicker/dateTimePicker.style.js +31 -27
  26. package/dist/cjs/components/dateTimePicker/timer.style.js +29 -27
  27. package/dist/cjs/components/dateTimeRangePicker/dateTimeRangePicker.style.js +7 -5
  28. package/dist/cjs/components/descriptions/descriptions.style.js +99 -95
  29. package/dist/cjs/components/dialog/dialog.style.js +98 -96
  30. package/dist/cjs/components/divider/divider.style.js +17 -15
  31. package/dist/cjs/components/drawer/drawer.style.js +78 -77
  32. package/dist/cjs/components/dropdown/dropdown.style.js +10 -8
  33. package/dist/cjs/components/form/form.style.js +27 -25
  34. package/dist/cjs/components/gallery/gallery.style.js +82 -80
  35. package/dist/cjs/components/image/image.style.js +35 -33
  36. package/dist/cjs/components/input/input.style.js +27 -26
  37. package/dist/cjs/components/inputBase/inputBase.style.js +164 -162
  38. package/dist/cjs/components/loading/loading.style.js +17 -15
  39. package/dist/cjs/components/loadingIndicator/loadingIndicator.style.js +10 -8
  40. package/dist/cjs/components/loadingMask/loadingMask.style.js +19 -17
  41. package/dist/cjs/components/menu/menu.style.js +3 -1
  42. package/dist/cjs/components/menuItem/menuItem.style.js +94 -90
  43. package/dist/cjs/components/modal/modal.style.js +11 -9
  44. package/dist/cjs/components/optionsBase/optionsBase.style.js +10 -8
  45. package/dist/cjs/components/overlayBase/overlayBase.style.js +15 -13
  46. package/dist/cjs/components/pagination/pagination.style.js +31 -29
  47. package/dist/cjs/components/palette/palette.style.d.ts +1 -1
  48. package/dist/cjs/components/palette/palette.style.js +115 -113
  49. package/dist/cjs/components/pickerDialog/pickerDialog.style.js +25 -23
  50. package/dist/cjs/components/pinchable/pinchable.style.js +10 -8
  51. package/dist/cjs/components/placeholder/placeholder.style.js +28 -26
  52. package/dist/cjs/components/popper/popper.style.js +43 -39
  53. package/dist/cjs/components/progress/progress.style.js +111 -111
  54. package/dist/cjs/components/rating/rating.style.js +52 -50
  55. package/dist/cjs/components/resizable/resizable.style.js +229 -223
  56. package/dist/cjs/components/scrollbar/scrollbar.style.js +71 -69
  57. package/dist/cjs/components/segmented/segmented.style.js +79 -77
  58. package/dist/cjs/components/select/select.style.js +36 -34
  59. package/dist/cjs/components/selectedList/selectedList.style.js +9 -7
  60. package/dist/cjs/components/serialInput/serialInput.style.js +4 -2
  61. package/dist/cjs/components/skeleton/skeleton.style.js +53 -47
  62. package/dist/cjs/components/slidableActions/slidableActions.style.js +45 -43
  63. package/dist/cjs/components/slider/slider.style.js +129 -127
  64. package/dist/cjs/components/snackbarBase/snackbarBase.style.js +96 -94
  65. package/dist/cjs/components/status/status.style.js +13 -11
  66. package/dist/cjs/components/stepper/step.style.js +217 -216
  67. package/dist/cjs/components/stepper/stepper.style.js +5 -3
  68. package/dist/cjs/components/switch/switch.style.js +73 -71
  69. package/dist/cjs/components/table/table.style.js +83 -81
  70. package/dist/cjs/components/table/tableSticky.style.js +33 -31
  71. package/dist/cjs/components/tabs/tabs.style.js +161 -159
  72. package/dist/cjs/components/tabs/tabsEllipsis.style.js +5 -3
  73. package/dist/cjs/components/tag/tag.style.js +96 -94
  74. package/dist/cjs/components/textarea/textarea.style.js +27 -25
  75. package/dist/cjs/components/theme/themeVariables.d.ts +1 -0
  76. package/dist/cjs/components/theme/themeVariables.js +3 -1
  77. package/dist/cjs/components/timeline/timeline.style.js +112 -108
  78. package/dist/cjs/components/toggleButton/toggleButton.style.js +7 -5
  79. package/dist/cjs/components/tooltip/tooltip.style.js +13 -11
  80. package/dist/cjs/components/touchRipple/touchRipple.style.js +19 -17
  81. package/dist/cjs/components/transfer/transfer.style.js +42 -40
  82. package/dist/cjs/components/transitionBase/transitionBase.style.js +101 -94
  83. package/dist/cjs/components/transportStyle/transportStyle.style.d.ts +1 -0
  84. package/dist/cjs/components/transportStyle/transportStyle.style.js +57 -0
  85. package/dist/cjs/components/tree/tree.style.js +83 -79
  86. package/dist/cjs/components/tree/treeDnd.style.js +131 -129
  87. package/dist/cjs/components/treeSelect/treeSelect.style.js +35 -33
  88. package/dist/cjs/components/typography/typography.style.js +98 -96
  89. package/dist/cjs/components/upload/dropArea.style.js +31 -29
  90. package/dist/cjs/components/upload/upload.style.js +106 -104
  91. package/dist/cjs/components/waterfall/waterfall.style.js +7 -5
  92. package/dist/cjs/extensions/documentViewer/documentViewer.style.js +43 -41
  93. package/dist/esm/components/accordion/accordion.style.js +88 -86
  94. package/dist/esm/components/actionSheet/actionSheet.style.js +35 -33
  95. package/dist/esm/components/alert/alert.style.js +44 -42
  96. package/dist/esm/components/anchorList/anchorList.style.js +40 -38
  97. package/dist/esm/components/app/app.style.js +24 -17
  98. package/dist/esm/components/avatar/avatar.style.js +22 -20
  99. package/dist/esm/components/avatar/avatarGroup.style.js +24 -22
  100. package/dist/esm/components/backdrop/backdrop.style.js +11 -9
  101. package/dist/esm/components/badge/badge.style.js +42 -40
  102. package/dist/esm/components/bottomNavigation/bottomNavigation.style.js +61 -59
  103. package/dist/esm/components/boundary/errorBoundary.style.js +11 -9
  104. package/dist/esm/components/breadcrumb/breadcrumb.style.js +8 -6
  105. package/dist/esm/components/bubble/bubble.style.js +10 -8
  106. package/dist/esm/components/bubbleConfirm/bubbleConfirm.style.js +37 -35
  107. package/dist/esm/components/button/button.style.js +219 -197
  108. package/dist/esm/components/calendar/calendar.style.js +93 -91
  109. package/dist/esm/components/card/card.style.js +58 -55
  110. package/dist/esm/components/cascade/cascade.style.js +58 -54
  111. package/dist/esm/components/checkboxBase/checkboxBase.style.js +122 -120
  112. package/dist/esm/components/colorPicker/colorPicker.style.js +69 -65
  113. package/dist/esm/components/counter/counter.style.js +19 -17
  114. package/dist/esm/components/curd/curd.style.js +70 -66
  115. package/dist/esm/components/curd/curdColumnConfig.style.js +17 -15
  116. package/dist/esm/components/dataGrid/dataGrid.style.js +113 -111
  117. package/dist/esm/components/dateTimePicker/dateTimePicker.style.js +31 -27
  118. package/dist/esm/components/dateTimePicker/timer.style.js +29 -27
  119. package/dist/esm/components/dateTimeRangePicker/dateTimeRangePicker.style.js +7 -5
  120. package/dist/esm/components/descriptions/descriptions.style.js +99 -95
  121. package/dist/esm/components/dialog/dialog.style.js +98 -96
  122. package/dist/esm/components/divider/divider.style.js +17 -15
  123. package/dist/esm/components/drawer/drawer.style.js +78 -77
  124. package/dist/esm/components/dropdown/dropdown.style.js +10 -8
  125. package/dist/esm/components/form/form.style.js +27 -25
  126. package/dist/esm/components/gallery/gallery.style.js +82 -80
  127. package/dist/esm/components/image/image.style.js +35 -33
  128. package/dist/esm/components/input/input.style.js +27 -26
  129. package/dist/esm/components/inputBase/inputBase.style.js +164 -162
  130. package/dist/esm/components/loading/loading.style.js +17 -15
  131. package/dist/esm/components/loadingIndicator/loadingIndicator.style.js +10 -8
  132. package/dist/esm/components/loadingMask/loadingMask.style.js +19 -17
  133. package/dist/esm/components/menu/menu.style.js +3 -1
  134. package/dist/esm/components/menuItem/menuItem.style.js +94 -90
  135. package/dist/esm/components/modal/modal.style.js +11 -9
  136. package/dist/esm/components/optionsBase/optionsBase.style.js +10 -8
  137. package/dist/esm/components/overlayBase/overlayBase.style.js +15 -13
  138. package/dist/esm/components/pagination/pagination.style.js +31 -29
  139. package/dist/esm/components/palette/palette.style.d.ts +1 -1
  140. package/dist/esm/components/palette/palette.style.js +113 -111
  141. package/dist/esm/components/pickerDialog/pickerDialog.style.js +25 -23
  142. package/dist/esm/components/pinchable/pinchable.style.js +10 -8
  143. package/dist/esm/components/placeholder/placeholder.style.js +28 -26
  144. package/dist/esm/components/popper/popper.style.js +43 -39
  145. package/dist/esm/components/progress/progress.style.js +111 -111
  146. package/dist/esm/components/rating/rating.style.js +52 -50
  147. package/dist/esm/components/resizable/resizable.style.js +229 -223
  148. package/dist/esm/components/scrollbar/scrollbar.style.js +71 -69
  149. package/dist/esm/components/segmented/segmented.style.js +79 -77
  150. package/dist/esm/components/select/select.style.js +36 -34
  151. package/dist/esm/components/selectedList/selectedList.style.js +9 -7
  152. package/dist/esm/components/serialInput/serialInput.style.js +4 -2
  153. package/dist/esm/components/skeleton/skeleton.style.js +53 -47
  154. package/dist/esm/components/slidableActions/slidableActions.style.js +45 -43
  155. package/dist/esm/components/slider/slider.style.js +129 -127
  156. package/dist/esm/components/snackbarBase/snackbarBase.style.js +96 -94
  157. package/dist/esm/components/status/status.style.js +13 -11
  158. package/dist/esm/components/stepper/step.style.js +217 -216
  159. package/dist/esm/components/stepper/stepper.style.js +5 -3
  160. package/dist/esm/components/switch/switch.style.js +73 -71
  161. package/dist/esm/components/table/table.style.js +83 -81
  162. package/dist/esm/components/table/tableSticky.style.js +33 -31
  163. package/dist/esm/components/tabs/tabs.style.js +161 -159
  164. package/dist/esm/components/tabs/tabsEllipsis.style.js +5 -3
  165. package/dist/esm/components/tag/tag.style.js +96 -94
  166. package/dist/esm/components/textarea/textarea.style.js +27 -25
  167. package/dist/esm/components/theme/themeVariables.d.ts +1 -0
  168. package/dist/esm/components/theme/themeVariables.js +2 -0
  169. package/dist/esm/components/timeline/timeline.style.js +112 -108
  170. package/dist/esm/components/toggleButton/toggleButton.style.js +7 -5
  171. package/dist/esm/components/tooltip/tooltip.style.js +13 -11
  172. package/dist/esm/components/touchRipple/touchRipple.style.js +19 -17
  173. package/dist/esm/components/transfer/transfer.style.js +42 -40
  174. package/dist/esm/components/transitionBase/transitionBase.style.js +101 -94
  175. package/dist/esm/components/transportStyle/transportStyle.style.d.ts +1 -0
  176. package/dist/esm/components/transportStyle/transportStyle.style.js +54 -0
  177. package/dist/esm/components/tree/tree.style.js +83 -79
  178. package/dist/esm/components/tree/treeDnd.style.js +131 -129
  179. package/dist/esm/components/treeSelect/treeSelect.style.js +35 -33
  180. package/dist/esm/components/typography/typography.style.js +98 -96
  181. package/dist/esm/components/upload/dropArea.style.js +31 -29
  182. package/dist/esm/components/upload/upload.style.js +106 -104
  183. package/dist/esm/components/waterfall/waterfall.style.js +7 -5
  184. package/dist/esm/extensions/documentViewer/documentViewer.style.js +43 -41
  185. package/package.json +1 -1
@@ -9,203 +9,205 @@ export const classes = defineInnerClasses('input-base', [
9
9
  export function useStyle({ color }) {
10
10
  const colorValue = useColor(color);
11
11
  return useCss(({ spacing, background, divider, borderRadius, text, easing, gray }) => css `
12
- display: flex;
13
- gap: ${spacing[2]}px;
14
- align-items: center;
15
- cursor: text;
16
- transition: border-color .25s ${easing.easeOut};
17
- position: relative;
18
-
19
- &[data-variant=outlined] {
20
- background-color: ${background.content};
21
- }
22
-
23
- &[data-size=medium] {
24
- min-height: 32px;
25
- padding: 0 ${spacing[4]}px;
26
- }
27
-
28
- &[data-size=small] {
29
- min-height: 24px;
30
- padding: 0 ${spacing[3]}px;
31
- }
32
-
33
- &[data-size=large] {
34
- min-height: 40px;
35
- padding: 3px ${spacing[5]}px;
36
- }
12
+ @layer reset {
13
+ display: flex;
14
+ gap: ${spacing[2]}px;
15
+ align-items: center;
16
+ cursor: text;
17
+ transition: border-color .25s ${easing.easeOut};
18
+ position: relative;
37
19
 
38
- &[data-variant=outlined] {
39
- border: 1px solid ${color === 'primary' ? divider : colorValue};
40
- border-radius: ${borderRadius}px;
41
-
42
- &:before,
43
- &:after {
44
- content: '';
45
- width: 0;
46
- height: 0;
47
- border-style: solid;
48
- border-color: transparent;
49
- border-width: 2px;
50
- border-radius: inherit;
51
- position: absolute;
52
- display: none;
53
- pointer-events: none;
54
- z-index: 3;
55
- }
56
-
57
- &:before {
58
- top: -1px;
59
- right: -1px;
60
- border-top-color: ${colorValue};
61
- border-left-color: ${colorValue};
62
- }
63
-
64
- &:after {
65
- bottom: -1px;
66
- left: -1px;
67
- border-bottom-color: ${colorValue};
68
- border-right-color: ${colorValue};
69
- }
70
-
71
- &:not(:has([data-disabled=true])):hover {
72
- ${color === 'primary' ? `border-color: ${gray(.5)};` : ''}
73
- }
74
-
75
- &:not(:has([data-read-only=true]))[data-focused=true],
76
- &:not(:has([data-read-only=true])):has(:focus) {
77
- &:before, &:after {
78
- display: block;
79
- animation: ${borderAnim} .4s ${easing.easeOut} forwards;
80
- }
20
+ &[data-variant=outlined] {
21
+ background-color: ${background.content};
81
22
  }
82
23
 
83
- &[data-shape=rounded] {
84
- border-radius: 1000em;
24
+ &[data-size=medium] {
25
+ min-height: 32px;
26
+ padding: 0 ${spacing[4]}px;
85
27
  }
86
- }
87
-
88
- &[data-variant=underlined] {
89
- border-bottom: 1px solid ${divider};
90
28
 
91
- &:not([data-disabled=true]):hover {
92
- border-color: ${gray(.5)};
29
+ &[data-size=small] {
30
+ min-height: 24px;
31
+ padding: 0 ${spacing[3]}px;
93
32
  }
94
33
 
95
- &:after {
96
- content: '';
97
- width: 0;
98
- height: 2px;
99
- background-color: ${colorValue};
100
- position: absolute;
101
- bottom: -1px;
102
- left: 0;
103
- transition: width .25s ${easing.easeOut};
104
- z-index: 3;
34
+ &[data-size=large] {
35
+ min-height: 40px;
36
+ padding: 3px ${spacing[5]}px;
105
37
  }
106
38
 
107
- &:not(:has([data-read-only=true]))[data-focused=true],
108
- &:not(:has([data-read-only=true])):has(:focus) {
109
- &:after {
110
- width: 100%;
39
+ &[data-variant=outlined] {
40
+ border: 1px solid ${color === 'primary' ? divider : colorValue};
41
+ border-radius: ${borderRadius}px;
42
+
43
+ &::before,
44
+ &::after {
45
+ content: '';
46
+ width: 0;
47
+ height: 0;
48
+ border-style: solid;
49
+ border-color: transparent;
50
+ border-width: 2px;
51
+ border-radius: inherit;
52
+ position: absolute;
53
+ display: none;
54
+ pointer-events: none;
55
+ z-index: 3;
56
+ }
57
+
58
+ &::before {
59
+ top: -1px;
60
+ right: -1px;
61
+ border-top-color: ${colorValue};
62
+ border-left-color: ${colorValue};
111
63
  }
112
- }
113
- }
114
64
 
115
- &:has([data-disabled=true]) {
116
- cursor: not-allowed;
117
- background-color: ${gray(.1)};
65
+ &::after {
66
+ bottom: -1px;
67
+ left: -1px;
68
+ border-bottom-color: ${colorValue};
69
+ border-right-color: ${colorValue};
70
+ }
118
71
 
119
- [data-disabled=true] {
120
- cursor: not-allowed;
121
- }
122
- }
72
+ &:not(:has([data-disabled=true])):hover {
73
+ ${color === 'primary' ? `border-color: ${gray(.5)};` : ''}
74
+ }
123
75
 
124
- &:has([data-read-only=true]) {
125
- cursor: default;
76
+ &:not(:has([data-read-only=true]))[data-focused=true],
77
+ &:not(:has([data-read-only=true])):has(:focus) {
78
+ &::before, &::after {
79
+ display: block;
80
+ animation: ${borderAnim} .4s ${easing.easeOut} forwards;
81
+ }
82
+ }
126
83
 
127
- [data-read-only=true] {
128
- cursor: default;
84
+ &[data-shape=rounded] {
85
+ border-radius: 1000em;
86
+ }
129
87
  }
130
- }
131
-
132
- .${classes.content} {
133
- flex: 1;
134
- min-width: 0;
135
88
 
136
- input, textarea {
137
- color: ${text.primary};
89
+ &[data-variant=underlined] {
90
+ border-bottom: 1px solid ${divider};
138
91
 
139
- &::placeholder {
140
- color: ${text.placeholder};
92
+ &:not([data-disabled=true]):hover {
93
+ border-color: ${gray(.5)};
141
94
  }
142
95
 
143
- &[data-hidden=true] {
96
+ &::after {
97
+ content: '';
98
+ width: 0;
99
+ height: 2px;
100
+ background-color: ${colorValue};
144
101
  position: absolute;
145
- opacity: 0;
146
- inset: 0;
147
- pointer-events: none;
102
+ bottom: -1px;
103
+ left: 0;
104
+ transition: width .25s ${easing.easeOut};
105
+ z-index: 3;
148
106
  }
149
- }
150
- }
151
107
 
152
- &[data-compact=row] {
153
- &:hover {
154
- z-index: 1;
108
+ &:not(:has([data-read-only=true]))[data-focused=true],
109
+ &:not(:has([data-read-only=true])):has(:focus) {
110
+ &::after {
111
+ width: 100%;
112
+ }
113
+ }
155
114
  }
156
115
 
157
- &:not(:has([data-read-only=true]))[data-focused=true],
158
- &:not(:has([data-read-only=true])):has(:focus) {
159
- z-index: 2;
160
- }
161
-
162
- &:not([data-last=true]) {
163
- &, &:before, &:after {
164
- border-top-right-radius: 0;
165
- border-bottom-right-radius: 0;
116
+ &:has([data-disabled=true]) {
117
+ cursor: not-allowed;
118
+ background-color: ${gray(.1)};
119
+
120
+ [data-disabled=true] {
121
+ cursor: not-allowed;
166
122
  }
167
123
  }
168
-
169
- &:not([data-first=true]) {
170
- margin-left: -1px;
171
-
172
- &, &:before, &:after {
173
- border-top-left-radius: 0;
174
- border-bottom-left-radius: 0;
124
+
125
+ &:has([data-read-only=true]) {
126
+ cursor: default;
127
+
128
+ [data-read-only=true] {
129
+ cursor: default;
175
130
  }
176
131
  }
177
- }
178
-
179
- &[data-compact=column] {
180
- &:hover {
181
- z-index: 1;
182
- }
183
132
 
184
- &:not(:has([data-read-only=true]))[data-focused=true],
185
- &:not(:has([data-read-only=true])):has(:focus) {
186
- z-index: 2;
133
+ .${classes.content} {
134
+ flex: 1;
135
+ min-width: 0;
136
+
137
+ input, textarea {
138
+ color: ${text.primary};
139
+
140
+ &::placeholder {
141
+ color: ${text.placeholder};
142
+ }
143
+
144
+ &[data-hidden=true] {
145
+ position: absolute;
146
+ opacity: 0;
147
+ inset: 0;
148
+ pointer-events: none;
149
+ }
150
+ }
187
151
  }
188
-
189
- &:not([data-last=true]) {
190
- &, &:before, &:after {
191
- border-bottom-left-radius: 0;
192
- border-bottom-right-radius: 0;
152
+
153
+ &[data-compact=row] {
154
+ &:hover {
155
+ z-index: 1;
156
+ }
157
+
158
+ &:not(:has([data-read-only=true]))[data-focused=true],
159
+ &:not(:has([data-read-only=true])):has(:focus) {
160
+ z-index: 2;
161
+ }
162
+
163
+ &:not([data-last=true]) {
164
+ &, &::before, &::after {
165
+ border-top-right-radius: 0;
166
+ border-bottom-right-radius: 0;
167
+ }
168
+ }
169
+
170
+ &:not([data-first=true]) {
171
+ margin-left: -1px;
172
+
173
+ &, &::before, &::after {
174
+ border-top-left-radius: 0;
175
+ border-bottom-left-radius: 0;
176
+ }
193
177
  }
194
178
  }
195
-
196
- &:not([data-first=true]) {
197
- margin-top: -1px;
198
-
199
- &, &:before, &:after {
200
- border-top-left-radius: 0;
201
- border-top-right-radius: 0;
179
+
180
+ &[data-compact=column] {
181
+ &:hover {
182
+ z-index: 1;
183
+ }
184
+
185
+ &:not(:has([data-read-only=true]))[data-focused=true],
186
+ &:not(:has([data-read-only=true])):has(:focus) {
187
+ z-index: 2;
188
+ }
189
+
190
+ &:not([data-last=true]) {
191
+ &, &::before, &::after {
192
+ border-bottom-left-radius: 0;
193
+ border-bottom-right-radius: 0;
194
+ }
195
+ }
196
+
197
+ &:not([data-first=true]) {
198
+ margin-top: -1px;
199
+
200
+ &, &::before, &::after {
201
+ border-top-left-radius: 0;
202
+ border-top-right-radius: 0;
203
+ }
202
204
  }
203
205
  }
204
- }
205
206
 
206
- .${classes.prefix},
207
- .${classes.suffix} {
208
- color: ${text.secondary};
207
+ .${classes.prefix},
208
+ .${classes.suffix} {
209
+ color: ${text.secondary};
210
+ }
209
211
  }
210
212
  `, [colorValue]);
211
213
  }
@@ -5,24 +5,26 @@ export const classes = defineInnerClasses('loading', [
5
5
  'mask'
6
6
  ]);
7
7
  export const style = css `
8
- position: relative;
9
- z-index: 0;
10
-
11
- &[data-fill=true] {
12
- width: 100%;
13
- height: 100%;
14
- flex: 1;
15
- }
16
-
17
- .${classes.container} {
18
- width: 100%;
19
- height: 100%;
8
+ @layer reset {
20
9
  position: relative;
21
10
  z-index: 0;
22
- }
11
+
12
+ &[data-fill=true] {
13
+ width: 100%;
14
+ height: 100%;
15
+ flex: 1;
16
+ }
17
+
18
+ .${classes.container} {
19
+ width: 100%;
20
+ height: 100%;
21
+ position: relative;
22
+ z-index: 0;
23
+ }
23
24
 
24
25
 
25
- .${classes.mask} {
26
- z-index: 1;
26
+ .${classes.mask} {
27
+ z-index: 1;
28
+ }
27
29
  }
28
30
  `;
@@ -9,14 +9,16 @@ export function useStyle({ color, borderWidth }) {
9
9
  return useCss(({ mode }) => {
10
10
  const borderColor = mode === 'light' ? Color(colorValue).alpha(.6).string() : colorValue;
11
11
  return css `
12
- .${classes.indicator} {
13
- width: 100%;
14
- height: 100%;
15
- aspect-ratio: 1;
16
- border-radius: 50%;
17
- border: ${borderWidth}px solid;
18
- border-color: ${borderColor} transparent;
19
- animation: ${spinning} 1.25s infinite;
12
+ @layer reset {
13
+ .${classes.indicator} {
14
+ width: 100%;
15
+ height: 100%;
16
+ aspect-ratio: 1;
17
+ border-radius: 50%;
18
+ border: ${borderWidth}px solid;
19
+ border-color: ${borderColor} transparent;
20
+ animation: ${spinning} 1.25s infinite;
21
+ }
20
22
  }
21
23
  `;
22
24
  }, [colorValue, borderWidth]);
@@ -7,28 +7,30 @@ export const classes = defineInnerClasses('loading-mask', [
7
7
  'progress'
8
8
  ]);
9
9
  export const style = defineCss(({ spacing, text }) => css `
10
- .${classes.indicator} {
11
- display: flex;
12
- gap: ${spacing[2]}px;
13
- flex-direction: column;
14
- align-items: center;
15
- justify-content: center;
10
+ @layer reset {
11
+ .${classes.indicator} {
12
+ display: flex;
13
+ gap: ${spacing[2]}px;
14
+ flex-direction: column;
15
+ align-items: center;
16
+ justify-content: center;
16
17
 
17
- .${classes.text} {
18
- color: ${text.secondary};
18
+ .${classes.text} {
19
+ color: ${text.secondary};
20
+ }
19
21
  }
20
- }
21
22
 
22
- .${classes.progress} {
23
- width: calc(100% - 24px);
24
- max-width: 300px;
23
+ .${classes.progress} {
24
+ width: calc(100% - 24px);
25
+ max-width: 300px;
25
26
 
26
- .${progressClasses.track} {
27
- height: 4px;
27
+ .${progressClasses.track} {
28
+ height: 4px;
29
+ }
28
30
  }
29
- }
30
31
 
31
- &[data-show-progress=true] .${classes.indicator} {
32
- flex-direction: row;
32
+ &[data-show-progress=true] .${classes.indicator} {
33
+ flex-direction: row;
34
+ }
33
35
  }
34
36
  `);
@@ -3,5 +3,7 @@ import { defineInnerClasses } from '../../utils';
3
3
  import { menuListPadding } from '../menuItem/menuItem.style';
4
4
  export const classes = defineInnerClasses('menu');
5
5
  export const style = css `
6
- padding: ${menuListPadding}px;
6
+ @layer reset {
7
+ padding: ${menuListPadding}px;
8
+ }
7
9
  `;