@inkra/react 0.8.0 → 0.9.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 (48) hide show
  1. package/README.md +89 -0
  2. package/dist/PencilIcon.d.ts +14 -1
  3. package/dist/PencilIcon.js +88 -52
  4. package/dist/guide/index.d.ts +77 -0
  5. package/dist/guide/index.js +379 -0
  6. package/dist/i18n/catalog.d.ts +1 -1
  7. package/dist/i18n/catalog.js +6 -0
  8. package/dist/image-viewer/index.d.ts +2 -0
  9. package/dist/image-viewer/index.js +28 -28
  10. package/dist/index.d.ts +4 -0
  11. package/dist/index.js +4 -0
  12. package/dist/infinite-scroll/gesture.d.ts +19 -0
  13. package/dist/infinite-scroll/gesture.js +218 -0
  14. package/dist/infinite-scroll/index.d.ts +55 -0
  15. package/dist/infinite-scroll/index.js +543 -0
  16. package/dist/infinite-scroll/model.d.ts +33 -0
  17. package/dist/infinite-scroll/model.js +168 -0
  18. package/dist/internal/iconFill.d.ts +16 -0
  19. package/dist/internal/iconFill.js +275 -0
  20. package/dist/inventory-grid/index.js +13 -3
  21. package/dist/inventory-grid/outline.d.ts +9 -0
  22. package/dist/inventory-grid/outline.js +54 -0
  23. package/dist/loading/index.d.ts +58 -0
  24. package/dist/loading/index.js +188 -0
  25. package/dist/loading/locales.d.ts +15 -0
  26. package/dist/loading/locales.js +34 -0
  27. package/dist/loading/model.d.ts +6 -0
  28. package/dist/loading/model.js +29 -0
  29. package/dist/masonry/index.d.ts +25 -0
  30. package/dist/masonry/index.js +227 -0
  31. package/dist/masonry/layout.d.ts +35 -0
  32. package/dist/masonry/layout.js +67 -0
  33. package/dist/number-ticker/RollingValue.d.ts +6 -0
  34. package/dist/number-ticker/RollingValue.js +10 -0
  35. package/dist/number-ticker/index.d.ts +4 -0
  36. package/dist/number-ticker/index.js +55 -7
  37. package/dist/number-ticker/rolling.d.ts +35 -0
  38. package/dist/number-ticker/rolling.js +87 -0
  39. package/dist/styles/guide.css +202 -0
  40. package/dist/styles/image-viewer.css +20 -0
  41. package/dist/styles/infinite-scroll.css +171 -0
  42. package/dist/styles/inventory-grid.css +20 -8
  43. package/dist/styles/loading.css +348 -0
  44. package/dist/styles/masonry.css +68 -0
  45. package/dist/styles/number-ticker.css +46 -0
  46. package/dist/styles.css +879 -8
  47. package/dist/toast/manager.d.ts +4 -4
  48. package/package.json +26 -1
@@ -25,11 +25,11 @@ export interface ToastManager<Data extends object = any> {
25
25
  promise: <Value, T extends Data = Data>(value: Promise<Value>, options: ToastPromiseOptions<Value, T>) => Promise<Value>;
26
26
  }
27
27
  export declare function getToastRouter(manager: ToastManager): {
28
- queues: Record<"center" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "top-center" | "center-start" | "center-end" | "bottom-center", import("@base-ui/react/toast").ToastManager<object>>;
29
- controllers: Map<"center" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "top-center" | "center-start" | "center-end" | "bottom-center", import("@base-ui/react/toast").UseToastManagerReturnValue<object>>;
28
+ queues: Record<"center" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "bottom-center" | "top-center" | "center-start" | "center-end", import("@base-ui/react/toast").ToastManager<object>>;
29
+ controllers: Map<"center" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "bottom-center" | "top-center" | "center-start" | "center-end", import("@base-ui/react/toast").UseToastManagerReturnValue<object>>;
30
30
  engine: (placement: ToastPlacement) => import("@base-ui/react/toast").ToastManager<object> | import("@base-ui/react/toast").UseToastManagerReturnValue<object>;
31
- viewports: Map<"center" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "top-center" | "center-start" | "center-end" | "bottom-center", HTMLElement>;
32
- owners: Map<string, "center" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "top-center" | "center-start" | "center-end" | "bottom-center">;
31
+ viewports: Map<"center" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "bottom-center" | "top-center" | "center-start" | "center-end", HTMLElement>;
32
+ owners: Map<string, "center" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "bottom-center" | "top-center" | "center-start" | "center-end">;
33
33
  defaults: {
34
34
  placement: ToastPlacement;
35
35
  variant: ToastVariant;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkra/react",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Hand-drawn React controls with native semantics and deterministic decoration.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -169,6 +169,26 @@
169
169
  "import": "./dist/form/index.js",
170
170
  "default": "./dist/form/index.js"
171
171
  },
172
+ "./loading": {
173
+ "types": "./dist/loading/index.d.ts",
174
+ "import": "./dist/loading/index.js",
175
+ "default": "./dist/loading/index.js"
176
+ },
177
+ "./infinite-scroll": {
178
+ "types": "./dist/infinite-scroll/index.d.ts",
179
+ "import": "./dist/infinite-scroll/index.js",
180
+ "default": "./dist/infinite-scroll/index.js"
181
+ },
182
+ "./masonry": {
183
+ "types": "./dist/masonry/index.d.ts",
184
+ "import": "./dist/masonry/index.js",
185
+ "default": "./dist/masonry/index.js"
186
+ },
187
+ "./guide": {
188
+ "types": "./dist/guide/index.d.ts",
189
+ "import": "./dist/guide/index.js",
190
+ "default": "./dist/guide/index.js"
191
+ },
172
192
  "./heatmap": {
173
193
  "types": "./dist/heatmap/index.d.ts",
174
194
  "import": "./dist/heatmap/index.js",
@@ -423,6 +443,10 @@
423
443
  "./styles/empty.css": "./dist/styles/empty.css",
424
444
  "./styles/flip.css": "./dist/styles/flip.css",
425
445
  "./styles/form.css": "./dist/styles/form.css",
446
+ "./styles/guide.css": "./dist/styles/guide.css",
447
+ "./styles/loading.css": "./dist/styles/loading.css",
448
+ "./styles/infinite-scroll.css": "./dist/styles/infinite-scroll.css",
449
+ "./styles/masonry.css": "./dist/styles/masonry.css",
426
450
  "./styles/heatmap.css": "./dist/styles/heatmap.css",
427
451
  "./styles/hotkey.css": "./dist/styles/hotkey.css",
428
452
  "./styles/hover-card.css": "./dist/styles/hover-card.css",
@@ -537,6 +561,7 @@
537
561
  "leaflet": "^1.9.4",
538
562
  "lucide-react": "^1.60.0",
539
563
  "prismjs": "^1.30.0",
564
+ "react-aria": "3.53.1",
540
565
  "react-aria-components": "^1.22.1",
541
566
  "react-day-picker": "^9.14.0",
542
567
  "react-easy-crop": "^6.2.4",