@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.
@@ -9377,9 +9377,10 @@ const BigStat = ({
9377
9377
  spacing = "sm",
9378
9378
  state = "default",
9379
9379
  title = "Title",
9380
+ error: error2 = false,
9380
9381
  ...props
9381
- }) => /* @__PURE__ */ jsxs(Wrapper$a, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, ...props, children: [
9382
- /* @__PURE__ */ jsx(Label, { $state: state, $size: size2, children: label }),
9382
+ }) => /* @__PURE__ */ jsxs(Wrapper$a, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, $error: error2, ...props, children: [
9383
+ /* @__PURE__ */ jsx(Label, { $state: state, $size: size2, $error: error2, children: label }),
9383
9384
  /* @__PURE__ */ jsx(Title$3, { $state: state, $size: size2, children: title })
9384
9385
  ] });
9385
9386
  const Wrapper$a = styled.div.withConfig({
@@ -9392,13 +9393,14 @@ const Wrapper$a = styled.div.withConfig({
9392
9393
  $height = "fixed",
9393
9394
  $order,
9394
9395
  $spacing = "sm",
9396
+ $error = false,
9395
9397
  theme: theme2
9396
9398
  }) => `
9397
9399
  background-color: ${theme2.click.bigStat.color.background[$state]};
9398
9400
  color: ${theme2.click.bigStat.color.label[$state]};
9399
9401
  font: ${theme2.click.bigStat.typography[$size].label[$state]};
9400
9402
  border-radius: ${theme2.click.bigStat.radii.all};
9401
- border: ${theme2.click.bigStat.stroke} solid ${theme2.click.bigStat.color.stroke[$state]};
9403
+ border: ${theme2.click.bigStat.stroke} solid ${$error ? theme2.click.bigStat.color.stroke.danger : theme2.click.bigStat.color.stroke[$state]};
9402
9404
  gap: ${theme2.click.bigStat.space[$spacing].gap};
9403
9405
  padding: ${theme2.click.bigStat.space.all};
9404
9406
  min-height: ${$height !== void 0 ? `${$height}` : "auto"};
@@ -9411,9 +9413,10 @@ const Label = styled.div.withConfig({
9411
9413
  })(["", ""], ({
9412
9414
  $state = "default",
9413
9415
  $size = "lg",
9416
+ $error = false,
9414
9417
  theme: theme2
9415
9418
  }) => `
9416
- color: ${theme2.click.bigStat.color.label[$state]};
9419
+ color: ${$error ? theme2.click.bigStat.color.label.danger : theme2.click.bigStat.color.label[$state]};
9417
9420
  font: ${theme2.click.bigStat.typography[$size].label[$state]};
9418
9421
  `);
9419
9422
  const Title$3 = styled.div.withConfig({
@@ -35220,7 +35223,11 @@ const SelectList = styled.div.withConfig({
35220
35223
  })(["display:flex;flex-direction:column;width:inherit;max-height:calc(var(--radix-popover-content-available-height) - 1rem);"]);
35221
35224
  const SelectListContent = styled.div.withConfig({
35222
35225
  componentId: "sc-oudbwg-8"
35223
- })(["width:inherit;overflow:auto;flex:1;"]);
35226
+ })(["width:inherit;overflow:auto;flex:1;", ""], ({
35227
+ $maxHeight
35228
+ }) => $maxHeight && `
35229
+ max-height: ${$maxHeight};
35230
+ `);
35224
35231
  const HiddenSelectElement = styled.select.withConfig({
35225
35232
  componentId: "sc-oudbwg-9"
35226
35233
  })(["visibility:hidden;position:absolute;z-index:-1;height:0;"]);
@@ -38658,6 +38665,7 @@ const InternalSelect = ({
38658
38665
  options,
38659
38666
  sortable = false,
38660
38667
  placeholder = "Select an option",
38668
+ maxHeight,
38661
38669
  multiple,
38662
38670
  checkbox,
38663
38671
  selectLabel,
@@ -38846,7 +38854,7 @@ const InternalSelect = ({
38846
38854
  /* @__PURE__ */ jsx(SearchBar, { ref: inputRef, value: search, onChange: (e) => onUpdateSearch(e.target.value), "data-testid": "select-search-input", onKeyDown, $showSearch: showSearch }),
38847
38855
  /* @__PURE__ */ jsx(SearchClose, { as: IconButton$1, icon: "cross", onClick: clearSearch, "data-testid": "select-search-close", $showClose: search.length > 0, size: "xs" })
38848
38856
  ] }),
38849
- /* @__PURE__ */ jsx(SelectListContent, { children: /* @__PURE__ */ jsx(OptionContext.Provider, { value: optionContextValue, children: options && options.length > 0 ? options.map((props2, index2) => {
38857
+ /* @__PURE__ */ jsx(SelectListContent, { $maxHeight: maxHeight, children: /* @__PURE__ */ jsx(OptionContext.Provider, { value: optionContextValue, children: options && options.length > 0 ? options.map((props2, index2) => {
38850
38858
  if ("options" in props2) {
38851
38859
  const {
38852
38860
  options: itemList = [],
@@ -44042,7 +44050,8 @@ const click$2 = {
44042
44050
  color: {
44043
44051
  stroke: {
44044
44052
  "default": "#323232",
44045
- muted: "#323232"
44053
+ muted: "#323232",
44054
+ danger: "#ffbaba"
44046
44055
  },
44047
44056
  background: {
44048
44057
  "default": "#1F1F1C",
@@ -44050,7 +44059,8 @@ const click$2 = {
44050
44059
  },
44051
44060
  label: {
44052
44061
  "default": "#b3b6bd",
44053
- muted: "#b3b6bd"
44062
+ muted: "#b3b6bd",
44063
+ danger: "#ffbaba"
44054
44064
  },
44055
44065
  title: {
44056
44066
  "default": "rgb(97.5% 97.5% 97.5%)",
@@ -45918,7 +45928,8 @@ const click$1 = {
45918
45928
  color: {
45919
45929
  stroke: {
45920
45930
  "default": "#e6e7e9",
45921
- muted: "#e6e7e9"
45931
+ muted: "#e6e7e9",
45932
+ danger: "#c10000"
45922
45933
  },
45923
45934
  background: {
45924
45935
  "default": "#ffffff",
@@ -45926,7 +45937,8 @@ const click$1 = {
45926
45937
  },
45927
45938
  label: {
45928
45939
  "default": "#696e79",
45929
- muted: "#696e79"
45940
+ muted: "#696e79",
45941
+ danger: "#c10000"
45930
45942
  },
45931
45943
  title: {
45932
45944
  "default": "lch(11.1 1.37 305)",
@@ -47977,7 +47989,8 @@ const click = {
47977
47989
  color: {
47978
47990
  stroke: {
47979
47991
  "default": "#e6e7e9",
47980
- muted: "#e6e7e9"
47992
+ muted: "#e6e7e9",
47993
+ danger: "#c10000"
47981
47994
  },
47982
47995
  background: {
47983
47996
  "default": "#ffffff",
@@ -47985,7 +47998,8 @@ const click = {
47985
47998
  },
47986
47999
  label: {
47987
48000
  "default": "#696e79",
47988
- muted: "#696e79"
48001
+ muted: "#696e79",
48002
+ danger: "#c10000"
47989
48003
  },
47990
48004
  title: {
47991
48005
  "default": "lch(11.1 1.37 305)",