@kanso-labs/kanso-ui 0.47.5 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button/hooks.js +35 -1
- package/dist/button/hooks.js.map +1 -1
- package/dist/button/index.js +78 -65
- package/dist/button/index.js.map +1 -1
- package/dist/calendar/styles.js +5 -5
- package/dist/calendar/styles.js.map +1 -1
- package/dist/chip/styles.js +1 -1
- package/dist/chip/styles.js.map +1 -1
- package/dist/collection/context.js +6 -0
- package/dist/collection/context.js.map +1 -0
- package/dist/collection/styles.js +29 -6
- package/dist/collection/styles.js.map +1 -1
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/calendar/index.js +7 -0
- package/dist/components/calendar/index.js.map +1 -1
- package/dist/components/checkbox/index.js +10 -7
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/checkbox-group/index.js +2 -1
- package/dist/components/checkbox-group/index.js.map +1 -1
- package/dist/components/chip-group/index.js +69 -66
- package/dist/components/chip-group/index.js.map +1 -1
- package/dist/components/color-swatch-picker/index.js +1 -0
- package/dist/components/color-swatch-picker/index.js.map +1 -1
- package/dist/components/combo-box/index.js +5 -1
- package/dist/components/combo-box/index.js.map +1 -1
- package/dist/components/drop-zone/styles.js +11 -11
- package/dist/components/drop-zone/styles.js.map +1 -1
- package/dist/components/fab-menu/index.js +3 -3
- package/dist/components/fab-menu/index.js.map +1 -1
- package/dist/components/icon-button/index.js.map +1 -1
- package/dist/components/list/index.js +58 -11
- package/dist/components/list/index.js.map +1 -1
- package/dist/components/list-box/index.js +82 -103
- package/dist/components/list-box/index.js.map +1 -1
- package/dist/components/navigation-rail/index.js +4 -4
- package/dist/components/navigation-rail/index.js.map +1 -1
- package/dist/components/number-field/index.js +3 -3
- package/dist/components/number-field/index.js.map +1 -1
- package/dist/components/popover/index.js +3 -3
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/radio-group/index.js +12 -11
- package/dist/components/radio-group/index.js.map +1 -1
- package/dist/components/search-field/index.js +4 -4
- package/dist/components/search-field/index.js.map +1 -1
- package/dist/components/select/index.js +5 -1
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sheet/index.js.map +1 -1
- package/dist/components/slider/index.js +2 -2
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/snackbar/index.js +3 -3
- package/dist/components/snackbar/index.js.map +1 -1
- package/dist/components/split-button/index.js +53 -41
- package/dist/components/split-button/index.js.map +1 -1
- package/dist/components/table/index.js +58 -45
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/tabs/index.js +81 -30
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/time-picker/index.js +5 -5
- package/dist/components/time-picker/index.js.map +1 -1
- package/dist/components/tree/index.js +78 -21
- package/dist/components/tree/index.js.map +1 -1
- package/dist/field/index.js +103 -104
- package/dist/field/index.js.map +1 -1
- package/dist/field/styles.js +1 -1
- package/dist/field/styles.js.map +1 -1
- package/dist/hooks/useScrollEdges.js +73 -0
- package/dist/hooks/useScrollEdges.js.map +1 -0
- package/dist/navigation/styles.js +5 -5
- package/dist/navigation/styles.js.map +1 -1
- package/dist/row/styles.js +7 -7
- package/dist/row/styles.js.map +1 -1
- package/dist/styles/color.js +16 -16
- package/dist/styles/color.js.map +1 -1
- package/dist/styles/focus.js +4 -4
- package/dist/styles/focus.js.map +1 -1
- package/dist/styles/overlay.js +3 -3
- package/dist/styles/overlay.js.map +1 -1
- package/dist/styles/scroll-fade.js +33 -0
- package/dist/styles/scroll-fade.js.map +1 -0
- package/dist/styles.css +61 -20
- package/package.json +7 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
3
|
+
import { OptionRowContext } from "../../collection/context.js";
|
|
3
4
|
import { FieldBox, FieldMessage, FieldTrigger, FieldValue } from "../../field/index.js";
|
|
4
5
|
import { fieldStyles, invalidFrom, useFieldValidationBehavior } from "../../field/root.js";
|
|
5
6
|
import { ChevronEndGlyph } from "../../glyphs/index.js";
|
|
@@ -132,7 +133,10 @@ function selectContent(label, leadingIcon, floatingLabel, variant, description,
|
|
|
132
133
|
className: listClassName,
|
|
133
134
|
triggerRef: boxRef,
|
|
134
135
|
UNSTABLE_portalContainer: container,
|
|
135
|
-
children: /* @__PURE__ */ jsx(
|
|
136
|
+
children: /* @__PURE__ */ jsx(OptionRowContext, {
|
|
137
|
+
value: "menu",
|
|
138
|
+
children: /* @__PURE__ */ jsx(ListBox$1, { children: options })
|
|
139
|
+
})
|
|
136
140
|
})
|
|
137
141
|
] });
|
|
138
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_c","stylex","useContext","useRef","Select","RACSelect","SelectStateContext","fieldStyles","invalidFrom","useFieldValidationBehavior","mergeStatefulStyles","overlay","popupOrigin","TRIGGER","chevronFor","isOpen","className","listClassName","state","props","popup","styles","list","placement","kWkggS","kaIpWk","kzqmXN","kskxy","ks0D6T","k7Eaqz","kORKVm","$$css","container","description","error","floatingLabel","label","leadingIcon","options","variant","t0","$","t1","isDisabled","t2","t3","undefined","validationBehavior","boxRef","T0","t4","t5","root","t6","selectContent","t7","isInvalid","isRequired","isFocused","SelectedValue","isPlaceholder","selectionManager","selectedKeys","size","Symbol","for","RACPopover","ListBox","RACSelectValue"],"sources":["../../../src/components/select/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes, RefObject } from 'react';\nimport type { PopoverRenderProps, SelectProps as RACSelectProps, SelectRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { useContext, useRef } from 'react';\nimport { Popover as RACPopover, Select as RACSelect, SelectValue as RACSelectValue, SelectStateContext } from 'react-aria-components';\nimport type { FieldVariant } from '../../field';\nimport { FieldBox, FieldMessage, FieldTrigger, FieldValue } from '../../field';\nimport { fieldStyles, invalidFrom, useFieldValidationBehavior } from '../../field/root';\nimport { ChevronEndGlyph } from '../../glyphs';\nimport { RowOnValueLineContext } from '../../row/context';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport { overlay, popupOrigin } from '../../styles/overlay';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii } from '../../tokens/design.tokens.stylex';\nimport ListBox from '../list-box';\n\n// The menus page's exposed dropdown menu: a text field that opens a list\n// rather than taking a keystroke. Everything above the list is the field\n// chrome in `src/field` — the same box, label, supporting line and error\n// treatment every other field draws — and the list is ListBox on the shared\n// overlay surface. What is here is React Aria's `Select` around the two, and\n// the three things that are this component's own.\n//\n// **The whole box opens the list.** The chrome's `FieldTrigger` covers the\n// box rather than sitting on the value's line, so the padding, the label and\n// the icons all open it, which is what the page draws and what a native\n// select does. It draws nothing itself: the box already carries the fill,\n// the underline and the focus indicator.\n//\n// **The chevron turns.** The page's trailing icon points down while the list\n// is closed and up while it is open. React Aria reports which through the\n// select's render state, so it is drawn from that rather than swapped for a\n// second glyph.\n//\n// **The list is the field's width.** The page draws it under the field and\n// as wide as it, which React Aria reports as `--trigger-width` — of whatever\n// it is anchored to. Left alone that is the button, which fills the box's\n// value column rather than the box, so the list came out narrower than the\n// field by the icons either side of it. Pointing the popover's `triggerRef`\n// at the box is what makes the two agree. The overlay's own 112 to 280 range\n// is a menu opened from a button rather than from a field, so it goes.\n//\n// A select's value is chosen rather than typed, which the chrome had no\n// notion of until this component: `useFieldPopulated` now reads the select's\n// own state, so the floating label floats once something is chosen.\n\n// Hoisted, and the chevron built by a call, so neither is a new element on\n// every render — which is what react-perf's jsx-no-jsx-as-prop is after.\nconst TRIGGER = <FieldTrigger />;\nfunction chevronFor(isOpen: boolean) {\n return <ChevronEndGlyph {...{\n 0: {\n className: \"x12w9bfk xxk0z11 xvy4d1p x1iffjtl xkzkux9 x11xpdln xpc4ca7\"\n },\n 1: {\n className: \"x12w9bfk xxk0z11 xvy4d1p xkzkux9 x11xpdln xpc4ca7 x9tu13d\"\n }\n }[!!isOpen << 0]} />;\n}\n\n// The list's classes, from React Aria's render state: it grows from the\n// edge it is anchored by, as every anchored overlay does, so a list that\n// opens above the field grows upward.\nfunction listClassName(state: PopoverRenderProps) {\n return stylex.props(overlay.popup, styles.list, popupOrigin(state.placement)).className ?? '';\n}\nconst styles = {\n list: {\n kWkggS: \"x1vnz5z6\",\n kaIpWk: \"x1tfhd1\",\n kzqmXN: \"xlvufjm\",\n kskxy: \"xedcshv\",\n ks0D6T: \"x1x1rfll\",\n k7Eaqz: \"xeuugli\",\n kORKVm: \"x1odjw0f\",\n $$css: true\n }\n};\ntype SelectProps<T extends object = object> = {\n /**\n * Where to portal the list. Defaults to the container of the `ThemeScope`\n * around it, which keeps the list on that scope's tokens, or to the end of\n * `<body>` where there is none. A subtree themed through the `themeScope`\n * class has no container of its own, so point this inside it, or the list\n * renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * A hint shown under the field. Replaced by `error` when there is one, so\n * the two never stack.\n */\n description?: string;\n /**\n * The problem with the current value, in words. Its presence is what puts\n * the field in its error state — the message, the red underline, and\n * `aria-invalid` all follow from it.\n *\n * Outside a `Form` the message line arrives with the message, so the\n * field grows when this does and moves what is under it. A `Form` holds\n * that space from the start; so does a permanent `description`.\n */\n error?: string;\n /**\n * Whether the label sits in the empty box and floats to the top once the\n * field is focused or something is chosen. `false` keeps it small at the\n * top in every state.\n * @default true\n */\n floatingLabel?: boolean;\n /**\n * What the field is for. Required rather than optional: a select with no\n * label is a box a screen reader cannot name.\n */\n label: string;\n /**\n * An icon at the start of the box, before the label and the value: the\n * page's 24dp leading icon, in the muted role. An icon drawn in `em` takes\n * that size from the slot.\n */\n leadingIcon?: ReactNode;\n /**\n * The options. `ListBox.Item` for each, and `ListBox.Section` to group\n * them — the list inside is a ListBox, and takes everything one does.\n */\n options?: ReactNode;\n /**\n * The filled box, or the outlined one, as the text fields page draws them.\n * @default 'filled'\n */\n variant?: FieldVariant;\n} & Omit<RACSelectProps<T>, 'children' | 'defaultSelectedKey' | 'isInvalid' | 'onSelectionChange' | 'selectedKey' | 'validationBehavior'>;\n\n/**\n * A labelled field that opens a list to choose from. Its value is React\n * Aria's: pass `value` with `onChange` to control it, or `defaultValue` to\n * let it keep its own. The value is an option's `id`, so give every option\n * one. React Aria's older `selectedKey` names are deprecated and are left\n * out of this component's props rather than passed through.\n *\n * ```tsx\n * <Select\n * label=\"Label\"\n * options={\n * <>\n * <ListBox.Item id=\"first\">First item</ListBox.Item>\n * <ListBox.Item id=\"second\">Second item</ListBox.Item>\n * </>\n * }\n * />\n * ```\n *\n * The box, label, supporting line and error are the field chrome in\n * `src/field`, shared with every other field; the list is ListBox on the\n * overlay surface every anchored panel here draws.\n *\n * The call site's `className` and `style` land on the field as a whole,\n * which is the element a layout positions.\n */\nfunction Select<T extends object = object>({\n container,\n description,\n error,\n floatingLabel = true,\n isDisabled = false,\n label,\n leadingIcon,\n options,\n variant = 'filled',\n ...props\n}: RefAttributes<HTMLDivElement> & SelectProps<T>) {\n const validationBehavior = useFieldValidationBehavior();\n // What the list is anchored to and takes its width from — see the note at\n // the top of the file.\n const boxRef = useRef<HTMLDivElement>(null);\n return <RACSelect<T> isDisabled={isDisabled} isInvalid={invalidFrom(error)} validationBehavior={validationBehavior} {...props} {...mergeStatefulStyles(stylex.props(fieldStyles.root), props)}>\n {selectContent(label, leadingIcon, floatingLabel, variant, description, error, options, container, boxRef)}\n </RACSelect>;\n}\n\n// What the field draws, from React Aria's render state. Built by a call\n// rather than written inline at the prop, which is what react-perf's\n// no-new-function-as-prop is after; the React Compiler memoises the result\n// on its inputs.\n//\n// The state is read for the chevron alone — which way it points — since\n// everything else the box shows it reads from its own focus and validity.\nfunction selectContent(label: string, leadingIcon: ReactNode, floatingLabel: boolean, variant: FieldVariant, description: string | undefined, error: string | undefined, options: ReactNode, container: Element | undefined, boxRef: RefObject<HTMLDivElement | null>) {\n return (state: SelectRenderProps) => <>\n <FieldBox floatingLabel={floatingLabel}\n // React Aria's `TextField` hands its group the field's disabled and\n // invalid state through context; its `Select` does not, so the box is\n // told outright or its label and its underline never turn.\n isDisabled={state.isDisabled}\n // Opening the list moves focus into it, out of the box, so the box\n // is told it is focused while the list is open — otherwise its label\n // fell back onto the placeholder the select still shows.\n isFocused={state.isOpen} isInvalid={state.isInvalid} isRequired={state.isRequired} label={label} leading={leadingIcon} ref={boxRef} trailing={chevronFor(state.isOpen)} trigger={TRIGGER} variant={variant}>\n <SelectedValue isFocused={state.isFocused} />\n </FieldBox>\n <FieldMessage description={description} error={error} />\n <RACPopover className={listClassName} triggerRef={boxRef}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container}>\n <ListBox>{options}</ListBox>\n </RACPopover>\n </>;\n}\n\n/**\n * What has been chosen, drawn on the value's line. The chrome's `FieldValue`\n * is the styled element and React Aria's `SelectValue` sits inside it, since\n * the wrapper is the box's flex item.\n */\nfunction SelectedValue({\n isFocused\n}: {\n isFocused: boolean;\n}) {\n const state = useContext(SelectStateContext);\n const isPlaceholder = (state?.selectionManager.selectedKeys.size ?? 0) === 0;\n return <FieldValue isFocused={isFocused} isPlaceholder={isPlaceholder}>\n <RowOnValueLineContext value>\n <RACSelectValue className=\"xb3r6kr xlyipyv xuxw1ft\" />\n </RowOnValueLineContext>\n </FieldValue>;\n}\nexport type { SelectProps };\nexport default Select;"],"mappings":";;;;;;;;;;;;;;AAkDA,MAAMa,UAAU,oBAAC,cAAD,CAAa,CAAA;AAC7B,SAASC,WAAWC,QAAiB;CACnC,OAAO,oBAAC,iBAAD,EAAiB,GAAI;EAC1B,GAAG,EACDC,WAAW,6DACb;EACA,GAAG,EACDA,WAAW,4DACb;CACF,EAAE,CAAC,CAACD,UAAU,GAAG,CAAA;AACnB;AAKA,SAASE,cAAcC,OAA2B;CAChD,OAAOjB,MAAaU,QAAQS,OAAOC,OAAOC,MAAMV,YAAYM,MAAMK,SAAS,CAAC,CAAC,CAACP,aAAa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;AAOA,SAAAqB,cAAAnB,IAAA;CAAA,MAAAC,IAAAzC,EAAA,CAAA;CAAuB,MAAA,EAAA0D,cAAAlB;CAMrB,MAAAoB,iBADc1D,WAAWI,kBACFY,CAAK,EAAA2C,iBAA+BC,aAAKC,QAAzC,OAAoD;CAAE,IAAArB;CAAA,IAAAD,EAAA,OAAAuB,OAAAC,IAAA,2BAAA,GAAA;EAEzEvB,KAAA,oBAAC,uBAAD;GAAuB,OAAA;GACrB,UAAA,oBAAC0B,aAAD,EAA0B,WAAA,0BAAyB,CAAA;EAD/B,CAAA;EAEE3B,EAAA,KAAAC;CAAA,OAAAA,KAAAD,EAAA;CAAA,IAAAG;CAAA,IAAAH,EAAA,OAAAiB,aAAAjB,EAAA,OAAAmB,eAAA;EAHrBhB,KAAA,oBAAC,YAAD;GAAuBc;GAA0BE;GACpDlB,UAAAA;EADc,CAAA;EAIHD,EAAA,KAAAiB;EAAAjB,EAAA,KAAAmB;EAAAnB,EAAA,KAAAG;CAAA,OAAAA,KAAAH,EAAA;CAAA,OAJRG;AAIQ"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_c","stylex","useContext","useRef","Select","RACSelect","SelectStateContext","fieldStyles","invalidFrom","useFieldValidationBehavior","mergeStatefulStyles","overlay","popupOrigin","TRIGGER","chevronFor","isOpen","className","listClassName","state","props","popup","styles","list","placement","kWkggS","kaIpWk","kzqmXN","kskxy","ks0D6T","k7Eaqz","kORKVm","$$css","container","description","error","floatingLabel","label","leadingIcon","options","variant","t0","$","t1","isDisabled","t2","t3","undefined","validationBehavior","boxRef","T0","t4","t5","root","t6","selectContent","t7","isInvalid","isRequired","isFocused","SelectedValue","isPlaceholder","selectionManager","selectedKeys","size","Symbol","for","RACPopover","ListBox","RACSelectValue"],"sources":["../../../src/components/select/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes, RefObject } from 'react';\nimport type { PopoverRenderProps, SelectProps as RACSelectProps, SelectRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { useContext, useRef } from 'react';\nimport { Popover as RACPopover, Select as RACSelect, SelectValue as RACSelectValue, SelectStateContext } from 'react-aria-components';\nimport type { FieldVariant } from '../../field';\nimport { OptionRowContext } from '../../collection/context';\nimport { FieldBox, FieldMessage, FieldTrigger, FieldValue } from '../../field';\nimport { fieldStyles, invalidFrom, useFieldValidationBehavior } from '../../field/root';\nimport { ChevronEndGlyph } from '../../glyphs';\nimport { RowOnValueLineContext } from '../../row/context';\nimport { mergeStatefulStyles } from '../../styles/merge';\nimport { overlay, popupOrigin } from '../../styles/overlay';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, motion, radii } from '../../tokens/design.tokens.stylex';\nimport ListBox from '../list-box';\n\n// The menus page's exposed dropdown menu: a text field that opens a list\n// rather than taking a keystroke. Everything above the list is the field\n// chrome in `src/field` — the same box, label, supporting line and error\n// treatment every other field draws — and the list is ListBox on the shared\n// overlay surface, its options drawn as the menus page's rows: 48dp at the\n// menu's 12dp inset, with the menu's selected container, since Material\n// Design draws an exposed dropdown menu as a menu. `OptionRowContext` around\n// the list is what tells ListBox so. What is here is React Aria's `Select`\n// around the two, and the three things that are this component's own.\n//\n// **The whole box opens the list.** The chrome's `FieldTrigger` covers the\n// box rather than sitting on the value's line, so the padding, the label and\n// the icons all open it, which is what the page draws and what a native\n// select does. It draws nothing itself: the box already carries the fill,\n// the underline and the focus indicator.\n//\n// **The chevron turns.** The page's trailing icon points down while the list\n// is closed and up while it is open. React Aria reports which through the\n// select's render state, so it is drawn from that rather than swapped for a\n// second glyph.\n//\n// **The list is the field's width.** The page draws it under the field and\n// as wide as it, which React Aria reports as `--trigger-width` — of whatever\n// it is anchored to. Left alone that is the button, which fills the box's\n// value column rather than the box, so the list came out narrower than the\n// field by the icons either side of it. Pointing the popover's `triggerRef`\n// at the box is what makes the two agree. The overlay's own 112 to 280 range\n// is a menu opened from a button rather than from a field, so it goes.\n//\n// A select's value is chosen rather than typed, which the chrome had no\n// notion of until this component: `useFieldPopulated` now reads the select's\n// own state, so the floating label floats once something is chosen.\n\n// Hoisted, and the chevron built by a call, so neither is a new element on\n// every render — which is what react-perf's jsx-no-jsx-as-prop is after.\nconst TRIGGER = <FieldTrigger />;\nfunction chevronFor(isOpen: boolean) {\n return <ChevronEndGlyph {...{\n 0: {\n className: \"x12w9bfk xxk0z11 xvy4d1p x1iffjtl xkzkux9 x11xpdln xpc4ca7\"\n },\n 1: {\n className: \"x12w9bfk xxk0z11 xvy4d1p xkzkux9 x11xpdln xpc4ca7 x9tu13d\"\n }\n }[!!isOpen << 0]} />;\n}\n\n// The list's classes, from React Aria's render state: it grows from the\n// edge it is anchored by, as every anchored overlay does, so a list that\n// opens above the field grows upward.\nfunction listClassName(state: PopoverRenderProps) {\n return stylex.props(overlay.popup, styles.list, popupOrigin(state.placement)).className ?? '';\n}\nconst styles = {\n list: {\n kWkggS: \"x1vnz5z6\",\n kaIpWk: \"x1tfhd1\",\n kzqmXN: \"xlvufjm\",\n kskxy: \"xedcshv\",\n ks0D6T: \"x1x1rfll\",\n k7Eaqz: \"xeuugli\",\n kORKVm: \"x1odjw0f\",\n $$css: true\n }\n};\ntype SelectProps<T extends object = object> = {\n /**\n * Where to portal the list. Defaults to the container of the `ThemeScope`\n * around it, which keeps the list on that scope's tokens, or to the end of\n * `<body>` where there is none. A subtree themed through the `themeScope`\n * class has no container of its own, so point this inside it, or the list\n * renders outside and keeps the page's tokens.\n */\n container?: Element;\n /**\n * A hint shown under the field. Replaced by `error` when there is one, so\n * the two never stack.\n */\n description?: string;\n /**\n * The problem with the current value, in words. Its presence is what puts\n * the field in its error state — the message, the red underline, and\n * `aria-invalid` all follow from it.\n *\n * Outside a `Form` the message line arrives with the message, so the\n * field grows when this does and moves what is under it. A `Form` holds\n * that space from the start; so does a permanent `description`.\n */\n error?: string;\n /**\n * Whether the label sits in the empty box and floats to the top once the\n * field is focused or something is chosen. `false` keeps it small at the\n * top in every state.\n * @default true\n */\n floatingLabel?: boolean;\n /**\n * What the field is for. Required rather than optional: a select with no\n * label is a box a screen reader cannot name.\n */\n label: string;\n /**\n * An icon at the start of the box, before the label and the value: the\n * page's 24dp leading icon, in the muted role. An icon drawn in `em` takes\n * that size from the slot.\n */\n leadingIcon?: ReactNode;\n /**\n * The options. `ListBox.Item` for each, and `ListBox.Section` to group\n * them — the list inside is a ListBox, and takes everything one does.\n */\n options?: ReactNode;\n /**\n * The filled box, or the outlined one, as the text fields page draws them.\n * @default 'filled'\n */\n variant?: FieldVariant;\n} & Omit<RACSelectProps<T>, 'children' | 'defaultSelectedKey' | 'isInvalid' | 'onSelectionChange' | 'selectedKey' | 'validationBehavior'>;\n\n/**\n * A labelled field that opens a list to choose from. Its value is React\n * Aria's: pass `value` with `onChange` to control it, or `defaultValue` to\n * let it keep its own. The value is an option's `id`, so give every option\n * one. React Aria's older `selectedKey` names are deprecated and are left\n * out of this component's props rather than passed through.\n *\n * ```tsx\n * <Select\n * label=\"Label\"\n * options={\n * <>\n * <ListBox.Item id=\"first\">First item</ListBox.Item>\n * <ListBox.Item id=\"second\">Second item</ListBox.Item>\n * </>\n * }\n * />\n * ```\n *\n * The box, label, supporting line and error are the field chrome in\n * `src/field`, shared with every other field; the list is ListBox on the\n * overlay surface every anchored panel here draws.\n *\n * The call site's `className` and `style` land on the field as a whole,\n * which is the element a layout positions.\n */\nfunction Select<T extends object = object>({\n container,\n description,\n error,\n floatingLabel = true,\n isDisabled = false,\n label,\n leadingIcon,\n options,\n variant = 'filled',\n ...props\n}: RefAttributes<HTMLDivElement> & SelectProps<T>) {\n const validationBehavior = useFieldValidationBehavior();\n // What the list is anchored to and takes its width from — see the note at\n // the top of the file.\n const boxRef = useRef<HTMLDivElement>(null);\n return <RACSelect<T> isDisabled={isDisabled} isInvalid={invalidFrom(error)} validationBehavior={validationBehavior} {...props} {...mergeStatefulStyles(stylex.props(fieldStyles.root), props)}>\n {selectContent(label, leadingIcon, floatingLabel, variant, description, error, options, container, boxRef)}\n </RACSelect>;\n}\n\n// What the field draws, from React Aria's render state. Built by a call\n// rather than written inline at the prop, which is what react-perf's\n// no-new-function-as-prop is after; the React Compiler memoises the result\n// on its inputs.\n//\n// The state is read for the chevron alone — which way it points — since\n// everything else the box shows it reads from its own focus and validity.\nfunction selectContent(label: string, leadingIcon: ReactNode, floatingLabel: boolean, variant: FieldVariant, description: string | undefined, error: string | undefined, options: ReactNode, container: Element | undefined, boxRef: RefObject<HTMLDivElement | null>) {\n return (state: SelectRenderProps) => <>\n <FieldBox floatingLabel={floatingLabel}\n // React Aria's `TextField` hands its group the field's disabled and\n // invalid state through context; its `Select` does not, so the box is\n // told outright or its label and its underline never turn.\n isDisabled={state.isDisabled}\n // Opening the list moves focus into it, out of the box, so the box\n // is told it is focused while the list is open — otherwise its label\n // fell back onto the placeholder the select still shows.\n isFocused={state.isOpen} isInvalid={state.isInvalid} isRequired={state.isRequired} label={label} leading={leadingIcon} ref={boxRef} trailing={chevronFor(state.isOpen)} trigger={TRIGGER} variant={variant}>\n <SelectedValue isFocused={state.isFocused} />\n </FieldBox>\n <FieldMessage description={description} error={error} />\n <RACPopover className={listClassName} triggerRef={boxRef}\n // oxlint-disable-next-line typescript/no-deprecated -- its replacement, UNSAFE_PortalProvider, is not exported by react-aria-components\n UNSTABLE_portalContainer={container}>\n <OptionRowContext value=\"menu\">\n <ListBox>{options}</ListBox>\n </OptionRowContext>\n </RACPopover>\n </>;\n}\n\n/**\n * What has been chosen, drawn on the value's line. The chrome's `FieldValue`\n * is the styled element and React Aria's `SelectValue` sits inside it, since\n * the wrapper is the box's flex item.\n */\nfunction SelectedValue({\n isFocused\n}: {\n isFocused: boolean;\n}) {\n const state = useContext(SelectStateContext);\n const isPlaceholder = (state?.selectionManager.selectedKeys.size ?? 0) === 0;\n return <FieldValue isFocused={isFocused} isPlaceholder={isPlaceholder}>\n <RowOnValueLineContext value>\n <RACSelectValue className=\"xb3r6kr xlyipyv xuxw1ft\" />\n </RowOnValueLineContext>\n </FieldValue>;\n}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
595
|
-
className: "x6s0dn4 xjbqb8w xsdox4t x1dkaolv xng3xce x9f619 x1ypdohk x78zum5 x1useyqa xl56j7k x1ghz6dp
|
|
595
|
+
className: "x6s0dn4 xjbqb8w xsdox4t x1dkaolv xng3xce x9f619 x1ypdohk x78zum5 x1useyqa xl56j7k x1ghz6dp xat36cu x1v57pqu x9v5kkp x1t137rt x1s780dp x1717udv",
|
|
596
596
|
children: bar
|
|
597
597
|
});
|
|
598
598
|
$[1] = bar;
|
|
@@ -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,MAAMC,eAAe;AACrB,MAAMC,iBAAiB;AAIvB,MAAMC,0BAA0B,EAC9BC,KAAK,EACP;AAOA,MAAMC,S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B,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
|
+
{"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 xat36cu x1v57pqu x9v5kkp x1t137rt x1s780dp 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 };\nex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,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"}
|
|
@@ -240,10 +240,10 @@ const styles = {
|
|
|
240
240
|
kkrTdU: "x1jm3nie",
|
|
241
241
|
kzqmXN: "x51ohtg",
|
|
242
242
|
k87sOh: "xwa60dl",
|
|
243
|
-
kjBf7l: "
|
|
243
|
+
kjBf7l: "xat36cu x1x84bn5",
|
|
244
244
|
kInvED: "x1hl8ikr",
|
|
245
245
|
k3XXqK: "x1t137rt",
|
|
246
|
-
kMeerF: "
|
|
246
|
+
kMeerF: "x1s780dp",
|
|
247
247
|
kIyJzY: "x1qno0dh",
|
|
248
248
|
k1ekBW: "xdl150w",
|
|
249
249
|
kAMwcw: "xpc4ca7",
|
|
@@ -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","indicator","kaIpWk","kB7OPa","kMv6JI","k63SB2","kb6lSQ","kLWn49","k7Eaqz","kg3NbH","k3aq6I","khDVqt","indicatorVertical","kt4wiu","innerBlockEnd","kT0f0o","kVL7Gh","innerBlockStart","kfmiAY","krdFHd","innerInlineEnd","innerInlineStart","root","rootVertical","segment","kVAM5u","ksu8eU","kMzoRj","kVQacm","segmentVertical","stop","stopActive","stopActiveDisabled","stopDisabled","stopEnd","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","indicatorAt","fraction","inline","stopBlock","offset","stopInline","showStops","size","vertical","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","getThumbPercent","getThumbValueLabel","thumbStyles","_","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// The indicator is drawn inside the slider, as MDC-Android's `withinBounds`\n// label behaviour draws it, rather than floating over whatever is above. A\n// horizontal slider keeps the indicator's 44dp and its 12dp of clearance\n// above the track, between the label and the track, since the indicator\n// shares that space with the label and would otherwise cover it. Along the\n// track it is centred on the handle until that would carry it past either\n// end, and is then held to the track's length, so at 0 and at 100 it sits\n// over the handle without running off the slider's edge.\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// The slider keeps the indicator's least width and its 12dp of clearance on\n// that side of the track, as a horizontal one keeps its height above, and\n// the indicator is held to the track's length at the ends the same way, so\n// at 100 it stays below the label rather than reaching up beside it. A value\n// wider than three digits grows the indicator past that room, towards the\n// slider's start edge.\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;\n/** The value indicator's height. */\nconst INDICATOR = 44;\n/**\n * The value indicator's least width, which holds three digits at\n * label-large. A vertical slider keeps this much room beside its track.\n */\nconst INDICATOR_WIDTH = 48;\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 indicator: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"x1c5gpgi\",\n kZKoxP: \"xn3w4p2\",\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1girmi0\",\n k1xSpc: \"x78zum5\",\n kMv6JI: \"xkknnkr\",\n kGuDYH: \"x14zspaw\",\n k63SB2: \"x1v9cpvo\",\n krVfgx: \"x3mk9i\",\n kLqNvP: \"xbudbmw\",\n kjj79g: \"xl56j7k\",\n kb6lSQ: \"x155f00i\",\n kLWn49: \"x1lz68p4\",\n k7Eaqz: \"x900493\",\n kg3NbH: \"x18fpw6u\",\n kVAEAm: \"x10l6tqk\",\n k3aq6I: \"xc01soo x1gwzs1v\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n indicatorVertical: {\n krVfgx: \"xdd4er5\",\n k87sOh: \"xwa60dl\",\n kt4wiu: \"x15zsqls\",\n kLqNvP: \"xhi6v0a\",\n k3aq6I: \"xj0i120\",\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.\n// `indicatorAt` is how far along the track a handle is, as a fraction, which\n// is what the value indicator over it is held to the track's ends by.\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 indicatorAt: (fraction: number) => [fraction !== undefined && {\n \"--slider-at\": fraction != null ? \"x1knt7uz\" : \"\",\n $$css: true\n }, {\n \"--x---slider-at\": fraction != null ? fraction : undefined\n }],\n inline: (start: string, end: string) => [end !== undefined && {\n kt4wiu: end != null ? \"xqxgn94\" : \"\",\n $$css: true\n }, start !== undefined && {\n kLqNvP: start != null ? \"x1lxsm33\" : \"\",\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) => [offset !== undefined && {\n kLqNvP: offset != null ? \"x1lxsm33\" : \"\",\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 x12h1iku x1ypdohk xh8yej3 xt6307q x1n2onr6\"\n },\n 2: {\n className: \"x9f619 x1ypdohk x1n2onr6 x5yr21d xpqogu8 x1iyjqo2 xluoxwi xdj266r xrnipbp x2lwn1j\"\n },\n 1: {\n className: \"x16gdi9t x9f619 x12h1iku xh8yej3 xt6307q x1n2onr6 x1h6gzvc\"\n },\n 3: {\n className: \"x9f619 x1n2onr6 x5yr21d xpqogu8 x1iyjqo2 xluoxwi xdj266r xrnipbp 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 {...stylex.props(styles.indicator, placements.indicatorAt(state.state.getThumbPercent(index)), vertical && styles.indicatorVertical)}>\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 // Vertical, a part starts at its block end, since the value grows from\n // the bottom — `placements.block` turns the axis over the same way — so\n // the corners it turns to a handle at its start are the block end's.\n const innerStart = vertical ? styles.innerBlockEnd : styles.innerInlineStart;\n const innerEnd = vertical ? styles.innerBlockStart : 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":";;;;;;;;;;AA+FA,MAAMO,QAAQD;;AAEd,MAAME,OAAO;AAeb,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;EACRC,QAAQ;EACRrB,OAAO;CACT;CACAsB,cAAc;EACZR,QAAQ;EACRd,OAAO;CACT;CACAuB,eAAe;EACbR,QAAQ;E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AmBuG,eAAeO,KAAKjH,SAASD,OAAOG,iBAAiBH,OAAOwB,mBAAmB0F,KAAK9B,UAAUkB,UAAUmE,YAAYvD,KAAK7B,QAAQiB,UAAUoE,UAAU/C,MAAMb,QAAQI,KAAK9B,KAAK,GAAG0B,QAAQI,KAAK7B,GAAG,CAAC,CAAC;GAC7X4B,UAAAA,YAAYC,MAAMC,QAAQR,YAAYS,OAAOF,KAAKjH,UAAUoH,OAAO;EAChE,GAFsBH,KAAKhB,IAE3B,CAAC,GACRsD,UAAU1B,KAAKqC,GAAGT,UAAU,oBAAC,aAAD;GAAa,cAAYrD,cAAcqD;GAAeA;GAEzE,GAAIrK,oBAAoB6K,YAAYlE,QAAQ,GAAG,CAAC,CAAC;GACtD6D,UAAAA,aAAaH,OAAO1D,QAAQ;EAClB,GAFZ0D,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","indicator","kaIpWk","kB7OPa","kMv6JI","k63SB2","kb6lSQ","kLWn49","k7Eaqz","kg3NbH","k3aq6I","khDVqt","indicatorVertical","kt4wiu","innerBlockEnd","kT0f0o","kVL7Gh","innerBlockStart","kfmiAY","krdFHd","innerInlineEnd","innerInlineStart","root","rootVertical","segment","kVAM5u","ksu8eU","kMzoRj","kVQacm","segmentVertical","stop","stopActive","stopActiveDisabled","stopDisabled","stopEnd","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","indicatorAt","fraction","inline","stopBlock","offset","stopInline","showStops","size","vertical","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","getThumbPercent","getThumbValueLabel","thumbStyles","_","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// The indicator is drawn inside the slider, as MDC-Android's `withinBounds`\n// label behaviour draws it, rather than floating over whatever is above. A\n// horizontal slider keeps the indicator's 44dp and its 12dp of clearance\n// above the track, between the label and the track, since the indicator\n// shares that space with the label and would otherwise cover it. Along the\n// track it is centred on the handle until that would carry it past either\n// end, and is then held to the track's length, so at 0 and at 100 it sits\n// over the handle without running off the slider's edge.\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// The slider keeps the indicator's least width and its 12dp of clearance on\n// that side of the track, as a horizontal one keeps its height above, and\n// the indicator is held to the track's length at the ends the same way, so\n// at 100 it stays below the label rather than reaching up beside it. A value\n// wider than three digits grows the indicator past that room, towards the\n// slider's start edge.\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;\n/** The value indicator's height. */\nconst INDICATOR = 44;\n/**\n * The value indicator's least width, which holds three digits at\n * label-large. A vertical slider keeps this much room beside its track.\n */\nconst INDICATOR_WIDTH = 48;\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 indicator: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"x1c5gpgi\",\n kZKoxP: \"xn3w4p2\",\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x1girmi0\",\n k1xSpc: \"x78zum5\",\n kMv6JI: \"xkknnkr\",\n kGuDYH: \"x14zspaw\",\n k63SB2: \"x1v9cpvo\",\n krVfgx: \"x3mk9i\",\n kLqNvP: \"xbudbmw\",\n kjj79g: \"xl56j7k\",\n kb6lSQ: \"x155f00i\",\n kLWn49: \"x1lz68p4\",\n k7Eaqz: \"x900493\",\n kg3NbH: \"x18fpw6u\",\n kVAEAm: \"x10l6tqk\",\n k3aq6I: \"xc01soo x1gwzs1v\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n indicatorVertical: {\n krVfgx: \"xdd4er5\",\n k87sOh: \"xwa60dl\",\n kt4wiu: \"x15zsqls\",\n kLqNvP: \"xhi6v0a\",\n k3aq6I: \"xj0i120\",\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: \"xat36cu x1x84bn5\",\n kInvED: \"x1hl8ikr\",\n k3XXqK: \"x1t137rt\",\n kMeerF: \"x1s780dp\",\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.\n// `indicatorAt` is how far along the track a handle is, as a fraction, which\n// is what the value indicator over it is held to the track's ends by.\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 indicatorAt: (fraction: number) => [fraction !== undefined && {\n \"--slider-at\": fraction != null ? \"x1knt7uz\" : \"\",\n $$css: true\n }, {\n \"--x---slider-at\": fraction != null ? fraction : undefined\n }],\n inline: (start: string, end: string) => [end !== undefined && {\n kt4wiu: end != null ? \"xqxgn94\" : \"\",\n $$css: true\n }, start !== undefined && {\n kLqNvP: start != null ? \"x1lxsm33\" : \"\",\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) => [offset !== undefined && {\n kLqNvP: offset != null ? \"x1lxsm33\" : \"\",\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 x12h1iku x1ypdohk xh8yej3 xt6307q x1n2onr6\"\n },\n 2: {\n className: \"x9f619 x1ypdohk x1n2onr6 x5yr21d xpqogu8 x1iyjqo2 xluoxwi xdj266r xrnipbp x2lwn1j\"\n },\n 1: {\n className: \"x16gdi9t x9f619 x12h1iku xh8yej3 xt6307q x1n2onr6 x1h6gzvc\"\n },\n 3: {\n className: \"x9f619 x1n2onr6 x5yr21d xpqogu8 x1iyjqo2 xluoxwi xdj266r xrnipbp 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 {...stylex.props(styles.indicator, placements.indicatorAt(state.state.getThumbPercent(index)), vertical && styles.indicatorVertical)}>\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 // Vertical, a part starts at its block end, since the value grows from\n // the bottom — `placements.block` turns the axis over the same way — so\n // the corners it turns to a handle at its start are the block end's.\n const innerStart = vertical ? styles.innerBlockEnd : styles.innerInlineStart;\n const innerEnd = vertical ? styles.innerBlockStart : 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":";;;;;;;;;;AA+FA,MAAMO,QAAQD;;AAEd,MAAME,OAAO;AAeb,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;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x14ytart",
|
|
56
56
|
kInvED: "xr2mjdv",
|
|
57
57
|
k3XXqK: "x9v5kkp x1t137rt",
|
|
58
|
-
kMeerF: "
|
|
58
|
+
kMeerF: "x1s780dp",
|
|
59
59
|
kVAEAm: "x1n2onr6",
|
|
60
60
|
$$css: true
|
|
61
61
|
},
|
|
@@ -371,8 +371,8 @@ function SnackbarToast(t0) {
|
|
|
371
371
|
let t1;
|
|
372
372
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
373
373
|
t1 = {
|
|
374
|
-
0: { className: "x6s0dn4 x1n1nwrg x1u6grsq x1dwmuk9 x16dv9tl x1c5gpgi x1w1tqly x1tfhd1 xx61lck x13rsnn2 x1udv5rz x9f619 x78zum5 x1a02dak xh8yej3 x1x1rfll xlx31pv x1dry9sr xeuugli xuq8xha x1ulcdur xr2mjdv x9v5kkp x1t137rt
|
|
375
|
-
1: { className: "x6s0dn4 x1c5gpgi x1w1tqly x1tfhd1 xx61lck x13rsnn2 x1udv5rz x9f619 x78zum5 x1a02dak xh8yej3 x1x1rfll xlx31pv x1dry9sr xeuugli xuq8xha x1ulcdur xr2mjdv x9v5kkp x1t137rt
|
|
374
|
+
0: { className: "x6s0dn4 x1n1nwrg x1u6grsq x1dwmuk9 x16dv9tl x1c5gpgi x1w1tqly x1tfhd1 xx61lck x13rsnn2 x1udv5rz x9f619 x78zum5 x1a02dak xh8yej3 x1x1rfll xlx31pv x1dry9sr xeuugli xuq8xha x1ulcdur xr2mjdv x9v5kkp x1t137rt x1s780dp xt970qd xn60lsn x67bb7w" },
|
|
375
|
+
1: { className: "x6s0dn4 x1c5gpgi x1w1tqly x1tfhd1 xx61lck x13rsnn2 x1udv5rz x9f619 x78zum5 x1a02dak xh8yej3 x1x1rfll xlx31pv x1dry9sr xeuugli xuq8xha x1ulcdur xr2mjdv x9v5kkp x1t137rt x1s780dp xt970qd xn60lsn x1vhuh8u x1u6grsq x10e4vud xxp0q0x xi22y15 x47corl" }
|
|
376
376
|
};
|
|
377
377
|
$[0] = t1;
|
|
378
378
|
} else t1 = $[0];
|