nuxt-glorious 1.2.3-9 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/module.d.mts +38 -1
- package/dist/module.d.ts +38 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +37 -33
- package/dist/runtime/assets/style/components/alert.css +20 -5
- package/dist/runtime/assets/style/components/avatar.css +21 -18
- package/dist/runtime/assets/style/components/button.css +198 -0
- package/dist/runtime/assets/style/components/checkbox.css +24 -24
- package/dist/runtime/assets/style/components/drawer.css +14 -18
- package/dist/runtime/assets/style/components/file.css +102 -33
- package/dist/runtime/assets/style/components/input.css +103 -23
- package/dist/runtime/assets/style/components/loading.css +43 -0
- package/dist/runtime/assets/style/components/radio.css +27 -27
- package/dist/runtime/assets/style/components/select.css +24 -19
- package/dist/runtime/assets/style/components/textarea.css +35 -35
- package/dist/runtime/assets/style/mixin.css +0 -0
- package/dist/runtime/components/G/Alert.vue +8 -28
- package/dist/runtime/components/G/Avatar.vue +5 -73
- package/dist/runtime/components/G/Breadcrumb.vue +7 -25
- package/dist/runtime/components/G/Button.vue +10 -152
- package/dist/runtime/components/G/Checkbox.vue +8 -124
- package/dist/runtime/components/G/CountDown.vue +33 -44
- package/dist/runtime/components/G/Drawer.vue +12 -101
- package/dist/runtime/components/G/Dropdown.vue +16 -11
- package/dist/runtime/components/G/ErrorText.vue +6 -11
- package/dist/runtime/components/G/File.vue +25 -117
- package/dist/runtime/components/G/Icon.vue +125 -0
- package/dist/runtime/components/G/Input.vue +28 -229
- package/dist/runtime/components/G/Loading.vue +4 -21
- package/dist/runtime/components/G/Modal.vue +13 -145
- package/dist/runtime/components/G/Paginate.vue +8 -44
- package/dist/runtime/components/G/Radio.vue +12 -163
- package/dist/runtime/components/G/Rating.vue +3 -30
- package/dist/runtime/components/G/Select.vue +7 -110
- package/dist/runtime/components/G/Switch.vue +5 -82
- package/dist/runtime/components/G/Tab.vue +6 -30
- package/dist/runtime/components/G/Table.vue +11 -131
- package/dist/runtime/components/G/textarea.vue +14 -119
- package/dist/runtime/components/G/timeline.vue +3 -59
- package/dist/runtime/components/helper.d.ts +2 -0
- package/dist/runtime/components/helper.mjs +25 -0
- package/dist/runtime/components/props/Alert.d.ts +8 -0
- package/dist/runtime/components/props/Alert.mjs +4 -0
- package/dist/runtime/components/props/Avatar.d.ts +12 -0
- package/dist/runtime/components/props/Avatar.mjs +9 -0
- package/dist/runtime/components/props/Breadcrumb.d.ts +26 -0
- package/dist/runtime/components/props/Breadcrumb.mjs +11 -0
- package/dist/runtime/components/props/Button.d.ts +47 -0
- package/dist/runtime/components/props/Button.mjs +14 -0
- package/dist/runtime/components/props/CheckBox.d.ts +23 -0
- package/dist/runtime/components/props/CheckBox.mjs +7 -0
- package/dist/runtime/components/props/CountDown.d.ts +7 -0
- package/dist/runtime/components/props/CountDown.mjs +6 -0
- package/dist/runtime/components/props/Drawer.d.ts +8 -0
- package/dist/runtime/components/props/Drawer.mjs +7 -0
- package/dist/runtime/components/props/ErrorText.d.ts +8 -0
- package/dist/runtime/components/props/ErrorText.mjs +4 -0
- package/dist/runtime/components/props/File.d.ts +28 -0
- package/dist/runtime/components/props/File.mjs +9 -0
- package/dist/runtime/components/props/Icon.d.ts +23 -0
- package/dist/runtime/components/props/Icon.mjs +7 -0
- package/dist/runtime/components/props/Input.d.ts +91 -0
- package/dist/runtime/components/props/Input.mjs +50 -0
- package/dist/runtime/components/props/Loading.d.ts +18 -0
- package/dist/runtime/components/props/Loading.mjs +6 -0
- package/dist/runtime/components/props/Modal.d.ts +48 -0
- package/dist/runtime/components/props/Modal.mjs +38 -0
- package/dist/runtime/components/props/Paginate.d.ts +18 -0
- package/dist/runtime/components/props/Paginate.mjs +17 -0
- package/dist/runtime/components/props/Radio.d.ts +33 -0
- package/dist/runtime/components/props/Radio.mjs +9 -0
- package/dist/runtime/components/props/Select.d.ts +61 -0
- package/dist/runtime/components/props/Select.mjs +23 -0
- package/dist/runtime/components/props/Switch.d.ts +13 -0
- package/dist/runtime/components/props/Switch.mjs +5 -0
- package/dist/runtime/components/props/Tab.d.ts +21 -0
- package/dist/runtime/components/props/Tab.mjs +7 -0
- package/dist/runtime/components/props/Table.d.ts +49 -0
- package/dist/runtime/components/props/Table.mjs +19 -0
- package/dist/runtime/components/props/Textarea.d.ts +38 -0
- package/dist/runtime/components/props/Textarea.mjs +14 -0
- package/dist/runtime/components/props/Timeline.d.ts +11 -0
- package/dist/runtime/components/props/Timeline.mjs +7 -0
- package/dist/runtime/components/props/common/index.d.ts +161 -0
- package/dist/runtime/components/props/common/index.mjs +147 -0
- package/dist/runtime/composables/useGloriousCore.d.ts +1 -1
- package/dist/runtime/composables/useGloriousCore.mjs +1 -1
- package/dist/runtime/composables/useGloriousFetch.mjs +0 -1
- package/dist/runtime/middlewares/AuthStrategy.mjs +1 -5
- package/dist/runtime/stores/GloriousStore.d.ts +0 -2
- package/dist/runtime/stores/GloriousStore.mjs +0 -20
- package/dist/types.d.mts +2 -10
- package/dist/types.d.ts +2 -10
- package/package.json +1 -1
- package/dist/runtime/assets/style/components/buttons.css +0 -107
- package/dist/runtime/components/G/BottomNavigation.vue +0 -3
- package/dist/runtime/components/G/Icon/index.vue +0 -143
package/dist/module.d.mts
CHANGED
@@ -1,7 +1,44 @@
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
2
2
|
|
3
3
|
interface ModuleOptions {
|
4
|
+
fetch?: {
|
5
|
+
baseURL?: string;
|
6
|
+
credentials?: 'same-origin' | 'include';
|
7
|
+
};
|
8
|
+
seo?: {
|
9
|
+
suffix?: string;
|
10
|
+
title?: string;
|
11
|
+
description?: string;
|
12
|
+
};
|
13
|
+
auth?: {
|
14
|
+
cookie?: {
|
15
|
+
name?: string;
|
16
|
+
httpOnly?: boolean;
|
17
|
+
};
|
18
|
+
redirect?: {
|
19
|
+
logout?: string;
|
20
|
+
login?: string;
|
21
|
+
};
|
22
|
+
strategy?: {
|
23
|
+
provider?: 'laravel-passport' | '';
|
24
|
+
endpoints?: {
|
25
|
+
userInfo?: {
|
26
|
+
url?: string;
|
27
|
+
method?: 'GET' | 'POST' | 'PUT' | 'PATCH';
|
28
|
+
pick?: string;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
};
|
32
|
+
};
|
33
|
+
components: {
|
34
|
+
alert: {
|
35
|
+
props: {
|
36
|
+
color: string;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
};
|
4
40
|
}
|
41
|
+
|
5
42
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
6
43
|
|
7
|
-
export {
|
44
|
+
export { _default as default };
|
package/dist/module.d.ts
CHANGED
@@ -1,7 +1,44 @@
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
2
2
|
|
3
3
|
interface ModuleOptions {
|
4
|
+
fetch?: {
|
5
|
+
baseURL?: string;
|
6
|
+
credentials?: 'same-origin' | 'include';
|
7
|
+
};
|
8
|
+
seo?: {
|
9
|
+
suffix?: string;
|
10
|
+
title?: string;
|
11
|
+
description?: string;
|
12
|
+
};
|
13
|
+
auth?: {
|
14
|
+
cookie?: {
|
15
|
+
name?: string;
|
16
|
+
httpOnly?: boolean;
|
17
|
+
};
|
18
|
+
redirect?: {
|
19
|
+
logout?: string;
|
20
|
+
login?: string;
|
21
|
+
};
|
22
|
+
strategy?: {
|
23
|
+
provider?: 'laravel-passport' | '';
|
24
|
+
endpoints?: {
|
25
|
+
userInfo?: {
|
26
|
+
url?: string;
|
27
|
+
method?: 'GET' | 'POST' | 'PUT' | 'PATCH';
|
28
|
+
pick?: string;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
};
|
32
|
+
};
|
33
|
+
components: {
|
34
|
+
alert: {
|
35
|
+
props: {
|
36
|
+
color: string;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
};
|
4
40
|
}
|
41
|
+
|
5
42
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
6
43
|
|
7
|
-
export {
|
44
|
+
export { _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
@@ -1,6 +1,38 @@
|
|
1
1
|
import { defineNuxtModule, createResolver, installModule, addImportsDir, addComponentsDir, addPlugin, addRouteMiddleware } from '@nuxt/kit';
|
2
2
|
import defu from 'defu';
|
3
3
|
|
4
|
+
const defaultModuleOption = {
|
5
|
+
fetch: {
|
6
|
+
baseURL: "/",
|
7
|
+
credentials: "same-origin"
|
8
|
+
},
|
9
|
+
seo: {
|
10
|
+
suffix: "",
|
11
|
+
title: "",
|
12
|
+
description: ""
|
13
|
+
},
|
14
|
+
auth: {
|
15
|
+
cookie: {
|
16
|
+
name: "ga-token",
|
17
|
+
httpOnly: false
|
18
|
+
},
|
19
|
+
redirect: {
|
20
|
+
login: "/login",
|
21
|
+
logout: "/logout"
|
22
|
+
},
|
23
|
+
strategy: {
|
24
|
+
provider: ""
|
25
|
+
}
|
26
|
+
},
|
27
|
+
components: {
|
28
|
+
alert: {
|
29
|
+
props: {
|
30
|
+
color: "green"
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
};
|
35
|
+
|
4
36
|
const module = defineNuxtModule({
|
5
37
|
meta: {
|
6
38
|
name: "nuxt-glorious",
|
@@ -10,38 +42,10 @@ const module = defineNuxtModule({
|
|
10
42
|
defaults: {},
|
11
43
|
async setup(options, nuxt) {
|
12
44
|
const resolver = createResolver(import.meta.url);
|
13
|
-
nuxt.options.runtimeConfig.public.glorious = defu(
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
},
|
18
|
-
seo: {
|
19
|
-
suffix: "",
|
20
|
-
title: "",
|
21
|
-
description: ""
|
22
|
-
},
|
23
|
-
auth: {
|
24
|
-
cookie: {
|
25
|
-
name: "ga-token",
|
26
|
-
httpOnly: false
|
27
|
-
},
|
28
|
-
redirect: {
|
29
|
-
logout: "/login",
|
30
|
-
login: "/login"
|
31
|
-
},
|
32
|
-
strategy: {
|
33
|
-
provider: "",
|
34
|
-
//[laravel-passport]
|
35
|
-
endpoints: {
|
36
|
-
userInfo: {
|
37
|
-
url: "/",
|
38
|
-
method: "GET",
|
39
|
-
pick: ""
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
});
|
45
|
+
nuxt.options.runtimeConfig.public.glorious = defu(
|
46
|
+
nuxt.options.glorious,
|
47
|
+
defaultModuleOption
|
48
|
+
);
|
45
49
|
await installModule("@nuxtjs/tailwindcss", {
|
46
50
|
// module configuration
|
47
51
|
exposeConfig: true,
|
@@ -49,7 +53,7 @@ const module = defineNuxtModule({
|
|
49
53
|
darkMode: "class",
|
50
54
|
content: {
|
51
55
|
files: [
|
52
|
-
resolver.resolve("./runtime/components
|
56
|
+
resolver.resolve("./runtime/components/**/*.{vue,mjs,ts}"),
|
53
57
|
resolver.resolve("./runtime/*.{mjs,js,ts}")
|
54
58
|
]
|
55
59
|
}
|
@@ -2,17 +2,32 @@
|
|
2
2
|
@apply p-3 rounded shadow;
|
3
3
|
}
|
4
4
|
.glorious-alert.color-orange {
|
5
|
-
@apply
|
5
|
+
@apply bg-orange-100;
|
6
6
|
}
|
7
7
|
.glorious-alert.color-blue {
|
8
|
-
@apply
|
8
|
+
@apply bg-blue-100;
|
9
9
|
}
|
10
10
|
.glorious-alert.color-gray {
|
11
|
-
@apply
|
11
|
+
@apply bg-gray-100;
|
12
12
|
}
|
13
13
|
.glorious-alert.color-red {
|
14
|
-
@apply
|
14
|
+
@apply bg-red-100;
|
15
15
|
}
|
16
16
|
.glorious-alert.color-green {
|
17
|
-
@apply
|
17
|
+
@apply bg-green-100;
|
18
|
+
}
|
19
|
+
.glorious-alert.color-orange {
|
20
|
+
@apply border border-orange-300;
|
21
|
+
}
|
22
|
+
.glorious-alert.color-blue {
|
23
|
+
@apply border border-blue-300;
|
24
|
+
}
|
25
|
+
.glorious-alert.color-gray {
|
26
|
+
@apply border border-gray-300;
|
27
|
+
}
|
28
|
+
.glorious-alert.color-red {
|
29
|
+
@apply border border-red-300;
|
30
|
+
}
|
31
|
+
.glorious-alert.color-green {
|
32
|
+
@apply border border-green-300;
|
18
33
|
}
|
@@ -1,54 +1,57 @@
|
|
1
|
+
.glorious-avatar {
|
2
|
+
@apply overflow-hidden;
|
3
|
+
}
|
1
4
|
.glorious-avatar.size-5xl {
|
2
|
-
@apply w-[
|
5
|
+
@apply w-[58px] h-[58px];
|
3
6
|
}
|
4
7
|
.glorious-avatar.size-5xl > img {
|
5
|
-
@apply w-[
|
8
|
+
@apply w-[58px] h-[58px];
|
6
9
|
}
|
7
10
|
.glorious-avatar.size-4xl {
|
8
|
-
@apply w-[
|
11
|
+
@apply w-[54px] h-[54px];
|
9
12
|
}
|
10
13
|
.glorious-avatar.size-4xl > img {
|
11
|
-
@apply w-[
|
14
|
+
@apply w-[54px] h-[54px];
|
12
15
|
}
|
13
16
|
.glorious-avatar.size-3xl {
|
14
|
-
@apply w-[
|
17
|
+
@apply w-[50px] h-[50px];
|
15
18
|
}
|
16
19
|
.glorious-avatar.size-3xl > img {
|
17
|
-
@apply w-[
|
20
|
+
@apply w-[50px] h-[50px];
|
18
21
|
}
|
19
22
|
.glorious-avatar.size-2xl {
|
20
|
-
@apply w-[
|
23
|
+
@apply w-[46px] h-[46px];
|
21
24
|
}
|
22
25
|
.glorious-avatar.size-2xl > img {
|
23
|
-
@apply w-[
|
26
|
+
@apply w-[46px] h-[46px];
|
24
27
|
}
|
25
28
|
.glorious-avatar.size-xl {
|
26
|
-
@apply w-[
|
29
|
+
@apply w-[42px] h-[42px];
|
27
30
|
}
|
28
31
|
.glorious-avatar.size-xl > img {
|
29
|
-
@apply w-[
|
32
|
+
@apply w-[42px] h-[42px];
|
30
33
|
}
|
31
34
|
.glorious-avatar.size-lg {
|
32
|
-
@apply w-[
|
35
|
+
@apply w-[36px] h-[36px];
|
33
36
|
}
|
34
37
|
.glorious-avatar.size-lg > img {
|
35
|
-
@apply w-[
|
38
|
+
@apply w-[36px] h-[36px];
|
36
39
|
}
|
37
40
|
.glorious-avatar.size-md {
|
38
|
-
@apply w-[
|
41
|
+
@apply w-[32px] h-[32px];
|
39
42
|
}
|
40
43
|
.glorious-avatar.size-md > img {
|
41
|
-
@apply w-[
|
44
|
+
@apply w-[32px] h-[32px];
|
42
45
|
}
|
43
46
|
.glorious-avatar.size-sm {
|
44
|
-
@apply w-[
|
47
|
+
@apply w-[28px] h-[28px];
|
45
48
|
}
|
46
49
|
.glorious-avatar.size-sm > img {
|
47
|
-
@apply w-[
|
50
|
+
@apply w-[28px] h-[28px];
|
48
51
|
}
|
49
52
|
.glorious-avatar.size-xs {
|
50
|
-
@apply w-[
|
53
|
+
@apply w-[24px] h-[24px];
|
51
54
|
}
|
52
55
|
.glorious-avatar.size-xs > img {
|
53
|
-
@apply w-[
|
56
|
+
@apply w-[24px] h-[24px];
|
54
57
|
}
|
@@ -0,0 +1,198 @@
|
|
1
|
+
button:focus-visible {
|
2
|
+
@apply outline-none;
|
3
|
+
}
|
4
|
+
|
5
|
+
.glorious-button-orange {
|
6
|
+
@apply bg-orange-600 border-orange-700 hover:bg-orange-700;
|
7
|
+
@apply rounded-md text-white px-3;
|
8
|
+
}
|
9
|
+
.glorious-button-orange div > loading {
|
10
|
+
@apply flex justify-center items-center;
|
11
|
+
}
|
12
|
+
.glorious-button-orange div.loading > div > div {
|
13
|
+
@apply w-6 !important;
|
14
|
+
}
|
15
|
+
.glorious-button-orange.size-xl {
|
16
|
+
@apply py-2.5;
|
17
|
+
}
|
18
|
+
.glorious-button-orange.size-lg {
|
19
|
+
@apply py-2;
|
20
|
+
}
|
21
|
+
.glorious-button-orange.size-md {
|
22
|
+
@apply py-1.5;
|
23
|
+
}
|
24
|
+
.glorious-button-orange.size-sm {
|
25
|
+
@apply py-1;
|
26
|
+
}
|
27
|
+
.glorious-button-orange.size-xs {
|
28
|
+
@apply py-0.5;
|
29
|
+
}
|
30
|
+
.glorious-button-orange.outline {
|
31
|
+
@apply bg-transparent border outline-none;
|
32
|
+
@apply text-orange-500 hover:bg-orange-100;
|
33
|
+
}
|
34
|
+
.glorious-button-orange.outline div.loading > div > div {
|
35
|
+
border-color: theme("colors.orange.700") !important;
|
36
|
+
}
|
37
|
+
.glorious-button-orange:disabled {
|
38
|
+
@apply cursor-not-allowed;
|
39
|
+
}
|
40
|
+
.glorious-button-orange:disabled:not(:disabled) {
|
41
|
+
@apply bg-green-300;
|
42
|
+
}
|
43
|
+
|
44
|
+
.glorious-button-blue {
|
45
|
+
@apply bg-blue-600 border-blue-700 hover:bg-blue-700;
|
46
|
+
@apply rounded-md text-white px-3;
|
47
|
+
}
|
48
|
+
.glorious-button-blue div > loading {
|
49
|
+
@apply flex justify-center items-center;
|
50
|
+
}
|
51
|
+
.glorious-button-blue div.loading > div > div {
|
52
|
+
@apply w-6 !important;
|
53
|
+
}
|
54
|
+
.glorious-button-blue.size-xl {
|
55
|
+
@apply py-2.5;
|
56
|
+
}
|
57
|
+
.glorious-button-blue.size-lg {
|
58
|
+
@apply py-2;
|
59
|
+
}
|
60
|
+
.glorious-button-blue.size-md {
|
61
|
+
@apply py-1.5;
|
62
|
+
}
|
63
|
+
.glorious-button-blue.size-sm {
|
64
|
+
@apply py-1;
|
65
|
+
}
|
66
|
+
.glorious-button-blue.size-xs {
|
67
|
+
@apply py-0.5;
|
68
|
+
}
|
69
|
+
.glorious-button-blue.outline {
|
70
|
+
@apply bg-transparent border outline-none;
|
71
|
+
@apply text-blue-500 hover:bg-blue-100;
|
72
|
+
}
|
73
|
+
.glorious-button-blue.outline div.loading > div > div {
|
74
|
+
border-color: theme("colors.blue.700") !important;
|
75
|
+
}
|
76
|
+
.glorious-button-blue:disabled {
|
77
|
+
@apply cursor-not-allowed;
|
78
|
+
}
|
79
|
+
.glorious-button-blue:disabled:not(:disabled) {
|
80
|
+
@apply bg-green-300;
|
81
|
+
}
|
82
|
+
|
83
|
+
.glorious-button-gray {
|
84
|
+
@apply bg-gray-600 border-gray-700 hover:bg-gray-700;
|
85
|
+
@apply rounded-md text-white px-3;
|
86
|
+
}
|
87
|
+
.glorious-button-gray div > loading {
|
88
|
+
@apply flex justify-center items-center;
|
89
|
+
}
|
90
|
+
.glorious-button-gray div.loading > div > div {
|
91
|
+
@apply w-6 !important;
|
92
|
+
}
|
93
|
+
.glorious-button-gray.size-xl {
|
94
|
+
@apply py-2.5;
|
95
|
+
}
|
96
|
+
.glorious-button-gray.size-lg {
|
97
|
+
@apply py-2;
|
98
|
+
}
|
99
|
+
.glorious-button-gray.size-md {
|
100
|
+
@apply py-1.5;
|
101
|
+
}
|
102
|
+
.glorious-button-gray.size-sm {
|
103
|
+
@apply py-1;
|
104
|
+
}
|
105
|
+
.glorious-button-gray.size-xs {
|
106
|
+
@apply py-0.5;
|
107
|
+
}
|
108
|
+
.glorious-button-gray.outline {
|
109
|
+
@apply bg-transparent border outline-none;
|
110
|
+
@apply text-gray-500 hover:bg-gray-100;
|
111
|
+
}
|
112
|
+
.glorious-button-gray.outline div.loading > div > div {
|
113
|
+
border-color: theme("colors.gray.700") !important;
|
114
|
+
}
|
115
|
+
.glorious-button-gray:disabled {
|
116
|
+
@apply cursor-not-allowed;
|
117
|
+
}
|
118
|
+
.glorious-button-gray:disabled:not(:disabled) {
|
119
|
+
@apply bg-green-300;
|
120
|
+
}
|
121
|
+
|
122
|
+
.glorious-button-red {
|
123
|
+
@apply bg-red-600 border-red-700 hover:bg-red-700;
|
124
|
+
@apply rounded-md text-white px-3;
|
125
|
+
}
|
126
|
+
.glorious-button-red div > loading {
|
127
|
+
@apply flex justify-center items-center;
|
128
|
+
}
|
129
|
+
.glorious-button-red div.loading > div > div {
|
130
|
+
@apply w-6 !important;
|
131
|
+
}
|
132
|
+
.glorious-button-red.size-xl {
|
133
|
+
@apply py-2.5;
|
134
|
+
}
|
135
|
+
.glorious-button-red.size-lg {
|
136
|
+
@apply py-2;
|
137
|
+
}
|
138
|
+
.glorious-button-red.size-md {
|
139
|
+
@apply py-1.5;
|
140
|
+
}
|
141
|
+
.glorious-button-red.size-sm {
|
142
|
+
@apply py-1;
|
143
|
+
}
|
144
|
+
.glorious-button-red.size-xs {
|
145
|
+
@apply py-0.5;
|
146
|
+
}
|
147
|
+
.glorious-button-red.outline {
|
148
|
+
@apply bg-transparent border outline-none;
|
149
|
+
@apply text-red-500 hover:bg-red-100;
|
150
|
+
}
|
151
|
+
.glorious-button-red.outline div.loading > div > div {
|
152
|
+
border-color: theme("colors.red.700") !important;
|
153
|
+
}
|
154
|
+
.glorious-button-red:disabled {
|
155
|
+
@apply cursor-not-allowed;
|
156
|
+
}
|
157
|
+
.glorious-button-red:disabled:not(:disabled) {
|
158
|
+
@apply bg-green-300;
|
159
|
+
}
|
160
|
+
|
161
|
+
.glorious-button-green {
|
162
|
+
@apply bg-green-600 border-green-700 hover:bg-green-700;
|
163
|
+
@apply rounded-md text-white px-3;
|
164
|
+
}
|
165
|
+
.glorious-button-green div > loading {
|
166
|
+
@apply flex justify-center items-center;
|
167
|
+
}
|
168
|
+
.glorious-button-green div.loading > div > div {
|
169
|
+
@apply w-6 !important;
|
170
|
+
}
|
171
|
+
.glorious-button-green.size-xl {
|
172
|
+
@apply py-2.5;
|
173
|
+
}
|
174
|
+
.glorious-button-green.size-lg {
|
175
|
+
@apply py-2;
|
176
|
+
}
|
177
|
+
.glorious-button-green.size-md {
|
178
|
+
@apply py-1.5;
|
179
|
+
}
|
180
|
+
.glorious-button-green.size-sm {
|
181
|
+
@apply py-1;
|
182
|
+
}
|
183
|
+
.glorious-button-green.size-xs {
|
184
|
+
@apply py-0.5;
|
185
|
+
}
|
186
|
+
.glorious-button-green.outline {
|
187
|
+
@apply bg-transparent border outline-none;
|
188
|
+
@apply text-green-500 hover:bg-green-100;
|
189
|
+
}
|
190
|
+
.glorious-button-green.outline div.loading > div > div {
|
191
|
+
border-color: theme("colors.green.700") !important;
|
192
|
+
}
|
193
|
+
.glorious-button-green:disabled {
|
194
|
+
@apply cursor-not-allowed;
|
195
|
+
}
|
196
|
+
.glorious-button-green:disabled:not(:disabled) {
|
197
|
+
@apply bg-green-300;
|
198
|
+
}
|
@@ -20,75 +20,75 @@
|
|
20
20
|
@apply hidden;
|
21
21
|
}
|
22
22
|
.glorious-checkbox > div:last-child:after {
|
23
|
-
content: url(data:image/svg+xml;base64,
|
23
|
+
content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciICB2aWV3Qm94PSIwIDAgMzIgMzIiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPjxwYXRoIGZpbGw9IndoaXRlIiBkPSJNIDI4LjI4MTI1IDYuMjgxMjUgTCAxMSAyMy41NjI1IEwgMy43MTg3NSAxNi4yODEyNSBMIDIuMjgxMjUgMTcuNzE4NzUgTCAxMC4yODEyNSAyNS43MTg3NSBMIDExIDI2LjQwNjI1IEwgMTEuNzE4NzUgMjUuNzE4NzUgTCAyOS43MTg3NSA3LjcxODc1IFoiLz48L3N2Zz4K);
|
24
24
|
@apply absolute hidden top-1 right-0 left-0 bottom-0 m-auto;
|
25
25
|
}
|
26
|
-
.glorious-checkbox.orange > input:checked ~ div {
|
26
|
+
.glorious-checkbox.color-orange > input:checked ~ div {
|
27
27
|
@apply bg-orange-500;
|
28
28
|
}
|
29
|
-
.glorious-checkbox.blue > input:checked ~ div {
|
29
|
+
.glorious-checkbox.color-blue > input:checked ~ div {
|
30
30
|
@apply bg-blue-500;
|
31
31
|
}
|
32
|
-
.glorious-checkbox.gray > input:checked ~ div {
|
32
|
+
.glorious-checkbox.color-gray > input:checked ~ div {
|
33
33
|
@apply bg-gray-500;
|
34
34
|
}
|
35
|
-
.glorious-checkbox.red > input:checked ~ div {
|
35
|
+
.glorious-checkbox.color-red > input:checked ~ div {
|
36
36
|
@apply bg-red-500;
|
37
37
|
}
|
38
|
-
.glorious-checkbox.green > input:checked ~ div {
|
38
|
+
.glorious-checkbox.color-green > input:checked ~ div {
|
39
39
|
@apply bg-green-500;
|
40
40
|
}
|
41
41
|
.glorious-checkbox.size-5xl {
|
42
|
-
@apply w-[
|
42
|
+
@apply w-[54px] h-[54px];
|
43
43
|
}
|
44
44
|
.glorious-checkbox.size-5xl > div:last-child {
|
45
|
-
@apply w-[
|
45
|
+
@apply w-[54px] h-[54px];
|
46
46
|
}
|
47
47
|
.glorious-checkbox.size-4xl {
|
48
|
-
@apply w-[
|
48
|
+
@apply w-[50px] h-[50px];
|
49
49
|
}
|
50
50
|
.glorious-checkbox.size-4xl > div:last-child {
|
51
|
-
@apply w-[
|
51
|
+
@apply w-[50px] h-[50px];
|
52
52
|
}
|
53
53
|
.glorious-checkbox.size-3xl {
|
54
|
-
@apply w-[
|
54
|
+
@apply w-[46px] h-[46px];
|
55
55
|
}
|
56
56
|
.glorious-checkbox.size-3xl > div:last-child {
|
57
|
-
@apply w-[
|
57
|
+
@apply w-[46px] h-[46px];
|
58
58
|
}
|
59
59
|
.glorious-checkbox.size-2xl {
|
60
|
-
@apply w-[
|
60
|
+
@apply w-[42px] h-[42px];
|
61
61
|
}
|
62
62
|
.glorious-checkbox.size-2xl > div:last-child {
|
63
|
-
@apply w-[
|
63
|
+
@apply w-[42px] h-[42px];
|
64
64
|
}
|
65
65
|
.glorious-checkbox.size-xl {
|
66
|
-
@apply w-[
|
66
|
+
@apply w-[38px] h-[38px];
|
67
67
|
}
|
68
68
|
.glorious-checkbox.size-xl > div:last-child {
|
69
|
-
@apply w-[
|
69
|
+
@apply w-[38px] h-[38px];
|
70
70
|
}
|
71
71
|
.glorious-checkbox.size-lg {
|
72
|
-
@apply w-[
|
72
|
+
@apply w-[32px] h-[32px];
|
73
73
|
}
|
74
74
|
.glorious-checkbox.size-lg > div:last-child {
|
75
|
-
@apply w-[
|
75
|
+
@apply w-[32px] h-[32px];
|
76
76
|
}
|
77
77
|
.glorious-checkbox.size-md {
|
78
|
-
@apply w-[
|
78
|
+
@apply w-[28px] h-[28px];
|
79
79
|
}
|
80
80
|
.glorious-checkbox.size-md > div:last-child {
|
81
|
-
@apply w-[
|
81
|
+
@apply w-[28px] h-[28px];
|
82
82
|
}
|
83
83
|
.glorious-checkbox.size-sm {
|
84
|
-
@apply w-[
|
84
|
+
@apply w-[24px] h-[24px];
|
85
85
|
}
|
86
86
|
.glorious-checkbox.size-sm > div:last-child {
|
87
|
-
@apply w-[
|
87
|
+
@apply w-[24px] h-[24px];
|
88
88
|
}
|
89
89
|
.glorious-checkbox.size-xs {
|
90
|
-
@apply w-[
|
90
|
+
@apply w-[20px] h-[20px];
|
91
91
|
}
|
92
92
|
.glorious-checkbox.size-xs > div:last-child {
|
93
|
-
@apply w-[
|
93
|
+
@apply w-[20px] h-[20px];
|
94
94
|
}
|
@@ -1,34 +1,22 @@
|
|
1
|
-
.glorious-
|
2
|
-
@apply fixed top-0 right-0 backdrop-blur-sm bg-gray-500 bg-opacity-50 h-full w-full z-[40];
|
3
|
-
}
|
4
|
-
|
5
|
-
.drawer {
|
1
|
+
.glorious-drawer {
|
6
2
|
@apply fixed top-0 bg-white h-full w-[300px] z-[50];
|
7
3
|
}
|
8
|
-
.drawer.close.
|
4
|
+
.glorious-drawer.close.right {
|
9
5
|
animation: drawer-close-right 250ms normal forwards;
|
10
6
|
}
|
11
|
-
.drawer.close.
|
7
|
+
.glorious-drawer.close.left {
|
12
8
|
animation: drawer-close-left 250ms normal forwards;
|
13
9
|
}
|
14
|
-
.drawer.open {
|
10
|
+
.glorious-drawer.open {
|
15
11
|
@apply flex;
|
16
12
|
}
|
17
|
-
.drawer.open.
|
13
|
+
.glorious-drawer.open.right {
|
18
14
|
animation: drawer-open-right 100ms normal forwards;
|
19
15
|
}
|
20
|
-
.drawer.open.
|
16
|
+
.glorious-drawer.open.left {
|
21
17
|
animation: drawer-open-left 100ms normal forwards;
|
22
18
|
}
|
23
19
|
|
24
|
-
@keyframes drawer-open-left {
|
25
|
-
from {
|
26
|
-
@apply left-[-300px];
|
27
|
-
}
|
28
|
-
to {
|
29
|
-
@apply left-0;
|
30
|
-
}
|
31
|
-
}
|
32
20
|
@keyframes drawer-open-right {
|
33
21
|
from {
|
34
22
|
@apply right-[-300px];
|
@@ -45,6 +33,14 @@
|
|
45
33
|
@apply right-[-300px] hidden;
|
46
34
|
}
|
47
35
|
}
|
36
|
+
@keyframes drawer-open-left {
|
37
|
+
from {
|
38
|
+
@apply left-[-300px];
|
39
|
+
}
|
40
|
+
to {
|
41
|
+
@apply left-0;
|
42
|
+
}
|
43
|
+
}
|
48
44
|
@keyframes drawer-close-left {
|
49
45
|
from {
|
50
46
|
@apply left-0;
|