sakana-element 2.2.0 → 2.4.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 (155) hide show
  1. package/README.md +98 -25
  2. package/dist/es/{Alert-C76ZWSVk.js → Alert-DfLsJvQD.js} +2 -2
  3. package/dist/es/Avatar-Ci4OKsv7.js +9 -0
  4. package/dist/es/{Badge-CoFWwBwv.js → Badge-B4wEToK6.js} +2 -2
  5. package/dist/es/{Breadcrumb-BtrwTVKW.js → Breadcrumb-BFzww8jd.js} +2 -2
  6. package/dist/es/{Button-S_31-UWJ.js → Button-DbFviVWb.js} +3 -3
  7. package/dist/es/{Card-DcW6nHYD.js → Card-ClRqKkc_.js} +2 -2
  8. package/dist/es/ChatBubble-DFEV_lVI.js +9 -0
  9. package/dist/es/Checkbox-l86YI3Fr.js +51 -0
  10. package/dist/es/{Collapse-DsS7M-m3.js → Collapse-B67v6RSE.js} +4 -4
  11. package/dist/es/{ConfigProvider-BgIewHXP.js → ConfigProvider-BCoGbcS5.js} +2 -2
  12. package/dist/es/Diff-BLiniLom.js +64 -0
  13. package/dist/es/Divider-DDSOHv8G.js +9 -0
  14. package/dist/es/Drawer-apeXw6EO.js +40 -0
  15. package/dist/es/Dropdown-By9qIErf.js +104 -0
  16. package/dist/es/{FileInput-BQ59woas.js → FileInput-CZ5jTfB_.js} +3 -3
  17. package/dist/es/Filter-B_1zU4Dq.js +40 -0
  18. package/dist/es/Form-B_XDnSjK.js +123 -0
  19. package/dist/es/{Icon-DpJyuj7c.js → Icon-D6qRB3pq.js} +1 -1
  20. package/dist/es/Indicator-C6Ip4dpP.js +9 -0
  21. package/dist/es/{Input-CiE4bPJN.js → Input-bThwBbNZ.js} +7 -7
  22. package/dist/es/Kbd-DXNjs7at.js +13 -0
  23. package/dist/es/{Link-B9B2APZq.js → Link-08Ee61Fv.js} +1 -1
  24. package/dist/es/{Loading-BW99pE5N.js → Loading-ByI9mjss.js} +13 -13
  25. package/dist/es/Message-CGG-lV5I.js +152 -0
  26. package/dist/es/Notification-B4clKY5h.js +69 -0
  27. package/dist/es/{Overlay-BRDSWspM.js → Overlay-6iPenJB1.js} +1 -1
  28. package/dist/es/Pixelate-A8J7jxDW.js +39 -0
  29. package/dist/es/Popconfirm-gcHGcOTz.js +23 -0
  30. package/dist/es/Progress-DFUBJQ4X.js +12 -0
  31. package/dist/es/Radio-CLBa1XIM.js +33 -0
  32. package/dist/es/Resizable-BWrFr2oj.js +151 -0
  33. package/dist/es/{Select-Dwqv8isB.js → Select-BtLqds1d.js} +20 -20
  34. package/dist/es/Skeleton-CGUQv3nQ.js +15 -0
  35. package/dist/es/{Switch-B1Gnv1tB.js → Switch-CZJ-S77_.js} +3 -3
  36. package/dist/es/Table-lHbxiyGq.js +10 -0
  37. package/dist/es/Tooltip-CdPqNYdn.js +74 -0
  38. package/dist/es/Validator-7ZT_nXDZ.js +40 -0
  39. package/dist/es/hooks-pU4JmsO3.js +171 -0
  40. package/dist/es/index.js +107 -70
  41. package/dist/es/utils-BXICIEsD.js +139 -0
  42. package/dist/es/{vendor-DXmGx29U.js → vendor-DrBJKLFW.js} +254 -210
  43. package/dist/index.css +1 -1
  44. package/dist/theme/Avatar.css +13 -43
  45. package/dist/theme/Badge.css +151 -151
  46. package/dist/theme/Breadcrumb.css +46 -4
  47. package/dist/theme/Button.css +72 -8
  48. package/dist/theme/Card.css +177 -93
  49. package/dist/theme/ChatBubble.css +218 -0
  50. package/dist/theme/Checkbox.css +604 -0
  51. package/dist/theme/Collapse.css +96 -96
  52. package/dist/theme/Diff.css +110 -0
  53. package/dist/theme/Divider.css +150 -0
  54. package/dist/theme/Drawer.css +206 -0
  55. package/dist/theme/Dropdown.css +359 -75
  56. package/dist/theme/FileInput.css +32 -0
  57. package/dist/theme/Filter.css +598 -0
  58. package/dist/theme/Indicator.css +159 -0
  59. package/dist/theme/Input.css +414 -406
  60. package/dist/theme/Kbd.css +104 -0
  61. package/dist/theme/Link.css +22 -3
  62. package/dist/theme/Loading.css +50 -12
  63. package/dist/theme/Message.css +250 -41
  64. package/dist/theme/Notification.css +232 -42
  65. package/dist/theme/Popconfirm.css +23 -7
  66. package/dist/theme/Progress.css +278 -0
  67. package/dist/theme/Radio.css +492 -0
  68. package/dist/theme/Resizable.css +95 -0
  69. package/dist/theme/Select.css +198 -88
  70. package/dist/theme/Skeleton.css +192 -0
  71. package/dist/theme/Switch.css +22 -3
  72. package/dist/theme/Table.css +680 -0
  73. package/dist/theme/Tooltip.css +150 -26
  74. package/dist/theme/Validator.css +25 -0
  75. package/dist/types/components/Avatar/types.d.ts +0 -2
  76. package/dist/types/components/ChatBubble/constants.d.ts +2 -0
  77. package/dist/types/components/ChatBubble/index.d.ts +27 -0
  78. package/dist/types/components/ChatBubble/types.d.ts +10 -0
  79. package/dist/types/components/Checkbox/constants.d.ts +5 -0
  80. package/dist/types/components/Checkbox/index.d.ts +94 -0
  81. package/dist/types/components/Checkbox/types.d.ts +46 -0
  82. package/dist/types/components/Collapse/index.d.ts +5 -5
  83. package/dist/types/components/Diff/constants.d.ts +4 -0
  84. package/dist/types/components/Diff/index.d.ts +67 -0
  85. package/dist/types/components/Diff/types.d.ts +29 -0
  86. package/dist/types/components/Divider/index.d.ts +30 -0
  87. package/dist/types/components/Divider/types.d.ts +10 -0
  88. package/dist/types/components/Drawer/constants.d.ts +1 -0
  89. package/dist/types/components/Drawer/index.d.ts +72 -0
  90. package/dist/types/components/Drawer/types.d.ts +20 -0
  91. package/dist/types/components/Dropdown/index.d.ts +13 -3
  92. package/dist/types/components/Dropdown/types.d.ts +3 -0
  93. package/dist/types/components/Dropdown/useDropdownKeyboard.d.ts +8 -0
  94. package/dist/types/components/FileInput/index.d.ts +5 -5
  95. package/dist/types/components/Filter/constants.d.ts +5 -0
  96. package/dist/types/components/Filter/index.d.ts +59 -0
  97. package/dist/types/components/Filter/types.d.ts +38 -0
  98. package/dist/types/components/Indicator/constants.d.ts +2 -0
  99. package/dist/types/components/Indicator/index.d.ts +28 -0
  100. package/dist/types/components/Indicator/types.d.ts +10 -0
  101. package/dist/types/components/Input/index.d.ts +10 -10
  102. package/dist/types/components/Kbd/constants.d.ts +3 -0
  103. package/dist/types/components/Kbd/index.d.ts +24 -0
  104. package/dist/types/components/Kbd/types.d.ts +10 -0
  105. package/dist/types/components/Message/methods.d.ts +2 -0
  106. package/dist/types/components/Message/types.d.ts +7 -1
  107. package/dist/types/components/MessageBox/types.d.ts +14 -2
  108. package/dist/types/components/Notification/methods.d.ts +3 -0
  109. package/dist/types/components/Notification/types.d.ts +8 -2
  110. package/dist/types/components/Pixelate/constants.d.ts +2 -0
  111. package/dist/types/components/Pixelate/index.d.ts +71 -0
  112. package/dist/types/components/Pixelate/types.d.ts +23 -0
  113. package/dist/types/components/Popconfirm/index.d.ts +18 -9
  114. package/dist/types/components/Popconfirm/types.d.ts +2 -1
  115. package/dist/types/components/Progress/constants.d.ts +2 -0
  116. package/dist/types/components/Progress/index.d.ts +50 -0
  117. package/dist/types/components/Progress/types.d.ts +22 -0
  118. package/dist/types/components/Radio/constants.d.ts +5 -0
  119. package/dist/types/components/Radio/index.d.ts +88 -0
  120. package/dist/types/components/Radio/types.d.ts +43 -0
  121. package/dist/types/components/Resizable/constants.d.ts +3 -0
  122. package/dist/types/components/Resizable/index.d.ts +135 -0
  123. package/dist/types/components/Resizable/types.d.ts +52 -0
  124. package/dist/types/components/Select/index.d.ts +32 -23
  125. package/dist/types/components/Skeleton/index.d.ts +36 -0
  126. package/dist/types/components/Skeleton/types.d.ts +12 -0
  127. package/dist/types/components/Switch/index.d.ts +5 -5
  128. package/dist/types/components/Table/index.d.ts +27 -0
  129. package/dist/types/components/Table/types.d.ts +20 -0
  130. package/dist/types/components/Tooltip/index.d.ts +9 -3
  131. package/dist/types/components/Tooltip/types.d.ts +7 -0
  132. package/dist/types/components/Validator/index.d.ts +52 -0
  133. package/dist/types/components/Validator/types.d.ts +13 -0
  134. package/dist/types/components/index.d.ts +15 -0
  135. package/dist/types/hooks/index.d.ts +3 -1
  136. package/dist/types/hooks/useDraggable.d.ts +7 -0
  137. package/dist/types/hooks/useFocusTrap.d.ts +5 -0
  138. package/dist/types/utils/index.d.ts +2 -0
  139. package/dist/types/utils/instance-management.d.ts +40 -0
  140. package/dist/types/utils/pixelate.d.ts +10 -0
  141. package/dist/types/utils/style.d.ts +1 -0
  142. package/dist/umd/index.css +1 -1
  143. package/dist/umd/index.css.gz +0 -0
  144. package/dist/umd/index.umd.cjs +4 -4
  145. package/dist/umd/index.umd.cjs.gz +0 -0
  146. package/package.json +59 -59
  147. package/dist/es/Avatar-CxsRW-wl.js +0 -9
  148. package/dist/es/Dropdown-GcomGMAI.js +0 -40
  149. package/dist/es/Form-j90EzLXU.js +0 -122
  150. package/dist/es/Message-DCNnTUje.js +0 -123
  151. package/dist/es/Notification-CBzY5904.js +0 -58
  152. package/dist/es/Popconfirm-DF6d2ORS.js +0 -23
  153. package/dist/es/Tooltip-k6gKnMyt.js +0 -74
  154. package/dist/es/hooks-BaG7l8K5.js +0 -116
  155. package/dist/es/utils-bsCscZfS.js +0 -84
@@ -0,0 +1,72 @@
1
+ export declare const PxDrawer: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').DrawerProps> & Readonly<{
3
+ onClose?: (() => any) | undefined;
4
+ onOpen?: (() => any) | undefined;
5
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
6
+ }>, {
7
+ open(): void;
8
+ close(): void;
9
+ toggle(): void;
10
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ close: () => any;
12
+ open: () => any;
13
+ "update:modelValue": (value: boolean) => any;
14
+ }, import('vue').PublicProps, {
15
+ size: string;
16
+ placement: "left" | "right";
17
+ showOverlay: boolean;
18
+ lockScroll: boolean;
19
+ closeOnClickOverlay: boolean;
20
+ closeOnEsc: boolean;
21
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
22
+ P: {};
23
+ B: {};
24
+ D: {};
25
+ C: {};
26
+ M: {};
27
+ Defaults: {};
28
+ }, Readonly<import('packages/core').DrawerProps> & Readonly<{
29
+ onClose?: (() => any) | undefined;
30
+ onOpen?: (() => any) | undefined;
31
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
32
+ }>, {
33
+ open(): void;
34
+ close(): void;
35
+ toggle(): void;
36
+ }, {}, {}, {}, {
37
+ size: string;
38
+ placement: "left" | "right";
39
+ showOverlay: boolean;
40
+ lockScroll: boolean;
41
+ closeOnClickOverlay: boolean;
42
+ closeOnEsc: boolean;
43
+ }>;
44
+ __isFragment?: never;
45
+ __isTeleport?: never;
46
+ __isSuspense?: never;
47
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').DrawerProps> & Readonly<{
48
+ onClose?: (() => any) | undefined;
49
+ onOpen?: (() => any) | undefined;
50
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
51
+ }>, {
52
+ open(): void;
53
+ close(): void;
54
+ toggle(): void;
55
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
56
+ close: () => any;
57
+ open: () => any;
58
+ "update:modelValue": (value: boolean) => any;
59
+ }, string, {
60
+ size: string;
61
+ placement: "left" | "right";
62
+ showOverlay: boolean;
63
+ lockScroll: boolean;
64
+ closeOnClickOverlay: boolean;
65
+ closeOnEsc: boolean;
66
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
67
+ $slots: {
68
+ default?(_: {}): any;
69
+ sidebar?(_: {}): any;
70
+ };
71
+ }) & import('vue').Plugin;
72
+ export * from './types';
@@ -0,0 +1,20 @@
1
+ export interface DrawerProps {
2
+ modelValue: boolean;
3
+ placement?: 'left' | 'right';
4
+ size?: string;
5
+ showOverlay?: boolean;
6
+ lockScroll?: boolean;
7
+ closeOnClickOverlay?: boolean;
8
+ closeOnEsc?: boolean;
9
+ title?: string;
10
+ }
11
+ export interface DrawerEmits {
12
+ (e: 'update:modelValue', value: boolean): void;
13
+ (e: 'open'): void;
14
+ (e: 'close'): void;
15
+ }
16
+ export interface DrawerInstance {
17
+ open(): void;
18
+ close(): void;
19
+ toggle(): void;
20
+ }
@@ -30,6 +30,11 @@ export declare const PxDropdown: {
30
30
  readonly hideTimeout?: number | undefined;
31
31
  readonly virtualRef?: HTMLElement | undefined;
32
32
  readonly virtualTriggering?: boolean | undefined;
33
+ readonly effect?: import('packages/core').TooltipEffect | undefined;
34
+ readonly type?: import('packages/core').TooltipType | undefined;
35
+ readonly enterable?: boolean | undefined;
36
+ readonly maxWidth?: string | number | undefined;
37
+ readonly showArrow?: boolean | undefined;
33
38
  readonly "onVisible-change"?: ((value: boolean) => any) | undefined;
34
39
  readonly "onClick-outside"?: (() => any) | undefined;
35
40
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -62,11 +67,13 @@ export declare const PxDropdown: {
62
67
  "visible-change": (value: boolean) => any;
63
68
  "click-outside": () => any;
64
69
  }, string, {
70
+ effect: import('packages/core').TooltipEffect;
65
71
  transition: string;
66
- trigger: "hover" | "click" | "contextmenu";
67
72
  placement: import('@popperjs/core').Placement;
73
+ trigger: "hover" | "click" | "contextmenu";
68
74
  showTimeout: number;
69
75
  hideTimeout: number;
76
+ enterable: boolean;
70
77
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
71
78
  beforeCreate?: (() => void) | (() => void)[];
72
79
  created?: (() => void) | (() => void)[];
@@ -88,15 +95,17 @@ export declare const PxDropdown: {
88
95
  $nextTick: typeof import('vue').nextTick;
89
96
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
90
97
  } & Readonly<{
98
+ effect: import('packages/core').TooltipEffect;
91
99
  transition: string;
92
- trigger: "hover" | "click" | "contextmenu";
93
100
  placement: import('@popperjs/core').Placement;
101
+ trigger: "hover" | "click" | "contextmenu";
94
102
  showTimeout: number;
95
103
  hideTimeout: number;
104
+ enterable: boolean;
96
105
  }> & Omit<Readonly<import('packages/core').TooltipProps> & Readonly<{
97
106
  "onVisible-change"?: ((value: boolean) => any) | undefined;
98
107
  "onClick-outside"?: (() => any) | undefined;
99
- }>, "toggle" | "show" | "hide" | ("transition" | "trigger" | "placement" | "showTimeout" | "hideTimeout")> & import('vue').ShallowUnwrapRef<{
108
+ }>, "toggle" | "show" | "hide" | ("effect" | "transition" | "placement" | "trigger" | "showTimeout" | "hideTimeout" | "enterable")> & import('vue').ShallowUnwrapRef<{
100
109
  show(): void;
101
110
  hide(): void;
102
111
  toggle(): void;
@@ -107,6 +116,7 @@ export declare const PxDropdown: {
107
116
  content?(_: {}): any;
108
117
  };
109
118
  }) | null;
119
+ menuRef: HTMLDivElement;
110
120
  }, any, import('vue').ComponentProvideOptions, {
111
121
  P: {};
112
122
  B: {};
@@ -7,6 +7,7 @@ export interface DropdownItemProps {
7
7
  label: string | VNode;
8
8
  disabled?: boolean;
9
9
  divided?: boolean;
10
+ icon?: string;
10
11
  }
11
12
  export interface DropdownProps extends TooltipProps {
12
13
  type?: ButtonType;
@@ -14,6 +15,8 @@ export interface DropdownProps extends TooltipProps {
14
15
  items?: DropdownItemProps[];
15
16
  hideOnClick?: boolean;
16
17
  splitButton?: boolean;
18
+ maxHeight?: number | string;
19
+ hoverColor?: string;
17
20
  }
18
21
  export interface DropdownEmits {
19
22
  (e: 'visible-change', value: boolean): void;
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ export interface UseDropdownKeyboardOptions {
3
+ menuRef: Ref<HTMLElement | undefined>;
4
+ triggerRef: Ref<HTMLElement | undefined>;
5
+ isOpen: Ref<boolean>;
6
+ close: () => void;
7
+ }
8
+ export default function useDropdownKeyboard(options: UseDropdownKeyboardOptions): void;
@@ -1,16 +1,16 @@
1
1
  export declare const PxFileInput: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').FileInputProps> & Readonly<{
3
3
  onClear?: (() => any) | undefined;
4
- "onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
5
4
  onChange?: ((value: FileList | null) => any) | undefined;
5
+ "onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
6
6
  }>, {
7
7
  ref: import('vue').Ref<HTMLInputElement | undefined>;
8
8
  open(): void;
9
9
  clear(): void;
10
10
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
11
  clear: () => any;
12
- "update:modelValue": (value: FileList | null) => any;
13
12
  change: (value: FileList | null) => any;
13
+ "update:modelValue": (value: FileList | null) => any;
14
14
  }, import('vue').PublicProps, {
15
15
  placeholder: string;
16
16
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
@@ -24,8 +24,8 @@ export declare const PxFileInput: {
24
24
  Defaults: {};
25
25
  }, Readonly<import('packages/core').FileInputProps> & Readonly<{
26
26
  onClear?: (() => any) | undefined;
27
- "onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
28
27
  onChange?: ((value: FileList | null) => any) | undefined;
28
+ "onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
29
29
  }>, {
30
30
  ref: import('vue').Ref<HTMLInputElement | undefined>;
31
31
  open(): void;
@@ -38,16 +38,16 @@ export declare const PxFileInput: {
38
38
  __isSuspense?: never;
39
39
  } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').FileInputProps> & Readonly<{
40
40
  onClear?: (() => any) | undefined;
41
- "onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
42
41
  onChange?: ((value: FileList | null) => any) | undefined;
42
+ "onUpdate:modelValue"?: ((value: FileList | null) => any) | undefined;
43
43
  }>, {
44
44
  ref: import('vue').Ref<HTMLInputElement | undefined>;
45
45
  open(): void;
46
46
  clear(): void;
47
47
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
48
48
  clear: () => any;
49
- "update:modelValue": (value: FileList | null) => any;
50
49
  change: (value: FileList | null) => any;
50
+ "update:modelValue": (value: FileList | null) => any;
51
51
  }, string, {
52
52
  placeholder: string;
53
53
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -0,0 +1,5 @@
1
+ import { ColorTemplate } from '@sakana-element/utils';
2
+ import { InjectionKey } from 'vue';
3
+ import { FilterContext } from './types';
4
+ export declare const FILTER_CTX_KEY: InjectionKey<FilterContext>;
5
+ export declare const FILTER_COLOR_TEMPLATES: Record<string, ColorTemplate>;
@@ -0,0 +1,59 @@
1
+ export declare const PxFilter: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').FilterProps> & Readonly<{
3
+ onChange?: ((value: import('packages/core').FilterValueType | import('packages/core').FilterValueType[] | undefined) => any) | undefined;
4
+ "onUpdate:modelValue"?: ((value: import('packages/core').FilterValueType | import('packages/core').FilterValueType[] | undefined) => any) | undefined;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ change: (value: import('packages/core').FilterValueType | import('packages/core').FilterValueType[] | undefined) => any;
7
+ "update:modelValue": (value: import('packages/core').FilterValueType | import('packages/core').FilterValueType[] | undefined) => any;
8
+ }, import('vue').PublicProps, {
9
+ disabled: boolean;
10
+ multiple: boolean;
11
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
12
+ P: {};
13
+ B: {};
14
+ D: {};
15
+ C: {};
16
+ M: {};
17
+ Defaults: {};
18
+ }, Readonly<import('packages/core').FilterProps> & Readonly<{
19
+ onChange?: ((value: import('packages/core').FilterValueType | import('packages/core').FilterValueType[] | undefined) => any) | undefined;
20
+ "onUpdate:modelValue"?: ((value: import('packages/core').FilterValueType | import('packages/core').FilterValueType[] | undefined) => any) | undefined;
21
+ }>, {}, {}, {}, {}, {
22
+ disabled: boolean;
23
+ multiple: boolean;
24
+ }>;
25
+ __isFragment?: never;
26
+ __isTeleport?: never;
27
+ __isSuspense?: never;
28
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').FilterProps> & Readonly<{
29
+ onChange?: ((value: import('packages/core').FilterValueType | import('packages/core').FilterValueType[] | undefined) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((value: import('packages/core').FilterValueType | import('packages/core').FilterValueType[] | undefined) => any) | undefined;
31
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
32
+ change: (value: import('packages/core').FilterValueType | import('packages/core').FilterValueType[] | undefined) => any;
33
+ "update:modelValue": (value: import('packages/core').FilterValueType | import('packages/core').FilterValueType[] | undefined) => any;
34
+ }, string, {
35
+ disabled: boolean;
36
+ multiple: boolean;
37
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
38
+ $slots: {
39
+ default?(_: {}): any;
40
+ };
41
+ }) & import('vue').Plugin;
42
+ export declare const PxFilterItem: {
43
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').FilterItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
44
+ P: {};
45
+ B: {};
46
+ D: {};
47
+ C: {};
48
+ M: {};
49
+ Defaults: {};
50
+ }, Readonly<import('packages/core').FilterItemProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
51
+ __isFragment?: never;
52
+ __isTeleport?: never;
53
+ __isSuspense?: never;
54
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').FilterItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
55
+ $slots: {
56
+ default?(_: {}): any;
57
+ };
58
+ }) & import('vue').Plugin;
59
+ export * from './types';
@@ -0,0 +1,38 @@
1
+ import { ComputedRef } from 'vue';
2
+ export type FilterValueType = string | number;
3
+ export type FilterType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
4
+ export interface FilterOptionProps {
5
+ value: FilterValueType;
6
+ label: string;
7
+ disabled?: boolean;
8
+ }
9
+ export interface FilterProps {
10
+ modelValue?: FilterValueType | FilterValueType[];
11
+ options?: FilterOptionProps[];
12
+ name?: string;
13
+ disabled?: boolean;
14
+ size?: 'small' | 'large';
15
+ type?: FilterType;
16
+ color?: string;
17
+ multiple?: boolean;
18
+ }
19
+ export interface FilterEmits {
20
+ (e: 'update:modelValue', value: FilterValueType | FilterValueType[] | undefined): void;
21
+ (e: 'change', value: FilterValueType | FilterValueType[] | undefined): void;
22
+ }
23
+ export interface FilterItemProps {
24
+ value: FilterValueType;
25
+ label?: string;
26
+ disabled?: boolean;
27
+ }
28
+ export interface FilterContext {
29
+ modelValue: ComputedRef<FilterValueType | FilterValueType[] | undefined>;
30
+ disabled: ComputedRef<boolean>;
31
+ size: ComputedRef<'small' | 'large' | undefined>;
32
+ type: ComputedRef<FilterType | undefined>;
33
+ color: ComputedRef<string | undefined>;
34
+ name: ComputedRef<string | undefined>;
35
+ multiple: ComputedRef<boolean>;
36
+ hasSelection: ComputedRef<boolean>;
37
+ changeEvent(value: FilterValueType | undefined): void;
38
+ }
@@ -0,0 +1,2 @@
1
+ import { ColorTemplate } from '@sakana-element/utils';
2
+ export declare const INDICATOR_COLOR_TEMPLATE: ColorTemplate;
@@ -0,0 +1,28 @@
1
+ export declare const PxIndicator: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').IndicatorProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ type: import('packages/core').IndicatorType;
4
+ placement: import('packages/core').IndicatorPlacement;
5
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
6
+ P: {};
7
+ B: {};
8
+ D: {};
9
+ C: {};
10
+ M: {};
11
+ Defaults: {};
12
+ }, Readonly<import('packages/core').IndicatorProps> & Readonly<{}>, {}, {}, {}, {}, {
13
+ type: import('packages/core').IndicatorType;
14
+ placement: import('packages/core').IndicatorPlacement;
15
+ }>;
16
+ __isFragment?: never;
17
+ __isTeleport?: never;
18
+ __isSuspense?: never;
19
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').IndicatorProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
20
+ type: import('packages/core').IndicatorType;
21
+ placement: import('packages/core').IndicatorPlacement;
22
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
23
+ $slots: {
24
+ default?(_: {}): any;
25
+ indicator?(_: {}): any;
26
+ };
27
+ }) & import('vue').Plugin;
28
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ export type IndicatorPlacement = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
2
+ export type IndicatorType = 'primary' | 'success' | 'info' | 'warning' | 'danger';
3
+ export interface IndicatorProps {
4
+ placement?: IndicatorPlacement;
5
+ type?: IndicatorType;
6
+ color?: string;
7
+ offset?: [number, number];
8
+ inline?: boolean;
9
+ processing?: boolean;
10
+ }
@@ -2,10 +2,10 @@ export declare const PxInput: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').InputProps> & Readonly<{
3
3
  onInput?: ((value: string) => any) | undefined;
4
4
  onClear?: (() => any) | undefined;
5
+ onBlur?: ((value: FocusEvent) => any) | undefined;
6
+ onChange?: ((value: string) => any) | undefined;
5
7
  onFocus?: ((value: FocusEvent) => any) | undefined;
6
8
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
7
- onChange?: ((value: string) => any) | undefined;
8
- onBlur?: ((value: FocusEvent) => any) | undefined;
9
9
  }>, {
10
10
  ref: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | undefined>;
11
11
  focus(): Promise<void>;
@@ -15,10 +15,10 @@ export declare const PxInput: {
15
15
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
16
  input: (value: string) => any;
17
17
  clear: () => any;
18
+ blur: (value: FocusEvent) => any;
19
+ change: (value: string) => any;
18
20
  focus: (value: FocusEvent) => any;
19
21
  "update:modelValue": (value: string) => any;
20
- change: (value: string) => any;
21
- blur: (value: FocusEvent) => any;
22
22
  }, import('vue').PublicProps, {
23
23
  type: string;
24
24
  autocomplete: string;
@@ -36,10 +36,10 @@ export declare const PxInput: {
36
36
  }, Readonly<import('packages/core').InputProps> & Readonly<{
37
37
  onInput?: ((value: string) => any) | undefined;
38
38
  onClear?: (() => any) | undefined;
39
+ onBlur?: ((value: FocusEvent) => any) | undefined;
40
+ onChange?: ((value: string) => any) | undefined;
39
41
  onFocus?: ((value: FocusEvent) => any) | undefined;
40
42
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
41
- onChange?: ((value: string) => any) | undefined;
42
- onBlur?: ((value: FocusEvent) => any) | undefined;
43
43
  }>, {
44
44
  ref: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | undefined>;
45
45
  focus(): Promise<void>;
@@ -56,10 +56,10 @@ export declare const PxInput: {
56
56
  } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').InputProps> & Readonly<{
57
57
  onInput?: ((value: string) => any) | undefined;
58
58
  onClear?: (() => any) | undefined;
59
+ onBlur?: ((value: FocusEvent) => any) | undefined;
60
+ onChange?: ((value: string) => any) | undefined;
59
61
  onFocus?: ((value: FocusEvent) => any) | undefined;
60
62
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
61
- onChange?: ((value: string) => any) | undefined;
62
- onBlur?: ((value: FocusEvent) => any) | undefined;
63
63
  }>, {
64
64
  ref: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | undefined>;
65
65
  focus(): Promise<void>;
@@ -69,10 +69,10 @@ export declare const PxInput: {
69
69
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
70
70
  input: (value: string) => any;
71
71
  clear: () => any;
72
+ blur: (value: FocusEvent) => any;
73
+ change: (value: string) => any;
72
74
  focus: (value: FocusEvent) => any;
73
75
  "update:modelValue": (value: string) => any;
74
- change: (value: string) => any;
75
- blur: (value: FocusEvent) => any;
76
76
  }, string, {
77
77
  type: string;
78
78
  autocomplete: string;
@@ -0,0 +1,3 @@
1
+ import { KbdKey, KbdKeyInfo } from './types';
2
+ export declare const KBD_KEY_MAP: Record<KbdKey, KbdKeyInfo>;
3
+ export declare const ARROW_KEYS: Set<KbdKey>;
@@ -0,0 +1,24 @@
1
+ export declare const PxKbd: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').KbdProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ size: import('packages/core').KbdSize;
4
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
5
+ P: {};
6
+ B: {};
7
+ D: {};
8
+ C: {};
9
+ M: {};
10
+ Defaults: {};
11
+ }, Readonly<import('packages/core').KbdProps> & Readonly<{}>, {}, {}, {}, {}, {
12
+ size: import('packages/core').KbdSize;
13
+ }>;
14
+ __isFragment?: never;
15
+ __isTeleport?: never;
16
+ __isSuspense?: never;
17
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').KbdProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
18
+ size: import('packages/core').KbdSize;
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
+ }) & import('vue').Plugin;
24
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ export type KbdSize = 'small' | 'default' | 'large';
2
+ export type KbdKey = 'command' | 'shift' | 'ctrl' | 'alt' | 'option' | 'enter' | 'delete' | 'escape' | 'tab' | 'capslock' | 'up' | 'down' | 'left' | 'right' | 'space' | 'win' | 'fn' | 'home' | 'end' | 'pageup' | 'pagedown';
3
+ export interface KbdKeyInfo {
4
+ label: string;
5
+ icon?: string;
6
+ }
7
+ export interface KbdProps {
8
+ size?: KbdSize;
9
+ keys?: KbdKey[];
10
+ }
@@ -8,5 +8,7 @@ export declare const messageDefaults: {
8
8
  export declare function getLastBottomOffset(this: MessageProps): any;
9
9
  export declare const message: MessageFn & Partial<Message>;
10
10
  export declare function closeAll(type?: MessageType): void;
11
+ /** Forcefully unmount all message instances, bypassing CSS transitions. */
12
+ export declare function destroyAll(): void;
11
13
  declare const _default: Message;
12
14
  export default _default;
@@ -26,9 +26,15 @@ export interface MessageProps {
26
26
  offset?: number;
27
27
  zIndex: number;
28
28
  transitionName?: string;
29
+ plain?: boolean;
30
+ ghost?: boolean;
31
+ icon?: string;
32
+ showTimer?: boolean;
29
33
  onDestroy(): void;
30
34
  }
31
- export type MessageOptions = Partial<Omit<MessageProps, 'id'>>;
35
+ export type MessageOptions = Partial<Omit<MessageProps, 'id'>> & {
36
+ max?: number;
37
+ };
32
38
  export type MessageParams = string | VNode | MessageOptions;
33
39
  export interface MessageInstance {
34
40
  id: string;
@@ -1,4 +1,5 @@
1
- import { Ref, VNode } from 'vue';
1
+ import { CSSProperties, Ref, VNode } from 'vue';
2
+ import { ZodType } from 'zod';
2
3
  import { ButtonType } from '../Button/types';
3
4
  import { MessageType } from '../Message/types';
4
5
  export type MessageBoxAction = 'confirm' | 'cancel' | 'close';
@@ -39,7 +40,18 @@ export interface MessageBoxOptions {
39
40
  inputValue?: string;
40
41
  inputType?: 'text' | 'textarea' | 'password' | 'number';
41
42
  buttonSize?: 'default' | 'small' | 'large';
42
- beforeClose?: (action: MessageBoxAction, instance: MessageBoxOptions, done: () => void) => void;
43
+ beforeClose?: (action: MessageBoxAction, instance: MessageBoxOptions, done: () => void) => void | Promise<void>;
44
+ customClass?: string;
45
+ customStyle?: CSSProperties;
46
+ width?: string | number;
47
+ closeOnPressEscape?: boolean;
48
+ inputSchema?: ZodType;
49
+ inputErrorMessage?: string;
50
+ distinguishCancelAndClose?: boolean;
51
+ overlayClass?: string | string[] | Record<string, boolean>;
52
+ closeOnHashChange?: boolean;
53
+ draggable?: boolean;
54
+ footer?: VNode | (() => VNode);
43
55
  }
44
56
  export interface MessageBoxProps extends MessageBoxOptions {
45
57
  visible?: Ref<boolean>;
@@ -7,9 +7,12 @@ export declare const notificationDefaults: {
7
7
  readonly position: "top-right";
8
8
  readonly transitionName: "fade";
9
9
  readonly showClose: true;
10
+ readonly showTimer: true;
10
11
  };
11
12
  export declare const notification: NotificationFn & Partial<Notification>;
12
13
  export declare function closeAll(type?: NotificationType): void;
14
+ /** Forcefully unmount all notification instances, bypassing CSS transitions. */
15
+ export declare function destroyAll(): void;
13
16
  export declare function getLastBottomOffset(this: NotificationProps): any;
14
17
  declare const _default: Notification;
15
18
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { ComponentInternalInstance, Ref, VNode } from 'vue';
2
- export declare const notificationTypes: readonly ["info", "success", "warning", "danger"];
2
+ export declare const notificationTypes: readonly ["info", "success", "warning", "danger", "error"];
3
3
  export type NotificationType = (typeof notificationTypes)[number];
4
4
  export declare const notificationPosition: readonly ["top-right", "top-left", "bottom-right", "bottom-left"];
5
5
  export type NotificationPosition = (typeof notificationPosition)[number];
@@ -15,6 +15,9 @@ export interface NotificationProps {
15
15
  offset?: number;
16
16
  transitionName?: string;
17
17
  icon?: string;
18
+ plain?: boolean;
19
+ ghost?: boolean;
20
+ showTimer?: boolean;
18
21
  onClick?(): void;
19
22
  onClose?(): void;
20
23
  onDestroy(): void;
@@ -34,7 +37,9 @@ export type CreateNotificationProps = Omit<NotificationProps, 'onDestroy' | 'id'
34
37
  export interface NotificationHandler {
35
38
  close(): void;
36
39
  }
37
- export type NotificationOptions = Partial<Omit<NotificationProps, 'id'>>;
40
+ export type NotificationOptions = Partial<Omit<NotificationProps, 'id'>> & {
41
+ max?: number;
42
+ };
38
43
  export type NotificationParams = string | VNode | NotificationOptions;
39
44
  export type NotificationFn = {
40
45
  (props: NotificationParams): NotificationHandler;
@@ -46,4 +51,5 @@ export interface Notification extends NotificationFn {
46
51
  warning: NotificationTypeFn;
47
52
  info: NotificationTypeFn;
48
53
  danger: NotificationTypeFn;
54
+ error: NotificationTypeFn;
49
55
  }
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_PIXEL_SIZE = 8;
2
+ export declare const DEFAULT_BACKGROUND = "#FFFFFF";