@portnet/ui 0.1.45 → 0.1.47

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.
@@ -101,7 +101,7 @@ const PuiSearchPage = _ref2 => {
101
101
  sx: {
102
102
  marginBottom: 2
103
103
  },
104
- children: isSearchSectionExpanded && (formik ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_formik.Formik, _objectSpread(_objectSpread({
104
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_formik.Formik, _objectSpread(_objectSpread({
105
105
  initialValues: {}
106
106
  }, formikProps), {}, {
107
107
  children: _ref3 => {
@@ -109,82 +109,68 @@ const PuiSearchPage = _ref2 => {
109
109
  resetForm,
110
110
  submitForm
111
111
  } = _ref3;
112
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiFormikForm.default, {
113
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PuiStandardSearchPageContainer, {
114
- actions: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
115
- container: true,
116
- justifyContent: "end",
117
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
118
- item: true,
119
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
120
- startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
121
- type: "effacer",
122
- size: "small"
123
- }),
124
- onClick: resetForm,
125
- color: "tertiary",
126
- children: "Effacer"
127
- })
128
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
129
- item: true,
130
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
131
- startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
132
- type: "rechercher",
133
- size: "small"
134
- }),
135
- onClick: submitForm,
136
- loadingPosition: "start",
137
- children: "Rechercher"
138
- })
139
- }), additionalActions && additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
140
- item: true,
141
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
142
- startIcon: actionItem.icon,
143
- onClick: actionItem.action,
144
- children: actionItem.name
145
- })
146
- }, index))]
147
- }),
148
- children: _children
149
- })
112
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiFormikForm.default, {
113
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
114
+ container: true,
115
+ spacing: 2,
116
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
117
+ item: true,
118
+ xs: 12,
119
+ sm: 4,
120
+ children: [_children[0], " "]
121
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
122
+ item: true,
123
+ xs: 12,
124
+ sm: 4,
125
+ children: [_children[1], " "]
126
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
127
+ item: true,
128
+ xs: 12,
129
+ sm: 4,
130
+ children: [_children[2], " "]
131
+ }), isSearchSectionExpanded && _children.slice(3).map((child, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
132
+ item: true,
133
+ xs: 12,
134
+ sm: 4,
135
+ children: child
136
+ }, index))]
137
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
138
+ container: true,
139
+ justifyContent: "end",
140
+ spacing: 2,
141
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
142
+ item: true,
143
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
144
+ startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
145
+ type: "effacer",
146
+ size: "small"
147
+ }),
148
+ onClick: resetForm,
149
+ color: "tertiary",
150
+ children: "Effacer"
151
+ })
152
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
153
+ item: true,
154
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
155
+ startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
156
+ type: "rechercher",
157
+ size: "small"
158
+ }),
159
+ onClick: submitForm,
160
+ loadingPosition: "start",
161
+ children: "Rechercher"
162
+ })
163
+ }), additionalActions && additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
164
+ item: true,
165
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
166
+ startIcon: actionItem.icon,
167
+ onClick: actionItem.action,
168
+ children: actionItem.name
169
+ })
170
+ }, index))]
171
+ })]
150
172
  });
151
173
  }
152
- })) : /*#__PURE__*/(0, _jsxRuntime.jsx)(PuiStandardSearchPageContainer, {
153
- actions: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
154
- container: true,
155
- justifyContent: "end",
156
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
157
- item: true,
158
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
159
- startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
160
- type: "effacer",
161
- size: "small"
162
- }),
163
- onClick: onReset,
164
- color: "tertiary",
165
- children: "Effacer"
166
- })
167
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
168
- item: true,
169
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
170
- startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
171
- type: "rechercher",
172
- size: "small"
173
- }),
174
- onClick: onSubmit,
175
- loadingPosition: "start",
176
- children: "Rechercher"
177
- })
178
- }), additionalActions && additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
179
- item: true,
180
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
181
- startIcon: actionItem.icon,
182
- onClick: actionItem.action,
183
- children: actionItem.name
184
- })
185
- }, index))]
186
- }),
187
- children: _children
188
174
  }))
189
175
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTable.default, _objectSpread(_objectSpread({
190
176
  paginationMode: "server"
@@ -204,7 +190,7 @@ PuiSearchPage.propTypes = {
204
190
  bottomNav: _propTypes.default.bool,
205
191
  loading: _propTypes.default.bool,
206
192
  tableProps: _propTypes.default.shape({
207
- pinnedColumns: _propTypes.default.object // Added pinnedColumns prop type
193
+ pinnedColumns: _propTypes.default.object
208
194
  }),
209
195
  retour: _propTypes.default.bool,
210
196
  onRetour: _propTypes.default.func,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portnet/ui",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "description": "Portnet UI",
5
5
  "keywords": [
6
6
  "react",