@clickhouse/click-ui 0.0.126 → 0.0.128
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/click-ui.es.js
CHANGED
|
@@ -8227,7 +8227,10 @@ const _EllipsisContent = ({
|
|
|
8227
8227
|
const EllipsisContent = forwardRef(_EllipsisContent);
|
|
8228
8228
|
const LabelContainer$1 = styled.div.withConfig({
|
|
8229
8229
|
componentId: "sc-1likhxd-0"
|
|
8230
|
-
})(["display:
|
|
8230
|
+
})(["display:grid;grid-template-columns:", ";align-items:center;justify-content:flex-start;width:100%;width:-webkit-fill-available;width:fill-available;width:stretch;gap:", ";"], ({
|
|
8231
|
+
$hasIcon,
|
|
8232
|
+
$iconDir
|
|
8233
|
+
}) => `${$hasIcon && $iconDir === "start" ? "auto " : ""}1fr${$hasIcon && $iconDir === "end" ? " auto" : ""}`, ({
|
|
8231
8234
|
theme: theme2
|
|
8232
8235
|
}) => theme2.click.sidebar.navigation.item.default.space.gap);
|
|
8233
8236
|
const IconWrapper$3 = ({
|
|
@@ -8239,7 +8242,7 @@ const IconWrapper$3 = ({
|
|
|
8239
8242
|
children,
|
|
8240
8243
|
...props
|
|
8241
8244
|
}) => {
|
|
8242
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(LabelContainer$1, { ...props, children: [
|
|
8245
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(LabelContainer$1, { $hasIcon: typeof icon === "string", $iconDir: iconDir, ...props, children: [
|
|
8243
8246
|
icon && iconDir === "start" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: size2, width, height }),
|
|
8244
8247
|
/* @__PURE__ */ jsxRuntimeExports.jsx(EllipsisContent, { children }),
|
|
8245
8248
|
icon && iconDir === "end" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: size2, width, height })
|
|
@@ -9728,6 +9731,7 @@ const Badge = ({
|
|
|
9728
9731
|
] }) });
|
|
9729
9732
|
const BigStat = ({
|
|
9730
9733
|
fillWidth = false,
|
|
9734
|
+
maxWidth,
|
|
9731
9735
|
height = "6rem",
|
|
9732
9736
|
label = "Label",
|
|
9733
9737
|
order = "titleTop",
|
|
@@ -9735,7 +9739,7 @@ const BigStat = ({
|
|
|
9735
9739
|
spacing = "sm",
|
|
9736
9740
|
state = "default",
|
|
9737
9741
|
title = "Title"
|
|
9738
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$b, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, children: [
|
|
9742
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$b, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, children: [
|
|
9739
9743
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Label, { $state: state, $size: size2, children: label }),
|
|
9740
9744
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Title$3, { $state: state, $size: size2, children: title })
|
|
9741
9745
|
] });
|
|
@@ -9743,6 +9747,7 @@ const Wrapper$b = styled.div.withConfig({
|
|
|
9743
9747
|
componentId: "sc-u5029o-0"
|
|
9744
9748
|
})(["display:flex;justify-content:center;box-sizing:border-box;", ""], ({
|
|
9745
9749
|
$fillWidth = false,
|
|
9750
|
+
$maxWidth = "none",
|
|
9746
9751
|
$state = "default",
|
|
9747
9752
|
$size = "lg",
|
|
9748
9753
|
$height = "fixed",
|
|
@@ -9760,6 +9765,7 @@ const Wrapper$b = styled.div.withConfig({
|
|
|
9760
9765
|
min-height: ${$height !== void 0 ? `${$height}` : "auto"};
|
|
9761
9766
|
flex-direction: ${$order === "titleBottom" ? "column-reverse" : "column"};
|
|
9762
9767
|
width: ${$fillWidth === true ? "100%" : "auto"};
|
|
9768
|
+
max-width: ${$maxWidth ? $maxWidth : "none"};
|
|
9763
9769
|
`);
|
|
9764
9770
|
const Label = styled.div.withConfig({
|
|
9765
9771
|
componentId: "sc-u5029o-1"
|
|
@@ -31375,7 +31381,7 @@ const Grid = forwardRef(({
|
|
|
31375
31381
|
if (showToast) {
|
|
31376
31382
|
createToast({
|
|
31377
31383
|
title: "Copied successfully",
|
|
31378
|
-
description: "Now you can
|
|
31384
|
+
description: "Now you can paste the content",
|
|
31379
31385
|
type: "success"
|
|
31380
31386
|
});
|
|
31381
31387
|
}
|
package/dist/click-ui.umd.js
CHANGED
|
@@ -8244,7 +8244,10 @@ var __publicField = (obj, key, value) => {
|
|
|
8244
8244
|
const EllipsisContent = React.forwardRef(_EllipsisContent);
|
|
8245
8245
|
const LabelContainer$1 = styled.div.withConfig({
|
|
8246
8246
|
componentId: "sc-1likhxd-0"
|
|
8247
|
-
})(["display:
|
|
8247
|
+
})(["display:grid;grid-template-columns:", ";align-items:center;justify-content:flex-start;width:100%;width:-webkit-fill-available;width:fill-available;width:stretch;gap:", ";"], ({
|
|
8248
|
+
$hasIcon,
|
|
8249
|
+
$iconDir
|
|
8250
|
+
}) => `${$hasIcon && $iconDir === "start" ? "auto " : ""}1fr${$hasIcon && $iconDir === "end" ? " auto" : ""}`, ({
|
|
8248
8251
|
theme: theme2
|
|
8249
8252
|
}) => theme2.click.sidebar.navigation.item.default.space.gap);
|
|
8250
8253
|
const IconWrapper$3 = ({
|
|
@@ -8256,7 +8259,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8256
8259
|
children,
|
|
8257
8260
|
...props
|
|
8258
8261
|
}) => {
|
|
8259
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(LabelContainer$1, { ...props, children: [
|
|
8262
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(LabelContainer$1, { $hasIcon: typeof icon === "string", $iconDir: iconDir, ...props, children: [
|
|
8260
8263
|
icon && iconDir === "start" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: size2, width, height }),
|
|
8261
8264
|
/* @__PURE__ */ jsxRuntimeExports.jsx(EllipsisContent, { children }),
|
|
8262
8265
|
icon && iconDir === "end" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: size2, width, height })
|
|
@@ -9745,6 +9748,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9745
9748
|
] }) });
|
|
9746
9749
|
const BigStat = ({
|
|
9747
9750
|
fillWidth = false,
|
|
9751
|
+
maxWidth,
|
|
9748
9752
|
height = "6rem",
|
|
9749
9753
|
label = "Label",
|
|
9750
9754
|
order = "titleTop",
|
|
@@ -9752,7 +9756,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9752
9756
|
spacing = "sm",
|
|
9753
9757
|
state = "default",
|
|
9754
9758
|
title = "Title"
|
|
9755
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$b, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, children: [
|
|
9759
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$b, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, children: [
|
|
9756
9760
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Label, { $state: state, $size: size2, children: label }),
|
|
9757
9761
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Title$3, { $state: state, $size: size2, children: title })
|
|
9758
9762
|
] });
|
|
@@ -9760,6 +9764,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9760
9764
|
componentId: "sc-u5029o-0"
|
|
9761
9765
|
})(["display:flex;justify-content:center;box-sizing:border-box;", ""], ({
|
|
9762
9766
|
$fillWidth = false,
|
|
9767
|
+
$maxWidth = "none",
|
|
9763
9768
|
$state = "default",
|
|
9764
9769
|
$size = "lg",
|
|
9765
9770
|
$height = "fixed",
|
|
@@ -9777,6 +9782,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9777
9782
|
min-height: ${$height !== void 0 ? `${$height}` : "auto"};
|
|
9778
9783
|
flex-direction: ${$order === "titleBottom" ? "column-reverse" : "column"};
|
|
9779
9784
|
width: ${$fillWidth === true ? "100%" : "auto"};
|
|
9785
|
+
max-width: ${$maxWidth ? $maxWidth : "none"};
|
|
9780
9786
|
`);
|
|
9781
9787
|
const Label = styled.div.withConfig({
|
|
9782
9788
|
componentId: "sc-u5029o-1"
|
|
@@ -31392,7 +31398,7 @@ var __publicField = (obj, key, value) => {
|
|
|
31392
31398
|
if (showToast) {
|
|
31393
31399
|
createToast({
|
|
31394
31400
|
title: "Copied successfully",
|
|
31395
|
-
description: "Now you can
|
|
31401
|
+
description: "Now you can paste the content",
|
|
31396
31402
|
type: "success"
|
|
31397
31403
|
});
|
|
31398
31404
|
}
|
|
@@ -5,6 +5,7 @@ export type bigStatSpacing = "sm" | "lg";
|
|
|
5
5
|
export type bigStatState = "default" | "muted";
|
|
6
6
|
export interface BigStatProps {
|
|
7
7
|
fillWidth?: boolean;
|
|
8
|
+
maxWidth?: string;
|
|
8
9
|
height?: string;
|
|
9
10
|
label: React.ReactNode;
|
|
10
11
|
order?: bigStatOrder;
|
|
@@ -13,4 +14,4 @@ export interface BigStatProps {
|
|
|
13
14
|
state?: bigStatState;
|
|
14
15
|
title: React.ReactNode;
|
|
15
16
|
}
|
|
16
|
-
export declare const BigStat: ({ fillWidth, height, label, order, size, spacing, state, title, }: BigStatProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const BigStat: ({ fillWidth, maxWidth, height, label, order, size, spacing, state, title, }: BigStatProps) => import("react/jsx-runtime").JSX.Element;
|