@kubex/zinc 1.1.82 → 1.1.84
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/dist/custom-elements.json +75 -1
- package/dist/vscode.html-custom-data.json +5 -0
- package/dist/web-types.json +11 -1
- package/dist/zn.d.ts +18 -0
- package/dist/zn.min.js +189 -189
- package/docs/pages/components/cols.md +43 -0
- package/docs/pages/components/theme-editor.md +7 -5
- package/package.json +1 -1
- package/src/components/cols/cols.component.ts +79 -0
- package/src/components/cols/cols.scss +45 -0
- package/src/components/cols/cols.test.ts +131 -3
- package/src/components/theme-editor/theme-editor.scss +34 -30
|
@@ -6046,6 +6046,17 @@
|
|
|
6046
6046
|
"attribute": "layout",
|
|
6047
6047
|
"reflects": true
|
|
6048
6048
|
},
|
|
6049
|
+
{
|
|
6050
|
+
"kind": "field",
|
|
6051
|
+
"name": "stackAt",
|
|
6052
|
+
"type": {
|
|
6053
|
+
"text": "string"
|
|
6054
|
+
},
|
|
6055
|
+
"default": "''",
|
|
6056
|
+
"description": "Container width the columns collapse to a single column below, as one of the named zinc\ncontainer sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares\n`stack-order` or `stack-split`, otherwise the columns never explicitly stack.",
|
|
6057
|
+
"attribute": "stack-at",
|
|
6058
|
+
"reflects": true
|
|
6059
|
+
},
|
|
6049
6060
|
{
|
|
6050
6061
|
"kind": "field",
|
|
6051
6062
|
"name": "maxColumns",
|
|
@@ -6106,6 +6117,60 @@
|
|
|
6106
6117
|
"text": "boolean"
|
|
6107
6118
|
},
|
|
6108
6119
|
"attribute": "pad-y"
|
|
6120
|
+
},
|
|
6121
|
+
{
|
|
6122
|
+
"kind": "field",
|
|
6123
|
+
"name": "childObserver",
|
|
6124
|
+
"type": {
|
|
6125
|
+
"text": "MutationObserver"
|
|
6126
|
+
},
|
|
6127
|
+
"privacy": "private",
|
|
6128
|
+
"readonly": true,
|
|
6129
|
+
"default": "new MutationObserver(() => this.requestUpdate())"
|
|
6130
|
+
},
|
|
6131
|
+
{
|
|
6132
|
+
"kind": "method",
|
|
6133
|
+
"name": "stackOrder",
|
|
6134
|
+
"privacy": "private",
|
|
6135
|
+
"return": {
|
|
6136
|
+
"type": {
|
|
6137
|
+
"text": "number | null"
|
|
6138
|
+
}
|
|
6139
|
+
},
|
|
6140
|
+
"parameters": [
|
|
6141
|
+
{
|
|
6142
|
+
"name": "element",
|
|
6143
|
+
"type": {
|
|
6144
|
+
"text": "Element"
|
|
6145
|
+
}
|
|
6146
|
+
}
|
|
6147
|
+
],
|
|
6148
|
+
"description": "Reads the `stack-order` attribute of an element, returning null when it does not declare one."
|
|
6149
|
+
},
|
|
6150
|
+
{
|
|
6151
|
+
"kind": "method",
|
|
6152
|
+
"name": "applyStackOrder",
|
|
6153
|
+
"privacy": "private",
|
|
6154
|
+
"return": {
|
|
6155
|
+
"type": {
|
|
6156
|
+
"text": "number | null"
|
|
6157
|
+
}
|
|
6158
|
+
},
|
|
6159
|
+
"parameters": [
|
|
6160
|
+
{
|
|
6161
|
+
"name": "element",
|
|
6162
|
+
"type": {
|
|
6163
|
+
"text": "HTMLElement"
|
|
6164
|
+
}
|
|
6165
|
+
},
|
|
6166
|
+
{
|
|
6167
|
+
"name": "promoted",
|
|
6168
|
+
"type": {
|
|
6169
|
+
"text": "boolean"
|
|
6170
|
+
}
|
|
6171
|
+
}
|
|
6172
|
+
],
|
|
6173
|
+
"description": "Applies the declared stack order to an element. `--zn-stacked` is 0 until the container\nquery in our stylesheet flips it to 1, so ordering only kicks in once stacked."
|
|
6109
6174
|
}
|
|
6110
6175
|
],
|
|
6111
6176
|
"events": [
|
|
@@ -6123,6 +6188,15 @@
|
|
|
6123
6188
|
"default": "''",
|
|
6124
6189
|
"fieldName": "layout"
|
|
6125
6190
|
},
|
|
6191
|
+
{
|
|
6192
|
+
"name": "stack-at",
|
|
6193
|
+
"type": {
|
|
6194
|
+
"text": "string"
|
|
6195
|
+
},
|
|
6196
|
+
"default": "''",
|
|
6197
|
+
"description": "Container width the columns collapse to a single column below, as one of the named zinc\ncontainer sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares\n`stack-order` or `stack-split`, otherwise the columns never explicitly stack.",
|
|
6198
|
+
"fieldName": "stackAt"
|
|
6199
|
+
},
|
|
6126
6200
|
{
|
|
6127
6201
|
"name": "mc",
|
|
6128
6202
|
"type": {
|
|
@@ -45776,7 +45850,7 @@
|
|
|
45776
45850
|
"package": {
|
|
45777
45851
|
"name": "@kubex/zinc",
|
|
45778
45852
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
45779
|
-
"version": "1.1.
|
|
45853
|
+
"version": "1.1.84",
|
|
45780
45854
|
"author": "",
|
|
45781
45855
|
"license": "MIT"
|
|
45782
45856
|
}
|
|
@@ -834,6 +834,11 @@
|
|
|
834
834
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
835
835
|
"attributes": [
|
|
836
836
|
{ "name": "layout", "values": [] },
|
|
837
|
+
{
|
|
838
|
+
"name": "stack-at",
|
|
839
|
+
"description": "Container width the columns collapse to a single column below, as one of the named zinc\ncontainer sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares\n`stack-order` or `stack-split`, otherwise the columns never explicitly stack.",
|
|
840
|
+
"values": []
|
|
841
|
+
},
|
|
837
842
|
{ "name": "mc", "values": [] },
|
|
838
843
|
{ "name": "no-gap", "values": [] },
|
|
839
844
|
{ "name": "border", "values": [] },
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.84",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1840,6 +1840,11 @@
|
|
|
1840
1840
|
"name": "layout",
|
|
1841
1841
|
"value": { "type": "string", "default": "''" }
|
|
1842
1842
|
},
|
|
1843
|
+
{
|
|
1844
|
+
"name": "stack-at",
|
|
1845
|
+
"description": "Container width the columns collapse to a single column below, as one of the named zinc\ncontainer sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares\n`stack-order` or `stack-split`, otherwise the columns never explicitly stack.",
|
|
1846
|
+
"value": { "type": "string", "default": "''" }
|
|
1847
|
+
},
|
|
1843
1848
|
{ "name": "mc", "value": { "type": "number", "default": "0" } },
|
|
1844
1849
|
{
|
|
1845
1850
|
"name": "no-gap",
|
|
@@ -1867,6 +1872,11 @@
|
|
|
1867
1872
|
"js": {
|
|
1868
1873
|
"properties": [
|
|
1869
1874
|
{ "name": "layout", "type": "string" },
|
|
1875
|
+
{
|
|
1876
|
+
"name": "stackAt",
|
|
1877
|
+
"description": "Container width the columns collapse to a single column below, as one of the named zinc\ncontainer sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares\n`stack-order` or `stack-split`, otherwise the columns never explicitly stack.",
|
|
1878
|
+
"type": "string"
|
|
1879
|
+
},
|
|
1870
1880
|
{ "name": "maxColumns", "type": "number" },
|
|
1871
1881
|
{ "name": "noGap", "type": "boolean" },
|
|
1872
1882
|
{ "name": "border", "type": "boolean" },
|
package/dist/zn.d.ts
CHANGED
|
@@ -4022,6 +4022,12 @@ declare module "components/cols/cols.component" {
|
|
|
4022
4022
|
export default class ZnCols extends ZincElement {
|
|
4023
4023
|
static styles: CSSResultGroup;
|
|
4024
4024
|
layout: string;
|
|
4025
|
+
/**
|
|
4026
|
+
* Container width the columns collapse to a single column below, as one of the named zinc
|
|
4027
|
+
* container sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares
|
|
4028
|
+
* `stack-order` or `stack-split`, otherwise the columns never explicitly stack.
|
|
4029
|
+
*/
|
|
4030
|
+
stackAt: string;
|
|
4025
4031
|
maxColumns: number;
|
|
4026
4032
|
noGap: boolean;
|
|
4027
4033
|
border: boolean;
|
|
@@ -4029,6 +4035,18 @@ declare module "components/cols/cols.component" {
|
|
|
4029
4035
|
divide: boolean;
|
|
4030
4036
|
padX: boolean;
|
|
4031
4037
|
padY: boolean;
|
|
4038
|
+
private readonly childObserver;
|
|
4039
|
+
connectedCallback(): void;
|
|
4040
|
+
disconnectedCallback(): void;
|
|
4041
|
+
/**
|
|
4042
|
+
* Reads the `stack-order` attribute of an element, returning null when it does not declare one.
|
|
4043
|
+
*/
|
|
4044
|
+
private stackOrder;
|
|
4045
|
+
/**
|
|
4046
|
+
* Applies the declared stack order to an element. `--zn-stacked` is 0 until the container
|
|
4047
|
+
* query in our stylesheet flips it to 1, so ordering only kicks in once stacked.
|
|
4048
|
+
*/
|
|
4049
|
+
private applyStackOrder;
|
|
4032
4050
|
render(): import("lit-html").TemplateResult<1>;
|
|
4033
4051
|
}
|
|
4034
4052
|
}
|