@appscode/design-system 2.7.16 → 2.17.18-alpha

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": "@appscode/design-system",
3
- "version": "2.7.16",
3
+ "version": "2.17.18-alpha",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -61,7 +61,10 @@ const theme = computed(() => {
61
61
  });
62
62
 
63
63
  const onChange = (e: Event) => {
64
- if (typeof e === "string") editorContent.value = e;
64
+ if (typeof e === "string") {
65
+ editorContent.value = e;
66
+ emit("update:modelValue", editorContent.value);
67
+ }
65
68
  };
66
69
 
67
70
  const onEditorMount = (editor: Record<string, unknown>) => {
@@ -32,7 +32,14 @@ const RefreshIcon = defineAsyncComponent(() => import("./../icons/RefreshIcon.vu
32
32
  <SearchIcon v-else />
33
33
  </span>
34
34
  </label>
35
- <input id="search" type="text" :placeholder="placeholder" class="pl-40" v-model="searchText" />
35
+ <input
36
+ id="search"
37
+ type="text"
38
+ :placeholder="placeholder"
39
+ data-testid="searchbar-button"
40
+ class="pl-40"
41
+ v-model="searchText"
42
+ />
36
43
 
37
44
  <!-- use .is-absolute -->
38
45
  <div v-if="withResult" class="search-result-box panel is-fullwidth z-900">
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 20 20">
3
+ <!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
4
+ <path
5
+ fill="currentColor"
6
+ fill-rule="evenodd"
7
+ d="M7.793 2.232a.75.75 0 0 1-.025 1.06L3.622 7.25h10.003a5.375 5.375 0 0 1 0 10.75H10.75a.75.75 0 0 1 0-1.5h2.875a3.875 3.875 0 0 0 0-7.75H3.622l4.146 3.957a.75.75 0 0 1-1.036 1.085l-5.5-5.25a.75.75 0 0 1 0-1.085l5.5-5.25a.75.75 0 0 1 1.06.025"
8
+ clip-rule="evenodd"
9
+ />
10
+ </svg>
11
+ </template>
@@ -20,7 +20,12 @@ withDefaults(defineProps<Props>(), {
20
20
  <!-- navbar start -->
21
21
  <nav class="ac-navbar">
22
22
  <!-- navbar logo start -->
23
- <div class="ac-navbar-brand is-flex" v-if="fullWidth" :class="{ 'pl-0': container }">
23
+ <div
24
+ class="ac-navbar-brand is-flex"
25
+ data-testid="navbar-brand-logo"
26
+ v-if="fullWidth"
27
+ :class="{ 'pl-0': container }"
28
+ >
24
29
  <slot name="navbar-brand-logo" />
25
30
  <span v-if="productName" class="brand-tag">{{ productName }}</span>
26
31
  </div>
@@ -32,9 +32,9 @@ watch(selectedFilter, (n) => {
32
32
  const Searchbar = defineAsyncComponent(() => import("../form-fields/Searchbar.vue"));
33
33
  </script>
34
34
  <template>
35
- <div class="filterable-searchbar is-flex">
35
+ <div class="filterable-searchbar is-flex" data-testid="filterable-searchbar">
36
36
  <Searchbar :placeholder="props.placeholder" @handleSearch="handleSearch" />
37
- <select class="select search-filter" v-show="props.isFilter" v-model="selectedFilter">
37
+ <select class="select search-filter" data-testid="select-filter" v-show="props.isFilter" v-model="selectedFilter">
38
38
  <option v-for="option in filterOptions" :key="option.value" :value="option.value">
39
39
  {{ option.text }}
40
40
  </option>
@@ -4,7 +4,7 @@ import ArrowIcon from "../icons/ArrowIcon.vue";
4
4
  import AcButton from "../button/Button.vue";
5
5
  import HeaderItem from "../header/HeaderItem.vue";
6
6
  import HeaderItems from "../header/HeaderItems.vue";
7
- import HeroiconsArrowUturnLeft20Solid from "~icons/heroicons/arrow-uturn-left-20-solid.svg";
7
+ import ArrowUturnLeft from "../icons/ArrowUturnLeft.vue";
8
8
 
9
9
  interface Props {
10
10
  title?: string;
@@ -42,7 +42,7 @@ function handleBack() {
42
42
  >
43
43
  <header-items>
44
44
  <button v-if="hasBackButton" title="Back" class="ac-back-button" @click="handleBack">
45
- <HeroiconsArrowUturnLeft20Solid />
45
+ <ArrowUturnLeft />
46
46
  </button>
47
47
  <header-item>
48
48
  <div v-if="custom">
@@ -56,7 +56,11 @@ function handleBack() {
56
56
  <!-- Add buttons here -->
57
57
  <div class="buttons is-right">
58
58
  <slot name="header-buttons" />
59
- <AcButton modifier-classes="is-white" v-if="isExpandable" @click="isOpen = !isOpen">
59
+ <AcButton
60
+ modifier-classes="width-32 height-32 is-rounded-50 b-1 p-0"
61
+ v-if="isExpandable"
62
+ @click="isOpen = !isOpen"
63
+ >
60
64
  <ArrowIcon :direction="isOpen ? 'down' : 'up'" />
61
65
  </AcButton>
62
66
  </div>
@@ -13,7 +13,7 @@ withDefaults(defineProps<Props>(), {
13
13
  </script>
14
14
 
15
15
  <template>
16
- <div class="sidebar-item is-clickable" :class="{ 'is-active': isActive }">
16
+ <div class="sidebar-item is-clickable" data-testid="sidebar-items" :class="{ 'is-active': isActive }">
17
17
  <span class="icon">
18
18
  <slot name="item-icon" />
19
19
  </span>
@@ -3,7 +3,7 @@
3
3
  <template>
4
4
  <div class="sidebar-style-2 ac-vscrollbar p-0">
5
5
  <div class="left-sidebar">
6
- <div class="sidebar-items">
6
+ <div class="sidebar-items" data-testid="sidebar-list">
7
7
  <slot name="items-with-drop-down" />
8
8
  </div>
9
9
  </div>