@squiz/resource-browser 3.1.0-rc.4 → 3.1.0
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/CHANGELOG.md +18 -0
- package/lib/index.css +149 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 3.1.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- a89fb2d: Updated the peer dependencies and dependencies so that we use the deps published by Matrix'
|
8
|
+
- a89fb2d: Updated title for modal to be sentence case when displayed
|
9
|
+
- a89fb2d: Changed background colour of hovered source on source selector
|
10
|
+
- a89fb2d: Updated modal to use sds button, removed scroll bar from search panel
|
11
|
+
- 6503eba: clean selected mode on modal close
|
12
|
+
- a89fb2d: Version control via changesets added
|
13
|
+
- Updated dependencies [70ed1a8]
|
14
|
+
- Updated dependencies [9bcc4d2]
|
15
|
+
- Updated dependencies [a89fb2d]
|
16
|
+
- Updated dependencies [a065ca7]
|
17
|
+
- Updated dependencies [7a6a6fc]
|
18
|
+
- Updated dependencies [a89fb2d]
|
19
|
+
- @squiz/resource-browser-ui-lib@1.0.0
|
20
|
+
|
3
21
|
## 3.1.0-rc.4
|
4
22
|
|
5
23
|
### Patch Changes
|
package/lib/index.css
CHANGED
@@ -5724,7 +5724,7 @@
|
|
5724
5724
|
}
|
5725
5725
|
.squiz-rb-scope .selection-list__item:not(.squiz-rb-plugin *) {
|
5726
5726
|
display: flex;
|
5727
|
-
margin: 0.5rem;
|
5727
|
+
margin: 0.25rem 0.5rem;
|
5728
5728
|
border-bottom: 1px solid #e0e0e0;
|
5729
5729
|
}
|
5730
5730
|
.squiz-rb-scope .selection-list__item:last-child:not(.squiz-rb-plugin *) {
|
@@ -5732,6 +5732,7 @@
|
|
5732
5732
|
}
|
5733
5733
|
.squiz-rb-scope .selection-list__item-button:not(.squiz-rb-plugin *) {
|
5734
5734
|
width: 100%;
|
5735
|
+
margin-bottom: 0.25rem;
|
5735
5736
|
padding: 0.25rem 0.5rem;
|
5736
5737
|
border: none;
|
5737
5738
|
background: none;
|
@@ -5744,6 +5745,12 @@
|
|
5744
5745
|
.squiz-rb-scope .selection-list__item-button:focus:not(.squiz-rb-plugin *) {
|
5745
5746
|
background-color: #f5f5f5;
|
5746
5747
|
}
|
5748
|
+
.squiz-rb-scope .selection-list__item--selected path:not(.squiz-rb-plugin *) {
|
5749
|
+
fill: #044985 !important;
|
5750
|
+
}
|
5751
|
+
.squiz-rb-scope .selection-list__item--selected .sds-text:not(.squiz-rb-plugin *) {
|
5752
|
+
color: #044985 !important;
|
5753
|
+
}
|
5747
5754
|
.squiz-rb-scope .selection-list__item--selected .selection-list__item-button:not(.squiz-rb-plugin *) {
|
5748
5755
|
background-color: #e6f1fa;
|
5749
5756
|
}
|
@@ -5963,7 +5970,10 @@
|
|
5963
5970
|
fill: #4f4f4f;
|
5964
5971
|
}
|
5965
5972
|
.squiz-rb-scope .searchListing:not(.squiz-rb-plugin *) {
|
5966
|
-
padding: 1.25rem 1rem;
|
5973
|
+
padding: 1.25rem 0 1.25rem 1rem;
|
5974
|
+
}
|
5975
|
+
.squiz-rb-scope .searchListing__header:not(.squiz-rb-plugin *) {
|
5976
|
+
padding-right: 16px;
|
5967
5977
|
}
|
5968
5978
|
.squiz-rb-scope .searchListing__title-group:not(.squiz-rb-plugin *) {
|
5969
5979
|
padding-bottom: 1rem;
|
@@ -6106,6 +6116,143 @@
|
|
6106
6116
|
justify-content: center;
|
6107
6117
|
align-items: center;
|
6108
6118
|
}
|
6119
|
+
.squiz-rb-scope .image-info:not(.squiz-rb-plugin *) {
|
6120
|
+
align-items: center;
|
6121
|
+
border-top: 1px solid #e0e0e0;
|
6122
|
+
color: #707070;
|
6123
|
+
display: flex;
|
6124
|
+
flex-direction: column;
|
6125
|
+
height: calc(50vh - 60px);
|
6126
|
+
overflow-y: auto;
|
6127
|
+
}
|
6128
|
+
.squiz-rb-scope .image-info__image-container:not(.squiz-rb-plugin *) {
|
6129
|
+
position: relative;
|
6130
|
+
width: 250px;
|
6131
|
+
height: 150px;
|
6132
|
+
margin: 1.25rem;
|
6133
|
+
background-color: #ededed;
|
6134
|
+
}
|
6135
|
+
.squiz-rb-scope .checkered-bg:not(.squiz-rb-plugin *) {
|
6136
|
+
--tw-bg-opacity: 1;
|
6137
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
6138
|
+
background-size: 24px 24px;
|
6139
|
+
background-position: 0 0, 12px 12px;
|
6140
|
+
background-image:
|
6141
|
+
linear-gradient(
|
6142
|
+
45deg,
|
6143
|
+
#e0e0e0 25%,
|
6144
|
+
transparent 25%,
|
6145
|
+
transparent 75%,
|
6146
|
+
#e0e0e0 75%,
|
6147
|
+
#e0e0e0),
|
6148
|
+
linear-gradient(
|
6149
|
+
45deg,
|
6150
|
+
#e0e0e0 25%,
|
6151
|
+
transparent 25%,
|
6152
|
+
transparent 75%,
|
6153
|
+
#e0e0e0 75%,
|
6154
|
+
#e0e0e0);
|
6155
|
+
}
|
6156
|
+
.squiz-rb-scope .image-info__image-container img:not(.squiz-rb-plugin *) {
|
6157
|
+
position: absolute;
|
6158
|
+
top: 0;
|
6159
|
+
right: 0;
|
6160
|
+
bottom: 0;
|
6161
|
+
left: 0;
|
6162
|
+
max-width: 100%;
|
6163
|
+
max-height: 100%;
|
6164
|
+
margin: auto;
|
6165
|
+
}
|
6166
|
+
.squiz-rb-scope .image-info__title:not(.squiz-rb-plugin *) {
|
6167
|
+
margin: 1rem 0;
|
6168
|
+
color: #3d3d3d;
|
6169
|
+
}
|
6170
|
+
.squiz-rb-scope .image-info__details:not(.squiz-rb-plugin *) {
|
6171
|
+
margin: 1rem 0;
|
6172
|
+
color: #707070;
|
6173
|
+
}
|
6174
|
+
.squiz-rb-scope .image-info__details-list:not(.squiz-rb-plugin *) {
|
6175
|
+
display: flex;
|
6176
|
+
flex-direction: column;
|
6177
|
+
margin: 1rem 0;
|
6178
|
+
}
|
6179
|
+
.squiz-rb-scope .image-info__details-item:not(.squiz-rb-plugin *) {
|
6180
|
+
display: flex;
|
6181
|
+
margin-bottom: 0.5rem;
|
6182
|
+
}
|
6183
|
+
.squiz-rb-scope .image-info__details-label:not(.squiz-rb-plugin *) {
|
6184
|
+
color: #707070;
|
6185
|
+
width: 60px;
|
6186
|
+
display: flex;
|
6187
|
+
}
|
6188
|
+
.squiz-rb-scope .image-info__details-value:not(.squiz-rb-plugin *) {
|
6189
|
+
color: #3d3d3d;
|
6190
|
+
}
|
6191
|
+
.squiz-rb-scope .image-variant__list:not(.squiz-rb-plugin *) {
|
6192
|
+
width: 250px;
|
6193
|
+
margin-bottom: 1rem;
|
6194
|
+
}
|
6195
|
+
.squiz-rb-scope .image-variant__item:not(.squiz-rb-plugin *) {
|
6196
|
+
display: flex;
|
6197
|
+
flex-direction: row;
|
6198
|
+
align-items: center;
|
6199
|
+
width: 100%;
|
6200
|
+
justify-content: space-between;
|
6201
|
+
}
|
6202
|
+
.squiz-rb-scope .selection-list__item--selected .image-variant__checkmark:not(.squiz-rb-plugin *) {
|
6203
|
+
visibility: visible;
|
6204
|
+
}
|
6205
|
+
.squiz-rb-scope .image-variant__checkmark:not(.squiz-rb-plugin *) {
|
6206
|
+
visibility: hidden;
|
6207
|
+
margin-left: 0.5rem;
|
6208
|
+
}
|
6209
|
+
.squiz-rb-scope .image-variant__checkmark path:not(.squiz-rb-plugin *) {
|
6210
|
+
fill: #044985;
|
6211
|
+
}
|
6212
|
+
.squiz-rb-scope .image-variant__info:not(.squiz-rb-plugin *) {
|
6213
|
+
display: flex;
|
6214
|
+
align-items: center;
|
6215
|
+
color: #3d3d3d;
|
6216
|
+
}
|
6217
|
+
.squiz-rb-scope .image-info__footer:not(.squiz-rb-plugin *) {
|
6218
|
+
margin-top: auto;
|
6219
|
+
align-self: stretch;
|
6220
|
+
display: flex;
|
6221
|
+
flex-direction: column;
|
6222
|
+
align-items: flex-end;
|
6223
|
+
}
|
6224
|
+
.squiz-rb-scope .image-info__select-button:not(.squiz-rb-plugin *) {
|
6225
|
+
margin: 1.25rem;
|
6226
|
+
}
|
6227
|
+
.squiz-rb-scope .image-info__select:not(.squiz-rb-plugin *) {
|
6228
|
+
padding-top: 1.5rem;
|
6229
|
+
padding-bottom: 1rem;
|
6230
|
+
}
|
6231
|
+
.squiz-rb-scope .image-info__select svg:not(.squiz-rb-plugin *) {
|
6232
|
+
height: 72px;
|
6233
|
+
width: 72px;
|
6234
|
+
}
|
6235
|
+
.squiz-rb-scope .image-info__select svg path:not(.squiz-rb-plugin *) {
|
6236
|
+
fill: #bababa;
|
6237
|
+
}
|
6238
|
+
.squiz-rb-scope .image-info__empty-text:not(.squiz-rb-plugin *) {
|
6239
|
+
padding-left: 1.25rem;
|
6240
|
+
padding-right: 1.25rem;
|
6241
|
+
}
|
6242
|
+
.squiz-rb-scope .image-info__loading:not(.squiz-rb-plugin *) {
|
6243
|
+
margin-top: 80px;
|
6244
|
+
}
|
6245
|
+
@media (min-width: 768px) {
|
6246
|
+
.squiz-rb-scope .image-info:not(.squiz-rb-plugin *) {
|
6247
|
+
height: calc(100vh - 60px);
|
6248
|
+
}
|
6249
|
+
}
|
6250
|
+
@media (min-width: 1024px) {
|
6251
|
+
.squiz-rb-scope .image-info:not(.squiz-rb-plugin *) {
|
6252
|
+
height: calc(100vh - 14rem);
|
6253
|
+
overflow-y: auto;
|
6254
|
+
}
|
6255
|
+
}
|
6109
6256
|
.squiz-rb-scope .resource-picker:not(.squiz-rb-plugin *) {
|
6110
6257
|
display: grid;
|
6111
6258
|
grid-template-columns: 24px 1fr;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@squiz/resource-browser",
|
3
|
-
"version": "3.1.0
|
3
|
+
"version": "3.1.0",
|
4
4
|
"main": "lib/index.js",
|
5
5
|
"types": "lib/index.d.ts",
|
6
6
|
"private": false,
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"@react-types/shared": "^3.23.1",
|
29
29
|
"@squiz/dx-json-schema-lib": "^1.67.0",
|
30
30
|
"@squiz/generic-browser-lib": "1.67.2",
|
31
|
-
"@squiz/resource-browser-ui-lib": "^1.0.0
|
31
|
+
"@squiz/resource-browser-ui-lib": "^1.0.0",
|
32
32
|
"clsx": "^2.1.0",
|
33
33
|
"expiry-map": "^2.0.0",
|
34
34
|
"p-memoize": "^4.0.4",
|