@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.
@@ -8455,10 +8455,15 @@ const Alert = ({
8455
8455
  type = "default",
8456
8456
  showIcon = true,
8457
8457
  dismissible,
8458
+ onDismiss,
8458
8459
  customIcon,
8459
8460
  ...delegated
8460
8461
  }) => {
8461
8462
  const [isVisible, setIsVisible] = useState(true);
8463
+ const handleDismiss = useCallback(() => {
8464
+ setIsVisible(false);
8465
+ onDismiss == null ? void 0 : onDismiss();
8466
+ }, [onDismiss]);
8462
8467
  return isVisible ? /* @__PURE__ */ jsxs(Wrapper$c, { $size: size2, $state: state, $type: type, "data-testid": "click-alert", ...delegated, children: [
8463
8468
  dismissible && type === "banner" && /* @__PURE__ */ jsx(DismissWrapper$1, {}),
8464
8469
  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] }) }),
@@ -8466,7 +8471,7 @@ const Alert = ({
8466
8471
  title && /* @__PURE__ */ jsx(Title$4, { $size: size2, children: title }),
8467
8472
  /* @__PURE__ */ jsx(Text$1, { $size: size2, children: text2 })
8468
8473
  ] }),
8469
- dismissible && /* @__PURE__ */ jsx(DismissWrapper$1, { "data-testid": "click-alert-dismiss-button", onClick: () => setIsVisible(false), children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
8474
+ dismissible && /* @__PURE__ */ jsx(DismissWrapper$1, { "data-testid": "click-alert-dismiss-button", onClick: handleDismiss, children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
8470
8475
  ] }) : null;
8471
8476
  };
8472
8477
  const Wrapper$c = styled.div.withConfig({
@@ -8508,18 +8513,13 @@ const StyledIcon = styled(SvgImage).withConfig({
8508
8513
  `);
8509
8514
  const TextWrapper = styled.div.withConfig({
8510
8515
  componentId: "sc-1wvczk0-3"
8511
- })(["display:flex;flex-flow:column;word-break:break-word;", ""], ({
8516
+ })(["display:flex;flex-flow:column;word-break:break-word;", " a,a:focus,a:visited,a:hover{font:inherit;color:inherit;text-decoration:underline;}"], ({
8512
8517
  $size,
8513
8518
  theme: theme2
8514
8519
  }) => `
8515
8520
  gap: ${theme2.click.alert[$size].space.gap};
8516
8521
  padding: ${theme2.click.alert[$size].space.y} ${theme2.click.alert[$size].space.x};
8517
- a {
8518
- font: inherit;
8519
- color: inherit;
8520
- text-decoration: underline;
8521
- }
8522
- `);
8522
+ `);
8523
8523
  const Title$4 = styled.h6.withConfig({
8524
8524
  componentId: "sc-1wvczk0-4"
8525
8525
  })(["margin:0;font:", ";"], ({
@@ -43863,10 +43863,10 @@ const global$4 = {
43863
43863
  yellow: "#eef400",
43864
43864
  violet: "#BB33FF",
43865
43865
  babyblue: "#00CBEB",
43866
+ red: "#ff2323",
43866
43867
  teal: "#089B83",
43867
43868
  sunrise: "#FFC300",
43868
- slate: "#9a9ea7",
43869
- red: "#ff2323"
43869
+ slate: "#9a9ea7"
43870
43870
  },
43871
43871
  "default": {
43872
43872
  blue: "#437EEF",
@@ -43876,10 +43876,10 @@ const global$4 = {
43876
43876
  yellow: "#eef400",
43877
43877
  violet: "#BB33FF",
43878
43878
  babyblue: "#00CBEB",
43879
+ red: "#ff2323",
43879
43880
  teal: "#089B83",
43880
43881
  sunrise: "#FFC300",
43881
- slate: "#9a9ea7",
43882
- red: "#ff2323"
43882
+ slate: "#9a9ea7"
43883
43883
  },
43884
43884
  label: {
43885
43885
  "default": "#161517",
@@ -45738,7 +45738,7 @@ const global$3 = {
45738
45738
  yellow: "#eef400",
45739
45739
  violet: "#BB33FF",
45740
45740
  babyblue: "#00CBEB",
45741
- danger: "#ff2323",
45741
+ red: "#ff2323",
45742
45742
  teal: "#6DF8E1",
45743
45743
  sunrise: "#FFC300",
45744
45744
  slate: "#9a9ea7"
@@ -45751,6 +45751,7 @@ const global$3 = {
45751
45751
  yellow: "#eef400",
45752
45752
  violet: "#BB33FF",
45753
45753
  babyblue: "#00CBEB",
45754
+ red: "#ff2323",
45754
45755
  danger: "#ff2323",
45755
45756
  teal: "#6DF8E1",
45756
45757
  sunrise: "#FFC300",
@@ -47604,10 +47605,10 @@ const global$2 = {
47604
47605
  yellow: "#eef400",
47605
47606
  violet: "#BB33FF",
47606
47607
  babyblue: "#00CBEB",
47608
+ red: "#ff2323",
47607
47609
  teal: "#089B83",
47608
47610
  sunrise: "#FFC300",
47609
- slate: "#9a9ea7",
47610
- red: "#ff2323"
47611
+ slate: "#9a9ea7"
47611
47612
  },
47612
47613
  "default": {
47613
47614
  blue: "#437EEF",
@@ -47617,10 +47618,11 @@ const global$2 = {
47617
47618
  yellow: "#eef400",
47618
47619
  violet: "#BB33FF",
47619
47620
  babyblue: "#00CBEB",
47621
+ red: "#ff2323",
47622
+ danger: "#ff2323",
47620
47623
  teal: "#089B83",
47621
47624
  sunrise: "#FFC300",
47622
- slate: "#9a9ea7",
47623
- red: "#ff2323"
47625
+ slate: "#9a9ea7"
47624
47626
  },
47625
47627
  label: {
47626
47628
  "default": "#161517",
@@ -47984,8 +47986,8 @@ const click = {
47984
47986
  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;`
47985
47987
  },
47986
47988
  title: {
47987
- "default": `700 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
47988
- muted: `700 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
47989
+ "default": `600 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
47990
+ muted: `600 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
47989
47991
  }
47990
47992
  }
47991
47993
  },
@@ -49189,7 +49191,7 @@ const click = {
49189
49191
  titles: {
49190
49192
  lg: `600 2rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
49191
49193
  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;`,
49192
- sm: `700 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
49194
+ sm: `600 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
49193
49195
  },
49194
49196
  text: {
49195
49197
  "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;`
@@ -51062,11 +51064,10 @@ const global$1 = {
51062
51064
  yellow: "#eef400",
51063
51065
  violet: "#BB33FF",
51064
51066
  babyblue: "#00CBEB",
51065
- danger: "#ff2323",
51067
+ red: "#ff2323",
51066
51068
  teal: "#089B83",
51067
51069
  sunrise: "#FFC300",
51068
- slate: "#9a9ea7",
51069
- red: "#ff2323"
51070
+ slate: "#9a9ea7"
51070
51071
  },
51071
51072
  "default": {
51072
51073
  blue: "#437EEF",
@@ -51076,11 +51077,11 @@ const global$1 = {
51076
51077
  yellow: "#eef400",
51077
51078
  violet: "#BB33FF",
51078
51079
  babyblue: "#00CBEB",
51080
+ red: "#ff2323",
51079
51081
  danger: "#ff2323",
51080
51082
  teal: "#089B83",
51081
51083
  sunrise: "#FFC300",
51082
- slate: "#9a9ea7",
51083
- red: "#ff2323"
51084
+ slate: "#9a9ea7"
51084
51085
  },
51085
51086
  label: {
51086
51087
  "default": "#161517",
@@ -51320,7 +51321,8 @@ const typography = {
51320
51321
  "1": "0.75rem",
51321
51322
  "2": "0.875rem",
51322
51323
  "3": "1rem",
51323
- "4": "1.25rem",
51324
+ "4": "1.125rem",
51325
+ "5": "1.25rem",
51324
51326
  "6": "2rem",
51325
51327
  base: "16px"
51326
51328
  },
@@ -51337,7 +51339,7 @@ const typography = {
51337
51339
  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;`,
51338
51340
  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;`,
51339
51341
  md: `600 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
51340
- lg: `700 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
51342
+ 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;`,
51341
51343
  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;`,
51342
51344
  "2xl": `600 2rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
51343
51345
  },