@kong/kongponents 9.32.7 → 9.33.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.
@@ -0,0 +1,14 @@
1
+ import type { SliderProps } from '../../../types';
2
+ type __VLS_Props = SliderProps;
3
+ declare const inputValue: import("vue").ModelRef<number, string, number, number>;
4
+ type __VLS_PublicProps = __VLS_Props & {
5
+ modelValue?: typeof inputValue['value'];
6
+ };
7
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ change: (value: number) => any;
9
+ "update:modelValue": (...args: unknown[]) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ onChange?: ((value: number) => any) | undefined;
12
+ "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -46,3 +46,4 @@ export { default as KTruncate } from './KTruncate/KTruncate.vue';
46
46
  export { default as KCopy } from './KCopy/KCopy.vue';
47
47
  export { default as KTableView } from './KTableView/KTableView.vue';
48
48
  export { default as KTableData } from './KTableData/KTableData.vue';
49
+ export { default as KSlider } from './KSlider/KSlider.vue';
@@ -48,6 +48,7 @@ declare module 'vue' {
48
48
  KCopy: typeof components.KCopy;
49
49
  KTableView: typeof components.KTableView;
50
50
  KTableData: typeof components.KTableData;
51
+ KSlider: typeof components.KSlider;
51
52
  }
52
53
  }
53
54
  export {};
@@ -35,3 +35,4 @@ export * from './toaster';
35
35
  export * from './tooltip';
36
36
  export * from './tree-list';
37
37
  export * from './utils';
38
+ export * from './slider';
@@ -0,0 +1,63 @@
1
+ import type { LabelAttributes } from './label';
2
+ export type SliderMark = number | {
3
+ value: number;
4
+ label: string;
5
+ };
6
+ export interface SliderProps {
7
+ /**
8
+ * Slider label.
9
+ * @default ''
10
+ */
11
+ label?: string;
12
+ /**
13
+ * Minimum value of the slider.
14
+ * @default 0
15
+ */
16
+ min?: number;
17
+ /**
18
+ * Maximum value of the slider.
19
+ * @default 10
20
+ */
21
+ max?: number;
22
+ /**
23
+ * Step value for the slider.
24
+ * @default 1
25
+ */
26
+ step?: number;
27
+ /**
28
+ * Show mark text for each step.
29
+ * @default false
30
+ */
31
+ showMarks?: boolean;
32
+ /**
33
+ * Custom mark text for the slider steps.
34
+ * @default undefined
35
+ */
36
+ marks?: SliderMark[];
37
+ /**
38
+ * Whether or not to show the value in a popover above the thumb.
39
+ * @default true
40
+ */
41
+ showValue?: boolean;
42
+ /**
43
+ * Whether the slider is disabled.
44
+ * @default false
45
+ */
46
+ disabled?: boolean;
47
+ /**
48
+ * KSlider has an instance of KLabel for supporting tooltip text.
49
+ * Use the labelAttributes prop to configure the KLabel's props.
50
+ * @default {}
51
+ */
52
+ labelAttributes?: LabelAttributes;
53
+ }
54
+ export interface SliderEmits {
55
+ /**
56
+ * Fired on change, returns the new value of the slider.
57
+ */
58
+ change: [value: number];
59
+ /**
60
+ * Fired on change, returns the new value of the slider.
61
+ */
62
+ 'update:modelValue': [modelValue: number];
63
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong/kongponents",
3
- "version": "9.32.7",
3
+ "version": "9.33.0",
4
4
  "description": "Kong Component library",
5
5
  "type": "module",
6
6
  "repository": {