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
package/dist/color-swatch.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import './color-swatch.css';
|
|
2
|
+
import { n as useStylesApi } from "./styles-api.js";
|
|
2
3
|
import { t as parseCssColor } from "./color.js";
|
|
3
4
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
4
|
-
import { child, computed, createSlot, defineVaporComponent, renderEffect, setDynamicProps, setInsertionState, template
|
|
5
|
+
import { child, computed, createSlot, defineVaporComponent, renderEffect, setDynamicProps, setInsertionState, template } from "vue";
|
|
5
6
|
//#region src/components/color-swatch/useColorSwatchColor.ts
|
|
6
7
|
function getColorSwatchForeground(color) {
|
|
7
8
|
const background = parseCssColor(color);
|
|
@@ -24,7 +25,7 @@ function getPerceivedBrightness({ red, green, blue }) {
|
|
|
24
25
|
}
|
|
25
26
|
//#endregion
|
|
26
27
|
//#region src/components/color-swatch/color-swatch.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
27
|
-
var t0 = template("<span data-v-
|
|
28
|
+
var t0 = template("<span data-v-13032098><span data-v-13032098 class=rp-color-swatch__icon aria-hidden=true>", 1);
|
|
28
29
|
//#endregion
|
|
29
30
|
//#region src/components/color-swatch/color-swatch.vue
|
|
30
31
|
var color_swatch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineVaporComponent({
|
|
@@ -34,11 +35,13 @@ var color_swatch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
34
35
|
props: {
|
|
35
36
|
color: {},
|
|
36
37
|
size: {},
|
|
37
|
-
ariaLabel: {}
|
|
38
|
+
ariaLabel: {},
|
|
39
|
+
classNames: {},
|
|
40
|
+
styles: {}
|
|
38
41
|
},
|
|
39
42
|
setup(__props) {
|
|
40
43
|
const props = __props;
|
|
41
|
-
const attrs =
|
|
44
|
+
const { attrs, getRootAttrs } = useStylesApi(props, "root");
|
|
42
45
|
const isHidden = computed(() => attrs["aria-hidden"] === true || attrs["aria-hidden"] === "true");
|
|
43
46
|
const rootRole = computed(() => isHidden.value ? void 0 : "img");
|
|
44
47
|
const rootAriaLabel = computed(() => isHidden.value ? void 0 : props.ariaLabel || `Color swatch ${props.color}`);
|
|
@@ -53,21 +56,22 @@ var color_swatch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
53
56
|
if (props.size !== void 0) style["--_rp-color-swatch-size"] = normalizeSize(props.size);
|
|
54
57
|
return style;
|
|
55
58
|
});
|
|
59
|
+
const rootAttrs = computed(() => getRootAttrs({
|
|
60
|
+
class: "rp-color-swatch",
|
|
61
|
+
style: rootStyle.value,
|
|
62
|
+
role: rootRole.value,
|
|
63
|
+
"aria-label": rootAriaLabel.value
|
|
64
|
+
}));
|
|
56
65
|
function normalizeSize(size) {
|
|
57
66
|
return typeof size === "number" ? `${size}px` : size;
|
|
58
67
|
}
|
|
59
68
|
const n2 = t0();
|
|
60
69
|
const n1 = child(n2);
|
|
61
|
-
renderEffect(() => setDynamicProps(n2, [
|
|
62
|
-
class: "rp-color-swatch",
|
|
63
|
-
style: rootStyle.value,
|
|
64
|
-
role: rootRole.value,
|
|
65
|
-
"aria-label": rootAriaLabel.value
|
|
66
|
-
}]));
|
|
70
|
+
renderEffect(() => setDynamicProps(n2, [rootAttrs.value]));
|
|
67
71
|
setInsertionState(n1, null, 0);
|
|
68
72
|
createSlot("default", null, null, 1);
|
|
69
73
|
return n2;
|
|
70
74
|
}
|
|
71
|
-
}), [["__scopeId", "data-v-
|
|
75
|
+
}), [["__scopeId", "data-v-13032098"]]);
|
|
72
76
|
//#endregion
|
|
73
77
|
export { color_swatch_default as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccordionItemProps } from './types';
|
|
1
|
+
import { AccordionItemProps } 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<AccordionItemProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -7,8 +7,20 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
|
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: {
|
|
9
9
|
trigger?: (props: {
|
|
10
|
-
triggerProps:
|
|
11
|
-
|
|
10
|
+
triggerProps: {
|
|
11
|
+
'data-state': import('./types.js').AccordionState;
|
|
12
|
+
'data-disabled': "" | undefined;
|
|
13
|
+
class: import('vue').HTMLAttributes["class"];
|
|
14
|
+
style?: import('vue').HTMLAttributes["style"];
|
|
15
|
+
id: string;
|
|
16
|
+
'aria-disabled'?: boolean;
|
|
17
|
+
type: "button";
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
'aria-controls': string;
|
|
20
|
+
'aria-expanded': boolean;
|
|
21
|
+
onClick: (event: MouseEvent) => void;
|
|
22
|
+
};
|
|
23
|
+
value: import('./types.js').AccordionItemValue;
|
|
12
24
|
isOpen: boolean;
|
|
13
25
|
disabled: boolean;
|
|
14
26
|
open: () => void;
|
|
@@ -19,7 +31,7 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
|
|
|
19
31
|
title?: (props: {}) => any;
|
|
20
32
|
} & {
|
|
21
33
|
default?: (props: {
|
|
22
|
-
value: import('./types').AccordionItemValue;
|
|
34
|
+
value: import('./types.js').AccordionItemValue;
|
|
23
35
|
isOpen: boolean;
|
|
24
36
|
disabled: boolean;
|
|
25
37
|
open: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccordionModelValue, AccordionProps } from './types';
|
|
1
|
+
import { AccordionModelValue, AccordionProps } 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<AccordionProps & {
|
|
4
4
|
"onUpdate:modelValue"?: ((value: AccordionModelValue) => any) | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { default as Accordion } from './accordion';
|
|
2
|
-
export { default as AccordionItem } from './accordion-item';
|
|
3
|
-
export { useAccordion, useAccordionItem } from './useAccordion';
|
|
4
|
-
export
|
|
1
|
+
export { default as Accordion } from './accordion.js';
|
|
2
|
+
export { default as AccordionItem } from './accordion-item.js';
|
|
3
|
+
export { useAccordion, useAccordionItem } from './useAccordion.js';
|
|
4
|
+
export { accordionItemParts, accordionParts } from './types.js';
|
|
5
|
+
export type { AccordionItemPart, AccordionContentProps, AccordionContext, AccordionItemProps, AccordionItemRootProps, AccordionItemSlotProps, AccordionItemTriggerSlotProps, AccordionItemValue, AccordionModelValue, AccordionOrientation, AccordionPart, AccordionProps, AccordionRootProps, AccordionState, AccordionTriggerProps, UseAccordionItemReturn, UseAccordionReturn, } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as useAccordionItem, n as accordion_default, r as useAccordion, t as accordion_item_default } from "../../accordion.js";
|
|
2
|
-
export { accordion_default as Accordion, accordion_item_default as AccordionItem, useAccordion, useAccordionItem };
|
|
1
|
+
import { a as accordionItemParts, i as useAccordionItem, n as accordion_default, o as accordionParts, r as useAccordion, t as accordion_item_default } from "../../accordion.js";
|
|
2
|
+
export { accordion_default as Accordion, accordion_item_default as AccordionItem, accordionItemParts, accordionParts, useAccordion, useAccordionItem };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
-
import {
|
|
1
|
+
import { ComputedRef, HTMLAttributes, InjectionKey } from 'vue';
|
|
2
|
+
import { StylesApiProps } from '../../styles-api.js';
|
|
3
|
+
import { CollapseContentProps, CollapseContentRole, CollapseTriggerProps } from '../collapse/types.js';
|
|
3
4
|
export type AccordionItemValue = string | number;
|
|
4
5
|
export type AccordionModelValue = AccordionItemValue | AccordionItemValue[] | null;
|
|
5
6
|
export type AccordionOrientation = 'vertical' | 'horizontal';
|
|
6
7
|
export type AccordionState = 'open' | 'closed';
|
|
7
|
-
export
|
|
8
|
+
export declare const accordionParts: readonly ["root"];
|
|
9
|
+
export declare const accordionItemParts: readonly ["root", "trigger", "title", "icon", "content"];
|
|
10
|
+
export type AccordionPart = (typeof accordionParts)[number];
|
|
11
|
+
export type AccordionItemPart = (typeof accordionItemParts)[number];
|
|
12
|
+
export interface AccordionProps extends StylesApiProps<AccordionPart> {
|
|
8
13
|
id?: string;
|
|
9
14
|
modelValue?: AccordionModelValue;
|
|
10
15
|
defaultValue?: AccordionModelValue;
|
|
@@ -17,7 +22,7 @@ export interface AccordionProps {
|
|
|
17
22
|
describedby?: string;
|
|
18
23
|
labelledby?: string;
|
|
19
24
|
}
|
|
20
|
-
export interface AccordionItemProps {
|
|
25
|
+
export interface AccordionItemProps extends StylesApiProps<AccordionItemPart> {
|
|
21
26
|
id?: string;
|
|
22
27
|
value: AccordionItemValue;
|
|
23
28
|
title?: string;
|
|
@@ -46,7 +51,7 @@ export interface AccordionItemRootProps {
|
|
|
46
51
|
}
|
|
47
52
|
export interface AccordionTriggerProps extends CollapseTriggerProps {
|
|
48
53
|
id: string;
|
|
49
|
-
class:
|
|
54
|
+
class: HTMLAttributes['class'];
|
|
50
55
|
'aria-disabled'?: boolean;
|
|
51
56
|
}
|
|
52
57
|
export interface AccordionContentProps extends CollapseContentProps {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AccordionItemProps, AccordionModelValue, AccordionProps, UseAccordionItemReturn, UseAccordionReturn } from './types';
|
|
1
|
+
import { AccordionItemProps, AccordionModelValue, AccordionProps, UseAccordionItemReturn, UseAccordionReturn } from './types.js';
|
|
2
2
|
export declare function useAccordion(props: Readonly<AccordionProps>, emitUpdate: (value: AccordionModelValue) => void): UseAccordionReturn;
|
|
3
3
|
export declare function useAccordionItem(props: Readonly<AccordionItemProps>): UseAccordionItemReturn;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AlertProps } from './types';
|
|
1
|
+
import { AlertProps } 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<AlertProps & {
|
|
4
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
5
4
|
onClose?: (() => any) | undefined;
|
|
5
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
6
6
|
}> & (typeof globalThis extends {
|
|
7
7
|
__VLS_PROPS_FALLBACK: infer P;
|
|
8
8
|
} ? P : {});
|
|
@@ -17,7 +17,7 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
|
|
|
17
17
|
} & {
|
|
18
18
|
action?: (props: {}) => any;
|
|
19
19
|
};
|
|
20
|
-
emit: ((evt: "
|
|
20
|
+
emit: ((evt: "close") => void) & ((evt: "update:open", value: boolean) => void);
|
|
21
21
|
}>) => import('vue').VNode & {
|
|
22
22
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
23
23
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Alert } from './alert';
|
|
2
|
-
export { alertColors, alertRadiuses, alertVariants } from './types';
|
|
3
|
-
export type { AlertColor, AlertProps, AlertRadius, AlertRole, AlertVariant } from './types';
|
|
1
|
+
export { default as Alert } from './alert.js';
|
|
2
|
+
export { alertColors, alertParts, alertRadiuses, alertVariants } from './types.js';
|
|
3
|
+
export type { AlertColor, AlertPart, AlertProps, AlertRadius, AlertRole, AlertVariant, } from './types.js';
|
|
@@ -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
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { AlertColor, AlertVariant } from './types';
|
|
2
|
+
import { AlertColor, AlertVariant } from './types.js';
|
|
3
3
|
export declare function getAlertColorStyle(color: AlertColor | undefined, variant: AlertVariant | undefined, autoContrast: boolean | undefined): CSSProperties | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AspectRatioProps } from './types';
|
|
1
|
+
import { AspectRatioProps } 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<AspectRatioProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default as AspectRatio } from './aspect-ratio';
|
|
2
|
-
export
|
|
1
|
+
export { default as AspectRatio } from './aspect-ratio.js';
|
|
2
|
+
export { aspectRatioParts } from './types.js';
|
|
3
|
+
export type { AspectRatioPart, AspectRatioProps } from './types.js';
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { AvatarProps } from './types';
|
|
1
|
+
import { AvatarProps } 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<AvatarProps & {
|
|
4
4
|
onLoad?: ((event: Event) => any) | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Avatar } from './avatar';
|
|
2
|
-
export { avatarColors, avatarRadiuses, avatarSizes, avatarVariants } from './types';
|
|
3
|
-
export type { AvatarColor, AvatarProps, AvatarRadius, AvatarSize, AvatarVariant } from './types';
|
|
1
|
+
export { default as Avatar } from './avatar.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
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
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
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { AvatarColor, AvatarVariant } from './types';
|
|
2
|
+
import { AvatarColor, AvatarVariant } from './types.js';
|
|
3
3
|
export declare function getAvatarColorStyle(color: AvatarColor | undefined, variant: AvatarVariant | undefined, autoContrast: boolean | undefined): CSSProperties | undefined;
|
|
@@ -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, 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
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { BadgeColor, BadgeVariant } from './types';
|
|
2
|
+
import { BadgeColor, BadgeVariant } from './types.js';
|
|
3
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,3 @@
|
|
|
1
|
-
export { default as Button } from './button';
|
|
2
|
-
export
|
|
1
|
+
export { default as Button } from './button.js';
|
|
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
|
-
import { ComponentColorValue } from '../../utils/componentColors';
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { ButtonColor, ButtonVariant } from './types';
|
|
2
|
+
import { ButtonColor, ButtonVariant } from './types.js';
|
|
3
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,3 @@
|
|
|
1
|
-
export { default as ButtonGroup } from './button-group';
|
|
2
|
-
export
|
|
1
|
+
export { default as ButtonGroup } from './button-group.js';
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { ButtonLinkProps } from './types';
|
|
1
|
+
import { ButtonLinkProps } 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<ButtonLinkProps> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default as ButtonLink } from './button-link';
|
|
2
|
-
export
|
|
1
|
+
export { default as ButtonLink } from './button-link.js';
|
|
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
|
-
import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types';
|
|
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,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,3 @@
|
|
|
1
|
-
export { default as Card } from './card';
|
|
2
|
-
export
|
|
1
|
+
export { default as Card } from './card.js';
|
|
2
|
+
export { cardParts } from './types.js';
|
|
3
|
+
export type { CardLayer, CardPadding, CardPart, CardProps, CardRadius } from './types.js';
|
|
@@ -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
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
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;
|
|
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
|
-
export { default as Checkbox } from './checkbox';
|
|
2
|
-
export
|
|
1
|
+
export { default as Checkbox } from './checkbox.js';
|
|
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 {
|
|
1
|
+
import { InputHTMLAttributes } from 'vue';
|
|
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
|
-
import { CheckboxProps } from './types';
|
|
2
|
+
import { CheckboxProps } from './types.js';
|
|
3
3
|
export declare function useCheckbox(props: Readonly<CheckboxProps>, emitUpdate: (value: boolean) => void): {
|
|
4
|
-
|
|
4
|
+
inputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
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
|
};
|