@justeattakeaway/pie-divider 1.4.5 → 1.5.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/custom-elements.json +3 -21
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/react.d.ts +3 -3
- package/package.json +5 -5
- package/src/divider.scss +2 -2
package/custom-elements.json
CHANGED
|
@@ -76,35 +76,17 @@
|
|
|
76
76
|
{
|
|
77
77
|
"kind": "field",
|
|
78
78
|
"name": "variant",
|
|
79
|
-
"privacy": "public"
|
|
80
|
-
"attribute": "variant"
|
|
79
|
+
"privacy": "public"
|
|
81
80
|
},
|
|
82
81
|
{
|
|
83
82
|
"kind": "field",
|
|
84
83
|
"name": "orientation",
|
|
85
|
-
"privacy": "public"
|
|
86
|
-
"attribute": "orientation",
|
|
87
|
-
"reflects": true
|
|
84
|
+
"privacy": "public"
|
|
88
85
|
},
|
|
89
86
|
{
|
|
90
87
|
"kind": "field",
|
|
91
88
|
"name": "label",
|
|
92
|
-
"privacy": "public"
|
|
93
|
-
"attribute": "label"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"attributes": [
|
|
97
|
-
{
|
|
98
|
-
"name": "variant",
|
|
99
|
-
"fieldName": "variant"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"name": "orientation",
|
|
103
|
-
"fieldName": "orientation"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "label",
|
|
107
|
-
"fieldName": "label"
|
|
89
|
+
"privacy": "public"
|
|
108
90
|
}
|
|
109
91
|
],
|
|
110
92
|
"superclass": {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
|
-
import
|
|
2
|
+
import { CSSResult } from 'lit';
|
|
3
3
|
import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
|
|
4
|
-
import
|
|
4
|
+
import { TemplateResult } from 'lit-html';
|
|
5
5
|
|
|
6
6
|
export declare type DefaultProps = ComponentDefaultProps<DividerProps>;
|
|
7
7
|
|
package/dist/index.js
CHANGED
|
@@ -7,9 +7,9 @@ const v = class v extends u {
|
|
|
7
7
|
this.getAttribute("v") || this.setAttribute("v", v.v);
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
|
-
v.v = "1.
|
|
10
|
+
v.v = "1.5.0";
|
|
11
11
|
let p = v;
|
|
12
|
-
const x = "*,*:after,*:before{box-sizing:inherit}:host{display:block}:host([orientation=vertical]){height:100%}.c-divider{--divider-bg-color: var(--dt-color-divider-default);--divider-width: 100%;--divider-min-width: 16px;--divider-height: 1px;--divider-label-max-width: 90%;--divider-font-size: calc(var(--dt-font-body-l-size) * 1px);--divider-line-height: calc(var(--dt-font-body-l-line-height) * 1px);width:var(--divider-width)}.c-divider,.c-divider hr{margin:0;border:0;background-color:var(--divider-bg-color)}.c-divider:not(.c-divider--labelled){height:var(--divider-height)}.c-divider.c-divider--labelled{display:flex;align-items:center;text-align:center;gap:var(--dt-spacing-b);background-color:transparent;color:var(--dt-color-content-subdued)}.c-divider.c-divider--labelled .c-divider-label{font-size:var(--divider-font-size);line-height:var(--divider-line-height);max-width:var(--divider-label-max-width);word-wrap:break-word}.c-divider.c-divider--labelled hr{flex-grow:1;height:var(--divider-height);min-width:var(--divider-min-width)}.c-divider.c-divider--labelled.c-divider--inverse{color:var(--dt-color-content-inverse)}.c-divider.c-divider--inverse{--divider-bg-color: var(--dt-color-divider-inverse)}.c-divider.c-divider--vertical{--divider-width: 1px;--divider-height: 100%}", y = ["default", "inverse"], $ = ["horizontal", "vertical"], l = {
|
|
12
|
+
const x = "*,*:after,*:before{box-sizing:inherit}:host{display:block}:host([orientation=vertical]){height:100%}.c-divider{--divider-bg-color: var(--dt-color-divider-default);--divider-width: 100%;--divider-min-width: 16px;--divider-height: 1px;--divider-label-max-width: 90%;--divider-font-size: calc(var(--dt-font-body-l-size) * 1px);--divider-line-height: calc(var(--dt-font-body-l-line-height) * 1px);width:var(--divider-width)}.c-divider,.c-divider hr{margin:0;border:0;background-color:var(--divider-bg-color)}.c-divider:not(.c-divider--labelled){height:var(--divider-height)}.c-divider.c-divider--labelled{display:flex;align-items:center;text-align:center;gap:var(--dt-spacing-b);background-color:transparent;color:var(--dt-color-content-subdued-solid)}.c-divider.c-divider--labelled .c-divider-label{font-size:var(--divider-font-size);line-height:var(--divider-line-height);max-width:var(--divider-label-max-width);word-wrap:break-word}.c-divider.c-divider--labelled hr{flex-grow:1;height:var(--divider-height);min-width:var(--divider-min-width)}.c-divider.c-divider--labelled.c-divider--inverse{color:var(--dt-color-content-inverse-solid)}.c-divider.c-divider--inverse{--divider-bg-color: var(--dt-color-divider-inverse)}.c-divider.c-divider--vertical{--divider-width: 1px;--divider-height: 100%}", y = ["default", "inverse"], $ = ["horizontal", "vertical"], l = {
|
|
13
13
|
variant: "default",
|
|
14
14
|
orientation: "horizontal",
|
|
15
15
|
label: ""
|
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
|
-
import
|
|
2
|
+
import { CSSResult } from 'lit';
|
|
3
3
|
import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
|
|
4
4
|
import * as React_2 from 'react';
|
|
5
|
-
import
|
|
5
|
+
import { TemplateResult } from 'lit-html';
|
|
6
6
|
|
|
7
7
|
export declare type DefaultProps = ComponentDefaultProps<DividerProps>;
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ export declare interface DividerProps {
|
|
|
25
25
|
|
|
26
26
|
export declare const orientations: readonly ["horizontal", "vertical"];
|
|
27
27
|
|
|
28
|
-
export declare const PieDivider: React_2.ForwardRefExoticComponent<DividerProps & React_2.RefAttributes<PieDivider_2> & ReactBaseType>;
|
|
28
|
+
export declare const PieDivider: React_2.ForwardRefExoticComponent<React_2.PropsWithoutRef<DividerProps> & React_2.RefAttributes<PieDivider_2> & ReactBaseType>;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* @tagname pie-divider
|
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": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
42
|
-
"@justeattakeaway/pie-components-config": "0.
|
|
43
|
-
"@justeattakeaway/pie-css": "0.
|
|
44
|
-
"@justeattakeaway/pie-monorepo-utils": "0.
|
|
42
|
+
"@justeattakeaway/pie-components-config": "0.21.0",
|
|
43
|
+
"@justeattakeaway/pie-css": "0.22.0",
|
|
44
|
+
"@justeattakeaway/pie-monorepo-utils": "0.7.0",
|
|
45
45
|
"@justeattakeaway/pie-wrapper-react": "0.14.3",
|
|
46
46
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@justeattakeaway/pie-webc-core": "
|
|
49
|
+
"@justeattakeaway/pie-webc-core": "2.0.0"
|
|
50
50
|
},
|
|
51
51
|
"volta": {
|
|
52
52
|
"extends": "../../../package.json"
|
package/src/divider.scss
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
text-align: center;
|
|
37
37
|
gap: var(--dt-spacing-b);
|
|
38
38
|
background-color: transparent;
|
|
39
|
-
color: var(--dt-color-content-subdued);
|
|
39
|
+
color: var(--dt-color-content-subdued-solid);
|
|
40
40
|
|
|
41
41
|
.c-divider-label {
|
|
42
42
|
font-size: var(--divider-font-size);
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&.c-divider--inverse {
|
|
55
|
-
color: var(--dt-color-content-inverse);
|
|
55
|
+
color: var(--dt-color-content-inverse-solid);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|