@neo4j-ndl/react 3.0.0-alpha-4904fb7 → 3.0.0-alpha-73cdbc3
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/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +4 -4
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/cjs/accordion/Accordion.js +6 -5
- package/lib/cjs/accordion/Accordion.js.map +1 -1
- package/lib/cjs/avatar/Avatar.js +2 -3
- package/lib/cjs/avatar/Avatar.js.map +1 -1
- package/lib/cjs/banner/Banner.js +2 -2
- package/lib/cjs/banner/Banner.js.map +1 -1
- package/lib/cjs/button/Button.js +2 -2
- package/lib/cjs/button/Button.js.map +1 -1
- package/lib/cjs/button/IconButton.js +2 -2
- package/lib/cjs/button/IconButton.js.map +1 -1
- package/lib/cjs/button/IconButtonArray.js +2 -2
- package/lib/cjs/button/IconButtonArray.js.map +1 -1
- package/lib/cjs/callout/Callout.js +2 -2
- package/lib/cjs/callout/Callout.js.map +1 -1
- package/lib/cjs/checkbox/Checkbox.js +2 -2
- package/lib/cjs/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/code/Code.js +5 -3
- package/lib/cjs/code/Code.js.map +1 -1
- package/lib/cjs/code/languages.js +1 -0
- package/lib/cjs/code/languages.js.map +1 -1
- package/lib/cjs/context-menu/ContextMenu.js +30 -5
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
- package/lib/cjs/data-grid/Components.js +6 -8
- package/lib/cjs/data-grid/Components.js.map +1 -1
- package/lib/cjs/data-grid/DataGrid.js +2 -0
- package/lib/cjs/data-grid/DataGrid.js.map +1 -1
- package/lib/cjs/dialog/Dialog.js +28 -21
- package/lib/cjs/dialog/Dialog.js.map +1 -1
- package/lib/cjs/divider/Divider.js +3 -3
- package/lib/cjs/divider/Divider.js.map +1 -1
- package/lib/cjs/dropdown-button/DropdownButton.js +3 -2
- package/lib/cjs/dropdown-button/DropdownButton.js.map +1 -1
- package/lib/cjs/dropzone/Dropzone.js +2 -2
- package/lib/cjs/dropzone/Dropzone.js.map +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/inline-edit/InlineEdit.js +3 -3
- package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
- package/lib/cjs/label/Label.js +15 -5
- package/lib/cjs/label/Label.js.map +1 -1
- package/lib/cjs/layout/Flex.js +2 -2
- package/lib/cjs/layout/Flex.js.map +1 -1
- package/lib/cjs/loading-spinner/LoadingSpinner.js +14 -6
- package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/cjs/progress-bar/ProgressBar.js +3 -2
- package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
- package/lib/cjs/segmented-control/SegmentedControl.js +5 -4
- package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/cjs/slider/Slider.js +3 -2
- package/lib/cjs/slider/Slider.js.map +1 -1
- package/lib/cjs/status-indicator/StatusIndicator.js +7 -6
- package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/cjs/tabs/Tabs.js +6 -6
- package/lib/cjs/tabs/Tabs.js.map +1 -1
- package/lib/cjs/tag/Tag.js.map +1 -1
- package/lib/cjs/{textarea/Textarea.js → text-area/TextArea.js} +10 -10
- package/lib/cjs/text-area/TextArea.js.map +1 -0
- package/lib/cjs/{textarea → text-area}/index.js +1 -1
- package/lib/cjs/text-area/index.js.map +1 -0
- package/lib/cjs/text-input/TextInput.js +2 -2
- package/lib/cjs/text-input/TextInput.js.map +1 -1
- package/lib/cjs/text-link/TextLink.js +1 -1
- package/lib/cjs/text-link/TextLink.js.map +1 -1
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +4 -4
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/esm/accordion/Accordion.js +6 -5
- package/lib/esm/accordion/Accordion.js.map +1 -1
- package/lib/esm/avatar/Avatar.js +2 -3
- package/lib/esm/avatar/Avatar.js.map +1 -1
- package/lib/esm/banner/Banner.js +2 -2
- package/lib/esm/banner/Banner.js.map +1 -1
- package/lib/esm/button/Button.js +2 -2
- package/lib/esm/button/Button.js.map +1 -1
- package/lib/esm/button/IconButton.js +2 -2
- package/lib/esm/button/IconButton.js.map +1 -1
- package/lib/esm/button/IconButtonArray.js +2 -2
- package/lib/esm/button/IconButtonArray.js.map +1 -1
- package/lib/esm/callout/Callout.js +2 -2
- package/lib/esm/callout/Callout.js.map +1 -1
- package/lib/esm/checkbox/Checkbox.js +2 -2
- package/lib/esm/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/code/Code.js +5 -3
- package/lib/esm/code/Code.js.map +1 -1
- package/lib/esm/code/languages.js +1 -0
- package/lib/esm/code/languages.js.map +1 -1
- package/lib/esm/context-menu/ContextMenu.js +7 -5
- package/lib/esm/context-menu/ContextMenu.js.map +1 -1
- package/lib/esm/data-grid/Components.js +3 -7
- package/lib/esm/data-grid/Components.js.map +1 -1
- package/lib/esm/data-grid/DataGrid.js +3 -1
- package/lib/esm/data-grid/DataGrid.js.map +1 -1
- package/lib/esm/dialog/Dialog.js +30 -23
- package/lib/esm/dialog/Dialog.js.map +1 -1
- package/lib/esm/divider/Divider.js +3 -3
- package/lib/esm/divider/Divider.js.map +1 -1
- package/lib/esm/dropdown-button/DropdownButton.js +3 -2
- package/lib/esm/dropdown-button/DropdownButton.js.map +1 -1
- package/lib/esm/dropzone/Dropzone.js +2 -2
- package/lib/esm/dropzone/Dropzone.js.map +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/inline-edit/InlineEdit.js +3 -3
- package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
- package/lib/esm/label/Label.js +16 -3
- package/lib/esm/label/Label.js.map +1 -1
- package/lib/esm/layout/Flex.js +2 -2
- package/lib/esm/layout/Flex.js.map +1 -1
- package/lib/esm/loading-spinner/LoadingSpinner.js +15 -4
- package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/esm/progress-bar/ProgressBar.js +3 -2
- package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
- package/lib/esm/segmented-control/SegmentedControl.js +5 -4
- package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/esm/slider/Slider.js +3 -2
- package/lib/esm/slider/Slider.js.map +1 -1
- package/lib/esm/status-indicator/StatusIndicator.js +7 -6
- package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/esm/tabs/Tabs.js +6 -6
- package/lib/esm/tabs/Tabs.js.map +1 -1
- package/lib/esm/tag/Tag.js.map +1 -1
- package/lib/esm/{textarea/Textarea.js → text-area/TextArea.js} +9 -9
- package/lib/esm/text-area/TextArea.js.map +1 -0
- package/lib/esm/{textarea → text-area}/index.js +1 -1
- package/lib/esm/text-area/index.js.map +1 -0
- package/lib/esm/text-input/TextInput.js +2 -2
- package/lib/esm/text-input/TextInput.js.map +1 -1
- package/lib/esm/text-link/TextLink.js +1 -1
- package/lib/esm/text-link/TextLink.js.map +1 -1
- package/lib/types/_common/CodeBlockWrapper.d.ts +1 -1
- package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +9 -0
- package/lib/types/_common/types.d.ts +12 -2
- package/lib/types/accordion/Accordion.d.ts +3 -7
- package/lib/types/avatar/Avatar.d.ts +0 -2
- package/lib/types/banner/Banner.d.ts +2 -2
- package/lib/types/button/Button.d.ts +0 -1
- package/lib/types/button/IconButtonArray.d.ts +2 -2
- package/lib/types/callout/Callout.d.ts +1 -1
- package/lib/types/charts/ChartTooltip.d.ts +3 -3
- package/lib/types/charts/Charts.d.ts +1 -1
- package/lib/types/code/Code.d.ts +0 -1
- package/lib/types/code/languages.d.ts +1 -1
- package/lib/types/context-menu/ContextMenu.d.ts +7 -5
- package/lib/types/data-grid/Components.d.ts +4 -5
- package/lib/types/data-grid/DataGrid.d.ts +3 -4
- package/lib/types/dialog/Dialog.d.ts +23 -15
- package/lib/types/dropzone/Dropzone.d.ts +2 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/inline-edit/InlineEdit.d.ts +1 -1
- package/lib/types/label/Label.d.ts +4 -3
- package/lib/types/loading-spinner/LoadingSpinner.d.ts +4 -4
- package/lib/types/popover/Popover.d.ts +1 -1
- package/lib/types/progress-bar/ProgressBar.d.ts +4 -1
- package/lib/types/segmented-control/SegmentedControl.d.ts +3 -1
- package/lib/types/slider/Slider.d.ts +2 -2
- package/lib/types/status-indicator/StatusIndicator.d.ts +4 -4
- package/lib/types/tag/Tag.d.ts +1 -0
- package/lib/types/{textarea/Textarea.d.ts → text-area/TextArea.d.ts} +13 -4
- package/lib/types/{textarea → text-area}/index.d.ts +1 -1
- package/lib/types/text-input/TextInput.d.ts +3 -0
- package/package.json +3 -4
- package/lib/cjs/textarea/Textarea.js.map +0 -1
- package/lib/cjs/textarea/index.js.map +0 -1
- package/lib/esm/textarea/Textarea.js.map +0 -1
- package/lib/esm/textarea/index.js.map +0 -1
|
@@ -28,11 +28,10 @@ export interface DialogBaseProps {
|
|
|
28
28
|
htmlAttributes?: HtmlAttributes<'div'>;
|
|
29
29
|
}
|
|
30
30
|
export declare enum DialogCloseReason {
|
|
31
|
-
BACKDROP_CLICK = "backdropClick",
|
|
32
31
|
ESCAPE_KEY_DOWN = "escapeKeyDown",
|
|
33
32
|
CLOSE_BUTTON_CLICK = "closeButtonClick"
|
|
34
33
|
}
|
|
35
|
-
export type DialogType = 'info' | '
|
|
34
|
+
export type DialogType = 'info' | 'warning' | 'danger';
|
|
36
35
|
export interface DialogProps extends Omit<ModalProps, 'onClose'> {
|
|
37
36
|
isOpen: boolean;
|
|
38
37
|
type?: DialogType;
|
|
@@ -43,17 +42,26 @@ export interface DialogProps extends Omit<ModalProps, 'onClose'> {
|
|
|
43
42
|
}
|
|
44
43
|
export declare const Dialog: {
|
|
45
44
|
({ isOpen, onClose, children, type, size, hasDisabledCloseButton, modalProps, htmlAttributes, }: DialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
46
|
-
Actions:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
Actions: React.ForwardRefExoticComponent<{
|
|
46
|
+
htmlAttributes?: HtmlAttributes<React.ElementType<any>> | undefined;
|
|
47
|
+
as?: React.ElementType<any> | undefined;
|
|
48
|
+
} & DialogBaseProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
49
|
+
Header: React.ForwardRefExoticComponent<{
|
|
50
|
+
htmlAttributes?: HtmlAttributes<React.ElementType<any>> | undefined;
|
|
51
|
+
as?: React.ElementType<any> | undefined;
|
|
52
|
+
} & Omit<DialogBaseProps, "children"> & {
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
} & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
55
|
+
Subtitle: React.ForwardRefExoticComponent<{
|
|
56
|
+
htmlAttributes?: HtmlAttributes<React.ElementType<any>> | undefined;
|
|
57
|
+
as?: React.ElementType<any> | undefined;
|
|
58
|
+
} & DialogBaseProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
59
|
+
Description: React.ForwardRefExoticComponent<{
|
|
60
|
+
htmlAttributes?: HtmlAttributes<React.ElementType<any>> | undefined;
|
|
61
|
+
as?: React.ElementType<any> | undefined;
|
|
62
|
+
} & DialogBaseProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
63
|
+
Content: React.ForwardRefExoticComponent<{
|
|
64
|
+
htmlAttributes?: HtmlAttributes<React.ElementType<any>> | undefined;
|
|
65
|
+
as?: React.ElementType<any> | undefined;
|
|
66
|
+
} & DialogBaseProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
51
67
|
};
|
|
52
|
-
type DialogActionsProps = DialogBaseProps;
|
|
53
|
-
type DialogHeaderProps = Omit<DialogBaseProps, 'children'> & {
|
|
54
|
-
children?: React.ReactNode;
|
|
55
|
-
};
|
|
56
|
-
type DialogSubtitleProps = DialogBaseProps;
|
|
57
|
-
type DialogDescriptionProps = DialogBaseProps;
|
|
58
|
-
type DialogContentProps = DialogBaseProps;
|
|
59
|
-
export {};
|
|
@@ -51,6 +51,8 @@ export interface DropzoneProps {
|
|
|
51
51
|
htmlAttributes?: HtmlAttributes<'div'>;
|
|
52
52
|
/** classNames */
|
|
53
53
|
className?: string;
|
|
54
|
+
/** Extra styles */
|
|
55
|
+
style?: React.CSSProperties;
|
|
54
56
|
}
|
|
55
57
|
export interface DropzoneLoadingProgressBarProps {
|
|
56
58
|
/** The percentage of the progress bar. */
|
package/lib/types/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export * from './progress-bar';
|
|
|
37
37
|
export * from './dropzone';
|
|
38
38
|
export * from './data-grid';
|
|
39
39
|
export * from './text-input';
|
|
40
|
-
export * from './
|
|
40
|
+
export * from './text-area';
|
|
41
41
|
export * from './text-link';
|
|
42
42
|
export * from './dropdown';
|
|
43
43
|
export * from './tag';
|
|
@@ -83,4 +83,4 @@ export interface InlineEditProps {
|
|
|
83
83
|
export declare const InlineEdit: React.ForwardRefExoticComponent<{
|
|
84
84
|
htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
|
|
85
85
|
as?: React.ElementType<any> | undefined;
|
|
86
|
-
} & InlineEditProps & React.RefAttributes<unknown>>;
|
|
86
|
+
} & InlineEditProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type HtmlAttributes } from '../_common/types';
|
|
23
22
|
/**
|
|
24
23
|
*
|
|
25
24
|
*
|
|
@@ -37,6 +36,8 @@ export interface EventTypeLabelProps {
|
|
|
37
36
|
fill?: 'filled' | 'outlined' | 'semi-filled' | 'clean';
|
|
38
37
|
/** If label should have an icon */
|
|
39
38
|
hasIcon?: boolean;
|
|
40
|
-
htmlAttributes: HtmlAttributes<'span'>;
|
|
41
39
|
}
|
|
42
|
-
export declare const Label: React.ForwardRefExoticComponent<
|
|
40
|
+
export declare const Label: React.ForwardRefExoticComponent<{
|
|
41
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
|
|
42
|
+
as?: React.ElementType<any> | undefined;
|
|
43
|
+
} & EventTypeLabelProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type HtmlAttributes } from '../_common/types';
|
|
23
22
|
/**
|
|
24
23
|
*
|
|
25
24
|
*
|
|
@@ -29,8 +28,6 @@ import { type HtmlAttributes } from '../_common/types';
|
|
|
29
28
|
*/
|
|
30
29
|
export type LoadingSpinnerProps = {
|
|
31
30
|
size?: 'small' | 'medium' | 'large';
|
|
32
|
-
className?: string;
|
|
33
|
-
htmlAttributes?: HtmlAttributes<'div'>;
|
|
34
31
|
};
|
|
35
32
|
/**
|
|
36
33
|
*
|
|
@@ -39,4 +36,7 @@ export type LoadingSpinnerProps = {
|
|
|
39
36
|
*
|
|
40
37
|
*
|
|
41
38
|
*/
|
|
42
|
-
export declare const LoadingSpinner: React.ForwardRefExoticComponent<
|
|
39
|
+
export declare const LoadingSpinner: React.ForwardRefExoticComponent<{
|
|
40
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
|
|
41
|
+
as?: React.ElementType<any> | undefined;
|
|
42
|
+
} & LoadingSpinnerProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
@@ -47,7 +47,7 @@ export declare const Popover: {
|
|
|
47
47
|
Content: React.ForwardRefExoticComponent<{
|
|
48
48
|
htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
|
|
49
49
|
as?: React.ElementType<any> | undefined;
|
|
50
|
-
} & PopoverContentProps & React.RefAttributes<unknown>>;
|
|
50
|
+
} & PopoverContentProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
51
51
|
};
|
|
52
52
|
export interface PopoverTriggerProps {
|
|
53
53
|
children: React.ReactNode;
|
|
@@ -28,4 +28,7 @@ export interface ProgressBarProps {
|
|
|
28
28
|
/** HTML attributes */
|
|
29
29
|
htmlAttributes?: HtmlAttributes<'div'>;
|
|
30
30
|
}
|
|
31
|
-
export declare const ProgressBar: React.ForwardRefExoticComponent<
|
|
31
|
+
export declare const ProgressBar: React.ForwardRefExoticComponent<{
|
|
32
|
+
htmlAttributes?: HtmlAttributes<React.ElementType<any>> | undefined;
|
|
33
|
+
as?: React.ElementType<any> | undefined;
|
|
34
|
+
} & ProgressBarProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
@@ -35,6 +35,8 @@ export interface SegmentedControlProps<T extends SegmentedControlID> {
|
|
|
35
35
|
/** Currently selected option */
|
|
36
36
|
selected: T;
|
|
37
37
|
children: React.ReactNode | string;
|
|
38
|
+
/** If the component is in a floating state*/
|
|
39
|
+
isFloating?: boolean;
|
|
38
40
|
}
|
|
39
41
|
type SegmentControlComponent = <U extends SegmentedControlID, T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, SegmentedControlProps<U>>) => React.ReactNode | null;
|
|
40
42
|
declare const SegmentedControl: SegmentControlComponent & {
|
|
@@ -46,6 +48,6 @@ declare const SegmentedControl: SegmentControlComponent & {
|
|
|
46
48
|
className?: string;
|
|
47
49
|
children?: React.ReactNode;
|
|
48
50
|
value: string;
|
|
49
|
-
} & React.RefAttributes<unknown>>;
|
|
51
|
+
} & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
|
50
52
|
};
|
|
51
53
|
export { SegmentedControl };
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type HtmlAttributes } from '../_common/types';
|
|
22
|
+
import { type PolymorphicComponentProps, type HtmlAttributes } from '../_common/types';
|
|
23
23
|
export interface SliderPropsBase {
|
|
24
24
|
/** Forwards the props to the slider container's wrapper */
|
|
25
25
|
/** Forwards the input element(s) of the slider */
|
|
@@ -75,5 +75,5 @@ type RangeSlider = SliderPropsBase & {
|
|
|
75
75
|
className?: string;
|
|
76
76
|
};
|
|
77
77
|
export type SliderProps = SingleSlider | RangeSlider;
|
|
78
|
-
export declare const Slider: (props: SliderProps & React.RefAttributes<
|
|
78
|
+
export declare const Slider: <T extends React.ElementType = "div">(props: PolymorphicComponentProps<T, SliderProps> & React.RefAttributes<unknown>) => React.ReactElement | null;
|
|
79
79
|
export {};
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type HtmlAttributes } from '../_common/types';
|
|
23
22
|
export interface StatusIndicatorProps {
|
|
24
23
|
/** Status indicator type. Defaults to "unknown". */
|
|
25
24
|
type?: 'unknown' | 'success' | 'info' | 'warning' | 'danger';
|
|
26
|
-
htmlAttributes?: HtmlAttributes<'span'>;
|
|
27
|
-
className?: string;
|
|
28
25
|
}
|
|
29
|
-
export declare const StatusIndicator: React.ForwardRefExoticComponent<
|
|
26
|
+
export declare const StatusIndicator: React.ForwardRefExoticComponent<{
|
|
27
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
|
|
28
|
+
as?: React.ElementType<any> | undefined;
|
|
29
|
+
} & StatusIndicatorProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
|
package/lib/types/tag/Tag.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export interface CommonTagProps {
|
|
|
34
34
|
/** Size of the tag */
|
|
35
35
|
size?: 'small' | 'medium' | 'large';
|
|
36
36
|
className?: string;
|
|
37
|
+
style?: React.CSSProperties;
|
|
37
38
|
htmlAttributes?: HtmlAttributes<'div'>;
|
|
38
39
|
}
|
|
39
40
|
export interface RemovableTagProps extends CommonTagProps {
|
|
@@ -28,7 +28,7 @@ import { type HtmlAttributes } from '../_common/types';
|
|
|
28
28
|
*
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
export interface
|
|
31
|
+
export interface TextAreaProps {
|
|
32
32
|
/** Label text */
|
|
33
33
|
label?: ReactNode;
|
|
34
34
|
/** Displays with fluid width */
|
|
@@ -37,7 +37,7 @@ export interface TextareaProps {
|
|
|
37
37
|
helpText?: string | ReactNode;
|
|
38
38
|
/** Error message */
|
|
39
39
|
errorText?: string | ReactNode;
|
|
40
|
-
/** Size of the
|
|
40
|
+
/** Size of the textArea */
|
|
41
41
|
size?: 'small' | 'medium' | 'large';
|
|
42
42
|
/** If the component is optional to fill in */
|
|
43
43
|
isOptional?: boolean;
|
|
@@ -49,14 +49,23 @@ export interface TextareaProps {
|
|
|
49
49
|
/** HTML attributes */
|
|
50
50
|
htmlAttributes?: HtmlAttributes<'textarea'>;
|
|
51
51
|
ariaLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Additional classnames will be applied to the root element.
|
|
54
|
+
*/
|
|
52
55
|
className?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Additional css styling. Will be applied to the root element.
|
|
58
|
+
*/
|
|
59
|
+
style?: React.CSSProperties;
|
|
53
60
|
isReadOnly?: boolean;
|
|
61
|
+
value?: string;
|
|
62
|
+
placeholder?: string;
|
|
54
63
|
}
|
|
55
64
|
/**
|
|
56
65
|
*
|
|
57
66
|
*
|
|
58
|
-
*
|
|
67
|
+
* TextArea Component
|
|
59
68
|
*
|
|
60
69
|
*
|
|
61
70
|
*/
|
|
62
|
-
export declare const
|
|
71
|
+
export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -46,6 +46,9 @@ export interface TextInputProps {
|
|
|
46
46
|
label?: string | React.ReactNode;
|
|
47
47
|
/** Classname to the `input` element */
|
|
48
48
|
className?: string;
|
|
49
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
50
|
+
placeholder?: string;
|
|
51
|
+
style?: React.CSSProperties;
|
|
49
52
|
/** Pass props to the underlying Tip component */
|
|
50
53
|
tooltipProps?: TooltipObjectProps;
|
|
51
54
|
htmlAttributes?: HtmlAttributes<'input'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-73cdbc3",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -63,11 +63,10 @@
|
|
|
63
63
|
"vitest": "2.1.2"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@heroicons/react": "2.1.5",
|
|
67
66
|
"@tanstack/react-table": "8.20.5",
|
|
68
67
|
"react": ">=16.8.0",
|
|
69
68
|
"react-dom": ">=16.8.0",
|
|
70
|
-
"@neo4j-ndl/base": "^3.0.0-alpha-
|
|
69
|
+
"@neo4j-ndl/base": "^3.0.0-alpha-73cdbc3"
|
|
71
70
|
},
|
|
72
71
|
"dependencies": {
|
|
73
72
|
"@dnd-kit/core": "6.1.0",
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
"sonner": "1.4.41",
|
|
95
94
|
"tinycolor2": "1.6.0",
|
|
96
95
|
"usehooks-ts": "3.1.0",
|
|
97
|
-
"@neo4j-ndl/base": "3.0.0-alpha-
|
|
96
|
+
"@neo4j-ndl/base": "3.0.0-alpha-73cdbc3"
|
|
98
97
|
},
|
|
99
98
|
"scripts": {
|
|
100
99
|
"generate-component": "node ./scripts/component-generator.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../src/textarea/Textarea.tsx"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,iCAKe;AAEf,8DAAuD;AAEvD,kDAA8E;AAC9E,4CAAwD;AACxD,oCAGkB;AAElB,wCAAqC;AA+CrC;;;;;;GAMG;AAEU,QAAA,QAAQ,GAAG,IAAA,kBAAU,EAAC,SAAS,QAAQ,CAClD,KAAoB,EACpB,GAAsC;IAEtC,MAAM,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,mBAAmB,EACnB,IAAI,GAAG,QAAQ,EACf,SAAS,EAAE,SAAS,EACpB,YAAY,EACZ,UAAU,EACV,SAAS,EACT,UAAU,EACV,cAAc,GACf,GAAG,KAAK,CAAC;IAEV,MAAM,wBAAwB,GAAG,IAAA,2BAAU,EACzC,4BAA4B,EAC5B,SAAS,EACT;QACE,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,YAAY,EAAE,IAAI,KAAK,QAAQ;QAC/B,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,eAAe,EAAE,SAAS;QAC1B,oBAAoB,EAAE,SAAS;QAC/B,cAAc,EAAE,SAAS;KAC1B,CACF,CAAC;IAEF,MAAM,kBAAkB,GAAG,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,CAAC;IAElD,MAAM,oBAAoB,GAAG,IAAA,2BAAU,EAAC,oBAAoB,EAAE;QAC5D,WAAW,EAAE,OAAO;QACpB,uBAAuB,EAAE,kBAAkB;KAC5C,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC;IACzD,MAAM,4BAA4B,GAAG,aAAa,IAAI,CAAC,SAAS,CAAC;IAEjE,IAAA,eAAO,E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iCAAM,SAAS,EAAC,uBAAuB,yBAAgB,CACxD,IACG,CACP,IACK,EACP,QAAQ,IAAI,CAAC,SAAS,IAAI,CACzB,gCAAK,SAAS,EAAC,kBAAkB,YAAE,QAAQ,GAAO,CACnD,EACA,SAAS,IAAI,CACZ,iCAAK,SAAS,EAAC,kBAAkB,aAC/B,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,kCAA0B,KAAG,GAC1B,EACN,gCAAK,SAAS,EAAC,gBAAgB,YAAE,SAAS,GAAO,IAC7C,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/textarea/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,6CAA2B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../src/textarea/Textarea.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAc,EAGZ,UAAU,EACV,OAAO,GACR,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,uCAAuC,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AA+CrC;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,QAAQ,CAClD,KAAoB,EACpB,GAAsC;IAEtC,MAAM,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,mBAAmB,EACnB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