@portnet/ui 0.1.10 → 0.1.12

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.
@@ -102,9 +102,9 @@ const PuiSearchPage = _ref2 => {
102
102
  color: "tertiary",
103
103
  children: "Effacer"
104
104
  })
105
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
105
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
106
106
  item: true,
107
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
107
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
108
108
  startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
109
109
  type: "rechercher",
110
110
  size: "small"
@@ -112,7 +112,16 @@ const PuiSearchPage = _ref2 => {
112
112
  onClick: submitForm,
113
113
  loadingPosition: "start",
114
114
  children: "Rechercher"
115
- })
115
+ }), additionalActions && additionalActions.map((actionItem, index) => {
116
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
117
+ item: true,
118
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
119
+ startIcon: actionItem.icon,
120
+ onClick: actionItem.action,
121
+ children: actionItem.name
122
+ })
123
+ }, index);
124
+ })]
116
125
  })]
117
126
  }),
118
127
  children: _children
@@ -145,16 +154,16 @@ const PuiSearchPage = _ref2 => {
145
154
  loadingPosition: "start",
146
155
  children: "Rechercher"
147
156
  })
148
- }), additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
149
- item: true,
150
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
151
- color: "primary",
152
- startIcon: actionItem.icon,
153
- onClick: actionItem.action,
154
- loadingPosition: "start",
155
- children: actionItem.name
156
- })
157
- }, index))]
157
+ }), additionalActions && additionalActions.map((actionItem, index) => {
158
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
159
+ item: true,
160
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
161
+ startIcon: actionItem.icon,
162
+ onClick: actionItem.action,
163
+ children: actionItem.name
164
+ })
165
+ }, index);
166
+ })]
158
167
  }),
159
168
  children: _children
160
169
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portnet/ui",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Portnet UI",
5
5
  "keywords": [
6
6
  "react",