@lumx/vue 4.3.0 → 4.3.1
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/components/radio-button/RadioButton.d.ts +21 -0
- package/components/radio-button/RadioGroup.d.ts +14 -0
- package/components/radio-button/index.d.ts +4 -0
- package/components/switch/Switch.d.ts +21 -0
- package/components/switch/index.d.ts +3 -0
- package/index.d.ts +2 -0
- package/index.js +1201 -961
- package/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RadioButtonProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/RadioButton';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type RadioButtonProps = VueToJSXProps<UIProps, 'inputId' | 'inputRef'>;
|
|
4
|
+
export declare const emitSchema: {
|
|
5
|
+
change: (value?: string, name?: string, event?: Event) => event is Event;
|
|
6
|
+
};
|
|
7
|
+
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
8
|
+
/**
|
|
9
|
+
* RadioButton component.
|
|
10
|
+
*
|
|
11
|
+
* @param props Component props.
|
|
12
|
+
* @return Vue element.
|
|
13
|
+
*/
|
|
14
|
+
declare const RadioButton: import('vue').DefineSetupFnComponent<RadioButtonProps, {
|
|
15
|
+
change: (value?: string, name?: string, event?: Event) => event is Event;
|
|
16
|
+
}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange" | "inputRef" | "inputId"> & {
|
|
17
|
+
class?: string;
|
|
18
|
+
} & {
|
|
19
|
+
onChange?: ((value?: string | undefined, name?: string | undefined, event?: Event | undefined) => any) | undefined;
|
|
20
|
+
}, import('vue').PublicProps>;
|
|
21
|
+
export default RadioButton;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CLASSNAME, COMPONENT_NAME } from '@lumx/core/js/components/RadioGroup';
|
|
2
|
+
export interface RadioGroupProps {
|
|
3
|
+
/** CSS class name */
|
|
4
|
+
class?: string;
|
|
5
|
+
}
|
|
6
|
+
export { CLASSNAME, COMPONENT_NAME };
|
|
7
|
+
/**
|
|
8
|
+
* RadioGroup component.
|
|
9
|
+
*
|
|
10
|
+
* @param props Component props.
|
|
11
|
+
* @return Vue element.
|
|
12
|
+
*/
|
|
13
|
+
declare const RadioGroup: import('vue').DefineSetupFnComponent<RadioGroupProps, {}, {}, RadioGroupProps & {}, import('vue').PublicProps>;
|
|
14
|
+
export default RadioGroup;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SwitchProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Switch';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type SwitchProps = VueToJSXProps<UIProps, 'inputId' | 'inputRef'>;
|
|
4
|
+
export declare const emitSchema: {
|
|
5
|
+
change: (isChecked: boolean, value?: string, name?: string, event?: Event) => boolean;
|
|
6
|
+
};
|
|
7
|
+
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
8
|
+
/**
|
|
9
|
+
* Switch component.
|
|
10
|
+
*
|
|
11
|
+
* @param props Component props.
|
|
12
|
+
* @return Vue element.
|
|
13
|
+
*/
|
|
14
|
+
declare const Switch: import('vue').DefineSetupFnComponent<SwitchProps, {
|
|
15
|
+
change: (isChecked: boolean, value?: string, name?: string, event?: Event) => boolean;
|
|
16
|
+
}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange" | "inputRef" | "inputId"> & {
|
|
17
|
+
class?: string;
|
|
18
|
+
} & {
|
|
19
|
+
onChange?: ((isChecked: boolean, value?: string | undefined, name?: string | undefined, event?: Event | undefined) => any) | undefined;
|
|
20
|
+
}, import('vue').PublicProps>;
|
|
21
|
+
export default Switch;
|
package/index.d.ts
CHANGED
|
@@ -9,4 +9,6 @@ export * from './components/icon';
|
|
|
9
9
|
export * from './components/input-helper';
|
|
10
10
|
export * from './components/input-label';
|
|
11
11
|
export * from './components/message';
|
|
12
|
+
export * from './components/switch';
|
|
13
|
+
export * from './components/radio-button';
|
|
12
14
|
export * from './components/text';
|