@kubex/zinc 1.1.29 → 1.1.32

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.
@@ -132,6 +132,41 @@ for example by adding item-selector="zn-inline-edit" only the inline edit elemen
132
132
  </div>
133
133
  ```
134
134
 
135
- ### Second Example
135
+ ### Pull Tab
136
136
 
137
- TODO
137
+ Add the `pull-tab` attribute to replace the settings dropdown with a pull tab anchored to the top right
138
+ of the container. Clicking the tab slides down a panel containing the settings options. Optional content
139
+ can be placed in the `tab` slot to render alongside the chevron.
140
+
141
+ ```html:preview
142
+
143
+ <div style="width: 100%; height: 300px; border: 1px solid #ccc;">
144
+ <zn-settings-container pull-tab store-key="example-pull-tab-filters">
145
+
146
+ <zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
147
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
148
+ <div slot="actions">
149
+ <zn-button href="#">Action</zn-button>
150
+ </div>
151
+ </zn-tile>
152
+
153
+ <zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
154
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
155
+ <div slot="actions">
156
+ <zn-button href="#">Action</zn-button>
157
+ </div>
158
+ </zn-tile>
159
+
160
+ <zn-tile original caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
161
+ <zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
162
+ <div slot="actions">
163
+ <zn-button href="#">Action</zn-button>
164
+ </div>
165
+ </zn-tile>
166
+
167
+ <div slot="filter" attribute="private" default="true">Toggle Private Messages</div>
168
+ <div slot="filter" attribute="original" default="true">Toggle Original Messages</div>
169
+
170
+ </zn-settings-container>
171
+ </div>
172
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubex/zinc",
3
- "version": "1.1.29",
3
+ "version": "1.1.32",
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",
@@ -3,7 +3,6 @@ import {deepQuerySelectorAll} from "../../utilities/query";
3
3
  import {FormControlController} from '../../internal/form';
4
4
  import {on} from "../../utilities/on";
5
5
  import {property, query} from 'lit/decorators.js';
6
- import {trim} from "lodash";
7
6
  import Attachment from "./modules/attachment/attachment";
8
7
  import ContextMenu from "./modules/context-menu/context-menu";
9
8
  import DatePicker from "./modules/date-picker/date-picker";
@@ -456,7 +455,7 @@ export default class ZnEditor extends ZincElement implements ZincFormControl {
456
455
  }
457
456
  if (!content || content === '') return;
458
457
 
459
- this._content = trim(content);
458
+ this._content = content.trim();
460
459
 
461
460
  if (editorMode === 'replace') {
462
461
  this._replaceTextAtSelection();
@@ -127,7 +127,8 @@
127
127
  &__right {
128
128
  flex-grow: 1;
129
129
  flex-shrink: 1;
130
- overflow: hidden;
130
+ overflow-x: clip;
131
+ overflow-y: visible;
131
132
  min-width: 20px;
132
133
  }
133
134
 
@@ -225,6 +226,7 @@
225
226
  slot[name="actions"] {
226
227
  justify-content: end;
227
228
  flex-wrap: nowrap;
229
+ height: var(--zn-icon-size, 20px);
228
230
  }
229
231
 
230
232
  slot[name="actions"]::slotted(zn-button-menu) {