@kong/kongponents 9.28.1 → 9.28.2-pr.2683.f7efd8fc6.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 +3472 -3487
- package/dist/kongponents.umd.js +13 -13
- package/dist/types/components/KCheckbox/KCheckbox.vue.d.ts +10 -64
- package/dist/types/types/checkbox.d.ts +61 -0
- package/dist/types/types/index.d.ts +1 -0
- package/package.json +29 -30
|
@@ -1,69 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
modelValue: {
|
|
5
|
-
type: BooleanConstructor;
|
|
6
|
-
default: boolean;
|
|
7
|
-
required: true;
|
|
8
|
-
};
|
|
9
|
-
label: {
|
|
10
|
-
type: StringConstructor;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
labelAttributes: {
|
|
14
|
-
type: PropType<LabelAttributes>;
|
|
15
|
-
default: () => {};
|
|
16
|
-
validator: (value: LabelAttributes) => boolean;
|
|
17
|
-
};
|
|
18
|
-
description: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
error: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
1
|
+
import type { CheckboxProps, CheckboxSlots } from '../../../types';
|
|
2
|
+
type __VLS_Slots = CheckboxSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<CheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
4
|
input: (value: boolean) => any;
|
|
28
|
-
change: (
|
|
29
|
-
"update:modelValue": (
|
|
30
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
31
|
-
modelValue: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
required: true;
|
|
35
|
-
};
|
|
36
|
-
label: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
labelAttributes: {
|
|
41
|
-
type: PropType<LabelAttributes>;
|
|
42
|
-
default: () => {};
|
|
43
|
-
validator: (value: LabelAttributes) => boolean;
|
|
44
|
-
};
|
|
45
|
-
description: {
|
|
46
|
-
type: StringConstructor;
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
|
-
error: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
|
-
}>> & Readonly<{
|
|
5
|
+
change: (changed: boolean) => any;
|
|
6
|
+
"update:modelValue": (modelValue: boolean) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
54
8
|
onInput?: ((value: boolean) => any) | undefined;
|
|
55
|
-
onChange?: ((
|
|
56
|
-
"onUpdate:modelValue"?: ((
|
|
57
|
-
}>, {
|
|
58
|
-
|
|
59
|
-
description: string;
|
|
60
|
-
error: boolean;
|
|
61
|
-
labelAttributes: LabelAttributes;
|
|
62
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
63
|
-
default?: ((props: {}) => any) | undefined;
|
|
64
|
-
tooltip?: ((props: {}) => any) | undefined;
|
|
65
|
-
description?: ((props: {}) => any) | undefined;
|
|
66
|
-
}>;
|
|
9
|
+
onChange?: ((changed: boolean) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
67
13
|
export default _default;
|
|
68
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
69
15
|
new (): {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { LabelAttributes } from './input';
|
|
2
|
+
export interface CheckboxProps {
|
|
3
|
+
/**
|
|
4
|
+
* Use v-model to bind the checked state of the underlying <input>.
|
|
5
|
+
* The v-model binds to the modelValue prop of the component and sets
|
|
6
|
+
* current checked state of the input.
|
|
7
|
+
* @required
|
|
8
|
+
*/
|
|
9
|
+
modelValue: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Will place label text to the right of the checkbox. Can also be slotted.
|
|
12
|
+
* @default ''
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* KCheckbox has an instance of KLabel for supporting tooltip text.
|
|
17
|
+
* Use the labelAttributes prop to configure the KLabel's props.
|
|
18
|
+
* @default {}
|
|
19
|
+
*/
|
|
20
|
+
labelAttributes?: LabelAttributes;
|
|
21
|
+
/**
|
|
22
|
+
* Will place description text under the checkbox label. Can also be slotted.
|
|
23
|
+
* @default ''
|
|
24
|
+
*/
|
|
25
|
+
description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Use this prop to apply error styling to the component.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
error?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface CheckboxEmits {
|
|
33
|
+
/**
|
|
34
|
+
* Fired on change, returns the checked status of the checkbox (boolean).
|
|
35
|
+
*/
|
|
36
|
+
change: [changed: boolean];
|
|
37
|
+
/**
|
|
38
|
+
* Fired on change, returns the checked status of the checkbox (boolean).
|
|
39
|
+
*/
|
|
40
|
+
input: [value: boolean];
|
|
41
|
+
/**
|
|
42
|
+
* Fired on change, returns the checked status of the checkbox (boolean).
|
|
43
|
+
*/
|
|
44
|
+
'update:modelValue': [modelValue: boolean];
|
|
45
|
+
}
|
|
46
|
+
export interface CheckboxSlots {
|
|
47
|
+
/**
|
|
48
|
+
* Content passed in to the default slot will be shown as the label content.
|
|
49
|
+
* The slot content takes precedence over the label prop.
|
|
50
|
+
*/
|
|
51
|
+
default?(): any;
|
|
52
|
+
/**
|
|
53
|
+
* Provides a slot for tooltip content displayed after the checkbox label.
|
|
54
|
+
*/
|
|
55
|
+
tooltip?(): any;
|
|
56
|
+
/**
|
|
57
|
+
* Content passed in to the description slot will be shown as the description content.
|
|
58
|
+
* The slot content takes precedence over the description prop.
|
|
59
|
+
*/
|
|
60
|
+
description?(): any;
|
|
61
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong/kongponents",
|
|
3
|
-
"version": "9.28.
|
|
3
|
+
"version": "9.28.2-pr.2683.f7efd8fc6.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
|
+
}
|