@kubex/zinc 1.0.118 → 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.
Files changed (98) hide show
  1. package/dist/custom-elements.json +634 -201
  2. package/dist/vscode.html-custom-data.json +115 -39
  3. package/dist/web-types.json +220 -64
  4. package/dist/zn.d.ts +149 -25
  5. package/dist/zn.min.css +1 -1
  6. package/dist/zn.min.js +911 -874
  7. package/docs/assets/styles/docs.css +1 -1
  8. package/docs/pages/components/button.md +25 -7
  9. package/docs/pages/components/chat-message.md +62 -0
  10. package/docs/pages/components/data-table-search.md +6 -6
  11. package/docs/pages/components/editor.md +1 -1
  12. package/docs/pages/components/file.md +1 -1
  13. package/docs/pages/components/form-group.md +1 -1
  14. package/docs/pages/components/icon.md +19 -2
  15. package/docs/pages/components/menu.md +23 -2
  16. package/docs/pages/components/select.md +2 -2
  17. package/docs/pages/components/tile-group.md +92 -0
  18. package/docs/pages/components/tile.md +80 -25
  19. package/package.json +1 -1
  20. package/scss/_root.scss +1 -1
  21. package/scss/mixins/_spacing-mixins.scss +20 -0
  22. package/scss/mixins/_typography-mixins.scss +22 -0
  23. package/scss/mixins/index.scss +2 -1
  24. package/scss/shared/_base.scss +18 -20
  25. package/scss/shared/_button.scss +5 -3
  26. package/scss/shared/_table.scss +4 -1
  27. package/scss/shared/layout.scss +2 -2
  28. package/scss/themes/_index.scss +2 -0
  29. package/scss/themes/_light.scss +22 -45
  30. package/scss/themes/_spacing.scss +44 -0
  31. package/scss/themes/_typography.scss +62 -0
  32. package/src/components/animated-button/README.md +1 -1
  33. package/src/components/button/button.component.ts +27 -5
  34. package/src/components/button/button.scss +86 -30
  35. package/src/components/button-menu/button-menu.component.ts +22 -9
  36. package/src/components/button-menu/button-menu.scss +1 -2
  37. package/src/components/button-menu/button-menu.test.ts +18 -0
  38. package/src/components/chat-message/chat-message.component.ts +73 -0
  39. package/src/components/chat-message/chat-message.scss +60 -0
  40. package/src/components/chat-message/index.ts +12 -0
  41. package/src/components/checkbox/checkbox.scss +2 -2
  42. package/src/components/chip/chip.component.ts +0 -5
  43. package/src/components/chip/chip.scss +14 -34
  44. package/src/components/content-block/content-block.component.ts +46 -45
  45. package/src/components/content-block/content-block.scss +58 -27
  46. package/src/components/data-table/data-table.scss +10 -7
  47. package/src/components/data-table-sort/data-table-sort.scss +1 -1
  48. package/src/components/dialog/dialog.component.ts +3 -3
  49. package/src/components/dialog/dialog.scss +2 -2
  50. package/src/components/dropdown/dropdown.component.ts +1 -0
  51. package/src/components/editor/editor.component.ts +3 -1
  52. package/src/components/editor/editor.scss +9 -2
  53. package/src/components/editor/modules/ai/panel/ai-panel.scss +2 -2
  54. package/src/components/editor/modules/ai/tooltip/ai-tooltip.scss +1 -1
  55. package/src/components/editor/modules/context-menu/context-menu.ts +20 -20
  56. package/src/components/editor/modules/dialog/dialog.component.ts +3 -4
  57. package/src/components/editor/modules/dialog/dialog.scss +2 -1
  58. package/src/components/editor/modules/dialog/dialog.ts +12 -8
  59. package/src/components/editor/modules/toolbar/tool/tool.component.ts +1 -5
  60. package/src/components/editor/modules/toolbar/toolbar.component.ts +54 -50
  61. package/src/components/editor/modules/toolbar/toolbar.scss +4 -29
  62. package/src/components/editor/modules/toolbar/toolbar.ts +15 -17
  63. package/src/components/expanding-action/expanding-action.component.ts +14 -7
  64. package/src/components/expanding-action/expanding-action.scss +44 -2
  65. package/src/components/file/file.scss +2 -2
  66. package/src/components/header/header.component.ts +1 -1
  67. package/src/components/header/header.scss +3 -3
  68. package/src/components/hover-container/hover-container.scss +1 -1
  69. package/src/components/icon/icon.component.ts +6 -1
  70. package/src/components/icon/icon.scss +31 -0
  71. package/src/components/icon-picker/icon-picker.scss +3 -3
  72. package/src/components/input/input.scss +3 -3
  73. package/src/components/input-group/input-group.scss +16 -16
  74. package/src/components/markdown-editor/markdown-editor.scss +2 -2
  75. package/src/components/menu/menu.component.ts +32 -1
  76. package/src/components/menu/menu.scss +28 -5
  77. package/src/components/menu-item/menu-item.component.ts +6 -2
  78. package/src/components/menu-item/menu-item.scss +49 -5
  79. package/src/components/navbar/navbar.component.ts +7 -4
  80. package/src/components/navbar/navbar.scss +93 -21
  81. package/src/components/page/page.component.ts +1 -1
  82. package/src/components/page/page.scss +7 -26
  83. package/src/components/panel/panel.scss +5 -8
  84. package/src/components/priority-list/priority-list.scss +1 -1
  85. package/src/components/rating/rating.scss +1 -1
  86. package/src/components/scroll-container/scroll-container.scss +2 -1
  87. package/src/components/select/select.scss +1 -1
  88. package/src/components/settings-container/settings-container.scss +2 -2
  89. package/src/components/stat/stat.scss +8 -5
  90. package/src/components/tile/tile.component.ts +10 -2
  91. package/src/components/tile/tile.scss +108 -67
  92. package/src/components/tile-group/index.ts +12 -0
  93. package/src/components/tile-group/tile-group.component.ts +66 -0
  94. package/src/components/tile-group/tile-group.scss +23 -0
  95. package/src/form-control.scss +2 -1
  96. package/src/wc.scss +1 -0
  97. package/src/zinc.ts +2 -0
  98. package/src/components/editor/modules/toolbar/tool/tool.scss +0 -5
@@ -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.",
@@ -48,17 +59,6 @@
48
59
  }
49
60
  ]
50
61
  },
51
- {
52
- "name": "zn-action-bar",
53
- "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.",
54
- "attributes": [],
55
- "references": [
56
- {
57
- "name": "Documentation",
58
- "url": "https://zinc.style/components/action-bar"
59
- }
60
- ]
61
- },
62
62
  {
63
63
  "name": "zn-animated-button",
64
64
  "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",
@@ -173,7 +173,21 @@
173
173
  { "name": "disabled", "values": [] },
174
174
  { "name": "grow", "values": [] },
175
175
  { "name": "square", "values": [] },
176
- { "name": "icon-button", "values": [] },
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": [{ "name": "actions", "values": [{ "name": "array" }] }],
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": [] },
@@ -3337,6 +3386,23 @@
3337
3386
  }
3338
3387
  ]
3339
3388
  },
3389
+ {
3390
+ "name": "zn-tab",
3391
+ "description": "Defines a tab panel for use inside zn-page.\n---\n\n\n### **Slots:**\n - _default_ - The tab panel content.",
3392
+ "attributes": [
3393
+ { "name": "caption", "values": [] },
3394
+ { "name": "priority", "values": [] },
3395
+ { "name": "uri", "values": [] },
3396
+ {
3397
+ "name": "selected",
3398
+ "description": "When present, zn-page opens this tab on load instead of the first tab.",
3399
+ "values": []
3400
+ }
3401
+ ],
3402
+ "references": [
3403
+ { "name": "Documentation", "url": "https://zinc.style/components/tab" }
3404
+ ]
3405
+ },
3340
3406
  {
3341
3407
  "name": "zn-table",
3342
3408
  "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.",
@@ -3355,23 +3421,6 @@
3355
3421
  }
3356
3422
  ]
3357
3423
  },
3358
- {
3359
- "name": "zn-tab",
3360
- "description": "Defines a tab panel for use inside zn-page.\n---\n\n\n### **Slots:**\n - _default_ - The tab panel content.",
3361
- "attributes": [
3362
- { "name": "caption", "values": [] },
3363
- { "name": "priority", "values": [] },
3364
- { "name": "uri", "values": [] },
3365
- {
3366
- "name": "selected",
3367
- "description": "When present, zn-page opens this tab on load instead of the first tab.",
3368
- "values": []
3369
- }
3370
- ],
3371
- "references": [
3372
- { "name": "Documentation", "url": "https://zinc.style/components/tab" }
3373
- ]
3374
- },
3375
3424
  {
3376
3425
  "name": "zn-tabs",
3377
3426
  "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.",
@@ -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.",