@clickhouse/click-ui 0.0.231 → 0.0.233
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.bundled.es.js +31 -14
- package/dist/click-ui.bundled.es.js.map +1 -1
- package/dist/click-ui.bundled.umd.js +31 -14
- package/dist/click-ui.bundled.umd.js.map +1 -1
- package/dist/click-ui.es.js +31 -14
- package/dist/click-ui.es.js.map +1 -1
- package/dist/click-ui.umd.js +31 -14
- package/dist/click-ui.umd.js.map +1 -1
- package/dist/components/BigStat/BigStat.d.ts +2 -1
- package/dist/components/Select/common/InternalSelect.d.ts +1 -1
- package/dist/components/Select/common/SelectStyled.d.ts +3 -1
- package/dist/components/Select/common/types.d.ts +18 -17
- package/dist/styles/types.d.ts +2 -0
- package/dist/styles/variables.dark.json.d.ts +4 -2
- package/dist/styles/variables.json.d.ts +4 -2
- package/dist/styles/variables.light.json.d.ts +4 -2
- package/package.json +1 -1
package/dist/click-ui.umd.js
CHANGED
|
@@ -9392,9 +9392,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
9392
9392
|
spacing = "sm",
|
|
9393
9393
|
state = "default",
|
|
9394
9394
|
title = "Title",
|
|
9395
|
+
error: error2 = false,
|
|
9395
9396
|
...props
|
|
9396
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$a, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, ...props, children: [
|
|
9397
|
-
/* @__PURE__ */ jsxRuntime.jsx(Label, { $state: state, $size: size2, children: label }),
|
|
9397
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$a, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, $error: error2, ...props, children: [
|
|
9398
|
+
/* @__PURE__ */ jsxRuntime.jsx(Label, { $state: state, $size: size2, $error: error2, children: label }),
|
|
9398
9399
|
/* @__PURE__ */ jsxRuntime.jsx(Title$3, { $state: state, $size: size2, children: title })
|
|
9399
9400
|
] });
|
|
9400
9401
|
const Wrapper$a = styled.styled.div.withConfig({
|
|
@@ -9407,13 +9408,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
9407
9408
|
$height = "fixed",
|
|
9408
9409
|
$order,
|
|
9409
9410
|
$spacing = "sm",
|
|
9411
|
+
$error = false,
|
|
9410
9412
|
theme: theme2
|
|
9411
9413
|
}) => `
|
|
9412
9414
|
background-color: ${theme2.click.bigStat.color.background[$state]};
|
|
9413
9415
|
color: ${theme2.click.bigStat.color.label[$state]};
|
|
9414
9416
|
font: ${theme2.click.bigStat.typography[$size].label[$state]};
|
|
9415
9417
|
border-radius: ${theme2.click.bigStat.radii.all};
|
|
9416
|
-
border: ${theme2.click.bigStat.stroke} solid ${theme2.click.bigStat.color.stroke[$state]};
|
|
9418
|
+
border: ${theme2.click.bigStat.stroke} solid ${$error ? theme2.click.bigStat.color.stroke.danger : theme2.click.bigStat.color.stroke[$state]};
|
|
9417
9419
|
gap: ${theme2.click.bigStat.space[$spacing].gap};
|
|
9418
9420
|
padding: ${theme2.click.bigStat.space.all};
|
|
9419
9421
|
min-height: ${$height !== void 0 ? `${$height}` : "auto"};
|
|
@@ -9426,9 +9428,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
9426
9428
|
})(["", ""], ({
|
|
9427
9429
|
$state = "default",
|
|
9428
9430
|
$size = "lg",
|
|
9431
|
+
$error = false,
|
|
9429
9432
|
theme: theme2
|
|
9430
9433
|
}) => `
|
|
9431
|
-
color: ${theme2.click.bigStat.color.label[$state]};
|
|
9434
|
+
color: ${$error ? theme2.click.bigStat.color.label.danger : theme2.click.bigStat.color.label[$state]};
|
|
9432
9435
|
font: ${theme2.click.bigStat.typography[$size].label[$state]};
|
|
9433
9436
|
`);
|
|
9434
9437
|
const Title$3 = styled.styled.div.withConfig({
|
|
@@ -35235,7 +35238,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35235
35238
|
})(["display:flex;flex-direction:column;width:inherit;max-height:calc(var(--radix-popover-content-available-height) - 1rem);"]);
|
|
35236
35239
|
const SelectListContent = styled.styled.div.withConfig({
|
|
35237
35240
|
componentId: "sc-oudbwg-8"
|
|
35238
|
-
})(["width:inherit;overflow:auto;flex:1;"]
|
|
35241
|
+
})(["width:inherit;overflow:auto;flex:1;", ""], ({
|
|
35242
|
+
$maxHeight
|
|
35243
|
+
}) => $maxHeight && `
|
|
35244
|
+
max-height: ${$maxHeight};
|
|
35245
|
+
`);
|
|
35239
35246
|
const HiddenSelectElement = styled.styled.select.withConfig({
|
|
35240
35247
|
componentId: "sc-oudbwg-9"
|
|
35241
35248
|
})(["visibility:hidden;position:absolute;z-index:-1;height:0;"]);
|
|
@@ -38673,6 +38680,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38673
38680
|
options: options2,
|
|
38674
38681
|
sortable = false,
|
|
38675
38682
|
placeholder = "Select an option",
|
|
38683
|
+
maxHeight,
|
|
38676
38684
|
multiple,
|
|
38677
38685
|
checkbox,
|
|
38678
38686
|
selectLabel,
|
|
@@ -38861,7 +38869,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38861
38869
|
/* @__PURE__ */ jsxRuntime.jsx(SearchBar, { ref: inputRef, value: search, onChange: (e) => onUpdateSearch(e.target.value), "data-testid": "select-search-input", onKeyDown, $showSearch: showSearch }),
|
|
38862
38870
|
/* @__PURE__ */ jsxRuntime.jsx(SearchClose, { as: IconButton$1, icon: "cross", onClick: clearSearch, "data-testid": "select-search-close", $showClose: search.length > 0, size: "xs" })
|
|
38863
38871
|
] }),
|
|
38864
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectListContent, { children: /* @__PURE__ */ jsxRuntime.jsx(OptionContext.Provider, { value: optionContextValue, children: options2 && options2.length > 0 ? options2.map((props2, index2) => {
|
|
38872
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectListContent, { $maxHeight: maxHeight, children: /* @__PURE__ */ jsxRuntime.jsx(OptionContext.Provider, { value: optionContextValue, children: options2 && options2.length > 0 ? options2.map((props2, index2) => {
|
|
38865
38873
|
if ("options" in props2) {
|
|
38866
38874
|
const {
|
|
38867
38875
|
options: itemList = [],
|
|
@@ -40236,7 +40244,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
40236
40244
|
`);
|
|
40237
40245
|
const HeaderContentWrapper = styled.styled.div.withConfig({
|
|
40238
40246
|
componentId: "sc-1q458rb-1"
|
|
40239
|
-
})(["display:flex;align-items:center;justify-content:start;gap:inherit;"]
|
|
40247
|
+
})(["display:flex;align-items:center;justify-content:start;gap:inherit;", ""], ({
|
|
40248
|
+
$interactive
|
|
40249
|
+
}) => $interactive && "cursor: pointer;");
|
|
40240
40250
|
const SortIcon = styled.styled(SvgImage).withConfig({
|
|
40241
40251
|
componentId: "sc-1q458rb-2"
|
|
40242
40252
|
})(["transition:all 200ms;transform:rotate(", ");"], ({
|
|
@@ -40253,6 +40263,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
40253
40263
|
...delegated
|
|
40254
40264
|
}) => {
|
|
40255
40265
|
const isSorted = typeof sortDir === "string";
|
|
40266
|
+
const isInteractive = Boolean(typeof onClick === "function" || isSortable && typeof onSort === "function");
|
|
40256
40267
|
const onHeaderClick = (e) => {
|
|
40257
40268
|
if (typeof onClick === "function") {
|
|
40258
40269
|
onClick(e);
|
|
@@ -40261,7 +40272,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
40261
40272
|
onSort();
|
|
40262
40273
|
}
|
|
40263
40274
|
};
|
|
40264
|
-
return /* @__PURE__ */ jsxRuntime.jsx(StyledHeader, { $size: size2, ...delegated, children: /* @__PURE__ */ jsxRuntime.jsxs(HeaderContentWrapper, { onClick: onHeaderClick, children: [
|
|
40275
|
+
return /* @__PURE__ */ jsxRuntime.jsx(StyledHeader, { $size: size2, ...delegated, children: /* @__PURE__ */ jsxRuntime.jsxs(HeaderContentWrapper, { onClick: onHeaderClick, $interactive: isInteractive, children: [
|
|
40265
40276
|
isSorted && isSortable && sortPosition == "start" && /* @__PURE__ */ jsxRuntime.jsx(SortIcon, { $sortDir: sortDir, name: "arrow-down", size: "sm" }),
|
|
40266
40277
|
label,
|
|
40267
40278
|
isSorted && isSortable && sortPosition == "end" && /* @__PURE__ */ jsxRuntime.jsx(SortIcon, { $sortDir: sortDir, name: "arrow-down", size: "sm" })
|
|
@@ -44057,7 +44068,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
44057
44068
|
color: {
|
|
44058
44069
|
stroke: {
|
|
44059
44070
|
"default": "#323232",
|
|
44060
|
-
muted: "#323232"
|
|
44071
|
+
muted: "#323232",
|
|
44072
|
+
danger: "#ffbaba"
|
|
44061
44073
|
},
|
|
44062
44074
|
background: {
|
|
44063
44075
|
"default": "#1F1F1C",
|
|
@@ -44065,7 +44077,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
44065
44077
|
},
|
|
44066
44078
|
label: {
|
|
44067
44079
|
"default": "#b3b6bd",
|
|
44068
|
-
muted: "#b3b6bd"
|
|
44080
|
+
muted: "#b3b6bd",
|
|
44081
|
+
danger: "#ffbaba"
|
|
44069
44082
|
},
|
|
44070
44083
|
title: {
|
|
44071
44084
|
"default": "rgb(97.5% 97.5% 97.5%)",
|
|
@@ -45933,7 +45946,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
45933
45946
|
color: {
|
|
45934
45947
|
stroke: {
|
|
45935
45948
|
"default": "#e6e7e9",
|
|
45936
|
-
muted: "#e6e7e9"
|
|
45949
|
+
muted: "#e6e7e9",
|
|
45950
|
+
danger: "#c10000"
|
|
45937
45951
|
},
|
|
45938
45952
|
background: {
|
|
45939
45953
|
"default": "#ffffff",
|
|
@@ -45941,7 +45955,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
45941
45955
|
},
|
|
45942
45956
|
label: {
|
|
45943
45957
|
"default": "#696e79",
|
|
45944
|
-
muted: "#696e79"
|
|
45958
|
+
muted: "#696e79",
|
|
45959
|
+
danger: "#c10000"
|
|
45945
45960
|
},
|
|
45946
45961
|
title: {
|
|
45947
45962
|
"default": "lch(11.1 1.37 305)",
|
|
@@ -47992,7 +48007,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
47992
48007
|
color: {
|
|
47993
48008
|
stroke: {
|
|
47994
48009
|
"default": "#e6e7e9",
|
|
47995
|
-
muted: "#e6e7e9"
|
|
48010
|
+
muted: "#e6e7e9",
|
|
48011
|
+
danger: "#c10000"
|
|
47996
48012
|
},
|
|
47997
48013
|
background: {
|
|
47998
48014
|
"default": "#ffffff",
|
|
@@ -48000,7 +48016,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
48000
48016
|
},
|
|
48001
48017
|
label: {
|
|
48002
48018
|
"default": "#696e79",
|
|
48003
|
-
muted: "#696e79"
|
|
48019
|
+
muted: "#696e79",
|
|
48020
|
+
danger: "#c10000"
|
|
48004
48021
|
},
|
|
48005
48022
|
title: {
|
|
48006
48023
|
"default": "lch(11.1 1.37 305)",
|