@showwhat/configurator 1.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.
@@ -0,0 +1,115 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap");
2
+ @import url("https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600&display=swap");
3
+ @import "tailwindcss";
4
+
5
+ @custom-variant dark (&:where(.dark, .dark *));
6
+
7
+ @theme {
8
+ --color-background: #fafafa;
9
+ --color-foreground: #0a0a0a;
10
+ --color-card: #ffffff;
11
+ --color-card-foreground: #0a0a0a;
12
+ --color-popover: #ffffff;
13
+ --color-popover-foreground: #0a0a0a;
14
+ --color-primary: #f97316;
15
+ --color-primary-foreground: #ffffff;
16
+ --color-secondary: #f5f5f5;
17
+ --color-secondary-foreground: #0a0a0a;
18
+ --color-muted: #f5f5f5;
19
+ --color-muted-foreground: #737373;
20
+ --color-accent: #fff7ed;
21
+ --color-accent-foreground: #9a3412;
22
+ --color-destructive: #dc2626;
23
+ --color-destructive-foreground: #ffffff;
24
+ --color-border: #e5e5e5;
25
+ --color-input: #d4d4d4;
26
+ --color-ring: #f97316;
27
+ --color-surface: #f5f5f5;
28
+ --color-surface-foreground: #525252;
29
+ --color-status-active: #22c55e;
30
+ --color-status-inactive: #f59e0b;
31
+ --color-status-error: #ef4444;
32
+ --radius: 0.25rem;
33
+ --text-xs: 0.875rem;
34
+ --text-xs--line-height: 1.25rem;
35
+ --text-sm: 1rem;
36
+ --text-sm--line-height: 1.5rem;
37
+ --font-sans: "General Sans", ui-sans-serif, system-ui, sans-serif;
38
+ --font-mono:
39
+ "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
40
+ }
41
+
42
+ @layer base {
43
+ .dark {
44
+ --color-background: #0a0a0a;
45
+ --color-foreground: #e5e5e5;
46
+ --color-card: #171717;
47
+ --color-card-foreground: #e5e5e5;
48
+ --color-popover: #171717;
49
+ --color-popover-foreground: #e5e5e5;
50
+ --color-primary: #fb923c;
51
+ --color-primary-foreground: #0a0a0a;
52
+ --color-secondary: #262626;
53
+ --color-secondary-foreground: #d4d4d4;
54
+ --color-muted: #171717;
55
+ --color-muted-foreground: #a3a3a3;
56
+ --color-accent: #1a1a1a;
57
+ --color-accent-foreground: #fed7aa;
58
+ --color-destructive: #ef4444;
59
+ --color-destructive-foreground: #ffffff;
60
+ --color-border: #262626;
61
+ --color-input: #404040;
62
+ --color-ring: #fb923c;
63
+ --color-surface: #171717;
64
+ --color-surface-foreground: #a3a3a3;
65
+ --color-status-active: #4ade80;
66
+ --color-status-inactive: #fbbf24;
67
+ --color-status-error: #f87171;
68
+ }
69
+
70
+ * {
71
+ @apply border-border;
72
+ }
73
+
74
+ body {
75
+ @apply bg-background text-foreground antialiased;
76
+ font-feature-settings: "ss01", "ss02", "cv01";
77
+ }
78
+ }
79
+
80
+ @keyframes fade-up {
81
+ from {
82
+ opacity: 0;
83
+ transform: translateY(8px);
84
+ }
85
+ to {
86
+ opacity: 1;
87
+ transform: translateY(0);
88
+ }
89
+ }
90
+
91
+ @keyframes fade-in {
92
+ from {
93
+ opacity: 0;
94
+ }
95
+ to {
96
+ opacity: 1;
97
+ }
98
+ }
99
+
100
+ @keyframes slide-in-right {
101
+ from {
102
+ opacity: 0;
103
+ transform: translateX(8px);
104
+ }
105
+ to {
106
+ opacity: 1;
107
+ transform: translateX(0);
108
+ }
109
+ }
110
+
111
+ @theme inline {
112
+ --animate-fade-up: fade-up 200ms ease-out both;
113
+ --animate-fade-in: fade-in 300ms ease-out both;
114
+ --animate-slide-in-right: slide-in-right 200ms ease-out both;
115
+ }
package/package.json ADDED
@@ -0,0 +1,75 @@
1
+ {
2
+ "name": "@showwhat/configurator",
3
+ "version": "1.0.0",
4
+ "description": "Reusable configurator component library for showwhat feature flags",
5
+ "keywords": [
6
+ "feature-flags",
7
+ "configurator",
8
+ "react",
9
+ "ui-components",
10
+ "feature-management",
11
+ "showwhat"
12
+ ],
13
+ "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/yeojz/showwhat.git",
17
+ "directory": "packages/configurator"
18
+ },
19
+ "homepage": "https://showwhat.yeojz.dev",
20
+ "bugs": {
21
+ "url": "https://github.com/yeojz/showwhat/issues"
22
+ },
23
+ "type": "module",
24
+ "main": "./dist/index.js",
25
+ "types": "./dist/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "import": "./dist/index.js"
30
+ },
31
+ "./styles.css": "./dist/styles.css"
32
+ },
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "peerDependencies": {
37
+ "react": "^19.0.0",
38
+ "react-dom": "^19.0.0"
39
+ },
40
+ "dependencies": {
41
+ "@dnd-kit/core": "^6.3.1",
42
+ "@dnd-kit/sortable": "^10.0.0",
43
+ "@dnd-kit/utilities": "^3.2.2",
44
+ "class-variance-authority": "^0.7.1",
45
+ "clsx": "^2.1.1",
46
+ "lucide-react": "^0.577.0",
47
+ "radix-ui": "^1.4.3",
48
+ "tailwind-merge": "^3.3.0",
49
+ "showwhat": "1.0.0"
50
+ },
51
+ "devDependencies": {
52
+ "@tailwindcss/vite": "^4.1.7",
53
+ "@testing-library/jest-dom": "^6.6.3",
54
+ "@testing-library/react": "^16.3.0",
55
+ "@testing-library/user-event": "^14.6.1",
56
+ "@types/react": "^19.0.0",
57
+ "@types/react-dom": "^19.0.0",
58
+ "@vitest/coverage-v8": "^4.0.0",
59
+ "jsdom": "^28.0.0",
60
+ "react": "^19.0.0",
61
+ "react-dom": "^19.0.0",
62
+ "tailwindcss": "^4.1.7",
63
+ "tsup": "^8.0.0",
64
+ "typescript": "^5.4.0",
65
+ "vitest": "^4.0.0"
66
+ },
67
+ "scripts": {
68
+ "build": "tsup",
69
+ "clean": "rm -rf dist .tsbuildinfo",
70
+ "dev": "tsup --watch",
71
+ "lint": "eslint src",
72
+ "postbuild": "node scripts/assert-package-artifacts.mjs",
73
+ "typecheck": "tsc --noEmit"
74
+ }
75
+ }