@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.
@@ -10573,9 +10573,10 @@ const BigStat = ({
10573
10573
  spacing = "sm",
10574
10574
  state = "default",
10575
10575
  title = "Title",
10576
+ error: error2 = false,
10576
10577
  ...props
10577
- }) => /* @__PURE__ */ jsxs(Wrapper$a, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, ...props, children: [
10578
- /* @__PURE__ */ jsx(Label, { $state: state, $size: size2, children: label }),
10578
+ }) => /* @__PURE__ */ jsxs(Wrapper$a, { $height: height, $order: order, $size: size2, $spacing: spacing, $state: state, $fillWidth: fillWidth, $maxWidth: maxWidth, $error: error2, ...props, children: [
10579
+ /* @__PURE__ */ jsx(Label, { $state: state, $size: size2, $error: error2, children: label }),
10579
10580
  /* @__PURE__ */ jsx(Title$3, { $state: state, $size: size2, children: title })
10580
10581
  ] });
10581
10582
  const Wrapper$a = pt.div.withConfig({
@@ -10588,13 +10589,14 @@ const Wrapper$a = pt.div.withConfig({
10588
10589
  $height = "fixed",
10589
10590
  $order,
10590
10591
  $spacing = "sm",
10592
+ $error = false,
10591
10593
  theme: theme2
10592
10594
  }) => `
10593
10595
  background-color: ${theme2.click.bigStat.color.background[$state]};
10594
10596
  color: ${theme2.click.bigStat.color.label[$state]};
10595
10597
  font: ${theme2.click.bigStat.typography[$size].label[$state]};
10596
10598
  border-radius: ${theme2.click.bigStat.radii.all};
10597
- border: ${theme2.click.bigStat.stroke} solid ${theme2.click.bigStat.color.stroke[$state]};
10599
+ border: ${theme2.click.bigStat.stroke} solid ${$error ? theme2.click.bigStat.color.stroke.danger : theme2.click.bigStat.color.stroke[$state]};
10598
10600
  gap: ${theme2.click.bigStat.space[$spacing].gap};
10599
10601
  padding: ${theme2.click.bigStat.space.all};
10600
10602
  min-height: ${$height !== void 0 ? `${$height}` : "auto"};
@@ -10607,9 +10609,10 @@ const Label = pt.div.withConfig({
10607
10609
  })(["", ""], ({
10608
10610
  $state = "default",
10609
10611
  $size = "lg",
10612
+ $error = false,
10610
10613
  theme: theme2
10611
10614
  }) => `
10612
- color: ${theme2.click.bigStat.color.label[$state]};
10615
+ color: ${$error ? theme2.click.bigStat.color.label.danger : theme2.click.bigStat.color.label[$state]};
10613
10616
  font: ${theme2.click.bigStat.typography[$size].label[$state]};
10614
10617
  `);
10615
10618
  const Title$3 = pt.div.withConfig({
@@ -36388,7 +36391,11 @@ const SelectList = pt.div.withConfig({
36388
36391
  })(["display:flex;flex-direction:column;width:inherit;max-height:calc(var(--radix-popover-content-available-height) - 1rem);"]);
36389
36392
  const SelectListContent = pt.div.withConfig({
36390
36393
  componentId: "sc-oudbwg-8"
36391
- })(["width:inherit;overflow:auto;flex:1;"]);
36394
+ })(["width:inherit;overflow:auto;flex:1;", ""], ({
36395
+ $maxHeight
36396
+ }) => $maxHeight && `
36397
+ max-height: ${$maxHeight};
36398
+ `);
36392
36399
  const HiddenSelectElement = pt.select.withConfig({
36393
36400
  componentId: "sc-oudbwg-9"
36394
36401
  })(["visibility:hidden;position:absolute;z-index:-1;height:0;"]);
@@ -39826,6 +39833,7 @@ const InternalSelect = ({
39826
39833
  options,
39827
39834
  sortable = false,
39828
39835
  placeholder = "Select an option",
39836
+ maxHeight,
39829
39837
  multiple,
39830
39838
  checkbox,
39831
39839
  selectLabel,
@@ -40014,7 +40022,7 @@ const InternalSelect = ({
40014
40022
  /* @__PURE__ */ jsx(SearchBar, { ref: inputRef, value: search, onChange: (e) => onUpdateSearch(e.target.value), "data-testid": "select-search-input", onKeyDown, $showSearch: showSearch }),
40015
40023
  /* @__PURE__ */ jsx(SearchClose, { as: IconButton$1, icon: "cross", onClick: clearSearch, "data-testid": "select-search-close", $showClose: search.length > 0, size: "xs" })
40016
40024
  ] }),
40017
- /* @__PURE__ */ jsx(SelectListContent, { children: /* @__PURE__ */ jsx(OptionContext.Provider, { value: optionContextValue, children: options && options.length > 0 ? options.map((props2, index2) => {
40025
+ /* @__PURE__ */ jsx(SelectListContent, { $maxHeight: maxHeight, children: /* @__PURE__ */ jsx(OptionContext.Provider, { value: optionContextValue, children: options && options.length > 0 ? options.map((props2, index2) => {
40018
40026
  if ("options" in props2) {
40019
40027
  const {
40020
40028
  options: itemList = [],
@@ -45210,7 +45218,8 @@ const click$2 = {
45210
45218
  color: {
45211
45219
  stroke: {
45212
45220
  "default": "#323232",
45213
- muted: "#323232"
45221
+ muted: "#323232",
45222
+ danger: "#ffbaba"
45214
45223
  },
45215
45224
  background: {
45216
45225
  "default": "#1F1F1C",
@@ -45218,7 +45227,8 @@ const click$2 = {
45218
45227
  },
45219
45228
  label: {
45220
45229
  "default": "#b3b6bd",
45221
- muted: "#b3b6bd"
45230
+ muted: "#b3b6bd",
45231
+ danger: "#ffbaba"
45222
45232
  },
45223
45233
  title: {
45224
45234
  "default": "rgb(97.5% 97.5% 97.5%)",
@@ -47086,7 +47096,8 @@ const click$1 = {
47086
47096
  color: {
47087
47097
  stroke: {
47088
47098
  "default": "#e6e7e9",
47089
- muted: "#e6e7e9"
47099
+ muted: "#e6e7e9",
47100
+ danger: "#c10000"
47090
47101
  },
47091
47102
  background: {
47092
47103
  "default": "#ffffff",
@@ -47094,7 +47105,8 @@ const click$1 = {
47094
47105
  },
47095
47106
  label: {
47096
47107
  "default": "#696e79",
47097
- muted: "#696e79"
47108
+ muted: "#696e79",
47109
+ danger: "#c10000"
47098
47110
  },
47099
47111
  title: {
47100
47112
  "default": "lch(11.1 1.37 305)",
@@ -49145,7 +49157,8 @@ const click = {
49145
49157
  color: {
49146
49158
  stroke: {
49147
49159
  "default": "#e6e7e9",
49148
- muted: "#e6e7e9"
49160
+ muted: "#e6e7e9",
49161
+ danger: "#c10000"
49149
49162
  },
49150
49163
  background: {
49151
49164
  "default": "#ffffff",
@@ -49153,7 +49166,8 @@ const click = {
49153
49166
  },
49154
49167
  label: {
49155
49168
  "default": "#696e79",
49156
- muted: "#696e79"
49169
+ muted: "#696e79",
49170
+ danger: "#c10000"
49157
49171
  },
49158
49172
  title: {
49159
49173
  "default": "lch(11.1 1.37 305)",