@azmr/ui 0.1.0 → 0.3.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 (95) hide show
  1. package/README.md +171 -0
  2. package/dist/avatar.d.ts +58 -0
  3. package/dist/avatar.js +84 -0
  4. package/dist/breadcrumb.d.ts +47 -0
  5. package/dist/breadcrumb.js +120 -0
  6. package/dist/button-CYt2Zw3D.d.ts +64 -0
  7. package/dist/button.d.ts +54 -0
  8. package/dist/button.js +19 -0
  9. package/dist/chunk-2RIWL363.js +27 -0
  10. package/dist/chunk-2TQSHVXA.js +12 -0
  11. package/dist/chunk-7EOSDFS3.js +10 -0
  12. package/dist/chunk-C2HKIPLQ.js +118 -0
  13. package/dist/chunk-CAJLW6K2.js +16 -0
  14. package/dist/chunk-CZJZYN54.js +36 -0
  15. package/dist/chunk-EE4V6XMB.js +35 -0
  16. package/dist/chunk-EFHRRLAW.js +211 -0
  17. package/dist/chunk-GLB75NT3.js +21 -0
  18. package/dist/chunk-GX2YEJ43.js +36 -0
  19. package/dist/chunk-LTOLV67A.js +19 -0
  20. package/dist/chunk-LZMX27IZ.js +10 -0
  21. package/dist/chunk-NIIDYIZA.js +1 -0
  22. package/dist/chunk-Q4PPM2SU.js +97 -0
  23. package/dist/chunk-WVE2E37B.js +20 -0
  24. package/dist/chunk-XRZHP6BD.js +92 -0
  25. package/dist/disclosure.d.ts +72 -0
  26. package/dist/disclosure.js +221 -0
  27. package/dist/display.d.ts +111 -0
  28. package/dist/display.js +237 -0
  29. package/dist/features-dom-MCGKRLN5.js +7 -0
  30. package/dist/features-max-COBTQCO6.js +7 -0
  31. package/dist/floating.d.ts +81 -0
  32. package/dist/floating.js +231 -0
  33. package/dist/hooks.d.ts +33 -0
  34. package/dist/hooks.js +55 -0
  35. package/dist/icons/lucide.d.ts +77 -0
  36. package/dist/icons/lucide.js +135 -0
  37. package/dist/icons/mui-map.d.ts +1268 -0
  38. package/dist/icons/mui-map.js +352 -0
  39. package/dist/icons.d.ts +48 -0
  40. package/dist/icons.js +19 -0
  41. package/dist/index.d.ts +238 -3
  42. package/dist/index.js +242 -15
  43. package/dist/input.d.ts +14 -0
  44. package/dist/input.js +8 -0
  45. package/dist/layout/mui-map.d.ts +80 -0
  46. package/dist/layout/mui-map.js +104 -0
  47. package/dist/layout.d.ts +89 -0
  48. package/dist/layout.js +455 -0
  49. package/dist/lib.d.ts +11 -0
  50. package/dist/lib.js +6 -0
  51. package/dist/menu.d.ts +105 -0
  52. package/dist/menu.js +56 -0
  53. package/dist/modal.d.ts +105 -0
  54. package/dist/modal.js +273 -0
  55. package/dist/motion.css +295 -0
  56. package/dist/motion.d.ts +49 -0
  57. package/dist/motion.js +48 -0
  58. package/dist/pagination.d.ts +82 -0
  59. package/dist/pagination.js +211 -0
  60. package/dist/presets.d.ts +97 -0
  61. package/dist/presets.js +94 -0
  62. package/dist/progress.d.ts +70 -0
  63. package/dist/progress.js +138 -0
  64. package/dist/react.d.ts +81 -0
  65. package/dist/react.js +281 -0
  66. package/dist/responsive-YJBnvsjt.d.ts +69 -0
  67. package/dist/scroll-area.d.ts +30 -0
  68. package/dist/scroll-area.js +80 -0
  69. package/dist/shared-Fkx-sjPt.d.ts +15 -0
  70. package/dist/spinner.d.ts +18 -0
  71. package/dist/spinner.js +39 -0
  72. package/dist/split-button.d.ts +32 -0
  73. package/dist/split-button.js +54 -0
  74. package/dist/stepper.d.ts +27 -0
  75. package/dist/stepper.js +104 -0
  76. package/dist/styles.css +24 -0
  77. package/dist/table.d.ts +52 -0
  78. package/dist/table.js +124 -0
  79. package/dist/theme.d.ts +111 -0
  80. package/dist/theme.js +414 -0
  81. package/dist/toast.d.ts +77 -0
  82. package/dist/toast.js +203 -0
  83. package/dist/toggle.d.ts +55 -0
  84. package/dist/toggle.js +88 -0
  85. package/dist/tokens.css +337 -0
  86. package/dist/transition.d.ts +51 -0
  87. package/dist/transition.js +79 -0
  88. package/dist/types-BBudf463.d.ts +39 -0
  89. package/dist/typography/mui-map.d.ts +91 -0
  90. package/dist/typography/mui-map.js +62 -0
  91. package/dist/typography.d.ts +90 -0
  92. package/dist/typography.js +193 -0
  93. package/dist/useSignal-C-3ZGURN.d.ts +21 -0
  94. package/dist/variants-De0c0ucO.d.ts +60 -0
  95. package/package.json +179 -13
@@ -0,0 +1,60 @@
1
+ /**
2
+ * The type scale: every variant's semantic element and its classes, in one place. Colours are
3
+ * tokens only. Classes are spelled out in full so the Tailwind scanner finds them in `dist`.
4
+ */
5
+ declare const typographyVariants: {
6
+ readonly h1: {
7
+ readonly element: "h1";
8
+ readonly classes: "scroll-m-20 text-4xl font-bold tracking-tight text-foreground";
9
+ };
10
+ readonly h2: {
11
+ readonly element: "h2";
12
+ readonly classes: "scroll-m-20 text-3xl font-semibold tracking-tight text-foreground";
13
+ };
14
+ readonly h3: {
15
+ readonly element: "h3";
16
+ readonly classes: "scroll-m-20 text-2xl font-semibold tracking-tight text-foreground";
17
+ };
18
+ readonly h4: {
19
+ readonly element: "h4";
20
+ readonly classes: "scroll-m-20 text-xl font-semibold tracking-tight text-foreground";
21
+ };
22
+ readonly h5: {
23
+ readonly element: "h5";
24
+ readonly classes: "scroll-m-20 text-lg font-semibold text-foreground";
25
+ };
26
+ readonly h6: {
27
+ readonly element: "h6";
28
+ readonly classes: "scroll-m-20 text-base font-semibold text-foreground";
29
+ };
30
+ readonly lead: {
31
+ readonly element: "p";
32
+ readonly classes: "text-lg text-muted-foreground";
33
+ };
34
+ readonly body: {
35
+ readonly element: "p";
36
+ readonly classes: "text-base";
37
+ };
38
+ readonly small: {
39
+ readonly element: "p";
40
+ readonly classes: "text-sm";
41
+ };
42
+ readonly caption: {
43
+ readonly element: "span";
44
+ readonly classes: "text-xs text-muted-foreground";
45
+ };
46
+ readonly overline: {
47
+ readonly element: "span";
48
+ readonly classes: "text-xs font-medium uppercase tracking-wider text-muted-foreground";
49
+ };
50
+ };
51
+ type TypographyVariant = keyof typeof typographyVariants;
52
+ declare const ALIGN_CLASSES: {
53
+ readonly left: "text-left";
54
+ readonly center: "text-center";
55
+ readonly right: "text-right";
56
+ readonly justify: "text-justify";
57
+ };
58
+ type TypographyAlign = keyof typeof ALIGN_CLASSES;
59
+
60
+ export { type TypographyVariant as T, type TypographyAlign as a, typographyVariants as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azmr/ui",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "React UI components wired to reactive Signals — Grid, useSignal",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "homepage": "https://docs.azmara.io",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/azmara-labs/azmara-platform.git",
11
+ "url": "git+https://github.com/azmara-labs/platform.git",
12
12
  "directory": "packages/ui"
13
13
  },
14
14
  "keywords": [
@@ -30,36 +30,202 @@
30
30
  ],
31
31
  "exports": {
32
32
  ".": {
33
- "import": "./dist/index.js",
34
- "types": "./dist/index.d.ts"
35
- }
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.js"
35
+ },
36
+ "./hooks": {
37
+ "types": "./dist/hooks.d.ts",
38
+ "import": "./dist/hooks.js"
39
+ },
40
+ "./lib": {
41
+ "types": "./dist/lib.d.ts",
42
+ "import": "./dist/lib.js"
43
+ },
44
+ "./react": {
45
+ "types": "./dist/react.d.ts",
46
+ "import": "./dist/react.js"
47
+ },
48
+ "./theme": {
49
+ "types": "./dist/theme.d.ts",
50
+ "import": "./dist/theme.js"
51
+ },
52
+ "./button": {
53
+ "types": "./dist/button.d.ts",
54
+ "import": "./dist/button.js"
55
+ },
56
+ "./input": {
57
+ "types": "./dist/input.d.ts",
58
+ "import": "./dist/input.js"
59
+ },
60
+ "./spinner": {
61
+ "types": "./dist/spinner.d.ts",
62
+ "import": "./dist/spinner.js"
63
+ },
64
+ "./icons": {
65
+ "types": "./dist/icons.d.ts",
66
+ "import": "./dist/icons.js"
67
+ },
68
+ "./icons/lucide": {
69
+ "types": "./dist/icons/lucide.d.ts",
70
+ "import": "./dist/icons/lucide.js"
71
+ },
72
+ "./icons/mui-map": {
73
+ "types": "./dist/icons/mui-map.d.ts",
74
+ "import": "./dist/icons/mui-map.js"
75
+ },
76
+ "./typography": {
77
+ "types": "./dist/typography.d.ts",
78
+ "import": "./dist/typography.js"
79
+ },
80
+ "./typography/mui-map": {
81
+ "types": "./dist/typography/mui-map.d.ts",
82
+ "import": "./dist/typography/mui-map.js"
83
+ },
84
+ "./layout": {
85
+ "types": "./dist/layout.d.ts",
86
+ "import": "./dist/layout.js"
87
+ },
88
+ "./layout/mui-map": {
89
+ "types": "./dist/layout/mui-map.d.ts",
90
+ "import": "./dist/layout/mui-map.js"
91
+ },
92
+ "./scroll-area": {
93
+ "types": "./dist/scroll-area.d.ts",
94
+ "import": "./dist/scroll-area.js"
95
+ },
96
+ "./display": {
97
+ "types": "./dist/display.d.ts",
98
+ "import": "./dist/display.js"
99
+ },
100
+ "./progress": {
101
+ "types": "./dist/progress.d.ts",
102
+ "import": "./dist/progress.js"
103
+ },
104
+ "./avatar": {
105
+ "types": "./dist/avatar.d.ts",
106
+ "import": "./dist/avatar.js"
107
+ },
108
+ "./disclosure": {
109
+ "types": "./dist/disclosure.d.ts",
110
+ "import": "./dist/disclosure.js"
111
+ },
112
+ "./floating": {
113
+ "types": "./dist/floating.d.ts",
114
+ "import": "./dist/floating.js"
115
+ },
116
+ "./modal": {
117
+ "types": "./dist/modal.d.ts",
118
+ "import": "./dist/modal.js"
119
+ },
120
+ "./menu": {
121
+ "types": "./dist/menu.d.ts",
122
+ "import": "./dist/menu.js"
123
+ },
124
+ "./toast": {
125
+ "types": "./dist/toast.d.ts",
126
+ "import": "./dist/toast.js"
127
+ },
128
+ "./toggle": {
129
+ "types": "./dist/toggle.d.ts",
130
+ "import": "./dist/toggle.js"
131
+ },
132
+ "./split-button": {
133
+ "types": "./dist/split-button.d.ts",
134
+ "import": "./dist/split-button.js"
135
+ },
136
+ "./table": {
137
+ "types": "./dist/table.d.ts",
138
+ "import": "./dist/table.js"
139
+ },
140
+ "./breadcrumb": {
141
+ "types": "./dist/breadcrumb.d.ts",
142
+ "import": "./dist/breadcrumb.js"
143
+ },
144
+ "./pagination": {
145
+ "types": "./dist/pagination.d.ts",
146
+ "import": "./dist/pagination.js"
147
+ },
148
+ "./stepper": {
149
+ "types": "./dist/stepper.d.ts",
150
+ "import": "./dist/stepper.js"
151
+ },
152
+ "./transition": {
153
+ "types": "./dist/transition.d.ts",
154
+ "import": "./dist/transition.js"
155
+ },
156
+ "./presets": {
157
+ "types": "./dist/presets.d.ts",
158
+ "import": "./dist/presets.js"
159
+ },
160
+ "./motion": {
161
+ "types": "./dist/motion.d.ts",
162
+ "import": "./dist/motion.js"
163
+ },
164
+ "./styles.css": "./dist/styles.css",
165
+ "./tokens.css": "./dist/tokens.css"
36
166
  },
167
+ "sideEffects": [
168
+ "**/*.css"
169
+ ],
37
170
  "dependencies": {
38
- "@azmr/core": "0.0.2"
171
+ "@base-ui/react": "^1.9.0",
172
+ "class-variance-authority": "^0.7.1",
173
+ "clsx": "^2.1.1",
174
+ "lucide-react": "^1.57.0",
175
+ "tailwind-merge": "^3.7.0"
39
176
  },
40
177
  "peerDependencies": {
178
+ "@azmr/core": ">=0.0.2 <1.0.0",
41
179
  "react": "^18.0.0 || ^19.0.0",
42
- "react-dom": "^18.0.0 || ^19.0.0"
180
+ "react-dom": "^18.0.0 || ^19.0.0",
181
+ "motion": "^14.0.0"
43
182
  },
44
183
  "devDependencies": {
184
+ "@mui/icons-material": "^9.5.0",
185
+ "@size-limit/preset-small-lib": "^14.2.0",
186
+ "@tabler/icons-react": "^3.49.0",
187
+ "@tailwindcss/postcss": "^4.3.3",
188
+ "@testing-library/dom": "^10.4.2",
189
+ "@testing-library/user-event": "^14.6.8",
190
+ "@types/culori": "^4.0.1",
191
+ "@types/node": "^26.1.1",
45
192
  "@types/react": "^19.2.17",
46
193
  "@types/react-dom": "^19.2.3",
47
194
  "@vitest/browser": "^4.1.10",
195
+ "axe-core": "^4.14.0",
196
+ "culori": "^4.0.2",
197
+ "esbuild": "^0.28.1",
48
198
  "jsdom": "^29.1.1",
49
- "react": "^19.2.7",
50
- "react-dom": "^19.2.7",
199
+ "motion": "^14.2.0",
200
+ "postcss": "^8.5.30",
201
+ "react": "^19.2.8",
202
+ "react-dom": "^19.2.8",
203
+ "react-hook-form": "^7.90.0",
204
+ "shadcn": "4.21.4",
205
+ "size-limit": "^14.2.0",
206
+ "tailwindcss": "^4.3.3",
51
207
  "tsup": "^8.5.1",
52
208
  "typescript": "^5.7.3",
53
- "vitest": "^4.1.10"
209
+ "vitest": "^4.1.11",
210
+ "@azmr/core": "0.1.0"
54
211
  },
55
212
  "publishConfig": {
56
213
  "access": "public"
57
214
  },
215
+ "peerDependenciesMeta": {
216
+ "motion": {
217
+ "optional": true
218
+ }
219
+ },
58
220
  "scripts": {
59
- "build": "tsup src/index.ts --format esm --dts --clean",
60
- "dev": "tsup src/index.ts --format esm --dts --watch",
221
+ "build": "node scripts/clean.mjs && tsup && node scripts/copy-css.mjs && node scripts/verify-dist.mjs",
222
+ "dev": "tsup --watch --onSuccess \"node scripts/copy-css.mjs\"",
61
223
  "check-types": "tsc --noEmit",
62
224
  "test": "vitest run",
63
- "clean": "rm -rf dist"
225
+ "clean": "rm -rf dist",
226
+ "size": "size-limit && node scripts/check-css-size.mjs",
227
+ "verify:consumer": "node scripts/verify-consumer.mjs",
228
+ "build:registry": "node scripts/build-registry.mjs",
229
+ "verify:registry": "node scripts/verify-registry.mjs"
64
230
  }
65
231
  }