nuxt-glorious 1.2.0 → 1.2.9-5
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/module.d.mts +38 -1
- package/dist/module.d.ts +38 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +45 -36
- package/dist/runtime/assets/icons/glorious-eye-fill.svg +1 -1
- package/dist/runtime/assets/icons/glorious-eye-off-fill.svg +1 -1
- package/dist/runtime/assets/icons/glorious-star-fill.svg +3 -0
- package/dist/runtime/assets/icons/glorious-star-half.svg +3 -0
- package/dist/runtime/assets/icons/glorious-star-line.svg +3 -0
- package/dist/runtime/components/G/Alert.vue +16 -0
- package/dist/runtime/components/G/Avatar.vue +16 -0
- package/dist/runtime/components/G/Breadcrumb.vue +37 -0
- package/dist/runtime/components/G/Button.vue +13 -154
- package/dist/runtime/components/G/Checkbox.vue +26 -0
- package/dist/runtime/components/G/CountDown.vue +33 -43
- package/dist/runtime/components/G/Drawer.vue +16 -75
- package/dist/runtime/components/G/Dropdown.vue +17 -31
- package/dist/runtime/components/G/ErrorText.vue +7 -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 +126 -250
- package/dist/runtime/components/G/Loading.vue +4 -21
- package/dist/runtime/components/G/Modal.vue +51 -138
- package/dist/runtime/components/G/Paginate.vue +24 -57
- package/dist/runtime/components/G/Radio.vue +18 -27
- package/dist/runtime/components/G/Rating.vue +30 -0
- package/dist/runtime/components/G/Select.vue +27 -112
- package/dist/runtime/components/G/Switch.vue +28 -0
- package/dist/runtime/components/G/Tab.vue +80 -44
- package/dist/runtime/components/G/Table.vue +62 -0
- package/dist/runtime/components/G/textarea.vue +17 -120
- package/dist/runtime/components/G/timeline.vue +28 -0
- package/dist/runtime/components/helper.d.ts +3 -0
- package/dist/runtime/components/helper.mjs +37 -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.d.ts +4 -3
- package/dist/runtime/composables/useGloriousFetch.mjs +6 -5
- package/dist/runtime/middlewares/AuthStrategy.mjs +2 -6
- package/dist/runtime/middlewares/ResponseGloriousStore.mjs +9 -0
- package/dist/runtime/plugins/InputComponent.d.ts +2 -0
- package/dist/runtime/plugins/InputComponent.mjs +13 -0
- package/dist/runtime/plugins/module.d.ts +4 -0
- package/dist/runtime/plugins/module.mjs +94 -0
- package/dist/runtime/stores/GloriousStore.d.ts +0 -1
- package/dist/runtime/stores/GloriousStore.mjs +3 -13
- package/dist/runtime/style/components/alert.css +33 -0
- package/dist/runtime/style/components/alert.scss +7 -0
- package/dist/runtime/style/components/avatar.css +57 -0
- package/dist/runtime/style/components/avatar.scss +13 -0
- package/dist/runtime/style/components/breadcrumb.css +6 -0
- package/dist/runtime/style/components/breadcrumb.scss +6 -0
- package/dist/runtime/style/components/button.css +113 -0
- package/dist/runtime/style/components/button.scss +30 -0
- package/dist/runtime/style/components/checkbox.css +94 -0
- package/dist/runtime/style/components/checkbox.scss +52 -0
- package/dist/runtime/{assets/style → style}/components/drawer.css +14 -18
- package/dist/runtime/style/components/drawer.scss +57 -0
- package/dist/runtime/style/components/dropdown.scss +19 -0
- package/dist/runtime/style/components/editor.scss +4 -0
- package/dist/runtime/style/components/file.css +134 -0
- package/dist/runtime/style/components/file.scss +19 -0
- package/dist/runtime/style/components/input.css +187 -0
- package/dist/runtime/style/components/input.scss +87 -0
- package/dist/runtime/style/components/loading.css +43 -0
- package/dist/runtime/style/components/loading.scss +92 -0
- package/dist/runtime/style/components/modal.css +66 -0
- package/dist/runtime/style/components/modal.scss +76 -0
- package/dist/runtime/style/components/paginate.scss +18 -0
- package/dist/runtime/style/components/radio.css +121 -0
- package/dist/runtime/style/components/radio.scss +59 -0
- package/dist/runtime/style/components/rating.css +26 -0
- package/dist/runtime/style/components/rating.scss +25 -0
- package/dist/runtime/style/components/select.css +46 -0
- package/dist/runtime/style/components/select.scss +40 -0
- package/dist/runtime/style/components/switch.css +61 -0
- package/dist/runtime/style/components/switch.scss +74 -0
- package/dist/runtime/{assets/style → style}/components/tab.css +3 -3
- package/dist/runtime/style/components/tab.scss +11 -0
- package/dist/runtime/style/components/table.css +99 -0
- package/dist/runtime/style/components/table.scss +41 -0
- package/dist/runtime/style/components/textarea.css +64 -0
- package/dist/runtime/style/components/textarea.scss +43 -0
- package/dist/runtime/style/components/timeline.css +47 -0
- package/dist/runtime/style/components/timeline.scss +40 -0
- package/dist/runtime/style/mixin.css +0 -0
- package/dist/runtime/style/mixin.scss +40 -0
- package/dist/runtime/style/variable.css +0 -0
- package/dist/runtime/style/variable.scss +19 -0
- package/dist/types.d.mts +2 -10
- package/dist/types.d.ts +2 -10
- package/package.json +9 -7
- package/dist/runtime/assets/style/components/buttons.css +0 -107
- package/dist/runtime/assets/style/components/file.css +0 -65
- package/dist/runtime/assets/style/components/input.css +0 -91
- package/dist/runtime/assets/style/components/modal.css +0 -57
- package/dist/runtime/assets/style/components/select.css +0 -54
- package/dist/runtime/assets/style/components/textarea.css +0 -64
- package/dist/runtime/components/G/Breadcrump.vue +0 -46
- package/dist/runtime/components/G/Icon/index.vue +0 -143
- package/dist/runtime/plugins/Drawer.mjs +0 -35
- package/dist/runtime/utils/gTailwindColor.d.ts +0 -1
- package/dist/runtime/utils/gTailwindColor.mjs +0 -5
- /package/dist/runtime/{plugins/Drawer.d.ts → middlewares/ResponseGloriousStore.d.ts} +0 -0
- /package/dist/runtime/{assets/style → style}/components/dropdown.css +0 -0
- /package/dist/runtime/{assets/style → style}/components/editor.css +0 -0
- /package/dist/runtime/{assets/style → style}/components/paginate.css +0 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
@use 'variable.scss' as var;
|
2
|
+
|
3
|
+
@mixin load-bg($range: 100) {
|
4
|
+
@each $color in var.$colors {
|
5
|
+
&.#{'color-' + $color} {
|
6
|
+
@apply #{"bg-" + $color + "-" + $range};
|
7
|
+
}
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin load-size() {
|
12
|
+
@each $key, $value in var.$pSize {
|
13
|
+
&.#{'size-' + $key} {
|
14
|
+
@apply #{"py-" + $value};
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin load-border($range: 300) {
|
20
|
+
@each $color in var.$colors {
|
21
|
+
&.#{'color-' + $color} {
|
22
|
+
@apply #{"border border-" + $color + "-" + $range};
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin loading-size($size) {
|
28
|
+
div > loading {
|
29
|
+
@apply flex justify-center items-center;
|
30
|
+
}
|
31
|
+
div.loading > div > div {
|
32
|
+
@apply #{"w-" + $size !important};
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin loading-color($color) {
|
37
|
+
div.loading > div > div {
|
38
|
+
border-color: theme('colors.' + $color + '.700') !important;
|
39
|
+
}
|
40
|
+
}
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
$colors: orange, blue, gray, red, green;
|
2
|
+
$pSize: (
|
3
|
+
'xl': '2.5',
|
4
|
+
'lg': '2',
|
5
|
+
'md': '1.5',
|
6
|
+
'sm': '1',
|
7
|
+
'xs': '0.5',
|
8
|
+
);
|
9
|
+
$sizes: (
|
10
|
+
'5xl': 54,
|
11
|
+
'4xl': 50,
|
12
|
+
'3xl': 46,
|
13
|
+
'2xl': 42,
|
14
|
+
'xl': 38,
|
15
|
+
'lg': 32,
|
16
|
+
'md': 28,
|
17
|
+
'sm': 24,
|
18
|
+
'xs': 20,
|
19
|
+
);
|
package/dist/types.d.mts
CHANGED
@@ -1,16 +1,8 @@
|
|
1
1
|
|
2
|
-
import type {
|
2
|
+
import type { } from './module.js'
|
3
3
|
|
4
4
|
|
5
|
-
declare module '@nuxt/schema' {
|
6
|
-
interface NuxtConfig { ['glorious']?: Partial<ModuleOptions> }
|
7
|
-
interface NuxtOptions { ['glorious']?: ModuleOptions }
|
8
|
-
}
|
9
5
|
|
10
|
-
declare module 'nuxt/schema' {
|
11
|
-
interface NuxtConfig { ['glorious']?: Partial<ModuleOptions> }
|
12
|
-
interface NuxtOptions { ['glorious']?: ModuleOptions }
|
13
|
-
}
|
14
6
|
|
15
7
|
|
16
|
-
export type {
|
8
|
+
export type { default } from './module.js'
|
package/dist/types.d.ts
CHANGED
@@ -1,16 +1,8 @@
|
|
1
1
|
|
2
|
-
import type {
|
2
|
+
import type { } from './module'
|
3
3
|
|
4
4
|
|
5
|
-
declare module '@nuxt/schema' {
|
6
|
-
interface NuxtConfig { ['glorious']?: Partial<ModuleOptions> }
|
7
|
-
interface NuxtOptions { ['glorious']?: ModuleOptions }
|
8
|
-
}
|
9
5
|
|
10
|
-
declare module 'nuxt/schema' {
|
11
|
-
interface NuxtConfig { ['glorious']?: Partial<ModuleOptions> }
|
12
|
-
interface NuxtOptions { ['glorious']?: ModuleOptions }
|
13
|
-
}
|
14
6
|
|
15
7
|
|
16
|
-
export type {
|
8
|
+
export type { default } from './module'
|
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.2.
|
2
|
+
"version": "1.2.9-5",
|
3
3
|
"name": "nuxt-glorious",
|
4
4
|
"description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
|
5
5
|
"repository": "sajadhzj/nuxt-glorious",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"dist"
|
20
20
|
],
|
21
21
|
"scripts": {
|
22
|
-
"prepack": "nuxt-module-build build",
|
22
|
+
"prepack": "nuxt-module-build build && cp -R src/runtime/style dist/runtime",
|
23
23
|
"dev": "nuxi dev playground",
|
24
24
|
"dev:build": "nuxi build playground",
|
25
25
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
@@ -29,26 +29,28 @@
|
|
29
29
|
"test:watch": "vitest watch"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@nuxt/
|
32
|
+
"@nuxt/image": "^1.8.1",
|
33
|
+
"@nuxt/kit": "^3.14.1592",
|
33
34
|
"@nuxtjs/tailwindcss": "^6.12.0",
|
34
35
|
"@pinia/nuxt": "^0.5.1",
|
35
36
|
"defu": "^6.1.4",
|
36
37
|
"pinia": "^2.1.7",
|
37
|
-
"sass": "^1.
|
38
|
+
"sass": "^1.80.3"
|
38
39
|
},
|
39
40
|
"devDependencies": {
|
40
41
|
"@nuxt/devtools": "latest",
|
41
42
|
"@nuxt/eslint-config": "^0.2.0",
|
42
43
|
"@nuxt/module-builder": "^0.5.5",
|
43
|
-
"@nuxt/schema": "^3.
|
44
|
+
"@nuxt/schema": "^3.14.1592",
|
44
45
|
"@nuxt/test-utils": "^3.12.0",
|
45
46
|
"@types/node": "^20.11.29",
|
46
47
|
"changelogen": "^0.5.5",
|
47
48
|
"eslint": "^8.57.0",
|
48
|
-
"nuxt": "^3.
|
49
|
+
"nuxt": "^3.14.1592",
|
49
50
|
"vitest": "^1.4.0"
|
50
51
|
},
|
51
52
|
"overrides": {
|
52
53
|
"vue": "latest"
|
53
|
-
}
|
54
|
+
},
|
55
|
+
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
|
54
56
|
}
|
@@ -1,107 +0,0 @@
|
|
1
|
-
button:focus-visible {
|
2
|
-
@apply outline-none;
|
3
|
-
}
|
4
|
-
|
5
|
-
.xl.glorious-button-orange, .xl.glorious-button-blue, .xl.glorious-button-gray, .xl.glorious-button-red, .xl.glorious-button-primary {
|
6
|
-
@apply py-2.5;
|
7
|
-
}
|
8
|
-
.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 {
|
9
|
-
@apply w-[24px] !important;
|
10
|
-
}
|
11
|
-
.lg.glorious-button-orange, .lg.glorious-button-blue, .lg.glorious-button-gray, .lg.glorious-button-red, .lg.glorious-button-primary {
|
12
|
-
@apply py-2;
|
13
|
-
}
|
14
|
-
.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 {
|
15
|
-
@apply w-[24px] !important;
|
16
|
-
}
|
17
|
-
.md.glorious-button-orange, .md.glorious-button-blue, .md.glorious-button-gray, .md.glorious-button-red, .md.glorious-button-primary {
|
18
|
-
@apply py-1.5;
|
19
|
-
}
|
20
|
-
.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 {
|
21
|
-
@apply w-[24px] !important;
|
22
|
-
}
|
23
|
-
.sm.glorious-button-orange, .sm.glorious-button-blue, .sm.glorious-button-gray, .sm.glorious-button-red, .sm.glorious-button-primary {
|
24
|
-
@apply py-1;
|
25
|
-
}
|
26
|
-
.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 {
|
27
|
-
@apply w-[24px] !important;
|
28
|
-
}
|
29
|
-
.xsm.glorious-button-orange, .xsm.glorious-button-blue, .xsm.glorious-button-gray, .xsm.glorious-button-red, .xsm.glorious-button-primary {
|
30
|
-
@apply py-0.5;
|
31
|
-
}
|
32
|
-
.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 {
|
33
|
-
@apply w-[24px] !important;
|
34
|
-
}
|
35
|
-
|
36
|
-
.outline.glorious-button-orange, .outline.glorious-button-blue, .outline.glorious-button-gray, .outline.glorious-button-red, .outline.glorious-button-primary {
|
37
|
-
@apply bg-transparent border outline-none;
|
38
|
-
}
|
39
|
-
|
40
|
-
.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 {
|
41
|
-
@apply flex justify-center items-center;
|
42
|
-
}
|
43
|
-
|
44
|
-
.glorious-button-primary {
|
45
|
-
@apply bg-green-700 hover:bg-green-600 rounded-md text-white border-green-500 px-3;
|
46
|
-
}
|
47
|
-
.glorious-button-primary.outline {
|
48
|
-
@apply text-gray-500 hover:bg-green-100;
|
49
|
-
}
|
50
|
-
.glorious-button-primary:disabled {
|
51
|
-
@apply cursor-not-allowed;
|
52
|
-
}
|
53
|
-
.glorious-button-primary:disabled:not(:disabled) {
|
54
|
-
@apply bg-green-300;
|
55
|
-
}
|
56
|
-
|
57
|
-
.glorious-button-red {
|
58
|
-
@apply bg-red-500 hover:bg-red-600 rounded-md text-white border-red-500 px-3;
|
59
|
-
}
|
60
|
-
.glorious-button-red.outline {
|
61
|
-
@apply text-gray-500 hover:bg-red-100;
|
62
|
-
}
|
63
|
-
.glorious-button-red:disabled {
|
64
|
-
@apply cursor-not-allowed;
|
65
|
-
}
|
66
|
-
.glorious-button-red:disabled:not(:disabled) {
|
67
|
-
@apply bg-red-300;
|
68
|
-
}
|
69
|
-
|
70
|
-
.glorious-button-gray {
|
71
|
-
@apply bg-gray-500 hover:bg-gray-600 rounded-md text-white border-gray-500 px-3;
|
72
|
-
}
|
73
|
-
.glorious-button-gray.outline {
|
74
|
-
@apply text-gray-500 hover:bg-gray-100;
|
75
|
-
}
|
76
|
-
.glorious-button-gray:disabled {
|
77
|
-
@apply cursor-not-allowed;
|
78
|
-
}
|
79
|
-
.glorious-button-gray:disabled:not(:disabled) {
|
80
|
-
@apply bg-gray-300;
|
81
|
-
}
|
82
|
-
|
83
|
-
.glorious-button-blue {
|
84
|
-
@apply bg-blue-500 hover:bg-blue-600 rounded-md text-white border-blue-500 px-3;
|
85
|
-
}
|
86
|
-
.glorious-button-blue.outline {
|
87
|
-
@apply text-gray-500 hover:bg-blue-100;
|
88
|
-
}
|
89
|
-
.glorious-button-blue:disabled {
|
90
|
-
@apply cursor-not-allowed;
|
91
|
-
}
|
92
|
-
.glorious-button-blue:disabled:not(:disabled) {
|
93
|
-
@apply bg-blue-300;
|
94
|
-
}
|
95
|
-
|
96
|
-
.glorious-button-orange {
|
97
|
-
@apply bg-orange-500 hover:bg-orange-600 rounded-md text-white border-orange-500 px-3;
|
98
|
-
}
|
99
|
-
.glorious-button-orange.outline {
|
100
|
-
@apply text-gray-500 hover:bg-orange-100;
|
101
|
-
}
|
102
|
-
.glorious-button-orange:disabled {
|
103
|
-
@apply cursor-not-allowed;
|
104
|
-
}
|
105
|
-
.glorious-button-orange:disabled:not(:disabled) {
|
106
|
-
@apply bg-orange-300;
|
107
|
-
}
|
@@ -1,65 +0,0 @@
|
|
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
|
-
}
|
@@ -1,91 +0,0 @@
|
|
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;
|
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;
|
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;
|
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;
|
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;
|
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
|
-
}
|
@@ -1,57 +0,0 @@
|
|
1
|
-
.g-scafold-modal {
|
2
|
-
@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;
|
3
|
-
}
|
4
|
-
.g-scafold-modal-header {
|
5
|
-
@apply flex justify-between items-center;
|
6
|
-
}
|
7
|
-
.g-scafold-modal-footer {
|
8
|
-
@apply flex justify-center gap-3;
|
9
|
-
}
|
10
|
-
.g-scafold-modal-footer > button {
|
11
|
-
@apply min-w-24;
|
12
|
-
}
|
13
|
-
.g-scafold-modal-bg-blur {
|
14
|
-
@apply fixed top-0 right-0 backdrop-blur-sm bg-gray-500 bg-opacity-50 h-full w-full z-[40];
|
15
|
-
}
|
16
|
-
.g-scafold-modal.size-full {
|
17
|
-
@apply w-full h-full top-0 rounded-none;
|
18
|
-
}
|
19
|
-
.g-scafold-modal.size-xl {
|
20
|
-
@apply md:w-[70%] w-full md:h-max max-h-[70%];
|
21
|
-
}
|
22
|
-
.g-scafold-modal.size-lg {
|
23
|
-
@apply md:w-[60%] w-full md:h-max max-h-[70%];
|
24
|
-
}
|
25
|
-
.g-scafold-modal.size-md {
|
26
|
-
@apply md:w-[50%] w-full md:h-max max-h-[70%];
|
27
|
-
}
|
28
|
-
.g-scafold-modal.size-sm {
|
29
|
-
@apply lg:w-[25%] md:w-[35%] w-full md:h-max max-h-[70%];
|
30
|
-
}
|
31
|
-
.g-scafold-modal.close {
|
32
|
-
@apply hidden;
|
33
|
-
}
|
34
|
-
@screen md {
|
35
|
-
.g-scafold-modal.open {
|
36
|
-
animation: animationOpacity 0.2s normal forwards;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
.g-scafold-modal.open {
|
40
|
-
animation: animationMobile 0.3s normal forwards;
|
41
|
-
}
|
42
|
-
@keyframes animationOpacity {
|
43
|
-
from {
|
44
|
-
opacity: 0;
|
45
|
-
}
|
46
|
-
to {
|
47
|
-
opacity: 1;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
@keyframes animationMobile {
|
51
|
-
from {
|
52
|
-
transform: translateY(100%);
|
53
|
-
}
|
54
|
-
to {
|
55
|
-
transform: translateY(0);
|
56
|
-
}
|
57
|
-
}
|
@@ -1,54 +0,0 @@
|
|
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
|
-
}
|
@@ -1,64 +0,0 @@
|
|
1
|
-
.xl.glorious-textarea-orange, .xl.glorious-textarea-blue, .xl.glorious-textarea-gray, .xl.glorious-textarea-red, .xl.glorious-textarea-primary {
|
2
|
-
@apply py-2.5;
|
3
|
-
}
|
4
|
-
.lg.glorious-textarea-orange, .lg.glorious-textarea-blue, .lg.glorious-textarea-gray, .lg.glorious-textarea-red, .lg.glorious-textarea-primary {
|
5
|
-
@apply py-2;
|
6
|
-
}
|
7
|
-
.md.glorious-textarea-orange, .md.glorious-textarea-blue, .md.glorious-textarea-gray, .md.glorious-textarea-red, .md.glorious-textarea-primary {
|
8
|
-
@apply py-1.5;
|
9
|
-
}
|
10
|
-
.sm.glorious-textarea-orange, .sm.glorious-textarea-blue, .sm.glorious-textarea-gray, .sm.glorious-textarea-red, .sm.glorious-textarea-primary {
|
11
|
-
@apply py-1;
|
12
|
-
}
|
13
|
-
.xsm.glorious-textarea-orange, .xsm.glorious-textarea-blue, .xsm.glorious-textarea-gray, .xsm.glorious-textarea-red, .xsm.glorious-textarea-primary {
|
14
|
-
@apply py-0.5;
|
15
|
-
}
|
16
|
-
|
17
|
-
.glorious-textarea-orange:focus-visible, .glorious-textarea-blue:focus-visible, .glorious-textarea-gray:focus-visible, .glorious-textarea-red:focus-visible, .glorious-textarea-primary:focus-visible {
|
18
|
-
@apply outline-none ring-2;
|
19
|
-
}
|
20
|
-
|
21
|
-
.glorious-textarea-primary {
|
22
|
-
@apply rounded-md ring-1 ring-green-500 px-3;
|
23
|
-
}
|
24
|
-
.glorious-textarea-primary:disabled {
|
25
|
-
@apply bg-green-300 cursor-not-allowed;
|
26
|
-
}
|
27
|
-
|
28
|
-
.glorious-textarea-red {
|
29
|
-
@apply rounded-md ring-1 ring-red-500 px-3;
|
30
|
-
}
|
31
|
-
.glorious-textarea-red:disabled {
|
32
|
-
@apply cursor-not-allowed;
|
33
|
-
}
|
34
|
-
|
35
|
-
.glorious-textarea-gray {
|
36
|
-
@apply rounded-md ring-1 ring-gray-500 px-3;
|
37
|
-
}
|
38
|
-
.glorious-textarea-gray:disabled {
|
39
|
-
@apply cursor-not-allowed;
|
40
|
-
}
|
41
|
-
|
42
|
-
.glorious-textarea-blue {
|
43
|
-
@apply rounded-md ring-1 ring-blue-500 px-3;
|
44
|
-
}
|
45
|
-
.glorious-textarea-blue:disabled {
|
46
|
-
@apply cursor-not-allowed;
|
47
|
-
}
|
48
|
-
|
49
|
-
.glorious-textarea-orange {
|
50
|
-
@apply rounded-md ring-1 ring-orange-500 px-3;
|
51
|
-
}
|
52
|
-
.glorious-textarea-orange:disabled {
|
53
|
-
@apply cursor-not-allowed;
|
54
|
-
}
|
55
|
-
|
56
|
-
.glorious-textarea {
|
57
|
-
@apply relative w-full;
|
58
|
-
}
|
59
|
-
.glorious-textarea > textarea {
|
60
|
-
@apply w-full;
|
61
|
-
}
|
62
|
-
.glorious-textarea > textarea::placeholder {
|
63
|
-
@apply text-[14px];
|
64
|
-
}
|
@@ -1,46 +0,0 @@
|
|
1
|
-
<script lang="ts" setup>
|
2
|
-
const props = defineProps({
|
3
|
-
items: {
|
4
|
-
required: true,
|
5
|
-
type: Object,
|
6
|
-
},
|
7
|
-
dir: {
|
8
|
-
required: false,
|
9
|
-
type: String as () => "rtl" | "ltr",
|
10
|
-
default: "rtl",
|
11
|
-
},
|
12
|
-
});
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<template>
|
16
|
-
<div class="flex gap-1 flex-wrap dir-ltr" :dir="props.dir">
|
17
|
-
<div
|
18
|
-
v-for="(item, key, index) in props.items"
|
19
|
-
:key="index"
|
20
|
-
class="flex items-center gap-1 flex-wrap"
|
21
|
-
>
|
22
|
-
<nuxt-link
|
23
|
-
v-if="index !== Object.entries(props.items).length - 1"
|
24
|
-
:to="key"
|
25
|
-
class="text-gray-500 hover:text-gray-800"
|
26
|
-
>
|
27
|
-
{{ item }}
|
28
|
-
</nuxt-link>
|
29
|
-
|
30
|
-
<span
|
31
|
-
v-if="index === Object.entries(props.items).length - 1"
|
32
|
-
class="text-gray-600 font-medium"
|
33
|
-
>
|
34
|
-
{{ item }}
|
35
|
-
</span>
|
36
|
-
|
37
|
-
<GIcon
|
38
|
-
v-if="index !== Object.entries(props.items).length - 1"
|
39
|
-
name="glorious-arrow"
|
40
|
-
:style="{ rotate: props.dir === 'rtl' ? '180deg' : '0deg' }"
|
41
|
-
:size="10"
|
42
|
-
color="#6b7280"
|
43
|
-
/>
|
44
|
-
</div>
|
45
|
-
</div>
|
46
|
-
</template>
|