@kanso-labs/kanso-ui 0.45.28 → 0.45.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calendar/index.js +4 -4
- package/dist/calendar/index.js.map +1 -1
- package/dist/components/app-bar/index.js +1 -0
- package/dist/components/app-bar/index.js.map +1 -1
- package/dist/components/autocomplete/index.d.ts +6 -6
- package/dist/components/autocomplete/index.js +4 -4
- package/dist/components/autocomplete/index.js.map +1 -1
- package/dist/components/breadcrumbs/index.d.ts +5 -5
- package/dist/components/breadcrumbs/index.js +5 -5
- package/dist/components/breadcrumbs/index.js.map +1 -1
- package/dist/components/button/index.d.ts +3 -3
- package/dist/components/button/index.js +2 -2
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/calendar/index.d.ts +7 -7
- package/dist/components/calendar/index.js +4 -4
- package/dist/components/calendar/index.js.map +1 -1
- package/dist/components/checkbox-group/index.d.ts +5 -5
- package/dist/components/checkbox-group/index.js +4 -4
- package/dist/components/checkbox-group/index.js.map +1 -1
- package/dist/components/color-area/index.d.ts +4 -4
- package/dist/components/color-area/index.js +4 -4
- package/dist/components/color-area/index.js.map +1 -1
- package/dist/components/color-field/index.d.ts +7 -7
- package/dist/components/color-field/index.js +4 -4
- package/dist/components/color-field/index.js.map +1 -1
- package/dist/components/color-picker/index.d.ts +4 -4
- package/dist/components/color-picker/index.js +4 -4
- package/dist/components/color-picker/index.js.map +1 -1
- package/dist/components/color-slider/index.d.ts +6 -6
- package/dist/components/color-slider/index.js +4 -4
- package/dist/components/color-slider/index.js.map +1 -1
- package/dist/components/color-swatch/index.d.ts +4 -4
- package/dist/components/color-swatch/index.js +4 -4
- package/dist/components/color-swatch/index.js.map +1 -1
- package/dist/components/color-swatch-picker/index.d.ts +12 -12
- package/dist/components/color-swatch-picker/index.js +7 -7
- package/dist/components/color-swatch-picker/index.js.map +1 -1
- package/dist/components/color-wheel/index.d.ts +6 -6
- package/dist/components/color-wheel/index.js +4 -4
- package/dist/components/color-wheel/index.js.map +1 -1
- package/dist/components/combo-box/index.d.ts +5 -5
- package/dist/components/combo-box/index.js +4 -4
- package/dist/components/combo-box/index.js.map +1 -1
- package/dist/components/date-field/index.d.ts +6 -6
- package/dist/components/date-field/index.js +4 -4
- package/dist/components/date-field/index.js.map +1 -1
- package/dist/components/date-picker/index.d.ts +6 -6
- package/dist/components/date-picker/index.js +4 -4
- package/dist/components/date-picker/index.js.map +1 -1
- package/dist/components/date-range-picker/index.d.ts +6 -6
- package/dist/components/date-range-picker/index.js +4 -4
- package/dist/components/date-range-picker/index.js.map +1 -1
- package/dist/components/dialog/index.d.ts +6 -6
- package/dist/components/dialog/index.js +9 -9
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/disclosure/index.d.ts +10 -10
- package/dist/components/disclosure/index.js +8 -8
- package/dist/components/disclosure/index.js.map +1 -1
- package/dist/components/disclosure-group/index.d.ts +4 -4
- package/dist/components/disclosure-group/index.js +4 -4
- package/dist/components/disclosure-group/index.js.map +1 -1
- package/dist/components/drop-zone/index.d.ts +8 -8
- package/dist/components/drop-zone/index.js +6 -6
- package/dist/components/drop-zone/index.js.map +1 -1
- package/dist/components/form/index.d.ts +5 -5
- package/dist/components/form/index.js +4 -4
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/link/index.d.ts +6 -6
- package/dist/components/link/index.js +4 -4
- package/dist/components/link/index.js.map +1 -1
- package/dist/components/list-box/index.d.ts +18 -18
- package/dist/components/list-box/index.js +11 -11
- package/dist/components/list-box/index.js.map +1 -1
- package/dist/components/menu/index.d.ts +16 -16
- package/dist/components/menu/index.js +14 -14
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/meter/index.d.ts +6 -6
- package/dist/components/meter/index.js +4 -4
- package/dist/components/meter/index.js.map +1 -1
- package/dist/components/navigation-tree/index.d.ts +15 -15
- package/dist/components/navigation-tree/index.js +13 -13
- package/dist/components/navigation-tree/index.js.map +1 -1
- package/dist/components/number-field/index.d.ts +5 -5
- package/dist/components/number-field/index.js +4 -4
- package/dist/components/number-field/index.js.map +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/index.js +12 -12
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/radio-group/index.d.ts +5 -5
- package/dist/components/radio-group/index.js +4 -4
- package/dist/components/radio-group/index.js.map +1 -1
- package/dist/components/range-calendar/index.d.ts +7 -7
- package/dist/components/range-calendar/index.js +4 -4
- package/dist/components/range-calendar/index.js.map +1 -1
- package/dist/components/search-field/index.d.ts +6 -6
- package/dist/components/search-field/index.js +4 -4
- package/dist/components/search-field/index.js.map +1 -1
- package/dist/components/select/index.d.ts +5 -5
- package/dist/components/select/index.js +4 -4
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/separator/index.d.ts +5 -5
- package/dist/components/separator/index.js +4 -4
- package/dist/components/separator/index.js.map +1 -1
- package/dist/components/sheet/index.d.ts +5 -5
- package/dist/components/sheet/index.js +12 -12
- package/dist/components/sheet/index.js.map +1 -1
- package/dist/components/slider/index.d.ts +4 -4
- package/dist/components/slider/index.js +4 -4
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/table/index.d.ts +20 -20
- package/dist/components/table/index.js +17 -17
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/tabs/index.d.ts +5 -5
- package/dist/components/tabs/index.js +8 -8
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/text-area/index.d.ts +2 -2
- package/dist/components/text-area/index.js +2 -2
- package/dist/components/text-area/index.js.map +1 -1
- package/dist/components/text-field/index.d.ts +4 -4
- package/dist/components/text-field/index.js +4 -4
- package/dist/components/text-field/index.js.map +1 -1
- package/dist/components/time-field/index.d.ts +6 -6
- package/dist/components/time-field/index.js +4 -4
- package/dist/components/time-field/index.js.map +1 -1
- package/dist/components/token-field/index.d.ts +7 -7
- package/dist/components/token-field/index.js +4 -4
- package/dist/components/token-field/index.js.map +1 -1
- package/dist/components/toolbar/index.d.ts +6 -6
- package/dist/components/toolbar/index.js +4 -4
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/index.js +4 -4
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/components/tree/index.d.ts +17 -17
- package/dist/components/tree/index.js +14 -14
- package/dist/components/tree/index.js.map +1 -1
- package/dist/drag/hooks.d.ts +3 -3
- package/dist/drag/hooks.js +4 -4
- package/dist/drag/hooks.js.map +1 -1
- package/dist/drag/index.js +4 -4
- package/dist/drag/index.js.map +1 -1
- package/dist/react-aria.d.ts +2 -2
- package/dist/react-aria.js +2 -2
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","stylex","createContext","useContext","useLayoutEffect","useRef","useSyncExternalStore","HeadingContext","OverlayTriggerStateContext","Sheet","SheetContent","useSlottedContext","useHoldBottomEdge","useScrollStop","useMessages","mergeRefs","mergeStatefulStyles","mergeStyles","overlay","scrimIn","BOTTOM_SHEET","REDUCED_MOTION","TO_THE_FIRST_SNAP_POINT","end","styles","body","kB7OPa","k1xSpc","kXwgrk","kzQI83","kOIVth","kAzted","kHjlTd","kORKVm","k8WAf4","kg3NbH","$$css","bodyHeld","isBottomSheet","window","matchMedia","matches","isReducedMotion","moveToNextSnapPoint","target","scroller","closest","HTMLElement","origin","getBoundingClientRect","top","scrollTop","stops","querySelectorAll","map","marker","Number","parseFloat","getComputedStyle","scrollMarginTop","length","distances","stop","Math","abs","at","indexOf","min","scrollTo","behavior","onServer","panelStyles","position","className","subscribeTo","query","listener","list","addEventListener","removeEventListener","subscribeToBottomSheet","subscribeToReducedMotion","SnapContext","escapeKeyOn","escape","state","render","props","renderProps","next","onKeyDown","event","key","nativeEvent","isComposing","Node","currentTarget","contains","stopPropagation","preventDefault","close","undefined","hasSize","element","clientWidth","clientHeight","restAtEdge","layer","edge","dataset","scrollHeight","left","scrollWidth","restOnceLaidOut","querySelector","observer","ResizeObserver","disconnect","restWhereItOpens","observe","first","margin","t0","$","children","t1","SheetBody","ref","callerRef","snap","title","scrollStop","label","id","t2","merged","t3","modalBodyRing","t4","container","defaultOpen","isOpen","onOpenChange","snapPoints","style","isDismissable","isKeyboardDismissDisabled","isBottom","isReduced","heights","overlayRef","Symbol","for","layerRef","useRestOnTurn","t5","t6","t7","backdrop","t8","t9","t10","t11","isExpanded","t12","SheetDialog","modalDialog","SheetFooter","SheetHandle","messages","bar","dragHandle","SheetHeader","SheetTitle","previous","current","Body","Content","Footer","Handle","Header","Title","RACSheet","RACSheetContent","RACButton"],"sources":["../../../src/components/sheet/index.tsx"],"sourcesContent":["'use client';\n\nimport type { HTMLAttributes, KeyboardEvent, ReactNode, RefAttributes, RefObject } from 'react';\nimport type { ClassNameOrFunction, DialogProps, DialogTriggerProps, HeadingProps, ModalOverlayProps, PressEvent, SheetRenderProps, StyleOrFunction } from 'react-aria-components';\nimport type { OverlayTriggerState } from 'react-stately';\nimport * as stylex from '@stylexjs/stylex';\nimport { createContext, useContext, useLayoutEffect, useMemo, useRef, useSyncExternalStore } from 'react';\nimport { Heading, HeadingContext, OverlayTriggerStateContext, Button as RACButton, Sheet as RACSheet, SheetContent as RACSheetContent, SheetBackdrop, SheetOverlay, SheetTrigger, useSlottedContext } from 'react-aria-components';\nimport { useHoldBottomEdge } from '../../hooks/useBottomEdge';\nimport { useScrollStop } from '../../hooks/useScrollStop';\nimport { useMessages } from '../../i18n';\nimport { OverlayScope } from '../../overlay';\nimport { mergeRefs } from '../../render/ref';\nimport '../../styles/layers.stylex';\nimport { layers } from '../../styles/layers.stylex';\nimport { mergeStatefulStyles, mergeStyles } from '../../styles/merge';\nimport { overlay } from '../../styles/overlay';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, media, radii, shadows, spacing, typography } from '../../tokens/design.tokens.stylex';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// One component, two presentations. Above the medium breakpoint it is a side\n// sheet pinned to the inline end of the viewport; below it, the same panel\n// becomes a bottom sheet. That is the pairing the Material Design pages draw\n// rather than two components: a sheet that stayed on the right at 375px would\n// be a drawer covering the whole screen.\n//\n// The two differ in five things and no more: which edge they rest on, which\n// two corners are rounded, which axis they arrive and leave along, how much\n// of the viewport they may take, and the drag handle, which is the bottom\n// sheets page's element alone. Everything inside the panel — the 24 of start\n// and end padding, the 12 between the header's elements, the actions area —\n// comes from the side sheets page and is drawn the same in both.\n//\n// **It is React Aria's `Sheet`.** The panel sits on a scroller a viewport\n// longer than the window along the axis it arrives on, and the browser's own\n// scrolling moves it: a swipe toward the edge it rests on scrolls it out of\n// view, which closes it, as the bottom sheets page's swipe down and the side\n// sheets page's slide off the edge do. Which edge is a prop rather than a\n// style, so the breakpoint is read here in JavaScript, as Dialog's full screen\n// is, and the styles below are keyed on the edge React Aria reports rather\n// than on the media query. `end` is the right, or the left in a right-to-left\n// locale: React Aria reads the locale's direction, not the document's, so a\n// right-to-left page sets it through `I18nProvider`, as it does for anything\n// drawn in a popover.\n//\n// **It moves at the browser's pace.** Entry and exit are a smooth scroll, so\n// they take the browser's own duration and easing rather than the\n// side sheets page's medium 1 and emphasized decelerate: a scroll position is\n// what a swipe moves, and timing it in CSS would leave the panel somewhere\n// the scroller is not. Under reduced motion React Aria scrolls without\n// smoothing, so the panel arrives and leaves in place. The scrim follows the\n// scroll through the backdrop's swipe animation, darkening as the panel comes\n// in and lifting as a swipe takes it out, and keeps the shared fade under\n// reduced motion — see `backdrop` in src/styles/overlay.ts.\nconst scrimIn = \"x18re5ia-B\";\n\n// The window sizes the panel is drawn at as a bottom sheet: the medium\n// breakpoint, as `media.belowMedium` spells it for the handle below.\nconst BOTTOM_SHEET = '(width < 600px)';\nconst REDUCED_MOTION = '(prefers-reduced-motion: reduce)';\n\n// The scrim's range along a sheet with snap points: from closed to the first\n// of them, as React Aria counts its swipe animation's range in snap points.\nconst TO_THE_FIRST_SNAP_POINT = {\n end: 0\n};\n\n// React Aria's overlay is a layer holding the scrim and a scroller, the\n// scroller holds the panel, and the panel holds the dialog. The styles are\n// split the same way: the layer and the scrim, `panel` and the edge's own\n// styles on the panel, and the overlay module's modal dialog style on the\n// element that carries the role.\nconst styles = {\n body: {\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzQI83: \"x1iyjqo2\",\n kOIVth: \"xxj4525\",\n kAzted: \"x2lwn1j\",\n kHjlTd: \"xj0a0fe\",\n kORKVm: \"x1odjw0f\",\n k8WAf4: \"xp6hjv6\",\n kg3NbH: \"xg0ps1x\",\n $$css: true\n },\n bodyHeld: {\n kORKVm: \"x1s73dr8\",\n $$css: true\n }\n};\n\n// Whether the window is at the size the bottom sheet is drawn at, and whether\n// its reader asked for less motion, each kept current. False on the server,\n// where there is no window and nothing is open.\nfunction isBottomSheet() {\n return window.matchMedia(BOTTOM_SHEET).matches;\n}\nfunction isReducedMotion() {\n return window.matchMedia(REDUCED_MOTION).matches;\n}\n\n/**\n * Moves the sheet whose handle was pressed to its next snap point, or from\n * the last back to the first. React Aria offers no call that moves a sheet,\n * so this scrolls its scroller as React Aria does to open the sheet at the\n * first: React Aria places a marker in the panel for each snap point, and a\n * scroll that rests a marker one viewport below the scroller's top leaves\n * that snap point showing. The markers are `[data-sheet-detent]`, in the\n * order the snap points were given, and they are React Aria's markup rather\n * than its API — a release that renames them leaves the handle pressing\n * nothing, which the handle's tests are there to say.\n *\n * Which snap point the sheet is at is the marker whose resting scroll lies\n * nearest the scroller's own, so a press after a swipe moves on from where\n * the swipe left the sheet.\n */\nfunction moveToNextSnapPoint({\n target\n}: PressEvent) {\n const scroller = target.closest('[data-sheet-scroll]');\n if (!(scroller instanceof HTMLElement)) {\n return;\n }\n // Where the scroller's content starts, in the window's coordinates.\n const origin = scroller.getBoundingClientRect().top - scroller.scrollTop;\n const stops = [...scroller.querySelectorAll('[data-sheet-detent]')].map(marker => marker.getBoundingClientRect().top - origin - Number.parseFloat(getComputedStyle(marker).scrollMarginTop));\n if (stops.length === 0) {\n return;\n }\n const distances = stops.map(stop => Math.abs(stop - scroller.scrollTop));\n const at = distances.indexOf(Math.min(...distances));\n scroller.scrollTo({\n behavior: isReducedMotion() ? 'auto' : 'smooth',\n top: stops[(at + 1) % stops.length]\n });\n}\nfunction onServer() {\n return false;\n}\n\n// The panel's styles for the edge React Aria rests it on. `top` and `center`\n// are positions React Aria offers and this never asks for.\nfunction panelStyles({\n position\n}: SheetRenderProps) {\n return {\n 0: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q\"\n },\n 4: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n },\n 2: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q x196z7tn\"\n },\n 6: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 xg4jtgg x196z7tn\"\n },\n 1: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q xg4jtgg\"\n },\n 5: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n },\n 3: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q x196z7tn xg4jtgg\"\n },\n 7: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n }\n }[!!(position === 'bottom') << 2 | !!(position === 'left') << 1 | !!(position === 'right') << 0];\n}\nfunction subscribeTo(query: string) {\n return (listener: () => void) => {\n const list = window.matchMedia(query);\n list.addEventListener('change', listener);\n return () => {\n list.removeEventListener('change', listener);\n };\n };\n}\nconst subscribeToBottomSheet = subscribeTo(BOTTOM_SHEET);\nconst subscribeToReducedMotion = subscribeTo(REDUCED_MOTION);\n\n// Where a bottom sheet with snap points rests: at its last, `expanded`, or\n// short of it, `collapsed`. Content sets it from React Aria's render state,\n// and the handle and the body read it. Null in a sheet without snap points,\n// whose handle is decoration and whose body always scrolls.\ntype SnapState = 'collapsed' | 'expanded' | null;\nconst SnapContext = createContext<SnapState>(null);\n\n/**\n * The dialog's element, given a key handler for Escape. React Aria's sheet\n * has one switch for every way out, so where this sheet's two settings\n * disagree about Escape the handler answers for it: `close` closes the sheet\n * React Aria is holding open, and `hold` keeps Escape from the overlay that\n * would close it. Either way the key goes no further, as it would not have\n * from React Aria's own handler.\n */\nfunction escapeKeyOn(escape: 'close' | 'hold', state: null | OverlayTriggerState, render: DialogProps['render']): NonNullable<DialogProps['render']> {\n return (props, renderProps) => {\n const next = {\n ...props,\n onKeyDown: (event: KeyboardEvent<HTMLElement>) => {\n props.onKeyDown?.(event);\n if (event.key !== 'Escape' || event.nativeEvent.isComposing ||\n // A key from an overlay opened inside this one reaches here through\n // React's tree, though that overlay is portalled out over this one,\n // and is that overlay's to answer.\n !(event.target instanceof Node && event.currentTarget.contains(event.target))) {\n return;\n }\n event.stopPropagation();\n if (escape === 'close') {\n event.preventDefault();\n state?.close();\n }\n }\n };\n return render === undefined ? <section {...next} /> : render(next, renderProps);\n };\n}\nfunction hasSize(element: HTMLElement) {\n return element.clientWidth > 0 && element.clientHeight > 0;\n}\n\n/**\n * Puts a panel against the edge it rests on, without the smooth scroll an\n * arrival takes: a bottom sheet, or a sheet on the right, at the end of its\n * scroller, and a sheet on the left at the start. React Aria stamps the edge\n * it resolved, by the writing direction, on the layer.\n */\nfunction restAtEdge(layer: HTMLElement, scroller: HTMLElement) {\n const edge = layer.dataset.position;\n if (edge === 'bottom') {\n scroller.scrollTo({\n top: scroller.scrollHeight\n });\n } else {\n scroller.scrollTo({\n left: edge === 'left' ? 0 : scroller.scrollWidth\n });\n }\n}\n\n/**\n * Rests a panel that opened before it could be laid out, once it can be.\n *\n * React Aria brings a panel in by scrolling its scroller to where it rests,\n * and counts the panel as arriving until that scroll ends. A scroller with no\n * size scrolls nowhere and never ends a scroll, which is what a sheet opened\n * inside something hidden has — a `container` in a tab panel or a route not\n * shown yet. Shown later, the panel was laid out where the scroll left it,\n * off the window, with its scrim over the page, and React Aria went on\n * waiting: focus never moved in, and a press on the trigger behind it closed\n * a sheet nobody had seen.\n *\n * So a layer whose scroller has no size as it mounts is watched until the\n * scroller first has one, and the panel is then put where it opens, which\n * ends the scroll React Aria is waiting on. A scroller with a size from the\n * start is left to React Aria, and nothing here runs again: a panel being\n * dragged or arriving always has a size. A ref callback rather than an\n * effect, since the layer mounts with the sheet's opening, which the trigger\n * rather than this part decides.\n */\nfunction restOnceLaidOut(layer: HTMLDivElement | null): (() => void) | undefined {\n const scroller = layer?.querySelector('[data-sheet-scroll]');\n if (!(layer instanceof HTMLElement && scroller instanceof HTMLElement) || hasSize(scroller)) {\n return undefined;\n }\n const observer = new ResizeObserver(() => {\n if (!hasSize(scroller)) {\n return;\n }\n observer.disconnect();\n restWhereItOpens(layer, scroller);\n });\n observer.observe(scroller);\n return () => {\n observer.disconnect();\n };\n}\n\n/**\n * Puts a panel where it opens, as React Aria's arrival does: at its first\n * snap point where it has them, which React Aria marks inside the panel, and\n * otherwise against its edge. Only a bottom sheet takes snap points, and the\n * marker's top edge, less its scroll margin, is what React Aria lines up with\n * the top of the scroller.\n */\nfunction restWhereItOpens(layer: HTMLElement, scroller: HTMLElement) {\n const first = layer.querySelector('[data-sheet-initial]');\n if (!(first instanceof HTMLElement)) {\n restAtEdge(layer, scroller);\n return;\n }\n const margin = Number.parseFloat(getComputedStyle(first).scrollMarginTop) || 0;\n scroller.scrollTo({\n top: first.getBoundingClientRect().top - scroller.getBoundingClientRect().top + scroller.scrollTop - margin\n });\n}\n\n/**\n * A modal panel that arrives from the edge of the screen — a side sheet on a\n * wide viewport, a bottom sheet on a narrow one. Open state is React Aria's:\n * pass `isOpen` with `onOpenChange` to control it, or `defaultOpen` to let it\n * keep its own.\n *\n * Composed rather than configured by props, because a sheet's header, body,\n * and footer all take arbitrary content — the parts are `Sheet.Content`,\n * `Sheet.Header`, `Sheet.Title`, `Sheet.Body`, and `Sheet.Footer`. A\n * `Button` or `IconButton` placed directly inside `Sheet` opens it, and one\n * given `slot=\"close\"` anywhere inside the content closes it; neither needs\n * a part of its own.\n *\n * ```tsx\n * <Sheet>\n * <Button>Open</Button>\n * <Sheet.Content>\n * <Sheet.Handle />\n * <Sheet.Header>\n * <Sheet.Title>Headline</Sheet.Title>\n * </Sheet.Header>\n * <Sheet.Body>Supporting line</Sheet.Body>\n * <Sheet.Footer>\n * <Button slot=\"close\">Close</Button>\n * </Sheet.Footer>\n * </Sheet.Content>\n * </Sheet>\n * ```\n *\n * `Sheet` is the trigger's half, so a sheet nothing on the page opens — one\n * a route shows, or a menu item raises — leaves it out and passes `isOpen`\n * and `onOpenChange` to `Sheet.Content` instead. Wrapped in `Sheet` with no\n * button inside it, React Aria warns that its press responder found nothing\n * to press.\n *\n * ```tsx\n * <Sheet.Content isOpen={isOpen} onOpenChange={setOpen}>\n * …\n * </Sheet.Content>\n * ```\n *\n * Tab stays inside an open sheet, so a `Snackbar` shown meanwhile is reached\n * with F6, which React Aria uses to move between landmarks. Tabbing on past\n * the snackbar's last control leads back into the sheet.\n */\nfunction Sheet({\n children,\n ...props\n}: SheetProps) {\n return <SheetTrigger {...props}>{children}</SheetTrigger>;\n}\nfunction SheetBody({\n ref: callerRef,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const ref = useRef<HTMLDivElement>(null);\n const snap = useContext(SnapContext);\n // A body its content runs past is a tab stop named by the title, so a\n // keyboard can scroll it, when nothing inside it takes focus; a call\n // site's own name, role and tabIndex still win. See useScrollStop.\n const title = useSlottedContext(HeadingContext, 'title');\n const scrollStop = useScrollStop(ref, {\n label: props['aria-label'],\n title: title?.id\n });\n // The body measures itself through its own ref, and the call site's lands\n // on the same element.\n const merged = useMemo(() => mergeRefs(ref, callerRef ?? undefined), [callerRef]);\n return <div {...scrollStop} {...props} ref={merged} {...mergeStyles(stylex.props(styles.body, snap === 'collapsed' && styles.bodyHeld, overlay.modalBodyRing), props)} />;\n}\n\n/**\n * The panel itself, and the scrim behind it. Everything the sheet shows goes\n * in here; the trigger stays outside it, since the trigger lives in the page\n * while this is portalled out to the end of the body.\n *\n * A swipe toward the edge the panel rests on closes it — down on a bottom\n * sheet, toward the screen's edge on a side sheet — as do a press on the\n * scrim, Escape and a `slot=\"close\"` button. `isDismissable` holds the first\n * two, and `isKeyboardDismissDisabled` holds Escape. React Aria's default for\n * the scrim is the reverse of this one: a sheet that ignores a tap outside it\n * reads as stuck.\n *\n * Inside `Sheet`, the open state is the trigger's. On its own, with no\n * trigger, it is this part's: `isOpen` with `onOpenChange` controls it, and\n * a swipe, a `slot=\"close\"` button, Escape and the scrim all report through\n * `onOpenChange`, as they would to `Sheet`.\n *\n * The sheet draws at `z-index: 900`, the scrim and the panel over it, over\n * any page content layered below that, such as a sticky header. A\n * `Snackbar` draws at 1000, so a toast raised from inside the sheet is read\n * over it, and React Aria's popovers and menus draw above both.\n *\n * React Aria lays the sheet over the page from the page's own top-left\n * corner rather than fixing it to the window, so a `container` inside a\n * positioned element holds the sheet to that element instead.\n */\nfunction SheetContent({\n children,\n className,\n container,\n defaultOpen,\n isDismissable = true,\n isKeyboardDismissDisabled = false,\n isOpen,\n onOpenChange,\n ref,\n snapPoints,\n style,\n ...props\n}: RefAttributes<HTMLDivElement> & SheetContentProps) {\n const isBottom = useSyncExternalStore(subscribeToBottomSheet, isBottomSheet, onServer);\n const isReduced = useSyncExternalStore(subscribeToReducedMotion, isReducedMotion, onServer);\n const position = isBottom ? 'bottom' : 'end';\n // The heights are the bottom sheet's alone; a side sheet has one width.\n const heights = isBottom && snapPoints !== undefined && snapPoints.length > 0 ? snapPoints : undefined;\n const overlayRef = useRef<HTMLDivElement>(null);\n const layerRef = mergeRefs(overlayRef, restOnceLaidOut);\n useRestOnTurn(overlayRef, position);\n // React Aria holds Escape whenever it holds the scrim and the swipe, so\n // the two settings disagreeing is where the dialog answers for Escape.\n let escape: 'close' | 'hold' | undefined;\n if (isDismissable === isKeyboardDismissDisabled) {\n escape = isKeyboardDismissDisabled ? 'hold' : 'close';\n }\n return <OverlayScope>\n <SheetOverlay defaultOpen={defaultOpen} isOpen={isOpen} onOpenChange={onOpenChange} position={position} preventDismissal={!isDismissable} ref={layerRef} snapPoints={heights}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container} className=\"x9f619 x125h2g0\">\n <SheetBackdrop\n // The shared fade instead under reduced motion, where the panel\n // arrives without moving and the scrim is all that says so.\n swipeAnimation={isReduced ? undefined : scrimIn}\n // Whole once the panel reaches its first snap point rather than\n // only once all of it shows, so a collapsed sheet holds the page\n // behind the same scrim an expanded one does, and a swipe below\n // that point is what lifts it.\n swipeAnimationRange={heights === undefined ? undefined : TO_THE_FIRST_SNAP_POINT} {...stylex.props(overlay.backdrop)} />\n <RACSheet\n // The panel, where the call site's class and style land, rather than\n // the dialog inside it, which takes the rest of the props.\n ref={ref} {...mergeStatefulStyles(panelStyles, {\n className,\n style\n })}>\n {({\n isExpanded\n }) => {\n let snap: SnapState = null;\n if (heights !== undefined) {\n snap = isExpanded ? 'expanded' : 'collapsed';\n }\n return <SnapContext value={snap}>\n <SheetDialog escape={escape} {...props}>\n {children}\n </SheetDialog>\n </SnapContext>;\n }}\n </RACSheet>\n </SheetOverlay>\n </OverlayScope>;\n}\n\n// The element with the dialog role, inside the overlay so it can reach the\n// open state React Aria holds there.\nfunction SheetDialog({\n escape,\n render,\n ...props\n}: DialogProps & {\n escape: 'close' | 'hold' | undefined;\n}) {\n const state = useContext(OverlayTriggerStateContext);\n return <RACSheetContent {...props} render={escape === undefined ? render : escapeKeyOn(escape, state, render)} {...stylex.props(overlay.modalDialog)} />;\n}\n\n/**\n * The sheet's actions. The panel rests on the window's bottom edge in both\n * presentations, so they sit on that edge, and a toast rises clear of them\n * while the sheet is open rather than lying over its buttons. A side sheet's\n * are included: the toast is centred in the window, and on any window\n * narrower than about 1376px its 576 reach into the sheet's 400.\n */\nfunction SheetFooter({\n ref: callerRef,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const ref = useRef<HTMLDivElement>(null);\n useHoldBottomEdge(ref, true);\n // The footer measures itself through its own ref, and the call site's\n // lands on the same element.\n const merged = useMemo(() => mergeRefs(ref, callerRef ?? undefined), [callerRef]);\n return <div {...props} ref={merged} {...mergeStyles({\n className: \"x12smttz x13fuv20 x178xt8z x9f619 x78zum5 x2lah0s x1a02dak x126z3so x1nhvcw1 x1qafhyn x8i8c5o x1clyivc xg0ps1x\"\n }, props)} />;\n}\n\n/**\n * The bottom sheets page's drag handle: a short bar above the sheet's\n * content, saying the panel is a bottom sheet that a swipe moves. Place it\n * first inside `Sheet.Content`; above the medium breakpoint the panel is a\n * side sheet and this draws nothing.\n *\n * On a sheet given `snapPoints` it is a button, as the bottom sheets page\n * asks of a handle that moves the sheet between heights: a press, from a\n * pointer, a keyboard or assistive technology, moves the sheet to its next\n * snap point, from the last back to the first, and `aria-expanded` says\n * whether it rests at the last. It is called \"Drag handle\" in the locale's\n * own words, and a call site's `aria-label` names it instead. Its 48 square\n * is the page's target, centred over the bar.\n *\n * On a sheet without them it is decoration, hidden from assistive\n * technology: the panel has one height, and the swipe the bar points at\n * takes it from anywhere on the panel, so a control here would offer\n * nothing a swipe, the scrim, Escape or a `slot=\"close\"` button does not.\n */\nfunction SheetHandle({\n 'aria-label': label,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const snap = useContext(SnapContext);\n const messages = useMessages();\n const bar = <span className=\"x1ccu2yh xwvh9j7 xqu0tyb x1dkaolv x9f619 x1g12otp x1td3qas\" />;\n if (snap === null) {\n return <div aria-hidden=\"true\" aria-label={label} {...props} {...mergeStyles({\n className: \"x6s0dn4 x9f619 x1s85apg x37i4ze x2lah0s xl56j7k x1xg6qyv\"\n }, props)}>\n {bar}\n </div>;\n }\n return <div {...props} {...mergeStyles({\n className: \"x6s0dn4 x9f619 x1s85apg x37i4ze x2lah0s xl56j7k xt970qd\"\n }, props)}>\n <RACButton aria-expanded={snap === 'expanded'} aria-label={label ?? messages.dragHandle} onPress={moveToNextSnapPoint} className=\"x6s0dn4 xjbqb8w xsdox4t x1dkaolv xng3xce x9f619 x1ypdohk x78zum5 x1useyqa xl56j7k x1ghz6dp xrgy624 x2ssjo2 x9v5kkp x1t137rt x1de99jn x1717udv\">\n {bar}\n </RACButton>\n </div>;\n}\nfunction SheetHeader(props: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n return <div {...props} {...mergeStyles({\n className: \"x6s0dn4 x1j6faob x1q0q8m5 xso031l x9f619 x78zum5 x2lah0s x1gka490 x1qughib x1cmllll xg0ps1x\"\n }, props)} />;\n}\n\n/**\n * Names the sheet. Rendered through React Aria's title slot, which is what\n * points the dialog's `aria-labelledby` at it — a sheet without one announces\n * itself as an unnamed dialog.\n */\nfunction SheetTitle(props: RefAttributes<HTMLHeadingElement> & SheetTitleProps) {\n return <Heading slot=\"title\" {...props} {...mergeStyles({\n className: \"x9f619 x1w5n3ug xdy5w5q xete2z3 x14ijtet xug9e1u x2divse x1ghz6dp xeuugli xj0a0fe\"\n }, props)} />;\n}\n\n/**\n * Puts an open panel back where it rests when the window crosses the\n * breakpoint. Its scroller runs along the axis the panel arrives on, so a\n * side sheet turned into a bottom sheet kept the side sheet's scroll, which on\n * the new axis is the closed position: the panel stayed open below the\n * window, and its scrim went on holding the page. A panel resting against the\n * end of its scroller — a bottom sheet, a sheet on the right — goes to the\n * end, and a sheet on the left to the start, without the smooth scroll its\n * arrival takes, since it is not arriving.\n *\n * A layout effect, so the panel is back before the frame is drawn and before\n * React Aria's observer can see it gone; the parent's, so it runs after\n * React Aria has set the scroller up for the new edge.\n */\nfunction useRestOnTurn(overlayRef: RefObject<HTMLDivElement | null>, position: 'bottom' | 'end') {\n const previous = useRef(position);\n useLayoutEffect(() => {\n if (previous.current === position) {\n return;\n }\n previous.current = position;\n const layer = overlayRef.current;\n const scroller = layer?.querySelector('[data-sheet-scroll]');\n if (!(layer instanceof HTMLElement && scroller instanceof HTMLElement)) {\n return;\n }\n restAtEdge(layer, scroller);\n }, [overlayRef, position]);\n}\nSheet.Body = SheetBody;\nSheet.Content = SheetContent;\nSheet.Footer = SheetFooter;\nSheet.Handle = SheetHandle;\nSheet.Header = SheetHeader;\nSheet.Title = SheetTitle;\n\n// The dialog's own props, plus the overlay's open state and dismissal\n// settings and the panel's styling. A call site has no reason to know there\n// are four elements: `className` and `style` reach the panel, which is the\n// one worth restyling, the open state and the dismissal settings reach the\n// overlay, and everything else lands on the dialog.\n//\n// The two dismissal settings are declared here rather than picked with their\n// siblings, since React Aria's sheet has neither: one switch holds every way\n// out of it, and these split the keyboard from the pointer as the rest of the\n// library's modals do.\ntype SheetContentProps = Omit<DialogProps, 'className' | 'style'> & Pick<ModalOverlayProps, 'defaultOpen' | 'isOpen' | 'onOpenChange'> & {\n /** A function may compute the class from the panel's render state. */\n className?: ClassNameOrFunction<SheetRenderProps>;\n /**\n * Where to portal the panel and scrim. Defaults to the container of the\n * `ThemeScope` around it, which keeps the sheet on that scope's tokens, or\n * to 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,\n * or the sheet renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * Whether a press on the scrim, outside the panel, or a swipe toward the\n * edge it rests on closes the sheet. `true` here where React Aria's own\n * default for the scrim is `false`, since a sheet that ignores a tap\n * outside it reads as stuck. Escape is `isKeyboardDismissDisabled`'s, and\n * this says nothing about it.\n * @default true\n */\n isDismissable?: boolean;\n /**\n * Whether Escape is kept from closing the sheet. The scrim and the swipe\n * are `isDismissable`'s, and this says nothing about them.\n * @default false\n */\n isKeyboardDismissDisabled?: boolean;\n /**\n * The heights a bottom sheet rests at, each the amount of the panel\n * showing: a number of pixels, or a percentage of the panel's own\n * height. The sheet opens at the first, a swipe moves it between them,\n * and a press on `Sheet.Handle` moves it to the next, from the last\n * back to the first. React Aria's own prop, under its own name.\n *\n * End on `'100%'` for a sheet that can show all of itself: its body\n * scrolls only while the whole panel is showing, and short of that a\n * swipe on the body moves the sheet instead. The side sheet has one\n * width and ignores them.\n */\n snapPoints?: Array<number | string>;\n /** A function may compute the style from the panel's render state. */\n style?: StyleOrFunction<SheetRenderProps>;\n};\ntype SheetProps = Omit<DialogTriggerProps, 'children'> & {\n children?: ReactNode;\n};\ntype SheetTitleProps = HeadingProps;\nexport type { SheetContentProps, SheetProps, SheetTitleProps };\nexport { SheetBody, SheetContent, SheetFooter, SheetHandle, SheetHeader, SheetTitle };\nexport default Sheet;"],"mappings":";;;;;;;;;;;;;;AA4DA,MAAMmB,UAAU;AAIhB,M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AnD,UAAA;EAClBkD,WAAA;GACd,IAAIoD,SAAQC,YAAavG,UAAQ;GAGjCsG,SAAQC,UAAWvG;GACnB,MAAAmC,QAAc2C,WAAUyB;GACxB,MAAAlI,WAAiB8D,OAAKO,cAAgB,qBAAqB;GAC3D,IAAI,EAAEP,iBAAiB5D,eAAeF,oBAAoBE,cAAY;GAGtE2D,WAAWC,OAAO9D,QAAQ;EAAC;EAC1BgF,KAAA,CAACyB,YAAY9E,QAAQ;EAACmD,EAAA,KAAA2B;EAAA3B,EAAA,KAAAnD;EAAAmD,EAAA,KAAAD;EAAAC,EAAA,KAAAE;CAAA,OAAA;EAAAH,KAAAC,EAAA;EAAAE,KAAAF,EAAA;CAAA;CAXzBvH,gBAAgBsH,IAWbG,EAAsB;AAAC;AAE5BpH,QAAMuK,OAAOlD;AACbrH,QAAMwK,UAAUvK;AAChBD,QAAMyK,SAASX;AACf9J,QAAM0K,SAASX;AACf/J,QAAM2K,SAASR;AACfnK,QAAM4K,QAAQR"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","stylex","createContext","useContext","useLayoutEffect","useRef","useSyncExternalStore","HeadingContext","OverlayTriggerStateContext","Sheet","SheetContent","useSlottedContext","useHoldBottomEdge","useScrollStop","useMessages","mergeRefs","mergeStatefulStyles","mergeStyles","overlay","scrimIn","BOTTOM_SHEET","REDUCED_MOTION","TO_THE_FIRST_SNAP_POINT","end","styles","body","kB7OPa","k1xSpc","kXwgrk","kzQI83","kOIVth","kAzted","kHjlTd","kORKVm","k8WAf4","kg3NbH","$$css","bodyHeld","isBottomSheet","window","matchMedia","matches","isReducedMotion","moveToNextSnapPoint","target","scroller","closest","HTMLElement","origin","getBoundingClientRect","top","scrollTop","stops","querySelectorAll","map","marker","Number","parseFloat","getComputedStyle","scrollMarginTop","length","distances","stop","Math","abs","at","indexOf","min","scrollTo","behavior","onServer","panelStyles","position","className","subscribeTo","query","listener","list","addEventListener","removeEventListener","subscribeToBottomSheet","subscribeToReducedMotion","SnapContext","escapeKeyOn","escape","state","render","props","renderProps","next","onKeyDown","event","key","nativeEvent","isComposing","Node","currentTarget","contains","stopPropagation","preventDefault","close","undefined","hasSize","element","clientWidth","clientHeight","restAtEdge","layer","edge","dataset","scrollHeight","left","scrollWidth","restOnceLaidOut","querySelector","observer","ResizeObserver","disconnect","restWhereItOpens","observe","first","margin","t0","$","children","t1","SheetBody","ref","callerRef","snap","title","scrollStop","label","id","t2","merged","t3","modalBodyRing","t4","container","defaultOpen","isOpen","onOpenChange","snapPoints","style","isDismissable","isKeyboardDismissDisabled","isBottom","isReduced","heights","overlayRef","Symbol","for","layerRef","useRestOnTurn","t5","t6","t7","backdrop","t8","t9","t10","t11","isExpanded","t12","SheetDialog","modalDialog","SheetFooter","SheetHandle","messages","bar","dragHandle","SheetHeader","SheetTitle","previous","current","Body","Content","Footer","Handle","Header","Title","RACSheet","RACSheetContent","RACButton"],"sources":["../../../src/components/sheet/index.tsx"],"sourcesContent":["'use client';\n\nimport type { HTMLAttributes, KeyboardEvent, ReactNode, RefAttributes, RefObject } from 'react';\nimport type { ClassNameOrFunction, DialogProps, DialogTriggerProps, HeadingProps, ModalOverlayProps, PressEvent, SheetRenderProps, StyleOrFunction } from 'react-aria-components';\nimport type { OverlayTriggerState } from 'react-stately';\nimport * as stylex from '@stylexjs/stylex';\nimport { createContext, useContext, useLayoutEffect, useMemo, useRef, useSyncExternalStore } from 'react';\nimport { Heading, HeadingContext, OverlayTriggerStateContext, Button as RACButton, Sheet as RACSheet, SheetContent as RACSheetContent, SheetBackdrop, SheetOverlay, SheetTrigger, useSlottedContext } from 'react-aria-components';\nimport { useHoldBottomEdge } from '../../hooks/useBottomEdge';\nimport { useScrollStop } from '../../hooks/useScrollStop';\nimport { useMessages } from '../../i18n';\nimport { OverlayScope } from '../../overlay';\nimport { mergeRefs } from '../../render/ref';\nimport '../../styles/layers.stylex';\nimport { layers } from '../../styles/layers.stylex';\nimport { mergeStatefulStyles, mergeStyles } from '../../styles/merge';\nimport { overlay } from '../../styles/overlay';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, media, radii, shadows, spacing, typography } from '../../tokens/design.tokens.stylex';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// One component, two presentations. Above the medium breakpoint it is a side\n// sheet pinned to the inline end of the viewport; below it, the same panel\n// becomes a bottom sheet. That is the pairing the Material Design pages draw\n// rather than two components: a sheet that stayed on the right at 375px would\n// be a drawer covering the whole screen.\n//\n// The two differ in five things and no more: which edge they rest on, which\n// two corners are rounded, which axis they arrive and leave along, how much\n// of the viewport they may take, and the drag handle, which is the bottom\n// sheets page's element alone. Everything inside the panel — the 24 of start\n// and end padding, the 12 between the header's elements, the actions area —\n// comes from the side sheets page and is drawn the same in both.\n//\n// **It is React Aria's `Sheet`.** The panel sits on a scroller a viewport\n// longer than the window along the axis it arrives on, and the browser's own\n// scrolling moves it: a swipe toward the edge it rests on scrolls it out of\n// view, which closes it, as the bottom sheets page's swipe down and the side\n// sheets page's slide off the edge do. Which edge is a prop rather than a\n// style, so the breakpoint is read here in JavaScript, as Dialog's full screen\n// is, and the styles below are keyed on the edge React Aria reports rather\n// than on the media query. `end` is the right, or the left in a right-to-left\n// locale: React Aria reads the locale's direction, not the document's, so a\n// right-to-left page sets it through `I18nProvider`, as it does for anything\n// drawn in a popover.\n//\n// **It moves at the browser's pace.** Entry and exit are a smooth scroll, so\n// they take the browser's own duration and easing rather than the\n// side sheets page's medium 1 and emphasized decelerate: a scroll position is\n// what a swipe moves, and timing it in CSS would leave the panel somewhere\n// the scroller is not. Under reduced motion React Aria scrolls without\n// smoothing, so the panel arrives and leaves in place. The scrim follows the\n// scroll through the backdrop's swipe animation, darkening as the panel comes\n// in and lifting as a swipe takes it out, and keeps the shared fade under\n// reduced motion — see `backdrop` in src/styles/overlay.ts.\nconst scrimIn = \"x18re5ia-B\";\n\n// The window sizes the panel is drawn at as a bottom sheet: the medium\n// breakpoint, as `media.belowMedium` spells it for the handle below.\nconst BOTTOM_SHEET = '(width < 600px)';\nconst REDUCED_MOTION = '(prefers-reduced-motion: reduce)';\n\n// The scrim's range along a sheet with snap points: from closed to the first\n// of them, as React Aria counts its swipe animation's range in snap points.\nconst TO_THE_FIRST_SNAP_POINT = {\n end: 0\n};\n\n// React Aria's overlay is a layer holding the scrim and a scroller, the\n// scroller holds the panel, and the panel holds the dialog. The styles are\n// split the same way: the layer and the scrim, `panel` and the edge's own\n// styles on the panel, and the overlay module's modal dialog style on the\n// element that carries the role.\nconst styles = {\n body: {\n kB7OPa: \"x9f619\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzQI83: \"x1iyjqo2\",\n kOIVth: \"xxj4525\",\n kAzted: \"x2lwn1j\",\n kHjlTd: \"xj0a0fe\",\n kORKVm: \"x1odjw0f\",\n k8WAf4: \"xp6hjv6\",\n kg3NbH: \"xg0ps1x\",\n $$css: true\n },\n bodyHeld: {\n kORKVm: \"x1s73dr8\",\n $$css: true\n }\n};\n\n// Whether the window is at the size the bottom sheet is drawn at, and whether\n// its reader asked for less motion, each kept current. False on the server,\n// where there is no window and nothing is open.\nfunction isBottomSheet() {\n return window.matchMedia(BOTTOM_SHEET).matches;\n}\nfunction isReducedMotion() {\n return window.matchMedia(REDUCED_MOTION).matches;\n}\n\n/**\n * Moves the sheet whose handle was pressed to its next snap point, or from\n * the last back to the first. React Aria offers no call that moves a sheet,\n * so this scrolls its scroller as React Aria does to open the sheet at the\n * first: React Aria places a marker in the panel for each snap point, and a\n * scroll that rests a marker one viewport below the scroller's top leaves\n * that snap point showing. The markers are `[data-sheet-detent]`, in the\n * order the snap points were given, and they are React Aria's markup rather\n * than its API — a release that renames them leaves the handle pressing\n * nothing, which the handle's tests are there to say.\n *\n * Which snap point the sheet is at is the marker whose resting scroll lies\n * nearest the scroller's own, so a press after a swipe moves on from where\n * the swipe left the sheet.\n */\nfunction moveToNextSnapPoint({\n target\n}: PressEvent) {\n const scroller = target.closest('[data-sheet-scroll]');\n if (!(scroller instanceof HTMLElement)) {\n return;\n }\n // Where the scroller's content starts, in the window's coordinates.\n const origin = scroller.getBoundingClientRect().top - scroller.scrollTop;\n const stops = [...scroller.querySelectorAll('[data-sheet-detent]')].map(marker => marker.getBoundingClientRect().top - origin - Number.parseFloat(getComputedStyle(marker).scrollMarginTop));\n if (stops.length === 0) {\n return;\n }\n const distances = stops.map(stop => Math.abs(stop - scroller.scrollTop));\n const at = distances.indexOf(Math.min(...distances));\n scroller.scrollTo({\n behavior: isReducedMotion() ? 'auto' : 'smooth',\n top: stops[(at + 1) % stops.length]\n });\n}\nfunction onServer() {\n return false;\n}\n\n// The panel's styles for the edge React Aria rests it on. `top` and `center`\n// are positions React Aria offers and this never asks for.\nfunction panelStyles({\n position\n}: SheetRenderProps) {\n return {\n 0: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q\"\n },\n 4: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n },\n 2: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q x196z7tn\"\n },\n 6: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 xg4jtgg x196z7tn\"\n },\n 1: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q xg4jtgg\"\n },\n 5: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n },\n 3: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x5yr21d xrzall9 xjslfuv x1gbqego xjg5lhu x6xk272 x1l2rt3b x1a148e8 x1mrd0q x196z7tn xg4jtgg\"\n },\n 7: {\n className: \"x1vnz5z6 x19efjv6 x9f619 x139gbkf x78zum5 xdt5ytf x7giv3 x19dwuzr x4z998w x1lym3mf x1u81hx7 x1uop38w xh8yej3 xv4ka1z x1a148e8 x196z7tn xg4jtgg\"\n }\n }[!!(position === 'bottom') << 2 | !!(position === 'left') << 1 | !!(position === 'right') << 0];\n}\nfunction subscribeTo(query: string) {\n return (listener: () => void) => {\n const list = window.matchMedia(query);\n list.addEventListener('change', listener);\n return () => {\n list.removeEventListener('change', listener);\n };\n };\n}\nconst subscribeToBottomSheet = subscribeTo(BOTTOM_SHEET);\nconst subscribeToReducedMotion = subscribeTo(REDUCED_MOTION);\n\n// Where a bottom sheet with snap points rests: at its last, `expanded`, or\n// short of it, `collapsed`. Content sets it from React Aria's render state,\n// and the handle and the body read it. Null in a sheet without snap points,\n// whose handle is decoration and whose body always scrolls.\ntype SnapState = 'collapsed' | 'expanded' | null;\nconst SnapContext = createContext<SnapState>(null);\n\n/**\n * The dialog's element, given a key handler for Escape. React Aria's sheet\n * has one switch for every way out, so where this sheet's two settings\n * disagree about Escape the handler answers for it: `close` closes the sheet\n * React Aria is holding open, and `hold` keeps Escape from the overlay that\n * would close it. Either way the key goes no further, as it would not have\n * from React Aria's own handler.\n */\nfunction escapeKeyOn(escape: 'close' | 'hold', state: null | OverlayTriggerState, render: DialogProps['render']): NonNullable<DialogProps['render']> {\n return (props, renderProps) => {\n const next = {\n ...props,\n onKeyDown: (event: KeyboardEvent<HTMLElement>) => {\n props.onKeyDown?.(event);\n if (event.key !== 'Escape' || event.nativeEvent.isComposing ||\n // A key from an overlay opened inside this one reaches here through\n // React's tree, though that overlay is portalled out over this one,\n // and is that overlay's to answer.\n !(event.target instanceof Node && event.currentTarget.contains(event.target))) {\n return;\n }\n event.stopPropagation();\n if (escape === 'close') {\n event.preventDefault();\n state?.close();\n }\n }\n };\n return render === undefined ? <section {...next} /> : render(next, renderProps);\n };\n}\nfunction hasSize(element: HTMLElement) {\n return element.clientWidth > 0 && element.clientHeight > 0;\n}\n\n/**\n * Puts a panel against the edge it rests on, without the smooth scroll an\n * arrival takes: a bottom sheet, or a sheet on the right, at the end of its\n * scroller, and a sheet on the left at the start. React Aria stamps the edge\n * it resolved, by the writing direction, on the layer.\n */\nfunction restAtEdge(layer: HTMLElement, scroller: HTMLElement) {\n const edge = layer.dataset.position;\n if (edge === 'bottom') {\n scroller.scrollTo({\n top: scroller.scrollHeight\n });\n } else {\n scroller.scrollTo({\n left: edge === 'left' ? 0 : scroller.scrollWidth\n });\n }\n}\n\n/**\n * Rests a panel that opened before it could be laid out, once it can be.\n *\n * React Aria brings a panel in by scrolling its scroller to where it rests,\n * and counts the panel as arriving until that scroll ends. A scroller with no\n * size scrolls nowhere and never ends a scroll, which is what a sheet opened\n * inside something hidden has — a `container` in a tab panel or a route not\n * shown yet. Shown later, the panel was laid out where the scroll left it,\n * off the window, with its scrim over the page, and React Aria went on\n * waiting: focus never moved in, and a press on the trigger behind it closed\n * a sheet nobody had seen.\n *\n * So a layer whose scroller has no size as it mounts is watched until the\n * scroller first has one, and the panel is then put where it opens, which\n * ends the scroll React Aria is waiting on. A scroller with a size from the\n * start is left to React Aria, and nothing here runs again: a panel being\n * dragged or arriving always has a size. A ref callback rather than an\n * effect, since the layer mounts with the sheet's opening, which the trigger\n * rather than this part decides.\n */\nfunction restOnceLaidOut(layer: HTMLDivElement | null): (() => void) | undefined {\n const scroller = layer?.querySelector('[data-sheet-scroll]');\n if (!(layer instanceof HTMLElement && scroller instanceof HTMLElement) || hasSize(scroller)) {\n return undefined;\n }\n const observer = new ResizeObserver(() => {\n if (!hasSize(scroller)) {\n return;\n }\n observer.disconnect();\n restWhereItOpens(layer, scroller);\n });\n observer.observe(scroller);\n return () => {\n observer.disconnect();\n };\n}\n\n/**\n * Puts a panel where it opens, as React Aria's arrival does: at its first\n * snap point where it has them, which React Aria marks inside the panel, and\n * otherwise against its edge. Only a bottom sheet takes snap points, and the\n * marker's top edge, less its scroll margin, is what React Aria lines up with\n * the top of the scroller.\n */\nfunction restWhereItOpens(layer: HTMLElement, scroller: HTMLElement) {\n const first = layer.querySelector('[data-sheet-initial]');\n if (!(first instanceof HTMLElement)) {\n restAtEdge(layer, scroller);\n return;\n }\n const margin = Number.parseFloat(getComputedStyle(first).scrollMarginTop) || 0;\n scroller.scrollTo({\n top: first.getBoundingClientRect().top - scroller.getBoundingClientRect().top + scroller.scrollTop - margin\n });\n}\n\n/**\n * A modal panel that arrives from the edge of the screen — a side sheet on a\n * wide viewport, a bottom sheet on a narrow one. Open state is React Aria's:\n * pass `isOpen` with `onOpenChange` to control it, or `defaultOpen` to let it\n * keep its own.\n *\n * Composed rather than configured by props, because a sheet's header, body,\n * and footer all take arbitrary content — the parts are `Sheet.Content`,\n * `Sheet.Header`, `Sheet.Title`, `Sheet.Body`, and `Sheet.Footer`. A\n * `Button` or `IconButton` placed directly inside `Sheet` opens it, and one\n * given `slot=\"close\"` anywhere inside the content closes it; neither needs\n * a part of its own.\n *\n * ```tsx\n * <Sheet>\n * <Button>Open</Button>\n * <Sheet.Content>\n * <Sheet.Handle />\n * <Sheet.Header>\n * <Sheet.Title>Headline</Sheet.Title>\n * </Sheet.Header>\n * <Sheet.Body>Supporting line</Sheet.Body>\n * <Sheet.Footer>\n * <Button slot=\"close\">Close</Button>\n * </Sheet.Footer>\n * </Sheet.Content>\n * </Sheet>\n * ```\n *\n * `Sheet` is the trigger's half, so a sheet nothing on the page opens — one\n * a route shows, or a menu item raises — leaves it out and passes `isOpen`\n * and `onOpenChange` to `Sheet.Content` instead. Wrapped in `Sheet` with no\n * button inside it, React Aria warns that its press responder found nothing\n * to press.\n *\n * ```tsx\n * <Sheet.Content isOpen={isOpen} onOpenChange={setOpen}>\n * …\n * </Sheet.Content>\n * ```\n *\n * Tab stays inside an open sheet, so a `Snackbar` shown meanwhile is reached\n * with F6, which React Aria uses to move between landmarks. Tabbing on past\n * the snackbar's last control leads back into the sheet.\n */\nfunction Sheet({\n children,\n ...props\n}: SheetProps) {\n return <SheetTrigger {...props}>{children}</SheetTrigger>;\n}\nfunction SheetBody({\n ref: callerRef,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const ref = useRef<HTMLDivElement>(null);\n const snap = useContext(SnapContext);\n // A body its content runs past is a tab stop named by the title, so a\n // keyboard can scroll it, when nothing inside it takes focus; a call\n // site's own name, role and tabIndex still win. See useScrollStop.\n const title = useSlottedContext(HeadingContext, 'title');\n const scrollStop = useScrollStop(ref, {\n label: props['aria-label'],\n title: title?.id\n });\n // The body measures itself through its own ref, and the call site's lands\n // on the same element.\n const merged = useMemo(() => mergeRefs(ref, callerRef ?? undefined), [callerRef]);\n return <div {...scrollStop} {...props} ref={merged} {...mergeStyles(stylex.props(styles.body, snap === 'collapsed' && styles.bodyHeld, overlay.modalBodyRing), props)} />;\n}\n\n/**\n * The panel itself, and the scrim behind it. Everything the sheet shows goes\n * in here; the trigger stays outside it, since the trigger lives in the page\n * while this is portalled out to the end of the body.\n *\n * A swipe toward the edge the panel rests on closes it — down on a bottom\n * sheet, toward the screen's edge on a side sheet — as do a press on the\n * scrim, Escape and a `slot=\"close\"` button. `isDismissable` holds the first\n * two, and `isKeyboardDismissDisabled` holds Escape. React Aria's default for\n * the scrim is the reverse of this one: a sheet that ignores a tap outside it\n * reads as stuck.\n *\n * Inside `Sheet`, the open state is the trigger's. On its own, with no\n * trigger, it is this part's: `isOpen` with `onOpenChange` controls it, and\n * a swipe, a `slot=\"close\"` button, Escape and the scrim all report through\n * `onOpenChange`, as they would to `Sheet`.\n *\n * The sheet draws at `z-index: 900`, the scrim and the panel over it, over\n * any page content layered below that, such as a sticky header. A\n * `Snackbar` draws at 1000, so a toast raised from inside the sheet is read\n * over it, and React Aria's popovers and menus draw above both.\n *\n * React Aria lays the sheet over the page from the page's own top-left\n * corner rather than fixing it to the window, so a `container` inside a\n * positioned element holds the sheet to that element instead.\n */\nfunction SheetContent({\n children,\n className,\n container,\n defaultOpen,\n isDismissable = true,\n isKeyboardDismissDisabled = false,\n isOpen,\n onOpenChange,\n ref,\n snapPoints,\n style,\n ...props\n}: RefAttributes<HTMLDivElement> & SheetContentProps) {\n const isBottom = useSyncExternalStore(subscribeToBottomSheet, isBottomSheet, onServer);\n const isReduced = useSyncExternalStore(subscribeToReducedMotion, isReducedMotion, onServer);\n const position = isBottom ? 'bottom' : 'end';\n // The heights are the bottom sheet's alone; a side sheet has one width.\n const heights = isBottom && snapPoints !== undefined && snapPoints.length > 0 ? snapPoints : undefined;\n const overlayRef = useRef<HTMLDivElement>(null);\n const layerRef = mergeRefs(overlayRef, restOnceLaidOut);\n useRestOnTurn(overlayRef, position);\n // React Aria holds Escape whenever it holds the scrim and the swipe, so\n // the two settings disagreeing is where the dialog answers for Escape.\n let escape: 'close' | 'hold' | undefined;\n if (isDismissable === isKeyboardDismissDisabled) {\n escape = isKeyboardDismissDisabled ? 'hold' : 'close';\n }\n return <OverlayScope>\n <SheetOverlay defaultOpen={defaultOpen} isOpen={isOpen} onOpenChange={onOpenChange} position={position} preventDismissal={!isDismissable} ref={layerRef} snapPoints={heights}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container} className=\"x9f619 x125h2g0\">\n <SheetBackdrop\n // The shared fade instead under reduced motion, where the panel\n // arrives without moving and the scrim is all that says so.\n swipeAnimation={isReduced ? undefined : scrimIn}\n // Whole once the panel reaches its first snap point rather than\n // only once all of it shows, so a collapsed sheet holds the page\n // behind the same scrim an expanded one does, and a swipe below\n // that point is what lifts it.\n swipeAnimationRange={heights === undefined ? undefined : TO_THE_FIRST_SNAP_POINT} {...stylex.props(overlay.backdrop)} />\n <RACSheet\n // The panel, where the call site's class and style land, rather than\n // the dialog inside it, which takes the rest of the props.\n ref={ref} {...mergeStatefulStyles(panelStyles, {\n className,\n style\n })}>\n {({\n isExpanded\n }) => {\n let snap: SnapState = null;\n if (heights !== undefined) {\n snap = isExpanded ? 'expanded' : 'collapsed';\n }\n return <SnapContext value={snap}>\n <SheetDialog escape={escape} {...props}>\n {children}\n </SheetDialog>\n </SnapContext>;\n }}\n </RACSheet>\n </SheetOverlay>\n </OverlayScope>;\n}\n\n// The element with the dialog role, inside the overlay so it can reach the\n// open state React Aria holds there.\nfunction SheetDialog({\n escape,\n render,\n ...props\n}: DialogProps & {\n escape: 'close' | 'hold' | undefined;\n}) {\n const state = useContext(OverlayTriggerStateContext);\n return <RACSheetContent {...props} render={escape === undefined ? render : escapeKeyOn(escape, state, render)} {...stylex.props(overlay.modalDialog)} />;\n}\n\n/**\n * The sheet's actions. The panel rests on the window's bottom edge in both\n * presentations, so they sit on that edge, and a toast rises clear of them\n * while the sheet is open rather than lying over its buttons. A side sheet's\n * are included: the toast is centred in the window, and on any window\n * narrower than about 1376px its 576 reach into the sheet's 400.\n */\nfunction SheetFooter({\n ref: callerRef,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const ref = useRef<HTMLDivElement>(null);\n useHoldBottomEdge(ref, true);\n // The footer measures itself through its own ref, and the call site's\n // lands on the same element.\n const merged = useMemo(() => mergeRefs(ref, callerRef ?? undefined), [callerRef]);\n return <div {...props} ref={merged} {...mergeStyles({\n className: \"x12smttz x13fuv20 x178xt8z x9f619 x78zum5 x2lah0s x1a02dak x126z3so x1nhvcw1 x1qafhyn x8i8c5o x1clyivc xg0ps1x\"\n }, props)} />;\n}\n\n/**\n * The bottom sheets page's drag handle: a short bar above the sheet's\n * content, saying the panel is a bottom sheet that a swipe moves. Place it\n * first inside `Sheet.Content`; above the medium breakpoint the panel is a\n * side sheet and this draws nothing.\n *\n * On a sheet given `snapPoints` it is a button, as the bottom sheets page\n * asks of a handle that moves the sheet between heights: a press, from a\n * pointer, a keyboard or assistive technology, moves the sheet to its next\n * snap point, from the last back to the first, and `aria-expanded` says\n * whether it rests at the last. It is called \"Drag handle\" in the locale's\n * own words, and a call site's `aria-label` names it instead. Its 48 square\n * is the page's target, centred over the bar.\n *\n * On a sheet without them it is decoration, hidden from assistive\n * technology: the panel has one height, and the swipe the bar points at\n * takes it from anywhere on the panel, so a control here would offer\n * nothing a swipe, the scrim, Escape or a `slot=\"close\"` button does not.\n */\nfunction SheetHandle({\n 'aria-label': label,\n ...props\n}: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n const snap = useContext(SnapContext);\n const messages = useMessages();\n const bar = <span className=\"x1ccu2yh xwvh9j7 xqu0tyb x1dkaolv x9f619 x1g12otp x1td3qas\" />;\n if (snap === null) {\n return <div aria-hidden=\"true\" aria-label={label} {...props} {...mergeStyles({\n className: \"x6s0dn4 x9f619 x1s85apg x37i4ze x2lah0s xl56j7k x1xg6qyv\"\n }, props)}>\n {bar}\n </div>;\n }\n return <div {...props} {...mergeStyles({\n className: \"x6s0dn4 x9f619 x1s85apg x37i4ze x2lah0s xl56j7k xt970qd\"\n }, props)}>\n <RACButton aria-expanded={snap === 'expanded'} aria-label={label ?? messages.dragHandle} onPress={moveToNextSnapPoint} className=\"x6s0dn4 xjbqb8w xsdox4t x1dkaolv xng3xce x9f619 x1ypdohk x78zum5 x1useyqa xl56j7k x1ghz6dp xrgy624 x2ssjo2 x9v5kkp x1t137rt x1de99jn x1717udv\">\n {bar}\n </RACButton>\n </div>;\n}\nfunction SheetHeader(props: HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>) {\n return <div {...props} {...mergeStyles({\n className: \"x6s0dn4 x1j6faob x1q0q8m5 xso031l x9f619 x78zum5 x2lah0s x1gka490 x1qughib x1cmllll xg0ps1x\"\n }, props)} />;\n}\n\n/**\n * Names the sheet. Rendered through React Aria's title slot, which is what\n * points the dialog's `aria-labelledby` at it — a sheet without one announces\n * itself as an unnamed dialog.\n */\nfunction SheetTitle(props: RefAttributes<HTMLHeadingElement> & SheetTitleProps) {\n return <Heading slot=\"title\" {...props} {...mergeStyles({\n className: \"x9f619 x1w5n3ug xdy5w5q xete2z3 x14ijtet xug9e1u x2divse x1ghz6dp xeuugli xj0a0fe\"\n }, props)} />;\n}\n\n/**\n * Puts an open panel back where it rests when the window crosses the\n * breakpoint. Its scroller runs along the axis the panel arrives on, so a\n * side sheet turned into a bottom sheet kept the side sheet's scroll, which on\n * the new axis is the closed position: the panel stayed open below the\n * window, and its scrim went on holding the page. A panel resting against the\n * end of its scroller — a bottom sheet, a sheet on the right — goes to the\n * end, and a sheet on the left to the start, without the smooth scroll its\n * arrival takes, since it is not arriving.\n *\n * A layout effect, so the panel is back before the frame is drawn and before\n * React Aria's observer can see it gone; the parent's, so it runs after\n * React Aria has set the scroller up for the new edge.\n */\nfunction useRestOnTurn(overlayRef: RefObject<HTMLDivElement | null>, position: 'bottom' | 'end') {\n const previous = useRef(position);\n useLayoutEffect(() => {\n if (previous.current === position) {\n return;\n }\n previous.current = position;\n const layer = overlayRef.current;\n const scroller = layer?.querySelector('[data-sheet-scroll]');\n if (!(layer instanceof HTMLElement && scroller instanceof HTMLElement)) {\n return;\n }\n restAtEdge(layer, scroller);\n }, [overlayRef, position]);\n}\nSheet.Body = SheetBody;\nSheet.Content = SheetContent;\nSheet.Footer = SheetFooter;\nSheet.Handle = SheetHandle;\nSheet.Header = SheetHeader;\nSheet.Title = SheetTitle;\n\n// The dialog's own props, plus the overlay's open state and dismissal\n// settings and the panel's styling. A call site has no reason to know there\n// are four elements: `className` and `style` reach the panel, which is the\n// one worth restyling, the open state and the dismissal settings reach the\n// overlay, and everything else lands on the dialog.\n//\n// The two dismissal settings are declared here rather than picked with their\n// siblings, since React Aria's sheet has neither: one switch holds every way\n// out of it, and these split the keyboard from the pointer as the rest of the\n// library's modals do.\ntype SheetContentProps = Omit<DialogProps, 'className' | 'style'> & Pick<ModalOverlayProps, 'defaultOpen' | 'isOpen' | 'onOpenChange'> & {\n /** A function may compute the class from the panel's render state. */\n className?: ClassNameOrFunction<SheetRenderProps>;\n /**\n * Where to portal the panel and scrim. Defaults to the container of the\n * `ThemeScope` around it, which keeps the sheet on that scope's tokens, or\n * to 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,\n * or the sheet renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * Whether a press on the scrim, outside the panel, or a swipe toward the\n * edge it rests on closes the sheet. `true` here where React Aria's own\n * default for the scrim is `false`, since a sheet that ignores a tap\n * outside it reads as stuck. Escape is `isKeyboardDismissDisabled`'s, and\n * this says nothing about it.\n * @default true\n */\n isDismissable?: boolean;\n /**\n * Whether Escape is kept from closing the sheet. The scrim and the swipe\n * are `isDismissable`'s, and this says nothing about them.\n * @default false\n */\n isKeyboardDismissDisabled?: boolean;\n /**\n * The heights a bottom sheet rests at, each the amount of the panel\n * showing: a number of pixels, or a percentage of the panel's own\n * height. The sheet opens at the first, a swipe moves it between them,\n * and a press on `Sheet.Handle` moves it to the next, from the last\n * back to the first. React Aria's own prop, under its own name.\n *\n * End on `'100%'` for a sheet that can show all of itself: its body\n * scrolls only while the whole panel is showing, and short of that a\n * swipe on the body moves the sheet instead. The side sheet has one\n * width and ignores them.\n */\n snapPoints?: Array<number | string>;\n /** A function may compute the style from the panel's render state. */\n style?: StyleOrFunction<SheetRenderProps>;\n};\ntype SheetProps = Omit<DialogTriggerProps, 'children'> & {\n children?: ReactNode;\n};\ntype SheetTitleProps = HeadingProps;\nexport type { SheetContentProps, SheetProps, SheetTitleProps };\nexport { SheetBody, SheetContent, SheetFooter, SheetHandle, SheetHeader, SheetTitle };\nexport default Sheet;"],"mappings":";;;;;;;;;;;;;;AA4DA,MAAMmB,UAAU;AAIhB,MAAMC,eAAe;AACrB,MAAMC,iBAAiB;AAIvB,MAAMC,0BAA0B,EAC9BC,KAAK,EACP;AAOA,MAAMC,SAAS;CACbC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,UAAU;EACRJ,QAAQ;EACRG,OAAO;CACT;AACF;AAKA,SAASE,gBAAgB;CACvB,OAAOC,OAAOC,WAAWpB,YAAY,CAAC,CAACqB;AACzC;AACA,SAASC,kBAAkB;CACzB,OAAOH,OAAOC,WAAWnB,cAAc,CAAC,CAACoB;AAC3C;;;;;;;;;;;;;;;;AAiBA,SAASE,oBAAoB,EAC3BC,UACa;CACb,MAAMC,WAAWD,OAAOE,QAAQ,qBAAqB;CACrD,IAAI,EAAED,oBAAoBE,cACxB;CAGF,MAAMC,SAASH,SAASI,sBAAsB,CAAC,CAACC,MAAML,SAASM;CAC/D,MAAMC,QAAQ,CAAC,GAAGP,SAASQ,iBAAiB,qBAAqB,CAAC,CAAC,CAACC,KAAIC,WAAUA,OAAON,sBAAsB,CAAC,CAACC,MAAMF,SAASQ,OAAOC,WAAWC,iBAAiBH,MAAM,CAAC,CAACI,eAAe,CAAC;CAC3L,IAAIP,MAAMQ,WAAW,GACnB;CAEF,MAAMC,YAAYT,MAAME,KAAIQ,SAAQC,KAAKC,IAAIF,OAAOjB,SAASM,SAAS,CAAC;CACvE,MAAMc,KAAKJ,UAAUK,QAAQH,KAAKI,IAAI,GAAGN,SAAS,CAAC;CACnDhB,S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E;AAEM;;;;;;;;;;;;;;;AAiBf,SAAA6B,cAAAJ,YAAA9E,UAAA;CAAA,MAAAmD,IAAA3H,EAAA,CAAA;CACE,MAAA8K,WAAiBzK,OAAOmE,QAAQ;CAAE,IAAAkD;CAAA,IAAAG;CAAA,IAAAF,EAAA,OAAA2B,cAAA3B,EAAA,OAAAnD,UAAA;EAClBkD,WAAA;GACd,IAAIoD,SAAQC,YAAavG,UAAQ;GAGjCsG,SAAQC,UAAWvG;GACnB,MAAAmC,QAAc2C,WAAUyB;GACxB,MAAAlI,WAAiB8D,OAAKO,cAAgB,qBAAqB;GAC3D,IAAI,EAAEP,iBAAiB5D,eAAeF,oBAAoBE,cAAY;GAGtE2D,WAAWC,OAAO9D,QAAQ;EAAC;EAC1BgF,KAAA,CAACyB,YAAY9E,QAAQ;EAACmD,EAAA,KAAA2B;EAAA3B,EAAA,KAAAnD;EAAAmD,EAAA,KAAAD;EAAAC,EAAA,KAAAE;CAAA,OAAA;EAAAH,KAAAC,EAAA;EAAAE,KAAAF,EAAA;CAAA;CAXzBvH,gBAAgBsH,IAWbG,EAAsB;AAAC;AAE5BpH,MAAMuK,OAAOlD;AACbrH,MAAMwK,UAAUvK;AAChBD,MAAMyK,SAASX;AACf9J,MAAM0K,SAASX;AACf/J,MAAM2K,SAASR;AACfnK,MAAM4K,QAAQR"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, RefAttributes } from "react";
|
|
2
|
-
import { SliderProps } from "react-aria-components";
|
|
2
|
+
import { SliderProps as SliderProps$1 } from "react-aria-components";
|
|
3
3
|
type SliderSize = 'lg' | 'md' | 'sm' | 'xl' | 'xs';
|
|
4
|
-
type SliderProps
|
|
4
|
+
type SliderProps = Omit<SliderProps$1, 'children' | 'orientation'> & {
|
|
5
5
|
/**
|
|
6
6
|
* The page's inset icon, at the start of the active part, from `md` up:
|
|
7
7
|
* the page gives it a size at M, L and XL alone. Drawn for a single
|
|
@@ -51,5 +51,5 @@ type SliderProps$1 = Omit<SliderProps, 'children' | 'orientation'> & {
|
|
|
51
51
|
* which is the element a layout positions and the one that gives a vertical
|
|
52
52
|
* slider its height.
|
|
53
53
|
*/
|
|
54
|
-
declare function Slider
|
|
55
|
-
export { type SliderProps
|
|
54
|
+
declare function Slider({ icon, label, orientation, showStops, size, thumbLabels, ...props }: RefAttributes<HTMLDivElement> & SliderProps): import("react").JSX.Element;
|
|
55
|
+
export { type SliderProps, type SliderSize, Slider as default };
|
|
@@ -5,7 +5,7 @@ import { groupStyles } from "../../field/styles.js";
|
|
|
5
5
|
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { Slider, SliderOutput, SliderThumb, SliderTrack } from "react-aria-components";
|
|
8
|
+
import { Slider as Slider$1, SliderOutput, SliderThumb, SliderTrack } from "react-aria-components";
|
|
9
9
|
// src/components/slider/index.tsx
|
|
10
10
|
/** How far a part stops short of a handle's centre. */
|
|
11
11
|
const CLEAR = 8;
|
|
@@ -344,7 +344,7 @@ function partContent(part, extras, isDisabled, steps, hasIcon) {
|
|
|
344
344
|
* which is the element a layout positions and the one that gives a vertical
|
|
345
345
|
* slider its height.
|
|
346
346
|
*/
|
|
347
|
-
function Slider
|
|
347
|
+
function Slider(t0) {
|
|
348
348
|
const $ = c(31);
|
|
349
349
|
let T0;
|
|
350
350
|
let icon;
|
|
@@ -365,7 +365,7 @@ function Slider$1(t0) {
|
|
|
365
365
|
showStops = t7 === void 0 ? false : t7;
|
|
366
366
|
size = t8 === void 0 ? "xs" : t8;
|
|
367
367
|
vertical = orientation === "vertical";
|
|
368
|
-
T0 = Slider;
|
|
368
|
+
T0 = Slider$1;
|
|
369
369
|
t1 = orientation;
|
|
370
370
|
t2 = props$1;
|
|
371
371
|
t3 = mergeStatefulStyles(props(groupStyles.root, styles.root, sizes[size], vertical && styles.rootVertical), props$1);
|
|
@@ -518,6 +518,6 @@ function trackContent(extras, thumbLabels) {
|
|
|
518
518
|
}, index))] });
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
|
-
export { Slider
|
|
521
|
+
export { Slider as default };
|
|
522
522
|
|
|
523
523
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","stylex","Slider","RACSlider","groupStyles","mergeStatefulStyles","GAP","CLEAR","STOP","sizes","lg","$$css","md","sm","xl","xs","styles","active","kWkggS","activeDisabled","activeHoldingIcon","k9g6sI","icon","kGNEyG","kZKoxP","kMwMTN","k1xSpc","kGuDYH","kzqmXN","k87sOh","kLqNvP","kjj79g","kVAEAm","iconDisabled","iconRoomBlock","iconRoomBlockXl","iconRoomInline","iconRoomInlineXl","iconVertical","krVfgx","inactiveDisabled","innerBlockEnd","kT0f0o","kVL7Gh","innerBlockStart","kfmiAY","krdFHd","innerInlineEnd","innerInlineStart","root","rootVertical","segment","kVAM5u","kaIpWk","ksu8eU","kMzoRj","kB7OPa","kVQacm","segmentVertical","stop","stopActive","stopActiveDisabled","stopDisabled","stopEnd","kt4wiu","stopEndVertical","stopStart","stopStartVertical","stopVertical","thumb","k6CgDc","kkrTdU","kjBf7l","kInvED","k3XXqK","kMeerF","kIyJzY","k1ekBW","kAMwcw","thumbActive","thumbActiveVertical","thumbDisabled","thumbDragging","thumbFocused","thumbVertical","kbCHJM","_temp","_temp2","placements","block","start","end","val","undefined","inline","stopBlock","offset","stopInline","showStops","size","vertical","fraction","px","name","label","orientation","thumbLabels","AT_END","after","before","iconRoom","insetIcon","isDisabled","room","props","insetOf","offsetIn","share","partContent","part","extras","steps","hasIcon","from","to","length","inside","filter","place","atStart","atEnd","map","t0","$","T0","t1","t2","t3","t4","t5","t6","t7","t8","t9","state","0","className","2","1","3","trackContent","stepsOf","min","getThumbMinValue","max","getThumbMaxValue","values","fractions","step","index","push","getValuePercent","thumbContent","isDragging","isFocusVisible","getThumbValueLabel","thumbStyles","_","getThumbPercent","first","last","at","range","parts","innerStart","innerEnd"],"sources":["../../../src/components/slider/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { SliderProps as RACSliderProps, SliderState, SliderThumbRenderProps, SliderTrackRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { Slider as RACSlider, SliderOutput, SliderThumb, SliderTrack } from 'react-aria-components';\nimport { FieldLabel } from '../../field';\nimport { groupStyles } from '../../field/styles';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii, spacing, stateLayerOpacity, typography } from '../../tokens/design.tokens.stylex';\n\n// The sliders page. At the size its tokens call extra-small, the default: a\n// 16dp track with an 8dp corner, the active part in primary and the inactive\n// part in secondary container, a 4dp stop in on secondary container 6dp from\n// the inactive end, and a handle 4dp wide and 44dp tall in primary that\n// narrows to 2dp while pressed or focused. The track parts on each side of\n// the handle, with 6dp of space between them and it, and their corners\n// against the handle are 2dp where their outer ends are full. Disabled, the\n// active part and the handle are on surface at the disabled content opacity\n// and the inactive part at the disabled container opacity.\n//\n// `size` takes the page's four larger sizes, which thicken the track and\n// round its ends more, and lengthen the handle from M up:\n//\n// | Size | Track | Corner | Handle | Inset icon |\n// | ---- | ----- | ------ | ------ | ---------- |\n// | xs | 16dp | 8dp | 44dp | |\n// | sm | 24dp | 8dp | 44dp | |\n// | md | 40dp | 12dp | 52dp | 24dp |\n// | lg | 56dp | 16dp | 68dp | 24dp |\n// | xl | 96dp | 28dp | 108dp | 32dp |\n//\n// The handle stays 4dp wide, the corners against it 2dp and the space beside\n// it 6dp at every size.\n//\n// `showStops` is the page's stops configuration, which it used to call the\n// discrete slider: a 4dp stop at every step, in on primary on the active part\n// and on secondary container on the inactive one, so the reader can see\n// where the handle can land. The stops at the two ends sit 6dp in from them,\n// as the single stop does. A part clips what it holds, which is what hides\n// the stops beside the handle: the part ends 6dp short of it.\n//\n// `icon` is the page's inset icon, at the start of the active part in on\n// primary, from M up: the page gives it a size at M, L and XL alone. It is\n// 10dp in from the part's start, which is MDC-Android's padding, since the\n// page gives none, and like MDC-Android it is drawn only while the part has\n// room for it and that padding on both sides, and for a single handle.\n//\n// The value indicator is the page's label: inverse surface under label-large\n// in inverse on surface, 44dp tall and at least 48dp wide, 12dp above the\n// handle. It shows while the handle is dragged or has keyboard focus, and it\n// is React Aria's `SliderOutput`, so what it shows is what the slider\n// announces.\n//\n// React Aria's `Slider` is the root, `SliderTrack` the strip the handles are\n// placed along by percent, and `SliderThumb` each handle around a visually\n// hidden range input. The track's parts are drawn here from those percents\n// rather than with `SliderFill`, since the page's parts stop short of the\n// handle on both sides and the fill runs up to it. A range slider is the\n// same track with two handles and the active part between them.\n//\n// Vertical, the same parts run along the block axis, with the active part\n// rising from the bottom and the indicator to the start side of the handle.\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// The sliders page's own measurements, which are constants of the component\n// rather than steps of the consumer's spacing scale. The clearance used to be\n// read off `spacing.sm` — true at its default 8, since 6 plus half the\n// handle comes to the same — so a theme moving that step opened the gap\n// beside the handle while the stop, written as the literal it is, stayed\n// where the page puts it.\nconst GAP = 6;\nconst HANDLE_WIDTH = 4;\n/** How far a part stops short of a handle's centre. */\nconst CLEAR = GAP + HANDLE_WIDTH / 2;\n/** A stop's size. */\nconst STOP = 4;\n/** MDC-Android's padding either side of the inset icon. */\nconst ICON_PADDING = 10;\ntype SliderSize = 'lg' | 'md' | 'sm' | 'xl' | 'xs';\n\n// The sizes, as the custom properties every part reads: the track's\n// thickness, its outer corner and the handle's length, which the track\n// strip takes as its own thickness too.\nconst sizes = {\n lg: {\n \"--slider-corner\": \"x1hr852m\",\n \"--slider-handle\": \"x1i1s3m4\",\n \"--slider-icon\": \"xsfv7fh\",\n \"--slider-track\": \"xdrquod\",\n $$css: true\n },\n md: {\n \"--slider-corner\": \"x1welmdy\",\n \"--slider-handle\": \"x1290pjo\",\n \"--slider-icon\": \"xsfv7fh\",\n \"--slider-track\": \"xhx1aj5\",\n $$css: true\n },\n sm: {\n \"--slider-corner\": \"x1y8vi8n\",\n \"--slider-handle\": \"x1czf5nl\",\n \"--slider-track\": \"xf334ng\",\n $$css: true\n },\n xl: {\n \"--slider-corner\": \"x1tzw2no\",\n \"--slider-handle\": \"x1aoofsu\",\n \"--slider-icon\": \"xmfnedx\",\n \"--slider-track\": \"x1s6dhuk\",\n $$css: true\n },\n xs: {\n \"--slider-corner\": \"x1y8vi8n\",\n \"--slider-handle\": \"x1czf5nl\",\n \"--slider-track\": \"x16oikcs\",\n $$css: true\n }\n};\nconst styles = {\n active: {\n kWkggS: \"xnety89 x1jzqe4\",\n $$css: true\n },\n activeDisabled: {\n kWkggS: \"x1crcgwy\",\n $$css: true\n },\n activeHoldingIcon: {\n k9g6sI: \"xpqogu8\",\n $$css: true\n },\n icon: {\n kGNEyG: \"x6s0dn4\",\n kZKoxP: \"xi7vqlm\",\n kMwMTN: \"xwjo7ld x1k5gbb1\",\n k1xSpc: \"x78zum5\",\n kGuDYH: \"xuu3ggl\",\n kzqmXN: \"xoxpges\",\n k87sOh: \"xdtafdd\",\n kLqNvP: \"xi5uv41\",\n kjj79g: \"xl56j7k\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n },\n iconDisabled: {\n kMwMTN: \"x1girmi0\",\n $$css: true\n },\n iconRoomBlock: {\n k1xSpc: \"x1uo08md x78zum5\",\n $$css: true\n },\n iconRoomBlockXl: {\n k1xSpc: \"x2mjljv x78zum5\",\n $$css: true\n },\n iconRoomInline: {\n k1xSpc: \"x1cueg3v x78zum5\",\n $$css: true\n },\n iconRoomInlineXl: {\n k1xSpc: \"x18ymn08 x78zum5\",\n $$css: true\n },\n iconVertical: {\n krVfgx: \"x1jn9clo\",\n k87sOh: \"x80663w\",\n kLqNvP: \"x1m57d8a\",\n $$css: true\n },\n inactiveDisabled: {\n kWkggS: \"x19v6zzp\",\n $$css: true\n },\n innerBlockEnd: {\n kT0f0o: \"x1ui04y5\",\n kVL7Gh: \"x6en5u8\",\n $$css: true\n },\n innerBlockStart: {\n kfmiAY: \"x1e4oeot\",\n krdFHd: \"xr9e8f9\",\n $$css: true\n },\n innerInlineEnd: {\n kT0f0o: \"x1ui04y5\",\n kfmiAY: \"x1e4oeot\",\n $$css: true\n },\n innerInlineStart: {\n kVL7Gh: \"x6en5u8\",\n krdFHd: \"xr9e8f9\",\n $$css: true\n },\n root: {\n kzqmXN: \"xh8yej3\",\n $$css: true\n },\n rootVertical: {\n kGNEyG: \"x1cy8zhl\",\n kZKoxP: \"x1u5z0ei\",\n kzqmXN: \"x14atkfc\",\n $$css: true\n },\n segment: {\n kWkggS: \"x15dekr4 x9yvj25\",\n kZKoxP: \"x9w084k\",\n kVAM5u: \"x1ylmb6m\",\n kaIpWk: \"x1xpg3mf\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x13rsnn2\",\n kB7OPa: \"x9f619\",\n k87sOh: \"x1i1s66i\",\n kVQacm: \"xb3r6kr\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n },\n segmentVertical: {\n kZKoxP: \"xt7dq6l\",\n kzqmXN: \"x3fzmgt\",\n k87sOh: \"x80663w\",\n kLqNvP: \"x9k4rl8\",\n $$css: true\n },\n stop: {\n kWkggS: \"x81krv7 x1tt9vl1\",\n kZKoxP: \"xqu0tyb\",\n kaIpWk: \"x16fbrrb\",\n kzqmXN: \"x51ohtg\",\n k87sOh: \"x17a0tka\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n },\n stopActive: {\n kWkggS: \"x1ntwmx2 x1sir5s4\",\n $$css: true\n },\n stopActiveDisabled: {\n kWkggS: \"x1dbj914\",\n $$css: true\n },\n stopDisabled: {\n kWkggS: \"x1crcgwy\",\n $$css: true\n },\n stopEnd: {\n kt4wiu: \"x1f889gz\",\n $$css: true\n },\n stopEndVertical: {\n k87sOh: \"x1atx4j1\",\n kt4wiu: \"x1woyocn\",\n $$css: true\n },\n stopStart: {\n kLqNvP: \"xrr41r3\",\n $$css: true\n },\n stopStartVertical: {\n krVfgx: \"xrb244j\",\n k87sOh: \"x80663w\",\n kLqNvP: \"xhi6v0a\",\n $$css: true\n },\n stopVertical: {\n k87sOh: \"x80663w\",\n kLqNvP: \"xml7xvy\",\n $$css: true\n },\n thumb: {\n k6CgDc: \"x12w9bfk\",\n kWkggS: \"xnety89 x1jzqe4\",\n kZKoxP: \"x16gdi9t\",\n kVAM5u: \"x1ylmb6m\",\n kaIpWk: \"x1dkaolv\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x13rsnn2\",\n kB7OPa: \"x9f619\",\n kkrTdU: \"x1jm3nie\",\n kzqmXN: \"x51ohtg\",\n k87sOh: \"xwa60dl\",\n kjBf7l: \"xrgy624 x1x84bn5\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"x1t137rt\",\n kMeerF: \"x1de99jn\",\n kIyJzY: \"x1qno0dh\",\n k1ekBW: \"xdl150w\",\n kAMwcw: \"xpc4ca7\",\n $$css: true\n },\n thumbActive: {\n kzqmXN: \"xfo62xy\",\n $$css: true\n },\n thumbActiveVertical: {\n kZKoxP: \"x36qwtl\",\n kzqmXN: \"xluoxwi\",\n $$css: true\n },\n thumbDisabled: {\n kWkggS: \"x1crcgwy\",\n kkrTdU: \"x1h6gzvc\",\n $$css: true\n },\n thumbDragging: {\n kkrTdU: \"xi9pz9s\",\n $$css: true\n },\n thumbFocused: {\n k3XXqK: \"xaatb59\",\n $$css: true\n },\n thumbVertical: {\n kZKoxP: \"xqu0tyb\",\n kzqmXN: \"xluoxwi\",\n k87sOh: \"x80663w\",\n kbCHJM: \"x1nrll8i\",\n $$css: true\n }\n};\n\n// Where each part of the track starts and ends, as insets from the track's\n// two ends, and where a stop sits inside a part. Dynamic styles, since the\n// percents come from the value at render time and StyleX compiles its\n// classes ahead of time; each writes its insets to custom properties inline.\nconst _temp = {\n krVfgx: \"xiicpxy\",\n k87sOh: \"x5mnzd7\",\n \"$$css\": true\n};\nconst _temp2 = {\n krVfgx: \"xiicpxy\",\n \"$$css\": true\n};\nconst placements = {\n block: (start: string, end: string) => [_temp, {\n \"--x-insetBlockEnd\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(start),\n \"--x-insetBlockStart\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(end)\n }],\n inline: (start: string, end: string) => [{\n kt4wiu: end != null ? \"xqxgn94\" : end,\n kLqNvP: start != null ? \"x1lxsm33\" : start,\n $$css: true\n }, {\n \"--x-insetInlineEnd\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(end),\n \"--x-insetInlineStart\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(start)\n }],\n stopBlock: (offset: string) => [_temp2, {\n \"--x-insetBlockEnd\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(offset)\n }],\n stopInline: (offset: string) => [{\n kLqNvP: offset != null ? \"x1lxsm33\" : offset,\n $$css: true\n }, {\n \"--x-insetInlineStart\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(offset)\n }]\n};\n\n/** What a track draws besides its parts and handles. */\ntype Extras = {\n icon: ReactNode;\n showStops: boolean;\n size: SliderSize;\n vertical: boolean;\n};\n\n/** One end of a part: a fraction of the track's length, and pixels on top. */\ntype Inset = {\n fraction: number;\n px: number;\n};\n\n/**\n * A part of the track, by the insets of its two ends from the track's, and\n * which of the three it is: the inactive part before a range's first handle,\n * the active part, or the inactive part after the last handle.\n */\ntype Part = {\n active: boolean;\n end: Inset;\n name: 'active' | 'after' | 'before';\n start: Inset;\n};\ntype SliderProps = Omit<RACSliderProps, 'children' | 'orientation'> & {\n /**\n * The page's inset icon, at the start of the active part, from `md` up:\n * the page gives it a size at M, L and XL alone. Drawn for a single\n * handle, and only while the active part has room for it.\n */\n icon?: ReactNode;\n /**\n * What the slider sets. A slider that a row labels some other way leaves\n * it out and passes `aria-label` instead.\n */\n label?: string;\n /**\n * Along which axis the handle moves. A vertical slider is 240px tall until\n * `style` on the root says otherwise.\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical';\n /**\n * A stop at every step, the page's stops configuration, so the reader can\n * see where the handle can land. Meant for a slider with a handful of\n * steps: each stop is a 4dp dot, and a fine step draws a crowd of them.\n * @default false\n */\n showStops?: boolean;\n /**\n * The page's sizes, by the track's thickness: 16dp at `xs`, 24dp at `sm`,\n * 40dp at `md`, 56dp at `lg` and 96dp at `xl`, with the handle 44dp long\n * up to `sm` and 52dp, 68dp and 108dp past it.\n * @default 'xs'\n */\n size?: SliderSize;\n /**\n * A name for each handle of a range slider, in order, since two handles\n * named by the same label cannot be told apart.\n */\n thumbLabels?: string[];\n};\nconst AT_END: Inset = {\n fraction: 0,\n px: 0\n};\n\n// A part's start inset, clear of a handle at `fraction` of the way along. The\n// fraction lands on the handle's centre, so half the handle's width joins the\n// page's gap to reach its edge.\nfunction after(fraction: number): Inset {\n return {\n fraction,\n px: CLEAR\n };\n}\n\n// A part's end inset, clear of a handle at `fraction` of the way along.\nfunction before(fraction: number): Inset {\n return {\n fraction: 1 - fraction,\n px: CLEAR\n };\n}\n\n// The container query that hides the inset icon for want of room: the part's\n// length along the track, against the icon and its padding at this size.\nfunction iconRoom(size: SliderSize, vertical: boolean) {\n if (vertical) {\n return size === 'xl' ? styles.iconRoomBlockXl : styles.iconRoomBlock;\n }\n return size === 'xl' ? styles.iconRoomInlineXl : styles.iconRoomInline;\n}\n\n// The inset icon, at the foot of the active part, while the part has room.\nfunction insetIcon({\n icon,\n size,\n vertical\n}: Extras, isDisabled: boolean): ReactNode {\n const room = iconRoom(size, vertical);\n return <span {...stylex.props(styles.icon, vertical && styles.iconVertical, room, isDisabled && styles.iconDisabled)}>\n {icon}\n </span>;\n}\nfunction insetOf({\n fraction,\n px\n}: Inset) {\n return `calc(${fraction * 100}% + ${px}px)`;\n}\n\n// Where a stop at `fraction` of the way along the track starts inside a part.\n// The part's own length is the `100%` the expression has to work from, and\n// the track's is that plus both insets, so a fraction of the track is a\n// share of the part's length plus their pixels.\nfunction offsetIn({\n end,\n start\n}: Part, fraction: number) {\n const share = 1 - start.fraction - end.fraction;\n const scale = (fraction - start.fraction) / share;\n return `calc(${scale} * (100% + ${start.px + end.px}px) - ${start.px + STOP / 2}px)`;\n}\n\n// What a part holds: a stop at each step inside it, the end stops where it\n// reaches the track's ends, and the inset icon.\nfunction partContent(part: Part, extras: Extras, isDisabled: boolean, steps: number[], hasIcon: boolean) {\n const {\n showStops,\n vertical\n } = extras;\n const stop = [styles.stop, vertical && styles.stopVertical, part.active && styles.stopActive, isDisabled && (part.active ? styles.stopActiveDisabled : styles.stopDisabled)];\n const from = part.start.fraction;\n const to = 1 - part.end.fraction;\n const length = 1 - part.start.fraction - part.end.fraction;\n const inside = showStops && length > 0 ? steps.filter(fraction => fraction >= from && fraction <= to) : [];\n const place = vertical ? placements.stopBlock : placements.stopInline;\n const atStart = part.start.fraction === 0 && part.start.px === 0;\n // The single stop at the inactive end is drawn with or without the stops\n // configuration; the one at the start is the configuration's own.\n const atEnd = part.end.fraction === 0 && part.end.px === 0 && !part.active;\n return <>\n {hasIcon ? insetIcon(extras, isDisabled) : null}\n {showStops && atStart ? <span {...stylex.props(...stop, vertical ? styles.stopStartVertical : styles.stopStart)} /> : null}\n {inside.map(fraction => <span key={fraction} {...stylex.props(...stop, place(offsetIn(part, fraction)))} />)}\n {atEnd ? <span {...stylex.props(...stop, vertical ? styles.stopEndVertical : styles.stopEnd)} /> : null}\n </>;\n}\n\n/**\n * A slider for one value, or for a range when the value is a pair. The value\n * is React Aria's: pass `value` with `onChange` to control it, or\n * `defaultValue` to let it keep its own, with `minValue`, `maxValue` and\n * `step` to shape it and `formatOptions` to say how it reads. Arrow keys\n * move a handle by a step, Page Up and Page Down by ten, Home and End to\n * the ends.\n *\n * The call site's `className` and `style` land on the slider as a whole,\n * which is the element a layout positions and the one that gives a vertical\n * slider its height.\n */\nfunction Slider({\n icon,\n label,\n orientation = 'horizontal',\n showStops = false,\n size = 'xs',\n thumbLabels,\n ...props\n}: RefAttributes<HTMLDivElement> & SliderProps) {\n const vertical = orientation === 'vertical';\n return <RACSlider orientation={orientation} {...props} {...mergeStatefulStyles(stylex.props(groupStyles.root, styles.root, sizes[size], vertical && styles.rootVertical), props)}>\n {label === undefined ? null : <FieldLabel variant=\"group\">{label}</FieldLabel>}\n <SliderTrack {...mergeStatefulStyles((state: SliderTrackRenderProps) => ({\n 0: {\n className: \"x16gdi9t x9f619 x1ypdohk xh8yej3 x1n2onr6\"\n },\n 2: {\n className: \"x9f619 x1ypdohk x1n2onr6 x5yr21d x1iyjqo2 xluoxwi x2lwn1j\"\n },\n 1: {\n className: \"x16gdi9t x9f619 xh8yej3 x1n2onr6 x1h6gzvc\"\n },\n 3: {\n className: \"x9f619 x1n2onr6 x5yr21d x1iyjqo2 xluoxwi x2lwn1j x1h6gzvc\"\n }\n })[!!vertical << 1 | !!state.isDisabled << 0], {})}>\n {trackContent({\n icon,\n showStops,\n size,\n vertical\n }, thumbLabels)}\n </SliderTrack>\n </RACSlider>;\n}\n\n// The fractions of the way along the track that a step lands on, ends left\n// out: those are drawn as the end stops, the page's gap in from each end.\nfunction stepsOf(state: SliderState) {\n const min = state.getThumbMinValue(0);\n const max = state.getThumbMaxValue(state.values.length - 1);\n const fractions: number[] = [];\n if (state.step <= 0) {\n return fractions;\n }\n for (let index = 1; min + index * state.step < max; index++) {\n fractions.push(state.getValuePercent(min + index * state.step));\n }\n return fractions;\n}\n\n// What a handle draws: its value while it is dragged or has keyboard focus.\n// Built by a call rather than written inline at the prop, which is what\n// react-perf's no-new-function-as-prop is after; the React Compiler memoises\n// the result on its inputs.\nfunction thumbContent(index: number, vertical: boolean) {\n return (state: SliderThumbRenderProps) => state.isDragging || state.isFocusVisible ? <SliderOutput {...{\n 0: {\n className: \"x6s0dn4 x1c5gpgi xn3w4p2 x1dkaolv x9f619 x1girmi0 x78zum5 xkknnkr x14zspaw x1v9cpvo x3mk9i xbudbmw xl56j7k x155f00i x1lz68p4 x900493 x18fpw6u x10l6tqk xaf021q xuuh30 xuxw1ft\"\n },\n 1: {\n className: \"x6s0dn4 x1c5gpgi xn3w4p2 x1dkaolv x9f619 x1girmi0 x78zum5 xkknnkr x14zspaw x1v9cpvo xl56j7k x155f00i x1lz68p4 x900493 x18fpw6u x10l6tqk xuxw1ft xdd4er5 xwa60dl x15zsqls xhi6v0a x1cb1t30\"\n }\n }[!!vertical << 0]}>\n {state.state.getThumbValueLabel(index)}\n </SliderOutput> : null;\n}\nfunction thumbStyles(vertical: boolean) {\n return (state: SliderThumbRenderProps) => stylex.props(styles.thumb, vertical && styles.thumbVertical, (state.isDragging || state.isFocusVisible) && (vertical ? styles.thumbActiveVertical : styles.thumbActive), state.isDragging && styles.thumbDragging, state.isFocusVisible && styles.thumbFocused, state.isDisabled && styles.thumbDisabled);\n}\n\n// The track's parts and handles, from the slider's state: an inactive part\n// before the first handle of a range, the active part up to or between the\n// handles, and the inactive part after the last one carrying the stop.\nfunction trackContent(extras: Extras, thumbLabels: string[] | undefined) {\n return ({\n isDisabled,\n state\n }: SliderTrackRenderProps) => {\n const {\n icon,\n showStops,\n size,\n vertical\n } = extras;\n const fractions = state.values.map((_, index) => state.getThumbPercent(index));\n const first = fractions[0] ?? 0;\n const last = fractions.at(-1) ?? 0;\n const range = fractions.length > 1;\n const parts: Part[] = [...(range ? [{\n active: false,\n end: before(first),\n name: 'before',\n start: AT_END\n } as const] : []), {\n active: true,\n end: before(last),\n name: 'active',\n start: range ? after(first) : AT_END\n }, {\n active: false,\n end: AT_END,\n name: 'after',\n start: after(last)\n }];\n const hasIcon = icon !== undefined && icon !== null && !range && (size === 'md' || size === 'lg' || size === 'xl');\n const steps = showStops ? stepsOf(state) : [];\n const place = vertical ? placements.block : placements.inline;\n const innerStart = vertical ? styles.innerBlockStart : styles.innerInlineStart;\n const innerEnd = vertical ? styles.innerBlockEnd : styles.innerInlineEnd;\n return <>\n {parts.map(part => <span key={part.name} {...stylex.props(styles.segment, vertical && styles.segmentVertical, part.active && styles.active, part.active && hasIcon && styles.activeHoldingIcon, isDisabled && (part.active ? styles.activeDisabled : styles.inactiveDisabled), part.start !== AT_END && innerStart, part.end !== AT_END && innerEnd, place(insetOf(part.start), insetOf(part.end)))}>\n {partContent(part, extras, isDisabled, steps, part.active && hasIcon)}\n </span>)}\n {fractions.map((_, index) => <SliderThumb aria-label={thumbLabels?.[index]} index={index}\n // oxlint-disable-next-line react/no-array-index-key -- a handle's position is its identity\n key={index} {...mergeStatefulStyles(thumbStyles(vertical), {})}>\n {thumbContent(index, vertical)}\n </SliderThumb>)}\n </>;\n };\n}\nexport type { SliderProps, SliderSize };\nexport default Slider;"],"mappings":";;;;;;;;;;AAgFA,MAAMO,QAAQD;;AAEd,MAAME,OAAO;AAQb,MAAMC,QAAQ;CACZC,IAAI;EACF,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;EACjB,kBAAkB;EAClBC,OAAO;CACT;CACAC,IAAI;EACF,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;EACjB,kBAAkB;EAClBD,OAAO;CACT;CACAE,IAAI;EACF,mBAAmB;EACnB,mBAAmB;EACnB,kBAAkB;EAClBF,OAAO;CACT;CACAG,IAAI;EACF,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;EACjB,kBAAkB;EAClBH,OAAO;CACT;CACAI,IAAI;EACF,mBAAmB;EACnB,mBAAmB;EACnB,kBAAkB;EAClBJ,OAAO;CACT;AACF;AACA,MAAMK,SAAS;CACbC,QAAQ;EACNC,QAAQ;EACRP,OAAO;CACT;CACAQ,gBAAgB;EACdD,QAAQ;EACRP,OAAO;CACT;CACAS,mBAAmB;EACjBC,QAAQ;EACRV,OAAO;CACT;CACAW,MAAM;EACJC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AaH,OAAO3D,QAAQ;EAClB,GAFZ2D,KAEY,CAAC,CAClB,EAAA,CAAA;CACJ;AACF"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","stylex","Slider","RACSlider","groupStyles","mergeStatefulStyles","GAP","CLEAR","STOP","sizes","lg","$$css","md","sm","xl","xs","styles","active","kWkggS","activeDisabled","activeHoldingIcon","k9g6sI","icon","kGNEyG","kZKoxP","kMwMTN","k1xSpc","kGuDYH","kzqmXN","k87sOh","kLqNvP","kjj79g","kVAEAm","iconDisabled","iconRoomBlock","iconRoomBlockXl","iconRoomInline","iconRoomInlineXl","iconVertical","krVfgx","inactiveDisabled","innerBlockEnd","kT0f0o","kVL7Gh","innerBlockStart","kfmiAY","krdFHd","innerInlineEnd","innerInlineStart","root","rootVertical","segment","kVAM5u","kaIpWk","ksu8eU","kMzoRj","kB7OPa","kVQacm","segmentVertical","stop","stopActive","stopActiveDisabled","stopDisabled","stopEnd","kt4wiu","stopEndVertical","stopStart","stopStartVertical","stopVertical","thumb","k6CgDc","kkrTdU","kjBf7l","kInvED","k3XXqK","kMeerF","kIyJzY","k1ekBW","kAMwcw","thumbActive","thumbActiveVertical","thumbDisabled","thumbDragging","thumbFocused","thumbVertical","kbCHJM","_temp","_temp2","placements","block","start","end","val","undefined","inline","stopBlock","offset","stopInline","showStops","size","vertical","fraction","px","name","label","orientation","thumbLabels","AT_END","after","before","iconRoom","insetIcon","isDisabled","room","props","insetOf","offsetIn","share","partContent","part","extras","steps","hasIcon","from","to","length","inside","filter","place","atStart","atEnd","map","t0","$","T0","t1","t2","t3","t4","t5","t6","t7","t8","t9","state","0","className","2","1","3","trackContent","stepsOf","min","getThumbMinValue","max","getThumbMaxValue","values","fractions","step","index","push","getValuePercent","thumbContent","isDragging","isFocusVisible","getThumbValueLabel","thumbStyles","_","getThumbPercent","first","last","at","range","parts","innerStart","innerEnd"],"sources":["../../../src/components/slider/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { SliderProps as RACSliderProps, SliderState, SliderThumbRenderProps, SliderTrackRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { Slider as RACSlider, SliderOutput, SliderThumb, SliderTrack } from 'react-aria-components';\nimport { FieldLabel } from '../../field';\nimport { groupStyles } from '../../field/styles';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii, spacing, stateLayerOpacity, typography } from '../../tokens/design.tokens.stylex';\n\n// The sliders page. At the size its tokens call extra-small, the default: a\n// 16dp track with an 8dp corner, the active part in primary and the inactive\n// part in secondary container, a 4dp stop in on secondary container 6dp from\n// the inactive end, and a handle 4dp wide and 44dp tall in primary that\n// narrows to 2dp while pressed or focused. The track parts on each side of\n// the handle, with 6dp of space between them and it, and their corners\n// against the handle are 2dp where their outer ends are full. Disabled, the\n// active part and the handle are on surface at the disabled content opacity\n// and the inactive part at the disabled container opacity.\n//\n// `size` takes the page's four larger sizes, which thicken the track and\n// round its ends more, and lengthen the handle from M up:\n//\n// | Size | Track | Corner | Handle | Inset icon |\n// | ---- | ----- | ------ | ------ | ---------- |\n// | xs | 16dp | 8dp | 44dp | |\n// | sm | 24dp | 8dp | 44dp | |\n// | md | 40dp | 12dp | 52dp | 24dp |\n// | lg | 56dp | 16dp | 68dp | 24dp |\n// | xl | 96dp | 28dp | 108dp | 32dp |\n//\n// The handle stays 4dp wide, the corners against it 2dp and the space beside\n// it 6dp at every size.\n//\n// `showStops` is the page's stops configuration, which it used to call the\n// discrete slider: a 4dp stop at every step, in on primary on the active part\n// and on secondary container on the inactive one, so the reader can see\n// where the handle can land. The stops at the two ends sit 6dp in from them,\n// as the single stop does. A part clips what it holds, which is what hides\n// the stops beside the handle: the part ends 6dp short of it.\n//\n// `icon` is the page's inset icon, at the start of the active part in on\n// primary, from M up: the page gives it a size at M, L and XL alone. It is\n// 10dp in from the part's start, which is MDC-Android's padding, since the\n// page gives none, and like MDC-Android it is drawn only while the part has\n// room for it and that padding on both sides, and for a single handle.\n//\n// The value indicator is the page's label: inverse surface under label-large\n// in inverse on surface, 44dp tall and at least 48dp wide, 12dp above the\n// handle. It shows while the handle is dragged or has keyboard focus, and it\n// is React Aria's `SliderOutput`, so what it shows is what the slider\n// announces.\n//\n// React Aria's `Slider` is the root, `SliderTrack` the strip the handles are\n// placed along by percent, and `SliderThumb` each handle around a visually\n// hidden range input. The track's parts are drawn here from those percents\n// rather than with `SliderFill`, since the page's parts stop short of the\n// handle on both sides and the fill runs up to it. A range slider is the\n// same track with two handles and the active part between them.\n//\n// Vertical, the same parts run along the block axis, with the active part\n// rising from the bottom and the indicator to the start side of the handle.\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// The sliders page's own measurements, which are constants of the component\n// rather than steps of the consumer's spacing scale. The clearance used to be\n// read off `spacing.sm` — true at its default 8, since 6 plus half the\n// handle comes to the same — so a theme moving that step opened the gap\n// beside the handle while the stop, written as the literal it is, stayed\n// where the page puts it.\nconst GAP = 6;\nconst HANDLE_WIDTH = 4;\n/** How far a part stops short of a handle's centre. */\nconst CLEAR = GAP + HANDLE_WIDTH / 2;\n/** A stop's size. */\nconst STOP = 4;\n/** MDC-Android's padding either side of the inset icon. */\nconst ICON_PADDING = 10;\ntype SliderSize = 'lg' | 'md' | 'sm' | 'xl' | 'xs';\n\n// The sizes, as the custom properties every part reads: the track's\n// thickness, its outer corner and the handle's length, which the track\n// strip takes as its own thickness too.\nconst sizes = {\n lg: {\n \"--slider-corner\": \"x1hr852m\",\n \"--slider-handle\": \"x1i1s3m4\",\n \"--slider-icon\": \"xsfv7fh\",\n \"--slider-track\": \"xdrquod\",\n $$css: true\n },\n md: {\n \"--slider-corner\": \"x1welmdy\",\n \"--slider-handle\": \"x1290pjo\",\n \"--slider-icon\": \"xsfv7fh\",\n \"--slider-track\": \"xhx1aj5\",\n $$css: true\n },\n sm: {\n \"--slider-corner\": \"x1y8vi8n\",\n \"--slider-handle\": \"x1czf5nl\",\n \"--slider-track\": \"xf334ng\",\n $$css: true\n },\n xl: {\n \"--slider-corner\": \"x1tzw2no\",\n \"--slider-handle\": \"x1aoofsu\",\n \"--slider-icon\": \"xmfnedx\",\n \"--slider-track\": \"x1s6dhuk\",\n $$css: true\n },\n xs: {\n \"--slider-corner\": \"x1y8vi8n\",\n \"--slider-handle\": \"x1czf5nl\",\n \"--slider-track\": \"x16oikcs\",\n $$css: true\n }\n};\nconst styles = {\n active: {\n kWkggS: \"xnety89 x1jzqe4\",\n $$css: true\n },\n activeDisabled: {\n kWkggS: \"x1crcgwy\",\n $$css: true\n },\n activeHoldingIcon: {\n k9g6sI: \"xpqogu8\",\n $$css: true\n },\n icon: {\n kGNEyG: \"x6s0dn4\",\n kZKoxP: \"xi7vqlm\",\n kMwMTN: \"xwjo7ld x1k5gbb1\",\n k1xSpc: \"x78zum5\",\n kGuDYH: \"xuu3ggl\",\n kzqmXN: \"xoxpges\",\n k87sOh: \"xdtafdd\",\n kLqNvP: \"xi5uv41\",\n kjj79g: \"xl56j7k\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n },\n iconDisabled: {\n kMwMTN: \"x1girmi0\",\n $$css: true\n },\n iconRoomBlock: {\n k1xSpc: \"x1uo08md x78zum5\",\n $$css: true\n },\n iconRoomBlockXl: {\n k1xSpc: \"x2mjljv x78zum5\",\n $$css: true\n },\n iconRoomInline: {\n k1xSpc: \"x1cueg3v x78zum5\",\n $$css: true\n },\n iconRoomInlineXl: {\n k1xSpc: \"x18ymn08 x78zum5\",\n $$css: true\n },\n iconVertical: {\n krVfgx: \"x1jn9clo\",\n k87sOh: \"x80663w\",\n kLqNvP: \"x1m57d8a\",\n $$css: true\n },\n inactiveDisabled: {\n kWkggS: \"x19v6zzp\",\n $$css: true\n },\n innerBlockEnd: {\n kT0f0o: \"x1ui04y5\",\n kVL7Gh: \"x6en5u8\",\n $$css: true\n },\n innerBlockStart: {\n kfmiAY: \"x1e4oeot\",\n krdFHd: \"xr9e8f9\",\n $$css: true\n },\n innerInlineEnd: {\n kT0f0o: \"x1ui04y5\",\n kfmiAY: \"x1e4oeot\",\n $$css: true\n },\n innerInlineStart: {\n kVL7Gh: \"x6en5u8\",\n krdFHd: \"xr9e8f9\",\n $$css: true\n },\n root: {\n kzqmXN: \"xh8yej3\",\n $$css: true\n },\n rootVertical: {\n kGNEyG: \"x1cy8zhl\",\n kZKoxP: \"x1u5z0ei\",\n kzqmXN: \"x14atkfc\",\n $$css: true\n },\n segment: {\n kWkggS: \"x15dekr4 x9yvj25\",\n kZKoxP: \"x9w084k\",\n kVAM5u: \"x1ylmb6m\",\n kaIpWk: \"x1xpg3mf\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x13rsnn2\",\n kB7OPa: \"x9f619\",\n k87sOh: \"x1i1s66i\",\n kVQacm: \"xb3r6kr\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n },\n segmentVertical: {\n kZKoxP: \"xt7dq6l\",\n kzqmXN: \"x3fzmgt\",\n k87sOh: \"x80663w\",\n kLqNvP: \"x9k4rl8\",\n $$css: true\n },\n stop: {\n kWkggS: \"x81krv7 x1tt9vl1\",\n kZKoxP: \"xqu0tyb\",\n kaIpWk: \"x16fbrrb\",\n kzqmXN: \"x51ohtg\",\n k87sOh: \"x17a0tka\",\n kVAEAm: \"x10l6tqk\",\n $$css: true\n },\n stopActive: {\n kWkggS: \"x1ntwmx2 x1sir5s4\",\n $$css: true\n },\n stopActiveDisabled: {\n kWkggS: \"x1dbj914\",\n $$css: true\n },\n stopDisabled: {\n kWkggS: \"x1crcgwy\",\n $$css: true\n },\n stopEnd: {\n kt4wiu: \"x1f889gz\",\n $$css: true\n },\n stopEndVertical: {\n k87sOh: \"x1atx4j1\",\n kt4wiu: \"x1woyocn\",\n $$css: true\n },\n stopStart: {\n kLqNvP: \"xrr41r3\",\n $$css: true\n },\n stopStartVertical: {\n krVfgx: \"xrb244j\",\n k87sOh: \"x80663w\",\n kLqNvP: \"xhi6v0a\",\n $$css: true\n },\n stopVertical: {\n k87sOh: \"x80663w\",\n kLqNvP: \"xml7xvy\",\n $$css: true\n },\n thumb: {\n k6CgDc: \"x12w9bfk\",\n kWkggS: \"xnety89 x1jzqe4\",\n kZKoxP: \"x16gdi9t\",\n kVAM5u: \"x1ylmb6m\",\n kaIpWk: \"x1dkaolv\",\n ksu8eU: \"xx61lck\",\n kMzoRj: \"x13rsnn2\",\n kB7OPa: \"x9f619\",\n kkrTdU: \"x1jm3nie\",\n kzqmXN: \"x51ohtg\",\n k87sOh: \"xwa60dl\",\n kjBf7l: \"xrgy624 x1x84bn5\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"x1t137rt\",\n kMeerF: \"x1de99jn\",\n kIyJzY: \"x1qno0dh\",\n k1ekBW: \"xdl150w\",\n kAMwcw: \"xpc4ca7\",\n $$css: true\n },\n thumbActive: {\n kzqmXN: \"xfo62xy\",\n $$css: true\n },\n thumbActiveVertical: {\n kZKoxP: \"x36qwtl\",\n kzqmXN: \"xluoxwi\",\n $$css: true\n },\n thumbDisabled: {\n kWkggS: \"x1crcgwy\",\n kkrTdU: \"x1h6gzvc\",\n $$css: true\n },\n thumbDragging: {\n kkrTdU: \"xi9pz9s\",\n $$css: true\n },\n thumbFocused: {\n k3XXqK: \"xaatb59\",\n $$css: true\n },\n thumbVertical: {\n kZKoxP: \"xqu0tyb\",\n kzqmXN: \"xluoxwi\",\n k87sOh: \"x80663w\",\n kbCHJM: \"x1nrll8i\",\n $$css: true\n }\n};\n\n// Where each part of the track starts and ends, as insets from the track's\n// two ends, and where a stop sits inside a part. Dynamic styles, since the\n// percents come from the value at render time and StyleX compiles its\n// classes ahead of time; each writes its insets to custom properties inline.\nconst _temp = {\n krVfgx: \"xiicpxy\",\n k87sOh: \"x5mnzd7\",\n \"$$css\": true\n};\nconst _temp2 = {\n krVfgx: \"xiicpxy\",\n \"$$css\": true\n};\nconst placements = {\n block: (start: string, end: string) => [_temp, {\n \"--x-insetBlockEnd\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(start),\n \"--x-insetBlockStart\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(end)\n }],\n inline: (start: string, end: string) => [{\n kt4wiu: end != null ? \"xqxgn94\" : end,\n kLqNvP: start != null ? \"x1lxsm33\" : start,\n $$css: true\n }, {\n \"--x-insetInlineEnd\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(end),\n \"--x-insetInlineStart\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(start)\n }],\n stopBlock: (offset: string) => [_temp2, {\n \"--x-insetBlockEnd\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(offset)\n }],\n stopInline: (offset: string) => [{\n kLqNvP: offset != null ? \"x1lxsm33\" : offset,\n $$css: true\n }, {\n \"--x-insetInlineStart\": (val => typeof val === \"number\" ? val + \"px\" : val != null ? val : undefined)(offset)\n }]\n};\n\n/** What a track draws besides its parts and handles. */\ntype Extras = {\n icon: ReactNode;\n showStops: boolean;\n size: SliderSize;\n vertical: boolean;\n};\n\n/** One end of a part: a fraction of the track's length, and pixels on top. */\ntype Inset = {\n fraction: number;\n px: number;\n};\n\n/**\n * A part of the track, by the insets of its two ends from the track's, and\n * which of the three it is: the inactive part before a range's first handle,\n * the active part, or the inactive part after the last handle.\n */\ntype Part = {\n active: boolean;\n end: Inset;\n name: 'active' | 'after' | 'before';\n start: Inset;\n};\ntype SliderProps = Omit<RACSliderProps, 'children' | 'orientation'> & {\n /**\n * The page's inset icon, at the start of the active part, from `md` up:\n * the page gives it a size at M, L and XL alone. Drawn for a single\n * handle, and only while the active part has room for it.\n */\n icon?: ReactNode;\n /**\n * What the slider sets. A slider that a row labels some other way leaves\n * it out and passes `aria-label` instead.\n */\n label?: string;\n /**\n * Along which axis the handle moves. A vertical slider is 240px tall until\n * `style` on the root says otherwise.\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical';\n /**\n * A stop at every step, the page's stops configuration, so the reader can\n * see where the handle can land. Meant for a slider with a handful of\n * steps: each stop is a 4dp dot, and a fine step draws a crowd of them.\n * @default false\n */\n showStops?: boolean;\n /**\n * The page's sizes, by the track's thickness: 16dp at `xs`, 24dp at `sm`,\n * 40dp at `md`, 56dp at `lg` and 96dp at `xl`, with the handle 44dp long\n * up to `sm` and 52dp, 68dp and 108dp past it.\n * @default 'xs'\n */\n size?: SliderSize;\n /**\n * A name for each handle of a range slider, in order, since two handles\n * named by the same label cannot be told apart.\n */\n thumbLabels?: string[];\n};\nconst AT_END: Inset = {\n fraction: 0,\n px: 0\n};\n\n// A part's start inset, clear of a handle at `fraction` of the way along. The\n// fraction lands on the handle's centre, so half the handle's width joins the\n// page's gap to reach its edge.\nfunction after(fraction: number): Inset {\n return {\n fraction,\n px: CLEAR\n };\n}\n\n// A part's end inset, clear of a handle at `fraction` of the way along.\nfunction before(fraction: number): Inset {\n return {\n fraction: 1 - fraction,\n px: CLEAR\n };\n}\n\n// The container query that hides the inset icon for want of room: the part's\n// length along the track, against the icon and its padding at this size.\nfunction iconRoom(size: SliderSize, vertical: boolean) {\n if (vertical) {\n return size === 'xl' ? styles.iconRoomBlockXl : styles.iconRoomBlock;\n }\n return size === 'xl' ? styles.iconRoomInlineXl : styles.iconRoomInline;\n}\n\n// The inset icon, at the foot of the active part, while the part has room.\nfunction insetIcon({\n icon,\n size,\n vertical\n}: Extras, isDisabled: boolean): ReactNode {\n const room = iconRoom(size, vertical);\n return <span {...stylex.props(styles.icon, vertical && styles.iconVertical, room, isDisabled && styles.iconDisabled)}>\n {icon}\n </span>;\n}\nfunction insetOf({\n fraction,\n px\n}: Inset) {\n return `calc(${fraction * 100}% + ${px}px)`;\n}\n\n// Where a stop at `fraction` of the way along the track starts inside a part.\n// The part's own length is the `100%` the expression has to work from, and\n// the track's is that plus both insets, so a fraction of the track is a\n// share of the part's length plus their pixels.\nfunction offsetIn({\n end,\n start\n}: Part, fraction: number) {\n const share = 1 - start.fraction - end.fraction;\n const scale = (fraction - start.fraction) / share;\n return `calc(${scale} * (100% + ${start.px + end.px}px) - ${start.px + STOP / 2}px)`;\n}\n\n// What a part holds: a stop at each step inside it, the end stops where it\n// reaches the track's ends, and the inset icon.\nfunction partContent(part: Part, extras: Extras, isDisabled: boolean, steps: number[], hasIcon: boolean) {\n const {\n showStops,\n vertical\n } = extras;\n const stop = [styles.stop, vertical && styles.stopVertical, part.active && styles.stopActive, isDisabled && (part.active ? styles.stopActiveDisabled : styles.stopDisabled)];\n const from = part.start.fraction;\n const to = 1 - part.end.fraction;\n const length = 1 - part.start.fraction - part.end.fraction;\n const inside = showStops && length > 0 ? steps.filter(fraction => fraction >= from && fraction <= to) : [];\n const place = vertical ? placements.stopBlock : placements.stopInline;\n const atStart = part.start.fraction === 0 && part.start.px === 0;\n // The single stop at the inactive end is drawn with or without the stops\n // configuration; the one at the start is the configuration's own.\n const atEnd = part.end.fraction === 0 && part.end.px === 0 && !part.active;\n return <>\n {hasIcon ? insetIcon(extras, isDisabled) : null}\n {showStops && atStart ? <span {...stylex.props(...stop, vertical ? styles.stopStartVertical : styles.stopStart)} /> : null}\n {inside.map(fraction => <span key={fraction} {...stylex.props(...stop, place(offsetIn(part, fraction)))} />)}\n {atEnd ? <span {...stylex.props(...stop, vertical ? styles.stopEndVertical : styles.stopEnd)} /> : null}\n </>;\n}\n\n/**\n * A slider for one value, or for a range when the value is a pair. The value\n * is React Aria's: pass `value` with `onChange` to control it, or\n * `defaultValue` to let it keep its own, with `minValue`, `maxValue` and\n * `step` to shape it and `formatOptions` to say how it reads. Arrow keys\n * move a handle by a step, Page Up and Page Down by ten, Home and End to\n * the ends.\n *\n * The call site's `className` and `style` land on the slider as a whole,\n * which is the element a layout positions and the one that gives a vertical\n * slider its height.\n */\nfunction Slider({\n icon,\n label,\n orientation = 'horizontal',\n showStops = false,\n size = 'xs',\n thumbLabels,\n ...props\n}: RefAttributes<HTMLDivElement> & SliderProps) {\n const vertical = orientation === 'vertical';\n return <RACSlider orientation={orientation} {...props} {...mergeStatefulStyles(stylex.props(groupStyles.root, styles.root, sizes[size], vertical && styles.rootVertical), props)}>\n {label === undefined ? null : <FieldLabel variant=\"group\">{label}</FieldLabel>}\n <SliderTrack {...mergeStatefulStyles((state: SliderTrackRenderProps) => ({\n 0: {\n className: \"x16gdi9t x9f619 x1ypdohk xh8yej3 x1n2onr6\"\n },\n 2: {\n className: \"x9f619 x1ypdohk x1n2onr6 x5yr21d x1iyjqo2 xluoxwi x2lwn1j\"\n },\n 1: {\n className: \"x16gdi9t x9f619 xh8yej3 x1n2onr6 x1h6gzvc\"\n },\n 3: {\n className: \"x9f619 x1n2onr6 x5yr21d x1iyjqo2 xluoxwi x2lwn1j x1h6gzvc\"\n }\n })[!!vertical << 1 | !!state.isDisabled << 0], {})}>\n {trackContent({\n icon,\n showStops,\n size,\n vertical\n }, thumbLabels)}\n </SliderTrack>\n </RACSlider>;\n}\n\n// The fractions of the way along the track that a step lands on, ends left\n// out: those are drawn as the end stops, the page's gap in from each end.\nfunction stepsOf(state: SliderState) {\n const min = state.getThumbMinValue(0);\n const max = state.getThumbMaxValue(state.values.length - 1);\n const fractions: number[] = [];\n if (state.step <= 0) {\n return fractions;\n }\n for (let index = 1; min + index * state.step < max; index++) {\n fractions.push(state.getValuePercent(min + index * state.step));\n }\n return fractions;\n}\n\n// What a handle draws: its value while it is dragged or has keyboard focus.\n// Built by a call rather than written inline at the prop, which is what\n// react-perf's no-new-function-as-prop is after; the React Compiler memoises\n// the result on its inputs.\nfunction thumbContent(index: number, vertical: boolean) {\n return (state: SliderThumbRenderProps) => state.isDragging || state.isFocusVisible ? <SliderOutput {...{\n 0: {\n className: \"x6s0dn4 x1c5gpgi xn3w4p2 x1dkaolv x9f619 x1girmi0 x78zum5 xkknnkr x14zspaw x1v9cpvo x3mk9i xbudbmw xl56j7k x155f00i x1lz68p4 x900493 x18fpw6u x10l6tqk xaf021q xuuh30 xuxw1ft\"\n },\n 1: {\n className: \"x6s0dn4 x1c5gpgi xn3w4p2 x1dkaolv x9f619 x1girmi0 x78zum5 xkknnkr x14zspaw x1v9cpvo xl56j7k x155f00i x1lz68p4 x900493 x18fpw6u x10l6tqk xuxw1ft xdd4er5 xwa60dl x15zsqls xhi6v0a x1cb1t30\"\n }\n }[!!vertical << 0]}>\n {state.state.getThumbValueLabel(index)}\n </SliderOutput> : null;\n}\nfunction thumbStyles(vertical: boolean) {\n return (state: SliderThumbRenderProps) => stylex.props(styles.thumb, vertical && styles.thumbVertical, (state.isDragging || state.isFocusVisible) && (vertical ? styles.thumbActiveVertical : styles.thumbActive), state.isDragging && styles.thumbDragging, state.isFocusVisible && styles.thumbFocused, state.isDisabled && styles.thumbDisabled);\n}\n\n// The track's parts and handles, from the slider's state: an inactive part\n// before the first handle of a range, the active part up to or between the\n// handles, and the inactive part after the last one carrying the stop.\nfunction trackContent(extras: Extras, thumbLabels: string[] | undefined) {\n return ({\n isDisabled,\n state\n }: SliderTrackRenderProps) => {\n const {\n icon,\n showStops,\n size,\n vertical\n } = extras;\n const fractions = state.values.map((_, index) => state.getThumbPercent(index));\n const first = fractions[0] ?? 0;\n const last = fractions.at(-1) ?? 0;\n const range = fractions.length > 1;\n const parts: Part[] = [...(range ? [{\n active: false,\n end: before(first),\n name: 'before',\n start: AT_END\n } as const] : []), {\n active: true,\n end: before(last),\n name: 'active',\n start: range ? after(first) : AT_END\n }, {\n active: false,\n end: AT_END,\n name: 'after',\n start: after(last)\n }];\n const hasIcon = icon !== undefined && icon !== null && !range && (size === 'md' || size === 'lg' || size === 'xl');\n const steps = showStops ? stepsOf(state) : [];\n const place = vertical ? placements.block : placements.inline;\n const innerStart = vertical ? styles.innerBlockStart : styles.innerInlineStart;\n const innerEnd = vertical ? styles.innerBlockEnd : styles.innerInlineEnd;\n return <>\n {parts.map(part => <span key={part.name} {...stylex.props(styles.segment, vertical && styles.segmentVertical, part.active && styles.active, part.active && hasIcon && styles.activeHoldingIcon, isDisabled && (part.active ? styles.activeDisabled : styles.inactiveDisabled), part.start !== AT_END && innerStart, part.end !== AT_END && innerEnd, place(insetOf(part.start), insetOf(part.end)))}>\n {partContent(part, extras, isDisabled, steps, part.active && hasIcon)}\n </span>)}\n {fractions.map((_, index) => <SliderThumb aria-label={thumbLabels?.[index]} index={index}\n // oxlint-disable-next-line react/no-array-index-key -- a handle's position is its identity\n key={index} {...mergeStatefulStyles(thumbStyles(vertical), {})}>\n {thumbContent(index, vertical)}\n </SliderThumb>)}\n </>;\n };\n}\nexport type { SliderProps, SliderSize };\nexport default Slider;"],"mappings":";;;;;;;;;;AAgFA,MAAMO,QAAQD;;AAEd,MAAME,OAAO;AAQb,MAAMC,QAAQ;CACZC,IAAI;EACF,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;EACjB,kBAAkB;EAClBC,OAAO;CACT;CACAC,IAAI;EACF,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;EACjB,kBAAkB;EAClBD,OAAO;CACT;CACAE,IAAI;EACF,mBAAmB;EACnB,mBAAmB;EACnB,kBAAkB;EAClBF,OAAO;CACT;CACAG,IAAI;EACF,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;EACjB,kBAAkB;EAClBH,OAAO;CACT;CACAI,IAAI;EACF,mBAAmB;EACnB,mBAAmB;EACnB,kBAAkB;EAClBJ,OAAO;CACT;AACF;AACA,MAAMK,SAAS;CACbC,QAAQ;EACNC,QAAQ;EACRP,OAAO;CACT;CACAQ,gBAAgB;EACdD,QAAQ;EACRP,OAAO;CACT;CACAS,mBAAmB;EACjBC,QAAQ;EACRV,OAAO;CACT;CACAW,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;E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|
import { ReactNode, RefAttributes } from "react";
|
|
2
|
-
import { CellProps, ColumnProps, ResizableTableContainerProps, RowProps, TableBodyProps, TableFooterProps, TableHeaderProps, TableLoadMoreItemProps, TableProps } from "react-aria-components";
|
|
3
|
-
type TableBodyProps
|
|
2
|
+
import { CellProps, ColumnProps, ResizableTableContainerProps, RowProps, TableBodyProps as TableBodyProps$1, TableFooterProps as TableFooterProps$1, TableHeaderProps as TableHeaderProps$1, TableLoadMoreItemProps, TableProps as TableProps$1 } from "react-aria-components";
|
|
3
|
+
type TableBodyProps<T extends object = object> = Omit<TableBodyProps$1<T>, 'className' | 'renderEmptyState' | 'style'> & {
|
|
4
4
|
/** A function may compute the class from the body's render state. */
|
|
5
|
-
className?: TableBodyProps<T>['className'];
|
|
5
|
+
className?: TableBodyProps$1<T>['className'];
|
|
6
6
|
/**
|
|
7
7
|
* What the table shows in place of rows when it has none: React Aria's own
|
|
8
8
|
* render function, under React Aria's own name, as List, ListBox, Tree and
|
|
9
9
|
* ChipGroup take it. What it returns is drawn in a row of its own spanning
|
|
10
10
|
* every column, inside the muted, padded box the table draws there.
|
|
11
11
|
*/
|
|
12
|
-
renderEmptyState?: TableBodyProps<T>['renderEmptyState'];
|
|
12
|
+
renderEmptyState?: TableBodyProps$1<T>['renderEmptyState'];
|
|
13
13
|
/** A function may compute the style from the body's render state. */
|
|
14
|
-
style?: TableBodyProps<T>['style'];
|
|
14
|
+
style?: TableBodyProps$1<T>['style'];
|
|
15
15
|
};
|
|
16
16
|
type TableCellProps = Omit<CellProps, 'children' | 'className' | 'style'> & {
|
|
17
17
|
/** What the cell holds. */
|
|
@@ -48,8 +48,8 @@ type TableColumnProps = {
|
|
|
48
48
|
/** A function may compute the style from the column's render state. */
|
|
49
49
|
style?: ColumnProps['style'];
|
|
50
50
|
} & Omit<ColumnProps, 'children' | 'className' | 'style'>;
|
|
51
|
-
type TableFooterProps
|
|
52
|
-
type TableHeaderProps
|
|
51
|
+
type TableFooterProps<T extends object = object> = TableFooterProps$1<T>;
|
|
52
|
+
type TableHeaderProps<T extends object = object> = TableHeaderProps$1<T>;
|
|
53
53
|
type TableLoadMoreProps = Omit<TableLoadMoreItemProps, 'children'> & {
|
|
54
54
|
/**
|
|
55
55
|
* What the row says while it is loading. Read by a screen reader; the ring
|
|
@@ -59,9 +59,9 @@ type TableLoadMoreProps = Omit<TableLoadMoreItemProps, 'children'> & {
|
|
|
59
59
|
*/
|
|
60
60
|
label?: string;
|
|
61
61
|
};
|
|
62
|
-
type TableProps
|
|
62
|
+
type TableProps = {
|
|
63
63
|
/** A function may compute the class from the table's render state. */
|
|
64
|
-
className?: TableProps['className'];
|
|
64
|
+
className?: TableProps$1['className'];
|
|
65
65
|
/** Called as a column is dragged, with every column's width. */
|
|
66
66
|
onResize?: ResizableTableContainerProps['onResize'];
|
|
67
67
|
/** Called once a drag ends, with every column's width. */
|
|
@@ -98,8 +98,8 @@ type TableProps$1 = {
|
|
|
98
98
|
*/
|
|
99
99
|
stickyHeader?: boolean;
|
|
100
100
|
/** A function may compute the style from the table's render state. */
|
|
101
|
-
style?: TableProps['style'];
|
|
102
|
-
} & Omit<TableProps, 'className' | 'style'>;
|
|
101
|
+
style?: TableProps$1['style'];
|
|
102
|
+
} & Omit<TableProps$1, 'className' | 'style'>;
|
|
103
103
|
type TableRowProps<T extends object = object> = Omit<RowProps<T>, 'className' | 'style'> & {
|
|
104
104
|
/** A function may compute the class from the row's render state. */
|
|
105
105
|
className?: RowProps<T>['className'];
|
|
@@ -136,13 +136,13 @@ type TableRowProps<T extends object = object> = Omit<RowProps<T>, 'className' |
|
|
|
136
136
|
* The call site's `className` and `style` land on the table, which is the
|
|
137
137
|
* element a layout positions.
|
|
138
138
|
*/
|
|
139
|
-
declare function Table
|
|
140
|
-
declare namespace Table
|
|
141
|
-
var Body: typeof TableBody
|
|
139
|
+
declare function Table({ onResize, onResizeEnd, resizable, resizeLabel, selectAllLabel, selectLabel, stickyHeader, ...props }: RefAttributes<HTMLTableElement> & TableProps): import("react").JSX.Element;
|
|
140
|
+
declare namespace Table {
|
|
141
|
+
var Body: typeof TableBody;
|
|
142
142
|
var Cell: typeof TableCell;
|
|
143
143
|
var Column: typeof TableColumn;
|
|
144
|
-
var Footer: typeof TableFooter
|
|
145
|
-
var Header: typeof TableHeader
|
|
144
|
+
var Footer: typeof TableFooter;
|
|
145
|
+
var Header: typeof TableHeader;
|
|
146
146
|
var LoadMore: typeof TableLoadMore;
|
|
147
147
|
var Row: typeof TableRow;
|
|
148
148
|
}
|
|
@@ -155,7 +155,7 @@ declare namespace Table$1 {
|
|
|
155
155
|
* the rows inside it, so a `className` here lands on the `<tbody>` through
|
|
156
156
|
* React Aria rather than through a merge.
|
|
157
157
|
*/
|
|
158
|
-
declare function TableBody
|
|
158
|
+
declare function TableBody<T extends object = object>({ renderEmptyState, ...props }: RefAttributes<HTMLTableSectionElement> & TableBodyProps<T>): import("react").JSX.Element;
|
|
159
159
|
/**
|
|
160
160
|
* One cell. `selection` draws this row's checkbox in place of whatever else
|
|
161
161
|
* the cell would hold. On a disabled row the cell fades as a whole, so what
|
|
@@ -177,13 +177,13 @@ declare function TableColumn({ children, resizable, selection, ...props }: RefAt
|
|
|
177
177
|
* A row under the body, for totals and the like. It is not part of the
|
|
178
178
|
* selection or the keyboard navigation — React Aria keeps it out of both.
|
|
179
179
|
*/
|
|
180
|
-
declare function TableFooter
|
|
180
|
+
declare function TableFooter<T extends object = object>(props: RefAttributes<HTMLTableSectionElement> & TableFooterProps<T>): import("react").JSX.Element;
|
|
181
181
|
/**
|
|
182
182
|
* The header row, holding the columns, and the rule drawn under it — which
|
|
183
183
|
* moves to the cells when the header sticks, since a row group's border does
|
|
184
184
|
* not travel with cells `position: sticky` has lifted out of it.
|
|
185
185
|
*/
|
|
186
|
-
declare function TableHeader
|
|
186
|
+
declare function TableHeader<T extends object = object>(props: RefAttributes<HTMLTableSectionElement> & TableHeaderProps<T>): import("react").JSX.Element;
|
|
187
187
|
/**
|
|
188
188
|
* The row the table shows while it is fetching more. React Aria calls
|
|
189
189
|
* `onLoadMore` when this comes into view, and draws it only while
|
|
@@ -196,4 +196,4 @@ declare function TableLoadMore({ label, ref, ...props }: RefAttributes<HTMLTable
|
|
|
196
196
|
* row is pressed.
|
|
197
197
|
*/
|
|
198
198
|
declare function TableRow<T extends object = object>(props: RefAttributes<HTMLTableRowElement> & TableRowProps<T>): import("react").JSX.Element;
|
|
199
|
-
export { TableBody
|
|
199
|
+
export { TableBody, type TableBodyProps, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableFooter, type TableFooterProps, TableHeader, type TableHeaderProps, TableLoadMore, type TableLoadMoreProps, type TableProps, TableRow, type TableRowProps, Table as default };
|