@melv1c/ui-kit 0.0.0
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/README.md +65 -0
- package/dist/base.css +49 -0
- package/dist/chunk-2ZWQNZEN.cjs +63 -0
- package/dist/chunk-2ZWQNZEN.cjs.map +1 -0
- package/dist/chunk-4H5OSMBC.js +52 -0
- package/dist/chunk-4H5OSMBC.js.map +1 -0
- package/dist/chunk-GQ6Z5A4R.cjs +262 -0
- package/dist/chunk-GQ6Z5A4R.cjs.map +1 -0
- package/dist/chunk-I7WHASOO.cjs +13 -0
- package/dist/chunk-I7WHASOO.cjs.map +1 -0
- package/dist/chunk-PYHBC3IQ.js +17 -0
- package/dist/chunk-PYHBC3IQ.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +9 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-Q4GFV3J3.cjs +19 -0
- package/dist/chunk-Q4GFV3J3.cjs.map +1 -0
- package/dist/chunk-Q7SFCCGT.cjs +11 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/chunk-QV4CTFLS.cjs +60 -0
- package/dist/chunk-QV4CTFLS.cjs.map +1 -0
- package/dist/chunk-RZJFYAJW.js +60 -0
- package/dist/chunk-RZJFYAJW.js.map +1 -0
- package/dist/chunk-WTLIXI2B.js +225 -0
- package/dist/chunk-WTLIXI2B.js.map +1 -0
- package/dist/chunk-WZ2GOU2J.js +11 -0
- package/dist/chunk-WZ2GOU2J.js.map +1 -0
- package/dist/code-diff-editor-IT2RMVDC.js +73 -0
- package/dist/code-diff-editor-IT2RMVDC.js.map +1 -0
- package/dist/code-diff-editor-J24VGXHL.cjs +75 -0
- package/dist/code-diff-editor-J24VGXHL.cjs.map +1 -0
- package/dist/code-editor-DK64HVFQ.cjs +84 -0
- package/dist/code-editor-DK64HVFQ.cjs.map +1 -0
- package/dist/code-editor-EJIJXZLN.js +82 -0
- package/dist/code-editor-EJIJXZLN.js.map +1 -0
- package/dist/index.cjs +4196 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +623 -0
- package/dist/index.d.ts +623 -0
- package/dist/index.js +3870 -0
- package/dist/index.js.map +1 -0
- package/dist/locales/index.cjs +33 -0
- package/dist/locales/index.cjs.map +1 -0
- package/dist/locales/index.d.cts +43 -0
- package/dist/locales/index.d.ts +43 -0
- package/dist/locales/index.js +4 -0
- package/dist/locales/index.js.map +1 -0
- package/dist/rich-text-editor-JUERRDHQ.js +442 -0
- package/dist/rich-text-editor-JUERRDHQ.js.map +1 -0
- package/dist/rich-text-editor-MOJDWQTI.cjs +451 -0
- package/dist/rich-text-editor-MOJDWQTI.cjs.map +1 -0
- package/dist/themes/claude.css +125 -0
- package/dist/themes/default.css +70 -0
- package/dist/themes/doom64.css +117 -0
- package/dist/themes/t3chat.css +125 -0
- package/dist/themes/twitter.css +127 -0
- package/dist/themes/vercel.css +117 -0
- package/package.json +166 -0
- package/styles.css +120 -0
package/README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# @melv1c/ui
|
|
2
|
+
|
|
3
|
+
A React component library built with Tailwind CSS and TypeScript.
|
|
4
|
+
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
For detailed usage instructions, installation guides, and component documentation, visit the [online documentation](https://your-storybook-url.com).
|
|
8
|
+
|
|
9
|
+
## Concept
|
|
10
|
+
|
|
11
|
+
This library provides a collection of reusable, accessible UI components that follow modern design principles and are fully customizable through Tailwind CSS theming.
|
|
12
|
+
|
|
13
|
+
## Stack
|
|
14
|
+
|
|
15
|
+
- **React 18** - JavaScript library for building UI
|
|
16
|
+
- **TypeScript** - Type-safe JavaScript
|
|
17
|
+
- **Tailwind CSS** - Utility-first CSS framework
|
|
18
|
+
- **Storybook** - Component documentation and testing
|
|
19
|
+
- **ESLint & Prettier** - Code quality and formatting
|
|
20
|
+
|
|
21
|
+
## Local Development
|
|
22
|
+
|
|
23
|
+
### Prerequisites
|
|
24
|
+
|
|
25
|
+
- Node.js 18+
|
|
26
|
+
- npm
|
|
27
|
+
|
|
28
|
+
### Setup
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npm install
|
|
32
|
+
npm run dev
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
This starts the Storybook dev server on `http://localhost:6006`.
|
|
36
|
+
|
|
37
|
+
### Available Scripts
|
|
38
|
+
|
|
39
|
+
| Command | Description |
|
|
40
|
+
| ------------------------- | --------------------------------------- |
|
|
41
|
+
| `npm run dev` | Start Storybook dev server on port 6006 |
|
|
42
|
+
| `npm run build` | Build the library with tsup |
|
|
43
|
+
| `npm run build:watch` | Build in watch mode |
|
|
44
|
+
| `npm run lint` | Run ESLint |
|
|
45
|
+
| `npm run lint:fix` | Fix ESLint issues |
|
|
46
|
+
| `npm run format` | Format code with Prettier |
|
|
47
|
+
| `npm run format:check` | Check code formatting |
|
|
48
|
+
| `npm run build-storybook` | Build static Storybook |
|
|
49
|
+
|
|
50
|
+
## Contributing
|
|
51
|
+
|
|
52
|
+
Contributions are welcome! Please follow these steps:
|
|
53
|
+
|
|
54
|
+
1. Create a feature branch (`git checkout -b feature/your-feature`)
|
|
55
|
+
2. Make your changes and commit (`git commit -m 'Add feature'`)
|
|
56
|
+
3. Push to the branch (`git push origin feature/your-feature`)
|
|
57
|
+
4. Open a pull request
|
|
58
|
+
|
|
59
|
+
When adding components:
|
|
60
|
+
|
|
61
|
+
1. Create your component in the appropriate folder under `src/components/`
|
|
62
|
+
2. Add a `.stories.tsx` file for Storybook documentation
|
|
63
|
+
3. Export the component from the folder's `index.ts`
|
|
64
|
+
4. Run `npm run lint:fix` and `npm run format` before submitting
|
|
65
|
+
5. Ensure all tests pass
|
package/dist/base.css
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@custom-variant dark (&:is(.dark *));
|
|
2
|
+
|
|
3
|
+
@theme inline {
|
|
4
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
5
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
6
|
+
--radius-lg: var(--radius);
|
|
7
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
8
|
+
--color-background: var(--background);
|
|
9
|
+
--color-foreground: var(--foreground);
|
|
10
|
+
--color-card: var(--card);
|
|
11
|
+
--color-card-foreground: var(--card-foreground);
|
|
12
|
+
--color-popover: var(--popover);
|
|
13
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
14
|
+
--color-primary: var(--primary);
|
|
15
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
16
|
+
--color-secondary: var(--secondary);
|
|
17
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
18
|
+
--color-muted: var(--muted);
|
|
19
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
20
|
+
--color-accent: var(--accent);
|
|
21
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
22
|
+
--color-destructive: var(--destructive);
|
|
23
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
24
|
+
--color-border: var(--border);
|
|
25
|
+
--color-input: var(--input);
|
|
26
|
+
--color-ring: var(--ring);
|
|
27
|
+
--color-chart-1: var(--chart-1);
|
|
28
|
+
--color-chart-2: var(--chart-2);
|
|
29
|
+
--color-chart-3: var(--chart-3);
|
|
30
|
+
--color-chart-4: var(--chart-4);
|
|
31
|
+
--color-chart-5: var(--chart-5);
|
|
32
|
+
--color-sidebar: var(--sidebar);
|
|
33
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
34
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
35
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
36
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
37
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
38
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
39
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@layer base {
|
|
43
|
+
* {
|
|
44
|
+
@apply border-border outline-ring/50;
|
|
45
|
+
}
|
|
46
|
+
body {
|
|
47
|
+
@apply bg-background text-foreground;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
4
|
+
|
|
5
|
+
// src/components/editors/code/qualifio-themes.ts
|
|
6
|
+
async function defineQualifioThemes(monaco) {
|
|
7
|
+
monaco.editor.defineTheme("qualifio", {
|
|
8
|
+
base: "vs",
|
|
9
|
+
inherit: true,
|
|
10
|
+
rules: [],
|
|
11
|
+
colors: {
|
|
12
|
+
"editor.foreground": "#666666",
|
|
13
|
+
"editor.background": "#f8fafb",
|
|
14
|
+
"editor.lineHighlightBackground": "#f8fafb",
|
|
15
|
+
"editorCursor.foreground": "#666666",
|
|
16
|
+
"editorLineNumber.foreground": "#D8D8D8",
|
|
17
|
+
"editorLineNumber.activeForeground": "#D8D8D8",
|
|
18
|
+
"editor.selectionBackground": "#dff5fb",
|
|
19
|
+
"editor.selectionHighlightBackground": "#dff5fb",
|
|
20
|
+
"editor.wordHighlightBackground": "#dff5fb",
|
|
21
|
+
"editor.wordHighlightStrongBackground": "#dff5fb",
|
|
22
|
+
"editor.findMatchBackground": "#FFF7E2",
|
|
23
|
+
"editor.findMatchHighlightBackground": "#FFF7E2",
|
|
24
|
+
"editorBracketMatch.background": "#f2f2f2",
|
|
25
|
+
"editorBracketMatch.border": "#D8D8D8",
|
|
26
|
+
"editorIndentGuide.background": "#D8D8D8",
|
|
27
|
+
"editorIndentGuide.activeBackground": "#666666",
|
|
28
|
+
"editorWidget.background": "#FFFFFF",
|
|
29
|
+
"editorWidget.border": "#D8D8D8",
|
|
30
|
+
"editorSuggestWidget.background": "#FFFFFF",
|
|
31
|
+
"editorSuggestWidget.border": "#D8D8D8",
|
|
32
|
+
"editorSuggestWidget.selectedBackground": "#dff5fb",
|
|
33
|
+
"editorHoverWidget.background": "#FFFFFF",
|
|
34
|
+
"editorHoverWidget.border": "#D8D8D8"
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
var codeEditorVariants = classVarianceAuthority.cva(
|
|
39
|
+
"relative overflow-hidden rounded-md border transition-[color,box-shadow] outline-none focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]",
|
|
40
|
+
{
|
|
41
|
+
variants: {
|
|
42
|
+
variant: {
|
|
43
|
+
default: "border-input bg-transparent dark:bg-input/30",
|
|
44
|
+
ghost: "border-transparent bg-transparent",
|
|
45
|
+
card: "border-border bg-card shadow-sm"
|
|
46
|
+
},
|
|
47
|
+
size: {
|
|
48
|
+
default: "h-[300px]",
|
|
49
|
+
sm: "h-[150px]",
|
|
50
|
+
lg: "h-[500px]"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
defaultVariants: {
|
|
54
|
+
variant: "default",
|
|
55
|
+
size: "default"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
exports.codeEditorVariants = codeEditorVariants;
|
|
61
|
+
exports.defineQualifioThemes = defineQualifioThemes;
|
|
62
|
+
//# sourceMappingURL=chunk-2ZWQNZEN.cjs.map
|
|
63
|
+
//# sourceMappingURL=chunk-2ZWQNZEN.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/editors/code/qualifio-themes.ts","../src/components/editors/code/variants.ts"],"names":["cva"],"mappings":";;;;;AAMA,eAAsB,qBAAqB,MAAA,EAAgB;AACzD,EAAA,MAAA,CAAO,MAAA,CAAO,YAAY,UAAA,EAAY;AAAA,IACpC,IAAA,EAAM,IAAA;AAAA,IACN,OAAA,EAAS,IAAA;AAAA,IACT,OAAO,EAAC;AAAA,IACR,MAAA,EAAQ;AAAA,MACN,mBAAA,EAAqB,SAAA;AAAA,MACrB,mBAAA,EAAqB,SAAA;AAAA,MACrB,gCAAA,EAAkC,SAAA;AAAA,MAClC,yBAAA,EAA2B,SAAA;AAAA,MAC3B,6BAAA,EAA+B,SAAA;AAAA,MAC/B,mCAAA,EAAqC,SAAA;AAAA,MACrC,4BAAA,EAA8B,SAAA;AAAA,MAC9B,qCAAA,EAAuC,SAAA;AAAA,MACvC,gCAAA,EAAkC,SAAA;AAAA,MAClC,sCAAA,EAAwC,SAAA;AAAA,MACxC,4BAAA,EAA8B,SAAA;AAAA,MAC9B,qCAAA,EAAuC,SAAA;AAAA,MACvC,+BAAA,EAAiC,SAAA;AAAA,MACjC,2BAAA,EAA6B,SAAA;AAAA,MAC7B,8BAAA,EAAgC,SAAA;AAAA,MAChC,oCAAA,EAAsC,SAAA;AAAA,MACtC,yBAAA,EAA2B,SAAA;AAAA,MAC3B,qBAAA,EAAuB,SAAA;AAAA,MACvB,gCAAA,EAAkC,SAAA;AAAA,MAClC,4BAAA,EAA8B,SAAA;AAAA,MAC9B,wCAAA,EAA0C,SAAA;AAAA,MAC1C,8BAAA,EAAgC,SAAA;AAAA,MAChC,0BAAA,EAA4B;AAAA;AAC9B,GACD,CAAA;AACH;ACnCO,IAAM,kBAAA,GAAqBA,0BAAA;AAAA,EAChC,kKAAA;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,OAAA,EAAS;AAAA,QACP,OAAA,EAAS,8CAAA;AAAA,QACT,KAAA,EAAO,mCAAA;AAAA,QACP,IAAA,EAAM;AAAA,OACR;AAAA,MACA,IAAA,EAAM;AAAA,QACJ,OAAA,EAAS,WAAA;AAAA,QACT,EAAA,EAAI,WAAA;AAAA,QACJ,EAAA,EAAI;AAAA;AACN,KACF;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,OAAA,EAAS,SAAA;AAAA,MACT,IAAA,EAAM;AAAA;AACR;AAEJ","file":"chunk-2ZWQNZEN.cjs","sourcesContent":["import type { Monaco } from \"@monaco-editor/react\";\n\n/**\n * Defines the Qualifio theme for Monaco Editor\n * This function should be called once when Monaco is loaded\n */\nexport async function defineQualifioThemes(monaco: Monaco) {\n monaco.editor.defineTheme(\"qualifio\", {\n base: \"vs\",\n inherit: true,\n rules: [],\n colors: {\n \"editor.foreground\": \"#666666\",\n \"editor.background\": \"#f8fafb\",\n \"editor.lineHighlightBackground\": \"#f8fafb\",\n \"editorCursor.foreground\": \"#666666\",\n \"editorLineNumber.foreground\": \"#D8D8D8\",\n \"editorLineNumber.activeForeground\": \"#D8D8D8\",\n \"editor.selectionBackground\": \"#dff5fb\",\n \"editor.selectionHighlightBackground\": \"#dff5fb\",\n \"editor.wordHighlightBackground\": \"#dff5fb\",\n \"editor.wordHighlightStrongBackground\": \"#dff5fb\",\n \"editor.findMatchBackground\": \"#FFF7E2\",\n \"editor.findMatchHighlightBackground\": \"#FFF7E2\",\n \"editorBracketMatch.background\": \"#f2f2f2\",\n \"editorBracketMatch.border\": \"#D8D8D8\",\n \"editorIndentGuide.background\": \"#D8D8D8\",\n \"editorIndentGuide.activeBackground\": \"#666666\",\n \"editorWidget.background\": \"#FFFFFF\",\n \"editorWidget.border\": \"#D8D8D8\",\n \"editorSuggestWidget.background\": \"#FFFFFF\",\n \"editorSuggestWidget.border\": \"#D8D8D8\",\n \"editorSuggestWidget.selectedBackground\": \"#dff5fb\",\n \"editorHoverWidget.background\": \"#FFFFFF\",\n \"editorHoverWidget.border\": \"#D8D8D8\",\n },\n });\n}\n","import { cva } from \"class-variance-authority\";\n\nexport const codeEditorVariants = cva(\n \"relative overflow-hidden rounded-md border transition-[color,box-shadow] outline-none focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]\",\n {\n variants: {\n variant: {\n default: \"border-input bg-transparent dark:bg-input/30\",\n ghost: \"border-transparent bg-transparent\",\n card: \"border-border bg-card shadow-sm\",\n },\n size: {\n default: \"h-[300px]\",\n sm: \"h-[150px]\",\n lg: \"h-[500px]\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __export } from './chunk-PZ5AY32C.js';
|
|
2
|
+
|
|
3
|
+
// src/locales/index.ts
|
|
4
|
+
var locales_exports = {};
|
|
5
|
+
__export(locales_exports, {
|
|
6
|
+
de: () => de_default,
|
|
7
|
+
en: () => en_default,
|
|
8
|
+
es: () => es_default,
|
|
9
|
+
fr: () => fr_default,
|
|
10
|
+
it: () => it_default,
|
|
11
|
+
nl: () => nl_default
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// src/locales/de.json
|
|
15
|
+
var de_default = {
|
|
16
|
+
next: "Weiter",
|
|
17
|
+
previous: "Zur\xFCck"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// src/locales/en.json
|
|
21
|
+
var en_default = {
|
|
22
|
+
next: "Next",
|
|
23
|
+
previous: "Previous"
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// src/locales/es.json
|
|
27
|
+
var es_default = {
|
|
28
|
+
next: "Siguiente",
|
|
29
|
+
previous: "Anterior"
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// src/locales/fr.json
|
|
33
|
+
var fr_default = {
|
|
34
|
+
next: "Suivant",
|
|
35
|
+
previous: "Pr\xE9c\xE9dent"
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
// src/locales/it.json
|
|
39
|
+
var it_default = {
|
|
40
|
+
next: "Successivo",
|
|
41
|
+
previous: "Precedente"
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// src/locales/nl.json
|
|
45
|
+
var nl_default = {
|
|
46
|
+
next: "Volgende",
|
|
47
|
+
previous: "Vorige"
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { de_default, en_default, es_default, fr_default, it_default, locales_exports, nl_default };
|
|
51
|
+
//# sourceMappingURL=chunk-4H5OSMBC.js.map
|
|
52
|
+
//# sourceMappingURL=chunk-4H5OSMBC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/locales/index.ts","../src/locales/de.json","../src/locales/en.json","../src/locales/es.json","../src/locales/fr.json","../src/locales/it.json","../src/locales/nl.json"],"names":[],"mappings":";;;AAAA,IAAA,eAAA,GAAA;AAAA,QAAA,CAAA,eAAA,EAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA;AAAA,CAAA,CAAA;;;ACAA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,QAAA;AAAA,EACR,QAAA,EAAY;AACd;;;ACHA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,MAAA;AAAA,EACR,QAAA,EAAY;AACd;;;ACHA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,WAAA;AAAA,EACR,QAAA,EAAY;AACd;;;ACHA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,SAAA;AAAA,EACR,QAAA,EAAY;AACd;;;ACHA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,YAAA;AAAA,EACR,QAAA,EAAY;AACd;;;ACHA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,UAAA;AAAA,EACR,QAAA,EAAY;AACd","file":"chunk-4H5OSMBC.js","sourcesContent":["export { default as de } from \"./de.json\";\nexport { default as en } from \"./en.json\";\nexport { default as es } from \"./es.json\";\nexport { default as fr } from \"./fr.json\";\nexport { default as it } from \"./it.json\";\nexport { default as nl } from \"./nl.json\";\n","{\n \"next\": \"Weiter\",\n \"previous\": \"Zurück\"\n}\n","{\n \"next\": \"Next\",\n \"previous\": \"Previous\"\n}\n","{\n \"next\": \"Siguiente\",\n \"previous\": \"Anterior\"\n}\n","{\n \"next\": \"Suivant\",\n \"previous\": \"Précédent\"\n}\n","{\n \"next\": \"Successivo\",\n \"previous\": \"Precedente\"\n}\n","{\n \"next\": \"Volgende\",\n \"previous\": \"Vorige\"\n}\n"]}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkI7WHASOO_cjs = require('./chunk-I7WHASOO.cjs');
|
|
4
|
+
var React6 = require('react');
|
|
5
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
6
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
9
|
+
var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
10
|
+
var TogglePrimitive = require('@radix-ui/react-toggle');
|
|
11
|
+
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
12
|
+
|
|
13
|
+
function _interopNamespace(e) {
|
|
14
|
+
if (e && e.__esModule) return e;
|
|
15
|
+
var n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
Object.keys(e).forEach(function (k) {
|
|
18
|
+
if (k !== 'default') {
|
|
19
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return e[k]; }
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
n.default = e;
|
|
28
|
+
return Object.freeze(n);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
var React6__namespace = /*#__PURE__*/_interopNamespace(React6);
|
|
32
|
+
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
33
|
+
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
34
|
+
var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespace(TogglePrimitive);
|
|
35
|
+
var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(ToggleGroupPrimitive);
|
|
36
|
+
|
|
37
|
+
var buttonVariants = classVarianceAuthority.cva(
|
|
38
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
39
|
+
{
|
|
40
|
+
variants: {
|
|
41
|
+
variant: {
|
|
42
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
43
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
44
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
45
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
46
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
47
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
48
|
+
},
|
|
49
|
+
size: {
|
|
50
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
51
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
52
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
53
|
+
icon: "size-9",
|
|
54
|
+
"icon-sm": "size-8",
|
|
55
|
+
"icon-lg": "size-10"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
variant: "default",
|
|
60
|
+
size: "default"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
function Button({
|
|
65
|
+
className,
|
|
66
|
+
variant = "default",
|
|
67
|
+
size = "default",
|
|
68
|
+
asChild = false,
|
|
69
|
+
...props
|
|
70
|
+
}) {
|
|
71
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
72
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
73
|
+
Comp,
|
|
74
|
+
{
|
|
75
|
+
"data-slot": "button",
|
|
76
|
+
"data-variant": variant,
|
|
77
|
+
"data-size": size,
|
|
78
|
+
className: chunkI7WHASOO_cjs.cn(buttonVariants({ variant, size, className })),
|
|
79
|
+
...props
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
function Separator({
|
|
84
|
+
className,
|
|
85
|
+
orientation = "horizontal",
|
|
86
|
+
decorative = true,
|
|
87
|
+
...props
|
|
88
|
+
}) {
|
|
89
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
+
SeparatorPrimitive__namespace.Root,
|
|
91
|
+
{
|
|
92
|
+
"data-slot": "separator",
|
|
93
|
+
decorative,
|
|
94
|
+
orientation,
|
|
95
|
+
className: chunkI7WHASOO_cjs.cn(
|
|
96
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
97
|
+
className
|
|
98
|
+
),
|
|
99
|
+
...props
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
function Input({ className, type, ...props }) {
|
|
104
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
105
|
+
"input",
|
|
106
|
+
{
|
|
107
|
+
type,
|
|
108
|
+
"data-slot": "input",
|
|
109
|
+
className: chunkI7WHASOO_cjs.cn(
|
|
110
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
111
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
112
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
113
|
+
className
|
|
114
|
+
),
|
|
115
|
+
...props
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
function Popover({
|
|
120
|
+
...props
|
|
121
|
+
}) {
|
|
122
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Root, { "data-slot": "popover", ...props });
|
|
123
|
+
}
|
|
124
|
+
function PopoverTrigger({
|
|
125
|
+
...props
|
|
126
|
+
}) {
|
|
127
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
128
|
+
}
|
|
129
|
+
function PopoverContent({
|
|
130
|
+
className,
|
|
131
|
+
align = "center",
|
|
132
|
+
sideOffset = 4,
|
|
133
|
+
...props
|
|
134
|
+
}) {
|
|
135
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
136
|
+
PopoverPrimitive__namespace.Content,
|
|
137
|
+
{
|
|
138
|
+
"data-slot": "popover-content",
|
|
139
|
+
align,
|
|
140
|
+
sideOffset,
|
|
141
|
+
className: chunkI7WHASOO_cjs.cn(
|
|
142
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
143
|
+
className
|
|
144
|
+
),
|
|
145
|
+
...props
|
|
146
|
+
}
|
|
147
|
+
) });
|
|
148
|
+
}
|
|
149
|
+
function PopoverAnchor({
|
|
150
|
+
...props
|
|
151
|
+
}) {
|
|
152
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Anchor, { "data-slot": "popover-anchor", ...props });
|
|
153
|
+
}
|
|
154
|
+
var toggleVariants = classVarianceAuthority.cva(
|
|
155
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
156
|
+
{
|
|
157
|
+
variants: {
|
|
158
|
+
variant: {
|
|
159
|
+
default: "bg-transparent",
|
|
160
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
161
|
+
},
|
|
162
|
+
size: {
|
|
163
|
+
default: "h-9 px-2 min-w-9",
|
|
164
|
+
sm: "h-8 px-1.5 min-w-8",
|
|
165
|
+
lg: "h-10 px-2.5 min-w-10"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
defaultVariants: {
|
|
169
|
+
variant: "default",
|
|
170
|
+
size: "default"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
function Toggle({
|
|
175
|
+
className,
|
|
176
|
+
variant,
|
|
177
|
+
size,
|
|
178
|
+
...props
|
|
179
|
+
}) {
|
|
180
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
181
|
+
TogglePrimitive__namespace.Root,
|
|
182
|
+
{
|
|
183
|
+
"data-slot": "toggle",
|
|
184
|
+
className: chunkI7WHASOO_cjs.cn(toggleVariants({ variant, size, className })),
|
|
185
|
+
...props
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
var ToggleGroupContext = React6__namespace.createContext({
|
|
190
|
+
size: "default",
|
|
191
|
+
variant: "default",
|
|
192
|
+
spacing: 0
|
|
193
|
+
});
|
|
194
|
+
function ToggleGroup({
|
|
195
|
+
className,
|
|
196
|
+
variant,
|
|
197
|
+
size,
|
|
198
|
+
spacing = 0,
|
|
199
|
+
children,
|
|
200
|
+
...props
|
|
201
|
+
}) {
|
|
202
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
203
|
+
ToggleGroupPrimitive__namespace.Root,
|
|
204
|
+
{
|
|
205
|
+
"data-slot": "toggle-group",
|
|
206
|
+
"data-variant": variant,
|
|
207
|
+
"data-size": size,
|
|
208
|
+
"data-spacing": spacing,
|
|
209
|
+
style: { "--gap": spacing },
|
|
210
|
+
className: chunkI7WHASOO_cjs.cn(
|
|
211
|
+
"group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",
|
|
212
|
+
className
|
|
213
|
+
),
|
|
214
|
+
...props,
|
|
215
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
function ToggleGroupItem({
|
|
220
|
+
className,
|
|
221
|
+
children,
|
|
222
|
+
variant,
|
|
223
|
+
size,
|
|
224
|
+
...props
|
|
225
|
+
}) {
|
|
226
|
+
const context = React6__namespace.useContext(ToggleGroupContext);
|
|
227
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
228
|
+
ToggleGroupPrimitive__namespace.Item,
|
|
229
|
+
{
|
|
230
|
+
"data-slot": "toggle-group-item",
|
|
231
|
+
"data-variant": context.variant || variant,
|
|
232
|
+
"data-size": context.size || size,
|
|
233
|
+
"data-spacing": context.spacing,
|
|
234
|
+
className: chunkI7WHASOO_cjs.cn(
|
|
235
|
+
toggleVariants({
|
|
236
|
+
variant: context.variant || variant,
|
|
237
|
+
size: context.size || size
|
|
238
|
+
}),
|
|
239
|
+
"w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10",
|
|
240
|
+
"data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",
|
|
241
|
+
className
|
|
242
|
+
),
|
|
243
|
+
...props,
|
|
244
|
+
children
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
exports.Button = Button;
|
|
250
|
+
exports.Input = Input;
|
|
251
|
+
exports.Popover = Popover;
|
|
252
|
+
exports.PopoverAnchor = PopoverAnchor;
|
|
253
|
+
exports.PopoverContent = PopoverContent;
|
|
254
|
+
exports.PopoverTrigger = PopoverTrigger;
|
|
255
|
+
exports.Separator = Separator;
|
|
256
|
+
exports.Toggle = Toggle;
|
|
257
|
+
exports.ToggleGroup = ToggleGroup;
|
|
258
|
+
exports.ToggleGroupItem = ToggleGroupItem;
|
|
259
|
+
exports.buttonVariants = buttonVariants;
|
|
260
|
+
exports.toggleVariants = toggleVariants;
|
|
261
|
+
//# sourceMappingURL=chunk-GQ6Z5A4R.cjs.map
|
|
262
|
+
//# sourceMappingURL=chunk-GQ6Z5A4R.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/base/button.tsx","../src/components/base/separator.tsx","../src/components/base/input.tsx","../src/components/base/popover.tsx","../src/components/base/toggle.tsx","../src/components/base/toggle-group.tsx"],"names":["cva","Slot","jsx","cn","SeparatorPrimitive","PopoverPrimitive","TogglePrimitive","React6","ToggleGroupPrimitive"],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A;AAAA,UAC5B,IAAA,EAAM,QAAQ,IAAA,IAAQ;AAAA,SACvB,CAAA;AAAA,QACD,4DAAA;AAAA,QACA,6OAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG,KAAA;AAAA,MAEH;AAAA;AAAA,GACH;AAEJ","file":"chunk-GQ6Z5A4R.cjs","sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost:\n \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n sm: \"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\n icon: \"size-9\",\n \"icon-sm\": \"size-8\",\n \"icon-lg\": \"size-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Button({\n className,\n variant = \"default\",\n size = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean\n }) {\n const Comp = asChild ? Slot : \"button\"\n\n return (\n <Comp\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Button, buttonVariants }\n","\"use client\"\n\nimport * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Separator({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Separator }\n","import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }\n","\"use client\"\n\nimport * as React from \"react\"\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Popover({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />\n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />\n}\n\nfunction PopoverContent({\n className,\n align = \"center\",\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden\",\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n )\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />\n}\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }\n","import * as React from \"react\"\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst toggleVariants = cva(\n \"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline:\n \"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground\",\n },\n size: {\n default: \"h-9 px-2 min-w-9\",\n sm: \"h-8 px-1.5 min-w-8\",\n lg: \"h-10 px-2.5 min-w-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Toggle({\n className,\n variant,\n size,\n ...props\n}: React.ComponentProps<typeof TogglePrimitive.Root> &\n VariantProps<typeof toggleVariants>) {\n return (\n <TogglePrimitive.Root\n data-slot=\"toggle\"\n className={cn(toggleVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Toggle, toggleVariants }\n","import * as React from \"react\"\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\"\nimport { type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { toggleVariants } from \"@/components/base/toggle\"\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants> & {\n spacing?: number\n }\n>({\n size: \"default\",\n variant: \"default\",\n spacing: 0,\n})\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n spacing = 0,\n children,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants> & {\n spacing?: number\n }) {\n return (\n <ToggleGroupPrimitive.Root\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n data-spacing={spacing}\n style={{ \"--gap\": spacing } as React.CSSProperties}\n className={cn(\n \"group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs\",\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size, spacing }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n <ToggleGroupPrimitive.Item\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n data-spacing={context.spacing}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n }),\n \"w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10\",\n \"data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l\",\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n )\n}\n\nexport { ToggleGroup, ToggleGroupItem }\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var clsx = require('clsx');
|
|
4
|
+
var tailwindMerge = require('tailwind-merge');
|
|
5
|
+
|
|
6
|
+
// src/lib/utils.ts
|
|
7
|
+
function cn(...inputs) {
|
|
8
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
exports.cn = cn;
|
|
12
|
+
//# sourceMappingURL=chunk-I7WHASOO.cjs.map
|
|
13
|
+
//# sourceMappingURL=chunk-I7WHASOO.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts"],"names":["twMerge","clsx"],"mappings":";;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B","file":"chunk-I7WHASOO.cjs","sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cn } from './chunk-WZ2GOU2J.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
function Skeleton({ className, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "skeleton",
|
|
9
|
+
className: cn("bg-accent animate-pulse rounded-md", className),
|
|
10
|
+
...props
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { Skeleton };
|
|
16
|
+
//# sourceMappingURL=chunk-PYHBC3IQ.js.map
|
|
17
|
+
//# sourceMappingURL=chunk-PYHBC3IQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/base/skeleton.tsx"],"names":[],"mappings":";;;AAEA,SAAS,QAAA,CAAS,EAAE,SAAA,EAAW,GAAG,OAAM,EAAgC;AACtE,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,UAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,oCAAA,EAAsC,SAAS,CAAA;AAAA,MAC5D,GAAG;AAAA;AAAA,GACN;AAEJ","file":"chunk-PYHBC3IQ.js","sourcesContent":["import { cn } from \"@/lib/utils\"\n\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"skeleton\"\n className={cn(\"bg-accent animate-pulse rounded-md\", className)}\n {...props}\n />\n )\n}\n\nexport { Skeleton }\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export { __export };
|
|
8
|
+
//# sourceMappingURL=chunk-PZ5AY32C.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-PZ5AY32C.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-PZ5AY32C.js"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkI7WHASOO_cjs = require('./chunk-I7WHASOO.cjs');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
|
|
6
|
+
function Skeleton({ className, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
"data-slot": "skeleton",
|
|
11
|
+
className: chunkI7WHASOO_cjs.cn("bg-accent animate-pulse rounded-md", className),
|
|
12
|
+
...props
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.Skeleton = Skeleton;
|
|
18
|
+
//# sourceMappingURL=chunk-Q4GFV3J3.cjs.map
|
|
19
|
+
//# sourceMappingURL=chunk-Q4GFV3J3.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/base/skeleton.tsx"],"names":["jsx","cn"],"mappings":";;;;;AAEA,SAAS,QAAA,CAAS,EAAE,SAAA,EAAW,GAAG,OAAM,EAAgC;AACtE,EAAA,uBACEA,cAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,UAAA;AAAA,MACV,SAAA,EAAWC,oBAAA,CAAG,oCAAA,EAAsC,SAAS,CAAA;AAAA,MAC5D,GAAG;AAAA;AAAA,GACN;AAEJ","file":"chunk-Q4GFV3J3.cjs","sourcesContent":["import { cn } from \"@/lib/utils\"\n\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"skeleton\"\n className={cn(\"bg-accent animate-pulse rounded-md\", className)}\n {...props}\n />\n )\n}\n\nexport { Skeleton }\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __export = (target, all) => {
|
|
5
|
+
for (var name in all)
|
|
6
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
exports.__export = __export;
|
|
10
|
+
//# sourceMappingURL=chunk-Q7SFCCGT.cjs.map
|
|
11
|
+
//# sourceMappingURL=chunk-Q7SFCCGT.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-Q7SFCCGT.cjs"}
|