@appquality/unguess-design-system 2.11.5 → 2.11.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.
- package/CHANGELOG.md +12 -0
- package/build/index.js +1 -1
- package/build/stories/forms/input/index.d.ts +1 -1
- package/build/stories/forms/input/index.stories.d.ts +2 -1
- package/build/stories/forms/input-toggle/_types.d.ts +15 -0
- package/build/stories/forms/input-toggle/index.d.ts +10 -0
- package/build/stories/forms/input-toggle/index.stories.d.ts +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v2.11.6 (Wed Sep 07 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- feat(input-toggle): add new component behavior [#82](https://github.com/AppQuality/unguess-design-system/pull/82) ([@marcbon](https://github.com/marcbon))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v2.11.5 (Wed Sep 07 2022)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -1511,7 +1511,7 @@ var Hint = styled__default["default"](reactForms.Hint)(templateObject_2$k || (te
|
|
|
1511
1511
|
* - To let the user enter data into a field
|
|
1512
1512
|
* - To enter multiline text, use a Textarea
|
|
1513
1513
|
**/
|
|
1514
|
-
var Input = function (props) { return jsxRuntime.jsx(UgInput, __assign({}, props)); };
|
|
1514
|
+
var Input = React.forwardRef(function (props, ref) { return jsxRuntime.jsx(UgInput, __assign({ ref: ref }, props)); });
|
|
1515
1515
|
var templateObject_1$M, templateObject_2$k;
|
|
1516
1516
|
|
|
1517
1517
|
var UgMediaInput = styled__default["default"](reactForms.MediaInput)(templateObject_1$L || (templateObject_1$L = __makeTemplateObject([""], [""])));
|
|
@@ -8,5 +8,5 @@ declare const Hint: import("styled-components").StyledComponent<import("react").
|
|
|
8
8
|
* - To let the user enter data into a field
|
|
9
9
|
* - To enter multiline text, use a Textarea
|
|
10
10
|
**/
|
|
11
|
-
declare const Input: (
|
|
11
|
+
declare const Input: import("react").ForwardRefExoticComponent<InputArgs & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
12
|
export { Input, Hint };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
3
|
import { InputArgs } from "./_types";
|
|
3
4
|
export declare const Default: Story<InputArgs>;
|
|
4
5
|
export declare const Success: Story<InputArgs>;
|
|
5
6
|
export declare const Warning: Story<InputArgs>;
|
|
6
7
|
export declare const Error: Story<InputArgs>;
|
|
7
|
-
declare const _default: ComponentMeta<(
|
|
8
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<InputArgs & import("react").RefAttributes<HTMLInputElement>>>;
|
|
8
9
|
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IInputProps } from "@zendeskgarden/react-forms";
|
|
2
|
+
export interface InputToggleArgs extends IInputProps {
|
|
3
|
+
/** Removes borders and padding */
|
|
4
|
+
isBare?: boolean;
|
|
5
|
+
/** Applies validation state styling */
|
|
6
|
+
validation?: 'success' | 'warning' | 'error';
|
|
7
|
+
/** Sets input size */
|
|
8
|
+
size?: number;
|
|
9
|
+
/** Sets the input label */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Sets the input message */
|
|
12
|
+
message?: string;
|
|
13
|
+
/** Sets the asterisk if required */
|
|
14
|
+
required?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputToggleArgs } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* An Input Toggle lets users use the input by activating it pressing the edit button.
|
|
4
|
+
* <hr>
|
|
5
|
+
* Used for this:
|
|
6
|
+
* - To let the user enter data into a field
|
|
7
|
+
* - To enter multiline text, use a Textarea
|
|
8
|
+
**/
|
|
9
|
+
declare const InputToggle: (props: InputToggleArgs) => JSX.Element;
|
|
10
|
+
export { InputToggle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
|
+
import { InputToggleArgs } from "./_types";
|
|
3
|
+
export declare const Default: Story<InputToggleArgs>;
|
|
4
|
+
export declare const Success: Story<InputToggleArgs>;
|
|
5
|
+
export declare const Warning: Story<InputToggleArgs>;
|
|
6
|
+
export declare const Error: Story<InputToggleArgs>;
|
|
7
|
+
declare const _default: ComponentMeta<(props: InputToggleArgs) => JSX.Element>;
|
|
8
|
+
export default _default;
|