@clickhouse/click-ui 0.0.152 → 0.0.154

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.
Files changed (28) hide show
  1. package/dist/click-ui.es.js +64 -55
  2. package/dist/click-ui.umd.js +64 -55
  3. package/dist/components/AutoComplete/OptionContext.d.ts +0 -1
  4. package/dist/components/AutoComplete/useOption.d.ts +2 -2
  5. package/dist/components/CardPrimary/CardPrimaryTopBadge.d.ts +1 -2
  6. package/dist/components/CardSecondary/CardSecondary.d.ts +4 -1
  7. package/dist/components/ContextMenu/ContextMenu.d.ts +0 -1
  8. package/dist/components/GenericMenu.d.ts +2 -3
  9. package/dist/components/Grid/StyledCell.d.ts +1 -1
  10. package/dist/components/Icon/IconCommon.d.ts +0 -1
  11. package/dist/components/Input/InputWrapper.d.ts +3 -3
  12. package/dist/components/Select/common/OptionContext.d.ts +0 -1
  13. package/dist/components/Select/common/SelectStyled.d.ts +2 -3
  14. package/dist/components/Select/common/useOption.d.ts +4 -4
  15. package/dist/components/SidebarNavigationItem/SidebarNavigationItem.d.ts +1 -1
  16. package/dist/components/SidebarNavigationTitle/SidebarNavigationTitle.d.ts +1 -1
  17. package/dist/components/Tabs/Tabs.d.ts +6 -7
  18. package/dist/components/commonElement.d.ts +5 -5
  19. package/dist/components/icons/Flags/GreatBritain.d.ts +1 -2
  20. package/dist/components/icons/Flags/index.d.ts +15 -15
  21. package/dist/components/icons/HorizontalLoading.d.ts +0 -1
  22. package/dist/components/icons/LoadingAnimated.d.ts +0 -1
  23. package/dist/styles/types.d.ts +3 -0
  24. package/dist/styles/variables.classic.json.d.ts +8 -8
  25. package/dist/styles/variables.dark.json.d.ts +21 -21
  26. package/dist/styles/variables.json.d.ts +11 -8
  27. package/dist/styles/variables.light.json.d.ts +7 -7
  28. package/package.json +5 -5
@@ -10097,9 +10097,11 @@ const Button = ({
10097
10097
  showLabelWithLoading = false,
10098
10098
  ...delegated
10099
10099
  }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(StyledButton, { $styleType: type, $align: align, $fillWidth: fillWidth, disabled: disabled || loading, role: "button", ...delegated, children: [
10100
- iconLeft && /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonIcon, { name: iconLeft, "aria-hidden": true, size: "sm" }),
10101
- label ?? children,
10102
- iconRight && /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonIcon, { name: iconRight, "aria-hidden": true, size: "sm" }),
10100
+ !loading && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
10101
+ iconLeft && /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonIcon, { name: iconLeft, "aria-hidden": true, size: "sm" }),
10102
+ label ?? children,
10103
+ iconRight && /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonIcon, { name: iconRight, "aria-hidden": true, size: "sm" })
10104
+ ] }),
10103
10105
  loading && /* @__PURE__ */ jsxRuntimeExports.jsxs(LoadingIconWrapper, { "data-testid": "click-ui-loading-icon-wrapper", children: [
10104
10106
  /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "loading-animated", "data-testid": "click-ui-loading-icon", "aria-label": "loading" }),
10105
10107
  showLabelWithLoading ? label ?? children : ""
@@ -10107,7 +10109,7 @@ const Button = ({
10107
10109
  ] });
10108
10110
  const LoadingIconWrapper = styled.div.withConfig({
10109
10111
  componentId: "sc-1k4tz4c-0"
10110
- })(["position:absolute;background-color:inherit;top:0;left:0;bottom:0;right:0;display:flex;align-content:center;justify-content:center;align-items:center;gap:0.5rem;"]);
10112
+ })(["background-color:inherit;top:0;left:0;bottom:0;right:0;display:flex;align-content:center;justify-content:center;align-items:center;gap:0.5rem;"]);
10111
10113
  const StyledButton = styled(BaseButton).withConfig({
10112
10114
  componentId: "sc-1k4tz4c-1"
10113
10115
  })(["width:", ";color:", ";background-color:", ";border:", " solid ", ";font:", ";position:relative;display:flex;align-items:center;justify-content:", ";white-space:nowrap;&:hover{background-color:", ";border:", " solid ", ";transition:", ";font:", ";}&:active,&:focus{background-color:", ";border:1px solid ", ";font:", ";}&:disabled,&:disabled:hover,&:disabled:active{background-color:", ";color:", ";border:", " solid ", ";font:", ";}"], ({
@@ -10248,10 +10250,12 @@ const CustomIcon = styled.img.withConfig({
10248
10250
  }) => theme2.click.image.lg.size.width);
10249
10251
  const InfoLink = styled.a.withConfig({
10250
10252
  componentId: "sc-1drx130-4"
10251
- })(["display:flex;align-items:center;color:", ";text-decoration:none;"], ({
10253
+ })(["display:flex;align-items:center;color:", ";gap:", ";text-decoration:none;"], ({
10254
+ theme: theme2
10255
+ }) => theme2.click.card.secondary.color.link.default, ({
10252
10256
  theme: theme2
10253
- }) => theme2.click.card.secondary.color.link.default);
10254
- const ArrowContainer = styled(SvgImage).withConfig({
10257
+ }) => theme2.click.card.secondary.space.link.gap);
10258
+ const LinkIconContainer = styled(SvgImage).withConfig({
10255
10259
  componentId: "sc-1drx130-5"
10256
10260
  })(["color:", ";height:", ";width:", ";"], ({
10257
10261
  theme: theme2
@@ -10263,7 +10267,7 @@ const ArrowContainer = styled(SvgImage).withConfig({
10263
10267
  const LinkText = styled(Text).withConfig({
10264
10268
  componentId: "sc-1drx130-6"
10265
10269
  })([""]);
10266
- const LinkArrow = styled(ArrowContainer).withConfig({
10270
+ const LinkIcon = styled(LinkIconContainer).withConfig({
10267
10271
  componentId: "sc-1drx130-7"
10268
10272
  })([""]);
10269
10273
  const Wrapper$a = styled.div.withConfig({
@@ -10283,7 +10287,7 @@ const Wrapper$a = styled.div.withConfig({
10283
10287
  theme: theme2
10284
10288
  }) => $hasShadow ? theme2.shadow[1] : "none", ({
10285
10289
  theme: theme2
10286
- }) => theme2.click.card.secondary.color.background.hover, LinkText, LinkArrow, ({
10290
+ }) => theme2.click.card.secondary.color.background.hover, LinkText, LinkIcon, ({
10287
10291
  theme: theme2
10288
10292
  }) => theme2.click.card.secondary.color.link.hover, ({
10289
10293
  theme: theme2
@@ -10294,7 +10298,7 @@ const Wrapper$a = styled.div.withConfig({
10294
10298
  cursor: not-allowed;
10295
10299
 
10296
10300
  ${LinkText},
10297
- ${LinkArrow} {
10301
+ ${LinkIcon} {
10298
10302
  color: ${theme2.click.card.secondary.color.link.disabled};
10299
10303
  }
10300
10304
  `);
@@ -10309,6 +10313,8 @@ const CardSecondary = ({
10309
10313
  description,
10310
10314
  infoUrl,
10311
10315
  infoText,
10316
+ infoIcon = "chevron-right",
10317
+ infoIconSize = "md",
10312
10318
  ...props
10313
10319
  }) => {
10314
10320
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$a, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
@@ -10322,7 +10328,7 @@ const CardSecondary = ({
10322
10328
  /* @__PURE__ */ jsxRuntimeExports.jsx(Content$3, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { color: "muted", children: description }) }),
10323
10329
  (infoUrl || infoText) && /* @__PURE__ */ jsxRuntimeExports.jsxs(InfoLink, { href: disabled ? void 0 : infoUrl, as: disabled || !infoUrl || infoUrl.length === 0 ? "div" : "a", children: [
10324
10330
  /* @__PURE__ */ jsxRuntimeExports.jsx(LinkText, { children: infoText }),
10325
- /* @__PURE__ */ jsxRuntimeExports.jsx(LinkArrow, { name: "chevron-right" })
10331
+ /* @__PURE__ */ jsxRuntimeExports.jsx(LinkIcon, { size: infoIconSize, name: infoIcon })
10326
10332
  ] })
10327
10333
  ] });
10328
10334
  };
@@ -40994,7 +41000,7 @@ const click$3 = {
40994
41000
  background: {
40995
41001
  "default": "#FFC029",
40996
41002
  hover: "lch(89.3 45.8 82.1)",
40997
- active: "lch(82.6 42.4 82.1)"
41003
+ active: "rgb(93.2% 79.3% 49.6%)"
40998
41004
  },
40999
41005
  text: {
41000
41006
  "default": "#151515"
@@ -41002,7 +41008,7 @@ const click$3 = {
41002
41008
  stroke: {
41003
41009
  "default": "#FFC029",
41004
41010
  hover: "lch(89.3 45.8 82.1)",
41005
- active: "lch(82.6 42.4 82.1)"
41011
+ active: "rgb(93.2% 79.3% 49.6%)"
41006
41012
  }
41007
41013
  },
41008
41014
  secondary: {
@@ -41014,7 +41020,7 @@ const click$3 = {
41014
41020
  stroke: {
41015
41021
  "default": "#e6e7e9",
41016
41022
  hover: "#e6e7e9",
41017
- active: "lch(83.8 2.3 258)"
41023
+ active: "rgb(81% 82.1% 83.6%)"
41018
41024
  },
41019
41025
  text: {
41020
41026
  "default": "#161517"
@@ -41088,12 +41094,12 @@ const click$3 = {
41088
41094
  background: {
41089
41095
  "default": "#FFC029",
41090
41096
  hover: "lch(89.3 45.8 82.1)",
41091
- active: "lch(78.5 40.3 82.1)"
41097
+ active: "lch(79.1 40.8 82.1)"
41092
41098
  },
41093
41099
  stroke: {
41094
41100
  "default": "rgba(0,0,0,0)",
41095
41101
  hover: "lch(89.3 45.8 82.1)",
41096
- active: "lch(78.5 40.3 82.1)"
41102
+ active: "lch(79.1 40.8 82.1)"
41097
41103
  },
41098
41104
  text: {
41099
41105
  "default": "#151515",
@@ -41168,13 +41174,13 @@ const click$3 = {
41168
41174
  main: {
41169
41175
  "default": "#FFC029",
41170
41176
  hover: "lch(81.7 41.9 82.1)",
41171
- active: "lch(75.6 38.8 82.1)",
41177
+ active: "lch(76.2 39.3 82.1)",
41172
41178
  disabled: "lch(81.3 0 0)"
41173
41179
  },
41174
41180
  action: {
41175
41181
  "default": "lch(77.8 74.1 79.3)",
41176
41182
  hover: "lch(77.6 39.8 82.1)",
41177
- active: "lch(69.2 35.5 82.1)",
41183
+ active: "lch(69.7 36 82.1)",
41178
41184
  disabled: "lch(74.4 0 0)"
41179
41185
  }
41180
41186
  },
@@ -41193,7 +41199,7 @@ const click$3 = {
41193
41199
  divide: {
41194
41200
  "default": "lch(68.1 64.8 79.3)",
41195
41201
  hover: "lch(71.5 36.7 82.1)",
41196
- active: "lch(66.1 33.9 82.1)",
41202
+ active: "lch(66.7 34.4 82.1)",
41197
41203
  disabled: "lch(71.1 0 0)"
41198
41204
  }
41199
41205
  },
@@ -41977,7 +41983,7 @@ const click$2 = {
41977
41983
  success: "#004206",
41978
41984
  neutral: "#414141",
41979
41985
  danger: "#610000",
41980
- disabled: "lch(26.2 0 0)",
41986
+ disabled: "rgb(24.2% 24.2% 24.2%)",
41981
41987
  info: "#09255B",
41982
41988
  warning: "#4f2b00"
41983
41989
  }
@@ -42009,8 +42015,8 @@ const click$2 = {
42009
42015
  primary: {
42010
42016
  background: {
42011
42017
  "default": "#FAFF69",
42012
- hover: "lch(98.3 49.3 103)",
42013
- active: "lch(90.2 65.2 103)",
42018
+ hover: "rgb(98.6% 100% 58.8%)",
42019
+ active: "rgb(90.7% 92.5% 38.1%)",
42014
42020
  disabled: "#414141"
42015
42021
  },
42016
42022
  text: {
@@ -42022,7 +42028,7 @@ const click$2 = {
42022
42028
  stroke: {
42023
42029
  "default": "#FAFF69",
42024
42030
  hover: "#FAFF69",
42025
- active: "lch(82.5 59.7 103)",
42031
+ active: "lch(83.3 60.6 103)",
42026
42032
  disabled: "#414141"
42027
42033
  }
42028
42034
  },
@@ -42030,13 +42036,13 @@ const click$2 = {
42030
42036
  background: {
42031
42037
  "default": "#1F1F1C",
42032
42038
  hover: "#282828",
42033
- active: "lch(20.3 0 0)",
42039
+ active: "rgb(19.9% 19.9% 19.9%)",
42034
42040
  disabled: "#414141"
42035
42041
  },
42036
42042
  stroke: {
42037
42043
  "default": "#414141",
42038
42044
  hover: "#53575f",
42039
- active: "lch(23.3 2.63 306)",
42045
+ active: "rgb(22.9% 22.1% 23.6%)",
42040
42046
  disabled: "#414141"
42041
42047
  },
42042
42048
  text: {
@@ -42110,13 +42116,13 @@ const click$2 = {
42110
42116
  secondary: {
42111
42117
  background: {
42112
42118
  "default": "#FAFF69",
42113
- hover: "lch(98.3 49.3 103)",
42114
- active: "lch(85.7 61.9 103)"
42119
+ hover: "rgb(98.6% 100% 58.8%)",
42120
+ active: "lch(86.5 62.9 103)"
42115
42121
  },
42116
42122
  stroke: {
42117
42123
  "default": "rgba(0,0,0,0)",
42118
- hover: "lch(98.3 49.3 103)",
42119
- active: "lch(85.7 61.9 103)"
42124
+ hover: "rgb(98.6% 100% 58.8%)",
42125
+ active: "lch(86.5 62.9 103)"
42120
42126
  },
42121
42127
  text: {
42122
42128
  "default": "#1F1F1C",
@@ -42190,14 +42196,14 @@ const click$2 = {
42190
42196
  background: {
42191
42197
  main: {
42192
42198
  "default": "#FAFF69",
42193
- hover: "lch(89.9 45.1 103)",
42194
- active: "lch(82.5 59.7 103)",
42199
+ hover: "lch(89.7 46.7 104)",
42200
+ active: "lch(83.3 60.6 103)",
42195
42201
  disabled: "lch(25.2 0 0)"
42196
42202
  },
42197
42203
  action: {
42198
42204
  "default": "lch(87.8 63.4 103)",
42199
- hover: "lch(82.7 41.5 103)",
42200
- active: "lch(72.6 52.5 103)",
42205
+ hover: "lch(82.5 43 104)",
42206
+ active: "lch(73.3 53.3 103)",
42201
42207
  disabled: "lch(22.2 0 0)"
42202
42208
  }
42203
42209
  },
@@ -42215,8 +42221,8 @@ const click$2 = {
42215
42221
  },
42216
42222
  divide: {
42217
42223
  "default": "lch(85.4 61.7 103)",
42218
- hover: "lch(78.7 39.5 103)",
42219
- active: "lch(72.2 52.2 103)",
42224
+ hover: "lch(78.5 40.9 104)",
42225
+ active: "lch(72.9 53 103)",
42220
42226
  disabled: "lch(23.1 0 0)"
42221
42227
  }
42222
42228
  },
@@ -42224,20 +42230,20 @@ const click$2 = {
42224
42230
  divide: {
42225
42231
  "default": "lch(31.2 0 0)",
42226
42232
  hover: "lch(34.8 0 0)",
42227
- active: "lch(24.1 2.6 306)",
42233
+ active: "lch(24.8 2.56 307)",
42228
42234
  disabled: "lch(23.4 0 0)"
42229
42235
  },
42230
42236
  background: {
42231
42237
  main: {
42232
42238
  "default": "#1F1F1C",
42233
42239
  hover: "#282828",
42234
- active: "lch(20.3 0 0)",
42240
+ active: "rgb(19.9% 19.9% 19.9%)",
42235
42241
  disabled: "#414141"
42236
42242
  },
42237
42243
  action: {
42238
42244
  "default": "#282828",
42239
42245
  hover: "lch(18.2 0 0)",
42240
- active: "lch(21.1 0 0)",
42246
+ active: "lch(21.9 0 0)",
42241
42247
  disabled: "lch(23.9 0 0)"
42242
42248
  }
42243
42249
  },
@@ -42250,7 +42256,7 @@ const click$2 = {
42250
42256
  stroke: {
42251
42257
  "default": "#414141",
42252
42258
  hover: "#414141",
42253
- active: "lch(24.1 2.6 306)",
42259
+ active: "lch(24.8 2.56 307)",
42254
42260
  disabled: "rgba(0,0,0,0)"
42255
42261
  }
42256
42262
  }
@@ -42298,7 +42304,7 @@ const click$2 = {
42298
42304
  stroke: {
42299
42305
  "default": "#323232",
42300
42306
  hover: "#53575f",
42301
- active: "lch(23.3 2.63 306)"
42307
+ active: "rgb(22.9% 22.1% 23.6%)"
42302
42308
  },
42303
42309
  text: {
42304
42310
  "default": "#ffffff",
@@ -43484,7 +43490,7 @@ const click$1 = {
43484
43490
  background: {
43485
43491
  "default": "#302e32",
43486
43492
  hover: "lch(29.5 4.18 267)",
43487
- active: "lch(6.42 1.33 305)",
43493
+ active: "rgb(7.98% 7.62% 8.34%)",
43488
43494
  disabled: "#dfdfdf"
43489
43495
  },
43490
43496
  text: {
@@ -43496,7 +43502,7 @@ const click$1 = {
43496
43502
  stroke: {
43497
43503
  "default": "#302e32",
43498
43504
  hover: "lch(29.5 4.18 267)",
43499
- active: "lch(6.42 1.33 305)",
43505
+ active: "rgb(7.98% 7.62% 8.34%)",
43500
43506
  disabled: "#dfdfdf"
43501
43507
  }
43502
43508
  },
@@ -43510,7 +43516,7 @@ const click$1 = {
43510
43516
  stroke: {
43511
43517
  "default": "#e6e7e9",
43512
43518
  hover: "#e6e7e9",
43513
- active: "lch(83.8 2.3 258)",
43519
+ active: "rgb(81% 82.1% 83.6%)",
43514
43520
  disabled: "#dfdfdf"
43515
43521
  },
43516
43522
  text: {
@@ -43585,12 +43591,12 @@ const click$1 = {
43585
43591
  background: {
43586
43592
  "default": "#302e32",
43587
43593
  hover: "lch(29.5 4.18 267)",
43588
- active: "lch(6.1 1.26 305)"
43594
+ active: "lch(5.9 1.18 305)"
43589
43595
  },
43590
43596
  stroke: {
43591
43597
  "default": "rgba(0,0,0,0)",
43592
43598
  hover: "lch(29.5 4.18 267)",
43593
- active: "lch(6.1 1.26 305)"
43599
+ active: "lch(5.9 1.18 305)"
43594
43600
  },
43595
43601
  text: {
43596
43602
  "default": "#ffffff",
@@ -43665,7 +43671,7 @@ const click$1 = {
43665
43671
  main: {
43666
43672
  "default": "#302e32",
43667
43673
  hover: "lch(27 3.82 267)",
43668
- active: "lch(5.87 1.22 305)",
43674
+ active: "lch(5.68 1.13 305)",
43669
43675
  disabled: "lch(81.3 0 0)"
43670
43676
  },
43671
43677
  action: {
@@ -43698,7 +43704,7 @@ const click$1 = {
43698
43704
  divide: {
43699
43705
  "default": "lch(92 1.05 266)",
43700
43706
  hover: "lch(92.4 0.99 266)",
43701
- active: "lch(83.8 2.3 258)",
43707
+ active: "rgb(81% 82.1% 83.6%)",
43702
43708
  disabled: "lch(75.5 0 0)"
43703
43709
  },
43704
43710
  background: {
@@ -45177,7 +45183,7 @@ const click = {
45177
45183
  background: {
45178
45184
  "default": "#302e32",
45179
45185
  hover: "lch(29.5 4.18 267)",
45180
- active: "lch(6.42 1.33 305)",
45186
+ active: "rgb(7.98% 7.62% 8.34%)",
45181
45187
  disabled: "#dfdfdf"
45182
45188
  },
45183
45189
  text: {
@@ -45189,7 +45195,7 @@ const click = {
45189
45195
  stroke: {
45190
45196
  "default": "#302e32",
45191
45197
  hover: "lch(29.5 4.18 267)",
45192
- active: "lch(6.42 1.33 305)",
45198
+ active: "rgb(7.98% 7.62% 8.34%)",
45193
45199
  disabled: "#dfdfdf"
45194
45200
  }
45195
45201
  },
@@ -45203,7 +45209,7 @@ const click = {
45203
45209
  stroke: {
45204
45210
  "default": "#e6e7e9",
45205
45211
  hover: "#e6e7e9",
45206
- active: "lch(83.8 2.3 258)",
45212
+ active: "rgb(81% 82.1% 83.6%)",
45207
45213
  disabled: "#dfdfdf"
45208
45214
  },
45209
45215
  text: {
@@ -45304,12 +45310,12 @@ const click = {
45304
45310
  background: {
45305
45311
  "default": "#302e32",
45306
45312
  hover: "lch(29.5 4.18 267)",
45307
- active: "lch(6.1 1.26 305)"
45313
+ active: "lch(5.9 1.18 305)"
45308
45314
  },
45309
45315
  stroke: {
45310
45316
  "default": "rgba(0,0,0,0)",
45311
45317
  hover: "lch(29.5 4.18 267)",
45312
- active: "lch(6.1 1.26 305)"
45318
+ active: "lch(5.9 1.18 305)"
45313
45319
  },
45314
45320
  text: {
45315
45321
  "default": "#ffffff",
@@ -45411,7 +45417,7 @@ const click = {
45411
45417
  main: {
45412
45418
  "default": "#302e32",
45413
45419
  hover: "lch(27 3.82 267)",
45414
- active: "lch(5.87 1.22 305)",
45420
+ active: "lch(5.68 1.13 305)",
45415
45421
  disabled: "lch(81.3 0 0)"
45416
45422
  },
45417
45423
  action: {
@@ -45444,7 +45450,7 @@ const click = {
45444
45450
  divide: {
45445
45451
  "default": "lch(92 1.05 266)",
45446
45452
  hover: "lch(92.4 0.99 266)",
45447
- active: "lch(83.8 2.3 258)",
45453
+ active: "rgb(81% 82.1% 83.6%)",
45448
45454
  disabled: "lch(75.5 0 0)"
45449
45455
  },
45450
45456
  background: {
@@ -45600,7 +45606,10 @@ const click = {
45600
45606
  secondary: {
45601
45607
  space: {
45602
45608
  all: "1rem",
45603
- gap: "1rem"
45609
+ gap: "1rem",
45610
+ link: {
45611
+ gap: "0.5rem"
45612
+ }
45604
45613
  },
45605
45614
  radii: {
45606
45615
  all: "0.25rem"