@kubex/zinc 1.1.82 → 1.1.83

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.
@@ -47,79 +47,6 @@
47
47
  }
48
48
  ]
49
49
  },
50
- {
51
- "kind": "javascript-module",
52
- "path": "components/action-bar/action-bar.js",
53
- "declarations": [
54
- {
55
- "kind": "class",
56
- "description": "",
57
- "name": "ZnActionBar",
58
- "cssProperties": [
59
- {
60
- "description": "An example CSS custom property.",
61
- "name": "--example"
62
- }
63
- ],
64
- "cssParts": [
65
- {
66
- "description": "The component's base wrapper.",
67
- "name": "base"
68
- }
69
- ],
70
- "slots": [
71
- {
72
- "description": "The default slot.",
73
- "name": ""
74
- },
75
- {
76
- "description": "An example slot.",
77
- "name": "example"
78
- }
79
- ],
80
- "members": [
81
- {
82
- "kind": "field",
83
- "name": "localize",
84
- "privacy": "private",
85
- "readonly": true,
86
- "default": "new LocalizeController(this)"
87
- }
88
- ],
89
- "events": [
90
- {
91
- "description": "Emitted as an example.",
92
- "name": "zn-event-name"
93
- }
94
- ],
95
- "superclass": {
96
- "name": "ZincElement",
97
- "module": "/src/internal/zinc-element"
98
- },
99
- "summary": "Short summary of the component's intended use.",
100
- "tagNameWithoutPrefix": "action-bar",
101
- "tagName": "zn-action-bar",
102
- "customElement": true,
103
- "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
104
- "documentation": "https://zinc.style/components/action-bar",
105
- "status": "experimental",
106
- "since": "1.0",
107
- "dependencies": [
108
- "zn-example"
109
- ]
110
- }
111
- ],
112
- "exports": [
113
- {
114
- "kind": "js",
115
- "name": "default",
116
- "declaration": {
117
- "name": "ZnActionBar",
118
- "module": "components/action-bar/action-bar.js"
119
- }
120
- }
121
- ]
122
- },
123
50
  {
124
51
  "kind": "javascript-module",
125
52
  "path": "components/alert/alert.js",
@@ -314,6 +241,79 @@
314
241
  }
315
242
  ]
316
243
  },
244
+ {
245
+ "kind": "javascript-module",
246
+ "path": "components/action-bar/action-bar.js",
247
+ "declarations": [
248
+ {
249
+ "kind": "class",
250
+ "description": "",
251
+ "name": "ZnActionBar",
252
+ "cssProperties": [
253
+ {
254
+ "description": "An example CSS custom property.",
255
+ "name": "--example"
256
+ }
257
+ ],
258
+ "cssParts": [
259
+ {
260
+ "description": "The component's base wrapper.",
261
+ "name": "base"
262
+ }
263
+ ],
264
+ "slots": [
265
+ {
266
+ "description": "The default slot.",
267
+ "name": ""
268
+ },
269
+ {
270
+ "description": "An example slot.",
271
+ "name": "example"
272
+ }
273
+ ],
274
+ "members": [
275
+ {
276
+ "kind": "field",
277
+ "name": "localize",
278
+ "privacy": "private",
279
+ "readonly": true,
280
+ "default": "new LocalizeController(this)"
281
+ }
282
+ ],
283
+ "events": [
284
+ {
285
+ "description": "Emitted as an example.",
286
+ "name": "zn-event-name"
287
+ }
288
+ ],
289
+ "superclass": {
290
+ "name": "ZincElement",
291
+ "module": "/src/internal/zinc-element"
292
+ },
293
+ "summary": "Short summary of the component's intended use.",
294
+ "tagNameWithoutPrefix": "action-bar",
295
+ "tagName": "zn-action-bar",
296
+ "customElement": true,
297
+ "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
298
+ "documentation": "https://zinc.style/components/action-bar",
299
+ "status": "experimental",
300
+ "since": "1.0",
301
+ "dependencies": [
302
+ "zn-example"
303
+ ]
304
+ }
305
+ ],
306
+ "exports": [
307
+ {
308
+ "kind": "js",
309
+ "name": "default",
310
+ "declaration": {
311
+ "name": "ZnActionBar",
312
+ "module": "components/action-bar/action-bar.js"
313
+ }
314
+ }
315
+ ]
316
+ },
317
317
  {
318
318
  "kind": "javascript-module",
319
319
  "path": "components/animated-button/animated-button.js",
@@ -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.82",
45853
+ "version": "1.1.83",
45780
45854
  "author": "",
45781
45855
  "license": "MIT"
45782
45856
  }
@@ -13,17 +13,6 @@
13
13
  }
14
14
  ]
15
15
  },
16
- {
17
- "name": "zn-action-bar",
18
- "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.",
19
- "attributes": [],
20
- "references": [
21
- {
22
- "name": "Documentation",
23
- "url": "https://zinc.style/components/action-bar"
24
- }
25
- ]
26
- },
27
16
  {
28
17
  "name": "zn-alert",
29
18
  "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.",
@@ -64,6 +53,17 @@
64
53
  }
65
54
  ]
66
55
  },
56
+ {
57
+ "name": "zn-action-bar",
58
+ "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.",
59
+ "attributes": [],
60
+ "references": [
61
+ {
62
+ "name": "Documentation",
63
+ "url": "https://zinc.style/components/action-bar"
64
+ }
65
+ ]
66
+ },
67
67
  {
68
68
  "name": "zn-animated-button",
69
69
  "description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
@@ -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": [] },
@@ -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.82",
4
+ "version": "1.1.83",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,28 +15,6 @@
15
15
  "events": [],
16
16
  "js": { "properties": [], "events": [] }
17
17
  },
18
- {
19
- "name": "zn-action-bar",
20
- "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.",
21
- "doc-url": "",
22
- "attributes": [],
23
- "slots": [
24
- { "name": "", "description": "The default slot." },
25
- { "name": "example", "description": "An example slot." }
26
- ],
27
- "events": [
28
- { "name": "zn-event-name", "description": "Emitted as an example." }
29
- ],
30
- "js": {
31
- "properties": [],
32
- "events": [
33
- {
34
- "name": "zn-event-name",
35
- "description": "Emitted as an example."
36
- }
37
- ]
38
- }
39
- },
40
18
  {
41
19
  "name": "zn-alert",
42
20
  "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.",
@@ -105,6 +83,28 @@
105
83
  ]
106
84
  }
107
85
  },
86
+ {
87
+ "name": "zn-action-bar",
88
+ "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.",
89
+ "doc-url": "",
90
+ "attributes": [],
91
+ "slots": [
92
+ { "name": "", "description": "The default slot." },
93
+ { "name": "example", "description": "An example slot." }
94
+ ],
95
+ "events": [
96
+ { "name": "zn-event-name", "description": "Emitted as an example." }
97
+ ],
98
+ "js": {
99
+ "properties": [],
100
+ "events": [
101
+ {
102
+ "name": "zn-event-name",
103
+ "description": "Emitted as an example."
104
+ }
105
+ ]
106
+ }
107
+ },
108
108
  {
109
109
  "name": "zn-animated-button",
110
110
  "description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
@@ -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
  }