@lmfaole/basics 0.1.0 → 0.2.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/README.md +162 -0
- package/components/basic-accordion/index.d.ts +50 -0
- package/components/basic-accordion/index.js +387 -0
- package/components/basic-accordion/register.d.ts +1 -0
- package/components/basic-accordion/register.js +3 -0
- package/components/basic-dialog/index.d.ts +36 -0
- package/components/basic-dialog/index.js +272 -0
- package/components/basic-dialog/register.d.ts +1 -0
- package/components/basic-dialog/register.js +3 -0
- package/components/basic-popover/index.d.ts +70 -0
- package/components/basic-popover/index.js +460 -0
- package/components/basic-popover/register.d.ts +1 -0
- package/components/basic-popover/register.js +3 -0
- package/components/basic-tabs/index.js +12 -8
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/package.json +116 -81
package/package.json
CHANGED
|
@@ -1,88 +1,123 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"import": "./components/basic-toc/index.js"
|
|
18
|
-
},
|
|
19
|
-
"./components/basic-toc/register": {
|
|
20
|
-
"types": "./components/basic-toc/register.d.ts",
|
|
21
|
-
"import": "./components/basic-toc/register.js"
|
|
22
|
-
},
|
|
23
|
-
"./components/basic-tabs": {
|
|
24
|
-
"types": "./components/basic-tabs/index.d.ts",
|
|
25
|
-
"import": "./components/basic-tabs/index.js"
|
|
26
|
-
},
|
|
27
|
-
"./components/basic-tabs/register": {
|
|
28
|
-
"types": "./components/basic-tabs/register.d.ts",
|
|
29
|
-
"import": "./components/basic-tabs/register.js"
|
|
30
|
-
}
|
|
2
|
+
"name": "@lmfaole/basics",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Simple unstyled custom elements and DOM helpers.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"./components/basic-accordion/register.js",
|
|
8
|
+
"./components/basic-dialog/register.js",
|
|
9
|
+
"./components/basic-popover/register.js",
|
|
10
|
+
"./components/basic-toc/register.js",
|
|
11
|
+
"./components/basic-tabs/register.js"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"import": "./index.js"
|
|
31
17
|
},
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"index.d.ts",
|
|
36
|
-
"components/*/index.js",
|
|
37
|
-
"components/*/index.d.ts",
|
|
38
|
-
"components/*/register.js",
|
|
39
|
-
"components/*/register.d.ts"
|
|
40
|
-
],
|
|
41
|
-
"keywords": [
|
|
42
|
-
"custom-element",
|
|
43
|
-
"basic-tabs",
|
|
44
|
-
"basic-toc",
|
|
45
|
-
"table-of-contents",
|
|
46
|
-
"tabs",
|
|
47
|
-
"tablist",
|
|
48
|
-
"toc",
|
|
49
|
-
"unstyled",
|
|
50
|
-
"vanilla-js",
|
|
51
|
-
"web-components"
|
|
52
|
-
],
|
|
53
|
-
"license": "ISC",
|
|
54
|
-
"repository": {
|
|
55
|
-
"type": "git",
|
|
56
|
-
"url": "git+https://github.com/lmfaole/basics.git"
|
|
18
|
+
"./components/basic-accordion": {
|
|
19
|
+
"types": "./components/basic-accordion/index.d.ts",
|
|
20
|
+
"import": "./components/basic-accordion/index.js"
|
|
57
21
|
},
|
|
58
|
-
"
|
|
59
|
-
|
|
22
|
+
"./components/basic-accordion/register": {
|
|
23
|
+
"types": "./components/basic-accordion/register.d.ts",
|
|
24
|
+
"import": "./components/basic-accordion/register.js"
|
|
60
25
|
},
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"build-storybook": "storybook build",
|
|
65
|
-
"test": "pnpm run test:unit && pnpm run test:storybook",
|
|
66
|
-
"test:unit": "vitest run --config vitest.config.ts",
|
|
67
|
-
"test:storybook": "vitest run --config vitest.storybook.config.ts",
|
|
68
|
-
"test:storybook:watch": "vitest --config vitest.storybook.config.ts",
|
|
69
|
-
"test:storybook:coverage": "vitest run --config vitest.storybook.config.ts --coverage"
|
|
26
|
+
"./components/basic-dialog": {
|
|
27
|
+
"types": "./components/basic-dialog/index.d.ts",
|
|
28
|
+
"import": "./components/basic-dialog/index.js"
|
|
70
29
|
},
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"@storybook/addon-docs": "10.3.1",
|
|
75
|
-
"@storybook/addon-vitest": "10.3.1",
|
|
76
|
-
"@storybook/web-components-vite": "^10.3.1",
|
|
77
|
-
"@vitest/browser-playwright": "4.1.0",
|
|
78
|
-
"@vitest/coverage-v8": "4.1.0",
|
|
79
|
-
"playwright": "^1.58.2",
|
|
80
|
-
"storybook": "^10.3.1",
|
|
81
|
-
"vitest": "^4.1.0"
|
|
30
|
+
"./components/basic-dialog/register": {
|
|
31
|
+
"types": "./components/basic-dialog/register.d.ts",
|
|
32
|
+
"import": "./components/basic-dialog/register.js"
|
|
82
33
|
},
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
34
|
+
"./components/basic-popover": {
|
|
35
|
+
"types": "./components/basic-popover/index.d.ts",
|
|
36
|
+
"import": "./components/basic-popover/index.js"
|
|
86
37
|
},
|
|
87
|
-
"
|
|
88
|
-
|
|
38
|
+
"./components/basic-popover/register": {
|
|
39
|
+
"types": "./components/basic-popover/register.d.ts",
|
|
40
|
+
"import": "./components/basic-popover/register.js"
|
|
41
|
+
},
|
|
42
|
+
"./components/basic-toc": {
|
|
43
|
+
"types": "./components/basic-toc/index.d.ts",
|
|
44
|
+
"import": "./components/basic-toc/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./components/basic-toc/register": {
|
|
47
|
+
"types": "./components/basic-toc/register.d.ts",
|
|
48
|
+
"import": "./components/basic-toc/register.js"
|
|
49
|
+
},
|
|
50
|
+
"./components/basic-tabs": {
|
|
51
|
+
"types": "./components/basic-tabs/index.d.ts",
|
|
52
|
+
"import": "./components/basic-tabs/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./components/basic-tabs/register": {
|
|
55
|
+
"types": "./components/basic-tabs/register.d.ts",
|
|
56
|
+
"import": "./components/basic-tabs/register.js"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"README.md",
|
|
61
|
+
"index.js",
|
|
62
|
+
"index.d.ts",
|
|
63
|
+
"components/*/index.js",
|
|
64
|
+
"components/*/index.d.ts",
|
|
65
|
+
"components/*/register.js",
|
|
66
|
+
"components/*/register.d.ts"
|
|
67
|
+
],
|
|
68
|
+
"keywords": [
|
|
69
|
+
"accordion",
|
|
70
|
+
"custom-element",
|
|
71
|
+
"dialog",
|
|
72
|
+
"basic-tabs",
|
|
73
|
+
"basic-toc",
|
|
74
|
+
"modal",
|
|
75
|
+
"popover",
|
|
76
|
+
"overlay",
|
|
77
|
+
"table-of-contents",
|
|
78
|
+
"tabs",
|
|
79
|
+
"tablist",
|
|
80
|
+
"toc",
|
|
81
|
+
"unstyled",
|
|
82
|
+
"vanilla-js",
|
|
83
|
+
"web-components"
|
|
84
|
+
],
|
|
85
|
+
"license": "ISC",
|
|
86
|
+
"repository": {
|
|
87
|
+
"type": "git",
|
|
88
|
+
"url": "git+https://github.com/lmfaole/basics.git"
|
|
89
|
+
},
|
|
90
|
+
"bugs": {
|
|
91
|
+
"url": "https://github.com/lmfaole/basics/issues"
|
|
92
|
+
},
|
|
93
|
+
"homepage": "https://github.com/lmfaole/basics",
|
|
94
|
+
"devDependencies": {
|
|
95
|
+
"@changesets/cli": "2.29.7",
|
|
96
|
+
"@chromatic-com/storybook": "^5.0.2",
|
|
97
|
+
"@storybook/addon-a11y": "^10.3.1",
|
|
98
|
+
"@storybook/addon-docs": "10.3.1",
|
|
99
|
+
"@storybook/addon-vitest": "10.3.1",
|
|
100
|
+
"@storybook/web-components-vite": "^10.3.1",
|
|
101
|
+
"@vitest/browser-playwright": "4.1.0",
|
|
102
|
+
"@vitest/coverage-v8": "4.1.0",
|
|
103
|
+
"playwright": "^1.58.2",
|
|
104
|
+
"storybook": "^10.3.1",
|
|
105
|
+
"vitest": "^4.1.0"
|
|
106
|
+
},
|
|
107
|
+
"publishConfig": {
|
|
108
|
+
"access": "public",
|
|
109
|
+
"registry": "https://registry.npmjs.org/"
|
|
110
|
+
},
|
|
111
|
+
"scripts": {
|
|
112
|
+
"changeset": "changeset",
|
|
113
|
+
"version-packages": "changeset version",
|
|
114
|
+
"release": "pnpm test && changeset publish",
|
|
115
|
+
"storybook": "storybook dev -p 6006 --no-open",
|
|
116
|
+
"build-storybook": "storybook build",
|
|
117
|
+
"test": "pnpm run test:unit && pnpm run test:storybook",
|
|
118
|
+
"test:unit": "vitest run --config vitest.config.ts",
|
|
119
|
+
"test:storybook": "vitest run --config vitest.storybook.config.ts",
|
|
120
|
+
"test:storybook:watch": "vitest --config vitest.storybook.config.ts",
|
|
121
|
+
"test:storybook:coverage": "vitest run --config vitest.storybook.config.ts --coverage"
|
|
122
|
+
}
|
|
123
|
+
}
|