@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.
@@ -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 = [],
@@ -41405,7 +41413,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
41405
41413
  `);
41406
41414
  const HeaderContentWrapper = pt.div.withConfig({
41407
41415
  componentId: "sc-1q458rb-1"
41408
- })(["display:flex;align-items:center;justify-content:start;gap:inherit;"]);
41416
+ })(["display:flex;align-items:center;justify-content:start;gap:inherit;", ""], ({
41417
+ $interactive
41418
+ }) => $interactive && "cursor: pointer;");
41409
41419
  const SortIcon = pt(SvgImage).withConfig({
41410
41420
  componentId: "sc-1q458rb-2"
41411
41421
  })(["transition:all 200ms;transform:rotate(", ");"], ({
@@ -41422,6 +41432,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
41422
41432
  ...delegated
41423
41433
  }) => {
41424
41434
  const isSorted = typeof sortDir === "string";
41435
+ const isInteractive = Boolean(typeof onClick === "function" || isSortable && typeof onSort === "function");
41425
41436
  const onHeaderClick = (e) => {
41426
41437
  if (typeof onClick === "function") {
41427
41438
  onClick(e);
@@ -41430,7 +41441,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
41430
41441
  onSort();
41431
41442
  }
41432
41443
  };
41433
- return /* @__PURE__ */ jsxRuntime.jsx(StyledHeader, { $size: size2, ...delegated, children: /* @__PURE__ */ jsxRuntime.jsxs(HeaderContentWrapper, { onClick: onHeaderClick, children: [
41444
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledHeader, { $size: size2, ...delegated, children: /* @__PURE__ */ jsxRuntime.jsxs(HeaderContentWrapper, { onClick: onHeaderClick, $interactive: isInteractive, children: [
41434
41445
  isSorted && isSortable && sortPosition == "start" && /* @__PURE__ */ jsxRuntime.jsx(SortIcon, { $sortDir: sortDir, name: "arrow-down", size: "sm" }),
41435
41446
  label,
41436
41447
  isSorted && isSortable && sortPosition == "end" && /* @__PURE__ */ jsxRuntime.jsx(SortIcon, { $sortDir: sortDir, name: "arrow-down", size: "sm" })
@@ -45226,7 +45237,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
45226
45237
  color: {
45227
45238
  stroke: {
45228
45239
  "default": "#323232",
45229
- muted: "#323232"
45240
+ muted: "#323232",
45241
+ danger: "#ffbaba"
45230
45242
  },
45231
45243
  background: {
45232
45244
  "default": "#1F1F1C",
@@ -45234,7 +45246,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
45234
45246
  },
45235
45247
  label: {
45236
45248
  "default": "#b3b6bd",
45237
- muted: "#b3b6bd"
45249
+ muted: "#b3b6bd",
45250
+ danger: "#ffbaba"
45238
45251
  },
45239
45252
  title: {
45240
45253
  "default": "rgb(97.5% 97.5% 97.5%)",
@@ -47102,7 +47115,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
47102
47115
  color: {
47103
47116
  stroke: {
47104
47117
  "default": "#e6e7e9",
47105
- muted: "#e6e7e9"
47118
+ muted: "#e6e7e9",
47119
+ danger: "#c10000"
47106
47120
  },
47107
47121
  background: {
47108
47122
  "default": "#ffffff",
@@ -47110,7 +47124,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
47110
47124
  },
47111
47125
  label: {
47112
47126
  "default": "#696e79",
47113
- muted: "#696e79"
47127
+ muted: "#696e79",
47128
+ danger: "#c10000"
47114
47129
  },
47115
47130
  title: {
47116
47131
  "default": "lch(11.1 1.37 305)",
@@ -49161,7 +49176,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
49161
49176
  color: {
49162
49177
  stroke: {
49163
49178
  "default": "#e6e7e9",
49164
- muted: "#e6e7e9"
49179
+ muted: "#e6e7e9",
49180
+ danger: "#c10000"
49165
49181
  },
49166
49182
  background: {
49167
49183
  "default": "#ffffff",
@@ -49169,7 +49185,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
49169
49185
  },
49170
49186
  label: {
49171
49187
  "default": "#696e79",
49172
- muted: "#696e79"
49188
+ muted: "#696e79",
49189
+ danger: "#c10000"
49173
49190
  },
49174
49191
  title: {
49175
49192
  "default": "lch(11.1 1.37 305)",