From e01d71835f2c03f26555c75255066b05f86406fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Wed, 1 Mar 2023 11:45:08 +0300 Subject: [PATCH] Knob d.ts updated --- components/knob/Knob.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/components/knob/Knob.d.ts b/components/knob/Knob.d.ts index 07e0f9eb6..db04cb7bf 100644 --- a/components/knob/Knob.d.ts +++ b/components/knob/Knob.d.ts @@ -10,7 +10,7 @@ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; /** - * Defines valid properties in Knob component. In addition to these, all properties of HTMLDivElement can be used in this component. + * Defines valid properties in Knob component. */ export interface KnobProps { /** @@ -24,14 +24,17 @@ export interface KnobProps { size?: number | undefined; /** * When present, it specifies that the component should be disabled. + * @defaultValue false */ disabled?: boolean | undefined; /** * When present, it specifies that the component value cannot be edited. + * @defaultValue false */ readonly?: boolean | undefined; /** * Step factor to increment/decrement the value. + * @defaultValue 1 */ step?: number | undefined; /** @@ -46,31 +49,37 @@ export interface KnobProps { max?: number | undefined; /** * Background of the value. + * @defaultValue var(--primary-color, Black) */ valueColor?: string | undefined; /** * Background color of the range. + * @defaultValue var(--surface-border, LightGray) */ rangeColor?: string | undefined; /** * Color of the value text. + * @defaultValue var(--text-color-secondary, Black) */ textColor?: string | undefined; /** * Width of the knob stroke. - * @defaultValue 100 + * @defaultValue 14 */ strokeWidth?: number | undefined; /** * Whether the show the value inside the knob. + * @defaultValue true */ showValue?: boolean | undefined; /** * Template string of the value. + * @defaultValue {value} */ valueTemplate?: string | undefined; /** * Index of the element in tabbing order. + * @defaultValue 0 */ tabindex?: number | undefined; /**