@appscode/design-system 1.1.0-beta.40 → 1.1.0-beta.42

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.
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1 1L15.2222 15.2222M15.2222 1L1 15.2222" stroke="#54657E" stroke-width="1.5" stroke-linecap="round"/>
3
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.1.0-beta.40",
3
+ "version": "1.1.0-beta.42",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -28,14 +28,14 @@ const OptionDots = defineAsyncComponent(
28
28
  </script>
29
29
 
30
30
  <template>
31
- <div class="card-details" :class="modifierClasses">
31
+ <div class="card-details" :class="modifierClasses" data-testid="cluster-item-navigate">
32
32
  <div class="c-header">
33
33
  <div class="c-logo">
34
34
  <img :src="clusterData.providerIcon" alt="" />
35
35
  </div>
36
36
  <div class="c-content">
37
37
  <div class="is-flex is-justify-content-space-between">
38
- <h4>{{ clusterData.name }}</h4>
38
+ <h4 data-testid="cluster-title-text">{{ clusterData.name }}</h4>
39
39
  <option-dots v-if="showOptions" :position="'is-right'">
40
40
  <slot name="options" />
41
41
  </option-dots>
@@ -45,6 +45,7 @@ const OptionDots = defineAsyncComponent(
45
45
  v-for="(tag, idx) in clusterData.tags"
46
46
  :key="idx + tag.value"
47
47
  :class="tag.class"
48
+ :data-testid="idx===0 ? 'cluster-status-text' : undefined"
48
49
  >{{ tag.value }}</span
49
50
  >
50
51
  </div>
@@ -31,19 +31,14 @@ const Buttons = defineAsyncComponent(() => import("./../button/Buttons.vue"));
31
31
  const AcButton = defineAsyncComponent(() => import("./../button/Button.vue"));
32
32
 
33
33
  //TODO: need to update not a currect way to import the file
34
- const modalCloseIcon = import.meta.glob(
35
- "/src/assets/icons/modal/close-icon.svg",
36
- { eager: true }
37
- );
34
+ const modalCloseIcon = import.meta.glob("../../../icons/close-icon.svg", {
35
+ eager: true,
36
+ });
38
37
 
39
38
  const showModal = ref(false);
40
39
  const crossIcon = ref(
41
- (
42
- modalCloseIcon["/src/assets/icons/modal/close-icon.svg"] as Record<
43
- string,
44
- unknown
45
- >
46
- ).default as string
40
+ (modalCloseIcon["../../../icons/close-icon.svg"] as Record<string, unknown>)
41
+ ?.default as string
47
42
  );
48
43
 
49
44
  const onKeyDown = (e: KeyboardEvent) => {