yuyeon 0.0.26 → 0.0.27

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 (92) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/yuyeon.js +5840 -5496
  3. package/dist/yuyeon.umd.cjs +3 -3
  4. package/lib/components/alert/YAlert.mjs +41 -6
  5. package/lib/components/alert/YAlert.mjs.map +1 -1
  6. package/lib/components/alert/YAlert.scss +25 -23
  7. package/lib/components/button/YButton.mjs +79 -74
  8. package/lib/components/button/YButton.mjs.map +1 -1
  9. package/lib/components/checkbox/YCheckbox.mjs.map +1 -1
  10. package/lib/components/checkbox/YCheckbox.scss +48 -48
  11. package/lib/components/index.mjs +1 -0
  12. package/lib/components/index.mjs.map +1 -1
  13. package/lib/components/tab/YTab.mjs +57 -7
  14. package/lib/components/tab/YTab.mjs.map +1 -1
  15. package/lib/components/tab/YTab.scss +59 -0
  16. package/lib/components/tab/YTabs.mjs +50 -8
  17. package/lib/components/tab/YTabs.mjs.map +1 -1
  18. package/lib/components/tab/YTabs.scss +10 -0
  19. package/lib/components/tab/index.mjs +1 -0
  20. package/lib/components/tab/index.mjs.map +1 -1
  21. package/lib/components/tab/shared.mjs +2 -0
  22. package/lib/components/tab/shared.mjs.map +1 -0
  23. package/lib/components/tab/types.mjs +2 -0
  24. package/lib/components/tab/types.mjs.map +1 -0
  25. package/lib/components/table/YTable.scss +2 -1
  26. package/lib/components/toggle-button/YToggleButton.mjs +2 -0
  27. package/lib/components/toggle-button/YToggleButton.mjs.map +1 -0
  28. package/lib/components/toggle-button/index.mjs +2 -0
  29. package/lib/components/toggle-button/index.mjs.map +1 -0
  30. package/lib/components/tooltip/YTooltip.mjs +3 -3
  31. package/lib/components/tooltip/YTooltip.mjs.map +1 -1
  32. package/lib/components/tree-view/YTreeView.mjs +1 -1
  33. package/lib/components/tree-view/YTreeView.mjs.map +1 -1
  34. package/lib/components/tree-view/YTreeViewNode.mjs.map +1 -1
  35. package/lib/composables/choice.mjs +1 -1
  36. package/lib/composables/choice.mjs.map +1 -1
  37. package/lib/composables/communication.mjs +1 -1
  38. package/lib/composables/communication.mjs.map +1 -1
  39. package/lib/composables/index.mjs +2 -0
  40. package/lib/composables/index.mjs.map +1 -0
  41. package/lib/composables/theme/setting.mjs.map +1 -1
  42. package/lib/composables/vue-router.mjs +32 -0
  43. package/lib/composables/vue-router.mjs.map +1 -0
  44. package/lib/styles/_variables.scss +2 -0
  45. package/lib/styles/theme/dark.scss +11 -11
  46. package/lib/styles/theme/light.scss +11 -11
  47. package/lib/util/index.mjs +16 -0
  48. package/lib/util/index.mjs.map +1 -0
  49. package/lib/util/reactivity.mjs +5 -0
  50. package/lib/util/reactivity.mjs.map +1 -1
  51. package/lib/util/vue-component.mjs +24 -0
  52. package/lib/util/vue-component.mjs.map +1 -1
  53. package/package.json +11 -1
  54. package/types/components/button/YButton.d.ts +96 -42
  55. package/types/components/checkbox/YInputCheckbox.d.ts +1 -1
  56. package/types/components/dropdown/YDropdown.d.ts +3 -3
  57. package/types/components/field-input/YFieldInput.d.ts +26 -44
  58. package/types/components/index.d.ts +1 -0
  59. package/types/components/input/YInput.d.ts +16 -16
  60. package/types/components/layer/YLayer.d.ts +8 -8
  61. package/types/components/list/YList.d.ts +2 -2
  62. package/types/components/list/YListItem.d.ts +3 -3
  63. package/types/components/pagination/YPagination.d.ts +6 -6
  64. package/types/components/select/YSelect.d.ts +35 -53
  65. package/types/components/tab/YTab.d.ts +282 -7
  66. package/types/components/tab/YTabs.d.ts +111 -3
  67. package/types/components/tab/index.d.ts +1 -0
  68. package/types/components/tab/shared.d.ts +3 -0
  69. package/types/components/tab/types.d.ts +4 -0
  70. package/types/components/table/YDataTable.d.ts +7 -7
  71. package/types/components/table/YDataTableHead.d.ts +3 -3
  72. package/types/components/table/YDataTableRow.d.ts +3 -3
  73. package/types/components/table/YDataTableServer.d.ts +7 -7
  74. package/types/components/table/composibles/items.d.ts +1 -1
  75. package/types/components/table/composibles/selection.d.ts +1 -1
  76. package/types/components/table/composibles/sorting.d.ts +1 -1
  77. package/types/components/toggle-button/YToggleButton.d.ts +3 -0
  78. package/types/components/toggle-button/index.d.ts +1 -0
  79. package/types/components/tree-view/YTreeViewNode.d.ts +6 -6
  80. package/types/composables/choice.d.ts +107 -0
  81. package/types/composables/dimension.d.ts +6 -6
  82. package/types/composables/focus.d.ts +2 -2
  83. package/types/composables/list-items.d.ts +1 -1
  84. package/types/composables/theme/index.d.ts +1 -1
  85. package/types/composables/vue-router.d.ts +43 -0
  86. package/types/shims.d.ts +81 -77
  87. package/types/util/collection.d.ts +1 -0
  88. package/types/util/frame-scheduler.d.ts +7 -0
  89. package/types/util/index.d.ts +15 -0
  90. package/types/util/reactivity.d.ts +4 -0
  91. package/types/util/validation.d.ts +3 -0
  92. package/types/util/vue-component.d.ts +8 -4
package/types/shims.d.ts CHANGED
@@ -1,77 +1,81 @@
1
- import * as vue from 'vue';
2
- import {
3
- YApp,
4
- YButton,
5
- YCard,
6
- YCardBody,
7
- YCardFooter,
8
- YCardHeader,
9
- YCheckbox,
10
- YChip,
11
- YDataTable,
12
- YDataTableServer,
13
- YDialog,
14
- YDividePanel,
15
- YDropdown,
16
- YExpandHTransition,
17
- YExpandVTransition,
18
- YFieldInput,
19
- YForm,
20
- YInput,
21
- YInputCheckbox,
22
- YLayer,
23
- YList,
24
- YListItem,
25
- YMenu,
26
- YPagination,
27
- YProgressBar,
28
- YSnackbar,
29
- YSpinnerRing,
30
- YSwitch,
31
- YTable,
32
- YTooltip,
33
- YTreeView,
34
- YTreeViewNode,
35
- YSelect,
36
- YAlert,
37
- } from 'yuyeon/types/components';
38
-
39
- declare module '@vue/runtime-core' {
40
- export interface GlobalComponents {
41
- // @define-components
42
- YApp: typeof YApp;
43
- YButton: typeof YButton;
44
- YChip: typeof YChip;
45
- YInput: typeof YInput;
46
- YFieldInput: typeof YFieldInput;
47
- YForm: typeof YForm;
48
- YCard: typeof YCard;
49
- YCardBody: typeof YCardBody;
50
- YCardHeader: typeof YCardHeader;
51
- YCardFooter: typeof YCardFooter;
52
- YDialog: typeof YDialog;
53
- YLayer: typeof YLayer;
54
- YSnackbar: typeof YSnackbar;
55
- YProgressBar: typeof YProgressBar;
56
- YSpinnerRing: typeof YSpinnerRing;
57
- YTooltip: typeof YTooltip;
58
- YExpandVTransition: typeof YExpandVTransition;
59
- YExpandHTransition: typeof YExpandHTransition;
60
- YDividePanel: typeof YDividePanel;
61
- YList: typeof YList;
62
- YListItem: typeof YListItem;
63
- YTreeView: typeof YTreeView;
64
- YTreeViewNode: typeof YTreeViewNode;
65
- YDataTable: typeof YDataTable;
66
- YTable: typeof YTable;
67
- YDataTableServer: typeof YDataTableServer;
68
- YMenu: typeof YMenu;
69
- YPagination: typeof YPagination;
70
- YInputCheckbox: typeof YInputCheckbox;
71
- YCheckbox: typeof YCheckbox;
72
- YSwitch: typeof YSwitch;
73
- YDropdown: typeof YDropdown;
74
- YSelect: typeof YSelect;
75
- YAlert: typeof YAlert;
76
- }
77
- }
1
+ import * as vue from 'vue';
2
+ import {
3
+ YAlert,
4
+ YApp,
5
+ YButton,
6
+ YCard,
7
+ YCardBody,
8
+ YCardFooter,
9
+ YCardHeader,
10
+ YCheckbox,
11
+ YChip,
12
+ YDataTable,
13
+ YDataTableServer,
14
+ YDialog,
15
+ YDividePanel,
16
+ YDropdown,
17
+ YExpandHTransition,
18
+ YExpandVTransition,
19
+ YFieldInput,
20
+ YForm,
21
+ YInput,
22
+ YInputCheckbox,
23
+ YLayer,
24
+ YList,
25
+ YListItem,
26
+ YMenu,
27
+ YPagination,
28
+ YProgressBar,
29
+ YSelect,
30
+ YSnackbar,
31
+ YSpinnerRing,
32
+ YSwitch,
33
+ YTab,
34
+ YTable,
35
+ YTabs,
36
+ YTooltip,
37
+ YTreeView,
38
+ YTreeViewNode,
39
+ } from 'yuyeon/types/components';
40
+
41
+ declare module '@vue/runtime-core' {
42
+ export interface GlobalComponents {
43
+ // @define-components
44
+ YApp: typeof YApp;
45
+ YButton: typeof YButton;
46
+ YChip: typeof YChip;
47
+ YInput: typeof YInput;
48
+ YFieldInput: typeof YFieldInput;
49
+ YForm: typeof YForm;
50
+ YCard: typeof YCard;
51
+ YCardBody: typeof YCardBody;
52
+ YCardHeader: typeof YCardHeader;
53
+ YCardFooter: typeof YCardFooter;
54
+ YDialog: typeof YDialog;
55
+ YLayer: typeof YLayer;
56
+ YSnackbar: typeof YSnackbar;
57
+ YProgressBar: typeof YProgressBar;
58
+ YSpinnerRing: typeof YSpinnerRing;
59
+ YTooltip: typeof YTooltip;
60
+ YExpandVTransition: typeof YExpandVTransition;
61
+ YExpandHTransition: typeof YExpandHTransition;
62
+ YDividePanel: typeof YDividePanel;
63
+ YList: typeof YList;
64
+ YListItem: typeof YListItem;
65
+ YTreeView: typeof YTreeView;
66
+ YTreeViewNode: typeof YTreeViewNode;
67
+ YDataTable: typeof YDataTable;
68
+ YTable: typeof YTable;
69
+ YDataTableServer: typeof YDataTableServer;
70
+ YMenu: typeof YMenu;
71
+ YPagination: typeof YPagination;
72
+ YInputCheckbox: typeof YInputCheckbox;
73
+ YCheckbox: typeof YCheckbox;
74
+ YSwitch: typeof YSwitch;
75
+ YDropdown: typeof YDropdown;
76
+ YSelect: typeof YSelect;
77
+ YAlert: typeof YAlert;
78
+ YTabs: typeof YTabs;
79
+ YTab: typeof YTab;
80
+ }
81
+ }
@@ -0,0 +1 @@
1
+ export declare function getFlatChildren(children: any[], childrenKey?: string): any[];
@@ -0,0 +1,7 @@
1
+ export declare class FrameScheduler {
2
+ private clean;
3
+ private frames;
4
+ private raf;
5
+ private run;
6
+ requestNewFrame(callback: () => void): void;
7
+ }
@@ -0,0 +1,15 @@
1
+ export * from './common';
2
+ export * from './collection';
3
+ export * from './array';
4
+ export * from './string';
5
+ export * from './validation';
6
+ export * from './debounce';
7
+ export * from './dom';
8
+ export * from './ui';
9
+ export * from './rect';
10
+ export * from './anchor';
11
+ export * from './scroll';
12
+ export * from './frame-scheduler';
13
+ export * from './vue-component';
14
+ export * from './reactivity';
15
+ export * from './color';
@@ -1,2 +1,6 @@
1
1
  import type { ComputedGetter } from 'vue';
2
+ /**
3
+ * For Destructuring assignment
4
+ * @param getter
5
+ */
2
6
  export declare function $computed<T extends object>(getter: ComputedGetter<T>): import("vue").ToRefs<T>;
@@ -0,0 +1,3 @@
1
+ export declare function REQUIRE_RULE(value: any): boolean;
2
+ declare const _default: {};
3
+ export default _default;
@@ -1,22 +1,24 @@
1
+ import { ComponentInternalInstance } from '@vue/runtime-core';
1
2
  import type { IfAny } from '@vue/shared';
2
- import type { ComponentObjectPropsOptions, ComponentPublicInstance, ExtractPropTypes, Prop, PropType, VNode } from 'vue';
3
+ import type { ComponentObjectPropsOptions, ComponentPublicInstance, ExtractPropTypes, InjectionKey, Prop, PropType, VNode, VNodeChild } from 'vue';
3
4
  export declare function getSlot(vm: ComponentPublicInstance | any, name?: string, data?: any | (() => any), optional?: boolean): VNode[] | undefined;
4
5
  export declare function getUid(): number | undefined;
5
6
  export declare function chooseProps<PropsOptions extends ComponentObjectPropsOptions>(props: any, target: PropsOptions): ExtractPropTypes<PropsOptions>;
6
7
  export declare function bindClasses(classes: string | string[] | Record<string, any> | undefined): Record<string, boolean>;
7
8
  export declare function getHtmlElement<N extends object | undefined>(node: N): Exclude<N, ComponentPublicInstance> | HTMLElement;
9
+ export declare function findChildrenWithProvide(key: InjectionKey<any> | symbol, vnode?: VNodeChild): ComponentInternalInstance[];
8
10
  export declare function propsFactory<PropsOptions extends ComponentObjectPropsOptions>(props: PropsOptions, source: string): <Defaults extends PartialKeys<PropsOptions> = {}>(defaults?: Defaults | undefined) => OverwrittenPropOptions<PropsOptions, Defaults>;
11
+ export declare function hasEventProp(props: Record<string, any>, type: string): boolean;
9
12
  type OverwrittenPropOptions<T extends ComponentObjectPropsOptions, D extends PartialKeys<T>> = {
10
13
  [P in keyof T]-?: unknown extends D[P] ? T[P] : T[P] extends Record<string, unknown> ? Omit<T[P], 'type' | 'default'> & {
11
- type: FollowPropType<Pick<T[P], 'type'>, T[P], D[P]>;
14
+ type: PropType<MergeDefault<T[P], D[P]>>;
12
15
  default: MergeDefault<T[P], D[P]>;
13
16
  } : {
14
- type: PropType<MergeDefault<P, D>>;
17
+ type: PropType<MergeDefault<T[P], D[P]>>;
15
18
  default: MergeDefault<T[P], D[P]>;
16
19
  };
17
20
  };
18
21
  type MergeDefault<T, D> = unknown extends D ? InferPropType<T> : NonNullable<InferPropType<T>> | D;
19
- type FollowPropType<T, P, D> = [T] extends [PropType<unknown>] ? T : PropType<MergeDefault<P, D>>;
20
22
  type PartialKeys<T> = {
21
23
  [P in keyof T]?: unknown;
22
24
  };
@@ -31,4 +33,6 @@ type InferPropType<T> = [T] extends [null] ? any : [T] extends [{
31
33
  }] ? Date : [T] extends [(infer U)[] | {
32
34
  type: (infer U)[];
33
35
  }] ? U extends DateConstructor ? Date | InferPropType<U> : InferPropType<U> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? IfAny<V, V, D> : V : T;
36
+ export type EventProp<T extends any[] = any[], F = (...args: T) => any> = F | F[];
37
+ export declare const EventPropOption: <T extends any[] = any[]>() => PropType<EventProp<T, (...args: T) => any>>;
34
38
  export {};