@kubex/zinc 1.0.4 → 1.0.6

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 (158) hide show
  1. package/dist/custom-elements.json +1278 -191
  2. package/dist/vscode.html-custom-data.json +93 -16
  3. package/dist/web-types.json +235 -25
  4. package/dist/zn.d.ts +1313 -941
  5. package/dist/zn.min.css +1 -1
  6. package/dist/zn.min.js +2049 -931
  7. package/docs/_includes/default.njk +1 -0
  8. package/docs/assets/scripts/docs.js +4 -5
  9. package/docs/assets/scripts/search.js +0 -9
  10. package/docs/assets/styles/docs.css +3 -3
  11. package/docs/data/data-table.json +79 -0
  12. package/docs/data/products-table.json +36 -0
  13. package/docs/eleventy.config.cjs +3 -0
  14. package/docs/pages/components/data-select.md +10 -0
  15. package/docs/pages/components/data-table.md +84 -45
  16. package/docs/pages/components/dialog.md +1 -1
  17. package/docs/pages/components/editor.md +1 -3
  18. package/docs/pages/components/filter-wrapper.md +20 -0
  19. package/docs/pages/components/icon.md +2 -0
  20. package/docs/pages/components/item.md +2 -2
  21. package/docs/pages/components/menu-item.md +12 -3
  22. package/docs/pages/components/panel.md +17 -0
  23. package/docs/pages/components/progress-tile.md +17 -1
  24. package/docs/pages/components/settings-container.md +137 -0
  25. package/docs/pages/components/textarea.md +1 -1
  26. package/package.json +3 -1
  27. package/scss/_root.scss +26 -0
  28. package/scss/boot.scss +27 -1
  29. package/scss/mixins/index.scss +30 -1
  30. package/scss/shared/_base.scss +1 -1
  31. package/scss/shared/_button.scss +1 -1
  32. package/scss/shared/layout.scss +7 -0
  33. package/scss/themes/_dark.scss +5 -5
  34. package/scss/themes/_light.scss +6 -5
  35. package/scss/variables/index.scss +9 -0
  36. package/src/components/alert/alert.component.ts +1 -1
  37. package/src/components/alert/alert.scss +18 -4
  38. package/src/components/bulk-actions/bulk-actions.component.ts +152 -84
  39. package/src/components/bulk-actions/bulk-actions.scss +2 -0
  40. package/src/components/button/button.component.ts +6 -2
  41. package/src/components/button/button.scss +16 -1
  42. package/src/components/button-menu/button-menu.component.ts +23 -15
  43. package/src/components/button-menu/button-menu.scss +4 -4
  44. package/src/components/chart/chart.component.ts +14 -12
  45. package/src/components/checkbox/checkbox.component.ts +5 -1
  46. package/src/components/checkbox/checkbox.scss +1 -1
  47. package/src/components/chip/chip.component.ts +7 -3
  48. package/src/components/chip/chip.scss +9 -1
  49. package/src/components/collapsible/collapsible.component.ts +48 -2
  50. package/src/components/cols/cols.component.ts +7 -3
  51. package/src/components/cols/cols.scss +22 -14
  52. package/src/components/confirm/confirm.component.ts +1 -2
  53. package/src/components/content-block/content-block.component.ts +104 -14
  54. package/src/components/content-block/content-block.scss +8 -0
  55. package/src/components/data-select/data-select.component.ts +1 -1
  56. package/src/components/data-table/data-table.component.ts +394 -430
  57. package/src/components/data-table/data-table.scss +6 -1
  58. package/src/components/datepicker/datepicker.scss +1 -1
  59. package/src/components/dialog/dialog.component.ts +52 -33
  60. package/src/components/dialog/dialog.scss +15 -1
  61. package/src/components/dropdown/dropdown.component.ts +1 -1
  62. package/src/components/editor/editor.component.ts +196 -158
  63. package/src/components/editor/editor.scss +25 -5
  64. package/src/components/editor/modules/ai/index.ts +281 -0
  65. package/src/components/editor/modules/ai/panel/ai-panel.component.ts +102 -0
  66. package/src/components/editor/modules/ai/panel/ai-panel.scss +83 -0
  67. package/src/components/editor/modules/ai/tooltip/ai-tooltip.component.ts +30 -0
  68. package/src/components/editor/modules/ai/tooltip/ai-tooltip.scss +28 -0
  69. package/src/components/editor/modules/{attachment-module.ts → attachment/attachment.ts} +7 -7
  70. package/src/components/editor/modules/context-menu/context-menu-component.ts +115 -0
  71. package/src/components/editor/modules/context-menu/context-menu.scss +49 -0
  72. package/src/components/editor/modules/context-menu/context-menu.ts +296 -0
  73. package/src/components/editor/modules/context-menu/quick-action/index.ts +12 -0
  74. package/src/components/editor/modules/context-menu/quick-action/quick-action.component.ts +18 -0
  75. package/src/components/editor/modules/date-picker/date-picker.ts +77 -0
  76. package/src/components/editor/modules/dialog/dialog.component.ts +115 -0
  77. package/src/components/editor/modules/dialog/dialog.scss +43 -0
  78. package/src/components/editor/modules/dialog/dialog.ts +46 -0
  79. package/src/components/editor/modules/{drag-drop-module.ts → drag-drop/drag-drop.ts} +6 -6
  80. package/src/components/editor/modules/emoji/emoji.ts +106 -0
  81. package/src/components/editor/modules/emoji/headless/headless-emoji.component.ts +122 -0
  82. package/src/components/editor/modules/emoji/headless/headless-emoji.scss +52 -0
  83. package/src/components/editor/modules/emoji/headless/headless-emoji.ts +223 -0
  84. package/src/components/editor/modules/{image-resize-module/image-resize-module.ts → image-resize/image-resize.ts} +5 -5
  85. package/src/components/editor/modules/{time-tracking-module.ts → time-tracking/time-tracking.ts} +5 -5
  86. package/src/components/editor/modules/toolbar/tool/index.ts +12 -0
  87. package/src/components/editor/modules/toolbar/tool/tool.component.ts +30 -0
  88. package/src/components/editor/modules/toolbar/tool/tool.scss +5 -0
  89. package/src/components/editor/modules/toolbar/toolbar.component.ts +738 -0
  90. package/src/components/editor/modules/toolbar/toolbar.scss +98 -0
  91. package/src/components/editor/modules/toolbar/toolbar.ts +328 -0
  92. package/src/components/expanding-action/expanding-action.component.ts +2 -2
  93. package/src/components/expanding-action/expanding-action.scss +2 -2
  94. package/src/components/filter-wrapper/filter-wrapper.component.ts +91 -0
  95. package/src/components/filter-wrapper/filter-wrapper.scss +11 -0
  96. package/src/components/filter-wrapper/filter-wrapper.test.ts +10 -0
  97. package/src/components/filter-wrapper/index.ts +12 -0
  98. package/src/components/header/header.component.ts +1 -1
  99. package/src/components/header/header.scss +8 -1
  100. package/src/components/hover-container/hover-container.scss +39 -36
  101. package/src/components/icon/icon.component.ts +11 -5
  102. package/src/components/icon/icon.scss +15 -2
  103. package/src/components/inline-edit/inline-edit.component.ts +52 -6
  104. package/src/components/inline-edit/inline-edit.scss +15 -2
  105. package/src/components/input/input.scss +1 -1
  106. package/src/components/item/item.component.ts +30 -19
  107. package/src/components/item/item.scss +57 -23
  108. package/src/components/linked-select/linked-select.component.ts +5 -1
  109. package/src/components/menu/menu.component.ts +1 -0
  110. package/src/components/menu/menu.scss +1 -1
  111. package/src/components/menu-item/menu-item.component.ts +22 -4
  112. package/src/components/menu-item/menu-item.scss +54 -7
  113. package/src/components/navbar/navbar.component.ts +7 -1
  114. package/src/components/navbar/navbar.scss +26 -16
  115. package/src/components/option/option.component.ts +4 -1
  116. package/src/components/option/option.scss +9 -0
  117. package/src/components/page-nav/page-nav.component.ts +2 -2
  118. package/src/components/page-nav/page-nav.scss +4 -4
  119. package/src/components/panel/panel.component.ts +20 -9
  120. package/src/components/panel/panel.scss +5 -1
  121. package/src/components/popup/popup.component.ts +16 -2
  122. package/src/components/progress-tile/progress-tile.component.ts +10 -4
  123. package/src/components/progress-tile/progress-tile.scss +7 -4
  124. package/src/components/query-builder/query-builder.component.ts +1 -1
  125. package/src/components/radio/radio.scss +1 -1
  126. package/src/components/scroll-container/scroll-container.component.ts +56 -9
  127. package/src/components/scroll-container/scroll-container.scss +37 -2
  128. package/src/components/select/select.component.ts +3 -0
  129. package/src/components/select/select.scss +1 -1
  130. package/src/components/settings-container/index.ts +12 -0
  131. package/src/components/settings-container/settings-container.component.ts +226 -0
  132. package/src/components/settings-container/settings-container.scss +99 -0
  133. package/src/components/settings-container/settings-container.test.ts +10 -0
  134. package/src/components/skeleton/skeleton.scss +5 -4
  135. package/src/components/sp/sp.component.ts +2 -0
  136. package/src/components/sp/sp.scss +2 -0
  137. package/src/components/split-button/split-button.component.ts +24 -18
  138. package/src/components/split-pane/split-pane.component.ts +5 -5
  139. package/src/components/stat/stat.component.ts +5 -1
  140. package/src/components/stat/stat.scss +24 -1
  141. package/src/components/style/style.component.ts +25 -1
  142. package/src/components/tabs/tabs.component.ts +12 -1
  143. package/src/components/textarea/textarea.component.ts +3 -1
  144. package/src/components/textarea/textarea.scss +21 -2
  145. package/src/components/vertical-stepper/vertical-stepper.scss +1 -1
  146. package/src/internal/form.ts +3 -1
  147. package/src/internal/slot.ts +29 -3
  148. package/src/utilities/on.ts +7 -8
  149. package/src/utilities/query.ts +5 -1
  150. package/src/wc.scss +7 -0
  151. package/src/zinc.ts +5 -0
  152. package/src/components/editor/modules/dialog-module/dialog-module.component.ts +0 -289
  153. package/src/components/editor/modules/dialog-module/dialog-module.scss +0 -115
  154. package/src/components/editor/modules/dialog-module/dialog-module.ts +0 -99
  155. package/src/components/editor/modules/events/zn-show-canned-response-dialog.ts +0 -15
  156. package/src/components/editor/modules/menu-module/menu-module.component.ts +0 -149
  157. package/src/components/editor/modules/menu-module/menu-module.scss +0 -17
  158. package/src/components/editor/modules/menu-module/menu-module.ts +0 -203
@@ -8,7 +8,7 @@ layout: component
8
8
  ```html:preview
9
9
 
10
10
  <zn-sp divide no-gap>
11
- <zn-item caption="Full name" edit-on-hover>
11
+ <zn-item caption="Full name" description="this is description" edit-on-hover>
12
12
  <zn-inline-edit name="name"
13
13
  value="EN"
14
14
  options="{&quot;&quot;:&quot;-&quot;,&quot;EN&quot;:&quot;English&quot;,&quot;IT&quot;:&quot;Italian&quot;,&quot;FR&quot;:&quot;French&quot;,&quot;DE&quot;:&quot;German&quot;,&quot;ES&quot;:&quot;Spanish&quot;,&quot;PT&quot;:&quot;Portuguese&quot;,&quot;AB&quot;:&quot;Abkhazian&quot;,&quot;OM&quot;:&quot;Afan\/Oromoor\/Oriya&quot;,&quot;AA&quot;:&quot;Afar&quot;,&quot;AF&quot;:&quot;Afrikaans&quot;,&quot;SQ&quot;:&quot;Albanian&quot;,&quot;AM&quot;:&quot;Amharic&quot;,&quot;AR&quot;:&quot;Arabic&quot;,&quot;HY&quot;:&quot;Armenian&quot;,&quot;AS&quot;:&quot;Assamese&quot;,&quot;AY&quot;:&quot;Aymara&quot;,&quot;AZ&quot;:&quot;Azerbaijani&quot;,&quot;BA&quot;:&quot;Bashkir&quot;,&quot;EU&quot;:&quot;Basque&quot;,&quot;BN&quot;:&quot;Bengali\/Bangla&quot;,&quot;DZ&quot;:&quot;Bhutani&quot;,&quot;BH&quot;:&quot;Bihari&quot;,&quot;BI&quot;:&quot;Bislama&quot;,&quot;BR&quot;:&quot;Breton&quot;,&quot;BG&quot;:&quot;Bulgarian&quot;,&quot;MY&quot;:&quot;Burmese&quot;,&quot;BE&quot;:&quot;Byelorussian&quot;,&quot;KM&quot;:&quot;Cambodian&quot;,&quot;CA&quot;:&quot;Catalan&quot;,&quot;ZH&quot;:&quot;Chinese&quot;,&quot;CO&quot;:&quot;Corsican&quot;,&quot;HR&quot;:&quot;Croatian&quot;,&quot;CS&quot;:&quot;Czech&quot;,&quot;DA&quot;:&quot;Danish&quot;,&quot;NL&quot;:&quot;Dutch&quot;,&quot;EO&quot;:&quot;Esperanto&quot;,&quot;ET&quot;:&quot;Estonian&quot;,&quot;FO&quot;:&quot;Faeroese&quot;,&quot;FJ&quot;:&quot;Fiji&quot;,&quot;FI&quot;:&quot;Finnish&quot;,&quot;FY&quot;:&quot;Frisian&quot;,&quot;GL&quot;:&quot;Galician&quot;,&quot;KA&quot;:&quot;Georgian&quot;,&quot;EL&quot;:&quot;Greek&quot;,&quot;KL&quot;:&quot;Greenlandic&quot;,&quot;GN&quot;:&quot;Guarani&quot;,&quot;GU&quot;:&quot;Gujarati&quot;,&quot;HA&quot;:&quot;Hausa&quot;,&quot;HE&quot;:&quot;Hebrew&quot;,&quot;HI&quot;:&quot;Hindi&quot;,&quot;HU&quot;:&quot;Hungarian&quot;,&quot;IS&quot;:&quot;Icelandic&quot;,&quot;ID&quot;:&quot;Indonesian&quot;,&quot;IA&quot;:&quot;Interlingua&quot;,&quot;IE&quot;:&quot;Interlingue&quot;,&quot;IK&quot;:&quot;Inupiak&quot;,&quot;GA&quot;:&quot;Irish&quot;,&quot;JA&quot;:&quot;Japanese&quot;,&quot;JV&quot;:&quot;Javanese&quot;,&quot;KN&quot;:&quot;Kannada&quot;,&quot;KS&quot;:&quot;Kashmiri&quot;,&quot;KK&quot;:&quot;Kazakh&quot;,&quot;RW&quot;:&quot;Kinyarwanda&quot;,&quot;KY&quot;:&quot;Kirghiz&quot;,&quot;RN&quot;:&quot;Kirundi&quot;,&quot;KO&quot;:&quot;Korean&quot;,&quot;KU&quot;:&quot;Kurdish&quot;,&quot;LO&quot;:&quot;Laothian&quot;,&quot;LA&quot;:&quot;Latin&quot;,&quot;LV&quot;:&quot;Latvian\/Lettish&quot;,&quot;LN&quot;:&quot;Lingala&quot;,&quot;LT&quot;:&quot;Lithuanian&quot;,&quot;MK&quot;:&quot;Macedonian&quot;,&quot;MG&quot;:&quot;Malagasy&quot;,&quot;MS&quot;:&quot;Malay&quot;,&quot;ML&quot;:&quot;Malayalam&quot;,&quot;MT&quot;:&quot;Maltese&quot;,&quot;MI&quot;:&quot;Maori&quot;,&quot;MR&quot;:&quot;Marathi&quot;,&quot;MO&quot;:&quot;Moldavian&quot;,&quot;MN&quot;:&quot;Mongolian&quot;,&quot;NA&quot;:&quot;Nauru&quot;,&quot;NB&quot;:&quot;Norwegian Bokm\u00e5l&quot;,&quot;NE&quot;:&quot;Nepali&quot;,&quot;NO&quot;:&quot;Norwegian&quot;,&quot;OC&quot;:&quot;Occitan&quot;,&quot;PS&quot;:&quot;Pashto\/Pushto&quot;,&quot;FA&quot;:&quot;Persian&quot;,&quot;PL&quot;:&quot;Polish&quot;,&quot;PA&quot;:&quot;Punjabi&quot;,&quot;QU&quot;:&quot;Quechua&quot;,&quot;RM&quot;:&quot;Rhaeto-Romance&quot;,&quot;RO&quot;:&quot;Romanian&quot;,&quot;RU&quot;:&quot;Russian&quot;,&quot;SM&quot;:&quot;Samoan&quot;,&quot;SG&quot;:&quot;Sangro&quot;,&quot;SA&quot;:&quot;Sanskrit&quot;,&quot;GD&quot;:&quot;Scots\/Gaelic&quot;,&quot;SR&quot;:&quot;Serbian&quot;,&quot;SH&quot;:&quot;Serbo-Croatian&quot;,&quot;ST&quot;:&quot;Sesotho&quot;,&quot;TN&quot;:&quot;Setswana&quot;,&quot;SN&quot;:&quot;Shona&quot;,&quot;SD&quot;:&quot;Sindhi&quot;,&quot;SE&quot;:&quot;Northern Sami&quot;,&quot;SI&quot;:&quot;Singhalese&quot;,&quot;SS&quot;:&quot;Siswati&quot;,&quot;SK&quot;:&quot;Slovak&quot;,&quot;SL&quot;:&quot;Slovenian&quot;,&quot;SO&quot;:&quot;Somali&quot;,&quot;SU&quot;:&quot;Sundanese&quot;,&quot;SW&quot;:&quot;Swahili&quot;,&quot;SV&quot;:&quot;Swedish&quot;,&quot;TL&quot;:&quot;Tagalog&quot;,&quot;TG&quot;:&quot;Tajik&quot;,&quot;TA&quot;:&quot;Tamil&quot;,&quot;TT&quot;:&quot;Tatar&quot;,&quot;TE&quot;:&quot;Tegulu&quot;,&quot;TH&quot;:&quot;Thai&quot;,&quot;BO&quot;:&quot;Tibetan&quot;,&quot;TI&quot;:&quot;Tigrinya&quot;,&quot;TO&quot;:&quot;Tonga&quot;,&quot;TS&quot;:&quot;Tsonga&quot;,&quot;TR&quot;:&quot;Turkish&quot;,&quot;TK&quot;:&quot;Turkmen&quot;,&quot;TW&quot;:&quot;Twi&quot;,&quot;UK&quot;:&quot;Ukrainian&quot;,&quot;UR&quot;:&quot;Urdu&quot;,&quot;UZ&quot;:&quot;Uzbek&quot;,&quot;VI&quot;:&quot;Vietnamese&quot;,&quot;VO&quot;:&quot;Volapuk&quot;,&quot;CY&quot;:&quot;Welsh&quot;,&quot;WO&quot;:&quot;Wolof&quot;,&quot;XH&quot;:&quot;Xhosa&quot;,&quot;JI&quot;:&quot;Yiddish&quot;,&quot;YO&quot;:&quot;Yoruba&quot;,&quot;ZU&quot;:&quot;Zulu&quot;}"></zn-inline-edit>
@@ -41,7 +41,7 @@ layout: component
41
41
 
42
42
  ```html:preview
43
43
 
44
- <zn-item caption="Full name" icon="person">
44
+ <zn-item caption="Full name" icon="person" description="this is description">
45
45
  This is the content
46
46
  </zn-item>
47
47
 
@@ -6,14 +6,23 @@ layout: component
6
6
  ---
7
7
 
8
8
  ```html:preview
9
- <zn-menu-item></zn-menu-item>
9
+ <zn-menu-item>Menu item</zn-menu-item>
10
10
  ```
11
11
 
12
12
  ## Examples
13
13
 
14
- ### First Example
14
+ ### Colors Example
15
15
 
16
- TODO
16
+ ```html:preview
17
+ <zn-menu-item>Menu item</zn-menu-item>
18
+ <zn-menu-item color="primary">Menu item</zn-menu-item>
19
+ <zn-menu-item color="secondary">Menu item</zn-menu-item>
20
+ <zn-menu-item color="transparent">Menu item</zn-menu-item>
21
+ <zn-menu-item color="error">Menu item</zn-menu-item>
22
+ <zn-menu-item color="info">Menu item</zn-menu-item>
23
+ <zn-menu-item color="success">Menu item</zn-menu-item>
24
+ <zn-menu-item color="warning">Menu item</zn-menu-item>
25
+ ```
17
26
 
18
27
  ### Second Example
19
28
 
@@ -121,4 +121,21 @@ panel. This can be useful when using other components such as `zn-tabs`.
121
121
  </zn-panel>
122
122
  ```
123
123
 
124
+ ### Cosmic Panel
124
125
 
126
+ ```html:preview
127
+
128
+ <zn-panel flush cosmic>
129
+
130
+ <!-- Example panel content -->
131
+ <zn-sp flush no-gap divide>
132
+ <zn-inline-edit padded inline caption="Label 1" value="This is Awesome"></zn-inline-edit>
133
+ <zn-inline-edit padded inline caption="Label 2" value="This is Awesome"></zn-inline-edit>
134
+ </zn-sp>
135
+
136
+ <!-- Panel Footer -->
137
+ <span slot="footer">
138
+ Some awesome footer information
139
+ </span>
140
+ </zn-panel>
141
+ ```
@@ -6,7 +6,23 @@ layout: component
6
6
  ---
7
7
 
8
8
  ```html:preview
9
- <zn-progress-tile></zn-progress-tile>
9
+
10
+ <zn-progress-tile
11
+ id="progress-tile"
12
+ caption="John Doe"
13
+ status="Active"
14
+ avatar="JohnDoe@avatar"
15
+ wait-time="60">
16
+ </zn-progress-tile>
17
+
18
+ <script>
19
+ // set start time to current time for demo purposes - 10 seconds ago
20
+ const startTime = Math.floor(Date.now() / 1000) - 40;
21
+ const progressTile = document.getElementById('progress-tile');
22
+
23
+ progressTile.setAttribute('start-time', startTime);
24
+
25
+ </script>
10
26
  ```
11
27
 
12
28
  ## Examples
@@ -0,0 +1,137 @@
1
+ ---
2
+ meta:
3
+ title: Settings Container
4
+ description:
5
+ layout: component
6
+ ---
7
+
8
+ By default, all elements inside a `<zn-settings-container>` are shown.
9
+ You can add filters to toggle visibility of specific elements based on their attributes.
10
+
11
+ ```html:preview
12
+
13
+ <div style="width: 100%; height: 300px; border: 1px solid #ccc;">
14
+ <zn-settings-container store-key="example-filters">
15
+
16
+ <zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
17
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
18
+ <div slot="actions">
19
+ <zn-button href="#">Action</zn-button>
20
+ </div>
21
+ </zn-tile>
22
+
23
+ <zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
24
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
25
+ <div slot="actions">
26
+ <zn-button href="#">Action</zn-button>
27
+ </div>
28
+ </zn-tile>
29
+
30
+ <zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
31
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
32
+ <div slot="actions">
33
+ <zn-button href="#">Action</zn-button>
34
+ </div>
35
+ </zn-tile>
36
+
37
+ <zn-tile original caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
38
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
39
+ <div slot="actions">
40
+ <zn-button href="#">Action</zn-button>
41
+ </div>
42
+ </zn-tile>
43
+
44
+ <zn-tile original caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
45
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
46
+ <div slot="actions">
47
+ <zn-button href="#">Action</zn-button>
48
+ </div>
49
+ </zn-tile>
50
+
51
+ <div slot="filter" attribute="private" default="true">Toggle Private Messages</div>
52
+ <div slot="filter" attribute="original" default="true">Toggle Original Messages</div>
53
+
54
+ </zn-settings-container>
55
+ </div>
56
+ ```
57
+
58
+ ## Examples
59
+
60
+ ### Specific Elements Only
61
+
62
+ You can pass to the settings container only specific elements you want to be affected by the filters.
63
+ for example by adding item-selector="zn-inline-edit" only the inline edit elements will be affected by the filters.
64
+
65
+ ```html:preview
66
+
67
+ <style>
68
+ zn-tile, zn-inline-edit {
69
+ position: relative;
70
+ }
71
+
72
+ [private]:after, [original]:after {
73
+ position: absolute;
74
+ top: 0;
75
+ right: 0;
76
+ font-size: 10px;
77
+ padding: 2px 4px;
78
+ border-radius: 0 0 0 4px;
79
+ color: #000;
80
+ font-weight: bold;
81
+ }
82
+
83
+ [private]:after {
84
+ content: " (private)";
85
+ border: 1px solid #f00;
86
+ background: #fee;
87
+ }
88
+
89
+ [original]:after {
90
+ content: " (original)";
91
+ border: 1px solid #00f;
92
+ background: #eef;
93
+ }
94
+ </style>
95
+
96
+ <div style="width: 100%; height: 300px; border: 1px solid #ccc;">
97
+ <zn-settings-container item-selector="zn-inline-edit">
98
+
99
+ <zn-inline-edit private caption="Something" value="1" action="#" method="GET"
100
+ options="{&quot;1&quot;: &quot;Option 1&quot;,&quot;2&quot;: &quot;Option 2&quot;}">
101
+ </zn-inline-edit>
102
+
103
+ <zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
104
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
105
+ <div slot="actions">
106
+ <zn-button href="#">Action</zn-button>
107
+ </div>
108
+ </zn-tile>
109
+
110
+ <zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
111
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
112
+ <div slot="actions">
113
+ <zn-button href="#">Action</zn-button>
114
+ </div>
115
+ </zn-tile>
116
+
117
+ <zn-inline-edit original caption="Something" value="1" action="#" method="GET"
118
+ options="{&quot;1&quot;: &quot;Option 1&quot;,&quot;2&quot;: &quot;Option 2&quot;}">
119
+ </zn-inline-edit>
120
+
121
+ <zn-tile original caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
122
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
123
+ <div slot="actions">
124
+ <zn-button href="#">Action</zn-button>
125
+ </div>
126
+ </zn-tile>
127
+
128
+ <div slot="filter" attribute="private" default="true" item-selector="zn-inline-edit">Toggle Inline Edit Private Messages</div>
129
+ <div slot="filter" attribute="original" default="true" item-selector="zn-tile">Toggle Tile Original Messages</div>
130
+
131
+ </zn-settings-container>
132
+ </div>
133
+ ```
134
+
135
+ ### Second Example
136
+
137
+ TODO
@@ -28,7 +28,7 @@ Add descriptive help text to a textarea with the `help-text` attribute. For help
28
28
  `help-text` slot instead.
29
29
 
30
30
  ```html:preview
31
- <zn-textarea label="Month in review" help-text="Tell us the highlights. Be sure to include details about any financial performance anomalies."> </zn-textarea>
31
+ <zn-textarea transparent label="Month in review" help-text="Tell us the highlights. Be sure to include details about any financial performance anomalies."> </zn-textarea>
32
32
  <br />
33
33
  <zn-textarea label="Month in review">
34
34
  <div slot="help-text">Tell us the highlights. Be sure to include details about any financial performance <strong>anomalies</strong>.</div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubex/zinc",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
5
5
  "keywords": [
6
6
  "web components",
@@ -41,6 +41,7 @@
41
41
  "watch": "node scripts/build.js --serve"
42
42
  },
43
43
  "dependencies": {
44
+ "@emoji-mart/data": "^1.2.1",
44
45
  "@floating-ui/dom": "^1.6.13",
45
46
  "@lit-labs/observers": "^2.0.4",
46
47
  "@lit/task": "^1.0.1",
@@ -49,6 +50,7 @@
49
50
  "apexcharts": "^4.5.0",
50
51
  "chart.js": "^4.4.8",
51
52
  "composed-offset-position": "^0.0.6",
53
+ "emoji-mart": "^5.6.0",
52
54
  "lit": "^2.7.6",
53
55
  "quill": "^2.0.3"
54
56
  },
package/scss/_root.scss CHANGED
@@ -200,3 +200,29 @@
200
200
  .zn-success {
201
201
  color: rgb(var(--zn-color-success));
202
202
  }
203
+
204
+ ul.gap{
205
+ li{
206
+ margin: 5px 0;
207
+ }
208
+ }
209
+
210
+ ul.circle, ul.decimal, ul.disc, ul.square {
211
+ padding: 5px 0 5px 15px;
212
+ }
213
+
214
+ ul.circle {
215
+ list-style-type: circle;
216
+ }
217
+
218
+ ul.decimal {
219
+ list-style-type: decimal;
220
+ }
221
+
222
+ ul.disc {
223
+ list-style-type: disc;
224
+ }
225
+
226
+ ul.square {
227
+ list-style-type: square;
228
+ }
package/scss/boot.scss CHANGED
@@ -13,17 +13,43 @@
13
13
  @use "../node_modules/air-datepicker/air-datepicker.css";
14
14
 
15
15
  .air-datepicker {
16
+ --adp-color: rgba(var(--zn-text), var(--zn-text-opacity));
17
+ --adp-nav-color-secondary: rgb(var(--zn-purple-text));
18
+
16
19
  --adp-day-name-color: var(--zn-color-primary-600);
17
20
  --adp-day-name-color-hover: var(--zn-color-primary-700);
18
21
  --adp-cell-background-color-selected: var(--zn-color-primary-600);
19
22
  --adp-cell-background-color-selected-hover: var(--zn-color-primary-700);
20
23
  --adp-color-current-date: var(--zn-color-primary-600);
21
24
 
25
+ --adp-background-color: var(--zn-input-background-color);
26
+ --adp-background-color-hover: var(--zn-input-background-color-hover);
27
+ --adp-background-color-active: var(--zn-input-background-color-hover);
22
28
  --adp-background-color-selected-other-month: var(--zn-color-primary-300);
23
29
  --adp-background-color-in-range: var(--zn-color-primary-100);
24
30
 
31
+ --adp-border-color: rgb(var(--zn-border-color));
32
+ --adp-border-color-inline: rgb(var(--zn-border-color));
33
+ --adp-border-color-inner: rgb(var(--zn-border-color));
34
+
25
35
  --adp-cell-background-color-in-range: var(--zn-color-primary-100);
26
36
  --adp-cell-background-color-in-range-hover: var(--zn-color-primary-200);
37
+ }
38
+
39
+ .air-datepicker--pointer:after {
40
+ background-color: var(--zn-input-background-color);
41
+ }
42
+
43
+ // Utility to minimize flashing of undefined web components
44
+ .zn-cloak:has(:not(:defined)) {
45
+ animation: 2s step-end zn-cloak;
46
+ }
27
47
 
28
- z-index: 1000000; // Needs to display over modals
48
+ @keyframes zn-cloak {
49
+ from {
50
+ opacity: 0;
51
+ }
52
+ to {
53
+ opacity: 1;
54
+ }
29
55
  }
@@ -1,2 +1,31 @@
1
1
  @forward "spacing-mixins";
2
- @forward "helper-mixins";
2
+ @forward "helper-mixins";
3
+
4
+
5
+ @mixin cosmic-border() {
6
+ border: 1px solid transparent;
7
+
8
+ &:before {
9
+ content: '';
10
+ z-index: -1;
11
+ position: absolute;
12
+ top: -2px;
13
+ left: -2px;
14
+ height: calc(100% + 4px);
15
+ width: calc(100% + 4px);
16
+ filter: blur(var(--zn-blur, 1px));
17
+ opacity: 0.9;
18
+ border-radius: var(--zn-border-radius-large);
19
+
20
+ background-image: conic-gradient(
21
+ from var(--rotate) at 50% 50%,
22
+ #71d9ff 0%,
23
+ #a100ffff 22%,
24
+ #71d9ff 44%,
25
+ #ff00ceff 74%,
26
+ #71d9ff 94%
27
+ );
28
+
29
+ animation: rotate-gradient 6s linear infinite;
30
+ }
31
+ }
@@ -64,7 +64,7 @@ small {
64
64
  }
65
65
 
66
66
  .hidden {
67
- display: none;
67
+ display: none !important;
68
68
  }
69
69
 
70
70
  .visibility-hidden {
@@ -2,7 +2,7 @@
2
2
  @use '../variables';
3
3
 
4
4
  @mixin button {
5
- border-radius: 5px;
5
+ border-radius: var(--zn-border-radius-medium);
6
6
  display: inline-flex;
7
7
  align-items: center;
8
8
  justify-content: center;
@@ -275,9 +275,16 @@
275
275
  border-bottom: 1px solid rgb(var(--zn-border-color));
276
276
  background-color: rgba(var(--zn-panel), 0.9);
277
277
  padding: 3px;
278
+ gap: 3px;
278
279
  display: flex;
279
280
  flex-wrap: wrap;
280
281
  align-items: center;
282
+ z-index: 1;
283
+ }
284
+
285
+ .zn-panel-bar--large {
286
+ padding: 6px;
287
+ gap: 6px;
281
288
  }
282
289
 
283
290
  .scroll-container {
@@ -246,11 +246,11 @@
246
246
  --zn-color-neutral-1000: hsl(0, 0%, 100%);
247
247
 
248
248
  /* Elevations */
249
- --zn-shadow-x-small: 0 1px 2px hsl(0 0 0 / 18%);
250
- --zn-shadow-small: 0 1px 2px hsl(0 0 0 / 24%);
251
- --zn-shadow-medium: 0 2px 4px hsl(0 0 0 / 24%);
252
- --zn-shadow-large: 0 2px 8px hsl(0 0 0 / 24%);
253
- --zn-shadow-x-large: 0 4px 16px hsl(0 0 0 / 24%);
249
+ --zn-shadow-x-small: 0 1px 4px rgba(0, 0, 0, 0.18);
250
+ --zn-shadow-small: 0 3px 9px rgba(0, 0, 0, 0.24);
251
+ --zn-shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.24);
252
+ --zn-shadow-large: 0 6px 20px rgba(0, 0, 0, 0.24);
253
+ --zn-shadow-x-large: 0 6px 20px rgba(0, 0, 0, 0.34);
254
254
 
255
255
  /* Inputs */
256
256
  --zn-input-background-color: hsl(223, 14%, 10%);
@@ -323,11 +323,11 @@
323
323
  --zn-border-radius-pill: 9999px;
324
324
 
325
325
  /* Elevations */
326
- --zn-shadow-x-small: 0 1px 2px hsl(240 3.8% 46.1% / 6%);
327
- --zn-shadow-small: 0 1px 2px hsl(240 3.8% 46.1% / 12%);
328
- --zn-shadow-medium: 0 2px 4px hsl(240 3.8% 46.1% / 12%);
329
- --zn-shadow-large: 0 2px 8px hsl(240 3.8% 46.1% / 12%);
330
- --zn-shadow-x-large: 0 4px 16px hsl(240 3.8% 46.1% / 12%);
326
+ --zn-shadow-x-small: 0 1px 4px rgba(0, 0, 0, 0.10);
327
+ --zn-shadow-small: 0 3px 9px rgba(0, 0, 0, 0.15);
328
+ --zn-shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.15);
329
+ --zn-shadow-large: 0 6px 20px rgba(0, 0, 0, 0.15);
330
+ --zn-shadow-x-large: 0 6px 20px rgba(0, 0, 0, 0.25);
331
331
 
332
332
  /* Spacings */
333
333
  --zn-spacing-3x-small: 0.125rem; // 2px
@@ -537,4 +537,5 @@
537
537
  --zn-z-index-dropdown: 900;
538
538
  --zn-z-index-toast: 950;
539
539
  --zn-z-index-tooltip: 1000;
540
+ --zn-z-index-editor-action: 100000;
540
541
  }
@@ -1 +1,10 @@
1
1
  @forward "spacing";
2
+
3
+ @keyframes rotate-gradient {
4
+ from {
5
+ --rotate: 0deg;
6
+ }
7
+ to {
8
+ --rotate: 360deg;
9
+ }
10
+ }
@@ -28,7 +28,7 @@ export default class ZnAlert extends ZincElement {
28
28
  @property({type: String}) icon: string = '';
29
29
  @property({type: String}) caption: string = '';
30
30
  @property({type: Boolean}) collapse: boolean = false;
31
- @property({type: String}) level: 'primary' | 'error' | 'info' | 'success' | 'warning' | 'note' = 'info';
31
+ @property({type: String}) level: 'primary' | 'error' | 'info' | 'success' | 'warning' | 'note' | 'cosmic' = 'info';
32
32
  @property({type: String}) size: 'small' | 'medium' | 'large' = 'medium';
33
33
 
34
34
  render() {
@@ -138,17 +138,16 @@ p {
138
138
  }
139
139
 
140
140
 
141
-
142
141
  :host([level="note"]) .wrapper {
143
142
  h6 {
144
143
  color: var(--zn-color-gray-800);
145
144
  }
146
145
 
147
- border-color: var(--zn-color-gray-500) !important;
148
- background: var(--zn-color-gray-100);
146
+ border-color: var(--zn-color-gray-500) !important;
147
+ background: var(--zn-color-gray-100);
149
148
 
150
149
  zn-icon {
151
- --icon-color: var(--zn-color-gray-800) ;
150
+ --icon-color: var(--zn-color-gray-800);
152
151
  }
153
152
  }
154
153
 
@@ -168,3 +167,18 @@ p {
168
167
  font-size: 110%;
169
168
  }
170
169
  }
170
+
171
+ :host([level="cosmic"]) {
172
+ @include wc.cosmic-border();
173
+ position: relative;
174
+ z-index: 0;
175
+
176
+ &:before {
177
+ border-radius: 11px;
178
+ }
179
+
180
+ .wrapper {
181
+ border: none !important;
182
+ background: rgba(var(--zn-panel), 0.99);
183
+ }
184
+ }