nuxt-glorious 0.7.9-7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/README.md +29 -0
  2. package/dist/module.cjs +5 -0
  3. package/dist/module.d.mts +7 -0
  4. package/dist/module.d.ts +7 -0
  5. package/dist/module.json +5 -0
  6. package/dist/module.mjs +93 -0
  7. package/dist/runtime/assets/icons/glorious-arrow.svg +3 -0
  8. package/dist/runtime/assets/icons/glorious-check-fill.svg +10 -0
  9. package/dist/runtime/assets/icons/glorious-x.svg +3 -0
  10. package/dist/runtime/assets/style/components/buttons.css +88 -0
  11. package/dist/runtime/assets/style/components/drawer.css +55 -0
  12. package/dist/runtime/assets/style/components/dropdown.css +18 -0
  13. package/dist/runtime/assets/style/components/editor.css +4 -0
  14. package/dist/runtime/assets/style/components/file.css +65 -0
  15. package/dist/runtime/assets/style/components/input.css +91 -0
  16. package/dist/runtime/assets/style/components/modal.css +46 -0
  17. package/dist/runtime/assets/style/components/paginate.css +17 -0
  18. package/dist/runtime/assets/style/components/select.css +54 -0
  19. package/dist/runtime/assets/style/components/tab.css +9 -0
  20. package/dist/runtime/assets/style/components/textarea.css +64 -0
  21. package/dist/runtime/components/G/Breadcrump.vue +41 -0
  22. package/dist/runtime/components/G/Button.vue +163 -0
  23. package/dist/runtime/components/G/CountDown.vue +65 -0
  24. package/dist/runtime/components/G/Drawer.vue +80 -0
  25. package/dist/runtime/components/G/Dropdown.vue +63 -0
  26. package/dist/runtime/components/G/File.vue +142 -0
  27. package/dist/runtime/components/G/Icon/index.vue +142 -0
  28. package/dist/runtime/components/G/Input.vue +269 -0
  29. package/dist/runtime/components/G/IntersectionObserve.vue +22 -0
  30. package/dist/runtime/components/G/Loading.vue +35 -0
  31. package/dist/runtime/components/G/Modal.vue +92 -0
  32. package/dist/runtime/components/G/Paginate.vue +130 -0
  33. package/dist/runtime/components/G/Radio.vue +38 -0
  34. package/dist/runtime/components/G/Select.vue +145 -0
  35. package/dist/runtime/components/G/Tab.vue +57 -0
  36. package/dist/runtime/components/G/Wizard.vue +123 -0
  37. package/dist/runtime/components/G/textarea.vue +141 -0
  38. package/dist/runtime/composables/useGloriousAppSetting.d.ts +11 -0
  39. package/dist/runtime/composables/useGloriousAppSetting.mjs +37 -0
  40. package/dist/runtime/composables/useGloriousFetch.d.ts +13 -0
  41. package/dist/runtime/composables/useGloriousFetch.mjs +107 -0
  42. package/dist/runtime/composables/useGloriousHead.d.ts +8 -0
  43. package/dist/runtime/composables/useGloriousHead.mjs +33 -0
  44. package/dist/runtime/middlewares/Auth.d.ts +2 -0
  45. package/dist/runtime/middlewares/Auth.mjs +37 -0
  46. package/dist/runtime/middlewares/AuthStrategy.d.ts +2 -0
  47. package/dist/runtime/middlewares/AuthStrategy.mjs +17 -0
  48. package/dist/runtime/plugins/Drawer.d.ts +2 -0
  49. package/dist/runtime/plugins/Drawer.mjs +35 -0
  50. package/dist/runtime/plugins/Modal.d.ts +2 -0
  51. package/dist/runtime/plugins/Modal.mjs +38 -0
  52. package/dist/runtime/plugins/TailwindColor.d.ts +6 -0
  53. package/dist/runtime/plugins/TailwindColor.mjs +10 -0
  54. package/dist/runtime/plugins/glorious-app-setting.d.ts +2 -0
  55. package/dist/runtime/plugins/glorious-app-setting.mjs +11 -0
  56. package/dist/runtime/plugins/shortcut-key.d.ts +2 -0
  57. package/dist/runtime/plugins/shortcut-key.mjs +11 -0
  58. package/dist/runtime/stores/GloriousStore.d.ts +9 -0
  59. package/dist/runtime/stores/GloriousStore.mjs +88 -0
  60. package/dist/types.d.mts +16 -0
  61. package/dist/types.d.ts +16 -0
  62. package/package.json +53 -0
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Nuxt Glorious
2
+
3
+ glorious is module for nuxt 3 for fast make project
4
+
5
+ ## Features
6
+
7
+ - authenticates
8
+ - amazing fetch
9
+ - components
10
+ - seo
11
+
12
+ ## Quick Setup
13
+
14
+ Install the module to your Nuxt application with one command:
15
+
16
+ ```bash
17
+ npm install nuxt-glorious
18
+ ```
19
+
20
+ ## <a name="contribute">❤️ Contribute</a>
21
+
22
+ We invite you to contribute and help improve Nuxt Glorious 💚
23
+
24
+ Here are a few ways you can get involved:
25
+
26
+ - Clone this repository
27
+ - Enable Corepack using `corepack enable`
28
+ - Run `npm run dev:prepare` to generate type stubs.
29
+ - Use `npm run dev` to start playground in development mode.
@@ -0,0 +1,5 @@
1
+ module.exports = function(...args) {
2
+ return import('./module.mjs').then(m => m.default.call(this, ...args))
3
+ }
4
+ const _meta = module.exports.meta = require('./module.json')
5
+ module.exports.getMeta = () => Promise.resolve(_meta)
@@ -0,0 +1,7 @@
1
+ import * as _nuxt_schema from '@nuxt/schema';
2
+
3
+ interface ModuleOptions {
4
+ }
5
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
6
+
7
+ export { type ModuleOptions, _default as default };
@@ -0,0 +1,7 @@
1
+ import * as _nuxt_schema from '@nuxt/schema';
2
+
3
+ interface ModuleOptions {
4
+ }
5
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
6
+
7
+ export { type ModuleOptions, _default as default };
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "glorious",
3
+ "configKey": "glorious",
4
+ "version": "0.7.9-7"
5
+ }
@@ -0,0 +1,93 @@
1
+ import { defineNuxtModule, createResolver, installModule, addImportsDir, addComponentsDir, addPlugin, addRouteMiddleware } from '@nuxt/kit';
2
+ import defu from 'defu';
3
+
4
+ const module = defineNuxtModule({
5
+ meta: {
6
+ name: "glorious",
7
+ configKey: "glorious"
8
+ },
9
+ // Default configuration options of the Nuxt module
10
+ defaults: {},
11
+ async setup(options, nuxt) {
12
+ const resolver = createResolver(import.meta.url);
13
+ nuxt.options.runtimeConfig.public.glorious = defu(nuxt.options.glorious, {
14
+ fetch: {
15
+ baseURL: "/",
16
+ credentials: "same-origin"
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
+ await installModule("@nuxtjs/tailwindcss", {
46
+ // module configuration
47
+ exposeConfig: true,
48
+ config: {
49
+ darkMode: "class",
50
+ content: {
51
+ files: [
52
+ resolver.resolve("./runtime/components/G/**/*.{vue,mjs,ts}"),
53
+ resolver.resolve("./runtime/*.{mjs,js,ts}")
54
+ ]
55
+ }
56
+ }
57
+ });
58
+ await installModule("@pinia/nuxt", {
59
+ autoImports: ["defineStore", ["defineStore", "definePiniaStore"]]
60
+ });
61
+ addImportsDir(resolver.resolve("runtime/composables"));
62
+ addImportsDir(resolver.resolve("runtime/stores"));
63
+ addImportsDir(resolver.resolve("runtime/middlewares"));
64
+ addComponentsDir({
65
+ path: resolver.resolve("runtime/components"),
66
+ global: true,
67
+ watch: false
68
+ });
69
+ nuxt.hook("nitro:config", async (nitro) => {
70
+ nitro.publicAssets.push({
71
+ dir: resolver.resolve("./runtime/assets")
72
+ });
73
+ });
74
+ addPlugin({
75
+ src: resolver.resolve("./runtime/plugins/shortcut-key"),
76
+ mode: "client"
77
+ });
78
+ addPlugin(resolver.resolve("./runtime/plugins/Modal"));
79
+ addPlugin(resolver.resolve("./runtime/plugins/glorious-app-setting"));
80
+ addPlugin(resolver.resolve("./runtime/plugins/Drawer"));
81
+ addRouteMiddleware({
82
+ name: "g-auth-strategy",
83
+ path: resolver.resolve("./runtime/middlewares/AuthStrategy"),
84
+ global: true
85
+ });
86
+ addRouteMiddleware({
87
+ name: "g-auth",
88
+ path: resolver.resolve("./runtime/middlewares/Auth")
89
+ });
90
+ }
91
+ });
92
+
93
+ export { module as default };
@@ -0,0 +1,3 @@
1
+ <svg width="8" height="12" viewBox="0 0 8 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.46482 6.70709C4.85534 6.31657 4.85534 5.6834 4.46482 5.29288L0.928924 1.75699C0.538459 1.36652 0.538458 0.733452 0.928923 0.342986C1.31939 -0.047479 1.95246 -0.0474789 2.34292 0.342987L7.29282 5.29288C7.68334 5.6834 7.68334 6.31657 7.29282 6.70709L2.34292 11.657C1.95246 12.0475 1.31939 12.0475 0.928924 11.657C0.538458 11.2665 0.538458 10.6335 0.928924 10.243L4.46482 6.70709Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_1_48614)">
3
+ <path d="M9.99999 15.172L19.192 5.979L20.607 7.393L9.99999 18L3.63599 11.636L5.04999 10.222L9.99999 15.172Z" fill="black"/>
4
+ </g>
5
+ <defs>
6
+ <clipPath id="clip0_1_48614">
7
+ <rect width="24" height="24" fill="white"/>
8
+ </clipPath>
9
+ </defs>
10
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.41 8L15.71 1.71C15.8983 1.5217 16.0041 1.2663 16.0041 1C16.0041 0.733701 15.8983 0.478306 15.71 0.290002C15.5217 0.101699 15.2663 -0.00408936 15 -0.00408936C14.7337 -0.00408936 14.4783 0.101699 14.29 0.290002L8 6.59L1.71 0.290002C1.5217 0.101699 1.2663 -0.00408912 1 -0.00408912C0.733698 -0.00408912 0.478304 0.101699 0.29 0.290002C0.101696 0.478306 -0.0040915 0.733701 -0.0040915 1C-0.0040915 1.2663 0.101696 1.5217 0.29 1.71L6.59 8L0.29 14.29C0.196272 14.383 0.121877 14.4936 0.0711088 14.6154C0.0203401 14.7373 -0.00579834 14.868 -0.00579834 15C-0.00579834 15.132 0.0203401 15.2627 0.0711088 15.3846C0.121877 15.5064 0.196272 15.617 0.29 15.71C0.382963 15.8037 0.493564 15.8781 0.615423 15.9289C0.737282 15.9797 0.867988 16.0058 1 16.0058C1.13201 16.0058 1.26272 15.9797 1.38458 15.9289C1.50644 15.8781 1.61704 15.8037 1.71 15.71L8 9.41L14.29 15.71C14.383 15.8037 14.4936 15.8781 14.6154 15.9289C14.7373 15.9797 14.868 16.0058 15 16.0058C15.132 16.0058 15.2627 15.9797 15.3846 15.9289C15.5064 15.8781 15.617 15.8037 15.71 15.71C15.8037 15.617 15.8781 15.5064 15.9289 15.3846C15.9797 15.2627 16.0058 15.132 16.0058 15C16.0058 14.868 15.9797 14.7373 15.9289 14.6154C15.8781 14.4936 15.8037 14.383 15.71 14.29L9.41 8Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,88 @@
1
+ .xl.glorious-button-orange, .xl.glorious-button-blue, .xl.glorious-button-gray, .xl.glorious-button-red, .xl.glorious-button-primary {
2
+ @apply py-2.5;
3
+ }
4
+ .xl.glorious-button-orange > div.loading > div > div, .xl.glorious-button-blue > div.loading > div > div, .xl.glorious-button-gray > div.loading > div > div, .xl.glorious-button-red > div.loading > div > div, .xl.glorious-button-primary > div.loading > div > div {
5
+ @apply w-[24px] !important;
6
+ }
7
+ .lg.glorious-button-orange, .lg.glorious-button-blue, .lg.glorious-button-gray, .lg.glorious-button-red, .lg.glorious-button-primary {
8
+ @apply py-2;
9
+ }
10
+ .lg.glorious-button-orange > div.loading > div > div, .lg.glorious-button-blue > div.loading > div > div, .lg.glorious-button-gray > div.loading > div > div, .lg.glorious-button-red > div.loading > div > div, .lg.glorious-button-primary > div.loading > div > div {
11
+ @apply w-[24px] !important;
12
+ }
13
+ .md.glorious-button-orange, .md.glorious-button-blue, .md.glorious-button-gray, .md.glorious-button-red, .md.glorious-button-primary {
14
+ @apply py-1.5;
15
+ }
16
+ .md.glorious-button-orange > div.loading > div > div, .md.glorious-button-blue > div.loading > div > div, .md.glorious-button-gray > div.loading > div > div, .md.glorious-button-red > div.loading > div > div, .md.glorious-button-primary > div.loading > div > div {
17
+ @apply w-[24px] !important;
18
+ }
19
+ .sm.glorious-button-orange, .sm.glorious-button-blue, .sm.glorious-button-gray, .sm.glorious-button-red, .sm.glorious-button-primary {
20
+ @apply py-1;
21
+ }
22
+ .sm.glorious-button-orange > div.loading > div > div, .sm.glorious-button-blue > div.loading > div > div, .sm.glorious-button-gray > div.loading > div > div, .sm.glorious-button-red > div.loading > div > div, .sm.glorious-button-primary > div.loading > div > div {
23
+ @apply w-[24px] !important;
24
+ }
25
+ .xsm.glorious-button-orange, .xsm.glorious-button-blue, .xsm.glorious-button-gray, .xsm.glorious-button-red, .xsm.glorious-button-primary {
26
+ @apply py-0.5;
27
+ }
28
+ .xsm.glorious-button-orange > div.loading > div > div, .xsm.glorious-button-blue > div.loading > div > div, .xsm.glorious-button-gray > div.loading > div > div, .xsm.glorious-button-red > div.loading > div > div, .xsm.glorious-button-primary > div.loading > div > div {
29
+ @apply w-[24px] !important;
30
+ }
31
+
32
+ .outline.glorious-button-orange, .outline.glorious-button-blue, .outline.glorious-button-gray, .outline.glorious-button-red, .outline.glorious-button-primary {
33
+ @apply bg-transparent border outline-none;
34
+ }
35
+
36
+ .glorious-button-orange > div.loading, .glorious-button-blue > div.loading, .glorious-button-gray > div.loading, .glorious-button-red > div.loading, .glorious-button-primary > div.loading {
37
+ @apply flex justify-center items-center;
38
+ }
39
+
40
+ .glorious-button-primary {
41
+ @apply bg-green-700 hover:bg-green-600 rounded-md text-white border-green-500 px-3;
42
+ }
43
+ .glorious-button-primary.outline {
44
+ @apply text-gray-500 hover:bg-green-100;
45
+ }
46
+ .glorious-button-primary:disabled {
47
+ @apply bg-green-300 cursor-not-allowed;
48
+ }
49
+
50
+ .glorious-button-red {
51
+ @apply bg-red-500 hover:bg-red-600 rounded-md text-white border-red-500 px-3;
52
+ }
53
+ .glorious-button-red.outline {
54
+ @apply text-gray-500 hover:bg-red-100;
55
+ }
56
+ .glorious-button-red:disabled {
57
+ @apply bg-red-300 cursor-not-allowed;
58
+ }
59
+
60
+ .glorious-button-gray {
61
+ @apply bg-gray-500 hover:bg-gray-600 rounded-md text-white border-gray-500 px-3;
62
+ }
63
+ .glorious-button-gray.outline {
64
+ @apply text-gray-500 hover:bg-gray-100;
65
+ }
66
+ .glorious-button-gray:disabled {
67
+ @apply bg-gray-300 cursor-not-allowed;
68
+ }
69
+
70
+ .glorious-button-blue {
71
+ @apply bg-blue-500 hover:bg-blue-600 rounded-md text-white border-blue-500 px-3;
72
+ }
73
+ .glorious-button-blue.outline {
74
+ @apply text-gray-500 hover:bg-blue-100;
75
+ }
76
+ .glorious-button-blue:disabled {
77
+ @apply bg-blue-300 cursor-not-allowed;
78
+ }
79
+
80
+ .glorious-button-orange {
81
+ @apply bg-orange-500 hover:bg-orange-600 rounded-md text-white border-orange-500 px-3;
82
+ }
83
+ .glorious-button-orange.outline {
84
+ @apply text-gray-500 hover:bg-orange-100;
85
+ }
86
+ .glorious-button-orange:disabled {
87
+ @apply bg-orange-300 cursor-not-allowed;
88
+ }
@@ -0,0 +1,55 @@
1
+ .bg-blur-drawer {
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 {
6
+ @apply fixed top-0 bg-white h-full w-[300px] z-[50];
7
+ }
8
+ .drawer.close.rtl {
9
+ animation: drawer-close-right 250ms normal forwards;
10
+ }
11
+ .drawer.close.ltr {
12
+ animation: drawer-close-left 250ms normal forwards;
13
+ }
14
+ .drawer.open {
15
+ @apply flex;
16
+ }
17
+ .drawer.open.rtl {
18
+ animation: drawer-open-right 100ms normal forwards;
19
+ }
20
+ .drawer.open.ltr {
21
+ animation: drawer-open-left 100ms normal forwards;
22
+ }
23
+
24
+ @keyframes drawer-open-left {
25
+ from {
26
+ @apply left-[-300px];
27
+ }
28
+ to {
29
+ @apply left-0;
30
+ }
31
+ }
32
+ @keyframes drawer-open-right {
33
+ from {
34
+ @apply right-[-300px];
35
+ }
36
+ to {
37
+ @apply right-0;
38
+ }
39
+ }
40
+ @keyframes drawer-close-right {
41
+ from {
42
+ @apply right-0;
43
+ }
44
+ to {
45
+ @apply right-[-300px] hidden;
46
+ }
47
+ }
48
+ @keyframes drawer-close-left {
49
+ from {
50
+ @apply left-0;
51
+ }
52
+ to {
53
+ @apply left-[-300px] hidden;
54
+ }
55
+ }
@@ -0,0 +1,18 @@
1
+ .glorious-dropdown {
2
+ @apply relative;
3
+ }
4
+ .glorious-dropdown > div:last-child {
5
+ @apply hidden;
6
+ }
7
+ .glorious-dropdown > div:first-child {
8
+ @apply relative;
9
+ }
10
+ .glorious-dropdown > div:first-child > button {
11
+ @apply z-[30] w-5 relative;
12
+ }
13
+ .glorious-dropdown > div:first-child > div:nth-child(2) {
14
+ @apply absolute top-0 bottom-0 my-auto z-[20];
15
+ }
16
+ .glorious-dropdown.open > div:last-child {
17
+ @apply bg-white px-2 py-2 rounded-md shadow absolute z-[41] left-[16px] top-5 flex;
18
+ }
@@ -0,0 +1,4 @@
1
+ .ql-editor {
2
+ direction: rtl;
3
+ text-align: right !important;
4
+ }
@@ -0,0 +1,65 @@
1
+ .glorious-file-orange > div.xl.placeholder, .glorious-file-blue > div.xl.placeholder, .glorious-file-gray > div.xl.placeholder, .glorious-file-red > div.xl.placeholder, .glorious-file-primary > div.xl.placeholder {
2
+ @apply py-2.5;
3
+ }
4
+ .glorious-file-orange > div.lg.placeholder, .glorious-file-blue > div.lg.placeholder, .glorious-file-gray > div.lg.placeholder, .glorious-file-red > div.lg.placeholder, .glorious-file-primary > div.lg.placeholder {
5
+ @apply py-2;
6
+ }
7
+ .glorious-file-orange > div.md.placeholder, .glorious-file-blue > div.md.placeholder, .glorious-file-gray > div.md.placeholder, .glorious-file-red > div.md.placeholder, .glorious-file-primary > div.md.placeholder {
8
+ @apply py-1.5;
9
+ }
10
+ .glorious-file-orange > div.sm.placeholder, .glorious-file-blue > div.sm.placeholder, .glorious-file-gray > div.sm.placeholder, .glorious-file-red > div.sm.placeholder, .glorious-file-primary > div.sm.placeholder {
11
+ @apply py-1;
12
+ }
13
+ .glorious-file-orange > div.xsm.placeholder, .glorious-file-blue > div.xsm.placeholder, .glorious-file-gray > div.xsm.placeholder, .glorious-file-red > div.xsm.placeholder, .glorious-file-primary > div.xsm.placeholder {
14
+ @apply py-0.5;
15
+ }
16
+
17
+ .glorious-file-primary {
18
+ @apply rounded-md ring-1 ring-green-500 overflow-hidden cursor-pointer relative;
19
+ }
20
+ .glorious-file-primary > div.placeholder {
21
+ @apply bg-green-500 text-white px-3 w-max;
22
+ }
23
+ .glorious-file-primary > div:last-child {
24
+ @apply absolute left-3 hidden;
25
+ }
26
+
27
+ .glorious-file-red {
28
+ @apply rounded-md ring-1 ring-red-500 px-3 cursor-pointer relative;
29
+ }
30
+ .glorious-file-red > div.placeholder {
31
+ @apply bg-green-500 text-white px-3 w-max;
32
+ }
33
+ .glorious-file-red > div:last-child {
34
+ @apply absolute left-3;
35
+ }
36
+
37
+ .glorious-file-gray {
38
+ @apply rounded-md ring-1 ring-gray-500 px-3 cursor-pointer relative;
39
+ }
40
+ .glorious-file-gray > div.placeholder {
41
+ @apply bg-green-500 text-white px-3 w-max;
42
+ }
43
+ .glorious-file-gray > div:last-child {
44
+ @apply absolute left-3;
45
+ }
46
+
47
+ .glorious-file-blue {
48
+ @apply rounded-md ring-1 ring-blue-500 px-3 cursor-pointer relative;
49
+ }
50
+ .glorious-file-blue > div.placeholder {
51
+ @apply bg-green-500 text-white px-3 w-max;
52
+ }
53
+ .glorious-file-blue > div:last-child {
54
+ @apply absolute left-3;
55
+ }
56
+
57
+ .glorious-file-orange {
58
+ @apply rounded-md ring-1 ring-orange-500 px-3 cursor-pointer relative;
59
+ }
60
+ .glorious-file-orange > div.placeholder {
61
+ @apply bg-green-500 text-white px-3 w-max;
62
+ }
63
+ .glorious-file-orange > div:last-child {
64
+ @apply absolute left-3;
65
+ }
@@ -0,0 +1,91 @@
1
+ .xl.glorious-input-orange, .xl.glorious-input-blue, .xl.glorious-input-gray, .xl.glorious-input-red, .xl.glorious-input-primary {
2
+ @apply py-2.5;
3
+ }
4
+ .lg.glorious-input-orange, .lg.glorious-input-blue, .lg.glorious-input-gray, .lg.glorious-input-red, .lg.glorious-input-primary {
5
+ @apply py-2;
6
+ }
7
+ .md.glorious-input-orange, .md.glorious-input-blue, .md.glorious-input-gray, .md.glorious-input-red, .md.glorious-input-primary {
8
+ @apply py-1.5;
9
+ }
10
+ .sm.glorious-input-orange, .sm.glorious-input-blue, .sm.glorious-input-gray, .sm.glorious-input-red, .sm.glorious-input-primary {
11
+ @apply py-1;
12
+ }
13
+ .xsm.glorious-input-orange, .xsm.glorious-input-blue, .xsm.glorious-input-gray, .xsm.glorious-input-red, .xsm.glorious-input-primary {
14
+ @apply py-0.5;
15
+ }
16
+
17
+ .glorious-input-orange:focus-visible, .glorious-input-blue:focus-visible, .glorious-input-gray:focus-visible, .glorious-input-red:focus-visible, .glorious-input-primary:focus-visible {
18
+ @apply outline-none ring-2;
19
+ }
20
+
21
+ .glorious-input-primary {
22
+ @apply rounded-md ring-1 ring-green-500 px-3;
23
+ }
24
+ .glorious-input-primary:disabled {
25
+ @apply bg-green-300 cursor-not-allowed;
26
+ }
27
+
28
+ .glorious-input-red {
29
+ @apply rounded-md ring-1 ring-red-500 px-3;
30
+ }
31
+ .glorious-input-red:disabled {
32
+ @apply cursor-not-allowed;
33
+ }
34
+
35
+ .glorious-input-gray {
36
+ @apply rounded-md ring-1 ring-gray-500 px-3;
37
+ }
38
+ .glorious-input-gray:disabled {
39
+ @apply cursor-not-allowed;
40
+ }
41
+
42
+ .glorious-input-blue {
43
+ @apply rounded-md ring-1 ring-blue-500 px-3;
44
+ }
45
+ .glorious-input-blue:disabled {
46
+ @apply cursor-not-allowed;
47
+ }
48
+
49
+ .glorious-input-orange {
50
+ @apply rounded-md ring-1 ring-orange-500 px-3;
51
+ }
52
+ .glorious-input-orange:disabled {
53
+ @apply cursor-not-allowed;
54
+ }
55
+
56
+ .glorious-input {
57
+ @apply relative w-full;
58
+ }
59
+ .glorious-input > input {
60
+ @apply w-full;
61
+ }
62
+ .glorious-input > input::placeholder {
63
+ @apply text-[14px];
64
+ }
65
+ .glorious-input.icon-xl > input {
66
+ @apply rtl:pr-9 ltr:pl-9;
67
+ }
68
+ .glorious-input.icon-lg > input {
69
+ @apply rtl:pr-9 ltr:pl-8;
70
+ }
71
+ .glorious-input.icon-md > input {
72
+ @apply rtl:pr-9 ltr:pl-8;
73
+ }
74
+ .glorious-input.icon-sm > input {
75
+ @apply rtl:pr-8 ltr:pl-8;
76
+ }
77
+ .glorious-input.icon-xsm > input {
78
+ @apply rtl:pr-8 ltr:pl-7;
79
+ }
80
+
81
+ .glorious-input-icon {
82
+ @apply absolute h-max top-0 bottom-0 my-auto rtl:right-1 ltr:left-1;
83
+ }
84
+
85
+ /* ----------------------------------------------- TAG */
86
+ .glorious-input-tag {
87
+ @apply mt-3 gap-2 flex flex-wrap;
88
+ }
89
+ .glorious-input-tag > div {
90
+ @apply bg-green-500 px-1 rounded text-white flex items-center gap-2 cursor-pointer;
91
+ }
@@ -0,0 +1,46 @@
1
+ .bg-blur-modal {
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
+ .glorious-modal {
6
+ @apply fixed bg-white md:top-[15%] z-50 right-0 left-0 mx-auto p-3 md:rounded-md rounded-t-md md:bottom-0 bottom-0 overflow-y-auto;
7
+ }
8
+ .glorious-modal.size-full {
9
+ @apply w-full h-full top-0 rounded-none;
10
+ }
11
+ .glorious-modal.size-xl {
12
+ @apply md:w-[70%] w-full md:h-max max-h-[70%];
13
+ }
14
+ .glorious-modal.size-lg {
15
+ @apply md:w-[60%] w-full md:h-max max-h-[70%];
16
+ }
17
+ .glorious-modal.size-md {
18
+ @apply md:w-[50%] w-full md:h-max max-h-[70%];
19
+ }
20
+ .glorious-modal.size-sm {
21
+ @apply lg:w-[25%] md:w-[35%] w-full md:h-max max-h-[70%];
22
+ }
23
+ .glorious-modal.close {
24
+ @apply hidden;
25
+ }
26
+ .glorious-modal.open {
27
+ animation: animation-mobile 0.3s normal forwards;
28
+ }
29
+ @screen md {
30
+ .glorious-modal.open {
31
+ animation: animation-opacity 0.2s normal forwards;
32
+ }
33
+ }
34
+ @keyframes animation-opacity {
35
+ from {
36
+ opacity: 0;
37
+ }
38
+ to {
39
+ opacity: 1;
40
+ }
41
+ }
42
+ @keyframes animation-mobile {
43
+ to {
44
+ bottom: 0;
45
+ }
46
+ }
@@ -0,0 +1,17 @@
1
+ .glorious-paginate > div {
2
+ @apply border border-gray-50 rounded-xl h-8 flex items-center px-1 bg-white shadow-md gap-1 w-max;
3
+ direction: rtl;
4
+ }
5
+ .glorious-paginate > div > div {
6
+ @apply px-2;
7
+ }
8
+ .glorious-paginate > div > div:last-child {
9
+ @apply rotate-[180deg];
10
+ }
11
+
12
+ .paginate {
13
+ @apply text-[13px];
14
+ }
15
+ .paginate.active {
16
+ @apply bg-green-500 rounded-lg text-white font-bold text-[13px];
17
+ }
@@ -0,0 +1,54 @@
1
+ .xl.glorious-select-orange, .xl.glorious-select-blue, .xl.glorious-select-gray, .xl.glorious-select-red, .xl.glorious-select-primary {
2
+ @apply py-[0.657rem];
3
+ }
4
+ .lg.glorious-select-orange, .lg.glorious-select-blue, .lg.glorious-select-gray, .lg.glorious-select-red, .lg.glorious-select-primary {
5
+ @apply py-[0.532rem];
6
+ }
7
+ .md.glorious-select-orange, .md.glorious-select-blue, .md.glorious-select-gray, .md.glorious-select-red, .md.glorious-select-primary {
8
+ @apply py-[0.407rem];
9
+ }
10
+ .sm.glorious-select-orange, .sm.glorious-select-blue, .sm.glorious-select-gray, .sm.glorious-select-red, .sm.glorious-select-primary {
11
+ @apply py-[0.282rem];
12
+ }
13
+ .xsm.glorious-select-orange, .xsm.glorious-select-blue, .xsm.glorious-select-gray, .xsm.glorious-select-red, .xsm.glorious-select-primary {
14
+ @apply py-[0.157rem];
15
+ }
16
+
17
+ .glorious-select-orange:focus-visible, .glorious-select-blue:focus-visible, .glorious-select-gray:focus-visible, .glorious-select-red:focus-visible, .glorious-select-primary:focus-visible {
18
+ @apply outline-none ring-2;
19
+ }
20
+
21
+ .glorious-select-primary {
22
+ @apply rounded-md ring-1 ring-green-500 px-3 text-gray-500 text-[14px];
23
+ }
24
+ .glorious-select-primary:disabled {
25
+ @apply cursor-not-allowed;
26
+ }
27
+
28
+ .glorious-select-red {
29
+ @apply rounded-md ring-1 ring-red-500 px-3;
30
+ }
31
+ .glorious-select-red:disabled {
32
+ @apply cursor-not-allowed;
33
+ }
34
+
35
+ .glorious-select-gray {
36
+ @apply rounded-md ring-1 ring-gray-500 px-3;
37
+ }
38
+ .glorious-select-gray:disabled {
39
+ @apply cursor-not-allowed;
40
+ }
41
+
42
+ .glorious-select-blue {
43
+ @apply rounded-md ring-1 ring-blue-500 px-3;
44
+ }
45
+ .glorious-select-blue:disabled {
46
+ @apply cursor-not-allowed;
47
+ }
48
+
49
+ .glorious-select-orange {
50
+ @apply rounded-md ring-1 ring-orange-500 px-3;
51
+ }
52
+ .glorious-select-orange:disabled {
53
+ @apply cursor-not-allowed;
54
+ }
@@ -0,0 +1,9 @@
1
+ .glorious-tab {
2
+ @apply flex justify-between bg-green-100 px-3 py-2 rounded-lg gap-3 overflow-y-auto w-full shadow-md;
3
+ }
4
+ .glorious-tab > div > button {
5
+ @apply text-gray-700 text-[14px] hover:bg-green-200 hover:text-gray-800 cursor-pointer px-2 py-1 rounded-lg;
6
+ }
7
+ .glorious-tab > div > button.active {
8
+ @apply font-bold text-white bg-green-700;
9
+ }