@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.
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
@@ -47,19 +47,16 @@ var _default = {
47
47
  },
48
48
  argTypes: _objectSpread({
49
49
  label: {
50
- defaultValue: 'Array field label',
51
50
  control: {
52
51
  type: 'text'
53
52
  }
54
53
  },
55
54
  helperText: {
56
- defaultValue: 'Helper text info...',
57
55
  control: {
58
56
  type: 'text'
59
57
  }
60
58
  },
61
59
  addButtonLabel: {
62
- defaultValue: '+ Add field',
63
60
  control: {
64
61
  type: 'text'
65
62
  }
@@ -74,7 +71,12 @@ var _default = {
74
71
  type: 'text'
75
72
  }
76
73
  }
77
- }, _ariaAttributes.ariaAttributeBaseArgTypes)
74
+ }, _ariaAttributes.ariaAttributeBaseArgTypes),
75
+ args: {
76
+ label: 'Array field label',
77
+ helperText: 'Helper text info...',
78
+ addButtonLabel: '+ Add field'
79
+ }
78
80
  };
79
81
  exports["default"] = _default;
80
82
  var defaultData = [{
@@ -31,9 +31,11 @@ var _default = {
31
31
  src: {
32
32
  control: {
33
33
  type: 'none'
34
- },
35
- defaultValue: _images.pingImg
34
+ }
36
35
  }
36
+ },
37
+ args: {
38
+ src: _images.pingImg
37
39
  }
38
40
  };
39
41
  exports["default"] = _default;
@@ -47,18 +47,20 @@ var _default = {
47
47
  }
48
48
  },
49
49
  label: {
50
- defaultValue: 'Label',
51
50
  control: {
52
51
  type: 'text'
53
52
  }
54
53
  },
55
54
  isUppercase: {
56
- defaultValue: false,
57
55
  control: {
58
56
  type: 'boolean'
59
57
  }
60
58
  }
61
59
  },
60
+ args: {
61
+ label: 'Label',
62
+ isUppercase: false
63
+ },
62
64
  parameters: {
63
65
  docs: {
64
66
  source: {
@@ -40,23 +40,25 @@ var _default = {
40
40
  colorName = _ref2[0];
41
41
  return colorName;
42
42
  })
43
- },
44
- defaultValue: 'active'
43
+ }
45
44
  },
46
45
  gap: {
47
46
  control: {
48
47
  type: 'text'
49
48
  },
50
- description: 'Gap between items, whether in a row or column. Numeric value paired with a unit. https://www.w3schools.com/cssref/css_units.asp',
51
- defaultValue: '10px'
49
+ description: 'Gap between items, whether in a row or column. Numeric value paired with a unit. https://www.w3schools.com/cssref/css_units.asp'
52
50
  },
53
51
  as: {
54
52
  control: {
55
53
  type: 'select',
56
54
  options: _htmlElements.htmlElements
57
- },
58
- defaultValue: 'div'
55
+ }
59
56
  }
57
+ },
58
+ args: {
59
+ bg: 'active',
60
+ gap: '10px',
61
+ as: 'div'
60
62
  }
61
63
  };
62
64
  exports["default"] = _default;
@@ -36,7 +36,6 @@ var _default = {
36
36
  control: {
37
37
  type: 'none'
38
38
  },
39
- defaultValue: _ChevronRightIcon["default"],
40
39
  description: 'The icon to render. List of icons at https://materialdesignicons.com/'
41
40
  },
42
41
  iconProps: {
@@ -44,6 +43,9 @@ var _default = {
44
43
  type: 'none'
45
44
  }
46
45
  }
46
+ },
47
+ args: {
48
+ icon: _ChevronRightIcon["default"]
47
49
  }
48
50
  };
49
51
  exports["default"] = _default;
@@ -34,6 +34,10 @@ var _default = {
34
34
  component: _index.Button,
35
35
  decorators: [_storybookAddonDesigns.withDesign],
36
36
  argTypes: _objectSpread({}, _buttonAttributes.buttonArgTypes),
37
+ args: {
38
+ variant: 'default',
39
+ children: 'Button Text'
40
+ },
37
41
  parameters: {
38
42
  docs: {
39
43
  source: {
@@ -43,11 +43,9 @@ var buttonArgTypes = _objectSpread(_objectSpread({
43
43
  type: 'select',
44
44
  options: variantOptions
45
45
  },
46
- defaultValue: 'default',
47
46
  description: descriptions.variant
48
47
  },
49
48
  children: {
50
- defaultValue: 'Button Text',
51
49
  table: {
52
50
  type: {
53
51
  summary: 'string'
@@ -68,8 +68,7 @@ var _default = {
68
68
  hasAutoFocus: {
69
69
  control: {
70
70
  type: 'boolean'
71
- },
72
- defaultValue: false
71
+ }
73
72
  },
74
73
  id: {
75
74
  control: {
@@ -79,20 +78,17 @@ var _default = {
79
78
  isDisabled: {
80
79
  control: {
81
80
  type: 'boolean'
82
- },
83
- defaultValue: false
81
+ }
84
82
  },
85
83
  isReadOnly: {
86
84
  control: {
87
85
  type: 'boolean'
88
- },
89
- defaultValue: false
86
+ }
90
87
  },
91
88
  isRequired: {
92
89
  control: {
93
90
  type: 'boolean'
94
- },
95
- defaultValue: false
91
+ }
96
92
  },
97
93
  maxValue: {
98
94
  control: {
@@ -108,17 +104,23 @@ var _default = {
108
104
  control: {
109
105
  type: 'func'
110
106
  },
111
- defaultValue: null,
112
107
  action: 'change'
113
108
  },
114
109
  onFocusChange: {
115
110
  control: {
116
111
  type: 'func'
117
112
  },
118
- defaultValue: null,
119
113
  action: 'focus change'
120
114
  }
121
- }, _ariaAttributes.ariaAttributeBaseArgTypes)
115
+ }, _ariaAttributes.ariaAttributeBaseArgTypes),
116
+ args: {
117
+ hasAutoFocus: false,
118
+ isDisabled: false,
119
+ isReadOnly: false,
120
+ isRequired: false,
121
+ onChange: null,
122
+ onFocusChange: null
123
+ }
122
124
  };
123
125
  exports["default"] = _default;
124
126
  var Default = function Default(args) {
@@ -28,7 +28,6 @@ var _default = {
28
28
  argTypes: {
29
29
  children: {
30
30
  description: 'Card content.',
31
- defaultValue: 'Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut at enim nunc. Cras congue consequat odio, ac sodales lacus imperdiet quis. In id ex eu lorem sollicitudin hendrerit feugiat ultrices elit. Curabitur imperdiet libero vitae luctus blandit. Ut ac dignissim tortor. Pellentesque convallis eu metus vitae mollis. Donec sapien felis, laoreet eu egestas eu, blandit quis tellus. Donec luctus suscipit nibh, et tincidunt nisl facilisis ut. Mauris molestie purus at lectus venenatis, ac ultrices felis ultrices.',
32
31
  table: {
33
32
  type: {}
34
33
  },
@@ -36,6 +35,9 @@ var _default = {
36
35
  type: 'text'
37
36
  }
38
37
  }
38
+ },
39
+ args: {
40
+ children: 'Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut at enim nunc. Cras congue consequat odio, ac sodales lacus imperdiet quis. In id ex eu lorem sollicitudin hendrerit feugiat ultrices elit. Curabitur imperdiet libero vitae luctus blandit. Ut ac dignissim tortor. Pellentesque convallis eu metus vitae mollis. Donec sapien felis, laoreet eu egestas eu, blandit quis tellus. Donec luctus suscipit nibh, et tincidunt nisl facilisis ut. Mauris molestie purus at lectus venenatis, ac ultrices felis ultrices.'
39
41
  }
40
42
  };
41
43
  exports["default"] = _default;
@@ -48,8 +48,7 @@ var _default = {
48
48
  label: {
49
49
  control: {
50
50
  type: 'text'
51
- },
52
- defaultValue: 'Click me!'
51
+ }
53
52
  },
54
53
  helperText: {
55
54
  control: {
@@ -75,7 +74,10 @@ var _default = {
75
74
  isIndeterminate: {},
76
75
  isDefaultSelected: {},
77
76
  isSelected: {}
78
- }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
77
+ }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
78
+ args: {
79
+ label: 'Click me!'
80
+ }
79
81
  };
80
82
  exports["default"] = _default;
81
83
  var Default = function Default(args) {
@@ -23,7 +23,6 @@ var _default = {
23
23
  decorators: [_storybookAddonDesigns.withDesign],
24
24
  argTypes: {
25
25
  children: {
26
- defaultValue: code,
27
26
  table: {
28
27
  type: {}
29
28
  },
@@ -35,6 +34,9 @@ var _default = {
35
34
  control: 'none'
36
35
  }
37
36
  },
37
+ args: {
38
+ children: code
39
+ },
38
40
  parameters: {
39
41
  docs: {
40
42
  page: function page() {
@@ -28,15 +28,9 @@ var _default = {
28
28
  }
29
29
  },
30
30
  argTypes: {
31
- listTitle: {
32
- defaultValue: 'Selected Groups'
33
- },
34
- openAriaLabel: {
35
- defaultValue: 'Open filter menu?'
36
- },
37
- closeAriaLabel: {
38
- defaultValue: 'Close filter menu?'
39
- },
31
+ listTitle: {},
32
+ openAriaLabel: {},
33
+ closeAriaLabel: {},
40
34
  isDefaultOpen: {},
41
35
  isOpen: {
42
36
  onClick: {
@@ -46,6 +40,11 @@ var _default = {
46
40
  type: 'none'
47
41
  }
48
42
  }
43
+ },
44
+ args: {
45
+ listTitle: 'Selected Groups',
46
+ openAriaLabel: 'Open filter menu?',
47
+ closeAriaLabel: 'Close filter menu?'
49
48
  }
50
49
  };
51
50
  exports["default"] = _default;
@@ -53,8 +53,7 @@ var _default = {
53
53
  label: {
54
54
  control: {
55
55
  type: 'text'
56
- },
57
- defaultValue: 'Color Field'
56
+ }
58
57
  },
59
58
  helperText: {
60
59
  control: {
@@ -64,12 +63,6 @@ var _default = {
64
63
  buttonProps: {
65
64
  control: {
66
65
  type: 'none'
67
- },
68
- defaultValue: {
69
- sx: {
70
- width: 40,
71
- height: 30
72
- }
73
66
  }
74
67
  },
75
68
  containerProps: {
@@ -77,7 +70,16 @@ var _default = {
77
70
  type: 'none'
78
71
  }
79
72
  }
80
- }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
73
+ }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
74
+ args: {
75
+ label: 'Color Field',
76
+ buttonProps: {
77
+ sx: {
78
+ width: 40,
79
+ height: 30
80
+ }
81
+ }
82
+ }
81
83
  };
82
84
  exports["default"] = _default;
83
85
  var Default = function Default(args) {
@@ -159,19 +159,14 @@ var _default = {
159
159
  label: {
160
160
  control: {
161
161
  type: 'text'
162
- },
163
- defaultValue: 'Example label'
162
+ }
164
163
  },
165
164
  placeholder: {},
166
165
  id: {},
167
- defaultItems: {
168
- defaultValue: items
169
- },
166
+ defaultItems: {},
170
167
  defaultSelectedKey: {},
171
168
  defaultInputValue: {},
172
- disabledKeys: {
173
- defaultValue: ['Snake']
174
- },
169
+ disabledKeys: {},
175
170
  direction: {},
176
171
  menuTrigger: {},
177
172
  isRequired: {},
@@ -208,7 +203,12 @@ var _default = {
208
203
  type: 'none'
209
204
  }
210
205
  }
211
- }, _ariaAttributes.ariaAttributeBaseArgTypes)
206
+ }, _ariaAttributes.ariaAttributeBaseArgTypes),
207
+ args: {
208
+ label: 'Example label',
209
+ defaultItems: items,
210
+ disableKeys: ['Snake']
211
+ }
212
212
  };
213
213
  exports["default"] = _default;
214
214
  var Default = function Default(args) {
@@ -63,14 +63,12 @@ var _default = {
63
63
  density: {
64
64
  control: {
65
65
  disable: true
66
- },
67
- defaultValue: 'spacious'
66
+ }
68
67
  },
69
68
  overflowMode: {
70
69
  control: {
71
70
  disable: true
72
- },
73
- defaultValue: 'truncate'
71
+ }
74
72
  },
75
73
  width: {
76
74
  description: 'Sets the width of the data table.',
@@ -120,7 +118,11 @@ var _default = {
120
118
  },
121
119
  description: 'The list of DataTable items.'
122
120
  }
123
- }, _ariaAttributes.ariaAttributeBaseArgTypes)
121
+ }, _ariaAttributes.ariaAttributeBaseArgTypes),
122
+ args: {
123
+ density: 'spacious',
124
+ overflowMode: 'truncate'
125
+ }
124
126
  };
125
127
  exports["default"] = _default;
126
128
  var Default = function Default(args) {
@@ -59,38 +59,32 @@ var _default = {
59
59
  hasAutoFocus: {
60
60
  control: {
61
61
  type: 'boolean'
62
- },
63
- defaultValue: false
62
+ }
64
63
  },
65
64
  hasFormatHelpText: {
66
65
  control: {
67
66
  type: 'boolean'
68
- },
69
- defaultValue: false
67
+ }
70
68
  },
71
69
  isDisabled: {
72
70
  control: {
73
71
  type: 'boolean'
74
- },
75
- defaultValue: false
72
+ }
76
73
  },
77
74
  isReadOnly: {
78
75
  control: {
79
76
  type: 'boolean'
80
- },
81
- defaultValue: false
77
+ }
82
78
  },
83
79
  isRequired: {
84
80
  control: {
85
81
  type: 'boolean'
86
- },
87
- defaultValue: false
82
+ }
88
83
  },
89
84
  label: {
90
85
  control: {
91
86
  type: 'text'
92
- },
93
- defaultValue: 'Example label'
87
+ }
94
88
  },
95
89
  maxValue: {
96
90
  control: {
@@ -103,10 +97,18 @@ var _default = {
103
97
  }
104
98
  },
105
99
  onChange: {
106
- defaultValue: null,
107
100
  action: 'handleChange'
108
101
  }
109
- }, _ariaAttributes.ariaAttributeBaseArgTypes)
102
+ }, _ariaAttributes.ariaAttributeBaseArgTypes),
103
+ args: {
104
+ hasAutoFocus: false,
105
+ hasFormatHelpText: false,
106
+ isDisabled: false,
107
+ isReadOnly: false,
108
+ isRequired: false,
109
+ label: 'Example label',
110
+ onChange: null
111
+ }
110
112
  };
111
113
  exports["default"] = _default;
112
114
  var Default = function Default(args) {
@@ -49,8 +49,7 @@ var _default = {
49
49
  label: {
50
50
  control: {
51
51
  type: 'text'
52
- },
53
- defaultValue: 'Field Label'
52
+ }
54
53
  },
55
54
  helperText: {
56
55
  control: {
@@ -92,7 +91,10 @@ var _default = {
92
91
  type: 'none'
93
92
  }
94
93
  }
95
- }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
94
+ }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
95
+ args: {
96
+ label: 'Field Label'
97
+ }
96
98
  };
97
99
  exports["default"] = _default;
98
100
  var fitContentWidthSx = {
@@ -27,11 +27,13 @@ var _default = {
27
27
  argTypes: {
28
28
  children: {
29
29
  description: 'Tooltip content',
30
- defaultValue: 'Text of the tooltip right here...',
31
30
  control: {
32
31
  type: 'text'
33
32
  }
34
33
  }
34
+ },
35
+ args: {
36
+ children: 'Text of the tooltip right here...'
35
37
  }
36
38
  };
37
39
  exports["default"] = _default;
@@ -44,7 +44,6 @@ var _default = {
44
44
  control: {
45
45
  type: 'none'
46
46
  },
47
- defaultValue: _SearchIcon["default"],
48
47
  description: 'The icon to render. List of icons at https://materialdesignicons.com/'
49
48
  },
50
49
  size: {
@@ -62,9 +61,12 @@ var _default = {
62
61
  colorName = _ref2[0];
63
62
  return colorName;
64
63
  })
65
- },
66
- defaultValue: 'active'
64
+ }
67
65
  }
66
+ },
67
+ args: {
68
+ icon: _SearchIcon["default"],
69
+ color: 'active'
68
70
  }
69
71
  };
70
72
  exports["default"] = _default;
@@ -34,7 +34,8 @@ var _default = {
34
34
  }
35
35
  }
36
36
  },
37
- argTypes: _iconButtonAttributes.iconButtonArgTypes
37
+ argTypes: _iconButtonAttributes.iconButtonArgTypes,
38
+ args: _iconButtonAttributes.iconButtonArgs
38
39
  };
39
40
  exports["default"] = _default;
40
41
  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.iconButtonPropTypes = exports.iconButtonArgTypes = void 0;
15
+ exports.iconButtonPropTypes = exports.iconButtonArgs = exports.iconButtonArgTypes = void 0;
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
17
  var _CreateIcon = _interopRequireDefault(require("@pingux/mdi-react/CreateIcon"));
18
18
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -36,7 +36,6 @@ var iconButtonArgTypes = {
36
36
  control: {
37
37
  type: 'none'
38
38
  },
39
- defaultValue: _CreateIcon["default"],
40
39
  description: descriptions.icon
41
40
  },
42
41
  title: {
@@ -59,15 +58,13 @@ var iconButtonArgTypes = {
59
58
  type: 'select',
60
59
  options: ['base', 'inverted', 'invertedSquare', 'square']
61
60
  },
62
- defaultValue: 'base',
63
61
  description: descriptions.variant
64
62
  },
65
63
  size: {
66
64
  control: {
67
65
  type: 'select',
68
66
  options: ['xs', 'sm', 'md']
69
- },
70
- defaultValue: 'sm'
67
+ }
71
68
  },
72
69
  onPress: _objectSpread({
73
70
  description: descriptions.onPress
@@ -86,6 +83,12 @@ var iconButtonArgTypes = {
86
83
  }, _docArgTypes.funcArg)
87
84
  };
88
85
  exports.iconButtonArgTypes = iconButtonArgTypes;
86
+ var iconButtonArgs = {
87
+ icon: _CreateIcon["default"],
88
+ variant: 'base',
89
+ size: 'sm'
90
+ };
91
+ exports.iconButtonArgs = iconButtonArgs;
89
92
  var iconButtonPropTypes = {
90
93
  variant: _propTypes["default"].string,
91
94
  'aria-label': _propTypes["default"].string,
@@ -43,15 +43,17 @@ var _default = {
43
43
  control: {
44
44
  type: 'none',
45
45
  options: _htmlElements.htmlElements
46
- },
47
- defaultValue: 'img'
46
+ }
48
47
  },
49
48
  src: {
50
49
  control: {
51
50
  type: 'none'
52
- },
53
- defaultValue: _images.pingImg
51
+ }
54
52
  }
53
+ },
54
+ args: {
55
+ as: 'img',
56
+ src: _images.pingImg
55
57
  }
56
58
  };
57
59
  exports["default"] = _default;
@@ -67,8 +67,7 @@ var _default = {
67
67
  fileTypes: {
68
68
  control: {
69
69
  type: 'array'
70
- },
71
- defaultValue: ['image']
70
+ }
72
71
  },
73
72
  helperText: {
74
73
  control: {
@@ -78,8 +77,7 @@ var _default = {
78
77
  label: {
79
78
  control: {
80
79
  type: 'text'
81
- },
82
- defaultValue: 'Upload Image'
80
+ }
83
81
  },
84
82
  onChange: {
85
83
  control: {
@@ -94,16 +92,20 @@ var _default = {
94
92
  previewHeight: {
95
93
  control: {
96
94
  type: 'number'
97
- },
98
- defaultValue: 50
95
+ }
99
96
  },
100
97
  previewWidth: {
101
98
  control: {
102
99
  type: 'number'
103
- },
104
- defaultValue: 50
100
+ }
105
101
  }
106
- }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes)
102
+ }, _statusProp.statusArgTypes), _ariaAttributes.ariaAttributeBaseArgTypes), _fieldAttributes.inputFieldAttributeBaseArgTypes),
103
+ args: {
104
+ fileTypes: ['image'],
105
+ label: 'Upload Image',
106
+ previewHeight: 50,
107
+ previewWidth: 50
108
+ }
107
109
  };
108
110
  exports["default"] = _default;
109
111
  var Default = function Default(args) {
@@ -14,12 +14,13 @@ var _default = {
14
14
  title: 'Form/Base Components/Input',
15
15
  component: _index.Input,
16
16
  argTypes: {
17
- placeholder: {
18
- defaultValue: 'This is a basic input'
19
- },
17
+ placeholder: {},
20
18
  type: {},
21
19
  name: {},
22
20
  id: {}
21
+ },
22
+ args: {
23
+ placeholder: 'This is a basic input'
23
24
  }
24
25
  };
25
26
  exports["default"] = _default;