@pingux/astro 2.9.0-alpha.3 → 2.9.0-alpha.5
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/lib/cjs/components/ArrayField/ArrayField.stories.js +6 -4
- package/lib/cjs/components/Avatar/Avatar.stories.js +4 -2
- package/lib/cjs/components/Badge/Badge.stories.js +4 -2
- package/lib/cjs/components/Box/Box.stories.js +8 -6
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +3 -1
- package/lib/cjs/components/Button/Button.stories.js +4 -0
- package/lib/cjs/components/Button/buttonAttributes.js +0 -2
- package/lib/cjs/components/Calendar/Calendar.stories.js +13 -11
- package/lib/cjs/components/Card/Card.stories.js +3 -1
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +5 -3
- package/lib/cjs/components/CodeView/CodeView.stories.js +3 -1
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +8 -9
- package/lib/cjs/components/ColorField/ColorField.stories.js +11 -9
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +9 -9
- package/lib/cjs/components/DataTable/DataTable.stories.js +7 -5
- package/lib/cjs/components/DatePicker/DatePicker.stories.js +16 -14
- package/lib/cjs/components/FileInputField/FileInputField.stories.js +5 -3
- package/lib/cjs/components/HelpHint/HelpHint.stories.js +3 -1
- package/lib/cjs/components/Icon/Icon.stories.js +5 -3
- package/lib/cjs/components/IconButton/IconButton.stories.js +2 -1
- package/lib/cjs/components/IconButton/iconButtonAttributes.js +8 -5
- package/lib/cjs/components/Image/Image.stories.js +6 -4
- package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +11 -9
- package/lib/cjs/components/Input/Input.stories.js +4 -3
- package/lib/cjs/components/Label/Label.stories.js +4 -2
- package/lib/cjs/components/Link/Link.stories.js +8 -6
- package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +5 -3
- package/lib/cjs/components/ListView/ListView.stories.js +7 -6
- package/lib/cjs/components/Loader/Loader.stories.js +4 -2
- package/lib/cjs/components/Modal/Modal.stories.js +6 -5
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +8 -10
- package/lib/cjs/components/NumberField/NumberField.stories.js +13 -11
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +4 -2
- package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +7 -6
- package/lib/cjs/components/RequirementsList/RequirementsList.stories.js +15 -13
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +4 -3
- package/lib/cjs/components/ScrollBox/ScrollBox.stories.js +4 -2
- package/lib/cjs/components/SearchField/SearchField.stories.js +5 -4
- package/lib/cjs/components/SelectField/SelectField.stories.js +7 -5
- package/lib/cjs/components/Stepper/Stepper.stories.js +8 -9
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +2 -1
- package/lib/cjs/components/SwitchField/switchFieldAttributes.js +7 -4
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +7 -5
- package/lib/cjs/components/TextField/TextField.stories.js +5 -3
- package/lib/cjs/experimental/ListViewItem/controls/ListViewItemEditButton.stories.js +2 -1
- package/lib/cjs/experimental/ListViewItem/controls/ListViewItemSwitchField.stories.js +4 -1
- package/lib/cjs/recipes/LinkedListView.stories.js +7 -6
- package/lib/cjs/recipes/MaskedValue.stories.js +6 -4
- package/lib/components/ArrayField/ArrayField.stories.js +6 -4
- package/lib/components/Avatar/Avatar.stories.js +4 -2
- package/lib/components/Badge/Badge.stories.js +4 -2
- package/lib/components/Box/Box.stories.js +8 -6
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +3 -1
- package/lib/components/Button/Button.stories.js +4 -0
- package/lib/components/Button/buttonAttributes.js +0 -2
- package/lib/components/Calendar/Calendar.stories.js +13 -11
- package/lib/components/Card/Card.stories.js +3 -1
- package/lib/components/CheckboxField/CheckboxField.stories.js +5 -3
- package/lib/components/CodeView/CodeView.stories.js +3 -1
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +8 -9
- package/lib/components/ColorField/ColorField.stories.js +11 -9
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +9 -9
- package/lib/components/DataTable/DataTable.stories.js +7 -5
- package/lib/components/DatePicker/DatePicker.stories.js +16 -14
- package/lib/components/FileInputField/FileInputField.stories.js +5 -3
- package/lib/components/HelpHint/HelpHint.stories.js +3 -1
- package/lib/components/Icon/Icon.stories.js +5 -3
- package/lib/components/IconButton/IconButton.stories.js +3 -2
- package/lib/components/IconButton/iconButtonAttributes.js +6 -4
- package/lib/components/Image/Image.stories.js +6 -4
- package/lib/components/ImageUploadField/ImageUploadField.stories.js +11 -9
- package/lib/components/Input/Input.stories.js +4 -3
- package/lib/components/Label/Label.stories.js +4 -2
- package/lib/components/Link/Link.stories.js +8 -6
- package/lib/components/LinkSelectField/LinkSelectField.stories.js +5 -3
- package/lib/components/ListView/ListView.stories.js +7 -6
- package/lib/components/Loader/Loader.stories.js +4 -2
- package/lib/components/Modal/Modal.stories.js +6 -5
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +8 -10
- package/lib/components/NumberField/NumberField.stories.js +13 -11
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +4 -2
- package/lib/components/RadioGroupField/RadioGroupField.stories.js +7 -6
- package/lib/components/RequirementsList/RequirementsList.stories.js +15 -13
- package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +4 -3
- package/lib/components/ScrollBox/ScrollBox.stories.js +4 -2
- package/lib/components/SearchField/SearchField.stories.js +5 -4
- package/lib/components/SelectField/SelectField.stories.js +7 -5
- package/lib/components/Stepper/Stepper.stories.js +8 -9
- package/lib/components/SwitchField/SwitchField.stories.js +3 -2
- package/lib/components/SwitchField/switchFieldAttributes.js +5 -3
- package/lib/components/TextAreaField/TextAreaField.stories.js +7 -5
- package/lib/components/TextField/TextField.stories.js +5 -3
- package/lib/experimental/ListViewItem/controls/ListViewItemEditButton.stories.js +3 -2
- package/lib/experimental/ListViewItem/controls/ListViewItemSwitchField.stories.js +5 -2
- package/lib/recipes/LinkedListView.stories.js +7 -6
- package/lib/recipes/MaskedValue.stories.js +6 -4
- package/package.json +19 -16
@@ -11,14 +11,16 @@ export default {
|
|
11
11
|
control: {
|
12
12
|
type: 'select',
|
13
13
|
options: modes
|
14
|
-
}
|
15
|
-
defaultValue: modes.DEFAULT
|
14
|
+
}
|
16
15
|
},
|
17
16
|
isDisabled: {},
|
18
17
|
isRequired: {},
|
19
18
|
requiredIndicator: {
|
20
19
|
control: 'none'
|
21
20
|
}
|
21
|
+
},
|
22
|
+
args: {
|
23
|
+
mode: modes.DEFAULT
|
22
24
|
}
|
23
25
|
};
|
24
26
|
export var Default = function Default(args) {
|
@@ -25,22 +25,19 @@ export default {
|
|
25
25
|
href: {
|
26
26
|
control: {
|
27
27
|
type: 'text'
|
28
|
-
}
|
29
|
-
defaultValue: 'https://uilibrary.ping-eng.com/'
|
28
|
+
}
|
30
29
|
},
|
31
30
|
isDisabled: {},
|
32
31
|
as: {
|
33
32
|
control: {
|
34
33
|
type: 'none',
|
35
34
|
options: htmlElements
|
36
|
-
}
|
37
|
-
defaultValue: 'a'
|
35
|
+
}
|
38
36
|
},
|
39
37
|
target: {
|
40
38
|
control: {
|
41
39
|
type: 'none'
|
42
|
-
}
|
43
|
-
defaultValue: '_blank'
|
40
|
+
}
|
44
41
|
},
|
45
42
|
variant: {
|
46
43
|
control: {
|
@@ -48,6 +45,11 @@ export default {
|
|
48
45
|
options: _Object$keys(variants)
|
49
46
|
}
|
50
47
|
}
|
48
|
+
},
|
49
|
+
args: {
|
50
|
+
href: 'https://uilibrary.ping-eng.com/',
|
51
|
+
as: 'a',
|
52
|
+
target: '_blank'
|
51
53
|
}
|
52
54
|
};
|
53
55
|
export var Default = function Default(_ref) {
|
@@ -52,8 +52,7 @@ export default {
|
|
52
52
|
label: {
|
53
53
|
control: {
|
54
54
|
type: 'text'
|
55
|
-
}
|
56
|
-
defaultValue: 'What\'s your favourite color?'
|
55
|
+
}
|
57
56
|
},
|
58
57
|
placeholder: {},
|
59
58
|
defaultText: {},
|
@@ -82,7 +81,10 @@ export default {
|
|
82
81
|
type: 'none'
|
83
82
|
}
|
84
83
|
}
|
85
|
-
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes)
|
84
|
+
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
85
|
+
args: {
|
86
|
+
label: 'What\'s your favourite color?'
|
87
|
+
}
|
86
88
|
};
|
87
89
|
export var Default = function Default(args) {
|
88
90
|
return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(LinkSelectField, _extends({}, args, {
|
@@ -45,19 +45,20 @@ export default {
|
|
45
45
|
options: loadingStates
|
46
46
|
}
|
47
47
|
},
|
48
|
-
disabledKeys: {
|
49
|
-
defaultValue: ['Snake']
|
50
|
-
},
|
48
|
+
disabledKeys: {},
|
51
49
|
items: {
|
52
50
|
control: {
|
53
51
|
type: 'none'
|
54
52
|
}
|
55
53
|
},
|
56
54
|
onSelectionChange: {
|
57
|
-
control: 'none'
|
58
|
-
// eslint-disable-next-line no-console
|
59
|
-
defaultValue: console.log
|
55
|
+
control: 'none'
|
60
56
|
}
|
57
|
+
},
|
58
|
+
args: {
|
59
|
+
disabledKeys: ['Snake'],
|
60
|
+
// eslint-disable-next-line no-console
|
61
|
+
onSelectionChange: console.log
|
61
62
|
}
|
62
63
|
};
|
63
64
|
var items = [{
|
@@ -28,8 +28,7 @@ export default {
|
|
28
28
|
colorName = _ref2[0];
|
29
29
|
return colorName;
|
30
30
|
})
|
31
|
-
}
|
32
|
-
defaultValue: 'active'
|
31
|
+
}
|
33
32
|
},
|
34
33
|
size: {
|
35
34
|
control: {
|
@@ -37,6 +36,9 @@ export default {
|
|
37
36
|
},
|
38
37
|
description: 'The size of the loader. Sizes can either be a string such as xs, sm, md, etc or numeric size with unit such as 15px. Default size inherits the font size. ' + 'Numeric value paired with a unit. https://www.w3schools.com/cssref/css_units.asp'
|
39
38
|
}
|
39
|
+
},
|
40
|
+
args: {
|
41
|
+
color: 'active'
|
40
42
|
}
|
41
43
|
};
|
42
44
|
export var Default = function Default(args) {
|
@@ -23,8 +23,7 @@ export default {
|
|
23
23
|
title: {
|
24
24
|
control: {
|
25
25
|
type: 'text'
|
26
|
-
}
|
27
|
-
defaultValue: 'Continue'
|
26
|
+
}
|
28
27
|
},
|
29
28
|
role: {},
|
30
29
|
id: {
|
@@ -38,9 +37,7 @@ export default {
|
|
38
37
|
options: modalSizes
|
39
38
|
}
|
40
39
|
},
|
41
|
-
hasCloseButton: {
|
42
|
-
defaultValue: true
|
43
|
-
},
|
40
|
+
hasCloseButton: {},
|
44
41
|
isClosedOnBlur: {},
|
45
42
|
isDismissable: {},
|
46
43
|
isKeyboardDismissDisabled: {},
|
@@ -84,6 +81,10 @@ export default {
|
|
84
81
|
type: 'none'
|
85
82
|
}
|
86
83
|
}
|
84
|
+
},
|
85
|
+
args: {
|
86
|
+
title: 'Continue',
|
87
|
+
hasCloseButton: true
|
87
88
|
}
|
88
89
|
};
|
89
90
|
export var Default = function Default(args) {
|
@@ -23,18 +23,14 @@ export default {
|
|
23
23
|
title: 'Form/MultivaluesField',
|
24
24
|
component: MultivaluesField,
|
25
25
|
argTypes: _objectSpread(_objectSpread(_objectSpread({
|
26
|
-
direction: {
|
27
|
-
defaultValue: 'bottom'
|
28
|
-
},
|
26
|
+
direction: {},
|
29
27
|
hasAutoFocus: {},
|
30
28
|
hasNoStatusIndicator: {},
|
31
29
|
isDisabled: {},
|
32
30
|
isNotFlippable: {},
|
33
31
|
isReadOnly: {},
|
34
32
|
isRequired: {},
|
35
|
-
label: {
|
36
|
-
defaultValue: 'Field Label'
|
37
|
-
},
|
33
|
+
label: {},
|
38
34
|
mode: {},
|
39
35
|
placeholder: {},
|
40
36
|
defaultSelectedKeys: {
|
@@ -63,6 +59,10 @@ export default {
|
|
63
59
|
}
|
64
60
|
}
|
65
61
|
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
62
|
+
args: {
|
63
|
+
direction: 'bottom',
|
64
|
+
label: 'Field Label'
|
65
|
+
},
|
66
66
|
parameters: {
|
67
67
|
docs: {
|
68
68
|
page: function page() {
|
@@ -480,10 +480,8 @@ export var CustomValues = function CustomValues(args) {
|
|
480
480
|
}, item.name);
|
481
481
|
}));
|
482
482
|
};
|
483
|
-
CustomValues.
|
484
|
-
mode:
|
485
|
-
defaultValue: 'non-restrictive'
|
486
|
-
}
|
483
|
+
CustomValues.args = {
|
484
|
+
mode: 'non-restrictive'
|
487
485
|
};
|
488
486
|
export var IconSlotsInBadge = function IconSlotsInBadge(args) {
|
489
487
|
var _useState19 = useState(false),
|
@@ -35,8 +35,7 @@ export default {
|
|
35
35
|
label: {
|
36
36
|
control: {
|
37
37
|
type: 'text'
|
38
|
-
}
|
39
|
-
defaultValue: 'Example Label'
|
38
|
+
}
|
40
39
|
},
|
41
40
|
hintText: {
|
42
41
|
control: {
|
@@ -56,14 +55,12 @@ export default {
|
|
56
55
|
step: {
|
57
56
|
control: {
|
58
57
|
type: 'number'
|
59
|
-
}
|
60
|
-
defaultValue: 1
|
58
|
+
}
|
61
59
|
},
|
62
60
|
defaultValue: {
|
63
61
|
control: {
|
64
62
|
type: 'none'
|
65
|
-
}
|
66
|
-
defaultValue: 17
|
63
|
+
}
|
67
64
|
},
|
68
65
|
formatOptions: {
|
69
66
|
control: {
|
@@ -78,14 +75,12 @@ export default {
|
|
78
75
|
decrementAriaLabel: {
|
79
76
|
control: {
|
80
77
|
type: 'none'
|
81
|
-
}
|
82
|
-
defaultValue: 'decrement-button'
|
78
|
+
}
|
83
79
|
},
|
84
80
|
incrementAriaLabel: {
|
85
81
|
control: {
|
86
82
|
type: 'none'
|
87
|
-
}
|
88
|
-
defaultValue: 'increment-button'
|
83
|
+
}
|
89
84
|
},
|
90
85
|
minValue: {
|
91
86
|
control: {
|
@@ -97,7 +92,14 @@ export default {
|
|
97
92
|
type: 'none'
|
98
93
|
}
|
99
94
|
}
|
100
|
-
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes)
|
95
|
+
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
96
|
+
args: {
|
97
|
+
label: 'Example Label',
|
98
|
+
step: 1,
|
99
|
+
defaultValue: 17,
|
100
|
+
decrementAriaLabel: 'decrement-button',
|
101
|
+
incrementAriaLabel: 'increment-button'
|
102
|
+
}
|
101
103
|
};
|
102
104
|
export var Default = function Default(args) {
|
103
105
|
return ___EmotionJSX(NumberField, args);
|
@@ -28,13 +28,15 @@ export default {
|
|
28
28
|
control: {
|
29
29
|
type: 'select',
|
30
30
|
options: panelSizes
|
31
|
-
}
|
32
|
-
defaultValue: 'medium'
|
31
|
+
}
|
33
32
|
},
|
34
33
|
isOpen: {
|
35
34
|
control: 'none'
|
36
35
|
}
|
37
36
|
},
|
37
|
+
args: {
|
38
|
+
size: 'medium'
|
39
|
+
},
|
38
40
|
parameters: {
|
39
41
|
docs: {
|
40
42
|
page: function page() {
|
@@ -31,8 +31,7 @@ export default {
|
|
31
31
|
label: {
|
32
32
|
control: {
|
33
33
|
type: 'text'
|
34
|
-
}
|
35
|
-
defaultValue: 'Pick one'
|
34
|
+
}
|
36
35
|
},
|
37
36
|
helperText: {
|
38
37
|
control: {
|
@@ -44,9 +43,7 @@ export default {
|
|
44
43
|
type: 'text'
|
45
44
|
}
|
46
45
|
},
|
47
|
-
defaultValue: {
|
48
|
-
defaultValue: 'A'
|
49
|
-
},
|
46
|
+
defaultValue: {},
|
50
47
|
orientation: {},
|
51
48
|
isDisabled: {},
|
52
49
|
isRequired: {},
|
@@ -57,7 +54,11 @@ export default {
|
|
57
54
|
type: 'none'
|
58
55
|
}
|
59
56
|
}
|
60
|
-
}, statusArgTypes), ariaAttributeBaseArgTypes)
|
57
|
+
}, statusArgTypes), ariaAttributeBaseArgTypes),
|
58
|
+
args: {
|
59
|
+
label: 'Pick one',
|
60
|
+
defaultValue: 'A'
|
61
|
+
}
|
61
62
|
};
|
62
63
|
export var Default = function Default(args) {
|
63
64
|
return ___EmotionJSX(RadioGroupField, args, ___EmotionJSX(RadioField, {
|
@@ -21,21 +21,23 @@ export default {
|
|
21
21
|
control: {
|
22
22
|
type: 'object'
|
23
23
|
},
|
24
|
-
defaultValue: [{
|
25
|
-
name: 'requirement 1',
|
26
|
-
status: 'default'
|
27
|
-
}, {
|
28
|
-
name: 'requirement 2',
|
29
|
-
status: 'warning'
|
30
|
-
}, {
|
31
|
-
name: 'requirement 3',
|
32
|
-
status: 'error'
|
33
|
-
}, {
|
34
|
-
name: 'requirement 4',
|
35
|
-
status: 'success'
|
36
|
-
}],
|
37
24
|
description: 'Requirements and their status.'
|
38
25
|
}
|
26
|
+
},
|
27
|
+
args: {
|
28
|
+
requirements: [{
|
29
|
+
'name': 'requirement 1',
|
30
|
+
'status': 'default'
|
31
|
+
}, {
|
32
|
+
'name': 'requirement 2',
|
33
|
+
'status': 'warning'
|
34
|
+
}, {
|
35
|
+
'name': 'requirement 3',
|
36
|
+
'status': 'error'
|
37
|
+
}, {
|
38
|
+
'name': 'requirement 4',
|
39
|
+
'status': 'success'
|
40
|
+
}]
|
39
41
|
}
|
40
42
|
};
|
41
43
|
export var Default = function Default(_ref) {
|
@@ -20,15 +20,16 @@ export default {
|
|
20
20
|
}
|
21
21
|
},
|
22
22
|
argTypes: {
|
23
|
-
isDisabled: {
|
24
|
-
defaultValue: false
|
25
|
-
},
|
23
|
+
isDisabled: {},
|
26
24
|
defaultSelectedKey: {},
|
27
25
|
selectedKey: {
|
28
26
|
control: {
|
29
27
|
type: 'none'
|
30
28
|
}
|
31
29
|
}
|
30
|
+
},
|
31
|
+
args: {
|
32
|
+
isDisabled: false
|
32
33
|
}
|
33
34
|
};
|
34
35
|
export var Default = function Default(_ref) {
|
@@ -41,9 +41,7 @@ export default {
|
|
41
41
|
type: 'text'
|
42
42
|
}
|
43
43
|
},
|
44
|
-
placeholder: {
|
45
|
-
defaultValue: 'Search Groups'
|
46
|
-
},
|
44
|
+
placeholder: {},
|
47
45
|
defaultValue: {},
|
48
46
|
icon: {
|
49
47
|
control: {
|
@@ -65,7 +63,10 @@ export default {
|
|
65
63
|
type: 'none'
|
66
64
|
}
|
67
65
|
}
|
68
|
-
}, ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes)
|
66
|
+
}, ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
67
|
+
args: {
|
68
|
+
placeholder: 'Search Groups'
|
69
|
+
}
|
69
70
|
};
|
70
71
|
export var Default = function Default(args) {
|
71
72
|
return ___EmotionJSX(SearchField, _extends({}, args, {
|
@@ -131,8 +131,7 @@ export default {
|
|
131
131
|
label: {
|
132
132
|
control: {
|
133
133
|
type: 'text'
|
134
|
-
}
|
135
|
-
defaultValue: 'Example Label'
|
134
|
+
}
|
136
135
|
},
|
137
136
|
placeholder: {},
|
138
137
|
defaultText: {},
|
@@ -150,8 +149,7 @@ export default {
|
|
150
149
|
control: {
|
151
150
|
type: 'select',
|
152
151
|
options: _Object$values(labelModes)
|
153
|
-
}
|
154
|
-
defaultValue: _Object$values(labelModes)[0]
|
152
|
+
}
|
155
153
|
},
|
156
154
|
defaultSelectedKey: {},
|
157
155
|
disabledKeys: {},
|
@@ -168,7 +166,11 @@ export default {
|
|
168
166
|
type: 'none'
|
169
167
|
}
|
170
168
|
}
|
171
|
-
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes)
|
169
|
+
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
170
|
+
args: {
|
171
|
+
label: 'Example Label',
|
172
|
+
labelMode: _Object$values(labelModes)[0]
|
173
|
+
}
|
172
174
|
};
|
173
175
|
export var Default = function Default(args) {
|
174
176
|
return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(SelectField, _extends({}, args, {
|
@@ -11,10 +11,6 @@ export default {
|
|
11
11
|
title: 'Components/Stepper',
|
12
12
|
component: Stepper,
|
13
13
|
decorators: [withDesign],
|
14
|
-
args: {
|
15
|
-
items: undefined,
|
16
|
-
onStepChange: undefined
|
17
|
-
},
|
18
14
|
argTypes: {
|
19
15
|
activeStep: {
|
20
16
|
control: {
|
@@ -22,14 +18,10 @@ export default {
|
|
22
18
|
min: 0,
|
23
19
|
step: 1
|
24
20
|
},
|
25
|
-
defaultValue: 1,
|
26
21
|
description: 'The number of the current step (using one-based indexing)',
|
27
22
|
table: {
|
28
23
|
type: {
|
29
24
|
summary: 'number'
|
30
|
-
},
|
31
|
-
defaultValue: {
|
32
|
-
summary: 1
|
33
25
|
}
|
34
26
|
}
|
35
27
|
},
|
@@ -39,12 +31,19 @@ export default {
|
|
39
31
|
}
|
40
32
|
},
|
41
33
|
items: {
|
42
|
-
defaultValue: undefined,
|
43
34
|
control: {
|
44
35
|
type: 'none'
|
45
36
|
}
|
46
37
|
}
|
47
38
|
},
|
39
|
+
args: {
|
40
|
+
activeStep: 1,
|
41
|
+
table: {
|
42
|
+
summary: 1
|
43
|
+
},
|
44
|
+
items: undefined,
|
45
|
+
onStepChange: undefined
|
46
|
+
},
|
48
47
|
parameters: {
|
49
48
|
docs: {
|
50
49
|
page: function page() {
|
@@ -18,7 +18,7 @@ import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
18
18
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
19
19
|
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
20
20
|
import SwitchFieldReadme from './SwitchField.mdx';
|
21
|
-
import { switchFieldArgTypes } from './switchFieldAttributes';
|
21
|
+
import { switchFieldArgs, switchFieldArgTypes } from './switchFieldAttributes';
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
23
23
|
export default {
|
24
24
|
title: 'Form/SwitchField',
|
@@ -33,7 +33,8 @@ export default {
|
|
33
33
|
}
|
34
34
|
}
|
35
35
|
},
|
36
|
-
argTypes: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, switchFieldArgTypes), statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes)
|
36
|
+
argTypes: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, switchFieldArgTypes), statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
37
|
+
args: switchFieldArgs
|
37
38
|
};
|
38
39
|
export var Default = function Default(args) {
|
39
40
|
return ___EmotionJSX(SwitchField, args);
|
@@ -109,7 +109,6 @@ export var switchFieldArgTypes = {
|
|
109
109
|
type: {
|
110
110
|
summary: string
|
111
111
|
},
|
112
|
-
defaultValue: 'Example Label',
|
113
112
|
description: descriptions.label
|
114
113
|
},
|
115
114
|
name: {
|
@@ -140,7 +139,6 @@ export var switchFieldArgTypes = {
|
|
140
139
|
description: descriptions.onKeyUp
|
141
140
|
}),
|
142
141
|
value: {
|
143
|
-
defaultValue: 'my-switch',
|
144
142
|
control: {
|
145
143
|
type: text
|
146
144
|
},
|
@@ -154,10 +152,14 @@ export var switchFieldArgTypes = {
|
|
154
152
|
type: 'select',
|
155
153
|
options: statuses
|
156
154
|
},
|
157
|
-
defaultValue: statuses.DEFAULT,
|
158
155
|
description: descriptions.status
|
159
156
|
}
|
160
157
|
};
|
158
|
+
export var switchFieldArgs = {
|
159
|
+
label: 'Example Label',
|
160
|
+
value: 'my-switch',
|
161
|
+
status: statuses.DEFAULT
|
162
|
+
};
|
161
163
|
export var switchFieldPropTypes = _objectSpread(_objectSpread(_objectSpread({
|
162
164
|
className: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
163
165
|
hasAutoFocus: PropTypes.bool,
|
@@ -39,15 +39,13 @@ export default {
|
|
39
39
|
label: {
|
40
40
|
control: {
|
41
41
|
type: 'text'
|
42
|
-
}
|
43
|
-
defaultValue: 'Example Label'
|
42
|
+
}
|
44
43
|
},
|
45
44
|
labelMode: {
|
46
45
|
control: {
|
47
46
|
type: 'select',
|
48
47
|
options: _Object$values(labelModes)
|
49
|
-
}
|
50
|
-
defaultValue: _Object$values(labelModes)[0]
|
48
|
+
}
|
51
49
|
},
|
52
50
|
defaultValue: {},
|
53
51
|
placeholder: {},
|
@@ -76,7 +74,11 @@ export default {
|
|
76
74
|
type: 'none'
|
77
75
|
}
|
78
76
|
}
|
79
|
-
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes)
|
77
|
+
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
78
|
+
args: {
|
79
|
+
label: 'Example Label',
|
80
|
+
labelMode: _Object$values(labelModes)[0]
|
81
|
+
}
|
80
82
|
};
|
81
83
|
var IconSlot = ___EmotionJSX(Box, {
|
82
84
|
isRow: true
|
@@ -44,15 +44,17 @@ export default {
|
|
44
44
|
control: {
|
45
45
|
type: 'select',
|
46
46
|
options: _Object$values(labelModes)
|
47
|
-
}
|
48
|
-
defaultValue: _Object$values(labelModes)[0]
|
47
|
+
}
|
49
48
|
},
|
50
49
|
variant: {
|
51
50
|
control: {
|
52
51
|
type: 'text'
|
53
52
|
}
|
54
53
|
}
|
55
|
-
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes)
|
54
|
+
}, statusArgTypes), ariaAttributeBaseArgTypes), inputFieldAttributeBaseArgTypes),
|
55
|
+
args: {
|
56
|
+
labelMode: _Object$values(labelModes)[0]
|
57
|
+
}
|
56
58
|
};
|
57
59
|
export var Default = function Default(_ref) {
|
58
60
|
var variant = _ref.variant,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { iconButtonArgTypes } from '../../../components/IconButton/iconButtonAttributes';
|
2
|
+
import { iconButtonArgs, iconButtonArgTypes } from '../../../components/IconButton/iconButtonAttributes';
|
3
3
|
import { ListViewItemEditButton } from '../../../index';
|
4
4
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
5
|
delete iconButtonArgTypes.size;
|
@@ -14,7 +14,8 @@ export default {
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
},
|
17
|
-
argTypes: iconButtonArgTypes
|
17
|
+
argTypes: iconButtonArgTypes,
|
18
|
+
args: iconButtonArgs
|
18
19
|
};
|
19
20
|
export var Default = function Default(args) {
|
20
21
|
return ___EmotionJSX(ListViewItemEditButton, args);
|
@@ -10,7 +10,7 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
10
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
11
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
12
|
import React from 'react';
|
13
|
-
import { switchFieldArgTypes } from '../../../components/SwitchField/switchFieldAttributes';
|
13
|
+
import { switchFieldArgs, switchFieldArgTypes } from '../../../components/SwitchField/switchFieldAttributes';
|
14
14
|
import { ListViewItemSwitchField } from '../../../index';
|
15
15
|
import { onHoverArgTypes } from '../../../utils/docUtils/hoverProps';
|
16
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -25,7 +25,10 @@ export default {
|
|
25
25
|
}
|
26
26
|
}
|
27
27
|
},
|
28
|
-
argTypes: _objectSpread(_objectSpread({}, switchFieldArgTypes), onHoverArgTypes)
|
28
|
+
argTypes: _objectSpread(_objectSpread({}, switchFieldArgTypes), onHoverArgTypes),
|
29
|
+
args: _objectSpread(_objectSpread({}, switchFieldArgs), {}, {
|
30
|
+
label: ''
|
31
|
+
})
|
29
32
|
};
|
30
33
|
export var Default = function Default(args) {
|
31
34
|
return ___EmotionJSX(ListViewItemSwitchField, args);
|
@@ -18,19 +18,20 @@ export default {
|
|
18
18
|
type: 'select'
|
19
19
|
}
|
20
20
|
},
|
21
|
-
disabledKeys: {
|
22
|
-
defaultValue: []
|
23
|
-
},
|
21
|
+
disabledKeys: {},
|
24
22
|
items: {
|
25
23
|
control: {
|
26
24
|
type: 'none'
|
27
25
|
}
|
28
26
|
},
|
29
27
|
onSelectionChange: {
|
30
|
-
control: 'none'
|
31
|
-
// eslint-disable-next-line no-console
|
32
|
-
defaultValue: console.log
|
28
|
+
control: 'none'
|
33
29
|
}
|
30
|
+
},
|
31
|
+
args: {
|
32
|
+
disabledKeys: [],
|
33
|
+
// eslint-disable-next-line no-console
|
34
|
+
onSelectionChange: console.log
|
34
35
|
}
|
35
36
|
};
|
36
37
|
var testData = [{
|