@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
@@ -14,316 +14,317 @@ export function useStyle({ color, gap }) {
14
14
  return useCss(({ mode, spacing, gray, divider, text, colors, borderRadius, easing }) => {
15
15
  const finishedBg = Color(colorValue).alpha(mode === 'light' ? .1 : .2).string();
16
16
  return css `
17
- flex: 1;
18
- display: flex;
19
- align-items: flex-start;
20
- gap: ${spacing[4]}px;
21
- -webkit-tap-highlight-color: transparent;
22
-
23
- .${classes.indicator} {
24
- min-width: 32px;
25
- height: 32px;
26
- border-radius: 50%;
27
- display: flex;
28
- align-items: center;
29
- justify-content: center;
30
- transition: background-color .25s ${easing.easeOut}, color .25s ${easing.easeOut};
31
- }
32
-
33
- &[data-variant=dot] {
34
- .${classes.indicator} {
35
- min-width: ${spacing[3]}px;
36
- height: ${spacing[3]}px;
37
- margin-top: ${(32 - spacing[3]) / 2}px;
38
- }
39
- }
40
-
41
- .${classes.label} {
17
+ @layer reset {
42
18
  flex: 1;
43
- }
44
-
45
- .${classes.title} {
46
19
  display: flex;
47
- align-items: center;
48
- gap: ${gap}px;
49
-
50
- .${classes.titleText} {
51
- max-width: calc(100% - 39px);
52
- font-weight: bold;
53
- font-size: ${17 / 14}em;
54
- padding: calc((32px - 1.5em) / 2) 0;
55
- }
56
-
57
- &:after {
58
- content: '';
59
- flex: 1;
60
- align-self: flex-start;
61
- margin-top: ${32 / 2}px;
62
- height: 1px;
63
- background-color: ${divider};
64
- }
65
- }
20
+ align-items: flex-start;
21
+ gap: ${spacing[4]}px;
22
+ -webkit-tap-highlight-color: transparent;
66
23
 
67
- &:last-of-type .${classes.title}:after {
68
- display: none;
69
- }
70
-
71
- &[data-size=small] {
72
24
  .${classes.indicator} {
73
- min-width: 24px;
74
- height: 24px;
25
+ min-width: 32px;
26
+ height: 32px;
27
+ border-radius: 50%;
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ transition: background-color .25s ${easing.easeOut}, color .25s ${easing.easeOut};
75
32
  }
76
33
 
77
34
  &[data-variant=dot] {
78
35
  .${classes.indicator} {
79
- min-width: ${spacing[2]}px;
80
- height: ${spacing[2]}px;
81
- margin-top: ${(24 - spacing[2]) / 2}px;
36
+ min-width: ${spacing[3]}px;
37
+ height: ${spacing[3]}px;
38
+ margin-top: ${(32 - spacing[3]) / 2}px;
82
39
  }
83
40
  }
84
41
 
42
+ .${classes.label} {
43
+ flex: 1;
44
+ }
45
+
85
46
  .${classes.title} {
47
+ display: flex;
48
+ align-items: center;
49
+ gap: ${gap}px;
50
+
86
51
  .${classes.titleText} {
87
- padding: calc((24px - 1.5em) / 2) 0;
88
- font-size: ${15 / 14}em;
52
+ max-width: calc(100% - 39px);
53
+ font-weight: bold;
54
+ font-size: ${17 / 14}em;
55
+ padding: calc((32px - 1.5em) / 2) 0;
89
56
  }
90
57
 
91
- &:after {
92
- margin-top: ${24 / 2}px;
58
+ &::after {
59
+ content: '';
60
+ flex: 1;
61
+ align-self: flex-start;
62
+ margin-top: ${32 / 2}px;
63
+ height: 1px;
64
+ background-color: ${divider};
93
65
  }
94
66
  }
95
- }
96
67
 
97
- &[data-size=large] {
98
- .${classes.indicator} {
99
- min-width: 40px;
100
- height: 40px;
68
+ &:last-of-type .${classes.title}::after {
69
+ display: none;
101
70
  }
102
71
 
103
- &[data-variant=dot] {
72
+ &[data-size=small] {
104
73
  .${classes.indicator} {
105
- min-width: ${spacing[4]}px;
106
- height: ${spacing[4]}px;
107
- margin-top: ${(40 - spacing[4]) / 2}px;
74
+ min-width: 24px;
75
+ height: 24px;
108
76
  }
109
- }
110
77
 
111
- .${classes.title} {
112
- .${classes.titleText} {
113
- padding: calc((40px - 1.5em) / 2) 0;
78
+ &[data-variant=dot] {
79
+ .${classes.indicator} {
80
+ min-width: ${spacing[2]}px;
81
+ height: ${spacing[2]}px;
82
+ margin-top: ${(24 - spacing[2]) / 2}px;
83
+ }
114
84
  }
115
85
 
116
- &:after {
117
- margin-top: ${40 / 2}px;
86
+ .${classes.title} {
87
+ .${classes.titleText} {
88
+ padding: calc((24px - 1.5em) / 2) 0;
89
+ font-size: ${15 / 14}em;
90
+ }
91
+
92
+ &::after {
93
+ margin-top: ${24 / 2}px;
94
+ }
118
95
  }
119
96
  }
120
- }
121
97
 
122
- .${classes.description} {
123
- color: ${text.secondary};
124
- }
125
-
126
- &[data-status=waiting],
127
- &[data-status=skipped] {
128
- .${classes.indicator} {
129
- background-color: ${gray(.1)};
98
+ &[data-size=large] {
99
+ .${classes.indicator} {
100
+ min-width: 40px;
101
+ height: 40px;
102
+ }
103
+
104
+ &[data-variant=dot] {
105
+ .${classes.indicator} {
106
+ min-width: ${spacing[4]}px;
107
+ height: ${spacing[4]}px;
108
+ margin-top: ${(40 - spacing[4]) / 2}px;
109
+ }
110
+ }
111
+
112
+ .${classes.title} {
113
+ .${classes.titleText} {
114
+ padding: calc((40px - 1.5em) / 2) 0;
115
+ }
116
+
117
+ &::after {
118
+ margin-top: ${40 / 2}px;
119
+ }
120
+ }
130
121
  }
131
122
 
132
- .${classes.titleText} {
123
+ .${classes.description} {
133
124
  color: ${text.secondary};
134
125
  }
135
- }
136
-
137
- &[data-status=processing] {
138
- .${classes.indicator} {
139
- background-color: ${colorValue};
140
- color: #ffffff;
141
- }
142
126
 
143
- &[data-variant=dot] {
127
+ &[data-status=waiting],
128
+ &[data-status=skipped] {
144
129
  .${classes.indicator} {
145
- outline: 1px solid ${colorValue};
146
- outline-offset: 2px;
130
+ background-color: ${gray(.1)};
147
131
  }
148
- }
149
- }
150
132
 
151
- &[data-status=finished] {
152
- .${classes.indicator} {
153
- background-color: ${finishedBg};
154
- color: ${colorValue};
133
+ .${classes.titleText} {
134
+ color: ${text.secondary};
135
+ }
155
136
  }
156
137
 
157
- &[data-variant=dot] {
138
+ &[data-status=processing] {
158
139
  .${classes.indicator} {
159
140
  background-color: ${colorValue};
141
+ color: #ffffff;
160
142
  }
161
- }
162
143
 
163
- .${classes.title}:after {
164
- background-color: ${colorValue};
165
- }
166
- }
167
-
168
- &[data-status=error] {
169
- .${classes.indicator} {
170
- background-color: ${colors.error.main};
171
- color: #ffffff;
172
- }
173
-
174
- &[data-variant=dot] {
175
- .${classes.indicator} {
176
- outline: 1px solid ${colors.error.main};
177
- outline-offset: 2px;
144
+ &[data-variant=dot] {
145
+ .${classes.indicator} {
146
+ outline: 1px solid ${colorValue};
147
+ outline-offset: 2px;
148
+ }
178
149
  }
179
150
  }
180
- }
181
151
 
182
- &[data-status=warning] {
183
- .${classes.indicator} {
184
- background-color: ${colors.warning.main};
185
- color: #ffffff;
186
- }
187
-
188
- &[data-variant=dot] {
152
+ &[data-status=finished] {
189
153
  .${classes.indicator} {
190
- outline: 1px solid ${colors.warning.main};
191
- outline-offset: 2px;
154
+ background-color: ${finishedBg};
155
+ color: ${colorValue};
192
156
  }
193
- }
194
- }
195
157
 
196
- &[data-clickable=true] {
197
- cursor: pointer;
198
- border-radius: ${borderRadius}px;
199
- transition: background-color .25s ${easing.easeOut};
200
-
201
- &:hover {
202
- background-color: ${gray(mode === 'light' ? .03 : .18)};
203
- }
158
+ &[data-variant=dot] {
159
+ .${classes.indicator} {
160
+ background-color: ${colorValue};
161
+ }
162
+ }
204
163
 
205
- &:active {
206
- transition: background-color 0s;
207
- background-color: ${gray(mode === 'light' ? .06 : .15)};
164
+ .${classes.title}::after {
165
+ background-color: ${colorValue};
166
+ }
208
167
  }
209
- }
210
168
 
211
- &[data-orientation=vertical] {
212
- .${classes.indicatorWrap} {
213
- align-self: stretch;
214
- display: flex;
215
- flex-direction: column;
216
- align-items: center;
217
- gap: ${gap}px;
169
+ &[data-status=error] {
170
+ .${classes.indicator} {
171
+ background-color: ${colors.error.main};
172
+ color: #ffffff;
173
+ }
218
174
 
219
- &:after {
220
- content: '';
221
- flex: 1;
222
- width: 1px;
223
- background-color: ${divider};
175
+ &[data-variant=dot] {
176
+ .${classes.indicator} {
177
+ outline: 1px solid ${colors.error.main};
178
+ outline-offset: 2px;
179
+ }
224
180
  }
225
181
  }
226
182
 
227
- &:not(:last-of-type) {
228
- .${classes.label} {
229
- padding-bottom: ${gap}px;
183
+ &[data-status=warning] {
184
+ .${classes.indicator} {
185
+ background-color: ${colors.warning.main};
186
+ color: #ffffff;
230
187
  }
231
- }
232
188
 
233
- &:last-of-type {
234
- .${classes.indicatorWrap}:after {
235
- display: none;
189
+ &[data-variant=dot] {
190
+ .${classes.indicator} {
191
+ outline: 1px solid ${colors.warning.main};
192
+ outline-offset: 2px;
193
+ }
236
194
  }
237
195
  }
238
196
 
239
- .${classes.title}:after {
240
- display: none;
241
- }
197
+ &[data-clickable=true] {
198
+ cursor: pointer;
199
+ border-radius: ${borderRadius}px;
200
+ transition: background-color .25s ${easing.easeOut};
242
201
 
243
- &[data-status=finished] {
244
- .${classes.indicatorWrap}:after {
245
- background-color: ${colorValue};
202
+ &:hover {
203
+ background-color: ${gray(mode === 'light' ? .03 : .18)};
246
204
  }
247
- }
248
- }
249
205
 
250
- &[data-label-placement=bottom]:not([data-orientation=vertical]) {
251
- flex-direction: column;
252
- align-items: center;
206
+ &:active {
207
+ transition: background-color 0s;
208
+ background-color: ${gray(mode === 'light' ? .06 : .15)};
209
+ }
210
+ }
253
211
 
254
- .${classes.indicatorWrap} {
255
- align-self: stretch;
256
- display: flex;
257
- align-items: center;
258
- gap: ${gap}px;
259
- transform: translateX(calc(50% - 32px / 2));
212
+ &[data-orientation=vertical] {
213
+ .${classes.indicatorWrap} {
214
+ align-self: stretch;
215
+ display: flex;
216
+ flex-direction: column;
217
+ align-items: center;
218
+ gap: ${gap}px;
219
+
220
+ &::after {
221
+ content: '';
222
+ flex: 1;
223
+ width: 1px;
224
+ background-color: ${divider};
225
+ }
226
+ }
260
227
 
261
- &:after {
262
- content: '';
263
- flex: 1;
264
- height: 1px;
265
- background-color: ${divider};
228
+ &:not(:last-of-type) {
229
+ .${classes.label} {
230
+ padding-bottom: ${gap}px;
231
+ }
266
232
  }
267
- }
268
233
 
269
- &:last-of-type {
270
- .${classes.indicatorWrap}:after {
271
- display: none;
234
+ &:last-of-type {
235
+ .${classes.indicatorWrap}::after {
236
+ display: none;
237
+ }
272
238
  }
273
- }
274
239
 
275
- &[data-variant=dot] {
276
- .${classes.indicatorWrap} {
277
- transform: translateX(calc(50% - ${spacing[3]}px / 2));
240
+ .${classes.title}::after {
241
+ display: none;
278
242
  }
279
243
 
280
- .${classes.indicator} {
281
- margin: 0;
244
+ &[data-status=finished] {
245
+ .${classes.indicatorWrap}::after {
246
+ background-color: ${colorValue};
247
+ }
282
248
  }
283
249
  }
284
250
 
285
- &[data-size=small] {
251
+ &[data-label-placement=bottom]:not([data-orientation=vertical]) {
252
+ flex-direction: column;
253
+ align-items: center;
254
+
286
255
  .${classes.indicatorWrap} {
287
- transform: translateX(calc(50% - 24px / 2));
256
+ align-self: stretch;
257
+ display: flex;
258
+ align-items: center;
259
+ gap: ${gap}px;
260
+ transform: translateX(calc(50% - 32px / 2));
261
+
262
+ &::after {
263
+ content: '';
264
+ flex: 1;
265
+ height: 1px;
266
+ background-color: ${divider};
267
+ }
268
+ }
269
+
270
+ &:last-of-type {
271
+ .${classes.indicatorWrap}::after {
272
+ display: none;
273
+ }
288
274
  }
289
275
 
290
276
  &[data-variant=dot] {
291
277
  .${classes.indicatorWrap} {
292
- transform: translateX(calc(50% - ${spacing[2]}px / 2));
278
+ transform: translateX(calc(50% - ${spacing[3]}px / 2));
279
+ }
280
+
281
+ .${classes.indicator} {
282
+ margin: 0;
293
283
  }
294
284
  }
295
- }
296
285
 
297
- &[data-size=large] {
298
- .${classes.indicatorWrap} {
299
- transform: translateX(calc(50% - 40px / 2));
286
+ &[data-size=small] {
287
+ .${classes.indicatorWrap} {
288
+ transform: translateX(calc(50% - 24px / 2));
289
+ }
290
+
291
+ &[data-variant=dot] {
292
+ .${classes.indicatorWrap} {
293
+ transform: translateX(calc(50% - ${spacing[2]}px / 2));
294
+ }
295
+ }
300
296
  }
301
297
 
302
- &[data-variant=dot] {
298
+ &[data-size=large] {
303
299
  .${classes.indicatorWrap} {
304
- transform: translateX(calc(50% - ${spacing[4]}px / 2));
300
+ transform: translateX(calc(50% - 40px / 2));
301
+ }
302
+
303
+ &[data-variant=dot] {
304
+ .${classes.indicatorWrap} {
305
+ transform: translateX(calc(50% - ${spacing[4]}px / 2));
306
+ }
305
307
  }
306
308
  }
307
- }
308
309
 
309
- &[data-status=finished] {
310
- .${classes.indicatorWrap}:after {
311
- background-color: ${colorValue};
310
+ &[data-status=finished] {
311
+ .${classes.indicatorWrap}::after {
312
+ background-color: ${colorValue};
313
+ }
312
314
  }
313
- }
314
315
 
315
-
316
316
 
317
- .${classes.title} {
318
- justify-content: center;
317
+ .${classes.title} {
318
+ justify-content: center;
319
319
 
320
- &:after {
321
- display: none;
320
+ &::after {
321
+ display: none;
322
+ }
322
323
  }
323
- }
324
324
 
325
- .${classes.description} {
326
- text-align: center;
325
+ .${classes.description} {
326
+ text-align: center;
327
+ }
327
328
  }
328
329
  }
329
330
  `;
@@ -2,9 +2,11 @@ import { css } from '@emotion/react';
2
2
  import { defineInnerClasses, defineCss } from '../../utils';
3
3
  export const classes = defineInnerClasses('stepper');
4
4
  export const style = defineCss(() => css `
5
- display: flex;
5
+ @layer reset {
6
+ display: flex;
6
7
 
7
- &[data-orientation=vertical] {
8
- flex-direction: column;
8
+ &[data-orientation=vertical] {
9
+ flex-direction: column;
10
+ }
9
11
  }
10
12
  `);