@squiz/resource-browser 3.0.1-rc.4 → 3.0.1-rc.6
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
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [3.0.1-rc.6](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@3.0.1-rc.5...@squiz/resource-browser@3.0.1-rc.6) (2024-12-12)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @squiz/resource-browser
|
9
|
+
|
10
|
+
## [3.0.1-rc.5](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@3.0.1-rc.4...@squiz/resource-browser@3.0.1-rc.5) (2024-12-12)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @squiz/resource-browser
|
13
|
+
|
6
14
|
## [3.0.1-rc.4](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@3.0.1-rc.3...@squiz/resource-browser@3.0.1-rc.4) (2024-12-09)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @squiz/resource-browser
|
@@ -55,9 +55,9 @@ function BrowseToSource({ sources, selectedSource, onSourceSelect, className = '
|
|
55
55
|
if (!sources.length) {
|
56
56
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
57
57
|
}
|
58
|
-
return (react_1.default.createElement("div", { className: `inline-block ${isOpen ? 'flex items-center border-2 border-gray-200 rounded-lg px-1 py-0.5 w-[
|
58
|
+
return (react_1.default.createElement("div", { className: `inline-block ${isOpen ? 'flex items-center border-2 border-gray-200 rounded-lg px-1 py-0.5 w-[320px]' : 'p-0'} ${className}` },
|
59
59
|
isOpen && react_1.default.createElement(AdsClickIcon_1.AdsClickIcon, { "aria-hidden": true, className: "ml-1 mr-2 shrink-0" }),
|
60
|
-
sources.length
|
60
|
+
sources.length >= 1 && (react_1.default.createElement("div", { ...focusWithinProps, ...keyboardProps, className: `relative w-full ${isOpen && 'border-l border-gray-400 pl-1 '}` },
|
61
61
|
react_1.default.createElement("button", { ref: buttonRef, type: "button", "aria-label": "Source quick select", "aria-expanded": isOpen, "aria-controls": `${uniqueId}-button-menu`, onClick: () => setIsOpen(!isOpen), className: `relative flex items-center p-2 w-full rounded-lg ${!isOpen && 'border-2 border-gray-200 hover:bg-gray-100'}` }, isOpen ? (react_1.default.createElement(react_1.default.Fragment, null,
|
62
62
|
react_1.default.createElement("span", { className: "text-gray-700 text-md leading-5 mr-2" }, "Browse to ..."),
|
63
63
|
react_1.default.createElement(ArrowDownIcon_1.ArrowDownIcon, { "aria-hidden": true, className: "absolute right-3" }))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
package/lib/index.css
CHANGED
@@ -620,8 +620,8 @@
|
|
620
620
|
.squiz-rb-scope .w-\[204px\]:not(.squiz-rb-plugin *) {
|
621
621
|
width: 204px;
|
622
622
|
}
|
623
|
-
.squiz-rb-scope .w-\[
|
624
|
-
width:
|
623
|
+
.squiz-rb-scope .w-\[320px\]:not(.squiz-rb-plugin *) {
|
624
|
+
width: 320px;
|
625
625
|
}
|
626
626
|
.squiz-rb-scope .w-\[400px\]:not(.squiz-rb-plugin *) {
|
627
627
|
width: 400px;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@squiz/resource-browser",
|
3
|
-
"version": "3.0.1-rc.
|
3
|
+
"version": "3.0.1-rc.6",
|
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-rc.
|
31
|
+
"@squiz/resource-browser-ui-lib": "^1.0.0-rc.5",
|
32
32
|
"clsx": "^2.1.0",
|
33
33
|
"expiry-map": "^2.0.0",
|
34
34
|
"p-memoize": "^4.0.4",
|
@@ -88,5 +88,5 @@
|
|
88
88
|
"volta": {
|
89
89
|
"node": "18.18.0"
|
90
90
|
},
|
91
|
-
"gitHead": "
|
91
|
+
"gitHead": "0488272dbc1a564329403dec744efb6fc958d3b2"
|
92
92
|
}
|
@@ -50,10 +50,10 @@ export default function BrowseToSource({
|
|
50
50
|
|
51
51
|
return (
|
52
52
|
<div
|
53
|
-
className={`inline-block ${isOpen ? 'flex items-center border-2 border-gray-200 rounded-lg px-1 py-0.5 w-[
|
53
|
+
className={`inline-block ${isOpen ? 'flex items-center border-2 border-gray-200 rounded-lg px-1 py-0.5 w-[320px]' : 'p-0'} ${className}`}
|
54
54
|
>
|
55
55
|
{isOpen && <AdsClickIcon aria-hidden className="ml-1 mr-2 shrink-0" />}
|
56
|
-
{sources.length
|
56
|
+
{sources.length >= 1 && (
|
57
57
|
<div {...focusWithinProps} {...keyboardProps} className={`relative w-full ${isOpen && 'border-l border-gray-400 pl-1 '}`}>
|
58
58
|
<button
|
59
59
|
ref={buttonRef}
|