@kanso-labs/kanso-ui 0.47.4 → 0.48.0

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 (82) hide show
  1. package/dist/button/hooks.js +35 -1
  2. package/dist/button/hooks.js.map +1 -1
  3. package/dist/button/index.js +78 -65
  4. package/dist/button/index.js.map +1 -1
  5. package/dist/calendar/styles.js +5 -5
  6. package/dist/calendar/styles.js.map +1 -1
  7. package/dist/chip/styles.js +1 -1
  8. package/dist/chip/styles.js.map +1 -1
  9. package/dist/collection/context.js +6 -0
  10. package/dist/collection/context.js.map +1 -0
  11. package/dist/collection/styles.js +29 -6
  12. package/dist/collection/styles.js.map +1 -1
  13. package/dist/components/button/index.js.map +1 -1
  14. package/dist/components/calendar/index.js +7 -0
  15. package/dist/components/calendar/index.js.map +1 -1
  16. package/dist/components/checkbox/index.js +10 -7
  17. package/dist/components/checkbox/index.js.map +1 -1
  18. package/dist/components/checkbox-group/index.js +2 -1
  19. package/dist/components/checkbox-group/index.js.map +1 -1
  20. package/dist/components/chip-group/index.js +69 -66
  21. package/dist/components/chip-group/index.js.map +1 -1
  22. package/dist/components/color-swatch-picker/index.js +1 -0
  23. package/dist/components/color-swatch-picker/index.js.map +1 -1
  24. package/dist/components/combo-box/index.js +5 -1
  25. package/dist/components/combo-box/index.js.map +1 -1
  26. package/dist/components/drop-zone/styles.js +11 -11
  27. package/dist/components/drop-zone/styles.js.map +1 -1
  28. package/dist/components/fab-menu/index.js +3 -3
  29. package/dist/components/fab-menu/index.js.map +1 -1
  30. package/dist/components/icon-button/index.js.map +1 -1
  31. package/dist/components/list/index.js +58 -11
  32. package/dist/components/list/index.js.map +1 -1
  33. package/dist/components/list-box/index.js +82 -103
  34. package/dist/components/list-box/index.js.map +1 -1
  35. package/dist/components/navigation-rail/index.js +4 -4
  36. package/dist/components/navigation-rail/index.js.map +1 -1
  37. package/dist/components/number-field/index.js +3 -3
  38. package/dist/components/number-field/index.js.map +1 -1
  39. package/dist/components/popover/index.js +3 -3
  40. package/dist/components/popover/index.js.map +1 -1
  41. package/dist/components/radio-group/index.js +12 -11
  42. package/dist/components/radio-group/index.js.map +1 -1
  43. package/dist/components/search-field/index.js +4 -4
  44. package/dist/components/search-field/index.js.map +1 -1
  45. package/dist/components/select/index.js +5 -1
  46. package/dist/components/select/index.js.map +1 -1
  47. package/dist/components/sheet/index.js +1 -1
  48. package/dist/components/sheet/index.js.map +1 -1
  49. package/dist/components/slider/index.js +2 -2
  50. package/dist/components/slider/index.js.map +1 -1
  51. package/dist/components/snackbar/index.js +3 -3
  52. package/dist/components/snackbar/index.js.map +1 -1
  53. package/dist/components/split-button/index.js +53 -41
  54. package/dist/components/split-button/index.js.map +1 -1
  55. package/dist/components/table/index.js +58 -45
  56. package/dist/components/table/index.js.map +1 -1
  57. package/dist/components/tabs/index.js +81 -30
  58. package/dist/components/tabs/index.js.map +1 -1
  59. package/dist/components/time-picker/index.js +5 -5
  60. package/dist/components/time-picker/index.js.map +1 -1
  61. package/dist/components/tree/index.js +78 -21
  62. package/dist/components/tree/index.js.map +1 -1
  63. package/dist/field/index.js +103 -104
  64. package/dist/field/index.js.map +1 -1
  65. package/dist/field/styles.js +1 -1
  66. package/dist/field/styles.js.map +1 -1
  67. package/dist/hooks/useScrollEdges.js +73 -0
  68. package/dist/hooks/useScrollEdges.js.map +1 -0
  69. package/dist/navigation/styles.js +5 -5
  70. package/dist/navigation/styles.js.map +1 -1
  71. package/dist/row/styles.js +7 -7
  72. package/dist/row/styles.js.map +1 -1
  73. package/dist/styles/color.js +16 -16
  74. package/dist/styles/color.js.map +1 -1
  75. package/dist/styles/focus.js +4 -4
  76. package/dist/styles/focus.js.map +1 -1
  77. package/dist/styles/overlay.js +3 -3
  78. package/dist/styles/overlay.js.map +1 -1
  79. package/dist/styles/scroll-fade.js +33 -0
  80. package/dist/styles/scroll-fade.js.map +1 -0
  81. package/dist/styles.css +61 -20
  82. package/package.json +9 -9
@@ -52,7 +52,7 @@ const navigationItemStyles = {
52
52
  $$css: true
53
53
  },
54
54
  ringWeight: {
55
- kMeerF: "x1de99jn xlqle6p",
55
+ kMeerF: "x1s780dp x1uvpp8k",
56
56
  $$css: true
57
57
  }
58
58
  };
@@ -123,10 +123,10 @@ const barItemStyles = {
123
123
  $$css: true
124
124
  },
125
125
  indicatorRing: {
126
- kjBf7l: "xrgy624",
126
+ kjBf7l: "xat36cu",
127
127
  kInvED: "x1hl8ikr",
128
128
  k3XXqK: "xaatb59 x1t601oj",
129
- kMeerF: "x1de99jn",
129
+ kMeerF: "x1s780dp",
130
130
  $$css: true
131
131
  },
132
132
  item: {
@@ -180,10 +180,10 @@ const barItemStyles = {
180
180
  $$css: true
181
181
  },
182
182
  itemRing: {
183
- kjBf7l: "xrgy624",
183
+ kjBf7l: "xat36cu",
184
184
  kInvED: "x1hl8ikr",
185
185
  k3XXqK: "x1t137rt xxgb522",
186
- kMeerF: "x1de99jn",
186
+ kMeerF: "x1s780dp",
187
187
  $$css: true
188
188
  },
189
189
  label: {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["colors","stateLayerOpacity","onSecondaryContainer","hover","focus","pressed","secondaryContainer","navigationItemStyles","fade","kIyJzY","k1ekBW","kAMwcw","$$css","icon","kGNEyG","k1xSpc","kGuDYH","kjj79g","itemDisabled","kMwMTN","kkrTdU","label","kXHlph","kORKVm","kg5iWk","khDVqt","link","kB7OPa","k3XXqK","kVAEAm","kMnn75","pill","kWkggS","kaIpWk","ringWeight","kMeerF","navigationListStyles","item","list","kH6xsr","kogj98","kmVPX3","barItemStyles","badgeMark","kSGwAc","kLqNvP","keTefX","indicator","kZKoxP","kmuXW","kzqmXN","indicatorCurrent","kVAM5u","ksu8eU","kMzoRj","indicatorFocused","indicatorFocusedCurrent","indicatorHovered","indicatorHoveredCurrent","indicatorPressed","indicatorPressedCurrent","indicatorRing","kjBf7l","kInvED","k5JduY","kSy8m5","kcktkL","kwXMNM","kCS8Yb","kXwgrk","kzQI83","kOIVth","kqGvvJ","kAzted","k7Eaqz","k8WAf4","kg3NbH","itemCurrent","itemFocused","itemFocusedCurrent","itemHovered","itemHoveredCurrent","itemPressed","itemPressedCurrent","itemRing","kMv6JI","k63SB2","kb6lSQ","kLWn49","ks0D6T","labelCurrent","labelWhole","kE4Cay","kHjlTd","k9WMMc","listItem","collapsedItemStyles","expandedItemStyles","crampedBarItemStyles"],"sources":["../../src/navigation/styles.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors, media, motion, radii, spacing, stateLayerOpacity, typography } from '../tokens/design.tokens.stylex';\n\n// The destinations NavigationBar and NavigationRail both draw, in the three\n// forms the two pages give them. Apart from either component so the two\n// cannot drift, and outside `src/components` for the reason src/row gives.\n//\n// A vertical destination puts its icon in the page's 56dp by 32dp active\n// indicator with the label 4dp under it, in label medium: the navigation bar\n// below the medium breakpoint, and the collapsed rail. A horizontal one is a\n// pill holding the icon and the label side by side, 16dp in at either end:\n// the bar at and above the medium breakpoint at 40dp with 4dp between the\n// two, and the expanded rail at 56dp with 8dp between them, in label large.\n//\n// The current destination's pill is the secondary container, with its icon\n// in on secondary container and, under the pill, its label in secondary;\n// every other is on surface variant. A label set inside the pill, as a\n// horizontal destination sets it, takes on secondary container instead — the\n// library's own call. Secondary over secondary container is not a pair a\n// scheme is held to, and the Poster scheme's came to 4:1, short of the 4.5:1\n// text needs; on secondary container is the pair every scheme guarantees.\n//\n// The hover, focus and pressed layers are the on secondary container role\n// over whatever the pill is, at the pages' 8%, 10% and 10%, drawn on the\n// pill — the indicator in a vertical destination, the whole destination in a\n// horizontal one. They are applied in that order, so where two hold the\n// later wins, as the pages draw one layer at a time. A focused destination's\n// ring goes around the same pill; ./index.tsx says whose ring it is.\n//\n// A change from one of those states to another fades, over the pages' short\n// duration on the standard curve, rather than landing in one frame. A press\n// also draws the library's ripple over the pressed layer, clipped to the\n// pill: inside the indicator in a vertical destination, which positions it,\n// and across the whole destination in a horizontal one, whose indicator is\n// left unpositioned so the ripple fills the link and takes the indicator's\n// pill corner.\n//\n// Under forced colours the mode paints the secondary container over in its\n// background, which left the current destination looking like every other.\n// The pill takes a 2px border in `Highlight` there, which the mode keeps,\n// and a focused destination's ring doubles its weight, so the two marks\n// differ in shape and not in colour alone — see `ringWeight`.\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 pill's ground and the layers over it, written out whole for each\n// ground, since StyleX replaces a property whole.\nconst HOVERED_OVER_NOTHING = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.hover} * 100%), transparent)`;\nconst FOCUSED_OVER_NOTHING = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.focus} * 100%), transparent)`;\nconst PRESSED_OVER_NOTHING = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.pressed} * 100%), transparent)`;\nconst HOVERED_OVER_CURRENT = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.hover} * 100%), ${colors.secondaryContainer})`;\nconst FOCUSED_OVER_CURRENT = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.focus} * 100%), ${colors.secondaryContainer})`;\nconst PRESSED_OVER_CURRENT = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.pressed} * 100%), ${colors.secondaryContainer})`;\n\n// What every destination draws whatever its form.\nconst navigationItemStyles = {\n fade: {\n kIyJzY: \"x1qno0dh x12w9bfk\",\n k1ekBW: \"xs2xxs2\",\n kAMwcw: \"xpc4ca7\",\n $$css: true\n },\n icon: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kGuDYH: \"x1pvqxga\",\n kjj79g: \"xl56j7k\",\n $$css: true\n },\n itemDisabled: {\n kMwMTN: \"x1gpw424 x1bhcspo\",\n kkrTdU: \"xt0e3qv\",\n $$css: true\n },\n label: {\n kMwMTN: \"x1w5n3ug\",\n kXHlph: \"x101abm8\",\n kORKVm: \"xryxfnj\",\n kg5iWk: \"xlyipyv\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n link: {\n kGNEyG: \"x6s0dn4\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x78zum5\",\n k3XXqK: \"x1t137rt\",\n kVAEAm: \"x1n2onr6\",\n kMnn75: \"xkrqix3\",\n $$css: true\n },\n pill: {\n kWkggS: \"xjbqb8w\",\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n $$css: true\n },\n ringWeight: {\n kMeerF: \"x1de99jn xlqle6p\",\n $$css: true\n }\n};\n\n// The list a bar or a rail holds its destinations in, and the item each\n// destination sits in — see `NavigationList` in ./index.tsx. The list clears\n// the margin, padding and markers a `<ul>` comes with, and each form gives\n// the space between its destinations as its `list`. The item takes the\n// destination's place in the bar's row or the rail's column, which each form\n// gives as its `listItem`, and the link fills it.\nconst navigationListStyles = {\n item: {\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n $$css: true\n },\n list: {\n kB7OPa: \"x9f619\",\n kH6xsr: \"x3ct3a4\",\n kogj98: \"x1ghz6dp\",\n kmVPX3: \"x1717udv\",\n $$css: true\n }\n};\n\n// The pages' least touch target, which a horizontal bar destination's 40dp\n// pill falls short of.\nconst TARGET_SIZE = '48px';\n\n// The navigation bar page's 64dp row, and the 40dp pill a horizontal\n// destination draws inside it.\nconst BAR_ROW = '64px';\nconst PILL = '40px';\n\n// The navigation bar's destination: vertical below the medium breakpoint and\n// horizontal at it and above, so every value that differs is a pair.\nconst barItemStyles = {\n badgeMark: {\n kSGwAc: \"xcspwbw\",\n kLqNvP: \"xty0069 x19sl9hu\",\n keTefX: \"xhi6r6q\",\n kVAEAm: \"x10l6tqk x15m4ytg\",\n $$css: true\n },\n indicator: {\n kGNEyG: \"x6s0dn4\",\n kZKoxP: \"x10w6t97 x10qpgbh\",\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n kzqmXN: \"x15yg21f x11lewyt\",\n kjj79g: \"xl56j7k\",\n kVAEAm: \"x1n2onr6 xtke4eg\",\n $$css: true\n },\n indicatorCurrent: {\n kWkggS: \"x15dekr4 x8jqrm0\",\n kVAM5u: \"x1n2ykn\",\n ksu8eU: \"xx61lck xnqlxux\",\n kMzoRj: \"x2h6xq1\",\n kMwMTN: \"x1sawysd\",\n $$css: true\n },\n indicatorFocused: {\n kWkggS: \"x1syr9su x8jqrm0\",\n $$css: true\n },\n indicatorFocusedCurrent: {\n kWkggS: \"x1s5x49g x8jqrm0\",\n $$css: true\n },\n indicatorHovered: {\n kWkggS: \"x173luhf x8jqrm0\",\n $$css: true\n },\n indicatorHoveredCurrent: {\n kWkggS: \"x1fctxn6 x8jqrm0\",\n $$css: true\n },\n indicatorPressed: {\n kWkggS: \"x1rydsgj x8jqrm0\",\n $$css: true\n },\n indicatorPressedCurrent: {\n kWkggS: \"xzpauq9 x8jqrm0\",\n $$css: true\n },\n indicatorRing: {\n kjBf7l: \"xrgy624\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"xaatb59 x1t601oj\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n item: {\n k5JduY: \"x1ktxc2h\",\n kSy8m5: \"xfmxh57\",\n kcktkL: \"xb7ltuz\",\n kwXMNM: \"x1j6awrg\",\n kZKoxP: \"xiioxts\",\n kaIpWk: \"x1dkaolv\",\n kCS8Yb: \"x1r8uery x1a6ly76\",\n kXwgrk: \"xdt5ytf xapwh9g\",\n kzQI83: \"x1iyjqo2 x10cb59y\",\n kOIVth: \"xzoy561\",\n kjj79g: \"xl56j7k\",\n kqGvvJ: \"x10im51j xap7i12\",\n kAzted: \"x8nclml xtyuij1\",\n k7Eaqz: \"xeuugli\",\n k8WAf4: \"x1t0vds8 x1nouyz5\",\n kg3NbH: \"ximhkdq xze1m75\",\n $$css: true\n },\n itemCurrent: {\n kWkggS: \"xjbqb8w x1xec0pq\",\n kVAM5u: \"x1n2ykn\",\n ksu8eU: \"x1xldtvv x1wx4lrg\",\n kMzoRj: \"x2h6xq1\",\n $$css: true\n },\n itemFocused: {\n kWkggS: \"xjbqb8w xdodzsd\",\n $$css: true\n },\n itemFocusedCurrent: {\n kWkggS: \"xjbqb8w xnmt8re\",\n $$css: true\n },\n itemHovered: {\n kWkggS: \"xjbqb8w xdenq60\",\n $$css: true\n },\n itemHoveredCurrent: {\n kWkggS: \"xjbqb8w xjq3nej\",\n $$css: true\n },\n itemPressed: {\n kWkggS: \"xjbqb8w x7fq6vu\",\n $$css: true\n },\n itemPressedCurrent: {\n kWkggS: \"xjbqb8w x9wewpu\",\n $$css: true\n },\n itemRing: {\n kjBf7l: \"xrgy624\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"x1t137rt xxgb522\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n label: {\n kMv6JI: \"xp6n8n2\",\n kGuDYH: \"xkucv67\",\n k63SB2: \"x14hhc5u\",\n kb6lSQ: \"x12utw95\",\n kLWn49: \"xvzb9hk\",\n ks0D6T: \"x193iq5w\",\n $$css: true\n },\n labelCurrent: {\n kMwMTN: \"xzakmg9 x16ybrrz\",\n $$css: true\n },\n labelWhole: {\n kE4Cay: \"xkjl1po\",\n kHjlTd: \"xj0a0fe\",\n k9WMMc: \"x2b8uid\",\n khDVqt: \"xeaf4i8 x17j4zob\",\n $$css: true\n },\n list: {\n kOIVth: \"xxhr3t x110hqo6\",\n $$css: true\n },\n listItem: {\n kCS8Yb: \"x1r8uery x1a6ly76\",\n kzQI83: \"x1iyjqo2 x10cb59y\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n }\n};\n\n// The collapsed rail's destination: always vertical, the pitch from one to\n// the next the rail's 4dp gap.\nconst collapsedItemStyles = {\n badgeMark: {\n $$css: true\n },\n indicator: {\n kGNEyG: \"x6s0dn4\",\n kZKoxP: \"x10w6t97\",\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n kzqmXN: \"x15yg21f\",\n kjj79g: \"xl56j7k\",\n kVAEAm: \"x1n2onr6\",\n $$css: true\n },\n indicatorCurrent: {\n kWkggS: \"x15dekr4\",\n kVAM5u: \"x1n2ykn\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x2h6xq1\",\n kMwMTN: \"x1sawysd\",\n $$css: true\n },\n indicatorFocused: {\n kWkggS: \"x1syr9su\",\n $$css: true\n },\n indicatorFocusedCurrent: {\n kWkggS: \"x1s5x49g\",\n $$css: true\n },\n indicatorHovered: {\n kWkggS: \"x173luhf\",\n $$css: true\n },\n indicatorHoveredCurrent: {\n kWkggS: \"x1fctxn6\",\n $$css: true\n },\n indicatorPressed: {\n kWkggS: \"x1rydsgj\",\n $$css: true\n },\n indicatorPressedCurrent: {\n kWkggS: \"xzpauq9\",\n $$css: true\n },\n item: {\n kXwgrk: \"xdt5ytf\",\n kmuXW: \"x2lah0s\",\n kOIVth: \"xzoy561\",\n kzqmXN: \"xh8yej3\",\n kjj79g: \"xl56j7k\",\n k8WAf4: \"x1t0vds8\",\n kg3NbH: \"ximhkdq\",\n $$css: true\n },\n itemCurrent: {\n $$css: true\n },\n itemFocused: {\n $$css: true\n },\n itemFocusedCurrent: {\n $$css: true\n },\n itemHovered: {\n $$css: true\n },\n itemHoveredCurrent: {\n $$css: true\n },\n itemPressed: {\n $$css: true\n },\n itemPressedCurrent: {\n $$css: true\n },\n label: {\n kMv6JI: \"xp6n8n2\",\n kGuDYH: \"xkucv67\",\n k63SB2: \"x14hhc5u\",\n kb6lSQ: \"x12utw95\",\n kLWn49: \"xvzb9hk\",\n ks0D6T: \"x193iq5w\",\n $$css: true\n },\n labelCurrent: {\n kMwMTN: \"xzakmg9\",\n $$css: true\n },\n labelWhole: {\n kE4Cay: \"xkjl1po\",\n kHjlTd: \"xj0a0fe\",\n k9WMMc: \"x2b8uid\",\n khDVqt: \"xeaf4i8\",\n $$css: true\n },\n list: {\n kOIVth: \"xzoy561\",\n $$css: true\n },\n listItem: {\n kmuXW: \"x2lah0s\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n }\n};\n\n// The expanded rail's destination: always horizontal, a 56dp pill as wide as\n// what it holds.\nconst expandedItemStyles = {\n badgeMark: {\n kSGwAc: \"xqcrz7y\",\n kLqNvP: \"x1o0tod\",\n keTefX: \"x18xomjl\",\n kVAEAm: \"x1n2onr6\",\n $$css: true\n },\n indicator: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n indicatorCurrent: {\n kMwMTN: \"x1sawysd\",\n $$css: true\n },\n indicatorFocused: {\n $$css: true\n },\n indicatorFocusedCurrent: {\n $$css: true\n },\n indicatorHovered: {\n $$css: true\n },\n indicatorHoveredCurrent: {\n $$css: true\n },\n indicatorPressed: {\n $$css: true\n },\n indicatorPressedCurrent: {\n $$css: true\n },\n item: {\n kSGwAc: \"xqcrz7y\",\n kZKoxP: \"xnnlda6\",\n kaIpWk: \"x1dkaolv\",\n kXwgrk: \"x1q0g3np\",\n kmuXW: \"x2lah0s\",\n kOIVth: \"x126z3so\",\n ks0D6T: \"x193iq5w\",\n kg3NbH: \"x790zyz\",\n $$css: true\n },\n itemCurrent: {\n kWkggS: \"x15dekr4\",\n kVAM5u: \"x1n2ykn\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x2h6xq1\",\n $$css: true\n },\n itemFocused: {\n kWkggS: \"x1syr9su\",\n $$css: true\n },\n itemFocusedCurrent: {\n kWkggS: \"x1s5x49g\",\n $$css: true\n },\n itemHovered: {\n kWkggS: \"x173luhf\",\n $$css: true\n },\n itemHoveredCurrent: {\n kWkggS: \"x1fctxn6\",\n $$css: true\n },\n itemPressed: {\n kWkggS: \"x1rydsgj\",\n $$css: true\n },\n itemPressedCurrent: {\n kWkggS: \"xzpauq9\",\n $$css: true\n },\n label: {\n kMv6JI: \"xkknnkr\",\n kGuDYH: \"x14zspaw\",\n k63SB2: \"x1v9cpvo\",\n kb6lSQ: \"x155f00i\",\n kLWn49: \"x1lz68p4\",\n $$css: true\n },\n labelCurrent: {\n kMwMTN: \"x1sawysd\",\n $$css: true\n },\n labelWhole: {\n $$css: true\n },\n list: {\n $$css: true\n },\n listItem: {\n kSGwAc: \"xqcrz7y\",\n kmuXW: \"x2lah0s\",\n ks0D6T: \"x193iq5w\",\n $$css: true\n }\n};\n\n// The bar's destination when the bar is too narrow for its horizontal form\n// at a width that would otherwise draw it — see NavigationBar. Vertical at\n// every width: the bar's own vertical item, with the collapsed rail's\n// indicator, label and badge placement, which are the bar's vertical ones.\nconst crampedBarItemStyles = {\n item: {\n kZKoxP: \"x5yr21d\",\n kaIpWk: \"x1dkaolv\",\n kCS8Yb: \"x1r8uery\",\n kXwgrk: \"xdt5ytf\",\n kzQI83: \"x1iyjqo2\",\n kOIVth: \"xzoy561\",\n kjj79g: \"xl56j7k\",\n k7Eaqz: \"xeuugli\",\n k8WAf4: \"x1t0vds8\",\n kg3NbH: \"xnjsko4\",\n $$css: true\n },\n list: {\n kOIVth: \"xxhr3t\",\n $$css: true\n },\n listItem: {\n kCS8Yb: \"x1r8uery\",\n kzQI83: \"x1iyjqo2\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n }\n};\nexport { barItemStyles, collapsedItemStyles, crampedBarItemStyles, expandedItemStyles, navigationItemStyles, navigationListStyles };"],"mappings":";;AAoD6B,GAAsBA,OAAOE,uBAA6BD,kBAAkBE;AAC5E,GAAsBH,OAAOE,uBAA6BD,kBAAkBG;AAC5E,GAAsBJ,OAAOE,uBAA6BD,kBAAkBI;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AAO;CACT;CACAsE,aAAa;EACXlD,QAAQ;EACRpB,OAAO;CACT;CACAuE,oBAAoB;EAClBnD,QAAQ;EACRpB,OAAO;CACT;CACAS,OAAO;EACLgE,QAAQ;EACRrE,QAAQ;EACRsE,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACR5E,OAAO;CACT;CACA8E,cAAc;EACZvE,QAAQ;EACRP,OAAO;CACT;CACA+E,YAAY,EACV/E,OAAO,KACT;CACA0B,MAAM,EACJ1B,OAAO,KACT;CACAmF,UAAU;EACRnD,QAAQ;EACRK,OAAO;EACPwC,QAAQ;EACR7E,OAAO;CACT;AACF;AAMA,MAAMsF,uBAAuB;CAC3B7D,MAAM;EACJW,QAAQ;EACRf,QAAQ;EACRmC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRtD,QAAQ;EACRyD,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRhE,OAAO;CACT;CACA0B,MAAM;EACJiC,QAAQ;EACR3D,OAAO;CACT;CACAmF,UAAU;EACR3B,QAAQ;EACRE,QAAQ;EACRI,QAAQ;EACR9D,OAAO;CACT;AACF"}
1
+ {"version":3,"file":"styles.js","names":["colors","stateLayerOpacity","onSecondaryContainer","hover","focus","pressed","secondaryContainer","navigationItemStyles","fade","kIyJzY","k1ekBW","kAMwcw","$$css","icon","kGNEyG","k1xSpc","kGuDYH","kjj79g","itemDisabled","kMwMTN","kkrTdU","label","kXHlph","kORKVm","kg5iWk","khDVqt","link","kB7OPa","k3XXqK","kVAEAm","kMnn75","pill","kWkggS","kaIpWk","ringWeight","kMeerF","navigationListStyles","item","list","kH6xsr","kogj98","kmVPX3","barItemStyles","badgeMark","kSGwAc","kLqNvP","keTefX","indicator","kZKoxP","kmuXW","kzqmXN","indicatorCurrent","kVAM5u","ksu8eU","kMzoRj","indicatorFocused","indicatorFocusedCurrent","indicatorHovered","indicatorHoveredCurrent","indicatorPressed","indicatorPressedCurrent","indicatorRing","kjBf7l","kInvED","k5JduY","kSy8m5","kcktkL","kwXMNM","kCS8Yb","kXwgrk","kzQI83","kOIVth","kqGvvJ","kAzted","k7Eaqz","k8WAf4","kg3NbH","itemCurrent","itemFocused","itemFocusedCurrent","itemHovered","itemHoveredCurrent","itemPressed","itemPressedCurrent","itemRing","kMv6JI","k63SB2","kb6lSQ","kLWn49","ks0D6T","labelCurrent","labelWhole","kE4Cay","kHjlTd","k9WMMc","listItem","collapsedItemStyles","expandedItemStyles","crampedBarItemStyles"],"sources":["../../src/navigation/styles.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { colors, media, motion, radii, spacing, stateLayerOpacity, typography } from '../tokens/design.tokens.stylex';\n\n// The destinations NavigationBar and NavigationRail both draw, in the three\n// forms the two pages give them. Apart from either component so the two\n// cannot drift, and outside `src/components` for the reason src/row gives.\n//\n// A vertical destination puts its icon in the page's 56dp by 32dp active\n// indicator with the label 4dp under it, in label medium: the navigation bar\n// below the medium breakpoint, and the collapsed rail. A horizontal one is a\n// pill holding the icon and the label side by side, 16dp in at either end:\n// the bar at and above the medium breakpoint at 40dp with 4dp between the\n// two, and the expanded rail at 56dp with 8dp between them, in label large.\n//\n// The current destination's pill is the secondary container, with its icon\n// in on secondary container and, under the pill, its label in secondary;\n// every other is on surface variant. A label set inside the pill, as a\n// horizontal destination sets it, takes on secondary container instead — the\n// library's own call. Secondary over secondary container is not a pair a\n// scheme is held to, and the Poster scheme's came to 4:1, short of the 4.5:1\n// text needs; on secondary container is the pair every scheme guarantees.\n//\n// The hover, focus and pressed layers are the on secondary container role\n// over whatever the pill is, at the pages' 8%, 10% and 10%, drawn on the\n// pill — the indicator in a vertical destination, the whole destination in a\n// horizontal one. They are applied in that order, so where two hold the\n// later wins, as the pages draw one layer at a time. A focused destination's\n// ring goes around the same pill; ./index.tsx says whose ring it is.\n//\n// A change from one of those states to another fades, over the pages' short\n// duration on the standard curve, rather than landing in one frame. A press\n// also draws the library's ripple over the pressed layer, clipped to the\n// pill: inside the indicator in a vertical destination, which positions it,\n// and across the whole destination in a horizontal one, whose indicator is\n// left unpositioned so the ripple fills the link and takes the indicator's\n// pill corner.\n//\n// Under forced colours the mode paints the secondary container over in its\n// background, which left the current destination looking like every other.\n// The pill takes a 2px border in `Highlight` there, which the mode keeps,\n// and a focused destination's ring doubles its weight, so the two marks\n// differ in shape and not in colour alone — see `ringWeight`.\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 pill's ground and the layers over it, written out whole for each\n// ground, since StyleX replaces a property whole.\nconst HOVERED_OVER_NOTHING = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.hover} * 100%), transparent)`;\nconst FOCUSED_OVER_NOTHING = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.focus} * 100%), transparent)`;\nconst PRESSED_OVER_NOTHING = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.pressed} * 100%), transparent)`;\nconst HOVERED_OVER_CURRENT = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.hover} * 100%), ${colors.secondaryContainer})`;\nconst FOCUSED_OVER_CURRENT = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.focus} * 100%), ${colors.secondaryContainer})`;\nconst PRESSED_OVER_CURRENT = `color-mix(in srgb, ${colors.onSecondaryContainer} calc(${stateLayerOpacity.pressed} * 100%), ${colors.secondaryContainer})`;\n\n// What every destination draws whatever its form.\nconst navigationItemStyles = {\n fade: {\n kIyJzY: \"x1qno0dh x12w9bfk\",\n k1ekBW: \"xs2xxs2\",\n kAMwcw: \"xpc4ca7\",\n $$css: true\n },\n icon: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kGuDYH: \"x1pvqxga\",\n kjj79g: \"xl56j7k\",\n $$css: true\n },\n itemDisabled: {\n kMwMTN: \"x1gpw424 x1bhcspo\",\n kkrTdU: \"xt0e3qv\",\n $$css: true\n },\n label: {\n kMwMTN: \"x1w5n3ug\",\n kXHlph: \"x101abm8\",\n kORKVm: \"xryxfnj\",\n kg5iWk: \"xlyipyv\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n link: {\n kGNEyG: \"x6s0dn4\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x78zum5\",\n k3XXqK: \"x1t137rt\",\n kVAEAm: \"x1n2onr6\",\n kMnn75: \"xkrqix3\",\n $$css: true\n },\n pill: {\n kWkggS: \"xjbqb8w\",\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n $$css: true\n },\n ringWeight: {\n kMeerF: \"x1s780dp x1uvpp8k\",\n $$css: true\n }\n};\n\n// The list a bar or a rail holds its destinations in, and the item each\n// destination sits in — see `NavigationList` in ./index.tsx. The list clears\n// the margin, padding and markers a `<ul>` comes with, and each form gives\n// the space between its destinations as its `list`. The item takes the\n// destination's place in the bar's row or the rail's column, which each form\n// gives as its `listItem`, and the link fills it.\nconst navigationListStyles = {\n item: {\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n $$css: true\n },\n list: {\n kB7OPa: \"x9f619\",\n kH6xsr: \"x3ct3a4\",\n kogj98: \"x1ghz6dp\",\n kmVPX3: \"x1717udv\",\n $$css: true\n }\n};\n\n// The pages' least touch target, which a horizontal bar destination's 40dp\n// pill falls short of.\nconst TARGET_SIZE = '48px';\n\n// The navigation bar page's 64dp row, and the 40dp pill a horizontal\n// destination draws inside it.\nconst BAR_ROW = '64px';\nconst PILL = '40px';\n\n// The navigation bar's destination: vertical below the medium breakpoint and\n// horizontal at it and above, so every value that differs is a pair.\nconst barItemStyles = {\n badgeMark: {\n kSGwAc: \"xcspwbw\",\n kLqNvP: \"xty0069 x19sl9hu\",\n keTefX: \"xhi6r6q\",\n kVAEAm: \"x10l6tqk x15m4ytg\",\n $$css: true\n },\n indicator: {\n kGNEyG: \"x6s0dn4\",\n kZKoxP: \"x10w6t97 x10qpgbh\",\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n kzqmXN: \"x15yg21f x11lewyt\",\n kjj79g: \"xl56j7k\",\n kVAEAm: \"x1n2onr6 xtke4eg\",\n $$css: true\n },\n indicatorCurrent: {\n kWkggS: \"x15dekr4 x8jqrm0\",\n kVAM5u: \"x1n2ykn\",\n ksu8eU: \"xx61lck xnqlxux\",\n kMzoRj: \"x2h6xq1\",\n kMwMTN: \"x1sawysd\",\n $$css: true\n },\n indicatorFocused: {\n kWkggS: \"x1syr9su x8jqrm0\",\n $$css: true\n },\n indicatorFocusedCurrent: {\n kWkggS: \"x1s5x49g x8jqrm0\",\n $$css: true\n },\n indicatorHovered: {\n kWkggS: \"x173luhf x8jqrm0\",\n $$css: true\n },\n indicatorHoveredCurrent: {\n kWkggS: \"x1fctxn6 x8jqrm0\",\n $$css: true\n },\n indicatorPressed: {\n kWkggS: \"x1rydsgj x8jqrm0\",\n $$css: true\n },\n indicatorPressedCurrent: {\n kWkggS: \"xzpauq9 x8jqrm0\",\n $$css: true\n },\n indicatorRing: {\n kjBf7l: \"xat36cu\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"xaatb59 x1t601oj\",\n kMeerF: \"x1s780dp\",\n $$css: true\n },\n item: {\n k5JduY: \"x1ktxc2h\",\n kSy8m5: \"xfmxh57\",\n kcktkL: \"xb7ltuz\",\n kwXMNM: \"x1j6awrg\",\n kZKoxP: \"xiioxts\",\n kaIpWk: \"x1dkaolv\",\n kCS8Yb: \"x1r8uery x1a6ly76\",\n kXwgrk: \"xdt5ytf xapwh9g\",\n kzQI83: \"x1iyjqo2 x10cb59y\",\n kOIVth: \"xzoy561\",\n kjj79g: \"xl56j7k\",\n kqGvvJ: \"x10im51j xap7i12\",\n kAzted: \"x8nclml xtyuij1\",\n k7Eaqz: \"xeuugli\",\n k8WAf4: \"x1t0vds8 x1nouyz5\",\n kg3NbH: \"ximhkdq xze1m75\",\n $$css: true\n },\n itemCurrent: {\n kWkggS: \"xjbqb8w x1xec0pq\",\n kVAM5u: \"x1n2ykn\",\n ksu8eU: \"x1xldtvv x1wx4lrg\",\n kMzoRj: \"x2h6xq1\",\n $$css: true\n },\n itemFocused: {\n kWkggS: \"xjbqb8w xdodzsd\",\n $$css: true\n },\n itemFocusedCurrent: {\n kWkggS: \"xjbqb8w xnmt8re\",\n $$css: true\n },\n itemHovered: {\n kWkggS: \"xjbqb8w xdenq60\",\n $$css: true\n },\n itemHoveredCurrent: {\n kWkggS: \"xjbqb8w xjq3nej\",\n $$css: true\n },\n itemPressed: {\n kWkggS: \"xjbqb8w x7fq6vu\",\n $$css: true\n },\n itemPressedCurrent: {\n kWkggS: \"xjbqb8w x9wewpu\",\n $$css: true\n },\n itemRing: {\n kjBf7l: \"xat36cu\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"x1t137rt xxgb522\",\n kMeerF: \"x1s780dp\",\n $$css: true\n },\n label: {\n kMv6JI: \"xp6n8n2\",\n kGuDYH: \"xkucv67\",\n k63SB2: \"x14hhc5u\",\n kb6lSQ: \"x12utw95\",\n kLWn49: \"xvzb9hk\",\n ks0D6T: \"x193iq5w\",\n $$css: true\n },\n labelCurrent: {\n kMwMTN: \"xzakmg9 x16ybrrz\",\n $$css: true\n },\n labelWhole: {\n kE4Cay: \"xkjl1po\",\n kHjlTd: \"xj0a0fe\",\n k9WMMc: \"x2b8uid\",\n khDVqt: \"xeaf4i8 x17j4zob\",\n $$css: true\n },\n list: {\n kOIVth: \"xxhr3t x110hqo6\",\n $$css: true\n },\n listItem: {\n kCS8Yb: \"x1r8uery x1a6ly76\",\n kzQI83: \"x1iyjqo2 x10cb59y\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n }\n};\n\n// The collapsed rail's destination: always vertical, the pitch from one to\n// the next the rail's 4dp gap.\nconst collapsedItemStyles = {\n badgeMark: {\n $$css: true\n },\n indicator: {\n kGNEyG: \"x6s0dn4\",\n kZKoxP: \"x10w6t97\",\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n kzqmXN: \"x15yg21f\",\n kjj79g: \"xl56j7k\",\n kVAEAm: \"x1n2onr6\",\n $$css: true\n },\n indicatorCurrent: {\n kWkggS: \"x15dekr4\",\n kVAM5u: \"x1n2ykn\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x2h6xq1\",\n kMwMTN: \"x1sawysd\",\n $$css: true\n },\n indicatorFocused: {\n kWkggS: \"x1syr9su\",\n $$css: true\n },\n indicatorFocusedCurrent: {\n kWkggS: \"x1s5x49g\",\n $$css: true\n },\n indicatorHovered: {\n kWkggS: \"x173luhf\",\n $$css: true\n },\n indicatorHoveredCurrent: {\n kWkggS: \"x1fctxn6\",\n $$css: true\n },\n indicatorPressed: {\n kWkggS: \"x1rydsgj\",\n $$css: true\n },\n indicatorPressedCurrent: {\n kWkggS: \"xzpauq9\",\n $$css: true\n },\n item: {\n kXwgrk: \"xdt5ytf\",\n kmuXW: \"x2lah0s\",\n kOIVth: \"xzoy561\",\n kzqmXN: \"xh8yej3\",\n kjj79g: \"xl56j7k\",\n k8WAf4: \"x1t0vds8\",\n kg3NbH: \"ximhkdq\",\n $$css: true\n },\n itemCurrent: {\n $$css: true\n },\n itemFocused: {\n $$css: true\n },\n itemFocusedCurrent: {\n $$css: true\n },\n itemHovered: {\n $$css: true\n },\n itemHoveredCurrent: {\n $$css: true\n },\n itemPressed: {\n $$css: true\n },\n itemPressedCurrent: {\n $$css: true\n },\n label: {\n kMv6JI: \"xp6n8n2\",\n kGuDYH: \"xkucv67\",\n k63SB2: \"x14hhc5u\",\n kb6lSQ: \"x12utw95\",\n kLWn49: \"xvzb9hk\",\n ks0D6T: \"x193iq5w\",\n $$css: true\n },\n labelCurrent: {\n kMwMTN: \"xzakmg9\",\n $$css: true\n },\n labelWhole: {\n kE4Cay: \"xkjl1po\",\n kHjlTd: \"xj0a0fe\",\n k9WMMc: \"x2b8uid\",\n khDVqt: \"xeaf4i8\",\n $$css: true\n },\n list: {\n kOIVth: \"xzoy561\",\n $$css: true\n },\n listItem: {\n kmuXW: \"x2lah0s\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n }\n};\n\n// The expanded rail's destination: always horizontal, a 56dp pill as wide as\n// what it holds.\nconst expandedItemStyles = {\n badgeMark: {\n kSGwAc: \"xqcrz7y\",\n kLqNvP: \"x1o0tod\",\n keTefX: \"x18xomjl\",\n kVAEAm: \"x1n2onr6\",\n $$css: true\n },\n indicator: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n indicatorCurrent: {\n kMwMTN: \"x1sawysd\",\n $$css: true\n },\n indicatorFocused: {\n $$css: true\n },\n indicatorFocusedCurrent: {\n $$css: true\n },\n indicatorHovered: {\n $$css: true\n },\n indicatorHoveredCurrent: {\n $$css: true\n },\n indicatorPressed: {\n $$css: true\n },\n indicatorPressedCurrent: {\n $$css: true\n },\n item: {\n kSGwAc: \"xqcrz7y\",\n kZKoxP: \"xnnlda6\",\n kaIpWk: \"x1dkaolv\",\n kXwgrk: \"x1q0g3np\",\n kmuXW: \"x2lah0s\",\n kOIVth: \"x126z3so\",\n ks0D6T: \"x193iq5w\",\n kg3NbH: \"x790zyz\",\n $$css: true\n },\n itemCurrent: {\n kWkggS: \"x15dekr4\",\n kVAM5u: \"x1n2ykn\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x2h6xq1\",\n $$css: true\n },\n itemFocused: {\n kWkggS: \"x1syr9su\",\n $$css: true\n },\n itemFocusedCurrent: {\n kWkggS: \"x1s5x49g\",\n $$css: true\n },\n itemHovered: {\n kWkggS: \"x173luhf\",\n $$css: true\n },\n itemHoveredCurrent: {\n kWkggS: \"x1fctxn6\",\n $$css: true\n },\n itemPressed: {\n kWkggS: \"x1rydsgj\",\n $$css: true\n },\n itemPressedCurrent: {\n kWkggS: \"xzpauq9\",\n $$css: true\n },\n label: {\n kMv6JI: \"xkknnkr\",\n kGuDYH: \"x14zspaw\",\n k63SB2: \"x1v9cpvo\",\n kb6lSQ: \"x155f00i\",\n kLWn49: \"x1lz68p4\",\n $$css: true\n },\n labelCurrent: {\n kMwMTN: \"x1sawysd\",\n $$css: true\n },\n labelWhole: {\n $$css: true\n },\n list: {\n $$css: true\n },\n listItem: {\n kSGwAc: \"xqcrz7y\",\n kmuXW: \"x2lah0s\",\n ks0D6T: \"x193iq5w\",\n $$css: true\n }\n};\n\n// The bar's destination when the bar is too narrow for its horizontal form\n// at a width that would otherwise draw it — see NavigationBar. Vertical at\n// every width: the bar's own vertical item, with the collapsed rail's\n// indicator, label and badge placement, which are the bar's vertical ones.\nconst crampedBarItemStyles = {\n item: {\n kZKoxP: \"x5yr21d\",\n kaIpWk: \"x1dkaolv\",\n kCS8Yb: \"x1r8uery\",\n kXwgrk: \"xdt5ytf\",\n kzQI83: \"x1iyjqo2\",\n kOIVth: \"xzoy561\",\n kjj79g: \"xl56j7k\",\n k7Eaqz: \"xeuugli\",\n k8WAf4: \"x1t0vds8\",\n kg3NbH: \"xnjsko4\",\n $$css: true\n },\n list: {\n kOIVth: \"xxhr3t\",\n $$css: true\n },\n listItem: {\n kCS8Yb: \"x1r8uery\",\n kzQI83: \"x1iyjqo2\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n }\n};\nexport { barItemStyles, collapsedItemStyles, crampedBarItemStyles, expandedItemStyles, navigationItemStyles, navigationListStyles };"],"mappings":";;AAoD6B,GAAsBA,OAAOE,uBAA6BD,kBAAkBE;AAC5E,GAAsBH,OAAOE,uBAA6BD,k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,OAAO;CACT;CACAqE,oBAAoB;EAClBjD,QAAQ;EACRpB,OAAO;CACT;CACAsE,aAAa;EACXlD,QAAQ;EACRpB,OAAO;CACT;CACAuE,oBAAoB;EAClBnD,QAAQ;EACRpB,OAAO;CACT;CACAS,OAAO;EACLgE,QAAQ;EACRrE,QAAQ;EACRsE,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACR5E,OAAO;CACT;CACA8E,cAAc;EACZvE,QAAQ;EACRP,OAAO;CACT;CACA+E,YAAY,EACV/E,OAAO,KACT;CACA0B,MAAM,EACJ1B,OAAO,KACT;CACAmF,UAAU;EACRnD,QAAQ;EACRK,OAAO;EACPwC,QAAQ;EACR7E,OAAO;CACT;AACF;AAMA,MAAMsF,uBAAuB;CAC3B7D,MAAM;EACJW,QAAQ;EACRf,QAAQ;EACRmC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRtD,QAAQ;EACRyD,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRhE,OAAO;CACT;CACA0B,MAAM;EACJiC,QAAQ;EACR3D,OAAO;CACT;CACAmF,UAAU;EACR3B,QAAQ;EACRE,QAAQ;EACRI,QAAQ;EACR9D,OAAO;CACT;AACF"}
@@ -54,14 +54,14 @@ const rowStyles = {
54
54
  },
55
55
  focusVisible: {
56
56
  kKwaWg: "x17vw94z",
57
- kjBf7l: "xrgy624 x1v8yhc2",
58
- kInvED: "x2ssjo2",
57
+ kjBf7l: "xat36cu x1v8yhc2",
58
+ kInvED: "x1v57pqu",
59
59
  k3XXqK: "xaatb59",
60
- kMeerF: "x1de99jn",
60
+ kMeerF: "x1s780dp",
61
61
  $$css: true
62
62
  },
63
63
  focusVisibleSelected: {
64
- kInvED: "x2ssjo2 xzpfk5o",
64
+ kInvED: "x1v57pqu x1pndqhf",
65
65
  $$css: true
66
66
  },
67
67
  headlineEmphasis: {
@@ -100,10 +100,10 @@ const rowStyles = {
100
100
  interactive: {
101
101
  kkrTdU: "x1ypdohk",
102
102
  kVVagm: "xln7xf2",
103
- kjBf7l: "xrgy624",
104
- kInvED: "x2ssjo2",
103
+ kjBf7l: "xat36cu",
104
+ kInvED: "x1v57pqu",
105
105
  k3XXqK: "x9v5kkp x1t137rt",
106
- kMeerF: "x1de99jn",
106
+ kMeerF: "x1s780dp",
107
107
  $$css: true
108
108
  },
109
109
  interactiveLayers: {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["rowStyles","base","kGNEyG","kWkggS","kMzoRj","kB7OPa","kMwMTN","k1xSpc","kOIVth","kzqmXN","k3XXqK","k8WAf4","kg3NbH","kVAEAm","k9WMMc","kMnn75","$$css","disabled","kkrTdU","kAXs8y","dragging","kKwaWg","kGVxlE","kY2c9j","drawer","kaIpWk","kUOVxO","kAzted","drawerSurface","dropTarget","kjBf7l","kInvED","kMeerF","focusVisible","focusVisibleSelected","headlineEmphasis","k63SB2","headlineList","kMv6JI","kGuDYH","kb6lSQ","kLWn49","kHjlTd","headlineMenu","headlineOnValueLine","kVQacm","kg5iWk","khDVqt","hovered","interactive","kVVagm","interactiveLayers","list","main","kXwgrk","kzQI83","k7Eaqz","menu","overline","pressed","selectedDrawer","selectedList","selectedMenu","slot","kmuXW","slotDisabled","kSiTet","slotSelected","supporting","supportingInherit","supportingSelectedDrawer","supportingSelectedList","supportingSelectedMenu","threeLine","twoLine","supportingTone","variant","isDisabled","isSelected"],"sources":["../../src/row/styles.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport type { RowVariant } from '.';\nimport '../tokens/design.tokens.stylex';\nimport { colors, radii, shadows, sizing, spacing, stateLayerOpacity, typography } from '../tokens/design.tokens.stylex';\n\n// The row every list draws: ListItem's, and from here on the item of every\n// collection the coverage plan adds — ListBox, Menu, List, Tree, the options\n// of Select and ComboBox. Apart from the RowContent component in ./index.tsx\n// so that file exports components alone, which is what keeps fast refresh\n// working for it.\n//\n// Three variants, because three spec pages draw three rows. The lists page\n// gives a list item a 56dp floor, a body-large headline and a body-medium\n// supporting line, and primary container when selected. The menus page gives\n// a menu item 48dp, a label-large label, 12dp of inline padding and of room\n// after its leading icon where the lists page gives 16, and tertiary\n// container when selected. The navigation drawer page gives its row 56dp too, with a\n// label-large label like a menu's, and marks the current one with a\n// secondary-container pill held 12dp off each edge — 336dp of indicator in a\n// 360dp container, which is what that inset comes to. The layout, the\n// padding, the state layers and the disabled treatment are one row; `list`,\n// `menu` and `drawer` carry only what the three pages disagree on, and a\n// consumer applies one of them beside `base`.\n//\n// The block padding is the lists page's 8dp, which is what puts a row's\n// 40dp leading element — an avatar, a selection checkbox — on the 56dp\n// one-line height, and a 56dp one on 72. The page pads a three-line row 12dp\n// instead, which `threeLine` carries. A menu item and a drawer row hold one\n// line of text inside a taller floor, so their padding shows only on a label\n// that wraps.\n//\n// Laid out with flex rather than the grid the design draws. The design's\n// three columns are `auto 1fr auto`, which is what flex does natively — and\n// unlike a fixed three-column grid it stays correct when a row has no leading\n// or no trailing content, where the remaining children would otherwise slide\n// into the wrong columns.\n//\n// Rows align with each other through their leading content being the same\n// size, not through a fixed column width: a list of Avatars all at one size\n// lines up, and that is the same thing the design's 40px column achieves.\n//\n// The state layer composites over `transparent` rather than over a container\n// colour, because a row's own background is transparent and it therefore\n// tints whatever it happens to be sitting on — a card, a menu, or the page.\n// The two selected states are the ones that bring a container of their own.\n\n// A pointer that can hover, for `interactiveLayers` — a plain element with no\n// render state, so its hover layer is a pseudo-class, and Chromium leaves\n// `:hover` on whatever a touch last tapped. Inside this query a touch screen\n// draws no hover at all; a touchscreen laptop still matches it for its\n// trackpad.\nconst HOVER_CAPABLE = '@media (hover: hover)';\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)';\nconst rowStyles = {\n base: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xjbqb8w\",\n kMzoRj: \"xc342km\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x139gbkf xs5hli\",\n k1xSpc: \"x78zum5\",\n kOIVth: \"xxj4525\",\n kzqmXN: \"xh8yej3\",\n k3XXqK: \"x1t137rt\",\n k8WAf4: \"x1cmllll\",\n kg3NbH: \"x790zyz\",\n kVAEAm: \"x1n2onr6\",\n k9WMMc: \"x1yc453h\",\n kMnn75: \"xkrqix3\",\n $$css: true\n },\n disabled: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1xj74d8 x1bhcspo\",\n kkrTdU: \"x1h6gzvc\",\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n dragging: {\n kWkggS: \"x14s9m32\",\n kKwaWg: \"xdiex0u\",\n kGVxlE: \"x4r79n0\",\n kY2c9j: \"x1vjfegm\",\n $$css: true\n },\n drawer: {\n kaIpWk: \"x1dkaolv\",\n kzqmXN: \"x14atkfc\",\n kUOVxO: \"xd2r6sq\",\n kAzted: \"xyax5pk\",\n $$css: true\n },\n drawerSurface: {\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"xjp7ctv\",\n $$css: true\n },\n dropTarget: {\n kKwaWg: \"xu73ib2\",\n kjBf7l: \"xrgy624 x1x84bn5\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n focusVisible: {\n kKwaWg: \"x17vw94z\",\n kjBf7l: \"xrgy624 x1v8yhc2\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n focusVisibleSelected: {\n kInvED: \"x2ssjo2 xzpfk5o\",\n $$css: true\n },\n headlineEmphasis: {\n k63SB2: \"x1sfltvt\",\n $$css: true\n },\n headlineList: {\n kMv6JI: \"x16svsjw\",\n kGuDYH: \"x1848etk\",\n k63SB2: \"x1c52epr\",\n kb6lSQ: \"x1qn8t5l\",\n kLWn49: \"xh7dzej\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n headlineMenu: {\n kMv6JI: \"xkknnkr\",\n kGuDYH: \"x14zspaw\",\n k63SB2: \"x1v9cpvo\",\n kb6lSQ: \"x155f00i\",\n kLWn49: \"x1lz68p4\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n headlineOnValueLine: {\n kVQacm: \"xb3r6kr\",\n kg5iWk: \"xlyipyv\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n hovered: {\n kKwaWg: \"xbmfk57\",\n kkrTdU: \"x1ypdohk\",\n $$css: true\n },\n interactive: {\n kkrTdU: \"x1ypdohk\",\n kVVagm: \"xln7xf2\",\n kjBf7l: \"xrgy624\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n interactiveLayers: {\n kWkggS: \"x83qkoq x1yl1wq7 x10oam47 xkl27de xjqqt44 xjbqb8w\",\n $$css: true\n },\n list: {\n kAzted: \"xyax5pk\",\n $$css: true\n },\n main: {\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzQI83: \"x1iyjqo2\",\n kOIVth: \"x14qo01y\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n },\n menu: {\n kOIVth: \"x1gka490\",\n kAzted: \"x1ddmzdj\",\n kg3NbH: \"x18fpw6u\",\n $$css: true\n },\n overline: {\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xs1w0rn\",\n kGuDYH: \"x1n35her\",\n k63SB2: \"x1su64ma\",\n kb6lSQ: \"xdlnduh\",\n kLWn49: \"xaomhve\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n pressed: {\n kKwaWg: \"xdiex0u\",\n $$css: true\n },\n selectedDrawer: {\n kWkggS: \"x15dekr4 x1jzqe4\",\n kMwMTN: \"x1sawysd x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selectedList: {\n kWkggS: \"xp89om9 x1jzqe4\",\n kMwMTN: \"xscdzaa x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selectedMenu: {\n kWkggS: \"xs6yvni x1jzqe4\",\n kMwMTN: \"x3cbcwg x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n slot: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n slotDisabled: {\n kMwMTN: \"x139gbkf x1bhcspo\",\n kSiTet: \"x1ppv7y9 x1tbh5bv\",\n $$css: true\n },\n slotSelected: {\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n supporting: {\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xpo2rfv\",\n kGuDYH: \"x193rfdd\",\n k63SB2: \"x1hews6w\",\n kb6lSQ: \"xn43zvd\",\n kLWn49: \"xv61bfh\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n supportingInherit: {\n kMwMTN: \"x1heor9g\",\n $$css: true\n },\n supportingSelectedDrawer: {\n kMwMTN: \"x1sawysd x1k5gbb1\",\n $$css: true\n },\n supportingSelectedList: {\n kMwMTN: \"xscdzaa x1k5gbb1\",\n $$css: true\n },\n supportingSelectedMenu: {\n kMwMTN: \"x3cbcwg x1k5gbb1\",\n $$css: true\n },\n threeLine: {\n kGNEyG: \"x1cy8zhl\",\n kAzted: \"x1bt55z4\",\n k8WAf4: \"x1uvvd8r\",\n $$css: true\n },\n twoLine: {\n kAzted: \"x304zwk\",\n $$css: true\n }\n};\n\n/**\n * The tone a row's muted text takes over its own muted style: the supporting\n * line and the overline, and a menu item's shortcut. Nothing while the row is\n * drawn on the surface, where the muted style's on surface variant holds;\n * the selected container's own on-colour while selected; and the row's own\n * colour while disabled. Disabled is asked first, since a disabled row's own\n * colour is already the faded one and so wins over the selected container's\n * content role. One function for every caller, so a shortcut and the\n * supporting line beside it cannot come to disagree.\n */\nfunction supportingTone(variant: RowVariant, {\n isDisabled,\n isSelected\n}: {\n isDisabled: boolean;\n isSelected: boolean;\n}) {\n if (isDisabled) {\n return rowStyles.supportingInherit;\n }\n if (!isSelected) {\n return null;\n }\n // Each variant's container is a different colour family, and the muted\n // role is not guaranteed to be readable over any of them.\n if (variant === 'drawer') {\n return rowStyles.supportingSelectedDrawer;\n }\n if (variant === 'menu') {\n return rowStyles.supportingSelectedMenu;\n }\n return rowStyles.supportingSelectedList;\n}\nexport { rowStyles, supportingTone };"],"mappings":";AA0DA,MAAMA,YAAY;CAChBC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,UAAU;EACRd,QAAQ;EACRG,QAAQ;EACRY,QAAQ;EACRC,QAAQ;EACRH,OAAO;CACT;CACAI,UAAU;EACRjB,QAAQ;EACRkB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRP,OAAO;CACT;CACAQ,QAAQ;EACNC,QAAQ;EACRhB,QAAQ;EACRiB,QAAQ;EACRC,QAAQ;EACRX,OAAO;CACT;CACAY,eAAe;EACbH,QAAQ;EACRpB,QAAQ;EACRE,QAAQ;EACRS,OAAO;CACT;CACAa,YAAY;EACVR,QAAQ;EACRS,QAAQ;EACRC,QAAQ;EACRrB,QAAQ;EACRsB,QAAQ;EACRhB,OAAO;CACT;CACAiB,cAAc;EACZZ,QAAQ;EACRS,QAAQ;EACRC,QAAQ;EACRrB,QAAQ;EACRsB,QAAQ;EACRhB,OAAO;CACT;CACAkB,sBAAsB;EACpBH,QAAQ;EACRf,OAAO;CACT;CACAmB,kBAAkB;EAChBC,QAAQ;EACRpB,OAAO;CACT;CACAqB,cAAc;EACZC,QAAQ;EACRC,QAAQ;EACRH,QAAQ;EACRI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EACRH,OAAO;CACT;CACAoD,YAAY;EACV9D,QAAQ;EACRgC,QAAQ;EACRC,QAAQ;EACRH,QAAQ;EACRI,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACR1B,OAAO;CACT;CACAqD,mBAAmB;EACjB/D,QAAQ;EACRU,OAAO;CACT;CACAsD,0BAA0B;EACxBhE,QAAQ;EACRU,OAAO;CACT;CACAuD,wBAAwB;EACtBjE,QAAQ;EACRU,OAAO;CACT;CACAwD,wBAAwB;EACtBlE,QAAQ;EACRU,OAAO;CACT;CACAyD,WAAW;EACTvE,QAAQ;EACRyB,QAAQ;EACRhB,QAAQ;EACRK,OAAO;CACT;CACA0D,SAAS;EACP/C,QAAQ;EACRX,OAAO;CACT;AACF;;;;;;;;;;;AAYA,SAAS2D,eAAeC,SAAqB,EAC3CC,YACAC,cAIC;CACD,IAAID,YACF,OAAO7E,UAAUqE;CAEnB,IAAI,CAACS,YACH,OAAO;CAIT,IAAIF,YAAY,UACd,OAAO5E,UAAUsE;CAEnB,IAAIM,YAAY,QACd,OAAO5E,UAAUwE;CAEnB,OAAOxE,UAAUuE;AACnB"}
1
+ {"version":3,"file":"styles.js","names":["rowStyles","base","kGNEyG","kWkggS","kMzoRj","kB7OPa","kMwMTN","k1xSpc","kOIVth","kzqmXN","k3XXqK","k8WAf4","kg3NbH","kVAEAm","k9WMMc","kMnn75","$$css","disabled","kkrTdU","kAXs8y","dragging","kKwaWg","kGVxlE","kY2c9j","drawer","kaIpWk","kUOVxO","kAzted","drawerSurface","dropTarget","kjBf7l","kInvED","kMeerF","focusVisible","focusVisibleSelected","headlineEmphasis","k63SB2","headlineList","kMv6JI","kGuDYH","kb6lSQ","kLWn49","kHjlTd","headlineMenu","headlineOnValueLine","kVQacm","kg5iWk","khDVqt","hovered","interactive","kVVagm","interactiveLayers","list","main","kXwgrk","kzQI83","k7Eaqz","menu","overline","pressed","selectedDrawer","selectedList","selectedMenu","slot","kmuXW","slotDisabled","kSiTet","slotSelected","supporting","supportingInherit","supportingSelectedDrawer","supportingSelectedList","supportingSelectedMenu","threeLine","twoLine","supportingTone","variant","isDisabled","isSelected"],"sources":["../../src/row/styles.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport type { RowVariant } from '.';\nimport '../tokens/design.tokens.stylex';\nimport { colors, radii, shadows, sizing, spacing, stateLayerOpacity, typography } from '../tokens/design.tokens.stylex';\n\n// The row every list draws: ListItem's, and from here on the item of every\n// collection the coverage plan adds — ListBox, Menu, List, Tree, the options\n// of Select and ComboBox. Apart from the RowContent component in ./index.tsx\n// so that file exports components alone, which is what keeps fast refresh\n// working for it.\n//\n// Three variants, because three spec pages draw three rows. The lists page\n// gives a list item a 56dp floor, a body-large headline and a body-medium\n// supporting line, and primary container when selected. The menus page gives\n// a menu item 48dp, a label-large label, 12dp of inline padding and of room\n// after its leading icon where the lists page gives 16, and tertiary\n// container when selected. The navigation drawer page gives its row 56dp too, with a\n// label-large label like a menu's, and marks the current one with a\n// secondary-container pill held 12dp off each edge — 336dp of indicator in a\n// 360dp container, which is what that inset comes to. The layout, the\n// padding, the state layers and the disabled treatment are one row; `list`,\n// `menu` and `drawer` carry only what the three pages disagree on, and a\n// consumer applies one of them beside `base`.\n//\n// The block padding is the lists page's 8dp, which is what puts a row's\n// 40dp leading element — an avatar, a selection checkbox — on the 56dp\n// one-line height, and a 56dp one on 72. The page pads a three-line row 12dp\n// instead, which `threeLine` carries. A menu item and a drawer row hold one\n// line of text inside a taller floor, so their padding shows only on a label\n// that wraps.\n//\n// Laid out with flex rather than the grid the design draws. The design's\n// three columns are `auto 1fr auto`, which is what flex does natively — and\n// unlike a fixed three-column grid it stays correct when a row has no leading\n// or no trailing content, where the remaining children would otherwise slide\n// into the wrong columns.\n//\n// Rows align with each other through their leading content being the same\n// size, not through a fixed column width: a list of Avatars all at one size\n// lines up, and that is the same thing the design's 40px column achieves.\n//\n// The state layer composites over `transparent` rather than over a container\n// colour, because a row's own background is transparent and it therefore\n// tints whatever it happens to be sitting on — a card, a menu, or the page.\n// The two selected states are the ones that bring a container of their own.\n\n// A pointer that can hover, for `interactiveLayers` — a plain element with no\n// render state, so its hover layer is a pseudo-class, and Chromium leaves\n// `:hover` on whatever a touch last tapped. Inside this query a touch screen\n// draws no hover at all; a touchscreen laptop still matches it for its\n// trackpad.\nconst HOVER_CAPABLE = '@media (hover: hover)';\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)';\nconst rowStyles = {\n base: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xjbqb8w\",\n kMzoRj: \"xc342km\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x139gbkf xs5hli\",\n k1xSpc: \"x78zum5\",\n kOIVth: \"xxj4525\",\n kzqmXN: \"xh8yej3\",\n k3XXqK: \"x1t137rt\",\n k8WAf4: \"x1cmllll\",\n kg3NbH: \"x790zyz\",\n kVAEAm: \"x1n2onr6\",\n k9WMMc: \"x1yc453h\",\n kMnn75: \"xkrqix3\",\n $$css: true\n },\n disabled: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1xj74d8 x1bhcspo\",\n kkrTdU: \"x1h6gzvc\",\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n dragging: {\n kWkggS: \"x14s9m32\",\n kKwaWg: \"xdiex0u\",\n kGVxlE: \"x4r79n0\",\n kY2c9j: \"x1vjfegm\",\n $$css: true\n },\n drawer: {\n kaIpWk: \"x1dkaolv\",\n kzqmXN: \"x14atkfc\",\n kUOVxO: \"xd2r6sq\",\n kAzted: \"xyax5pk\",\n $$css: true\n },\n drawerSurface: {\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"xjp7ctv\",\n $$css: true\n },\n dropTarget: {\n kKwaWg: \"xu73ib2\",\n kjBf7l: \"xrgy624 x1x84bn5\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n focusVisible: {\n kKwaWg: \"x17vw94z\",\n kjBf7l: \"xat36cu x1v8yhc2\",\n kInvED: \"x1v57pqu\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1s780dp\",\n $$css: true\n },\n focusVisibleSelected: {\n kInvED: \"x1v57pqu x1pndqhf\",\n $$css: true\n },\n headlineEmphasis: {\n k63SB2: \"x1sfltvt\",\n $$css: true\n },\n headlineList: {\n kMv6JI: \"x16svsjw\",\n kGuDYH: \"x1848etk\",\n k63SB2: \"x1c52epr\",\n kb6lSQ: \"x1qn8t5l\",\n kLWn49: \"xh7dzej\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n headlineMenu: {\n kMv6JI: \"xkknnkr\",\n kGuDYH: \"x14zspaw\",\n k63SB2: \"x1v9cpvo\",\n kb6lSQ: \"x155f00i\",\n kLWn49: \"x1lz68p4\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n headlineOnValueLine: {\n kVQacm: \"xb3r6kr\",\n kg5iWk: \"xlyipyv\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n hovered: {\n kKwaWg: \"xbmfk57\",\n kkrTdU: \"x1ypdohk\",\n $$css: true\n },\n interactive: {\n kkrTdU: \"x1ypdohk\",\n kVVagm: \"xln7xf2\",\n kjBf7l: \"xat36cu\",\n kInvED: \"x1v57pqu\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1s780dp\",\n $$css: true\n },\n interactiveLayers: {\n kWkggS: \"x83qkoq x1yl1wq7 x10oam47 xkl27de xjqqt44 xjbqb8w\",\n $$css: true\n },\n list: {\n kAzted: \"xyax5pk\",\n $$css: true\n },\n main: {\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzQI83: \"x1iyjqo2\",\n kOIVth: \"x14qo01y\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n },\n menu: {\n kOIVth: \"x1gka490\",\n kAzted: \"x1ddmzdj\",\n kg3NbH: \"x18fpw6u\",\n $$css: true\n },\n overline: {\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xs1w0rn\",\n kGuDYH: \"x1n35her\",\n k63SB2: \"x1su64ma\",\n kb6lSQ: \"xdlnduh\",\n kLWn49: \"xaomhve\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n pressed: {\n kKwaWg: \"xdiex0u\",\n $$css: true\n },\n selectedDrawer: {\n kWkggS: \"x15dekr4 x1jzqe4\",\n kMwMTN: \"x1sawysd x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selectedList: {\n kWkggS: \"xp89om9 x1jzqe4\",\n kMwMTN: \"xscdzaa x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selectedMenu: {\n kWkggS: \"xs6yvni x1jzqe4\",\n kMwMTN: \"x3cbcwg x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n slot: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n slotDisabled: {\n kMwMTN: \"x139gbkf x1bhcspo\",\n kSiTet: \"x1ppv7y9 x1tbh5bv\",\n $$css: true\n },\n slotSelected: {\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n supporting: {\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xpo2rfv\",\n kGuDYH: \"x193rfdd\",\n k63SB2: \"x1hews6w\",\n kb6lSQ: \"xn43zvd\",\n kLWn49: \"xv61bfh\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n supportingInherit: {\n kMwMTN: \"x1heor9g\",\n $$css: true\n },\n supportingSelectedDrawer: {\n kMwMTN: \"x1sawysd x1k5gbb1\",\n $$css: true\n },\n supportingSelectedList: {\n kMwMTN: \"xscdzaa x1k5gbb1\",\n $$css: true\n },\n supportingSelectedMenu: {\n kMwMTN: \"x3cbcwg x1k5gbb1\",\n $$css: true\n },\n threeLine: {\n kGNEyG: \"x1cy8zhl\",\n kAzted: \"x1bt55z4\",\n k8WAf4: \"x1uvvd8r\",\n $$css: true\n },\n twoLine: {\n kAzted: \"x304zwk\",\n $$css: true\n }\n};\n\n/**\n * The tone a row's muted text takes over its own muted style: the supporting\n * line and the overline, and a menu item's shortcut. Nothing while the row is\n * drawn on the surface, where the muted style's on surface variant holds;\n * the selected container's own on-colour while selected; and the row's own\n * colour while disabled. Disabled is asked first, since a disabled row's own\n * colour is already the faded one and so wins over the selected container's\n * content role. One function for every caller, so a shortcut and the\n * supporting line beside it cannot come to disagree.\n */\nfunction supportingTone(variant: RowVariant, {\n isDisabled,\n isSelected\n}: {\n isDisabled: boolean;\n isSelected: boolean;\n}) {\n if (isDisabled) {\n return rowStyles.supportingInherit;\n }\n if (!isSelected) {\n return null;\n }\n // Each variant's container is a different colour family, and the muted\n // role is not guaranteed to be readable over any of them.\n if (variant === 'drawer') {\n return rowStyles.supportingSelectedDrawer;\n }\n if (variant === 'menu') {\n return rowStyles.supportingSelectedMenu;\n }\n return rowStyles.supportingSelectedList;\n}\nexport { rowStyles, supportingTone };"],"mappings":";AA0DA,MAAMA,YAAY;CAChBC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,UAAU;EACRd,QAAQ;EACRG,QAAQ;EACRY,QAAQ;EACRC,QAAQ;EACRH,OAAO;CACT;CACAI,UAAU;EACRjB,QAAQ;EACRkB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRP,OAAO;CACT;CACAQ,QAAQ;EACNC,QAAQ;EACRhB,QAAQ;EACRiB,QAAQ;E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,QAAQ;EACR1B,OAAO;CACT;CACA2C,SAAS;EACPtC,QAAQ;EACRL,OAAO;CACT;CACA4C,gBAAgB;EACdzD,QAAQ;EACRG,QAAQ;EACRa,QAAQ;EACRH,OAAO;CACT;CACA6C,cAAc;EACZ1D,QAAQ;EACRG,QAAQ;EACRa,QAAQ;EACRH,OAAO;CACT;CACA8C,cAAc;EACZ3D,QAAQ;EACRG,QAAQ;EACRa,QAAQ;EACRH,OAAO;CACT;CACA+C,MAAM;EACJ7D,QAAQ;EACRK,QAAQ;EACRyD,OAAO;EACPhD,OAAO;CACT;CACAiD,cAAc;EACZ3D,QAAQ;EACR4D,QAAQ;EACRlD,OAAO;CACT;CACAmD,cAAc;EACZhD,QAAQ;EACRH,OAAO;CACT;CACAoD,YAAY;EACV9D,QAAQ;EACRgC,QAAQ;EACRC,QAAQ;EACRH,QAAQ;EACRI,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACR1B,OAAO;CACT;CACAqD,mBAAmB;EACjB/D,QAAQ;EACRU,OAAO;CACT;CACAsD,0BAA0B;EACxBhE,QAAQ;EACRU,OAAO;CACT;CACAuD,wBAAwB;EACtBjE,QAAQ;EACRU,OAAO;CACT;CACAwD,wBAAwB;EACtBlE,QAAQ;EACRU,OAAO;CACT;CACAyD,WAAW;EACTvE,QAAQ;EACRyB,QAAQ;EACRhB,QAAQ;EACRK,OAAO;CACT;CACA0D,SAAS;EACP/C,QAAQ;EACRX,OAAO;CACT;AACF;;;;;;;;;;;AAYA,SAAS2D,eAAeC,SAAqB,EAC3CC,YACAC,cAIC;CACD,IAAID,YACF,OAAO7E,UAAUqE;CAEnB,IAAI,CAACS,YACH,OAAO;CAIT,IAAIF,YAAY,UACd,OAAO5E,UAAUsE;CAEnB,IAAIM,YAAY,QACd,OAAO5E,UAAUwE;CAEnB,OAAOxE,UAAUuE;AACnB"}
@@ -1,22 +1,22 @@
1
1
  // src/styles/color.ts
2
2
  function thumbClasses(state, vertical) {
3
3
  return {
4
- 0: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7" },
5
- 8: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i" },
6
- 4: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59" },
7
- 12: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59" },
8
- 2: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1kr41ut xi9pz9s" },
9
- 10: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1kr41ut xi9pz9s" },
10
- 6: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1kr41ut xi9pz9s" },
11
- 14: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1kr41ut xi9pz9s" },
12
- 1: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1h6gzvc" },
13
- 9: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1h6gzvc" },
14
- 5: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1h6gzvc" },
15
- 13: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1h6gzvc" },
16
- 3: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1kr41ut x1h6gzvc" },
17
- 11: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1kr41ut x1h6gzvc" },
18
- 7: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1kr41ut x1h6gzvc" },
19
- 15: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1de99jn x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1kr41ut x1h6gzvc" }
4
+ 0: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7" },
5
+ 8: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i" },
6
+ 4: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 xaatb59" },
7
+ 12: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59" },
8
+ 2: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1kr41ut xi9pz9s" },
9
+ 10: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1kr41ut xi9pz9s" },
10
+ 6: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1kr41ut xi9pz9s" },
11
+ 14: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1kr41ut xi9pz9s" },
12
+ 1: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1h6gzvc" },
13
+ 9: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1h6gzvc" },
14
+ 5: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1h6gzvc" },
15
+ 13: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1h6gzvc" },
16
+ 3: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1kr41ut x1h6gzvc" },
17
+ 11: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1kr41ut x1h6gzvc" },
18
+ 7: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1kr41ut x1h6gzvc" },
19
+ 15: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1kr41ut x1h6gzvc" }
20
20
  }[!!vertical << 3 | !!state.isFocusVisible << 2 | !!state.isDragging << 1 | !!state.isDisabled << 0].className ?? "";
21
21
  }
22
22
  function thumbClassName(state) {
@@ -1 +1 @@
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
+ {"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: \"xat36cu x1x84bn5\",\n kInvED: \"x2wh2y9\",\n k3XXqK: \"x1t137rt\",\n kMeerF: \"x1s780dp\",\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 xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7\"\n },\n 8: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i\"\n },\n 4: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 xaatb59\"\n },\n 12: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59\"\n },\n 2: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1kr41ut xi9pz9s\"\n },\n 10: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1kr41ut xi9pz9s\"\n },\n 6: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1kr41ut xi9pz9s\"\n },\n 14: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1kr41ut xi9pz9s\"\n },\n 1: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1h6gzvc\"\n },\n 9: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1h6gzvc\"\n },\n 5: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1h6gzvc\"\n },\n 13: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i xaatb59 x1h6gzvc\"\n },\n 3: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1kr41ut x1h6gzvc\"\n },\n 11: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1t137rt x1s780dp x1qno0dh xkdsq27 xpc4ca7 x1nrll8i x1kr41ut x1h6gzvc\"\n },\n 7: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp x1qno0dh xkdsq27 xpc4ca7 xaatb59 x1kr41ut x1h6gzvc\"\n },\n 15: {\n className: \"x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 x9f619 xw4jnvo xwa60dl xat36cu x1x84bn5 x2wh2y9 x1s780dp 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,17 +1,17 @@
1
1
  // src/styles/focus.ts
2
2
  const focus = {
3
3
  ring: {
4
- kjBf7l: "xrgy624",
4
+ kjBf7l: "xat36cu",
5
5
  kInvED: "x1hl8ikr",
6
6
  k3XXqK: "x9v5kkp x1t137rt",
7
- kMeerF: "x1de99jn",
7
+ kMeerF: "x1s780dp",
8
8
  $$css: true
9
9
  },
10
10
  ringVisible: {
11
- kjBf7l: "xrgy624",
11
+ kjBf7l: "xat36cu",
12
12
  kInvED: "x1hl8ikr",
13
13
  k3XXqK: "xaatb59",
14
- kMeerF: "x1de99jn",
14
+ kMeerF: "x1s780dp",
15
15
  $$css: true
16
16
  }
17
17
  };
@@ -1 +1 @@
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 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
+ {"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// It is Material Design's focus indicator: 3dp thick, in the secondary role,\n// 2dp outside the element it marks.\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. Each still draws the\n// 3dp width, apart from the one bullet below that is about the width, and\n// the secondary role wherever its reason leaves the colour free:\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 of the ring's own width, drawing it inside the element\n// rather than around it, flush with its edge: DropZone, NumberField,\n// Table, a Tab and its panel, the shared row, an empty collection, the\n// body of a Dialog or a Sheet while it scrolls, and a bottom sheet's drag\n// handle. Snackbar's is further in, at 4px.\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 lighter width, 2px, for a ring that has to read as a different mark\n// from a heavier one beside it once forced colours take both their\n// colours: the swatch, whose selection ring is 3px.\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 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//\n// The field chrome's box and SearchField's bar draw no ring outside forced\n// colours, and that is not a departure from this one. Their input holds\n// focus, and what marks it is the text field page's own focused state — the\n// active indicator, drawn as a shadow inside the box under `:focus-within` —\n// which follows that page's thickness and its primary role rather than the\n// focus indicator's. Under forced colours, where the shadow is gone, each\n// draws an outline at this ring's width and offset instead.\nconst focus = {\n ring: {\n kjBf7l: \"xat36cu\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1s780dp\",\n $$css: true\n },\n ringVisible: {\n kjBf7l: \"xat36cu\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1s780dp\",\n $$css: true\n }\n};\nexport { focus };"],"mappings":";AAsDA,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"}
@@ -25,10 +25,10 @@ const overlay = {
25
25
  $$css: true
26
26
  },
27
27
  modalBodyRing: {
28
- kjBf7l: "xrgy624",
29
- kInvED: "x2ssjo2",
28
+ kjBf7l: "xat36cu",
29
+ kInvED: "x1v57pqu",
30
30
  k3XXqK: "x9v5kkp x1t137rt",
31
- kMeerF: "x1de99jn",
31
+ kMeerF: "x1s780dp",
32
32
  $$css: true
33
33
  },
34
34
  modalDialog: {
@@ -1 +1 @@
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
+ {"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: \"xat36cu\",\n kInvED: \"x1v57pqu\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1s780dp\",\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;EACR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${LENGTH}`;
6
+ `${LENGTH}${LENGTH}`;
7
+ const scrollFade = {
8
+ both: {
9
+ kX1K2I: "x45g16a",
10
+ $$css: true
11
+ },
12
+ end: {
13
+ kX1K2I: "x1j13g2s xzjeg65",
14
+ $$css: true
15
+ },
16
+ start: {
17
+ kX1K2I: "x1of37x4 x11v52xb",
18
+ $$css: true
19
+ }
20
+ };
21
+ /**
22
+ * The fade for a box with something past its start edge, its end edge, or
23
+ * both, as `useScrollEdges` reports them: `false` where neither has.
24
+ */
25
+ function scrollFadeOf(edges) {
26
+ if (edges.start && edges.end) return scrollFade.both;
27
+ if (edges.start) return scrollFade.start;
28
+ if (edges.end) return scrollFade.end;
29
+ return false;
30
+ }
31
+ export { scrollFade, scrollFadeOf };
32
+
33
+ //# sourceMappingURL=scroll-fade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-fade.js","names":["spacing","LENGTH","xxl","scrollFade","both","kX1K2I","$$css","end","start","scrollFadeOf","edges"],"sources":["../../src/styles/scroll-fade.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { spacing } from '../tokens/design.tokens.stylex';\n\n// The fade on the edge of something that scrolls sideways, while there is\n// more of it past that edge. A bar or a table cut off at its edge leaves the\n// cut-off part looking like the whole: a tab clipped to \"…d item\", a column\n// that is simply not there until the reader happens to scroll. Fading the\n// edge is what says there is more.\n//\n// A mask rather than a gradient laid over the content, so it fades whatever\n// is underneath to whatever is behind it — a tab's label and its state\n// layer, a table's cells and their rules — without knowing either colour.\n// Only an edge that has something past it fades, so a box scrolled to its\n// start keeps a hard start edge, and one whose content fits keeps both: the\n// edges come from `useScrollEdges` in src/hooks, measured from the scroll\n// position.\n//\n// Material Design gives a scrolling bar no such treatment, so the length is\n// the library's own: 32dp, the spacing scale's step wide enough to take the\n// last letters of a label down to nothing while the rest of it still reads.\n//\n// A gradient's direction is physical, so each one is written for both\n// writing directions, `:dir(rtl)` turning the start fade from the left edge\n// to the right one.\nconst LENGTH = spacing.xxl;\n\n// Opaque from the fade's length in: the mask keeps what lies under black and\n// drops what lies under transparent. Spelled out per direction, since the\n// StyleX compiler evaluates a template but not a call.\nconst FROM_LEFT = `linear-gradient(to right, transparent, #000 ${LENGTH})`;\nconst FROM_RIGHT = `linear-gradient(to left, transparent, #000 ${LENGTH})`;\nconst BOTH = `linear-gradient(to right, transparent, #000 ${LENGTH}, #000 calc(100% - ${LENGTH}), transparent)`;\nconst scrollFade = {\n both: {\n kX1K2I: \"x45g16a\",\n $$css: true\n },\n end: {\n kX1K2I: \"x1j13g2s xzjeg65\",\n $$css: true\n },\n start: {\n kX1K2I: \"x1of37x4 x11v52xb\",\n $$css: true\n }\n};\n\n/**\n * The fade for a box with something past its start edge, its end edge, or\n * both, as `useScrollEdges` reports them: `false` where neither has.\n */\nfunction scrollFadeOf(edges: {\n end: boolean;\n start: boolean;\n}) {\n if (edges.start && edges.end) {\n return scrollFade.both;\n }\n if (edges.start) {\n return scrollFade.start;\n }\n if (edges.end) {\n return scrollFade.end;\n }\n return false;\n}\nexport { scrollFade, scrollFadeOf };"],"mappings":";;AAyBA,MAAMC,SAASD,QAAQE;AAKL,GAA+CD;AAC9C,GAA8CA;AACpD,GAA+CA,SAA4BA;AACxF,MAAME,aAAa;CACjBC,MAAM;EACJC,QAAQ;EACRC,OAAO;CACT;CACAC,KAAK;EACHF,QAAQ;EACRC,OAAO;CACT;CACAE,OAAO;EACLH,QAAQ;EACRC,OAAO;CACT;AACF;;;;;AAMA,SAASG,aAAaC,OAGnB;CACD,IAAIA,MAAMF,SAASE,MAAMH,KACvB,OAAOJ,WAAWC;CAEpB,IAAIM,MAAMF,OACR,OAAOL,WAAWK;CAEpB,IAAIE,MAAMH,KACR,OAAOJ,WAAWI;CAEpB,OAAO;AACT"}