@justeattakeaway/pie-divider 0.9.3 → 0.10.0
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 +5 -57
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,16 +8,6 @@
|
|
|
8
8
|
</a>
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
|
-
# Table of Contents
|
|
12
|
-
|
|
13
|
-
1. [Introduction](#pie-divider)
|
|
14
|
-
2. [Installation](#installation)
|
|
15
|
-
3. [Importing the component](#importing-the-component)
|
|
16
|
-
4. [Peer Dependencies](#peer-dependencies)
|
|
17
|
-
5. [Props](#props)
|
|
18
|
-
6. [Contributing](#contributing)
|
|
19
|
-
|
|
20
|
-
|
|
21
11
|
## pie-divider
|
|
22
12
|
|
|
23
13
|
`pie-divider` is a Web Component built using the Lit library.
|
|
@@ -37,56 +27,14 @@ $ npm i @justeattakeaway/pie-divider
|
|
|
37
27
|
$ yarn add @justeattakeaway/pie-divider
|
|
38
28
|
```
|
|
39
29
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
### Importing the component
|
|
30
|
+
## Documentation
|
|
44
31
|
|
|
45
|
-
|
|
46
|
-
```js
|
|
47
|
-
// Default – for Native JS Applications, Vue, Angular, Svelte, etc.
|
|
48
|
-
import { PieDivider } from '@justeattakeaway/pie-divider';
|
|
49
|
-
|
|
50
|
-
// If you don't need to reference the imported object, you can simply
|
|
51
|
-
// import the module which registers the component as a custom element.
|
|
52
|
-
import '@justeattakeaway/pie-divider';
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
#### React
|
|
56
|
-
```js
|
|
57
|
-
// React
|
|
58
|
-
// For React, you will need to import our React-specific component build
|
|
59
|
-
// which wraps the web component using @lit/react
|
|
60
|
-
import { PieDivider } from '@justeattakeaway/pie-divider/dist/react';
|
|
61
|
-
```
|
|
32
|
+
Visit [Divider | PIE Design System](https://pie.design/components/divider/overview) to view more information on this component.
|
|
62
33
|
|
|
63
|
-
|
|
64
|
-
> When using the React version of the component, please make sure to also
|
|
65
|
-
> include React as a [peer dependency](#peer-dependencies) in your project.
|
|
34
|
+
## Questions
|
|
66
35
|
|
|
67
|
-
|
|
68
|
-
## Peer Dependencies
|
|
69
|
-
|
|
70
|
-
> [!IMPORTANT]
|
|
71
|
-
> When using `pie-divider`, you will also need to include a couple of dependencies to ensure the component renders as expected. See [the PIE Wiki](https://github.com/justeattakeaway/pie/wiki/Getting-started-with-PIE-Web-Components#expected-dependencies) for more information and how to include these in your application.
|
|
72
|
-
|
|
73
|
-
## Props
|
|
74
|
-
|
|
75
|
-
| Property | Type | Default | Description |
|
|
76
|
-
|---|---|---|---|
|
|
77
|
-
| variant | `String` | `default` | Variant of the divider, one of variants – default, inverse |
|
|
78
|
-
| orientation | `String` | `horizontal` | Orientation of the divider, one of – horizontal, vertical |
|
|
79
|
-
|
|
80
|
-
In your markup or JSX, you can then use these to set the properties for the `pie-divider` component:
|
|
81
|
-
|
|
82
|
-
```html
|
|
83
|
-
<!-- Native HTML -->
|
|
84
|
-
<pie-divider />
|
|
85
|
-
|
|
86
|
-
<!-- JSX -->
|
|
87
|
-
<PieDivider />
|
|
88
|
-
```
|
|
36
|
+
Please head to [FAQs | PIE Design System](https://pie.design/support/contact-us/) to see our FAQs and get in touch.
|
|
89
37
|
|
|
90
38
|
## Contributing
|
|
91
39
|
|
|
92
|
-
Check out our [contributing guide](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide) for more information on [local development](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide#local-development) and how to run specific [component tests](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide#testing).
|
|
40
|
+
Check out our [contributing guide](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide) for more information on [local development](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide#local-development) and how to run specific [component tests](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide#testing).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-divider",
|
|
3
3
|
"description": "PIE Design System Divider built using Web Components",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"author": "Just Eat Takeaway.com - Design System Team",
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@justeattakeaway/pie-components-config": "0.
|
|
31
|
+
"@justeattakeaway/pie-components-config": "0.7.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@justeattakeaway/pie-webc-core": "0.13.0"
|