dendelion-ui 0.0.11 → 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 +321 -315
- 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 -21
- package/dist/types/components/modal/interface.d.ts +1 -0
- 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 -50
- package/src/components/modal/index.ts +2 -2
- package/src/components/modal/interface.ts +12 -11
- 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/index.ts
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
export * from './components'
|
|
2
|
-
|
|
3
|
-
export * from './types/index'
|
|
4
|
-
|
|
5
|
-
const dendelionSafeList = [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
export { dendelionSafeList };
|
|
1
|
+
export * from './components';
|
|
2
|
+
|
|
3
|
+
export * from './types/index';
|
|
4
|
+
|
|
5
|
+
const dendelionSafeList = [
|
|
6
|
+
'bg-primary',
|
|
7
|
+
'bg-primary-content',
|
|
8
|
+
'bg-secondary',
|
|
9
|
+
'bg-secondary-content',
|
|
10
|
+
'bg-accent',
|
|
11
|
+
'bg-accent-content',
|
|
12
|
+
'bg-neutral',
|
|
13
|
+
'bg-neutral-content',
|
|
14
|
+
'bg-base-100',
|
|
15
|
+
'bg-base-200',
|
|
16
|
+
'bg-base-300',
|
|
17
|
+
'bg-base-content',
|
|
18
|
+
'bg-info',
|
|
19
|
+
'bg-info-content',
|
|
20
|
+
'bg-success',
|
|
21
|
+
'bg-success-content',
|
|
22
|
+
'bg-warning',
|
|
23
|
+
'bg-warning-content',
|
|
24
|
+
'bg-error',
|
|
25
|
+
'bg-error-content',
|
|
26
|
+
'btn-primary',
|
|
27
|
+
'btn-primary-content',
|
|
28
|
+
'btn-secondary',
|
|
29
|
+
'btn-secondary-content',
|
|
30
|
+
'btn-accent',
|
|
31
|
+
'btn-accent-content',
|
|
32
|
+
'btn-neutral',
|
|
33
|
+
'btn-neutral-content',
|
|
34
|
+
'btn-base-100',
|
|
35
|
+
'btn-base-200',
|
|
36
|
+
'btn-base-300',
|
|
37
|
+
'btn-base-content',
|
|
38
|
+
'btn-info',
|
|
39
|
+
'btn-info-content',
|
|
40
|
+
'btn-success',
|
|
41
|
+
'btn-success-content',
|
|
42
|
+
'btn-warning',
|
|
43
|
+
'btn-warning-content',
|
|
44
|
+
'btn-error',
|
|
45
|
+
'btn-error-content',
|
|
46
|
+
'text-primary',
|
|
47
|
+
'text-primary-content',
|
|
48
|
+
'text-secondary',
|
|
49
|
+
'text-secondary-content',
|
|
50
|
+
'text-accent',
|
|
51
|
+
'text-accent-content',
|
|
52
|
+
'text-neutral',
|
|
53
|
+
'text-neutral-content',
|
|
54
|
+
'text-base-100',
|
|
55
|
+
'text-base-200',
|
|
56
|
+
'text-base-300',
|
|
57
|
+
'text-base-content',
|
|
58
|
+
'text-info',
|
|
59
|
+
'text-info-content',
|
|
60
|
+
'text-success',
|
|
61
|
+
'text-success-content',
|
|
62
|
+
'text-warning',
|
|
63
|
+
'text-warning-content',
|
|
64
|
+
'text-error',
|
|
65
|
+
'text-error-content',
|
|
66
|
+
'text-transparent',
|
|
67
|
+
'step',
|
|
68
|
+
'steps',
|
|
69
|
+
'modal',
|
|
70
|
+
'modal-box',
|
|
71
|
+
'btn',
|
|
72
|
+
'btn-sm',
|
|
73
|
+
'btn-circle',
|
|
74
|
+
'btn-ghost',
|
|
75
|
+
'absolute',
|
|
76
|
+
'right-2',
|
|
77
|
+
'top-2',
|
|
78
|
+
'shadow-lg',
|
|
79
|
+
'w-full',
|
|
80
|
+
'rounded-xs',
|
|
81
|
+
'rounded-sm',
|
|
82
|
+
'rounded-md',
|
|
83
|
+
'rounded-lg',
|
|
84
|
+
'rounded-xl',
|
|
85
|
+
'rounded-2xl',
|
|
86
|
+
'rounded-3xl',
|
|
87
|
+
'hidden',
|
|
88
|
+
'block',
|
|
89
|
+
];
|
|
90
|
+
|
|
91
|
+
export { dendelionSafeList };
|
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';
|