@ariakit/solid 0.0.1 → 0.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.
- package/CHANGELOG.md +10 -0
- package/as/package.json +8 -0
- package/cjs/__chunks/275TU4BC.cjs +6 -0
- package/cjs/__chunks/2FUNANOD.cjs +8 -0
- package/cjs/__chunks/2Q354MOP.cjs +6 -0
- package/cjs/__chunks/BUMKLPBR.cjs +8 -0
- package/cjs/__chunks/ENRC3BJL.cjs +6 -0
- package/cjs/__chunks/PZXAM47S.cjs +8 -0
- package/cjs/__chunks/Y3LEMW77.cjs +6 -0
- package/cjs/as.cjs +6 -0
- package/cjs/as.d.cts +2 -0
- package/cjs/as.d.ts +2 -0
- package/cjs/focus-trap.cjs +8 -0
- package/cjs/focus-trap.d.cts +4 -0
- package/cjs/focus-trap.d.ts +4 -0
- package/cjs/group.cjs +8 -0
- package/cjs/group.d.cts +4 -0
- package/cjs/group.d.ts +4 -0
- package/cjs/heading.cjs +8 -0
- package/cjs/heading.d.cts +4 -0
- package/cjs/heading.d.ts +4 -0
- package/cjs/index.cjs +36 -0
- package/cjs/index.d.cts +7 -0
- package/cjs/index.d.ts +7 -0
- package/cjs/role.cjs +6 -0
- package/cjs/role.d.cts +2 -0
- package/cjs/role.d.ts +2 -0
- package/cjs/separator.cjs +6 -0
- package/cjs/separator.d.cts +2 -0
- package/cjs/separator.d.ts +2 -0
- package/cjs/visually-hidden.cjs +6 -0
- package/cjs/visually-hidden.d.cts +2 -0
- package/cjs/visually-hidden.d.ts +2 -0
- package/esm/__chunks/7XXSADQR.js +6 -0
- package/esm/__chunks/ISDRYYMK.js +8 -0
- package/esm/__chunks/IXFMZ5NQ.js +6 -0
- package/esm/__chunks/KOD5573B.js +6 -0
- package/esm/__chunks/T7DWLEZA.js +8 -0
- package/esm/__chunks/XEA3IT3C.js +8 -0
- package/esm/__chunks/XZXBRRIQ.js +6 -0
- package/esm/as.d.ts +2 -0
- package/esm/as.js +6 -0
- package/esm/focus-trap.d.ts +4 -0
- package/esm/focus-trap.js +8 -0
- package/esm/group.d.ts +4 -0
- package/esm/group.js +8 -0
- package/esm/heading.d.ts +4 -0
- package/esm/heading.js +8 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +36 -0
- package/esm/role.d.ts +2 -0
- package/esm/role.js +6 -0
- package/esm/separator.d.ts +2 -0
- package/esm/separator.js +6 -0
- package/esm/visually-hidden.d.ts +2 -0
- package/esm/visually-hidden.js +6 -0
- package/focus-trap/package.json +8 -0
- package/group/package.json +8 -0
- package/heading/package.json +8 -0
- package/license +21 -0
- package/package.json +114 -6
- package/readme.md +99 -0
- package/role/package.json +8 -0
- package/separator/package.json +8 -0
- package/solid/__chunks/335JN5JN.jsx +8 -0
- package/solid/__chunks/B4J54GZO.jsx +8 -0
- package/solid/__chunks/KXPA77JC.jsx +6 -0
- package/solid/__chunks/LA2J7WFB.jsx +6 -0
- package/solid/__chunks/WJARI2OW.jsx +6 -0
- package/solid/__chunks/X7PMJEGW.jsx +8 -0
- package/solid/__chunks/ZUMGULQQ.jsx +6 -0
- package/solid/as.jsx +6 -0
- package/solid/focus-trap.jsx +8 -0
- package/solid/group.jsx +8 -0
- package/solid/heading.jsx +8 -0
- package/solid/index.jsx +36 -0
- package/solid/role.jsx +6 -0
- package/solid/separator.jsx +6 -0
- package/solid/visually-hidden.jsx +6 -0
- package/tsconfig.build.json +4 -0
- package/visually-hidden/package.json +8 -0
package/CHANGELOG.md
ADDED
package/as/package.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/focus-trap.ts
|
|
2
|
+
var _focustrapregion = require('@ariakit/solid-core/focus-trap/focus-trap-region');
|
|
3
|
+
var _focustrap = require('@ariakit/solid-core/focus-trap/focus-trap');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.FocusTrapRegion = _focustrapregion.FocusTrapRegion; exports.FocusTrap = _focustrap.FocusTrap;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/group.ts
|
|
2
|
+
var _group = require('@ariakit/solid-core/group/group');
|
|
3
|
+
var _grouplabel = require('@ariakit/solid-core/group/group-label');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.Group = _group.Group; exports.GroupLabel = _grouplabel.GroupLabel;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/heading.ts
|
|
2
|
+
var _heading = require('@ariakit/solid-core/heading/heading');
|
|
3
|
+
var _headinglevel = require('@ariakit/solid-core/heading/heading-level');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.Heading = _heading.Heading; exports.HeadingLevel = _headinglevel.HeadingLevel;
|
package/cjs/as.cjs
ADDED
package/cjs/as.d.cts
ADDED
package/cjs/as.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { FocusTrapRegion } from "@ariakit/solid-core/focus-trap/focus-trap-region";
|
|
2
|
+
export { FocusTrap } from "@ariakit/solid-core/focus-trap/focus-trap";
|
|
3
|
+
export type { FocusTrapRegionOptions, FocusTrapRegionProps, } from "@ariakit/solid-core/focus-trap/focus-trap-region";
|
|
4
|
+
export type { FocusTrapOptions, FocusTrapProps, } from "@ariakit/solid-core/focus-trap/focus-trap";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { FocusTrapRegion } from "@ariakit/solid-core/focus-trap/focus-trap-region";
|
|
2
|
+
export { FocusTrap } from "@ariakit/solid-core/focus-trap/focus-trap";
|
|
3
|
+
export type { FocusTrapRegionOptions, FocusTrapRegionProps, } from "@ariakit/solid-core/focus-trap/focus-trap-region";
|
|
4
|
+
export type { FocusTrapOptions, FocusTrapProps, } from "@ariakit/solid-core/focus-trap/focus-trap";
|
package/cjs/group.cjs
ADDED
package/cjs/group.d.cts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Group } from "@ariakit/solid-core/group/group";
|
|
2
|
+
export { GroupLabel } from "@ariakit/solid-core/group/group-label";
|
|
3
|
+
export type { GroupOptions, GroupProps } from "@ariakit/solid-core/group/group";
|
|
4
|
+
export type { GroupLabelOptions, GroupLabelProps, } from "@ariakit/solid-core/group/group-label";
|
package/cjs/group.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Group } from "@ariakit/solid-core/group/group";
|
|
2
|
+
export { GroupLabel } from "@ariakit/solid-core/group/group-label";
|
|
3
|
+
export type { GroupOptions, GroupProps } from "@ariakit/solid-core/group/group";
|
|
4
|
+
export type { GroupLabelOptions, GroupLabelProps, } from "@ariakit/solid-core/group/group-label";
|
package/cjs/heading.cjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Heading } from "@ariakit/solid-core/heading/heading";
|
|
2
|
+
export { HeadingLevel } from "@ariakit/solid-core/heading/heading-level";
|
|
3
|
+
export type { HeadingOptions, HeadingProps, } from "@ariakit/solid-core/heading/heading";
|
|
4
|
+
export type { HeadingLevelProps } from "@ariakit/solid-core/heading/heading-level";
|
package/cjs/heading.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Heading } from "@ariakit/solid-core/heading/heading";
|
|
2
|
+
export { HeadingLevel } from "@ariakit/solid-core/heading/heading-level";
|
|
3
|
+
export type { HeadingOptions, HeadingProps, } from "@ariakit/solid-core/heading/heading";
|
|
4
|
+
export type { HeadingLevelProps } from "@ariakit/solid-core/heading/heading-level";
|
package/cjs/index.cjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _Y3LEMW77cjs = require('./__chunks/Y3LEMW77.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _2FUNANODcjs = require('./__chunks/2FUNANOD.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _BUMKLPBRcjs = require('./__chunks/BUMKLPBR.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var _PZXAM47Scjs = require('./__chunks/PZXAM47S.cjs');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _ENRC3BJLcjs = require('./__chunks/ENRC3BJL.cjs');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _2Q354MOPcjs = require('./__chunks/2Q354MOP.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var _275TU4BCcjs = require('./__chunks/275TU4BC.cjs');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
exports.As = _Y3LEMW77cjs.As; exports.FocusTrap = _2FUNANODcjs.FocusTrap; exports.FocusTrapRegion = _2FUNANODcjs.FocusTrapRegion; exports.Group = _BUMKLPBRcjs.Group; exports.GroupLabel = _BUMKLPBRcjs.GroupLabel; exports.Heading = _PZXAM47Scjs.Heading; exports.HeadingLevel = _PZXAM47Scjs.HeadingLevel; exports.Role = _ENRC3BJLcjs.Role; exports.Separator = _2Q354MOPcjs.Separator; exports.VisuallyHidden = _275TU4BCcjs.VisuallyHidden;
|
package/cjs/index.d.cts
ADDED
package/cjs/index.d.ts
ADDED
package/cjs/role.cjs
ADDED
package/cjs/role.d.cts
ADDED
package/cjs/role.d.ts
ADDED
package/esm/as.d.ts
ADDED
package/esm/as.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { FocusTrapRegion } from "@ariakit/solid-core/focus-trap/focus-trap-region";
|
|
2
|
+
export { FocusTrap } from "@ariakit/solid-core/focus-trap/focus-trap";
|
|
3
|
+
export type { FocusTrapRegionOptions, FocusTrapRegionProps, } from "@ariakit/solid-core/focus-trap/focus-trap-region";
|
|
4
|
+
export type { FocusTrapOptions, FocusTrapProps, } from "@ariakit/solid-core/focus-trap/focus-trap";
|
package/esm/group.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Group } from "@ariakit/solid-core/group/group";
|
|
2
|
+
export { GroupLabel } from "@ariakit/solid-core/group/group-label";
|
|
3
|
+
export type { GroupOptions, GroupProps } from "@ariakit/solid-core/group/group";
|
|
4
|
+
export type { GroupLabelOptions, GroupLabelProps, } from "@ariakit/solid-core/group/group-label";
|
package/esm/group.js
ADDED
package/esm/heading.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Heading } from "@ariakit/solid-core/heading/heading";
|
|
2
|
+
export { HeadingLevel } from "@ariakit/solid-core/heading/heading-level";
|
|
3
|
+
export type { HeadingOptions, HeadingProps, } from "@ariakit/solid-core/heading/heading";
|
|
4
|
+
export type { HeadingLevelProps } from "@ariakit/solid-core/heading/heading-level";
|
package/esm/heading.js
ADDED
package/esm/index.d.ts
ADDED
package/esm/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
As
|
|
3
|
+
} from "./__chunks/IXFMZ5NQ.js";
|
|
4
|
+
import {
|
|
5
|
+
FocusTrap,
|
|
6
|
+
FocusTrapRegion
|
|
7
|
+
} from "./__chunks/ISDRYYMK.js";
|
|
8
|
+
import {
|
|
9
|
+
Group,
|
|
10
|
+
GroupLabel
|
|
11
|
+
} from "./__chunks/T7DWLEZA.js";
|
|
12
|
+
import {
|
|
13
|
+
Heading,
|
|
14
|
+
HeadingLevel
|
|
15
|
+
} from "./__chunks/XEA3IT3C.js";
|
|
16
|
+
import {
|
|
17
|
+
Role
|
|
18
|
+
} from "./__chunks/KOD5573B.js";
|
|
19
|
+
import {
|
|
20
|
+
Separator
|
|
21
|
+
} from "./__chunks/7XXSADQR.js";
|
|
22
|
+
import {
|
|
23
|
+
VisuallyHidden
|
|
24
|
+
} from "./__chunks/XZXBRRIQ.js";
|
|
25
|
+
export {
|
|
26
|
+
As,
|
|
27
|
+
FocusTrap,
|
|
28
|
+
FocusTrapRegion,
|
|
29
|
+
Group,
|
|
30
|
+
GroupLabel,
|
|
31
|
+
Heading,
|
|
32
|
+
HeadingLevel,
|
|
33
|
+
Role,
|
|
34
|
+
Separator,
|
|
35
|
+
VisuallyHidden
|
|
36
|
+
};
|
package/esm/role.d.ts
ADDED
package/esm/role.js
ADDED
package/esm/separator.js
ADDED
package/license
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Diego Haz, Dani Guardiola
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,11 +1,119 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariakit/solid",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Toolkit for building accessible web apps with Solid",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://solid.ariakit.org",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "cjs/index.cjs",
|
|
10
|
+
"module": "esm/index.js",
|
|
11
|
+
"types": "cjs/index.d.ts",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/ariakit/ariakit.git",
|
|
15
|
+
"directory": "packages/ariakit-solid"
|
|
16
|
+
},
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "Dani Guardiola",
|
|
19
|
+
"email": "hi@daniguardio.la",
|
|
20
|
+
"url": "https://dio.la"
|
|
21
|
+
},
|
|
22
|
+
"contributors": [
|
|
23
|
+
{
|
|
24
|
+
"name": "Diego Haz",
|
|
25
|
+
"email": "hazdiego@gmail.com",
|
|
26
|
+
"url": "https://github.com/diegohaz"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"funding": {
|
|
30
|
+
"type": "opencollective",
|
|
31
|
+
"url": "https://opencollective.com/ariakit"
|
|
32
|
+
},
|
|
6
33
|
"scripts": {
|
|
7
|
-
"
|
|
34
|
+
"lint": "biome check .",
|
|
35
|
+
"build": "node ../../scripts/build/build.js",
|
|
36
|
+
"clean": "node ../../scripts/build/clean.js"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"ariakit",
|
|
40
|
+
"solid",
|
|
41
|
+
"a11y",
|
|
42
|
+
"ui",
|
|
43
|
+
"toolkit",
|
|
44
|
+
"components"
|
|
45
|
+
],
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@ariakit/solid-core": "0.1.1"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"solid-js": "^1.8"
|
|
8
51
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
52
|
+
"exports": {
|
|
53
|
+
".": {
|
|
54
|
+
"solid": "./solid/index.jsx",
|
|
55
|
+
"import": "./esm/index.js",
|
|
56
|
+
"require": {
|
|
57
|
+
"types": "./cjs/index.d.cts",
|
|
58
|
+
"default": "./cjs/index.cjs"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"./as": {
|
|
62
|
+
"solid": "./solid/as.jsx",
|
|
63
|
+
"import": "./esm/as.js",
|
|
64
|
+
"require": {
|
|
65
|
+
"types": "./cjs/as.d.cts",
|
|
66
|
+
"default": "./cjs/as.cjs"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"./focus-trap": {
|
|
70
|
+
"solid": "./solid/focus-trap.jsx",
|
|
71
|
+
"import": "./esm/focus-trap.js",
|
|
72
|
+
"require": {
|
|
73
|
+
"types": "./cjs/focus-trap.d.cts",
|
|
74
|
+
"default": "./cjs/focus-trap.cjs"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"./group": {
|
|
78
|
+
"solid": "./solid/group.jsx",
|
|
79
|
+
"import": "./esm/group.js",
|
|
80
|
+
"require": {
|
|
81
|
+
"types": "./cjs/group.d.cts",
|
|
82
|
+
"default": "./cjs/group.cjs"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"./heading": {
|
|
86
|
+
"solid": "./solid/heading.jsx",
|
|
87
|
+
"import": "./esm/heading.js",
|
|
88
|
+
"require": {
|
|
89
|
+
"types": "./cjs/heading.d.cts",
|
|
90
|
+
"default": "./cjs/heading.cjs"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"./role": {
|
|
94
|
+
"solid": "./solid/role.jsx",
|
|
95
|
+
"import": "./esm/role.js",
|
|
96
|
+
"require": {
|
|
97
|
+
"types": "./cjs/role.d.cts",
|
|
98
|
+
"default": "./cjs/role.cjs"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"./separator": {
|
|
102
|
+
"solid": "./solid/separator.jsx",
|
|
103
|
+
"import": "./esm/separator.js",
|
|
104
|
+
"require": {
|
|
105
|
+
"types": "./cjs/separator.d.cts",
|
|
106
|
+
"default": "./cjs/separator.cjs"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"./visually-hidden": {
|
|
110
|
+
"solid": "./solid/visually-hidden.jsx",
|
|
111
|
+
"import": "./esm/visually-hidden.js",
|
|
112
|
+
"require": {
|
|
113
|
+
"types": "./cjs/visually-hidden.d.cts",
|
|
114
|
+
"default": "./cjs/visually-hidden.cjs"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"./package.json": "./package.json"
|
|
118
|
+
}
|
|
11
119
|
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<h1 align="center">Ariakit</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
Toolkit for building accessible web apps with <a href="https://www.solidjs.com">Solid</a>.
|
|
5
|
+
<br>
|
|
6
|
+
<a href="https://solid.ariakit.org"><strong>Explore website »</strong></a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<br>
|
|
10
|
+
|
|
11
|
+
<div align="center">
|
|
12
|
+
<a href="https://npmjs.org/package/@ariakit/solid">
|
|
13
|
+
<img alt="NPM version" src="https://img.shields.io/npm/v/@ariakit/solid.svg?logo=npm&color=007acc" />
|
|
14
|
+
</a>
|
|
15
|
+
<a href="https://github.com/ariakit/ariakit/releases">
|
|
16
|
+
<img alt="GitHub Release Date" src="https://img.shields.io/github/release-date/ariakit/ariakit?logo=github&color=007acc">
|
|
17
|
+
</a>
|
|
18
|
+
<a href="https://github.com/ariakit/ariakit/discussions">
|
|
19
|
+
<img alt="GitHub Discussions" src="https://img.shields.io/github/discussions/ariakit/ariakit?logo=github&color=007acc">
|
|
20
|
+
</a>
|
|
21
|
+
<br>
|
|
22
|
+
<a href="https://npmjs.org/package/@ariakit/solid">
|
|
23
|
+
<img alt="NPM downloads" src="https://img.shields.io/npm/dm/@ariakit/solid.svg?logo=npm&style=social">
|
|
24
|
+
</a>
|
|
25
|
+
|
|
26
|
+
<a href="https://github.com/ariakit/ariakit/stargazers">
|
|
27
|
+
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/ariakit/ariakit?style=social">
|
|
28
|
+
</a>
|
|
29
|
+
|
|
30
|
+
<a href="https://bsky.app/profile/ariakit.org">
|
|
31
|
+
<img alt="Follow Ariakit on Bluesky" src="https://img.shields.io/badge/Bluesky-0285FF?logo=bluesky&logoColor=fff">
|
|
32
|
+
</a>
|
|
33
|
+
|
|
34
|
+
<a href="https://discord.gg/WyHvnXsvMs">
|
|
35
|
+
<img alt="Join the Ariakit Discord server" src="https://img.shields.io/badge/Discord-%235865F2.svg?&logo=discord&logoColor=white">
|
|
36
|
+
</a>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<br>
|
|
40
|
+
|
|
41
|
+
## Installation
|
|
42
|
+
|
|
43
|
+
npm:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
npm i @ariakit/solid
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
pnpm:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
pnpm add @ariakit/solid
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Yarn:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
yarn add @ariakit/solid
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Usage
|
|
62
|
+
|
|
63
|
+
<!-- TODO: make sure the example is accurate once these components are implemented -->
|
|
64
|
+
|
|
65
|
+
```jsx
|
|
66
|
+
import { createSignal } from "solid-js";
|
|
67
|
+
import { render } from "solid-js/web";
|
|
68
|
+
import { Button, Dialog, DialogHeading } from "@ariakit/solid";
|
|
69
|
+
|
|
70
|
+
function App() {
|
|
71
|
+
const [open, setOpen] = createSignal(false);
|
|
72
|
+
return (
|
|
73
|
+
<>
|
|
74
|
+
<Button onClick={() => setOpen(true)}>Open dialog</Button>
|
|
75
|
+
<Dialog open={open()} onClose={() => setOpen(false)}>
|
|
76
|
+
<DialogHeading>Ariakit</DialogHeading>
|
|
77
|
+
<p>Welcome to Ariakit!</p>
|
|
78
|
+
</Dialog>
|
|
79
|
+
</>
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
render(() => <App />, document.getElementById("root")!);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Core Team
|
|
87
|
+
|
|
88
|
+
- [Diego Haz](https://bsky.app/profile/haz.dev)
|
|
89
|
+
- [Ben Rodri](https://bsky.app/profile/ben.ariakit.org)
|
|
90
|
+
- [Dani Guardiola](https://bsky.app/profile/dio.la)
|
|
91
|
+
|
|
92
|
+
## Attribution
|
|
93
|
+
|
|
94
|
+
Browser testing provided by
|
|
95
|
+
<a href="https://www.browserstack.com" target="_blank"><img src="https://user-images.githubusercontent.com/15015324/45184727-368fbf80-b1fe-11e8-8827-08dbc80b0fb1.png" height="80" align="center"></a>
|
|
96
|
+
|
|
97
|
+
## Contributing
|
|
98
|
+
|
|
99
|
+
Follow the instructions on the [contributing guide](https://github.com/ariakit/ariakit/blob/main/contributing.md).
|
package/solid/as.jsx
ADDED
package/solid/group.jsx
ADDED
package/solid/index.jsx
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
As
|
|
3
|
+
} from "./__chunks/WJARI2OW.jsx";
|
|
4
|
+
import {
|
|
5
|
+
FocusTrap,
|
|
6
|
+
FocusTrapRegion
|
|
7
|
+
} from "./__chunks/335JN5JN.jsx";
|
|
8
|
+
import {
|
|
9
|
+
Group,
|
|
10
|
+
GroupLabel
|
|
11
|
+
} from "./__chunks/X7PMJEGW.jsx";
|
|
12
|
+
import {
|
|
13
|
+
Heading,
|
|
14
|
+
HeadingLevel
|
|
15
|
+
} from "./__chunks/B4J54GZO.jsx";
|
|
16
|
+
import {
|
|
17
|
+
Role
|
|
18
|
+
} from "./__chunks/KXPA77JC.jsx";
|
|
19
|
+
import {
|
|
20
|
+
Separator
|
|
21
|
+
} from "./__chunks/ZUMGULQQ.jsx";
|
|
22
|
+
import {
|
|
23
|
+
VisuallyHidden
|
|
24
|
+
} from "./__chunks/LA2J7WFB.jsx";
|
|
25
|
+
export {
|
|
26
|
+
As,
|
|
27
|
+
FocusTrap,
|
|
28
|
+
FocusTrapRegion,
|
|
29
|
+
Group,
|
|
30
|
+
GroupLabel,
|
|
31
|
+
Heading,
|
|
32
|
+
HeadingLevel,
|
|
33
|
+
Role,
|
|
34
|
+
Separator,
|
|
35
|
+
VisuallyHidden
|
|
36
|
+
};
|
package/solid/role.jsx
ADDED