@energysage/es-ds-components 5.1.0 → 5.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 (98) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/app/components/es-logo.vue +50 -0
  3. package/app/components/es-mobile-nav-content.vue +308 -0
  4. package/app/components/es-mobile-nav-custom-item.vue +9 -0
  5. package/app/components/es-mobile-nav-link.vue +62 -0
  6. package/app/components/es-mobile-nav-trigger.vue +29 -0
  7. package/app/components/es-mobile-nav.vue +219 -0
  8. package/app/components/es-mobile-sub-nav.vue +243 -0
  9. package/app/components/es-nav-cta-card.vue +113 -0
  10. package/app/components/es-sticky-bar.vue +3 -1
  11. package/app/components/icon/arrow-clockwise.vue +13 -48
  12. package/app/components/icon/arrow-counter-clockwise.vue +13 -34
  13. package/app/components/icon/arrow-cycle.vue +13 -40
  14. package/app/components/icon/arrow-down.vue +16 -0
  15. package/app/components/icon/arrow-left.vue +13 -36
  16. package/app/components/icon/arrow-right.vue +13 -36
  17. package/app/components/icon/arrow-up.vue +13 -36
  18. package/app/components/icon/battery-charging-vertical.vue +16 -0
  19. package/app/components/icon/bell.vue +13 -39
  20. package/app/components/icon/block.vue +13 -43
  21. package/app/components/icon/bolt.vue +12 -34
  22. package/app/components/icon/calculator.vue +13 -34
  23. package/app/components/icon/calendar.vue +13 -43
  24. package/app/components/icon/cart.vue +13 -43
  25. package/app/components/icon/charging-station.vue +16 -0
  26. package/app/components/icon/chat-bubble.vue +13 -37
  27. package/app/components/icon/chat-dots.vue +13 -39
  28. package/app/components/icon/check.vue +13 -36
  29. package/app/components/icon/chevron-down.vue +13 -36
  30. package/app/components/icon/chevron-horizontal.vue +13 -36
  31. package/app/components/icon/chevron-left.vue +13 -36
  32. package/app/components/icon/chevron-right.vue +13 -36
  33. package/app/components/icon/chevron-up.vue +13 -36
  34. package/app/components/icon/circle-alert.vue +13 -43
  35. package/app/components/icon/circle-check.vue +13 -43
  36. package/app/components/icon/circle-chevron-down.vue +12 -43
  37. package/app/components/icon/circle-chevron-left.vue +13 -43
  38. package/app/components/icon/circle-chevron-right.vue +13 -43
  39. package/app/components/icon/circle-chevron-up.vue +13 -43
  40. package/app/components/icon/circle-minus.vue +13 -43
  41. package/app/components/icon/circle-plus.vue +13 -43
  42. package/app/components/icon/circle-x.vue +13 -43
  43. package/app/components/icon/circle.vue +13 -39
  44. package/app/components/icon/clock.vue +13 -43
  45. package/app/components/icon/copy.vue +13 -42
  46. package/app/components/icon/envelope.vue +13 -42
  47. package/app/components/icon/eye.vue +13 -38
  48. package/app/components/icon/flag.vue +13 -34
  49. package/app/components/icon/folder.vue +13 -38
  50. package/app/components/icon/gear.vue +12 -33
  51. package/app/components/icon/hamburger.vue +13 -35
  52. package/app/components/icon/heart.vue +13 -36
  53. package/app/components/icon/house-line.vue +16 -0
  54. package/app/components/icon/image.vue +13 -42
  55. package/app/components/icon/info.vue +13 -42
  56. package/app/components/icon/light-bulb.vue +13 -33
  57. package/app/components/icon/link-out.vue +13 -35
  58. package/app/components/icon/location.vue +13 -42
  59. package/app/components/icon/lock-off.vue +13 -42
  60. package/app/components/icon/lock-on.vue +13 -45
  61. package/app/components/icon/minus.vue +13 -35
  62. package/app/components/icon/money-bag.vue +12 -33
  63. package/app/components/icon/open-envelope.vue +13 -42
  64. package/app/components/icon/paper.vue +13 -42
  65. package/app/components/icon/pencil.vue +13 -42
  66. package/app/components/icon/person-add.vue +13 -38
  67. package/app/components/icon/person-check.vue +13 -38
  68. package/app/components/icon/person-cross.vue +13 -38
  69. package/app/components/icon/person.vue +13 -38
  70. package/app/components/icon/phone.vue +13 -38
  71. package/app/components/icon/play.vue +13 -38
  72. package/app/components/icon/plus.vue +13 -35
  73. package/app/components/icon/roof.vue +12 -33
  74. package/app/components/icon/search.vue +12 -39
  75. package/app/components/icon/settings-horizontal.vue +13 -54
  76. package/app/components/icon/settings-vertical.vue +13 -54
  77. package/app/components/icon/shield-with-check.vue +12 -34
  78. package/app/components/icon/shield.vue +13 -38
  79. package/app/components/icon/shopping-bag.vue +13 -36
  80. package/app/components/icon/solar.vue +12 -33
  81. package/app/components/icon/sound-down.vue +13 -42
  82. package/app/components/icon/sound-off.vue +13 -38
  83. package/app/components/icon/sound-on.vue +13 -38
  84. package/app/components/icon/sound-up.vue +13 -38
  85. package/app/components/icon/star-empty.vue +13 -35
  86. package/app/components/icon/star-full.vue +15 -33
  87. package/app/components/icon/star-half.vue +15 -52
  88. package/app/components/icon/thumbs-up.vue +13 -36
  89. package/app/components/icon/trash-can.vue +13 -38
  90. package/app/components/icon/tree.vue +12 -33
  91. package/app/components/icon/upload.vue +12 -37
  92. package/app/components/icon/verified.vue +13 -37
  93. package/app/components/icon/wifi.vue +13 -35
  94. package/app/components/icon/x.vue +13 -35
  95. package/app/composables/breakpoints.ts +75 -0
  96. package/nuxt.config.ts +1 -1
  97. package/package.json +3 -2
  98. package/app/components/icon/arrow.vue +0 -68
@@ -1,46 +1,16 @@
1
- <!-- eslint-disable max-len -->
2
- <script lang="ts">
3
- export default {
4
- name: 'IconCircleChevronRight',
5
- props: {
6
- /**
7
- * Width
8
- */
9
- width: {
10
- type: String,
11
- default: '24px',
12
- required: false,
13
- },
14
- /**
15
- * Height
16
- */
17
- height: {
18
- type: String,
19
- default: '24px',
20
- required: false,
21
- },
22
- },
23
- };
1
+ <script setup lang="ts">
2
+ import { PhCaretCircleRight } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
24
12
  </script>
13
+
25
14
  <template>
26
- <svg
27
- :style="{
28
- height: height,
29
- width: width,
30
- }"
31
- xmlns="http://www.w3.org/2000/svg"
32
- viewBox="0 0 24 24"
33
- fill="currentColor">
34
- <path
35
- d="M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11Z"
36
- fill="none" />
37
- <path
38
- fill-rule="evenodd"
39
- clip-rule="evenodd"
40
- d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z" />
41
- <path
42
- fill-rule="evenodd"
43
- clip-rule="evenodd"
44
- d="M9.793 7.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414L13.086 12 9.793 8.707a1 1 0 0 1 0-1.414Z" />
45
- </svg>
15
+ <ph-caret-circle-right :size="width" />
46
16
  </template>
@@ -1,46 +1,16 @@
1
- <!-- eslint-disable max-len -->
2
- <script lang="ts">
3
- export default {
4
- name: 'IconCircleChevronUp',
5
- props: {
6
- /**
7
- * Width
8
- */
9
- width: {
10
- type: String,
11
- default: '24px',
12
- required: false,
13
- },
14
- /**
15
- * Height
16
- */
17
- height: {
18
- type: String,
19
- default: '24px',
20
- required: false,
21
- },
22
- },
23
- };
1
+ <script setup lang="ts">
2
+ import { PhCaretCircleUp } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
24
12
  </script>
13
+
25
14
  <template>
26
- <svg
27
- :style="{
28
- height: height,
29
- width: width,
30
- }"
31
- xmlns="http://www.w3.org/2000/svg"
32
- viewBox="0 0 24 24"
33
- fill="currentColor">
34
- <path
35
- d="M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11Z"
36
- fill="none" />
37
- <path
38
- fill-rule="evenodd"
39
- clip-rule="evenodd"
40
- d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z" />
41
- <path
42
- fill-rule="evenodd"
43
- clip-rule="evenodd"
44
- d="M11.293 8.793a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L12 10.914l-3.293 3.293a1 1 0 0 1-1.414-1.414l4-4Z" />
45
- </svg>
15
+ <ph-caret-circle-up :size="width" />
46
16
  </template>
@@ -1,46 +1,16 @@
1
- <!-- eslint-disable max-len -->
2
- <script lang="ts">
3
- export default {
4
- name: 'IconCircleMinus',
5
- props: {
6
- /**
7
- * Width
8
- */
9
- width: {
10
- type: String,
11
- default: '24px',
12
- required: false,
13
- },
14
- /**
15
- * Height
16
- */
17
- height: {
18
- type: String,
19
- default: '24px',
20
- required: false,
21
- },
22
- },
23
- };
1
+ <script setup lang="ts">
2
+ import { PhMinusCircle } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
24
12
  </script>
13
+
25
14
  <template>
26
- <svg
27
- :style="{
28
- height: height,
29
- width: width,
30
- }"
31
- xmlns="http://www.w3.org/2000/svg"
32
- viewBox="0 0 24 24"
33
- fill="currentColor">
34
- <path
35
- d="M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11Z"
36
- fill="none" />
37
- <path
38
- fill-rule="evenodd"
39
- clip-rule="evenodd"
40
- d="M7 12a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Z" />
41
- <path
42
- fill-rule="evenodd"
43
- clip-rule="evenodd"
44
- d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z" />
45
- </svg>
15
+ <ph-minus-circle :size="width" />
46
16
  </template>
@@ -1,46 +1,16 @@
1
- <!-- eslint-disable max-len -->
2
- <script lang="ts">
3
- export default {
4
- name: 'IconCirclePlus',
5
- props: {
6
- /**
7
- * Width
8
- */
9
- width: {
10
- type: String,
11
- default: '24px',
12
- required: false,
13
- },
14
- /**
15
- * Height
16
- */
17
- height: {
18
- type: String,
19
- default: '24px',
20
- required: false,
21
- },
22
- },
23
- };
1
+ <script setup lang="ts">
2
+ import { PhPlusCircle } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
24
12
  </script>
13
+
25
14
  <template>
26
- <svg
27
- :style="{
28
- height: height,
29
- width: width,
30
- }"
31
- xmlns="http://www.w3.org/2000/svg"
32
- viewBox="0 0 24 24"
33
- fill="currentColor">
34
- <path
35
- d="M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11Z"
36
- fill="none" />
37
- <path
38
- fill-rule="evenodd"
39
- clip-rule="evenodd"
40
- d="M12 7a1 1 0 0 1 1 1v3h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H8a1 1 0 1 1 0-2h3V8a1 1 0 0 1 1-1Z" />
41
- <path
42
- fill-rule="evenodd"
43
- clip-rule="evenodd"
44
- d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z" />
45
- </svg>
15
+ <ph-plus-circle :size="width" />
46
16
  </template>
@@ -1,46 +1,16 @@
1
- <!-- eslint-disable max-len -->
2
- <script lang="ts">
3
- export default {
4
- name: 'IconCircleX',
5
- props: {
6
- /**
7
- * Width
8
- */
9
- width: {
10
- type: String,
11
- default: '24px',
12
- required: false,
13
- },
14
- /**
15
- * Height
16
- */
17
- height: {
18
- type: String,
19
- default: '24px',
20
- required: false,
21
- },
22
- },
23
- };
1
+ <script setup lang="ts">
2
+ import { PhXCircle } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
24
12
  </script>
13
+
25
14
  <template>
26
- <svg
27
- :style="{
28
- height: height,
29
- width: width,
30
- }"
31
- xmlns="http://www.w3.org/2000/svg"
32
- viewBox="0 0 24 24"
33
- fill="currentColor">
34
- <path
35
- d="M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11Z"
36
- fill="none" />
37
- <path
38
- fill-rule="evenodd"
39
- clip-rule="evenodd"
40
- d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" />
41
- <path
42
- fill-rule="evenodd"
43
- clip-rule="evenodd"
44
- d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z" />
45
- </svg>
15
+ <ph-x-circle :size="width" />
46
16
  </template>
@@ -1,42 +1,16 @@
1
- <!-- eslint-disable max-len -->
2
- <script lang="ts">
3
- export default {
4
- name: 'IconCircle',
5
- props: {
6
- /**
7
- * Width
8
- */
9
- width: {
10
- type: String,
11
- default: '24px',
12
- required: false,
13
- },
14
- /**
15
- * Height
16
- */
17
- height: {
18
- type: String,
19
- default: '24px',
20
- required: false,
21
- },
22
- },
23
- };
1
+ <script setup lang="ts">
2
+ import { PhCircle } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
24
12
  </script>
13
+
25
14
  <template>
26
- <svg
27
- :style="{
28
- height: height,
29
- width: width,
30
- }"
31
- xmlns="http://www.w3.org/2000/svg"
32
- viewBox="0 0 24 24"
33
- fill="currentColor">
34
- <path
35
- d="M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11Z"
36
- fill="none" />
37
- <path
38
- fill-rule="evenodd"
39
- clip-rule="evenodd"
40
- d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z" />
41
- </svg>
15
+ <ph-circle :size="width" />
42
16
  </template>
@@ -1,46 +1,16 @@
1
- <!-- eslint-disable max-len -->
2
- <script lang="ts">
3
- export default {
4
- name: 'IconClock',
5
- props: {
6
- /**
7
- * Width
8
- */
9
- width: {
10
- type: String,
11
- default: '24px',
12
- required: false,
13
- },
14
- /**
15
- * Height
16
- */
17
- height: {
18
- type: String,
19
- default: '24px',
20
- required: false,
21
- },
22
- },
23
- };
1
+ <script setup lang="ts">
2
+ import { PhClock } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
24
12
  </script>
13
+
25
14
  <template>
26
- <svg
27
- :style="{
28
- height: height,
29
- width: width,
30
- }"
31
- xmlns="http://www.w3.org/2000/svg"
32
- viewBox="0 0 24 24"
33
- fill="currentColor">
34
- <path
35
- d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z"
36
- fill="none" />
37
- <path
38
- fill-rule="evenodd"
39
- clip-rule="evenodd"
40
- d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z" />
41
- <path
42
- fill-rule="evenodd"
43
- clip-rule="evenodd"
44
- d="M12 5a1 1 0 0 1 1 1v6.172a1 1 0 0 0 .293.707l2.414 2.414a1 1 0 0 1-1.414 1.414l-2.414-2.414a3 3 0 0 1-.879-2.12V6a1 1 0 0 1 1-1Z" />
45
- </svg>
15
+ <ph-clock :size="width" />
46
16
  </template>
@@ -1,45 +1,16 @@
1
- <script lang="ts">
2
- export default {
3
- name: 'IconCopy',
4
- props: {
5
- /**
6
- * Width
7
- */
8
- width: {
9
- type: String,
10
- default: '24px',
11
- required: false,
12
- },
13
- /**
14
- * Height
15
- */
16
- height: {
17
- type: String,
18
- default: '24px',
19
- required: false,
20
- },
21
- },
22
- };
1
+ <script setup lang="ts">
2
+ import { PhCopySimple } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
23
12
  </script>
13
+
24
14
  <template>
25
- <svg
26
- :style="{
27
- height: height,
28
- width: width,
29
- }"
30
- xmlns="http://www.w3.org/2000/svg"
31
- viewBox="0 0 24 24"
32
- fill="currentColor">
33
- <path
34
- d="M7.879 1.879A3 3 0 0 1 10 1h4.685a3 3 0 0 1 2.097.855l3.315 3.242A3 3 0 0 1 21 7.242V16a3 3 0 0 1-3 3h-1v1a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h1V4a3 3 0 0 1 .879-2.121Z"
35
- fill="none" />
36
- <path
37
- fill-rule="evenodd"
38
- clip-rule="evenodd"
39
- d="M7.879 1.879A3 3 0 0 1 10 1h4.685a3 3 0 0 1 2.097.855l3.315 3.242A3 3 0 0 1 21 7.242V16a3 3 0 0 1-3 3h-8a3 3 0 0 1-3-3V4a3 3 0 0 1 .879-2.121ZM10 3a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7.242a1.001 1.001 0 0 0-.301-.715l-3.315-3.242A1 1 0 0 0 14.685 3H10Z" />
40
- <path
41
- fill-rule="evenodd"
42
- clip-rule="evenodd"
43
- d="M6 8a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-2a1 1 0 1 1 2 0v2a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h2a1 1 0 0 1 0 2H6Z" />
44
- </svg>
15
+ <ph-copy-simple :size="width" />
45
16
  </template>
@@ -1,45 +1,16 @@
1
- <script lang="ts">
2
- export default {
3
- name: 'IconEnvelope',
4
- props: {
5
- /**
6
- * Width
7
- */
8
- width: {
9
- type: String,
10
- default: '24px',
11
- required: false,
12
- },
13
- /**
14
- * Height
15
- */
16
- height: {
17
- type: String,
18
- default: '24px',
19
- required: false,
20
- },
21
- },
22
- };
1
+ <script setup lang="ts">
2
+ import { PhEnvelope } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
23
12
  </script>
13
+
24
14
  <template>
25
- <svg
26
- :style="{
27
- height: height,
28
- width: width,
29
- }"
30
- xmlns="http://www.w3.org/2000/svg"
31
- viewBox="0 0 24 24"
32
- fill="currentColor">
33
- <path
34
- d="M1.879 3.879A3 3 0 0 1 4 3h16a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121Z"
35
- fill="none" />
36
- <path
37
- fill-rule="evenodd"
38
- clip-rule="evenodd"
39
- d="M4 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4ZM1.879 3.879A3 3 0 0 1 4 3h16a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121Z" />
40
- <path
41
- fill-rule="evenodd"
42
- clip-rule="evenodd"
43
- d="m8.876 14.782-7.5-6.001 1.249-1.562 7.5 6.001a3 3 0 0 0 3.75 0l7.5-6 1.25 1.56-7.501 6.002a5 5 0 0 1-6.248 0Z" />
44
- </svg>
15
+ <ph-envelope :size="width" />
45
16
  </template>
@@ -1,41 +1,16 @@
1
- <script lang="ts">
2
- export default {
3
- name: 'IconEye',
4
- props: {
5
- /**
6
- * Width
7
- */
8
- width: {
9
- type: String,
10
- default: '24px',
11
- required: false,
12
- },
13
- /**
14
- * Height
15
- */
16
- height: {
17
- type: String,
18
- default: '24px',
19
- required: false,
20
- },
21
- },
22
- };
1
+ <script setup lang="ts">
2
+ import { PhEye } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
23
12
  </script>
13
+
24
14
  <template>
25
- <svg
26
- :style="{
27
- height: height,
28
- width: width,
29
- }"
30
- xmlns="http://www.w3.org/2000/svg"
31
- viewBox="0 0 24 24"
32
- fill="currentColor">
33
- <path
34
- d="M11.992 4c4.502 0 8.202 4 10.103 6.4.7 1 .7 2.3 0 3.2-1.9 2.4-5.601 6.4-10.102 6.4C7.49 20 3.79 16.1 1.99 13.6c-.4-.4-.6-1-.6-1.6 0-.6.2-1.2.6-1.7C3.79 8 7.491 4 11.992 4Z"
35
- fill="none" />
36
- <path
37
- d="M22.095 10.4C20.195 8 16.494 4 11.993 4 7.49 4 3.79 8 1.99 10.3c-.4.5-.6 1.1-.6 1.7 0 .6.2 1.2.6 1.6 1.8 2.5 5.501 6.4 10.002 6.4 4.502 0 8.202-4 10.103-6.4.7-.9.7-2.2 0-3.2Zm-1.6 2.1c-1.3 1.6-4.702 5.5-8.503 5.5-3.8 0-7.201-3.9-8.501-5.6-.1-.1-.1-.3-.1-.4 0-.1.1-.3.1-.4C4.79 9.9 8.19 6 11.993 6c3.8 0 7.201 3.9 8.501 5.6.2.3.2.6 0 .9Z" />
38
- <path
39
- d="M11.992 8c-2.2 0-4 1.8-4 4s1.8 4 4 4c2.201 0 4.001-1.8 4.001-4s-1.8-4-4-4Zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z" />
40
- </svg>
15
+ <ph-eye :size="width" />
41
16
  </template>
@@ -1,37 +1,16 @@
1
- <script lang="ts">
2
- export default {
3
- name: 'IconFlag',
4
- props: {
5
- /**
6
- * Width
7
- */
8
- width: {
9
- type: String,
10
- default: '24px',
11
- required: false,
12
- },
13
- /**
14
- * Height
15
- */
16
- height: {
17
- type: String,
18
- default: '24px',
19
- required: false,
20
- },
21
- },
22
- };
1
+ <script setup lang="ts">
2
+ import { PhFlag } from '@phosphor-icons/vue';
3
+
4
+ interface Props {
5
+ height?: string;
6
+ width?: string;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ height: '24px',
10
+ width: '24px',
11
+ });
23
12
  </script>
13
+
24
14
  <template>
25
- <svg
26
- :style="{
27
- height: height,
28
- width: width,
29
- }"
30
- xmlns="http://www.w3.org/2000/svg"
31
- viewBox="0 0 24 24"
32
- fill="currentColor">
33
- <path
34
- d="M15.6369 8.87295L18.7994 5.19737C19.0191 4.94421 19.0669 4.5879 18.9236 4.27848C18.7803 3.97843 18.4745 3.78153 18.1306 3.78153H5.91083V2.93765C5.91083 2.42194 5.48089 2 4.95541 2C4.42994 2 4 2.42194 4 2.93765V21.0624C4 21.5781 4.42994 22 4.95541 22C5.48089 22 5.91083 21.5781 5.91083 21.0624V13.9644H18.1306C18.4745 13.9644 18.7803 13.7675 18.9236 13.4674C19.0669 13.1674 19.0191 12.8111 18.7994 12.5485L15.6369 8.87295ZM5.91083 12.2391V5.49742H16.2484L13.8217 8.31974C13.5446 8.63854 13.5446 9.10736 13.8217 9.42616L16.2484 12.2485H5.91083V12.2391Z"
35
- fill-rule="evenodd" />
36
- </svg>
15
+ <ph-flag :size="width" />
37
16
  </template>