@webiny/admin-ui 6.4.5 → 6.6.0-alpha.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/Accordion/Accordion.d.ts +7 -6
- package/Accordion/components/AccordionItem.d.ts +7 -6
- package/Accordion/components/AccordionItemAction.d.ts +7 -6
- package/Accordion/components/AccordionItemIcon.d.ts +7 -6
- package/Accordion/components/AccordionItemSeparator.d.ts +7 -6
- package/Alert/Alert.d.ts +21 -19
- package/AutoComplete/AutoComplete.d.ts +7 -6
- package/AutoComplete/primitives/AutoCompletePrimitive.d.ts +7 -6
- package/Avatar/Avatar.d.ts +9 -8
- package/Avatar/components/AvatarFallback.d.ts +7 -6
- package/Avatar/components/AvatarImage.d.ts +7 -6
- package/Button/Button.d.ts +10 -9
- package/Button/CopyButton.d.ts +7 -6
- package/Button/IconButton.d.ts +10 -9
- package/Calendar/Calendar.d.ts +7 -6
- package/Card/Card.d.ts +8 -22
- package/Card/components/CancelAction.d.ts +8 -6
- package/Card/components/CardContent.d.ts +6 -6
- package/Card/components/CardTitle.d.ts +2 -2
- package/Card/components/ConfirmAction.d.ts +8 -6
- package/Card/components/Icon.d.ts +7 -6
- package/Checkbox/Checkbox.d.ts +7 -6
- package/Checkbox/primitives/CheckboxPrimitive.d.ts +17 -12
- package/CheckboxGroup/CheckboxGroup.d.ts +7 -6
- package/CheckboxGroup/primitives/CheckboxGroupPrimitive.d.ts +20 -12
- package/CodeEditor/CodeEditor.d.ts +7 -6
- package/CodeEditor/CodeEditorPrimitive.d.ts +7 -6
- package/ColorPicker/ColorPicker.d.ts +7 -6
- package/ColorPicker/primitives/ColorPickerPrimitive.d.ts +7 -6
- package/Command/Command.d.ts +10 -8
- package/DataList/DataListModal.d.ts +6 -3
- package/DataTable/DataTable.d.ts +7 -6
- package/DatePicker/DatePicker.d.ts +7 -6
- package/DatePicker/primitives/DatePickerPrimitive.d.ts +7 -6
- package/Dialog/Dialog.d.ts +8 -22
- package/Dialog/components/CancelAction.d.ts +8 -6
- package/Dialog/components/ConfirmAction.d.ts +8 -6
- package/Dialog/components/DialogContent.d.ts +1 -1
- package/Dialog/components/DialogFooter.d.ts +1 -1
- package/Dialog/components/DialogTitle.d.ts +1 -1
- package/Dialog/components/Icon.d.ts +7 -6
- package/Drawer/Drawer.d.ts +8 -22
- package/Drawer/Drawer.stories.js +1 -0
- package/Drawer/Drawer.stories.js.map +1 -1
- package/Drawer/components/CancelButton.d.ts +8 -6
- package/Drawer/components/ConfirmButton.d.ts +8 -6
- package/Drawer/components/DrawerContent.d.ts +1 -1
- package/Drawer/components/Icon.d.ts +7 -6
- package/DropdownMenu/components/DropdownMenuItem.d.ts +3 -2
- package/DropdownMenu/components/DropdownMenuItem.js +9 -2
- package/DropdownMenu/components/DropdownMenuItem.js.map +1 -1
- package/DropdownMenu/components/DropdownMenuLink.d.ts +9 -8
- package/DropdownMenu/components/DropdownMenuSeparator.d.ts +7 -6
- package/EditableTitle/EditableTitle.d.ts +7 -6
- package/EmptyState/EmptyState.d.ts +43 -0
- package/EmptyState/EmptyState.js +93 -0
- package/EmptyState/EmptyState.js.map +1 -0
- package/EmptyState/EmptyState.stories.d.ts +13 -0
- package/EmptyState/EmptyState.stories.js +136 -0
- package/EmptyState/EmptyState.stories.js.map +1 -0
- package/EmptyState/illustrations/ContentIllustration.d.ts +2 -0
- package/EmptyState/illustrations/ContentIllustration.js +100 -0
- package/EmptyState/illustrations/ContentIllustration.js.map +1 -0
- package/EmptyState/illustrations/LayoutIllustration.d.ts +2 -0
- package/EmptyState/illustrations/LayoutIllustration.js +93 -0
- package/EmptyState/illustrations/LayoutIllustration.js.map +1 -0
- package/EmptyState/illustrations/ListingIllustration.d.ts +2 -0
- package/EmptyState/illustrations/ListingIllustration.js +92 -0
- package/EmptyState/illustrations/ListingIllustration.js.map +1 -0
- package/EmptyState/illustrations/SelectIllustration.d.ts +2 -0
- package/EmptyState/illustrations/SelectIllustration.js +100 -0
- package/EmptyState/illustrations/SelectIllustration.js.map +1 -0
- package/EmptyState/illustrations/TableIllustration.d.ts +2 -0
- package/EmptyState/illustrations/TableIllustration.js +233 -0
- package/EmptyState/illustrations/TableIllustration.js.map +1 -0
- package/EmptyState/illustrations/UploadIllustration.d.ts +2 -0
- package/EmptyState/illustrations/UploadIllustration.js +77 -0
- package/EmptyState/illustrations/UploadIllustration.js.map +1 -0
- package/EmptyState/illustrations/index.d.ts +6 -0
- package/EmptyState/illustrations/index.js +6 -0
- package/EmptyState/index.d.ts +1 -0
- package/EmptyState/index.js +1 -0
- package/FilePicker/FilePicker.d.ts +7 -6
- package/FilePicker/primitives/FilePickerPrimitive.d.ts +8 -7
- package/FilePicker/primitives/components/Trigger.d.ts +1 -1
- package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.d.ts +7 -6
- package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.d.ts +7 -6
- package/FilePicker/primitives/components/previews/TextOnlyPreview/TextOnlyPreview.d.ts +7 -6
- package/FilePicker/primitives/components/previews/variants.d.ts +1 -1
- package/FillViewport/FillViewport.d.ts +21 -18
- package/FormComponent/Description.d.ts +7 -6
- package/FormComponent/ErrorMessage.d.ts +7 -6
- package/FormComponent/Label.d.ts +7 -6
- package/FormComponent/Note.d.ts +7 -6
- package/Grid/Grid.d.ts +24 -22
- package/HeaderBar/HeaderBar.d.ts +7 -6
- package/Heading/Heading.d.ts +8 -7
- package/Icon/Icon.d.ts +9 -8
- package/IconPicker/IconPicker.d.ts +7 -6
- package/IconPicker/primitives/IconPickerPrimitive.d.ts +1 -1
- package/IconPicker/primitives/components/IconPickerTrigger.d.ts +1 -1
- package/Input/Input.d.ts +7 -6
- package/Input/InputPrimitive.d.ts +9 -8
- package/Label/Label.d.ts +8 -7
- package/Label/components/LabelValue.d.ts +1 -1
- package/Link/Link.d.ts +2 -2
- package/List/List.d.ts +8 -7
- package/List/components/ListItem.d.ts +7 -6
- package/List/components/ListItemAction.d.ts +7 -6
- package/List/components/ListItemHandle.d.ts +7 -6
- package/List/components/ListItemIcon.d.ts +7 -6
- package/List/components/ListItemSeparator.d.ts +7 -6
- package/Loader/Loader.d.ts +9 -8
- package/Loader/OverlayLoader.d.ts +7 -6
- package/MultiAutoComplete/MultiAutoComplete.d.ts +7 -6
- package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.d.ts +7 -6
- package/MultiAutoComplete/primitives/presenters/MultiAutoCompletePresenterWithFreeInput.d.ts +3 -3
- package/MultiAutoComplete/primitives/useMultiAutoComplete.d.ts +3 -3
- package/MultiFilePicker/MultiFilePicker.d.ts +7 -6
- package/MultiFilePicker/primitives/MultiFilePickerPrimitive.d.ts +7 -6
- package/MultiSelect/MultiSelect.d.ts +7 -6
- package/MultiSelect/primitives/MultiSelectPrimitive.d.ts +10 -6
- package/Popover/Popover.d.ts +7 -6
- package/Popover/primitives/PopoverPrimitive.d.ts +7 -7
- package/ProgressBar/ProgressBar.d.ts +7 -6
- package/RadioGroup/RadioGroup.d.ts +7 -6
- package/RadioGroup/primitives/Radio.d.ts +7 -6
- package/RadioGroup/primitives/RadioGroupPrimitive.d.ts +5 -1
- package/RangeSlider/RangeSlider.d.ts +7 -6
- package/SegmentedControl/SegmentedControl.d.ts +8 -7
- package/SegmentedControl/SegmentedControlTabs.d.ts +5 -2
- package/SegmentedControl/primitives/SegmentedControlPrimitive.d.ts +1 -1
- package/Select/Select.d.ts +7 -6
- package/Select/primitives/components/SelectTrigger.d.ts +2 -2
- package/Separator/Separator.d.ts +9 -8
- package/Sidebar/Sidebar.d.ts +7 -6
- package/Sidebar/components/SidebarIcon.d.ts +7 -6
- package/Sidebar/components/SidebarProvider.d.ts +4 -4
- package/Sidebar/components/items/SidebarMenuGroup.d.ts +9 -8
- package/Sidebar/components/items/SidebarMenuItem.d.ts +11 -10
- package/Sidebar/components/items/SidebarMenuItemIcon.d.ts +7 -6
- package/Sidebar/components/items/SidebarMenuLink.d.ts +11 -10
- package/Sidebar/components/items/SidebarMenuProvider.d.ts +4 -4
- package/Sidebar/components/items/SidebarMenuRootItem.d.ts +9 -7
- package/Skeleton/Skeleton.d.ts +9 -7
- package/Skeleton/Skeleton.js +10 -4
- package/Skeleton/Skeleton.js.map +1 -1
- package/Skeleton/Skeleton.stories.d.ts +2 -0
- package/Skeleton/Skeleton.stories.js +28 -2
- package/Skeleton/Skeleton.stories.js.map +1 -1
- package/Slider/Slider.d.ts +7 -6
- package/SteppedProgress/SteppedProgress.d.ts +7 -6
- package/SteppedProgress/SteppedProgressItem.d.ts +7 -6
- package/Switch/Switch.d.ts +7 -6
- package/Switch/primitives/SwitchPrimitive.d.ts +10 -6
- package/Table/Table.d.ts +12 -10
- package/Table/components/Direction.d.ts +1 -1
- package/Tabs/Tabs.d.ts +8 -6
- package/Tabs/Tabs.js +5 -2
- package/Tabs/Tabs.js.map +1 -1
- package/Tabs/components/Content.d.ts +1 -1
- package/Tabs/components/List.d.ts +2 -2
- package/Tabs/components/Tab.d.ts +7 -6
- package/Tabs/components/Trigger.d.ts +3 -2
- package/Tabs/components/Trigger.js +8 -3
- package/Tabs/components/Trigger.js.map +1 -1
- package/Tag/Tag.d.ts +8 -7
- package/Tags/Tags.d.ts +7 -6
- package/Tags/primitives/TagsPrimitive.d.ts +7 -6
- package/Text/Text.d.ts +8 -7
- package/Textarea/Textarea.d.ts +7 -6
- package/Textarea/TextareaPrimitive.d.ts +9 -8
- package/Toast/Toast.d.ts +7 -6
- package/Toast/components/ToastActions.d.ts +7 -6
- package/Toast/components/ToastDescription.d.ts +7 -6
- package/Toast/components/ToastTitle.d.ts +7 -6
- package/Toggle/Toggle.d.ts +7 -6
- package/Toggle/primitives/TogglePrimitive.d.ts +13 -9
- package/ToggleGroup/ToggleGroup.d.ts +7 -6
- package/ToggleGroup/primitives/ToggleGroupPrimitive.d.ts +13 -9
- package/Tooltip/Tooltip.d.ts +7 -6
- package/Tree/Tree.d.ts +7 -6
- package/Tree/components/Item.d.ts +7 -6
- package/Tree/components/ItemCollapseTrigger.d.ts +7 -6
- package/Tree/components/ItemContent.d.ts +8 -6
- package/Tree/components/ItemDragHandle.d.ts +7 -6
- package/Tree/components/ItemIcon.d.ts +7 -6
- package/Tree/components/ItemPlaceholder.d.ts +7 -6
- package/Tree/components/ItemSubIndentation.d.ts +7 -6
- package/Widget/Widget.d.ts +8 -22
- package/Widget/components/Icon.d.ts +7 -6
- package/Widget/components/WidgetAction.d.ts +8 -6
- package/Widget/components/WidgetContent.d.ts +5 -5
- package/exports/admin/ui.d.ts +1 -0
- package/exports/admin/ui.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +24 -24
- package/theme.css +13 -1
- package/utils.js +52 -34
- package/utils.js.map +1 -1
|
@@ -3,21 +3,22 @@ import { type ProgressRootProps } from "./components/index.js";
|
|
|
3
3
|
interface ProgressBarProps extends ProgressRootProps {
|
|
4
4
|
valuePosition?: "start" | "end" | "both";
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
|
|
6
|
+
declare const DecoratableProgressBar: ({ valuePosition, className, ...props }: ProgressBarProps) => React.JSX.Element;
|
|
7
|
+
declare const ProgressBar: typeof DecoratableProgressBar & {
|
|
8
|
+
original: typeof DecoratableProgressBar;
|
|
8
9
|
originalName: string;
|
|
9
10
|
displayName: string;
|
|
10
11
|
} & {
|
|
11
|
-
original:
|
|
12
|
-
original:
|
|
12
|
+
original: typeof DecoratableProgressBar & {
|
|
13
|
+
original: typeof DecoratableProgressBar;
|
|
13
14
|
originalName: string;
|
|
14
15
|
displayName: string;
|
|
15
16
|
};
|
|
16
17
|
originalName: string;
|
|
17
18
|
displayName: string;
|
|
18
19
|
} & {
|
|
19
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
20
|
-
original:
|
|
20
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableProgressBar & {
|
|
21
|
+
original: typeof DecoratableProgressBar;
|
|
21
22
|
originalName: string;
|
|
22
23
|
displayName: string;
|
|
23
24
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -2,21 +2,22 @@ import React from "react";
|
|
|
2
2
|
import type { RadioGroupPrimitiveProps } from "./primitives/index.js";
|
|
3
3
|
import type { FormComponentProps } from "../FormComponent/index.js";
|
|
4
4
|
type RadioGroupProps = RadioGroupPrimitiveProps & FormComponentProps;
|
|
5
|
-
declare const
|
|
6
|
-
|
|
5
|
+
declare const DecoratableRadioGroup: ({ label, description, note, hint, required, disabled, validation, ...props }: RadioGroupProps) => React.JSX.Element;
|
|
6
|
+
declare const RadioGroup: typeof DecoratableRadioGroup & {
|
|
7
|
+
original: typeof DecoratableRadioGroup;
|
|
7
8
|
originalName: string;
|
|
8
9
|
displayName: string;
|
|
9
10
|
} & {
|
|
10
|
-
original:
|
|
11
|
-
original:
|
|
11
|
+
original: typeof DecoratableRadioGroup & {
|
|
12
|
+
original: typeof DecoratableRadioGroup;
|
|
12
13
|
originalName: string;
|
|
13
14
|
displayName: string;
|
|
14
15
|
};
|
|
15
16
|
originalName: string;
|
|
16
17
|
displayName: string;
|
|
17
18
|
} & {
|
|
18
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
19
|
-
original:
|
|
19
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableRadioGroup & {
|
|
20
|
+
original: typeof DecoratableRadioGroup;
|
|
20
21
|
originalName: string;
|
|
21
22
|
displayName: string;
|
|
22
23
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -7,21 +7,22 @@ interface RadioProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPri
|
|
|
7
7
|
label: string | React.ReactNode;
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
|
|
10
|
+
declare const DecoratableRadio: ({ className, label, id, ...props }: RadioProps) => React.JSX.Element;
|
|
11
|
+
declare const Radio: typeof DecoratableRadio & {
|
|
12
|
+
original: typeof DecoratableRadio;
|
|
12
13
|
originalName: string;
|
|
13
14
|
displayName: string;
|
|
14
15
|
} & {
|
|
15
|
-
original:
|
|
16
|
-
original:
|
|
16
|
+
original: typeof DecoratableRadio & {
|
|
17
|
+
original: typeof DecoratableRadio;
|
|
17
18
|
originalName: string;
|
|
18
19
|
displayName: string;
|
|
19
20
|
};
|
|
20
21
|
originalName: string;
|
|
21
22
|
displayName: string;
|
|
22
23
|
} & {
|
|
23
|
-
createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<
|
|
24
|
-
original:
|
|
24
|
+
createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof DecoratableRadio & {
|
|
25
|
+
original: typeof DecoratableRadio;
|
|
25
26
|
originalName: string;
|
|
26
27
|
displayName: string;
|
|
27
28
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { RadioGroup as RadioGroupPrimitives } from "radix-ui";
|
|
3
3
|
import type { RadioItemParams, RadioItemFormatted } from "../domains/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* Radio Group Root
|
|
6
|
+
*/
|
|
7
|
+
declare const RadioGroupRoot: ({ className, ...props }: RadioGroupPrimitives.RadioGroupProps) => React.JSX.Element;
|
|
4
8
|
/**
|
|
5
9
|
* Radio Group Renderer
|
|
6
10
|
*/
|
|
@@ -33,5 +37,5 @@ declare const RadioGroupPrimitive: (props: RadioGroupPrimitiveProps) => React.JS
|
|
|
33
37
|
* It is marked as deprecated because nesting `Radio` components inside `RadioGroup` is no longer the recommended approach.
|
|
34
38
|
* Instead, we now pass an array of `RadioItemDto` directly to `RadioGroup` for better maintainability.
|
|
35
39
|
*/
|
|
36
|
-
declare const DeprecatedRadioGroup:
|
|
40
|
+
declare const DeprecatedRadioGroup: typeof RadioGroupRoot;
|
|
37
41
|
export { RadioGroupPrimitive, RadioGroupRenderer, DeprecatedRadioGroup, type RadioGroupPrimitiveProps, type RadioGroupVm };
|
|
@@ -5,21 +5,22 @@ type RangeSliderProps = RangeSliderPrimitiveProps & FormComponentProps & {
|
|
|
5
5
|
label: React.ReactNode;
|
|
6
6
|
valueConverter?: (value: number) => string;
|
|
7
7
|
};
|
|
8
|
-
declare const
|
|
9
|
-
|
|
8
|
+
declare const DecoratableRangeSlider: ({ description, note, hint, validation, ...props }: RangeSliderProps) => React.JSX.Element;
|
|
9
|
+
declare const RangeSlider: typeof DecoratableRangeSlider & {
|
|
10
|
+
original: typeof DecoratableRangeSlider;
|
|
10
11
|
originalName: string;
|
|
11
12
|
displayName: string;
|
|
12
13
|
} & {
|
|
13
|
-
original:
|
|
14
|
-
original:
|
|
14
|
+
original: typeof DecoratableRangeSlider & {
|
|
15
|
+
original: typeof DecoratableRangeSlider;
|
|
15
16
|
originalName: string;
|
|
16
17
|
displayName: string;
|
|
17
18
|
};
|
|
18
19
|
originalName: string;
|
|
19
20
|
displayName: string;
|
|
20
21
|
} & {
|
|
21
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
22
|
-
original:
|
|
22
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableRangeSlider & {
|
|
23
|
+
original: typeof DecoratableRangeSlider;
|
|
23
24
|
originalName: string;
|
|
24
25
|
displayName: string;
|
|
25
26
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -2,27 +2,28 @@ import React from "react";
|
|
|
2
2
|
import type { SegmentedControlPrimitiveProps } from "./primitives/index.js";
|
|
3
3
|
import type { FormComponentProps } from "../FormComponent/index.js";
|
|
4
4
|
type SegmentedControlProps = SegmentedControlPrimitiveProps & FormComponentProps;
|
|
5
|
-
declare const
|
|
6
|
-
|
|
5
|
+
declare const DecoratableSegmentedControl: ({ label, description, note, hint, required, disabled, validation, ...props }: SegmentedControlProps) => React.JSX.Element;
|
|
6
|
+
declare const SegmentedControl: typeof DecoratableSegmentedControl & {
|
|
7
|
+
original: typeof DecoratableSegmentedControl;
|
|
7
8
|
originalName: string;
|
|
8
9
|
displayName: string;
|
|
9
10
|
} & {
|
|
10
|
-
original:
|
|
11
|
-
original:
|
|
11
|
+
original: typeof DecoratableSegmentedControl & {
|
|
12
|
+
original: typeof DecoratableSegmentedControl;
|
|
12
13
|
originalName: string;
|
|
13
14
|
displayName: string;
|
|
14
15
|
};
|
|
15
16
|
originalName: string;
|
|
16
17
|
displayName: string;
|
|
17
18
|
} & {
|
|
18
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
19
|
-
original:
|
|
19
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableSegmentedControl & {
|
|
20
|
+
original: typeof DecoratableSegmentedControl;
|
|
20
21
|
originalName: string;
|
|
21
22
|
displayName: string;
|
|
22
23
|
}>) => (props: unknown) => React.JSX.Element;
|
|
23
24
|
} & {
|
|
24
25
|
Tabs: (({ children, variant, defaultValue, className }: import("./SegmentedControlTabs.js").SegmentedControlTabsProps) => React.JSX.Element) & {
|
|
25
|
-
Tab:
|
|
26
|
+
Tab: typeof import("./SegmentedControlTab.js").SegmentedControlTab;
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
29
|
export { SegmentedControl, type SegmentedControlProps };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { SegmentedControlPrimitiveProps } from "./primitives/index.js";
|
|
3
|
+
import { SegmentedControlTab } from "./SegmentedControlTab.js";
|
|
3
4
|
export interface SegmentedControlTabsProps {
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
variant?: SegmentedControlPrimitiveProps["variant"];
|
|
6
7
|
defaultValue?: string;
|
|
7
8
|
className?: string;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
declare const BaseSegmentedControlTabs: ({ children, variant, defaultValue, className }: SegmentedControlTabsProps) => React.JSX.Element;
|
|
11
|
+
export declare const SegmentedControlTabs: typeof BaseSegmentedControlTabs & {
|
|
12
|
+
Tab: typeof SegmentedControlTab;
|
|
11
13
|
};
|
|
14
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import type { SegmentedControlItemParams, SegmentedControlItemFormatted } from "
|
|
|
5
5
|
* Segmented Control Item Button
|
|
6
6
|
*/
|
|
7
7
|
declare const segmentedControlItemVariants: (props?: ({
|
|
8
|
-
variant?: "
|
|
8
|
+
variant?: "dimmed" | "ghost" | "light" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
10
|
/**
|
|
11
11
|
* Segmented Control Primitive
|
package/Select/Select.d.ts
CHANGED
|
@@ -2,21 +2,22 @@ import React from "react";
|
|
|
2
2
|
import type { SelectPrimitiveProps } from "./primitives/index.js";
|
|
3
3
|
import type { FormComponentProps } from "../FormComponent/index.js";
|
|
4
4
|
type SelectProps = SelectPrimitiveProps & FormComponentProps;
|
|
5
|
-
declare const
|
|
6
|
-
|
|
5
|
+
declare const DecoratableSelect: ({ label, description, note, hint, required, disabled, validation, ...props }: SelectProps) => React.JSX.Element;
|
|
6
|
+
declare const Select: typeof DecoratableSelect & {
|
|
7
|
+
original: typeof DecoratableSelect;
|
|
7
8
|
originalName: string;
|
|
8
9
|
displayName: string;
|
|
9
10
|
} & {
|
|
10
|
-
original:
|
|
11
|
-
original:
|
|
11
|
+
original: typeof DecoratableSelect & {
|
|
12
|
+
original: typeof DecoratableSelect;
|
|
12
13
|
originalName: string;
|
|
13
14
|
displayName: string;
|
|
14
15
|
};
|
|
15
16
|
originalName: string;
|
|
16
17
|
displayName: string;
|
|
17
18
|
} & {
|
|
18
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
19
|
-
original:
|
|
19
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableSelect & {
|
|
20
|
+
original: typeof DecoratableSelect;
|
|
20
21
|
originalName: string;
|
|
21
22
|
displayName: string;
|
|
22
23
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -2,8 +2,8 @@ import * as React from "react";
|
|
|
2
2
|
import { Select as SelectPrimitives } from "radix-ui";
|
|
3
3
|
import { type VariantProps } from "../../../utils.js";
|
|
4
4
|
declare const selectTriggerVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
6
|
-
size?: "
|
|
5
|
+
variant?: "ghost" | "ghost-negative" | "primary" | "secondary" | null | undefined;
|
|
6
|
+
size?: "lg" | "md" | "xl" | null | undefined;
|
|
7
7
|
invalid?: boolean | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
interface SelectTriggerProps extends SelectPrimitives.SelectTriggerProps, VariantProps<typeof selectTriggerVariants> {
|
package/Separator/Separator.d.ts
CHANGED
|
@@ -2,30 +2,31 @@ import * as React from "react";
|
|
|
2
2
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
3
3
|
import { type VariantProps } from "../utils.js";
|
|
4
4
|
declare const separatorVariants: (props?: ({
|
|
5
|
-
margin?: "
|
|
5
|
+
margin?: "lg" | "md" | "none" | "sm" | "xl" | "xs" | null | undefined;
|
|
6
6
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
7
|
-
variant?: "accent" | "base" | "
|
|
7
|
+
variant?: "accent" | "base" | "dimmed" | "muted" | "strong" | "transparent" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
type SeparatorPosition = "start" | "middle" | "end";
|
|
10
10
|
type SeparatorProps = Omit<SeparatorPrimitive.SeparatorProps, "children"> & VariantProps<typeof separatorVariants> & {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
labelPosition?: SeparatorPosition;
|
|
13
13
|
};
|
|
14
|
-
declare const
|
|
15
|
-
|
|
14
|
+
declare const SeparatorBase: ({ className, orientation, margin, variant, decorative, children, labelPosition, ...props }: SeparatorProps) => React.JSX.Element;
|
|
15
|
+
declare const Separator: typeof SeparatorBase & {
|
|
16
|
+
original: typeof SeparatorBase;
|
|
16
17
|
originalName: string;
|
|
17
18
|
displayName: string;
|
|
18
19
|
} & {
|
|
19
|
-
original:
|
|
20
|
-
original:
|
|
20
|
+
original: typeof SeparatorBase & {
|
|
21
|
+
original: typeof SeparatorBase;
|
|
21
22
|
originalName: string;
|
|
22
23
|
displayName: string;
|
|
23
24
|
};
|
|
24
25
|
originalName: string;
|
|
25
26
|
displayName: string;
|
|
26
27
|
} & {
|
|
27
|
-
createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<
|
|
28
|
-
original:
|
|
28
|
+
createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof SeparatorBase & {
|
|
29
|
+
original: typeof SeparatorBase;
|
|
29
30
|
originalName: string;
|
|
30
31
|
displayName: string;
|
|
31
32
|
}>) => (props: unknown) => React.JSX.Element;
|
package/Sidebar/Sidebar.d.ts
CHANGED
|
@@ -7,21 +7,22 @@ interface SidebarProps extends Omit<React.ComponentPropsWithoutRef<typeof Sideba
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
footer?: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
|
|
10
|
+
declare const SidebarBase: (props: SidebarProps) => React.JSX.Element;
|
|
11
|
+
declare const Sidebar: typeof SidebarBase & {
|
|
12
|
+
original: typeof SidebarBase;
|
|
12
13
|
originalName: string;
|
|
13
14
|
displayName: string;
|
|
14
15
|
} & {
|
|
15
|
-
original:
|
|
16
|
-
original:
|
|
16
|
+
original: typeof SidebarBase & {
|
|
17
|
+
original: typeof SidebarBase;
|
|
17
18
|
originalName: string;
|
|
18
19
|
displayName: string;
|
|
19
20
|
};
|
|
20
21
|
originalName: string;
|
|
21
22
|
displayName: string;
|
|
22
23
|
} & {
|
|
23
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
24
|
-
original:
|
|
24
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof SidebarBase & {
|
|
25
|
+
original: typeof SidebarBase;
|
|
25
26
|
originalName: string;
|
|
26
27
|
displayName: string;
|
|
27
28
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -3,21 +3,22 @@ import { type IconProps } from "../../Icon/index.js";
|
|
|
3
3
|
interface SidebarIconProps extends Omit<IconProps, "icon"> {
|
|
4
4
|
element?: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
|
|
6
|
+
declare const SidebarIconBase: ({ element, ...props }: SidebarIconProps) => React.JSX.Element;
|
|
7
|
+
declare const SidebarIcon: typeof SidebarIconBase & {
|
|
8
|
+
original: typeof SidebarIconBase;
|
|
8
9
|
originalName: string;
|
|
9
10
|
displayName: string;
|
|
10
11
|
} & {
|
|
11
|
-
original:
|
|
12
|
-
original:
|
|
12
|
+
original: typeof SidebarIconBase & {
|
|
13
|
+
original: typeof SidebarIconBase;
|
|
13
14
|
originalName: string;
|
|
14
15
|
displayName: string;
|
|
15
16
|
};
|
|
16
17
|
originalName: string;
|
|
17
18
|
displayName: string;
|
|
18
19
|
} & {
|
|
19
|
-
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<
|
|
20
|
-
original:
|
|
20
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<typeof SidebarIconBase & {
|
|
21
|
+
original: typeof SidebarIconBase;
|
|
21
22
|
originalName: string;
|
|
22
23
|
displayName: string;
|
|
23
24
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -36,8 +36,8 @@ type SidebarProviderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
36
36
|
state?: SidebarCachedState;
|
|
37
37
|
onChangeState?: (state: SidebarCachedState) => void;
|
|
38
38
|
};
|
|
39
|
-
declare
|
|
40
|
-
|
|
41
|
-
displayName: string;
|
|
42
|
-
}
|
|
39
|
+
declare function SidebarProvider({ className, children, state: cachedState, onChangeState, ...props }: SidebarProviderProps): React.JSX.Element;
|
|
40
|
+
declare namespace SidebarProvider {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
43
43
|
export { SidebarProvider, useSidebar, type PinnedItemData };
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type SidebarMenuItemGroupProps } from "./SidebarMenuItem.js";
|
|
3
3
|
import { type SidebarMenuItemIconProps } from "../../../Sidebar/components/items/SidebarMenuItemIcon.js";
|
|
4
|
-
import { type SidebarMenuItemActionProps } from "../../../Sidebar/components/items/SidebarMenuItemAction.js";
|
|
5
|
-
declare const
|
|
6
|
-
|
|
4
|
+
import { SidebarMenuItemAction, type SidebarMenuItemActionProps } from "../../../Sidebar/components/items/SidebarMenuItemAction.js";
|
|
5
|
+
declare const SidebarMenuGroupBase: (props: SidebarMenuItemGroupProps) => React.JSX.Element;
|
|
6
|
+
declare const SidebarMenuGroup: typeof SidebarMenuGroupBase & {
|
|
7
|
+
original: typeof SidebarMenuGroupBase;
|
|
7
8
|
originalName: string;
|
|
8
9
|
displayName: string;
|
|
9
10
|
} & {
|
|
10
|
-
original:
|
|
11
|
-
original:
|
|
11
|
+
original: typeof SidebarMenuGroupBase & {
|
|
12
|
+
original: typeof SidebarMenuGroupBase;
|
|
12
13
|
originalName: string;
|
|
13
14
|
displayName: string;
|
|
14
15
|
};
|
|
15
16
|
originalName: string;
|
|
16
17
|
displayName: string;
|
|
17
18
|
} & {
|
|
18
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
19
|
-
original:
|
|
19
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof SidebarMenuGroupBase & {
|
|
20
|
+
original: typeof SidebarMenuGroupBase;
|
|
20
21
|
originalName: string;
|
|
21
22
|
displayName: string;
|
|
22
23
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -40,6 +41,6 @@ declare const SidebarMenuGroup: ((props: SidebarMenuItemGroupProps) => React.JSX
|
|
|
40
41
|
displayName: string;
|
|
41
42
|
}>) => (props: unknown) => React.JSX.Element;
|
|
42
43
|
};
|
|
43
|
-
Action:
|
|
44
|
+
Action: typeof SidebarMenuItemAction;
|
|
44
45
|
};
|
|
45
46
|
export { SidebarMenuGroup, type SidebarMenuItemGroupProps, type SidebarMenuItemIconProps, type SidebarMenuItemActionProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type SidebarMenuItemIconProps } from "./SidebarMenuItemIcon.js";
|
|
3
|
-
import { type SidebarMenuItemActionProps } from "./SidebarMenuItemAction.js";
|
|
4
|
-
import { type SidebarMenuItemBadgeProps } from "./SidebarMenuItemBadge.js";
|
|
3
|
+
import { SidebarMenuItemAction, type SidebarMenuItemActionProps } from "./SidebarMenuItemAction.js";
|
|
4
|
+
import { SidebarMenuItemBadge, type SidebarMenuItemBadgeProps } from "./SidebarMenuItemBadge.js";
|
|
5
5
|
import { LinkProps } from "../../../index.js";
|
|
6
6
|
export interface SidebarMenuItemBaseProps {
|
|
7
7
|
text: React.ReactNode;
|
|
@@ -26,21 +26,22 @@ type SidebarMenuItemButtonProps = SidebarMenuItemBaseProps & {
|
|
|
26
26
|
type SidebarMenuItemGroupProps = SidebarMenuItemButtonProps;
|
|
27
27
|
type SidebarMenuItemLinkProps = SidebarMenuItemBaseProps & LinkProps;
|
|
28
28
|
type SidebarMenuItemProps = SidebarMenuItemButtonProps | SidebarMenuItemLinkProps;
|
|
29
|
-
declare const
|
|
30
|
-
|
|
29
|
+
declare const SidebarMenuItemBase: (props: SidebarMenuItemProps) => React.JSX.Element;
|
|
30
|
+
declare const SidebarMenuItem: typeof SidebarMenuItemBase & {
|
|
31
|
+
original: typeof SidebarMenuItemBase;
|
|
31
32
|
originalName: string;
|
|
32
33
|
displayName: string;
|
|
33
34
|
} & {
|
|
34
|
-
original:
|
|
35
|
-
original:
|
|
35
|
+
original: typeof SidebarMenuItemBase & {
|
|
36
|
+
original: typeof SidebarMenuItemBase;
|
|
36
37
|
originalName: string;
|
|
37
38
|
displayName: string;
|
|
38
39
|
};
|
|
39
40
|
originalName: string;
|
|
40
41
|
displayName: string;
|
|
41
42
|
} & {
|
|
42
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
43
|
-
original:
|
|
43
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof SidebarMenuItemBase & {
|
|
44
|
+
original: typeof SidebarMenuItemBase;
|
|
44
45
|
originalName: string;
|
|
45
46
|
displayName: string;
|
|
46
47
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -64,7 +65,7 @@ declare const SidebarMenuItem: ((props: SidebarMenuItemProps) => React.JSX.Eleme
|
|
|
64
65
|
displayName: string;
|
|
65
66
|
}>) => (props: unknown) => React.JSX.Element;
|
|
66
67
|
};
|
|
67
|
-
Action:
|
|
68
|
-
Badge:
|
|
68
|
+
Action: typeof SidebarMenuItemAction;
|
|
69
|
+
Badge: typeof SidebarMenuItemBadge;
|
|
69
70
|
};
|
|
70
71
|
export { SidebarMenuItem, type SidebarMenuItemProps, type SidebarMenuItemButtonProps, type SidebarMenuItemLinkProps, type SidebarMenuItemGroupProps, type SidebarMenuItemIconProps, type SidebarMenuItemActionProps, type SidebarMenuItemBadgeProps };
|
|
@@ -3,21 +3,22 @@ import { type IconProps } from "../../../Icon/index.js";
|
|
|
3
3
|
interface SidebarMenuItemIconProps extends Omit<IconProps, "icon"> {
|
|
4
4
|
element?: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
|
|
6
|
+
declare const SidebarMenuItemIconBase: ({ element, ...props }: SidebarMenuItemIconProps) => React.JSX.Element | null;
|
|
7
|
+
declare const SidebarMenuItemIcon: typeof SidebarMenuItemIconBase & {
|
|
8
|
+
original: typeof SidebarMenuItemIconBase;
|
|
8
9
|
originalName: string;
|
|
9
10
|
displayName: string;
|
|
10
11
|
} & {
|
|
11
|
-
original:
|
|
12
|
-
original:
|
|
12
|
+
original: typeof SidebarMenuItemIconBase & {
|
|
13
|
+
original: typeof SidebarMenuItemIconBase;
|
|
13
14
|
originalName: string;
|
|
14
15
|
displayName: string;
|
|
15
16
|
};
|
|
16
17
|
originalName: string;
|
|
17
18
|
displayName: string;
|
|
18
19
|
} & {
|
|
19
|
-
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<
|
|
20
|
-
original:
|
|
20
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<typeof SidebarMenuItemIconBase & {
|
|
21
|
+
original: typeof SidebarMenuItemIconBase;
|
|
21
22
|
originalName: string;
|
|
22
23
|
displayName: string;
|
|
23
24
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type SidebarMenuItemLinkProps } from "./SidebarMenuItem.js";
|
|
3
3
|
import { type SidebarMenuItemIconProps } from "../../../Sidebar/components/items/SidebarMenuItemIcon.js";
|
|
4
|
-
import { type SidebarMenuItemActionProps } from "../../../Sidebar/components/items/SidebarMenuItemAction.js";
|
|
5
|
-
import { type SidebarMenuItemBadgeProps } from "../../../Sidebar/components/items/SidebarMenuItemBadge.js";
|
|
6
|
-
declare const
|
|
7
|
-
|
|
4
|
+
import { SidebarMenuItemAction, type SidebarMenuItemActionProps } from "../../../Sidebar/components/items/SidebarMenuItemAction.js";
|
|
5
|
+
import { SidebarMenuItemBadge, type SidebarMenuItemBadgeProps } from "../../../Sidebar/components/items/SidebarMenuItemBadge.js";
|
|
6
|
+
declare const SidebarMenuLinkBase: (props: SidebarMenuItemLinkProps) => React.JSX.Element;
|
|
7
|
+
declare const SidebarMenuLink: typeof SidebarMenuLinkBase & {
|
|
8
|
+
original: typeof SidebarMenuLinkBase;
|
|
8
9
|
originalName: string;
|
|
9
10
|
displayName: string;
|
|
10
11
|
} & {
|
|
11
|
-
original:
|
|
12
|
-
original:
|
|
12
|
+
original: typeof SidebarMenuLinkBase & {
|
|
13
|
+
original: typeof SidebarMenuLinkBase;
|
|
13
14
|
originalName: string;
|
|
14
15
|
displayName: string;
|
|
15
16
|
};
|
|
16
17
|
originalName: string;
|
|
17
18
|
displayName: string;
|
|
18
19
|
} & {
|
|
19
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
20
|
-
original:
|
|
20
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof SidebarMenuLinkBase & {
|
|
21
|
+
original: typeof SidebarMenuLinkBase;
|
|
21
22
|
originalName: string;
|
|
22
23
|
displayName: string;
|
|
23
24
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -41,7 +42,7 @@ declare const SidebarMenuLink: ((props: SidebarMenuItemLinkProps) => React.JSX.E
|
|
|
41
42
|
displayName: string;
|
|
42
43
|
}>) => (props: unknown) => React.JSX.Element;
|
|
43
44
|
};
|
|
44
|
-
Action:
|
|
45
|
-
Badge:
|
|
45
|
+
Action: typeof SidebarMenuItemAction;
|
|
46
|
+
Badge: typeof SidebarMenuItemBadge;
|
|
46
47
|
};
|
|
47
48
|
export { SidebarMenuLink, type SidebarMenuItemLinkProps, type SidebarMenuItemIconProps, type SidebarMenuItemActionProps, type SidebarMenuItemBadgeProps };
|
|
@@ -11,8 +11,8 @@ interface SidebarMenuProviderProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare const SidebarMenuContext: React.Context<SidebarMenuContext>;
|
|
13
13
|
declare function useSidebarMenu(): SidebarMenuContext;
|
|
14
|
-
declare
|
|
15
|
-
|
|
16
|
-
displayName: string;
|
|
17
|
-
}
|
|
14
|
+
declare function SidebarMenuProvider({ level, parentIcon, children }: SidebarMenuProviderProps): React.JSX.Element;
|
|
15
|
+
declare namespace SidebarMenuProvider {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
18
|
export { SidebarMenuProvider, useSidebarMenu };
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { SidebarMenuItemAction } from "./SidebarMenuItemAction.js";
|
|
2
3
|
import { type SidebarMenuItemProps } from "./SidebarMenuItem.js";
|
|
3
|
-
declare const
|
|
4
|
-
|
|
4
|
+
declare const SidebarMenuItemBase: ({ children, className, pinnable, action, ...buttonProps }: SidebarMenuItemProps) => React.JSX.Element;
|
|
5
|
+
declare const SidebarMenuRootItem: typeof SidebarMenuItemBase & {
|
|
6
|
+
original: typeof SidebarMenuItemBase;
|
|
5
7
|
originalName: string;
|
|
6
8
|
displayName: string;
|
|
7
9
|
} & {
|
|
8
|
-
original:
|
|
9
|
-
original:
|
|
10
|
+
original: typeof SidebarMenuItemBase & {
|
|
11
|
+
original: typeof SidebarMenuItemBase;
|
|
10
12
|
originalName: string;
|
|
11
13
|
displayName: string;
|
|
12
14
|
};
|
|
13
15
|
originalName: string;
|
|
14
16
|
displayName: string;
|
|
15
17
|
} & {
|
|
16
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
17
|
-
original:
|
|
18
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof SidebarMenuItemBase & {
|
|
19
|
+
original: typeof SidebarMenuItemBase;
|
|
18
20
|
originalName: string;
|
|
19
21
|
displayName: string;
|
|
20
22
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -38,6 +40,6 @@ declare const SidebarMenuRootItem: (({ children, className, pinnable, action, ..
|
|
|
38
40
|
displayName: string;
|
|
39
41
|
}>) => (props: unknown) => React.JSX.Element;
|
|
40
42
|
};
|
|
41
|
-
Action:
|
|
43
|
+
Action: typeof SidebarMenuItemAction;
|
|
42
44
|
};
|
|
43
45
|
export { SidebarMenuRootItem, type SidebarMenuItemProps };
|