@appscode/design-system 2.17.73 → 2.17.75

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.17.73",
3
+ "version": "2.17.75",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -20,18 +20,26 @@ const model = defineModel({ type: Boolean });
20
20
 
21
21
  <template>
22
22
  <div class="ac-switch is-flex is-align-items-center gap-8" :class="modifierClasses">
23
- <label :for="id">{{ label }}</label>
24
- <label class="switch">
25
- <input
26
- v-model="model"
27
- :id="id"
28
- type="checkbox"
29
- :name="name"
30
- class="switch is-rounded is-primary"
31
- :data-testid="dataTestId"
32
- />
33
- <span class="slider round"></span>
34
- </label>
23
+ <div class="is-flex is-align-items-center gap-8">
24
+ <slot name="left" />
25
+ <label :for="id">{{ label }}</label>
26
+ <slot name="middle" />
27
+ </div>
28
+
29
+ <div class="is-flex is-align-items-center gap-8">
30
+ <label class="switch">
31
+ <input
32
+ v-model="model"
33
+ :id="id"
34
+ type="checkbox"
35
+ :name="name"
36
+ class="switch is-rounded is-primary"
37
+ :data-testid="dataTestId"
38
+ />
39
+ <span class="slider round"></span>
40
+ </label>
41
+ <slot name="right" />
42
+ </div>
35
43
 
36
44
  <p v-show="errorMsg" class="is-danger is-italic">
37
45
  {{ errorMsg }}
@@ -9,6 +9,7 @@ export interface Props {
9
9
  activeOrganization?: string;
10
10
  rootDomain?: string;
11
11
  activeOrgType?: number;
12
+ isOfflineInstaller?: boolean;
12
13
  }
13
14
 
14
15
  const props = withDefaults(defineProps<Props>(), {
@@ -17,6 +18,7 @@ const props = withDefaults(defineProps<Props>(), {
17
18
  activeOrganization: "",
18
19
  rootDomain: "",
19
20
  activeOrgType: 0,
21
+ isOfflineInstaller: false,
20
22
  });
21
23
 
22
24
  const appList = [
@@ -116,8 +118,12 @@ const filteredAppList = appListWithUrl.filter((element) => {
116
118
  if (element.name === props.currentApp) return false;
117
119
 
118
120
  // remove billing selfhost & learn from selfhost mode
121
+ // but always keep billing when this is an offline installer
119
122
  const selfHostList = ["billing", "selfhost", "learn"];
120
- if (isSelfHosted.value && selfHostList.includes(element.name)) return false;
123
+ if (isSelfHosted.value && selfHostList.includes(element.name)) {
124
+ if (element.name === "billing" && props.isOfflineInstaller) return true;
125
+ return false;
126
+ }
121
127
 
122
128
  return true;
123
129
  });