@autoguru/overdrive 4.34.0 → 4.35.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/components/Alert/Alert.js +1 -2
- package/dist/components/Anchor/Anchor.js +3 -4
- package/dist/components/AutoSuggest/AutoSuggest.css.js +3 -3
- package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.js +8 -9
- package/dist/components/Box/Box.js +2 -2
- package/dist/components/Box/argTypes.d.ts.map +1 -1
- package/dist/components/Box/argTypes.js +2 -2
- package/dist/components/Box/useBoxStyles.css.d.ts +1 -1
- package/dist/components/Box/useBoxStyles.css.d.ts.map +1 -1
- package/dist/components/Box/useBoxStyles.css.js +5 -11
- package/dist/components/BulletList/Bullet.css.js +3 -3
- package/dist/components/BulletList/Bullet.d.ts.map +1 -1
- package/dist/components/BulletList/Bullet.js +12 -4
- package/dist/components/BulletText/BulletText.js +1 -2
- package/dist/components/Button/Button.css.js +21 -21
- package/dist/components/Button/Button.js +3 -5
- package/dist/components/CheckBox/CheckBox.css.js +3 -3
- package/dist/components/CheckBox/CheckBox.js +1 -2
- package/dist/components/ColourInput/ColourInput.css.js +2 -2
- package/dist/components/ColourInput/ColourInput.js +3 -4
- package/dist/components/Columns/Column.css.js +1 -1
- package/dist/components/Columns/Column.js +2 -2
- package/dist/components/Columns/Columns.js +2 -2
- package/dist/components/DateInput/DateInput.js +2 -2
- package/dist/components/DatePicker/DatePicker.js +3 -4
- package/dist/components/DividerLine/DividerLine.d.ts +1 -1
- package/dist/components/DividerLine/DividerLine.d.ts.map +1 -1
- package/dist/components/DividerLine/DividerLine.js +1 -1
- package/dist/components/DropDown/DropDown.js +3 -5
- package/dist/components/DropDown/DropDownOption.css.js +2 -2
- package/dist/components/DropDown/DropDownOption.js +3 -4
- package/dist/components/EditableText/EditableText.css.js +1 -1
- package/dist/components/EditableText/EditableText.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.js +5 -6
- package/dist/components/FillHeightBox/FillHeightBox.js +2 -2
- package/dist/components/Flyout/Flyout.js +2 -2
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.css.js +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.js +5 -7
- package/dist/components/HorizontalAutoScroller/useHorizontalAutoScroller.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/useHorizontalAutoScroller.js +5 -9
- package/dist/components/Image/Image.js +2 -2
- package/dist/components/Image/ImageServerProvider.js +9 -8
- package/dist/components/Image/ResponsiveImage.js +2 -2
- package/dist/components/Image/SimpleImage.js +2 -2
- package/dist/components/Inline/Inline.js +1 -3
- package/dist/components/LoadingBox/LoadingBox.js +3 -3
- package/dist/components/Meta/Meta.js +2 -3
- package/dist/components/MinimalModal/MinimalModal.js +2 -2
- package/dist/components/Modal/Modal.css.js +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +16 -9
- package/dist/components/NumberBubble/NumberBubble.js +2 -2
- package/dist/components/NumberInput/NumberInput.js +3 -3
- package/dist/components/OrderedList/OrderedList.css.js +1 -1
- package/dist/components/OutsideClick/OutsideClick.js +1 -1
- package/dist/components/Pagination/Pagination.css.js +6 -6
- package/dist/components/Pagination/Pagination.js +1 -2
- package/dist/components/Positioner/Positioner.d.ts.map +1 -1
- package/dist/components/Positioner/Positioner.js +17 -7
- package/dist/components/Positioner/alignment.js +3 -3
- package/dist/components/ProgressBar/ProgressBar.css.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/ProgressBarGroup/ProgressBarGroup.css.js +1 -1
- package/dist/components/ProgressBarGroup/ProgressBarGroup.js +2 -3
- package/dist/components/Radio/Radio.css.js +4 -4
- package/dist/components/Radio/Radio.js +1 -2
- package/dist/components/ScrollPane/ScrollPane.css.js +3 -3
- package/dist/components/ScrollPane/ScrollPane.js +2 -2
- package/dist/components/SelectInput/SelectInput.css.js +3 -3
- package/dist/components/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.js +5 -5
- package/dist/components/SimplePagination/SimplePagination.js +4 -5
- package/dist/components/SliderProgress/ProgressStep.js +1 -2
- package/dist/components/SliderProgress/SliderProgress.css.js +1 -1
- package/dist/components/SliderProgress/SliderProgress.js +1 -1
- package/dist/components/Stack/Divider.css.js +1 -1
- package/dist/components/Stack/Stack.js +1 -3
- package/dist/components/StandardModal/StandardModal.css.js +8 -8
- package/dist/components/StandardModal/StandardModal.js +4 -5
- package/dist/components/StarRating/StarRating.js +7 -8
- package/dist/components/Stepper/Stepper.css.js +4 -4
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +19 -10
- package/dist/components/StickyBox/StickyBox.css.js +4 -4
- package/dist/components/StickyBox/StickyBox.js +3 -3
- package/dist/components/Switch/Switch.css.js +18 -18
- package/dist/components/Switch/Switch.js +4 -5
- package/dist/components/Table/TableCell.css.js +1 -1
- package/dist/components/Table/TableHeadCell.css.js +5 -5
- package/dist/components/Table/TableHeadCell.js +1 -2
- package/dist/components/Tabs/Tab.css.js +4 -4
- package/dist/components/Tabs/Tab.js +2 -3
- package/dist/components/Tabs/TabList.css.js +1 -1
- package/dist/components/Tabs/TabList.js +1 -2
- package/dist/components/Tabs/TabPane.js +1 -1
- package/dist/components/Text/useTextStyles.css.js +2 -2
- package/dist/components/TextAreaInput/TextAreaInput.js +2 -2
- package/dist/components/TextBubble/TextBubble.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.js +14 -6
- package/dist/components/TextContainer/TextContainer.js +1 -2
- package/dist/components/TextInput/TextInput.js +2 -2
- package/dist/components/TextLink/TextLink.css.js +4 -4
- package/dist/components/TextLink/TextLink.js +3 -4
- package/dist/components/ThemeOverrideProvider/ThemeOverrideDebugger.js +1 -2
- package/dist/components/ThemeOverrideProvider/ThemeOverrideProvider.js +2 -2
- package/dist/components/ThemeOverrideProvider/useBuildThemeOverrides.d.ts.map +1 -1
- package/dist/components/ThemeOverrideProvider/useBuildThemeOverrides.js +5 -3
- package/dist/components/Toaster/Toast.css.js +1 -1
- package/dist/components/Toaster/Toast.d.ts.map +1 -1
- package/dist/components/Toaster/Toast.js +24 -20
- package/dist/components/Tooltip/Tooltip.css.js +2 -2
- package/dist/components/Tooltip/Tooltip.js +1 -3
- package/dist/components/private/CheckableBase/CheckableBase.css.js +8 -8
- package/dist/components/private/CheckableBase/CheckableBase.js +1 -2
- package/dist/components/private/InputBase/HintText.css.js +1 -1
- package/dist/components/private/InputBase/NotchedBase.css.js +20 -20
- package/dist/components/private/InputBase/NotchedBase.js +1 -2
- package/dist/components/private/InputBase/withEnhancedInput.css.js +16 -16
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.js +3 -4
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.d.ts +1 -1
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.d.ts.map +1 -1
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.js +5 -5
- package/dist/hooks/useMedia/useMedia.js +4 -4
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.css.js +2 -2
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.css.js +1 -1
- package/dist/hooks/useNullCheck/useNullCheck.js +1 -1
- package/dist/hooks/useWindowHeightFill/useWindowHeightFill.d.ts.map +1 -1
- package/dist/hooks/useWindowHeightFill/useWindowHeightFill.js +4 -3
- package/dist/reset/globalFonts.css.js +3 -3
- package/dist/reset/reset.css.js +2 -2
- package/dist/themes/base/tokens.js +3 -3
- package/dist/themes/flat_red/tokens.js +2 -2
- package/dist/themes/helpers.d.ts.map +1 -1
- package/dist/themes/helpers.js +2 -2
- package/dist/themes/makeTheme.js +3 -3
- package/dist/themes/neutral/tokens.js +3 -3
- package/dist/themes/theme.css.js +2 -2
- package/dist/utils/css.js +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +6 -5
- package/dist/utils/mapTokenToProperty.js +2 -2
- package/dist/utils/number.js +1 -1
- package/dist/utils/responsiveProps.css.d.ts.map +1 -1
- package/dist/utils/responsiveProps.css.js +2 -2
- package/dist/utils/responsiveStyle.js +3 -3
- package/package.json +118 -26
- package/dist/components/Actions/stories.js +0 -53
- package/dist/components/Alert/stories.js +0 -106
- package/dist/components/Anchor/stories.js +0 -65
- package/dist/components/AutoSuggest/stories.js +0 -213
- package/dist/components/Badge/stories.js +0 -64
- package/dist/components/Box/stories.js +0 -43
- package/dist/components/BulletList/stories.js +0 -72
- package/dist/components/BulletText/stories.js +0 -88
- package/dist/components/Button/stories.js +0 -291
- package/dist/components/CheckBox/stories.js +0 -206
- package/dist/components/ColourInput/stories.js +0 -173
- package/dist/components/Columns/stories.js +0 -209
- package/dist/components/DateInput/stories.js +0 -181
- package/dist/components/DatePicker/stories.js +0 -89
- package/dist/components/DividerLine/stories.js +0 -117
- package/dist/components/DropDown/stories.js +0 -117
- package/dist/components/EditableText/stories.js +0 -84
- package/dist/components/FillHeightBox/stories.js +0 -47
- package/dist/components/Flyout/stories.js +0 -88
- package/dist/components/Heading/stories.js +0 -127
- package/dist/components/HorizontalAutoScroller/stories.js +0 -88
- package/dist/components/Icon/stories.js +0 -62
- package/dist/components/Image/stories.js +0 -183
- package/dist/components/Inline/stories.js +0 -122
- package/dist/components/IntentStripe/stories.js +0 -76
- package/dist/components/LinearProgressIndicator/stories.js +0 -26
- package/dist/components/LoadingBox/stories.js +0 -41
- package/dist/components/Meta/stories.js +0 -45
- package/dist/components/MinimalModal/stories.js +0 -83
- package/dist/components/Modal/stories.js +0 -52
- package/dist/components/NumberBubble/stories.js +0 -23
- package/dist/components/NumberInput/stories.js +0 -218
- package/dist/components/OrderedList/stories.js +0 -58
- package/dist/components/OutsideClick/stories.js +0 -39
- package/dist/components/Pagination/stories.js +0 -112
- package/dist/components/Portal/stories.js +0 -72
- package/dist/components/Positioner/stories.js +0 -124
- package/dist/components/ProgressBar/stories.js +0 -44
- package/dist/components/ProgressBarGroup/stories.js +0 -21
- package/dist/components/ProgressSpinner/stories.js +0 -36
- package/dist/components/Radio/stories.js +0 -215
- package/dist/components/ScrollPane/stories.js +0 -55
- package/dist/components/Section/stories.js +0 -43
- package/dist/components/SelectInput/stories.js +0 -188
- package/dist/components/SimplePagination/stories.js +0 -42
- package/dist/components/SliderProgress/stories.js +0 -44
- package/dist/components/Stack/stories.js +0 -75
- package/dist/components/StandardModal/stories.js +0 -62
- package/dist/components/StarRating/stories.js +0 -50
- package/dist/components/Stepper/stories.js +0 -61
- package/dist/components/StickyBox/stories.js +0 -70
- package/dist/components/Switch/stories.js +0 -42
- package/dist/components/Table/stories.js +0 -302
- package/dist/components/Tabs/stories.js +0 -253
- package/dist/components/Text/stories.js +0 -154
- package/dist/components/TextAreaInput/stories.js +0 -129
- package/dist/components/TextBubble/stories.js +0 -30
- package/dist/components/TextContainer/stories.js +0 -128
- package/dist/components/TextInput/stories.js +0 -260
- package/dist/components/TextLink/stories.js +0 -111
- package/dist/components/Toaster/stories.js +0 -59
- package/dist/components/Tooltip/stories.js +0 -90
- package/dist/components/VisuallyHidden/stories.js +0 -36
- package/dist/hooks/useAttachedBoxes/stories.js +0 -94
- package/dist/hooks/useMedia/stories.js +0 -46
- package/dist/hooks/useResponsiveValue/stories.js +0 -38
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
import { AccountBoxIcon } from '@autoguru/icons';
|
|
7
|
-
import { action } from '@storybook/addon-actions';
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
import { Column, Columns } from "../Columns/index.js";
|
|
10
|
-
import { Icon } from "../Icon/index.js";
|
|
11
|
-
import { Button } from "./index.js";
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
|
-
const onClick = action('onClick');
|
|
16
|
-
export default {
|
|
17
|
-
title: 'Components/Buttons',
|
|
18
|
-
component: Button,
|
|
19
|
-
decorators: [story => _jsx("div", {
|
|
20
|
-
style: {
|
|
21
|
-
display: 'grid',
|
|
22
|
-
gridGap: '12px',
|
|
23
|
-
gridAutoFlow: 'row dense'
|
|
24
|
-
},
|
|
25
|
-
children: story()
|
|
26
|
-
})],
|
|
27
|
-
argTypes: {
|
|
28
|
-
is: {
|
|
29
|
-
options: ['button', 'a']
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const Template = args => _jsx("div", {
|
|
34
|
-
style: {
|
|
35
|
-
width: 200
|
|
36
|
-
},
|
|
37
|
-
children: _jsx(Button, _objectSpread({}, args))
|
|
38
|
-
});
|
|
39
|
-
const TemplateMulti = args => _jsxs(_Fragment, {
|
|
40
|
-
children: [_jsxs(Columns, {
|
|
41
|
-
space: "3",
|
|
42
|
-
children: [_jsx(Column, {
|
|
43
|
-
children: _jsx(Button, _objectSpread(_objectSpread({}, args), {}, {
|
|
44
|
-
children: "Login"
|
|
45
|
-
}))
|
|
46
|
-
}), _jsx(Column, {
|
|
47
|
-
children: _jsxs(Button, _objectSpread(_objectSpread({}, args), {}, {
|
|
48
|
-
children: [_jsx(Icon, {
|
|
49
|
-
icon: AccountBoxIcon
|
|
50
|
-
}), "Login"]
|
|
51
|
-
}))
|
|
52
|
-
}), _jsx(Column, {
|
|
53
|
-
children: _jsx(Button, _objectSpread(_objectSpread({}, args), {}, {
|
|
54
|
-
children: _jsx(Icon, {
|
|
55
|
-
icon: AccountBoxIcon
|
|
56
|
-
})
|
|
57
|
-
}))
|
|
58
|
-
}), _jsx(Column, {
|
|
59
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
60
|
-
isLoading: true
|
|
61
|
-
}, args), {}, {
|
|
62
|
-
children: "A very very very long button Label"
|
|
63
|
-
}))
|
|
64
|
-
}), _jsx(Column, {
|
|
65
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
66
|
-
disabled: true
|
|
67
|
-
}, args), {}, {
|
|
68
|
-
children: "Login"
|
|
69
|
-
}))
|
|
70
|
-
})]
|
|
71
|
-
}), _jsxs(Columns, {
|
|
72
|
-
space: "3",
|
|
73
|
-
children: [_jsx(Column, {
|
|
74
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
75
|
-
rounded: true
|
|
76
|
-
}, args), {}, {
|
|
77
|
-
children: "Login"
|
|
78
|
-
}))
|
|
79
|
-
}), _jsx(Column, {
|
|
80
|
-
children: _jsxs(Button, _objectSpread(_objectSpread({
|
|
81
|
-
rounded: true
|
|
82
|
-
}, args), {}, {
|
|
83
|
-
children: [_jsx(Icon, {
|
|
84
|
-
icon: AccountBoxIcon
|
|
85
|
-
}), "Login"]
|
|
86
|
-
}))
|
|
87
|
-
}), _jsx(Column, {
|
|
88
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
89
|
-
rounded: true
|
|
90
|
-
}, args), {}, {
|
|
91
|
-
children: _jsx(Icon, {
|
|
92
|
-
icon: AccountBoxIcon
|
|
93
|
-
})
|
|
94
|
-
}))
|
|
95
|
-
}), _jsx(Column, {
|
|
96
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
97
|
-
rounded: true,
|
|
98
|
-
isLoading: true
|
|
99
|
-
}, args), {}, {
|
|
100
|
-
children: "Login"
|
|
101
|
-
}))
|
|
102
|
-
}), _jsx(Column, {
|
|
103
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
104
|
-
rounded: true,
|
|
105
|
-
disabled: true
|
|
106
|
-
}, args), {}, {
|
|
107
|
-
children: "Login"
|
|
108
|
-
}))
|
|
109
|
-
})]
|
|
110
|
-
}), _jsxs(Columns, {
|
|
111
|
-
space: "3",
|
|
112
|
-
children: [_jsx(Column, {
|
|
113
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
114
|
-
minimal: true
|
|
115
|
-
}, args), {}, {
|
|
116
|
-
children: "Login"
|
|
117
|
-
}))
|
|
118
|
-
}), _jsx(Column, {
|
|
119
|
-
children: _jsxs(Button, _objectSpread(_objectSpread({
|
|
120
|
-
minimal: true
|
|
121
|
-
}, args), {}, {
|
|
122
|
-
children: [_jsx(Icon, {
|
|
123
|
-
icon: AccountBoxIcon
|
|
124
|
-
}), "Login"]
|
|
125
|
-
}))
|
|
126
|
-
}), _jsx(Column, {
|
|
127
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
128
|
-
minimal: true
|
|
129
|
-
}, args), {}, {
|
|
130
|
-
children: _jsx(Icon, {
|
|
131
|
-
icon: AccountBoxIcon
|
|
132
|
-
})
|
|
133
|
-
}))
|
|
134
|
-
}), _jsx(Column, {
|
|
135
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
136
|
-
minimal: true,
|
|
137
|
-
isLoading: true
|
|
138
|
-
}, args), {}, {
|
|
139
|
-
children: "Login"
|
|
140
|
-
}))
|
|
141
|
-
}), _jsx(Column, {
|
|
142
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
143
|
-
minimal: true,
|
|
144
|
-
disabled: true
|
|
145
|
-
}, args), {}, {
|
|
146
|
-
children: "Login"
|
|
147
|
-
}))
|
|
148
|
-
})]
|
|
149
|
-
}), _jsxs(Columns, {
|
|
150
|
-
space: "3",
|
|
151
|
-
children: [_jsx(Column, {
|
|
152
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
153
|
-
minimal: true,
|
|
154
|
-
rounded: true
|
|
155
|
-
}, args), {}, {
|
|
156
|
-
children: "1"
|
|
157
|
-
}))
|
|
158
|
-
}), _jsx(Column, {
|
|
159
|
-
children: _jsxs(Button, _objectSpread(_objectSpread({
|
|
160
|
-
minimal: true,
|
|
161
|
-
rounded: true
|
|
162
|
-
}, args), {}, {
|
|
163
|
-
children: [_jsx(Icon, {
|
|
164
|
-
icon: AccountBoxIcon
|
|
165
|
-
}), "1"]
|
|
166
|
-
}))
|
|
167
|
-
}), _jsx(Column, {
|
|
168
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
169
|
-
minimal: true,
|
|
170
|
-
rounded: true
|
|
171
|
-
}, args), {}, {
|
|
172
|
-
children: _jsx(Icon, {
|
|
173
|
-
icon: AccountBoxIcon
|
|
174
|
-
})
|
|
175
|
-
}))
|
|
176
|
-
}), _jsx(Column, {
|
|
177
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
178
|
-
minimal: true,
|
|
179
|
-
rounded: true,
|
|
180
|
-
isLoading: true
|
|
181
|
-
}, args), {}, {
|
|
182
|
-
children: "1"
|
|
183
|
-
}))
|
|
184
|
-
}), _jsx(Column, {
|
|
185
|
-
children: _jsx(Button, _objectSpread(_objectSpread({
|
|
186
|
-
minimal: true,
|
|
187
|
-
rounded: true,
|
|
188
|
-
disabled: true
|
|
189
|
-
}, args), {}, {
|
|
190
|
-
children: "1"
|
|
191
|
-
}))
|
|
192
|
-
})]
|
|
193
|
-
}), _jsx(Button, _objectSpread(_objectSpread({
|
|
194
|
-
isFullWidth: true
|
|
195
|
-
}, args), {}, {
|
|
196
|
-
children: "Full Width"
|
|
197
|
-
}))]
|
|
198
|
-
});
|
|
199
|
-
const standardProps = {
|
|
200
|
-
isFullWidth: void 0,
|
|
201
|
-
size: void 0,
|
|
202
|
-
variant: void 0,
|
|
203
|
-
children: 'Login',
|
|
204
|
-
onClick
|
|
205
|
-
};
|
|
206
|
-
export const standard = Template.bind(standardProps);
|
|
207
|
-
standard.args = standardProps;
|
|
208
|
-
const primarySmallProps = {
|
|
209
|
-
size: 'small',
|
|
210
|
-
variant: 'primary',
|
|
211
|
-
onClick
|
|
212
|
-
};
|
|
213
|
-
export const primarySmall = TemplateMulti.bind(primarySmallProps);
|
|
214
|
-
primarySmall.args = primarySmallProps;
|
|
215
|
-
const primaryMediumProps = {
|
|
216
|
-
size: 'medium',
|
|
217
|
-
variant: 'primary',
|
|
218
|
-
onClick
|
|
219
|
-
};
|
|
220
|
-
export const primaryMedium = TemplateMulti.bind(primaryMediumProps);
|
|
221
|
-
primaryMedium.args = primaryMediumProps;
|
|
222
|
-
const brandSmallProps = {
|
|
223
|
-
size: 'small',
|
|
224
|
-
variant: 'brand',
|
|
225
|
-
onClick
|
|
226
|
-
};
|
|
227
|
-
export const brandSmall = TemplateMulti.bind(brandSmallProps);
|
|
228
|
-
brandSmall.args = brandSmallProps;
|
|
229
|
-
const brandMediumProps = {
|
|
230
|
-
size: 'medium',
|
|
231
|
-
variant: 'brand',
|
|
232
|
-
onClick
|
|
233
|
-
};
|
|
234
|
-
export const brandMedium = TemplateMulti.bind(brandMediumProps);
|
|
235
|
-
brandMedium.args = brandMediumProps;
|
|
236
|
-
const secondarySmallProps = {
|
|
237
|
-
size: 'small',
|
|
238
|
-
variant: 'secondary',
|
|
239
|
-
onClick
|
|
240
|
-
};
|
|
241
|
-
export const secondarySmall = TemplateMulti.bind(secondarySmallProps);
|
|
242
|
-
secondarySmall.args = secondarySmallProps;
|
|
243
|
-
const secondaryMediumProps = {
|
|
244
|
-
size: 'medium',
|
|
245
|
-
variant: 'secondary',
|
|
246
|
-
onClick
|
|
247
|
-
};
|
|
248
|
-
export const secondaryMedium = TemplateMulti.bind(secondaryMediumProps);
|
|
249
|
-
secondaryMedium.args = secondaryMediumProps;
|
|
250
|
-
const informationSmallProps = {
|
|
251
|
-
size: 'small',
|
|
252
|
-
variant: 'information',
|
|
253
|
-
onClick
|
|
254
|
-
};
|
|
255
|
-
export const informationSmall = TemplateMulti.bind(informationSmallProps);
|
|
256
|
-
informationSmall.args = informationSmallProps;
|
|
257
|
-
const informationMediumProps = {
|
|
258
|
-
size: 'medium',
|
|
259
|
-
variant: 'information',
|
|
260
|
-
onClick
|
|
261
|
-
};
|
|
262
|
-
export const informationMedium = TemplateMulti.bind(informationMediumProps);
|
|
263
|
-
informationMedium.args = informationMediumProps;
|
|
264
|
-
const warningSmallProps = {
|
|
265
|
-
size: 'small',
|
|
266
|
-
variant: 'warning',
|
|
267
|
-
onClick
|
|
268
|
-
};
|
|
269
|
-
export const warningSmall = TemplateMulti.bind(warningSmallProps);
|
|
270
|
-
warningSmall.args = warningSmallProps;
|
|
271
|
-
const warningMediumProps = {
|
|
272
|
-
size: 'medium',
|
|
273
|
-
variant: 'warning',
|
|
274
|
-
onClick
|
|
275
|
-
};
|
|
276
|
-
export const warningMedium = TemplateMulti.bind(warningMediumProps);
|
|
277
|
-
warningMedium.args = warningMediumProps;
|
|
278
|
-
const successSmallProps = {
|
|
279
|
-
size: 'small',
|
|
280
|
-
variant: 'success',
|
|
281
|
-
onClick
|
|
282
|
-
};
|
|
283
|
-
export const successSmall = TemplateMulti.bind(successSmallProps);
|
|
284
|
-
successSmall.args = successSmallProps;
|
|
285
|
-
const successMediumProps = {
|
|
286
|
-
size: 'medium',
|
|
287
|
-
variant: 'success',
|
|
288
|
-
onClick
|
|
289
|
-
};
|
|
290
|
-
export const successMedium = TemplateMulti.bind(successMediumProps);
|
|
291
|
-
successMedium.args = successMediumProps;
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["disabled"];
|
|
6
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
import { Badge } from "../Badge/index.js";
|
|
10
|
-
import { Heading } from "../Heading/index.js";
|
|
11
|
-
import { StarRating } from "../StarRating/index.js";
|
|
12
|
-
import { Text } from "../Text/index.js";
|
|
13
|
-
import { CheckBox } from "./index.js";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
export default {
|
|
18
|
-
title: 'Components/Inputs/CheckBox',
|
|
19
|
-
component: CheckBox,
|
|
20
|
-
decorators: [story => _jsx("div", {
|
|
21
|
-
style: {
|
|
22
|
-
maxWidth: '500px',
|
|
23
|
-
width: '100%'
|
|
24
|
-
},
|
|
25
|
-
children: story()
|
|
26
|
-
})]
|
|
27
|
-
};
|
|
28
|
-
const listData = [{
|
|
29
|
-
label: 'Avocado',
|
|
30
|
-
value: 'avocado'
|
|
31
|
-
}, {
|
|
32
|
-
label: 'Blueberries',
|
|
33
|
-
value: 'blueberries'
|
|
34
|
-
}, {
|
|
35
|
-
label: 'Cherries',
|
|
36
|
-
value: 'cherries'
|
|
37
|
-
}, {
|
|
38
|
-
label: 'Coconut',
|
|
39
|
-
value: 'coconut'
|
|
40
|
-
}, {
|
|
41
|
-
label: 'Strawberries',
|
|
42
|
-
value: 'strawberries'
|
|
43
|
-
}];
|
|
44
|
-
export const list = _ref => {
|
|
45
|
-
let {
|
|
46
|
-
disabled
|
|
47
|
-
} = _ref,
|
|
48
|
-
args = _objectWithoutProperties(_ref, _excluded);
|
|
49
|
-
return _jsx(_Fragment, {
|
|
50
|
-
children: listData.map(item => {
|
|
51
|
-
return _jsx(CheckBox, {
|
|
52
|
-
disabled: disabled,
|
|
53
|
-
children: item.label,
|
|
54
|
-
value: item.value,
|
|
55
|
-
name: "want-".concat(item.value),
|
|
56
|
-
checked: args[item.value]
|
|
57
|
-
}, item.value);
|
|
58
|
-
})
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
list.args = {
|
|
62
|
-
disabled: false,
|
|
63
|
-
avocado: true,
|
|
64
|
-
blueberries: true,
|
|
65
|
-
cherries: false,
|
|
66
|
-
coconut: true,
|
|
67
|
-
strawberries: false
|
|
68
|
-
};
|
|
69
|
-
const Template = args => _jsx(CheckBox, _objectSpread({}, args));
|
|
70
|
-
const uncheckedProps = {
|
|
71
|
-
checked: false,
|
|
72
|
-
disabled: false,
|
|
73
|
-
name: 'check-name',
|
|
74
|
-
children: 'check me!',
|
|
75
|
-
value: '1'
|
|
76
|
-
};
|
|
77
|
-
const emptyProps = {
|
|
78
|
-
checked: false,
|
|
79
|
-
disabled: false,
|
|
80
|
-
name: 'check-name',
|
|
81
|
-
children: null,
|
|
82
|
-
value: '1'
|
|
83
|
-
};
|
|
84
|
-
const checkedProps = {
|
|
85
|
-
checked: true,
|
|
86
|
-
disabled: false,
|
|
87
|
-
name: 'check-name',
|
|
88
|
-
children: 'check me!',
|
|
89
|
-
value: '1'
|
|
90
|
-
};
|
|
91
|
-
const disabledProps = {
|
|
92
|
-
checked: false,
|
|
93
|
-
disabled: true,
|
|
94
|
-
name: 'check-name',
|
|
95
|
-
children: 'check me!',
|
|
96
|
-
value: '1'
|
|
97
|
-
};
|
|
98
|
-
const disabledCheckedProps = {
|
|
99
|
-
checked: true,
|
|
100
|
-
disabled: true,
|
|
101
|
-
name: 'check-name',
|
|
102
|
-
children: 'check me!',
|
|
103
|
-
value: '1'
|
|
104
|
-
};
|
|
105
|
-
const multipleLinesProps = {
|
|
106
|
-
checked: false,
|
|
107
|
-
disabled: false,
|
|
108
|
-
name: 'check-name',
|
|
109
|
-
children: 'There is a very good reason why this thing is a multi-line, sometimes we need to show people a lot of things. And thus this exists.',
|
|
110
|
-
value: '1'
|
|
111
|
-
};
|
|
112
|
-
const Item = _ref2 => {
|
|
113
|
-
let {
|
|
114
|
-
label,
|
|
115
|
-
rating
|
|
116
|
-
} = _ref2;
|
|
117
|
-
return _jsxs("div", {
|
|
118
|
-
style: {
|
|
119
|
-
display: 'grid',
|
|
120
|
-
gridGap: '8px',
|
|
121
|
-
gridTemplateColumns: '1fr auto'
|
|
122
|
-
},
|
|
123
|
-
children: [_jsx(Text, {
|
|
124
|
-
children: label
|
|
125
|
-
}), _jsx(StarRating, {
|
|
126
|
-
rating: rating
|
|
127
|
-
})]
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
const withComponentProps = {
|
|
131
|
-
checked: false,
|
|
132
|
-
disabled: false,
|
|
133
|
-
name: 'check-name',
|
|
134
|
-
children: _jsx(Item, {
|
|
135
|
-
label: "Avocados",
|
|
136
|
-
rating: "4.3"
|
|
137
|
-
}),
|
|
138
|
-
value: '1'
|
|
139
|
-
};
|
|
140
|
-
const withMultiLineComponentProps = {
|
|
141
|
-
checked: false,
|
|
142
|
-
disabled: false,
|
|
143
|
-
name: 'check-name',
|
|
144
|
-
children: _jsxs("div", {
|
|
145
|
-
style: {
|
|
146
|
-
display: 'grid',
|
|
147
|
-
gridGap: '8px',
|
|
148
|
-
gridTemplateColumns: '1fr auto auto'
|
|
149
|
-
},
|
|
150
|
-
children: [_jsx(Heading, {
|
|
151
|
-
is: "h5",
|
|
152
|
-
children: "Your last order"
|
|
153
|
-
}), _jsx(Badge, {
|
|
154
|
-
colour: "neutral",
|
|
155
|
-
label: "SUBSCRIBE"
|
|
156
|
-
}), _jsx(Badge, {
|
|
157
|
-
colour: "neutral",
|
|
158
|
-
label: "AUTO TOP-UP"
|
|
159
|
-
}), _jsxs("div", {
|
|
160
|
-
style: {
|
|
161
|
-
gridColumn: '1/4',
|
|
162
|
-
display: 'grid',
|
|
163
|
-
gridGap: '8px',
|
|
164
|
-
gridTemplateColumns: '1fr auto'
|
|
165
|
-
},
|
|
166
|
-
children: [_jsx(Text, {
|
|
167
|
-
size: "2",
|
|
168
|
-
children: "Ending in 5678"
|
|
169
|
-
}), _jsx(Text, {
|
|
170
|
-
size: "2",
|
|
171
|
-
children: "Updated 12 Dec 2018"
|
|
172
|
-
})]
|
|
173
|
-
})]
|
|
174
|
-
}),
|
|
175
|
-
value: '1'
|
|
176
|
-
};
|
|
177
|
-
export const unchecked = Template.bind(uncheckedProps);
|
|
178
|
-
unchecked.args = uncheckedProps;
|
|
179
|
-
export const checked = Template.bind(checkedProps);
|
|
180
|
-
checked.args = checkedProps;
|
|
181
|
-
export const disabled = Template.bind(disabledProps);
|
|
182
|
-
disabled.args = disabledProps;
|
|
183
|
-
export const disabledChecked = Template.bind(disabledCheckedProps);
|
|
184
|
-
disabledChecked.args = disabledCheckedProps;
|
|
185
|
-
export const multipleLines = Template.bind(multipleLinesProps);
|
|
186
|
-
multipleLines.args = multipleLinesProps;
|
|
187
|
-
export const withNoChildren = Template.bind(emptyProps);
|
|
188
|
-
withNoChildren.args = emptyProps;
|
|
189
|
-
export const withComponent = Template.bind(withComponentProps);
|
|
190
|
-
withComponent.args = withComponentProps;
|
|
191
|
-
withComponent.argTypes = {
|
|
192
|
-
children: {
|
|
193
|
-
control: {
|
|
194
|
-
disable: true
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
export const withMultiLineComponent = Template.bind(withMultiLineComponentProps);
|
|
199
|
-
withMultiLineComponent.args = withMultiLineComponentProps;
|
|
200
|
-
withMultiLineComponent.argTypes = {
|
|
201
|
-
children: {
|
|
202
|
-
control: {
|
|
203
|
-
disable: true
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
};
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
import { AccountEditIcon, AlertCircleIcon, CalendarIcon, CarIcon, CarMultipleIcon, CurrencyUsdIcon, FourByFourIcon, PlusIcon, StarIcon } from '@autoguru/icons';
|
|
7
|
-
import { action } from '@storybook/addon-actions';
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
import { ColourInput } from "./index.js";
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
export default {
|
|
12
|
-
title: 'Components/Inputs/Colour',
|
|
13
|
-
component: ColourInput,
|
|
14
|
-
parameters: {
|
|
15
|
-
chromatic: {}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const defaultColour = '#ec4040';
|
|
19
|
-
const iconOptions = {
|
|
20
|
-
CalendarIcon,
|
|
21
|
-
AccountEditIcon,
|
|
22
|
-
AlertCircleIcon,
|
|
23
|
-
CarMultipleIcon,
|
|
24
|
-
CurrencyUsdIcon,
|
|
25
|
-
PlusIcon,
|
|
26
|
-
StarIcon
|
|
27
|
-
};
|
|
28
|
-
const attachOptions = {
|
|
29
|
-
NONE: 'NONE',
|
|
30
|
-
TOP: 'TOP',
|
|
31
|
-
RIGHT: 'RIGHT',
|
|
32
|
-
LEFT: 'LEFT',
|
|
33
|
-
BOTTOM: 'BOTTOM',
|
|
34
|
-
ALL: 'ALL'
|
|
35
|
-
};
|
|
36
|
-
const argTypes = {
|
|
37
|
-
value: {
|
|
38
|
-
control: {
|
|
39
|
-
type: 'color'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
attach: {
|
|
43
|
-
defaultValue: 'NONE',
|
|
44
|
-
description: 'Input attach',
|
|
45
|
-
options: attachOptions,
|
|
46
|
-
control: {
|
|
47
|
-
type: 'select'
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
suffixIcon: {
|
|
51
|
-
defaultValue: null,
|
|
52
|
-
description: 'Input suffix Icon',
|
|
53
|
-
options: iconOptions,
|
|
54
|
-
control: {
|
|
55
|
-
type: 'select'
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
const Template = args => _jsx(ColourInput, _objectSpread({}, args));
|
|
60
|
-
const sharedProps = {
|
|
61
|
-
disabled: false,
|
|
62
|
-
name: 'date',
|
|
63
|
-
placeholder: 'Your favourite colour',
|
|
64
|
-
isValid: false,
|
|
65
|
-
isTouched: false,
|
|
66
|
-
isLoading: false,
|
|
67
|
-
isFocused: false,
|
|
68
|
-
reserveHintSpace: false,
|
|
69
|
-
hintText: '',
|
|
70
|
-
notch: true,
|
|
71
|
-
suffixIcon: void 0,
|
|
72
|
-
onChange: action('onChange'),
|
|
73
|
-
onFocus: action('onFocus'),
|
|
74
|
-
onBlur: action('onBlur')
|
|
75
|
-
};
|
|
76
|
-
const standardProps = sharedProps;
|
|
77
|
-
const withAValueProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
78
|
-
value: defaultColour,
|
|
79
|
-
placeholder: 'What is your favourite car colour?'
|
|
80
|
-
});
|
|
81
|
-
const withHintTextProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
82
|
-
hintText: 'Hint Text',
|
|
83
|
-
placeholder: 'What is your favourite car colour?'
|
|
84
|
-
});
|
|
85
|
-
const withIconProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
86
|
-
suffixIcon: FourByFourIcon
|
|
87
|
-
});
|
|
88
|
-
const disabledProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
89
|
-
value: defaultColour,
|
|
90
|
-
placeholder: 'What is your favourite car colour?',
|
|
91
|
-
disabled: true
|
|
92
|
-
});
|
|
93
|
-
const validProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
94
|
-
value: defaultColour,
|
|
95
|
-
placeholder: 'What is your favourite car colour?',
|
|
96
|
-
isTouched: true,
|
|
97
|
-
isValid: true
|
|
98
|
-
});
|
|
99
|
-
const invalidProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
100
|
-
value: '#ffd402',
|
|
101
|
-
placeholder: 'What is your favourite car colour?',
|
|
102
|
-
isTouched: true,
|
|
103
|
-
isValid: false,
|
|
104
|
-
hintText: 'Invalid colour'
|
|
105
|
-
});
|
|
106
|
-
const noNotchProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
107
|
-
placeholder: 'What is your favourite car colour?',
|
|
108
|
-
notch: false
|
|
109
|
-
});
|
|
110
|
-
const noNotchWithValueProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
111
|
-
value: defaultColour,
|
|
112
|
-
placeholder: 'What is your favourite car colour?',
|
|
113
|
-
notch: false
|
|
114
|
-
});
|
|
115
|
-
const loadingProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
116
|
-
isLoading: true
|
|
117
|
-
});
|
|
118
|
-
export const standard = Template.bind(standardProps);
|
|
119
|
-
standard.args = standardProps;
|
|
120
|
-
standard.argTypes = argTypes;
|
|
121
|
-
export const withAValue = Template.bind(withAValueProps);
|
|
122
|
-
withAValue.args = withAValueProps;
|
|
123
|
-
withAValue.argTypes = argTypes;
|
|
124
|
-
export const withHintText = Template.bind(withHintTextProps);
|
|
125
|
-
withHintText.args = withHintTextProps;
|
|
126
|
-
withHintText.argTypes = argTypes;
|
|
127
|
-
export const notchDisabled = Template.bind(noNotchProps);
|
|
128
|
-
notchDisabled.args = noNotchProps;
|
|
129
|
-
notchDisabled.argTypes = argTypes;
|
|
130
|
-
export const notchDisabledWithValue = Template.bind(noNotchWithValueProps);
|
|
131
|
-
notchDisabledWithValue.args = noNotchWithValueProps;
|
|
132
|
-
notchDisabledWithValue.argTypes = argTypes;
|
|
133
|
-
export const withIcon = Template.bind(withIconProps);
|
|
134
|
-
withIcon.args = withIconProps;
|
|
135
|
-
withIcon.argTypes = argTypes;
|
|
136
|
-
export const disabled = Template.bind(disabledProps);
|
|
137
|
-
disabled.args = disabledProps;
|
|
138
|
-
disabled.argTypes = argTypes;
|
|
139
|
-
export const valid = Template.bind(validProps);
|
|
140
|
-
valid.args = validProps;
|
|
141
|
-
valid.argTypes = argTypes;
|
|
142
|
-
export const invalid = Template.bind(invalidProps);
|
|
143
|
-
invalid.args = invalidProps;
|
|
144
|
-
invalid.argTypes = argTypes;
|
|
145
|
-
export const loading = Template.bind(loadingProps);
|
|
146
|
-
loading.args = loadingProps;
|
|
147
|
-
loading.argTypes = argTypes;
|
|
148
|
-
const smallProps = _objectSpread(_objectSpread({}, standardProps), {}, {
|
|
149
|
-
size: 'small'
|
|
150
|
-
});
|
|
151
|
-
export const small = Template.bind(smallProps);
|
|
152
|
-
small.args = smallProps;
|
|
153
|
-
small.argTypes = argTypes;
|
|
154
|
-
const withValueSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
|
|
155
|
-
size: 'small'
|
|
156
|
-
});
|
|
157
|
-
export const withValueSmall = Template.bind(withValueSmallProps);
|
|
158
|
-
withValueSmall.args = withValueSmallProps;
|
|
159
|
-
withValueSmall.argTypes = argTypes;
|
|
160
|
-
const withIconSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
|
|
161
|
-
suffixIcon: CarIcon,
|
|
162
|
-
size: 'small'
|
|
163
|
-
});
|
|
164
|
-
export const withIconSmall = Template.bind(withIconSmallProps);
|
|
165
|
-
withIconSmall.args = withIconSmallProps;
|
|
166
|
-
withIconSmall.argTypes = argTypes;
|
|
167
|
-
const loadingSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
|
|
168
|
-
isLoading: true,
|
|
169
|
-
size: 'small'
|
|
170
|
-
});
|
|
171
|
-
export const loadingSmall = Template.bind(loadingSmallProps);
|
|
172
|
-
loadingSmall.args = loadingSmallProps;
|
|
173
|
-
loadingSmall.argTypes = argTypes;
|