@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
@@ -13,203 +13,205 @@ exports.classes = (0, utils_1.defineInnerClasses)('input-base', [
13
13
  function useStyle({ color }) {
14
14
  const colorValue = (0, utils_1.useColor)(color);
15
15
  return (0, utils_1.useCss)(({ spacing, background, divider, borderRadius, text, easing, gray }) => (0, react_1.css) `
16
- display: flex;
17
- gap: ${spacing[2]}px;
18
- align-items: center;
19
- cursor: text;
20
- transition: border-color .25s ${easing.easeOut};
21
- position: relative;
22
-
23
- &[data-variant=outlined] {
24
- background-color: ${background.content};
25
- }
26
-
27
- &[data-size=medium] {
28
- min-height: 32px;
29
- padding: 0 ${spacing[4]}px;
30
- }
31
-
32
- &[data-size=small] {
33
- min-height: 24px;
34
- padding: 0 ${spacing[3]}px;
35
- }
36
-
37
- &[data-size=large] {
38
- min-height: 40px;
39
- padding: 3px ${spacing[5]}px;
40
- }
16
+ @layer reset {
17
+ display: flex;
18
+ gap: ${spacing[2]}px;
19
+ align-items: center;
20
+ cursor: text;
21
+ transition: border-color .25s ${easing.easeOut};
22
+ position: relative;
41
23
 
42
- &[data-variant=outlined] {
43
- border: 1px solid ${color === 'primary' ? divider : colorValue};
44
- border-radius: ${borderRadius}px;
45
-
46
- &:before,
47
- &:after {
48
- content: '';
49
- width: 0;
50
- height: 0;
51
- border-style: solid;
52
- border-color: transparent;
53
- border-width: 2px;
54
- border-radius: inherit;
55
- position: absolute;
56
- display: none;
57
- pointer-events: none;
58
- z-index: 3;
59
- }
60
-
61
- &:before {
62
- top: -1px;
63
- right: -1px;
64
- border-top-color: ${colorValue};
65
- border-left-color: ${colorValue};
66
- }
67
-
68
- &:after {
69
- bottom: -1px;
70
- left: -1px;
71
- border-bottom-color: ${colorValue};
72
- border-right-color: ${colorValue};
73
- }
74
-
75
- &:not(:has([data-disabled=true])):hover {
76
- ${color === 'primary' ? `border-color: ${gray(.5)};` : ''}
77
- }
78
-
79
- &:not(:has([data-read-only=true]))[data-focused=true],
80
- &:not(:has([data-read-only=true])):has(:focus) {
81
- &:before, &:after {
82
- display: block;
83
- animation: ${borderAnim} .4s ${easing.easeOut} forwards;
84
- }
24
+ &[data-variant=outlined] {
25
+ background-color: ${background.content};
85
26
  }
86
27
 
87
- &[data-shape=rounded] {
88
- border-radius: 1000em;
28
+ &[data-size=medium] {
29
+ min-height: 32px;
30
+ padding: 0 ${spacing[4]}px;
89
31
  }
90
- }
91
-
92
- &[data-variant=underlined] {
93
- border-bottom: 1px solid ${divider};
94
32
 
95
- &:not([data-disabled=true]):hover {
96
- border-color: ${gray(.5)};
33
+ &[data-size=small] {
34
+ min-height: 24px;
35
+ padding: 0 ${spacing[3]}px;
97
36
  }
98
37
 
99
- &:after {
100
- content: '';
101
- width: 0;
102
- height: 2px;
103
- background-color: ${colorValue};
104
- position: absolute;
105
- bottom: -1px;
106
- left: 0;
107
- transition: width .25s ${easing.easeOut};
108
- z-index: 3;
38
+ &[data-size=large] {
39
+ min-height: 40px;
40
+ padding: 3px ${spacing[5]}px;
109
41
  }
110
42
 
111
- &:not(:has([data-read-only=true]))[data-focused=true],
112
- &:not(:has([data-read-only=true])):has(:focus) {
113
- &:after {
114
- width: 100%;
43
+ &[data-variant=outlined] {
44
+ border: 1px solid ${color === 'primary' ? divider : colorValue};
45
+ border-radius: ${borderRadius}px;
46
+
47
+ &::before,
48
+ &::after {
49
+ content: '';
50
+ width: 0;
51
+ height: 0;
52
+ border-style: solid;
53
+ border-color: transparent;
54
+ border-width: 2px;
55
+ border-radius: inherit;
56
+ position: absolute;
57
+ display: none;
58
+ pointer-events: none;
59
+ z-index: 3;
60
+ }
61
+
62
+ &::before {
63
+ top: -1px;
64
+ right: -1px;
65
+ border-top-color: ${colorValue};
66
+ border-left-color: ${colorValue};
115
67
  }
116
- }
117
- }
118
68
 
119
- &:has([data-disabled=true]) {
120
- cursor: not-allowed;
121
- background-color: ${gray(.1)};
69
+ &::after {
70
+ bottom: -1px;
71
+ left: -1px;
72
+ border-bottom-color: ${colorValue};
73
+ border-right-color: ${colorValue};
74
+ }
122
75
 
123
- [data-disabled=true] {
124
- cursor: not-allowed;
125
- }
126
- }
76
+ &:not(:has([data-disabled=true])):hover {
77
+ ${color === 'primary' ? `border-color: ${gray(.5)};` : ''}
78
+ }
127
79
 
128
- &:has([data-read-only=true]) {
129
- cursor: default;
80
+ &:not(:has([data-read-only=true]))[data-focused=true],
81
+ &:not(:has([data-read-only=true])):has(:focus) {
82
+ &::before, &::after {
83
+ display: block;
84
+ animation: ${borderAnim} .4s ${easing.easeOut} forwards;
85
+ }
86
+ }
130
87
 
131
- [data-read-only=true] {
132
- cursor: default;
88
+ &[data-shape=rounded] {
89
+ border-radius: 1000em;
90
+ }
133
91
  }
134
- }
135
-
136
- .${exports.classes.content} {
137
- flex: 1;
138
- min-width: 0;
139
92
 
140
- input, textarea {
141
- color: ${text.primary};
93
+ &[data-variant=underlined] {
94
+ border-bottom: 1px solid ${divider};
142
95
 
143
- &::placeholder {
144
- color: ${text.placeholder};
96
+ &:not([data-disabled=true]):hover {
97
+ border-color: ${gray(.5)};
145
98
  }
146
99
 
147
- &[data-hidden=true] {
100
+ &::after {
101
+ content: '';
102
+ width: 0;
103
+ height: 2px;
104
+ background-color: ${colorValue};
148
105
  position: absolute;
149
- opacity: 0;
150
- inset: 0;
151
- pointer-events: none;
106
+ bottom: -1px;
107
+ left: 0;
108
+ transition: width .25s ${easing.easeOut};
109
+ z-index: 3;
152
110
  }
153
- }
154
- }
155
111
 
156
- &[data-compact=row] {
157
- &:hover {
158
- z-index: 1;
112
+ &:not(:has([data-read-only=true]))[data-focused=true],
113
+ &:not(:has([data-read-only=true])):has(:focus) {
114
+ &::after {
115
+ width: 100%;
116
+ }
117
+ }
159
118
  }
160
119
 
161
- &:not(:has([data-read-only=true]))[data-focused=true],
162
- &:not(:has([data-read-only=true])):has(:focus) {
163
- z-index: 2;
164
- }
165
-
166
- &:not([data-last=true]) {
167
- &, &:before, &:after {
168
- border-top-right-radius: 0;
169
- border-bottom-right-radius: 0;
120
+ &:has([data-disabled=true]) {
121
+ cursor: not-allowed;
122
+ background-color: ${gray(.1)};
123
+
124
+ [data-disabled=true] {
125
+ cursor: not-allowed;
170
126
  }
171
127
  }
172
-
173
- &:not([data-first=true]) {
174
- margin-left: -1px;
175
-
176
- &, &:before, &:after {
177
- border-top-left-radius: 0;
178
- border-bottom-left-radius: 0;
128
+
129
+ &:has([data-read-only=true]) {
130
+ cursor: default;
131
+
132
+ [data-read-only=true] {
133
+ cursor: default;
179
134
  }
180
135
  }
181
- }
182
-
183
- &[data-compact=column] {
184
- &:hover {
185
- z-index: 1;
186
- }
187
136
 
188
- &:not(:has([data-read-only=true]))[data-focused=true],
189
- &:not(:has([data-read-only=true])):has(:focus) {
190
- z-index: 2;
137
+ .${exports.classes.content} {
138
+ flex: 1;
139
+ min-width: 0;
140
+
141
+ input, textarea {
142
+ color: ${text.primary};
143
+
144
+ &::placeholder {
145
+ color: ${text.placeholder};
146
+ }
147
+
148
+ &[data-hidden=true] {
149
+ position: absolute;
150
+ opacity: 0;
151
+ inset: 0;
152
+ pointer-events: none;
153
+ }
154
+ }
191
155
  }
192
-
193
- &:not([data-last=true]) {
194
- &, &:before, &:after {
195
- border-bottom-left-radius: 0;
196
- border-bottom-right-radius: 0;
156
+
157
+ &[data-compact=row] {
158
+ &:hover {
159
+ z-index: 1;
160
+ }
161
+
162
+ &:not(:has([data-read-only=true]))[data-focused=true],
163
+ &:not(:has([data-read-only=true])):has(:focus) {
164
+ z-index: 2;
165
+ }
166
+
167
+ &:not([data-last=true]) {
168
+ &, &::before, &::after {
169
+ border-top-right-radius: 0;
170
+ border-bottom-right-radius: 0;
171
+ }
172
+ }
173
+
174
+ &:not([data-first=true]) {
175
+ margin-left: -1px;
176
+
177
+ &, &::before, &::after {
178
+ border-top-left-radius: 0;
179
+ border-bottom-left-radius: 0;
180
+ }
197
181
  }
198
182
  }
199
-
200
- &:not([data-first=true]) {
201
- margin-top: -1px;
202
-
203
- &, &:before, &:after {
204
- border-top-left-radius: 0;
205
- border-top-right-radius: 0;
183
+
184
+ &[data-compact=column] {
185
+ &:hover {
186
+ z-index: 1;
187
+ }
188
+
189
+ &:not(:has([data-read-only=true]))[data-focused=true],
190
+ &:not(:has([data-read-only=true])):has(:focus) {
191
+ z-index: 2;
192
+ }
193
+
194
+ &:not([data-last=true]) {
195
+ &, &::before, &::after {
196
+ border-bottom-left-radius: 0;
197
+ border-bottom-right-radius: 0;
198
+ }
199
+ }
200
+
201
+ &:not([data-first=true]) {
202
+ margin-top: -1px;
203
+
204
+ &, &::before, &::after {
205
+ border-top-left-radius: 0;
206
+ border-top-right-radius: 0;
207
+ }
206
208
  }
207
209
  }
208
- }
209
210
 
210
- .${exports.classes.prefix},
211
- .${exports.classes.suffix} {
212
- color: ${text.secondary};
211
+ .${exports.classes.prefix},
212
+ .${exports.classes.suffix} {
213
+ color: ${text.secondary};
214
+ }
213
215
  }
214
216
  `, [colorValue]);
215
217
  }
@@ -8,24 +8,26 @@ exports.classes = (0, utils_1.defineInnerClasses)('loading', [
8
8
  'mask'
9
9
  ]);
10
10
  exports.style = (0, react_1.css) `
11
- position: relative;
12
- z-index: 0;
13
-
14
- &[data-fill=true] {
15
- width: 100%;
16
- height: 100%;
17
- flex: 1;
18
- }
19
-
20
- .${exports.classes.container} {
21
- width: 100%;
22
- height: 100%;
11
+ @layer reset {
23
12
  position: relative;
24
13
  z-index: 0;
25
- }
14
+
15
+ &[data-fill=true] {
16
+ width: 100%;
17
+ height: 100%;
18
+ flex: 1;
19
+ }
20
+
21
+ .${exports.classes.container} {
22
+ width: 100%;
23
+ height: 100%;
24
+ position: relative;
25
+ z-index: 0;
26
+ }
26
27
 
27
28
 
28
- .${exports.classes.mask} {
29
- z-index: 1;
29
+ .${exports.classes.mask} {
30
+ z-index: 1;
31
+ }
30
32
  }
31
33
  `;
@@ -14,14 +14,16 @@ function useStyle({ color, borderWidth }) {
14
14
  return (0, utils_1.useCss)(({ mode }) => {
15
15
  const borderColor = mode === 'light' ? (0, color_1.default)(colorValue).alpha(.6).string() : colorValue;
16
16
  return (0, react_1.css) `
17
- .${exports.classes.indicator} {
18
- width: 100%;
19
- height: 100%;
20
- aspect-ratio: 1;
21
- border-radius: 50%;
22
- border: ${borderWidth}px solid;
23
- border-color: ${borderColor} transparent;
24
- animation: ${spinning} 1.25s infinite;
17
+ @layer reset {
18
+ .${exports.classes.indicator} {
19
+ width: 100%;
20
+ height: 100%;
21
+ aspect-ratio: 1;
22
+ border-radius: 50%;
23
+ border: ${borderWidth}px solid;
24
+ border-color: ${borderColor} transparent;
25
+ animation: ${spinning} 1.25s infinite;
26
+ }
25
27
  }
26
28
  `;
27
29
  }, [colorValue, borderWidth]);
@@ -10,28 +10,30 @@ exports.classes = (0, utils_1.defineInnerClasses)('loading-mask', [
10
10
  'progress'
11
11
  ]);
12
12
  exports.style = (0, utils_1.defineCss)(({ spacing, text }) => (0, react_1.css) `
13
- .${exports.classes.indicator} {
14
- display: flex;
15
- gap: ${spacing[2]}px;
16
- flex-direction: column;
17
- align-items: center;
18
- justify-content: center;
13
+ @layer reset {
14
+ .${exports.classes.indicator} {
15
+ display: flex;
16
+ gap: ${spacing[2]}px;
17
+ flex-direction: column;
18
+ align-items: center;
19
+ justify-content: center;
19
20
 
20
- .${exports.classes.text} {
21
- color: ${text.secondary};
21
+ .${exports.classes.text} {
22
+ color: ${text.secondary};
23
+ }
22
24
  }
23
- }
24
25
 
25
- .${exports.classes.progress} {
26
- width: calc(100% - 24px);
27
- max-width: 300px;
26
+ .${exports.classes.progress} {
27
+ width: calc(100% - 24px);
28
+ max-width: 300px;
28
29
 
29
- .${progress_style_1.classes.track} {
30
- height: 4px;
30
+ .${progress_style_1.classes.track} {
31
+ height: 4px;
32
+ }
31
33
  }
32
- }
33
34
 
34
- &[data-show-progress=true] .${exports.classes.indicator} {
35
- flex-direction: row;
35
+ &[data-show-progress=true] .${exports.classes.indicator} {
36
+ flex-direction: row;
37
+ }
36
38
  }
37
39
  `);
@@ -6,5 +6,7 @@ const utils_1 = require("../../utils");
6
6
  const menuItem_style_1 = require("../menuItem/menuItem.style");
7
7
  exports.classes = (0, utils_1.defineInnerClasses)('menu');
8
8
  exports.style = (0, react_1.css) `
9
- padding: ${menuItem_style_1.menuListPadding}px;
9
+ @layer reset {
10
+ padding: ${menuItem_style_1.menuListPadding}px;
11
+ }
10
12
  `;