@uniformdev/design-system 17.3.1-alpha.117 → 17.3.1-alpha.146
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/esm/index.js +314 -261
- package/dist/index.d.ts +62 -1
- package/dist/index.js +315 -262
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1097,4 +1097,65 @@ interface TabContentProps extends Partial<TabPanelProps> {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
declare const TabContent: ({ children, ...props }: TabContentProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1099
1099
|
|
|
1100
|
-
|
|
1100
|
+
interface DrawerItem {
|
|
1101
|
+
/** An ID for the drawer. It should be unique in the stack where it's rendered */
|
|
1102
|
+
id: string;
|
|
1103
|
+
/** The ReactNode to render inside the drawer */
|
|
1104
|
+
component: React__default.ReactNode;
|
|
1105
|
+
/** The ID of the stack where the drawer should be renderer. It should match the stack ID of an existing DrawerRenderer */
|
|
1106
|
+
stackId: string;
|
|
1107
|
+
/** Just like React.Key, changing this value indicates that the drawer has changed and we need to close the current instance and open a new one */
|
|
1108
|
+
instanceKey?: string;
|
|
1109
|
+
/** Called when the close button is clicked, the Escape button is pressed, or when the drawer's overlay is clicked */
|
|
1110
|
+
onRequestClose?: () => void;
|
|
1111
|
+
}
|
|
1112
|
+
declare type DrawerContextValue = {
|
|
1113
|
+
drawersRegistry: DrawerItem[];
|
|
1114
|
+
registerDrawer: (drawer: DrawerItem) => void;
|
|
1115
|
+
unregisterDrawer: (drawerId: Pick<DrawerItem, 'id' | 'stackId' | 'instanceKey'>) => void;
|
|
1116
|
+
};
|
|
1117
|
+
/**
|
|
1118
|
+
* Provides the context to the Drawer and DrawerRenderer components.
|
|
1119
|
+
* @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
|
|
1120
|
+
*/
|
|
1121
|
+
declare const DrawerProvider: ({ children }: React__default.PropsWithChildren) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1122
|
+
declare const useDrawer: () => DrawerContextValue;
|
|
1123
|
+
|
|
1124
|
+
interface DrawerProps extends Omit<DrawerItem, 'component'> {
|
|
1125
|
+
header?: React__default.ReactNode;
|
|
1126
|
+
children?: React__default.ReactNode;
|
|
1127
|
+
}
|
|
1128
|
+
/**
|
|
1129
|
+
* A drawer component that opens from the right side of is parent. The component is used in combination with DrawerProvider and DrawerRenderer
|
|
1130
|
+
* @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
|
|
1131
|
+
*/
|
|
1132
|
+
declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1133
|
+
|
|
1134
|
+
interface DrawerRendererProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1135
|
+
/** The ID of the stack to render. Some drawers need to use the same stack ID to be rendered here */
|
|
1136
|
+
stackId: string;
|
|
1137
|
+
/** The width of the drawers. In any CSS length unit (px, rem, %, et al). Can't use CSS functions (e.g. calc())
|
|
1138
|
+
* @default '45%'
|
|
1139
|
+
*/
|
|
1140
|
+
width?: string;
|
|
1141
|
+
/** The minimum width of the drawers. In any CSS length unit (px, rem, %, et al)
|
|
1142
|
+
* @default '0'
|
|
1143
|
+
|
|
1144
|
+
*/
|
|
1145
|
+
minWidth?: string;
|
|
1146
|
+
/** The maximum width of the drawers. In any CSS length unit (px, rem, %, et al)
|
|
1147
|
+
* @default '100%'
|
|
1148
|
+
*/
|
|
1149
|
+
maxWidth?: string;
|
|
1150
|
+
}
|
|
1151
|
+
declare const DrawerRenderer: ({ stackId, width, minWidth, maxWidth, ...otherProps }: DrawerRendererProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
1152
|
+
interface DrawerRendererItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1153
|
+
index: number;
|
|
1154
|
+
totalDrawers: number;
|
|
1155
|
+
width: DrawerRendererProps['width'];
|
|
1156
|
+
minWidth: Required<DrawerRendererProps['minWidth']>;
|
|
1157
|
+
maxWidth: Required<DrawerRendererProps['maxWidth']>;
|
|
1158
|
+
onOverlayClick?: () => void;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Heading, HeadingProps, HexModalBackground, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, Label, LabelProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, ResolveIcon, ResolveIconProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, UniformBadge, UniformLogo, UniformLogoProps, breakpointSizeProps, breakpoints, breakpointsProps, button, buttonGhost, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonTertiary, buttonUnimportant, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeOutBottom, growSubtle, input, inputError, inputSelect, labelText, mq, ripple, scrollbarStyles, skeletonLoading, supports, useCurrentTab, useDrawer, useIconContext, useMenuContext };
|