@astryxdesign/core 0.7.16 → 0.7.17-canary.g49a475f

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 (156) hide show
  1. package/dist/Button/Button.d.ts.map +1 -1
  2. package/dist/Button/Button.js +10 -3
  3. package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
  4. package/dist/CheckboxInput/CheckboxInput.js +5 -2
  5. package/dist/ComplexSelector/ComplexSelector.d.ts.map +1 -1
  6. package/dist/ComplexSelector/ComplexSelector.js +10 -4
  7. package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
  8. package/dist/ContextMenu/ContextMenu.js +20 -8
  9. package/dist/DropdownMenu/menuItemRoles.d.ts.map +1 -1
  10. package/dist/DropdownMenu/menuItemRoles.js +5 -2
  11. package/dist/Icon/Icon.js +4 -4
  12. package/dist/Icon/globalIconRegistry.d.ts.map +1 -1
  13. package/dist/Icon/globalIconRegistry.js +16 -6
  14. package/dist/Icon/useIcon.js +5 -5
  15. package/dist/Item/Item.d.ts +49 -67
  16. package/dist/Item/Item.d.ts.map +1 -1
  17. package/dist/Item/Item.js +91 -99
  18. package/dist/Link/Link.d.ts.map +1 -1
  19. package/dist/Link/Link.js +6 -1
  20. package/dist/List/ListItem.d.ts +5 -7
  21. package/dist/List/ListItem.d.ts.map +1 -1
  22. package/dist/List/ListItem.js +11 -1
  23. package/dist/MetadataList/MetadataListItem.d.ts +7 -2
  24. package/dist/MetadataList/MetadataListItem.d.ts.map +1 -1
  25. package/dist/MetadataList/MetadataListItem.js +3 -1
  26. package/dist/MobileNav/MobileNav.d.ts.map +1 -1
  27. package/dist/MobileNav/MobileNav.js +32 -23
  28. package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
  29. package/dist/MultiSelector/MultiSelector.js +15 -7
  30. package/dist/Pagination/Pagination.d.ts +25 -2
  31. package/dist/Pagination/Pagination.d.ts.map +1 -1
  32. package/dist/Pagination/Pagination.js +87 -47
  33. package/dist/Selector/Selector.d.ts.map +1 -1
  34. package/dist/Selector/Selector.js +11 -5
  35. package/dist/Swipe/SwipeActionsLayer.d.ts +11 -0
  36. package/dist/Swipe/SwipeActionsLayer.d.ts.map +1 -0
  37. package/dist/Swipe/SwipeActionsLayer.js +358 -0
  38. package/dist/Swipe/createSwipe.d.ts +26 -0
  39. package/dist/Swipe/createSwipe.d.ts.map +1 -0
  40. package/dist/Swipe/createSwipe.js +97 -0
  41. package/dist/Swipe/index.d.ts +3 -0
  42. package/dist/Swipe/index.d.ts.map +1 -0
  43. package/dist/Swipe/index.js +5 -0
  44. package/dist/Swipe/swipeHost.d.ts +208 -0
  45. package/dist/Swipe/swipeHost.d.ts.map +1 -0
  46. package/dist/Swipe/swipeHost.js +122 -0
  47. package/dist/Swipe/swipeHost.stylex.d.ts +21 -0
  48. package/dist/Swipe/swipeHost.stylex.d.ts.map +1 -0
  49. package/dist/Swipe/swipeHost.stylex.js +27 -0
  50. package/dist/Swipe/useSwipeAction.d.ts +219 -0
  51. package/dist/Swipe/useSwipeAction.d.ts.map +1 -0
  52. package/dist/Swipe/useSwipeAction.js +1120 -0
  53. package/dist/Table/TableCell.d.ts.map +1 -1
  54. package/dist/Table/TableCell.js +2 -2
  55. package/dist/Table/TableHeaderCell.d.ts.map +1 -1
  56. package/dist/Table/TableHeaderCell.js +25 -3
  57. package/dist/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
  58. package/dist/Table/plugins/selection/useTableSelection.js +20 -2
  59. package/dist/Table/tableContextMenu.d.ts +6 -0
  60. package/dist/Table/tableContextMenu.d.ts.map +1 -1
  61. package/dist/Table/tableContextMenu.js +10 -1
  62. package/dist/Toast/Toast.d.ts.map +1 -1
  63. package/dist/Toast/Toast.js +10 -5
  64. package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
  65. package/dist/Tokenizer/Tokenizer.js +6 -1
  66. package/dist/TopNav/TopNav.d.ts.map +1 -1
  67. package/dist/TopNav/TopNav.js +6 -1
  68. package/dist/astryx.css +29 -18
  69. package/dist/dragToSnapPoints/compositorSettle.d.ts +38 -0
  70. package/dist/dragToSnapPoints/compositorSettle.d.ts.map +1 -0
  71. package/dist/dragToSnapPoints/compositorSettle.js +140 -0
  72. package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts +29 -5
  73. package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts.map +1 -1
  74. package/dist/dragToSnapPoints/createDragToSnapPoints.js +123 -7
  75. package/dist/hooks/useHotkeys.d.ts +1 -1
  76. package/dist/index.d.ts +1 -0
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +1 -0
  79. package/dist/motion/uikit/swipeActions.d.ts +148 -0
  80. package/dist/motion/uikit/swipeActions.d.ts.map +1 -0
  81. package/dist/motion/uikit/swipeActions.js +150 -0
  82. package/dist/privateAttributes/pressHeld.stylex.d.ts +5 -0
  83. package/dist/privateAttributes/pressHeld.stylex.d.ts.map +1 -0
  84. package/dist/privateAttributes/pressHeld.stylex.js +31 -0
  85. package/dist/theme/defineTheme.d.ts +19 -1
  86. package/dist/theme/defineTheme.d.ts.map +1 -1
  87. package/dist/theme/defineTheme.js +18 -0
  88. package/dist/theme/generateThemeRules.d.ts.map +1 -1
  89. package/dist/theme/generateThemeRules.js +121 -76
  90. package/dist/theme/index.d.ts +1 -1
  91. package/dist/theme/index.d.ts.map +1 -1
  92. package/dist/theme/mergeComponents.d.ts +2 -1
  93. package/dist/theme/mergeComponents.d.ts.map +1 -1
  94. package/dist/theme/mergeComponents.js +18 -2
  95. package/dist/utils/pressFeedback.d.ts.map +1 -1
  96. package/dist/utils/pressFeedback.js +4 -1
  97. package/package.json +10 -5
  98. package/src/Button/Button.tsx +16 -5
  99. package/src/Chat/useChatDictation.doc.mjs +246 -0
  100. package/src/CheckboxInput/CheckboxInput.tsx +5 -1
  101. package/src/ComplexSelector/ComplexSelector.tsx +20 -8
  102. package/src/ContextMenu/ContextMenu.tsx +22 -12
  103. package/src/DropdownMenu/menuItemRoles.ts +9 -6
  104. package/src/Icon/Icon.tsx +4 -4
  105. package/src/Icon/globalIconRegistry.tsx +27 -15
  106. package/src/Icon/useIcon.ts +5 -5
  107. package/src/Item/Item.doc.mjs +8 -2
  108. package/src/Item/Item.tsx +143 -158
  109. package/src/Link/Link.tsx +14 -6
  110. package/src/List/ListItem.doc.mjs +21 -6
  111. package/src/List/ListItem.tsx +16 -7
  112. package/src/MetadataList/MetadataListItem.doc.mjs +36 -1
  113. package/src/MetadataList/MetadataListItem.tsx +7 -2
  114. package/src/MobileNav/MobileNav.tsx +45 -28
  115. package/src/MultiSelector/MultiSelector.tsx +28 -11
  116. package/src/Pagination/Pagination.doc.mjs +39 -3
  117. package/src/Pagination/Pagination.tsx +122 -55
  118. package/src/Selector/Selector.tsx +21 -9
  119. package/src/Swipe/SwipeActionsLayer.tsx +438 -0
  120. package/src/Swipe/createSwipe.doc.mjs +118 -0
  121. package/src/Swipe/createSwipe.ts +112 -0
  122. package/src/Swipe/index.ts +6 -0
  123. package/src/Swipe/swipeHost.stylex.ts +27 -0
  124. package/src/Swipe/swipeHost.ts +255 -0
  125. package/src/Swipe/useSwipeAction.ts +1413 -0
  126. package/src/Table/Table.doc.mjs +1 -1
  127. package/src/Table/TableCell.tsx +5 -4
  128. package/src/Table/TableHeaderCell.tsx +31 -3
  129. package/src/Table/plugins/selection/useTableSelection.tsx +18 -2
  130. package/src/Table/tableContextMenu.tsx +15 -1
  131. package/src/Toast/Toast.tsx +28 -5
  132. package/src/Tokenizer/Tokenizer.tsx +18 -5
  133. package/src/TopNav/TopNav.tsx +17 -1
  134. package/src/dragToSnapPoints/compositorSettle.ts +175 -0
  135. package/src/dragToSnapPoints/createDragToSnapPoints.ts +146 -11
  136. package/src/hooks/useHotkeys.doc.mjs +4 -4
  137. package/src/hooks/useHotkeys.ts +1 -1
  138. package/src/index.ts +1 -0
  139. package/src/motion/MEASUREMENTS.md +16 -0
  140. package/src/motion/README.md +1 -0
  141. package/src/motion/uikit/swipeActions.ts +142 -0
  142. package/src/privateAttributes/pressHeld.stylex.ts +31 -0
  143. package/src/theme/defineTheme.ts +23 -1
  144. package/src/theme/generateThemeRules.ts +194 -116
  145. package/src/theme/index.ts +1 -0
  146. package/src/theme/mergeComponents.ts +15 -5
  147. package/src/theme/syntax/useSyntaxTheme.doc.mjs +95 -0
  148. package/src/utils/pressFeedback.ts +8 -1
  149. package/dist/Item/ItemSwipeLayer.d.ts +0 -51
  150. package/dist/Item/ItemSwipeLayer.d.ts.map +0 -1
  151. package/dist/Item/ItemSwipeLayer.js +0 -282
  152. package/dist/Item/useSwipeAction.d.ts +0 -77
  153. package/dist/Item/useSwipeAction.d.ts.map +0 -1
  154. package/dist/Item/useSwipeAction.js +0 -551
  155. package/src/Item/ItemSwipeLayer.tsx +0 -400
  156. package/src/Item/useSwipeAction.ts +0 -752
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../src/Table/TableCell.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAQ5C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAiBjD,gDAAgD;AAChD,MAAM,WAAW,cAAe,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IACrE,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,0FAA0F;IAC1F,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,CAAC;IAChD,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,OAA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;IACvC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;CAC1C;AAiID;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,MAAM,EACN,GAAG,EACH,SAAS,EAAE,iBAAiB,EAC5B,KAAK,EAAE,aAAa,EACpB,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,cAAc,+BAwDhB;yBAhEe,SAAS"}
@@ -16,7 +16,7 @@
16
16
  import * as stylex from '@stylexjs/stylex';
17
17
  import "../theme/tokens.stylex.js";
18
18
  import { borderVars, colorVars, spacingVars, typeScaleVars } from "../theme/tokens.stylex.js";
19
- import { wrapInTableContextMenu } from "./tableContextMenu.js";
19
+ import { hasTableContextActions, wrapInTableContextMenu } from "./tableContextMenu.js";
20
20
  import "./table.stylex.js";
21
21
  import { overflowStyles, wrapStyles, containerEdgeStyles, tableRowMarker } from "./table.stylex.js";
22
22
  import { useTableContext, buildDividerStyles, mergeXStyle } from "./useTableCellStyles.js";
@@ -168,7 +168,7 @@ export function TableCell({
168
168
  ...props
169
169
  }) {
170
170
  const ctx = useTableContext();
171
- const hasContextMenu = typeof contextMenuActions === 'function' || Array.isArray(contextMenuActions) && contextMenuActions.length > 0;
171
+ const hasContextMenu = hasTableContextActions(contextMenuActions);
172
172
 
173
173
  // When the cell owns a context menu, its density padding is relocated onto
174
174
  // the right-click trigger wrapper (see `content` below) so the entire cell —
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeaderCell.d.ts","sourceRoot":"","sources":["../../src/Table/TableHeaderCell.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAS5C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,C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,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;IACvC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;CAC1C;AAmED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,MAAM,EACN,GAAG,EACH,SAAS,EAAE,iBAAiB,EAC5B,KAAK,EAAE,aAAa,EACpB,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,oBAAoB,+BAgDtB;yBAxDe,eAAe"}
@@ -18,7 +18,7 @@ import "../theme/tokens.stylex.js";
18
18
  import { colorVars, spacingVars, fontWeightVars, typeScaleVars, borderVars } from "../theme/tokens.stylex.js";
19
19
  import { overflowStyles, containerEdgeStyles } from "./table.stylex.js";
20
20
  import { useTableContext, mergeXStyle } from "./useTableCellStyles.js";
21
- import { wrapInTableContextMenu } from "./tableContextMenu.js";
21
+ import { hasTableContextActions, wrapInTableContextMenu } from "./tableContextMenu.js";
22
22
  import { mergeProps } from "../utils/index.js";
23
23
  import { themeProps } from "../utils/themeProps.js";
24
24
 
@@ -64,6 +64,22 @@ const headerDividerStyles = {
64
64
  $$css: true
65
65
  }
66
66
  };
67
+ const headerTriggerStyles = {
68
+ unpositioned: {
69
+ kVAEAm: "x1uhb9sk",
70
+ $$css: true
71
+ }
72
+ };
73
+
74
+ // Holds the context menu's cursor anchor in place of its unpositioned
75
+ // trigger, so the menu still scrolls with the table. A plugin's own position,
76
+ // such as a sticky column, wins.
77
+ const headerMenuCellStyles = {
78
+ cell: {
79
+ kVAEAm: "x1n2onr6",
80
+ $$css: true
81
+ }
82
+ };
67
83
  const dividerColumnStyles = {
68
84
  cell: {
69
85
  ke9TFa: "xw8tdv1 x1qlsc9e",
@@ -106,6 +122,7 @@ export function TableHeaderCell({
106
122
  // Header cells always get the bottom divider (separates header from body).
107
123
  // When used standalone (no table context) the cell renders plain, with no
108
124
  // density/divider styles.
125
+ const hasContextMenu = hasTableContextActions(contextMenuActions);
109
126
  const cellStyles = [];
110
127
  if (ctx) {
111
128
  cellStyles.push(headerStyles.cell, densityStyles[ctx.density], headerDividerStyles.cell, overflowStyles.cell, containerEdgeStyles[ctx.density]);
@@ -113,11 +130,16 @@ export function TableHeaderCell({
113
130
  if (ctx.dividers === 'columns' || ctx.dividers === 'grid') {
114
131
  cellStyles.push(dividerColumnStyles.cell);
115
132
  }
133
+ if (hasContextMenu) {
134
+ cellStyles.push(headerMenuCellStyles.cell);
135
+ }
116
136
  }
117
137
 
118
138
  // The cell owns the context-menu wrapper so it controls how the menu
119
- // interacts with its padding / content. No-op when no actions.
120
- const content = wrapInTableContextMenu(children, contextMenuActions);
139
+ // interacts with its padding / content. No-op when no actions. Inside a
140
+ // Table the wrapper stays unpositioned, so a header plugin's overlay, such
141
+ // as a resize boundary, positions against the cell and sits on its edge.
142
+ const content = wrapInTableContextMenu(children, contextMenuActions, ctx && hasContextMenu ? headerTriggerStyles.unpositioned : undefined);
121
143
  return /*#__PURE__*/_jsx("th", {
122
144
  ref: ref,
123
145
  ...props,
@@ -1 +1 @@
1
- {"version":3,"file":"useTableSelection.d.ts","sourceRoot":"","sources":["../../../../src/Table/plugins/selection/useTableSelection.tsx"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAAC,WAAW,EAAkC,MAAM,aAAa,CAAC;AAiB9E,MAAM,WAAW,uBAAuB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACxE,uCAAuC;IACvC,iBAAiB,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IACxC,6EAA6E;IAC7E,YAAY,EAAE,CAAC,KAAK,EAAE;QAAC,IAAI,EAAE,CAAC,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAC;IAC9D,kDAAkD;IAClD,WAAW,EAAE,CAAC,KAAK,EAAE;QAAC,aAAa,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAC;IACvD,mDAAmD;IACnD,gBAAgB,EAAE,MAAM,OAAO,CAAC;IAChC,iFAAiF;IACjF,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC;IACnC,+FAA+F;IAC/F,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IAC3C,oGAAoG;IACpG,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IACxC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAClC;;;;;;;;;;;;;;OAcG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAwPD,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjE,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC,GACjC,WAAW,CAAC,CAAC,CAAC,CA8FhB"}
1
+ {"version":3,"file":"useTableSelection.d.ts","sourceRoot":"","sources":["../../../../src/Table/plugins/selection/useTableSelection.tsx"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAC,WAAW,EAAkC,MAAM,aAAa,CAAC;AAkB9E,MAAM,WAAW,uBAAuB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACxE,uCAAuC;IACvC,iBAAiB,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IACxC,6EAA6E;IAC7E,YAAY,EAAE,CAAC,KAAK,EAAE;QAAC,IAAI,EAAE,CAAC,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAC;IAC9D,kDAAkD;IAClD,WAAW,EAAE,CAAC,KAAK,EAAE;QAAC,aAAa,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAC;IACvD,mDAAmD;IACnD,gBAAgB,EAAE,MAAM,OAAO,CAAC;IAChC,iFAAiF;IACjF,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC;IACnC,+FAA+F;IAC/F,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IAC3C,oGAAoG;IACpG,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IACxC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAClC;;;;;;;;;;;;;;OAcG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAoQD,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjE,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC,GACjC,WAAW,CAAC,CAAC,CAAC,CA8FhB"}
@@ -29,7 +29,10 @@
29
29
  * Because the background is an inline style, it outranks anything
30
30
  * userland can layer on with StyleX. `hasRowHighlight: false` is the
31
31
  * supported way to reclaim the row background; `aria-selected` is
32
- * unaffected by it.
32
+ * unaffected by it. A selected row also carries the `table-row` `selected`
33
+ * theme state (`data-selected="selected"`), whatever `hasRowHighlight` is.
34
+ * A theme styles the row there. To recolor the wash, a theme sets
35
+ * `--color-accent-muted`, which the inline background reads.
33
36
  *
34
37
  * SYNC: When modified, update these files to stay in sync:
35
38
  * - /packages/core/src/Table/useTableSelection.doc.mjs (config prop table)
@@ -45,6 +48,7 @@ import { pixel } from "../../columnUtils.js";
45
48
  import { registerEnglishFallback, useComponentTranslator } from "../../../i18n/useComponentTranslator.js";
46
49
  import english from "../../../i18n/generated-english/Table/plugins/selection/useTableSelection.generated.js";
47
50
  import { createSharedContext } from "../../../utils/sharedContext.js";
51
+ import { themeDataAttributes } from "../../../utils/themeProps.js";
48
52
  registerEnglishFallback(english);
49
53
  import { registerFixedHeightColumn } from "../../tableColumnAdmission.js";
50
54
  import { registerCountIndependentPlugin } from "../../tableRowContextUsage.js";
@@ -81,11 +85,18 @@ function createSelectionStore(configRef) {
81
85
  };
82
86
  }
83
87
 
88
+ /** The `table-row` target's theme state attribute for a selected row. */
89
+ const SELECTED_STATE = themeDataAttributes({
90
+ selected: 'selected'
91
+ });
92
+
84
93
  /**
85
94
  * Apply or remove selection styling on a <tr> element.
86
95
  *
87
96
  * `aria-selected` tracks selection on its own: it is the semantic half of
88
- * the state and stays correct whether or not the row is painted.
97
+ * the state and stays correct whether or not the row is painted. The
98
+ * `table-row` target's `selected` theme state follows it, so a theme can
99
+ * style a selected row.
89
100
  */
90
101
  function applyRowSelectionStyle(el, isSelected, hasRowHighlight) {
91
102
  if (isSelected) {
@@ -93,6 +104,13 @@ function applyRowSelectionStyle(el, isSelected, hasRowHighlight) {
93
104
  } else {
94
105
  el.removeAttribute('aria-selected');
95
106
  }
107
+ for (const [name, value] of Object.entries(SELECTED_STATE)) {
108
+ if (isSelected) {
109
+ el.setAttribute(name, value ?? '');
110
+ } else {
111
+ el.removeAttribute(name);
112
+ }
113
+ }
96
114
  // Written on every pass, not just when painting: the flag can flip while a
97
115
  // row is already selected, and the wash has to come back off.
98
116
  const wash = isSelected && hasRowHighlight ? selectedBgColor : '';
@@ -24,6 +24,12 @@ import type { TableContextAction, TableContextActions } from './types.js';
24
24
  * ```
25
25
  */
26
26
  export declare function resolveContextActions(actions: TableContextActions | undefined): TableContextAction[];
27
+ /**
28
+ * Whether `actions` give a cell a context menu: a getter, or a non-empty array.
29
+ * Cells read it to style the menu's trigger, and `wrapInTableContextMenu` to
30
+ * decide whether to wrap, so the two always agree.
31
+ */
32
+ export declare function hasTableContextActions(actions: TableContextActions | undefined): actions is NonNullable<TableContextActions>;
27
33
  /**
28
34
  * Wrap a table element (a header cell's content or a body cell) in a right-click
29
35
  * context menu rendering the aggregated `actions`. Accepts a static array or a
@@ -1 +1 @@
1
- {"version":3,"file":"tableContextMenu.d.ts","sourceRoot":"","sources":["../../src/Table/tableContextMenu.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,OAAO,EAAW,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAC,kBAAkB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAErE;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,mBAAmB,GAAG,SAAS,GACvC,kBAAkB,EAAE,CAKtB;AAoFD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,mBAAmB,GAAG,SAAS,EACxC,aAAa,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAC5C,SAAS,CAuBX"}
1
+ {"version":3,"file":"tableContextMenu.d.ts","sourceRoot":"","sources":["../../src/Table/tableContextMenu.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,OAAO,EAAW,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAC,kBAAkB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAErE;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,mBAAmB,GAAG,SAAS,GACvC,kBAAkB,EAAE,CAKtB;AAoFD;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,mBAAmB,GAAG,SAAS,GACvC,OAAO,IAAI,WAAW,CAAC,mBAAmB,CAAC,CAK7C;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,mBAAmB,GAAG,SAAS,EACxC,aAAa,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAC5C,SAAS,CAuBX"}
@@ -110,6 +110,15 @@ function LazyTableContextMenu({
110
110
  });
111
111
  }
112
112
 
113
+ /**
114
+ * Whether `actions` give a cell a context menu: a getter, or a non-empty array.
115
+ * Cells read it to style the menu's trigger, and `wrapInTableContextMenu` to
116
+ * decide whether to wrap, so the two always agree.
117
+ */
118
+ export function hasTableContextActions(actions) {
119
+ return typeof actions === 'function' || Array.isArray(actions) && actions.length > 0;
120
+ }
121
+
113
122
  /**
114
123
  * Wrap a table element (a header cell's content or a body cell) in a right-click
115
124
  * context menu rendering the aggregated `actions`. Accepts a static array or a
@@ -128,7 +137,7 @@ export function wrapInTableContextMenu(element, actions, triggerXstyle) {
128
137
  triggerXstyle: triggerXstyle
129
138
  });
130
139
  }
131
- if (!actions || actions.length === 0) {
140
+ if (!hasTableContextActions(actions)) {
132
141
  return element;
133
142
  }
134
143
  // item (it looked like "ascending" was always selected). Focus moves only
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../src/Toast/Toast.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAa,SAAS,EAAY,MAAM,OAAO,CAAC;AAiB5D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAGrD,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAkB,KAAK,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AAqG9E,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAChD;;;;OAIG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACtC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,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAChD;;;;OAIG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACtC;AAED,UAAU,iBAAkB,SAAQ,UAAU;IAC5C,gBAAgB,EAAE,qBAAqB,CAAC;IACxC,uDAAuD;IACvD,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,6EAA6E;IAC7E,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BAEtC;yBAFe,KAAK;;;AAOrB,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,SAAiB,EACjB,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,YAAmB,EACnB,QAAQ,EACR,0BAAkC,EAClC,eAAuB,EACvB,GAAG,IAAI,EACR,EAAE,iBAAiB,+BAgRnB;yBAhSe,YAAY"}
@@ -27,6 +27,8 @@ import { INTERACTIVE_SELECTORS } from "../hooks/useClickableContainer.js";
27
27
  import { useAnnounceRenderedText } from "../hooks/useAnnounceRenderedText.js";
28
28
  import { useTheme } from "../theme/index.js";
29
29
  import { MediaTheme } from "../theme/MediaTheme.js";
30
+ import { pickMediaMode } from "../hooks/useAutoMediaMode.js";
31
+ import { parseColor } from "../utils/color.js";
30
32
  import { pickDataAttributes, themeProps } from "../utils/themeProps.js";
31
33
  import { useToastGesture } from "./useToastGesture.js";
32
34
  import { registerEnglishFallback, useComponentTranslator } from "../i18n/useComponentTranslator.js";
@@ -247,13 +249,16 @@ export function ToastSurface({
247
249
  onDismiss('manual');
248
250
  }, [onDismiss]);
249
251
 
250
- // The surface is *usually* dark in light mode and light in dark mode, but a
251
- // theme can define --color-background-inverted as anything — so the mode is
252
- // measured, not assumed. This is only the pre-measurement fallback.
252
+ // Before the measurement, take the side from the theme's resolved surface by
253
+ // the measurement's rule. If the surface is translucent, or parseColor cannot
254
+ // read it or an on-color, use the mode.
253
255
  const {
254
- mode
256
+ mode,
257
+ tokens
255
258
  } = useTheme();
256
- const fallbackMediaMode = isError || mode === 'light' ? 'dark' : 'light';
259
+ const surface = parseColor(tokens[isError ? '--color-background-error-inverted' : '--color-background-inverted'] ?? '');
260
+ const fromTokens = surface !== null && surface.a >= 1 ? pickMediaMode(surface, null, parseColor(tokens['--color-on-dark'] ?? ''), parseColor(tokens['--color-on-light'] ?? '')) : null;
261
+ const fallbackMediaMode = fromTokens === 'dark' || fromTokens === 'light' ? fromTokens : isError || mode === 'light' ? 'dark' : 'light';
257
262
  return /*#__PURE__*/_jsx("div", {
258
263
  ...pickDataAttributes(rest),
259
264
  ref: rootRef,
@@ -1 +1 @@
1
- {"version":3,"file":"Tokenizer.d.ts","sourceRoot":"","sources":["../../src/Tokenizer/Tokenizer.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,EAYZ,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAWf,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,kCAAkC,CAAC;AAM1C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAGL,KAAK,WAAW,EAKjB,MAAM,UAAU,CAAC;AAKlB,OAAO,EAAiB,KAAK,QAAQ,EAAC,MAAM,SAAS,CAAC;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,GAAG;IACF;;;OAGG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,GAAG,iBAAiB,CAAC,CAAC;CACvD,CAAC;AAulBF,wBAAgB,SAAS,CAAC,CAAC,SAAS,cAAc,EAChD,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAC/B,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;AACrB,wBAAgB,SAAS,CAAC,CAAC,SAAS,cAAc,EAChD,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,GACvB,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;yBAFL,SAAS"}
@@ -126,6 +126,10 @@ const TRACK_FADE_FROM_RIGHT = `linear-gradient(to left, transparent ${TOKEN_ROW_
126
126
  // Kept in sync with useEndLaneReserve: wrapperWithTokens reads the custom
127
127
  // property directly, to keep token rows and the input short of the lane.
128
128
  const END_LANE_RESERVE_VAR = '--_tokenizer-end-lane-reserve';
129
+ const INPUT_TEXT_INSET = `calc(${spacingVars['--spacing-2']} - ${spacingVars['--spacing-1']} + 1px)`;
130
+ // The content width an empty, focused input has beyond its inset, so its
131
+ // caret has room to draw.
132
+ const INPUT_CARET_ROOM = '2px';
129
133
  const styles = {
130
134
  wrapper: {
131
135
  kVAEAm: "x1n2onr6",
@@ -178,10 +182,11 @@ const styles = {
178
182
  kVAEAm: "x1n2onr6",
179
183
  kB7OPa: "x9f619",
180
184
  kY2c9j: "x1ja2u2z",
181
- k7Eaqz: "x1fns5xo x14dcwvw",
185
+ k7Eaqz: "x1fns5xo xcfsnm0 x1hag6py",
182
186
  kUk6DE: "xfoc8du x1q9bidn",
183
187
  kzqmXN: "xnalus7",
184
188
  keTefX: "x1lziwak x1rq9t4t",
189
+ k71WvV: "x14z9mp x14ej1m0",
185
190
  kZCmMZ: "x2a0j69 x1jwxvv4",
186
191
  kwRFfy: "xyri2b",
187
192
  $$css: true
@@ -1 +1 @@
1
- {"version":3,"file":"TopNav.d.ts","sourceRoot":"","sources":["../../src/TopNav/TopNav.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAuI5C,MAAM,WAAW,WAAY,SAAQ,SAAS,CAAC,WAAW,CAAC;IACzD,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,UAAU,EACV,KAAK,EAAE,cAAc,EACrB,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,WAAW,sCA4Hb;yBAxIe,MAAM"}
1
+ {"version":3,"file":"TopNav.d.ts","sourceRoot":"","sources":["../../src/TopNav/TopNav.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AA+I5C,MAAM,WAAW,WAAY,SAAQ,SAAS,CAAC,WAAW,CAAC;IACzD,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,UAAU,EACV,KAAK,EAAE,cAAc,EACrB,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,WAAW,sCAoIb;yBAhJe,MAAM"}
@@ -133,7 +133,12 @@ export function TopNav({
133
133
  ...{
134
134
  className: "x78zum5 x6s0dn4 xkz0k9k xeuugli"
135
135
  },
136
- children: heading
136
+ children: typeof heading === 'string' || typeof heading === 'number' ? /*#__PURE__*/_jsx("span", {
137
+ ...{
138
+ className: "xeuugli xb3r6kr xlyipyv xuxw1ft"
139
+ },
140
+ children: heading
141
+ }) : heading
137
142
  }), /*#__PURE__*/_jsxs("div", {
138
143
  ...{
139
144
  className: "x78zum5 x6s0dn4 xzye2dw x2lah0s xvc5jky"
package/dist/astryx.css CHANGED
@@ -1088,6 +1088,7 @@
1088
1088
  .x1s85apg:not(#\#):not(#\#):not(#\#){display:none}
1089
1089
  .x11ke7fs:not(#\#):not(#\#):not(#\#){display:var(--separator-display)}
1090
1090
  .xbh8q5q:not(#\#):not(#\#):not(#\#){fill:none}
1091
+ .xj12m9j:not(#\#):not(#\#):not(#\#){filter:opacity(.5)}
1091
1092
  .x1r8uery:not(#\#):not(#\#):not(#\#){flex-basis:0}
1092
1093
  .x1l7klhg:not(#\#):not(#\#):not(#\#){flex-basis:100%}
1093
1094
  .xrjwirl:not(#\#):not(#\#):not(#\#){flex-basis:196px}
@@ -1215,6 +1216,7 @@
1215
1216
  .x1clt5hq:not(#\#):not(#\#):not(#\#){grid-template-rows:subgrid}
1216
1217
  .xxydokm:not(#\#):not(#\#):not(#\#){hyphens:manual}
1217
1218
  .xtijo5x:not(#\#):not(#\#):not(#\#){inset-inline-end:0}
1219
+ .x1eu7cjg:not(#\#):not(#\#):not(#\#){inset-inline-end:100%}
1218
1220
  .xz03a8w:not(#\#):not(#\#):not(#\#){inset-inline-end:2px}
1219
1221
  .x1woyocn:not(#\#):not(#\#):not(#\#){inset-inline-end:auto}
1220
1222
  .x13oyzgk:not(#\#):not(#\#):not(#\#){inset-inline-end:var(--_textarea-inline-padding)}
@@ -1224,6 +1226,7 @@
1224
1226
  .x1mcfs9z:not(#\#):not(#\#):not(#\#){inset-inline-end:var(--spacing-3)}
1225
1227
  .xqxgn94:not(#\#):not(#\#):not(#\#){inset-inline-end:var(--x-insetInlineEnd)}
1226
1228
  .x1o0tod:not(#\#):not(#\#):not(#\#){inset-inline-start:0}
1229
+ .x2hswfz:not(#\#):not(#\#):not(#\#){inset-inline-start:100%}
1227
1230
  .x9p6ekw:not(#\#):not(#\#):not(#\#){inset-inline-start:14px}
1228
1231
  .xaoy8p5:not(#\#):not(#\#):not(#\#){inset-inline-start:2px}
1229
1232
  .xbudbmw:not(#\#):not(#\#):not(#\#){inset-inline-start:50%}
@@ -1511,6 +1514,8 @@
1511
1514
  .xv8yid9:not(#\#):not(#\#):not(#\#){transform:translate(25%,25%)}
1512
1515
  .x4v1no5:not(#\#):not(#\#):not(#\#){transform:translate(50%,50%)}
1513
1516
  .x145au52:not(#\#):not(#\#):not(#\#){transform:translate3d(calc(-1 * var(--_item-swipe-travel,0px)),0,0)}
1517
+ .xj2142y:not(#\#):not(#\#):not(#\#){transform:translate3d(calc(calc(var(--_item-swipe-pin,0px) - var(--_item-swipe-sign,1) * min(var(--_item-swipe-sign,1) * var(--_item-swipe-travel,0px),var(--_item-swipe-open,0px))) + var(--_item-swipe-slide,0px) * var(--_item-swipe-confirm,0)),0,0)}
1518
+ .x1bdunyo:not(#\#):not(#\#):not(#\#){transform:translate3d(calc(var(--_item-swipe-pin,0px) - var(--_item-swipe-sign,1) * min(var(--_item-swipe-sign,1) * var(--_item-swipe-travel,0px),var(--_item-swipe-open,0px))),0,0)}
1514
1519
  .x1kncwj0:not(#\#):not(#\#):not(#\#){transform:translate3d(var(--_item-swipe-travel,0px),0,0)}
1515
1520
  .x5i6ehr:not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}
1516
1521
  .xuuh30:not(#\#):not(#\#):not(#\#){transform:translateX(-50%)}
@@ -1551,9 +1556,7 @@
1551
1556
  .x11bq7d0:not(#\#):not(#\#):not(#\#){transition-duration:.06s}
1552
1557
  .xx6bhzk:not(#\#):not(#\#):not(#\#){transition-duration:.15s}
1553
1558
  .xjd9b36:not(#\#):not(#\#):not(#\#){transition-duration:1ms}
1554
- .xxfakuu:not(#\#):not(#\#):not(#\#){transition-duration:var(--_item-swipe-duration,0s),var(--_item-swipe-duration,0s)}
1555
1559
  .x2rcmwa:not(#\#):not(#\#):not(#\#){transition-duration:var(--duration-fast-max)}
1556
- .x15p14ac:not(#\#):not(#\#):not(#\#){transition-duration:var(--duration-fast-min),var(--_item-swipe-duration,0s)}
1557
1560
  .xkvfbh3:not(#\#):not(#\#):not(#\#){transition-duration:var(--duration-fast-min)}
1558
1561
  .x1tw3moq:not(#\#):not(#\#):not(#\#){transition-duration:var(--duration-fast),0s}
1559
1562
  .xuedmi6:not(#\#):not(#\#):not(#\#){transition-duration:var(--duration-fast)}
@@ -1566,7 +1569,6 @@
1566
1569
  .xzo0q3i:not(#\#):not(#\#):not(#\#){transition-property:background-color,color,border-color}
1567
1570
  .xs2xxs2:not(#\#):not(#\#):not(#\#){transition-property:background-color,color}
1568
1571
  .x1e8aii2:not(#\#):not(#\#):not(#\#){transition-property:background-color,opacity}
1569
- .xuo13n2:not(#\#):not(#\#):not(#\#){transition-property:background-color,transform}
1570
1572
  .x15406qy:not(#\#):not(#\#):not(#\#){transition-property:background-color}
1571
1573
  .xrafxwg:not(#\#):not(#\#):not(#\#){transition-property:background-image,background-color,color,opacity,transform}
1572
1574
  .x12qzo2w:not(#\#):not(#\#):not(#\#){transition-property:background-image}
@@ -1600,15 +1602,12 @@
1600
1602
  .x18dpk69:not(#\#):not(#\#):not(#\#){transition-property:transform,background-color}
1601
1603
  .xwcsmn1:not(#\#):not(#\#):not(#\#){transition-property:transform,opacity}
1602
1604
  .xh3q6i0:not(#\#):not(#\#):not(#\#){transition-property:transform,width,height}
1603
- .x13zkoj4:not(#\#):not(#\#):not(#\#){transition-property:transform,width}
1604
1605
  .x11xpdln:not(#\#):not(#\#):not(#\#){transition-property:transform}
1605
1606
  .x74b7sa:not(#\#):not(#\#):not(#\#){transition-property:visibility}
1606
- .xn34ekc:not(#\#):not(#\#):not(#\#){transition-timing-function:ease-out,ease-out}
1607
1607
  .x9lcvmn:not(#\#):not(#\#):not(#\#){transition-timing-function:ease-out}
1608
1608
  .xwji4o3:not(#\#):not(#\#):not(#\#){transition-timing-function:ease}
1609
1609
  .xcj1dhv:not(#\#):not(#\#):not(#\#){transition-timing-function:linear}
1610
1610
  .x1j6inz:not(#\#):not(#\#):not(#\#){transition-timing-function:var(--ease-exit)}
1611
- .x158wxwp:not(#\#):not(#\#):not(#\#){transition-timing-function:var(--ease-standard),ease-out}
1612
1611
  .xlr8y92:not(#\#):not(#\#):not(#\#){transition-timing-function:var(--ease-standard)}
1613
1612
  .x3sa99s:not(#\#):not(#\#):not(#\#){translate:0 -50%}
1614
1613
  .x1p0n03b:not(#\#):not(#\#):not(#\#){translate:0 calc(-10px - var(--_slider-fill-start) * (100cqb - 20px))}
@@ -1699,6 +1698,7 @@
1699
1698
  .x1y40yee:popover-open:not(#\#):not(#\#):not(#\#){display:flex}
1700
1699
  .xl3jo06:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){float:left}
1701
1700
  .x1vjmz92:is([aria-pressed="true"]):not(#\#):not(#\#):not(#\#){forced-color-adjust:none}
1701
+ .x14ej1m0:placeholder-shown:focus:not(:read-only):not(#\#):not(#\#):not(#\#){margin-inline-end:calc(-1 * 2px)}
1702
1702
  .x1rq9t4t:placeholder-shown:is(:not(:focus), :read-only):not(#\#):not(#\#):not(#\#){margin-inline-start:calc(-1 * var(--spacing-1))}
1703
1703
  .x17xqekc:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to left,transparent 0%,rgba(0,0,0,.3) 2px,black var(--spacing-1))}
1704
1704
  .x1nwey30:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to left,transparent var(--_tab-strip-bleed),black calc(var(--_tab-strip-bleed) + var(--spacing-8)))}
@@ -1730,7 +1730,8 @@
1730
1730
  .xbt4iw:focus-within:not(#\#):not(#\#):not(#\#){pointer-events:auto}
1731
1731
  .xs5wpqw:focus-visible:not(#\#):not(#\#):not(#\#){position:relative}
1732
1732
  .xo74pv5:focus-within:not(#\#):not(#\#):not(#\#){position:static}
1733
- .x8ppqj.x8ppqj:active:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){transform:scale(.98)}
1733
+ .x1g2qjg4:active:not(:has([aria-expanded="true"])):not(#\#):not(#\#):not(#\#){transform:scale(.98)}
1734
+ .x1u44piu.x1u44piu:active:where(:not(:disabled,[aria-disabled="true"],[aria-expanded="true"][aria-haspopup]:not([aria-haspopup="false"]))):not(#\#):not(#\#):not(#\#){transform:scale(.98)}
1734
1735
  .xaafvuh:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){transform:scaleX(-1) rotate(0deg)}
1735
1736
  .x1nxqau:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){transform:scaleX(-1) rotate(90deg)}
1736
1737
  .xgtlewx:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){transform:scaleX(-1)}
@@ -1780,6 +1781,7 @@
1780
1781
  .xxdn8bs:has(> div > .astryx-layout-content):not(#\#):not(#\#):not(#\#){padding-inline-end:max(0px,calc((100% - var(--layout-content-width)) / 2))}
1781
1782
  .xmnmr5y:has(.astryx-nav-icon):not(#\#):not(#\#):not(#\#){padding-inline-start:0}
1782
1783
  .x1vvd0s7:has(> div > .astryx-layout-content):not(#\#):not(#\#):not(#\#){padding-inline-start:max(0px,calc((100% - var(--layout-content-width)) / 2))}
1784
+ .xhu4vej:has([aria-expanded="true"]):not(#\#):not(#\#):not(#\#){transition-property:background-image,background-color,color,opacity}
1783
1785
  .x3x83r7:has(:focus-visible):not(#\#):not(#\#):not(#\#){z-index:2}
1784
1786
  .x1blx2zq:dir(rtl):not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to left,transparent calc(var(--spacing-1) - 1px),black calc(calc(var(--spacing-1) - 1px) + var(--spacing-6)))}
1785
1787
  .x8il1mo:dir(rtl):not(#\#):not(#\#):not(#\#){mask-image:linear-gradient(to right,transparent calc(var(--spacing-1) - 1px),black calc(calc(var(--spacing-1) - 1px) + var(--spacing-6)))}
@@ -1831,7 +1833,6 @@
1831
1833
  .xjtnuge:active:not(#\#):not(#\#):not(#\#){background-color:var(--color-neutral)}
1832
1834
  .xuqm82a:active:not(#\#):not(#\#):not(#\#){background-image:none}
1833
1835
  .x1pdlv7q:active:not(#\#):not(#\#):not(#\#){transform:none}
1834
- .xk4oym4:active:not(#\#):not(#\#):not(#\#){transform:scale(.98)}
1835
1836
  @media (pointer: coarse){.xe52lmr.xe52lmr:not(#\#):not(#\#):not(#\#){-webkit-tap-highlight-color:transparent}}
1836
1837
  @media (max-width: 480px){.x1q32nj3.x1q32nj3:not(#\#):not(#\#):not(#\#){align-items:stretch}}
1837
1838
  @media (prefers-reduced-motion: reduce){.x14q22ui.x14q22ui:not(#\#):not(#\#):not(#\#){animation-delay:0s}}
@@ -1986,9 +1987,10 @@
1986
1987
  @media (pointer: coarse){.xrqzsdu.xrqzsdu:is([data-astryx-press="on"],[data-astryx-press="fading"]):not(#\#):not(#\#):not(#\#){isolation:auto}}
1987
1988
  @media (pointer: coarse){.xif6eam.xif6eam:is([data-astryx-press="on"],[data-astryx-press="fading"]):not(#\#):not(#\#):not(#\#){isolation:isolate}}
1988
1989
  @media (pointer: coarse){.x1pxz8w1.x1pxz8w1:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){transform:none}}
1989
- @media (((pointer: coarse) and (not (prefers-reduced-motion: reduce)) and (not (prefers-reduced-motion: reduce))) or ((pointer: coarse) and (not (prefers-reduced-motion: reduce)) and (not ((not (pointer: coarse)))))) or (((pointer: coarse) and (not (pointer: coarse)) and (not (prefers-reduced-motion: reduce))) or ((pointer: coarse) and (not (pointer: coarse)) and (not ((not (pointer: coarse)))))){.x1249l8d.x1249l8d.x1249l8d:active:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
1990
- @media ((prefers-reduced-motion: reduce) and (pointer: coarse) and (not (prefers-reduced-motion: reduce))) or ((prefers-reduced-motion: reduce) and (pointer: coarse) and (not ((not (pointer: coarse))))){.xbht4k1.xbht4k1.xbht4k1:active:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
1991
- @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)){.x1ex9uxt.x1ex9uxt.x1ex9uxt:active:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
1990
+ @media (((pointer: coarse) and (not (prefers-reduced-motion: reduce)) and (not (prefers-reduced-motion: reduce))) or ((pointer: coarse) and (not (prefers-reduced-motion: reduce)) and (not ((not (pointer: coarse)))))) or (((pointer: coarse) and (not (pointer: coarse)) and (not (prefers-reduced-motion: reduce))) or ((pointer: coarse) and (not (pointer: coarse)) and (not ((not (pointer: coarse)))))){.x1pcrg6r.x1pcrg6r.x1pcrg6r:active:where(:not(:disabled,[aria-disabled="true"],[aria-expanded="true"][aria-haspopup]:not([aria-haspopup="false"]))):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
1991
+ @media ((prefers-reduced-motion: reduce) and (pointer: coarse) and (not (prefers-reduced-motion: reduce))) or ((prefers-reduced-motion: reduce) and (pointer: coarse) and (not ((not (pointer: coarse))))){.xhr8rl2.xhr8rl2.xhr8rl2:active:where(:not(:disabled,[aria-disabled="true"],[aria-expanded="true"][aria-haspopup]:not([aria-haspopup="false"]))):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
1992
+ @media (pointer: coarse){.x182m0z6.x182m0z6:active:not(:has([aria-expanded="true"])):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
1993
+ @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)){.x1ua7476.x1ua7476.x1ua7476:active:where(:not(:disabled,[aria-disabled="true"],[aria-expanded="true"][aria-haspopup]:not([aria-haspopup="false"]))):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
1992
1994
  @media (pointer: coarse){.x1mrddfy.x1mrddfy:is([data-astryx-press="on"],[data-astryx-press="fading"]):not(#\#):not(#\#):not(#\#){will-change:transform}}
1993
1995
  .x1gmmbal.x1gmmbal:active:not(:first-child):where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){box-shadow:0 calc(-1 * var(--border-width)) 0 0 var(--color-overlay-pressed),var(--_travelling-surface,0 0 transparent)}
1994
1996
  @media (forced-colors: active){.xjml3p3.xjml3p3:dir(rtl):not(#\#):not(#\#):not(#\#){mask-image:none}}
@@ -2003,7 +2005,6 @@
2003
2005
  @container (max-width: 399px){.x1alyx8p.x1alyx8p:not(#\#):not(#\#):not(#\#){flex-wrap:wrap}}
2004
2006
  @media (forced-colors: active){.x1vo6n7o.x1vo6n7o:active:not(#\#):not(#\#):not(#\#){background-color:Highlight}}
2005
2007
  @media (hover: hover){.x1otsd3y.x1otsd3y.x1otsd3y:hover:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){background-image:linear-gradient(var(--color-overlay-hover),var(--color-overlay-hover)),linear-gradient(var(--color-neutral),var(--color-neutral))}}
2006
- @media (pointer: coarse){.x5lqen6.x5lqen6:active:not(#\#):not(#\#):not(#\#){transform:scale(1)}}
2007
2008
  @media (prefers-reduced-motion: reduce){@media (pointer: coarse){.x1qzunnh.x1qzunnh.x1qzunnh:not(#\#):not(#\#):not(#\#){transition-duration:.01s,.2s}}}
2008
2009
  @media (forced-colors: active){@media (((pointer: coarse) and (not (prefers-reduced-motion: reduce)) and (not (prefers-reduced-motion: reduce))) or ((pointer: coarse) and (not (prefers-reduced-motion: reduce)) and (not (pointer: coarse)))) or (((pointer: coarse) and (not ((not (pointer: coarse)))) and (not (prefers-reduced-motion: reduce))) or ((pointer: coarse) and (not ((not (pointer: coarse)))) and (not (pointer: coarse)))){.x11y4s09.x11y4s09.x11y4s09:not(#\#):not(#\#):not(#\#){transition-duration:0s}}}
2009
2010
  @media (pointer: coarse){.x1s5nr2v.x1s5nr2v.x1s5nr2v:active:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){background-color:transparent}}
@@ -2369,6 +2370,7 @@
2369
2370
  .x15vhz18:not(#\#):not(#\#):not(#\#):not(#\#){width:1em}
2370
2371
  .x1i1rx1s:not(#\#):not(#\#):not(#\#):not(#\#){width:1px}
2371
2372
  .xcdlrvm:not(#\#):not(#\#):not(#\#):not(#\#){width:1rem}
2373
+ .x75ztot:not(#\#):not(#\#):not(#\#):not(#\#){width:200%}
2372
2374
  .x1oysuqx:not(#\#):not(#\#):not(#\#):not(#\#){width:200px}
2373
2375
  .xw4jnvo:not(#\#):not(#\#):not(#\#):not(#\#){width:20px}
2374
2376
  .xafpxmx:not(#\#):not(#\#):not(#\#):not(#\#){width:240px}
@@ -2391,8 +2393,6 @@
2391
2393
  .x1y2t9nm:not(#\#):not(#\#):not(#\#):not(#\#){width:calc(44px - 8px)}
2392
2394
  .xeq5yr9:not(#\#):not(#\#):not(#\#):not(#\#){width:fit-content}
2393
2395
  .xezivpi:not(#\#):not(#\#):not(#\#):not(#\#){width:max-content}
2394
- .x1qwjaml:not(#\#):not(#\#):not(#\#):not(#\#){width:max(0px,calc(-1 * calc(var(--_item-swipe-travel,0px) * var(--_item-swipe-dir,1))))}
2395
- .x96shys:not(#\#):not(#\#):not(#\#):not(#\#){width:max(0px,calc(var(--_item-swipe-travel,0px) * var(--_item-swipe-dir,1)))}
2396
2396
  .x1a4a7d3:not(#\#):not(#\#):not(#\#):not(#\#){width:min(var(--resize-handle-hit-area,16px),50%)}
2397
2397
  .x5wh7xo:not(#\#):not(#\#):not(#\#):not(#\#){width:min(var(--spacing-4),100%)}
2398
2398
  .x17cz0of:not(#\#):not(#\#):not(#\#):not(#\#){width:min(var(--spacing-6),40px)}
@@ -2427,6 +2427,8 @@
2427
2427
  .x1m6kvgq:not([stylex-hack]) > *:not(#\#):not(#\#):not(#\#):not(#\#){height:100%}
2428
2428
  .x1y436bp.x1y436bp:where(.astryx-input-group > [data-astryx-input-group-item]):not(#\#):not(#\#):not(#\#):not(#\#){height:100%}
2429
2429
  .x132qfvm:focus-within:not(#\#):not(#\#):not(#\#):not(#\#){height:auto}
2430
+ .xcfsnm0:placeholder-shown:is(:not(:focus), :read-only):not(#\#):not(#\#):not(#\#):not(#\#){min-width:0}
2431
+ .x1hag6py:placeholder-shown:focus:not(:read-only):not(#\#):not(#\#):not(#\#):not(#\#){min-width:calc(calc(var(--spacing-2) - var(--spacing-1) + 1px) + 2px)}
2430
2432
  .x1kw28su:focus-within:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:var(--spacing-1)}
2431
2433
  .xyz6fim:not([stylex-hack]) > *:not(#\#):not(#\#):not(#\#):not(#\#){width:100%}
2432
2434
  .x10okhzq:focus-within:not(#\#):not(#\#):not(#\#):not(#\#){width:auto}
@@ -2441,7 +2443,6 @@
2441
2443
  .x1t1lzn6:last-child:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:0}
2442
2444
  .xlayyun:last-child:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:calc(-1 * var(--container-padding-block-end,0px))}
2443
2445
  .xup0pd7:last-child:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:0}
2444
- .x14dcwvw:placeholder-shown:not(#\#):not(#\#):not(#\#):not(#\#){min-width:0}
2445
2446
  .x15cytp8:focus:not(#\#):not(#\#):not(#\#):not(#\#){height:auto}
2446
2447
  .x65r4up:focus:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:var(--spacing-3)}
2447
2448
  .x1rw3289:focus:not(#\#):not(#\#):not(#\#):not(#\#){top:var(--spacing-2)}
@@ -2498,13 +2499,15 @@
2498
2499
  @starting-style{.x1igigxu.x1igigxu:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){opacity:1}}
2499
2500
  .xjsxhw0[data-astryx-row-gliding]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){position:relative}
2500
2501
  .x1ylxtyb[data-astryx-press="on"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:none}
2501
- .x3y5scg[data-astryx-press="on"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:scale(.98)}
2502
+ .x11q126q[data-astryx-press="on"]:not([aria-expanded="true"][aria-haspopup]:not([aria-haspopup="false"])):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:scale(.98)}
2503
+ .x5euuyh[data-astryx-press="on"]:not(:has([aria-expanded="true"])):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:scale(.98)}
2502
2504
  @starting-style{.x6mt36l.x6mt36l:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}}
2503
2505
  @starting-style{.x1yqmsfc.x1yqmsfc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}}
2504
2506
  @starting-style{.xub2912.xub2912:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(-100%)}}
2505
2507
  @starting-style{.x12p7p72.x12p7p72:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(-4px)}}
2506
2508
  @starting-style{.xhbqy3z.xhbqy3z:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(100%)}}
2507
2509
  @starting-style{.x6s140c.x6s140c:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(var(--_toast-slide-y,var(--spacing-2)))}}
2510
+ .xrkqygm[aria-expanded="true"][aria-haspopup]:not([aria-haspopup="false"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transition-property:background-image,background-color,color,opacity}
2508
2511
  .xvl8nft[data-astryx-travelling]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){z-index:2}
2509
2512
  .x13ugjdw.x13ugjdw:where(:not(:disabled,[aria-disabled="true"]))[data-astryx-press="on"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){background-color:transparent}
2510
2513
  .xl8sb5e.xl8sb5e:where(:not(:disabled,[aria-disabled="true"]))[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){background-color:transparent}
@@ -2526,8 +2529,8 @@
2526
2529
  @media (pointer: coarse){.x1ukc1h5.x1ukc1h5:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset:calc((var(--astryx-hit-inset-top,0px) + var(--_hit-border-top,0px)) * -1) calc((var(--astryx-hit-inset-right,0px) + var(--_hit-border-right,0px)) * -1) calc((var(--astryx-hit-inset-bottom,0px) + var(--_hit-border-bottom,0px)) * -1) calc((var(--astryx-hit-inset-left,0px) + var(--_hit-border-left,0px)) * -1)}}
2527
2530
  @media (pointer: coarse){.xg52tuh.xg52tuh:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset:calc((var(--astryx-hit-inset-top,0px) + var(--_hit-border-top,0px)) * -1) calc((var(--astryx-hit-inset-right,0px) + var(--_hit-border-right,0px)) * -1) calc((var(--astryx-hit-inset-bottom,0px) + var(--_hit-border-bottom,0px)) * -1) calc((var(--astryx-hit-inset-left,0px) + var(--_hit-border-left,0px)) * -1)}}
2528
2531
  @starting-style{@media (prefers-reduced-motion: reduce) and (pointer: coarse){.xgo67oj.xgo67oj.xgo67oj:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}}}
2529
- @media ((prefers-reduced-motion: reduce) and (pointer: coarse) and (not (prefers-reduced-motion: reduce))) or ((prefers-reduced-motion: reduce) and (pointer: coarse) and (not ((not (pointer: coarse))))){.xg3abmg.xg3abmg[data-astryx-press="on"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
2530
- @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)){.xoigjuk.xoigjuk[data-astryx-press="on"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
2532
+ @media ((prefers-reduced-motion: reduce) and (pointer: coarse) and (not (prefers-reduced-motion: reduce))) or ((prefers-reduced-motion: reduce) and (pointer: coarse) and (not ((not (pointer: coarse))))){.x7208gc.x7208gc[data-astryx-press="on"]:not([aria-expanded="true"][aria-haspopup]:not([aria-haspopup="false"])):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
2533
+ @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)){.x6cxksl.x6cxksl[data-astryx-press="on"]:not([aria-expanded="true"][aria-haspopup]:not([aria-haspopup="false"])):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
2531
2534
  @starting-style{@media (prefers-reduced-motion: reduce){.xspp5ug.xspp5ug.xspp5ug:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateY(0)}}}
2532
2535
  @media (pointer: coarse){.x1fq76kf.x1fq76kf[data-astryx-travelling]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){z-index:2}}
2533
2536
  @media (pointer: coarse){.x10ogxw0.x10ogxw0.x10ogxw0:where(:not(:disabled,[aria-disabled="true"]))[data-astryx-press="on"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){background-image:none}}
@@ -2571,6 +2574,7 @@
2571
2574
  .x54l34w:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-clip:var(--_segmented-after-background-clip,border-box)}
2572
2575
  .xtojb3y:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-clip:var(--_segmented-lens-background-clip,border-box)}
2573
2576
  .x15h7rrt:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-color:currentColor}
2577
+ .x1pvq41x:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-color:inherit}
2574
2578
  .xyhc2n1:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-color:transparent}
2575
2579
  .x1l0fnur:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-color:var(--_press-overlay)}
2576
2580
  .xnbhnmn:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-color:var(--_radio-row-press,transparent)}
@@ -2580,6 +2584,8 @@
2580
2584
  .x1tzqye7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-color:var(--color-accent)}
2581
2585
  .xs88s87:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-color:var(--color-accent)}
2582
2586
  .x1hw15nc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-color:var(--color-border)}
2587
+ .x177gpuc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-color:var(--color-error)}
2588
+ .xgpd5ji:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-color:var(--color-neutral)}
2583
2589
  .xnixb3f:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{background-color:var(--color-overlay)}
2584
2590
  .x1i3206j:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-color:var(--indicator-color,transparent)}
2585
2591
  .x1uvfo0n:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-color:var(--table-row-overlay,transparent)}
@@ -2634,11 +2640,13 @@
2634
2640
  .xekda60:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-end:-2px}
2635
2641
  .x1unh1gc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-end:0}
2636
2642
  .xtyp5od:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-end:0}
2643
+ .x8m5ogj:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-end:100%}
2637
2644
  .x5ig7ga:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-end:calc(-1 * var(--spacing-1) - 1px)}
2638
2645
  .x1s13ptm:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-end:var(--_slider-hit-end)}
2639
2646
  .xvw6utc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:-2px}
2640
2647
  .x1682cnc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:0}
2641
2648
  .x1iygr5g:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-start:0}
2649
+ .x1qyz1mp:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-start:100%}
2642
2650
  .x1vl71nl:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:calc(-1 * var(--spacing-1) - 1px)}
2643
2651
  .x1km86hw:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-start:calc(var(--spacing-4) + var(--_codeblock-gutter-width) + var(--spacing-3))}
2644
2652
  .xu2wnl0:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:var(--_slider-hit-start)}
@@ -2648,9 +2656,11 @@
2648
2656
  .x1xcinxp:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{line-height:var(--text-body-leading)}
2649
2657
  .x46whw4:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{margin-inline-start:0}
2650
2658
  .x1np0n6a:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{margin-inline-start:calc(-1 * var(--_item-inset-inline))}
2659
+ .x124lp2h:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{opacity:0}
2651
2660
  .xmf22ne:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{opacity:0}
2652
2661
  .xph5o2a:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{opacity:0}
2653
2662
  .xb3n6bw:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{opacity:1}
2663
+ .xfbg1o9:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{opacity:1}
2654
2664
  .xni466t:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{opacity:var(--_sheet-scrim-opacity,1)}
2655
2665
  .x1c2idit:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{opacity:var(--table-sticky-shadow-end,0)}
2656
2666
  .x1sggmfs:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{opacity:var(--table-sticky-shadow-start,0)}
@@ -2814,6 +2824,7 @@
2814
2824
  .xw5uirw:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{top:var(--_slider-hit-top)}
2815
2825
  .xk9ib7f:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{width:0}
2816
2826
  .xkj6t0a:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:0}
2827
+ .x1ng0ck5:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:100vw}
2817
2828
  .x1j6c3ea:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{width:20px}
2818
2829
  .xzkji8o:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:6px}
2819
2830
  .x1l8h5kv:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:var(--_segmented-after-width,0px)}
@@ -0,0 +1,38 @@
1
+ import type { SpringCurve } from '../motion/spring.js';
2
+ /** A moving part, and its own offset (px) at a value of the drag's axis. */
3
+ export interface CompositorPart {
4
+ element: HTMLElement;
5
+ offset: (value: number) => number;
6
+ /**
7
+ * The values of the axis where `offset` bends. The settle draws a
8
+ * keyframe where the curve crosses each, so no frame cuts the corner.
9
+ */
10
+ bends?: ReadonlyArray<number>;
11
+ }
12
+ /** A settle in flight. */
13
+ export interface CompositorSettle {
14
+ /** The value on screen now. */
15
+ presented: () => number;
16
+ /** The value's velocity on screen now (units/s). */
17
+ velocity: () => number;
18
+ /** Stops the settle where it is on screen, and returns that value. */
19
+ stop: () => number;
20
+ }
21
+ /**
22
+ * Plays `curve` on `parts` from now. `onPass` runs on the first frame the
23
+ * value is past its offset in its direction, and `onFinish` on the first
24
+ * frame after the curve ends. A part with no Web Animations (a test DOM)
25
+ * shows the end pose at once, and the callbacks keep the curve's times.
26
+ */
27
+ export declare function playCompositorSettle({ curve, parts, requestFrame, onPass, onFinish, }: {
28
+ curve: SpringCurve;
29
+ parts: ReadonlyArray<CompositorPart>;
30
+ requestFrame: (callback: () => void) => void;
31
+ onPass?: {
32
+ offset: number;
33
+ direction: 1 | -1;
34
+ call: () => void;
35
+ };
36
+ onFinish: () => void;
37
+ }): CompositorSettle;
38
+ //# sourceMappingURL=compositorSettle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compositorSettle.d.ts","sourceRoot":"","sources":["../../src/dragToSnapPoints/compositorSettle.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAElD,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,0BAA0B;AAC1B,MAAM,WAAW,gBAAgB;IAC/B,+BAA+B;IAC/B,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,oDAAoD;IACpD,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,sEAAsE;IACtE,IAAI,EAAE,MAAM,MAAM,CAAC;CACpB;AAOD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,KAAK,EACL,YAAY,EACZ,MAAM,EACN,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IACrC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAC7C,MAAM,CAAC,EAAE;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAC,CAAC;IAC/D,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,gBAAgB,CA8GnB"}