@pixelium/web-vue 0.0.3 → 0.0.5

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 (127) hide show
  1. package/dist/index.d.ts +162 -120
  2. package/dist/pixelium-vue.cjs +1 -1
  3. package/dist/pixelium-vue.css +1 -1
  4. package/dist/pixelium-vue.js +19 -21
  5. package/dist/pixelium-vue.umd.cjs +1 -1
  6. package/es/alert/index.d.ts +3 -2
  7. package/es/alert/type.d.ts +15 -15
  8. package/es/aside/index.d.ts +3 -2
  9. package/es/auto-complete/index.css +1 -2
  10. package/es/auto-complete/index.d.ts +2 -1
  11. package/es/avatar/index.d.ts +3 -2
  12. package/es/back-top/index.d.ts +21 -0
  13. package/es/back-top/type.d.ts +46 -0
  14. package/es/badge/draw.d.ts +1 -0
  15. package/es/badge/index.d.ts +26 -0
  16. package/es/badge/type.d.ts +69 -0
  17. package/es/breadcrumb/index.d.ts +12 -0
  18. package/es/breadcrumb/type.d.ts +52 -0
  19. package/es/breadcrumb-item/index.d.ts +27 -0
  20. package/es/breadcrumb-item/type.d.ts +49 -0
  21. package/es/button/index.css +1 -8
  22. package/es/button/index.d.ts +3 -2
  23. package/es/button-group/index.d.ts +3 -2
  24. package/es/checkbox/index.d.ts +3 -2
  25. package/es/checkbox-group/index.d.ts +3 -2
  26. package/es/col/index.d.ts +3 -2
  27. package/es/container/index.d.ts +3 -2
  28. package/es/dialog/dialog-wrapped.d.ts +9 -8
  29. package/es/dialog/dialog.d.ts +9 -8
  30. package/es/dialog/type.d.ts +58 -58
  31. package/es/divider/index.d.ts +2 -1
  32. package/es/drop-down/index.d.ts +36 -0
  33. package/es/drop-down/type.d.ts +140 -0
  34. package/es/drop-down-list/index.d.ts +10 -0
  35. package/es/drop-down-list/type.d.ts +19 -0
  36. package/es/empty/index.d.ts +3 -2
  37. package/es/footer/index.d.ts +3 -2
  38. package/es/form/index.d.ts +3 -2
  39. package/es/form-item/index.d.ts +9 -8
  40. package/es/grid/index.d.ts +3 -2
  41. package/es/grid-item/index.d.ts +3 -2
  42. package/es/header/index.d.ts +3 -2
  43. package/es/icon/index.d.ts +3 -2
  44. package/es/image/index.d.ts +3 -2
  45. package/es/index.d.ts +1 -1
  46. package/es/index.js +1 -1
  47. package/es/input/index.css +1 -2
  48. package/es/input/index.d.ts +7 -6
  49. package/es/input-group/index.d.ts +3 -2
  50. package/es/input-group-label/index.d.ts +3 -2
  51. package/es/input-number/index.css +1 -2
  52. package/es/input-number/index.d.ts +5 -4
  53. package/es/input-tag/index.css +2 -2
  54. package/es/input-tag/index.d.ts +13 -12
  55. package/es/link/index.css +1 -6
  56. package/es/link/index.d.ts +3 -2
  57. package/es/main/index.d.ts +3 -2
  58. package/es/mask/index.d.ts +2 -1
  59. package/es/menu/index.d.ts +24 -0
  60. package/es/menu/type.d.ts +145 -0
  61. package/es/menu-group/index.d.ts +16 -0
  62. package/es/menu-group/type.d.ts +19 -0
  63. package/es/menu-item/index.d.ts +26 -0
  64. package/es/menu-item/type.d.ts +44 -0
  65. package/es/message/index.d.ts +2 -1
  66. package/es/message-box/message-box-wrapped.d.ts +2 -1
  67. package/es/message-box/message-box.d.ts +2 -1
  68. package/es/option-list/index.d.ts +2 -1
  69. package/es/popconfirm/index.d.ts +32 -0
  70. package/es/popconfirm/type.d.ts +199 -0
  71. package/es/popover/index.d.ts +2 -1
  72. package/es/popup/index.d.ts +2 -1
  73. package/es/popup/use-mouse-position.d.ts +1 -0
  74. package/es/popup/util.d.ts +6 -0
  75. package/es/popup-content/index.d.ts +5 -4
  76. package/es/popup-portal/index.d.ts +5 -4
  77. package/es/popup-trigger/index.d.ts +2 -1
  78. package/es/popup-wrapper/index.d.ts +5 -4
  79. package/es/popup-wrapper/use-popup-wrapper-manager.d.ts +22 -1
  80. package/es/progress/draw.d.ts +6 -0
  81. package/es/progress/index.d.ts +32 -0
  82. package/es/progress/type.d.ts +67 -0
  83. package/es/radio/index.d.ts +3 -2
  84. package/es/radio-group/index.d.ts +3 -2
  85. package/es/row/index.d.ts +3 -2
  86. package/es/scroll-bar/index.d.ts +40 -0
  87. package/es/scroll-bar/type.d.ts +85 -0
  88. package/es/scroll-bar/use-scroll-bar.d.ts +1 -0
  89. package/es/select/index.css +2 -3
  90. package/es/select/index.d.ts +2 -1
  91. package/es/share/hook/use-expand.d.ts +2 -0
  92. package/es/share/hook/use-hidden-measure.d.ts +1 -0
  93. package/es/share/hook/use-pixel-size.d.ts +1 -0
  94. package/es/share/util/locale.d.ts +8 -0
  95. package/es/share/util/scroll.d.ts +2 -0
  96. package/es/slider/index.d.ts +16 -15
  97. package/es/space/index.d.ts +2 -1
  98. package/es/spin/index.d.ts +6 -5
  99. package/es/submenu/index.d.ts +28 -0
  100. package/es/submenu/type.d.ts +60 -0
  101. package/es/switch/index.d.ts +3 -2
  102. package/es/table/index.d.ts +68 -0
  103. package/es/table/module/cell-span.d.ts +7 -0
  104. package/es/table/module/column.d.ts +46 -0
  105. package/es/table/module/draw.d.ts +11 -0
  106. package/es/table/module/event.d.ts +9 -0
  107. package/es/table/module/expandable.d.ts +20 -0
  108. package/es/table/module/filterable.d.ts +9 -0
  109. package/es/table/module/selection.d.ts +20 -0
  110. package/es/table/module/share.d.ts +8 -0
  111. package/es/table/module/sortable.d.ts +10 -0
  112. package/es/table/module/summary.d.ts +2 -0
  113. package/es/table/type.d.ts +733 -0
  114. package/es/tag/index.css +3 -3
  115. package/es/tag/index.d.ts +3 -2
  116. package/es/text-outline/index.d.ts +3 -2
  117. package/es/textarea/index.css +1 -2
  118. package/es/textarea/index.d.ts +5 -4
  119. package/es/theme/theme.d.ts +21 -0
  120. package/es/{share/util → theme}/theme.js +22 -22
  121. package/es/tooltip/index.d.ts +2 -1
  122. package/es/vendor.js +1 -1
  123. package/es/virtual-list/index.d.ts +2 -1
  124. package/package.json +1 -1
  125. package/es/share/hook/use-props-detect.d.ts +0 -2
  126. package/es/share/util/pixel.d.ts +0 -4
  127. package/es/share/util/theme.d.ts +0 -7
@@ -4,7 +4,7 @@ declare var __VLS_1: {};
4
4
  type __VLS_Slots = {} & {
5
5
  default?: (props: typeof __VLS_1) => any;
6
6
  };
7
- declare const __VLS_component: import("vue").DefineComponent<GridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridProps> & Readonly<{}>, {
7
+ declare const __VLS_base: import("vue").DefineComponent<GridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridProps> & Readonly<{}>, {
8
8
  gutter: number | {
9
9
  x?: number;
10
10
  y?: number;
@@ -14,7 +14,8 @@ declare const __VLS_component: import("vue").DefineComponent<GridProps, {}, {},
14
14
  }>;
15
15
  column: number | ValueWithDeviceWidth<number>;
16
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
18
19
  export default _default;
19
20
  type __VLS_WithSlots<T, S> = T & {
20
21
  new (): {
@@ -3,10 +3,11 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<GridItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridItemProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<GridItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridItemProps> & Readonly<{}>, {
7
7
  offset: number | import("..").ValueWithDeviceWidth<number>;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
11
12
  type __VLS_WithSlots<T, S> = T & {
12
13
  new (): {
@@ -3,10 +3,11 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<HeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeaderProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<HeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeaderProps> & Readonly<{}>, {
7
7
  dark: boolean;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
11
12
  type __VLS_WithSlots<T, S> = T & {
12
13
  new (): {
@@ -3,14 +3,15 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {
7
7
  size: number | string;
8
8
  color: string;
9
9
  rotate: number;
10
10
  spin: boolean;
11
11
  flip: "horizontal" | "vertical" | "both" | "none";
12
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
15
16
  type __VLS_WithSlots<T, S> = T & {
16
17
  new (): {
@@ -5,7 +5,7 @@ type __VLS_Slots = {} & {
5
5
  } & {
6
6
  error?: (props: typeof __VLS_3) => any;
7
7
  };
8
- declare const __VLS_component: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ declare const __VLS_base: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  error: (img: HTMLImageElement, error: string | Event) => any;
10
10
  close: (event: MouseEvent) => any;
11
11
  load: (img: HTMLImageElement, event: Event) => any;
@@ -26,7 +26,8 @@ declare const __VLS_component: import("vue").DefineComponent<ImageProps, {}, {},
26
26
  referrerpolicy: string;
27
27
  crossorigin: "anonymous" | "use-credentials" | "";
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
30
31
  export default _default;
31
32
  type __VLS_WithSlots<T, S> = T & {
32
33
  new (): {
package/es/index.d.ts CHANGED
@@ -15,7 +15,7 @@ import Main from './main/index.ts';
15
15
  import Aside from './aside/index.ts';
16
16
  import Header from './header/index.ts';
17
17
  import Footer from './footer/index.ts';
18
- import { setThemeColor, resetThemeColor, setPixelSize, resetPixelSize } from './share/util/theme.ts';
18
+ import { setThemeColor, resetThemeColor, setPixelSize, resetPixelSize } from './theme/theme.ts';
19
19
  import { useThemeMode } from './share/hook/use-theme-mode.ts';
20
20
  import Icon from './icon/index.ts';
21
21
  import Input from './input/index.ts';
package/es/index.js CHANGED
@@ -34,7 +34,7 @@ import { t as aside_default } from "./aside/index.js";
34
34
  import { t as header_default } from "./header/index.js";
35
35
  import { t as footer_default } from "./footer/index.js";
36
36
  import "./share/util/console.js";
37
- import { i as setThemeColor, n as resetThemeColor, r as setPixelSize, t as resetPixelSize } from "./share/util/theme.js";
37
+ import { i as setThemeColor, n as resetThemeColor, r as setPixelSize, t as resetPixelSize } from "./theme/theme.js";
38
38
  import { t as useThemeMode } from "./share/hook/use-theme-mode.js";
39
39
  import { t as icon_default } from "./icon/index.js";
40
40
  import "./input/draw.js";
@@ -25,8 +25,7 @@
25
25
  padding: 0;
26
26
  }
27
27
  .px-input-inner:focus-visible {
28
- outline-color: var(--px-neutral-10);
29
- outline-offset: var(--px-bit);
28
+ outline: none;
30
29
  }
31
30
  .px-input-inner:disabled {
32
31
  color: var(--px-neutral-10);
@@ -1,17 +1,17 @@
1
1
  import type { InputExpose, InputProps } from './type';
2
- declare var __VLS_1: {}, __VLS_27: {
2
+ declare var __VLS_1: {}, __VLS_24: {
3
3
  value: string | import("parsnip-kit").Nullish;
4
4
  count: number;
5
5
  maxLength: number | undefined;
6
- }, __VLS_34: {};
6
+ }, __VLS_31: {};
7
7
  type __VLS_Slots = {} & {
8
8
  prefix?: (props: typeof __VLS_1) => any;
9
9
  } & {
10
- count?: (props: typeof __VLS_27) => any;
10
+ count?: (props: typeof __VLS_24) => any;
11
11
  } & {
12
- suffix?: (props: typeof __VLS_34) => any;
12
+ suffix?: (props: typeof __VLS_31) => any;
13
13
  };
14
- declare const __VLS_component: import("vue").DefineComponent<InputProps, InputExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ declare const __VLS_base: import("vue").DefineComponent<InputProps, InputExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
15
  clear: (value: string) => any;
16
16
  change: (value: string, e?: Event | undefined) => any;
17
17
  blur: (e: FocusEvent) => any;
@@ -34,7 +34,8 @@ declare const __VLS_component: import("vue").DefineComponent<InputProps, InputEx
34
34
  showCount: boolean;
35
35
  status: "success" | "warning" | "error" | "normal";
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
38
39
  export default _default;
39
40
  type __VLS_WithSlots<T, S> = T & {
40
41
  new (): {
@@ -3,12 +3,13 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<InputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<InputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupProps> & Readonly<{}>, {
7
7
  disabled: boolean;
8
8
  readonly: boolean;
9
9
  shape: "rect" | "round" | "default";
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
12
13
  export default _default;
13
14
  type __VLS_WithSlots<T, S> = T & {
14
15
  new (): {
@@ -3,8 +3,9 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<InputGroupLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
6
+ declare const __VLS_base: import("vue").DefineComponent<InputGroupLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
9
10
  type __VLS_WithSlots<T, S> = T & {
10
11
  new (): {
@@ -24,8 +24,7 @@
24
24
  padding: 0;
25
25
  }
26
26
  .px-input-number-inner:focus-visible {
27
- outline-color: var(--px-neutral-10);
28
- outline-offset: var(--px-bit);
27
+ outline: none;
29
28
  }
30
29
  .px-input-number-inner:disabled {
31
30
  color: var(--px-neutral-10);
@@ -1,11 +1,11 @@
1
1
  import type { InputNumberExpose, InputNumberProps } from './type';
2
- declare var __VLS_1: {}, __VLS_60: {};
2
+ declare var __VLS_1: {}, __VLS_55: {};
3
3
  type __VLS_Slots = {} & {
4
4
  prefix?: (props: typeof __VLS_1) => any;
5
5
  } & {
6
- suffix?: (props: typeof __VLS_60) => any;
6
+ suffix?: (props: typeof __VLS_55) => any;
7
7
  };
8
- declare const __VLS_component: import("vue").DefineComponent<InputNumberProps, InputNumberExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ declare const __VLS_base: import("vue").DefineComponent<InputNumberProps, InputNumberExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  clear: (value: number) => any;
10
10
  change: (value: number, e?: Event | undefined) => any;
11
11
  blur: (e: FocusEvent) => any;
@@ -31,7 +31,8 @@ declare const __VLS_component: import("vue").DefineComponent<InputNumberProps, I
31
31
  strickStep: boolean;
32
32
  buttonPlacement: "start" | "end" | "both" | "start-reverse" | "end-reverse" | "both-reverse";
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
35
36
  export default _default;
36
37
  type __VLS_WithSlots<T, S> = T & {
37
38
  new (): {
@@ -9,6 +9,7 @@
9
9
  color: var(--px-neutral-10);
10
10
  display: flex;
11
11
  box-sizing: border-box;
12
+ min-height: var(--input-size);
12
13
  cursor: text;
13
14
  transition: 0.25s;
14
15
  flex-grow: 1;
@@ -130,8 +131,7 @@
130
131
  padding: 0;
131
132
  }
132
133
  .px-input-tag-inner:focus-visible {
133
- outline-color: var(--px-neutral-10);
134
- outline-offset: var(--px-bit);
134
+ outline: none;
135
135
  }
136
136
  .px-input-tag-inner:disabled {
137
137
  color: var(--px-neutral-10);
@@ -1,31 +1,31 @@
1
1
  import type { InputTagExpose, InputTagProps } from './type';
2
- declare var __VLS_1: {}, __VLS_10: {
2
+ declare var __VLS_1: {}, __VLS_11: {
3
3
  tag: string;
4
4
  index: number;
5
- }, __VLS_16: {
5
+ }, __VLS_19: {
6
6
  tag: string;
7
7
  index: number;
8
- }, __VLS_26: {
8
+ }, __VLS_33: {
9
9
  tag: string;
10
10
  index: number;
11
- }, __VLS_36: {
11
+ }, __VLS_44: {
12
12
  tag: string;
13
13
  index: number;
14
- }, __VLS_51: {};
14
+ }, __VLS_58: {};
15
15
  type __VLS_Slots = {} & {
16
16
  prefix?: (props: typeof __VLS_1) => any;
17
17
  } & {
18
- tag?: (props: typeof __VLS_10) => any;
18
+ tag?: (props: typeof __VLS_11) => any;
19
19
  } & {
20
- tag?: (props: typeof __VLS_16) => any;
20
+ tag?: (props: typeof __VLS_19) => any;
21
21
  } & {
22
- tag?: (props: typeof __VLS_26) => any;
22
+ tag?: (props: typeof __VLS_33) => any;
23
23
  } & {
24
- tag?: (props: typeof __VLS_36) => any;
24
+ tag?: (props: typeof __VLS_44) => any;
25
25
  } & {
26
- suffix?: (props: typeof __VLS_51) => any;
26
+ suffix?: (props: typeof __VLS_58) => any;
27
27
  };
28
- declare const __VLS_component: import("vue").DefineComponent<InputTagProps, InputTagExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ declare const __VLS_base: import("vue").DefineComponent<InputTagProps, InputTagExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
29
  clear: (value: string[]) => any;
30
30
  change: (value: string[]) => any;
31
31
  blur: (e: FocusEvent) => any;
@@ -58,7 +58,8 @@ declare const __VLS_component: import("vue").DefineComponent<InputTagProps, Inpu
58
58
  tagTheme: "primary" | "sakura" | "success" | "warning" | "danger" | "info";
59
59
  tagVariant: "primary" | "plain" | "outline";
60
60
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
61
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
61
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
62
+ declare const _default: typeof __VLS_export;
62
63
  export default _default;
63
64
  type __VLS_WithSlots<T, S> = T & {
64
65
  new (): {
package/es/link/index.css CHANGED
@@ -4,6 +4,7 @@
4
4
  color: var(--text-color);
5
5
  cursor: pointer;
6
6
  transition: 0.25s;
7
+ outline-offset: var(--px-bit);
7
8
  }
8
9
  .px-link-icon-wrapper {
9
10
  margin-right: 4px;
@@ -29,7 +30,6 @@
29
30
  }
30
31
  .px-link.px-link__primary:focus-visible {
31
32
  outline-color: var(--px-primary-6);
32
- outline-offset: var(--px-bit);
33
33
  }
34
34
  .px-link.px-link__primary.px-link__disabled {
35
35
  --text-color: var(--px-primary-2);
@@ -53,7 +53,6 @@
53
53
  }
54
54
  .px-link.px-link__sakura:focus-visible {
55
55
  outline-color: var(--px-sakura-6);
56
- outline-offset: var(--px-bit);
57
56
  }
58
57
  .px-link.px-link__sakura.px-link__disabled {
59
58
  --text-color: var(--px-sakura-2);
@@ -77,7 +76,6 @@
77
76
  }
78
77
  .px-link.px-link__success:focus-visible {
79
78
  outline-color: var(--px-success-6);
80
- outline-offset: var(--px-bit);
81
79
  }
82
80
  .px-link.px-link__success.px-link__disabled {
83
81
  --text-color: var(--px-success-2);
@@ -101,7 +99,6 @@
101
99
  }
102
100
  .px-link.px-link__warning:focus-visible {
103
101
  outline-color: var(--px-warning-6);
104
- outline-offset: var(--px-bit);
105
102
  }
106
103
  .px-link.px-link__warning.px-link__disabled {
107
104
  --text-color: var(--px-warning-2);
@@ -125,7 +122,6 @@
125
122
  }
126
123
  .px-link.px-link__danger:focus-visible {
127
124
  outline-color: var(--px-danger-6);
128
- outline-offset: var(--px-bit);
129
125
  }
130
126
  .px-link.px-link__danger.px-link__disabled {
131
127
  --text-color: var(--px-danger-2);
@@ -149,7 +145,6 @@
149
145
  }
150
146
  .px-link.px-link__info:focus-visible {
151
147
  outline-color: var(--px-neutral-10);
152
- outline-offset: var(--px-bit);
153
148
  }
154
149
  .px-link.px-link__info.px-link__disabled {
155
150
  --text-color: var(--px-neutral-6);
@@ -5,8 +5,9 @@ type __VLS_Slots = {} & {
5
5
  } & {
6
6
  default?: (props: typeof __VLS_8) => any;
7
7
  };
8
- declare const __VLS_component: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
8
+ declare const __VLS_base: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
11
12
  type __VLS_WithSlots<T, S> = T & {
12
13
  new (): {
@@ -3,10 +3,11 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<MainProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MainProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<MainProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MainProps> & Readonly<{}>, {
7
7
  soft: boolean;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
11
12
  type __VLS_WithSlots<T, S> = T & {
12
13
  new (): {
@@ -1,8 +1,9 @@
1
1
  import type { MaskProps } from './type';
2
- declare const _default: import("vue").DefineComponent<MaskProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaskProps> & Readonly<{}>, {
2
+ declare const __VLS_export: import("vue").DefineComponent<MaskProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaskProps> & Readonly<{}>, {
3
3
  zIndex: number;
4
4
  step: number;
5
5
  grid: boolean;
6
6
  lineWidth: number;
7
7
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
@@ -0,0 +1,24 @@
1
+ import type { MenuProps } from './type';
2
+ declare const __VLS_export: import("vue").DefineComponent<MenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ select: (index: string | number | symbol, event: MouseEvent) => any;
4
+ "update:active": (value: string | number | symbol) => any;
5
+ "update:expend": (value: (string | number | symbol)[]) => any;
6
+ expandChange: (value: (string | number | symbol)[], event: MouseEvent) => any;
7
+ expand: (index: string | number | symbol, event: MouseEvent) => any;
8
+ fold: (index: string | number | symbol, event: MouseEvent) => any;
9
+ }, string, import("vue").PublicProps, Readonly<MenuProps> & Readonly<{
10
+ onSelect?: ((index: string | number | symbol, event: MouseEvent) => any) | undefined;
11
+ "onUpdate:active"?: ((value: string | number | symbol) => any) | undefined;
12
+ "onUpdate:expend"?: ((value: (string | number | symbol)[]) => any) | undefined;
13
+ onExpandChange?: ((value: (string | number | symbol)[], event: MouseEvent) => any) | undefined;
14
+ onExpand?: ((index: string | number | symbol, event: MouseEvent) => any) | undefined;
15
+ onFold?: ((index: string | number | symbol, event: MouseEvent) => any) | undefined;
16
+ }>, {
17
+ dark: boolean;
18
+ direction: "horizontal" | "vertical";
19
+ ellipsis: boolean;
20
+ collapsed: boolean;
21
+ indent: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,145 @@
1
+ import type { ComputedRef, Ref } from 'vue';
2
+ import type { GROUP_OPTION_TYPE, SUBMENU_OPTION_TYPE } from '../share/const';
3
+ import type { NavigationOption, ValidVNodeContent } from '../share/type';
4
+ export type MenuProps = {
5
+ /**
6
+ * @property {'horizontal' | 'vertical'} [direction='vertical']
7
+ * @version 0.1.0
8
+ */
9
+ direction?: 'horizontal' | 'vertical';
10
+ /**
11
+ * @property {boolean} [dark=false]
12
+ * @version 0.1.0
13
+ */
14
+ dark?: boolean;
15
+ /**
16
+ * @property {number | string | symbol | null} [active]
17
+ * @version 0.1.0
18
+ */
19
+ active?: number | string | symbol | null;
20
+ /**
21
+ * @property {number | string | symbol | null} [defaultActive]
22
+ * @version 0.1.0
23
+ */
24
+ defaultActive?: number | string | symbol | null;
25
+ /**
26
+ * @property {(number | string | symbol)[] | null} [expanded]
27
+ * @version 0.1.0
28
+ */
29
+ expanded?: (number | string | symbol)[] | null;
30
+ /**
31
+ * @property {(number | string | symbol)[] | null} [defaultExpanded]
32
+ * @version 0.1.0
33
+ */
34
+ defaultExpanded?: (number | string | symbol)[] | null;
35
+ /**
36
+ * @property {boolean} [collapsed=false]
37
+ * @version 0.1.0
38
+ */
39
+ collapsed?: boolean;
40
+ /**
41
+ * @property {'inline' | 'popover'} [submenuMode='inline']
42
+ * @version 0.1.0
43
+ */
44
+ submenuMode?: 'inline' | 'popover';
45
+ /**
46
+ * @property {'hover' | 'click'} [submenuTrigger='hover']
47
+ * @version 0.1.0
48
+ */
49
+ submenuTrigger?: 'hover' | 'click';
50
+ /**
51
+ * @property {number} [indent=16]
52
+ * @version 0.1.0
53
+ */
54
+ indent?: number;
55
+ /**
56
+ * @property {boolean} [ellipsis=true]
57
+ * @version 0.1.0
58
+ */
59
+ ellipsis?: boolean;
60
+ /**
61
+ * @property {(string | MenuOption | MenuGroupOption | SubmenuOption)[]} [options]
62
+ * @version 0.1.0
63
+ */
64
+ options?: (string | MenuOption | MenuGroupOption | SubmenuOption)[];
65
+ };
66
+ export type MenuEvents = {
67
+ /**
68
+ * @event update:active
69
+ * @param {number | string | symbol} value
70
+ * @version 0.1.0
71
+ */
72
+ 'update:active': [value: number | string | symbol];
73
+ /**
74
+ * @event update:expend
75
+ * @param {(number | string | symbol)[]} value
76
+ * @version 0.1.0
77
+ */
78
+ 'update:expend': [value: (number | string | symbol)[]];
79
+ /**
80
+ * @event select
81
+ * @param {number | string | symbol} index
82
+ * @param {MouseEvent} event
83
+ * @version 0.1.0
84
+ */
85
+ select: [index: number | string | symbol, event: MouseEvent];
86
+ /**
87
+ * @event expandChange
88
+ * @param {(number | string | symbol)[]} value
89
+ * @param {MouseEvent} event
90
+ * @version 0.1.0
91
+ */
92
+ expandChange: [value: (number | string | symbol)[], event: MouseEvent];
93
+ /**
94
+ * @event expand
95
+ * @param {number | string | symbol} index
96
+ * @param {MouseEvent} event
97
+ * @version 0.1.0
98
+ */
99
+ expand: [index: number | string | symbol, event: MouseEvent];
100
+ /**
101
+ * @event fold
102
+ * @param {number | string | symbol} index
103
+ * @param {MouseEvent} event
104
+ * @version 0.1.0
105
+ */
106
+ fold: [index: number | string | symbol, event: MouseEvent];
107
+ };
108
+ export type MenuSlots = {
109
+ /**
110
+ * @slot default
111
+ * @version 0.1.0
112
+ */
113
+ default: {};
114
+ };
115
+ export type MenuProvide = {
116
+ direction: Ref<MenuProps['direction']>;
117
+ active: Ref<MenuProps['active']>;
118
+ expanded: Ref<MenuProps['expanded']>;
119
+ submenuTrigger: Ref<MenuProps['submenuTrigger']>;
120
+ submenuMode: Ref<MenuProps['submenuMode']>;
121
+ collapsed: Ref<boolean>;
122
+ dark: ComputedRef<boolean>;
123
+ darkMode: Ref<boolean>;
124
+ indent: Ref<number | undefined>;
125
+ selectMenu: (key: number | string | symbol, event: MouseEvent) => any;
126
+ toggleOpenMenu: (key: number | string | symbol, event: MouseEvent) => any;
127
+ updateRender: () => void;
128
+ };
129
+ export interface MenuOption extends NavigationOption {
130
+ disabled?: boolean;
131
+ href?: string;
132
+ route?: string | object;
133
+ target?: string;
134
+ icon?: () => ValidVNodeContent;
135
+ }
136
+ export interface MenuGroupOption extends NavigationOption {
137
+ children: (string | MenuOption | MenuGroupOption | SubmenuOption)[];
138
+ type: typeof GROUP_OPTION_TYPE;
139
+ }
140
+ export interface SubmenuOption extends NavigationOption {
141
+ children: (string | MenuOption | MenuGroupOption | SubmenuOption)[];
142
+ disabled?: boolean;
143
+ type: typeof SUBMENU_OPTION_TYPE;
144
+ icon?: () => ValidVNodeContent;
145
+ }
@@ -0,0 +1,16 @@
1
+ import type { MenuGroupProps } from './type';
2
+ declare var __VLS_1: {}, __VLS_3: {};
3
+ type __VLS_Slots = {} & {
4
+ label?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ default?: (props: typeof __VLS_3) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<MenuGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MenuGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,19 @@
1
+ export type MenuGroupProps = {
2
+ /**
3
+ * @property {string} [label]
4
+ * @version 0.1.0
5
+ */
6
+ label?: string;
7
+ };
8
+ export type MenuGroupSlots = {
9
+ /**
10
+ * @slot default
11
+ * @version 0.1.0
12
+ */
13
+ default: {};
14
+ /**
15
+ * @slot label
16
+ * @version 0.1.0
17
+ */
18
+ label: {};
19
+ };
@@ -0,0 +1,26 @@
1
+ import type { MenuItemProps } from './type';
2
+ declare var __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {};
3
+ type __VLS_Slots = {} & {
4
+ icon?: (props: typeof __VLS_9) => any;
5
+ } & {
6
+ default?: (props: typeof __VLS_11) => any;
7
+ } & {
8
+ icon?: (props: typeof __VLS_13) => any;
9
+ } & {
10
+ default?: (props: typeof __VLS_15) => any;
11
+ } & {
12
+ icon?: (props: typeof __VLS_17) => any;
13
+ } & {
14
+ default?: (props: typeof __VLS_19) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<MenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MenuItemProps> & Readonly<{}>, {
17
+ disabled: boolean;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };