@kanso-labs/kanso-ui 0.45.21 → 0.45.23

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 (269) hide show
  1. package/dist/badge/index.js.map +1 -1
  2. package/dist/button/context.js.map +1 -1
  3. package/dist/button/group.js.map +1 -1
  4. package/dist/button/hooks.js.map +1 -1
  5. package/dist/button/index.d.ts +3 -4
  6. package/dist/button/index.js.map +1 -1
  7. package/dist/button/styles.js.map +1 -1
  8. package/dist/button/toggle.js.map +1 -1
  9. package/dist/calendar/index.js +119 -11
  10. package/dist/calendar/index.js.map +1 -1
  11. package/dist/calendar/styles.js +19 -1
  12. package/dist/calendar/styles.js.map +1 -1
  13. package/dist/carousel/arrangement.d.ts +1 -2
  14. package/dist/carousel/arrangement.js.map +1 -1
  15. package/dist/chip/index.js.map +1 -1
  16. package/dist/chip/label.js.map +1 -1
  17. package/dist/chip/styles.js.map +1 -1
  18. package/dist/collection/empty.js.map +1 -1
  19. package/dist/collection/index.js.map +1 -1
  20. package/dist/collection/styles.js.map +1 -1
  21. package/dist/collection/text.js.map +1 -1
  22. package/dist/color-scheme.d.ts +1 -2
  23. package/dist/color-scheme.js.map +1 -1
  24. package/dist/components/app-bar/index.d.ts +9 -4
  25. package/dist/components/app-bar/index.js +123 -73
  26. package/dist/components/app-bar/index.js.map +1 -1
  27. package/dist/components/autocomplete/index.d.ts +1 -2
  28. package/dist/components/autocomplete/index.js.map +1 -1
  29. package/dist/components/avatar/index.d.ts +1 -2
  30. package/dist/components/avatar/index.js.map +1 -1
  31. package/dist/components/badge/index.d.ts +1 -2
  32. package/dist/components/badge/index.js.map +1 -1
  33. package/dist/components/breadcrumbs/index.d.ts +1 -2
  34. package/dist/components/breadcrumbs/index.js.map +1 -1
  35. package/dist/components/button/index.d.ts +1 -2
  36. package/dist/components/button/index.js.map +1 -1
  37. package/dist/components/button-group/index.d.ts +1 -2
  38. package/dist/components/button-group/index.js.map +1 -1
  39. package/dist/components/calendar/index.d.ts +4 -5
  40. package/dist/components/calendar/index.js +8 -19
  41. package/dist/components/calendar/index.js.map +1 -1
  42. package/dist/components/card/index.d.ts +1 -2
  43. package/dist/components/card/index.js.map +1 -1
  44. package/dist/components/carousel/index.d.ts +22 -4
  45. package/dist/components/carousel/index.js +26 -14
  46. package/dist/components/carousel/index.js.map +1 -1
  47. package/dist/components/checkbox/index.d.ts +1 -2
  48. package/dist/components/checkbox/index.js.map +1 -1
  49. package/dist/components/checkbox-group/index.d.ts +1 -2
  50. package/dist/components/checkbox-group/index.js.map +1 -1
  51. package/dist/components/chip/index.d.ts +1 -2
  52. package/dist/components/chip/index.js.map +1 -1
  53. package/dist/components/chip-group/index.d.ts +1 -2
  54. package/dist/components/chip-group/index.js +3 -0
  55. package/dist/components/chip-group/index.js.map +1 -1
  56. package/dist/components/code/index.d.ts +1 -2
  57. package/dist/components/code/index.js.map +1 -1
  58. package/dist/components/color-area/index.d.ts +1 -2
  59. package/dist/components/color-area/index.js.map +1 -1
  60. package/dist/components/color-field/index.d.ts +1 -2
  61. package/dist/components/color-field/index.js.map +1 -1
  62. package/dist/components/color-picker/index.d.ts +1 -2
  63. package/dist/components/color-picker/index.js +64 -46
  64. package/dist/components/color-picker/index.js.map +1 -1
  65. package/dist/components/color-slider/index.d.ts +1 -2
  66. package/dist/components/color-slider/index.js.map +1 -1
  67. package/dist/components/color-swatch/index.d.ts +1 -2
  68. package/dist/components/color-swatch/index.js +20 -16
  69. package/dist/components/color-swatch/index.js.map +1 -1
  70. package/dist/components/color-swatch-picker/index.d.ts +1 -2
  71. package/dist/components/color-swatch-picker/index.js.map +1 -1
  72. package/dist/components/color-wheel/index.d.ts +1 -2
  73. package/dist/components/color-wheel/index.js.map +1 -1
  74. package/dist/components/combo-box/index.d.ts +1 -2
  75. package/dist/components/combo-box/index.js.map +1 -1
  76. package/dist/components/container/index.d.ts +1 -2
  77. package/dist/components/container/index.js.map +1 -1
  78. package/dist/components/copy-field/index.d.ts +1 -2
  79. package/dist/components/copy-field/index.js +1 -0
  80. package/dist/components/copy-field/index.js.map +1 -1
  81. package/dist/components/currency/index.d.ts +1 -2
  82. package/dist/components/currency/index.js.map +1 -1
  83. package/dist/components/date-field/index.d.ts +1 -2
  84. package/dist/components/date-field/index.js.map +1 -1
  85. package/dist/components/date-picker/index.d.ts +1 -2
  86. package/dist/components/date-picker/index.js.map +1 -1
  87. package/dist/components/date-range-picker/index.d.ts +1 -2
  88. package/dist/components/date-range-picker/index.js +165 -81
  89. package/dist/components/date-range-picker/index.js.map +1 -1
  90. package/dist/components/dialog/index.d.ts +1 -2
  91. package/dist/components/dialog/index.js.map +1 -1
  92. package/dist/components/disclosure/index.d.ts +1 -2
  93. package/dist/components/disclosure/index.js.map +1 -1
  94. package/dist/components/disclosure-group/index.d.ts +1 -2
  95. package/dist/components/disclosure-group/index.js.map +1 -1
  96. package/dist/components/drop-zone/index.d.ts +1 -2
  97. package/dist/components/drop-zone/index.js.map +1 -1
  98. package/dist/components/drop-zone/styles.js.map +1 -1
  99. package/dist/components/fab/index.d.ts +1 -2
  100. package/dist/components/fab/index.js.map +1 -1
  101. package/dist/components/fab-menu/index.d.ts +1 -2
  102. package/dist/components/fab-menu/index.js.map +1 -1
  103. package/dist/components/feed/index.d.ts +1 -2
  104. package/dist/components/feed/index.js.map +1 -1
  105. package/dist/components/form/index.d.ts +1 -2
  106. package/dist/components/form/index.js.map +1 -1
  107. package/dist/components/icon-button/index.d.ts +1 -2
  108. package/dist/components/icon-button/index.js.map +1 -1
  109. package/dist/components/index.d.ts +2 -2
  110. package/dist/components/keycap/index.d.ts +1 -2
  111. package/dist/components/keycap/index.js.map +1 -1
  112. package/dist/components/link/index.d.ts +1 -2
  113. package/dist/components/link/index.js.map +1 -1
  114. package/dist/components/list/index.d.ts +1 -2
  115. package/dist/components/list/index.js.map +1 -1
  116. package/dist/components/list-box/index.d.ts +1 -2
  117. package/dist/components/list-box/index.js.map +1 -1
  118. package/dist/components/list-detail/index.d.ts +1 -2
  119. package/dist/components/list-detail/index.js.map +1 -1
  120. package/dist/components/list-item/index.d.ts +1 -2
  121. package/dist/components/list-item/index.js.map +1 -1
  122. package/dist/components/loading-indicator/index.d.ts +1 -2
  123. package/dist/components/loading-indicator/index.js.map +1 -1
  124. package/dist/components/menu/index.d.ts +1 -2
  125. package/dist/components/menu/index.js.map +1 -1
  126. package/dist/components/meter/index.d.ts +1 -2
  127. package/dist/components/meter/index.js.map +1 -1
  128. package/dist/components/navigation-bar/index.d.ts +1 -2
  129. package/dist/components/navigation-bar/index.js.map +1 -1
  130. package/dist/components/navigation-rail/index.d.ts +1 -2
  131. package/dist/components/navigation-rail/index.js.map +1 -1
  132. package/dist/components/navigation-tree/index.d.ts +1 -2
  133. package/dist/components/navigation-tree/index.js.map +1 -1
  134. package/dist/components/number-field/index.d.ts +1 -2
  135. package/dist/components/number-field/index.js.map +1 -1
  136. package/dist/components/popover/index.d.ts +1 -2
  137. package/dist/components/popover/index.js +14 -4
  138. package/dist/components/popover/index.js.map +1 -1
  139. package/dist/components/product-icon/index.d.ts +1 -2
  140. package/dist/components/product-icon/index.js.map +1 -1
  141. package/dist/components/progress-indicator/index.d.ts +1 -2
  142. package/dist/components/progress-indicator/index.js.map +1 -1
  143. package/dist/components/radio-group/index.d.ts +1 -2
  144. package/dist/components/radio-group/index.js.map +1 -1
  145. package/dist/components/range-calendar/index.d.ts +1 -2
  146. package/dist/components/range-calendar/index.js +53 -80
  147. package/dist/components/range-calendar/index.js.map +1 -1
  148. package/dist/components/search-field/index.d.ts +1 -2
  149. package/dist/components/search-field/index.js.map +1 -1
  150. package/dist/components/search-view/index.d.ts +1 -2
  151. package/dist/components/search-view/index.js.map +1 -1
  152. package/dist/components/segmented-button/index.d.ts +1 -2
  153. package/dist/components/segmented-button/index.js +261 -145
  154. package/dist/components/segmented-button/index.js.map +1 -1
  155. package/dist/components/select/index.d.ts +1 -2
  156. package/dist/components/select/index.js.map +1 -1
  157. package/dist/components/separator/index.d.ts +1 -2
  158. package/dist/components/separator/index.js.map +1 -1
  159. package/dist/components/sheet/index.d.ts +1 -2
  160. package/dist/components/sheet/index.js +149 -82
  161. package/dist/components/sheet/index.js.map +1 -1
  162. package/dist/components/slider/index.d.ts +1 -2
  163. package/dist/components/slider/index.js.map +1 -1
  164. package/dist/components/snackbar/index.d.ts +1 -2
  165. package/dist/components/snackbar/index.js.map +1 -1
  166. package/dist/components/split-button/index.d.ts +1 -2
  167. package/dist/components/split-button/index.js.map +1 -1
  168. package/dist/components/stack/index.d.ts +1 -2
  169. package/dist/components/stack/index.js.map +1 -1
  170. package/dist/components/supporting-pane/index.d.ts +1 -2
  171. package/dist/components/supporting-pane/index.js.map +1 -1
  172. package/dist/components/switch/index.d.ts +1 -2
  173. package/dist/components/switch/index.js.map +1 -1
  174. package/dist/components/table/index.d.ts +1 -2
  175. package/dist/components/table/index.js +251 -123
  176. package/dist/components/table/index.js.map +1 -1
  177. package/dist/components/tabs/index.d.ts +1 -2
  178. package/dist/components/tabs/index.js.map +1 -1
  179. package/dist/components/tag/index.d.ts +1 -2
  180. package/dist/components/tag/index.js.map +1 -1
  181. package/dist/components/text/index.d.ts +1 -2
  182. package/dist/components/text/index.js.map +1 -1
  183. package/dist/components/text-area/index.d.ts +1 -2
  184. package/dist/components/text-area/index.js.map +1 -1
  185. package/dist/components/text-field/index.d.ts +1 -2
  186. package/dist/components/text-field/index.js.map +1 -1
  187. package/dist/components/time-field/index.d.ts +1 -2
  188. package/dist/components/time-field/index.js.map +1 -1
  189. package/dist/components/time-picker/index.d.ts +1 -2
  190. package/dist/components/time-picker/index.js.map +1 -1
  191. package/dist/components/token-field/index.d.ts +1 -2
  192. package/dist/components/token-field/index.js.map +1 -1
  193. package/dist/components/toolbar/index.d.ts +1 -2
  194. package/dist/components/toolbar/index.js.map +1 -1
  195. package/dist/components/tooltip/index.d.ts +1 -2
  196. package/dist/components/tooltip/index.js.map +1 -1
  197. package/dist/components/tree/index.d.ts +1 -2
  198. package/dist/components/tree/index.js.map +1 -1
  199. package/dist/control/index.js.map +1 -1
  200. package/dist/control/styles.js.map +1 -1
  201. package/dist/drag/hooks.d.ts +1 -2
  202. package/dist/drag/hooks.js.map +1 -1
  203. package/dist/drag/index.js.map +1 -1
  204. package/dist/drag/styles.js.map +1 -1
  205. package/dist/fab/styles.js.map +1 -1
  206. package/dist/field/index.d.ts +3 -4
  207. package/dist/field/index.js.map +1 -1
  208. package/dist/field/press.js.map +1 -1
  209. package/dist/field/root.js.map +1 -1
  210. package/dist/field/styles.js.map +1 -1
  211. package/dist/glyphs/index.js.map +1 -1
  212. package/dist/glyphs/styles.js.map +1 -1
  213. package/dist/hooks/useAppBarScroll.d.ts +1 -2
  214. package/dist/hooks/useAppBarScroll.js.map +1 -1
  215. package/dist/hooks/useBottomEdge.js.map +1 -1
  216. package/dist/hooks/useClippedTitle.js.map +1 -1
  217. package/dist/hooks/useImageLoadingStatus.js.map +1 -1
  218. package/dist/hooks/useRipple.js +3 -2
  219. package/dist/hooks/useRipple.js.map +1 -1
  220. package/dist/hooks/useScrollStop.js.map +1 -1
  221. package/dist/hooks/useToggleGroupDisabled.js.map +1 -1
  222. package/dist/i18n/index.js.map +1 -1
  223. package/dist/i18n/messages.js.map +1 -1
  224. package/dist/index.d.ts +2 -2
  225. package/dist/indicator/index.js.map +1 -1
  226. package/dist/indicator/styles.d.ts +1 -2
  227. package/dist/indicator/styles.js.map +1 -1
  228. package/dist/kanso-ui-core/defaults-DMH0HWCw.d.ts +1 -2
  229. package/dist/keycap/context.js.map +1 -1
  230. package/dist/layout.d.ts +1 -2
  231. package/dist/layout.js.map +1 -1
  232. package/dist/mark/index.js.map +1 -1
  233. package/dist/mark/initials.js.map +1 -1
  234. package/dist/mark/styles.js.map +1 -1
  235. package/dist/navigation/context.js.map +1 -1
  236. package/dist/navigation/index.d.ts +2 -3
  237. package/dist/navigation/index.js.map +1 -1
  238. package/dist/navigation/styles.js.map +1 -1
  239. package/dist/overlay/index.js.map +1 -1
  240. package/dist/render/aria.js.map +1 -1
  241. package/dist/render/content.js.map +1 -1
  242. package/dist/render/name.d.ts +1 -2
  243. package/dist/render/ref.js.map +1 -1
  244. package/dist/render/useRender.d.ts +1 -2
  245. package/dist/render/useRender.js.map +1 -1
  246. package/dist/row/index.js.map +1 -1
  247. package/dist/row/styles.js.map +1 -1
  248. package/dist/segments/index.js +2 -1
  249. package/dist/segments/index.js.map +1 -1
  250. package/dist/segments/styles.js +5 -1
  251. package/dist/segments/styles.js.map +1 -1
  252. package/dist/styles/chequer.js.map +1 -1
  253. package/dist/styles/color.js.map +1 -1
  254. package/dist/styles/focus.js.map +1 -1
  255. package/dist/styles/icon-button.js.map +1 -1
  256. package/dist/styles/merge.js.map +1 -1
  257. package/dist/styles/overlay.d.ts +2 -3
  258. package/dist/styles/overlay.js.map +1 -1
  259. package/dist/styles/picker.js.map +1 -1
  260. package/dist/styles/ripple.js.map +1 -1
  261. package/dist/styles/scheme.js.map +1 -1
  262. package/dist/styles.css +40 -8
  263. package/dist/swatch/index.js +19 -0
  264. package/dist/swatch/index.js.map +1 -0
  265. package/dist/theme-scope.d.ts +1 -2
  266. package/dist/theme-scope.js.map +1 -1
  267. package/dist/tokens/design.tokens.stylex.js.map +1 -1
  268. package/dist/tokens/values.js.map +1 -1
  269. package/package.json +16 -16
@@ -1 +1 @@
1
- {"version":3,"file":"chequer.js","names":["stylex","colors","TILE","HALF","GRADIENTS","surfaceContainerHighest","chequer","ground","kWkggS","kKwaWg","k1YJky","kgSjnq","$$css"],"sources":["../../src/styles/chequer.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors } from '../tokens/design.tokens.stylex';\n\n// The chequer a transparent colour is drawn against. A half-transparent red\n// over a light surface and an opaque pink are the same pixels; this is what\n// tells them apart, behind a swatch and behind a colour slider's alpha\n// track.\n//\n// In `src/styles` rather than either component, since both draw it and a\n// second copy would be a second density to keep in step.\n//\n// Two things about the recipe are worth knowing before touching it.\n//\n// **The offsets are half a tile, not a whole one.** Four gradients draw the\n// two dark squares of a tile, and at a whole tile all four line up — the\n// pattern comes out as diamonds, which reads as a texture rather than as\n// the absence of a colour.\n//\n// **It is a layer behind, never a background on the coloured element.**\n// React Aria writes a swatch's colour to its own inline `background-color`\n// and a colour track's gradient to its inline `background`, and CSS paints a\n// background image over a background colour rather than under it — so a\n// chequer on that element would cover what it is there to reveal.\n\n// 8px squares, which reads as a chequer at a swatch's size without turning\n// into a texture.\nconst TILE = '16px';\nconst HALF = '8px';\nconst GRADIENTS = `linear-gradient(45deg, ${colors.surfaceContainerHighest} 25%, transparent 25%),\nlinear-gradient(-45deg, ${colors.surfaceContainerHighest} 25%, transparent 25%),\nlinear-gradient(45deg, transparent 75%, ${colors.surfaceContainerHighest} 75%),\nlinear-gradient(-45deg, transparent 75%, ${colors.surfaceContainerHighest} 75%)`;\nconst chequer = {\n ground: {\n kWkggS: \"x14q8lhr\",\n kKwaWg: \"x12it5ax\",\n k1YJky: \"x1wlk0ns\",\n kgSjnq: \"x1ht9rhz\",\n $$css: true\n }\n};\nexport { chequer };"],"mappings":";;AA6BkB,GAA0BC,OAAOI,0BACzBJ,OAAOI,0BACSJ,OAAOI,0BACNJ,OAAOI;AAClD,MAAMC,UAAU,EACdC,QAAQ;CACNC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,OAAO;AACT,EACF"}
1
+ {"version":3,"file":"chequer.js","names":["colors","surfaceContainerHighest","chequer","ground","kWkggS","kKwaWg","k1YJky","kgSjnq","$$css"],"sources":["../../src/styles/chequer.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors } from '../tokens/design.tokens.stylex';\n\n// The chequer a transparent colour is drawn against. A half-transparent red\n// over a light surface and an opaque pink are the same pixels; this is what\n// tells them apart, behind a swatch and behind a colour slider's alpha\n// track.\n//\n// In `src/styles` rather than either component, since both draw it and a\n// second copy would be a second density to keep in step.\n//\n// Two things about the recipe are worth knowing before touching it.\n//\n// **The offsets are half a tile, not a whole one.** Four gradients draw the\n// two dark squares of a tile, and at a whole tile all four line up — the\n// pattern comes out as diamonds, which reads as a texture rather than as\n// the absence of a colour.\n//\n// **It is a layer behind, never a background on the coloured element.**\n// React Aria writes a swatch's colour to its own inline `background-color`\n// and a colour track's gradient to its inline `background`, and CSS paints a\n// background image over a background colour rather than under it — so a\n// chequer on that element would cover what it is there to reveal.\n\n// 8px squares, which reads as a chequer at a swatch's size without turning\n// into a texture.\nconst TILE = '16px';\nconst HALF = '8px';\nconst GRADIENTS = `linear-gradient(45deg, ${colors.surfaceContainerHighest} 25%, transparent 25%),\nlinear-gradient(-45deg, ${colors.surfaceContainerHighest} 25%, transparent 25%),\nlinear-gradient(45deg, transparent 75%, ${colors.surfaceContainerHighest} 75%),\nlinear-gradient(-45deg, transparent 75%, ${colors.surfaceContainerHighest} 75%)`;\nconst chequer = {\n ground: {\n kWkggS: \"x14q8lhr\",\n kKwaWg: \"x12it5ax\",\n k1YJky: \"x1wlk0ns\",\n kgSjnq: \"x1ht9rhz\",\n $$css: true\n }\n};\nexport { chequer };"],"mappings":";;AA6BkB,GAA0BA,OAAOC,0BACzBD,OAAOC,0BACSD,OAAOC,0BACND,OAAOC;AAClD,MAAMC,UAAU,EACdC,QAAQ;CACNC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,OAAO;AACT,EACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"color.js","names":["ColorThumbRenderProps","stylex","colors","motion","radii","shadows","FORCED_COLORS","colorThumb","thumb","k6CgDc","kZKoxP","kVAM5u","kaIpWk","ksu8eU","kMzoRj","kGVxlE","kB7OPa","kkrTdU","kzqmXN","k87sOh","kjBf7l","kInvED","k3XXqK","kMeerF","kIyJzY","k1ekBW","kAMwcw","$$css","thumbDisabled","thumbDragging","thumbFocused","thumbVertical","kbCHJM","thumbClasses","state","vertical","className","isFocusVisible","isDragging","isDisabled","thumbClassName","verticalThumbClassName"],"sources":["../../src/styles/color.ts"],"sourcesContent":["import type { ColorThumbRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors, motion, radii, shadows } from '../tokens/design.tokens.stylex';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// The handle a colour slider and a colour area share. React Aria places it —\n// along one axis on a slider, along two in an area — and fills it with the\n// colour at that point, so everything here is the ring around that fill.\n//\n// In `src/styles` rather than a directory of its own, since it is a style\n// more than one component draws, which is what that directory holds.\n//\n// Two things about it are worth knowing.\n//\n// **It is ringed rather than filled, because its fill is the value.** The\n// ring is what has to read — against every colour the track or the plane\n// runs through — so it is a surface-coloured ring with a hairline outside\n// it, which works on a light ground and a dark one alike.\n//\n// **`dragging` is applied after `focused`.** StyleX replaces a property\n// whole, so a handle being dragged takes the lifted shadow rather than\n// keeping the resting ring under it.\n\nconst colorThumb = {\n thumb: {\n k6CgDc: \"x12w9bfk\",\n kZKoxP: \"x1qx5ct2\",\n kVAM5u: \"x1ylmb6m\",\n kaIpWk: \"x16fbrrb\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x13rsnn2\",\n kGVxlE: \"xlzcsym\",\n kB7OPa: \"x9f619\",\n kkrTdU: \"x1jm3nie\",\n kzqmXN: \"xw4jnvo\",\n k87sOh: \"xwa60dl\",\n kjBf7l: \"xrgy624 x1x84bn5\",\n kInvED: \"x2wh2y9\",\n k3XXqK: \"x1t137rt\",\n kMeerF: \"x1de99jn\",\n kIyJzY: \"x1qno0dh\",\n k1ekBW: \"xkdsq27\",\n kAMwcw: \"xpc4ca7\",\n $$css: true\n },\n thumbDisabled: {\n kkrTdU: \"x1h6gzvc\",\n $$css: true\n },\n thumbDragging: {\n kGVxlE: \"x1kr41ut\",\n kkrTdU: \"xi9pz9s\",\n $$css: true\n },\n thumbFocused: {\n k3XXqK: \"xaatb59\",\n $$css: true\n },\n thumbVertical: {\n kbCHJM: \"x1nrll8i\",\n $$css: true\n }\n};\nfunction thumbClasses(state: ColorThumbRenderProps, vertical: boolean) {\n return {\n 0: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7\"\n },\n 8: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i\"\n },\n 4: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59\"\n },\n 12: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59\"\n },\n 2: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1kr41ut xi9pz9s\"\n },\n 10: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1kr41ut xi9pz9s\"\n },\n 6: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1kr41ut xi9pz9s\"\n },\n 14: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1kr41ut xi9pz9s\"\n },\n 1: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1h6gzvc\"\n },\n 9: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1h6gzvc\"\n },\n 5: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1h6gzvc\"\n },\n 13: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1h6gzvc\"\n },\n 3: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1kr41ut x1h6gzvc\"\n },\n 11: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1kr41ut x1h6gzvc\"\n },\n 7: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1kr41ut x1h6gzvc\"\n },\n 15: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1kr41ut x1h6gzvc\"\n }\n }[!!vertical << 3 | !!state.isFocusVisible << 2 | !!state.isDragging << 1 | !!state.isDisabled << 0].className ?? '';\n}\n\n// The handle's classes, from React Aria's render state. StyleX cannot target\n// `[data-dragging]` on the element it is styling, so the state comes from\n// what React Aria hands the className.\nfunction thumbClassName(state: ColorThumbRenderProps) {\n return thumbClasses(state, false);\n}\n\n// A vertical slider's handle classes, centred across the strip as well.\nfunction verticalThumbClassName(state: ColorThumbRenderProps) {\n return thumbClasses(state, true);\n}\nexport { colorThumb, thumbClassName, verticalThumbClassName };"],"mappings":";AAqEA,SAASiC,aAAaC,OAA8BC,UAAmB;CACrE,OAAO;EACL,GAAG,EACDC,WAAW,mKACb;EACA,GAAG,EACDA,WAAW,4KACb;EACA,GAAG,EACDA,WAAW,kKACb;EACA,IAAI,EACFA,WAAW,2KACb;EACA,GAAG,EACDA,WAAW,mKACb;EACA,IAAI,EACFA,WAAW,4KACb;EACA,GAAG,EACDA,WAAW,kKACb;EACA,IAAI,EACFA,WAAW,2KACb;EACA,GAAG,EACDA,WAAW,mKACb;EACA,GAAG,EACDA,WAAW,4KACb;EACA,GAAG,EACDA,WAAW,kKACb;EACA,IAAI,EACFA,WAAW,2KACb;EACA,GAAG,EACDA,WAAW,oKACb;EACA,IAAI,EACFA,WAAW,6KACb;EACA,GAAG,EACDA,WAAW,mKACb;EACA,IAAI,EACFA,WAAW,4KACb;CACF,EAAE,CAAC,CAACD,YAAY,IAAI,CAAC,CAACD,MAAMG,kBAAkB,IAAI,CAAC,CAACH,MAAMI,cAAc,IAAI,CAAC,CAACJ,MAAMK,cAAc,EAAE,CAACH,aAAa;AACpH;AAKA,SAASI,eAAeN,OAA8B;CACpD,OAAOD,aAAaC,OAAO,KAAK;AAClC;AAGA,SAASO,uBAAuBP,OAA8B;CAC5D,OAAOD,aAAaC,OAAO,IAAI;AACjC"}
1
+ {"version":3,"file":"color.js","names":["thumbClasses","state","vertical","className","isFocusVisible","isDragging","isDisabled","thumbClassName","verticalThumbClassName"],"sources":["../../src/styles/color.ts"],"sourcesContent":["import type { ColorThumbRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors, motion, radii, shadows } from '../tokens/design.tokens.stylex';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// The handle a colour slider and a colour area share. React Aria places it —\n// along one axis on a slider, along two in an area — and fills it with the\n// colour at that point, so everything here is the ring around that fill.\n//\n// In `src/styles` rather than a directory of its own, since it is a style\n// more than one component draws, which is what that directory holds.\n//\n// Two things about it are worth knowing.\n//\n// **It is ringed rather than filled, because its fill is the value.** The\n// ring is what has to read — against every colour the track or the plane\n// runs through — so it is a surface-coloured ring with a hairline outside\n// it, which works on a light ground and a dark one alike.\n//\n// **`dragging` is applied after `focused`.** StyleX replaces a property\n// whole, so a handle being dragged takes the lifted shadow rather than\n// keeping the resting ring under it.\n\nconst colorThumb = {\n thumb: {\n k6CgDc: \"x12w9bfk\",\n kZKoxP: \"x1qx5ct2\",\n kVAM5u: \"x1ylmb6m\",\n kaIpWk: \"x16fbrrb\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x13rsnn2\",\n kGVxlE: \"xlzcsym\",\n kB7OPa: \"x9f619\",\n kkrTdU: \"x1jm3nie\",\n kzqmXN: \"xw4jnvo\",\n k87sOh: \"xwa60dl\",\n kjBf7l: \"xrgy624 x1x84bn5\",\n kInvED: \"x2wh2y9\",\n k3XXqK: \"x1t137rt\",\n kMeerF: \"x1de99jn\",\n kIyJzY: \"x1qno0dh\",\n k1ekBW: \"xkdsq27\",\n kAMwcw: \"xpc4ca7\",\n $$css: true\n },\n thumbDisabled: {\n kkrTdU: \"x1h6gzvc\",\n $$css: true\n },\n thumbDragging: {\n kGVxlE: \"x1kr41ut\",\n kkrTdU: \"xi9pz9s\",\n $$css: true\n },\n thumbFocused: {\n k3XXqK: \"xaatb59\",\n $$css: true\n },\n thumbVertical: {\n kbCHJM: \"x1nrll8i\",\n $$css: true\n }\n};\nfunction thumbClasses(state: ColorThumbRenderProps, vertical: boolean) {\n return {\n 0: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7\"\n },\n 8: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i\"\n },\n 4: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59\"\n },\n 12: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59\"\n },\n 2: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1kr41ut xi9pz9s\"\n },\n 10: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1kr41ut xi9pz9s\"\n },\n 6: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1kr41ut xi9pz9s\"\n },\n 14: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1kr41ut xi9pz9s\"\n },\n 1: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1h6gzvc\"\n },\n 9: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1h6gzvc\"\n },\n 5: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1h6gzvc\"\n },\n 13: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1h6gzvc\"\n },\n 3: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1kr41ut x1h6gzvc\"\n },\n 11: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1kr41ut x1h6gzvc\"\n },\n 7: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1kr41ut x1h6gzvc\"\n },\n 15: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1kr41ut x1h6gzvc\"\n }\n }[!!vertical << 3 | !!state.isFocusVisible << 2 | !!state.isDragging << 1 | !!state.isDisabled << 0].className ?? '';\n}\n\n// The handle's classes, from React Aria's render state. StyleX cannot target\n// `[data-dragging]` on the element it is styling, so the state comes from\n// what React Aria hands the className.\nfunction thumbClassName(state: ColorThumbRenderProps) {\n return thumbClasses(state, false);\n}\n\n// A vertical slider's handle classes, centred across the strip as well.\nfunction verticalThumbClassName(state: ColorThumbRenderProps) {\n return thumbClasses(state, true);\n}\nexport { colorThumb, thumbClassName, verticalThumbClassName };"],"mappings":";AAqEA,SAASA,aAAaC,OAA8BC,UAAmB;CACrE,OAAO;EACL,GAAG,EACDC,WAAW,mKACb;EACA,GAAG,EACDA,WAAW,4KACb;EACA,GAAG,EACDA,WAAW,kKACb;EACA,IAAI,EACFA,WAAW,2KACb;EACA,GAAG,EACDA,WAAW,mKACb;EACA,IAAI,EACFA,WAAW,4KACb;EACA,GAAG,EACDA,WAAW,kKACb;EACA,IAAI,EACFA,WAAW,2KACb;EACA,GAAG,EACDA,WAAW,mKACb;EACA,GAAG,EACDA,WAAW,4KACb;EACA,GAAG,EACDA,WAAW,kKACb;EACA,IAAI,EACFA,WAAW,2KACb;EACA,GAAG,EACDA,WAAW,oKACb;EACA,IAAI,EACFA,WAAW,6KACb;EACA,GAAG,EACDA,WAAW,mKACb;EACA,IAAI,EACFA,WAAW,4KACb;CACF,EAAE,CAAC,CAACD,YAAY,IAAI,CAAC,CAACD,MAAMG,kBAAkB,IAAI,CAAC,CAACH,MAAMI,cAAc,IAAI,CAAC,CAACJ,MAAMK,cAAc,EAAE,CAACH,aAAa;AACpH;AAKA,SAASI,eAAeN,OAA8B;CACpD,OAAOD,aAAaC,OAAO,KAAK;AAClC;AAGA,SAASO,uBAAuBP,OAA8B;CAC5D,OAAOD,aAAaC,OAAO,IAAI;AACjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"focus.js","names":["stylex","colors","focus","ring","kjBf7l","kInvED","k3XXqK","kMeerF","$$css","ringVisible"],"sources":["../../src/styles/focus.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors } from '../tokens/design.tokens.stylex';\n\n// The focus ring, drawn once. Eighteen components spelled the same four\n// declarations out, which made a change to the ring eighteen edits with\n// nothing failing if one were missed.\n//\n// Only these two forms are shared, and the difference is who decides the\n// element has focus. `ring` lets the browser decide, through\n// `:focus-visible`, which is what a natively focusable element wants.\n// `ringVisible` is always solid, for a component that computes focus from\n// React Aria's render state and applies this style only when that state says\n// so — a checkbox, radio or switch, where the ring belongs on the drawn\n// control rather than on the input that actually holds focus.\n//\n// What deliberately stays with its component is every ring that differs, and\n// each of those already carries a comment saying why:\n//\n// - A different colour, because the surface underneath is not the default\n// one: Snackbar's action and close, and Chip's remove.\n// - A different colour, because the spec gives the component its own focus\n// indicator: Card, in secondary or on surface by variant.\n// - A negative offset, drawing the ring inside the element rather than\n// around it: DropZone, NumberField, Table, a Tab and its panel, the shared\n// row, the body of a Dialog or a Sheet while it scrolls, and a bottom\n// sheet's drag handle.\n// - An offset of its own, sized to what the ring surrounds: the colour\n// thumb at 4px, the swatch at 6px, Chip's remove at 1px.\n// - A base of `outlineStyle: 'none'` that a separate style turns solid,\n// which is a different mechanism rather than a different value: the slider\n// thumb, the colour swatch picker, and the shared colour styles.\n// - An `outlineStyle` keyed on a breakpoint, for a ring that moves from one\n// element to another as the window widens: a navigation bar's destination.\n// - A shadow inside a box whose input holds focus, keyed on `:focus-within`,\n// with an outline under forced colours alone: the field chrome's box and\n// SearchField's bar.\nconst focus = {\n ring: {\n kjBf7l: \"xrgy624\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n ringVisible: {\n kjBf7l: \"xrgy624\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1de99jn\",\n $$css: true\n }\n};\nexport { focus };"],"mappings":";AAqCA,MAAME,QAAQ;CACZC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,aAAa;EACXL,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;AACF"}
1
+ {"version":3,"file":"focus.js","names":["focus","ring","kjBf7l","kInvED","k3XXqK","kMeerF","$$css","ringVisible"],"sources":["../../src/styles/focus.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors } from '../tokens/design.tokens.stylex';\n\n// The focus ring, drawn once. Eighteen components spelled the same four\n// declarations out, which made a change to the ring eighteen edits with\n// nothing failing if one were missed.\n//\n// Only these two forms are shared, and the difference is who decides the\n// element has focus. `ring` lets the browser decide, through\n// `:focus-visible`, which is what a natively focusable element wants.\n// `ringVisible` is always solid, for a component that computes focus from\n// React Aria's render state and applies this style only when that state says\n// so — a checkbox, radio or switch, where the ring belongs on the drawn\n// control rather than on the input that actually holds focus.\n//\n// What deliberately stays with its component is every ring that differs, and\n// each of those already carries a comment saying why:\n//\n// - A different colour, because the surface underneath is not the default\n// one: Snackbar's action and close, and Chip's remove.\n// - A different colour, because the spec gives the component its own focus\n// indicator: Card, in secondary or on surface by variant.\n// - A negative offset, drawing the ring inside the element rather than\n// around it: DropZone, NumberField, Table, a Tab and its panel, the shared\n// row, the body of a Dialog or a Sheet while it scrolls, and a bottom\n// sheet's drag handle.\n// - An offset of its own, sized to what the ring surrounds: the colour\n// thumb at 4px, the swatch at 6px, Chip's remove at 1px.\n// - A base of `outlineStyle: 'none'` that a separate style turns solid,\n// which is a different mechanism rather than a different value: the slider\n// thumb, the colour swatch picker, and the shared colour styles.\n// - An `outlineStyle` keyed on a breakpoint, for a ring that moves from one\n// element to another as the window widens: a navigation bar's destination.\n// - Drawn by the element around the one holding focus, keyed on `:has()`,\n// for a focused element whose own edge is not the boundary a reader sees:\n// a Popover's dialog, inset inside its panel.\n// - A shadow inside a box whose input holds focus, keyed on `:focus-within`,\n// with an outline under forced colours alone: the field chrome's box and\n// SearchField's bar.\nconst focus = {\n ring: {\n kjBf7l: \"xrgy624\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n ringVisible: {\n kjBf7l: \"xrgy624\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1de99jn\",\n $$css: true\n }\n};\nexport { focus };"],"mappings":";AAwCA,MAAMA,QAAQ;CACZC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,aAAa;EACXL,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.js","names":["stylex","colors","radii","sizing","stateLayerOpacity","iconButton","chrome","kGNEyG","kWkggS","kZKoxP","kaIpWk","kMzoRj","kB7OPa","kMwMTN","kkrTdU","k1xSpc","kmuXW","kzqmXN","kjj79g","kmVPX3","$$css","chromeDisabled","chromeHovered","chromePressed"],"sources":["../../src/styles/icon-button.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors, radii, sizing, stateLayerOpacity } from '../tokens/design.tokens.stylex';\n\n// The icon buttons page's 40dp square and its state layer, drawn directly on\n// a button rather than through the `IconButton` component.\n//\n// Two places need that, and both said so in the same words while keeping\n// their own copy: a picker's trigger and the chevrons that move a calendar's\n// month. Neither can reach for `IconButton`, because React Aria carries each\n// of them on its own `Button` — the trigger through a picker's context, the\n// chevrons through a calendar's slots — so the chrome has to be drawn onto\n// the element React Aria renders.\n//\n// What each keeps is what it does not share. A calendar's chevron sits in a\n// 48dp column, so it adds the 4dp either side. Both take `chromeDisabled`\n// when React Aria disables them — a trigger when the field around it is\n// disabled, a chevron when there is no month to move to — and each reads\n// that from its own render state, along with the hover and press that pick\n// `chromeHovered` and `chromePressed`. Those come from React Aria rather\n// than `:hover` and `:active`, for Button's reasons — see its header: a\n// hover layer stayed on after a tap, and no pressed layer showed for a press\n// made from the keyboard.\n//\n// This is deliberately narrow. Five other buttons in the library draw a bare\n// icon — a tree's caret, a navigation tree's, a combo box's toggle, a chip's\n// remove and `IconButton` itself — and each differs in size, content colour,\n// state-layer semantics or focus-ring offset, with a comment recording why.\n// At most eleven of these seventeen declarations survive into any of them, so\n// composing this and overriding the rest would hide those decisions rather\n// than record them.\nconst iconButton = {\n chrome: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xjbqb8w\",\n kZKoxP: \"x1rv7mn0\",\n kaIpWk: \"x1dkaolv\",\n kMzoRj: \"xc342km\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n kzqmXN: \"x1eujcsb\",\n kjj79g: \"xl56j7k\",\n kmVPX3: \"x1717udv\",\n $$css: true\n },\n chromeDisabled: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1gpw424\",\n kkrTdU: \"xt0e3qv\",\n $$css: true\n },\n chromeHovered: {\n kWkggS: \"x14noynh\",\n $$css: true\n },\n chromePressed: {\n kWkggS: \"x123fei2\",\n $$css: true\n }\n};\nexport { iconButton };"],"mappings":";AA+BA,MAAMK,aAAa;CACjBC,QAAQ;EACNC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,gBAAgB;EACdb,QAAQ;EACRK,QAAQ;EACRC,QAAQ;EACRM,OAAO;CACT;CACAE,eAAe;EACbd,QAAQ;EACRY,OAAO;CACT;CACAG,eAAe;EACbf,QAAQ;EACRY,OAAO;CACT;AACF"}
1
+ {"version":3,"file":"icon-button.js","names":["iconButton","chrome","kGNEyG","kWkggS","kZKoxP","kaIpWk","kMzoRj","kB7OPa","kMwMTN","kkrTdU","k1xSpc","kmuXW","kzqmXN","kjj79g","kmVPX3","$$css","chromeDisabled","chromeHovered","chromePressed"],"sources":["../../src/styles/icon-button.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors, radii, sizing, stateLayerOpacity } from '../tokens/design.tokens.stylex';\n\n// The icon buttons page's 40dp square and its state layer, drawn directly on\n// a button rather than through the `IconButton` component.\n//\n// Two places need that, and both said so in the same words while keeping\n// their own copy: a picker's trigger and the chevrons that move a calendar's\n// month. Neither can reach for `IconButton`, because React Aria carries each\n// of them on its own `Button` — the trigger through a picker's context, the\n// chevrons through a calendar's slots — so the chrome has to be drawn onto\n// the element React Aria renders.\n//\n// What each keeps is what it does not share. A calendar's chevron sits in a\n// 48dp column, so it adds the 4dp either side. Both take `chromeDisabled`\n// when React Aria disables them — a trigger when the field around it is\n// disabled, a chevron when there is no month to move to — and each reads\n// that from its own render state, along with the hover and press that pick\n// `chromeHovered` and `chromePressed`. Those come from React Aria rather\n// than `:hover` and `:active`, for Button's reasons — see its header: a\n// hover layer stayed on after a tap, and no pressed layer showed for a press\n// made from the keyboard.\n//\n// This is deliberately narrow. Five other buttons in the library draw a bare\n// icon — a tree's caret, a navigation tree's, a combo box's toggle, a chip's\n// remove and `IconButton` itself — and each differs in size, content colour,\n// state-layer semantics or focus-ring offset, with a comment recording why.\n// At most eleven of these seventeen declarations survive into any of them, so\n// composing this and overriding the rest would hide those decisions rather\n// than record them.\nconst iconButton = {\n chrome: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xjbqb8w\",\n kZKoxP: \"x1rv7mn0\",\n kaIpWk: \"x1dkaolv\",\n kMzoRj: \"xc342km\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n kzqmXN: \"x1eujcsb\",\n kjj79g: \"xl56j7k\",\n kmVPX3: \"x1717udv\",\n $$css: true\n },\n chromeDisabled: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1gpw424\",\n kkrTdU: \"xt0e3qv\",\n $$css: true\n },\n chromeHovered: {\n kWkggS: \"x14noynh\",\n $$css: true\n },\n chromePressed: {\n kWkggS: \"x123fei2\",\n $$css: true\n }\n};\nexport { iconButton };"],"mappings":";AA+BA,MAAMA,aAAa;CACjBC,QAAQ;EACNC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,gBAAgB;EACdb,QAAQ;EACRK,QAAQ;EACRC,QAAQ;EACRM,OAAO;CACT;CACAE,eAAe;EACbd,QAAQ;EACRY,OAAO;CACT;CACAG,eAAe;EACbf,QAAQ;EACRY,OAAO;CACT;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"merge.js","names":["stylex","CSSProperties","CompiledStyles","ReturnType","props","StatefulClassName","state","State","StatefulStyle","joinClassNames","names","ReadonlyArray","filter","Boolean","join","undefined","mergeStatefulStyles","compiled","consumer","className","ClassNameState","style","StyleState","compiledFor","mergeStyleObjects","mergeStyles"],"sources":["../../src/styles/merge.ts"],"sourcesContent":["import type * as stylex from '@stylexjs/stylex';\nimport type { CSSProperties } from 'react';\n\n// What `stylex.props()` hands back: a className, and a `style` object only\n// when a dynamic style contributed one — Feed's cell minimum, for instance,\n// arrives as a custom property there rather than as a class.\ntype CompiledStyles = ReturnType<typeof stylex.props>;\n\n// React Aria lets `className` and `style` be functions of a component's own\n// render state, which is how a style can depend on something CSS cannot\n// select — Chip's selected state, a tab's active one. A consumer may pass\n// either form, so anything merging with one has to accept both.\ntype StatefulClassName<State> = ((state: State) => string | undefined) | string | undefined;\ntype StatefulStyle<State> = ((state: State) => CSSProperties | undefined) | CSSProperties | undefined;\nfunction joinClassNames(...names: ReadonlyArray<string | undefined>) {\n // undefined rather than '' when there is nothing to say, so an element with\n // no classes on either side renders without a class attribute at all.\n return names.filter(Boolean).join(' ') || undefined;\n}\n\n/**\n * {@link mergeStyles} for an element rendered by a behaviour-library\n * component, where `className` and `style` may each be a function of the\n * component's render state rather than a plain value.\n *\n * Returns functions unconditionally, since the libraries accept them\n * everywhere they accept the plain form and one shape is easier to follow\n * than a union that changes with the arguments. `compiled` is itself a\n * function where the component's own styles depend on that state.\n *\n * The two consumer functions carry their own state types rather than sharing\n * `State`: React Aria hands a `className` function the render state plus\n * `defaultClassName`, and a `style` function the same state plus\n * `defaultStyle`, and one parameter could not name both. Each extends\n * `State`, so `compiled` can be handed either.\n */\nfunction mergeStatefulStyles<State, ClassNameState extends State, StyleState extends State>(compiled: ((state: State) => CompiledStyles) | CompiledStyles, consumer: {\n className?: StatefulClassName<ClassNameState>;\n style?: StatefulStyle<StyleState>;\n}) {\n const compiledFor = (state: State) => typeof compiled === 'function' ? compiled(state) : compiled;\n\n // Resolved inline rather than through one shared helper: a generic one\n // cannot narrow `typeof value === 'function'` away from its own type\n // parameter, so it needs an assertion where these two need none.\n //\n // '' rather than undefined when there is nothing to say: a className\n // function has to return a string for React Aria, and every component that\n // reaches here has compiled classes of its own, so the case never renders.\n return {\n className: (state: ClassNameState) => joinClassNames(compiledFor(state).className, typeof consumer.className === 'function' ? consumer.className(state) : consumer.className) ?? '',\n style: (state: StyleState) => mergeStyleObjects(compiledFor(state).style, typeof consumer.style === 'function' ? consumer.style(state) : consumer.style)\n };\n}\nfunction mergeStyleObjects(compiled: CompiledStyles['style'], consumer: CSSProperties | undefined) {\n if (compiled === undefined && consumer === undefined) {\n return undefined;\n }\n return {\n ...compiled,\n ...consumer\n };\n}\n\n/**\n * Combines the styles StyleX compiled for a component with the `className`\n * and `style` its call site passed, so both reach the element.\n *\n * Spreading `stylex.props()` after the consumer's own props is what this\n * replaces, and that spread silently dropped both: the returned object always\n * carries `className`, so it overwrote rather than merged, leaving no way to\n * position a component from outside it and no warning that the prop had gone.\n *\n * Order is presentational rather than load-bearing. StyleX compiles into\n * the `kanso` layer (see `useCSSLayers` in tsdown.config.ts), which an\n * unlayered stylesheet beats and a layered one is ordered around, so the\n * cascade rather than this order decides between the call site's class and\n * the component's, whichever way round the two class strings are written.\n *\n * The call site's `style` is applied over the compiled one, which is the\n * order that matters: both are inline, so nothing but source order separates\n * them.\n */\nfunction mergeStyles(compiled: CompiledStyles, consumer: {\n className?: string | undefined;\n style?: CSSProperties | undefined;\n}) {\n return {\n ...compiled,\n className: joinClassNames(compiled.className, consumer.className),\n style: mergeStyleObjects(compiled.style, consumer.style)\n };\n}\nexport { mergeStatefulStyles, mergeStyles };"],"mappings":";AAcA,SAASS,eAAe,GAAGC,OAA0C;CAGnE,OAAOA,MAAME,OAAOC,OAAO,CAAC,CAACC,KAAK,GAAG,KAAKC,KAAAA;AAC5C;;;;;;;;;;;;;;;;;AAkBA,SAASC,oBAAmFC,UAA+DC,UAGxJ;CACD,MAAMK,eAAejB,UAAiB,OAAOW,aAAa,aAAaA,SAASX,KAAK,IAAIW;CASzF,OAAO;EACLE,YAAYb,UAA0BG,eAAec,YAAYjB,KAAK,CAAC,CAACa,WAAW,OAAOD,SAASC,cAAc,aAAaD,SAASC,UAAUb,KAAK,IAAIY,SAASC,SAAS,KAAK;EACjLE,QAAQf,UAAsBkB,kBAAkBD,YAAYjB,KAAK,CAAC,CAACe,OAAO,OAAOH,SAASG,UAAU,aAAaH,SAASG,MAAMf,KAAK,IAAIY,SAASG,KAAK;CACzJ;AACF;AACA,SAASG,kBAAkBP,UAAmCC,UAAqC;CACjG,IAAID,aAAaF,KAAAA,KAAaG,aAAaH,KAAAA,GACzC;CAEF,OAAO;EACL,GAAGE;EACH,GAAGC;CACL;AACF;;;;;;;;;;;;;;;;;;;;AAqBA,SAASO,YAAYR,UAA0BC,UAG5C;CACD,OAAO;EACL,GAAGD;EACHE,WAAWV,eAAeQ,SAASE,WAAWD,SAASC,SAAS;EAChEE,OAAOG,kBAAkBP,SAASI,OAAOH,SAASG,KAAK;CACzD;AACF"}
1
+ {"version":3,"file":"merge.js","names":["state","joinClassNames","names","filter","Boolean","join","undefined","mergeStatefulStyles","compiled","consumer","className","style","compiledFor","mergeStyleObjects","mergeStyles"],"sources":["../../src/styles/merge.ts"],"sourcesContent":["import type * as stylex from '@stylexjs/stylex';\nimport type { CSSProperties } from 'react';\n\n// What `stylex.props()` hands back: a className, and a `style` object only\n// when a dynamic style contributed one — Feed's cell minimum, for instance,\n// arrives as a custom property there rather than as a class.\ntype CompiledStyles = ReturnType<typeof stylex.props>;\n\n// React Aria lets `className` and `style` be functions of a component's own\n// render state, which is how a style can depend on something CSS cannot\n// select — Chip's selected state, a tab's active one. A consumer may pass\n// either form, so anything merging with one has to accept both.\ntype StatefulClassName<State> = ((state: State) => string | undefined) | string | undefined;\ntype StatefulStyle<State> = ((state: State) => CSSProperties | undefined) | CSSProperties | undefined;\nfunction joinClassNames(...names: ReadonlyArray<string | undefined>) {\n // undefined rather than '' when there is nothing to say, so an element with\n // no classes on either side renders without a class attribute at all.\n return names.filter(Boolean).join(' ') || undefined;\n}\n\n/**\n * {@link mergeStyles} for an element rendered by a behaviour-library\n * component, where `className` and `style` may each be a function of the\n * component's render state rather than a plain value.\n *\n * Returns functions unconditionally, since the libraries accept them\n * everywhere they accept the plain form and one shape is easier to follow\n * than a union that changes with the arguments. `compiled` is itself a\n * function where the component's own styles depend on that state.\n *\n * The two consumer functions carry their own state types rather than sharing\n * `State`: React Aria hands a `className` function the render state plus\n * `defaultClassName`, and a `style` function the same state plus\n * `defaultStyle`, and one parameter could not name both. Each extends\n * `State`, so `compiled` can be handed either.\n */\nfunction mergeStatefulStyles<State, ClassNameState extends State, StyleState extends State>(compiled: ((state: State) => CompiledStyles) | CompiledStyles, consumer: {\n className?: StatefulClassName<ClassNameState>;\n style?: StatefulStyle<StyleState>;\n}) {\n const compiledFor = (state: State) => typeof compiled === 'function' ? compiled(state) : compiled;\n\n // Resolved inline rather than through one shared helper: a generic one\n // cannot narrow `typeof value === 'function'` away from its own type\n // parameter, so it needs an assertion where these two need none.\n //\n // '' rather than undefined when there is nothing to say: a className\n // function has to return a string for React Aria, and every component that\n // reaches here has compiled classes of its own, so the case never renders.\n return {\n className: (state: ClassNameState) => joinClassNames(compiledFor(state).className, typeof consumer.className === 'function' ? consumer.className(state) : consumer.className) ?? '',\n style: (state: StyleState) => mergeStyleObjects(compiledFor(state).style, typeof consumer.style === 'function' ? consumer.style(state) : consumer.style)\n };\n}\nfunction mergeStyleObjects(compiled: CompiledStyles['style'], consumer: CSSProperties | undefined) {\n if (compiled === undefined && consumer === undefined) {\n return undefined;\n }\n return {\n ...compiled,\n ...consumer\n };\n}\n\n/**\n * Combines the styles StyleX compiled for a component with the `className`\n * and `style` its call site passed, so both reach the element.\n *\n * Spreading `stylex.props()` after the consumer's own props is what this\n * replaces, and that spread silently dropped both: the returned object always\n * carries `className`, so it overwrote rather than merged, leaving no way to\n * position a component from outside it and no warning that the prop had gone.\n *\n * Order is presentational rather than load-bearing. StyleX compiles into\n * the `kanso` layer (see `useCSSLayers` in tsdown.config.ts), which an\n * unlayered stylesheet beats and a layered one is ordered around, so the\n * cascade rather than this order decides between the call site's class and\n * the component's, whichever way round the two class strings are written.\n *\n * The call site's `style` is applied over the compiled one, which is the\n * order that matters: both are inline, so nothing but source order separates\n * them.\n */\nfunction mergeStyles(compiled: CompiledStyles, consumer: {\n className?: string | undefined;\n style?: CSSProperties | undefined;\n}) {\n return {\n ...compiled,\n className: joinClassNames(compiled.className, consumer.className),\n style: mergeStyleObjects(compiled.style, consumer.style)\n };\n}\nexport { mergeStatefulStyles, mergeStyles };"],"mappings":";AAcA,SAASC,eAAe,GAAGC,OAA0C;CAGnE,OAAOA,MAAMC,OAAOC,OAAO,CAAC,CAACC,KAAK,GAAG,KAAKC,KAAAA;AAC5C;;;;;;;;;;;;;;;;;AAkBA,SAASC,oBAAmFC,UAA+DC,UAGxJ;CACD,MAAMG,eAAeZ,UAAiB,OAAOQ,aAAa,aAAaA,SAASR,KAAK,IAAIQ;CASzF,OAAO;EACLE,YAAYV,UAA0BC,eAAeW,YAAYZ,KAAK,CAAC,CAACU,WAAW,OAAOD,SAASC,cAAc,aAAaD,SAASC,UAAUV,KAAK,IAAIS,SAASC,SAAS,KAAK;EACjLC,QAAQX,UAAsBa,kBAAkBD,YAAYZ,KAAK,CAAC,CAACW,OAAO,OAAOF,SAASE,UAAU,aAAaF,SAASE,MAAMX,KAAK,IAAIS,SAASE,KAAK;CACzJ;AACF;AACA,SAASE,kBAAkBL,UAAmCC,UAAqC;CACjG,IAAID,aAAaF,KAAAA,KAAaG,aAAaH,KAAAA,GACzC;CAEF,OAAO;EACL,GAAGE;EACH,GAAGC;CACL;AACF;;;;;;;;;;;;;;;;;;;;AAqBA,SAASK,YAAYN,UAA0BC,UAG5C;CACD,OAAO;EACL,GAAGD;EACHE,WAAWT,eAAeO,SAASE,WAAWD,SAASC,SAAS;EAChEC,OAAOE,kBAAkBL,SAASG,OAAOF,SAASE,KAAK;CACzD;AACF"}
@@ -1,4 +1,4 @@
1
- import { PopoverRenderProps } from "react-aria-components";
1
+ import "react-aria-components";
2
2
  /** Where along that side it lines up with the anchor. */
3
3
  type OverlayAlign = 'center' | 'end' | 'start';
4
4
  /**
@@ -7,5 +7,4 @@ type OverlayAlign = 'center' | 'end' | 'start';
7
7
  * right-to-left layout; `left` and `right` stay where they are in either.
8
8
  */
9
9
  type OverlaySide = 'bottom' | 'end' | 'left' | 'right' | 'start' | 'top';
10
- export type { OverlayAlign, OverlaySide };
11
- //# sourceMappingURL=overlay.d.ts.map
10
+ export type { OverlayAlign, OverlaySide };
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.js","names":["PopoverRenderProps","stylex","colors","motion","radii","shadows","spacing","layers","FORCED_COLORS","fadeIn","scaleIn","overlay","backdrop","k44tkh","kKVMdj","kyAemX","kWkggS","kB7OPa","$$css","fromBottom","k3nNDw","fromLeft","fromRight","fromTop","modalBodyRing","kjBf7l","kInvED","k3XXqK","kMeerF","modalDialog","kZKoxP","k1xSpc","kXwgrk","kAzted","popup","kVAM5u","kaIpWk","ksu8eU","kMzoRj","kGVxlE","kMwMTN","kORKVm","kZeWKH","popupDialog","kOIVth","scrim","kpwlN0","kVAEAm","kY2c9j","origins","bottom","center","left","right","top","OverlayAlign","OverlaySide","placementOf","side","align","const","popupOrigin","placement"],"sources":["../../src/styles/overlay.ts"],"sourcesContent":["import type { PopoverRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors, motion, radii, shadows, spacing } from '../tokens/design.tokens.stylex';\nimport './layers.stylex';\nimport { layers } from './layers.stylex';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// What every overlay shares, drawn once. Popover's anchored surface and its\n// entry, Sheet's scrim, and the element that carries the dialog role inside\n// each of them; the coverage plan brings a dozen more overlays — Menu, Select,\n// ComboBox, Tooltip, the date pickers, Dialog — and each would otherwise have\n// written the same surface and the same scrim a second time. Geometry stays\n// with the component: how wide a popover is, which edge a sheet is pinned to,\n// where a dialog sits, are each overlay's own decision.\n//\n// Every one of these is portalled to the end of the body, which is why each\n// component takes a `container` prop and documents the same caveat: an app\n// that scopes its StyleX theme to a subtree has to point the portal inside it,\n// or the surface renders outside the theme and falls back to the tokens'\n// `prefers-color-scheme` default.\n//\n// Portalled to the end of the body, an element with no `z-index` paints level\n// with the page's own unlayered content, so a modal's scrim takes a layer\n// from src/styles/layers.stylex.ts, which sets the order every overlay\n// stacks in over the page.\n//\n// Entry only, and no exit animation, for the same reason in every overlay:\n// React Aria keeps a closing surface mounted only while an animation is\n// running on it, and a popover in particular is dismissed far more often than\n// it is closed deliberately — usually by pressing something else, where a\n// lingering surface is in the way of whatever the press was for. A sheet is\n// the one that leaves with movement, and none of it is a CSS animation: its\n// panel is moved by scrolling, since a scroll is what a swipe makes, so it\n// scrolls out as it scrolled in — see src/components/sheet/index.tsx.\n\n// The scrim settles before the panel it sits behind arrives: shorter than\n// any panel's entry, so the two do not finish together.\nconst fadeIn = \"x18re5ia-B\";\n\n// An anchored surface grows from the edge it is anchored by rather than from\n// its own centre, which is what makes it read as coming out of the trigger.\n// The origin is a separate style, chosen from the placement React Aria\n// reports, so the same keyframes serve all four sides.\nconst scaleIn = \"x1k48ry3-B\";\nconst overlay = {\n backdrop: {\n k44tkh: \"x1vhuh8u\",\n kKVMdj: \"xqcmdr3\",\n kyAemX: \"x1yujl0p\",\n kWkggS: \"x1iqbvzf\",\n kB7OPa: \"x9f619\",\n $$css: true\n },\n fromBottom: {\n k3nNDw: \"x18ouj0k\",\n $$css: true\n },\n fromLeft: {\n k3nNDw: \"x1nf803f\",\n $$css: true\n },\n fromRight: {\n k3nNDw: \"xyibjs4\",\n $$css: true\n },\n fromTop: {\n k3nNDw: \"x1dp6rp6\",\n $$css: true\n },\n modalBodyRing: {\n kjBf7l: \"xrgy624\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n modalDialog: {\n kZKoxP: \"x5yr21d\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kAzted: \"x2lwn1j\",\n k3XXqK: \"x1t137rt\",\n $$css: true\n },\n popup: {\n k44tkh: \"xvhm28k x1u6grsq\",\n kKVMdj: \"x97zbip\",\n kyAemX: \"x16dv9tl\",\n kWkggS: \"x1mjdul6\",\n kVAM5u: \"x1w1tqly\",\n kaIpWk: \"x62ce2h\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x13rsnn2\",\n kGVxlE: \"x1os83gw\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x139gbkf\",\n kORKVm: \"x1odjw0f\",\n kZeWKH: \"xish69e\",\n $$css: true\n },\n popupDialog: {\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kOIVth: \"x126z3so\",\n $$css: true\n },\n scrim: {\n k44tkh: \"x1vhuh8u\",\n kKVMdj: \"xqcmdr3\",\n kyAemX: \"x1yujl0p\",\n kWkggS: \"x1iqbvzf\",\n kB7OPa: \"x9f619\",\n kpwlN0: \"x10a8y8t\",\n kVAEAm: \"xixxii4\",\n kY2c9j: \"x125h2g0\",\n $$css: true\n }\n};\n\n// Which side the surface opened on, and the origin its entry grows from.\n// Keyed on the placement React Aria reports rather than the one asked for,\n// since the surface flips to the opposite side when there is no room on its\n// own; `center` is the placement React Aria reports for an anchor it could\n// not place beside, and grows from the top like the default.\nconst origins = {\n bottom: overlay.fromTop,\n center: overlay.fromTop,\n left: overlay.fromRight,\n right: overlay.fromLeft,\n top: overlay.fromBottom\n};\n\n/** Where along that side it lines up with the anchor. */\ntype OverlayAlign = 'center' | 'end' | 'start';\n\n/**\n * Which side of the anchor a surface opens on. `start` and `end` are the\n * inline sides by the writing direction, the right and the left in a\n * right-to-left layout; `left` and `right` stay where they are in either.\n */\ntype OverlaySide = 'bottom' | 'end' | 'left' | 'right' | 'start' | 'top';\n\n/**\n * React Aria's placement, from the side and the alignment a call site names.\n * Its own vocabulary pairs a side with `top`/`bottom` on the inline sides and\n * `start`/`end` on the block ones; a call site should not have to know which\n * of the two it is asking for, so this maps one onto the other. The inline\n * sides take in `start` and `end`, which React Aria turns into the left or\n * the right by the locale's direction as it places the surface, so what it\n * reports, and what `popupOrigin` reads, is always a physical side.\n *\n * Shared by every anchored overlay rather than kept in one, since which side\n * a surface opens on is the same question for a popover, a menu and a\n * tooltip.\n */\nfunction placementOf(side: OverlaySide, align: OverlayAlign) {\n if (align === 'center') {\n return side;\n }\n if (side === 'top' || side === 'bottom') {\n return `${side} ${align}` as const;\n }\n return `${side} ${align === 'start' ? 'top' : 'bottom'}` as const;\n}\n\n/**\n * The origin an anchored surface grows from, for the placement React Aria\n * reports through its render state. `null`, before the surface has been\n * placed, grows from the top as `bottom` does.\n */\nfunction popupOrigin(placement: PopoverRenderProps['placement']) {\n return origins[placement ?? 'bottom'];\n}\nexport type { OverlayAlign, OverlaySide };\nexport { overlay, placementOf, popupOrigin };"],"mappings":";AAkDA,MAAMW,UAAU;CACdC,UAAU;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,YAAY;EACVC,QAAQ;EACRF,OAAO;CACT;CACAG,UAAU;EACRD,QAAQ;EACRF,OAAO;CACT;CACAI,WAAW;EACTF,QAAQ;EACRF,OAAO;CACT;CACAK,SAAS;EACPH,QAAQ;EACRF,OAAO;CACT;CACAM,eAAe;EACbC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRV,OAAO;CACT;CACAW,aAAa;EACXC,QAAQ;EACRb,QAAQ;EACRc,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRN,QAAQ;EACRT,OAAO;CACT;CACAgB,OAAO;EACLrB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRmB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRtB,QAAQ;EACRuB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRxB,OAAO;CACT;CACAyB,aAAa;EACX1B,QAAQ;EACRc,QAAQ;EACRC,QAAQ;EACRY,QAAQ;EACR1B,OAAO;CACT;CACA2B,OAAO;EACLhC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACR6B,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACR9B,OAAO;CACT;AACF;AAOA,MAAM+B,UAAU;CACdC,QAAQvC,QAAQY;CAChB4B,QAAQxC,QAAQY;CAChB6B,MAAMzC,QAAQW;CACd+B,OAAO1C,QAAQU;CACfiC,KAAK3C,QAAQQ;AACf;;;;;;;;;;;;;;AAyBA,SAASsC,YAAYC,MAAmBC,OAAqB;CAC3D,IAAIA,UAAU,UACZ,OAAOD;CAET,IAAIA,SAAS,SAASA,SAAS,UAC7B,OAAO,GAAGA,KAAI,GAAIC;CAEpB,OAAO,GAAGD,KAAI,GAAIC,UAAU,UAAU,QAAQ;AAChD;;;;;;AAOA,SAASE,YAAYC,WAA4C;CAC/D,OAAOb,QAAQa,aAAa;AAC9B"}
1
+ {"version":3,"file":"overlay.js","names":["overlay","backdrop","k44tkh","kKVMdj","kyAemX","kWkggS","kB7OPa","$$css","fromBottom","k3nNDw","fromLeft","fromRight","fromTop","modalBodyRing","kjBf7l","kInvED","k3XXqK","kMeerF","modalDialog","kZKoxP","k1xSpc","kXwgrk","kAzted","popup","kVAM5u","kaIpWk","ksu8eU","kMzoRj","kGVxlE","kMwMTN","kORKVm","kZeWKH","popupDialog","kOIVth","scrim","kpwlN0","kVAEAm","kY2c9j","origins","bottom","center","left","right","top","placementOf","side","align","popupOrigin","placement"],"sources":["../../src/styles/overlay.ts"],"sourcesContent":["import type { PopoverRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors, motion, radii, shadows, spacing } from '../tokens/design.tokens.stylex';\nimport './layers.stylex';\nimport { layers } from './layers.stylex';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// What every overlay shares, drawn once. Popover's anchored surface and its\n// entry, Sheet's scrim, and the element that carries the dialog role inside\n// each of them; the coverage plan brings a dozen more overlays — Menu, Select,\n// ComboBox, Tooltip, the date pickers, Dialog — and each would otherwise have\n// written the same surface and the same scrim a second time. Geometry stays\n// with the component: how wide a popover is, which edge a sheet is pinned to,\n// where a dialog sits, are each overlay's own decision.\n//\n// Every one of these is portalled to the end of the body, which is why each\n// component takes a `container` prop and documents the same caveat: an app\n// that scopes its StyleX theme to a subtree has to point the portal inside it,\n// or the surface renders outside the theme and falls back to the tokens'\n// `prefers-color-scheme` default.\n//\n// Portalled to the end of the body, an element with no `z-index` paints level\n// with the page's own unlayered content, so a modal's scrim takes a layer\n// from src/styles/layers.stylex.ts, which sets the order every overlay\n// stacks in over the page.\n//\n// Entry only, and no exit animation, for the same reason in every overlay:\n// React Aria keeps a closing surface mounted only while an animation is\n// running on it, and a popover in particular is dismissed far more often than\n// it is closed deliberately — usually by pressing something else, where a\n// lingering surface is in the way of whatever the press was for. A sheet is\n// the one that leaves with movement, and none of it is a CSS animation: its\n// panel is moved by scrolling, since a scroll is what a swipe makes, so it\n// scrolls out as it scrolled in — see src/components/sheet/index.tsx.\n\n// The scrim settles before the panel it sits behind arrives: shorter than\n// any panel's entry, so the two do not finish together.\nconst fadeIn = \"x18re5ia-B\";\n\n// An anchored surface grows from the edge it is anchored by rather than from\n// its own centre, which is what makes it read as coming out of the trigger.\n// The origin is a separate style, chosen from the placement React Aria\n// reports, so the same keyframes serve all four sides.\nconst scaleIn = \"x1k48ry3-B\";\nconst overlay = {\n backdrop: {\n k44tkh: \"x1vhuh8u\",\n kKVMdj: \"xqcmdr3\",\n kyAemX: \"x1yujl0p\",\n kWkggS: \"x1iqbvzf\",\n kB7OPa: \"x9f619\",\n $$css: true\n },\n fromBottom: {\n k3nNDw: \"x18ouj0k\",\n $$css: true\n },\n fromLeft: {\n k3nNDw: \"x1nf803f\",\n $$css: true\n },\n fromRight: {\n k3nNDw: \"xyibjs4\",\n $$css: true\n },\n fromTop: {\n k3nNDw: \"x1dp6rp6\",\n $$css: true\n },\n modalBodyRing: {\n kjBf7l: \"xrgy624\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n modalDialog: {\n kZKoxP: \"x5yr21d\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kAzted: \"x2lwn1j\",\n k3XXqK: \"x1t137rt\",\n $$css: true\n },\n popup: {\n k44tkh: \"xvhm28k x1u6grsq\",\n kKVMdj: \"x97zbip\",\n kyAemX: \"x16dv9tl\",\n kWkggS: \"x1mjdul6\",\n kVAM5u: \"x1w1tqly\",\n kaIpWk: \"x62ce2h\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x13rsnn2\",\n kGVxlE: \"x1os83gw\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x139gbkf\",\n kORKVm: \"x1odjw0f\",\n kZeWKH: \"xish69e\",\n $$css: true\n },\n popupDialog: {\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kOIVth: \"x126z3so\",\n $$css: true\n },\n scrim: {\n k44tkh: \"x1vhuh8u\",\n kKVMdj: \"xqcmdr3\",\n kyAemX: \"x1yujl0p\",\n kWkggS: \"x1iqbvzf\",\n kB7OPa: \"x9f619\",\n kpwlN0: \"x10a8y8t\",\n kVAEAm: \"xixxii4\",\n kY2c9j: \"x125h2g0\",\n $$css: true\n }\n};\n\n// Which side the surface opened on, and the origin its entry grows from.\n// Keyed on the placement React Aria reports rather than the one asked for,\n// since the surface flips to the opposite side when there is no room on its\n// own; `center` is the placement React Aria reports for an anchor it could\n// not place beside, and grows from the top like the default.\nconst origins = {\n bottom: overlay.fromTop,\n center: overlay.fromTop,\n left: overlay.fromRight,\n right: overlay.fromLeft,\n top: overlay.fromBottom\n};\n\n/** Where along that side it lines up with the anchor. */\ntype OverlayAlign = 'center' | 'end' | 'start';\n\n/**\n * Which side of the anchor a surface opens on. `start` and `end` are the\n * inline sides by the writing direction, the right and the left in a\n * right-to-left layout; `left` and `right` stay where they are in either.\n */\ntype OverlaySide = 'bottom' | 'end' | 'left' | 'right' | 'start' | 'top';\n\n/**\n * React Aria's placement, from the side and the alignment a call site names.\n * Its own vocabulary pairs a side with `top`/`bottom` on the inline sides and\n * `start`/`end` on the block ones; a call site should not have to know which\n * of the two it is asking for, so this maps one onto the other. The inline\n * sides take in `start` and `end`, which React Aria turns into the left or\n * the right by the locale's direction as it places the surface, so what it\n * reports, and what `popupOrigin` reads, is always a physical side.\n *\n * Shared by every anchored overlay rather than kept in one, since which side\n * a surface opens on is the same question for a popover, a menu and a\n * tooltip.\n */\nfunction placementOf(side: OverlaySide, align: OverlayAlign) {\n if (align === 'center') {\n return side;\n }\n if (side === 'top' || side === 'bottom') {\n return `${side} ${align}` as const;\n }\n return `${side} ${align === 'start' ? 'top' : 'bottom'}` as const;\n}\n\n/**\n * The origin an anchored surface grows from, for the placement React Aria\n * reports through its render state. `null`, before the surface has been\n * placed, grows from the top as `bottom` does.\n */\nfunction popupOrigin(placement: PopoverRenderProps['placement']) {\n return origins[placement ?? 'bottom'];\n}\nexport type { OverlayAlign, OverlaySide };\nexport { overlay, placementOf, popupOrigin };"],"mappings":";AAkDA,MAAMA,UAAU;CACdC,UAAU;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,YAAY;EACVC,QAAQ;EACRF,OAAO;CACT;CACAG,UAAU;EACRD,QAAQ;EACRF,OAAO;CACT;CACAI,WAAW;EACTF,QAAQ;EACRF,OAAO;CACT;CACAK,SAAS;EACPH,QAAQ;EACRF,OAAO;CACT;CACAM,eAAe;EACbC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRV,OAAO;CACT;CACAW,aAAa;EACXC,QAAQ;EACRb,QAAQ;EACRc,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRN,QAAQ;EACRT,OAAO;CACT;CACAgB,OAAO;EACLrB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRmB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRtB,QAAQ;EACRuB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRxB,OAAO;CACT;CACAyB,aAAa;EACX1B,QAAQ;EACRc,QAAQ;EACRC,QAAQ;EACRY,QAAQ;EACR1B,OAAO;CACT;CACA2B,OAAO;EACLhC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACR6B,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACR9B,OAAO;CACT;AACF;AAOA,MAAM+B,UAAU;CACdC,QAAQvC,QAAQY;CAChB4B,QAAQxC,QAAQY;CAChB6B,MAAMzC,QAAQW;CACd+B,OAAO1C,QAAQU;CACfiC,KAAK3C,QAAQQ;AACf;;;;;;;;;;;;;;AAyBA,SAASoC,YAAYC,MAAmBC,OAAqB;CAC3D,IAAIA,UAAU,UACZ,OAAOD;CAET,IAAIA,SAAS,SAASA,SAAS,UAC7B,OAAO,GAAGA,KAAI,GAAIC;CAEpB,OAAO,GAAGD,KAAI,GAAIC,UAAU,UAAU,QAAQ;AAChD;;;;;;AAOA,SAASC,YAAYC,WAA4C;CAC/D,OAAOV,QAAQU,aAAa;AAC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"picker.js","names":["PopoverRenderProps","stylex","colors","media","radii","shadows","spacing","focus","iconButton","overlay","SCRIM","scrim","picker","datePopover","kWkggS","kaIpWk","kGVxlE","$$css","group","kGNEyG","kB7OPa","k1xSpc","kOIVth","kzqmXN","k3XXqK","popover","kZKoxP","krVfgx","k87sOh","kt4wiu","kLqNvP","kogj98","kskxy","ks0D6T","kVAEAm","triggerGlyph","origins","bottom","k3nNDw","left","right","top","datePopoverClassName","state","props","popup","originOf","placement","className","popoverClassName","triggerClassName","isDisabled","isHovered","isPressed","chrome","ring","chromeHovered","chromePressed","chromeDisabled","stylex.props"],"sources":["../../src/styles/picker.ts"],"sourcesContent":["import type { PopoverRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors, media, radii, shadows, spacing } from '../tokens/design.tokens.stylex';\nimport { focus } from './focus';\nimport { iconButton } from './icon-button';\nimport { overlay } from './overlay';\n\n// What a date picker and a date range picker draw in common: the line the\n// segments and the trigger share, the trigger itself, and the surface the\n// calendar opens on. Both put the same three on screen, and the breakpoint\n// swap below is why they are here rather than written twice — a docked\n// picker and a range picker that disagreed about where the modal sits would\n// be two bugs rather than one.\n//\n// In `src/styles` rather than a `src/picker` of its own, since this is\n// styles more than one component draws, which is what that directory holds.\n// Geometry belonging to one picker alone stays with that picker.\n\n// The scrim a picker's surface casts below the breakpoint, as a spread shadow\n// added to its elevation — see `popover`.\nconst SCRIM = `0 0 0 100vmax color-mix(in srgb, ${colors.scrim} 32%, transparent)`;\nconst picker = {\n datePopover: {\n kWkggS: \"xvkjz1l\",\n kaIpWk: \"xhpdng0\",\n kGVxlE: \"x1udv5rz xl62t\",\n $$css: true\n },\n group: {\n kGNEyG: \"x6s0dn4\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kOIVth: \"x126z3so\",\n kzqmXN: \"xh8yej3\",\n k3XXqK: \"x1t137rt\",\n $$css: true\n },\n popover: {\n kZKoxP: \"x1poebcc\",\n kGVxlE: \"x1os83gw x1l41d60\",\n kzqmXN: \"xpxzbr4\",\n krVfgx: \"xudx362\",\n k87sOh: \"xbvrusa\",\n kt4wiu: \"x1v0tev1\",\n kLqNvP: \"x12sfaok\",\n kogj98: \"xucn3ve\",\n kskxy: \"xmjxpzh\",\n ks0D6T: \"x1x1rfll x1493c6o\",\n kVAEAm: \"x1mesnot\",\n $$css: true\n },\n triggerGlyph: {\n kZKoxP: \"xxk0z11\",\n kzqmXN: \"xvy4d1p\",\n $$css: true\n }\n};\n\n// The origin the surface grows from, for the placement React Aria reports.\n// Docked, it is the edge the surface is anchored by, as `popupOrigin` in\n// overlay.ts gives every anchored overlay, and the two maps agree side for\n// side. Below the breakpoint it is the surface's own centre, since there it\n// sits in the middle of the window anchored to nothing. A map of its own\n// rather than `popupOrigin` with a reset after it: StyleX resolves a property\n// whole, so a later `transformOrigin` keyed on the breakpoint alone would\n// drop the docked origin rather than add to it.\nconst origins = {\n bottom: {\n k3nNDw: \"x1dp6rp6 xa9fysw\",\n $$css: true\n },\n left: {\n k3nNDw: \"xyibjs4 xa9fysw\",\n $$css: true\n },\n right: {\n k3nNDw: \"x1nf803f xa9fysw\",\n $$css: true\n },\n top: {\n k3nNDw: \"x18ouj0k xa9fysw\",\n $$css: true\n }\n};\n\n// The date pickers' surface, the same with the calendar's fill and corner.\nfunction datePopoverClassName(state: PopoverRenderProps) {\n return stylex.props(overlay.popup, picker.popover, picker.datePopover, originOf(state.placement)).className ?? '';\n}\nfunction originOf(placement: PopoverRenderProps['placement']) {\n return placement === null || placement === 'center' ? origins.bottom : origins[placement];\n}\n\n// The colour picker's surface, from React Aria's render state.\nfunction popoverClassName(state: PopoverRenderProps) {\n return stylex.props(overlay.popup, picker.popover, originOf(state.placement)).className ?? '';\n}\n\n// The trigger's classes, from React Aria's own render state. A picker's\n// trigger is disabled by the field around it rather than by a prop of its\n// own, so the fade comes off the state React Aria hands the className. It is\n// the same 38% the segments beside it take, so one disabled field fades as a\n// whole.\nfunction triggerClassName(state: {\n isDisabled: boolean;\n isHovered: boolean;\n isPressed: boolean;\n}) {\n return stylex.props(iconButton.chrome, focus.ring, state.isHovered && iconButton.chromeHovered, state.isPressed && iconButton.chromePressed, state.isDisabled && iconButton.chromeDisabled).className ?? '';\n}\nexport { datePopoverClassName, picker, popoverClassName, triggerClassName };"],"mappings":";;;;;;AAqBc,GAAoCE,OAAOS;AACzD,MAAMC,SAAS;CACbC,aAAa;EACXC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,OAAO;EACLC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRP,OAAO;CACT;CACAQ,SAAS;EACPC,QAAQ;EACRV,QAAQ;EACRO,QAAQ;EACRI,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC,QAAQ;EACRC,QAAQ;EACRjB,OAAO;CACT;CACAkB,cAAc;EACZT,QAAQ;EACRH,QAAQ;EACRN,OAAO;CACT;AACF;AAUA,MAAMmB,UAAU;CACdC,QAAQ;EACNC,QAAQ;EACRrB,OAAO;CACT;CACAsB,MAAM;EACJD,QAAQ;EACRrB,OAAO;CACT;CACAuB,OAAO;EACLF,QAAQ;EACRrB,OAAO;CACT;CACAwB,KAAK;EACHH,QAAQ;EACRrB,OAAO;CACT;AACF;AAGA,SAASyB,qBAAqBC,OAA2B;CACvD,OAAO1C,MAAaQ,QAAQoC,OAAOjC,OAAOa,SAASb,OAAOC,aAAaiC,SAASH,MAAMI,SAAS,CAAC,CAAC,CAACC,aAAa;AACjH;AACA,SAASF,SAASC,WAA4C;CAC5D,OAAOA,cAAc,QAAQA,cAAc,WAAWX,QAAQC,SAASD,QAAQW;AACjF;AAGA,SAASE,iBAAiBN,OAA2B;CACnD,OAAO1C,MAAaQ,QAAQoC,OAAOjC,OAAOa,SAASqB,SAASH,MAAMI,SAAS,CAAC,CAAC,CAACC,aAAa;AAC7F;AAOA,SAASE,iBAAiBP,OAIvB;CACD,OAAO1C,MAAaO,WAAW8C,QAAQ/C,MAAMgD,MAAMZ,MAAMS,aAAa5C,WAAWgD,eAAeb,MAAMU,aAAa7C,WAAWiD,eAAed,MAAMQ,cAAc3C,WAAWkD,cAAc,CAAC,CAACV,aAAa;AAC3M"}
1
+ {"version":3,"file":"picker.js","names":["stylex","colors","focus","iconButton","overlay","scrim","picker","datePopover","kWkggS","kaIpWk","kGVxlE","$$css","group","kGNEyG","kB7OPa","k1xSpc","kOIVth","kzqmXN","k3XXqK","popover","kZKoxP","krVfgx","k87sOh","kt4wiu","kLqNvP","kogj98","kskxy","ks0D6T","kVAEAm","triggerGlyph","origins","bottom","k3nNDw","left","right","top","datePopoverClassName","state","popup","originOf","placement","className","popoverClassName","triggerClassName","isDisabled","isHovered","isPressed","chrome","ring","chromeHovered","chromePressed","chromeDisabled"],"sources":["../../src/styles/picker.ts"],"sourcesContent":["import type { PopoverRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors, media, radii, shadows, spacing } from '../tokens/design.tokens.stylex';\nimport { focus } from './focus';\nimport { iconButton } from './icon-button';\nimport { overlay } from './overlay';\n\n// What a date picker and a date range picker draw in common: the line the\n// segments and the trigger share, the trigger itself, and the surface the\n// calendar opens on. Both put the same three on screen, and the breakpoint\n// swap below is why they are here rather than written twice — a docked\n// picker and a range picker that disagreed about where the modal sits would\n// be two bugs rather than one.\n//\n// In `src/styles` rather than a `src/picker` of its own, since this is\n// styles more than one component draws, which is what that directory holds.\n// Geometry belonging to one picker alone stays with that picker.\n\n// The scrim a picker's surface casts below the breakpoint, as a spread shadow\n// added to its elevation — see `popover`.\nconst SCRIM = `0 0 0 100vmax color-mix(in srgb, ${colors.scrim} 32%, transparent)`;\nconst picker = {\n datePopover: {\n kWkggS: \"xvkjz1l\",\n kaIpWk: \"xhpdng0\",\n kGVxlE: \"x1udv5rz xl62t\",\n $$css: true\n },\n group: {\n kGNEyG: \"x6s0dn4\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kOIVth: \"x126z3so\",\n kzqmXN: \"xh8yej3\",\n k3XXqK: \"x1t137rt\",\n $$css: true\n },\n popover: {\n kZKoxP: \"x1poebcc\",\n kGVxlE: \"x1os83gw x1l41d60\",\n kzqmXN: \"xpxzbr4\",\n krVfgx: \"xudx362\",\n k87sOh: \"xbvrusa\",\n kt4wiu: \"x1v0tev1\",\n kLqNvP: \"x12sfaok\",\n kogj98: \"xucn3ve\",\n kskxy: \"xmjxpzh\",\n ks0D6T: \"x1x1rfll x1493c6o\",\n kVAEAm: \"x1mesnot\",\n $$css: true\n },\n triggerGlyph: {\n kZKoxP: \"xxk0z11\",\n kzqmXN: \"xvy4d1p\",\n $$css: true\n }\n};\n\n// The origin the surface grows from, for the placement React Aria reports.\n// Docked, it is the edge the surface is anchored by, as `popupOrigin` in\n// overlay.ts gives every anchored overlay, and the two maps agree side for\n// side. Below the breakpoint it is the surface's own centre, since there it\n// sits in the middle of the window anchored to nothing. A map of its own\n// rather than `popupOrigin` with a reset after it: StyleX resolves a property\n// whole, so a later `transformOrigin` keyed on the breakpoint alone would\n// drop the docked origin rather than add to it.\nconst origins = {\n bottom: {\n k3nNDw: \"x1dp6rp6 xa9fysw\",\n $$css: true\n },\n left: {\n k3nNDw: \"xyibjs4 xa9fysw\",\n $$css: true\n },\n right: {\n k3nNDw: \"x1nf803f xa9fysw\",\n $$css: true\n },\n top: {\n k3nNDw: \"x18ouj0k xa9fysw\",\n $$css: true\n }\n};\n\n// The date pickers' surface, the same with the calendar's fill and corner.\nfunction datePopoverClassName(state: PopoverRenderProps) {\n return stylex.props(overlay.popup, picker.popover, picker.datePopover, originOf(state.placement)).className ?? '';\n}\nfunction originOf(placement: PopoverRenderProps['placement']) {\n return placement === null || placement === 'center' ? origins.bottom : origins[placement];\n}\n\n// The colour picker's surface, from React Aria's render state.\nfunction popoverClassName(state: PopoverRenderProps) {\n return stylex.props(overlay.popup, picker.popover, originOf(state.placement)).className ?? '';\n}\n\n// The trigger's classes, from React Aria's own render state. A picker's\n// trigger is disabled by the field around it rather than by a prop of its\n// own, so the fade comes off the state React Aria hands the className. It is\n// the same 38% the segments beside it take, so one disabled field fades as a\n// whole.\nfunction triggerClassName(state: {\n isDisabled: boolean;\n isHovered: boolean;\n isPressed: boolean;\n}) {\n return stylex.props(iconButton.chrome, focus.ring, state.isHovered && iconButton.chromeHovered, state.isPressed && iconButton.chromePressed, state.isDisabled && iconButton.chromeDisabled).className ?? '';\n}\nexport { datePopoverClassName, picker, popoverClassName, triggerClassName };"],"mappings":";;;;;;AAqBc,GAAoCC,OAAOI;AACzD,MAAMC,SAAS;CACbC,aAAa;EACXC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,OAAO;EACLC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRP,OAAO;CACT;CACAQ,SAAS;EACPC,QAAQ;EACRV,QAAQ;EACRO,QAAQ;EACRI,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC,QAAQ;EACRC,QAAQ;EACRjB,OAAO;CACT;CACAkB,cAAc;EACZT,QAAQ;EACRH,QAAQ;EACRN,OAAO;CACT;AACF;AAUA,MAAMmB,UAAU;CACdC,QAAQ;EACNC,QAAQ;EACRrB,OAAO;CACT;CACAsB,MAAM;EACJD,QAAQ;EACRrB,OAAO;CACT;CACAuB,OAAO;EACLF,QAAQ;EACRrB,OAAO;CACT;CACAwB,KAAK;EACHH,QAAQ;EACRrB,OAAO;CACT;AACF;AAGA,SAASyB,qBAAqBC,OAA2B;CACvD,OAAOrC,MAAaI,QAAQkC,OAAOhC,OAAOa,SAASb,OAAOC,aAAagC,SAASF,MAAMG,SAAS,CAAC,CAAC,CAACC,aAAa;AACjH;AACA,SAASF,SAASC,WAA4C;CAC5D,OAAOA,cAAc,QAAQA,cAAc,WAAWV,QAAQC,SAASD,QAAQU;AACjF;AAGA,SAASE,iBAAiBL,OAA2B;CACnD,OAAOrC,MAAaI,QAAQkC,OAAOhC,OAAOa,SAASoB,SAASF,MAAMG,SAAS,CAAC,CAAC,CAACC,aAAa;AAC7F;AAOA,SAASE,iBAAiBN,OAIvB;CACD,OAAOrC,MAAaG,WAAW4C,QAAQ7C,MAAM8C,MAAMX,MAAMQ,aAAa1C,WAAW8C,eAAeZ,MAAMS,aAAa3C,WAAW+C,eAAeb,MAAMO,cAAczC,WAAWgD,cAAc,CAAC,CAACV,aAAa;AAC3M"}
@@ -1 +1 @@
1
- {"version":3,"file":"ripple.js","names":["stylex","stateLayerOpacity","FORCED_COLORS","styles","press","k6CgDc","kKwaWg","kbCHJM","kSiTet","kVAEAm","k87sOh","k3nNDw","kIyJzY","k1ekBW","kAMwcw","$$css","pressed","surface","kaIpWk","k1xSpc","kpwlN0","kVQacm","kfzvcC","rippleStyles"],"sources":["../../src/styles/ripple.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { stateLayerOpacity } from '../tokens/design.tokens.stylex';\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// Growth and opacity are two independent mechanisms. Growth (width/height/\n// transform) is driven imperatively via the Web Animations API in\n// useRipple, decoupled from press/release timing so it always plays out\n// over a fixed duration. Opacity is what this file owns — toggled by the\n// `pressed` class — with a fast fade-in and a slower fade-out, so a quick\n// tap still reads as a deliberate, visible ripple rather than a flicker.\n//\n// None of the three timings below is a motion token, and that is deliberate\n// rather than an oversight predating them. The fade pair is the asymmetry\n// the paragraph above describes: 105ms in against 375ms out, hand-tuned as\n// a ratio to each other, and neither lands on the scale (105ms is near\n// durationShort1's 100ms; 375ms sits between durationMedium3 and\n// durationLong1). Snapping either to its nearest token would flatten a\n// tuned asymmetry into two arbitrary values, and adding tokens to fit would\n// make a scale that documents itself as three bands of three describe this\n// component instead. `linear` is likewise not on the easing scale, and\n// belongs off it — a fade to and from a state layer wants no acceleration,\n// which is why every curve in the token set is the wrong answer here.\n//\n// These three are now the only ripple timings off the scale. Everything\n// useRipple drives from JS is a token, read through src/tokens/values\n// because element.animate() and setTimeout both reject the StyleX form.\n//\n// The gradient's soft edge (a currentColor disc fading to transparent over\n// its outer 30-35%, capped at 70px) replaces a hard-edged circle so the\n// ripple blends into the surface rather than looking like a solid dot.\n//\n// `closest-side` + a plain circular box means no `border-radius` is needed\n// on the ripple itself — the gradient's own shape reads as a circle.\nconst styles = {\n press: {\n k6CgDc: \"x12w9bfk\",\n kKwaWg: \"xliahv6\",\n kbCHJM: \"xu96u03\",\n kSiTet: \"xg01cxk\",\n kVAEAm: \"x10l6tqk\",\n k87sOh: \"x13vifvy\",\n k3nNDw: \"x1g0ag68\",\n kIyJzY: \"xbg8nd6\",\n k1ekBW: \"x19991ni\",\n kAMwcw: \"xcj1dhv\",\n $$css: true\n },\n pressed: {\n kSiTet: \"xjg27g\",\n kIyJzY: \"xjl7l83\",\n $$css: true\n },\n surface: {\n kaIpWk: \"x1pjcqnp\",\n k1xSpc: \"x1lliihq x1c7sf14\",\n kpwlN0: \"x10a8y8t\",\n kVQacm: \"xb3r6kr\",\n kfzvcC: \"x47corl\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n }\n};\nexport { styles as rippleStyles };"],"mappings":";AAkCA,MAAMG,SAAS;CACbC,OAAO;EACLC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,SAAS;EACPR,QAAQ;EACRI,QAAQ;EACRG,OAAO;CACT;CACAE,SAAS;EACPC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRb,QAAQ;EACRM,OAAO;CACT;AACF"}
1
+ {"version":3,"file":"ripple.js","names":["styles","press","k6CgDc","kKwaWg","kbCHJM","kSiTet","kVAEAm","k87sOh","k3nNDw","kIyJzY","k1ekBW","kAMwcw","$$css","pressed","surface","kaIpWk","k1xSpc","kpwlN0","kVQacm","kfzvcC"],"sources":["../../src/styles/ripple.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { stateLayerOpacity } from '../tokens/design.tokens.stylex';\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// Growth and opacity are two independent mechanisms. Growth (width/height/\n// transform) is driven imperatively via the Web Animations API in\n// useRipple, decoupled from press/release timing so it always plays out\n// over a fixed duration. Opacity is what this file owns — toggled by the\n// `pressed` class — with a fast fade-in and a slower fade-out, so a quick\n// tap still reads as a deliberate, visible ripple rather than a flicker.\n//\n// None of the three timings below is a motion token, and that is deliberate\n// rather than an oversight predating them. The fade pair is the asymmetry\n// the paragraph above describes: 105ms in against 375ms out, hand-tuned as\n// a ratio to each other, and neither lands on the scale (105ms is near\n// durationShort1's 100ms; 375ms sits between durationMedium3 and\n// durationLong1). Snapping either to its nearest token would flatten a\n// tuned asymmetry into two arbitrary values, and adding tokens to fit would\n// make a scale that documents itself as three bands of three describe this\n// component instead. `linear` is likewise not on the easing scale, and\n// belongs off it — a fade to and from a state layer wants no acceleration,\n// which is why every curve in the token set is the wrong answer here.\n//\n// These three are now the only ripple timings off the scale. Everything\n// useRipple drives from JS is a token, read through src/tokens/values\n// because element.animate() and setTimeout both reject the StyleX form.\n//\n// The gradient's soft edge (a currentColor disc fading to transparent over\n// its outer 30-35%, capped at 70px) replaces a hard-edged circle so the\n// ripple blends into the surface rather than looking like a solid dot.\n//\n// `closest-side` + a plain circular box means no `border-radius` is needed\n// on the ripple itself — the gradient's own shape reads as a circle.\nconst styles = {\n press: {\n k6CgDc: \"x12w9bfk\",\n kKwaWg: \"xliahv6\",\n kbCHJM: \"xu96u03\",\n kSiTet: \"xg01cxk\",\n kVAEAm: \"x10l6tqk\",\n k87sOh: \"x13vifvy\",\n k3nNDw: \"x1g0ag68\",\n kIyJzY: \"xbg8nd6\",\n k1ekBW: \"x19991ni\",\n kAMwcw: \"xcj1dhv\",\n $$css: true\n },\n pressed: {\n kSiTet: \"xjg27g\",\n kIyJzY: \"xjl7l83\",\n $$css: true\n },\n surface: {\n kaIpWk: \"x1pjcqnp\",\n k1xSpc: \"x1lliihq x1c7sf14\",\n kpwlN0: \"x10a8y8t\",\n kVQacm: \"xb3r6kr\",\n kfzvcC: \"x47corl\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n }\n};\nexport { styles as rippleStyles };"],"mappings":";AAkCA,MAAMA,SAAS;CACbC,OAAO;EACLC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,SAAS;EACPR,QAAQ;EACRI,QAAQ;EACRG,OAAO;CACT;CACAE,SAAS;EACPC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRb,QAAQ;EACRM,OAAO;CACT;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"scheme.js","names":["stylex","colors","pinnedScheme","dark","kWkggS","kMwMTN","kQNsl9","$$css","light"],"sources":["../../src/styles/scheme.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors } from '../tokens/design.tokens.stylex';\n\n// What pinning a scheme does beside the colour theme that pins the tokens:\n// the element paints its own surface and text in that scheme, and tells the\n// browser the scheme, which is what native controls, scrollbars, autofill\n// and spellcheck follow — they read `color-scheme` rather than any token.\n//\n// A theme pins the tokens alone. A pinned dark scope on a light page left\n// its own background transparent and its text the page's, so a `Text`\n// inside drew the dark scheme's on surface over the light page, 1.23:1, and\n// an `<input>` inside stayed white with black text.\n//\n// Surface and on surface rather than background and on background: the two\n// pairs hold the same colours in both of the library's schemes, and surface\n// is the pair Material Design draws content on. Shared by `ThemeScope` and\n// the `colorScheme` classes in src/color-scheme.ts, which are the same\n// classes in two forms; an unpinned scope applies neither, so it paints\n// nothing and inherits the scheme around it.\nconst pinnedScheme = {\n dark: {\n kWkggS: \"x14s9m32\",\n kMwMTN: \"x139gbkf\",\n kQNsl9: \"xntwwlm\",\n $$css: true\n },\n light: {\n kWkggS: \"x14s9m32\",\n kMwMTN: \"x139gbkf\",\n kQNsl9: \"x19aimcq\",\n $$css: true\n }\n};\nexport { pinnedScheme };"],"mappings":";AAoBA,MAAME,eAAe;CACnBC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,OAAO;EACLJ,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;AACF"}
1
+ {"version":3,"file":"scheme.js","names":["pinnedScheme","dark","kWkggS","kMwMTN","kQNsl9","$$css","light"],"sources":["../../src/styles/scheme.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors } from '../tokens/design.tokens.stylex';\n\n// What pinning a scheme does beside the colour theme that pins the tokens:\n// the element paints its own surface and text in that scheme, and tells the\n// browser the scheme, which is what native controls, scrollbars, autofill\n// and spellcheck follow — they read `color-scheme` rather than any token.\n//\n// A theme pins the tokens alone. A pinned dark scope on a light page left\n// its own background transparent and its text the page's, so a `Text`\n// inside drew the dark scheme's on surface over the light page, 1.23:1, and\n// an `<input>` inside stayed white with black text.\n//\n// Surface and on surface rather than background and on background: the two\n// pairs hold the same colours in both of the library's schemes, and surface\n// is the pair Material Design draws content on. Shared by `ThemeScope` and\n// the `colorScheme` classes in src/color-scheme.ts, which are the same\n// classes in two forms; an unpinned scope applies neither, so it paints\n// nothing and inherits the scheme around it.\nconst pinnedScheme = {\n dark: {\n kWkggS: \"x14s9m32\",\n kMwMTN: \"x139gbkf\",\n kQNsl9: \"xntwwlm\",\n $$css: true\n },\n light: {\n kWkggS: \"x14s9m32\",\n kMwMTN: \"x139gbkf\",\n kQNsl9: \"x19aimcq\",\n $$css: true\n }\n};\nexport { pinnedScheme };"],"mappings":";AAoBA,MAAMA,eAAe;CACnBC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,OAAO;EACLJ,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;AACF"}
package/dist/styles.css CHANGED
@@ -552,6 +552,10 @@
552
552
  text-decoration: none;
553
553
  }
554
554
 
555
+ .x91pird[data-empty] {
556
+ padding-inline: var(--x3km7fe);
557
+ }
558
+
555
559
  .x9h1dke:last-child {
556
560
  overflow: clip;
557
561
  }
@@ -622,6 +626,10 @@
622
626
  align-items: center;
623
627
  }
624
628
 
629
+ .xpqajaz {
630
+ align-items: end;
631
+ }
632
+
625
633
  .xuk3077 {
626
634
  align-items: flex-end;
627
635
  }
@@ -1694,6 +1702,10 @@
1694
1702
  flex-basis: 0;
1695
1703
  }
1696
1704
 
1705
+ .x1l7klhg {
1706
+ flex-basis: 100%;
1707
+ }
1708
+
1697
1709
  .x4pfjvb {
1698
1710
  flex-basis: 50%;
1699
1711
  }
@@ -2471,6 +2483,10 @@
2471
2483
  overflow-wrap: break-word;
2472
2484
  }
2473
2485
 
2486
+ .x1h4wwuj {
2487
+ overflow-wrap: normal;
2488
+ }
2489
+
2474
2490
  .x2vl965 {
2475
2491
  padding-inline-end: 10px;
2476
2492
  }
@@ -2587,6 +2603,10 @@
2587
2603
  resize: none;
2588
2604
  }
2589
2605
 
2606
+ .xxs79tx {
2607
+ row-gap: 0;
2608
+ }
2609
+
2590
2610
  .xtfsegk {
2591
2611
  row-gap: 8px;
2592
2612
  }
@@ -2595,6 +2615,10 @@
2595
2615
  scroll-behavior: smooth;
2596
2616
  }
2597
2617
 
2618
+ .x37ujze {
2619
+ scroll-margin-inline-start: calc(18px + var(--xod9tvo));
2620
+ }
2621
+
2598
2622
  .x83psoy {
2599
2623
  scroll-snap-align: end;
2600
2624
  }
@@ -3122,6 +3146,10 @@
3122
3146
  line-height: var(--x1lrg4gv);
3123
3147
  }
3124
3148
 
3149
+ .xbrmr3i:has( > [role="dialog"]:focus-visible) {
3150
+ outline-style: solid;
3151
+ }
3152
+
3125
3153
  .x1kbcym6:dir(rtl) {
3126
3154
  box-shadow: inset 1px 0 0 0 var(--x7dbk6n);
3127
3155
  }
@@ -3385,8 +3413,8 @@
3385
3413
  outline-offset: -1px;
3386
3414
  }
3387
3415
 
3388
- .xnrgvoc.xnrgvoc {
3389
- outline-offset: 1px;
3416
+ .xs9jlpd.xs9jlpd {
3417
+ outline-offset: -2px;
3390
3418
  }
3391
3419
 
3392
3420
  .x12iqurn.x12iqurn {
@@ -4687,6 +4715,10 @@
4687
4715
  }
4688
4716
 
4689
4717
  @media (width < 840px) {
4718
+ .x1dstske.x1dstske {
4719
+ display: flex;
4720
+ }
4721
+
4690
4722
  .x1yrkhk.x1yrkhk {
4691
4723
  display: grid;
4692
4724
  }
@@ -4760,12 +4792,6 @@
4760
4792
  grid-area: text;
4761
4793
  }
4762
4794
 
4763
- @media (width < 840px) {
4764
- .x17udjhq.x17udjhq {
4765
- grid-auto-rows: 336px;
4766
- }
4767
- }
4768
-
4769
4795
  @media (width >= 840px) {
4770
4796
  .xkgydl7.xkgydl7 {
4771
4797
  grid-template-columns: 360px minmax(0, 1fr);
@@ -5000,6 +5026,12 @@
5000
5026
  }
5001
5027
  }
5002
5028
 
5029
+ @media (width < 840px) {
5030
+ .x1e8x83n.x1e8x83n {
5031
+ min-height: auto;
5032
+ }
5033
+ }
5034
+
5003
5035
  @media (width < 600px) {
5004
5036
  .x1iob9gu.x1iob9gu {
5005
5037
  min-height: 0;
@@ -0,0 +1,19 @@
1
+ import { createContext } from "react";
2
+ // src/swatch/index.ts
3
+ /**
4
+ * A style laid over a swatch's square by what the swatch is drawn in, after
5
+ * the square's own, so it can size the square. A colour picker's trigger draws
6
+ * its swatch at the 24dp of the label's line rather than the 40dp a swatch
7
+ * takes on its own.
8
+ *
9
+ * A context rather than the swatch's `className`, which is the call site's:
10
+ * a class from inside the library is a second StyleX call, and which of two
11
+ * calls setting the same property wins depends on where their rules land in
12
+ * the stylesheet rather than on the order the classes are written in. The
13
+ * trigger's 24px lost to the swatch's 40px that way. Laid over inside the
14
+ * swatch's own `stylex.props`, the later style wins by StyleX's own rule.
15
+ */
16
+ const SwatchSquareContext = createContext(null);
17
+ export { SwatchSquareContext };
18
+
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["createContext","SwatchSquareContext"],"sources":["../../src/swatch/index.ts"],"sourcesContent":["import type { StyleXStyles } from '@stylexjs/stylex';\nimport { createContext } from 'react';\n\n// What a component drawing a colour swatch can say about the square it draws.\n// Apart from the swatch itself for the reason src/badge gives: a module of its\n// own rather than a part of the one place that uses it, since the swatch\n// imports it and that place imports the swatch.\n\n/**\n * A style laid over a swatch's square by what the swatch is drawn in, after\n * the square's own, so it can size the square. A colour picker's trigger draws\n * its swatch at the 24dp of the label's line rather than the 40dp a swatch\n * takes on its own.\n *\n * A context rather than the swatch's `className`, which is the call site's:\n * a class from inside the library is a second StyleX call, and which of two\n * calls setting the same property wins depends on where their rules land in\n * the stylesheet rather than on the order the classes are written in. The\n * trigger's 24px lost to the swatch's 40px that way. Laid over inside the\n * swatch's own `stylex.props`, the later style wins by StyleX's own rule.\n */\nconst SwatchSquareContext = createContext<null | StyleXStyles>(null);\nexport { SwatchSquareContext };"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAMC,sBAAsBD,cAAmC,IAAI"}
@@ -65,5 +65,4 @@ type ThemeScopeProps = RenderComponentProps<'div'> & {
65
65
  * applied around it in any other way stops at its edge.
66
66
  */
67
67
  declare function ThemeScope({ children, render, scheme, theme, ...props }: ThemeScopeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
68
- export { type KuiTheme, ThemeScope, type ThemeScopeProps };
69
- //# sourceMappingURL=theme-scope.d.ts.map
68
+ export { type KuiTheme, ThemeScope, type ThemeScopeProps };
@@ -1 +1 @@
1
- {"version":3,"file":"theme-scope.js","names":["c","_c","KuiTheme","stylex","useCallback","useState","UNSAFE_PortalProvider","PortalProvider","useIsSSR","RenderComponentProps","useRender","mergeStyles","pinnedScheme","colorDefaultsDarkTheme","colorDefaultsLightTheme","tokenScope","styles","root","kB7OPa","$$css","schemes","dark","light","ThemeScopeProps","scheme","theme","containerClassName","className","makeContainer","document","made","createElement","ThemeScope","t0","$","children","render","props","container","isSSR","t1","getContainer","t2","marker","scope","parentElement","append","remove","place","t3","t4","undefined","style","t5","t6","t7","t8","t9","defaultTagName","_c","props","stylex.props","PortalProvider"],"sources":["../src/theme-scope.tsx"],"sourcesContent":["'use client';\n\nimport type { KuiTheme } from '@kanso-labs/kanso-ui-core';\nimport * as stylex from '@stylexjs/stylex';\nimport { useCallback, useState } from 'react';\nimport { UNSAFE_PortalProvider as PortalProvider } from 'react-aria/PortalProvider';\nimport { useIsSSR } from 'react-aria/SSRProvider';\nimport type { RenderComponentProps } from './render/useRender';\nimport { useRender } from './render/useRender';\nimport { mergeStyles } from './styles/merge';\nimport { pinnedScheme } from './styles/scheme';\nimport { colorDefaultsDarkTheme, colorDefaultsLightTheme, tokenScope } from './tokens/design.tokens.stylex';\n\n// The component form of `themeScope` and `colorScheme` in ./color-scheme.ts:\n// the same classes, on an element of its own, plus the one thing a class\n// cannot do — take the overlays along. A pinned scheme paints the scope's\n// surface and sets its `color-scheme` too; see src/styles/scheme.ts.\n//\n// React Aria portals every overlay to the end of `<body>` unless a portal\n// provider names another container, so a popover, a sheet, a tooltip or a\n// toast opened inside a themed element renders outside it, and keeps the\n// tokens of the page. The container here is inside the scope's own element,\n// which is what makes the overlays inherit whatever the scope inherits: its\n// scheme, and the `--kui-*` overrides declared on it or on any element around\n// it. A container appended to the body and given the scope's classes would\n// carry the classes alone, losing every override declared above the scope.\n//\n// It is appended to the scope's element rather than rendered as one of its\n// children. A rendered `<div>` was a child of whatever the scope rendered as,\n// so a scope rendered as a `<p>` drew React's nesting error and a hydration\n// warning, and the server's markup held a `<div>` inside it. Appended, it is\n// in neither React's tree nor the server's markup.\n//\n// It has to be in place before anything inside the scope runs a layout\n// effect, which is earlier than the scope's own ref: React attaches an\n// element's ref once everything inside it has run its layout effects. An\n// overlay open on the scope's first render reads its own element in one of\n// those effects, once — React Aria decides there whether a popover is a\n// dialog, and hides or makes inert the page behind a modal — so an overlay\n// mounted a render late, or into a container not yet in the document, gets\n// those wrong for as long as it stays open: a hover popover kept a second,\n// unnamed dialog role around its own, and a sheet left the page behind it\n// reachable. So the container is made on the first render and handed out\n// from it, and a `<template>` rendered ahead of the children appends it,\n// since its ref attaches before anything after it runs an effect. The\n// template then removes itself, so the call site's children keep their\n// places for `:first-child` and `:nth-child`. React never inserts anything\n// before it and only ever removes it along with the scope's element, so\n// nothing reaches for it once it is gone.\n//\n// Nothing is handed out while the page hydrates, as React Aria hands out\n// nothing then either: the server rendered no overlay, so a portal would be\n// a mismatch. One open from the start renders once hydration is over, as it\n// would outside a scope.\n//\n// `display: contents` keeps that container out of the layout, so a scope\n// that is a grid or a flex container gains no item and no gap from it. React\n// Aria positions an overlay against the overlay's own containing block rather\n// than the container's box, so a container with no box of its own changes\n// nothing about where a popover lands. It is still an element, so a selector\n// that counts the scope's children counts it; the description below says\n// what that changes for a call site.\nconst styles = {\n root: {\n kB7OPa: \"x9f619\",\n $$css: true\n }\n};\nconst schemes = {\n dark: colorDefaultsDarkTheme,\n light: colorDefaultsLightTheme\n};\ntype ThemeScopeProps = RenderComponentProps<'div'> & {\n /**\n * Pins the scope to the library's light or dark scheme, whatever the\n * reader's OS asks for. A pinned scope paints its own surface and text in\n * that scheme and sets `color-scheme` for the native controls inside, so\n * it reads on any page. Left unset, the scope paints nothing and keeps the\n * scheme around it: the one an enclosing scope or a `colorScheme` class\n * pins, on the `<html>` element or nearer, or else the OS's.\n */\n scheme?: 'dark' | 'light' | undefined;\n /**\n * `--kui-*` overrides for everything inside, as a map of the custom\n * properties `tokens.css` lists to CSS values. The scope declares them on\n * its own element, as an override in `style` would be, with `style` winning\n * where the two set the same property.\n *\n * The values hold for both schemes. To give light and dark a value each,\n * keep two maps and hand the scope the one for the scheme in use.\n */\n theme?: KuiTheme | undefined;\n};\n\n// The container's class, the one thing it carries: it is made with\n// `createElement`, which takes no props.\nconst containerClassName = {\n className: \"x9f619 xjp7ctv\"\n}.className ?? '';\n\n/** The overlays' container, or nothing where there is no document. */\nfunction makeContainer() {\n if (typeof document === 'undefined') {\n return null;\n }\n const made = document.createElement('div');\n made.className = containerClassName;\n return made;\n}\n\n/**\n * Themes what is inside it, overlays included.\n *\n * A `--kui-*` override declared on the scope — through `theme`, `className`\n * or `style` — or on any element around it reaches every component inside,\n * where on any element but `<html>` it would otherwise reach none, since the\n * tokens resolve once on `:root`. Popovers, sheets, tooltips and toasts\n * opened inside portal into the scope rather than into the body, so they\n * follow it too. The rest of the page keeps its own tokens.\n *\n * ```tsx\n * const accent: KuiTheme = { '--kui-color-primary': '#7d5260' }\n *\n * <ThemeScope scheme=\"dark\" theme={accent}>\n * <Select label=\"Label\">…</Select>\n * </ThemeScope>\n * ```\n *\n * Because the overlays render inside the scope, an ancestor that confines\n * its descendants confines them too: a `transform` or a `filter` makes a\n * sheet's fixed scrim cover that ancestor rather than the viewport, and\n * `overflow: hidden` with a position clips a popover. Put the scope around\n * such an element rather than inside it.\n *\n * `render` swaps the element, for a scope that should be a `<main>`, a\n * `<section>`, an `<article>`, or the `<body>` itself — any element that\n * takes flow content, as a `<div>` does. The overlays' container is a\n * `<div>` added inside the scope's element, so an element whose content is\n * restricted — a list, whose children have to be list items, a paragraph,\n * or a part of a table — is not a scope: put the scope around it instead.\n *\n * That container comes after whatever the scope renders, and it has no box,\n * so layout never sees it, but selectors do. Inside the scope the last\n * element the call site rendered is not `:last-child` and is counted wrong\n * by `:nth-last-child()`, a lone child is not `:only-child`, and a scope\n * with nothing in it is not `:empty`. Key a rule like that on something of\n * the call site's own, such as a class, or put the scope around the element\n * whose children it counts.\n *\n * What reaches a scope from around it is the scheme and the `--kui-*`\n * properties. It resolves every token again from those two, so a theme\n * applied around it in any other way stops at its edge.\n */\nfunction ThemeScope({\n children,\n render,\n scheme,\n theme,\n ...props\n}: ThemeScopeProps) {\n // One container for the scope's life. A new element, as when `render`\n // changes the tag, has the same one moved into it rather than a new one\n // made, which would remount every open overlay.\n const [container] = useState(makeContainer);\n const isSSR = useIsSSR();\n const getContainer = useCallback(() => isSSR ? null : container, [container, isSSR]);\n\n // The scope's element is the template's parent. A template met again —\n // React hands the ref over again when it changes, and twice under strict\n // mode — has already left it, and finds no parent. The container is\n // appended only where it is not already, since moving a node blurs\n // whatever inside it has focus.\n const place = useCallback((marker: HTMLTemplateElement | null) => {\n const scope = marker?.parentElement ?? null;\n if (marker === null || scope === null || container === null) {\n return;\n }\n if (container.parentElement !== scope) {\n scope.append(container);\n }\n marker.remove();\n }, [container]);\n return useRender({\n defaultTagName: 'div',\n props: {\n ...props,\n ...mergeStyles(stylex.props(styles.root, tokenScope, scheme !== undefined && schemes[scheme], scheme !== undefined && pinnedScheme[scheme]), theme === undefined ? props : {\n ...props,\n style: {\n ...theme,\n ...props.style\n }\n }),\n children: <>\n {!isSSR && <template ref={place} />}\n <PortalProvider getContainer={getContainer}>\n {children}\n </PortalProvider>\n </>\n },\n render\n });\n}\n\n// kanso-ui-core's, re-exported. The package is a devDependency, so the build\n// writes the type's declaration into dist rather than an import of it, and\n// scripts/check-package.mjs fails a declaration that still names the package.\nexport type { KuiTheme } from '@kanso-labs/kanso-ui-core';\nexport type { ThemeScopeProps };\nexport { ThemeScope };"],"mappings":";;;;;;;;;;;;AA8DA,MAAMgB,SAAS,EACbC,MAAM;CACJC,QAAQ;CACRC,OAAO;AACT,EACF;AACA,MAAMC,UAAU;CACdC,MAAMR;CACNS,OAAOR;AACT;AAyBA,MAAMY,qBAAqB,EACzBC,WAAW,iBACb,EAAEA,aAAa;;AAGf,SAASC,gBAAgB;CACvB,IAAI,OAAOC,aAAa,aACtB,OAAO;CAET,MAAMC,OAAOD,SAASE,cAAc,KAAK;CACzCD,KAAKH,YAAYD;CACjB,OAAOI;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,SAAAE,WAAAC,IAAA;CAAA,MAAAC,IAAAjC,EAAA,EAAA;CAAoB,MAAA,EAAAkC,UAAAC,QAAAZ,QAAAC,OAAA,GAAAY,YAAAJ;CAUlB,MAAA,CAAAK,aAAoBjC,SAASuB,aAAa;CAC1C,MAAAW,QAAc/B,SAAS;CAAE,IAAAgC;CAAA,IAAAN,EAAA,OAAAI,aAAAJ,EAAA,OAAAK,OAAA;EACQC,WAAMD,QAAA,OAAAD;EAAwBJ,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAA/D,MAAAO,eAAqBD;CAAgE,IAAAE;CAAA,IAAAR,EAAA,OAAAI,WAAA;EAO3DI,MAAAC,WAAA;GACxB,MAAAC,QAAcD,QAAME,iBAAN;GACd,IAAIF,WAAW,QAAQC,UAAU,QAAQN,cAAc,MAAI;GAG3D,IAAIA,UAASO,kBAAmBD,OAC9BA,MAAKE,OAAQR,SAAS;GAExBK,OAAMI,OAAQ;EAAC;EAChBb,EAAA,KAAAI;EAAAJ,EAAA,KAAAQ;CAAA,OAAAA,KAAAR,EAAA;CATD,MAAAc,QAAcN;CAWI,MAAAO,KAAA;CAGX,MAAAC,KAAAvC,YAAYR,MAAaa,OAAMC,MAAOF,YAAYS,WAAW2B,KAAAA,KAAa/B,QAAQI,SAASA,WAAW2B,KAAAA,KAAavC,aAAaY,OAAO,GAAGC,UAAU0B,KAAAA,IAAVd,UAAA;EAAA,GACxIA;EAAKe,OACD;GAAA,GACF3B;GAAK,GACLY,QAAKe;EACV;CACF,CAAC;CAAC,IAAAC;CAAA,IAAAnB,EAAA,OAAAK,SAAAL,EAAA,OAAAc,OAAA;EAEGK,KAAA,CAACd,SAAS,oBAAA,YAAA,EAAeS,KAAAA,MAAK,CAAA;EAAId,EAAA,KAAAK;EAAAL,EAAA,KAAAc;EAAAd,EAAA,KAAAmB;CAAA,OAAAA,KAAAnB,EAAA;CAAA,IAAAoB;CAAA,IAAApB,EAAA,OAAAC,YAAAD,EAAA,OAAAO,cAAA;EACnCa,KAAA,oBAACQ,uBAAD;GAA8BrB;GAC3BN;EADY,CAAA;EAEED,EAAA,KAAAC;EAAAD,EAAA,KAAAO;EAAAP,EAAA,MAAAoB;CAAA,OAAAA,KAAApB,EAAA;CAAA,IAAAqB;CAAA,IAAArB,EAAA,QAAAmB,MAAAnB,EAAA,QAAAoB,IAAA;EAJXC,KAAA,qBAAA,YAAA,EAAA,UAAA,CACLF,IACDC,EAEiB,EAAA,CAAA;EAChBpB,EAAA,MAAAmB;EAAAnB,EAAA,MAAAoB;EAAApB,EAAA,MAAAqB;CAAA,OAAAA,KAAArB,EAAA;CAAA,IAAAsB;CAAA,IAAAtB,EAAA,QAAAG,WAAAH,EAAA,QAAAgB,MAAAhB,EAAA,QAAAqB,IAAA;EAdAC,KAAA;GAAA,GACFnB;GAAK,GACLa;GAMDf,UACQoB;EAMZ;EAACrB,EAAA,MAAAG;EAAAH,EAAA,MAAAgB;EAAAhB,EAAA,MAAAqB;EAAArB,EAAA,MAAAsB;CAAA,OAAAA,KAAAtB,EAAA;CAAA,IAAAuB;CAAA,IAAAvB,EAAA,QAAAE,UAAAF,EAAA,QAAAsB,IAAA;EAjBcC,KAAA;GAAAC,gBACCT;GAAKZ,OACdmB;GAeNpB;EAEH;EAACF,EAAA,MAAAE;EAAAF,EAAA,MAAAsB;EAAAtB,EAAA,MAAAuB;CAAA,OAAAA,KAAAvB,EAAA;CAAA,OAnBMxB,UAAU+C,EAmBhB;AAAC"}
1
+ {"version":3,"file":"theme-scope.js","names":["_c","stylex","useState","useIsSSR","useRender","mergeStyles","pinnedScheme","colorDefaultsDarkTheme","colorDefaultsLightTheme","tokenScope","styles","root","kB7OPa","$$css","schemes","dark","light","scheme","theme","containerClassName","className","makeContainer","document","made","createElement","ThemeScope","t0","$","children","render","props","container","isSSR","t1","getContainer","t2","marker","scope","parentElement","append","remove","place","t3","t4","undefined","style","t5","t6","t7","t8","t9","defaultTagName","PortalProvider"],"sources":["../src/theme-scope.tsx"],"sourcesContent":["'use client';\n\nimport type { KuiTheme } from '@kanso-labs/kanso-ui-core';\nimport * as stylex from '@stylexjs/stylex';\nimport { useCallback, useState } from 'react';\nimport { UNSAFE_PortalProvider as PortalProvider } from 'react-aria/PortalProvider';\nimport { useIsSSR } from 'react-aria/SSRProvider';\nimport type { RenderComponentProps } from './render/useRender';\nimport { useRender } from './render/useRender';\nimport { mergeStyles } from './styles/merge';\nimport { pinnedScheme } from './styles/scheme';\nimport { colorDefaultsDarkTheme, colorDefaultsLightTheme, tokenScope } from './tokens/design.tokens.stylex';\n\n// The component form of `themeScope` and `colorScheme` in ./color-scheme.ts:\n// the same classes, on an element of its own, plus the one thing a class\n// cannot do — take the overlays along. A pinned scheme paints the scope's\n// surface and sets its `color-scheme` too; see src/styles/scheme.ts.\n//\n// React Aria portals every overlay to the end of `<body>` unless a portal\n// provider names another container, so a popover, a sheet, a tooltip or a\n// toast opened inside a themed element renders outside it, and keeps the\n// tokens of the page. The container here is inside the scope's own element,\n// which is what makes the overlays inherit whatever the scope inherits: its\n// scheme, and the `--kui-*` overrides declared on it or on any element around\n// it. A container appended to the body and given the scope's classes would\n// carry the classes alone, losing every override declared above the scope.\n//\n// It is appended to the scope's element rather than rendered as one of its\n// children. A rendered `<div>` was a child of whatever the scope rendered as,\n// so a scope rendered as a `<p>` drew React's nesting error and a hydration\n// warning, and the server's markup held a `<div>` inside it. Appended, it is\n// in neither React's tree nor the server's markup.\n//\n// It has to be in place before anything inside the scope runs a layout\n// effect, which is earlier than the scope's own ref: React attaches an\n// element's ref once everything inside it has run its layout effects. An\n// overlay open on the scope's first render reads its own element in one of\n// those effects, once — React Aria decides there whether a popover is a\n// dialog, and hides or makes inert the page behind a modal — so an overlay\n// mounted a render late, or into a container not yet in the document, gets\n// those wrong for as long as it stays open: a hover popover kept a second,\n// unnamed dialog role around its own, and a sheet left the page behind it\n// reachable. So the container is made on the first render and handed out\n// from it, and a `<template>` rendered ahead of the children appends it,\n// since its ref attaches before anything after it runs an effect. The\n// template then removes itself, so the call site's children keep their\n// places for `:first-child` and `:nth-child`. React never inserts anything\n// before it and only ever removes it along with the scope's element, so\n// nothing reaches for it once it is gone.\n//\n// Nothing is handed out while the page hydrates, as React Aria hands out\n// nothing then either: the server rendered no overlay, so a portal would be\n// a mismatch. One open from the start renders once hydration is over, as it\n// would outside a scope.\n//\n// `display: contents` keeps that container out of the layout, so a scope\n// that is a grid or a flex container gains no item and no gap from it. React\n// Aria positions an overlay against the overlay's own containing block rather\n// than the container's box, so a container with no box of its own changes\n// nothing about where a popover lands. It is still an element, so a selector\n// that counts the scope's children counts it; the description below says\n// what that changes for a call site.\nconst styles = {\n root: {\n kB7OPa: \"x9f619\",\n $$css: true\n }\n};\nconst schemes = {\n dark: colorDefaultsDarkTheme,\n light: colorDefaultsLightTheme\n};\ntype ThemeScopeProps = RenderComponentProps<'div'> & {\n /**\n * Pins the scope to the library's light or dark scheme, whatever the\n * reader's OS asks for. A pinned scope paints its own surface and text in\n * that scheme and sets `color-scheme` for the native controls inside, so\n * it reads on any page. Left unset, the scope paints nothing and keeps the\n * scheme around it: the one an enclosing scope or a `colorScheme` class\n * pins, on the `<html>` element or nearer, or else the OS's.\n */\n scheme?: 'dark' | 'light' | undefined;\n /**\n * `--kui-*` overrides for everything inside, as a map of the custom\n * properties `tokens.css` lists to CSS values. The scope declares them on\n * its own element, as an override in `style` would be, with `style` winning\n * where the two set the same property.\n *\n * The values hold for both schemes. To give light and dark a value each,\n * keep two maps and hand the scope the one for the scheme in use.\n */\n theme?: KuiTheme | undefined;\n};\n\n// The container's class, the one thing it carries: it is made with\n// `createElement`, which takes no props.\nconst containerClassName = {\n className: \"x9f619 xjp7ctv\"\n}.className ?? '';\n\n/** The overlays' container, or nothing where there is no document. */\nfunction makeContainer() {\n if (typeof document === 'undefined') {\n return null;\n }\n const made = document.createElement('div');\n made.className = containerClassName;\n return made;\n}\n\n/**\n * Themes what is inside it, overlays included.\n *\n * A `--kui-*` override declared on the scope — through `theme`, `className`\n * or `style` — or on any element around it reaches every component inside,\n * where on any element but `<html>` it would otherwise reach none, since the\n * tokens resolve once on `:root`. Popovers, sheets, tooltips and toasts\n * opened inside portal into the scope rather than into the body, so they\n * follow it too. The rest of the page keeps its own tokens.\n *\n * ```tsx\n * const accent: KuiTheme = { '--kui-color-primary': '#7d5260' }\n *\n * <ThemeScope scheme=\"dark\" theme={accent}>\n * <Select label=\"Label\">…</Select>\n * </ThemeScope>\n * ```\n *\n * Because the overlays render inside the scope, an ancestor that confines\n * its descendants confines them too: a `transform` or a `filter` makes a\n * sheet's fixed scrim cover that ancestor rather than the viewport, and\n * `overflow: hidden` with a position clips a popover. Put the scope around\n * such an element rather than inside it.\n *\n * `render` swaps the element, for a scope that should be a `<main>`, a\n * `<section>`, an `<article>`, or the `<body>` itself — any element that\n * takes flow content, as a `<div>` does. The overlays' container is a\n * `<div>` added inside the scope's element, so an element whose content is\n * restricted — a list, whose children have to be list items, a paragraph,\n * or a part of a table — is not a scope: put the scope around it instead.\n *\n * That container comes after whatever the scope renders, and it has no box,\n * so layout never sees it, but selectors do. Inside the scope the last\n * element the call site rendered is not `:last-child` and is counted wrong\n * by `:nth-last-child()`, a lone child is not `:only-child`, and a scope\n * with nothing in it is not `:empty`. Key a rule like that on something of\n * the call site's own, such as a class, or put the scope around the element\n * whose children it counts.\n *\n * What reaches a scope from around it is the scheme and the `--kui-*`\n * properties. It resolves every token again from those two, so a theme\n * applied around it in any other way stops at its edge.\n */\nfunction ThemeScope({\n children,\n render,\n scheme,\n theme,\n ...props\n}: ThemeScopeProps) {\n // One container for the scope's life. A new element, as when `render`\n // changes the tag, has the same one moved into it rather than a new one\n // made, which would remount every open overlay.\n const [container] = useState(makeContainer);\n const isSSR = useIsSSR();\n const getContainer = useCallback(() => isSSR ? null : container, [container, isSSR]);\n\n // The scope's element is the template's parent. A template met again —\n // React hands the ref over again when it changes, and twice under strict\n // mode — has already left it, and finds no parent. The container is\n // appended only where it is not already, since moving a node blurs\n // whatever inside it has focus.\n const place = useCallback((marker: HTMLTemplateElement | null) => {\n const scope = marker?.parentElement ?? null;\n if (marker === null || scope === null || container === null) {\n return;\n }\n if (container.parentElement !== scope) {\n scope.append(container);\n }\n marker.remove();\n }, [container]);\n return useRender({\n defaultTagName: 'div',\n props: {\n ...props,\n ...mergeStyles(stylex.props(styles.root, tokenScope, scheme !== undefined && schemes[scheme], scheme !== undefined && pinnedScheme[scheme]), theme === undefined ? props : {\n ...props,\n style: {\n ...theme,\n ...props.style\n }\n }),\n children: <>\n {!isSSR && <template ref={place} />}\n <PortalProvider getContainer={getContainer}>\n {children}\n </PortalProvider>\n </>\n },\n render\n });\n}\n\n// kanso-ui-core's, re-exported. The package is a devDependency, so the build\n// writes the type's declaration into dist rather than an import of it, and\n// scripts/check-package.mjs fails a declaration that still names the package.\nexport type { KuiTheme } from '@kanso-labs/kanso-ui-core';\nexport type { ThemeScopeProps };\nexport { ThemeScope };"],"mappings":";;;;;;;;;;;;AA8DA,MAAMU,SAAS,EACbC,MAAM;CACJC,QAAQ;CACRC,OAAO;AACT,EACF;AACA,MAAMC,UAAU;CACdC,MAAMR;CACNS,OAAOR;AACT;AAyBA,MAAMW,qBAAqB,EACzBC,WAAW,iBACb,EAAEA,aAAa;;AAGf,SAASC,gBAAgB;CACvB,IAAI,OAAOC,aAAa,aACtB,OAAO;CAET,MAAMC,OAAOD,SAASE,cAAc,KAAK;CACzCD,KAAKH,YAAYD;CACjB,OAAOI;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,SAAAE,WAAAC,IAAA;CAAA,MAAAC,IAAA3B,EAAA,EAAA;CAAoB,MAAA,EAAA4B,UAAAC,QAAAZ,QAAAC,OAAA,GAAAY,YAAAJ;CAUlB,MAAA,CAAAK,aAAoB7B,SAASmB,aAAa;CAC1C,MAAAW,QAAc7B,SAAS;CAAE,IAAA8B;CAAA,IAAAN,EAAA,OAAAI,aAAAJ,EAAA,OAAAK,OAAA;EACQC,WAAMD,QAAA,OAAAD;EAAwBJ,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAA/D,MAAAO,eAAqBD;CAAgE,IAAAE;CAAA,IAAAR,EAAA,OAAAI,WAAA;EAO3DI,MAAAC,WAAA;GACxB,MAAAC,QAAcD,QAAME,iBAAN;GACd,IAAIF,WAAW,QAAQC,UAAU,QAAQN,cAAc,MAAI;GAG3D,IAAIA,UAASO,kBAAmBD,OAC9BA,MAAKE,OAAQR,SAAS;GAExBK,OAAMI,OAAQ;EAAC;EAChBb,EAAA,KAAAI;EAAAJ,EAAA,KAAAQ;CAAA,OAAAA,KAAAR,EAAA;CATD,MAAAc,QAAcN;CAWI,MAAAO,KAAA;CAGX,MAAAC,KAAAtC,YAAYJ,MAAaS,OAAMC,MAAOF,YAAYQ,WAAW2B,KAAAA,KAAa9B,QAAQG,SAASA,WAAW2B,KAAAA,KAAatC,aAAaW,OAAO,GAAGC,UAAU0B,KAAAA,IAAVd,UAAA;EAAA,GACxIA;EAAKe,OACD;GAAA,GACF3B;GAAK,GACLY,QAAKe;EACV;CACF,CAAC;CAAC,IAAAC;CAAA,IAAAnB,EAAA,OAAAK,SAAAL,EAAA,OAAAc,OAAA;EAEGK,KAAA,CAACd,SAAS,oBAAA,YAAA,EAAeS,KAAAA,MAAK,CAAA;EAAId,EAAA,KAAAK;EAAAL,EAAA,KAAAc;EAAAd,EAAA,KAAAmB;CAAA,OAAAA,KAAAnB,EAAA;CAAA,IAAAoB;CAAA,IAAApB,EAAA,OAAAC,YAAAD,EAAA,OAAAO,cAAA;EACnCa,KAAA,oBAACK,uBAAD;GAA8BlB;GAC3BN;EADY,CAAA;EAEED,EAAA,KAAAC;EAAAD,EAAA,KAAAO;EAAAP,EAAA,MAAAoB;CAAA,OAAAA,KAAApB,EAAA;CAAA,IAAAqB;CAAA,IAAArB,EAAA,QAAAmB,MAAAnB,EAAA,QAAAoB,IAAA;EAJXC,KAAA,qBAAA,YAAA,EAAA,UAAA,CACLF,IACDC,EAEiB,EAAA,CAAA;EAChBpB,EAAA,MAAAmB;EAAAnB,EAAA,MAAAoB;EAAApB,EAAA,MAAAqB;CAAA,OAAAA,KAAArB,EAAA;CAAA,IAAAsB;CAAA,IAAAtB,EAAA,QAAAG,WAAAH,EAAA,QAAAgB,MAAAhB,EAAA,QAAAqB,IAAA;EAdAC,KAAA;GAAA,GACFnB;GAAK,GACLa;GAMDf,UACQoB;EAMZ;EAACrB,EAAA,MAAAG;EAAAH,EAAA,MAAAgB;EAAAhB,EAAA,MAAAqB;EAAArB,EAAA,MAAAsB;CAAA,OAAAA,KAAAtB,EAAA;CAAA,IAAAuB;CAAA,IAAAvB,EAAA,QAAAE,UAAAF,EAAA,QAAAsB,IAAA;EAjBcC,KAAA;GAAAC,gBACCT;GAAKZ,OACdmB;GAeNpB;EAEH;EAACF,EAAA,MAAAE;EAAAF,EAAA,MAAAsB;EAAAtB,EAAA,MAAAuB;CAAA,OAAAA,KAAAvB,EAAA;CAAA,OAnBMvB,UAAU8C,EAmBhB;AAAC"}