@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
@@ -10,73 +10,75 @@ export const classes = defineInnerClasses('slidable-actions', [
10
10
  'actionItemIcon'
11
11
  ]);
12
12
  export const style = defineCss(({ background }) => css `
13
- position: relative;
14
- overflow: hidden;
15
-
16
- .${classes.content} {
17
- touch-action: pan-y;
13
+ @layer reset {
18
14
  position: relative;
19
- z-index: 1;
20
- }
15
+ overflow: hidden;
21
16
 
22
- .${classes.actions} {
23
- position: absolute;
24
- inset: 0;
17
+ .${classes.content} {
18
+ touch-action: pan-y;
19
+ position: relative;
20
+ z-index: 1;
21
+ }
25
22
 
26
- .${classes.actionsLeft}, .${classes.actionsRight} {
27
- width: 100%;
28
- height: 100%;
23
+ .${classes.actions} {
29
24
  position: absolute;
30
- top: 0;
25
+ inset: 0;
31
26
 
32
- .${classes.actionItem} {
27
+ .${classes.actionsLeft}, .${classes.actionsRight} {
33
28
  width: 100%;
34
29
  height: 100%;
35
- display: flex;
36
- flex-direction: column;
37
- justify-content: center;
38
- color: ${background.content};
39
30
  position: absolute;
40
31
  top: 0;
41
32
 
42
- .${classes.actionItemButton} {
43
- flex: 1;
33
+ .${classes.actionItem} {
34
+ width: 100%;
35
+ height: 100%;
44
36
  display: flex;
45
37
  flex-direction: column;
46
- align-items: center;
47
38
  justify-content: center;
48
- padding: 0 18px;
49
- border-radius: 0;
50
- }
39
+ color: ${background.content};
40
+ position: absolute;
41
+ top: 0;
51
42
 
52
- .${classes.actionItemIcon} {
53
- display: flex;
43
+ .${classes.actionItemButton} {
44
+ flex: 1;
45
+ display: flex;
46
+ flex-direction: column;
47
+ align-items: center;
48
+ justify-content: center;
49
+ padding: 0 18px;
50
+ border-radius: 0;
51
+ }
52
+
53
+ .${classes.actionItemIcon} {
54
+ display: flex;
55
+ }
54
56
  }
55
57
  }
56
- }
57
58
 
58
- .${classes.actionsLeft} {
59
- right: 100%;
59
+ .${classes.actionsLeft} {
60
+ right: 100%;
60
61
 
61
- .${classes.actionItem} {
62
- align-items: flex-end;
63
- right: 0;
62
+ .${classes.actionItem} {
63
+ align-items: flex-end;
64
+ right: 0;
65
+ }
64
66
  }
65
- }
66
67
 
67
- .${classes.actionsRight} {
68
- left: 100%;
68
+ .${classes.actionsRight} {
69
+ left: 100%;
69
70
 
70
- .${classes.actionItem} {
71
- align-items: flex-start;
72
- left: 0;
71
+ .${classes.actionItem} {
72
+ align-items: flex-start;
73
+ left: 0;
74
+ }
73
75
  }
74
76
  }
75
- }
76
77
 
77
- &:not([data-dragging=true]) {
78
- .${classes.content}, .${classes.actionItem} {
79
- transition: translate .25s ease-out;
78
+ &:not([data-dragging=true]) {
79
+ .${classes.content}, .${classes.actionItem} {
80
+ transition: translate .25s ease-out;
81
+ }
80
82
  }
81
83
  }
82
84
  `);
@@ -20,165 +20,167 @@ export function useStyle({ color }) {
20
20
  const darker = c.darken(.1).hex();
21
21
  const outlineColor = c.alpha(.15).string();
22
22
  return css `
23
- min-height: 24px;
24
- display: flex;
25
- align-items: center;
26
- gap: ${spacing[2]}px;
23
+ @layer reset {
24
+ min-height: 24px;
25
+ display: flex;
26
+ align-items: center;
27
+ gap: ${spacing[2]}px;
28
+
29
+ &[data-inset=true] {
30
+ min-height: 0;
31
+ }
27
32
 
28
- &[data-inset=true] {
29
- min-height: 0;
30
- }
33
+ .${classes.rail} {
34
+ flex: 1;
35
+ border-radius: 1000em;
36
+ cursor: pointer;
37
+ background-color: ${gray(.1)};
38
+ transition: background-color .25s ${easing.easeOut};
39
+ touch-action: none;
31
40
 
32
- .${classes.rail} {
33
- flex: 1;
34
- border-radius: 1000em;
35
- cursor: pointer;
36
- background-color: ${gray(.1)};
37
- transition: background-color .25s ${easing.easeOut};
38
- touch-action: none;
41
+ &:hover {
42
+ background-color: ${mode === 'light' ? divider : gray(.05)};
43
+ }
39
44
 
40
- &:hover {
41
- background-color: ${mode === 'light' ? divider : gray(.05)};
45
+ .${classes.railWrap} {
46
+ height: 100%;
47
+ position: relative;
48
+ border-radius: inherit;
49
+ }
42
50
  }
43
51
 
44
- .${classes.railWrap} {
52
+ &[data-orientation=vertical] {
53
+ min-height: auto;
45
54
  height: 100%;
46
- position: relative;
47
- border-radius: inherit;
48
- }
49
- }
55
+ flex-direction: column;
50
56
 
51
- &[data-orientation=vertical] {
52
- min-height: auto;
53
- height: 100%;
54
- flex-direction: column;
57
+ .${classes.rail} {
58
+ height: 100%;
59
+ }
55
60
 
56
- .${classes.rail} {
57
- height: 100%;
61
+ .${classes.handle} {
62
+ transform: translate(-50%, 50%);
63
+ }
58
64
  }
59
65
 
60
66
  .${classes.handle} {
61
- transform: translate(-50%, 50%);
67
+ cursor: pointer;
68
+ padding: 0;
69
+ border-radius: 50%;
70
+ border: 0 solid ${colorValue};
71
+ position: absolute;
72
+ z-index: 1;
73
+ transform: translate(-50%, -50%);
74
+ -webkit-tap-highlight-color: transparent;
62
75
  }
63
- }
64
76
 
65
- .${classes.handle} {
66
- cursor: pointer;
67
- padding: 0;
68
- border-radius: 50%;
69
- border: 0 solid ${colorValue};
70
- position: absolute;
71
- z-index: 1;
72
- transform: translate(-50%, -50%);
73
- -webkit-tap-highlight-color: transparent;
74
- }
75
-
76
- &:not([data-disable-outline=true]) {
77
- .${classes.handle} {
78
- outline: 0 solid ${outlineColor};
79
- }
80
- }
81
-
82
- &[data-variant=filled] {
83
- .${classes.handle} {
84
- transition: background-color .25s ${easing.easeOut}, outline-width .25s ${easing.easeOut};
85
- background-color: ${colorValue};
86
-
87
- &:hover {
88
- outline-width: 6px;
89
- background-color: ${lighter};
90
- }
91
-
92
- &:active {
93
- transition: background-color 0s, outline-width .25s ${easing.swing};
94
- background-color: ${darker};
95
- outline-width: 9px;
96
- }
97
-
98
- &:focus {
99
- transition: background-color .25s ${easing.easeOut}, outline-width .25s ${easing.swing};
100
- outline-width: 9px;
77
+ &:not([data-disable-outline=true]) {
78
+ .${classes.handle} {
79
+ outline: 0 solid ${outlineColor};
101
80
  }
102
81
  }
103
- }
104
-
105
- &[data-variant=outlined] {
106
- .${classes.handle} {
107
- transition: outline-width .25s ${easing.easeOut};
108
- background-color: ${background.content};
109
- border-width: 2px;
110
-
111
- &:hover {
112
- outline-width: 6px;
113
- }
114
-
115
- &:active,
116
- &:focus {
117
- transition: outline-width .25s ${easing.swing};
118
- outline-width: 9px;
82
+
83
+ &[data-variant=filled] {
84
+ .${classes.handle} {
85
+ transition: background-color .25s ${easing.easeOut}, outline-width .25s ${easing.easeOut};
86
+ background-color: ${colorValue};
87
+
88
+ &:hover {
89
+ outline-width: 6px;
90
+ background-color: ${lighter};
91
+ }
92
+
93
+ &:active {
94
+ transition: background-color 0s, outline-width .25s ${easing.swing};
95
+ background-color: ${darker};
96
+ outline-width: 9px;
97
+ }
98
+
99
+ &:focus {
100
+ transition: background-color .25s ${easing.easeOut}, outline-width .25s ${easing.swing};
101
+ outline-width: 9px;
102
+ }
119
103
  }
120
104
  }
121
- }
122
105
 
123
- .${classes.track} {
124
- position: absolute;
125
- background-color: ${colorValue};
106
+ &[data-variant=outlined] {
107
+ .${classes.handle} {
108
+ transition: outline-width .25s ${easing.easeOut};
109
+ background-color: ${background.content};
110
+ border-width: 2px;
111
+
112
+ &:hover {
113
+ outline-width: 6px;
114
+ }
115
+
116
+ &:active,
117
+ &:focus {
118
+ transition: outline-width .25s ${easing.swing};
119
+ outline-width: 9px;
120
+ }
121
+ }
122
+ }
126
123
 
127
- &:before {
128
- content: '';
129
- aspect-ratio: 1;
130
- border-radius: 50%;
124
+ .${classes.track} {
131
125
  position: absolute;
132
- background-color: inherit;
133
- }
134
- }
126
+ background-color: ${colorValue};
135
127
 
136
- &[data-orientation=horizontal] {
137
- .${classes.track}:before {
138
- height: 100%;
139
- top: 0;
140
- left: 0;
141
- transform: translateX(-50%);
128
+ &::before {
129
+ content: '';
130
+ aspect-ratio: 1;
131
+ border-radius: 50%;
132
+ position: absolute;
133
+ background-color: inherit;
134
+ }
142
135
  }
143
- }
144
136
 
145
- &[data-orientation=vertical] {
146
- .${classes.track}:before {
147
- width: 100%;
148
- bottom: 0;
149
- left: 0;
150
- transform: translateY(50%);
137
+ &[data-orientation=horizontal] {
138
+ .${classes.track}::before {
139
+ height: 100%;
140
+ top: 0;
141
+ left: 0;
142
+ transform: translateX(-50%);
143
+ }
151
144
  }
152
- }
153
-
154
- .${classes.mark} {
155
- aspect-ratio: 1;
156
- border: 2px solid ${gray(mode === 'light' ? .2 : .1)};
157
- border-radius: 50%;
158
- background-color: ${background.content};
159
- position: absolute;
160
- transform: translate(-50%, -50%);
161
145
 
162
- &[data-active=true] {
163
- border-color: ${colorValue};
146
+ &[data-orientation=vertical] {
147
+ .${classes.track}::before {
148
+ width: 100%;
149
+ bottom: 0;
150
+ left: 0;
151
+ transform: translateY(50%);
152
+ }
164
153
  }
165
154
 
166
- .${classes.label} {
167
- color: ${text.secondary};
155
+ .${classes.mark} {
156
+ aspect-ratio: 1;
157
+ border: 2px solid ${gray(mode === 'light' ? .2 : .1)};
158
+ border-radius: 50%;
159
+ background-color: ${background.content};
168
160
  position: absolute;
169
- font-size: ${13 / 14}em;
161
+ transform: translate(-50%, -50%);
162
+
163
+ &[data-active=true] {
164
+ border-color: ${colorValue};
165
+ }
166
+
167
+ .${classes.label} {
168
+ color: ${text.secondary};
169
+ position: absolute;
170
+ font-size: ${13 / 14}em;
171
+ }
170
172
  }
171
- }
172
173
 
173
- &[data-orientation=vertical] {
174
- .${classes.mark} {
175
- transform: translate(-50%, 50%);
174
+ &[data-orientation=vertical] {
175
+ .${classes.mark} {
176
+ transform: translate(-50%, 50%);
177
+ }
176
178
  }
177
- }
178
179
 
179
- &[data-inset=true] {
180
- .${classes.mark} {
181
- z-index: 2;
180
+ &[data-inset=true] {
181
+ .${classes.mark} {
182
+ z-index: 2;
183
+ }
182
184
  }
183
185
  }
184
186
  `;
@@ -17,131 +17,133 @@ export const style = defineCss(theme => {
17
17
  return [
18
18
  appStyleCallback(theme),
19
19
  css `
20
- width: 100%;
21
- height: auto;
22
- display: flex;
23
- flex-direction: column;
24
- padding: ${spacing[5]}px;
25
- position: fixed;
26
- z-index: ${zIndex.snackbar};
27
- pointer-events: none;
28
-
29
- &[data-use-to=notification] {
30
- flex-direction: column-reverse;
31
- }
32
-
33
- .${classes.itemWrap} {
20
+ @layer reset {
21
+ width: 100%;
22
+ height: auto;
34
23
  display: flex;
35
- align-items: flex-start;
36
- overflow: visible;
37
- }
38
-
39
- &[data-place="0"], &[data-place="1"], &[data-place="2"] {
40
- top: 0;
41
- }
24
+ flex-direction: column;
25
+ padding: ${spacing[5]}px;
26
+ position: fixed;
27
+ z-index: ${zIndex.snackbar};
28
+ pointer-events: none;
29
+
30
+ &[data-use-to=notification] {
31
+ flex-direction: column-reverse;
32
+ }
42
33
 
43
- &[data-place="3"], &[data-place="4"], &[data-place="5"] {
44
- bottom: 0;
45
- }
34
+ .${classes.itemWrap} {
35
+ display: flex;
36
+ align-items: flex-start;
37
+ overflow: visible;
38
+ }
46
39
 
47
- &[data-place="0"],
48
- &[data-place="3"] {
49
- left: 0;
40
+ &[data-place="0"], &[data-place="1"], &[data-place="2"] {
41
+ top: 0;
42
+ }
50
43
 
51
- .${classes.itemWrap} {
52
- justify-content: flex-start;
44
+ &[data-place="3"], &[data-place="4"], &[data-place="5"] {
45
+ bottom: 0;
53
46
  }
54
- }
55
47
 
56
- &[data-place="1"],
57
- &[data-place="4"] {
58
- left: 50%;
59
- transform: translateX(-50%);
48
+ &[data-place="0"],
49
+ &[data-place="3"] {
50
+ left: 0;
60
51
 
61
- .${classes.itemWrap} {
62
- justify-content: center;
52
+ .${classes.itemWrap} {
53
+ justify-content: flex-start;
54
+ }
63
55
  }
64
- }
65
56
 
66
- &[data-place="2"],
67
- &[data-place="5"] {
68
- right: 0;
57
+ &[data-place="1"],
58
+ &[data-place="4"] {
59
+ left: 50%;
60
+ transform: translateX(-50%);
69
61
 
70
- .${classes.itemWrap} {
71
- justify-content: flex-end;
62
+ .${classes.itemWrap} {
63
+ justify-content: center;
64
+ }
72
65
  }
73
- }
74
66
 
75
- &[data-place="1"] .${classes.item} {
76
- transform-origin: left top;
77
- }
67
+ &[data-place="2"],
68
+ &[data-place="5"] {
69
+ right: 0;
78
70
 
79
- &[data-place="2"] .${classes.item} {
80
- transform-origin: top;
81
- }
71
+ .${classes.itemWrap} {
72
+ justify-content: flex-end;
73
+ }
74
+ }
82
75
 
83
- &[data-place="3"] .${classes.item} {
84
- transform-origin: right top;
85
- }
76
+ &[data-place="1"] .${classes.item} {
77
+ transform-origin: left top;
78
+ }
86
79
 
87
- &[data-place="4"] .${classes.item} {
88
- transform-origin: left bottom;
89
- }
80
+ &[data-place="2"] .${classes.item} {
81
+ transform-origin: top;
82
+ }
90
83
 
91
- &[data-place="5"] .${classes.item} {
92
- transform-origin: bottom;
93
- }
84
+ &[data-place="3"] .${classes.item} {
85
+ transform-origin: right top;
86
+ }
94
87
 
95
- &[data-place="6"] .${classes.item} {
96
- transform-origin: right bottom;
97
- }
88
+ &[data-place="4"] .${classes.item} {
89
+ transform-origin: left bottom;
90
+ }
98
91
 
99
- .${classes.item} {
100
- pointer-events: all !important;
101
- max-width: 60%;
102
- display: flex;
103
- gap: ${spacing[4]}px;
104
- box-shadow: 2px 4px 18px rgba(0, 0, 0, .16);
105
- padding: ${spacing[3]}px ${spacing[4]}px;
106
- margin-bottom: ${spacing[4]}px;
107
- border-radius: ${borderRadius}px;
108
- background-color: ${background.content};
109
-
110
- &[data-variant=filled] {
111
- color: #ffffff;
92
+ &[data-place="5"] .${classes.item} {
93
+ transform-origin: bottom;
112
94
  }
113
95
 
114
- .${classes.icon} {
115
- font-size: ${17 / 14}em;
96
+ &[data-place="6"] .${classes.item} {
97
+ transform-origin: right bottom;
116
98
  }
117
99
 
118
- .${classes.text} {
119
- flex: 1;
100
+ .${classes.item} {
101
+ pointer-events: all !important;
102
+ max-width: 60%;
103
+ display: flex;
104
+ gap: ${spacing[4]}px;
105
+ box-shadow: 2px 4px 18px rgba(0, 0, 0, .16);
106
+ padding: ${spacing[3]}px ${spacing[4]}px;
107
+ margin-bottom: ${spacing[4]}px;
108
+ border-radius: ${borderRadius}px;
109
+ background-color: ${background.content};
110
+
111
+ &[data-variant=filled] {
112
+ color: #ffffff;
113
+ }
120
114
 
121
- .${classes.title} {
115
+ .${classes.icon} {
116
+ font-size: ${17 / 14}em;
117
+ }
118
+
119
+ .${classes.text} {
122
120
  flex: 1;
123
- font-weight: bold;
124
- font-size: ${15 / 14}em;
125
- margin-top: 2px;
126
121
 
127
- & + .${classes.content} {
128
- margin-top: 4px;
122
+ .${classes.title} {
123
+ flex: 1;
124
+ font-weight: bold;
125
+ font-size: ${15 / 14}em;
126
+ margin-top: 2px;
127
+
128
+ & + .${classes.content} {
129
+ margin-top: 4px;
130
+ }
129
131
  }
130
- }
131
132
 
132
- .${classes.content} {
133
- margin-top: 2px;
133
+ .${classes.content} {
134
+ margin-top: 2px;
135
+ }
134
136
  }
135
- }
136
137
 
137
- .${classes.close} {
138
- margin: -4px -4px 0 0;
138
+ .${classes.close} {
139
+ margin: -4px -4px 0 0;
140
+ }
139
141
  }
140
- }
141
142
 
142
- &[data-use-to=notification] {
143
- .${classes.item} {
144
- width: 360px;
143
+ &[data-use-to=notification] {
144
+ .${classes.item} {
145
+ width: 360px;
146
+ }
145
147
  }
146
148
  }
147
149
  `
@@ -6,19 +6,21 @@ export const classes = defineInnerClasses('status', [
6
6
  'dot'
7
7
  ]);
8
8
  export const style = defineCss(({ spacing, easing }) => css `
9
- display: inline-flex;
10
- align-items: center;
11
- gap: ${spacing[2]}px;
9
+ @layer reset {
10
+ display: inline-flex;
11
+ align-items: center;
12
+ gap: ${spacing[2]}px;
12
13
 
13
- .${classes.dot} {
14
- width: 6px;
15
- height: 6px;
16
- border-radius: 50%;
17
- }
14
+ .${classes.dot} {
15
+ width: 6px;
16
+ height: 6px;
17
+ border-radius: 50%;
18
+ }
18
19
 
19
- &[data-animation=true] {
20
- .${classes.icon} {
21
- animation: ${statusAnim} .8s ${easing.easeInOut} infinite;
20
+ &[data-animation=true] {
21
+ .${classes.icon} {
22
+ animation: ${statusAnim} .8s ${easing.easeInOut} infinite;
23
+ }
22
24
  }
23
25
  }
24
26
  `);