@justeattakeaway/pie-divider 1.4.2 → 1.4.3
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 +2 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/divider.scss +8 -0
- package/src/index.ts +1 -1
package/custom-elements.json
CHANGED
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.4.
|
|
10
|
+
v.v = "1.4.3";
|
|
11
11
|
let p = v;
|
|
12
|
-
const x = "*,*:after,*:before{box-sizing:inherit}.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)}.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 = {
|
|
13
13
|
variant: "default",
|
|
14
14
|
orientation: "horizontal",
|
|
15
15
|
label: ""
|
|
@@ -55,7 +55,7 @@ n([
|
|
|
55
55
|
f(e, y, l.variant)
|
|
56
56
|
], a.prototype, "variant", 2);
|
|
57
57
|
n([
|
|
58
|
-
b({ type: String }),
|
|
58
|
+
b({ type: String, reflect: !0 }),
|
|
59
59
|
f(e, $, l.orientation)
|
|
60
60
|
], a.prototype, "orientation", 2);
|
|
61
61
|
n([
|
package/package.json
CHANGED
package/src/divider.scss
CHANGED
package/src/index.ts
CHANGED
|
@@ -24,7 +24,7 @@ export class PieDivider extends PieElement implements DividerProps {
|
|
|
24
24
|
@validPropertyValues(componentSelector, variants, defaultProps.variant)
|
|
25
25
|
public variant = defaultProps.variant;
|
|
26
26
|
|
|
27
|
-
@property({ type: String })
|
|
27
|
+
@property({ type: String, reflect: true })
|
|
28
28
|
@validPropertyValues(componentSelector, orientations, defaultProps.orientation)
|
|
29
29
|
public orientation = defaultProps.orientation;
|
|
30
30
|
|