@micromag/media-gallery 0.3.480 → 0.3.485
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.
- package/es/index.js +12 -6
- package/lib/index.js +12 -6
- package/package.json +8 -6
package/es/index.js
CHANGED
|
@@ -126,6 +126,7 @@ var GalleryItem = function GalleryItem(_ref) {
|
|
|
126
126
|
};
|
|
127
127
|
GalleryItem.propTypes = propTypes$b;
|
|
128
128
|
GalleryItem.defaultProps = defaultProps$b;
|
|
129
|
+
var GalleryItem$1 = GalleryItem;
|
|
129
130
|
|
|
130
131
|
var styles$a = {};
|
|
131
132
|
|
|
@@ -184,7 +185,7 @@ function Gallery(_ref) {
|
|
|
184
185
|
return /*#__PURE__*/React.createElement("div", {
|
|
185
186
|
className: "col px-1 py-1",
|
|
186
187
|
key: "gallery-item-".concat(item.id)
|
|
187
|
-
}, /*#__PURE__*/React.createElement(GalleryItem, {
|
|
188
|
+
}, /*#__PURE__*/React.createElement(GalleryItem$1, {
|
|
188
189
|
item: item,
|
|
189
190
|
width: width,
|
|
190
191
|
selected: selectedItem !== null && selectedItem.id === item.id,
|
|
@@ -982,6 +983,7 @@ var Search = function Search(_ref) {
|
|
|
982
983
|
};
|
|
983
984
|
Search.propTypes = propTypes$7;
|
|
984
985
|
Search.defaultProps = defaultProps$7;
|
|
986
|
+
var SearchForm = Search;
|
|
985
987
|
|
|
986
988
|
var styles$6 = {"container":"micromag-media-gallery-forms-tag-dropdown-container","select":"micromag-media-gallery-forms-tag-dropdown-select"};
|
|
987
989
|
|
|
@@ -1033,6 +1035,7 @@ var TagDropdown = function TagDropdown(_ref) {
|
|
|
1033
1035
|
};
|
|
1034
1036
|
TagDropdown.propTypes = propTypes$6;
|
|
1035
1037
|
TagDropdown.defaultProps = defaultProps$6;
|
|
1038
|
+
var TagDropdown$1 = TagDropdown;
|
|
1036
1039
|
|
|
1037
1040
|
var styles$5 = {"container":"micromag-media-gallery-forms-tag-section-container","tag":"micromag-media-gallery-forms-tag-section-tag"};
|
|
1038
1041
|
|
|
@@ -1082,6 +1085,7 @@ var TagSection = function TagSection(_ref) {
|
|
|
1082
1085
|
};
|
|
1083
1086
|
TagSection.propTypes = propTypes$5;
|
|
1084
1087
|
TagSection.defaultProps = defaultProps$5;
|
|
1088
|
+
var TagSection$1 = TagSection;
|
|
1085
1089
|
|
|
1086
1090
|
var styles$4 = {"container":"micromag-media-gallery-forms-search-filters-container","closeBtn":"micromag-media-gallery-forms-search-filters-closeBtn","section":"micromag-media-gallery-forms-search-filters-section","title":"micromag-media-gallery-forms-search-filters-title","tags":"micromag-media-gallery-forms-search-filters-tags"};
|
|
1087
1091
|
|
|
@@ -1168,12 +1172,12 @@ var SearchFilters = function SearchFilters(_ref) {
|
|
|
1168
1172
|
className: classNames([styles$4.section, 'py-2'])
|
|
1169
1173
|
}, /*#__PURE__*/React.createElement("p", {
|
|
1170
1174
|
className: classNames([styles$4.title, 'm-0'])
|
|
1171
|
-
}, label), value === 'tags' || value === 'recent' || value === 'users' ? /*#__PURE__*/React.createElement(TagDropdown, {
|
|
1175
|
+
}, label), value === 'tags' || value === 'recent' || value === 'users' ? /*#__PURE__*/React.createElement(TagDropdown$1, {
|
|
1172
1176
|
className: classNames([styles$4.tags]),
|
|
1173
1177
|
tags: items,
|
|
1174
1178
|
parent: value,
|
|
1175
1179
|
onChange: onSectionChange
|
|
1176
|
-
}) : /*#__PURE__*/React.createElement(TagSection, {
|
|
1180
|
+
}) : /*#__PURE__*/React.createElement(TagSection$1, {
|
|
1177
1181
|
className: classNames([styles$4.tags]),
|
|
1178
1182
|
tags: items,
|
|
1179
1183
|
parent: value,
|
|
@@ -1183,6 +1187,7 @@ var SearchFilters = function SearchFilters(_ref) {
|
|
|
1183
1187
|
};
|
|
1184
1188
|
SearchFilters.propTypes = propTypes$4;
|
|
1185
1189
|
SearchFilters.defaultProps = defaultProps$4;
|
|
1190
|
+
var SearchFilters$1 = SearchFilters;
|
|
1186
1191
|
|
|
1187
1192
|
var styles$3 = {"container":"micromag-media-gallery-buttons-close-container"};
|
|
1188
1193
|
|
|
@@ -1208,6 +1213,7 @@ var CloseButton = function CloseButton(_ref) {
|
|
|
1208
1213
|
};
|
|
1209
1214
|
CloseButton.propTypes = propTypes$3;
|
|
1210
1215
|
CloseButton.defaultProps = defaultProps$3;
|
|
1216
|
+
var CloseButton$1 = CloseButton;
|
|
1211
1217
|
|
|
1212
1218
|
var styles$2 = {"container":"micromag-media-gallery-partials-active-filters-container","heading":"micromag-media-gallery-partials-active-filters-heading","title":"micromag-media-gallery-partials-active-filters-title","resetButton":"micromag-media-gallery-partials-active-filters-resetButton","activeTag":"micromag-media-gallery-partials-active-filters-activeTag"};
|
|
1213
1219
|
|
|
@@ -1265,7 +1271,7 @@ function ActiveFilters(_ref) {
|
|
|
1265
1271
|
"type": 0,
|
|
1266
1272
|
"value": "Active filters"
|
|
1267
1273
|
}]
|
|
1268
|
-
})), /*#__PURE__*/React.createElement(CloseButton, {
|
|
1274
|
+
})), /*#__PURE__*/React.createElement(CloseButton$1, {
|
|
1269
1275
|
className: styles$2.resetButton,
|
|
1270
1276
|
onClick: handleReset
|
|
1271
1277
|
}, /*#__PURE__*/React.createElement("u", null, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
@@ -1616,7 +1622,7 @@ function Navbar(_ref) {
|
|
|
1616
1622
|
className: "navbar-text me-auto w-100 text-truncate text-light"
|
|
1617
1623
|
}, media !== null ? media.name : null)) : null, media === null ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1618
1624
|
className: "d-flex w-100 flex-nowrap justify-content-between"
|
|
1619
|
-
}, /*#__PURE__*/React.createElement(
|
|
1625
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
1620
1626
|
value: searchValue,
|
|
1621
1627
|
onChange: onSearchChange,
|
|
1622
1628
|
onFocus: onSearchFocus,
|
|
@@ -1625,7 +1631,7 @@ function Navbar(_ref) {
|
|
|
1625
1631
|
className: classNames(['d-flex'])
|
|
1626
1632
|
})), open ? /*#__PURE__*/React.createElement("div", {
|
|
1627
1633
|
className: "d-flex w-100 my-1 flex-nowrap justify-content-between"
|
|
1628
|
-
}, /*#__PURE__*/React.createElement(SearchFilters, {
|
|
1634
|
+
}, /*#__PURE__*/React.createElement(SearchFilters$1, {
|
|
1629
1635
|
filters: filters,
|
|
1630
1636
|
sections: sections,
|
|
1631
1637
|
onChange: onFilterChange,
|
package/lib/index.js
CHANGED
|
@@ -128,6 +128,7 @@ var GalleryItem = function GalleryItem(_ref) {
|
|
|
128
128
|
};
|
|
129
129
|
GalleryItem.propTypes = propTypes$b;
|
|
130
130
|
GalleryItem.defaultProps = defaultProps$b;
|
|
131
|
+
var GalleryItem$1 = GalleryItem;
|
|
131
132
|
|
|
132
133
|
var styles$a = {};
|
|
133
134
|
|
|
@@ -186,7 +187,7 @@ function Gallery(_ref) {
|
|
|
186
187
|
return /*#__PURE__*/React.createElement("div", {
|
|
187
188
|
className: "col px-1 py-1",
|
|
188
189
|
key: "gallery-item-".concat(item.id)
|
|
189
|
-
}, /*#__PURE__*/React.createElement(GalleryItem, {
|
|
190
|
+
}, /*#__PURE__*/React.createElement(GalleryItem$1, {
|
|
190
191
|
item: item,
|
|
191
192
|
width: width,
|
|
192
193
|
selected: selectedItem !== null && selectedItem.id === item.id,
|
|
@@ -984,6 +985,7 @@ var Search = function Search(_ref) {
|
|
|
984
985
|
};
|
|
985
986
|
Search.propTypes = propTypes$7;
|
|
986
987
|
Search.defaultProps = defaultProps$7;
|
|
988
|
+
var SearchForm = Search;
|
|
987
989
|
|
|
988
990
|
var styles$6 = {"container":"micromag-media-gallery-forms-tag-dropdown-container","select":"micromag-media-gallery-forms-tag-dropdown-select"};
|
|
989
991
|
|
|
@@ -1035,6 +1037,7 @@ var TagDropdown = function TagDropdown(_ref) {
|
|
|
1035
1037
|
};
|
|
1036
1038
|
TagDropdown.propTypes = propTypes$6;
|
|
1037
1039
|
TagDropdown.defaultProps = defaultProps$6;
|
|
1040
|
+
var TagDropdown$1 = TagDropdown;
|
|
1038
1041
|
|
|
1039
1042
|
var styles$5 = {"container":"micromag-media-gallery-forms-tag-section-container","tag":"micromag-media-gallery-forms-tag-section-tag"};
|
|
1040
1043
|
|
|
@@ -1084,6 +1087,7 @@ var TagSection = function TagSection(_ref) {
|
|
|
1084
1087
|
};
|
|
1085
1088
|
TagSection.propTypes = propTypes$5;
|
|
1086
1089
|
TagSection.defaultProps = defaultProps$5;
|
|
1090
|
+
var TagSection$1 = TagSection;
|
|
1087
1091
|
|
|
1088
1092
|
var styles$4 = {"container":"micromag-media-gallery-forms-search-filters-container","closeBtn":"micromag-media-gallery-forms-search-filters-closeBtn","section":"micromag-media-gallery-forms-search-filters-section","title":"micromag-media-gallery-forms-search-filters-title","tags":"micromag-media-gallery-forms-search-filters-tags"};
|
|
1089
1093
|
|
|
@@ -1170,12 +1174,12 @@ var SearchFilters = function SearchFilters(_ref) {
|
|
|
1170
1174
|
className: classNames([styles$4.section, 'py-2'])
|
|
1171
1175
|
}, /*#__PURE__*/React.createElement("p", {
|
|
1172
1176
|
className: classNames([styles$4.title, 'm-0'])
|
|
1173
|
-
}, label), value === 'tags' || value === 'recent' || value === 'users' ? /*#__PURE__*/React.createElement(TagDropdown, {
|
|
1177
|
+
}, label), value === 'tags' || value === 'recent' || value === 'users' ? /*#__PURE__*/React.createElement(TagDropdown$1, {
|
|
1174
1178
|
className: classNames([styles$4.tags]),
|
|
1175
1179
|
tags: items,
|
|
1176
1180
|
parent: value,
|
|
1177
1181
|
onChange: onSectionChange
|
|
1178
|
-
}) : /*#__PURE__*/React.createElement(TagSection, {
|
|
1182
|
+
}) : /*#__PURE__*/React.createElement(TagSection$1, {
|
|
1179
1183
|
className: classNames([styles$4.tags]),
|
|
1180
1184
|
tags: items,
|
|
1181
1185
|
parent: value,
|
|
@@ -1185,6 +1189,7 @@ var SearchFilters = function SearchFilters(_ref) {
|
|
|
1185
1189
|
};
|
|
1186
1190
|
SearchFilters.propTypes = propTypes$4;
|
|
1187
1191
|
SearchFilters.defaultProps = defaultProps$4;
|
|
1192
|
+
var SearchFilters$1 = SearchFilters;
|
|
1188
1193
|
|
|
1189
1194
|
var styles$3 = {"container":"micromag-media-gallery-buttons-close-container"};
|
|
1190
1195
|
|
|
@@ -1210,6 +1215,7 @@ var CloseButton = function CloseButton(_ref) {
|
|
|
1210
1215
|
};
|
|
1211
1216
|
CloseButton.propTypes = propTypes$3;
|
|
1212
1217
|
CloseButton.defaultProps = defaultProps$3;
|
|
1218
|
+
var CloseButton$1 = CloseButton;
|
|
1213
1219
|
|
|
1214
1220
|
var styles$2 = {"container":"micromag-media-gallery-partials-active-filters-container","heading":"micromag-media-gallery-partials-active-filters-heading","title":"micromag-media-gallery-partials-active-filters-title","resetButton":"micromag-media-gallery-partials-active-filters-resetButton","activeTag":"micromag-media-gallery-partials-active-filters-activeTag"};
|
|
1215
1221
|
|
|
@@ -1267,7 +1273,7 @@ function ActiveFilters(_ref) {
|
|
|
1267
1273
|
"type": 0,
|
|
1268
1274
|
"value": "Active filters"
|
|
1269
1275
|
}]
|
|
1270
|
-
})), /*#__PURE__*/React.createElement(CloseButton, {
|
|
1276
|
+
})), /*#__PURE__*/React.createElement(CloseButton$1, {
|
|
1271
1277
|
className: styles$2.resetButton,
|
|
1272
1278
|
onClick: handleReset
|
|
1273
1279
|
}, /*#__PURE__*/React.createElement("u", null, /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
|
@@ -1618,7 +1624,7 @@ function Navbar(_ref) {
|
|
|
1618
1624
|
className: "navbar-text me-auto w-100 text-truncate text-light"
|
|
1619
1625
|
}, media !== null ? media.name : null)) : null, media === null ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1620
1626
|
className: "d-flex w-100 flex-nowrap justify-content-between"
|
|
1621
|
-
}, /*#__PURE__*/React.createElement(
|
|
1627
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
1622
1628
|
value: searchValue,
|
|
1623
1629
|
onChange: onSearchChange,
|
|
1624
1630
|
onFocus: onSearchFocus,
|
|
@@ -1627,7 +1633,7 @@ function Navbar(_ref) {
|
|
|
1627
1633
|
className: classNames(['d-flex'])
|
|
1628
1634
|
})), open ? /*#__PURE__*/React.createElement("div", {
|
|
1629
1635
|
className: "d-flex w-100 my-1 flex-nowrap justify-content-between"
|
|
1630
|
-
}, /*#__PURE__*/React.createElement(SearchFilters, {
|
|
1636
|
+
}, /*#__PURE__*/React.createElement(SearchFilters$1, {
|
|
1631
1637
|
filters: filters,
|
|
1632
1638
|
sections: sections,
|
|
1633
1639
|
onChange: onFilterChange,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/media-gallery",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.485",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -49,7 +49,9 @@
|
|
|
49
49
|
"scss"
|
|
50
50
|
],
|
|
51
51
|
"scripts": {
|
|
52
|
-
"
|
|
52
|
+
"clean": "rm -rf es && rm -rf lib && rm -rf assets && rm -rf scss",
|
|
53
|
+
"prepublishOnly": "npm run build",
|
|
54
|
+
"build": "../../scripts/prepare-package.sh --scss"
|
|
53
55
|
},
|
|
54
56
|
"devDependencies": {
|
|
55
57
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -64,19 +66,19 @@
|
|
|
64
66
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
65
67
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
66
68
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
67
|
-
"@micromag/core": "^0.3.
|
|
68
|
-
"@micromag/data": "^0.3.
|
|
69
|
+
"@micromag/core": "^0.3.485",
|
|
70
|
+
"@micromag/data": "^0.3.485",
|
|
69
71
|
"bootstrap": "5.2.0-beta1",
|
|
70
72
|
"classnames": "^2.2.6",
|
|
71
73
|
"lodash": "^4.17.21",
|
|
72
74
|
"pretty-bytes": "^5.3.0",
|
|
73
75
|
"prop-types": "^15.7.2",
|
|
74
76
|
"react-intl": "^6.6.2",
|
|
75
|
-
"
|
|
77
|
+
"wouter": "^3.0.0"
|
|
76
78
|
},
|
|
77
79
|
"publishConfig": {
|
|
78
80
|
"access": "public",
|
|
79
81
|
"registry": "https://registry.npmjs.org/"
|
|
80
82
|
},
|
|
81
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "7af4c126bdc155c5ea821e894957023b201c2b79"
|
|
82
84
|
}
|