@dhis2-ui/alert 9.11.2 → 9.11.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.
@@ -49,6 +49,9 @@ const alertTypeArgType = {
49
49
  type: {
50
50
  summary: 'bool',
51
51
  detail: "'success', 'warning', and 'critical' are mutually exclusive props"
52
+ },
53
+ defaultValue: {
54
+ summary: false
52
55
  }
53
56
  },
54
57
  control: {
@@ -62,6 +65,26 @@ const iconArgType = {
62
65
  }
63
66
  }
64
67
  };
68
+ const permanentArgType = {
69
+ table: {
70
+ type: {
71
+ summary: 'bool'
72
+ },
73
+ defaultValue: {
74
+ summary: false
75
+ }
76
+ },
77
+ control: {
78
+ type: 'boolean'
79
+ }
80
+ };
81
+ const childrenArgType = {
82
+ table: {
83
+ type: {
84
+ summary: 'String to display in the alert bar'
85
+ }
86
+ }
87
+ };
65
88
  const actionsArgType = {
66
89
  table: {
67
90
  type: {
@@ -73,6 +96,9 @@ var _default = exports.default = {
73
96
  title: 'Alert Bar',
74
97
  component: _index.AlertBar,
75
98
  decorators: [Wrapper],
99
+ args: {
100
+ children: 'I will autohide'
101
+ },
76
102
  parameters: {
77
103
  componentSubtitle: subtitle,
78
104
  docs: {
@@ -94,12 +120,18 @@ var _default = exports.default = {
94
120
  warning: {
95
121
  ...alertTypeArgType
96
122
  },
123
+ permanent: {
124
+ ...permanentArgType
125
+ },
126
+ children: {
127
+ ...childrenArgType
128
+ },
97
129
  icon: {
98
130
  ...iconArgType
99
131
  }
100
132
  }
101
133
  };
102
- const Default = args => /*#__PURE__*/_react.default.createElement(_index.AlertBar, args, "Default - I will autohide");
134
+ const Default = args => /*#__PURE__*/_react.default.createElement(_index.AlertBar, args);
103
135
  exports.Default = Default;
104
136
  const States = () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_index.AlertBar, {
105
137
  permanent: true
@@ -41,6 +41,9 @@ const alertTypeArgType = {
41
41
  type: {
42
42
  summary: 'bool',
43
43
  detail: "'success', 'warning', and 'critical' are mutually exclusive props"
44
+ },
45
+ defaultValue: {
46
+ summary: false
44
47
  }
45
48
  },
46
49
  control: {
@@ -54,6 +57,26 @@ const iconArgType = {
54
57
  }
55
58
  }
56
59
  };
60
+ const permanentArgType = {
61
+ table: {
62
+ type: {
63
+ summary: 'bool'
64
+ },
65
+ defaultValue: {
66
+ summary: false
67
+ }
68
+ },
69
+ control: {
70
+ type: 'boolean'
71
+ }
72
+ };
73
+ const childrenArgType = {
74
+ table: {
75
+ type: {
76
+ summary: 'String to display in the alert bar'
77
+ }
78
+ }
79
+ };
57
80
  const actionsArgType = {
58
81
  table: {
59
82
  type: {
@@ -65,6 +88,9 @@ export default {
65
88
  title: 'Alert Bar',
66
89
  component: AlertBar,
67
90
  decorators: [Wrapper],
91
+ args: {
92
+ children: 'I will autohide'
93
+ },
68
94
  parameters: {
69
95
  componentSubtitle: subtitle,
70
96
  docs: {
@@ -86,12 +112,18 @@ export default {
86
112
  warning: {
87
113
  ...alertTypeArgType
88
114
  },
115
+ permanent: {
116
+ ...permanentArgType
117
+ },
118
+ children: {
119
+ ...childrenArgType
120
+ },
89
121
  icon: {
90
122
  ...iconArgType
91
123
  }
92
124
  }
93
125
  };
94
- export const Default = args => /*#__PURE__*/React.createElement(AlertBar, args, "Default - I will autohide");
126
+ export const Default = args => /*#__PURE__*/React.createElement(AlertBar, args);
95
127
  export const States = () => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AlertBar, {
96
128
  permanent: true
97
129
  }, "Default (info)"), /*#__PURE__*/React.createElement(AlertBar, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/alert",
3
- "version": "9.11.2",
3
+ "version": "9.11.4",
4
4
  "description": "UI Alert",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2-ui/portal": "9.11.2",
37
- "@dhis2/ui-constants": "9.11.2",
38
- "@dhis2/ui-icons": "9.11.2",
36
+ "@dhis2-ui/portal": "9.11.4",
37
+ "@dhis2/ui-constants": "9.11.4",
38
+ "@dhis2/ui-icons": "9.11.4",
39
39
  "classnames": "^2.3.1",
40
40
  "prop-types": "^15.7.2"
41
41
  },