@redsift/products 11.6.0-muiv5-alpha.5 → 11.6.0-muiv5-alpha.6

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.
@@ -0,0 +1,8 @@
1
+ import { Comp, ButtonProps } from '@redsift/design-system';
2
+
3
+ /**
4
+ * The RadarButton component.
5
+ */
6
+ declare const RadarButton: Comp<ButtonProps, HTMLButtonElement>;
7
+
8
+ export { RadarButton as R };
@@ -1,8 +1,25 @@
1
- import { Comp, ButtonProps } from '@redsift/design-system';
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers.js';
2
+ import React__default, { forwardRef } from 'react';
3
+ import { Button } from '@redsift/design-system';
4
+ import { rsiRadarSparkleWhite } from '@redsift/icons';
5
+
6
+ const COMPONENT_NAME = 'Button';
7
+ const CLASSNAME = 'redsift-radar-button';
2
8
 
3
9
  /**
4
10
  * The RadarButton component.
5
11
  */
6
- declare const RadarButton: Comp<ButtonProps, HTMLButtonElement>;
12
+ const RadarButton = /*#__PURE__*/forwardRef((props, ref) => {
13
+ return /*#__PURE__*/React__default.createElement(Button, _extends({
14
+ variant: "primary",
15
+ leftIcon: rsiRadarSparkleWhite,
16
+ color: "radar"
17
+ }, props, {
18
+ ref: ref
19
+ }), props.children || 'Radar');
20
+ });
21
+ RadarButton.className = CLASSNAME;
22
+ RadarButton.displayName = COMPONENT_NAME;
7
23
 
8
24
  export { RadarButton as R };
25
+ //# sourceMappingURL=RadarButton.js.map
@@ -0,0 +1,9 @@
1
+ import { Comp } from '@redsift/design-system';
2
+ import { ItemProps } from '@redsift/pickers';
3
+
4
+ /**
5
+ * The RadarItem component.
6
+ */
7
+ declare const RadarItem: Comp<ItemProps, HTMLDivElement>;
8
+
9
+ export { RadarItem as R };
@@ -1,9 +1,23 @@
1
- import { Comp } from '@redsift/design-system';
2
- import { ItemProps } from '@redsift/pickers';
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers.js';
2
+ import React__default, { forwardRef } from 'react';
3
+ import { Item } from '@redsift/pickers';
4
+
5
+ const COMPONENT_NAME = 'Item';
6
+ const CLASSNAME = 'redsift-radar-item';
3
7
 
4
8
  /**
5
9
  * The RadarItem component.
6
10
  */
7
- declare const RadarItem: Comp<ItemProps, HTMLDivElement>;
11
+ const RadarItem = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(Item, _extends({
12
+ padding: "11px 15px",
13
+ color: "radar",
14
+ hasBorder: true,
15
+ borderRadius: "4px"
16
+ }, props, {
17
+ ref: ref
18
+ })));
19
+ RadarItem.className = CLASSNAME;
20
+ RadarItem.displayName = COMPONENT_NAME;
8
21
 
9
22
  export { RadarItem as R };
23
+ //# sourceMappingURL=RadarItem.js.map
@@ -0,0 +1,104 @@
1
+ import { ReactNode, ComponentProps } from 'react';
2
+ import { ButtonColor, Theme, ValueOf, ContainerProps, HeadingProps, IconProps, StylingProps, Comp } from '@redsift/design-system';
3
+
4
+ /**
5
+ * Component variant.
6
+ */
7
+ declare const DialogSize: {
8
+ readonly small: "small";
9
+ readonly medium: "medium";
10
+ readonly large: "large";
11
+ readonly xlarge: "xlarge";
12
+ };
13
+ type DialogSize = ValueOf<typeof DialogSize>;
14
+ /**
15
+ * Component props.
16
+ */
17
+ interface DialogProps {
18
+ /** Button color that will be forward to the trigger. */
19
+ color?: ButtonColor;
20
+ /** Children. Can only be DialogTrigger and DialogContent. */
21
+ children: ReactNode;
22
+ /**
23
+ * Default open status.
24
+ * Used for uncontrolled version.
25
+ */
26
+ defaultOpen?: boolean;
27
+ /** Whether the Close icon button is displayed or not. */
28
+ hasCloseButton?: boolean;
29
+ /** Which element to initially focus. Can be either a number (tabbable index), a ref to en element, or a shortcut pointing towards a section of the dialog. See the accessibility section in the documentation to know which one to use. */
30
+ initialFocus?: number | React.MutableRefObject<HTMLElement | null> | 'header' | 'body' | 'actions';
31
+ /**
32
+ * Whether the component is opened or not.
33
+ * Used for controlled version.
34
+ */
35
+ isOpen?: boolean;
36
+ /** Method to handle component change. */
37
+ onOpen?: (open: boolean) => void;
38
+ /** Dialog size. */
39
+ size?: DialogSize | {
40
+ width?: string;
41
+ maxWidth?: string;
42
+ minWidth?: string;
43
+ };
44
+ /** Theme. */
45
+ theme?: Theme;
46
+ /** Class name to append to the trigger. */
47
+ triggerClassName?: string;
48
+ }
49
+
50
+ /**
51
+ * Component props.
52
+ */
53
+ interface DialogContentBodyProps extends ComponentProps<'div'>, ContainerProps {
54
+ /** Theme. */
55
+ theme?: Theme;
56
+ }
57
+
58
+ /**
59
+ * Component props.
60
+ */
61
+ interface DialogContentHeaderProps extends ComponentProps<'div'> {
62
+ /** Header. */
63
+ header?: string;
64
+ /** Heading props allowing to override the component rendered by the heading without changing its style. */
65
+ headingProps?: Pick<HeadingProps, 'as' | 'noWrap' | 'variant'>;
66
+ /** Subheader */
67
+ subheader?: string;
68
+ /**
69
+ * Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
70
+ * Can also be a ReactElement.
71
+ */
72
+ icon?: IconProps['icon'];
73
+ /** Custom props to pass to the Icon component. */
74
+ iconProps?: Omit<IconProps, 'ref' | 'icon'>;
75
+ /** Whether the card is loading or not. */
76
+ isLoading?: boolean;
77
+ /** Theme. */
78
+ theme?: Theme;
79
+ }
80
+
81
+ /**
82
+ * Component props.
83
+ */
84
+ interface DialogContentProps extends ComponentProps<'div'> {
85
+ /** Theme. */
86
+ theme?: Theme;
87
+ }
88
+
89
+ /**
90
+ * Component props.
91
+ */
92
+ interface DialogTriggerProps extends ComponentProps<'button'>, StylingProps {
93
+ }
94
+
95
+ /**
96
+ * The RadarSimpleDialog component.
97
+ */
98
+ type RadarSimpleDialogProps = Comp<Omit<DialogProps, 'children'> & {
99
+ header?: ReactNode;
100
+ trigger?: Omit<DialogTriggerProps, 'ref'>;
101
+ } & Pick<DialogContentBodyProps, 'children'>, HTMLDivElement>;
102
+ declare const RadarSimpleDialog: RadarSimpleDialogProps;
103
+
104
+ export { DialogProps as D, RadarSimpleDialogProps as R, DialogTriggerProps as a, DialogContentProps as b, DialogContentHeaderProps as c, DialogContentBodyProps as d, RadarSimpleDialog as e };