@pingux/astro 2.9.0-alpha.2 → 2.9.0-alpha.4

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.
Files changed (97) hide show
  1. package/lib/cjs/components/ArrayField/ArrayField.stories.js +6 -4
  2. package/lib/cjs/components/Avatar/Avatar.stories.js +4 -2
  3. package/lib/cjs/components/Badge/Badge.stories.js +4 -2
  4. package/lib/cjs/components/Box/Box.stories.js +8 -6
  5. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +3 -1
  6. package/lib/cjs/components/Button/Button.stories.js +4 -0
  7. package/lib/cjs/components/Button/buttonAttributes.js +0 -2
  8. package/lib/cjs/components/Calendar/Calendar.stories.js +13 -11
  9. package/lib/cjs/components/Card/Card.stories.js +3 -1
  10. package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +5 -3
  11. package/lib/cjs/components/CodeView/CodeView.stories.js +3 -1
  12. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +8 -9
  13. package/lib/cjs/components/ColorField/ColorField.stories.js +11 -9
  14. package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +9 -9
  15. package/lib/cjs/components/DataTable/DataTable.stories.js +7 -5
  16. package/lib/cjs/components/DatePicker/DatePicker.stories.js +16 -14
  17. package/lib/cjs/components/FileInputField/FileInputField.stories.js +5 -3
  18. package/lib/cjs/components/HelpHint/HelpHint.stories.js +3 -1
  19. package/lib/cjs/components/Icon/Icon.stories.js +5 -3
  20. package/lib/cjs/components/IconButton/IconButton.stories.js +2 -1
  21. package/lib/cjs/components/IconButton/iconButtonAttributes.js +8 -5
  22. package/lib/cjs/components/Image/Image.stories.js +6 -4
  23. package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +11 -9
  24. package/lib/cjs/components/Input/Input.stories.js +4 -3
  25. package/lib/cjs/components/Label/Label.stories.js +4 -2
  26. package/lib/cjs/components/Link/Link.stories.js +8 -6
  27. package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +5 -3
  28. package/lib/cjs/components/ListView/ListView.stories.js +7 -6
  29. package/lib/cjs/components/Loader/Loader.stories.js +4 -2
  30. package/lib/cjs/components/Modal/Modal.stories.js +6 -5
  31. package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +8 -10
  32. package/lib/cjs/components/NumberField/NumberField.stories.js +13 -11
  33. package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +4 -2
  34. package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +7 -6
  35. package/lib/cjs/components/RequirementsList/RequirementsList.stories.js +15 -13
  36. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +4 -3
  37. package/lib/cjs/components/ScrollBox/ScrollBox.stories.js +4 -2
  38. package/lib/cjs/components/SearchField/SearchField.stories.js +5 -4
  39. package/lib/cjs/components/SelectField/SelectField.stories.js +7 -5
  40. package/lib/cjs/components/Stepper/Stepper.stories.js +8 -9
  41. package/lib/cjs/components/SwitchField/SwitchField.stories.js +2 -1
  42. package/lib/cjs/components/SwitchField/switchFieldAttributes.js +7 -4
  43. package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +7 -5
  44. package/lib/cjs/components/TextField/TextField.stories.js +5 -3
  45. package/lib/cjs/experimental/ListViewItem/controls/ListViewItemEditButton.stories.js +2 -1
  46. package/lib/cjs/experimental/ListViewItem/controls/ListViewItemSwitchField.stories.js +4 -1
  47. package/lib/cjs/recipes/LinkedListView.stories.js +7 -6
  48. package/lib/cjs/recipes/MaskedValue.stories.js +6 -4
  49. package/lib/components/ArrayField/ArrayField.stories.js +6 -4
  50. package/lib/components/Avatar/Avatar.stories.js +4 -2
  51. package/lib/components/Badge/Badge.stories.js +4 -2
  52. package/lib/components/Box/Box.stories.js +8 -6
  53. package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +3 -1
  54. package/lib/components/Button/Button.stories.js +4 -0
  55. package/lib/components/Button/buttonAttributes.js +0 -2
  56. package/lib/components/Calendar/Calendar.stories.js +13 -11
  57. package/lib/components/Card/Card.stories.js +3 -1
  58. package/lib/components/CheckboxField/CheckboxField.stories.js +5 -3
  59. package/lib/components/CodeView/CodeView.stories.js +3 -1
  60. package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +8 -9
  61. package/lib/components/ColorField/ColorField.stories.js +11 -9
  62. package/lib/components/ComboBoxField/ComboBoxField.stories.js +9 -9
  63. package/lib/components/DataTable/DataTable.stories.js +7 -5
  64. package/lib/components/DatePicker/DatePicker.stories.js +16 -14
  65. package/lib/components/FileInputField/FileInputField.stories.js +5 -3
  66. package/lib/components/HelpHint/HelpHint.stories.js +3 -1
  67. package/lib/components/Icon/Icon.stories.js +5 -3
  68. package/lib/components/IconButton/IconButton.stories.js +3 -2
  69. package/lib/components/IconButton/iconButtonAttributes.js +6 -4
  70. package/lib/components/Image/Image.stories.js +6 -4
  71. package/lib/components/ImageUploadField/ImageUploadField.stories.js +11 -9
  72. package/lib/components/Input/Input.stories.js +4 -3
  73. package/lib/components/Label/Label.stories.js +4 -2
  74. package/lib/components/Link/Link.stories.js +8 -6
  75. package/lib/components/LinkSelectField/LinkSelectField.stories.js +5 -3
  76. package/lib/components/ListView/ListView.stories.js +7 -6
  77. package/lib/components/Loader/Loader.stories.js +4 -2
  78. package/lib/components/Modal/Modal.stories.js +6 -5
  79. package/lib/components/MultivaluesField/MultivaluesField.stories.js +8 -10
  80. package/lib/components/NumberField/NumberField.stories.js +13 -11
  81. package/lib/components/OverlayPanel/OverlayPanel.stories.js +4 -2
  82. package/lib/components/RadioGroupField/RadioGroupField.stories.js +7 -6
  83. package/lib/components/RequirementsList/RequirementsList.stories.js +15 -13
  84. package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +4 -3
  85. package/lib/components/ScrollBox/ScrollBox.stories.js +4 -2
  86. package/lib/components/SearchField/SearchField.stories.js +5 -4
  87. package/lib/components/SelectField/SelectField.stories.js +7 -5
  88. package/lib/components/Stepper/Stepper.stories.js +8 -9
  89. package/lib/components/SwitchField/SwitchField.stories.js +3 -2
  90. package/lib/components/SwitchField/switchFieldAttributes.js +5 -3
  91. package/lib/components/TextAreaField/TextAreaField.stories.js +7 -5
  92. package/lib/components/TextField/TextField.stories.js +5 -3
  93. package/lib/experimental/ListViewItem/controls/ListViewItemEditButton.stories.js +3 -2
  94. package/lib/experimental/ListViewItem/controls/ListViewItemSwitchField.stories.js +5 -2
  95. package/lib/recipes/LinkedListView.stories.js +7 -6
  96. package/lib/recipes/MaskedValue.stories.js +6 -4
  97. package/package.json +19 -16
@@ -19,14 +19,16 @@ var _default = {
19
19
  control: {
20
20
  type: 'select',
21
21
  options: _constants.modes
22
- },
23
- defaultValue: _constants.modes.DEFAULT
22
+ }
24
23
  },
25
24
  isDisabled: {},
26
25
  isRequired: {},
27
26
  requiredIndicator: {
28
27
  control: 'none'
29
28
  }
29
+ },
30
+ args: {
31
+ mode: _constants.modes.DEFAULT
30
32
  }
31
33
  };
32
34
  exports["default"] = _default;
@@ -33,22 +33,19 @@ var _default = {
33
33
  href: {
34
34
  control: {
35
35
  type: 'text'
36
- },
37
- defaultValue: 'https://uilibrary.ping-eng.com/'
36
+ }
38
37
  },
39
38
  isDisabled: {},
40
39
  as: {
41
40
  control: {
42
41
  type: 'none',
43
42
  options: _htmlElements.htmlElements
44
- },
45
- defaultValue: 'a'
43
+ }
46
44
  },
47
45
  target: {
48
46
  control: {
49
47
  type: 'none'
50
- },
51
- defaultValue: '_blank'
48
+ }
52
49
  },
53
50
  variant: {
54
51
  control: {
@@ -56,6 +53,11 @@ var _default = {
56
53
  options: (0, _keys["default"])(_Link2["default"])
57
54
  }
58
55
  }
56
+ },
57
+ args: {
58
+ href: 'https://uilibrary.ping-eng.com/',
59
+ as: 'a',
60
+ target: '_blank'
59
61
  }
60
62
  };
61
63
  exports["default"] = _default;
@@ -63,8 +63,7 @@ var _default = {
63
63
  label: {
64
64
  control: {
65
65
  type: 'text'
66
- },
67
- defaultValue: 'What\'s your favourite color?'
66
+ }
68
67
  },
69
68
  placeholder: {},
70
69
  defaultText: {},
@@ -93,7 +92,10 @@ var _default = {
93
92
  type: 'none'
94
93
  }
95
94
  }
96
- }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
95
+ }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
96
+ args: {
97
+ label: 'What\'s your favourite color?'
98
+ }
97
99
  };
98
100
  exports["default"] = _default;
99
101
  var Default = function Default(args) {
@@ -54,19 +54,20 @@ var _default = {
54
54
  options: _loadingStates["default"]
55
55
  }
56
56
  },
57
- disabledKeys: {
58
- defaultValue: ['Snake']
59
- },
57
+ disabledKeys: {},
60
58
  items: {
61
59
  control: {
62
60
  type: 'none'
63
61
  }
64
62
  },
65
63
  onSelectionChange: {
66
- control: 'none',
67
- // eslint-disable-next-line no-console
68
- defaultValue: console.log
64
+ control: 'none'
69
65
  }
66
+ },
67
+ args: {
68
+ disabledKeys: ['Snake'],
69
+ // eslint-disable-next-line no-console
70
+ onSelectionChange: console.log
70
71
  }
71
72
  };
72
73
  exports["default"] = _default;
@@ -36,8 +36,7 @@ var _default = {
36
36
  colorName = _ref2[0];
37
37
  return colorName;
38
38
  })
39
- },
40
- defaultValue: 'active'
39
+ }
41
40
  },
42
41
  size: {
43
42
  control: {
@@ -45,6 +44,9 @@ var _default = {
45
44
  },
46
45
  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'
47
46
  }
47
+ },
48
+ args: {
49
+ color: 'active'
48
50
  }
49
51
  };
50
52
  exports["default"] = _default;
@@ -31,8 +31,7 @@ var _default = {
31
31
  title: {
32
32
  control: {
33
33
  type: 'text'
34
- },
35
- defaultValue: 'Continue'
34
+ }
36
35
  },
37
36
  role: {},
38
37
  id: {
@@ -46,9 +45,7 @@ var _default = {
46
45
  options: _modalSizes.modalSizes
47
46
  }
48
47
  },
49
- hasCloseButton: {
50
- defaultValue: true
51
- },
48
+ hasCloseButton: {},
52
49
  isClosedOnBlur: {},
53
50
  isDismissable: {},
54
51
  isKeyboardDismissDisabled: {},
@@ -92,6 +89,10 @@ var _default = {
92
89
  type: 'none'
93
90
  }
94
91
  }
92
+ },
93
+ args: {
94
+ title: 'Continue',
95
+ hasCloseButton: true
95
96
  }
96
97
  };
97
98
  exports["default"] = _default;
@@ -34,18 +34,14 @@ var _default = {
34
34
  title: 'Form/MultivaluesField',
35
35
  component: _index.MultivaluesField,
36
36
  argTypes: _objectSpread(_objectSpread(_objectSpread({
37
- direction: {
38
- defaultValue: 'bottom'
39
- },
37
+ direction: {},
40
38
  hasAutoFocus: {},
41
39
  hasNoStatusIndicator: {},
42
40
  isDisabled: {},
43
41
  isNotFlippable: {},
44
42
  isReadOnly: {},
45
43
  isRequired: {},
46
- label: {
47
- defaultValue: 'Field Label'
48
- },
44
+ label: {},
49
45
  mode: {},
50
46
  placeholder: {},
51
47
  defaultSelectedKeys: {
@@ -74,6 +70,10 @@ var _default = {
74
70
  }
75
71
  }
76
72
  }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
73
+ args: {
74
+ direction: 'bottom',
75
+ label: 'Field Label'
76
+ },
77
77
  parameters: {
78
78
  docs: {
79
79
  page: function page() {
@@ -500,10 +500,8 @@ var CustomValues = function CustomValues(args) {
500
500
  }));
501
501
  };
502
502
  exports.CustomValues = CustomValues;
503
- CustomValues.argTypes = {
504
- mode: {
505
- defaultValue: 'non-restrictive'
506
- }
503
+ CustomValues.args = {
504
+ mode: 'non-restrictive'
507
505
  };
508
506
  var IconSlotsInBadge = function IconSlotsInBadge(args) {
509
507
  var _useState19 = (0, _react.useState)(false),
@@ -46,8 +46,7 @@ var _default = {
46
46
  label: {
47
47
  control: {
48
48
  type: 'text'
49
- },
50
- defaultValue: 'Example Label'
49
+ }
51
50
  },
52
51
  hintText: {
53
52
  control: {
@@ -67,14 +66,12 @@ var _default = {
67
66
  step: {
68
67
  control: {
69
68
  type: 'number'
70
- },
71
- defaultValue: 1
69
+ }
72
70
  },
73
71
  defaultValue: {
74
72
  control: {
75
73
  type: 'none'
76
- },
77
- defaultValue: 17
74
+ }
78
75
  },
79
76
  formatOptions: {
80
77
  control: {
@@ -89,14 +86,12 @@ var _default = {
89
86
  decrementAriaLabel: {
90
87
  control: {
91
88
  type: 'none'
92
- },
93
- defaultValue: 'decrement-button'
89
+ }
94
90
  },
95
91
  incrementAriaLabel: {
96
92
  control: {
97
93
  type: 'none'
98
- },
99
- defaultValue: 'increment-button'
94
+ }
100
95
  },
101
96
  minValue: {
102
97
  control: {
@@ -108,7 +103,14 @@ var _default = {
108
103
  type: 'none'
109
104
  }
110
105
  }
111
- }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
106
+ }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
107
+ args: {
108
+ label: 'Example Label',
109
+ step: 1,
110
+ defaultValue: 17,
111
+ decrementAriaLabel: 'decrement-button',
112
+ incrementAriaLabel: 'increment-button'
113
+ }
112
114
  };
113
115
  exports["default"] = _default;
114
116
  var Default = function Default(args) {
@@ -41,13 +41,15 @@ var _default = {
41
41
  control: {
42
42
  type: 'select',
43
43
  options: _panelSizes.panelSizes
44
- },
45
- defaultValue: 'medium'
44
+ }
46
45
  },
47
46
  isOpen: {
48
47
  control: 'none'
49
48
  }
50
49
  },
50
+ args: {
51
+ size: 'medium'
52
+ },
51
53
  parameters: {
52
54
  docs: {
53
55
  page: function page() {
@@ -42,8 +42,7 @@ var _default = {
42
42
  label: {
43
43
  control: {
44
44
  type: 'text'
45
- },
46
- defaultValue: 'Pick one'
45
+ }
47
46
  },
48
47
  helperText: {
49
48
  control: {
@@ -55,9 +54,7 @@ var _default = {
55
54
  type: 'text'
56
55
  }
57
56
  },
58
- defaultValue: {
59
- defaultValue: 'A'
60
- },
57
+ defaultValue: {},
61
58
  orientation: {},
62
59
  isDisabled: {},
63
60
  isRequired: {},
@@ -68,7 +65,11 @@ var _default = {
68
65
  type: 'none'
69
66
  }
70
67
  }
71
- }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes)
68
+ }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes),
69
+ args: {
70
+ label: 'Pick one',
71
+ defaultValue: 'A'
72
+ }
72
73
  };
73
74
  exports["default"] = _default;
74
75
  var Default = function Default(args) {
@@ -29,21 +29,23 @@ var _default = {
29
29
  control: {
30
30
  type: 'object'
31
31
  },
32
- defaultValue: [{
33
- name: 'requirement 1',
34
- status: 'default'
35
- }, {
36
- name: 'requirement 2',
37
- status: 'warning'
38
- }, {
39
- name: 'requirement 3',
40
- status: 'error'
41
- }, {
42
- name: 'requirement 4',
43
- status: 'success'
44
- }],
45
32
  description: 'Requirements and their status.'
46
33
  }
34
+ },
35
+ args: {
36
+ requirements: [{
37
+ 'name': 'requirement 1',
38
+ 'status': 'default'
39
+ }, {
40
+ 'name': 'requirement 2',
41
+ 'status': 'warning'
42
+ }, {
43
+ 'name': 'requirement 3',
44
+ 'status': 'error'
45
+ }, {
46
+ 'name': 'requirement 4',
47
+ 'status': 'success'
48
+ }]
47
49
  }
48
50
  };
49
51
  exports["default"] = _default;
@@ -33,15 +33,16 @@ var _default = {
33
33
  }
34
34
  },
35
35
  argTypes: {
36
- isDisabled: {
37
- defaultValue: false
38
- },
36
+ isDisabled: {},
39
37
  defaultSelectedKey: {},
40
38
  selectedKey: {
41
39
  control: {
42
40
  type: 'none'
43
41
  }
44
42
  }
43
+ },
44
+ args: {
45
+ isDisabled: false
45
46
  }
46
47
  };
47
48
  exports["default"] = _default;
@@ -29,9 +29,11 @@ var _default = {
29
29
  maxHeight: {
30
30
  control: {
31
31
  type: 'text'
32
- },
33
- defaultValue: '100px'
32
+ }
34
33
  }
34
+ },
35
+ args: {
36
+ maxHeight: '100px'
35
37
  }
36
38
  };
37
39
  exports["default"] = _default;
@@ -52,9 +52,7 @@ var _default = {
52
52
  type: 'text'
53
53
  }
54
54
  },
55
- placeholder: {
56
- defaultValue: 'Search Groups'
57
- },
55
+ placeholder: {},
58
56
  defaultValue: {},
59
57
  icon: {
60
58
  control: {
@@ -76,7 +74,10 @@ var _default = {
76
74
  type: 'none'
77
75
  }
78
76
  }
79
- }, _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
77
+ }, _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
78
+ args: {
79
+ placeholder: 'Search Groups'
80
+ }
80
81
  };
81
82
  exports["default"] = _default;
82
83
  var Default = function Default(args) {
@@ -142,8 +142,7 @@ var _default = {
142
142
  label: {
143
143
  control: {
144
144
  type: 'text'
145
- },
146
- defaultValue: 'Example Label'
145
+ }
147
146
  },
148
147
  placeholder: {},
149
148
  defaultText: {},
@@ -161,8 +160,7 @@ var _default = {
161
160
  control: {
162
161
  type: 'select',
163
162
  options: (0, _values["default"])(_constants.modes)
164
- },
165
- defaultValue: (0, _values["default"])(_constants.modes)[0]
163
+ }
166
164
  },
167
165
  defaultSelectedKey: {},
168
166
  disabledKeys: {},
@@ -179,7 +177,11 @@ var _default = {
179
177
  type: 'none'
180
178
  }
181
179
  }
182
- }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
180
+ }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
181
+ args: {
182
+ label: 'Example Label',
183
+ labelMode: (0, _values["default"])(_constants.modes)[0]
184
+ }
183
185
  };
184
186
  exports["default"] = _default;
185
187
  var Default = function Default(args) {
@@ -24,10 +24,6 @@ var _default = {
24
24
  title: 'Components/Stepper',
25
25
  component: _index.Stepper,
26
26
  decorators: [_storybookAddonDesigns.withDesign],
27
- args: {
28
- items: undefined,
29
- onStepChange: undefined
30
- },
31
27
  argTypes: {
32
28
  activeStep: {
33
29
  control: {
@@ -35,14 +31,10 @@ var _default = {
35
31
  min: 0,
36
32
  step: 1
37
33
  },
38
- defaultValue: 1,
39
34
  description: 'The number of the current step (using one-based indexing)',
40
35
  table: {
41
36
  type: {
42
37
  summary: 'number'
43
- },
44
- defaultValue: {
45
- summary: 1
46
38
  }
47
39
  }
48
40
  },
@@ -52,12 +44,19 @@ var _default = {
52
44
  }
53
45
  },
54
46
  items: {
55
- defaultValue: undefined,
56
47
  control: {
57
48
  type: 'none'
58
49
  }
59
50
  }
60
51
  },
52
+ args: {
53
+ activeStep: 1,
54
+ table: {
55
+ summary: 1
56
+ },
57
+ items: undefined,
58
+ onStepChange: undefined
59
+ },
61
60
  parameters: {
62
61
  docs: {
63
62
  page: function page() {
@@ -44,7 +44,8 @@ var _default = {
44
44
  }
45
45
  }
46
46
  },
47
- argTypes: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _switchFieldAttributes.switchFieldArgTypes), _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
47
+ argTypes: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _switchFieldAttributes.switchFieldArgTypes), _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
48
+ args: _switchFieldAttributes.switchFieldArgs
48
49
  };
49
50
  exports["default"] = _default;
50
51
  var Default = function Default(args) {
@@ -12,7 +12,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
12
12
  _Object$defineProperty(exports, "__esModule", {
13
13
  value: true
14
14
  });
15
- exports.switchFieldPropTypes = exports.switchFieldArgTypes = void 0;
15
+ exports.switchFieldPropTypes = exports.switchFieldArgs = exports.switchFieldArgTypes = void 0;
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
17
  var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
18
18
  var _values = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/values"));
@@ -116,7 +116,6 @@ var switchFieldArgTypes = {
116
116
  type: {
117
117
  summary: string
118
118
  },
119
- defaultValue: 'Example Label',
120
119
  description: descriptions.label
121
120
  },
122
121
  name: {
@@ -147,7 +146,6 @@ var switchFieldArgTypes = {
147
146
  description: descriptions.onKeyUp
148
147
  }),
149
148
  value: {
150
- defaultValue: 'my-switch',
151
149
  control: {
152
150
  type: text
153
151
  },
@@ -161,11 +159,16 @@ var switchFieldArgTypes = {
161
159
  type: 'select',
162
160
  options: _statuses["default"]
163
161
  },
164
- defaultValue: _statuses["default"].DEFAULT,
165
162
  description: descriptions.status
166
163
  }
167
164
  };
168
165
  exports.switchFieldArgTypes = switchFieldArgTypes;
166
+ var switchFieldArgs = {
167
+ label: 'Example Label',
168
+ value: 'my-switch',
169
+ status: _statuses["default"].DEFAULT
170
+ };
171
+ exports.switchFieldArgs = switchFieldArgs;
169
172
  var switchFieldPropTypes = _objectSpread(_objectSpread(_objectSpread({
170
173
  className: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].arrayOf(_propTypes["default"].string)]),
171
174
  hasAutoFocus: _propTypes["default"].bool,
@@ -50,15 +50,13 @@ var _default = {
50
50
  label: {
51
51
  control: {
52
52
  type: 'text'
53
- },
54
- defaultValue: 'Example Label'
53
+ }
55
54
  },
56
55
  labelMode: {
57
56
  control: {
58
57
  type: 'select',
59
58
  options: (0, _values["default"])(_constants.modes)
60
- },
61
- defaultValue: (0, _values["default"])(_constants.modes)[0]
59
+ }
62
60
  },
63
61
  defaultValue: {},
64
62
  placeholder: {},
@@ -87,7 +85,11 @@ var _default = {
87
85
  type: 'none'
88
86
  }
89
87
  }
90
- }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
88
+ }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
89
+ args: {
90
+ label: 'Example Label',
91
+ labelMode: (0, _values["default"])(_constants.modes)[0]
92
+ }
91
93
  };
92
94
  exports["default"] = _default;
93
95
  var IconSlot = (0, _react2.jsx)(_index.Box, {
@@ -55,15 +55,17 @@ var _default = {
55
55
  control: {
56
56
  type: 'select',
57
57
  options: (0, _values["default"])(_constants.modes)
58
- },
59
- defaultValue: (0, _values["default"])(_constants.modes)[0]
58
+ }
60
59
  },
61
60
  variant: {
62
61
  control: {
63
62
  type: 'text'
64
63
  }
65
64
  }
66
- }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
65
+ }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
66
+ args: {
67
+ labelMode: (0, _values["default"])(_constants.modes)[0]
68
+ }
67
69
  };
68
70
  exports["default"] = _default;
69
71
  var Default = function Default(_ref) {
@@ -22,7 +22,8 @@ var _default = {
22
22
  }
23
23
  }
24
24
  },
25
- argTypes: _iconButtonAttributes.iconButtonArgTypes
25
+ argTypes: _iconButtonAttributes.iconButtonArgTypes,
26
+ args: _iconButtonAttributes.iconButtonArgs
26
27
  };
27
28
  exports["default"] = _default;
28
29
  var Default = function Default(args) {
@@ -32,7 +32,10 @@ var _default = {
32
32
  }
33
33
  }
34
34
  },
35
- argTypes: _objectSpread(_objectSpread({}, _switchFieldAttributes.switchFieldArgTypes), _hoverProps.onHoverArgTypes)
35
+ argTypes: _objectSpread(_objectSpread({}, _switchFieldAttributes.switchFieldArgTypes), _hoverProps.onHoverArgTypes),
36
+ args: _objectSpread(_objectSpread({}, _switchFieldAttributes.switchFieldArgs), {}, {
37
+ label: ''
38
+ })
36
39
  };
37
40
  exports["default"] = _default;
38
41
  var Default = function Default(args) {
@@ -31,19 +31,20 @@ var _default = {
31
31
  type: 'select'
32
32
  }
33
33
  },
34
- disabledKeys: {
35
- defaultValue: []
36
- },
34
+ disabledKeys: {},
37
35
  items: {
38
36
  control: {
39
37
  type: 'none'
40
38
  }
41
39
  },
42
40
  onSelectionChange: {
43
- control: 'none',
44
- // eslint-disable-next-line no-console
45
- defaultValue: console.log
41
+ control: 'none'
46
42
  }
43
+ },
44
+ args: {
45
+ disabledKeys: [],
46
+ // eslint-disable-next-line no-console
47
+ onSelectionChange: console.log
47
48
  }
48
49
  };
49
50
  exports["default"] = _default;
@@ -25,16 +25,18 @@ var _default = {
25
25
  dataTitle: {
26
26
  control: {
27
27
  type: 'text'
28
- },
29
- defaultValue: 'Clients Secret'
28
+ }
30
29
  },
31
30
  secretData: {
32
31
  control: {
33
32
  type: 'text'
34
- },
35
- defaultValue: 'A secret piece of text'
33
+ }
36
34
  }
37
35
  },
36
+ args: {
37
+ dataTitle: 'Clients Secret',
38
+ secretData: 'A secret piece of text'
39
+ },
38
40
  parameters: {
39
41
  docs: {
40
42
  source: {