@clickhouse/click-ui 0.0.237 → 0.0.239

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.
@@ -9651,10 +9651,15 @@ const Alert = ({
9651
9651
  type = "default",
9652
9652
  showIcon = true,
9653
9653
  dismissible,
9654
+ onDismiss,
9654
9655
  customIcon,
9655
9656
  ...delegated
9656
9657
  }) => {
9657
9658
  const [isVisible, setIsVisible] = useState(true);
9659
+ const handleDismiss = useCallback(() => {
9660
+ setIsVisible(false);
9661
+ onDismiss == null ? void 0 : onDismiss();
9662
+ }, [onDismiss]);
9658
9663
  return isVisible ? /* @__PURE__ */ jsxs(Wrapper$c, { $size: size2, $state: state, $type: type, "data-testid": "click-alert", ...delegated, children: [
9659
9664
  dismissible && type === "banner" && /* @__PURE__ */ jsx(DismissWrapper$1, {}),
9660
9665
  showIcon && /* @__PURE__ */ jsx(IconWrapper$2, { $state: state, $size: size2, $type: type, children: /* @__PURE__ */ jsx(StyledIcon, { $size: size2, size: "sm", "aria-hidden": true, name: customIcon || stateIconMap[state] }) }),
@@ -9662,7 +9667,7 @@ const Alert = ({
9662
9667
  title && /* @__PURE__ */ jsx(Title$4, { $size: size2, children: title }),
9663
9668
  /* @__PURE__ */ jsx(Text$1, { $size: size2, children: text2 })
9664
9669
  ] }),
9665
- dismissible && /* @__PURE__ */ jsx(DismissWrapper$1, { "data-testid": "click-alert-dismiss-button", onClick: () => setIsVisible(false), children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
9670
+ dismissible && /* @__PURE__ */ jsx(DismissWrapper$1, { "data-testid": "click-alert-dismiss-button", onClick: handleDismiss, children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
9666
9671
  ] }) : null;
9667
9672
  };
9668
9673
  const Wrapper$c = pt.div.withConfig({
@@ -9704,18 +9709,13 @@ const StyledIcon = pt(SvgImage).withConfig({
9704
9709
  `);
9705
9710
  const TextWrapper = pt.div.withConfig({
9706
9711
  componentId: "sc-1wvczk0-3"
9707
- })(["display:flex;flex-flow:column;word-break:break-word;", ""], ({
9712
+ })(["display:flex;flex-flow:column;word-break:break-word;", " a,a:focus,a:visited,a:hover{font:inherit;color:inherit;text-decoration:underline;}"], ({
9708
9713
  $size,
9709
9714
  theme: theme2
9710
9715
  }) => `
9711
9716
  gap: ${theme2.click.alert[$size].space.gap};
9712
9717
  padding: ${theme2.click.alert[$size].space.y} ${theme2.click.alert[$size].space.x};
9713
- a {
9714
- font: inherit;
9715
- color: inherit;
9716
- text-decoration: underline;
9717
- }
9718
- `);
9718
+ `);
9719
9719
  const Title$4 = pt.h6.withConfig({
9720
9720
  componentId: "sc-1wvczk0-4"
9721
9721
  })(["margin:0;font:", ";"], ({
@@ -45031,10 +45031,10 @@ const global$4 = {
45031
45031
  yellow: "#eef400",
45032
45032
  violet: "#BB33FF",
45033
45033
  babyblue: "#00CBEB",
45034
+ red: "#ff2323",
45034
45035
  teal: "#089B83",
45035
45036
  sunrise: "#FFC300",
45036
- slate: "#9a9ea7",
45037
- red: "#ff2323"
45037
+ slate: "#9a9ea7"
45038
45038
  },
45039
45039
  "default": {
45040
45040
  blue: "#437EEF",
@@ -45044,10 +45044,10 @@ const global$4 = {
45044
45044
  yellow: "#eef400",
45045
45045
  violet: "#BB33FF",
45046
45046
  babyblue: "#00CBEB",
45047
+ red: "#ff2323",
45047
45048
  teal: "#089B83",
45048
45049
  sunrise: "#FFC300",
45049
- slate: "#9a9ea7",
45050
- red: "#ff2323"
45050
+ slate: "#9a9ea7"
45051
45051
  },
45052
45052
  label: {
45053
45053
  "default": "#161517",
@@ -46906,7 +46906,7 @@ const global$3 = {
46906
46906
  yellow: "#eef400",
46907
46907
  violet: "#BB33FF",
46908
46908
  babyblue: "#00CBEB",
46909
- danger: "#ff2323",
46909
+ red: "#ff2323",
46910
46910
  teal: "#6DF8E1",
46911
46911
  sunrise: "#FFC300",
46912
46912
  slate: "#9a9ea7"
@@ -46919,6 +46919,7 @@ const global$3 = {
46919
46919
  yellow: "#eef400",
46920
46920
  violet: "#BB33FF",
46921
46921
  babyblue: "#00CBEB",
46922
+ red: "#ff2323",
46922
46923
  danger: "#ff2323",
46923
46924
  teal: "#6DF8E1",
46924
46925
  sunrise: "#FFC300",
@@ -48772,10 +48773,10 @@ const global$2 = {
48772
48773
  yellow: "#eef400",
48773
48774
  violet: "#BB33FF",
48774
48775
  babyblue: "#00CBEB",
48776
+ red: "#ff2323",
48775
48777
  teal: "#089B83",
48776
48778
  sunrise: "#FFC300",
48777
- slate: "#9a9ea7",
48778
- red: "#ff2323"
48779
+ slate: "#9a9ea7"
48779
48780
  },
48780
48781
  "default": {
48781
48782
  blue: "#437EEF",
@@ -48785,10 +48786,11 @@ const global$2 = {
48785
48786
  yellow: "#eef400",
48786
48787
  violet: "#BB33FF",
48787
48788
  babyblue: "#00CBEB",
48789
+ red: "#ff2323",
48790
+ danger: "#ff2323",
48788
48791
  teal: "#089B83",
48789
48792
  sunrise: "#FFC300",
48790
- slate: "#9a9ea7",
48791
- red: "#ff2323"
48793
+ slate: "#9a9ea7"
48792
48794
  },
48793
48795
  label: {
48794
48796
  "default": "#161517",
@@ -49152,8 +49154,8 @@ const click = {
49152
49154
  muted: `400 0.875rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
49153
49155
  },
49154
49156
  title: {
49155
- "default": `700 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
49156
- muted: `700 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
49157
+ "default": `600 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
49158
+ muted: `600 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
49157
49159
  }
49158
49160
  }
49159
49161
  },
@@ -50357,7 +50359,7 @@ const click = {
50357
50359
  titles: {
50358
50360
  lg: `600 2rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
50359
50361
  md: `700 1.25rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
50360
- sm: `700 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
50362
+ sm: `600 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
50361
50363
  },
50362
50364
  text: {
50363
50365
  "default": `400 0.875rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
@@ -52230,11 +52232,10 @@ const global$1 = {
52230
52232
  yellow: "#eef400",
52231
52233
  violet: "#BB33FF",
52232
52234
  babyblue: "#00CBEB",
52233
- danger: "#ff2323",
52235
+ red: "#ff2323",
52234
52236
  teal: "#089B83",
52235
52237
  sunrise: "#FFC300",
52236
- slate: "#9a9ea7",
52237
- red: "#ff2323"
52238
+ slate: "#9a9ea7"
52238
52239
  },
52239
52240
  "default": {
52240
52241
  blue: "#437EEF",
@@ -52244,11 +52245,11 @@ const global$1 = {
52244
52245
  yellow: "#eef400",
52245
52246
  violet: "#BB33FF",
52246
52247
  babyblue: "#00CBEB",
52248
+ red: "#ff2323",
52247
52249
  danger: "#ff2323",
52248
52250
  teal: "#089B83",
52249
52251
  sunrise: "#FFC300",
52250
- slate: "#9a9ea7",
52251
- red: "#ff2323"
52252
+ slate: "#9a9ea7"
52252
52253
  },
52253
52254
  label: {
52254
52255
  "default": "#161517",
@@ -52488,7 +52489,8 @@ const typography = {
52488
52489
  "1": "0.75rem",
52489
52490
  "2": "0.875rem",
52490
52491
  "3": "1rem",
52491
- "4": "1.25rem",
52492
+ "4": "1.125rem",
52493
+ "5": "1.25rem",
52492
52494
  "6": "2rem",
52493
52495
  base: "16px"
52494
52496
  },
@@ -52505,7 +52507,7 @@ const typography = {
52505
52507
  xs: `600 0.75rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
52506
52508
  sm: `600 0.875rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
52507
52509
  md: `600 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
52508
- lg: `700 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
52510
+ lg: `700 1.125rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
52509
52511
  xl: `700 1.25rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
52510
52512
  "2xl": `600 2rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
52511
52513
  },