@0xsquid/ui 2.4.6 → 2.4.7

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 CHANGED
@@ -18895,10 +18895,10 @@ function ModalContentDivider() {
18895
18895
  }
18896
18896
 
18897
18897
  function NavigationBar(_a) {
18898
- 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"]);
18898
+ var { title, displayBackButton = false, logoUrl, transparent = false, displayButtonShadows = false, onBackButtonClick, actions, isLoading = false, subtitle, paddingRight = 0 } = _a, props = __rest$1(_a, ["title", "displayBackButton", "logoUrl", "transparent", "displayButtonShadows", "onBackButtonClick", "actions", "isLoading", "subtitle", "paddingRight"]);
18899
18899
  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
18900
18900
  ? "tw-w-full tw-pr-squid-xs mobile-xs-height:tw-pr-squid-m"
18901
- : "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
18901
+ : "tw-pr-squid-m mobile-lg:tw-pl-squid-l", !title && "tw-w-full mobile-xs-height:tw-w-[unset]"), style: { paddingRight: paddingRight ? `${paddingRight}px` : undefined }, children: [displayBackButton ? (jsxRuntime.jsx(Button$1, { className: displayButtonShadows
18902
18902
  ? "group-data-[squid-theme-type=dark]:tw-shadow-elevation-dark-2 group-data-[squid-theme-type=light]:tw-shadow-elevation-light-2"
18903
18903
  : undefined, variant: "tertiary", size: "md", isLoading: isLoading, icon: jsxRuntime.jsx(ArrowLeftIcon, {}), onClick: onBackButtonClick })) : null, logoUrl ? (jsxRuntime.jsx("img", { src: logoUrl, className: "tw-h-squid-xl tw-min-w-squid-xl" })) : null, jsxRuntime.jsx("span", { className: "tw-flex tw-flex-1 tw-items-center tw-justify-end tw-gap-squid-xxs", children: actions === null || actions === void 0 ? void 0 : actions.map((action) => {
18904
18904
  var _a;
@@ -18,6 +18,7 @@ interface NavigationBarProps extends React.ComponentProps<"nav"> {
18
18
  actions?: ActionButton[];
19
19
  isLoading?: boolean;
20
20
  subtitle?: string;
21
+ paddingRight?: number;
21
22
  }
22
- export declare function NavigationBar({ title, displayBackButton, logoUrl, transparent, displayButtonShadows, onBackButtonClick, actions, isLoading, subtitle, ...props }: NavigationBarProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function NavigationBar({ title, displayBackButton, logoUrl, transparent, displayButtonShadows, onBackButtonClick, actions, isLoading, subtitle, paddingRight, ...props }: NavigationBarProps): import("react/jsx-runtime").JSX.Element;
23
24
  export {};
@@ -17,3 +17,4 @@ export declare const AllProps: Story;
17
17
  export declare const Loading: Story;
18
18
  export declare const LoadingAndSubtitle: Story;
19
19
  export declare const Transparent: Story;
20
+ export declare const ActionsWithPadding: Story;
package/dist/esm/index.js CHANGED
@@ -18875,10 +18875,10 @@ function ModalContentDivider() {
18875
18875
  }
18876
18876
 
18877
18877
  function NavigationBar(_a) {
18878
- 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"]);
18878
+ var { title, displayBackButton = false, logoUrl, transparent = false, displayButtonShadows = false, onBackButtonClick, actions, isLoading = false, subtitle, paddingRight = 0 } = _a, props = __rest$1(_a, ["title", "displayBackButton", "logoUrl", "transparent", "displayButtonShadows", "onBackButtonClick", "actions", "isLoading", "subtitle", "paddingRight"]);
18879
18879
  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
18880
18880
  ? "tw-w-full tw-pr-squid-xs mobile-xs-height:tw-pr-squid-m"
18881
- : "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
18881
+ : "tw-pr-squid-m mobile-lg:tw-pl-squid-l", !title && "tw-w-full mobile-xs-height:tw-w-[unset]"), style: { paddingRight: paddingRight ? `${paddingRight}px` : undefined }, children: [displayBackButton ? (jsx(Button$1, { className: displayButtonShadows
18882
18882
  ? "group-data-[squid-theme-type=dark]:tw-shadow-elevation-dark-2 group-data-[squid-theme-type=light]:tw-shadow-elevation-light-2"
18883
18883
  : undefined, variant: "tertiary", size: "md", isLoading: isLoading, icon: jsx(ArrowLeftIcon, {}), onClick: onBackButtonClick })) : null, logoUrl ? (jsx("img", { src: logoUrl, className: "tw-h-squid-xl tw-min-w-squid-xl" })) : null, jsx("span", { className: "tw-flex tw-flex-1 tw-items-center tw-justify-end tw-gap-squid-xxs", children: actions === null || actions === void 0 ? void 0 : actions.map((action) => {
18884
18884
  var _a;
@@ -18,6 +18,7 @@ interface NavigationBarProps extends React.ComponentProps<"nav"> {
18
18
  actions?: ActionButton[];
19
19
  isLoading?: boolean;
20
20
  subtitle?: string;
21
+ paddingRight?: number;
21
22
  }
22
- export declare function NavigationBar({ title, displayBackButton, logoUrl, transparent, displayButtonShadows, onBackButtonClick, actions, isLoading, subtitle, ...props }: NavigationBarProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function NavigationBar({ title, displayBackButton, logoUrl, transparent, displayButtonShadows, onBackButtonClick, actions, isLoading, subtitle, paddingRight, ...props }: NavigationBarProps): import("react/jsx-runtime").JSX.Element;
23
24
  export {};
@@ -17,3 +17,4 @@ export declare const AllProps: Story;
17
17
  export declare const Loading: Story;
18
18
  export declare const LoadingAndSubtitle: Story;
19
19
  export declare const Transparent: Story;
20
+ export declare const ActionsWithPadding: Story;
package/dist/index.d.ts CHANGED
@@ -1609,8 +1609,9 @@ interface NavigationBarProps extends React.ComponentProps<"nav"> {
1609
1609
  actions?: ActionButton[];
1610
1610
  isLoading?: boolean;
1611
1611
  subtitle?: string;
1612
+ paddingRight?: number;
1612
1613
  }
1613
- declare function NavigationBar({ title, displayBackButton, logoUrl, transparent, displayButtonShadows, onBackButtonClick, actions, isLoading, subtitle, ...props }: NavigationBarProps): react_jsx_runtime.JSX.Element;
1614
+ declare function NavigationBar({ title, displayBackButton, logoUrl, transparent, displayButtonShadows, onBackButtonClick, actions, isLoading, subtitle, paddingRight, ...props }: NavigationBarProps): react_jsx_runtime.JSX.Element;
1614
1615
 
1615
1616
  declare function PipeSeparator(props: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1616
1617
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/0xsquid/squid-ui.git"
6
6
  },
7
7
  "description": "Squid's UI components",
8
- "version": "2.4.6",
8
+ "version": "2.4.7",
9
9
  "author": "",
10
10
  "license": "MIT",
11
11
  "resolutions": {