@nmorph/nmorph-ui-kit 1.0.106 → 1.1.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.
@@ -17,3 +17,6 @@ export { default as NmorphSwitch } from './nmorph-switch/NmorphSwitch.vue';
17
17
  export { default as NmorphTextInput } from './nmorph-text-input/NmorphTextInput.vue';
18
18
  export { default as NmorphRadio } from './nmorph-radio/NmorphRadio.vue';
19
19
  export { default as NmorphRadioGroup } from './nmorph-radio-group/NmorphRadioGroup.vue';
20
+ export { default as NmorphSelectButton } from './nmorph-select-button/NmorphSelectButton.vue';
21
+ export { default as NmorphSelectButtonItem } from './nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue';
22
+ export * from './nmorph-select-button/types';
@@ -0,0 +1,25 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ import { INmorphSelectButtonOption } from '../..';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface INmorphProps extends INmorphCommonInputProps {
5
+ modelValue?: string;
6
+ options?: INmorphSelectButtonOption[];
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
9
+ "update:model-value": (val: string) => any;
10
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
11
+ "onUpdate:model-value"?: (val: string) => any;
12
+ }>, {
13
+ height: "default" | "thick" | "thin";
14
+ disabled: boolean;
15
+ modelValue: string;
16
+ options: INmorphSelectButtonOption[];
17
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,18 @@
1
+ import { INmorphCommonInputProps } from '../../../../../types';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps extends Omit<INmorphCommonInputProps, 'height'> {
4
+ value: string;
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
7
+ inputDOMRef: Ref<HTMLElement, HTMLElement>;
8
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
9
+ disabled: boolean;
10
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
11
+ default?(_: {}): any;
12
+ }>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ export type NmorphSelectButtonChangeHandlerInjectionType = (value: string) => void;
3
+ export type NmorphSelectButtonSelectedValueInjectionType = Ref<string>;
4
+ export interface INmorphSelectButtonOption {
5
+ value: string;
6
+ label?: string;
7
+ disabled?: boolean;
8
+ }
package/package.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "name": "@nmorph/nmorph-ui-kit",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "1.0.106",
5
+ "version": "1.1.0",
6
6
  "license": "MIT",
7
7
  "engines": {
8
- "node": "18.13.0",
9
- "npm": "8.19.3"
8
+ "node": ">=18.13.0",
9
+ "npm": ">=8.19.3"
10
10
  },
11
11
  "types": "./dist/index.d.ts",
12
12
  "main": "./dist/index.umd.js",