@react-spectrum/s2 3.0.0-nightly-5a0b4fabc-240924 → 3.0.0-nightly-a626c2596-240926

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 (251) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.cjs.map +1 -1
  3. package/dist/Accordion.css.map +1 -1
  4. package/dist/Accordion.mjs +2 -2
  5. package/dist/Accordion.mjs.map +1 -1
  6. package/dist/Button.cjs +5 -1
  7. package/dist/Button.cjs.map +1 -1
  8. package/dist/Button.css.map +1 -1
  9. package/dist/Button.mjs +5 -1
  10. package/dist/Button.mjs.map +1 -1
  11. package/dist/Card.cjs +1 -1
  12. package/dist/Card.cjs.map +1 -1
  13. package/dist/Card.css.map +1 -1
  14. package/dist/Card.mjs +1 -1
  15. package/dist/Card.mjs.map +1 -1
  16. package/dist/Checkbox.cjs +4 -1
  17. package/dist/Checkbox.cjs.map +1 -1
  18. package/dist/Checkbox.css +4 -0
  19. package/dist/Checkbox.css.map +1 -1
  20. package/dist/Checkbox.mjs +4 -1
  21. package/dist/Checkbox.mjs.map +1 -1
  22. package/dist/ComboBox.cjs +3 -0
  23. package/dist/ComboBox.cjs.map +1 -1
  24. package/dist/ComboBox.css.map +1 -1
  25. package/dist/ComboBox.mjs +3 -0
  26. package/dist/ComboBox.mjs.map +1 -1
  27. package/dist/Content.cjs +0 -2
  28. package/dist/Content.cjs.map +1 -1
  29. package/dist/Content.mjs +1 -2
  30. package/dist/Content.mjs.map +1 -1
  31. package/dist/Dialog.cjs +7 -5
  32. package/dist/Dialog.cjs.map +1 -1
  33. package/dist/Dialog.css.map +1 -1
  34. package/dist/Dialog.mjs +8 -6
  35. package/dist/Dialog.mjs.map +1 -1
  36. package/dist/Disclosure.cjs +2 -2
  37. package/dist/Disclosure.cjs.map +1 -1
  38. package/dist/Disclosure.css.map +1 -1
  39. package/dist/Disclosure.mjs +3 -3
  40. package/dist/Disclosure.mjs.map +1 -1
  41. package/dist/MoveHorizontalCircleTableWidget.cjs +33 -0
  42. package/dist/MoveHorizontalCircleTableWidget.cjs.map +1 -0
  43. package/dist/MoveHorizontalCircleTableWidget.mjs +28 -0
  44. package/dist/MoveHorizontalCircleTableWidget.mjs.map +1 -0
  45. package/dist/Picker.cjs +3 -0
  46. package/dist/Picker.cjs.map +1 -1
  47. package/dist/Picker.css.map +1 -1
  48. package/dist/Picker.mjs +3 -0
  49. package/dist/Picker.mjs.map +1 -1
  50. package/dist/Popover.cjs +1 -0
  51. package/dist/Popover.cjs.map +1 -1
  52. package/dist/Popover.css +4 -0
  53. package/dist/Popover.css.map +1 -1
  54. package/dist/Popover.mjs +1 -0
  55. package/dist/Popover.mjs.map +1 -1
  56. package/dist/SegmentedControl.cjs +11 -1
  57. package/dist/SegmentedControl.cjs.map +1 -1
  58. package/dist/SegmentedControl.css +24 -0
  59. package/dist/SegmentedControl.css.map +1 -1
  60. package/dist/SegmentedControl.mjs +11 -1
  61. package/dist/SegmentedControl.mjs.map +1 -1
  62. package/dist/Table.cjs +1093 -0
  63. package/dist/Table.cjs.map +1 -0
  64. package/dist/Table.css +821 -0
  65. package/dist/Table.css.map +1 -0
  66. package/dist/Table.mjs +1083 -0
  67. package/dist/Table.mjs.map +1 -0
  68. package/dist/TagGroup.cjs +5 -3
  69. package/dist/TagGroup.cjs.map +1 -1
  70. package/dist/TagGroup.css.map +1 -1
  71. package/dist/TagGroup.mjs +5 -3
  72. package/dist/TagGroup.mjs.map +1 -1
  73. package/dist/ar-AE.cjs +5 -0
  74. package/dist/ar-AE.cjs.map +1 -1
  75. package/dist/ar-AE.mjs +5 -0
  76. package/dist/ar-AE.mjs.map +1 -1
  77. package/dist/bg-BG.cjs +5 -0
  78. package/dist/bg-BG.cjs.map +1 -1
  79. package/dist/bg-BG.mjs +5 -0
  80. package/dist/bg-BG.mjs.map +1 -1
  81. package/dist/cs-CZ.cjs +5 -0
  82. package/dist/cs-CZ.cjs.map +1 -1
  83. package/dist/cs-CZ.mjs +5 -0
  84. package/dist/cs-CZ.mjs.map +1 -1
  85. package/dist/da-DK.cjs +5 -0
  86. package/dist/da-DK.cjs.map +1 -1
  87. package/dist/da-DK.mjs +5 -0
  88. package/dist/da-DK.mjs.map +1 -1
  89. package/dist/de-DE.cjs +5 -0
  90. package/dist/de-DE.cjs.map +1 -1
  91. package/dist/de-DE.mjs +5 -0
  92. package/dist/de-DE.mjs.map +1 -1
  93. package/dist/el-GR.cjs +5 -0
  94. package/dist/el-GR.cjs.map +1 -1
  95. package/dist/el-GR.mjs +5 -0
  96. package/dist/el-GR.mjs.map +1 -1
  97. package/dist/en-US.cjs +5 -0
  98. package/dist/en-US.cjs.map +1 -1
  99. package/dist/en-US.mjs +5 -0
  100. package/dist/en-US.mjs.map +1 -1
  101. package/dist/es-ES.cjs +5 -0
  102. package/dist/es-ES.cjs.map +1 -1
  103. package/dist/es-ES.mjs +5 -0
  104. package/dist/es-ES.mjs.map +1 -1
  105. package/dist/et-EE.cjs +5 -0
  106. package/dist/et-EE.cjs.map +1 -1
  107. package/dist/et-EE.mjs +5 -0
  108. package/dist/et-EE.mjs.map +1 -1
  109. package/dist/fi-FI.cjs +5 -0
  110. package/dist/fi-FI.cjs.map +1 -1
  111. package/dist/fi-FI.mjs +5 -0
  112. package/dist/fi-FI.mjs.map +1 -1
  113. package/dist/fr-FR.cjs +5 -0
  114. package/dist/fr-FR.cjs.map +1 -1
  115. package/dist/fr-FR.mjs +5 -0
  116. package/dist/fr-FR.mjs.map +1 -1
  117. package/dist/he-IL.cjs +5 -0
  118. package/dist/he-IL.cjs.map +1 -1
  119. package/dist/he-IL.mjs +5 -0
  120. package/dist/he-IL.mjs.map +1 -1
  121. package/dist/hr-HR.cjs +5 -0
  122. package/dist/hr-HR.cjs.map +1 -1
  123. package/dist/hr-HR.mjs +5 -0
  124. package/dist/hr-HR.mjs.map +1 -1
  125. package/dist/hu-HU.cjs +5 -0
  126. package/dist/hu-HU.cjs.map +1 -1
  127. package/dist/hu-HU.mjs +5 -0
  128. package/dist/hu-HU.mjs.map +1 -1
  129. package/dist/it-IT.cjs +5 -0
  130. package/dist/it-IT.cjs.map +1 -1
  131. package/dist/it-IT.mjs +5 -0
  132. package/dist/it-IT.mjs.map +1 -1
  133. package/dist/ja-JP.cjs +5 -0
  134. package/dist/ja-JP.cjs.map +1 -1
  135. package/dist/ja-JP.mjs +5 -0
  136. package/dist/ja-JP.mjs.map +1 -1
  137. package/dist/ko-KR.cjs +5 -0
  138. package/dist/ko-KR.cjs.map +1 -1
  139. package/dist/ko-KR.mjs +5 -0
  140. package/dist/ko-KR.mjs.map +1 -1
  141. package/dist/lt-LT.cjs +5 -0
  142. package/dist/lt-LT.cjs.map +1 -1
  143. package/dist/lt-LT.mjs +5 -0
  144. package/dist/lt-LT.mjs.map +1 -1
  145. package/dist/lv-LV.cjs +5 -0
  146. package/dist/lv-LV.cjs.map +1 -1
  147. package/dist/lv-LV.mjs +5 -0
  148. package/dist/lv-LV.mjs.map +1 -1
  149. package/dist/main.cjs +8 -0
  150. package/dist/main.cjs.map +1 -1
  151. package/dist/module.mjs +3 -1
  152. package/dist/module.mjs.map +1 -1
  153. package/dist/nb-NO.cjs +5 -0
  154. package/dist/nb-NO.cjs.map +1 -1
  155. package/dist/nb-NO.mjs +5 -0
  156. package/dist/nb-NO.mjs.map +1 -1
  157. package/dist/nl-NL.cjs +5 -0
  158. package/dist/nl-NL.cjs.map +1 -1
  159. package/dist/nl-NL.mjs +5 -0
  160. package/dist/nl-NL.mjs.map +1 -1
  161. package/dist/pl-PL.cjs +5 -0
  162. package/dist/pl-PL.cjs.map +1 -1
  163. package/dist/pl-PL.mjs +5 -0
  164. package/dist/pl-PL.mjs.map +1 -1
  165. package/dist/pt-BR.cjs +5 -0
  166. package/dist/pt-BR.cjs.map +1 -1
  167. package/dist/pt-BR.mjs +5 -0
  168. package/dist/pt-BR.mjs.map +1 -1
  169. package/dist/pt-PT.cjs +5 -0
  170. package/dist/pt-PT.cjs.map +1 -1
  171. package/dist/pt-PT.mjs +5 -0
  172. package/dist/pt-PT.mjs.map +1 -1
  173. package/dist/ro-RO.cjs +5 -0
  174. package/dist/ro-RO.cjs.map +1 -1
  175. package/dist/ro-RO.mjs +5 -0
  176. package/dist/ro-RO.mjs.map +1 -1
  177. package/dist/ru-RU.cjs +5 -0
  178. package/dist/ru-RU.cjs.map +1 -1
  179. package/dist/ru-RU.mjs +5 -0
  180. package/dist/ru-RU.mjs.map +1 -1
  181. package/dist/sk-SK.cjs +5 -0
  182. package/dist/sk-SK.cjs.map +1 -1
  183. package/dist/sk-SK.mjs +5 -0
  184. package/dist/sk-SK.mjs.map +1 -1
  185. package/dist/sl-SI.cjs +5 -0
  186. package/dist/sl-SI.cjs.map +1 -1
  187. package/dist/sl-SI.mjs +5 -0
  188. package/dist/sl-SI.mjs.map +1 -1
  189. package/dist/sr-SP.cjs +5 -0
  190. package/dist/sr-SP.cjs.map +1 -1
  191. package/dist/sr-SP.mjs +5 -0
  192. package/dist/sr-SP.mjs.map +1 -1
  193. package/dist/sv-SE.cjs +5 -0
  194. package/dist/sv-SE.cjs.map +1 -1
  195. package/dist/sv-SE.mjs +5 -0
  196. package/dist/sv-SE.mjs.map +1 -1
  197. package/dist/tr-TR.cjs +5 -0
  198. package/dist/tr-TR.cjs.map +1 -1
  199. package/dist/tr-TR.mjs +5 -0
  200. package/dist/tr-TR.mjs.map +1 -1
  201. package/dist/types.d.ts +93 -4
  202. package/dist/types.d.ts.map +1 -1
  203. package/dist/uk-UA.cjs +5 -0
  204. package/dist/uk-UA.cjs.map +1 -1
  205. package/dist/uk-UA.mjs +5 -0
  206. package/dist/uk-UA.mjs.map +1 -1
  207. package/dist/utils.cjs +30 -0
  208. package/dist/utils.cjs.map +1 -0
  209. package/dist/utils.mjs +25 -0
  210. package/dist/utils.mjs.map +1 -0
  211. package/dist/zh-CN.cjs +5 -0
  212. package/dist/zh-CN.cjs.map +1 -1
  213. package/dist/zh-CN.mjs +5 -0
  214. package/dist/zh-CN.mjs.map +1 -1
  215. package/dist/zh-TW.cjs +5 -0
  216. package/dist/zh-TW.cjs.map +1 -1
  217. package/dist/zh-TW.mjs +5 -0
  218. package/dist/zh-TW.mjs.map +1 -1
  219. package/package.json +18 -16
  220. package/src/Accordion.tsx +2 -2
  221. package/src/Button.tsx +22 -14
  222. package/src/Card.tsx +1 -1
  223. package/src/Checkbox.tsx +1 -0
  224. package/src/ComboBox.tsx +3 -0
  225. package/src/Content.tsx +1 -3
  226. package/src/Dialog.tsx +3 -2
  227. package/src/Disclosure.tsx +3 -3
  228. package/src/Picker.tsx +3 -0
  229. package/src/Popover.tsx +4 -1
  230. package/src/SegmentedControl.tsx +14 -3
  231. package/src/Table.tsx +1084 -48
  232. package/src/TagGroup.tsx +3 -2
  233. package/src/index.ts +2 -0
  234. package/src/utils.ts +28 -0
  235. package/style/__tests__/mergeStyles.test.js +32 -0
  236. package/style/__tests__/style-macro.test.js +128 -0
  237. package/style/dist/main.cjs +1984 -0
  238. package/style/dist/main.cjs.map +1 -0
  239. package/style/dist/module.mjs +1973 -0
  240. package/style/dist/module.mjs.map +1 -0
  241. package/style/dist/style-macro.cjs +543 -0
  242. package/style/dist/style-macro.cjs.map +1 -0
  243. package/style/dist/style-macro.mjs +534 -0
  244. package/style/dist/style-macro.mjs.map +1 -0
  245. package/style/dist/types.d.ts +780 -0
  246. package/style/dist/types.d.ts.map +1 -0
  247. package/style/runtime.ts +103 -0
  248. package/style/spectrum-theme.ts +974 -0
  249. package/style/style-macro.ts +638 -0
  250. package/style/tokens.ts +68 -0
  251. package/style/types.ts +177 -0
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,8EAAY,CAAC;IAClD,uBAAuB,CAAC,iDAAO,CAAC;IAChC,uBAAuB,CAAC,sEAAU,CAAC;IACnC,gBAAgB,CAAC,4FAAc,CAAC;IAChC,kBAAkB,CAAC,+DAAS,CAAC;IAC7B,2BAA2B,CAAC,2KAA2B,CAAC;IACxD,2BAA2B,CAAC,sEAAU,CAAC;IACvC,wBAAwB,CAAC,iDAAO,CAAC;IACjC,sBAAsB,CAAC,oFAAY,CAAC;IACpC,wBAAwB,CAAC,iDAAO,CAAC;IACjC,oBAAoB,CAAC,8FAAe,CAAC;IACrC,oBAAoB,CAAC,gFAAa,CAAC;IACnC,oBAAoB,CAAC,gEAAU,CAAC;IAChC,sBAAsB,CAAC,+FAAiB,CAAC;IACzC,kBAAkB,CAAC,wDAAQ,CAAC;IAC5B,kBAAkB,CAAC,iDAAO,CAAC;IAC3B,eAAe,CAAC,qBAAG,CAAC;IACpB,uBAAuB,CAAC,0GAAgB,CAAC;IACzC,cAAc,CAAC,mCAAK,CAAC;IACrB,0BAA0B,CAAC,MAAM,YAAc,CAAC,gFAAc,EAAE,UAAU,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;AACpG","sources":["packages/@react-spectrum/s2/intl/uk-UA.json"],"sourcesContent":["{\n \"button.pending\": \"в очікуванні\",\n \"contextualhelp.help\": \"Довідка\",\n \"contextualhelp.info\": \"Інформація\",\n \"dialog.alert\": \"Сигнал тривоги\",\n \"dialog.dismiss\": \"Скасувати\",\n \"dropzone.replaceMessage\": \"Перетягніть файл для заміни\",\n \"inlinealert.informative\": \"Інформація\",\n \"inlinealert.negative\": \"Помилка\",\n \"inlinealert.notice\": \"Попередження\",\n \"inlinealert.positive\": \"Успішно\",\n \"label.(optional)\": \"(необов’язково)\",\n \"label.(required)\": \"(обов’язково)\",\n \"menu.moreActions\": \"Більше дій\",\n \"picker.placeholder\": \"Виберіть опцію...\",\n \"slider.maximum\": \"Максимум\",\n \"slider.minimum\": \"Мінімум\",\n \"tag.actions\": \"Дії\",\n \"tag.hideButtonLabel\": \"Показувати менше\",\n \"tag.noTags\": \"Немає\",\n \"tag.showAllButtonLabel\": \"Показати всі ({tagCount, number})\"\n}"],"names":[],"version":3,"file":"uk-UA.mjs.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,8EAAY,CAAC;IAClD,uBAAuB,CAAC,iDAAO,CAAC;IAChC,uBAAuB,CAAC,sEAAU,CAAC;IACnC,gBAAgB,CAAC,4FAAc,CAAC;IAChC,kBAAkB,CAAC,+DAAS,CAAC;IAC7B,2BAA2B,CAAC,2KAA2B,CAAC;IACxD,2BAA2B,CAAC,sEAAU,CAAC;IACvC,wBAAwB,CAAC,iDAAO,CAAC;IACjC,sBAAsB,CAAC,oFAAY,CAAC;IACpC,wBAAwB,CAAC,iDAAO,CAAC;IACjC,oBAAoB,CAAC,8FAAe,CAAC;IACrC,oBAAoB,CAAC,gFAAa,CAAC;IACnC,oBAAoB,CAAC,gEAAU,CAAC;IAChC,sBAAsB,CAAC,+FAAiB,CAAC;IACzC,kBAAkB,CAAC,wDAAQ,CAAC;IAC5B,kBAAkB,CAAC,iDAAO,CAAC;IAC3B,iBAAiB,CAAC,4FAAa,CAAC;IAChC,qBAAqB,CAAC,qLAA8B,CAAC;IACrD,sBAAsB,CAAC,8IAAsB,CAAC;IAC9C,uBAAuB,CAAC,qJAAuB,CAAC;IAChD,wBAAwB,CAAC,8IAAsB,CAAC;IAChD,eAAe,CAAC,qBAAG,CAAC;IACpB,uBAAuB,CAAC,0GAAgB,CAAC;IACzC,cAAc,CAAC,mCAAK,CAAC;IACrB,0BAA0B,CAAC,MAAM,YAAc,CAAC,gFAAc,EAAE,UAAU,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;AACpG","sources":["packages/@react-spectrum/s2/intl/uk-UA.json"],"sourcesContent":["{\n \"button.pending\": \"в очікуванні\",\n \"contextualhelp.help\": \"Довідка\",\n \"contextualhelp.info\": \"Інформація\",\n \"dialog.alert\": \"Сигнал тривоги\",\n \"dialog.dismiss\": \"Скасувати\",\n \"dropzone.replaceMessage\": \"Перетягніть файл для заміни\",\n \"inlinealert.informative\": \"Інформація\",\n \"inlinealert.negative\": \"Помилка\",\n \"inlinealert.notice\": \"Попередження\",\n \"inlinealert.positive\": \"Успішно\",\n \"label.(optional)\": \"(необов’язково)\",\n \"label.(required)\": \"(обов’язково)\",\n \"menu.moreActions\": \"Більше дій\",\n \"picker.placeholder\": \"Виберіть опцію...\",\n \"slider.maximum\": \"Максимум\",\n \"slider.minimum\": \"Мінімум\",\n \"table.loading\": \"Завантаження…\",\n \"table.loadingMore\": \"Завантаження інших об’єктів...\",\n \"table.resizeColumn\": \"Змінити розмір стовпця\",\n \"table.sortAscending\": \"Сортувати за зростанням\",\n \"table.sortDescending\": \"Сортувати за спаданням\",\n \"tag.actions\": \"Дії\",\n \"tag.hideButtonLabel\": \"Показувати менше\",\n \"tag.noTags\": \"Немає\",\n \"tag.showAllButtonLabel\": \"Показати всі ({tagCount, number})\"\n}"],"names":[],"version":3,"file":"uk-UA.mjs.map"}
package/dist/utils.cjs ADDED
@@ -0,0 +1,30 @@
1
+ var $1ieZL$reactspectrumutils = require("@react-spectrum/utils");
2
+
3
+
4
+ function $parcel$export(e, n, v, s) {
5
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
+ }
7
+
8
+ $parcel$export(module.exports, "useScale", () => $ee7b4c497f520c08$export$a8d2043b2d807f4d);
9
+ /*
10
+ * Copyright 2024 Adobe. All rights reserved.
11
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License. You may obtain a copy
13
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software distributed under
16
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
17
+ * OF ANY KIND, either express or implied. See the License for the specific language
18
+ * governing permissions and limitations under the License.
19
+ */
20
+ function $ee7b4c497f520c08$export$736bf165441b18c7() {
21
+ return (0, $1ieZL$reactspectrumutils.useMediaQuery)('(max-width: 640px)');
22
+ }
23
+ function $ee7b4c497f520c08$export$a8d2043b2d807f4d() {
24
+ let matchesFine = (0, $1ieZL$reactspectrumutils.useMediaQuery)('not ((hover: hover) and (pointer: fine))');
25
+ if (matchesFine) return 'large';
26
+ return 'medium';
27
+ }
28
+
29
+
30
+ //# sourceMappingURL=utils.cjs.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAMM,SAAS;IACd,OAAO,CAAA,GAAA,uCAAY,EAAE;AACvB;AAEO,SAAS;IACd,IAAI,cAAc,CAAA,GAAA,uCAAY,EAAE;IAChC,IAAI,aACF,OAAO;IAGT,OAAO;AACT","sources":["packages/@react-spectrum/s2/src/utils.ts"],"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 {useMediaQuery} from '@react-spectrum/utils';\n\nexport type Scale = 'large' | 'medium';\n\nexport function useIsMobileDevice(): boolean {\n return useMediaQuery('(max-width: 640px)');\n}\n\nexport function useScale(): Scale {\n let matchesFine = useMediaQuery('not ((hover: hover) and (pointer: fine))');\n if (matchesFine) {\n return 'large';\n }\n\n return 'medium';\n}\n"],"names":[],"version":3,"file":"utils.cjs.map"}
package/dist/utils.mjs ADDED
@@ -0,0 +1,25 @@
1
+ import {useMediaQuery as $cqUHD$useMediaQuery} from "@react-spectrum/utils";
2
+
3
+ /*
4
+ * Copyright 2024 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */
14
+ function $859432f3b3573fcb$export$736bf165441b18c7() {
15
+ return (0, $cqUHD$useMediaQuery)('(max-width: 640px)');
16
+ }
17
+ function $859432f3b3573fcb$export$a8d2043b2d807f4d() {
18
+ let matchesFine = (0, $cqUHD$useMediaQuery)('not ((hover: hover) and (pointer: fine))');
19
+ if (matchesFine) return 'large';
20
+ return 'medium';
21
+ }
22
+
23
+
24
+ export {$859432f3b3573fcb$export$736bf165441b18c7 as useIsMobileDevice, $859432f3b3573fcb$export$a8d2043b2d807f4d as useScale};
25
+ //# sourceMappingURL=utils.mjs.map
@@ -0,0 +1 @@
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC;AAMM,SAAS;IACd,OAAO,CAAA,GAAA,oBAAY,EAAE;AACvB;AAEO,SAAS;IACd,IAAI,cAAc,CAAA,GAAA,oBAAY,EAAE;IAChC,IAAI,aACF,OAAO;IAGT,OAAO;AACT","sources":["packages/@react-spectrum/s2/src/utils.ts"],"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 {useMediaQuery} from '@react-spectrum/utils';\n\nexport type Scale = 'large' | 'medium';\n\nexport function useIsMobileDevice(): boolean {\n return useMediaQuery('(max-width: 640px)');\n}\n\nexport function useScale(): Scale {\n let matchesFine = useMediaQuery('not ((hover: hover) and (pointer: fine))');\n if (matchesFine) {\n return 'large';\n }\n\n return 'medium';\n}\n"],"names":[],"version":3,"file":"utils.mjs.map"}
package/dist/zh-CN.cjs CHANGED
@@ -15,6 +15,11 @@ module.exports = {
15
15
  "picker.placeholder": `\u{9009}\u{62E9}\u{4E00}\u{4E2A}\u{9009}\u{9879}...`,
16
16
  "slider.maximum": `\u{6700}\u{5927}`,
17
17
  "slider.minimum": `\u{6700}\u{5C0F}`,
18
+ "table.loading": `\u{6B63}\u{5728}\u{52A0}\u{8F7D}...`,
19
+ "table.loadingMore": `\u{6B63}\u{5728}\u{52A0}\u{8F7D}\u{66F4}\u{591A}...`,
20
+ "table.resizeColumn": `\u{8C03}\u{6574}\u{5217}\u{5927}\u{5C0F}`,
21
+ "table.sortAscending": `\u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
22
+ "table.sortDescending": `\u{964D}\u{5E8F}\u{6392}\u{5E8F}`,
18
23
  "tag.actions": `\u{64CD}\u{4F5C}`,
19
24
  "tag.hideButtonLabel": `\u{663E}\u{793A}\u{66F4}\u{5C11}`,
20
25
  "tag.noTags": `\u{65E0}`,
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,wBAAG,CAAC;IACzC,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,gBAAgB,CAAC,gBAAE,CAAC;IACpB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,2BAA2B,CAAC,gEAAQ,CAAC;IACrC,2BAA2B,CAAC,gBAAE,CAAC;IAC/B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,sBAAsB,CAAC,gBAAE,CAAC;IAC1B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,sBAAsB,CAAC,mDAAS,CAAC;IACjC,kBAAkB,CAAC,gBAAE,CAAC;IACtB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,eAAe,CAAC,gBAAE,CAAC;IACnB,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,cAAc,CAAC,QAAC,CAAC;IACjB,0BAA0B,CAAC,MAAM,YAAc,CAAC,kCAAM,EAAE,UAAU,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;AAC5F","sources":["packages/@react-spectrum/s2/intl/zh-CN.json"],"sourcesContent":["{\n \"button.pending\": \"待处理\",\n \"contextualhelp.help\": \"帮助\",\n \"contextualhelp.info\": \"信息\",\n \"dialog.alert\": \"警报\",\n \"dialog.dismiss\": \"取消\",\n \"dropzone.replaceMessage\": \"删除要替换的文件\",\n \"inlinealert.informative\": \"信息\",\n \"inlinealert.negative\": \"错误\",\n \"inlinealert.notice\": \"警告\",\n \"inlinealert.positive\": \"成功\",\n \"label.(optional)\": \"(可选)\",\n \"label.(required)\": \"(必填)\",\n \"menu.moreActions\": \"更多操作\",\n \"picker.placeholder\": \"选择一个选项...\",\n \"slider.maximum\": \"最大\",\n \"slider.minimum\": \"最小\",\n \"tag.actions\": \"操作\",\n \"tag.hideButtonLabel\": \"显示更少\",\n \"tag.noTags\": \"无\",\n \"tag.showAllButtonLabel\": \"全部显示 ({tagCount, number})\"\n}"],"names":[],"version":3,"file":"zh-CN.cjs.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,wBAAG,CAAC;IACzC,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,gBAAgB,CAAC,gBAAE,CAAC;IACpB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,2BAA2B,CAAC,gEAAQ,CAAC;IACrC,2BAA2B,CAAC,gBAAE,CAAC;IAC/B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,sBAAsB,CAAC,gBAAE,CAAC;IAC1B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,sBAAsB,CAAC,mDAAS,CAAC;IACjC,kBAAkB,CAAC,gBAAE,CAAC;IACtB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,iBAAiB,CAAC,mCAAO,CAAC;IAC1B,qBAAqB,CAAC,mDAAS,CAAC;IAChC,sBAAsB,CAAC,wCAAK,CAAC;IAC7B,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,wBAAwB,CAAC,gCAAI,CAAC;IAC9B,eAAe,CAAC,gBAAE,CAAC;IACnB,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,cAAc,CAAC,QAAC,CAAC;IACjB,0BAA0B,CAAC,MAAM,YAAc,CAAC,kCAAM,EAAE,UAAU,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;AAC5F","sources":["packages/@react-spectrum/s2/intl/zh-CN.json"],"sourcesContent":["{\n \"button.pending\": \"待处理\",\n \"contextualhelp.help\": \"帮助\",\n \"contextualhelp.info\": \"信息\",\n \"dialog.alert\": \"警报\",\n \"dialog.dismiss\": \"取消\",\n \"dropzone.replaceMessage\": \"删除要替换的文件\",\n \"inlinealert.informative\": \"信息\",\n \"inlinealert.negative\": \"错误\",\n \"inlinealert.notice\": \"警告\",\n \"inlinealert.positive\": \"成功\",\n \"label.(optional)\": \"(可选)\",\n \"label.(required)\": \"(必填)\",\n \"menu.moreActions\": \"更多操作\",\n \"picker.placeholder\": \"选择一个选项...\",\n \"slider.maximum\": \"最大\",\n \"slider.minimum\": \"最小\",\n \"table.loading\": \"正在加载...\",\n \"table.loadingMore\": \"正在加载更多...\",\n \"table.resizeColumn\": \"调整列大小\",\n \"table.sortAscending\": \"升序排序\",\n \"table.sortDescending\": \"降序排序\",\n \"tag.actions\": \"操作\",\n \"tag.hideButtonLabel\": \"显示更少\",\n \"tag.noTags\": \"无\",\n \"tag.showAllButtonLabel\": \"全部显示 ({tagCount, number})\"\n}"],"names":[],"version":3,"file":"zh-CN.cjs.map"}
package/dist/zh-CN.mjs CHANGED
@@ -16,6 +16,11 @@ $50d924ca2959ae83$exports = {
16
16
  "picker.placeholder": `\u{9009}\u{62E9}\u{4E00}\u{4E2A}\u{9009}\u{9879}...`,
17
17
  "slider.maximum": `\u{6700}\u{5927}`,
18
18
  "slider.minimum": `\u{6700}\u{5C0F}`,
19
+ "table.loading": `\u{6B63}\u{5728}\u{52A0}\u{8F7D}...`,
20
+ "table.loadingMore": `\u{6B63}\u{5728}\u{52A0}\u{8F7D}\u{66F4}\u{591A}...`,
21
+ "table.resizeColumn": `\u{8C03}\u{6574}\u{5217}\u{5927}\u{5C0F}`,
22
+ "table.sortAscending": `\u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
23
+ "table.sortDescending": `\u{964D}\u{5E8F}\u{6392}\u{5E8F}`,
19
24
  "tag.actions": `\u{64CD}\u{4F5C}`,
20
25
  "tag.hideButtonLabel": `\u{663E}\u{793A}\u{66F4}\u{5C11}`,
21
26
  "tag.noTags": `\u{65E0}`,
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,wBAAG,CAAC;IACzC,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,gBAAgB,CAAC,gBAAE,CAAC;IACpB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,2BAA2B,CAAC,gEAAQ,CAAC;IACrC,2BAA2B,CAAC,gBAAE,CAAC;IAC/B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,sBAAsB,CAAC,gBAAE,CAAC;IAC1B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,sBAAsB,CAAC,mDAAS,CAAC;IACjC,kBAAkB,CAAC,gBAAE,CAAC;IACtB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,eAAe,CAAC,gBAAE,CAAC;IACnB,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,cAAc,CAAC,QAAC,CAAC;IACjB,0BAA0B,CAAC,MAAM,YAAc,CAAC,kCAAM,EAAE,UAAU,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;AAC5F","sources":["packages/@react-spectrum/s2/intl/zh-CN.json"],"sourcesContent":["{\n \"button.pending\": \"待处理\",\n \"contextualhelp.help\": \"帮助\",\n \"contextualhelp.info\": \"信息\",\n \"dialog.alert\": \"警报\",\n \"dialog.dismiss\": \"取消\",\n \"dropzone.replaceMessage\": \"删除要替换的文件\",\n \"inlinealert.informative\": \"信息\",\n \"inlinealert.negative\": \"错误\",\n \"inlinealert.notice\": \"警告\",\n \"inlinealert.positive\": \"成功\",\n \"label.(optional)\": \"(可选)\",\n \"label.(required)\": \"(必填)\",\n \"menu.moreActions\": \"更多操作\",\n \"picker.placeholder\": \"选择一个选项...\",\n \"slider.maximum\": \"最大\",\n \"slider.minimum\": \"最小\",\n \"tag.actions\": \"操作\",\n \"tag.hideButtonLabel\": \"显示更少\",\n \"tag.noTags\": \"无\",\n \"tag.showAllButtonLabel\": \"全部显示 ({tagCount, number})\"\n}"],"names":[],"version":3,"file":"zh-CN.mjs.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,wBAAG,CAAC;IACzC,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,gBAAgB,CAAC,gBAAE,CAAC;IACpB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,2BAA2B,CAAC,gEAAQ,CAAC;IACrC,2BAA2B,CAAC,gBAAE,CAAC;IAC/B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,sBAAsB,CAAC,gBAAE,CAAC;IAC1B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,sBAAsB,CAAC,mDAAS,CAAC;IACjC,kBAAkB,CAAC,gBAAE,CAAC;IACtB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,iBAAiB,CAAC,mCAAO,CAAC;IAC1B,qBAAqB,CAAC,mDAAS,CAAC;IAChC,sBAAsB,CAAC,wCAAK,CAAC;IAC7B,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,wBAAwB,CAAC,gCAAI,CAAC;IAC9B,eAAe,CAAC,gBAAE,CAAC;IACnB,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,cAAc,CAAC,QAAC,CAAC;IACjB,0BAA0B,CAAC,MAAM,YAAc,CAAC,kCAAM,EAAE,UAAU,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;AAC5F","sources":["packages/@react-spectrum/s2/intl/zh-CN.json"],"sourcesContent":["{\n \"button.pending\": \"待处理\",\n \"contextualhelp.help\": \"帮助\",\n \"contextualhelp.info\": \"信息\",\n \"dialog.alert\": \"警报\",\n \"dialog.dismiss\": \"取消\",\n \"dropzone.replaceMessage\": \"删除要替换的文件\",\n \"inlinealert.informative\": \"信息\",\n \"inlinealert.negative\": \"错误\",\n \"inlinealert.notice\": \"警告\",\n \"inlinealert.positive\": \"成功\",\n \"label.(optional)\": \"(可选)\",\n \"label.(required)\": \"(必填)\",\n \"menu.moreActions\": \"更多操作\",\n \"picker.placeholder\": \"选择一个选项...\",\n \"slider.maximum\": \"最大\",\n \"slider.minimum\": \"最小\",\n \"table.loading\": \"正在加载...\",\n \"table.loadingMore\": \"正在加载更多...\",\n \"table.resizeColumn\": \"调整列大小\",\n \"table.sortAscending\": \"升序排序\",\n \"table.sortDescending\": \"降序排序\",\n \"tag.actions\": \"操作\",\n \"tag.hideButtonLabel\": \"显示更少\",\n \"tag.noTags\": \"无\",\n \"tag.showAllButtonLabel\": \"全部显示 ({tagCount, number})\"\n}"],"names":[],"version":3,"file":"zh-CN.mjs.map"}
package/dist/zh-TW.cjs CHANGED
@@ -15,6 +15,11 @@ module.exports = {
15
15
  "picker.placeholder": `\u{9078}\u{53D6}\u{4E00}\u{500B}\u{9078}\u{9805}`,
16
16
  "slider.maximum": `\u{6700}\u{5927}\u{503C}`,
17
17
  "slider.minimum": `\u{6700}\u{5C0F}\u{503C}`,
18
+ "table.loading": `\u{8F09}\u{5165}\u{4E2D}\u{2026}`,
19
+ "table.loadingMore": `\u{6B63}\u{5728}\u{8F09}\u{5165}\u{66F4}\u{591A}\u{2026}`,
20
+ "table.resizeColumn": `\u{8ABF}\u{6574}\u{6B04}\u{5927}\u{5C0F}`,
21
+ "table.sortAscending": `\u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
22
+ "table.sortDescending": `\u{964D}\u{5E8F}\u{6392}\u{5E8F}`,
18
23
  "tag.actions": `\u{52D5}\u{4F5C}`,
19
24
  "tag.hideButtonLabel": `\u{986F}\u{793A}\u{8F03}\u{5C11}`,
20
25
  "tag.noTags": `\u{7121}`,
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,wBAAG,CAAC;IACzC,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,gBAAgB,CAAC,gBAAE,CAAC;IACpB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,2BAA2B,CAAC,gEAAQ,CAAC;IACrC,2BAA2B,CAAC,gBAAE,CAAC;IAC/B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,sBAAsB,CAAC,gBAAE,CAAC;IAC1B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,oBAAoB,CAAC,kBAAI,CAAC;IAC1B,oBAAoB,CAAC,kBAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,sBAAsB,CAAC,gDAAM,CAAC;IAC9B,kBAAkB,CAAC,wBAAG,CAAC;IACvB,kBAAkB,CAAC,wBAAG,CAAC;IACvB,eAAe,CAAC,gBAAE,CAAC;IACnB,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,cAAc,CAAC,QAAC,CAAC;IACjB,0BAA0B,CAAC,MAAM,YAAc,CAAC,kCAAM,EAAE,UAAU,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;AAC5F","sources":["packages/@react-spectrum/s2/intl/zh-TW.json"],"sourcesContent":["{\n \"button.pending\": \"待處理\",\n \"contextualhelp.help\": \"說明\",\n \"contextualhelp.info\": \"資訊\",\n \"dialog.alert\": \"警示\",\n \"dialog.dismiss\": \"關閉\",\n \"dropzone.replaceMessage\": \"放置要取代的檔案\",\n \"inlinealert.informative\": \"資訊\",\n \"inlinealert.negative\": \"錯誤\",\n \"inlinealert.notice\": \"警告\",\n \"inlinealert.positive\": \"成功\",\n \"label.(optional)\": \"(選填)\",\n \"label.(required)\": \"(必填)\",\n \"menu.moreActions\": \"更多動作\",\n \"picker.placeholder\": \"選取一個選項\",\n \"slider.maximum\": \"最大值\",\n \"slider.minimum\": \"最小值\",\n \"tag.actions\": \"動作\",\n \"tag.hideButtonLabel\": \"顯示較少\",\n \"tag.noTags\": \"無\",\n \"tag.showAllButtonLabel\": \"顯示全部 ({tagCount, number})\"\n}"],"names":[],"version":3,"file":"zh-TW.cjs.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,wBAAG,CAAC;IACzC,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,gBAAgB,CAAC,gBAAE,CAAC;IACpB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,2BAA2B,CAAC,gEAAQ,CAAC;IACrC,2BAA2B,CAAC,gBAAE,CAAC;IAC/B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,sBAAsB,CAAC,gBAAE,CAAC;IAC1B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,oBAAoB,CAAC,kBAAI,CAAC;IAC1B,oBAAoB,CAAC,kBAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,sBAAsB,CAAC,gDAAM,CAAC;IAC9B,kBAAkB,CAAC,wBAAG,CAAC;IACvB,kBAAkB,CAAC,wBAAG,CAAC;IACvB,iBAAiB,CAAC,gCAAI,CAAC;IACvB,qBAAqB,CAAC,wDAAO,CAAC;IAC9B,sBAAsB,CAAC,wCAAK,CAAC;IAC7B,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,wBAAwB,CAAC,gCAAI,CAAC;IAC9B,eAAe,CAAC,gBAAE,CAAC;IACnB,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,cAAc,CAAC,QAAC,CAAC;IACjB,0BAA0B,CAAC,MAAM,YAAc,CAAC,kCAAM,EAAE,UAAU,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;AAC5F","sources":["packages/@react-spectrum/s2/intl/zh-TW.json"],"sourcesContent":["{\n \"button.pending\": \"待處理\",\n \"contextualhelp.help\": \"說明\",\n \"contextualhelp.info\": \"資訊\",\n \"dialog.alert\": \"警示\",\n \"dialog.dismiss\": \"關閉\",\n \"dropzone.replaceMessage\": \"放置要取代的檔案\",\n \"inlinealert.informative\": \"資訊\",\n \"inlinealert.negative\": \"錯誤\",\n \"inlinealert.notice\": \"警告\",\n \"inlinealert.positive\": \"成功\",\n \"label.(optional)\": \"(選填)\",\n \"label.(required)\": \"(必填)\",\n \"menu.moreActions\": \"更多動作\",\n \"picker.placeholder\": \"選取一個選項\",\n \"slider.maximum\": \"最大值\",\n \"slider.minimum\": \"最小值\",\n \"table.loading\": \"載入中…\",\n \"table.loadingMore\": \"正在載入更多…\",\n \"table.resizeColumn\": \"調整欄大小\",\n \"table.sortAscending\": \"升序排序\",\n \"table.sortDescending\": \"降序排序\",\n \"tag.actions\": \"動作\",\n \"tag.hideButtonLabel\": \"顯示較少\",\n \"tag.noTags\": \"無\",\n \"tag.showAllButtonLabel\": \"顯示全部 ({tagCount, number})\"\n}"],"names":[],"version":3,"file":"zh-TW.cjs.map"}
package/dist/zh-TW.mjs CHANGED
@@ -16,6 +16,11 @@ $8cf71e4dbf20ddea$exports = {
16
16
  "picker.placeholder": `\u{9078}\u{53D6}\u{4E00}\u{500B}\u{9078}\u{9805}`,
17
17
  "slider.maximum": `\u{6700}\u{5927}\u{503C}`,
18
18
  "slider.minimum": `\u{6700}\u{5C0F}\u{503C}`,
19
+ "table.loading": `\u{8F09}\u{5165}\u{4E2D}\u{2026}`,
20
+ "table.loadingMore": `\u{6B63}\u{5728}\u{8F09}\u{5165}\u{66F4}\u{591A}\u{2026}`,
21
+ "table.resizeColumn": `\u{8ABF}\u{6574}\u{6B04}\u{5927}\u{5C0F}`,
22
+ "table.sortAscending": `\u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
23
+ "table.sortDescending": `\u{964D}\u{5E8F}\u{6392}\u{5E8F}`,
19
24
  "tag.actions": `\u{52D5}\u{4F5C}`,
20
25
  "tag.hideButtonLabel": `\u{986F}\u{793A}\u{8F03}\u{5C11}`,
21
26
  "tag.noTags": `\u{7121}`,
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,wBAAG,CAAC;IACzC,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,gBAAgB,CAAC,gBAAE,CAAC;IACpB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,2BAA2B,CAAC,gEAAQ,CAAC;IACrC,2BAA2B,CAAC,gBAAE,CAAC;IAC/B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,sBAAsB,CAAC,gBAAE,CAAC;IAC1B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,oBAAoB,CAAC,kBAAI,CAAC;IAC1B,oBAAoB,CAAC,kBAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,sBAAsB,CAAC,gDAAM,CAAC;IAC9B,kBAAkB,CAAC,wBAAG,CAAC;IACvB,kBAAkB,CAAC,wBAAG,CAAC;IACvB,eAAe,CAAC,gBAAE,CAAC;IACnB,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,cAAc,CAAC,QAAC,CAAC;IACjB,0BAA0B,CAAC,MAAM,YAAc,CAAC,kCAAM,EAAE,UAAU,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;AAC5F","sources":["packages/@react-spectrum/s2/intl/zh-TW.json"],"sourcesContent":["{\n \"button.pending\": \"待處理\",\n \"contextualhelp.help\": \"說明\",\n \"contextualhelp.info\": \"資訊\",\n \"dialog.alert\": \"警示\",\n \"dialog.dismiss\": \"關閉\",\n \"dropzone.replaceMessage\": \"放置要取代的檔案\",\n \"inlinealert.informative\": \"資訊\",\n \"inlinealert.negative\": \"錯誤\",\n \"inlinealert.notice\": \"警告\",\n \"inlinealert.positive\": \"成功\",\n \"label.(optional)\": \"(選填)\",\n \"label.(required)\": \"(必填)\",\n \"menu.moreActions\": \"更多動作\",\n \"picker.placeholder\": \"選取一個選項\",\n \"slider.maximum\": \"最大值\",\n \"slider.minimum\": \"最小值\",\n \"tag.actions\": \"動作\",\n \"tag.hideButtonLabel\": \"顯示較少\",\n \"tag.noTags\": \"無\",\n \"tag.showAllButtonLabel\": \"顯示全部 ({tagCount, number})\"\n}"],"names":[],"version":3,"file":"zh-TW.mjs.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,wBAAG,CAAC;IACzC,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,uBAAuB,CAAC,gBAAE,CAAC;IAC3B,gBAAgB,CAAC,gBAAE,CAAC;IACpB,kBAAkB,CAAC,gBAAE,CAAC;IACtB,2BAA2B,CAAC,gEAAQ,CAAC;IACrC,2BAA2B,CAAC,gBAAE,CAAC;IAC/B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,sBAAsB,CAAC,gBAAE,CAAC;IAC1B,wBAAwB,CAAC,gBAAE,CAAC;IAC5B,oBAAoB,CAAC,kBAAI,CAAC;IAC1B,oBAAoB,CAAC,kBAAI,CAAC;IAC1B,oBAAoB,CAAC,gCAAI,CAAC;IAC1B,sBAAsB,CAAC,gDAAM,CAAC;IAC9B,kBAAkB,CAAC,wBAAG,CAAC;IACvB,kBAAkB,CAAC,wBAAG,CAAC;IACvB,iBAAiB,CAAC,gCAAI,CAAC;IACvB,qBAAqB,CAAC,wDAAO,CAAC;IAC9B,sBAAsB,CAAC,wCAAK,CAAC;IAC7B,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,wBAAwB,CAAC,gCAAI,CAAC;IAC9B,eAAe,CAAC,gBAAE,CAAC;IACnB,uBAAuB,CAAC,gCAAI,CAAC;IAC7B,cAAc,CAAC,QAAC,CAAC;IACjB,0BAA0B,CAAC,MAAM,YAAc,CAAC,kCAAM,EAAE,UAAU,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;AAC5F","sources":["packages/@react-spectrum/s2/intl/zh-TW.json"],"sourcesContent":["{\n \"button.pending\": \"待處理\",\n \"contextualhelp.help\": \"說明\",\n \"contextualhelp.info\": \"資訊\",\n \"dialog.alert\": \"警示\",\n \"dialog.dismiss\": \"關閉\",\n \"dropzone.replaceMessage\": \"放置要取代的檔案\",\n \"inlinealert.informative\": \"資訊\",\n \"inlinealert.negative\": \"錯誤\",\n \"inlinealert.notice\": \"警告\",\n \"inlinealert.positive\": \"成功\",\n \"label.(optional)\": \"(選填)\",\n \"label.(required)\": \"(必填)\",\n \"menu.moreActions\": \"更多動作\",\n \"picker.placeholder\": \"選取一個選項\",\n \"slider.maximum\": \"最大值\",\n \"slider.minimum\": \"最小值\",\n \"table.loading\": \"載入中…\",\n \"table.loadingMore\": \"正在載入更多…\",\n \"table.resizeColumn\": \"調整欄大小\",\n \"table.sortAscending\": \"升序排序\",\n \"table.sortDescending\": \"降序排序\",\n \"tag.actions\": \"動作\",\n \"tag.hideButtonLabel\": \"顯示較少\",\n \"tag.noTags\": \"無\",\n \"tag.showAllButtonLabel\": \"顯示全部 ({tagCount, number})\"\n}"],"names":[],"version":3,"file":"zh-TW.mjs.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/s2",
3
- "version": "3.0.0-nightly-5a0b4fabc-240924",
3
+ "version": "3.0.0-nightly-a626c2596-240926",
4
4
  "description": "Spectrum 2 UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -49,28 +49,30 @@
49
49
  ],
50
50
  "files": [
51
51
  "dist",
52
- "style/dist",
53
- "style/package.json",
52
+ "style",
54
53
  "page.css",
55
54
  "icons",
56
55
  "illustrations",
57
56
  "src"
58
57
  ],
59
58
  "dependencies": {
60
- "@react-aria/collections": "3.0.0-nightly-5a0b4fabc-240924",
61
- "@react-aria/i18n": "^3.0.0-nightly-5a0b4fabc-240924",
62
- "@react-aria/interactions": "^3.0.0-nightly-5a0b4fabc-240924",
63
- "@react-aria/utils": "^3.0.0-nightly-5a0b4fabc-240924",
64
- "@react-spectrum/utils": "^3.0.0-nightly-5a0b4fabc-240924",
65
- "@react-stately/virtualizer": "^3.0.0-nightly-5a0b4fabc-240924",
66
- "@react-types/color": "3.0.0-nightly-5a0b4fabc-240924",
67
- "@react-types/dialog": "^3.0.0-nightly-5a0b4fabc-240924",
68
- "@react-types/provider": "^3.0.0-nightly-5a0b4fabc-240924",
69
- "@react-types/shared": "^3.0.0-nightly-5a0b4fabc-240924",
70
- "@react-types/textfield": "^3.0.0-nightly-5a0b4fabc-240924",
59
+ "@react-aria/collections": "3.0.0-nightly-a626c2596-240926",
60
+ "@react-aria/i18n": "^3.0.0-nightly-a626c2596-240926",
61
+ "@react-aria/interactions": "^3.0.0-nightly-a626c2596-240926",
62
+ "@react-aria/utils": "^3.0.0-nightly-a626c2596-240926",
63
+ "@react-spectrum/utils": "^3.0.0-nightly-a626c2596-240926",
64
+ "@react-stately/layout": "^3.0.0-nightly-a626c2596-240926",
65
+ "@react-stately/virtualizer": "^3.0.0-nightly-a626c2596-240926",
66
+ "@react-types/color": "3.0.0-nightly-a626c2596-240926",
67
+ "@react-types/dialog": "^3.0.0-nightly-a626c2596-240926",
68
+ "@react-types/grid": "^3.0.0-nightly-a626c2596-240926",
69
+ "@react-types/provider": "^3.0.0-nightly-a626c2596-240926",
70
+ "@react-types/shared": "^3.0.0-nightly-a626c2596-240926",
71
+ "@react-types/table": "^3.0.0-nightly-a626c2596-240926",
72
+ "@react-types/textfield": "^3.0.0-nightly-a626c2596-240926",
71
73
  "csstype": "^3.0.2",
72
- "react-aria": "^3.0.0-nightly-5a0b4fabc-240924",
73
- "react-aria-components": "^3.0.0-nightly-5a0b4fabc-240924"
74
+ "react-aria": "^3.0.0-nightly-a626c2596-240926",
75
+ "react-aria-components": "^3.0.0-nightly-a626c2596-240926"
74
76
  },
75
77
  "peerDependencies": {
76
78
  "react": "^18.0.0 || ^19.0.0",
package/src/Accordion.tsx CHANGED
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {ContextValue, DisclosureGroup, DisclosureGroupProps, SlotProps} from 'react-aria-components';
13
+ import {ContextValue, UNSTABLE_DisclosureGroup as DisclosureGroup, DisclosureGroupProps, SlotProps} from 'react-aria-components';
14
14
  import {DisclosureContext} from './Disclosure';
15
15
  import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
16
16
  import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with { type: 'macro' };
@@ -19,7 +19,7 @@ import {style} from '../style/spectrum-theme' with { type: 'macro' };
19
19
  import {useDOMRef} from '@react-spectrum/utils';
20
20
  import {useSpectrumContextProps} from './useSpectrumContextProps';
21
21
 
22
- export interface AccordionProps extends DisclosureGroupProps, UnsafeStyles, DOMProps, SlotProps {
22
+ export interface AccordionProps extends Omit<DisclosureGroupProps, 'className' | 'style' | 'children'>, UnsafeStyles, DOMProps, SlotProps {
23
23
  /** The disclosure elements in the accordion. */
24
24
  children: React.ReactNode,
25
25
  /** Spectrum-defined styles, returned by the `style()` macro. */
package/src/Button.tsx CHANGED
@@ -64,13 +64,14 @@ export interface LinkButtonProps extends Omit<LinkProps, 'className' | 'style' |
64
64
  export const ButtonContext = createContext<ContextValue<ButtonProps, FocusableRefValue<HTMLButtonElement>>>(null);
65
65
  export const LinkButtonContext = createContext<ContextValue<ButtonProps, FocusableRefValue<HTMLAnchorElement>>>(null);
66
66
 
67
+ const iconOnly = ':has([slot=icon]):not(:has([data-rsp-slot=text]))';
67
68
  const button = style<ButtonRenderProps & ButtonStyleProps>({
68
69
  ...focusRing(),
69
70
  position: 'relative',
70
71
  display: 'flex',
71
72
  alignItems: {
72
73
  default: 'baseline',
73
- ':has([slot=icon]):not(:has([data-rsp-slot=text]))': 'center'
74
+ [iconOnly]: 'center'
74
75
  },
75
76
  justifyContent: 'center',
76
77
  textAlign: 'start',
@@ -80,7 +81,7 @@ const button = style<ButtonRenderProps & ButtonStyleProps>({
80
81
  userSelect: 'none',
81
82
  minHeight: 'control',
82
83
  minWidth: {
83
- ':has([slot=icon]):not(:has([data-rsp-slot=text]))': 'control'
84
+ [iconOnly]: 'control'
84
85
  },
85
86
  borderRadius: 'pill',
86
87
  boxSizing: 'border-box',
@@ -88,11 +89,11 @@ const button = style<ButtonRenderProps & ButtonStyleProps>({
88
89
  textDecoration: 'none', // for link buttons
89
90
  paddingX: {
90
91
  default: 'pill',
91
- ':has([slot=icon]):not(:has([data-rsp-slot=text]))': 0
92
+ [iconOnly]: 0
92
93
  },
93
94
  paddingY: 0,
94
95
  aspectRatio: {
95
- ':has([slot=icon]):not(:has([data-rsp-slot=text]))': 'square'
96
+ [iconOnly]: 'square'
96
97
  },
97
98
  transition: 'default',
98
99
  borderStyle: 'solid',
@@ -110,7 +111,7 @@ const button = style<ButtonRenderProps & ButtonStyleProps>({
110
111
  type: 'marginTop',
111
112
  value: {
112
113
  default: fontRelative(-2),
113
- ':has([slot=icon]):not(:has([data-rsp-slot=text]))': 0
114
+ [iconOnly]: 0
114
115
  }
115
116
  },
116
117
  borderColor: {
@@ -331,15 +332,18 @@ function Button(props: ButtonProps, ref: FocusableRef<HTMLButtonElement>) {
331
332
  <Provider
332
333
  values={[
333
334
  [SkeletonContext, null],
334
- [TextContext, {styles: style({
335
- paddingY: '--labelPadding',
336
- order: 1,
337
- opacity: {
338
- default: 1,
339
- isProgressVisible: 0
340
- }
335
+ [TextContext, {
336
+ styles: style({
337
+ paddingY: '--labelPadding',
338
+ order: 1,
339
+ opacity: {
340
+ default: 1,
341
+ isProgressVisible: 0
342
+ }
343
+ })({isProgressVisible}),
341
344
  // @ts-ignore data-attributes allowed on all JSX elements, but adding to DOMProps has been problematic in the past
342
- })({isProgressVisible}), 'data-rsp-slot': 'text'}],
345
+ 'data-rsp-slot': 'text'
346
+ }],
343
347
  [IconContext, {
344
348
  render: centerBaseline({slot: 'icon', styles: style({order: 0})}),
345
349
  styles: style({
@@ -406,7 +410,11 @@ function LinkButton(props: LinkButtonProps, ref: FocusableRef<HTMLAnchorElement>
406
410
  <Provider
407
411
  values={[
408
412
  [SkeletonContext, null],
409
- [TextContext, {styles: style({paddingY: '--labelPadding', order: 1})}],
413
+ [TextContext, {
414
+ styles: style({paddingY: '--labelPadding', order: 1}),
415
+ // @ts-ignore data-attributes allowed on all JSX elements, but adding to DOMProps has been problematic in the past
416
+ 'data-rsp-slot': 'text'
417
+ }],
410
418
  [IconContext, {
411
419
  render: centerBaseline({slot: 'icon', styles: style({order: 0})}),
412
420
  styles: style({size: fontRelative(20), marginStart: '--iconMargin', flexShrink: 0})
package/src/Card.tsx CHANGED
@@ -419,7 +419,7 @@ export const Card = forwardRef(function Card(props: CardProps, ref: DOMRef<HTMLD
419
419
  return (
420
420
  <div
421
421
  {...filterDOMProps(otherProps)}
422
- id={String(id)}
422
+ id={id != null ? String(id) : undefined}
423
423
  // @ts-ignore - React < 19 compat
424
424
  inert={isSkeleton ? 'true' : undefined}
425
425
  ref={domRef}
package/src/Checkbox.tsx CHANGED
@@ -78,6 +78,7 @@ export const box = style<RenderProps>({
78
78
  forcedColorAdjust: 'none',
79
79
  backgroundColor: {
80
80
  default: 'gray-25',
81
+ forcedColors: 'Background',
81
82
  isSelected: {
82
83
  default: 'neutral',
83
84
  isEmphasized: baseColor('accent-900'),
package/src/ComboBox.tsx CHANGED
@@ -263,6 +263,9 @@ function ComboBox<T extends object>(props: ComboBoxProps<T>, ref: Ref<TextFieldR
263
263
  {isInvalid && <FieldErrorIcon isDisabled={isDisabled} />}
264
264
  <Button
265
265
  ref={buttonRef}
266
+ // Prevent press scale from sticking while ComboBox is open.
267
+ // @ts-ignore
268
+ isPressed={false}
266
269
  style={renderProps => pressScale(buttonRef)(renderProps)}
267
270
  className={renderProps => inputButton({
268
271
  ...renderProps,
package/src/Content.tsx CHANGED
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import {ContextValue, Keyboard as KeyboardAria, Header as RACHeader, Heading as RACHeading, TextContext as RACTextContext, SlotProps, Text as TextAria} from 'react-aria-components';
14
- import {createContext, forwardRef, ImgHTMLAttributes, ReactNode, useContext} from 'react';
14
+ import {createContext, forwardRef, ReactNode, useContext} from 'react';
15
15
  import {DOMRef, DOMRefValue} from '@react-types/shared';
16
16
  import {StyleString} from '../style/types';
17
17
  import {UnsafeStyles} from './style-utils';
@@ -172,5 +172,3 @@ function Footer(props: ContentProps, ref: DOMRef) {
172
172
 
173
173
  const _Footer = forwardRef(Footer);
174
174
  export {_Footer as Footer};
175
-
176
- export const ImageContext = createContext<ContextValue<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>({});
package/src/Dialog.tsx CHANGED
@@ -13,9 +13,10 @@
13
13
  import {PopoverProps as AriaPopoverProps, composeRenderProps, OverlayTriggerStateContext, Provider, Dialog as RACDialog, DialogProps as RACDialogProps} from 'react-aria-components';
14
14
  import {ButtonGroupContext} from './ButtonGroup';
15
15
  import {CloseButton} from './CloseButton';
16
- import {ContentContext, FooterContext, HeaderContext, HeadingContext, ImageContext} from './Content';
16
+ import {ContentContext, FooterContext, HeaderContext, HeadingContext} from './Content';
17
17
  import {createContext, forwardRef, RefObject, useContext} from 'react';
18
18
  import {DOMRef} from '@react-types/shared';
19
+ import {ImageContext} from './Image';
19
20
  // @ts-ignore
20
21
  import intlMessages from '../intl/*.json';
21
22
  import {Modal} from './Modal';
@@ -195,7 +196,7 @@ function DialogInner(props: DialogProps & DialogContextValue & {dialogRef: RefOb
195
196
  {/* Hero image */}
196
197
  <Provider
197
198
  values={[
198
- [ImageContext, {className: image}],
199
+ [ImageContext, {styles: image}],
199
200
  [HeadingContext, {isHidden: true}],
200
201
  [HeaderContext, {isHidden: true}],
201
202
  [ContentContext, {isHidden: true}],
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import {AriaLabelingProps, DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
14
- import {Button, ContextValue, DisclosureStateContext, Heading, Provider, Disclosure as RACDisclosure, DisclosurePanel as RACDisclosurePanel, DisclosurePanelProps as RACDisclosurePanelProps, DisclosureProps as RACDisclosureProps, useLocale, useSlottedContext} from 'react-aria-components';
14
+ import {Button, ContextValue, DisclosureStateContext, Heading, Provider, UNSTABLE_Disclosure as RACDisclosure, UNSTABLE_DisclosurePanel as RACDisclosurePanel, DisclosurePanelProps as RACDisclosurePanelProps, DisclosureProps as RACDisclosureProps, useLocale, useSlottedContext} from 'react-aria-components';
15
15
  import {CenterBaseline} from './CenterBaseline';
16
16
  import {centerPadding, focusRing, getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with { type: 'macro' };
17
17
  import Chevron from '../ui-icons/Chevron';
@@ -21,7 +21,7 @@ import React, {createContext, forwardRef, ReactNode, useContext} from 'react';
21
21
  import {useDOMRef} from '@react-spectrum/utils';
22
22
  import {useSpectrumContextProps} from './useSpectrumContextProps';
23
23
 
24
- export interface DisclosureProps extends RACDisclosureProps, StyleProps {
24
+ export interface DisclosureProps extends Omit<RACDisclosureProps, 'className' | 'style' | 'children'>, StyleProps {
25
25
  /**
26
26
  * The size of the disclosure.
27
27
  * @default "M"
@@ -231,7 +231,7 @@ function DisclosureHeader(props: DisclosureHeaderProps, ref: DOMRef<HTMLDivEleme
231
231
  let _DisclosureHeader = forwardRef(DisclosureHeader);
232
232
  export {_DisclosureHeader as DisclosureHeader};
233
233
 
234
- export interface DisclosurePanelProps extends RACDisclosurePanelProps, UnsafeStyles, DOMProps, AriaLabelingProps {
234
+ export interface DisclosurePanelProps extends Omit<RACDisclosurePanelProps, 'className' | 'style' | 'children'>, UnsafeStyles, DOMProps, AriaLabelingProps {
235
235
  children: React.ReactNode
236
236
  }
237
237
 
package/src/Picker.tsx CHANGED
@@ -285,6 +285,9 @@ function Picker<T extends object>(props: PickerProps<T>, ref: FocusableRef<HTMLB
285
285
  <Button
286
286
  ref={domRef}
287
287
  style={renderProps => pressScale(domRef)(renderProps)}
288
+ // Prevent press scale from sticking while Picker is open.
289
+ // @ts-ignore
290
+ isPressed={false}
288
291
  className={renderProps => inputButton({
289
292
  ...renderProps,
290
293
  size: size,
package/src/Popover.tsx CHANGED
@@ -168,7 +168,10 @@ let popover = style({
168
168
  },
169
169
  transition: '[opacity, transform]',
170
170
  willChange: '[opacity, transform]',
171
- isolation: 'isolate'
171
+ isolation: 'isolate',
172
+ pointerEvents: {
173
+ isExiting: 'none'
174
+ }
172
175
  }, getAllowedOverrides());
173
176
  // TODO: animations and real Popover Arrow
174
177
 
@@ -79,6 +79,7 @@ const controlItem = style({
79
79
  flexBasis: 0,
80
80
  flexGrow: 1,
81
81
  flexShrink: 0,
82
+ minWidth: 0,
82
83
  justifyContent: 'center',
83
84
  whiteSpace: 'nowrap',
84
85
  disableTapHighlight: true,
@@ -90,7 +91,13 @@ const controlItem = style({
90
91
 
91
92
  const slider = style({
92
93
  ...focusRing(),
93
- backgroundColor: 'gray-25',
94
+ backgroundColor: {
95
+ default: 'gray-25',
96
+ forcedColors: {
97
+ default: 'Highlight',
98
+ isDisabled: 'GrayText'
99
+ }
100
+ },
94
101
  left: 0,
95
102
  width: 'full',
96
103
  height: 'full',
@@ -100,7 +107,11 @@ const slider = style({
100
107
  borderWidth: 2,
101
108
  borderColor: {
102
109
  default: 'gray-900',
103
- isDisabled: 'disabled'
110
+ isDisabled: 'disabled',
111
+ forcedColors: {
112
+ default: 'Highlight',
113
+ isDisabled: 'GrayText'
114
+ }
104
115
  },
105
116
  borderRadius: 'lg'
106
117
  });
@@ -236,7 +247,7 @@ function SegmentedControlItem(props: SegmentedControlItemProps, ref: FocusableRe
236
247
  [RACTextContext, {slots: {[DEFAULT_SLOT]: {}}}],
237
248
  [TextContext, {styles: style({order: 1, truncate: true})}]
238
249
  ]}>
239
- <div ref={divRef} style={pressScale(divRef)({isPressed})} className={style({zIndex: 1, display: 'flex', gap: 'text-to-visual', transition: 'default', alignItems: 'center'})}>
250
+ <div ref={divRef} style={pressScale(divRef)({isPressed})} className={style({zIndex: 1, display: 'flex', gap: 'text-to-visual', transition: 'default', alignItems: 'center', minWidth: 0})}>
240
251
  {typeof props.children === 'string' ? <Text>{props.children}</Text> : props.children}
241
252
  </div>
242
253
  </Provider>