@clickhouse/click-ui 0.0.163 → 0.0.164

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.
@@ -1546,7 +1546,7 @@ const CalendarWithTime = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg"
1546
1546
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M6.74728 17.4532C6.7342 17.4529 6.72157 17.458 6.71232 17.4672C6.70306 17.4765 6.69799 17.4891 6.69826 17.5022C6.69827 17.5221 6.71032 17.54 6.72876 17.5475C6.7472 17.5551 6.76836 17.5507 6.7823 17.5365C6.79624 17.5222 6.80018 17.501 6.79228 17.4827C6.78438 17.4644 6.7662 17.4527 6.74628 17.4532", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
1547
1547
  ] });
1548
1548
  const Cpu = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1549
- /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { "clip-path": "url(#clip0_7971_4934)", children: [
1549
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_7971_4934)", children: [
1550
1550
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14.25 9.75H9.75V14.25H14.25V9.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1551
1551
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.75 4.5H5.25C4.83579 4.5 4.5 4.83579 4.5 5.25V18.75C4.5 19.1642 4.83579 19.5 5.25 19.5H18.75C19.1642 19.5 19.5 19.1642 19.5 18.75V5.25C19.5 4.83579 19.1642 4.5 18.75 4.5Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1552
1552
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19.5 9.75H21.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
@@ -1562,7 +1562,7 @@ const Cpu = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "2
1562
1562
  ] });
1563
1563
  const Minus = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.5 11.5H5.5", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1564
1564
  const Pipe = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1565
- /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { "clip-path": "url(#clip0_8130_6058)", children: [
1565
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_8130_6058)", children: [
1566
1566
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M10.5 15.75V13.5C10.5 12.7044 10.8161 11.9413 11.3787 11.3787C11.9413 10.8161 12.7044 10.5 13.5 10.5H15.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1567
1567
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15.75 4.5H13.5C11.1131 4.5 8.82387 5.44821 7.13604 7.13604C5.44821 8.82387 4.5 11.1131 4.5 13.5V15.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1568
1568
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18 3.75H16.5C16.0858 3.75 15.75 4.08579 15.75 4.5V10.5C15.75 10.9142 16.0858 11.25 16.5 11.25H18C18.4142 11.25 18.75 10.9142 18.75 10.5V4.5C18.75 4.08579 18.4142 3.75 18 3.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
@@ -1575,7 +1575,7 @@ const Pipe = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "
1575
1575
  /* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "clip0_8130_6058", children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
1576
1576
  ] });
1577
1577
  const TreeStructure = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1578
- /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { "clip-path": "url(#clip0_7969_2214)", children: [
1578
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_7969_2214)", children: [
1579
1579
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M6 9.75H3C2.58579 9.75 2.25 10.0858 2.25 10.5V13.5C2.25 13.9142 2.58579 14.25 3 14.25H6C6.41421 14.25 6.75 13.9142 6.75 13.5V10.5C6.75 10.0858 6.41421 9.75 6 9.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1580
1580
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M20.25 3.75H15.75C15.3358 3.75 15 4.08579 15 4.5V9C15 9.41421 15.3358 9.75 15.75 9.75H20.25C20.6642 9.75 21 9.41421 21 9V4.5C21 4.08579 20.6642 3.75 20.25 3.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1581
1581
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M20.25 14.25H15.75C15.3358 14.25 15 14.5858 15 15V19.5C15 19.9142 15.3358 20.25 15.75 20.25H20.25C20.6642 20.25 21 19.9142 21 19.5V15C21 14.5858 20.6642 14.25 20.25 14.25Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
@@ -2383,7 +2383,7 @@ styled.span.withConfig({
2383
2383
  componentId: "sc-1sddmxu-8"
2384
2384
  })(["display:flex;white-space:nowrap;overflow:hidden;justify-content:flex-end;gap:inherit;& > *:not(button){overflow:hidden;text-overflow:ellipsis;}"]);
2385
2385
  const Switzerland = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "30", height: "20", viewBox: "0 0 30 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
2386
- /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { "clip-path": "url(#clip0_8668_6183)", children: [
2386
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_8668_6183)", children: [
2387
2387
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M30 0H0V20H30V0Z", fill: "#D52B1E" }),
2388
2388
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M21.6663 7.77783H8.33301V12.2223H21.6663V7.77783Z", fill: "white" }),
2389
2389
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M17.2218 3.3335H12.7773V16.6668H17.2218V3.3335Z", fill: "white" })
@@ -3206,6 +3206,7 @@ const SVGIcon = ({
3206
3206
  color,
3207
3207
  width,
3208
3208
  height,
3209
+ state,
3209
3210
  className,
3210
3211
  size: size2,
3211
3212
  ...props
@@ -3214,11 +3215,11 @@ const SVGIcon = ({
3214
3215
  if (!Component2) {
3215
3216
  return null;
3216
3217
  }
3217
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgWrapper, { $color: color, $width: width, $height: height, $size: size2, className, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, { ...props }) });
3218
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgWrapper, { $color: color, $width: width, $height: height, $size: size2, className, state, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, { ...props }) });
3218
3219
  };
3219
3220
  const SvgWrapper = styled.div.withConfig({
3220
3221
  componentId: "sc-29ieut-0"
3221
- })(["display:flex;align-items:center;", ""], ({
3222
+ })(["display:flex;align-items:center;", " ", ""], ({
3222
3223
  theme: theme2,
3223
3224
  $color = "currentColor",
3224
3225
  $width,
@@ -3237,6 +3238,16 @@ const SvgWrapper = styled.div.withConfig({
3237
3238
  width: ${$width || theme2.click.image[$size || "md"].size.width || "24px"};
3238
3239
  height: ${$height || theme2.click.image[$size || "md"].size.height || "24px"};
3239
3240
  }
3241
+ `, ({
3242
+ theme: theme2,
3243
+ $color = "currentColor",
3244
+ state = "default",
3245
+ $size = "md"
3246
+ }) => `
3247
+ background: ${theme2.click.icon.color.background[state]};
3248
+ border-radius: ${theme2.border.radii.full};
3249
+ padding: ${state === "default" ? "none" : theme2.click.icon.space[$size].all};
3250
+ color: ${state === "default" ? $color : theme2.click.icon.color.text[state]};
3240
3251
  `);
3241
3252
  const SvgImage = ({
3242
3253
  name: name2,
@@ -33501,7 +33512,7 @@ const SelectList = styled.div.withConfig({
33501
33512
  })(["display:flex;flex-direction:column;width:inherit;max-height:calc(var(--radix-popover-content-available-height) - 1rem);"]);
33502
33513
  const SelectListContent = styled.div.withConfig({
33503
33514
  componentId: "sc-oudbwg-8"
33504
- })(["width:inherit;overflow:overlay;flex:1;"]);
33515
+ })(["width:inherit;overflow:auto;flex:1;"]);
33505
33516
  const HiddenSelectElement = styled.select.withConfig({
33506
33517
  componentId: "sc-oudbwg-9"
33507
33518
  })(["visibility:hidden;position:absolute;z-index:-1;height:0;"]);
@@ -43367,6 +43378,34 @@ const click$2 = {
43367
43378
  }
43368
43379
  }
43369
43380
  },
43381
+ icon: {
43382
+ color: {
43383
+ background: {
43384
+ "default": "rgba(0,0,0,0)",
43385
+ success: "rgb(20% 100% 26.7% / 0.2)",
43386
+ neutral: "rgb(62.7% 62.7% 62.7% / 0.2)",
43387
+ danger: "rgb(100% 13.7% 13.7% / 0.2)",
43388
+ info: "rgb(7.45% 35.7% 90.2% / 0.2)",
43389
+ warning: "rgb(100% 58% 8.63% / 0.2)"
43390
+ },
43391
+ text: {
43392
+ "default": "rgba(0,0,0,0)",
43393
+ success: "#CCFFD0",
43394
+ neutral: "#c0c0c0",
43395
+ danger: "#ffbaba",
43396
+ info: "#b5cdf9",
43397
+ warning: "#ffca8b"
43398
+ },
43399
+ stroke: {
43400
+ "default": "rgba(0,0,0,0)",
43401
+ success: "rgb(20% 100% 26.7% / 0.05)",
43402
+ neutral: "rgb(62.7% 62.7% 62.7% / 0.2)",
43403
+ danger: "rgb(100% 13.7% 13.7% / 0.05)",
43404
+ info: "rgb(7.45% 35.7% 90.2% / 0.05)",
43405
+ warning: "rgb(100% 58% 8.63% / 0.05)"
43406
+ }
43407
+ }
43408
+ },
43370
43409
  global: {
43371
43410
  color: {
43372
43411
  background: {
@@ -44834,6 +44873,34 @@ const click$1 = {
44834
44873
  }
44835
44874
  }
44836
44875
  },
44876
+ icon: {
44877
+ color: {
44878
+ background: {
44879
+ "default": "rgba(0,0,0,0)",
44880
+ success: "rgb(20% 100% 26.7% / 0.1)",
44881
+ neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
44882
+ danger: "rgb(100% 13.7% 13.7% / 0.1)",
44883
+ info: "rgb(7.45% 35.7% 90.2% / 0.1)",
44884
+ warning: "rgb(100% 58% 8.63% / 0.1)"
44885
+ },
44886
+ text: {
44887
+ "default": "rgba(0,0,0,0)",
44888
+ success: "#00990D",
44889
+ neutral: "#53575f",
44890
+ danger: "#c10000",
44891
+ info: "#135be6",
44892
+ warning: "#9e5600"
44893
+ },
44894
+ stroke: {
44895
+ "default": "rgba(0,0,0,0)",
44896
+ success: "rgb(20% 100% 26.7% / 0.05)",
44897
+ neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
44898
+ danger: "rgb(100% 13.7% 13.7% / 0.05)",
44899
+ info: "rgb(7.45% 35.7% 90.2% / 0.05)",
44900
+ warning: "rgb(100% 58% 8.63% / 0.05)"
44901
+ }
44902
+ }
44903
+ },
44837
44904
  global: {
44838
44905
  color: {
44839
44906
  background: {
@@ -47649,6 +47716,54 @@ const click = {
47649
47716
  unset: ""
47650
47717
  }
47651
47718
  },
47719
+ icon: {
47720
+ space: {
47721
+ xs: {
47722
+ all: "0.25rem"
47723
+ },
47724
+ sm: {
47725
+ all: "0.25rem"
47726
+ },
47727
+ md: {
47728
+ all: "0.365rem"
47729
+ },
47730
+ lg: {
47731
+ all: "0.5rem"
47732
+ },
47733
+ xl: {
47734
+ all: "0.75rem"
47735
+ },
47736
+ xxl: {
47737
+ all: "1rem"
47738
+ }
47739
+ },
47740
+ color: {
47741
+ background: {
47742
+ "default": "rgba(0,0,0,0)",
47743
+ success: "rgb(20% 100% 26.7% / 0.1)",
47744
+ neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
47745
+ danger: "rgb(100% 13.7% 13.7% / 0.1)",
47746
+ info: "rgb(7.45% 35.7% 90.2% / 0.1)",
47747
+ warning: "rgb(100% 58% 8.63% / 0.1)"
47748
+ },
47749
+ text: {
47750
+ "default": "rgba(0,0,0,0)",
47751
+ success: "#00990D",
47752
+ neutral: "#53575f",
47753
+ danger: "#c10000",
47754
+ info: "#135be6",
47755
+ warning: "#9e5600"
47756
+ },
47757
+ stroke: {
47758
+ "default": "rgba(0,0,0,0)",
47759
+ success: "rgb(20% 100% 26.7% / 0.05)",
47760
+ neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
47761
+ danger: "rgb(100% 13.7% 13.7% / 0.05)",
47762
+ info: "rgb(7.45% 35.7% 90.2% / 0.05)",
47763
+ warning: "rgb(100% 58% 8.63% / 0.05)"
47764
+ }
47765
+ }
47766
+ },
47652
47767
  global: {
47653
47768
  color: {
47654
47769
  background: {
@@ -1563,7 +1563,7 @@ var __publicField = (obj, key, value) => {
1563
1563
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M6.74728 17.4532C6.7342 17.4529 6.72157 17.458 6.71232 17.4672C6.70306 17.4765 6.69799 17.4891 6.69826 17.5022C6.69827 17.5221 6.71032 17.54 6.72876 17.5475C6.7472 17.5551 6.76836 17.5507 6.7823 17.5365C6.79624 17.5222 6.80018 17.501 6.79228 17.4827C6.78438 17.4644 6.7662 17.4527 6.74628 17.4532", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
1564
1564
  ] });
1565
1565
  const Cpu = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1566
- /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { "clip-path": "url(#clip0_7971_4934)", children: [
1566
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_7971_4934)", children: [
1567
1567
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14.25 9.75H9.75V14.25H14.25V9.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1568
1568
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.75 4.5H5.25C4.83579 4.5 4.5 4.83579 4.5 5.25V18.75C4.5 19.1642 4.83579 19.5 5.25 19.5H18.75C19.1642 19.5 19.5 19.1642 19.5 18.75V5.25C19.5 4.83579 19.1642 4.5 18.75 4.5Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1569
1569
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19.5 9.75H21.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
@@ -1579,7 +1579,7 @@ var __publicField = (obj, key, value) => {
1579
1579
  ] });
1580
1580
  const Minus = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.5 11.5H5.5", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1581
1581
  const Pipe = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1582
- /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { "clip-path": "url(#clip0_8130_6058)", children: [
1582
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_8130_6058)", children: [
1583
1583
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M10.5 15.75V13.5C10.5 12.7044 10.8161 11.9413 11.3787 11.3787C11.9413 10.8161 12.7044 10.5 13.5 10.5H15.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1584
1584
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15.75 4.5H13.5C11.1131 4.5 8.82387 5.44821 7.13604 7.13604C5.44821 8.82387 4.5 11.1131 4.5 13.5V15.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1585
1585
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18 3.75H16.5C16.0858 3.75 15.75 4.08579 15.75 4.5V10.5C15.75 10.9142 16.0858 11.25 16.5 11.25H18C18.4142 11.25 18.75 10.9142 18.75 10.5V4.5C18.75 4.08579 18.4142 3.75 18 3.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
@@ -1592,7 +1592,7 @@ var __publicField = (obj, key, value) => {
1592
1592
  /* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "clip0_8130_6058", children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
1593
1593
  ] });
1594
1594
  const TreeStructure = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1595
- /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { "clip-path": "url(#clip0_7969_2214)", children: [
1595
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_7969_2214)", children: [
1596
1596
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M6 9.75H3C2.58579 9.75 2.25 10.0858 2.25 10.5V13.5C2.25 13.9142 2.58579 14.25 3 14.25H6C6.41421 14.25 6.75 13.9142 6.75 13.5V10.5C6.75 10.0858 6.41421 9.75 6 9.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1597
1597
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M20.25 3.75H15.75C15.3358 3.75 15 4.08579 15 4.5V9C15 9.41421 15.3358 9.75 15.75 9.75H20.25C20.6642 9.75 21 9.41421 21 9V4.5C21 4.08579 20.6642 3.75 20.25 3.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1598
1598
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M20.25 14.25H15.75C15.3358 14.25 15 14.5858 15 15V19.5C15 19.9142 15.3358 20.25 15.75 20.25H20.25C20.6642 20.25 21 19.9142 21 19.5V15C21 14.5858 20.6642 14.25 20.25 14.25Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
@@ -2400,7 +2400,7 @@ var __publicField = (obj, key, value) => {
2400
2400
  componentId: "sc-1sddmxu-8"
2401
2401
  })(["display:flex;white-space:nowrap;overflow:hidden;justify-content:flex-end;gap:inherit;& > *:not(button){overflow:hidden;text-overflow:ellipsis;}"]);
2402
2402
  const Switzerland = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "30", height: "20", viewBox: "0 0 30 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
2403
- /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { "clip-path": "url(#clip0_8668_6183)", children: [
2403
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_8668_6183)", children: [
2404
2404
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M30 0H0V20H30V0Z", fill: "#D52B1E" }),
2405
2405
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M21.6663 7.77783H8.33301V12.2223H21.6663V7.77783Z", fill: "white" }),
2406
2406
  /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M17.2218 3.3335H12.7773V16.6668H17.2218V3.3335Z", fill: "white" })
@@ -3223,6 +3223,7 @@ var __publicField = (obj, key, value) => {
3223
3223
  color,
3224
3224
  width,
3225
3225
  height,
3226
+ state,
3226
3227
  className,
3227
3228
  size: size2,
3228
3229
  ...props
@@ -3231,11 +3232,11 @@ var __publicField = (obj, key, value) => {
3231
3232
  if (!Component) {
3232
3233
  return null;
3233
3234
  }
3234
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgWrapper, { $color: color, $width: width, $height: height, $size: size2, className, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...props }) });
3235
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgWrapper, { $color: color, $width: width, $height: height, $size: size2, className, state, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...props }) });
3235
3236
  };
3236
3237
  const SvgWrapper = styled.div.withConfig({
3237
3238
  componentId: "sc-29ieut-0"
3238
- })(["display:flex;align-items:center;", ""], ({
3239
+ })(["display:flex;align-items:center;", " ", ""], ({
3239
3240
  theme: theme2,
3240
3241
  $color = "currentColor",
3241
3242
  $width,
@@ -3254,6 +3255,16 @@ var __publicField = (obj, key, value) => {
3254
3255
  width: ${$width || theme2.click.image[$size || "md"].size.width || "24px"};
3255
3256
  height: ${$height || theme2.click.image[$size || "md"].size.height || "24px"};
3256
3257
  }
3258
+ `, ({
3259
+ theme: theme2,
3260
+ $color = "currentColor",
3261
+ state = "default",
3262
+ $size = "md"
3263
+ }) => `
3264
+ background: ${theme2.click.icon.color.background[state]};
3265
+ border-radius: ${theme2.border.radii.full};
3266
+ padding: ${state === "default" ? "none" : theme2.click.icon.space[$size].all};
3267
+ color: ${state === "default" ? $color : theme2.click.icon.color.text[state]};
3257
3268
  `);
3258
3269
  const SvgImage = ({
3259
3270
  name: name2,
@@ -33518,7 +33529,7 @@ var __publicField = (obj, key, value) => {
33518
33529
  })(["display:flex;flex-direction:column;width:inherit;max-height:calc(var(--radix-popover-content-available-height) - 1rem);"]);
33519
33530
  const SelectListContent = styled.div.withConfig({
33520
33531
  componentId: "sc-oudbwg-8"
33521
- })(["width:inherit;overflow:overlay;flex:1;"]);
33532
+ })(["width:inherit;overflow:auto;flex:1;"]);
33522
33533
  const HiddenSelectElement = styled.select.withConfig({
33523
33534
  componentId: "sc-oudbwg-9"
33524
33535
  })(["visibility:hidden;position:absolute;z-index:-1;height:0;"]);
@@ -43384,6 +43395,34 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
43384
43395
  }
43385
43396
  }
43386
43397
  },
43398
+ icon: {
43399
+ color: {
43400
+ background: {
43401
+ "default": "rgba(0,0,0,0)",
43402
+ success: "rgb(20% 100% 26.7% / 0.2)",
43403
+ neutral: "rgb(62.7% 62.7% 62.7% / 0.2)",
43404
+ danger: "rgb(100% 13.7% 13.7% / 0.2)",
43405
+ info: "rgb(7.45% 35.7% 90.2% / 0.2)",
43406
+ warning: "rgb(100% 58% 8.63% / 0.2)"
43407
+ },
43408
+ text: {
43409
+ "default": "rgba(0,0,0,0)",
43410
+ success: "#CCFFD0",
43411
+ neutral: "#c0c0c0",
43412
+ danger: "#ffbaba",
43413
+ info: "#b5cdf9",
43414
+ warning: "#ffca8b"
43415
+ },
43416
+ stroke: {
43417
+ "default": "rgba(0,0,0,0)",
43418
+ success: "rgb(20% 100% 26.7% / 0.05)",
43419
+ neutral: "rgb(62.7% 62.7% 62.7% / 0.2)",
43420
+ danger: "rgb(100% 13.7% 13.7% / 0.05)",
43421
+ info: "rgb(7.45% 35.7% 90.2% / 0.05)",
43422
+ warning: "rgb(100% 58% 8.63% / 0.05)"
43423
+ }
43424
+ }
43425
+ },
43387
43426
  global: {
43388
43427
  color: {
43389
43428
  background: {
@@ -44851,6 +44890,34 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
44851
44890
  }
44852
44891
  }
44853
44892
  },
44893
+ icon: {
44894
+ color: {
44895
+ background: {
44896
+ "default": "rgba(0,0,0,0)",
44897
+ success: "rgb(20% 100% 26.7% / 0.1)",
44898
+ neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
44899
+ danger: "rgb(100% 13.7% 13.7% / 0.1)",
44900
+ info: "rgb(7.45% 35.7% 90.2% / 0.1)",
44901
+ warning: "rgb(100% 58% 8.63% / 0.1)"
44902
+ },
44903
+ text: {
44904
+ "default": "rgba(0,0,0,0)",
44905
+ success: "#00990D",
44906
+ neutral: "#53575f",
44907
+ danger: "#c10000",
44908
+ info: "#135be6",
44909
+ warning: "#9e5600"
44910
+ },
44911
+ stroke: {
44912
+ "default": "rgba(0,0,0,0)",
44913
+ success: "rgb(20% 100% 26.7% / 0.05)",
44914
+ neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
44915
+ danger: "rgb(100% 13.7% 13.7% / 0.05)",
44916
+ info: "rgb(7.45% 35.7% 90.2% / 0.05)",
44917
+ warning: "rgb(100% 58% 8.63% / 0.05)"
44918
+ }
44919
+ }
44920
+ },
44854
44921
  global: {
44855
44922
  color: {
44856
44923
  background: {
@@ -47666,6 +47733,54 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
47666
47733
  unset: ""
47667
47734
  }
47668
47735
  },
47736
+ icon: {
47737
+ space: {
47738
+ xs: {
47739
+ all: "0.25rem"
47740
+ },
47741
+ sm: {
47742
+ all: "0.25rem"
47743
+ },
47744
+ md: {
47745
+ all: "0.365rem"
47746
+ },
47747
+ lg: {
47748
+ all: "0.5rem"
47749
+ },
47750
+ xl: {
47751
+ all: "0.75rem"
47752
+ },
47753
+ xxl: {
47754
+ all: "1rem"
47755
+ }
47756
+ },
47757
+ color: {
47758
+ background: {
47759
+ "default": "rgba(0,0,0,0)",
47760
+ success: "rgb(20% 100% 26.7% / 0.1)",
47761
+ neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
47762
+ danger: "rgb(100% 13.7% 13.7% / 0.1)",
47763
+ info: "rgb(7.45% 35.7% 90.2% / 0.1)",
47764
+ warning: "rgb(100% 58% 8.63% / 0.1)"
47765
+ },
47766
+ text: {
47767
+ "default": "rgba(0,0,0,0)",
47768
+ success: "#00990D",
47769
+ neutral: "#53575f",
47770
+ danger: "#c10000",
47771
+ info: "#135be6",
47772
+ warning: "#9e5600"
47773
+ },
47774
+ stroke: {
47775
+ "default": "rgba(0,0,0,0)",
47776
+ success: "rgb(20% 100% 26.7% / 0.05)",
47777
+ neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
47778
+ danger: "rgb(100% 13.7% 13.7% / 0.05)",
47779
+ info: "rgb(7.45% 35.7% 90.2% / 0.05)",
47780
+ warning: "rgb(100% 58% 8.63% / 0.05)"
47781
+ }
47782
+ }
47783
+ },
47669
47784
  global: {
47670
47785
  color: {
47671
47786
  background: {
@@ -5,12 +5,14 @@ import { LogoName } from '../Logos/types';
5
5
  import { PaymentName, PaymentProps } from '../icons/Payments';
6
6
 
7
7
  export type IconSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
8
+ export type IconState = "default" | "success" | "warning" | "danger" | "info";
8
9
  export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-left", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "book", "brackets", "briefcase", "building", "burger-menu", "calendar", "calendar-with-time", "cards", "cell-tower", "chat", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "cloud-keys", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cpu", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "double-check", "download", "download-in-circle", "email", "empty", "enter", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "key", "keys", "lifebuoy", "light-bulb", "lightening", "line-in-circle", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "no-cloud", "pause", "payment", "pencil", "pie-chart", "pipe", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "sandglass", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "star", "stop", "support", "table", "taxi", "trash", "tree-structure", "upload", "url", "user", "users", "warning", "waves"];
9
10
  export type IconName = (typeof ICON_NAMES)[number];
10
11
  export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
11
12
  name: IconName;
12
13
  color?: string;
13
14
  size?: IconSize;
15
+ state?: IconState;
14
16
  }
15
17
  type NoThemeType = {
16
18
  theme?: never;
@@ -2651,6 +2651,54 @@ export interface Theme {
2651
2651
  "unset": string;
2652
2652
  };
2653
2653
  };
2654
+ "icon": {
2655
+ "space": {
2656
+ "xs": {
2657
+ "all": string;
2658
+ };
2659
+ "sm": {
2660
+ "all": string;
2661
+ };
2662
+ "md": {
2663
+ "all": string;
2664
+ };
2665
+ "lg": {
2666
+ "all": string;
2667
+ };
2668
+ "xl": {
2669
+ "all": string;
2670
+ };
2671
+ "xxl": {
2672
+ "all": string;
2673
+ };
2674
+ };
2675
+ "color": {
2676
+ "background": {
2677
+ "default": string;
2678
+ "success": string;
2679
+ "neutral": string;
2680
+ "danger": string;
2681
+ "info": string;
2682
+ "warning": string;
2683
+ };
2684
+ "text": {
2685
+ "default": string;
2686
+ "success": string;
2687
+ "neutral": string;
2688
+ "danger": string;
2689
+ "info": string;
2690
+ "warning": string;
2691
+ };
2692
+ "stroke": {
2693
+ "default": string;
2694
+ "success": string;
2695
+ "neutral": string;
2696
+ "danger": string;
2697
+ "info": string;
2698
+ "warning": string;
2699
+ };
2700
+ };
2701
+ };
2654
2702
  "global": {
2655
2703
  "color": {
2656
2704
  "background": {
@@ -1310,6 +1310,34 @@ declare const _default: {
1310
1310
  }
1311
1311
  }
1312
1312
  },
1313
+ "icon": {
1314
+ "color": {
1315
+ "background": {
1316
+ "default": "rgba(0,0,0,0)",
1317
+ "success": "rgb(20% 100% 26.7% / 0.2)",
1318
+ "neutral": "rgb(62.7% 62.7% 62.7% / 0.2)",
1319
+ "danger": "rgb(100% 13.7% 13.7% / 0.2)",
1320
+ "info": "rgb(7.45% 35.7% 90.2% / 0.2)",
1321
+ "warning": "rgb(100% 58% 8.63% / 0.2)"
1322
+ },
1323
+ "text": {
1324
+ "default": "rgba(0,0,0,0)",
1325
+ "success": "#CCFFD0",
1326
+ "neutral": "#c0c0c0",
1327
+ "danger": "#ffbaba",
1328
+ "info": "#b5cdf9",
1329
+ "warning": "#ffca8b"
1330
+ },
1331
+ "stroke": {
1332
+ "default": "rgba(0,0,0,0)",
1333
+ "success": "rgb(20% 100% 26.7% / 0.05)",
1334
+ "neutral": "rgb(62.7% 62.7% 62.7% / 0.2)",
1335
+ "danger": "rgb(100% 13.7% 13.7% / 0.05)",
1336
+ "info": "rgb(7.45% 35.7% 90.2% / 0.05)",
1337
+ "warning": "rgb(100% 58% 8.63% / 0.05)"
1338
+ }
1339
+ }
1340
+ },
1313
1341
  "global": {
1314
1342
  "color": {
1315
1343
  "background": {
@@ -2651,6 +2651,54 @@ declare const _default: {
2651
2651
  "unset": ""
2652
2652
  }
2653
2653
  },
2654
+ "icon": {
2655
+ "space": {
2656
+ "xs": {
2657
+ "all": "0.25rem"
2658
+ },
2659
+ "sm": {
2660
+ "all": "0.25rem"
2661
+ },
2662
+ "md": {
2663
+ "all": "0.365rem"
2664
+ },
2665
+ "lg": {
2666
+ "all": "0.5rem"
2667
+ },
2668
+ "xl": {
2669
+ "all": "0.75rem"
2670
+ },
2671
+ "xxl": {
2672
+ "all": "1rem"
2673
+ }
2674
+ },
2675
+ "color": {
2676
+ "background": {
2677
+ "default": "rgba(0,0,0,0)",
2678
+ "success": "rgb(20% 100% 26.7% / 0.1)",
2679
+ "neutral": "rgb(41.2% 43.1% 47.5% / 0.1)",
2680
+ "danger": "rgb(100% 13.7% 13.7% / 0.1)",
2681
+ "info": "rgb(7.45% 35.7% 90.2% / 0.1)",
2682
+ "warning": "rgb(100% 58% 8.63% / 0.1)"
2683
+ },
2684
+ "text": {
2685
+ "default": "rgba(0,0,0,0)",
2686
+ "success": "#00990D",
2687
+ "neutral": "#53575f",
2688
+ "danger": "#c10000",
2689
+ "info": "#135be6",
2690
+ "warning": "#9e5600"
2691
+ },
2692
+ "stroke": {
2693
+ "default": "rgba(0,0,0,0)",
2694
+ "success": "rgb(20% 100% 26.7% / 0.05)",
2695
+ "neutral": "rgb(41.2% 43.1% 47.5% / 0.1)",
2696
+ "danger": "rgb(100% 13.7% 13.7% / 0.05)",
2697
+ "info": "rgb(7.45% 35.7% 90.2% / 0.05)",
2698
+ "warning": "rgb(100% 58% 8.63% / 0.05)"
2699
+ }
2700
+ }
2701
+ },
2654
2702
  "global": {
2655
2703
  "color": {
2656
2704
  "background": {
@@ -1303,6 +1303,34 @@ declare const _default: {
1303
1303
  }
1304
1304
  }
1305
1305
  },
1306
+ "icon": {
1307
+ "color": {
1308
+ "background": {
1309
+ "default": "rgba(0,0,0,0)",
1310
+ "success": "rgb(20% 100% 26.7% / 0.1)",
1311
+ "neutral": "rgb(41.2% 43.1% 47.5% / 0.1)",
1312
+ "danger": "rgb(100% 13.7% 13.7% / 0.1)",
1313
+ "info": "rgb(7.45% 35.7% 90.2% / 0.1)",
1314
+ "warning": "rgb(100% 58% 8.63% / 0.1)"
1315
+ },
1316
+ "text": {
1317
+ "default": "rgba(0,0,0,0)",
1318
+ "success": "#00990D",
1319
+ "neutral": "#53575f",
1320
+ "danger": "#c10000",
1321
+ "info": "#135be6",
1322
+ "warning": "#9e5600"
1323
+ },
1324
+ "stroke": {
1325
+ "default": "rgba(0,0,0,0)",
1326
+ "success": "rgb(20% 100% 26.7% / 0.05)",
1327
+ "neutral": "rgb(41.2% 43.1% 47.5% / 0.1)",
1328
+ "danger": "rgb(100% 13.7% 13.7% / 0.05)",
1329
+ "info": "rgb(7.45% 35.7% 90.2% / 0.05)",
1330
+ "warning": "rgb(100% 58% 8.63% / 0.05)"
1331
+ }
1332
+ }
1333
+ },
1306
1334
  "global": {
1307
1335
  "color": {
1308
1336
  "background": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.163",
3
+ "version": "0.0.164",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",