@react-spectrum/s2 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/dist/private/Accordion.cjs +2 -2
  2. package/dist/private/Accordion.css +2 -2
  3. package/dist/private/Accordion.mjs +2 -2
  4. package/dist/private/ActionBar.cjs +59 -59
  5. package/dist/private/ActionBar.css +58 -58
  6. package/dist/private/ActionBar.mjs +59 -59
  7. package/dist/private/ActionButton.cjs +247 -247
  8. package/dist/private/ActionButton.css +169 -169
  9. package/dist/private/ActionButton.mjs +247 -247
  10. package/dist/private/ActionButtonGroup.cjs +15 -15
  11. package/dist/private/ActionButtonGroup.css +9 -9
  12. package/dist/private/ActionButtonGroup.mjs +15 -15
  13. package/dist/private/Add.cjs +10 -10
  14. package/dist/private/Add.css +6 -6
  15. package/dist/private/Add.mjs +10 -10
  16. package/dist/private/AlertDialog.cjs +3 -3
  17. package/dist/private/AlertDialog.css +3 -3
  18. package/dist/private/AlertDialog.mjs +3 -3
  19. package/dist/private/Asterisk.cjs +6 -6
  20. package/dist/private/Asterisk.css +4 -4
  21. package/dist/private/Asterisk.mjs +6 -6
  22. package/dist/private/Avatar.cjs +16 -16
  23. package/dist/private/Avatar.css +16 -16
  24. package/dist/private/Avatar.mjs +16 -16
  25. package/dist/private/AvatarGroup.cjs +120 -120
  26. package/dist/private/AvatarGroup.css +31 -31
  27. package/dist/private/AvatarGroup.mjs +120 -120
  28. package/dist/private/Badge.cjs +197 -197
  29. package/dist/private/Badge.css +125 -125
  30. package/dist/private/Badge.mjs +197 -197
  31. package/dist/private/Breadcrumbs.cjs +234 -234
  32. package/dist/private/Breadcrumbs.css +100 -100
  33. package/dist/private/Breadcrumbs.mjs +234 -234
  34. package/dist/private/Button.cjs +335 -326
  35. package/dist/private/Button.cjs.map +1 -1
  36. package/dist/private/Button.css +176 -172
  37. package/dist/private/Button.css.map +1 -1
  38. package/dist/private/Button.mjs +335 -326
  39. package/dist/private/Button.mjs.map +1 -1
  40. package/dist/private/ButtonGroup.cjs +21 -21
  41. package/dist/private/ButtonGroup.css +16 -16
  42. package/dist/private/ButtonGroup.mjs +21 -21
  43. package/dist/private/Calendar.cjs +232 -232
  44. package/dist/private/Calendar.css +149 -149
  45. package/dist/private/Calendar.mjs +232 -232
  46. package/dist/private/Card.cjs +309 -309
  47. package/dist/private/Card.css +206 -206
  48. package/dist/private/Card.mjs +309 -309
  49. package/dist/private/CardView.cjs +17 -17
  50. package/dist/private/CardView.css +17 -17
  51. package/dist/private/CardView.mjs +17 -17
  52. package/dist/private/CenterBaseline.cjs +1 -1
  53. package/dist/private/CenterBaseline.css +2 -2
  54. package/dist/private/CenterBaseline.mjs +1 -1
  55. package/dist/private/Checkbox.cjs +188 -188
  56. package/dist/private/Checkbox.css +110 -110
  57. package/dist/private/Checkbox.mjs +188 -188
  58. package/dist/private/CheckboxGroup.cjs +43 -43
  59. package/dist/private/CheckboxGroup.css +37 -37
  60. package/dist/private/CheckboxGroup.mjs +43 -43
  61. package/dist/private/Checkmark.cjs +12 -12
  62. package/dist/private/Checkmark.css +8 -8
  63. package/dist/private/Checkmark.mjs +12 -12
  64. package/dist/private/Chevron.cjs +12 -12
  65. package/dist/private/Chevron.css +10 -10
  66. package/dist/private/Chevron.mjs +12 -12
  67. package/dist/private/ClearButton.cjs +30 -30
  68. package/dist/private/ClearButton.css +30 -30
  69. package/dist/private/ClearButton.mjs +30 -30
  70. package/dist/private/CloseButton.cjs +52 -52
  71. package/dist/private/CloseButton.css +46 -46
  72. package/dist/private/CloseButton.mjs +52 -52
  73. package/dist/private/ColorArea.cjs +16 -16
  74. package/dist/private/ColorArea.css +16 -16
  75. package/dist/private/ColorArea.mjs +16 -16
  76. package/dist/private/ColorField.cjs +31 -31
  77. package/dist/private/ColorField.css +27 -27
  78. package/dist/private/ColorField.mjs +31 -31
  79. package/dist/private/ColorHandle.cjs +27 -27
  80. package/dist/private/ColorHandle.css +42 -42
  81. package/dist/private/ColorHandle.mjs +27 -27
  82. package/dist/private/ColorSlider.cjs +108 -108
  83. package/dist/private/ColorSlider.css +52 -52
  84. package/dist/private/ColorSlider.mjs +108 -108
  85. package/dist/private/ColorSwatch.cjs +29 -29
  86. package/dist/private/ColorSwatch.css +29 -29
  87. package/dist/private/ColorSwatch.mjs +29 -29
  88. package/dist/private/ColorSwatchPicker.cjs +29 -29
  89. package/dist/private/ColorSwatchPicker.css +48 -48
  90. package/dist/private/ColorSwatchPicker.mjs +29 -29
  91. package/dist/private/ColorWheel.cjs +26 -26
  92. package/dist/private/ColorWheel.css +17 -17
  93. package/dist/private/ColorWheel.mjs +26 -26
  94. package/dist/private/ComboBox.cjs +381 -381
  95. package/dist/private/ComboBox.css +188 -188
  96. package/dist/private/ComboBox.mjs +381 -381
  97. package/dist/private/ContextualHelp.cjs +5 -5
  98. package/dist/private/ContextualHelp.css +50 -50
  99. package/dist/private/ContextualHelp.mjs +5 -5
  100. package/dist/private/CornerTriangle.cjs +8 -8
  101. package/dist/private/CornerTriangle.css +6 -6
  102. package/dist/private/CornerTriangle.mjs +8 -8
  103. package/dist/private/Cross.cjs +14 -14
  104. package/dist/private/Cross.css +10 -10
  105. package/dist/private/Cross.mjs +14 -14
  106. package/dist/private/CustomDialog.cjs +25 -25
  107. package/dist/private/CustomDialog.css +25 -25
  108. package/dist/private/CustomDialog.mjs +25 -25
  109. package/dist/private/Dash.cjs +10 -10
  110. package/dist/private/Dash.css +6 -6
  111. package/dist/private/Dash.mjs +10 -10
  112. package/dist/private/DateField.cjs +73 -73
  113. package/dist/private/DateField.css +77 -77
  114. package/dist/private/DateField.mjs +73 -73
  115. package/dist/private/DatePicker.cjs +172 -172
  116. package/dist/private/DatePicker.css +128 -128
  117. package/dist/private/DatePicker.mjs +172 -172
  118. package/dist/private/DateRangePicker.cjs +55 -55
  119. package/dist/private/DateRangePicker.css +59 -59
  120. package/dist/private/DateRangePicker.mjs +55 -55
  121. package/dist/private/Dialog.cjs +17 -17
  122. package/dist/private/Dialog.css +70 -70
  123. package/dist/private/Dialog.mjs +17 -17
  124. package/dist/private/Disclosure.cjs +119 -119
  125. package/dist/private/Disclosure.css +112 -112
  126. package/dist/private/Disclosure.mjs +119 -119
  127. package/dist/private/Divider.cjs +25 -25
  128. package/dist/private/Divider.css +25 -25
  129. package/dist/private/Divider.mjs +25 -25
  130. package/dist/private/DragHandle.cjs +8 -8
  131. package/dist/private/DragHandle.css +6 -6
  132. package/dist/private/DragHandle.mjs +8 -8
  133. package/dist/private/DragPreview.cjs +154 -154
  134. package/dist/private/DragPreview.css +106 -106
  135. package/dist/private/DragPreview.mjs +154 -154
  136. package/dist/private/DropZone.cjs +61 -61
  137. package/dist/private/DropZone.css +57 -57
  138. package/dist/private/DropZone.mjs +61 -61
  139. package/dist/private/Field.cjs +360 -360
  140. package/dist/private/Field.cjs.map +1 -1
  141. package/dist/private/Field.css +160 -160
  142. package/dist/private/Field.mjs +360 -360
  143. package/dist/private/Field.mjs.map +1 -1
  144. package/dist/private/Form.cjs +9 -9
  145. package/dist/private/Form.css +9 -9
  146. package/dist/private/Form.mjs +9 -9
  147. package/dist/private/FullscreenDialog.cjs +5 -5
  148. package/dist/private/FullscreenDialog.css +78 -78
  149. package/dist/private/FullscreenDialog.mjs +5 -5
  150. package/dist/private/IllustratedMessage.cjs +228 -228
  151. package/dist/private/IllustratedMessage.css +72 -72
  152. package/dist/private/IllustratedMessage.mjs +228 -228
  153. package/dist/private/Image.cjs +14 -14
  154. package/dist/private/Image.css +14 -14
  155. package/dist/private/Image.mjs +14 -14
  156. package/dist/private/InlineAlert.cjs +100 -100
  157. package/dist/private/InlineAlert.css +76 -76
  158. package/dist/private/InlineAlert.mjs +100 -100
  159. package/dist/private/LabeledValue.cjs +134 -134
  160. package/dist/private/LabeledValue.css +63 -63
  161. package/dist/private/LabeledValue.mjs +134 -134
  162. package/dist/private/Link.cjs +49 -49
  163. package/dist/private/Link.css +41 -41
  164. package/dist/private/Link.mjs +49 -49
  165. package/dist/private/LinkOut.cjs +8 -8
  166. package/dist/private/LinkOut.css +8 -8
  167. package/dist/private/LinkOut.mjs +8 -8
  168. package/dist/private/ListView.cjs +245 -245
  169. package/dist/private/ListView.css +177 -177
  170. package/dist/private/ListView.mjs +245 -245
  171. package/dist/private/Menu.cjs +446 -446
  172. package/dist/private/Menu.css +196 -196
  173. package/dist/private/Menu.mjs +446 -446
  174. package/dist/private/Meter.cjs +153 -153
  175. package/dist/private/Meter.css +91 -91
  176. package/dist/private/Meter.mjs +153 -153
  177. package/dist/private/Modal.cjs +74 -74
  178. package/dist/private/Modal.css +59 -59
  179. package/dist/private/Modal.mjs +74 -74
  180. package/dist/private/NotificationBadge.cjs +56 -56
  181. package/dist/private/NotificationBadge.css +49 -49
  182. package/dist/private/NotificationBadge.mjs +56 -56
  183. package/dist/private/NumberField.cjs +114 -114
  184. package/dist/private/NumberField.css +99 -99
  185. package/dist/private/NumberField.mjs +114 -114
  186. package/dist/private/Picker.cjs +275 -275
  187. package/dist/private/Picker.css +173 -173
  188. package/dist/private/Picker.mjs +275 -275
  189. package/dist/private/Popover.cjs +95 -95
  190. package/dist/private/Popover.css +75 -75
  191. package/dist/private/Popover.mjs +95 -95
  192. package/dist/private/ProgressBar.cjs +163 -163
  193. package/dist/private/ProgressBar.css +99 -99
  194. package/dist/private/ProgressBar.mjs +163 -163
  195. package/dist/private/ProgressCircle.cjs +31 -31
  196. package/dist/private/ProgressCircle.css +24 -24
  197. package/dist/private/ProgressCircle.mjs +31 -31
  198. package/dist/private/Provider.cjs +19 -19
  199. package/dist/private/Provider.css +15 -15
  200. package/dist/private/Provider.mjs +19 -19
  201. package/dist/private/RadioGroup.cjs +208 -208
  202. package/dist/private/RadioGroup.css +113 -113
  203. package/dist/private/RadioGroup.mjs +208 -208
  204. package/dist/private/RangeCalendar.cjs +16 -16
  205. package/dist/private/RangeCalendar.css +17 -17
  206. package/dist/private/RangeCalendar.mjs +16 -16
  207. package/dist/private/SearchField.cjs +41 -41
  208. package/dist/private/SearchField.css +45 -45
  209. package/dist/private/SearchField.mjs +41 -41
  210. package/dist/private/SegmentedControl.cjs +178 -178
  211. package/dist/private/SegmentedControl.css +123 -123
  212. package/dist/private/SegmentedControl.mjs +178 -178
  213. package/dist/private/SelectBoxGroup.cjs +142 -142
  214. package/dist/private/SelectBoxGroup.css +120 -120
  215. package/dist/private/SelectBoxGroup.mjs +142 -142
  216. package/dist/private/Slider.cjs +292 -292
  217. package/dist/private/Slider.css +159 -159
  218. package/dist/private/Slider.mjs +292 -292
  219. package/dist/private/StatusLight.cjs +115 -115
  220. package/dist/private/StatusLight.css +59 -59
  221. package/dist/private/StatusLight.mjs +115 -115
  222. package/dist/private/Switch.cjs +171 -171
  223. package/dist/private/Switch.css +85 -85
  224. package/dist/private/Switch.mjs +171 -171
  225. package/dist/private/TableView.cjs +540 -540
  226. package/dist/private/TableView.css +290 -290
  227. package/dist/private/TableView.mjs +540 -540
  228. package/dist/private/Tabs.cjs +123 -123
  229. package/dist/private/Tabs.css +105 -105
  230. package/dist/private/Tabs.mjs +123 -123
  231. package/dist/private/TabsPicker.cjs +127 -127
  232. package/dist/private/TabsPicker.css +108 -108
  233. package/dist/private/TabsPicker.mjs +127 -127
  234. package/dist/private/TagGroup.cjs +203 -203
  235. package/dist/private/TagGroup.css +146 -146
  236. package/dist/private/TagGroup.mjs +203 -203
  237. package/dist/private/TextField.cjs +58 -58
  238. package/dist/private/TextField.css +54 -54
  239. package/dist/private/TextField.mjs +58 -58
  240. package/dist/private/TimeField.cjs +51 -51
  241. package/dist/private/TimeField.css +47 -47
  242. package/dist/private/TimeField.mjs +51 -51
  243. package/dist/private/Toast.cjs +120 -120
  244. package/dist/private/Toast.css +110 -110
  245. package/dist/private/Toast.mjs +120 -120
  246. package/dist/private/ToggleButton.cjs +16 -16
  247. package/dist/private/ToggleButton.css +23 -23
  248. package/dist/private/ToggleButton.mjs +16 -16
  249. package/dist/private/Tooltip.cjs +86 -86
  250. package/dist/private/Tooltip.css +70 -70
  251. package/dist/private/Tooltip.mjs +86 -86
  252. package/dist/private/TreeView.cjs +229 -229
  253. package/dist/private/TreeView.css +184 -184
  254. package/dist/private/TreeView.mjs +229 -229
  255. package/dist/private/dnd-utils.cjs +42 -42
  256. package/dist/private/dnd-utils.css +39 -39
  257. package/dist/private/dnd-utils.mjs +42 -42
  258. package/icons/Icon.cjs +10 -10
  259. package/icons/Icon.css +9 -9
  260. package/icons/Icon.mjs +10 -10
  261. package/icons/Skeleton.cjs +2 -2
  262. package/icons/Skeleton.cjs.map +1 -1
  263. package/icons/Skeleton.css +6 -6
  264. package/icons/Skeleton.mjs +2 -2
  265. package/icons/Skeleton.mjs.map +1 -1
  266. package/package.json +2 -2
  267. package/src/Button.tsx +12 -2
  268. package/style/__tests__/style-macro.test.js +73 -71
@@ -31,22 +31,22 @@ $parcel$export(module.exports, "DragHandleButton", () => $f1f08ef5de95f8eb$expor
31
31
 
32
32
  let $f1f08ef5de95f8eb$var$insertionIndicatorWrapper = function anonymous(props) {
33
33
  let rules = " ";
34
- rules += ' _Pa15';
35
- rules += ' Wr15';
36
- rules += ' _lr15';
37
- rules += ' _Ar15';
38
- rules += ' _zr15';
39
- rules += ' sd15';
40
- rules += ' eb15';
41
- if (props.isRoot) rules += ' Iy15';
42
- else rules += ' IyEbn5c15';
43
- if (props.isDropTarget) rules += ' poPoFpe15';
44
- else rules += ' pw15';
45
- if (props.isDropTarget) rules += ' pld15';
46
- if (props.isDropTarget) rules += ' -_3xYcJd-gX15';
47
- else rules += ' -_3xYcJd-g915';
48
- if (props.isDropTarget) rules += ' -_3xYcJd-lga15';
49
- rules += ' _yb15';
34
+ rules += ' _Pa151';
35
+ rules += ' Wr151';
36
+ rules += ' _lr151';
37
+ rules += ' _Ar151';
38
+ rules += ' _zr151';
39
+ rules += ' sd151';
40
+ rules += ' eb151';
41
+ if (props.isRoot) rules += ' Iy151';
42
+ else rules += ' IyEbn5c151';
43
+ if (props.isDropTarget) rules += ' poPoFpe151';
44
+ else rules += ' pw151';
45
+ if (props.isDropTarget) rules += ' pld151';
46
+ if (props.isDropTarget) rules += ' -_3xYcJd-gX151';
47
+ else rules += ' -_3xYcJd-g9151';
48
+ if (props.isDropTarget) rules += ' -_3xYcJd-lga151';
49
+ rules += ' _yb151';
50
50
  return rules;
51
51
  };
52
52
  function $f1f08ef5de95f8eb$export$2c0bab5914a9d088({ target: target }) {
@@ -105,32 +105,32 @@ function $f1f08ef5de95f8eb$export$2c0bab5914a9d088({ target: target }) {
105
105
  }
106
106
  let $f1f08ef5de95f8eb$var$dragButton = function anonymous(props) {
107
107
  let rules = " ";
108
- rules += ' p40ub4c15';
109
- rules += ' sd15';
110
- rules += ' eb15';
111
- rules += ' _Ca15';
112
- rules += ' Fo15';
113
- rules += ' Zi15';
114
- rules += ' Td15';
115
- rules += ' Qd15';
116
- rules += ' Sd15';
117
- rules += ' Rd15';
118
- rules += ' Jy15';
119
- rules += ' Gy15';
120
- rules += ' Iy15';
121
- rules += ' Hy15';
122
- rules += ' g915';
123
- rules += ' _je15';
124
- rules += ' oa15';
125
- rules += ' na15';
126
- rules += ' ka15';
127
- rules += ' ja15';
128
- if (props.isFocusVisible) rules += ' _Lf15';
129
- else rules += ' _Le15';
130
- rules += ' Oh15';
131
- rules += ' Olc15';
132
- rules += ' _Mc15';
133
- rules += ' -_8sjo0b-t5ZbAob15';
108
+ rules += ' p40ub4c151';
109
+ rules += ' sd151';
110
+ rules += ' eb151';
111
+ rules += ' _Ca151';
112
+ rules += ' Fo151';
113
+ rules += ' Zi151';
114
+ rules += ' Td151';
115
+ rules += ' Qd151';
116
+ rules += ' Sd151';
117
+ rules += ' Rd151';
118
+ rules += ' Jy151';
119
+ rules += ' Gy151';
120
+ rules += ' Iy151';
121
+ rules += ' Hy151';
122
+ rules += ' g9151';
123
+ rules += ' _je151';
124
+ rules += ' oa151';
125
+ rules += ' na151';
126
+ rules += ' ka151';
127
+ rules += ' ja151';
128
+ if (props.isFocusVisible) rules += ' _Lf151';
129
+ else rules += ' _Le151';
130
+ rules += ' Oh151';
131
+ rules += ' Olc151';
132
+ rules += ' _Mc151';
133
+ rules += ' -_8sjo0b-t5ZbAob151';
134
134
  return rules;
135
135
  };
136
136
  function $f1f08ef5de95f8eb$export$4c99a519d851f90c({ isFocusVisibleWithin: isFocusVisibleWithin }) {
@@ -1,145 +1,145 @@
1
1
  @layer _.a {
2
- ._Pa15 {
2
+ ._Pa151 {
3
3
  position: absolute;
4
4
  }
5
5
 
6
- .Wr15 {
6
+ .Wr151 {
7
7
  top: 0;
8
8
  }
9
9
 
10
- ._lr15 {
10
+ ._lr151 {
11
11
  bottom: 0;
12
12
  }
13
13
 
14
- ._Ar15 {
14
+ ._Ar151 {
15
15
  inset-inline-start: 0;
16
16
  }
17
17
 
18
- ._zr15 {
18
+ ._zr151 {
19
19
  inset-inline-end: 0;
20
20
  }
21
21
 
22
- .IyEbn5c15 {
22
+ .IyEbn5c151 {
23
23
  margin-inline-start: calc((var(--drop-level, 1) - 1) * var(--indent) + var(--indicator-level-padding));
24
24
  }
25
25
 
26
- .pw15 {
26
+ .pw151 {
27
27
  color: #0000;
28
28
  }
29
29
 
30
- .poPoFpe15 {
30
+ .poPoFpe151 {
31
31
  color: light-dark(#4b75ff, #4069fd);
32
32
  }
33
33
 
34
- .-_3xYcJd-g915 {
34
+ .-_3xYcJd-g9151 {
35
35
  --indicator-circle-bg: transparent;
36
36
  }
37
37
 
38
- .-_3xYcJd-gX15 {
38
+ .-_3xYcJd-gX151 {
39
39
  --indicator-circle-bg: light-dark(#fff, #111);
40
40
  }
41
41
 
42
- ._yb15 {
42
+ ._yb151 {
43
43
  forced-color-adjust: none;
44
44
  }
45
45
 
46
- .p40ub4c15 {
46
+ .p40ub4c151 {
47
47
  color: inherit;
48
48
  }
49
49
 
50
- .sd15 {
50
+ .sd151 {
51
51
  display: flex;
52
52
  }
53
53
 
54
- .eb15 {
54
+ .eb151 {
55
55
  align-items: center;
56
56
  }
57
57
 
58
- ._Ca15 {
58
+ ._Ca151 {
59
59
  justify-content: center;
60
60
  }
61
61
 
62
- .Fo15 {
62
+ .Fo151 {
63
63
  height: calc(1.375rem * var(--s2-scale));
64
64
  }
65
65
 
66
- .Zi15 {
66
+ .Zi151 {
67
67
  width: calc(.625rem * var(--s2-scale));
68
68
  }
69
69
 
70
- .Td15 {
70
+ .Td151 {
71
71
  padding-top: 0;
72
72
  }
73
73
 
74
- .Qd15 {
74
+ .Qd151 {
75
75
  padding-bottom: 0;
76
76
  }
77
77
 
78
- .Sd15 {
78
+ .Sd151 {
79
79
  padding-inline-start: 0;
80
80
  }
81
81
 
82
- .Rd15 {
82
+ .Rd151 {
83
83
  padding-inline-end: 0;
84
84
  }
85
85
 
86
- .Jy15 {
86
+ .Jy151 {
87
87
  margin-top: 0;
88
88
  }
89
89
 
90
- .Gy15 {
90
+ .Gy151 {
91
91
  margin-bottom: 0;
92
92
  }
93
93
 
94
- .Iy15 {
94
+ .Iy151 {
95
95
  margin-inline-start: 0;
96
96
  }
97
97
 
98
- .Hy15 {
98
+ .Hy151 {
99
99
  margin-inline-end: 0;
100
100
  }
101
101
 
102
- .g915 {
102
+ .g9151 {
103
103
  background-color: #0000;
104
104
  }
105
105
 
106
- ._je15 {
106
+ ._je151 {
107
107
  border-style: none;
108
108
  }
109
109
 
110
- .oa15 {
110
+ .oa151 {
111
111
  border-start-start-radius: .25rem;
112
112
  }
113
113
 
114
- .na15 {
114
+ .na151 {
115
115
  border-start-end-radius: .25rem;
116
116
  }
117
117
 
118
- .ka15 {
118
+ .ka151 {
119
119
  border-end-start-radius: .25rem;
120
120
  }
121
121
 
122
- .ja15 {
122
+ .ja151 {
123
123
  border-end-end-radius: .25rem;
124
124
  }
125
125
 
126
- ._Le15 {
126
+ ._Le151 {
127
127
  outline-style: none;
128
128
  }
129
129
 
130
- ._Lf15 {
130
+ ._Lf151 {
131
131
  outline-style: solid;
132
132
  }
133
133
 
134
- .Oh15 {
134
+ .Oh151 {
135
135
  outline-color: light-dark(#4b75ff, #4069fd);
136
136
  }
137
137
 
138
- ._Mc15 {
138
+ ._Mc151 {
139
139
  outline-width: 2px;
140
140
  }
141
141
 
142
- .-_8sjo0b-t5ZbAob15 {
142
+ .-_8sjo0b-t5ZbAob151 {
143
143
  --iconPrimary: currentColor;
144
144
  }
145
145
  }
@@ -148,15 +148,15 @@
148
148
 
149
149
  @layer _.b.l {
150
150
  @media (forced-colors: active) {
151
- .pld15 {
151
+ .pld151 {
152
152
  color: highlight;
153
153
  }
154
154
 
155
- .-_3xYcJd-lga15 {
155
+ .-_3xYcJd-lga151 {
156
156
  --indicator-circle-bg: Background;
157
157
  }
158
158
 
159
- .Olc15 {
159
+ .Olc151 {
160
160
  outline-color: highlight;
161
161
  }
162
162
  }
@@ -24,22 +24,22 @@ import {useVisuallyHidden as $7m476$useVisuallyHidden} from "react-aria/Visually
24
24
 
25
25
  let $3c1ab1fd8f31a3e2$var$insertionIndicatorWrapper = function anonymous(props) {
26
26
  let rules = " ";
27
- rules += ' _Pa15';
28
- rules += ' Wr15';
29
- rules += ' _lr15';
30
- rules += ' _Ar15';
31
- rules += ' _zr15';
32
- rules += ' sd15';
33
- rules += ' eb15';
34
- if (props.isRoot) rules += ' Iy15';
35
- else rules += ' IyEbn5c15';
36
- if (props.isDropTarget) rules += ' poPoFpe15';
37
- else rules += ' pw15';
38
- if (props.isDropTarget) rules += ' pld15';
39
- if (props.isDropTarget) rules += ' -_3xYcJd-gX15';
40
- else rules += ' -_3xYcJd-g915';
41
- if (props.isDropTarget) rules += ' -_3xYcJd-lga15';
42
- rules += ' _yb15';
27
+ rules += ' _Pa151';
28
+ rules += ' Wr151';
29
+ rules += ' _lr151';
30
+ rules += ' _Ar151';
31
+ rules += ' _zr151';
32
+ rules += ' sd151';
33
+ rules += ' eb151';
34
+ if (props.isRoot) rules += ' Iy151';
35
+ else rules += ' IyEbn5c151';
36
+ if (props.isDropTarget) rules += ' poPoFpe151';
37
+ else rules += ' pw151';
38
+ if (props.isDropTarget) rules += ' pld151';
39
+ if (props.isDropTarget) rules += ' -_3xYcJd-gX151';
40
+ else rules += ' -_3xYcJd-g9151';
41
+ if (props.isDropTarget) rules += ' -_3xYcJd-lga151';
42
+ rules += ' _yb151';
43
43
  return rules;
44
44
  };
45
45
  function $3c1ab1fd8f31a3e2$export$2c0bab5914a9d088({ target: target }) {
@@ -98,32 +98,32 @@ function $3c1ab1fd8f31a3e2$export$2c0bab5914a9d088({ target: target }) {
98
98
  }
99
99
  let $3c1ab1fd8f31a3e2$var$dragButton = function anonymous(props) {
100
100
  let rules = " ";
101
- rules += ' p40ub4c15';
102
- rules += ' sd15';
103
- rules += ' eb15';
104
- rules += ' _Ca15';
105
- rules += ' Fo15';
106
- rules += ' Zi15';
107
- rules += ' Td15';
108
- rules += ' Qd15';
109
- rules += ' Sd15';
110
- rules += ' Rd15';
111
- rules += ' Jy15';
112
- rules += ' Gy15';
113
- rules += ' Iy15';
114
- rules += ' Hy15';
115
- rules += ' g915';
116
- rules += ' _je15';
117
- rules += ' oa15';
118
- rules += ' na15';
119
- rules += ' ka15';
120
- rules += ' ja15';
121
- if (props.isFocusVisible) rules += ' _Lf15';
122
- else rules += ' _Le15';
123
- rules += ' Oh15';
124
- rules += ' Olc15';
125
- rules += ' _Mc15';
126
- rules += ' -_8sjo0b-t5ZbAob15';
101
+ rules += ' p40ub4c151';
102
+ rules += ' sd151';
103
+ rules += ' eb151';
104
+ rules += ' _Ca151';
105
+ rules += ' Fo151';
106
+ rules += ' Zi151';
107
+ rules += ' Td151';
108
+ rules += ' Qd151';
109
+ rules += ' Sd151';
110
+ rules += ' Rd151';
111
+ rules += ' Jy151';
112
+ rules += ' Gy151';
113
+ rules += ' Iy151';
114
+ rules += ' Hy151';
115
+ rules += ' g9151';
116
+ rules += ' _je151';
117
+ rules += ' oa151';
118
+ rules += ' na151';
119
+ rules += ' ka151';
120
+ rules += ' ja151';
121
+ if (props.isFocusVisible) rules += ' _Lf151';
122
+ else rules += ' _Le151';
123
+ rules += ' Oh151';
124
+ rules += ' Olc151';
125
+ rules += ' _Mc151';
126
+ rules += ' -_8sjo0b-t5ZbAob151';
127
127
  return rules;
128
128
  };
129
129
  function $3c1ab1fd8f31a3e2$export$4c99a519d851f90c({ isFocusVisibleWithin: isFocusVisibleWithin }) {
package/icons/Icon.cjs CHANGED
@@ -71,9 +71,9 @@ const $bde97c91243ed164$var$iconStyles = function anonymous(props, overrides) {
71
71
  if (p[1] === "F") height = true;
72
72
  rules += p[0];
73
73
  }
74
- if (!width) rules += ' Zm15';
75
- if (!height) rules += ' Fn15';
76
- rules += ' _va15';
74
+ if (!width) rules += ' Zm151';
75
+ if (!height) rules += ' Fn151';
76
+ rules += ' _va151';
77
77
  return rules;
78
78
  };
79
79
  function $bde97c91243ed164$export$274edc73af1ae9c8(Component, context = $bde97c91243ed164$export$a49f528ae1a4d0ed) {
@@ -114,20 +114,20 @@ const $bde97c91243ed164$var$illustrationStyles = function anonymous(props, overr
114
114
  rules += p[0];
115
115
  }
116
116
  if (props.size === "L") {
117
- if (!width) rules += ' Zq15';
117
+ if (!width) rules += ' Zq151';
118
118
  } else if (props.size === "M") {
119
- if (!width) rules += ' ZH15';
119
+ if (!width) rules += ' ZH151';
120
120
  } else if (props.size === "S") {
121
- if (!width) rules += ' ZF15';
121
+ if (!width) rules += ' ZF151';
122
122
  }
123
123
  if (props.size === "L") {
124
- if (!height) rules += ' Fr15';
124
+ if (!height) rules += ' Fr151';
125
125
  } else if (props.size === "M") {
126
- if (!height) rules += ' FB15';
126
+ if (!height) rules += ' FB151';
127
127
  } else if (props.size === "S") {
128
- if (!height) rules += ' Fz15';
128
+ if (!height) rules += ' Fz151';
129
129
  }
130
- rules += ' _va15';
130
+ rules += ' _va151';
131
131
  return rules;
132
132
  };
133
133
  function $bde97c91243ed164$export$4d00e7be716a0093(Component) {
package/icons/Icon.css CHANGED
@@ -1,37 +1,37 @@
1
1
  @layer _.a {
2
- .Zm15 {
2
+ .Zm151 {
3
3
  width: calc(1.25rem * var(--s2-scale));
4
4
  }
5
5
 
6
- .Fn15 {
6
+ .Fn151 {
7
7
  height: calc(1.25rem * var(--s2-scale));
8
8
  }
9
9
 
10
- .ZF15 {
10
+ .ZF151 {
11
11
  width: calc(3rem * var(--s2-scale));
12
12
  }
13
13
 
14
- .ZH15 {
14
+ .ZH151 {
15
15
  width: calc(6rem * var(--s2-scale));
16
16
  }
17
17
 
18
- .Zq15 {
18
+ .Zq151 {
19
19
  width: calc(10rem * var(--s2-scale));
20
20
  }
21
21
 
22
- .Fz15 {
22
+ .Fz151 {
23
23
  height: calc(3rem * var(--s2-scale));
24
24
  }
25
25
 
26
- .FB15 {
26
+ .FB151 {
27
27
  height: calc(6rem * var(--s2-scale));
28
28
  }
29
29
 
30
- .Fr15 {
30
+ .Fr151 {
31
31
  height: calc(10rem * var(--s2-scale));
32
32
  }
33
33
 
34
- ._va15 {
34
+ ._va151 {
35
35
  flex-shrink: 0;
36
36
  }
37
37
  }
package/icons/Icon.mjs CHANGED
@@ -62,9 +62,9 @@ const $ac8c32e6775ddd1f$var$iconStyles = function anonymous(props, overrides) {
62
62
  if (p[1] === "F") height = true;
63
63
  rules += p[0];
64
64
  }
65
- if (!width) rules += ' Zm15';
66
- if (!height) rules += ' Fn15';
67
- rules += ' _va15';
65
+ if (!width) rules += ' Zm151';
66
+ if (!height) rules += ' Fn151';
67
+ rules += ' _va151';
68
68
  return rules;
69
69
  };
70
70
  function $ac8c32e6775ddd1f$export$274edc73af1ae9c8(Component, context = $ac8c32e6775ddd1f$export$a49f528ae1a4d0ed) {
@@ -105,20 +105,20 @@ const $ac8c32e6775ddd1f$var$illustrationStyles = function anonymous(props, overr
105
105
  rules += p[0];
106
106
  }
107
107
  if (props.size === "L") {
108
- if (!width) rules += ' Zq15';
108
+ if (!width) rules += ' Zq151';
109
109
  } else if (props.size === "M") {
110
- if (!width) rules += ' ZH15';
110
+ if (!width) rules += ' ZH151';
111
111
  } else if (props.size === "S") {
112
- if (!width) rules += ' ZF15';
112
+ if (!width) rules += ' ZF151';
113
113
  }
114
114
  if (props.size === "L") {
115
- if (!height) rules += ' Fr15';
115
+ if (!height) rules += ' Fr151';
116
116
  } else if (props.size === "M") {
117
- if (!height) rules += ' FB15';
117
+ if (!height) rules += ' FB151';
118
118
  } else if (props.size === "S") {
119
- if (!height) rules += ' Fz15';
119
+ if (!height) rules += ' Fz151';
120
120
  }
121
- rules += ' _va15';
121
+ rules += ' _va151';
122
122
  return rules;
123
123
  };
124
124
  function $ac8c32e6775ddd1f$export$4d00e7be716a0093(Component) {
@@ -99,7 +99,7 @@ function $5eb75e0c130e0669$export$cb6ddd830302c2a8({ children: children }) {
99
99
  // @ts-ignore - compatibility with React < 19
100
100
  inert: (0, $lzdFu$reactariaprivateutilsinertValue.inertValue)(true),
101
101
  ref: $5eb75e0c130e0669$export$6b288fe07640c94c(true),
102
- className: $5eb75e0c130e0669$export$d2353276f167b21f + " pw15 _ma15 oa15 na15 ka15 ja15",
102
+ className: $5eb75e0c130e0669$export$d2353276f167b21f + " pw151 _ma151 oa151 na151 ka151 ja151",
103
103
  children: children
104
104
  });
105
105
  }
@@ -120,7 +120,7 @@ function $5eb75e0c130e0669$export$6069cbe61f690103({ children: children }) {
120
120
  }
121
121
  function $5eb75e0c130e0669$export$4b7803c08fe9a32b(styles) {
122
122
  let isSkeleton = (0, $lzdFu$react.useContext)($5eb75e0c130e0669$export$74e166679b1f49ee);
123
- if (isSkeleton) return (0, $308b180f49d82d28$exports.mergeStyles)(" oa15 na15 ka15 ja15", styles);
123
+ if (isSkeleton) return (0, $308b180f49d82d28$exports.mergeStyles)(" oa151 na151 ka151 ja151", styles);
124
124
  return styles || '';
125
125
  }
126
126
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAqBM,SAAS,0CAAoB,WAAoB;IACtD,IAAI,eAAe,CAAA,GAAA,mBAAK,EAAoB;IAC5C,IAAI,eAAe,CAAA,GAAA,uCAAY,EAAE;IACjC,OAAO,CAAA,GAAA,wBAAU,EACf,CAAC;QACC,IACE,eACA,CAAC,aAAa,OAAO,IACrB,WACA,CAAC,gBACD,OAAO,QAAQ,OAAO,KAAK,YAC3B;YACA,iEAAiE;YACjE,2EAA2E;YAC3E,aAAa,OAAO,GAAG,QAAQ,OAAO,CACpC;gBAAC;oBAAC,oBAAoB;gBAAM;gBAAG;oBAAC,oBAAoB;gBAAI;aAAE,EAC1D;gBACE,UAAU;gBACV,YAAY;gBACZ,QAAQ;YACV;YAEF,aAAa,OAAO,CAAC,SAAS,GAAG;QACnC,OAAO,IAAI,CAAC,eAAe,aAAa,OAAO,EAAE;YAC/C,aAAa,OAAO,CAAC,MAAM;YAC3B,aAAa,OAAO,GAAG;QACzB;IACF,GACA;QAAC;QAAa;KAAa;AAE/B;AASO,MAAM,0DAAkB,CAAA,GAAA,0BAAY,EAAkB;AACtD,SAAS;IACd,OAAO,CAAA,GAAA,uBAAS,EAAE,8CAAoB;AACxC;AAUO,SAAS,0CAAS,YAAC,QAAQ,aAAE,SAAS,EAAgB;IAC3D,iDAAiD;IACjD,qBAAO,gCAAC,0CAAgB,QAAQ;QAAC,OAAO;kBAAY;;AACtD;AAEO,MAAM,sDASV,qEAAqE;AAEjE,SAAS,0CACd,QAAmB,EACnB,KAAgC;IAEhC,IAAI,aAAa,CAAA,GAAA,uBAAS,EAAE;IAC5B,IAAI,YAAY;QACd,yBAAW,gCAAC;sBAAc;;QAC1B,QAAQ;YACN,GAAG,KAAK;YACR,8DAA8D;YAC9D,2EAA2E;YAC3E,qBAAqB;QACvB;IACF;IACA,OAAO;QAAC;QAAU;KAAM;AAC1B;AAGO,SAAS,0CAAa,YAAC,QAAQ,EAAwB;IAC5D,qBACE,gCAAC;QACC,6CAA6C;QAC7C,OAAO,CAAA,GAAA,iDAAS,EAAE;QAClB,KAAK,0CAAoB;QACzB,WACE;kBAOD;;AAGP;AAGO,SAAS,0CAAgB,YAAC,QAAQ,EAA8B;IACrE,IAAI,YAAY,CAAA,GAAA,uBAAS,EAAE;IAC3B,IAAI,YAAY,0CAAoB,aAAa;IACjD,IAAI,aAAa,MACf,OAAO;IAGT,IAAI,WACF,SAAS,YAAY,CAAC,OAAO,wBAAwB,CAAC,UAAU,QAAQ,MACnE,SAAS,GAAG,GACb,SAAS,KAAK,CAAC,GAAG;IACxB,qBACE,gCAAC,0CAAgB,QAAQ;QAAC,OAAO;kBAC9B,0BACG,CAAA,GAAA,yBAAW,EAAE,UAAU;YACrB,KAAK,CAAA,GAAA,mCAAQ,EAAE,UAAU;YACzB,WAAW,AAAC,CAAA,SAAS,KAAK,CAAC,SAAS,IAAI,EAAC,IAAK,MAAM;YACpD,6CAA6C;YAC7C,OAAO,CAAA,GAAA,iDAAS,EAAE;QACpB,KACA;;AAGV;AAGO,SAAS,0CAAgB,MAAmB;IACjD,IAAI,aAAa,CAAA,GAAA,uBAAS,EAAE;IAC5B,IAAI,YACF,OAAO,CAAA,GAAA,qCAAU,0BAA+B;IAElD,OAAO,UAAW;AACpB","sources":["packages/@react-spectrum/s2/src/Skeleton.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n cloneElement,\n createContext,\n CSSProperties,\n ReactElement,\n ReactNode,\n Ref,\n useCallback,\n useContext,\n useRef\n} from 'react';\nimport {color, style} from '../style' with {type: 'macro'};\nimport {css} from '../style/style-macro' with {type: 'macro'};\nimport {inertValue} from 'react-aria/private/utils/inertValue';\nimport {mergeRefs} from 'react-aria/mergeRefs';\nimport {mergeStyles} from '../style/runtime';\nimport {StyleString} from '../style/types';\nimport {useMediaQuery} from './useMediaQuery';\n\nexport function useLoadingAnimation(isAnimating: boolean): (element: HTMLElement | null) => void {\n let animationRef = useRef<Animation | null>(null);\n let reduceMotion = useMediaQuery('(prefers-reduced-motion: reduce)');\n return useCallback(\n (element: HTMLElement | null) => {\n if (\n isAnimating &&\n !animationRef.current &&\n element &&\n !reduceMotion &&\n typeof element.animate === 'function'\n ) {\n // Use web animation API instead of CSS animations so that we can\n // synchronize it between all loading elements on the page (via startTime).\n animationRef.current = element.animate(\n [{backgroundPosition: '100%'}, {backgroundPosition: '0%'}],\n {\n duration: 2000,\n iterations: Infinity,\n easing: 'ease-in-out'\n }\n );\n animationRef.current.startTime = 0;\n } else if (!isAnimating && animationRef.current) {\n animationRef.current.cancel();\n animationRef.current = null;\n }\n },\n [isAnimating, reduceMotion]\n );\n}\n\nexport type SkeletonElement = ReactElement<{\n children: ReactNode;\n className?: string;\n ref?: Ref<HTMLElement>;\n inert?: boolean | 'true';\n}>;\n\nexport const SkeletonContext = createContext<boolean | null>(null);\nexport function useIsSkeleton(): boolean {\n return useContext(SkeletonContext) || false;\n}\n\nexport interface SkeletonProps {\n children: ReactNode;\n isLoading: boolean;\n}\n\n/**\n * A Skeleton wraps around content to render it as a placeholder.\n */\nexport function Skeleton({children, isLoading}: SkeletonProps): ReactNode {\n // Disable all form components inside a skeleton.\n return <SkeletonContext.Provider value={isLoading}>{children}</SkeletonContext.Provider>;\n}\n\nexport const loadingStyle = css(\n `\n background-image: linear-gradient(to right, ${color('gray-100')} 33%, light-dark(${color('gray-25')}, ${color('gray-300')}), ${color('gray-100')} 66%);\n background-size: 300%;\n * {\n visibility: hidden;\n }\n`,\n 'L'\n); // add to a separate layer so it overrides default style macro styles\n\nexport function useSkeletonText(\n children: ReactNode,\n style: CSSProperties | undefined\n): [ReactNode, CSSProperties | undefined] {\n let isSkeleton = useContext(SkeletonContext);\n if (isSkeleton) {\n children = <SkeletonText>{children}</SkeletonText>;\n style = {\n ...style,\n // This ensures the ellipsis on truncated text is also hidden.\n // -webkit-text-fill-color overrides any `color` property that is also set.\n WebkitTextFillColor: 'transparent'\n };\n }\n return [children, style];\n}\n\n// Rendered inside <Text> to create skeleton line boxes via box-decoration-break.\nexport function SkeletonText({children}: {children: ReactNode}): ReactNode {\n return (\n <span\n // @ts-ignore - compatibility with React < 19\n inert={inertValue(true)}\n ref={useLoadingAnimation(true)}\n className={\n loadingStyle +\n style({\n color: 'transparent',\n boxDecorationBreak: 'clone',\n borderRadius: 'sm'\n })\n }>\n {children}\n </span>\n );\n}\n\n// Clones the child element and displays it with skeleton styling.\nexport function SkeletonWrapper({children}: {children: SkeletonElement}): ReactNode {\n let isLoading = useContext(SkeletonContext);\n let animation = useLoadingAnimation(isLoading || false);\n if (isLoading == null) {\n return children;\n }\n\n let childRef =\n 'ref' in children && !Object.getOwnPropertyDescriptor(children, 'ref')?.get\n ? (children.ref as any)\n : children.props.ref;\n return (\n <SkeletonContext.Provider value={null}>\n {isLoading\n ? cloneElement(children, {\n ref: mergeRefs(childRef, animation),\n className: (children.props.className || '') + ' ' + loadingStyle,\n // @ts-ignore - compatibility with React < 19\n inert: inertValue(true)\n })\n : children}\n </SkeletonContext.Provider>\n );\n}\n\n// Adds default border radius around icons when displayed in a skeleton.\nexport function useSkeletonIcon(styles: StyleString): StyleString {\n let isSkeleton = useContext(SkeletonContext);\n if (isSkeleton) {\n return mergeStyles(style({borderRadius: 'sm'}), styles);\n }\n return styles || ('' as StyleString);\n}\n"],"names":[],"version":3,"file":"Skeleton.cjs.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAqBM,SAAS,0CAAoB,WAAoB;IACtD,IAAI,eAAe,CAAA,GAAA,mBAAK,EAAoB;IAC5C,IAAI,eAAe,CAAA,GAAA,uCAAY,EAAE;IACjC,OAAO,CAAA,GAAA,wBAAU,EACf,CAAC;QACC,IACE,eACA,CAAC,aAAa,OAAO,IACrB,WACA,CAAC,gBACD,OAAO,QAAQ,OAAO,KAAK,YAC3B;YACA,iEAAiE;YACjE,2EAA2E;YAC3E,aAAa,OAAO,GAAG,QAAQ,OAAO,CACpC;gBAAC;oBAAC,oBAAoB;gBAAM;gBAAG;oBAAC,oBAAoB;gBAAI;aAAE,EAC1D;gBACE,UAAU;gBACV,YAAY;gBACZ,QAAQ;YACV;YAEF,aAAa,OAAO,CAAC,SAAS,GAAG;QACnC,OAAO,IAAI,CAAC,eAAe,aAAa,OAAO,EAAE;YAC/C,aAAa,OAAO,CAAC,MAAM;YAC3B,aAAa,OAAO,GAAG;QACzB;IACF,GACA;QAAC;QAAa;KAAa;AAE/B;AASO,MAAM,0DAAkB,CAAA,GAAA,0BAAY,EAAkB;AACtD,SAAS;IACd,OAAO,CAAA,GAAA,uBAAS,EAAE,8CAAoB;AACxC;AAUO,SAAS,0CAAS,YAAC,QAAQ,aAAE,SAAS,EAAgB;IAC3D,iDAAiD;IACjD,qBAAO,gCAAC,0CAAgB,QAAQ;QAAC,OAAO;kBAAY;;AACtD;AAEO,MAAM,sDASV,qEAAqE;AAEjE,SAAS,0CACd,QAAmB,EACnB,KAAgC;IAEhC,IAAI,aAAa,CAAA,GAAA,uBAAS,EAAE;IAC5B,IAAI,YAAY;QACd,yBAAW,gCAAC;sBAAc;;QAC1B,QAAQ;YACN,GAAG,KAAK;YACR,8DAA8D;YAC9D,2EAA2E;YAC3E,qBAAqB;QACvB;IACF;IACA,OAAO;QAAC;QAAU;KAAM;AAC1B;AAGO,SAAS,0CAAa,YAAC,QAAQ,EAAwB;IAC5D,qBACE,gCAAC;QACC,6CAA6C;QAC7C,OAAO,CAAA,GAAA,iDAAS,EAAE;QAClB,KAAK,0CAAoB;QACzB,WACE;kBAOD;;AAGP;AAGO,SAAS,0CAAgB,YAAC,QAAQ,EAA8B;IACrE,IAAI,YAAY,CAAA,GAAA,uBAAS,EAAE;IAC3B,IAAI,YAAY,0CAAoB,aAAa;IACjD,IAAI,aAAa,MACf,OAAO;IAGT,IAAI,WACF,SAAS,YAAY,CAAC,OAAO,wBAAwB,CAAC,UAAU,QAAQ,MACnE,SAAS,GAAG,GACb,SAAS,KAAK,CAAC,GAAG;IACxB,qBACE,gCAAC,0CAAgB,QAAQ;QAAC,OAAO;kBAC9B,0BACG,CAAA,GAAA,yBAAW,EAAE,UAAU;YACrB,KAAK,CAAA,GAAA,mCAAQ,EAAE,UAAU;YACzB,WAAW,AAAC,CAAA,SAAS,KAAK,CAAC,SAAS,IAAI,EAAC,IAAK,MAAM;YACpD,6CAA6C;YAC7C,OAAO,CAAA,GAAA,iDAAS,EAAE;QACpB,KACA;;AAGV;AAGO,SAAS,0CAAgB,MAAmB;IACjD,IAAI,aAAa,CAAA,GAAA,uBAAS,EAAE;IAC5B,IAAI,YACF,OAAO,CAAA,GAAA,qCAAU,8BAA+B;IAElD,OAAO,UAAW;AACpB","sources":["packages/@react-spectrum/s2/src/Skeleton.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n cloneElement,\n createContext,\n CSSProperties,\n ReactElement,\n ReactNode,\n Ref,\n useCallback,\n useContext,\n useRef\n} from 'react';\nimport {color, style} from '../style' with {type: 'macro'};\nimport {css} from '../style/style-macro' with {type: 'macro'};\nimport {inertValue} from 'react-aria/private/utils/inertValue';\nimport {mergeRefs} from 'react-aria/mergeRefs';\nimport {mergeStyles} from '../style/runtime';\nimport {StyleString} from '../style/types';\nimport {useMediaQuery} from './useMediaQuery';\n\nexport function useLoadingAnimation(isAnimating: boolean): (element: HTMLElement | null) => void {\n let animationRef = useRef<Animation | null>(null);\n let reduceMotion = useMediaQuery('(prefers-reduced-motion: reduce)');\n return useCallback(\n (element: HTMLElement | null) => {\n if (\n isAnimating &&\n !animationRef.current &&\n element &&\n !reduceMotion &&\n typeof element.animate === 'function'\n ) {\n // Use web animation API instead of CSS animations so that we can\n // synchronize it between all loading elements on the page (via startTime).\n animationRef.current = element.animate(\n [{backgroundPosition: '100%'}, {backgroundPosition: '0%'}],\n {\n duration: 2000,\n iterations: Infinity,\n easing: 'ease-in-out'\n }\n );\n animationRef.current.startTime = 0;\n } else if (!isAnimating && animationRef.current) {\n animationRef.current.cancel();\n animationRef.current = null;\n }\n },\n [isAnimating, reduceMotion]\n );\n}\n\nexport type SkeletonElement = ReactElement<{\n children: ReactNode;\n className?: string;\n ref?: Ref<HTMLElement>;\n inert?: boolean | 'true';\n}>;\n\nexport const SkeletonContext = createContext<boolean | null>(null);\nexport function useIsSkeleton(): boolean {\n return useContext(SkeletonContext) || false;\n}\n\nexport interface SkeletonProps {\n children: ReactNode;\n isLoading: boolean;\n}\n\n/**\n * A Skeleton wraps around content to render it as a placeholder.\n */\nexport function Skeleton({children, isLoading}: SkeletonProps): ReactNode {\n // Disable all form components inside a skeleton.\n return <SkeletonContext.Provider value={isLoading}>{children}</SkeletonContext.Provider>;\n}\n\nexport const loadingStyle = css(\n `\n background-image: linear-gradient(to right, ${color('gray-100')} 33%, light-dark(${color('gray-25')}, ${color('gray-300')}), ${color('gray-100')} 66%);\n background-size: 300%;\n * {\n visibility: hidden;\n }\n`,\n 'L'\n); // add to a separate layer so it overrides default style macro styles\n\nexport function useSkeletonText(\n children: ReactNode,\n style: CSSProperties | undefined\n): [ReactNode, CSSProperties | undefined] {\n let isSkeleton = useContext(SkeletonContext);\n if (isSkeleton) {\n children = <SkeletonText>{children}</SkeletonText>;\n style = {\n ...style,\n // This ensures the ellipsis on truncated text is also hidden.\n // -webkit-text-fill-color overrides any `color` property that is also set.\n WebkitTextFillColor: 'transparent'\n };\n }\n return [children, style];\n}\n\n// Rendered inside <Text> to create skeleton line boxes via box-decoration-break.\nexport function SkeletonText({children}: {children: ReactNode}): ReactNode {\n return (\n <span\n // @ts-ignore - compatibility with React < 19\n inert={inertValue(true)}\n ref={useLoadingAnimation(true)}\n className={\n loadingStyle +\n style({\n color: 'transparent',\n boxDecorationBreak: 'clone',\n borderRadius: 'sm'\n })\n }>\n {children}\n </span>\n );\n}\n\n// Clones the child element and displays it with skeleton styling.\nexport function SkeletonWrapper({children}: {children: SkeletonElement}): ReactNode {\n let isLoading = useContext(SkeletonContext);\n let animation = useLoadingAnimation(isLoading || false);\n if (isLoading == null) {\n return children;\n }\n\n let childRef =\n 'ref' in children && !Object.getOwnPropertyDescriptor(children, 'ref')?.get\n ? (children.ref as any)\n : children.props.ref;\n return (\n <SkeletonContext.Provider value={null}>\n {isLoading\n ? cloneElement(children, {\n ref: mergeRefs(childRef, animation),\n className: (children.props.className || '') + ' ' + loadingStyle,\n // @ts-ignore - compatibility with React < 19\n inert: inertValue(true)\n })\n : children}\n </SkeletonContext.Provider>\n );\n}\n\n// Adds default border radius around icons when displayed in a skeleton.\nexport function useSkeletonIcon(styles: StyleString): StyleString {\n let isSkeleton = useContext(SkeletonContext);\n if (isSkeleton) {\n return mergeStyles(style({borderRadius: 'sm'}), styles);\n }\n return styles || ('' as StyleString);\n}\n"],"names":[],"version":3,"file":"Skeleton.cjs.map"}
@@ -12,28 +12,28 @@
12
12
  }
13
13
 
14
14
  @layer _.a {
15
- .pw15 {
15
+ .pw151 {
16
16
  color: #0000;
17
17
  }
18
18
 
19
- ._ma15 {
19
+ ._ma151 {
20
20
  -webkit-box-decoration-break: clone;
21
21
  box-decoration-break: clone;
22
22
  }
23
23
 
24
- .oa15 {
24
+ .oa151 {
25
25
  border-start-start-radius: .25rem;
26
26
  }
27
27
 
28
- .na15 {
28
+ .na151 {
29
29
  border-start-end-radius: .25rem;
30
30
  }
31
31
 
32
- .ka15 {
32
+ .ka151 {
33
33
  border-end-start-radius: .25rem;
34
34
  }
35
35
 
36
- .ja15 {
36
+ .ja151 {
37
37
  border-end-end-radius: .25rem;
38
38
  }
39
39
  }
@@ -86,7 +86,7 @@ function $5ad421ec19460c48$export$cb6ddd830302c2a8({ children: children }) {
86
86
  // @ts-ignore - compatibility with React < 19
87
87
  inert: (0, $cHM3s$inertValue)(true),
88
88
  ref: $5ad421ec19460c48$export$6b288fe07640c94c(true),
89
- className: $5ad421ec19460c48$export$d2353276f167b21f + " pw15 _ma15 oa15 na15 ka15 ja15",
89
+ className: $5ad421ec19460c48$export$d2353276f167b21f + " pw151 _ma151 oa151 na151 ka151 ja151",
90
90
  children: children
91
91
  });
92
92
  }
@@ -107,7 +107,7 @@ function $5ad421ec19460c48$export$6069cbe61f690103({ children: children }) {
107
107
  }
108
108
  function $5ad421ec19460c48$export$4b7803c08fe9a32b(styles) {
109
109
  let isSkeleton = (0, $cHM3s$useContext)($5ad421ec19460c48$export$74e166679b1f49ee);
110
- if (isSkeleton) return (0, $feb886035e0d4633$export$e618dc39ac9ad607)(" oa15 na15 ka15 ja15", styles);
110
+ if (isSkeleton) return (0, $feb886035e0d4633$export$e618dc39ac9ad607)(" oa151 na151 ka151 ja151", styles);
111
111
  return styles || '';
112
112
  }
113
113