@qasa/qds-ui 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1705 -1409
- package/dist/index.js +1 -58
- package/dist/index.js.map +1 -1
- package/package.json +31 -32
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ReactNode, ElementType, ComponentPropsWithoutRef, SVGAttributes, ReactElement, useLayoutEffect } from 'react';
|
|
4
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
import { VariantProps } from 'class-variance-authority';
|
|
6
|
-
import { Checkbox as Checkbox$1, DropdownMenu as DropdownMenu$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Toast as Toast$1 } from 'radix-ui';
|
|
7
|
-
import { LucideIcon } from 'lucide-react';
|
|
1
|
+
'use client';
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
declare function QdsProvider({ children, locale }: QdsProviderProps): react_jsx_runtime.JSX.Element;
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { ComponentPropsWithoutRef, ElementType, ReactElement, ReactNode, SVGAttributes, useLayoutEffect } from "react";
|
|
5
|
+
import { Checkbox as Checkbox$1, DropdownMenu as DropdownMenu$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Toast as Toast$1 } from "radix-ui";
|
|
6
|
+
import { LucideIcon } from "lucide-react";
|
|
7
|
+
import { VariantProps } from "class-variance-authority";
|
|
16
8
|
|
|
9
|
+
//#region src/i18n/locales.d.ts
|
|
10
|
+
type LanguageCode = 'en' | 'sv' | 'fi' | 'fr' | 'nb';
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/qds-provider.d.ts
|
|
13
|
+
type QdsProviderProps = {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
locale: LanguageCode;
|
|
16
|
+
};
|
|
17
|
+
declare function QdsProvider({
|
|
18
|
+
children,
|
|
19
|
+
locale
|
|
20
|
+
}: QdsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/types.d.ts
|
|
17
23
|
type LegitimateAny = any;
|
|
18
24
|
type PartialRecord<K extends string | number | symbol, T> = Partial<Record<K, T>>;
|
|
19
25
|
type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
|
|
20
26
|
type HTMLQdsProps<T extends ElementType> = ComponentPropsWithoutRef<T>;
|
|
21
|
-
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/utils/responsive-classes.d.ts
|
|
22
29
|
declare const BREAKPOINTS: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
readonly base: "";
|
|
31
|
+
readonly sm: "sm:";
|
|
32
|
+
readonly md: "md:";
|
|
33
|
+
readonly lg: "lg:";
|
|
34
|
+
readonly xl: "xl:";
|
|
35
|
+
readonly '2xl': "2xl:";
|
|
29
36
|
};
|
|
30
37
|
type BreakpointKey = keyof typeof BREAKPOINTS;
|
|
31
38
|
type BreakpointsConfig$1<T> = PartialRecord<Exclude<BreakpointKey, 'base'>, T> & {
|
|
32
|
-
|
|
39
|
+
base: T;
|
|
33
40
|
};
|
|
34
41
|
type ResponsiveProp<T> = T | BreakpointsConfig$1<T>;
|
|
35
42
|
/**
|
|
@@ -42,10 +49,10 @@ type ResponsiveProp<T> = T | BreakpointsConfig$1<T>;
|
|
|
42
49
|
* call and emits `@source inline(...)` directives so Tailwind compiles the
|
|
43
50
|
* breakpoint-prefixed variants.
|
|
44
51
|
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
52
|
+
type ResponsiveClassMap<T extends string> = {
|
|
53
|
+
readonly classes: Record<T, string>;
|
|
54
|
+
readonly default: T;
|
|
55
|
+
};
|
|
49
56
|
/**
|
|
50
57
|
* Derives the size literal union from a class map.
|
|
51
58
|
*
|
|
@@ -54,42 +61,36 @@ interface ResponsiveClassMap<T extends string> {
|
|
|
54
61
|
* type ButtonSize = ResponsiveSize<typeof SIZE_CLASSES>
|
|
55
62
|
*/
|
|
56
63
|
type ResponsiveSize<M> = M extends ResponsiveClassMap<infer T> ? T : never;
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/avatar/avatar.d.ts
|
|
66
|
+
declare const SIZE_CLASSES$7: ResponsiveClassMap<"2xl" | "sm" | "md" | "lg" | "xl" | "xs">;
|
|
59
67
|
type AvatarSize = ResponsiveSize<typeof SIZE_CLASSES$7>;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* This file is originally from `@radix-ui/react-polymorphic` before the package
|
|
88
|
-
* was deprecated. The original source for this lived in the URL below.
|
|
89
|
-
*
|
|
90
|
-
* @see https://github.com/radix-ui/primitives/blob/17ffcb7aaa42cbd36b3c210ba86d7d73d218e5be/packages/react/polymorphic/src/polymorphic.ts
|
|
91
|
-
*/
|
|
92
|
-
|
|
68
|
+
type AvatarOptions = {
|
|
69
|
+
/**
|
|
70
|
+
* Source url of the image to display. If not passed
|
|
71
|
+
* it will display a fallback icon.
|
|
72
|
+
*/
|
|
73
|
+
src?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Name of the user. Used to generate the initials
|
|
76
|
+
* if no image is provided, but also for accessibility.
|
|
77
|
+
*/
|
|
78
|
+
name?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Size of the avatar
|
|
81
|
+
* @default 'md'
|
|
82
|
+
*/
|
|
83
|
+
size?: ResponsiveProp<AvatarSize>;
|
|
84
|
+
/**
|
|
85
|
+
* A custom alt text for the image. If not passed it
|
|
86
|
+
* defaults to the `name` prop.
|
|
87
|
+
*/
|
|
88
|
+
imageAlt?: string;
|
|
89
|
+
};
|
|
90
|
+
type AvatarProps = {} & HTMLQdsProps<'span'> & AvatarOptions;
|
|
91
|
+
declare const Avatar: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & AvatarOptions & import("react").RefAttributes<HTMLSpanElement>>;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/utils/polymorphic.d.ts
|
|
93
94
|
/**
|
|
94
95
|
* Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
|
|
95
96
|
*/
|
|
@@ -98,239 +99,398 @@ type OwnProps<E> = E extends ForwardRefComponent<any, infer P> ? P : {};
|
|
|
98
99
|
* Infers the JSX.IntrinsicElement if E is a ForwardRefExoticComponentWithAs
|
|
99
100
|
*/
|
|
100
101
|
type IntrinsicElement<E> = E extends ForwardRefComponent<infer I, any> ? I : never;
|
|
101
|
-
type ForwardRefExoticComponent<E, OwnProps> =
|
|
102
|
-
|
|
102
|
+
type ForwardRefExoticComponent<E, OwnProps> = React$1.ForwardRefExoticComponent<Merge<E extends React$1.ElementType ? React$1.ComponentPropsWithRef<E> : never, OwnProps & {
|
|
103
|
+
as?: E;
|
|
103
104
|
}>>;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
105
|
+
type ForwardRefComponent<IntrinsicElementString, OwnProps = {}> = {
|
|
106
|
+
/**
|
|
107
|
+
* When `as` prop is passed, use this overload.
|
|
108
|
+
* Merges original own props (without DOM props) and the inferred props
|
|
109
|
+
* from `as` element with the own props taking precendence.
|
|
110
|
+
*
|
|
111
|
+
* We explicitly avoid `React.ElementType` and manually narrow the prop types
|
|
112
|
+
* so that events are typed when using JSX.IntrinsicElements.
|
|
113
|
+
*/
|
|
114
|
+
<As = IntrinsicElementString>(props: As extends '' ? {
|
|
115
|
+
as: keyof React$1.JSX.IntrinsicElements;
|
|
116
|
+
} : As extends React$1.ComponentType<infer P> ? Merge<P, OwnProps & {
|
|
117
|
+
as: As;
|
|
118
|
+
}> : As extends keyof React$1.JSX.IntrinsicElements ? Merge<React$1.JSX.IntrinsicElements[As], OwnProps & {
|
|
119
|
+
as: As;
|
|
120
|
+
}> : never): React$1.ReactElement | null;
|
|
121
|
+
} & ForwardRefExoticComponent<IntrinsicElementString, OwnProps>;
|
|
121
122
|
/**
|
|
122
123
|
* Infers the props of a React component
|
|
123
124
|
*/
|
|
124
|
-
type PropsOf<E> = E extends
|
|
125
|
-
|
|
125
|
+
type PropsOf<E> = E extends React$1.ComponentType<infer P> ? P : never;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/components/icon/create-icon.d.ts
|
|
128
|
+
/**
|
|
129
|
+
* This function is heavily inspired by the `createIcon` function from
|
|
130
|
+
* Chakra UI (https://chakra-ui.com/).
|
|
131
|
+
*/
|
|
132
|
+
type CreateIconOptions = {
|
|
133
|
+
/**
|
|
134
|
+
* The `svg`'s `viewBox` attribute
|
|
135
|
+
*/
|
|
136
|
+
viewBox: string;
|
|
137
|
+
/**
|
|
138
|
+
* If the `svg` has a single path, simply copy the path's `d` attribute
|
|
139
|
+
*/
|
|
140
|
+
d?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The `svg` path or group element
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```jsx
|
|
146
|
+
* createIcon({
|
|
147
|
+
* viewBox: '0 0 512 512',
|
|
148
|
+
* path: [
|
|
149
|
+
* <circle cx="50" cy="50" r="50" />,
|
|
150
|
+
* <path d="M10 10" />,
|
|
151
|
+
* ],
|
|
152
|
+
* displayName: 'ExampleIcon',
|
|
153
|
+
* })
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
156
|
+
path?: React.ReactElement | React.ReactElement[];
|
|
157
|
+
/**
|
|
158
|
+
* The display name of the icon. Useful for debugging
|
|
159
|
+
* and internal use.
|
|
160
|
+
*/
|
|
161
|
+
displayName?: string;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Helper function to create an icon component.
|
|
165
|
+
*/
|
|
166
|
+
declare const createIcon: (options: CreateIconOptions) => import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
167
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
168
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
169
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/components/icon/create-lucide-icon.d.ts
|
|
172
|
+
declare const createLucideIcon: (Icon: LucideIcon) => import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
173
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
174
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
175
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/components/icon/icons.d.ts
|
|
178
|
+
declare const AlertCircleIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
179
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
180
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
181
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
182
|
+
declare const AlertTriangleIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
183
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
184
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
185
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
186
|
+
declare const ArrowDownIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
187
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
188
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
189
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
190
|
+
declare const ArrowLeftIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
191
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
192
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
193
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
194
|
+
declare const ArrowRightIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
195
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
196
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
197
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
198
|
+
declare const ArrowUpIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
199
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
200
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
201
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
202
|
+
declare const BellIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
203
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
204
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
205
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
206
|
+
declare const BellOffIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
207
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
208
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
209
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
210
|
+
declare const BookmarkFilledIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
211
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
212
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
213
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
214
|
+
declare const BookmarkIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
215
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
216
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
217
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
218
|
+
declare const CalendarIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
219
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
220
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
221
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
222
|
+
declare const CameraIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
223
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
224
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
225
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
226
|
+
declare const CheckCircleIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
227
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
228
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
229
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
230
|
+
declare const CheckIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
231
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
232
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
233
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
234
|
+
declare const ChevronDownIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
235
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
236
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
237
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
238
|
+
declare const ChevronLeftIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
239
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
240
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
241
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
242
|
+
declare const ChevronRightIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
243
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
244
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
245
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
246
|
+
declare const ChevronUpIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
247
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
248
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
249
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
250
|
+
declare const GlobeIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
251
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
252
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
253
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
254
|
+
declare const HeartFilledIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
255
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
256
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
257
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
258
|
+
declare const HeartIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
259
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
260
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
261
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
262
|
+
declare const HelpCircleIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
263
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
264
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
265
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
266
|
+
declare const HistoryIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
267
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
268
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
269
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
270
|
+
declare const HomeIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
271
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
272
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
273
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
274
|
+
declare const ImageIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
275
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
276
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
277
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
278
|
+
declare const InfoIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
279
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
280
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
281
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
282
|
+
declare const ListIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
283
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
284
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
285
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
286
|
+
declare const ListFilterIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
287
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
288
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
289
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
290
|
+
declare const LogOutIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
291
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
292
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
293
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
294
|
+
declare const MapIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
295
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
296
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
297
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
298
|
+
declare const MapPinIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
299
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
300
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
301
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
302
|
+
declare const MenuIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
303
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
304
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
305
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
306
|
+
declare const MessageCircleIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
307
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
308
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
309
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
310
|
+
declare const MinusIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
311
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
312
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
313
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
314
|
+
declare const MoreHorizontalIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
315
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
316
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
317
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
318
|
+
declare const MoreVerticalIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
319
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
320
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
321
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
322
|
+
declare const PenIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
323
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
324
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
325
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
326
|
+
declare const PlusIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
327
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
328
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
329
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
330
|
+
declare const SearchIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
331
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
332
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
333
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
334
|
+
declare const SettingsIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
335
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
336
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
337
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
338
|
+
declare const ShareIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
339
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
340
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
341
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
342
|
+
declare const SlidersIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
343
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
344
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
345
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
346
|
+
declare const StarFilledIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
347
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
348
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
349
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
350
|
+
declare const StarIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
351
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
352
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
353
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
354
|
+
declare const TrashIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
355
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
356
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
357
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
358
|
+
declare const UserIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
359
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
360
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
361
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
362
|
+
declare const XCircleIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
363
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
364
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
365
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
366
|
+
declare const XIcon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGAttributes<SVGElement>, "height" | "width" | "color" | "onClick" | "fontSize"> & {
|
|
367
|
+
size?: 16 | 12 | 20 | 24 | 32;
|
|
368
|
+
color?: "strong" | "disabled" | "default" | "subtle" | "negative" | "warning" | "positive" | "onBrandPrimary" | "onBrandSecondary" | "onBrandTertiary" | "currentColor";
|
|
369
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
370
|
+
//#endregion
|
|
371
|
+
//#region src/components/icon/icon-shared.d.ts
|
|
126
372
|
declare const ICON_COLOR_CLASSES: {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
373
|
+
readonly default: "text-[color:var(--stroke-default)]";
|
|
374
|
+
readonly strong: "text-[color:var(--stroke-strong)]";
|
|
375
|
+
readonly subtle: "text-[color:var(--stroke-subtle)]";
|
|
376
|
+
readonly disabled: "text-[color:var(--stroke-disabled)]";
|
|
377
|
+
readonly negative: "text-[color:var(--stroke-negative)]";
|
|
378
|
+
readonly warning: "text-[color:var(--stroke-warning)]";
|
|
379
|
+
readonly positive: "text-[color:var(--stroke-positive)]";
|
|
380
|
+
readonly onBrandPrimary: "text-[color:var(--stroke-onBrandPrimary)]";
|
|
381
|
+
readonly onBrandSecondary: "text-[color:var(--stroke-onBrandSecondary)]";
|
|
382
|
+
readonly onBrandTertiary: "text-[color:var(--stroke-onBrandTertiary)]";
|
|
137
383
|
};
|
|
138
384
|
type IconSize = 12 | 16 | 20 | 24 | 32;
|
|
139
385
|
type IconColor = keyof typeof ICON_COLOR_CLASSES | 'currentColor';
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
386
|
+
type IconOptions = {
|
|
387
|
+
/**
|
|
388
|
+
* The size of the icon.
|
|
389
|
+
*
|
|
390
|
+
* @default 24
|
|
391
|
+
*/
|
|
392
|
+
size?: IconSize;
|
|
393
|
+
/**
|
|
394
|
+
* The color of the icon.
|
|
395
|
+
*
|
|
396
|
+
* @default 'default'
|
|
397
|
+
*/
|
|
398
|
+
color?: IconColor;
|
|
399
|
+
};
|
|
154
400
|
type OmittedProps$9 = 'color' | 'onClick' | 'width' | 'height' | 'fontSize';
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
interface CreateIconOptions {
|
|
159
|
-
/**
|
|
160
|
-
* The `svg`'s `viewBox` attribute
|
|
161
|
-
*/
|
|
162
|
-
viewBox: string;
|
|
163
|
-
/**
|
|
164
|
-
* If the `svg` has a single path, simply copy the path's `d` attribute
|
|
165
|
-
*/
|
|
166
|
-
d?: string;
|
|
167
|
-
/**
|
|
168
|
-
* The `svg` path or group element
|
|
169
|
-
*
|
|
170
|
-
* @example
|
|
171
|
-
* ```jsx
|
|
172
|
-
* createIcon({
|
|
173
|
-
* viewBox: '0 0 512 512',
|
|
174
|
-
* path: [
|
|
175
|
-
* <circle cx="50" cy="50" r="50" />,
|
|
176
|
-
* <path d="M10 10" />,
|
|
177
|
-
* ],
|
|
178
|
-
* displayName: 'ExampleIcon',
|
|
179
|
-
* })
|
|
180
|
-
* ```
|
|
181
|
-
*/
|
|
182
|
-
path?: React.ReactElement | React.ReactElement[];
|
|
183
|
-
/**
|
|
184
|
-
* The display name of the icon. Useful for debugging
|
|
185
|
-
* and internal use.
|
|
186
|
-
*/
|
|
187
|
-
displayName?: string;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Helper function to create an icon component.
|
|
191
|
-
*/
|
|
192
|
-
declare const createIcon: (options: CreateIconOptions) => react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
193
|
-
|
|
194
|
-
declare const createLucideIcon: (Icon: LucideIcon) => react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
195
|
-
|
|
196
|
-
declare const AlertCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
197
|
-
declare const AlertTriangleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
198
|
-
declare const ArrowDownIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
199
|
-
declare const ArrowLeftIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
200
|
-
declare const ArrowRightIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
201
|
-
declare const ArrowUpIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
202
|
-
declare const BellIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
203
|
-
declare const BellOffIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
204
|
-
declare const BookmarkFilledIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
205
|
-
declare const BookmarkIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
206
|
-
declare const CalendarIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
207
|
-
declare const CameraIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
208
|
-
declare const CheckCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
209
|
-
declare const CheckIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
210
|
-
declare const ChevronDownIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
211
|
-
declare const ChevronLeftIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
212
|
-
declare const ChevronRightIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
213
|
-
declare const ChevronUpIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
214
|
-
declare const GlobeIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
215
|
-
declare const HeartFilledIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
216
|
-
declare const HeartIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
217
|
-
declare const HelpCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
218
|
-
declare const HistoryIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
219
|
-
declare const HomeIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
220
|
-
declare const ImageIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
221
|
-
declare const InfoIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
222
|
-
declare const ListIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
223
|
-
declare const ListFilterIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
224
|
-
declare const LogOutIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
225
|
-
declare const MapIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
226
|
-
declare const MapPinIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
227
|
-
declare const MenuIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
228
|
-
declare const MessageCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
229
|
-
declare const MinusIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
230
|
-
declare const MoreHorizontalIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
231
|
-
declare const MoreVerticalIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
232
|
-
declare const PenIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
233
|
-
declare const PlusIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
234
|
-
declare const SearchIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
235
|
-
declare const SettingsIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
236
|
-
declare const ShareIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
237
|
-
declare const SlidersIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
238
|
-
declare const StarFilledIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
239
|
-
declare const StarIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
240
|
-
declare const TrashIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
241
|
-
declare const UserIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
242
|
-
declare const XCircleIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
243
|
-
declare const XIcon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
244
|
-
|
|
401
|
+
type IconProps = {} & Omit<SVGAttributes<SVGElement>, OmittedProps$9> & IconOptions;
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/components/button/button.d.ts
|
|
245
404
|
declare const SIZE_CLASSES$6: ResponsiveClassMap<"sm" | "md" | "lg" | "xl" | "xs">;
|
|
246
405
|
declare const buttonVariants: (props?: ({
|
|
247
|
-
|
|
248
|
-
} &
|
|
406
|
+
variant?: "primary" | "secondary" | "tertiary" | "danger" | null | undefined;
|
|
407
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
249
408
|
type ButtonSize = ResponsiveSize<typeof SIZE_CLASSES$6>;
|
|
250
409
|
type ButtonVariant = NonNullable<VariantProps<typeof buttonVariants>['variant']>;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
410
|
+
type ButtonOptions = {
|
|
411
|
+
/**
|
|
412
|
+
* Sets the size of the button
|
|
413
|
+
* @default 'md'
|
|
414
|
+
*/
|
|
415
|
+
size?: ResponsiveProp<ButtonSize>;
|
|
416
|
+
/**
|
|
417
|
+
* Sets the style variant of the button
|
|
418
|
+
* @default 'secondary'
|
|
419
|
+
*/
|
|
420
|
+
variant?: ButtonVariant;
|
|
421
|
+
/**
|
|
422
|
+
* If `true` the button will fill its container
|
|
423
|
+
* @default false
|
|
424
|
+
*/
|
|
425
|
+
isFullWidth?: boolean;
|
|
426
|
+
/**
|
|
427
|
+
* If `true` the button will show a spinner
|
|
428
|
+
* @default false
|
|
429
|
+
*/
|
|
430
|
+
isLoading?: boolean;
|
|
431
|
+
/**
|
|
432
|
+
* If `true` the button will be disabled
|
|
433
|
+
* @default false
|
|
434
|
+
*/
|
|
435
|
+
isDisabled?: boolean;
|
|
436
|
+
/**
|
|
437
|
+
* Icon to display before the button label
|
|
438
|
+
*/
|
|
439
|
+
iconLeft?: ElementType<IconProps>;
|
|
440
|
+
/**
|
|
441
|
+
* Icon to display after the button label
|
|
442
|
+
*/
|
|
443
|
+
iconRight?: ElementType<IconProps>;
|
|
444
|
+
/**
|
|
445
|
+
* The HTML `type` attribute
|
|
446
|
+
* @default 'button'
|
|
447
|
+
*/
|
|
448
|
+
type?: 'button' | 'submit' | 'reset';
|
|
449
|
+
};
|
|
291
450
|
type PolymorphicButton = ForwardRefComponent<'button', ButtonOptions>;
|
|
292
451
|
type ButtonProps = PropsOf<PolymorphicButton>;
|
|
293
452
|
declare const Button: PolymorphicButton;
|
|
294
|
-
|
|
295
|
-
|
|
453
|
+
//#endregion
|
|
454
|
+
//#region src/components/display-text/display-text.d.ts
|
|
455
|
+
declare const SIZE_CLASSES$5: ResponsiveClassMap<"2xl" | "sm" | "md" | "lg" | "xl" | "xs" | "3xl" | "2xs">;
|
|
296
456
|
declare const TEXT_ALIGN_CLASSES$2: {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
457
|
+
readonly left: "text-left";
|
|
458
|
+
readonly center: "text-center";
|
|
459
|
+
readonly right: "text-right";
|
|
300
460
|
};
|
|
301
461
|
declare const TEXT_WRAP_CLASSES: {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
462
|
+
readonly pretty: "text-pretty";
|
|
463
|
+
readonly balance: "text-balance";
|
|
464
|
+
readonly wrap: "text-wrap";
|
|
465
|
+
readonly nowrap: "text-nowrap";
|
|
466
|
+
readonly stable: "[text-wrap:stable]";
|
|
307
467
|
};
|
|
308
468
|
type DisplaySize = ResponsiveSize<typeof SIZE_CLASSES$5>;
|
|
309
469
|
type DisplayTextAlign = keyof typeof TEXT_ALIGN_CLASSES$2;
|
|
310
470
|
type DisplayTextWrap = keyof typeof TEXT_WRAP_CLASSES;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
471
|
+
type DisplayTextOptions = {
|
|
472
|
+
/**
|
|
473
|
+
* Sets the visual size of the display text.
|
|
474
|
+
* To override the rendered tag, use the `as` prop.
|
|
475
|
+
*
|
|
476
|
+
* @default 'md'
|
|
477
|
+
*/
|
|
478
|
+
size?: ResponsiveProp<DisplaySize>;
|
|
479
|
+
/**
|
|
480
|
+
* Sets the text alignment
|
|
481
|
+
*
|
|
482
|
+
* @default 'left'
|
|
483
|
+
*/
|
|
484
|
+
textAlign?: DisplayTextAlign;
|
|
485
|
+
/**
|
|
486
|
+
* Sets the text wrapping
|
|
487
|
+
*
|
|
488
|
+
* See [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap)
|
|
489
|
+
*
|
|
490
|
+
* @default 'pretty'
|
|
491
|
+
*/
|
|
492
|
+
textWrap?: DisplayTextWrap;
|
|
493
|
+
};
|
|
334
494
|
type DisplayTextComponent = ForwardRefComponent<'h2', DisplayTextOptions>;
|
|
335
495
|
/**
|
|
336
496
|
* @deprecated
|
|
@@ -340,255 +500,297 @@ type DisplayTextProps = PropsOf<DisplayTextComponent>;
|
|
|
340
500
|
* @deprecated Use Tailwind CSS instead.
|
|
341
501
|
*/
|
|
342
502
|
declare const DisplayText: DisplayTextComponent;
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
503
|
+
//#endregion
|
|
504
|
+
//#region src/components/checkbox/checkbox.d.ts
|
|
505
|
+
type CheckboxOptions = {
|
|
506
|
+
/**
|
|
507
|
+
* The label for the checkbox. Accepts a string, or a React component for rendering links within the label.
|
|
508
|
+
*
|
|
509
|
+
* @example
|
|
510
|
+
* ```jsx
|
|
511
|
+
* <Checkbox label="I agree to the terms and conditions" />
|
|
512
|
+
* ```
|
|
513
|
+
*
|
|
514
|
+
* @example
|
|
515
|
+
* ```jsx
|
|
516
|
+
* <Checkbox
|
|
517
|
+
* label={
|
|
518
|
+
* <>
|
|
519
|
+
* I agree to <Link href="/terms">the terms and conditions</Link>
|
|
520
|
+
* </>
|
|
521
|
+
* }
|
|
522
|
+
* />
|
|
523
|
+
* ```
|
|
524
|
+
*/
|
|
525
|
+
label: string | ReactElement<unknown>;
|
|
526
|
+
/**
|
|
527
|
+
* Text that provides additional guidance to the user
|
|
528
|
+
*/
|
|
529
|
+
helperText?: string;
|
|
530
|
+
/**
|
|
531
|
+
* The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.
|
|
532
|
+
*/
|
|
533
|
+
isDefaultChecked?: boolean;
|
|
534
|
+
/**
|
|
535
|
+
* The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.
|
|
536
|
+
*/
|
|
537
|
+
defaultChecked?: boolean;
|
|
538
|
+
/**
|
|
539
|
+
* The controlled checked state of the checkbox. Must be used in conjunction with `onCheckedChange`.
|
|
540
|
+
*/
|
|
541
|
+
isChecked?: boolean;
|
|
542
|
+
/**
|
|
543
|
+
* The controlled checked state of the checkbox. Must be used in conjunction with `onCheckedChange`.
|
|
544
|
+
*/
|
|
545
|
+
checked?: boolean;
|
|
546
|
+
/**
|
|
547
|
+
* Event handler called when the checked state of the checkbox changes.
|
|
548
|
+
*/
|
|
549
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
550
|
+
/**
|
|
551
|
+
* If `true` the checkbox will render in its invalid state.
|
|
552
|
+
* @default false
|
|
553
|
+
*/
|
|
554
|
+
isInvalid?: boolean;
|
|
555
|
+
/**
|
|
556
|
+
* The error message to display if `isInvalid` is `true`
|
|
557
|
+
*/
|
|
558
|
+
errorMessage?: string;
|
|
559
|
+
/**
|
|
560
|
+
* If `true` it prevents the user from interacting with the checkbox.
|
|
561
|
+
* @default false
|
|
562
|
+
*/
|
|
563
|
+
isDisabled?: boolean;
|
|
564
|
+
/**
|
|
565
|
+
* If `true` the user must check the checkbox before the owning form can be submitted.
|
|
566
|
+
* @default false
|
|
567
|
+
*/
|
|
568
|
+
isRequired?: boolean;
|
|
569
|
+
/**
|
|
570
|
+
* The name of the checkbox. Submitted with its owning form as part of a name/value pair.
|
|
571
|
+
*/
|
|
572
|
+
name?: string;
|
|
573
|
+
/**
|
|
574
|
+
* The value given as data when submitted with a `name`.
|
|
575
|
+
*/
|
|
576
|
+
value?: string;
|
|
577
|
+
};
|
|
417
578
|
type CheckboxProps = Omit<Checkbox$1.CheckboxProps, 'asChild' | 'children' | 'checked' | 'defaultChecked' | keyof CheckboxOptions> & CheckboxOptions;
|
|
418
|
-
declare const Checkbox: react.ForwardRefExoticComponent<Omit<Checkbox$1.CheckboxProps, "children" | "asChild" | keyof CheckboxOptions> & CheckboxOptions & react.RefAttributes<HTMLButtonElement>>;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}
|
|
430
|
-
declare const Divider: react.ForwardRefExoticComponent<
|
|
431
|
-
|
|
579
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Checkbox$1.CheckboxProps, "children" | "asChild" | keyof CheckboxOptions> & CheckboxOptions & import("react").RefAttributes<HTMLButtonElement>>;
|
|
580
|
+
//#endregion
|
|
581
|
+
//#region src/components/divider/divider.d.ts
|
|
582
|
+
type DividerOptions = {
|
|
583
|
+
/**
|
|
584
|
+
* The orientation of the divider.
|
|
585
|
+
*
|
|
586
|
+
* @default 'horizontal'
|
|
587
|
+
*/
|
|
588
|
+
orientation?: 'horizontal' | 'vertical';
|
|
589
|
+
};
|
|
590
|
+
type DividerProps = {} & HTMLQdsProps<'span'> & DividerOptions;
|
|
591
|
+
declare const Divider: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & DividerOptions & import("react").RefAttributes<HTMLSpanElement>>;
|
|
592
|
+
//#endregion
|
|
593
|
+
//#region src/components/dropdown-menu/dropdown-menu-content.d.ts
|
|
432
594
|
type PrimitiveContentProps = DropdownMenu$1.DropdownMenuContentProps;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
595
|
+
type DropdownMenuContentOptions = {
|
|
596
|
+
/**
|
|
597
|
+
* Event handler called when focus moves to the trigger after closing.
|
|
598
|
+
* It can be prevented by calling `event.preventDefault`.
|
|
599
|
+
*/
|
|
600
|
+
onCloseAutofocus?: PrimitiveContentProps['onCloseAutoFocus'];
|
|
601
|
+
/**
|
|
602
|
+
* Event handler called when the escape key is down.
|
|
603
|
+
* It can be prevented by calling `event.preventDefault`.
|
|
604
|
+
*/
|
|
605
|
+
onEscapeKeyDown?: PrimitiveContentProps['onEscapeKeyDown'];
|
|
606
|
+
/**
|
|
607
|
+
* Event handler called when a pointer event occurs outside the bounds of the component.
|
|
608
|
+
* It can be prevented by calling `event.preventDefault`.
|
|
609
|
+
*/
|
|
610
|
+
onPointerDownOutside?: PrimitiveContentProps['onPointerDownOutside'];
|
|
611
|
+
/**
|
|
612
|
+
* Event handler called when focus moves outside the bounds of the component.
|
|
613
|
+
* It can be prevented by calling `event.preventDefault`.
|
|
614
|
+
*/
|
|
615
|
+
onFocusOutside?: PrimitiveContentProps['onFocusOutside'];
|
|
616
|
+
/**
|
|
617
|
+
* Event handler called when an interaction (pointer or focus event) happens outside the bounds of the component.
|
|
618
|
+
* It can be prevented by calling `event.preventDefault`.
|
|
619
|
+
*/
|
|
620
|
+
onInteractOutside?: PrimitiveContentProps['onInteractOutside'];
|
|
621
|
+
/**
|
|
622
|
+
* The preferred side of the trigger to render against when open.
|
|
623
|
+
* Will be reversed when collisions occur and `avoidCollisions` is enabled.
|
|
624
|
+
*
|
|
625
|
+
* @default "bottom"
|
|
626
|
+
*/
|
|
627
|
+
side?: PrimitiveContentProps['side'];
|
|
628
|
+
/**
|
|
629
|
+
* The distance in pixels from the trigger.
|
|
630
|
+
*
|
|
631
|
+
* @default 8
|
|
632
|
+
*/
|
|
633
|
+
sideOffset?: PrimitiveContentProps['sideOffset'];
|
|
634
|
+
/**
|
|
635
|
+
* The preferred alignment against the trigger. May change when collisions occur.
|
|
636
|
+
*
|
|
637
|
+
* @default "center"
|
|
638
|
+
*/
|
|
639
|
+
align?: PrimitiveContentProps['align'];
|
|
640
|
+
/**
|
|
641
|
+
* The element used as the collision boundary.
|
|
642
|
+
* By default this is the viewport, though you can provide additional element(s) to be included in this check.
|
|
643
|
+
*
|
|
644
|
+
* @default []
|
|
645
|
+
*/
|
|
646
|
+
collisionBoundary?: PrimitiveContentProps['collisionBoundary'];
|
|
647
|
+
/**
|
|
648
|
+
* Whether to hide the content when the trigger becomes fully occluded.
|
|
649
|
+
*
|
|
650
|
+
* @default false
|
|
651
|
+
*/
|
|
652
|
+
hideWhenDetached?: PrimitiveContentProps['hideWhenDetached'];
|
|
653
|
+
};
|
|
654
|
+
type DropdownMenuContentProps = {} & HTMLQdsProps<'div'> & DropdownMenuContentOptions;
|
|
655
|
+
//#endregion
|
|
656
|
+
//#region src/components/dropdown-menu/dropdown-menu-divider.d.ts
|
|
495
657
|
type DropdownMenuDividerProps = HTMLQdsProps<'div'>;
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
}
|
|
520
|
-
|
|
658
|
+
//#endregion
|
|
659
|
+
//#region src/components/dropdown-menu/dropdown-menu-item.d.ts
|
|
660
|
+
type DropdownMenuItemOptions = {
|
|
661
|
+
/**
|
|
662
|
+
* If `true`, the item will be disabled
|
|
663
|
+
*/
|
|
664
|
+
isDisabled?: boolean;
|
|
665
|
+
/**
|
|
666
|
+
* Event handler called when the user selects an item (via mouse or keyboard).
|
|
667
|
+
* Calling `event.preventDefault` in this handler will prevent the dropdown from closing when selecting that item.
|
|
668
|
+
*/
|
|
669
|
+
onSelect?: (event: Event) => void;
|
|
670
|
+
/**
|
|
671
|
+
* Optional text used for typeahead purposes.
|
|
672
|
+
* By default the typeahead behavior will use the `.textContent` of the item.
|
|
673
|
+
* Use this when the content is complex, or you have non-textual content inside.
|
|
674
|
+
*/
|
|
675
|
+
textValue?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Optional icon to display on the left side of the item content.
|
|
678
|
+
*/
|
|
679
|
+
icon?: ElementType<IconProps>;
|
|
680
|
+
};
|
|
681
|
+
type DropdownMenuItemProps = {} & Omit<DropdownMenu$1.DropdownMenuItemProps, 'asChild' | keyof DropdownMenuItemOptions> & DropdownMenuItemOptions;
|
|
682
|
+
//#endregion
|
|
683
|
+
//#region src/components/dropdown-menu/dropdown-menu-trigger.d.ts
|
|
521
684
|
type DropdownTriggerComponent = ForwardRefComponent<'button'>;
|
|
522
685
|
type DropdownMenuTriggerProps = PropsOf<DropdownTriggerComponent>;
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
686
|
+
//#endregion
|
|
687
|
+
//#region src/components/dropdown-menu/dropdown-menu.d.ts
|
|
688
|
+
type DropdownMenuRootProps = {
|
|
689
|
+
children: ReactNode;
|
|
690
|
+
/**
|
|
691
|
+
* If `true` the dropdown menu will be open
|
|
692
|
+
*/
|
|
693
|
+
isOpen?: boolean;
|
|
694
|
+
/**
|
|
695
|
+
* The open state of the submenu when it is initially rendered.
|
|
696
|
+
* Use when you do not need to control its open state.
|
|
697
|
+
*/
|
|
698
|
+
defaultOpen?: boolean;
|
|
699
|
+
/**
|
|
700
|
+
* Callback invoked open state changes
|
|
701
|
+
*/
|
|
702
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
703
|
+
};
|
|
704
|
+
declare function DropdownMenuRoot(props: DropdownMenuRootProps): import("react/jsx-runtime").JSX.Element;
|
|
541
705
|
declare const DropdownMenu: typeof DropdownMenuRoot & {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
706
|
+
Trigger: (<As = "button">(props: As extends "" ? {
|
|
707
|
+
as: keyof React.JSX.IntrinsicElements;
|
|
708
|
+
} : As extends import("react").ComponentType<infer P> ? Merge<P, {
|
|
709
|
+
as: As;
|
|
710
|
+
}> : As extends keyof import("react").JSX.IntrinsicElements ? Merge<import("react").JSX.IntrinsicElements[As], {
|
|
711
|
+
as: As;
|
|
712
|
+
}> : never) => React.ReactElement | null) & import("react").ForwardRefExoticComponent<Merge<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
713
|
+
as?: "button" | undefined;
|
|
714
|
+
}>>;
|
|
715
|
+
Content: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
716
|
+
onCloseAutofocus?: ((event: Event) => void) | undefined;
|
|
717
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
|
|
718
|
+
onPointerDownOutside?: ((event: CustomEvent<{
|
|
719
|
+
originalEvent: PointerEvent;
|
|
720
|
+
}>) => void) | undefined;
|
|
721
|
+
onFocusOutside?: ((event: CustomEvent<{
|
|
722
|
+
originalEvent: FocusEvent;
|
|
723
|
+
}>) => void) | undefined;
|
|
724
|
+
onInteractOutside?: ((event: CustomEvent<{
|
|
725
|
+
originalEvent: PointerEvent;
|
|
726
|
+
}> | CustomEvent<{
|
|
727
|
+
originalEvent: FocusEvent;
|
|
728
|
+
}>) => void) | undefined;
|
|
729
|
+
side?: "top" | "right" | "bottom" | "left" | undefined;
|
|
730
|
+
sideOffset?: number | undefined;
|
|
731
|
+
align?: "center" | "end" | "start" | undefined;
|
|
732
|
+
collisionBoundary?: (Element | null) | (Element | null)[] | undefined;
|
|
733
|
+
hideWhenDetached?: boolean | undefined;
|
|
734
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
735
|
+
Item: import("react").ForwardRefExoticComponent<Omit<DropdownMenu$1.DropdownMenuItemProps, "asChild" | keyof {
|
|
736
|
+
isDisabled?: boolean;
|
|
737
|
+
onSelect?: (event: Event) => void;
|
|
738
|
+
textValue?: string;
|
|
739
|
+
icon?: import("react").ElementType<IconProps>;
|
|
740
|
+
}> & {
|
|
741
|
+
isDisabled?: boolean;
|
|
742
|
+
onSelect?: (event: Event) => void;
|
|
743
|
+
textValue?: string;
|
|
744
|
+
icon?: import("react").ElementType<IconProps>;
|
|
745
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
746
|
+
Divider: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
546
747
|
};
|
|
547
|
-
|
|
748
|
+
//#endregion
|
|
749
|
+
//#region src/components/heading/heading.d.ts
|
|
548
750
|
declare const SIZE_CLASSES$4: ResponsiveClassMap<"sm" | "md" | "lg" | "xs" | "2xs" | "3xs">;
|
|
549
751
|
declare const COLOR_CLASSES$2: {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
752
|
+
readonly default: "text-default";
|
|
753
|
+
readonly strong: "text-strong";
|
|
754
|
+
readonly subtle: "text-subtle";
|
|
755
|
+
readonly disabled: "text-disabled";
|
|
756
|
+
readonly negative: "text-negative";
|
|
757
|
+
readonly warning: "text-warning";
|
|
758
|
+
readonly positive: "text-positive";
|
|
759
|
+
readonly onBrandPrimary: "text-onBrandPrimary";
|
|
760
|
+
readonly onBrandSecondary: "text-onBrandSecondary";
|
|
761
|
+
readonly onBrandTertiary: "text-onBrandTertiary";
|
|
560
762
|
};
|
|
561
763
|
declare const TEXT_ALIGN_CLASSES$1: {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
764
|
+
readonly left: "text-left";
|
|
765
|
+
readonly center: "text-center";
|
|
766
|
+
readonly right: "text-right";
|
|
565
767
|
};
|
|
566
768
|
type HeadingSize = ResponsiveSize<typeof SIZE_CLASSES$4>;
|
|
567
769
|
type HeadingColor = keyof typeof COLOR_CLASSES$2;
|
|
568
770
|
type HeadingTextAlign = keyof typeof TEXT_ALIGN_CLASSES$1;
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
771
|
+
type HeadingOptions = {
|
|
772
|
+
/**
|
|
773
|
+
* Sets the visual size of the heading.
|
|
774
|
+
* To override the rendered tag, use the `as` prop.
|
|
775
|
+
*
|
|
776
|
+
* @default 'md'
|
|
777
|
+
*/
|
|
778
|
+
size?: ResponsiveProp<HeadingSize>;
|
|
779
|
+
/**
|
|
780
|
+
* Sets the color of the heading
|
|
781
|
+
* @default 'default'
|
|
782
|
+
*/
|
|
783
|
+
color?: HeadingColor;
|
|
784
|
+
/**
|
|
785
|
+
* Truncates the heading after a specific number of lines
|
|
786
|
+
*/
|
|
787
|
+
numberOfLines?: number;
|
|
788
|
+
/**
|
|
789
|
+
* Alignment of the heading
|
|
790
|
+
* @default 'left'
|
|
791
|
+
*/
|
|
792
|
+
textAlign?: HeadingTextAlign;
|
|
793
|
+
};
|
|
592
794
|
type HeadingComponent = ForwardRefComponent<'h2', HeadingOptions>;
|
|
593
795
|
/**
|
|
594
796
|
* @deprecated
|
|
@@ -598,185 +800,213 @@ type HeadingProps = PropsOf<HeadingComponent>;
|
|
|
598
800
|
* @deprecated Use Tailwind CSS instead.
|
|
599
801
|
*/
|
|
600
802
|
declare const Heading: HeadingComponent;
|
|
601
|
-
|
|
803
|
+
//#endregion
|
|
804
|
+
//#region src/components/hint-box/hint-box.d.ts
|
|
602
805
|
type HintBoxTitleProps = HTMLQdsProps<'p'>;
|
|
603
806
|
type HintBoxProps = HTMLQdsProps<'aside'>;
|
|
604
|
-
declare const HintBox: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & react.RefAttributes<HTMLElement>> & {
|
|
605
|
-
|
|
807
|
+
declare const HintBox: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>> & {
|
|
808
|
+
Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
606
809
|
};
|
|
607
|
-
|
|
810
|
+
//#endregion
|
|
811
|
+
//#region src/components/icon-button/icon-button.d.ts
|
|
608
812
|
declare const SIZE_CLASSES$3: ResponsiveClassMap<"sm" | "md" | "xs">;
|
|
609
813
|
declare const iconButtonVariants: (props?: ({
|
|
610
|
-
|
|
611
|
-
} &
|
|
814
|
+
variant?: "primary" | "secondary" | "tertiary" | "danger" | "ghost" | "white" | null | undefined;
|
|
815
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
612
816
|
type IconButtonSize = ResponsiveSize<typeof SIZE_CLASSES$3>;
|
|
613
817
|
type IconButtonVariant = NonNullable<VariantProps<typeof iconButtonVariants>['variant']>;
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
}
|
|
818
|
+
type IconButtonOptions = {
|
|
819
|
+
icon: ElementType<IconProps>;
|
|
820
|
+
/**
|
|
821
|
+
* A visually hidden label read by screen readers.
|
|
822
|
+
*/
|
|
823
|
+
label: string;
|
|
824
|
+
/**
|
|
825
|
+
* Defines the size of the button
|
|
826
|
+
*/
|
|
827
|
+
size?: ResponsiveProp<IconButtonSize>;
|
|
828
|
+
/**
|
|
829
|
+
* Sets the style variant of the button
|
|
830
|
+
*/
|
|
831
|
+
variant?: IconButtonVariant;
|
|
832
|
+
/**
|
|
833
|
+
* If `true` the button will be disabled
|
|
834
|
+
*/
|
|
835
|
+
isDisabled?: boolean;
|
|
836
|
+
};
|
|
633
837
|
type IconButtonComponent = ForwardRefComponent<'button', IconButtonOptions>;
|
|
634
838
|
type IconButtonProps = PropsOf<IconButtonComponent>;
|
|
635
839
|
declare const IconButton: IconButtonComponent;
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
840
|
+
//#endregion
|
|
841
|
+
//#region src/components/primitives/input-base/input-base.d.ts
|
|
842
|
+
type InputBaseOptions = {
|
|
843
|
+
/**
|
|
844
|
+
* If `true`, the input will be invalid
|
|
845
|
+
*/
|
|
846
|
+
isInvalid?: boolean;
|
|
847
|
+
/**
|
|
848
|
+
* If `true`, the input will be disabled
|
|
849
|
+
*/
|
|
850
|
+
isDisabled?: boolean;
|
|
851
|
+
/**
|
|
852
|
+
* If `true` the input will be required
|
|
853
|
+
*/
|
|
854
|
+
isRequired?: boolean;
|
|
855
|
+
};
|
|
651
856
|
type OmittedProps$8 = 'children' | 'readOnly' | 'size' | 'disabled' | 'required';
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
857
|
+
type InputBaseProps = {} & Omit<HTMLQdsProps<'input'>, OmittedProps$8> & InputBaseOptions;
|
|
858
|
+
declare const InputBase: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, OmittedProps$8> & InputBaseOptions & import("react").RefAttributes<HTMLInputElement>>;
|
|
859
|
+
//#endregion
|
|
860
|
+
//#region src/components/text-field/text-field.d.ts
|
|
861
|
+
type TextFieldOptions = {
|
|
862
|
+
/**
|
|
863
|
+
* The label for the input
|
|
864
|
+
*/
|
|
865
|
+
label: string;
|
|
866
|
+
/**
|
|
867
|
+
* The error message to display if `isInvalid` is `true`
|
|
868
|
+
*/
|
|
869
|
+
errorMessage?: string;
|
|
870
|
+
/**
|
|
871
|
+
* If `true`, the input will display an optional indicator.
|
|
872
|
+
* If the `isRequired` prop is also `true`, this prop will be ignored.
|
|
873
|
+
*/
|
|
874
|
+
isOptional?: boolean;
|
|
875
|
+
/**
|
|
876
|
+
* Text that provides additional guidance to the user
|
|
877
|
+
*/
|
|
878
|
+
helperText?: string;
|
|
879
|
+
/**
|
|
880
|
+
* Suffixed text to display after the input.
|
|
881
|
+
* This is useful for e.g. displaying units of measurement.
|
|
882
|
+
*/
|
|
883
|
+
suffix?: string;
|
|
884
|
+
} & InputBaseOptions;
|
|
680
885
|
type OmittedProps$7 = 'children' | 'readOnly' | 'size';
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
886
|
+
type TextFieldProps = {} & Omit<HTMLQdsProps<'input'>, OmittedProps$7> & TextFieldOptions;
|
|
887
|
+
declare const TextField: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, OmittedProps$7> & {
|
|
888
|
+
/**
|
|
889
|
+
* The label for the input
|
|
890
|
+
*/
|
|
891
|
+
label: string;
|
|
892
|
+
/**
|
|
893
|
+
* The error message to display if `isInvalid` is `true`
|
|
894
|
+
*/
|
|
895
|
+
errorMessage?: string;
|
|
896
|
+
/**
|
|
897
|
+
* If `true`, the input will display an optional indicator.
|
|
898
|
+
* If the `isRequired` prop is also `true`, this prop will be ignored.
|
|
899
|
+
*/
|
|
900
|
+
isOptional?: boolean;
|
|
901
|
+
/**
|
|
902
|
+
* Text that provides additional guidance to the user
|
|
903
|
+
*/
|
|
904
|
+
helperText?: string;
|
|
905
|
+
/**
|
|
906
|
+
* Suffixed text to display after the input.
|
|
907
|
+
* This is useful for e.g. displaying units of measurement.
|
|
908
|
+
*/
|
|
909
|
+
suffix?: string;
|
|
910
|
+
} & InputBaseOptions & import("react").RefAttributes<HTMLInputElement>>;
|
|
911
|
+
//#endregion
|
|
912
|
+
//#region src/components/label/label.d.ts
|
|
685
913
|
declare const SIZE_CLASSES$2: ResponsiveClassMap<"sm" | "md">;
|
|
686
914
|
declare const COLOR_CLASSES$1: {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
915
|
+
readonly strong: "text-strong";
|
|
916
|
+
readonly default: "text-default";
|
|
917
|
+
readonly subtle: "text-subtle";
|
|
918
|
+
readonly disabled: "text-disabled";
|
|
919
|
+
readonly negative: "text-negative";
|
|
920
|
+
readonly warning: "text-warning";
|
|
921
|
+
readonly positive: "text-positive";
|
|
922
|
+
readonly onBrandPrimary: "text-onBrandPrimary";
|
|
923
|
+
readonly onBrandSecondary: "text-onBrandSecondary";
|
|
924
|
+
readonly onBrandTertiary: "text-onBrandTertiary";
|
|
697
925
|
};
|
|
698
926
|
type LabelSize = ResponsiveSize<typeof SIZE_CLASSES$2>;
|
|
699
927
|
type LabelColor = keyof typeof COLOR_CLASSES$1;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
}
|
|
928
|
+
type LabelOptions = {
|
|
929
|
+
/**
|
|
930
|
+
* Size of the label
|
|
931
|
+
*/
|
|
932
|
+
size?: ResponsiveProp<LabelSize>;
|
|
933
|
+
/**
|
|
934
|
+
* Sets the color of the label
|
|
935
|
+
* @default 'default'
|
|
936
|
+
*/
|
|
937
|
+
color?: LabelColor;
|
|
938
|
+
};
|
|
711
939
|
type LabelComponent = ForwardRefComponent<'label', LabelOptions>;
|
|
712
940
|
type LabelProps = PropsOf<LabelComponent>;
|
|
713
941
|
declare const Label: LabelComponent;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
942
|
+
//#endregion
|
|
943
|
+
//#region src/components/link/link.d.ts
|
|
944
|
+
type LinkOptions = {
|
|
945
|
+
/**
|
|
946
|
+
* The URL to link to.
|
|
947
|
+
*/
|
|
948
|
+
href?: string;
|
|
949
|
+
/**
|
|
950
|
+
* If `true`, the link will open in new tab
|
|
951
|
+
*/
|
|
952
|
+
isExternal?: boolean;
|
|
953
|
+
};
|
|
725
954
|
type LinkComponent = ForwardRefComponent<'a', LinkOptions>;
|
|
726
955
|
type LinkProps = PropsOf<LinkComponent>;
|
|
727
956
|
declare const Link: LinkComponent;
|
|
728
|
-
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region src/components/loading-dots/loading-dots.d.ts
|
|
729
959
|
declare const SIZE_CLASSES$1: ResponsiveClassMap<"sm" | "md">;
|
|
730
960
|
type LoadingDotsSize = ResponsiveSize<typeof SIZE_CLASSES$1>;
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
961
|
+
type LoadingDotsOptions = {
|
|
962
|
+
size?: ResponsiveProp<LoadingDotsSize>;
|
|
963
|
+
};
|
|
964
|
+
type LoadingDotsProps = {} & HTMLQdsProps<'span'> & LoadingDotsOptions;
|
|
965
|
+
declare const LoadingDots: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & LoadingDotsOptions & import("react").RefAttributes<HTMLSpanElement>>;
|
|
966
|
+
//#endregion
|
|
967
|
+
//#region src/components/paragraph/paragraph.d.ts
|
|
738
968
|
declare const SIZE_CLASSES: ResponsiveClassMap<"sm" | "md" | "lg" | "xl" | "xs">;
|
|
739
969
|
declare const COLOR_CLASSES: {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
970
|
+
readonly default: "text-default";
|
|
971
|
+
readonly strong: "text-strong";
|
|
972
|
+
readonly subtle: "text-subtle";
|
|
973
|
+
readonly disabled: "text-disabled";
|
|
974
|
+
readonly negative: "text-negative";
|
|
975
|
+
readonly warning: "text-warning";
|
|
976
|
+
readonly positive: "text-positive";
|
|
977
|
+
readonly onBrandPrimary: "text-onBrandPrimary";
|
|
978
|
+
readonly onBrandSecondary: "text-onBrandSecondary";
|
|
979
|
+
readonly onBrandTertiary: "text-onBrandTertiary";
|
|
750
980
|
};
|
|
751
981
|
declare const TEXT_ALIGN_CLASSES: {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
982
|
+
readonly left: "text-left";
|
|
983
|
+
readonly center: "text-center";
|
|
984
|
+
readonly right: "text-right";
|
|
755
985
|
};
|
|
756
986
|
type ParagraphSize = ResponsiveSize<typeof SIZE_CLASSES>;
|
|
757
987
|
type ParagraphColor = keyof typeof COLOR_CLASSES;
|
|
758
988
|
type ParagraphTextAlign = keyof typeof TEXT_ALIGN_CLASSES;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
}
|
|
989
|
+
type ParagraphOptions = {
|
|
990
|
+
/**
|
|
991
|
+
* Sets the visual size of the text
|
|
992
|
+
* @default 'md'
|
|
993
|
+
*/
|
|
994
|
+
size?: ResponsiveProp<ParagraphSize>;
|
|
995
|
+
/**
|
|
996
|
+
* Sets the color of the text
|
|
997
|
+
* @default 'normal'
|
|
998
|
+
*/
|
|
999
|
+
color?: ParagraphColor;
|
|
1000
|
+
/**
|
|
1001
|
+
* Truncates the text after a specific number of lines
|
|
1002
|
+
*/
|
|
1003
|
+
numberOfLines?: number;
|
|
1004
|
+
/**
|
|
1005
|
+
* Alignment of the paragraph
|
|
1006
|
+
* @default 'left'
|
|
1007
|
+
*/
|
|
1008
|
+
textAlign?: ParagraphTextAlign;
|
|
1009
|
+
};
|
|
780
1010
|
type ParagraphComponent = ForwardRefComponent<'p', ParagraphOptions>;
|
|
781
1011
|
/**
|
|
782
1012
|
* @deprecated
|
|
@@ -786,257 +1016,296 @@ type ParagraphProps = PropsOf<ParagraphComponent>;
|
|
|
786
1016
|
* @deprecated Use Tailwind CSS instead.
|
|
787
1017
|
*/
|
|
788
1018
|
declare const Paragraph: ParagraphComponent;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
1019
|
+
//#endregion
|
|
1020
|
+
//#region src/components/primitives/select-base/select-base.d.ts
|
|
1021
|
+
type SelectBaseOptions = {
|
|
1022
|
+
/**
|
|
1023
|
+
* The placeholder for the select. We render an `<option/>` element that has
|
|
1024
|
+
* empty value.
|
|
1025
|
+
*
|
|
1026
|
+
* ```jsx
|
|
1027
|
+
* <option value="">{placeholder}</option>
|
|
1028
|
+
* ```
|
|
1029
|
+
*/
|
|
1030
|
+
placeholder?: string;
|
|
1031
|
+
/**
|
|
1032
|
+
* If `true`, the select will be invalid
|
|
1033
|
+
*/
|
|
1034
|
+
isInvalid?: boolean;
|
|
1035
|
+
/**
|
|
1036
|
+
* If `true`, the select will be disabled
|
|
1037
|
+
*/
|
|
1038
|
+
isDisabled?: boolean;
|
|
1039
|
+
/**
|
|
1040
|
+
* If `true` the select will be required
|
|
1041
|
+
*/
|
|
1042
|
+
isRequired?: boolean;
|
|
1043
|
+
};
|
|
813
1044
|
type OmittedProps$6 = 'readOnly' | 'size' | 'multiple' | 'disabled' | 'required';
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
1045
|
+
declare const SelectBase: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">, OmittedProps$6> & SelectBaseOptions & import("react").RefAttributes<HTMLSelectElement>>;
|
|
1046
|
+
//#endregion
|
|
1047
|
+
//#region src/components/primitives/textarea-base/textarea-base.d.ts
|
|
818
1048
|
type ResizeProp = 'none' | 'both' | 'horizontal' | 'vertical';
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
}
|
|
1049
|
+
type TextareaBaseOptions = {
|
|
1050
|
+
/**
|
|
1051
|
+
* If `true`, the textarea will be invalid
|
|
1052
|
+
*/
|
|
1053
|
+
isInvalid?: boolean;
|
|
1054
|
+
/**
|
|
1055
|
+
* If `true`, the textarea will be disabled
|
|
1056
|
+
*/
|
|
1057
|
+
isDisabled?: boolean;
|
|
1058
|
+
/**
|
|
1059
|
+
* If `true` the textarea will be required
|
|
1060
|
+
*/
|
|
1061
|
+
isRequired?: boolean;
|
|
1062
|
+
/**
|
|
1063
|
+
* The resize behavior of the textarea
|
|
1064
|
+
*
|
|
1065
|
+
* @default 'vertical'
|
|
1066
|
+
*/
|
|
1067
|
+
resize?: ResizeProp;
|
|
1068
|
+
/**
|
|
1069
|
+
* The minimum number of rows to display without requiring scrolling or resizing.
|
|
1070
|
+
* To disabled resizing use the `resize` prop.
|
|
1071
|
+
*
|
|
1072
|
+
* @default 3
|
|
1073
|
+
*/
|
|
1074
|
+
minRows?: number;
|
|
1075
|
+
};
|
|
846
1076
|
type OmittedProps$5 = 'children' | 'readOnly' | 'size' | 'disabled' | 'required' | 'rows' | 'cols';
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
1077
|
+
type TextareaBaseProps = {} & Omit<HTMLQdsProps<'textarea'>, OmittedProps$5> & TextareaBaseOptions;
|
|
1078
|
+
declare const TextareaBase: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, OmittedProps$5> & TextareaBaseOptions & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
1079
|
+
//#endregion
|
|
1080
|
+
//#region src/components/radio-group/radio-card/radio-card.d.ts
|
|
1081
|
+
type RadioCardOptions = {
|
|
1082
|
+
/**
|
|
1083
|
+
* The label for the radio card
|
|
1084
|
+
*/
|
|
1085
|
+
label: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* Text that provides additional guidance to the user
|
|
1088
|
+
*/
|
|
1089
|
+
helperText?: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* If `true` the user must check the radio item before the owning form can be submitted.
|
|
1092
|
+
* @default false
|
|
1093
|
+
*/
|
|
1094
|
+
isRequired?: boolean;
|
|
1095
|
+
/**
|
|
1096
|
+
* If `true` it prevents the user from interacting with the radio item.
|
|
1097
|
+
* @default false
|
|
1098
|
+
*/
|
|
1099
|
+
isDisabled?: boolean;
|
|
1100
|
+
};
|
|
1101
|
+
type RadioCardProps = {} & Omit<RadioGroup$1.RadioGroupItemProps, 'asChild' | keyof RadioCardOptions> & RadioCardOptions;
|
|
1102
|
+
//#endregion
|
|
1103
|
+
//#region src/components/radio-group/radio-button/radio-button.d.ts
|
|
1104
|
+
type RadioButtonOptions = {
|
|
1105
|
+
/**
|
|
1106
|
+
* The label for the radio button
|
|
1107
|
+
*/
|
|
1108
|
+
label: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* If `true` the user must check the radio item before the owning form can be submitted.
|
|
1111
|
+
* @default false
|
|
1112
|
+
*/
|
|
1113
|
+
isRequired?: boolean;
|
|
1114
|
+
/**
|
|
1115
|
+
* If `true` it prevents the user from interacting with the radio item.
|
|
1116
|
+
* @default false
|
|
1117
|
+
*/
|
|
1118
|
+
isDisabled?: boolean;
|
|
1119
|
+
};
|
|
1120
|
+
type RadioButtonProps = {} & Omit<RadioGroup$1.RadioGroupItemProps, 'asChild' | keyof RadioButtonOptions> & RadioButtonOptions;
|
|
1121
|
+
//#endregion
|
|
1122
|
+
//#region src/components/radio-group/radio-group-label.d.ts
|
|
1123
|
+
type RadioGroupLabelProps = HTMLQdsProps<'span'>;
|
|
1124
|
+
//#endregion
|
|
1125
|
+
//#region src/components/radio-group/radio-group.d.ts
|
|
1126
|
+
type RadioGroupOptions = {
|
|
1127
|
+
/**
|
|
1128
|
+
* The value of the radio item that should be checked when initially rendered.
|
|
1129
|
+
* Use when you do not need to control the state of the radio items.
|
|
1130
|
+
*/
|
|
1131
|
+
defaultValue?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* The controlled value of the radio item to check.
|
|
1134
|
+
* Should be used in conjunction with `onValueChange`.
|
|
1135
|
+
*/
|
|
1136
|
+
value?: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* Event handler called when the value changes.
|
|
1139
|
+
*/
|
|
1140
|
+
onValueChange?: (value: string) => void;
|
|
1141
|
+
/**
|
|
1142
|
+
* The name of the group. Submitted with its owning form as part of a name/value pair.
|
|
1143
|
+
*/
|
|
1144
|
+
name?: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* If `true` all child radio items will be disabled.
|
|
1147
|
+
* @default false
|
|
1148
|
+
*/
|
|
1149
|
+
isDisabled?: boolean;
|
|
1150
|
+
/**
|
|
1151
|
+
* If `true` the user must check a radio item before the owning form can be submitted.
|
|
1152
|
+
* @default false
|
|
1153
|
+
*/
|
|
1154
|
+
isRequired?: boolean;
|
|
1155
|
+
/**
|
|
1156
|
+
* If `true` the radio group will be invalid.
|
|
1157
|
+
* @default false
|
|
1158
|
+
*/
|
|
1159
|
+
isInvalid?: boolean;
|
|
1160
|
+
/**
|
|
1161
|
+
* The error message to display if `isInvalid` is `true`
|
|
1162
|
+
*/
|
|
1163
|
+
errorMessage?: string;
|
|
1164
|
+
};
|
|
1165
|
+
type RadioGroupProps = {} & Omit<RadioGroup$1.RadioGroupProps, 'asChild' | keyof RadioGroupOptions> & RadioGroupOptions;
|
|
1166
|
+
declare const RadioGroup: import("react").ForwardRefExoticComponent<Omit<RadioGroup$1.RadioGroupProps, "asChild" | keyof RadioGroupOptions> & RadioGroupOptions & import("react").RefAttributes<HTMLDivElement>> & {
|
|
1167
|
+
Card: import("react").ForwardRefExoticComponent<Omit<RadioGroup$1.RadioGroupItemProps, "asChild" | keyof {
|
|
855
1168
|
label: string;
|
|
856
|
-
/**
|
|
857
|
-
* Text that provides additional guidance to the user
|
|
858
|
-
*/
|
|
859
1169
|
helperText?: string;
|
|
860
|
-
/**
|
|
861
|
-
* If `true` the user must check the radio item before the owning form can be submitted.
|
|
862
|
-
* @default false
|
|
863
|
-
*/
|
|
864
1170
|
isRequired?: boolean;
|
|
865
|
-
/**
|
|
866
|
-
* If `true` it prevents the user from interacting with the radio item.
|
|
867
|
-
* @default false
|
|
868
|
-
*/
|
|
869
1171
|
isDisabled?: boolean;
|
|
870
|
-
}
|
|
871
|
-
interface RadioCardProps extends Omit<RadioGroup$1.RadioGroupItemProps, 'asChild' | keyof RadioCardOptions>, RadioCardOptions {
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
interface RadioButtonOptions {
|
|
875
|
-
/**
|
|
876
|
-
* The label for the radio button
|
|
877
|
-
*/
|
|
1172
|
+
}> & {
|
|
878
1173
|
label: string;
|
|
879
|
-
|
|
880
|
-
* If `true` the user must check the radio item before the owning form can be submitted.
|
|
881
|
-
* @default false
|
|
882
|
-
*/
|
|
1174
|
+
helperText?: string;
|
|
883
1175
|
isRequired?: boolean;
|
|
884
|
-
/**
|
|
885
|
-
* If `true` it prevents the user from interacting with the radio item.
|
|
886
|
-
* @default false
|
|
887
|
-
*/
|
|
888
1176
|
isDisabled?: boolean;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
type RadioGroupLabelProps = HTMLQdsProps<'span'>;
|
|
894
|
-
|
|
895
|
-
interface RadioGroupOptions {
|
|
896
|
-
/**
|
|
897
|
-
* The value of the radio item that should be checked when initially rendered.
|
|
898
|
-
* Use when you do not need to control the state of the radio items.
|
|
899
|
-
*/
|
|
900
|
-
defaultValue?: string;
|
|
901
|
-
/**
|
|
902
|
-
* The controlled value of the radio item to check.
|
|
903
|
-
* Should be used in conjunction with `onValueChange`.
|
|
904
|
-
*/
|
|
905
|
-
value?: string;
|
|
906
|
-
/**
|
|
907
|
-
* Event handler called when the value changes.
|
|
908
|
-
*/
|
|
909
|
-
onValueChange?: (value: string) => void;
|
|
910
|
-
/**
|
|
911
|
-
* The name of the group. Submitted with its owning form as part of a name/value pair.
|
|
912
|
-
*/
|
|
913
|
-
name?: string;
|
|
914
|
-
/**
|
|
915
|
-
* If `true` all child radio items will be disabled.
|
|
916
|
-
* @default false
|
|
917
|
-
*/
|
|
1177
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1178
|
+
Button: import("react").ForwardRefExoticComponent<Omit<RadioGroup$1.RadioGroupItemProps, "asChild" | keyof {
|
|
1179
|
+
label: string;
|
|
1180
|
+
isRequired?: boolean;
|
|
918
1181
|
isDisabled?: boolean;
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
* @default false
|
|
922
|
-
*/
|
|
1182
|
+
}> & {
|
|
1183
|
+
label: string;
|
|
923
1184
|
isRequired?: boolean;
|
|
924
|
-
/**
|
|
925
|
-
* If `true` the radio group will be invalid.
|
|
926
|
-
* @default false
|
|
927
|
-
*/
|
|
928
|
-
isInvalid?: boolean;
|
|
929
|
-
/**
|
|
930
|
-
* The error message to display if `isInvalid` is `true`
|
|
931
|
-
*/
|
|
932
|
-
errorMessage?: string;
|
|
933
|
-
}
|
|
934
|
-
interface RadioGroupProps extends Omit<RadioGroup$1.RadioGroupProps, 'asChild' | keyof RadioGroupOptions>, RadioGroupOptions {
|
|
935
|
-
}
|
|
936
|
-
declare const RadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>> & {
|
|
937
|
-
Card: react.ForwardRefExoticComponent<RadioCardProps & react.RefAttributes<HTMLButtonElement>>;
|
|
938
|
-
Button: react.ForwardRefExoticComponent<RadioButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
939
|
-
Label: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & react.RefAttributes<HTMLSpanElement>>;
|
|
940
|
-
};
|
|
941
|
-
|
|
942
|
-
interface SelectOptionOptions {
|
|
943
1185
|
isDisabled?: boolean;
|
|
944
|
-
}
|
|
1186
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1187
|
+
Label: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
1188
|
+
};
|
|
1189
|
+
//#endregion
|
|
1190
|
+
//#region src/components/select/select-option.d.ts
|
|
1191
|
+
type SelectOptionOptions = {
|
|
1192
|
+
isDisabled?: boolean;
|
|
1193
|
+
};
|
|
945
1194
|
type OmittedProps$4 = 'disabled' | 'label';
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
}
|
|
1195
|
+
type SelectOptionProps = {} & Omit<HTMLQdsProps<'option'>, OmittedProps$4> & SelectOptionOptions;
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region src/components/select/select.d.ts
|
|
1198
|
+
type SelectOptions = {
|
|
1199
|
+
/**
|
|
1200
|
+
* The label for the select field
|
|
1201
|
+
*/
|
|
1202
|
+
label: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* The error message to display if `isInvalid` is `true`
|
|
1205
|
+
*/
|
|
1206
|
+
errorMessage?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* Text that provides additional guidance to the user
|
|
1209
|
+
*/
|
|
1210
|
+
helperText?: string;
|
|
1211
|
+
/**
|
|
1212
|
+
* If `true`, the select field will display an optional indicator.
|
|
1213
|
+
* If the `isRequired` prop is also `true`, this prop will be ignored.
|
|
1214
|
+
*/
|
|
1215
|
+
isOptional?: boolean;
|
|
1216
|
+
} & SelectBaseOptions;
|
|
968
1217
|
type OmittedProps$3 = 'readOnly' | 'size';
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1218
|
+
type SelectProps = {} & Omit<HTMLQdsProps<'select'>, OmittedProps$3> & SelectOptions;
|
|
1219
|
+
declare const Select: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">, OmittedProps$3> & {
|
|
1220
|
+
/**
|
|
1221
|
+
* The label for the select field
|
|
1222
|
+
*/
|
|
1223
|
+
label: string;
|
|
1224
|
+
/**
|
|
1225
|
+
* The error message to display if `isInvalid` is `true`
|
|
1226
|
+
*/
|
|
1227
|
+
errorMessage?: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* Text that provides additional guidance to the user
|
|
1230
|
+
*/
|
|
1231
|
+
helperText?: string;
|
|
1232
|
+
/**
|
|
1233
|
+
* If `true`, the select field will display an optional indicator.
|
|
1234
|
+
* If the `isRequired` prop is also `true`, this prop will be ignored.
|
|
1235
|
+
*/
|
|
1236
|
+
isOptional?: boolean;
|
|
1237
|
+
} & SelectBaseOptions & import("react").RefAttributes<HTMLSelectElement>> & {
|
|
1238
|
+
Option: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, "ref">, "label" | "disabled"> & {
|
|
1239
|
+
isDisabled?: boolean;
|
|
1240
|
+
} & import("react").RefAttributes<HTMLOptionElement>>;
|
|
973
1241
|
};
|
|
974
|
-
|
|
1242
|
+
//#endregion
|
|
1243
|
+
//#region src/components/spacer/spacer.d.ts
|
|
975
1244
|
declare const X_SIZE_CLASSES: ResponsiveClassMap<"0x" | "1x" | "2x" | "3x" | "4x" | "5x" | "6x" | "8x" | "10x" | "12x" | "14x" | "16x" | "20x" | "24x">;
|
|
976
1245
|
declare const Y_SIZE_CLASSES: ResponsiveClassMap<"0x" | "1x" | "2x" | "3x" | "4x" | "5x" | "6x" | "8x" | "10x" | "12x" | "14x" | "16x" | "20x" | "24x">;
|
|
977
1246
|
type Spacing = ResponsiveSize<typeof X_SIZE_CLASSES> & ResponsiveSize<typeof Y_SIZE_CLASSES>;
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
}
|
|
1247
|
+
type SpacerOptions = {
|
|
1248
|
+
axis?: 'x' | 'y';
|
|
1249
|
+
size: ResponsiveProp<Spacing>;
|
|
1250
|
+
};
|
|
982
1251
|
/**
|
|
983
1252
|
* @deprecated
|
|
984
1253
|
*/
|
|
985
|
-
|
|
986
|
-
}
|
|
1254
|
+
type SpacerProps = {} & HTMLQdsProps<'span'> & SpacerOptions;
|
|
987
1255
|
/**
|
|
988
1256
|
* @deprecated Use Tailwind CSS instead.
|
|
989
1257
|
*/
|
|
990
|
-
declare const Spacer: react.ForwardRefExoticComponent<
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
declare const
|
|
994
|
-
declare const
|
|
1258
|
+
declare const Spacer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & SpacerOptions & import("react").RefAttributes<HTMLSpanElement>>;
|
|
1259
|
+
//#endregion
|
|
1260
|
+
//#region src/components/stack/stack.d.ts
|
|
1261
|
+
declare const DIRECTION_CLASSES: ResponsiveClassMap<"row" | "row-reverse" | "column" | "column-reverse">;
|
|
1262
|
+
declare const JUSTIFY_CONTENT_CLASSES: ResponsiveClassMap<"center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly">;
|
|
1263
|
+
declare const ALIGN_ITEMS_CLASSES: ResponsiveClassMap<"center" | "baseline" | "flex-start" | "flex-end" | "stretch">;
|
|
995
1264
|
declare const GAP_CLASSES: ResponsiveClassMap<"0x" | "1x" | "2x" | "3x" | "4x" | "5x" | "6x" | "8x" | "10x" | "12x" | "14x" | "16x" | "20x" | "24x">;
|
|
996
1265
|
declare const WRAP_CLASSES: {
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1266
|
+
readonly wrap: "flex-wrap";
|
|
1267
|
+
readonly nowrap: "flex-nowrap";
|
|
1268
|
+
readonly 'wrap-reverse': "flex-wrap-reverse";
|
|
1000
1269
|
};
|
|
1001
1270
|
type FlexDirection = ResponsiveSize<typeof DIRECTION_CLASSES>;
|
|
1002
1271
|
type JustifyContent = ResponsiveSize<typeof JUSTIFY_CONTENT_CLASSES>;
|
|
1003
1272
|
type AlignItems = ResponsiveSize<typeof ALIGN_ITEMS_CLASSES>;
|
|
1004
1273
|
type GapProp = ResponsiveSize<typeof GAP_CLASSES>;
|
|
1005
1274
|
type FlexWrap = keyof typeof WRAP_CLASSES;
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
}
|
|
1275
|
+
type StackOptions = {
|
|
1276
|
+
/**
|
|
1277
|
+
* The direction of the stack.
|
|
1278
|
+
* @default 'column'
|
|
1279
|
+
*/
|
|
1280
|
+
direction?: ResponsiveProp<FlexDirection>;
|
|
1281
|
+
/**
|
|
1282
|
+
* The CSS `justify-content` property.
|
|
1283
|
+
* Controls the alignment of items on the main axis.
|
|
1284
|
+
*/
|
|
1285
|
+
justifyContent?: ResponsiveProp<JustifyContent>;
|
|
1286
|
+
/**
|
|
1287
|
+
* The CSS `align-items` property.
|
|
1288
|
+
* Controls the alignment of items on the cross axis.
|
|
1289
|
+
*/
|
|
1290
|
+
alignItems?: ResponsiveProp<AlignItems>;
|
|
1291
|
+
/**
|
|
1292
|
+
* The CSS `flex-wrap` property.
|
|
1293
|
+
* Controls whether children can wrap onto multiple lines.
|
|
1294
|
+
* @default 'nowrap'
|
|
1295
|
+
*/
|
|
1296
|
+
wrap?: FlexWrap;
|
|
1297
|
+
/**
|
|
1298
|
+
* The gap between each child element.
|
|
1299
|
+
*/
|
|
1300
|
+
gap?: ResponsiveProp<GapProp>;
|
|
1301
|
+
/**
|
|
1302
|
+
* A divider element to be rendered between each child element.
|
|
1303
|
+
*
|
|
1304
|
+
* _Note: For the divider to be rendered, the child elements can't be loose strings or numbers.
|
|
1305
|
+
* Wrap them in a `div` or other element._
|
|
1306
|
+
*/
|
|
1307
|
+
divider?: ReactNode;
|
|
1308
|
+
};
|
|
1040
1309
|
type StackComponent = ForwardRefComponent<'div', StackOptions>;
|
|
1041
1310
|
/**
|
|
1042
1311
|
* @deprecated
|
|
@@ -1046,541 +1315,563 @@ type StackProps = PropsOf<StackComponent>;
|
|
|
1046
1315
|
* @deprecated Use Tailwind CSS instead.
|
|
1047
1316
|
*/
|
|
1048
1317
|
declare const Stack: StackComponent;
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
}
|
|
1081
|
-
declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1318
|
+
//#endregion
|
|
1319
|
+
//#region src/components/switch/switch.d.ts
|
|
1320
|
+
type SwitchOptions = {
|
|
1321
|
+
/**
|
|
1322
|
+
* The label for the switch
|
|
1323
|
+
*/
|
|
1324
|
+
label: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* The text that appears below the label
|
|
1327
|
+
* to provide additional guidance to the user
|
|
1328
|
+
*/
|
|
1329
|
+
helperText?: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.
|
|
1332
|
+
*/
|
|
1333
|
+
isDefaultChecked?: boolean;
|
|
1334
|
+
/**
|
|
1335
|
+
* If `true`, the switch will be checked
|
|
1336
|
+
*/
|
|
1337
|
+
isChecked?: boolean;
|
|
1338
|
+
/**
|
|
1339
|
+
* If `true`, the switch will be disabled and
|
|
1340
|
+
* cannot be interacted with
|
|
1341
|
+
*/
|
|
1342
|
+
isDisabled?: boolean;
|
|
1343
|
+
/**
|
|
1344
|
+
* If `true`, indicates that the switch is required
|
|
1345
|
+
*/
|
|
1346
|
+
isRequired?: boolean;
|
|
1347
|
+
onCheckedChange?: (isChecked: boolean) => void;
|
|
1348
|
+
};
|
|
1349
|
+
type SwitchProps = {} & Omit<Switch$1.SwitchProps, 'asChild' | keyof SwitchOptions> & SwitchOptions;
|
|
1350
|
+
declare const Switch: import("react").ForwardRefExoticComponent<Omit<Switch$1.SwitchProps, "asChild" | keyof SwitchOptions> & SwitchOptions & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1351
|
+
//#endregion
|
|
1352
|
+
//#region src/components/textarea/textarea.d.ts
|
|
1353
|
+
type TextareaOptions = {
|
|
1354
|
+
/**
|
|
1355
|
+
* The label for the textarea field
|
|
1356
|
+
*/
|
|
1357
|
+
label: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* The error message to display if `isInvalid` is `true`
|
|
1360
|
+
*/
|
|
1361
|
+
errorMessage?: string;
|
|
1362
|
+
/**
|
|
1363
|
+
* Text that provides additional guidance to the user
|
|
1364
|
+
*/
|
|
1365
|
+
helperText?: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* If `true`, the input will display an optional indicator.
|
|
1368
|
+
* If the `isRequired` prop is also `true`, this prop will be ignored.
|
|
1369
|
+
*/
|
|
1370
|
+
isOptional?: boolean;
|
|
1371
|
+
} & TextareaBaseOptions;
|
|
1102
1372
|
type OmittedProps$2 = 'children' | 'readOnly' | 'size';
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1373
|
+
type TextareaProps = {} & Omit<HTMLQdsProps<'textarea'>, OmittedProps$2> & TextareaOptions;
|
|
1374
|
+
declare const Textarea: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, OmittedProps$2> & {
|
|
1375
|
+
/**
|
|
1376
|
+
* The label for the textarea field
|
|
1377
|
+
*/
|
|
1378
|
+
label: string;
|
|
1379
|
+
/**
|
|
1380
|
+
* The error message to display if `isInvalid` is `true`
|
|
1381
|
+
*/
|
|
1382
|
+
errorMessage?: string;
|
|
1383
|
+
/**
|
|
1384
|
+
* Text that provides additional guidance to the user
|
|
1385
|
+
*/
|
|
1386
|
+
helperText?: string;
|
|
1387
|
+
/**
|
|
1388
|
+
* If `true`, the input will display an optional indicator.
|
|
1389
|
+
* If the `isRequired` prop is also `true`, this prop will be ignored.
|
|
1390
|
+
*/
|
|
1391
|
+
isOptional?: boolean;
|
|
1392
|
+
} & TextareaBaseOptions & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
1393
|
+
//#endregion
|
|
1394
|
+
//#region src/components/toast/toast.d.ts
|
|
1107
1395
|
declare const VARIANT_CLASSES: {
|
|
1108
|
-
|
|
1109
|
-
|
|
1396
|
+
readonly neutral: "bg-black text-white";
|
|
1397
|
+
readonly error: "bg-negative text-white";
|
|
1110
1398
|
};
|
|
1111
1399
|
type ToastVariant = keyof typeof VARIANT_CLASSES;
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
}
|
|
1400
|
+
type ToastOptions$1 = {
|
|
1401
|
+
text: string;
|
|
1402
|
+
variant?: ToastVariant;
|
|
1403
|
+
};
|
|
1116
1404
|
type OmittedProps$1 = 'children';
|
|
1117
|
-
|
|
1118
|
-
}
|
|
1405
|
+
type ToastProps = {} & Omit<HTMLQdsProps<'div'>, OmittedProps$1> & ToastOptions$1;
|
|
1119
1406
|
/**
|
|
1120
1407
|
* We style a separate div as a child for Radix Toast.Root in order to meet the QDS accessibility requirements & animate it
|
|
1121
1408
|
* Radix uses <ol> and <li> elements for Toast elements in combination with role="status", which is not allowed according to a11y standards
|
|
1122
1409
|
* @see https://github.com/radix-ui/primitives/issues/1750
|
|
1123
1410
|
*/
|
|
1124
|
-
declare function Toast(props: ToastProps & Toast$1.ToastProps):
|
|
1125
|
-
|
|
1411
|
+
declare function Toast(props: ToastProps & Toast$1.ToastProps): import("react/jsx-runtime").JSX.Element;
|
|
1412
|
+
//#endregion
|
|
1413
|
+
//#region src/components/toast/toast-store.d.ts
|
|
1126
1414
|
type Id = number | string;
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
}
|
|
1415
|
+
type ToastOptions = {
|
|
1416
|
+
/**
|
|
1417
|
+
* Unique identifier for the toast (can be used for removing it prematurely). If a toast with this
|
|
1418
|
+
* identifier already exists it will be removed before the new toast is added.
|
|
1419
|
+
* @default a random unique id will be set and returned
|
|
1420
|
+
*/
|
|
1421
|
+
id?: Id;
|
|
1422
|
+
};
|
|
1135
1423
|
declare const toast: ((text: string, options?: ToastOptions) => Id) & {
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1424
|
+
error: (text: string, options?: ToastOptions) => Id;
|
|
1425
|
+
remove: (id: Id) => void;
|
|
1426
|
+
removeAll: () => void;
|
|
1139
1427
|
};
|
|
1140
|
-
|
|
1428
|
+
//#endregion
|
|
1429
|
+
//#region src/styles/css-utils.d.ts
|
|
1141
1430
|
/**
|
|
1142
1431
|
* @deprecated Use Tailwind spacing utilities instead, eg. `p-4` for 16px padding.
|
|
1143
1432
|
* If you need a raw value, reference the CSS variable directly: `var(--spacing-4)`.
|
|
1144
1433
|
*/
|
|
1145
1434
|
declare const pxToRem: (px: number) => string;
|
|
1146
|
-
|
|
1435
|
+
//#endregion
|
|
1436
|
+
//#region src/theme/theme.d.ts
|
|
1147
1437
|
/**
|
|
1148
1438
|
* @deprecated The `theme` object is deprecated and will be removed in a future version.
|
|
1149
1439
|
* Use Tailwind CSS instead.
|
|
1150
1440
|
*/
|
|
1151
1441
|
declare const theme: {
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1442
|
+
/**
|
|
1443
|
+
* @deprecated Using QDS with `@emotion` is deprecated and will be removed in a future version.
|
|
1444
|
+
* Use Tailwind CSS instead.
|
|
1445
|
+
*/
|
|
1446
|
+
mediaQueries: {
|
|
1447
|
+
readonly smUp: "@media(min-width: 480px)";
|
|
1448
|
+
readonly mdUp: "@media(min-width: 768px)";
|
|
1449
|
+
readonly lgUp: "@media(min-width: 1024px)";
|
|
1450
|
+
readonly xlUp: "@media(min-width: 1280px)";
|
|
1451
|
+
readonly '2xlUp': "@media(min-width: 1536px)";
|
|
1452
|
+
};
|
|
1453
|
+
spacing: {
|
|
1454
|
+
'0x': string;
|
|
1455
|
+
'1x': string;
|
|
1456
|
+
'2x': string;
|
|
1457
|
+
'3x': string;
|
|
1458
|
+
'4x': string;
|
|
1459
|
+
'5x': string;
|
|
1460
|
+
'6x': string;
|
|
1461
|
+
'8x': string;
|
|
1462
|
+
'10x': string;
|
|
1463
|
+
'12x': string;
|
|
1464
|
+
'14x': string;
|
|
1465
|
+
'16x': string;
|
|
1466
|
+
'20x': string;
|
|
1467
|
+
'24x': string;
|
|
1468
|
+
};
|
|
1469
|
+
breakpoints: {
|
|
1470
|
+
readonly base: 0;
|
|
1471
|
+
readonly sm: 480;
|
|
1472
|
+
readonly md: 768;
|
|
1473
|
+
readonly lg: 1024;
|
|
1474
|
+
readonly xl: 1280;
|
|
1475
|
+
readonly '2xl': 1536;
|
|
1476
|
+
};
|
|
1477
|
+
zIndices: {
|
|
1478
|
+
hide: number;
|
|
1479
|
+
auto: string;
|
|
1480
|
+
base: number;
|
|
1481
|
+
docked: number;
|
|
1482
|
+
dropdown: number;
|
|
1483
|
+
sticky: number;
|
|
1484
|
+
banner: number;
|
|
1485
|
+
overlay: number;
|
|
1486
|
+
modal: number;
|
|
1487
|
+
popover: number;
|
|
1488
|
+
skipLink: number;
|
|
1489
|
+
toast: number;
|
|
1490
|
+
tooltip: number;
|
|
1491
|
+
};
|
|
1492
|
+
colors: {
|
|
1493
|
+
core: {
|
|
1494
|
+
black: string;
|
|
1495
|
+
white: string;
|
|
1496
|
+
gray90: string;
|
|
1497
|
+
gray80: string;
|
|
1498
|
+
gray70: string;
|
|
1499
|
+
gray60: string;
|
|
1500
|
+
gray50: string;
|
|
1501
|
+
gray40: string;
|
|
1502
|
+
gray30: string;
|
|
1503
|
+
gray20: string;
|
|
1504
|
+
gray10: string;
|
|
1505
|
+
pink: string;
|
|
1506
|
+
uiPink: string;
|
|
1507
|
+
uiPinkDark: string;
|
|
1508
|
+
uiPinkLight: string;
|
|
1509
|
+
brown: string;
|
|
1510
|
+
brownDark: string;
|
|
1511
|
+
brownLight: string;
|
|
1512
|
+
offWhite: string;
|
|
1513
|
+
offWhiteDark: string;
|
|
1514
|
+
offWhiteLight: string;
|
|
1515
|
+
softPink: string;
|
|
1516
|
+
warmYellow: string;
|
|
1517
|
+
softYellow: string;
|
|
1518
|
+
red90: string;
|
|
1519
|
+
red80: string;
|
|
1520
|
+
red70: string;
|
|
1521
|
+
red60: string;
|
|
1522
|
+
red50: string;
|
|
1523
|
+
red40: string;
|
|
1524
|
+
red30: string;
|
|
1525
|
+
red20: string;
|
|
1526
|
+
red10: string;
|
|
1527
|
+
green90: string;
|
|
1528
|
+
green80: string;
|
|
1529
|
+
green70: string;
|
|
1530
|
+
green60: string;
|
|
1531
|
+
green50: string;
|
|
1532
|
+
green40: string;
|
|
1533
|
+
green30: string;
|
|
1534
|
+
green20: string;
|
|
1535
|
+
green10: string;
|
|
1536
|
+
blue90: string;
|
|
1537
|
+
blue80: string;
|
|
1538
|
+
blue70: string;
|
|
1539
|
+
blue60: string;
|
|
1540
|
+
blue50: string;
|
|
1541
|
+
blue40: string;
|
|
1542
|
+
blue30: string;
|
|
1543
|
+
blue20: string;
|
|
1544
|
+
blue10: string;
|
|
1545
|
+
yellow90: string;
|
|
1546
|
+
yellow80: string;
|
|
1547
|
+
yellow70: string;
|
|
1548
|
+
yellow60: string;
|
|
1549
|
+
yellow50: string;
|
|
1550
|
+
yellow40: string;
|
|
1551
|
+
yellow30: string;
|
|
1552
|
+
yellow20: string;
|
|
1553
|
+
yellow10: string;
|
|
1554
|
+
blackAlpha5: string;
|
|
1555
|
+
blackAlpha10: string;
|
|
1556
|
+
blackAlpha20: string;
|
|
1557
|
+
};
|
|
1558
|
+
bg: {
|
|
1559
|
+
default: string;
|
|
1560
|
+
brandPrimary: string;
|
|
1561
|
+
brandPrimaryHover: string;
|
|
1562
|
+
brandPrimaryActive: string;
|
|
1563
|
+
brandSecondary: string;
|
|
1564
|
+
brandSecondaryHover: string;
|
|
1565
|
+
brandSecondaryActive: string;
|
|
1566
|
+
brandTertiary: string;
|
|
1567
|
+
brandTertiaryHover: string;
|
|
1568
|
+
brandTertiaryActive: string;
|
|
1569
|
+
negative: string;
|
|
1570
|
+
warning: string;
|
|
1571
|
+
positive: string;
|
|
1572
|
+
inset: string;
|
|
1573
|
+
backdrop: string;
|
|
1574
|
+
};
|
|
1575
|
+
text: {
|
|
1576
|
+
strong: string;
|
|
1577
|
+
default: string;
|
|
1578
|
+
subtle: string;
|
|
1579
|
+
disabled: string;
|
|
1580
|
+
negative: string;
|
|
1581
|
+
warning: string;
|
|
1582
|
+
positive: string;
|
|
1583
|
+
onBrandPrimary: string;
|
|
1584
|
+
onBrandSecondary: string;
|
|
1585
|
+
onBrandTertiary: string;
|
|
1162
1586
|
};
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
'14x': string;
|
|
1175
|
-
'16x': string;
|
|
1176
|
-
'20x': string;
|
|
1177
|
-
'24x': string;
|
|
1587
|
+
icon: {
|
|
1588
|
+
default: string;
|
|
1589
|
+
strong: string;
|
|
1590
|
+
subtle: string;
|
|
1591
|
+
disabled: string;
|
|
1592
|
+
negative: string;
|
|
1593
|
+
warning: string;
|
|
1594
|
+
positive: string;
|
|
1595
|
+
onBrandPrimary: string;
|
|
1596
|
+
onBrandSecondary: string;
|
|
1597
|
+
onBrandTertiary: string;
|
|
1178
1598
|
};
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1599
|
+
border: {
|
|
1600
|
+
default: string;
|
|
1601
|
+
defaultHover: string;
|
|
1602
|
+
defaultSelected: string;
|
|
1603
|
+
strong: string;
|
|
1604
|
+
subtle: string;
|
|
1605
|
+
negative: string;
|
|
1606
|
+
warning: string;
|
|
1607
|
+
positive: string;
|
|
1186
1608
|
};
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1609
|
+
};
|
|
1610
|
+
sizes: {
|
|
1611
|
+
112: string;
|
|
1612
|
+
128: string;
|
|
1613
|
+
144: string;
|
|
1614
|
+
160: string;
|
|
1615
|
+
176: string;
|
|
1616
|
+
192: string;
|
|
1617
|
+
224: string;
|
|
1618
|
+
256: string;
|
|
1619
|
+
288: string;
|
|
1620
|
+
320: string;
|
|
1621
|
+
384: string;
|
|
1622
|
+
448: string;
|
|
1623
|
+
512: string;
|
|
1624
|
+
576: string;
|
|
1625
|
+
672: string;
|
|
1626
|
+
768: string;
|
|
1627
|
+
896: string;
|
|
1628
|
+
1024: string;
|
|
1629
|
+
'0x': string;
|
|
1630
|
+
'1x': string;
|
|
1631
|
+
'2x': string;
|
|
1632
|
+
'3x': string;
|
|
1633
|
+
'4x': string;
|
|
1634
|
+
'5x': string;
|
|
1635
|
+
'6x': string;
|
|
1636
|
+
'8x': string;
|
|
1637
|
+
'10x': string;
|
|
1638
|
+
'12x': string;
|
|
1639
|
+
'14x': string;
|
|
1640
|
+
'16x': string;
|
|
1641
|
+
'20x': string;
|
|
1642
|
+
'24x': string;
|
|
1643
|
+
};
|
|
1644
|
+
radii: {
|
|
1645
|
+
none: string;
|
|
1646
|
+
'2xs': string;
|
|
1647
|
+
xs: string;
|
|
1648
|
+
sm: string;
|
|
1649
|
+
md: string;
|
|
1650
|
+
lg: string;
|
|
1651
|
+
xl: string;
|
|
1652
|
+
'2xl': string;
|
|
1653
|
+
full: string;
|
|
1654
|
+
};
|
|
1655
|
+
shadows: {
|
|
1656
|
+
none: string;
|
|
1657
|
+
sm: string;
|
|
1658
|
+
md: string;
|
|
1659
|
+
lg: string;
|
|
1660
|
+
xl: string;
|
|
1661
|
+
};
|
|
1662
|
+
typography: {
|
|
1663
|
+
display: {
|
|
1664
|
+
'3xl': {
|
|
1665
|
+
fontFamily: string;
|
|
1666
|
+
fontWeight: string;
|
|
1667
|
+
fontSize: string;
|
|
1668
|
+
lineHeight: string;
|
|
1669
|
+
letterSpacing: string;
|
|
1670
|
+
fontFeatureSettings: string;
|
|
1671
|
+
};
|
|
1672
|
+
'2xl': {
|
|
1673
|
+
fontFamily: string;
|
|
1674
|
+
fontWeight: string;
|
|
1675
|
+
fontSize: string;
|
|
1676
|
+
lineHeight: string;
|
|
1677
|
+
letterSpacing: string;
|
|
1678
|
+
fontFeatureSettings: string;
|
|
1679
|
+
};
|
|
1680
|
+
xl: {
|
|
1681
|
+
fontFamily: string;
|
|
1682
|
+
fontWeight: string;
|
|
1683
|
+
fontSize: string;
|
|
1684
|
+
lineHeight: string;
|
|
1685
|
+
letterSpacing: string;
|
|
1686
|
+
fontFeatureSettings: string;
|
|
1687
|
+
};
|
|
1688
|
+
lg: {
|
|
1689
|
+
fontFamily: string;
|
|
1690
|
+
fontWeight: string;
|
|
1691
|
+
fontSize: string;
|
|
1692
|
+
lineHeight: string;
|
|
1693
|
+
letterSpacing: string;
|
|
1694
|
+
fontFeatureSettings: string;
|
|
1695
|
+
};
|
|
1696
|
+
md: {
|
|
1697
|
+
fontFamily: string;
|
|
1698
|
+
fontWeight: string;
|
|
1699
|
+
fontSize: string;
|
|
1700
|
+
lineHeight: string;
|
|
1701
|
+
letterSpacing: string;
|
|
1702
|
+
fontFeatureSettings: string;
|
|
1703
|
+
};
|
|
1704
|
+
sm: {
|
|
1705
|
+
fontFamily: string;
|
|
1706
|
+
fontWeight: string;
|
|
1707
|
+
fontSize: string;
|
|
1708
|
+
lineHeight: string;
|
|
1709
|
+
letterSpacing: string;
|
|
1710
|
+
fontFeatureSettings: string;
|
|
1711
|
+
};
|
|
1712
|
+
xs: {
|
|
1713
|
+
fontFamily: string;
|
|
1714
|
+
fontWeight: string;
|
|
1715
|
+
fontSize: string;
|
|
1716
|
+
lineHeight: string;
|
|
1717
|
+
letterSpacing: string;
|
|
1718
|
+
fontFeatureSettings: string;
|
|
1719
|
+
};
|
|
1720
|
+
'2xs': {
|
|
1721
|
+
fontFamily: string;
|
|
1722
|
+
fontWeight: string;
|
|
1723
|
+
fontSize: string;
|
|
1724
|
+
lineHeight: string;
|
|
1725
|
+
letterSpacing: string;
|
|
1726
|
+
fontFeatureSettings: string;
|
|
1727
|
+
};
|
|
1201
1728
|
};
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
green10: string;
|
|
1246
|
-
blue90: string;
|
|
1247
|
-
blue80: string;
|
|
1248
|
-
blue70: string;
|
|
1249
|
-
blue60: string;
|
|
1250
|
-
blue50: string;
|
|
1251
|
-
blue40: string;
|
|
1252
|
-
blue30: string;
|
|
1253
|
-
blue20: string;
|
|
1254
|
-
blue10: string;
|
|
1255
|
-
yellow90: string;
|
|
1256
|
-
yellow80: string;
|
|
1257
|
-
yellow70: string;
|
|
1258
|
-
yellow60: string;
|
|
1259
|
-
yellow50: string;
|
|
1260
|
-
yellow40: string;
|
|
1261
|
-
yellow30: string;
|
|
1262
|
-
yellow20: string;
|
|
1263
|
-
yellow10: string;
|
|
1264
|
-
blackAlpha5: string;
|
|
1265
|
-
blackAlpha10: string;
|
|
1266
|
-
blackAlpha20: string;
|
|
1267
|
-
};
|
|
1268
|
-
bg: {
|
|
1269
|
-
default: string;
|
|
1270
|
-
brandPrimary: string;
|
|
1271
|
-
brandPrimaryHover: string;
|
|
1272
|
-
brandPrimaryActive: string;
|
|
1273
|
-
brandSecondary: string;
|
|
1274
|
-
brandSecondaryHover: string;
|
|
1275
|
-
brandSecondaryActive: string;
|
|
1276
|
-
brandTertiary: string;
|
|
1277
|
-
brandTertiaryHover: string;
|
|
1278
|
-
brandTertiaryActive: string;
|
|
1279
|
-
negative: string;
|
|
1280
|
-
warning: string;
|
|
1281
|
-
positive: string;
|
|
1282
|
-
inset: string;
|
|
1283
|
-
backdrop: string;
|
|
1284
|
-
};
|
|
1285
|
-
text: {
|
|
1286
|
-
strong: string;
|
|
1287
|
-
default: string;
|
|
1288
|
-
subtle: string;
|
|
1289
|
-
disabled: string;
|
|
1290
|
-
negative: string;
|
|
1291
|
-
warning: string;
|
|
1292
|
-
positive: string;
|
|
1293
|
-
onBrandPrimary: string;
|
|
1294
|
-
onBrandSecondary: string;
|
|
1295
|
-
onBrandTertiary: string;
|
|
1296
|
-
};
|
|
1297
|
-
icon: {
|
|
1298
|
-
default: string;
|
|
1299
|
-
strong: string;
|
|
1300
|
-
subtle: string;
|
|
1301
|
-
disabled: string;
|
|
1302
|
-
negative: string;
|
|
1303
|
-
warning: string;
|
|
1304
|
-
positive: string;
|
|
1305
|
-
onBrandPrimary: string;
|
|
1306
|
-
onBrandSecondary: string;
|
|
1307
|
-
onBrandTertiary: string;
|
|
1308
|
-
};
|
|
1309
|
-
border: {
|
|
1310
|
-
default: string;
|
|
1311
|
-
defaultHover: string;
|
|
1312
|
-
defaultSelected: string;
|
|
1313
|
-
strong: string;
|
|
1314
|
-
subtle: string;
|
|
1315
|
-
negative: string;
|
|
1316
|
-
warning: string;
|
|
1317
|
-
positive: string;
|
|
1318
|
-
};
|
|
1729
|
+
title: {
|
|
1730
|
+
lg: {
|
|
1731
|
+
fontFamily: string;
|
|
1732
|
+
fontWeight: string;
|
|
1733
|
+
fontSize: string;
|
|
1734
|
+
lineHeight: string;
|
|
1735
|
+
letterSpacing: string;
|
|
1736
|
+
};
|
|
1737
|
+
md: {
|
|
1738
|
+
fontFamily: string;
|
|
1739
|
+
fontWeight: string;
|
|
1740
|
+
fontSize: string;
|
|
1741
|
+
lineHeight: string;
|
|
1742
|
+
letterSpacing: string;
|
|
1743
|
+
};
|
|
1744
|
+
sm: {
|
|
1745
|
+
fontFamily: string;
|
|
1746
|
+
fontWeight: string;
|
|
1747
|
+
fontSize: string;
|
|
1748
|
+
lineHeight: string;
|
|
1749
|
+
letterSpacing: string;
|
|
1750
|
+
};
|
|
1751
|
+
xs: {
|
|
1752
|
+
fontFamily: string;
|
|
1753
|
+
fontWeight: string;
|
|
1754
|
+
fontSize: string;
|
|
1755
|
+
lineHeight: string;
|
|
1756
|
+
letterSpacing: string;
|
|
1757
|
+
};
|
|
1758
|
+
'2xs': {
|
|
1759
|
+
fontFamily: string;
|
|
1760
|
+
fontWeight: string;
|
|
1761
|
+
fontSize: string;
|
|
1762
|
+
lineHeight: string;
|
|
1763
|
+
letterSpacing: string;
|
|
1764
|
+
};
|
|
1765
|
+
'3xs': {
|
|
1766
|
+
fontFamily: string;
|
|
1767
|
+
fontWeight: string;
|
|
1768
|
+
fontSize: string;
|
|
1769
|
+
lineHeight: string;
|
|
1770
|
+
letterSpacing: string;
|
|
1771
|
+
};
|
|
1319
1772
|
};
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1773
|
+
body: {
|
|
1774
|
+
xl: {
|
|
1775
|
+
fontFamily: string;
|
|
1776
|
+
fontWeight: string;
|
|
1777
|
+
fontSize: string;
|
|
1778
|
+
lineHeight: string;
|
|
1779
|
+
letterSpacing: string;
|
|
1780
|
+
};
|
|
1781
|
+
lg: {
|
|
1782
|
+
fontFamily: string;
|
|
1783
|
+
fontWeight: string;
|
|
1784
|
+
fontSize: string;
|
|
1785
|
+
lineHeight: string;
|
|
1786
|
+
letterSpacing: string;
|
|
1787
|
+
};
|
|
1788
|
+
md: {
|
|
1789
|
+
fontFamily: string;
|
|
1790
|
+
fontWeight: string;
|
|
1791
|
+
fontSize: string;
|
|
1792
|
+
lineHeight: string;
|
|
1793
|
+
letterSpacing: string;
|
|
1794
|
+
};
|
|
1795
|
+
sm: {
|
|
1796
|
+
fontFamily: string;
|
|
1797
|
+
fontWeight: string;
|
|
1798
|
+
fontSize: string;
|
|
1799
|
+
lineHeight: string;
|
|
1800
|
+
letterSpacing: string;
|
|
1801
|
+
};
|
|
1802
|
+
xs: {
|
|
1803
|
+
fontFamily: string;
|
|
1804
|
+
fontWeight: string;
|
|
1805
|
+
fontSize: string;
|
|
1806
|
+
lineHeight: string;
|
|
1807
|
+
letterSpacing: string;
|
|
1808
|
+
};
|
|
1353
1809
|
};
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1810
|
+
label: {
|
|
1811
|
+
md: {
|
|
1812
|
+
fontFamily: string;
|
|
1813
|
+
fontWeight: string;
|
|
1814
|
+
fontSize: string;
|
|
1815
|
+
lineHeight: string;
|
|
1816
|
+
letterSpacing: string;
|
|
1817
|
+
};
|
|
1818
|
+
sm: {
|
|
1819
|
+
fontFamily: string;
|
|
1820
|
+
fontWeight: string;
|
|
1821
|
+
fontSize: string;
|
|
1822
|
+
lineHeight: string;
|
|
1823
|
+
letterSpacing: string;
|
|
1824
|
+
};
|
|
1364
1825
|
};
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1826
|
+
button: {
|
|
1827
|
+
md: {
|
|
1828
|
+
fontFamily: string;
|
|
1829
|
+
fontWeight: string;
|
|
1830
|
+
fontSize: string;
|
|
1831
|
+
lineHeight: string;
|
|
1832
|
+
letterSpacing: string;
|
|
1833
|
+
};
|
|
1834
|
+
sm: {
|
|
1835
|
+
fontFamily: string;
|
|
1836
|
+
fontWeight: string;
|
|
1837
|
+
fontSize: string;
|
|
1838
|
+
lineHeight: string;
|
|
1839
|
+
letterSpacing: string;
|
|
1840
|
+
};
|
|
1371
1841
|
};
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
letterSpacing: string;
|
|
1388
|
-
fontFeatureSettings: string;
|
|
1389
|
-
};
|
|
1390
|
-
xl: {
|
|
1391
|
-
fontFamily: string;
|
|
1392
|
-
fontWeight: string;
|
|
1393
|
-
fontSize: string;
|
|
1394
|
-
lineHeight: string;
|
|
1395
|
-
letterSpacing: string;
|
|
1396
|
-
fontFeatureSettings: string;
|
|
1397
|
-
};
|
|
1398
|
-
lg: {
|
|
1399
|
-
fontFamily: string;
|
|
1400
|
-
fontWeight: string;
|
|
1401
|
-
fontSize: string;
|
|
1402
|
-
lineHeight: string;
|
|
1403
|
-
letterSpacing: string;
|
|
1404
|
-
fontFeatureSettings: string;
|
|
1405
|
-
};
|
|
1406
|
-
md: {
|
|
1407
|
-
fontFamily: string;
|
|
1408
|
-
fontWeight: string;
|
|
1409
|
-
fontSize: string;
|
|
1410
|
-
lineHeight: string;
|
|
1411
|
-
letterSpacing: string;
|
|
1412
|
-
fontFeatureSettings: string;
|
|
1413
|
-
};
|
|
1414
|
-
sm: {
|
|
1415
|
-
fontFamily: string;
|
|
1416
|
-
fontWeight: string;
|
|
1417
|
-
fontSize: string;
|
|
1418
|
-
lineHeight: string;
|
|
1419
|
-
letterSpacing: string;
|
|
1420
|
-
fontFeatureSettings: string;
|
|
1421
|
-
};
|
|
1422
|
-
xs: {
|
|
1423
|
-
fontFamily: string;
|
|
1424
|
-
fontWeight: string;
|
|
1425
|
-
fontSize: string;
|
|
1426
|
-
lineHeight: string;
|
|
1427
|
-
letterSpacing: string;
|
|
1428
|
-
fontFeatureSettings: string;
|
|
1429
|
-
};
|
|
1430
|
-
'2xs': {
|
|
1431
|
-
fontFamily: string;
|
|
1432
|
-
fontWeight: string;
|
|
1433
|
-
fontSize: string;
|
|
1434
|
-
lineHeight: string;
|
|
1435
|
-
letterSpacing: string;
|
|
1436
|
-
fontFeatureSettings: string;
|
|
1437
|
-
};
|
|
1438
|
-
};
|
|
1439
|
-
title: {
|
|
1440
|
-
lg: {
|
|
1441
|
-
fontFamily: string;
|
|
1442
|
-
fontWeight: string;
|
|
1443
|
-
fontSize: string;
|
|
1444
|
-
lineHeight: string;
|
|
1445
|
-
letterSpacing: string;
|
|
1446
|
-
};
|
|
1447
|
-
md: {
|
|
1448
|
-
fontFamily: string;
|
|
1449
|
-
fontWeight: string;
|
|
1450
|
-
fontSize: string;
|
|
1451
|
-
lineHeight: string;
|
|
1452
|
-
letterSpacing: string;
|
|
1453
|
-
};
|
|
1454
|
-
sm: {
|
|
1455
|
-
fontFamily: string;
|
|
1456
|
-
fontWeight: string;
|
|
1457
|
-
fontSize: string;
|
|
1458
|
-
lineHeight: string;
|
|
1459
|
-
letterSpacing: string;
|
|
1460
|
-
};
|
|
1461
|
-
xs: {
|
|
1462
|
-
fontFamily: string;
|
|
1463
|
-
fontWeight: string;
|
|
1464
|
-
fontSize: string;
|
|
1465
|
-
lineHeight: string;
|
|
1466
|
-
letterSpacing: string;
|
|
1467
|
-
};
|
|
1468
|
-
'2xs': {
|
|
1469
|
-
fontFamily: string;
|
|
1470
|
-
fontWeight: string;
|
|
1471
|
-
fontSize: string;
|
|
1472
|
-
lineHeight: string;
|
|
1473
|
-
letterSpacing: string;
|
|
1474
|
-
};
|
|
1475
|
-
'3xs': {
|
|
1476
|
-
fontFamily: string;
|
|
1477
|
-
fontWeight: string;
|
|
1478
|
-
fontSize: string;
|
|
1479
|
-
lineHeight: string;
|
|
1480
|
-
letterSpacing: string;
|
|
1481
|
-
};
|
|
1482
|
-
};
|
|
1483
|
-
body: {
|
|
1484
|
-
xl: {
|
|
1485
|
-
fontFamily: string;
|
|
1486
|
-
fontWeight: string;
|
|
1487
|
-
fontSize: string;
|
|
1488
|
-
lineHeight: string;
|
|
1489
|
-
letterSpacing: string;
|
|
1490
|
-
};
|
|
1491
|
-
lg: {
|
|
1492
|
-
fontFamily: string;
|
|
1493
|
-
fontWeight: string;
|
|
1494
|
-
fontSize: string;
|
|
1495
|
-
lineHeight: string;
|
|
1496
|
-
letterSpacing: string;
|
|
1497
|
-
};
|
|
1498
|
-
md: {
|
|
1499
|
-
fontFamily: string;
|
|
1500
|
-
fontWeight: string;
|
|
1501
|
-
fontSize: string;
|
|
1502
|
-
lineHeight: string;
|
|
1503
|
-
letterSpacing: string;
|
|
1504
|
-
};
|
|
1505
|
-
sm: {
|
|
1506
|
-
fontFamily: string;
|
|
1507
|
-
fontWeight: string;
|
|
1508
|
-
fontSize: string;
|
|
1509
|
-
lineHeight: string;
|
|
1510
|
-
letterSpacing: string;
|
|
1511
|
-
};
|
|
1512
|
-
xs: {
|
|
1513
|
-
fontFamily: string;
|
|
1514
|
-
fontWeight: string;
|
|
1515
|
-
fontSize: string;
|
|
1516
|
-
lineHeight: string;
|
|
1517
|
-
letterSpacing: string;
|
|
1518
|
-
};
|
|
1519
|
-
};
|
|
1520
|
-
label: {
|
|
1521
|
-
md: {
|
|
1522
|
-
fontFamily: string;
|
|
1523
|
-
fontWeight: string;
|
|
1524
|
-
fontSize: string;
|
|
1525
|
-
lineHeight: string;
|
|
1526
|
-
letterSpacing: string;
|
|
1527
|
-
};
|
|
1528
|
-
sm: {
|
|
1529
|
-
fontFamily: string;
|
|
1530
|
-
fontWeight: string;
|
|
1531
|
-
fontSize: string;
|
|
1532
|
-
lineHeight: string;
|
|
1533
|
-
letterSpacing: string;
|
|
1534
|
-
};
|
|
1535
|
-
};
|
|
1536
|
-
button: {
|
|
1537
|
-
md: {
|
|
1538
|
-
fontFamily: string;
|
|
1539
|
-
fontWeight: string;
|
|
1540
|
-
fontSize: string;
|
|
1541
|
-
lineHeight: string;
|
|
1542
|
-
letterSpacing: string;
|
|
1543
|
-
};
|
|
1544
|
-
sm: {
|
|
1545
|
-
fontFamily: string;
|
|
1546
|
-
fontWeight: string;
|
|
1547
|
-
fontSize: string;
|
|
1548
|
-
lineHeight: string;
|
|
1549
|
-
letterSpacing: string;
|
|
1550
|
-
};
|
|
1551
|
-
};
|
|
1552
|
-
caption: {
|
|
1553
|
-
md: {
|
|
1554
|
-
fontFamily: string;
|
|
1555
|
-
fontWeight: string;
|
|
1556
|
-
fontSize: string;
|
|
1557
|
-
lineHeight: string;
|
|
1558
|
-
letterSpacing: string;
|
|
1559
|
-
};
|
|
1560
|
-
sm: {
|
|
1561
|
-
fontFamily: string;
|
|
1562
|
-
fontWeight: string;
|
|
1563
|
-
fontSize: string;
|
|
1564
|
-
lineHeight: string;
|
|
1565
|
-
letterSpacing: string;
|
|
1566
|
-
};
|
|
1567
|
-
};
|
|
1842
|
+
caption: {
|
|
1843
|
+
md: {
|
|
1844
|
+
fontFamily: string;
|
|
1845
|
+
fontWeight: string;
|
|
1846
|
+
fontSize: string;
|
|
1847
|
+
lineHeight: string;
|
|
1848
|
+
letterSpacing: string;
|
|
1849
|
+
};
|
|
1850
|
+
sm: {
|
|
1851
|
+
fontFamily: string;
|
|
1852
|
+
fontWeight: string;
|
|
1853
|
+
fontSize: string;
|
|
1854
|
+
lineHeight: string;
|
|
1855
|
+
letterSpacing: string;
|
|
1856
|
+
};
|
|
1568
1857
|
};
|
|
1858
|
+
};
|
|
1569
1859
|
};
|
|
1570
1860
|
/**
|
|
1571
1861
|
* @deprecated The `Theme` type is deprecated and will be removed in a future version.
|
|
1572
1862
|
*/
|
|
1573
1863
|
type Theme = typeof theme;
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1864
|
+
//#endregion
|
|
1865
|
+
//#region src/hooks/use-breakpoint.d.ts
|
|
1866
|
+
type UseBreakpointOptions = {
|
|
1867
|
+
/**
|
|
1868
|
+
* If `true` the initial value will be `base` instead of the current breakpoint.
|
|
1869
|
+
* This is to support hydration when using server side rendering.
|
|
1870
|
+
*
|
|
1871
|
+
* @default false
|
|
1872
|
+
*/
|
|
1873
|
+
ssr?: boolean;
|
|
1874
|
+
};
|
|
1584
1875
|
/**
|
|
1585
1876
|
* Hook for getting the current breakpoint.
|
|
1586
1877
|
*
|
|
@@ -1590,12 +1881,13 @@ interface UseBreakpointOptions {
|
|
|
1590
1881
|
* `usehooks-ts`.
|
|
1591
1882
|
*/
|
|
1592
1883
|
declare function useBreakpoint(params?: UseBreakpointOptions): {
|
|
1593
|
-
|
|
1884
|
+
currentBreakpoint: "2xl" | "base" | "sm" | "md" | "lg" | "xl";
|
|
1594
1885
|
};
|
|
1595
|
-
|
|
1886
|
+
//#endregion
|
|
1887
|
+
//#region src/hooks/use-breakpoint-value.d.ts
|
|
1596
1888
|
type Breakpoints = Theme['breakpoints'];
|
|
1597
1889
|
type BreakpointsConfig<T> = PartialRecord<keyof Breakpoints, T> & {
|
|
1598
|
-
|
|
1890
|
+
base: T;
|
|
1599
1891
|
};
|
|
1600
1892
|
type UseBreakpointValueProps<T> = BreakpointsConfig<T>;
|
|
1601
1893
|
/**
|
|
@@ -1610,35 +1902,36 @@ type UseBreakpointValueProps<T> = BreakpointsConfig<T>;
|
|
|
1610
1902
|
* const width = useBreakpointValue({ base: '150px', md: '250px' })
|
|
1611
1903
|
*/
|
|
1612
1904
|
declare function useBreakpointValue<T>(values: UseBreakpointValueProps<T>, options?: UseBreakpointOptions): T;
|
|
1613
|
-
|
|
1905
|
+
//#endregion
|
|
1906
|
+
//#region src/hooks/use-form-field.d.ts
|
|
1614
1907
|
type FormFieldElement = 'input' | 'select' | 'textarea';
|
|
1615
1908
|
type PropGetter<T extends ElementType = LegitimateAny> = (props?: HTMLQdsProps<T>) => Record<string, unknown>;
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
}
|
|
1909
|
+
type FormFieldOptions = {
|
|
1910
|
+
/**
|
|
1911
|
+
* The label for the form field
|
|
1912
|
+
*/
|
|
1913
|
+
label: string;
|
|
1914
|
+
/**
|
|
1915
|
+
* The error message to display if `isInvalid` is `true`
|
|
1916
|
+
*/
|
|
1917
|
+
errorMessage?: string;
|
|
1918
|
+
/**
|
|
1919
|
+
* Text that provides additional guidance to the user
|
|
1920
|
+
*/
|
|
1921
|
+
helperText?: string;
|
|
1922
|
+
/**
|
|
1923
|
+
* If `true`, the form field will be invalid
|
|
1924
|
+
*/
|
|
1925
|
+
isInvalid?: boolean;
|
|
1926
|
+
/**
|
|
1927
|
+
* If `true`, the form field will be disabled
|
|
1928
|
+
*/
|
|
1929
|
+
isDisabled?: boolean;
|
|
1930
|
+
/**
|
|
1931
|
+
* If `true` the form field will be required
|
|
1932
|
+
*/
|
|
1933
|
+
isRequired?: boolean;
|
|
1934
|
+
};
|
|
1642
1935
|
type OmittedProps = 'children' | 'readOnly' | 'size';
|
|
1643
1936
|
type UseFormFieldProps<T extends FormFieldElement> = Omit<HTMLQdsProps<T>, OmittedProps> & FormFieldOptions;
|
|
1644
1937
|
/**
|
|
@@ -1648,21 +1941,23 @@ type UseFormFieldProps<T extends FormFieldElement> = Omit<HTMLQdsProps<T>, Omitt
|
|
|
1648
1941
|
* Used internally by `TextField`, `Select` and `Textarea`.
|
|
1649
1942
|
*/
|
|
1650
1943
|
declare const useFormField: <T extends FormFieldElement>(props: UseFormFieldProps<T>) => {
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1944
|
+
getLabelProps: PropGetter<"label">;
|
|
1945
|
+
/**
|
|
1946
|
+
* Props to be spread on the input, select or textarea element.
|
|
1947
|
+
* Function accepts an optional object of props to be merged with the returned props.
|
|
1948
|
+
*/
|
|
1949
|
+
getFieldProps: PropGetter<T>;
|
|
1950
|
+
getHelperTextProps: PropGetter<"div">;
|
|
1951
|
+
getErrorMessageProps: PropGetter<"div">;
|
|
1659
1952
|
};
|
|
1660
|
-
|
|
1953
|
+
//#endregion
|
|
1954
|
+
//#region src/hooks/use-stable-id.d.ts
|
|
1661
1955
|
/**
|
|
1662
1956
|
* Returns a stable ID that is unique to the component instance.
|
|
1663
1957
|
*/
|
|
1664
1958
|
declare function useStableId(fixedId?: string | null): string;
|
|
1665
|
-
|
|
1959
|
+
//#endregion
|
|
1960
|
+
//#region src/hooks/use-safe-layout-effect.d.ts
|
|
1666
1961
|
/**
|
|
1667
1962
|
* On the server, React emits a warning when calling `useLayoutEffect`.
|
|
1668
1963
|
* This is because neither `useLayoutEffect` nor `useEffect` run on the server.
|
|
@@ -1671,5 +1966,6 @@ declare function useStableId(fixedId?: string | null): string;
|
|
|
1671
1966
|
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
|
|
1672
1967
|
*/
|
|
1673
1968
|
declare const useSafeLayoutEffect: typeof useLayoutEffect;
|
|
1674
|
-
|
|
1675
|
-
export { AlertCircleIcon, AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Avatar,
|
|
1969
|
+
//#endregion
|
|
1970
|
+
export { AlertCircleIcon, AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Avatar, AvatarProps, BellIcon, BellOffIcon, BookmarkFilledIcon, BookmarkIcon, Button, type ButtonProps, CalendarIcon, CameraIcon, CheckCircleIcon, CheckIcon, Checkbox, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CreateIconOptions, DisplayText, DisplayTextProps, Divider, DividerProps, DropdownMenu, type DropdownMenuContentProps, type DropdownMenuDividerProps, type DropdownMenuItemProps, type DropdownMenuRootProps, type DropdownMenuTriggerProps, type ForwardRefComponent, GlobeIcon, Heading, HeadingProps, HeartFilledIcon, HeartIcon, HelpCircleIcon, HintBox, HintBoxProps, HintBoxTitleProps, HistoryIcon, HomeIcon, IconButton, IconButtonProps, type IconProps, ImageIcon, InfoIcon, InputBase, InputBaseOptions, InputBaseProps, type IntrinsicElement, Label, LabelProps, Link, LinkProps, ListFilterIcon, ListIcon, LoadingDots, LoadingDotsProps, LogOutIcon, MapIcon, MapPinIcon, MenuIcon, MessageCircleIcon, MinusIcon, MoreHorizontalIcon, MoreVerticalIcon, type OwnProps, Paragraph, ParagraphProps, PenIcon, PlusIcon, type PropsOf, QdsProvider, type RadioButtonProps, type RadioCardProps, RadioGroup, type RadioGroupLabelProps, RadioGroupProps, SearchIcon, Select, SelectBase, SelectBaseOptions, type SelectOptionProps, SelectProps, SettingsIcon, ShareIcon, SlidersIcon, Spacer, SpacerProps, Stack, StackProps, StarFilledIcon, StarIcon, Switch, SwitchProps, TextField, TextFieldProps, Textarea, TextareaBase, TextareaBaseOptions, TextareaBaseProps, TextareaProps, Theme, Toast, TrashIcon, UseBreakpointOptions, UseBreakpointValueProps, UseFormFieldProps, UserIcon, XCircleIcon, XIcon, createIcon, createLucideIcon, pxToRem, theme, toast, useBreakpoint, useBreakpointValue, useFormField, useSafeLayoutEffect, useStableId };
|
|
1971
|
+
//# sourceMappingURL=index.d.ts.map
|