@yymojo-tec/mojo-ui 0.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.
Files changed (69) hide show
  1. package/README.md +211 -0
  2. package/dist/mojo-ui.css +1 -0
  3. package/dist/mojo-ui.js +2270 -0
  4. package/dist/mojo-ui.js.map +1 -0
  5. package/dist/mojo-ui.umd.cjs +5 -0
  6. package/dist/mojo-ui.umd.cjs.map +1 -0
  7. package/dist/types/components/button/index.d.ts +60 -0
  8. package/dist/types/components/button/index.d.ts.map +1 -0
  9. package/dist/types/components/button/src/button.d.ts +35 -0
  10. package/dist/types/components/button/src/button.d.ts.map +1 -0
  11. package/dist/types/components/card/index.d.ts +62 -0
  12. package/dist/types/components/card/index.d.ts.map +1 -0
  13. package/dist/types/components/card/src/card.d.ts +13 -0
  14. package/dist/types/components/card/src/card.d.ts.map +1 -0
  15. package/dist/types/components/col/index.d.ts +26 -0
  16. package/dist/types/components/col/index.d.ts.map +1 -0
  17. package/dist/types/components/col/src/col.d.ts +4 -0
  18. package/dist/types/components/col/src/col.d.ts.map +1 -0
  19. package/dist/types/components/form/index.d.ts +56 -0
  20. package/dist/types/components/form/index.d.ts.map +1 -0
  21. package/dist/types/components/form/src/context.d.ts +22 -0
  22. package/dist/types/components/form/src/context.d.ts.map +1 -0
  23. package/dist/types/components/form/src/form.d.ts +21 -0
  24. package/dist/types/components/form/src/form.d.ts.map +1 -0
  25. package/dist/types/components/form-item/index.d.ts +41 -0
  26. package/dist/types/components/form-item/index.d.ts.map +1 -0
  27. package/dist/types/components/form-item/src/form-item.d.ts +9 -0
  28. package/dist/types/components/form-item/src/form-item.d.ts.map +1 -0
  29. package/dist/types/components/index.d.ts +15 -0
  30. package/dist/types/components/index.d.ts.map +1 -0
  31. package/dist/types/components/input/index.d.ts +36 -0
  32. package/dist/types/components/input/index.d.ts.map +1 -0
  33. package/dist/types/components/input/src/input.d.ts +21 -0
  34. package/dist/types/components/input/src/input.d.ts.map +1 -0
  35. package/dist/types/components/menu/index.d.ts +55 -0
  36. package/dist/types/components/menu/index.d.ts.map +1 -0
  37. package/dist/types/components/menu/src/menu.d.ts +16 -0
  38. package/dist/types/components/menu/src/menu.d.ts.map +1 -0
  39. package/dist/types/components/row/index.d.ts +35 -0
  40. package/dist/types/components/row/index.d.ts.map +1 -0
  41. package/dist/types/components/row/src/row.d.ts +9 -0
  42. package/dist/types/components/row/src/row.d.ts.map +1 -0
  43. package/dist/types/components/select/index.d.ts +74 -0
  44. package/dist/types/components/select/index.d.ts.map +1 -0
  45. package/dist/types/components/select/src/select.d.ts +19 -0
  46. package/dist/types/components/select/src/select.d.ts.map +1 -0
  47. package/dist/types/components/tabs/index.d.ts +55 -0
  48. package/dist/types/components/tabs/index.d.ts.map +1 -0
  49. package/dist/types/components/tabs/src/tabs.d.ts +14 -0
  50. package/dist/types/components/tabs/src/tabs.d.ts.map +1 -0
  51. package/dist/types/components/upload/index.d.ts +231 -0
  52. package/dist/types/components/upload/index.d.ts.map +1 -0
  53. package/dist/types/components/upload/src/upload.d.ts +36 -0
  54. package/dist/types/components/upload/src/upload.d.ts.map +1 -0
  55. package/dist/types/foundation/headless.d.ts +2 -0
  56. package/dist/types/foundation/headless.d.ts.map +1 -0
  57. package/dist/types/foundation/index.d.ts +3 -0
  58. package/dist/types/foundation/index.d.ts.map +1 -0
  59. package/dist/types/foundation/tokens.d.ts +6 -0
  60. package/dist/types/foundation/tokens.d.ts.map +1 -0
  61. package/dist/types/foundation/types.d.ts +5 -0
  62. package/dist/types/foundation/types.d.ts.map +1 -0
  63. package/dist/types/index.d.ts +6 -0
  64. package/dist/types/index.d.ts.map +1 -0
  65. package/dist/types/utils/install.d.ts +6 -0
  66. package/dist/types/utils/install.d.ts.map +1 -0
  67. package/dist/types/utils/validators.d.ts +14 -0
  68. package/dist/types/utils/validators.d.ts.map +1 -0
  69. package/package.json +64 -0
@@ -0,0 +1,62 @@
1
+ export declare const MoCard: import('../../utils/install').SfcWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').CardProps> & Readonly<{
3
+ onSelect?: ((value: boolean) => any) | undefined;
4
+ "onUpdate:selected"?: ((value: boolean) => any) | undefined;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ select: (value: boolean) => any;
7
+ "update:selected": (value: boolean) => any;
8
+ }, import('vue').PublicProps, {
9
+ theme: import('../../foundation').MojoTheme;
10
+ shadow: import('./src/card').CardShadow;
11
+ borderStyle: import('./src/card').CardBorderStyle;
12
+ hoverable: boolean;
13
+ animated: boolean;
14
+ selectable: boolean;
15
+ selected: boolean;
16
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLElement, import('vue').ComponentProvideOptions, {
17
+ P: {};
18
+ B: {};
19
+ D: {};
20
+ C: {};
21
+ M: {};
22
+ Defaults: {};
23
+ }, Readonly<import('.').CardProps> & Readonly<{
24
+ onSelect?: ((value: boolean) => any) | undefined;
25
+ "onUpdate:selected"?: ((value: boolean) => any) | undefined;
26
+ }>, {}, {}, {}, {}, {
27
+ theme: import('../../foundation').MojoTheme;
28
+ shadow: import('./src/card').CardShadow;
29
+ borderStyle: import('./src/card').CardBorderStyle;
30
+ hoverable: boolean;
31
+ animated: boolean;
32
+ selectable: boolean;
33
+ selected: boolean;
34
+ }>;
35
+ __isFragment?: never;
36
+ __isTeleport?: never;
37
+ __isSuspense?: never;
38
+ } & import('vue').ComponentOptionsBase<Readonly<import('.').CardProps> & Readonly<{
39
+ onSelect?: ((value: boolean) => any) | undefined;
40
+ "onUpdate:selected"?: ((value: boolean) => any) | undefined;
41
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
+ select: (value: boolean) => any;
43
+ "update:selected": (value: boolean) => any;
44
+ }, string, {
45
+ theme: import('../../foundation').MojoTheme;
46
+ shadow: import('./src/card').CardShadow;
47
+ borderStyle: import('./src/card').CardBorderStyle;
48
+ hoverable: boolean;
49
+ animated: boolean;
50
+ selectable: boolean;
51
+ selected: boolean;
52
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
53
+ $slots: {
54
+ 'selected-icon'?(_: {}): any;
55
+ header?(_: {}): any;
56
+ default?(_: {}): any;
57
+ footer?(_: {}): any;
58
+ };
59
+ })>;
60
+ export default MoCard;
61
+ export type { CardProps } from './src/card';
62
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/card/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAoB,CAAC;AAExC,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { MojoTheme } from '../../../foundation';
2
+ export type CardShadow = "always" | "hover" | "never";
3
+ export type CardBorderStyle = "solid" | "dashed" | "dotted" | "none";
4
+ export interface CardProps {
5
+ theme?: MojoTheme;
6
+ shadow?: CardShadow;
7
+ borderStyle?: CardBorderStyle;
8
+ hoverable?: boolean;
9
+ animated?: boolean;
10
+ selectable?: boolean;
11
+ selected?: boolean;
12
+ }
13
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/src/card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AACtD,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAErE,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -0,0 +1,26 @@
1
+ export declare const MoCol: import('../../utils/install').SfcWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').ColProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ span: number | string;
4
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
5
+ P: {};
6
+ B: {};
7
+ D: {};
8
+ C: {};
9
+ M: {};
10
+ Defaults: {};
11
+ }, Readonly<import('.').ColProps> & Readonly<{}>, {}, {}, {}, {}, {
12
+ span: number | string;
13
+ }>;
14
+ __isFragment?: never;
15
+ __isTeleport?: never;
16
+ __isSuspense?: never;
17
+ } & import('vue').ComponentOptionsBase<Readonly<import('.').ColProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
18
+ span: number | string;
19
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
20
+ $slots: {
21
+ default?(_: {}): any;
22
+ };
23
+ })>;
24
+ export default MoCol;
25
+ export type { ColProps } from './src/col';
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/col/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAC;AAEtC,eAAe,KAAK,CAAC;AACrB,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface ColProps {
2
+ span?: number | string;
3
+ }
4
+ //# sourceMappingURL=col.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"col.d.ts","sourceRoot":"","sources":["../../../../../src/components/col/src/col.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB"}
@@ -0,0 +1,56 @@
1
+ export declare const MoForm: import('../../utils/install').SfcWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').FormProps> & Readonly<{}>, {
3
+ validate: () => Promise<import('./src/form').FormValidateResult>;
4
+ resetFields: () => void;
5
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
6
+ theme: import('../../foundation').MojoTheme;
7
+ model: import('./src/form').FormModel;
8
+ rules: import('.').FormRules;
9
+ labelPosition: import('.').FormLabelPosition;
10
+ labelWidth: string | number;
11
+ requireAsteriskPosition: import('.').FormRequireAsteriskPosition;
12
+ labelSuffix: string;
13
+ showMessage: boolean;
14
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLFormElement, import('vue').ComponentProvideOptions, {
15
+ P: {};
16
+ B: {};
17
+ D: {};
18
+ C: {};
19
+ M: {};
20
+ Defaults: {};
21
+ }, Readonly<import('.').FormProps> & Readonly<{}>, {
22
+ validate: () => Promise<import('./src/form').FormValidateResult>;
23
+ resetFields: () => void;
24
+ }, {}, {}, {}, {
25
+ theme: import('../../foundation').MojoTheme;
26
+ model: import('./src/form').FormModel;
27
+ rules: import('.').FormRules;
28
+ labelPosition: import('.').FormLabelPosition;
29
+ labelWidth: string | number;
30
+ requireAsteriskPosition: import('.').FormRequireAsteriskPosition;
31
+ labelSuffix: string;
32
+ showMessage: boolean;
33
+ }>;
34
+ __isFragment?: never;
35
+ __isTeleport?: never;
36
+ __isSuspense?: never;
37
+ } & import('vue').ComponentOptionsBase<Readonly<import('.').FormProps> & Readonly<{}>, {
38
+ validate: () => Promise<import('./src/form').FormValidateResult>;
39
+ resetFields: () => void;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
41
+ theme: import('../../foundation').MojoTheme;
42
+ model: import('./src/form').FormModel;
43
+ rules: import('.').FormRules;
44
+ labelPosition: import('.').FormLabelPosition;
45
+ labelWidth: string | number;
46
+ requireAsteriskPosition: import('.').FormRequireAsteriskPosition;
47
+ labelSuffix: string;
48
+ showMessage: boolean;
49
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
50
+ $slots: {
51
+ default?(_: {}): any;
52
+ };
53
+ })>;
54
+ export default MoForm;
55
+ export type { FormLabelPosition, FormProps, FormRequireAsteriskPosition, FormRules } from './src/form';
56
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAoB,CAAC;AAExC,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,iBAAiB,EAAE,SAAS,EAAE,2BAA2B,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { FormLabelPosition, FormModel, FormRequireAsteriskPosition, FormRules } from './form';
3
+ import { MojoTheme } from '../../../foundation';
4
+ export interface FormItemContext {
5
+ prop?: string;
6
+ validate: () => Promise<boolean>;
7
+ resetValidation: () => void;
8
+ }
9
+ export interface FormContext {
10
+ model?: FormModel;
11
+ rules?: FormRules;
12
+ theme: MojoTheme;
13
+ labelPosition: FormLabelPosition;
14
+ labelWidth?: string | number;
15
+ requireAsteriskPosition: FormRequireAsteriskPosition;
16
+ labelSuffix: string;
17
+ showMessage: boolean;
18
+ addField: (field: FormItemContext) => void;
19
+ removeField: (field: FormItemContext) => void;
20
+ }
21
+ export declare const formContextKey: InjectionKey<FormContext>;
22
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/src/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,2BAA2B,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,EAAE,iBAAiB,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,uBAAuB,EAAE,2BAA2B,CAAC;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,WAAW,CAA2B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { MojoRule } from '../../../utils/validators';
2
+ import { MojoTheme } from '../../../foundation';
3
+ export type FormLabelPosition = "left" | "right" | "top";
4
+ export type FormRequireAsteriskPosition = "left" | "right";
5
+ export type FormRules = Record<string, MojoRule | MojoRule[]>;
6
+ export type FormModel = Record<string, unknown>;
7
+ export interface FormProps {
8
+ model?: FormModel;
9
+ rules?: FormRules;
10
+ theme?: MojoTheme;
11
+ labelPosition?: FormLabelPosition;
12
+ labelWidth?: string | number;
13
+ requireAsteriskPosition?: FormRequireAsteriskPosition;
14
+ labelSuffix?: string;
15
+ showMessage?: boolean;
16
+ }
17
+ export interface FormValidateResult {
18
+ valid: boolean;
19
+ errors: Record<string, string>;
20
+ }
21
+ //# sourceMappingURL=form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/src/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AACzD,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,OAAO,CAAC;AAC3D,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC,CAAC;AAC9D,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEhD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,uBAAuB,CAAC,EAAE,2BAA2B,CAAC;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC"}
@@ -0,0 +1,41 @@
1
+ export declare const MoFormItem: import('../../utils/install').SfcWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').FormItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ label: string;
4
+ rules: import('../..').MojoRule | import('../..').MojoRule[];
5
+ prop: string;
6
+ required: boolean;
7
+ help: string;
8
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
9
+ P: {};
10
+ B: {};
11
+ D: {};
12
+ C: {};
13
+ M: {};
14
+ Defaults: {};
15
+ }, Readonly<import('.').FormItemProps> & Readonly<{}>, {}, {}, {}, {}, {
16
+ label: string;
17
+ rules: import('../..').MojoRule | import('../..').MojoRule[];
18
+ prop: string;
19
+ required: boolean;
20
+ help: string;
21
+ }>;
22
+ __isFragment?: never;
23
+ __isTeleport?: never;
24
+ __isSuspense?: never;
25
+ } & import('vue').ComponentOptionsBase<Readonly<import('.').FormItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
26
+ label: string;
27
+ rules: import('../..').MojoRule | import('../..').MojoRule[];
28
+ prop: string;
29
+ required: boolean;
30
+ help: string;
31
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
32
+ $slots: {
33
+ default?(_: {
34
+ error: string;
35
+ validate: () => Promise<boolean>;
36
+ }): any;
37
+ };
38
+ })>;
39
+ export default MoFormItem;
40
+ export type { FormItemProps } from './src/form-item';
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form-item/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAwB,CAAC;AAEhD,eAAe,UAAU,CAAC;AAC1B,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { MojoRule } from '../../../utils/validators';
2
+ export interface FormItemProps {
3
+ label?: string;
4
+ prop?: string;
5
+ required?: boolean;
6
+ rules?: MojoRule | MojoRule[];
7
+ help?: string;
8
+ }
9
+ //# sourceMappingURL=form-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-item.d.ts","sourceRoot":"","sources":["../../../../../src/components/form-item/src/form-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,15 @@
1
+ import { Plugin } from 'vue';
2
+ import { MoButton } from './button';
3
+ import { MoCard } from './card';
4
+ import { MoCol } from './col';
5
+ import { MoForm } from './form';
6
+ import { MoFormItem } from './form-item';
7
+ import { MoInput } from './input';
8
+ import { MoMenu } from './menu';
9
+ import { MoRow } from './row';
10
+ import { MoSelect } from './select';
11
+ import { MoTabs } from './tabs';
12
+ import { MoUpload } from './upload';
13
+ export { MoButton, MoCard, MoCol, MoForm, MoFormItem, MoInput, MoMenu, MoRow, MoSelect, MoTabs, MoUpload };
14
+ export declare const components: Plugin[];
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,EACL,QAAQ,EACR,MAAM,EACN,KAAK,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,MAAM,EACN,KAAK,EACL,QAAQ,EACR,MAAM,EACN,QAAQ,EACT,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,EAY9B,CAAC"}
@@ -0,0 +1,36 @@
1
+ export declare const MoInput: import('../../utils/install').SfcWithInstall<import('vue').DefineComponent<import('.').InputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ clear: () => any;
3
+ input: (value: string) => any;
4
+ "update:modelValue": (value: string) => any;
5
+ "update:tags": (value: string[]) => any;
6
+ change: (value: string) => any;
7
+ tagAdd: (value: string) => any;
8
+ tagRemove: (value: string, index: number) => any;
9
+ }, string, import('vue').PublicProps, Readonly<import('.').InputProps> & Readonly<{
10
+ onClear?: (() => any) | undefined;
11
+ onInput?: ((value: string) => any) | undefined;
12
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
13
+ "onUpdate:tags"?: ((value: string[]) => any) | undefined;
14
+ onChange?: ((value: string) => any) | undefined;
15
+ onTagAdd?: ((value: string) => any) | undefined;
16
+ onTagRemove?: ((value: string, index: number) => any) | undefined;
17
+ }>, {
18
+ size: import('../../foundation').MojoSize;
19
+ type: import('./src/input').InputType;
20
+ theme: import('../../foundation').MojoTheme;
21
+ disabled: boolean;
22
+ modelValue: string | number;
23
+ tags: string[];
24
+ placeholder: string;
25
+ maxlength: number | string;
26
+ showWordLimit: boolean;
27
+ rows: number | string;
28
+ readonly: boolean;
29
+ clearable: boolean;
30
+ taggable: boolean;
31
+ allowDuplicateTags: boolean;
32
+ resize: import('./src/input').InputResize;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>>;
34
+ export default MoInput;
35
+ export type { InputProps } from './src/input';
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/input/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAAqB,CAAC;AAE1C,eAAe,OAAO,CAAC;AACvB,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { MojoSize, MojoTheme } from '../../../foundation';
2
+ export type InputType = "text" | "textarea";
3
+ export type InputResize = "none" | "both" | "horizontal" | "vertical";
4
+ export interface InputProps {
5
+ modelValue?: string | number;
6
+ tags?: string[];
7
+ type?: InputType;
8
+ size?: MojoSize;
9
+ theme?: MojoTheme;
10
+ placeholder?: string;
11
+ maxlength?: number | string;
12
+ showWordLimit?: boolean;
13
+ rows?: number | string;
14
+ disabled?: boolean;
15
+ readonly?: boolean;
16
+ clearable?: boolean;
17
+ taggable?: boolean;
18
+ allowDuplicateTags?: boolean;
19
+ resize?: InputResize;
20
+ }
21
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/src/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;AAEtE,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB"}
@@ -0,0 +1,55 @@
1
+ export declare const MoMenu: import('../../utils/install').SfcWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').MenuProps> & Readonly<{
3
+ onSelect?: ((value: import('./src/menu').MenuValue, item: import('.').MenuItemOption, index: number) => any) | undefined;
4
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ select: (value: import('./src/menu').MenuValue, item: import('.').MenuItemOption, index: number) => any;
6
+ }, import('vue').PublicProps, {
7
+ theme: import('../../foundation').MojoTheme;
8
+ items: import('.').MenuItemOption[];
9
+ placement: import('.').MenuPlacement;
10
+ width: string | number;
11
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
12
+ P: {};
13
+ B: {};
14
+ D: {};
15
+ C: {};
16
+ M: {};
17
+ Defaults: {};
18
+ }, Readonly<import('.').MenuProps> & Readonly<{
19
+ onSelect?: ((value: import('./src/menu').MenuValue, item: import('.').MenuItemOption, index: number) => any) | undefined;
20
+ }>, {}, {}, {}, {}, {
21
+ theme: import('../../foundation').MojoTheme;
22
+ items: import('.').MenuItemOption[];
23
+ placement: import('.').MenuPlacement;
24
+ width: string | number;
25
+ }>;
26
+ __isFragment?: never;
27
+ __isTeleport?: never;
28
+ __isSuspense?: never;
29
+ } & import('vue').ComponentOptionsBase<Readonly<import('.').MenuProps> & Readonly<{
30
+ onSelect?: ((value: import('./src/menu').MenuValue, item: import('.').MenuItemOption, index: number) => any) | undefined;
31
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
+ select: (value: import('./src/menu').MenuValue, item: import('.').MenuItemOption, index: number) => any;
33
+ }, string, {
34
+ theme: import('../../foundation').MojoTheme;
35
+ items: import('.').MenuItemOption[];
36
+ placement: import('.').MenuPlacement;
37
+ width: string | number;
38
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
39
+ $slots: {
40
+ trigger?(_: {}): any;
41
+ icon?(_: {
42
+ item: import('.').MenuItemOption;
43
+ index: number;
44
+ active: any;
45
+ }): any;
46
+ item?(_: {
47
+ item: import('.').MenuItemOption;
48
+ index: number;
49
+ active: any;
50
+ }): any;
51
+ };
52
+ })>;
53
+ export default MoMenu;
54
+ export type { MenuItemOption, MenuPlacement, MenuProps } from './src/menu';
55
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAoB,CAAC;AAExC,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { MojoTheme } from '../../../foundation';
2
+ export type MenuPlacement = "bottom-start" | "bottom-end" | "top-start" | "top-end";
3
+ export type MenuValue = string | number;
4
+ export interface MenuItemOption {
5
+ label: string;
6
+ value: MenuValue;
7
+ description?: string;
8
+ disabled?: boolean;
9
+ }
10
+ export interface MenuProps {
11
+ items?: MenuItemOption[];
12
+ theme?: MojoTheme;
13
+ placement?: MenuPlacement;
14
+ width?: string | number;
15
+ }
16
+ //# sourceMappingURL=menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../src/components/menu/src/menu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,CAAC;AACpF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB"}
@@ -0,0 +1,35 @@
1
+ export declare const MoRow: import('../../utils/install').SfcWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').RowProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ gutter: number | string;
4
+ justify: import('./src/row').RowJustify;
5
+ align: import('./src/row').RowAlign;
6
+ wrap: boolean;
7
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
8
+ P: {};
9
+ B: {};
10
+ D: {};
11
+ C: {};
12
+ M: {};
13
+ Defaults: {};
14
+ }, Readonly<import('.').RowProps> & Readonly<{}>, {}, {}, {}, {}, {
15
+ gutter: number | string;
16
+ justify: import('./src/row').RowJustify;
17
+ align: import('./src/row').RowAlign;
18
+ wrap: boolean;
19
+ }>;
20
+ __isFragment?: never;
21
+ __isTeleport?: never;
22
+ __isSuspense?: never;
23
+ } & import('vue').ComponentOptionsBase<Readonly<import('.').RowProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
24
+ gutter: number | string;
25
+ justify: import('./src/row').RowJustify;
26
+ align: import('./src/row').RowAlign;
27
+ wrap: boolean;
28
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
29
+ $slots: {
30
+ default?(_: {}): any;
31
+ };
32
+ })>;
33
+ export default MoRow;
34
+ export type { RowProps } from './src/row';
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/row/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAC;AAEtC,eAAe,KAAK,CAAC;AACrB,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type RowJustify = "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly";
2
+ export type RowAlign = "top" | "middle" | "bottom" | "stretch";
3
+ export interface RowProps {
4
+ gutter?: number | string;
5
+ justify?: RowJustify;
6
+ align?: RowAlign;
7
+ wrap?: boolean;
8
+ }
9
+ //# sourceMappingURL=row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row.d.ts","sourceRoot":"","sources":["../../../../../src/components/row/src/row.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,eAAe,GAAG,cAAc,GAAG,cAAc,CAAC;AACxG,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/D,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}
@@ -0,0 +1,74 @@
1
+ export declare const MoSelect: import('../../utils/install').SfcWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('.').SelectProps> & Readonly<{
3
+ "onUpdate:modelValue"?: ((value: import('.').SelectValue) => any) | undefined;
4
+ onChange?: ((value: import('.').SelectValue, option?: import('.').SelectOption | undefined) => any) | undefined;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "update:modelValue": (value: import('.').SelectValue) => any;
7
+ change: (value: import('.').SelectValue, option?: import('.').SelectOption | undefined) => any;
8
+ }, import('vue').PublicProps, {
9
+ size: import('../../foundation').MojoSize;
10
+ name: string;
11
+ theme: import('../../foundation').MojoTheme;
12
+ disabled: boolean;
13
+ horizontal: boolean;
14
+ modelValue: import('.').SelectValue;
15
+ placeholder: string;
16
+ options: import('.').SelectOption[];
17
+ by: string | ((a: import('.').SelectValue, b: import('.').SelectValue) => boolean);
18
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
19
+ P: {};
20
+ B: {};
21
+ D: {};
22
+ C: {};
23
+ M: {};
24
+ Defaults: {};
25
+ }, Readonly<import('.').SelectProps> & Readonly<{
26
+ "onUpdate:modelValue"?: ((value: import('.').SelectValue) => any) | undefined;
27
+ onChange?: ((value: import('.').SelectValue, option?: import('.').SelectOption | undefined) => any) | undefined;
28
+ }>, {}, {}, {}, {}, {
29
+ size: import('../../foundation').MojoSize;
30
+ name: string;
31
+ theme: import('../../foundation').MojoTheme;
32
+ disabled: boolean;
33
+ horizontal: boolean;
34
+ modelValue: import('.').SelectValue;
35
+ placeholder: string;
36
+ options: import('.').SelectOption[];
37
+ by: string | ((a: import('.').SelectValue, b: import('.').SelectValue) => boolean);
38
+ }>;
39
+ __isFragment?: never;
40
+ __isTeleport?: never;
41
+ __isSuspense?: never;
42
+ } & import('vue').ComponentOptionsBase<Readonly<import('.').SelectProps> & Readonly<{
43
+ "onUpdate:modelValue"?: ((value: import('.').SelectValue) => any) | undefined;
44
+ onChange?: ((value: import('.').SelectValue, option?: import('.').SelectOption | undefined) => any) | undefined;
45
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
46
+ "update:modelValue": (value: import('.').SelectValue) => any;
47
+ change: (value: import('.').SelectValue, option?: import('.').SelectOption | undefined) => any;
48
+ }, string, {
49
+ size: import('../../foundation').MojoSize;
50
+ name: string;
51
+ theme: import('../../foundation').MojoTheme;
52
+ disabled: boolean;
53
+ horizontal: boolean;
54
+ modelValue: import('.').SelectValue;
55
+ placeholder: string;
56
+ options: import('.').SelectOption[];
57
+ by: string | ((a: import('.').SelectValue, b: import('.').SelectValue) => boolean);
58
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
59
+ $slots: {
60
+ label?(_: {
61
+ option: import('.').SelectOption | undefined;
62
+ label: string;
63
+ }): any;
64
+ option?(_: {
65
+ option: import('.').SelectOption;
66
+ active: any;
67
+ selected: any;
68
+ disabled: any;
69
+ }): any;
70
+ };
71
+ })>;
72
+ export default MoSelect;
73
+ export type { SelectOption, SelectProps, SelectValue } from './src/select';
74
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/select/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsB,CAAC;AAE5C,eAAe,QAAQ,CAAC;AACxB,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { MojoSize, MojoTheme } from '../../../foundation';
2
+ export type SelectValue = string | number | boolean | Record<string, unknown> | null;
3
+ export interface SelectOption {
4
+ label: string;
5
+ value: SelectValue;
6
+ disabled?: boolean;
7
+ }
8
+ export interface SelectProps {
9
+ modelValue?: SelectValue;
10
+ options?: SelectOption[];
11
+ theme?: MojoTheme;
12
+ size?: MojoSize;
13
+ placeholder?: string;
14
+ disabled?: boolean;
15
+ horizontal?: boolean;
16
+ name?: string;
17
+ by?: string | ((a: SelectValue, b: SelectValue) => boolean);
18
+ }
19
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/src/select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;AAErF,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC;CAC7D"}