dendelion-ui 0.0.12 → 0.0.13
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.
- package/dist/dendelion-ui.cjs.js +2 -2
- package/dist/dendelion-ui.es.js +319 -316
- package/dist/dendelion-ui.umd.js +2 -2
- package/dist/types/components/button/Button.vue.d.ts +2 -12
- package/dist/types/components/card/Card.vue.d.ts +2 -11
- package/dist/types/components/card/CardBody.vue.d.ts +2 -4
- package/dist/types/components/container/Container.vue.d.ts +2 -10
- package/dist/types/components/modal/Modal.vue.d.ts +2 -23
- package/dist/types/components/stepper/Step.vue.d.ts +2 -8
- package/dist/types/components/stepper/StepList.vue.d.ts +2 -4
- package/dist/types/components/stepper/StepPanel.vue.d.ts +2 -9
- package/dist/types/components/stepper/StepPanels.vue.d.ts +2 -10
- package/dist/types/components/stepper/Stepper.vue.d.ts +2 -11
- package/dist/types/components/table/interface.d.ts +10 -2
- package/package.json +79 -75
- package/src/components/button/Button.vue +32 -29
- package/src/components/button/SimpleButton.vue +5 -8
- package/src/components/button/index.ts +3 -3
- package/src/components/button/interface.ts +13 -13
- package/src/components/card/Card.vue +32 -25
- package/src/components/card/CardBody.vue +7 -9
- package/src/components/card/CardTitle.vue +20 -18
- package/src/components/card/index.ts +4 -4
- package/src/components/card/interface.ts +9 -9
- package/src/components/container/Container.vue +20 -21
- package/src/components/container/index.ts +2 -2
- package/src/components/container/interface.ts +4 -5
- package/src/components/modal/Modal.vue +70 -52
- package/src/components/modal/index.ts +2 -2
- package/src/components/modal/interface.ts +12 -12
- package/src/components/search/SearchBar.vue +62 -53
- package/src/components/search/index.ts +1 -1
- package/src/components/stepper/Step.vue +37 -35
- package/src/components/stepper/StepList.vue +7 -8
- package/src/components/stepper/StepPanel.vue +29 -30
- package/src/components/stepper/StepPanels.vue +16 -17
- package/src/components/stepper/Stepper.vue +35 -33
- package/src/components/stepper/index.ts +6 -6
- package/src/components/stepper/interface.ts +3 -4
- package/src/components/table/Table.vue +135 -104
- package/src/components/table/index.ts +2 -2
- package/src/components/table/interface.ts +39 -31
- package/src/components.ts +7 -7
- package/src/index.ts +91 -91
- package/src/shims-vue.d.ts +7 -11
- package/src/types/color.ts +169 -170
- package/src/types/index.ts +2 -2
- package/src/types/size.ts +78 -78
package/src/shims-vue.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
// shims-vue.d.ts
|
|
2
|
-
declare module '*.vue' {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
any
|
|
9
|
-
>
|
|
10
|
-
export default component
|
|
11
|
-
}
|
|
1
|
+
// shims-vue.d.ts
|
|
2
|
+
declare module '*.vue' {
|
|
3
|
+
import type { DefineComponent } from 'vue';
|
|
4
|
+
|
|
5
|
+
const component: DefineComponent<Record<string, unknown>, Record<string, unknown>, any>;
|
|
6
|
+
export default component;
|
|
7
|
+
}
|
package/src/types/color.ts
CHANGED
|
@@ -1,170 +1,169 @@
|
|
|
1
|
-
export enum Color {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export class BackgroundColorUtils {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export class ButtonColorUtils {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export class TextColorUtils {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
1
|
+
export enum Color {
|
|
2
|
+
Primary,
|
|
3
|
+
PrimaryContent,
|
|
4
|
+
Secondary,
|
|
5
|
+
SecondaryContent,
|
|
6
|
+
Accent,
|
|
7
|
+
AccentContent,
|
|
8
|
+
Neutral,
|
|
9
|
+
NeutralContent,
|
|
10
|
+
Base100,
|
|
11
|
+
Base200,
|
|
12
|
+
Base300,
|
|
13
|
+
BaseContent,
|
|
14
|
+
Info,
|
|
15
|
+
InfoContent,
|
|
16
|
+
Success,
|
|
17
|
+
SuccessContent,
|
|
18
|
+
Warning,
|
|
19
|
+
WarningContent,
|
|
20
|
+
Error,
|
|
21
|
+
ErrorContent,
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class BackgroundColorUtils {
|
|
25
|
+
public static toClassName(color: Color): string {
|
|
26
|
+
switch (color) {
|
|
27
|
+
case Color.Primary:
|
|
28
|
+
return 'bg-primary';
|
|
29
|
+
case Color.PrimaryContent:
|
|
30
|
+
return 'bg-primary-content';
|
|
31
|
+
case Color.Secondary:
|
|
32
|
+
return 'bg-secondary';
|
|
33
|
+
case Color.SecondaryContent:
|
|
34
|
+
return 'bg-secondary-content';
|
|
35
|
+
case Color.Accent:
|
|
36
|
+
return 'bg-accent';
|
|
37
|
+
case Color.AccentContent:
|
|
38
|
+
return 'bg-accent-content';
|
|
39
|
+
case Color.Neutral:
|
|
40
|
+
return 'bg-neutral';
|
|
41
|
+
case Color.NeutralContent:
|
|
42
|
+
return 'bg-neutral-content';
|
|
43
|
+
case Color.Base100:
|
|
44
|
+
return 'base-100';
|
|
45
|
+
case Color.Base200:
|
|
46
|
+
return 'bg-base-200';
|
|
47
|
+
case Color.Base300:
|
|
48
|
+
return 'bg-base-300';
|
|
49
|
+
case Color.BaseContent:
|
|
50
|
+
return 'bg-base-content';
|
|
51
|
+
case Color.Info:
|
|
52
|
+
return 'bg-info';
|
|
53
|
+
case Color.InfoContent:
|
|
54
|
+
return 'bg-info-content';
|
|
55
|
+
case Color.Success:
|
|
56
|
+
return 'bg-success';
|
|
57
|
+
case Color.SuccessContent:
|
|
58
|
+
return 'bg-success-content';
|
|
59
|
+
case Color.Warning:
|
|
60
|
+
return 'bg-warning';
|
|
61
|
+
case Color.WarningContent:
|
|
62
|
+
return 'bg-warning-content';
|
|
63
|
+
case Color.Error:
|
|
64
|
+
return 'bg-error';
|
|
65
|
+
case Color.ErrorContent:
|
|
66
|
+
return 'bg-error-content';
|
|
67
|
+
default:
|
|
68
|
+
return 'bg-base-content';
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export class ButtonColorUtils {
|
|
74
|
+
public static toClassName(color: Color): string {
|
|
75
|
+
switch (color) {
|
|
76
|
+
case Color.Primary:
|
|
77
|
+
return 'btn-primary';
|
|
78
|
+
case Color.PrimaryContent:
|
|
79
|
+
return 'btn-primary-content';
|
|
80
|
+
case Color.Secondary:
|
|
81
|
+
return 'btn-secondary';
|
|
82
|
+
case Color.SecondaryContent:
|
|
83
|
+
return 'btn-secondary-content';
|
|
84
|
+
case Color.Accent:
|
|
85
|
+
return 'btn-accent';
|
|
86
|
+
case Color.AccentContent:
|
|
87
|
+
return 'btn-accent-content';
|
|
88
|
+
case Color.Neutral:
|
|
89
|
+
return 'btn-neutral';
|
|
90
|
+
case Color.NeutralContent:
|
|
91
|
+
return 'btn-neutral-content';
|
|
92
|
+
case Color.Base100:
|
|
93
|
+
return 'base-100';
|
|
94
|
+
case Color.Base200:
|
|
95
|
+
return 'btn-base-200';
|
|
96
|
+
case Color.Base300:
|
|
97
|
+
return 'btn-base-300';
|
|
98
|
+
case Color.BaseContent:
|
|
99
|
+
return 'btn-base-content';
|
|
100
|
+
case Color.Info:
|
|
101
|
+
return 'btn-info';
|
|
102
|
+
case Color.InfoContent:
|
|
103
|
+
return 'btn-info-content';
|
|
104
|
+
case Color.Success:
|
|
105
|
+
return 'btn-success';
|
|
106
|
+
case Color.SuccessContent:
|
|
107
|
+
return 'btn-success-content';
|
|
108
|
+
case Color.Warning:
|
|
109
|
+
return 'btn-warning';
|
|
110
|
+
case Color.WarningContent:
|
|
111
|
+
return 'btn-warning-content';
|
|
112
|
+
case Color.Error:
|
|
113
|
+
return 'btn-error';
|
|
114
|
+
case Color.ErrorContent:
|
|
115
|
+
return 'btn-error-content';
|
|
116
|
+
default:
|
|
117
|
+
return 'btn-base-content';
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export class TextColorUtils {
|
|
123
|
+
public static toClassName(color: Color): string {
|
|
124
|
+
switch (color) {
|
|
125
|
+
case Color.Primary:
|
|
126
|
+
return 'text-primary';
|
|
127
|
+
case Color.PrimaryContent:
|
|
128
|
+
return 'text-primary-content';
|
|
129
|
+
case Color.Secondary:
|
|
130
|
+
return 'text-secondary';
|
|
131
|
+
case Color.SecondaryContent:
|
|
132
|
+
return 'text-secondary-content';
|
|
133
|
+
case Color.Accent:
|
|
134
|
+
return 'text-accent';
|
|
135
|
+
case Color.AccentContent:
|
|
136
|
+
return 'text-accent-content';
|
|
137
|
+
case Color.Neutral:
|
|
138
|
+
return 'text-neutral';
|
|
139
|
+
case Color.NeutralContent:
|
|
140
|
+
return 'text-neutral-content';
|
|
141
|
+
case Color.Base100:
|
|
142
|
+
return 'base-100';
|
|
143
|
+
case Color.Base200:
|
|
144
|
+
return 'text-base-200';
|
|
145
|
+
case Color.Base300:
|
|
146
|
+
return 'text-base-300';
|
|
147
|
+
case Color.BaseContent:
|
|
148
|
+
return 'text-base-content';
|
|
149
|
+
case Color.Info:
|
|
150
|
+
return 'text-info';
|
|
151
|
+
case Color.InfoContent:
|
|
152
|
+
return 'text-info-content';
|
|
153
|
+
case Color.Success:
|
|
154
|
+
return 'text-success';
|
|
155
|
+
case Color.SuccessContent:
|
|
156
|
+
return 'text-success-content';
|
|
157
|
+
case Color.Warning:
|
|
158
|
+
return 'text-warning';
|
|
159
|
+
case Color.WarningContent:
|
|
160
|
+
return 'text-warning-content';
|
|
161
|
+
case Color.Error:
|
|
162
|
+
return 'text-error';
|
|
163
|
+
case Color.ErrorContent:
|
|
164
|
+
return 'text-error-content';
|
|
165
|
+
default:
|
|
166
|
+
return 'text-base-content';
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
package/src/types/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './color'
|
|
2
|
-
export * from './size'
|
|
1
|
+
export * from './color';
|
|
2
|
+
export * from './size';
|
package/src/types/size.ts
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
export enum Size {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export class ButtonSizeUtils {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export class RoundedSizeUtils {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export class TableSizeUtils {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
1
|
+
export enum Size {
|
|
2
|
+
XS,
|
|
3
|
+
SM,
|
|
4
|
+
MD,
|
|
5
|
+
LG,
|
|
6
|
+
XL,
|
|
7
|
+
TWOXL,
|
|
8
|
+
THREEXL,
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class ButtonSizeUtils {
|
|
12
|
+
public static toClassName(size: Size): string {
|
|
13
|
+
switch (size) {
|
|
14
|
+
case Size.XS:
|
|
15
|
+
return 'btn-xs';
|
|
16
|
+
case Size.SM:
|
|
17
|
+
return 'btn-sm';
|
|
18
|
+
case Size.MD:
|
|
19
|
+
return 'btn-md';
|
|
20
|
+
case Size.LG:
|
|
21
|
+
return 'btn-lg';
|
|
22
|
+
case Size.XL:
|
|
23
|
+
return 'btn-xl';
|
|
24
|
+
case Size.TWOXL:
|
|
25
|
+
return 'btn-2xl';
|
|
26
|
+
case Size.THREEXL:
|
|
27
|
+
return 'btn-3xl';
|
|
28
|
+
default:
|
|
29
|
+
return 'btn-md';
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class RoundedSizeUtils {
|
|
35
|
+
public static toClassName(size: Size): string {
|
|
36
|
+
switch (size) {
|
|
37
|
+
case Size.XS:
|
|
38
|
+
return 'rounded-xs';
|
|
39
|
+
case Size.SM:
|
|
40
|
+
return 'rounded-sm';
|
|
41
|
+
case Size.MD:
|
|
42
|
+
return 'rounded-md';
|
|
43
|
+
case Size.LG:
|
|
44
|
+
return 'rounded-lg';
|
|
45
|
+
case Size.XL:
|
|
46
|
+
return 'rounded-xl';
|
|
47
|
+
case Size.TWOXL:
|
|
48
|
+
return 'rounded-2xl';
|
|
49
|
+
case Size.THREEXL:
|
|
50
|
+
return 'rounded-3xl';
|
|
51
|
+
default:
|
|
52
|
+
return 'rounded-md';
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export class TableSizeUtils {
|
|
58
|
+
public static toClassName(size: Size): string {
|
|
59
|
+
switch (size) {
|
|
60
|
+
case Size.XS:
|
|
61
|
+
return 'table-xs';
|
|
62
|
+
case Size.SM:
|
|
63
|
+
return 'table-sm';
|
|
64
|
+
case Size.MD:
|
|
65
|
+
return 'table-md';
|
|
66
|
+
case Size.LG:
|
|
67
|
+
return 'table-lg';
|
|
68
|
+
case Size.XL:
|
|
69
|
+
return 'table-xl';
|
|
70
|
+
case Size.TWOXL:
|
|
71
|
+
return 'table-2xl';
|
|
72
|
+
case Size.THREEXL:
|
|
73
|
+
return 'table-3xl';
|
|
74
|
+
default:
|
|
75
|
+
return 'table-md';
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|