@entropix/react 0.1.0 → 0.2.0
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 +327 -0
- package/dist/index.cjs +468 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +410 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +183 -2
- package/dist/index.d.ts +183 -2
- package/dist/index.js +462 -4
- package/dist/index.js.map +1 -1
- package/dist/styles/checkbox.css +113 -0
- package/dist/styles/index.css +4 -0
- package/dist/styles/input.css +167 -0
- package/dist/styles/radio.css +123 -0
- package/dist/styles/select.css +145 -0
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessibilityProps, KeyboardHandlerConfig, KeyIntent, UseDialogOptions, UseTabsOptions, UseAccordionOptions, UseMenuOptions } from '@entropix/core';
|
|
1
|
+
import { AccessibilityProps, KeyboardHandlerConfig, KeyIntent, UseDialogOptions, UseTabsOptions, UseAccordionOptions, UseMenuOptions, UseRadioGroupOptions, UseSelectOptions } from '@entropix/core';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import react__default from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -225,6 +225,187 @@ interface MenuItemProps {
|
|
|
225
225
|
}
|
|
226
226
|
declare function MenuItem({ index, onSelect, disabled, children, className, }: MenuItemProps): react_jsx_runtime.JSX.Element;
|
|
227
227
|
|
|
228
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "disabled" | "value" | "size"> {
|
|
229
|
+
/** Controlled value */
|
|
230
|
+
value?: string;
|
|
231
|
+
/** Default value for uncontrolled mode */
|
|
232
|
+
defaultValue?: string;
|
|
233
|
+
/** Called when the value changes */
|
|
234
|
+
onChange?: (value: string) => void;
|
|
235
|
+
/** Whether the input is disabled */
|
|
236
|
+
disabled?: boolean;
|
|
237
|
+
/** Whether the input is read-only */
|
|
238
|
+
readOnly?: boolean;
|
|
239
|
+
/** Whether the input is required */
|
|
240
|
+
required?: boolean;
|
|
241
|
+
/** Whether the input is in an invalid state */
|
|
242
|
+
invalid?: boolean;
|
|
243
|
+
/** Label text */
|
|
244
|
+
label?: string;
|
|
245
|
+
/** Helper text displayed below the input */
|
|
246
|
+
helperText?: string;
|
|
247
|
+
/** Error message displayed below the input (sets invalid=true when present) */
|
|
248
|
+
errorMessage?: string;
|
|
249
|
+
/** Visual variant */
|
|
250
|
+
variant?: "default" | "filled";
|
|
251
|
+
/** Size */
|
|
252
|
+
size?: "sm" | "md" | "lg";
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Input component — web adapter for @entropix/core's useInput.
|
|
256
|
+
*
|
|
257
|
+
* Renders a wrapper div with label, input, helper text, and error message.
|
|
258
|
+
* Sets data-state, data-variant, and data-size attributes for CSS targeting.
|
|
259
|
+
*/
|
|
260
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
261
|
+
|
|
262
|
+
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "disabled" | "value"> {
|
|
263
|
+
/** Controlled value */
|
|
264
|
+
value?: string;
|
|
265
|
+
/** Default value for uncontrolled mode */
|
|
266
|
+
defaultValue?: string;
|
|
267
|
+
/** Called when the value changes */
|
|
268
|
+
onChange?: (value: string) => void;
|
|
269
|
+
/** Whether the textarea is disabled */
|
|
270
|
+
disabled?: boolean;
|
|
271
|
+
/** Whether the textarea is read-only */
|
|
272
|
+
readOnly?: boolean;
|
|
273
|
+
/** Whether the textarea is required */
|
|
274
|
+
required?: boolean;
|
|
275
|
+
/** Whether the textarea is in an invalid state */
|
|
276
|
+
invalid?: boolean;
|
|
277
|
+
/** Label text */
|
|
278
|
+
label?: string;
|
|
279
|
+
/** Helper text displayed below the textarea */
|
|
280
|
+
helperText?: string;
|
|
281
|
+
/** Error message displayed below the textarea (sets invalid=true when present) */
|
|
282
|
+
errorMessage?: string;
|
|
283
|
+
/** Visual variant */
|
|
284
|
+
variant?: "default" | "filled";
|
|
285
|
+
/** Size */
|
|
286
|
+
size?: "sm" | "md" | "lg";
|
|
287
|
+
/** Number of visible text rows */
|
|
288
|
+
rows?: number;
|
|
289
|
+
/** Resize behavior */
|
|
290
|
+
resize?: "none" | "vertical" | "both";
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Textarea component — web adapter for @entropix/core's useInput.
|
|
294
|
+
*
|
|
295
|
+
* Renders a wrapper div with label, textarea, helper text, and error message.
|
|
296
|
+
* Sets data-state, data-variant, and data-size attributes for CSS targeting.
|
|
297
|
+
*/
|
|
298
|
+
declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
299
|
+
|
|
300
|
+
interface CheckboxProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "disabled"> {
|
|
301
|
+
/** Controlled checked state */
|
|
302
|
+
checked?: boolean;
|
|
303
|
+
/** Default checked state for uncontrolled mode */
|
|
304
|
+
defaultChecked?: boolean;
|
|
305
|
+
/** Called when checked state changes */
|
|
306
|
+
onChange?: (checked: boolean) => void;
|
|
307
|
+
/** Whether the checkbox is disabled */
|
|
308
|
+
disabled?: boolean;
|
|
309
|
+
/** Accessible label text */
|
|
310
|
+
label?: string;
|
|
311
|
+
/** Whether the checkbox is in an indeterminate state */
|
|
312
|
+
indeterminate?: boolean;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Checkbox component — web adapter for @entropix/core's useToggle.
|
|
316
|
+
*
|
|
317
|
+
* Renders a `<button type="button">` with role="checkbox" containing
|
|
318
|
+
* an indicator span and a label span.
|
|
319
|
+
* Sets data-state="checked"|"unchecked"|"indeterminate" for CSS targeting.
|
|
320
|
+
*/
|
|
321
|
+
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLButtonElement>>;
|
|
322
|
+
|
|
323
|
+
interface RadioGroupProps extends UseRadioGroupOptions {
|
|
324
|
+
/** Label for the radio group */
|
|
325
|
+
label?: string;
|
|
326
|
+
children: react__default.ReactNode;
|
|
327
|
+
className?: string;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* RadioGroup component — web adapter for @entropix/core's useRadioGroup.
|
|
331
|
+
*
|
|
332
|
+
* Renders a `<div role="radiogroup">` that provides context to RadioItem children.
|
|
333
|
+
* Sets data-orientation for CSS targeting.
|
|
334
|
+
*/
|
|
335
|
+
declare function RadioGroup({ children, label, className, ...options }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
336
|
+
|
|
337
|
+
interface RadioItemProps {
|
|
338
|
+
/** The value this radio option represents */
|
|
339
|
+
value: string;
|
|
340
|
+
/** Whether this specific radio is disabled */
|
|
341
|
+
disabled?: boolean;
|
|
342
|
+
/** Label text */
|
|
343
|
+
label?: string;
|
|
344
|
+
children?: react__default.ReactNode;
|
|
345
|
+
className?: string;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* RadioItem component — a single radio option within a RadioGroup.
|
|
349
|
+
*
|
|
350
|
+
* Renders a `<button type="button" role="radio">` with an indicator
|
|
351
|
+
* circle and label. Sets data-state="checked"|"unchecked" for CSS targeting.
|
|
352
|
+
*/
|
|
353
|
+
declare function RadioItem({ value, disabled, label, children, className, }: RadioItemProps): react_jsx_runtime.JSX.Element;
|
|
354
|
+
|
|
355
|
+
interface SelectProps extends UseSelectOptions {
|
|
356
|
+
/** Label for the select */
|
|
357
|
+
label?: string;
|
|
358
|
+
children: react__default.ReactNode;
|
|
359
|
+
className?: string;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Select component — web adapter for @entropix/core's useSelect.
|
|
363
|
+
*
|
|
364
|
+
* Provides context to SelectTrigger, SelectContent, and SelectOption children.
|
|
365
|
+
*/
|
|
366
|
+
declare function Select({ children, label, className, ...options }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
367
|
+
|
|
368
|
+
interface SelectTriggerProps {
|
|
369
|
+
/** Placeholder text when no value is selected */
|
|
370
|
+
placeholder?: string;
|
|
371
|
+
children?: react__default.ReactNode;
|
|
372
|
+
className?: string;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* SelectTrigger — renders like a styled input with a chevron.
|
|
376
|
+
*
|
|
377
|
+
* Displays the currently selected value or placeholder text.
|
|
378
|
+
*/
|
|
379
|
+
declare function SelectTrigger({ placeholder, children, className, }: SelectTriggerProps): react_jsx_runtime.JSX.Element;
|
|
380
|
+
|
|
381
|
+
interface SelectContentProps {
|
|
382
|
+
children: react__default.ReactNode;
|
|
383
|
+
className?: string;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* SelectContent — renders the dropdown container for options.
|
|
387
|
+
*
|
|
388
|
+
* Only visible when the select is open.
|
|
389
|
+
*/
|
|
390
|
+
declare function SelectContent({ children, className }: SelectContentProps): react_jsx_runtime.JSX.Element | null;
|
|
391
|
+
|
|
392
|
+
interface SelectOptionProps {
|
|
393
|
+
/** The value this option represents */
|
|
394
|
+
value: string;
|
|
395
|
+
/** The index of this option in the list (auto-assigned by SelectContent if omitted) */
|
|
396
|
+
index?: number;
|
|
397
|
+
/** Whether this option is disabled */
|
|
398
|
+
disabled?: boolean;
|
|
399
|
+
children: react__default.ReactNode;
|
|
400
|
+
className?: string;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* SelectOption — renders an option within SelectContent.
|
|
404
|
+
*
|
|
405
|
+
* Sets data-state="selected"|"unselected" for CSS targeting.
|
|
406
|
+
*/
|
|
407
|
+
declare function SelectOption({ value, index, disabled, children, className, }: SelectOptionProps): react_jsx_runtime.JSX.Element;
|
|
408
|
+
|
|
228
409
|
/**
|
|
229
410
|
* Breakpoint values in pixels, matching @entropix/tokens breakpoint primitives.
|
|
230
411
|
*/
|
|
@@ -376,4 +557,4 @@ interface DividerProps extends React.HTMLAttributes<HTMLHRElement> {
|
|
|
376
557
|
*/
|
|
377
558
|
declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLHRElement>>;
|
|
378
559
|
|
|
379
|
-
export { Accordion, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, BREAKPOINTS, type Breakpoint, Button, type ButtonProps, Container, type ContainerProps, type ContainerSize, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogOverlay, type DialogOverlayProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Divider, type DividerProps, Inline, type InlineProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, type MenuProps, MenuTrigger, type MenuTriggerProps, type SpacingSize$1 as SpacingSize, Stack, type StackProps, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, Toggle, type ToggleProps, mapAccessibilityToAria, useBreakpoint, useBreakpointValue, useFocusRestore, useFocusTrap, useKeyboardHandler, useMediaQuery };
|
|
560
|
+
export { Accordion, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, BREAKPOINTS, type Breakpoint, Button, type ButtonProps, Checkbox, type CheckboxProps, Container, type ContainerProps, type ContainerSize, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogOverlay, type DialogOverlayProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Divider, type DividerProps, Inline, type InlineProps, Input, type InputProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, type MenuProps, MenuTrigger, type MenuTriggerProps, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, Select, SelectContent, type SelectContentProps, SelectOption, type SelectOptionProps, type SelectProps, SelectTrigger, type SelectTriggerProps, type SpacingSize$1 as SpacingSize, Stack, type StackProps, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, Textarea, type TextareaProps, Toggle, type ToggleProps, mapAccessibilityToAria, useBreakpoint, useBreakpointValue, useFocusRestore, useFocusTrap, useKeyboardHandler, useMediaQuery };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessibilityProps, KeyboardHandlerConfig, KeyIntent, UseDialogOptions, UseTabsOptions, UseAccordionOptions, UseMenuOptions } from '@entropix/core';
|
|
1
|
+
import { AccessibilityProps, KeyboardHandlerConfig, KeyIntent, UseDialogOptions, UseTabsOptions, UseAccordionOptions, UseMenuOptions, UseRadioGroupOptions, UseSelectOptions } from '@entropix/core';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import react__default from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -225,6 +225,187 @@ interface MenuItemProps {
|
|
|
225
225
|
}
|
|
226
226
|
declare function MenuItem({ index, onSelect, disabled, children, className, }: MenuItemProps): react_jsx_runtime.JSX.Element;
|
|
227
227
|
|
|
228
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "disabled" | "value" | "size"> {
|
|
229
|
+
/** Controlled value */
|
|
230
|
+
value?: string;
|
|
231
|
+
/** Default value for uncontrolled mode */
|
|
232
|
+
defaultValue?: string;
|
|
233
|
+
/** Called when the value changes */
|
|
234
|
+
onChange?: (value: string) => void;
|
|
235
|
+
/** Whether the input is disabled */
|
|
236
|
+
disabled?: boolean;
|
|
237
|
+
/** Whether the input is read-only */
|
|
238
|
+
readOnly?: boolean;
|
|
239
|
+
/** Whether the input is required */
|
|
240
|
+
required?: boolean;
|
|
241
|
+
/** Whether the input is in an invalid state */
|
|
242
|
+
invalid?: boolean;
|
|
243
|
+
/** Label text */
|
|
244
|
+
label?: string;
|
|
245
|
+
/** Helper text displayed below the input */
|
|
246
|
+
helperText?: string;
|
|
247
|
+
/** Error message displayed below the input (sets invalid=true when present) */
|
|
248
|
+
errorMessage?: string;
|
|
249
|
+
/** Visual variant */
|
|
250
|
+
variant?: "default" | "filled";
|
|
251
|
+
/** Size */
|
|
252
|
+
size?: "sm" | "md" | "lg";
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Input component — web adapter for @entropix/core's useInput.
|
|
256
|
+
*
|
|
257
|
+
* Renders a wrapper div with label, input, helper text, and error message.
|
|
258
|
+
* Sets data-state, data-variant, and data-size attributes for CSS targeting.
|
|
259
|
+
*/
|
|
260
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
261
|
+
|
|
262
|
+
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "disabled" | "value"> {
|
|
263
|
+
/** Controlled value */
|
|
264
|
+
value?: string;
|
|
265
|
+
/** Default value for uncontrolled mode */
|
|
266
|
+
defaultValue?: string;
|
|
267
|
+
/** Called when the value changes */
|
|
268
|
+
onChange?: (value: string) => void;
|
|
269
|
+
/** Whether the textarea is disabled */
|
|
270
|
+
disabled?: boolean;
|
|
271
|
+
/** Whether the textarea is read-only */
|
|
272
|
+
readOnly?: boolean;
|
|
273
|
+
/** Whether the textarea is required */
|
|
274
|
+
required?: boolean;
|
|
275
|
+
/** Whether the textarea is in an invalid state */
|
|
276
|
+
invalid?: boolean;
|
|
277
|
+
/** Label text */
|
|
278
|
+
label?: string;
|
|
279
|
+
/** Helper text displayed below the textarea */
|
|
280
|
+
helperText?: string;
|
|
281
|
+
/** Error message displayed below the textarea (sets invalid=true when present) */
|
|
282
|
+
errorMessage?: string;
|
|
283
|
+
/** Visual variant */
|
|
284
|
+
variant?: "default" | "filled";
|
|
285
|
+
/** Size */
|
|
286
|
+
size?: "sm" | "md" | "lg";
|
|
287
|
+
/** Number of visible text rows */
|
|
288
|
+
rows?: number;
|
|
289
|
+
/** Resize behavior */
|
|
290
|
+
resize?: "none" | "vertical" | "both";
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Textarea component — web adapter for @entropix/core's useInput.
|
|
294
|
+
*
|
|
295
|
+
* Renders a wrapper div with label, textarea, helper text, and error message.
|
|
296
|
+
* Sets data-state, data-variant, and data-size attributes for CSS targeting.
|
|
297
|
+
*/
|
|
298
|
+
declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
299
|
+
|
|
300
|
+
interface CheckboxProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "disabled"> {
|
|
301
|
+
/** Controlled checked state */
|
|
302
|
+
checked?: boolean;
|
|
303
|
+
/** Default checked state for uncontrolled mode */
|
|
304
|
+
defaultChecked?: boolean;
|
|
305
|
+
/** Called when checked state changes */
|
|
306
|
+
onChange?: (checked: boolean) => void;
|
|
307
|
+
/** Whether the checkbox is disabled */
|
|
308
|
+
disabled?: boolean;
|
|
309
|
+
/** Accessible label text */
|
|
310
|
+
label?: string;
|
|
311
|
+
/** Whether the checkbox is in an indeterminate state */
|
|
312
|
+
indeterminate?: boolean;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Checkbox component — web adapter for @entropix/core's useToggle.
|
|
316
|
+
*
|
|
317
|
+
* Renders a `<button type="button">` with role="checkbox" containing
|
|
318
|
+
* an indicator span and a label span.
|
|
319
|
+
* Sets data-state="checked"|"unchecked"|"indeterminate" for CSS targeting.
|
|
320
|
+
*/
|
|
321
|
+
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLButtonElement>>;
|
|
322
|
+
|
|
323
|
+
interface RadioGroupProps extends UseRadioGroupOptions {
|
|
324
|
+
/** Label for the radio group */
|
|
325
|
+
label?: string;
|
|
326
|
+
children: react__default.ReactNode;
|
|
327
|
+
className?: string;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* RadioGroup component — web adapter for @entropix/core's useRadioGroup.
|
|
331
|
+
*
|
|
332
|
+
* Renders a `<div role="radiogroup">` that provides context to RadioItem children.
|
|
333
|
+
* Sets data-orientation for CSS targeting.
|
|
334
|
+
*/
|
|
335
|
+
declare function RadioGroup({ children, label, className, ...options }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
336
|
+
|
|
337
|
+
interface RadioItemProps {
|
|
338
|
+
/** The value this radio option represents */
|
|
339
|
+
value: string;
|
|
340
|
+
/** Whether this specific radio is disabled */
|
|
341
|
+
disabled?: boolean;
|
|
342
|
+
/** Label text */
|
|
343
|
+
label?: string;
|
|
344
|
+
children?: react__default.ReactNode;
|
|
345
|
+
className?: string;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* RadioItem component — a single radio option within a RadioGroup.
|
|
349
|
+
*
|
|
350
|
+
* Renders a `<button type="button" role="radio">` with an indicator
|
|
351
|
+
* circle and label. Sets data-state="checked"|"unchecked" for CSS targeting.
|
|
352
|
+
*/
|
|
353
|
+
declare function RadioItem({ value, disabled, label, children, className, }: RadioItemProps): react_jsx_runtime.JSX.Element;
|
|
354
|
+
|
|
355
|
+
interface SelectProps extends UseSelectOptions {
|
|
356
|
+
/** Label for the select */
|
|
357
|
+
label?: string;
|
|
358
|
+
children: react__default.ReactNode;
|
|
359
|
+
className?: string;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Select component — web adapter for @entropix/core's useSelect.
|
|
363
|
+
*
|
|
364
|
+
* Provides context to SelectTrigger, SelectContent, and SelectOption children.
|
|
365
|
+
*/
|
|
366
|
+
declare function Select({ children, label, className, ...options }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
367
|
+
|
|
368
|
+
interface SelectTriggerProps {
|
|
369
|
+
/** Placeholder text when no value is selected */
|
|
370
|
+
placeholder?: string;
|
|
371
|
+
children?: react__default.ReactNode;
|
|
372
|
+
className?: string;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* SelectTrigger — renders like a styled input with a chevron.
|
|
376
|
+
*
|
|
377
|
+
* Displays the currently selected value or placeholder text.
|
|
378
|
+
*/
|
|
379
|
+
declare function SelectTrigger({ placeholder, children, className, }: SelectTriggerProps): react_jsx_runtime.JSX.Element;
|
|
380
|
+
|
|
381
|
+
interface SelectContentProps {
|
|
382
|
+
children: react__default.ReactNode;
|
|
383
|
+
className?: string;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* SelectContent — renders the dropdown container for options.
|
|
387
|
+
*
|
|
388
|
+
* Only visible when the select is open.
|
|
389
|
+
*/
|
|
390
|
+
declare function SelectContent({ children, className }: SelectContentProps): react_jsx_runtime.JSX.Element | null;
|
|
391
|
+
|
|
392
|
+
interface SelectOptionProps {
|
|
393
|
+
/** The value this option represents */
|
|
394
|
+
value: string;
|
|
395
|
+
/** The index of this option in the list (auto-assigned by SelectContent if omitted) */
|
|
396
|
+
index?: number;
|
|
397
|
+
/** Whether this option is disabled */
|
|
398
|
+
disabled?: boolean;
|
|
399
|
+
children: react__default.ReactNode;
|
|
400
|
+
className?: string;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* SelectOption — renders an option within SelectContent.
|
|
404
|
+
*
|
|
405
|
+
* Sets data-state="selected"|"unselected" for CSS targeting.
|
|
406
|
+
*/
|
|
407
|
+
declare function SelectOption({ value, index, disabled, children, className, }: SelectOptionProps): react_jsx_runtime.JSX.Element;
|
|
408
|
+
|
|
228
409
|
/**
|
|
229
410
|
* Breakpoint values in pixels, matching @entropix/tokens breakpoint primitives.
|
|
230
411
|
*/
|
|
@@ -376,4 +557,4 @@ interface DividerProps extends React.HTMLAttributes<HTMLHRElement> {
|
|
|
376
557
|
*/
|
|
377
558
|
declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLHRElement>>;
|
|
378
559
|
|
|
379
|
-
export { Accordion, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, BREAKPOINTS, type Breakpoint, Button, type ButtonProps, Container, type ContainerProps, type ContainerSize, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogOverlay, type DialogOverlayProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Divider, type DividerProps, Inline, type InlineProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, type MenuProps, MenuTrigger, type MenuTriggerProps, type SpacingSize$1 as SpacingSize, Stack, type StackProps, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, Toggle, type ToggleProps, mapAccessibilityToAria, useBreakpoint, useBreakpointValue, useFocusRestore, useFocusTrap, useKeyboardHandler, useMediaQuery };
|
|
560
|
+
export { Accordion, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, BREAKPOINTS, type Breakpoint, Button, type ButtonProps, Checkbox, type CheckboxProps, Container, type ContainerProps, type ContainerSize, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogOverlay, type DialogOverlayProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Divider, type DividerProps, Inline, type InlineProps, Input, type InputProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, type MenuProps, MenuTrigger, type MenuTriggerProps, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, Select, SelectContent, type SelectContentProps, SelectOption, type SelectOptionProps, type SelectProps, SelectTrigger, type SelectTriggerProps, type SpacingSize$1 as SpacingSize, Stack, type StackProps, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, Textarea, type TextareaProps, Toggle, type ToggleProps, mapAccessibilityToAria, useBreakpoint, useBreakpointValue, useFocusRestore, useFocusTrap, useKeyboardHandler, useMediaQuery };
|