@redsift/design-system 11.6.0-muiv5-alpha.6 → 11.6.0-muiv5-alpha.8

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.
Files changed (149) hide show
  1. package/index.d.ts +3026 -97
  2. package/package.json +2 -2
  3. package/_internal/Alert.d2.ts +0 -54
  4. package/_internal/AppBar.d.ts +0 -37
  5. package/_internal/AppContainer.d.ts +0 -96
  6. package/_internal/AppContent.d.ts +0 -25
  7. package/_internal/Badge.d2.ts +0 -9
  8. package/_internal/BreadcrumbItem.d.ts +0 -9
  9. package/_internal/Breadcrumbs.d2.ts +0 -29
  10. package/_internal/Button.d2.ts +0 -30
  11. package/_internal/ButtonGroup.d.ts +0 -41
  12. package/_internal/ButtonLink.d.ts +0 -28
  13. package/_internal/Card.d2.ts +0 -35
  14. package/_internal/CardActions.d.ts +0 -9
  15. package/_internal/CardBody.d.ts +0 -9
  16. package/_internal/CardHeader.d.ts +0 -9
  17. package/_internal/Checkbox.d2.ts +0 -68
  18. package/_internal/CheckboxGroup.d.ts +0 -10
  19. package/_internal/ConditionalWrapper.d.ts +0 -14
  20. package/_internal/DetailedCard.d.ts +0 -52
  21. package/_internal/DetailedCardCollapsibleSectionItems.d.ts +0 -9
  22. package/_internal/DetailedCardHeader.d.ts +0 -9
  23. package/_internal/DetailedCardSection.d.ts +0 -9
  24. package/_internal/DetailedCardSectionItem.d.ts +0 -9
  25. package/_internal/Flexbox.d2.ts +0 -30
  26. package/_internal/Grid.d2.ts +0 -32
  27. package/_internal/GridItem.d.ts +0 -9
  28. package/_internal/Heading.d2.ts +0 -9
  29. package/_internal/Icon.d2.ts +0 -10
  30. package/_internal/IconButton.d.ts +0 -12
  31. package/_internal/IconButtonLink.d.ts +0 -28
  32. package/_internal/Item.d2.ts +0 -82
  33. package/_internal/Link.d2.ts +0 -26
  34. package/_internal/LinkButton.d.ts +0 -23
  35. package/_internal/Number.d2.ts +0 -69
  36. package/_internal/NumberField.d.ts +0 -80
  37. package/_internal/Pill.d2.ts +0 -9
  38. package/_internal/ProgressBar.d.ts +0 -26
  39. package/_internal/Radio.d2.ts +0 -66
  40. package/_internal/RadioGroup.d.ts +0 -10
  41. package/_internal/Shield.d2.ts +0 -9
  42. package/_internal/SideNavigationMenu.d.ts +0 -9
  43. package/_internal/SideNavigationMenuBar.d.ts +0 -9
  44. package/_internal/SideNavigationMenuItem.d.ts +0 -9
  45. package/_internal/Skeleton.d2.ts +0 -15
  46. package/_internal/SkeletonCircle.d.ts +0 -9
  47. package/_internal/SkeletonText.d.ts +0 -9
  48. package/_internal/Spinner.d2.ts +0 -43
  49. package/_internal/Switch.d2.ts +0 -66
  50. package/_internal/SwitchGroup.d.ts +0 -10
  51. package/_internal/Text.d2.ts +0 -9
  52. package/_internal/TextArea.d.ts +0 -34
  53. package/_internal/TextField.d.ts +0 -29
  54. package/_internal/alert.d.ts +0 -5
  55. package/_internal/app-bar.d.ts +0 -8
  56. package/_internal/app-container.d.ts +0 -9
  57. package/_internal/app-content.d.ts +0 -5
  58. package/_internal/app-side-panel.d.ts +0 -11
  59. package/_internal/badge.d.ts +0 -6
  60. package/_internal/breadcrumb-item.d.ts +0 -5
  61. package/_internal/breadcrumbs.d.ts +0 -6
  62. package/_internal/button-group.d.ts +0 -5
  63. package/_internal/button-link.d.ts +0 -8
  64. package/_internal/button.d.ts +0 -8
  65. package/_internal/card-actions.d.ts +0 -5
  66. package/_internal/card-body.d.ts +0 -5
  67. package/_internal/card-header.d.ts +0 -9
  68. package/_internal/card.d.ts +0 -11
  69. package/_internal/checkbox-group.d.ts +0 -6
  70. package/_internal/checkbox.d.ts +0 -6
  71. package/_internal/colors.d.ts +0 -102
  72. package/_internal/conditional-wrapper.d.ts +0 -2
  73. package/_internal/detailed-card-collapsible-section-items.d.ts +0 -4
  74. package/_internal/detailed-card-header.d.ts +0 -8
  75. package/_internal/detailed-card-section-item.d.ts +0 -11
  76. package/_internal/detailed-card-section.d.ts +0 -7
  77. package/_internal/detailed-card.d.ts +0 -16
  78. package/_internal/flexbox.d.ts +0 -5
  79. package/_internal/focus-within-group.d.ts +0 -3
  80. package/_internal/fonts.d.ts +0 -12
  81. package/_internal/gradient-border.d.ts +0 -19
  82. package/_internal/grid-item.d.ts +0 -5
  83. package/_internal/grid.d.ts +0 -6
  84. package/_internal/heading.d.ts +0 -7
  85. package/_internal/helpers.d.ts +0 -23
  86. package/_internal/icon-button-link.d.ts +0 -8
  87. package/_internal/icon-button.d.ts +0 -7
  88. package/_internal/icon.d.ts +0 -6
  89. package/_internal/item.d.ts +0 -8
  90. package/_internal/link-button.d.ts +0 -8
  91. package/_internal/link.d.ts +0 -8
  92. package/_internal/listbox.d.ts +0 -6
  93. package/_internal/number-field.d.ts +0 -9
  94. package/_internal/number.d.ts +0 -7
  95. package/_internal/pill.d.ts +0 -6
  96. package/_internal/progress-bar.d.ts +0 -5
  97. package/_internal/radio-group.d.ts +0 -6
  98. package/_internal/radio.d.ts +0 -6
  99. package/_internal/shared.d.ts +0 -5
  100. package/_internal/shield.d.ts +0 -6
  101. package/_internal/side-navigation-menu-bar.d.ts +0 -9
  102. package/_internal/side-navigation-menu-item.d.ts +0 -8
  103. package/_internal/side-navigation-menu.d.ts +0 -8
  104. package/_internal/skeleton-circle.d.ts +0 -7
  105. package/_internal/skeleton-text.d.ts +0 -7
  106. package/_internal/skeleton.d.ts +0 -8
  107. package/_internal/spinner.d.ts +0 -5
  108. package/_internal/styles.d.ts +0 -17
  109. package/_internal/styles.d2.ts +0 -283
  110. package/_internal/switch-group.d.ts +0 -6
  111. package/_internal/switch.d.ts +0 -6
  112. package/_internal/text-area.d.ts +0 -9
  113. package/_internal/text-field.d.ts +0 -10
  114. package/_internal/text.d.ts +0 -7
  115. package/_internal/theme.d.ts +0 -4
  116. package/_internal/types.d.ts +0 -39
  117. package/_internal/types.d10.ts +0 -20
  118. package/_internal/types.d11.ts +0 -27
  119. package/_internal/types.d12.ts +0 -35
  120. package/_internal/types.d13.ts +0 -143
  121. package/_internal/types.d14.ts +0 -11
  122. package/_internal/types.d15.ts +0 -62
  123. package/_internal/types.d16.ts +0 -56
  124. package/_internal/types.d17.ts +0 -57
  125. package/_internal/types.d18.ts +0 -40
  126. package/_internal/types.d19.ts +0 -101
  127. package/_internal/types.d2.ts +0 -37
  128. package/_internal/types.d20.ts +0 -47
  129. package/_internal/types.d21.ts +0 -68
  130. package/_internal/types.d22.ts +0 -52
  131. package/_internal/types.d23.ts +0 -174
  132. package/_internal/types.d24.ts +0 -18
  133. package/_internal/types.d25.ts +0 -12
  134. package/_internal/types.d26.ts +0 -36
  135. package/_internal/types.d27.ts +0 -72
  136. package/_internal/types.d28.ts +0 -73
  137. package/_internal/types.d29.ts +0 -99
  138. package/_internal/types.d3.ts +0 -23
  139. package/_internal/types.d4.ts +0 -67
  140. package/_internal/types.d5.ts +0 -11
  141. package/_internal/types.d6.ts +0 -11
  142. package/_internal/types.d7.ts +0 -28
  143. package/_internal/types.d8.ts +0 -72
  144. package/_internal/types.d9.ts +0 -16
  145. package/_internal/useAppSidePanel.d.ts +0 -12
  146. package/_internal/useFocusOnList.d.ts +0 -83
  147. package/_internal/useListboxItem.d.ts +0 -32
  148. package/_internal/useSideNavigationMenuBar.d.ts +0 -9
  149. package/_internal/useTheme.d.ts +0 -13
@@ -1,35 +0,0 @@
1
- import { ComponentProps, ReactElement } from 'react';
2
- import { a as PillProps } from './types.d20.ts';
3
- import { S as ShieldVariant } from './types.d22.ts';
4
- import { b as IconProps } from './types.d17.ts';
5
- import { b as TextProps } from './types.d28.ts';
6
-
7
- /**
8
- * Component props.
9
- */
10
- interface DetailedCardSectionItemProps extends ComponentProps<'div'> {
11
- /** Description */
12
- description?: string | ReactElement;
13
- /** TextProps to forward to the description. */
14
- descriptionProps?: Omit<TextProps, 'ref'>;
15
- /**
16
- * Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
17
- * Can also be a ReactElement.
18
- */
19
- icon?: IconProps['icon'];
20
- /** Props to pass to the Icon component. */
21
- iconProps?: Omit<IconProps, 'ref' | 'icon'>;
22
- /** Whether the section item can be collapsed or not. */
23
- isCollapsible?: boolean;
24
- /** Whether the card is loading or not. */
25
- isLoading?: boolean;
26
- /** Text to display inside a Pill. */
27
- pill?: string;
28
- /** Props to pass to the Pill component. */
29
- pillProps?: Omit<PillProps, 'ref'>;
30
- /** Shield to display in place of the icon. */
31
- shield?: ShieldVariant;
32
- }
33
- type StyledDetailedCardSectionItemProps = DetailedCardSectionItemProps & {};
34
-
35
- export { DetailedCardSectionItemProps as D, StyledDetailedCardSectionItemProps as S };
@@ -1,143 +0,0 @@
1
- import { ComponentProps } from 'react';
2
-
3
- declare enum EventKey {
4
- ArrowLeft = "ArrowLeft",
5
- ArrowRight = "ArrowRight",
6
- ArrowUp = "ArrowUp",
7
- ArrowDown = "ArrowDown",
8
- Home = "Home",
9
- End = "End",
10
- Enter = "Enter"
11
- }
12
- type KeyDirection = 'horizontal' | 'vertical' | 'both';
13
- declare enum Navigation {
14
- PREVIOUS = "PREVIOUS",
15
- NEXT = "NEXT",
16
- VERY_FIRST = "VERY_FIRST",
17
- VERY_LAST = "VERY_LAST",
18
- PREVIOUS_ROW = "PREVIOUS_ROW",
19
- NEXT_ROW = "NEXT_ROW",
20
- FIRST_IN_ROW = "FIRST_IN_ROW",
21
- LAST_IN_ROW = "LAST_IN_ROW"
22
- }
23
- type TabStop = Readonly<{
24
- id: string;
25
- domElementRef: React.RefObject<Element>;
26
- isDisabled: boolean;
27
- rowIndex: number | null;
28
- value: string;
29
- }>;
30
- type RowStartMap = Map<Exclude<TabStop['rowIndex'], null>, number>;
31
- type FocusWithinGroupState = Readonly<{
32
- selectedId: string | null;
33
- allowFocusing: boolean;
34
- tabStops: readonly TabStop[];
35
- direction: KeyDirection;
36
- focusOnClick: boolean;
37
- focusOnInit: boolean;
38
- loopAround: boolean;
39
- rowStartMap: RowStartMap | null;
40
- focusType: 'roving-tabindex' | 'virtual-focus';
41
- listRole: 'listbox' | 'menu';
42
- activedescendant?: [string, string];
43
- filter?: {
44
- value: string;
45
- type: 'startsWith' | 'contains' | 'endsWith';
46
- caseSensitive?: boolean;
47
- };
48
- delayedAction?: BaseFocusWithinGroupAction;
49
- maxOptionsLength?: number;
50
- }>;
51
- type FocusWithinGroupOptions = Partial<Pick<FocusWithinGroupState, 'direction' | 'focusOnClick' | 'focusOnInit' | 'loopAround' | 'focusType' | 'listRole' | 'activedescendant' | 'maxOptionsLength'>>;
52
- declare enum FocusWithinGroupActionType {
53
- REGISTER_TAB_STOP = "REGISTER_TAB_STOP",
54
- UNREGISTER_TAB_STOP = "UNREGISTER_TAB_STOP",
55
- KEY_DOWN_ON_ITEM = "KEY_DOWN_ON_ITEM",
56
- CLICK_ON_ITEM = "CLICK_ON_ITEM",
57
- KEY_DOWN_ON_LIST = "KEY_DOWN_ON_LIST",
58
- FOCUS_ON_LIST = "FOCUS_ON_LIST",
59
- BLUR_ON_LIST = "BLUR_ON_LIST",
60
- TAB_STOP_UPDATED = "TAB_STOP_UPDATED",
61
- OPTIONS_UPDATED = "OPTIONS_UPDATED",
62
- FILTER_LIST = "FILTER_LIST",
63
- DELAY_ACTION = "DELAY_ACTION"
64
- }
65
- type BaseFocusWithinGroupAction = {
66
- type: FocusWithinGroupActionType.REGISTER_TAB_STOP;
67
- payload: TabStop;
68
- } | {
69
- type: FocusWithinGroupActionType.UNREGISTER_TAB_STOP;
70
- payload: {
71
- id: TabStop['id'];
72
- };
73
- } | {
74
- type: FocusWithinGroupActionType.TAB_STOP_UPDATED;
75
- payload: {
76
- id: TabStop['id'];
77
- rowIndex: TabStop['rowIndex'];
78
- isDisabled: TabStop['isDisabled'];
79
- value: string;
80
- };
81
- } | {
82
- type: FocusWithinGroupActionType.KEY_DOWN_ON_ITEM;
83
- payload: {
84
- id: TabStop['id'];
85
- key: EventKey;
86
- ctrlKey: boolean;
87
- };
88
- } | {
89
- type: FocusWithinGroupActionType.CLICK_ON_ITEM;
90
- payload: {
91
- id: TabStop['id'];
92
- };
93
- } | {
94
- type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST;
95
- payload: {
96
- key: EventKey;
97
- ctrlKey: boolean;
98
- };
99
- } | {
100
- type: FocusWithinGroupActionType.FOCUS_ON_LIST;
101
- payload: {
102
- id: TabStop['id'];
103
- filter?: FocusWithinGroupState['filter'];
104
- };
105
- } | {
106
- type: FocusWithinGroupActionType.BLUR_ON_LIST;
107
- payload: {};
108
- } | {
109
- type: FocusWithinGroupActionType.OPTIONS_UPDATED;
110
- payload: FocusWithinGroupOptions;
111
- } | {
112
- type: FocusWithinGroupActionType.FILTER_LIST;
113
- payload: {
114
- filter: FocusWithinGroupState['filter'];
115
- };
116
- };
117
- type FocusWithinGroupAction = BaseFocusWithinGroupAction | {
118
- type: FocusWithinGroupActionType.DELAY_ACTION;
119
- payload: BaseFocusWithinGroupAction;
120
- };
121
- type UseFocusWithinGroupProps = {
122
- tabIndex?: number;
123
- isFocused: boolean;
124
- handleKeyDown: (event: React.KeyboardEvent) => void;
125
- handleClick: () => void;
126
- };
127
- type UseFocusGroupProps = {
128
- activedescendant: [string, string] | undefined;
129
- handleKeyDown: (event: React.KeyboardEvent) => void;
130
- handleFocus: () => void;
131
- handleBlur: () => void;
132
- };
133
- type FocusWithinGroupContextProps = {
134
- state: FocusWithinGroupState;
135
- dispatch: React.Dispatch<FocusWithinGroupAction>;
136
- };
137
- /**
138
- * Component props.
139
- */
140
- interface FocusWithinGroupProps extends ComponentProps<'div'>, FocusWithinGroupOptions {
141
- }
142
-
143
- export { BaseFocusWithinGroupAction as B, EventKey as E, FocusWithinGroupState as F, KeyDirection as K, Navigation as N, RowStartMap as R, TabStop as T, UseFocusWithinGroupProps as U, FocusWithinGroupOptions as a, FocusWithinGroupActionType as b, FocusWithinGroupAction as c, UseFocusGroupProps as d, FocusWithinGroupContextProps as e, FocusWithinGroupProps as f };
@@ -1,11 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import { h as StylingProps, I as InternalSpacingProps, B as BorderProps } from './styles.d2.ts';
3
-
4
- /**
5
- * Component props.
6
- */
7
- interface GridItemProps extends ComponentProps<'div'>, StylingProps, InternalSpacingProps, BorderProps {
8
- }
9
- type StyledGridItemProps = GridItemProps;
10
-
11
- export { GridItemProps as G, StyledGridItemProps as S };
@@ -1,62 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import { F as FontFamily } from './fonts.js';
3
- import { V as ValueOf } from './helpers.js';
4
- import { h as StylingProps } from './styles.d2.ts';
5
- import { N as NotificationsColorPalette, d as NeutralColorPalette, T as Theme } from './colors.js';
6
-
7
- /**
8
- * Component variant.
9
- */
10
- declare const HeadingVariant: {
11
- readonly h1: "h1";
12
- readonly h2: "h2";
13
- readonly h3: "h3";
14
- readonly h4: "h4";
15
- readonly h5: "h5";
16
- readonly body: "body";
17
- };
18
- type HeadingVariant = ValueOf<typeof HeadingVariant>;
19
- declare const HeadingComponent: {
20
- readonly h1: "h1";
21
- readonly h2: "h2";
22
- readonly h3: "h3";
23
- readonly h4: "h4";
24
- readonly h5: "h5";
25
- readonly span: "span";
26
- };
27
- type HeadingComponent = ValueOf<typeof HeadingComponent>;
28
- /**
29
- * Component props.
30
- */
31
- interface HeadingProps extends ComponentProps<'span'>, StylingProps {
32
- /** The actual component rendered in the DOM. */
33
- as: HeadingComponent;
34
- /** Color variant. Either from color palette or hex or rgb strings. */
35
- color?: NotificationsColorPalette | NeutralColorPalette | 'radar' | (string & {});
36
- /** Font family. */
37
- fontFamily?: FontFamily;
38
- /** Font size. */
39
- fontSize?: string;
40
- /** Font weight. */
41
- fontWeight?: string;
42
- /** Line height. */
43
- lineHeight?: string;
44
- /** Whether the text will truncate with a text overflow ellipsis or wrap. */
45
- noWrap?: boolean;
46
- /** Theme. */
47
- theme?: Theme;
48
- /** The component the Heading will look like. */
49
- variant?: HeadingVariant;
50
- }
51
- type StyledHeadingProps = Omit<HeadingProps, 'color' | 'noWrap'> & {
52
- $color: HeadingProps['color'];
53
- $fontFamily?: HeadingProps['fontFamily'];
54
- $fontSize: HeadingProps['fontSize'];
55
- $fontWeight: HeadingProps['fontWeight'];
56
- $lineHeight: HeadingProps['lineHeight'];
57
- $noWrap: HeadingProps['noWrap'];
58
- $theme: HeadingProps['theme'];
59
- $variant: HeadingProps['variant'];
60
- };
61
-
62
- export { HeadingVariant as H, StyledHeadingProps as S, HeadingComponent as a, HeadingProps as b };
@@ -1,56 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import { b as IconProps } from './types.d17.ts';
3
- import { B as ButtonsColorPalette, T as Theme } from './colors.js';
4
- import { V as ValueOf } from './helpers.js';
5
- import { h as StylingProps } from './styles.d2.ts';
6
-
7
- /**
8
- * Component variant.
9
- */
10
- declare const IconButtonVariant: {
11
- readonly primary: "primary";
12
- readonly secondary: "secondary";
13
- readonly unstyled: "unstyled";
14
- };
15
- type IconButtonVariant = ValueOf<typeof IconButtonVariant>;
16
- /**
17
- * Component color.
18
- */
19
- type IconButtonColor = ButtonsColorPalette;
20
- /**
21
- * Component props.
22
- */
23
- interface IconButtonProps extends ComponentProps<'button'>, StylingProps {
24
- /** Color variant. */
25
- color?: IconButtonColor;
26
- /**
27
- * Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
28
- * Can also be a ReactElement.
29
- */
30
- icon: IconProps['icon'];
31
- /** Props to forward to the icon. */
32
- iconProps?: Omit<IconProps, 'ref' | 'icon'>;
33
- /** Whether the component is active or not. */
34
- isActive?: boolean;
35
- /** Whether the component is disabled or not. */
36
- isDisabled?: boolean;
37
- /** Whether the component is hovered or not. */
38
- isHovered?: boolean;
39
- /** Whether the component is in a loading state or not. */
40
- isLoading?: boolean;
41
- /** Theme. */
42
- theme?: Theme;
43
- /** Button variant. */
44
- variant?: IconButtonVariant;
45
- }
46
- type StyledIconButtonProps = Omit<IconButtonProps, 'icon'> & {
47
- $color: IconButtonProps['color'];
48
- $isActive: IconButtonProps['isActive'];
49
- $isDisabled: IconButtonProps['isDisabled'];
50
- $isHovered: IconButtonProps['isHovered'];
51
- $isLoading: IconButtonProps['isLoading'];
52
- $theme: IconButtonProps['theme'];
53
- $variant: IconButtonProps['variant'];
54
- };
55
-
56
- export { IconButtonVariant as I, StyledIconButtonProps as S, IconButtonColor as a, IconButtonProps as b };
@@ -1,57 +0,0 @@
1
- import { ComponentProps, ReactElement } from 'react';
2
- import { L as LayoutProps, S as SpacingProps, P as PositioningProps } from './styles.d2.ts';
3
- import { N as NotificationsColorPalette, b as ProductColorPalette, T as Theme } from './colors.js';
4
- import { V as ValueOf } from './helpers.js';
5
-
6
- /**
7
- * Component size.
8
- */
9
- declare const IconSize: {
10
- readonly xsmall: "xsmall";
11
- readonly small: "small";
12
- readonly medium: "medium";
13
- readonly large: "large";
14
- readonly xlarge: "xlarge";
15
- readonly xxlarge: "xxlarge";
16
- };
17
- type IconSize = ValueOf<typeof IconSize>;
18
- type IconDimensions = {
19
- width?: number;
20
- height?: number;
21
- fontSize?: number;
22
- lineHeight?: number;
23
- };
24
- /**
25
- * Component props.
26
- */
27
- interface IconProps extends ComponentProps<'span'>, LayoutProps, SpacingProps, PositioningProps {
28
- /** Indicates whether the element is exposed to an accessibility API. */
29
- 'aria-hidden'?: boolean | 'false' | 'true';
30
- /** A screen reader only label for the Icon. */
31
- 'aria-label'?: string;
32
- /** Color variant. Either from color palette or hex or rgb strings. */
33
- color?: NotificationsColorPalette | ProductColorPalette | (string & {});
34
- /** Whether the icon has a badge attached to it. */
35
- badge?: ReactElement;
36
- /**
37
- * Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
38
- * Can also be a ReactElement.
39
- */
40
- icon: string | string[] | ReactElement;
41
- /** Icon size. */
42
- size?: IconSize | IconDimensions;
43
- /** Additional properties to forward to the SVG tag. */
44
- svgProps?: ComponentProps<'svg'>;
45
- /** Theme. */
46
- theme?: Theme;
47
- }
48
- type StyledIconProps = Omit<IconProps, 'color' | 'size' | 'icon' | 'svgProps'> & {
49
- $color: IconProps['color'];
50
- $width: IconDimensions['width'];
51
- $height: IconDimensions['height'];
52
- $fontSize: IconDimensions['fontSize'];
53
- $lineHeight: IconDimensions['lineHeight'];
54
- $theme: IconProps['theme'];
55
- };
56
-
57
- export { IconSize as I, StyledIconProps as S, IconDimensions as a, IconProps as b };
@@ -1,40 +0,0 @@
1
- import { ComponentProps, ElementType } from 'react';
2
- import { b as IconProps } from './types.d17.ts';
3
- import { N as NotificationsColorPalette, d as NeutralColorPalette, T as Theme } from './colors.js';
4
- import { h as StylingProps } from './styles.d2.ts';
5
-
6
- /**
7
- * Component props.
8
- */
9
- interface LinkProps extends ComponentProps<'a'>, StylingProps {
10
- /** Prop to pass a custom react component instead of a simple HTML anchor (useful for Nextjs or React Router Link component). */
11
- as?: 'a' | ElementType;
12
- /** Color variant. Either from color palette or hex or rgb strings. */
13
- color?: NotificationsColorPalette | NeutralColorPalette | 'radar' | (string & {});
14
- /** Whether the component is disabled or not. */
15
- isDisabled?: boolean;
16
- /**
17
- * Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
18
- * Can also be a ReactElement.
19
- */
20
- leftIcon?: IconProps['icon'];
21
- /** Props to add to the left icon. */
22
- leftIconProps?: Omit<IconProps, 'icon' | 'ref'>;
23
- /**
24
- * Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
25
- * Can also be a ReactElement.
26
- */
27
- rightIcon?: IconProps['icon'];
28
- /** Props to add to the right icon. */
29
- rightIconProps?: Omit<IconProps, 'icon' | 'ref'>;
30
- /** Theme. */
31
- theme?: Theme;
32
- }
33
- type StyledLinkProps = Omit<LinkProps, 'isDisabled'> & {
34
- $isDisabled: LinkProps['isDisabled'];
35
- $color: LinkProps['color'];
36
- $theme: LinkProps['theme'];
37
- $hasIcons: boolean;
38
- };
39
-
40
- export { LinkProps as L, StyledLinkProps as S };
@@ -1,101 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import { U as UseFocusWithinGroupProps, a as FocusWithinGroupOptions } from './types.d13.ts';
3
- import { V as ValueOf } from './helpers.js';
4
- import { C as ContainerProps } from './styles.d2.ts';
5
-
6
- /**
7
- * Component variant.
8
- */
9
- declare const ListboxSelectionMode: {
10
- readonly single: "single";
11
- readonly multiple: "multiple";
12
- };
13
- type ListboxSelectionMode = ValueOf<typeof ListboxSelectionMode>;
14
- /**
15
- * Context props.
16
- */
17
- type ListboxState = Readonly<{
18
- isDisabled: boolean;
19
- isReadOnly: boolean;
20
- selectedValues: string[];
21
- selectionMode: ListboxSelectionMode;
22
- activedescendant?: [string, string];
23
- }>;
24
- declare enum ListboxActionType {
25
- TOGGLE = "TOGGLE",
26
- SET = "SET",
27
- UPDATE_OPTIONS = "UPDATE_OPTIONS"
28
- }
29
- type ListboxAction = {
30
- type: ListboxActionType.TOGGLE;
31
- payload: {
32
- value: string;
33
- activedescendant?: [string, string];
34
- };
35
- } | {
36
- type: ListboxActionType.SET;
37
- payload: {
38
- values: string[];
39
- activedescendant?: [string, string];
40
- };
41
- } | {
42
- type: ListboxActionType.UPDATE_OPTIONS;
43
- payload: {
44
- isDisabled: boolean;
45
- };
46
- };
47
- type UseListboxItemProps = UseFocusWithinGroupProps & {
48
- isSelected?: boolean;
49
- isDisabled?: boolean;
50
- };
51
- type ListboxContextProps = {
52
- state: ListboxState;
53
- dispatch: React.Dispatch<ListboxAction>;
54
- };
55
- /**
56
- * Component variant.
57
- */
58
- declare const ListboxVariant: {
59
- readonly standalone: "standalone";
60
- readonly unstyled: "unstyled";
61
- };
62
- type ListboxVariant = ValueOf<typeof ListboxVariant>;
63
- /**
64
- * Component props.
65
- */
66
- interface ListboxProps extends Omit<ComponentProps<'div'>, 'onChange'>, ContainerProps, FocusWithinGroupOptions {
67
- /**
68
- * Default selected values.
69
- * Used for uncontrolled version.
70
- */
71
- defaultValues?: string[];
72
- /** Whether the component is disabled or not. */
73
- isDisabled?: boolean;
74
- /** Whether the component is invalid or not. */
75
- isInvalid?: boolean;
76
- /** Whether the component is read only or not. */
77
- isReadOnly?: boolean;
78
- /** Whether the component is required or not. */
79
- isRequired?: boolean;
80
- /** Label of the switch group. */
81
- label?: string;
82
- /** Method to handle component change. */
83
- onChange?(values: string[]): void;
84
- /** Whether the listbox allows multiple selections or single ones. */
85
- selectionMode?: 'single' | 'multiple';
86
- /**
87
- * Currently selected values.
88
- * Used for controlled version.
89
- */
90
- values?: string[];
91
- /** Whether the Listbox is used as standalone or is unstyled within another component. */
92
- variant?: ListboxVariant;
93
- }
94
- type StyledListboxProps = Omit<ListboxProps, 'onChange'> & {
95
- $isDisabled: ListboxProps['isDisabled'];
96
- $isInvalid: ListboxProps['isInvalid'];
97
- $isReadOnly: ListboxProps['isReadOnly'];
98
- $variant: ListboxProps['variant'];
99
- };
100
-
101
- export { ListboxSelectionMode as L, StyledListboxProps as S, UseListboxItemProps as U, ListboxState as a, ListboxActionType as b, ListboxAction as c, ListboxContextProps as d, ListboxVariant as e, ListboxProps as f };
@@ -1,37 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import { N as NotificationsColorPalette, c as PresentationColorPalette, T as Theme } from './colors.js';
3
- import { V as ValueOf } from './helpers.js';
4
- import { L as LayoutProps, S as SpacingProps, P as PositioningProps } from './styles.d2.ts';
5
-
6
- /**
7
- * Component variant.
8
- */
9
- declare const BadgeVariant: {
10
- readonly dot: "dot";
11
- readonly standard: "standard";
12
- };
13
- type BadgeVariant = ValueOf<typeof BadgeVariant>;
14
- /**
15
- * Component props.
16
- */
17
- interface BadgeProps extends ComponentProps<'div'>, LayoutProps, SpacingProps, PositioningProps {
18
- /** Whether the badge should automatically break content. */
19
- autoBreak?: boolean;
20
- /** Color variant. The product colors are available but should only be used to display the Badge in the color of another product. To display a Badge with a color of the current product, use `default`. */
21
- color?: NotificationsColorPalette | PresentationColorPalette;
22
- /** Whether the Badge has its colors reversed or not. */
23
- isReversed?: boolean;
24
- /** Theme. */
25
- theme?: Theme;
26
- /** Badge variant. */
27
- variant?: BadgeVariant;
28
- }
29
- type StyledBadgeProps = Omit<BadgeProps, 'color' | 'variant' | 'isReversed' | 'autoBreak'> & {
30
- $autoBreak: BadgeProps['autoBreak'];
31
- $color: BadgeProps['color'];
32
- $isReversed: BadgeProps['isReversed'];
33
- $variant: BadgeProps['variant'];
34
- $theme: BadgeProps['theme'];
35
- };
36
-
37
- export { BadgeVariant as B, StyledBadgeProps as S, BadgeProps as a };
@@ -1,47 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import { V as ValueOf } from './helpers.js';
3
- import { h as StylingProps } from './styles.d2.ts';
4
- import { c as PresentationColorPalette, d as NeutralColorPalette, T as Theme } from './colors.js';
5
-
6
- /**
7
- * Component size.
8
- */
9
- declare const PillSize: {
10
- readonly small: "small";
11
- readonly large: "large";
12
- readonly xlarge: "xlarge";
13
- };
14
- type PillSize = ValueOf<typeof PillSize>;
15
- /**
16
- * Component props.
17
- */
18
- interface PillProps extends ComponentProps<'div'>, StylingProps {
19
- /** Whether the badge should automatically break content. */
20
- autoBreak?: boolean;
21
- /** Color to use for border. */
22
- borderColor?: string;
23
- /** Color variant. The product colors are available but should only be used to display the Pill in the color of another product. To display a Pill with a color of the current product, use `default`. */
24
- color?: PresentationColorPalette | NeutralColorPalette | 'error' | 'warning' | 'success' | 'error-dark' | 'warning-dark' | 'success-dark' | (string & {});
25
- /** Color to use when disabled. */
26
- disabledColor?: string;
27
- /** Color to use on hover. */
28
- hoverColor?: string;
29
- /** Whether the Pill is disabled or not. */
30
- isDisabled?: boolean;
31
- /** Size of the Pill. */
32
- size?: PillSize;
33
- /** Theme. */
34
- theme?: Theme;
35
- }
36
- type StyledPillProps = Omit<PillProps, 'color' | 'autoBreak'> & {
37
- $autoBreak: PillProps['autoBreak'];
38
- $borderColor: PillProps['borderColor'];
39
- $color: PillProps['color'];
40
- $disabledColor: PillProps['disabledColor'];
41
- $hoverColor: PillProps['hoverColor'];
42
- $isDisabled: PillProps['isDisabled'];
43
- $size: PillProps['size'];
44
- $theme: PillProps['theme'];
45
- };
46
-
47
- export { PillSize as P, StyledPillProps as S, PillProps as a };
@@ -1,68 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import { V as ValueOf } from './helpers.js';
3
- import { h as StylingProps } from './styles.d2.ts';
4
- import { T as Theme } from './colors.js';
5
-
6
- /**
7
- * Context props.
8
- */
9
- type RadioGroupState = {
10
- /** Whether the radio group is disabled or not. */
11
- readonly isDisabled: boolean;
12
- /** Whether the radio group is read only or not. */
13
- readonly isReadOnly: boolean;
14
- /** Sets the selected value. */
15
- setValue(value: string): void;
16
- /** Current selected value. */
17
- readonly value: string;
18
- };
19
- /**
20
- * Component orientation.
21
- */
22
- declare const RadioGroupOrientation: {
23
- readonly horizontal: "horizontal";
24
- readonly vertical: "vertical";
25
- };
26
- type RadioGroupOrientation = ValueOf<typeof RadioGroupOrientation>;
27
- /**
28
- * Component props.
29
- */
30
- interface RadioGroupProps extends Omit<ComponentProps<'div'>, 'onChange'>, StylingProps {
31
- /**
32
- * Default selected value.
33
- * Used for uncontrolled version.
34
- */
35
- defaultValue?: string;
36
- /** Description of the radio group. */
37
- description?: string;
38
- /** Whether the component is disabled or not. */
39
- isDisabled?: boolean;
40
- /** Whether the component is invalid or not. */
41
- isInvalid?: boolean;
42
- /** Whether the component is read only or not. */
43
- isReadOnly?: boolean;
44
- /** Whether the component is required or not. */
45
- isRequired?: boolean;
46
- /** Label of the radio group. */
47
- label?: string;
48
- /** Method to handle component change. */
49
- onChange?(values: string): void;
50
- /** Method to handle component change. */
51
- orientation?: RadioGroupOrientation;
52
- /** Theme. */
53
- theme?: Theme;
54
- /**
55
- * Currently selected value.
56
- * Used for controlled version.
57
- */
58
- value?: string;
59
- }
60
- type StyledRadioGroupProps = Omit<RadioGroupProps, 'isDisabled' | 'isInvalid' | 'isReadOnly' | 'orientation' | 'isRequired'> & {
61
- $isDisabled: RadioGroupProps['isDisabled'];
62
- $isInvalid: RadioGroupProps['isInvalid'];
63
- $isReadOnly: RadioGroupProps['isReadOnly'];
64
- $orientation: RadioGroupProps['orientation'];
65
- $theme: RadioGroupProps['theme'];
66
- };
67
-
68
- export { RadioGroupState as R, StyledRadioGroupProps as S, RadioGroupOrientation as a, RadioGroupProps as b };