@inkra/react 0.6.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.
- package/README.md +166 -1
- package/dist/Button.js +1 -1
- package/dist/PencilIcon.d.ts +14 -1
- package/dist/PencilIcon.js +88 -52
- package/dist/PencilText.js +8 -0
- package/dist/form/Textarea.d.ts +4 -0
- package/dist/form/Textarea.js +14 -8
- package/dist/form/index.d.ts +1 -1
- package/dist/form/textareaSizing.d.ts +29 -0
- package/dist/form/textareaSizing.js +153 -0
- package/dist/guide/index.d.ts +77 -0
- package/dist/guide/index.js +379 -0
- package/dist/i18n/catalog.d.ts +1 -1
- package/dist/i18n/catalog.js +15 -0
- package/dist/image-viewer/index.d.ts +2 -0
- package/dist/image-viewer/index.js +28 -28
- package/dist/index.d.ts +6 -0
- package/dist/index.js +5 -0
- package/dist/infinite-scroll/gesture.d.ts +19 -0
- package/dist/infinite-scroll/gesture.js +218 -0
- package/dist/infinite-scroll/index.d.ts +55 -0
- package/dist/infinite-scroll/index.js +543 -0
- package/dist/infinite-scroll/model.d.ts +33 -0
- package/dist/infinite-scroll/model.js +168 -0
- package/dist/internal/iconFill.d.ts +16 -0
- package/dist/internal/iconFill.js +275 -0
- package/dist/inventory-grid/index.d.ts +35 -0
- package/dist/inventory-grid/index.js +215 -0
- package/dist/inventory-grid/model.d.ts +56 -0
- package/dist/inventory-grid/model.js +93 -0
- package/dist/inventory-grid/outline.d.ts +9 -0
- package/dist/inventory-grid/outline.js +54 -0
- package/dist/layout/GridBoard.d.ts +22 -0
- package/dist/layout/GridBoard.js +113 -0
- package/dist/layout/GridResizable.d.ts +31 -0
- package/dist/layout/GridResizable.js +35 -0
- package/dist/layout/index.d.ts +19 -4
- package/dist/layout/index.js +45 -9
- package/dist/layout/swipeNavigation.d.ts +15 -0
- package/dist/layout/swipeNavigation.js +121 -0
- package/dist/loading/index.d.ts +58 -0
- package/dist/loading/index.js +188 -0
- package/dist/loading/locales.d.ts +15 -0
- package/dist/loading/locales.js +34 -0
- package/dist/loading/model.d.ts +6 -0
- package/dist/loading/model.js +29 -0
- package/dist/masonry/index.d.ts +25 -0
- package/dist/masonry/index.js +227 -0
- package/dist/masonry/layout.d.ts +35 -0
- package/dist/masonry/layout.js +67 -0
- package/dist/number-ticker/RollingValue.d.ts +6 -0
- package/dist/number-ticker/RollingValue.js +10 -0
- package/dist/number-ticker/index.d.ts +4 -0
- package/dist/number-ticker/index.js +55 -7
- package/dist/number-ticker/rolling.d.ts +35 -0
- package/dist/number-ticker/rolling.js +87 -0
- package/dist/pagination/index.d.ts +17 -0
- package/dist/pagination/index.js +30 -6
- package/dist/styles/base.css +9 -1
- package/dist/styles/form.css +10 -0
- package/dist/styles/guide.css +202 -0
- package/dist/styles/image-viewer.css +20 -0
- package/dist/styles/infinite-scroll.css +171 -0
- package/dist/styles/inventory-grid.css +43 -0
- package/dist/styles/layout.css +85 -0
- package/dist/styles/loading.css +348 -0
- package/dist/styles/masonry.css +68 -0
- package/dist/styles/number-ticker.css +46 -0
- package/dist/styles/pagination.css +10 -0
- package/dist/styles.css +1162 -146
- package/dist/toast/manager.d.ts +4 -4
- package/package.json +33 -1
package/dist/toast/manager.d.ts
CHANGED
|
@@ -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" | "
|
|
29
|
-
controllers: Map<"center" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "
|
|
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" | "
|
|
32
|
-
owners: Map<string, "center" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "
|
|
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.
|
|
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",
|
|
@@ -199,6 +219,11 @@
|
|
|
199
219
|
"import": "./dist/input-number/index.js",
|
|
200
220
|
"default": "./dist/input-number/index.js"
|
|
201
221
|
},
|
|
222
|
+
"./inventory-grid": {
|
|
223
|
+
"types": "./dist/inventory-grid/index.d.ts",
|
|
224
|
+
"import": "./dist/inventory-grid/index.js",
|
|
225
|
+
"default": "./dist/inventory-grid/index.js"
|
|
226
|
+
},
|
|
202
227
|
"./journey-map": {
|
|
203
228
|
"types": "./dist/journey-map/index.d.ts",
|
|
204
229
|
"import": "./dist/journey-map/index.js",
|
|
@@ -418,12 +443,17 @@
|
|
|
418
443
|
"./styles/empty.css": "./dist/styles/empty.css",
|
|
419
444
|
"./styles/flip.css": "./dist/styles/flip.css",
|
|
420
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",
|
|
421
450
|
"./styles/heatmap.css": "./dist/styles/heatmap.css",
|
|
422
451
|
"./styles/hotkey.css": "./dist/styles/hotkey.css",
|
|
423
452
|
"./styles/hover-card.css": "./dist/styles/hover-card.css",
|
|
424
453
|
"./styles/image-cropper.css": "./dist/styles/image-cropper.css",
|
|
425
454
|
"./styles/image-viewer.css": "./dist/styles/image-viewer.css",
|
|
426
455
|
"./styles/input-number.css": "./dist/styles/input-number.css",
|
|
456
|
+
"./styles/inventory-grid.css": "./dist/styles/inventory-grid.css",
|
|
427
457
|
"./styles/journey-map.css": "./dist/styles/journey-map.css",
|
|
428
458
|
"./styles/keypad.css": "./dist/styles/keypad.css",
|
|
429
459
|
"./styles/layout.css": "./dist/styles/layout.css",
|
|
@@ -531,9 +561,11 @@
|
|
|
531
561
|
"leaflet": "^1.9.4",
|
|
532
562
|
"lucide-react": "^1.60.0",
|
|
533
563
|
"prismjs": "^1.30.0",
|
|
564
|
+
"react-aria": "3.53.1",
|
|
534
565
|
"react-aria-components": "^1.22.1",
|
|
535
566
|
"react-day-picker": "^9.14.0",
|
|
536
567
|
"react-easy-crop": "^6.2.4",
|
|
568
|
+
"react-grid-layout": "^2.3.0",
|
|
537
569
|
"react-markdown": "^10.1.0",
|
|
538
570
|
"react-resizable-panels": "^4.14.8",
|
|
539
571
|
"react-zoom-pan-pinch": "^4.2.0",
|