@newtonschool/grauity 3.2.0-beta.0 → 3.2.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/common/types.d.ts +2 -2
- package/dist/index.d.ts +216 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/ui/elements/Accordion/types.d.ts +3 -3
- package/dist/ui/elements/Alert/constants.d.ts +0 -98
- package/dist/ui/elements/Alert/constants.d.ts.map +1 -1
- package/dist/ui/elements/AlertBanner/AlertBanner.d.ts.map +1 -1
- package/dist/ui/elements/AlertBanner/types.d.ts +1 -1
- package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.styles.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/CalendarEvent/types.d.ts +4 -4
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/types.d.ts +3 -3
- package/dist/ui/elements/Calendar/WeeklyCalendar/WeeklyCalendar.styles.d.ts.map +1 -1
- package/dist/ui/elements/Drawer/Drawer.d.ts +5 -0
- package/dist/ui/elements/Drawer/Drawer.d.ts.map +1 -0
- package/dist/ui/elements/Drawer/Drawer.styles.d.ts +5 -0
- package/dist/ui/elements/Drawer/Drawer.styles.d.ts.map +1 -0
- package/dist/ui/elements/Drawer/constants.d.ts +2 -0
- package/dist/ui/elements/Drawer/constants.d.ts.map +1 -0
- package/dist/ui/elements/Drawer/index.d.ts +3 -0
- package/dist/ui/elements/Drawer/index.d.ts.map +1 -0
- package/dist/ui/elements/Drawer/types.d.ts +70 -0
- package/dist/ui/elements/Drawer/types.d.ts.map +1 -0
- package/dist/ui/elements/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/ui/elements/DropdownMenu/types.d.ts +3 -0
- package/dist/ui/elements/DropdownMenu/types.d.ts.map +1 -1
- package/dist/ui/elements/DropdownMenu/utils.d.ts +9 -0
- package/dist/ui/elements/DropdownMenu/utils.d.ts.map +1 -1
- package/dist/ui/elements/Modal/types.d.ts +1 -1
- package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.styles.d.ts.map +1 -1
- package/dist/ui/elements/Overlay/types.d.ts +1 -1
- package/dist/ui/elements/Placeholder/types.d.ts +1 -1
- package/dist/ui/elements/SelectDropdown/SelectDropdown.styles.d.ts.map +1 -1
- package/dist/ui/elements/Tab/Tab.d.ts +5 -0
- package/dist/ui/elements/Tab/Tab.d.ts.map +1 -0
- package/dist/ui/elements/Tab/Tab.styles.d.ts +7 -0
- package/dist/ui/elements/Tab/Tab.styles.d.ts.map +1 -0
- package/dist/ui/elements/Tab/constants.d.ts +37 -0
- package/dist/ui/elements/Tab/constants.d.ts.map +1 -0
- package/dist/ui/elements/Tab/index.d.ts +6 -0
- package/dist/ui/elements/Tab/index.d.ts.map +1 -0
- package/dist/ui/elements/Tab/types.d.ts +105 -0
- package/dist/ui/elements/Tab/types.d.ts.map +1 -0
- package/dist/ui/elements/TabList/TabList.d.ts +5 -0
- package/dist/ui/elements/TabList/TabList.d.ts.map +1 -0
- package/dist/ui/elements/TabList/constants.d.ts +10 -0
- package/dist/ui/elements/TabList/constants.d.ts.map +1 -0
- package/dist/ui/elements/TabList/index.d.ts +4 -0
- package/dist/ui/elements/TabList/index.d.ts.map +1 -0
- package/dist/ui/elements/TabList/index.styles.d.ts +5 -0
- package/dist/ui/elements/TabList/index.styles.d.ts.map +1 -0
- package/dist/ui/elements/TabList/types.d.ts +41 -0
- package/dist/ui/elements/TabList/types.d.ts.map +1 -0
- package/dist/ui/elements/Table/Table.styles.d.ts.map +1 -1
- package/dist/ui/elements/Tabs/Tabs.d.ts +2 -2
- package/dist/ui/elements/Tabs/Tabs.d.ts.map +1 -1
- package/dist/ui/elements/Tabs/Tabs.styles.d.ts.map +1 -1
- package/dist/ui/elements/Tabs/index.d.ts +1 -1
- package/dist/ui/elements/Tabs/index.d.ts.map +1 -1
- package/dist/ui/elements/Tabs/types.d.ts +1 -1
- package/dist/ui/elements/Tabs/types.d.ts.map +1 -1
- package/dist/ui/elements/Tooltip/types.d.ts +4 -4
- package/dist/ui/index.d.ts +4 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/common/types.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ export interface StyledDivProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
11
11
|
'data-testid'?: string;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* Interface representing the properties for a styled
|
|
14
|
+
* Interface representing the properties for a styled span component.
|
|
15
15
|
*
|
|
16
16
|
* @extends React.HTMLAttributes<HTMLSpanElement>
|
|
17
|
-
* @property {React.Ref<HTMLSpanElement>} [ref] - Optional ref for the
|
|
17
|
+
* @property {React.Ref<HTMLSpanElement>} [ref] - Optional ref for the span element.
|
|
18
18
|
*/
|
|
19
19
|
export interface StyledSpanProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
20
20
|
ref?: React.Ref<HTMLSpanElement>;
|
package/dist/index.d.ts
CHANGED
|
@@ -3162,7 +3162,7 @@ export interface AlertBannerProps {
|
|
|
3162
3162
|
/**
|
|
3163
3163
|
* Alert banner padding
|
|
3164
3164
|
*
|
|
3165
|
-
* Default: `'var(--spacing-8px, 8px)'`
|
|
3165
|
+
* Default: `'var(--spacing-4px, 4px) var(--spacing-8px, 8px)'` if action buttons/close button are present else `'var(--spacing-8px, 8px)'`
|
|
3166
3166
|
* */
|
|
3167
3167
|
padding?: string;
|
|
3168
3168
|
/**
|
|
@@ -3571,7 +3571,7 @@ export interface OverlayProps {
|
|
|
3571
3571
|
shouldBlurOverlay?: boolean;
|
|
3572
3572
|
/**
|
|
3573
3573
|
* Color of the overlay
|
|
3574
|
-
* @default 'var(--alpha-overlay,
|
|
3574
|
+
* @default 'var(--bg-subtle-alpha-overlay, #16191dcc)'
|
|
3575
3575
|
*/
|
|
3576
3576
|
overlayColor?: string;
|
|
3577
3577
|
/**
|
|
@@ -3793,7 +3793,7 @@ export interface ModalProps {
|
|
|
3793
3793
|
*/
|
|
3794
3794
|
overflow?: string;
|
|
3795
3795
|
/**
|
|
3796
|
-
* Border for the modal. By default, it is `1px solid var(--border, #e1e5ea)`
|
|
3796
|
+
* Border for the modal. By default, it is `1px solid var(--border-subtle-primary-default, #e1e5ea)`
|
|
3797
3797
|
* */
|
|
3798
3798
|
border?: string;
|
|
3799
3799
|
/**
|
|
@@ -4508,17 +4508,17 @@ export interface AccordionProps {
|
|
|
4508
4508
|
suffix?: React.ReactNode;
|
|
4509
4509
|
/**
|
|
4510
4510
|
* Background color of the accordion header.
|
|
4511
|
-
* @default var(--bg-secondary, #
|
|
4511
|
+
* @default var(--bg-subtle-secondary-default, #f6f7f9)
|
|
4512
4512
|
*/
|
|
4513
4513
|
headerBackgroundColor?: string;
|
|
4514
4514
|
/**
|
|
4515
4515
|
* Background color of the accordion content.
|
|
4516
|
-
* @default var(--bg-secondary, #
|
|
4516
|
+
* @default var(--bg-subtle-secondary-default, #f6f7f9)
|
|
4517
4517
|
*/
|
|
4518
4518
|
contentBackgroundColor?: string;
|
|
4519
4519
|
/**
|
|
4520
4520
|
* Color of the accordion toggle icon.
|
|
4521
|
-
* @default var(--text-primary, #
|
|
4521
|
+
* @default var(--text-emphasis-primary-default, #16191d)
|
|
4522
4522
|
*/
|
|
4523
4523
|
iconColor?: string;
|
|
4524
4524
|
/**
|
|
@@ -4641,22 +4641,22 @@ export interface CalendarEventProps {
|
|
|
4641
4641
|
minDurationToDisplayTime?: number;
|
|
4642
4642
|
/**
|
|
4643
4643
|
* Text color of the event.
|
|
4644
|
-
* @default 'var(--text-
|
|
4644
|
+
* @default 'var(--text-emphasis-invert-primary-default, #ffffff)'
|
|
4645
4645
|
*/
|
|
4646
4646
|
textColor?: string;
|
|
4647
4647
|
/**
|
|
4648
4648
|
* Background color of the event.
|
|
4649
|
-
* @default 'var(--bg-
|
|
4649
|
+
* @default 'var(--bg-emphasis-brand-default, #0673f9)'
|
|
4650
4650
|
*/
|
|
4651
4651
|
backgroundColor?: string;
|
|
4652
4652
|
/**
|
|
4653
4653
|
* Border color of the event.
|
|
4654
|
-
* @default 'var(--border)'
|
|
4654
|
+
* @default 'var(--border-subtle-primary-default, #e1e5ea)'
|
|
4655
4655
|
*/
|
|
4656
4656
|
borderColor?: string;
|
|
4657
4657
|
/**
|
|
4658
4658
|
* Text color of the chip content.
|
|
4659
|
-
* @default 'var(--text-
|
|
4659
|
+
* @default 'var(--text-emphasis-invert-primary-default, #ffffff)'
|
|
4660
4660
|
*/
|
|
4661
4661
|
chipTextColor?: string;
|
|
4662
4662
|
/**
|
|
@@ -4669,7 +4669,7 @@ export const NSCalendarEvent: React.ForwardRefExoticComponent<CalendarEventProps
|
|
|
4669
4669
|
export interface MonthlyCalendarEventProps extends StyledDivProps {
|
|
4670
4670
|
/**
|
|
4671
4671
|
* The background color of the calendar event.
|
|
4672
|
-
* @default 'var(--bg-
|
|
4672
|
+
* @default 'var(--bg-emphasis-brand-default, #0673f9)'
|
|
4673
4673
|
*/
|
|
4674
4674
|
backgroundColor?: string;
|
|
4675
4675
|
/**
|
|
@@ -4697,12 +4697,12 @@ export interface MonthlyCalendarEventProps extends StyledDivProps {
|
|
|
4697
4697
|
eventTitle: string;
|
|
4698
4698
|
/**
|
|
4699
4699
|
* The color of the event time text.
|
|
4700
|
-
* @default 'var(--text-
|
|
4700
|
+
* @default 'var(--text-emphasis-invert-primary-default, #ffffff)'
|
|
4701
4701
|
*/
|
|
4702
4702
|
eventTimeColor?: string;
|
|
4703
4703
|
/**
|
|
4704
4704
|
* The color of the event title text.
|
|
4705
|
-
* @default 'var(--text-
|
|
4705
|
+
* @default 'var(--text-emphasis-invert-primary-default, #ffffff)'
|
|
4706
4706
|
*/
|
|
4707
4707
|
eventTitleColor?: string;
|
|
4708
4708
|
/**
|
|
@@ -4820,7 +4820,7 @@ export interface PlaceholderProps {
|
|
|
4820
4820
|
margin?: string;
|
|
4821
4821
|
/**
|
|
4822
4822
|
* Background color of the placeholder.
|
|
4823
|
-
* @default 'var(--bg-tertiary, #
|
|
4823
|
+
* @default 'var(--bg-subtle-tertiary-default, #edeff3)'
|
|
4824
4824
|
*/
|
|
4825
4825
|
backgroundColor?: string;
|
|
4826
4826
|
/**
|
|
@@ -4968,7 +4968,7 @@ export interface MonthlyCalendarProps<T = {}> {
|
|
|
4968
4968
|
className?: string;
|
|
4969
4969
|
}
|
|
4970
4970
|
export function NSMonthlyCalendar<T>(props: MonthlyCalendarProps<T>): JSX.Element;
|
|
4971
|
-
export interface
|
|
4971
|
+
export interface TabsProps {
|
|
4972
4972
|
/**
|
|
4973
4973
|
* An array of tab items to be rendered.
|
|
4974
4974
|
* Each item can be a React node.
|
|
@@ -5006,7 +5006,7 @@ export interface TabProps {
|
|
|
5006
5006
|
*/
|
|
5007
5007
|
className?: string;
|
|
5008
5008
|
}
|
|
5009
|
-
export function
|
|
5009
|
+
export function NSTabs(props: TabsProps): JSX.Element;
|
|
5010
5010
|
export function NSCalendar(props: CalendarProps<any>): JSX.Element;
|
|
5011
5011
|
type RangeInputValue = {
|
|
5012
5012
|
min: number;
|
|
@@ -5156,12 +5156,12 @@ export interface TooltipProps {
|
|
|
5156
5156
|
isOpen?: boolean | null;
|
|
5157
5157
|
/**
|
|
5158
5158
|
* The text color of the tooltip
|
|
5159
|
-
* @default 'var(--text-emphasis-invert-primary-default)'
|
|
5159
|
+
* @default 'var(--text-emphasis-invert-primary-default, #ffffff)'
|
|
5160
5160
|
* */
|
|
5161
5161
|
color?: string;
|
|
5162
5162
|
/**
|
|
5163
5163
|
* The background color of the tooltip
|
|
5164
|
-
* @default 'var(--bg-subtle-invert-primary-default)'
|
|
5164
|
+
* @default 'var(--bg-subtle-invert-primary-default, #0b0c0e)'
|
|
5165
5165
|
* */
|
|
5166
5166
|
backgroundColor?: string;
|
|
5167
5167
|
/**
|
|
@@ -5896,9 +5896,11 @@ type OptionValue = string | number;
|
|
|
5896
5896
|
export type NSDropdownMenuBaseItemSubHeaderProps = {
|
|
5897
5897
|
type: NSDropdownMenuBaseItemType.SUB_HEADER;
|
|
5898
5898
|
title: string;
|
|
5899
|
+
scrollToOnOpen?: boolean;
|
|
5899
5900
|
};
|
|
5900
5901
|
export type NSDropdownMenuBaseItemDividerProps = {
|
|
5901
5902
|
type: NSDropdownMenuBaseItemType.DIVIDER;
|
|
5903
|
+
scrollToOnOpen?: boolean;
|
|
5902
5904
|
};
|
|
5903
5905
|
export type NSDropdownMenuBaseItemOptionProps = {
|
|
5904
5906
|
type: NSDropdownMenuBaseItemType.OPTION;
|
|
@@ -5908,6 +5910,7 @@ export type NSDropdownMenuBaseItemOptionProps = {
|
|
|
5908
5910
|
leftIcon?: grauityIconName;
|
|
5909
5911
|
rightIcon?: grauityIconName;
|
|
5910
5912
|
disabled?: boolean;
|
|
5913
|
+
scrollToOnOpen?: boolean;
|
|
5911
5914
|
};
|
|
5912
5915
|
export type NSDropdownMenuBaseItemProps = NSDropdownMenuBaseItemSubHeaderProps | NSDropdownMenuBaseItemDividerProps | NSDropdownMenuBaseItemOptionProps;
|
|
5913
5916
|
export interface NSDropdownMenuProps {
|
|
@@ -6609,5 +6612,200 @@ interface FormFieldProps {
|
|
|
6609
6612
|
* - Allows updating form data and handling individual field changes.
|
|
6610
6613
|
*/
|
|
6611
6614
|
export const useNSForm: ({ formConfig, rowStyles, whenToValidate, isMobileView, shouldFocusOnFirstError, shouldSubmitOnEnter, shouldShowSubmitButton, submitButtonProps, onSubmit, }: NSUseFormProps) => NSUseFormReturnProps;
|
|
6615
|
+
export enum TAB_SIZES_ENUM {
|
|
6616
|
+
SMALL = "small",
|
|
6617
|
+
MEDIUM = "medium",
|
|
6618
|
+
LARGE = "large",
|
|
6619
|
+
EXTRA_LARGE = "extra-large"
|
|
6620
|
+
}
|
|
6621
|
+
export enum TAB_ICON_POSITIONS_ENUM {
|
|
6622
|
+
LEFT = "left",
|
|
6623
|
+
RIGHT = "right",
|
|
6624
|
+
TOP = "top",
|
|
6625
|
+
BOTTOM = "bottom"
|
|
6626
|
+
}
|
|
6627
|
+
export enum TAB_VARIANT_ENUM {
|
|
6628
|
+
BORDERED = "bordered",
|
|
6629
|
+
ROUNDED = "rounded"
|
|
6630
|
+
}
|
|
6631
|
+
type TabIconPosition = `${TAB_ICON_POSITIONS_ENUM}`;
|
|
6632
|
+
type TabSize = `${TAB_SIZES_ENUM}`;
|
|
6633
|
+
type TabVariant = `${TAB_VARIANT_ENUM}`;
|
|
6634
|
+
export interface TabProps {
|
|
6635
|
+
/**
|
|
6636
|
+
* Unique identifier for the tab, useful for testing or tracking.
|
|
6637
|
+
* @default ''
|
|
6638
|
+
* @type {string}
|
|
6639
|
+
*/
|
|
6640
|
+
id?: string;
|
|
6641
|
+
/**
|
|
6642
|
+
* Size of the tab, can be 'small', 'medium', 'large' or 'extra-large'.
|
|
6643
|
+
* @default 'medium'
|
|
6644
|
+
*/
|
|
6645
|
+
size?: TabSize;
|
|
6646
|
+
/**
|
|
6647
|
+
* Additional CSS class names to apply to the tab.
|
|
6648
|
+
* @default ''
|
|
6649
|
+
*/
|
|
6650
|
+
className?: string;
|
|
6651
|
+
/**
|
|
6652
|
+
* Inline styles to apply to the tab.
|
|
6653
|
+
* @default {}
|
|
6654
|
+
*/
|
|
6655
|
+
style?: React.CSSProperties;
|
|
6656
|
+
/**
|
|
6657
|
+
* Content to display inside the tab.
|
|
6658
|
+
* Can be a string, number, or ReactNode.
|
|
6659
|
+
* @default null
|
|
6660
|
+
*/
|
|
6661
|
+
children?: React.ReactNode;
|
|
6662
|
+
/**
|
|
6663
|
+
* Subtext to display below the main content of the tab.
|
|
6664
|
+
* Can be a string or ReactNode.
|
|
6665
|
+
* @default ''
|
|
6666
|
+
*/
|
|
6667
|
+
subText?: React.ReactNode;
|
|
6668
|
+
/**
|
|
6669
|
+
* Icon to display in the tab.
|
|
6670
|
+
* Can be a string representing the icon name.
|
|
6671
|
+
* @default ''
|
|
6672
|
+
*/
|
|
6673
|
+
icon?: grauityIconName;
|
|
6674
|
+
/**
|
|
6675
|
+
* Size of the icon
|
|
6676
|
+
* @default '20'
|
|
6677
|
+
*/
|
|
6678
|
+
iconSize?: grauityIconSizeName;
|
|
6679
|
+
/**
|
|
6680
|
+
* Position of the icon relative to the text, can be 'left', 'right', 'top', or 'bottom'.
|
|
6681
|
+
* @default 'left'
|
|
6682
|
+
*/
|
|
6683
|
+
iconPosition?: TabIconPosition;
|
|
6684
|
+
/**
|
|
6685
|
+
* Variant of the tab, can be 'rounded', or 'bordered'.
|
|
6686
|
+
* @default 'bordered'
|
|
6687
|
+
*/
|
|
6688
|
+
variant?: TabVariant;
|
|
6689
|
+
/**
|
|
6690
|
+
* Whether the tab is currently active.
|
|
6691
|
+
* @default false
|
|
6692
|
+
*/
|
|
6693
|
+
isActive?: boolean;
|
|
6694
|
+
/**
|
|
6695
|
+
* Whether the tab is disabled.
|
|
6696
|
+
* @default false
|
|
6697
|
+
*/
|
|
6698
|
+
disabled?: boolean;
|
|
6699
|
+
/**
|
|
6700
|
+
* Click event handler for the tab.
|
|
6701
|
+
* @default () => {}
|
|
6702
|
+
*/
|
|
6703
|
+
onClick?: () => void;
|
|
6704
|
+
/**
|
|
6705
|
+
* Tab index for keyboard navigation.
|
|
6706
|
+
* @default 0
|
|
6707
|
+
*/
|
|
6708
|
+
tabIndex?: number;
|
|
6709
|
+
/**
|
|
6710
|
+
* ID of the tabpanel associated with the tab.
|
|
6711
|
+
* @default ''
|
|
6712
|
+
*/
|
|
6713
|
+
ariaControls?: string;
|
|
6714
|
+
}
|
|
6715
|
+
export function NSTab(props: TabProps): JSX.Element;
|
|
6716
|
+
export enum TAB_LIST_VARIANT_ENUM {
|
|
6717
|
+
BORDERED = "bordered",
|
|
6718
|
+
ROUNDED = "rounded"
|
|
6719
|
+
}
|
|
6720
|
+
export interface TabListProps {
|
|
6721
|
+
/**
|
|
6722
|
+
* Children elements to be rendered inside the TabList.
|
|
6723
|
+
*/
|
|
6724
|
+
children?: ReactNode;
|
|
6725
|
+
/**
|
|
6726
|
+
* Index of the currently active tab.
|
|
6727
|
+
*/
|
|
6728
|
+
activeIndex?: number;
|
|
6729
|
+
/**
|
|
6730
|
+
* Callback function to handle tab change.
|
|
6731
|
+
* @param index - Index of the tab that was clicked.
|
|
6732
|
+
*/
|
|
6733
|
+
onChange?: (index: number) => void;
|
|
6734
|
+
/**
|
|
6735
|
+
* Variant of the TabList, can be 'bordered' or 'rounded'.
|
|
6736
|
+
* @default 'bordered'
|
|
6737
|
+
*/
|
|
6738
|
+
variant?: TabVariant;
|
|
6739
|
+
/**
|
|
6740
|
+
* Additional CSS class names to apply to the TabList.
|
|
6741
|
+
*/
|
|
6742
|
+
className?: string;
|
|
6743
|
+
/**
|
|
6744
|
+
* ARIA label for the TabList.
|
|
6745
|
+
* @default 'Tab list'
|
|
6746
|
+
*/
|
|
6747
|
+
ariaLabel?: string;
|
|
6748
|
+
/**
|
|
6749
|
+
* Size of the tab, can be 'small', 'medium', 'large' or 'extra-large'.
|
|
6750
|
+
* @default 'medium'
|
|
6751
|
+
*/
|
|
6752
|
+
size?: TabSize;
|
|
6753
|
+
}
|
|
6754
|
+
export function NSTabList(props: TabListProps): JSX.Element;
|
|
6755
|
+
export interface DrawerProps {
|
|
6756
|
+
/**
|
|
6757
|
+
* The content to be displayed inside the Drawer.
|
|
6758
|
+
*/
|
|
6759
|
+
children?: React.ReactNode;
|
|
6760
|
+
/**
|
|
6761
|
+
* Determines whether the Drawer is open or closed.
|
|
6762
|
+
* @default false
|
|
6763
|
+
*/
|
|
6764
|
+
isOpen?: boolean;
|
|
6765
|
+
/**
|
|
6766
|
+
* Callback function to be called when the Drawer is requested to be closed.
|
|
6767
|
+
* @default () => {}
|
|
6768
|
+
*/
|
|
6769
|
+
onClose?: () => void;
|
|
6770
|
+
/**
|
|
6771
|
+
* If true, the Drawer will take up the full screen.
|
|
6772
|
+
* @default false
|
|
6773
|
+
*/
|
|
6774
|
+
fullScreen?: boolean;
|
|
6775
|
+
/**
|
|
6776
|
+
* If true, the Drawer will close when the backdrop is clicked.
|
|
6777
|
+
* @default true
|
|
6778
|
+
*/
|
|
6779
|
+
closeOnBackdropClick?: boolean;
|
|
6780
|
+
/**
|
|
6781
|
+
* The width of the Drawer.
|
|
6782
|
+
* @default '30%'
|
|
6783
|
+
*/
|
|
6784
|
+
width?: string;
|
|
6785
|
+
/**
|
|
6786
|
+
* The side from which the Drawer opens.
|
|
6787
|
+
* @default 'left'
|
|
6788
|
+
*/
|
|
6789
|
+
position?: 'left' | 'right';
|
|
6790
|
+
/**
|
|
6791
|
+
* Additional class name to be passed to the Drawer.
|
|
6792
|
+
*/
|
|
6793
|
+
className?: string;
|
|
6794
|
+
/**
|
|
6795
|
+
* Should focus on the first element in the drawer
|
|
6796
|
+
* @default true
|
|
6797
|
+
*/
|
|
6798
|
+
shouldFocusOnFirstElement?: boolean;
|
|
6799
|
+
/**
|
|
6800
|
+
* Flag to determine if the background scroll should be disabled.
|
|
6801
|
+
* @default true
|
|
6802
|
+
*/
|
|
6803
|
+
shouldDisableScroll?: boolean;
|
|
6804
|
+
/**
|
|
6805
|
+
* Custom styles to override drawer styling
|
|
6806
|
+
*/
|
|
6807
|
+
styles?: React.CSSProperties;
|
|
6808
|
+
}
|
|
6809
|
+
export const NSDrawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
|
|
6612
6810
|
|
|
6613
6811
|
//# sourceMappingURL=index.d.ts.map
|