@g4rcez/components 0.0.1

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 (139) hide show
  1. package/.idea/bigweld.iml +12 -0
  2. package/.idea/codeStyles/Project.xml +72 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/inspectionProfiles/Project_Default.xml +30 -0
  5. package/.idea/jsLibraryMappings.xml +6 -0
  6. package/.idea/modules.xml +8 -0
  7. package/.idea/prettier.xml +7 -0
  8. package/.idea/reason.xml +6 -0
  9. package/.idea/vcs.xml +6 -0
  10. package/.prettierrc.json +13 -0
  11. package/README.md +35 -0
  12. package/app/client-table.tsx +35 -0
  13. package/app/favicon.ico +0 -0
  14. package/app/layout.tsx +39 -0
  15. package/app/page.tsx +72 -0
  16. package/dist/components/core/button.d.ts +21 -0
  17. package/dist/components/core/button.d.ts.map +1 -0
  18. package/dist/components/core/polymorph.d.ts +10 -0
  19. package/dist/components/core/polymorph.d.ts.map +1 -0
  20. package/dist/components/display/card.d.ts +4 -0
  21. package/dist/components/display/card.d.ts.map +1 -0
  22. package/dist/components/floating/dropdown.d.ts +11 -0
  23. package/dist/components/floating/dropdown.d.ts.map +1 -0
  24. package/dist/components/floating/tooltip.d.ts +9 -0
  25. package/dist/components/floating/tooltip.d.ts.map +1 -0
  26. package/dist/components/form/autocomplete.d.ts +16 -0
  27. package/dist/components/form/autocomplete.d.ts.map +1 -0
  28. package/dist/components/form/file-upload.d.ts +12 -0
  29. package/dist/components/form/file-upload.d.ts.map +1 -0
  30. package/dist/components/form/form.d.ts +4 -0
  31. package/dist/components/form/form.d.ts.map +1 -0
  32. package/dist/components/form/input-field.d.ts +25 -0
  33. package/dist/components/form/input-field.d.ts.map +1 -0
  34. package/dist/components/form/input.d.ts +9 -0
  35. package/dist/components/form/input.d.ts.map +1 -0
  36. package/dist/components/form/select.d.ts +11 -0
  37. package/dist/components/form/select.d.ts.map +1 -0
  38. package/dist/components/form/switch.d.ts +7 -0
  39. package/dist/components/form/switch.d.ts.map +1 -0
  40. package/dist/components/index.d.ts +15 -0
  41. package/dist/components/index.d.ts.map +1 -0
  42. package/dist/components/table/filter.d.ts +70 -0
  43. package/dist/components/table/filter.d.ts.map +1 -0
  44. package/dist/components/table/group.d.ts +17 -0
  45. package/dist/components/table/group.d.ts.map +1 -0
  46. package/dist/components/table/index.d.ts +28 -0
  47. package/dist/components/table/index.d.ts.map +1 -0
  48. package/dist/components/table/metadata.d.ts +3 -0
  49. package/dist/components/table/metadata.d.ts.map +1 -0
  50. package/dist/components/table/sort.d.ts +28 -0
  51. package/dist/components/table/sort.d.ts.map +1 -0
  52. package/dist/components/table/table-lib.d.ts +99 -0
  53. package/dist/components/table/table-lib.d.ts.map +1 -0
  54. package/dist/components/table/thead.d.ts +7 -0
  55. package/dist/components/table/thead.d.ts.map +1 -0
  56. package/dist/hooks/use-form.d.ts +28 -0
  57. package/dist/hooks/use-form.d.ts.map +1 -0
  58. package/dist/hooks/use-previous.d.ts +2 -0
  59. package/dist/hooks/use-previous.d.ts.map +1 -0
  60. package/dist/hooks/use-reactive.d.ts +2 -0
  61. package/dist/hooks/use-reactive.d.ts.map +1 -0
  62. package/dist/index.css +1670 -0
  63. package/dist/index.d.ts +7 -0
  64. package/dist/index.d.ts.map +1 -0
  65. package/dist/index.mjs +21864 -0
  66. package/dist/index.mjs.map +1 -0
  67. package/dist/index.umd.js +151 -0
  68. package/dist/index.umd.js.map +1 -0
  69. package/dist/lib/dom.d.ts +6 -0
  70. package/dist/lib/dom.d.ts.map +1 -0
  71. package/dist/lib/fns.d.ts +5 -0
  72. package/dist/lib/fns.d.ts.map +1 -0
  73. package/dist/next.svg +1 -0
  74. package/dist/styles/design-tokens.d.ts +26 -0
  75. package/dist/styles/design-tokens.d.ts.map +1 -0
  76. package/dist/tailwind.config.d.ts +32 -0
  77. package/dist/tailwind.config.d.ts.map +1 -0
  78. package/dist/tailwind.config.js +153 -0
  79. package/dist/types.d.ts +9 -0
  80. package/dist/types.d.ts.map +1 -0
  81. package/dist/vercel.svg +1 -0
  82. package/docs/README.md +36 -0
  83. package/docs/next.config.mjs +4 -0
  84. package/docs/package.json +28 -0
  85. package/docs/pnpm-lock.yaml +1030 -0
  86. package/docs/postcss.config.mjs +8 -0
  87. package/docs/public/next.svg +1 -0
  88. package/docs/public/vercel.svg +1 -0
  89. package/docs/src/app/favicon.ico +0 -0
  90. package/docs/src/app/globals.css +33 -0
  91. package/docs/src/app/layout.tsx +22 -0
  92. package/docs/src/app/page.tsx +10 -0
  93. package/docs/tailwind.config.ts +15 -0
  94. package/docs/tsconfig.json +26 -0
  95. package/next-env.d.ts +5 -0
  96. package/next.config.mjs +4 -0
  97. package/package.json +72 -0
  98. package/postcss.config.mjs +8 -0
  99. package/public/next.svg +1 -0
  100. package/public/vercel.svg +1 -0
  101. package/src/components/core/button.tsx +91 -0
  102. package/src/components/core/polymorph.tsx +17 -0
  103. package/src/components/display/card.tsx +8 -0
  104. package/src/components/floating/dropdown.tsx +93 -0
  105. package/src/components/floating/tooltip.tsx +67 -0
  106. package/src/components/form/autocomplete.tsx +222 -0
  107. package/src/components/form/file-upload.tsx +129 -0
  108. package/src/components/form/form.tsx +28 -0
  109. package/src/components/form/input-field.tsx +105 -0
  110. package/src/components/form/input.tsx +73 -0
  111. package/src/components/form/select.tsx +58 -0
  112. package/src/components/form/switch.tsx +40 -0
  113. package/src/components/index.ts +14 -0
  114. package/src/components/table/filter.tsx +186 -0
  115. package/src/components/table/group.tsx +123 -0
  116. package/src/components/table/index.tsx +207 -0
  117. package/src/components/table/metadata.tsx +55 -0
  118. package/src/components/table/sort.tsx +141 -0
  119. package/src/components/table/table-lib.ts +130 -0
  120. package/src/components/table/thead.tsx +108 -0
  121. package/src/hooks/use-form.ts +155 -0
  122. package/src/hooks/use-previous.ts +9 -0
  123. package/src/hooks/use-reactive.ts +10 -0
  124. package/src/index.css +37 -0
  125. package/src/index.ts +6 -0
  126. package/src/lib/dom.ts +27 -0
  127. package/src/lib/fns.ts +23 -0
  128. package/src/styles/dark.json +66 -0
  129. package/src/styles/design-tokens.ts +57 -0
  130. package/src/styles/light.json +49 -0
  131. package/src/types.ts +11 -0
  132. package/styles.config.ts +42 -0
  133. package/tailwind.config.ts +11 -0
  134. package/tsconfig.json +55 -0
  135. package/tsconfig.lib.json +50 -0
  136. package/tsconfig.lib.tsbuildinfo +1 -0
  137. package/tsconfig.tailwind.json +32 -0
  138. package/tsconfig.tsbuildinfo +1 -0
  139. package/vite.config.mts +39 -0
@@ -0,0 +1,6 @@
1
+ import { ClassValue } from "clsx";
2
+ import React, { LegacyRef, MutableRefObject, RefCallback } from "react";
3
+ export declare const mergeRefs: <T extends unknown = any>(...refs: Array<MutableRefObject<T> | LegacyRef<T> | undefined | null>) => RefCallback<T>;
4
+ export declare const isReactComponent: (a: any) => a is React.FC;
5
+ export declare const css: (...styles: ClassValue[]) => string;
6
+ //# sourceMappingURL=dom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AAExC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAExE,eAAO,MAAM,SAAS,GACjB,CAAC,iCAA6B,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,KAAG,WAAW,CAAC,CAAC,CAS1G,CAAC;AAEN,eAAO,MAAM,gBAAgB,MAAO,GAAG,KAAG,CAAC,IAAI,KAAK,CAAC,EAQpD,CAAC;AAEF,eAAO,MAAM,GAAG,cAAe,UAAU,EAAE,WAA0B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { AllPaths } from "sidekicker";
2
+ export declare const uuid: () => string;
3
+ export declare const path: <T extends {}, K extends AllPaths<T>>(obj: T, path: K) => any;
4
+ export declare const isSsr: () => boolean;
5
+ //# sourceMappingURL=fns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fns.d.ts","sourceRoot":"","sources":["../../src/lib/fns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,QAAO,MAKlB,CAAC;AAUP,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,QAGxE,CAAC;AAEF,eAAO,MAAM,KAAK,eAAsC,CAAC"}
package/dist/next.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
@@ -0,0 +1,26 @@
1
+ type DesignTokens = {
2
+ [K in string]: string | DesignTokens;
3
+ };
4
+ type Token = {
5
+ key: string;
6
+ value: string;
7
+ };
8
+ type DesignTokensParser = (value: string, key: string, combine: string) => string;
9
+ type DesignTokensBuilder = (value: string, key: string, combine: string) => Token;
10
+ export declare const parsers: {
11
+ cssVariable: (_: string, __: string, k: string) => string;
12
+ rgba: (value: string) => string;
13
+ rgb: (value: string) => string;
14
+ hsl: (value: string) => string;
15
+ hsla: (value: string) => string;
16
+ hex: (value: string) => string;
17
+ raw: (value: string) => string;
18
+ };
19
+ export declare const reduceTokens: <T extends DesignTokens>(colors: T, parse: DesignTokensBuilder, prefix?: string, append?: string) => Token[];
20
+ export declare const createDesignTokens: <T extends DesignTokens>(colors: T, parse: DesignTokensParser, prefix?: string, append?: string) => T;
21
+ export declare const createStyles: {
22
+ default: (tokens: Token[]) => string;
23
+ dark: (tokens: Token[]) => string;
24
+ };
25
+ export {};
26
+ //# sourceMappingURL=design-tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-tokens.d.ts","sourceRoot":"","sources":["../../src/styles/design-tokens.ts"],"names":[],"mappings":"AAAA,KAAK,YAAY,GAAG;KACf,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,YAAY;CACvC,CAAC;AAEF,KAAK,KAAK,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5C,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;AAElF,KAAK,mBAAmB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,KAAK,CAAC;AAElF,eAAO,MAAM,OAAO;;;;;;;;CAQ0B,CAAC;AAE/C,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,YAAY,UAAU,CAAC,SAAS,mBAAmB,WAAU,MAAM,WAAe,MAAM,KAAQ,KAAK,EAQlI,CAAC;AAEX,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,YAAY,UAAU,CAAC,SAAS,kBAAkB,WAAU,MAAM,WAAe,MAAM,KAAQ,CAW7H,CAAC;AAYhB,eAAO,MAAM,YAAY;sBACH,KAAK,EAAE;mBACV,KAAK,EAAE;CACzB,CAAC"}
@@ -0,0 +1,32 @@
1
+ declare module "src/styles/design-tokens" {
2
+ type DesignTokens = {
3
+ [K in string]: string | DesignTokens;
4
+ };
5
+ type Token = {
6
+ key: string;
7
+ value: string;
8
+ };
9
+ type DesignTokensParser = (value: string, key: string, combine: string) => string;
10
+ type DesignTokensBuilder = (value: string, key: string, combine: string) => Token;
11
+ export const parsers: {
12
+ cssVariable: (_: string, __: string, k: string) => string;
13
+ rgba: (value: string) => string;
14
+ rgb: (value: string) => string;
15
+ hsl: (value: string) => string;
16
+ hsla: (value: string) => string;
17
+ hex: (value: string) => string;
18
+ raw: (value: string) => string;
19
+ };
20
+ export const reduceTokens: <T extends DesignTokens>(colors: T, parse: DesignTokensBuilder, prefix?: string, append?: string) => Token[];
21
+ export const createDesignTokens: <T extends DesignTokens>(colors: T, parse: DesignTokensParser, prefix?: string, append?: string) => T;
22
+ export const createStyles: {
23
+ default: (tokens: Token[]) => string;
24
+ dark: (tokens: Token[]) => string;
25
+ };
26
+ }
27
+ declare module "styles.config" {
28
+ import { Config } from "tailwindcss";
29
+ const config: Partial<Config>;
30
+ export default config;
31
+ }
32
+ //# sourceMappingURL=tailwind.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwind.config.d.ts","sourceRoot":"","sources":["../src/styles/design-tokens.ts","../styles.config.ts"],"names":[],"mappings":";IAAA,KAAK,YAAY,GAAG;SACf,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,YAAY;KACvC,CAAC;IAEF,KAAK,KAAK,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAE5C,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAElF,KAAK,mBAAmB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,KAAK,CAAC;IAElF,MAAM,CAAC,MAAM,OAAO;;;;;;;;KAQ0B,CAAC;IAE/C,MAAM,CAAC,MAAM,YAAY,GAAI,CAAC,SAAS,YAAY,UAAU,CAAC,SAAS,mBAAmB,WAAU,MAAM,WAAe,MAAM,KAAQ,KAAK,EAQlI,CAAC;IAEX,MAAM,CAAC,MAAM,kBAAkB,GAAI,CAAC,SAAS,YAAY,UAAU,CAAC,SAAS,kBAAkB,WAAU,MAAM,WAAe,MAAM,KAAQ,CAW7H,CAAC;IAYhB,MAAM,CAAC,MAAM,YAAY;0BACH,KAAK,EAAE;uBACV,KAAK,EAAE;KACzB,CAAC;;;ICxDF,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;IASrC,MAAM,MAAM,EAAE,OAAO,CAAC,MAAM,CA8B3B,CAAC;IAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,153 @@
1
+ var __importDefault = (this && this.__importDefault) || function (mod) {
2
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3
+ };
4
+ define("src/styles/design-tokens", ["require", "exports"], function (require, exports) {
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.createStyles = exports.createDesignTokens = exports.reduceTokens = exports.parsers = void 0;
8
+ exports.parsers = {
9
+ cssVariable: (_, __, k) => `var(--${k})`,
10
+ rgba: (value) => `rgba(${value})`,
11
+ rgb: (value) => `rgb(${value})`,
12
+ hsl: (value) => `hsl(${value})`,
13
+ hsla: (value) => `hsla(${value})`,
14
+ hex: (value) => value,
15
+ raw: (value) => value,
16
+ };
17
+ const reduceTokens = (colors, parse, prefix = "", append = "") => Object.entries(colors).reduce((acc, [key, value]) => {
18
+ const combine = append === "" ? `${prefix}${key}` : `${append}-${key}`;
19
+ if (typeof value === "string") {
20
+ const k = append === "" ? `${prefix}${key}` : key;
21
+ return acc.concat(parse(value, k, combine));
22
+ }
23
+ return acc.concat((0, exports.reduceTokens)(value, parse, prefix, combine));
24
+ }, []);
25
+ exports.reduceTokens = reduceTokens;
26
+ const createDesignTokens = (colors, parse, prefix = "", append = "") => Object.entries(colors).reduce((acc, [key, value]) => {
27
+ const combine = append === "" ? `${prefix}${key}` : `${append}-${key}`;
28
+ if (typeof value === "string") {
29
+ const k = append === "" ? `${prefix}${key}` : key;
30
+ return Object.assign(Object.assign({}, acc), { [k]: parse(value, key, combine) });
31
+ }
32
+ return Object.assign(Object.assign({}, acc), { [key]: (0, exports.createDesignTokens)(value, parse, prefix, combine) });
33
+ }, {});
34
+ exports.createDesignTokens = createDesignTokens;
35
+ const modifiers = {
36
+ default: (variables) => `:root { ${variables} }`,
37
+ dark: (variables) => `html.dark {${variables}}`,
38
+ };
39
+ const createStyleContent = (tokens, modifier) => {
40
+ const content = tokens.map((token) => `${token.key}: ${token.value}`).join(";");
41
+ return modifier(content);
42
+ };
43
+ exports.createStyles = {
44
+ default: (tokens) => createStyleContent(tokens, modifiers.default),
45
+ dark: (tokens) => createStyleContent(tokens, modifiers.dark),
46
+ };
47
+ });
48
+ define("src/styles/dark", [], {
49
+ "name": "dark",
50
+ "spacing": {
51
+ "base": "1rem",
52
+ "lg": "1.5rem",
53
+ "sm": "0.75rem"
54
+ },
55
+ "colors": {
56
+ "foreground": "#f8fafc",
57
+ "background": "#191817",
58
+ "accent": "#0ea5e9",
59
+ "disabled": "#52525b",
60
+ "primary": {
61
+ "foreground": "#f8fafc",
62
+ "DEFAULT": "#0ea5e9",
63
+ "subtle": "#bae6fd",
64
+ "hover": "#0284c7"
65
+ },
66
+ "secondary": {
67
+ "DEFAULT": "#475569",
68
+ "subtle": "#cbd5e1",
69
+ "hover": "#334155"
70
+ },
71
+ "info": {
72
+ "DEFAULT": "#3b82f6",
73
+ "subtle": "#93c5fd",
74
+ "hover": "#1d4ed8"
75
+ },
76
+ "danger": {
77
+ "DEFAULT": "#ef4444",
78
+ "subtle": "#fca5a5",
79
+ "hover": "#dc2626"
80
+ },
81
+ "success": {
82
+ "DEFAULT": "#10b981",
83
+ "subtle": "#6ee7b7",
84
+ "hover": "#047857"
85
+ },
86
+ "input": {
87
+ "border": "#52525b",
88
+ "placeholder": "#94a3b8",
89
+ "mask-error": "#fca5a5",
90
+ "switch-bg": "#171717",
91
+ "switch": "#fff"
92
+ },
93
+ "card": {
94
+ "background": "#27272a",
95
+ "border": "#3f3f46",
96
+ "overlay": "#00000080"
97
+ },
98
+ "floating": {
99
+ "background": "#252525",
100
+ "border": "#3f3f46",
101
+ "overlay": "#00000080"
102
+ },
103
+ "tooltip": {
104
+ "background": "#141414",
105
+ "border": "#27272a"
106
+ },
107
+ "table": {
108
+ "background": "#27272a",
109
+ "border": "#52525b",
110
+ "row": "#3f3f46"
111
+ }
112
+ }
113
+ });
114
+ define("styles.config", ["require", "exports", "tailwindcss/plugin", "src/styles/dark", "src/styles/design-tokens"], function (require, exports, plugin_1, dark_json_1, design_tokens_1) {
115
+ "use strict";
116
+ Object.defineProperty(exports, "__esModule", { value: true });
117
+ plugin_1 = __importDefault(plugin_1);
118
+ dark_json_1 = __importDefault(dark_json_1);
119
+ const COLORS = (0, design_tokens_1.createDesignTokens)(dark_json_1.default.colors, design_tokens_1.parsers.cssVariable);
120
+ const css = String.raw;
121
+ const config = {
122
+ theme: {
123
+ transitionTimingFunction: { DEFAULT: "cubic-bezier(1,.43,.36,.67)" },
124
+ transitionDuration: { DEFAULT: "375ms" },
125
+ extend: {
126
+ fill: COLORS,
127
+ colors: COLORS,
128
+ borderColors: COLORS,
129
+ placeholderColor: COLORS,
130
+ zIndex: {
131
+ floating: "10",
132
+ },
133
+ boxShadow: {
134
+ floating: "rgba(15, 15, 15, 0.1) 0px 0px 0px 1px, rgba(15, 15, 15, 0.2) 0px 3px 6px, rgba(15, 15, 15, 0.4) 0px 9px 24px"
135
+ }
136
+ },
137
+ },
138
+ plugins: [
139
+ (0, plugin_1.default)(function ({ addVariant }) {
140
+ addVariant("link", ["&:hover", "&:active"]);
141
+ addVariant("landing", ["&"]);
142
+ addVariant("group-assert", [css `:merge(.group):valid:has(.input:valid:not(:placeholder-shown)) &`]);
143
+ addVariant("group-error", [
144
+ css `:merge(.group):invalid:has(.input:not(:focus):invalid[data-initialized=true]) &`,
145
+ css `:merge(.group[data-error=true][data-interactive=true]):has(.input[data-initialized=true]) &`,
146
+ css `:merge(.group[data-error=true][data-interactive=true]):has(.input) &`,
147
+ css `:merge(.group[data-error=true]:has(.input[data-initialized=true])) &`,
148
+ ]);
149
+ }),
150
+ ],
151
+ };
152
+ exports.default = config;
153
+ });
@@ -0,0 +1,9 @@
1
+ import React, { Dispatch, SetStateAction } from "react";
2
+ export type Label = React.ReactNode | React.ReactElement | string;
3
+ export type Merge<T> = {
4
+ [K in keyof T]: T[K];
5
+ } & {};
6
+ export type Override<Source, New> = Omit<Source, keyof New> & New;
7
+ export type SetState<T> = Dispatch<SetStateAction<T>>;
8
+ export type POJO = Record<string, any>;
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,EAAE,QAAQ,EAA2B,cAAc,EAAE,MAAM,OAAO,CAAC;AAEhF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC;AAElE,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,EAAE,CAAC;AAErD,MAAM,MAAM,QAAQ,CAAC,MAAM,EAAE,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,GAAG,GAAG,CAAC;AAElE,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtD,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 283 64"><path fill="black" d="M141 16c-11 0-19 7-19 18s9 18 20 18c7 0 13-3 16-7l-7-5c-2 3-6 4-9 4-5 0-9-3-10-7h28v-3c0-11-8-18-19-18zm-9 15c1-4 4-7 9-7s8 3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-11-8-18-19-18zm-10 15c2-4 5-7 10-7s8 3 9 7h-19zm-39 3c0 6 4 10 10 10 4 0 7-2 9-5l8 5c-3 5-9 8-17 8-11 0-19-7-19-18s8-18 19-18c8 0 14 3 17 8l-8 5c-2-3-5-5-9-5-6 0-10 4-10 10zm83-29v46h-9V5h9zM37 0l37 64H0L37 0zm92 5-27 48L74 5h10l18 30 17-30h10zm59 12v10l-3-1c-6 0-10 4-10 10v15h-9V17h9v9c0-5 6-9 13-9z"/></svg>
package/docs/README.md ADDED
@@ -0,0 +1,36 @@
1
+ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2
+
3
+ ## Getting Started
4
+
5
+ First, run the development server:
6
+
7
+ ```bash
8
+ npm run dev
9
+ # or
10
+ yarn dev
11
+ # or
12
+ pnpm dev
13
+ # or
14
+ bun dev
15
+ ```
16
+
17
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
+
19
+ You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20
+
21
+ This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22
+
23
+ ## Learn More
24
+
25
+ To learn more about Next.js, take a look at the following resources:
26
+
27
+ - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28
+ - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29
+
30
+ You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
31
+
32
+ ## Deploy on Vercel
33
+
34
+ The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35
+
36
+ Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
@@ -0,0 +1,4 @@
1
+ /** @type {import('next').NextConfig} */
2
+ const nextConfig = {};
3
+
4
+ export default nextConfig;
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "docs",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "dev": "next dev",
7
+ "lib:types": "tsc -p tsconfig.lib.json",
8
+ "lib:tailwind": "tsc -p tsconfig.tailwind.json",
9
+ "lib:css": "tailwind -i ./src/index.css -o ./dist/index.css",
10
+ "build": "vite build; tsc",
11
+ "start": "next start",
12
+ "lint": "next lint"
13
+ },
14
+ "dependencies": {
15
+ "next": "14.2.4",
16
+ "react": "^18",
17
+ "react-dom": "^18",
18
+ },
19
+ "devDependencies": {
20
+ "@types/node": "^20.14.10",
21
+ "@types/react": "^18.3.3",
22
+ "@types/react-dom": "^18.3.0",
23
+ "postcss": "^8.4.39",
24
+ "prettier": "3.3.2",
25
+ "tailwindcss": "^3.4.1",
26
+ "typescript": "^5.5.3"
27
+ }
28
+ }