@justeattakeaway/pie-switch 0.21.0 → 0.22.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 +18 -4
- package/dist/index.d.ts +3 -2
- package/dist/react.d.ts +3 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -10,13 +10,27 @@
|
|
|
10
10
|
|
|
11
11
|
## pie-switch
|
|
12
12
|
|
|
13
|
-
`pie-switch` is a Web Component built using the Lit library.
|
|
13
|
+
`pie-switch` is a Web Component built using the Lit library. It allows users to switch between two states or options with a single action.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
## Installation
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
>For full information on using this component, please refer to our [documentation page](https://pie.design/components/switch/code/).
|
|
17
|
+
To install `pie-switch` in your application, run the following on your command line:
|
|
19
18
|
|
|
19
|
+
```bash
|
|
20
|
+
# npm
|
|
21
|
+
$ npm i @justeattakeaway/pie-switch
|
|
22
|
+
|
|
23
|
+
# yarn
|
|
24
|
+
$ yarn add @justeattakeaway/pie-switch
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Documentation
|
|
28
|
+
|
|
29
|
+
Visit [Modal | PIE Design System](https://pie.design/components/modal/overview) to view more information on this component.
|
|
30
|
+
|
|
31
|
+
## Questions
|
|
32
|
+
|
|
33
|
+
Please head to [FAQs | PIE Design System](https://pie.design/support/contact-us/) to see our FAQs and get in touch.
|
|
20
34
|
|
|
21
35
|
## Contributing
|
|
22
36
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CSSResult } from 'lit';
|
|
2
|
+
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
2
3
|
import type { LitElement } from 'lit';
|
|
3
4
|
import type { PropertyValues } from 'lit';
|
|
4
5
|
import type { TemplateResult } from 'lit';
|
|
@@ -86,9 +87,9 @@ export declare class PieSwitch extends PieSwitch_base implements SwitchProps {
|
|
|
86
87
|
render(): TemplateResult<1>;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
declare const PieSwitch_base:
|
|
90
|
+
declare const PieSwitch_base: GenericConstructor<{
|
|
90
91
|
isRTL: boolean;
|
|
91
|
-
}
|
|
92
|
+
}> & typeof LitElement;
|
|
92
93
|
|
|
93
94
|
export declare interface SwitchProps {
|
|
94
95
|
/**
|
package/dist/react.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CSSResult } from 'lit';
|
|
2
2
|
import type { EventName } from '@lit/react';
|
|
3
|
+
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
3
4
|
import type { LitElement } from 'lit';
|
|
4
5
|
import type { PropertyValues } from 'lit';
|
|
5
6
|
import type { ReactWebComponent } from '@lit/react';
|
|
@@ -93,9 +94,9 @@ declare class PieSwitch_2 extends PieSwitch_base implements SwitchProps {
|
|
|
93
94
|
render(): TemplateResult<1>;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
|
-
declare const PieSwitch_base:
|
|
97
|
+
declare const PieSwitch_base: GenericConstructor<{
|
|
97
98
|
isRTL: boolean;
|
|
98
|
-
}
|
|
99
|
+
}> & typeof LitElement;
|
|
99
100
|
|
|
100
101
|
export declare interface SwitchProps {
|
|
101
102
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-switch",
|
|
3
3
|
"description": "PIE Design System Switch built using Web Components",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.22.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@justeattakeaway/pie-components-config": "0.7.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@justeattakeaway/pie-icons-webc": "0.
|
|
35
|
-
"@justeattakeaway/pie-webc-core": "0.
|
|
34
|
+
"@justeattakeaway/pie-icons-webc": "0.16.1",
|
|
35
|
+
"@justeattakeaway/pie-webc-core": "0.14.0",
|
|
36
36
|
"element-internals-polyfill": "1.3.9"
|
|
37
37
|
},
|
|
38
38
|
"volta": {
|