Skip to content

Commit 886b2dc

Browse files
committed
chore: stop using kongponents
Signed-off-by: John Cowen <john.cowen@konghq.com>
1 parent 5193d43 commit 886b2dc

11 files changed

Lines changed: 15 additions & 4 deletions

File tree

packages/kuma-gui/src/app/application/components/app-collection/AppCollection.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
</template>
4444

4545
<script lang="ts" setup generic="Row extends {}">
46+
// @TODO: Why are we using kongponents?
4647
import { KTableView } from '@kong/kongponents'
4748
import { ref, onMounted } from 'vue'
4849

packages/kuma-gui/src/app/application/components/data-collection/DataCollection.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@
8888
</template>
8989
</template>
9090
<script lang="ts" generic="T" setup>
91+
import { KPagination } from '@kong/kongponents'
9192
import { useThrottleFn } from '@vueuse/core'
9293
import { computed, useSlots } from 'vue'
94+
// @TODO: Why are we using kongponents?
9395
9496
import { useDataEmptyState } from '../../'
9597

packages/kuma-gui/src/app/policies/components/PolicyTypeEntryList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116

117117
<script lang="ts" setup>
118118
119+
// @TODO: Why are we using kongponents?
119120
import { KTableView } from '@kong/kongponents'
120121
121122
import type { PolicyResourceType } from '../data'

packages/kuma-gui/src/app/service-mesh/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Kongponents from '@kong/kongponents'
21
import { token } from '@kumahq/container'
32
import X from '@kumahq/x'
43

@@ -106,7 +105,6 @@ export const services = (app: Record<string, Token>): ServiceDefinition[] => {
106105
[token('service-mesh.plugins'), {
107106
service: (i18n, can) => {
108107
return [
109-
[Kongponents],
110108
[X, {
111109
i18n,
112110
protocolHandler: protocolHandler(can),

packages/kuma-gui/src/assets/styles/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
@use "base";
33

44
/* this can't be componentized because it affects global styles for at least popup */
5-
@import "@kong/kongponents/dist/style.css";
5+
@use "@kumahq/x/src/index";

packages/x/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"main": "src/index.ts",
99
"module": "src/index.ts",
1010
"types": "src/index.ts",
11+
"files": [
12+
"src/index.scss"
13+
],
1114
"scripts": {
1215
"help": "make help"
1316
},

packages/x/src/components/x-drawer/XDrawer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
</template>
1919

2020
<script lang="ts" setup>
21+
import { KSlideout } from '@kong/kongponents'
2122
import { onClickOutside, useThrottleFn } from '@vueuse/core'
2223
import { ref, provide, useId } from 'vue'
2324

packages/x/src/components/x-error-state/XErrorState.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090

9191
<script lang="ts" setup generic="T extends Error & Partial<{ type: string, status: number, title: string, detail: string, instance: string, invalid_parameters: { field: string, reason: string, source: 'body' | 'header', rule?: string }[] }>">
9292
import { KUI_COLOR_TEXT_DANGER } from '@kong/design-tokens'
93+
import { KEmptyState } from '@kong/kongponents'
9394
import { inject } from 'vue'
9495
9596
const props = withDefaults(defineProps<{

packages/x/src/components/x-progress/XProgress.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</template>
5050
<script lang="ts" setup>
5151
import { KUI_COLOR_TEXT_NEUTRAL_WEAK } from '@kong/design-tokens'
52-
import { KEmptyState } from '@kong/kongponents'
52+
import { KEmptyState, KSkeletonBox, KSkeleton } from '@kong/kongponents'
5353
const props = withDefaults(defineProps<{
5454
variant?: 'list' | 'line' | 'spinner' | 'legacy' | 'header'
5555
}>(), {

packages/x/src/components/x-search/XSearch.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
</template>
144144

145145
<script setup lang="ts">
146+
import { KPop } from '@kong/kongponents'
146147
import { useResizeObserver } from '@vueuse/core'
147148
import { ref, watch } from 'vue'
148149

0 commit comments

Comments
 (0)