@okshaun/components 0.5.8 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -26
- package/dist/.mcp.json +11 -0
- package/dist/index.d.ts +3 -1268
- package/dist/index.js +1231 -957
- package/dist/index.js.map +1 -1
- package/dist/okshaun-logo-white.svg +11 -0
- package/dist/okshaun-logo.svg +11 -0
- package/dist/preset-BzrKiUEH.js +8452 -0
- package/dist/preset-BzrKiUEH.js.map +1 -0
- package/dist/preset.js +3 -7234
- package/dist/preset.js.map +1 -1
- package/dist/specs/animation-styles.json +4 -0
- package/dist/specs/color-palette.json +98 -0
- package/dist/specs/conditions.json +1901 -0
- package/dist/specs/keyframes.json +137 -0
- package/dist/specs/layer-styles.json +23 -0
- package/dist/specs/patterns.json +475 -0
- package/dist/specs/recipes.json +907 -0
- package/dist/specs/semantic-tokens.json +2837 -0
- package/dist/specs/text-styles.json +149 -0
- package/dist/specs/tokens.json +2750 -0
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +14 -14
- package/dist/styles/global.css +148 -0
- package/dist/styles/recipes/avatar.css +185 -0
- package/dist/styles/recipes/badge.css +85 -0
- package/dist/styles/recipes/breadcrumbs.css +38 -0
- package/dist/styles/recipes/button.css +195 -0
- package/dist/styles/recipes/card.css +57 -0
- package/dist/styles/recipes/checkbox-input.css +12 -0
- package/dist/styles/recipes/checkbox.css +90 -0
- package/dist/styles/recipes/chip.css +137 -0
- package/dist/styles/recipes/code.css +12 -0
- package/dist/styles/recipes/divider.css +43 -0
- package/dist/styles/recipes/form-field.css +39 -0
- package/dist/styles/recipes/heading.css +40 -0
- package/dist/styles/recipes/icon-button.css +181 -0
- package/dist/styles/recipes/label.css +14 -0
- package/dist/styles/recipes/link.css +49 -0
- package/dist/styles/recipes/menu.css +141 -0
- package/dist/styles/recipes/modal.css +99 -0
- package/dist/styles/recipes/pre.css +16 -0
- package/dist/styles/recipes/radio-input.css +7 -0
- package/dist/styles/recipes/radio.css +82 -0
- package/dist/styles/recipes/select.css +103 -0
- package/dist/styles/recipes/spinner.css +36 -0
- package/dist/styles/recipes/tag.css +27 -0
- package/dist/styles/recipes/text.css +46 -0
- package/dist/styles/recipes/textarea.css +91 -0
- package/dist/styles/recipes/textinput.css +87 -0
- package/dist/styles/recipes/theme-switcher.css +53 -0
- package/dist/styles/recipes/toggle-input.css +12 -0
- package/dist/styles/recipes/toggle.css +125 -0
- package/dist/styles/recipes/tooltip.css +133 -0
- package/dist/styles/recipes.css +30 -0
- package/dist/styles/reset.css +1 -0
- package/dist/styles/tokens.css +1016 -0
- package/dist/styles/utilities.css +1694 -0
- package/dist/styles.css +7 -0
- package/dist/svgs/building.svg +1 -0
- package/dist/types/index.d.ts +21626 -0
- package/dist/types/preset.d.ts +19 -0
- package/package.json +37 -35
- package/src/recipes/avatar.ts +205 -0
- package/src/recipes/badge.ts +203 -0
- package/src/recipes/box.ts +13 -0
- package/src/recipes/breadcrumbs.ts +29 -0
- package/src/recipes/button.ts +319 -0
- package/src/recipes/card.ts +148 -0
- package/src/recipes/checkbox.ts +87 -0
- package/src/recipes/checkboxinput.ts +15 -0
- package/src/recipes/chip.ts +189 -0
- package/src/recipes/code.ts +35 -0
- package/src/recipes/divider.ts +41 -0
- package/src/recipes/formField.ts +60 -0
- package/src/recipes/index.ts +28 -0
- package/src/recipes/menu.ts +205 -0
- package/src/recipes/modal.ts +120 -0
- package/src/recipes/radio.ts +71 -0
- package/src/recipes/radioinput.ts +12 -0
- package/src/recipes/select.ts +142 -0
- package/src/recipes/spinner.ts +52 -0
- package/src/recipes/tag.ts +262 -0
- package/src/recipes/text.ts +193 -0
- package/src/recipes/textarea.ts +153 -0
- package/src/recipes/textinput.ts +100 -0
- package/src/recipes/themeSwitcher.ts +48 -0
- package/src/recipes/toggle.ts +116 -0
- package/src/recipes/toggleinput.ts +16 -0
- package/src/recipes/tooltip.ts +359 -0
- package/src/styles/index.css +1 -0
- package/src/styles/primitives/animations.ts +16 -0
- package/src/styles/primitives/aspectRatios.ts +22 -0
- package/src/styles/primitives/blurs.ts +25 -0
- package/src/styles/primitives/borderWidths.ts +10 -0
- package/src/styles/primitives/borders.ts +36 -0
- package/src/styles/primitives/colors.ts +228 -0
- package/src/styles/primitives/durations.ts +25 -0
- package/src/styles/primitives/easings.ts +19 -0
- package/src/styles/primitives/fontSizes.ts +16 -0
- package/src/styles/primitives/fontWeights.ts +9 -0
- package/src/styles/primitives/fonts.ts +18 -0
- package/src/styles/primitives/index.ts +46 -0
- package/src/styles/primitives/letterSpacings.ts +22 -0
- package/src/styles/primitives/lineHeights.ts +16 -0
- package/src/styles/primitives/radii.ts +14 -0
- package/src/styles/primitives/shadows.ts +73 -0
- package/src/styles/primitives/sizes.ts +86 -0
- package/src/styles/primitives/spacings.ts +7 -0
- package/src/styles/semantics/colors.ts +774 -0
- package/src/styles/semantics/index.ts +2 -0
- package/src/styles/semantics/shadows.ts +32 -0
- package/src/styles/utilities/breakpoints.ts +8 -0
- package/src/styles/utilities/conditions.ts +140 -0
- package/src/styles/utilities/containerSizes.ts +17 -0
- package/src/styles/utilities/filters.ts +12 -0
- package/src/styles/utilities/globalStyle.ts +93 -0
- package/src/styles/utilities/index.ts +9 -0
- package/src/styles/utilities/keyframes.ts +89 -0
- package/src/styles/utilities/layerStyles.ts +18 -0
- package/src/styles/utilities/textStyles.ts +135 -0
- package/src/styles/utilities/transitions.ts +92 -0
- package/src/utils/injectSprite.ts +36 -0
- package/src/utils/splitProps.ts +19 -0
- package/src/utils/spriteContent.ts +4 -0
- package/dist/panda.buildinfo.json +0 -448
- package/dist/preset.d.ts +0 -5
- package/dist/transitions-DUgH88VW.js +0 -1041
- package/dist/transitions-DUgH88VW.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,1268 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { BoxVariantProps } from '../../../styled-system/recipes';
|
|
5
|
-
import { ButtonVariantProps } from '../../../styled-system/recipes';
|
|
6
|
-
import { CardVariantProps } from '../../../styled-system/recipes';
|
|
7
|
-
import { ChangeEventHandler } from 'react';
|
|
8
|
-
import { CheckboxInputVariantProps } from '../../../styled-system/recipes';
|
|
9
|
-
import { CheckboxVariantProps } from '../../../styled-system/recipes';
|
|
10
|
-
import { ChipVariantProps } from '../../../styled-system/recipes';
|
|
11
|
-
import { CodeVariantProps } from '../../../styled-system/recipes';
|
|
12
|
-
import { ColorToken } from '../../../styled-system/tokens';
|
|
13
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
14
|
-
import { default as default_2 } from 'react';
|
|
15
|
-
import { DividerVariantProps } from '../../../styled-system/recipes';
|
|
16
|
-
import { DropdownProps } from './types';
|
|
17
|
-
import { ElementType } from 'react';
|
|
18
|
-
import { FC } from 'react';
|
|
19
|
-
import { FontSizeToken } from '../../../styled-system/tokens';
|
|
20
|
-
import { FontToken } from '../../../styled-system/tokens';
|
|
21
|
-
import { FontWeightToken } from '../../../styled-system/tokens';
|
|
22
|
-
import { HeadingVariantProps } from '../../../styled-system/recipes';
|
|
23
|
-
import { IconButtonVariantProps } from '../../../styled-system/recipes';
|
|
24
|
-
import { IconNamesList } from './icons';
|
|
25
|
-
import { JSX } from 'react/jsx-runtime';
|
|
26
|
-
import { LabelVariantProps } from '../../../styled-system/recipes';
|
|
27
|
-
import { LinkVariantProps } from '../../../styled-system/recipes';
|
|
28
|
-
import { menu } from '../../../styled-system/recipes';
|
|
29
|
-
import { MenuVariantProps } from '../../../styled-system/recipes';
|
|
30
|
-
import { ModalVariantProps } from '../../../styled-system/recipes';
|
|
31
|
-
import { NumericSizeToken } from '../../../styled-system/tokens';
|
|
32
|
-
import { Placement } from '@floating-ui/react';
|
|
33
|
-
import { RadioInputVariantProps } from '../../../styled-system/recipes';
|
|
34
|
-
import { RadioVariantProps } from '../../../styled-system/recipes';
|
|
35
|
-
import * as React_2 from 'react';
|
|
36
|
-
import { ReactNode } from 'react';
|
|
37
|
-
import { RefObject } from 'react';
|
|
38
|
-
import { SelectContextValue } from './types';
|
|
39
|
-
import { SelectOptionProps } from './types';
|
|
40
|
-
import { SelectProps } from './types';
|
|
41
|
-
import { SelectTriggerProps } from './types';
|
|
42
|
-
import { SpinnerVariantProps } from '../../../styled-system/recipes';
|
|
43
|
-
import { SVGAttributes } from 'react';
|
|
44
|
-
import { SystemStyleObject } from '../../../styled-system/types';
|
|
45
|
-
import { TagVariantProps } from '../../../styled-system/recipes';
|
|
46
|
-
import { TextareaVariantProps } from '../../../styled-system/recipes';
|
|
47
|
-
import { TextinputVariantProps } from '../../../styled-system/recipes';
|
|
48
|
-
import { TextVariantProps } from '../../../styled-system/recipes';
|
|
49
|
-
import { ToggleInputVariantProps } from '../../../styled-system/recipes';
|
|
50
|
-
import { ToggleVariantProps } from '../../../styled-system/recipes';
|
|
51
|
-
import { TooltipVariantProps } from '../../../styled-system/recipes';
|
|
52
|
-
import { WrapProps } from '../../../styled-system/jsx';
|
|
53
|
-
|
|
54
|
-
declare type AllowedIconSizes = keyof typeof numericSizes;
|
|
55
|
-
|
|
56
|
-
export declare const Autocomplete: default_2.FC<AutocompleteProps>;
|
|
57
|
-
|
|
58
|
-
export declare interface AutocompleteOption {
|
|
59
|
-
/** Unique identifier for the option */
|
|
60
|
-
id: string;
|
|
61
|
-
/** Display label */
|
|
62
|
-
label: string;
|
|
63
|
-
/** Optional description */
|
|
64
|
-
description?: string;
|
|
65
|
-
/** Optional icon name */
|
|
66
|
-
icon?: string;
|
|
67
|
-
/** Whether this option is disabled */
|
|
68
|
-
disabled?: boolean;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export declare type AutocompleteProps = MenuVariantProps & {
|
|
72
|
-
/** Input name attribute */
|
|
73
|
-
name: string;
|
|
74
|
-
/** Current input value */
|
|
75
|
-
value: string;
|
|
76
|
-
/** Callback when input value changes */
|
|
77
|
-
onChange: (value: string) => void;
|
|
78
|
-
/** Available options to filter and display */
|
|
79
|
-
options: AutocompleteOption[];
|
|
80
|
-
/** Callback when an option is selected */
|
|
81
|
-
onSelect: (option: AutocompleteOption) => void;
|
|
82
|
-
/** Placeholder text for the input */
|
|
83
|
-
placeholder?: string;
|
|
84
|
-
/** Floating UI placement */
|
|
85
|
-
placement?: Placement;
|
|
86
|
-
/** Offset distance from input (in pixels) */
|
|
87
|
-
offset?: number;
|
|
88
|
-
/** Optional ID for ARIA attributes */
|
|
89
|
-
id?: string;
|
|
90
|
-
/** Disable the autocomplete */
|
|
91
|
-
disabled?: boolean;
|
|
92
|
-
/** Show error state */
|
|
93
|
-
error?: boolean;
|
|
94
|
-
/** Custom filter function (defaults to case-insensitive label match) */
|
|
95
|
-
filterFn?: (option: AutocompleteOption, inputValue: string) => boolean;
|
|
96
|
-
/** Message to show when no options match */
|
|
97
|
-
noResultsMessage?: string;
|
|
98
|
-
/** Props to pass to the TextInput */
|
|
99
|
-
inputProps?: Omit<TextInputProps, 'name' | 'value' | 'onChange' | 'disabled' | 'error' | 'id'>;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Avatar component for displaying user or entity images with optional
|
|
104
|
-
* presence and status indicators.
|
|
105
|
-
*/
|
|
106
|
-
export declare const Avatar: React_2.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
|
|
107
|
-
|
|
108
|
-
export declare type AvatarPresence = 'online' | 'busy' | 'offline' | 'focus';
|
|
109
|
-
|
|
110
|
-
export declare type AvatarProps = BoxProps & Omit<AvatarVariantProps, 'size' | 'shape'> & {
|
|
111
|
-
/** Image source URL */
|
|
112
|
-
src?: string;
|
|
113
|
-
/** Alt text for image */
|
|
114
|
-
alt?: string;
|
|
115
|
-
/** Name for generating initials fallback */
|
|
116
|
-
name?: string;
|
|
117
|
-
/** Size of the avatar */
|
|
118
|
-
size?: AvatarSize;
|
|
119
|
-
/** Shape of the avatar */
|
|
120
|
-
shape?: AvatarShape;
|
|
121
|
-
/** Presence indicator (bottom-right) */
|
|
122
|
-
presence?: AvatarPresence;
|
|
123
|
-
/** Status indicator (top-right) */
|
|
124
|
-
status?: AvatarStatus;
|
|
125
|
-
/** Custom fallback content (overrides initials) */
|
|
126
|
-
fallback?: React_2.ReactNode;
|
|
127
|
-
/** Border color for the avatar */
|
|
128
|
-
borderColor?: string;
|
|
129
|
-
/** Additional class name */
|
|
130
|
-
className?: string;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
export declare type AvatarShape = 'circle' | 'square' | 'hexagon';
|
|
134
|
-
|
|
135
|
-
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
136
|
-
|
|
137
|
-
export declare type AvatarStatus = 'approved' | 'declined' | 'locked';
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Badge component for displaying notification counts or status indicators.
|
|
141
|
-
*
|
|
142
|
-
* - Without children: renders as standalone badge
|
|
143
|
-
* - With children: wraps content and positions badge at top-right
|
|
144
|
-
* - Without count prop: shows as dot
|
|
145
|
-
* - With count prop: shows the number (or "99+" if exceeds overflowCount)
|
|
146
|
-
*/
|
|
147
|
-
export declare const Badge: React_2.ForwardRefExoticComponent<Omit<BadgeProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
|
|
148
|
-
|
|
149
|
-
export declare type BadgeAppearance = 'neutral' | 'inverted' | 'subtle' | 'subtle-inverted' | 'success' | 'danger' | 'warning' | 'info';
|
|
150
|
-
|
|
151
|
-
export declare type BadgeProps = BoxProps & Omit<BadgeVariantProps, 'standalone' | 'dot'> & {
|
|
152
|
-
/** Number to show in badge. If provided, switches to count mode. */
|
|
153
|
-
count?: number;
|
|
154
|
-
/** Show badge when count is zero. Default: false */
|
|
155
|
-
showZero?: boolean;
|
|
156
|
-
/** Max count to show. Displays "99+" when exceeded. Default: 99 */
|
|
157
|
-
overflowCount?: number;
|
|
158
|
-
/** Color scheme of the badge. Default: 'danger' */
|
|
159
|
-
appearance?: BadgeAppearance;
|
|
160
|
-
/** Additional class name */
|
|
161
|
-
className?: string;
|
|
162
|
-
/** Content to wrap with the badge */
|
|
163
|
-
children?: React_2.ReactNode;
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
export declare const Box: default_2.FC<BoxProps>;
|
|
167
|
-
|
|
168
|
-
export declare type BoxProps = Omit<ComponentPropsWithoutRef<ElementType>, 'as'> & SystemStyleObject & BoxVariantProps & {
|
|
169
|
-
as?: ElementType;
|
|
170
|
-
} & AriaAttributes;
|
|
171
|
-
|
|
172
|
-
export declare const Breadcrumbs: default_2.FC<BreadcrumbsProps>;
|
|
173
|
-
|
|
174
|
-
export declare type BreadcrumbsProps = BoxProps & {
|
|
175
|
-
items: {
|
|
176
|
-
id: string;
|
|
177
|
-
label: string;
|
|
178
|
-
href?: string;
|
|
179
|
-
}[];
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
export declare function BreakpointIndicator(): JSX.Element;
|
|
183
|
-
|
|
184
|
-
declare type BreakpointKey = keyof typeof breakpoints;
|
|
185
|
-
|
|
186
|
-
declare const breakpoints: {
|
|
187
|
-
xs: string;
|
|
188
|
-
sm: string;
|
|
189
|
-
md: string;
|
|
190
|
-
lg: string;
|
|
191
|
-
xl: string;
|
|
192
|
-
'2xl': string;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* The Button component uses the polymorphic Box as its base.
|
|
197
|
-
* It automatically renders as an <a> if href is provided.
|
|
198
|
-
* Since ButtonProps extends BoxProps, any extra props (like onClick) are automatically allowed.
|
|
199
|
-
*/
|
|
200
|
-
export declare const Button: ButtonComponent;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Define a polymorphic ButtonComponent type.
|
|
204
|
-
* The ref type will be inferred from the element type E.
|
|
205
|
-
*/
|
|
206
|
-
declare type ButtonComponent = <E extends React_2.ElementType = 'button'>(props: ButtonProps<E> & {
|
|
207
|
-
ref?: React_2.ForwardedRef<Element>;
|
|
208
|
-
}) => React_2.ReactElement;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* ButtonProps is generic and manages its own polymorphism.
|
|
212
|
-
* It includes props for the element type E (default "button") and ButtonVariantProps.
|
|
213
|
-
* This means that any prop accepted by the underlying element (e.g. onClick) is automatically allowed.
|
|
214
|
-
*/
|
|
215
|
-
export declare type ButtonProps<E extends React_2.ElementType = 'button'> = Omit<BoxProps, keyof ButtonVariantProps | 'as'> & Omit<ButtonVariantProps, 'iconBefore' | 'iconAfter'> & {
|
|
216
|
-
as?: E;
|
|
217
|
-
href?: string;
|
|
218
|
-
loading?: boolean;
|
|
219
|
-
className?: string;
|
|
220
|
-
children?: React_2.ReactNode;
|
|
221
|
-
disabled?: boolean;
|
|
222
|
-
iconBefore?: IconNamesList;
|
|
223
|
-
iconAfter?: IconNamesList;
|
|
224
|
-
gap?: NumericSizeToken;
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Card component that supports both static (content container) and interactive (button/link) modes.
|
|
229
|
-
*
|
|
230
|
-
* By default, renders as a div for semantic correctness.
|
|
231
|
-
* - With `href`: renders as an anchor element
|
|
232
|
-
* - With `interactive` or `onClick`: renders as a button element
|
|
233
|
-
* - Use `as` prop for custom elements like 'article' or 'section'
|
|
234
|
-
*/
|
|
235
|
-
export declare const Card: CardComponent;
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Define a polymorphic CardComponent type.
|
|
239
|
-
*/
|
|
240
|
-
declare type CardComponent = <E extends React_2.ElementType = 'div'>(props: CardProps<E> & {
|
|
241
|
-
ref?: React_2.ForwardedRef<Element>;
|
|
242
|
-
}) => React_2.ReactElement;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* CardProps is generic and manages its own polymorphism.
|
|
246
|
-
* Default element is 'div' for non-interactive cards.
|
|
247
|
-
* Automatically renders as 'a' when href is provided, or 'button' when interactive without href.
|
|
248
|
-
*/
|
|
249
|
-
export declare type CardProps<E extends React_2.ElementType = 'div'> = Omit<BoxProps, keyof CardVariantProps | 'as'> & Omit<CardVariantProps, 'interactive'> & {
|
|
250
|
-
as?: E;
|
|
251
|
-
href?: string;
|
|
252
|
-
children?: React_2.ReactNode;
|
|
253
|
-
className?: string;
|
|
254
|
-
disabled?: boolean;
|
|
255
|
-
/**
|
|
256
|
-
* When true, the card becomes interactive (button or link).
|
|
257
|
-
* Automatically true when href or onClick is provided.
|
|
258
|
-
*/
|
|
259
|
-
interactive?: boolean;
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Checkbox is a controlled component.
|
|
264
|
-
* You must pass `checked` and `onChange` props.
|
|
265
|
-
*
|
|
266
|
-
* @example
|
|
267
|
-
* const [checked, setChecked] = useState(false);
|
|
268
|
-
* <Checkbox
|
|
269
|
-
* checked={checked}
|
|
270
|
-
* onChange={(e) => setChecked(e.target.checked)}
|
|
271
|
-
* />
|
|
272
|
-
*/
|
|
273
|
-
export declare const Checkbox: React.FC<CheckboxProps>;
|
|
274
|
-
|
|
275
|
-
export declare const CheckboxInput: FC<CheckboxInputProps>;
|
|
276
|
-
|
|
277
|
-
export declare type CheckboxInputProps = BoxProps & CheckboxInputVariantProps & {
|
|
278
|
-
name: string;
|
|
279
|
-
checked: boolean;
|
|
280
|
-
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
281
|
-
id?: string;
|
|
282
|
-
error?: boolean;
|
|
283
|
-
children?: string | ReactNode;
|
|
284
|
-
disabled?: boolean;
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
export declare type CheckboxProps = {
|
|
288
|
-
/** Form field name */
|
|
289
|
-
name: string;
|
|
290
|
-
/** Controlled checked state (REQUIRED) */
|
|
291
|
-
checked: boolean;
|
|
292
|
-
/** Change handler (REQUIRED) */
|
|
293
|
-
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
294
|
-
/** Unique identifier for the checkbox */
|
|
295
|
-
id?: string;
|
|
296
|
-
/** Display indeterminate state (partially checked) */
|
|
297
|
-
indeterminate?: boolean;
|
|
298
|
-
/** Disable the checkbox */
|
|
299
|
-
disabled?: boolean;
|
|
300
|
-
/** Display error state */
|
|
301
|
-
error?: boolean;
|
|
302
|
-
} & Omit<BoxProps, 'checked' | 'onChange' | keyof CheckboxVariantProps> & CheckboxVariantProps;
|
|
303
|
-
|
|
304
|
-
export declare const Chip: React.FC<ChipProps>;
|
|
305
|
-
|
|
306
|
-
export declare const ChipGroup: React.FC<ChipGroupProps>;
|
|
307
|
-
|
|
308
|
-
export declare type ChipGroupProps = Omit<WrapProps, 'role'> & {
|
|
309
|
-
type: ChipGroupType;
|
|
310
|
-
value: string | string[];
|
|
311
|
-
onChange: (value: string | string[]) => void;
|
|
312
|
-
children: ReactNode;
|
|
313
|
-
label?: string;
|
|
314
|
-
id?: string;
|
|
315
|
-
name?: string;
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
export declare type ChipGroupType = 'single' | 'multi';
|
|
319
|
-
|
|
320
|
-
export declare type ChipProps = BoxProps & Omit<ChipVariantProps, 'before' | 'after'> & {
|
|
321
|
-
children: string | ReactNode;
|
|
322
|
-
/** Content to render before the label (e.g., Icon, Avatar) */
|
|
323
|
-
before?: ReactNode;
|
|
324
|
-
/** Content to render after the label (e.g., Badge, Icon) */
|
|
325
|
-
after?: ReactNode;
|
|
326
|
-
disabled?: boolean;
|
|
327
|
-
loading?: boolean;
|
|
328
|
-
deleted?: boolean;
|
|
329
|
-
dismissable?: boolean;
|
|
330
|
-
onDismiss?: () => void;
|
|
331
|
-
value?: string;
|
|
332
|
-
gap?: NumericSizeToken;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
export declare const Code: React.FC<CodeProps>;
|
|
336
|
-
|
|
337
|
-
export declare type CodeProps = Omit<BoxProps, keyof CodeVariantProps | keyof TextProps> & CodeVariantProps & TextProps & {
|
|
338
|
-
children?: string | React.ReactNode;
|
|
339
|
-
lang?: string;
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
declare type ContainerSizeKey = keyof typeof containerSizes;
|
|
343
|
-
|
|
344
|
-
declare const containerSizes: {
|
|
345
|
-
'2xs': string;
|
|
346
|
-
xs: string;
|
|
347
|
-
sm: string;
|
|
348
|
-
md: string;
|
|
349
|
-
lg: string;
|
|
350
|
-
xl: string;
|
|
351
|
-
'2xl': string;
|
|
352
|
-
'3xl': string;
|
|
353
|
-
'4xl': string;
|
|
354
|
-
'5xl': string;
|
|
355
|
-
'6xl': string;
|
|
356
|
-
'7xl': string;
|
|
357
|
-
'8xl': string;
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
export declare const Divider: React.FC<DividerProps>;
|
|
361
|
-
|
|
362
|
-
export declare type DividerProps = BoxProps & DividerVariantProps & {
|
|
363
|
-
direction?: string;
|
|
364
|
-
weight?: string;
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
export declare const Dropdown: default_2.FC<DropdownProps>;
|
|
368
|
-
|
|
369
|
-
export { DropdownProps }
|
|
370
|
-
|
|
371
|
-
export declare const Heading: React.FC<HeadingProps>;
|
|
372
|
-
|
|
373
|
-
export declare type HeadingProps = Omit<TextProps, keyof HeadingVariantProps> & HeadingVariantProps & {
|
|
374
|
-
children?: string | React.ReactNode;
|
|
375
|
-
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
export declare const Icon: default_2.FC<IconProps>;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* The IconButton component builds on Box.
|
|
382
|
-
* It automatically renders as a "button" (or an "a" if an href is provided)
|
|
383
|
-
* and applies the iconButton recipe styles.
|
|
384
|
-
*
|
|
385
|
-
* If the caller does not pass children but does provide an 'iconName',
|
|
386
|
-
* the component renders the corresponding Icon automatically.
|
|
387
|
-
*/
|
|
388
|
-
export declare const IconButton: IconButtonComponent;
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Define the polymorphic component type for IconButton.
|
|
392
|
-
*/
|
|
393
|
-
declare type IconButtonComponent = <E extends React_2.ElementType = 'button'>(props: IconButtonProps<E> & {
|
|
394
|
-
ref?: React_2.ForwardedRef<Element>;
|
|
395
|
-
}) => React_2.ReactElement;
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* IconButtonProps is generic and manages its own polymorphism.
|
|
399
|
-
* It includes props for the element type E (default "button") and IconButtonVariantProps.
|
|
400
|
-
*
|
|
401
|
-
* We've added a new optional prop 'iconName'. When provided (and if no children
|
|
402
|
-
* are passed), IconButton will render the corresponding Icon automatically.
|
|
403
|
-
*/
|
|
404
|
-
export declare type IconButtonProps<E extends React_2.ElementType = 'button'> = Omit<BoxProps, keyof IconButtonVariantProps | 'as'> & IconButtonVariantProps & {
|
|
405
|
-
as?: E;
|
|
406
|
-
href?: string;
|
|
407
|
-
loading?: boolean;
|
|
408
|
-
disabled?: boolean;
|
|
409
|
-
className?: string;
|
|
410
|
-
iconName?: IconNamesList;
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
export declare const IconNames: {
|
|
414
|
-
readonly 'aa-placeholder': "aa-placeholder";
|
|
415
|
-
readonly alarm: "alarm";
|
|
416
|
-
readonly 'alt-route': "alt-route";
|
|
417
|
-
readonly apps: "apps";
|
|
418
|
-
readonly 'arrow-bubble': "arrow-bubble";
|
|
419
|
-
readonly 'arrow-down': "arrow-down";
|
|
420
|
-
readonly 'arrow-drop-down': "arrow-drop-down";
|
|
421
|
-
readonly 'arrow-drop-up': "arrow-drop-up";
|
|
422
|
-
readonly 'arrow-left': "arrow-left";
|
|
423
|
-
readonly 'arrow-line-down': "arrow-line-down";
|
|
424
|
-
readonly 'arrow-line-left': "arrow-line-left";
|
|
425
|
-
readonly 'arrow-line-right': "arrow-line-right";
|
|
426
|
-
readonly 'arrow-line-up': "arrow-line-up";
|
|
427
|
-
readonly 'arrow-prompt': "arrow-prompt";
|
|
428
|
-
readonly 'arrow-redo': "arrow-redo";
|
|
429
|
-
readonly 'arrow-right': "arrow-right";
|
|
430
|
-
readonly 'arrow-square-in': "arrow-square-in";
|
|
431
|
-
readonly 'arrow-square-out': "arrow-square-out";
|
|
432
|
-
readonly 'arrow-undo': "arrow-undo";
|
|
433
|
-
readonly 'arrow-up': "arrow-up";
|
|
434
|
-
readonly 'arrows-down-up': "arrows-down-up";
|
|
435
|
-
readonly 'arrows-left-right': "arrows-left-right";
|
|
436
|
-
readonly asterisk: "asterisk";
|
|
437
|
-
readonly at: "at";
|
|
438
|
-
readonly attachment: "attachment";
|
|
439
|
-
readonly bank: "bank";
|
|
440
|
-
readonly 'barcode-reader': "barcode-reader";
|
|
441
|
-
readonly barcode: "barcode";
|
|
442
|
-
readonly barricade: "barricade";
|
|
443
|
-
readonly basket: "basket";
|
|
444
|
-
readonly 'bell-active': "bell-active";
|
|
445
|
-
readonly 'bell-slash': "bell-slash";
|
|
446
|
-
readonly bell: "bell";
|
|
447
|
-
readonly bin: "bin";
|
|
448
|
-
readonly 'blog-post': "blog-post";
|
|
449
|
-
readonly blueprint: "blueprint";
|
|
450
|
-
readonly 'book-a': "book-a";
|
|
451
|
-
readonly book: "book";
|
|
452
|
-
readonly 'bookmark-outlined': "bookmark-outlined";
|
|
453
|
-
readonly bookmark: "bookmark";
|
|
454
|
-
readonly bookmarks: "bookmarks";
|
|
455
|
-
readonly broadcast: "broadcast";
|
|
456
|
-
readonly Building: "Building";
|
|
457
|
-
readonly 'calendar-add': "calendar-add";
|
|
458
|
-
readonly 'calendar-view-day': "calendar-view-day";
|
|
459
|
-
readonly 'calendar-view-month': "calendar-view-month";
|
|
460
|
-
readonly 'calendar-view-week': "calendar-view-week";
|
|
461
|
-
readonly calendar: "calendar";
|
|
462
|
-
readonly 'caret-down': "caret-down";
|
|
463
|
-
readonly 'caret-left': "caret-left";
|
|
464
|
-
readonly 'caret-right': "caret-right";
|
|
465
|
-
readonly 'caret-up': "caret-up";
|
|
466
|
-
readonly cart: "cart";
|
|
467
|
-
readonly certificate: "certificate";
|
|
468
|
-
readonly 'check-all': "check-all";
|
|
469
|
-
readonly 'check-thick': "check-thick";
|
|
470
|
-
readonly check: "check";
|
|
471
|
-
readonly 'checkbox-checked': "checkbox-checked";
|
|
472
|
-
readonly 'checkbox-focus': "checkbox-focus";
|
|
473
|
-
readonly 'checkbox-indeterminate': "checkbox-indeterminate";
|
|
474
|
-
readonly checkbox: "checkbox";
|
|
475
|
-
readonly 'chevron-down': "chevron-down";
|
|
476
|
-
readonly 'chevron-filled-down': "chevron-filled-down";
|
|
477
|
-
readonly 'chevron-filled-left': "chevron-filled-left";
|
|
478
|
-
readonly 'chevron-filled-right': "chevron-filled-right";
|
|
479
|
-
readonly 'chevron-filled-up': "chevron-filled-up";
|
|
480
|
-
readonly 'chevron-left': "chevron-left";
|
|
481
|
-
readonly 'chevron-right': "chevron-right";
|
|
482
|
-
readonly 'chevron-up': "chevron-up";
|
|
483
|
-
readonly 'circle-change': "circle-change";
|
|
484
|
-
readonly 'circle-check': "circle-check";
|
|
485
|
-
readonly circle: "circle";
|
|
486
|
-
readonly 'circles-add': "circles-add";
|
|
487
|
-
readonly circuit: "circuit";
|
|
488
|
-
readonly clipboard: "clipboard";
|
|
489
|
-
readonly 'clock-countdown': "clock-countdown";
|
|
490
|
-
readonly clock: "clock";
|
|
491
|
-
readonly 'cloud-synced': "cloud-synced";
|
|
492
|
-
readonly code: "code";
|
|
493
|
-
readonly color: "color";
|
|
494
|
-
readonly compass: "compass";
|
|
495
|
-
readonly cone: "cone";
|
|
496
|
-
readonly confetti: "confetti";
|
|
497
|
-
readonly copy: "copy";
|
|
498
|
-
readonly 'credit-card': "credit-card";
|
|
499
|
-
readonly 'cube-focus': "cube-focus";
|
|
500
|
-
readonly 'cursor-click': "cursor-click";
|
|
501
|
-
readonly cursor: "cursor";
|
|
502
|
-
readonly cut: "cut";
|
|
503
|
-
readonly 'data-object': "data-object";
|
|
504
|
-
readonly database: "database";
|
|
505
|
-
readonly devices: "devices";
|
|
506
|
-
readonly dictionary: "dictionary";
|
|
507
|
-
readonly dna: "dna";
|
|
508
|
-
readonly donut: "donut";
|
|
509
|
-
readonly dot: "dot";
|
|
510
|
-
readonly dots: "dots";
|
|
511
|
-
readonly 'download-cloud': "download-cloud";
|
|
512
|
-
readonly download: "download";
|
|
513
|
-
readonly edit: "edit";
|
|
514
|
-
readonly encrypted: "encrypted";
|
|
515
|
-
readonly envelope: "envelope";
|
|
516
|
-
readonly equal: "equal";
|
|
517
|
-
readonly eraser: "eraser";
|
|
518
|
-
readonly error: "error";
|
|
519
|
-
readonly 'event-list': "event-list";
|
|
520
|
-
readonly export: "export";
|
|
521
|
-
readonly extension: "extension";
|
|
522
|
-
readonly 'eye-slash': "eye-slash";
|
|
523
|
-
readonly eye: "eye";
|
|
524
|
-
readonly faq: "faq";
|
|
525
|
-
readonly 'file-add': "file-add";
|
|
526
|
-
readonly file: "file";
|
|
527
|
-
readonly files: "files";
|
|
528
|
-
readonly 'filter-remove': "filter-remove";
|
|
529
|
-
readonly filter: "filter";
|
|
530
|
-
readonly finish: "finish";
|
|
531
|
-
readonly 'fit-screen': "fit-screen";
|
|
532
|
-
readonly 'flag-checkered': "flag-checkered";
|
|
533
|
-
readonly flag: "flag";
|
|
534
|
-
readonly forklift: "forklift";
|
|
535
|
-
readonly 'fullscreen-exit': "fullscreen-exit";
|
|
536
|
-
readonly fullscreen: "fullscreen";
|
|
537
|
-
readonly garage: "garage";
|
|
538
|
-
readonly gauge: "gauge";
|
|
539
|
-
readonly 'globe-grid': "globe-grid";
|
|
540
|
-
readonly globe: "globe";
|
|
541
|
-
readonly gripper: "gripper";
|
|
542
|
-
readonly 'handle-vertical': "handle-vertical";
|
|
543
|
-
readonly handle: "handle";
|
|
544
|
-
readonly hash: "hash";
|
|
545
|
-
readonly 'heart-outlined': "heart-outlined";
|
|
546
|
-
readonly heart: "heart";
|
|
547
|
-
readonly help: "help";
|
|
548
|
-
readonly history: "history";
|
|
549
|
-
readonly home: "home";
|
|
550
|
-
readonly image: "image";
|
|
551
|
-
readonly images: "images";
|
|
552
|
-
readonly inbox: "inbox";
|
|
553
|
-
readonly infinity: "infinity";
|
|
554
|
-
readonly info: "info";
|
|
555
|
-
readonly inventory: "inventory";
|
|
556
|
-
readonly invoice: "invoice";
|
|
557
|
-
readonly 'jump-back': "jump-back";
|
|
558
|
-
readonly 'jump-forward': "jump-forward";
|
|
559
|
-
readonly kanban: "kanban";
|
|
560
|
-
readonly 'kbd-backspace': "kbd-backspace";
|
|
561
|
-
readonly 'kbd-capslock': "kbd-capslock";
|
|
562
|
-
readonly 'kbd-command': "kbd-command";
|
|
563
|
-
readonly 'kbd-control': "kbd-control";
|
|
564
|
-
readonly 'kbd-hide': "kbd-hide";
|
|
565
|
-
readonly 'kbd-option': "kbd-option";
|
|
566
|
-
readonly 'kbd-return': "kbd-return";
|
|
567
|
-
readonly 'kbd-shift': "kbd-shift";
|
|
568
|
-
readonly 'kbd-space': "kbd-space";
|
|
569
|
-
readonly kbd: "kbd";
|
|
570
|
-
readonly lightning: "lightning";
|
|
571
|
-
readonly 'line-segment': "line-segment";
|
|
572
|
-
readonly 'line-segments': "line-segments";
|
|
573
|
-
readonly 'link-slash': "link-slash";
|
|
574
|
-
readonly link: "link";
|
|
575
|
-
readonly 'linked-services': "linked-services";
|
|
576
|
-
readonly 'list-bullets': "list-bullets";
|
|
577
|
-
readonly 'list-checks': "list-checks";
|
|
578
|
-
readonly 'list-numbers': "list-numbers";
|
|
579
|
-
readonly 'lock-open': "lock-open";
|
|
580
|
-
readonly lock: "lock";
|
|
581
|
-
readonly 'map-pin': "map-pin";
|
|
582
|
-
readonly map: "map";
|
|
583
|
-
readonly 'mark-unread': "mark-unread";
|
|
584
|
-
readonly 'menu-close': "menu-close";
|
|
585
|
-
readonly menu: "menu";
|
|
586
|
-
readonly message: "message";
|
|
587
|
-
readonly messages: "messages";
|
|
588
|
-
readonly 'minus-thick': "minus-thick";
|
|
589
|
-
readonly minus: "minus";
|
|
590
|
-
readonly money: "money";
|
|
591
|
-
readonly monitor: "monitor";
|
|
592
|
-
readonly moon: "moon";
|
|
593
|
-
readonly navigation: "navigation";
|
|
594
|
-
readonly 'network-x': "network-x";
|
|
595
|
-
readonly network: "network";
|
|
596
|
-
readonly 'newspaper-clipping': "newspaper-clipping";
|
|
597
|
-
readonly newspaper: "newspaper";
|
|
598
|
-
readonly 'note-stack': "note-stack";
|
|
599
|
-
readonly note: "note";
|
|
600
|
-
readonly notepad: "notepad";
|
|
601
|
-
readonly notification: "notification";
|
|
602
|
-
readonly nut: "nut";
|
|
603
|
-
readonly order: "order";
|
|
604
|
-
readonly package: "package";
|
|
605
|
-
readonly 'page-first': "page-first";
|
|
606
|
-
readonly 'page-last': "page-last";
|
|
607
|
-
readonly parts: "parts";
|
|
608
|
-
readonly password: "password";
|
|
609
|
-
readonly path: "path";
|
|
610
|
-
readonly pause: "pause";
|
|
611
|
-
readonly pencil: "pencil";
|
|
612
|
-
readonly percent: "percent";
|
|
613
|
-
readonly 'play-pause': "play-pause";
|
|
614
|
-
readonly play: "play";
|
|
615
|
-
readonly plus: "plus";
|
|
616
|
-
readonly printer: "printer";
|
|
617
|
-
readonly prohibit: "prohibit";
|
|
618
|
-
readonly 'question-mark': "question-mark";
|
|
619
|
-
readonly quote: "quote";
|
|
620
|
-
readonly 'radio-checked': "radio-checked";
|
|
621
|
-
readonly 'radio-focus': "radio-focus";
|
|
622
|
-
readonly radio: "radio";
|
|
623
|
-
readonly 'read-doc': "read-doc";
|
|
624
|
-
readonly receipt: "receipt";
|
|
625
|
-
readonly recycle: "recycle";
|
|
626
|
-
readonly refresh: "refresh";
|
|
627
|
-
readonly repeat: "repeat";
|
|
628
|
-
readonly 'reply-all': "reply-all";
|
|
629
|
-
readonly reply: "reply";
|
|
630
|
-
readonly resize: "resize";
|
|
631
|
-
readonly ribbon: "ribbon";
|
|
632
|
-
readonly 'rows-add': "rows-add";
|
|
633
|
-
readonly ruler: "ruler";
|
|
634
|
-
readonly rules: "rules";
|
|
635
|
-
readonly scale: "scale";
|
|
636
|
-
readonly 'schedule-backward': "schedule-backward";
|
|
637
|
-
readonly 'schedule-forward': "schedule-forward";
|
|
638
|
-
readonly screwdriver: "screwdriver";
|
|
639
|
-
readonly scroll: "scroll";
|
|
640
|
-
readonly 'search-check': "search-check";
|
|
641
|
-
readonly 'search-items': "search-items";
|
|
642
|
-
readonly 'search-objects': "search-objects";
|
|
643
|
-
readonly search: "search";
|
|
644
|
-
readonly send: "send";
|
|
645
|
-
readonly settings: "settings";
|
|
646
|
-
readonly shapes: "shapes";
|
|
647
|
-
readonly share: "share";
|
|
648
|
-
readonly shuffle: "shuffle";
|
|
649
|
-
readonly signpost: "signpost";
|
|
650
|
-
readonly 'skip-back': "skip-back";
|
|
651
|
-
readonly 'skip-forward': "skip-forward";
|
|
652
|
-
readonly skull: "skull";
|
|
653
|
-
readonly sliders: "sliders";
|
|
654
|
-
readonly 'sort-alpha-down': "sort-alpha-down";
|
|
655
|
-
readonly 'sort-alpha-up': "sort-alpha-up";
|
|
656
|
-
readonly 'sort-ascending': "sort-ascending";
|
|
657
|
-
readonly 'sort-descending': "sort-descending";
|
|
658
|
-
readonly 'sort-time-down': "sort-time-down";
|
|
659
|
-
readonly 'sort-time-up': "sort-time-up";
|
|
660
|
-
readonly 'square-add': "square-add";
|
|
661
|
-
readonly 'square-inside': "square-inside";
|
|
662
|
-
readonly 'square-select': "square-select";
|
|
663
|
-
readonly square: "square";
|
|
664
|
-
readonly stamp: "stamp";
|
|
665
|
-
readonly 'star-outlined': "star-outlined";
|
|
666
|
-
readonly star: "star";
|
|
667
|
-
readonly start: "start";
|
|
668
|
-
readonly step: "step";
|
|
669
|
-
readonly stop: "stop";
|
|
670
|
-
readonly story: "story";
|
|
671
|
-
readonly strategy: "strategy";
|
|
672
|
-
readonly success: "success";
|
|
673
|
-
readonly sun: "sun";
|
|
674
|
-
readonly support: "support";
|
|
675
|
-
readonly sync: "sync";
|
|
676
|
-
readonly tag: "tag";
|
|
677
|
-
readonly 'target-2': "target-2";
|
|
678
|
-
readonly target: "target";
|
|
679
|
-
readonly 'task-alt': "task-alt";
|
|
680
|
-
readonly 'text-add': "text-add";
|
|
681
|
-
readonly textbox: "textbox";
|
|
682
|
-
readonly 'time-add': "time-add";
|
|
683
|
-
readonly timer: "timer";
|
|
684
|
-
readonly toolbox: "toolbox";
|
|
685
|
-
readonly tools: "tools";
|
|
686
|
-
readonly trash: "trash";
|
|
687
|
-
readonly trophy: "trophy";
|
|
688
|
-
readonly 'truck-trailer': "truck-trailer";
|
|
689
|
-
readonly update: "update";
|
|
690
|
-
readonly 'upload-cloud': "upload-cloud";
|
|
691
|
-
readonly upload: "upload";
|
|
692
|
-
readonly 'user-add': "user-add";
|
|
693
|
-
readonly 'user-details': "user-details";
|
|
694
|
-
readonly 'user-group': "user-group";
|
|
695
|
-
readonly 'user-id-badge': "user-id-badge";
|
|
696
|
-
readonly 'user-id-card': "user-id-card";
|
|
697
|
-
readonly 'user-recent': "user-recent";
|
|
698
|
-
readonly user: "user";
|
|
699
|
-
readonly verified: "verified";
|
|
700
|
-
readonly video: "video";
|
|
701
|
-
readonly 'view-cards': "view-cards";
|
|
702
|
-
readonly 'view-doc': "view-doc";
|
|
703
|
-
readonly 'view-grid': "view-grid";
|
|
704
|
-
readonly 'view-rows': "view-rows";
|
|
705
|
-
readonly 'view-table': "view-table";
|
|
706
|
-
readonly wand: "wand";
|
|
707
|
-
readonly warning: "warning";
|
|
708
|
-
readonly weight: "weight";
|
|
709
|
-
readonly widgets: "widgets";
|
|
710
|
-
readonly 'work-order': "work-order";
|
|
711
|
-
readonly 'wrench-2': "wrench-2";
|
|
712
|
-
readonly wrench: "wrench";
|
|
713
|
-
readonly x: "x";
|
|
714
|
-
readonly 'zoom-in': "zoom-in";
|
|
715
|
-
readonly 'zoom-out': "zoom-out";
|
|
716
|
-
};
|
|
717
|
-
|
|
718
|
-
export declare type IconProps = Omit<BoxProps, 'size'> & SVGAttributes<SVGElement> & {
|
|
719
|
-
name: IconNamesList;
|
|
720
|
-
size?: AllowedIconSizes;
|
|
721
|
-
fill?: ColorToken;
|
|
722
|
-
};
|
|
723
|
-
|
|
724
|
-
export declare const Label: default_2.FC<LabelProps>;
|
|
725
|
-
|
|
726
|
-
export declare type LabelProps = Omit<BoxProps, keyof LabelVariantProps> & LabelVariantProps & {
|
|
727
|
-
htmlFor?: string;
|
|
728
|
-
children?: string | default_2.ReactNode;
|
|
729
|
-
};
|
|
730
|
-
|
|
731
|
-
export declare const Link: React.FC<LinkProps>;
|
|
732
|
-
|
|
733
|
-
export declare type LinkProps = Omit<BoxProps, keyof LinkVariantProps> & LinkVariantProps & {
|
|
734
|
-
href: string;
|
|
735
|
-
external?: boolean;
|
|
736
|
-
disabled?: boolean;
|
|
737
|
-
size?: FontSizeToken;
|
|
738
|
-
family?: FontToken;
|
|
739
|
-
italic?: boolean;
|
|
740
|
-
bold?: boolean;
|
|
741
|
-
weight?: FontWeightToken;
|
|
742
|
-
className?: string;
|
|
743
|
-
children?: React.ReactNode;
|
|
744
|
-
};
|
|
745
|
-
|
|
746
|
-
export declare const Menu: default_2.FC<MenuProps>;
|
|
747
|
-
|
|
748
|
-
declare interface MenuContextValue {
|
|
749
|
-
open: boolean;
|
|
750
|
-
setOpen: (open: boolean) => void;
|
|
751
|
-
refs: {
|
|
752
|
-
setReference: (node: HTMLElement | null) => void;
|
|
753
|
-
setFloating: (node: HTMLElement | null) => void;
|
|
754
|
-
};
|
|
755
|
-
floatingStyles: React.CSSProperties;
|
|
756
|
-
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
757
|
-
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
758
|
-
getItemProps: (userProps?: React.HTMLProps<HTMLElement> & {
|
|
759
|
-
index?: number;
|
|
760
|
-
active?: boolean;
|
|
761
|
-
}) => Record<string, unknown>;
|
|
762
|
-
activeIndex: number | null;
|
|
763
|
-
listRef: React.MutableRefObject<(HTMLElement | null)[]>;
|
|
764
|
-
classes: ReturnType<menu>;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
export declare const MenuDivider: default_2.FC<MenuDividerProps>;
|
|
768
|
-
|
|
769
|
-
export declare type MenuDividerProps = Omit<BoxProps, 'children'>;
|
|
770
|
-
|
|
771
|
-
export declare const MenuGroup: default_2.FC<MenuGroupProps>;
|
|
772
|
-
|
|
773
|
-
export declare type MenuGroupProps = Omit<BoxProps, 'title'> & {
|
|
774
|
-
/** Group label */
|
|
775
|
-
label?: string;
|
|
776
|
-
/** Children (MenuItem components) */
|
|
777
|
-
children: React.ReactNode;
|
|
778
|
-
};
|
|
779
|
-
|
|
780
|
-
export declare const MenuItem: default_2.FC<MenuItemProps>;
|
|
781
|
-
|
|
782
|
-
export declare type MenuItemProps = Omit<BoxProps, 'children'> & {
|
|
783
|
-
/** Item behavior type */
|
|
784
|
-
type?: MenuItemType;
|
|
785
|
-
/** Selected state (for single-select and multi-select) */
|
|
786
|
-
selected?: boolean;
|
|
787
|
-
/** Callback when item is selected/activated */
|
|
788
|
-
onSelect?: () => void;
|
|
789
|
-
/** Disable the item */
|
|
790
|
-
disabled?: boolean;
|
|
791
|
-
/** Primary label (required) */
|
|
792
|
-
label: string | React.ReactNode;
|
|
793
|
-
/** Secondary description text */
|
|
794
|
-
description?: string;
|
|
795
|
-
/** Icon on the left side */
|
|
796
|
-
iconLeft?: IconNamesList;
|
|
797
|
-
/** Icon on the right side */
|
|
798
|
-
iconRight?: IconNamesList;
|
|
799
|
-
/** Text to highlight (for autocomplete/search scenarios) */
|
|
800
|
-
highlightMatch?: string;
|
|
801
|
-
/** Selection indicator style (only for select types) */
|
|
802
|
-
selectionIndicator?: SelectionIndicator;
|
|
803
|
-
/** Index for keyboard navigation (managed internally via context) */
|
|
804
|
-
index?: number;
|
|
805
|
-
};
|
|
806
|
-
|
|
807
|
-
export declare type MenuItemType = 'action' | 'single-select' | 'multi-select';
|
|
808
|
-
|
|
809
|
-
export declare const MenuList: default_2.ForwardRefExoticComponent<Omit<MenuListProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
810
|
-
|
|
811
|
-
export declare const MenuListDivider: default_2.FC<MenuListDividerProps>;
|
|
812
|
-
|
|
813
|
-
export declare type MenuListDividerProps = Omit<BoxProps, 'children' | keyof MenuVariantProps> & MenuVariantProps;
|
|
814
|
-
|
|
815
|
-
export declare const MenuListGroup: default_2.FC<MenuListGroupProps>;
|
|
816
|
-
|
|
817
|
-
export declare type MenuListGroupProps = Omit<BoxProps, 'title' | keyof MenuVariantProps> & MenuVariantProps & {
|
|
818
|
-
/** Group label */
|
|
819
|
-
label?: string;
|
|
820
|
-
/** Children (MenuListItem components) */
|
|
821
|
-
children: React.ReactNode;
|
|
822
|
-
};
|
|
823
|
-
|
|
824
|
-
export declare const MenuListItem: default_2.ForwardRefExoticComponent<Omit<MenuListItemProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
825
|
-
|
|
826
|
-
export declare type MenuListItemProps = Omit<BoxProps, 'children' | 'onClick' | keyof MenuVariantProps> & MenuVariantProps & {
|
|
827
|
-
/** Item behavior type */
|
|
828
|
-
type?: MenuItemType;
|
|
829
|
-
/** Selected state (for single-select and multi-select) */
|
|
830
|
-
selected?: boolean;
|
|
831
|
-
/** Active highlight state (controlled externally) */
|
|
832
|
-
active?: boolean;
|
|
833
|
-
/** Click handler */
|
|
834
|
-
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
835
|
-
/** Disable the item */
|
|
836
|
-
disabled?: boolean;
|
|
837
|
-
/** Primary label (required) */
|
|
838
|
-
label: string | React.ReactNode;
|
|
839
|
-
/** Secondary description text */
|
|
840
|
-
description?: string;
|
|
841
|
-
/** Icon on the left side */
|
|
842
|
-
iconLeft?: IconNamesList;
|
|
843
|
-
/** Icon on the right side */
|
|
844
|
-
iconRight?: IconNamesList;
|
|
845
|
-
/** Text to highlight (for autocomplete/search scenarios) */
|
|
846
|
-
highlightMatch?: string;
|
|
847
|
-
/** Selection indicator style (only for select types) */
|
|
848
|
-
selectionIndicator?: SelectionIndicator;
|
|
849
|
-
};
|
|
850
|
-
|
|
851
|
-
export declare type MenuListProps = Omit<BoxProps, keyof MenuVariantProps> & MenuVariantProps;
|
|
852
|
-
|
|
853
|
-
export declare type MenuProps = Omit<BoxProps, keyof MenuVariantProps> & MenuVariantProps & {
|
|
854
|
-
/** Controlled open state (REQUIRED) */
|
|
855
|
-
open: boolean;
|
|
856
|
-
/** Callback when open state should change (REQUIRED) */
|
|
857
|
-
onOpenChange: (open: boolean) => void;
|
|
858
|
-
/** Floating UI placement */
|
|
859
|
-
placement?: Placement;
|
|
860
|
-
/** Offset distance from trigger (in pixels) */
|
|
861
|
-
offset?: number;
|
|
862
|
-
/** Children (MenuTrigger, MenuItem, MenuGroup, etc.) */
|
|
863
|
-
children: React.ReactNode;
|
|
864
|
-
/** Optional ID for ARIA attributes */
|
|
865
|
-
id?: string;
|
|
866
|
-
};
|
|
867
|
-
|
|
868
|
-
export declare const MenuTrigger: default_2.FC<MenuTriggerProps>;
|
|
869
|
-
|
|
870
|
-
export declare type MenuTriggerProps = Omit<BoxProps, 'children'> & {
|
|
871
|
-
/** Trigger element (button, custom component, etc.) */
|
|
872
|
-
children: React.ReactElement;
|
|
873
|
-
/** Disable the trigger */
|
|
874
|
-
disabled?: boolean;
|
|
875
|
-
};
|
|
876
|
-
|
|
877
|
-
export declare const Modal: default_2.FC<ModalProps>;
|
|
878
|
-
|
|
879
|
-
export declare const ModalBody: default_2.FC<ModalBodyProps>;
|
|
880
|
-
|
|
881
|
-
export declare type ModalBodyProps = Omit<BoxProps, 'children'> & {
|
|
882
|
-
/** Body content */
|
|
883
|
-
children: React.ReactNode;
|
|
884
|
-
};
|
|
885
|
-
|
|
886
|
-
declare interface ModalContextValue {
|
|
887
|
-
/** Whether the modal is open */
|
|
888
|
-
open: boolean;
|
|
889
|
-
/** Callback to close the modal */
|
|
890
|
-
onClose: () => void;
|
|
891
|
-
/** Whether overlay clicks should close the modal */
|
|
892
|
-
preventOverlayClose?: boolean;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
export declare const ModalFooter: default_2.FC<ModalFooterProps>;
|
|
896
|
-
|
|
897
|
-
export declare type ModalFooterProps = Omit<BoxProps, 'children'> & {
|
|
898
|
-
/** Footer content (typically action buttons) */
|
|
899
|
-
children: React.ReactNode;
|
|
900
|
-
};
|
|
901
|
-
|
|
902
|
-
export declare const ModalHeader: default_2.FC<ModalHeaderProps>;
|
|
903
|
-
|
|
904
|
-
export declare type ModalHeaderProps = Omit<BoxProps, 'children'> & {
|
|
905
|
-
/** Title text */
|
|
906
|
-
title?: string | React.ReactNode;
|
|
907
|
-
/** Whether to show the close button */
|
|
908
|
-
showCloseButton?: boolean;
|
|
909
|
-
/** Children (custom header content) */
|
|
910
|
-
children?: React.ReactNode;
|
|
911
|
-
};
|
|
912
|
-
|
|
913
|
-
export declare type ModalProps = Omit<BoxProps, keyof ModalVariantProps> & ModalVariantProps & {
|
|
914
|
-
/** Controlled open state (REQUIRED) */
|
|
915
|
-
open: boolean;
|
|
916
|
-
/** Callback when open state should change (REQUIRED) */
|
|
917
|
-
onOpenChange: (open: boolean) => void;
|
|
918
|
-
/** Whether clicking the overlay should close the modal */
|
|
919
|
-
preventOverlayClose?: boolean;
|
|
920
|
-
/** Children (ModalHeader, ModalBody, ModalFooter) */
|
|
921
|
-
children: React.ReactNode;
|
|
922
|
-
/** Optional ID for ARIA attributes */
|
|
923
|
-
id?: string;
|
|
924
|
-
};
|
|
925
|
-
|
|
926
|
-
declare const numericSizes: {
|
|
927
|
-
'0': {
|
|
928
|
-
value: string;
|
|
929
|
-
};
|
|
930
|
-
'1': {
|
|
931
|
-
value: string;
|
|
932
|
-
};
|
|
933
|
-
'2': {
|
|
934
|
-
value: string;
|
|
935
|
-
};
|
|
936
|
-
'3': {
|
|
937
|
-
value: string;
|
|
938
|
-
};
|
|
939
|
-
'4': {
|
|
940
|
-
value: string;
|
|
941
|
-
};
|
|
942
|
-
'5': {
|
|
943
|
-
value: string;
|
|
944
|
-
};
|
|
945
|
-
'6': {
|
|
946
|
-
value: string;
|
|
947
|
-
};
|
|
948
|
-
'7': {
|
|
949
|
-
value: string;
|
|
950
|
-
};
|
|
951
|
-
'8': {
|
|
952
|
-
value: string;
|
|
953
|
-
};
|
|
954
|
-
'9': {
|
|
955
|
-
value: string;
|
|
956
|
-
};
|
|
957
|
-
'10': {
|
|
958
|
-
value: string;
|
|
959
|
-
};
|
|
960
|
-
'12': {
|
|
961
|
-
value: string;
|
|
962
|
-
};
|
|
963
|
-
'14': {
|
|
964
|
-
value: string;
|
|
965
|
-
};
|
|
966
|
-
'16': {
|
|
967
|
-
value: string;
|
|
968
|
-
};
|
|
969
|
-
'20': {
|
|
970
|
-
value: string;
|
|
971
|
-
};
|
|
972
|
-
'22': {
|
|
973
|
-
value: string;
|
|
974
|
-
};
|
|
975
|
-
'24': {
|
|
976
|
-
value: string;
|
|
977
|
-
};
|
|
978
|
-
'32': {
|
|
979
|
-
value: string;
|
|
980
|
-
};
|
|
981
|
-
'40': {
|
|
982
|
-
value: string;
|
|
983
|
-
};
|
|
984
|
-
'48': {
|
|
985
|
-
value: string;
|
|
986
|
-
};
|
|
987
|
-
'56': {
|
|
988
|
-
value: string;
|
|
989
|
-
};
|
|
990
|
-
'64': {
|
|
991
|
-
value: string;
|
|
992
|
-
};
|
|
993
|
-
'72': {
|
|
994
|
-
value: string;
|
|
995
|
-
};
|
|
996
|
-
'80': {
|
|
997
|
-
value: string;
|
|
998
|
-
};
|
|
999
|
-
'88': {
|
|
1000
|
-
value: string;
|
|
1001
|
-
};
|
|
1002
|
-
'96': {
|
|
1003
|
-
value: string;
|
|
1004
|
-
};
|
|
1005
|
-
'104': {
|
|
1006
|
-
value: string;
|
|
1007
|
-
};
|
|
1008
|
-
'112': {
|
|
1009
|
-
value: string;
|
|
1010
|
-
};
|
|
1011
|
-
'120': {
|
|
1012
|
-
value: string;
|
|
1013
|
-
};
|
|
1014
|
-
'128': {
|
|
1015
|
-
value: string;
|
|
1016
|
-
};
|
|
1017
|
-
'136': {
|
|
1018
|
-
value: string;
|
|
1019
|
-
};
|
|
1020
|
-
'144': {
|
|
1021
|
-
value: string;
|
|
1022
|
-
};
|
|
1023
|
-
'152': {
|
|
1024
|
-
value: string;
|
|
1025
|
-
};
|
|
1026
|
-
'160': {
|
|
1027
|
-
value: string;
|
|
1028
|
-
};
|
|
1029
|
-
'168': {
|
|
1030
|
-
value: string;
|
|
1031
|
-
};
|
|
1032
|
-
'176': {
|
|
1033
|
-
value: string;
|
|
1034
|
-
};
|
|
1035
|
-
'184': {
|
|
1036
|
-
value: string;
|
|
1037
|
-
};
|
|
1038
|
-
'192': {
|
|
1039
|
-
value: string;
|
|
1040
|
-
};
|
|
1041
|
-
'200': {
|
|
1042
|
-
value: string;
|
|
1043
|
-
};
|
|
1044
|
-
'208': {
|
|
1045
|
-
value: string;
|
|
1046
|
-
};
|
|
1047
|
-
'216': {
|
|
1048
|
-
value: string;
|
|
1049
|
-
};
|
|
1050
|
-
'224': {
|
|
1051
|
-
value: string;
|
|
1052
|
-
};
|
|
1053
|
-
'232': {
|
|
1054
|
-
value: string;
|
|
1055
|
-
};
|
|
1056
|
-
'240': {
|
|
1057
|
-
value: string;
|
|
1058
|
-
};
|
|
1059
|
-
'248': {
|
|
1060
|
-
value: string;
|
|
1061
|
-
};
|
|
1062
|
-
'256': {
|
|
1063
|
-
value: string;
|
|
1064
|
-
};
|
|
1065
|
-
'264': {
|
|
1066
|
-
value: string;
|
|
1067
|
-
};
|
|
1068
|
-
'272': {
|
|
1069
|
-
value: string;
|
|
1070
|
-
};
|
|
1071
|
-
'280': {
|
|
1072
|
-
value: string;
|
|
1073
|
-
};
|
|
1074
|
-
};
|
|
1075
|
-
|
|
1076
|
-
declare type Position = 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'bottom-start' | 'left-start' | 'right-start' | 'top-end' | 'bottom-end' | 'left-end' | 'right-end';
|
|
1077
|
-
|
|
1078
|
-
export declare const Pre: React.FC<PreProps>;
|
|
1079
|
-
|
|
1080
|
-
export declare type PreProps = BoxProps & {
|
|
1081
|
-
children: string | React.ReactNode;
|
|
1082
|
-
lang?: string;
|
|
1083
|
-
as?: string;
|
|
1084
|
-
};
|
|
1085
|
-
|
|
1086
|
-
declare type QueryDirection = 'min' | 'max';
|
|
1087
|
-
|
|
1088
|
-
declare type QueryDirection_2 = 'min' | 'max';
|
|
1089
|
-
|
|
1090
|
-
export declare const Radio: React.FC<RadioProps>;
|
|
1091
|
-
|
|
1092
|
-
export declare const RadioInput: FC<RadioInputProps>;
|
|
1093
|
-
|
|
1094
|
-
export declare type RadioInputProps = BoxProps & RadioInputVariantProps & {
|
|
1095
|
-
name: string;
|
|
1096
|
-
id?: string;
|
|
1097
|
-
error?: boolean;
|
|
1098
|
-
children?: string | ReactNode;
|
|
1099
|
-
};
|
|
1100
|
-
|
|
1101
|
-
export declare type RadioProps = Omit<BoxProps, keyof RadioVariantProps> & RadioVariantProps & {
|
|
1102
|
-
id?: string;
|
|
1103
|
-
name: string;
|
|
1104
|
-
disabled?: boolean;
|
|
1105
|
-
error?: boolean;
|
|
1106
|
-
};
|
|
1107
|
-
|
|
1108
|
-
export declare const Select: default_2.FC<SelectProps>;
|
|
1109
|
-
|
|
1110
|
-
export { SelectContextValue }
|
|
1111
|
-
|
|
1112
|
-
export declare type SelectionIndicator = 'checkmark' | 'checkbox';
|
|
1113
|
-
|
|
1114
|
-
/**
|
|
1115
|
-
* SelectOption component used within Select
|
|
1116
|
-
* Note: This component doesn't render directly - the Select parent component
|
|
1117
|
-
* converts SelectOption instances to MenuItem components for actual rendering.
|
|
1118
|
-
*/
|
|
1119
|
-
export declare const SelectOption: default_2.FC<SelectOptionProps>;
|
|
1120
|
-
|
|
1121
|
-
export { SelectOptionProps }
|
|
1122
|
-
|
|
1123
|
-
export { SelectProps }
|
|
1124
|
-
|
|
1125
|
-
export declare const SelectTrigger: default_2.FC<SelectTriggerProps>;
|
|
1126
|
-
|
|
1127
|
-
export { SelectTriggerProps }
|
|
1128
|
-
|
|
1129
|
-
export declare const Spinner: React.FC<SpinnerProps>;
|
|
1130
|
-
|
|
1131
|
-
export declare type SpinnerProps = Omit<BoxProps, keyof SpinnerVariantProps> & SpinnerVariantProps & {
|
|
1132
|
-
size?: 'standard' | 'small' | 'large';
|
|
1133
|
-
className?: string;
|
|
1134
|
-
inverse?: boolean;
|
|
1135
|
-
};
|
|
1136
|
-
|
|
1137
|
-
export declare const splitProps: (props: Record<string, any>) => [string, Record<string, any>];
|
|
1138
|
-
|
|
1139
|
-
export declare const Tag: React.FC<TagProps>;
|
|
1140
|
-
|
|
1141
|
-
export declare type TagProps = BoxProps & TagVariantProps & {
|
|
1142
|
-
children: string | ReactNode;
|
|
1143
|
-
iconName?: IconNamesList;
|
|
1144
|
-
};
|
|
1145
|
-
|
|
1146
|
-
declare const Text_2: default_2.FC<TextProps>;
|
|
1147
|
-
export { Text_2 as Text }
|
|
1148
|
-
|
|
1149
|
-
export declare const Textarea: React.FC<TextareaProps>;
|
|
1150
|
-
|
|
1151
|
-
export declare type TextareaProps = Omit<BoxProps, keyof TextareaVariantProps> & TextareaVariantProps & {
|
|
1152
|
-
name: string;
|
|
1153
|
-
error?: boolean;
|
|
1154
|
-
id?: string;
|
|
1155
|
-
};
|
|
1156
|
-
|
|
1157
|
-
export declare const TextInput: React.FC<TextInputProps>;
|
|
1158
|
-
|
|
1159
|
-
export declare type TextInputProps = Omit<BoxProps, keyof TextinputVariantProps> & TextinputVariantProps & {
|
|
1160
|
-
name: string;
|
|
1161
|
-
error?: boolean;
|
|
1162
|
-
id?: string;
|
|
1163
|
-
};
|
|
1164
|
-
|
|
1165
|
-
export declare type TextProps = Omit<BoxProps, keyof TextVariantProps> & TextVariantProps & {
|
|
1166
|
-
italic?: boolean;
|
|
1167
|
-
family?: FontToken;
|
|
1168
|
-
bold?: boolean;
|
|
1169
|
-
underline?: boolean;
|
|
1170
|
-
size?: FontSizeToken;
|
|
1171
|
-
weight?: FontWeightToken;
|
|
1172
|
-
children?: string | default_2.ReactNode;
|
|
1173
|
-
as?: ElementType;
|
|
1174
|
-
className?: string;
|
|
1175
|
-
};
|
|
1176
|
-
|
|
1177
|
-
export declare type Theme = 'light' | 'dark';
|
|
1178
|
-
|
|
1179
|
-
declare interface ThemeContextType {
|
|
1180
|
-
theme: Theme;
|
|
1181
|
-
setTheme: (theme: Theme) => void;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
export declare function ThemeProvider({ children }: {
|
|
1185
|
-
children: React.ReactNode;
|
|
1186
|
-
}): JSX.Element;
|
|
1187
|
-
|
|
1188
|
-
export declare function ThemeSwitcher(): JSX.Element;
|
|
1189
|
-
|
|
1190
|
-
export declare const Toggle: default_2.FC<ToggleProps>;
|
|
1191
|
-
|
|
1192
|
-
export declare const ToggleInput: FC<ToggleInputProps>;
|
|
1193
|
-
|
|
1194
|
-
export declare type ToggleInputProps = BoxProps & ToggleInputVariantProps & {
|
|
1195
|
-
name: string;
|
|
1196
|
-
id?: string;
|
|
1197
|
-
error?: boolean;
|
|
1198
|
-
children?: string | ReactNode;
|
|
1199
|
-
};
|
|
1200
|
-
|
|
1201
|
-
export declare type ToggleProps = Omit<BoxProps, keyof ToggleVariantProps> & ToggleVariantProps & {
|
|
1202
|
-
name: string;
|
|
1203
|
-
id?: string;
|
|
1204
|
-
error?: boolean;
|
|
1205
|
-
disabled?: boolean;
|
|
1206
|
-
};
|
|
1207
|
-
|
|
1208
|
-
export declare const Tooltip: React.FC<TooltipProps>;
|
|
1209
|
-
|
|
1210
|
-
export declare type TooltipProps = Omit<BoxProps, keyof TooltipVariantProps> & TooltipVariantProps & {
|
|
1211
|
-
text: string;
|
|
1212
|
-
title?: string;
|
|
1213
|
-
caret?: boolean;
|
|
1214
|
-
position?: Position;
|
|
1215
|
-
children?: ReactNode;
|
|
1216
|
-
trigger?: 'onHover' | 'onClick';
|
|
1217
|
-
};
|
|
1218
|
-
|
|
1219
|
-
/**
|
|
1220
|
-
* Token-aware container query hook for conditional rendering based on container sizes.
|
|
1221
|
-
* Requires a ref to the container element and the container must have container-type set.
|
|
1222
|
-
*
|
|
1223
|
-
* @example
|
|
1224
|
-
* // Component with container query
|
|
1225
|
-
* function MyComponent() {
|
|
1226
|
-
* const containerRef = useRef<HTMLDivElement>(null);
|
|
1227
|
-
* const isLarge = useContainerQuery(containerRef, 'lg');
|
|
1228
|
-
*
|
|
1229
|
-
* return (
|
|
1230
|
-
* <div ref={containerRef} style={{ containerType: 'inline-size' }}>
|
|
1231
|
-
* {isLarge && <LargeLayout />}
|
|
1232
|
-
* {!isLarge && <SmallLayout />}
|
|
1233
|
-
* </div>
|
|
1234
|
-
* );
|
|
1235
|
-
* }
|
|
1236
|
-
*
|
|
1237
|
-
* @example
|
|
1238
|
-
* // Max-width: matches when container is < xl size
|
|
1239
|
-
* const isSmall = useContainerQuery(containerRef, 'xl', 'max');
|
|
1240
|
-
*/
|
|
1241
|
-
export declare function useContainerQuery(containerRef: RefObject<HTMLElement>, size: ContainerSizeKey, direction?: QueryDirection_2): boolean;
|
|
1242
|
-
|
|
1243
|
-
/**
|
|
1244
|
-
* Token-aware media query hook for conditional rendering based on breakpoints.
|
|
1245
|
-
*
|
|
1246
|
-
* @example
|
|
1247
|
-
* // Mobile-first: matches when viewport is >= md (768px)
|
|
1248
|
-
* const isDesktop = useMediaQuery('md');
|
|
1249
|
-
*
|
|
1250
|
-
* @example
|
|
1251
|
-
* // Max-width: matches when viewport is < lg (1024px)
|
|
1252
|
-
* const isMobile = useMediaQuery('lg', 'max');
|
|
1253
|
-
*
|
|
1254
|
-
* @example
|
|
1255
|
-
* // In JSX
|
|
1256
|
-
* {isDesktop && <DesktopOnlyComponent />}
|
|
1257
|
-
*/
|
|
1258
|
-
export declare function useMediaQuery(breakpoint: BreakpointKey, direction?: QueryDirection): boolean;
|
|
1259
|
-
|
|
1260
|
-
export declare const useMenuContext: () => MenuContextValue;
|
|
1261
|
-
|
|
1262
|
-
export declare const useModalContext: () => ModalContextValue;
|
|
1263
|
-
|
|
1264
|
-
export declare const useSelectContext: () => SelectContextValue;
|
|
1265
|
-
|
|
1266
|
-
export declare function useTheme(): ThemeContextType;
|
|
1267
|
-
|
|
1268
|
-
export { }
|
|
1
|
+
// This is a template file that is copied to the /dist folder during build
|
|
2
|
+
// It is not used when running dev locally
|
|
3
|
+
export * from './types';
|