ropav 0.0.8 → 0.0.10
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/accordion.css +10 -10
- package/dist/accordion.js +2 -2
- package/dist/alert.css +109 -0
- package/dist/alert.js +168 -0
- package/dist/aspect-ratio.css +17 -0
- package/dist/aspect-ratio.js +26 -0
- package/dist/avatar.css +97 -0
- package/dist/avatar.js +161 -0
- package/dist/badge.css +40 -115
- package/dist/badge.js +19 -16
- package/dist/base.css +609 -180
- package/dist/button-link.css +161 -0
- package/dist/button-link.js +108 -0
- package/dist/button.css +50 -229
- package/dist/button.js +7 -9
- package/dist/card.css +12 -12
- package/dist/check.js +12 -0
- package/dist/checkbox.css +16 -57
- package/dist/checkbox.js +14 -31
- package/dist/collapse.css +2 -2
- package/dist/collapse.js +1 -1
- package/dist/color-input.css +108 -0
- package/dist/color-input.js +349 -0
- package/dist/color-picker.css +304 -0
- package/dist/color-picker.js +797 -0
- package/dist/color-picker2.js +18 -0
- package/dist/color-swatch.css +50 -0
- package/dist/color-swatch.js +73 -0
- package/dist/color.js +190 -0
- package/dist/componentColors.js +206 -13
- package/dist/components/accordion/accordion-item.d.ts +4 -4
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/index.d.ts +4 -4
- package/dist/components/accordion/types.d.ts +1 -1
- package/dist/components/accordion/useAccordion.d.ts +1 -1
- package/dist/components/alert/alert.d.ts +30 -0
- package/dist/components/alert/index.d.ts +3 -0
- package/dist/components/alert/index.js +2 -0
- package/dist/components/alert/types.d.ts +20 -0
- package/dist/components/alert/useAlertColor.d.ts +3 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +21 -0
- package/dist/components/aspect-ratio/index.d.ts +2 -0
- package/dist/components/aspect-ratio/index.js +2 -0
- package/dist/components/aspect-ratio/types.d.ts +3 -0
- package/dist/components/avatar/avatar.d.ts +24 -0
- package/dist/components/avatar/index.d.ts +3 -0
- package/dist/components/avatar/index.js +2 -0
- package/dist/components/avatar/types.d.ts +20 -0
- package/dist/components/avatar/useAvatarColor.d.ts +3 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/badge/types.d.ts +3 -2
- package/dist/components/badge/useBadgeColor.d.ts +3 -8
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/types.d.ts +2 -1
- package/dist/components/button/useButtonColor.d.ts +3 -13
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/button-group/index.d.ts +2 -2
- package/dist/components/button-link/button-link.d.ts +27 -0
- package/dist/components/button-link/index.d.ts +2 -0
- package/dist/components/button-link/index.js +2 -0
- package/dist/components/button-link/types.d.ts +20 -0
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/types.d.ts +2 -1
- package/dist/components/checkbox/useCheckbox.d.ts +4 -6
- package/dist/components/collapse/collapse.d.ts +2 -2
- package/dist/components/collapse/index.d.ts +3 -3
- package/dist/components/collapse/useCollapse.d.ts +1 -1
- package/dist/components/color-input/color-input.d.ts +29 -0
- package/dist/components/color-input/index.d.ts +2 -0
- package/dist/components/color-input/index.js +2 -0
- package/dist/components/color-input/types.d.ts +35 -0
- package/dist/components/color-input/useColorInput.d.ts +27 -0
- package/dist/components/color-input/useColorInputEyeDropper.d.ts +13 -0
- package/dist/components/color-input/useColorInputPopover.d.ts +11 -0
- package/dist/components/color-input/useColorInputValue.d.ts +8 -0
- package/dist/components/color-picker/color-picker-saturation.d.ts +21 -0
- package/dist/components/color-picker/color-picker-slider.d.ts +21 -0
- package/dist/components/color-picker/color-picker-utils.d.ts +23 -0
- package/dist/components/color-picker/color-picker.d.ts +23 -0
- package/dist/components/color-picker/index.d.ts +3 -0
- package/dist/components/color-picker/index.js +3 -0
- package/dist/components/color-picker/types.d.ts +39 -0
- package/dist/components/color-picker/useColorPickerDrag.d.ts +16 -0
- package/dist/components/color-picker/useColorPickerSwatches.d.ts +21 -0
- package/dist/components/color-picker/useColorPickerValue.d.ts +15 -0
- package/dist/components/color-swatch/color-swatch.d.ts +21 -0
- package/dist/components/color-swatch/index.d.ts +2 -0
- package/dist/components/color-swatch/index.js +2 -0
- package/dist/components/color-swatch/types.d.ts +6 -0
- package/dist/components/color-swatch/useColorSwatchColor.d.ts +5 -0
- package/dist/components/dropdown-menu/dropdown-menu-items.d.ts +15 -6
- package/dist/components/dropdown-menu/dropdown-menu-utils.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/dist/components/dropdown-menu/index.d.ts +3 -3
- package/dist/components/dropdown-menu/useDropdownMenu.d.ts +11 -10
- package/dist/components/dropdown-menu/useDropdownMenuDisclosure.d.ts +2 -2
- package/dist/components/dropdown-menu/useDropdownMenuDom.d.ts +2 -2
- package/dist/components/dropdown-menu/useDropdownMenuHoverIntent.d.ts +2 -2
- package/dist/components/dropdown-menu/useDropdownMenuInteractions.d.ts +2 -2
- package/dist/components/dropdown-menu/useDropdownMenuNavigation.d.ts +3 -3
- package/dist/components/dropdown-menu/useDropdownMenuRenderItems.d.ts +12 -4
- package/dist/components/dropdown-menu/useDropdownSubmenus.d.ts +3 -3
- package/dist/components/field/field.d.ts +2 -2
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/field/types.d.ts +0 -2
- package/dist/components/field/useField.d.ts +1 -3
- package/dist/components/icon-button/icon-button.d.ts +1 -1
- package/dist/components/icon-button/index.d.ts +2 -2
- package/dist/components/icon-button/types.d.ts +2 -1
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/types.d.ts +3 -0
- package/dist/components/input/useInput.d.ts +2 -2
- package/dist/components/modal/index.d.ts +2 -2
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/types.d.ts +1 -1
- package/dist/components/modal/useModal.d.ts +1 -1
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.js +2 -0
- package/dist/components/number-input/number-input.d.ts +29 -0
- package/dist/components/number-input/types.d.ts +34 -0
- package/dist/components/number-input/useNumberInput.d.ts +31 -0
- package/dist/components/overlay/index.d.ts +2 -2
- package/dist/components/overlay/overlay.d.ts +1 -1
- package/dist/components/overlay/useOverlay.d.ts +1 -1
- package/dist/components/popover/index.d.ts +3 -2
- package/dist/components/popover/index.js +2 -1
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/popover/types.d.ts +3 -1
- package/dist/components/popover/usePopover.d.ts +2 -1
- package/dist/components/progress/index.d.ts +3 -3
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/progress/types.d.ts +2 -2
- package/dist/components/progress/useProgress.d.ts +2 -2
- package/dist/components/radio/index.d.ts +3 -3
- package/dist/components/radio/radio-group.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/types.d.ts +4 -1
- package/dist/components/radio/useRadio.d.ts +4 -6
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/types.d.ts +3 -0
- package/dist/components/select/useSelect.d.ts +2 -2
- package/dist/components/slider/index.d.ts +4 -3
- package/dist/components/slider/index.js +2 -2
- package/dist/components/slider/range-slider-tooltip.d.ts +34 -0
- package/dist/components/slider/range-slider.d.ts +37 -0
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/slider/sliderCore.d.ts +35 -0
- package/dist/components/slider/types.d.ts +15 -6
- package/dist/components/slider/useRangeSlider.d.ts +57 -0
- package/dist/components/slider/useRangeSliderPointer.d.ts +19 -0
- package/dist/components/slider/useRangeSliderTooltipCollision.d.ts +36 -0
- package/dist/components/slider/useRangeSliderTooltipState.d.ts +23 -0
- package/dist/components/slider/useSlider.d.ts +11 -15
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/types.d.ts +1 -1
- package/dist/components/switch/useSwitch.d.ts +4 -5
- package/dist/components/tabs/index.d.ts +6 -6
- package/dist/components/tabs/tabs-content.d.ts +2 -2
- package/dist/components/tabs/tabs-list.d.ts +4 -4
- package/dist/components/tabs/tabs-trigger.d.ts +5 -5
- package/dist/components/tabs/tabs.d.ts +5 -5
- package/dist/components/tabs/useTabs.d.ts +1 -1
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/useTextarea.d.ts +2 -2
- package/dist/components/toast/defaults.d.ts +7 -0
- package/dist/components/toast/index.d.ts +7 -0
- package/dist/components/toast/index.js +2 -0
- package/dist/components/toast/toast-provider.d.ts +21 -0
- package/dist/components/toast/toast-viewport.d.ts +34 -0
- package/dist/components/toast/toast.d.ts +31 -0
- package/dist/components/toast/types.d.ts +106 -0
- package/dist/components/toast/useToast.d.ts +4 -0
- package/dist/components/toast/useToastColor.d.ts +3 -0
- package/dist/components/toast/useToastState.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/types.d.ts +2 -1
- package/dist/components/tooltip/useTooltip.d.ts +3 -1
- package/dist/dropdown-menu.css +17 -17
- package/dist/dropdown-menu.js +160 -39
- package/dist/field.css +15 -18
- package/dist/field.js +17 -35
- package/dist/icon-button.css +57 -236
- package/dist/icon-button.js +5 -6
- package/dist/index.d.ts +31 -22
- package/dist/index.js +17 -4
- package/dist/input.css +40 -46
- package/dist/input.js +39 -21
- package/dist/minus.js +12 -0
- package/dist/modal.css +9 -9
- package/dist/modal.js +1 -1
- package/dist/number-input.css +86 -0
- package/dist/number-input.js +350 -0
- package/dist/overlay.css +5 -5
- package/dist/overlay.js +3 -3
- package/dist/popover.css +62 -29
- package/dist/popover.js +33 -19
- package/dist/popover2.js +17 -0
- package/dist/progress.css +9 -30
- package/dist/progress.js +3 -6
- package/dist/radio.css +34 -62
- package/dist/radio.js +28 -16
- package/dist/rafScheduler.js +34 -0
- package/dist/select.css +105 -61
- package/dist/select.js +12 -8
- package/dist/slider.css +719 -125
- package/dist/slider.js +1251 -149
- package/dist/switch.css +19 -44
- package/dist/switch.js +4 -5
- package/dist/tabs.css +36 -36
- package/dist/tabs.js +1 -1
- package/dist/textarea.css +33 -25
- package/dist/textarea.js +8 -2
- package/dist/toast.css +232 -0
- package/dist/toast.js +679 -0
- package/dist/tooltip.css +7 -35
- package/dist/tooltip.js +30 -18
- package/dist/useButtonColor.js +16 -14
- package/dist/utils/componentColors.d.ts +60 -0
- package/package.json +55 -15
- package/src/styles/_mixins.scss +25 -41
- package/src/styles/_tokens.scss +615 -182
- package/src/styles/_variables.scss +177 -49
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AspectRatioProps } from './types.js';
|
|
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
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<AspectRatioProps> & (typeof globalThis extends {
|
|
4
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
5
|
+
} ? P : {});
|
|
6
|
+
expose: (exposed: {}) => void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {
|
|
9
|
+
default?: (props: {}) => any;
|
|
10
|
+
};
|
|
11
|
+
emit: {};
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AvatarProps } from './types.js';
|
|
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
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<AvatarProps & {
|
|
4
|
+
onLoad?: ((event: Event) => any) | undefined;
|
|
5
|
+
onError?: ((event: Event) => any) | undefined;
|
|
6
|
+
}> & (typeof globalThis extends {
|
|
7
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
8
|
+
} ? P : {});
|
|
9
|
+
expose: (exposed: {}) => void;
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: {
|
|
12
|
+
default?: (props: {}) => any;
|
|
13
|
+
};
|
|
14
|
+
emit: ((evt: "load", event: Event) => void) & ((evt: "error", event: Event) => void);
|
|
15
|
+
}>) => import('vue').VNode & {
|
|
16
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} : {
|
|
23
|
+
[K in keyof T as K]: T[K];
|
|
24
|
+
}) & {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
2
|
+
export declare const avatarColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
|
|
3
|
+
export declare const avatarSizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
4
|
+
export declare const avatarRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl", "full"];
|
|
5
|
+
export declare const avatarVariants: readonly ["solid", "subtle", "surface", "outline"];
|
|
6
|
+
export type AvatarColor = ComponentColorValue;
|
|
7
|
+
export type AvatarSize = (typeof avatarSizes)[number];
|
|
8
|
+
export type AvatarRadius = (typeof avatarRadiuses)[number];
|
|
9
|
+
export type AvatarVariant = (typeof avatarVariants)[number];
|
|
10
|
+
export interface AvatarProps {
|
|
11
|
+
src?: string | null;
|
|
12
|
+
alt?: string;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
variant?: AvatarVariant;
|
|
16
|
+
color?: AvatarColor;
|
|
17
|
+
autoContrast?: boolean;
|
|
18
|
+
size?: AvatarSize;
|
|
19
|
+
radius?: AvatarRadius;
|
|
20
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BadgeProps } from './types';
|
|
1
|
+
import { BadgeProps } 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<BadgeProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Badge } from './badge';
|
|
2
|
-
export { badgeColors, badgeRadiuses, badgeSizes, badgeVariants } from './types';
|
|
3
|
-
export type { BadgeColor, BadgeProps, BadgeRadius, BadgeSize, BadgeVariant } from './types';
|
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
2
|
-
export declare const badgeColors: readonly ["
|
|
1
|
+
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
2
|
+
export declare const badgeColors: readonly ["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "teal", "green", "lime", "yellow", "orange"];
|
|
3
3
|
export declare const badgeSizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
4
4
|
export declare const badgeRadiuses: readonly ["none", "xs", "sm", "md", "lg", "xl", "full"];
|
|
5
5
|
export declare const badgeVariants: readonly ["solid", "subtle", "surface", "outline"];
|
|
@@ -10,6 +10,7 @@ export type BadgeVariant = (typeof badgeVariants)[number];
|
|
|
10
10
|
export interface BadgeProps {
|
|
11
11
|
variant?: BadgeVariant;
|
|
12
12
|
color?: BadgeColor;
|
|
13
|
+
autoContrast?: boolean;
|
|
13
14
|
size?: BadgeSize;
|
|
14
15
|
radius?: BadgeRadius;
|
|
15
16
|
ariaLabel?: string;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
'--_rp-badge-custom-fg': string & {};
|
|
5
|
-
'--_rp-badge-custom-on': string;
|
|
6
|
-
'--_rp-badge-custom-subtle-bg': string;
|
|
7
|
-
'--_rp-badge-custom-border': string;
|
|
8
|
-
} | undefined;
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { BadgeColor, BadgeVariant } from './types.js';
|
|
3
|
+
export declare function getBadgeColorStyle(color: BadgeColor | undefined, variant: BadgeVariant | undefined, autoContrast: boolean | undefined): CSSProperties | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonProps } from './types';
|
|
1
|
+
import { ButtonProps } 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<ButtonProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Button } from './button';
|
|
2
|
-
export type { ButtonColor, ButtonProps, ButtonRadius, ButtonSize, ButtonVariant } from './types';
|
|
1
|
+
export { default as Button } from './button.js';
|
|
2
|
+
export type { ButtonColor, ButtonProps, ButtonRadius, ButtonSize, ButtonVariant } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
1
|
+
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
2
2
|
export type ButtonColor = ComponentColorValue;
|
|
3
3
|
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export type ButtonRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -6,6 +6,7 @@ export type ButtonVariant = 'solid' | 'subtle' | 'surface' | 'outline' | 'ghost'
|
|
|
6
6
|
export interface ButtonProps {
|
|
7
7
|
variant?: ButtonVariant;
|
|
8
8
|
color?: ButtonColor;
|
|
9
|
+
autoContrast?: boolean;
|
|
9
10
|
size?: ButtonSize;
|
|
10
11
|
radius?: ButtonRadius;
|
|
11
12
|
type?: 'button' | 'submit' | 'reset';
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
'--_rp-button-custom-hover': string;
|
|
5
|
-
'--_rp-button-custom-active': string;
|
|
6
|
-
'--_rp-button-custom-on': string;
|
|
7
|
-
'--_rp-button-custom-subtle-bg': string;
|
|
8
|
-
'--_rp-button-custom-subtle-bg-hover': string;
|
|
9
|
-
'--_rp-button-custom-subtle-bg-active': string;
|
|
10
|
-
'--_rp-button-custom-border': string;
|
|
11
|
-
'--_rp-button-custom-border-hover': string;
|
|
12
|
-
'--_rp-button-custom-fg': string & {};
|
|
13
|
-
} | undefined;
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { ButtonColor, ButtonVariant } from './types.js';
|
|
3
|
+
export declare function getButtonColorStyle(color: ButtonColor | undefined, variant: ButtonVariant | undefined, autoContrast: boolean | undefined): CSSProperties | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonGroupProps } from './types';
|
|
1
|
+
import { ButtonGroupProps } 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<ButtonGroupProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as ButtonGroup } from './button-group';
|
|
2
|
-
export type { ButtonGroupOrientation, ButtonGroupProps } from './types';
|
|
1
|
+
export { default as ButtonGroup } from './button-group.js';
|
|
2
|
+
export type { ButtonGroupOrientation, ButtonGroupProps } from './types.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ButtonLinkProps } from './types.js';
|
|
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
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<ButtonLinkProps> & (typeof globalThis extends {
|
|
4
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
5
|
+
} ? P : {});
|
|
6
|
+
expose: (exposed: {}) => void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {
|
|
9
|
+
loading?: (props: {}) => any;
|
|
10
|
+
} & {
|
|
11
|
+
left?: (props: {}) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: {}) => any;
|
|
14
|
+
} & {
|
|
15
|
+
right?: (props: {}) => any;
|
|
16
|
+
};
|
|
17
|
+
emit: {};
|
|
18
|
+
}>) => import('vue').VNode & {
|
|
19
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
24
|
+
[K in keyof T]: T[K];
|
|
25
|
+
} : {
|
|
26
|
+
[K in keyof T as K]: T[K];
|
|
27
|
+
}) & {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types.js';
|
|
2
|
+
export type ButtonLinkColor = ButtonColor;
|
|
3
|
+
export type ButtonLinkSize = ButtonSize;
|
|
4
|
+
export type ButtonLinkRadius = ButtonRadius;
|
|
5
|
+
export type ButtonLinkVariant = ButtonVariant;
|
|
6
|
+
export type ButtonLinkTarget = '_self' | '_blank' | '_parent' | '_top' | (string & {});
|
|
7
|
+
export interface ButtonLinkProps {
|
|
8
|
+
href?: string;
|
|
9
|
+
target?: ButtonLinkTarget;
|
|
10
|
+
rel?: string;
|
|
11
|
+
download?: string | boolean;
|
|
12
|
+
hreflang?: string;
|
|
13
|
+
variant?: ButtonLinkVariant;
|
|
14
|
+
color?: ButtonLinkColor;
|
|
15
|
+
autoContrast?: boolean;
|
|
16
|
+
size?: ButtonLinkSize;
|
|
17
|
+
radius?: ButtonLinkRadius;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CardProps } from './types';
|
|
1
|
+
import { CardProps } 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<CardProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Card } from './card';
|
|
2
|
-
export type { CardLayer, CardPadding, CardProps, CardRadius } from './types';
|
|
1
|
+
export { default as Card } from './card.js';
|
|
2
|
+
export type { CardLayer, CardPadding, CardProps, CardRadius } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckboxProps } from './types';
|
|
1
|
+
import { CheckboxProps } 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<CheckboxProps & {
|
|
4
4
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Checkbox } from './checkbox';
|
|
2
|
-
export type { CheckboxColor, CheckboxProps, CheckboxRadius, CheckboxSize, CheckboxVariant, } from './types';
|
|
1
|
+
export { default as Checkbox } from './checkbox.js';
|
|
2
|
+
export type { CheckboxColor, CheckboxProps, CheckboxRadius, CheckboxSize, CheckboxVariant, } from './types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
1
|
+
import { ComponentColorValue } from '../../utils/componentColors.js';
|
|
2
2
|
export type CheckboxColor = ComponentColorValue;
|
|
3
3
|
export type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export type CheckboxRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -9,6 +9,7 @@ export interface CheckboxProps {
|
|
|
9
9
|
modelValue: boolean;
|
|
10
10
|
variant?: CheckboxVariant;
|
|
11
11
|
color?: CheckboxColor;
|
|
12
|
+
autoContrast?: boolean;
|
|
12
13
|
size?: CheckboxSize;
|
|
13
14
|
radius?: CheckboxRadius;
|
|
14
15
|
disabled?: boolean;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { CheckboxProps } from './types.js';
|
|
2
3
|
export declare function useCheckbox(props: Readonly<CheckboxProps>, emitUpdate: (value: boolean) => void): {
|
|
3
|
-
control: import('../../composables/useControlState').ControlState;
|
|
4
|
+
control: import('../../composables/useControlState.js').ControlState;
|
|
4
5
|
rootClass: import('vue').ComputedRef<string[]>;
|
|
5
|
-
rootStyle: import('vue').ComputedRef<
|
|
6
|
-
'--_rp-checkbox-custom-color': string & {};
|
|
7
|
-
'--_rp-checkbox-custom-on-color': string;
|
|
8
|
-
} | undefined>;
|
|
6
|
+
rootStyle: import('vue').ComputedRef<CSSProperties | undefined>;
|
|
9
7
|
onChange: (e: Event) => void;
|
|
10
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollapseProps } from './types';
|
|
1
|
+
import { CollapseProps } 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: import('./types').CollapseTriggerProps;
|
|
12
|
+
triggerProps: import('./types.js').CollapseTriggerProps;
|
|
13
13
|
isOpen: boolean;
|
|
14
14
|
open: () => void;
|
|
15
15
|
close: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Collapse } from './collapse';
|
|
2
|
-
export { useCollapse } from './useCollapse';
|
|
3
|
-
export type { CollapseContentProps, CollapseContentRole, CollapseOption, CollapseProps, CollapseRootProps, CollapseSlotProps, CollapseState, CollapseTriggerProps, CollapseTriggerSlotProps, UseCollapseOptions, UseCollapseReturn, } from './types';
|
|
1
|
+
export { default as Collapse } from './collapse.js';
|
|
2
|
+
export { useCollapse } from './useCollapse.js';
|
|
3
|
+
export type { CollapseContentProps, CollapseContentRole, CollapseOption, CollapseProps, CollapseRootProps, CollapseSlotProps, CollapseState, CollapseTriggerProps, CollapseTriggerSlotProps, UseCollapseOptions, UseCollapseReturn, } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UseCollapseOptions, UseCollapseReturn } from './types';
|
|
1
|
+
import { UseCollapseOptions, UseCollapseReturn } from './types.js';
|
|
2
2
|
export declare function useCollapse(options?: Readonly<UseCollapseOptions>, emitOpenChange?: (open: boolean) => void): UseCollapseReturn;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ColorInputProps } from './types.js';
|
|
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
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<ColorInputProps & {
|
|
4
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
6
|
+
}> & (typeof globalThis extends {
|
|
7
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
8
|
+
} ? P : {});
|
|
9
|
+
expose: (exposed: {}) => void;
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: {
|
|
12
|
+
left?: (props: {
|
|
13
|
+
color: string | undefined;
|
|
14
|
+
empty: boolean;
|
|
15
|
+
}) => any;
|
|
16
|
+
} & {
|
|
17
|
+
'eye-dropper-icon'?: (props: {}) => any;
|
|
18
|
+
};
|
|
19
|
+
emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: string) => void);
|
|
20
|
+
}>) => import('vue').VNode & {
|
|
21
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
22
|
+
};
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
26
|
+
[K in keyof T]: T[K];
|
|
27
|
+
} : {
|
|
28
|
+
[K in keyof T as K]: T[K];
|
|
29
|
+
}) & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'vue';
|
|
2
|
+
import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types.js';
|
|
3
|
+
import { InputRadius, InputSize } from '../input/types.js';
|
|
4
|
+
import { PopoverPlacement } from '../popover/types.js';
|
|
5
|
+
export interface ColorInputProps {
|
|
6
|
+
id?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
modelValue: ColorPickerValue;
|
|
9
|
+
format?: ColorPickerFormat;
|
|
10
|
+
size?: InputSize;
|
|
11
|
+
radius?: InputRadius;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
disallowInput?: boolean;
|
|
16
|
+
swatchesOnly?: boolean;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
invalid?: boolean;
|
|
19
|
+
valid?: boolean;
|
|
20
|
+
ariaLabel?: string;
|
|
21
|
+
describedby?: string;
|
|
22
|
+
labelledby?: string;
|
|
23
|
+
inputAttrs?: InputHTMLAttributes;
|
|
24
|
+
validateColor?: boolean;
|
|
25
|
+
invalidColorMessage?: string;
|
|
26
|
+
swatches?: string[];
|
|
27
|
+
swatchesPerRow?: number;
|
|
28
|
+
placement?: PopoverPlacement;
|
|
29
|
+
open?: boolean;
|
|
30
|
+
keepMounted?: boolean;
|
|
31
|
+
popoverId?: string;
|
|
32
|
+
pickerAriaLabel?: string;
|
|
33
|
+
withEyeDropper?: boolean;
|
|
34
|
+
eyeDropperAriaLabel?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ColorPickerValue } from '../color-picker/types.js';
|
|
2
|
+
import { ColorInputProps } from './types.js';
|
|
3
|
+
interface UseColorInputEmitters {
|
|
4
|
+
modelValue: (value: ColorPickerValue) => void;
|
|
5
|
+
open: (value: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function useColorInput(props: Readonly<ColorInputProps>, emit: UseColorInputEmitters): {
|
|
8
|
+
onInputUpdate: (nextValue: ColorPickerValue) => void;
|
|
9
|
+
onPickerUpdate: (nextValue: ColorPickerValue) => void;
|
|
10
|
+
onOpenUpdate: (open: boolean) => void;
|
|
11
|
+
showEyeDropper: import('vue').ComputedRef<boolean>;
|
|
12
|
+
isPickingColor: import('vue').Ref<boolean, boolean>;
|
|
13
|
+
pickScreenColor: (closePicker: () => void) => Promise<void>;
|
|
14
|
+
getInputTriggerAttrs: (slotProps: unknown) => import('vue').InputHTMLAttributes;
|
|
15
|
+
rememberClose: (slotProps: import('../popover/index.js').PopoverSlotProps | import('../popover/index.js').PopoverContentSlotProps) => void;
|
|
16
|
+
onPickerKeydown: (event: KeyboardEvent, popover: import('../popover/index.js').PopoverContentSlotProps) => void;
|
|
17
|
+
onFocusOut: (event: FocusEvent) => void;
|
|
18
|
+
previewColor: import('vue').ComputedRef<string | undefined>;
|
|
19
|
+
hasValidSwatches: import('vue').ComputedRef<boolean>;
|
|
20
|
+
hasInvalidColor: import('vue').ComputedRef<boolean | undefined>;
|
|
21
|
+
isInvalid: import('vue').ComputedRef<boolean | undefined>;
|
|
22
|
+
colorValidationMessage: import('vue').ComputedRef<string | undefined>;
|
|
23
|
+
control: import('../../composables/useControlState.js').ControlState;
|
|
24
|
+
rootClass: import('vue').ComputedRef<string[]>;
|
|
25
|
+
popoverDisabled: import('vue').ComputedRef<boolean>;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types.js';
|
|
2
|
+
interface UseColorInputEyeDropperOptions {
|
|
3
|
+
enabled: () => boolean;
|
|
4
|
+
disabled: () => boolean;
|
|
5
|
+
format: () => ColorPickerFormat;
|
|
6
|
+
update: (value: ColorPickerValue) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useColorInputEyeDropper(options: UseColorInputEyeDropperOptions): {
|
|
9
|
+
showEyeDropper: import('vue').ComputedRef<boolean>;
|
|
10
|
+
isPickingColor: import('vue').Ref<boolean, boolean>;
|
|
11
|
+
pickScreenColor: (closePicker: () => void) => Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'vue';
|
|
2
|
+
import { PopoverContentSlotProps, PopoverSlotProps } from '../popover/types.js';
|
|
3
|
+
import { ColorInputProps } from './types.js';
|
|
4
|
+
declare function onPickerKeydown(event: KeyboardEvent, popover: PopoverContentSlotProps): void;
|
|
5
|
+
export declare function useColorInputPopover(getInputAttrs: () => ColorInputProps['inputAttrs']): {
|
|
6
|
+
getInputTriggerAttrs: (slotProps: unknown) => InputHTMLAttributes;
|
|
7
|
+
rememberClose: (slotProps: PopoverSlotProps | PopoverContentSlotProps) => void;
|
|
8
|
+
onPickerKeydown: typeof onPickerKeydown;
|
|
9
|
+
onFocusOut: (event: FocusEvent) => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColorInputProps } from './types.js';
|
|
2
|
+
export declare function useColorInputValue(props: Readonly<ColorInputProps>, isControlInvalid: () => boolean): {
|
|
3
|
+
previewColor: import('vue').ComputedRef<string | undefined>;
|
|
4
|
+
hasValidSwatches: import('vue').ComputedRef<boolean>;
|
|
5
|
+
hasInvalidColor: import('vue').ComputedRef<boolean | undefined>;
|
|
6
|
+
isInvalid: import('vue').ComputedRef<boolean | undefined>;
|
|
7
|
+
colorValidationMessage: import('vue').ComputedRef<string | undefined>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ColorPickerSaturationProps, ColorPickerSelection } from './types.js';
|
|
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
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<ColorPickerSaturationProps & {
|
|
4
|
+
"onUpdate:modelValue"?: ((value: ColorPickerSelection) => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {};
|
|
11
|
+
emit: (evt: "update:modelValue", value: ColorPickerSelection) => void;
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ColorPickerSliderProps } from './types.js';
|
|
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
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<ColorPickerSliderProps & {
|
|
4
|
+
"onUpdate:value"?: ((value: number) => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {};
|
|
11
|
+
emit: (evt: "update:value", value: number) => void;
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ColorPickerFormat } from './types.js';
|
|
2
|
+
export declare const DEFAULT_HUE = 0;
|
|
3
|
+
export declare const HUE_MAX = 359;
|
|
4
|
+
export declare const KEYBOARD_STEP = 1;
|
|
5
|
+
export declare const KEYBOARD_LARGE_STEP = 10;
|
|
6
|
+
export declare const DEFAULT_OPACITY = 100;
|
|
7
|
+
export interface ColorPickerHsvColor {
|
|
8
|
+
hue: number;
|
|
9
|
+
saturation: number;
|
|
10
|
+
value: number;
|
|
11
|
+
opacity: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
14
|
+
export declare function clampPercent(value: number | undefined): number;
|
|
15
|
+
export declare function normalizeHue(value: number | undefined): number;
|
|
16
|
+
export declare function normalizeHueForColor(value: number | undefined): number;
|
|
17
|
+
export declare function clampHue(value: number): number;
|
|
18
|
+
export declare function clampOpacity(value: number | undefined): number;
|
|
19
|
+
export declare function roundPercent(value: number): number;
|
|
20
|
+
export declare function isColorPickerAlphaFormat(format: ColorPickerFormat): format is "hexa" | "rgba" | "hsla";
|
|
21
|
+
export declare function parseColorPickerValue(value: string): ColorPickerHsvColor | undefined;
|
|
22
|
+
export declare function formatColorPickerValue(color: ColorPickerHsvColor, format: ColorPickerFormat): string;
|
|
23
|
+
export declare function getHsvCssColor(hue: number, saturation: number, value: number): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ColorPickerProps } from './types.js';
|
|
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
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<ColorPickerProps & {
|
|
4
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
emit: (evt: "update:modelValue", value: string) => void;
|
|
14
|
+
}>) => import('vue').VNode & {
|
|
15
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} : {
|
|
22
|
+
[K in keyof T as K]: T[K];
|
|
23
|
+
}) & {};
|