ropav 0.0.10 → 0.0.11
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/README.md +6 -0
- package/dist/accordion.css +115 -111
- package/dist/accordion.js +60 -16
- package/dist/alert.css +110 -108
- package/dist/alert.js +48 -26
- package/dist/aspect-ratio.css +17 -15
- package/dist/aspect-ratio.js +20 -6
- package/dist/avatar.css +98 -96
- package/dist/avatar.js +27 -16
- package/dist/badge.css +95 -93
- package/dist/badge.js +29 -16
- package/dist/base.css +672 -671
- package/dist/button-group.css +39 -37
- package/dist/button-group.js +23 -12
- package/dist/button-link.css +160 -158
- package/dist/button-link.js +43 -24
- package/dist/button.css +160 -158
- package/dist/button.js +37 -19
- package/dist/card.css +109 -107
- package/dist/card.js +42 -17
- package/dist/checkbox.css +139 -137
- package/dist/checkbox.js +79 -28
- package/dist/collapse.css +29 -27
- package/dist/collapse.js +44 -10
- package/dist/color-input.css +137 -107
- package/dist/color-input.js +86 -17
- package/dist/color-picker.css +309 -303
- package/dist/color-picker.js +147 -54
- package/dist/color-picker2.js +9 -1
- package/dist/color-swatch.css +48 -46
- package/dist/color-swatch.js +15 -11
- package/dist/color-swatch2.js +4 -0
- package/dist/components/accordion/accordion-item.d.ts +13 -1
- package/dist/components/accordion/index.d.ts +2 -1
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/accordion/types.d.ts +9 -4
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/alert/index.d.ts +2 -2
- package/dist/components/alert/index.js +2 -2
- package/dist/components/alert/types.d.ts +4 -1
- package/dist/components/aspect-ratio/index.d.ts +2 -1
- package/dist/components/aspect-ratio/index.js +2 -2
- package/dist/components/aspect-ratio/types.d.ts +4 -1
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +2 -2
- package/dist/components/avatar/types.d.ts +4 -1
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/badge/index.js +2 -2
- package/dist/components/badge/types.d.ts +4 -1
- package/dist/components/button/index.d.ts +2 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button/types.d.ts +4 -1
- package/dist/components/button-group/index.d.ts +2 -1
- package/dist/components/button-group/index.js +2 -2
- package/dist/components/button-group/types.d.ts +4 -1
- package/dist/components/button-link/index.d.ts +2 -1
- package/dist/components/button-link/index.js +2 -2
- package/dist/components/button-link/types.d.ts +4 -1
- package/dist/components/card/index.d.ts +2 -1
- package/dist/components/card/index.js +2 -2
- package/dist/components/card/types.d.ts +5 -1
- package/dist/components/checkbox/checkbox.d.ts +4 -1
- package/dist/components/checkbox/index.d.ts +2 -1
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/checkbox/types.d.ts +6 -1
- package/dist/components/checkbox/useCheckbox.d.ts +2 -0
- package/dist/components/collapse/collapse.d.ts +2 -2
- package/dist/components/collapse/index.d.ts +2 -1
- package/dist/components/collapse/index.js +2 -2
- package/dist/components/collapse/types.d.ts +9 -2
- package/dist/components/color-input/index.d.ts +2 -1
- package/dist/components/color-input/index.js +2 -2
- package/dist/components/color-input/types.d.ts +4 -1
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/color-picker/index.js +2 -2
- package/dist/components/color-picker/types.d.ts +13 -1
- package/dist/components/color-swatch/index.d.ts +2 -1
- package/dist/components/color-swatch/index.js +2 -1
- package/dist/components/color-swatch/types.d.ts +4 -1
- package/dist/components/dropdown-menu/dropdown-menu-primitives.d.ts +724 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/dist/components/dropdown-menu/index.d.ts +53 -1
- package/dist/components/dropdown-menu/index.js +2 -2
- package/dist/components/dropdown-menu/types.d.ts +142 -6
- package/dist/components/dropdown-menu/useDropdownMenu.d.ts +11 -3
- package/dist/components/dropdown-menu/useDropdownMenuDisclosure.d.ts +5 -3
- package/dist/components/dropdown-menu/useDropdownMenuDom.d.ts +2 -1
- package/dist/components/dropdown-menu/useDropdownMenuInteractions.d.ts +4 -4
- package/dist/components/dropdown-menu/useDropdownMenuPortalPosition.d.ts +19 -0
- package/dist/components/dropdown-menu/useDropdownMenuRenderItems.d.ts +14 -2
- package/dist/components/field/index.d.ts +2 -1
- package/dist/components/field/index.js +2 -2
- package/dist/components/field/types.d.ts +4 -1
- package/dist/components/floating/index.d.ts +1 -0
- package/dist/components/floating/index.js +0 -0
- package/dist/components/floating/types.d.ts +31 -0
- package/dist/components/floating/useFloatingPosition.d.ts +38 -0
- package/dist/components/focus-trap/focus-trap.d.ts +31 -0
- package/dist/components/focus-trap/index.d.ts +4 -0
- package/dist/components/focus-trap/index.js +3 -0
- package/dist/components/focus-trap/types.d.ts +41 -0
- package/dist/components/focus-trap/useFocusTrap.d.ts +2 -0
- package/dist/components/icon-button/index.d.ts +2 -1
- package/dist/components/icon-button/index.js +2 -1
- package/dist/components/icon-button/types.d.ts +4 -1
- package/dist/components/input/index.d.ts +2 -1
- package/dist/components/input/index.js +2 -1
- package/dist/components/input/types.d.ts +4 -1
- package/dist/components/modal/index.d.ts +2 -1
- package/dist/components/modal/index.js +2 -2
- package/dist/components/modal/types.d.ts +8 -1
- package/dist/components/number-input/index.d.ts +2 -1
- package/dist/components/number-input/index.js +2 -2
- package/dist/components/number-input/types.d.ts +4 -1
- package/dist/components/overlay/index.d.ts +2 -1
- package/dist/components/overlay/index.js +2 -1
- package/dist/components/overlay/types.d.ts +4 -1
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/popover/types.d.ts +20 -11
- package/dist/components/popover/usePopover.d.ts +9 -1
- package/dist/components/progress/index.d.ts +2 -2
- package/dist/components/progress/index.js +2 -2
- package/dist/components/progress/types.d.ts +4 -1
- package/dist/components/radio/index.d.ts +2 -1
- package/dist/components/radio/index.js +2 -2
- package/dist/components/radio/radio.d.ts +8 -3
- package/dist/components/radio/types.d.ts +20 -3
- package/dist/components/radio/useRadio.d.ts +9 -4
- package/dist/components/select/index.d.ts +2 -1
- package/dist/components/select/index.js +2 -2
- package/dist/components/select/types.d.ts +4 -1
- package/dist/components/select/useSelect.d.ts +2 -1
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/index.js +2 -2
- package/dist/components/slider/range-slider-tooltip.d.ts +3 -0
- package/dist/components/slider/range-slider.d.ts +4 -1
- package/dist/components/slider/slider.d.ts +4 -1
- package/dist/components/slider/sliderCore.d.ts +4 -4
- package/dist/components/slider/types.d.ts +12 -2
- package/dist/components/slider/useRangeSlider.d.ts +1 -1
- package/dist/components/slider/useSlider.d.ts +1 -1
- package/dist/components/switch/index.d.ts +2 -1
- package/dist/components/switch/index.js +2 -2
- package/dist/components/switch/switch.d.ts +4 -1
- package/dist/components/switch/types.d.ts +6 -1
- package/dist/components/switch/useSwitch.d.ts +2 -0
- package/dist/components/tabs/index.d.ts +2 -1
- package/dist/components/tabs/index.js +2 -2
- package/dist/components/tabs/types.d.ts +13 -4
- package/dist/components/teleport-provider/index.d.ts +2 -0
- package/dist/components/teleport-provider/index.js +2 -0
- package/dist/components/teleport-provider/teleport-provider.d.ts +21 -0
- package/dist/components/teleport-provider/types.d.ts +4 -0
- package/dist/components/teleport-provider/useTeleportTarget.d.ts +5 -0
- package/dist/components/textarea/index.d.ts +2 -1
- package/dist/components/textarea/index.js +2 -2
- package/dist/components/textarea/textarea.d.ts +4 -1
- package/dist/components/textarea/types.d.ts +6 -1
- package/dist/components/textarea/useTextarea.d.ts +1 -0
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toast/index.js +2 -2
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/toast/types.d.ts +10 -6
- package/dist/components/tooltip/index.d.ts +2 -1
- package/dist/components/tooltip/index.js +2 -1
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/types.d.ts +13 -12
- package/dist/components/tooltip/useTooltip.d.ts +13 -3
- package/dist/dropdown-menu.css +191 -107
- package/dist/dropdown-menu.js +1582 -81
- package/dist/field.css +41 -39
- package/dist/field.js +40 -16
- package/dist/focus-trap.js +80 -0
- package/dist/icon-button.css +193 -189
- package/dist/icon-button.js +23 -18
- package/dist/icon-button2.js +8 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +36 -32
- package/dist/input.css +122 -120
- package/dist/input.js +47 -34
- package/dist/input2.js +9 -0
- package/dist/legacy-unlayered.css +5461 -0
- package/dist/modal.css +129 -127
- package/dist/modal.js +160 -200
- package/dist/number-input.css +87 -85
- package/dist/number-input.js +61 -17
- package/dist/overlay.css +26 -24
- package/dist/overlay.js +17 -9
- package/dist/overlay2.js +4 -0
- package/dist/popover.css +140 -107
- package/dist/popover.js +288 -193
- package/dist/popover2.js +6 -1
- package/dist/progress.css +101 -99
- package/dist/progress.js +50 -28
- package/dist/radio.css +114 -105
- package/dist/radio.js +154 -56
- package/dist/select.css +244 -242
- package/dist/select.js +92 -47
- package/dist/slider.css +1109 -1031
- package/dist/slider.js +330 -163
- package/dist/styles-api.d.ts +22 -0
- package/dist/styles-api.js +49 -0
- package/dist/switch.css +120 -108
- package/dist/switch.js +89 -33
- package/dist/tabs.css +286 -278
- package/dist/tabs.js +60 -21
- package/dist/teleport-provider.js +15 -0
- package/dist/textarea.css +132 -130
- package/dist/textarea.js +69 -27
- package/dist/toast.css +229 -225
- package/dist/toast.js +102 -42
- package/dist/tooltip.css +137 -107
- package/dist/tooltip.js +180 -228
- package/dist/tooltip2.js +8 -0
- package/dist/useClickOutside.js +1 -1
- package/dist/useFloatingPosition.js +1284 -0
- package/dist/useFocusTrap.js +130 -0
- package/dist/useTeleportTarget.js +29 -0
- package/docs/public-styles-api.md +133 -0
- package/docs/public-tokens.md +545 -0
- package/package.json +29 -5
- package/src/styles/_tokens.scss +33 -28
- package/src/styles/_utilities.scss +11 -9
- package/src/styles/styles-manifest.json +4125 -0
- package/dist/rafScheduler.js +0 -34
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { alert_default as Alert, alertColors, alertRadiuses, alertVariants };
|
|
1
|
+
import { a as alert_default, i as alertVariants, n as alertParts, r as alertRadiuses, t as alertColors } from "../../alert.js";
|
|
2
|
+
export { alert_default as Alert, alertColors, alertParts, alertRadiuses, alertVariants };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
2
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
3
|
+
export declare const alertParts: readonly ["root", "icon", "title", "description", "body", "action", "close"];
|
|
4
|
+
export type AlertPart = (typeof alertParts)[number];
|
|
2
5
|
export declare const alertColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
|
|
3
6
|
export declare const alertVariants: readonly ["subtle", "surface", "outline", "solid"];
|
|
4
7
|
export declare const alertRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl"];
|
|
@@ -6,7 +9,7 @@ export type AlertColor = ComponentColorValue;
|
|
|
6
9
|
export type AlertVariant = (typeof alertVariants)[number];
|
|
7
10
|
export type AlertRadius = (typeof alertRadiuses)[number];
|
|
8
11
|
export type AlertRole = 'alert' | 'status' | 'none';
|
|
9
|
-
export interface AlertProps {
|
|
12
|
+
export interface AlertProps extends StylesApiProps<AlertPart> {
|
|
10
13
|
open?: boolean;
|
|
11
14
|
title?: string;
|
|
12
15
|
description?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { aspect_ratio_default as AspectRatio };
|
|
1
|
+
import { n as aspect_ratio_default, t as aspectRatioParts } from "../../aspect-ratio.js";
|
|
2
|
+
export { aspect_ratio_default as AspectRatio, aspectRatioParts };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
2
|
+
export declare const aspectRatioParts: readonly ["root"];
|
|
3
|
+
export type AspectRatioPart = (typeof aspectRatioParts)[number];
|
|
4
|
+
export interface AspectRatioProps extends StylesApiProps<AspectRatioPart> {
|
|
2
5
|
ratio?: number;
|
|
3
6
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Avatar } from './avatar.js';
|
|
2
|
-
export { avatarColors, avatarRadiuses, avatarSizes, avatarVariants } from './types.js';
|
|
3
|
-
export type { AvatarColor, AvatarProps, AvatarRadius, AvatarSize, AvatarVariant } from './types.js';
|
|
2
|
+
export { avatarColors, avatarParts, avatarRadiuses, avatarSizes, avatarVariants } from './types.js';
|
|
3
|
+
export type { AvatarColor, AvatarPart, AvatarProps, AvatarRadius, AvatarSize, AvatarVariant, } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { avatar_default as Avatar, avatarColors, avatarRadiuses, avatarSizes, avatarVariants };
|
|
1
|
+
import { a as avatarVariants, i as avatarSizes, n as avatarParts, o as avatar_default, r as avatarRadiuses, t as avatarColors } from "../../avatar.js";
|
|
2
|
+
export { avatar_default as Avatar, avatarColors, avatarParts, avatarRadiuses, avatarSizes, avatarVariants };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
2
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
3
|
+
export declare const avatarParts: readonly ["root", "image", "fallback"];
|
|
4
|
+
export type AvatarPart = (typeof avatarParts)[number];
|
|
2
5
|
export declare const avatarColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
|
|
3
6
|
export declare const avatarSizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
4
7
|
export declare const avatarRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl", "full"];
|
|
@@ -7,7 +10,7 @@ export type AvatarColor = ComponentColorValue;
|
|
|
7
10
|
export type AvatarSize = (typeof avatarSizes)[number];
|
|
8
11
|
export type AvatarRadius = (typeof avatarRadiuses)[number];
|
|
9
12
|
export type AvatarVariant = (typeof avatarVariants)[number];
|
|
10
|
-
export interface AvatarProps {
|
|
13
|
+
export interface AvatarProps extends StylesApiProps<AvatarPart> {
|
|
11
14
|
src?: string | null;
|
|
12
15
|
alt?: string;
|
|
13
16
|
ariaLabel?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Badge } from './badge.js';
|
|
2
|
-
export { badgeColors, badgeRadiuses, badgeSizes, badgeVariants } from './types.js';
|
|
3
|
-
export type { BadgeColor, BadgeProps, BadgeRadius, BadgeSize, BadgeVariant } from './types.js';
|
|
2
|
+
export { badgeColors, badgeParts, badgeRadiuses, badgeSizes, badgeVariants } from './types.js';
|
|
3
|
+
export type { BadgeColor, BadgePart, BadgeProps, BadgeRadius, BadgeSize, BadgeVariant, } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { badge_default as Badge, badgeColors, badgeRadiuses, badgeSizes, badgeVariants };
|
|
1
|
+
import { a as badgeVariants, i as badgeSizes, n as badgeParts, o as badge_default, r as badgeRadiuses, t as badgeColors } from "../../badge.js";
|
|
2
|
+
export { badge_default as Badge, badgeColors, badgeParts, badgeRadiuses, badgeSizes, badgeVariants };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
2
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
3
|
+
export declare const badgeParts: readonly ["root", "left", "label", "right"];
|
|
4
|
+
export type BadgePart = (typeof badgeParts)[number];
|
|
2
5
|
export declare const badgeColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
|
|
3
6
|
export declare const badgeSizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
4
7
|
export declare const badgeRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl", "full"];
|
|
@@ -7,7 +10,7 @@ export type BadgeColor = ComponentColorValue;
|
|
|
7
10
|
export type BadgeSize = (typeof badgeSizes)[number];
|
|
8
11
|
export type BadgeRadius = (typeof badgeRadiuses)[number];
|
|
9
12
|
export type BadgeVariant = (typeof badgeVariants)[number];
|
|
10
|
-
export interface BadgeProps {
|
|
13
|
+
export interface BadgeProps extends StylesApiProps<BadgePart> {
|
|
11
14
|
variant?: BadgeVariant;
|
|
12
15
|
color?: BadgeColor;
|
|
13
16
|
autoContrast?: boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default as Button } from './button.js';
|
|
2
|
-
export
|
|
2
|
+
export { buttonParts } from './types.js';
|
|
3
|
+
export type { ButtonColor, ButtonPart, ButtonProps, ButtonRadius, ButtonSize, ButtonVariant, } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { button_default as Button };
|
|
1
|
+
import { n as button_default, t as buttonParts } from "../../button.js";
|
|
2
|
+
export { button_default as Button, buttonParts };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
2
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
3
|
+
export declare const buttonParts: readonly ["root", "loader", "left", "label", "right"];
|
|
4
|
+
export type ButtonPart = (typeof buttonParts)[number];
|
|
2
5
|
export type ButtonColor = ComponentColorValue;
|
|
3
6
|
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
7
|
export type ButtonRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
8
|
export type ButtonVariant = 'solid' | 'subtle' | 'surface' | 'outline' | 'ghost' | 'plain';
|
|
6
|
-
export interface ButtonProps {
|
|
9
|
+
export interface ButtonProps extends StylesApiProps<ButtonPart> {
|
|
7
10
|
variant?: ButtonVariant;
|
|
8
11
|
color?: ButtonColor;
|
|
9
12
|
autoContrast?: boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default as ButtonGroup } from './button-group.js';
|
|
2
|
-
export
|
|
2
|
+
export { buttonGroupParts } from './types.js';
|
|
3
|
+
export type { ButtonGroupOrientation, ButtonGroupPart, ButtonGroupProps } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { button_group_default as ButtonGroup };
|
|
1
|
+
import { n as button_group_default, t as buttonGroupParts } from "../../button-group.js";
|
|
2
|
+
export { button_group_default as ButtonGroup, buttonGroupParts };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
2
|
+
export declare const buttonGroupParts: readonly ["root"];
|
|
3
|
+
export type ButtonGroupPart = (typeof buttonGroupParts)[number];
|
|
1
4
|
export type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
2
|
-
export interface ButtonGroupProps {
|
|
5
|
+
export interface ButtonGroupProps extends StylesApiProps<ButtonGroupPart> {
|
|
3
6
|
id?: string;
|
|
4
7
|
orientation?: ButtonGroupOrientation;
|
|
5
8
|
attached?: boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default as ButtonLink } from './button-link.js';
|
|
2
|
-
export
|
|
2
|
+
export { buttonLinkParts } from './types.js';
|
|
3
|
+
export type { ButtonLinkColor, ButtonLinkPart, ButtonLinkProps, ButtonLinkRadius, ButtonLinkSize, ButtonLinkTarget, ButtonLinkVariant, } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { button_link_default as ButtonLink };
|
|
1
|
+
import { n as button_link_default, t as buttonLinkParts } from "../../button-link.js";
|
|
2
|
+
export { button_link_default as ButtonLink, buttonLinkParts };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types.js';
|
|
2
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
3
|
+
export declare const buttonLinkParts: readonly ["root", "loader", "left", "label", "right"];
|
|
4
|
+
export type ButtonLinkPart = (typeof buttonLinkParts)[number];
|
|
2
5
|
export type ButtonLinkColor = ButtonColor;
|
|
3
6
|
export type ButtonLinkSize = ButtonSize;
|
|
4
7
|
export type ButtonLinkRadius = ButtonRadius;
|
|
5
8
|
export type ButtonLinkVariant = ButtonVariant;
|
|
6
9
|
export type ButtonLinkTarget = '_self' | '_blank' | '_parent' | '_top' | (string & {});
|
|
7
|
-
export interface ButtonLinkProps {
|
|
10
|
+
export interface ButtonLinkProps extends StylesApiProps<ButtonLinkPart> {
|
|
8
11
|
href?: string;
|
|
9
12
|
target?: ButtonLinkTarget;
|
|
10
13
|
rel?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { card_default as Card };
|
|
1
|
+
import { n as card_default, t as cardParts } from "../../card.js";
|
|
2
|
+
export { card_default as Card, cardParts };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
3
|
+
export declare const cardParts: readonly ["root", "header", "title", "description", "body", "footer"];
|
|
4
|
+
export type CardPart = (typeof cardParts)[number];
|
|
2
5
|
export type CardPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
3
6
|
export type CardRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
7
|
export type CardLayer = 'base' | 'surface' | 'raised';
|
|
5
|
-
export interface CardProps {
|
|
8
|
+
export interface CardProps extends StylesApiProps<CardPart> {
|
|
6
9
|
layer?: CardLayer;
|
|
7
10
|
padding?: CardPadding;
|
|
8
11
|
radius?: CardRadius;
|
|
@@ -11,5 +14,6 @@ export interface CardProps {
|
|
|
11
14
|
footerBorder?: boolean;
|
|
12
15
|
title?: string;
|
|
13
16
|
description?: string;
|
|
17
|
+
/** @deprecated Use `classNames.body` instead. */
|
|
14
18
|
bodyClass?: HTMLAttributes['class'];
|
|
15
19
|
}
|
|
@@ -5,7 +5,10 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
|
|
|
5
5
|
}> & (typeof globalThis extends {
|
|
6
6
|
__VLS_PROPS_FALLBACK: infer P;
|
|
7
7
|
} ? P : {});
|
|
8
|
-
expose: (exposed: {
|
|
8
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
9
|
+
nativeElement: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
10
|
+
focus: (options?: FocusOptions) => void;
|
|
11
|
+
}>) => void;
|
|
9
12
|
attrs: any;
|
|
10
13
|
slots: {
|
|
11
14
|
default?: (props: {}) => any;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default as Checkbox } from './checkbox.js';
|
|
2
|
-
export
|
|
2
|
+
export { checkboxParts } from './types.js';
|
|
3
|
+
export type { CheckboxColor, CheckboxPart, CheckboxProps, CheckboxRadius, CheckboxSize, CheckboxVariant, } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { checkbox_default as Checkbox };
|
|
1
|
+
import { n as checkbox_default, t as checkboxParts } from "../../checkbox.js";
|
|
2
|
+
export { checkbox_default as Checkbox, checkboxParts };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'vue';
|
|
1
2
|
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
3
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
4
|
+
export declare const checkboxParts: readonly ["root", "input", "indicator", "label"];
|
|
5
|
+
export type CheckboxPart = (typeof checkboxParts)[number];
|
|
2
6
|
export type CheckboxColor = ComponentColorValue;
|
|
3
7
|
export type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
8
|
export type CheckboxRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
9
|
export type CheckboxVariant = 'solid' | 'outline';
|
|
6
|
-
export interface CheckboxProps {
|
|
10
|
+
export interface CheckboxProps extends StylesApiProps<CheckboxPart> {
|
|
7
11
|
id?: string;
|
|
8
12
|
name?: string;
|
|
9
13
|
modelValue: boolean;
|
|
@@ -19,4 +23,5 @@ export interface CheckboxProps {
|
|
|
19
23
|
describedby?: string;
|
|
20
24
|
labelledby?: string;
|
|
21
25
|
indeterminate?: boolean;
|
|
26
|
+
inputAttrs?: InputHTMLAttributes;
|
|
22
27
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
2
|
import { CheckboxProps } from './types.js';
|
|
3
3
|
export declare function useCheckbox(props: Readonly<CheckboxProps>, emitUpdate: (value: boolean) => void): {
|
|
4
|
+
inputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
4
5
|
control: import('../../composables/useControlState.js').ControlState;
|
|
5
6
|
rootClass: import('vue').ComputedRef<string[]>;
|
|
6
7
|
rootStyle: import('vue').ComputedRef<CSSProperties | undefined>;
|
|
7
8
|
onChange: (e: Event) => void;
|
|
9
|
+
focus: (options?: FocusOptions) => void;
|
|
8
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollapseProps } from './types.js';
|
|
1
|
+
import { CollapseProps, CollapseTriggerProps } from './types.js';
|
|
2
2
|
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<CollapseProps & {
|
|
4
4
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -9,7 +9,7 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
11
11
|
trigger?: (props: {
|
|
12
|
-
triggerProps:
|
|
12
|
+
triggerProps: CollapseTriggerProps;
|
|
13
13
|
isOpen: boolean;
|
|
14
14
|
open: () => void;
|
|
15
15
|
close: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as Collapse } from './collapse.js';
|
|
2
2
|
export { useCollapse } from './useCollapse.js';
|
|
3
|
-
export
|
|
3
|
+
export { collapseParts } from './types.js';
|
|
4
|
+
export type { CollapseContentProps, CollapseContentRole, CollapseOption, CollapsePart, CollapseProps, CollapseRootProps, CollapseSlotProps, CollapseState, CollapseTriggerProps, CollapseTriggerSlotProps, UseCollapseOptions, UseCollapseReturn, } from './types.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as useCollapse } from "../../useCollapse.js";
|
|
2
|
-
import {
|
|
3
|
-
export { collapse_default as Collapse, useCollapse };
|
|
2
|
+
import { n as collapse_default, t as collapseParts } from "../../collapse.js";
|
|
3
|
+
export { collapse_default as Collapse, collapseParts, useCollapse };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { ComputedRef, MaybeRefOrGetter } from 'vue';
|
|
1
|
+
import { ComputedRef, HTMLAttributes, MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
3
|
+
export declare const collapseParts: readonly ["root", "trigger", "content"];
|
|
4
|
+
export type CollapsePart = (typeof collapseParts)[number];
|
|
2
5
|
export type CollapseState = 'open' | 'closed';
|
|
3
6
|
export type CollapseContentRole = 'region' | 'group';
|
|
4
7
|
export type CollapseOption<T> = MaybeRefOrGetter<T>;
|
|
@@ -13,6 +16,10 @@ export interface CollapseTriggerProps {
|
|
|
13
16
|
'aria-controls': string;
|
|
14
17
|
'aria-expanded': boolean;
|
|
15
18
|
'aria-disabled'?: boolean;
|
|
19
|
+
class?: HTMLAttributes['class'];
|
|
20
|
+
style?: HTMLAttributes['style'];
|
|
21
|
+
'data-state'?: CollapseState;
|
|
22
|
+
'data-disabled'?: '';
|
|
16
23
|
onClick: (event: MouseEvent) => void;
|
|
17
24
|
}
|
|
18
25
|
export interface CollapseContentProps {
|
|
@@ -34,7 +41,7 @@ export interface CollapseSlotProps {
|
|
|
34
41
|
export interface CollapseTriggerSlotProps extends CollapseSlotProps {
|
|
35
42
|
triggerProps: CollapseTriggerProps;
|
|
36
43
|
}
|
|
37
|
-
export interface CollapseProps {
|
|
44
|
+
export interface CollapseProps extends StylesApiProps<CollapsePart> {
|
|
38
45
|
id?: string;
|
|
39
46
|
open?: boolean;
|
|
40
47
|
disabled?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { color_input_default as ColorInput };
|
|
1
|
+
import { n as color_input_default, t as colorInputParts } from "../../color-input.js";
|
|
2
|
+
export { color_input_default as ColorInput, colorInputParts };
|
|
@@ -2,7 +2,10 @@ import { InputHTMLAttributes } from 'vue';
|
|
|
2
2
|
import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types.js';
|
|
3
3
|
import { InputRadius, InputSize } from '../input/types.js';
|
|
4
4
|
import { PopoverPlacement } from '../popover/types.js';
|
|
5
|
-
|
|
5
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
6
|
+
export declare const colorInputParts: readonly ["root", "control", "input", "preview", "eyeDropper", "content", "picker", "pickerControl", "pickerHandle", "pickerSwatches", "pickerSwatch"];
|
|
7
|
+
export type ColorInputPart = (typeof colorInputParts)[number];
|
|
8
|
+
export interface ColorInputProps extends StylesApiProps<ColorInputPart> {
|
|
6
9
|
id?: string;
|
|
7
10
|
name?: string;
|
|
8
11
|
modelValue: ColorPickerValue;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as ColorPicker } from './color-picker.js';
|
|
2
|
-
export { colorPickerFormats, colorPickerSizes } from './types.js';
|
|
3
|
-
export type { ColorPickerFormat, ColorPickerProps, ColorPickerSelection, ColorPickerSize, ColorPickerValue, } from './types.js';
|
|
2
|
+
export { colorPickerFormats, colorPickerParts, colorPickerSizes } from './types.js';
|
|
3
|
+
export type { ColorPickerFormat, ColorPickerPart, ColorPickerProps, ColorPickerSelection, ColorPickerSize, ColorPickerValue, } from './types.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as color_picker_default } from "../../color-picker.js";
|
|
2
|
-
import { n as colorPickerSizes, t as colorPickerFormats } from "../../color-picker2.js";
|
|
3
|
-
export { color_picker_default as ColorPicker, colorPickerFormats, colorPickerSizes };
|
|
2
|
+
import { n as colorPickerParts, r as colorPickerSizes, t as colorPickerFormats } from "../../color-picker2.js";
|
|
3
|
+
export { color_picker_default as ColorPicker, colorPickerFormats, colorPickerParts, colorPickerSizes };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
3
|
+
export declare const colorPickerParts: readonly ["root", "label", "control", "handle", "swatches", "swatch"];
|
|
4
|
+
export type ColorPickerPart = (typeof colorPickerParts)[number];
|
|
1
5
|
export declare const colorPickerFormats: readonly ["hex", "hexa", "rgb", "rgba", "hsl", "hsla"];
|
|
2
6
|
export declare const colorPickerSizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
3
7
|
export type ColorPickerFormat = (typeof colorPickerFormats)[number];
|
|
@@ -8,7 +12,7 @@ export interface ColorPickerSelection {
|
|
|
8
12
|
opacity?: number;
|
|
9
13
|
}
|
|
10
14
|
export type ColorPickerValue = string;
|
|
11
|
-
export interface ColorPickerProps {
|
|
15
|
+
export interface ColorPickerProps extends StylesApiProps<ColorPickerPart> {
|
|
12
16
|
id?: string;
|
|
13
17
|
modelValue: ColorPickerValue;
|
|
14
18
|
format?: ColorPickerFormat;
|
|
@@ -29,6 +33,10 @@ export interface ColorPickerSaturationProps {
|
|
|
29
33
|
ariaLabel?: string;
|
|
30
34
|
describedby?: string;
|
|
31
35
|
labelledby?: string;
|
|
36
|
+
controlClass?: HTMLAttributes['class'];
|
|
37
|
+
controlStyle?: HTMLAttributes['style'];
|
|
38
|
+
handleClass?: HTMLAttributes['class'];
|
|
39
|
+
handleStyle?: HTMLAttributes['style'];
|
|
32
40
|
}
|
|
33
41
|
export type ColorPickerSliderVariant = 'hue' | 'opacity';
|
|
34
42
|
export interface ColorPickerSliderProps {
|
|
@@ -36,4 +44,8 @@ export interface ColorPickerSliderProps {
|
|
|
36
44
|
value?: number;
|
|
37
45
|
color?: string;
|
|
38
46
|
readonly?: boolean;
|
|
47
|
+
controlClass?: HTMLAttributes['class'];
|
|
48
|
+
controlStyle?: HTMLAttributes['style'];
|
|
49
|
+
handleClass?: HTMLAttributes['class'];
|
|
50
|
+
handleStyle?: HTMLAttributes['style'];
|
|
39
51
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
2
|
+
export declare const colorSwatchParts: readonly ["root"];
|
|
3
|
+
export type ColorSwatchPart = (typeof colorSwatchParts)[number];
|
|
1
4
|
export type ColorSwatchSize = string | number;
|
|
2
|
-
export interface ColorSwatchProps {
|
|
5
|
+
export interface ColorSwatchProps extends StylesApiProps<ColorSwatchPart> {
|
|
3
6
|
color: string;
|
|
4
7
|
size?: ColorSwatchSize;
|
|
5
8
|
ariaLabel?: string;
|