@kanso-labs/kanso-ui 0.45.28 → 0.45.30

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 (144) hide show
  1. package/dist/calendar/index.js +4 -4
  2. package/dist/calendar/index.js.map +1 -1
  3. package/dist/components/app-bar/index.js +1 -0
  4. package/dist/components/app-bar/index.js.map +1 -1
  5. package/dist/components/autocomplete/index.d.ts +6 -6
  6. package/dist/components/autocomplete/index.js +4 -4
  7. package/dist/components/autocomplete/index.js.map +1 -1
  8. package/dist/components/breadcrumbs/index.d.ts +5 -5
  9. package/dist/components/breadcrumbs/index.js +5 -5
  10. package/dist/components/breadcrumbs/index.js.map +1 -1
  11. package/dist/components/button/index.d.ts +3 -3
  12. package/dist/components/button/index.js +2 -2
  13. package/dist/components/button/index.js.map +1 -1
  14. package/dist/components/calendar/index.d.ts +7 -7
  15. package/dist/components/calendar/index.js +4 -4
  16. package/dist/components/calendar/index.js.map +1 -1
  17. package/dist/components/checkbox-group/index.d.ts +5 -5
  18. package/dist/components/checkbox-group/index.js +4 -4
  19. package/dist/components/checkbox-group/index.js.map +1 -1
  20. package/dist/components/color-area/index.d.ts +4 -4
  21. package/dist/components/color-area/index.js +4 -4
  22. package/dist/components/color-area/index.js.map +1 -1
  23. package/dist/components/color-field/index.d.ts +7 -7
  24. package/dist/components/color-field/index.js +4 -4
  25. package/dist/components/color-field/index.js.map +1 -1
  26. package/dist/components/color-picker/index.d.ts +4 -4
  27. package/dist/components/color-picker/index.js +4 -4
  28. package/dist/components/color-picker/index.js.map +1 -1
  29. package/dist/components/color-slider/index.d.ts +6 -6
  30. package/dist/components/color-slider/index.js +4 -4
  31. package/dist/components/color-slider/index.js.map +1 -1
  32. package/dist/components/color-swatch/index.d.ts +4 -4
  33. package/dist/components/color-swatch/index.js +4 -4
  34. package/dist/components/color-swatch/index.js.map +1 -1
  35. package/dist/components/color-swatch-picker/index.d.ts +12 -12
  36. package/dist/components/color-swatch-picker/index.js +7 -7
  37. package/dist/components/color-swatch-picker/index.js.map +1 -1
  38. package/dist/components/color-wheel/index.d.ts +6 -6
  39. package/dist/components/color-wheel/index.js +4 -4
  40. package/dist/components/color-wheel/index.js.map +1 -1
  41. package/dist/components/combo-box/index.d.ts +5 -5
  42. package/dist/components/combo-box/index.js +4 -4
  43. package/dist/components/combo-box/index.js.map +1 -1
  44. package/dist/components/date-field/index.d.ts +6 -6
  45. package/dist/components/date-field/index.js +4 -4
  46. package/dist/components/date-field/index.js.map +1 -1
  47. package/dist/components/date-picker/index.d.ts +6 -6
  48. package/dist/components/date-picker/index.js +4 -4
  49. package/dist/components/date-picker/index.js.map +1 -1
  50. package/dist/components/date-range-picker/index.d.ts +6 -6
  51. package/dist/components/date-range-picker/index.js +4 -4
  52. package/dist/components/date-range-picker/index.js.map +1 -1
  53. package/dist/components/dialog/index.d.ts +6 -6
  54. package/dist/components/dialog/index.js +9 -9
  55. package/dist/components/dialog/index.js.map +1 -1
  56. package/dist/components/disclosure/index.d.ts +10 -10
  57. package/dist/components/disclosure/index.js +8 -8
  58. package/dist/components/disclosure/index.js.map +1 -1
  59. package/dist/components/disclosure-group/index.d.ts +4 -4
  60. package/dist/components/disclosure-group/index.js +4 -4
  61. package/dist/components/disclosure-group/index.js.map +1 -1
  62. package/dist/components/drop-zone/index.d.ts +8 -8
  63. package/dist/components/drop-zone/index.js +6 -6
  64. package/dist/components/drop-zone/index.js.map +1 -1
  65. package/dist/components/form/index.d.ts +5 -5
  66. package/dist/components/form/index.js +4 -4
  67. package/dist/components/form/index.js.map +1 -1
  68. package/dist/components/link/index.d.ts +6 -6
  69. package/dist/components/link/index.js +4 -4
  70. package/dist/components/link/index.js.map +1 -1
  71. package/dist/components/list-box/index.d.ts +18 -18
  72. package/dist/components/list-box/index.js +11 -11
  73. package/dist/components/list-box/index.js.map +1 -1
  74. package/dist/components/menu/index.d.ts +16 -16
  75. package/dist/components/menu/index.js +14 -14
  76. package/dist/components/menu/index.js.map +1 -1
  77. package/dist/components/meter/index.d.ts +6 -6
  78. package/dist/components/meter/index.js +4 -4
  79. package/dist/components/meter/index.js.map +1 -1
  80. package/dist/components/navigation-tree/index.d.ts +15 -15
  81. package/dist/components/navigation-tree/index.js +13 -13
  82. package/dist/components/navigation-tree/index.js.map +1 -1
  83. package/dist/components/number-field/index.d.ts +5 -5
  84. package/dist/components/number-field/index.js +4 -4
  85. package/dist/components/number-field/index.js.map +1 -1
  86. package/dist/components/popover/index.d.ts +3 -3
  87. package/dist/components/popover/index.js +12 -12
  88. package/dist/components/popover/index.js.map +1 -1
  89. package/dist/components/radio-group/index.d.ts +5 -5
  90. package/dist/components/radio-group/index.js +4 -4
  91. package/dist/components/radio-group/index.js.map +1 -1
  92. package/dist/components/range-calendar/index.d.ts +7 -7
  93. package/dist/components/range-calendar/index.js +4 -4
  94. package/dist/components/range-calendar/index.js.map +1 -1
  95. package/dist/components/search-field/index.d.ts +6 -6
  96. package/dist/components/search-field/index.js +4 -4
  97. package/dist/components/search-field/index.js.map +1 -1
  98. package/dist/components/select/index.d.ts +5 -5
  99. package/dist/components/select/index.js +4 -4
  100. package/dist/components/select/index.js.map +1 -1
  101. package/dist/components/separator/index.d.ts +5 -5
  102. package/dist/components/separator/index.js +4 -4
  103. package/dist/components/separator/index.js.map +1 -1
  104. package/dist/components/sheet/index.d.ts +5 -5
  105. package/dist/components/sheet/index.js +12 -12
  106. package/dist/components/sheet/index.js.map +1 -1
  107. package/dist/components/slider/index.d.ts +4 -4
  108. package/dist/components/slider/index.js +4 -4
  109. package/dist/components/slider/index.js.map +1 -1
  110. package/dist/components/table/index.d.ts +20 -20
  111. package/dist/components/table/index.js +17 -17
  112. package/dist/components/table/index.js.map +1 -1
  113. package/dist/components/tabs/index.d.ts +5 -5
  114. package/dist/components/tabs/index.js +8 -8
  115. package/dist/components/tabs/index.js.map +1 -1
  116. package/dist/components/text-area/index.d.ts +2 -2
  117. package/dist/components/text-area/index.js +2 -2
  118. package/dist/components/text-area/index.js.map +1 -1
  119. package/dist/components/text-field/index.d.ts +4 -4
  120. package/dist/components/text-field/index.js +4 -4
  121. package/dist/components/text-field/index.js.map +1 -1
  122. package/dist/components/time-field/index.d.ts +6 -6
  123. package/dist/components/time-field/index.js +4 -4
  124. package/dist/components/time-field/index.js.map +1 -1
  125. package/dist/components/token-field/index.d.ts +7 -7
  126. package/dist/components/token-field/index.js +4 -4
  127. package/dist/components/token-field/index.js.map +1 -1
  128. package/dist/components/toolbar/index.d.ts +6 -6
  129. package/dist/components/toolbar/index.js +4 -4
  130. package/dist/components/toolbar/index.js.map +1 -1
  131. package/dist/components/tooltip/index.d.ts +2 -2
  132. package/dist/components/tooltip/index.js +4 -4
  133. package/dist/components/tooltip/index.js.map +1 -1
  134. package/dist/components/tree/index.d.ts +17 -17
  135. package/dist/components/tree/index.js +14 -14
  136. package/dist/components/tree/index.js.map +1 -1
  137. package/dist/drag/hooks.d.ts +3 -3
  138. package/dist/drag/hooks.js +4 -4
  139. package/dist/drag/hooks.js.map +1 -1
  140. package/dist/drag/index.js +4 -4
  141. package/dist/drag/index.js.map +1 -1
  142. package/dist/react-aria.d.ts +2 -2
  143. package/dist/react-aria.js +2 -2
  144. package/package.json +9 -9
@@ -7,7 +7,7 @@ import { overlay, placementOf, popupOrigin } from "../../styles/overlay.js";
7
7
  import { c } from "react/compiler-runtime";
8
8
  import { createContext, useContext, useEffect, useId, useRef, useState } from "react";
9
9
  import { jsx } from "react/jsx-runtime";
10
- import { ButtonContext, DEFAULT_SLOT, Dialog, DialogContext, DialogTrigger, Heading, HeadingContext, OverlayTriggerStateContext, Popover, PopoverContext, PreviewTrigger, Text, TextContext, useSlottedContext } from "react-aria-components";
10
+ import { ButtonContext, DEFAULT_SLOT, Dialog, DialogContext, DialogTrigger, Heading, HeadingContext, OverlayTriggerStateContext, Popover as Popover$1, PopoverContext as PopoverContext$1, PreviewTrigger, Text, TextContext, useSlottedContext } from "react-aria-components";
11
11
  import { useInteractOutside } from "react-aria";
12
12
  // src/components/popover/index.tsx
13
13
  const DEFAULT_SIDE_OFFSET = 8;
@@ -62,7 +62,7 @@ const styles = {
62
62
  };
63
63
  const DEFAULT_HOVER_DELAY = 600;
64
64
  const DEFAULT_HOVER_CLOSE_DELAY = 200;
65
- const PopoverContext$1 = createContext({
65
+ const PopoverContext = createContext({
66
66
  modal: false,
67
67
  size: "md"
68
68
  });
@@ -296,7 +296,7 @@ function PanelDialog(t0) {
296
296
  * </Popover>
297
297
  * ```
298
298
  */
299
- function Popover$1(t0) {
299
+ function Popover(t0) {
300
300
  const $ = c(25);
301
301
  let children;
302
302
  let props;
@@ -358,7 +358,7 @@ function Popover$1(t0) {
358
358
  } else t8 = $[15];
359
359
  let t9;
360
360
  if ($[16] !== context || $[17] !== t8) {
361
- t9 = /* @__PURE__ */ jsx(PopoverContext$1, {
361
+ t9 = /* @__PURE__ */ jsx(PopoverContext, {
362
362
  value: context,
363
363
  children: t8
364
364
  });
@@ -380,7 +380,7 @@ function Popover$1(t0) {
380
380
  } else t8 = $[21];
381
381
  let t9;
382
382
  if ($[22] !== context || $[23] !== t8) {
383
- t9 = /* @__PURE__ */ jsx(PopoverContext$1, {
383
+ t9 = /* @__PURE__ */ jsx(PopoverContext, {
384
384
  value: context,
385
385
  children: t8
386
386
  });
@@ -442,9 +442,9 @@ function PopoverContent(t0) {
442
442
  const align = t1 === void 0 ? "center" : t1;
443
443
  const side = t2 === void 0 ? "bottom" : t2;
444
444
  const sideOffset = t3 === void 0 ? DEFAULT_SIDE_OFFSET : t3;
445
- const { modal, size } = useContext(PopoverContext$1);
445
+ const { modal, size } = useContext(PopoverContext);
446
446
  const state = useContext(OverlayTriggerStateContext);
447
- const handed = useSlottedContext(PopoverContext)?.triggerRef;
447
+ const handed = useSlottedContext(PopoverContext$1)?.triggerRef;
448
448
  const panel = useRef(null);
449
449
  const t4 = ref ?? void 0;
450
450
  let t5;
@@ -610,7 +610,7 @@ function PopoverContent(t0) {
610
610
  } else t22 = $[45];
611
611
  let t23;
612
612
  if ($[46] !== alignOffset || $[47] !== container || $[48] !== merged || $[49] !== sideOffset || $[50] !== t17 || $[51] !== t18 || $[52] !== t19 || $[53] !== t21 || $[54] !== t22 || $[55] !== triggerRef) {
613
- t23 = /* @__PURE__ */ jsx(OverlayScope, { children: /* @__PURE__ */ jsx(Popover, {
613
+ t23 = /* @__PURE__ */ jsx(OverlayScope, { children: /* @__PURE__ */ jsx(Popover$1, {
614
614
  crossOffset: alignOffset,
615
615
  isNonModal: t17,
616
616
  offset: sideOffset,
@@ -733,9 +733,9 @@ function triggerOf(context) {
733
733
  labelledBy: "aria-labelledby" in context && typeof context["aria-labelledby"] === "string" ? context["aria-labelledby"] : void 0
734
734
  };
735
735
  }
736
- Popover$1.Content = PopoverContent;
737
- Popover$1.Description = PopoverDescription;
738
- Popover$1.Title = PopoverTitle;
739
- export { PopoverContent, PopoverDescription, PopoverTitle, Popover$1 as default };
736
+ Popover.Content = PopoverContent;
737
+ Popover.Description = PopoverDescription;
738
+ Popover.Title = PopoverTitle;
739
+ export { PopoverContent, PopoverDescription, PopoverTitle, Popover as default };
740
740
 
741
741
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_c","stylex","createContext","useContext","useEffect","useId","useRef","useState","useInteractOutside","DEFAULT_SLOT","DialogContext","OverlayTriggerStateContext","Popover","PopoverContext","RACPopoverContext","useSlottedContext","mergeRefs","mergeStatefulStyles","mergeStyles","overlay","placementOf","popupOrigin","DEFAULT_SIDE_OFFSET","styles","content","kGO01o","kLKAdn","kg3NbH","$$css","description","kB7OPa","kMwMTN","kMv6JI","kGuDYH","k63SB2","kb6lSQ","kLWn49","kogj98","dialog","k3XXqK","dialogRing","kjBf7l","kInvED","kMeerF","md","ks0D6T","sm","title","DEFAULT_HOVER_DELAY","DEFAULT_HOVER_CLOSE_DELAY","modal","size","DescriptionContext","id","TitleContext","TEXT_SLOTS","slots","children","closeDelay","delay","trigger","PanelDialog","t0","$","labelledBy","onPressWithin","props","slot","t1","t2","t3","t4","render","_render","t5","t6","ref","state","triggerOf","pressed","undefined","titleId","titled","setTitled","Symbol","for","registerTitle","level","headings","onPress","close","t7","t8","buttons","t10","t9","element","current","contains","document","activeElement","focus","preventScroll","t11","t12","t13","t14","popupDialog","t15","t16","t17","t18","context","PopoverContent","alignOffset","className","container","style","triggerRef","align","side","sideOffset","handed","panel","merged","pressedWithin","markPressWithin","own","triggers","fromTrigger","isOutsideTrigger","isOpen","event","target","Element","isDisabled","onInteractOutside","onInteractOutsideStart","descriptions","setDescriptions","ids","ids_0","at","indexOf","slice","registerDescription","length","Set","join","describedBy","t19","t20","popup","placement","t21","t22","t23","PopoverDescription","register","generated","PopoverTitle","Content","Description","Title","PopoverContext","RACPopover"],"sources":["../../../src/components/popover/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes, RefObject } from 'react';\nimport type { ClassNameOrFunction, DialogProps, DialogTriggerProps, HeadingProps, PopoverRenderProps, StyleOrFunction, TextProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { createContext, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from 'react';\nimport { useInteractOutside } from 'react-aria';\nimport { ButtonContext, DEFAULT_SLOT, Dialog, DialogContext, DialogTrigger, Heading, HeadingContext, OverlayTriggerStateContext, PreviewTrigger, Popover as RACPopover, PopoverContext as RACPopoverContext, Text, TextContext, useSlottedContext } from 'react-aria-components';\nimport type { OverlayAlign, OverlaySide } from '../../styles/overlay';\nimport { OverlayScope } from '../../overlay';\nimport { mergeRefs } from '../../render/ref';\nimport { mergeStatefulStyles, mergeStyles } from '../../styles/merge';\nimport { overlay, placementOf, popupOrigin } from '../../styles/overlay';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, spacing, typography } from '../../tokens/design.tokens.stylex';\n\n// The gap between the anchor and the panel, matching `spacing.sm`'s default.\n// A number rather than the token, because React Aria computes the position in\n// JavaScript and so cannot read a CSS custom property — this is the one place\n// in the component where a step of the spacing scale is spelled out. React\n// Aria's own default is 8 as well, but the value is this component's decision\n// rather than an inherited one.\nconst DEFAULT_SIDE_OFFSET = 8;\n\n// The surface and its entry are the overlay module's, shared with every\n// anchored overlay; what is here is Popover's own — its inset, its two\n// widths, the type of its title and description, and where the dialog's\n// focus ring is drawn.\n//\n// Popover has no page of its own, so the inset and the type follow the rich\n// tooltip, the nearest thing the Material Design pages draw: a plain rounded\n// panel offset from its anchor, with no caret drawn between the two, holding\n// a subhead over supporting text.\n//\n// React Aria's popover is two elements — the positioned panel and the dialog\n// inside it — so the styles are split the same way: the surface, `content`,\n// a size and the dialog's focus ring on the panel, the dialog style on the\n// element that carries the role.\nconst styles = {\n content: {\n kGO01o: \"xqf7pud\",\n kLKAdn: \"x6gmt8y\",\n kg3NbH: \"x790zyz\",\n $$css: true\n },\n description: {\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xpo2rfv\",\n kGuDYH: \"x193rfdd\",\n k63SB2: \"x1hews6w\",\n kb6lSQ: \"xn43zvd\",\n kLWn49: \"xv61bfh\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n },\n dialog: {\n k3XXqK: \"x1t137rt\",\n $$css: true\n },\n dialogRing: {\n kjBf7l: \"xrgy624\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xbrmr3i x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n md: {\n ks0D6T: \"x10u2fgw\",\n $$css: true\n },\n sm: {\n ks0D6T: \"xjjheoa\",\n $$css: true\n },\n title: {\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xrgwony\",\n kGuDYH: \"x12s497w\",\n k63SB2: \"x1szcwkt\",\n kb6lSQ: \"xo803ec\",\n kLWn49: \"xyl1r0q\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n }\n};\n\n// How long a pointer rests on the trigger before a hovered popover opens,\n// and how long it has to leave before it closes. React Aria's own defaults,\n// spelled out because they are the whole feel of a hover trigger and worth\n// finding in the component rather than in a changelog.\nconst DEFAULT_HOVER_DELAY = 600;\nconst DEFAULT_HOVER_CLOSE_DELAY = 200;\n\n// The overlay module's, since which side a surface opens on is the same\n// question for every anchored overlay. Aliased rather than re-declared so\n// the names a call site imports stay this component's.\ntype PopoverAlign = OverlayAlign;\ntype PopoverSide = OverlaySide;\ntype PopoverSize = 'md' | 'sm';\n\n// `size` and `modal` are declared on the root, where a reader expects to set\n// the shape of the whole popover, but it is `Popover.Content` that has to\n// apply them. Through context rather than making the call site repeat them —\n// the same arrangement Sheet uses, and worth keeping identical between the\n// two panels a consumer is most likely to reach for in the same afternoon.\nconst PopoverContext = createContext<{\n modal: boolean;\n size: PopoverSize;\n}>({\n modal: false,\n size: 'md'\n});\n\n// React Aria points a dialog's `aria-describedby` at its description slot\n// only for an alert dialog, on the grounds that an ordinary dialog's content\n// is read anyway. A popover's description names what the panel is for, so it\n// is pointed at here: each description reports the id it renders while it is\n// mounted, and the dialog follows those ids, since an `aria-describedby` with\n// nothing at the other end is an invalid reference rather than a harmless one.\n// The id is the one the element carries, a call site's own included, and each\n// description has one of its own, so a second description adds its id rather\n// than sharing the first's, and unmounting either leaves the other.\nconst DescriptionContext = createContext<(id: string) => () => void>(() => () => {});\n\n// The same for the title, which the non-modal panel names itself by — see\n// PanelDialog. React Aria's own Dialog finds its title by looking for it;\n// the panel here is told it is there.\nconst TitleContext = createContext<() => () => void>(() => () => {});\n\n// The text slot the description fills, with the default beside it so a\n// plain `Text` still renders. Hoisted, since it never changes.\nconst TEXT_SLOTS = {\n slots: {\n [DEFAULT_SLOT]: {},\n description: {}\n }\n};\ntype PopoverProps = Omit<DialogTriggerProps, 'children'> & {\n children?: ReactNode;\n /**\n * How long the pointer has to leave a hovered popover before it closes, in\n * milliseconds. Ignored by a pressed one.\n * @default 200\n */\n closeDelay?: number;\n /**\n * How long the pointer has to rest on the trigger before a hovered popover\n * opens, in milliseconds. Ignored by a pressed one.\n * @default 600\n */\n delay?: number;\n /**\n * Blocks the page behind the panel while it is open, as a dialog would.\n * Off by default: a popover leaves the page interactive, which is the\n * difference from `Sheet`.\n * @default false\n */\n modal?: boolean;\n /**\n * Panel width: `sm` caps at 240px, `md` at 320px. Either way the panel is\n * only as wide as its contents, and never wider than the viewport.\n * @default 'md'\n */\n size?: PopoverSize;\n /**\n * What opens the panel: a press, or a pointer resting on the trigger.\n * `hover` is the tooltips page's rich tooltip — it opens on hover, focus\n * or a long press, and stays open while the pointer is inside it, so the\n * panel's own buttons and links can be reached.\n * @default 'press'\n */\n trigger?: PopoverTrigger;\n};\ntype PopoverTrigger = 'hover' | 'press';\n\n/**\n * The element that carries the dialog role in a non-modal popover: what\n * React Aria's `Dialog` gives a modal one — the role, the name from the\n * title, the description, and the close slot — without the two things that\n * make `Dialog` a modal's.\n *\n * `Dialog` moves focus into itself as it mounts, whatever opened it, and\n * holds focus inside the overlay until it closes. A hover popover therefore\n * took focus from wherever the reader was typing the moment a pointer\n * rested on its trigger, and Tab in an open popover went round its own\n * controls forever, though the page behind a non-modal popover is meant to\n * stay in reach. Here a pressed popover still takes focus as it opens, since\n * a press asked for the panel, but a hovered one leaves it where it is, and\n * Tab past the panel's last control carries on from the trigger in the\n * page. React Aria's popover sees a dialog inside it and so adds no role or\n * focus handling of its own.\n */\nfunction PanelDialog({\n 'aria-labelledby': labelledBy,\n children,\n id,\n onPressWithin,\n // React Aria's render prop is the one part of a dialog's props this\n // element cannot honour, being an element of its own rather than React\n // Aria's; left out rather than spread onto the DOM.\n render: _render,\n slot,\n ...props\n}: Omit<PopoverContentProps, 'align' | 'alignOffset' | 'className' | 'container' | 'side' | 'sideOffset' | 'style' | 'triggerRef'> & {\n /**\n * Called when a press starts anywhere inside the panel in React's tree,\n * which takes in what an overlay opened from the panel draws elsewhere in\n * the document — see `PopoverContent`.\n */\n onPressWithin: () => void;\n}) {\n const ref = useRef<HTMLElement>(null);\n const state = useContext(OverlayTriggerStateContext);\n // What the trigger hands its overlay: the id the trigger's\n // `aria-controls` points at, and the trigger itself as the name of a\n // panel with no title. A hover trigger hands nothing, and is a hover\n // trigger for exactly that reason.\n const trigger = triggerOf(useContext(DialogContext));\n const pressed = trigger !== undefined;\n const titleId = useId();\n const [titled, setTitled] = useState(false);\n const registerTitle = useCallback(() => {\n setTitled(true);\n return () => {\n setTitled(false);\n };\n }, []);\n const headings = useMemo(() => ({\n slots: {\n [DEFAULT_SLOT]: {},\n title: {\n id: titleId,\n level: 2\n }\n }\n }), [titleId]);\n const buttons = useMemo(() => ({\n slots: {\n close: {\n onPress: () => {\n state?.close();\n }\n },\n [DEFAULT_SLOT]: {}\n }\n }), [state]);\n useEffect(() => {\n const element = ref.current;\n if (pressed && element !== null && !element.contains(document.activeElement)) {\n element.focus({\n preventScroll: true\n });\n }\n }, [pressed]);\n return (\n // A section with the role, as React Aria's own dialog is: a `<dialog>`\n // element brings the browser's own positioning, border, padding and top\n // layer, all of which the panel around it already decides.\n <section {...props} aria-labelledby={labelledBy ?? (titled ? titleId : trigger?.labelledBy)} id={id ?? trigger?.id} onPointerDownCapture={onPressWithin} ref={ref}\n // oxlint-disable-next-line jsx-a11y/prefer-tag-over-role -- a `<dialog>` element would bring the browser's own positioning and top layer, which the panel around it already decides\n role=\"dialog\" slot={slot ?? undefined} tabIndex={-1} {...stylex.props(overlay.popupDialog, styles.dialog)}>\n <HeadingContext value={headings}>\n <TextContext value={TEXT_SLOTS}>\n <ButtonContext value={buttons}>\n <TitleContext value={registerTitle}>{children}</TitleContext>\n </ButtonContext>\n </TextContext>\n </HeadingContext>\n </section>\n );\n}\n\n/**\n * A panel anchored to the control that opened it. Open state is React Aria's:\n * pass `isOpen` with `onOpenChange` to control it, or `defaultOpen` to let it\n * keep its own.\n *\n * Non-modal by design — the page behind stays scrollable and clickable, which\n * is the difference from `Sheet`. Pass `modal` to change that. Escape, a press\n * anywhere outside the panel and a button given `slot=\"close\"` close it, and\n * a press on its trigger toggles it. Inside a dialog, a press on the scrim\n * closes the popover first and the dialog on the next, as a menu does.\n *\n * Composed rather than configured by props, because a popover's contents are\n * arbitrary — the parts are `Popover.Content`, `Popover.Title`, and\n * `Popover.Description`. A `Button` or `IconButton` placed directly inside\n * `Popover` opens it, and one given `slot=\"close\"` inside the content closes\n * it; neither needs a part of its own. Where the panel sits against its\n * trigger is `Popover.Content`'s `side` and `align`.\n *\n * ```tsx\n * <Popover>\n * <Button>Open</Button>\n * <Popover.Content side=\"end\">\n * <Popover.Title>Headline</Popover.Title>\n * <Popover.Description>Supporting line</Popover.Description>\n * <Button slot=\"close\" variant=\"text\">\n * Dismiss\n * </Button>\n * </Popover.Content>\n * </Popover>\n * ```\n */\nfunction Popover({\n children,\n closeDelay = DEFAULT_HOVER_CLOSE_DELAY,\n delay = DEFAULT_HOVER_DELAY,\n modal = false,\n size = 'md',\n trigger = 'press',\n ...props\n}: PopoverProps) {\n // A hovered popover is React Aria's preview trigger, which is a different\n // element around the same parts rather than a mode of the pressed one: it\n // opens from hover, focus or a long press, and it is always non-modal,\n // since a panel that blocked the page while the pointer merely rested on\n // something would be a trap. `modal` is ignored there rather than\n // refused, so the content draws the non-modal panel whatever it says.\n const context = useMemo(() => ({\n modal: modal && trigger !== 'hover',\n size\n }), [modal, size, trigger]);\n if (trigger === 'hover') {\n return <PopoverContext value={context}>\n <PreviewTrigger closeDelay={closeDelay} delay={delay} {...props}>\n {children}\n </PreviewTrigger>\n </PopoverContext>;\n }\n return <PopoverContext value={context}>\n <DialogTrigger {...props}>{children}</DialogTrigger>\n </PopoverContext>;\n}\n\n/**\n * The panel itself. Everything the popover shows goes in here; the trigger\n * stays outside it, since the trigger lives in the page while this is\n * portalled out to the end of the body.\n *\n * Placement is React Aria's anchor positioning, so the panel flips to the\n * opposite side and shifts along the edge of the viewport on its own rather\n * than being clipped by it.\n */\nfunction PopoverContent({\n align = 'center',\n alignOffset,\n children,\n className,\n container,\n ref,\n side = 'bottom',\n sideOffset = DEFAULT_SIDE_OFFSET,\n style,\n triggerRef,\n ...props\n}: PopoverContentProps & RefAttributes<HTMLElement>) {\n const {\n modal,\n size\n } = useContext(PopoverContext);\n const state = useContext(OverlayTriggerStateContext);\n // The trigger React Aria hands its popover, for a content part given no\n // `triggerRef` of its own.\n const handed = useSlottedContext(RACPopoverContext)?.triggerRef;\n\n // A non-modal popover is one React Aria closes on blur alone: a press on\n // blank page left it open, and a press on its own trigger closed it as\n // focus left the panel and opened it again on the same press. Here a\n // press anywhere outside the panel closes it, and a press on the trigger\n // is left to the trigger, which toggles it.\n //\n // What an overlay opened from inside the panel draws — a select's list, a\n // menu — is portalled elsewhere in the document, so a press there is\n // outside the panel's element though it is within the panel's tree. React\n // carries the press up that tree, and the panel marks it as within before\n // the press ends; the outside press is read on its end, so the mark is\n // there to read. Each press outside clears it as it starts.\n const panel = useRef<HTMLElement>(null);\n const merged = useMemo(() => mergeRefs(panel, ref ?? undefined), [ref]);\n const pressedWithin = useRef(false);\n const markPressWithin = useCallback(() => {\n pressedWithin.current = true;\n }, []);\n // The two refs the trigger may come through, kept where a callback can\n // read them at the moment of a press rather than as dependencies, which a\n // ref is not.\n const triggers = useRef({\n handed,\n own: triggerRef\n });\n useEffect(() => {\n triggers.current = {\n handed,\n own: triggerRef\n };\n });\n const isOutsideTrigger = useCallback((element: Element) => {\n const {\n handed: fromTrigger,\n own\n } = triggers.current;\n const trigger = own?.current ?? fromTrigger?.current;\n return !(trigger?.contains(element) ?? false);\n }, []);\n useInteractOutside({\n isDisabled: modal || state === null || !state.isOpen,\n onInteractOutside: event => {\n if (pressedWithin.current) {\n pressedWithin.current = false;\n return;\n }\n if (event.target instanceof Element && !isOutsideTrigger(event.target)) {\n return;\n }\n state?.close();\n },\n onInteractOutsideStart: () => {\n pressedWithin.current = false;\n },\n ref: panel\n });\n\n // The ids of the descriptions mounted in the panel, one entry per\n // description, in the order they mounted.\n const [descriptions, setDescriptions] = useState<readonly string[]>([]);\n const registerDescription = useCallback((id: string) => {\n setDescriptions(ids => [...ids, id]);\n return () => {\n setDescriptions(ids => {\n const at = ids.indexOf(id);\n return at === -1 ? ids : [...ids.slice(0, at), ...ids.slice(at + 1)];\n });\n };\n }, []);\n const describedBy = descriptions.length > 0 ? [...new Set(descriptions)].join(' ') : undefined;\n return <OverlayScope>\n <RACPopover crossOffset={alignOffset} isNonModal={!modal} offset={sideOffset} placement={placementOf(side, align)}\n // The surface, where the call site's class and style land, rather than\n // the dialog inside it, which takes the rest of the props.\n ref={merged}\n // Focus leaving for the trigger closes nothing: the trigger's own\n // press toggles the panel, and closing it first reopened it.\n shouldCloseOnInteractOutside={modal ? undefined : isOutsideTrigger} triggerRef={triggerRef}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container} {...mergeStatefulStyles((render: PopoverRenderProps) => stylex.props(overlay.popup, styles.content, styles.dialogRing, styles[size], popupOrigin(render.placement)), {\n className,\n style\n })}>\n {modal ? <Dialog aria-describedby={describedBy} {...props} {...stylex.props(overlay.popupDialog, styles.dialog)}>\n <DescriptionContext value={registerDescription}>\n {children}\n </DescriptionContext>\n </Dialog> : <PanelDialog aria-describedby={describedBy} onPressWithin={markPressWithin} {...props}>\n <DescriptionContext value={registerDescription}>\n {children}\n </DescriptionContext>\n </PanelDialog>}\n </RACPopover>\n </OverlayScope>;\n}\n\n/**\n * Supporting copy under the title. The panel's `aria-describedby` points at\n * it — see DescriptionContext for why that is this component's doing.\n */\nfunction PopoverDescription(props: PopoverDescriptionProps & RefAttributes<HTMLElement>) {\n const register = useContext(DescriptionContext);\n const generated = useId();\n const id = props.id ?? generated;\n useEffect(() => register(id), [id, register]);\n return <Text slot=\"description\" {...props} id={id} {...mergeStyles({\n className: \"x9f619 x1w5n3ug xpo2rfv x193rfdd x1hews6w xn43zvd xv61bfh x1ghz6dp\"\n }, props)} />;\n}\n\n/**\n * Names the popover. Rendered through React Aria's title slot, which is what\n * points the panel's `aria-labelledby` at it — a popover without one announces\n * itself unnamed.\n */\nfunction PopoverTitle(props: PopoverTitleProps & RefAttributes<HTMLHeadingElement>) {\n const register = useContext(TitleContext);\n useEffect(() => register(), [register]);\n return <Heading slot=\"title\" {...props} {...mergeStyles({\n className: \"x9f619 x1w5n3ug xrgwony x12s497w x1szcwkt xo803ec xyl1r0q x1ghz6dp\"\n }, props)} />;\n}\n\n/**\n * What a pressed trigger hands the overlay it opens: the id its\n * `aria-controls` points at, and its own id to name a panel with no title.\n * Read field by field, since the context's type also admits a slotted\n * value; a hover trigger hands nothing.\n */\nfunction triggerOf(context: unknown) {\n if (typeof context !== 'object' || context === null || 'slots' in context) {\n return undefined;\n }\n return {\n id: 'id' in context && typeof context.id === 'string' ? context.id : undefined,\n labelledBy: 'aria-labelledby' in context && typeof context['aria-labelledby'] === 'string' ? context['aria-labelledby'] : undefined\n };\n}\nPopover.Content = PopoverContent;\nPopover.Description = PopoverDescription;\nPopover.Title = PopoverTitle;\n\n// The dialog's own props, plus the four that place the panel and its\n// styling. Those belong to the positioned panel rather than to the dialog,\n// but a call site has no reason to know there are two elements — `className`\n// and `style` reach the panel, which is the one worth restyling, and\n// everything else lands on the dialog.\ntype PopoverContentProps = Omit<DialogProps, 'children' | 'className' | 'style'> & {\n /**\n * Where the panel sits along the side it opens on.\n * @default 'center'\n */\n align?: PopoverAlign;\n /** Moves the panel along that side, in pixels. */\n alignOffset?: number;\n children?: ReactNode;\n /** A function may compute the class from the panel's render state. */\n className?: ClassNameOrFunction<PopoverRenderProps>;\n /**\n * Where to portal the panel. Defaults to the container of the `ThemeScope`\n * around it, which keeps the popover on that scope's tokens, or to the end of\n * `<body>` where there is none. A subtree themed through the `themeScope`\n * class has no container of its own, so point this inside it, or the popover\n * renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * Which side of the trigger the panel opens on. It flips to the opposite\n * side when there is no room. `start` and `end` follow the writing\n * direction, so `end` is the right in English and the left in Arabic;\n * `left` and `right` stay put in either.\n * @default 'bottom'\n */\n side?: PopoverSide;\n /**\n * The gap between the trigger and the panel, in pixels.\n * @default 8\n */\n sideOffset?: number;\n /** A function may compute the style from the panel's render state. */\n style?: StyleOrFunction<PopoverRenderProps>;\n /**\n * An element to anchor the panel to other than the trigger that opened it.\n */\n triggerRef?: RefObject<Element | null>;\n};\ntype PopoverDescriptionProps = TextProps;\ntype PopoverTitleProps = HeadingProps;\nexport type { PopoverAlign, PopoverContentProps, PopoverDescriptionProps, PopoverProps, PopoverSide, PopoverSize, PopoverTitleProps, PopoverTrigger };\nexport { PopoverContent, PopoverDescription, PopoverTitle };\nexport default Popover;"],"mappings":";;;;;;;;;;;;AAsBA,MAAMsB,sBAAsB;AAgB5B,MAAMC,SAAS;CACbC,SAAS;EACPC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,aAAa;EACXC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRT,OAAO;CACT;CACAU,QAAQ;EACNC,QAAQ;EACRX,OAAO;CACT;CACAY,YAAY;EACVC,QAAQ;EACRC,QAAQ;EACRH,QAAQ;EACRI,QAAQ;EACRf,OAAO;CACT;CACAgB,IAAI;EACFC,QAAQ;EACRjB,OAAO;CACT;CACAkB,IAAI;EACFD,QAAQ;EACRjB,OAAO;CACT;CACAmB,OAAO;EACLjB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRT,OAAO;CACT;AACF;AAMA,MAAMoB,sBAAsB;AAC5B,MAAMC,4BAA4B;AAclC,MAAMpC,mBAAiBX,cAGpB;CACDgD,OAAO;CACPC,MAAM;AACR,CAAC;AAWD,MAAMC,qBAAqBlD,0BAAsD,CAAC,CAAC;AAKnF,MAAMoD,eAAepD,0BAA4C,CAAC,CAAC;AAInE,MAAMqD,aAAa,EACjBC,OAAO;EACJ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ChE;CAEF,OAAO;EACL3D,IAAI,QAAQ2D,WAAW,OAAOA,QAAQ3D,OAAO,WAAW2D,QAAQ3D,KAAK2B,KAAAA;EACrEhB,YAAY,qBAAqBgD,WAAW,OAAOA,QAAQ,uBAAuB,WAAWA,QAAQ,qBAAqBhC,KAAAA;CAC5H;AACF;AACApE,UAAQqJ,UAAUhD;AAClBrG,UAAQsJ,cAAcL;AACtBjJ,UAAQuJ,QAAQH"}
1
+ {"version":3,"file":"index.js","names":["_c","stylex","createContext","useContext","useEffect","useId","useRef","useState","useInteractOutside","DEFAULT_SLOT","DialogContext","OverlayTriggerStateContext","Popover","PopoverContext","RACPopoverContext","useSlottedContext","mergeRefs","mergeStatefulStyles","mergeStyles","overlay","placementOf","popupOrigin","DEFAULT_SIDE_OFFSET","styles","content","kGO01o","kLKAdn","kg3NbH","$$css","description","kB7OPa","kMwMTN","kMv6JI","kGuDYH","k63SB2","kb6lSQ","kLWn49","kogj98","dialog","k3XXqK","dialogRing","kjBf7l","kInvED","kMeerF","md","ks0D6T","sm","title","DEFAULT_HOVER_DELAY","DEFAULT_HOVER_CLOSE_DELAY","modal","size","DescriptionContext","id","TitleContext","TEXT_SLOTS","slots","children","closeDelay","delay","trigger","PanelDialog","t0","$","labelledBy","onPressWithin","props","slot","t1","t2","t3","t4","render","_render","t5","t6","ref","state","triggerOf","pressed","undefined","titleId","titled","setTitled","Symbol","for","registerTitle","level","headings","onPress","close","t7","t8","buttons","t10","t9","element","current","contains","document","activeElement","focus","preventScroll","t11","t12","t13","t14","popupDialog","t15","t16","t17","t18","context","PopoverContent","alignOffset","className","container","style","triggerRef","align","side","sideOffset","handed","panel","merged","pressedWithin","markPressWithin","own","triggers","fromTrigger","isOutsideTrigger","isOpen","event","target","Element","isDisabled","onInteractOutside","onInteractOutsideStart","descriptions","setDescriptions","ids","ids_0","at","indexOf","slice","registerDescription","length","Set","join","describedBy","t19","t20","popup","placement","t21","t22","t23","PopoverDescription","register","generated","PopoverTitle","Content","Description","Title","RACPopover"],"sources":["../../../src/components/popover/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes, RefObject } from 'react';\nimport type { ClassNameOrFunction, DialogProps, DialogTriggerProps, HeadingProps, PopoverRenderProps, StyleOrFunction, TextProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { createContext, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from 'react';\nimport { useInteractOutside } from 'react-aria';\nimport { ButtonContext, DEFAULT_SLOT, Dialog, DialogContext, DialogTrigger, Heading, HeadingContext, OverlayTriggerStateContext, PreviewTrigger, Popover as RACPopover, PopoverContext as RACPopoverContext, Text, TextContext, useSlottedContext } from 'react-aria-components';\nimport type { OverlayAlign, OverlaySide } from '../../styles/overlay';\nimport { OverlayScope } from '../../overlay';\nimport { mergeRefs } from '../../render/ref';\nimport { mergeStatefulStyles, mergeStyles } from '../../styles/merge';\nimport { overlay, placementOf, popupOrigin } from '../../styles/overlay';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, spacing, typography } from '../../tokens/design.tokens.stylex';\n\n// The gap between the anchor and the panel, matching `spacing.sm`'s default.\n// A number rather than the token, because React Aria computes the position in\n// JavaScript and so cannot read a CSS custom property — this is the one place\n// in the component where a step of the spacing scale is spelled out. React\n// Aria's own default is 8 as well, but the value is this component's decision\n// rather than an inherited one.\nconst DEFAULT_SIDE_OFFSET = 8;\n\n// The surface and its entry are the overlay module's, shared with every\n// anchored overlay; what is here is Popover's own — its inset, its two\n// widths, the type of its title and description, and where the dialog's\n// focus ring is drawn.\n//\n// Popover has no page of its own, so the inset and the type follow the rich\n// tooltip, the nearest thing the Material Design pages draw: a plain rounded\n// panel offset from its anchor, with no caret drawn between the two, holding\n// a subhead over supporting text.\n//\n// React Aria's popover is two elements — the positioned panel and the dialog\n// inside it — so the styles are split the same way: the surface, `content`,\n// a size and the dialog's focus ring on the panel, the dialog style on the\n// element that carries the role.\nconst styles = {\n content: {\n kGO01o: \"xqf7pud\",\n kLKAdn: \"x6gmt8y\",\n kg3NbH: \"x790zyz\",\n $$css: true\n },\n description: {\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xpo2rfv\",\n kGuDYH: \"x193rfdd\",\n k63SB2: \"x1hews6w\",\n kb6lSQ: \"xn43zvd\",\n kLWn49: \"xv61bfh\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n },\n dialog: {\n k3XXqK: \"x1t137rt\",\n $$css: true\n },\n dialogRing: {\n kjBf7l: \"xrgy624\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xbrmr3i x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n md: {\n ks0D6T: \"x10u2fgw\",\n $$css: true\n },\n sm: {\n ks0D6T: \"xjjheoa\",\n $$css: true\n },\n title: {\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xrgwony\",\n kGuDYH: \"x12s497w\",\n k63SB2: \"x1szcwkt\",\n kb6lSQ: \"xo803ec\",\n kLWn49: \"xyl1r0q\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n }\n};\n\n// How long a pointer rests on the trigger before a hovered popover opens,\n// and how long it has to leave before it closes. React Aria's own defaults,\n// spelled out because they are the whole feel of a hover trigger and worth\n// finding in the component rather than in a changelog.\nconst DEFAULT_HOVER_DELAY = 600;\nconst DEFAULT_HOVER_CLOSE_DELAY = 200;\n\n// The overlay module's, since which side a surface opens on is the same\n// question for every anchored overlay. Aliased rather than re-declared so\n// the names a call site imports stay this component's.\ntype PopoverAlign = OverlayAlign;\ntype PopoverSide = OverlaySide;\ntype PopoverSize = 'md' | 'sm';\n\n// `size` and `modal` are declared on the root, where a reader expects to set\n// the shape of the whole popover, but it is `Popover.Content` that has to\n// apply them. Through context rather than making the call site repeat them —\n// the same arrangement Sheet uses, and worth keeping identical between the\n// two panels a consumer is most likely to reach for in the same afternoon.\nconst PopoverContext = createContext<{\n modal: boolean;\n size: PopoverSize;\n}>({\n modal: false,\n size: 'md'\n});\n\n// React Aria points a dialog's `aria-describedby` at its description slot\n// only for an alert dialog, on the grounds that an ordinary dialog's content\n// is read anyway. A popover's description names what the panel is for, so it\n// is pointed at here: each description reports the id it renders while it is\n// mounted, and the dialog follows those ids, since an `aria-describedby` with\n// nothing at the other end is an invalid reference rather than a harmless one.\n// The id is the one the element carries, a call site's own included, and each\n// description has one of its own, so a second description adds its id rather\n// than sharing the first's, and unmounting either leaves the other.\nconst DescriptionContext = createContext<(id: string) => () => void>(() => () => {});\n\n// The same for the title, which the non-modal panel names itself by — see\n// PanelDialog. React Aria's own Dialog finds its title by looking for it;\n// the panel here is told it is there.\nconst TitleContext = createContext<() => () => void>(() => () => {});\n\n// The text slot the description fills, with the default beside it so a\n// plain `Text` still renders. Hoisted, since it never changes.\nconst TEXT_SLOTS = {\n slots: {\n [DEFAULT_SLOT]: {},\n description: {}\n }\n};\ntype PopoverProps = Omit<DialogTriggerProps, 'children'> & {\n children?: ReactNode;\n /**\n * How long the pointer has to leave a hovered popover before it closes, in\n * milliseconds. Ignored by a pressed one.\n * @default 200\n */\n closeDelay?: number;\n /**\n * How long the pointer has to rest on the trigger before a hovered popover\n * opens, in milliseconds. Ignored by a pressed one.\n * @default 600\n */\n delay?: number;\n /**\n * Blocks the page behind the panel while it is open, as a dialog would.\n * Off by default: a popover leaves the page interactive, which is the\n * difference from `Sheet`.\n * @default false\n */\n modal?: boolean;\n /**\n * Panel width: `sm` caps at 240px, `md` at 320px. Either way the panel is\n * only as wide as its contents, and never wider than the viewport.\n * @default 'md'\n */\n size?: PopoverSize;\n /**\n * What opens the panel: a press, or a pointer resting on the trigger.\n * `hover` is the tooltips page's rich tooltip — it opens on hover, focus\n * or a long press, and stays open while the pointer is inside it, so the\n * panel's own buttons and links can be reached.\n * @default 'press'\n */\n trigger?: PopoverTrigger;\n};\ntype PopoverTrigger = 'hover' | 'press';\n\n/**\n * The element that carries the dialog role in a non-modal popover: what\n * React Aria's `Dialog` gives a modal one — the role, the name from the\n * title, the description, and the close slot — without the two things that\n * make `Dialog` a modal's.\n *\n * `Dialog` moves focus into itself as it mounts, whatever opened it, and\n * holds focus inside the overlay until it closes. A hover popover therefore\n * took focus from wherever the reader was typing the moment a pointer\n * rested on its trigger, and Tab in an open popover went round its own\n * controls forever, though the page behind a non-modal popover is meant to\n * stay in reach. Here a pressed popover still takes focus as it opens, since\n * a press asked for the panel, but a hovered one leaves it where it is, and\n * Tab past the panel's last control carries on from the trigger in the\n * page. React Aria's popover sees a dialog inside it and so adds no role or\n * focus handling of its own.\n */\nfunction PanelDialog({\n 'aria-labelledby': labelledBy,\n children,\n id,\n onPressWithin,\n // React Aria's render prop is the one part of a dialog's props this\n // element cannot honour, being an element of its own rather than React\n // Aria's; left out rather than spread onto the DOM.\n render: _render,\n slot,\n ...props\n}: Omit<PopoverContentProps, 'align' | 'alignOffset' | 'className' | 'container' | 'side' | 'sideOffset' | 'style' | 'triggerRef'> & {\n /**\n * Called when a press starts anywhere inside the panel in React's tree,\n * which takes in what an overlay opened from the panel draws elsewhere in\n * the document — see `PopoverContent`.\n */\n onPressWithin: () => void;\n}) {\n const ref = useRef<HTMLElement>(null);\n const state = useContext(OverlayTriggerStateContext);\n // What the trigger hands its overlay: the id the trigger's\n // `aria-controls` points at, and the trigger itself as the name of a\n // panel with no title. A hover trigger hands nothing, and is a hover\n // trigger for exactly that reason.\n const trigger = triggerOf(useContext(DialogContext));\n const pressed = trigger !== undefined;\n const titleId = useId();\n const [titled, setTitled] = useState(false);\n const registerTitle = useCallback(() => {\n setTitled(true);\n return () => {\n setTitled(false);\n };\n }, []);\n const headings = useMemo(() => ({\n slots: {\n [DEFAULT_SLOT]: {},\n title: {\n id: titleId,\n level: 2\n }\n }\n }), [titleId]);\n const buttons = useMemo(() => ({\n slots: {\n close: {\n onPress: () => {\n state?.close();\n }\n },\n [DEFAULT_SLOT]: {}\n }\n }), [state]);\n useEffect(() => {\n const element = ref.current;\n if (pressed && element !== null && !element.contains(document.activeElement)) {\n element.focus({\n preventScroll: true\n });\n }\n }, [pressed]);\n return (\n // A section with the role, as React Aria's own dialog is: a `<dialog>`\n // element brings the browser's own positioning, border, padding and top\n // layer, all of which the panel around it already decides.\n <section {...props} aria-labelledby={labelledBy ?? (titled ? titleId : trigger?.labelledBy)} id={id ?? trigger?.id} onPointerDownCapture={onPressWithin} ref={ref}\n // oxlint-disable-next-line jsx-a11y/prefer-tag-over-role -- a `<dialog>` element would bring the browser's own positioning and top layer, which the panel around it already decides\n role=\"dialog\" slot={slot ?? undefined} tabIndex={-1} {...stylex.props(overlay.popupDialog, styles.dialog)}>\n <HeadingContext value={headings}>\n <TextContext value={TEXT_SLOTS}>\n <ButtonContext value={buttons}>\n <TitleContext value={registerTitle}>{children}</TitleContext>\n </ButtonContext>\n </TextContext>\n </HeadingContext>\n </section>\n );\n}\n\n/**\n * A panel anchored to the control that opened it. Open state is React Aria's:\n * pass `isOpen` with `onOpenChange` to control it, or `defaultOpen` to let it\n * keep its own.\n *\n * Non-modal by design — the page behind stays scrollable and clickable, which\n * is the difference from `Sheet`. Pass `modal` to change that. Escape, a press\n * anywhere outside the panel and a button given `slot=\"close\"` close it, and\n * a press on its trigger toggles it. Inside a dialog, a press on the scrim\n * closes the popover first and the dialog on the next, as a menu does.\n *\n * Composed rather than configured by props, because a popover's contents are\n * arbitrary — the parts are `Popover.Content`, `Popover.Title`, and\n * `Popover.Description`. A `Button` or `IconButton` placed directly inside\n * `Popover` opens it, and one given `slot=\"close\"` inside the content closes\n * it; neither needs a part of its own. Where the panel sits against its\n * trigger is `Popover.Content`'s `side` and `align`.\n *\n * ```tsx\n * <Popover>\n * <Button>Open</Button>\n * <Popover.Content side=\"end\">\n * <Popover.Title>Headline</Popover.Title>\n * <Popover.Description>Supporting line</Popover.Description>\n * <Button slot=\"close\" variant=\"text\">\n * Dismiss\n * </Button>\n * </Popover.Content>\n * </Popover>\n * ```\n */\nfunction Popover({\n children,\n closeDelay = DEFAULT_HOVER_CLOSE_DELAY,\n delay = DEFAULT_HOVER_DELAY,\n modal = false,\n size = 'md',\n trigger = 'press',\n ...props\n}: PopoverProps) {\n // A hovered popover is React Aria's preview trigger, which is a different\n // element around the same parts rather than a mode of the pressed one: it\n // opens from hover, focus or a long press, and it is always non-modal,\n // since a panel that blocked the page while the pointer merely rested on\n // something would be a trap. `modal` is ignored there rather than\n // refused, so the content draws the non-modal panel whatever it says.\n const context = useMemo(() => ({\n modal: modal && trigger !== 'hover',\n size\n }), [modal, size, trigger]);\n if (trigger === 'hover') {\n return <PopoverContext value={context}>\n <PreviewTrigger closeDelay={closeDelay} delay={delay} {...props}>\n {children}\n </PreviewTrigger>\n </PopoverContext>;\n }\n return <PopoverContext value={context}>\n <DialogTrigger {...props}>{children}</DialogTrigger>\n </PopoverContext>;\n}\n\n/**\n * The panel itself. Everything the popover shows goes in here; the trigger\n * stays outside it, since the trigger lives in the page while this is\n * portalled out to the end of the body.\n *\n * Placement is React Aria's anchor positioning, so the panel flips to the\n * opposite side and shifts along the edge of the viewport on its own rather\n * than being clipped by it.\n */\nfunction PopoverContent({\n align = 'center',\n alignOffset,\n children,\n className,\n container,\n ref,\n side = 'bottom',\n sideOffset = DEFAULT_SIDE_OFFSET,\n style,\n triggerRef,\n ...props\n}: PopoverContentProps & RefAttributes<HTMLElement>) {\n const {\n modal,\n size\n } = useContext(PopoverContext);\n const state = useContext(OverlayTriggerStateContext);\n // The trigger React Aria hands its popover, for a content part given no\n // `triggerRef` of its own.\n const handed = useSlottedContext(RACPopoverContext)?.triggerRef;\n\n // A non-modal popover is one React Aria closes on blur alone: a press on\n // blank page left it open, and a press on its own trigger closed it as\n // focus left the panel and opened it again on the same press. Here a\n // press anywhere outside the panel closes it, and a press on the trigger\n // is left to the trigger, which toggles it.\n //\n // What an overlay opened from inside the panel draws — a select's list, a\n // menu — is portalled elsewhere in the document, so a press there is\n // outside the panel's element though it is within the panel's tree. React\n // carries the press up that tree, and the panel marks it as within before\n // the press ends; the outside press is read on its end, so the mark is\n // there to read. Each press outside clears it as it starts.\n const panel = useRef<HTMLElement>(null);\n const merged = useMemo(() => mergeRefs(panel, ref ?? undefined), [ref]);\n const pressedWithin = useRef(false);\n const markPressWithin = useCallback(() => {\n pressedWithin.current = true;\n }, []);\n // The two refs the trigger may come through, kept where a callback can\n // read them at the moment of a press rather than as dependencies, which a\n // ref is not.\n const triggers = useRef({\n handed,\n own: triggerRef\n });\n useEffect(() => {\n triggers.current = {\n handed,\n own: triggerRef\n };\n });\n const isOutsideTrigger = useCallback((element: Element) => {\n const {\n handed: fromTrigger,\n own\n } = triggers.current;\n const trigger = own?.current ?? fromTrigger?.current;\n return !(trigger?.contains(element) ?? false);\n }, []);\n useInteractOutside({\n isDisabled: modal || state === null || !state.isOpen,\n onInteractOutside: event => {\n if (pressedWithin.current) {\n pressedWithin.current = false;\n return;\n }\n if (event.target instanceof Element && !isOutsideTrigger(event.target)) {\n return;\n }\n state?.close();\n },\n onInteractOutsideStart: () => {\n pressedWithin.current = false;\n },\n ref: panel\n });\n\n // The ids of the descriptions mounted in the panel, one entry per\n // description, in the order they mounted.\n const [descriptions, setDescriptions] = useState<readonly string[]>([]);\n const registerDescription = useCallback((id: string) => {\n setDescriptions(ids => [...ids, id]);\n return () => {\n setDescriptions(ids => {\n const at = ids.indexOf(id);\n return at === -1 ? ids : [...ids.slice(0, at), ...ids.slice(at + 1)];\n });\n };\n }, []);\n const describedBy = descriptions.length > 0 ? [...new Set(descriptions)].join(' ') : undefined;\n return <OverlayScope>\n <RACPopover crossOffset={alignOffset} isNonModal={!modal} offset={sideOffset} placement={placementOf(side, align)}\n // The surface, where the call site's class and style land, rather than\n // the dialog inside it, which takes the rest of the props.\n ref={merged}\n // Focus leaving for the trigger closes nothing: the trigger's own\n // press toggles the panel, and closing it first reopened it.\n shouldCloseOnInteractOutside={modal ? undefined : isOutsideTrigger} triggerRef={triggerRef}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container} {...mergeStatefulStyles((render: PopoverRenderProps) => stylex.props(overlay.popup, styles.content, styles.dialogRing, styles[size], popupOrigin(render.placement)), {\n className,\n style\n })}>\n {modal ? <Dialog aria-describedby={describedBy} {...props} {...stylex.props(overlay.popupDialog, styles.dialog)}>\n <DescriptionContext value={registerDescription}>\n {children}\n </DescriptionContext>\n </Dialog> : <PanelDialog aria-describedby={describedBy} onPressWithin={markPressWithin} {...props}>\n <DescriptionContext value={registerDescription}>\n {children}\n </DescriptionContext>\n </PanelDialog>}\n </RACPopover>\n </OverlayScope>;\n}\n\n/**\n * Supporting copy under the title. The panel's `aria-describedby` points at\n * it — see DescriptionContext for why that is this component's doing.\n */\nfunction PopoverDescription(props: PopoverDescriptionProps & RefAttributes<HTMLElement>) {\n const register = useContext(DescriptionContext);\n const generated = useId();\n const id = props.id ?? generated;\n useEffect(() => register(id), [id, register]);\n return <Text slot=\"description\" {...props} id={id} {...mergeStyles({\n className: \"x9f619 x1w5n3ug xpo2rfv x193rfdd x1hews6w xn43zvd xv61bfh x1ghz6dp\"\n }, props)} />;\n}\n\n/**\n * Names the popover. Rendered through React Aria's title slot, which is what\n * points the panel's `aria-labelledby` at it — a popover without one announces\n * itself unnamed.\n */\nfunction PopoverTitle(props: PopoverTitleProps & RefAttributes<HTMLHeadingElement>) {\n const register = useContext(TitleContext);\n useEffect(() => register(), [register]);\n return <Heading slot=\"title\" {...props} {...mergeStyles({\n className: \"x9f619 x1w5n3ug xrgwony x12s497w x1szcwkt xo803ec xyl1r0q x1ghz6dp\"\n }, props)} />;\n}\n\n/**\n * What a pressed trigger hands the overlay it opens: the id its\n * `aria-controls` points at, and its own id to name a panel with no title.\n * Read field by field, since the context's type also admits a slotted\n * value; a hover trigger hands nothing.\n */\nfunction triggerOf(context: unknown) {\n if (typeof context !== 'object' || context === null || 'slots' in context) {\n return undefined;\n }\n return {\n id: 'id' in context && typeof context.id === 'string' ? context.id : undefined,\n labelledBy: 'aria-labelledby' in context && typeof context['aria-labelledby'] === 'string' ? context['aria-labelledby'] : undefined\n };\n}\nPopover.Content = PopoverContent;\nPopover.Description = PopoverDescription;\nPopover.Title = PopoverTitle;\n\n// The dialog's own props, plus the four that place the panel and its\n// styling. Those belong to the positioned panel rather than to the dialog,\n// but a call site has no reason to know there are two elements — `className`\n// and `style` reach the panel, which is the one worth restyling, and\n// everything else lands on the dialog.\ntype PopoverContentProps = Omit<DialogProps, 'children' | 'className' | 'style'> & {\n /**\n * Where the panel sits along the side it opens on.\n * @default 'center'\n */\n align?: PopoverAlign;\n /** Moves the panel along that side, in pixels. */\n alignOffset?: number;\n children?: ReactNode;\n /** A function may compute the class from the panel's render state. */\n className?: ClassNameOrFunction<PopoverRenderProps>;\n /**\n * Where to portal the panel. Defaults to the container of the `ThemeScope`\n * around it, which keeps the popover on that scope's tokens, or to the end of\n * `<body>` where there is none. A subtree themed through the `themeScope`\n * class has no container of its own, so point this inside it, or the popover\n * renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * Which side of the trigger the panel opens on. It flips to the opposite\n * side when there is no room. `start` and `end` follow the writing\n * direction, so `end` is the right in English and the left in Arabic;\n * `left` and `right` stay put in either.\n * @default 'bottom'\n */\n side?: PopoverSide;\n /**\n * The gap between the trigger and the panel, in pixels.\n * @default 8\n */\n sideOffset?: number;\n /** A function may compute the style from the panel's render state. */\n style?: StyleOrFunction<PopoverRenderProps>;\n /**\n * An element to anchor the panel to other than the trigger that opened it.\n */\n triggerRef?: RefObject<Element | null>;\n};\ntype PopoverDescriptionProps = TextProps;\ntype PopoverTitleProps = HeadingProps;\nexport type { PopoverAlign, PopoverContentProps, PopoverDescriptionProps, PopoverProps, PopoverSide, PopoverSize, PopoverTitleProps, PopoverTrigger };\nexport { PopoverContent, PopoverDescription, PopoverTitle };\nexport default Popover;"],"mappings":";;;;;;;;;;;;AAsBA,MAAMsB,sBAAsB;AAgB5B,MAAMC,SAAS;CACbC,SAAS;EACPC,QAAQ;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AQ;CAAA,IAAAM;CAAA,IAAAL,EAAA,OAAA+F,UAAA;EAChChG,WAAMgG,SAAS;EAAG1F,KAAA,CAAC0F,QAAQ;EAAC/F,EAAA,KAAA+F;EAAA/F,EAAA,KAAAD;EAAAC,EAAA,KAAAK;CAAA,OAAA;EAAAN,KAAAC,EAAA;EAAAK,KAAAL,EAAA;CAAA;CAAtC3D,UAAU0D,IAAkBM,EAAU;CAAC,IAAAC;CAAA,IAAAN,EAAA,OAAAG,OAAA;EACKG,KAAAnD,YAAY,EAAAiG,WAC3C,qEACb,GAAGjD,KAAK;EAACH,EAAA,KAAAG;EAAAH,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAG,SAAAH,EAAA,OAAAM,IAAA;EAFFC,KAAA,oBAAC,SAAD;GAAc,MAAA;GAAO,GAAKJ;GAAK,GAAMG;EAEnC,CAAA;EAAIN,EAAA,KAAAG;EAAAH,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OAFNO;AAEM;;;;;;;AASf,SAASQ,UAAUkC,SAAkB;CACnC,IAAI,OAAOA,YAAY,YAAYA,YAAY,QAAQ,WAAWA,SAChE;CAEF,OAAO;EACL3D,IAAI,QAAQ2D,WAAW,OAAOA,QAAQ3D,OAAO,WAAW2D,QAAQ3D,KAAK2B,KAAAA;EACrEhB,YAAY,qBAAqBgD,WAAW,OAAOA,QAAQ,uBAAuB,WAAWA,QAAQ,qBAAqBhC,KAAAA;CAC5H;AACF;AACApE,QAAQqJ,UAAUhD;AAClBrG,QAAQsJ,cAAcL;AACtBjJ,QAAQuJ,QAAQH"}
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, RefAttributes } from "react";
2
- import { RadioFieldProps, RadioGroupProps } from "react-aria-components";
3
- type RadioGroupProps$1 = {
2
+ import { RadioFieldProps, RadioGroupProps as RadioGroupProps$1 } from "react-aria-components";
3
+ type RadioGroupProps = {
4
4
  /** The radio buttons, each with a `value` of its own. */
5
5
  children?: ReactNode;
6
6
  /**
@@ -23,7 +23,7 @@ type RadioGroupProps$1 = {
23
23
  * buttons with no name is a set a screen reader cannot introduce.
24
24
  */
25
25
  label: string;
26
- } & Omit<RadioGroupProps, 'children' | 'isInvalid' | 'validationBehavior'>;
26
+ } & Omit<RadioGroupProps$1, 'children' | 'isInvalid' | 'validationBehavior'>;
27
27
  type RadioProps = Omit<RadioFieldProps, 'children'> & {
28
28
  /**
29
29
  * The label, beside the button. A button that a row labels some other way
@@ -65,5 +65,5 @@ declare function Radio({ children, description, ...props }: RadioProps & RefAttr
65
65
  * The call site's `className` and `style` land on the group as a whole,
66
66
  * which is the element a layout positions.
67
67
  */
68
- declare function RadioGroup$1({ children, description, error, label, orientation, ...props }: RadioGroupProps$1 & RefAttributes<HTMLDivElement>): import("react").JSX.Element;
69
- export { Radio, type RadioGroupProps$1 as RadioGroupProps, type RadioProps, RadioGroup$1 as default };
68
+ declare function RadioGroup({ children, description, error, label, orientation, ...props }: RadioGroupProps & RefAttributes<HTMLDivElement>): import("react").JSX.Element;
69
+ export { Radio, type RadioGroupProps, type RadioProps, RadioGroup as default };
@@ -10,7 +10,7 @@ import { focus } from "../../styles/focus.js";
10
10
  import { mergeStatefulStyles } from "../../styles/merge.js";
11
11
  import { c } from "react/compiler-runtime";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
- import { RadioButton, RadioField, RadioGroup } from "react-aria-components";
13
+ import { RadioButton, RadioField, RadioGroup as RadioGroup$1 } from "react-aria-components";
14
14
  // src/components/radio-group/index.tsx
15
15
  const styles = {
16
16
  control: {
@@ -186,12 +186,12 @@ function Radio(t0) {
186
186
  * The call site's `className` and `style` land on the group as a whole,
187
187
  * which is the element a layout positions.
188
188
  */
189
- function RadioGroup$1(t0) {
189
+ function RadioGroup(t0) {
190
190
  const $ = c(16);
191
191
  const { children, description, error, label, orientation: t1, ...props$1 } = t0;
192
192
  const orientation = t1 === void 0 ? "vertical" : t1;
193
193
  const validationBehavior = useFieldValidationBehavior();
194
- const T0 = RadioGroup;
194
+ const T0 = RadioGroup$1;
195
195
  let t2;
196
196
  if ($[0] !== error) {
197
197
  t2 = invalidFrom(error);
@@ -231,6 +231,6 @@ function RadioGroup$1(t0) {
231
231
  } else t6 = $[15];
232
232
  return t6;
233
233
  }
234
- export { Radio, RadioGroup$1 as default };
234
+ export { Radio, RadioGroup as default };
235
235
 
236
236
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_c","stylex","RadioGroup","RACRadioGroup","RadioField","controlStyles","invalidFrom","useFieldValidationBehavior","fieldGroupStyles","useRipple","focus","mergeStatefulStyles","styles","control","kMwMTN","$$css","itemsHorizontal","k1C7PZ","kXwgrk","kwnvtZ","toneActive","toneDisabled","toneSelected","hoverLayers","selected","kWkggS","unselected","focusLayers","pressedLayers","children","description","error","label","buttonContent","ripple","state","interactive","isDisabled","isReadOnly","tone","isSelected","active","isHovered","isPressed","isFocusVisible","handlers","props","disc","controlReadOnly","controlDisabled","ringVisible","className","surface","groupContent","horizontal","isRequired","stack","optionContent","button","Radio","t0","$","T0","t1","field","t2","t3","t4","t5","orientation","undefined","validationBehavior","root","t6"],"sources":["../../../src/components/radio-group/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { RadioGroupProps as RACRadioGroupProps, RadioButtonRenderProps, RadioFieldProps, RadioFieldRenderProps, RadioGroupRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { RadioGroup as RACRadioGroup, RadioButton, RadioField } from 'react-aria-components';\nimport { ControlDescription, ControlLabel } from '../../control';\nimport { controlStyles } from '../../control/styles';\nimport { FieldLabel, FieldMessage } from '../../field';\nimport { invalidFrom, useFieldValidationBehavior } from '../../field/root';\nimport { groupStyles as fieldGroupStyles } from '../../field/styles';\nimport { useRipple } from '../../hooks/useRipple';\nimport { focus } from '../../styles/focus';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii, spacing, stateLayerOpacity } from '../../tokens/design.tokens.stylex';\n\n// The radio button page: a 20dp ring inside a 40dp state layer, with a 48dp\n// target. Unselected, the ring is 2dp of on surface variant that turns on\n// surface while hovered, pressed or focused; selected, the ring and the 10dp\n// dot inside it are primary. Disabled is on surface at the disabled opacity\n// for both. The state layer is on surface over an unselected button and\n// primary over a selected one while hovered, and the two swap once pressed.\n// The page draws no error state for the button itself: an invalid group\n// says so through its label and message, and the buttons keep their colours.\n//\n// Two components from one module, since neither means anything without the\n// other: a radio button is a member of a group, and the group is what holds\n// the value. React Aria's `RadioGroup` is the group, a div with the label,\n// description and error slots; `RadioField` is one button's root, a div with\n// its description slot; and `RadioButton` is the label around the visually\n// hidden input, whose children draw the button from the render state React\n// Aria hands them. The field is the same two-column grid Checkbox uses, with\n// the label `display: contents` so the description lines up under the text.\n//\n// The adjacent label is body-large on surface, which the page keeps the same\n// whether or not the button is selected.\n//\n// A change of selection moves together: the ring's colour fades, and the dot\n// grows in from nothing or shrinks away, over the same duration and curve.\n// The dot is always drawn, at no size while the button is not selected.\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 styles = {\n control: {\n kMwMTN: \"x1w5n3ug\",\n $$css: true\n },\n itemsHorizontal: {\n k1C7PZ: \"xpamuu5\",\n kXwgrk: \"x1q0g3np\",\n kwnvtZ: \"x1a02dak\",\n $$css: true\n },\n toneActive: {\n kMwMTN: \"x139gbkf\",\n $$css: true\n },\n toneDisabled: {\n kMwMTN: \"x1gpw424 x1bhcspo\",\n $$css: true\n },\n toneSelected: {\n kMwMTN: \"x1mxwv8y\",\n $$css: true\n }\n};\n\n// The state layer follows the button: on surface over an unselected one and\n// primary over a selected one while hovered, the two swapped once pressed.\nconst hoverLayers = {\n selected: {\n kWkggS: \"x659ado\",\n $$css: true\n },\n unselected: {\n kWkggS: \"x1b18xnh\",\n $$css: true\n }\n};\n\n// A keyboard's focus draws the hover layer's colour at the focus opacity.\nconst focusLayers = {\n selected: {\n kWkggS: \"x1sog3nf\",\n $$css: true\n },\n unselected: {\n kWkggS: \"xwqhyid\",\n $$css: true\n }\n};\nconst pressedLayers = {\n selected: {\n kWkggS: \"xjeeohs\",\n $$css: true\n },\n unselected: {\n kWkggS: \"x1dvjsmr\",\n $$css: true\n }\n};\ntype RadioGroupProps = {\n /** The radio buttons, each with a `value` of its own. */\n children?: ReactNode;\n /**\n * A hint under the group. Replaced by `error` when there is one, so the\n * two never stack.\n */\n description?: string;\n /**\n * The problem with the current selection, in words. Its presence is what\n * puts the group in its error state — the message, the label's colour and\n * `aria-invalid` on the group all follow from it.\n *\n * Outside a `Form` the message line arrives with the message, so the\n * field grows when this does and moves what is under it. A `Form` holds\n * that space from the start; so does a permanent `description`.\n */\n error?: string;\n /**\n * What the group is for. Required rather than optional: a set of radio\n * buttons with no name is a set a screen reader cannot introduce.\n */\n label: string;\n} & Omit<RACRadioGroupProps, 'children' | 'isInvalid' | 'validationBehavior'>;\ntype RadioProps = Omit<RadioFieldProps, 'children'> & {\n /**\n * The label, beside the button. A button that a row labels some other way\n * leaves it out and passes `aria-label` instead.\n *\n * A link or a button in it acts on its own, as in a native label, and\n * leaves the selection as it was. A press anywhere else in the label\n * selects this option.\n */\n children?: ReactNode;\n /** A hint under the label, read with the button. */\n description?: string;\n};\ntype Ripple = ReturnType<typeof useRipple<HTMLSpanElement>>;\n\n// What the label draws, chosen from the render state React Aria hands it.\n// Built by a call rather than written inline at the prop, which is what\n// react-perf's no-new-function-as-prop is after; the React Compiler memoises\n// the result on its inputs. The ripple's handlers and surface go on the\n// control while the button can change, and are left off while it cannot,\n// since a press that changes nothing should not look like one.\nfunction buttonContent(children: ReactNode, ripple: Ripple) {\n return (state: RadioButtonRenderProps) => {\n const interactive = !state.isDisabled && !state.isReadOnly;\n const tone = state.isSelected ? 'selected' : 'unselected';\n const active = state.isHovered || state.isPressed || state.isFocusVisible;\n return <>\n <span {...interactive ? ripple.handlers : {}} {...stylex.props(controlStyles.disc, styles.control, state.isSelected && styles.toneSelected, !state.isSelected && interactive && active && styles.toneActive, state.isDisabled && styles.toneDisabled, state.isReadOnly && controlStyles.controlReadOnly, state.isDisabled && controlStyles.controlDisabled, interactive && state.isHovered && hoverLayers[tone], interactive && state.isFocusVisible && focusLayers[tone], interactive && state.isPressed && pressedLayers[tone], state.isFocusVisible && focus.ringVisible)}>\n <span className=\"x12w9bfk x6s0dn4 x1qx5ct2 x1r7ld26 x16fbrrb x1y0btm7 xdh2fpr x9f619 x78zum5 xw4jnvo xl56j7k x1qno0dh xshfolx xpc4ca7\">\n <span {...{\n 0: {\n className: \"x12w9bfk xtwfq29 x1jzqe4 x170jfvy x16fbrrb x1fsd2vl x1f85oc2 x1qno0dh xuo13n2 xpc4ca7\"\n },\n 2: {\n className: \"x12w9bfk xtwfq29 x1jzqe4 x170jfvy x16fbrrb x1fsd2vl x1qno0dh xuo13n2 xpc4ca7 x3oybdh\"\n },\n 1: {\n className: \"x12w9bfk x170jfvy x16fbrrb x1fsd2vl x1f85oc2 x1qno0dh xuo13n2 xpc4ca7 xtwfq29 x1o55y2u\"\n },\n 3: {\n className: \"x12w9bfk x170jfvy x16fbrrb x1fsd2vl x1qno0dh xuo13n2 xpc4ca7 x3oybdh xtwfq29 x1o55y2u\"\n }\n }[!!state.isSelected << 1 | !!state.isDisabled << 0]} />\n </span>\n {interactive ? ripple.surface : null}\n </span>\n <ControlLabel state={state}>{children}</ControlLabel>\n </>;\n };\n}\n\n// The group's parts, from its render state: the label's colour follows\n// disabled and invalid the way a field's follows its box.\nfunction groupContent(label: string, children: ReactNode, description: string | undefined, error: string | undefined, horizontal: boolean) {\n return (state: RadioGroupRenderProps) => <>\n <FieldLabel isRequired={state.isRequired} state={state} variant=\"group\">\n {label}\n </FieldLabel>\n <div {...stylex.props(controlStyles.stack, horizontal && styles.itemsHorizontal)}>\n {children}\n </div>\n <FieldMessage description={description} error={error} inset={false} isDisabled={state.isDisabled} />\n </>;\n}\n\n// The option's button and its description, from the option's render state:\n// the description fades with the option whether the option is disabled by\n// itself or by its group, as its label does.\nfunction optionContent(button: ReactNode, description: string | undefined) {\n return ({\n isDisabled\n }: RadioFieldRenderProps) => <>\n {button}\n <ControlDescription isDisabled={isDisabled}>\n {description}\n </ControlDescription>\n </>;\n}\n\n/**\n * One option of a `RadioGroup`, with its label and optionally a description\n * under it. It names the entry it stands for with `value`; the selection is\n * the group's. Rendered on its own, outside a group, it has no state to\n * belong to.\n *\n * The call site's `className` and `style` land on the option as a whole,\n * which is the element a layout positions.\n */\nfunction Radio({\n children,\n description,\n ...props\n}: RadioProps & RefAttributes<HTMLDivElement>) {\n const ripple = useRipple<HTMLSpanElement>();\n return <RadioField {...props} {...mergeStatefulStyles(stylex.props(controlStyles.field), props)}>\n {optionContent(<RadioButton className=\"xjp7ctv\">\n {buttonContent(children, ripple)}\n </RadioButton>, description)}\n </RadioField>;\n}\n\n/**\n * A labelled set of radio buttons with one selected value between them. The\n * value is React Aria's: pass `value` with `onChange` to control it, or\n * `defaultValue` to let the group keep its own, and each `Radio` inside\n * names the entry it stands for. Arrow keys move the selection; disabled,\n * read-only and the error state reach every button from here, and\n * `orientation=\"horizontal\"` lays the buttons along a line.\n *\n * ```tsx\n * <RadioGroup defaultValue=\"first\" label=\"Label\">\n * <Radio value=\"first\">First item</Radio>\n * <Radio value=\"second\">Second item</Radio>\n * </RadioGroup>\n * ```\n *\n * The call site's `className` and `style` land on the group as a whole,\n * which is the element a layout positions.\n */\nfunction RadioGroup({\n children,\n description,\n error,\n label,\n orientation = 'vertical',\n ...props\n}: RadioGroupProps & RefAttributes<HTMLDivElement>) {\n const validationBehavior = useFieldValidationBehavior();\n return <RACRadioGroup isInvalid={invalidFrom(error)} orientation={orientation} validationBehavior={validationBehavior} {...props} {...mergeStatefulStyles(stylex.props(fieldGroupStyles.root), props)}>\n {groupContent(label, children, description, error, orientation === 'horizontal')}\n </RACRadioGroup>;\n}\nexport type { RadioGroupProps, RadioProps };\nexport { Radio };\nexport default RadioGroup;"],"mappings":";;;;;;;;;;;;;;AA+CA,MAAMY,SAAS;CACbC,SAAS;EACPC,QAAQ;EACRC,OAAO;CACT;CACAC,iBAAiB;EACfC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRJ,OAAO;CACT;CACAK,YAAY;EACVN,QAAQ;EACRC,OAAO;CACT;CACAM,cAAc;EACZP,QAAQ;EACRC,OAAO;CACT;CACAO,cAAc;EACZR,QAAQ;EACRC,OAAO;CACT;AACF;AAIA,MAAMQ,cAAc;CAClBC,UAAU;EACRC,QAAQ;EACRV,OAAO;CACT;CACAW,YAAY;EACVD,QAAQ;EACRV,OAAO;CACT;AACF;AAGA,MAAMY,cAAc;CAClBH,UAAU;EACRC,QAAQ;EACRV,OAAO;CACT;CACAW,YAAY;EACVD,QAAQ;EACRV,OAAO;CACT;AACF;AACA,MAAMa,gBAAgB;CACpBJ,UAAU;EACRC,QAAQ;EACRV,OAAO;CACT;CACAW,YAAY;EACVD,QAAQ;EACRV,OAAO;CACT;AACF;AA8CA,SAASkB,cAAcJ,UAAqBK,QAAgB;CAC1D,QAAQC,UAAkC;EACxC,MAAMC,cAAc,CAACD,MAAME,cAAc,CAACF,MAAMG;EAChD,MAAMC,OAAOJ,MAAMK,aAAa,aAAa;EAC7C,MAAMC,SAASN,MAAMO,aAAaP,MAAMQ,aAAaR,MAAMS;EAC3D,OAAO,qBAAA,UAAA,EAAA,UAAA,CACH,qBAAC,QAAD;GAAM,GAAIR,cAAcF,OAAOW,WAAW,CAAC;GAAG,GAAI5C,MAAaI,cAAc0C,MAAMnC,OAAOC,SAASsB,MAAMK,cAAc5B,OAAOU,cAAc,CAACa,MAAMK,cAAcJ,eAAeK,UA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EAAAL,EAAA,MAAAO;EAAAP,EAAA,MAAAU;EAAAV,EAAA,MAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAAA,OAFXY;AAEW"}
1
+ {"version":3,"file":"index.js","names":["_c","stylex","RadioGroup","RACRadioGroup","RadioField","controlStyles","invalidFrom","useFieldValidationBehavior","fieldGroupStyles","useRipple","focus","mergeStatefulStyles","styles","control","kMwMTN","$$css","itemsHorizontal","k1C7PZ","kXwgrk","kwnvtZ","toneActive","toneDisabled","toneSelected","hoverLayers","selected","kWkggS","unselected","focusLayers","pressedLayers","children","description","error","label","buttonContent","ripple","state","interactive","isDisabled","isReadOnly","tone","isSelected","active","isHovered","isPressed","isFocusVisible","handlers","props","disc","controlReadOnly","controlDisabled","ringVisible","className","surface","groupContent","horizontal","isRequired","stack","optionContent","button","Radio","t0","$","T0","t1","field","t2","t3","t4","t5","orientation","undefined","validationBehavior","root","t6"],"sources":["../../../src/components/radio-group/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { RadioGroupProps as RACRadioGroupProps, RadioButtonRenderProps, RadioFieldProps, RadioFieldRenderProps, RadioGroupRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { RadioGroup as RACRadioGroup, RadioButton, RadioField } from 'react-aria-components';\nimport { ControlDescription, ControlLabel } from '../../control';\nimport { controlStyles } from '../../control/styles';\nimport { FieldLabel, FieldMessage } from '../../field';\nimport { invalidFrom, useFieldValidationBehavior } from '../../field/root';\nimport { groupStyles as fieldGroupStyles } from '../../field/styles';\nimport { useRipple } from '../../hooks/useRipple';\nimport { focus } from '../../styles/focus';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii, spacing, stateLayerOpacity } from '../../tokens/design.tokens.stylex';\n\n// The radio button page: a 20dp ring inside a 40dp state layer, with a 48dp\n// target. Unselected, the ring is 2dp of on surface variant that turns on\n// surface while hovered, pressed or focused; selected, the ring and the 10dp\n// dot inside it are primary. Disabled is on surface at the disabled opacity\n// for both. The state layer is on surface over an unselected button and\n// primary over a selected one while hovered, and the two swap once pressed.\n// The page draws no error state for the button itself: an invalid group\n// says so through its label and message, and the buttons keep their colours.\n//\n// Two components from one module, since neither means anything without the\n// other: a radio button is a member of a group, and the group is what holds\n// the value. React Aria's `RadioGroup` is the group, a div with the label,\n// description and error slots; `RadioField` is one button's root, a div with\n// its description slot; and `RadioButton` is the label around the visually\n// hidden input, whose children draw the button from the render state React\n// Aria hands them. The field is the same two-column grid Checkbox uses, with\n// the label `display: contents` so the description lines up under the text.\n//\n// The adjacent label is body-large on surface, which the page keeps the same\n// whether or not the button is selected.\n//\n// A change of selection moves together: the ring's colour fades, and the dot\n// grows in from nothing or shrinks away, over the same duration and curve.\n// The dot is always drawn, at no size while the button is not selected.\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 styles = {\n control: {\n kMwMTN: \"x1w5n3ug\",\n $$css: true\n },\n itemsHorizontal: {\n k1C7PZ: \"xpamuu5\",\n kXwgrk: \"x1q0g3np\",\n kwnvtZ: \"x1a02dak\",\n $$css: true\n },\n toneActive: {\n kMwMTN: \"x139gbkf\",\n $$css: true\n },\n toneDisabled: {\n kMwMTN: \"x1gpw424 x1bhcspo\",\n $$css: true\n },\n toneSelected: {\n kMwMTN: \"x1mxwv8y\",\n $$css: true\n }\n};\n\n// The state layer follows the button: on surface over an unselected one and\n// primary over a selected one while hovered, the two swapped once pressed.\nconst hoverLayers = {\n selected: {\n kWkggS: \"x659ado\",\n $$css: true\n },\n unselected: {\n kWkggS: \"x1b18xnh\",\n $$css: true\n }\n};\n\n// A keyboard's focus draws the hover layer's colour at the focus opacity.\nconst focusLayers = {\n selected: {\n kWkggS: \"x1sog3nf\",\n $$css: true\n },\n unselected: {\n kWkggS: \"xwqhyid\",\n $$css: true\n }\n};\nconst pressedLayers = {\n selected: {\n kWkggS: \"xjeeohs\",\n $$css: true\n },\n unselected: {\n kWkggS: \"x1dvjsmr\",\n $$css: true\n }\n};\ntype RadioGroupProps = {\n /** The radio buttons, each with a `value` of its own. */\n children?: ReactNode;\n /**\n * A hint under the group. Replaced by `error` when there is one, so the\n * two never stack.\n */\n description?: string;\n /**\n * The problem with the current selection, in words. Its presence is what\n * puts the group in its error state — the message, the label's colour and\n * `aria-invalid` on the group all follow from it.\n *\n * Outside a `Form` the message line arrives with the message, so the\n * field grows when this does and moves what is under it. A `Form` holds\n * that space from the start; so does a permanent `description`.\n */\n error?: string;\n /**\n * What the group is for. Required rather than optional: a set of radio\n * buttons with no name is a set a screen reader cannot introduce.\n */\n label: string;\n} & Omit<RACRadioGroupProps, 'children' | 'isInvalid' | 'validationBehavior'>;\ntype RadioProps = Omit<RadioFieldProps, 'children'> & {\n /**\n * The label, beside the button. A button that a row labels some other way\n * leaves it out and passes `aria-label` instead.\n *\n * A link or a button in it acts on its own, as in a native label, and\n * leaves the selection as it was. A press anywhere else in the label\n * selects this option.\n */\n children?: ReactNode;\n /** A hint under the label, read with the button. */\n description?: string;\n};\ntype Ripple = ReturnType<typeof useRipple<HTMLSpanElement>>;\n\n// What the label draws, chosen from the render state React Aria hands it.\n// Built by a call rather than written inline at the prop, which is what\n// react-perf's no-new-function-as-prop is after; the React Compiler memoises\n// the result on its inputs. The ripple's handlers and surface go on the\n// control while the button can change, and are left off while it cannot,\n// since a press that changes nothing should not look like one.\nfunction buttonContent(children: ReactNode, ripple: Ripple) {\n return (state: RadioButtonRenderProps) => {\n const interactive = !state.isDisabled && !state.isReadOnly;\n const tone = state.isSelected ? 'selected' : 'unselected';\n const active = state.isHovered || state.isPressed || state.isFocusVisible;\n return <>\n <span {...interactive ? ripple.handlers : {}} {...stylex.props(controlStyles.disc, styles.control, state.isSelected && styles.toneSelected, !state.isSelected && interactive && active && styles.toneActive, state.isDisabled && styles.toneDisabled, state.isReadOnly && controlStyles.controlReadOnly, state.isDisabled && controlStyles.controlDisabled, interactive && state.isHovered && hoverLayers[tone], interactive && state.isFocusVisible && focusLayers[tone], interactive && state.isPressed && pressedLayers[tone], state.isFocusVisible && focus.ringVisible)}>\n <span className=\"x12w9bfk x6s0dn4 x1qx5ct2 x1r7ld26 x16fbrrb x1y0btm7 xdh2fpr x9f619 x78zum5 xw4jnvo xl56j7k x1qno0dh xshfolx xpc4ca7\">\n <span {...{\n 0: {\n className: \"x12w9bfk xtwfq29 x1jzqe4 x170jfvy x16fbrrb x1fsd2vl x1f85oc2 x1qno0dh xuo13n2 xpc4ca7\"\n },\n 2: {\n className: \"x12w9bfk xtwfq29 x1jzqe4 x170jfvy x16fbrrb x1fsd2vl x1qno0dh xuo13n2 xpc4ca7 x3oybdh\"\n },\n 1: {\n className: \"x12w9bfk x170jfvy x16fbrrb x1fsd2vl x1f85oc2 x1qno0dh xuo13n2 xpc4ca7 xtwfq29 x1o55y2u\"\n },\n 3: {\n className: \"x12w9bfk x170jfvy x16fbrrb x1fsd2vl x1qno0dh xuo13n2 xpc4ca7 x3oybdh xtwfq29 x1o55y2u\"\n }\n }[!!state.isSelected << 1 | !!state.isDisabled << 0]} />\n </span>\n {interactive ? ripple.surface : null}\n </span>\n <ControlLabel state={state}>{children}</ControlLabel>\n </>;\n };\n}\n\n// The group's parts, from its render state: the label's colour follows\n// disabled and invalid the way a field's follows its box.\nfunction groupContent(label: string, children: ReactNode, description: string | undefined, error: string | undefined, horizontal: boolean) {\n return (state: RadioGroupRenderProps) => <>\n <FieldLabel isRequired={state.isRequired} state={state} variant=\"group\">\n {label}\n </FieldLabel>\n <div {...stylex.props(controlStyles.stack, horizontal && styles.itemsHorizontal)}>\n {children}\n </div>\n <FieldMessage description={description} error={error} inset={false} isDisabled={state.isDisabled} />\n </>;\n}\n\n// The option's button and its description, from the option's render state:\n// the description fades with the option whether the option is disabled by\n// itself or by its group, as its label does.\nfunction optionContent(button: ReactNode, description: string | undefined) {\n return ({\n isDisabled\n }: RadioFieldRenderProps) => <>\n {button}\n <ControlDescription isDisabled={isDisabled}>\n {description}\n </ControlDescription>\n </>;\n}\n\n/**\n * One option of a `RadioGroup`, with its label and optionally a description\n * under it. It names the entry it stands for with `value`; the selection is\n * the group's. Rendered on its own, outside a group, it has no state to\n * belong to.\n *\n * The call site's `className` and `style` land on the option as a whole,\n * which is the element a layout positions.\n */\nfunction Radio({\n children,\n description,\n ...props\n}: RadioProps & RefAttributes<HTMLDivElement>) {\n const ripple = useRipple<HTMLSpanElement>();\n return <RadioField {...props} {...mergeStatefulStyles(stylex.props(controlStyles.field), props)}>\n {optionContent(<RadioButton className=\"xjp7ctv\">\n {buttonContent(children, ripple)}\n </RadioButton>, description)}\n </RadioField>;\n}\n\n/**\n * A labelled set of radio buttons with one selected value between them. The\n * value is React Aria's: pass `value` with `onChange` to control it, or\n * `defaultValue` to let the group keep its own, and each `Radio` inside\n * names the entry it stands for. Arrow keys move the selection; disabled,\n * read-only and the error state reach every button from here, and\n * `orientation=\"horizontal\"` lays the buttons along a line.\n *\n * ```tsx\n * <RadioGroup defaultValue=\"first\" label=\"Label\">\n * <Radio value=\"first\">First item</Radio>\n * <Radio value=\"second\">Second item</Radio>\n * </RadioGroup>\n * ```\n *\n * The call site's `className` and `style` land on the group as a whole,\n * which is the element a layout positions.\n */\nfunction RadioGroup({\n children,\n description,\n error,\n label,\n orientation = 'vertical',\n ...props\n}: RadioGroupProps & RefAttributes<HTMLDivElement>) {\n const validationBehavior = useFieldValidationBehavior();\n return <RACRadioGroup isInvalid={invalidFrom(error)} orientation={orientation} validationBehavior={validationBehavior} {...props} {...mergeStatefulStyles(stylex.props(fieldGroupStyles.root), props)}>\n {groupContent(label, children, description, error, orientation === 'horizontal')}\n </RACRadioGroup>;\n}\nexport type { RadioGroupProps, RadioProps };\nexport { Radio };\nexport default RadioGroup;"],"mappings":";;;;;;;;;;;;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ateValue = DateValue> = {
2
+ import { DateValue, RangeCalendarProps as RangeCalendarProps$1 } from "react-aria-components";
3
+ type RangeCalendarProps<T extends DateValue = DateValue> = {
4
4
  /** A function may compute the class from the calendar's render state. */
5
- className?: RangeCalendarProps<T>['className'];
5
+ className?: RangeCalendarProps$1<T>['className'];
6
6
  /**
7
7
  * Whether the header draws the month and the year as menu buttons, each
8
8
  * opening a list of them in the grid's place, as `Calendar`'s does. The
@@ -16,8 +16,8 @@ type RangeCalendarProps$1<T extends DateValue = DateValue> = {
16
16
  */
17
17
  showMonthYearMenus?: boolean;
18
18
  /** A function may compute the style from the calendar's render state. */
19
- style?: RangeCalendarProps<T>['style'];
20
- } & Omit<RangeCalendarProps<T>, 'children' | 'className' | 'style'>;
19
+ style?: RangeCalendarProps$1<T>['style'];
20
+ } & Omit<RangeCalendarProps$1<T>, 'children' | 'className' | 'style'>;
21
21
  /**
22
22
  * A calendar for picking a range of dates. The value is React Aria's: pass
23
23
  * `value` with `onChange` to control it, or `defaultValue` to let it keep its
@@ -45,5 +45,5 @@ type RangeCalendarProps$1<T extends DateValue = DateValue> = {
45
45
  * The call site's `className` and `style` land on the container, which is the
46
46
  * element a layout positions.
47
47
  */
48
- declare function RangeCalendar$1<T extends DateValue>({ showMonthYearMenus, ...props }: RangeCalendarProps$1<T> & RefAttributes<HTMLDivElement>): import("react").JSX.Element;
49
- export { type RangeCalendarProps$1 as RangeCalendarProps, RangeCalendar$1 as default };
48
+ declare function RangeCalendar<T extends DateValue>({ showMonthYearMenus, ...props }: RangeCalendarProps<T> & RefAttributes<HTMLDivElement>): import("react").JSX.Element;
49
+ export { type RangeCalendarProps, RangeCalendar as default };
@@ -6,7 +6,7 @@ import { focus } from "../../styles/focus.js";
6
6
  import { mergeStatefulStyles } from "../../styles/merge.js";
7
7
  import { c } from "react/compiler-runtime";
8
8
  import { jsx } from "react/jsx-runtime";
9
- import { CalendarCell, RangeCalendar } from "react-aria-components";
9
+ import { CalendarCell, RangeCalendar as RangeCalendar$1 } from "react-aria-components";
10
10
  // src/components/range-calendar/index.tsx
11
11
  function cellClassName(state) {
12
12
  const isEnd = state.isSelected && (state.isSelectionStart || state.isSelectionEnd);
@@ -45,7 +45,7 @@ function gridCell(date) {
45
45
  * The call site's `className` and `style` land on the container, which is the
46
46
  * element a layout positions.
47
47
  */
48
- function RangeCalendar$1(t0) {
48
+ function RangeCalendar(t0) {
49
49
  const $ = c(17);
50
50
  let T0;
51
51
  let props$1;
@@ -56,7 +56,7 @@ function RangeCalendar$1(t0) {
56
56
  const { showMonthYearMenus: t3, ...t4 } = t0;
57
57
  props$1 = t4;
58
58
  showMonthYearMenus = t3 === void 0 ? false : t3;
59
- T0 = RangeCalendar;
59
+ T0 = RangeCalendar$1;
60
60
  t1 = props$1;
61
61
  t2 = mergeStatefulStyles(props(calendarStyles.root), props$1);
62
62
  $[0] = t0;
@@ -110,6 +110,6 @@ function RangeCalendar$1(t0) {
110
110
  } else t7 = $[16];
111
111
  return t7;
112
112
  }
113
- export { RangeCalendar$1 as default };
113
+ export { RangeCalendar as default };
114
114
 
115
115
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_c","stylex","RangeCalendar","RACRangeCalendar","calendarStyles","dateLayers","focus","mergeStatefulStyles","className","showMonthYearMenus","cellClassName","state","isDisabled","isHovered","isPressed","isSelected","isSelectionEnd","isSelectionStart","isToday","isUnavailable","isEnd","props","cell","ring","cellToday","cellInRange","cellRangeStart","cellRangeEnd","cellSelected","selectedHovered","inRangeHovered","plainHovered","selectedPressed","inRangePressed","plainPressed","cellUnavailable","cellDisabled","gridCell","date","t0","$","T0","t1","t2","t3","t4","undefined","root","visibleDuration","months","t5","t6","t7","RACCalendarCell"],"sources":["../../../src/components/range-calendar/index.tsx"],"sourcesContent":["'use client';\n\nimport type { CalendarDate } from '@internationalized/date';\nimport type { ReactElement, RefAttributes } from 'react';\nimport type { DateValue, RangeCalendarProps as RACRangeCalendarProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { CalendarCell as RACCalendarCell, RangeCalendar as RACRangeCalendar } from 'react-aria-components';\nimport { CalendarFrame, CalendarMonths } from '../../calendar';\nimport { calendarStyles, dateLayers } from '../../calendar/styles';\nimport { focus } from '../../styles/focus';\nimport { mergeStatefulStyles } from '../../styles/merge';\n\n// The date pickers page's calendar again, picking two dates rather than one.\n// Every part it draws is Calendar's, from `src/calendar` — the container, the\n// grid, the weekday row, the chevrons and the date circle — so the two cannot\n// come apart.\n//\n// What a range adds is the band between its two ends. The docked token set\n// stops at the selected date, so the band's colours are the modal date\n// picker's range-selection tokens — the secondary container, one step down\n// from the primary the two ends take — and its reasons are in\n// `src/calendar/styles.ts` where it is defined.\n//\n// Two things follow from drawing a band across a grid whose cells are spaced\n// apart.\n//\n// **The band is square and the ends are round.** A range of consecutive days\n// reads as one shape rather than a row of circles, and the first and last day\n// round only their outer edge, which is what makes the band begin and end at\n// a circle.\n//\n// **The band fills the whole of each day's 48dp.** A day in the range drops\n// the 4dp margin either side that every other date keeps and takes the full\n// width of its cell, so one day's band meets the next one's. Without it the\n// band arrives as a dashed run of separate blocks.\n\ntype RangeCalendarProps<T extends DateValue = DateValue> = {\n /** A function may compute the class from the calendar's render state. */\n className?: RACRangeCalendarProps<T>['className'];\n /**\n * Whether the header draws the month and the year as menu buttons, each\n * opening a list of them in the grid's place, as `Calendar`'s does. The\n * year list runs a century either side of the year shown, or to\n * `minValue` and `maxValue` where they are closer.\n *\n * For one visible month. With `visibleDuration` of more than one, the\n * header is the plain one, whose heading names every month shown — the\n * menus name only the first, which would leave the others unlabelled.\n * @default false\n */\n showMonthYearMenus?: boolean;\n /** A function may compute the style from the calendar's render state. */\n style?: RACRangeCalendarProps<T>['style'];\n} & Omit<RACRangeCalendarProps<T>, 'children' | 'className' | 'style'>;\n\n// A date's classes, from React Aria's render state. StyleX cannot target\n// `[data-selected]` on the element it is styling, so the state comes from\n// what React Aria hands the className.\n//\n// The order is what makes a range read as one shape. Every selected day takes\n// the band; the two ends then take the circle over it, and round the outer\n// edge the band does not continue past. The hover and pressed layers come\n// next, each written for the ground under it — the circle, the band, or\n// nothing — a press over a hover. `unavailable` comes after those, so a\n// ruled-out day inside a range keeps the band and takes the strikethrough\n// over it. `disabled` is last of all, and StyleX replaces a property whole,\n// so it takes the branches above it with it.\nfunction cellClassName(state: {\n isDisabled: boolean;\n isHovered: boolean;\n isPressed: boolean;\n isSelected: boolean;\n isSelectionEnd: boolean;\n isSelectionStart: boolean;\n isToday: boolean;\n isUnavailable: boolean;\n}) {\n const isEnd = state.isSelected && (state.isSelectionStart || state.isSelectionEnd);\n return stylex.props(calendarStyles.cell, focus.ring, state.isToday && calendarStyles.cellToday, state.isSelected && calendarStyles.cellInRange, state.isSelected && state.isSelectionStart && calendarStyles.cellRangeStart, state.isSelected && state.isSelectionEnd && calendarStyles.cellRangeEnd, isEnd && calendarStyles.cellSelected, state.isHovered && (isEnd ? dateLayers.selectedHovered : state.isSelected ? dateLayers.inRangeHovered : dateLayers.plainHovered), state.isPressed && (isEnd ? dateLayers.selectedPressed : state.isSelected ? dateLayers.inRangePressed : dateLayers.plainPressed), state.isUnavailable && calendarStyles.cellUnavailable, state.isDisabled && calendarStyles.cellDisabled).className ?? '';\n}\nfunction gridCell(date: CalendarDate): ReactElement {\n return <RACCalendarCell className={cellClassName} date={date} />;\n}\n\n/**\n * A calendar for picking a range of dates. The value is React Aria's: pass\n * `value` with `onChange` to control it, or `defaultValue` to let it keep its\n * own, both as a `{ start, end }` pair of `@internationalized/date` values\n * from this package's `./date` subpath.\n *\n * ```tsx\n * import { CalendarDate } from '@kanso-labs/kanso-ui/date'\n *\n * <RangeCalendar\n * aria-label=\"Label\"\n * defaultValue={{\n * start: new CalendarDate(2026, 9, 8),\n * end: new CalendarDate(2026, 9, 15),\n * }}\n * />\n * ```\n *\n * The two ends take the circle a selected date takes in `Calendar`, and the\n * days between them a band in the secondary container. `minValue`,\n * `maxValue`, `isDateUnavailable` and `visibleDuration` are the same props\n * `Calendar` takes, and `allowsNonContiguousRanges` lets a range skip the\n * dates ruled out inside it rather than stopping at the first.\n *\n * The call site's `className` and `style` land on the container, which is the\n * element a layout positions.\n */\nfunction RangeCalendar<T extends DateValue>({\n showMonthYearMenus = false,\n ...props\n}: RangeCalendarProps<T> & RefAttributes<HTMLDivElement>) {\n return <RACRangeCalendar<T> {...props} {...mergeStatefulStyles(stylex.props(calendarStyles.root), props)}>\n <CalendarFrame months={props.visibleDuration?.months ?? 1} showMonthYearMenus={showMonthYearMenus}>\n <CalendarMonths months={props.visibleDuration?.months ?? 1}>\n {gridCell}\n </CalendarMonths>\n </CalendarFrame>\n </RACRangeCalendar>;\n}\nexport type { RangeCalendarProps };\nexport default RangeCalendar;"],"mappings":";;;;;;;;;;AAmEA,SAASU,cAAcC,OASpB;CACD,MAAMS,QAAQT,MAAMI,eAAeJ,MAAMM,oBAAoBN,MAAMK;CACnE,OAAOf,MAAaG,eAAekB,MAAMhB,MAAMiB,MAAMZ,MAAMO,WAAWd,eAAeoB,WAAWb,MAAMI,cAAcX,eAAeqB,aAAad,MAAMI,cAAcJ,MAAMM,oBAAoBb,eAAesB,gBAAgBf,MAAMI,cAAcJ,MAAMK,kBAAkBZ,eAAeuB,cAAcP,SAAShB,eAAewB,cAAcjB,MAAME,cAAcO,QAAQf,WAAWwB,kBAAkBlB,MAAMI,aAAaV,WAAWyB,iBAAiBzB,WAAW0B,eAAepB,MAAMG,cAAcM,QAAQf,WAAW2B,kBAAkBrB,MAAMI,aAAaV,WAAW4B,iBAAiB5B,WAAW6B,eAAevB,MAAMQ,iBAAiBf,eAAe+B,iBAAiBxB,MAAMC,cAAcR,eAAegC,YAAY,CAAC,CAAC5B,aAAa;AACvsB;AACA,SAAS6B,SAASC,MAAkC;CAClD,OAAO,oBAACe,cAAD;EAAiB,WAAW3C;EAAqB4B;CAAK,CAAA;AAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAApC,gBAAAq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AAF,EAAA,QAAAG,MAAAH,EAAA,QAAAW,IAAA;EALbC,KAAA,oBAAC,IAAD;GAAiB,GAAQ/B;GAAK,GAAMsB;GACvCQ,UAAAA;EADoB,CAAA;EAMHX,EAAA,MAAAC;EAAAD,EAAA,MAAAE;EAAAF,EAAA,MAAAG;EAAAH,EAAA,MAAAW;EAAAX,EAAA,MAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAAA,OANdY;AAMc"}
1
+ {"version":3,"file":"index.js","names":["_c","stylex","RangeCalendar","RACRangeCalendar","calendarStyles","dateLayers","focus","mergeStatefulStyles","className","showMonthYearMenus","cellClassName","state","isDisabled","isHovered","isPressed","isSelected","isSelectionEnd","isSelectionStart","isToday","isUnavailable","isEnd","props","cell","ring","cellToday","cellInRange","cellRangeStart","cellRangeEnd","cellSelected","selectedHovered","inRangeHovered","plainHovered","selectedPressed","inRangePressed","plainPressed","cellUnavailable","cellDisabled","gridCell","date","t0","$","T0","t1","t2","t3","t4","undefined","root","visibleDuration","months","t5","t6","t7","RACCalendarCell"],"sources":["../../../src/components/range-calendar/index.tsx"],"sourcesContent":["'use client';\n\nimport type { CalendarDate } from '@internationalized/date';\nimport type { ReactElement, RefAttributes } from 'react';\nimport type { DateValue, RangeCalendarProps as RACRangeCalendarProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { CalendarCell as RACCalendarCell, RangeCalendar as RACRangeCalendar } from 'react-aria-components';\nimport { CalendarFrame, CalendarMonths } from '../../calendar';\nimport { calendarStyles, dateLayers } from '../../calendar/styles';\nimport { focus } from '../../styles/focus';\nimport { mergeStatefulStyles } from '../../styles/merge';\n\n// The date pickers page's calendar again, picking two dates rather than one.\n// Every part it draws is Calendar's, from `src/calendar` — the container, the\n// grid, the weekday row, the chevrons and the date circle — so the two cannot\n// come apart.\n//\n// What a range adds is the band between its two ends. The docked token set\n// stops at the selected date, so the band's colours are the modal date\n// picker's range-selection tokens — the secondary container, one step down\n// from the primary the two ends take — and its reasons are in\n// `src/calendar/styles.ts` where it is defined.\n//\n// Two things follow from drawing a band across a grid whose cells are spaced\n// apart.\n//\n// **The band is square and the ends are round.** A range of consecutive days\n// reads as one shape rather than a row of circles, and the first and last day\n// round only their outer edge, which is what makes the band begin and end at\n// a circle.\n//\n// **The band fills the whole of each day's 48dp.** A day in the range drops\n// the 4dp margin either side that every other date keeps and takes the full\n// width of its cell, so one day's band meets the next one's. Without it the\n// band arrives as a dashed run of separate blocks.\n\ntype RangeCalendarProps<T extends DateValue = DateValue> = {\n /** A function may compute the class from the calendar's render state. */\n className?: RACRangeCalendarProps<T>['className'];\n /**\n * Whether the header draws the month and the year as menu buttons, each\n * opening a list of them in the grid's place, as `Calendar`'s does. The\n * year list runs a century either side of the year shown, or to\n * `minValue` and `maxValue` where they are closer.\n *\n * For one visible month. With `visibleDuration` of more than one, the\n * header is the plain one, whose heading names every month shown — the\n * menus name only the first, which would leave the others unlabelled.\n * @default false\n */\n showMonthYearMenus?: boolean;\n /** A function may compute the style from the calendar's render state. */\n style?: RACRangeCalendarProps<T>['style'];\n} & Omit<RACRangeCalendarProps<T>, 'children' | 'className' | 'style'>;\n\n// A date's classes, from React Aria's render state. StyleX cannot target\n// `[data-selected]` on the element it is styling, so the state comes from\n// what React Aria hands the className.\n//\n// The order is what makes a range read as one shape. Every selected day takes\n// the band; the two ends then take the circle over it, and round the outer\n// edge the band does not continue past. The hover and pressed layers come\n// next, each written for the ground under it — the circle, the band, or\n// nothing — a press over a hover. `unavailable` comes after those, so a\n// ruled-out day inside a range keeps the band and takes the strikethrough\n// over it. `disabled` is last of all, and StyleX replaces a property whole,\n// so it takes the branches above it with it.\nfunction cellClassName(state: {\n isDisabled: boolean;\n isHovered: boolean;\n isPressed: boolean;\n isSelected: boolean;\n isSelectionEnd: boolean;\n isSelectionStart: boolean;\n isToday: boolean;\n isUnavailable: boolean;\n}) {\n const isEnd = state.isSelected && (state.isSelectionStart || state.isSelectionEnd);\n return stylex.props(calendarStyles.cell, focus.ring, state.isToday && calendarStyles.cellToday, state.isSelected && calendarStyles.cellInRange, state.isSelected && state.isSelectionStart && calendarStyles.cellRangeStart, state.isSelected && state.isSelectionEnd && calendarStyles.cellRangeEnd, isEnd && calendarStyles.cellSelected, state.isHovered && (isEnd ? dateLayers.selectedHovered : state.isSelected ? dateLayers.inRangeHovered : dateLayers.plainHovered), state.isPressed && (isEnd ? dateLayers.selectedPressed : state.isSelected ? dateLayers.inRangePressed : dateLayers.plainPressed), state.isUnavailable && calendarStyles.cellUnavailable, state.isDisabled && calendarStyles.cellDisabled).className ?? '';\n}\nfunction gridCell(date: CalendarDate): ReactElement {\n return <RACCalendarCell className={cellClassName} date={date} />;\n}\n\n/**\n * A calendar for picking a range of dates. The value is React Aria's: pass\n * `value` with `onChange` to control it, or `defaultValue` to let it keep its\n * own, both as a `{ start, end }` pair of `@internationalized/date` values\n * from this package's `./date` subpath.\n *\n * ```tsx\n * import { CalendarDate } from '@kanso-labs/kanso-ui/date'\n *\n * <RangeCalendar\n * aria-label=\"Label\"\n * defaultValue={{\n * start: new CalendarDate(2026, 9, 8),\n * end: new CalendarDate(2026, 9, 15),\n * }}\n * />\n * ```\n *\n * The two ends take the circle a selected date takes in `Calendar`, and the\n * days between them a band in the secondary container. `minValue`,\n * `maxValue`, `isDateUnavailable` and `visibleDuration` are the same props\n * `Calendar` takes, and `allowsNonContiguousRanges` lets a range skip the\n * dates ruled out inside it rather than stopping at the first.\n *\n * The call site's `className` and `style` land on the container, which is the\n * element a layout positions.\n */\nfunction RangeCalendar<T extends DateValue>({\n showMonthYearMenus = false,\n ...props\n}: RangeCalendarProps<T> & RefAttributes<HTMLDivElement>) {\n return <RACRangeCalendar<T> {...props} {...mergeStatefulStyles(stylex.props(calendarStyles.root), props)}>\n <CalendarFrame months={props.visibleDuration?.months ?? 1} showMonthYearMenus={showMonthYearMenus}>\n <CalendarMonths months={props.visibleDuration?.months ?? 1}>\n {gridCell}\n </CalendarMonths>\n </CalendarFrame>\n </RACRangeCalendar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KAAA/B;EAAA+B,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAF,KAAAD,EAAA;EAAAnB,UAAAmB,EAAA;EAAA/B,qBAAA+B,EAAA;EAAAE,KAAAF,EAAA;EAAAG,KAAAH,EAAA;CAAA;CAC7E,MAAAI,KAAAvB,QAAK2B,iBAAwBC,UAA7B;CACG,MAAAJ,KAAAxB,QAAK2B,iBAAwBC,UAA7B;CAAkC,IAAAC;CAAA,IAAAV,EAAA,OAAAK,IAAA;EAA1DK,KAAA,oBAAC,gBAAD;GAAwB,QAAAL;GACrBR,UAAAA;EADY,CAAA;EAEEG,EAAA,KAAAK;EAAAL,EAAA,KAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,IAAAW;CAAA,IAAAX,EAAA,OAAA/B,sBAAA+B,EAAA,OAAAI,MAAAJ,EAAA,QAAAU,IAAA;EAHnBC,KAAA,oBAAC,eAAD;GAAuB,QAAAP;GAAwDnC;GAC7EyC,UAAAA;EADY,CAAA;EAIEV,EAAA,KAAA/B;EAAA+B,EAAA,KAAAI;EAAAJ,EAAA,MAAAU;EAAAV,EAAA,MAAAW;CAAA,OAAAA,KAAAX,EAAA;CAAA,IAAAY;CAAA,IAAAZ,EAAA,QAAAC,MAAAD,EAAA,QAAAE,MAAAF,EAAA,QAAAG,MAAAH,EAAA,QAAAW,IAAA;EALbC,KAAA,oBAAC,IAAD;GAAiB,GAAQ/B;GAAK,GAAMsB;GACvCQ,UAAAA;EADoB,CAAA;EAMHX,EAAA,MAAAC;EAAAD,EAAA,MAAAE;EAAAF,EAAA,MAAAG;EAAAH,EAAA,MAAAW;EAAAX,EAAA,MAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAAA,OANdY;AAMc"}
@@ -1,6 +1,6 @@
1
1
  import { Ref, RefAttributes } from "react";
2
- import { SearchFieldProps } from "react-aria-components";
3
- type SearchFieldProps$1 = {
2
+ import { SearchFieldProps as SearchFieldProps$1 } from "react-aria-components";
3
+ type SearchFieldProps = {
4
4
  /**
5
5
  * The name of the button that clears the field, for a screen reader.
6
6
  * Left out, React Aria names it in the reader's locale — "Clear search" in
@@ -21,7 +21,7 @@ type SearchFieldProps$1 = {
21
21
  *
22
22
  * @default 'search'
23
23
  */
24
- enterKeyHint?: SearchFieldProps['enterKeyHint'];
24
+ enterKeyHint?: SearchFieldProps$1['enterKeyHint'];
25
25
  /**
26
26
  * The problem with the current value, in words. Its presence is what puts
27
27
  * the field in its error state — the message and `aria-invalid` follow
@@ -50,7 +50,7 @@ type SearchFieldProps$1 = {
50
50
  label: string;
51
51
  /** The supporting text in the empty bar, which is what a person reads. */
52
52
  placeholder?: string;
53
- } & Omit<SearchFieldProps, 'children' | 'enterKeyHint' | 'isInvalid' | 'validationBehavior'>;
53
+ } & Omit<SearchFieldProps$1, 'children' | 'enterKeyHint' | 'isInvalid' | 'validationBehavior'>;
54
54
  /**
55
55
  * A search bar: a keyword typed into a pill, submitted with Enter and
56
56
  * cleared with Escape or its button. Its value is React Aria's: pass
@@ -67,5 +67,5 @@ type SearchFieldProps$1 = {
67
67
  * drawn as every field in the library draws them; the pill around them is
68
68
  * Material Design's search bar rather than the box of its text fields.
69
69
  */
70
- declare function SearchField$1({ clearLabel, description, enterKeyHint, error, inputRef, isDisabled, label, placeholder, ...props }: RefAttributes<HTMLDivElement> & SearchFieldProps$1): import("react").JSX.Element;
71
- export { type SearchFieldProps$1 as SearchFieldProps, SearchField$1 as default };
70
+ declare function SearchField({ clearLabel, description, enterKeyHint, error, inputRef, isDisabled, label, placeholder, ...props }: RefAttributes<HTMLDivElement> & SearchFieldProps): import("react").JSX.Element;
71
+ export { type SearchFieldProps, SearchField as default };
@@ -8,7 +8,7 @@ import { mergeStatefulStyles } from "../../styles/merge.js";
8
8
  import IconButton from "../icon-button/index.js";
9
9
  import { c } from "react/compiler-runtime";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
- import { FieldInputContext, Label, SearchField, VisuallyHidden, useSlottedContext } from "react-aria-components";
11
+ import { FieldInputContext, Label, SearchField as SearchField$1, VisuallyHidden, useSlottedContext } from "react-aria-components";
12
12
  // src/components/search-field/index.tsx
13
13
  function fieldContent(label, placeholder, clearLabel, description, error, inputRef) {
14
14
  return (state) => /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -60,13 +60,13 @@ function fieldContent(label, placeholder, clearLabel, description, error, inputR
60
60
  * drawn as every field in the library draws them; the pill around them is
61
61
  * Material Design's search bar rather than the box of its text fields.
62
62
  */
63
- function SearchField$1(t0) {
63
+ function SearchField(t0) {
64
64
  const $ = c(18);
65
65
  const { clearLabel, description, enterKeyHint, error, inputRef, isDisabled: t1, label, placeholder, ...props$1 } = t0;
66
66
  const isDisabled = t1 === void 0 ? false : t1;
67
67
  const validationBehavior = useFieldValidationBehavior();
68
68
  const inherited = useSlottedContext(FieldInputContext)?.enterKeyHint;
69
- const T0 = SearchField;
69
+ const T0 = SearchField$1;
70
70
  const t2 = enterKeyHint ?? (inherited === void 0 ? "search" : void 0);
71
71
  let t3;
72
72
  if ($[0] !== error) {
@@ -109,6 +109,6 @@ function SearchField$1(t0) {
109
109
  } else t6 = $[17];
110
110
  return t6;
111
111
  }
112
- export { SearchField$1 as default };
112
+ export { SearchField as default };
113
113
 
114
114
  //# sourceMappingURL=index.js.map