@kubex/zinc 1.1.182 → 1.1.184

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.
@@ -13,6 +13,17 @@
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
+ },
16
27
  {
17
28
  "name": "zn-alert",
18
29
  "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.",
@@ -53,17 +64,6 @@
53
64
  }
54
65
  ]
55
66
  },
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",
@@ -912,28 +912,6 @@
912
912
  }
913
913
  ]
914
914
  },
915
- {
916
- "name": "zn-cols",
917
- "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.",
918
- "attributes": [
919
- { "name": "layout", "values": [] },
920
- {
921
- "name": "stack-at",
922
- "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.",
923
- "values": []
924
- },
925
- { "name": "mc", "values": [] },
926
- { "name": "no-gap", "values": [] },
927
- { "name": "border", "values": [] },
928
- { "name": "pad", "values": [] },
929
- { "name": "divide", "values": [] },
930
- { "name": "pad-x", "values": [] },
931
- { "name": "pad-y", "values": [] }
932
- ],
933
- "references": [
934
- { "name": "Documentation", "url": "https://zinc.style/components/cols" }
935
- ]
936
- },
937
915
  {
938
916
  "name": "zn-color-select",
939
917
  "description": "A simple color picker. The dropdown lists color swatches with names; the closed control shows only the selected color's swatch.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the selected color changes.\n- **zn-clear** - Emitted when the clear button is activated.\n\n### **CSS Parts:**\n - **swatch** - The color swatch shown in the closed control.\n- **combobox** - The container that wraps the swatch and expand button (forwarded from zn-select).\n- **form-control-help-text** - The help text's wrapper (forwarded from zn-select).\n- **form-control-input** - The select's wrapper (forwarded from zn-select).",
@@ -977,6 +955,28 @@
977
955
  }
978
956
  ]
979
957
  },
958
+ {
959
+ "name": "zn-cols",
960
+ "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.",
961
+ "attributes": [
962
+ { "name": "layout", "values": [] },
963
+ {
964
+ "name": "stack-at",
965
+ "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.",
966
+ "values": []
967
+ },
968
+ { "name": "mc", "values": [] },
969
+ { "name": "no-gap", "values": [] },
970
+ { "name": "border", "values": [] },
971
+ { "name": "pad", "values": [] },
972
+ { "name": "divide", "values": [] },
973
+ { "name": "pad-x", "values": [] },
974
+ { "name": "pad-y", "values": [] }
975
+ ],
976
+ "references": [
977
+ { "name": "Documentation", "url": "https://zinc.style/components/cols" }
978
+ ]
979
+ },
980
980
  {
981
981
  "name": "zn-confirm",
982
982
  "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.",
@@ -1329,6 +1329,63 @@
1329
1329
  }
1330
1330
  ]
1331
1331
  },
1332
+ {
1333
+ "name": "zn-defined-label",
1334
+ "description": "This component provides a labeled input with support for predefined and custom labels,\nallowing users to select or enter label-value pairs within a dropdown interface.\n---\n\n\n### **CSS Parts:**\n - **input** - The component's main input.\n- **input-value** - The label's value inputs.",
1335
+ "attributes": [
1336
+ {
1337
+ "name": "value",
1338
+ "description": "The selected label key. Also acts as the filter while typing.",
1339
+ "values": []
1340
+ },
1341
+ {
1342
+ "name": "inputValue",
1343
+ "description": "The value entered for the selected label. Submitted as `label:value` when present.",
1344
+ "values": []
1345
+ },
1346
+ {
1347
+ "name": "input-size",
1348
+ "description": "The size of the main input.",
1349
+ "values": [
1350
+ { "name": "x-small" },
1351
+ { "name": "small" },
1352
+ { "name": "medium" },
1353
+ { "name": "large" }
1354
+ ]
1355
+ },
1356
+ {
1357
+ "name": "name",
1358
+ "description": "The name of the control. Used for form submission.",
1359
+ "values": []
1360
+ },
1361
+ {
1362
+ "name": "title",
1363
+ "description": "The title of the main input.",
1364
+ "values": []
1365
+ },
1366
+ {
1367
+ "name": "disabled",
1368
+ "description": "Disables the control.",
1369
+ "values": []
1370
+ },
1371
+ {
1372
+ "name": "allow-custom",
1373
+ "description": "Allows labels that aren't in the predefined list.",
1374
+ "values": []
1375
+ },
1376
+ {
1377
+ "name": "predefined-labels",
1378
+ "description": "The predefined labels. Entries are either a string or `{name, options}`.",
1379
+ "values": [{ "name": "(PredefinedLabel" }, { "name": "string)[]" }]
1380
+ }
1381
+ ],
1382
+ "references": [
1383
+ {
1384
+ "name": "Documentation",
1385
+ "url": "https://zinc.style/components/defined-label"
1386
+ }
1387
+ ]
1388
+ },
1332
1389
  {
1333
1390
  "name": "zn-datepicker",
1334
1391
  "description": "A date picker component with calendar popup and input validation.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the date value changes.\n- **zn-input** - Emitted when the input value changes.\n- **zn-blur** - Emitted when the input loses focus.\n- **zn-focus** - Emitted when the input gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\n- **checkValidity(): _boolean_** - Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The datepicker's label. Alternatively, you can use the `label` attribute.\n- **label-tooltip** - Tooltip content for the label. Alternatively, you can use the `label-tooltip` attribute.\n- **context-note** - Additional context text displayed above the input. Alternatively, you can use the `context-note` attribute.\n- **help-text** - Help text displayed below the input. Alternatively, you can use the `help-text` attribute.\n- **prefix** - Content to display before the input (in addition to the default calendar icon).\n- **suffix** - Content to display after the input.\n\n### **CSS Properties:**\n - **--zn-input-*** - Inherited input component CSS custom properties. _(default: undefined)_\n- **--zn-datepicker-inline-border-color** - Border colour of the calendar in `inline` mode. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-control** - The form control wrapper.\n- **form-control-label** - The label element.\n- **form-control-input** - The input wrapper.\n- **form-control-help-text** - The help text element.",
@@ -1462,63 +1519,6 @@
1462
1519
  }
1463
1520
  ]
1464
1521
  },
1465
- {
1466
- "name": "zn-defined-label",
1467
- "description": "This component provides a labeled input with support for predefined and custom labels,\nallowing users to select or enter label-value pairs within a dropdown interface.\n---\n\n\n### **CSS Parts:**\n - **input** - The component's main input.\n- **input-value** - The label's value inputs.",
1468
- "attributes": [
1469
- {
1470
- "name": "value",
1471
- "description": "The selected label key. Also acts as the filter while typing.",
1472
- "values": []
1473
- },
1474
- {
1475
- "name": "inputValue",
1476
- "description": "The value entered for the selected label. Submitted as `label:value` when present.",
1477
- "values": []
1478
- },
1479
- {
1480
- "name": "input-size",
1481
- "description": "The size of the main input.",
1482
- "values": [
1483
- { "name": "x-small" },
1484
- { "name": "small" },
1485
- { "name": "medium" },
1486
- { "name": "large" }
1487
- ]
1488
- },
1489
- {
1490
- "name": "name",
1491
- "description": "The name of the control. Used for form submission.",
1492
- "values": []
1493
- },
1494
- {
1495
- "name": "title",
1496
- "description": "The title of the main input.",
1497
- "values": []
1498
- },
1499
- {
1500
- "name": "disabled",
1501
- "description": "Disables the control.",
1502
- "values": []
1503
- },
1504
- {
1505
- "name": "allow-custom",
1506
- "description": "Allows labels that aren't in the predefined list.",
1507
- "values": []
1508
- },
1509
- {
1510
- "name": "predefined-labels",
1511
- "description": "The predefined labels. Entries are either a string or `{name, options}`.",
1512
- "values": [{ "name": "(PredefinedLabel" }, { "name": "string)[]" }]
1513
- }
1514
- ],
1515
- "references": [
1516
- {
1517
- "name": "Documentation",
1518
- "url": "https://zinc.style/components/defined-label"
1519
- }
1520
- ]
1521
- },
1522
1522
  {
1523
1523
  "name": "zn-dialog",
1524
1524
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-show** - Emitted when the dialog is opens.\n- **zn-close** - Emitted when the dialog is closed.\n- **zn-request-close** - Emitted when the user attempts to close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the dialog.\n- **hide()** - Hides the dialog.\n\n### **Slots:**\n - _default_ - The default slot.\n- **label** - The dialog's label. Alternatively you can use the `label` attribute.\n- **header-icon** - Optional icon to add to the left of the dialog's label (title). A color will be applied to the icon depending on the dialog variant.\n- **announcement-intro** - Optional Intro text to display below the icon, when using the variant `announcement`.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **footer** - The dialog's footer. This is typically used for buttons representing various options.\n- **footer-text** - Optional text to include below the footer buttons, when using the variant `announcement`.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the dialog. Note the dialog will shrink to accommodate smaller screens. _(default: undefined)_\n- **--header-spacing** - The amount of padding to use for the header. _(default: undefined)_\n- **--body-spacing** - The amount of padding to use for the body. _(default: undefined)_\n- **--footer-spacing** - The amount of padding to use for the footer. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The dialog's header. This element wraps the title and header actions.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **title** - The dialog's title.\n- **close-button** - The dialog's close button.\n- **close-button__base** - The close buttons exported `base` part.\n- **body** - The dialog's body.\n- **footer** - The dialog's footer.",
@@ -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.182",
4
+ "version": "1.1.184",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,6 +15,28 @@
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\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
+ },
18
40
  {
19
41
  "name": "zn-alert",
20
42
  "description": "Short summary of the component's intended use.\n\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.",
@@ -83,28 +105,6 @@
83
105
  ]
84
106
  }
85
107
  },
86
- {
87
- "name": "zn-action-bar",
88
- "description": "Short summary of the component's intended use.\n\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\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",
@@ -2003,68 +2003,6 @@
2003
2003
  "events": []
2004
2004
  }
2005
2005
  },
2006
- {
2007
- "name": "zn-cols",
2008
- "description": "Short summary of the component's intended use.\n\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.",
2009
- "doc-url": "",
2010
- "attributes": [
2011
- {
2012
- "name": "layout",
2013
- "value": { "type": "string", "default": "''" }
2014
- },
2015
- {
2016
- "name": "stack-at",
2017
- "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.",
2018
- "value": { "type": "string", "default": "''" }
2019
- },
2020
- { "name": "mc", "value": { "type": "number", "default": "0" } },
2021
- {
2022
- "name": "no-gap",
2023
- "value": { "type": "boolean", "default": "false" }
2024
- },
2025
- {
2026
- "name": "border",
2027
- "value": { "type": "boolean", "default": "false" }
2028
- },
2029
- { "name": "pad", "value": { "type": "boolean" } },
2030
- {
2031
- "name": "divide",
2032
- "value": { "type": "boolean", "default": "false" }
2033
- },
2034
- { "name": "pad-x", "value": { "type": "boolean" } },
2035
- { "name": "pad-y", "value": { "type": "boolean" } }
2036
- ],
2037
- "slots": [
2038
- { "name": "", "description": "The default slot." },
2039
- { "name": "example", "description": "An example slot." }
2040
- ],
2041
- "events": [
2042
- { "name": "zn-event-name", "description": "Emitted as an example." }
2043
- ],
2044
- "js": {
2045
- "properties": [
2046
- { "name": "layout", "type": "string" },
2047
- {
2048
- "name": "stackAt",
2049
- "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.",
2050
- "type": "string"
2051
- },
2052
- { "name": "maxColumns", "type": "number" },
2053
- { "name": "noGap", "type": "boolean" },
2054
- { "name": "border", "type": "boolean" },
2055
- { "name": "pad", "type": "boolean" },
2056
- { "name": "divide", "type": "boolean" },
2057
- { "name": "padX", "type": "boolean" },
2058
- { "name": "padY", "type": "boolean" }
2059
- ],
2060
- "events": [
2061
- {
2062
- "name": "zn-event-name",
2063
- "description": "Emitted as an example."
2064
- }
2065
- ]
2066
- }
2067
- },
2068
2006
  {
2069
2007
  "name": "zn-color-select",
2070
2008
  "description": "A simple color picker. The dropdown lists color swatches with names; the closed control shows only the selected color's swatch.\n\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the selected color changes.\n- **zn-clear** - Emitted when the clear button is activated.\n\n### **CSS Parts:**\n - **swatch** - The color swatch shown in the closed control.\n- **combobox** - The container that wraps the swatch and expand button (forwarded from zn-select).\n- **form-control-help-text** - The help text's wrapper (forwarded from zn-select).\n- **form-control-input** - The select's wrapper (forwarded from zn-select).",
@@ -2169,6 +2107,68 @@
2169
2107
  ]
2170
2108
  }
2171
2109
  },
2110
+ {
2111
+ "name": "zn-cols",
2112
+ "description": "Short summary of the component's intended use.\n\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.",
2113
+ "doc-url": "",
2114
+ "attributes": [
2115
+ {
2116
+ "name": "layout",
2117
+ "value": { "type": "string", "default": "''" }
2118
+ },
2119
+ {
2120
+ "name": "stack-at",
2121
+ "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.",
2122
+ "value": { "type": "string", "default": "''" }
2123
+ },
2124
+ { "name": "mc", "value": { "type": "number", "default": "0" } },
2125
+ {
2126
+ "name": "no-gap",
2127
+ "value": { "type": "boolean", "default": "false" }
2128
+ },
2129
+ {
2130
+ "name": "border",
2131
+ "value": { "type": "boolean", "default": "false" }
2132
+ },
2133
+ { "name": "pad", "value": { "type": "boolean" } },
2134
+ {
2135
+ "name": "divide",
2136
+ "value": { "type": "boolean", "default": "false" }
2137
+ },
2138
+ { "name": "pad-x", "value": { "type": "boolean" } },
2139
+ { "name": "pad-y", "value": { "type": "boolean" } }
2140
+ ],
2141
+ "slots": [
2142
+ { "name": "", "description": "The default slot." },
2143
+ { "name": "example", "description": "An example slot." }
2144
+ ],
2145
+ "events": [
2146
+ { "name": "zn-event-name", "description": "Emitted as an example." }
2147
+ ],
2148
+ "js": {
2149
+ "properties": [
2150
+ { "name": "layout", "type": "string" },
2151
+ {
2152
+ "name": "stackAt",
2153
+ "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.",
2154
+ "type": "string"
2155
+ },
2156
+ { "name": "maxColumns", "type": "number" },
2157
+ { "name": "noGap", "type": "boolean" },
2158
+ { "name": "border", "type": "boolean" },
2159
+ { "name": "pad", "type": "boolean" },
2160
+ { "name": "divide", "type": "boolean" },
2161
+ { "name": "padX", "type": "boolean" },
2162
+ { "name": "padY", "type": "boolean" }
2163
+ ],
2164
+ "events": [
2165
+ {
2166
+ "name": "zn-event-name",
2167
+ "description": "Emitted as an example."
2168
+ }
2169
+ ]
2170
+ }
2171
+ },
2172
2172
  {
2173
2173
  "name": "zn-confirm",
2174
2174
  "description": "Short summary of the component's intended use.\n\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.",
@@ -3069,6 +3069,109 @@
3069
3069
  ]
3070
3070
  }
3071
3071
  },
3072
+ {
3073
+ "name": "zn-defined-label",
3074
+ "description": "This component provides a labeled input with support for predefined and custom labels,\nallowing users to select or enter label-value pairs within a dropdown interface.\n\n---\n\n\n### **CSS Parts:**\n - **input** - The component's main input.\n- **input-value** - The label's value inputs.",
3075
+ "doc-url": "",
3076
+ "attributes": [
3077
+ {
3078
+ "name": "value",
3079
+ "description": "The selected label key. Also acts as the filter while typing.",
3080
+ "value": { "type": "string", "default": "''" }
3081
+ },
3082
+ {
3083
+ "name": "inputValue",
3084
+ "description": "The value entered for the selected label. Submitted as `label:value` when present.",
3085
+ "value": { "type": "string", "default": "''" }
3086
+ },
3087
+ {
3088
+ "name": "input-size",
3089
+ "description": "The size of the main input.",
3090
+ "value": {
3091
+ "type": "'x-small' | 'small' | 'medium' | 'large'",
3092
+ "default": "'medium'"
3093
+ }
3094
+ },
3095
+ {
3096
+ "name": "name",
3097
+ "description": "The name of the control. Used for form submission.",
3098
+ "value": { "type": "string", "default": "'label'" }
3099
+ },
3100
+ {
3101
+ "name": "title",
3102
+ "description": "The title of the main input.",
3103
+ "value": { "type": "string" }
3104
+ },
3105
+ {
3106
+ "name": "disabled",
3107
+ "description": "Disables the control.",
3108
+ "value": { "type": "boolean", "default": "false" }
3109
+ },
3110
+ {
3111
+ "name": "allow-custom",
3112
+ "description": "Allows labels that aren't in the predefined list.",
3113
+ "value": { "type": "boolean", "default": "false" }
3114
+ },
3115
+ {
3116
+ "name": "predefined-labels",
3117
+ "description": "The predefined labels. Entries are either a string or `{name, options}`.",
3118
+ "value": {
3119
+ "type": "(PredefinedLabel | string)[]",
3120
+ "default": "[]"
3121
+ }
3122
+ }
3123
+ ],
3124
+ "events": [],
3125
+ "js": {
3126
+ "properties": [
3127
+ { "name": "input", "type": "ZnInput" },
3128
+ { "name": "dropdown", "type": "ZnDropdown" },
3129
+ {
3130
+ "name": "value",
3131
+ "description": "The selected label key. Also acts as the filter while typing.",
3132
+ "type": "string"
3133
+ },
3134
+ {
3135
+ "name": "inputValue",
3136
+ "description": "The value entered for the selected label. Submitted as `label:value` when present.",
3137
+ "type": "string"
3138
+ },
3139
+ {
3140
+ "name": "inputSize",
3141
+ "description": "The size of the main input.",
3142
+ "type": "'x-small' | 'small' | 'medium' | 'large'"
3143
+ },
3144
+ {
3145
+ "name": "name",
3146
+ "description": "The name of the control. Used for form submission.",
3147
+ "type": "string"
3148
+ },
3149
+ {
3150
+ "name": "title",
3151
+ "description": "The title of the main input.",
3152
+ "type": "string"
3153
+ },
3154
+ {
3155
+ "name": "disabled",
3156
+ "description": "Disables the control.",
3157
+ "type": "boolean"
3158
+ },
3159
+ {
3160
+ "name": "allowCustom",
3161
+ "description": "Allows labels that aren't in the predefined list.",
3162
+ "type": "boolean"
3163
+ },
3164
+ {
3165
+ "name": "predefinedLabels",
3166
+ "description": "The predefined labels. Entries are either a string or `{name, options}`.",
3167
+ "type": "(PredefinedLabel | string)[]"
3168
+ },
3169
+ { "name": "validationMessage" },
3170
+ { "name": "validity" }
3171
+ ],
3172
+ "events": []
3173
+ }
3174
+ },
3072
3175
  {
3073
3176
  "name": "zn-datepicker",
3074
3177
  "description": "A date picker component with calendar popup and input validation.\n\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the date value changes.\n- **zn-input** - Emitted when the input value changes.\n- **zn-blur** - Emitted when the input loses focus.\n- **zn-focus** - Emitted when the input gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\n- **checkValidity(): _boolean_** - Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The datepicker's label. Alternatively, you can use the `label` attribute.\n- **label-tooltip** - Tooltip content for the label. Alternatively, you can use the `label-tooltip` attribute.\n- **context-note** - Additional context text displayed above the input. Alternatively, you can use the `context-note` attribute.\n- **help-text** - Help text displayed below the input. Alternatively, you can use the `help-text` attribute.\n- **prefix** - Content to display before the input (in addition to the default calendar icon).\n- **suffix** - Content to display after the input.\n\n### **CSS Properties:**\n - **--zn-input-*** - Inherited input component CSS custom properties. _(default: undefined)_\n- **--zn-datepicker-inline-border-color** - Border colour of the calendar in `inline` mode. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-control** - The form control wrapper.\n- **form-control-label** - The label element.\n- **form-control-input** - The input wrapper.\n- **form-control-help-text** - The help text element.",
@@ -3403,109 +3506,6 @@
3403
3506
  ]
3404
3507
  }
3405
3508
  },
3406
- {
3407
- "name": "zn-defined-label",
3408
- "description": "This component provides a labeled input with support for predefined and custom labels,\nallowing users to select or enter label-value pairs within a dropdown interface.\n\n---\n\n\n### **CSS Parts:**\n - **input** - The component's main input.\n- **input-value** - The label's value inputs.",
3409
- "doc-url": "",
3410
- "attributes": [
3411
- {
3412
- "name": "value",
3413
- "description": "The selected label key. Also acts as the filter while typing.",
3414
- "value": { "type": "string", "default": "''" }
3415
- },
3416
- {
3417
- "name": "inputValue",
3418
- "description": "The value entered for the selected label. Submitted as `label:value` when present.",
3419
- "value": { "type": "string", "default": "''" }
3420
- },
3421
- {
3422
- "name": "input-size",
3423
- "description": "The size of the main input.",
3424
- "value": {
3425
- "type": "'x-small' | 'small' | 'medium' | 'large'",
3426
- "default": "'medium'"
3427
- }
3428
- },
3429
- {
3430
- "name": "name",
3431
- "description": "The name of the control. Used for form submission.",
3432
- "value": { "type": "string", "default": "'label'" }
3433
- },
3434
- {
3435
- "name": "title",
3436
- "description": "The title of the main input.",
3437
- "value": { "type": "string" }
3438
- },
3439
- {
3440
- "name": "disabled",
3441
- "description": "Disables the control.",
3442
- "value": { "type": "boolean", "default": "false" }
3443
- },
3444
- {
3445
- "name": "allow-custom",
3446
- "description": "Allows labels that aren't in the predefined list.",
3447
- "value": { "type": "boolean", "default": "false" }
3448
- },
3449
- {
3450
- "name": "predefined-labels",
3451
- "description": "The predefined labels. Entries are either a string or `{name, options}`.",
3452
- "value": {
3453
- "type": "(PredefinedLabel | string)[]",
3454
- "default": "[]"
3455
- }
3456
- }
3457
- ],
3458
- "events": [],
3459
- "js": {
3460
- "properties": [
3461
- { "name": "input", "type": "ZnInput" },
3462
- { "name": "dropdown", "type": "ZnDropdown" },
3463
- {
3464
- "name": "value",
3465
- "description": "The selected label key. Also acts as the filter while typing.",
3466
- "type": "string"
3467
- },
3468
- {
3469
- "name": "inputValue",
3470
- "description": "The value entered for the selected label. Submitted as `label:value` when present.",
3471
- "type": "string"
3472
- },
3473
- {
3474
- "name": "inputSize",
3475
- "description": "The size of the main input.",
3476
- "type": "'x-small' | 'small' | 'medium' | 'large'"
3477
- },
3478
- {
3479
- "name": "name",
3480
- "description": "The name of the control. Used for form submission.",
3481
- "type": "string"
3482
- },
3483
- {
3484
- "name": "title",
3485
- "description": "The title of the main input.",
3486
- "type": "string"
3487
- },
3488
- {
3489
- "name": "disabled",
3490
- "description": "Disables the control.",
3491
- "type": "boolean"
3492
- },
3493
- {
3494
- "name": "allowCustom",
3495
- "description": "Allows labels that aren't in the predefined list.",
3496
- "type": "boolean"
3497
- },
3498
- {
3499
- "name": "predefinedLabels",
3500
- "description": "The predefined labels. Entries are either a string or `{name, options}`.",
3501
- "type": "(PredefinedLabel | string)[]"
3502
- },
3503
- { "name": "validationMessage" },
3504
- { "name": "validity" }
3505
- ],
3506
- "events": []
3507
- }
3508
- },
3509
3509
  {
3510
3510
  "name": "zn-dialog",
3511
3511
  "description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-show** - Emitted when the dialog is opens.\n- **zn-close** - Emitted when the dialog is closed.\n- **zn-request-close** - Emitted when the user attempts to close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the dialog.\n- **hide()** - Hides the dialog.\n\n### **Slots:**\n - _default_ - The default slot.\n- **label** - The dialog's label. Alternatively you can use the `label` attribute.\n- **header-icon** - Optional icon to add to the left of the dialog's label (title). A color will be applied to the icon depending on the dialog variant.\n- **announcement-intro** - Optional Intro text to display below the icon, when using the variant `announcement`.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **footer** - The dialog's footer. This is typically used for buttons representing various options.\n- **footer-text** - Optional text to include below the footer buttons, when using the variant `announcement`.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the dialog. Note the dialog will shrink to accommodate smaller screens. _(default: undefined)_\n- **--header-spacing** - The amount of padding to use for the header. _(default: undefined)_\n- **--body-spacing** - The amount of padding to use for the body. _(default: undefined)_\n- **--footer-spacing** - The amount of padding to use for the footer. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The dialog's header. This element wraps the title and header actions.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **title** - The dialog's title.\n- **close-button** - The dialog's close button.\n- **close-button__base** - The close buttons exported `base` part.\n- **body** - The dialog's body.\n- **footer** - The dialog's footer.",