@artsy/palette 44.1.0 → 44.2.0
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/elements/AutocompleteInput/AutocompleteInput.story.d.ts +105 -6
- package/dist/elements/AutocompleteInput/AutocompleteInput.story.js +78 -365
- package/dist/elements/AutocompleteInput/AutocompleteInput.story.js.map +1 -1
- package/dist/elements/Avatar/Avatar.story.d.ts +74 -5
- package/dist/elements/Avatar/Avatar.story.js +69 -85
- package/dist/elements/Avatar/Avatar.story.js.map +1 -1
- package/dist/elements/Banner/Banner.story.d.ts +53 -2
- package/dist/elements/Banner/Banner.story.js +55 -24
- package/dist/elements/Banner/Banner.story.js.map +1 -1
- package/dist/elements/BaseTabs/BaseTabs.story.d.ts +45 -20
- package/dist/elements/BaseTabs/BaseTabs.story.js +99 -154
- package/dist/elements/BaseTabs/BaseTabs.story.js.map +1 -1
- package/dist/elements/BorderedRadio/BorderedRadio.story.d.ts +30 -1
- package/dist/elements/BorderedRadio/BorderedRadio.story.js +92 -19
- package/dist/elements/BorderedRadio/BorderedRadio.story.js.map +1 -1
- package/dist/elements/Box/Box.story.d.ts +35 -1
- package/dist/elements/Box/Box.story.js +54 -28
- package/dist/elements/Box/Box.story.js.map +1 -1
- package/dist/elements/Breadcrumbs/Breadcrumbs.story.d.ts +27 -1
- package/dist/elements/Breadcrumbs/Breadcrumbs.story.js +43 -26
- package/dist/elements/Breadcrumbs/Breadcrumbs.story.js.map +1 -1
- package/dist/elements/Button/Button.story.d.ts +132 -19
- package/dist/elements/Button/Button.story.js +133 -228
- package/dist/elements/Button/Button.story.js.map +1 -1
- package/dist/elements/CSSGrid/CSSGrid.story.d.ts +35 -10
- package/dist/elements/CSSGrid/CSSGrid.story.js +57 -20
- package/dist/elements/CSSGrid/CSSGrid.story.js.map +1 -1
- package/dist/elements/Cards/Cards.story.d.ts +56 -14
- package/dist/elements/Cards/Cards.story.js +65 -55
- package/dist/elements/Cards/Cards.story.js.map +1 -1
- package/dist/elements/Carousel/Carousel.story.d.ts +135 -48
- package/dist/elements/Carousel/Carousel.story.js +399 -303
- package/dist/elements/Carousel/Carousel.story.js.map +1 -1
- package/dist/elements/CarouselBar/CarouselBar.story.d.ts +37 -2
- package/dist/elements/CarouselBar/CarouselBar.story.js +38 -19
- package/dist/elements/CarouselBar/CarouselBar.story.js.map +1 -1
- package/dist/elements/Checkbox/Check.story.d.ts +75 -2
- package/dist/elements/Checkbox/Check.story.js +77 -32
- package/dist/elements/Checkbox/Check.story.js.map +1 -1
- package/dist/elements/Checkbox/Checkbox.story.d.ts +79 -3
- package/dist/elements/Checkbox/Checkbox.story.js +81 -79
- package/dist/elements/Checkbox/Checkbox.story.js.map +1 -1
- package/dist/elements/Clickable/Clickable.story.d.ts +50 -5
- package/dist/elements/Clickable/Clickable.story.js +52 -58
- package/dist/elements/Clickable/Clickable.story.js.map +1 -1
- package/dist/elements/Drawer/Drawer.story.d.ts +36 -2
- package/dist/elements/Drawer/Drawer.story.js +42 -9
- package/dist/elements/Drawer/Drawer.story.js.map +1 -1
- package/dist/elements/Dropdown/Dropdown.story.d.ts +53 -18
- package/dist/elements/Dropdown/Dropdown.story.js +244 -237
- package/dist/elements/Dropdown/Dropdown.story.js.map +1 -1
- package/dist/elements/EntityHeader/EntityHeader.story.d.ts +245 -1
- package/dist/elements/EntityHeader/EntityHeader.story.js +209 -76
- package/dist/elements/EntityHeader/EntityHeader.story.js.map +1 -1
- package/dist/elements/Expandable/Expandable.story.d.ts +54 -2
- package/dist/elements/Expandable/Expandable.story.js +76 -65
- package/dist/elements/Expandable/Expandable.story.js.map +1 -1
- package/dist/elements/FilterSelect/FilterSelect.story.d.ts +153 -2
- package/dist/elements/FilterSelect/FilterSelect.story.js +159 -62
- package/dist/elements/FilterSelect/FilterSelect.story.js.map +1 -1
- package/dist/elements/FullBleed/FullBleed.story.d.ts +30 -1
- package/dist/elements/FullBleed/FullBleed.story.js +44 -21
- package/dist/elements/FullBleed/FullBleed.story.js.map +1 -1
- package/dist/elements/GridColumns/GridColumns.story.d.ts +47 -9
- package/dist/elements/GridColumns/GridColumns.story.js +188 -204
- package/dist/elements/GridColumns/GridColumns.story.js.map +1 -1
- package/dist/elements/HTML/HTML.story.d.ts +56 -9
- package/dist/elements/HTML/HTML.story.js +56 -28
- package/dist/elements/HTML/HTML.story.js.map +1 -1
- package/dist/elements/HorizontalOverflow/HorizontalOverflow.story.d.ts +52 -2
- package/dist/elements/HorizontalOverflow/HorizontalOverflow.story.js +83 -46
- package/dist/elements/HorizontalOverflow/HorizontalOverflow.story.js.map +1 -1
- package/dist/elements/Image/Image.story.d.ts +56 -17
- package/dist/elements/Image/Image.story.js +106 -88
- package/dist/elements/Image/Image.story.js.map +1 -1
- package/dist/elements/Input/Input.story.d.ts +111 -6
- package/dist/elements/Input/Input.story.js +108 -106
- package/dist/elements/Input/Input.story.js.map +1 -1
- package/dist/elements/Join/Join.d.ts +1 -2
- package/dist/elements/Join/Join.js.map +1 -1
- package/dist/elements/Join/Join.story.d.ts +55 -10
- package/dist/elements/Join/Join.story.js +122 -58
- package/dist/elements/Join/Join.story.js.map +1 -1
- package/dist/elements/Label/Label.story.d.ts +44 -2
- package/dist/elements/Label/Label.story.js +68 -24
- package/dist/elements/Label/Label.story.js.map +1 -1
- package/dist/elements/LabeledInput/LabeledInput.story.d.ts +50 -3
- package/dist/elements/LabeledInput/LabeledInput.story.js +62 -68
- package/dist/elements/LabeledInput/LabeledInput.story.js.map +1 -1
- package/dist/elements/Marquee/Marquee.story.d.ts +57 -1
- package/dist/elements/Marquee/Marquee.story.js +82 -20
- package/dist/elements/Marquee/Marquee.story.js.map +1 -1
- package/dist/elements/Message/Message.story.d.ts +56 -1
- package/dist/elements/Message/Message.story.js +84 -25
- package/dist/elements/Message/Message.story.js.map +1 -1
- package/dist/elements/Modal/ModalBase.story.d.ts +53 -4
- package/dist/elements/Modal/ModalBase.story.js +78 -33
- package/dist/elements/Modal/ModalBase.story.js.map +1 -1
- package/dist/elements/ModalDialog/ModalDialog.story.d.ts +58 -1
- package/dist/elements/ModalDialog/ModalDialog.story.js +93 -144
- package/dist/elements/ModalDialog/ModalDialog.story.js.map +1 -1
- package/dist/elements/ModalDialog/ModalDialogContent.story.d.ts +112 -1
- package/dist/elements/ModalDialog/ModalDialogContent.story.js +190 -65
- package/dist/elements/ModalDialog/ModalDialogContent.story.js.map +1 -1
- package/dist/elements/MultiSelect/MultiSelect.story.d.ts +119 -2
- package/dist/elements/MultiSelect/MultiSelect.story.js +102 -46
- package/dist/elements/MultiSelect/MultiSelect.story.js.map +1 -1
- package/dist/elements/Pagination/Pagination.story.d.ts +88 -4
- package/dist/elements/Pagination/Pagination.story.js +64 -23
- package/dist/elements/Pagination/Pagination.story.js.map +1 -1
- package/dist/elements/PasswordInput/PasswordInput.story.d.ts +54 -2
- package/dist/elements/PasswordInput/PasswordInput.story.js +54 -16
- package/dist/elements/PasswordInput/PasswordInput.story.js.map +1 -1
- package/dist/elements/Pill/Pill.story.d.ts +114 -9
- package/dist/elements/Pill/Pill.story.js +282 -169
- package/dist/elements/Pill/Pill.story.js.map +1 -1
- package/dist/elements/Popover/Popover.story.d.ts +162 -13
- package/dist/elements/Popover/Popover.story.js +351 -190
- package/dist/elements/Popover/Popover.story.js.map +1 -1
- package/dist/elements/ProgressBar/ProgressBar.story.d.ts +43 -7
- package/dist/elements/ProgressBar/ProgressBar.story.js +73 -35
- package/dist/elements/ProgressBar/ProgressBar.story.js.map +1 -1
- package/dist/elements/ProgressDots/ProgressDots.story.d.ts +69 -7
- package/dist/elements/ProgressDots/ProgressDots.story.js +108 -41
- package/dist/elements/ProgressDots/ProgressDots.story.js.map +1 -1
- package/dist/elements/Radio/Radio.story.d.ts +103 -2
- package/dist/elements/Radio/Radio.story.js +112 -57
- package/dist/elements/Radio/Radio.story.js.map +1 -1
- package/dist/elements/RadioGroup/RadioGroup.story.d.ts +104 -5
- package/dist/elements/RadioGroup/RadioGroup.story.js +183 -65
- package/dist/elements/RadioGroup/RadioGroup.story.js.map +1 -1
- package/dist/elements/Range/Range.story.d.ts +89 -8
- package/dist/elements/Range/Range.story.js +170 -94
- package/dist/elements/Range/Range.story.js.map +1 -1
- package/dist/elements/ReadMore/ReadMore.story.d.ts +85 -25
- package/dist/elements/ReadMore/ReadMore.story.js +123 -80
- package/dist/elements/ReadMore/ReadMore.story.js.map +1 -1
- package/dist/elements/ResponsiveBox/ResponsiveBox.story.d.ts +40 -5
- package/dist/elements/ResponsiveBox/ResponsiveBox.story.js +87 -51
- package/dist/elements/ResponsiveBox/ResponsiveBox.story.js.map +1 -1
- package/dist/elements/Select/Select.story.d.ts +260 -2
- package/dist/elements/Select/Select.story.js +216 -48
- package/dist/elements/Select/Select.story.js.map +1 -1
- package/dist/elements/SelectInput/SelectInput.story.d.ts +304 -3
- package/dist/elements/SelectInput/SelectInput.story.js +347 -99
- package/dist/elements/SelectInput/SelectInput.story.js.map +1 -1
- package/dist/elements/SelectInput/SelectInputList.story.d.ts +31 -1
- package/dist/elements/SelectInput/SelectInputList.story.js +35 -164
- package/dist/elements/SelectInput/SelectInputList.story.js.map +1 -1
- package/dist/elements/Separator/Separator.story.d.ts +64 -2
- package/dist/elements/Separator/Separator.story.js +65 -18
- package/dist/elements/Separator/Separator.story.js.map +1 -1
- package/dist/elements/Shelf/Shelf.story.d.ts +140 -8
- package/dist/elements/Shelf/Shelf.story.js +224 -56
- package/dist/elements/Shelf/Shelf.story.js.map +1 -1
- package/dist/elements/ShowMore/ShowMore.story.d.ts +46 -4
- package/dist/elements/ShowMore/ShowMore.story.js +102 -48
- package/dist/elements/ShowMore/ShowMore.story.js.map +1 -1
- package/dist/elements/Skeleton/Skeleton.story.d.ts +68 -4
- package/dist/elements/Skeleton/Skeleton.story.js +84 -58
- package/dist/elements/Skeleton/Skeleton.story.js.map +1 -1
- package/dist/elements/Skip/Skip.story.d.ts +50 -11
- package/dist/elements/Skip/Skip.story.js +69 -31
- package/dist/elements/Skip/Skip.story.js.map +1 -1
- package/dist/elements/Spacer/Spacer.story.d.ts +39 -4
- package/dist/elements/Spacer/Spacer.story.js +53 -51
- package/dist/elements/Spacer/Spacer.story.js.map +1 -1
- package/dist/elements/Spinner/Spinner.story.d.ts +47 -7
- package/dist/elements/Spinner/Spinner.story.js +47 -27
- package/dist/elements/Spinner/Spinner.story.js.map +1 -1
- package/dist/elements/Stack/Stack.story.d.ts +45 -1
- package/dist/elements/Stack/Stack.story.js +81 -33
- package/dist/elements/Stack/Stack.story.js.map +1 -1
- package/dist/elements/StackableBorderBox/StackableBorderBox.story.d.ts +24 -1
- package/dist/elements/StackableBorderBox/StackableBorderBox.story.js +28 -9
- package/dist/elements/StackableBorderBox/StackableBorderBox.story.js.map +1 -1
- package/dist/elements/Stepper/Stepper.story.d.ts +99 -2
- package/dist/elements/Stepper/Stepper.story.js +166 -64
- package/dist/elements/Stepper/Stepper.story.js.map +1 -1
- package/dist/elements/Sup/Sup.story.d.ts +47 -1
- package/dist/elements/Sup/Sup.story.js +57 -15
- package/dist/elements/Sup/Sup.story.js.map +1 -1
- package/dist/elements/Swiper/Swiper.story.d.ts +32 -45
- package/dist/elements/Swiper/Swiper.story.js +234 -235
- package/dist/elements/Swiper/Swiper.story.js.map +1 -1
- package/dist/elements/Tabs/Tabs.story.d.ts +41 -18
- package/dist/elements/Tabs/Tabs.story.js +255 -238
- package/dist/elements/Tabs/Tabs.story.js.map +1 -1
- package/dist/elements/Text/Text.story.d.ts +117 -5
- package/dist/elements/Text/Text.story.js +119 -97
- package/dist/elements/Text/Text.story.js.map +1 -1
- package/dist/elements/TextArea/TextArea.story.d.ts +45 -2
- package/dist/elements/TextArea/TextArea.story.js +106 -49
- package/dist/elements/TextArea/TextArea.story.js.map +1 -1
- package/dist/elements/Toasts/Toast.story.d.ts +91 -2
- package/dist/elements/Toasts/Toast.story.js +90 -24
- package/dist/elements/Toasts/Toast.story.js.map +1 -1
- package/dist/elements/Toasts/Toasts.story.d.ts +13 -1
- package/dist/elements/Toasts/Toasts.story.js +78 -64
- package/dist/elements/Toasts/Toasts.story.js.map +1 -1
- package/dist/elements/Toggle/Toggle.story.d.ts +66 -2
- package/dist/elements/Toggle/Toggle.story.js +97 -41
- package/dist/elements/Toggle/Toggle.story.js.map +1 -1
- package/dist/elements/Tooltip/Tooltip.story.d.ts +53 -19
- package/dist/elements/Tooltip/Tooltip.story.js +201 -212
- package/dist/elements/Tooltip/Tooltip.story.js.map +1 -1
- package/dist/utils/storybookBlocklist.d.ts +6 -0
- package/dist/utils/storybookBlocklist.js +47 -0
- package/dist/utils/storybookBlocklist.js.map +1 -0
- package/package.json +3 -2
|
@@ -3,69 +3,126 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.
|
|
6
|
+
exports.default = exports.InForm = exports.Default = exports.AllStates = void 0;
|
|
7
7
|
var _test = require("@storybook/test");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _storybookStates = require("storybook-states");
|
|
10
9
|
var _Button = require("../Button");
|
|
11
10
|
var _TextArea = require("./TextArea");
|
|
11
|
+
var _storybookBlocklist = require("../../utils/storybookBlocklist");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
var _default = exports.default = {
|
|
14
|
-
|
|
14
|
+
component: _TextArea.TextArea,
|
|
15
|
+
title: "Components/TextArea",
|
|
16
|
+
tags: ["autodocs"],
|
|
17
|
+
parameters: {
|
|
18
|
+
docs: {
|
|
19
|
+
description: {
|
|
20
|
+
component: "A multi-line text input component with character limits, validation, and form states."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
controls: {
|
|
24
|
+
exclude: _storybookBlocklist.STORYBOOK_PROPS_BLOCKLIST
|
|
25
|
+
}
|
|
26
|
+
}
|
|
15
27
|
};
|
|
16
|
-
var Default = exports.Default =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
var Default = exports.Default = {
|
|
29
|
+
args: {
|
|
30
|
+
placeholder: "Start typing...",
|
|
31
|
+
onChange: (0, _test.fn)()
|
|
32
|
+
},
|
|
33
|
+
parameters: {
|
|
34
|
+
docs: {
|
|
35
|
+
description: {
|
|
36
|
+
story: "Basic text area with placeholder text."
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var AllStates = exports.AllStates = {
|
|
42
|
+
render: function render() {
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
+
style: {
|
|
45
|
+
display: "flex",
|
|
46
|
+
flexDirection: "column",
|
|
47
|
+
gap: "16px"
|
|
48
|
+
}
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
50
|
+
placeholder: "Default state",
|
|
51
|
+
onChange: (0, _test.fn)()
|
|
52
|
+
}), /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
53
|
+
error: "Something went wrong.",
|
|
54
|
+
placeholder: "Error state",
|
|
55
|
+
onChange: (0, _test.fn)()
|
|
56
|
+
}), /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
57
|
+
disabled: true,
|
|
58
|
+
placeholder: "Disabled state",
|
|
59
|
+
onChange: (0, _test.fn)()
|
|
60
|
+
}), /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
61
|
+
title: "Note",
|
|
62
|
+
placeholder: "With title",
|
|
63
|
+
onChange: (0, _test.fn)()
|
|
64
|
+
}), /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
31
65
|
title: "Note",
|
|
32
|
-
required: true
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, {
|
|
66
|
+
required: true,
|
|
67
|
+
placeholder: "Required field",
|
|
68
|
+
onChange: (0, _test.fn)()
|
|
69
|
+
}), /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
70
|
+
characterLimit: 10,
|
|
71
|
+
placeholder: "Character limit",
|
|
72
|
+
onChange: (0, _test.fn)()
|
|
73
|
+
}), /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
36
74
|
characterLimit: 10,
|
|
37
75
|
characterLimitHelper: true,
|
|
38
|
-
required: true
|
|
39
|
-
|
|
76
|
+
required: true,
|
|
77
|
+
placeholder: "With helper text",
|
|
78
|
+
onChange: (0, _test.fn)()
|
|
79
|
+
}), /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
40
80
|
characterLimit: 10,
|
|
41
|
-
defaultValue: "hello"
|
|
42
|
-
|
|
81
|
+
defaultValue: "hello",
|
|
82
|
+
placeholder: "Under limit",
|
|
83
|
+
onChange: (0, _test.fn)()
|
|
84
|
+
}), /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
43
85
|
characterLimit: 10,
|
|
44
|
-
defaultValue: "hello world"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, {
|
|
86
|
+
defaultValue: "hello world",
|
|
87
|
+
placeholder: "Over limit",
|
|
88
|
+
onChange: (0, _test.fn)()
|
|
89
|
+
}), /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
48
90
|
name: "my-text-area",
|
|
49
91
|
title: "Note",
|
|
50
|
-
description: "This is my description"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
92
|
+
description: "This is my description",
|
|
93
|
+
placeholder: "With description",
|
|
94
|
+
onChange: (0, _test.fn)()
|
|
95
|
+
}), /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
96
|
+
defaultValue: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem nam iste beatae reiciendis ea harum, aspernatur, eius, omnis eveniet corporis consequatur minima assumenda ipsum dolor dolorum perferendis animi distinctio eligendi?",
|
|
97
|
+
placeholder: "With long content",
|
|
98
|
+
onChange: (0, _test.fn)()
|
|
99
|
+
}));
|
|
100
|
+
},
|
|
101
|
+
parameters: {
|
|
102
|
+
docs: {
|
|
103
|
+
description: {
|
|
104
|
+
story: "All available states and configurations of the TextArea component."
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
58
108
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
109
|
+
var InForm = exports.InForm = {
|
|
110
|
+
render: function render() {
|
|
111
|
+
return /*#__PURE__*/_react.default.createElement("form", null, /*#__PURE__*/_react.default.createElement(_TextArea.TextArea, {
|
|
112
|
+
mt: 1,
|
|
113
|
+
title: "Example",
|
|
114
|
+
required: true,
|
|
115
|
+
placeholder: "Submission should be blocked unless this has a value"
|
|
116
|
+
}), /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
117
|
+
mt: 1
|
|
118
|
+
}, "Submit"));
|
|
119
|
+
},
|
|
120
|
+
parameters: {
|
|
121
|
+
docs: {
|
|
122
|
+
description: {
|
|
123
|
+
story: "TextArea used within a form with required validation."
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
69
127
|
};
|
|
70
|
-
Required.displayName = "Required";
|
|
71
128
|
//# sourceMappingURL=TextArea.story.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.story.js","names":["_test","require","_react","_interopRequireDefault","
|
|
1
|
+
{"version":3,"file":"TextArea.story.js","names":["_test","require","_react","_interopRequireDefault","_Button","_TextArea","_storybookBlocklist","obj","__esModule","default","_default","exports","component","TextArea","title","tags","parameters","docs","description","controls","exclude","STORYBOOK_PROPS_BLOCKLIST","Default","args","placeholder","onChange","fn","story","AllStates","render","createElement","style","display","flexDirection","gap","error","disabled","required","characterLimit","characterLimitHelper","defaultValue","name","InForm","mt","Button"],"sources":["../../../src/elements/TextArea/TextArea.story.tsx"],"sourcesContent":["import { fn } from \"@storybook/test\"\nimport React from \"react\"\nimport { Button } from \"../Button\"\nimport { TextArea } from \"./TextArea\"\nimport { STORYBOOK_PROPS_BLOCKLIST } from \"../../utils/storybookBlocklist\"\n\nexport default {\n component: TextArea,\n title: \"Components/TextArea\",\n tags: [\"autodocs\"],\n parameters: {\n docs: {\n description: {\n component:\n \"A multi-line text input component with character limits, validation, and form states.\",\n },\n },\n controls: {\n exclude: STORYBOOK_PROPS_BLOCKLIST,\n },\n },\n}\n\nexport const Default = {\n args: {\n placeholder: \"Start typing...\",\n onChange: fn(),\n },\n parameters: {\n docs: {\n description: {\n story: \"Basic text area with placeholder text.\",\n },\n },\n },\n}\n\nexport const AllStates = {\n render: () => (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <TextArea placeholder=\"Default state\" onChange={fn()} />\n <TextArea\n error=\"Something went wrong.\"\n placeholder=\"Error state\"\n onChange={fn()}\n />\n <TextArea disabled placeholder=\"Disabled state\" onChange={fn()} />\n <TextArea title=\"Note\" placeholder=\"With title\" onChange={fn()} />\n <TextArea\n title=\"Note\"\n required\n placeholder=\"Required field\"\n onChange={fn()}\n />\n <TextArea\n characterLimit={10}\n placeholder=\"Character limit\"\n onChange={fn()}\n />\n <TextArea\n characterLimit={10}\n characterLimitHelper\n required\n placeholder=\"With helper text\"\n onChange={fn()}\n />\n <TextArea\n characterLimit={10}\n defaultValue=\"hello\"\n placeholder=\"Under limit\"\n onChange={fn()}\n />\n <TextArea\n characterLimit={10}\n defaultValue=\"hello world\"\n placeholder=\"Over limit\"\n onChange={fn()}\n />\n <TextArea\n name=\"my-text-area\"\n title=\"Note\"\n description=\"This is my description\"\n placeholder=\"With description\"\n onChange={fn()}\n />\n <TextArea\n defaultValue=\"Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem nam iste beatae reiciendis ea harum, aspernatur, eius, omnis eveniet corporis consequatur minima assumenda ipsum dolor dolorum perferendis animi distinctio eligendi?\"\n placeholder=\"With long content\"\n onChange={fn()}\n />\n </div>\n ),\n parameters: {\n docs: {\n description: {\n story:\n \"All available states and configurations of the TextArea component.\",\n },\n },\n },\n}\n\nexport const InForm = {\n render: () => (\n <form>\n <TextArea\n mt={1}\n title=\"Example\"\n required\n placeholder=\"Submission should be blocked unless this has a value\"\n />\n <Button mt={1}>Submit</Button>\n </form>\n ),\n parameters: {\n docs: {\n description: {\n story: \"TextArea used within a form with required validation.\",\n },\n },\n },\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAA0E,SAAAE,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAE3D;EACbG,SAAS,EAAEC,kBAAQ;EACnBC,KAAK,EAAE,qBAAqB;EAC5BC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXN,SAAS,EACP;MACJ;IACF,CAAC;IACDO,QAAQ,EAAE;MACNC,OAAO,EAAEC;IACX;EACJ;AACF,CAAC;AAEM,IAAMC,OAAO,GAAAX,OAAA,CAAAW,OAAA,GAAG;EACrBC,IAAI,EAAE;IACJC,WAAW,EAAE,iBAAiB;IAC9BC,QAAQ,EAAE,IAAAC,QAAE;EACd,CAAC;EACDV,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXS,KAAK,EAAE;MACT;I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,aAAA,4BACE5B,MAAA,CAAAO,OAAA,CAAAqB,aAAA,CAACzB,SAAA,CAAAQ,QAAQ;MACP8B,EAAE,EAAE,CAAE;MACN7B,KAAK,EAAC,SAAS;MACfuB,QAAQ;MACRb,WAAW,EAAC;IAAsD,EAClE,eACFtB,MAAA,CAAAO,OAAA,CAAAqB,aAAA,CAAC1B,OAAA,CAAAwC,MAAM;MAACD,EAAE,EAAE;IAAE,GAAC,QAAM,CAAS,CACzB;EAAA,CACR;EACD3B,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXS,KAAK,EAAE;MACT;IACF;EACF;AACF,CAAC"}
|
|
@@ -1,6 +1,95 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
declare const _default: {
|
|
2
|
+
component: import("react").FC<import("react").PropsWithChildren<import("./Toast").ToastProps>>;
|
|
3
3
|
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
component: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
controls: {
|
|
12
|
+
exclude: string[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
4
15
|
};
|
|
5
16
|
export default _default;
|
|
6
|
-
export declare const
|
|
17
|
+
export declare const Message: {
|
|
18
|
+
args: {
|
|
19
|
+
id: string;
|
|
20
|
+
variant: string;
|
|
21
|
+
message: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
parameters: {
|
|
25
|
+
docs: {
|
|
26
|
+
description: {
|
|
27
|
+
story: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const Alert: {
|
|
33
|
+
args: {
|
|
34
|
+
id: string;
|
|
35
|
+
variant: string;
|
|
36
|
+
message: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
parameters: {
|
|
40
|
+
docs: {
|
|
41
|
+
description: {
|
|
42
|
+
story: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const Success: {
|
|
48
|
+
args: {
|
|
49
|
+
id: string;
|
|
50
|
+
variant: string;
|
|
51
|
+
message: string;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
parameters: {
|
|
55
|
+
docs: {
|
|
56
|
+
description: {
|
|
57
|
+
story: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const Error: {
|
|
63
|
+
args: {
|
|
64
|
+
id: string;
|
|
65
|
+
variant: string;
|
|
66
|
+
message: string;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
parameters: {
|
|
70
|
+
docs: {
|
|
71
|
+
description: {
|
|
72
|
+
story: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export declare const WithAction: {
|
|
78
|
+
args: {
|
|
79
|
+
id: string;
|
|
80
|
+
variant: string;
|
|
81
|
+
message: string;
|
|
82
|
+
description: string;
|
|
83
|
+
action: {
|
|
84
|
+
label: string;
|
|
85
|
+
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
parameters: {
|
|
89
|
+
docs: {
|
|
90
|
+
description: {
|
|
91
|
+
story: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
@@ -3,36 +3,102 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.
|
|
6
|
+
exports.default = exports.WithAction = exports.Success = exports.Message = exports.Error = exports.Alert = void 0;
|
|
7
7
|
var _test = require("@storybook/test");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _storybookStates = require("storybook-states");
|
|
10
8
|
var _Toast = require("./Toast");
|
|
11
|
-
|
|
9
|
+
var _storybookBlocklist = require("../../utils/storybookBlocklist");
|
|
12
10
|
var _default = exports.default = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
variant: "alert"
|
|
21
|
-
}, {
|
|
22
|
-
variant: "success"
|
|
23
|
-
}, {
|
|
24
|
-
variant: "error"
|
|
25
|
-
}, {
|
|
26
|
-
action: {
|
|
27
|
-
label: "Undo",
|
|
28
|
-
onClick: (0, _test.fn)()
|
|
11
|
+
component: _Toast.Toast,
|
|
12
|
+
title: "Components/Toast",
|
|
13
|
+
tags: ["autodocs"],
|
|
14
|
+
parameters: {
|
|
15
|
+
docs: {
|
|
16
|
+
description: {
|
|
17
|
+
component: "A toast notification component with different variants for messages, alerts, success, and errors."
|
|
29
18
|
}
|
|
30
|
-
}
|
|
31
|
-
|
|
19
|
+
},
|
|
20
|
+
controls: {
|
|
21
|
+
exclude: _storybookBlocklist.STORYBOOK_PROPS_BLOCKLIST
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var Message = exports.Message = {
|
|
26
|
+
args: {
|
|
32
27
|
id: "example",
|
|
28
|
+
variant: "message",
|
|
33
29
|
message: "Message Title",
|
|
34
30
|
description: "This is placeholder text."
|
|
35
|
-
}
|
|
31
|
+
},
|
|
32
|
+
parameters: {
|
|
33
|
+
docs: {
|
|
34
|
+
description: {
|
|
35
|
+
story: "Basic message toast notification."
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var Alert = exports.Alert = {
|
|
41
|
+
args: {
|
|
42
|
+
id: "example",
|
|
43
|
+
variant: "alert",
|
|
44
|
+
message: "Alert Message",
|
|
45
|
+
description: "This is an alert notification."
|
|
46
|
+
},
|
|
47
|
+
parameters: {
|
|
48
|
+
docs: {
|
|
49
|
+
description: {
|
|
50
|
+
story: "Alert toast notification for warnings."
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var Success = exports.Success = {
|
|
56
|
+
args: {
|
|
57
|
+
id: "example",
|
|
58
|
+
variant: "success",
|
|
59
|
+
message: "Success Message",
|
|
60
|
+
description: "This is a success notification."
|
|
61
|
+
},
|
|
62
|
+
parameters: {
|
|
63
|
+
docs: {
|
|
64
|
+
description: {
|
|
65
|
+
story: "Success toast notification."
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
var Error = exports.Error = {
|
|
71
|
+
args: {
|
|
72
|
+
id: "example",
|
|
73
|
+
variant: "error",
|
|
74
|
+
message: "Error Message",
|
|
75
|
+
description: "This is an error notification."
|
|
76
|
+
},
|
|
77
|
+
parameters: {
|
|
78
|
+
docs: {
|
|
79
|
+
description: {
|
|
80
|
+
story: "Error toast notification."
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var WithAction = exports.WithAction = {
|
|
86
|
+
args: {
|
|
87
|
+
id: "example",
|
|
88
|
+
variant: "message",
|
|
89
|
+
message: "Message with Action",
|
|
90
|
+
description: "This toast has an action button.",
|
|
91
|
+
action: {
|
|
92
|
+
label: "Undo",
|
|
93
|
+
onClick: (0, _test.fn)()
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
parameters: {
|
|
97
|
+
docs: {
|
|
98
|
+
description: {
|
|
99
|
+
story: "Toast with an action button."
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
36
103
|
};
|
|
37
|
-
Default.displayName = "Default";
|
|
38
104
|
//# sourceMappingURL=Toast.story.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.story.js","names":["_test","require","
|
|
1
|
+
{"version":3,"file":"Toast.story.js","names":["_test","require","_Toast","_storybookBlocklist","_default","exports","default","component","Toast","title","tags","parameters","docs","description","controls","exclude","STORYBOOK_PROPS_BLOCKLIST","Message","args","id","variant","message","story","Alert","Success","Error","WithAction","action","label","onClick","fn"],"sources":["../../../src/elements/Toasts/Toast.story.tsx"],"sourcesContent":["import { fn } from \"@storybook/test\"\nimport { Toast } from \"./Toast\"\nimport { STORYBOOK_PROPS_BLOCKLIST } from \"../../utils/storybookBlocklist\"\n\nexport default {\n component: Toast,\n title: \"Components/Toast\",\n tags: [\"autodocs\"],\n parameters: {\n docs: {\n description: {\n component:\n \"A toast notification component with different variants for messages, alerts, success, and errors.\",\n },\n },\n controls: {\n exclude: STORYBOOK_PROPS_BLOCKLIST,\n },\n },\n}\n\nexport const Message = {\n args: {\n id: \"example\",\n variant: \"message\",\n message: \"Message Title\",\n description: \"This is placeholder text.\",\n },\n parameters: {\n docs: {\n description: {\n story: \"Basic message toast notification.\",\n },\n },\n },\n}\n\nexport const Alert = {\n args: {\n id: \"example\",\n variant: \"alert\",\n message: \"Alert Message\",\n description: \"This is an alert notification.\",\n },\n parameters: {\n docs: {\n description: {\n story: \"Alert toast notification for warnings.\",\n },\n },\n },\n}\n\nexport const Success = {\n args: {\n id: \"example\",\n variant: \"success\",\n message: \"Success Message\",\n description: \"This is a success notification.\",\n },\n parameters: {\n docs: {\n description: {\n story: \"Success toast notification.\",\n },\n },\n },\n}\n\nexport const Error = {\n args: {\n id: \"example\",\n variant: \"error\",\n message: \"Error Message\",\n description: \"This is an error notification.\",\n },\n parameters: {\n docs: {\n description: {\n story: \"Error toast notification.\",\n },\n },\n },\n}\n\nexport const WithAction = {\n args: {\n id: \"example\",\n variant: \"message\",\n message: \"Message with Action\",\n description: \"This toast has an action button.\",\n action: { label: \"Undo\", onClick: fn() },\n },\n parameters: {\n docs: {\n description: {\n story: \"Toast with an action button.\",\n },\n },\n },\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GA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AAO,EAAE,OAAO;IAChBC,OAAO,EAAE,eAAe;IACxBR,WAAW,EAAE;EACf,CAAC;EACDF,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXS,KAAK,EAAE;MACT;IACF;EACF;AACF,CAAC;AAEM,IAAMI,UAAU,GAAArB,OAAA,CAAAqB,UAAA,GAAG;EACxBR,IAAI,EAAE;IACJC,EAAE,EAAE,SAAS;IACbC,OAAO,EAAE,SAAS;IAClBC,OAAO,EAAE,qBAAqB;IAC9BR,WAAW,EAAE,kCAAkC;IAC/Cc,MAAM,EAAE;MAAEC,KAAK,EAAE,MAAM;MAAEC,OAAO,EAAE,IAAAC,QAAE;IAAG;EACzC,CAAC;EACDnB,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXS,KAAK,EAAE;MACT;IACF;EACF;AACF,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: {
|
|
3
|
+
component: React.FC<React.PropsWithChildren<import("./Toasts").ToastsProps>>;
|
|
3
4
|
title: string;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
controls: {
|
|
12
|
+
exclude: string[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
4
16
|
};
|
|
5
17
|
export default _default;
|
|
6
18
|
export declare const Demo: {
|
|
7
|
-
()
|
|
19
|
+
render: () => React.JSX.Element;
|
|
8
20
|
decorators: ((Story: any) => React.JSX.Element)[];
|
|
9
21
|
};
|