@myghf/ui 0.1.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.
Files changed (85) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +31 -0
  3. package/dist/components/button/Button.vue.d.ts +80 -0
  4. package/dist/components/button/Button.vue.d.ts.map +1 -0
  5. package/dist/components/checkbox/Checkbox.vue.d.ts +14 -0
  6. package/dist/components/checkbox/Checkbox.vue.d.ts.map +1 -0
  7. package/dist/components/data-table/DataTable.vue.d.ts +92 -0
  8. package/dist/components/data-table/DataTable.vue.d.ts.map +1 -0
  9. package/dist/components/date-picker/DatePicker.vue.d.ts +21 -0
  10. package/dist/components/date-picker/DatePicker.vue.d.ts.map +1 -0
  11. package/dist/components/dialog/Dialog.vue.d.ts +36 -0
  12. package/dist/components/dialog/Dialog.vue.d.ts.map +1 -0
  13. package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts +22 -0
  14. package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts.map +1 -0
  15. package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts +27 -0
  16. package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -0
  17. package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +42 -0
  18. package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts.map +1 -0
  19. package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -0
  20. package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts.map +1 -0
  21. package/dist/components/icon/Icon.vue.d.ts +9 -0
  22. package/dist/components/icon/Icon.vue.d.ts.map +1 -0
  23. package/dist/components/input/Input.vue.d.ts +22 -0
  24. package/dist/components/input/Input.vue.d.ts.map +1 -0
  25. package/dist/components/password/Password.vue.d.ts +18 -0
  26. package/dist/components/password/Password.vue.d.ts.map +1 -0
  27. package/dist/components/select/Select.vue.d.ts +25 -0
  28. package/dist/components/select/Select.vue.d.ts.map +1 -0
  29. package/dist/components/select-button/SelectButton.vue.d.ts +80 -0
  30. package/dist/components/select-button/SelectButton.vue.d.ts.map +1 -0
  31. package/dist/components/table/Table.vue.d.ts +26 -0
  32. package/dist/components/table/Table.vue.d.ts.map +1 -0
  33. package/dist/components/table/TableBody.vue.d.ts +18 -0
  34. package/dist/components/table/TableBody.vue.d.ts.map +1 -0
  35. package/dist/components/table/TableCell.vue.d.ts +24 -0
  36. package/dist/components/table/TableCell.vue.d.ts.map +1 -0
  37. package/dist/components/table/TableEmpty.vue.d.ts +22 -0
  38. package/dist/components/table/TableEmpty.vue.d.ts.map +1 -0
  39. package/dist/components/table/TableHead.vue.d.ts +25 -0
  40. package/dist/components/table/TableHead.vue.d.ts.map +1 -0
  41. package/dist/components/table/TableHeader.vue.d.ts +18 -0
  42. package/dist/components/table/TableHeader.vue.d.ts.map +1 -0
  43. package/dist/components/table/TablePagination.vue.d.ts +25 -0
  44. package/dist/components/table/TablePagination.vue.d.ts.map +1 -0
  45. package/dist/components/table/TableRow.vue.d.ts +23 -0
  46. package/dist/components/table/TableRow.vue.d.ts.map +1 -0
  47. package/dist/components/tabs/Tabs.vue.d.ts +25 -0
  48. package/dist/components/tabs/Tabs.vue.d.ts.map +1 -0
  49. package/dist/components/tabs/TabsContent.vue.d.ts +24 -0
  50. package/dist/components/tabs/TabsContent.vue.d.ts.map +1 -0
  51. package/dist/components/tabs/TabsList.vue.d.ts +18 -0
  52. package/dist/components/tabs/TabsList.vue.d.ts.map +1 -0
  53. package/dist/components/tabs/TabsTrigger.vue.d.ts +22 -0
  54. package/dist/components/tabs/TabsTrigger.vue.d.ts.map +1 -0
  55. package/dist/components/tag/Tag.vue.d.ts +57 -0
  56. package/dist/components/tag/Tag.vue.d.ts.map +1 -0
  57. package/dist/components/textarea/Textarea.vue.d.ts +16 -0
  58. package/dist/components/textarea/Textarea.vue.d.ts.map +1 -0
  59. package/dist/components/transfer-list/TransferList.vue.d.ts +49 -0
  60. package/dist/components/transfer-list/TransferList.vue.d.ts.map +1 -0
  61. package/dist/components/tree-select/TreeSelect.vue.d.ts +27 -0
  62. package/dist/components/tree-select/TreeSelect.vue.d.ts.map +1 -0
  63. package/dist/components/tree-table/TreeTable.vue.d.ts +41 -0
  64. package/dist/components/tree-table/TreeTable.vue.d.ts.map +1 -0
  65. package/dist/index.d.ts +39 -0
  66. package/dist/index.d.ts.map +1 -0
  67. package/dist/index.js +1543 -0
  68. package/dist/index.js.map +1 -0
  69. package/dist/lib/cn.d.ts +3 -0
  70. package/dist/lib/cn.d.ts.map +1 -0
  71. package/dist/lib/date.d.ts +10 -0
  72. package/dist/lib/date.d.ts.map +1 -0
  73. package/dist/lib/icons.d.ts +8 -0
  74. package/dist/lib/icons.d.ts.map +1 -0
  75. package/dist/lib/pagination.d.ts +12 -0
  76. package/dist/lib/pagination.d.ts.map +1 -0
  77. package/dist/lib/table.d.ts +23 -0
  78. package/dist/lib/table.d.ts.map +1 -0
  79. package/dist/lib/tableInteractions.d.ts +16 -0
  80. package/dist/lib/tableInteractions.d.ts.map +1 -0
  81. package/dist/lib/tree.d.ts +28 -0
  82. package/dist/lib/tree.d.ts.map +1 -0
  83. package/dist/tailwindPreset.js +95 -0
  84. package/dist/tokens.css +81 -0
  85. package/package.json +67 -0
@@ -0,0 +1,95 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ export default {
3
+ theme: {
4
+ extend: {
5
+ fontFamily: {
6
+ sans: ['DM Sans', 'system-ui', 'sans-serif'],
7
+ },
8
+ colors: {
9
+ primary: {
10
+ 50: 'rgb(var(--ahc-primary-50) / <alpha-value>)',
11
+ 100: 'rgb(var(--ahc-primary-100) / <alpha-value>)',
12
+ 200: 'rgb(var(--ahc-primary-200) / <alpha-value>)',
13
+ 300: 'rgb(var(--ahc-primary-300) / <alpha-value>)',
14
+ 400: 'rgb(var(--ahc-primary-400) / <alpha-value>)',
15
+ 500: 'rgb(var(--ahc-primary-500) / <alpha-value>)',
16
+ 600: 'rgb(var(--ahc-primary-600) / <alpha-value>)',
17
+ 700: 'rgb(var(--ahc-primary-700) / <alpha-value>)',
18
+ 800: 'rgb(var(--ahc-primary-800) / <alpha-value>)',
19
+ 900: 'rgb(var(--ahc-primary-900) / <alpha-value>)',
20
+ },
21
+ secondary: {
22
+ 50: 'rgb(var(--ahc-secondary-50) / <alpha-value>)',
23
+ 100: 'rgb(var(--ahc-secondary-100) / <alpha-value>)',
24
+ 200: 'rgb(var(--ahc-secondary-200) / <alpha-value>)',
25
+ 300: 'rgb(var(--ahc-secondary-300) / <alpha-value>)',
26
+ 400: 'rgb(var(--ahc-secondary-400) / <alpha-value>)',
27
+ 500: 'rgb(var(--ahc-secondary-500) / <alpha-value>)',
28
+ 600: 'rgb(var(--ahc-secondary-600) / <alpha-value>)',
29
+ 700: 'rgb(var(--ahc-secondary-700) / <alpha-value>)',
30
+ 800: 'rgb(var(--ahc-secondary-800) / <alpha-value>)',
31
+ 900: 'rgb(var(--ahc-secondary-900) / <alpha-value>)',
32
+ },
33
+ success: {
34
+ 50: 'rgb(var(--ahc-success-50) / <alpha-value>)',
35
+ 100: 'rgb(var(--ahc-success-100) / <alpha-value>)',
36
+ 200: 'rgb(var(--ahc-success-200) / <alpha-value>)',
37
+ 300: 'rgb(var(--ahc-success-300) / <alpha-value>)',
38
+ 400: 'rgb(var(--ahc-success-400) / <alpha-value>)',
39
+ 500: 'rgb(var(--ahc-success-500) / <alpha-value>)',
40
+ 600: 'rgb(var(--ahc-success-600) / <alpha-value>)',
41
+ 700: 'rgb(var(--ahc-success-700) / <alpha-value>)',
42
+ 800: 'rgb(var(--ahc-success-800) / <alpha-value>)',
43
+ 900: 'rgb(var(--ahc-success-900) / <alpha-value>)',
44
+ },
45
+ warning: {
46
+ 50: 'rgb(var(--ahc-warning-50) / <alpha-value>)',
47
+ 100: 'rgb(var(--ahc-warning-100) / <alpha-value>)',
48
+ 200: 'rgb(var(--ahc-warning-200) / <alpha-value>)',
49
+ 300: 'rgb(var(--ahc-warning-300) / <alpha-value>)',
50
+ 400: 'rgb(var(--ahc-warning-400) / <alpha-value>)',
51
+ 500: 'rgb(var(--ahc-warning-500) / <alpha-value>)',
52
+ 600: 'rgb(var(--ahc-warning-600) / <alpha-value>)',
53
+ 700: 'rgb(var(--ahc-warning-700) / <alpha-value>)',
54
+ 800: 'rgb(var(--ahc-warning-800) / <alpha-value>)',
55
+ 900: 'rgb(var(--ahc-warning-900) / <alpha-value>)',
56
+ },
57
+ error: {
58
+ 50: 'rgb(var(--ahc-error-50) / <alpha-value>)',
59
+ 100: 'rgb(var(--ahc-error-100) / <alpha-value>)',
60
+ 200: 'rgb(var(--ahc-error-200) / <alpha-value>)',
61
+ 300: 'rgb(var(--ahc-error-300) / <alpha-value>)',
62
+ 400: 'rgb(var(--ahc-error-400) / <alpha-value>)',
63
+ 500: 'rgb(var(--ahc-error-500) / <alpha-value>)',
64
+ 600: 'rgb(var(--ahc-error-600) / <alpha-value>)',
65
+ 700: 'rgb(var(--ahc-error-700) / <alpha-value>)',
66
+ 800: 'rgb(var(--ahc-error-800) / <alpha-value>)',
67
+ 900: 'rgb(var(--ahc-error-900) / <alpha-value>)',
68
+ },
69
+ info: {
70
+ 50: 'rgb(var(--ahc-info-50) / <alpha-value>)',
71
+ 100: 'rgb(var(--ahc-info-100) / <alpha-value>)',
72
+ 200: 'rgb(var(--ahc-info-200) / <alpha-value>)',
73
+ 300: 'rgb(var(--ahc-info-300) / <alpha-value>)',
74
+ 400: 'rgb(var(--ahc-info-400) / <alpha-value>)',
75
+ 500: 'rgb(var(--ahc-info-500) / <alpha-value>)',
76
+ 600: 'rgb(var(--ahc-info-600) / <alpha-value>)',
77
+ 700: 'rgb(var(--ahc-info-700) / <alpha-value>)',
78
+ 800: 'rgb(var(--ahc-info-800) / <alpha-value>)',
79
+ 900: 'rgb(var(--ahc-info-900) / <alpha-value>)',
80
+ },
81
+ background: 'rgb(var(--ahc-background) / <alpha-value>)',
82
+ foreground: 'rgb(var(--ahc-foreground) / <alpha-value>)',
83
+ surface: 'rgb(var(--ahc-surface) / <alpha-value>)',
84
+ 'surface-muted': 'rgb(var(--ahc-surface-muted) / <alpha-value>)',
85
+ border: 'rgb(var(--ahc-border) / <alpha-value>)',
86
+ muted: 'rgb(var(--ahc-muted) / <alpha-value>)',
87
+ grey: 'rgb(var(--ahc-muted) / <alpha-value>)',
88
+ },
89
+ boxShadow: {
90
+ popover: '0 4px 12px -2px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06)',
91
+ dialog: '0 20px 25px -5px rgb(0 0 0 / 0.25)',
92
+ },
93
+ },
94
+ },
95
+ }
@@ -0,0 +1,81 @@
1
+ :root {
2
+ /* surfaces */
3
+ --ahc-background: 248 249 250; /* #f8f9fa */
4
+ --ahc-foreground: 15 23 42;
5
+ --ahc-surface: 255 255 255;
6
+ --ahc-surface-muted: 243 244 246;
7
+ --ahc-border: 229 231 235;
8
+ --ahc-muted: 156 163 175; /* #9ca3af (also the "grey" alias) */
9
+
10
+ /* brand: primary (blue) */
11
+ --ahc-primary-50: 240 249 253;
12
+ --ahc-primary-100: 217 241 250;
13
+ --ahc-primary-200: 173 225 244;
14
+ --ahc-primary-300: 115 204 236;
15
+ --ahc-primary-400: 56 182 228;
16
+ --ahc-primary-500: 0 162 221;
17
+ --ahc-primary-600: 0 130 177;
18
+ --ahc-primary-700: 0 100 137;
19
+ --ahc-primary-800: 0 73 99;
20
+ --ahc-primary-900: 0 49 66;
21
+
22
+ /* brand: secondary (plum) */
23
+ --ahc-secondary-50: 249 244 247;
24
+ --ahc-secondary-100: 240 228 235;
25
+ --ahc-secondary-200: 222 198 213;
26
+ --ahc-secondary-300: 198 157 183;
27
+ --ahc-secondary-400: 175 115 153;
28
+ --ahc-secondary-500: 152 76 124;
29
+ --ahc-secondary-600: 122 61 99;
30
+ --ahc-secondary-700: 94 47 77;
31
+ --ahc-secondary-800: 68 34 56;
32
+ --ahc-secondary-900: 46 23 37;
33
+
34
+ /* feedback: success (teal) */
35
+ --ahc-success-50: 240 250 249;
36
+ --ahc-success-100: 219 242 240;
37
+ --ahc-success-200: 178 227 224;
38
+ --ahc-success-300: 122 207 201;
39
+ --ahc-success-400: 66 186 179;
40
+ --ahc-success-500: 13 167 157;
41
+ --ahc-success-600: 10 134 126;
42
+ --ahc-success-700: 8 104 97;
43
+ --ahc-success-800: 6 75 71;
44
+ --ahc-success-900: 4 50 47;
45
+
46
+ /* feedback: warning (amber) */
47
+ --ahc-warning-50: 254 250 242;
48
+ --ahc-warning-100: 252 242 223;
49
+ --ahc-warning-200: 249 227 186;
50
+ --ahc-warning-300: 245 207 136;
51
+ --ahc-warning-400: 241 187 87;
52
+ --ahc-warning-500: 237 168 39;
53
+ --ahc-warning-600: 190 134 31;
54
+ --ahc-warning-700: 147 104 24;
55
+ --ahc-warning-800: 107 76 18;
56
+ --ahc-warning-900: 71 50 12;
57
+
58
+ /* feedback: error (pink; maps to PrimeVue "danger") */
59
+ --ahc-error-50: 254 240 245;
60
+ --ahc-error-100: 254 217 230;
61
+ --ahc-error-200: 252 173 201;
62
+ --ahc-error-300: 250 115 163;
63
+ --ahc-error-400: 247 56 124;
64
+ --ahc-error-500: 245 0 87;
65
+ --ahc-error-600: 196 0 70;
66
+ --ahc-error-700: 152 0 54;
67
+ --ahc-error-800: 110 0 39;
68
+ --ahc-error-900: 74 0 26;
69
+
70
+ /* feedback: info (same range as primary, kept separate for semantics) */
71
+ --ahc-info-50: 240 249 253;
72
+ --ahc-info-100: 217 241 250;
73
+ --ahc-info-200: 173 225 244;
74
+ --ahc-info-300: 115 204 236;
75
+ --ahc-info-400: 56 182 228;
76
+ --ahc-info-500: 0 162 221;
77
+ --ahc-info-600: 0 130 177;
78
+ --ahc-info-700: 0 100 137;
79
+ --ahc-info-800: 0 73 99;
80
+ --ahc-info-900: 0 49 66;
81
+ }
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@myghf/ui",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/myghf/ui.git"
10
+ },
11
+ "sideEffects": [
12
+ "**/*.css"
13
+ ],
14
+ "main": "./dist/index.js",
15
+ "module": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
21
+ },
22
+ "./tokens.css": "./dist/tokens.css",
23
+ "./tailwind-preset": {
24
+ "import": "./dist/tailwindPreset.js"
25
+ },
26
+ "./package.json": "./package.json"
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "scripts": {
35
+ "build": "vite build && cp src/tokens.css src/tailwindPreset.js dist/",
36
+ "typecheck": "vue-tsc --noEmit",
37
+ "test": "vitest run",
38
+ "prepublishOnly": "npm run build"
39
+ },
40
+ "dependencies": {
41
+ "@internationalized/date": "^3.8.0",
42
+ "@tanstack/vue-table": "^9.2.4",
43
+ "clsx": "^2.1.1",
44
+ "lucide-vue-next": "^0.525.0",
45
+ "reka-ui": "^2.2.0",
46
+ "tailwind-merge": "^3.3.1",
47
+ "tailwind-variants": "^1.0.0"
48
+ },
49
+ "peerDependencies": {
50
+ "tailwindcss": "^3.4.0",
51
+ "vue": "^3.5.0"
52
+ },
53
+ "devDependencies": {
54
+ "@types/node": "^24.0.0",
55
+ "@vitejs/plugin-vue": "^6.0.7",
56
+ "@vue/test-utils": "^2.5.1",
57
+ "@vue/tsconfig": "^0.9.1",
58
+ "jsdom": "^30.1.1",
59
+ "tailwindcss": "^3.4.19",
60
+ "typescript": "~6.0.2",
61
+ "vite": "^8.3.1",
62
+ "vite-plugin-dts": "^4.5.4",
63
+ "vitest": "^4.1.10",
64
+ "vue": "^3.5.39",
65
+ "vue-tsc": "^3.3.5"
66
+ }
67
+ }