@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
|
@@ -1,91 +1,93 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.default = exports.
|
|
8
|
-
var
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _storybookStates = require("storybook-states");
|
|
11
|
-
var _Box = require("../Box");
|
|
12
|
-
var _Flex = require("../Flex");
|
|
13
|
-
var _Text = require("../Text");
|
|
6
|
+
exports.default = exports.WithError = exports.WithCustomChildren = exports.Unchecked = exports.HoverAndSelected = exports.Hover = exports.FullWidth = exports.FocusAndSelected = exports.Focus = exports.DisabledAndChecked = exports.Disabled = exports.Checked = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
14
8
|
var _Checkbox = require("./Checkbox");
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
20
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
21
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
22
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
|
+
var _storybookBlocklist = require("../../utils/storybookBlocklist");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
11
|
var _default = exports.default = {
|
|
24
|
-
title: "Components/Checkbox"
|
|
12
|
+
title: "Components/Checkbox",
|
|
13
|
+
component: _Checkbox.Checkbox,
|
|
14
|
+
tags: ["autodocs"],
|
|
15
|
+
parameters: {
|
|
16
|
+
docs: {
|
|
17
|
+
description: {
|
|
18
|
+
component: "Checkbox component provides a selectable input with label support. Includes states for selected, disabled, error, focus, and hover interactions."
|
|
19
|
+
},
|
|
20
|
+
controls: {
|
|
21
|
+
exclude: _storybookBlocklist.STORYBOOK_PROPS_BLOCKLIST
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
25
|
};
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, {
|
|
31
|
-
focus: true
|
|
32
|
-
}, {
|
|
33
|
-
focus: true,
|
|
34
|
-
selected: true
|
|
35
|
-
}, {
|
|
36
|
-
hover: true
|
|
37
|
-
}, {
|
|
38
|
-
hover: true,
|
|
39
|
-
selected: true
|
|
40
|
-
}, {
|
|
41
|
-
disabled: true
|
|
42
|
-
}, {
|
|
43
|
-
disabled: true,
|
|
44
|
-
selected: true
|
|
45
|
-
}, {
|
|
46
|
-
error: true
|
|
47
|
-
}, {
|
|
48
|
-
error: true,
|
|
49
|
-
selected: true
|
|
50
|
-
}, {
|
|
51
|
-
children: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "A label ", /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "(", 2 + 2, ")"))
|
|
52
|
-
}, {
|
|
53
|
-
children: /*#__PURE__*/_react.default.createElement("div", null, "Unstyled label")
|
|
54
|
-
}]
|
|
55
|
-
}, /*#__PURE__*/_react.default.createElement(_Checkbox.Checkbox, null, "A label"));
|
|
26
|
+
var Unchecked = exports.Unchecked = {
|
|
27
|
+
args: {
|
|
28
|
+
children: "Checkbox label"
|
|
29
|
+
}
|
|
56
30
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
31
|
+
var Checked = exports.Checked = {
|
|
32
|
+
args: {
|
|
33
|
+
children: "Checked checkbox",
|
|
34
|
+
selected: true
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var WithError = exports.WithError = {
|
|
38
|
+
args: {
|
|
39
|
+
children: "Checkbox with error",
|
|
40
|
+
error: true
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var Disabled = exports.Disabled = {
|
|
44
|
+
args: {
|
|
45
|
+
children: "Disabled checkbox",
|
|
46
|
+
disabled: true
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var DisabledAndChecked = exports.DisabledAndChecked = {
|
|
50
|
+
args: {
|
|
51
|
+
children: "Disabled and checked",
|
|
52
|
+
disabled: true,
|
|
53
|
+
selected: true
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var Focus = exports.Focus = {
|
|
57
|
+
args: {
|
|
58
|
+
children: "Focused checkbox",
|
|
59
|
+
focus: true
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
var Hover = exports.Hover = {
|
|
63
|
+
args: {
|
|
64
|
+
children: "Hovered checkbox",
|
|
65
|
+
hover: true
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var FocusAndSelected = exports.FocusAndSelected = {
|
|
69
|
+
args: {
|
|
70
|
+
children: "Focused and selected",
|
|
71
|
+
focus: true,
|
|
72
|
+
selected: true
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
var HoverAndSelected = exports.HoverAndSelected = {
|
|
76
|
+
args: {
|
|
77
|
+
children: "Hovered and selected",
|
|
78
|
+
hover: true,
|
|
79
|
+
selected: true
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var WithCustomChildren = exports.WithCustomChildren = {
|
|
83
|
+
args: {
|
|
84
|
+
children: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "A label ", /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "(", 2 + 2, ")"))
|
|
85
|
+
}
|
|
70
86
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
width: "100%"
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement(_Flex.Flex, {
|
|
78
|
-
width: "35%",
|
|
79
|
-
justifyContent: "space-between",
|
|
80
|
-
alignItems: "center"
|
|
81
|
-
}, /*#__PURE__*/_react.default.createElement(_Text.Text, {
|
|
82
|
-
lineHeight: 1
|
|
83
|
-
}, "Green"), /*#__PURE__*/_react.default.createElement(_Box.Box, {
|
|
84
|
-
bg: "green",
|
|
85
|
-
width: 20,
|
|
86
|
-
height: 20,
|
|
87
|
-
borderRadius: "50%"
|
|
88
|
-
})))));
|
|
87
|
+
var FullWidth = exports.FullWidth = {
|
|
88
|
+
args: {
|
|
89
|
+
width: "100%",
|
|
90
|
+
children: "Full width checkbox"
|
|
91
|
+
}
|
|
89
92
|
};
|
|
90
|
-
Extended.displayName = "Extended";
|
|
91
93
|
//# sourceMappingURL=Checkbox.story.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.story.js","names":["
|
|
1
|
+
{"version":3,"file":"Checkbox.story.js","names":["_react","_interopRequireDefault","require","_Checkbox","_storybookBlocklist","obj","__esModule","default","_default","exports","title","component","Checkbox","tags","parameters","docs","description","controls","exclude","STORYBOOK_PROPS_BLOCKLIST","Unchecked","args","children","Checked","selected","WithError","error","Disabled","disabled","DisabledAndChecked","Focus","focus","Hover","hover","FocusAndSelected","HoverAndSelected","WithCustomChildren","createElement","Fragment","FullWidth","width"],"sources":["../../../src/elements/Checkbox/Checkbox.story.tsx"],"sourcesContent":["import React from \"react\"\nimport { Checkbox } from \"./Checkbox\"\nimport { STORYBOOK_PROPS_BLOCKLIST } from \"../../utils/storybookBlocklist\"\n\nexport default {\n title: \"Components/Checkbox\",\n component: Checkbox,\n tags: [\"autodocs\"],\n parameters: {\n docs: {\n description: {\n component:\n \"Checkbox component provides a selectable input with label support. Includes states for selected, disabled, error, focus, and hover interactions.\",\n },\n controls: {\n exclude: STORYBOOK_PROPS_BLOCKLIST,\n },\n },\n },\n}\n\nexport const Unchecked = {\n args: {\n children: \"Checkbox label\",\n },\n}\n\nexport const Checked = {\n args: {\n children: \"Checked checkbox\",\n selected: true,\n },\n}\n\nexport const WithError = {\n args: {\n children: \"Checkbox with error\",\n error: true,\n },\n}\n\nexport const Disabled = {\n args: {\n children: \"Disabled checkbox\",\n disabled: true,\n },\n}\n\nexport const DisabledAndChecked = {\n args: {\n children: \"Disabled and checked\",\n disabled: true,\n selected: true,\n },\n}\n\nexport const Focus = {\n args: {\n children: \"Focused checkbox\",\n focus: true,\n },\n}\n\nexport const Hover = {\n args: {\n children: \"Hovered checkbox\",\n hover: true,\n },\n}\n\nexport const FocusAndSelected = {\n args: {\n children: \"Focused and selected\",\n focus: true,\n selected: true,\n },\n}\n\nexport const HoverAndSelected = {\n args: {\n children: \"Hovered and selected\",\n hover: true,\n selected: true,\n },\n}\n\nexport const WithCustomChildren = {\n args: {\n children: (\n <>\n A label <>({2 + 2})</>\n </>\n ),\n },\n}\n\nexport const FullWidth = {\n args: {\n width: \"100%\",\n children: \"Full width checkbox\",\n },\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAA0E,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAE3D;EACbG,KAAK,EAAE,qBAAqB;EAC5BC,SAAS,EAAEC,kBAAQ;EACnBC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXL,SAAS,EACP;MACJ,CAAC;MACDM,QAAQ,EAAE;QACRC,OAAO,EAAEC;MACX;IACF;EACF;AACF,CAAC;AAEM,IAAMC,SAAS,GAAAX,OAAA,CAAAW,SAAA,GAAG;EACvBC,IAAI,EAAE;IACJC,QAAQ,EAAE;EACZ;AACF,CAAC;AAEM,IAAMC,OAAO,GAAAd,OAAA,CAAAc,OAAA,GAAG;EACrBF,IAAI,EAAE;IACJC,QAAQ,EAAE,kBAAkB;IAC5BE,QAAQ,EAAE;EACZ;AACF,CAAC;AAEM,IAAMC,SAAS,GAAAhB,OAAA,CAAAgB,SAAA,GAAG;EACvBJ,IAAI,EAAE;IACJC,QAAQ,EAAE,qBAAqB;IAC/BI,KAAK,EAAE;EACT;AACF,CAAC;AAEM,IAAMC,QAAQ,GAAAlB,OAAA,CAAAkB,QAAA,GAAG;EACtBN,IAAI,EAAE;IACJC,QAAQ,EAAE,mBAAmB;IAC7BM,QAAQ,EAAE;EACZ;AACF,CAAC;AAEM,IAAMC,kBAAkB,GAAApB,OAAA,CAAAoB,kBAAA,GAAG;EAChCR,IAAI,EAAE;IACJC,QAAQ,EAAE,sBAAsB;IAChCM,QAAQ,EAAE,IAAI;IACdJ,QAAQ,EAAE;EACZ;AACF,CAAC;AAEM,IAAMM,KAAK,GAAArB,OAAA,CAAAqB,KAAA,GAAG;EACnBT,IAAI,EAAE;IACJC,QAAQ,EAAE,kBAAkB;IAC5BS,KAAK,EAAE;EACT;AACF,CAAC;AAEM,IAAMC,KAAK,GAAAvB,OAAA,CAAAuB,KAAA,GAAG;EACnBX,IAAI,EAAE;IACJC,QAAQ,EAAE,kBAAkB;IAC5BW,KAAK,EAAE;EACT;AACF,CAAC;AAEM,IAAMC,gBAAgB,GAAAzB,OAAA,CAAAyB,gBAAA,GAAG;EAC9Bb,IAAI,EAAE;IACJC,QAAQ,EAAE,sBAAsB;IAChCS,KAAK,EAAE,IAAI;IACXP,QAAQ,EAAE;EACZ;AACF,CAAC;AAEM,IAAMW,gBAAgB,GAAA1B,OAAA,CAAA0B,gBAAA,GAAG;EAC9Bd,IAAI,EAAE;IACJC,QAAQ,EAAE,sBAAsB;IAChCW,KAAK,EAAE,IAAI;IACXT,QAAQ,EAAE;EACZ;AACF,CAAC;AAEM,IAAMY,kBAAkB,GAAA3B,OAAA,CAAA2B,kBAAA,GAAG;EAChCf,IAAI,EAAE;IACJC,QAAQ,eACNtB,MAAA,CAAAO,OAAA,CAAA8B,aAAA,CAAArC,MAAA,CAAAO,OAAA,CAAA+B,QAAA,QAAE,UACQ,eAAAtC,MAAA,CAAAO,OAAA,CAAA8B,aAAA,CAAArC,MAAA,CAAAO,OAAA,CAAA+B,QAAA,QAAE,GAAC,EAAC,CAAC,GAAG,CAAC,EAAC,GAAC,CAAG;EAG5B;AACF,CAAC;AAEM,IAAMC,SAAS,GAAA9B,OAAA,CAAA8B,SAAA,GAAG;EACvBlB,IAAI,EAAE;IACJmB,KAAK,EAAE,MAAM;IACblB,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -1,12 +1,57 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
+
component: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import("./Clickable").ClickableProps>> & string;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
controls: {
|
|
13
|
+
exclude: string[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
4
16
|
};
|
|
5
17
|
export default _default;
|
|
6
|
-
export declare const Default:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
export declare const Default: {
|
|
19
|
+
args: {
|
|
20
|
+
children: string;
|
|
21
|
+
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const WithUnderline: {
|
|
25
|
+
args: {
|
|
26
|
+
children: string;
|
|
27
|
+
textDecoration: string;
|
|
28
|
+
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const DefaultCursor: {
|
|
32
|
+
args: {
|
|
33
|
+
children: string;
|
|
34
|
+
cursor: string;
|
|
35
|
+
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const MultiLine: {
|
|
39
|
+
args: {
|
|
40
|
+
children: React.JSX.Element;
|
|
41
|
+
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const ButtonType: {
|
|
45
|
+
args: {
|
|
46
|
+
children: string;
|
|
47
|
+
type: string;
|
|
48
|
+
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const SubmitType: {
|
|
52
|
+
args: {
|
|
53
|
+
children: string;
|
|
54
|
+
type: string;
|
|
55
|
+
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
11
56
|
};
|
|
12
57
|
};
|
|
@@ -1,73 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.default = exports.
|
|
6
|
+
exports.default = exports.WithUnderline = exports.SubmitType = exports.MultiLine = exports.DefaultCursor = exports.Default = exports.ButtonType = void 0;
|
|
8
7
|
var _test = require("@storybook/test");
|
|
9
|
-
var _react =
|
|
10
|
-
var _storybookStates = require("storybook-states");
|
|
11
|
-
var _Box = require("../Box");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
9
|
var _Clickable = require("./Clickable");
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
20
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10
|
+
var _storybookBlocklist = require("../../utils/storybookBlocklist");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
12
|
var _default = exports.default = {
|
|
22
|
-
title: "Components/Clickable"
|
|
13
|
+
title: "Components/Clickable",
|
|
14
|
+
component: _Clickable.Clickable,
|
|
15
|
+
tags: ["autodocs"],
|
|
16
|
+
parameters: {
|
|
17
|
+
docs: {
|
|
18
|
+
description: {
|
|
19
|
+
component: "Clickable component provides an accessible clickable element that can be styled like a button but renders as a span by default. Includes proper focus and interaction states."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
controls: {
|
|
23
|
+
exclude: _storybookBlocklist.STORYBOOK_PROPS_BLOCKLIST
|
|
24
|
+
}
|
|
25
|
+
}
|
|
23
26
|
};
|
|
24
|
-
var Default = exports.Default =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
textDecoration: "underline"
|
|
28
|
-
}, {
|
|
29
|
-
cursor: "default"
|
|
30
|
-
}, {
|
|
31
|
-
children: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "Inherits the page\u2019s", /*#__PURE__*/_react.default.createElement("br", null), "text alignment.")
|
|
32
|
-
}, {
|
|
33
|
-
bg: "red100",
|
|
34
|
-
color: "mono0",
|
|
35
|
-
m: 2,
|
|
36
|
-
p: 1
|
|
37
|
-
}]
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement(_Clickable.Clickable, {
|
|
27
|
+
var Default = exports.Default = {
|
|
28
|
+
args: {
|
|
29
|
+
children: "Clickable",
|
|
39
30
|
onClick: (0, _test.fn)()
|
|
40
|
-
}
|
|
31
|
+
}
|
|
41
32
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
33
|
+
var WithUnderline = exports.WithUnderline = {
|
|
34
|
+
args: {
|
|
35
|
+
children: "Underlined Clickable",
|
|
36
|
+
textDecoration: "underline",
|
|
37
|
+
onClick: (0, _test.fn)()
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var DefaultCursor = exports.DefaultCursor = {
|
|
41
|
+
args: {
|
|
42
|
+
children: "Default Cursor",
|
|
43
|
+
cursor: "default",
|
|
44
|
+
onClick: (0, _test.fn)()
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var MultiLine = exports.MultiLine = {
|
|
48
|
+
args: {
|
|
49
|
+
children: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "Inherits the page's", /*#__PURE__*/_react.default.createElement("br", null), "text alignment."),
|
|
50
|
+
onClick: (0, _test.fn)()
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var ButtonType = exports.ButtonType = {
|
|
54
|
+
args: {
|
|
55
|
+
children: "Button Type",
|
|
61
56
|
type: "button",
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
border: "1px solid",
|
|
65
|
-
p: 2,
|
|
66
|
-
type: "submit"
|
|
67
|
-
}, "type=\"submit\"")));
|
|
57
|
+
onClick: (0, _test.fn)()
|
|
58
|
+
}
|
|
68
59
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
60
|
+
var SubmitType = exports.SubmitType = {
|
|
61
|
+
args: {
|
|
62
|
+
children: "Submit Type",
|
|
63
|
+
type: "submit",
|
|
64
|
+
onClick: (0, _test.fn)()
|
|
65
|
+
}
|
|
72
66
|
};
|
|
73
67
|
//# sourceMappingURL=Clickable.story.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clickable.story.js","names":["_test","require","_react","
|
|
1
|
+
{"version":3,"file":"Clickable.story.js","names":["_test","require","_react","_interopRequireDefault","_Clickable","_storybookBlocklist","obj","__esModule","default","_default","exports","title","component","Clickable","tags","parameters","docs","description","controls","exclude","STORYBOOK_PROPS_BLOCKLIST","Default","args","children","onClick","fn","WithUnderline","textDecoration","DefaultCursor","cursor","MultiLine","createElement","Fragment","ButtonType","type","SubmitType"],"sources":["../../../src/elements/Clickable/Clickable.story.tsx"],"sourcesContent":["import { fn } from \"@storybook/test\"\nimport React from \"react\"\nimport { Clickable } from \"./Clickable\"\nimport { STORYBOOK_PROPS_BLOCKLIST } from \"../../utils/storybookBlocklist\"\n\nexport default {\n title: \"Components/Clickable\",\n component: Clickable,\n tags: [\"autodocs\"],\n parameters: {\n docs: {\n description: {\n component:\n \"Clickable component provides an accessible clickable element that can be styled like a button but renders as a span by default. Includes proper focus and interaction states.\",\n },\n },\n controls: {\n exclude: STORYBOOK_PROPS_BLOCKLIST,\n },\n },\n}\n\nexport const Default = {\n args: {\n children: \"Clickable\",\n onClick: fn(),\n },\n}\n\nexport const WithUnderline = {\n args: {\n children: \"Underlined Clickable\",\n textDecoration: \"underline\",\n onClick: fn(),\n },\n}\n\nexport const DefaultCursor = {\n args: {\n children: \"Default Cursor\",\n cursor: \"default\",\n onClick: fn(),\n },\n}\n\nexport const MultiLine = {\n args: {\n children: (\n <>\n Inherits the page's\n <br />\n text alignment.\n </>\n ),\n onClick: fn(),\n },\n}\n\nexport const ButtonType = {\n args: {\n children: \"Button Type\",\n type: \"button\",\n onClick: fn(),\n },\n}\n\nexport const SubmitType = {\n args: {\n children: \"Submit Type\",\n type: \"submit\",\n onClick: fn(),\n },\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAA0E,SAAAE,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAE3D;EACbG,KAAK,EAAE,sBAAsB;EAC7BC,SAAS,EAAEC,oBAAS;EACpBC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXL,SAAS,EACP;MACJ;IACF,CAAC;IACDM,QAAQ,EAAE;MACNC,OAAO,EAAEC;IACX;EACJ;AACF,CAAC;AAEM,IAAMC,OAAO,GAAAX,OAAA,CAAAW,OAAA,GAAG;EACrBC,IAAI,EAAE;IACJC,QAAQ,EAAE,WAAW;IACrBC,OAAO,EAAE,IAAAC,QAAE;EACb;AACF,CAAC;AAEM,IAAMC,aAAa,GAAAhB,OAAA,CAAAgB,aAAA,GAAG;EAC3BJ,IAAI,EAAE;IACJC,QAAQ,EAAE,sBAAsB;IAChCI,cAAc,EAAE,WAAW;IAC3BH,OAAO,EAAE,IAAAC,QAAE;EACb;AACF,CAAC;AAEM,IAAMG,aAAa,GAAAlB,OAAA,CAAAkB,aAAA,GAAG;EAC3BN,IAAI,EAAE;IACJC,QAAQ,EAAE,gBAAgB;IAC1BM,MAAM,EAAE,SAAS;IACjBL,OAAO,EAAE,IAAAC,QAAE;EACb;AACF,CAAC;AAEM,IAAMK,SAAS,GAAApB,OAAA,CAAAoB,SAAA,GAAG;EACvBR,IAAI,EAAE;IACJC,QAAQ,eACNrB,MAAA,CAAAM,OAAA,CAAAuB,aAAA,CAAA7B,MAAA,CAAAM,OAAA,CAAAwB,QAAA,QAAE,qBAEA,eAAA9B,MAAA,CAAAM,OAAA,CAAAuB,aAAA,YAAM,mBAER,CACD;IACDP,OAAO,EAAE,IAAAC,QAAE;EACb;AACF,CAAC;AAEM,IAAMQ,UAAU,GAAAvB,OAAA,CAAAuB,UAAA,GAAG;EACxBX,IAAI,EAAE;IACJC,QAAQ,EAAE,aAAa;IACvBW,IAAI,EAAE,QAAQ;IACdV,OAAO,EAAE,IAAAC,QAAE;EACb;AACF,CAAC;AAEM,IAAMU,UAAU,GAAAzB,OAAA,CAAAyB,UAAA,GAAG;EACxBb,IAAI,EAAE;IACJC,QAAQ,EAAE,aAAa;IACvBW,IAAI,EAAE,QAAQ;IACdV,OAAO,EAAE,IAAAC,QAAE;EACb;AACF,CAAC"}
|
|
@@ -1,10 +1,44 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: {
|
|
3
|
+
component: React.FC<React.PropsWithChildren<import("./Drawer").DrawerProps>>;
|
|
3
4
|
title: string;
|
|
5
|
+
tags: string[];
|
|
4
6
|
parameters: {
|
|
5
7
|
layout: string;
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
controls: {
|
|
14
|
+
exclude: string[];
|
|
15
|
+
};
|
|
6
16
|
};
|
|
7
17
|
};
|
|
8
18
|
export default _default;
|
|
9
|
-
export declare const Default:
|
|
10
|
-
|
|
19
|
+
export declare const Default: {
|
|
20
|
+
args: {
|
|
21
|
+
anchor: string;
|
|
22
|
+
};
|
|
23
|
+
render: () => React.JSX.Element;
|
|
24
|
+
parameters: {
|
|
25
|
+
docs: {
|
|
26
|
+
description: {
|
|
27
|
+
story: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const Left: {
|
|
33
|
+
args: {
|
|
34
|
+
anchor: string;
|
|
35
|
+
};
|
|
36
|
+
render: () => React.JSX.Element;
|
|
37
|
+
parameters: {
|
|
38
|
+
docs: {
|
|
39
|
+
description: {
|
|
40
|
+
story: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _Drawer = require("./Drawer");
|
|
10
10
|
var _Flex = require("../Flex");
|
|
11
11
|
var _Button = require("../Button");
|
|
12
|
+
var _storybookBlocklist = require("../../utils/storybookBlocklist");
|
|
12
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -18,9 +19,19 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
18
19
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
19
20
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
21
|
var _default = exports.default = {
|
|
22
|
+
component: _Drawer.Drawer,
|
|
21
23
|
title: "Components/Drawer",
|
|
24
|
+
tags: ["autodocs"],
|
|
22
25
|
parameters: {
|
|
23
|
-
layout: "fullscreen"
|
|
26
|
+
layout: "fullscreen",
|
|
27
|
+
docs: {
|
|
28
|
+
description: {
|
|
29
|
+
component: "A sliding drawer component that can be anchored to the left or right side of the screen."
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
controls: {
|
|
33
|
+
exclude: _storybookBlocklist.STORYBOOK_PROPS_BLOCKLIST
|
|
34
|
+
}
|
|
24
35
|
}
|
|
25
36
|
};
|
|
26
37
|
var Layout = function Layout(_ref) {
|
|
@@ -63,16 +74,38 @@ var Layout = function Layout(_ref) {
|
|
|
63
74
|
flex: 1
|
|
64
75
|
})));
|
|
65
76
|
};
|
|
66
|
-
var Default = exports.Default =
|
|
67
|
-
|
|
77
|
+
var Default = exports.Default = {
|
|
78
|
+
args: {
|
|
68
79
|
anchor: "right"
|
|
69
|
-
}
|
|
80
|
+
},
|
|
81
|
+
render: function render() {
|
|
82
|
+
return /*#__PURE__*/_react.default.createElement(Layout, {
|
|
83
|
+
anchor: "right"
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
parameters: {
|
|
87
|
+
docs: {
|
|
88
|
+
description: {
|
|
89
|
+
story: "Default drawer that slides in from the right side."
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
70
93
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return /*#__PURE__*/_react.default.createElement(Layout, {
|
|
94
|
+
var Left = exports.Left = {
|
|
95
|
+
args: {
|
|
74
96
|
anchor: "left"
|
|
75
|
-
}
|
|
97
|
+
},
|
|
98
|
+
render: function render() {
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement(Layout, {
|
|
100
|
+
anchor: "left"
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
parameters: {
|
|
104
|
+
docs: {
|
|
105
|
+
description: {
|
|
106
|
+
story: "Drawer that slides in from the left side."
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
76
110
|
};
|
|
77
|
-
Left.displayName = "Left";
|
|
78
111
|
//# sourceMappingURL=Drawer.story.js.map
|