propro-common-components 0.2.6 → 0.2.8

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,185 @@
1
+ import { Flex as Flex__, StrictProps } from '@plasmicapp/react-web';
2
+ import { BaseSlider } from '@plasmicpkgs/react-aria/skinny/registerSlider';
3
+ import { default as Label } from '../../Label';
4
+ import { BaseSliderOutput } from '@plasmicpkgs/react-aria/skinny/registerSliderOutput';
5
+ import { BaseSliderTrack } from '@plasmicpkgs/react-aria/skinny/registerSliderTrack';
6
+ import { default as Description } from '../../Description';
7
+ /** @jsxRuntime classic */
8
+ /** @jsx createPlasmicElementProxy */
9
+ /** @jsxFrag React.Fragment */
10
+ import * as React from "react";
11
+ export type PlasmicSlider__VariantMembers = {};
12
+ export type PlasmicSlider__VariantsArgs = {};
13
+ export declare const PlasmicSlider__VariantProps: never[];
14
+ export type PlasmicSlider__ArgsType = {
15
+ showLabel?: boolean;
16
+ showOutputText?: boolean;
17
+ showDescription?: boolean;
18
+ step?: number;
19
+ minValue?: number;
20
+ maxValue?: number;
21
+ outputText?: string;
22
+ filled?: boolean;
23
+ initialValue?: number;
24
+ disabled?: boolean;
25
+ onChange?: (val: number) => void;
26
+ ariaLabel?: string;
27
+ label?: React.ReactNode;
28
+ thumbs?: React.ReactNode;
29
+ };
30
+ export declare const PlasmicSlider__ArgProps: (keyof PlasmicSlider__ArgsType)[];
31
+ export type PlasmicSlider__OverridesType = {
32
+ ariaSlider?: Flex__<typeof BaseSlider>;
33
+ label?: Flex__<typeof Label>;
34
+ ariaSliderOutput?: Flex__<typeof BaseSliderOutput>;
35
+ background?: Flex__<"div">;
36
+ ariaSliderTrack?: Flex__<typeof BaseSliderTrack>;
37
+ foreground?: Flex__<"div">;
38
+ description?: Flex__<typeof Description>;
39
+ };
40
+ export interface DefaultSliderProps {
41
+ showLabel?: boolean;
42
+ showOutputText?: boolean;
43
+ showDescription?: boolean;
44
+ step?: number;
45
+ minValue?: number;
46
+ maxValue?: number;
47
+ outputText?: string;
48
+ filled?: boolean;
49
+ initialValue?: number;
50
+ disabled?: boolean;
51
+ onChange?: (val: number) => void;
52
+ ariaLabel?: string;
53
+ label?: React.ReactNode;
54
+ thumbs?: React.ReactNode;
55
+ className?: string;
56
+ }
57
+ declare const PlasmicDescendants: {
58
+ readonly ariaSlider: readonly ["ariaSlider", "label", "ariaSliderOutput", "background", "ariaSliderTrack", "foreground", "description"];
59
+ readonly label: readonly ["label"];
60
+ readonly ariaSliderOutput: readonly ["ariaSliderOutput"];
61
+ readonly background: readonly ["background", "ariaSliderTrack", "foreground"];
62
+ readonly ariaSliderTrack: readonly ["ariaSliderTrack", "foreground"];
63
+ readonly foreground: readonly ["foreground"];
64
+ readonly description: readonly ["description"];
65
+ };
66
+ type NodeNameType = keyof typeof PlasmicDescendants;
67
+ type DescendantsType<T extends NodeNameType> = (typeof PlasmicDescendants)[T][number];
68
+ type ReservedPropsType = "variants" | "args" | "overrides";
69
+ type NodeOverridesType<T extends NodeNameType> = Pick<PlasmicSlider__OverridesType, DescendantsType<T>>;
70
+ export declare const PlasmicSlider: {
71
+ <T extends {
72
+ variants?: PlasmicSlider__VariantsArgs | undefined;
73
+ args?: PlasmicSlider__ArgsType | undefined;
74
+ overrides?: NodeOverridesType<"ariaSlider"> | undefined;
75
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"ariaSlider">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<import('@plasmicpkgs/react-aria/skinny/registerSlider').BaseSliderProps<number | number[]>>, "background" | "description" | keyof PlasmicSlider__ArgsType | "ariaSlider" | "ariaSliderOutput" | "ariaSliderTrack" | "foreground" | ReservedPropsType> & {
76
+ key?: React.Key | undefined;
77
+ }>(props: T & StrictProps<T, {
78
+ variants?: PlasmicSlider__VariantsArgs | undefined;
79
+ args?: PlasmicSlider__ArgsType | undefined;
80
+ overrides?: NodeOverridesType<"ariaSlider"> | undefined;
81
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"ariaSlider">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<import('@plasmicpkgs/react-aria/skinny/registerSlider').BaseSliderProps<number | number[]>>, "background" | "description" | keyof PlasmicSlider__ArgsType | "ariaSlider" | "ariaSliderOutput" | "ariaSliderTrack" | "foreground" | ReservedPropsType> & {
82
+ key?: React.Key | undefined;
83
+ }>): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
84
+ displayName: string;
85
+ } & {
86
+ label: {
87
+ <T_1 extends {
88
+ variants?: PlasmicSlider__VariantsArgs | undefined;
89
+ args?: PlasmicSlider__ArgsType | undefined;
90
+ overrides?: NodeOverridesType<"label"> | undefined;
91
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"label">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<import('../../Label').LabelProps>, keyof PlasmicSlider__ArgsType | ReservedPropsType> & {
92
+ key?: React.Key | undefined;
93
+ }>(props: T_1 & StrictProps<T_1, {
94
+ variants?: PlasmicSlider__VariantsArgs | undefined;
95
+ args?: PlasmicSlider__ArgsType | undefined;
96
+ overrides?: NodeOverridesType<"label"> | undefined;
97
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"label">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<import('../../Label').LabelProps>, keyof PlasmicSlider__ArgsType | ReservedPropsType> & {
98
+ key?: React.Key | undefined;
99
+ }>): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
100
+ displayName: string;
101
+ };
102
+ ariaSliderOutput: {
103
+ <T_2 extends {
104
+ variants?: PlasmicSlider__VariantsArgs | undefined;
105
+ args?: PlasmicSlider__ArgsType | undefined;
106
+ overrides?: NodeOverridesType<"ariaSliderOutput"> | undefined;
107
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"ariaSliderOutput">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<import('@plasmicpkgs/react-aria/skinny/registerSliderOutput').BaseSliderOutputProps>, keyof PlasmicSlider__ArgsType | "ariaSliderOutput" | ReservedPropsType> & {
108
+ key?: React.Key | undefined;
109
+ }>(props: T_2 & StrictProps<T_2, {
110
+ variants?: PlasmicSlider__VariantsArgs | undefined;
111
+ args?: PlasmicSlider__ArgsType | undefined;
112
+ overrides?: NodeOverridesType<"ariaSliderOutput"> | undefined;
113
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"ariaSliderOutput">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<import('@plasmicpkgs/react-aria/skinny/registerSliderOutput').BaseSliderOutputProps>, keyof PlasmicSlider__ArgsType | "ariaSliderOutput" | ReservedPropsType> & {
114
+ key?: React.Key | undefined;
115
+ }>): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
116
+ displayName: string;
117
+ };
118
+ background: {
119
+ <T_3 extends {
120
+ variants?: PlasmicSlider__VariantsArgs | undefined;
121
+ args?: PlasmicSlider__ArgsType | undefined;
122
+ overrides?: NodeOverridesType<"background"> | undefined;
123
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"background">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "background" | keyof PlasmicSlider__ArgsType | "ariaSliderTrack" | "foreground" | ReservedPropsType> & {
124
+ key?: React.Key | undefined;
125
+ }>(props: T_3 & StrictProps<T_3, {
126
+ variants?: PlasmicSlider__VariantsArgs | undefined;
127
+ args?: PlasmicSlider__ArgsType | undefined;
128
+ overrides?: NodeOverridesType<"background"> | undefined;
129
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"background">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "background" | keyof PlasmicSlider__ArgsType | "ariaSliderTrack" | "foreground" | ReservedPropsType> & {
130
+ key?: React.Key | undefined;
131
+ }>): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
132
+ displayName: string;
133
+ };
134
+ ariaSliderTrack: {
135
+ <T_4 extends {
136
+ variants?: PlasmicSlider__VariantsArgs | undefined;
137
+ args?: PlasmicSlider__ArgsType | undefined;
138
+ overrides?: NodeOverridesType<"ariaSliderTrack"> | undefined;
139
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"ariaSliderTrack">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<import('@plasmicpkgs/react-aria/skinny/registerSliderTrack').BaseSliderTrackProps>, keyof PlasmicSlider__ArgsType | "ariaSliderTrack" | "foreground" | ReservedPropsType> & {
140
+ key?: React.Key | undefined;
141
+ }>(props: T_4 & StrictProps<T_4, {
142
+ variants?: PlasmicSlider__VariantsArgs | undefined;
143
+ args?: PlasmicSlider__ArgsType | undefined;
144
+ overrides?: NodeOverridesType<"ariaSliderTrack"> | undefined;
145
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"ariaSliderTrack">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<import('@plasmicpkgs/react-aria/skinny/registerSliderTrack').BaseSliderTrackProps>, keyof PlasmicSlider__ArgsType | "ariaSliderTrack" | "foreground" | ReservedPropsType> & {
146
+ key?: React.Key | undefined;
147
+ }>): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
148
+ displayName: string;
149
+ };
150
+ foreground: {
151
+ <T_5 extends {
152
+ variants?: PlasmicSlider__VariantsArgs | undefined;
153
+ args?: PlasmicSlider__ArgsType | undefined;
154
+ overrides?: NodeOverridesType<"foreground"> | undefined;
155
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"foreground">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, keyof PlasmicSlider__ArgsType | "foreground" | ReservedPropsType> & {
156
+ key?: React.Key | undefined;
157
+ }>(props: T_5 & StrictProps<T_5, {
158
+ variants?: PlasmicSlider__VariantsArgs | undefined;
159
+ args?: PlasmicSlider__ArgsType | undefined;
160
+ overrides?: NodeOverridesType<"foreground"> | undefined;
161
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"foreground">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, keyof PlasmicSlider__ArgsType | "foreground" | ReservedPropsType> & {
162
+ key?: React.Key | undefined;
163
+ }>): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
164
+ displayName: string;
165
+ };
166
+ description: {
167
+ <T_6 extends {
168
+ variants?: PlasmicSlider__VariantsArgs | undefined;
169
+ args?: PlasmicSlider__ArgsType | undefined;
170
+ overrides?: NodeOverridesType<"description"> | undefined;
171
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"description">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<import('../../Description').DescriptionProps>, "description" | keyof PlasmicSlider__ArgsType | ReservedPropsType> & {
172
+ key?: React.Key | undefined;
173
+ }>(props: T_6 & StrictProps<T_6, {
174
+ variants?: PlasmicSlider__VariantsArgs | undefined;
175
+ args?: PlasmicSlider__ArgsType | undefined;
176
+ overrides?: NodeOverridesType<"description"> | undefined;
177
+ } & Omit<PlasmicSlider__VariantsArgs, ReservedPropsType> & Omit<PlasmicSlider__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"description">, keyof PlasmicSlider__ArgsType | ReservedPropsType> & Omit<Partial<import('../../Description').DescriptionProps>, "description" | keyof PlasmicSlider__ArgsType | ReservedPropsType> & {
178
+ key?: React.Key | undefined;
179
+ }>): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
180
+ displayName: string;
181
+ };
182
+ internalVariantProps: never[];
183
+ internalArgProps: (keyof PlasmicSlider__ArgsType)[];
184
+ };
185
+ export default PlasmicSlider;
@@ -0,0 +1,49 @@
1
+ import { Flex as Flex__, StrictProps } from '@plasmicapp/react-web';
2
+ import { BaseSliderThumb } from '@plasmicpkgs/react-aria/skinny/registerSliderThumb';
3
+ /** @jsxRuntime classic */
4
+ /** @jsx createPlasmicElementProxy */
5
+ /** @jsxFrag React.Fragment */
6
+ import * as React from "react";
7
+ export type PlasmicSliderThumb__VariantMembers = {};
8
+ export type PlasmicSliderThumb__VariantsArgs = {};
9
+ export declare const PlasmicSliderThumb__VariantProps: never[];
10
+ export type PlasmicSliderThumb__ArgsType = {
11
+ disabled?: boolean;
12
+ autoFocus?: boolean;
13
+ };
14
+ export declare const PlasmicSliderThumb__ArgProps: (keyof PlasmicSliderThumb__ArgsType)[];
15
+ export type PlasmicSliderThumb__OverridesType = {
16
+ root?: Flex__<typeof BaseSliderThumb>;
17
+ };
18
+ export interface DefaultSliderThumbProps {
19
+ disabled?: boolean;
20
+ autoFocus?: boolean;
21
+ className?: string;
22
+ }
23
+ declare const PlasmicDescendants: {
24
+ readonly root: readonly ["root"];
25
+ };
26
+ type NodeNameType = keyof typeof PlasmicDescendants;
27
+ type DescendantsType<T extends NodeNameType> = (typeof PlasmicDescendants)[T][number];
28
+ type ReservedPropsType = "variants" | "args" | "overrides";
29
+ type NodeOverridesType<T extends NodeNameType> = Pick<PlasmicSliderThumb__OverridesType, DescendantsType<T>>;
30
+ export declare const PlasmicSliderThumb: {
31
+ <T extends {
32
+ variants?: PlasmicSliderThumb__VariantsArgs | undefined;
33
+ args?: PlasmicSliderThumb__ArgsType | undefined;
34
+ overrides?: NodeOverridesType<"root"> | undefined;
35
+ } & Omit<PlasmicSliderThumb__VariantsArgs, ReservedPropsType> & Omit<PlasmicSliderThumb__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"root">, keyof PlasmicSliderThumb__ArgsType | ReservedPropsType> & Omit<Partial<import('@plasmicpkgs/react-aria/skinny/registerSliderThumb').BaseSliderThumbProps>, "root" | keyof PlasmicSliderThumb__ArgsType | ReservedPropsType> & {
36
+ key?: React.Key | undefined;
37
+ }>(props: T & StrictProps<T, {
38
+ variants?: PlasmicSliderThumb__VariantsArgs | undefined;
39
+ args?: PlasmicSliderThumb__ArgsType | undefined;
40
+ overrides?: NodeOverridesType<"root"> | undefined;
41
+ } & Omit<PlasmicSliderThumb__VariantsArgs, ReservedPropsType> & Omit<PlasmicSliderThumb__ArgsType, ReservedPropsType> & Omit<NodeOverridesType<"root">, keyof PlasmicSliderThumb__ArgsType | ReservedPropsType> & Omit<Partial<import('@plasmicpkgs/react-aria/skinny/registerSliderThumb').BaseSliderThumbProps>, "root" | keyof PlasmicSliderThumb__ArgsType | ReservedPropsType> & {
42
+ key?: React.Key | undefined;
43
+ }>): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
44
+ displayName: string;
45
+ } & {
46
+ internalVariantProps: never[];
47
+ internalArgProps: (keyof PlasmicSliderThumb__ArgsType)[];
48
+ };
49
+ export default PlasmicSliderThumb;