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/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
|
+
}
|