burne-ui 1.6.6 → 1.6.8
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/components/composite/Accordion/Accordion.d.ts +1 -1
- package/dist/components/composite/Accordion/index.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogStyles.d.ts +10 -6
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +5 -14
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +2 -2
- package/dist/components/composite/ButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +1 -1
- package/dist/components/composite/Form/formTypes.d.ts +1 -1
- package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +2 -1
- package/dist/components/core/Alert/alertTypes.d.ts +1 -1
- package/dist/components/core/Alert/useAlertRootState.d.ts +2 -2
- package/dist/components/core/Button/buttonStyles.d.ts +1 -1
- package/dist/components/core/Button/buttonTypes.d.ts +1 -1
- package/dist/components/core/Button/useButtonRootState.d.ts +2 -2
- package/dist/components/core/Calendar/calendarParts.d.ts +2 -2
- package/dist/components/core/Calendar/calendarStyles.d.ts +2 -1
- package/dist/components/core/Calendar/index.d.ts +2 -2
- package/dist/components/core/Card/Card.d.ts +2 -1
- package/dist/components/core/Card/cardContext.d.ts +9 -2
- package/dist/components/core/Card/cardStyles.d.ts +15 -8
- package/dist/components/core/Card/cardTypes.d.ts +7 -2
- package/dist/components/core/Card/index.d.ts +2 -1
- package/dist/components/core/Card/useCardRootState.d.ts +2 -1
- package/dist/components/core/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/core/Checkbox/checkboxStyles.d.ts +1 -7
- package/dist/components/core/Checkbox/index.d.ts +1 -1
- package/dist/components/core/Checkbox/useCheckboxRootState.d.ts +1 -5
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +1 -1
- package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +2 -2
- package/dist/components/core/ColorPicker/colorPickerStyles.d.ts +3 -2
- package/dist/components/core/ColorPicker/colorSliderStyles.d.ts +2 -1
- package/dist/components/core/ColorPicker/colorUtils.d.ts +2 -0
- package/dist/components/core/ColorPicker/useColorPickerRootState.d.ts +6 -0
- package/dist/components/core/ComboBox/useComboBoxInputState.d.ts +1 -1
- package/dist/components/core/Dialog/dialogStyles.d.ts +11 -7
- package/dist/components/core/Dialog/dialogTypes.d.ts +4 -15
- package/dist/components/core/Disclosure/disclosureStyles.d.ts +3 -3
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +1 -1
- package/dist/components/core/Drawer/Drawer.d.ts +2 -2
- package/dist/components/core/Drawer/drawerAPI.d.ts +2 -0
- package/dist/components/core/Drawer/drawerStyles.d.ts +13 -11
- package/dist/components/core/Drawer/drawerTypes.d.ts +12 -1
- package/dist/components/core/Drawer/index.d.ts +1 -1
- package/dist/components/core/Drawer/useDrawerRootState.d.ts +1 -1
- package/dist/components/core/Expandable/expandableStyles.d.ts +3 -7
- package/dist/components/core/Expandable/expandableTypes.d.ts +1 -1
- package/dist/components/core/Field/fieldContext.d.ts +1 -1
- package/dist/components/core/Field/fieldStyles.d.ts +1 -1
- package/dist/components/core/Field/fieldTypes.d.ts +1 -1
- package/dist/components/core/Input/inputTypes.d.ts +1 -1
- package/dist/components/core/Input/useInputRootState.d.ts +1 -1
- package/dist/components/core/Link/linkTypes.d.ts +1 -1
- package/dist/components/core/Link/useLinkRootState.d.ts +1 -1
- package/dist/components/core/ListBox/listBoxAPI.d.ts +5 -2
- package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
- package/dist/components/core/ListBox/listBoxStyles.d.ts +5 -2
- package/dist/components/core/ListBox/useListBoxItemState.d.ts +1 -0
- package/dist/components/core/Loading/loadingTypes.d.ts +1 -1
- package/dist/components/core/Pagination/paginationStyles.d.ts +5 -4
- package/dist/components/core/Popover/popoverContext.d.ts +7 -0
- package/dist/components/core/Popover/popoverStyles.d.ts +24 -16
- package/dist/components/core/Popover/popoverTypes.d.ts +3 -5
- package/dist/components/core/Radio/Radio.d.ts +1 -1
- package/dist/components/core/Radio/index.d.ts +1 -1
- package/dist/components/core/Radio/radioStyles.d.ts +1 -7
- package/dist/components/core/Radio/useRadioRootState.d.ts +1 -5
- package/dist/components/core/SearchInput/searchInputStyles.d.ts +1 -1
- package/dist/components/core/SearchInput/searchInputTypes.d.ts +1 -1
- package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/index.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/selectionIndicatorTokens.d.ts +9 -6
- package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +2 -2
- package/dist/components/core/SelectionThumb/selectionThumbStyles.d.ts +5 -11
- package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +0 -4
- package/dist/components/core/Slider/sliderStyles.d.ts +12 -7
- package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
- package/dist/components/core/Slider/sliderTypes.d.ts +1 -1
- package/dist/components/core/Slider/useSliderTrackState.d.ts +16 -16
- package/dist/components/core/Switch/Switch.d.ts +1 -1
- package/dist/components/core/Switch/index.d.ts +2 -2
- package/dist/components/core/Switch/switchAnimations.d.ts +1 -1
- package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
- package/dist/components/core/Switch/switchGeometry.d.ts +3 -3
- package/dist/components/core/Switch/switchStyles.d.ts +3 -2
- package/dist/components/core/Switch/switchTypes.d.ts +0 -2
- package/dist/components/core/Switch/useSwitchRootState.d.ts +14 -14
- package/dist/components/core/Tabs/tabsTypes.d.ts +1 -1
- package/dist/components/core/Text/textStyles.d.ts +7 -1
- package/dist/components/core/TextArea/textAreaStyles.d.ts +4 -3
- package/dist/components/core/TextArea/textAreaTypes.d.ts +1 -1
- package/dist/components/core/TextArea/useTextAreaResize.d.ts +1 -1
- package/dist/components/core/TextArea/useTextAreaRootState.d.ts +1 -1
- package/dist/components/core/TimeField/timeFieldStyles.d.ts +4 -3
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +1 -1
- package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +1 -1
- package/dist/components/core/TimeField/useTimeFieldRootState.d.ts +1 -1
- package/dist/components/core/Toast/toastTypes.d.ts +1 -1
- package/dist/components/core/Toast/useToastProviderState.d.ts +1 -1
- package/dist/components/core/Toast/useToastRootState.d.ts +1 -1
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/core/ToggleButton/index.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +3 -1
- package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +1 -1
- package/dist/components/core/ToggleButton/useToggleButtonFillAnimation.d.ts +4 -0
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +1 -2
- package/dist/components/core/utils/controlHeightMeasure.d.ts +1 -1
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +13 -6
- package/dist/components/core/utils/inputAffixLayout.d.ts +1 -1
- package/dist/components/core/utils/motionConfig.d.ts +1 -1
- package/dist/components/core/utils/optionListItemParts.d.ts +6 -2
- package/dist/components/core/utils/{messageBannerSize.d.ts → sizeLayout/banner.d.ts} +5 -3
- package/dist/components/core/utils/sizeLayout/collapsible.d.ts +25 -0
- package/dist/components/core/utils/{componentSize.d.ts → sizeLayout/componentSize.d.ts} +1 -0
- package/dist/components/core/utils/{controlSizeLayout.d.ts → sizeLayout/control.d.ts} +3 -1
- package/dist/components/core/utils/sizeLayout/index.d.ts +16 -0
- package/dist/components/core/utils/sizeLayout/option.d.ts +15 -0
- package/dist/components/core/utils/sizeLayout/panel.d.ts +54 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10472 -10150
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +28 -26
- package/dist/{themeRuntimeContext-cixzM5Ix.js → themeRuntimeContext-CE8HsqSx.js} +1355 -1334
- package/dist/themeRuntimeContext-zhfbKb8L.cjs +50 -0
- package/dist/tokens/breakpoints.d.ts +14 -0
- package/dist/tokens/config.d.ts +7 -1
- package/dist/tokens/index.d.ts +2 -1
- package/dist/ui.css +325 -85
- package/package.json +1 -1
- package/dist/themeRuntimeContext-DHGARM65.cjs +0 -50
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccordionBody, AccordionContent, AccordionDescription, AccordionHeading, AccordionIcon, AccordionChevron, AccordionItem, AccordionMessage, AccordionPanel, AccordionTitle, AccordionTrigger } from './accordionParts';
|
|
2
2
|
export type { AccordionProps, AccordionItemProps, AccordionHeadingProps, AccordionTriggerProps, AccordionMessageProps, AccordionIconProps, AccordionContentProps, AccordionTitleProps, AccordionDescriptionProps, AccordionChevronProps, AccordionPanelProps, AccordionBodyProps, AccordionClassNames, } from './accordionTypes';
|
|
3
|
-
export declare const AccordionRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "
|
|
3
|
+
export declare const AccordionRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "defaultValue" | "children"> & {
|
|
4
4
|
value?: string | null;
|
|
5
5
|
defaultValue?: string | null;
|
|
6
6
|
defaultOpenIndex?: number | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccordionBody, AccordionContent, AccordionDescription, AccordionHeading, AccordionIcon, AccordionChevron, AccordionMessage, AccordionTitle } from './Accordion';
|
|
2
|
-
export declare const Accordion: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "
|
|
2
|
+
export declare const Accordion: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "defaultValue" | "children"> & {
|
|
3
3
|
value?: string | null;
|
|
4
4
|
defaultValue?: string | null;
|
|
5
5
|
defaultOpenIndex?: number | null;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { AlertStatus, AlertVariant } from '../../core/Alert/alertTypes';
|
|
2
2
|
import { AlertDialogSize, AlertDialogSizePreset } from './alertDialogTypes';
|
|
3
3
|
import { ButtonSize } from '../../core/Button/buttonTypes';
|
|
4
|
-
export declare const ALERT_DIALOG_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col
|
|
4
|
+
export declare const ALERT_DIALOG_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col text-left";
|
|
5
5
|
export declare const ALERT_DIALOG_SIZE: Record<AlertDialogSize, AlertDialogSizePreset>;
|
|
6
|
-
export declare const FOOTER_BUTTON_SIZE: Record<AlertDialogSize, ButtonSize>;
|
|
7
6
|
export declare const ALERT_DIALOG_NATIVE_CLASS = "m-0 flex h-full w-full max-h-none max-w-none items-center justify-center border-0 bg-transparent p-large open:flex [&::backdrop]:bg-transparent";
|
|
8
7
|
export declare const ALERT_DIALOG_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-dialog";
|
|
9
8
|
export declare const ALERT_DIALOG_NATIVE_POSITION_CONTAINED_CLASS = "absolute inset-0 z-dialog";
|
|
10
9
|
export declare function alertDialogNativeClass(contained: boolean): string;
|
|
11
10
|
export declare const ALERT_DIALOG_PANEL_SHELL_CLASS = "relative z-10 w-full outline-none";
|
|
12
|
-
export declare const ALERT_DIALOG_PANEL_SURFACE_CLASS = "flex min-h-0 flex-col overflow-hidden
|
|
13
|
-
export declare const ALERT_DIALOG_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep flex min-h-0 w-full flex-col
|
|
11
|
+
export declare const ALERT_DIALOG_PANEL_SURFACE_CLASS = "flex min-h-0 flex-col overflow-hidden text-left";
|
|
12
|
+
export declare const ALERT_DIALOG_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep flex min-h-0 w-full flex-col text-left text-foreground";
|
|
14
13
|
export declare const ALERT_DIALOG_GLOSS_CONTENT_CLASS = "gloss-content";
|
|
15
14
|
export declare const ALERT_DIALOG_CLOSE_CLASS = "shrink-0";
|
|
16
15
|
export declare const ALERT_DIALOG_TRIGGER_BASE_CLASS = "outline-none focus-ring";
|
|
@@ -29,10 +28,15 @@ export declare function alertDialogBodyClass(bodyPadding: string, className?: st
|
|
|
29
28
|
export declare function alertDialogContentClass(className?: string): string;
|
|
30
29
|
export declare function alertDialogPanelClass({ variant, sizePreset, className, slotClass, }: {
|
|
31
30
|
variant: AlertVariant;
|
|
32
|
-
sizePreset: Pick<AlertDialogSizePreset, "panelMax" | "maxHeight">;
|
|
31
|
+
sizePreset: Pick<AlertDialogSizePreset, "panelMax" | "maxHeight" | "rounded">;
|
|
33
32
|
className?: string;
|
|
34
33
|
slotClass?: string;
|
|
35
34
|
}): string;
|
|
36
|
-
export declare function alertDialogGlossPanelClass(maxHeight
|
|
35
|
+
export declare function alertDialogGlossPanelClass({ maxHeight, rounded, slotClass, }: {
|
|
36
|
+
maxHeight: string;
|
|
37
|
+
rounded: string;
|
|
38
|
+
slotClass?: string;
|
|
39
|
+
}): string;
|
|
37
40
|
export declare function alertDialogHeaderIconWrapperClass(status: AlertStatus): string;
|
|
38
41
|
export declare function footerButtonSizeForAlertDialog(dialogSize: AlertDialogSize): ButtonSize;
|
|
42
|
+
export declare function closeButtonSizeForAlertDialog(dialogSize: AlertDialogSize): ButtonSize;
|
|
@@ -2,9 +2,9 @@ import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
|
2
2
|
import { AlertStatus, AlertVariant } from '../../core/Alert/alertTypes';
|
|
3
3
|
import { CloseButtonProps } from '../../core/CloseButton';
|
|
4
4
|
import { ButtonSize } from '../../core/Button';
|
|
5
|
-
import { TextVariant } from '../../core/Text';
|
|
6
5
|
import { MessageBannerGridSlots } from '../../core/utils/messageBannerGridLayout';
|
|
7
|
-
|
|
6
|
+
import { PanelSize, PanelSizeLayout } from '../../core/utils/sizeLayout';
|
|
7
|
+
export type AlertDialogSize = PanelSize;
|
|
8
8
|
export type AlertDialogClassNames = {
|
|
9
9
|
dialog?: string;
|
|
10
10
|
overlay?: string;
|
|
@@ -22,19 +22,10 @@ export type AlertDialogClassNames = {
|
|
|
22
22
|
footer?: string;
|
|
23
23
|
close?: string;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
/** Size tokens from shared `PANEL_SIZE_LAYOUT` (AlertDialog slice). */
|
|
26
|
+
export type AlertDialogSizePreset = Pick<PanelSizeLayout, "rounded" | "panelMax" | "maxHeight" | "headerPadding" | "bodyPadding" | "footerPadding" | "titleVariant" | "titleClassName" | "descVariant" | "descClassName" | "bodyVariant" | "iconClass" | "footerButtonSize" | "closeButtonSize"> & {
|
|
27
|
+
/** Alert header grid gap (`alertHeaderGap` in panel layout). */
|
|
28
28
|
headerGap: string;
|
|
29
|
-
headerPadding: string;
|
|
30
|
-
bodyPadding: string;
|
|
31
|
-
footerPadding: string;
|
|
32
|
-
headingBlockGap: string;
|
|
33
|
-
iconClass: string;
|
|
34
|
-
titleVariant: TextVariant;
|
|
35
|
-
descVariant: TextVariant;
|
|
36
|
-
descClassName: string;
|
|
37
|
-
bodyVariant: TextVariant;
|
|
38
29
|
};
|
|
39
30
|
export type AlertDialogProps = {
|
|
40
31
|
open?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonGroupOrientation } from './buttonGroupTypes';
|
|
2
2
|
export type { ButtonGroupProps, ButtonGroupTextProps, ButtonGroupOrientation, ButtonGroupSegment, ButtonGroupClassNames, } from './buttonGroupTypes';
|
|
3
|
-
export declare const ButtonGroupRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "
|
|
3
|
+
export declare const ButtonGroupRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "role" | "children"> & {
|
|
4
4
|
orientation?: ButtonGroupOrientation;
|
|
5
5
|
segmented?: boolean;
|
|
6
6
|
buttonSize?: import('../../..').ButtonSize;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentSize } from '../../core/utils/
|
|
1
|
+
import { ComponentSize } from '../../core/utils/sizeLayout';
|
|
2
2
|
import { ButtonSize, ButtonVariant } from '../../core/Button';
|
|
3
3
|
import { TextVariant } from '../../core/Text';
|
|
4
4
|
import { ButtonGroupOrientation, ButtonGroupSegment } from './buttonGroupTypes';
|
|
@@ -25,4 +25,4 @@ export declare function buttonGroupTextClass({ groupSegment, groupVariant, butto
|
|
|
25
25
|
buttonSize: ButtonSize;
|
|
26
26
|
className?: string;
|
|
27
27
|
}): string;
|
|
28
|
-
export declare const BUTTON_GROUP_TEXT_LABEL_CLASS = "max-w-
|
|
28
|
+
export declare const BUTTON_GROUP_TEXT_LABEL_CLASS = "max-w-component-xsmall truncate font-w-base whitespace-nowrap md:max-w-component-base";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ButtonGroup: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "
|
|
1
|
+
export declare const ButtonGroup: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "role" | "children"> & {
|
|
2
2
|
orientation?: import('./buttonGroupTypes').ButtonGroupOrientation;
|
|
3
3
|
segmented?: boolean;
|
|
4
4
|
buttonSize?: import('../../..').ButtonSize;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldsetHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { FieldErrorProps } from '../../core/Field';
|
|
3
3
|
import { LabelProps } from '../../core/Label';
|
|
4
|
-
import { ComponentSize } from '../../core/utils/
|
|
4
|
+
import { ComponentSize } from '../../core/utils/sizeLayout';
|
|
5
5
|
import { OptionGroupHintProps, OptionGroupLegendProps, OptionGroupListProps, OptionGroupOrientation } from '../utils/optionGroupFieldset';
|
|
6
6
|
import { OptionGroupClassNames } from '../utils/optionGroupClassNames';
|
|
7
7
|
export type CheckboxGroupSelection = "multiple" | "single";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { ComponentSize } from '../../core/utils/
|
|
2
|
+
import { ComponentSize } from '../../core/utils/sizeLayout';
|
|
3
3
|
export type FormValues = Record<string, unknown>;
|
|
4
4
|
export type FormValidateMode = "onSubmit" | "onBlur" | "onChange";
|
|
5
5
|
export type FormFieldRules = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldsetHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { FieldErrorProps } from '../../core/Field';
|
|
3
3
|
import { LabelProps } from '../../core/Label';
|
|
4
|
-
import { ComponentSize } from '../../core/utils/
|
|
4
|
+
import { ComponentSize } from '../../core/utils/sizeLayout';
|
|
5
5
|
import { OptionGroupHintProps, OptionGroupLegendProps, OptionGroupListProps, OptionGroupOrientation } from '../utils/optionGroupFieldset';
|
|
6
6
|
import { OptionGroupClassNames } from '../utils/optionGroupClassNames';
|
|
7
7
|
export type RadioGroupOrientation = OptionGroupOrientation;
|
|
@@ -3,7 +3,7 @@ export declare const ToggleButtonGroupRoot: import('react').ForwardRefExoticComp
|
|
|
3
3
|
children?: import('react').ReactNode;
|
|
4
4
|
type?: import('./toggleButtonGroupTypes').ToggleButtonGroupType;
|
|
5
5
|
orientation?: import('./toggleButtonGroupTypes').ToggleButtonGroupOrientation;
|
|
6
|
-
|
|
6
|
+
segmented?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
size?: import('../../..').ToggleButtonSize;
|
|
9
9
|
variant?: import('../../..').ToggleButtonVariant;
|
|
@@ -2,7 +2,7 @@ export declare const ToggleButtonGroup: import('react').ForwardRefExoticComponen
|
|
|
2
2
|
children?: import('react').ReactNode;
|
|
3
3
|
type?: import('./toggleButtonGroupTypes').ToggleButtonGroupType;
|
|
4
4
|
orientation?: import('./toggleButtonGroupTypes').ToggleButtonGroupOrientation;
|
|
5
|
-
|
|
5
|
+
segmented?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
size?: import('../../..').ToggleButtonSize;
|
|
8
8
|
variant?: import('../../..').ToggleButtonVariant;
|
|
@@ -12,7 +12,8 @@ export type ToggleButtonGroupProps = Omit<HTMLAttributes<HTMLDivElement>, "defau
|
|
|
12
12
|
/** `multiple` — independent toggle; `single` — only one selected (radio). By default `multiple`. */
|
|
13
13
|
type?: ToggleButtonGroupType;
|
|
14
14
|
orientation?: ToggleButtonGroupOrientation;
|
|
15
|
-
|
|
15
|
+
/** `true` — gap between buttons (like `ButtonGroup` `segmented`), no glue. */
|
|
16
|
+
segmented?: boolean;
|
|
16
17
|
disabled?: boolean;
|
|
17
18
|
size?: ToggleButtonSize;
|
|
18
19
|
variant?: ToggleButtonVariant;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
|
|
3
|
-
import { MessageBannerSize, MessageBannerSizePreset } from '../utils/
|
|
3
|
+
import { MessageBannerSize, MessageBannerSizePreset } from '../utils/sizeLayout';
|
|
4
4
|
export type AlertSize = MessageBannerSize;
|
|
5
5
|
export type AlertVariant = "default" | "outline" | "secondary" | "gloss";
|
|
6
6
|
export type AlertStatus = "default" | "danger" | "success" | "info" | "warning";
|
|
@@ -16,8 +16,8 @@ export declare function useAlertRootState({ variant: variantProp, status: status
|
|
|
16
16
|
}): {
|
|
17
17
|
variant: AlertVariant;
|
|
18
18
|
status: AlertStatus;
|
|
19
|
-
size: import('../utils/
|
|
20
|
-
sizePreset: import('../utils/
|
|
19
|
+
size: import('../utils/sizeLayout').ComponentSize;
|
|
20
|
+
sizePreset: import('../utils/sizeLayout').MessageBannerSizePreset;
|
|
21
21
|
isCompound: boolean;
|
|
22
22
|
gridSlots: MessageBannerGridSlots;
|
|
23
23
|
liveRole: AlertLiveRole;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextVariant } from '../Text';
|
|
2
|
-
import { ComponentSize } from '../utils/
|
|
2
|
+
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
3
|
import { SemanticSurfaceStatus } from '../utils/semanticStatusSurface';
|
|
4
4
|
import { HoverVariant } from '../utils/hoverVariant';
|
|
5
5
|
import { ButtonSize, ButtonStatus, ButtonVariant } from './buttonTypes';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, MouseEvent, ReactNode, RefObject } from 'react';
|
|
2
|
-
import { ComponentSize } from '../utils/
|
|
2
|
+
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
3
|
import { IconPosition } from '../utils/iconPosition';
|
|
4
4
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup';
|
|
5
5
|
export type ButtonVariant = "default" | "primary" | "outline" | "secondary" | "ghost" | "gloss";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonAsyncState, UseButtonRootStateProps } from './buttonTypes';
|
|
2
2
|
export declare function useButtonRootState({ variant: variantProp, status, size: sizeProp, type, animated, asyncState: asyncStateProp, onAsyncStateChange, onAsyncClick, asyncFeedbackMs, disabled: disabledProp, icon, iconPosition, ripple, iconOnly, groupSegment: groupSegmentProp, className, classNames, children, onClick, }: UseButtonRootStateProps): {
|
|
3
|
-
type: "button" | "
|
|
4
|
-
size: import('../utils/
|
|
3
|
+
type: "button" | "submit" | "reset";
|
|
4
|
+
size: import('../utils/sizeLayout').ComponentSize;
|
|
5
5
|
variant: import('./buttonTypes').ButtonVariant;
|
|
6
6
|
status: import('./buttonTypes').ButtonStatus;
|
|
7
7
|
animated: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CalendarFooterProps, CalendarGridProps, CalendarHeaderProps, CalendarInteractiveCellProps, CalendarNavButtonProps, CalendarTitleProps } from './calendarTypes';
|
|
2
|
-
export declare const CalendarNavPrev: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "
|
|
2
|
+
export declare const CalendarNavPrev: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "onClick" | "direction"> & {
|
|
3
3
|
size?: import('./calendarTypes').CalendarSize;
|
|
4
4
|
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
5
5
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
export declare const CalendarNavNext: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "
|
|
6
|
+
export declare const CalendarNavNext: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "onClick" | "direction"> & {
|
|
7
7
|
size?: import('./calendarTypes').CalendarSize;
|
|
8
8
|
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
9
9
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -33,7 +33,8 @@ export declare const CALENDAR_CELL_BUTTON_CLASS = "group/calendar-cell relative
|
|
|
33
33
|
export declare const CALENDAR_CELL_FILL_CLASS: string;
|
|
34
34
|
export declare const CALENDAR_HEADER_TITLE_BASE_CLASS: string;
|
|
35
35
|
export declare const CALENDAR_CELL_TEXT_CLASS = "relative z-[1] min-w-0 shrink-0 leading-none";
|
|
36
|
-
|
|
36
|
+
/** Today marker — 3× border-width so it stays a hairline dot on the size scale. */
|
|
37
|
+
export declare const CALENDAR_CELL_TODAY_DOT_CLASS = "absolute bottom-[length:calc(var(--border-width)*3)] left-1/2 z-[1] h-[length:calc(var(--border-width)*3)] w-[length:calc(var(--border-width)*3)] -translate-x-1/2 rounded-full bg-primary";
|
|
37
38
|
export declare const CALENDAR_NAV_ICON_CLASS = "icon-xsmall";
|
|
38
39
|
export declare const CALENDAR_CELL_SELECTED_CLASS = "bg-transparent font-w-mid text-primary-foreground";
|
|
39
40
|
export declare const CALENDAR_CELL_CURRENT_CLASS = "font-w-mid text-primary";
|
|
@@ -2,11 +2,11 @@ export declare const Calendar: import('react').ForwardRefExoticComponent<import(
|
|
|
2
2
|
Header: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
3
|
Grid: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarGridProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
4
|
Footer: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarFooterProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
-
NavPrev: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "
|
|
5
|
+
NavPrev: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "onClick" | "direction"> & {
|
|
6
6
|
size?: import('./calendarTypes').CalendarSize;
|
|
7
7
|
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
8
8
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
9
|
-
NavNext: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "
|
|
9
|
+
NavNext: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "onClick" | "direction"> & {
|
|
10
10
|
size?: import('./calendarTypes').CalendarSize;
|
|
11
11
|
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
12
12
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CardBody, CardDescription, CardFooter, CardHeader, CardHeadingBlock, CardTitle } from './cardParts';
|
|
2
2
|
import { CardVariant } from './cardTypes';
|
|
3
|
-
export type { CardPressEvent, CardProps, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, } from './cardTypes';
|
|
3
|
+
export type { CardPressEvent, CardProps, CardSize, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, } from './cardTypes';
|
|
4
4
|
export declare const CardRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement>, "onKeyDown" | "onClick"> & {
|
|
5
5
|
variant?: CardVariant;
|
|
6
|
+
size?: import('./cardStyles').CardSize;
|
|
6
7
|
pressable?: boolean;
|
|
7
8
|
onPress?: (event: import('./cardTypes').CardPressEvent) => void;
|
|
8
9
|
onClick?: import('react').HTMLAttributes<HTMLElement>["onClick"];
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { CardSize } from './cardStyles';
|
|
2
|
+
import { CardClassNames, CardProviderProps } from './cardTypes';
|
|
3
|
+
export type CardContextValue = {
|
|
4
|
+
classNames: CardClassNames;
|
|
5
|
+
size: CardSize;
|
|
6
|
+
};
|
|
7
|
+
export declare function CardProvider({ classNames, size, children }: CardProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function useCardContext(): CardContextValue;
|
|
3
9
|
export declare function useCardClassNames(): CardClassNames;
|
|
10
|
+
export declare function useCardSize(): CardSize;
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
+
import { CardSize } from '../utils/sizeLayout';
|
|
1
2
|
import { CardVariant } from './cardTypes';
|
|
3
|
+
export type { CardSize, PanelSizeLayout as CardSizeLayout } from '../utils/sizeLayout';
|
|
4
|
+
export { CARD_SIZE_LAYOUT, PANEL_SIZE_LAYOUT, resolveCardSize, cardSizeLayout, panelSizeLayout, } from '../utils/sizeLayout';
|
|
2
5
|
/** Passive 2nd level — static sm-shadow without hover-lift. */
|
|
3
6
|
export declare const CARD_STATIC_SHADOW_CLASS = "shadow-token-base";
|
|
4
|
-
export declare const
|
|
7
|
+
export declare const CARD_GLOSS_PANEL_BASE_CLASS = "gloss-panel flex min-w-0 flex-col text-foreground outline-none";
|
|
5
8
|
export declare const CARD_GLOSS_CONTENT_CLASS = "gloss-content flex min-w-0 flex-1 flex-col";
|
|
6
|
-
export declare const CARD_ROOT_BASE_CLASS = "flex min-w-0 flex-col overflow-hidden
|
|
9
|
+
export declare const CARD_ROOT_BASE_CLASS = "flex min-w-0 flex-col overflow-hidden text-foreground outline-none";
|
|
7
10
|
export declare const CARD_PRESSABLE_ROOT_CLASS = "relative cursor-pointer focus-ring";
|
|
8
11
|
export declare const CARD_BUTTON_SHELL_CLASS = "w-full border-0 p-0 text-left";
|
|
9
12
|
export declare const CARD_PRESSABLE_CONTENT_CLASS = "relative flex min-w-0 flex-1 flex-col";
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
+
export declare const CARD_HEADER_BASE_CLASS = "flex shrink-0 flex-col text-left";
|
|
14
|
+
export declare const CARD_HEADING_BLOCK_BASE_CLASS = "flex min-w-0 flex-1 flex-col text-left";
|
|
15
|
+
export declare const CARD_BODY_BASE_CLASS = "min-w-0";
|
|
13
16
|
export declare const CARD_TITLE_CLASS = "min-w-0";
|
|
14
17
|
export declare const CARD_DESCRIPTION_CLASS = "min-w-0 text-muted";
|
|
15
|
-
export declare const
|
|
16
|
-
export declare function cardGlossPanelClass(className?: string): string;
|
|
18
|
+
export declare const CARD_FOOTER_BASE_CLASS = "mt-auto border-t-token text-muted";
|
|
19
|
+
export declare function cardGlossPanelClass(size: CardSize, className?: string): string;
|
|
17
20
|
export declare function cardGlossPressableClass(pressable: boolean): string;
|
|
18
|
-
export declare function cardRootClass(variant: Exclude<CardVariant, "gloss">, pressable: boolean, pressableMotionClass: string, className?: string): string;
|
|
21
|
+
export declare function cardRootClass(variant: Exclude<CardVariant, "gloss">, pressable: boolean, pressableMotionClass: string, size: CardSize, className?: string): string;
|
|
22
|
+
export declare function cardHeaderClass(size: CardSize, className?: string): string;
|
|
23
|
+
export declare function cardHeadingBlockClass(size: CardSize, className?: string): string;
|
|
24
|
+
export declare function cardBodyClass(size: CardSize, className?: string): string;
|
|
25
|
+
export declare function cardFooterClass(size: CardSize, className?: string): string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { CardSize } from './cardStyles';
|
|
3
|
+
export type { CardSize } from './cardStyles';
|
|
2
4
|
export type CardVariant = "default" | "outline" | "secondary" | "gloss";
|
|
3
5
|
export type CardPressEvent = MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>;
|
|
4
6
|
export type CardClassNames = {
|
|
@@ -14,6 +16,8 @@ export type CardClassNames = {
|
|
|
14
16
|
};
|
|
15
17
|
export type CardProps = Omit<HTMLAttributes<HTMLElement>, "onClick" | "onKeyDown"> & {
|
|
16
18
|
variant?: CardVariant;
|
|
19
|
+
/** Radius, padding and title/description type scale. @default "base" */
|
|
20
|
+
size?: CardSize;
|
|
17
21
|
/**
|
|
18
22
|
* Interactive card: hover-lift, shadow and squeeze on press (like a button).
|
|
19
23
|
* Ripple is not built-in — if needed, pass `<Ripple />` as the first child and wrap the rest of the content in a layer with `relative z-[1]`.
|
|
@@ -38,11 +42,12 @@ export type CardBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
|
38
42
|
export type CardTitleProps = HTMLAttributes<HTMLHeadingElement>;
|
|
39
43
|
export type CardDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
40
44
|
export type CardFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
41
|
-
export type
|
|
45
|
+
export type CardProviderProps = {
|
|
42
46
|
classNames?: CardClassNames;
|
|
47
|
+
size: CardSize;
|
|
43
48
|
children: ReactNode;
|
|
44
49
|
};
|
|
45
|
-
export type UseCardRootStateProps = Pick<CardProps, "variant" | "pressable" | "className" | "onClick" | "onKeyDown" | "onPointerDown">;
|
|
50
|
+
export type UseCardRootStateProps = Pick<CardProps, "variant" | "size" | "pressable" | "className" | "onClick" | "onKeyDown" | "onPointerDown">;
|
|
46
51
|
export type UseCardAnimationsProps = {
|
|
47
52
|
pressable: boolean;
|
|
48
53
|
isGloss: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CardBody, CardFooter, CardHeader, CardHeadingBlock } from './Card';
|
|
2
2
|
export declare const Card: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement>, "onKeyDown" | "onClick"> & {
|
|
3
3
|
variant?: import('./cardTypes').CardVariant;
|
|
4
|
+
size?: import('./cardStyles').CardSize;
|
|
4
5
|
pressable?: boolean;
|
|
5
6
|
onPress?: (event: import('./cardTypes').CardPressEvent) => void;
|
|
6
7
|
onClick?: import('react').HTMLAttributes<HTMLElement>["onClick"];
|
|
@@ -15,4 +16,4 @@ export declare const Card: import('react').ForwardRefExoticComponent<Omit<import
|
|
|
15
16
|
Body: typeof CardBody;
|
|
16
17
|
Footer: typeof CardFooter;
|
|
17
18
|
};
|
|
18
|
-
export type { CardPressEvent, CardProps, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, } from './cardTypes';
|
|
19
|
+
export type { CardPressEvent, CardProps, CardSize, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, } from './cardTypes';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CardVariant, UseCardRootStateProps } from './cardTypes';
|
|
2
|
-
export declare function useCardRootState({ variant, pressable, onClick, onKeyDown, onPointerDown, }: UseCardRootStateProps): {
|
|
2
|
+
export declare function useCardRootState({ variant, size: sizeProp, pressable, onClick, onKeyDown, onPointerDown, }: UseCardRootStateProps): {
|
|
3
3
|
variant: CardVariant;
|
|
4
|
+
size: import('../utils/sizeLayout').ComponentSize;
|
|
4
5
|
pressable: boolean;
|
|
5
6
|
isGloss: boolean;
|
|
6
7
|
glossPressable: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckboxContent, CheckboxControl, CheckboxError, CheckboxHint, CheckboxIndicator, CheckboxLabel } from './checkboxParts';
|
|
2
2
|
export type { CheckboxProps, CheckboxControlProps, CheckboxIndicatorProps, CheckboxContentProps, CheckboxLabelProps, CheckboxHintProps, CheckboxErrorProps, CheckboxSize, CheckboxVariant, CheckboxClassNames, } from './checkboxTypes';
|
|
3
|
-
export declare const CheckboxRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "
|
|
3
|
+
export declare const CheckboxRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onPointerDown" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
|
|
4
4
|
children?: import('react').ReactNode;
|
|
5
5
|
label?: import('react').ReactNode;
|
|
6
6
|
hint?: import('react').ReactNode;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { CheckboxSize } from './checkboxTypes';
|
|
3
|
-
export declare const CHECKBOX_SIZE_LAYOUT: Record<CheckboxSize, {
|
|
4
|
-
title: TextVariant;
|
|
5
|
-
desc: TextVariant;
|
|
6
|
-
gridGap: string;
|
|
7
|
-
}>;
|
|
1
|
+
export declare const CHECKBOX_SIZE_LAYOUT: Record<import('../utils/sizeLayout').ComponentSize, import('../utils/sizeLayout').OptionControlSizeLayout>;
|
|
8
2
|
export declare const CHECKBOX_INPUT_VISUALLY_HIDDEN_CLASS = "absolute m-[-1px] h-px w-px overflow-hidden border-0 p-0 opacity-0 [clip:rect(0,0,0,0)]";
|
|
9
3
|
export declare const CHECKBOX_INPUT_TRACK_OVERLAY_CLASS = "absolute inset-0 z-[2] m-0 h-full w-full cursor-pointer opacity-0";
|
|
10
4
|
export declare const CHECKBOX_CONTROL_CLASS = "relative inline-flex shrink-0 items-center justify-center";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckboxError, CheckboxHint, CheckboxIndicator, CheckboxLabel } from './Checkbox';
|
|
2
|
-
export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "
|
|
2
|
+
export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onPointerDown" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
|
|
3
3
|
children?: import('react').ReactNode;
|
|
4
4
|
label?: import('react').ReactNode;
|
|
5
5
|
hint?: import('react').ReactNode;
|
|
@@ -13,11 +13,7 @@ export declare function useCheckboxRootState({ size, variant, status, icon, disa
|
|
|
13
13
|
enableTextMotion: boolean;
|
|
14
14
|
textColRef: import('react').RefObject<HTMLElement | null>;
|
|
15
15
|
secondaryLines: number;
|
|
16
|
-
sz:
|
|
17
|
-
title: import('../Text').TextVariant;
|
|
18
|
-
desc: import('../Text').TextVariant;
|
|
19
|
-
gridGap: string;
|
|
20
|
-
};
|
|
16
|
+
sz: import('../utils/sizeLayout').OptionControlSizeLayout;
|
|
21
17
|
hasHint: boolean;
|
|
22
18
|
hasError: boolean;
|
|
23
19
|
label: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, PointerEvent } from 'react';
|
|
2
|
-
import { ComponentSize } from '../utils/
|
|
2
|
+
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
3
|
export type CloseButtonVariant = "default" | "primary" | "outline" | "secondary" | "ghost" | "gloss";
|
|
4
4
|
export type CloseButtonSize = ComponentSize;
|
|
5
5
|
export type CloseButtonClassNames = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UseCloseButtonRootStateProps } from './closeButtonTypes';
|
|
2
2
|
export declare function useCloseButtonRootState({ variant, size, animated, ripple, className, disabled, type, "aria-label": ariaLabel, classNames, }: UseCloseButtonRootStateProps): {
|
|
3
3
|
variant: import('./closeButtonTypes').CloseButtonVariant;
|
|
4
|
-
size: import('../utils/
|
|
4
|
+
size: import('../utils/sizeLayout').ComponentSize;
|
|
5
5
|
animated: boolean;
|
|
6
6
|
ripple: boolean;
|
|
7
7
|
disabled: boolean;
|
|
8
|
-
type: "button" | "
|
|
8
|
+
type: "button" | "submit" | "reset";
|
|
9
9
|
ariaLabel: string;
|
|
10
10
|
buttonClass: string;
|
|
11
11
|
convergeRippleColor: string;
|
|
@@ -3,7 +3,8 @@ export declare const COLOR_PICKER_WIDTH: Record<ColorPickerSize, string>;
|
|
|
3
3
|
export declare const COLOR_PICKER_AREA_HEIGHT: Record<ColorPickerSize, string>;
|
|
4
4
|
export declare const COLOR_PICKER_PAD: Record<ColorPickerSize, string>;
|
|
5
5
|
export declare const COLOR_PICKER_AREA_CLASS = "relative w-full touch-none select-none rounded-small cursor-crosshair overflow-hidden";
|
|
6
|
-
|
|
6
|
+
/** Dual ring: light inner + theme foreground outer — readable on any swatch hue. */
|
|
7
|
+
export declare const COLOR_PICKER_AREA_THUMB_CLASS = "absolute z-10 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white [box-shadow:0_0_0_1px_var(--color-foreground),var(--shadow-mid)] focus-ring";
|
|
7
8
|
export declare const COLOR_PICKER_SLIDERS_ROW_CLASS = "flex items-center gap-small";
|
|
8
9
|
export declare const COLOR_PICKER_SLIDERS_STACK_CLASS = "flex min-w-0 flex-1 flex-col gap-xsmall";
|
|
9
10
|
export declare const COLOR_PICKER_INPUTS_ROW_CLASS = "flex min-w-0 items-center gap-small";
|
|
@@ -14,6 +15,6 @@ export declare const COLOR_PICKER_ALPHA_INPUT_CLASS = "flex shrink-0 items-cente
|
|
|
14
15
|
export declare const COLOR_PICKER_ALPHA_FIELD_CLASS = "w-8 bg-transparent text-right text-small font-mono text-foreground outline-none field-control-mobile-no-zoom";
|
|
15
16
|
export declare const COLOR_PICKER_ALPHA_SUFFIX_CLASS = "text-small text-muted select-none";
|
|
16
17
|
export declare const COLOR_PICKER_PRESETS_CLASS = "flex flex-wrap gap-xsmall border-t-token pt-small";
|
|
17
|
-
export declare const COLOR_PICKER_CONTENT_PANEL_CLASS = "flex flex-col
|
|
18
|
+
export declare const COLOR_PICKER_CONTENT_PANEL_CLASS = "flex flex-col text-foreground";
|
|
18
19
|
export declare function colorPickerContentPanelClass(size: ColorPickerSize, slotPanel?: string): string;
|
|
19
20
|
export declare function colorPickerAreaClass(size: ColorPickerSize, slotArea?: string): string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { HSVA } from './colorUtils';
|
|
3
3
|
import { ColorChannel, ColorSliderOrientation, ColorSliderSize } from './colorSliderTypes';
|
|
4
|
-
|
|
4
|
+
/** Clip channel gradient — same radius token as Slider rail / SelectionIndicator. */
|
|
5
|
+
export declare const COLOR_SLIDER_TRACK_OVERFLOW_CLASS = "overflow-hidden";
|
|
5
6
|
export declare const COLOR_SLIDER_DISABLED_CLASS = "opacity-48";
|
|
6
7
|
export declare const COLOR_SLIDER_ROOT_CLASS = "flex flex-col gap-xsmall";
|
|
7
8
|
export declare const COLOR_SLIDER_LABEL_ROW_CLASS = "flex items-center justify-between";
|
|
@@ -18,6 +18,8 @@ export declare function rgbaToHsva({ r, g, b, a }: RGBA): HSVA;
|
|
|
18
18
|
export declare function rgbaToHex({ r, g, b, a }: RGBA): string;
|
|
19
19
|
export declare function hexToRgba(hex: string): RGBA | null;
|
|
20
20
|
export declare function hsvaToHex(hsva: HSVA): string;
|
|
21
|
+
/** Lowercase `#rrggbb` / `#rrggbbaa` for equality checks (hue 360 vs 0 share RGB). */
|
|
22
|
+
export declare function normalizeHex(hex: string): string;
|
|
21
23
|
export declare function hexToHsva(hex: string): HSVA | null;
|
|
22
24
|
/** CSS color string from HSVA */
|
|
23
25
|
export declare function hsvaToColorString(hsva: HSVA): string;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ColorPickerContextValue, UseColorPickerRootStateProps } from './colorPickerTypes';
|
|
2
|
+
/**
|
|
3
|
+
* HSVA is the source of truth (not hex).
|
|
4
|
+
* Hex round-trip collapses hue 360 → 0 (same RGB), which would snap the hue
|
|
5
|
+
* slider thumb back to the start — keep the current HSVA when the external hex
|
|
6
|
+
* still represents the same color.
|
|
7
|
+
*/
|
|
2
8
|
export declare function useColorPickerRootState({ value, defaultValue, onValueChange, size, disabled, }: UseColorPickerRootStateProps): {
|
|
3
9
|
contextValue: ColorPickerContextValue;
|
|
4
10
|
};
|
|
@@ -5,7 +5,7 @@ export declare function useComboBoxInputState({ onKeyDown, onChange, onBlur, }:
|
|
|
5
5
|
open: boolean;
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
placeholder: string;
|
|
8
|
-
size: import('../utils/
|
|
8
|
+
size: import('../utils/sizeLayout').ComponentSize;
|
|
9
9
|
status: import('../utils/semanticStatusIcons').SemanticStatus;
|
|
10
10
|
required: boolean;
|
|
11
11
|
activeOptionId: string | undefined;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ButtonSize } from '../Button/buttonTypes';
|
|
2
2
|
import { DialogSize, DialogSizePreset, DialogVariant } from './dialogTypes';
|
|
3
|
-
export declare const DIALOG_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col
|
|
3
|
+
export declare const DIALOG_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col text-left";
|
|
4
4
|
export declare const DIALOG_SIZE: Record<DialogSize, DialogSizePreset>;
|
|
5
|
-
export declare const FOOTER_BUTTON_SIZE: Record<DialogSize, ButtonSize>;
|
|
6
5
|
export declare const DIALOG_NATIVE_CLASS = "m-0 flex h-full w-full max-h-none max-w-none items-center justify-center border-0 bg-transparent p-large open:flex [&::backdrop]:bg-transparent";
|
|
7
6
|
export declare const DIALOG_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-dialog";
|
|
8
7
|
export declare const DIALOG_NATIVE_POSITION_CONTAINED_CLASS = "absolute inset-0 z-dialog";
|
|
@@ -10,10 +9,10 @@ export declare function dialogNativeClass(contained: boolean): string;
|
|
|
10
9
|
export declare const DIALOG_OVERLAY_LIGHT_CLASS = "overlay-backdrop";
|
|
11
10
|
export declare const DIALOG_OVERLAY_DARK_CLASS = "overlay-backdrop-scrim";
|
|
12
11
|
export declare const DIALOG_PANEL_BASE_CLASS = "relative z-10 w-full outline-none";
|
|
13
|
-
export declare const DIALOG_PANEL_SURFACE_CLASS = "flex min-h-0 flex-col overflow-hidden
|
|
14
|
-
export declare const DIALOG_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep flex min-h-0 w-full flex-col
|
|
12
|
+
export declare const DIALOG_PANEL_SURFACE_CLASS = "flex min-h-0 flex-col overflow-hidden border-token bg-surface text-left text-foreground shadow-token-large";
|
|
13
|
+
export declare const DIALOG_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep flex min-h-0 w-full flex-col text-foreground";
|
|
15
14
|
export declare const DIALOG_HEADER_CLASS = "flex shrink-0 items-start";
|
|
16
|
-
export declare const DIALOG_HEADING_BLOCK_CLASS = "min-w-0";
|
|
15
|
+
export declare const DIALOG_HEADING_BLOCK_CLASS = "flex min-w-0 flex-1 flex-col text-left";
|
|
17
16
|
export declare const DIALOG_TITLE_CLASS = "min-w-0";
|
|
18
17
|
export declare const DIALOG_BODY_BASE_CLASS = "min-h-0 flex-1 overflow-y-auto py-small";
|
|
19
18
|
export declare const DIALOG_FOOTER_CLASS = "flex shrink-0 flex-wrap items-center justify-end gap-base";
|
|
@@ -26,11 +25,16 @@ export declare function dialogOverlayEnterStyle(): {
|
|
|
26
25
|
export declare function dialogOverlayClass(lightUi: boolean, slotClass?: string): string;
|
|
27
26
|
export declare function dialogPanelClass({ variant, sizePreset, className, slotClass, }: {
|
|
28
27
|
variant: DialogVariant;
|
|
29
|
-
sizePreset: Pick<DialogSizePreset, "panelMax" | "maxHeight">;
|
|
28
|
+
sizePreset: Pick<DialogSizePreset, "panelMax" | "maxHeight" | "rounded">;
|
|
30
29
|
className?: string;
|
|
31
30
|
slotClass?: string;
|
|
32
31
|
}): string;
|
|
33
|
-
export declare function dialogGlossPanelClass(maxHeight
|
|
32
|
+
export declare function dialogGlossPanelClass({ maxHeight, rounded, slotClass, }: {
|
|
33
|
+
maxHeight: string;
|
|
34
|
+
rounded: string;
|
|
35
|
+
slotClass?: string;
|
|
36
|
+
}): string;
|
|
34
37
|
export declare function dialogContentClass(slotClass?: string, gloss?: boolean): string;
|
|
35
38
|
export declare function dialogBodyClass(bodyPadding: string, slotClass?: string): string;
|
|
36
39
|
export declare function footerButtonSizeForDialog(dialogSize: DialogSize): ButtonSize;
|
|
40
|
+
export declare function closeButtonSizeForDialog(dialogSize: DialogSize): ButtonSize;
|