cecomponent 2.0.93 → 2.0.95
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/dist/ce-component-lib.css +1 -1
- package/dist/ce-component-lib.js +59 -59
- package/dist/ce-component-lib.mjs +3839 -3698
- package/dist/components/Common/InputBox/CEShowMoreLessTextArea.d.ts +30 -0
- package/dist/components/Common/InputBox/CEShowMoreLessTextArea.stories.d.ts +20 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React, FocusEvent } from 'react';
|
|
2
|
+
import { Size } from '../Tokens/CESizes';
|
|
3
|
+
export interface CEShowMoreLessTextAreaProps {
|
|
4
|
+
value: string | number;
|
|
5
|
+
onChange: (value: string | number) => void;
|
|
6
|
+
id?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
onChangeMeta?: (value: string | number, meta?: {
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
rows?: number;
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
errorMessage?: string;
|
|
17
|
+
showError?: boolean;
|
|
18
|
+
label?: string;
|
|
19
|
+
labelSuffix?: string | React.ReactNode;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
|
+
size?: Size;
|
|
23
|
+
onFocus?: (e: FocusEvent<HTMLTextAreaElement>) => void;
|
|
24
|
+
onBlur?: (e: FocusEvent<HTMLTextAreaElement>) => void;
|
|
25
|
+
autoFocus?: boolean;
|
|
26
|
+
alwaysShowLabel?: boolean;
|
|
27
|
+
maxLines?: number;
|
|
28
|
+
}
|
|
29
|
+
declare const CEShowMoreLessTextArea: React.FC<CEShowMoreLessTextAreaProps>;
|
|
30
|
+
export default CEShowMoreLessTextArea;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('./CEShowMoreLessTextArea').CEShowMoreLessTextAreaProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
control: "select";
|
|
12
|
+
options: string[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const EditableLongText: Story;
|
|
19
|
+
export declare const DisabledLongText: Story;
|
|
20
|
+
export declare const AsyncLoadedValue: Story;
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export { default as CESearchBar } from './components/Common/Header/SearchBar';
|
|
|
33
33
|
export { default as CESearchButton } from './components/Common/Header/SearchButton';
|
|
34
34
|
export { default as CEUserInfo } from './components/Common/Header/UserInfo';
|
|
35
35
|
export { default as CEInputBox } from './components/Common/InputBox/CEInputTextBox';
|
|
36
|
+
export { default as CEShowMoreLessTextArea } from './components/Common/InputBox/CEShowMoreLessTextArea';
|
|
36
37
|
export { default as CEInputDropDown } from './components/Common/InputDropDown/InputDropDown';
|
|
37
38
|
export { default as CELinearProgressBar } from './components/Common/LinearProgressBar/LinearBar';
|
|
38
39
|
export { default as CEMenuBar } from './components/Common/Menu/CEMenuBar';
|
package/package.json
CHANGED