@rocket.chat/fuselage 0.80.0 → 0.82.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/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/AudioPlayer/AudioPlayer.d.ts +6 -3
- package/dist/components/AudioPlayer/AudioPlayer.d.ts.map +1 -1
- package/dist/components/AudioPlayer/AudioPlayerControls.d.ts +28 -0
- package/dist/components/AudioPlayer/AudioPlayerControls.d.ts.map +1 -0
- package/dist/components/AudioPlayer/index.d.ts +1 -0
- package/dist/components/AudioPlayer/index.d.ts.map +1 -1
- package/dist/components/AutoComplete/AutoComplete.d.ts +6 -4
- package/dist/components/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts +3 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Box/Box.d.ts +6 -3
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/StylingBox.d.ts +6 -0
- package/dist/components/Box/StylingBox.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +7 -20
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/IconButton.d.ts +1 -10
- package/dist/components/Button/IconButton.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -10
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/components/Callout/Callout.d.ts +3 -0
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/CheckBox/CheckBox.d.ts +3 -6
- package/dist/components/CheckBox/CheckBox.d.ts.map +1 -1
- package/dist/components/CodeSnippet/CodeSnippet.d.ts +7 -0
- package/dist/components/CodeSnippet/CodeSnippet.d.ts.map +1 -1
- package/dist/components/Contextualbar/Contextualbar.d.ts +7 -2
- package/dist/components/Contextualbar/Contextualbar.d.ts.map +1 -1
- package/dist/components/Contextualbar/ContextualbarContent.d.ts +4 -2
- package/dist/components/Contextualbar/ContextualbarContent.d.ts.map +1 -1
- package/dist/components/Contextualbar/ContextualbarEmptyContent.d.ts +4 -6
- package/dist/components/Contextualbar/ContextualbarEmptyContent.d.ts.map +1 -1
- package/dist/components/Contextualbar/ContextualbarFooter.d.ts +4 -2
- package/dist/components/Contextualbar/ContextualbarFooter.d.ts.map +1 -1
- package/dist/components/Contextualbar/ContextualbarSection.d.ts +4 -2
- package/dist/components/Contextualbar/ContextualbarSection.d.ts.map +1 -1
- package/dist/components/ContextualbarV2/Contextualbar.d.ts +7 -2
- package/dist/components/ContextualbarV2/Contextualbar.d.ts.map +1 -1
- package/dist/components/ContextualbarV2/ContextualbarContent.d.ts +4 -2
- package/dist/components/ContextualbarV2/ContextualbarContent.d.ts.map +1 -1
- package/dist/components/ContextualbarV2/ContextualbarEmptyContent.d.ts +2 -5
- package/dist/components/ContextualbarV2/ContextualbarEmptyContent.d.ts.map +1 -1
- package/dist/components/ContextualbarV2/ContextualbarFooter.d.ts +4 -2
- package/dist/components/ContextualbarV2/ContextualbarFooter.d.ts.map +1 -1
- package/dist/components/ContextualbarV2/ContextualbarSection.d.ts +4 -2
- package/dist/components/ContextualbarV2/ContextualbarSection.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownDesktop.d.ts +3 -3
- package/dist/components/Dropdown/DropdownDesktop.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownDesktopWrapper.d.ts +3 -3
- package/dist/components/Dropdown/DropdownDesktopWrapper.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownMobile.d.ts +3 -3
- package/dist/components/Dropdown/DropdownMobile.d.ts.map +1 -1
- package/dist/components/EmailInput/EmailInput.d.ts +5 -9
- package/dist/components/EmailInput/EmailInput.d.ts.map +1 -1
- package/dist/components/Field/Field.d.ts +3 -0
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Field/FieldLabel.d.ts +1 -5
- package/dist/components/Field/FieldLabel.d.ts.map +1 -1
- package/dist/components/FieldGroup/FieldGroup.d.ts +3 -0
- package/dist/components/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/dist/components/Flex/index.d.ts +0 -6
- package/dist/components/Flex/index.d.ts.map +1 -1
- package/dist/components/Icon/Icon.d.ts +3 -5
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/InputBox/Input.d.ts +3 -2
- package/dist/components/InputBox/Input.d.ts.map +1 -1
- package/dist/components/InputBox/InputBox.d.ts +9 -15
- package/dist/components/InputBox/InputBox.d.ts.map +1 -1
- package/dist/components/InputBox/InputBoxAddon.d.ts +6 -2
- package/dist/components/InputBox/InputBoxAddon.d.ts.map +1 -1
- package/dist/components/Label/Label.d.ts +6 -8
- package/dist/components/Label/Label.d.ts.map +1 -1
- package/dist/components/Margins/Margins.d.ts +3 -0
- package/dist/components/Margins/Margins.d.ts.map +1 -1
- package/dist/components/Menu/Menu.d.ts +3 -0
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/MenuOption.d.ts +4 -4
- package/dist/components/Menu/MenuOption.d.ts.map +1 -1
- package/dist/components/Message/Message.d.ts +3 -11
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/Message/MessageBlock.d.ts +4 -5
- package/dist/components/Message/MessageBlock.d.ts.map +1 -1
- package/dist/components/Message/MessageNameContainer.d.ts +3 -3
- package/dist/components/Message/MessageNameContainer.d.ts.map +1 -1
- package/dist/components/Message/MessageReactions/MessageReaction.d.ts +3 -8
- package/dist/components/Message/MessageReactions/MessageReaction.d.ts.map +1 -1
- package/dist/components/Message/MessageReactions/MessageReactions.d.ts +3 -3
- package/dist/components/Message/MessageReactions/MessageReactions.d.ts.map +1 -1
- package/dist/components/Message/MessageStatusIndicator/MessageStatusIndicator.d.ts +3 -3
- package/dist/components/Message/MessageStatusIndicator/MessageStatusIndicator.d.ts.map +1 -1
- package/dist/components/Message/MessageToolbar/MessageToolbar.d.ts +1 -8
- package/dist/components/Message/MessageToolbar/MessageToolbar.d.ts.map +1 -1
- package/dist/components/Message/MessageToolbar/MessageToolbarItem.d.ts +3 -11
- package/dist/components/Message/MessageToolbar/MessageToolbarItem.d.ts.map +1 -1
- package/dist/components/Message/MessageToolbar/MessageToolbarWrapper.d.ts +3 -5
- package/dist/components/Message/MessageToolbar/MessageToolbarWrapper.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +4 -7
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +9 -24
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelectAnchor.d.ts +4 -3
- package/dist/components/MultiSelect/MultiSelectAnchor.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelectFiltered.d.ts +1 -25
- package/dist/components/MultiSelect/MultiSelectFiltered.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelectFilteredAnchor.d.ts +3 -15
- package/dist/components/MultiSelect/MultiSelectFilteredAnchor.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelectFilteredContext.d.ts +7 -0
- package/dist/components/MultiSelect/MultiSelectFilteredContext.d.ts.map +1 -0
- package/dist/components/NavBar/NavBarGroup.d.ts +1 -8
- package/dist/components/NavBar/NavBarGroup.d.ts.map +1 -1
- package/dist/components/NavBar/NavBarItem.d.ts +3 -3
- package/dist/components/NavBar/NavBarItem.d.ts.map +1 -1
- package/dist/components/NavBar/NavBarSection.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +5 -2
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/Option/Option.d.ts +9 -6
- package/dist/components/Option/Option.d.ts.map +1 -1
- package/dist/components/Options/OptionContainer.d.ts +3 -2
- package/dist/components/Options/OptionContainer.d.ts.map +1 -1
- package/dist/components/Options/OptionType.d.ts +15 -1
- package/dist/components/Options/OptionType.d.ts.map +1 -1
- package/dist/components/Options/Options.d.ts +8 -5
- package/dist/components/Options/Options.d.ts.map +1 -1
- package/dist/components/OptionsPaginated/OptionsPaginated.d.ts +9 -26
- package/dist/components/OptionsPaginated/OptionsPaginated.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedMultiSelect.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedMultiSelectFiltered.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedSelectFiltered.d.ts +2 -1
- package/dist/components/PaginatedSelect/PaginatedSelectFiltered.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedSelectWrapper.d.ts +3 -1
- package/dist/components/PaginatedSelect/PaginatedSelectWrapper.d.ts.map +1 -1
- package/dist/components/PaletteStyleTag/PaletteStyleTag.d.ts +19 -0
- package/dist/components/PaletteStyleTag/PaletteStyleTag.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +2 -2
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/{Position → PositionAnimated}/Position.d.ts +2 -2
- package/dist/components/PositionAnimated/Position.d.ts.map +1 -0
- package/dist/components/PositionAnimated/PositionAnimated.d.ts +9 -3
- package/dist/components/PositionAnimated/PositionAnimated.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +6 -9
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/components/RadioButton/RadioButton.d.ts +3 -5
- package/dist/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/dist/components/Scrollable/Scrollable.d.ts +3 -0
- package/dist/components/Scrollable/Scrollable.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +5 -9
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +6 -10
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/SelectAddon.d.ts +3 -1
- package/dist/components/Select/SelectAddon.d.ts.map +1 -1
- package/dist/components/Select/SelectAria.d.ts +3 -9
- package/dist/components/Select/SelectAria.d.ts.map +1 -1
- package/dist/components/Select/SelectFiltered.d.ts +3 -20
- package/dist/components/Select/SelectFiltered.d.ts.map +1 -1
- package/dist/components/Select/SelectFilteredAnchor.d.ts +3 -13
- package/dist/components/Select/SelectFilteredAnchor.d.ts.map +1 -1
- package/dist/components/Select/SelectFilteredContext.d.ts +7 -0
- package/dist/components/Select/SelectFilteredContext.d.ts.map +1 -0
- package/dist/components/Select/SelectFocus.d.ts +3 -1
- package/dist/components/Select/SelectFocus.d.ts.map +1 -1
- package/dist/components/Select/SelectLegacy.d.ts +3 -16
- package/dist/components/Select/SelectLegacy.d.ts.map +1 -1
- package/dist/components/Select/SelectTrigger.d.ts +5 -3
- package/dist/components/Select/SelectTrigger.d.ts.map +1 -1
- package/dist/components/Sidebar/Item.d.ts +6 -29
- package/dist/components/Sidebar/Item.d.ts.map +1 -1
- package/dist/components/Sidebar/Section.d.ts +1 -3
- package/dist/components/Sidebar/Section.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +1 -56
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.d.ts +4 -19
- package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/TopBar/TopBar.d.ts +3 -0
- package/dist/components/Sidebar/TopBar/TopBar.d.ts.map +1 -1
- package/dist/components/Sidebar/TopBar/TopBarAction.d.ts +4 -10
- package/dist/components/Sidebar/TopBar/TopBarAction.d.ts.map +1 -1
- package/dist/components/Sidebar/TopBar/TopBarActions.d.ts +4 -8
- package/dist/components/Sidebar/TopBar/TopBarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/TopBar/index.d.ts +0 -29
- package/dist/components/Sidebar/TopBar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/SidebarV2/Sidebar.d.ts +4 -6
- package/dist/components/SidebarV2/Sidebar.d.ts.map +1 -1
- package/dist/components/SidebarV2/SidebarAction.d.ts +3 -11
- package/dist/components/SidebarV2/SidebarAction.d.ts.map +1 -1
- package/dist/components/SidebarV2/SidebarActions.d.ts +1 -8
- package/dist/components/SidebarV2/SidebarActions.d.ts.map +1 -1
- package/dist/components/SidebarV2/SidebarCollapseGroup.d.ts +5 -3
- package/dist/components/SidebarV2/SidebarCollapseGroup.d.ts.map +1 -1
- package/dist/components/SidebarV2/SidebarItem/SidebarListItem.d.ts +5 -3
- package/dist/components/SidebarV2/SidebarItem/SidebarListItem.d.ts.map +1 -1
- package/dist/components/Sidepanel/SidepanelList.d.ts +3 -3
- package/dist/components/Sidepanel/SidepanelList.d.ts.map +1 -1
- package/dist/components/Sidepanel/SidepanelListItem.d.ts +3 -3
- package/dist/components/Sidepanel/SidepanelListItem.d.ts.map +1 -1
- package/dist/components/Slider/Slider.d.ts +20 -4
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/StatusBullet/StatusBullet.d.ts +3 -0
- package/dist/components/StatusBullet/StatusBullet.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +3 -6
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/TabsItem.d.ts +3 -5
- package/dist/components/Tabs/TabsItem.d.ts.map +1 -1
- package/dist/components/Tag/Tag.d.ts +3 -0
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/TextAreaInput/TextAreaInput.d.ts +5 -9
- package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -1
- package/dist/components/TextInput/TextInput.d.ts +5 -9
- package/dist/components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/components/Throbber/Throbber.d.ts +6 -6
- package/dist/components/Throbber/Throbber.d.ts.map +1 -1
- package/dist/components/Tile/Tile.d.ts +3 -2
- package/dist/components/Tile/Tile.d.ts.map +1 -1
- package/dist/components/ToastBar/ToastBar.d.ts +3 -0
- package/dist/components/ToastBar/ToastBar.d.ts.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -5
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +3 -5
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/UrlInput/UrlInput.d.ts +2 -2
- package/dist/components/UrlInput/UrlInput.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/fuselage.css.map +1 -1
- package/dist/fuselage.development.js +629 -718
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +15 -15
- package/dist/helpers/composeClassNames.d.ts +32 -0
- package/dist/helpers/composeClassNames.d.ts.map +1 -1
- package/dist/helpers/exhaustiveCheck.d.ts +27 -0
- package/dist/helpers/exhaustiveCheck.d.ts.map +1 -1
- package/dist/styleTokens.d.ts +1 -0
- package/dist/styleTokens.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/components/Button/ActionButton.d.ts +0 -31
- package/dist/components/Button/ActionButton.d.ts.map +0 -1
- package/dist/components/Position/Position.d.ts.map +0 -1
- package/dist/components/Position/index.d.ts +0 -2
- package/dist/components/Position/index.d.ts.map +0 -1
- package/dist/components/SelectInput/SelectInput.d.ts +0 -17
- package/dist/components/SelectInput/SelectInput.d.ts.map +0 -1
- package/dist/components/SelectInput/SelectInputOption.d.ts +0 -5
- package/dist/components/SelectInput/SelectInputOption.d.ts.map +0 -1
- package/dist/components/SelectInput/SelectInputPlaceholder.d.ts +0 -5
- package/dist/components/SelectInput/SelectInputPlaceholder.d.ts.map +0 -1
- package/dist/components/SelectInput/index.d.ts +0 -3
- package/dist/components/SelectInput/index.d.ts.map +0 -1
- package/dist/components/TelephoneInput/TelephoneInput.d.ts +0 -14
- package/dist/components/TelephoneInput/TelephoneInput.d.ts.map +0 -1
- package/dist/components/TelephoneInput/index.d.ts +0 -2
- package/dist/components/TelephoneInput/index.d.ts.map +0 -1
- package/dist/helpers/isForwardRefType.d.ts +0 -3
- package/dist/helpers/isForwardRefType.d.ts.map +0 -1
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import type { ElementType, ReactNode } from 'react';
|
|
1
|
+
import type { ElementType, ReactNode, RefAttributes } from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box';
|
|
3
|
-
export type ModalProps = {
|
|
3
|
+
export type ModalProps = Omit<BoxProps, 'ref'> & RefAttributes<Element> & {
|
|
4
4
|
wrapperFunction?: (props: Pick<BoxProps, 'elevation' | 'className' | 'children'>) => ReactNode;
|
|
5
5
|
wrapper?: ElementType<Pick<BoxProps, 'elevation' | 'className' | 'children'>>;
|
|
6
|
-
}
|
|
7
|
-
declare const Modal: import("react").
|
|
8
|
-
wrapperFunction?: (props: Pick<BoxProps, "elevation" | "className" | "children">) => ReactNode;
|
|
9
|
-
wrapper?: ElementType<Pick<BoxProps, "elevation" | "className" | "children">>;
|
|
10
|
-
} & BoxProps & import("react").RefAttributes<Element>>;
|
|
6
|
+
};
|
|
7
|
+
declare const Modal: ({ children, wrapper, wrapperFunction, ...props }: ModalProps) => import("react").JSX.Element;
|
|
11
8
|
export default Modal;
|
|
12
9
|
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGnE,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,GAC5C,aAAa,CAAC,OAAO,CAAC,GAAG;IACvB,eAAe,CAAC,EAAE,CAChB,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC,KAC1D,SAAS,CAAC;IACf,OAAO,CAAC,EAAE,WAAW,CACnB,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC,CACvD,CAAC;CACH,CAAC;AAEJ,QAAA,MAAM,KAAK,GAAI,kDAKZ,UAAU,gCAcZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { ElementType, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import type { IconProps, SelectOption } from '..';
|
|
1
|
+
import type { ElementType, MouseEventHandler, ReactNode, RefAttributes } from 'react';
|
|
3
2
|
import { type BoxProps } from '../Box';
|
|
3
|
+
import type { IconProps } from '../Icon';
|
|
4
|
+
import type { SelectOption } from '../Select';
|
|
4
5
|
import type { MultiSelectAnchorParams } from './MultiSelectAnchorParams';
|
|
5
|
-
export type MultiSelectProps = Omit<BoxProps, 'onChange' | 'value'> & {
|
|
6
|
+
export type MultiSelectProps = Omit<BoxProps, 'ref' | 'onChange' | 'value'> & RefAttributes<HTMLInputElement> & {
|
|
6
7
|
value?: SelectOption[0][];
|
|
7
8
|
error?: string;
|
|
8
9
|
options: SelectOption[];
|
|
@@ -10,7 +11,7 @@ export type MultiSelectProps = Omit<BoxProps, 'onChange' | 'value'> & {
|
|
|
10
11
|
getLabel?: (params: SelectOption) => SelectOption[1];
|
|
11
12
|
getValue?: (params: SelectOption) => SelectOption[0];
|
|
12
13
|
customEmpty?: string;
|
|
13
|
-
anchor?: ElementType<MultiSelectAnchorParams
|
|
14
|
+
anchor?: ElementType<MultiSelectAnchorParams>;
|
|
14
15
|
renderOptions?: ElementType;
|
|
15
16
|
renderItem?: ElementType;
|
|
16
17
|
renderSelected?: ElementType<{
|
|
@@ -22,25 +23,9 @@ export type MultiSelectProps = Omit<BoxProps, 'onChange' | 'value'> & {
|
|
|
22
23
|
addonIcon?: IconProps['name'];
|
|
23
24
|
setFilter?: (filter: string) => void;
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
onChange: (params: SelectOption[0][]) => void;
|
|
30
|
-
getLabel?: (params: SelectOption) => SelectOption[1];
|
|
31
|
-
getValue?: (params: SelectOption) => SelectOption[0];
|
|
32
|
-
customEmpty?: string;
|
|
33
|
-
anchor?: ElementType<MultiSelectAnchorParams> | ((params: MultiSelectAnchorParams) => ReactNode);
|
|
34
|
-
renderOptions?: ElementType;
|
|
35
|
-
renderItem?: ElementType;
|
|
36
|
-
renderSelected?: ElementType<{
|
|
37
|
-
value: SelectOption[0];
|
|
38
|
-
label: SelectOption[1];
|
|
39
|
-
onMouseDown: MouseEventHandler;
|
|
40
|
-
children: ReactNode;
|
|
41
|
-
}>;
|
|
42
|
-
addonIcon?: IconProps["name"];
|
|
43
|
-
setFilter?: (filter: string) => void;
|
|
44
|
-
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
26
|
+
/**
|
|
27
|
+
* An input for selection of options.
|
|
28
|
+
*/
|
|
29
|
+
declare function MultiSelect({ ref, value, filter, setFilter, options, error, disabled, anchor: Anchor, onChange, getLabel, getValue, placeholder, renderOptions: _Options, renderItem, customEmpty, renderSelected: RenderSelected, addonIcon, ...props }: MultiSelectProps): import("react").JSX.Element;
|
|
45
30
|
export default MultiSelect;
|
|
46
31
|
//# sourceMappingURL=MultiSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.tsx"],"names":[],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E,YAAY,CAAC,CAAC,CAAC,CAAC;QACvB,WAAW,EAAE,iBAAiB,CAAC;QAC/B,QAAQ,EAAE,SAAS,CAAC;KACrB,CAAC,CAAC;IACH,SAAS,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEJ;;GAEG;AACH,iBAAS,WAAW,CAAC,EACnB,GAAG,EACH,KAAK,EACL,MAAM,EACN,SAAS,EACT,OAAY,EACZ,KAAK,EACL,QAAQ,EACR,MAAM,EAAE,MAA0B,EAClC,QAAmB,EACnB,QAA0C,EAC1C,QAA6B,EAC7B,WAAW,EACX,aAAa,EAAE,QAAkB,EACjC,UAAU,EACV,WAAW,EACX,cAAc,EAAE,cAAc,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,+BA0LlB;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AriaAttributes, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
|
|
1
|
+
import type { AriaAttributes, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
type MultiSelectAnchorProps = RefAttributes<Element> & {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
onClick: MouseEventHandler;
|
|
@@ -9,6 +9,7 @@ declare const MultiSelectAnchor: import("react").ForwardRefExoticComponent<{
|
|
|
9
9
|
role?: string;
|
|
10
10
|
id?: string;
|
|
11
11
|
name?: string;
|
|
12
|
-
} & AriaAttributes
|
|
12
|
+
} & AriaAttributes;
|
|
13
|
+
declare function MultiSelectAnchor(props: MultiSelectAnchorProps): import("react").JSX.Element;
|
|
13
14
|
export default MultiSelectAnchor;
|
|
14
15
|
//# sourceMappingURL=MultiSelectAnchor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectAnchor.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelectAnchor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,SAAS,
|
|
1
|
+
{"version":3,"file":"MultiSelectAnchor.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelectAnchor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,SAAS,EACT,aAAa,EACd,MAAM,OAAO,CAAC;AAIf,KAAK,sBAAsB,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG;IACrD,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,oBAAoB,CAAC;IAC9B,SAAS,EAAE,oBAAoB,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,cAAc,CAAC;AAEnB,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAEvD;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,35 +1,11 @@
|
|
|
1
1
|
import type { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import type { IconProps } from '../Icon';
|
|
3
3
|
import type { MultiSelectProps } from './MultiSelect';
|
|
4
|
-
import type { MultiSelectAnchorParams } from './MultiSelectAnchorParams';
|
|
5
4
|
export type MultiSelectFilteredProps = MultiSelectProps & {
|
|
6
5
|
filter?: string;
|
|
7
6
|
setFilter?: Dispatch<SetStateAction<string>>;
|
|
8
7
|
addonIcon?: IconProps['name'];
|
|
9
8
|
};
|
|
10
|
-
declare
|
|
11
|
-
value?: import("..").SelectOption[0][];
|
|
12
|
-
error?: string;
|
|
13
|
-
options: import("..").SelectOption[];
|
|
14
|
-
onChange: (params: import("..").SelectOption[0][]) => void;
|
|
15
|
-
getLabel?: (params: import("..").SelectOption) => import("..").SelectOption[1];
|
|
16
|
-
getValue?: (params: import("..").SelectOption) => import("..").SelectOption[0];
|
|
17
|
-
customEmpty?: string;
|
|
18
|
-
anchor?: import("react").ElementType<MultiSelectAnchorParams> | ((params: MultiSelectAnchorParams) => import("react").ReactNode);
|
|
19
|
-
renderOptions?: import("react").ElementType;
|
|
20
|
-
renderItem?: import("react").ElementType;
|
|
21
|
-
renderSelected?: import("react").ElementType<{
|
|
22
|
-
value: import("..").SelectOption[0];
|
|
23
|
-
label: import("..").SelectOption[1];
|
|
24
|
-
onMouseDown: import("react").MouseEventHandler;
|
|
25
|
-
children: import("react").ReactNode;
|
|
26
|
-
}>;
|
|
27
|
-
addonIcon?: IconProps["name"];
|
|
28
|
-
setFilter?: (filter: string) => void;
|
|
29
|
-
} & {
|
|
30
|
-
filter?: string;
|
|
31
|
-
setFilter?: Dispatch<SetStateAction<string>>;
|
|
32
|
-
addonIcon?: IconProps["name"];
|
|
33
|
-
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
9
|
+
declare function MultiSelectFiltered({ options, placeholder, filter: propFilter, setFilter: propSetFilter, ...props }: MultiSelectFilteredProps): import("react").JSX.Element;
|
|
34
10
|
export default MultiSelectFiltered;
|
|
35
11
|
//# sourceMappingURL=MultiSelectFiltered.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectFiltered.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelectFiltered.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"MultiSelectFiltered.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelectFiltered.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAKtD,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,GAAG;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAEF,iBAAS,mBAAmB,CAAC,EAC3B,OAAO,EACP,WAAW,EACX,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,aAAa,EACxB,GAAG,KAAK,EACT,EAAE,wBAAwB,+BAoB1B;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
filter: string;
|
|
6
|
-
onChangeFilter: (filter: string) => void;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
onClick: MouseEventHandler;
|
|
9
|
-
onBlur: FocusEventHandler;
|
|
10
|
-
onKeyUp: KeyboardEventHandler;
|
|
11
|
-
onKeyDown: KeyboardEventHandler;
|
|
12
|
-
role?: string;
|
|
13
|
-
id?: string;
|
|
14
|
-
name?: string;
|
|
15
|
-
} & AriaAttributes & import("react").RefAttributes<HTMLInputElement>>;
|
|
1
|
+
import type { MultiSelectAnchorParams } from './MultiSelectAnchorParams';
|
|
2
|
+
type MultiSelectFilteredAnchorProps = MultiSelectAnchorParams;
|
|
3
|
+
declare function MultiSelectFilteredAnchor({ children: _children, ...props }: MultiSelectFilteredAnchorProps): import("react").JSX.Element;
|
|
16
4
|
export default MultiSelectFilteredAnchor;
|
|
17
5
|
//# sourceMappingURL=MultiSelectFilteredAnchor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectFilteredAnchor.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelectFilteredAnchor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiSelectFilteredAnchor.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelectFilteredAnchor.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGzE,KAAK,8BAA8B,GAAG,uBAAuB,CAAC;AAE9D,iBAAS,yBAAyB,CAAC,EACjC,QAAQ,EAAE,SAAS,EACnB,GAAG,KAAK,EACT,EAAE,8BAA8B,+BAkBhC;AAED,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
|
+
export declare const MultiSelectFilteredContext: import("react").Context<{
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
filter?: string;
|
|
5
|
+
setFilter?: Dispatch<SetStateAction<string>>;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=MultiSelectFilteredContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiSelectFilteredContext.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelectFilteredContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE1E,eAAO,MAAM,0BAA0B;kBACvB,MAAM;aACX,MAAM;gBACH,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;EACxC,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import type { ButtonGroupProps } from '../ButtonGroup';
|
|
2
2
|
export type NavBarGroupProps = ButtonGroupProps;
|
|
3
|
-
declare
|
|
4
|
-
align?: "start" | "center" | "end";
|
|
5
|
-
stretch?: boolean;
|
|
6
|
-
wrap?: boolean;
|
|
7
|
-
vertical?: boolean;
|
|
8
|
-
small?: boolean;
|
|
9
|
-
large?: boolean;
|
|
10
|
-
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare function NavBarGroup(props: NavBarGroupProps): import("react").JSX.Element;
|
|
11
4
|
export default NavBarGroup;
|
|
12
5
|
//# sourceMappingURL=NavBarGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBarGroup.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBarGroup.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavBarGroup.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBarGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAEhD,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAE3C;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'react';
|
|
1
|
+
import type { HTMLAttributes, RefAttributes } from 'react';
|
|
2
2
|
import type { IconButtonProps } from '../Button/IconButton';
|
|
3
|
-
export type NavbarItemProps = HTMLAttributes<HTMLElement> & Partial<IconButtonProps>;
|
|
4
|
-
declare
|
|
3
|
+
export type NavbarItemProps = HTMLAttributes<HTMLElement> & Partial<Omit<IconButtonProps, 'ref'>> & RefAttributes<HTMLElement>;
|
|
4
|
+
declare function NavBarItem({ children, icon, ...props }: NavbarItemProps): import("react").JSX.Element;
|
|
5
5
|
export default NavBarItem;
|
|
6
6
|
//# sourceMappingURL=NavBarItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBarItem.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NavBarItem.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,WAAW,CAAC,GACvD,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,GACrC,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAgBhE;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBarSection.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBarSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"NavBarSection.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBarSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC;AAEjE,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,gCAahE,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { type InputBoxProps } from '../InputBox';
|
|
2
|
-
export type NumberInputProps = Omit<InputBoxProps
|
|
3
|
-
|
|
2
|
+
export type NumberInputProps = Omit<InputBoxProps<HTMLInputElement>, 'type'>;
|
|
3
|
+
/**
|
|
4
|
+
* An input for numbers.
|
|
5
|
+
*/
|
|
6
|
+
declare function NumberInput(props: NumberInputProps): import("react").JSX.Element;
|
|
4
7
|
export default NumberInput;
|
|
5
8
|
//# sourceMappingURL=NumberInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAE7E;;GAEG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAE3C;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode, MouseEvent, AllHTMLAttributes, RefAttributes } from 'react';
|
|
2
2
|
import type { BoxProps } from '../Box';
|
|
3
3
|
import type { IconProps } from '../Icon';
|
|
4
|
-
export type OptionProps = {
|
|
4
|
+
export type OptionProps<TLabel = ReactNode> = RefAttributes<Element> & {
|
|
5
5
|
is?: BoxProps['is'];
|
|
6
6
|
id?: string;
|
|
7
7
|
children?: ReactNode;
|
|
8
|
-
label?:
|
|
8
|
+
label?: TLabel;
|
|
9
9
|
focus?: boolean;
|
|
10
10
|
selected?: boolean;
|
|
11
11
|
className?: BoxProps['className'];
|
|
12
|
-
ref?: Ref<Element>;
|
|
13
12
|
icon?: IconProps['name'];
|
|
14
13
|
gap?: boolean;
|
|
15
14
|
avatar?: ReactNode;
|
|
@@ -19,7 +18,11 @@ export type OptionProps = {
|
|
|
19
18
|
variant?: 'danger' | 'success' | 'warning' | 'primary';
|
|
20
19
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
21
20
|
description?: ReactNode;
|
|
22
|
-
} & Omit<AllHTMLAttributes<HTMLElement>, 'is' | 'id' | 'children' | 'label' | 'selected' | 'className' | 'ref' | 'icon' | 'gap' | 'avatar' | 'title' | 'disabled' | 'value' | 'variant' | 'onClick' | 'description'>;
|
|
23
|
-
|
|
21
|
+
} & Omit<AllHTMLAttributes<HTMLElement>, 'is' | 'id' | 'children' | 'label' | 'selected' | 'className' | 'ref' | 'icon' | 'gap' | 'avatar' | 'title' | 'disabled' | 'value' | 'variant' | 'onClick' | 'description'> & RefAttributes<Element>;
|
|
22
|
+
/**
|
|
23
|
+
* The generic `Option` item of options. Can be freely used or inside the `Options` as well.
|
|
24
|
+
*/
|
|
25
|
+
declare function Option<TLabel = ReactNode>({ is: Tag, id, children, label, focus, selected, className, icon, gap, avatar, title, disabled, variant, onClick, description, ...props }: OptionProps<TLabel>): import("react").JSX.Element;
|
|
26
|
+
declare const _default: import("react").MemoExoticComponent<typeof Option>;
|
|
24
27
|
export default _default;
|
|
25
28
|
//# sourceMappingURL=Option.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/components/Option/Option.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/components/Option/Option.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,aAAa,EACd,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,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QAAQ,EACR,KAAK,EACL,KAAK,EACL,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,GAAG,EACH,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,GAAG,KAAK,EACT,EAAE,WAAW,CAAC,MAAM,CAAC,+BA2CrB;;AAED,wBAA4B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { RefAttributes } from 'react';
|
|
1
2
|
import { type BoxProps } from '../Box';
|
|
2
|
-
export type OptionContainerProps = BoxProps
|
|
3
|
-
declare
|
|
3
|
+
export type OptionContainerProps = Omit<BoxProps, 'ref'> & RefAttributes<HTMLElement>;
|
|
4
|
+
declare function OptionContainer(props: OptionContainerProps): import("react").JSX.Element;
|
|
4
5
|
export default OptionContainer;
|
|
5
6
|
//# sourceMappingURL=OptionContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Options/OptionContainer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OptionContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Options/OptionContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAI5C,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,GACtD,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BAUnD;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -4,7 +4,21 @@ export type OptionType<TValue = string | number, TLabel = ReactNode> = [
|
|
|
4
4
|
label: TLabel,
|
|
5
5
|
selected?: boolean,
|
|
6
6
|
disabled?: boolean,
|
|
7
|
-
type?: '
|
|
7
|
+
type?: 'option',
|
|
8
|
+
url?: string
|
|
9
|
+
] | [
|
|
10
|
+
value: TValue,
|
|
11
|
+
label: ReactNode,
|
|
12
|
+
selected: unknown,
|
|
13
|
+
disabled: unknown,
|
|
14
|
+
type: 'heading',
|
|
15
|
+
url?: string
|
|
16
|
+
] | [
|
|
17
|
+
value: TValue,
|
|
18
|
+
label: unknown,
|
|
19
|
+
selected: unknown,
|
|
20
|
+
disabled: unknown,
|
|
21
|
+
type: 'divider',
|
|
8
22
|
url?: string
|
|
9
23
|
];
|
|
10
24
|
//# sourceMappingURL=OptionType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionType.d.ts","sourceRoot":"","sources":["../../../src/components/Options/OptionType.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"OptionType.d.ts","sourceRoot":"","sources":["../../../src/components/Options/OptionType.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,SAAS,IAC/D;IACE,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,QAAQ,CAAC,EAAE,OAAO;IAClB,QAAQ,CAAC,EAAE,OAAO;IAClB,IAAI,CAAC,EAAE,QAAQ;IACf,GAAG,CAAC,EAAE,MAAM;CACb,GACD;IACE,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,SAAS;IACf,GAAG,CAAC,EAAE,MAAM;CACb,GACD;IACE,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,SAAS;IACf,GAAG,CAAC,EAAE,MAAM;CACb,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ComponentType,
|
|
1
|
+
import type { ComponentType, MouseEventHandler, ReactNode, RefAttributes } from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box';
|
|
3
3
|
import type { OptionType } from './OptionType';
|
|
4
|
-
export type OptionsProps<TValue = string | number, TLabel = ReactNode> = Omit<BoxProps, 'onSelect'> & {
|
|
4
|
+
export type OptionsProps<TValue extends string | number = string | number, TLabel = ReactNode> = Omit<BoxProps, 'ref' | 'onSelect'> & RefAttributes<HTMLElement> & {
|
|
5
5
|
multiple?: boolean;
|
|
6
6
|
options: OptionType<TValue, TLabel>[];
|
|
7
7
|
cursor: number;
|
|
@@ -11,6 +11,8 @@ export type OptionsProps<TValue = string | number, TLabel = ReactNode> = Omit<Bo
|
|
|
11
11
|
value: TValue;
|
|
12
12
|
selected?: boolean;
|
|
13
13
|
focus?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
onMouseDown: MouseEventHandler;
|
|
14
16
|
}>;
|
|
15
17
|
renderEmpty?: ComponentType<{
|
|
16
18
|
customEmpty?: string;
|
|
@@ -18,8 +20,9 @@ export type OptionsProps<TValue = string | number, TLabel = ReactNode> = Omit<Bo
|
|
|
18
20
|
onSelect: (option: OptionType<TValue, TLabel>) => void;
|
|
19
21
|
customEmpty?: string;
|
|
20
22
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* An input for selection of options.
|
|
25
|
+
*/
|
|
26
|
+
declare function Options<TValue extends string | number = string | number, TLabel = ReactNode>({ maxHeight, multiple, renderEmpty: EmptyComponent, options, cursor, renderItem: OptionComponent, onSelect, customEmpty, id, ...props }: OptionsProps<TValue, TLabel>): import("react").JSX.Element;
|
|
24
27
|
export default Options;
|
|
25
28
|
//# sourceMappingURL=Options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/components/Options/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/components/Options/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,aAAa,EACd,MAAM,OAAO,CAAC;AAIf,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAK5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,MAAM,YAAY,CACtB,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAChD,MAAM,GAAG,SAAS,IAChB,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,UAAU,CAAC,GACpC,aAAa,CAAC,WAAW,CAAC,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,aAAa,CAAC;QACzB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,iBAAiB,CAAC;KAChC,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,aAAa,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC,CAAC;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEJ;;GAEG;AACH,iBAAS,OAAO,CACd,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAChD,MAAM,GAAG,SAAS,EAClB,EACA,SAAkB,EAClB,QAAQ,EACR,WAAW,EAAE,cAA6B,EAC1C,OAAO,EACP,MAAM,EACN,UAAU,EAAE,eAAwB,EACpC,QAAQ,EACR,WAAW,EACX,EAAE,EACF,GAAG,KAAK,EACT,EAAE,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,+BAgF9B;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ComponentType, ElementType, MouseEvent, ReactNode } from 'react';
|
|
1
|
+
import type { ComponentType, ElementType, MouseEvent, ReactNode, RefAttributes } from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box';
|
|
3
3
|
import type { OptionProps } from '../Option';
|
|
4
|
-
export type OptionsPaginatedProps = Omit<BoxProps, 'onSelect'> & {
|
|
4
|
+
export type OptionsPaginatedProps = Omit<BoxProps, 'ref' | 'onSelect'> & RefAttributes<Element> & {
|
|
5
5
|
multiple?: boolean;
|
|
6
6
|
options: {
|
|
7
7
|
value: string | number;
|
|
@@ -25,29 +25,12 @@ export type OptionsPaginatedProps = Omit<BoxProps, 'onSelect'> & {
|
|
|
25
25
|
endReached?: (start?: number | undefined, end?: number | undefined) => void;
|
|
26
26
|
};
|
|
27
27
|
export declare const Empty: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
|
|
28
|
-
|
|
29
|
-
export declare const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
selected?: boolean;
|
|
35
|
-
}[];
|
|
36
|
-
cursor: number;
|
|
37
|
-
withTitle?: boolean;
|
|
38
|
-
renderItem?: ComponentType<{
|
|
39
|
-
role?: string;
|
|
40
|
-
label?: ReactNode;
|
|
41
|
-
title?: string;
|
|
42
|
-
selected?: boolean;
|
|
43
|
-
index?: number;
|
|
44
|
-
focus?: boolean;
|
|
45
|
-
value?: string | number;
|
|
46
|
-
onMouseDown?: (e: MouseEvent<HTMLElement>) => void;
|
|
47
|
-
}>;
|
|
48
|
-
renderEmpty?: ElementType<object>;
|
|
49
|
-
onSelect: (option: [unknown, string]) => void;
|
|
50
|
-
endReached?: (start?: number | undefined, end?: number | undefined) => void;
|
|
51
|
-
} & import("react").RefAttributes<Element>>;
|
|
28
|
+
type CheckOptionProps = OptionProps;
|
|
29
|
+
export declare const CheckOption: import("react").NamedExoticComponent<CheckOptionProps>;
|
|
30
|
+
/**
|
|
31
|
+
* An input for selection of options.
|
|
32
|
+
*/
|
|
33
|
+
export declare function OptionsPaginated({ ref, withTitle, multiple, renderEmpty: EmptyComponent, options, cursor, renderItem: OptionComponent, onSelect, endReached, ...props }: OptionsPaginatedProps): import("react").JSX.Element;
|
|
52
34
|
export declare const useVisible: (initialVisibility?: import("../AnimatedVisibility").VisibilityType) => ("hidden" | "visible" | "hiding" | "unhiding" | (() => void) | undefined)[];
|
|
35
|
+
export {};
|
|
53
36
|
//# sourceMappingURL=OptionsPaginated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsPaginated.d.ts","sourceRoot":"","sources":["../../../src/components/OptionsPaginated/OptionsPaginated.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"OptionsPaginated.d.ts","sourceRoot":"","sources":["../../../src/components/OptionsPaginated/OptionsPaginated.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,aAAa,EACd,MAAM,OAAO,CAAC;AAMf,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAI7C,MAAM,MAAM,q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"","sources":["../../../src/components/PaginatedSelect/PaginatedMultiSelectFiltered.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAGxE,MAAM,MAAM,iCAAiC,GAAG;IAC9C,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,GAAG,yBAAyB,CAAC;AAE9B,QAAA,MAAM,4BAA4B,GAAI,uDAMnC,iCAAiC,
|
|
1
|
+
{"version":3,"file":"PaginatedMultiSelectFiltered.d.ts","sourceRoot":"","sources":["../../../src/components/PaginatedSelect/PaginatedMultiSelectFiltered.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAGxE,MAAM,MAAM,iCAAiC,GAAG;IAC9C,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,GAAG,yBAAyB,CAAC;AAE9B,QAAA,MAAM,4BAA4B,GAAI,uDAMnC,iCAAiC,gCA6BnC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { RefAttributes } from 'react';
|
|
1
2
|
import type { PaginatedSelectProps } from './PaginatedSelect';
|
|
2
|
-
export type PaginatedSelectFilteredProps = Omit<PaginatedSelectProps, 'setFilter'> & {
|
|
3
|
+
export type PaginatedSelectFilteredProps = Omit<PaginatedSelectProps, 'setFilter'> & RefAttributes<HTMLInputElement> & {
|
|
3
4
|
setFilter: (value: string | undefined | number) => void;
|
|
4
5
|
};
|
|
5
6
|
declare const PaginatedSelectFiltered: ({ filter, setFilter, options, placeholder, ...props }: PaginatedSelectFilteredProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginatedSelectFiltered.d.ts","sourceRoot":"","sources":["../../../src/components/PaginatedSelect/PaginatedSelectFiltered.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaginatedSelectFiltered.d.ts","sourceRoot":"","sources":["../../../src/components/PaginatedSelect/PaginatedSelectFiltered.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,aAAa,EAAE,MAAM,OAAO,CAAC;AAKxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG9D,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,oBAAoB,EACpB,WAAW,CACZ,GACC,aAAa,CAAC,gBAAgB,CAAC,GAAG;IAChC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,KAAK,IAAI,CAAC;CACzD,CAAC;AAEJ,QAAA,MAAM,uBAAuB,GAAI,uDAM9B,4BAA4B,gCAiC9B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { RefAttributes } from 'react';
|
|
1
2
|
import { type BoxProps } from '../Box';
|
|
2
|
-
|
|
3
|
+
type PaginatedSelectWrapperProps = Omit<BoxProps, 'ref'> & RefAttributes<HTMLDivElement>;
|
|
4
|
+
declare function PaginatedSelectWrapper(props: PaginatedSelectWrapperProps): import("react").JSX.Element;
|
|
3
5
|
export default PaginatedSelectWrapper;
|
|
4
6
|
//# sourceMappingURL=PaginatedSelectWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginatedSelectWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/PaginatedSelect/PaginatedSelectWrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaginatedSelectWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/PaginatedSelect/PaginatedSelectWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE5C,KAAK,2BAA2B,GAAG,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,GACtD,aAAa,CAAC,cAAc,CAAC,CAAC;AAEhC,iBAAS,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,+BAEjE;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import type { Themes } from './types/themes';
|
|
2
2
|
export type PaletteStyleTagProps = {
|
|
3
3
|
theme?: Themes;
|
|
4
|
+
/**
|
|
5
|
+
* Default is `main-palette`.
|
|
6
|
+
*/
|
|
4
7
|
tagId?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Token prefix. Default is `--rcx-color`.
|
|
10
|
+
*/
|
|
5
11
|
prefix?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Default is `:root`.
|
|
14
|
+
*/
|
|
6
15
|
selector?: string;
|
|
16
|
+
/**
|
|
17
|
+
* CSS containing custom palette styles to be used.
|
|
18
|
+
*/
|
|
7
19
|
palette?: string;
|
|
8
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Style tag to handle the theme of the application.
|
|
23
|
+
*
|
|
24
|
+
* Import `PaletteStyleTag` and use it on the application informing the desired theme.
|
|
25
|
+
*
|
|
26
|
+
* Toggle the theme on Storybook's Control panel to see the color changes.
|
|
27
|
+
*/
|
|
9
28
|
declare function PaletteStyleTag({ theme, tagId, prefix, selector, palette, }: PaletteStyleTagProps): import("react").JSX.Element;
|
|
10
29
|
declare const _default: import("react").MemoExoticComponent<typeof PaletteStyleTag>;
|
|
11
30
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaletteStyleTag.d.ts","sourceRoot":"","sources":["../../../src/components/PaletteStyleTag/PaletteStyleTag.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAQ7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"PaletteStyleTag.d.ts","sourceRoot":"","sources":["../../../src/components/PaletteStyleTag/PaletteStyleTag.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAQ7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AACH,iBAAS,eAAe,CAAC,EACvB,KAAe,EACf,KAAsB,EACtB,MAAsB,EACtB,QAAQ,EACR,OAAO,GACR,EAAE,oBAAoB,+BAItB;;AAED,wBAAqC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InputBoxProps } from '../InputBox';
|
|
2
|
-
export type PasswordInputProps = Omit<InputBoxProps
|
|
3
|
-
declare
|
|
2
|
+
export type PasswordInputProps = Omit<InputBoxProps<HTMLInputElement>, 'type'>;
|
|
3
|
+
declare function PasswordInput(props: PasswordInputProps): import("react").JSX.Element;
|
|
4
4
|
export default PasswordInput;
|
|
5
5
|
//# sourceMappingURL=PasswordInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAI3D,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAE/E,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BAmB/C;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { UsePositionOptions } from '@rocket.chat/fuselage-hooks';
|
|
2
2
|
import type { RefObject, ReactElement } from 'react';
|
|
3
3
|
import type { BoxProps } from '../Box';
|
|
4
|
-
export type PositionProps = {
|
|
4
|
+
export type PositionProps = Omit<BoxProps, 'children' | 'margin'> & {
|
|
5
5
|
anchor: RefObject<Element | null>;
|
|
6
6
|
children: ReactElement<any>;
|
|
7
7
|
margin?: number;
|
|
8
8
|
placement?: UsePositionOptions['placement'];
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
declare const Position: ({ anchor, children, placement, margin, className: _className, ...props }: PositionProps) => import("react").ReactPortal;
|
|
11
11
|
export default Position;
|
|
12
12
|
//# sourceMappingURL=Position.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../src/components/PositionAnimated/Position.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,QAAQ,CAAC,GAAG;IAClE,MAAM,EAAE,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAClC,QAAQ,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,QAAQ,GAAI,0EAOf,aAAa,gCA+Cf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|