sakana-element 2.1.5 → 2.3.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 (157) hide show
  1. package/README.md +95 -19
  2. package/dist/es/{Alert-C76ZWSVk.js → Alert-BwTsp4X3.js} +2 -2
  3. package/dist/es/Avatar-CJu6JYV3.js +9 -0
  4. package/dist/es/Badge-BmxZXX8k.js +14 -0
  5. package/dist/es/Breadcrumb-BP8MSklj.js +15 -0
  6. package/dist/es/{Button-fW_ZOLmT.js → Button-BJHtN7gh.js} +5 -5
  7. package/dist/es/Card-DJHkCmsz.js +16 -0
  8. package/dist/es/Checkbox-DX8L3fyp.js +51 -0
  9. package/dist/es/Collapse-Ir3V9CuO.js +53 -0
  10. package/dist/es/ConfigProvider-CsbSqwwi.js +44 -0
  11. package/dist/es/Divider-C7PtODSK.js +9 -0
  12. package/dist/es/Drawer-C2eVmvUp.js +40 -0
  13. package/dist/es/Dropdown-CVg_c2fB.js +104 -0
  14. package/dist/es/FileInput-BE26BmXm.js +33 -0
  15. package/dist/es/Form-7lZt5ehf.js +122 -0
  16. package/dist/es/{Icon-DpJyuj7c.js → Icon-BLDDdSU-.js} +1 -1
  17. package/dist/es/Indicator-B-en-MgG.js +9 -0
  18. package/dist/es/{Input-DBPpvf0Y.js → Input-C5HuVehE.js} +4 -4
  19. package/dist/es/Link-Av9RdcFv.js +11 -0
  20. package/dist/es/Loading-CBNDUWQd.js +92 -0
  21. package/dist/es/Message-DgnyyuXn.js +152 -0
  22. package/dist/es/Notification-LYRXnVAf.js +69 -0
  23. package/dist/es/{Overlay-BRDSWspM.js → Overlay-CpvMhnuU.js} +1 -1
  24. package/dist/es/Pixelate-BPypBgJU.js +67 -0
  25. package/dist/es/Popconfirm-DvxFdLrw.js +23 -0
  26. package/dist/es/Progress-Bc5INMhJ.js +12 -0
  27. package/dist/es/Radio-263_rtRl.js +33 -0
  28. package/dist/es/Select-7ZxUCS8z.js +133 -0
  29. package/dist/es/Switch-DiCsMJT3.js +34 -0
  30. package/dist/es/Table-BvA_xzDe.js +10 -0
  31. package/dist/es/Tooltip-J3ji6weH.js +74 -0
  32. package/dist/es/hooks-BqobYUzS.js +171 -0
  33. package/dist/es/index.js +94 -64
  34. package/dist/{theme → es/theme}/Alert.css +1 -1
  35. package/dist/es/theme/Avatar.css +86 -0
  36. package/dist/{theme → es/theme}/Badge.css +36 -30
  37. package/dist/es/theme/Breadcrumb.css +192 -0
  38. package/dist/{theme → es/theme}/Button.css +216 -216
  39. package/dist/es/theme/Card.css +347 -0
  40. package/dist/es/theme/Checkbox.css +484 -0
  41. package/dist/{theme → es/theme}/Collapse.css +214 -54
  42. package/dist/es/theme/Divider.css +111 -0
  43. package/dist/es/theme/Drawer.css +206 -0
  44. package/dist/es/theme/Dropdown.css +471 -0
  45. package/dist/es/theme/FileInput.css +365 -0
  46. package/dist/es/theme/Form.css +83 -0
  47. package/dist/es/theme/Indicator.css +159 -0
  48. package/dist/{theme → es/theme}/Input.css +1 -0
  49. package/dist/es/theme/Link.css +69 -0
  50. package/dist/es/theme/Loading.css +266 -0
  51. package/dist/es/theme/Message.css +565 -0
  52. package/dist/es/theme/Notification.css +316 -0
  53. package/dist/es/theme/Popconfirm.css +46 -0
  54. package/dist/es/theme/Progress.css +278 -0
  55. package/dist/es/theme/Radio.css +426 -0
  56. package/dist/{theme → es/theme}/Select.css +78 -78
  57. package/dist/es/theme/Table.css +680 -0
  58. package/dist/es/theme/Tooltip.css +235 -0
  59. package/dist/es/utils-BS5vsvlM.js +101 -0
  60. package/dist/index.css +1 -1
  61. package/dist/types/components/Avatar/index.d.ts +30 -0
  62. package/dist/types/components/Avatar/types.d.ts +8 -0
  63. package/dist/types/components/Badge/types.d.ts +1 -0
  64. package/dist/types/components/Breadcrumb/constants.d.ts +3 -0
  65. package/dist/types/components/Breadcrumb/index.d.ts +45 -0
  66. package/dist/types/components/Breadcrumb/types.d.ts +13 -0
  67. package/dist/types/components/Card/types.d.ts +6 -0
  68. package/dist/types/components/Checkbox/constants.d.ts +5 -0
  69. package/dist/types/components/Checkbox/index.d.ts +94 -0
  70. package/dist/types/components/Checkbox/types.d.ts +46 -0
  71. package/dist/types/components/Collapse/constants.d.ts +3 -0
  72. package/dist/types/components/Collapse/index.d.ts +14 -8
  73. package/dist/types/components/Collapse/types.d.ts +12 -0
  74. package/dist/types/components/Divider/index.d.ts +30 -0
  75. package/dist/types/components/Divider/types.d.ts +10 -0
  76. package/dist/types/components/Drawer/constants.d.ts +1 -0
  77. package/dist/types/components/Drawer/index.d.ts +72 -0
  78. package/dist/types/components/Drawer/types.d.ts +20 -0
  79. package/dist/types/components/Dropdown/index.d.ts +11 -1
  80. package/dist/types/components/Dropdown/types.d.ts +3 -0
  81. package/dist/types/components/Dropdown/useDropdownKeyboard.d.ts +8 -0
  82. package/dist/types/components/FileInput/constants.d.ts +3 -0
  83. package/dist/types/components/FileInput/index.d.ts +58 -0
  84. package/dist/types/components/FileInput/types.d.ts +24 -0
  85. package/dist/types/components/Form/types.d.ts +17 -7
  86. package/dist/types/components/Indicator/constants.d.ts +2 -0
  87. package/dist/types/components/Indicator/index.d.ts +28 -0
  88. package/dist/types/components/Indicator/types.d.ts +10 -0
  89. package/dist/types/components/Input/index.d.ts +10 -10
  90. package/dist/types/components/Link/index.d.ts +34 -0
  91. package/dist/types/components/Link/types.d.ts +10 -0
  92. package/dist/types/components/Loading/index.d.ts +25 -0
  93. package/dist/types/components/Loading/types.d.ts +9 -0
  94. package/dist/types/components/Message/methods.d.ts +2 -0
  95. package/dist/types/components/Message/types.d.ts +9 -3
  96. package/dist/types/components/MessageBox/types.d.ts +16 -4
  97. package/dist/types/components/Notification/index.d.ts +1 -1
  98. package/dist/types/components/Notification/methods.d.ts +6 -1
  99. package/dist/types/components/Notification/types.d.ts +10 -4
  100. package/dist/types/components/Pixelate/constants.d.ts +2 -0
  101. package/dist/types/components/Pixelate/index.d.ts +71 -0
  102. package/dist/types/components/Pixelate/types.d.ts +23 -0
  103. package/dist/types/components/Popconfirm/index.d.ts +16 -7
  104. package/dist/types/components/Popconfirm/types.d.ts +2 -1
  105. package/dist/types/components/Progress/constants.d.ts +2 -0
  106. package/dist/types/components/Progress/index.d.ts +50 -0
  107. package/dist/types/components/Progress/types.d.ts +22 -0
  108. package/dist/types/components/Radio/constants.d.ts +5 -0
  109. package/dist/types/components/Radio/index.d.ts +88 -0
  110. package/dist/types/components/Radio/types.d.ts +43 -0
  111. package/dist/types/components/Select/constants.d.ts +2 -1
  112. package/dist/types/components/Select/index.d.ts +35 -26
  113. package/dist/types/components/Switch/index.d.ts +5 -5
  114. package/dist/types/components/Table/index.d.ts +27 -0
  115. package/dist/types/components/Table/types.d.ts +20 -0
  116. package/dist/types/components/Tooltip/index.d.ts +6 -0
  117. package/dist/types/components/Tooltip/types.d.ts +7 -0
  118. package/dist/types/components/index.d.ts +12 -0
  119. package/dist/types/hooks/index.d.ts +3 -1
  120. package/dist/types/hooks/useDraggable.d.ts +7 -0
  121. package/dist/types/hooks/useFocusTrap.d.ts +5 -0
  122. package/dist/types/hooks/vitest.setup.d.ts +4 -0
  123. package/dist/types/utils/index.d.ts +1 -0
  124. package/dist/types/utils/instance-management.d.ts +40 -0
  125. package/dist/umd/index.css +1 -1
  126. package/dist/umd/index.css.gz +0 -0
  127. package/dist/umd/index.umd.cjs +5 -14
  128. package/dist/umd/index.umd.cjs.gz +0 -0
  129. package/package.json +5 -6
  130. package/dist/es/Badge-BG-vYP8Y.js +0 -13
  131. package/dist/es/Card-BCBnlVi_.js +0 -12
  132. package/dist/es/Collapse-B08VhCVq.js +0 -38
  133. package/dist/es/ConfigProvider-DZO1d5Eq.js +0 -44
  134. package/dist/es/Dropdown-49nf6F8P.js +0 -40
  135. package/dist/es/Form-CGiTDSGI.js +0 -108
  136. package/dist/es/Loading-DlygqGOv.js +0 -88
  137. package/dist/es/Message-ganFfLeU.js +0 -123
  138. package/dist/es/Notification-D4RYHV9o.js +0 -58
  139. package/dist/es/Popconfirm-Cop44KwQ.js +0 -22
  140. package/dist/es/Select-Blw_iO2r.js +0 -133
  141. package/dist/es/Switch-CHjcLtHs.js +0 -34
  142. package/dist/es/Tooltip-HWx_i2FA.js +0 -74
  143. package/dist/es/hooks-CYdEHUVd.js +0 -105
  144. package/dist/es/utils-bsCscZfS.js +0 -84
  145. package/dist/theme/Card.css +0 -112
  146. package/dist/theme/Dropdown.css +0 -187
  147. package/dist/theme/Form.css +0 -52
  148. package/dist/theme/Loading.css +0 -78
  149. package/dist/theme/Message.css +0 -353
  150. package/dist/theme/Notification.css +0 -126
  151. package/dist/theme/Popconfirm.css +0 -30
  152. package/dist/theme/Tooltip.css +0 -111
  153. /package/dist/{theme → es/theme}/Icon.css +0 -0
  154. /package/dist/{theme → es/theme}/Overlay.css +0 -0
  155. /package/dist/{theme → es/theme}/Switch.css +0 -0
  156. /package/dist/{theme → es/theme}/fonts/zpix.woff2 +0 -0
  157. /package/dist/{theme → es/theme}/index.css +0 -0
@@ -0,0 +1,30 @@
1
+ export declare const PxAvatar: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').AvatarProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ size: import('packages/core').AvatarSize;
4
+ shape: import('packages/core').AvatarShape;
5
+ border: boolean;
6
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
7
+ P: {};
8
+ B: {};
9
+ D: {};
10
+ C: {};
11
+ M: {};
12
+ Defaults: {};
13
+ }, Readonly<import('packages/core').AvatarProps> & Readonly<{}>, {}, {}, {}, {}, {
14
+ size: import('packages/core').AvatarSize;
15
+ shape: import('packages/core').AvatarShape;
16
+ border: boolean;
17
+ }>;
18
+ __isFragment?: never;
19
+ __isTeleport?: never;
20
+ __isSuspense?: never;
21
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').AvatarProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
22
+ size: import('packages/core').AvatarSize;
23
+ shape: import('packages/core').AvatarShape;
24
+ border: boolean;
25
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
26
+ $slots: {
27
+ default?(_: {}): any;
28
+ };
29
+ }) & import('vue').Plugin;
30
+ export * from './types';
@@ -0,0 +1,8 @@
1
+ export type AvatarSize = 'large' | 'default' | 'small';
2
+ export type AvatarShape = 'circle' | 'square';
3
+ export interface AvatarProps {
4
+ size?: AvatarSize;
5
+ shape?: AvatarShape;
6
+ border?: boolean;
7
+ color?: string;
8
+ }
@@ -7,4 +7,5 @@ export interface BadgeProps {
7
7
  dash?: boolean;
8
8
  color?: string;
9
9
  round?: boolean;
10
+ icon?: string;
10
11
  }
@@ -0,0 +1,3 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { BreadcrumbContext } from './types';
3
+ export declare const BREADCRUMB_CTX_KEY: InjectionKey<BreadcrumbContext>;
@@ -0,0 +1,45 @@
1
+ export declare const PxBreadcrumb: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').BreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ separator: string;
4
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLElement, import('vue').ComponentProvideOptions, {
5
+ P: {};
6
+ B: {};
7
+ D: {};
8
+ C: {};
9
+ M: {};
10
+ Defaults: {};
11
+ }, Readonly<import('packages/core').BreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, {
12
+ separator: string;
13
+ }>;
14
+ __isFragment?: never;
15
+ __isTeleport?: never;
16
+ __isSuspense?: never;
17
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').BreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
18
+ separator: string;
19
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
20
+ $slots: Readonly<{
21
+ default?(_: {}): any;
22
+ separator?(_: {}): any;
23
+ }> & {
24
+ default?(_: {}): any;
25
+ separator?(_: {}): any;
26
+ };
27
+ }) & import('vue').Plugin;
28
+ export declare const PxBreadcrumbItem: {
29
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').BreadcrumbItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLLIElement, import('vue').ComponentProvideOptions, {
30
+ P: {};
31
+ B: {};
32
+ D: {};
33
+ C: {};
34
+ M: {};
35
+ Defaults: {};
36
+ }, Readonly<import('packages/core').BreadcrumbItemProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
37
+ __isFragment?: never;
38
+ __isTeleport?: never;
39
+ __isSuspense?: never;
40
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').BreadcrumbItemProps> & 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 () => {
41
+ $slots: {
42
+ default?(_: {}): any;
43
+ };
44
+ }) & import('vue').Plugin;
45
+ export * from './types';
@@ -0,0 +1,13 @@
1
+ import { Slot } from 'vue';
2
+ export interface BreadcrumbProps {
3
+ separator?: string;
4
+ }
5
+ export interface BreadcrumbItemProps {
6
+ to?: string;
7
+ icon?: string;
8
+ disabled?: boolean;
9
+ }
10
+ export interface BreadcrumbContext {
11
+ separator: string;
12
+ separatorSlot?: Slot;
13
+ }
@@ -1,6 +1,12 @@
1
+ export type CardType = 'primary' | 'success' | 'info' | 'warning' | 'danger';
1
2
  export type CardShadow = 'always' | 'hover' | 'never';
2
3
  export interface CardProps {
4
+ type?: CardType;
5
+ color?: string;
3
6
  hoverable?: boolean;
4
7
  shadow?: boolean | CardShadow;
5
8
  size?: 'small' | 'large';
9
+ outline?: boolean;
10
+ dash?: boolean;
11
+ ghost?: boolean;
6
12
  }
@@ -0,0 +1,5 @@
1
+ import { ColorTemplate } from '@sakana-element/utils';
2
+ import { InjectionKey } from 'vue';
3
+ import { CheckboxGroupContext } from './types';
4
+ export declare const CHECKBOX_GROUP_CTX_KEY: InjectionKey<CheckboxGroupContext>;
5
+ export declare const CHECKBOX_COLOR_TEMPLATES: Record<string, ColorTemplate>;
@@ -0,0 +1,94 @@
1
+ export declare const PxCheckbox: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').CheckboxProps> & Readonly<{
3
+ onChange?: ((value: boolean) => any) | undefined;
4
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
5
+ }>, {
6
+ focus(): void;
7
+ checked: import('vue').ComputedRef<boolean>;
8
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ change: (value: boolean) => any;
10
+ "update:modelValue": (value: boolean) => any;
11
+ }, import('vue').PublicProps, {
12
+ disabled: boolean;
13
+ modelValue: boolean;
14
+ indeterminate: boolean;
15
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
16
+ inputRef: HTMLInputElement;
17
+ }, any, import('vue').ComponentProvideOptions, {
18
+ P: {};
19
+ B: {};
20
+ D: {};
21
+ C: {};
22
+ M: {};
23
+ Defaults: {};
24
+ }, Readonly<import('packages/core').CheckboxProps> & Readonly<{
25
+ onChange?: ((value: boolean) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
27
+ }>, {
28
+ focus(): void;
29
+ checked: import('vue').ComputedRef<boolean>;
30
+ }, {}, {}, {}, {
31
+ disabled: boolean;
32
+ modelValue: boolean;
33
+ indeterminate: boolean;
34
+ }>;
35
+ __isFragment?: never;
36
+ __isTeleport?: never;
37
+ __isSuspense?: never;
38
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').CheckboxProps> & Readonly<{
39
+ onChange?: ((value: boolean) => any) | undefined;
40
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
41
+ }>, {
42
+ focus(): void;
43
+ checked: import('vue').ComputedRef<boolean>;
44
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
45
+ change: (value: boolean) => any;
46
+ "update:modelValue": (value: boolean) => any;
47
+ }, string, {
48
+ disabled: boolean;
49
+ modelValue: boolean;
50
+ indeterminate: boolean;
51
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
52
+ $slots: {
53
+ default?(_: {}): any;
54
+ };
55
+ }) & import('vue').Plugin;
56
+ export declare const PxCheckboxGroup: {
57
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').CheckboxGroupProps> & Readonly<{
58
+ onChange?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
59
+ "onUpdate:modelValue"?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
60
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
61
+ change: (value: import('packages/core').CheckboxValueType[]) => any;
62
+ "update:modelValue": (value: import('packages/core').CheckboxValueType[]) => any;
63
+ }, import('vue').PublicProps, {
64
+ disabled: boolean;
65
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
66
+ P: {};
67
+ B: {};
68
+ D: {};
69
+ C: {};
70
+ M: {};
71
+ Defaults: {};
72
+ }, Readonly<import('packages/core').CheckboxGroupProps> & Readonly<{
73
+ onChange?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
74
+ "onUpdate:modelValue"?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
75
+ }>, {}, {}, {}, {}, {
76
+ disabled: boolean;
77
+ }>;
78
+ __isFragment?: never;
79
+ __isTeleport?: never;
80
+ __isSuspense?: never;
81
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').CheckboxGroupProps> & Readonly<{
82
+ onChange?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
83
+ "onUpdate:modelValue"?: ((value: import('packages/core').CheckboxValueType[]) => any) | undefined;
84
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
85
+ change: (value: import('packages/core').CheckboxValueType[]) => any;
86
+ "update:modelValue": (value: import('packages/core').CheckboxValueType[]) => any;
87
+ }, string, {
88
+ disabled: boolean;
89
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
90
+ $slots: {
91
+ default?(_: {}): any;
92
+ };
93
+ }) & import('vue').Plugin;
94
+ export * from './types';
@@ -0,0 +1,46 @@
1
+ import { ComputedRef } from 'vue';
2
+ export type CheckboxValueType = string | number | boolean;
3
+ export type CheckboxType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
4
+ export interface CheckboxProps {
5
+ modelValue?: boolean;
6
+ value?: CheckboxValueType;
7
+ disabled?: boolean;
8
+ indeterminate?: boolean;
9
+ size?: 'small' | 'large';
10
+ type?: CheckboxType;
11
+ color?: string;
12
+ label?: string;
13
+ name?: string;
14
+ id?: string;
15
+ }
16
+ export interface CheckboxEmits {
17
+ (e: 'update:modelValue', value: boolean): void;
18
+ (e: 'change', value: boolean): void;
19
+ }
20
+ export interface CheckboxInstance {
21
+ focus(): void;
22
+ checked: ComputedRef<boolean>;
23
+ }
24
+ export interface CheckboxGroupProps {
25
+ modelValue: CheckboxValueType[];
26
+ disabled?: boolean;
27
+ size?: 'small' | 'large';
28
+ type?: CheckboxType;
29
+ color?: string;
30
+ min?: number;
31
+ max?: number;
32
+ }
33
+ export interface CheckboxGroupEmits {
34
+ (e: 'update:modelValue', value: CheckboxValueType[]): void;
35
+ (e: 'change', value: CheckboxValueType[]): void;
36
+ }
37
+ export interface CheckboxGroupContext {
38
+ modelValue: ComputedRef<CheckboxValueType[]>;
39
+ disabled: ComputedRef<boolean>;
40
+ size: ComputedRef<'small' | 'large' | undefined>;
41
+ type: ComputedRef<CheckboxType | undefined>;
42
+ color: ComputedRef<string | undefined>;
43
+ min: ComputedRef<number | undefined>;
44
+ max: ComputedRef<number | undefined>;
45
+ changeEvent(value: CheckboxValueType[]): void;
46
+ }
@@ -1,3 +1,6 @@
1
+ import { ColorTemplate } from '@sakana-element/utils';
1
2
  import { InjectionKey } from 'vue';
2
3
  import { CollapseContext } from './types';
3
4
  export declare const COLLAPSE_CTX_KEY: InjectionKey<CollapseContext>;
5
+ export declare const PRESET_COLLAPSE_COLORS: Set<string>;
6
+ export declare const COLLAPSE_COLOR_TEMPLATES: Record<string, ColorTemplate>;
@@ -1,10 +1,10 @@
1
1
  export declare const PxCollapse: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').CollapseProps> & Readonly<{
3
- "onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
4
3
  onChange?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
4
+ "onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
5
5
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
- "update:modelValue": (value: import('packages/core').CollapseItemName[]) => any;
7
6
  change: (value: import('packages/core').CollapseItemName[]) => any;
7
+ "update:modelValue": (value: import('packages/core').CollapseItemName[]) => any;
8
8
  }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
9
9
  P: {};
10
10
  B: {};
@@ -13,36 +13,42 @@ export declare const PxCollapse: {
13
13
  M: {};
14
14
  Defaults: {};
15
15
  }, Readonly<import('packages/core').CollapseProps> & Readonly<{
16
- "onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
17
16
  onChange?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
17
+ "onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
18
18
  }>, {}, {}, {}, {}, {}>;
19
19
  __isFragment?: never;
20
20
  __isTeleport?: never;
21
21
  __isSuspense?: never;
22
22
  } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').CollapseProps> & Readonly<{
23
- "onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
24
23
  onChange?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((value: import('packages/core').CollapseItemName[]) => any) | undefined;
25
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
26
- "update:modelValue": (value: import('packages/core').CollapseItemName[]) => any;
27
26
  change: (value: import('packages/core').CollapseItemName[]) => any;
27
+ "update:modelValue": (value: import('packages/core').CollapseItemName[]) => any;
28
28
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
29
29
  $slots: {
30
30
  default?(_: {}): any;
31
31
  };
32
32
  }) & import('vue').Plugin;
33
33
  export declare const PxCollapseItem: {
34
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').CollapseItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
34
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').CollapseItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
35
+ showArrow: boolean;
36
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
35
37
  P: {};
36
38
  B: {};
37
39
  D: {};
38
40
  C: {};
39
41
  M: {};
40
42
  Defaults: {};
41
- }, Readonly<import('packages/core').CollapseItemProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
43
+ }, Readonly<import('packages/core').CollapseItemProps> & Readonly<{}>, {}, {}, {}, {}, {
44
+ showArrow: boolean;
45
+ }>;
42
46
  __isFragment?: never;
43
47
  __isTeleport?: never;
44
48
  __isSuspense?: never;
45
- } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').CollapseItemProps> & 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 () => {
49
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').CollapseItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
50
+ showArrow: boolean;
51
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
46
52
  $slots: {
47
53
  title?(_: {}): any;
48
54
  default?(_: {}): any;
@@ -3,11 +3,19 @@ export type CollapseItemName = string | number;
3
3
  export interface CollapseProps {
4
4
  modelValue: CollapseItemName[];
5
5
  accordion?: boolean;
6
+ color?: string;
7
+ ghost?: boolean;
8
+ trigger?: 'click' | 'focus';
9
+ iconPlacement?: 'start' | 'end';
6
10
  }
7
11
  export interface CollapseItemProps {
8
12
  name: CollapseItemName;
9
13
  title?: string;
10
14
  disabled?: boolean;
15
+ showArrow?: boolean;
16
+ icon?: string;
17
+ forceOpen?: boolean;
18
+ forceClose?: boolean;
11
19
  }
12
20
  export interface CollapseEmits {
13
21
  (e: 'update:modelValue', value: CollapseItemName[]): void;
@@ -16,4 +24,8 @@ export interface CollapseEmits {
16
24
  export interface CollapseContext {
17
25
  activeNames: Ref<CollapseItemName[]>;
18
26
  handleItemClick(name: CollapseItemName): void;
27
+ color?: string;
28
+ ghost?: boolean;
29
+ trigger?: 'click' | 'focus';
30
+ iconPlacement?: 'start' | 'end';
19
31
  }
@@ -0,0 +1,30 @@
1
+ export declare const PxDivider: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ direction: "horizontal" | "vertical";
4
+ contentPosition: "left" | "center" | "right";
5
+ borderStyle: import('packages/core').DividerBorderStyle;
6
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
7
+ P: {};
8
+ B: {};
9
+ D: {};
10
+ C: {};
11
+ M: {};
12
+ Defaults: {};
13
+ }, Readonly<import('packages/core').DividerProps> & Readonly<{}>, {}, {}, {}, {}, {
14
+ direction: "horizontal" | "vertical";
15
+ contentPosition: "left" | "center" | "right";
16
+ borderStyle: import('packages/core').DividerBorderStyle;
17
+ }>;
18
+ __isFragment?: never;
19
+ __isTeleport?: never;
20
+ __isSuspense?: never;
21
+ } & import('vue').ComponentOptionsBase<Readonly<import('packages/core').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
22
+ direction: "horizontal" | "vertical";
23
+ contentPosition: "left" | "center" | "right";
24
+ borderStyle: import('packages/core').DividerBorderStyle;
25
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
26
+ $slots: {
27
+ default?(_: {}): any;
28
+ };
29
+ }) & import('vue').Plugin;
30
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ export type DividerType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
2
+ export type DividerBorderStyle = 'solid' | 'dashed' | 'dotted';
3
+ export interface DividerProps {
4
+ direction?: 'horizontal' | 'vertical';
5
+ contentPosition?: 'left' | 'center' | 'right';
6
+ type?: DividerType;
7
+ color?: string;
8
+ borderStyle?: DividerBorderStyle;
9
+ content?: string;
10
+ }
@@ -0,0 +1 @@
1
+ export declare const DRAWER_DEFAULT_SIZE = "300px";
@@ -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
72
  trigger: "hover" | "click" | "contextmenu";
67
73
  placement: import('@popperjs/core').Placement;
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
100
  trigger: "hover" | "click" | "contextmenu";
93
101
  placement: import('@popperjs/core').Placement;
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" | "trigger" | "placement" | "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;
@@ -0,0 +1,3 @@
1
+ import { ColorTemplate } from '@sakana-element/utils';
2
+ export declare const PRESET_FILE_INPUT_COLORS: Set<string>;
3
+ export declare const FILE_INPUT_COLOR_TEMPLATES: Record<string, ColorTemplate>;