@kanso-labs/kanso-ui 0.47.4 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/button/hooks.js +35 -1
  2. package/dist/button/hooks.js.map +1 -1
  3. package/dist/button/index.js +78 -65
  4. package/dist/button/index.js.map +1 -1
  5. package/dist/calendar/styles.js +5 -5
  6. package/dist/calendar/styles.js.map +1 -1
  7. package/dist/chip/styles.js +1 -1
  8. package/dist/chip/styles.js.map +1 -1
  9. package/dist/collection/context.js +6 -0
  10. package/dist/collection/context.js.map +1 -0
  11. package/dist/collection/styles.js +29 -6
  12. package/dist/collection/styles.js.map +1 -1
  13. package/dist/components/button/index.js.map +1 -1
  14. package/dist/components/calendar/index.js +7 -0
  15. package/dist/components/calendar/index.js.map +1 -1
  16. package/dist/components/checkbox/index.js +10 -7
  17. package/dist/components/checkbox/index.js.map +1 -1
  18. package/dist/components/checkbox-group/index.js +2 -1
  19. package/dist/components/checkbox-group/index.js.map +1 -1
  20. package/dist/components/chip-group/index.js +69 -66
  21. package/dist/components/chip-group/index.js.map +1 -1
  22. package/dist/components/color-swatch-picker/index.js +1 -0
  23. package/dist/components/color-swatch-picker/index.js.map +1 -1
  24. package/dist/components/combo-box/index.js +5 -1
  25. package/dist/components/combo-box/index.js.map +1 -1
  26. package/dist/components/drop-zone/styles.js +11 -11
  27. package/dist/components/drop-zone/styles.js.map +1 -1
  28. package/dist/components/fab-menu/index.js +3 -3
  29. package/dist/components/fab-menu/index.js.map +1 -1
  30. package/dist/components/icon-button/index.js.map +1 -1
  31. package/dist/components/list/index.js +58 -11
  32. package/dist/components/list/index.js.map +1 -1
  33. package/dist/components/list-box/index.js +82 -103
  34. package/dist/components/list-box/index.js.map +1 -1
  35. package/dist/components/navigation-rail/index.js +4 -4
  36. package/dist/components/navigation-rail/index.js.map +1 -1
  37. package/dist/components/number-field/index.js +3 -3
  38. package/dist/components/number-field/index.js.map +1 -1
  39. package/dist/components/popover/index.js +3 -3
  40. package/dist/components/popover/index.js.map +1 -1
  41. package/dist/components/radio-group/index.js +12 -11
  42. package/dist/components/radio-group/index.js.map +1 -1
  43. package/dist/components/search-field/index.js +4 -4
  44. package/dist/components/search-field/index.js.map +1 -1
  45. package/dist/components/select/index.js +5 -1
  46. package/dist/components/select/index.js.map +1 -1
  47. package/dist/components/sheet/index.js +1 -1
  48. package/dist/components/sheet/index.js.map +1 -1
  49. package/dist/components/slider/index.js +2 -2
  50. package/dist/components/slider/index.js.map +1 -1
  51. package/dist/components/snackbar/index.js +3 -3
  52. package/dist/components/snackbar/index.js.map +1 -1
  53. package/dist/components/split-button/index.js +53 -41
  54. package/dist/components/split-button/index.js.map +1 -1
  55. package/dist/components/table/index.js +58 -45
  56. package/dist/components/table/index.js.map +1 -1
  57. package/dist/components/tabs/index.js +81 -30
  58. package/dist/components/tabs/index.js.map +1 -1
  59. package/dist/components/time-picker/index.js +5 -5
  60. package/dist/components/time-picker/index.js.map +1 -1
  61. package/dist/components/tree/index.js +78 -21
  62. package/dist/components/tree/index.js.map +1 -1
  63. package/dist/field/index.js +103 -104
  64. package/dist/field/index.js.map +1 -1
  65. package/dist/field/styles.js +1 -1
  66. package/dist/field/styles.js.map +1 -1
  67. package/dist/hooks/useScrollEdges.js +73 -0
  68. package/dist/hooks/useScrollEdges.js.map +1 -0
  69. package/dist/navigation/styles.js +5 -5
  70. package/dist/navigation/styles.js.map +1 -1
  71. package/dist/row/styles.js +7 -7
  72. package/dist/row/styles.js.map +1 -1
  73. package/dist/styles/color.js +16 -16
  74. package/dist/styles/color.js.map +1 -1
  75. package/dist/styles/focus.js +4 -4
  76. package/dist/styles/focus.js.map +1 -1
  77. package/dist/styles/overlay.js +3 -3
  78. package/dist/styles/overlay.js.map +1 -1
  79. package/dist/styles/scroll-fade.js +33 -0
  80. package/dist/styles/scroll-fade.js.map +1 -0
  81. package/dist/styles.css +61 -20
  82. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_c","stylex","createContext","useContext","useEffect","useState","Tabs","RACTabs","Tab","useEnlargedText","refCallback","mergeStatefulStyles","mergeStyles","styles","indicator","k6CgDc","kWkggS","kZKoxP","kLZC3w","kPef9Z","kEafiO","kfmiAY","krdFHd","kB7OPa","kzqmXN","krVfgx","kkqhue","kUOVxO","k7Eaqz","kVAEAm","kIyJzY","k1ekBW","kAMwcw","$$css","indicatorSecondary","indicatorSecondaryVertical","kBCPoo","k8ry5P","ke9TFa","kYYq5F","kt4wiu","indicatorVertical","kVL7Gh","kqGvvJ","kAzted","label","kGNEyG","k1xSpc","kjj79g","ks0D6T","labelInline","kOIVth","labelStacked","kXwgrk","tab","kMzoRj","kMwMTN","kkrTdU","kCS8Yb","kzQI83","kmuXW","kMv6JI","kGuDYH","k63SB2","kb6lSQ","kLWn49","kjBf7l","kInvED","k3XXqK","kMeerF","k8WAf4","kg3NbH","kybGjl","tabActive","tabActiveFocused","tabActiveHovered","tabActiveSecondary","tabDisabled","tabInactive","tabInactiveEngaged","tabInactiveFocused","tabInactiveHovered","tabPressed","tabScrollable","tabSecondaryFocused","tabSecondaryHovered","tabSecondaryPressed","tabStacked","tabVertical","VARIANTS","primary","active","activeFocused","activeHovered","inactiveFocused","inactiveHovered","horizontal","vertical","pressed","secondary","layout","orientation","variant","BarContext","revealed","WeakSet","NO_PANELS","Set","PanelsContext","RegisterPanelContext","id","children","badgeFor","badge","icon","undefined","className","revealInBar","element","closest","bar","first","has","add","box","getBoundingClientRect","room","left","Math","min","max","right","top","bottom","scrollBy","behavior","tabClasses","stacked","roles","state","engaged","isHovered","isFocusVisible","isPressed","props","isSelected","isDisabled","tabContent","isEnlarged","hasIcon","after","underLabel","text","tabRenderer","hasPanel","render","domProps","adjusted","t0","$","t1","t2","t3","t4","panels","setPanels","t5","Symbol","for","previous","next","previous_0","next_0","delete","register","T0","t6","0","1","t7","t8","t9","t10","TabsList","2","3","TabsPanel","TabsPanels","TabsTab","ref","List","Panel","Panels","RACSelectionIndicator","RACTabPanels"],"sources":["../../../src/components/tabs/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { Key, TabsProps as RACTabsProps, TabListProps, TabPanelProps, TabPanelsProps, TabProps, TabRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';\nimport { SelectionIndicator as RACSelectionIndicator, TabPanels as RACTabPanels, Tabs as RACTabs, Tab, TabList, TabPanel } from 'react-aria-components';\nimport { useEnlargedText } from '../../hooks/useEnlargedText';\nimport { refCallback } from '../../render/ref';\nimport { mergeStatefulStyles, mergeStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii, sizing, spacing, stateLayerOpacity, typography } from '../../tokens/design.tokens.stylex';\nimport Badge from '../badge';\n\n// The tabs page's primary and secondary tabs. Both are a 48dp bar on the\n// surface, divided into equal sections, with a 1dp outline-variant divider\n// inside the bar along its bottom edge.\n//\n// **Primary** draws the active tab in the primary role and, under its label,\n// a 3dp primary indicator rounded along its top. The indicator follows the\n// label rather than the tab, inset 2dp from the label's ends and never\n// shorter than 24dp, which is what the page draws. A primary tab given an\n// icon stacks the page's 24dp icon over its label, 2dp apart, and the bar\n// grows to the page's 64dp.\n//\n// **Secondary** is the strip that sits under a primary one. Its active tab\n// keeps the on-surface role, and its 2dp primary indicator spans the whole\n// tab. An icon sits before the label, 8dp from it, which is the page's\n// spacing for an inline icon and material-web's layout for a secondary tab:\n// the strip keeps its 48dp under the primary one either way.\n//\n// A badge sits on the icon where a primary tab stacks one, placed as the\n// badges page places it, and 4dp after the label anywhere else.\n//\n// **The bar is equal sections unless `layout` says otherwise.**\n// `layout=\"scrollable\"` is the page's scrollable tabs: each tab as wide as\n// its label, between MDC-Android's 72dp and 264dp, in a bar that scrolls\n// without a scrollbar and brings the selected tab into view, as\n// material-web's does.\n//\n// **`orientation=\"vertical\"` turns the bar on its side.** The page draws no\n// vertical tabs, so this follows the horizontal bar's own measurements: the\n// tabs stack, the divider runs down the bar's inline end, and each\n// indicator lies along that edge — 3dp and rounded toward the tab on a\n// primary bar, 2dp and square on a secondary one — spanning the tab rather\n// than a label that no longer runs along it. The bar sits beside the panels\n// rather than above them.\n//\n// The indicator is React Aria's `SelectionIndicator`, which is a shared\n// element: it is rendered inside every tab but drawn in the selected one,\n// and on a change it keeps the old one until it has finished moving to the\n// new one's place. No `SharedElementTransition` is rendered here — `Tab`\n// scopes its own, and one added around the list changes nothing, which is\n// worth knowing because the primitive throws outside a scope when it is put\n// anywhere else.\n//\n// The label is wrapped in a span of its own so a primary indicator has the\n// label's width to follow: it is drawn inside the span, and the span is as\n// tall as the tab so the indicator reaches the bottom of the bar. Which tab\n// carries it comes from React Aria's render state rather than a selector,\n// since StyleX cannot target [data-selected] on the element it is styling.\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 indicator: {\n k6CgDc: \"x12w9bfk\",\n kWkggS: \"xnety89\",\n kZKoxP: \"xuoj239\",\n kLZC3w: \"x4hsqty\",\n kPef9Z: \"x4z998w\",\n kEafiO: \"x1cuxy5d\",\n kfmiAY: \"x1pixlao\",\n krdFHd: \"xyooppx\",\n kB7OPa: \"x9f619\",\n kzqmXN: \"x17v02zk\",\n krVfgx: \"x1ey2m1c\",\n kkqhue: \"x17y0mx6\",\n kUOVxO: \"xvueqy4\",\n k7Eaqz: \"xnei2rj\",\n kVAEAm: \"x10l6tqk\",\n kIyJzY: \"xioksi3\",\n k1ekBW: \"x1mxbss1\",\n kAMwcw: \"x1seskgd\",\n $$css: true\n },\n indicatorSecondary: {\n k6CgDc: \"x12w9bfk\",\n kWkggS: \"xnety89\",\n kZKoxP: \"x36qwtl\",\n kLZC3w: \"x4hsqty\",\n kPef9Z: \"x4z998w\",\n kEafiO: \"x7sdbh0\",\n kB7OPa: \"x9f619\",\n krVfgx: \"x1ey2m1c\",\n kkqhue: \"x17y0mx6\",\n kVAEAm: \"x10l6tqk\",\n kIyJzY: \"xioksi3\",\n k1ekBW: \"x1mxbss1\",\n kAMwcw: \"x1seskgd\",\n $$css: true\n },\n indicatorSecondaryVertical: {\n k6CgDc: \"x12w9bfk\",\n kWkggS: \"xnety89\",\n kBCPoo: \"x1ksdfms\",\n k8ry5P: \"xf1j0q2\",\n ke9TFa: \"x12inkfj\",\n kB7OPa: \"x9f619\",\n kzqmXN: \"xfo62xy\",\n kYYq5F: \"x10no89f\",\n kt4wiu: \"xtijo5x\",\n kVAEAm: \"x10l6tqk\",\n kIyJzY: \"xioksi3\",\n k1ekBW: \"xcxfjh9\",\n kAMwcw: \"x1seskgd\",\n $$css: true\n },\n indicatorVertical: {\n k6CgDc: \"x12w9bfk\",\n kWkggS: \"xnety89\",\n kZKoxP: \"x1qu6c4t\",\n kVL7Gh: \"x25gbn0\",\n kBCPoo: \"x1ksdfms\",\n k8ry5P: \"xf1j0q2\",\n ke9TFa: \"x1o9zed4\",\n krdFHd: \"xyooppx\",\n kB7OPa: \"x9f619\",\n kzqmXN: \"x1g8rjiy\",\n kYYq5F: \"x10no89f\",\n kt4wiu: \"xtijo5x\",\n kqGvvJ: \"x1nkss2m\",\n kAzted: \"xjwf9q1\",\n kVAEAm: \"x10l6tqk\",\n kIyJzY: \"xioksi3\",\n k1ekBW: \"xcxfjh9\",\n kAMwcw: \"x1seskgd\",\n $$css: true\n },\n label: {\n kGNEyG: \"x6s0dn4\",\n kZKoxP: \"x5yr21d\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x3nfvp2\",\n kjj79g: \"xl56j7k\",\n ks0D6T: \"x193iq5w\",\n k7Eaqz: \"xeuugli\",\n kVAEAm: \"x1n2onr6\",\n $$css: true\n },\n labelInline: {\n kOIVth: \"x126z3so\",\n $$css: true\n },\n labelStacked: {\n kXwgrk: \"xdt5ytf\",\n kOIVth: \"x14qo01y\",\n $$css: true\n },\n tab: {\n k6CgDc: \"x12w9bfk\",\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xjbqb8w\",\n kMzoRj: \"xc342km\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x78zum5\",\n kCS8Yb: \"x1r8uery\",\n kzQI83: \"x1iyjqo2\",\n kmuXW: \"xs83m0k\",\n kMv6JI: \"xrgwony\",\n kGuDYH: \"x12s497w\",\n k63SB2: \"x1szcwkt\",\n kjj79g: \"xl56j7k\",\n kb6lSQ: \"xo803ec\",\n kLWn49: \"xyl1r0q\",\n kAzted: \"x1dry9sr\",\n k7Eaqz: \"xeuugli\",\n kjBf7l: \"xrgy624\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1de99jn\",\n k8WAf4: \"xt970qd\",\n kg3NbH: \"x790zyz\",\n kVAEAm: \"x1n2onr6\",\n kybGjl: \"x1hl2dhg\",\n kIyJzY: \"x1qno0dh\",\n k1ekBW: \"xs2xxs2\",\n kAMwcw: \"xpc4ca7\",\n $$css: true\n },\n tabActive: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1mxwv8y\",\n $$css: true\n },\n tabActiveFocused: {\n kWkggS: \"x1sog3nf\",\n $$css: true\n },\n tabActiveHovered: {\n kWkggS: \"x659ado\",\n $$css: true\n },\n tabActiveSecondary: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x139gbkf\",\n $$css: true\n },\n tabDisabled: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1xj74d8\",\n kkrTdU: \"x1h6gzvc\",\n $$css: true\n },\n tabInactive: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1w5n3ug\",\n $$css: true\n },\n tabInactiveEngaged: {\n kMwMTN: \"x139gbkf\",\n $$css: true\n },\n tabInactiveFocused: {\n kWkggS: \"xwqhyid\",\n $$css: true\n },\n tabInactiveHovered: {\n kWkggS: \"x1b18xnh\",\n $$css: true\n },\n tabPressed: {\n kWkggS: \"x1dvjsmr\",\n $$css: true\n },\n tabScrollable: {\n kCS8Yb: \"xdl72j9\",\n kzQI83: \"x1c4vz4f\",\n kmuXW: \"x2lah0s\",\n ks0D6T: \"x1pdpmub\",\n k7Eaqz: \"x187xtus\",\n $$css: true\n },\n tabSecondaryFocused: {\n kWkggS: \"xwqhyid\",\n $$css: true\n },\n tabSecondaryHovered: {\n kWkggS: \"x1b18xnh\",\n $$css: true\n },\n tabSecondaryPressed: {\n kWkggS: \"xjeeohs\",\n $$css: true\n },\n tabStacked: {\n kAzted: \"x8nclml\",\n $$css: true\n },\n tabVertical: {\n kCS8Yb: \"xdl72j9\",\n kzQI83: \"x1c4vz4f\",\n kmuXW: \"x2lah0s\",\n kjj79g: \"x1nhvcw1\",\n $$css: true\n }\n};\n\n// A vertical bar beside its panels, which take the rest of the row. A style\n// of its own rather than one of the list's, since it is the root that holds\n// the two.\n\n/** The tabs page's two styles of tab bar. */\ntype TabsVariant = 'primary' | 'secondary';\n\n// What each style draws a tab's states in. A table rather than a branch per\n// state, so the two styles cannot differ in which states they answer.\nconst VARIANTS = {\n primary: {\n active: styles.tabActive,\n activeFocused: styles.tabActiveFocused,\n activeHovered: styles.tabActiveHovered,\n inactiveFocused: styles.tabInactiveFocused,\n inactiveHovered: styles.tabInactiveHovered,\n indicator: {\n horizontal: styles.indicator,\n vertical: styles.indicatorVertical\n },\n pressed: styles.tabPressed\n },\n secondary: {\n active: styles.tabActiveSecondary,\n activeFocused: styles.tabSecondaryFocused,\n activeHovered: styles.tabSecondaryHovered,\n inactiveFocused: styles.tabSecondaryFocused,\n inactiveHovered: styles.tabSecondaryHovered,\n indicator: {\n horizontal: styles.indicatorSecondary,\n vertical: styles.indicatorSecondaryVertical\n },\n pressed: styles.tabSecondaryPressed\n }\n} satisfies Record<TabsVariant, unknown>;\n\n// The bar's three decisions, from the root to the list and every tab in it.\n// A context rather than props on each part, since they are the bar's and\n// repeating them on every tab is how the two drift.\ntype Bar = {\n layout: TabsLayout;\n orientation: Orientation;\n variant: TabsVariant;\n};\ntype Orientation = NonNullable<RACTabsProps['orientation']>;\n\n/** How the bar shares its room among the tabs. */\ntype TabsLayout = 'fixed' | 'scrollable';\nconst BarContext = createContext<Bar>({\n layout: 'fixed',\n orientation: 'horizontal',\n variant: 'primary'\n});\n\n// The bars a reveal has already scrolled, so that only the first is instant.\nconst revealed = new WeakSet<Element>();\nconst NO_PANELS: ReadonlySet<Key> = new Set();\n\n// Which panels are mounted, by id. React Aria points a selected tab's\n// `aria-controls` at the panel it would control whether or not one exists,\n// and a strip used on its own — tabs that filter the content below rather\n// than swapping a panel — then references an id nothing carries, which axe\n// reports as an invalid attribute value. Each panel registers itself here so\n// a tab can leave the attribute off when its panel is not there.\nconst PanelsContext = createContext<ReadonlySet<Key>>(NO_PANELS);\nconst RegisterPanelContext = createContext<(id: Key) => () => void>(() => () => {});\n\n// `children` is narrowed to nodes. React Aria also accepts a function there,\n// to hand the children the tabs' render state, and that form cannot be\n// wrapped in a context provider without calling it first — which would be\n// doing React Aria's job with none of its state. Nothing here needs it, so\n// the narrower type says so rather than leaving a signature that type-checks\n// and then fails to render.\ntype TabsProps = Omit<RACTabsProps, 'children'> & {\n children?: ReactNode;\n /**\n * How the bar shares its room: `fixed` divides it into equal sections, and\n * `scrollable` gives each tab its label's width in a bar that scrolls,\n * which is the page's choice for more tabs than the room has sections for.\n * @default 'fixed'\n */\n layout?: TabsLayout;\n /**\n * Which of the page's two tab bars this is: `primary` for the main one,\n * `secondary` for a strip under a primary one.\n * @default 'primary'\n */\n variant?: TabsVariant;\n};\n\n// The badge, which wraps the icon where a primary tab stacks one and stands\n// after the label anywhere else: `true` for the small dot, a number for the\n// large badge, and nothing for `false`.\nfunction badgeFor(badge: boolean | number | undefined, icon?: ReactNode): ReactNode {\n if (badge === undefined || badge === false) {\n return icon ?? null;\n }\n return <Badge count={badge === true ? undefined : badge} {...{\n 0: {},\n 1: {\n className: \"x2lah0s\"\n }\n }[!!(icon === undefined) << 0]}>\n {icon}\n </Badge>;\n}\n\n// Scrolls a scrollable bar just far enough to show its selected tab whole,\n// handed to the selected tab's label as a ref so it runs as that tab\n// becomes the selected one. The bar alone, never the page: `scrollIntoView`\n// would scroll every scrolling ancestor, the window included, to bring a\n// bar below the fold up to it. The first reveal is instant, so a bar opens\n// on its selected tab rather than sliding to it; the rest take the bar's own\n// smooth scrolling.\nfunction revealInBar(element: HTMLElement | null) {\n const tab = element?.closest('[role=\"tab\"]');\n const bar = tab?.closest('[role=\"tablist\"]');\n if (tab === undefined || tab === null || bar === undefined || bar === null) {\n return;\n }\n const first = !revealed.has(bar);\n revealed.add(bar);\n const box = tab.getBoundingClientRect();\n const room = bar.getBoundingClientRect();\n const left = Math.min(0, box.left - room.left) + Math.max(0, box.right - room.right);\n const top = Math.min(0, box.top - room.top) + Math.max(0, box.bottom - room.bottom);\n if (left !== 0 || top !== 0) {\n bar.scrollBy({\n behavior: first ? 'instant' : 'auto',\n left,\n top\n });\n }\n}\n\n// StyleX cannot target [data-selected] on the element it is styling, so the\n// active tab cannot be chosen in CSS. React Aria's answer is a className that\n// is a function of the tab's own state, the same mechanism Chip uses —\n// mergeStatefulStyles wraps this one so a tab still keeps a className the call\n// site passed.\nfunction tabClasses({\n layout,\n orientation,\n variant\n}: Bar, stacked: boolean) {\n const roles = VARIANTS[variant];\n const vertical = orientation === 'vertical';\n return (state: TabRenderProps) => {\n const engaged = state.isHovered || state.isFocusVisible || state.isPressed;\n\n // The layers in rising order, so a press shows over a focused tab and\n // focus over a hovered one.\n return stylex.props(styles.tab, layout === 'scrollable' && !vertical && styles.tabScrollable, vertical && styles.tabVertical, stacked && styles.tabStacked, state.isSelected ? roles.active : styles.tabInactive, !state.isSelected && engaged && styles.tabInactiveEngaged, state.isHovered && (state.isSelected ? roles.activeHovered : roles.inactiveHovered), state.isFocusVisible && (state.isSelected ? roles.activeFocused : roles.inactiveFocused), state.isPressed && roles.pressed, state.isDisabled && styles.tabDisabled);\n };\n}\n\n// The tab's content: the icon, if any, then the label, wrapped so the\n// indicator has its width to follow. A badge after the label shares a line\n// with it, which is the one wrapper a tab without one goes without. Built by\n// a call for the same reason as `tabRenderer` below; React Aria hands the\n// function the tab's state, and it is passed on when the children are a\n// function too.\n//\n// A fixed bar's label is whole once the reader has enlarged their text,\n// rather than cut at the two lines or the one its section has room for. A\n// scrollable bar's tab is as wide as its label up to its 264dp, and its label\n// keeps the clamp past that.\nfunction tabContent(children: TabProps['children'], {\n layout,\n orientation,\n variant\n}: Bar, icon: ReactNode, badge: boolean | number | undefined, isEnlarged: boolean) {\n const hasIcon = icon !== undefined && icon !== null;\n const stacked = hasIcon && variant === 'primary';\n const after = stacked ? null : badgeFor(badge);\n const indicator = <RACSelectionIndicator {...stylex.props(VARIANTS[variant].indicator[orientation])} />;\n // A primary indicator follows the label along a horizontal bar, and lies\n // along the tab's edge everywhere else.\n const underLabel = variant === 'primary' && orientation === 'horizontal';\n return (state: TabRenderProps & {\n defaultChildren: ReactNode;\n }) => {\n const text = <span {...{\n 0: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x2b8uid x1ua5tub x1h7i4cw\"\n },\n 4: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x2b8uid x1ua5tub xh0615m\"\n },\n 2: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x1ua5tub x1h7i4cw x1yc453h\"\n },\n 6: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x1ua5tub xh0615m x1yc453h\"\n },\n 1: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x2b8uid x1ua5tub x1uy8f9d\"\n },\n 5: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x2b8uid x1ua5tub x1uy8f9d\"\n },\n 3: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x1ua5tub x1yc453h x1uy8f9d\"\n },\n 7: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x1ua5tub x1yc453h x1uy8f9d\"\n }\n }[!!stacked << 2 | !!(orientation === 'vertical') << 1 | !!(isEnlarged && layout === 'fixed') << 0]}>\n {typeof children === 'function' ? children(state) : children}\n </span>;\n return <>\n <span ref={layout === 'scrollable' && state.isSelected ? revealInBar : undefined} {...stylex.props(styles.label, hasIcon && (stacked ? styles.labelStacked : styles.labelInline))}>\n {hasIcon ? <span className=\"x6s0dn4 xxk0z11 x3nfvp2 x2lah0s x1pvqxga xvy4d1p xl56j7k\">\n {stacked ? badgeFor(badge, icon) : icon}\n </span> : null}\n {after === null ? text : <span className=\"x6s0dn4 x9f619 x3nfvp2 xzoy561 x193iq5w xeuugli\">\n {text}\n {after}\n </span>}\n {underLabel ? indicator : null}\n </span>\n {underLabel ? null : indicator}\n </>;\n };\n}\n\n// React Aria renders a tab with `href` as an anchor and any other as a div,\n// and expects a `render` function to return the same element it would have.\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 two inputs. See PanelsContext for why the attribute is\n// dropped.\nfunction tabRenderer(hasPanel: boolean, render: TabProps['render']): NonNullable<TabProps['render']> {\n return (domProps, state) => {\n const adjusted = hasPanel ? domProps : {\n ...domProps,\n 'aria-controls': undefined\n };\n if (render !== undefined) {\n return render(adjusted, state);\n }\n if ('href' in adjusted) {\n // oxlint-disable-next-line jsx-a11y/anchor-has-content -- filled by React Aria\n return <a {...adjusted} />;\n }\n return <div {...adjusted} />;\n };\n}\n\n/**\n * A tab bar and its panels. Selection is React Aria's `selectedKey`: pass\n * it with `onSelectionChange` to control it, or `defaultSelectedKey` to let\n * it keep its own. Each `Tabs.Tab` names the `Tabs.Panel` it controls through\n * a shared `id`, and a strip may stand alone without panels.\n *\n * Composed rather than configured by props, because the number of tabs and\n * what each panel holds are the call site's to decide — the parts are\n * `Tabs.List`, `Tabs.Tab`, and `Tabs.Panel`.\n */\nfunction Tabs({\n children,\n layout = 'fixed',\n orientation = 'horizontal',\n variant = 'primary',\n ...props\n}: RefAttributes<HTMLDivElement> & TabsProps) {\n const bar = useMemo(() => ({\n layout,\n orientation,\n variant\n }), [layout, orientation, variant]);\n const [panels, setPanels] = useState<ReadonlySet<Key>>(NO_PANELS);\n const register = useCallback((id: Key) => {\n setPanels(previous => {\n if (previous.has(id)) {\n return previous;\n }\n const next = new Set(previous);\n next.add(id);\n return next;\n });\n return () => {\n setPanels(previous => {\n if (!previous.has(id)) {\n return previous;\n }\n const next = new Set(previous);\n next.delete(id);\n return next;\n });\n };\n }, []);\n return <RACTabs {...props} orientation={orientation} {...mergeStatefulStyles({\n 0: {},\n 1: {\n className: \"x78zum5\"\n }\n }[!!(orientation === 'vertical') << 0], props)}>\n <RegisterPanelContext value={register}>\n <PanelsContext value={panels}>\n <BarContext value={bar}>{children}</BarContext>\n </PanelsContext>\n </RegisterPanelContext>\n </RACTabs>;\n}\nfunction TabsList(props: RefAttributes<HTMLDivElement> & TabsListProps) {\n const {\n layout,\n orientation\n } = useContext(BarContext);\n return <TabList {...props} {...mergeStatefulStyles({\n 0: {\n className: \"xp05xdj x9f619 x78zum5\"\n },\n 2: {\n className: \"xp05xdj x9f619 x78zum5 xfk6m8 xysyzu8 x1rohswg xkcv6ua xg83hb1\"\n },\n 1: {\n className: \"x9f619 x78zum5 x1kbcym6 xiwn18o xdt5ytf x2lah0s\"\n },\n 3: {\n className: \"x9f619 x78zum5 xfk6m8 xysyzu8 x1rohswg xkcv6ua xg83hb1 x1kbcym6 xiwn18o xdt5ytf x2lah0s\"\n }\n }[!!(layout === 'scrollable') << 1 | !!(orientation === 'vertical') << 0], props)} />;\n}\nfunction TabsPanel(props: RefAttributes<HTMLDivElement> & TabsPanelProps) {\n const register = useContext(RegisterPanelContext);\n const {\n id\n } = props;\n useEffect(() => {\n if (id === undefined) {\n return undefined;\n }\n return register(id);\n }, [id, register]);\n return <TabPanel {...props} {...mergeStatefulStyles({\n className: \"x9f619 x1iyjqo2 xeuugli xrgy624 x2ssjo2 x9v5kkp x1t137rt x1de99jn\"\n }, props)} />;\n}\n\n/**\n * An optional box around the panels, which animates its height as one panel\n * gives way to the next. Without it the panels still work; the box around\n * them simply jumps from one height to the other.\n */\nfunction TabsPanels(props: RefAttributes<HTMLDivElement> & TabsPanelsProps) {\n return <RACTabPanels {...props} {...mergeStyles({\n className: \"x12w9bfk x1t2j4n3 x9f619 x1iyjqo2 xeuugli x7giv3 x1hm618n xioksi3 x1f55p5c x1seskgd\"\n }, props)} />;\n}\nfunction TabsTab({\n badge,\n children,\n icon,\n ref,\n render,\n ...props\n}: RefAttributes<HTMLAnchorElement | HTMLDivElement> & TabsTabProps) {\n const panels = useContext(PanelsContext);\n const bar = useContext(BarContext);\n const hasPanel = props.id !== undefined && panels.has(props.id);\n const stacked = icon !== undefined && icon !== null && bar.variant === 'primary';\n const isEnlarged = useEnlargedText();\n return <Tab {...props}\n // A tab with `href` is an anchor and any other a div, so the ref is\n // typed as either and handed over as the callback both accept — see\n // src/render/ref.ts.\n ref={refCallback(ref)} render={tabRenderer(hasPanel, render)} {...mergeStatefulStyles(tabClasses(bar, stacked), props)}>\n {tabContent(children, bar, icon, badge, isEnlarged)}\n </Tab>;\n}\nTabs.List = TabsList;\nTabs.Panel = TabsPanel;\nTabs.Panels = TabsPanels;\nTabs.Tab = TabsTab;\ntype TabsListProps = TabListProps<object>;\ntype TabsPanelProps = TabPanelProps;\ntype TabsPanelsProps = Omit<TabPanelsProps<object>, 'children'> & {\n children?: ReactNode;\n};\ntype TabsTabProps = {\n /**\n * A badge on the tab: `true` for the badges page's small dot, a number for\n * the large badge holding it. It sits on a primary tab's icon, and after\n * the label anywhere else. The badge is hidden from assistive technology,\n * so say what it says in the tab's name too — \"First item, 3 new\".\n */\n badge?: boolean | number;\n /**\n * An icon with the label, at the page's 24dp: over it on a primary tab,\n * whose bar grows to 64dp, and before it on a secondary one. An icon drawn\n * in `em` takes its size from the slot.\n */\n icon?: ReactNode;\n} & TabProps;\nexport type { TabsLayout, TabsListProps, TabsPanelProps, TabsPanelsProps, TabsProps, TabsTabProps, TabsVariant };\nexport { TabsList, TabsPanel, TabsPanels, TabsTab };\nexport default Tabs;"],"mappings":";;;;;;;;;;;AAkEA,MAAMa,SAAS;CACbC,WAAW;EACTC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,oBAAoB;EAClBnB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRG,QAAQ;EACRE,QAAQ;EACRC,QAAQ;EACRG,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAE,4BAA4B;EAC1BpB,QAAQ;EACRC,QAAQ;EACRoB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRf,QAAQ;EACRC,QAAQ;EACRe,QAAQ;EACRC,QAAQ;EACRX,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAQ,mBAAmB;EACjB1B,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRyB,QAAQ;EACRN,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRhB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRe,QAAQ;EACRC,QAAQ;EACRG,QAAQ;EACRC,QAAQ;EACRf,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAY,OAAO;EACLC,QAAQ;EACR7B,QAAQ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AAAX,YAAA;EACjHe,KAAAhB,WAAWpC,UAAUS,KAAKN,MAAMD,OAAOmC,UAAU;EAACW,EAAA,KAAA9C;EAAA8C,EAAA,KAAAvC;EAAAuC,EAAA,KAAAhD;EAAAgD,EAAA,KAAA7C;EAAA6C,EAAA,KAAAX;EAAAW,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAgB,MAAAhB,EAAA,OAAAf,SAAAe,EAAA,QAAAC,MAAAD,EAAA,QAAAE,MAAAF,EAAA,QAAAG,MAAAH,EAAA,QAAAI,IAAA;EALhDG,KAAA,oBAAC,IAAD;GAAI,GAAKtB;GAIX,KAAAgB;GAA0B,QAAAC;GAA6B,GAAMC;GAC7DC,UAAAA;EALM,CAAA;EAMHJ,EAAA,KAAAgB;EAAAhB,EAAA,KAAAf;EAAAe,EAAA,MAAAC;EAAAD,EAAA,MAAAE;EAAAF,EAAA,MAAAG;EAAAH,EAAA,MAAAI;EAAAJ,EAAA,MAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANDO;AAMC;AAEVhK,KAAKwL,OAAOP;AACZjL,KAAKyL,QAAQL;AACbpL,KAAK0L,SAASL;AACdrL,KAAKE,MAAMoL"}
1
+ {"version":3,"file":"index.js","names":["_c","stylex","createContext","useContext","useEffect","useState","Tabs","RACTabs","Tab","useEnlargedText","useScrollEdges","mergeRefs","refCallback","mergeStatefulStyles","mergeStyles","scrollFadeOf","spacingPx","styles","indicator","k6CgDc","kWkggS","kZKoxP","kLZC3w","kPef9Z","kEafiO","kfmiAY","krdFHd","kB7OPa","kzqmXN","krVfgx","kkqhue","kUOVxO","k7Eaqz","kVAEAm","kIyJzY","k1ekBW","kAMwcw","$$css","indicatorSecondary","indicatorSecondaryVertical","kBCPoo","k8ry5P","ke9TFa","kYYq5F","kt4wiu","indicatorVertical","kVL7Gh","kqGvvJ","kAzted","label","kGNEyG","k1xSpc","kjj79g","ks0D6T","labelInline","kOIVth","labelStacked","kXwgrk","list","kGVxlE","listScrollable","kOuLrU","kVQacm","k5wCbM","khEr5k","listVertical","kmuXW","tab","kMzoRj","kMwMTN","kkrTdU","kCS8Yb","kzQI83","kMv6JI","kGuDYH","k63SB2","kb6lSQ","kLWn49","kjBf7l","kInvED","k3XXqK","kMeerF","k8WAf4","kg3NbH","kybGjl","tabActive","tabActiveFocused","tabActiveHovered","tabActiveSecondary","tabDisabled","tabInactive","tabInactiveEngaged","tabInactiveFocused","tabInactiveHovered","tabPressed","tabScrollable","tabSecondaryFocused","tabSecondaryHovered","tabSecondaryPressed","tabStacked","tabVertical","VARIANTS","primary","active","activeFocused","activeHovered","inactiveFocused","inactiveHovered","horizontal","vertical","pressed","secondary","layout","orientation","variant","BarContext","revealed","WeakSet","NO_PANELS","Set","PanelsContext","RegisterPanelContext","id","children","badgeFor","badge","icon","undefined","className","FADE","xxl","revealInBar","element","closest","bar","first","has","add","box","getBoundingClientRect","room","left","Math","min","max","right","top","bottom","scrollBy","behavior","tabClasses","stacked","roles","state","engaged","isHovered","isFocusVisible","isPressed","props","isSelected","isDisabled","tabContent","isEnlarged","hasIcon","after","underLabel","text","tabRenderer","hasPanel","render","domProps","adjusted","t0","$","t1","t2","t3","t4","panels","setPanels","t5","Symbol","for","previous","next","previous_0","next_0","delete","register","T0","t6","0","1","t7","t8","t9","t10","TabsList","rest","style","scrolls","setElement","ref","edges","TabsPanel","TabsPanels","TabsTab","List","Panel","Panels","RACSelectionIndicator","RACTabPanels"],"sources":["../../../src/components/tabs/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { Key, TabsProps as RACTabsProps, TabListProps, TabPanelProps, TabPanelsProps, TabProps, TabRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';\nimport { SelectionIndicator as RACSelectionIndicator, TabPanels as RACTabPanels, Tabs as RACTabs, Tab, TabList, TabPanel } from 'react-aria-components';\nimport { useEnlargedText } from '../../hooks/useEnlargedText';\nimport { useScrollEdges } from '../../hooks/useScrollEdges';\nimport { mergeRefs, refCallback } from '../../render/ref';\nimport { mergeStatefulStyles, mergeStyles } from '../../styles/merge';\nimport { scrollFadeOf } from '../../styles/scroll-fade';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii, sizing, spacing, stateLayerOpacity, typography } from '../../tokens/design.tokens.stylex';\nimport { spacingPx } from '../../tokens/values';\nimport Badge from '../badge';\n\n// The tabs page's primary and secondary tabs. Both are a 48dp bar on the\n// surface, divided into equal sections, with a 1dp outline-variant divider\n// inside the bar along its bottom edge.\n//\n// **Primary** draws the active tab in the primary role and, under its label,\n// a 3dp primary indicator rounded along its top. The indicator follows the\n// label rather than the tab, inset 2dp from the label's ends and never\n// shorter than 24dp, which is what the page draws. A primary tab given an\n// icon stacks the page's 24dp icon over its label, 2dp apart, and the bar\n// grows to the page's 64dp.\n//\n// **Secondary** is the strip that sits under a primary one. Its active tab\n// keeps the on-surface role, and its 2dp primary indicator spans the whole\n// tab. An icon sits before the label, 8dp from it, which is the page's\n// spacing for an inline icon and material-web's layout for a secondary tab:\n// the strip keeps its 48dp under the primary one either way.\n//\n// A badge sits on the icon where a primary tab stacks one, placed as the\n// badges page places it, and 4dp after the label anywhere else.\n//\n// **The bar is equal sections unless `layout` says otherwise.**\n// `layout=\"scrollable\"` is the page's scrollable tabs: each tab as wide as\n// its label, between MDC-Android's 72dp and 264dp, in a bar that scrolls\n// without a scrollbar and brings the selected tab into view, as\n// material-web's does.\n//\n// **`orientation=\"vertical\"` turns the bar on its side.** The page draws no\n// vertical tabs, so this follows the horizontal bar's own measurements: the\n// tabs stack, the divider runs down the bar's inline end, and each\n// indicator lies along that edge — 3dp and rounded toward the tab on a\n// primary bar, 2dp and square on a secondary one — spanning the tab rather\n// than a label that no longer runs along it. The bar sits beside the panels\n// rather than above them.\n//\n// The indicator is React Aria's `SelectionIndicator`, which is a shared\n// element: it is rendered inside every tab but drawn in the selected one,\n// and on a change it keeps the old one until it has finished moving to the\n// new one's place. No `SharedElementTransition` is rendered here — `Tab`\n// scopes its own, and one added around the list changes nothing, which is\n// worth knowing because the primitive throws outside a scope when it is put\n// anywhere else.\n//\n// The label is wrapped in a span of its own so a primary indicator has the\n// label's width to follow: it is drawn inside the span, and the span is as\n// tall as the tab so the indicator reaches the bottom of the bar. Which tab\n// carries it comes from React Aria's render state rather than a selector,\n// since StyleX cannot target [data-selected] on the element it is styling.\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 indicator: {\n k6CgDc: \"x12w9bfk\",\n kWkggS: \"xnety89\",\n kZKoxP: \"xuoj239\",\n kLZC3w: \"x4hsqty\",\n kPef9Z: \"x4z998w\",\n kEafiO: \"x1cuxy5d\",\n kfmiAY: \"x1pixlao\",\n krdFHd: \"xyooppx\",\n kB7OPa: \"x9f619\",\n kzqmXN: \"x17v02zk\",\n krVfgx: \"x1ey2m1c\",\n kkqhue: \"x17y0mx6\",\n kUOVxO: \"xvueqy4\",\n k7Eaqz: \"xnei2rj\",\n kVAEAm: \"x10l6tqk\",\n kIyJzY: \"xioksi3\",\n k1ekBW: \"x1mxbss1\",\n kAMwcw: \"x1seskgd\",\n $$css: true\n },\n indicatorSecondary: {\n k6CgDc: \"x12w9bfk\",\n kWkggS: \"xnety89\",\n kZKoxP: \"x36qwtl\",\n kLZC3w: \"x4hsqty\",\n kPef9Z: \"x4z998w\",\n kEafiO: \"x7sdbh0\",\n kB7OPa: \"x9f619\",\n krVfgx: \"x1ey2m1c\",\n kkqhue: \"x17y0mx6\",\n kVAEAm: \"x10l6tqk\",\n kIyJzY: \"xioksi3\",\n k1ekBW: \"x1mxbss1\",\n kAMwcw: \"x1seskgd\",\n $$css: true\n },\n indicatorSecondaryVertical: {\n k6CgDc: \"x12w9bfk\",\n kWkggS: \"xnety89\",\n kBCPoo: \"x1ksdfms\",\n k8ry5P: \"xf1j0q2\",\n ke9TFa: \"x12inkfj\",\n kB7OPa: \"x9f619\",\n kzqmXN: \"xfo62xy\",\n kYYq5F: \"x10no89f\",\n kt4wiu: \"xtijo5x\",\n kVAEAm: \"x10l6tqk\",\n kIyJzY: \"xioksi3\",\n k1ekBW: \"xcxfjh9\",\n kAMwcw: \"x1seskgd\",\n $$css: true\n },\n indicatorVertical: {\n k6CgDc: \"x12w9bfk\",\n kWkggS: \"xnety89\",\n kZKoxP: \"x1qu6c4t\",\n kVL7Gh: \"x25gbn0\",\n kBCPoo: \"x1ksdfms\",\n k8ry5P: \"xf1j0q2\",\n ke9TFa: \"x1o9zed4\",\n krdFHd: \"xyooppx\",\n kB7OPa: \"x9f619\",\n kzqmXN: \"x1g8rjiy\",\n kYYq5F: \"x10no89f\",\n kt4wiu: \"xtijo5x\",\n kqGvvJ: \"x1nkss2m\",\n kAzted: \"xjwf9q1\",\n kVAEAm: \"x10l6tqk\",\n kIyJzY: \"xioksi3\",\n k1ekBW: \"xcxfjh9\",\n kAMwcw: \"x1seskgd\",\n $$css: true\n },\n label: {\n kGNEyG: \"x6s0dn4\",\n kZKoxP: \"x5yr21d\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x3nfvp2\",\n kjj79g: \"xl56j7k\",\n ks0D6T: \"x193iq5w\",\n k7Eaqz: \"xeuugli\",\n kVAEAm: \"x1n2onr6\",\n $$css: true\n },\n labelInline: {\n kOIVth: \"x126z3so\",\n $$css: true\n },\n labelStacked: {\n kXwgrk: \"xdt5ytf\",\n kOIVth: \"x14qo01y\",\n $$css: true\n },\n list: {\n kGVxlE: \"xp05xdj\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n $$css: true\n },\n listScrollable: {\n kOuLrU: \"xfk6m8\",\n kVQacm: \"xysyzu8\",\n k5wCbM: \"x1rohswg\",\n khEr5k: \"xkcv6ua xg83hb1\",\n $$css: true\n },\n listVertical: {\n kGVxlE: \"x1kbcym6 xiwn18o\",\n kXwgrk: \"xdt5ytf\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n tab: {\n k6CgDc: \"x12w9bfk\",\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xjbqb8w\",\n kMzoRj: \"xc342km\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x78zum5\",\n kCS8Yb: \"x1r8uery\",\n kzQI83: \"x1iyjqo2\",\n kmuXW: \"xs83m0k\",\n kMv6JI: \"xrgwony\",\n kGuDYH: \"x12s497w\",\n k63SB2: \"x1szcwkt\",\n kjj79g: \"xl56j7k\",\n kb6lSQ: \"xo803ec\",\n kLWn49: \"xyl1r0q\",\n kAzted: \"x1dry9sr\",\n k7Eaqz: \"xeuugli\",\n kjBf7l: \"xat36cu\",\n kInvED: \"x1v57pqu\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1s780dp\",\n k8WAf4: \"xt970qd\",\n kg3NbH: \"x790zyz\",\n kVAEAm: \"x1n2onr6\",\n kybGjl: \"x1hl2dhg\",\n kIyJzY: \"x1qno0dh\",\n k1ekBW: \"xs2xxs2\",\n kAMwcw: \"xpc4ca7\",\n $$css: true\n },\n tabActive: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1mxwv8y\",\n $$css: true\n },\n tabActiveFocused: {\n kWkggS: \"x1sog3nf\",\n $$css: true\n },\n tabActiveHovered: {\n kWkggS: \"x659ado\",\n $$css: true\n },\n tabActiveSecondary: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x139gbkf\",\n $$css: true\n },\n tabDisabled: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1xj74d8\",\n kkrTdU: \"x1h6gzvc\",\n $$css: true\n },\n tabInactive: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1w5n3ug\",\n $$css: true\n },\n tabInactiveEngaged: {\n kMwMTN: \"x139gbkf\",\n $$css: true\n },\n tabInactiveFocused: {\n kWkggS: \"xwqhyid\",\n $$css: true\n },\n tabInactiveHovered: {\n kWkggS: \"x1b18xnh\",\n $$css: true\n },\n tabPressed: {\n kWkggS: \"x1dvjsmr\",\n $$css: true\n },\n tabScrollable: {\n kCS8Yb: \"xdl72j9\",\n kzQI83: \"x1c4vz4f\",\n kmuXW: \"x2lah0s\",\n ks0D6T: \"x1pdpmub\",\n k7Eaqz: \"x187xtus\",\n $$css: true\n },\n tabSecondaryFocused: {\n kWkggS: \"xwqhyid\",\n $$css: true\n },\n tabSecondaryHovered: {\n kWkggS: \"x1b18xnh\",\n $$css: true\n },\n tabSecondaryPressed: {\n kWkggS: \"xjeeohs\",\n $$css: true\n },\n tabStacked: {\n kAzted: \"x8nclml\",\n $$css: true\n },\n tabVertical: {\n kCS8Yb: \"xdl72j9\",\n kzQI83: \"x1c4vz4f\",\n kmuXW: \"x2lah0s\",\n kjj79g: \"x1nhvcw1\",\n $$css: true\n }\n};\n\n// A vertical bar beside its panels, which take the rest of the row. A style\n// of its own rather than one of the list's, since it is the root that holds\n// the two.\n\n/** The tabs page's two styles of tab bar. */\ntype TabsVariant = 'primary' | 'secondary';\n\n// What each style draws a tab's states in. A table rather than a branch per\n// state, so the two styles cannot differ in which states they answer.\nconst VARIANTS = {\n primary: {\n active: styles.tabActive,\n activeFocused: styles.tabActiveFocused,\n activeHovered: styles.tabActiveHovered,\n inactiveFocused: styles.tabInactiveFocused,\n inactiveHovered: styles.tabInactiveHovered,\n indicator: {\n horizontal: styles.indicator,\n vertical: styles.indicatorVertical\n },\n pressed: styles.tabPressed\n },\n secondary: {\n active: styles.tabActiveSecondary,\n activeFocused: styles.tabSecondaryFocused,\n activeHovered: styles.tabSecondaryHovered,\n inactiveFocused: styles.tabSecondaryFocused,\n inactiveHovered: styles.tabSecondaryHovered,\n indicator: {\n horizontal: styles.indicatorSecondary,\n vertical: styles.indicatorSecondaryVertical\n },\n pressed: styles.tabSecondaryPressed\n }\n} satisfies Record<TabsVariant, unknown>;\n\n// The bar's three decisions, from the root to the list and every tab in it.\n// A context rather than props on each part, since they are the bar's and\n// repeating them on every tab is how the two drift.\ntype Bar = {\n layout: TabsLayout;\n orientation: Orientation;\n variant: TabsVariant;\n};\ntype Orientation = NonNullable<RACTabsProps['orientation']>;\n\n/** How the bar shares its room among the tabs. */\ntype TabsLayout = 'fixed' | 'scrollable';\nconst BarContext = createContext<Bar>({\n layout: 'fixed',\n orientation: 'horizontal',\n variant: 'primary'\n});\n\n// The bars a reveal has already scrolled, so that only the first is instant.\nconst revealed = new WeakSet<Element>();\nconst NO_PANELS: ReadonlySet<Key> = new Set();\n\n// Which panels are mounted, by id. React Aria points a selected tab's\n// `aria-controls` at the panel it would control whether or not one exists,\n// and a strip used on its own — tabs that filter the content below rather\n// than swapping a panel — then references an id nothing carries, which axe\n// reports as an invalid attribute value. Each panel registers itself here so\n// a tab can leave the attribute off when its panel is not there.\nconst PanelsContext = createContext<ReadonlySet<Key>>(NO_PANELS);\nconst RegisterPanelContext = createContext<(id: Key) => () => void>(() => () => {});\n\n// `children` is narrowed to nodes. React Aria also accepts a function there,\n// to hand the children the tabs' render state, and that form cannot be\n// wrapped in a context provider without calling it first — which would be\n// doing React Aria's job with none of its state. Nothing here needs it, so\n// the narrower type says so rather than leaving a signature that type-checks\n// and then fails to render.\ntype TabsProps = Omit<RACTabsProps, 'children'> & {\n children?: ReactNode;\n /**\n * How the bar shares its room: `fixed` divides it into equal sections, and\n * `scrollable` gives each tab its label's width in a bar that scrolls,\n * which is the page's choice for more tabs than the room has sections for.\n * @default 'fixed'\n */\n layout?: TabsLayout;\n /**\n * Which of the page's two tab bars this is: `primary` for the main one,\n * `secondary` for a strip under a primary one.\n * @default 'primary'\n */\n variant?: TabsVariant;\n};\n\n// The badge, which wraps the icon where a primary tab stacks one and stands\n// after the label anywhere else: `true` for the small dot, a number for the\n// large badge, and nothing for `false`.\nfunction badgeFor(badge: boolean | number | undefined, icon?: ReactNode): ReactNode {\n if (badge === undefined || badge === false) {\n return icon ?? null;\n }\n return <Badge count={badge === true ? undefined : badge} {...{\n 0: {},\n 1: {\n className: \"x2lah0s\"\n }\n }[!!(icon === undefined) << 0]}>\n {icon}\n </Badge>;\n}\n\n// The length of that fade, in pixels, for the arithmetic below: the spacing\n// step src/styles/scroll-fade.ts draws it at.\nconst FADE = spacingPx.xxl;\n\n// Scrolls a scrollable bar just far enough to show its selected tab whole and\n// clear of the fade on an edge with tabs past it — see `scrollFadeOf` — handed\n// to the selected tab's label as a ref so it runs as that tab becomes the\n// selected one. Shown only whole, it came to rest inside the fade, its last\n// letters and its indicator fading out with the tabs beyond it. Past the\n// bar's last tab there is no fade, and the scroll stops at the end anyway. The bar alone, never the page: `scrollIntoView`\n// would scroll every scrolling ancestor, the window included, to bring a\n// bar below the fold up to it. The first reveal is instant, so a bar opens\n// on its selected tab rather than sliding to it; the rest take the bar's own\n// smooth scrolling.\nfunction revealInBar(element: HTMLElement | null) {\n const tab = element?.closest('[role=\"tab\"]');\n const bar = tab?.closest('[role=\"tablist\"]');\n if (tab === undefined || tab === null || bar === undefined || bar === null) {\n return;\n }\n const first = !revealed.has(bar);\n revealed.add(bar);\n const box = tab.getBoundingClientRect();\n const room = bar.getBoundingClientRect();\n const left = Math.min(0, box.left - FADE - room.left) + Math.max(0, box.right + FADE - room.right);\n const top = Math.min(0, box.top - room.top) + Math.max(0, box.bottom - room.bottom);\n if (left !== 0 || top !== 0) {\n bar.scrollBy({\n behavior: first ? 'instant' : 'auto',\n left,\n top\n });\n }\n}\n\n// StyleX cannot target [data-selected] on the element it is styling, so the\n// active tab cannot be chosen in CSS. React Aria's answer is a className that\n// is a function of the tab's own state, the same mechanism Chip uses —\n// mergeStatefulStyles wraps this one so a tab still keeps a className the call\n// site passed.\nfunction tabClasses({\n layout,\n orientation,\n variant\n}: Bar, stacked: boolean) {\n const roles = VARIANTS[variant];\n const vertical = orientation === 'vertical';\n return (state: TabRenderProps) => {\n const engaged = state.isHovered || state.isFocusVisible || state.isPressed;\n\n // The layers in rising order, so a press shows over a focused tab and\n // focus over a hovered one.\n return stylex.props(styles.tab, layout === 'scrollable' && !vertical && styles.tabScrollable, vertical && styles.tabVertical, stacked && styles.tabStacked, state.isSelected ? roles.active : styles.tabInactive, !state.isSelected && engaged && styles.tabInactiveEngaged, state.isHovered && (state.isSelected ? roles.activeHovered : roles.inactiveHovered), state.isFocusVisible && (state.isSelected ? roles.activeFocused : roles.inactiveFocused), state.isPressed && roles.pressed, state.isDisabled && styles.tabDisabled);\n };\n}\n\n// The tab's content: the icon, if any, then the label, wrapped so the\n// indicator has its width to follow. A badge after the label shares a line\n// with it, which is the one wrapper a tab without one goes without. Built by\n// a call for the same reason as `tabRenderer` below; React Aria hands the\n// function the tab's state, and it is passed on when the children are a\n// function too.\n//\n// A fixed bar's label is whole once the reader has enlarged their text,\n// rather than cut at the two lines or the one its section has room for. A\n// scrollable bar's tab is as wide as its label up to its 264dp, and its label\n// keeps the clamp past that.\nfunction tabContent(children: TabProps['children'], {\n layout,\n orientation,\n variant\n}: Bar, icon: ReactNode, badge: boolean | number | undefined, isEnlarged: boolean) {\n const hasIcon = icon !== undefined && icon !== null;\n const stacked = hasIcon && variant === 'primary';\n const after = stacked ? null : badgeFor(badge);\n const indicator = <RACSelectionIndicator {...stylex.props(VARIANTS[variant].indicator[orientation])} />;\n // A primary indicator follows the label along a horizontal bar, and lies\n // along the tab's edge everywhere else.\n const underLabel = variant === 'primary' && orientation === 'horizontal';\n return (state: TabRenderProps & {\n defaultChildren: ReactNode;\n }) => {\n const text = <span {...{\n 0: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x2b8uid x1ua5tub x1h7i4cw\"\n },\n 4: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x2b8uid x1ua5tub xh0615m\"\n },\n 2: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x1ua5tub x1h7i4cw x1yc453h\"\n },\n 6: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x1ua5tub xh0615m x1yc453h\"\n },\n 1: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x2b8uid x1ua5tub x1uy8f9d\"\n },\n 5: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x2b8uid x1ua5tub x1uy8f9d\"\n },\n 3: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x1ua5tub x1yc453h x1uy8f9d\"\n },\n 7: {\n className: \"x104kibb xkjl1po xb3r6kr xj0a0fe x1ua5tub x1yc453h x1uy8f9d\"\n }\n }[!!stacked << 2 | !!(orientation === 'vertical') << 1 | !!(isEnlarged && layout === 'fixed') << 0]}>\n {typeof children === 'function' ? children(state) : children}\n </span>;\n return <>\n <span ref={layout === 'scrollable' && state.isSelected ? revealInBar : undefined} {...stylex.props(styles.label, hasIcon && (stacked ? styles.labelStacked : styles.labelInline))}>\n {hasIcon ? <span className=\"x6s0dn4 xxk0z11 x3nfvp2 x2lah0s x1pvqxga xvy4d1p xl56j7k\">\n {stacked ? badgeFor(badge, icon) : icon}\n </span> : null}\n {after === null ? text : <span className=\"x6s0dn4 x9f619 x3nfvp2 xzoy561 x193iq5w xeuugli\">\n {text}\n {after}\n </span>}\n {underLabel ? indicator : null}\n </span>\n {underLabel ? null : indicator}\n </>;\n };\n}\n\n// React Aria renders a tab with `href` as an anchor and any other as a div,\n// and expects a `render` function to return the same element it would have.\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 two inputs. See PanelsContext for why the attribute is\n// dropped.\nfunction tabRenderer(hasPanel: boolean, render: TabProps['render']): NonNullable<TabProps['render']> {\n return (domProps, state) => {\n const adjusted = hasPanel ? domProps : {\n ...domProps,\n 'aria-controls': undefined\n };\n if (render !== undefined) {\n return render(adjusted, state);\n }\n if ('href' in adjusted) {\n // oxlint-disable-next-line jsx-a11y/anchor-has-content -- filled by React Aria\n return <a {...adjusted} />;\n }\n return <div {...adjusted} />;\n };\n}\n\n/**\n * A tab bar and its panels. Selection is React Aria's `selectedKey`: pass\n * it with `onSelectionChange` to control it, or `defaultSelectedKey` to let\n * it keep its own. Each `Tabs.Tab` names the `Tabs.Panel` it controls through\n * a shared `id`, and a strip may stand alone without panels.\n *\n * Composed rather than configured by props, because the number of tabs and\n * what each panel holds are the call site's to decide — the parts are\n * `Tabs.List`, `Tabs.Tab`, and `Tabs.Panel`.\n */\nfunction Tabs({\n children,\n layout = 'fixed',\n orientation = 'horizontal',\n variant = 'primary',\n ...props\n}: RefAttributes<HTMLDivElement> & TabsProps) {\n const bar = useMemo(() => ({\n layout,\n orientation,\n variant\n }), [layout, orientation, variant]);\n const [panels, setPanels] = useState<ReadonlySet<Key>>(NO_PANELS);\n const register = useCallback((id: Key) => {\n setPanels(previous => {\n if (previous.has(id)) {\n return previous;\n }\n const next = new Set(previous);\n next.add(id);\n return next;\n });\n return () => {\n setPanels(previous => {\n if (!previous.has(id)) {\n return previous;\n }\n const next = new Set(previous);\n next.delete(id);\n return next;\n });\n };\n }, []);\n return <RACTabs {...props} orientation={orientation} {...mergeStatefulStyles({\n 0: {},\n 1: {\n className: \"x78zum5\"\n }\n }[!!(orientation === 'vertical') << 0], props)}>\n <RegisterPanelContext value={register}>\n <PanelsContext value={panels}>\n <BarContext value={bar}>{children}</BarContext>\n </PanelsContext>\n </RegisterPanelContext>\n </RACTabs>;\n}\nfunction TabsList(props: RefAttributes<HTMLDivElement> & TabsListProps) {\n // Split here rather than in the signature, which would rename the\n // parameter in the published declaration. The merge reads the two style\n // props alone: handed the whole of `props`, it is handed the ref, which\n // the compiler reads as a ref passed to a function during render.\n const {\n className,\n style,\n ...rest\n } = props;\n const {\n layout,\n orientation\n } = useContext(BarContext);\n // The bar's element, measured for the edges with tabs past them, only in a\n // horizontal bar that scrolls: a fixed bar squeezes its tabs into its room\n // and has nothing past either edge. The call site's ref lands on the same\n // element, read off the props for the reason NavigationBar gives.\n const scrolls = layout === 'scrollable' && orientation !== 'vertical';\n const [element, setElement] = useState<HTMLDivElement | null>(null);\n const ref = useMemo(() => mergeRefs<HTMLDivElement>(setElement, rest.ref ?? undefined), [rest.ref]);\n const edges = useScrollEdges(scrolls ? element : null);\n return <TabList {...rest} {...mergeStatefulStyles(stylex.props(styles.list, layout === 'scrollable' && styles.listScrollable, orientation === 'vertical' && styles.listVertical, scrolls && scrollFadeOf(edges)), {\n className,\n style\n })} ref={ref} />;\n}\nfunction TabsPanel(props: RefAttributes<HTMLDivElement> & TabsPanelProps) {\n const register = useContext(RegisterPanelContext);\n const {\n id\n } = props;\n useEffect(() => {\n if (id === undefined) {\n return undefined;\n }\n return register(id);\n }, [id, register]);\n return <TabPanel {...props} {...mergeStatefulStyles({\n className: \"x9f619 x1iyjqo2 xeuugli xat36cu x1v57pqu x9v5kkp x1t137rt x1s780dp\"\n }, props)} />;\n}\n\n/**\n * An optional box around the panels, which animates its height as one panel\n * gives way to the next. Without it the panels still work; the box around\n * them simply jumps from one height to the other.\n */\nfunction TabsPanels(props: RefAttributes<HTMLDivElement> & TabsPanelsProps) {\n return <RACTabPanels {...props} {...mergeStyles({\n className: \"x12w9bfk x1t2j4n3 x9f619 x1iyjqo2 xeuugli x7giv3 x1hm618n xioksi3 x1f55p5c x1seskgd\"\n }, props)} />;\n}\nfunction TabsTab({\n badge,\n children,\n icon,\n ref,\n render,\n ...props\n}: RefAttributes<HTMLAnchorElement | HTMLDivElement> & TabsTabProps) {\n const panels = useContext(PanelsContext);\n const bar = useContext(BarContext);\n const hasPanel = props.id !== undefined && panels.has(props.id);\n const stacked = icon !== undefined && icon !== null && bar.variant === 'primary';\n const isEnlarged = useEnlargedText();\n return <Tab {...props}\n // A tab with `href` is an anchor and any other a div, so the ref is\n // typed as either and handed over as the callback both accept — see\n // src/render/ref.ts.\n ref={refCallback(ref)} render={tabRenderer(hasPanel, render)} {...mergeStatefulStyles(tabClasses(bar, stacked), props)}>\n {tabContent(children, bar, icon, badge, isEnlarged)}\n </Tab>;\n}\nTabs.List = TabsList;\nTabs.Panel = TabsPanel;\nTabs.Panels = TabsPanels;\nTabs.Tab = TabsTab;\ntype TabsListProps = TabListProps<object>;\ntype TabsPanelProps = TabPanelProps;\ntype TabsPanelsProps = Omit<TabPanelsProps<object>, 'children'> & {\n children?: ReactNode;\n};\ntype TabsTabProps = {\n /**\n * A badge on the tab: `true` for the badges page's small dot, a number for\n * the large badge holding it. It sits on a primary tab's icon, and after\n * the label anywhere else. The badge is hidden from assistive technology,\n * so say what it says in the tab's name too — \"First item, 3 new\".\n */\n badge?: boolean | number;\n /**\n * An icon with the label, at the page's 24dp: over it on a primary tab,\n * whose bar grows to 64dp, and before it on a secondary one. An icon drawn\n * in `em` takes its size from the slot.\n */\n icon?: ReactNode;\n} & TabProps;\nexport type { TabsLayout, TabsListProps, TabsPanelProps, TabsPanelsProps, TabsProps, TabsTabProps, TabsVariant };\nexport { TabsList, TabsPanel, TabsPanels, TabsTab };\nexport default Tabs;"],"mappings":";;;;;;;;;;;;;;AAqEA,MAAMiB,SAAS;CACbC,WAAW;EACTC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,oBAAoB;EAClBnB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRG,QAAQ;EACRE,QAAQ;EACRC,QAAQ;EACRG,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAE,4BAA4B;EAC1BpB,QAAQ;EACRC,QAAQ;EAC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jBf7l: "xrgy624",
60
- kInvED: "x2ssjo2",
59
+ kjBf7l: "xat36cu",
60
+ kInvED: "x1v57pqu",
61
61
  k3XXqK: "x1t137rt",
62
- kMeerF: "x1de99jn",
62
+ kMeerF: "x1s780dp",
63
63
  kmVPX3: "x1717udv",
64
64
  $$css: true
65
65
  },
@@ -108,10 +108,10 @@ const styles = {
108
108
  kjj79g: "xl56j7k",
109
109
  kb6lSQ: "x1hxa6v5",
110
110
  kLWn49: "x1iwmiir",
111
- kjBf7l: "xrgy624",
111
+ kjBf7l: "xat36cu",
112
112
  kInvED: "x1hl8ikr",
113
113
  k3XXqK: "x1t137rt",
114
- kMeerF: "x1de99jn",
114
+ kMeerF: "x1s780dp",
115
115
  $$css: true
116
116
  },
117
117
  selectorHovered: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_c","getLocalTimeZone","Time","toCalendarDateTime","today","stylex","useContext","useId","useRef","useState","LabelContext","RACDialog","RACTimeField","TimeFieldStateContext","useLocale","useSlottedContext","fieldStyles","invalidFrom","useFieldValidationBehavior","useMessages","renderSegment","segmentStyles","mergeStatefulStyles","overlay","picker","triggerClassName","toggleGroupRenderer","useRadioItem","DIAL","CENTRE","OUTER_RING","INNER_RING","HANDLE","MORNING","AFTERNOON","INVISIBLE","styles","centre","kGNEyG","k1xSpc","kjj79g","kmVPX3","$$css","dialog","periodButton","kWkggS","kMzoRj","kB7OPa","kMwMTN","kkrTdU","kCS8Yb","kzQI83","kMv6JI","kGuDYH","kcqcaj","k63SB2","kb6lSQ","kLWn49","kogj98","kjBf7l","kInvED","k3XXqK","kMeerF","periodDivider","kLZC3w","kPef9Z","kEafiO","periodHovered","periodSelected","kAXs8y","periodSelectedHovered","ring","selector","kZKoxP","kVAM5u","kaIpWk","ksu8eU","knGrYV","kzqmXN","selectorHovered","selectorInput","selectorInputFocused","selectorSelected","selectorSelectedHovered","isSelected","key","text","x","y","isFocusVisible","isHovered","isFocused","cancelLabel","className","confirmLabel","container","defaultMode","defaultOpen","description","enterTimeLabel","error","floatingLabel","isOpen","label","leadingIcon","onOpenChange","selectTimeLabel","variant","asDateTime","time","boxClassName","isDial","isFollowed","state","props","clockTrigger","isDisabled","onPress","ClockTrigger","t0","$","id","fieldLabel","t1","undefined","t2","Symbol","for","triggerGlyph","t3","dialLabel","turn","radius","polar","fieldName","names","Intl","DisplayNames","field","locale","name","of","charAt","toLocaleUpperCase","slice","initialTime","placeholderValue","held","value","labelsFor","part","twelveHour","steps","Array","from","length","_","step","digits","NumberFormat","minimumIntegerDigits","map","format","minute","hours","DateTimeFormat","hour","hour12","offset","partOf","type","formatToParts","Date","find","String","periodAmClassName","periodClassName","divider","PeriodHalf","children","radio","periodPmClassName","angle","Math","PI","sin","cos","TimePicker","t4","isReadOnly","t5","t6","validationBehavior","messages","ownOpen","setOwnOpen","open","t7","next","changeOpen","t8","openModal","T0","t9","t10","root","t11","isRequired","t12","t13","selectTime","t14","t15","input","t16","t17","t18","scrim","t19","cancel","t20","confirm","t21","enterTime","t22","granularity","t23","t24","hourCycle","t25","t26","TimePickerDialog","draft","setDraft","mode","setMode","setPart","headingId","labelContext","boxes","dragging","usesTwelveHours","switchMode","periods","isAfternoon","showsMinutes","shown","handle","box","current","querySelector","HTMLElement","focus","focusBox","event","type_0","target","getAttribute","followFocus","changeDraft","event_0","box_0","currentTarget","getBoundingClientRect","clientX","left","width","clientY","top","height","atan2","distance","hypot","set","round","inner","pick","event_1","pointerType","button","preventDefault","setPointerCapture","pointerId","startPicking","event_2","continuePicking","stopPicking","keys","afternoon","has","choosePeriod","setValue","segment","replaceAll","0","1","renderBox","labels","between","modalDialog","_temp","resolvedOptions","RACButton","RACTimeField","RACDateInput","RACDateSegment","Button"],"sources":["../../../src/components/time-picker/index.tsx"],"sourcesContent":["'use client';\n\nimport type { CalendarDateTime, ZonedDateTime } from '@internationalized/date';\nimport type { FocusEvent, PointerEvent, ReactElement, ReactNode, RefAttributes } from 'react';\nimport type { TimeFieldProps as RACTimeFieldProps, Selection, TimeFieldState, TimeValue } from 'react-aria-components';\nimport { getLocalTimeZone, Time, toCalendarDateTime, today } from '@internationalized/date';\nimport * as stylex from '@stylexjs/stylex';\nimport { useCallback, useContext, useId, useRef, useState } from 'react';\nimport { Heading, LabelContext, Modal, ModalOverlay, Button as RACButton, DateInput as RACDateInput, DateSegment as RACDateSegment, Dialog as RACDialog, TimeField as RACTimeField, TimeFieldStateContext, ToggleButton, ToggleButtonGroup, useLocale, useSlottedContext } from 'react-aria-components';\nimport type { FieldVariant } from '../../field';\nimport { FieldBox, FieldMessage, FieldSegments } from '../../field';\nimport { fieldStyles, invalidFrom, useFieldValidationBehavior } from '../../field/root';\nimport { ClockGlyph, KeyboardGlyph } from '../../glyphs';\nimport { useMessages } from '../../i18n';\nimport { renderSegment } from '../../segments';\nimport { segmentStyles } from '../../segments/styles';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport { overlay } from '../../styles/overlay';\nimport { picker, triggerClassName } from '../../styles/picker';\nimport { toggleGroupRenderer, useRadioItem } from '../../toggle-group';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii, shadows, sizing, spacing, stateLayerOpacity, typography } from '../../tokens/design.tokens.stylex';\nimport Button from '../button';\nimport IconButton from '../icon-button';\n\n// The time pickers page's picker: TimeField's segments, with a clock button\n// in the field's trailing slot that opens the page's modal over a scrim. A\n// time is typed into the field or picked in the modal, and the modal's OK is\n// what writes a picked time back.\n//\n// **Modal at every width.** The page has no docked time picker, so unlike\n// DatePicker nothing here changes at a breakpoint: the container is centred\n// over the scrim on a phone and on a desktop alike.\n//\n// **The modal is the page's vertical layout, in both of its variants.** The\n// dial: a label-medium headline on surface variant, then the time selector —\n// an hour and a minute box, 96 by 80dp at the small corner in display-large,\n// on surface container highest and on primary container once selected, with\n// 24dp for the colon between — and beside them the period selector, 52 by\n// 80dp, outlined, its chosen half on tertiary container. Under them, 36dp\n// down, the 256dp dial on surface container highest: labels in body-large,\n// the 48dp handle and 2dp hand in primary, an 8dp centre, and the label under\n// the handle in on primary. The input variant drops the dial and draws the\n// boxes as text fields, 96 by 72dp in display-medium, the focused one on\n// primary container with a 2dp primary outline, each named underneath in\n// body-small, and the period selector at the same 72dp. Both put the\n// keyboard or clock toggle at the actions' start and the text buttons at\n// their end, inside a container on surface container high at the\n// extra-large corner, level 3, with 24dp of padding.\n//\n// **The boxes are a TimeField of their own**, React Aria's, inside the\n// modal: its hour and minute segments drawn as the page's boxes. That makes\n// them spinbuttons with React Aria's arrow keys, typing, digits and names in\n// the reader's locale, and it is the same accessible model in both variants,\n// which differ in how the boxes are drawn rather than in what they are. The\n// day period stays a segment for React Aria's sake but is hidden, and the\n// period selector beside the boxes takes its place, as a radio group of the\n// locale's two words for it — React Aria's toggle group, with the radio\n// group's keys and single Tab stop SegmentedButton takes from\n// src/toggle-group, so an arrow chooses the period it moves to. The dial is\n// a pointer affordance over the spinbuttons and is hidden from assistive\n// technology: everything it sets, the boxes set too.\n//\n// **The dial does not mirror.** A clock face is the same in either writing\n// direction, so it is drawn and read in screen coordinates, three o'clock on\n// the right. The row above it follows the field's own order, as TimeField's\n// segments do, so in a right-to-left locale the period selector sits on the\n// left.\n//\n// **Every digit is a lining figure.** The boxes' display type is the brand\n// face, which falls back to Georgia where it is not loaded, and Georgia's\n// figures are old-style by default: a zero at x-height and a nine below the\n// baseline, so `09` read as `o9` at 57px. The boxes ask for lining figures,\n// which stand on the baseline at cap height in any face that has both, and\n// so do the dial's labels and the period selector, whose plain family a\n// theme can set to such a face too. The boxes and the selector keep\n// tabular ones, so a digit changing does not shift the rest.\n//\n// Twenty-four hours put the day's second half on an inner ring, 12 at its top\n// and 00 at the outer ring's, with no period selector, and whether there is\n// one at all is the reader's locale or `hourCycle`, as it is in TimeField.\n\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// The dial's geometry, in the units of its viewBox, which it draws at the\n// page's 256dp: the radius of the outer and inner rings of labels and of the\n// handle that sits on them. The inner ring sits far enough in that a handle on\n// it clears the outer ring's labels.\nconst DIAL = 256;\nconst CENTRE = DIAL / 2;\nconst OUTER_RING = 101;\nconst INNER_RING = 64;\nconst HANDLE = 24;\n\n// The period selector's selection, hoisted so each is one stable array\n// rather than a fresh one per render.\nconst MORNING = ['am'];\nconst AFTERNOON = ['pm'];\n\n// React Aria's literal segments carry the locale's bidirectional marks beside\n// the punctuation, so a literal is drawn only when something else is left.\nconst INVISIBLE = /[\\s؜‎‏‪-‮⁦-⁩]/gu;\nconst scaleIn = \"xnirehn-B\";\nconst styles = {\n centre: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kjj79g: \"xl56j7k\",\n kmVPX3: \"x1a7rqcl\",\n $$css: true\n },\n dialog: {\n kmVPX3: \"x1apw6a7\",\n $$css: true\n },\n periodButton: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xjbqb8w\",\n kMzoRj: \"xc342km\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x78zum5\",\n kCS8Yb: \"x1r8uery\",\n kzQI83: \"x1iyjqo2\",\n kMv6JI: \"x46eyla\",\n kGuDYH: \"x5ehqhr\",\n kcqcaj: \"x1j4x3al\",\n k63SB2: \"xrf6cl6\",\n kjj79g: \"xl56j7k\",\n kb6lSQ: \"x1g135zh\",\n kLWn49: \"x1ggk5va\",\n kogj98: \"x1ghz6dp\",\n kjBf7l: \"xrgy624\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"x1t137rt\",\n kMeerF: \"x1de99jn\",\n kmVPX3: \"x1717udv\",\n $$css: true\n },\n periodDivider: {\n kLZC3w: \"xrre44y\",\n kPef9Z: \"x13fuv20\",\n kEafiO: \"x178xt8z\",\n $$css: true\n },\n periodHovered: {\n kWkggS: \"x14noynh\",\n $$css: true\n },\n periodSelected: {\n kWkggS: \"xs6yvni x1jzqe4\",\n kMwMTN: \"x3cbcwg x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n periodSelectedHovered: {\n kWkggS: \"x5nnyxq x1jzqe4\",\n $$css: true\n },\n ring: {\n k3XXqK: \"xaatb59\",\n $$css: true\n },\n selector: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"x1rrhr5q\",\n kZKoxP: \"xwzfr38\",\n kVAM5u: \"x1ylmb6m\",\n kaIpWk: \"x1xdvaa9\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"xc342km x13rsnn2\",\n kB7OPa: \"x9f619\",\n knGrYV: \"xbuiw85\",\n kMwMTN: \"x139gbkf\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x3nfvp2\",\n kMv6JI: \"xjaampf\",\n kGuDYH: \"xuyiek4\",\n kcqcaj: \"x1j4x3al\",\n k63SB2: \"x1n2oj23\",\n kzqmXN: \"xszbqgh\",\n kjj79g: \"xl56j7k\",\n kb6lSQ: \"x1hxa6v5\",\n kLWn49: \"x1iwmiir\",\n kjBf7l: \"xrgy624\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n selectorHovered: {\n kWkggS: \"xpae8dx\",\n $$css: true\n },\n selectorInput: {\n kZKoxP: \"xfl6q2h\",\n kkrTdU: \"x1ed109x\",\n kMv6JI: \"x1gi70vc\",\n kGuDYH: \"xlzzeuu\",\n k63SB2: \"xh9quta\",\n kb6lSQ: \"x148mp24\",\n kLWn49: \"xs5hucj\",\n $$css: true\n },\n selectorInputFocused: {\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xaatb59\",\n $$css: true\n },\n selectorSelected: {\n kWkggS: \"xp89om9 x1jzqe4\",\n kMwMTN: \"xscdzaa x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selectorSelectedHovered: {\n kWkggS: \"xq1oky0 x1jzqe4\",\n $$css: true\n }\n};\n\n// One label on the dial, placed on its ring.\ntype DialLabel = {\n isSelected: boolean;\n key: string;\n text: string;\n x: number;\n y: number;\n};\n\n// The state React Aria hands a half of the period selector's className.\ntype PeriodState = {\n isFocusVisible: boolean;\n isHovered: boolean;\n isSelected: boolean;\n};\n\n// What React Aria hands the input for each part of the time. Taken off the\n// component, for the reason src/segments gives.\ntype Segment = Parameters<NonNullable<Parameters<typeof RACDateInput>[0]['children']>>[0];\n\n// The state React Aria hands a segment's className.\ntype SegmentState = {\n isFocused: boolean;\n isFocusVisible: boolean;\n isHovered: boolean;\n};\n\n// The parts of a time the dial and the boxes set.\ntype TimePart = 'hour' | 'minute';\n\n/** Which of the time pickers page's two variants the modal shows. */\ntype TimePickerMode = 'dial' | 'input';\ntype TimePickerProps<T extends TimeValue = TimeValue> = Omit<RACTimeFieldProps<T>, 'children' | 'className' | 'style'> & {\n /**\n * What the modal's dismissing action says. Left out, it is the word for\n * it in the I18nProvider's locale — \"Cancel\" in English.\n */\n cancelLabel?: string;\n /** A function may compute the class from the field's render state. */\n className?: RACTimeFieldProps<T>['className'];\n /**\n * What the modal's confirming action says. Left out, it is the word for\n * it in the I18nProvider's locale — \"OK\" in English.\n */\n confirmLabel?: string;\n /**\n * Where to portal the modal and its scrim. Defaults to the container of the\n * `ThemeScope` around it, which keeps the modal on that scope's tokens, or to\n * the end of `<body>` where there is none. A subtree themed through the\n * `themeScope` class has no container of its own, so point this inside it, or\n * the modal renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * Which variant the modal opens on: the dial, or the boxes as text fields\n * to type into. The button at the modal's start switches between them.\n * @default 'dial'\n */\n defaultMode?: TimePickerMode;\n /** Whether the modal starts open, when it keeps its own state. */\n defaultOpen?: boolean;\n /** Supporting text under the field. */\n description?: string;\n /**\n * The input variant's headline, which also names the button that switches\n * the dial to it. Left out, it is the I18nProvider's locale's — \"Enter\n * time\" in English.\n */\n enterTimeLabel?: string;\n /**\n * The message shown instead of the description, which also marks the\n * field invalid.\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 * Whether the label floats into the box's top once the field holds a\n * value, rather than sitting above it.\n * @default true\n */\n floatingLabel?: boolean;\n /** Whether the modal is open, when the call site holds the state. */\n isOpen?: boolean;\n /** What the field is for. Always rendered; never a placeholder. */\n label: string;\n /**\n * An icon at the box's leading end, in the page's 24dp size. An icon drawn\n * in `em` takes that size from the slot.\n */\n leadingIcon?: ReactNode;\n /** Called with the modal's new state when it opens or closes. */\n onOpenChange?: (isOpen: boolean) => void;\n /**\n * The dial's headline, which also names the clock button that opens the\n * modal, followed by the field's label, and the button that switches the\n * input variant back. Left out, it is the I18nProvider's locale's —\n * \"Select time\" in English.\n */\n selectTimeLabel?: string;\n /** A function may compute the style from the field's render state. */\n style?: RACTimeFieldProps<T>['style'];\n /**\n * Which of the text fields page's two boxes to draw.\n * @default 'filled'\n */\n variant?: FieldVariant;\n};\n\n/**\n * A picked time as the field's state takes it, which is always a date and\n * time: React Aria puts a bare time on today and takes the date off again on\n * the way out.\n */\nfunction asDateTime(time: TimeValue): CalendarDateTime | ZonedDateTime {\n return 'day' in time ? time : toCalendarDateTime(today(getLocalTimeZone()), time);\n}\n\n// An hour or a minute box's classes, from React Aria's render state. On the\n// dial the selected box is the one the dial follows; typed into, it is the\n// one with focus, which is what the page's input variant draws as focused.\nfunction boxClassName(isDial: boolean, isFollowed: boolean) {\n return (state: SegmentState) => {\n const isSelected = isDial ? isFollowed : state.isFocused;\n return stylex.props(styles.selector, !isDial && styles.selectorInput, state.isHovered && styles.selectorHovered, isSelected && styles.selectorSelected, isSelected && state.isHovered && styles.selectorSelectedHovered, isDial && state.isFocusVisible && styles.ring, !isDial && state.isFocused && styles.selectorInputFocused).className ?? '';\n };\n}\n\n// Built by a call rather than written inline at the prop, which is what\n// react-perf's no-jsx-as-prop is after — the same reason DatePicker builds\n// its trigger this way.\nfunction clockTrigger(isDisabled: boolean, isOpen: boolean, label: string, onPress: () => void) {\n return <ClockTrigger isDisabled={isDisabled} isOpen={isOpen} label={label} onPress={onPress} />;\n}\n\n// The clock button in the field's trailing slot. It is named by its own\n// words followed by the field's label, which is how React Aria names\n// DatePicker's calendar button, so two pickers on a form are told apart.\nfunction ClockTrigger({\n isDisabled,\n isOpen,\n label,\n onPress\n}: {\n isDisabled: boolean;\n isOpen: boolean;\n label: string;\n onPress: () => void;\n}) {\n const id = useId();\n const fieldLabel = useSlottedContext(LabelContext);\n return <RACButton aria-expanded={isOpen} aria-haspopup=\"dialog\" aria-label={label} aria-labelledby={fieldLabel?.id === undefined ? undefined : `${id} ${fieldLabel.id}`} className={triggerClassName} id={id} isDisabled={isDisabled} onPress={onPress}>\n <ClockGlyph {...stylex.props(picker.triggerGlyph)} />\n </RACButton>;\n}\n\n/** One label, placed a fraction of a turn round a ring. */\nfunction dialLabel(key: string, text: string, isSelected: boolean, turn: number, radius: number): DialLabel {\n const {\n x,\n y\n } = polar(turn, radius);\n return {\n isSelected,\n key,\n text,\n x,\n y\n };\n}\n\n/** A field's name as the locale writes it, opening with a capital. */\nfunction fieldName(names: Intl.DisplayNames, field: string, locale: string) {\n const name = names.of(field) ?? field;\n return name.charAt(0).toLocaleUpperCase(locale) + name.slice(1);\n}\n\n/**\n * The time the modal opens on: the field's own, else its placeholder, else\n * midnight. A date and time keeps its date, so the field gets back what it\n * holds.\n */\nfunction initialTime(field: null | TimeFieldState, placeholderValue: TimeValue | undefined): TimeValue {\n const held = field?.value;\n if (held !== null && held !== undefined && 'hour' in held) {\n return held;\n }\n return placeholderValue ?? new Time();\n}\n\n/** The labels the dial draws for one part, in the reader's digits. */\nfunction labelsFor(part: TimePart, time: TimeValue, locale: string, twelveHour: boolean): DialLabel[] {\n const steps = Array.from({\n length: 12\n }, (_, step) => step);\n if (part === 'minute') {\n const digits = new Intl.NumberFormat(locale, {\n minimumIntegerDigits: 2\n });\n return steps.map(step => dialLabel(`m${step}`, digits.format(step * 5), time.minute === step * 5, step / 12, OUTER_RING));\n }\n const hours = new Intl.DateTimeFormat(locale, {\n hour: 'numeric',\n hour12: twelveHour\n });\n if (twelveHour) {\n const offset = time.hour >= 12 ? 12 : 0;\n return steps.map(step => dialLabel(`h${step}`, partOf(hours, step + offset, 'hour'), time.hour % 12 === step, step / 12, OUTER_RING));\n }\n return [...steps.map(step => dialLabel(`h${step}`, partOf(hours, step, 'hour'), time.hour === step, step / 12, OUTER_RING)), ...steps.map(step => dialLabel(`h${step + 12}`, partOf(hours, step + 12, 'hour'), time.hour === step + 12, step / 12, INNER_RING))];\n}\n\n/** The part of a formatted time a formatter writes for one hour of the day. */\nfunction partOf(format: Intl.DateTimeFormat, hour: number, type: 'dayPeriod' | 'hour') {\n return format.formatToParts(new Date(2000, 0, 1, hour)).find(part => part.type === type)?.value ?? String(hour);\n}\n\n// The period selector's morning half, with no rule above it.\nfunction periodAmClassName(state: PeriodState) {\n return periodClassName(state, false);\n}\n\n// A half of the period selector, from React Aria's render state. The second\n// half draws the rule between the two.\nfunction periodClassName(state: PeriodState, divider: boolean) {\n return stylex.props(styles.periodButton, divider && styles.periodDivider, state.isHovered && styles.periodHovered, state.isSelected && styles.periodSelected, state.isSelected && state.isHovered && styles.periodSelectedHovered, state.isFocusVisible && styles.ring).className ?? '';\n}\n\n/**\n * A half of the period selector, and a radio of its group: its key written\n * where the group's arrows read it, and out of the Tab order unless it is\n * the chosen half. A component of its own because that is read from the\n * group's state, which only its children reach.\n */\nfunction PeriodHalf({\n children,\n className,\n id\n}: {\n children: string;\n className: (state: PeriodState) => string;\n id: 'am' | 'pm';\n}) {\n const radio = useRadioItem(id);\n return <ToggleButton {...radio} className={className} id={id}>\n {children}\n </ToggleButton>;\n}\n\n// Its afternoon half, under the rule between the two.\nfunction periodPmClassName(state: PeriodState) {\n return periodClassName(state, true);\n}\n\n/** Where a fraction of a turn clockwise from twelve lands on a ring. */\nfunction polar(turn: number, radius: number) {\n const angle = turn * 2 * Math.PI;\n return {\n x: CENTRE + radius * Math.sin(angle),\n y: CENTRE - radius * Math.cos(angle)\n };\n}\n\n/**\n * A time typed into a field, or picked in a modal behind the clock button\n * at the field's end — on a dial, or typed into the modal's larger boxes.\n * The value is React Aria's — pass `value` with `onChange` to control it,\n * or `defaultValue` — as a `Time` from this package's `./date` subpath.\n *\n * ```tsx\n * import { Time } from '@kanso-labs/kanso-ui/date'\n *\n * <TimePicker defaultValue={new Time(9, 30)} label=\"Label\" />\n * ```\n *\n * The field is `TimeField`'s, so `granularity`, `hourCycle`, `minValue` and\n * `maxValue` behave as they do there. The modal sets hours and minutes and\n * keeps the seconds a value already has; a time it writes back is checked\n * against the bounds as a typed one is. Whether it shows a twelve or\n * twenty-four hour clock is the reader's locale, through React Aria's\n * `I18nProvider`, unless `hourCycle` says otherwise.\n *\n * The call site's `className` and `style` land on the field as a whole,\n * which is the element a layout positions.\n */\nfunction TimePicker<T extends TimeValue>({\n cancelLabel,\n confirmLabel,\n container,\n defaultMode = 'dial',\n defaultOpen = false,\n description,\n enterTimeLabel,\n error,\n floatingLabel = true,\n isDisabled = false,\n isOpen,\n isReadOnly = false,\n label,\n leadingIcon,\n onOpenChange,\n selectTimeLabel,\n variant = 'filled',\n ...props\n}: RefAttributes<HTMLDivElement> & TimePickerProps<T>) {\n const validationBehavior = useFieldValidationBehavior();\n const messages = useMessages();\n const [ownOpen, setOwnOpen] = useState(defaultOpen);\n const open = isOpen ?? ownOpen;\n const changeOpen = useCallback((next: boolean) => {\n if (isOpen === undefined) {\n setOwnOpen(next);\n }\n onOpenChange?.(next);\n }, [isOpen, onOpenChange]);\n const openModal = useCallback(() => {\n changeOpen(true);\n }, [changeOpen]);\n return <RACTimeField<T> isDisabled={isDisabled} isInvalid={invalidFrom(error)} isReadOnly={isReadOnly} validationBehavior={validationBehavior} {...props} {...mergeStatefulStyles(stylex.props(fieldStyles.root), props)}>\n <FieldBox floatingLabel={floatingLabel}\n // Always populated, for the reason TimeField's own comment gives.\n isPopulated isRequired={props.isRequired} label={label} leading={leadingIcon}\n // In the chrome's trailing slot, where DatePicker puts its calendar\n // button and for the same reasons.\n trailing={clockTrigger(isDisabled || isReadOnly, open, selectTimeLabel ?? messages.selectTime, openModal)} variant={variant}>\n <FieldSegments>\n <RACDateInput {...stylex.props(segmentStyles.input)}>\n {renderSegment}\n </RACDateInput>\n </FieldSegments>\n </FieldBox>\n <FieldMessage description={description} error={error} />\n <ModalOverlay isDismissable isOpen={open} onOpenChange={changeOpen}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container} {...stylex.props(overlay.scrim, styles.centre)}>\n <Modal className=\"x1n1nwrg x1u6grsq xbhiib0 x16dv9tl xvkjz1l x1w1tqly x19pkqky xx61lck x13rsnn2 x1udv5rz x9f619 x139gbkf xi55695 xmz0i5r x193iq5w xysyzu8\">\n <TimePickerDialog cancelLabel={cancelLabel ?? messages.cancel} confirmLabel={confirmLabel ?? messages.confirm} defaultMode={defaultMode} enterTimeLabel={enterTimeLabel ?? messages.enterTime} fieldLabel={label} granularity={props.granularity === 'hour' ? 'hour' : 'minute'} hourCycle={props.hourCycle} placeholderValue={props.placeholderValue} selectTimeLabel={selectTimeLabel ?? messages.selectTime} />\n </Modal>\n </ModalOverlay>\n </RACTimeField>;\n}\n\n/**\n * The modal's content, mounted each time it opens: the time it was opened\n * with is its draft until OK writes the draft into the field, or the modal\n * closes without it.\n */\nfunction TimePickerDialog({\n cancelLabel,\n confirmLabel,\n defaultMode,\n enterTimeLabel,\n fieldLabel,\n granularity,\n hourCycle,\n placeholderValue,\n selectTimeLabel\n}: {\n cancelLabel: string;\n confirmLabel: string;\n defaultMode: TimePickerMode;\n enterTimeLabel: string;\n fieldLabel: string;\n granularity: 'hour' | 'minute';\n hourCycle: 12 | 24 | undefined;\n placeholderValue: TimeValue | undefined;\n selectTimeLabel: string;\n}) {\n const {\n locale\n } = useLocale();\n // The outer field's state: the modal reads the time from it and writes the\n // picked one back through it, so the field stays the one owner of its\n // value, controlled or not, and its onChange is React Aria's own.\n const field = useContext(TimeFieldStateContext);\n const [draft, setDraft] = useState(() => initialTime(field, placeholderValue));\n const [mode, setMode] = useState(defaultMode);\n const [part, setPart] = useState<TimePart>('hour');\n const headingId = useId();\n const labelContext = useSlottedContext(LabelContext);\n const boxes = useRef<HTMLDivElement>(null);\n const dragging = useRef(false);\n const twelveHour = usesTwelveHours(locale, hourCycle);\n const names = new Intl.DisplayNames(locale, {\n type: 'dateTimeField'\n });\n const periods = new Intl.DateTimeFormat(locale, {\n hour: 'numeric',\n hour12: true\n });\n const isAfternoon = draft.hour >= 12;\n const isDial = mode === 'dial';\n const showsMinutes = granularity === 'minute';\n const shown: TimePart = showsMinutes ? part : 'hour';\n const handle = shown === 'minute' ? polar(draft.minute / 60, OUTER_RING) : polar(draft.hour % 12 / 12, !twelveHour && draft.hour >= 12 ? INNER_RING : OUTER_RING);\n const focusBox = useCallback((type: TimePart) => {\n const box = boxes.current?.querySelector(`[data-type=\"${type}\"]`);\n if (box instanceof HTMLElement) {\n box.focus();\n }\n }, []);\n\n // Which box the dial follows, taken from the box that has focus — a press\n // on a box, a Tab into it, or React Aria moving on once an hour is typed.\n const followFocus = useCallback((event: FocusEvent<HTMLDivElement>) => {\n const type = event.target.getAttribute('data-type');\n if (type === 'hour' || type === 'minute') {\n setPart(type);\n }\n }, []);\n const changeDraft = useCallback((next: null | TimeValue) => {\n if (next !== null) {\n setDraft(next);\n }\n }, []);\n const pick = useCallback((event: PointerEvent<SVGSVGElement>) => {\n const box = event.currentTarget.getBoundingClientRect();\n const x = event.clientX - box.left - box.width / 2;\n const y = event.clientY - box.top - box.height / 2;\n const turn = (Math.atan2(x, -y) / (2 * Math.PI) + 1) % 1;\n const distance = Math.hypot(x, y) * DIAL / box.width;\n if (shown === 'minute') {\n setDraft(draft.set({\n minute: Math.round(turn * 60) % 60\n }));\n return;\n }\n const step = Math.round(turn * 12) % 12;\n if (twelveHour) {\n setDraft(draft.set({\n hour: step + (isAfternoon ? 12 : 0)\n }));\n return;\n }\n const inner = distance < (OUTER_RING + INNER_RING) / 2;\n setDraft(draft.set({\n hour: inner ? step + 12 : step\n }));\n }, [draft, isAfternoon, shown, twelveHour]);\n const startPicking = useCallback((event: PointerEvent<SVGSVGElement>) => {\n if (event.pointerType === 'mouse' && event.button !== 0) {\n return;\n }\n // Keeps focus where it is: the dial is not a focus stop, and a press on\n // it would otherwise blur the box it is setting.\n event.preventDefault();\n try {\n event.currentTarget.setPointerCapture(event.pointerId);\n } catch {\n // A pointer the browser is not tracking has no capture to take — a\n // synthetic event in a test, where the moves land on the dial anyway.\n }\n dragging.current = true;\n pick(event);\n }, [pick]);\n const continuePicking = useCallback((event: PointerEvent<SVGSVGElement>) => {\n if (dragging.current) {\n pick(event);\n }\n }, [pick]);\n\n // An hour picked on the dial moves on to the minutes, as the page does.\n const stopPicking = useCallback(() => {\n if (!dragging.current) {\n return;\n }\n dragging.current = false;\n if (shown === 'hour' && showsMinutes) {\n setPart('minute');\n focusBox('minute');\n }\n }, [focusBox, shown, showsMinutes]);\n const switchMode = useCallback(() => {\n setMode(isDial ? 'input' : 'dial');\n focusBox(part);\n }, [focusBox, isDial, part]);\n const choosePeriod = useCallback((keys: Selection) => {\n const afternoon = keys !== 'all' && keys.has('pm');\n if (afternoon !== isAfternoon) {\n setDraft(draft.set({\n hour: draft.hour % 12 + (afternoon ? 12 : 0)\n }));\n }\n }, [draft, isAfternoon]);\n\n // OK writes the draft through the field's state, and its `slot` closes the\n // modal after.\n const confirm = useCallback(() => {\n field?.setValue(asDateTime(draft));\n }, [draft, field]);\n const renderBox = useCallback((segment: Segment): ReactElement => {\n if (segment.type === 'hour' || segment.type === 'minute') {\n return <RACDateSegment className={boxClassName(isDial, shown === segment.type)} segment={segment} />;\n }\n if (segment.type === 'literal' && segment.text.replaceAll(INVISIBLE, '') !== '') {\n return <RACDateSegment {...{\n 0: {\n className: \"x6s0dn4 xwzfr38 x9f619 x139gbkf x3nfvp2 xjaampf xuyiek4 x1n2oj23 xvy4d1p xl56j7k x1iwmiir\"\n },\n 1: {\n className: \"x6s0dn4 x9f619 x139gbkf x3nfvp2 xvy4d1p xl56j7k xfl6q2h x1gi70vc xlzzeuu xh9quta xs5hucj\"\n }\n }[!!!isDial << 0]} segment={segment} />;\n }\n return <RACDateSegment hidden segment={segment} />;\n }, [isDial, shown]);\n const labels = labelsFor(shown, draft, locale, twelveHour);\n const between = shown === 'minute' && draft.minute % 5 !== 0;\n return <RACDialog aria-labelledby={labelContext?.id === undefined ? headingId : `${headingId} ${labelContext.id}`} {...stylex.props(overlay.modalDialog, styles.dialog)}>\n <Heading id={headingId} level={2} className=\"x9f619 x1w5n3ug xp6n8n2 xkucv67 x14hhc5u x12utw95 xvzb9hk x1ghz6dp xieb3on\">\n {isDial ? selectTimeLabel : enterTimeLabel}\n </Heading>\n <div className=\"x1cy8zhl x9f619 x78zum5 x1gka490 xl56j7k\">\n <div onFocus={followFocus} ref={boxes}>\n <RACTimeField aria-label={fieldLabel}\n // The modal opens on the hour, the box it draws as selected, so\n // the arrows set it straight away. React Aria's dialog focuses\n // itself as it opens unless focus is already inside it, and the\n // field takes focus first: its effect runs before the dialog's,\n // which is its ancestor. The first segment it focuses is the\n // hour in every locale, since the period segment before it in\n // some is hidden.\n // oxlint-disable-next-line jsx-a11y/no-autofocus -- a modal opened to set a time starts on the hour it draws as selected\n autoFocus granularity={granularity} hideTimeZone hourCycle={hourCycle} onChange={changeDraft} shouldForceLeadingZeros validationBehavior=\"aria\" value={draft}>\n <RACDateInput className=\"x6s0dn4 x9f619 x78zum5 x1t137rt\">\n {renderBox}\n </RACDateInput>\n </RACTimeField>\n {isDial ? null : <div aria-hidden=\"true\" className=\"x9f619 x1w5n3ug x78zum5 x1yicsit x1b35g6e x9d6959 x1665zp3 xwth0xh xybisxh x7suny0\">\n <span className=\"x9f619 xszbqgh\">\n {fieldName(names, 'hour', locale)}\n </span>\n {showsMinutes ? <span className=\"x9f619 xszbqgh\">\n {fieldName(names, 'minute', locale)}\n </span> : null}\n </div>}\n </div>\n {twelveHour ? <ToggleButtonGroup aria-label={names.of('dayPeriod')} disallowEmptySelection onSelectionChange={choosePeriod} orientation=\"vertical\" render={toggleGroupRenderer(undefined, true)} selectedKeys={isAfternoon ? AFTERNOON : MORNING} selectionMode=\"single\" {...{\n 0: {\n className: \"xwzfr38 x1fwvt7v x1xdvaa9 x1y0btm7 xmkeg23 x9f619 x78zum5 xdt5ytf x2lah0s xvni27 xb3r6kr\"\n },\n 1: {\n className: \"x1fwvt7v x1xdvaa9 x1y0btm7 xmkeg23 x9f619 x78zum5 xdt5ytf x2lah0s xvni27 xb3r6kr xfl6q2h\"\n }\n }[!!!isDial << 0]}>\n <PeriodHalf className={periodAmClassName} id=\"am\">\n {partOf(periods, 9, 'dayPeriod')}\n </PeriodHalf>\n <PeriodHalf className={periodPmClassName} id=\"pm\">\n {partOf(periods, 21, 'dayPeriod')}\n </PeriodHalf>\n </ToggleButtonGroup> : null}\n </div>\n {isDial ? <svg aria-hidden=\"true\" data-dial={shown} onPointerCancel={stopPicking} onPointerDown={startPicking} onPointerMove={continuePicking} onPointerUp={stopPicking} viewBox={`0 0 ${DIAL} ${DIAL}`} className=\"xrlp1an x9f619 x1ypdohk x1lliihq x2lah0s x1t9vceh xseo6mj xvueqy4 x5ve5x3 x87ps6o\">\n <circle cx={CENTRE} cy={CENTRE} r={CENTRE - 1} className=\"x1a930ss x1h8bevw xeutv01 x8jos32\" />\n <line x1={CENTRE} x2={handle.x} y1={CENTRE} y2={handle.y} className=\"xrr0osq x1rqz208 x1i9vjva xbabvq0 x8pzrqk\" />\n <circle cx={CENTRE} cy={CENTRE} r={4} className=\"xrr0osq x1rqz208 x1i9vjva xbabvq0 x8pzrqk\" />\n <circle cx={handle.x} cy={handle.y} data-handle=\"\" r={HANDLE} className=\"xrr0osq x1rqz208 x1i9vjva xbabvq0 x8pzrqk\" />\n {between ? <circle cx={handle.x} cy={handle.y} r={2} className=\"xvlh3h9 x1bpb6vw\" /> : null}\n {labels.map(label => <text dominantBaseline=\"central\" key={label.key} textAnchor=\"middle\" x={label.x} y={label.y} {...{\n 0: {\n className: \"xti7fmr xmw301f x16svsjw x1848etk x17gc79u x1c52epr x1qn8t5l\"\n },\n 1: {\n className: \"x16svsjw x1848etk x17gc79u x1c52epr x1qn8t5l xvlh3h9 x1bpb6vw\"\n }\n }[!!label.isSelected << 0]}>\n {label.text}\n </text>)}\n </svg> : null}\n <div className=\"x6s0dn4 x9f619 x78zum5 x126z3so x1qughib x1yhnu8z\">\n <IconButton aria-label={isDial ? enterTimeLabel : selectTimeLabel} onPress={switchMode}>\n {isDial ? <KeyboardGlyph className=\"xlzyvqe x1lliihq x15vhz18\" /> : <ClockGlyph className=\"xlzyvqe x1lliihq x15vhz18\" />}\n </IconButton>\n <div className=\"x78zum5 x126z3so\">\n <Button slot=\"close\" variant=\"text\">\n {cancelLabel}\n </Button>\n <Button onPress={confirm} slot=\"close\" variant=\"text\">\n {confirmLabel}\n </Button>\n </div>\n </div>\n </RACDialog>;\n}\n\n/**\n * Whether the reader's clock has twelve hours. `hourCycle` decides when it\n * is given, as it does for React Aria's segments; otherwise the locale does.\n */\nfunction usesTwelveHours(locale: string, hourCycle: 12 | 24 | undefined) {\n if (hourCycle !== undefined) {\n return hourCycle === 12;\n }\n return new Intl.DateTimeFormat(locale, {\n hour: 'numeric'\n }).resolvedOptions().hour12 ?? false;\n}\nexport type { TimePickerMode, TimePickerProps };\nexport default TimePicker;"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwFA,MAAM4B,OAAO;AACb,MAAMC,SAASD,OAAO;AACtB,MAAME,aAAa;AACnB,MAAMC,aAAa;AACnB,MAAMC,SAAS;AAIf,MAAMC,UAAU,CAAC,IAAI;AACrB,MAAMC,YAAY,CAAC,IAAI;AAIvB,MAAMC,YAAY;AAElB,MAAMC,SAAS;CACbC,QAAQ;EACNC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,QAAQ;EACNF,QAAQ;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AAA,SAAAuE,MAAAvE,EAAA,SAAA6E,IAAA;EA1EHe,MAAA,qBAAC,IAAD;GAA4B,mBAAAnF;GAA8E,GAAM2D;GAAhH,UAAA;IACHE;IAGAC;IAyCCM;IAiBDc;GA9Da;;EA2EH3F,EAAA,MAAAkF;EAAAlF,EAAA,MAAA2F;EAAA3F,EAAA,MAAAS;EAAAT,EAAA,MAAAoE;EAAApE,EAAA,MAAAsE;EAAAtE,EAAA,OAAAuE;EAAAvE,EAAA,OAAA6E;EAAA7E,EAAA,OAAA4F;CAAA,OAAAA,MAAA5F,EAAA;CAAA,OA3EP4F;AA2EO;;;;;AA5OhB,SAAAwF,MAAArM,OAAA;CAAA,OAoN+B,oBAAA,QAAA;EAAuB,kBAAA;EAAqC,YAAA;EAAY,GAAAA,MAAKhB;EAAO,GAAAgB,MAAKf;EAAE,GAAM;GAAA8M,GACrH,EAAAzM,WACU,+DACb;GAAC0M,GACE,EAAA1M,WACU,gEACb;EACF,EAAE,CAAC,CAACU,MAAKnB,cAAe;EACfmB,UAAAA,MAAKjB;CACD,GATkDiB,MAAKlB,GASvD;AAAA;AAsBnB,SAAS4J,gBAAgBtG,QAAgByF,WAAgC;CACvE,IAAIA,cAAcxG,KAAAA,GAChB,OAAOwG,cAAc;CAEvB,OAAO,IAAI5F,KAAK6B,eAAe1B,QAAQ,EACrC2B,MAAM,UACR,CAAC,CAAC,CAACuI,gBAAgB,CAAC,CAACtI,UAAU;AACjC"}
1
+ {"version":3,"file":"index.js","names":["_c","getLocalTimeZone","Time","toCalendarDateTime","today","stylex","useContext","useId","useRef","useState","LabelContext","RACDialog","RACTimeField","TimeFieldStateContext","useLocale","useSlottedContext","fieldStyles","invalidFrom","useFieldValidationBehavior","useMessages","renderSegment","segmentStyles","mergeStatefulStyles","overlay","picker","triggerClassName","toggleGroupRenderer","useRadioItem","DIAL","CENTRE","OUTER_RING","INNER_RING","HANDLE","MORNING","AFTERNOON","INVISIBLE","styles","centre","kGNEyG","k1xSpc","kjj79g","kmVPX3","$$css","dialog","periodButton","kWkggS","kMzoRj","kB7OPa","kMwMTN","kkrTdU","kCS8Yb","kzQI83","kMv6JI","kGuDYH","kcqcaj","k63SB2","kb6lSQ","kLWn49","kogj98","kjBf7l","kInvED","k3XXqK","kMeerF","periodDivider","kLZC3w","kPef9Z","kEafiO","periodHovered","periodSelected","kAXs8y","periodSelectedHovered","ring","selector","kZKoxP","kVAM5u","kaIpWk","ksu8eU","knGrYV","kzqmXN","selectorHovered","selectorInput","selectorInputFocused","selectorSelected","selectorSelectedHovered","isSelected","key","text","x","y","isFocusVisible","isHovered","isFocused","cancelLabel","className","confirmLabel","container","defaultMode","defaultOpen","description","enterTimeLabel","error","floatingLabel","isOpen","label","leadingIcon","onOpenChange","selectTimeLabel","variant","asDateTime","time","boxClassName","isDial","isFollowed","state","props","clockTrigger","isDisabled","onPress","ClockTrigger","t0","$","id","fieldLabel","t1","undefined","t2","Symbol","for","triggerGlyph","t3","dialLabel","turn","radius","polar","fieldName","names","Intl","DisplayNames","field","locale","name","of","charAt","toLocaleUpperCase","slice","initialTime","placeholderValue","held","value","labelsFor","part","twelveHour","steps","Array","from","length","_","step","digits","NumberFormat","minimumIntegerDigits","map","format","minute","hours","DateTimeFormat","hour","hour12","offset","partOf","type","formatToParts","Date","find","String","periodAmClassName","periodClassName","divider","PeriodHalf","children","radio","periodPmClassName","angle","Math","PI","sin","cos","TimePicker","t4","isReadOnly","t5","t6","validationBehavior","messages","ownOpen","setOwnOpen","open","t7","next","changeOpen","t8","openModal","T0","t9","t10","root","t11","isRequired","t12","t13","selectTime","t14","t15","input","t16","t17","t18","scrim","t19","cancel","t20","confirm","t21","enterTime","t22","granularity","t23","t24","hourCycle","t25","t26","TimePickerDialog","draft","setDraft","mode","setMode","setPart","headingId","labelContext","boxes","dragging","usesTwelveHours","switchMode","periods","isAfternoon","showsMinutes","shown","handle","box","current","querySelector","HTMLElement","focus","focusBox","event","type_0","target","getAttribute","followFocus","changeDraft","event_0","box_0","currentTarget","getBoundingClientRect","clientX","left","width","clientY","top","height","atan2","distance","hypot","set","round","inner","pick","event_1","pointerType","button","preventDefault","setPointerCapture","pointerId","startPicking","event_2","continuePicking","stopPicking","keys","afternoon","has","choosePeriod","setValue","segment","replaceAll","0","1","renderBox","labels","between","modalDialog","_temp","resolvedOptions","RACButton","RACTimeField","RACDateInput","RACDateSegment","Button"],"sources":["../../../src/components/time-picker/index.tsx"],"sourcesContent":["'use client';\n\nimport type { CalendarDateTime, ZonedDateTime } from '@internationalized/date';\nimport type { FocusEvent, PointerEvent, ReactElement, ReactNode, RefAttributes } from 'react';\nimport type { TimeFieldProps as RACTimeFieldProps, Selection, TimeFieldState, TimeValue } from 'react-aria-components';\nimport { getLocalTimeZone, Time, toCalendarDateTime, today } from '@internationalized/date';\nimport * as stylex from '@stylexjs/stylex';\nimport { useCallback, useContext, useId, useRef, useState } from 'react';\nimport { Heading, LabelContext, Modal, ModalOverlay, Button as RACButton, DateInput as RACDateInput, DateSegment as RACDateSegment, Dialog as RACDialog, TimeField as RACTimeField, TimeFieldStateContext, ToggleButton, ToggleButtonGroup, useLocale, useSlottedContext } from 'react-aria-components';\nimport type { FieldVariant } from '../../field';\nimport { FieldBox, FieldMessage, FieldSegments } from '../../field';\nimport { fieldStyles, invalidFrom, useFieldValidationBehavior } from '../../field/root';\nimport { ClockGlyph, KeyboardGlyph } from '../../glyphs';\nimport { useMessages } from '../../i18n';\nimport { renderSegment } from '../../segments';\nimport { segmentStyles } from '../../segments/styles';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport { overlay } from '../../styles/overlay';\nimport { picker, triggerClassName } from '../../styles/picker';\nimport { toggleGroupRenderer, useRadioItem } from '../../toggle-group';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii, shadows, sizing, spacing, stateLayerOpacity, typography } from '../../tokens/design.tokens.stylex';\nimport Button from '../button';\nimport IconButton from '../icon-button';\n\n// The time pickers page's picker: TimeField's segments, with a clock button\n// in the field's trailing slot that opens the page's modal over a scrim. A\n// time is typed into the field or picked in the modal, and the modal's OK is\n// what writes a picked time back.\n//\n// **Modal at every width.** The page has no docked time picker, so unlike\n// DatePicker nothing here changes at a breakpoint: the container is centred\n// over the scrim on a phone and on a desktop alike.\n//\n// **The modal is the page's vertical layout, in both of its variants.** The\n// dial: a label-medium headline on surface variant, then the time selector —\n// an hour and a minute box, 96 by 80dp at the small corner in display-large,\n// on surface container highest and on primary container once selected, with\n// 24dp for the colon between — and beside them the period selector, 52 by\n// 80dp, outlined, its chosen half on tertiary container. Under them, 36dp\n// down, the 256dp dial on surface container highest: labels in body-large,\n// the 48dp handle and 2dp hand in primary, an 8dp centre, and the label under\n// the handle in on primary. The input variant drops the dial and draws the\n// boxes as text fields, 96 by 72dp in display-medium, the focused one on\n// primary container with a 2dp primary outline, each named underneath in\n// body-small, and the period selector at the same 72dp. Both put the\n// keyboard or clock toggle at the actions' start and the text buttons at\n// their end, inside a container on surface container high at the\n// extra-large corner, level 3, with 24dp of padding.\n//\n// **The boxes are a TimeField of their own**, React Aria's, inside the\n// modal: its hour and minute segments drawn as the page's boxes. That makes\n// them spinbuttons with React Aria's arrow keys, typing, digits and names in\n// the reader's locale, and it is the same accessible model in both variants,\n// which differ in how the boxes are drawn rather than in what they are. The\n// day period stays a segment for React Aria's sake but is hidden, and the\n// period selector beside the boxes takes its place, as a radio group of the\n// locale's two words for it — React Aria's toggle group, with the radio\n// group's keys and single Tab stop SegmentedButton takes from\n// src/toggle-group, so an arrow chooses the period it moves to. The dial is\n// a pointer affordance over the spinbuttons and is hidden from assistive\n// technology: everything it sets, the boxes set too.\n//\n// **The dial does not mirror.** A clock face is the same in either writing\n// direction, so it is drawn and read in screen coordinates, three o'clock on\n// the right. The row above it follows the field's own order, as TimeField's\n// segments do, so in a right-to-left locale the period selector sits on the\n// left.\n//\n// **Every digit is a lining figure.** The boxes' display type is the brand\n// face, which falls back to Georgia where it is not loaded, and Georgia's\n// figures are old-style by default: a zero at x-height and a nine below the\n// baseline, so `09` read as `o9` at 57px. The boxes ask for lining figures,\n// which stand on the baseline at cap height in any face that has both, and\n// so do the dial's labels and the period selector, whose plain family a\n// theme can set to such a face too. The boxes and the selector keep\n// tabular ones, so a digit changing does not shift the rest.\n//\n// Twenty-four hours put the day's second half on an inner ring, 12 at its top\n// and 00 at the outer ring's, with no period selector, and whether there is\n// one at all is the reader's locale or `hourCycle`, as it is in TimeField.\n\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// The dial's geometry, in the units of its viewBox, which it draws at the\n// page's 256dp: the radius of the outer and inner rings of labels and of the\n// handle that sits on them. The inner ring sits far enough in that a handle on\n// it clears the outer ring's labels.\nconst DIAL = 256;\nconst CENTRE = DIAL / 2;\nconst OUTER_RING = 101;\nconst INNER_RING = 64;\nconst HANDLE = 24;\n\n// The period selector's selection, hoisted so each is one stable array\n// rather than a fresh one per render.\nconst MORNING = ['am'];\nconst AFTERNOON = ['pm'];\n\n// React Aria's literal segments carry the locale's bidirectional marks beside\n// the punctuation, so a literal is drawn only when something else is left.\nconst INVISIBLE = /[\\s؜‎‏‪-‮⁦-⁩]/gu;\nconst scaleIn = \"xnirehn-B\";\nconst styles = {\n centre: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kjj79g: \"xl56j7k\",\n kmVPX3: \"x1a7rqcl\",\n $$css: true\n },\n dialog: {\n kmVPX3: \"x1apw6a7\",\n $$css: true\n },\n periodButton: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xjbqb8w\",\n kMzoRj: \"xc342km\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1w5n3ug\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x78zum5\",\n kCS8Yb: \"x1r8uery\",\n kzQI83: \"x1iyjqo2\",\n kMv6JI: \"x46eyla\",\n kGuDYH: \"x5ehqhr\",\n kcqcaj: \"x1j4x3al\",\n k63SB2: \"xrf6cl6\",\n kjj79g: \"xl56j7k\",\n kb6lSQ: \"x1g135zh\",\n kLWn49: \"x1ggk5va\",\n kogj98: \"x1ghz6dp\",\n kjBf7l: \"xat36cu\",\n kInvED: \"x1v57pqu\",\n k3XXqK: \"x1t137rt\",\n kMeerF: \"x1s780dp\",\n kmVPX3: \"x1717udv\",\n $$css: true\n },\n periodDivider: {\n kLZC3w: \"xrre44y\",\n kPef9Z: \"x13fuv20\",\n kEafiO: \"x178xt8z\",\n $$css: true\n },\n periodHovered: {\n kWkggS: \"x14noynh\",\n $$css: true\n },\n periodSelected: {\n kWkggS: \"xs6yvni x1jzqe4\",\n kMwMTN: \"x3cbcwg x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n periodSelectedHovered: {\n kWkggS: \"x5nnyxq x1jzqe4\",\n $$css: true\n },\n ring: {\n k3XXqK: \"xaatb59\",\n $$css: true\n },\n selector: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"x1rrhr5q\",\n kZKoxP: \"xwzfr38\",\n kVAM5u: \"x1ylmb6m\",\n kaIpWk: \"x1xdvaa9\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"xc342km x13rsnn2\",\n kB7OPa: \"x9f619\",\n knGrYV: \"xbuiw85\",\n kMwMTN: \"x139gbkf\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x3nfvp2\",\n kMv6JI: \"xjaampf\",\n kGuDYH: \"xuyiek4\",\n kcqcaj: \"x1j4x3al\",\n k63SB2: \"x1n2oj23\",\n kzqmXN: \"xszbqgh\",\n kjj79g: \"xl56j7k\",\n kb6lSQ: \"x1hxa6v5\",\n kLWn49: \"x1iwmiir\",\n kjBf7l: \"xat36cu\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"x1t137rt\",\n kMeerF: \"x1s780dp\",\n $$css: true\n },\n selectorHovered: {\n kWkggS: \"xpae8dx\",\n $$css: true\n },\n selectorInput: {\n kZKoxP: \"xfl6q2h\",\n kkrTdU: \"x1ed109x\",\n kMv6JI: \"x1gi70vc\",\n kGuDYH: \"xlzzeuu\",\n k63SB2: \"xh9quta\",\n kb6lSQ: \"x148mp24\",\n kLWn49: \"xs5hucj\",\n $$css: true\n },\n selectorInputFocused: {\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xaatb59\",\n $$css: true\n },\n selectorSelected: {\n kWkggS: \"xp89om9 x1jzqe4\",\n kMwMTN: \"xscdzaa x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selectorSelectedHovered: {\n kWkggS: \"xq1oky0 x1jzqe4\",\n $$css: true\n }\n};\n\n// One label on the dial, placed on its ring.\ntype DialLabel = {\n isSelected: boolean;\n key: string;\n text: string;\n x: number;\n y: number;\n};\n\n// The state React Aria hands a half of the period selector's className.\ntype PeriodState = {\n isFocusVisible: boolean;\n isHovered: boolean;\n isSelected: boolean;\n};\n\n// What React Aria hands the input for each part of the time. Taken off the\n// component, for the reason src/segments gives.\ntype Segment = Parameters<NonNullable<Parameters<typeof RACDateInput>[0]['children']>>[0];\n\n// The state React Aria hands a segment's className.\ntype SegmentState = {\n isFocused: boolean;\n isFocusVisible: boolean;\n isHovered: boolean;\n};\n\n// The parts of a time the dial and the boxes set.\ntype TimePart = 'hour' | 'minute';\n\n/** Which of the time pickers page's two variants the modal shows. */\ntype TimePickerMode = 'dial' | 'input';\ntype TimePickerProps<T extends TimeValue = TimeValue> = Omit<RACTimeFieldProps<T>, 'children' | 'className' | 'style'> & {\n /**\n * What the modal's dismissing action says. Left out, it is the word for\n * it in the I18nProvider's locale — \"Cancel\" in English.\n */\n cancelLabel?: string;\n /** A function may compute the class from the field's render state. */\n className?: RACTimeFieldProps<T>['className'];\n /**\n * What the modal's confirming action says. Left out, it is the word for\n * it in the I18nProvider's locale — \"OK\" in English.\n */\n confirmLabel?: string;\n /**\n * Where to portal the modal and its scrim. Defaults to the container of the\n * `ThemeScope` around it, which keeps the modal on that scope's tokens, or to\n * the end of `<body>` where there is none. A subtree themed through the\n * `themeScope` class has no container of its own, so point this inside it, or\n * the modal renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * Which variant the modal opens on: the dial, or the boxes as text fields\n * to type into. The button at the modal's start switches between them.\n * @default 'dial'\n */\n defaultMode?: TimePickerMode;\n /** Whether the modal starts open, when it keeps its own state. */\n defaultOpen?: boolean;\n /** Supporting text under the field. */\n description?: string;\n /**\n * The input variant's headline, which also names the button that switches\n * the dial to it. Left out, it is the I18nProvider's locale's — \"Enter\n * time\" in English.\n */\n enterTimeLabel?: string;\n /**\n * The message shown instead of the description, which also marks the\n * field invalid.\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 * Whether the label floats into the box's top once the field holds a\n * value, rather than sitting above it.\n * @default true\n */\n floatingLabel?: boolean;\n /** Whether the modal is open, when the call site holds the state. */\n isOpen?: boolean;\n /** What the field is for. Always rendered; never a placeholder. */\n label: string;\n /**\n * An icon at the box's leading end, in the page's 24dp size. An icon drawn\n * in `em` takes that size from the slot.\n */\n leadingIcon?: ReactNode;\n /** Called with the modal's new state when it opens or closes. */\n onOpenChange?: (isOpen: boolean) => void;\n /**\n * The dial's headline, which also names the clock button that opens the\n * modal, followed by the field's label, and the button that switches the\n * input variant back. Left out, it is the I18nProvider's locale's —\n * \"Select time\" in English.\n */\n selectTimeLabel?: string;\n /** A function may compute the style from the field's render state. */\n style?: RACTimeFieldProps<T>['style'];\n /**\n * Which of the text fields page's two boxes to draw.\n * @default 'filled'\n */\n variant?: FieldVariant;\n};\n\n/**\n * A picked time as the field's state takes it, which is always a date and\n * time: React Aria puts a bare time on today and takes the date off again on\n * the way out.\n */\nfunction asDateTime(time: TimeValue): CalendarDateTime | ZonedDateTime {\n return 'day' in time ? time : toCalendarDateTime(today(getLocalTimeZone()), time);\n}\n\n// An hour or a minute box's classes, from React Aria's render state. On the\n// dial the selected box is the one the dial follows; typed into, it is the\n// one with focus, which is what the page's input variant draws as focused.\nfunction boxClassName(isDial: boolean, isFollowed: boolean) {\n return (state: SegmentState) => {\n const isSelected = isDial ? isFollowed : state.isFocused;\n return stylex.props(styles.selector, !isDial && styles.selectorInput, state.isHovered && styles.selectorHovered, isSelected && styles.selectorSelected, isSelected && state.isHovered && styles.selectorSelectedHovered, isDial && state.isFocusVisible && styles.ring, !isDial && state.isFocused && styles.selectorInputFocused).className ?? '';\n };\n}\n\n// Built by a call rather than written inline at the prop, which is what\n// react-perf's no-jsx-as-prop is after — the same reason DatePicker builds\n// its trigger this way.\nfunction clockTrigger(isDisabled: boolean, isOpen: boolean, label: string, onPress: () => void) {\n return <ClockTrigger isDisabled={isDisabled} isOpen={isOpen} label={label} onPress={onPress} />;\n}\n\n// The clock button in the field's trailing slot. It is named by its own\n// words followed by the field's label, which is how React Aria names\n// DatePicker's calendar button, so two pickers on a form are told apart.\nfunction ClockTrigger({\n isDisabled,\n isOpen,\n label,\n onPress\n}: {\n isDisabled: boolean;\n isOpen: boolean;\n label: string;\n onPress: () => void;\n}) {\n const id = useId();\n const fieldLabel = useSlottedContext(LabelContext);\n return <RACButton aria-expanded={isOpen} aria-haspopup=\"dialog\" aria-label={label} aria-labelledby={fieldLabel?.id === undefined ? undefined : `${id} ${fieldLabel.id}`} className={triggerClassName} id={id} isDisabled={isDisabled} onPress={onPress}>\n <ClockGlyph {...stylex.props(picker.triggerGlyph)} />\n </RACButton>;\n}\n\n/** One label, placed a fraction of a turn round a ring. */\nfunction dialLabel(key: string, text: string, isSelected: boolean, turn: number, radius: number): DialLabel {\n const {\n x,\n y\n } = polar(turn, radius);\n return {\n isSelected,\n key,\n text,\n x,\n y\n };\n}\n\n/** A field's name as the locale writes it, opening with a capital. */\nfunction fieldName(names: Intl.DisplayNames, field: string, locale: string) {\n const name = names.of(field) ?? field;\n return name.charAt(0).toLocaleUpperCase(locale) + name.slice(1);\n}\n\n/**\n * The time the modal opens on: the field's own, else its placeholder, else\n * midnight. A date and time keeps its date, so the field gets back what it\n * holds.\n */\nfunction initialTime(field: null | TimeFieldState, placeholderValue: TimeValue | undefined): TimeValue {\n const held = field?.value;\n if (held !== null && held !== undefined && 'hour' in held) {\n return held;\n }\n return placeholderValue ?? new Time();\n}\n\n/** The labels the dial draws for one part, in the reader's digits. */\nfunction labelsFor(part: TimePart, time: TimeValue, locale: string, twelveHour: boolean): DialLabel[] {\n const steps = Array.from({\n length: 12\n }, (_, step) => step);\n if (part === 'minute') {\n const digits = new Intl.NumberFormat(locale, {\n minimumIntegerDigits: 2\n });\n return steps.map(step => dialLabel(`m${step}`, digits.format(step * 5), time.minute === step * 5, step / 12, OUTER_RING));\n }\n const hours = new Intl.DateTimeFormat(locale, {\n hour: 'numeric',\n hour12: twelveHour\n });\n if (twelveHour) {\n const offset = time.hour >= 12 ? 12 : 0;\n return steps.map(step => dialLabel(`h${step}`, partOf(hours, step + offset, 'hour'), time.hour % 12 === step, step / 12, OUTER_RING));\n }\n return [...steps.map(step => dialLabel(`h${step}`, partOf(hours, step, 'hour'), time.hour === step, step / 12, OUTER_RING)), ...steps.map(step => dialLabel(`h${step + 12}`, partOf(hours, step + 12, 'hour'), time.hour === step + 12, step / 12, INNER_RING))];\n}\n\n/** The part of a formatted time a formatter writes for one hour of the day. */\nfunction partOf(format: Intl.DateTimeFormat, hour: number, type: 'dayPeriod' | 'hour') {\n return format.formatToParts(new Date(2000, 0, 1, hour)).find(part => part.type === type)?.value ?? String(hour);\n}\n\n// The period selector's morning half, with no rule above it.\nfunction periodAmClassName(state: PeriodState) {\n return periodClassName(state, false);\n}\n\n// A half of the period selector, from React Aria's render state. The second\n// half draws the rule between the two.\nfunction periodClassName(state: PeriodState, divider: boolean) {\n return stylex.props(styles.periodButton, divider && styles.periodDivider, state.isHovered && styles.periodHovered, state.isSelected && styles.periodSelected, state.isSelected && state.isHovered && styles.periodSelectedHovered, state.isFocusVisible && styles.ring).className ?? '';\n}\n\n/**\n * A half of the period selector, and a radio of its group: its key written\n * where the group's arrows read it, and out of the Tab order unless it is\n * the chosen half. A component of its own because that is read from the\n * group's state, which only its children reach.\n */\nfunction PeriodHalf({\n children,\n className,\n id\n}: {\n children: string;\n className: (state: PeriodState) => string;\n id: 'am' | 'pm';\n}) {\n const radio = useRadioItem(id);\n return <ToggleButton {...radio} className={className} id={id}>\n {children}\n </ToggleButton>;\n}\n\n// Its afternoon half, under the rule between the two.\nfunction periodPmClassName(state: PeriodState) {\n return periodClassName(state, true);\n}\n\n/** Where a fraction of a turn clockwise from twelve lands on a ring. */\nfunction polar(turn: number, radius: number) {\n const angle = turn * 2 * Math.PI;\n return {\n x: CENTRE + radius * Math.sin(angle),\n y: CENTRE - radius * Math.cos(angle)\n };\n}\n\n/**\n * A time typed into a field, or picked in a modal behind the clock button\n * at the field's end — on a dial, or typed into the modal's larger boxes.\n * The value is React Aria's — pass `value` with `onChange` to control it,\n * or `defaultValue` — as a `Time` from this package's `./date` subpath.\n *\n * ```tsx\n * import { Time } from '@kanso-labs/kanso-ui/date'\n *\n * <TimePicker defaultValue={new Time(9, 30)} label=\"Label\" />\n * ```\n *\n * The field is `TimeField`'s, so `granularity`, `hourCycle`, `minValue` and\n * `maxValue` behave as they do there. The modal sets hours and minutes and\n * keeps the seconds a value already has; a time it writes back is checked\n * against the bounds as a typed one is. Whether it shows a twelve or\n * twenty-four hour clock is the reader's locale, through React Aria's\n * `I18nProvider`, unless `hourCycle` says otherwise.\n *\n * The call site's `className` and `style` land on the field as a whole,\n * which is the element a layout positions.\n */\nfunction TimePicker<T extends TimeValue>({\n cancelLabel,\n confirmLabel,\n container,\n defaultMode = 'dial',\n defaultOpen = false,\n description,\n enterTimeLabel,\n error,\n floatingLabel = true,\n isDisabled = false,\n isOpen,\n isReadOnly = false,\n label,\n leadingIcon,\n onOpenChange,\n selectTimeLabel,\n variant = 'filled',\n ...props\n}: RefAttributes<HTMLDivElement> & TimePickerProps<T>) {\n const validationBehavior = useFieldValidationBehavior();\n const messages = useMessages();\n const [ownOpen, setOwnOpen] = useState(defaultOpen);\n const open = isOpen ?? ownOpen;\n const changeOpen = useCallback((next: boolean) => {\n if (isOpen === undefined) {\n setOwnOpen(next);\n }\n onOpenChange?.(next);\n }, [isOpen, onOpenChange]);\n const openModal = useCallback(() => {\n changeOpen(true);\n }, [changeOpen]);\n return <RACTimeField<T> isDisabled={isDisabled} isInvalid={invalidFrom(error)} isReadOnly={isReadOnly} validationBehavior={validationBehavior} {...props} {...mergeStatefulStyles(stylex.props(fieldStyles.root), props)}>\n <FieldBox floatingLabel={floatingLabel}\n // Always populated, for the reason TimeField's own comment gives.\n isPopulated isRequired={props.isRequired} label={label} leading={leadingIcon}\n // In the chrome's trailing slot, where DatePicker puts its calendar\n // button and for the same reasons.\n trailing={clockTrigger(isDisabled || isReadOnly, open, selectTimeLabel ?? messages.selectTime, openModal)} variant={variant}>\n <FieldSegments>\n <RACDateInput {...stylex.props(segmentStyles.input)}>\n {renderSegment}\n </RACDateInput>\n </FieldSegments>\n </FieldBox>\n <FieldMessage description={description} error={error} />\n <ModalOverlay isDismissable isOpen={open} onOpenChange={changeOpen}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container} {...stylex.props(overlay.scrim, styles.centre)}>\n <Modal className=\"x1n1nwrg x1u6grsq xbhiib0 x16dv9tl xvkjz1l x1w1tqly x19pkqky xx61lck x13rsnn2 x1udv5rz x9f619 x139gbkf xi55695 xmz0i5r x193iq5w xysyzu8\">\n <TimePickerDialog cancelLabel={cancelLabel ?? messages.cancel} confirmLabel={confirmLabel ?? messages.confirm} defaultMode={defaultMode} enterTimeLabel={enterTimeLabel ?? messages.enterTime} fieldLabel={label} granularity={props.granularity === 'hour' ? 'hour' : 'minute'} hourCycle={props.hourCycle} placeholderValue={props.placeholderValue} selectTimeLabel={selectTimeLabel ?? messages.selectTime} />\n </Modal>\n </ModalOverlay>\n </RACTimeField>;\n}\n\n/**\n * The modal's content, mounted each time it opens: the time it was opened\n * with is its draft until OK writes the draft into the field, or the modal\n * closes without it.\n */\nfunction TimePickerDialog({\n cancelLabel,\n confirmLabel,\n defaultMode,\n enterTimeLabel,\n fieldLabel,\n granularity,\n hourCycle,\n placeholderValue,\n selectTimeLabel\n}: {\n cancelLabel: string;\n confirmLabel: string;\n defaultMode: TimePickerMode;\n enterTimeLabel: string;\n fieldLabel: string;\n granularity: 'hour' | 'minute';\n hourCycle: 12 | 24 | undefined;\n placeholderValue: TimeValue | undefined;\n selectTimeLabel: string;\n}) {\n const {\n locale\n } = useLocale();\n // The outer field's state: the modal reads the time from it and writes the\n // picked one back through it, so the field stays the one owner of its\n // value, controlled or not, and its onChange is React Aria's own.\n const field = useContext(TimeFieldStateContext);\n const [draft, setDraft] = useState(() => initialTime(field, placeholderValue));\n const [mode, setMode] = useState(defaultMode);\n const [part, setPart] = useState<TimePart>('hour');\n const headingId = useId();\n const labelContext = useSlottedContext(LabelContext);\n const boxes = useRef<HTMLDivElement>(null);\n const dragging = useRef(false);\n const twelveHour = usesTwelveHours(locale, hourCycle);\n const names = new Intl.DisplayNames(locale, {\n type: 'dateTimeField'\n });\n const periods = new Intl.DateTimeFormat(locale, {\n hour: 'numeric',\n hour12: true\n });\n const isAfternoon = draft.hour >= 12;\n const isDial = mode === 'dial';\n const showsMinutes = granularity === 'minute';\n const shown: TimePart = showsMinutes ? part : 'hour';\n const handle = shown === 'minute' ? polar(draft.minute / 60, OUTER_RING) : polar(draft.hour % 12 / 12, !twelveHour && draft.hour >= 12 ? INNER_RING : OUTER_RING);\n const focusBox = useCallback((type: TimePart) => {\n const box = boxes.current?.querySelector(`[data-type=\"${type}\"]`);\n if (box instanceof HTMLElement) {\n box.focus();\n }\n }, []);\n\n // Which box the dial follows, taken from the box that has focus — a press\n // on a box, a Tab into it, or React Aria moving on once an hour is typed.\n const followFocus = useCallback((event: FocusEvent<HTMLDivElement>) => {\n const type = event.target.getAttribute('data-type');\n if (type === 'hour' || type === 'minute') {\n setPart(type);\n }\n }, []);\n const changeDraft = useCallback((next: null | TimeValue) => {\n if (next !== null) {\n setDraft(next);\n }\n }, []);\n const pick = useCallback((event: PointerEvent<SVGSVGElement>) => {\n const box = event.currentTarget.getBoundingClientRect();\n const x = event.clientX - box.left - box.width / 2;\n const y = event.clientY - box.top - box.height / 2;\n const turn = (Math.atan2(x, -y) / (2 * Math.PI) + 1) % 1;\n const distance = Math.hypot(x, y) * DIAL / box.width;\n if (shown === 'minute') {\n setDraft(draft.set({\n minute: Math.round(turn * 60) % 60\n }));\n return;\n }\n const step = Math.round(turn * 12) % 12;\n if (twelveHour) {\n setDraft(draft.set({\n hour: step + (isAfternoon ? 12 : 0)\n }));\n return;\n }\n const inner = distance < (OUTER_RING + INNER_RING) / 2;\n setDraft(draft.set({\n hour: inner ? step + 12 : step\n }));\n }, [draft, isAfternoon, shown, twelveHour]);\n const startPicking = useCallback((event: PointerEvent<SVGSVGElement>) => {\n if (event.pointerType === 'mouse' && event.button !== 0) {\n return;\n }\n // Keeps focus where it is: the dial is not a focus stop, and a press on\n // it would otherwise blur the box it is setting.\n event.preventDefault();\n try {\n event.currentTarget.setPointerCapture(event.pointerId);\n } catch {\n // A pointer the browser is not tracking has no capture to take — a\n // synthetic event in a test, where the moves land on the dial anyway.\n }\n dragging.current = true;\n pick(event);\n }, [pick]);\n const continuePicking = useCallback((event: PointerEvent<SVGSVGElement>) => {\n if (dragging.current) {\n pick(event);\n }\n }, [pick]);\n\n // An hour picked on the dial moves on to the minutes, as the page does.\n const stopPicking = useCallback(() => {\n if (!dragging.current) {\n return;\n }\n dragging.current = false;\n if (shown === 'hour' && showsMinutes) {\n setPart('minute');\n focusBox('minute');\n }\n }, [focusBox, shown, showsMinutes]);\n const switchMode = useCallback(() => {\n setMode(isDial ? 'input' : 'dial');\n focusBox(part);\n }, [focusBox, isDial, part]);\n const choosePeriod = useCallback((keys: Selection) => {\n const afternoon = keys !== 'all' && keys.has('pm');\n if (afternoon !== isAfternoon) {\n setDraft(draft.set({\n hour: draft.hour % 12 + (afternoon ? 12 : 0)\n }));\n }\n }, [draft, isAfternoon]);\n\n // OK writes the draft through the field's state, and its `slot` closes the\n // modal after.\n const confirm = useCallback(() => {\n field?.setValue(asDateTime(draft));\n }, [draft, field]);\n const renderBox = useCallback((segment: Segment): ReactElement => {\n if (segment.type === 'hour' || segment.type === 'minute') {\n return <RACDateSegment className={boxClassName(isDial, shown === segment.type)} segment={segment} />;\n }\n if (segment.type === 'literal' && segment.text.replaceAll(INVISIBLE, '') !== '') {\n return <RACDateSegment {...{\n 0: {\n className: \"x6s0dn4 xwzfr38 x9f619 x139gbkf x3nfvp2 xjaampf xuyiek4 x1n2oj23 xvy4d1p xl56j7k x1iwmiir\"\n },\n 1: {\n className: \"x6s0dn4 x9f619 x139gbkf x3nfvp2 xvy4d1p xl56j7k xfl6q2h x1gi70vc xlzzeuu xh9quta xs5hucj\"\n }\n }[!!!isDial << 0]} segment={segment} />;\n }\n return <RACDateSegment hidden segment={segment} />;\n }, [isDial, shown]);\n const labels = labelsFor(shown, draft, locale, twelveHour);\n const between = shown === 'minute' && draft.minute % 5 !== 0;\n return <RACDialog aria-labelledby={labelContext?.id === undefined ? headingId : `${headingId} ${labelContext.id}`} {...stylex.props(overlay.modalDialog, styles.dialog)}>\n <Heading id={headingId} level={2} className=\"x9f619 x1w5n3ug xp6n8n2 xkucv67 x14hhc5u x12utw95 xvzb9hk x1ghz6dp xieb3on\">\n {isDial ? selectTimeLabel : enterTimeLabel}\n </Heading>\n <div className=\"x1cy8zhl x9f619 x78zum5 x1gka490 xl56j7k\">\n <div onFocus={followFocus} ref={boxes}>\n <RACTimeField aria-label={fieldLabel}\n // The modal opens on the hour, the box it draws as selected, so\n // the arrows set it straight away. React Aria's dialog focuses\n // itself as it opens unless focus is already inside it, and the\n // field takes focus first: its effect runs before the dialog's,\n // which is its ancestor. The first segment it focuses is the\n // hour in every locale, since the period segment before it in\n // some is hidden.\n // oxlint-disable-next-line jsx-a11y/no-autofocus -- a modal opened to set a time starts on the hour it draws as selected\n autoFocus granularity={granularity} hideTimeZone hourCycle={hourCycle} onChange={changeDraft} shouldForceLeadingZeros validationBehavior=\"aria\" value={draft}>\n <RACDateInput className=\"x6s0dn4 x9f619 x78zum5 x1t137rt\">\n {renderBox}\n </RACDateInput>\n </RACTimeField>\n {isDial ? null : <div aria-hidden=\"true\" className=\"x9f619 x1w5n3ug x78zum5 x1yicsit x1b35g6e x9d6959 x1665zp3 xwth0xh xybisxh x7suny0\">\n <span className=\"x9f619 xszbqgh\">\n {fieldName(names, 'hour', locale)}\n </span>\n {showsMinutes ? <span className=\"x9f619 xszbqgh\">\n {fieldName(names, 'minute', locale)}\n </span> : null}\n </div>}\n </div>\n {twelveHour ? <ToggleButtonGroup aria-label={names.of('dayPeriod')} disallowEmptySelection onSelectionChange={choosePeriod} orientation=\"vertical\" render={toggleGroupRenderer(undefined, true)} selectedKeys={isAfternoon ? AFTERNOON : MORNING} selectionMode=\"single\" {...{\n 0: {\n className: \"xwzfr38 x1fwvt7v x1xdvaa9 x1y0btm7 xmkeg23 x9f619 x78zum5 xdt5ytf x2lah0s xvni27 xb3r6kr\"\n },\n 1: {\n className: \"x1fwvt7v x1xdvaa9 x1y0btm7 xmkeg23 x9f619 x78zum5 xdt5ytf x2lah0s xvni27 xb3r6kr xfl6q2h\"\n }\n }[!!!isDial << 0]}>\n <PeriodHalf className={periodAmClassName} id=\"am\">\n {partOf(periods, 9, 'dayPeriod')}\n </PeriodHalf>\n <PeriodHalf className={periodPmClassName} id=\"pm\">\n {partOf(periods, 21, 'dayPeriod')}\n </PeriodHalf>\n </ToggleButtonGroup> : null}\n </div>\n {isDial ? <svg aria-hidden=\"true\" data-dial={shown} onPointerCancel={stopPicking} onPointerDown={startPicking} onPointerMove={continuePicking} onPointerUp={stopPicking} viewBox={`0 0 ${DIAL} ${DIAL}`} className=\"xrlp1an x9f619 x1ypdohk x1lliihq x2lah0s x1t9vceh xseo6mj xvueqy4 x5ve5x3 x87ps6o\">\n <circle cx={CENTRE} cy={CENTRE} r={CENTRE - 1} className=\"x1a930ss x1h8bevw xeutv01 x8jos32\" />\n <line x1={CENTRE} x2={handle.x} y1={CENTRE} y2={handle.y} className=\"xrr0osq x1rqz208 x1i9vjva xbabvq0 x8pzrqk\" />\n <circle cx={CENTRE} cy={CENTRE} r={4} className=\"xrr0osq x1rqz208 x1i9vjva xbabvq0 x8pzrqk\" />\n <circle cx={handle.x} cy={handle.y} data-handle=\"\" r={HANDLE} className=\"xrr0osq x1rqz208 x1i9vjva xbabvq0 x8pzrqk\" />\n {between ? <circle cx={handle.x} cy={handle.y} r={2} className=\"xvlh3h9 x1bpb6vw\" /> : null}\n {labels.map(label => <text dominantBaseline=\"central\" key={label.key} textAnchor=\"middle\" x={label.x} y={label.y} {...{\n 0: {\n className: \"xti7fmr xmw301f x16svsjw x1848etk x17gc79u x1c52epr x1qn8t5l\"\n },\n 1: {\n className: \"x16svsjw x1848etk x17gc79u x1c52epr x1qn8t5l xvlh3h9 x1bpb6vw\"\n }\n }[!!label.isSelected << 0]}>\n {label.text}\n </text>)}\n </svg> : null}\n <div className=\"x6s0dn4 x9f619 x78zum5 x126z3so x1qughib x1yhnu8z\">\n <IconButton aria-label={isDial ? enterTimeLabel : selectTimeLabel} onPress={switchMode}>\n {isDial ? <KeyboardGlyph className=\"xlzyvqe x1lliihq x15vhz18\" /> : <ClockGlyph className=\"xlzyvqe x1lliihq x15vhz18\" />}\n </IconButton>\n <div className=\"x78zum5 x126z3so\">\n <Button slot=\"close\" variant=\"text\">\n {cancelLabel}\n </Button>\n <Button onPress={confirm} slot=\"close\" variant=\"text\">\n {confirmLabel}\n </Button>\n </div>\n </div>\n </RACDialog>;\n}\n\n/**\n * Whether the reader's clock has twelve hours. `hourCycle` decides when it\n * is given, as it does for React Aria's segments; otherwise the locale does.\n */\nfunction usesTwelveHours(locale: string, hourCycle: 12 | 24 | undefined) {\n if (hourCycle !== undefined) {\n return hourCycle === 12;\n }\n return new Intl.DateTimeFormat(locale, {\n hour: 'numeric'\n }).resol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