@0xsquid/ui 2.2.7 → 2.2.8
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/dist/cjs/index.js +2 -2
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -18787,7 +18787,7 @@ function ModalContentDivider() {
|
|
|
18787
18787
|
|
|
18788
18788
|
function NavigationBar(_a) {
|
|
18789
18789
|
var { title, displayBackButton = false, logoUrl, transparent = false, displayButtonShadows = false, onBackButtonClick, actions, isLoading = false, subtitle } = _a, props = __rest$1(_a, ["title", "displayBackButton", "logoUrl", "transparent", "displayButtonShadows", "onBackButtonClick", "actions", "isLoading", "subtitle"]);
|
|
18790
|
-
return (jsxRuntime.jsxs("nav", Object.assign({}, props, { className: cn("tw-flex tw-
|
|
18790
|
+
return (jsxRuntime.jsxs("nav", Object.assign({}, props, { className: cn("tw-flex tw-max-h-[120px] tw-flex-row-reverse tw-text-grey-300 mobile-xs-height:tw-flex-col", transparent ? "tw-bg-transparent" : "tw-bg-grey-900", props.className), children: [jsxRuntime.jsxs("div", { className: cn("tw-flex tw-h-squid-xxl tw-items-center tw-justify-end tw-gap-x-squid-xs tw-pl-squid-m", displayBackButton
|
|
18791
18791
|
? "tw-w-full tw-pr-squid-xs mobile-xs-height:tw-pr-squid-m"
|
|
18792
18792
|
: "tw-pr-squid-m mobile-lg:tw-pl-squid-l", !title && "tw-w-full mobile-xs-height:tw-w-[unset]"), children: [displayBackButton ? (jsxRuntime.jsx(Button$1, { className: displayButtonShadows
|
|
18793
18793
|
? "group-data-[squid-theme-type=dark]:tw-shadow-elevation-dark-2 group-data-[squid-theme-type=light]:tw-shadow-elevation-light-2"
|
|
@@ -18802,7 +18802,7 @@ function NavigationBar(_a) {
|
|
|
18802
18802
|
// add small spacing on the right when back button is displayed to have the subtitle centered
|
|
18803
18803
|
displayBackButton &&
|
|
18804
18804
|
(!actions || actions.length === 0) &&
|
|
18805
|
-
"tw-mr-squid-xl mobile-lg:tw-mr-squid-m mobile-lg:tw-pr-squid-xxl "), children: jsxRuntime.jsx(BodyText, { size: "small", children: subtitle }) })) : null] }), title ? (jsxRuntime.jsx("div", { className: cn("tw-h-squid-xxl tw-w-full tw-
|
|
18805
|
+
"tw-mr-squid-xl mobile-lg:tw-mr-squid-m mobile-lg:tw-pr-squid-xxl "), children: jsxRuntime.jsx(BodyText, { size: "small", children: subtitle }) })) : null] }), title ? (jsxRuntime.jsx("div", { className: cn("tw-h-squid-xxl tw-w-full tw-items-center tw-px-squid-m tw-py-squid-xxs mobile-lg:tw-px-squid-l",
|
|
18806
18806
|
// hide the title on small screens when back button is displayed, so it's positioned on the left
|
|
18807
18807
|
displayBackButton
|
|
18808
18808
|
? "tw-hidden mobile-xs-height:tw-flex"
|
package/dist/esm/index.js
CHANGED
|
@@ -18767,7 +18767,7 @@ function ModalContentDivider() {
|
|
|
18767
18767
|
|
|
18768
18768
|
function NavigationBar(_a) {
|
|
18769
18769
|
var { title, displayBackButton = false, logoUrl, transparent = false, displayButtonShadows = false, onBackButtonClick, actions, isLoading = false, subtitle } = _a, props = __rest$1(_a, ["title", "displayBackButton", "logoUrl", "transparent", "displayButtonShadows", "onBackButtonClick", "actions", "isLoading", "subtitle"]);
|
|
18770
|
-
return (jsxs("nav", Object.assign({}, props, { className: cn("tw-flex tw-
|
|
18770
|
+
return (jsxs("nav", Object.assign({}, props, { className: cn("tw-flex tw-max-h-[120px] tw-flex-row-reverse tw-text-grey-300 mobile-xs-height:tw-flex-col", transparent ? "tw-bg-transparent" : "tw-bg-grey-900", props.className), children: [jsxs("div", { className: cn("tw-flex tw-h-squid-xxl tw-items-center tw-justify-end tw-gap-x-squid-xs tw-pl-squid-m", displayBackButton
|
|
18771
18771
|
? "tw-w-full tw-pr-squid-xs mobile-xs-height:tw-pr-squid-m"
|
|
18772
18772
|
: "tw-pr-squid-m mobile-lg:tw-pl-squid-l", !title && "tw-w-full mobile-xs-height:tw-w-[unset]"), children: [displayBackButton ? (jsx(Button$1, { className: displayButtonShadows
|
|
18773
18773
|
? "group-data-[squid-theme-type=dark]:tw-shadow-elevation-dark-2 group-data-[squid-theme-type=light]:tw-shadow-elevation-light-2"
|
|
@@ -18782,7 +18782,7 @@ function NavigationBar(_a) {
|
|
|
18782
18782
|
// add small spacing on the right when back button is displayed to have the subtitle centered
|
|
18783
18783
|
displayBackButton &&
|
|
18784
18784
|
(!actions || actions.length === 0) &&
|
|
18785
|
-
"tw-mr-squid-xl mobile-lg:tw-mr-squid-m mobile-lg:tw-pr-squid-xxl "), children: jsx(BodyText, { size: "small", children: subtitle }) })) : null] }), title ? (jsx("div", { className: cn("tw-h-squid-xxl tw-w-full tw-
|
|
18785
|
+
"tw-mr-squid-xl mobile-lg:tw-mr-squid-m mobile-lg:tw-pr-squid-xxl "), children: jsx(BodyText, { size: "small", children: subtitle }) })) : null] }), title ? (jsx("div", { className: cn("tw-h-squid-xxl tw-w-full tw-items-center tw-px-squid-m tw-py-squid-xxs mobile-lg:tw-px-squid-l",
|
|
18786
18786
|
// hide the title on small screens when back button is displayed, so it's positioned on the left
|
|
18787
18787
|
displayBackButton
|
|
18788
18788
|
? "tw-hidden mobile-xs-height:tw-flex"
|