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.
Files changed (31) hide show
  1. package/lib/assets/svg/classificationAdd.d.ts +6 -0
  2. package/lib/assets/svg/sparkle.d.ts +6 -0
  3. package/lib/components/TextAreaInput/TextAreaInput.d.ts +4 -0
  4. package/lib/components/TextAreaInput/TextAreaInput.stories.d.ts +6 -0
  5. package/lib/components/TextAreaInput/TextAreaInput.types.d.ts +22 -0
  6. package/lib/components/TextAreaInput/index.d.ts +1 -0
  7. package/lib/components/index.d.ts +1 -0
  8. package/lib/constants.d.ts +2 -0
  9. package/lib/index.css +1 -1
  10. package/lib/index.d.ts +27 -1
  11. package/lib/index.esm.css +1 -1
  12. package/lib/index.esm.js +452 -408
  13. package/lib/index.esm.js.map +1 -1
  14. package/lib/index.js +452 -407
  15. package/lib/index.js.map +1 -1
  16. package/package.json +2 -2
  17. package/src/assets/svg/classification.tsx +2 -2
  18. package/src/assets/svg/classificationAdd.tsx +13 -0
  19. package/src/assets/svg/sparkle.tsx +15 -0
  20. package/src/components/DropDown/DropDown.tsx +1 -1
  21. package/src/components/Icon/getIconFromConstant.tsx +6 -0
  22. package/src/components/Input/Input.stories.tsx +0 -1
  23. package/src/components/SortableTable/SortableTable.stories.tsx +1 -1
  24. package/src/components/SortableTable/SortableTable.tsx +0 -1
  25. package/src/components/TextAreaInput/TextAreaInput.module.scss +41 -0
  26. package/src/components/TextAreaInput/TextAreaInput.stories.tsx +18 -0
  27. package/src/components/TextAreaInput/TextAreaInput.tsx +74 -0
  28. package/src/components/TextAreaInput/TextAreaInput.types.ts +23 -0
  29. package/src/components/TextAreaInput/index.ts +1 -0
  30. package/src/components/index.ts +1 -0
  31. package/src/constants.ts +2 -0
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ className?: string;
4
+ }
5
+ declare const Icon: FC<Props>;
6
+ export default Icon;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ className?: string;
4
+ }
5
+ declare const Icon: FC<Props>;
6
+ export default Icon;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { TextAreaInputProps } from './TextAreaInput.types';
3
+ declare const TextAreaInput: FC<TextAreaInputProps>;
4
+ export { TextAreaInput };
@@ -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';
@@ -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",