@txstate-mws/svelte-components 1.0.3 → 1.0.4
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 +22 -26
- package/package.json +2 -2
- package/util/repositioned.js +1 -2
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
#
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
# svelte-components
|
|
2
|
+
A set of generically useful components for svelte.
|
|
3
|
+
|
|
4
|
+
## Components
|
|
5
|
+
- [CollapsingTable](/docs/CollapsingTable.md)
|
|
6
|
+
- [ConditionalWrapper](/docs/ConditionalWrapper.md)
|
|
7
|
+
- [FocusLock](/docs/Modal.md#FocusLock)
|
|
8
|
+
- [Modal](/docs/Modal.md#Modal)
|
|
9
|
+
- [PopupMenu](/docs/PopupMenu.md)
|
|
10
|
+
- [ScreenReaderOnly](/docs/ScreenReaderOnly.md)
|
|
11
|
+
|
|
12
|
+
## Actions
|
|
13
|
+
- [use:buttonify](/docs/actions.md#use:buttonify)
|
|
14
|
+
- [use:glue](/docs/actions.md#use:glue)
|
|
15
|
+
- [use:offset](/docs/actions.md#use:offset)
|
|
16
|
+
- [use:portal](/docs/actions.md#use:portal)
|
|
17
|
+
- [use:resize](/docs/actions.md#use:resize)
|
|
18
18
|
|
|
19
19
|
## Developing
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Installed dependencies with `npm install`, then start the development server:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
npm run dev
|
|
@@ -27,14 +27,10 @@ npm run dev
|
|
|
27
27
|
npm run dev -- --open
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
##
|
|
31
|
-
|
|
32
|
-
To create a production version of your app:
|
|
30
|
+
## Publishing to npm
|
|
33
31
|
|
|
34
32
|
```bash
|
|
35
|
-
npm run
|
|
33
|
+
npm run package
|
|
34
|
+
cd package
|
|
35
|
+
npm publish
|
|
36
36
|
```
|
|
37
|
-
|
|
38
|
-
You can preview the production build with `npm run preview`.
|
|
39
|
-
|
|
40
|
-
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment.
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@txstate-mws/svelte-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Svelte components that are generically useful.",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@txstate-mws/svelte-store": "^1.0.
|
|
6
|
+
"@txstate-mws/svelte-store": "^1.0.3",
|
|
7
7
|
"tabbable": "^5.2.1",
|
|
8
8
|
"txstate-utils": "^1.6.0"
|
|
9
9
|
},
|
package/util/repositioned.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import equal from '
|
|
2
|
-
import { isNotNull, randomid, toArray } from 'txstate-utils';
|
|
1
|
+
import { equal, isNotNull, randomid, toArray } from 'txstate-utils';
|
|
3
2
|
import { bodyOffset, targetOffset } from './bodyoffset.js';
|
|
4
3
|
const observers = new Map();
|
|
5
4
|
let mutationobserver;
|