ropav 0.0.9 → 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 +91 -17
- package/dist/color-picker.css +309 -303
- package/dist/color-picker.js +250 -77
- 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 +16 -4
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/index.d.ts +5 -4
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/accordion/types.d.ts +10 -5
- package/dist/components/accordion/useAccordion.d.ts +1 -1
- package/dist/components/alert/alert.d.ts +3 -3
- package/dist/components/alert/index.d.ts +3 -3
- package/dist/components/alert/index.js +2 -2
- package/dist/components/alert/types.d.ts +5 -2
- package/dist/components/alert/useAlertColor.d.ts +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +1 -1
- package/dist/components/aspect-ratio/index.d.ts +3 -2
- package/dist/components/aspect-ratio/index.js +2 -2
- package/dist/components/aspect-ratio/types.d.ts +4 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/avatar/index.js +2 -2
- package/dist/components/avatar/types.d.ts +5 -2
- package/dist/components/avatar/useAvatarColor.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/badge/index.js +2 -2
- package/dist/components/badge/types.d.ts +5 -2
- package/dist/components/badge/useBadgeColor.d.ts +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/index.d.ts +3 -2
- package/dist/components/button/index.js +2 -2
- package/dist/components/button/types.d.ts +5 -2
- package/dist/components/button/useButtonColor.d.ts +1 -1
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/button-group/index.d.ts +3 -2
- package/dist/components/button-group/index.js +2 -2
- package/dist/components/button-group/types.d.ts +4 -1
- package/dist/components/button-link/button-link.d.ts +1 -1
- package/dist/components/button-link/index.d.ts +3 -2
- package/dist/components/button-link/index.js +2 -2
- package/dist/components/button-link/types.d.ts +5 -2
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/index.d.ts +3 -2
- package/dist/components/card/index.js +2 -2
- package/dist/components/card/types.d.ts +5 -1
- package/dist/components/checkbox/checkbox.d.ts +5 -2
- package/dist/components/checkbox/index.d.ts +3 -2
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/checkbox/types.d.ts +7 -2
- package/dist/components/checkbox/useCheckbox.d.ts +4 -2
- package/dist/components/collapse/collapse.d.ts +2 -2
- package/dist/components/collapse/index.d.ts +4 -3
- package/dist/components/collapse/index.js +2 -2
- package/dist/components/collapse/types.d.ts +9 -2
- package/dist/components/collapse/useCollapse.d.ts +1 -1
- package/dist/components/color-input/color-input.d.ts +1 -1
- package/dist/components/color-input/index.d.ts +3 -2
- package/dist/components/color-input/index.js +2 -2
- package/dist/components/color-input/types.d.ts +8 -4
- package/dist/components/color-input/useColorInput.d.ts +5 -5
- package/dist/components/color-input/useColorInputEyeDropper.d.ts +1 -1
- package/dist/components/color-input/useColorInputPopover.d.ts +2 -2
- package/dist/components/color-input/useColorInputValue.d.ts +1 -1
- package/dist/components/color-picker/color-picker-saturation.d.ts +1 -1
- package/dist/components/color-picker/color-picker-slider.d.ts +1 -1
- package/dist/components/color-picker/color-picker-utils.d.ts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/index.d.ts +3 -3
- package/dist/components/color-picker/index.js +2 -2
- package/dist/components/color-picker/types.d.ts +13 -1
- package/dist/components/color-picker/useColorPickerDrag.d.ts +7 -2
- package/dist/components/color-picker/useColorPickerSwatches.d.ts +1 -1
- package/dist/components/color-picker/useColorPickerValue.d.ts +2 -2
- package/dist/components/color-swatch/color-swatch.d.ts +1 -1
- package/dist/components/color-swatch/index.d.ts +3 -2
- 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-items.d.ts +15 -6
- package/dist/components/dropdown-menu/dropdown-menu-primitives.d.ts +724 -0
- 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 +55 -3
- 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 +21 -12
- package/dist/components/dropdown-menu/useDropdownMenuDisclosure.d.ts +6 -4
- package/dist/components/dropdown-menu/useDropdownMenuDom.d.ts +4 -3
- package/dist/components/dropdown-menu/useDropdownMenuHoverIntent.d.ts +2 -2
- package/dist/components/dropdown-menu/useDropdownMenuInteractions.d.ts +5 -5
- package/dist/components/dropdown-menu/useDropdownMenuNavigation.d.ts +3 -3
- package/dist/components/dropdown-menu/useDropdownMenuPortalPosition.d.ts +19 -0
- package/dist/components/dropdown-menu/useDropdownMenuRenderItems.d.ts +25 -5
- 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 +3 -2
- package/dist/components/field/index.js +2 -2
- package/dist/components/field/types.d.ts +4 -1
- package/dist/components/field/useField.d.ts +1 -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/icon-button.d.ts +1 -1
- package/dist/components/icon-button/index.d.ts +3 -2
- package/dist/components/icon-button/index.js +2 -1
- package/dist/components/icon-button/types.d.ts +5 -2
- package/dist/components/input/index.d.ts +3 -2
- package/dist/components/input/index.js +2 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/types.d.ts +4 -1
- package/dist/components/input/useInput.d.ts +2 -2
- package/dist/components/modal/index.d.ts +3 -2
- package/dist/components/modal/index.js +2 -2
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/types.d.ts +9 -2
- package/dist/components/modal/useModal.d.ts +1 -1
- package/dist/components/number-input/index.d.ts +3 -2
- package/dist/components/number-input/index.js +2 -2
- package/dist/components/number-input/number-input.d.ts +1 -1
- package/dist/components/number-input/types.d.ts +5 -2
- package/dist/components/number-input/useNumberInput.d.ts +2 -2
- package/dist/components/overlay/index.d.ts +3 -2
- package/dist/components/overlay/index.js +2 -1
- package/dist/components/overlay/overlay.d.ts +1 -1
- package/dist/components/overlay/types.d.ts +4 -1
- package/dist/components/overlay/useOverlay.d.ts +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/popover/types.d.ts +21 -11
- package/dist/components/popover/usePopover.d.ts +11 -2
- package/dist/components/progress/index.d.ts +3 -3
- package/dist/components/progress/index.js +2 -2
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/progress/types.d.ts +5 -2
- package/dist/components/progress/useProgress.d.ts +2 -2
- package/dist/components/radio/index.d.ts +4 -3
- package/dist/components/radio/index.js +2 -2
- package/dist/components/radio/radio-group.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +9 -4
- package/dist/components/radio/types.d.ts +21 -4
- package/dist/components/radio/useRadio.d.ts +10 -5
- package/dist/components/select/index.d.ts +3 -2
- package/dist/components/select/index.js +2 -2
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/types.d.ts +4 -1
- package/dist/components/select/useSelect.d.ts +4 -3
- package/dist/components/slider/index.d.ts +4 -4
- package/dist/components/slider/index.js +2 -2
- package/dist/components/slider/range-slider-tooltip.d.ts +37 -0
- package/dist/components/slider/range-slider.d.ts +8 -13
- package/dist/components/slider/slider.d.ts +5 -2
- package/dist/components/slider/sliderCore.d.ts +35 -0
- package/dist/components/slider/types.d.ts +14 -7
- package/dist/components/slider/useRangeSlider.d.ts +5 -7
- package/dist/components/slider/useRangeSliderPointer.d.ts +19 -0
- package/dist/components/slider/useRangeSliderTooltipCollision.d.ts +31 -2
- 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 +3 -2
- package/dist/components/switch/index.js +2 -2
- package/dist/components/switch/switch.d.ts +5 -2
- package/dist/components/switch/types.d.ts +7 -2
- package/dist/components/switch/useSwitch.d.ts +4 -2
- package/dist/components/tabs/index.d.ts +7 -6
- package/dist/components/tabs/index.js +2 -2
- 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/types.d.ts +13 -4
- package/dist/components/tabs/useTabs.d.ts +1 -1
- 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 +3 -2
- package/dist/components/textarea/index.js +2 -2
- package/dist/components/textarea/textarea.d.ts +5 -2
- package/dist/components/textarea/types.d.ts +6 -1
- package/dist/components/textarea/useTextarea.d.ts +3 -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 +110 -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 +3 -2
- package/dist/components/tooltip/index.js +2 -1
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/types.d.ts +14 -13
- package/dist/components/tooltip/useTooltip.d.ts +15 -3
- package/dist/dropdown-menu.css +191 -107
- package/dist/dropdown-menu.js +1729 -107
- 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 +35 -30
- package/dist/index.js +36 -31
- 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 +295 -189
- 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 -904
- package/dist/slider.js +1118 -923
- 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 +77 -29
- package/dist/toast.css +236 -0
- package/dist/toast.js +739 -0
- package/dist/tooltip.css +137 -107
- package/dist/tooltip.js +182 -223
- 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/dist/utils/componentColors.d.ts +60 -0
- package/docs/public-styles-api.md +133 -0
- package/docs/public-tokens.md +545 -0
- package/package.json +44 -12
- package/src/styles/_tokens.scss +33 -28
- package/src/styles/_utilities.scss +11 -9
- package/src/styles/styles-manifest.json +4125 -0
- package/dist/components/slider/useRangeSliderTooltipTransition.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollapseProps } from './types';
|
|
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
|
-
export { default as Collapse } from './collapse';
|
|
2
|
-
export { useCollapse } from './useCollapse';
|
|
3
|
-
export
|
|
1
|
+
export { default as Collapse } from './collapse.js';
|
|
2
|
+
export { useCollapse } from './useCollapse.js';
|
|
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 { 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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorInputProps } from './types';
|
|
1
|
+
import { ColorInputProps } 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<ColorInputProps & {
|
|
4
4
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default as ColorInput } from './color-input';
|
|
2
|
-
export
|
|
1
|
+
export { default as ColorInput } from './color-input.js';
|
|
2
|
+
export { colorInputParts } from './types.js';
|
|
3
|
+
export type { ColorInputPart, ColorInputProps } from './types.js';
|
|
@@ -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 };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'vue';
|
|
2
|
-
import { ColorPickerFormat, ColorPickerValue } from '../color-picker/types';
|
|
3
|
-
import { InputRadius, InputSize } from '../input/types';
|
|
4
|
-
import { PopoverPlacement } from '../popover/types';
|
|
5
|
-
|
|
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
|
+
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;
|
|
@@ -27,6 +30,7 @@ export interface ColorInputProps {
|
|
|
27
30
|
swatchesPerRow?: number;
|
|
28
31
|
placement?: PopoverPlacement;
|
|
29
32
|
open?: boolean;
|
|
33
|
+
keepMounted?: boolean;
|
|
30
34
|
popoverId?: string;
|
|
31
35
|
pickerAriaLabel?: string;
|
|
32
36
|
withEyeDropper?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColorPickerValue } from '../color-picker/types';
|
|
2
|
-
import { ColorInputProps } from './types';
|
|
1
|
+
import { ColorPickerValue } from '../color-picker/types.js';
|
|
2
|
+
import { ColorInputProps } from './types.js';
|
|
3
3
|
interface UseColorInputEmitters {
|
|
4
4
|
modelValue: (value: ColorPickerValue) => void;
|
|
5
5
|
open: (value: boolean) => void;
|
|
@@ -12,15 +12,15 @@ export declare function useColorInput(props: Readonly<ColorInputProps>, emit: Us
|
|
|
12
12
|
isPickingColor: import('vue').Ref<boolean, boolean>;
|
|
13
13
|
pickScreenColor: (closePicker: () => void) => Promise<void>;
|
|
14
14
|
getInputTriggerAttrs: (slotProps: unknown) => import('vue').InputHTMLAttributes;
|
|
15
|
-
rememberClose: (slotProps: import('../popover').PopoverSlotProps | import('../popover').PopoverContentSlotProps) => void;
|
|
16
|
-
onPickerKeydown: (event: KeyboardEvent, popover: import('../popover').PopoverContentSlotProps) => void;
|
|
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
17
|
onFocusOut: (event: FocusEvent) => void;
|
|
18
18
|
previewColor: import('vue').ComputedRef<string | undefined>;
|
|
19
19
|
hasValidSwatches: import('vue').ComputedRef<boolean>;
|
|
20
20
|
hasInvalidColor: import('vue').ComputedRef<boolean | undefined>;
|
|
21
21
|
isInvalid: import('vue').ComputedRef<boolean | undefined>;
|
|
22
22
|
colorValidationMessage: import('vue').ComputedRef<string | undefined>;
|
|
23
|
-
control: import('../../composables/useControlState').ControlState;
|
|
23
|
+
control: import('../../composables/useControlState.js').ControlState;
|
|
24
24
|
rootClass: import('vue').ComputedRef<string[]>;
|
|
25
25
|
popoverDisabled: import('vue').ComputedRef<boolean>;
|
|
26
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'vue';
|
|
2
|
-
import { PopoverContentSlotProps, PopoverSlotProps } from '../popover/types';
|
|
3
|
-
import { ColorInputProps } from './types';
|
|
2
|
+
import { PopoverContentSlotProps, PopoverSlotProps } from '../popover/types.js';
|
|
3
|
+
import { ColorInputProps } from './types.js';
|
|
4
4
|
declare function onPickerKeydown(event: KeyboardEvent, popover: PopoverContentSlotProps): void;
|
|
5
5
|
export declare function useColorInputPopover(getInputAttrs: () => ColorInputProps['inputAttrs']): {
|
|
6
6
|
getInputTriggerAttrs: (slotProps: unknown) => InputHTMLAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorInputProps } from './types';
|
|
1
|
+
import { ColorInputProps } from './types.js';
|
|
2
2
|
export declare function useColorInputValue(props: Readonly<ColorInputProps>, isControlInvalid: () => boolean): {
|
|
3
3
|
previewColor: import('vue').ComputedRef<string | undefined>;
|
|
4
4
|
hasValidSwatches: import('vue').ComputedRef<boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorPickerSaturationProps, ColorPickerSelection } from './types';
|
|
1
|
+
import { ColorPickerSaturationProps, ColorPickerSelection } 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<ColorPickerSaturationProps & {
|
|
4
4
|
"onUpdate:modelValue"?: ((value: ColorPickerSelection) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorPickerSliderProps } from './types';
|
|
1
|
+
import { ColorPickerSliderProps } 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<ColorPickerSliderProps & {
|
|
4
4
|
"onUpdate:value"?: ((value: number) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorPickerProps } from './types';
|
|
1
|
+
import { ColorPickerProps } 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<ColorPickerProps & {
|
|
4
4
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as ColorPicker } from './color-picker';
|
|
2
|
-
export { colorPickerFormats, colorPickerSizes } from './types';
|
|
3
|
-
export type { ColorPickerFormat, ColorPickerProps, ColorPickerSelection, ColorPickerSize, ColorPickerValue, } from './types';
|
|
1
|
+
export { default as ColorPicker } from './color-picker.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,11 +1,16 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
+
export interface ColorPickerPointerCoordinates {
|
|
3
|
+
clientX: number;
|
|
4
|
+
clientY: number;
|
|
5
|
+
}
|
|
2
6
|
interface UseColorPickerDragOptions {
|
|
3
7
|
target: Ref<HTMLElement | null>;
|
|
4
8
|
focusTarget?: Ref<HTMLElement | null>;
|
|
5
9
|
readonly: () => boolean;
|
|
6
|
-
|
|
10
|
+
isGeometryValid: (rect: DOMRect) => boolean;
|
|
11
|
+
updateFromPointer: (pointer: ColorPickerPointerCoordinates, rect: DOMRect) => void;
|
|
7
12
|
}
|
|
8
|
-
export declare function useColorPickerDrag({ target, focusTarget, readonly, updateFromPointer, }: UseColorPickerDragOptions): {
|
|
13
|
+
export declare function useColorPickerDrag({ target, focusTarget, readonly, isGeometryValid, updateFromPointer, }: UseColorPickerDragOptions): {
|
|
9
14
|
onPointerDown: (event: PointerEvent) => void;
|
|
10
15
|
};
|
|
11
16
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { ColorPickerProps } from './types';
|
|
2
|
+
import { ColorPickerProps } from './types.js';
|
|
3
3
|
type ColorPickerSwatchesProps = Readonly<Pick<ColorPickerProps, 'swatches' | 'swatchesPerRow'>>;
|
|
4
4
|
interface UseColorPickerSwatchesOptions {
|
|
5
5
|
isSelected: (swatch: string) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColorPickerHsvColor } from './color-picker-utils';
|
|
2
|
-
import { ColorPickerProps, ColorPickerSelection, ColorPickerValue } from './types';
|
|
1
|
+
import { ColorPickerHsvColor } from './color-picker-utils.js';
|
|
2
|
+
import { ColorPickerProps, ColorPickerSelection, ColorPickerValue } from './types.js';
|
|
3
3
|
type ColorPickerValueProps = Readonly<Pick<ColorPickerProps, 'modelValue' | 'format' | 'readonly'>>;
|
|
4
4
|
export declare function useColorPickerValue(props: ColorPickerValueProps, emitUpdate: (value: ColorPickerValue) => void): {
|
|
5
5
|
selectedColor: import('vue').ComputedRef<ColorPickerHsvColor>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorSwatchProps } from './types';
|
|
1
|
+
import { ColorSwatchProps } 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<ColorSwatchProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default as ColorSwatch } from './color-swatch';
|
|
2
|
-
export
|
|
1
|
+
export { default as ColorSwatch } from './color-swatch.js';
|
|
2
|
+
export { colorSwatchParts } from './types.js';
|
|
3
|
+
export type { ColorSwatchPart, ColorSwatchProps, ColorSwatchSize } from './types.js';
|
|
@@ -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;
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { DropdownMenuItem } from './types.js';
|
|
3
|
+
import { DropdownMenuRenderContext } from './useDropdownMenuRenderItems.js';
|
|
3
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
context: {
|
|
6
|
+
readonly type: PropType<DropdownMenuRenderContext>;
|
|
7
|
+
readonly required: true;
|
|
8
|
+
};
|
|
4
9
|
items: {
|
|
5
|
-
type: PropType<
|
|
10
|
+
type: PropType<DropdownMenuItem[]>;
|
|
6
11
|
required: true;
|
|
7
12
|
};
|
|
8
|
-
}>, () =>
|
|
13
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
9
14
|
[key: string]: any;
|
|
10
|
-
}
|
|
15
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
context: {
|
|
17
|
+
readonly type: PropType<DropdownMenuRenderContext>;
|
|
18
|
+
readonly required: true;
|
|
19
|
+
};
|
|
11
20
|
items: {
|
|
12
|
-
type: PropType<
|
|
21
|
+
type: PropType<DropdownMenuItem[]>;
|
|
13
22
|
required: true;
|
|
14
23
|
};
|
|
15
24
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|