widenarrow-ui 1.0.41 → 1.0.43
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/assets/svg/classificationAdd.d.ts +6 -0
- package/lib/assets/svg/sparkle.d.ts +6 -0
- package/lib/components/TextAreaInput/TextAreaInput.d.ts +4 -0
- package/lib/components/TextAreaInput/TextAreaInput.stories.d.ts +6 -0
- package/lib/components/TextAreaInput/TextAreaInput.types.d.ts +22 -0
- package/lib/components/TextAreaInput/index.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/constants.d.ts +2 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +27 -1
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +452 -408
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +452 -407
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/assets/svg/classification.tsx +2 -2
- package/src/assets/svg/classificationAdd.tsx +13 -0
- package/src/assets/svg/sparkle.tsx +15 -0
- package/src/components/DropDown/DropDown.tsx +1 -1
- package/src/components/Icon/getIconFromConstant.tsx +6 -0
- package/src/components/Input/Input.stories.tsx +0 -1
- package/src/components/SortableTable/SortableTable.stories.tsx +1 -1
- package/src/components/SortableTable/SortableTable.tsx +0 -1
- package/src/components/TextAreaInput/TextAreaInput.module.scss +41 -0
- package/src/components/TextAreaInput/TextAreaInput.stories.tsx +18 -0
- package/src/components/TextAreaInput/TextAreaInput.tsx +74 -0
- package/src/components/TextAreaInput/TextAreaInput.types.ts +23 -0
- package/src/components/TextAreaInput/index.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/constants.ts +2 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TextAreaInput } from 'src/components/TextAreaInput';
|
|
3
|
+
declare const meta: Meta<typeof TextAreaInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof TextAreaInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RefObject, FocusEvent, ChangeEvent, KeyboardEvent, CSSProperties } from 'react';
|
|
2
|
+
export interface TextAreaInputProps {
|
|
3
|
+
name: string;
|
|
4
|
+
helperText?: string;
|
|
5
|
+
onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
6
|
+
onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
7
|
+
onEnter?: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
8
|
+
onKeyDown?: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
9
|
+
rows: number;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
error?: string;
|
|
14
|
+
inputClassName?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
marginBottom?: boolean;
|
|
18
|
+
autoFocus?: boolean;
|
|
19
|
+
inputRef?: RefObject<HTMLTextAreaElement>;
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
readonly: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextAreaInput';
|
|
@@ -13,6 +13,7 @@ export * from './IconButton';
|
|
|
13
13
|
export * from './Input';
|
|
14
14
|
export * from './Image';
|
|
15
15
|
export * from './InlineButton';
|
|
16
|
+
export * from './TextAreaInput';
|
|
16
17
|
export * from './ListItem';
|
|
17
18
|
export * from './ListSkeleton';
|
|
18
19
|
export * from './MultiActionButton';
|
package/lib/constants.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare enum IconTypes {
|
|
|
35
35
|
CHEVRON_RIGHT = "iconChevronRight",
|
|
36
36
|
CHEVRON_UP = "iconChevronUp",
|
|
37
37
|
CLASSIFICATION = "iconClassification",
|
|
38
|
+
CLASSIFICATION_ADD = "iconClassificationAdd",
|
|
38
39
|
CLIP_BOARD = "iconClipBoard",
|
|
39
40
|
CLUSTER = "iconCluster",
|
|
40
41
|
COMMENT = "iconComment",
|
|
@@ -156,6 +157,7 @@ export declare enum IconTypes {
|
|
|
156
157
|
SORT = "iconSort",
|
|
157
158
|
SSO = "iconSSO",
|
|
158
159
|
SSO_CONFIG = "iconSSOConfig",
|
|
160
|
+
SPARKLE = "iconSparkle",
|
|
159
161
|
STATISTICS = "iconStatistics",
|
|
160
162
|
STRATEGY = "iconStrategy",
|
|
161
163
|
SUBSCRIPTIONS = "iconSubscriptions",
|