quickit-ui 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -0
- package/dist/quickit-ui.css +1 -1
- package/dist/quickit-ui.d.ts +41 -0
- package/dist/quickit-ui.js +2257 -1970
- package/package.json +1 -1
package/dist/quickit-ui.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare const QUICKIT_BUTTON_VARIANTS: readonly [
|
|
|
41
41
|
export declare const QUICKIT_BUTTON_SHAPES: readonly [
|
|
42
42
|
"default",
|
|
43
43
|
"square",
|
|
44
|
+
"circle",
|
|
44
45
|
"pill",
|
|
45
46
|
];
|
|
46
47
|
export declare const QUICKIT_AVATAR_SHAPES: readonly [
|
|
@@ -67,6 +68,20 @@ export declare const QUICKIT_BREAKPOINTS: Readonly<{
|
|
|
67
68
|
xl: 1280;
|
|
68
69
|
"2xl": 1536;
|
|
69
70
|
}>;
|
|
71
|
+
export declare const QUICKIT_FOCUS_RING_COMPONENTS: readonly [
|
|
72
|
+
"button",
|
|
73
|
+
"link",
|
|
74
|
+
"input",
|
|
75
|
+
"textarea",
|
|
76
|
+
"select",
|
|
77
|
+
"checkbox",
|
|
78
|
+
"radio",
|
|
79
|
+
"switch",
|
|
80
|
+
"tabs",
|
|
81
|
+
"accordion",
|
|
82
|
+
"dropdown",
|
|
83
|
+
"modal",
|
|
84
|
+
];
|
|
70
85
|
export declare const QUICKIT_CONTROL_RADIUS_TOKENS: Record<string, string>;
|
|
71
86
|
export declare const QUICKIT_AVATAR_RADIUS_TOKENS: Record<
|
|
72
87
|
string,
|
|
@@ -95,6 +110,8 @@ export type QuickitLinkUnderline =
|
|
|
95
110
|
export type QuickitTabSize = (typeof QUICKIT_TAB_SIZES)[number];
|
|
96
111
|
export type QuickitBreakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
97
112
|
export type QuickitFloatingColor = "default" | QuickitSemanticColor;
|
|
113
|
+
export type QuickitFocusRingComponent =
|
|
114
|
+
(typeof QUICKIT_FOCUS_RING_COMPONENTS)[number];
|
|
98
115
|
export interface QuickitBreakpoints {
|
|
99
116
|
sm: number;
|
|
100
117
|
md: number;
|
|
@@ -102,6 +119,10 @@ export interface QuickitBreakpoints {
|
|
|
102
119
|
xl: number;
|
|
103
120
|
"2xl": number;
|
|
104
121
|
}
|
|
122
|
+
export interface QuickitFocusRingConfig {
|
|
123
|
+
disabledComponents?: QuickitFocusRingComponent[];
|
|
124
|
+
enabled?: boolean;
|
|
125
|
+
}
|
|
105
126
|
|
|
106
127
|
export declare function isQuickitTokenValue(
|
|
107
128
|
collection: readonly string[],
|
|
@@ -122,12 +143,20 @@ export declare function getAvatarRadius(
|
|
|
122
143
|
|
|
123
144
|
export interface QuickitProviderProps {
|
|
124
145
|
children?: React.ReactNode;
|
|
146
|
+
focusRing?: boolean | QuickitFocusRingConfig;
|
|
125
147
|
theme?: QuickitThemeMode;
|
|
126
148
|
}
|
|
127
149
|
export declare function QuickitProvider(
|
|
128
150
|
props: QuickitProviderProps,
|
|
129
151
|
): React.JSX.Element;
|
|
130
152
|
export declare function useQuickitTheme(): QuickitThemeMode;
|
|
153
|
+
export declare function useQuickitFocusRing(
|
|
154
|
+
component: QuickitFocusRingComponent,
|
|
155
|
+
): boolean;
|
|
156
|
+
export declare function useQuickitFocusRingConfig(): {
|
|
157
|
+
disabledComponents: QuickitFocusRingComponent[];
|
|
158
|
+
enabled: boolean;
|
|
159
|
+
};
|
|
131
160
|
export interface UseBreakpointOptions {
|
|
132
161
|
breakpoints?: Partial<QuickitBreakpoints>;
|
|
133
162
|
}
|
|
@@ -348,10 +377,22 @@ type TextareaBaseProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
|
348
377
|
type LabelBaseProps = React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
349
378
|
|
|
350
379
|
export interface InputProps extends InputBaseProps {
|
|
380
|
+
actionShape?: "square" | "circle";
|
|
351
381
|
color?: QuickitSemanticColor;
|
|
382
|
+
clearButton?: boolean;
|
|
383
|
+
clearButtonLabel?: string;
|
|
384
|
+
clearIcon?: React.ReactNode;
|
|
385
|
+
defaultPasswordVisible?: boolean;
|
|
386
|
+
hidePasswordIcon?: React.ReactNode;
|
|
387
|
+
hidePasswordLabel?: string;
|
|
352
388
|
invalid?: boolean;
|
|
389
|
+
onClear?: () => void;
|
|
390
|
+
onPasswordVisibilityChange?: (visible: boolean) => void;
|
|
391
|
+
passwordToggle?: boolean;
|
|
353
392
|
required?: boolean;
|
|
354
393
|
size?: "sm" | "md" | "lg";
|
|
394
|
+
showPasswordIcon?: React.ReactNode;
|
|
395
|
+
showPasswordLabel?: string;
|
|
355
396
|
}
|
|
356
397
|
export declare const Input: React.ForwardRefExoticComponent<
|
|
357
398
|
InputProps & React.RefAttributes<HTMLInputElement>
|