@clickhouse/click-ui 0.0.165 → 0.0.167

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.
@@ -38627,11 +38627,15 @@ const TableRow = styled.tr.withConfig({
38627
38627
  theme: theme2,
38628
38628
  $isDeleted,
38629
38629
  $isDisabled,
38630
+ $isActive,
38630
38631
  $rowHeight
38631
38632
  }) => `
38632
38633
  ${$rowHeight ? `height: ${$rowHeight};` : ""}
38633
38634
  background-color: ${theme2.click.table.row.color.background.default};
38634
38635
  border-bottom: ${theme2.click.table.cell.stroke} solid ${theme2.click.table.row.color.stroke.default};
38636
+
38637
+ ${$isActive && `background-color: ${theme2.click.table.row.color.background.active};`}
38638
+
38635
38639
  &:active {
38636
38640
  background-color: ${theme2.click.table.row.color.background.active};
38637
38641
  }
@@ -38754,6 +38758,7 @@ const TableBodyRow = ({
38754
38758
  onDelete,
38755
38759
  onEdit,
38756
38760
  isDeleted,
38761
+ isActive,
38757
38762
  isDisabled,
38758
38763
  size: size2,
38759
38764
  actionsList,
@@ -38762,7 +38767,7 @@ const TableBodyRow = ({
38762
38767
  }) => {
38763
38768
  const isDeletable = typeof onDelete === "function";
38764
38769
  const isEditable = typeof onEdit === "function";
38765
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow, { $isSelectable: isSelectable, $isDeleted: isDeleted, $isDisabled: isDisabled, $showActions: isDeletable || isEditable, $rowHeight: rowHeight, ...rowProps, children: [
38770
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow, { $isSelectable: isSelectable, $isDeleted: isDeleted, $isDisabled: isDisabled, $isActive: isActive, $showActions: isDeletable || isEditable, $rowHeight: rowHeight, ...rowProps, children: [
38766
38771
  isSelectable && /* @__PURE__ */ jsxRuntimeExports.jsx(SelectData, { $size: size2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { checked: isSelected, onCheckedChange: onSelect }) }),
38767
38772
  items.map(({
38768
38773
  label,
@@ -43553,6 +43558,9 @@ const global$3 = {
43553
43558
  foreground: "#1d1d1d",
43554
43559
  background: "#FAFF69"
43555
43560
  }
43561
+ },
43562
+ icon: {
43563
+ background: "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);"
43556
43564
  }
43557
43565
  }
43558
43566
  };
@@ -44072,7 +44080,7 @@ const click$1 = {
44072
44080
  background: {
44073
44081
  "default": "#ffffff",
44074
44082
  hover: "#f6f7fa",
44075
- active: "#f6f7fa",
44083
+ active: "#ffffff",
44076
44084
  disabled: "#dfdfdf"
44077
44085
  },
44078
44086
  title: {
@@ -44985,7 +44993,8 @@ const global$2 = {
44985
44993
  "default": "#ffffff",
44986
44994
  muted: "#f6f7fa",
44987
44995
  sidebar: "#ffffff",
44988
- split: "#f6f7fa"
44996
+ split: "#f6f7fa",
44997
+ muted_a: "lch(49.8 30.5 277 / 0.06)"
44989
44998
  },
44990
44999
  text: {
44991
45000
  "default": "#161517",
@@ -45048,6 +45057,9 @@ const global$2 = {
45048
45057
  foreground: "#135be6",
45049
45058
  background: "#dae6fc"
45050
45059
  }
45060
+ },
45061
+ icon: {
45062
+ background: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
45051
45063
  }
45052
45064
  }
45053
45065
  };
@@ -46004,7 +46016,7 @@ const click = {
46004
46016
  background: {
46005
46017
  "default": "#ffffff",
46006
46018
  hover: "#f6f7fa",
46007
- active: "#f6f7fa",
46019
+ active: "#ffffff",
46008
46020
  disabled: "#dfdfdf"
46009
46021
  },
46010
46022
  title: {
@@ -47886,7 +47898,8 @@ const global$1 = {
47886
47898
  "default": "#ffffff",
47887
47899
  muted: "#f6f7fa",
47888
47900
  sidebar: "#ffffff",
47889
- split: "#f6f7fa"
47901
+ split: "#f6f7fa",
47902
+ muted_a: "lch(49.8 30.5 277 / 0.06)"
47890
47903
  },
47891
47904
  text: {
47892
47905
  "default": "#161517",
@@ -47949,6 +47962,9 @@ const global$1 = {
47949
47962
  foreground: "#135be6",
47950
47963
  background: "#dae6fc"
47951
47964
  }
47965
+ },
47966
+ icon: {
47967
+ background: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
47952
47968
  }
47953
47969
  }
47954
47970
  };
@@ -47994,7 +48010,8 @@ const palette = {
47994
48010
  "700": "#53575f",
47995
48011
  "800": "#302e32",
47996
48012
  "900": "#161517",
47997
- base: "#373439"
48013
+ base: "#373439",
48014
+ "50a": "lch(49.8 30.5 277 / 0.06)"
47998
48015
  },
47999
48016
  indigo: {
48000
48017
  "50": "#f4f1fc",
@@ -48065,6 +48082,8 @@ const palette = {
48065
48082
  },
48066
48083
  gradients: {
48067
48084
  base: "linear-gradient(229.65deg, #292924 15.78%, #0F0F0F 88.39%)",
48085
+ yellowToblack: "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);",
48086
+ whiteToblack: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);",
48068
48087
  transparent: "rgba(0,0,0,0)"
48069
48088
  },
48070
48089
  utility: {
@@ -38644,11 +38644,15 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
38644
38644
  theme: theme2,
38645
38645
  $isDeleted,
38646
38646
  $isDisabled,
38647
+ $isActive,
38647
38648
  $rowHeight
38648
38649
  }) => `
38649
38650
  ${$rowHeight ? `height: ${$rowHeight};` : ""}
38650
38651
  background-color: ${theme2.click.table.row.color.background.default};
38651
38652
  border-bottom: ${theme2.click.table.cell.stroke} solid ${theme2.click.table.row.color.stroke.default};
38653
+
38654
+ ${$isActive && `background-color: ${theme2.click.table.row.color.background.active};`}
38655
+
38652
38656
  &:active {
38653
38657
  background-color: ${theme2.click.table.row.color.background.active};
38654
38658
  }
@@ -38771,6 +38775,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
38771
38775
  onDelete,
38772
38776
  onEdit,
38773
38777
  isDeleted,
38778
+ isActive,
38774
38779
  isDisabled,
38775
38780
  size: size2,
38776
38781
  actionsList,
@@ -38779,7 +38784,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
38779
38784
  }) => {
38780
38785
  const isDeletable = typeof onDelete === "function";
38781
38786
  const isEditable = typeof onEdit === "function";
38782
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow, { $isSelectable: isSelectable, $isDeleted: isDeleted, $isDisabled: isDisabled, $showActions: isDeletable || isEditable, $rowHeight: rowHeight, ...rowProps, children: [
38787
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow, { $isSelectable: isSelectable, $isDeleted: isDeleted, $isDisabled: isDisabled, $isActive: isActive, $showActions: isDeletable || isEditable, $rowHeight: rowHeight, ...rowProps, children: [
38783
38788
  isSelectable && /* @__PURE__ */ jsxRuntimeExports.jsx(SelectData, { $size: size2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { checked: isSelected, onCheckedChange: onSelect }) }),
38784
38789
  items.map(({
38785
38790
  label,
@@ -43570,6 +43575,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
43570
43575
  foreground: "#1d1d1d",
43571
43576
  background: "#FAFF69"
43572
43577
  }
43578
+ },
43579
+ icon: {
43580
+ background: "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);"
43573
43581
  }
43574
43582
  }
43575
43583
  };
@@ -44089,7 +44097,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
44089
44097
  background: {
44090
44098
  "default": "#ffffff",
44091
44099
  hover: "#f6f7fa",
44092
- active: "#f6f7fa",
44100
+ active: "#ffffff",
44093
44101
  disabled: "#dfdfdf"
44094
44102
  },
44095
44103
  title: {
@@ -45002,7 +45010,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
45002
45010
  "default": "#ffffff",
45003
45011
  muted: "#f6f7fa",
45004
45012
  sidebar: "#ffffff",
45005
- split: "#f6f7fa"
45013
+ split: "#f6f7fa",
45014
+ muted_a: "lch(49.8 30.5 277 / 0.06)"
45006
45015
  },
45007
45016
  text: {
45008
45017
  "default": "#161517",
@@ -45065,6 +45074,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
45065
45074
  foreground: "#135be6",
45066
45075
  background: "#dae6fc"
45067
45076
  }
45077
+ },
45078
+ icon: {
45079
+ background: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
45068
45080
  }
45069
45081
  }
45070
45082
  };
@@ -46021,7 +46033,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
46021
46033
  background: {
46022
46034
  "default": "#ffffff",
46023
46035
  hover: "#f6f7fa",
46024
- active: "#f6f7fa",
46036
+ active: "#ffffff",
46025
46037
  disabled: "#dfdfdf"
46026
46038
  },
46027
46039
  title: {
@@ -47903,7 +47915,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
47903
47915
  "default": "#ffffff",
47904
47916
  muted: "#f6f7fa",
47905
47917
  sidebar: "#ffffff",
47906
- split: "#f6f7fa"
47918
+ split: "#f6f7fa",
47919
+ muted_a: "lch(49.8 30.5 277 / 0.06)"
47907
47920
  },
47908
47921
  text: {
47909
47922
  "default": "#161517",
@@ -47966,6 +47979,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
47966
47979
  foreground: "#135be6",
47967
47980
  background: "#dae6fc"
47968
47981
  }
47982
+ },
47983
+ icon: {
47984
+ background: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
47969
47985
  }
47970
47986
  }
47971
47987
  };
@@ -48011,7 +48027,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
48011
48027
  "700": "#53575f",
48012
48028
  "800": "#302e32",
48013
48029
  "900": "#161517",
48014
- base: "#373439"
48030
+ base: "#373439",
48031
+ "50a": "lch(49.8 30.5 277 / 0.06)"
48015
48032
  },
48016
48033
  indigo: {
48017
48034
  "50": "#f4f1fc",
@@ -48082,6 +48099,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
48082
48099
  },
48083
48100
  gradients: {
48084
48101
  base: "linear-gradient(229.65deg, #292924 15.78%, #0F0F0F 88.39%)",
48102
+ yellowToblack: "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);",
48103
+ whiteToblack: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);",
48085
48104
  transparent: "rgba(0,0,0,0)"
48086
48105
  },
48087
48106
  utility: {
@@ -19,6 +19,7 @@ export interface TableRowType extends Omit<HTMLAttributes<HTMLTableRowElement>,
19
19
  items: Array<TableCellType>;
20
20
  isDisabled?: boolean;
21
21
  isDeleted?: boolean;
22
+ isActive?: boolean;
22
23
  }
23
24
  interface CommonTableProps extends Omit<HTMLAttributes<HTMLTableElement>, "children" | "onSelect"> {
24
25
  headers: Array<TableHeaderType>;
@@ -18,7 +18,7 @@ import { ContextMenuProps } from '@radix-ui/react-context-menu';
18
18
  import { CheckboxProps } from './Checkbox/Checkbox';
19
19
  import { CardPrimaryProps } from './CardPrimary/CardPrimary';
20
20
  import { CardSecondaryProps, BadgeState } from './CardSecondary/CardSecondary';
21
- import { ButtonProps } from './Button/Button';
21
+ import { ButtonProps, ButtonType } from './Button/Button';
22
22
  import { ButtonGroupProps } from './ButtonGroup/ButtonGroup';
23
23
  import { BadgeProps } from './Badge/Badge';
24
24
  import { AvatarProps } from './Avatar/Avatar';
@@ -62,7 +62,7 @@ export type { AlertProps };
62
62
  export type { AvatarProps };
63
63
  export type { BadgeProps };
64
64
  export type { ButtonGroupProps };
65
- export type { ButtonProps };
65
+ export type { ButtonProps, ButtonType };
66
66
  export type { CardSecondaryProps, BadgeState };
67
67
  export type { CardPrimaryProps };
68
68
  export type { CheckboxProps };
@@ -2823,6 +2823,7 @@ export interface Theme {
2823
2823
  "muted": string;
2824
2824
  "sidebar": string;
2825
2825
  "split": string;
2826
+ "muted_a": string;
2826
2827
  };
2827
2828
  "text": {
2828
2829
  "default": string;
@@ -2886,6 +2887,9 @@ export interface Theme {
2886
2887
  "background": string;
2887
2888
  };
2888
2889
  };
2890
+ "icon": {
2891
+ "background": string;
2892
+ };
2889
2893
  };
2890
2894
  };
2891
2895
  "palette": {
@@ -2931,6 +2935,7 @@ export interface Theme {
2931
2935
  "800": string;
2932
2936
  "900": string;
2933
2937
  "base": string;
2938
+ "50a": string;
2934
2939
  };
2935
2940
  "indigo": {
2936
2941
  "50": string;
@@ -3001,6 +3006,8 @@ export interface Theme {
3001
3006
  };
3002
3007
  "gradients": {
3003
3008
  "base": string;
3009
+ "yellowToblack": string;
3010
+ "whiteToblack": string;
3004
3011
  "transparent": string;
3005
3012
  };
3006
3013
  "utility": {
@@ -1486,6 +1486,9 @@ declare const _default: {
1486
1486
  "foreground": "#1d1d1d",
1487
1487
  "background": "#FAFF69"
1488
1488
  }
1489
+ },
1490
+ "icon": {
1491
+ "background": "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);"
1489
1492
  }
1490
1493
  }
1491
1494
  }
@@ -940,7 +940,7 @@ declare const _default: {
940
940
  "background": {
941
941
  "default": "#ffffff",
942
942
  "hover": "#f6f7fa",
943
- "active": "#f6f7fa",
943
+ "active": "#ffffff",
944
944
  "disabled": "#dfdfdf"
945
945
  },
946
946
  "title": {
@@ -2822,7 +2822,8 @@ declare const _default: {
2822
2822
  "default": "#ffffff",
2823
2823
  "muted": "#f6f7fa",
2824
2824
  "sidebar": "#ffffff",
2825
- "split": "#f6f7fa"
2825
+ "split": "#f6f7fa",
2826
+ "muted_a": "lch(49.8 30.5 277 / 0.06)"
2826
2827
  },
2827
2828
  "text": {
2828
2829
  "default": "#161517",
@@ -2885,6 +2886,9 @@ declare const _default: {
2885
2886
  "foreground": "#135be6",
2886
2887
  "background": "#dae6fc"
2887
2888
  }
2889
+ },
2890
+ "icon": {
2891
+ "background": "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
2888
2892
  }
2889
2893
  }
2890
2894
  },
@@ -2930,7 +2934,8 @@ declare const _default: {
2930
2934
  "700": "#53575f",
2931
2935
  "800": "#302e32",
2932
2936
  "900": "#161517",
2933
- "base": "#373439"
2937
+ "base": "#373439",
2938
+ "50a": "lch(49.8 30.5 277 / 0.06)"
2934
2939
  },
2935
2940
  "indigo": {
2936
2941
  "50": "#f4f1fc",
@@ -3001,6 +3006,8 @@ declare const _default: {
3001
3006
  },
3002
3007
  "gradients": {
3003
3008
  "base": "linear-gradient(229.65deg, #292924 15.78%, #0F0F0F 88.39%)",
3009
+ "yellowToblack": "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);",
3010
+ "whiteToblack": "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);",
3004
3011
  "transparent": "rgba(0,0,0,0)"
3005
3012
  },
3006
3013
  "utility": {
@@ -503,7 +503,7 @@ declare const _default: {
503
503
  "background": {
504
504
  "default": "#ffffff",
505
505
  "hover": "#f6f7fa",
506
- "active": "#f6f7fa",
506
+ "active": "#ffffff",
507
507
  "disabled": "#dfdfdf"
508
508
  },
509
509
  "title": {
@@ -1416,7 +1416,8 @@ declare const _default: {
1416
1416
  "default": "#ffffff",
1417
1417
  "muted": "#f6f7fa",
1418
1418
  "sidebar": "#ffffff",
1419
- "split": "#f6f7fa"
1419
+ "split": "#f6f7fa",
1420
+ "muted_a": "lch(49.8 30.5 277 / 0.06)"
1420
1421
  },
1421
1422
  "text": {
1422
1423
  "default": "#161517",
@@ -1479,6 +1480,9 @@ declare const _default: {
1479
1480
  "foreground": "#135be6",
1480
1481
  "background": "#dae6fc"
1481
1482
  }
1483
+ },
1484
+ "icon": {
1485
+ "background": "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
1482
1486
  }
1483
1487
  }
1484
1488
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.165",
3
+ "version": "0.0.167",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",