@nimbus-ds/patterns 1.17.0 → 1.19.0-rc.1
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/CHANGELOG.md +7 -3
- package/dist/AppShell/index.d.ts +9 -0
- package/dist/AppShell/index.js +1 -1
- package/dist/CHANGELOG.md +7 -3
- package/dist/Editor/index.js +1 -1
- package/dist/FormField/index.d.ts +7 -3
- package/dist/FormField/index.js +1 -1
- package/dist/Page/index.js +1 -1
- package/dist/SideModal/index.d.ts +5 -2
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +21 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { DndContextProps, DragEndEvent, DragOverEvent, DragOverlayProps, DragStartEvent, DraggableAttributes, PointerSensorOptions, UniqueIdentifier } from '@dnd-kit/core';
|
|
4
4
|
import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
|
|
5
|
-
import { BoxBaseProps, BoxProperties, BoxProps, ButtonProperties, ButtonProps, CheckboxProperties, CheckboxProps, IconButtonProperties, IconButtonProps, InputProperties, InputProps, PaginationProperties, PaginationProps, PopoverProperties, RadioProps, SelectProperties, SelectProps,
|
|
5
|
+
import { BoxBaseProps, BoxProperties, BoxProps, ButtonProperties, ButtonProps, CheckboxProperties, CheckboxProps, IconButtonProperties, IconButtonProps, InputProperties, InputProps, PaginationProperties, PaginationProps, PopoverProperties, RadioProps, SelectProperties, SelectProps, SidebarProps, TableCellProps, TableProperties, TableRowProperties, TextareaProperties, TextareaProps, ThumbnailProperties, ThumbnailProps, ToggleProperties, ToggleProps } from '@nimbus-ds/components';
|
|
6
6
|
import { IconProps } from '@nimbus-ds/icons';
|
|
7
7
|
import { PolymorphicForwardRefComponent } from '@nimbus-ds/typings';
|
|
8
8
|
import React from 'react';
|
|
@@ -23,8 +23,14 @@ export interface AppShellHeaderProperties {
|
|
|
23
23
|
}
|
|
24
24
|
export type AppShellHeaderProps = AppShellHeaderProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Omit<BoxProperties, "display" | "justifyContent">;
|
|
25
25
|
declare const AppShellHeader: React.FC<AppShellHeaderProps>;
|
|
26
|
+
export type AppShellBodyProps = Omit<BoxProps, "display" | "flex">;
|
|
27
|
+
declare const AppShellBody: React.FC<AppShellBodyProps>;
|
|
28
|
+
export type AppShellChatProps = BoxProps;
|
|
29
|
+
declare const AppShellChat: React.FC<AppShellChatProps>;
|
|
26
30
|
export interface AppShellComponents {
|
|
27
31
|
Header: typeof AppShellHeader;
|
|
32
|
+
Body: typeof AppShellBody;
|
|
33
|
+
Chat: typeof AppShellChat;
|
|
28
34
|
}
|
|
29
35
|
/**
|
|
30
36
|
* Configuration options for the AppShell flyout (popover) behavior when the menu is collapsed.
|
|
@@ -87,6 +93,9 @@ export type AppShellProps = AppShellProperties & {
|
|
|
87
93
|
menuFlyout?: AppShellMenuFlyoutOptions & Omit<BoxProps, "position" | "top" | "left" | "right" | "bottom" | "height" | "zIndex">;
|
|
88
94
|
} & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
89
95
|
export declare const AppShell: React.FC<AppShellProps> & AppShellComponents;
|
|
96
|
+
export declare const AppShellOverlayContext: React.Context<HTMLElement | null>;
|
|
97
|
+
export declare const AppShellOverlayProvider: React.Provider<HTMLElement | null>;
|
|
98
|
+
export declare const useAppShellOverlayContainer: () => HTMLElement | null;
|
|
90
99
|
/**
|
|
91
100
|
* Context value for AppShell's menu render mode.
|
|
92
101
|
*/
|
|
@@ -305,9 +314,13 @@ export type FormFieldTextareaProperties = Omit<FormFieldProperties, "children">
|
|
|
305
314
|
export type FormFieldTextareaBaseProps = FormFieldTextareaProperties & Omit<TextareaProps, "appearance"> & HTMLAttributes<HTMLElement>;
|
|
306
315
|
declare const FormFieldTextarea: React.ForwardRefExoticComponent<Pick<FormFieldTextareaBaseProps, keyof React.HTMLAttributes<HTMLElement> | "width" | "height" | "form" | "label" | "pattern" | "key" | "max" | "min" | "name" | "type" | "crossOrigin" | "alt" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "autoComplete" | "accept" | "capture" | "checked" | "enterKeyHint" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | "cols" | "dirName" | "rows" | "wrap" | "appearance" | "helpText" | "helpIcon" | "showHelpText" | "lines"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
307
316
|
export type FormFieldTextareaProps = ComponentPropsWithRef<typeof FormField.Textarea>;
|
|
308
|
-
export type FormFieldInputProperties = Omit<FormFieldProperties, "children"> & Omit<InputProperties, "appearance"
|
|
309
|
-
|
|
310
|
-
|
|
317
|
+
export type FormFieldInputProperties = Omit<FormFieldProperties, "children"> & Omit<InputProperties, "appearance"> & {
|
|
318
|
+
appearance?: FormFieldProperties["appearance"] | InputProperties["appearance"];
|
|
319
|
+
};
|
|
320
|
+
export type FormFieldInputBaseProps = Omit<FormFieldInputProperties, "appearance"> & Omit<InputProps, "appearance"> & {
|
|
321
|
+
appearance?: FormFieldProperties["appearance"] | InputProperties["appearance"];
|
|
322
|
+
} & HTMLAttributes<HTMLElement>;
|
|
323
|
+
declare const FormFieldInput: React.ForwardRefExoticComponent<Pick<FormFieldInputBaseProps, keyof React.HTMLAttributes<HTMLElement> | "width" | "height" | "form" | "label" | "pattern" | "key" | "max" | "min" | "name" | "type" | "crossOrigin" | "alt" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "autoComplete" | "accept" | "capture" | "checked" | "enterKeyHint" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | "appearance" | "data-testid" | "helpText" | "helpIcon" | "showHelpText" | "aiGenerated" | "appendPosition" | "append"> & React.RefAttributes<HTMLInputElement>>;
|
|
311
324
|
export type FormFieldInputProps = ComponentPropsWithRef<typeof FormField.Input>;
|
|
312
325
|
export interface FormFieldComponents {
|
|
313
326
|
Select: typeof FormFieldSelect;
|
|
@@ -722,7 +735,10 @@ export interface ProductUpdatesProperties extends Omit<PopoverProperties, "conte
|
|
|
722
735
|
export type ProductUpdatesProps = ProductUpdatesProperties & HTMLAttributes<HTMLElement>;
|
|
723
736
|
export declare const ProductUpdates: React.FC<ProductUpdatesProps>;
|
|
724
737
|
export type SideModalPadding = "none" | "base";
|
|
725
|
-
export interface SideModalProperties extends Pick<
|
|
738
|
+
export interface SideModalProperties extends Pick<SidebarProps, "position" | "onRemove" | "open" | "padding" | "maxWidth" | "zIndex" | "root" | "needRemoveScroll" | "ignoreAttributeName"> {
|
|
739
|
+
/**
|
|
740
|
+
* Choose where the portal should render. Defaults to viewport (body).
|
|
741
|
+
*/
|
|
726
742
|
/**
|
|
727
743
|
* Title.
|
|
728
744
|
*/
|