@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
|
@@ -10589,9 +10589,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
10589
10589
|
spacing = "sm",
|
|
10590
10590
|
state = "default",
|
|
10591
10591
|
title = "Title",
|
|
10592
|
+
error: error2 = false,
|
|
10592
10593
|
...props
|
|
10593
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$a, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, ...props, children: [
|
|
10594
|
-
/* @__PURE__ */ jsxRuntime.jsx(Label, { $state: state, $size: size2, children: label }),
|
|
10594
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$a, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, $error: error2, ...props, children: [
|
|
10595
|
+
/* @__PURE__ */ jsxRuntime.jsx(Label, { $state: state, $size: size2, $error: error2, children: label }),
|
|
10595
10596
|
/* @__PURE__ */ jsxRuntime.jsx(Title$3, { $state: state, $size: size2, children: title })
|
|
10596
10597
|
] });
|
|
10597
10598
|
const Wrapper$a = pt.div.withConfig({
|
|
@@ -10604,13 +10605,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
10604
10605
|
$height = "fixed",
|
|
10605
10606
|
$order,
|
|
10606
10607
|
$spacing = "sm",
|
|
10608
|
+
$error = false,
|
|
10607
10609
|
theme: theme2
|
|
10608
10610
|
}) => `
|
|
10609
10611
|
background-color: ${theme2.click.bigStat.color.background[$state]};
|
|
10610
10612
|
color: ${theme2.click.bigStat.color.label[$state]};
|
|
10611
10613
|
font: ${theme2.click.bigStat.typography[$size].label[$state]};
|
|
10612
10614
|
border-radius: ${theme2.click.bigStat.radii.all};
|
|
10613
|
-
border: ${theme2.click.bigStat.stroke} solid ${theme2.click.bigStat.color.stroke[$state]};
|
|
10615
|
+
border: ${theme2.click.bigStat.stroke} solid ${$error ? theme2.click.bigStat.color.stroke.danger : theme2.click.bigStat.color.stroke[$state]};
|
|
10614
10616
|
gap: ${theme2.click.bigStat.space[$spacing].gap};
|
|
10615
10617
|
padding: ${theme2.click.bigStat.space.all};
|
|
10616
10618
|
min-height: ${$height !== void 0 ? `${$height}` : "auto"};
|
|
@@ -10623,9 +10625,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
10623
10625
|
})(["", ""], ({
|
|
10624
10626
|
$state = "default",
|
|
10625
10627
|
$size = "lg",
|
|
10628
|
+
$error = false,
|
|
10626
10629
|
theme: theme2
|
|
10627
10630
|
}) => `
|
|
10628
|
-
color: ${theme2.click.bigStat.color.label[$state]};
|
|
10631
|
+
color: ${$error ? theme2.click.bigStat.color.label.danger : theme2.click.bigStat.color.label[$state]};
|
|
10629
10632
|
font: ${theme2.click.bigStat.typography[$size].label[$state]};
|
|
10630
10633
|
`);
|
|
10631
10634
|
const Title$3 = pt.div.withConfig({
|
|
@@ -36404,7 +36407,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
36404
36407
|
})(["display:flex;flex-direction:column;width:inherit;max-height:calc(var(--radix-popover-content-available-height) - 1rem);"]);
|
|
36405
36408
|
const SelectListContent = pt.div.withConfig({
|
|
36406
36409
|
componentId: "sc-oudbwg-8"
|
|
36407
|
-
})(["width:inherit;overflow:auto;flex:1;"]
|
|
36410
|
+
})(["width:inherit;overflow:auto;flex:1;", ""], ({
|
|
36411
|
+
$maxHeight
|
|
36412
|
+
}) => $maxHeight && `
|
|
36413
|
+
max-height: ${$maxHeight};
|
|
36414
|
+
`);
|
|
36408
36415
|
const HiddenSelectElement = pt.select.withConfig({
|
|
36409
36416
|
componentId: "sc-oudbwg-9"
|
|
36410
36417
|
})(["visibility:hidden;position:absolute;z-index:-1;height:0;"]);
|
|
@@ -39842,6 +39849,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
39842
39849
|
options: options2,
|
|
39843
39850
|
sortable = false,
|
|
39844
39851
|
placeholder = "Select an option",
|
|
39852
|
+
maxHeight,
|
|
39845
39853
|
multiple,
|
|
39846
39854
|
checkbox,
|
|
39847
39855
|
selectLabel,
|
|
@@ -40030,7 +40038,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
40030
40038
|
/* @__PURE__ */ jsxRuntime.jsx(SearchBar, { ref: inputRef, value: search, onChange: (e) => onUpdateSearch(e.target.value), "data-testid": "select-search-input", onKeyDown, $showSearch: showSearch }),
|
|
40031
40039
|
/* @__PURE__ */ jsxRuntime.jsx(SearchClose, { as: IconButton$1, icon: "cross", onClick: clearSearch, "data-testid": "select-search-close", $showClose: search.length > 0, size: "xs" })
|
|
40032
40040
|
] }),
|
|
40033
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectListContent, { children: /* @__PURE__ */ jsxRuntime.jsx(OptionContext.Provider, { value: optionContextValue, children: options2 && options2.length > 0 ? options2.map((props2, index2) => {
|
|
40041
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectListContent, { $maxHeight: maxHeight, children: /* @__PURE__ */ jsxRuntime.jsx(OptionContext.Provider, { value: optionContextValue, children: options2 && options2.length > 0 ? options2.map((props2, index2) => {
|
|
40034
40042
|
if ("options" in props2) {
|
|
40035
40043
|
const {
|
|
40036
40044
|
options: itemList = [],
|
|
@@ -45226,7 +45234,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
45226
45234
|
color: {
|
|
45227
45235
|
stroke: {
|
|
45228
45236
|
"default": "#323232",
|
|
45229
|
-
muted: "#323232"
|
|
45237
|
+
muted: "#323232",
|
|
45238
|
+
danger: "#ffbaba"
|
|
45230
45239
|
},
|
|
45231
45240
|
background: {
|
|
45232
45241
|
"default": "#1F1F1C",
|
|
@@ -45234,7 +45243,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
45234
45243
|
},
|
|
45235
45244
|
label: {
|
|
45236
45245
|
"default": "#b3b6bd",
|
|
45237
|
-
muted: "#b3b6bd"
|
|
45246
|
+
muted: "#b3b6bd",
|
|
45247
|
+
danger: "#ffbaba"
|
|
45238
45248
|
},
|
|
45239
45249
|
title: {
|
|
45240
45250
|
"default": "rgb(97.5% 97.5% 97.5%)",
|
|
@@ -47102,7 +47112,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
47102
47112
|
color: {
|
|
47103
47113
|
stroke: {
|
|
47104
47114
|
"default": "#e6e7e9",
|
|
47105
|
-
muted: "#e6e7e9"
|
|
47115
|
+
muted: "#e6e7e9",
|
|
47116
|
+
danger: "#c10000"
|
|
47106
47117
|
},
|
|
47107
47118
|
background: {
|
|
47108
47119
|
"default": "#ffffff",
|
|
@@ -47110,7 +47121,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
47110
47121
|
},
|
|
47111
47122
|
label: {
|
|
47112
47123
|
"default": "#696e79",
|
|
47113
|
-
muted: "#696e79"
|
|
47124
|
+
muted: "#696e79",
|
|
47125
|
+
danger: "#c10000"
|
|
47114
47126
|
},
|
|
47115
47127
|
title: {
|
|
47116
47128
|
"default": "lch(11.1 1.37 305)",
|
|
@@ -49161,7 +49173,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
49161
49173
|
color: {
|
|
49162
49174
|
stroke: {
|
|
49163
49175
|
"default": "#e6e7e9",
|
|
49164
|
-
muted: "#e6e7e9"
|
|
49176
|
+
muted: "#e6e7e9",
|
|
49177
|
+
danger: "#c10000"
|
|
49165
49178
|
},
|
|
49166
49179
|
background: {
|
|
49167
49180
|
"default": "#ffffff",
|
|
@@ -49169,7 +49182,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
49169
49182
|
},
|
|
49170
49183
|
label: {
|
|
49171
49184
|
"default": "#696e79",
|
|
49172
|
-
muted: "#696e79"
|
|
49185
|
+
muted: "#696e79",
|
|
49186
|
+
danger: "#c10000"
|
|
49173
49187
|
},
|
|
49174
49188
|
title: {
|
|
49175
49189
|
"default": "lch(11.1 1.37 305)",
|