@kanso-labs/kanso-ui 0.48.0 → 0.48.1
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 +3 -3
- package/dist/button/index.js +2 -2
- package/dist/calendar/index.js +5 -5
- package/dist/chip/label.js +1 -1
- package/dist/collection/index.js +2 -2
- package/dist/components/app-bar/index.d.ts +1 -1
- package/dist/components/app-bar/index.js +2 -2
- package/dist/components/autocomplete/index.js +2 -2
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +3 -3
- package/dist/components/breadcrumbs/index.js +2 -2
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +3 -3
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/button-group/index.js +3 -3
- package/dist/components/calendar/index.js +4 -4
- package/dist/components/card/index.js +2 -2
- package/dist/components/carousel/index.d.ts +1 -1
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/checkbox/index.js +3 -3
- package/dist/components/checkbox-group/index.js +2 -2
- package/dist/components/chip/index.js +2 -2
- package/dist/components/chip-group/index.js +3 -3
- package/dist/components/code/index.js +1 -1
- package/dist/components/color-area/index.js +2 -2
- package/dist/components/color-field/index.d.ts +1 -1
- package/dist/components/color-field/index.js +2 -2
- package/dist/components/color-picker/index.js +2 -2
- package/dist/components/color-slider/index.js +3 -3
- package/dist/components/color-swatch/index.js +3 -3
- package/dist/components/color-swatch-picker/index.js +2 -2
- package/dist/components/color-wheel/index.js +2 -2
- package/dist/components/combo-box/index.d.ts +1 -1
- package/dist/components/combo-box/index.js +3 -3
- package/dist/components/container/index.js +1 -1
- package/dist/components/copy-field/index.js +2 -2
- package/dist/components/currency/index.js +3 -3
- package/dist/components/date-field/index.d.ts +1 -1
- package/dist/components/date-field/index.js +2 -2
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/date-picker/index.js +5 -5
- package/dist/components/date-range-picker/index.d.ts +2 -2
- package/dist/components/date-range-picker/index.js +3 -3
- package/dist/components/dialog/index.js +4 -4
- package/dist/components/disclosure/index.js +3 -3
- package/dist/components/disclosure-group/index.js +3 -3
- package/dist/components/drop-zone/index.js +2 -2
- package/dist/components/fab/index.d.ts +1 -1
- package/dist/components/fab/index.js +1 -1
- package/dist/components/fab-menu/index.d.ts +2 -2
- package/dist/components/fab-menu/index.js +3 -3
- package/dist/components/feed/index.js +1 -1
- package/dist/components/form/index.js +2 -2
- package/dist/components/icon-button/index.d.ts +1 -1
- package/dist/components/icon-button/index.js +3 -3
- package/dist/components/keycap/index.js +2 -2
- package/dist/components/link/index.js +2 -2
- package/dist/components/list/index.js +3 -3
- package/dist/components/list-box/index.js +3 -3
- package/dist/components/list-detail/index.d.ts +1 -1
- package/dist/components/list-detail/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/loading-indicator/index.js +2 -2
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/index.js +3 -3
- package/dist/components/meter/index.d.ts +1 -1
- package/dist/components/meter/index.js +2 -2
- package/dist/components/navigation-bar/index.d.ts +1 -1
- package/dist/components/navigation-bar/index.js +2 -2
- package/dist/components/navigation-rail/index.d.ts +1 -1
- package/dist/components/navigation-rail/index.js +2 -2
- package/dist/components/navigation-tree/index.js +2 -2
- package/dist/components/number-field/index.d.ts +1 -1
- package/dist/components/number-field/index.js +2 -2
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +4 -4
- package/dist/components/product-icon/index.d.ts +1 -1
- package/dist/components/product-icon/index.js +1 -1
- package/dist/components/progress-indicator/index.d.ts +1 -1
- package/dist/components/progress-indicator/index.js +2 -2
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/range-calendar/index.js +3 -3
- package/dist/components/search-field/index.js +2 -2
- package/dist/components/search-view/index.d.ts +1 -1
- package/dist/components/search-view/index.js +2 -2
- package/dist/components/segmented-button/index.d.ts +1 -1
- package/dist/components/segmented-button/index.js +3 -3
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +3 -3
- package/dist/components/separator/index.js +3 -3
- package/dist/components/sheet/index.js +3 -3
- package/dist/components/slider/index.js +2 -2
- package/dist/components/snackbar/index.js +3 -3
- package/dist/components/split-button/index.d.ts +1 -1
- package/dist/components/split-button/index.js +3 -3
- package/dist/components/stack/index.js +2 -2
- package/dist/components/supporting-pane/index.d.ts +1 -1
- package/dist/components/supporting-pane/index.js +1 -1
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +3 -3
- package/dist/components/table/index.js +3 -3
- package/dist/components/tabs/index.js +3 -3
- package/dist/components/tag/index.js +1 -1
- package/dist/components/text/index.js +1 -1
- package/dist/components/text-area/index.d.ts +1 -1
- package/dist/components/text-area/index.js +2 -2
- package/dist/components/text-field/index.d.ts +1 -1
- package/dist/components/text-field/index.js +2 -2
- package/dist/components/time-field/index.d.ts +1 -1
- package/dist/components/time-field/index.js +2 -2
- package/dist/components/time-picker/index.d.ts +1 -1
- package/dist/components/time-picker/index.js +4 -4
- package/dist/components/token-field/index.d.ts +1 -1
- package/dist/components/token-field/index.js +3 -3
- package/dist/components/toolbar/index.js +3 -3
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +2 -2
- package/dist/components/tree/index.js +3 -3
- package/dist/control/index.js +2 -2
- package/dist/drag/hooks.js +2 -2
- package/dist/drag/index.js +2 -2
- package/dist/field/index.js +3 -3
- package/dist/glyphs/index.js +1 -1
- package/dist/hooks/useClippedTitle.js +1 -1
- package/dist/hooks/useEnlargedText.js +1 -1
- package/dist/hooks/useRipple.js +2 -2
- package/dist/i18n/index.js +2 -2
- package/dist/index.js +1 -1
- package/dist/indicator/index.js +2 -2
- package/dist/mark/index.js +2 -2
- package/dist/navigation/index.js +3 -3
- package/dist/overlay/index.js +1 -1
- package/dist/render/useRender.js +1 -1
- package/dist/row/index.js +2 -2
- package/dist/segments/index.js +1 -1
- package/dist/segments/literal.js +3 -3
- package/dist/theme-scope.js +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { toCalendarDate } from "@internationalized/date";
|
|
2
4
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
5
|
+
import { useContext, useRef, useState } from "react";
|
|
6
|
+
import { useDateFormatter } from "react-aria";
|
|
7
|
+
import { Button, CalendarContext, DateInput, DatePicker as DatePicker$1, DatePickerStateContext, Dialog, Group, Popover, useSlottedContext } from "react-aria-components";
|
|
3
8
|
import { FieldBox, FieldMessage, FieldSegments } from "../../field/index.js";
|
|
4
9
|
import { fieldStyles, invalidFrom, useFieldValidationBehavior } from "../../field/root.js";
|
|
5
10
|
import { CalendarGlyph } from "../../glyphs/index.js";
|
|
@@ -13,12 +18,7 @@ import { overlay } from "../../styles/overlay.js";
|
|
|
13
18
|
import { datePopoverClassName, picker, triggerClassName } from "../../styles/picker.js";
|
|
14
19
|
import Button$1 from "../button/index.js";
|
|
15
20
|
import Calendar$1 from "../calendar/index.js";
|
|
16
|
-
import { c } from "react/compiler-runtime";
|
|
17
|
-
import { useContext, useRef, useState } from "react";
|
|
18
21
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
import { Button, CalendarContext, DateInput, DatePicker as DatePicker$1, DatePickerStateContext, Dialog, Group, Popover, useSlottedContext } from "react-aria-components";
|
|
20
|
-
import { toCalendarDate } from "@internationalized/date";
|
|
21
|
-
import { useDateFormatter } from "react-aria";
|
|
22
22
|
// src/components/date-picker/index.tsx
|
|
23
23
|
function calendarTrigger(triggerLabel) {
|
|
24
24
|
return /* @__PURE__ */ jsx(Button, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DateDuration } from "@internationalized/date";
|
|
2
2
|
import { ReactNode, RefAttributes } from "react";
|
|
3
3
|
import { DateRangePickerProps as DateRangePickerProps$1, DateValue } from "react-aria-components";
|
|
4
|
-
import {
|
|
4
|
+
import { FieldVariant } from "../../field/index.js";
|
|
5
5
|
type DateRangePickerProps<T extends DateValue = DateValue> = Omit<DateRangePickerProps$1<T>, 'children' | 'className' | 'style'> & {
|
|
6
6
|
/** A function may compute the class from the picker's render state. */
|
|
7
7
|
className?: DateRangePickerProps$1<T>['className'];
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { useLayoutEffect, useState } from "react";
|
|
5
|
+
import { Button, DateInput, DateRangePicker as DateRangePicker$1, Dialog, Group, Popover } from "react-aria-components";
|
|
3
6
|
import { FieldBox, FieldMessage, FieldSegments } from "../../field/index.js";
|
|
4
7
|
import { fieldStyles, invalidFrom, useFieldValidationBehavior } from "../../field/root.js";
|
|
5
8
|
import { CalendarGlyph } from "../../glyphs/index.js";
|
|
@@ -11,10 +14,7 @@ import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
|
11
14
|
import { overlay } from "../../styles/overlay.js";
|
|
12
15
|
import { datePopoverClassName, picker, triggerClassName } from "../../styles/picker.js";
|
|
13
16
|
import RangeCalendar$1 from "../range-calendar/index.js";
|
|
14
|
-
import { c } from "react/compiler-runtime";
|
|
15
|
-
import { useLayoutEffect, useState } from "react";
|
|
16
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
import { Button, DateInput, DateRangePicker as DateRangePicker$1, Dialog, Group, Popover } from "react-aria-components";
|
|
18
18
|
// src/components/date-range-picker/index.tsx
|
|
19
19
|
const styles = { groupWrapped: {
|
|
20
20
|
kwnvtZ: "x1a02dak",
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { createContext, useContext, useId, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
5
|
+
import { Dialog as Dialog$1, DialogTrigger, Heading, HeadingContext, Modal, ModalOverlay, useSlottedContext } from "react-aria-components";
|
|
6
|
+
import { createPortal } from "react-dom";
|
|
3
7
|
import { useHoldBottomEdge } from "../../hooks/useBottomEdge.js";
|
|
4
8
|
import { useScrollStop } from "../../hooks/useScrollStop.js";
|
|
5
9
|
import { OverlayScope } from "../../overlay/index.js";
|
|
@@ -7,11 +11,7 @@ import { mergeRefs } from "../../render/ref.js";
|
|
|
7
11
|
import { mergeStatefulStyles, mergeStyles } from "../../styles/merge.js";
|
|
8
12
|
import { overlay } from "../../styles/overlay.js";
|
|
9
13
|
import { sizing, typography } from "../../tokens/design.tokens.stylex.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
|
-
import { createContext, useContext, useId, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
12
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Dialog as Dialog$1, DialogTrigger, Heading, HeadingContext, Modal, ModalOverlay, useSlottedContext } from "react-aria-components";
|
|
14
|
-
import { createPortal } from "react-dom";
|
|
15
15
|
// src/components/dialog/index.tsx
|
|
16
16
|
`${sizing.controlSm}${typography.headlineSmallLineHeight}`;
|
|
17
17
|
const FULL_SCREEN = "(width < 600px)";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { createContext, useContext, useLayoutEffect, useRef, useState } from "react";
|
|
5
|
+
import { Button, Disclosure as Disclosure$1, DisclosurePanel as DisclosurePanel$1, DisclosureStateContext, Heading } from "react-aria-components";
|
|
3
6
|
import { ChevronEndGlyph } from "../../glyphs/index.js";
|
|
4
7
|
import { useRipple } from "../../hooks/useRipple.js";
|
|
5
8
|
import { RowContent } from "../../row/index.js";
|
|
6
9
|
import { rowStyles } from "../../row/styles.js";
|
|
7
10
|
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
8
11
|
import { spacing } from "../../tokens/design.tokens.stylex.js";
|
|
9
|
-
import { c } from "react/compiler-runtime";
|
|
10
|
-
import { createContext, useContext, useLayoutEffect, useRef, useState } from "react";
|
|
11
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import { Button, Disclosure as Disclosure$1, DisclosurePanel as DisclosurePanel$1, DisclosureStateContext, Heading } from "react-aria-components";
|
|
13
13
|
// src/components/disclosure/index.tsx
|
|
14
14
|
const LeadingSlotContext = createContext(null);
|
|
15
15
|
const insetStyles = { inner: (paddingInlineStart) => [paddingInlineStart !== void 0 && {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
3
|
-
import Separator$1 from "../separator/index.js";
|
|
4
2
|
import { c } from "react/compiler-runtime";
|
|
5
3
|
import { Children, Fragment, isValidElement } from "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
4
|
import { DisclosureGroup as DisclosureGroup$1 } from "react-aria-components";
|
|
5
|
+
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
6
|
+
import Separator$1 from "../separator/index.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
// src/components/disclosure-group/index.tsx
|
|
9
9
|
/**
|
|
10
10
|
* A stack of `Disclosure` sections that agree about what is open. Which are
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { DropZone as DropZone$1, FileTrigger as FileTrigger$1 } from "react-aria-components";
|
|
3
5
|
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
4
6
|
import { dropZoneStyles, rootStyles } from "./styles.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { DropZone as DropZone$1, FileTrigger as FileTrigger$1 } from "react-aria-components";
|
|
8
8
|
// src/components/drop-zone/index.tsx
|
|
9
9
|
function content(children, label, isDisabled) {
|
|
10
10
|
return /* @__PURE__ */ jsxs(Fragment, { children: [label === void 0 ? null : /* @__PURE__ */ jsx("p", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonDOMProps, ButtonState } from "../../button/index.js";
|
|
2
1
|
import { ReactNode, RefAttributes } from "react";
|
|
3
2
|
import { ClassNameOrFunction, StyleOrFunction } from "react-aria-components";
|
|
3
|
+
import { ButtonDOMProps, ButtonState } from "../../button/index.js";
|
|
4
4
|
type FabProps = {
|
|
5
5
|
/**
|
|
6
6
|
* What the FAB does, in words. A FAB without a `label` is an icon alone,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
3
4
|
import { ButtonBase } from "../../button/index.js";
|
|
4
5
|
import { extendedFabSizes, fabIconSizes, fabSizes, fabStyles, fabTones } from "../../fab/styles.js";
|
|
5
6
|
import { useClippedTitle } from "../../hooks/useClippedTitle.js";
|
|
6
7
|
import { focus } from "../../styles/focus.js";
|
|
7
|
-
import { c } from "react/compiler-runtime";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
// src/components/fab/index.tsx
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ButtonState } from "../../button/index.js";
|
|
2
|
-
import { FabSize, FabTone } from "../fab/index.js";
|
|
3
1
|
import { ReactNode, RefAttributes } from "react";
|
|
4
2
|
import { ClassNameOrFunction, Key, MenuItemProps, MenuItemRenderProps, StyleOrFunction } from "react-aria-components";
|
|
3
|
+
import { ButtonState } from "../../button/index.js";
|
|
4
|
+
import { FabSize, FabTone } from "../fab/index.js";
|
|
5
5
|
type FabMenuItemProps = Omit<MenuItemProps, 'children' | 'className' | 'style'> & {
|
|
6
6
|
/** The action's name, drawn as its label. */
|
|
7
7
|
children: ReactNode;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { createContext, useContext, useState } from "react";
|
|
5
|
+
import { Menu, MenuItem, MenuTrigger, Popover, Text } from "react-aria-components";
|
|
3
6
|
import { ButtonBase } from "../../button/index.js";
|
|
4
7
|
import { textOf } from "../../collection/text.js";
|
|
5
8
|
import { fabIconSizes, fabSizes, fabStyles, fabTones } from "../../fab/styles.js";
|
|
@@ -7,10 +10,7 @@ import { CloseGlyph } from "../../glyphs/index.js";
|
|
|
7
10
|
import { useRipple } from "../../hooks/useRipple.js";
|
|
8
11
|
import { focus } from "../../styles/focus.js";
|
|
9
12
|
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
|
-
import { createContext, useContext, useState } from "react";
|
|
12
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Menu, MenuItem, MenuTrigger, Popover, Text } from "react-aria-components";
|
|
14
14
|
// src/components/fab-menu/index.tsx
|
|
15
15
|
const styles = {
|
|
16
16
|
closeButton: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
3
4
|
import { useRender } from "../../render/useRender.js";
|
|
4
5
|
import { mergeStyles } from "../../styles/merge.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
6
|
// src/components/feed/index.tsx
|
|
7
7
|
const DEFAULT_MIN_ITEM_WIDTH = "180px";
|
|
8
8
|
const _temp = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { Form as Form$1 } from "react-aria-components";
|
|
2
4
|
import { FIELD_VALIDATION_BEHAVIOR } from "../../field/root.js";
|
|
3
5
|
import { mergeStyles } from "../../styles/merge.js";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { Form as Form$1 } from "react-aria-components";
|
|
7
7
|
// src/components/form/index.tsx
|
|
8
8
|
/**
|
|
9
9
|
* A form: the fields inside it and what they are told about validation. Pass
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonDOMProps, ButtonForm, ButtonState } from "../../button/index.js";
|
|
2
1
|
import { ReactNode, RefAttributes } from "react";
|
|
3
2
|
import { ClassNameOrFunction, DOMRenderFunction, StyleOrFunction } from "react-aria-components";
|
|
3
|
+
import { ButtonDOMProps, ButtonForm, ButtonState } from "../../button/index.js";
|
|
4
4
|
type IconButtonProps = {
|
|
5
5
|
/**
|
|
6
6
|
* What the button does, in words. Required rather than optional: an icon
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { useContext } from "react";
|
|
5
|
+
import { ToggleGroupStateContext } from "react-aria-components";
|
|
3
6
|
import { ButtonBase, ToggleButtonBase } from "../../button/index.js";
|
|
4
7
|
import { ButtonGroupItemContext } from "../../button/context.js";
|
|
5
8
|
import { groupPressHandlers } from "../../button/group.js";
|
|
@@ -7,10 +10,7 @@ import { useSelection } from "../../button/hooks.js";
|
|
|
7
10
|
import { pressThen } from "../../button/toggle.js";
|
|
8
11
|
import { focus } from "../../styles/focus.js";
|
|
9
12
|
import { sizing } from "../../tokens/design.tokens.stylex.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
|
-
import { useContext } from "react";
|
|
12
13
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
import { ToggleGroupStateContext } from "react-aria-components";
|
|
14
14
|
// src/components/icon-button/index.tsx
|
|
15
15
|
const styles = {
|
|
16
16
|
base: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { useContext } from "react";
|
|
2
4
|
import { KeycapToneContext } from "../../keycap/context.js";
|
|
3
5
|
import { useRender } from "../../render/useRender.js";
|
|
4
6
|
import { mergeStyles } from "../../styles/merge.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
|
-
import { useContext } from "react";
|
|
7
7
|
// src/components/keycap/index.tsx
|
|
8
8
|
/**
|
|
9
9
|
* A single key on a keyboard, as named in an instruction — `Enter`, `Esc`,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { Link as Link$1 } from "react-aria-components";
|
|
3
5
|
import { ariaAttributesOf, linkRenderer } from "../../render/aria.js";
|
|
4
6
|
import { focus } from "../../styles/focus.js";
|
|
5
7
|
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
import { Link as Link$1 } from "react-aria-components";
|
|
9
9
|
// src/components/link/index.tsx
|
|
10
10
|
const styles = {
|
|
11
11
|
base: {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { createContext, useContext } from "react";
|
|
5
|
+
import { GridList, GridListHeader, GridListItem, GridListLoadMoreItem, GridListSection } from "react-aria-components";
|
|
3
6
|
import { CollectionLoadMore } from "../../collection/index.js";
|
|
4
7
|
import { collectionStyles, containerClasses, rowItemStyles } from "../../collection/styles.js";
|
|
5
8
|
import { textOf } from "../../collection/text.js";
|
|
@@ -7,10 +10,7 @@ import { useRipple } from "../../hooks/useRipple.js";
|
|
|
7
10
|
import { RowContent } from "../../row/index.js";
|
|
8
11
|
import { mergeStatefulStyles, mergeStyles } from "../../styles/merge.js";
|
|
9
12
|
import Checkbox from "../checkbox/index.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
|
-
import { createContext, useContext } from "react";
|
|
12
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { GridList, GridListHeader, GridListItem, GridListLoadMoreItem, GridListSection } from "react-aria-components";
|
|
14
14
|
// src/components/list/index.tsx
|
|
15
15
|
const SelectLabelContext = createContext(void 0);
|
|
16
16
|
const RowsActContext = createContext(false);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { useContext } from "react";
|
|
5
|
+
import { Header, ListBox as ListBox$1, ListBoxItem as ListBoxItem$1, ListBoxLoadMoreItem, ListBoxSection as ListBoxSection$1 } from "react-aria-components";
|
|
3
6
|
import { CollectionEmpty, CollectionLoadMore } from "../../collection/index.js";
|
|
4
7
|
import { OptionRowContext } from "../../collection/context.js";
|
|
5
8
|
import { collectionStyles, containerClasses, rowItemStyles } from "../../collection/styles.js";
|
|
@@ -7,10 +10,7 @@ import { textOf } from "../../collection/text.js";
|
|
|
7
10
|
import { useRipple } from "../../hooks/useRipple.js";
|
|
8
11
|
import { RowContent } from "../../row/index.js";
|
|
9
12
|
import { mergeStatefulStyles, mergeStyles } from "../../styles/merge.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
|
-
import { useContext } from "react";
|
|
12
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Header, ListBox as ListBox$1, ListBoxItem as ListBoxItem$1, ListBoxLoadMoreItem, ListBoxSection as ListBoxSection$1 } from "react-aria-components";
|
|
14
14
|
// src/components/list-box/index.tsx
|
|
15
15
|
function EmptyRow() {
|
|
16
16
|
const $ = c(2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RenderComponentProps } from "../../render/useRender.js";
|
|
2
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { RenderComponentProps } from "../../render/useRender.js";
|
|
3
3
|
type ListDetailProps = {
|
|
4
4
|
/**
|
|
5
5
|
* The selected item's content. Stands on its own, and takes the flexible
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { useRender } from "../../render/useRender.js";
|
|
3
4
|
import { mergeStyles } from "../../styles/merge.js";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
// src/components/list-detail/index.tsx
|
|
7
7
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
3
4
|
import { useRipple } from "../../hooks/useRipple.js";
|
|
4
5
|
import { hasContent } from "../../render/content.js";
|
|
@@ -6,7 +7,6 @@ import { refCallback } from "../../render/ref.js";
|
|
|
6
7
|
import { RowContent } from "../../row/index.js";
|
|
7
8
|
import { rowStyles } from "../../row/styles.js";
|
|
8
9
|
import { mergeStyles } from "../../styles/merge.js";
|
|
9
|
-
import { c } from "react/compiler-runtime";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
// src/components/list-item/index.tsx
|
|
12
12
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
3
2
|
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
3
|
import { ProgressBar } from "react-aria-components";
|
|
4
|
+
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
// src/components/loading-indicator/index.tsx
|
|
7
7
|
/**
|
|
8
8
|
* A shape morphing as it turns, for a wait of a few seconds whose length is
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OverlayAlign, OverlaySide } from "../../styles/overlay.js";
|
|
2
|
-
import Separator$1 from "../separator/index.js";
|
|
3
1
|
import { ComponentProps, ReactElement, ReactNode, RefAttributes } from "react";
|
|
4
2
|
import { ClassNameOrFunction, MenuItemProps as MenuItemProps$1, MenuLoadMoreItemProps, MenuProps as MenuProps$1, MenuSectionProps as MenuSectionProps$1, MenuTriggerProps, PopoverRenderProps, StyleOrFunction } from "react-aria-components";
|
|
3
|
+
import { OverlayAlign, OverlaySide } from "../../styles/overlay.js";
|
|
4
|
+
import Separator$1 from "../separator/index.js";
|
|
5
5
|
type MenuAlign = OverlayAlign;
|
|
6
6
|
type MenuContentProps<T extends object = object> = {
|
|
7
7
|
/**
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { useContext, useEffect, useRef } from "react";
|
|
5
|
+
import { AutocompleteStateContext, Header, Keyboard, Menu as Menu$1, MenuItem as MenuItem$1, MenuLoadMoreItem, MenuSection as MenuSection$1, MenuTrigger, Popover, SubmenuTrigger, Text } from "react-aria-components";
|
|
3
6
|
import { CollectionEmpty, CollectionLoadMore, CollectionStatus } from "../../collection/index.js";
|
|
4
7
|
import { textOf } from "../../collection/text.js";
|
|
5
8
|
import { CheckGlyph, ChevronEndGlyph } from "../../glyphs/index.js";
|
|
@@ -10,10 +13,7 @@ import { rowStyles, supportingTone } from "../../row/styles.js";
|
|
|
10
13
|
import { mergeStatefulStyles, mergeStyles } from "../../styles/merge.js";
|
|
11
14
|
import { overlay, placementOf, popupOrigin } from "../../styles/overlay.js";
|
|
12
15
|
import Separator$1 from "../separator/index.js";
|
|
13
|
-
import { c } from "react/compiler-runtime";
|
|
14
|
-
import { useContext, useEffect, useRef } from "react";
|
|
15
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { AutocompleteStateContext, Header, Keyboard, Menu as Menu$1, MenuItem as MenuItem$1, MenuLoadMoreItem, MenuSection as MenuSection$1, MenuTrigger, Popover, SubmenuTrigger, Text } from "react-aria-components";
|
|
17
17
|
// src/components/menu/index.tsx
|
|
18
18
|
const styles = {
|
|
19
19
|
content: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IndicatorTone } from "../../indicator/styles.js";
|
|
2
1
|
import { ReactNode, RefAttributes } from "react";
|
|
3
2
|
import { MeterProps as MeterProps$1 } from "react-aria-components";
|
|
3
|
+
import { IndicatorTone } from "../../indicator/styles.js";
|
|
4
4
|
type MeterProps = Omit<MeterProps$1, 'children' | 'className' | 'style'> & {
|
|
5
5
|
/** A function may compute the class from the meter's render state. */
|
|
6
6
|
className?: MeterProps$1['className'];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { Meter as Meter$1 } from "react-aria-components";
|
|
3
5
|
import { CheckCircleGlyph, ErrorGlyph } from "../../glyphs/index.js";
|
|
4
6
|
import { IndicatorLabels, IndicatorLine } from "../../indicator/index.js";
|
|
5
7
|
import { indicatorStyles } from "../../indicator/styles.js";
|
|
6
8
|
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
7
|
-
import { c } from "react/compiler-runtime";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { Meter as Meter$1 } from "react-aria-components";
|
|
10
10
|
// src/components/meter/index.tsx
|
|
11
11
|
/**
|
|
12
12
|
* How full something is, on a scale it names: disk used, storage left,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { RefAttributes } from "react";
|
|
1
2
|
import { NavigationItemProps } from "../../navigation/index.js";
|
|
2
3
|
import { RenderComponentProps } from "../../render/useRender.js";
|
|
3
|
-
import { RefAttributes } from "react";
|
|
4
4
|
type NavigationBarProps = RenderComponentProps<'nav'> & {
|
|
5
5
|
/**
|
|
6
6
|
* The route of the current destination, matched exactly against each
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { useLayoutEffect, useState } from "react";
|
|
2
4
|
import { NavigationItem, NavigationList } from "../../navigation/index.js";
|
|
3
5
|
import { NavigationContext } from "../../navigation/context.js";
|
|
4
6
|
import { mergeRefs } from "../../render/ref.js";
|
|
5
7
|
import { useRender } from "../../render/useRender.js";
|
|
6
8
|
import { mergeStyles } from "../../styles/merge.js";
|
|
7
|
-
import { c } from "react/compiler-runtime";
|
|
8
|
-
import { useLayoutEffect, useState } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
// src/components/navigation-bar/index.tsx
|
|
11
11
|
const styles = { destinations: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ReactNode, RefAttributes } from "react";
|
|
1
2
|
import { NavigationItemProps } from "../../navigation/index.js";
|
|
2
3
|
import { RenderComponentProps } from "../../render/useRender.js";
|
|
3
|
-
import { ReactNode, RefAttributes } from "react";
|
|
4
4
|
type NavigationRailProps = RenderComponentProps<'nav'> & {
|
|
5
5
|
/**
|
|
6
6
|
* What the rail draws above its destinations: a menu button that expands
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import "react";
|
|
2
4
|
import { NavigationItem, NavigationList } from "../../navigation/index.js";
|
|
3
5
|
import { NavigationContext } from "../../navigation/context.js";
|
|
4
6
|
import { useRender } from "../../render/useRender.js";
|
|
5
7
|
import { mergeStyles } from "../../styles/merge.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
|
-
import "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
// src/components/navigation-rail/index.tsx
|
|
10
10
|
const styles = { destinations: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { Button, Link, NavigationTree as NavigationTree$1, NavigationTreeHeader as NavigationTreeHeader$1, NavigationTreeItem as NavigationTreeItem$1, NavigationTreeItemContent, NavigationTreeSection as NavigationTreeSection$1 } from "react-aria-components";
|
|
3
5
|
import { collectionStyles } from "../../collection/styles.js";
|
|
4
6
|
import { ChevronEndGlyph } from "../../glyphs/index.js";
|
|
5
7
|
import { useRipple } from "../../hooks/useRipple.js";
|
|
@@ -7,9 +9,7 @@ import { RowContent } from "../../row/index.js";
|
|
|
7
9
|
import { rowStyles } from "../../row/styles.js";
|
|
8
10
|
import { focus } from "../../styles/focus.js";
|
|
9
11
|
import { mergeStatefulStyles, mergeStyles } from "../../styles/merge.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import { Button, Link, NavigationTree as NavigationTree$1, NavigationTreeHeader as NavigationTreeHeader$1, NavigationTreeItem as NavigationTreeItem$1, NavigationTreeItemContent, NavigationTreeSection as NavigationTreeSection$1 } from "react-aria-components";
|
|
13
13
|
// src/components/navigation-tree/index.tsx
|
|
14
14
|
const styles = {
|
|
15
15
|
chevron: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FieldVariant } from "../../field/index.js";
|
|
2
1
|
import { Ref, RefAttributes } from "react";
|
|
3
2
|
import { NumberFieldProps as NumberFieldProps$1 } from "react-aria-components";
|
|
3
|
+
import { FieldVariant } from "../../field/index.js";
|
|
4
4
|
type NumberFieldProps = {
|
|
5
5
|
/**
|
|
6
6
|
* The name of the stepper that lowers the value, for a screen reader. Left
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { Button, NumberField as NumberField$1 } from "react-aria-components";
|
|
3
5
|
import { FieldBox, FieldInput, FieldMessage } from "../../field/index.js";
|
|
4
6
|
import { fieldStyles, invalidFrom, useFieldValidationBehavior } from "../../field/root.js";
|
|
5
7
|
import { MinusGlyph, PlusGlyph } from "../../glyphs/index.js";
|
|
6
8
|
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
7
9
|
import { sizing, spacing, typography } from "../../tokens/design.tokens.stylex.js";
|
|
8
10
|
import IconButton from "../icon-button/index.js";
|
|
9
|
-
import { c } from "react/compiler-runtime";
|
|
10
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { Button, NumberField as NumberField$1 } from "react-aria-components";
|
|
12
12
|
// src/components/number-field/index.tsx
|
|
13
13
|
`${spacing.sm}${typography.bodySmallLineHeight}${typography.bodyLargeLineHeight}`;
|
|
14
14
|
`${spacing.lg}${typography.bodyLargeLineHeight}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OverlayAlign, OverlaySide } from "../../styles/overlay.js";
|
|
2
1
|
import { ReactNode, RefAttributes, RefObject } from "react";
|
|
3
2
|
import { ClassNameOrFunction, DialogProps, DialogTriggerProps, HeadingProps, PopoverRenderProps, StyleOrFunction, TextProps } from "react-aria-components";
|
|
3
|
+
import { OverlayAlign, OverlaySide } from "../../styles/overlay.js";
|
|
4
4
|
type PopoverAlign = OverlayAlign;
|
|
5
5
|
type PopoverSide = OverlaySide;
|
|
6
6
|
type PopoverSize = 'md' | 'sm';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { createContext, useContext, useEffect, useId, useRef, useState } from "react";
|
|
5
|
+
import { useFocusVisible, useInteractOutside } from "react-aria";
|
|
6
|
+
import { ButtonContext, DEFAULT_SLOT, Dialog, DialogContext, DialogTrigger, Heading, HeadingContext, OverlayTriggerStateContext, Popover as Popover$1, PopoverContext as PopoverContext$1, PreviewTrigger, Text, TextContext, useSlottedContext } from "react-aria-components";
|
|
3
7
|
import { OverlayScope } from "../../overlay/index.js";
|
|
4
8
|
import { mergeRefs } from "../../render/ref.js";
|
|
5
9
|
import { mergeStatefulStyles, mergeStyles } from "../../styles/merge.js";
|
|
6
10
|
import { overlay, placementOf, popupOrigin } from "../../styles/overlay.js";
|
|
7
|
-
import { c } from "react/compiler-runtime";
|
|
8
|
-
import { createContext, useContext, useEffect, useId, useRef, useState } from "react";
|
|
9
11
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
import { ButtonContext, DEFAULT_SLOT, Dialog, DialogContext, DialogTrigger, Heading, HeadingContext, OverlayTriggerStateContext, Popover as Popover$1, PopoverContext as PopoverContext$1, PreviewTrigger, Text, TextContext, useSlottedContext } from "react-aria-components";
|
|
11
|
-
import { useFocusVisible, useInteractOutside } from "react-aria";
|
|
12
12
|
// src/components/popover/index.tsx
|
|
13
13
|
const DEFAULT_SIDE_OFFSET = 8;
|
|
14
14
|
const styles = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RenderComponentProps } from "../../render/useRender.js";
|
|
2
1
|
import { ImgHTMLAttributes } from "react";
|
|
2
|
+
import { RenderComponentProps } from "../../render/useRender.js";
|
|
3
3
|
type ProductIconProps = Omit<RenderComponentProps<'span'>, 'children'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Hides the mark from assistive technology, for one beside the name of
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IndicatorTone } from "../../indicator/styles.js";
|
|
2
1
|
import { ReactNode, RefAttributes } from "react";
|
|
3
2
|
import { ProgressBarProps } from "react-aria-components";
|
|
3
|
+
import { IndicatorTone } from "../../indicator/styles.js";
|
|
4
4
|
type ProgressIndicatorProps = {
|
|
5
5
|
/**
|
|
6
6
|
* How far the work is loaded ahead of the value — a video's buffered
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { ProgressBar } from "react-aria-components";
|
|
3
5
|
import { IndicatorLabels, IndicatorLine } from "../../indicator/index.js";
|
|
4
6
|
import { indicatorStyles } from "../../indicator/styles.js";
|
|
5
7
|
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { ProgressBar } from "react-aria-components";
|
|
9
9
|
// src/components/progress-indicator/index.tsx
|
|
10
10
|
const CIRCULAR_SIZE = 40;
|
|
11
11
|
const CIRCULAR_SIZE_PX = `${CIRCULAR_SIZE}px`;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { RadioButton, RadioField, RadioGroup as RadioGroup$1 } from "react-aria-components";
|
|
3
5
|
import { ControlDescription, ControlLabel } from "../../control/index.js";
|
|
4
6
|
import { controlStyles } from "../../control/styles.js";
|
|
5
7
|
import { FieldLabel, FieldMessage } from "../../field/index.js";
|
|
@@ -8,9 +10,7 @@ import { groupStyles } from "../../field/styles.js";
|
|
|
8
10
|
import { useRipple } from "../../hooks/useRipple.js";
|
|
9
11
|
import { focus } from "../../styles/focus.js";
|
|
10
12
|
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
11
|
-
import { c } from "react/compiler-runtime";
|
|
12
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { RadioButton, RadioField, RadioGroup as RadioGroup$1 } from "react-aria-components";
|
|
14
14
|
// src/components/radio-group/index.tsx
|
|
15
15
|
const styles = {
|
|
16
16
|
control: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
4
|
+
import { useContext } from "react";
|
|
5
|
+
import { CalendarCell, RangeCalendar as RangeCalendar$1, RangeCalendarStateContext } from "react-aria-components";
|
|
3
6
|
import { CalendarFrame, CalendarMonths } from "../../calendar/index.js";
|
|
4
7
|
import { calendarStyles, dateLayers } from "../../calendar/styles.js";
|
|
5
8
|
import { focus } from "../../styles/focus.js";
|
|
6
9
|
import { mergeStatefulStyles } from "../../styles/merge.js";
|
|
7
|
-
import { c } from "react/compiler-runtime";
|
|
8
|
-
import { useContext } from "react";
|
|
9
10
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
import { CalendarCell, RangeCalendar as RangeCalendar$1, RangeCalendarStateContext } from "react-aria-components";
|
|
11
11
|
// src/components/range-calendar/index.tsx
|
|
12
12
|
function cellClassName(state, isInRange) {
|
|
13
13
|
const isEnd = state.isSelected && (state.isSelectionStart || state.isSelectionEnd);
|