ui-arreya-components 1.0.0 → 1.2.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/CHANGELOG.md +6 -26
- package/dist/components/feature/graph-card.d.ts +20 -0
- package/dist/components/feature/graph-card.stories.d.ts +9 -0
- package/dist/components/feature/header.d.ts +15 -0
- package/dist/components/feature/header.stories.d.ts +12 -0
- package/dist/components/feature/login-form.d.ts +1 -0
- package/dist/components/feature/login-form.stories.d.ts +13 -0
- package/dist/components/feature/search-bar.d.ts +10 -0
- package/dist/components/feature/search-bar.stories.d.ts +19 -0
- package/dist/components/feature/wizard.d.ts +57 -0
- package/dist/components/feature/wizard.stories.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert-dialog.stories.d.ts +12 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/alert.stories.d.ts +15 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/aspect-ratio.stories.d.ts +12 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/avatar.stories.d.ts +12 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.stories.d.ts +16 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.stories.d.ts +16 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.stories.d.ts +21 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/card.stories.d.ts +27 -0
- package/dist/components/ui/carousel.d.ts +18 -0
- package/dist/components/ui/carousel.stories.d.ts +17 -0
- package/dist/components/ui/chart.d.ts +62 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.stories.d.ts +14 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.stories.d.ts +12 -0
- package/dist/components/ui/context-menu.d.ts +27 -0
- package/dist/components/ui/context-menu.stories.d.ts +12 -0
- package/dist/components/ui/dialog.d.ts +19 -0
- package/dist/components/ui/dialog.stories.d.ts +12 -0
- package/dist/components/ui/drawer.d.ts +22 -0
- package/dist/components/ui/drawer.stories.d.ts +15 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/dropdown-menu.stories.d.ts +14 -0
- package/dist/components/ui/form.d.ts +23 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.stories.d.ts +12 -0
- package/dist/components/ui/input-otp.d.ts +34 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.stories.d.ts +16 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/menubar.d.ts +28 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/pagination.d.ts +28 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/resizable.d.ts +23 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/sidebar.d.ts +65 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.stories.d.ts +12 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toast.d.ts +15 -0
- package/dist/components/ui/toaster.d.ts +1 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle.d.ts +12 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-toast.d.ts +44 -0
- package/dist/index.d.ts +50 -0
- package/dist/lib/types.d.ts +4 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/styles.css +1 -1
- package/dist/types/index.d.ts +642 -0
- package/dist/{ui.es.js → ui-arreya-components.es.js} +10284 -11014
- package/dist/ui-arreya-components.umd.js +238 -0
- package/package.json +54 -54
- package/rollup.config.js +12 -0
- package/src/components/feature/search-bar.tsx +1 -1
- package/src/components/ui/breadcrumb.tsx +75 -81
- package/src/components/ui/table.stories.tsx +102 -0
- package/src/index.css +14 -457
- package/src/index.ts +0 -1
- package/src/styles/tailwind.css +2 -2
- package/tsconfig.json +34 -7
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +5 -8
- package/.github/workflows/npm-publish.yml +0 -35
- package/.storybook/main.ts +0 -18
- package/.storybook/preview.ts +0 -16
- package/.storybook/vitest.setup.ts +0 -9
- package/dist/ui.cjs.js +0 -242
- package/dist/ui.umd.js +0 -242
- package/tsconfig.app.json +0 -30
- package/tsconfig.node.json +0 -24
package/src/index.ts
CHANGED
|
@@ -31,7 +31,6 @@ export * from "./components/ui/scroll-area"
|
|
|
31
31
|
export * from "./components/ui/select"
|
|
32
32
|
export * from "./components/ui/separator"
|
|
33
33
|
export * from "./components/ui/sheet"
|
|
34
|
-
export * from "./components/ui/sidebar"
|
|
35
34
|
export * from "./components/ui/skeleton"
|
|
36
35
|
export * from "./components/ui/slider"
|
|
37
36
|
export * from "./components/ui/sonner"
|
package/src/styles/tailwind.css
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--radius: 1.5rem;
|
|
36
36
|
--font-primary: 'Montserrat', sans-serif;
|
|
37
37
|
--font-secondary: 'Aviano Sans', sans-serif;
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
--sidebar-background: 0 0% 98%;
|
|
40
40
|
--sidebar-foreground: 240 5.3% 26.1%;
|
|
41
41
|
--sidebar-primary: 240 5.9% 10%;
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
--chart-5: 340 75% 55%;
|
|
72
72
|
--font-primary: 'Montserrat', sans-serif;
|
|
73
73
|
--font-secondary: 'Aviano Sans', sans-serif;
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
--sidebar-background: 240 5.9% 10%;
|
|
76
76
|
--sidebar-foreground: 240 4.8% 95.9%;
|
|
77
77
|
--sidebar-primary: 224.3 76.3% 48%;
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
{
|
|
2
|
-
"files": [],
|
|
3
|
-
"references": [
|
|
4
|
-
{ "path": "./tsconfig.app.json" },
|
|
5
|
-
{ "path": "./tsconfig.node.json" }
|
|
6
|
-
],
|
|
7
2
|
"compilerOptions": {
|
|
8
|
-
"
|
|
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": "node",
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"moduleDetection": "force",
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
"jsx": "react-jsx",
|
|
17
|
+
//"allowJs": true,
|
|
18
|
+
"allowSyntheticDefaultImports": true,
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/* Linting */
|
|
22
|
+
"strict": true,
|
|
23
|
+
"noUnusedLocals": true,
|
|
24
|
+
"noUnusedParameters": true,
|
|
25
|
+
"noFallthroughCasesInSwitch": true,
|
|
26
|
+
"noUncheckedSideEffectImports": true,
|
|
27
|
+
|
|
28
|
+
/* Types */
|
|
29
|
+
"types": ["node", "react"],
|
|
30
|
+
"declaration": true,
|
|
31
|
+
"emitDeclarationOnly": false,
|
|
32
|
+
"outDir": "dist/types",
|
|
33
|
+
|
|
9
34
|
"paths": {
|
|
10
35
|
"@/*": ["./src/*"]
|
|
11
36
|
}
|
|
12
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"include": ["src/**/*"],
|
|
39
|
+
"exclude": ["node_modules", "dist", ".github", "scripts", ".storybook"]
|
|
13
40
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["./src/index.ts","./src/components/feature/graph-card.stories.tsx","./src/components/feature/graph-card.tsx","./src/components/feature/header.stories.tsx","./src/components/feature/header.tsx","./src/components/feature/login-form.stories.tsx","./src/components/feature/login-form.tsx","./src/components/feature/search-bar.stories.tsx","./src/components/feature/search-bar.tsx","./src/components/feature/wizard.stories.tsx","./src/components/feature/wizard.tsx","./src/components/ui/accordion.tsx","./src/components/ui/alert-dialog.stories.tsx","./src/components/ui/alert-dialog.tsx","./src/components/ui/alert.stories.tsx","./src/components/ui/alert.tsx","./src/components/ui/aspect-ratio.stories.tsx","./src/components/ui/aspect-ratio.tsx","./src/components/ui/avatar.stories.tsx","./src/components/ui/avatar.tsx","./src/components/ui/badge.stories.tsx","./src/components/ui/badge.tsx","./src/components/ui/breadcrumb.stories.tsx","./src/components/ui/breadcrumb.tsx","./src/components/ui/button.stories.tsx","./src/components/ui/button.tsx","./src/components/ui/card.stories.tsx","./src/components/ui/card.tsx","./src/components/ui/carousel.stories.tsx","./src/components/ui/carousel.tsx","./src/components/ui/chart.tsx","./src/components/ui/checkbox.stories.tsx","./src/components/ui/checkbox.tsx","./src/components/ui/collapsible.stories.tsx","./src/components/ui/collapsible.tsx","./src/components/ui/context-menu.stories.tsx","./src/components/ui/context-menu.tsx","./src/components/ui/dialog.stories.tsx","./src/components/ui/dialog.tsx","./src/components/ui/drawer.stories.tsx","./src/components/ui/drawer.tsx","./src/components/ui/dropdown-menu.stories.tsx","./src/components/ui/dropdown-menu.tsx","./src/components/ui/form.tsx","./src/components/ui/hover-card.stories.tsx","./src/components/ui/hover-card.tsx","./src/components/ui/input-otp.tsx","./src/components/ui/input.stories.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/menubar.tsx","./src/components/ui/navigation-menu.tsx","./src/components/ui/pagination.tsx","./src/components/ui/popover.tsx","./src/components/ui/progress.tsx","./src/components/ui/radio-group.tsx","./src/components/ui/resizable.tsx","./src/components/ui/scroll-area.tsx","./src/components/ui/select.tsx","./src/components/ui/separator.tsx","./src/components/ui/sheet.tsx","./src/components/ui/skeleton.tsx","./src/components/ui/slider.tsx","./src/components/ui/sonner.tsx","./src/components/ui/switch.tsx","./src/components/ui/table.stories.tsx","./src/components/ui/table.tsx","./src/components/ui/tabs.tsx","./src/components/ui/textarea.tsx","./src/components/ui/toast.tsx","./src/components/ui/toaster.tsx","./src/components/ui/toggle-group.tsx","./src/components/ui/toggle.tsx","./src/components/ui/tooltip.tsx","./src/hooks/use-mobile.tsx","./src/hooks/use-toast.ts","./src/lib/types.ts","./src/lib/utils.ts"],"version":"5.7.3"}
|
package/vite.config.ts
CHANGED
|
@@ -4,13 +4,11 @@ import dts from 'vite-plugin-dts'
|
|
|
4
4
|
import react from '@vitejs/plugin-react'
|
|
5
5
|
import tailwindcss from "@tailwindcss/vite"
|
|
6
6
|
|
|
7
|
-
import { peerDependencies } from './package.json'
|
|
8
|
-
|
|
9
7
|
// https://vite.dev/config/
|
|
10
8
|
export default defineConfig({
|
|
11
9
|
plugins: [
|
|
12
10
|
react(),
|
|
13
|
-
dts({ exclude: ["
|
|
11
|
+
dts({ exclude: ["**/*.stories.ts", "**/*.test.ts"], insertTypesEntry: true}),
|
|
14
12
|
tailwindcss()
|
|
15
13
|
],
|
|
16
14
|
resolve: {
|
|
@@ -20,13 +18,12 @@ export default defineConfig({
|
|
|
20
18
|
},
|
|
21
19
|
build: {
|
|
22
20
|
lib: {
|
|
23
|
-
entry: '
|
|
24
|
-
name: 'ui',
|
|
25
|
-
fileName: (format) => `ui.${format}.js`,
|
|
26
|
-
formats: ['es', 'cjs', 'umd'],
|
|
21
|
+
entry: 'src/index.ts',
|
|
22
|
+
name: 'ui-arreya-components',
|
|
23
|
+
fileName: (format) => `ui-arreya-components.${format}.js`,
|
|
27
24
|
},
|
|
28
25
|
rollupOptions: {
|
|
29
|
-
external:
|
|
26
|
+
external: ['react', 'react-dom'],
|
|
30
27
|
output: { globals: { react: 'React', 'react-dom': 'ReactDOM' } }
|
|
31
28
|
}
|
|
32
29
|
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Node.js Package
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
release:
|
|
8
|
-
types: [created]
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
build:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v4
|
|
15
|
-
- uses: actions/setup-node@v4
|
|
16
|
-
with:
|
|
17
|
-
node-version: 20
|
|
18
|
-
- run: npm ci
|
|
19
|
-
- run: npm test
|
|
20
|
-
- run: npm prepublish
|
|
21
|
-
|
|
22
|
-
publish-npm:
|
|
23
|
-
needs: build
|
|
24
|
-
runs-on: ubuntu-latest
|
|
25
|
-
steps:
|
|
26
|
-
- uses: actions/checkout@v4
|
|
27
|
-
- uses: actions/setup-node@v4
|
|
28
|
-
with:
|
|
29
|
-
node-version: 20
|
|
30
|
-
registry-url: https://registry.npmjs.org/
|
|
31
|
-
- run: npm ci
|
|
32
|
-
- run: npm prepublish
|
|
33
|
-
- run: npm publish
|
|
34
|
-
env:
|
|
35
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
package/.storybook/main.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { StorybookConfig } from '@storybook/react-vite';
|
|
2
|
-
|
|
3
|
-
const config: StorybookConfig = {
|
|
4
|
-
"stories": [
|
|
5
|
-
"../src/**/*.mdx",
|
|
6
|
-
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
|
|
7
|
-
],
|
|
8
|
-
"addons": [
|
|
9
|
-
"@storybook/addon-essentials",
|
|
10
|
-
"@chromatic-com/storybook",
|
|
11
|
-
"@storybook/experimental-addon-test"
|
|
12
|
-
],
|
|
13
|
-
"framework": {
|
|
14
|
-
"name": "@storybook/react-vite",
|
|
15
|
-
"options": {}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export default config;
|
package/.storybook/preview.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Preview } from '@storybook/react'
|
|
2
|
-
|
|
3
|
-
import '../src/index.css'
|
|
4
|
-
|
|
5
|
-
const preview: Preview = {
|
|
6
|
-
parameters: {
|
|
7
|
-
controls: {
|
|
8
|
-
matchers: {
|
|
9
|
-
color: /(background|color)$/i,
|
|
10
|
-
date: /Date$/i,
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default preview;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { beforeAll } from 'vitest';
|
|
2
|
-
import { setProjectAnnotations } from '@storybook/react';
|
|
3
|
-
import * as projectAnnotations from './preview';
|
|
4
|
-
|
|
5
|
-
// This is an important step to apply the right configuration when testing your stories.
|
|
6
|
-
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
|
|
7
|
-
const project = setProjectAnnotations([projectAnnotations]);
|
|
8
|
-
|
|
9
|
-
beforeAll(project.beforeAll);
|