shadboard 0.0.8 → 0.0.10

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/globals.css ADDED
@@ -0,0 +1,126 @@
1
+ @import 'tailwindcss';
2
+
3
+ @custom-variant dark (&:is(.dark *));
4
+
5
+ @theme inline {
6
+ --color-background: var(--background);
7
+ --color-foreground: var(--foreground);
8
+ --color-sidebar-ring: var(--sidebar-ring);
9
+ --color-sidebar-border: var(--sidebar-border);
10
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
11
+ --color-sidebar-accent: var(--sidebar-accent);
12
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
13
+ --color-sidebar-primary: var(--sidebar-primary);
14
+ --color-sidebar-foreground: var(--sidebar-foreground);
15
+ --color-sidebar: var(--sidebar);
16
+ --color-chart-5: var(--chart-5);
17
+ --color-chart-4: var(--chart-4);
18
+ --color-chart-3: var(--chart-3);
19
+ --color-chart-2: var(--chart-2);
20
+ --color-chart-1: var(--chart-1);
21
+ --color-ring: var(--ring);
22
+ --color-input: var(--input);
23
+ --color-border: var(--border);
24
+ --color-destructive: var(--destructive);
25
+ --color-accent-foreground: var(--accent-foreground);
26
+ --color-accent: var(--accent);
27
+ --color-muted-foreground: var(--muted-foreground);
28
+ --color-muted: var(--muted);
29
+ --color-secondary-foreground: var(--secondary-foreground);
30
+ --color-secondary: var(--secondary);
31
+ --color-primary-foreground: var(--primary-foreground);
32
+ --color-primary: var(--primary);
33
+ --color-popover-foreground: var(--popover-foreground);
34
+ --color-popover: var(--popover);
35
+ --color-card-foreground: var(--card-foreground);
36
+ --color-card: var(--card);
37
+ --radius-sm: calc(var(--radius) - 4px);
38
+ --radius-md: calc(var(--radius) - 2px);
39
+ --radius-lg: var(--radius);
40
+ --radius-xl: calc(var(--radius) + 4px);
41
+ }
42
+
43
+ :root {
44
+ --radius: 0.65rem;
45
+ --background: oklch(1 0 0);
46
+ --foreground: oklch(0.141 0.005 285.823);
47
+ --card: oklch(1 0 0);
48
+ --card-foreground: oklch(0.141 0.005 285.823);
49
+ --popover: oklch(1 0 0);
50
+ --popover-foreground: oklch(0.141 0.005 285.823);
51
+ --primary: oklch(0.488 0.243 264.376);
52
+ --primary-foreground: oklch(0.97 0.014 254.604);
53
+ --secondary: oklch(0.967 0.001 286.375);
54
+ --secondary-foreground: oklch(0.21 0.006 285.885);
55
+ --muted: oklch(0.967 0.001 286.375);
56
+ --muted-foreground: oklch(0.552 0.016 285.938);
57
+ --accent: oklch(0.967 0.001 286.375);
58
+ --accent-foreground: oklch(0.21 0.006 285.885);
59
+ --destructive: oklch(0.577 0.245 27.325);
60
+ --border: oklch(0.92 0.004 286.32);
61
+ --input: oklch(0.92 0.004 286.32);
62
+ --ring: oklch(0.708 0 0);
63
+ --chart-1: oklch(0.809 0.105 251.813);
64
+ --chart-2: oklch(0.623 0.214 259.815);
65
+ --chart-3: oklch(0.546 0.245 262.881);
66
+ --chart-4: oklch(0.488 0.243 264.376);
67
+ --chart-5: oklch(0.424 0.199 265.638);
68
+ --sidebar: oklch(0.985 0 0);
69
+ --sidebar-foreground: oklch(0.141 0.005 285.823);
70
+ --sidebar-primary: oklch(0.546 0.245 262.881);
71
+ --sidebar-primary-foreground: oklch(0.97 0.014 254.604);
72
+ --sidebar-accent: oklch(0.967 0.001 286.375);
73
+ --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
74
+ --sidebar-border: oklch(0.92 0.004 286.32);
75
+ --sidebar-ring: oklch(0.708 0 0);
76
+ }
77
+
78
+ .dark {
79
+ --background: oklch(0.141 0.005 285.823);
80
+ --foreground: oklch(0.985 0 0);
81
+ --card: oklch(0.21 0.006 285.885);
82
+ --card-foreground: oklch(0.985 0 0);
83
+ --popover: oklch(0.21 0.006 285.885);
84
+ --popover-foreground: oklch(0.985 0 0);
85
+ --primary: oklch(0.488 0.243 264.376);
86
+ --primary-foreground: oklch(0.97 0.014 254.604);
87
+ --secondary: oklch(0.274 0.006 286.033);
88
+ --secondary-foreground: oklch(0.985 0 0);
89
+ --muted: oklch(0.274 0.006 286.033);
90
+ --muted-foreground: oklch(0.705 0.015 286.067);
91
+ --accent: oklch(0.274 0.006 286.033);
92
+ --accent-foreground: oklch(0.985 0 0);
93
+ --destructive: oklch(0.704 0.191 22.216);
94
+ --border: oklch(1 0 0 / 10%);
95
+ --input: oklch(1 0 0 / 15%);
96
+ --ring: oklch(0.556 0 0);
97
+ --chart-1: oklch(0.809 0.105 251.813);
98
+ --chart-2: oklch(0.623 0.214 259.815);
99
+ --chart-3: oklch(0.546 0.245 262.881);
100
+ --chart-4: oklch(0.488 0.243 264.376);
101
+ --chart-5: oklch(0.424 0.199 265.638);
102
+ --sidebar: oklch(0.21 0.006 285.885);
103
+ --sidebar-foreground: oklch(0.985 0 0);
104
+ --sidebar-primary: oklch(0.623 0.214 259.815);
105
+ --sidebar-primary-foreground: oklch(0.97 0.014 254.604);
106
+ --sidebar-accent: oklch(0.274 0.006 286.033);
107
+ --sidebar-accent-foreground: oklch(0.985 0 0);
108
+ --sidebar-border: oklch(1 0 0 / 10%);
109
+ --sidebar-ring: oklch(0.439 0 0);
110
+ }
111
+
112
+ @layer base {
113
+ * {
114
+ @apply border-border outline-ring/50;
115
+ }
116
+ body {
117
+ @apply bg-background text-foreground;
118
+ }
119
+ }
120
+
121
+ @layer base {
122
+ button:not([disabled]),
123
+ [role='button']:not([disabled]) {
124
+ cursor: pointer;
125
+ }
126
+ }
package/package.json CHANGED
@@ -1,62 +1,46 @@
1
1
  {
2
2
  "name": "shadboard",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.mjs",
6
- "typings": "./dist/index.d.ts",
6
+ "types": "./dist/index.d.ts",
7
7
  "sideEffects": false,
8
8
  "files": [
9
9
  "dist",
10
10
  "tailwind.preset.cjs",
11
11
  "globals.css"
12
12
  ],
13
- "exports": {
14
- ".": {
15
- "import": {
16
- "types": "./dist/index.d.mts",
17
- "default": "./dist/index.mjs"
18
- },
19
- "require": {
20
- "types": "./dist/index.d.cts",
21
- "default": "./dist/index.cjs"
22
- }
23
- },
24
- "./tailwind-preset": "./tailwind.preset.cjs",
25
- "./globals.css": "./globals.css"
26
- },
27
13
  "scripts": {
28
14
  "build": "tsup",
29
15
  "clean": "rm -rf dist",
30
16
  "lint": "eslint src --ext .ts,.tsx",
31
17
  "lint:fix": "eslint src --ext .ts,.tsx --fix",
32
- "test": "vitest",
33
- "test:watch": "vitest --watch",
34
- "test:coverage": "vitest run --coverage"
18
+ "test": "vitest"
35
19
  },
36
20
  "peerDependencies": {
37
- "@radix-ui/react-avatar": "^1.1.11",
38
- "@radix-ui/react-checkbox": "^1.3.3",
39
- "@radix-ui/react-collapsible": "^1.1.12",
40
- "@radix-ui/react-dialog": "^1.1.15",
41
- "@radix-ui/react-dropdown-menu": "^2.1.16",
42
- "@radix-ui/react-label": "^2.1.8",
43
- "@radix-ui/react-popover": "^1.1.15",
44
- "@radix-ui/react-separator": "^1.1.8",
45
- "@radix-ui/react-slot": "^1.2.4",
46
- "@radix-ui/react-tooltip": "^1.2.8",
47
- "@refinedev/cli": "^2.16.50",
48
- "@refinedev/core": "^5.0.6",
49
- "@refinedev/ui-tests": "^2.0.1",
50
- "class-variance-authority": "^0.7.1",
51
- "clsx": "^2.1.1",
52
- "dayjs": "^1.11.19",
53
- "lucide-react": "^0.556.0",
54
- "next-themes": "^0.4.6",
55
- "react": "^19.0.0",
56
- "react-dom": "^19.0.0",
57
- "sonner": "^2.0.7",
58
- "tailwind-merge": "^3.4.0",
59
- "tailwindcss": "^4.1.17"
21
+ "@radix-ui/react-avatar": "^1.1.0",
22
+ "@radix-ui/react-checkbox": "^1.3.0",
23
+ "@radix-ui/react-collapsible": "^1.1.0",
24
+ "@radix-ui/react-dialog": "^1.1.0",
25
+ "@radix-ui/react-dropdown-menu": "^2.1.0",
26
+ "@radix-ui/react-label": "^2.1.0",
27
+ "@radix-ui/react-popover": "^1.1.0",
28
+ "@radix-ui/react-separator": "^1.1.0",
29
+ "@radix-ui/react-slot": "^1.2.0",
30
+ "@radix-ui/react-tooltip": "^1.2.0",
31
+ "@refinedev/cli": "^2.16.0",
32
+ "@refinedev/core": "^5.0.0",
33
+ "@refinedev/ui-tests": "^2.0.0",
34
+ "class-variance-authority": "^0.7.0",
35
+ "clsx": "^2.1.0",
36
+ "dayjs": "^1.11.0",
37
+ "lucide-react": ">=0.556.0",
38
+ "next-themes": "^0.4.0",
39
+ "react": "^18.0.0 || ^19.0.0",
40
+ "react-dom": "^18.0.0 || ^19.0.0",
41
+ "sonner": "^2.0.0",
42
+ "tailwind-merge": "^3.0.0",
43
+ "tailwindcss": "^4.0.0"
60
44
  },
61
45
  "devDependencies": {
62
46
  "@radix-ui/react-avatar": "^1.1.11",
@@ -72,9 +56,11 @@
72
56
  "@refinedev/cli": "^2.16.50",
73
57
  "@refinedev/core": "^5.0.6",
74
58
  "@refinedev/react-hook-form": "^5.0.3",
59
+ "@refinedev/react-table": "^6.0.1",
75
60
  "@refinedev/ui-tests": "^2.0.1",
76
61
  "@refinedev/ui-types": "^2.0.1",
77
62
  "@tailwindcss/postcss": "^4",
63
+ "@tanstack/react-table": "^8.21.3",
78
64
  "@testing-library/dom": "^10.4.1",
79
65
  "@testing-library/jest-dom": "^6.9.1",
80
66
  "@testing-library/react": "^16.3.0",
@@ -0,0 +1,103 @@
1
+ // tailwind.preset.cjs
2
+ const plugin = require('tailwindcss/plugin')
3
+
4
+ /** @type {import('tailwindcss').Config} */
5
+ module.exports = {
6
+ darkMode: ['class'],
7
+
8
+ theme: {
9
+ container: {
10
+ center: true,
11
+ padding: '2rem',
12
+ screens: {
13
+ '2xl': '1400px',
14
+ },
15
+ },
16
+
17
+ extend: {
18
+ colors: {
19
+ border: 'hsl(var(--border))',
20
+ input: 'hsl(var(--input))',
21
+ ring: 'hsl(var(--ring))',
22
+ background: 'hsl(var(--background))',
23
+ foreground: 'hsl(var(--foreground))',
24
+
25
+ primary: {
26
+ DEFAULT: 'hsl(var(--primary))',
27
+ foreground: 'hsl(var(--primary-foreground))',
28
+ },
29
+
30
+ secondary: {
31
+ DEFAULT: 'hsl(var(--secondary))',
32
+ foreground: 'hsl(var(--secondary-foreground))',
33
+ },
34
+
35
+ destructive: {
36
+ DEFAULT: 'hsl(var(--destructive))',
37
+ foreground: 'hsl(var(--destructive-foreground))',
38
+ },
39
+
40
+ muted: {
41
+ DEFAULT: 'hsl(var(--muted))',
42
+ foreground: 'hsl(var(--muted-foreground))',
43
+ },
44
+
45
+ accent: {
46
+ DEFAULT: 'hsl(var(--accent))',
47
+ foreground: 'hsl(var(--accent-foreground))',
48
+ },
49
+
50
+ popover: {
51
+ DEFAULT: 'hsl(var(--popover))',
52
+ foreground: 'hsl(var(--popover-foreground))',
53
+ },
54
+
55
+ card: {
56
+ DEFAULT: 'hsl(var(--card))',
57
+ foreground: 'hsl(var(--card-foreground))',
58
+ },
59
+ },
60
+
61
+ borderRadius: {
62
+ lg: 'var(--radius)',
63
+ md: 'calc(var(--radius) - 2px)',
64
+ sm: 'calc(var(--radius) - 4px)',
65
+ },
66
+ },
67
+ },
68
+
69
+ plugins: [
70
+ require('tailwindcss-animate'),
71
+ require('@tailwindcss/scrollbar'),
72
+
73
+ plugin(function ({ addBase }) {
74
+ addBase({
75
+ ':root': {
76
+ '--background': '0 0% 100%',
77
+ '--foreground': '222.2 47.4% 11.2%',
78
+
79
+ '--primary': '221.2 83.2% 53.3%',
80
+ '--primary-foreground': '210 40% 98%',
81
+
82
+ '--secondary': '210 40% 96%',
83
+ '--secondary-foreground': '222.2 47.4% 11.2%',
84
+
85
+ '--muted': '210 40% 96%',
86
+ '--muted-foreground': '215 20.2% 65.1%',
87
+
88
+ '--accent': '210 40% 96%',
89
+ '--accent-foreground': '222.2 47.4% 11.2%',
90
+
91
+ '--destructive': '0 72% 51%',
92
+ '--destructive-foreground': '210 40% 98%',
93
+
94
+ '--border': '214.3 31.8% 91.4%',
95
+ '--input': '214.3 31.8% 91.4%',
96
+ '--ring': '221.2 83.2% 53.3%',
97
+
98
+ '--radius': '0.5rem',
99
+ },
100
+ })
101
+ }),
102
+ ],
103
+ }