@causw/core 0.0.8 → 0.0.9
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.mts +186 -284
- package/dist/index.d.ts +186 -284
- package/dist/index.js +619 -228
- package/dist/index.mjs +611 -228
- package/package.json +5 -3
- package/src/styles/global.css +123 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,295 +1,153 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
import { ClassValue } from 'clsx';
|
|
3
4
|
|
|
4
|
-
type
|
|
5
|
-
type TextSize = 'sm' | 'md';
|
|
6
|
-
type FixedSize = 12 | 14 | 15 | 16 | 18 | 20 | 24;
|
|
5
|
+
type Typography = 'caption-sm' | 'caption-sm-point' | 'caption-md' | 'caption-md-point' | 'body2-sm' | 'body2-sm-point' | 'body2-md' | 'body2-md-point' | 'body-sm' | 'body-sm-point' | 'body-md' | 'body-md-point' | 'subtitle-sm' | 'subtitle-sm-point' | 'subtitle-md' | 'subtitle-md-point' | 'title-sm' | 'title-md' | 'head-sm' | 'head-md' | 'fixed-12' | 'fixed-14' | 'fixed-15' | 'fixed-16' | 'fixed-18' | 'fixed-20' | 'fixed-24';
|
|
7
6
|
type TextColor = 'gray-50' | 'gray-100' | 'gray-200' | 'gray-300' | 'gray-400' | 'gray-500' | 'gray-600' | 'gray-700' | 'gray-800' | 'gray-900' | 'blue-50' | 'blue-500' | 'blue-700' | 'red-100' | 'red-400' | 'white' | 'black';
|
|
7
|
+
type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Polymorphic component props (includes ref)
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* type ButtonProps<E extends React.ElementType = 'button'> =
|
|
15
|
+
* PolymorphicProps<E, { variant?: 'primary' | 'secondary' }>;
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
type PolymorphicProps<E extends React.ElementType = 'div', Props = object> = Props & {
|
|
19
|
+
as?: E;
|
|
20
|
+
} & Omit<React.ComponentProps<E>, keyof Props | 'as'>;
|
|
21
|
+
/**
|
|
22
|
+
* Polymorphic component props without ref
|
|
23
|
+
*/
|
|
24
|
+
type PolymorphicPropsWithoutRef<E extends React.ElementType = 'div', Props = object> = Props & {
|
|
25
|
+
as?: E;
|
|
26
|
+
} & Omit<React.ComponentPropsWithoutRef<E>, keyof Props | 'as'>;
|
|
27
|
+
|
|
28
|
+
/** Text element types that can be used with as prop */
|
|
29
|
+
type TextElement = 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'label' | 'a';
|
|
30
|
+
/** Base text styling props - reusable for other components */
|
|
31
|
+
interface TextStyleProps {
|
|
32
|
+
/** Typography preset - format: {variant}-{size}[-point] */
|
|
33
|
+
typography?: Typography;
|
|
34
|
+
/** Text color */
|
|
35
|
+
textColor?: TextColor;
|
|
36
|
+
/** Text alignment */
|
|
37
|
+
align?: TextAlign;
|
|
38
|
+
}
|
|
39
|
+
/** Full Text component props with polymorphic support */
|
|
40
|
+
type TextProps<E extends TextElement = 'span'> = PolymorphicProps<E, TextStyleProps>;
|
|
41
|
+
declare const Text: {
|
|
42
|
+
<E extends TextElement = "span">({ typography, textColor, align, as, children, className, ...props }: TextProps<E>): React.DetailedReactHTMLElement<{
|
|
43
|
+
className: string;
|
|
44
|
+
} & Omit<TextProps<E>, "as" | "typography" | "textColor" | "align" | "className" | "children">, HTMLSpanElement>;
|
|
45
|
+
displayName: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
error?: boolean;
|
|
52
|
+
}
|
|
53
|
+
type FieldLabelProps<E extends TextElement = 'label'> = PolymorphicProps<E, TextStyleProps>;
|
|
54
|
+
interface FieldDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
55
|
+
children: React.ReactNode;
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
interface FieldErrorDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
59
|
children: React.ReactNode;
|
|
60
|
+
className?: string;
|
|
61
|
+
}
|
|
62
|
+
declare const Field: {
|
|
63
|
+
({ children, disabled, error, className, ...props }: FieldProps): react_jsx_runtime.JSX.Element;
|
|
64
|
+
displayName: string;
|
|
65
|
+
} & {
|
|
66
|
+
Label: {
|
|
67
|
+
<E extends TextElement = "label">({ children, className, typography, textColor, ...labelProps }: FieldLabelProps<E>): react_jsx_runtime.JSX.Element;
|
|
68
|
+
displayName: string;
|
|
69
|
+
};
|
|
70
|
+
Description: {
|
|
71
|
+
({ children, className, ...props }: FieldDescriptionProps): react_jsx_runtime.JSX.Element | null;
|
|
72
|
+
displayName: string;
|
|
73
|
+
};
|
|
74
|
+
ErrorDescription: {
|
|
75
|
+
({ children, className, ...props }: FieldErrorDescriptionProps): react_jsx_runtime.JSX.Element | null;
|
|
76
|
+
displayName: string;
|
|
77
|
+
};
|
|
14
78
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
79
|
+
|
|
80
|
+
type TextInputVariant = 'default' | 'underline';
|
|
81
|
+
interface TextInputProps extends React.ComponentProps<'input'>, TextStyleProps {
|
|
82
|
+
/** Input variant style */
|
|
83
|
+
variant?: TextInputVariant;
|
|
84
|
+
/** Icon to display on the left side of input */
|
|
85
|
+
leftIcon?: React.ReactNode;
|
|
86
|
+
/** Icon to display on the right side of input */
|
|
87
|
+
rightIcon?: React.ReactNode;
|
|
88
|
+
/** Error state (overrides Field context) */
|
|
89
|
+
error?: boolean;
|
|
90
|
+
}
|
|
91
|
+
declare const TextInput: {
|
|
92
|
+
({ id: idProp, disabled: disabledProp, error: errorProp, className, leftIcon, rightIcon, variant, typography, textColor, ...props }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
93
|
+
displayName: string;
|
|
19
94
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
95
|
+
|
|
96
|
+
interface PrimitiveProps {
|
|
97
|
+
/**
|
|
98
|
+
* Whether the element should be rendered as a child of a slot.
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
asChild?: boolean;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
interface TextAreaProps extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {
|
|
105
|
+
children: React.ReactNode;
|
|
106
|
+
}
|
|
107
|
+
interface TextAreaInputProps extends React.ComponentProps<'textarea'> {
|
|
108
|
+
/** Whether to allow vertical resizing @default true */
|
|
109
|
+
resize?: boolean;
|
|
110
|
+
}
|
|
111
|
+
interface TextAreaFooterProps extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {
|
|
112
|
+
children: React.ReactNode;
|
|
113
|
+
}
|
|
114
|
+
declare const TextArea: {
|
|
115
|
+
({ className, children, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
116
|
+
displayName: string;
|
|
117
|
+
} & {
|
|
118
|
+
Input: {
|
|
119
|
+
({ resize, disabled: disabledProp, className, ...props }: TextAreaInputProps): react_jsx_runtime.JSX.Element;
|
|
120
|
+
displayName: string;
|
|
121
|
+
};
|
|
122
|
+
Footer: {
|
|
123
|
+
({ className, children, ...props }: TextAreaFooterProps): react_jsx_runtime.JSX.Element;
|
|
124
|
+
displayName: string;
|
|
125
|
+
};
|
|
24
126
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
translate?: "yes" | "no" | undefined;
|
|
50
|
-
radioGroup?: string | undefined;
|
|
51
|
-
role?: React.AriaRole | undefined;
|
|
52
|
-
about?: string | undefined;
|
|
53
|
-
content?: string | undefined;
|
|
54
|
-
datatype?: string | undefined;
|
|
55
|
-
inlist?: any;
|
|
56
|
-
prefix?: string | undefined;
|
|
57
|
-
property?: string | undefined;
|
|
58
|
-
rel?: string | undefined;
|
|
59
|
-
resource?: string | undefined;
|
|
60
|
-
rev?: string | undefined;
|
|
61
|
-
typeof?: string | undefined;
|
|
62
|
-
vocab?: string | undefined;
|
|
63
|
-
autoCorrect?: string | undefined;
|
|
64
|
-
autoSave?: string | undefined;
|
|
65
|
-
itemProp?: string | undefined;
|
|
66
|
-
itemScope?: boolean | undefined;
|
|
67
|
-
itemType?: string | undefined;
|
|
68
|
-
itemID?: string | undefined;
|
|
69
|
-
itemRef?: string | undefined;
|
|
70
|
-
results?: number | undefined;
|
|
71
|
-
security?: string | undefined;
|
|
72
|
-
unselectable?: "on" | "off" | undefined;
|
|
73
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
74
|
-
is?: string | undefined;
|
|
75
|
-
exportparts?: string | undefined;
|
|
76
|
-
part?: string | undefined;
|
|
77
|
-
"aria-activedescendant"?: string | undefined;
|
|
78
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
79
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
80
|
-
"aria-braillelabel"?: string | undefined;
|
|
81
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
82
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
83
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
84
|
-
"aria-colcount"?: number | undefined;
|
|
85
|
-
"aria-colindex"?: number | undefined;
|
|
86
|
-
"aria-colindextext"?: string | undefined;
|
|
87
|
-
"aria-colspan"?: number | undefined;
|
|
88
|
-
"aria-controls"?: string | undefined;
|
|
89
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
90
|
-
"aria-describedby"?: string | undefined;
|
|
91
|
-
"aria-description"?: string | undefined;
|
|
92
|
-
"aria-details"?: string | undefined;
|
|
93
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
94
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
95
|
-
"aria-errormessage"?: string | undefined;
|
|
96
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
97
|
-
"aria-flowto"?: string | undefined;
|
|
98
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
99
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
100
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
101
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
102
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
103
|
-
"aria-label"?: string | undefined;
|
|
104
|
-
"aria-labelledby"?: string | undefined;
|
|
105
|
-
"aria-level"?: number | undefined;
|
|
106
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
107
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
108
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
109
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
110
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
111
|
-
"aria-owns"?: string | undefined;
|
|
112
|
-
"aria-placeholder"?: string | undefined;
|
|
113
|
-
"aria-posinset"?: number | undefined;
|
|
114
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
115
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
116
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
117
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
118
|
-
"aria-roledescription"?: string | undefined;
|
|
119
|
-
"aria-rowcount"?: number | undefined;
|
|
120
|
-
"aria-rowindex"?: number | undefined;
|
|
121
|
-
"aria-rowindextext"?: string | undefined;
|
|
122
|
-
"aria-rowspan"?: number | undefined;
|
|
123
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
124
|
-
"aria-setsize"?: number | undefined;
|
|
125
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
126
|
-
"aria-valuemax"?: number | undefined;
|
|
127
|
-
"aria-valuemin"?: number | undefined;
|
|
128
|
-
"aria-valuenow"?: number | undefined;
|
|
129
|
-
"aria-valuetext"?: string | undefined;
|
|
130
|
-
dangerouslySetInnerHTML?: {
|
|
131
|
-
__html: string | TrustedHTML;
|
|
132
|
-
} | undefined;
|
|
133
|
-
onCopy?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
134
|
-
onCopyCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
135
|
-
onCut?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
136
|
-
onCutCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
137
|
-
onPaste?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
138
|
-
onPasteCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
139
|
-
onCompositionEnd?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
140
|
-
onCompositionEndCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
141
|
-
onCompositionStart?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
142
|
-
onCompositionStartCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
143
|
-
onCompositionUpdate?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
144
|
-
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
145
|
-
onFocus?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
146
|
-
onFocusCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
147
|
-
onBlur?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
148
|
-
onBlurCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
149
|
-
onChange?: React.FormEventHandler<HTMLElement> | undefined;
|
|
150
|
-
onChangeCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
151
|
-
onBeforeInput?: React.InputEventHandler<HTMLElement> | undefined;
|
|
152
|
-
onBeforeInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
153
|
-
onInput?: React.FormEventHandler<HTMLElement> | undefined;
|
|
154
|
-
onInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
155
|
-
onReset?: React.FormEventHandler<HTMLElement> | undefined;
|
|
156
|
-
onResetCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
157
|
-
onSubmit?: React.FormEventHandler<HTMLElement> | undefined;
|
|
158
|
-
onSubmitCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
159
|
-
onInvalid?: React.FormEventHandler<HTMLElement> | undefined;
|
|
160
|
-
onInvalidCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
161
|
-
onLoad?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
162
|
-
onLoadCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
163
|
-
onError?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
164
|
-
onErrorCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
165
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
166
|
-
onKeyDownCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
167
|
-
onKeyPress?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
168
|
-
onKeyPressCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
169
|
-
onKeyUp?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
170
|
-
onKeyUpCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
171
|
-
onAbort?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
172
|
-
onAbortCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
173
|
-
onCanPlay?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
174
|
-
onCanPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
175
|
-
onCanPlayThrough?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
176
|
-
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
177
|
-
onDurationChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
178
|
-
onDurationChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
179
|
-
onEmptied?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
180
|
-
onEmptiedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
181
|
-
onEncrypted?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
182
|
-
onEncryptedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
183
|
-
onEnded?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
184
|
-
onEndedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
185
|
-
onLoadedData?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
186
|
-
onLoadedDataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
187
|
-
onLoadedMetadata?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
188
|
-
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
189
|
-
onLoadStart?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
190
|
-
onLoadStartCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
191
|
-
onPause?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
192
|
-
onPauseCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
193
|
-
onPlay?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
194
|
-
onPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
195
|
-
onPlaying?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
196
|
-
onPlayingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
197
|
-
onProgress?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
198
|
-
onProgressCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
199
|
-
onRateChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
200
|
-
onRateChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
201
|
-
onSeeked?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
202
|
-
onSeekedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
203
|
-
onSeeking?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
204
|
-
onSeekingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
205
|
-
onStalled?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
206
|
-
onStalledCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
207
|
-
onSuspend?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
208
|
-
onSuspendCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
209
|
-
onTimeUpdate?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
210
|
-
onTimeUpdateCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
211
|
-
onVolumeChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
212
|
-
onVolumeChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
213
|
-
onWaiting?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
214
|
-
onWaitingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
215
|
-
onAuxClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
216
|
-
onAuxClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
217
|
-
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
218
|
-
onClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
219
|
-
onContextMenu?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
220
|
-
onContextMenuCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
221
|
-
onDoubleClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
222
|
-
onDoubleClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
223
|
-
onDrag?: React.DragEventHandler<HTMLElement> | undefined;
|
|
224
|
-
onDragCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
225
|
-
onDragEnd?: React.DragEventHandler<HTMLElement> | undefined;
|
|
226
|
-
onDragEndCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
227
|
-
onDragEnter?: React.DragEventHandler<HTMLElement> | undefined;
|
|
228
|
-
onDragEnterCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
229
|
-
onDragExit?: React.DragEventHandler<HTMLElement> | undefined;
|
|
230
|
-
onDragExitCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
231
|
-
onDragLeave?: React.DragEventHandler<HTMLElement> | undefined;
|
|
232
|
-
onDragLeaveCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
233
|
-
onDragOver?: React.DragEventHandler<HTMLElement> | undefined;
|
|
234
|
-
onDragOverCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
235
|
-
onDragStart?: React.DragEventHandler<HTMLElement> | undefined;
|
|
236
|
-
onDragStartCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
237
|
-
onDrop?: React.DragEventHandler<HTMLElement> | undefined;
|
|
238
|
-
onDropCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
239
|
-
onMouseDown?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
240
|
-
onMouseDownCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
241
|
-
onMouseEnter?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
242
|
-
onMouseLeave?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
243
|
-
onMouseMove?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
244
|
-
onMouseMoveCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
245
|
-
onMouseOut?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
246
|
-
onMouseOutCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
247
|
-
onMouseOver?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
248
|
-
onMouseOverCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
249
|
-
onMouseUp?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
250
|
-
onMouseUpCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
251
|
-
onSelect?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
252
|
-
onSelectCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
253
|
-
onTouchCancel?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
254
|
-
onTouchCancelCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
255
|
-
onTouchEnd?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
256
|
-
onTouchEndCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
257
|
-
onTouchMove?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
258
|
-
onTouchMoveCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
259
|
-
onTouchStart?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
260
|
-
onTouchStartCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
261
|
-
onPointerDown?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
262
|
-
onPointerDownCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
263
|
-
onPointerMove?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
264
|
-
onPointerMoveCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
265
|
-
onPointerUp?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
266
|
-
onPointerUpCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
267
|
-
onPointerCancel?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
268
|
-
onPointerCancelCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
269
|
-
onPointerEnter?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
270
|
-
onPointerLeave?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
271
|
-
onPointerOver?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
272
|
-
onPointerOverCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
273
|
-
onPointerOut?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
274
|
-
onPointerOutCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
275
|
-
onGotPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
276
|
-
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
277
|
-
onLostPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
278
|
-
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
279
|
-
onScroll?: React.UIEventHandler<HTMLElement> | undefined;
|
|
280
|
-
onScrollCapture?: React.UIEventHandler<HTMLElement> | undefined;
|
|
281
|
-
onWheel?: React.WheelEventHandler<HTMLElement> | undefined;
|
|
282
|
-
onWheelCapture?: React.WheelEventHandler<HTMLElement> | undefined;
|
|
283
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
284
|
-
onAnimationStartCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
285
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
286
|
-
onAnimationEndCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
287
|
-
onAnimationIteration?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
288
|
-
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
289
|
-
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
290
|
-
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
291
|
-
className: string;
|
|
292
|
-
}, HTMLElement>;
|
|
127
|
+
|
|
128
|
+
interface RadioGroupContextValue {
|
|
129
|
+
name: string;
|
|
130
|
+
value?: string;
|
|
131
|
+
onChange?: (value: string) => void;
|
|
132
|
+
}
|
|
133
|
+
declare const useRadioGroupContext: () => RadioGroupContextValue | null;
|
|
134
|
+
interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {
|
|
135
|
+
name: string;
|
|
136
|
+
value?: string;
|
|
137
|
+
defaultValue?: string;
|
|
138
|
+
onValueChange?: (value: string) => void;
|
|
139
|
+
children: React.ReactNode;
|
|
140
|
+
}
|
|
141
|
+
declare const RadioGroup: {
|
|
142
|
+
({ name, value, defaultValue, onValueChange, className, children, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
143
|
+
displayName: string;
|
|
144
|
+
};
|
|
145
|
+
interface RadioProps extends Omit<React.ComponentProps<'input'>, 'type'> {
|
|
146
|
+
value: string;
|
|
147
|
+
children: React.ReactNode;
|
|
148
|
+
}
|
|
149
|
+
declare const Radio: {
|
|
150
|
+
({ value, children, className, checked: checkedProp, onChange, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
293
151
|
displayName: string;
|
|
294
152
|
};
|
|
295
153
|
|
|
@@ -302,4 +160,48 @@ declare const Text: {
|
|
|
302
160
|
*/
|
|
303
161
|
declare function mergeStyles(...inputs: ClassValue[]): string;
|
|
304
162
|
|
|
305
|
-
|
|
163
|
+
interface ToggleRootProps extends Omit<React.ComponentProps<'label'>, 'onChange'> {
|
|
164
|
+
checked?: boolean;
|
|
165
|
+
defaultChecked?: boolean;
|
|
166
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
167
|
+
disabled?: boolean;
|
|
168
|
+
children?: React.ReactNode;
|
|
169
|
+
}
|
|
170
|
+
type ToggleLabelProps<E extends TextElement = 'span'> = PolymorphicProps<E, TextStyleProps>;
|
|
171
|
+
declare const Toggle: {
|
|
172
|
+
({ checked: checkedProp, defaultChecked, onCheckedChange, disabled, children, className, ...props }: ToggleRootProps): react_jsx_runtime.JSX.Element;
|
|
173
|
+
displayName: string;
|
|
174
|
+
} & {
|
|
175
|
+
Switch: {
|
|
176
|
+
(): react_jsx_runtime.JSX.Element;
|
|
177
|
+
displayName: string;
|
|
178
|
+
};
|
|
179
|
+
Label: {
|
|
180
|
+
<E extends TextElement = "span">({ children, typography, textColor, ...props }: ToggleLabelProps<E>): react_jsx_runtime.JSX.Element;
|
|
181
|
+
displayName: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
interface CheckboxRootProps extends Omit<React.ComponentProps<'label'>, 'onChange'> {
|
|
186
|
+
checked?: boolean;
|
|
187
|
+
defaultChecked?: boolean;
|
|
188
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
189
|
+
disabled?: boolean;
|
|
190
|
+
children?: React.ReactNode;
|
|
191
|
+
}
|
|
192
|
+
type CheckboxLabelProps<E extends TextElement = 'span'> = PolymorphicProps<E, TextStyleProps>;
|
|
193
|
+
declare const Checkbox: {
|
|
194
|
+
({ checked: checkedProp, defaultChecked, onCheckedChange, disabled, children, className, ...props }: CheckboxRootProps): react_jsx_runtime.JSX.Element;
|
|
195
|
+
displayName: string;
|
|
196
|
+
} & {
|
|
197
|
+
Indicator: {
|
|
198
|
+
(): react_jsx_runtime.JSX.Element;
|
|
199
|
+
displayName: string;
|
|
200
|
+
};
|
|
201
|
+
Label: {
|
|
202
|
+
<E extends TextElement = "span">({ children, typography, textColor, ...props }: CheckboxLabelProps<E>): react_jsx_runtime.JSX.Element;
|
|
203
|
+
displayName: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export { Checkbox, type CheckboxLabelProps, type CheckboxRootProps, Field, type FieldDescriptionProps, type FieldErrorDescriptionProps, type FieldLabelProps, type FieldProps, type PolymorphicProps, type PolymorphicPropsWithoutRef, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Text, TextArea, type TextAreaFooterProps, type TextAreaInputProps, type TextAreaProps, type TextColor, TextInput, type TextInputProps, type TextInputVariant, type TextProps, type TextStyleProps, Toggle, type ToggleLabelProps, type ToggleRootProps, type Typography, mergeStyles, useRadioGroupContext };
|