@kong/kongponents 9.26.2 → 9.26.3-pr.2677.7f9bf9268.0
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/dist/kongponents.css +1 -1
- package/dist/kongponents.es.js +1770 -1778
- package/dist/kongponents.umd.js +12 -12
- package/dist/types/components/KBreadcrumbs/KBreadcrumbs.vue.d.ts +35 -29
- package/dist/types/types/breadcrumbs.d.ts +12 -0
- package/package.json +29 -30
|
@@ -1,36 +1,42 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { BreadcrumbItem, BreadcrumbProps } from '../../../types';
|
|
2
|
+
declare const getSizeFromString: (sizeStr: string) => string;
|
|
3
|
+
declare const getComponentAttrs: (item: BreadcrumbItem) => {
|
|
4
|
+
type: string;
|
|
5
|
+
attrs: {
|
|
6
|
+
title: string | undefined;
|
|
7
|
+
to?: undefined;
|
|
8
|
+
href?: undefined;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
} | {
|
|
11
|
+
type: string;
|
|
12
|
+
attrs: {
|
|
13
|
+
title: string | undefined;
|
|
14
|
+
to: object;
|
|
15
|
+
href?: undefined;
|
|
14
16
|
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
} | {
|
|
18
|
+
type: string;
|
|
19
|
+
attrs: {
|
|
20
|
+
href: string;
|
|
21
|
+
title: string | undefined;
|
|
22
|
+
to?: undefined;
|
|
21
23
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
31
|
-
[x: `icon-${string}`]: ((props: {}) => any) | undefined;
|
|
32
|
-
divider?: ((props: {}) => any) | undefined;
|
|
24
|
+
};
|
|
25
|
+
declare const getBreadcrumbKey: (item: BreadcrumbItem, idx: number) => string;
|
|
26
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
27
|
+
declare var __VLS_6: `icon-${string}`, __VLS_7: {}, __VLS_9: {};
|
|
28
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
29
|
+
[K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
|
|
30
|
+
} & {
|
|
31
|
+
divider?: (props: typeof __VLS_9) => any;
|
|
33
32
|
}>;
|
|
33
|
+
declare const __VLS_self: import("vue").DefineComponent<BreadcrumbProps, {
|
|
34
|
+
getSizeFromString: typeof getSizeFromString;
|
|
35
|
+
getComponentAttrs: typeof getComponentAttrs;
|
|
36
|
+
getBreadcrumbKey: typeof getBreadcrumbKey;
|
|
37
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const __VLS_component: import("vue").DefineComponent<BreadcrumbProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
34
40
|
export default _default;
|
|
35
41
|
type __VLS_WithSlots<T, S> = T & {
|
|
36
42
|
new (): {
|
|
@@ -9,3 +9,15 @@ export interface BreadcrumbItem {
|
|
|
9
9
|
key?: string;
|
|
10
10
|
maxWidth?: string;
|
|
11
11
|
}
|
|
12
|
+
export interface BreadcrumbProps {
|
|
13
|
+
/**
|
|
14
|
+
* An array of breadcrumb items.
|
|
15
|
+
* @type {BreadcrumbItem[]}
|
|
16
|
+
*/
|
|
17
|
+
items: BreadcrumbItem[];
|
|
18
|
+
/**
|
|
19
|
+
* Maximum width of each breadcrumb item for truncating to ellipsis.
|
|
20
|
+
* @default '100px'
|
|
21
|
+
*/
|
|
22
|
+
itemMaxWidth?: string;
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong/kongponents",
|
|
3
|
-
"version": "9.26.
|
|
3
|
+
"version": "9.26.3-pr.2677.7f9bf9268.0",
|
|
4
4
|
"description": "Kong Component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -26,33 +26,6 @@
|
|
|
26
26
|
"./package.json": "./package.json",
|
|
27
27
|
"./dist/*": "./dist/*"
|
|
28
28
|
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"build:cli": "rimraf ./bin && tsc --project ./cli/tsconfig.json && chmod u+x ./bin/index.js",
|
|
31
|
-
"build:docs": "vitepress build docs",
|
|
32
|
-
"build:kongponents": "pnpm typecheck && vite build && vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly && tsc-alias -p './tsconfig.build.json'",
|
|
33
|
-
"build:visualize": "cross-env-shell BUILD_VISUALIZER=true vite build -m production",
|
|
34
|
-
"build": "pnpm build:cli && pnpm stylelint && pnpm lint && pnpm build:kongponents && pnpm build:docs",
|
|
35
|
-
"build:ci": "pnpm build:kongponents && pnpm build:docs",
|
|
36
|
-
"commit": "cz",
|
|
37
|
-
"create-kongponent": "node ./bin/index.js",
|
|
38
|
-
"sandbox:dev": "cross-env USE_SANDBOX=true vite",
|
|
39
|
-
"sandbox:build": "cross-env USE_SANDBOX=true vite build && shx cp sandbox/dist/index.html sandbox/dist/404.html",
|
|
40
|
-
"sandbox:build:netlify": "cross-env USE_SANDBOX=true USE_NETLIFY=true vite build && shx cp sandbox/dist/index.html sandbox/dist/404.html",
|
|
41
|
-
"sandbox:preview": "cross-env USE_SANDBOX=true vite preview",
|
|
42
|
-
"docs:build": "vitepress build docs",
|
|
43
|
-
"docs:dev": "vitepress dev docs",
|
|
44
|
-
"docs:serve": "vitepress serve docs",
|
|
45
|
-
"docs:preview": "vitepress preview docs --port 8080",
|
|
46
|
-
"typecheck": "vue-tsc -p './tsconfig.build.json' --noEmit",
|
|
47
|
-
"lint": "eslint",
|
|
48
|
-
"lint:fix": "eslint --fix",
|
|
49
|
-
"stylelint": "stylelint './src/**/*.{css,scss,sass,vue}'",
|
|
50
|
-
"stylelint:fix": "stylelint './src/**/*.{css,scss,sass,vue}' --fix",
|
|
51
|
-
"test": "cypress run --component -b chrome",
|
|
52
|
-
"test:open": "cypress open --component -b chrome",
|
|
53
|
-
"test:spec": "cypress run --component -b chrome --spec",
|
|
54
|
-
"semantic-release": "semantic-release"
|
|
55
|
-
},
|
|
56
29
|
"dependencies": {
|
|
57
30
|
"@floating-ui/vue": "^1.1.6",
|
|
58
31
|
"@kong/icons": "^1.22.1",
|
|
@@ -183,7 +156,6 @@
|
|
|
183
156
|
"engines": {
|
|
184
157
|
"node": ">=v16.20.2 || >=18.12.1 || >=20.14.0"
|
|
185
158
|
},
|
|
186
|
-
"packageManager": "pnpm@9.11.0",
|
|
187
159
|
"volta": {
|
|
188
160
|
"node": "20.17.0",
|
|
189
161
|
"pnpm": "9.11.0"
|
|
@@ -197,5 +169,32 @@
|
|
|
197
169
|
"jiraPrepend": "[",
|
|
198
170
|
"jiraAppend": "]"
|
|
199
171
|
}
|
|
172
|
+
},
|
|
173
|
+
"scripts": {
|
|
174
|
+
"build:cli": "rimraf ./bin && tsc --project ./cli/tsconfig.json && chmod u+x ./bin/index.js",
|
|
175
|
+
"build:docs": "vitepress build docs",
|
|
176
|
+
"build:kongponents": "pnpm typecheck && vite build && vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly && tsc-alias -p './tsconfig.build.json'",
|
|
177
|
+
"build:visualize": "cross-env-shell BUILD_VISUALIZER=true vite build -m production",
|
|
178
|
+
"build": "pnpm build:cli && pnpm stylelint && pnpm lint && pnpm build:kongponents && pnpm build:docs",
|
|
179
|
+
"build:ci": "pnpm build:kongponents && pnpm build:docs",
|
|
180
|
+
"commit": "cz",
|
|
181
|
+
"create-kongponent": "node ./bin/index.js",
|
|
182
|
+
"sandbox:dev": "cross-env USE_SANDBOX=true vite",
|
|
183
|
+
"sandbox:build": "cross-env USE_SANDBOX=true vite build && shx cp sandbox/dist/index.html sandbox/dist/404.html",
|
|
184
|
+
"sandbox:build:netlify": "cross-env USE_SANDBOX=true USE_NETLIFY=true vite build && shx cp sandbox/dist/index.html sandbox/dist/404.html",
|
|
185
|
+
"sandbox:preview": "cross-env USE_SANDBOX=true vite preview",
|
|
186
|
+
"docs:build": "vitepress build docs",
|
|
187
|
+
"docs:dev": "vitepress dev docs",
|
|
188
|
+
"docs:serve": "vitepress serve docs",
|
|
189
|
+
"docs:preview": "vitepress preview docs --port 8080",
|
|
190
|
+
"typecheck": "vue-tsc -p './tsconfig.build.json' --noEmit",
|
|
191
|
+
"lint": "eslint",
|
|
192
|
+
"lint:fix": "eslint --fix",
|
|
193
|
+
"stylelint": "stylelint './src/**/*.{css,scss,sass,vue}'",
|
|
194
|
+
"stylelint:fix": "stylelint './src/**/*.{css,scss,sass,vue}' --fix",
|
|
195
|
+
"test": "cypress run --component -b chrome",
|
|
196
|
+
"test:open": "cypress open --component -b chrome",
|
|
197
|
+
"test:spec": "cypress run --component -b chrome --spec",
|
|
198
|
+
"semantic-release": "semantic-release"
|
|
200
199
|
}
|
|
201
|
-
}
|
|
200
|
+
}
|