@clickhouse/click-ui 0.0.231 → 0.0.232
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 +26 -12
- package/dist/click-ui.bundled.es.js.map +1 -1
- package/dist/click-ui.bundled.umd.js +26 -12
- package/dist/click-ui.bundled.umd.js.map +1 -1
- package/dist/click-ui.es.js +26 -12
- package/dist/click-ui.es.js.map +1 -1
- package/dist/click-ui.umd.js +26 -12
- 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 = [],
|
|
@@ -44057,7 +44065,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
44057
44065
|
color: {
|
|
44058
44066
|
stroke: {
|
|
44059
44067
|
"default": "#323232",
|
|
44060
|
-
muted: "#323232"
|
|
44068
|
+
muted: "#323232",
|
|
44069
|
+
danger: "#ffbaba"
|
|
44061
44070
|
},
|
|
44062
44071
|
background: {
|
|
44063
44072
|
"default": "#1F1F1C",
|
|
@@ -44065,7 +44074,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
44065
44074
|
},
|
|
44066
44075
|
label: {
|
|
44067
44076
|
"default": "#b3b6bd",
|
|
44068
|
-
muted: "#b3b6bd"
|
|
44077
|
+
muted: "#b3b6bd",
|
|
44078
|
+
danger: "#ffbaba"
|
|
44069
44079
|
},
|
|
44070
44080
|
title: {
|
|
44071
44081
|
"default": "rgb(97.5% 97.5% 97.5%)",
|
|
@@ -45933,7 +45943,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
45933
45943
|
color: {
|
|
45934
45944
|
stroke: {
|
|
45935
45945
|
"default": "#e6e7e9",
|
|
45936
|
-
muted: "#e6e7e9"
|
|
45946
|
+
muted: "#e6e7e9",
|
|
45947
|
+
danger: "#c10000"
|
|
45937
45948
|
},
|
|
45938
45949
|
background: {
|
|
45939
45950
|
"default": "#ffffff",
|
|
@@ -45941,7 +45952,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
45941
45952
|
},
|
|
45942
45953
|
label: {
|
|
45943
45954
|
"default": "#696e79",
|
|
45944
|
-
muted: "#696e79"
|
|
45955
|
+
muted: "#696e79",
|
|
45956
|
+
danger: "#c10000"
|
|
45945
45957
|
},
|
|
45946
45958
|
title: {
|
|
45947
45959
|
"default": "lch(11.1 1.37 305)",
|
|
@@ -47992,7 +48004,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
47992
48004
|
color: {
|
|
47993
48005
|
stroke: {
|
|
47994
48006
|
"default": "#e6e7e9",
|
|
47995
|
-
muted: "#e6e7e9"
|
|
48007
|
+
muted: "#e6e7e9",
|
|
48008
|
+
danger: "#c10000"
|
|
47996
48009
|
},
|
|
47997
48010
|
background: {
|
|
47998
48011
|
"default": "#ffffff",
|
|
@@ -48000,7 +48013,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
48000
48013
|
},
|
|
48001
48014
|
label: {
|
|
48002
48015
|
"default": "#696e79",
|
|
48003
|
-
muted: "#696e79"
|
|
48016
|
+
muted: "#696e79",
|
|
48017
|
+
danger: "#c10000"
|
|
48004
48018
|
},
|
|
48005
48019
|
title: {
|
|
48006
48020
|
"default": "lch(11.1 1.37 305)",
|