@kubex/zinc 1.0.119 → 1.1.0
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 +453 -20
- package/dist/vscode.html-custom-data.json +87 -11
- package/dist/web-types.json +168 -12
- package/dist/zn.d.ts +149 -25
- package/dist/zn.min.css +1 -1
- package/dist/zn.min.js +911 -874
- package/docs/assets/styles/docs.css +1 -1
- package/docs/pages/components/button.md +25 -7
- package/docs/pages/components/chat-message.md +62 -0
- package/docs/pages/components/data-table-search.md +6 -6
- package/docs/pages/components/editor.md +1 -1
- package/docs/pages/components/file.md +1 -1
- package/docs/pages/components/form-group.md +1 -1
- package/docs/pages/components/icon.md +19 -2
- package/docs/pages/components/menu.md +23 -2
- package/docs/pages/components/select.md +2 -2
- package/docs/pages/components/tile-group.md +92 -0
- package/docs/pages/components/tile.md +80 -25
- package/package.json +1 -1
- package/scss/_root.scss +1 -1
- package/scss/mixins/_spacing-mixins.scss +20 -0
- package/scss/mixins/_typography-mixins.scss +22 -0
- package/scss/mixins/index.scss +2 -1
- package/scss/shared/_base.scss +18 -20
- package/scss/shared/_button.scss +5 -3
- package/scss/shared/_table.scss +4 -1
- package/scss/shared/layout.scss +2 -2
- package/scss/themes/_index.scss +2 -0
- package/scss/themes/_light.scss +22 -45
- package/scss/themes/_spacing.scss +44 -0
- package/scss/themes/_typography.scss +62 -0
- package/src/components/animated-button/README.md +1 -1
- package/src/components/button/button.component.ts +27 -5
- package/src/components/button/button.scss +86 -30
- package/src/components/button-menu/button-menu.component.ts +22 -9
- package/src/components/button-menu/button-menu.scss +1 -2
- package/src/components/button-menu/button-menu.test.ts +18 -0
- package/src/components/chat-message/chat-message.component.ts +73 -0
- package/src/components/chat-message/chat-message.scss +60 -0
- package/src/components/chat-message/index.ts +12 -0
- package/src/components/checkbox/checkbox.scss +2 -2
- package/src/components/chip/chip.component.ts +0 -5
- package/src/components/chip/chip.scss +14 -35
- package/src/components/content-block/content-block.component.ts +46 -45
- package/src/components/content-block/content-block.scss +58 -27
- package/src/components/data-table/data-table.scss +10 -7
- package/src/components/data-table-sort/data-table-sort.scss +1 -1
- package/src/components/dialog/dialog.component.ts +3 -3
- package/src/components/dialog/dialog.scss +2 -2
- package/src/components/dropdown/dropdown.component.ts +1 -0
- package/src/components/editor/editor.component.ts +3 -1
- package/src/components/editor/editor.scss +9 -2
- package/src/components/editor/modules/ai/panel/ai-panel.scss +2 -2
- package/src/components/editor/modules/ai/tooltip/ai-tooltip.scss +1 -1
- package/src/components/editor/modules/context-menu/context-menu.ts +20 -20
- package/src/components/editor/modules/dialog/dialog.component.ts +3 -4
- package/src/components/editor/modules/dialog/dialog.scss +2 -1
- package/src/components/editor/modules/dialog/dialog.ts +12 -8
- package/src/components/editor/modules/toolbar/tool/tool.component.ts +1 -5
- package/src/components/editor/modules/toolbar/toolbar.component.ts +54 -50
- package/src/components/editor/modules/toolbar/toolbar.scss +4 -29
- package/src/components/editor/modules/toolbar/toolbar.ts +15 -17
- package/src/components/expanding-action/expanding-action.component.ts +14 -7
- package/src/components/expanding-action/expanding-action.scss +44 -2
- package/src/components/file/file.scss +2 -2
- package/src/components/header/header.component.ts +1 -1
- package/src/components/header/header.scss +3 -3
- package/src/components/hover-container/hover-container.scss +1 -1
- package/src/components/icon/icon.component.ts +6 -1
- package/src/components/icon/icon.scss +31 -0
- package/src/components/icon-picker/icon-picker.scss +3 -3
- package/src/components/input/input.scss +3 -3
- package/src/components/input-group/input-group.scss +16 -16
- package/src/components/markdown-editor/markdown-editor.scss +2 -2
- package/src/components/menu/menu.component.ts +32 -1
- package/src/components/menu/menu.scss +28 -5
- package/src/components/menu-item/menu-item.component.ts +6 -2
- package/src/components/menu-item/menu-item.scss +49 -5
- package/src/components/navbar/navbar.component.ts +7 -4
- package/src/components/navbar/navbar.scss +93 -21
- package/src/components/page/page.component.ts +1 -1
- package/src/components/page/page.scss +7 -26
- package/src/components/panel/panel.scss +5 -8
- package/src/components/priority-list/priority-list.scss +1 -1
- package/src/components/rating/rating.scss +1 -1
- package/src/components/scroll-container/scroll-container.scss +2 -1
- package/src/components/select/select.scss +1 -1
- package/src/components/settings-container/settings-container.scss +2 -2
- package/src/components/stat/stat.scss +8 -5
- package/src/components/tile/tile.component.ts +10 -2
- package/src/components/tile/tile.scss +108 -67
- package/src/components/tile-group/index.ts +12 -0
- package/src/components/tile-group/tile-group.component.ts +66 -0
- package/src/components/tile-group/tile-group.scss +23 -0
- package/src/form-control.scss +2 -1
- package/src/wc.scss +1 -0
- package/src/zinc.ts +2 -0
- package/src/components/editor/modules/toolbar/tool/tool.scss +0 -5
|
@@ -173,7 +173,21 @@
|
|
|
173
173
|
{ "name": "disabled", "values": [] },
|
|
174
174
|
{ "name": "grow", "values": [] },
|
|
175
175
|
{ "name": "square", "values": [] },
|
|
176
|
-
{
|
|
176
|
+
{
|
|
177
|
+
"name": "icon-button",
|
|
178
|
+
"description": "Renders the button as an icon button (40x36). Pass `small` for the\n36x36 variant or `round` for a 36x36 circle: `icon-button`,\n`icon-button=\"small\"` or `icon-button=\"round\"`.",
|
|
179
|
+
"values": [{ "name": "small" }, { "name": "round" }]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "plain",
|
|
183
|
+
"description": "With `icon-button`, removes the white background and border while\nkeeping the button's size.",
|
|
184
|
+
"values": []
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "no-hover",
|
|
188
|
+
"description": "Disables the hover background, for contexts where the tint doesn't fit.",
|
|
189
|
+
"values": []
|
|
190
|
+
},
|
|
177
191
|
{ "name": "panel-bg", "values": [] },
|
|
178
192
|
{ "name": "dropdown-closer", "values": [] },
|
|
179
193
|
{ "name": "notification", "values": [] },
|
|
@@ -195,6 +209,8 @@
|
|
|
195
209
|
},
|
|
196
210
|
{ "name": "icon-size", "values": [] },
|
|
197
211
|
{ "name": "icon-color", "values": [{ "name": "IconColor" }] },
|
|
212
|
+
{ "name": "icon-fill", "values": [{ "name": "IconColor" }] },
|
|
213
|
+
{ "name": "icon-library", "values": [{ "name": "IconLibrary" }] },
|
|
198
214
|
{
|
|
199
215
|
"name": "type",
|
|
200
216
|
"values": [
|
|
@@ -339,6 +355,28 @@
|
|
|
339
355
|
}
|
|
340
356
|
]
|
|
341
357
|
},
|
|
358
|
+
{
|
|
359
|
+
"name": "zn-chat-message",
|
|
360
|
+
"description": "A single message in a chat-style conversation: avatar, sender,\ntime, optional badge, and a message bubble with optional actions.\n---\n\n\n### **Slots:**\n - _default_ - The message content.\n- **badge** - Rendered in the header after the sender and time (e.g. an INTERNAL NOTE chip).\n- **edit-dialog-trigger** - Action rendered at the end of the bubble (e.g. a remove icon button).\n- **edit-dialog** - Pass-through for an associated dialog element.\n\n### **CSS Properties:**\n - **--message-background** - The bubble's background colour. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **avatar** - The avatar column.\n- **body** - The header and bubble column.\n- **header** - The sender/time/badge row.\n- **bubble** - The message bubble.\n- **content** - The message content within the bubble.",
|
|
361
|
+
"attributes": [
|
|
362
|
+
{
|
|
363
|
+
"name": "sender",
|
|
364
|
+
"description": "The sender's name, also used for the avatar initials.",
|
|
365
|
+
"values": []
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "time",
|
|
369
|
+
"description": "Unix timestamp (seconds) of the message, shown as HH:MM.",
|
|
370
|
+
"values": []
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"references": [
|
|
374
|
+
{
|
|
375
|
+
"name": "Documentation",
|
|
376
|
+
"url": "https://zinc.style/components/chat-message"
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
},
|
|
342
380
|
{
|
|
343
381
|
"name": "zn-checkbox",
|
|
344
382
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the checkbox loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the checkbox gains focus.\n- **zn-input** - Emitted when the checkbox receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for 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. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **description** - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **unchecked-icon** - The unchecked icon, an `<zn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<zn-icon>` element.\n- **label** - The container that wraps the checkbox's label.\n- **description** - The container that wraps the checkbox's description.\n- **selected-content** - The container that wraps optional content that appears when a checkbox is checked.",
|
|
@@ -539,14 +577,6 @@
|
|
|
539
577
|
{ "name": "neutral" }
|
|
540
578
|
]
|
|
541
579
|
},
|
|
542
|
-
{
|
|
543
|
-
"name": "size",
|
|
544
|
-
"values": [
|
|
545
|
-
{ "name": "small" },
|
|
546
|
-
{ "name": "medium" },
|
|
547
|
-
{ "name": "large" }
|
|
548
|
-
]
|
|
549
|
-
},
|
|
550
580
|
{ "name": "flush", "values": [] },
|
|
551
581
|
{ "name": "flush-x", "values": [] },
|
|
552
582
|
{ "name": "flush-y", "values": [] }
|
|
@@ -1500,6 +1530,7 @@
|
|
|
1500
1530
|
{ "name": "depth", "values": [] },
|
|
1501
1531
|
{ "name": "library", "values": [{ "name": "IconLibrary" }] },
|
|
1502
1532
|
{ "name": "color", "values": [{ "name": "IconColor" }] },
|
|
1533
|
+
{ "name": "fill", "values": [{ "name": "IconColor" }] },
|
|
1503
1534
|
{ "name": "padded", "values": [] },
|
|
1504
1535
|
{ "name": "blink", "values": [] },
|
|
1505
1536
|
{ "name": "squared", "values": [] }
|
|
@@ -2059,7 +2090,14 @@
|
|
|
2059
2090
|
{
|
|
2060
2091
|
"name": "zn-menu",
|
|
2061
2092
|
"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.",
|
|
2062
|
-
"attributes": [
|
|
2093
|
+
"attributes": [
|
|
2094
|
+
{ "name": "actions", "values": [{ "name": "array" }] },
|
|
2095
|
+
{
|
|
2096
|
+
"name": "variant",
|
|
2097
|
+
"description": "The menu's visual style. `shell` renders the app-shell header dropdown\nlook: a padded panel with floating rounded items. Propagated to the\nmenu's items.",
|
|
2098
|
+
"values": [{ "name": "default" }, { "name": "shell" }]
|
|
2099
|
+
}
|
|
2100
|
+
],
|
|
2063
2101
|
"references": [
|
|
2064
2102
|
{ "name": "Documentation", "url": "https://zinc.style/components/menu" }
|
|
2065
2103
|
]
|
|
@@ -2073,6 +2111,15 @@
|
|
|
2073
2111
|
"description": "The type of menu item to render. To use `checked`, this value must be set to `checkbox`.",
|
|
2074
2112
|
"values": [{ "name": "normal" }, { "name": "checkbox" }]
|
|
2075
2113
|
},
|
|
2114
|
+
{
|
|
2115
|
+
"name": "variant",
|
|
2116
|
+
"description": "The item's visual style. A standalone item defaults to navigation styling;\na parent zn-menu sets this to `dropdown` or `shell` automatically.",
|
|
2117
|
+
"values": [
|
|
2118
|
+
{ "name": "default" },
|
|
2119
|
+
{ "name": "dropdown" },
|
|
2120
|
+
{ "name": "shell" }
|
|
2121
|
+
]
|
|
2122
|
+
},
|
|
2076
2123
|
{
|
|
2077
2124
|
"name": "checked",
|
|
2078
2125
|
"description": "Draws the item in a checked state.",
|
|
@@ -2160,11 +2207,13 @@
|
|
|
2160
2207
|
{ "name": "border", "values": [] },
|
|
2161
2208
|
{ "name": "hide-one", "values": [] },
|
|
2162
2209
|
{ "name": "flush", "values": [] },
|
|
2210
|
+
{ "name": "gutter", "values": [] },
|
|
2163
2211
|
{ "name": "stacked", "values": [] },
|
|
2164
2212
|
{ "name": "dropdown", "values": [{ "name": "array" }] },
|
|
2165
2213
|
{ "name": "no-pad", "values": [{ "name": "false" }] },
|
|
2166
2214
|
{ "name": "manual-add-items", "values": [] },
|
|
2167
2215
|
{ "name": "isolated", "values": [] },
|
|
2216
|
+
{ "name": "color", "values": [] },
|
|
2168
2217
|
{ "name": "master-id", "values": [] },
|
|
2169
2218
|
{ "name": "store-key", "values": [] },
|
|
2170
2219
|
{ "name": "store-ttl", "values": [] },
|
|
@@ -3577,12 +3626,39 @@
|
|
|
3577
3626
|
{ "name": "flush", "values": [] },
|
|
3578
3627
|
{ "name": "flush-x", "values": [] },
|
|
3579
3628
|
{ "name": "flush-y", "values": [] },
|
|
3580
|
-
{ "name": "inline", "values": [] }
|
|
3629
|
+
{ "name": "inline", "values": [] },
|
|
3630
|
+
{
|
|
3631
|
+
"name": "plain",
|
|
3632
|
+
"description": "Renders the caption in the normal table-content weight instead of bold.",
|
|
3633
|
+
"values": []
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
"name": "grouped",
|
|
3637
|
+
"description": "Set by `zn-tile-group` to lay the tile out as a shared-column subgrid row.",
|
|
3638
|
+
"values": []
|
|
3639
|
+
}
|
|
3581
3640
|
],
|
|
3582
3641
|
"references": [
|
|
3583
3642
|
{ "name": "Documentation", "url": "https://zinc.style/components/tile" }
|
|
3584
3643
|
]
|
|
3585
3644
|
},
|
|
3645
|
+
{
|
|
3646
|
+
"name": "zn-tile-group",
|
|
3647
|
+
"description": "Aligns a list of `zn-tile` rows into shared, content-driven columns so values\nand actions line up across every row, with optional dividing borders.\n---\n\n\n### **Slots:**\n - _default_ - One or more `zn-tile` elements.\n\n### **CSS Properties:**\n - **--zn-tile-cols** - The number of value/action columns (set automatically). _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper (the grid container).",
|
|
3648
|
+
"attributes": [
|
|
3649
|
+
{
|
|
3650
|
+
"name": "divide",
|
|
3651
|
+
"description": "Draws a dividing border between rows.",
|
|
3652
|
+
"values": []
|
|
3653
|
+
}
|
|
3654
|
+
],
|
|
3655
|
+
"references": [
|
|
3656
|
+
{
|
|
3657
|
+
"name": "Documentation",
|
|
3658
|
+
"url": "https://zinc.style/components/tile-group"
|
|
3659
|
+
}
|
|
3660
|
+
]
|
|
3661
|
+
},
|
|
3586
3662
|
{
|
|
3587
3663
|
"name": "zn-tile-property",
|
|
3588
3664
|
"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.",
|
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.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -310,6 +310,20 @@
|
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
"name": "icon-button",
|
|
313
|
+
"description": "Renders the button as an icon button (40x36). Pass `small` for the\n36x36 variant or `round` for a 36x36 circle: `icon-button`,\n`icon-button=\"small\"` or `icon-button=\"round\"`.",
|
|
314
|
+
"value": {
|
|
315
|
+
"type": "boolean | 'small' | 'round'",
|
|
316
|
+
"default": "false"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "plain",
|
|
321
|
+
"description": "With `icon-button`, removes the white background and border while\nkeeping the button's size.",
|
|
322
|
+
"value": { "type": "boolean", "default": "false" }
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "no-hover",
|
|
326
|
+
"description": "Disables the hover background, for contexts where the tint doesn't fit.",
|
|
313
327
|
"value": { "type": "boolean", "default": "false" }
|
|
314
328
|
},
|
|
315
329
|
{
|
|
@@ -341,6 +355,8 @@
|
|
|
341
355
|
},
|
|
342
356
|
{ "name": "icon-size", "value": { "type": "string" } },
|
|
343
357
|
{ "name": "icon-color", "value": { "type": "IconColor" } },
|
|
358
|
+
{ "name": "icon-fill", "value": { "type": "IconColor" } },
|
|
359
|
+
{ "name": "icon-library", "value": { "type": "IconLibrary" } },
|
|
344
360
|
{
|
|
345
361
|
"name": "type",
|
|
346
362
|
"value": { "type": "'button' | 'submit' | 'reset'" }
|
|
@@ -446,7 +462,21 @@
|
|
|
446
462
|
{ "name": "disabled", "type": "boolean" },
|
|
447
463
|
{ "name": "grow", "type": "boolean" },
|
|
448
464
|
{ "name": "square", "type": "boolean" },
|
|
449
|
-
{
|
|
465
|
+
{
|
|
466
|
+
"name": "iconButton",
|
|
467
|
+
"description": "Renders the button as an icon button (40x36). Pass `small` for the\n36x36 variant or `round` for a 36x36 circle: `icon-button`,\n`icon-button=\"small\"` or `icon-button=\"round\"`.",
|
|
468
|
+
"type": "boolean | 'small' | 'round'"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "plain",
|
|
472
|
+
"description": "With `icon-button`, removes the white background and border while\nkeeping the button's size.",
|
|
473
|
+
"type": "boolean"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "noHover",
|
|
477
|
+
"description": "Disables the hover background, for contexts where the tint doesn't fit.",
|
|
478
|
+
"type": "boolean"
|
|
479
|
+
},
|
|
450
480
|
{ "name": "panelBackground", "type": "boolean" },
|
|
451
481
|
{ "name": "dropdownCloser", "type": "boolean" },
|
|
452
482
|
{ "name": "notification", "type": "number" },
|
|
@@ -458,6 +488,8 @@
|
|
|
458
488
|
{ "name": "iconPosition", "type": "'left' | 'right'" },
|
|
459
489
|
{ "name": "iconSize", "type": "string" },
|
|
460
490
|
{ "name": "iconColor", "type": "IconColor" },
|
|
491
|
+
{ "name": "iconFill", "type": "IconColor" },
|
|
492
|
+
{ "name": "iconLibrary", "type": "IconLibrary" },
|
|
461
493
|
{ "name": "type", "type": "'button' | 'submit' | 'reset'" },
|
|
462
494
|
{ "name": "name", "type": "string" },
|
|
463
495
|
{ "name": "value", "type": "string" },
|
|
@@ -573,7 +605,7 @@
|
|
|
573
605
|
},
|
|
574
606
|
{
|
|
575
607
|
"name": "icon-size",
|
|
576
|
-
"value": { "type": "number", "default": "
|
|
608
|
+
"value": { "type": "number", "default": "20" }
|
|
577
609
|
},
|
|
578
610
|
{ "name": "no-gap", "value": { "type": "boolean" } },
|
|
579
611
|
{ "name": "no-padding", "value": { "type": "boolean" } }
|
|
@@ -677,6 +709,54 @@
|
|
|
677
709
|
"events": []
|
|
678
710
|
}
|
|
679
711
|
},
|
|
712
|
+
{
|
|
713
|
+
"name": "zn-chat-message",
|
|
714
|
+
"description": "A single message in a chat-style conversation: avatar, sender,\ntime, optional badge, and a message bubble with optional actions.\n---\n\n\n### **Slots:**\n - _default_ - The message content.\n- **badge** - Rendered in the header after the sender and time (e.g. an INTERNAL NOTE chip).\n- **edit-dialog-trigger** - Action rendered at the end of the bubble (e.g. a remove icon button).\n- **edit-dialog** - Pass-through for an associated dialog element.\n\n### **CSS Properties:**\n - **--message-background** - The bubble's background colour. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **avatar** - The avatar column.\n- **body** - The header and bubble column.\n- **header** - The sender/time/badge row.\n- **bubble** - The message bubble.\n- **content** - The message content within the bubble.",
|
|
715
|
+
"doc-url": "",
|
|
716
|
+
"attributes": [
|
|
717
|
+
{
|
|
718
|
+
"name": "sender",
|
|
719
|
+
"description": "The sender's name, also used for the avatar initials.",
|
|
720
|
+
"value": { "type": "string", "default": "''" }
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"name": "time",
|
|
724
|
+
"description": "Unix timestamp (seconds) of the message, shown as HH:MM.",
|
|
725
|
+
"value": { "type": "string", "default": "''" }
|
|
726
|
+
}
|
|
727
|
+
],
|
|
728
|
+
"slots": [
|
|
729
|
+
{ "name": "", "description": "The message content." },
|
|
730
|
+
{
|
|
731
|
+
"name": "badge",
|
|
732
|
+
"description": "Rendered in the header after the sender and time (e.g. an INTERNAL NOTE chip)."
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"name": "edit-dialog-trigger",
|
|
736
|
+
"description": "Action rendered at the end of the bubble (e.g. a remove icon button)."
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"name": "edit-dialog",
|
|
740
|
+
"description": "Pass-through for an associated dialog element."
|
|
741
|
+
}
|
|
742
|
+
],
|
|
743
|
+
"events": [],
|
|
744
|
+
"js": {
|
|
745
|
+
"properties": [
|
|
746
|
+
{
|
|
747
|
+
"name": "sender",
|
|
748
|
+
"description": "The sender's name, also used for the avatar initials.",
|
|
749
|
+
"type": "string"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "time",
|
|
753
|
+
"description": "Unix timestamp (seconds) of the message, shown as HH:MM.",
|
|
754
|
+
"type": "string"
|
|
755
|
+
}
|
|
756
|
+
],
|
|
757
|
+
"events": []
|
|
758
|
+
}
|
|
759
|
+
},
|
|
680
760
|
{
|
|
681
761
|
"name": "zn-checkbox",
|
|
682
762
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the checkbox loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the checkbox gains focus.\n- **zn-input** - Emitted when the checkbox receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for 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. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **description** - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **unchecked-icon** - The unchecked icon, an `<zn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<zn-icon>` element.\n- **label** - The container that wraps the checkbox's label.\n- **description** - The container that wraps the checkbox's description.\n- **selected-content** - The container that wraps optional content that appears when a checkbox is checked.",
|
|
@@ -1148,10 +1228,6 @@
|
|
|
1148
1228
|
"default": "'neutral'"
|
|
1149
1229
|
}
|
|
1150
1230
|
},
|
|
1151
|
-
{
|
|
1152
|
-
"name": "size",
|
|
1153
|
-
"value": { "type": "'small' | 'medium' | 'large'" }
|
|
1154
|
-
},
|
|
1155
1231
|
{
|
|
1156
1232
|
"name": "flush",
|
|
1157
1233
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -1181,7 +1257,6 @@
|
|
|
1181
1257
|
"name": "type",
|
|
1182
1258
|
"type": "'info' | 'success' | 'warning' | 'error' | 'primary' |\n 'transparent' | 'custom' | 'neutral'"
|
|
1183
1259
|
},
|
|
1184
|
-
{ "name": "size", "type": "'small' | 'medium' | 'large'" },
|
|
1185
1260
|
{ "name": "flush", "type": "boolean" },
|
|
1186
1261
|
{ "name": "flushX", "type": "boolean" },
|
|
1187
1262
|
{ "name": "flushY", "type": "boolean" }
|
|
@@ -3513,6 +3588,7 @@
|
|
|
3513
3588
|
},
|
|
3514
3589
|
{ "name": "library", "value": { "type": "IconLibrary" } },
|
|
3515
3590
|
{ "name": "color", "value": { "type": "IconColor" } },
|
|
3591
|
+
{ "name": "fill", "value": { "type": "IconColor" } },
|
|
3516
3592
|
{
|
|
3517
3593
|
"name": "padded",
|
|
3518
3594
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -3543,6 +3619,7 @@
|
|
|
3543
3619
|
{ "name": "depth", "type": "boolean" },
|
|
3544
3620
|
{ "name": "library", "type": "IconLibrary" },
|
|
3545
3621
|
{ "name": "color", "type": "IconColor" },
|
|
3622
|
+
{ "name": "fill", "type": "IconColor" },
|
|
3546
3623
|
{ "name": "padded", "type": "boolean" },
|
|
3547
3624
|
{ "name": "blink", "type": "boolean" },
|
|
3548
3625
|
{ "name": "squared", "type": "boolean" },
|
|
@@ -4779,7 +4856,15 @@
|
|
|
4779
4856
|
"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.",
|
|
4780
4857
|
"doc-url": "",
|
|
4781
4858
|
"attributes": [
|
|
4782
|
-
{
|
|
4859
|
+
{
|
|
4860
|
+
"name": "actions",
|
|
4861
|
+
"value": { "type": "array", "default": "[]" }
|
|
4862
|
+
},
|
|
4863
|
+
{
|
|
4864
|
+
"name": "variant",
|
|
4865
|
+
"description": "The menu's visual style. `shell` renders the app-shell header dropdown\nlook: a padded panel with floating rounded items. Propagated to the\nmenu's items.",
|
|
4866
|
+
"value": { "type": "'default' | 'shell'", "default": "'default'" }
|
|
4867
|
+
}
|
|
4783
4868
|
],
|
|
4784
4869
|
"slots": [
|
|
4785
4870
|
{ "name": "", "description": "The default slot." },
|
|
@@ -4791,7 +4876,12 @@
|
|
|
4791
4876
|
"js": {
|
|
4792
4877
|
"properties": [
|
|
4793
4878
|
{ "name": "defaultSlot", "type": "HTMLSlotElement" },
|
|
4794
|
-
{ "name": "actions", "type": "array" }
|
|
4879
|
+
{ "name": "actions", "type": "array" },
|
|
4880
|
+
{
|
|
4881
|
+
"name": "variant",
|
|
4882
|
+
"description": "The menu's visual style. `shell` renders the app-shell header dropdown\nlook: a padded panel with floating rounded items. Propagated to the\nmenu's items.",
|
|
4883
|
+
"type": "'default' | 'shell'"
|
|
4884
|
+
}
|
|
4795
4885
|
],
|
|
4796
4886
|
"events": [
|
|
4797
4887
|
{
|
|
@@ -4814,6 +4904,14 @@
|
|
|
4814
4904
|
"default": "'normal'"
|
|
4815
4905
|
}
|
|
4816
4906
|
},
|
|
4907
|
+
{
|
|
4908
|
+
"name": "variant",
|
|
4909
|
+
"description": "The item's visual style. A standalone item defaults to navigation styling;\na parent zn-menu sets this to `dropdown` or `shell` automatically.",
|
|
4910
|
+
"value": {
|
|
4911
|
+
"type": "'default' | 'dropdown' | 'shell'",
|
|
4912
|
+
"default": "'default'"
|
|
4913
|
+
}
|
|
4914
|
+
},
|
|
4817
4915
|
{
|
|
4818
4916
|
"name": "checked",
|
|
4819
4917
|
"description": "Draws the item in a checked state.",
|
|
@@ -4902,6 +5000,11 @@
|
|
|
4902
5000
|
"description": "The type of menu item to render. To use `checked`, this value must be set to `checkbox`.",
|
|
4903
5001
|
"type": "'normal' | 'checkbox'"
|
|
4904
5002
|
},
|
|
5003
|
+
{
|
|
5004
|
+
"name": "variant",
|
|
5005
|
+
"description": "The item's visual style. A standalone item defaults to navigation styling;\na parent zn-menu sets this to `dropdown` or `shell` automatically.",
|
|
5006
|
+
"type": "'default' | 'dropdown' | 'shell'"
|
|
5007
|
+
},
|
|
4905
5008
|
{
|
|
4906
5009
|
"name": "checked",
|
|
4907
5010
|
"description": "Draws the item in a checked state.",
|
|
@@ -4986,6 +5089,10 @@
|
|
|
4986
5089
|
"name": "flush",
|
|
4987
5090
|
"value": { "type": "boolean", "default": "false" }
|
|
4988
5091
|
},
|
|
5092
|
+
{
|
|
5093
|
+
"name": "gutter",
|
|
5094
|
+
"value": { "type": "boolean", "default": "false" }
|
|
5095
|
+
},
|
|
4989
5096
|
{ "name": "stacked", "value": { "type": "boolean" } },
|
|
4990
5097
|
{
|
|
4991
5098
|
"name": "dropdown",
|
|
@@ -5000,6 +5107,7 @@
|
|
|
5000
5107
|
"name": "isolated",
|
|
5001
5108
|
"value": { "type": "boolean", "default": "false" }
|
|
5002
5109
|
},
|
|
5110
|
+
{ "name": "color", "value": { "type": "string" } },
|
|
5003
5111
|
{ "name": "master-id", "value": { "type": "string" } },
|
|
5004
5112
|
{
|
|
5005
5113
|
"name": "store-key",
|
|
@@ -5035,11 +5143,13 @@
|
|
|
5035
5143
|
{ "name": "border", "type": "boolean" },
|
|
5036
5144
|
{ "name": "hideOne", "type": "boolean" },
|
|
5037
5145
|
{ "name": "flush", "type": "boolean" },
|
|
5146
|
+
{ "name": "gutter", "type": "boolean" },
|
|
5038
5147
|
{ "name": "stacked", "type": "boolean" },
|
|
5039
5148
|
{ "name": "dropdown", "type": "array" },
|
|
5040
5149
|
{ "name": "noPad", "type": "false" },
|
|
5041
5150
|
{ "name": "manualAddItems", "type": "boolean" },
|
|
5042
5151
|
{ "name": "isolated", "type": "boolean" },
|
|
5152
|
+
{ "name": "color", "type": "string" },
|
|
5043
5153
|
{ "name": "masterId", "type": "string" },
|
|
5044
5154
|
{ "name": "storeKey", "type": "string" },
|
|
5045
5155
|
{ "name": "storeTtl", "type": "number" },
|
|
@@ -8364,7 +8474,17 @@
|
|
|
8364
8474
|
{ "name": "flush", "value": { "type": "boolean" } },
|
|
8365
8475
|
{ "name": "flush-x", "value": { "type": "boolean" } },
|
|
8366
8476
|
{ "name": "flush-y", "value": { "type": "boolean" } },
|
|
8367
|
-
{ "name": "inline", "value": { "type": "boolean" } }
|
|
8477
|
+
{ "name": "inline", "value": { "type": "boolean" } },
|
|
8478
|
+
{
|
|
8479
|
+
"name": "plain",
|
|
8480
|
+
"description": "Renders the caption in the normal table-content weight instead of bold.",
|
|
8481
|
+
"value": { "type": "boolean" }
|
|
8482
|
+
},
|
|
8483
|
+
{
|
|
8484
|
+
"name": "grouped",
|
|
8485
|
+
"description": "Set by `zn-tile-group` to lay the tile out as a shared-column subgrid row.",
|
|
8486
|
+
"value": { "type": "boolean" }
|
|
8487
|
+
}
|
|
8368
8488
|
],
|
|
8369
8489
|
"slots": [
|
|
8370
8490
|
{ "name": "", "description": "The default slot." },
|
|
@@ -8384,7 +8504,17 @@
|
|
|
8384
8504
|
{ "name": "flush", "type": "boolean" },
|
|
8385
8505
|
{ "name": "flushX", "type": "boolean" },
|
|
8386
8506
|
{ "name": "flushY", "type": "boolean" },
|
|
8387
|
-
{ "name": "inline", "type": "boolean" }
|
|
8507
|
+
{ "name": "inline", "type": "boolean" },
|
|
8508
|
+
{
|
|
8509
|
+
"name": "plain",
|
|
8510
|
+
"description": "Renders the caption in the normal table-content weight instead of bold.",
|
|
8511
|
+
"type": "boolean"
|
|
8512
|
+
},
|
|
8513
|
+
{
|
|
8514
|
+
"name": "grouped",
|
|
8515
|
+
"description": "Set by `zn-tile-group` to lay the tile out as a shared-column subgrid row.",
|
|
8516
|
+
"type": "boolean"
|
|
8517
|
+
}
|
|
8388
8518
|
],
|
|
8389
8519
|
"events": [
|
|
8390
8520
|
{
|
|
@@ -8394,6 +8524,32 @@
|
|
|
8394
8524
|
]
|
|
8395
8525
|
}
|
|
8396
8526
|
},
|
|
8527
|
+
{
|
|
8528
|
+
"name": "zn-tile-group",
|
|
8529
|
+
"description": "Aligns a list of `zn-tile` rows into shared, content-driven columns so values\nand actions line up across every row, with optional dividing borders.\n---\n\n\n### **Slots:**\n - _default_ - One or more `zn-tile` elements.\n\n### **CSS Properties:**\n - **--zn-tile-cols** - The number of value/action columns (set automatically). _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper (the grid container).",
|
|
8530
|
+
"doc-url": "",
|
|
8531
|
+
"attributes": [
|
|
8532
|
+
{
|
|
8533
|
+
"name": "divide",
|
|
8534
|
+
"description": "Draws a dividing border between rows.",
|
|
8535
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8536
|
+
}
|
|
8537
|
+
],
|
|
8538
|
+
"slots": [
|
|
8539
|
+
{ "name": "", "description": "One or more `zn-tile` elements." }
|
|
8540
|
+
],
|
|
8541
|
+
"events": [],
|
|
8542
|
+
"js": {
|
|
8543
|
+
"properties": [
|
|
8544
|
+
{
|
|
8545
|
+
"name": "divide",
|
|
8546
|
+
"description": "Draws a dividing border between rows.",
|
|
8547
|
+
"type": "boolean"
|
|
8548
|
+
}
|
|
8549
|
+
],
|
|
8550
|
+
"events": []
|
|
8551
|
+
}
|
|
8552
|
+
},
|
|
8397
8553
|
{
|
|
8398
8554
|
"name": "zn-tile-property",
|
|
8399
8555
|
"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.",
|