@akira-io/ui 1.0.0 → 1.1.1

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 (73) hide show
  1. package/README.md +15 -10
  2. package/dist/blocks.d.ts +162 -9
  3. package/dist/blocks.js +1410 -36
  4. package/dist/blocks.js.map +1 -1
  5. package/dist/button-Bj6My68b.d.ts +17 -0
  6. package/dist/chunk-2WIIRDHT.js +83 -0
  7. package/dist/chunk-2WIIRDHT.js.map +1 -0
  8. package/dist/{chunk-A2SIZOEA.js → chunk-4SOQAVUP.js} +125 -45
  9. package/dist/chunk-4SOQAVUP.js.map +1 -0
  10. package/dist/chunk-5AJFQ6C4.js +35 -0
  11. package/dist/chunk-5AJFQ6C4.js.map +1 -0
  12. package/dist/chunk-CFDDAFPJ.js +1243 -0
  13. package/dist/chunk-CFDDAFPJ.js.map +1 -0
  14. package/dist/chunk-FWQFB37J.js +45 -0
  15. package/dist/chunk-FWQFB37J.js.map +1 -0
  16. package/dist/chunk-IQMRJXEO.js +59 -0
  17. package/dist/chunk-IQMRJXEO.js.map +1 -0
  18. package/dist/chunk-L2H5GIF7.js +22 -0
  19. package/dist/chunk-L2H5GIF7.js.map +1 -0
  20. package/dist/chunk-ODYCBCKS.js +290 -0
  21. package/dist/chunk-ODYCBCKS.js.map +1 -0
  22. package/dist/{chunk-5MQWJVM2.js → chunk-QHZWW55M.js} +383 -326
  23. package/dist/chunk-QHZWW55M.js.map +1 -0
  24. package/dist/chunk-RPCL7VFQ.js +123 -0
  25. package/dist/chunk-RPCL7VFQ.js.map +1 -0
  26. package/dist/chunk-T2INZOCM.js +165 -0
  27. package/dist/chunk-T2INZOCM.js.map +1 -0
  28. package/dist/chunk-TGF54WAO.js +29 -0
  29. package/dist/chunk-TGF54WAO.js.map +1 -0
  30. package/dist/chunk-XZCC6MTE.js +26 -0
  31. package/dist/chunk-XZCC6MTE.js.map +1 -0
  32. package/dist/{chunk-UXL33CZ4.js → chunk-YOVY3KT6.js} +13 -11
  33. package/dist/chunk-YOVY3KT6.js.map +1 -0
  34. package/dist/code.d.ts +9 -0
  35. package/dist/code.js +650 -0
  36. package/dist/code.js.map +1 -0
  37. package/dist/context-YWbxMH0C.d.ts +383 -0
  38. package/dist/editor.d.ts +128 -0
  39. package/dist/editor.js +450 -0
  40. package/dist/editor.js.map +1 -0
  41. package/dist/index.d.ts +298 -222
  42. package/dist/index.js +1300 -670
  43. package/dist/index.js.map +1 -1
  44. package/dist/inertia.d.ts +47 -2
  45. package/dist/inertia.js +138 -7
  46. package/dist/inertia.js.map +1 -1
  47. package/dist/input-Dpi7pXeR.d.ts +6 -0
  48. package/dist/json-viewer-BARA2RCW.d.ts +51 -0
  49. package/dist/{language-Bft6rBBt.d.ts → language-Dgjr9bm3.d.ts} +1 -1
  50. package/dist/locales/pt.d.ts +26 -4
  51. package/dist/locales/pt.js +127 -1
  52. package/dist/locales/pt.js.map +1 -1
  53. package/dist/password-input-DcXX7SG9.d.ts +51 -0
  54. package/dist/shells.d.ts +45 -7
  55. package/dist/shells.js +96 -60
  56. package/dist/shells.js.map +1 -1
  57. package/dist/sidebar-DqkFRUxQ.d.ts +81 -0
  58. package/dist/types-B-eGPoFD.d.ts +111 -0
  59. package/dist/types-cmBL8zOc.d.ts +51 -0
  60. package/package.json +170 -130
  61. package/theme.css +20 -0
  62. package/themes/nosferry.css +4 -0
  63. package/dist/chunk-42BJBH56.js +0 -786
  64. package/dist/chunk-42BJBH56.js.map +0 -1
  65. package/dist/chunk-5MQWJVM2.js.map +0 -1
  66. package/dist/chunk-A2SIZOEA.js.map +0 -1
  67. package/dist/chunk-POE7OYET.js +0 -96
  68. package/dist/chunk-POE7OYET.js.map +0 -1
  69. package/dist/chunk-UXL33CZ4.js.map +0 -1
  70. package/dist/date-range-filter-QEa8fhUM.d.ts +0 -149
  71. package/dist/sidebar-BDhG9SUU.d.ts +0 -88
  72. package/dist/types-Cno1_Ijx.d.ts +0 -40
  73. package/dist/types-cOieac8G.d.ts +0 -77
package/package.json CHANGED
@@ -1,142 +1,182 @@
1
1
  {
2
- "name": "@akira-io/ui",
3
- "version": "1.0.0",
4
- "description": "Open-source React component library: the full shadcn/ui set on an OKLCH design-token system with swappable brand palettes.",
5
- "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/akira-io/ui.git"
2
+ "name": "@akira-io/ui",
3
+ "version": "1.1.1",
4
+ "description": "Open-source React component library: the full shadcn/ui set on an OKLCH design-token system with swappable brand palettes.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/akira-io/ui.git"
9
+ },
10
+ "homepage": "https://ui.akira-io.com",
11
+ "bugs": {
12
+ "url": "https://github.com/akira-io/ui/issues"
13
+ },
14
+ "keywords": [
15
+ "react",
16
+ "component-library",
17
+ "design-system",
18
+ "design-tokens",
19
+ "shadcn-ui",
20
+ "radix-ui",
21
+ "tailwindcss",
22
+ "oklch",
23
+ "accessible",
24
+ "typescript"
25
+ ],
26
+ "engines": {
27
+ "node": ">=20"
28
+ },
29
+ "type": "module",
30
+ "sideEffects": [
31
+ "**/*.css"
32
+ ],
33
+ "files": [
34
+ "dist",
35
+ "theme.css",
36
+ "themes"
37
+ ],
38
+ "exports": {
39
+ ".": {
40
+ "types": "./dist/index.d.ts",
41
+ "import": "./dist/index.js"
9
42
  },
10
- "homepage": "https://ui.akira-io.com",
11
- "bugs": {
12
- "url": "https://github.com/akira-io/ui/issues"
43
+ "./code": {
44
+ "types": "./dist/code.d.ts",
45
+ "import": "./dist/code.js"
13
46
  },
14
- "keywords": [
15
- "react",
16
- "component-library",
17
- "design-system",
18
- "design-tokens",
19
- "shadcn-ui",
20
- "radix-ui",
21
- "tailwindcss",
22
- "oklch",
23
- "accessible",
24
- "typescript"
25
- ],
26
- "engines": {
27
- "node": ">=20"
47
+ "./blocks": {
48
+ "types": "./dist/blocks.d.ts",
49
+ "import": "./dist/blocks.js"
28
50
  },
29
- "type": "module",
30
- "sideEffects": [
31
- "**/*.css"
32
- ],
33
- "files": [
34
- "dist",
35
- "theme.css",
36
- "themes"
37
- ],
38
- "exports": {
39
- ".": {
40
- "types": "./dist/index.d.ts",
41
- "import": "./dist/index.js"
42
- },
43
- "./blocks": {
44
- "types": "./dist/blocks.d.ts",
45
- "import": "./dist/blocks.js"
46
- },
47
- "./shells": {
48
- "types": "./dist/shells.d.ts",
49
- "import": "./dist/shells.js"
50
- },
51
- "./inertia": {
52
- "types": "./dist/inertia.d.ts",
53
- "import": "./dist/inertia.js"
54
- },
55
- "./locales/pt": {
56
- "types": "./dist/locales/pt.d.ts",
57
- "import": "./dist/locales/pt.js"
58
- },
59
- "./theme.css": "./theme.css",
60
- "./themes/*.css": "./themes/*.css"
51
+ "./editor": {
52
+ "types": "./dist/editor.d.ts",
53
+ "import": "./dist/editor.js"
61
54
  },
62
- "publishConfig": {
63
- "access": "public"
55
+ "./shells": {
56
+ "types": "./dist/shells.d.ts",
57
+ "import": "./dist/shells.js"
64
58
  },
65
- "scripts": {
66
- "build": "tsup",
67
- "dev": "tsup --watch",
68
- "test": "vitest run",
69
- "typecheck": "tsc --noEmit",
70
- "format": "prettier --write \"src/**/*.{ts,tsx}\" \"tests/**/*.ts\" theme.css",
71
- "format:check": "prettier --check \"src/**/*.{ts,tsx}\" \"tests/**/*.ts\" theme.css",
72
- "prepublishOnly": "bun run build"
59
+ "./inertia": {
60
+ "types": "./dist/inertia.d.ts",
61
+ "import": "./dist/inertia.js"
73
62
  },
74
- "dependencies": {
75
- "@radix-ui/react-accordion": "^1.2.12",
76
- "@radix-ui/react-avatar": "^1.1.11",
77
- "@radix-ui/react-checkbox": "^1.3.3",
78
- "@radix-ui/react-collapsible": "^1.1.12",
79
- "@radix-ui/react-dialog": "^1.1.15",
80
- "@radix-ui/react-dropdown-menu": "^2.1.16",
81
- "@radix-ui/react-label": "^2.1.8",
82
- "@radix-ui/react-navigation-menu": "^1.2.14",
83
- "@radix-ui/react-popover": "^1.1.15",
84
- "@radix-ui/react-scroll-area": "^1.2.10",
85
- "@radix-ui/react-select": "^2.2.6",
86
- "@radix-ui/react-separator": "^1.1.8",
87
- "@radix-ui/react-slot": "^1.2.4",
88
- "@radix-ui/react-switch": "^1.2.6",
89
- "@radix-ui/react-tabs": "^1.1.13",
90
- "@radix-ui/react-toggle": "^1.1.10",
91
- "@radix-ui/react-toggle-group": "^1.1.11",
92
- "@radix-ui/react-tooltip": "^1.2.8",
93
- "@tanstack/react-table": "^8.21.3",
94
- "class-variance-authority": "^0.7.1",
95
- "clsx": "^2.1.1",
96
- "cmdk": "^1.1.1",
97
- "date-fns": "^4.4.0",
98
- "driver.js": "^1.8.0",
99
- "embla-carousel-react": "^8.6.0",
100
- "input-otp": "^1.4.2",
101
- "lucide-react": "^0.563.0",
102
- "radix-ui": "^1.6.0",
103
- "react-day-picker": "^10.0.1",
104
- "react-resizable-panels": "^4",
105
- "sonner": "^2.0.7",
106
- "tailwind-merge": "^3.4.0",
107
- "vaul": "^1.1.2"
63
+ "./locales/pt": {
64
+ "types": "./dist/locales/pt.d.ts",
65
+ "import": "./dist/locales/pt.js"
108
66
  },
109
- "peerDependencies": {
110
- "@inertiajs/react": "^1.0.0 || ^2.0.0 || ^3.0.0",
111
- "react": "^18.0.0 || ^19.0.0",
112
- "react-dom": "^18.0.0 || ^19.0.0",
113
- "react-hook-form": "^7.0.0",
114
- "recharts": "^3.8.0",
115
- "tailwindcss-animate": "^1.0.0"
67
+ "./theme.css": "./theme.css",
68
+ "./themes/*.css": "./themes/*.css"
69
+ },
70
+ "publishConfig": {
71
+ "access": "public"
72
+ },
73
+ "scripts": {
74
+ "build": "tsup",
75
+ "dev": "tsup --watch",
76
+ "test": "vitest run",
77
+ "typecheck": "tsc --noEmit",
78
+ "format": "prettier --write \"src/**/*.{ts,tsx}\" \"tests/**/*.{ts,tsx}\" theme.css",
79
+ "format:check": "prettier --check \"src/**/*.{ts,tsx}\" \"tests/**/*.{ts,tsx}\" theme.css",
80
+ "prepublishOnly": "bun run build"
81
+ },
82
+ "dependencies": {
83
+ "@radix-ui/react-accordion": "^1.2.12",
84
+ "@radix-ui/react-avatar": "^1.1.11",
85
+ "@radix-ui/react-checkbox": "^1.3.3",
86
+ "@radix-ui/react-collapsible": "^1.1.12",
87
+ "@radix-ui/react-dialog": "^1.1.15",
88
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
89
+ "@radix-ui/react-label": "^2.1.8",
90
+ "@radix-ui/react-navigation-menu": "^1.2.14",
91
+ "@radix-ui/react-popover": "^1.1.15",
92
+ "@radix-ui/react-scroll-area": "^1.2.10",
93
+ "@radix-ui/react-select": "^2.2.6",
94
+ "@radix-ui/react-separator": "^1.1.8",
95
+ "@radix-ui/react-slot": "^1.2.4",
96
+ "@radix-ui/react-switch": "^1.2.6",
97
+ "@radix-ui/react-tabs": "^1.1.13",
98
+ "@radix-ui/react-toggle": "^1.1.10",
99
+ "@radix-ui/react-toggle-group": "^1.1.11",
100
+ "@radix-ui/react-tooltip": "^1.2.8",
101
+ "class-variance-authority": "^0.7.1",
102
+ "clsx": "^2.1.1",
103
+ "cmdk": "^1.1.1",
104
+ "date-fns": "^4.4.0",
105
+ "driver.js": "^1.8.0",
106
+ "embla-carousel-react": "^8.6.0",
107
+ "input-otp": "^1.4.2",
108
+ "lucide-react": "^0.563.0",
109
+ "radix-ui": "^1.6.0",
110
+ "react-day-picker": "^10.0.1",
111
+ "react-resizable-panels": "^4",
112
+ "sonner": "^2.0.7",
113
+ "tailwind-merge": "^3.4.0",
114
+ "vaul": "^1.1.2"
115
+ },
116
+ "peerDependencies": {
117
+ "@inertiajs/react": "^1.0.0 || ^2.0.0 || ^3.0.0",
118
+ "@tanstack/react-table": "^8.21.3",
119
+ "@tiptap/core": "^3.29.2",
120
+ "@tiptap/pm": "^3.29.2",
121
+ "@tiptap/react": "^3.29.2",
122
+ "@tiptap/starter-kit": "^3.29.2",
123
+ "react": "^18.0.0 || ^19.0.0",
124
+ "react-dom": "^18.0.0 || ^19.0.0",
125
+ "react-hook-form": "^7.0.0",
126
+ "recharts": "^3.8.0",
127
+ "shiki": "^1.0.0 || ^2.0.0 || ^3.0.0",
128
+ "tailwindcss-animate": "^1.0.0"
129
+ },
130
+ "peerDependenciesMeta": {
131
+ "@inertiajs/react": {
132
+ "optional": true
116
133
  },
117
- "peerDependenciesMeta": {
118
- "@inertiajs/react": {
119
- "optional": true
120
- },
121
- "react-hook-form": {
122
- "optional": true
123
- },
124
- "recharts": {
125
- "optional": true
126
- }
134
+ "@tanstack/react-table": {
135
+ "optional": true
127
136
  },
128
- "devDependencies": {
129
- "@types/react": "^19.2.10",
130
- "@types/react-dom": "^19.2.3",
131
- "prettier": "^3.8.1",
132
- "prettier-plugin-organize-imports": "^4.3.0",
133
- "prettier-plugin-tailwindcss": "^0.7.2",
134
- "react": "^19.2.4",
135
- "react-dom": "^19.2.4",
136
- "react-hook-form": "^7.71.0",
137
- "recharts": "3.8.0",
138
- "tsup": "^8.5.0",
139
- "typescript": "^5.9.2",
140
- "vitest": "^4.1.10"
137
+ "@tiptap/core": {
138
+ "optional": true
139
+ },
140
+ "@tiptap/pm": {
141
+ "optional": true
142
+ },
143
+ "@tiptap/react": {
144
+ "optional": true
145
+ },
146
+ "@tiptap/starter-kit": {
147
+ "optional": true
148
+ },
149
+ "react-hook-form": {
150
+ "optional": true
151
+ },
152
+ "recharts": {
153
+ "optional": true
154
+ },
155
+ "shiki": {
156
+ "optional": true
141
157
  }
158
+ },
159
+ "devDependencies": {
160
+ "@tanstack/react-table": "^8.21.3",
161
+ "@testing-library/jest-dom": "^7.0.0",
162
+ "@testing-library/react": "^16.3.2",
163
+ "@testing-library/user-event": "^14.6.3",
164
+ "@tiptap/core": "3.29.2",
165
+ "@tiptap/pm": "3.29.2",
166
+ "@tiptap/react": "3.29.2",
167
+ "@tiptap/starter-kit": "3.29.2",
168
+ "@types/react": "^19.2.10",
169
+ "@types/react-dom": "^19.2.3",
170
+ "jsdom": "^30.0.1",
171
+ "prettier": "^3.8.1",
172
+ "prettier-plugin-organize-imports": "^4.3.0",
173
+ "prettier-plugin-tailwindcss": "^0.7.2",
174
+ "react": "^19.2.4",
175
+ "react-dom": "^19.2.4",
176
+ "react-hook-form": "^7.71.0",
177
+ "recharts": "3.8.0",
178
+ "tsup": "^8.5.0",
179
+ "typescript": "^5.9.2",
180
+ "vitest": "^4.1.10"
181
+ }
142
182
  }
package/theme.css CHANGED
@@ -52,6 +52,10 @@
52
52
  --color-destructive-foreground: var(--destructive-foreground);
53
53
  --color-success: var(--success);
54
54
  --color-success-foreground: var(--success-foreground);
55
+ --color-warning: var(--warning);
56
+ --color-warning-foreground: var(--warning-foreground);
57
+ --color-info: var(--info);
58
+ --color-info-foreground: var(--info-foreground);
55
59
  --color-border: var(--border);
56
60
  --color-surface-recessed: var(--surface-recessed);
57
61
  --color-surface-control: var(--surface-control);
@@ -89,6 +93,10 @@
89
93
  --destructive-foreground: oklch(0.985 0 0);
90
94
  --success: oklch(0.508 0.118 165.612);
91
95
  --success-foreground: oklch(0.985 0 0);
96
+ --warning: oklch(0.54 0.115 70);
97
+ --warning-foreground: oklch(0.985 0 0);
98
+ --info: oklch(0.52 0.17 258);
99
+ --info-foreground: oklch(0.985 0 0);
92
100
  --border: oklch(0.885 0 0);
93
101
  --surface-recessed: oklch(0.97 0 0);
94
102
  --surface-control: oklch(0.955 0 0 / 0.9);
@@ -135,6 +143,10 @@
135
143
  --destructive-foreground: oklch(0.161 0.027 294);
136
144
  --success: oklch(0.765 0.177 163.223);
137
145
  --success-foreground: oklch(0.161 0.027 294);
146
+ --warning: oklch(0.79 0.15 80);
147
+ --warning-foreground: oklch(0.161 0.027 294);
148
+ --info: oklch(0.72 0.14 255);
149
+ --info-foreground: oklch(0.161 0.027 294);
138
150
  --border: oklch(0.28 0 0);
139
151
  --surface-recessed: oklch(0.17 0 0);
140
152
  --surface-control: oklch(0.269 0 0 / 0.9);
@@ -222,3 +234,11 @@
222
234
  .driver-popover.akira-tour .driver-popover-arrow-side-right {
223
235
  border-right-color: var(--popover);
224
236
  }
237
+
238
+ [data-slot='code-block-source'] span {
239
+ color: var(--shiki-light);
240
+ }
241
+
242
+ .dark [data-slot='code-block-source'] span {
243
+ color: var(--shiki-dark);
244
+ }
@@ -1,9 +1,13 @@
1
1
  [data-brand='nosferry'] {
2
2
  --primary: oklch(0.577 0.245 27.325); /* red-600 */
3
3
  --primary-foreground: oklch(0.985 0 0);
4
+ --destructive: oklch(0.565 0.21 34);
5
+ --destructive-foreground: oklch(0.985 0 0);
4
6
  }
5
7
 
6
8
  [data-brand='nosferry'].dark {
7
9
  --primary: oklch(0.704 0.191 22.216); /* red-400 */
8
10
  --primary-foreground: oklch(0.161 0.027 294);
11
+ --destructive: oklch(0.72 0.18 38);
12
+ --destructive-foreground: oklch(0.161 0.027 294);
9
13
  }