@restio/ui 0.2.1-20260901123418 → 0.2.1-20260917153719
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/core.cjs +1 -1
- package/dist/core.d.ts +234 -40
- package/dist/core.js +32 -27
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +147 -15
- package/dist/data.js +19 -19
- package/dist/experimental.cjs +1 -1
- package/dist/experimental.js +43 -43
- package/dist/framework.cjs +1 -1
- package/dist/framework.d.ts +39 -11
- package/dist/framework.js +29 -26
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +355 -52
- package/dist/index.js +96 -88
- package/dist/{src-DaTjVaGd.js → src-CIojZORu.js} +12047 -11445
- package/dist/src-Cr-lHp0p.cjs +156 -0
- package/dist/ui.css +1 -1
- package/package.json +5 -2
- package/dist/src-gB-fpYMb.cjs +0 -156
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./src-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./src-Cr-lHp0p.cjs");exports.AnchoredOverlay=e.AnchoredOverlay;exports.Banner=e.Banner;exports.Button=e.Button;exports.ButtonDropdown=e.ButtonDropdown;exports.ButtonGroup=e.ButtonGroup;exports.CellType=e.CellType;exports.Checkbox=e.Checkbox;exports.CheckboxGroup=e.CheckboxGroup;exports.DatePicker=e.DatePicker;exports.DateRangePicker=e.DateRangePicker;exports.FileUpload=e.FileUpload;exports.Icon=e.Icon;exports.Input=e.Input;exports.Kbd=e.Kbd;exports.Label=e.Label;exports.Menu=e.Menu;exports.NumberInput=e.NumberInput;exports.OTP=e.OTPComponent;exports.OverlayPanel=e.OverlayPanel;exports.ProgressBar=e.ProgressBar;exports.Radio=e.Radio;exports.RadioGroup=e.RadioGroup;exports.Select=e.Select;exports.SelectionGrid=e.SelectionGrid;exports.ShortcutProvider=e.ShortcutProvider;exports.Stack=e.Stack;exports.Tag=e.Tag;exports.TextInput=e.TextInput;exports.Textarea=e.Textarea;exports.Typography=e.Typography;exports.useDynamicVirtualList=e.useDynamicVirtualList;exports.useShortcut=e.useShortcut;
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React$1 from 'react';
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { RefObject } from 'react';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* OTP Component Props
|
|
@@ -30,7 +31,7 @@ interface OTPProps {
|
|
|
30
31
|
className?: string;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
declare const OTPComponent:
|
|
34
|
+
declare const OTPComponent: React__default.FC<OTPProps>;
|
|
34
35
|
|
|
35
36
|
/** Interface for an option in a component */
|
|
36
37
|
interface Option {
|
|
@@ -95,7 +96,7 @@ interface BannerProps {
|
|
|
95
96
|
linkLabel?: string;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
|
-
declare const Banner:
|
|
99
|
+
declare const Banner: React__default.FC<BannerProps>;
|
|
99
100
|
|
|
100
101
|
type ButtonVariant = "base" | "primary" | "danger" | "invisible" | "link";
|
|
101
102
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -111,7 +112,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
111
112
|
count?: number;
|
|
112
113
|
}
|
|
113
114
|
|
|
114
|
-
declare const Button:
|
|
115
|
+
declare const Button: React__default.FC<ButtonProps>;
|
|
115
116
|
|
|
116
117
|
interface ButtonGroupProps {
|
|
117
118
|
options: Option[];
|
|
@@ -128,7 +129,7 @@ interface ButtonGroupProps {
|
|
|
128
129
|
readonly iconOnly?: boolean;
|
|
129
130
|
}
|
|
130
131
|
|
|
131
|
-
declare const ButtonGroup:
|
|
132
|
+
declare const ButtonGroup: React__default.FC<ButtonGroupProps>;
|
|
132
133
|
|
|
133
134
|
interface ButtonDropdownProps {
|
|
134
135
|
/** Currently selected value */
|
|
@@ -153,7 +154,7 @@ interface ButtonDropdownProps {
|
|
|
153
154
|
* A button that opens a dropdown menu to select a single value.
|
|
154
155
|
* Flat component — not a form field. Use Select for form contexts.
|
|
155
156
|
*/
|
|
156
|
-
declare const ButtonDropdown:
|
|
157
|
+
declare const ButtonDropdown: React__default.FC<ButtonDropdownProps>;
|
|
157
158
|
|
|
158
159
|
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
|
|
159
160
|
/** Whether the checkbox is checked */
|
|
@@ -170,7 +171,7 @@ interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>
|
|
|
170
171
|
onChange?: (checked: boolean) => void;
|
|
171
172
|
}
|
|
172
173
|
|
|
173
|
-
declare const Checkbox:
|
|
174
|
+
declare const Checkbox: React__default.FC<CheckboxProps>;
|
|
174
175
|
|
|
175
176
|
interface CheckboxOption {
|
|
176
177
|
/** Value of the checkbox option */
|
|
@@ -203,7 +204,7 @@ interface CheckboxGroupProps {
|
|
|
203
204
|
* A group of checkboxes that allows multiple selection.
|
|
204
205
|
* Manages the selection state and renders a list of Checkbox components.
|
|
205
206
|
*/
|
|
206
|
-
declare const CheckboxGroup:
|
|
207
|
+
declare const CheckboxGroup: React__default.FC<CheckboxGroupProps>;
|
|
207
208
|
|
|
208
209
|
interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "type"> {
|
|
209
210
|
/** Whether the radio is checked */
|
|
@@ -222,7 +223,7 @@ interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
|
222
223
|
* A styled radio input component.
|
|
223
224
|
* Supports size variants, disabled, and error states.
|
|
224
225
|
*/
|
|
225
|
-
declare const Radio:
|
|
226
|
+
declare const Radio: React__default.FC<RadioProps>;
|
|
226
227
|
|
|
227
228
|
interface RadioOption {
|
|
228
229
|
/** Value of the radio option */
|
|
@@ -257,13 +258,13 @@ interface RadioGroupProps {
|
|
|
257
258
|
* A group of radios that allows single selection.
|
|
258
259
|
* Manages the selection state and renders a list of Radio components.
|
|
259
260
|
*/
|
|
260
|
-
declare const RadioGroup:
|
|
261
|
+
declare const RadioGroup: React__default.FC<RadioGroupProps>;
|
|
261
262
|
|
|
262
263
|
interface AnchoredOverlayProps {
|
|
263
264
|
/** The anchor element that triggers the overlay */
|
|
264
|
-
anchor:
|
|
265
|
+
anchor: React__default.ReactNode;
|
|
265
266
|
/** The target element to display as the overlay */
|
|
266
|
-
target:
|
|
267
|
+
target: React__default.ReactNode;
|
|
267
268
|
/** Whether the overlay is open/visible */
|
|
268
269
|
isOpen?: boolean;
|
|
269
270
|
/** Callback when the overlay should be closed */
|
|
@@ -280,31 +281,31 @@ interface AnchoredOverlayProps {
|
|
|
280
281
|
animationDuration?: number;
|
|
281
282
|
}
|
|
282
283
|
|
|
283
|
-
declare const AnchoredOverlay:
|
|
284
|
+
declare const AnchoredOverlay: React__default.FC<AnchoredOverlayProps>;
|
|
284
285
|
|
|
285
286
|
/** Props for the OverlayPanel.Footer sub-component. */
|
|
286
287
|
interface OverlayPanelFooterProps {
|
|
287
288
|
/** Footer content — typically action buttons (primary, secondary, etc.). */
|
|
288
|
-
children:
|
|
289
|
+
children: React__default.ReactNode;
|
|
289
290
|
}
|
|
290
291
|
|
|
291
292
|
/** Standard footer for OverlayPanel. Compose as a child of OverlayPanel */
|
|
292
|
-
declare const OverlayPanelFooter:
|
|
293
|
+
declare const OverlayPanelFooter: React__default.FC<OverlayPanelFooterProps>;
|
|
293
294
|
|
|
294
295
|
/** Props for the OverlayPanel.Header sub-component.*/
|
|
295
296
|
interface OverlayPanelHeaderProps {
|
|
296
297
|
/** Panel title shown on the left. Accepts string or custom node. */
|
|
297
|
-
title:
|
|
298
|
+
title: React__default.ReactNode;
|
|
298
299
|
/** Called when the close button is clicked. If omitted, no close button is rendered. */
|
|
299
300
|
onClose?: () => void;
|
|
300
301
|
/** Optional actions (buttons, etc.) rendered before the close button. */
|
|
301
|
-
actions?:
|
|
302
|
+
actions?: React__default.ReactNode;
|
|
302
303
|
/** Whether to show the close button. Defaults to true when onClose is provided. */
|
|
303
304
|
showClose?: boolean;
|
|
304
305
|
}
|
|
305
306
|
|
|
306
307
|
/** Standard header for OverlayPanel. Compose as a child of OverlayPanel */
|
|
307
|
-
declare const OverlayPanelHeader:
|
|
308
|
+
declare const OverlayPanelHeader: React__default.FC<OverlayPanelHeaderProps>;
|
|
308
309
|
|
|
309
310
|
/** OverlayPanelPosition defines the possible positions for the OverlayPanel. */
|
|
310
311
|
type OverlayPanelPosition = "center" | "left" | "right" | "top" | "bottom";
|
|
@@ -379,7 +380,7 @@ interface KbdProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
379
380
|
children: string;
|
|
380
381
|
}
|
|
381
382
|
|
|
382
|
-
declare const Kbd:
|
|
383
|
+
declare const Kbd: React__default.FC<KbdProps>;
|
|
383
384
|
|
|
384
385
|
interface IconProps {
|
|
385
386
|
/**
|
|
@@ -404,8 +405,22 @@ interface IconProps {
|
|
|
404
405
|
height?: string;
|
|
405
406
|
}
|
|
406
407
|
|
|
407
|
-
declare const Icon:
|
|
408
|
+
declare const Icon: React__default.FC<IconProps>;
|
|
408
409
|
|
|
410
|
+
interface InputProps {
|
|
411
|
+
error?: string;
|
|
412
|
+
disabled?: boolean;
|
|
413
|
+
size?: Size;
|
|
414
|
+
leadingIcon?: string;
|
|
415
|
+
trailingIcon?: string;
|
|
416
|
+
autoFocus?: boolean;
|
|
417
|
+
className?: string;
|
|
418
|
+
children: (props: InputChildProps) => React.ReactNode;
|
|
419
|
+
}
|
|
420
|
+
interface InputChildProps {
|
|
421
|
+
id: string;
|
|
422
|
+
disabled?: boolean;
|
|
423
|
+
}
|
|
409
424
|
interface sharedInputProps {
|
|
410
425
|
autoFocus?: boolean;
|
|
411
426
|
placeholder?: string;
|
|
@@ -428,7 +443,186 @@ interface NumberInputProps extends sharedInputProps {
|
|
|
428
443
|
max?: number;
|
|
429
444
|
}
|
|
430
445
|
|
|
431
|
-
declare const NumberInput:
|
|
446
|
+
declare const NumberInput: React__default.FC<NumberInputProps>;
|
|
447
|
+
|
|
448
|
+
declare const Input: React__default.FC<InputProps>;
|
|
449
|
+
|
|
450
|
+
interface TextInputProps extends sharedInputProps {
|
|
451
|
+
value: string | undefined;
|
|
452
|
+
onChange: (value: string | undefined) => void;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
declare const TextInput: React__default.FC<TextInputProps>;
|
|
456
|
+
|
|
457
|
+
interface SelectTemplateProps {
|
|
458
|
+
options: Option[];
|
|
459
|
+
value: string | string[];
|
|
460
|
+
multiple: boolean;
|
|
461
|
+
onChange: (value: string | string[]) => void;
|
|
462
|
+
onClose: () => void;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/** Select template types supported out of the box. */
|
|
466
|
+
type SelectType = "list" | "grid" | "preview-dialog";
|
|
467
|
+
interface SelectBaseProps {
|
|
468
|
+
/** Active value of the select: `string` for single, `string[]` for multiple. */
|
|
469
|
+
value: string | string[];
|
|
470
|
+
/** List of possible options. */
|
|
471
|
+
options: Option[];
|
|
472
|
+
/** Label shown above the field. */
|
|
473
|
+
label?: string;
|
|
474
|
+
/** Helper text shown below the field. */
|
|
475
|
+
helperText?: string;
|
|
476
|
+
/** Disables the select trigger. */
|
|
477
|
+
disabled?: boolean;
|
|
478
|
+
/** Whether the select is read-only. */
|
|
479
|
+
readOnly?: boolean;
|
|
480
|
+
/** Size of the select trigger button. */
|
|
481
|
+
size?: Size;
|
|
482
|
+
/** Enables multiselection. */
|
|
483
|
+
multiple?: boolean;
|
|
484
|
+
/** Called when the selection changes. Receives `string` (single) or `string[]` (multiple). */
|
|
485
|
+
onChange?: (value: string | string[]) => void;
|
|
486
|
+
/** Controlled open state. When provided, the dropdown is controlled externally. */
|
|
487
|
+
open?: boolean;
|
|
488
|
+
/** Notifies open/close changes. Only meaningful when `open` is provided. */
|
|
489
|
+
onOpenChange?: (open: boolean) => void;
|
|
490
|
+
}
|
|
491
|
+
interface SelectProps extends SelectBaseProps {
|
|
492
|
+
/** Built-in template kind. Defaults to `"list"` when omitted. */
|
|
493
|
+
type?: SelectType;
|
|
494
|
+
/** Dialog title (`type="preview-dialog"`). */
|
|
495
|
+
title?: string;
|
|
496
|
+
/** Renders the live preview of drafted selections (`type="preview-dialog"`). */
|
|
497
|
+
renderPreview?: (selected: Option[]) => React.ReactNode;
|
|
498
|
+
/** Custom inline dropdown content (replaces built-in templates). */
|
|
499
|
+
renderList?: (props: SelectTemplateProps) => React.ReactNode;
|
|
500
|
+
/** Custom dialog content (opens an OverlayPanel instead of a dropdown). */
|
|
501
|
+
renderDialog?: (props: SelectTemplateProps) => React.ReactNode;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
declare const Select: React__default.FC<SelectProps>;
|
|
505
|
+
|
|
506
|
+
interface TextareaProps {
|
|
507
|
+
/**
|
|
508
|
+
* Value of the textarea field
|
|
509
|
+
*/
|
|
510
|
+
value: string;
|
|
511
|
+
/**
|
|
512
|
+
* Leading icon to display before the textarea
|
|
513
|
+
*/
|
|
514
|
+
leadingIcon?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Trailing icon to display after the textarea
|
|
517
|
+
*/
|
|
518
|
+
trailingIcon?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Placeholder text for the textarea
|
|
521
|
+
*/
|
|
522
|
+
placeholder?: string;
|
|
523
|
+
/**
|
|
524
|
+
* ARIA label for the textarea
|
|
525
|
+
*/
|
|
526
|
+
ariaLabel?: string;
|
|
527
|
+
/**
|
|
528
|
+
* Callback triggered when the textarea value changes
|
|
529
|
+
* @param value - The current value of the textarea
|
|
530
|
+
*/
|
|
531
|
+
onChange?: (value: string) => void;
|
|
532
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
533
|
+
onBlur?: () => void;
|
|
534
|
+
/**
|
|
535
|
+
* Label for the field
|
|
536
|
+
*/
|
|
537
|
+
label?: string;
|
|
538
|
+
/**
|
|
539
|
+
* Helper text displayed below the field
|
|
540
|
+
*/
|
|
541
|
+
helperText?: string;
|
|
542
|
+
/**
|
|
543
|
+
* Ref for the textarea element
|
|
544
|
+
*/
|
|
545
|
+
ref?: RefObject<HTMLTextAreaElement | null>;
|
|
546
|
+
/**
|
|
547
|
+
* Disabled state
|
|
548
|
+
*/
|
|
549
|
+
disabled?: boolean;
|
|
550
|
+
/**
|
|
551
|
+
* Autofocus the textarea on mount
|
|
552
|
+
*/
|
|
553
|
+
autoFocus?: boolean;
|
|
554
|
+
/**
|
|
555
|
+
* Error message shown below the field (danger state)
|
|
556
|
+
*/
|
|
557
|
+
error?: string;
|
|
558
|
+
/** Size of the textarea */
|
|
559
|
+
size?: Size;
|
|
560
|
+
/** Number of rows (default 3) */
|
|
561
|
+
rows?: number;
|
|
562
|
+
/** Number of cols ( default 1 ) */
|
|
563
|
+
cols?: number;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
declare const Textarea: React__default.FC<TextareaProps>;
|
|
567
|
+
|
|
568
|
+
interface BaseTypographyProps {
|
|
569
|
+
/**
|
|
570
|
+
* Prefer children when rendering rich/nested content
|
|
571
|
+
*/
|
|
572
|
+
children?: React__default.ReactNode;
|
|
573
|
+
variant: TypographyVariant;
|
|
574
|
+
/**
|
|
575
|
+
* Flag to indicate if the component is disabled.
|
|
576
|
+
* @optional
|
|
577
|
+
*/
|
|
578
|
+
disabled?: boolean;
|
|
579
|
+
/**
|
|
580
|
+
* Optional color string i can pass to the text
|
|
581
|
+
* @optional
|
|
582
|
+
*/
|
|
583
|
+
color?: string;
|
|
584
|
+
/**
|
|
585
|
+
* Font weight applied to the text.
|
|
586
|
+
* @optional
|
|
587
|
+
*/
|
|
588
|
+
fontWeight?: string | number;
|
|
589
|
+
/**
|
|
590
|
+
* Font style applied to the text.
|
|
591
|
+
* @optional
|
|
592
|
+
*/
|
|
593
|
+
fontStyle?: string;
|
|
594
|
+
/**
|
|
595
|
+
* Text decoration applied to the text.
|
|
596
|
+
* @optional
|
|
597
|
+
*/
|
|
598
|
+
textDecoration?: string;
|
|
599
|
+
}
|
|
600
|
+
type TypographyProps<T extends TypographyVariant> = BaseTypographyProps & {
|
|
601
|
+
variant: T;
|
|
602
|
+
} & React__default.ComponentPropsWithoutRef<VariantToElement<T>>;
|
|
603
|
+
type TypographyVariant = "display" | "heading" | "body" | "label" | "code" | "subtitle" | "title" | "caption" | "article-h1" | "article-h2" | "article-h3" | "article-h4" | "article-body" | "article-code" | "article-quote" | "article-caption" | "article-list";
|
|
604
|
+
declare const variantToComponent: {
|
|
605
|
+
readonly display: "h1";
|
|
606
|
+
readonly heading: "h2";
|
|
607
|
+
readonly title: "h3";
|
|
608
|
+
readonly subtitle: "h4";
|
|
609
|
+
readonly body: "p";
|
|
610
|
+
readonly label: "label";
|
|
611
|
+
readonly code: "code";
|
|
612
|
+
readonly caption: "span";
|
|
613
|
+
readonly "article-h1": "h1";
|
|
614
|
+
readonly "article-h2": "h2";
|
|
615
|
+
readonly "article-h3": "h3";
|
|
616
|
+
readonly "article-h4": "h4";
|
|
617
|
+
readonly "article-body": "p";
|
|
618
|
+
readonly "article-code": "code";
|
|
619
|
+
readonly "article-quote": "blockquote";
|
|
620
|
+
readonly "article-caption": "figcaption";
|
|
621
|
+
readonly "article-list": "li";
|
|
622
|
+
};
|
|
623
|
+
type VariantToElement<T extends TypographyVariant> = (typeof variantToComponent)[T];
|
|
624
|
+
|
|
625
|
+
declare const Typography: <T extends TypographyVariant>({ variant, children, color, disabled, className, fontWeight, fontStyle, textDecoration, ...htmlProps }: TypographyProps<T>) => React$1.JSX.Element;
|
|
432
626
|
|
|
433
627
|
type DatePickerMode = "day" | "month" | "quarter" | "year";
|
|
434
628
|
interface DateRange {
|
|
@@ -466,14 +660,14 @@ interface DateRangePickerProps extends Omit<sharedInputProps, "onKeyDown"> {
|
|
|
466
660
|
* Single-date picker supporting day, month, quarter, and year modes.
|
|
467
661
|
* Renders a styled text input and opens a calendar overlay on focus/click.
|
|
468
662
|
*/
|
|
469
|
-
declare const DatePicker:
|
|
663
|
+
declare const DatePicker: React__default.FC<DatePickerProps>;
|
|
470
664
|
|
|
471
665
|
/**
|
|
472
666
|
* Date range picker supporting day, month, quarter, and year modes.
|
|
473
667
|
* Shows two calendars side-by-side for range selection.
|
|
474
668
|
* Clicking once sets the start date; clicking again sets the end date.
|
|
475
669
|
*/
|
|
476
|
-
declare const DateRangePicker:
|
|
670
|
+
declare const DateRangePicker: React__default.FC<DateRangePickerProps>;
|
|
477
671
|
|
|
478
672
|
interface LabelProps {
|
|
479
673
|
/**
|
|
@@ -510,7 +704,7 @@ interface StackProps {
|
|
|
510
704
|
* Arranges children in a flex row or column with consistent spacing.
|
|
511
705
|
* Uses design-system gap tokens (`--rst-space-*`) instead of inline rem values.
|
|
512
706
|
*/
|
|
513
|
-
declare const Stack:
|
|
707
|
+
declare const Stack: React__default.FC<StackProps>;
|
|
514
708
|
|
|
515
709
|
interface MenuItem {
|
|
516
710
|
id?: string;
|
|
@@ -521,21 +715,21 @@ interface MenuItem {
|
|
|
521
715
|
onClick?: (item: MenuItem) => void;
|
|
522
716
|
type?: "item" | "separator";
|
|
523
717
|
shortcut?: string[];
|
|
524
|
-
content?:
|
|
718
|
+
content?: React__default.ReactNode;
|
|
525
719
|
}
|
|
526
|
-
interface MenuProps extends
|
|
720
|
+
interface MenuProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
527
721
|
onItemClick?: (item: MenuItem) => void;
|
|
528
722
|
}
|
|
529
|
-
interface MenuSubmenuProps extends
|
|
530
|
-
trigger:
|
|
723
|
+
interface MenuSubmenuProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
724
|
+
trigger: React__default.ReactNode;
|
|
531
725
|
position?: AnchorPosition;
|
|
532
726
|
align?: anchorAlign;
|
|
533
727
|
}
|
|
534
728
|
|
|
535
|
-
declare const Menu:
|
|
536
|
-
Item:
|
|
537
|
-
Separator:
|
|
538
|
-
Submenu:
|
|
729
|
+
declare const Menu: React__default.FC<MenuProps> & {
|
|
730
|
+
Item: React__default.FC<MenuItem>;
|
|
731
|
+
Separator: React__default.FC<React__default.HTMLAttributes<HTMLHRElement>>;
|
|
732
|
+
Submenu: React__default.FC<MenuSubmenuProps>;
|
|
539
733
|
};
|
|
540
734
|
|
|
541
735
|
interface SelectionGridProps {
|
|
@@ -561,7 +755,7 @@ interface SelectionGridProps {
|
|
|
561
755
|
* A grid of selectable items supporting single and multiple selection.
|
|
562
756
|
* Behaves like a selection list but laid out in a grid.
|
|
563
757
|
*/
|
|
564
|
-
declare const SelectionGrid:
|
|
758
|
+
declare const SelectionGrid: React__default.FC<SelectionGridProps>;
|
|
565
759
|
|
|
566
760
|
interface FileUploadProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
567
761
|
/**
|
|
@@ -599,7 +793,7 @@ interface FileUploadProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'on
|
|
|
599
793
|
icon?: string;
|
|
600
794
|
}
|
|
601
795
|
|
|
602
|
-
declare const FileUpload:
|
|
796
|
+
declare const FileUpload: React__default.FC<FileUploadProps>;
|
|
603
797
|
|
|
604
798
|
interface ProgressBarProps {
|
|
605
799
|
/** Current progress value */
|
|
@@ -629,7 +823,7 @@ interface ProgressBarProps {
|
|
|
629
823
|
/**
|
|
630
824
|
* ProgressBar component for displaying progress visually.
|
|
631
825
|
*/
|
|
632
|
-
declare const ProgressBar:
|
|
826
|
+
declare const ProgressBar: React__default.FC<ProgressBarProps>;
|
|
633
827
|
|
|
634
828
|
interface TagProps {
|
|
635
829
|
value: string | number;
|
|
@@ -640,13 +834,13 @@ interface TagProps {
|
|
|
640
834
|
onClear?: () => void;
|
|
641
835
|
}
|
|
642
836
|
|
|
643
|
-
declare const Tag:
|
|
837
|
+
declare const Tag: React__default.FC<TagProps>;
|
|
644
838
|
|
|
645
839
|
/**
|
|
646
840
|
* Props for the ShortcutProvider component
|
|
647
841
|
*/
|
|
648
842
|
interface ShortcutProviderProps {
|
|
649
|
-
readonly children:
|
|
843
|
+
readonly children: React__default.ReactNode;
|
|
650
844
|
}
|
|
651
845
|
/**
|
|
652
846
|
* ShortcutProvider manages global keyboard shortcuts and displays visual feedback tooltips.
|
|
@@ -673,7 +867,7 @@ interface ShortcutProviderProps {
|
|
|
673
867
|
*
|
|
674
868
|
* @param children - Child components that will have access to shortcut context
|
|
675
869
|
*/
|
|
676
|
-
declare const ShortcutProvider:
|
|
870
|
+
declare const ShortcutProvider: React__default.FC<ShortcutProviderProps>;
|
|
677
871
|
|
|
678
872
|
/**
|
|
679
873
|
* Configuration for a keyboard shortcut
|
|
@@ -799,5 +993,5 @@ interface UseDynamicVirtualListResult {
|
|
|
799
993
|
*/
|
|
800
994
|
declare function useDynamicVirtualList({ count, estimatedItemHeight, overscan, }: UseDynamicVirtualListOptions): UseDynamicVirtualListResult;
|
|
801
995
|
|
|
802
|
-
export { AnchoredOverlay, Banner, Button, ButtonDropdown, ButtonGroup, CellType, Checkbox, CheckboxGroup, DatePicker, DateRangePicker, FileUpload, Icon, Kbd, Label, Menu, NumberInput, OTPComponent as OTP, OverlayPanel, ProgressBar, Radio, RadioGroup, SelectionGrid, ShortcutProvider, Stack, Tag, useDynamicVirtualList, useShortcut };
|
|
803
|
-
export type { AnchoredOverlayProps, BannerProps, Breakpoint, ButtonDropdownProps, ButtonGroupProps, ButtonProps, CheckboxGroupProps, CheckboxOption, CheckboxProps, DatePickerMode, DatePickerProps, DateRange, DateRangePickerProps, DynamicVirtualItem, IconProps, KbdProps, LabelProps, ListItemVariant, MenuItem, MenuProps, MenuSubmenuProps, NumberInputProps, OTPProps, Option, OverlayPanelFooterProps, OverlayPanelHeaderProps, OverlayPanelPosition, OverlayPanelProps, OverlayPanelVariant, ProgressBarProps, RadioGroupProps, RadioOption, RadioProps, SelectionGridProps, ShortcutConfig, Size, StackProps, State, TagProps, UseDynamicVirtualListOptions, UseDynamicVirtualListResult, UseShortcutOptions };
|
|
996
|
+
export { AnchoredOverlay, Banner, Button, ButtonDropdown, ButtonGroup, CellType, Checkbox, CheckboxGroup, DatePicker, DateRangePicker, FileUpload, Icon, Input, Kbd, Label, Menu, NumberInput, OTPComponent as OTP, OverlayPanel, ProgressBar, Radio, RadioGroup, Select, SelectionGrid, ShortcutProvider, Stack, Tag, TextInput, Textarea, Typography, useDynamicVirtualList, useShortcut };
|
|
997
|
+
export type { AnchoredOverlayProps, BannerProps, Breakpoint, ButtonDropdownProps, ButtonGroupProps, ButtonProps, CheckboxGroupProps, CheckboxOption, CheckboxProps, DatePickerMode, DatePickerProps, DateRange, DateRangePickerProps, DynamicVirtualItem, IconProps, InputProps, KbdProps, LabelProps, ListItemVariant, MenuItem, MenuProps, MenuSubmenuProps, NumberInputProps, OTPProps, Option, OverlayPanelFooterProps, OverlayPanelHeaderProps, OverlayPanelPosition, OverlayPanelProps, OverlayPanelVariant, ProgressBarProps, RadioGroupProps, RadioOption, RadioProps, SelectProps, SelectionGridProps, ShortcutConfig, Size, StackProps, State, TagProps, TextInputProps, TextareaProps, TypographyProps, TypographyVariant, UseDynamicVirtualListOptions, UseDynamicVirtualListResult, UseShortcutOptions };
|
package/dist/core.js
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
import { At as a,
|
|
1
|
+
import { At as a, Bt as s, Ct as e, Dt as o, Et as r, Ft as n, Gt as u, Ht as p, It as c, Kt as i, Mt as l, Nt as d, Ot as P, Pt as T, Rt as h, St as y, Tt as b, Ut as k, Vt as x, Wt as B, _t as S, bt as g, gt as m, ht as C, jt as D, kt as G, qt as I, vt as O, wt as v, xt as R, yt as w, zt as A } from "./src-CIojZORu.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
A as AnchoredOverlay,
|
|
4
|
+
x as Banner,
|
|
5
|
+
p as Button,
|
|
6
6
|
c as ButtonDropdown,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
7
|
+
s as ButtonGroup,
|
|
8
|
+
O as CellType,
|
|
9
|
+
n as Checkbox,
|
|
10
|
+
T as CheckboxGroup,
|
|
11
|
+
e as DatePicker,
|
|
12
|
+
y as DateRangePicker,
|
|
13
|
+
g as FileUpload,
|
|
14
|
+
I as Icon,
|
|
15
|
+
i as Input,
|
|
16
|
+
a as Kbd,
|
|
17
|
+
b as Label,
|
|
18
|
+
R as Menu,
|
|
19
|
+
G as NumberInput,
|
|
20
|
+
u as OTP,
|
|
21
|
+
D as OverlayPanel,
|
|
22
|
+
w as ProgressBar,
|
|
23
|
+
d as Radio,
|
|
24
|
+
l as RadioGroup,
|
|
25
|
+
r as Select,
|
|
26
|
+
P as SelectionGrid,
|
|
27
|
+
S as ShortcutProvider,
|
|
28
|
+
o as Stack,
|
|
29
|
+
k as Tag,
|
|
30
|
+
h as TextInput,
|
|
31
|
+
v as Textarea,
|
|
32
|
+
B as Typography,
|
|
33
|
+
C as useDynamicVirtualList,
|
|
34
|
+
m as useShortcut
|
|
30
35
|
};
|
package/dist/data.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./src-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./src-Cr-lHp0p.cjs");exports.Calendar=e.Calendar;exports.Card=e.Card;exports.CardList=e.CardList;exports.Cell=e.Cell;exports.Chart=e.Chart;exports.DataComponentConfigurator=e.DataComponentConfigurator;exports.Form=e.Form;exports.Gantt=e.Gantt;exports.KPI=e.KPI;exports.Switcher=e.Switcher;exports.TableGrid=e.TableGrid;exports.Tree=e.Tree;exports.TreeCard=e.TreeCard;exports.cardLayoutPresetOptions=e.cardLayoutPresetOptions;exports.cardLayoutWithIcon=e.cardLayoutWithIcon;exports.createDataStructureFromFile=e.createDataStructureFromFile;exports.financeKpiLayout=e.financeKpiLayout;exports.financeKpiLayoutWithIcon=e.financeKpiLayoutWithIcon;exports.kpiLayoutPresetOptions=e.kpiLayoutPresetOptions;exports.resolveCardLayoutPreset=e.resolveCardLayoutPreset;exports.resolveKpiLayoutPreset=e.resolveKpiLayoutPreset;
|