@lglab/compose-ui 0.26.0 → 0.28.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/dist/autocomplete.d.ts +96 -0
- package/dist/autocomplete.js +117 -0
- package/dist/badge.d.ts +42 -0
- package/dist/badge.js +203 -0
- package/dist/combobox.d.ts +182 -0
- package/dist/combobox.js +252 -0
- package/dist/dialog.js +22 -22
- package/dist/field.js +7 -7
- package/dist/fieldset.js +1 -1
- package/dist/{form-variants-D4ge0qav.js → form-variants-LJ8gIbk0.js} +2 -2
- package/dist/index.d.ts +303 -0
- package/dist/index.js +309 -265
- package/dist/input.js +1 -1
- package/dist/number-field.js +7 -7
- package/dist/select.js +38 -41
- package/dist/styles/default.css +12 -0
- package/dist/textarea.js +1 -1
- package/dist/toolbar.d.ts +56 -0
- package/dist/toolbar.js +69 -0
- package/package.json +21 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { Accordion } from '@base-ui/react/accordion';
|
|
2
2
|
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
3
|
+
import { Autocomplete } from '@base-ui/react/autocomplete';
|
|
4
|
+
import { AutocompleteRootProps } from '@base-ui/react/autocomplete';
|
|
3
5
|
import { Avatar } from '@base-ui/react/avatar';
|
|
4
6
|
import { Button as Button_2 } from '@base-ui/react/button';
|
|
5
7
|
import { Checkbox } from '@base-ui/react/checkbox';
|
|
6
8
|
import { CheckboxGroup } from '@base-ui/react/checkbox-group';
|
|
7
9
|
import { ClassProp } from 'class-variance-authority/types';
|
|
8
10
|
import { Collapsible } from '@base-ui/react/collapsible';
|
|
11
|
+
import { Combobox } from '@base-ui/react/combobox';
|
|
12
|
+
import { ComboboxChipsProps as ComboboxChipsProps_2 } from '@base-ui/react';
|
|
13
|
+
import { ComboboxRootProps as ComboboxRootProps_2 } from '@base-ui/react/combobox';
|
|
9
14
|
import { ContextMenu } from '@base-ui/react/context-menu';
|
|
10
15
|
import { Dialog } from '@base-ui/react/dialog';
|
|
11
16
|
import { Field } from '@base-ui/react/field';
|
|
@@ -34,6 +39,7 @@ import { Tabs } from '@base-ui/react/tabs';
|
|
|
34
39
|
import { Toast } from '@base-ui/react/toast';
|
|
35
40
|
import { Toggle as Toggle_2 } from '@base-ui/react/toggle';
|
|
36
41
|
import { ToggleGroup } from '@base-ui/react/toggle-group';
|
|
42
|
+
import { Toolbar } from '@base-ui/react/toolbar';
|
|
37
43
|
import { Tooltip } from '@base-ui/react/tooltip';
|
|
38
44
|
import { VariantProps } from 'class-variance-authority';
|
|
39
45
|
|
|
@@ -150,6 +156,59 @@ export declare const AlertDialogViewport: {
|
|
|
150
156
|
|
|
151
157
|
export declare type AlertDialogViewportProps = React_2.ComponentProps<typeof AlertDialog.Viewport>;
|
|
152
158
|
|
|
159
|
+
export declare const AutocompleteEmpty: {
|
|
160
|
+
({ className, ...props }: AutocompleteEmptyProps): JSX.Element;
|
|
161
|
+
displayName: string;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export declare type AutocompleteEmptyProps = React_2.ComponentProps<typeof Autocomplete.Empty>;
|
|
165
|
+
|
|
166
|
+
export declare const AutocompleteInput: {
|
|
167
|
+
({ className, ...props }: AutocompleteInputProps): JSX.Element;
|
|
168
|
+
displayName: string;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export declare type AutocompleteInputProps = React_2.ComponentProps<typeof Autocomplete.Input>;
|
|
172
|
+
|
|
173
|
+
export declare const AutocompleteItem: {
|
|
174
|
+
({ className, ...props }: AutocompleteItemProps): JSX.Element;
|
|
175
|
+
displayName: string;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export declare type AutocompleteItemProps = React_2.ComponentProps<typeof Autocomplete.Item>;
|
|
179
|
+
|
|
180
|
+
export declare const AutocompleteList: {
|
|
181
|
+
({ className, ...props }: AutocompleteListProps): JSX.Element;
|
|
182
|
+
displayName: string;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export declare type AutocompleteListProps = React_2.ComponentProps<typeof Autocomplete.List>;
|
|
186
|
+
|
|
187
|
+
export declare const AutocompletePopup: {
|
|
188
|
+
({ className, ...props }: AutocompletePopupProps): JSX.Element;
|
|
189
|
+
displayName: string;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export declare type AutocompletePopupProps = React_2.ComponentProps<typeof Autocomplete.Popup>;
|
|
193
|
+
|
|
194
|
+
export declare const AutocompletePortal: {
|
|
195
|
+
(props: AutocompletePortalProps): JSX.Element;
|
|
196
|
+
displayName: string;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export declare type AutocompletePortalProps = React_2.ComponentProps<typeof Autocomplete.Portal>;
|
|
200
|
+
|
|
201
|
+
export declare const AutocompletePositioner: {
|
|
202
|
+
({ className, ...props }: AutocompletePositionerProps): JSX.Element;
|
|
203
|
+
displayName: string;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export declare type AutocompletePositionerProps = React_2.ComponentProps<typeof Autocomplete.Positioner>;
|
|
207
|
+
|
|
208
|
+
export declare const AutocompleteRoot: typeof Autocomplete.Root;
|
|
209
|
+
|
|
210
|
+
export { AutocompleteRootProps }
|
|
211
|
+
|
|
153
212
|
export declare const AvatarFallback: {
|
|
154
213
|
({ className, ...props }: AvatarFallbackProps): JSX.Element;
|
|
155
214
|
displayName: string;
|
|
@@ -192,6 +251,44 @@ export declare type AvatarStackProps = {
|
|
|
192
251
|
children: React_2.ReactNode;
|
|
193
252
|
};
|
|
194
253
|
|
|
254
|
+
export declare const Badge: {
|
|
255
|
+
({ className, variant, appearance, size, shape, ...props }: BadgeProps): JSX.Element;
|
|
256
|
+
displayName: string;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
declare type BadgeAppearance = 'default' | 'outline' | 'light' | 'ghost';
|
|
260
|
+
|
|
261
|
+
export declare const BadgeButton: {
|
|
262
|
+
({ className, ...props }: BadgeButtonProps): JSX.Element;
|
|
263
|
+
displayName: string;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
export declare type BadgeButtonProps = React_2.ComponentProps<'button'>;
|
|
267
|
+
|
|
268
|
+
export declare const BadgeDot: {
|
|
269
|
+
({ className, ...props }: BadgeDotProps): JSX.Element;
|
|
270
|
+
displayName: string;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
export declare type BadgeDotProps = React_2.ComponentProps<'span'>;
|
|
274
|
+
|
|
275
|
+
export declare type BadgeProps = React_2.ComponentProps<'span'> & {
|
|
276
|
+
/** Visual style variant */
|
|
277
|
+
variant?: BadgeVariant;
|
|
278
|
+
/** Appearance style */
|
|
279
|
+
appearance?: BadgeAppearance;
|
|
280
|
+
/** Size of the badge */
|
|
281
|
+
size?: BadgeSize;
|
|
282
|
+
/** Shape of the badge */
|
|
283
|
+
shape?: BadgeShape;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
declare type BadgeShape = 'pill' | 'rounded';
|
|
287
|
+
|
|
288
|
+
declare type BadgeSize = 'sm' | 'md' | 'lg';
|
|
289
|
+
|
|
290
|
+
declare type BadgeVariant = 'default' | 'secondary' | 'destructive' | 'success' | 'warning' | 'info';
|
|
291
|
+
|
|
195
292
|
export declare const Button: {
|
|
196
293
|
({ className, variant, size, disabled, children, ...props }: ButtonProps): JSX.Element;
|
|
197
294
|
displayName: string;
|
|
@@ -339,6 +436,165 @@ export declare const CollapsibleTrigger: {
|
|
|
339
436
|
|
|
340
437
|
export declare type CollapsibleTriggerProps = React_2.ComponentProps<typeof Collapsible.Trigger>;
|
|
341
438
|
|
|
439
|
+
export declare const ComboboxArrow: {
|
|
440
|
+
({ className, ...props }: ComboboxArrowProps): JSX.Element;
|
|
441
|
+
displayName: string;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
export declare type ComboboxArrowProps = React_2.ComponentProps<typeof Combobox.Arrow>;
|
|
445
|
+
|
|
446
|
+
export declare const ComboboxBackdrop: {
|
|
447
|
+
({ className, ...props }: ComboboxBackdropProps): JSX.Element;
|
|
448
|
+
displayName: string;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
export declare type ComboboxBackdropProps = React_2.ComponentProps<typeof Combobox.Backdrop>;
|
|
452
|
+
|
|
453
|
+
export declare const ComboboxChip: {
|
|
454
|
+
({ className, ...props }: ComboboxChipProps): JSX.Element;
|
|
455
|
+
displayName: string;
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
export declare type ComboboxChipProps = React_2.ComponentProps<typeof Combobox.Chip>;
|
|
459
|
+
|
|
460
|
+
export declare const ComboboxChipRemove: {
|
|
461
|
+
({ className, ...props }: ComboboxChipRemoveProps): JSX.Element;
|
|
462
|
+
displayName: string;
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
export declare type ComboboxChipRemoveProps = React_2.ComponentProps<typeof Combobox.ChipRemove>;
|
|
466
|
+
|
|
467
|
+
export declare const ComboboxChips: React_2.ForwardRefExoticComponent<Omit<Omit<ComboboxChipsProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
468
|
+
|
|
469
|
+
export declare type ComboboxChipsProps = React_2.ComponentProps<typeof Combobox.Chips>;
|
|
470
|
+
|
|
471
|
+
export declare const ComboboxClear: {
|
|
472
|
+
({ className, ...props }: ComboboxClearProps): JSX.Element;
|
|
473
|
+
displayName: string;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
export declare type ComboboxClearProps = React_2.ComponentProps<typeof Combobox.Clear>;
|
|
477
|
+
|
|
478
|
+
export declare const ComboboxControl: {
|
|
479
|
+
({ className, ...props }: ComboboxControlProps): JSX.Element;
|
|
480
|
+
displayName: string;
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
export declare type ComboboxControlProps = React_2.ComponentProps<'div'>;
|
|
484
|
+
|
|
485
|
+
export declare const ComboboxEmpty: {
|
|
486
|
+
({ className, ...props }: ComboboxEmptyProps): JSX.Element;
|
|
487
|
+
displayName: string;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
export declare type ComboboxEmptyProps = React_2.ComponentProps<typeof Combobox.Empty>;
|
|
491
|
+
|
|
492
|
+
export declare const ComboboxGroup: {
|
|
493
|
+
({ className, ...props }: ComboboxGroupProps): JSX.Element;
|
|
494
|
+
displayName: string;
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
export declare const ComboboxGroupLabel: {
|
|
498
|
+
({ className, ...props }: ComboboxGroupLabelProps): JSX.Element;
|
|
499
|
+
displayName: string;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
export declare type ComboboxGroupLabelProps = React_2.ComponentProps<typeof Combobox.GroupLabel>;
|
|
503
|
+
|
|
504
|
+
export declare type ComboboxGroupProps = React_2.ComponentProps<typeof Combobox.Group>;
|
|
505
|
+
|
|
506
|
+
export declare const ComboboxIcon: {
|
|
507
|
+
({ className, ...props }: ComboboxIconProps): JSX.Element;
|
|
508
|
+
displayName: string;
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
export declare type ComboboxIconProps = React_2.ComponentProps<typeof Combobox.Icon>;
|
|
512
|
+
|
|
513
|
+
export declare const ComboboxInput: {
|
|
514
|
+
({ className, ...props }: ComboboxInputProps): JSX.Element;
|
|
515
|
+
displayName: string;
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
export declare type ComboboxInputProps = React_2.ComponentProps<typeof Combobox.Input>;
|
|
519
|
+
|
|
520
|
+
export declare const ComboboxItem: {
|
|
521
|
+
({ className, ...props }: ComboboxItemProps): JSX.Element;
|
|
522
|
+
displayName: string;
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
export declare const ComboboxItemIndicator: {
|
|
526
|
+
({ className, ...props }: ComboboxItemIndicatorProps): JSX.Element;
|
|
527
|
+
displayName: string;
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
export declare type ComboboxItemIndicatorProps = React_2.ComponentProps<typeof Combobox.ItemIndicator>;
|
|
531
|
+
|
|
532
|
+
export declare type ComboboxItemProps = React_2.ComponentProps<typeof Combobox.Item>;
|
|
533
|
+
|
|
534
|
+
export declare const ComboboxItemText: {
|
|
535
|
+
({ className, ...props }: ComboboxItemTextProps): JSX.Element;
|
|
536
|
+
displayName: string;
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
export declare type ComboboxItemTextProps = React_2.ComponentProps<'span'>;
|
|
540
|
+
|
|
541
|
+
export declare const ComboboxList: {
|
|
542
|
+
({ className, ...props }: ComboboxListProps): JSX.Element;
|
|
543
|
+
displayName: string;
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
export declare type ComboboxListProps = React_2.ComponentProps<typeof Combobox.List>;
|
|
547
|
+
|
|
548
|
+
export declare const ComboboxPopup: {
|
|
549
|
+
({ className, ...props }: ComboboxPopupProps): JSX.Element;
|
|
550
|
+
displayName: string;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
export declare type ComboboxPopupProps = React_2.ComponentProps<typeof Combobox.Popup>;
|
|
554
|
+
|
|
555
|
+
export declare const ComboboxPortal: {
|
|
556
|
+
(props: ComboboxPortalProps): JSX.Element;
|
|
557
|
+
displayName: string;
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
export declare type ComboboxPortalProps = React_2.ComponentProps<typeof Combobox.Portal>;
|
|
561
|
+
|
|
562
|
+
export declare const ComboboxPositioner: {
|
|
563
|
+
({ className, ...props }: ComboboxPositionerProps): JSX.Element;
|
|
564
|
+
displayName: string;
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
export declare type ComboboxPositionerProps = React_2.ComponentProps<typeof Combobox.Positioner>;
|
|
568
|
+
|
|
569
|
+
export declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false>(props: ComboboxRootProps_2<Value, Multiple>): JSX.Element;
|
|
570
|
+
|
|
571
|
+
export declare namespace ComboboxRoot {
|
|
572
|
+
var displayName: string;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export declare type ComboboxRootProps<Value, Multiple extends boolean | undefined = false> = ComboboxRootProps_2<Value, Multiple>;
|
|
576
|
+
|
|
577
|
+
export declare const ComboboxSeparator: {
|
|
578
|
+
({ className, ...props }: ComboboxSeparatorProps): JSX.Element;
|
|
579
|
+
displayName: string;
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
export declare type ComboboxSeparatorProps = React_2.ComponentProps<typeof Combobox.Separator>;
|
|
583
|
+
|
|
584
|
+
export declare const ComboboxTrigger: {
|
|
585
|
+
({ className, ...props }: ComboboxTriggerProps): JSX.Element;
|
|
586
|
+
displayName: string;
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
export declare type ComboboxTriggerProps = React_2.ComponentProps<typeof Combobox.Trigger>;
|
|
590
|
+
|
|
591
|
+
export declare const ComboboxValue: {
|
|
592
|
+
(props: ComboboxValueProps): JSX.Element;
|
|
593
|
+
displayName: string;
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
export declare type ComboboxValueProps = React_2.ComponentProps<typeof Combobox.Value>;
|
|
597
|
+
|
|
342
598
|
export declare const ContextMenuArrow: {
|
|
343
599
|
({ className, ...props }: ContextMenuArrowProps): JSX.Element;
|
|
344
600
|
displayName: string;
|
|
@@ -1752,6 +2008,53 @@ export declare type ToggleProps = React_2.ComponentProps<typeof Toggle_2> & {
|
|
|
1752
2008
|
size?: ControlSize;
|
|
1753
2009
|
};
|
|
1754
2010
|
|
|
2011
|
+
export declare const ToolbarButton: {
|
|
2012
|
+
({ className, variant, size, ...props }: ToolbarButtonProps): JSX.Element;
|
|
2013
|
+
displayName: string;
|
|
2014
|
+
};
|
|
2015
|
+
|
|
2016
|
+
export declare type ToolbarButtonProps = React_2.ComponentProps<typeof Toolbar.Button> & {
|
|
2017
|
+
/** Visual style of the toolbar button */
|
|
2018
|
+
variant?: ControlVariant;
|
|
2019
|
+
/** Size of the toolbar button */
|
|
2020
|
+
size?: ControlSize;
|
|
2021
|
+
};
|
|
2022
|
+
|
|
2023
|
+
export declare const ToolbarGroup: {
|
|
2024
|
+
({ className, ...props }: ToolbarGroupProps): JSX.Element;
|
|
2025
|
+
displayName: string;
|
|
2026
|
+
};
|
|
2027
|
+
|
|
2028
|
+
export declare type ToolbarGroupProps = React_2.ComponentProps<typeof Toolbar.Group>;
|
|
2029
|
+
|
|
2030
|
+
export declare const ToolbarInput: {
|
|
2031
|
+
({ className, ...props }: ToolbarInputProps): JSX.Element;
|
|
2032
|
+
displayName: string;
|
|
2033
|
+
};
|
|
2034
|
+
|
|
2035
|
+
export declare type ToolbarInputProps = React_2.ComponentProps<typeof Toolbar.Input>;
|
|
2036
|
+
|
|
2037
|
+
export declare const ToolbarLink: {
|
|
2038
|
+
({ className, ...props }: ToolbarLinkProps): JSX.Element;
|
|
2039
|
+
displayName: string;
|
|
2040
|
+
};
|
|
2041
|
+
|
|
2042
|
+
export declare type ToolbarLinkProps = React_2.ComponentProps<typeof Toolbar.Link>;
|
|
2043
|
+
|
|
2044
|
+
export declare const ToolbarRoot: {
|
|
2045
|
+
({ className, ...props }: ToolbarRootProps): JSX.Element;
|
|
2046
|
+
displayName: string;
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2049
|
+
export declare type ToolbarRootProps = React_2.ComponentProps<typeof Toolbar.Root>;
|
|
2050
|
+
|
|
2051
|
+
export declare const ToolbarSeparator: {
|
|
2052
|
+
({ className, ...props }: ToolbarSeparatorProps): JSX.Element;
|
|
2053
|
+
displayName: string;
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
export declare type ToolbarSeparatorProps = React_2.ComponentProps<typeof Toolbar.Separator>;
|
|
2057
|
+
|
|
1755
2058
|
export declare const TooltipArrow: {
|
|
1756
2059
|
({ className, variant, ...props }: TooltipArrowProps): JSX.Element;
|
|
1757
2060
|
displayName: string;
|