sard-uniapp 1.0.3 → 1.0.4

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.
@@ -0,0 +1,54 @@
1
+ import { type PropType, type StyleValue } from 'vue';
2
+ export interface RowProps {
3
+ rootStyle?: StyleValue;
4
+ rootClass?: string;
5
+ gap?: number | string;
6
+ justify?: 'start' | 'center' | 'end' | 'around' | 'between' | 'evenly';
7
+ align?: 'start' | 'center' | 'end' | 'stretch';
8
+ }
9
+ export declare const rowProps: {
10
+ rootStyle: PropType<StyleValue>;
11
+ rootClass: StringConstructor;
12
+ gap: (StringConstructor | NumberConstructor)[];
13
+ justify: PropType<"start" | "center" | "end" | "around" | "between" | "evenly" | undefined>;
14
+ align: PropType<"start" | "center" | "end" | "stretch" | undefined>;
15
+ };
16
+ export interface RowSlots {
17
+ default(props: Record<string, never>): any;
18
+ }
19
+ export interface ColProps {
20
+ rootStyle?: StyleValue;
21
+ rootClass?: string;
22
+ span?: number | 'auto' | 'none';
23
+ offset?: number;
24
+ order?: number;
25
+ }
26
+ export declare const colProps: {
27
+ rootStyle: PropType<StyleValue>;
28
+ rootClass: StringConstructor;
29
+ span: PropType<number | "auto" | "none" | undefined>;
30
+ offset: NumberConstructor;
31
+ order: NumberConstructor;
32
+ };
33
+ export interface ColSlots {
34
+ default(props: Record<string, never>): any;
35
+ }
36
+ export type RowContext = {
37
+ gutter: readonly [number, string];
38
+ gap: RowProps['gap'];
39
+ };
40
+ export declare const rowSymbol: unique symbol;
41
+ export declare const mapJustify: {
42
+ start: string;
43
+ center: string;
44
+ end: string;
45
+ around: string;
46
+ between: string;
47
+ evenly: string;
48
+ };
49
+ export declare const mapAlign: {
50
+ start: string;
51
+ center: string;
52
+ end: string;
53
+ stretch: string;
54
+ };
@@ -0,0 +1,29 @@
1
+ export const rowProps = {
2
+ rootStyle: [String, Object, Array],
3
+ rootClass: String,
4
+ gap: [Number, String],
5
+ justify: String,
6
+ align: String,
7
+ };
8
+ export const colProps = {
9
+ rootStyle: [String, Object, Array],
10
+ rootClass: String,
11
+ span: [Number, String],
12
+ offset: Number,
13
+ order: Number,
14
+ };
15
+ export const rowSymbol = Symbol('row-context');
16
+ export const mapJustify = {
17
+ start: 'flex-start',
18
+ center: 'center',
19
+ end: 'flex-end',
20
+ around: 'space-around',
21
+ between: 'space-between',
22
+ evenly: 'space-evenly',
23
+ };
24
+ export const mapAlign = {
25
+ start: 'flex-start',
26
+ center: 'center',
27
+ end: 'flex-end',
28
+ stretch: 'stretch',
29
+ };
@@ -0,0 +1 @@
1
+ export type { RowProps, RowSlots, ColProps, ColSlots } from './common';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type { PopoutInputProps, PopoutInputEmits } from './common';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,38 @@
1
+ import { type PropType, type StyleValue } from 'vue';
2
+ export interface TagProps {
3
+ rootStyle?: StyleValue;
4
+ rootClass?: string;
5
+ theme?: 'default' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
6
+ plain?: boolean;
7
+ round?: boolean;
8
+ mark?: boolean;
9
+ size?: 'small' | 'medium' | 'large';
10
+ color?: string;
11
+ textColor?: string;
12
+ closable?: boolean;
13
+ }
14
+ export declare const tagProps: {
15
+ rootStyle: PropType<StyleValue>;
16
+ rootClass: StringConstructor;
17
+ theme: {
18
+ type: PropType<"success" | "default" | "primary" | "info" | "secondary" | "warning" | "danger" | undefined>;
19
+ default: string;
20
+ };
21
+ plain: BooleanConstructor;
22
+ round: BooleanConstructor;
23
+ mark: BooleanConstructor;
24
+ size: {
25
+ type: PropType<"medium" | "small" | "large" | undefined>;
26
+ default: string;
27
+ };
28
+ color: StringConstructor;
29
+ textColor: StringConstructor;
30
+ closable: BooleanConstructor;
31
+ };
32
+ export interface TagSlots {
33
+ default(props: Record<string, never>): any;
34
+ }
35
+ export interface TagEmits {
36
+ (e: 'click', event: any): void;
37
+ (e: 'close', event: any): void;
38
+ }
@@ -0,0 +1,23 @@
1
+ import { defaultConfig } from '../config';
2
+ // const props = withDefaults(defineProps<TagProps>(), {
3
+ // theme: 'default',
4
+ // size: 'medium',
5
+ // })
6
+ export const tagProps = {
7
+ rootStyle: [String, Object, Array],
8
+ rootClass: String,
9
+ theme: {
10
+ type: String,
11
+ default: defaultConfig.tag.theme,
12
+ },
13
+ plain: Boolean,
14
+ round: Boolean,
15
+ mark: Boolean,
16
+ size: {
17
+ type: String,
18
+ default: defaultConfig.tag.size,
19
+ },
20
+ color: String,
21
+ textColor: String,
22
+ closable: Boolean,
23
+ };
@@ -0,0 +1 @@
1
+ export type { TagProps, TagSlots, TagEmits } from './common';
@@ -0,0 +1 @@
1
+ export {};
package/global.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import '@vue/runtime-core'
2
2
 
3
3
  import SarAccordion from './components/accordion/accordion.vue'
4
- import SarActionSheet from './components/action-sheet/action-sheet.vue'
5
4
  import SarAccordionItem from './components/accordion-item/accordion-item.vue'
5
+ import SarActionSheet from './components/action-sheet/action-sheet.vue'
6
6
  import SarAvatar from './components/avatar/avatar.vue'
7
7
  import SarBadge from './components/badge/badge.vue'
8
8
  import SarButton from './components/button/button.vue'
@@ -37,6 +37,7 @@ import SarListItem from './components/list-item/list-item.vue'
37
37
  import SarLoading from './components/loading/loading.vue'
38
38
  import SarMenu from './components/menu/menu.vue'
39
39
  import SarNavbar from './components/navbar/navbar.vue'
40
+ import SarNavbarItem from './components/navbar-item/navbar-item.vue'
40
41
  import SarNoticeBar from './components/notice-bar/notice-bar.vue'
41
42
  import SarNotify from './components/notify/notify.vue'
42
43
  import SarNotifyAgent from './components/notify-agent/notify-agent.vue'
@@ -70,9 +71,10 @@ import SarSteps from './components/steps/steps.vue'
70
71
  import SarSwiperDot from './components/swiper-dot/swiper-dot.vue'
71
72
  import SarSwitch from './components/switch/switch.vue'
72
73
  import SarTab from './components/tab/tab.vue'
73
- import SarTabs from './components/tabs/tabs.vue'
74
74
  import SarTabbar from './components/tabbar/tabbar.vue'
75
75
  import SarTabbarItem from './components/tabbar-item/tabbar-item.vue'
76
+ import SarTabs from './components/tabs/tabs.vue'
77
+ import SarTag from './components/tag/tag.vue'
76
78
  import SarToast from './components/toast/toast.vue'
77
79
  import SarToastAgent from './components/toast-agent/toast-agent.vue'
78
80
  import SarUpload from './components/upload/upload.vue'
@@ -117,6 +119,7 @@ declare module '@vue/runtime-core' {
117
119
  SarLoading: typeof SarLoading
118
120
  SarMenu: typeof SarMenu
119
121
  SarNavbar: typeof SarNavbar
122
+ SarNavbarItem: typeof SarNavbarItem
120
123
  SarNoticeBar: typeof SarNoticeBar
121
124
  SarNotify: typeof SarNotify
122
125
  SarNotifyAgent: typeof SarNotifyAgent
@@ -150,9 +153,10 @@ declare module '@vue/runtime-core' {
150
153
  SarSwiperDot: typeof SarSwiperDot
151
154
  SarSwitch: typeof SarSwitch
152
155
  SarTab: typeof SarTab
153
- SarTabs: typeof SarTabs
154
156
  SarTabbar: typeof SarTabbar
155
157
  SarTabbarItem: typeof SarTabbarItem
158
+ SarTabs: typeof SarTabs
159
+ SarTag: typeof SarTag
156
160
  SarToast: typeof SarToast
157
161
  SarToastAgent: typeof SarToastAgent
158
162
  SarUpload: typeof SarUpload
package/index.d.ts CHANGED
@@ -24,6 +24,7 @@ export * from './components/icon';
24
24
  export * from './components/indexes';
25
25
  export * from './components/input';
26
26
  export * from './components/keyboard';
27
+ export * from './components/layout';
27
28
  export * from './components/list';
28
29
  export * from './components/loading';
29
30
  export * from './components/locale';
@@ -38,6 +39,7 @@ export * from './components/password-input';
38
39
  export * from './components/picker';
39
40
  export * from './components/picker-input';
40
41
  export * from './components/popout';
42
+ export * from './components/popout-input';
41
43
  export * from './components/popover';
42
44
  export * from './components/popover-reference';
43
45
  export * from './components/popup';
@@ -54,8 +56,9 @@ export * from './components/stepper';
54
56
  export * from './components/steps';
55
57
  export * from './components/swiper-dot';
56
58
  export * from './components/switch';
57
- export * from './components/tabs';
58
59
  export * from './components/tabbar';
60
+ export * from './components/tabs';
61
+ export * from './components/tag';
59
62
  export * from './components/toast';
60
63
  export * from './components/toast-agent';
61
64
  export * from './components/upload';
package/index.js CHANGED
@@ -24,6 +24,7 @@ export * from './components/icon';
24
24
  export * from './components/indexes';
25
25
  export * from './components/input';
26
26
  export * from './components/keyboard';
27
+ export * from './components/layout';
27
28
  export * from './components/list';
28
29
  export * from './components/loading';
29
30
  export * from './components/locale';
@@ -38,6 +39,7 @@ export * from './components/password-input';
38
39
  export * from './components/picker';
39
40
  export * from './components/picker-input';
40
41
  export * from './components/popout';
42
+ export * from './components/popout-input';
41
43
  export * from './components/popover';
42
44
  export * from './components/popover-reference';
43
45
  export * from './components/popup';
@@ -54,8 +56,9 @@ export * from './components/stepper';
54
56
  export * from './components/steps';
55
57
  export * from './components/swiper-dot';
56
58
  export * from './components/switch';
57
- export * from './components/tabs';
58
59
  export * from './components/tabbar';
60
+ export * from './components/tabs';
61
+ export * from './components/tag';
59
62
  export * from './components/toast';
60
63
  export * from './components/toast-agent';
61
64
  export * from './components/upload';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "sard-uniapp",
3
3
  "name": "sard-uniapp",
4
4
  "displayName": "sard-uniapp",
5
- "version": "1.0.3",
5
+ "version": "1.0.4",
6
6
  "description": "sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库",
7
7
  "keywords": [
8
8
  "uniapp",