@appscode/design-system 2.4.8 → 2.4.10

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.4.8",
3
+ "version": "2.4.10",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -26,7 +26,7 @@ withDefaults(defineProps<Props>(), {
26
26
  .overview-cards-wrapper {
27
27
  border: 1px solid $color-border;
28
28
  margin-right: 20px;
29
- height: calc(100% - 16px);
29
+ height: 100%;
30
30
  }
31
31
  .overview-cards {
32
32
  display: grid;
@@ -8,6 +8,7 @@ interface Props {
8
8
  placeholderText?: string;
9
9
  disabled?: boolean;
10
10
  label?: string;
11
+ taggable?: boolean;
11
12
  allowEmpty?: boolean;
12
13
  options?: unknown[];
13
14
  trackBy?: string;
@@ -17,12 +18,14 @@ interface Props {
17
18
  isLoaderActive?: boolean;
18
19
  noResultText?: string;
19
20
  showStar?: boolean;
21
+ tagPlaceholder?: string;
20
22
  wrapperDivCustomClass?: string;
21
23
  multiselectCustomClass?: string;
22
24
  openDirection?: "top" | "bottom";
23
25
  groupLabel?: string;
24
26
  groupValues?: string;
25
27
  groupSelect?: boolean;
28
+ onTagAdd?: Function;
26
29
  }
27
30
 
28
31
  const props = withDefaults(defineProps<Props>(), {
@@ -45,6 +48,9 @@ const props = withDefaults(defineProps<Props>(), {
45
48
  groupLabel: "",
46
49
  groupValues: "",
47
50
  groupSelect: false,
51
+ taggable: false,
52
+ tagPlaceholder: "",
53
+ onTagAdd: () => "",
48
54
  });
49
55
 
50
56
  const emit = defineEmits(["select", "remove", "refresh-btn-click"]);
@@ -141,16 +147,19 @@ const onSelect = (selectedOption: unknown, id: string) => emit("select", selecte
141
147
  :disabled="disabled || isLoaderActive"
142
148
  :allow-empty="false"
143
149
  :show-labels="false"
150
+ :taggable="taggable"
144
151
  :close-on-select="true"
145
152
  :open-direction="openDirection"
146
153
  :group-values="groupValues"
147
154
  :group-label="groupLabel"
148
155
  :group-select="groupSelect"
156
+ :tag-placeholder="tagPlaceholder"
149
157
  data-testid="simple-select-box"
150
158
  @open="openDropDown"
151
159
  @close="closeDropDown"
152
160
  @select="onSelect"
153
161
  @remove="onRemove"
162
+ @tag="onTagAdd"
154
163
  >
155
164
  <template #noResult>
156
165
  <span> {{ noResultText }} </span>