@cronocode/react-box 1.6.7 → 1.6.8

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 (43) hide show
  1. package/components/baseSvg.cjs +1 -1
  2. package/components/baseSvg.mjs +1 -4
  3. package/components/button.cjs +1 -1
  4. package/components/button.d.ts +1 -0
  5. package/components/button.mjs +7 -10
  6. package/components/checkbox.cjs +1 -1
  7. package/components/checkbox.mjs +4 -7
  8. package/components/dataGrid/dataGridContract.d.ts +1 -0
  9. package/components/dataGrid.cjs +1 -1
  10. package/components/dataGrid.d.ts +1 -1
  11. package/components/dataGrid.mjs +2 -32
  12. package/components/dox/doxStyles.d.ts +9 -0
  13. package/components/dox.cjs +2 -2
  14. package/components/dox.d.ts +6 -4
  15. package/components/dox.mjs +23 -24
  16. package/components/doxSvg.cjs +1 -1
  17. package/components/doxSvg.d.ts +1 -0
  18. package/components/doxSvg.mjs +4 -7
  19. package/components/flex.d.ts +4 -2
  20. package/components/form.cjs +1 -1
  21. package/components/form.d.ts +2 -1
  22. package/components/form.mjs +4 -15
  23. package/components/grid.cjs +1 -1
  24. package/components/grid.d.ts +4 -2
  25. package/components/grid.mjs +5 -8
  26. package/components/radioButton.cjs +1 -1
  27. package/components/radioButton.mjs +2 -5
  28. package/components/textarea.cjs +1 -1
  29. package/components/textarea.mjs +7 -10
  30. package/components/textbox.cjs +1 -1
  31. package/components/textbox.mjs +6 -9
  32. package/components/tooltip.cjs +1 -1
  33. package/components/tooltip.d.ts +1 -1
  34. package/components/tooltip.mjs +5 -63
  35. package/package.json +14 -14
  36. package/plugins.cjs +1 -209
  37. package/plugins.mjs +0 -219
  38. package/style.css +1 -1
  39. package/theme.cjs +1 -1
  40. package/theme.mjs +8 -10
  41. package/types.d.ts +9 -0
  42. package/utils/utils.cjs +1 -1
  43. package/utils/utils.mjs +53 -63
@@ -1,9 +1,9 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as a } from "react";
3
3
  import n from "./dox.mjs";
4
- import { O as s } from "../utils/utils.mjs";
4
+ import { O as m } from "../utils/utils.mjs";
5
5
  import "../theme.mjs";
6
- const m = [
6
+ const s = [
7
7
  "name",
8
8
  "onInput",
9
9
  "onChange",
@@ -19,11 +19,8 @@ const m = [
19
19
  "readOnly",
20
20
  "required"
21
21
  ];
22
- function p(t, e) {
23
- const o = s.buildProps(t, m);
24
- return /* @__PURE__ */ r(n, { ref: e, tag: "textarea", component: "textarea", ...o });
22
+ function i(o, e) {
23
+ const r = m.buildProps(o, s);
24
+ return /* @__PURE__ */ t(n, { ref: e, tag: "textarea", component: "textarea", ...r });
25
25
  }
26
- const f = a(p);
27
- export {
28
- f as default
29
- };
26
+ a(i);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("react"),u=require("./dox.cjs"),a=require("../utils/utils.cjs");require("../theme.cjs");const s=["name","onInput","onChange","type","placeholder","disabled","defaultValue","autoFocus","readOnly","required","value","pattern"];function i(e,t){const o=a.ObjectUtils.buildProps(e,s);return r.jsx(u.default,{ref:t,tag:"input",component:"textbox",...o})}const c=n.forwardRef(i);exports.default=c;
1
+ "use strict";const n=require("react/jsx-runtime"),o=require("react"),u=require("./dox.cjs"),s=require("../utils/utils.cjs");require("../theme.cjs");const a=["name","onInput","onChange","type","placeholder","disabled","defaultValue","autoFocus","readOnly","required","value","pattern"];function i(e,t){const r=s.ObjectUtils.buildProps(e,a);return n.jsx(u.default,{ref:t,tag:"input",component:"textbox",...r})}o.forwardRef(i);
@@ -1,9 +1,9 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as n } from "react";
3
3
  import a from "./dox.mjs";
4
4
  import { O as p } from "../utils/utils.mjs";
5
5
  import "../theme.mjs";
6
- const s = [
6
+ const i = [
7
7
  "name",
8
8
  "onInput",
9
9
  "onChange",
@@ -17,11 +17,8 @@ const s = [
17
17
  "value",
18
18
  "pattern"
19
19
  ];
20
- function u(o, t) {
21
- const e = p.buildProps(o, s);
22
- return /* @__PURE__ */ r(a, { ref: t, tag: "input", component: "textbox", ...e });
20
+ function m(o, t) {
21
+ const r = p.buildProps(o, i);
22
+ return /* @__PURE__ */ e(a, { ref: t, tag: "input", component: "textbox", ...r });
23
23
  }
24
- const x = n(u);
25
- export {
26
- x as default
27
- };
24
+ n(m);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),b=require("react-dom"),d=require("./dox.cjs"),s=require("react"),h=require("../utils/utils.cjs");require("../theme.cjs");const l=2;function x(f){const{onPositionChange:u}=f,i=s.useRef(null),[e,p]=s.useState(),w=h.usePortalContainer(),m=s.useCallback((n,t)=>{const r=o=>{o.target.contains(n)&&t(n)};return document.addEventListener("scroll",r,{capture:!0}),()=>{document.removeEventListener("scroll",r,{capture:!0})}},[e]),v=s.useCallback((n,t)=>{const r=o=>{t(n)};return window.addEventListener("resize",r,{capture:!0}),()=>{window.removeEventListener("resize",r,{capture:!0})}},[e]),a=s.useCallback(n=>{const t=n.getBoundingClientRect(),r=Math.round((t.top+window.scrollY)*l)/l,o=Math.round((t.left+window.scrollX)*l)/l;((e==null?void 0:e.top)!==r||(e==null?void 0:e.left)!==o)&&(u==null||u({top:r,left:o}),p({top:r,left:o,width:t.width>0?t.width:void 0}))},[e]);return s.useLayoutEffect(()=>{if(i.current){a(i.current);const n=m(i.current,a),t=v(i.current,a);return()=>{n(),t()}}},[e]),c.jsxs(c.Fragment,{children:[c.jsx(d.default,{ref:i}),e&&b.createPortal(c.jsx(d.default,{position:"absolute",top:0,left:0,transition:"none",style:{transform:`translate(${e.left}px,${e.top}px)`,width:e.width},children:c.jsx(d.default,{position:"absolute",width:"fit",...f})}),w)]})}exports.default=x;
1
+ "use strict";require("react/jsx-runtime");require("react-dom");require("./dox.cjs");require("react");require("../utils/utils.cjs");require("../theme.cjs");
@@ -6,5 +6,5 @@ interface Props extends React.ComponentProps<typeof Box> {
6
6
  left: number;
7
7
  }): void;
8
8
  }
9
- export default function Tooltip(props: Props): JSX.Element;
9
+ export default function Tooltip(props: Props): import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -1,64 +1,6 @@
1
- import { jsxs as v, Fragment as x, jsx as a } from "react/jsx-runtime";
2
- import { createPortal as b } from "react-dom";
3
- import u from "./dox.mjs";
4
- import { useRef as E, useState as L, useCallback as d, useLayoutEffect as g } from "react";
5
- import { u as z } from "../utils/utils.mjs";
1
+ import "react/jsx-runtime";
2
+ import "react-dom";
3
+ import "./dox.mjs";
4
+ import "react";
5
+ import "../utils/utils.mjs";
6
6
  import "../theme.mjs";
7
- const i = 2;
8
- function M(f) {
9
- const { onPositionChange: c } = f, s = E(null), [t, p] = L(), m = z(), w = d(
10
- (o, e) => {
11
- const r = (n) => {
12
- n.target.contains(o) && e(o);
13
- };
14
- return document.addEventListener("scroll", r, { capture: !0 }), () => {
15
- document.removeEventListener("scroll", r, { capture: !0 });
16
- };
17
- },
18
- [t]
19
- ), h = d(
20
- (o, e) => {
21
- const r = (n) => {
22
- e(o);
23
- };
24
- return window.addEventListener("resize", r, { capture: !0 }), () => {
25
- window.removeEventListener("resize", r, { capture: !0 });
26
- };
27
- },
28
- [t]
29
- ), l = d(
30
- (o) => {
31
- const e = o.getBoundingClientRect(), r = Math.round((e.top + window.scrollY) * i) / i, n = Math.round((e.left + window.scrollX) * i) / i;
32
- ((t == null ? void 0 : t.top) !== r || (t == null ? void 0 : t.left) !== n) && (c == null || c({ top: r, left: n }), p({ top: r, left: n, width: e.width > 0 ? e.width : void 0 }));
33
- },
34
- [t]
35
- );
36
- return g(() => {
37
- if (s.current) {
38
- l(s.current);
39
- const o = w(s.current, l), e = h(s.current, l);
40
- return () => {
41
- o(), e();
42
- };
43
- }
44
- }, [t]), /* @__PURE__ */ v(x, { children: [
45
- /* @__PURE__ */ a(u, { ref: s }),
46
- t && b(
47
- /* @__PURE__ */ a(
48
- u,
49
- {
50
- position: "absolute",
51
- top: 0,
52
- left: 0,
53
- transition: "none",
54
- style: { transform: `translate(${t.left}px,${t.top}px)`, width: t.width },
55
- children: /* @__PURE__ */ a(u, { position: "absolute", width: "fit", ...f })
56
- }
57
- ),
58
- m
59
- )
60
- ] });
61
- }
62
- export {
63
- M as default
64
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronocode/react-box",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "main": "./box.cjs",
5
5
  "module": "./box.mjs",
6
6
  "types": "./box.d.ts",
@@ -59,26 +59,26 @@
59
59
  "@cronocode/identity-factory": "^0.0.6"
60
60
  },
61
61
  "devDependencies": {
62
- "@rollup/pluginutils": "^5.0.2",
63
- "@types/node": "^18.15.7",
64
- "@types/postcss-mixins": "^9.0.0",
62
+ "@rollup/pluginutils": "^5.1.0",
63
+ "@types/node": "^20.11.5",
64
+ "@types/postcss-mixins": "^9.0.5",
65
65
  "@types/prismjs": "^1.26.3",
66
- "@types/react": "^18.0.27",
67
- "@types/react-dom": "^18.0.10",
68
- "@vitejs/plugin-react": "^3.1.0",
69
- "autoprefixer": "^10.4.14",
70
- "postcss": "^8.4.21",
66
+ "@types/react": "^18.2.48",
67
+ "@types/react-dom": "^18.2.18",
68
+ "@vitejs/plugin-react": "^4.2.1",
69
+ "autoprefixer": "^10.4.17",
70
+ "postcss": "^8.4.33",
71
71
  "postcss-each": "^1.1.0",
72
72
  "postcss-mixins": "^9.0.4",
73
73
  "postcss-nested": "^6.0.1",
74
74
  "postcss-simple-vars": "^7.0.1",
75
- "prettier": "^2.8.7",
75
+ "prettier": "^3.2.4",
76
76
  "prismjs": "^1.29.0",
77
77
  "react": "^18.1.0",
78
78
  "react-dom": "^18.2.0",
79
- "react-router-dom": "^6.16.0",
80
- "typescript": "^5.0.2",
81
- "vite": "^4.2.1",
82
- "vite-plugin-dts": "^2.1.0"
79
+ "react-router-dom": "^6.21.3",
80
+ "typescript": "^5.3.3",
81
+ "vite": "^5.0.12",
82
+ "vite-plugin-dts": "^3.7.1"
83
83
  }
84
84
  }
package/plugins.cjs CHANGED
@@ -1,209 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(r){const _=Object.entries(r.colors).map(([o,l])=>`--color${o}: ${l};`).join(`
2
- `),t=Object.entries(r.shadows).map(([o,l])=>`--shadow${o}: ${l};`).join(`
3
- `),n=Object.entries(r.backgrounds).map(([o,l])=>`--background${o}: ${l};`).join(`
4
- `),e=[":root {"];_&&e.push(` ${_}`),t&&e.push(` ${t}`),n&&e.push(` ${n}`),e.push("}");const c=Object.keys(r.colors).map(o=>`
5
- .color_${o},
6
- .color_h_${o}:hover,
7
- ._h:hover>.color_h_${o} {
8
- color: var(--color${o});
9
- }
10
-
11
- .color_f_${o}:focus-within,
12
- ._f:focus-within>.color_f_${o} {
13
- color: var(--color${o});
14
- }
15
-
16
- .color_a_${o}:active {
17
- color: var(--color${o});
18
- }
19
-
20
- .bgColor_${o},
21
- .bgColor_h_${o}:hover,
22
- ._h:hover>.bgColor_h_${o} {
23
- background-color: var(--color${o});
24
- }
25
-
26
- .bgColor_f_${o}:focus-within,
27
- ._f:focus-within>.bgColor_f_${o} {
28
- background-color: var(--color${o});
29
- }
30
-
31
- .bgColor_a_${o}:active {
32
- background-color: var(--color${o});
33
- }
34
-
35
- .borderColor_${o},
36
- .borderColor_h_${o}:hover,
37
- ._h:hover>.borderColor_h_${o} {
38
- border-color: var(--color${o});
39
- }
40
-
41
- .borderColor_f_${o}:focus-within,
42
- ._f:focus-within>.borderColor_f_${o} {
43
- border-color: var(--color${o});
44
- }
45
-
46
- .borderColor_a_${o}:active {
47
- border-color: var(--color${o});
48
- }
49
-
50
- .outlineColor_${o},
51
- .outlineColor_h_${o}:hover,
52
- ._h:hover>.outlineColor_h_${o} {
53
- outline-color: var(--color${o});
54
- }
55
-
56
- .outlineColor_f_${o}:focus-within,
57
- ._f:focus-within>.outlineColor_f_${o} {
58
- outline-color: var(--color${o});
59
- }
60
-
61
- .outlineColor_a_${o}:active {
62
- outline-color: var(--color${o});
63
- }
64
-
65
- .fill_${o},
66
- .fill_h_${o}:hover,
67
- ._h:hover>.fill_h_${o} {
68
- path,
69
- circle,
70
- rect,
71
- line {
72
- fill: var(--color${o});
73
- }
74
- }
75
-
76
- .fill_f_${o}:focus-within,
77
- ._f:focus-within>.fill_f_${o} {
78
- path,
79
- circle,
80
- rect,
81
- line {
82
- fill: var(--color${o});
83
- }
84
- }
85
-
86
- .fill_a_${o}:active {
87
- path,
88
- circle,
89
- rect,
90
- line {
91
- fill: var(--color${o});
92
- }
93
- }
94
-
95
- .stroke_${o},
96
- .stroke_h_${o}:hover,
97
- ._h:hover>.stroke_h_${o} {
98
- path,
99
- circle,
100
- rect,
101
- line {
102
- stroke: var(--color${o});
103
- }
104
- }
105
-
106
- .stroke_f_${o}:focus-within,
107
- ._f:focus-within>.stroke_f_${o} {
108
- path,
109
- circle,
110
- rect,
111
- line {
112
- stroke: var(--color${o});
113
- }
114
- }
115
-
116
- .stroke_a_${o}:active {
117
- path,
118
- circle,
119
- rect,
120
- line {
121
- stroke: var(--color${o});
122
- }
123
- }`),i=Object.keys(r.shadows).map(o=>`
124
- .shadow_${o},
125
- .shadow_h_${o}:hover,
126
- ._h:hover>.shadow_h_${o} {
127
- box-shadow: var(--shadow${o});
128
- }
129
-
130
- .shadow_f_${o}:focus-within,
131
- ._f:focus-within>.shadow_f_${o} {
132
- box-shadow: var(--shadow${o});
133
- }
134
-
135
- .shadow_a_${o}:active {
136
- box-shadow: var(--shadow${o});
137
- }`),h=Object.keys(r.backgrounds).map(o=>`
138
- .bg_${o},
139
- .bg_h_${o}:hover,
140
- ._h:hover>.bg_h_${o} {
141
- background: var(--background${o});
142
- }
143
-
144
- .bg_f_${o}:focus-within,
145
- ._f:focus-within>.bg_f_${o} {
146
- background: var(--background${o});
147
- }
148
-
149
- .bg_a_${o}:active {
150
- background: var(--background${o});
151
- }`),$=Object.keys(r.colors).map(o=>`'${o}'`).join(" | "),s=Object.keys(r.backgrounds).map(o=>`'${o}'`).join(" | "),b=Object.keys(r.shadows).map(o=>`'${o}'`).join(" | "),p=`import '@cronocode/react-box';
152
-
153
- declare module '@cronocode/react-box/types' {
154
- type ColorType = ${$};
155
- type BackgroundType = ${s};
156
- type ShadowType = ${b};
157
-
158
- namespace Augmented {
159
- interface BoxProps {
160
- color?: ColorType;
161
- colorH?: ColorType;
162
- colorF?: ColorType;
163
- colorA?: ColorType;
164
- bgColor?: ColorType;
165
- bgColorH?: ColorType;
166
- bgColorF?: ColorType;
167
- bgColorA?: ColorType;
168
- backgroundColor?: ColorType;
169
- backgroundColorH?: ColorType;
170
- backgroundColorF?: ColorType;
171
- backgroundColorA?: ColorType;
172
- borderColor?: ColorType;
173
- borderColorH?: ColorType;
174
- borderColorF?: ColorType;
175
- borderColorA?: ColorType;
176
- outlineColor?: ColorType;
177
- outlineColorH?: ColorType;
178
- outlineColorF?: ColorType;
179
- outlineColorA?: ColorType;
180
- bg?: BackgroundType;
181
- bgH?: BackgroundType;
182
- bgF?: BackgroundType;
183
- bgA?: BackgroundType;
184
- background?: BackgroundType;
185
- backgroundH?: BackgroundType;
186
- backgroundF?: BackgroundType;
187
- backgroundA?: BackgroundType;
188
- shadow?: ShadowType;
189
- shadowH?: ShadowType;
190
- shadowF?: ShadowType;
191
- shadowA?: ShadowType;
192
- }
193
-
194
- interface SvgProps {
195
- fill?: ColorType;
196
- fillH?: ColorType;
197
- fillF?: ColorType;
198
- fillA?: ColorType;
199
- stroke?: ColorType;
200
- strokeH?: ColorType;
201
- strokeF?: ColorType;
202
- strokeA?: ColorType;
203
- }
204
- }
205
- }
206
- `;return{themeCss:[e.join(`
207
- `),...c,...i,...h].join(`
208
- `)+`
209
- `,boxDts:p}}exports.boxTheme=u;
1
+ "use strict";
package/plugins.mjs CHANGED
@@ -1,220 +1 @@
1
- function u(r) {
2
- const _ = Object.entries(r.colors).map(([o, e]) => `--color${o}: ${e};`).join(`
3
- `), t = Object.entries(r.shadows).map(([o, e]) => `--shadow${o}: ${e};`).join(`
4
- `), n = Object.entries(r.backgrounds).map(([o, e]) => `--background${o}: ${e};`).join(`
5
- `), l = [":root {"];
6
- _ && l.push(` ${_}`), t && l.push(` ${t}`), n && l.push(` ${n}`), l.push("}");
7
- const c = Object.keys(r.colors).map((o) => `
8
- .color_${o},
9
- .color_h_${o}:hover,
10
- ._h:hover>.color_h_${o} {
11
- color: var(--color${o});
12
- }
13
1
 
14
- .color_f_${o}:focus-within,
15
- ._f:focus-within>.color_f_${o} {
16
- color: var(--color${o});
17
- }
18
-
19
- .color_a_${o}:active {
20
- color: var(--color${o});
21
- }
22
-
23
- .bgColor_${o},
24
- .bgColor_h_${o}:hover,
25
- ._h:hover>.bgColor_h_${o} {
26
- background-color: var(--color${o});
27
- }
28
-
29
- .bgColor_f_${o}:focus-within,
30
- ._f:focus-within>.bgColor_f_${o} {
31
- background-color: var(--color${o});
32
- }
33
-
34
- .bgColor_a_${o}:active {
35
- background-color: var(--color${o});
36
- }
37
-
38
- .borderColor_${o},
39
- .borderColor_h_${o}:hover,
40
- ._h:hover>.borderColor_h_${o} {
41
- border-color: var(--color${o});
42
- }
43
-
44
- .borderColor_f_${o}:focus-within,
45
- ._f:focus-within>.borderColor_f_${o} {
46
- border-color: var(--color${o});
47
- }
48
-
49
- .borderColor_a_${o}:active {
50
- border-color: var(--color${o});
51
- }
52
-
53
- .outlineColor_${o},
54
- .outlineColor_h_${o}:hover,
55
- ._h:hover>.outlineColor_h_${o} {
56
- outline-color: var(--color${o});
57
- }
58
-
59
- .outlineColor_f_${o}:focus-within,
60
- ._f:focus-within>.outlineColor_f_${o} {
61
- outline-color: var(--color${o});
62
- }
63
-
64
- .outlineColor_a_${o}:active {
65
- outline-color: var(--color${o});
66
- }
67
-
68
- .fill_${o},
69
- .fill_h_${o}:hover,
70
- ._h:hover>.fill_h_${o} {
71
- path,
72
- circle,
73
- rect,
74
- line {
75
- fill: var(--color${o});
76
- }
77
- }
78
-
79
- .fill_f_${o}:focus-within,
80
- ._f:focus-within>.fill_f_${o} {
81
- path,
82
- circle,
83
- rect,
84
- line {
85
- fill: var(--color${o});
86
- }
87
- }
88
-
89
- .fill_a_${o}:active {
90
- path,
91
- circle,
92
- rect,
93
- line {
94
- fill: var(--color${o});
95
- }
96
- }
97
-
98
- .stroke_${o},
99
- .stroke_h_${o}:hover,
100
- ._h:hover>.stroke_h_${o} {
101
- path,
102
- circle,
103
- rect,
104
- line {
105
- stroke: var(--color${o});
106
- }
107
- }
108
-
109
- .stroke_f_${o}:focus-within,
110
- ._f:focus-within>.stroke_f_${o} {
111
- path,
112
- circle,
113
- rect,
114
- line {
115
- stroke: var(--color${o});
116
- }
117
- }
118
-
119
- .stroke_a_${o}:active {
120
- path,
121
- circle,
122
- rect,
123
- line {
124
- stroke: var(--color${o});
125
- }
126
- }`), i = Object.keys(r.shadows).map((o) => `
127
- .shadow_${o},
128
- .shadow_h_${o}:hover,
129
- ._h:hover>.shadow_h_${o} {
130
- box-shadow: var(--shadow${o});
131
- }
132
-
133
- .shadow_f_${o}:focus-within,
134
- ._f:focus-within>.shadow_f_${o} {
135
- box-shadow: var(--shadow${o});
136
- }
137
-
138
- .shadow_a_${o}:active {
139
- box-shadow: var(--shadow${o});
140
- }`), h = Object.keys(r.backgrounds).map((o) => `
141
- .bg_${o},
142
- .bg_h_${o}:hover,
143
- ._h:hover>.bg_h_${o} {
144
- background: var(--background${o});
145
- }
146
-
147
- .bg_f_${o}:focus-within,
148
- ._f:focus-within>.bg_f_${o} {
149
- background: var(--background${o});
150
- }
151
-
152
- .bg_a_${o}:active {
153
- background: var(--background${o});
154
- }`), $ = Object.keys(r.colors).map((o) => `'${o}'`).join(" | "), s = Object.keys(r.backgrounds).map((o) => `'${o}'`).join(" | "), b = Object.keys(r.shadows).map((o) => `'${o}'`).join(" | "), p = `import '@cronocode/react-box';
155
-
156
- declare module '@cronocode/react-box/types' {
157
- type ColorType = ${$};
158
- type BackgroundType = ${s};
159
- type ShadowType = ${b};
160
-
161
- namespace Augmented {
162
- interface BoxProps {
163
- color?: ColorType;
164
- colorH?: ColorType;
165
- colorF?: ColorType;
166
- colorA?: ColorType;
167
- bgColor?: ColorType;
168
- bgColorH?: ColorType;
169
- bgColorF?: ColorType;
170
- bgColorA?: ColorType;
171
- backgroundColor?: ColorType;
172
- backgroundColorH?: ColorType;
173
- backgroundColorF?: ColorType;
174
- backgroundColorA?: ColorType;
175
- borderColor?: ColorType;
176
- borderColorH?: ColorType;
177
- borderColorF?: ColorType;
178
- borderColorA?: ColorType;
179
- outlineColor?: ColorType;
180
- outlineColorH?: ColorType;
181
- outlineColorF?: ColorType;
182
- outlineColorA?: ColorType;
183
- bg?: BackgroundType;
184
- bgH?: BackgroundType;
185
- bgF?: BackgroundType;
186
- bgA?: BackgroundType;
187
- background?: BackgroundType;
188
- backgroundH?: BackgroundType;
189
- backgroundF?: BackgroundType;
190
- backgroundA?: BackgroundType;
191
- shadow?: ShadowType;
192
- shadowH?: ShadowType;
193
- shadowF?: ShadowType;
194
- shadowA?: ShadowType;
195
- }
196
-
197
- interface SvgProps {
198
- fill?: ColorType;
199
- fillH?: ColorType;
200
- fillF?: ColorType;
201
- fillA?: ColorType;
202
- stroke?: ColorType;
203
- strokeH?: ColorType;
204
- strokeF?: ColorType;
205
- strokeA?: ColorType;
206
- }
207
- }
208
- }
209
- `;
210
- return {
211
- themeCss: [l.join(`
212
- `), ...c, ...i, ...h].join(`
213
- `) + `
214
- `,
215
- boxDts: p
216
- };
217
- }
218
- export {
219
- u as boxTheme
220
- };