ui-arreya-components 0.0.16 → 0.1.4

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 (109) hide show
  1. package/dist/index.d.mts +342 -0
  2. package/dist/index.d.ts +342 -0
  3. package/dist/index.js +1682 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +1495 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +63 -106
  8. package/.github/workflows/npm-publish.yml +0 -35
  9. package/.storybook/main.ts +0 -18
  10. package/.storybook/preview.ts +0 -16
  11. package/.storybook/vitest.setup.ts +0 -9
  12. package/README.md +0 -62
  13. package/components.json +0 -21
  14. package/dist/styles.css +0 -3
  15. package/dist/ui.cjs.js +0 -242
  16. package/dist/ui.es.js +0 -25142
  17. package/dist/ui.umd.js +0 -242
  18. package/eslint.config.js +0 -28
  19. package/postcss.config.js +0 -6
  20. package/scripts/build-index-ts.sh +0 -16
  21. package/scripts/template.sh +0 -57
  22. package/src/components/feature/graph-card.stories.tsx +0 -138
  23. package/src/components/feature/graph-card.tsx +0 -113
  24. package/src/components/feature/header.stories.tsx +0 -129
  25. package/src/components/feature/header.tsx +0 -78
  26. package/src/components/feature/login-form.stories.tsx +0 -35
  27. package/src/components/feature/login-form.tsx +0 -97
  28. package/src/components/feature/search-bar.stories.tsx +0 -35
  29. package/src/components/feature/search-bar.tsx +0 -141
  30. package/src/components/feature/wizard.stories.tsx +0 -199
  31. package/src/components/feature/wizard.tsx +0 -278
  32. package/src/components/ui/accordion.stories.tsx.disabled +0 -36
  33. package/src/components/ui/accordion.tsx +0 -55
  34. package/src/components/ui/alert-dialog.stories.tsx +0 -46
  35. package/src/components/ui/alert-dialog.tsx +0 -139
  36. package/src/components/ui/alert.stories.tsx +0 -45
  37. package/src/components/ui/alert.tsx +0 -59
  38. package/src/components/ui/aspect-ratio.stories.tsx +0 -24
  39. package/src/components/ui/aspect-ratio.tsx +0 -5
  40. package/src/components/ui/avatar.stories.tsx +0 -29
  41. package/src/components/ui/avatar.tsx +0 -48
  42. package/src/components/ui/badge.stories.tsx +0 -43
  43. package/src/components/ui/badge.tsx +0 -36
  44. package/src/components/ui/breadcrumb.stories.tsx +0 -146
  45. package/src/components/ui/breadcrumb.tsx +0 -115
  46. package/src/components/ui/button.stories.tsx +0 -87
  47. package/src/components/ui/button.tsx +0 -57
  48. package/src/components/ui/card.stories.tsx +0 -99
  49. package/src/components/ui/card.tsx +0 -76
  50. package/src/components/ui/carousel.stories.tsx +0 -47
  51. package/src/components/ui/carousel.tsx +0 -260
  52. package/src/components/ui/chart.stories.tsx.disabled +0 -44
  53. package/src/components/ui/chart.tsx +0 -363
  54. package/src/components/ui/checkbox.stories.tsx +0 -56
  55. package/src/components/ui/checkbox.tsx +0 -28
  56. package/src/components/ui/collapsible.stories.tsx +0 -58
  57. package/src/components/ui/collapsible.tsx +0 -9
  58. package/src/components/ui/context-menu.stories.tsx +0 -34
  59. package/src/components/ui/context-menu.tsx +0 -198
  60. package/src/components/ui/dialog.stories.tsx +0 -40
  61. package/src/components/ui/dialog.tsx +0 -120
  62. package/src/components/ui/drawer.stories.tsx +0 -48
  63. package/src/components/ui/drawer.tsx +0 -116
  64. package/src/components/ui/dropdown-menu.stories.tsx +0 -92
  65. package/src/components/ui/dropdown-menu.tsx +0 -199
  66. package/src/components/ui/form.tsx +0 -176
  67. package/src/components/ui/hover-card.stories.tsx +0 -31
  68. package/src/components/ui/hover-card.tsx +0 -27
  69. package/src/components/ui/input-otp.tsx +0 -69
  70. package/src/components/ui/input.stories.tsx +0 -63
  71. package/src/components/ui/input.tsx +0 -22
  72. package/src/components/ui/label.tsx +0 -24
  73. package/src/components/ui/menubar.tsx +0 -254
  74. package/src/components/ui/navigation-menu.tsx +0 -128
  75. package/src/components/ui/pagination.tsx +0 -117
  76. package/src/components/ui/popover.tsx +0 -31
  77. package/src/components/ui/progress.tsx +0 -26
  78. package/src/components/ui/radio-group.tsx +0 -42
  79. package/src/components/ui/resizable.tsx +0 -43
  80. package/src/components/ui/scroll-area.tsx +0 -46
  81. package/src/components/ui/select.tsx +0 -157
  82. package/src/components/ui/separator.tsx +0 -29
  83. package/src/components/ui/sheet.tsx +0 -138
  84. package/src/components/ui/sidebar.tsx +0 -771
  85. package/src/components/ui/skeleton.tsx +0 -15
  86. package/src/components/ui/slider.tsx +0 -26
  87. package/src/components/ui/sonner.tsx +0 -29
  88. package/src/components/ui/switch.tsx +0 -27
  89. package/src/components/ui/table.tsx +0 -120
  90. package/src/components/ui/tabs.tsx +0 -53
  91. package/src/components/ui/textarea.tsx +0 -22
  92. package/src/components/ui/toast.tsx +0 -127
  93. package/src/components/ui/toaster.tsx +0 -33
  94. package/src/components/ui/toggle-group.tsx +0 -59
  95. package/src/components/ui/toggle.tsx +0 -43
  96. package/src/components/ui/tooltip.tsx +0 -30
  97. package/src/hooks/use-mobile.tsx +0 -19
  98. package/src/hooks/use-toast.ts +0 -194
  99. package/src/index.css +0 -3633
  100. package/src/index.ts +0 -51
  101. package/src/lib/types.ts +0 -5
  102. package/src/lib/utils.ts +0 -6
  103. package/src/styles/tailwind.css +0 -100
  104. package/tailwind.config.js +0 -94
  105. package/tsconfig.app.json +0 -30
  106. package/tsconfig.json +0 -13
  107. package/tsconfig.node.json +0 -24
  108. package/vite.config.ts +0 -33
  109. package/vitest.workspace.ts +0 -32
package/src/index.ts DELETED
@@ -1,51 +0,0 @@
1
- export * from "./components/ui/accordion"
2
- export * from "./components/ui/alert-dialog"
3
- export * from "./components/ui/alert"
4
- export * from "./components/ui/aspect-ratio"
5
- export * from "./components/ui/avatar"
6
- export * from "./components/ui/badge"
7
- export * from "./components/ui/breadcrumb"
8
- export * from "./components/ui/button"
9
- export * from "./components/ui/card"
10
- export * from "./components/ui/carousel"
11
- export * from "./components/ui/chart"
12
- export * from "./components/ui/checkbox"
13
- export * from "./components/ui/collapsible"
14
- export * from "./components/ui/context-menu"
15
- export * from "./components/ui/dialog"
16
- export * from "./components/ui/drawer"
17
- export * from "./components/ui/dropdown-menu"
18
- export * from "./components/ui/form"
19
- export * from "./components/ui/hover-card"
20
- export * from "./components/ui/input-otp"
21
- export * from "./components/ui/input"
22
- export * from "./components/ui/label"
23
- export * from "./components/ui/menubar"
24
- export * from "./components/ui/navigation-menu"
25
- export * from "./components/ui/pagination"
26
- export * from "./components/ui/popover"
27
- export * from "./components/ui/progress"
28
- export * from "./components/ui/radio-group"
29
- export * from "./components/ui/resizable"
30
- export * from "./components/ui/scroll-area"
31
- export * from "./components/ui/select"
32
- export * from "./components/ui/separator"
33
- export * from "./components/ui/sheet"
34
- export * from "./components/ui/sidebar"
35
- export * from "./components/ui/skeleton"
36
- export * from "./components/ui/slider"
37
- export * from "./components/ui/sonner"
38
- export * from "./components/ui/switch"
39
- export * from "./components/ui/table"
40
- export * from "./components/ui/tabs"
41
- export * from "./components/ui/textarea"
42
- export * from "./components/ui/toast"
43
- export * from "./components/ui/toaster"
44
- export * from "./components/ui/toggle-group"
45
- export * from "./components/ui/toggle"
46
- export * from "./components/ui/tooltip"
47
- export * from "./components/feature/graph-card"
48
- export * from "./components/feature/header"
49
- export * from "./components/feature/login-form"
50
- export * from "./components/feature/search-bar"
51
- export * from "./components/feature/wizard"
package/src/lib/types.ts DELETED
@@ -1,5 +0,0 @@
1
- export type AccordionProps = {
2
- title: string,
3
- children: {}
4
- }
5
-
package/src/lib/utils.ts DELETED
@@ -1,6 +0,0 @@
1
- import { clsx, type ClassValue } from "clsx"
2
- import { twMerge } from "tailwind-merge"
3
-
4
- export function cn(...inputs: ClassValue[]) {
5
- return twMerge(clsx(inputs))
6
- }
@@ -1,100 +0,0 @@
1
- @layer theme, base, components, utilities;
2
-
3
- @tailwind base;
4
- @tailwind components;
5
- @tailwind utilities;
6
-
7
- @layer base {
8
- :root {
9
- --background: #f4f4f4;
10
- --foreground: #333;
11
- --card: 0 0% 100%;
12
- --card-foreground: 0 0% 3.9%;
13
- --popover: 0 0% 100%;
14
- --popover-foreground: 0 0% 3.9%;
15
- --primary: #00a599;
16
- --primary-foreground: 0 0% 98%;
17
- --secondary: #ffaa00;
18
- --secondary-foreground: #fff;
19
- --muted: 0 0% 96.1%;
20
- --muted-foreground: 0 0% 45.1%;
21
- --accent: #5c166a;
22
- --accent-foreground: #fff;
23
- --dark-accent: #0073cf;
24
- --dark-accent-foreground: 0 0% 9%;
25
- --destructive: 0 84.2% 60.2%;
26
- --destructive-foreground: 0 0% 98%;
27
- --border: 0 0% 89.8%;
28
- --input: 0 0% 89.8%;
29
- --ring: 0 0% 3.9%;
30
- --chart-1: 12 76% 61%;
31
- --chart-2: 173 58% 39%;
32
- --chart-3: 197 37% 24%;
33
- --chart-4: 43 74% 66%;
34
- --chart-5: 27 87% 67%;
35
- --radius: 1.5rem;
36
- --font-primary: 'Montserrat', sans-serif;
37
- --font-secondary: 'Aviano Sans', sans-serif;
38
- ;
39
- --sidebar-background: 0 0% 98%;
40
- --sidebar-foreground: 240 5.3% 26.1%;
41
- --sidebar-primary: 240 5.9% 10%;
42
- --sidebar-primary-foreground: 0 0% 98%;
43
- --sidebar-accent: 240 4.8% 95.9%;
44
- --sidebar-accent-foreground: 240 5.9% 10%;
45
- --sidebar-border: 220 13% 91%;
46
- --sidebar-ring: 217.2 91.2% 59.8%}
47
- .dark {
48
- --background: #121212;
49
- --foreground: #e0e0e0;
50
- --card: 0 0% 3.9%;
51
- --card-foreground: 0 0% 98%;
52
- --popover: 0 0% 3.9%;
53
- --popover-foreground: 0 0% 98%;
54
- --primary: #00a599;
55
- --primary-foreground: #00a599;
56
- --secondary: 0 0% 14.9%;
57
- --secondary-foreground: 0 0% 98%;
58
- --muted: 0 0% 14.9%;
59
- --muted-foreground: 0 0% 63.9%;
60
- --accent: 0 0% 14.9%;
61
- --accent-foreground: 0 0% 98%;
62
- --destructive: 0 62.8% 30.6%;
63
- --destructive-foreground: 0 0% 98%;
64
- --border: 0 0% 14.9%;
65
- --input: 0 0% 14.9%;
66
- --ring: 0 0% 83.1%;
67
- --chart-1: 220 70% 50%;
68
- --chart-2: 160 60% 45%;
69
- --chart-3: 30 80% 55%;
70
- --chart-4: 280 65% 60%;
71
- --chart-5: 340 75% 55%;
72
- --font-primary: 'Montserrat', sans-serif;
73
- --font-secondary: 'Aviano Sans', sans-serif;
74
- ;
75
- --sidebar-background: 240 5.9% 10%;
76
- --sidebar-foreground: 240 4.8% 95.9%;
77
- --sidebar-primary: 224.3 76.3% 48%;
78
- --sidebar-primary-foreground: 0 0% 100%;
79
- --sidebar-accent: 240 3.7% 15.9%;
80
- --sidebar-accent-foreground: 240 4.8% 95.9%;
81
- --sidebar-border: 240 3.7% 15.9%;
82
- --sidebar-ring: 217.2 91.2% 59.8%}
83
- }
84
-
85
- @layer base {
86
- * {
87
- @apply border-border;
88
- }
89
- body {
90
- @apply bg-background text-foreground;
91
- }
92
- }
93
-
94
- body {
95
- font-family: var(--font-primary);
96
- }
97
-
98
- h1, h2, h3, h4 {
99
- font-family: var(--font-secondary);
100
- }
@@ -1,94 +0,0 @@
1
- import type { Config } from "tailwindcss"
2
-
3
- const config: Config = {
4
- darkMode: ["class"],
5
- content: ["./src/components/**/*.{js,ts,jsx,tsx}", "./.storybook/**/*.{js,ts,jsx,tsx}", "./storybook-static/**/*/{js,ts,jsx,tsx}"],
6
- theme: {
7
- extend: {
8
- borderRadius: {
9
- lg: 'var(--radius)',
10
- md: 'calc(var(--radius) - 2px)',
11
- sm: 'calc(var(--radius) - 4px)'
12
- },
13
- colors: {
14
- background: 'var(--background)',
15
- foreground: 'var(--foreground)',
16
- card: {
17
- DEFAULT: 'hsl(var(--card))',
18
- foreground: 'hsl(var(--card-foreground))'
19
- },
20
- popover: {
21
- DEFAULT: 'hsl(var(--popover))',
22
- foreground: 'hsl(var(--popover-foreground))'
23
- },
24
- primary: {
25
- DEFAULT: 'var(--primary)',
26
- foreground: 'hsl(var(--primary-foreground))'
27
- },
28
- secondary: {
29
- DEFAULT: 'var(--secondary)',
30
- foreground: 'var(--secondary-foreground)'
31
- },
32
- muted: {
33
- DEFAULT: 'hsl(var(--muted))',
34
- foreground: 'hsl(var(--muted-foreground))'
35
- },
36
- accent: {
37
- DEFAULT: 'var(--accent)',
38
- foreground: 'var(--accent-foreground)'
39
- },
40
- destructive: {
41
- DEFAULT: 'hsl(var(--destructive))',
42
- foreground: 'hsl(var(--destructive-foreground))'
43
- },
44
- border: 'hsl(var(--border))',
45
- input: 'hsl(var(--input))',
46
- ring: 'hsl(var(--ring))',
47
- chart: {
48
- '1': 'hsl(var(--chart-1))',
49
- '2': 'hsl(var(--chart-2))',
50
- '3': 'hsl(var(--chart-3))',
51
- '4': 'hsl(var(--chart-4))',
52
- '5': 'hsl(var(--chart-5))'
53
- },
54
- sidebar: {
55
- DEFAULT: 'hsl(var(--sidebar-background))',
56
- foreground: 'hsl(var(--sidebar-foreground))',
57
- primary: 'hsl(var(--sidebar-primary))',
58
- 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
59
- accent: 'hsl(var(--sidebar-accent))',
60
- 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
61
- border: 'hsl(var(--sidebar-border))',
62
- ring: 'hsl(var(--sidebar-ring))'
63
- }
64
- },
65
- keyframes: {
66
- 'accordion-down': {
67
- from: {
68
- height: '0'
69
- },
70
- to: {
71
- height: 'var(--radix-accordion-content-height)'
72
- }
73
- },
74
- 'accordion-up': {
75
- from: {
76
- height: 'var(--radix-accordion-content-height)'
77
- },
78
- to: {
79
- height: '0'
80
- }
81
- }
82
- },
83
- animation: {
84
- 'accordion-down': 'accordion-down 0.2s ease-out',
85
- 'accordion-up': 'accordion-up 0.2s ease-out'
86
- }
87
- }
88
- },
89
- plugins: [
90
- require("tailwindcss-animate")
91
- ],
92
- }
93
-
94
- export default config
package/tsconfig.app.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
- "target": "ES2020",
5
- "useDefineForClassFields": true,
6
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
- "module": "ESNext",
8
- "skipLibCheck": true,
9
-
10
- /* Bundler mode */
11
- "moduleResolution": "bundler",
12
- "allowImportingTsExtensions": true,
13
- "isolatedModules": true,
14
- "moduleDetection": "force",
15
- "noEmit": true,
16
- "jsx": "react-jsx",
17
-
18
- /* Linting */
19
- "strict": true,
20
- "noUnusedLocals": true,
21
- "noUnusedParameters": true,
22
- "noFallthroughCasesInSwitch": true,
23
- "noUncheckedSideEffectImports": true,
24
-
25
- "paths": {
26
- "@/*": ["./src/*"]
27
- }
28
- },
29
- "include": ["src"]
30
- }
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- { "path": "./tsconfig.app.json" },
5
- { "path": "./tsconfig.node.json" }
6
- ],
7
- "compilerOptions": {
8
- "baseUrl": ".",
9
- "paths": {
10
- "@/*": ["./src/*"]
11
- }
12
- }
13
- }
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
- "target": "ES2022",
5
- "lib": ["ES2023"],
6
- "module": "ESNext",
7
- "skipLibCheck": true,
8
-
9
- /* Bundler mode */
10
- "moduleResolution": "bundler",
11
- "allowImportingTsExtensions": true,
12
- "isolatedModules": true,
13
- "moduleDetection": "force",
14
- "noEmit": true,
15
-
16
- /* Linting */
17
- "strict": true,
18
- "noUnusedLocals": true,
19
- "noUnusedParameters": true,
20
- "noFallthroughCasesInSwitch": true,
21
- "noUncheckedSideEffectImports": true
22
- },
23
- "include": ["vite.config.ts"]
24
- }
package/vite.config.ts DELETED
@@ -1,33 +0,0 @@
1
- import path from 'path'
2
- import { defineConfig } from 'vite'
3
- import dts from 'vite-plugin-dts'
4
- import react from '@vitejs/plugin-react'
5
- import tailwindcss from "@tailwindcss/vite"
6
-
7
- import { peerDependencies } from './package.json'
8
-
9
- // https://vite.dev/config/
10
- export default defineConfig({
11
- plugins: [
12
- react(),
13
- dts({ exclude: ["**/.stories.ts", "**/*.test.ts"]}),
14
- tailwindcss()
15
- ],
16
- resolve: {
17
- alias: {
18
- "@": path.resolve(__dirname, "./src"),
19
- },
20
- },
21
- build: {
22
- lib: {
23
- entry: './src/index.ts',
24
- name: 'ui',
25
- fileName: (format) => `ui.${format}.js`,
26
- formats: ['es', 'cjs', 'umd'],
27
- },
28
- rollupOptions: {
29
- external: Object.keys(peerDependencies),
30
- output: { globals: { react: 'React', 'react-dom': 'ReactDOM' } }
31
- }
32
- }
33
- })
@@ -1,32 +0,0 @@
1
- import path from 'node:path';
2
- import { fileURLToPath } from 'node:url';
3
-
4
- import { defineWorkspace } from 'vitest/config';
5
-
6
- import { storybookTest } from '@storybook/experimental-addon-test/vitest-plugin';
7
-
8
- const dirname =
9
- typeof __dirname !== 'undefined' ? __dirname : path.dirname(fileURLToPath(import.meta.url));
10
-
11
- // More info at: https://storybook.js.org/docs/writing-tests/test-addon
12
- export default defineWorkspace([
13
- 'vite.config.ts',
14
- {
15
- extends: 'vite.config.ts',
16
- plugins: [
17
- // The plugin will run tests for the stories defined in your Storybook config
18
- // See options at: https://storybook.js.org/docs/writing-tests/test-addon#storybooktest
19
- storybookTest({ configDir: path.join(dirname, '.storybook') }),
20
- ],
21
- test: {
22
- name: 'storybook',
23
- browser: {
24
- enabled: true,
25
- headless: true,
26
- name: 'chromium',
27
- provider: 'playwright'
28
- },
29
- setupFiles: ['.storybook/vitest.setup.ts'],
30
- },
31
- },
32
- ]);