twenty-ui 2.50.0 → 2.51.3
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/CHANGELOG.md +5 -0
- package/README.md +36 -32
- package/dist/{AllIcons-Cyd7721G.cjs → AllIcons-1tBWXXrE.cjs} +1 -1
- package/dist/{AllIcons-D132B8_i.js → AllIcons-ayl8BCtV.js} +1 -1
- package/dist/Dropdown-D_hFndP5.cjs +1 -0
- package/dist/Dropdown-xXsGBv57.js +1056 -0
- package/dist/Input-D1sIHUZ5.js +25 -0
- package/dist/Input-D69M4UwD.cjs +1 -0
- package/dist/ListItem-B-SFWJZb.cjs +1 -0
- package/dist/ListItem-WLONJMo5.js +91 -0
- package/dist/ListItem.module-B31VK9XZ.js +34 -0
- package/dist/ListItem.module-DiUK6-0Z.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-ClpPsdpP.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-D4eZc-7P.js +96 -0
- package/dist/ProgressBar-8pjpGrmZ.js +99 -0
- package/dist/ProgressBar-goqxS9NE.cjs +1 -0
- package/dist/Radio-CpQPRHXa.cjs +1 -0
- package/dist/Radio-VTjpEz8M.js +175 -0
- package/dist/Skeleton-BbIF780H.js +31 -0
- package/dist/Skeleton-tXeIy4qq.cjs +1 -0
- package/dist/TablerIcons-B-5Ua_Ne.js +460 -0
- package/dist/{Tooltip-DL3sfbuw.cjs → Tooltip-08dDawT_.cjs} +1 -1
- package/dist/components/data-display/DetailsRow/DetailsRow.d.ts +2 -0
- package/dist/components/data-display/DetailsRow/types/DetailsRowProps.d.ts +9 -0
- package/dist/components/data-display/index.d.ts +2 -0
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +9 -8
- package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerCssVariableThemeExample.d.ts +1 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerExample.d.ts +5 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerExternalMonthExample.d.ts +4 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerNavigationUnmountExample.d.ts +2 -0
- package/dist/components/input/DatePicker/__stories__/datePickerWeekdayLabels.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/DatePickerException.d.ts +5 -0
- package/dist/components/input/DatePicker/internal/DatePickerHeader.d.ts +3 -0
- package/dist/components/input/DatePicker/internal/DatePickerSelect.d.ts +15 -0
- package/dist/components/input/DatePicker/internal/DatePickerSelectLifecycleEffect.d.ts +7 -0
- package/dist/components/input/DatePicker/internal/DatePickerViewedMonthEffect.d.ts +9 -0
- package/dist/components/input/DatePicker/internal/ReactDatePickerLibrary.d.ts +2 -0
- package/dist/components/input/DatePicker/internal/datePickerConstants.d.ts +6 -0
- package/dist/components/input/DatePicker/internal/formatDatePickerLocalDate.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/parseDatePickerDateOrThrow.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/parseDatePickerLocalDateOrThrow.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/validateDatePickerHighlightedRangeOrThrow.d.ts +4 -0
- package/dist/components/input/DatePicker/types/DatePickerHeaderProps.d.ts +9 -0
- package/dist/components/input/DatePicker/types/DatePickerProps.d.ts +42 -0
- package/dist/components/input/EmojiPicker/EmojiPicker.d.ts +2 -0
- package/dist/components/input/EmojiPicker/__stories__/EmojiPickerExample.d.ts +4 -0
- package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryData.d.ts +30 -0
- package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryEmojibaseUrl.d.ts +1 -0
- package/dist/components/input/EmojiPicker/__stories__/mockEmojiPickerStoryData.d.ts +5 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerEmoji.d.ts +2 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerRow.d.ts +2 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerScrollEffect.d.ts +6 -0
- package/dist/components/input/EmojiPicker/internal/scrollActiveEmojiIntoView.d.ts +1 -0
- package/dist/components/input/EmojiPicker/types/EmojiPickerProps.d.ts +11 -0
- package/dist/components/input/FormFieldRow/FormFieldRow.d.ts +2 -0
- package/dist/components/input/FormFieldRow/types/FormFieldRowProps.d.ts +12 -0
- package/dist/components/input/ReactionButton/ReactionButton.d.ts +2 -0
- package/dist/components/input/ReactionButton/__stories__/ReactionButtonExample.d.ts +2 -0
- package/dist/components/input/ReactionButton/types/ReactionButtonProps.d.ts +14 -0
- package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +1 -1
- package/dist/components/input/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +2 -0
- package/dist/components/input/SegmentedControl/types/SegmentedControlVariant.d.ts +1 -0
- package/dist/components/input/index.d.ts +10 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +17 -13
- package/dist/components/layout/LabeledSeparator/LabeledSeparator.d.ts +2 -0
- package/dist/components/layout/LabeledSeparator/types/LabeledSeparatorProps.d.ts +7 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +5 -4
- package/dist/components/navigation/CountPager/CountPager.d.ts +2 -0
- package/dist/components/navigation/CountPager/__stories__/CountPagerCollectionExample.d.ts +3 -0
- package/dist/components/navigation/CountPager/__stories__/CountPagerExample.d.ts +2 -0
- package/dist/components/navigation/CountPager/types/CountPagerProps.d.ts +11 -0
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +4 -4
- package/dist/components/navigation/Dropdown/__stories__/DropdownControlledPageSessionExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownNestedPageSessionExample.d.ts +6 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPageActivityExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPageSessionExample.d.ts +5 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPickerPageSessionExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/hooks/useDropdownPage.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +3 -0
- package/dist/components/navigation/Dropdown/internal/DropdownEmpty.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownLoading.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownPageEffect.d.ts +8 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/isActiveDropdownElement.d.ts +1 -0
- package/dist/components/navigation/Dropdown/types/DropdownSearchProps.d.ts +1 -1
- package/dist/components/navigation/ListItemButton/ListItemButton.d.ts +1 -1
- package/dist/components/navigation/ListItemButton/types/ListItemButtonProps.d.ts +1 -1
- package/dist/components/navigation/index.d.ts +2 -0
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +7 -6
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +44 -37
- package/dist/{data-display-CXw-mxeS.js → data-display-DUMj_z1t.js} +25 -25
- package/dist/data-display-D_kbXJJd.cjs +2 -0
- package/dist/{data-display-DdES9XqZ.cjs → data-display-DzHM5j7j.cjs} +1 -1
- package/dist/data-display-b-9s0RTe.js +422 -0
- package/dist/feedback-B50I0C35.cjs +1 -0
- package/dist/feedback-BQFSnMjh.js +10 -0
- package/dist/{feedback-DspXawf9.cjs → feedback-BzR4ggrP.cjs} +1 -1
- package/dist/{feedback-4HKPcMRs.js → feedback-EaZszoXf.js} +29 -29
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/constants/TwentyIconDictionary.d.ts +9 -0
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-CUE-QGQK.js → icon-ICz2_dVB.js} +550 -944
- package/dist/icon-TSBamkxk.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +510 -504
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +666 -652
- package/dist/input-BQABEELu.cjs +1 -0
- package/dist/input-CuySKbhm.js +2356 -0
- package/dist/input-DxoXgI5-.js +373 -0
- package/dist/input-ExCbk62Y.cjs +1 -0
- package/dist/layout-B1Iwc9ku.cjs +1 -0
- package/dist/layout-B2KvJ900.js +479 -0
- package/dist/navigation-DP5Edsq_.cjs +1 -0
- package/dist/navigation-DXMjQMPm.js +134 -0
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback/Banner/Banner.d.ts +1 -1
- package/dist/primitives/feedback/Banner/internal/BannerComponent.d.ts +1 -1
- package/dist/primitives/feedback/Banner/types/BannerProps.d.ts +2 -0
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +9 -8
- package/dist/primitives/input/Autocomplete/types/AutocompleteItemProps.d.ts +3 -1
- package/dist/primitives/input/Input/Input.d.ts +1 -1
- package/dist/primitives/input/Input/types/InputProps.d.ts +3 -0
- package/dist/primitives/input/InputGroup/InputGroup.d.ts +1 -1
- package/dist/primitives/input/InputGroup/types/InputGroupProps.d.ts +1 -0
- package/dist/primitives/input/Textarea/Textarea.d.ts +1 -1
- package/dist/primitives/input/Textarea/internal/TextareaAutoResizeEffect.d.ts +8 -0
- package/dist/primitives/input/Textarea/types/TextareaProps.d.ts +2 -0
- package/dist/primitives/input/index.d.ts +1 -0
- package/dist/primitives/input/types/InputVariant.d.ts +1 -0
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +14 -14
- package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/__stories__/ListItemMultilineExample.d.ts +7 -0
- package/dist/primitives/navigation/ListItem/types/ListItemDescriptionPlacement.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +3 -0
- package/dist/primitives/navigation/ListItem/types/ListItemState.d.ts +1 -0
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +1 -1
- package/dist/primitives/surfaces/Card/Card.d.ts +2 -0
- package/dist/primitives/surfaces/Card/internal/CardAction.d.ts +2 -0
- package/dist/primitives/surfaces/Card/internal/CardControl.d.ts +2 -0
- package/dist/primitives/surfaces/Card/types/CardActionProps.d.ts +2 -0
- package/dist/primitives/surfaces/Card/types/CardControlProps.d.ts +2 -0
- package/dist/primitives/surfaces/index.d.ts +2 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +2 -2
- package/dist/primitives/typography/Heading/types/HeadingProps.d.ts +4 -2
- package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextWithTooltipProps.d.ts +2 -1
- package/dist/primitives/typography/Text/Text.d.ts +1 -1
- package/dist/primitives/typography/Text/internal/TextTypographyProps.d.ts +7 -0
- package/dist/primitives/typography/Text/types/TextProps.d.ts +2 -1
- package/dist/primitives/typography/internal/TypographyColor.d.ts +2 -0
- package/dist/primitives/typography/internal/TypographyFontSize.d.ts +2 -0
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +2 -2
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +52 -51
- package/dist/{settings-XGSJtobU.js → settings-BTFAqYrD.js} +1 -1
- package/dist/{settings-DT5bEO6A.cjs → settings-D_iT1ngl.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-DtZwsfms.cjs +1 -0
- package/dist/surfaces-v0kQLZYO.js +224 -0
- package/dist/{typography-CWtuNruY.cjs → typography-B05olPwL.cjs} +1 -1
- package/dist/{typography-BPdXzW2T.js → typography-BwyZEDDi.js} +1 -1
- package/dist/utilities/color/utils/themeColorSchema.d.ts +15 -15
- package/package.json +3 -1
- package/dist/Dropdown-ChTVyesF.js +0 -1018
- package/dist/Dropdown-DlItz8Gh.cjs +0 -1
- package/dist/Input-DZWl81G_.js +0 -23
- package/dist/Input-DvL77rvu.cjs +0 -1
- package/dist/ListItem-C6Xl00m1.cjs +0 -1
- package/dist/ListItem-C84ANa76.js +0 -86
- package/dist/ListItem.module-BJ9Ttjrc.js +0 -34
- package/dist/ListItem.module-CO4u2oeF.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-BQmpPObX.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-BtB9cGdJ.js +0 -89
- package/dist/ProgressBar-CzGs7cuE.cjs +0 -1
- package/dist/ProgressBar-D4tKQ7OA.js +0 -84
- package/dist/Radio-BwBZ4e8g.js +0 -103
- package/dist/Radio-sIYxZnR_.cjs +0 -1
- package/dist/data-display-C-eoJ5En.js +0 -378
- package/dist/data-display-CM1yXpnE.cjs +0 -2
- package/dist/feedback-BSOWDBI0.js +0 -38
- package/dist/feedback-DBRXDPSP.cjs +0 -1
- package/dist/icon-BNcdwwdl.cjs +0 -1
- package/dist/input-CWWp7cqL.cjs +0 -1
- package/dist/input-CvZ_uB_9.cjs +0 -1
- package/dist/input-Qn5_aFYU.js +0 -785
- package/dist/input-k5cMhFI_.js +0 -428
- package/dist/layout-DDqeMgFv.js +0 -439
- package/dist/layout-iSfGrMrH.cjs +0 -1
- package/dist/navigation-7Y6gHFlj.cjs +0 -1
- package/dist/navigation-BcXCiLE1.js +0 -86
- package/dist/primitives/typography/internal/Label/Label.d.ts +0 -8
- package/dist/surfaces-q8voTXEJ.cjs +0 -1
- package/dist/surfaces-vhSZBmbz.js +0 -201
- package/dist/{Tooltip-6uS8_wdA.js → Tooltip-C7zc16gI.js} +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete';
|
|
2
2
|
import { ListItemProps } from '../../../navigation/ListItem/types/ListItemProps';
|
|
3
|
-
export type AutocompleteItemProps = AutocompletePrimitive.Item.Props & Pick<ListItemProps, 'startIcon' | 'endIcon' | 'description'
|
|
3
|
+
export type AutocompleteItemProps = AutocompletePrimitive.Item.Props & Pick<ListItemProps, 'startIcon' | 'endIcon' | 'description'> & {
|
|
4
|
+
descriptionPlacement?: Exclude<ListItemProps['descriptionPlacement'], 'below'>;
|
|
5
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InputProps } from './types/InputProps';
|
|
2
|
-
export declare const Input: ({ size, className, ...props }: InputProps) => import("react").JSX.Element;
|
|
2
|
+
export declare const Input: ({ size, variant, hasFocusRing, className, ...props }: InputProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Input as InputPrimitive } from '@base-ui/react/input';
|
|
2
2
|
import { InputSize } from '../../types/InputSize';
|
|
3
|
+
import { InputVariant } from '../../types/InputVariant';
|
|
3
4
|
export type InputProps = Omit<InputPrimitive.Props, 'size'> & {
|
|
4
5
|
size?: InputSize;
|
|
6
|
+
variant?: InputVariant;
|
|
7
|
+
hasFocusRing?: boolean;
|
|
5
8
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InputGroupProps } from './types/InputGroupProps';
|
|
2
|
-
export declare const InputGroup: ({ size, startElement, endElement, className, children, render, ref, ...props }: InputGroupProps) => import("react").JSX.Element;
|
|
2
|
+
export declare const InputGroup: ({ size, hasFocusRing, startElement, endElement, className, children, render, ref, ...props }: InputGroupProps) => import("react").JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { InputSize } from '../../types/InputSize';
|
|
4
4
|
export type InputGroupProps = useRender.ComponentProps<'div'> & {
|
|
5
5
|
size?: InputSize;
|
|
6
|
+
hasFocusRing?: boolean;
|
|
6
7
|
/** Content rendered before the input, such as a prefix or an icon. */
|
|
7
8
|
startElement?: ReactNode;
|
|
8
9
|
/** Content rendered after the input, such as a suffix or a button. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TextareaProps } from './types/TextareaProps';
|
|
2
|
-
export declare const Textarea: ({ size, autoResize, maxRows, className, style, ref, render, onChange, value, rows, ...props }: TextareaProps) => import("react").JSX.Element;
|
|
2
|
+
export declare const Textarea: ({ size, variant, autoResize, maxRows, className, style, ref, render, onChange, value, rows, ...props }: TextareaProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { TextareaProps } from '../types/TextareaProps';
|
|
3
|
+
type TextareaAutoResizeEffectProps = Pick<TextareaProps, 'autoResize' | 'value' | 'maxRows' | 'rows' | 'size' | 'variant' | 'form'> & {
|
|
4
|
+
textarea: HTMLTextAreaElement | null;
|
|
5
|
+
consumerBlockSize: CSSProperties['blockSize'];
|
|
6
|
+
};
|
|
7
|
+
export declare const TextareaAutoResizeEffect: ({ textarea, autoResize, value, maxRows, rows, size, variant, consumerBlockSize, form, }: TextareaAutoResizeEffectProps) => null;
|
|
8
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Input as InputPrimitive } from '@base-ui/react/input';
|
|
2
2
|
import { useRender } from '@base-ui/react/use-render';
|
|
3
3
|
import { InputSize } from '../../types/InputSize';
|
|
4
|
+
import { InputVariant } from '../../types/InputVariant';
|
|
4
5
|
export type TextareaProps = Omit<useRender.ComponentProps<'textarea', InputPrimitive.State, useRender.ElementProps<'textarea'>>, 'className'> & {
|
|
5
6
|
/**
|
|
6
7
|
* CSS class applied to the textarea, or a function that returns a class
|
|
@@ -10,6 +11,7 @@ export type TextareaProps = Omit<useRender.ComponentProps<'textarea', InputPrimi
|
|
|
10
11
|
onValueChange?: (value: string, eventDetails: InputPrimitive.ChangeEventDetails) => void;
|
|
11
12
|
/** Visual size of the textarea. */
|
|
12
13
|
size?: InputSize;
|
|
14
|
+
variant?: InputVariant;
|
|
13
15
|
autoResize?: boolean;
|
|
14
16
|
maxRows?: number;
|
|
15
17
|
};
|
|
@@ -164,4 +164,5 @@ export type { SwitchThumbProps } from './Switch/types/SwitchThumbProps';
|
|
|
164
164
|
export { Textarea } from './Textarea/Textarea';
|
|
165
165
|
export type { TextareaProps } from './Textarea/types/TextareaProps';
|
|
166
166
|
export type { InputSize } from './types/InputSize';
|
|
167
|
+
export type { InputVariant } from './types/InputVariant';
|
|
167
168
|
export type { SelectOption } from './types/SelectOption';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InputVariant = 'default' | 'plain';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../Button-iVyxlrwO.cjs"),u=require("../Input-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../Button-iVyxlrwO.cjs"),u=require("../Input-D69M4UwD.cjs"),t=require("../Radio-CpQPRHXa.cjs"),o=require("../Switch-Ck8QAAbb.cjs"),e=require("../input-ExCbk62Y.cjs");exports.Autocomplete=e.Autocomplete;exports.Button=r.Button;exports.ButtonGroup=e.ButtonGroup;exports.Checkbox=e.Checkbox;exports.Field=e.Field;exports.Input=u.Input;exports.InputGroup=t.InputGroup;exports.NumberField=t.NumberField;exports.Radio=t.Radio;exports.RadioGroup=e.RadioGroup;exports.Select=t.Select;exports.Slider=e.Slider;exports.Switch=o.Switch;exports.Textarea=e.Textarea;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t } from "../Button-CU8BS-Yd.js";
|
|
2
|
-
import { t as r } from "../Input-
|
|
3
|
-
import { n as e, r as
|
|
4
|
-
import { t as
|
|
5
|
-
import { a as
|
|
2
|
+
import { t as r } from "../Input-D1sIHUZ5.js";
|
|
3
|
+
import { i, n as e, r as m, t as p } from "../Radio-VTjpEz8M.js";
|
|
4
|
+
import { t as n } from "../Switch-DOd0gh7W.js";
|
|
5
|
+
import { a as f, i as l, n as c, o as x, r as G, s as S, t as b } from "../input-DxoXgI5-.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
S as Autocomplete,
|
|
8
8
|
t as Button,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
x as ButtonGroup,
|
|
10
|
+
f as Checkbox,
|
|
11
|
+
l as Field,
|
|
12
12
|
r as Input,
|
|
13
13
|
e as InputGroup,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
m as NumberField,
|
|
15
|
+
p as Radio,
|
|
16
|
+
G as RadioGroup,
|
|
17
|
+
i as Select,
|
|
18
|
+
c as Slider,
|
|
19
|
+
n as Switch,
|
|
20
20
|
b as Textarea
|
|
21
21
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ListItemProps } from './types/ListItemProps';
|
|
2
|
-
export declare const ListItem: ({ color, selected, focused, disabled, indicator, startIcon, endIcon, description, descriptionPlacement, actions, actionsVisibility, shortcut, shortcutJoinLabel, hasSubmenu, className, children, render, ref, ...props }: ListItemProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
2
|
+
export declare const ListItem: ({ color, selected, selectionAppearance, active, focused, disabled, indicator, startIcon, endIcon, description, descriptionPlacement, actions, actionsVisibility, actionsPlacement, shortcut, shortcutJoinLabel, hasSubmenu, className, children, render, ref, ...props }: ListItemProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type ListItemMultilineExampleProps = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
onOpen?: () => void;
|
|
4
|
+
onArchive?: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const ListItemMultilineExample: ({ disabled, onOpen, onArchive, }: ListItemMultilineExampleProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ListItemDescriptionPlacement = 'inline' | 'end';
|
|
1
|
+
export type ListItemDescriptionPlacement = 'inline' | 'end' | 'below';
|
|
@@ -14,6 +14,8 @@ export type ListItemProps = Omit<useRender.ComponentProps<'div', ListItemState>,
|
|
|
14
14
|
* `indicator` is set.
|
|
15
15
|
*/
|
|
16
16
|
selected?: boolean;
|
|
17
|
+
active?: boolean;
|
|
18
|
+
selectionAppearance?: 'default' | 'accent';
|
|
17
19
|
/** Applies the highlighted style, for example to the focused item of a list. */
|
|
18
20
|
focused?: boolean;
|
|
19
21
|
disabled?: boolean;
|
|
@@ -36,6 +38,7 @@ export type ListItemProps = Omit<useRender.ComponentProps<'div', ListItemState>,
|
|
|
36
38
|
/** Trailing content, such as buttons, rendered after the content. */
|
|
37
39
|
actions?: ReactNode;
|
|
38
40
|
actionsVisibility?: 'hover' | 'always';
|
|
41
|
+
actionsPlacement?: 'auto' | 'end';
|
|
39
42
|
/**
|
|
40
43
|
* Keyboard shortcut keys displayed at the end of the row. Registering the
|
|
41
44
|
* shortcut is up to the application.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../ListItem-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../ListItem-B-SFWJZb.cjs"),e=require("../navigation-ByYN6NgX.cjs");exports.Breadcrumb=e.Breadcrumb;exports.ListItem=r.ListItem;exports.Tabs=e.Tabs;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const Card: {
|
|
2
2
|
Root: ({ className, fullWidth, backgroundColor, style, render, ref, ...props }: import('..').CardRootProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
3
|
+
Action: ({ className, disabled, render, ref, ...props }: import('..').CardActionProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
4
|
+
Control: ({ className, render, ref, ...props }: import('..').CardControlProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
3
5
|
Header: ({ className, render, ref, ...props }: import('..').CardHeaderProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
4
6
|
Content: ({ className, divider, render, ref, ...props }: import('..').CardContentProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
5
7
|
Footer: ({ className, divider, render, ref, ...props }: import('..').CardFooterProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -26,7 +26,9 @@ export type { AlertDialogTriggerState } from './AlertDialog/types/AlertDialogTri
|
|
|
26
26
|
export type { AlertDialogViewportProps } from './AlertDialog/types/AlertDialogViewportProps';
|
|
27
27
|
export type { AlertDialogViewportState } from './AlertDialog/types/AlertDialogViewportState';
|
|
28
28
|
export { Card } from './Card/Card';
|
|
29
|
+
export type { CardActionProps } from './Card/types/CardActionProps';
|
|
29
30
|
export type { CardContentProps } from './Card/types/CardContentProps';
|
|
31
|
+
export type { CardControlProps } from './Card/types/CardControlProps';
|
|
30
32
|
export type { CardFooterProps } from './Card/types/CardFooterProps';
|
|
31
33
|
export type { CardHeaderProps } from './Card/types/CardHeaderProps';
|
|
32
34
|
export type { CardRootProps } from './Card/types/CardRootProps';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../Tooltip-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../Tooltip-08dDawT_.cjs"),r=require("../Popover-CneCJTvD.cjs"),e=require("../surfaces-DtZwsfms.cjs");exports.AlertDialog=e.AlertDialog;exports.Card=e.Card;exports.Dialog=e.Dialog;exports.Popover=r.Popover;exports.Tooltip=o.Tooltip;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as r } from "../Tooltip-
|
|
1
|
+
import { t as r } from "../Tooltip-C7zc16gI.js";
|
|
2
2
|
import { t as a } from "../Popover-CWeCV7X9.js";
|
|
3
|
-
import { n as m, r as p, t as s } from "../surfaces-
|
|
3
|
+
import { n as m, r as p, t as s } from "../surfaces-v0kQLZYO.js";
|
|
4
4
|
export {
|
|
5
5
|
p as AlertDialog,
|
|
6
6
|
m as Card,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { TypographyColor } from '../../internal/TypographyColor';
|
|
3
|
+
import { TypographyFontSize } from '../../internal/TypographyFontSize';
|
|
2
4
|
export type HeadingProps = Omit<useRender.ComponentProps<'h2'>, 'color'> & {
|
|
3
5
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
-
size?:
|
|
5
|
-
color?:
|
|
6
|
+
size?: Exclude<TypographyFontSize, 'xxs'>;
|
|
7
|
+
color?: Exclude<TypographyColor, 'light'>;
|
|
6
8
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { TooltipSide } from '../../../surfaces/Tooltip/types/TooltipSide';
|
|
4
|
+
import { TextTypographyProps } from '../../Text/internal/TextTypographyProps';
|
|
4
5
|
import { TextTruncationProps } from '../../Text/internal/TextTruncationProps';
|
|
5
|
-
export type OverflowingTextWithTooltipProps = Omit<useRender.ComponentProps<'div'>, 'children'> & TextTruncationProps & {
|
|
6
|
+
export type OverflowingTextWithTooltipProps = Omit<useRender.ComponentProps<'div'>, 'children' | 'color'> & TextTypographyProps & TextTruncationProps & {
|
|
6
7
|
isTooltipMultiline?: boolean;
|
|
7
8
|
tooltipDelay?: number;
|
|
8
9
|
tooltipPlace?: TooltipSide;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TextProps } from './types/TextProps';
|
|
2
|
-
export declare const Text: ({ render, truncate, lineClamp, className, style, ref, ...props }: TextProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
2
|
+
export declare const Text: ({ render, size, weight, color, truncate, lineClamp, className, style, ref, ...props }: TextProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TypographyColor } from '../../internal/TypographyColor';
|
|
2
|
+
import { TypographyFontSize } from '../../internal/TypographyFontSize';
|
|
3
|
+
export type TextTypographyProps = {
|
|
4
|
+
size?: TypographyFontSize;
|
|
5
|
+
weight?: 'regular' | 'medium' | 'semibold';
|
|
6
|
+
color?: TypographyColor;
|
|
7
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { TextTypographyProps } from '../internal/TextTypographyProps';
|
|
2
3
|
import { TextTruncationProps } from '../internal/TextTruncationProps';
|
|
3
|
-
export type TextProps = useRender.ComponentProps<'div'> & TextTruncationProps;
|
|
4
|
+
export type TextProps = Omit<useRender.ComponentProps<'div'>, 'color'> & TextTypographyProps & TextTruncationProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Shortcut-N8TELGPI.cjs"),e=require("../OverflowingTextWithTooltip-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Shortcut-N8TELGPI.cjs"),e=require("../OverflowingTextWithTooltip-ClpPsdpP.cjs"),o=require("../Heading-CHvEXL6n.cjs"),r=require("../typography-B05olPwL.cjs");exports.Heading=o.Heading;exports.OverflowingTextTooltipModeProvider=r.OverflowingTextTooltipModeProvider;exports.OverflowingTextWithTooltip=e.OverflowingTextWithTooltip;exports.Shortcut=t.Shortcut;exports.Text=e.Text;exports.formatShortcut=r.formatShortcut;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t } from "../Shortcut-Bp9iDdQg.js";
|
|
2
|
-
import { r as i, t as e } from "../OverflowingTextWithTooltip-
|
|
2
|
+
import { r as i, t as e } from "../OverflowingTextWithTooltip-D4eZc-7P.js";
|
|
3
3
|
import { t as a } from "../Heading-Nj5BlPqB.js";
|
|
4
|
-
import { n as p, t as s } from "../typography-
|
|
4
|
+
import { n as p, t as s } from "../typography-BwyZEDDi.js";
|
|
5
5
|
export {
|
|
6
6
|
a as Heading,
|
|
7
7
|
p as OverflowingTextTooltipModeProvider,
|
package/dist/primitives.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./VisuallyHidden-B-n4x1KY.cjs"),c=require("./ProgressRing-g1nHGyUp.cjs"),q=require("./Loader-Bb72CUQ9.cjs"),d=require("./Shortcut-N8TELGPI.cjs"),_=require("./Button-iVyxlrwO.cjs"),t=require("./ProgressBar-goqxS9NE.cjs"),p=require("./Tooltip-08dDawT_.cjs"),u=require("./OverflowingTextWithTooltip-ClpPsdpP.cjs"),S=require("./Separator-UJVlrTzw.cjs"),g=require("./ListItem-B-SFWJZb.cjs"),T=require("./Popover-CneCJTvD.cjs"),P=require("./Input-D69M4UwD.cjs"),i=require("./Radio-CpQPRHXa.cjs"),b=require("./Skeleton-tXeIy4qq.cjs"),h=require("./Heading-CHvEXL6n.cjs"),m=require("./Switch-Ck8QAAbb.cjs"),v=require("./accessibility-CByqtBhO.cjs"),e=require("./data-display-DzHM5j7j.cjs"),R=require("./feedback-B50I0C35.cjs"),r=require("./input-ExCbk62Y.cjs"),a=require("./layout-d4uPminV.cjs"),B=require("./ResizeHandle-B1MuHTNA.cjs"),n=require("./navigation-ByYN6NgX.cjs"),o=require("./surfaces-DtZwsfms.cjs"),l=require("./typography-B05olPwL.cjs");let E=require("@base-ui/react/progress");exports.AVATAR_PROPERTIES_BY_SIZE=e.AVATAR_PROPERTIES_BY_SIZE;exports.AlertDialog=o.AlertDialog;exports.Autocomplete=r.Autocomplete;exports.Avatar=e.Avatar;exports.Badge=e.Badge;exports.Banner=t.Banner;exports.Breadcrumb=n.Breadcrumb;exports.Button=_.Button;exports.ButtonGroup=r.ButtonGroup;exports.Card=o.Card;exports.Checkbox=r.Checkbox;exports.Chip=e.Chip;exports.Collapsible=a.Collapsible;exports.ColorSample=e.ColorSample;exports.Dialog=o.Dialog;exports.DirectionProvider=a.DirectionProvider;exports.Field=r.Field;exports.Heading=h.Heading;exports.Input=P.Input;exports.InputGroup=i.InputGroup;exports.ListItem=g.ListItem;exports.Loader=q.Loader;exports.NumberField=i.NumberField;exports.OverflowingTextTooltipModeProvider=l.OverflowingTextTooltipModeProvider;exports.OverflowingTextWithTooltip=u.OverflowingTextWithTooltip;exports.Popover=T.Popover;Object.defineProperty(exports,"Progress",{enumerable:!0,get:function(){return E.Progress}});exports.ProgressBar=t.ProgressBar;exports.ProgressRing=c.ProgressRing;exports.Radio=i.Radio;exports.RadioGroup=r.RadioGroup;exports.ResizeHandle=B.ResizeHandle;exports.SKELETON_HEIGHT_SIZES=R.SKELETON_HEIGHT_SIZES;exports.Select=i.Select;exports.Separator=S.Separator;exports.Shortcut=d.Shortcut;exports.Skeleton=b.Skeleton;exports.Slider=r.Slider;exports.Status=e.Status;exports.Switch=m.Switch;exports.Tabs=n.Tabs;exports.Tag=e.Tag;exports.Text=u.Text;exports.Textarea=r.Textarea;exports.Tooltip=p.Tooltip;exports.VisuallyHidden=s.VisuallyHidden;exports.formatShortcut=l.formatShortcut;exports.handleClickableElementKeyDown=v.handleClickableElementKeyDown;
|
package/dist/primitives.mjs
CHANGED
|
@@ -3,73 +3,74 @@ import { n as a } from "./getProgressIndicatorPercentage-ejfaM6XU.js";
|
|
|
3
3
|
import { t as m } from "./ProgressRing-8mYV9cxE.js";
|
|
4
4
|
import { t as e } from "./Loader-DtHWQH8w.js";
|
|
5
5
|
import { t as f } from "./Shortcut-Bp9iDdQg.js";
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as u, t as S } from "./ProgressBar-
|
|
8
|
-
import { t as g } from "./Tooltip-
|
|
9
|
-
import { r as E, t as P } from "./OverflowingTextWithTooltip-
|
|
6
|
+
import { t as n } from "./Button-CU8BS-Yd.js";
|
|
7
|
+
import { n as u, t as S } from "./ProgressBar-8pjpGrmZ.js";
|
|
8
|
+
import { t as g } from "./Tooltip-C7zc16gI.js";
|
|
9
|
+
import { r as E, t as P } from "./OverflowingTextWithTooltip-D4eZc-7P.js";
|
|
10
10
|
import { t as B } from "./Separator-0LzwPfOn.js";
|
|
11
|
-
import { t as R } from "./ListItem-
|
|
11
|
+
import { t as R } from "./ListItem-WLONJMo5.js";
|
|
12
12
|
import { t as v } from "./Popover-CWeCV7X9.js";
|
|
13
|
-
import { t as A } from "./Input-
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import { n as j, t as q } from "./
|
|
20
|
-
import {
|
|
21
|
-
import { n as
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import { n as
|
|
25
|
-
import { n as
|
|
13
|
+
import { t as A } from "./Input-D1sIHUZ5.js";
|
|
14
|
+
import { i as H, n as _, r as w, t as D } from "./Radio-VTjpEz8M.js";
|
|
15
|
+
import { t as O } from "./Skeleton-BbIF780H.js";
|
|
16
|
+
import { t as L } from "./Heading-Nj5BlPqB.js";
|
|
17
|
+
import { t as F } from "./Switch-DOd0gh7W.js";
|
|
18
|
+
import { t as N } from "./accessibility-C8Uz61XJ.js";
|
|
19
|
+
import { a as Z, i as z, n as M, o as W, r as Y, s as j, t as q } from "./data-display-DUMj_z1t.js";
|
|
20
|
+
import { t as Q } from "./feedback-BQFSnMjh.js";
|
|
21
|
+
import { a as X, i as $, n as oo, o as ro, r as to, s as ao, t as so } from "./input-DxoXgI5-.js";
|
|
22
|
+
import { n as io, t as eo } from "./layout-xYrynD7_.js";
|
|
23
|
+
import { t as fo } from "./ResizeHandle-B30OYZxS.js";
|
|
24
|
+
import { n as no, t as uo } from "./navigation-BY8X2w04.js";
|
|
25
|
+
import { n as To, r as go, t as co } from "./surfaces-v0kQLZYO.js";
|
|
26
|
+
import { n as Po, t as ho } from "./typography-BwyZEDDi.js";
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
W as AVATAR_PROPERTIES_BY_SIZE,
|
|
29
|
+
go as AlertDialog,
|
|
30
|
+
ao as Autocomplete,
|
|
31
|
+
j as Avatar,
|
|
32
|
+
Z as Badge,
|
|
32
33
|
u as Banner,
|
|
33
34
|
no as Breadcrumb,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
n as Button,
|
|
36
|
+
ro as ButtonGroup,
|
|
37
|
+
To as Card,
|
|
38
|
+
X as Checkbox,
|
|
39
|
+
z as Chip,
|
|
40
|
+
io as Collapsible,
|
|
41
|
+
Y as ColorSample,
|
|
42
|
+
co as Dialog,
|
|
43
|
+
eo as DirectionProvider,
|
|
44
|
+
$ as Field,
|
|
45
|
+
L as Heading,
|
|
45
46
|
A as Input,
|
|
46
|
-
|
|
47
|
+
_ as InputGroup,
|
|
47
48
|
R as ListItem,
|
|
48
49
|
e as Loader,
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
w as NumberField,
|
|
51
|
+
Po as OverflowingTextTooltipModeProvider,
|
|
51
52
|
P as OverflowingTextWithTooltip,
|
|
52
53
|
v as Popover,
|
|
53
54
|
a as Progress,
|
|
54
55
|
S as ProgressBar,
|
|
55
56
|
m as ProgressRing,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
D as Radio,
|
|
58
|
+
to as RadioGroup,
|
|
59
|
+
fo as ResizeHandle,
|
|
60
|
+
Q as SKELETON_HEIGHT_SIZES,
|
|
61
|
+
H as Select,
|
|
61
62
|
B as Separator,
|
|
62
63
|
f as Shortcut,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
O as Skeleton,
|
|
65
|
+
oo as Slider,
|
|
66
|
+
M as Status,
|
|
67
|
+
F as Switch,
|
|
68
|
+
uo as Tabs,
|
|
69
|
+
q as Tag,
|
|
69
70
|
E as Text,
|
|
70
|
-
|
|
71
|
+
so as Textarea,
|
|
71
72
|
g as Tooltip,
|
|
72
73
|
r as VisuallyHidden,
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
ho as formatShortcut,
|
|
75
|
+
N as handleClickableElementKeyDown
|
|
75
76
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as I } from "./isDefined-fMi6eQ4r.js";
|
|
2
2
|
import { t as w } from "./isRenderableSlot-DT_depzM.js";
|
|
3
|
-
import { t as S } from "./ListItem-
|
|
3
|
+
import { t as S } from "./ListItem-WLONJMo5.js";
|
|
4
4
|
import { t as g } from "./Switch-DOd0gh7W.js";
|
|
5
5
|
import { useRender as u } from "@base-ui/react/use-render";
|
|
6
6
|
import { useId as v } from "react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const I=require("./isDefined-DS2Q42p5.cjs"),S=require("./isRenderableSlot-Guryb6Nf.cjs"),f=require("./ListItem-
|
|
1
|
+
const I=require("./isDefined-DS2Q42p5.cjs"),S=require("./isRenderableSlot-Guryb6Nf.cjs"),f=require("./ListItem-B-SFWJZb.cjs"),j=require("./Switch-Ck8QAAbb.cjs");let m=require("@base-ui/react/use-render"),w=require("react"),i=require("react/jsx-runtime");var g=({render:t,ref:a,...r})=>(0,m.useRender)({defaultTagName:"label",render:t,ref:a,props:r}),x=({children:t,startElement:a,description:r,focused:u=!1,labelRender:b,labelRef:o,...e})=>{const s=(0,w.useId)(),{id:d=s,size:q="sm"}=e,n=`${s}-label`,l=`${s}-description`,c=S.isRenderableSlot(r),_=I.isDefined(e["aria-label"]);return(0,i.jsx)(f.ListItem,{startIcon:a,focused:u,"data-disabled":e.disabled||void 0,description:c&&(0,i.jsx)("span",{id:l,children:r}),render:h=>(0,i.jsx)(g,{...h,htmlFor:d,render:b,ref:o}),endIcon:(0,i.jsx)(j.Switch,{...e,"aria-labelledby":e["aria-labelledby"]??(_?"":n),"aria-describedby":e["aria-describedby"]??(c?l:void 0),id:d,size:q}),children:(0,i.jsx)("span",{id:n,children:t})})};Object.defineProperty(exports,"SettingsRow",{enumerable:!0,get:function(){return x}});
|