@everchron/ec-shards 7.2.7 → 7.3.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 (34) hide show
  1. package/dist/ec-shards.common.js +432 -331
  2. package/dist/ec-shards.common.js.map +1 -1
  3. package/dist/ec-shards.css +1 -1
  4. package/dist/ec-shards.umd.js +432 -331
  5. package/dist/ec-shards.umd.js.map +1 -1
  6. package/dist/ec-shards.umd.min.js +2 -2
  7. package/dist/ec-shards.umd.min.js.map +1 -1
  8. package/dist/img/card-report.aaf359b0.svg +19 -0
  9. package/dist/img/excerpt-report.10f43f94.svg +30 -0
  10. package/dist/img/pdf-table.ffd847b7.svg +9 -0
  11. package/package.json +3 -1
  12. package/src/assets/icons/basketball.svg +6 -0
  13. package/src/assets/icons/emoji.svg +6 -0
  14. package/src/assets/icons/flag.svg +4 -0
  15. package/src/assets/icons/food-drink.svg +7 -0
  16. package/src/assets/icons/hand.svg +5 -0
  17. package/src/assets/icons/leaf.svg +5 -0
  18. package/src/assets/icons/plane.svg +3 -0
  19. package/src/assets/icons/sparkle.svg +5 -0
  20. package/src/assets/images/file-icons/card-report.svg +19 -0
  21. package/src/assets/images/file-icons/excerpt-report.svg +30 -0
  22. package/src/assets/images/file-icons/pdf-table.svg +9 -0
  23. package/src/components/animations/animations.vue +38 -0
  24. package/src/components/emoji-picker/emoji-picker.vue +137 -0
  25. package/src/components/emoji-picker/emoji.vue +64 -0
  26. package/src/components/emoji-picker/list.vue +127 -0
  27. package/src/components/file-icon/file-icon.vue +15 -0
  28. package/src/components/input-search/input-search.vue +3 -7
  29. package/src/components/modal/modal.vue +5 -11
  30. package/src/components/tab-button/tab-button.vue +21 -3
  31. package/src/stories/Changelog.stories.mdx +14 -1
  32. package/src/stories/emoji-picker/emoji-picker.stories.js +25 -0
  33. package/src/stories/file-icon/file-icon.stories.js +5 -0
  34. package/src/stories/tabs/tab-button.stories.js +1 -0
@@ -89,6 +89,8 @@
89
89
 
90
90
  iconSize() {
91
91
  if(this.size === 'sml') {
92
+ return '20px'
93
+ } else if(this.size === 'md') {
92
94
  return '24px'
93
95
  } else {
94
96
  return '30px'
@@ -148,16 +150,10 @@
148
150
  .icon{
149
151
  position: absolute;
150
152
  top: 50%;
151
- left: 0;
153
+ left: 4px;
152
154
  transform: translateY(-50%);
153
155
  pointer-events: none;
154
156
  }
155
-
156
- &-lg{
157
- .icon{
158
- left: 4px;
159
- }
160
- }
161
157
  }
162
158
 
163
159
  .ecs-search-input{
@@ -17,7 +17,7 @@
17
17
  <!-- @slot Slot for the modal footer content. -->
18
18
  <slot name="footer"></slot>
19
19
  </div>
20
- <div v-if="$slots.dialog" class="ecs-modal-inner-dialog" :style="{ 'top': innerDialogOffset + 'px' }" :class="innerDialog ? 'open' : ''">
20
+ <div v-if="$slots.dialog" class="ecs-modal-inner-dialog" :class="innerDialog ? 'open' : ''">
21
21
  <!-- @slot Slot for dialogs that should render _within_ the modal. -->
22
22
  <slot name="dialog"></slot>
23
23
  <transition name="fade">
@@ -62,11 +62,6 @@
62
62
  innerDialog: {
63
63
  type: Boolean,
64
64
  default: false
65
- },
66
- /** Allows to adjust the top offset of the inner dialog area (e.g. for dynamic header heights). */
67
- innerDialogOffset: {
68
- type: Number,
69
- default: 48
70
65
  }
71
66
  },
72
67
 
@@ -191,9 +186,7 @@
191
186
 
192
187
  .ecs-modal-inner-dialog{
193
188
  position: absolute;
194
- left: 0;
195
- right: 0;
196
- bottom: 0;
189
+ inset: 0;
197
190
  z-index: 3;
198
191
  display: none;
199
192
  overflow: hidden;
@@ -201,10 +194,11 @@
201
194
  &:before{
202
195
  content: "";
203
196
  position: absolute;
204
- height: 3px;
197
+ height: $spacing-10;
205
198
  left: 0px;
206
199
  right: 0px;
207
- top: 0px;
200
+ top: -4px;
201
+ border-radius: 100%;
208
202
  z-index: 2;
209
203
  background: linear-gradient(180deg, rgba(32, 33, 39, 0.12) 0%, rgba(32, 33, 39, 0) 100%);
210
204
  transition: .3s;
@@ -3,10 +3,12 @@
3
3
  :class="[
4
4
  subtab ? `ecs-tab-button-child` : '',
5
5
  show ? `show` : '',
6
- badge ? `ecs-tab-button-badge` : '']"
6
+ badge ? `ecs-tab-button-badge` : '',
7
+ !$slots.default && icon ? `icon-only` : '', ]"
7
8
  :disabled="disabled"
8
9
  :aria-selected="show ? 'true' : 'false'"
9
10
  :aria-controls="ariaControls"
11
+ :aria-label="ariaLabel"
10
12
  role="tab"
11
13
  ref="tabButton"
12
14
  @click="handleClick">
@@ -68,6 +70,10 @@
68
70
  /** The ID of the tab panel that is controlled by this button. Always pass an ID to improve accessibility. */
69
71
  ariaControls: {
70
72
  type: String
73
+ },
74
+ /** The label of the tab button, in case the default slot contains no text, or no meaningful description of the tab content. Always pass a label to improve accessibility. */
75
+ ariaLabel: {
76
+ type: String
71
77
  }
72
78
  },
73
79
 
@@ -81,6 +87,10 @@
81
87
  if (!this.ariaControls || this.ariaControls.trim() === '') {
82
88
  console.warn('Warning: ariaControls must be provided on tab buttons, to improve accessibility.');
83
89
  }
90
+
91
+ if (!this.$slots.default && (!this.ariaLabel || this.ariaLabel.trim() === '')) {
92
+ console.warn('Warning: ariaLabel must be provided on tab buttons without text, to improve accessibility.');
93
+ }
84
94
  },
85
95
 
86
96
  beforeUnmount() {
@@ -240,8 +250,12 @@
240
250
  border-radius: $border-radius-x-small 2px 0 0;
241
251
  }
242
252
 
243
- &:last-child{
244
- margin-right: 0;
253
+ &.icon-only{
254
+ margin-right: $spacing-10;
255
+
256
+ .icon{
257
+ margin: 0 -4px;
258
+ }
245
259
  }
246
260
 
247
261
  .icon{
@@ -256,6 +270,10 @@
256
270
  .hover{
257
271
  inset: 6px 0;
258
272
  }
273
+
274
+ &:last-child{
275
+ margin-right: 0;
276
+ }
259
277
  }
260
278
  }
261
279
 
@@ -6,7 +6,20 @@ import { Meta } from '@storybook/addon-docs/blocks';
6
6
  Changelog
7
7
  </h1>
8
8
 
9
- ## Version 7.2.6 (6 June 2023)
9
+ ## Version 7.3.0 (14 June 2023)
10
+
11
+ ### Features
12
+
13
+ - Added 8 additional icons
14
+ - Added new EmojiPicker component
15
+
16
+ ## Version 7.2.8 (8 June 2023)
17
+
18
+ ### Features
19
+
20
+ - Added 3 additional icons to EcsFileIcon component
21
+
22
+ ## Version 7.2.7 (6 June 2023)
10
23
 
11
24
  ### Features
12
25
 
@@ -0,0 +1,25 @@
1
+ import EcsEmojiPicker from '@components/emoji-picker/emoji-picker';
2
+
3
+ export default {
4
+ title: 'Input/Emoji Picker',
5
+ component: EcsEmojiPicker
6
+ };
7
+
8
+ export const emojiPicker = () => ({
9
+ components: { EcsEmojiPicker },
10
+ data() {
11
+ return {
12
+ emojis: '',
13
+ };
14
+ },
15
+ methods: {
16
+ onEmojiSelected(emoji) {
17
+ this.emojis += emoji.char;
18
+ }
19
+ },
20
+ template: `
21
+ <div>
22
+ <span>Emojis: {{ emojis }}</span>
23
+ <ecs-emoji-picker @emoji="onEmojiSelected" bordered />
24
+ </div>`,
25
+ });
@@ -9,16 +9,21 @@ export const icon = () => ({
9
9
  components: { EcsFileIcon },
10
10
  template: `<main>
11
11
  <ecs-file-icon type="audio" />
12
+ <ecs-file-icon type="card-report" />
12
13
  <ecs-file-icon type="docx" />
13
14
  <ecs-file-icon type="email" />
15
+ <ecs-file-icon type="excerpt-report" />
14
16
  <ecs-file-icon type="exe" />
15
17
  <ecs-file-icon type="image" />
16
18
  <ecs-file-icon type="native" />
17
19
  <ecs-file-icon type="pdf" />
20
+ <ecs-file-icon type="pdf-table" />
18
21
  <ecs-file-icon type="ppt" />
19
22
  <ecs-file-icon type="rtf" />
20
23
  <ecs-file-icon type="transcript-mini" />
24
+ <ecs-file-icon type="transcript-mini-highlights" />
21
25
  <ecs-file-icon type="transcript" />
26
+ <ecs-file-icon type="transcript-highlights" />
22
27
  <ecs-file-icon type="video" />
23
28
  <ecs-file-icon type="xls" />
24
29
  <ecs-file-icon type="zip" />
@@ -20,6 +20,7 @@ export const standardRow = () => ({
20
20
  <ecs-tab-button show>Settings</ecs-tab-button>
21
21
  <ecs-tab-button badge>Calendar</ecs-tab-button>
22
22
  <ecs-tab-button>Versions</ecs-tab-button>
23
+ <ecs-tab-button icon="calendar"></ecs-tab-button>
23
24
  </ecs-tab-bar>`,
24
25
  });
25
26