@kong/kongponents 9.26.2-pr.2677.f90cfd69b.0 → 9.26.2

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.
@@ -1,42 +1,36 @@
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;
1
+ import type { PropType } from 'vue';
2
+ import type { BreadcrumbItem } from '../../../types';
3
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ items: {
5
+ type: PropType<BreadcrumbItem[]>;
6
+ default: BreadcrumbItem[];
7
+ required: true;
8
+ validator: (items: BreadcrumbItem[]) => boolean;
9
9
  };
10
- } | {
11
- type: string;
12
- attrs: {
13
- title: string | undefined;
14
- to: object;
15
- href?: undefined;
10
+ itemMaxWidth: {
11
+ type: StringConstructor;
12
+ required: false;
13
+ default: string;
16
14
  };
17
- } | {
18
- type: string;
19
- attrs: {
20
- href: string;
21
- title: string | undefined;
22
- to?: undefined;
15
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ items: {
17
+ type: PropType<BreadcrumbItem[]>;
18
+ default: BreadcrumbItem[];
19
+ required: true;
20
+ validator: (items: BreadcrumbItem[]) => boolean;
23
21
  };
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;
22
+ itemMaxWidth: {
23
+ type: StringConstructor;
24
+ required: false;
25
+ default: string;
26
+ };
27
+ }>> & Readonly<{}>, {
28
+ items: BreadcrumbItem[];
29
+ itemMaxWidth: string;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
31
+ [x: `icon-${string}`]: ((props: {}) => any) | undefined;
32
+ divider?: ((props: {}) => any) | undefined;
32
33
  }>;
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>;
40
34
  export default _default;
41
35
  type __VLS_WithSlots<T, S> = T & {
42
36
  new (): {
@@ -65,15 +65,15 @@ declare const popoverClassesObj: import("vue").ComputedRef<(string | {
65
65
  'hide-caret': boolean;
66
66
  })[]>;
67
67
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
68
- declare var __VLS_7: {}, __VLS_23: {}, __VLS_25: {}, __VLS_27: {};
68
+ declare var __VLS_11: {}, __VLS_27: {}, __VLS_29: {}, __VLS_31: {};
69
69
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
70
- default?: (props: typeof __VLS_7) => any;
70
+ default?: (props: typeof __VLS_11) => any;
71
71
  } & {
72
- title?: (props: typeof __VLS_23) => any;
72
+ title?: (props: typeof __VLS_27) => any;
73
73
  } & {
74
- content?: (props: typeof __VLS_25) => any;
74
+ content?: (props: typeof __VLS_29) => any;
75
75
  } & {
76
- footer?: (props: typeof __VLS_27) => any;
76
+ footer?: (props: typeof __VLS_31) => any;
77
77
  }>;
78
78
  declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
79
79
  buttonText: {
@@ -4,11 +4,11 @@ declare const props: {
4
4
  readonly title: string;
5
5
  readonly maxWidth: string;
6
6
  readonly zIndex: number;
7
+ readonly offsetTop: string | number;
7
8
  readonly visible: boolean;
8
9
  readonly closeOnEscape: boolean;
9
10
  readonly closeButtonAlignment: string;
10
11
  readonly hasOverlay: boolean;
11
- readonly offsetTop: string | number;
12
12
  readonly closeOnBlur: boolean;
13
13
  };
14
14
  declare const offsetTopValue: import("vue").ComputedRef<string>;
@@ -116,11 +116,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
116
116
  title: string;
117
117
  maxWidth: string;
118
118
  zIndex: number;
119
+ offsetTop: string | number;
119
120
  visible: boolean;
120
121
  closeOnEscape: boolean;
121
122
  closeButtonAlignment: string;
122
123
  hasOverlay: boolean;
123
- offsetTop: string | number;
124
124
  closeOnBlur: boolean;
125
125
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
126
126
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -215,11 +215,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
215
215
  title: string;
216
216
  maxWidth: string;
217
217
  zIndex: number;
218
+ offsetTop: string | number;
218
219
  visible: boolean;
219
220
  closeOnEscape: boolean;
220
221
  closeButtonAlignment: string;
221
222
  hasOverlay: boolean;
222
- offsetTop: string | number;
223
223
  closeOnBlur: boolean;
224
224
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
225
225
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -9,14 +9,3 @@ export interface BreadcrumbItem {
9
9
  key?: string;
10
10
  maxWidth?: string;
11
11
  }
12
- export interface BreadcrumbProps {
13
- /**
14
- * Breadcrumb item list
15
- * @type {BreadcrumbItem[]}
16
- */
17
- items: BreadcrumbItem[];
18
- /**
19
- * The maximum width of each breadcrumb item
20
- */
21
- itemMaxWidth?: string;
22
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong/kongponents",
3
- "version": "9.26.2-pr.2677.f90cfd69b.0",
3
+ "version": "9.26.2",
4
4
  "description": "Kong Component library",
5
5
  "type": "module",
6
6
  "repository": {
@@ -26,6 +26,33 @@
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
+ },
29
56
  "dependencies": {
30
57
  "@floating-ui/vue": "^1.1.6",
31
58
  "@kong/icons": "^1.22.1",
@@ -156,6 +183,7 @@
156
183
  "engines": {
157
184
  "node": ">=v16.20.2 || >=18.12.1 || >=20.14.0"
158
185
  },
186
+ "packageManager": "pnpm@9.11.0",
159
187
  "volta": {
160
188
  "node": "20.17.0",
161
189
  "pnpm": "9.11.0"
@@ -169,32 +197,5 @@
169
197
  "jiraPrepend": "[",
170
198
  "jiraAppend": "]"
171
199
  }
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"
199
200
  }
200
- }
201
+ }