@cronocode/react-box 3.0.21 → 3.1.2

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 (56) hide show
  1. package/box.d.ts +6 -1
  2. package/box.mjs +4 -4
  3. package/components/baseSvg.cjs +1 -1
  4. package/components/baseSvg.d.ts +1 -1
  5. package/components/button.cjs +1 -1
  6. package/components/checkbox.cjs +1 -1
  7. package/components/dataGrid/components/dataGridBody.d.ts +7 -0
  8. package/components/dataGrid/components/dataGridBottomBar.d.ts +6 -0
  9. package/components/dataGrid/components/dataGridCellRowSelection.d.ts +6 -0
  10. package/components/dataGrid/components/dataGridCellText.d.ts +6 -0
  11. package/components/dataGrid/components/dataGridColumnGroups.d.ts +1 -1
  12. package/components/dataGrid/components/dataGridContent.d.ts +6 -0
  13. package/components/dataGrid/components/dataGridHeader.d.ts +6 -0
  14. package/components/dataGrid/components/dataGridHeaderCellContextMenu.d.ts +6 -0
  15. package/components/dataGrid/components/dataGridHeaderCellResizer.d.ts +6 -0
  16. package/components/dataGrid/components/dataGridPagination.d.ts +1 -1
  17. package/components/dataGrid/components/dataGridTopBar.d.ts +6 -0
  18. package/components/dataGrid/components/dataGridTopBarContextMenu.d.ts +6 -0
  19. package/components/dataGrid/contracts/dataGridContract.d.ts +22 -1
  20. package/components/dataGrid/models/cellModel.d.ts +1 -1
  21. package/components/dataGrid/models/columnModel.d.ts +5 -2
  22. package/components/dataGrid/models/gridModel.d.ts +16 -8
  23. package/components/dataGrid/models/groupRowModel.d.ts +2 -1
  24. package/components/dataGrid/models/rowModel.d.ts +7 -6
  25. package/components/dataGrid.cjs +1 -1
  26. package/components/dataGrid.d.ts +1 -1
  27. package/components/dataGrid.mjs +560 -604
  28. package/components/dropdown.cjs +1 -1
  29. package/components/dropdown.mjs +112 -136
  30. package/components/flex.cjs +1 -1
  31. package/components/form.cjs +1 -1
  32. package/components/form.mjs +1 -1
  33. package/components/grid.cjs +1 -1
  34. package/components/radioButton.cjs +1 -1
  35. package/components/radioButton.mjs +10 -10
  36. package/components/semantics.d.ts +25 -25
  37. package/components/semantics.mjs +1 -1
  38. package/components/textarea.cjs +1 -1
  39. package/components/textbox.cjs +1 -1
  40. package/components/tooltip.cjs +1 -1
  41. package/components/tooltip.d.ts +6 -3
  42. package/components/tooltip.mjs +34 -34
  43. package/core/boxStyles.d.ts +28 -4
  44. package/core/boxStylesFormatters.d.ts +1 -1
  45. package/core/coreTypes.d.ts +1 -1
  46. package/core/extends/boxComponents.d.ts +196 -19
  47. package/core/extends/useComponents.d.ts +1 -1
  48. package/core.cjs +3 -3
  49. package/core.mjs +477 -307
  50. package/icons/expandIcon.d.ts +2 -0
  51. package/icons/sortIcon.d.ts +2 -0
  52. package/package.json +24 -14
  53. package/ssg.cjs +1 -1
  54. package/ssg.mjs +17 -16
  55. package/utils/object/objectUtils.d.ts +2 -2
  56. package/icons/arrowIcon.d.ts +0 -2
@@ -1,7 +1,7 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { forwardRef as e } from "react";
3
3
  import r from "../box.mjs";
4
- import { f as a } from "../core.mjs";
4
+ import { e as a } from "../core.mjs";
5
5
  function o(t) {
6
6
  const n = e((s, c) => /* @__PURE__ */ i(r, { tag: t, ref: c, component: t, ...s }));
7
7
  return n.displayName = a.capitalize(t), n;
@@ -1 +1 @@
1
- "use strict";const o=require("react/jsx-runtime"),n=require("react"),s=require("../box.cjs"),c=require("../core.cjs"),u=["name","onInput","onChange","placeholder","value","defaultValue","rows","cols","autoFocus","maxLength","minLength","readOnly"];function l(t,a){const r=c.ObjectUtils.buildProps(t,u);return o.jsx(s.default,{ref:a,tag:"textarea",component:"textarea",...r})}const e=n.forwardRef(l);e.displayName="Textarea";module.exports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),n=require("react"),u=require("../box.cjs"),s=require("../core.cjs"),l=["name","onInput","onChange","placeholder","value","defaultValue","rows","cols","autoFocus","maxLength","minLength","readOnly"];function c(t,a){const r=s.ObjectUtils.buildProps(t,l);return o.jsx(u.default,{ref:a,tag:"textarea",component:"textarea",...r})}const e=n.forwardRef(c);e.displayName="Textarea";exports.default=e;
@@ -1 +1 @@
1
- "use strict";const n=require("react/jsx-runtime"),s=require("react"),u=require("../box.cjs"),a=require("../core.cjs"),c=["name","onInput","onChange","type","placeholder","defaultValue","autoFocus","readOnly","required","value","pattern"];function i(t,o){const r=a.ObjectUtils.buildProps(t,c);return n.jsx(u.default,{ref:o,tag:"input",component:"textbox",...r})}const e=s.forwardRef(i);e.displayName="Textbox";module.exports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),u=require("react"),a=require("../box.cjs"),s=require("../core.cjs"),l=["name","onInput","onChange","type","placeholder","defaultValue","autoFocus","readOnly","required","value","pattern"];function c(t,o){const r=s.ObjectUtils.buildProps(t,l);return n.jsx(a.default,{ref:o,tag:"input",component:"textbox",...r})}const e=u.forwardRef(c);e.displayName="Textbox";exports.default=e;
@@ -1 +1 @@
1
- "use strict";const i=require("react/jsx-runtime"),C=require("react-dom"),d=require("../box.cjs"),s=require("react"),R=require("../core.cjs"),c=2;function j(f,b){const{onPositionChange:a}=f,l=s.useRef(null),[t,h]=s.useState(),x=R.usePortalContainer(),g=s.useCallback((r,e)=>{const n=p=>{p.target.contains(r)&&e(r)},o=new AbortController;return document.addEventListener("scroll",n,{signal:o.signal,capture:!0}),()=>o.abort()},[t]),m=s.useCallback((r,e)=>{const n=p=>{e(r)},o=new AbortController;return window.addEventListener("resize",n,{signal:o.signal,capture:!0}),()=>o.abort()},[t]),u=s.useCallback(r=>{const e=r.getBoundingClientRect(),n=Math.round((e.top+window.scrollY)*c)/c,o=Math.round((e.left+window.scrollX)*c)/c;((t==null?void 0:t.top)!==n||(t==null?void 0:t.left)!==o)&&(a==null||a({top:n,left:o}),h({top:n,left:o,width:e.width>0?e.width:void 0}))},[t]);return s.useLayoutEffect(()=>{if(l.current){u(l.current);const r=g(l.current,u),e=m(l.current,u);return()=>{r(),e()}}},[t]),i.jsxs(i.Fragment,{children:[i.jsx(d.default,{ref:l}),t&&C.createPortal(i.jsx(d.default,{ref:b,position:"absolute",top:0,left:0,transition:"none",style:{transform:`translate(${t.left}px,${t.top}px)`,width:t.width},children:i.jsx(d.default,{position:"absolute",width:"fit",...f})}),x)]})}const w=s.forwardRef(j);w.displayName="Tooltip";module.exports=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),s=require("react"),v=require("react-dom"),u=require("../box.cjs"),R=require("../core.cjs"),c=2;function j(f,w){const{onPositionChange:b,...g}=f,i=s.useRef(null),[t,h]=s.useState(),C=R.usePortalContainer(),m=s.useCallback((n,e)=>{const r=d=>{d.target.contains(n)&&e(n)},o=new AbortController;return document.addEventListener("scroll",r,{signal:o.signal,capture:!0}),()=>o.abort()},[t]),x=s.useCallback((n,e)=>{const r=d=>{e(n)},o=new AbortController;return window.addEventListener("resize",r,{signal:o.signal,capture:!0}),()=>o.abort()},[t]),a=s.useCallback(n=>{const e=n.getBoundingClientRect(),r=Math.round((e.top+window.scrollY)*c)/c,o=Math.round((e.left+window.scrollX)*c)/c;(t?.top!==r||t?.left!==o)&&(b?.({top:r,left:o}),h({top:r,left:o,width:e.width>0?e.width:void 0}))},[t]);return s.useLayoutEffect(()=>{if(i.current){a(i.current);const n=m(i.current,a),e=x(i.current,a);return()=>{n(),e()}}},[t]),l.jsxs(l.Fragment,{children:[l.jsx(u.default,{ref:i}),t&&v.createPortal(l.jsx(u.default,{ref:w,position:"absolute",top:0,left:0,transition:"none",style:{transform:`translate(${t.left}px,${t.top}px)`,width:t.width},children:l.jsx(u.default,{...g})}),C)]})}const p=s.forwardRef(j);p.displayName="Tooltip";exports.default=p;
@@ -1,9 +1,12 @@
1
+ import { RefAttributes } from 'react';
1
2
  import { BoxProps } from '../box';
2
- interface Props extends BoxProps {
3
+ import { ExtractElementFromTag } from '../core/coreTypes';
4
+ import { ComponentsAndVariants } from '../types';
5
+ interface TooltipProps {
3
6
  onPositionChange?(position: {
4
7
  top: number;
5
8
  left: number;
6
9
  }): void;
7
10
  }
8
- declare const Tooltip: import('react').ForwardRefExoticComponent<Omit<Props, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
9
- export default Tooltip;
11
+ declare const _default: <TTag extends keyof React.JSX.IntrinsicElements = "div", TKey extends keyof ComponentsAndVariants = never>(props: BoxProps<TTag, TKey> & RefAttributes<ExtractElementFromTag<TTag>> & TooltipProps) => React.ReactNode;
12
+ export default _default;
@@ -1,61 +1,61 @@
1
- import { jsxs as x, Fragment as C, jsx as a } from "react/jsx-runtime";
2
- import { createPortal as v } from "react-dom";
3
- import u from "../box.mjs";
4
- import { forwardRef as R, useRef as y, useState as z, useCallback as d, useLayoutEffect as A } from "react";
5
- import { g as D } from "../core.mjs";
1
+ import { jsxs as x, Fragment as v, jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as P, useRef as R, useState as y, useCallback as c, useLayoutEffect as z } from "react";
3
+ import { createPortal as A } from "react-dom";
4
+ import p from "../box.mjs";
5
+ import { f as D } from "../core.mjs";
6
6
  const i = 2;
7
- function E(f, m) {
8
- const { onPositionChange: l } = f, s = y(null), [t, w] = z(), b = D(), g = d(
9
- (r, o) => {
10
- const n = (p) => {
11
- p.target.contains(r) && o(r);
12
- }, e = new AbortController();
13
- return document.addEventListener("scroll", n, { signal: e.signal, capture: !0 }), () => e.abort();
7
+ function E(d, f) {
8
+ const { onPositionChange: m, ...w } = d, s = R(null), [t, g] = y(), h = D(), b = c(
9
+ (e, o) => {
10
+ const n = (u) => {
11
+ u.target.contains(e) && o(e);
12
+ }, r = new AbortController();
13
+ return document.addEventListener("scroll", n, { signal: r.signal, capture: !0 }), () => r.abort();
14
14
  },
15
15
  [t]
16
- ), h = d(
17
- (r, o) => {
18
- const n = (p) => {
19
- o(r);
20
- }, e = new AbortController();
21
- return window.addEventListener("resize", n, { signal: e.signal, capture: !0 }), () => e.abort();
16
+ ), C = c(
17
+ (e, o) => {
18
+ const n = (u) => {
19
+ o(e);
20
+ }, r = new AbortController();
21
+ return window.addEventListener("resize", n, { signal: r.signal, capture: !0 }), () => r.abort();
22
22
  },
23
23
  [t]
24
- ), c = d(
25
- (r) => {
26
- const o = r.getBoundingClientRect(), n = Math.round((o.top + window.scrollY) * i) / i, e = Math.round((o.left + window.scrollX) * i) / i;
27
- ((t == null ? void 0 : t.top) !== n || (t == null ? void 0 : t.left) !== e) && (l == null || l({ top: n, left: e }), w({ top: n, left: e, width: o.width > 0 ? o.width : void 0 }));
24
+ ), l = c(
25
+ (e) => {
26
+ const o = e.getBoundingClientRect(), n = Math.round((o.top + window.scrollY) * i) / i, r = Math.round((o.left + window.scrollX) * i) / i;
27
+ (t?.top !== n || t?.left !== r) && (m?.({ top: n, left: r }), g({ top: n, left: r, width: o.width > 0 ? o.width : void 0 }));
28
28
  },
29
29
  [t]
30
30
  );
31
- return A(() => {
31
+ return z(() => {
32
32
  if (s.current) {
33
- c(s.current);
34
- const r = g(s.current, c), o = h(s.current, c);
33
+ l(s.current);
34
+ const e = b(s.current, l), o = C(s.current, l);
35
35
  return () => {
36
- r(), o();
36
+ e(), o();
37
37
  };
38
38
  }
39
- }, [t]), /* @__PURE__ */ x(C, { children: [
40
- /* @__PURE__ */ a(u, { ref: s }),
41
- t && v(
39
+ }, [t]), /* @__PURE__ */ x(v, { children: [
40
+ /* @__PURE__ */ a(p, { ref: s }),
41
+ t && A(
42
42
  /* @__PURE__ */ a(
43
- u,
43
+ p,
44
44
  {
45
- ref: m,
45
+ ref: f,
46
46
  position: "absolute",
47
47
  top: 0,
48
48
  left: 0,
49
49
  transition: "none",
50
50
  style: { transform: `translate(${t.left}px,${t.top}px)`, width: t.width },
51
- children: /* @__PURE__ */ a(u, { position: "absolute", width: "fit", ...f })
51
+ children: /* @__PURE__ */ a(p, { ...w })
52
52
  }
53
53
  ),
54
- b
54
+ h
55
55
  )
56
56
  ] });
57
57
  }
58
- const H = R(E);
58
+ const H = P(E);
59
59
  H.displayName = "Tooltip";
60
60
  export {
61
61
  H as default
@@ -404,7 +404,7 @@ export declare const cssStyles: {
404
404
  } | {
405
405
  styleName: string;
406
406
  values: readonly ["font-size"];
407
- valueFormat: (value: string) => string;
407
+ valueFormat: () => string;
408
408
  })[];
409
409
  /** The list-style CSS shorthand property allows you to set all the list style properties at once. */
410
410
  listStyle: {
@@ -674,6 +674,11 @@ export declare const cssStyles: {
674
674
  values: readonly [50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1000];
675
675
  valueFormat: (value: number) => string;
676
676
  }[];
677
+ /** The transition-timing-function CSS property sets how intermediate values are calculated for CSS properties being affected by a transition effect. */
678
+ transitionTimingFunction: {
679
+ styleName: string;
680
+ values: readonly ["linear", "ease", "ease-in", "ease-in-out", "ease-out"];
681
+ }[];
677
682
  /** The user-select CSS property controls whether the user can select text. This doesn't have any effect on content loaded as part of a browser's user interface (its chrome), except in textboxes. */
678
683
  userSelect: {
679
684
  styleName: string;
@@ -754,53 +759,68 @@ export declare const cssStyles: {
754
759
  styleName: string;
755
760
  values: number;
756
761
  }[];
762
+ /** The color CSS property sets the foreground color value of an element's text and text decorations, and sets the currentcolor value. */
757
763
  color: {
758
764
  values: Variables.ColorType[];
759
765
  valueFormat: (value: string, getVariableValue: (name: string) => string) => string;
760
766
  }[];
767
+ /** The background-color CSS property sets the background color of an element. */
761
768
  bgColor: {
762
769
  values: Variables.ColorType[];
763
770
  valueFormat: (value: string, getVariableValue: (name: string) => string) => string;
764
771
  styleName: string;
765
772
  }[];
773
+ /** The border-color shorthand CSS property sets the color of an element's border. */
766
774
  borderColor: {
767
775
  values: Variables.ColorType[];
768
776
  valueFormat: (value: string, getVariableValue: (name: string) => string) => string;
769
777
  styleName: string;
770
778
  }[];
779
+ /** The outline-color CSS property sets the color of an element's outline. */
771
780
  outlineColor: {
772
781
  values: Variables.ColorType[];
773
782
  valueFormat: (value: string, getVariableValue: (name: string) => string) => string;
774
783
  styleName: string;
775
784
  }[];
785
+ /** The fill CSS property defines how SVG text content and the interior canvas of SVG shapes are filled or painted. If present, it overrides the element's fill attribute. */
776
786
  fill: {
777
787
  values: Variables.ColorType[];
778
788
  valueFormat: (value: string, getVariableValue: (name: string) => string) => string;
779
789
  }[];
790
+ /** The stroke CSS property defines the color or SVG paint server used to draw an element's stroke. */
780
791
  stroke: {
781
792
  values: Variables.ColorType[];
782
793
  valueFormat: (value: string, getVariableValue: (name: string) => string) => string;
783
794
  }[];
795
+ /** The background-image CSS property sets one or more background images on an element. */
784
796
  bgImage: {
785
797
  values: readonly ["none", "bg-img-checked", "bg-img-indeterminate", "bg-img-radio"];
786
798
  valueFormat: (value: string, getVariableValue: (name: string) => string) => string;
787
799
  styleName: string;
788
800
  }[];
801
+ /** The box-shadow CSS property adds shadow effects around an element's frame */
789
802
  shadow: {
790
- values: readonly ["small-shadow", "medium-shadow", "large-shadow"];
803
+ values: readonly ["small", "medium", "large"];
791
804
  valueFormat: (value: string, getVariableValue: (name: string) => string) => string;
792
805
  styleName: string;
793
806
  }[];
807
+ /** The translateY() CSS function repositions an element vertically on the 2D plane. */
794
808
  translateX: {
795
809
  values: number;
796
810
  valueFormat: (value: number) => string;
797
811
  styleName: string;
798
812
  }[];
813
+ /** The translateY() CSS function repositions an element vertically on the 2D plane. */
799
814
  translateY: {
800
815
  values: number;
801
816
  valueFormat: (value: number) => string;
802
817
  styleName: string;
803
818
  }[];
819
+ /** The content CSS property replaces content with a generated value. It can be used to define what is rendered inside an element or pseudo-element. */
820
+ content: {
821
+ values: readonly ["empty"];
822
+ valueFormat: () => string;
823
+ }[];
804
824
  };
805
825
  export declare const pseudo1: {
806
826
  hover: string;
@@ -815,6 +835,8 @@ export declare const pseudo1: {
815
835
  hasChecked: string;
816
836
  hasRequired: string;
817
837
  hasDisabled: string;
838
+ before: string;
839
+ after: string;
818
840
  };
819
841
  export declare const pseudo2: {
820
842
  indeterminate: string;
@@ -842,10 +864,12 @@ export declare const pseudoClasses: {
842
864
  hasChecked: string;
843
865
  hasRequired: string;
844
866
  hasDisabled: string;
867
+ before: string;
868
+ after: string;
845
869
  };
846
- export declare const pseudoClassesWeight: Record<"theme" | "indeterminate" | "checked" | "required" | "disabled" | "selected" | "hover" | "focus" | "hasFocus" | "active" | "valid" | "hasValid" | "invalid" | "hasInvalid" | "optional" | "hasChecked" | "hasRequired" | "hasDisabled", number>;
870
+ export declare const pseudoClassesWeight: Record<"theme" | "indeterminate" | "checked" | "required" | "disabled" | "selected" | "hover" | "focus" | "hasFocus" | "active" | "valid" | "hasValid" | "invalid" | "hasInvalid" | "optional" | "hasChecked" | "hasRequired" | "hasDisabled" | "before" | "after", number>;
847
871
  export declare const pseudoClassesByWeight: {
848
- [key: number]: ("theme" | "indeterminate" | "checked" | "required" | "disabled" | "selected" | "hover" | "focus" | "hasFocus" | "active" | "valid" | "hasValid" | "invalid" | "hasInvalid" | "optional" | "hasChecked" | "hasRequired" | "hasDisabled")[];
872
+ [key: number]: ("theme" | "indeterminate" | "checked" | "required" | "disabled" | "selected" | "hover" | "focus" | "hasFocus" | "active" | "valid" | "hasValid" | "invalid" | "hasInvalid" | "optional" | "hasChecked" | "hasRequired" | "hasDisabled" | "before" | "after")[];
849
873
  };
850
874
  export declare const pseudoGroupClasses: {
851
875
  hoverGroup: "hover";
@@ -4,7 +4,7 @@ export declare namespace BoxStylesFormatters {
4
4
  function svg(selector: string): string[];
5
5
  }
6
6
  namespace Value {
7
- function rem(value: number, _fn?: Function, divider?: number): string;
7
+ function rem(value: number, _fn?: () => void, divider?: number): string;
8
8
  function px(value: number): string;
9
9
  function fraction(value: string): string;
10
10
  function widthHeight(key: string, value: string): string;
@@ -1,4 +1,4 @@
1
- export type BoxStylesType<T> = T extends ReadonlyArray<infer U> ? T[number] : T;
1
+ export type BoxStylesType<T> = T extends ReadonlyArray<unknown> ? T[number] : T;
2
2
  export type ExtractElementType<T> = T extends React.DetailedHTMLProps<React.HTMLAttributes<infer E>, infer E> ? E : T extends React.SVGProps<infer E> ? E : never;
3
3
  export type ExtractElementFromTag<T extends keyof React.JSX.IntrinsicElements> = ExtractElementType<React.JSX.IntrinsicElements[T]>;
4
4
  interface BoxStyleArrayString {
@@ -1,7 +1,7 @@
1
1
  import { BoxComponentStyles } from '../../types';
2
2
  export interface BoxComponent {
3
3
  clean?: boolean;
4
- styles: BoxComponentStyles;
4
+ styles?: BoxComponentStyles;
5
5
  variants?: Record<string, BoxComponentStyles>;
6
6
  children?: Record<string, BoxComponent>;
7
7
  }
@@ -65,6 +65,28 @@ declare const boxComponents: {
65
65
  borderColor: "gray-300";
66
66
  };
67
67
  };
68
+ variants: {
69
+ hover: {
70
+ position: "relative";
71
+ overflow: "hidden";
72
+ b: number;
73
+ before: {
74
+ position: "absolute";
75
+ top: number;
76
+ left: number;
77
+ width: number;
78
+ height: "fit";
79
+ bgColor: "violet-700";
80
+ content: "empty";
81
+ transitionDuration: 300;
82
+ };
83
+ hover: {
84
+ before: {
85
+ width: "fit";
86
+ };
87
+ };
88
+ };
89
+ };
68
90
  };
69
91
  textbox: {
70
92
  styles: {
@@ -154,6 +176,9 @@ declare const boxComponents: {
154
176
  borderColor: "gray-300";
155
177
  };
156
178
  };
179
+ variants: {
180
+ datagrid: {};
181
+ };
157
182
  };
158
183
  radioButton: {
159
184
  styles: {
@@ -240,7 +265,7 @@ declare const boxComponents: {
240
265
  maxHeight: number;
241
266
  borderColor: "violet-300";
242
267
  color: "violet-950";
243
- shadow: "medium-shadow";
268
+ shadow: "medium";
244
269
  };
245
270
  };
246
271
  item: {
@@ -333,12 +358,13 @@ declare const boxComponents: {
333
358
  datagrid: {
334
359
  styles: {
335
360
  b: number;
361
+ bgColor: "white";
336
362
  borderColor: "gray-400";
337
363
  overflow: "hidden";
338
364
  borderRadius: number;
339
365
  };
340
366
  children: {
341
- columnGroups: {
367
+ topBar: {
342
368
  styles: {
343
369
  p: number;
344
370
  bb: number;
@@ -346,28 +372,88 @@ declare const boxComponents: {
346
372
  color: "gray-400";
347
373
  gap: number;
348
374
  ai: "center";
349
- height: number;
350
375
  };
351
376
  children: {
352
- item: {
377
+ contextMenu: {
378
+ clean: true;
379
+ styles: {
380
+ cursor: "pointer";
381
+ p: number;
382
+ hover: {
383
+ bgColor: "gray-200";
384
+ borderRadius: number;
385
+ };
386
+ };
387
+ children: {
388
+ tooltip: {
389
+ styles: {
390
+ bgColor: "white";
391
+ width: number;
392
+ b: number;
393
+ borderColor: "gray-300";
394
+ borderRadius: number;
395
+ display: "flex";
396
+ d: "column";
397
+ mt: number;
398
+ py: number;
399
+ translateX: number;
400
+ shadow: "medium";
401
+ overflow: "auto";
402
+ maxHeight: number;
403
+ };
404
+ children: {
405
+ item: {
406
+ clean: true;
407
+ styles: {
408
+ display: "flex";
409
+ gap: number;
410
+ p: number;
411
+ cursor: "pointer";
412
+ hover: {
413
+ bgColor: "gray-200";
414
+ };
415
+ };
416
+ };
417
+ };
418
+ };
419
+ };
420
+ };
421
+ columnGroups: {
353
422
  styles: {
354
423
  gap: number;
355
424
  ai: "center";
356
- b: number;
357
- borderColor: "gray-400";
358
- bgColor: "gray-100";
359
- borderRadius: number;
360
- py: number;
361
- pl: number;
362
- pr: number;
363
- color: "violet-950";
364
425
  };
365
426
  children: {
366
427
  icon: {
367
428
  styles: {
429
+ color: "violet-950";
368
430
  width: number;
369
- color: "gray-400";
370
- cursor: "pointer";
431
+ };
432
+ };
433
+ separator: {
434
+ styles: {};
435
+ };
436
+ item: {
437
+ styles: {
438
+ gap: number;
439
+ ai: "center";
440
+ b: number;
441
+ borderColor: "gray-400";
442
+ bgColor: "gray-100";
443
+ borderRadius: number;
444
+ py: number;
445
+ pl: number;
446
+ pr: number;
447
+ color: "violet-950";
448
+ };
449
+ children: {
450
+ icon: {
451
+ styles: {
452
+ width: number;
453
+ color: "gray-400";
454
+ cursor: "pointer";
455
+ };
456
+ };
371
457
  };
372
458
  };
373
459
  };
@@ -381,6 +467,7 @@ declare const boxComponents: {
381
467
  width: "max-content";
382
468
  minWidth: "fit";
383
469
  zIndex: 1;
470
+ bgColor: "gray-200";
384
471
  };
385
472
  variants: {
386
473
  isResizeMode: {
@@ -390,7 +477,6 @@ declare const boxComponents: {
390
477
  children: {
391
478
  cell: {
392
479
  styles: {
393
- bgColor: "gray-200";
394
480
  borderColor: "gray-400";
395
481
  bb: number;
396
482
  minHeight: number;
@@ -403,6 +489,7 @@ declare const boxComponents: {
403
489
  isPinned: {
404
490
  position: "sticky";
405
491
  zIndex: 2;
492
+ bgColor: "gray-200";
406
493
  };
407
494
  isFirstLeftPinned: {};
408
495
  isLastLeftPinned: {
@@ -416,18 +503,96 @@ declare const boxComponents: {
416
503
  cursor: "pointer";
417
504
  };
418
505
  };
506
+ children: {
507
+ contextMenu: {
508
+ clean: true;
509
+ styles: {
510
+ width: number;
511
+ height: number;
512
+ cursor: "pointer";
513
+ userSelect: "none";
514
+ borderRadius: number;
515
+ borderColor: "gray-200";
516
+ display: "flex";
517
+ jc: "center";
518
+ ai: "center";
519
+ transition: "none";
520
+ bgColor: "gray-200";
521
+ hover: {
522
+ bgColor: "gray-300";
523
+ };
524
+ };
525
+ children: {
526
+ icon: {
527
+ styles: {};
528
+ };
529
+ tooltip: {
530
+ styles: {
531
+ bgColor: "white";
532
+ width: number;
533
+ b: number;
534
+ borderColor: "gray-300";
535
+ borderRadius: number;
536
+ display: "flex";
537
+ d: "column";
538
+ mt: number;
539
+ py: number;
540
+ overflow: "hidden";
541
+ translateX: number;
542
+ shadow: "medium";
543
+ };
544
+ variants: {
545
+ openLeft: {
546
+ translateX: number;
547
+ };
548
+ };
549
+ children: {
550
+ item: {
551
+ clean: true;
552
+ styles: {
553
+ display: "flex";
554
+ gap: number;
555
+ p: number;
556
+ cursor: "pointer";
557
+ hover: {
558
+ bgColor: "gray-200";
559
+ };
560
+ };
561
+ children: {
562
+ icon: {
563
+ styles: {
564
+ width: number;
565
+ color: "violet-950";
566
+ };
567
+ };
568
+ };
569
+ };
570
+ };
571
+ };
572
+ };
573
+ };
574
+ resizer: {
575
+ styles: {
576
+ width: number;
577
+ height: "fit";
578
+ bgColor: "gray-400";
579
+ hoverGroup: {
580
+ resizer: {
581
+ bgColor: "gray-600";
582
+ };
583
+ };
584
+ };
585
+ };
586
+ };
419
587
  };
420
588
  };
421
589
  };
422
590
  cell: {
423
591
  styles: {
424
- bgColor: "gray-100";
425
592
  bb: number;
426
593
  borderColor: "gray-400";
427
594
  transition: "none";
428
595
  ai: "center";
429
- overflow: "hidden";
430
- minHeight: number;
431
596
  hoverGroup: {
432
597
  'grid-row': {
433
598
  bgColor: "gray-200";
@@ -437,10 +602,13 @@ declare const boxComponents: {
437
602
  variants: {
438
603
  isRowNumber: {
439
604
  bgColor: "gray-200";
605
+ jc: "right";
440
606
  };
441
607
  isRowSelection: {};
442
608
  isPinned: {
443
609
  position: "sticky";
610
+ bgColor: "gray-100";
611
+ zIndex: 1;
444
612
  };
445
613
  isFirstLeftPinned: {};
446
614
  isLastLeftPinned: {
@@ -452,6 +620,15 @@ declare const boxComponents: {
452
620
  isLastRightPinned: {};
453
621
  };
454
622
  };
623
+ bottomBar: {
624
+ styles: {
625
+ p: number;
626
+ bgColor: "gray-200";
627
+ bt: number;
628
+ borderColor: "gray-400";
629
+ gap: number;
630
+ };
631
+ };
455
632
  };
456
633
  };
457
634
  };
@@ -1,2 +1,2 @@
1
- import { BoxStyleProps, BoxComponentStyles, ComponentsAndVariants } from '../../types';
1
+ import { BoxComponentStyles, BoxStyleProps, ComponentsAndVariants } from '../../types';
2
2
  export default function useComponents<TKey extends keyof ComponentsAndVariants = never>(props: BoxStyleProps<TKey>): BoxComponentStyles | undefined;