@designcrowd/fe-shared-lib 1.0.2-ast-dropdown-icons → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.0.2-ast-dropdown-icons",
3
+ "version": "1.0.2",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -15,15 +15,10 @@ export const Sample = () => {
15
15
  DropdownItem,
16
16
  Pill,
17
17
  },
18
- data() {
19
- return {
20
- show: true,
21
- }
22
- },
23
18
  template: `
24
19
  <div class="tw-font-sans tw-w-1/4">
25
- <Dropdown menu-align="right" v-model:show="show" @update:show="(visible) => show = visible">
26
- <DropdownItem @click="() => show = false">
20
+ <Dropdown menu-align="right">
21
+ <DropdownItem>
27
22
  <span class="tw-grow">Menu item 1</span>
28
23
  <Pill class="tw-text-white" :style="{ background: 'blue' }">Blue</Pill>
29
24
  </DropdownItem>
@@ -36,7 +36,6 @@
36
36
  </div>
37
37
  </template>
38
38
  <script>
39
- import { watch } from 'vue';
40
39
  import Icon from '../Icon/Icon.vue';
41
40
 
42
41
  export default {
@@ -68,11 +67,6 @@ export default {
68
67
  required: false,
69
68
  default: false,
70
69
  },
71
- show: {
72
- type: Boolean,
73
- required: false,
74
- default: false,
75
- }
76
70
  },
77
71
  data: () => ({
78
72
  isMenuVisible: false,
@@ -82,26 +76,15 @@ export default {
82
76
  return (this.$slots.default || []).filter((s) => s.tag);
83
77
  },
84
78
  },
85
- watch: {
86
- show() {
87
- this.isMenuVisible = this.show;
88
- }
89
- },
90
- mounted() {
91
- this.isMenuVisible = this.show;
92
- },
93
79
  methods: {
94
80
  onToggleMenu() {
95
81
  this.isMenuVisible = !this.isMenuVisible;
96
- this.$emit('update:show', this.isMenuVisible);
97
82
  },
98
83
  hideMenu() {
99
84
  this.isMenuVisible = false;
100
- this.$emit('update:show', false);
101
85
  },
102
86
  showMenu() {
103
87
  this.isMenuVisible = true;
104
- this.$emit('update:show', true);
105
88
  },
106
89
  },
107
90
  };
@@ -50,7 +50,6 @@ export const IconSample = () => {
50
50
  { name: 'business-card-filled' },
51
51
  { name: 'business-card-filled' },
52
52
  { name: 'card' },
53
- { name: 'cart-empty' },
54
53
  { name: 'calendar' },
55
54
  { name: 'check' },
56
55
  { name: 'check-thin' },
@@ -85,7 +85,6 @@ import IconCalloutInfo from './icons/callout-info.vue';
85
85
  import IconCalloutSuccess from './icons/callout-success.vue';
86
86
  import IconCalloutWarning from './icons/callout-warning.vue';
87
87
  import IconCard from './icons/card.vue';
88
- import IconCartEmpty from './icons/cart-empty.vue';
89
88
  import IconCheck from './icons/check.vue';
90
89
  import IconCheckThin from './icons/check-thin.vue';
91
90
  import IconChevronDown from './icons/chevron-down.vue';
@@ -431,7 +430,6 @@ export default {
431
430
  IconCalloutSuccess,
432
431
  IconCalloutWarning,
433
432
  IconCard,
434
- IconCartEmpty,
435
433
  IconCheck,
436
434
  IconCheckThin,
437
435
  IconChevronDown,
@@ -1,9 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 48 48">
3
- <path
4
- fill-rule="evenodd"
5
- clip-rule="evenodd"
6
- d="M28.2 4.5C28.2 3.67157 27.5284 3 26.7 3C25.8716 3 25.2 3.67157 25.2 4.5V10.5C25.2 11.3284 25.8716 12 26.7 12C27.5284 12 28.2 11.3284 28.2 10.5V4.5ZM33.1393 10.5C32.5535 11.0858 32.5535 12.0355 33.1393 12.6213C33.7251 13.2071 34.6749 13.2071 35.2606 12.6213L39.5033 8.37866C40.0891 7.79287 40.0891 6.84312 39.5033 6.25734C38.9175 5.67155 37.9677 5.67155 37.382 6.25734L33.1393 10.5ZM14.0786 6.25738C14.6644 5.67159 15.6141 5.67159 16.1999 6.25738L20.4426 10.5C21.0283 11.0858 21.0283 12.0356 20.4426 12.6213C19.8568 13.2071 18.907 13.2071 18.3212 12.6213L14.0786 8.3787C13.4928 7.79291 13.4928 6.84316 14.0786 6.25738ZM40.1211 17.8301C39.8172 17.4434 39.4264 17.25 38.9488 17.25H12.378L11.857 14.3496C11.7701 14.1348 11.6616 13.9414 11.5313 13.7695C11.4011 13.5547 11.2274 13.4043 11.0103 13.3184C10.7933 13.1895 10.5545 13.125 10.294 13.125H3.7815C3.2605 13.125 3 13.3828 3 13.8984V15.4453C3 15.9609 3.2605 16.2188 3.7815 16.2188H8.99147L13.5502 39.1641C12.7687 39.9375 12.378 40.8828 12.378 42C12.378 43.1602 12.7687 44.127 13.5502 44.9004C14.3751 45.7168 15.3737 46.125 16.5459 46.125C17.7182 46.125 18.6951 45.7168 19.4766 44.9004C20.3015 44.127 20.7139 43.1602 20.7139 42C20.7139 41.2695 20.5186 40.582 20.1278 39.9375H29.636C29.2453 40.582 29.0499 41.2695 29.0499 42C29.0499 43.1602 29.4406 44.127 30.2221 44.9004C31.047 45.7168 32.0456 46.125 33.2179 46.125C34.3901 46.125 35.367 45.7168 36.1485 44.9004C36.9734 44.127 37.3859 43.1602 37.3859 42C37.3859 40.8398 36.9517 39.8516 36.0834 39.0352L36.1485 38.7129C36.2787 38.2402 36.1702 37.8105 35.8229 37.4238C35.5189 37.0371 35.1282 36.8438 34.6506 36.8438H16.2854L15.6342 33.75H36.0182C36.3656 33.75 36.6695 33.6426 36.93 33.4277C37.2339 33.1699 37.4293 32.8691 37.5161 32.5254L40.4467 19.1191C40.577 18.6465 40.4684 18.2168 40.1211 17.8301ZM16.5459 43.5469C16.1118 43.5469 15.7427 43.3965 15.4388 43.0957C15.1349 42.7949 14.9829 42.4297 14.9829 42C14.9829 41.5703 15.1349 41.2051 15.4388 40.9043C15.7427 40.6035 16.1118 40.4531 16.5459 40.4531C16.9801 40.4531 17.3491 40.6035 17.6531 40.9043C17.957 41.2051 18.1089 41.5703 18.1089 42C18.1089 42.4297 17.957 42.7949 17.6531 43.0957C17.3491 43.3965 16.9801 43.5469 16.5459 43.5469ZM33.2179 43.5469C32.7837 43.5469 32.4147 43.3965 32.1108 43.0957C31.8068 42.7949 31.6549 42.4297 31.6549 42C31.6549 41.5703 31.8068 41.2051 32.1108 40.9043C32.4147 40.6035 32.7837 40.4531 33.2179 40.4531C33.652 40.4531 34.0211 40.6035 34.325 40.9043C34.6289 41.2051 34.7809 41.5703 34.7809 42C34.7809 42.4297 34.6289 42.7949 34.325 43.0957C34.0211 43.3965 33.652 43.5469 33.2179 43.5469ZM36.9951 20.3438L34.7157 30.6562H15.0481L13.0292 20.3438H36.9951Z"
7
- />
8
- </svg>
9
- </template>