@lazhus/kg-ui 0.5.1 → 0.5.2
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
CHANGED
|
@@ -3023,13 +3023,13 @@
|
|
|
3023
3023
|
"text": "object"
|
|
3024
3024
|
},
|
|
3025
3025
|
"static": true,
|
|
3026
|
-
"default": "{ justify: { type: String, reflect: true },
|
|
3026
|
+
"default": "{ justify: { type: String, reflect: true }, items: { type: String, reflect: true }, color: { type: String, reflect: true }, gap: { type: String, reflect: true }, }"
|
|
3027
3027
|
},
|
|
3028
3028
|
{
|
|
3029
3029
|
"kind": "field",
|
|
3030
3030
|
"name": "styles",
|
|
3031
3031
|
"static": true,
|
|
3032
|
-
"default": "css` :host { display: flex; flex-wrap: wrap; box-sizing: border-box; width: 100%; --kg-gap: var(--kg-space-md, 1rem); /* Default gap variable */ gap: var(--kg-gap); } /* Justify (Horizontal) */ :host([justify=\"start\"]) { justify-content: flex-start; } :host([justify=\"center\"]) { justify-content: center; } :host([justify=\"end\"]) { justify-content: flex-end; } :host([justify=\"space-between\"]) { justify-content: space-between; } :host([justify=\"space-around\"]) { justify-content: space-around; } :host([justify=\"space-evenly\"]) { justify-content: space-evenly; } /*
|
|
3032
|
+
"default": "css` :host { display: flex; flex-wrap: wrap; box-sizing: border-box; width: 100%; --kg-gap: var(--kg-space-md, 1rem); /* Default gap variable */ gap: var(--kg-gap); } /* Justify (Horizontal) */ :host([justify=\"start\"]) { justify-content: flex-start; } :host([justify=\"center\"]) { justify-content: center; } :host([justify=\"end\"]) { justify-content: flex-end; } :host([justify=\"space-between\"]) { justify-content: space-between; } :host([justify=\"space-around\"]) { justify-content: space-around; } :host([justify=\"space-evenly\"]) { justify-content: space-evenly; } /* Items (Vertical) */ :host([items=\"start\"]) { align-items: flex-start; } :host([items=\"center\"]) { align-items: center; } :host([items=\"end\"]) { align-items: flex-end; } :host([items=\"stretch\"]) { align-items: stretch; } :host([items=\"baseline\"]) { align-items: baseline; } `"
|
|
3033
3033
|
},
|
|
3034
3034
|
{
|
|
3035
3035
|
"kind": "method",
|
|
@@ -3048,7 +3048,7 @@
|
|
|
3048
3048
|
"text": "String"
|
|
3049
3049
|
},
|
|
3050
3050
|
"description": "Vertical alignment (start, center, end, stretch, baseline)",
|
|
3051
|
-
"name": "
|
|
3051
|
+
"name": "items",
|
|
3052
3052
|
"kind": "field"
|
|
3053
3053
|
},
|
|
3054
3054
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=(e,s,i)=>((e,s,i)=>s in e?t(e,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[s]=i)(e,"symbol"!=typeof s?s+"":s,i);import{LitElement as s,css as i,html as n}from"lit";class
|
|
1
|
+
var t=Object.defineProperty,e=(e,s,i)=>((e,s,i)=>s in e?t(e,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[s]=i)(e,"symbol"!=typeof s?s+"":s,i);import{LitElement as s,css as i,html as n}from"lit";class r extends s{render(){const t=[];return this.color&&t.push(`background-color: ${this.color};`),this.gap&&(t.push(`gap: ${this.gap};`),t.push(`--kg-gap: ${this.gap};`)),n`
|
|
2
2
|
<style>
|
|
3
3
|
:host { ${t.join(" ")} }
|
|
4
4
|
</style>
|
|
5
5
|
<slot></slot>
|
|
6
|
-
`}}e(
|
|
6
|
+
`}}e(r,"properties",{justify:{type:String,reflect:!0},items:{type:String,reflect:!0},color:{type:String,reflect:!0},gap:{type:String,reflect:!0}}),e(r,"styles",i`
|
|
7
7
|
:host {
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-wrap: wrap;
|
|
@@ -21,10 +21,10 @@ var t=Object.defineProperty,e=(e,s,i)=>((e,s,i)=>s in e?t(e,s,{enumerable:!0,con
|
|
|
21
21
|
:host([justify="space-around"]) { justify-content: space-around; }
|
|
22
22
|
:host([justify="space-evenly"]) { justify-content: space-evenly; }
|
|
23
23
|
|
|
24
|
-
/*
|
|
25
|
-
:host([
|
|
26
|
-
:host([
|
|
27
|
-
:host([
|
|
28
|
-
:host([
|
|
29
|
-
:host([
|
|
30
|
-
`),customElements.define("kg-row",
|
|
24
|
+
/* Items (Vertical) */
|
|
25
|
+
:host([items="start"]) { align-items: flex-start; }
|
|
26
|
+
:host([items="center"]) { align-items: center; }
|
|
27
|
+
:host([items="end"]) { align-items: flex-end; }
|
|
28
|
+
:host([items="stretch"]) { align-items: stretch; }
|
|
29
|
+
:host([items="baseline"]) { align-items: baseline; }
|
|
30
|
+
`),customElements.define("kg-row",r);export{r as kgrow};
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ export class kgrow extends LitElement {
|
|
|
5
5
|
/** Horizontal alignment (start, center, end, space-between, space-around, space-evenly) */
|
|
6
6
|
justify: string;
|
|
7
7
|
/** Vertical alignment (start, center, end, stretch, baseline) */
|
|
8
|
-
|
|
8
|
+
items: string;
|
|
9
9
|
/** Background color */
|
|
10
10
|
color: string;
|
|
11
11
|
}
|
|
@@ -19,7 +19,7 @@ declare global {
|
|
|
19
19
|
interface IntrinsicElements {
|
|
20
20
|
'kg-row': {
|
|
21
21
|
justify?: string;
|
|
22
|
-
|
|
22
|
+
items?: string;
|
|
23
23
|
color?: string;
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
};
|