@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.
- package/.idea/bigweld.iml +12 -0
- package/.idea/codeStyles/Project.xml +72 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +30 -0
- package/.idea/jsLibraryMappings.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +7 -0
- package/.idea/reason.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/.prettierrc.json +13 -0
- package/README.md +35 -0
- package/app/client-table.tsx +35 -0
- package/app/favicon.ico +0 -0
- package/app/layout.tsx +39 -0
- package/app/page.tsx +72 -0
- package/dist/components/core/button.d.ts +21 -0
- package/dist/components/core/button.d.ts.map +1 -0
- package/dist/components/core/polymorph.d.ts +10 -0
- package/dist/components/core/polymorph.d.ts.map +1 -0
- package/dist/components/display/card.d.ts +4 -0
- package/dist/components/display/card.d.ts.map +1 -0
- package/dist/components/floating/dropdown.d.ts +11 -0
- package/dist/components/floating/dropdown.d.ts.map +1 -0
- package/dist/components/floating/tooltip.d.ts +9 -0
- package/dist/components/floating/tooltip.d.ts.map +1 -0
- package/dist/components/form/autocomplete.d.ts +16 -0
- package/dist/components/form/autocomplete.d.ts.map +1 -0
- package/dist/components/form/file-upload.d.ts +12 -0
- package/dist/components/form/file-upload.d.ts.map +1 -0
- package/dist/components/form/form.d.ts +4 -0
- package/dist/components/form/form.d.ts.map +1 -0
- package/dist/components/form/input-field.d.ts +25 -0
- package/dist/components/form/input-field.d.ts.map +1 -0
- package/dist/components/form/input.d.ts +9 -0
- package/dist/components/form/input.d.ts.map +1 -0
- package/dist/components/form/select.d.ts +11 -0
- package/dist/components/form/select.d.ts.map +1 -0
- package/dist/components/form/switch.d.ts +7 -0
- package/dist/components/form/switch.d.ts.map +1 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/table/filter.d.ts +70 -0
- package/dist/components/table/filter.d.ts.map +1 -0
- package/dist/components/table/group.d.ts +17 -0
- package/dist/components/table/group.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +28 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/metadata.d.ts +3 -0
- package/dist/components/table/metadata.d.ts.map +1 -0
- package/dist/components/table/sort.d.ts +28 -0
- package/dist/components/table/sort.d.ts.map +1 -0
- package/dist/components/table/table-lib.d.ts +99 -0
- package/dist/components/table/table-lib.d.ts.map +1 -0
- package/dist/components/table/thead.d.ts +7 -0
- package/dist/components/table/thead.d.ts.map +1 -0
- package/dist/hooks/use-form.d.ts +28 -0
- package/dist/hooks/use-form.d.ts.map +1 -0
- package/dist/hooks/use-previous.d.ts +2 -0
- package/dist/hooks/use-previous.d.ts.map +1 -0
- package/dist/hooks/use-reactive.d.ts +2 -0
- package/dist/hooks/use-reactive.d.ts.map +1 -0
- package/dist/index.css +1670 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +21864 -0
- package/dist/index.mjs.map +1 -0
- package/dist/index.umd.js +151 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/lib/dom.d.ts +6 -0
- package/dist/lib/dom.d.ts.map +1 -0
- package/dist/lib/fns.d.ts +5 -0
- package/dist/lib/fns.d.ts.map +1 -0
- package/dist/next.svg +1 -0
- package/dist/styles/design-tokens.d.ts +26 -0
- package/dist/styles/design-tokens.d.ts.map +1 -0
- package/dist/tailwind.config.d.ts +32 -0
- package/dist/tailwind.config.d.ts.map +1 -0
- package/dist/tailwind.config.js +153 -0
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/vercel.svg +1 -0
- package/docs/README.md +36 -0
- package/docs/next.config.mjs +4 -0
- package/docs/package.json +28 -0
- package/docs/pnpm-lock.yaml +1030 -0
- package/docs/postcss.config.mjs +8 -0
- package/docs/public/next.svg +1 -0
- package/docs/public/vercel.svg +1 -0
- package/docs/src/app/favicon.ico +0 -0
- package/docs/src/app/globals.css +33 -0
- package/docs/src/app/layout.tsx +22 -0
- package/docs/src/app/page.tsx +10 -0
- package/docs/tailwind.config.ts +15 -0
- package/docs/tsconfig.json +26 -0
- package/next-env.d.ts +5 -0
- package/next.config.mjs +4 -0
- package/package.json +72 -0
- package/postcss.config.mjs +8 -0
- package/public/next.svg +1 -0
- package/public/vercel.svg +1 -0
- package/src/components/core/button.tsx +91 -0
- package/src/components/core/polymorph.tsx +17 -0
- package/src/components/display/card.tsx +8 -0
- package/src/components/floating/dropdown.tsx +93 -0
- package/src/components/floating/tooltip.tsx +67 -0
- package/src/components/form/autocomplete.tsx +222 -0
- package/src/components/form/file-upload.tsx +129 -0
- package/src/components/form/form.tsx +28 -0
- package/src/components/form/input-field.tsx +105 -0
- package/src/components/form/input.tsx +73 -0
- package/src/components/form/select.tsx +58 -0
- package/src/components/form/switch.tsx +40 -0
- package/src/components/index.ts +14 -0
- package/src/components/table/filter.tsx +186 -0
- package/src/components/table/group.tsx +123 -0
- package/src/components/table/index.tsx +207 -0
- package/src/components/table/metadata.tsx +55 -0
- package/src/components/table/sort.tsx +141 -0
- package/src/components/table/table-lib.ts +130 -0
- package/src/components/table/thead.tsx +108 -0
- package/src/hooks/use-form.ts +155 -0
- package/src/hooks/use-previous.ts +9 -0
- package/src/hooks/use-reactive.ts +10 -0
- package/src/index.css +37 -0
- package/src/index.ts +6 -0
- package/src/lib/dom.ts +27 -0
- package/src/lib/fns.ts +23 -0
- package/src/styles/dark.json +66 -0
- package/src/styles/design-tokens.ts +57 -0
- package/src/styles/light.json +49 -0
- package/src/types.ts +11 -0
- package/styles.config.ts +42 -0
- package/tailwind.config.ts +11 -0
- package/tsconfig.json +55 -0
- package/tsconfig.lib.json +50 -0
- package/tsconfig.lib.tsbuildinfo +1 -0
- package/tsconfig.tailwind.json +32 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.mts +39 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
9
|
+
<orderEntry type="inheritedJdk" />
|
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
+
<code_scheme name="Project" version="173">
|
|
3
|
+
<HTMLCodeStyleSettings>
|
|
4
|
+
<option name="HTML_UNIFORM_INDENT" value="true" />
|
|
5
|
+
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
6
|
+
<option name="HTML_ENFORCE_QUOTES" value="true" />
|
|
7
|
+
</HTMLCodeStyleSettings>
|
|
8
|
+
<JSCodeStyleSettings version="0">
|
|
9
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
10
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
11
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
12
|
+
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
13
|
+
<option name="JSX_ATTRIBUTE_VALUE" value="Based on type" />
|
|
14
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
15
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
16
|
+
</JSCodeStyleSettings>
|
|
17
|
+
<TypeScriptCodeStyleSettings version="0">
|
|
18
|
+
<option name="JSDOC_INCLUDE_TYPES" value="true" />
|
|
19
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
20
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
21
|
+
<option name="USE_PUBLIC_MODIFIER" value="true" />
|
|
22
|
+
<option name="PREFER_AS_TYPE_CAST" value="true" />
|
|
23
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
24
|
+
<option name="PREFER_EXPLICIT_TYPES_VARS_FIELDS" value="true" />
|
|
25
|
+
<option name="PREFER_EXPLICIT_TYPES_FUNCTION_RETURNS" value="true" />
|
|
26
|
+
<option name="PREFER_EXPLICIT_TYPES_FUNCTION_EXPRESSION_RETURNS" value="true" />
|
|
27
|
+
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
28
|
+
<option name="IMPORTS_WRAP" value="0" />
|
|
29
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
30
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
31
|
+
<option name="USE_CHAINED_CALLS_GROUP_INDENTS" value="true" />
|
|
32
|
+
<option name="IMPORT_SORT_MODULE_NAME" value="true" />
|
|
33
|
+
</TypeScriptCodeStyleSettings>
|
|
34
|
+
<VueCodeStyleSettings>
|
|
35
|
+
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
|
|
36
|
+
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
|
|
37
|
+
</VueCodeStyleSettings>
|
|
38
|
+
<codeStyleSettings language="CSS">
|
|
39
|
+
<arrangement>
|
|
40
|
+
<rules>
|
|
41
|
+
<section>
|
|
42
|
+
<rule>
|
|
43
|
+
<match>
|
|
44
|
+
<NAME>.*</NAME>
|
|
45
|
+
</match>
|
|
46
|
+
<order>BY_NAME</order>
|
|
47
|
+
</rule>
|
|
48
|
+
</section>
|
|
49
|
+
</rules>
|
|
50
|
+
</arrangement>
|
|
51
|
+
</codeStyleSettings>
|
|
52
|
+
<codeStyleSettings language="HTML">
|
|
53
|
+
<option name="SOFT_MARGINS" value="150" />
|
|
54
|
+
<indentOptions>
|
|
55
|
+
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
|
56
|
+
</indentOptions>
|
|
57
|
+
</codeStyleSettings>
|
|
58
|
+
<codeStyleSettings language="JavaScript">
|
|
59
|
+
<option name="SOFT_MARGINS" value="150" />
|
|
60
|
+
</codeStyleSettings>
|
|
61
|
+
<codeStyleSettings language="TypeScript">
|
|
62
|
+
<option name="SOFT_MARGINS" value="150" />
|
|
63
|
+
</codeStyleSettings>
|
|
64
|
+
<codeStyleSettings language="Vue">
|
|
65
|
+
<option name="SOFT_MARGINS" value="150" />
|
|
66
|
+
<indentOptions>
|
|
67
|
+
<option name="INDENT_SIZE" value="4" />
|
|
68
|
+
<option name="TAB_SIZE" value="4" />
|
|
69
|
+
</indentOptions>
|
|
70
|
+
</codeStyleSettings>
|
|
71
|
+
</code_scheme>
|
|
72
|
+
</component>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="ConfusingFloatingPointLiteralJS" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
5
|
+
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
6
|
+
<option name="ignoredPackages">
|
|
7
|
+
<value>
|
|
8
|
+
<list size="6">
|
|
9
|
+
<item index="0" class="java.lang.String" itemvalue="ranger-fm" />
|
|
10
|
+
<item index="1" class="java.lang.String" itemvalue="fonttools" />
|
|
11
|
+
<item index="2" class="java.lang.String" itemvalue="greenlet" />
|
|
12
|
+
<item index="3" class="java.lang.String" itemvalue="urllib3" />
|
|
13
|
+
<item index="4" class="java.lang.String" itemvalue="msgpack" />
|
|
14
|
+
<item index="5" class="java.lang.String" itemvalue="charset-normalizer" />
|
|
15
|
+
</list>
|
|
16
|
+
</value>
|
|
17
|
+
</option>
|
|
18
|
+
</inspection_tool>
|
|
19
|
+
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
|
20
|
+
<option name="ignoredErrors">
|
|
21
|
+
<list>
|
|
22
|
+
<option value="N802" />
|
|
23
|
+
</list>
|
|
24
|
+
</option>
|
|
25
|
+
</inspection_tool>
|
|
26
|
+
<inspection_tool class="ShellCheck" enabled="true" level="ERROR" enabled_by_default="true">
|
|
27
|
+
<shellcheck_settings value="SC2034" />
|
|
28
|
+
</inspection_tool>
|
|
29
|
+
</profile>
|
|
30
|
+
</component>
|
package/.idea/reason.xml
ADDED
package/.idea/vcs.xml
ADDED
package/.prettierrc.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"arrowParens": "always",
|
|
3
|
+
"printWidth": 150,
|
|
4
|
+
"jsxSingleQuote": false,
|
|
5
|
+
"semi": true,
|
|
6
|
+
"bracketSameLine": false,
|
|
7
|
+
"bracketSpacing": true,
|
|
8
|
+
"htmlWhitespaceSensitivity": "css",
|
|
9
|
+
"quoteProps": "as-needed",
|
|
10
|
+
"useTabs": false,
|
|
11
|
+
"trailingComma": "es5",
|
|
12
|
+
"tabWidth": 4
|
|
13
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# unamed-components
|
|
2
|
+
|
|
3
|
+
I need to think in a good name for this.
|
|
4
|
+
|
|
5
|
+
# Tokens
|
|
6
|
+
|
|
7
|
+
You can edit the files `src/styles/dark.json` and `src/styles/light.json` to interact with colors of the project. I will configure other things like:
|
|
8
|
+
|
|
9
|
+
- border-radius
|
|
10
|
+
- shadow
|
|
11
|
+
- custom themes: you will use other themes instead only `dark`
|
|
12
|
+
|
|
13
|
+
# Components
|
|
14
|
+
|
|
15
|
+
For now, we have only Input, Select and Autocomplete.
|
|
16
|
+
|
|
17
|
+
## Input
|
|
18
|
+
|
|
19
|
+
Basic and styled input component. Provides masks using [the-mask-input](https://www.npmjs.com/package/the-mask-input).
|
|
20
|
+
|
|
21
|
+
## Select and Autocomplete
|
|
22
|
+
|
|
23
|
+
The difference between then is:
|
|
24
|
+
|
|
25
|
+
- Select is a native component with styles
|
|
26
|
+
- Autocomplete uses [floating-ui](https://floating-ui.com/) to provide options list
|
|
27
|
+
|
|
28
|
+
# Tasks
|
|
29
|
+
|
|
30
|
+
- [x] TailwindCSS Plugin
|
|
31
|
+
- [ ] Hook to work with forms
|
|
32
|
+
- [ ] Alerts
|
|
33
|
+
- [ ] Notion Table
|
|
34
|
+
- [ ] Dropdown
|
|
35
|
+
- [ ] Dark mode toggler
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Card } from "~/components/display/card";
|
|
3
|
+
import { Table } from "~/components/table";
|
|
4
|
+
import { ColType, createColumns, useTablePreferences } from "~/components/table/table-lib";
|
|
5
|
+
import { uuid } from "~/lib/fns";
|
|
6
|
+
|
|
7
|
+
type State = {
|
|
8
|
+
id: string;
|
|
9
|
+
index: number;
|
|
10
|
+
name: string;
|
|
11
|
+
category: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const rows = Array.from({ length: 10 }).map((_, i) => ({
|
|
15
|
+
id: uuid(),
|
|
16
|
+
index: i,
|
|
17
|
+
name: `Name ${i}`,
|
|
18
|
+
category: i % 2 === 0 ? "A" : "B",
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
const columns = createColumns<State>((col) => {
|
|
22
|
+
col.add("id", "ID");
|
|
23
|
+
col.add("name", "Name");
|
|
24
|
+
col.add("index", "Index", { type: ColType.Number, });
|
|
25
|
+
col.add("category", "Category");
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export const ClientTable = () => {
|
|
29
|
+
const config = useTablePreferences("table", { cols: columns });
|
|
30
|
+
return (
|
|
31
|
+
<Card>
|
|
32
|
+
<Table<State> {...config} rows={rows} />
|
|
33
|
+
</Card>
|
|
34
|
+
);
|
|
35
|
+
};
|
package/app/favicon.ico
ADDED
|
Binary file
|
package/app/layout.tsx
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Metadata } from "next";
|
|
2
|
+
import { Inter } from "next/font/google";
|
|
3
|
+
import "../src/index.css";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import Dark from "~/styles/dark.json";
|
|
6
|
+
import { createStyles, reduceTokens } from "~/styles/design-tokens";
|
|
7
|
+
import Light from "~/styles/light.json";
|
|
8
|
+
|
|
9
|
+
const inter = Inter({ subsets: ["latin"] });
|
|
10
|
+
|
|
11
|
+
export const metadata: Metadata = {
|
|
12
|
+
title: "Create Next App",
|
|
13
|
+
description: "Generated by create next app",
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
|
17
|
+
const lightColors = createStyles.default(
|
|
18
|
+
reduceTokens(Light.colors, (value, _, key) => ({
|
|
19
|
+
key: `--${key}`,
|
|
20
|
+
value: `${value}`,
|
|
21
|
+
}))
|
|
22
|
+
);
|
|
23
|
+
const darkColors = createStyles.dark(
|
|
24
|
+
reduceTokens(Dark.colors, (value, _, key) => ({
|
|
25
|
+
key: `--${key}`,
|
|
26
|
+
value: `${value}`,
|
|
27
|
+
}))
|
|
28
|
+
);
|
|
29
|
+
return (
|
|
30
|
+
<html className={`${inter.className} w-full h-screen dark`} lang="pt-br">
|
|
31
|
+
<head>
|
|
32
|
+
<title>Bigweld</title>
|
|
33
|
+
<style>{lightColors}</style>
|
|
34
|
+
<style>{darkColors}</style>
|
|
35
|
+
</head>
|
|
36
|
+
<body className={`${inter.className} w-full h-screen text-foreground bg-background`}>{children}</body>
|
|
37
|
+
</html>
|
|
38
|
+
);
|
|
39
|
+
}
|
package/app/page.tsx
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { InfoIcon } from "lucide-react";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { Autocomplete, Button, Card, Dropdown, FileUpload, Form, Input, Select, Switch, Tooltip, useForm } from "../src";
|
|
5
|
+
import { ClientTable } from "./client-table";
|
|
6
|
+
|
|
7
|
+
const selectProps = {
|
|
8
|
+
placeholder: "Haskell",
|
|
9
|
+
options: [{ value: "Javascript" }, { value: "Kotlin" }, { value: "Typescript" }],
|
|
10
|
+
required: true,
|
|
11
|
+
name: "language",
|
|
12
|
+
title: "Programming Language",
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const schema = z.object({
|
|
16
|
+
name: z.string(),
|
|
17
|
+
lang: z.array(z.string()),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export default function Home() {
|
|
21
|
+
const form = useForm(schema);
|
|
22
|
+
return (
|
|
23
|
+
<div className="w-full h-full">
|
|
24
|
+
<div className="p-8 mx-auto container text-center flex flex-col gap-6">
|
|
25
|
+
<Card>
|
|
26
|
+
<h1 className="font-medium gap-1 flex items-center justify-center text-7xl leading-snug tracking-tight">
|
|
27
|
+
Testing
|
|
28
|
+
<Tooltip title={<InfoIcon size={32} />}>I'm a tooltip</Tooltip>
|
|
29
|
+
</h1>
|
|
30
|
+
<Dropdown trigger="Floating form">
|
|
31
|
+
<Autocomplete {...selectProps} name="test" />
|
|
32
|
+
<Autocomplete {...selectProps} name="test2" />
|
|
33
|
+
<Select {...selectProps} name="test3" />
|
|
34
|
+
<Input {...selectProps} name="test4" />
|
|
35
|
+
</Dropdown>
|
|
36
|
+
<Form
|
|
37
|
+
className="space-y-4"
|
|
38
|
+
onSubmit={form.onSubmit((e) => {
|
|
39
|
+
console.log(e);
|
|
40
|
+
})}
|
|
41
|
+
>
|
|
42
|
+
<Input
|
|
43
|
+
{...form.input("name", {
|
|
44
|
+
placeholder: "Document",
|
|
45
|
+
required: true,
|
|
46
|
+
name: "name",
|
|
47
|
+
mask: "cpf",
|
|
48
|
+
title: "Document",
|
|
49
|
+
})}
|
|
50
|
+
/>
|
|
51
|
+
<Select {...form.input("lang[0]", selectProps)} />
|
|
52
|
+
<Autocomplete {...form.input("lang[1]", selectProps)} />
|
|
53
|
+
<Switch>Enable preferences</Switch>
|
|
54
|
+
<div className="flex gap-4 justify-center">
|
|
55
|
+
<Button type="reset" disabled>
|
|
56
|
+
Disabled
|
|
57
|
+
</Button>
|
|
58
|
+
<Button type="reset" loading>
|
|
59
|
+
Loading
|
|
60
|
+
</Button>
|
|
61
|
+
<Button type="submit">Save</Button>
|
|
62
|
+
</div>
|
|
63
|
+
</Form>
|
|
64
|
+
</Card>
|
|
65
|
+
<ClientTable />
|
|
66
|
+
<Card>
|
|
67
|
+
<FileUpload id="id" />
|
|
68
|
+
</Card>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { PolymorphicProps } from "~/components/core/polymorph";
|
|
4
|
+
import { Label } from "~/types";
|
|
5
|
+
declare const buttonVariants: (props?: ({
|
|
6
|
+
size?: "big" | "small" | "default" | "icon" | null | undefined;
|
|
7
|
+
rounded?: "circle" | "default" | "rough" | "squared" | null | undefined;
|
|
8
|
+
theme?: "main" | "disabled" | "loading" | "raw" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
|
+
export type ButtonProps<T extends React.ElementType = "button"> = PolymorphicProps<VariantProps<typeof buttonVariants> & Partial<{
|
|
11
|
+
icon: Label;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
}>, T>;
|
|
14
|
+
export declare const Button: <T extends React.ElementType = "button">(props: ButtonProps<T>) => any;
|
|
15
|
+
type Props = {
|
|
16
|
+
active: string;
|
|
17
|
+
buttons: ButtonProps[];
|
|
18
|
+
};
|
|
19
|
+
export declare const ButtonGroup: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/core/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAa,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,cAAc;;;;mFAyBnB,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,gBAAgB,CAC9E,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,EAChF,CAAC,CACJ,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,GA2B7E,CAAC;AAEZ,KAAK,KAAK,GAAG;IACT,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,WAAW,EAAE,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,KAAK,4CAkBvC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Override } from "~/types";
|
|
3
|
+
type Polymorphism<T extends React.ElementType> = React.PropsWithChildren<{
|
|
4
|
+
as?: T;
|
|
5
|
+
}>;
|
|
6
|
+
export type Props<T extends React.ElementType = React.ElementType> = Polymorphism<T> & Omit<React.ComponentPropsWithRef<T>, keyof Polymorphism<T>>;
|
|
7
|
+
export type PolymorphicProps<P extends {}, T extends React.ElementType = React.ElementType> = Omit<T extends string ? Override<React.ComponentProps<T> & Props<T>, P> : Override<Props<T>, P>, keyof Polymorphism<T>> & Polymorphism<T>;
|
|
8
|
+
export declare const Polymorph: React.ForwardRefExoticComponent<Omit<Props<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<any>>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=polymorph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polymorph.d.ts","sourceRoot":"","sources":["../../../src/components/core/polymorph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,KAAK,YAAY,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,iBAAiB,CAAC;IAAE,EAAE,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC;AAErF,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnJ,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,IAAI,IAAI,CAC9F,CAAC,SAAS,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1F,MAAM,YAAY,CAAC,CAAC,CAAC,CACxB,GACG,YAAY,CAAC,CAAC,CAAC,CAAC;AAEpB,eAAO,MAAM,SAAS,2IAGpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/display/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AACpD,eAAO,MAAM,IAAI,UAAW,iBAAiB,CAAC,SAAS,CAAC,4CAEvD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
|
+
type DropdownProps = {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
arrow?: boolean;
|
|
5
|
+
onChange?: (nextValue: boolean) => void;
|
|
6
|
+
trigger: React.ReactElement | React.ReactNode;
|
|
7
|
+
title?: React.ReactNode | React.ReactElement | string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Dropdown: (props: PropsWithChildren<DropdownProps>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/floating/dropdown.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,EAAY,iBAAiB,EAA6B,MAAM,OAAO,CAAC;AAEtF,KAAK,aAAa,GAAG;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,OAAO,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,SAAS,CAAC;IAC9C,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC;CACzD,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,iBAAiB,CAAC,aAAa,CAAC,4CAmE/D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PolymorphicProps } from "~/components/core/polymorph";
|
|
3
|
+
import { Label, Override } from "~/types";
|
|
4
|
+
type TooltipProps = Override<PolymorphicProps<React.ComponentProps<"button">, "div">, {
|
|
5
|
+
title: Label;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const Tooltip: ({ children, as, title, ...props }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/floating/tooltip.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAa,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE1C,KAAK,YAAY,GAAG,QAAQ,CAAC,gBAAgB,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,EAAE;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAExG,eAAO,MAAM,OAAO,sCAAuC,YAAY,4CA6CtE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InputFieldProps } from "~/components/form/input-field";
|
|
3
|
+
import { type OptionProps } from "~/components/form/select";
|
|
4
|
+
type ItemProps = Omit<React.HTMLProps<HTMLLIElement>, "children"> & {
|
|
5
|
+
selected: boolean;
|
|
6
|
+
active: boolean;
|
|
7
|
+
option: OptionProps;
|
|
8
|
+
};
|
|
9
|
+
export declare const Option: React.ForwardRefExoticComponent<Omit<ItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
+
type SelectProps = Omit<InputFieldProps<"input">, "value"> & {
|
|
11
|
+
value?: string;
|
|
12
|
+
options: OptionProps[];
|
|
13
|
+
};
|
|
14
|
+
export declare const Autocomplete: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=autocomplete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/form/autocomplete.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAAc,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D,KAAK,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,UAAU,CAAC,GAAG;IAChE,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,MAAM,8FAWjB,CAAC;AAEH,KAAK,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,GAAG;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,WAAW,EAAE,CAAC;CAC1B,CAAC;AAaF,eAAO,MAAM,YAAY,mGAoKvB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropzoneProps } from "react-dropzone";
|
|
3
|
+
import { Override } from "sidekicker";
|
|
4
|
+
type Props = Override<React.ComponentProps<"input">, DropzoneProps> & {
|
|
5
|
+
onDeleteFile?: (file: File) => void;
|
|
6
|
+
files?: File[];
|
|
7
|
+
idle?: React.ReactElement;
|
|
8
|
+
onDrop?: (file: File[]) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const FileUpload: ({ idle, onDeleteFile, onDrop, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=file-upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-upload.d.ts","sourceRoot":"","sources":["../../../src/components/form/file-upload.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAe,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,KAAK,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC,GAAG;IAClE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;CACnC,CAAC;AAmGF,eAAO,MAAM,UAAU,6CAA4D,KAAK,4CAiBvF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/form/form.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,SAAS,UAAW,eAAe,GAAG,IAAI,SAatD,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,4CAOvD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
|
+
import { PolymorphicProps } from "~/components/core/polymorph";
|
|
3
|
+
import { Label } from "~/types";
|
|
4
|
+
export type FeedbackProps = React.PropsWithChildren<Partial<{
|
|
5
|
+
title: string | React.ReactElement | React.ReactNode;
|
|
6
|
+
hideLeft?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
reportStatus: boolean;
|
|
10
|
+
}>>;
|
|
11
|
+
export declare const InputFeedback: ({ reportStatus, hideLeft, className, children, title }: FeedbackProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export type InputFieldProps<T extends "input" | "select"> = PolymorphicProps<Partial<{
|
|
13
|
+
error?: string;
|
|
14
|
+
hideLeft: boolean;
|
|
15
|
+
container: string;
|
|
16
|
+
left: Label;
|
|
17
|
+
optionalText: string;
|
|
18
|
+
right: Label;
|
|
19
|
+
rightLabel: Label;
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
placeholder: string;
|
|
23
|
+
}>, T>;
|
|
24
|
+
export declare const InputField: <T extends "input" | "select">({ optionalText, left, rightLabel, container, right, children, error, form, id, name, title, placeholder, hideLeft, required, }: PropsWithChildren<InputFieldProps<T>>) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=input-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-field.d.ts","sourceRoot":"","sources":["../../../src/components/form/input-field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAY,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,iBAAiB,CAC/C,OAAO,CAAC;IACJ,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,SAAS,CAAC;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACzB,CAAC,CACL,CAAC;AACF,eAAO,MAAM,aAAa,2DAAoE,aAAa,4CA2B1G,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,OAAO,GAAG,QAAQ,IAAI,gBAAgB,CACxE,OAAO,CAAC;IACJ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,EAAE,KAAK,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC,EACF,CAAC,CACJ,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,OAAO,GAAG,QAAQ,kIAepD,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,4CA4BvC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TheMaskProps } from "the-mask-input";
|
|
3
|
+
import { FeedbackProps, InputFieldProps } from "~/components/form/input-field";
|
|
4
|
+
import { Override } from "~/types";
|
|
5
|
+
export type InputProps = Override<InputFieldProps<"input">, TheMaskProps & FeedbackProps & {
|
|
6
|
+
next?: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const Input: React.FC<InputProps>;
|
|
9
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/form/input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAc,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,MAAM,UAAU,GAAG,QAAQ,CAC7B,eAAe,CAAC,OAAO,CAAC,EACxB,YAAY,GACR,aAAa,GAAG;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CACR,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAyD/B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InputFieldProps } from "~/components/form/input-field";
|
|
3
|
+
import { Override } from "~/types";
|
|
4
|
+
export type OptionProps = Override<React.ComponentProps<"option">, {
|
|
5
|
+
value: string;
|
|
6
|
+
}>;
|
|
7
|
+
export type SelectProps = Override<InputFieldProps<"select">, {
|
|
8
|
+
options: OptionProps[];
|
|
9
|
+
}>;
|
|
10
|
+
export declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
|
|
11
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/form/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAc,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEtF,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE;IAAE,OAAO,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAC;AAE1F,eAAO,MAAM,MAAM,oGA8CjB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type SwitchProps = Omit<React.ComponentProps<"input">, "onChange"> & {
|
|
3
|
+
onCheck?: (nextValue: boolean) => void;
|
|
4
|
+
};
|
|
5
|
+
export declare const Switch: ({ children, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/form/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAE/C,KAAK,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;CAAE,CAAC;AAEhH,eAAO,MAAM,MAAM,2BAA4B,WAAW,4CAmCzD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./form/autocomplete";
|
|
2
|
+
export * from "./form/input";
|
|
3
|
+
export * from "./form/select";
|
|
4
|
+
export * from "./form/file-upload";
|
|
5
|
+
export * from "./form/form";
|
|
6
|
+
export * from "./form/select";
|
|
7
|
+
export * from "./form/switch";
|
|
8
|
+
export * from "./form/input-field";
|
|
9
|
+
export * from "./core/button";
|
|
10
|
+
export * from "./core/polymorph";
|
|
11
|
+
export * from "./display/card";
|
|
12
|
+
export * from "./floating/dropdown";
|
|
13
|
+
export * from "./floating/tooltip";
|
|
14
|
+
export * from "./table/index";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|