@panneau/medias 4.0.15 → 4.0.16

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 (2) hide show
  1. package/dist/index.js +49 -40
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1282,46 +1282,55 @@ function MediasBrowser(_ref) {
1282
1282
  children: formChildren
1283
1283
  }) : /*#__PURE__*/jsxs(Fragment, {
1284
1284
  children: [/*#__PURE__*/jsxs("div", {
1285
- className: classNames(['d-flex', 'justify-content-between']),
1286
- children: [filters !== null ? /*#__PURE__*/jsx(Filters, {
1287
- value: query,
1288
- clearValue: types !== null ? queryWithoutTypes : null,
1289
- filters: finalFilters,
1290
- onChange: onQueryChange,
1291
- onReset: onQueryReset,
1292
- theme: theme
1293
- }) : null, canUpload ? /*#__PURE__*/jsx(UploadField, {
1294
- className: "ms-auto w-auto text-nowrap mt-2 mb-2 ps-2",
1295
- withButton: true,
1296
- withoutMedia: true,
1297
- uppyProps: uppyConfig,
1298
- types: types,
1299
- allowMultipleUploads: true,
1300
- onChange: onUploadComplete,
1301
- disabled: uploadProcessing,
1302
- loading: uploadProcessing,
1303
- outline: false,
1304
- closeAfterFinish: true
1285
+ className: "card card-body py-2 mb-3",
1286
+ children: [/*#__PURE__*/jsxs("div", {
1287
+ className: "row g-2 align-items-center",
1288
+ children: [/*#__PURE__*/jsx("div", {
1289
+ className: "col-12 col-lg",
1290
+ children: filters !== null ? /*#__PURE__*/jsx(Filters, {
1291
+ value: query,
1292
+ clearValue: types !== null ? queryWithoutTypes : null,
1293
+ filters: finalFilters,
1294
+ onChange: onQueryChange,
1295
+ onReset: onQueryReset,
1296
+ theme: theme
1297
+ }) : null
1298
+ }), /*#__PURE__*/jsx("div", {
1299
+ className: "col-12 col-lg-auto",
1300
+ children: /*#__PURE__*/jsxs("div", {
1301
+ className: "d-flex flex-wrap gap-2 justify-content-lg-end",
1302
+ children: [hasLayouts ? /*#__PURE__*/jsx(Buttons, {
1303
+ size: "sm",
1304
+ theme: "secondary",
1305
+ outline: true,
1306
+ items: (layouts || []).map(function (lay) {
1307
+ return _objectSpread(_objectSpread({}, lay), {}, {
1308
+ active: layout === lay.id,
1309
+ onClick: function onClick() {
1310
+ return onClickLayout(lay.id);
1311
+ },
1312
+ className: 'px-3 py-2'
1313
+ });
1314
+ })
1315
+ }) : null, canUpload ? /*#__PURE__*/jsx(UploadField, {
1316
+ className: "w-auto text-nowrap",
1317
+ withButton: true,
1318
+ withoutMedia: true,
1319
+ uppyProps: uppyConfig,
1320
+ types: types,
1321
+ allowMultipleUploads: true,
1322
+ onChange: onUploadComplete,
1323
+ disabled: uploadProcessing,
1324
+ loading: uploadProcessing,
1325
+ outline: false,
1326
+ closeAfterFinish: true
1327
+ }) : null]
1328
+ })
1329
+ })]
1330
+ }), !hidePagination ? /*#__PURE__*/jsx("div", {
1331
+ className: "d-none d-md-flex mt-2 justify-content-end",
1332
+ children: pagination
1305
1333
  }) : null]
1306
- }), /*#__PURE__*/jsxs("div", {
1307
- className: classNames(['d-flex', 'mt-1', 'mb-3', {
1308
- 'justify-content-between': hasLayouts,
1309
- 'justify-content-end': !hasLayouts
1310
- }]),
1311
- children: [hasLayouts ? /*#__PURE__*/jsx(Buttons, {
1312
- size: "sm",
1313
- theme: "secondary",
1314
- outline: true,
1315
- items: (layouts || []).map(function (lay) {
1316
- return _objectSpread(_objectSpread({}, lay), {}, {
1317
- active: layout === lay.id,
1318
- onClick: function onClick() {
1319
- return onClickLayout(lay.id);
1320
- },
1321
- className: 'px-3 py-2'
1322
- });
1323
- })
1324
- }) : null, !hidePagination ? pagination : /*#__PURE__*/jsx("div", {})]
1325
1334
  }), layout === 'grid' ? /*#__PURE__*/jsx(Grid, {
1326
1335
  size: "small",
1327
1336
  theme: theme,
@@ -1386,7 +1395,7 @@ function MediasBrowser(_ref) {
1386
1395
  }
1387
1396
  }
1388
1397
  }) : null, !hidePagination ? /*#__PURE__*/jsx("div", {
1389
- className: classNames(['d-flex', 'mt-3', 'mb-1', 'justify-content-end']),
1398
+ className: classNames(['d-flex', 'd-md-none', 'mt-3', 'mb-1', 'justify-content-end']),
1390
1399
  children: pagination
1391
1400
  }) : null]
1392
1401
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/medias",
3
- "version": "4.0.15",
3
+ "version": "4.0.16",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "83c02ca2f26e02383ef452ffcafda984d0b211cd"
80
+ "gitHead": "7ae3a83ce03428a1f14bea0f7c45b3cb994baf95"
81
81
  }