@turquoisehealth/pit-viper 2.0.0-alpha.1

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.
@@ -0,0 +1,179 @@
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent } from 'vue';
4
+ import { PublicProps } from 'vue';
5
+
6
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
7
+ new (): {
8
+ $slots: S;
9
+ };
10
+ };
11
+
12
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+
18
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
23
+
24
+ /**
25
+ * For interfaces and type aliases shared across multiple components.
26
+ */
27
+ declare interface Option_2 {
28
+ value: string;
29
+ label: string;
30
+ }
31
+
32
+ declare interface OptionWithIcon extends Option_2 {
33
+ iconName: string;
34
+ iconPosition: "left" | "right";
35
+ }
36
+
37
+ declare type PopoverCssCustomProperties = Partial<_PopoverCssCustomProperties>;
38
+
39
+ declare interface _PopoverCssCustomProperties {
40
+ width: string;
41
+ height: string;
42
+ position: string;
43
+ }
44
+
45
+ export declare const PvBadge: DefineComponent<PvBadgeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvBadgeProps> & Readonly<{}>, {
46
+ variant: "primary" | "secondary" | "ghost" | "release-alpha" | "release-beta";
47
+ label: string;
48
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
49
+
50
+ declare interface PvBadgeProps {
51
+ label?: string;
52
+ variant?: "primary" | "secondary" | "ghost" | "release-alpha" | "release-beta";
53
+ }
54
+
55
+ export declare const PvButton: __VLS_WithTemplateSlots<DefineComponent< {
56
+ variant?: PvButtonVariant;
57
+ disabled?: boolean;
58
+ size?: "small" | "large";
59
+ inverse?: boolean;
60
+ shadow?: boolean;
61
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
62
+ variant?: PvButtonVariant;
63
+ disabled?: boolean;
64
+ size?: "small" | "large";
65
+ inverse?: boolean;
66
+ shadow?: boolean;
67
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>, {
68
+ default?(_: {}): any;
69
+ }>;
70
+
71
+ declare type PvButtonVariant = (typeof PvButtonVariants)[number];
72
+
73
+ declare const PvButtonVariants: readonly ["primary", "secondary", "tertiary", "primary-outline", "secondary-outline", "ghost", "link", "destructive", "destructive-outline", "icon", "icon-outline", "transformer"];
74
+
75
+ export declare const PvChip: DefineComponent<PvChipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
76
+ "remove-tag": () => any;
77
+ }, string, PublicProps, Readonly<PvChipProps> & Readonly<{
78
+ "onRemove-tag"?: (() => any) | undefined;
79
+ }>, {
80
+ variant: "primary" | "secondary" | "ghost";
81
+ removable: boolean;
82
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
83
+
84
+ declare interface PvChipProps {
85
+ label: string;
86
+ variant?: "primary" | "secondary" | "ghost";
87
+ removable?: boolean;
88
+ }
89
+
90
+ export declare const PvDropdown: __VLS_WithTemplateSlots_2<DefineComponent<PvDropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
91
+ "list-order-updated": (value: string[]) => any;
92
+ "dropdown-open": () => any;
93
+ "dropdown-closed": () => any;
94
+ }, string, PublicProps, Readonly<PvDropdownProps> & Readonly<{
95
+ "onList-order-updated"?: ((value: string[]) => any) | undefined;
96
+ "onDropdown-open"?: (() => any) | undefined;
97
+ "onDropdown-closed"?: (() => any) | undefined;
98
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
99
+ trigger?(_: {}): any;
100
+ default?(_: {}): any;
101
+ }>;
102
+
103
+ declare interface PvDropdownProps {
104
+ defaultOpen?: boolean;
105
+ popoverCssProperties?: PopoverCssCustomProperties;
106
+ alignment?: "top" | "right";
107
+ isList?: boolean;
108
+ isSortable?: boolean;
109
+ icon?: string;
110
+ disabled?: boolean;
111
+ }
112
+
113
+ export declare const PvIcon: DefineComponent< {
114
+ name: string;
115
+ size?: PvIconSize;
116
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
117
+ name: string;
118
+ size?: PvIconSize;
119
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, SVGSVGElement>;
120
+
121
+ declare type PvIconSize = (typeof PvIconSizes)[number];
122
+
123
+ declare const PvIconSizes: readonly [undefined, 10, 20, 24, 32, 64];
124
+
125
+ export declare const PvPopover: __VLS_WithTemplateSlots_3<DefineComponent<PvPopoverProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
126
+ "list-order-updated": (value: string[]) => any;
127
+ }, string, PublicProps, Readonly<PvPopoverProps> & Readonly<{
128
+ "onList-order-updated"?: ((value: string[]) => any) | undefined;
129
+ }>, {
130
+ alignment: "top" | "right";
131
+ cssCustomProperties: Partial<PopoverCssCustomProperties>;
132
+ isList: boolean;
133
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
134
+ popoverList: HTMLUListElement;
135
+ }, HTMLDivElement>, {
136
+ default?(_: {}): any;
137
+ default?(_: {}): any;
138
+ }>;
139
+
140
+ declare interface PvPopoverProps {
141
+ alignment?: "top" | "right";
142
+ cssCustomProperties?: Partial<PopoverCssCustomProperties>;
143
+ isList?: boolean;
144
+ isSortable?: boolean;
145
+ }
146
+
147
+ export declare const PvSegmentedControl: DefineComponent<PvSegmentedControlIconOnlyProps | PvSegmentedControlWithTextLabelProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
148
+ "update:modelValue": (...args: any[]) => void;
149
+ }, string, PublicProps, Readonly<PvSegmentedControlIconOnlyProps | PvSegmentedControlWithTextLabelProps> & Readonly<{
150
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
151
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
152
+
153
+ declare interface PvSegmentedControlBaseProps {
154
+ modelValue: string;
155
+ large?: boolean;
156
+ }
157
+
158
+ declare interface PvSegmentedControlIconOnlyProps extends PvSegmentedControlBaseProps {
159
+ options: OptionWithIcon[];
160
+ iconOnly: true;
161
+ }
162
+
163
+ declare interface PvSegmentedControlWithTextLabelProps extends PvSegmentedControlBaseProps {
164
+ options: Option_2[];
165
+ iconOnly?: false;
166
+ }
167
+
168
+ export declare const PvTabList: DefineComponent<PvTabListBaseProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
169
+ "update:modelValue": (...args: any[]) => void;
170
+ }, string, PublicProps, Readonly<PvTabListBaseProps> & Readonly<{
171
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
172
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
173
+
174
+ declare interface PvTabListBaseProps {
175
+ modelValue: string;
176
+ options: Option_2[];
177
+ }
178
+
179
+ export { }