yuyeon 0.1.0-rc.9 → 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 (242) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/yuyeon.js +4606 -4024
  3. package/dist/yuyeon.umd.cjs +17 -13
  4. package/lib/components/badge/YBadge.scss +0 -1
  5. package/lib/components/card/YCard.mjs +16 -9
  6. package/lib/components/card/YCard.mjs.map +1 -1
  7. package/lib/components/dialog/YDialog.mjs +4 -1
  8. package/lib/components/dialog/YDialog.mjs.map +1 -1
  9. package/lib/components/dropdown/YDropdown.mjs +10 -4
  10. package/lib/components/dropdown/YDropdown.mjs.map +1 -1
  11. package/lib/components/field-input/YFieldInput.mjs.map +1 -1
  12. package/lib/components/field-input/YFieldInput.scss +1 -1
  13. package/lib/components/hover/YHover.mjs +11 -4
  14. package/lib/components/hover/YHover.mjs.map +1 -1
  15. package/lib/components/hover/index.mjs +2 -0
  16. package/lib/components/hover/index.mjs.map +1 -0
  17. package/lib/components/index.mjs +3 -0
  18. package/lib/components/index.mjs.map +1 -1
  19. package/lib/components/input/YInput.scss +1 -1
  20. package/lib/components/ip-field/YIpField.scss +74 -0
  21. package/lib/components/ip-field/YIpv4Field.mjs +297 -0
  22. package/lib/components/ip-field/YIpv4Field.mjs.map +1 -0
  23. package/lib/components/ip-field/index.mjs +2 -0
  24. package/lib/components/ip-field/index.mjs.map +1 -0
  25. package/lib/components/layer/YLayer.mjs +32 -12
  26. package/lib/components/layer/YLayer.mjs.map +1 -1
  27. package/lib/components/layer/base.mjs +1 -1
  28. package/lib/components/layer/base.mjs.map +1 -1
  29. package/lib/components/layer/content.mjs +22 -0
  30. package/lib/components/layer/content.mjs.map +1 -0
  31. package/lib/components/layer/scroll-strategies.mjs +1 -1
  32. package/lib/components/layer/scroll-strategies.mjs.map +1 -1
  33. package/lib/components/list/YListItem.mjs +1 -0
  34. package/lib/components/list/YListItem.mjs.map +1 -1
  35. package/lib/components/menu/YMenu.mjs +6 -11
  36. package/lib/components/menu/YMenu.mjs.map +1 -1
  37. package/lib/components/panel/YDividePanel.scss +1 -1
  38. package/lib/components/select/YSelect.mjs +8 -5
  39. package/lib/components/select/YSelect.mjs.map +1 -1
  40. package/lib/components/snackbar/YSnackbar.mjs +42 -37
  41. package/lib/components/snackbar/YSnackbar.mjs.map +1 -1
  42. package/lib/components/tab/YTab.scss +3 -3
  43. package/lib/components/tab/types.mjs.map +1 -1
  44. package/lib/components/table/YDataTableBody.mjs +1 -1
  45. package/lib/components/table/YDataTableBody.mjs.map +1 -1
  46. package/lib/components/table/YDataTableRow.mjs +30 -3
  47. package/lib/components/table/YDataTableRow.mjs.map +1 -1
  48. package/lib/components/table/composibles/header.mjs +1 -1
  49. package/lib/components/table/composibles/header.mjs.map +1 -1
  50. package/lib/components/table/composibles/items.mjs +3 -1
  51. package/lib/components/table/composibles/items.mjs.map +1 -1
  52. package/lib/components/table/composibles/selection.mjs.map +1 -1
  53. package/lib/components/table/composibles/sorting.mjs.map +1 -1
  54. package/lib/components/table/types/common.mjs.map +1 -1
  55. package/lib/components/table/types/header.mjs.map +1 -1
  56. package/lib/components/text-interpolation/YTi.mjs +46 -0
  57. package/lib/components/text-interpolation/YTi.mjs.map +1 -0
  58. package/lib/components/text-interpolation/index.mjs +2 -0
  59. package/lib/components/text-interpolation/index.mjs.map +1 -0
  60. package/lib/components/textarea/YTextarea.mjs +3 -1
  61. package/lib/components/textarea/YTextarea.mjs.map +1 -1
  62. package/lib/components/tooltip/YTooltip.mjs +1 -0
  63. package/lib/components/tooltip/YTooltip.mjs.map +1 -1
  64. package/lib/components/tree-view/YTreeViewNode.mjs +47 -21
  65. package/lib/components/tree-view/YTreeViewNode.mjs.map +1 -1
  66. package/lib/composables/coordinate/index.mjs.map +1 -1
  67. package/lib/composables/coordinate/levitation.mjs.map +1 -1
  68. package/lib/composables/icon.mjs.map +1 -1
  69. package/lib/composables/index.mjs +1 -0
  70. package/lib/composables/index.mjs.map +1 -1
  71. package/lib/composables/theme/index.mjs +6 -3
  72. package/lib/composables/theme/index.mjs.map +1 -1
  73. package/lib/index.mjs +1 -1
  74. package/lib/index.mjs.map +1 -1
  75. package/lib/util/parser.mjs +31 -0
  76. package/lib/util/parser.mjs.map +1 -0
  77. package/lib/util/string.mjs +30 -0
  78. package/lib/util/string.mjs.map +1 -1
  79. package/package.json +12 -11
  80. package/types/abstract/items.d.ts +5 -4
  81. package/types/components/alert/YAlert.d.ts +3 -2
  82. package/types/components/app/YApp.d.ts +3 -2
  83. package/types/components/badge/YBadge.d.ts +9 -8
  84. package/types/components/bench/YBench.d.ts +4 -0
  85. package/types/components/bench/index.d.ts +1 -0
  86. package/types/components/button/YButton.d.ts +27 -29
  87. package/types/components/card/YCard.d.ts +6 -3
  88. package/types/components/card/YCardBody.d.ts +1 -1
  89. package/types/components/card/YCardFooter.d.ts +1 -1
  90. package/types/components/card/YCardHeader.d.ts +1 -1
  91. package/types/components/checkbox/YCheckbox.d.ts +4 -3
  92. package/types/components/checkbox/YInputCheckbox.d.ts +7 -6
  93. package/types/components/checkbox/index.d.ts +1 -1
  94. package/types/components/chip/YChip.d.ts +3 -2
  95. package/types/components/date-picker/YDateCalendar.d.ts +16 -15
  96. package/types/components/date-picker/YDatePicker.d.ts +41 -40
  97. package/types/components/date-picker/YDatePickerControl.d.ts +29 -28
  98. package/types/components/date-picker/YMonthPicker.d.ts +6 -5
  99. package/types/components/date-picker/YYearPicker.d.ts +3 -2
  100. package/types/components/default-provider/YDefaultProvider.d.ts +0 -0
  101. package/types/components/default-provider/index.d.ts +0 -0
  102. package/types/components/dialog/YDialog.d.ts +416 -335
  103. package/types/components/divider/YDivider.d.ts +4 -3
  104. package/types/components/dropdown/YDropdown.d.ts +507 -61
  105. package/types/components/field-input/YFieldInput.d.ts +27 -26
  106. package/types/components/form/YForm.d.ts +9 -8
  107. package/types/components/hover/YHover.d.ts +79 -0
  108. package/types/components/hover/index.d.ts +1 -0
  109. package/types/components/icon/YIcon.d.ts +5 -4
  110. package/types/components/icons/YIconCheckbox.d.ts +5 -4
  111. package/types/components/icons/YIconClear.d.ts +1 -1
  112. package/types/components/icons/YIconDropdown.d.ts +1 -1
  113. package/types/components/icons/YIconExpand.d.ts +1 -1
  114. package/types/components/icons/YIconPageControl.d.ts +6 -5
  115. package/types/components/icons/YIconSort.d.ts +5 -4
  116. package/types/components/icons/index.d.ts +26 -26
  117. package/types/components/index.d.ts +3 -0
  118. package/types/components/input/YInput.d.ts +21 -20
  119. package/types/components/ip-field/YIpv4Field.d.ts +133 -0
  120. package/types/components/ip-field/index.d.ts +1 -0
  121. package/types/components/layer/YLayer.d.ts +154 -106
  122. package/types/components/layer/active-stack.d.ts +3 -2
  123. package/types/components/layer/base.d.ts +8 -7
  124. package/types/components/layer/content.d.ts +21 -0
  125. package/types/components/layer/scroll-strategies.d.ts +41 -0
  126. package/types/components/list/YList.d.ts +8 -7
  127. package/types/components/list/YListItem.d.ts +19 -13
  128. package/types/components/loading/YSpinnerRing.d.ts +2 -1
  129. package/types/components/menu/YMenu.d.ts +175 -125
  130. package/types/components/navigation/YNavigation.d.ts +1 -0
  131. package/types/components/navigation/index.d.ts +1 -0
  132. package/types/components/pagination/YPagination.d.ts +20 -19
  133. package/types/components/panel/YDividePanel.d.ts +4 -3
  134. package/types/components/plate/YPlate.d.ts +3 -2
  135. package/types/components/progress-bar/YProgressBar.d.ts +5 -4
  136. package/types/components/select/YSelect.d.ts +1304 -944
  137. package/types/components/snackbar/YSnackbar.d.ts +494 -30
  138. package/types/components/switch/YSwitch.d.ts +4 -3
  139. package/types/components/tab/YTab.d.ts +30 -29
  140. package/types/components/tab/YTabs.d.ts +12 -11
  141. package/types/components/tab/index.d.ts +1 -1
  142. package/types/components/tab/shared.d.ts +1 -0
  143. package/types/components/tab/types.d.ts +1 -1
  144. package/types/components/table/YDataTable.d.ts +225 -62
  145. package/types/components/table/YDataTableBody.d.ts +10 -9
  146. package/types/components/table/YDataTableCell.d.ts +6 -5
  147. package/types/components/table/YDataTableControl.d.ts +5 -4
  148. package/types/components/table/YDataTableHead.d.ts +10 -10
  149. package/types/components/table/YDataTableLayer.d.ts +4 -3
  150. package/types/components/table/YDataTableRow.d.ts +3 -2
  151. package/types/components/table/YDataTableServer.d.ts +225 -62
  152. package/types/components/table/YTable.d.ts +7 -6
  153. package/types/components/table/composibles/header.d.ts +103 -12
  154. package/types/components/table/composibles/items.d.ts +5 -4
  155. package/types/components/table/composibles/options.d.ts +2 -1
  156. package/types/components/table/composibles/pagination.d.ts +6 -5
  157. package/types/components/table/composibles/selection.d.ts +7 -5
  158. package/types/components/table/composibles/sorting.d.ts +26 -7
  159. package/types/components/table/types/common.d.ts +1 -0
  160. package/types/components/table/types/header.d.ts +3 -2
  161. package/types/components/table/types/index.d.ts +5 -4
  162. package/types/components/table/types/item.d.ts +1 -0
  163. package/types/components/table/types/row.d.ts +1 -0
  164. package/types/components/text-ellipsis/YTextEllipsis.d.ts +3 -2
  165. package/types/components/text-highlighter/YTextHighlighter.d.ts +3 -2
  166. package/types/components/text-highlighter/index.d.ts +1 -0
  167. package/types/components/text-interpolation/YTi.d.ts +20 -0
  168. package/types/components/text-interpolation/index.d.ts +1 -0
  169. package/types/components/textarea/YTextarea.d.ts +39 -39
  170. package/types/components/toggle-button/YToggleButton.d.ts +1 -0
  171. package/types/components/tooltip/YTooltip.d.ts +217 -150
  172. package/types/components/transitions/expand-transition.d.ts +4 -3
  173. package/types/components/transitions/index.d.ts +10 -10
  174. package/types/components/tree-view/YTreeView.d.ts +20 -13
  175. package/types/components/tree-view/YTreeViewNode.d.ts +42 -20
  176. package/types/components/tree-view/types.d.ts +2 -1
  177. package/types/components/tree-view/util.d.ts +1 -0
  178. package/types/composables/choice-link.d.ts +2 -1
  179. package/types/composables/choice.d.ts +3 -2
  180. package/types/composables/communication.d.ts +2 -1
  181. package/types/composables/component.d.ts +1 -0
  182. package/types/composables/coordinate/arrangement.d.ts +2 -1
  183. package/types/composables/coordinate/index.d.ts +23 -22
  184. package/types/composables/coordinate/levitation.d.ts +2 -1
  185. package/types/composables/coordinate/types.d.ts +2 -1
  186. package/types/composables/coordinate/utils/point.d.ts +1 -0
  187. package/types/composables/date/factory.d.ts +1 -0
  188. package/types/composables/date/index.d.ts +1 -0
  189. package/types/composables/date/setting.d.ts +2 -1
  190. package/types/composables/date/types.d.ts +2 -1
  191. package/types/composables/dimension.d.ts +4 -3
  192. package/types/composables/focus.d.ts +4 -3
  193. package/types/composables/form.d.ts +7 -6
  194. package/types/composables/i18n/index.d.ts +1 -0
  195. package/types/composables/i18n/locale.d.ts +2 -1
  196. package/types/composables/i18n/rtl.d.ts +2 -1
  197. package/types/composables/icon.d.ts +9 -10
  198. package/types/composables/index.d.ts +1 -0
  199. package/types/composables/layer-group.d.ts +3 -2
  200. package/types/composables/layout.d.ts +10 -0
  201. package/types/composables/list-items.d.ts +36 -35
  202. package/types/composables/progress.d.ts +1 -1
  203. package/types/composables/ref.d.ts +2 -1
  204. package/types/composables/resize-observer.d.ts +2 -2
  205. package/types/composables/scope.d.ts +2 -1
  206. package/types/composables/theme/factory.d.ts +1 -0
  207. package/types/composables/theme/index.d.ts +5 -4
  208. package/types/composables/theme/setting.d.ts +1 -0
  209. package/types/composables/timing.d.ts +2 -1
  210. package/types/composables/transition.d.ts +2 -1
  211. package/types/composables/validation.d.ts +19 -18
  212. package/types/composables/vue-router.d.ts +3 -3
  213. package/types/directives/complement-click/index.d.ts +1 -0
  214. package/types/directives/plate-wave/index.d.ts +2 -1
  215. package/types/directives/theme-class.d.ts +1 -0
  216. package/types/globals.d.ts +1 -1
  217. package/types/i18n/built-in.d.ts +2 -1
  218. package/types/i18n/types.d.ts +2 -1
  219. package/types/index.d.ts +2 -1
  220. package/types/locales/index.d.ts +2 -0
  221. package/types/locales/ko.d.ts +6 -0
  222. package/types/mixins/di.d.ts +1 -1
  223. package/types/mixins/rebind-attrs.d.ts +2 -2
  224. package/types/shims.d.ts +5 -45
  225. package/types/types/index.d.ts +2 -1
  226. package/types/util/anchor.d.ts +1 -1
  227. package/types/util/color/contrast/contrast.d.ts +74 -0
  228. package/types/util/color/conversion.d.ts +1 -0
  229. package/types/util/color/hct/cam16.d.ts +2 -17
  230. package/types/util/color/hct/hct-solver.d.ts +131 -0
  231. package/types/util/color/hct/hct.d.ts +2 -17
  232. package/types/util/color/hct/viewing-conditions.d.ts +58 -0
  233. package/types/util/color/index.d.ts +1 -1
  234. package/types/util/color/palettes/core-palette.d.ts +44 -0
  235. package/types/util/color/palettes/tonal-palette.d.ts +40 -0
  236. package/types/util/date/adapters/yuyeon-date-adapter.d.ts +1 -0
  237. package/types/util/date/built-in.d.ts +2 -1
  238. package/types/util/date/index.d.ts +1 -1
  239. package/types/util/parser.d.ts +4 -0
  240. package/types/util/reactivity.d.ts +3 -2
  241. package/types/util/string.d.ts +4 -0
  242. package/types/util/vue-component.d.ts +4 -3
@@ -1,6 +1,7 @@
1
1
  import { ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue';
2
2
  import { EventProp } from '../util/vue-component';
3
3
  import { ValidationProps } from './validation';
4
+
4
5
  export interface FormInput {
5
6
  id: number | string;
6
7
  vnode: VNode;
@@ -71,7 +72,7 @@ export declare const pressFormPropsOptions: <Defaults extends {
71
72
  } : Omit<{
72
73
  type: PropType<boolean | null>;
73
74
  default: null;
74
- }, "type" | "default"> & {
75
+ }, "default" | "type"> & {
75
76
  type: PropType<unknown extends Defaults["modelValue"] ? boolean | null : Defaults["modelValue"] | NonNullable<boolean | null>>;
76
77
  default: unknown extends Defaults["modelValue"] ? boolean | null : Defaults["modelValue"] | NonNullable<boolean | null>;
77
78
  };
@@ -81,7 +82,7 @@ export declare const pressFormPropsOptions: <Defaults extends {
81
82
  } : Omit<{
82
83
  type: PropType<string>;
83
84
  default: string;
84
- }, "type" | "default"> & {
85
+ }, "default" | "type"> & {
85
86
  type: PropType<unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"]>;
86
87
  default: unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"];
87
88
  };
@@ -89,7 +90,7 @@ export declare const pressFormPropsOptions: <Defaults extends {
89
90
  export declare function createForm(props: FormProps): {
90
91
  inputs: Ref<{
91
92
  id: string | number;
92
- vnode: VNode<import("vue").RendererNode, import("vue").RendererElement, {
93
+ vnode: VNode<import('vue').RendererNode, import('vue').RendererElement, {
93
94
  [key: string]: any;
94
95
  }>;
95
96
  validate: () => Promise<any[]>;
@@ -98,7 +99,7 @@ export declare function createForm(props: FormProps): {
98
99
  }[]>;
99
100
  errors: Ref<{
100
101
  id: string | number;
101
- vnode: VNode<import("vue").RendererNode, import("vue").RendererElement, {
102
+ vnode: VNode<import('vue').RendererNode, import('vue').RendererElement, {
102
103
  [key: string]: any;
103
104
  }>;
104
105
  exposed: any;
@@ -110,12 +111,12 @@ export declare function createForm(props: FormProps): {
110
111
  isDisabled: ComputedRef<boolean>;
111
112
  isReadonly: ComputedRef<boolean>;
112
113
  isLoading: ComputedRef<boolean>;
113
- isValidating: import("vue").ShallowRef<boolean>;
114
+ isValidating: import('vue').ShallowRef<boolean>;
114
115
  validate: () => Promise<{
115
116
  valid: boolean;
116
117
  errors: {
117
118
  id: string | number;
118
- vnode: VNode<import("vue").RendererNode, import("vue").RendererElement, {
119
+ vnode: VNode<import('vue').RendererNode, import('vue').RendererElement, {
119
120
  [key: string]: any;
120
121
  }>;
121
122
  exposed: any;
@@ -1,5 +1,6 @@
1
1
  import { LocaleModule, LocaleOptions } from '../../i18n/types';
2
2
  import { RtlModule, RtlOptions, RtlProps } from './rtl';
3
+
3
4
  export declare function createI18nModule(options?: LocaleOptions & RtlOptions): {
4
5
  localeModule: LocaleModule;
5
6
  rtlModule: RtlModule;
@@ -1,2 +1,3 @@
1
1
  import { LocaleOptions } from '../../i18n/types';
2
- export declare function createLocaleModule(options?: LocaleOptions): import("../../i18n/types").LocaleModule;
2
+
3
+ export declare function createLocaleModule(options?: LocaleOptions): import('../../i18n/types').LocaleModule;
@@ -1,5 +1,6 @@
1
- import type { Ref } from 'vue';
1
+ import { Ref } from 'vue';
2
2
  import { LocaleModule } from '../../i18n/types';
3
+
3
4
  export declare const YUYEON_RTL_KEY: unique symbol;
4
5
  export interface RtlOptions {
5
6
  rtlOptions: Record<string, boolean>;
@@ -1,5 +1,6 @@
1
1
  import { InjectionKey, PropType, Ref } from 'vue';
2
2
  import { JSXComponent } from '../types';
3
+
3
4
  type IconComponent = JSXComponent<IconProps>;
4
5
  export type IconValue = string | (string | [path: string, opacity: number])[] | IconComponent | {
5
6
  component: JSXComponent;
@@ -31,7 +32,7 @@ export declare const pressIconPropsOptions: <Defaults extends {
31
32
  type: PropType<IconValue>;
32
33
  } : Omit<{
33
34
  type: PropType<IconValue>;
34
- }, "type" | "default"> & {
35
+ }, "default" | "type"> & {
35
36
  type: PropType<unknown extends Defaults["icon"] ? IconValue : Defaults["icon"] | NonNullable<IconValue>>;
36
37
  default: unknown extends Defaults["icon"] ? IconValue : Defaults["icon"] | NonNullable<IconValue>;
37
38
  };
@@ -41,12 +42,12 @@ export declare const pressIconPropsOptions: <Defaults extends {
41
42
  } : Omit<{
42
43
  type: StringConstructor;
43
44
  required: true;
44
- }, "type" | "default"> & {
45
+ }, "default" | "type"> & {
45
46
  type: PropType<unknown extends Defaults["tag"] ? string : string | Defaults["tag"]>;
46
47
  default: unknown extends Defaults["tag"] ? string : string | Defaults["tag"];
47
48
  };
48
49
  };
49
- export declare const YComponentIcon: import("vue").DefineComponent<{
50
+ export declare const YComponentIcon: import('vue').DefineComponent<{
50
51
  icon: {
51
52
  type: PropType<IconValue>;
52
53
  };
@@ -54,7 +55,7 @@ export declare const YComponentIcon: import("vue").DefineComponent<{
54
55
  type: StringConstructor;
55
56
  required: true;
56
57
  };
57
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
58
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
58
59
  icon: {
59
60
  type: PropType<IconValue>;
60
61
  };
@@ -64,7 +65,7 @@ export declare const YComponentIcon: import("vue").DefineComponent<{
64
65
  };
65
66
  }>>, {}, {}>;
66
67
  export type YComponentIcon = InstanceType<typeof YComponentIcon>;
67
- export declare const YSvgIcon: import("vue").DefineComponent<{
68
+ export declare const YSvgIcon: import('vue').DefineComponent<{
68
69
  icon: {
69
70
  type: PropType<IconValue>;
70
71
  };
@@ -72,7 +73,7 @@ export declare const YSvgIcon: import("vue").DefineComponent<{
72
73
  type: StringConstructor;
73
74
  required: true;
74
75
  };
75
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
76
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
76
77
  icon: {
77
78
  type: PropType<IconValue>;
78
79
  };
@@ -83,14 +84,12 @@ export declare const YSvgIcon: import("vue").DefineComponent<{
83
84
  }>>, {}, {}>;
84
85
  export type YSvgIcon = InstanceType<typeof YSvgIcon>;
85
86
  export declare const YUYEON_ICON_KEY: InjectionKey<Required<IconModuleOptions>>;
86
- export declare function createIconModule(options?: IconModuleOptions): {
87
- [x: string]: any;
88
- };
87
+ export declare function createIconModule(options?: IconModuleOptions): Required<IconModuleOptions>;
89
88
  type IconInstance = {
90
89
  component: IconComponent;
91
90
  icon?: IconValue;
92
91
  };
93
92
  export declare function useIcon(iconProp: Ref<IconValue | undefined>): {
94
- iconData: import("vue").ComputedRef<IconInstance>;
93
+ iconData: import('vue').ComputedRef<IconInstance>;
95
94
  };
96
95
  export {};
@@ -7,3 +7,4 @@ export * from './scope';
7
7
  export * from './timing';
8
8
  export * from './transition';
9
9
  export * from './vue-router';
10
+ export * from './theme';
@@ -1,7 +1,8 @@
1
- import type { Ref, ComponentInternalInstance } from 'vue';
1
+ import { Ref, ComponentInternalInstance } from 'vue';
2
+
2
3
  export declare const Y_LAYER_GROUP_CLASS_NAME = "y-layer-group";
3
4
  export declare function useLayerGroup(target?: Ref<string | Element>): {
4
- layerGroup: import("vue").ComputedRef<HTMLElement>;
5
+ layerGroup: import('vue').ComputedRef<HTMLElement>;
5
6
  layerGroupState: WeakMap<HTMLElement, Set<any>>;
6
7
  getActiveLayers: () => ComponentInternalInstance[];
7
8
  };
@@ -0,0 +1,10 @@
1
+ import { InjectionKey } from 'vue';
2
+
3
+ declare function register(): void;
4
+ interface LayoutProvide {
5
+ register: typeof register;
6
+ unregister: (id: string) => void;
7
+ }
8
+ export declare const YUYEON_LAYOUT_KEY: InjectionKey<LayoutProvide>;
9
+ export declare function initLayoutSystem(): void;
10
+ export {};
@@ -1,4 +1,5 @@
1
- import type { ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes } from 'vue';
2
+
2
3
  export interface ListItem<T = any> {
3
4
  value: any;
4
5
  text: string;
@@ -13,25 +14,25 @@ export interface ListItem<T = any> {
13
14
  declare const listItemsPropsOptions: {
14
15
  returnItem: BooleanConstructor;
15
16
  items: {
16
- type: import("vue").PropType<any[]>;
17
+ type: import('vue').PropType<any[]>;
17
18
  default: () => never[];
18
19
  };
19
20
  itemKey: Omit<{
20
- type: import("vue").PropType<string>;
21
+ type: import('vue').PropType<string>;
21
22
  default: string;
22
- }, "type" | "default"> & {
23
- type: import("vue").PropType<string>;
23
+ }, "default" | "type"> & {
24
+ type: import('vue').PropType<string>;
24
25
  default: string;
25
26
  };
26
27
  itemText: {
27
- type: import("vue").PropType<string>;
28
+ type: import('vue').PropType<string>;
28
29
  default: string;
29
30
  };
30
31
  itemChildren: Omit<{
31
- type: import("vue").PropType<string | boolean>;
32
+ type: import('vue').PropType<string | boolean>;
32
33
  default: string;
33
- }, "type" | "default"> & {
34
- type: import("vue").PropType<NonNullable<string | boolean>>;
34
+ }, "default" | "type"> & {
35
+ type: import('vue').PropType<NonNullable<string | boolean>>;
35
36
  default: NonNullable<string | boolean>;
36
37
  };
37
38
  };
@@ -44,66 +45,66 @@ export declare const pressListItemsPropsOptions: <Defaults extends {
44
45
  itemChildren?: unknown;
45
46
  } = {}>(defaults?: Defaults | undefined) => {
46
47
  returnItem: unknown extends Defaults["returnItem"] ? BooleanConstructor : {
47
- type: import("vue").PropType<unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"]>;
48
+ type: import('vue').PropType<unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"]>;
48
49
  default: unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"];
49
50
  };
50
51
  items: unknown extends Defaults["items"] ? {
51
- type: import("vue").PropType<any[]>;
52
+ type: import('vue').PropType<any[]>;
52
53
  default: () => never[];
53
54
  } : Omit<{
54
- type: import("vue").PropType<any[]>;
55
+ type: import('vue').PropType<any[]>;
55
56
  default: () => never[];
56
- }, "type" | "default"> & {
57
- type: import("vue").PropType<unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"]>;
57
+ }, "default" | "type"> & {
58
+ type: import('vue').PropType<unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"]>;
58
59
  default: unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"];
59
60
  };
60
61
  itemKey: unknown extends Defaults["itemKey"] ? Omit<{
61
- type: import("vue").PropType<string>;
62
+ type: import('vue').PropType<string>;
62
63
  default: string;
63
- }, "type" | "default"> & {
64
- type: import("vue").PropType<string>;
64
+ }, "default" | "type"> & {
65
+ type: import('vue').PropType<string>;
65
66
  default: string;
66
67
  } : Omit<Omit<{
67
- type: import("vue").PropType<string>;
68
+ type: import('vue').PropType<string>;
68
69
  default: string;
69
- }, "type" | "default"> & {
70
- type: import("vue").PropType<string>;
70
+ }, "default" | "type"> & {
71
+ type: import('vue').PropType<string>;
71
72
  default: string;
72
- }, "type" | "default"> & {
73
- type: import("vue").PropType<unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"]>;
73
+ }, "default" | "type"> & {
74
+ type: import('vue').PropType<unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"]>;
74
75
  default: unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"];
75
76
  };
76
77
  itemText: unknown extends Defaults["itemText"] ? {
77
- type: import("vue").PropType<string>;
78
+ type: import('vue').PropType<string>;
78
79
  default: string;
79
80
  } : Omit<{
80
- type: import("vue").PropType<string>;
81
+ type: import('vue').PropType<string>;
81
82
  default: string;
82
- }, "type" | "default"> & {
83
- type: import("vue").PropType<unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"]>;
83
+ }, "default" | "type"> & {
84
+ type: import('vue').PropType<unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"]>;
84
85
  default: unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"];
85
86
  };
86
87
  itemChildren: unknown extends Defaults["itemChildren"] ? Omit<{
87
- type: import("vue").PropType<string | boolean>;
88
+ type: import('vue').PropType<string | boolean>;
88
89
  default: string;
89
- }, "type" | "default"> & {
90
- type: import("vue").PropType<NonNullable<string | boolean>>;
90
+ }, "default" | "type"> & {
91
+ type: import('vue').PropType<NonNullable<string | boolean>>;
91
92
  default: NonNullable<string | boolean>;
92
93
  } : Omit<Omit<{
93
- type: import("vue").PropType<string | boolean>;
94
+ type: import('vue').PropType<string | boolean>;
94
95
  default: string;
95
- }, "type" | "default"> & {
96
- type: import("vue").PropType<NonNullable<string | boolean>>;
96
+ }, "default" | "type"> & {
97
+ type: import('vue').PropType<NonNullable<string | boolean>>;
97
98
  default: NonNullable<string | boolean>;
98
- }, "type" | "default"> & {
99
- type: import("vue").PropType<unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>>;
99
+ }, "default" | "type"> & {
100
+ type: import('vue').PropType<unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>>;
100
101
  default: unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>;
101
102
  };
102
103
  };
103
104
  export declare function refineListItems(props: Omit<ListItemProps, 'items'>, items: any[]): ListItem<any>[];
104
105
  export declare function refineListItem(props: Omit<ListItemProps, 'items'>, item: any): ListItem;
105
106
  export declare function useItems(props: ListItemProps): {
106
- items: import("vue").ComputedRef<ListItem<any>[]>;
107
+ items: import('vue').ComputedRef<ListItem<any>[]>;
107
108
  toEmitItems: (items: any[]) => any[];
108
109
  toRefineItems: (values: any[]) => ListItem<any>[];
109
110
  };
@@ -1,3 +1,3 @@
1
1
  export declare function useProgress(props: any): {
2
- numValue: import("vue").ComputedRef<number>;
2
+ numValue: import('vue').ComputedRef<number>;
3
3
  };
@@ -1,4 +1,5 @@
1
- import { Ref } from "vue";
1
+ import { Ref } from 'vue';
2
+
2
3
  export declare function useRefs<T extends {}>(): {
3
4
  refs: Ref<(T | undefined)[]>;
4
5
  updateRef: (e: any, i: number) => void;
@@ -1,6 +1,6 @@
1
1
  export declare function useResizeObserver(callback?: ResizeObserverCallback): {
2
- resizeObservedRef: import("vue").Ref<HTMLElement | undefined>;
3
- contentRect: Readonly<import("vue").Ref<{
2
+ resizeObservedRef: import('vue').Ref<HTMLElement | undefined>;
3
+ contentRect: Readonly<import('vue').Ref<{
4
4
  readonly bottom: number;
5
5
  readonly height: number;
6
6
  readonly left: number;
@@ -1,2 +1,3 @@
1
- import type { WatchSource } from 'vue';
1
+ import { WatchSource } from 'vue';
2
+
2
3
  export declare function useToggleScope(source: WatchSource<boolean>, fn: (reset: () => void) => void): void;
@@ -1,3 +1,4 @@
1
1
  import { ThemeDefinition } from './types';
2
+
2
3
  export declare function createThemes(options: Record<string, any>): Record<string, ThemeDefinition>;
3
4
  export declare function createPalette(options: Record<string, string | any>): Record<string, string>;
@@ -1,6 +1,7 @@
1
- import type { App, ComputedRef, PropType, Ref } from 'vue';
1
+ import { App, ComputedRef, PropType, Ref } from 'vue';
2
2
  import { ThemeScheme } from './setting';
3
- import type { ThemeOptions } from './types';
3
+ import { ThemeOptions } from './types';
4
+
4
5
  export type { ThemeOptions };
5
6
  export declare const Y_THEME_PREFIX = "y-theme";
6
7
  export interface ThemeModuleInstance {
@@ -32,7 +33,7 @@ export declare function isSupportAutoScheme(): boolean;
32
33
  export declare function createThemeModule(options: ThemeOptions): {
33
34
  install: (app: App) => void;
34
35
  init: (yuyeon: any) => void;
35
- scope: import("vue").EffectScope;
36
+ scope: import('vue').EffectScope;
36
37
  instance: {
37
38
  global: {
38
39
  scheme: Ref<string>;
@@ -43,7 +44,7 @@ export declare function createThemeModule(options: ThemeOptions): {
43
44
  theme: Ref<[string, string]>;
44
45
  currentThemeKey: ComputedRef<string>;
45
46
  themeClasses: ComputedRef<string>;
46
- computedThemes: ComputedRef<Record<string, import("./types").ThemeDefinition>>;
47
+ computedThemes: ComputedRef<Record<string, import('./types').ThemeDefinition>>;
47
48
  computedPalette: ComputedRef<Record<string, string>>;
48
49
  supportedAutoMode: Readonly<Ref<boolean>>;
49
50
  preferColorScheme: Readonly<Ref<string>>;
@@ -1,4 +1,5 @@
1
1
  import { PaletteOption, ThemeOptions } from './types';
2
+
2
3
  export declare const ThemeScheme: {
3
4
  readonly light: "light";
4
5
  readonly dark: "dark";
@@ -1,7 +1,8 @@
1
1
  import { Ref, MaybeRef } from 'vue';
2
+
2
3
  export declare function useLazy(eager: Ref<boolean | undefined>, updated: Ref<any>): {
3
4
  entered: Ref<boolean>;
4
- lazyValue: import("vue").ComputedRef<any>;
5
+ lazyValue: import('vue').ComputedRef<any>;
5
6
  onAfterUpdate: () => void;
6
7
  };
7
8
  export declare function useTimer(cb: () => void, duration: MaybeRef<number>, options?: {
@@ -1,4 +1,5 @@
1
1
  import { Component, FunctionalComponent, PropType, TransitionProps } from 'vue';
2
+
2
3
  export declare const polyTransitionPropOptions: {
3
4
  transition: {
4
5
  type: PropType<string | (TransitionProps & {
@@ -10,7 +11,7 @@ export declare const polyTransitionPropOptions: {
10
11
  export declare function usePolyTransition(props: {
11
12
  transition: any;
12
13
  }): {
13
- polyTransitionBindProps: import("vue").ComputedRef<{
14
+ polyTransitionBindProps: import('vue').ComputedRef<{
14
15
  is: any;
15
16
  transitionProps: any;
16
17
  }>;
@@ -1,4 +1,5 @@
1
1
  import { PropType } from 'vue';
2
+
2
3
  export interface ValidationProps {
3
4
  validateOn: 'input' | 'blur' | 'lazy' | 'submit' | string;
4
5
  }
@@ -21,14 +22,14 @@ export declare const pressValidationPropsOptions: <Defaults extends {
21
22
  default: unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"];
22
23
  };
23
24
  status: unknown extends Defaults["status"] ? {
24
- type: PropType<"error" | "success" | "warning" | undefined>;
25
+ type: PropType<"error" | "warning" | "success" | undefined>;
25
26
  validator(value: string): boolean;
26
27
  } : Omit<{
27
- type: PropType<"error" | "success" | "warning" | undefined>;
28
+ type: PropType<"error" | "warning" | "success" | undefined>;
28
29
  validator(value: string): boolean;
29
- }, "type" | "default"> & {
30
- type: PropType<unknown extends Defaults["status"] ? "error" | "success" | "warning" | undefined : Defaults["status"] | NonNullable<"error" | "success" | "warning" | undefined>>;
31
- default: unknown extends Defaults["status"] ? "error" | "success" | "warning" | undefined : Defaults["status"] | NonNullable<"error" | "success" | "warning" | undefined>;
30
+ }, "default" | "type"> & {
31
+ type: PropType<unknown extends Defaults["status"] ? "error" | "warning" | "success" | undefined : Defaults["status"] | NonNullable<"error" | "warning" | "success" | undefined>>;
32
+ default: unknown extends Defaults["status"] ? "error" | "warning" | "success" | undefined : Defaults["status"] | NonNullable<"error" | "warning" | "success" | undefined>;
32
33
  };
33
34
  helperText: unknown extends Defaults["helperText"] ? StringConstructor : {
34
35
  type: PropType<unknown extends Defaults["helperText"] ? string : string | Defaults["helperText"]>;
@@ -42,7 +43,7 @@ export declare const pressValidationPropsOptions: <Defaults extends {
42
43
  type: PropType<string>;
43
44
  } : Omit<{
44
45
  type: PropType<string>;
45
- }, "type" | "default"> & {
46
+ }, "default" | "type"> & {
46
47
  type: PropType<unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"]>;
47
48
  default: unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"];
48
49
  };
@@ -56,26 +57,26 @@ export declare const pressValidationPropsOptions: <Defaults extends {
56
57
  } : Omit<{
57
58
  type: PropType<string | number>;
58
59
  default: number;
59
- }, "type" | "default"> & {
60
- type: PropType<unknown extends Defaults["maxErrors"] ? string | number : NonNullable<string | number> | Defaults["maxErrors"]>;
61
- default: unknown extends Defaults["maxErrors"] ? string | number : NonNullable<string | number> | Defaults["maxErrors"];
60
+ }, "default" | "type"> & {
61
+ type: PropType<unknown extends Defaults["maxErrors"] ? string | number : Defaults["maxErrors"] | NonNullable<string | number>>;
62
+ default: unknown extends Defaults["maxErrors"] ? string | number : Defaults["maxErrors"] | NonNullable<string | number>;
62
63
  };
63
64
  };
64
65
  export declare function useValidation(props: any, name: string, uid?: number | undefined): {
65
66
  invokeValidators: () => Promise<any[]>;
66
67
  resetError: () => void;
67
- validating: import("vue").Ref<boolean>;
68
- validateOn: import("vue").ComputedRef<{
68
+ validating: import('vue').Ref<boolean>;
69
+ validateOn: import('vue').ComputedRef<{
69
70
  blur: boolean;
70
71
  input: boolean;
71
72
  lazy: boolean;
72
73
  submit: boolean;
73
74
  }>;
74
- errorResult: import("vue").Ref<any>;
75
- errors: import("vue").Ref<any[]>;
76
- isReadonly: import("vue").ComputedRef<any>;
77
- isDisabled: import("vue").ComputedRef<any>;
78
- isLoading: import("vue").ComputedRef<any>;
79
- isError: import("vue").ComputedRef<boolean>;
80
- isSuccess: import("vue").ComputedRef<boolean>;
75
+ errorResult: import('vue').Ref<any>;
76
+ errors: import('vue').Ref<any[]>;
77
+ isReadonly: import('vue').ComputedRef<any>;
78
+ isDisabled: import('vue').ComputedRef<any>;
79
+ isLoading: import('vue').ComputedRef<any>;
80
+ isError: import('vue').ComputedRef<boolean>;
81
+ isSuccess: import('vue').ComputedRef<boolean>;
81
82
  };
@@ -1,7 +1,7 @@
1
- import type { ComputedRef, PropType, Ref, SetupContext } from 'vue';
2
- import type { RouteLocationRaw } from 'vue-router';
3
- import { useLink as _useLink } from 'vue-router';
1
+ import { ComputedRef, PropType, Ref, SetupContext } from 'vue';
2
+ import { RouteLocationRaw, useLink as _useLink } from 'vue-router';
4
3
  import { EventProp } from '../util';
4
+
5
5
  export interface LinkProps {
6
6
  href: string | undefined;
7
7
  replace: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  import { DirectiveBinding } from 'vue';
2
+
2
3
  interface ComplementClickDirectiveElementImplanted {
3
4
  onClick: EventListener;
4
5
  onMousedown: EventListener;
@@ -1,4 +1,5 @@
1
- import type { DirectiveBinding } from 'vue';
1
+ import { DirectiveBinding } from 'vue';
2
+
2
3
  export interface PlateWaveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
3
4
  value?: boolean;
4
5
  modifiers: {
@@ -1,3 +1,4 @@
1
1
  import { FunctionDirective } from 'vue';
2
+
2
3
  declare const bindThemeClass: FunctionDirective;
3
4
  export default bindThemeClass;
@@ -1,5 +1,5 @@
1
+ import { VNode } from 'vue';
1
2
 
2
- import type { VNode } from "vue";
3
3
 
4
4
  declare global {
5
5
  namespace JSX {
@@ -1,2 +1,3 @@
1
- import type { LocaleModule, LocaleOptions } from './types';
1
+ import { LocaleModule, LocaleOptions } from './types';
2
+
2
3
  export declare function constructYuyeonI18nAdapter(options?: LocaleOptions): LocaleModule;
@@ -1,4 +1,5 @@
1
- import type { Ref } from 'vue';
1
+ import { Ref } from 'vue';
2
+
2
3
  export type LocaleMessages = {
3
4
  [key: string]: LocaleMessages | string;
4
5
  };
package/types/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import type { App } from 'vue';
1
+ import { App } from 'vue';
2
2
  import { useTheme } from './composables/theme';
3
+
3
4
  declare module 'vue' {
4
5
  interface ComponentCustomProperties {
5
6
  $yuyeon: any;
@@ -0,0 +1,2 @@
1
+ export { default as en } from './en';
2
+ export { default as ko } from './ko';
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ search: string;
3
+ noItems: string;
4
+ noData: string;
5
+ };
6
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -1,5 +1,5 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {
2
2
  attrs_$: any;
3
3
  listeners_$: any;
4
- }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
4
+ }, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
5
5
  export default _default;