@strapi/ui-primitives 1.7.10 → 1.8.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.
- package/dist/components/Combobox/Combobox.d.ts +6 -2
- package/dist/components/Select/Select.d.ts +20 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +608 -591
- package/package.json +15 -15
- package/dist/components/Collection/Collection.d.ts +0 -34
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/ui-primitives",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
"test:watch": "jest -c jest.config.js --watchAll"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@radix-ui/number": "^1.0.
|
|
26
|
+
"@radix-ui/number": "^1.0.1",
|
|
27
27
|
"@radix-ui/primitive": "^1.0.0",
|
|
28
|
-
"@radix-ui/react-collection": "1.0.
|
|
29
|
-
"@radix-ui/react-compose-refs": "^1.0.
|
|
28
|
+
"@radix-ui/react-collection": "1.0.3",
|
|
29
|
+
"@radix-ui/react-compose-refs": "^1.0.1",
|
|
30
30
|
"@radix-ui/react-context": "^1.0.0",
|
|
31
31
|
"@radix-ui/react-direction": "1.0.0",
|
|
32
|
-
"@radix-ui/react-dismissable-layer": "^1.0.
|
|
33
|
-
"@radix-ui/react-focus-guards": "1.0.
|
|
34
|
-
"@radix-ui/react-focus-scope": "1.0.
|
|
35
|
-
"@radix-ui/react-id": "^1.0.
|
|
36
|
-
"@radix-ui/react-popper": "^1.1.
|
|
37
|
-
"@radix-ui/react-portal": "^1.0.
|
|
38
|
-
"@radix-ui/react-primitive": "^1.0.
|
|
39
|
-
"@radix-ui/react-slot": "^1.0.
|
|
32
|
+
"@radix-ui/react-dismissable-layer": "^1.0.4",
|
|
33
|
+
"@radix-ui/react-focus-guards": "1.0.1",
|
|
34
|
+
"@radix-ui/react-focus-scope": "1.0.3",
|
|
35
|
+
"@radix-ui/react-id": "^1.0.1",
|
|
36
|
+
"@radix-ui/react-popper": "^1.1.2",
|
|
37
|
+
"@radix-ui/react-portal": "^1.0.3",
|
|
38
|
+
"@radix-ui/react-primitive": "^1.0.3",
|
|
39
|
+
"@radix-ui/react-slot": "^1.0.2",
|
|
40
40
|
"@radix-ui/react-use-callback-ref": "^1.0.0",
|
|
41
|
-
"@radix-ui/react-use-controllable-state": "^1.0.
|
|
41
|
+
"@radix-ui/react-use-controllable-state": "^1.0.1",
|
|
42
42
|
"@radix-ui/react-use-layout-effect": "1.0.0",
|
|
43
43
|
"@radix-ui/react-use-previous": "^1.0.1",
|
|
44
|
-
"@radix-ui/react-visually-hidden": "^1.0.
|
|
44
|
+
"@radix-ui/react-visually-hidden": "^1.0.3",
|
|
45
45
|
"aria-hidden": "^1.2.3",
|
|
46
46
|
"react-remove-scroll": "^2.5.5"
|
|
47
47
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"vite-plugin-dts": "^2.3.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "203b39b5eae476962807fa10b73ed0731d694da6"
|
|
56
56
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An internal fork of Radix UI's `Collection` component.
|
|
3
|
-
*
|
|
4
|
-
* We've added a subscription API to allow us to subscribe to changes in the collection via the useCollection hook.
|
|
5
|
-
*/
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
import type * as Radix from '@radix-ui/react-primitive';
|
|
8
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
9
|
-
type SlotProps = Radix.ComponentPropsWithoutRef<typeof Slot>;
|
|
10
|
-
interface CollectionProps extends SlotProps {
|
|
11
|
-
scope: any;
|
|
12
|
-
}
|
|
13
|
-
declare function createCollection<ItemElement extends HTMLElement, ItemData = {}>(name: string): readonly [{
|
|
14
|
-
readonly Provider: React.FC<{
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
scope: any;
|
|
17
|
-
}>;
|
|
18
|
-
readonly Slot: React.ForwardRefExoticComponent<CollectionProps & React.RefAttributes<HTMLElement>>;
|
|
19
|
-
readonly ItemSlot: React.ForwardRefExoticComponent<React.PropsWithoutRef<ItemData & {
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
scope: any;
|
|
22
|
-
}> & React.RefAttributes<ItemElement>>;
|
|
23
|
-
}, (scope: any) => {
|
|
24
|
-
getItems: () => ({
|
|
25
|
-
ref: React.RefObject<ItemElement>;
|
|
26
|
-
} & ItemData)[];
|
|
27
|
-
subscribe: (listener: (newState: ({
|
|
28
|
-
ref: React.RefObject<ItemElement>;
|
|
29
|
-
} & ItemData)[], prevState: ({
|
|
30
|
-
ref: React.RefObject<ItemElement>;
|
|
31
|
-
} & ItemData)[]) => void) => () => boolean;
|
|
32
|
-
}, import("@radix-ui/react-context").CreateScope];
|
|
33
|
-
export { createCollection };
|
|
34
|
-
export type { CollectionProps };
|