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.
Files changed (151) hide show
  1. package/dist/module.d.mts +38 -1
  2. package/dist/module.d.ts +38 -1
  3. package/dist/module.json +2 -2
  4. package/dist/module.mjs +45 -36
  5. package/dist/runtime/assets/icons/glorious-eye-fill.svg +1 -1
  6. package/dist/runtime/assets/icons/glorious-eye-off-fill.svg +1 -1
  7. package/dist/runtime/assets/icons/glorious-star-fill.svg +3 -0
  8. package/dist/runtime/assets/icons/glorious-star-half.svg +3 -0
  9. package/dist/runtime/assets/icons/glorious-star-line.svg +3 -0
  10. package/dist/runtime/components/G/Alert.vue +16 -0
  11. package/dist/runtime/components/G/Avatar.vue +16 -0
  12. package/dist/runtime/components/G/Breadcrumb.vue +37 -0
  13. package/dist/runtime/components/G/Button.vue +13 -154
  14. package/dist/runtime/components/G/Checkbox.vue +26 -0
  15. package/dist/runtime/components/G/CountDown.vue +33 -43
  16. package/dist/runtime/components/G/Drawer.vue +16 -75
  17. package/dist/runtime/components/G/Dropdown.vue +17 -31
  18. package/dist/runtime/components/G/ErrorText.vue +7 -11
  19. package/dist/runtime/components/G/File.vue +25 -117
  20. package/dist/runtime/components/G/Icon.vue +125 -0
  21. package/dist/runtime/components/G/Input.vue +126 -250
  22. package/dist/runtime/components/G/Loading.vue +4 -21
  23. package/dist/runtime/components/G/Modal.vue +51 -138
  24. package/dist/runtime/components/G/Paginate.vue +24 -57
  25. package/dist/runtime/components/G/Radio.vue +18 -27
  26. package/dist/runtime/components/G/Rating.vue +30 -0
  27. package/dist/runtime/components/G/Select.vue +27 -112
  28. package/dist/runtime/components/G/Switch.vue +28 -0
  29. package/dist/runtime/components/G/Tab.vue +80 -44
  30. package/dist/runtime/components/G/Table.vue +62 -0
  31. package/dist/runtime/components/G/textarea.vue +17 -120
  32. package/dist/runtime/components/G/timeline.vue +28 -0
  33. package/dist/runtime/components/helper.d.ts +3 -0
  34. package/dist/runtime/components/helper.mjs +37 -0
  35. package/dist/runtime/components/props/Alert.d.ts +8 -0
  36. package/dist/runtime/components/props/Alert.mjs +4 -0
  37. package/dist/runtime/components/props/Avatar.d.ts +12 -0
  38. package/dist/runtime/components/props/Avatar.mjs +9 -0
  39. package/dist/runtime/components/props/Breadcrumb.d.ts +26 -0
  40. package/dist/runtime/components/props/Breadcrumb.mjs +11 -0
  41. package/dist/runtime/components/props/Button.d.ts +47 -0
  42. package/dist/runtime/components/props/Button.mjs +14 -0
  43. package/dist/runtime/components/props/CheckBox.d.ts +23 -0
  44. package/dist/runtime/components/props/CheckBox.mjs +7 -0
  45. package/dist/runtime/components/props/CountDown.d.ts +7 -0
  46. package/dist/runtime/components/props/CountDown.mjs +6 -0
  47. package/dist/runtime/components/props/Drawer.d.ts +8 -0
  48. package/dist/runtime/components/props/Drawer.mjs +7 -0
  49. package/dist/runtime/components/props/ErrorText.d.ts +8 -0
  50. package/dist/runtime/components/props/ErrorText.mjs +4 -0
  51. package/dist/runtime/components/props/File.d.ts +28 -0
  52. package/dist/runtime/components/props/File.mjs +9 -0
  53. package/dist/runtime/components/props/Icon.d.ts +23 -0
  54. package/dist/runtime/components/props/Icon.mjs +7 -0
  55. package/dist/runtime/components/props/Input.d.ts +91 -0
  56. package/dist/runtime/components/props/Input.mjs +50 -0
  57. package/dist/runtime/components/props/Loading.d.ts +18 -0
  58. package/dist/runtime/components/props/Loading.mjs +6 -0
  59. package/dist/runtime/components/props/Modal.d.ts +48 -0
  60. package/dist/runtime/components/props/Modal.mjs +38 -0
  61. package/dist/runtime/components/props/Paginate.d.ts +18 -0
  62. package/dist/runtime/components/props/Paginate.mjs +17 -0
  63. package/dist/runtime/components/props/Radio.d.ts +33 -0
  64. package/dist/runtime/components/props/Radio.mjs +9 -0
  65. package/dist/runtime/components/props/Select.d.ts +61 -0
  66. package/dist/runtime/components/props/Select.mjs +23 -0
  67. package/dist/runtime/components/props/Switch.d.ts +13 -0
  68. package/dist/runtime/components/props/Switch.mjs +5 -0
  69. package/dist/runtime/components/props/Tab.d.ts +21 -0
  70. package/dist/runtime/components/props/Tab.mjs +7 -0
  71. package/dist/runtime/components/props/Table.d.ts +49 -0
  72. package/dist/runtime/components/props/Table.mjs +19 -0
  73. package/dist/runtime/components/props/Textarea.d.ts +38 -0
  74. package/dist/runtime/components/props/Textarea.mjs +14 -0
  75. package/dist/runtime/components/props/Timeline.d.ts +11 -0
  76. package/dist/runtime/components/props/Timeline.mjs +7 -0
  77. package/dist/runtime/components/props/common/index.d.ts +161 -0
  78. package/dist/runtime/components/props/common/index.mjs +147 -0
  79. package/dist/runtime/composables/useGloriousCore.d.ts +1 -1
  80. package/dist/runtime/composables/useGloriousCore.mjs +1 -1
  81. package/dist/runtime/composables/useGloriousFetch.d.ts +4 -3
  82. package/dist/runtime/composables/useGloriousFetch.mjs +6 -5
  83. package/dist/runtime/middlewares/AuthStrategy.mjs +2 -6
  84. package/dist/runtime/middlewares/ResponseGloriousStore.mjs +9 -0
  85. package/dist/runtime/plugins/InputComponent.d.ts +2 -0
  86. package/dist/runtime/plugins/InputComponent.mjs +13 -0
  87. package/dist/runtime/plugins/module.d.ts +4 -0
  88. package/dist/runtime/plugins/module.mjs +94 -0
  89. package/dist/runtime/stores/GloriousStore.d.ts +0 -1
  90. package/dist/runtime/stores/GloriousStore.mjs +3 -13
  91. package/dist/runtime/style/components/alert.css +33 -0
  92. package/dist/runtime/style/components/alert.scss +7 -0
  93. package/dist/runtime/style/components/avatar.css +57 -0
  94. package/dist/runtime/style/components/avatar.scss +13 -0
  95. package/dist/runtime/style/components/breadcrumb.css +6 -0
  96. package/dist/runtime/style/components/breadcrumb.scss +6 -0
  97. package/dist/runtime/style/components/button.css +113 -0
  98. package/dist/runtime/style/components/button.scss +30 -0
  99. package/dist/runtime/style/components/checkbox.css +94 -0
  100. package/dist/runtime/style/components/checkbox.scss +52 -0
  101. package/dist/runtime/{assets/style → style}/components/drawer.css +14 -18
  102. package/dist/runtime/style/components/drawer.scss +57 -0
  103. package/dist/runtime/style/components/dropdown.scss +19 -0
  104. package/dist/runtime/style/components/editor.scss +4 -0
  105. package/dist/runtime/style/components/file.css +134 -0
  106. package/dist/runtime/style/components/file.scss +19 -0
  107. package/dist/runtime/style/components/input.css +187 -0
  108. package/dist/runtime/style/components/input.scss +87 -0
  109. package/dist/runtime/style/components/loading.css +43 -0
  110. package/dist/runtime/style/components/loading.scss +92 -0
  111. package/dist/runtime/style/components/modal.css +66 -0
  112. package/dist/runtime/style/components/modal.scss +76 -0
  113. package/dist/runtime/style/components/paginate.scss +18 -0
  114. package/dist/runtime/style/components/radio.css +121 -0
  115. package/dist/runtime/style/components/radio.scss +59 -0
  116. package/dist/runtime/style/components/rating.css +26 -0
  117. package/dist/runtime/style/components/rating.scss +25 -0
  118. package/dist/runtime/style/components/select.css +46 -0
  119. package/dist/runtime/style/components/select.scss +40 -0
  120. package/dist/runtime/style/components/switch.css +61 -0
  121. package/dist/runtime/style/components/switch.scss +74 -0
  122. package/dist/runtime/{assets/style → style}/components/tab.css +3 -3
  123. package/dist/runtime/style/components/tab.scss +11 -0
  124. package/dist/runtime/style/components/table.css +99 -0
  125. package/dist/runtime/style/components/table.scss +41 -0
  126. package/dist/runtime/style/components/textarea.css +64 -0
  127. package/dist/runtime/style/components/textarea.scss +43 -0
  128. package/dist/runtime/style/components/timeline.css +47 -0
  129. package/dist/runtime/style/components/timeline.scss +40 -0
  130. package/dist/runtime/style/mixin.css +0 -0
  131. package/dist/runtime/style/mixin.scss +40 -0
  132. package/dist/runtime/style/variable.css +0 -0
  133. package/dist/runtime/style/variable.scss +19 -0
  134. package/dist/types.d.mts +2 -10
  135. package/dist/types.d.ts +2 -10
  136. package/package.json +9 -7
  137. package/dist/runtime/assets/style/components/buttons.css +0 -107
  138. package/dist/runtime/assets/style/components/file.css +0 -65
  139. package/dist/runtime/assets/style/components/input.css +0 -91
  140. package/dist/runtime/assets/style/components/modal.css +0 -57
  141. package/dist/runtime/assets/style/components/select.css +0 -54
  142. package/dist/runtime/assets/style/components/textarea.css +0 -64
  143. package/dist/runtime/components/G/Breadcrump.vue +0 -46
  144. package/dist/runtime/components/G/Icon/index.vue +0 -143
  145. package/dist/runtime/plugins/Drawer.mjs +0 -35
  146. package/dist/runtime/utils/gTailwindColor.d.ts +0 -1
  147. package/dist/runtime/utils/gTailwindColor.mjs +0 -5
  148. /package/dist/runtime/{plugins/Drawer.d.ts → middlewares/ResponseGloriousStore.d.ts} +0 -0
  149. /package/dist/runtime/{assets/style → style}/components/dropdown.css +0 -0
  150. /package/dist/runtime/{assets/style → style}/components/editor.css +0 -0
  151. /package/dist/runtime/{assets/style → style}/components/paginate.css +0 -0
@@ -0,0 +1,187 @@
1
+ .glorious-input-orange {
2
+ @apply ring-orange-500;
3
+ @apply rounded-md ring-1;
4
+ }
5
+ .glorious-input-orange.size-xl {
6
+ @apply py-2.5;
7
+ }
8
+ .glorious-input-orange.size-lg {
9
+ @apply py-2;
10
+ }
11
+ .glorious-input-orange.size-md {
12
+ @apply py-1.5;
13
+ }
14
+ .glorious-input-orange.size-sm {
15
+ @apply py-1;
16
+ }
17
+ .glorious-input-orange.size-xs {
18
+ @apply py-0.5;
19
+ }
20
+ .glorious-input-orange:focus-visible {
21
+ @apply outline-none ring-2;
22
+ }
23
+ .glorious-input-orange:disabled {
24
+ @apply bg-orange-100;
25
+ @apply cursor-not-allowed;
26
+ }
27
+
28
+ .glorious-input-blue {
29
+ @apply ring-blue-500;
30
+ @apply rounded-md ring-1;
31
+ }
32
+ .glorious-input-blue.size-xl {
33
+ @apply py-2.5;
34
+ }
35
+ .glorious-input-blue.size-lg {
36
+ @apply py-2;
37
+ }
38
+ .glorious-input-blue.size-md {
39
+ @apply py-1.5;
40
+ }
41
+ .glorious-input-blue.size-sm {
42
+ @apply py-1;
43
+ }
44
+ .glorious-input-blue.size-xs {
45
+ @apply py-0.5;
46
+ }
47
+ .glorious-input-blue:focus-visible {
48
+ @apply outline-none ring-2;
49
+ }
50
+ .glorious-input-blue:disabled {
51
+ @apply bg-blue-100;
52
+ @apply cursor-not-allowed;
53
+ }
54
+
55
+ .glorious-input-gray {
56
+ @apply ring-gray-500;
57
+ @apply rounded-md ring-1;
58
+ }
59
+ .glorious-input-gray.size-xl {
60
+ @apply py-2.5;
61
+ }
62
+ .glorious-input-gray.size-lg {
63
+ @apply py-2;
64
+ }
65
+ .glorious-input-gray.size-md {
66
+ @apply py-1.5;
67
+ }
68
+ .glorious-input-gray.size-sm {
69
+ @apply py-1;
70
+ }
71
+ .glorious-input-gray.size-xs {
72
+ @apply py-0.5;
73
+ }
74
+ .glorious-input-gray:focus-visible {
75
+ @apply outline-none ring-2;
76
+ }
77
+ .glorious-input-gray:disabled {
78
+ @apply bg-gray-100;
79
+ @apply cursor-not-allowed;
80
+ }
81
+
82
+ .glorious-input-red {
83
+ @apply ring-red-500;
84
+ @apply rounded-md ring-1;
85
+ }
86
+ .glorious-input-red.size-xl {
87
+ @apply py-2.5;
88
+ }
89
+ .glorious-input-red.size-lg {
90
+ @apply py-2;
91
+ }
92
+ .glorious-input-red.size-md {
93
+ @apply py-1.5;
94
+ }
95
+ .glorious-input-red.size-sm {
96
+ @apply py-1;
97
+ }
98
+ .glorious-input-red.size-xs {
99
+ @apply py-0.5;
100
+ }
101
+ .glorious-input-red:focus-visible {
102
+ @apply outline-none ring-2;
103
+ }
104
+ .glorious-input-red:disabled {
105
+ @apply bg-red-100;
106
+ @apply cursor-not-allowed;
107
+ }
108
+
109
+ .glorious-input-green {
110
+ @apply ring-green-500;
111
+ @apply rounded-md ring-1;
112
+ }
113
+ .glorious-input-green.size-xl {
114
+ @apply py-2.5;
115
+ }
116
+ .glorious-input-green.size-lg {
117
+ @apply py-2;
118
+ }
119
+ .glorious-input-green.size-md {
120
+ @apply py-1.5;
121
+ }
122
+ .glorious-input-green.size-sm {
123
+ @apply py-1;
124
+ }
125
+ .glorious-input-green.size-xs {
126
+ @apply py-0.5;
127
+ }
128
+ .glorious-input-green:focus-visible {
129
+ @apply outline-none ring-2;
130
+ }
131
+ .glorious-input-green:disabled {
132
+ @apply bg-green-100;
133
+ @apply cursor-not-allowed;
134
+ }
135
+
136
+ .glorious-input {
137
+ @apply relative w-full;
138
+ }
139
+ .glorious-input.validation-error > div > input {
140
+ @apply ring-red-500 bg-red-50;
141
+ }
142
+ .glorious-input > input {
143
+ @apply w-full;
144
+ }
145
+ .glorious-input > input::placeholder {
146
+ @apply text-sm;
147
+ }
148
+ .glorious-input.icon-xl > input {
149
+ @apply rtl:pr-9 ltr:pl-9;
150
+ }
151
+ .glorious-input.icon-lg > input {
152
+ @apply rtl:pr-9 ltr:pl-8;
153
+ }
154
+ .glorious-input.icon-md > input {
155
+ @apply rtl:pr-9 ltr:pl-8;
156
+ }
157
+ .glorious-input.icon-sm > input {
158
+ @apply rtl:pr-8 ltr:pl-8;
159
+ }
160
+ .glorious-input.icon-xsm > input {
161
+ @apply rtl:pr-8 ltr:pl-7;
162
+ }
163
+
164
+ .glorious-input-icon {
165
+ @apply absolute h-max top-0 bottom-0 my-auto rtl:right-1 ltr:left-1;
166
+ }
167
+
168
+ /* ----------------------------------------------- TAG */
169
+ .glorious-input-tag {
170
+ @apply mt-3 gap-2 flex flex-wrap;
171
+ }
172
+ .glorious-input-tag > div {
173
+ @apply bg-green-500 px-1 rounded text-white flex items-center gap-2 cursor-pointer;
174
+ }
175
+
176
+ .glorious-input-options {
177
+ @apply p-1 shadow-lg absolute w-full bg-white rounded border-gray-200 border max-h-[200px] overflow-y-auto z-40;
178
+ }
179
+ .glorious-input-options > div {
180
+ @apply py-2 hover:bg-gray-100 cursor-pointer rounded px-2;
181
+ }
182
+ .glorious-input-options.size-md {
183
+ @apply top-11;
184
+ }
185
+ .glorious-input div > input::placeholder {
186
+ @apply text-gray-500;
187
+ }
@@ -0,0 +1,87 @@
1
+ @use '../variable.scss' as var;
2
+ @use '../mixin.scss' as mixin;
3
+
4
+ @each $color in var.$colors {
5
+ .#{'glorious-input-' + $color} {
6
+ @apply #{"ring-" + $color + "-500"};
7
+ @apply rounded-md ring-1;
8
+ @include mixin.load-size();
9
+ &:focus-visible {
10
+ @apply outline-none ring-2;
11
+ }
12
+ &:disabled {
13
+ @apply #{"bg-" + $color + "-100"};
14
+ @apply cursor-not-allowed;
15
+ }
16
+ }
17
+ }
18
+
19
+ .glorious-input {
20
+ &.validation-error {
21
+ > div > input {
22
+ @apply ring-red-500 bg-red-50;
23
+ }
24
+ }
25
+ @apply relative w-full;
26
+ > input {
27
+ @apply w-full;
28
+ }
29
+ > input::placeholder {
30
+ @apply text-sm;
31
+ }
32
+ &.icon-xl {
33
+ > input {
34
+ @apply rtl:pr-9 ltr:pl-9;
35
+ }
36
+ }
37
+ &.icon-lg {
38
+ > input {
39
+ @apply rtl:pr-9 ltr:pl-8;
40
+ }
41
+ }
42
+ &.icon-md {
43
+ > input {
44
+ @apply rtl:pr-9 ltr:pl-8;
45
+ }
46
+ }
47
+ &.icon-sm {
48
+ > input {
49
+ @apply rtl:pr-8 ltr:pl-8;
50
+ }
51
+ }
52
+ &.icon-xsm {
53
+ > input {
54
+ @apply rtl:pr-8 ltr:pl-7;
55
+ }
56
+ }
57
+ }
58
+ .glorious-input-icon {
59
+ @apply absolute h-max top-0 bottom-0 my-auto rtl:right-1 ltr:left-1;
60
+ }
61
+
62
+ /* ----------------------------------------------- TAG */
63
+ .glorious-input-tag {
64
+ @apply mt-3 gap-2 flex flex-wrap;
65
+ > div {
66
+ @apply bg-green-500 px-1 rounded text-white flex items-center gap-2 cursor-pointer;
67
+ }
68
+ }
69
+
70
+ .glorious-input {
71
+ // -------------------------------------------------- OPTION
72
+ &-options {
73
+ @apply p-1 shadow-lg absolute w-full bg-white rounded border-gray-200 border max-h-[200px] overflow-y-auto z-40;
74
+
75
+ > div {
76
+ @apply py-2 hover:bg-gray-100 cursor-pointer rounded px-2;
77
+ }
78
+
79
+ &.size-md {
80
+ @apply top-11;
81
+ }
82
+ }
83
+
84
+ div > input::placeholder {
85
+ @apply text-gray-500;
86
+ }
87
+ }
@@ -0,0 +1,43 @@
1
+ .glorious-loading {
2
+ aspect-ratio: 1;
3
+ border-radius: 50%;
4
+ animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
5
+ }
6
+
7
+ @keyframes l20-1 {
8
+ 0% {
9
+ clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
10
+ }
11
+ 12.5% {
12
+ clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
13
+ }
14
+ 25% {
15
+ clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%);
16
+ }
17
+ 50% {
18
+ clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
19
+ }
20
+ 62.5% {
21
+ clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
22
+ }
23
+ 75% {
24
+ clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%);
25
+ }
26
+ 100% {
27
+ clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%);
28
+ }
29
+ }
30
+ @keyframes l20-2 {
31
+ 0% {
32
+ transform: scaleY(1) rotate(0deg);
33
+ }
34
+ 49.99% {
35
+ transform: scaleY(1) rotate(135deg);
36
+ }
37
+ 50% {
38
+ transform: scaleY(-1) rotate(0deg);
39
+ }
40
+ 100% {
41
+ transform: scaleY(-1) rotate(-135deg);
42
+ }
43
+ }
@@ -0,0 +1,92 @@
1
+ .glorious-loading {
2
+ aspect-ratio: 1;
3
+ border-radius: 50%;
4
+ animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
5
+ }
6
+
7
+ @keyframes l20-1 {
8
+ 0% {
9
+ clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
10
+ }
11
+ 12.5% {
12
+ clip-path: polygon(
13
+ 50% 50%,
14
+ 0 0,
15
+ 50% 0%,
16
+ 100% 0%,
17
+ 100% 0%,
18
+ 100% 0%,
19
+ 100% 0%
20
+ );
21
+ }
22
+ 25% {
23
+ clip-path: polygon(
24
+ 50% 50%,
25
+ 0 0,
26
+ 50% 0%,
27
+ 100% 0%,
28
+ 100% 100%,
29
+ 100% 100%,
30
+ 100% 100%
31
+ );
32
+ }
33
+ 50% {
34
+ clip-path: polygon(
35
+ 50% 50%,
36
+ 0 0,
37
+ 50% 0%,
38
+ 100% 0%,
39
+ 100% 100%,
40
+ 50% 100%,
41
+ 0% 100%
42
+ );
43
+ }
44
+ 62.5% {
45
+ clip-path: polygon(
46
+ 50% 50%,
47
+ 100% 0,
48
+ 100% 0%,
49
+ 100% 0%,
50
+ 100% 100%,
51
+ 50% 100%,
52
+ 0% 100%
53
+ );
54
+ }
55
+ 75% {
56
+ clip-path: polygon(
57
+ 50% 50%,
58
+ 100% 100%,
59
+ 100% 100%,
60
+ 100% 100%,
61
+ 100% 100%,
62
+ 50% 100%,
63
+ 0% 100%
64
+ );
65
+ }
66
+ 100% {
67
+ clip-path: polygon(
68
+ 50% 50%,
69
+ 50% 100%,
70
+ 50% 100%,
71
+ 50% 100%,
72
+ 50% 100%,
73
+ 50% 100%,
74
+ 0% 100%
75
+ );
76
+ }
77
+ }
78
+
79
+ @keyframes l20-2 {
80
+ 0% {
81
+ transform: scaleY(1) rotate(0deg);
82
+ }
83
+ 49.99% {
84
+ transform: scaleY(1) rotate(135deg);
85
+ }
86
+ 50% {
87
+ transform: scaleY(-1) rotate(0deg);
88
+ }
89
+ 100% {
90
+ transform: scaleY(-1) rotate(-135deg);
91
+ }
92
+ }
@@ -0,0 +1,66 @@
1
+ .glorious-scaffold-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
+ .glorious-scaffold-modal-header {
5
+ @apply flex justify-between items-center;
6
+ }
7
+ .glorious-scaffold-modal-footer {
8
+ @apply flex justify-center gap-3 mt-3;
9
+ }
10
+ .glorious-scaffold-modal-footer > button {
11
+ @apply min-w-24;
12
+ }
13
+ .glorious-scaffold-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
+ .glorious-scaffold-modal.size-full {
17
+ @apply w-full h-full top-0 rounded-none;
18
+ }
19
+ .glorious-scaffold-modal.size-xl {
20
+ @apply md:w-[70%] w-full md:h-max max-h-[calc(100%-15%)];
21
+ }
22
+ .glorious-scaffold-modal.size-lg {
23
+ @apply md:w-[60%] w-full md:h-max max-h-[calc(100%-15%)];
24
+ }
25
+ .glorious-scaffold-modal.size-md {
26
+ @apply md:w-[50%] w-full md:h-max max-h-[calc(100%-15%)];
27
+ }
28
+ .glorious-scaffold-modal.size-sm {
29
+ @apply lg:w-[25%] md:w-[35%] w-full md:h-max max-h-[calc(100%-15%)];
30
+ }
31
+ .glorious-scaffold-modal.close {
32
+ @apply hidden;
33
+ }
34
+ .glorious-scaffold-modal.open.animation {
35
+ animation: animationMobile 0.3s normal forwards;
36
+ }
37
+ @screen md {
38
+ .glorious-scaffold-modal.open.animation {
39
+ animation: animationOpacity 0.3s normal forwards;
40
+ }
41
+ }
42
+ @keyframes animationOpacity {
43
+ 0% {
44
+ transform: scale(0.1);
45
+ opacity: 0;
46
+ }
47
+ 99% {
48
+ transform: scale(1);
49
+ opacity: 1;
50
+ }
51
+ 100% {
52
+ transform: unset;
53
+ opacity: 1;
54
+ }
55
+ }
56
+ @keyframes animationMobile {
57
+ 0% {
58
+ transform: translateY(100%);
59
+ }
60
+ 99% {
61
+ transform: translateY(0);
62
+ }
63
+ 100% {
64
+ transform: translateY(0);
65
+ }
66
+ }
@@ -0,0 +1,76 @@
1
+ .glorious-scaffold-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
+ &-header {
5
+ @apply flex justify-between items-center;
6
+ }
7
+
8
+ &-footer {
9
+ @apply flex justify-center gap-3 mt-3;
10
+ > button {
11
+ @apply min-w-24;
12
+ }
13
+ }
14
+
15
+ &-bg-blur {
16
+ @apply fixed top-0 right-0 backdrop-blur-sm bg-gray-500 bg-opacity-50 h-full w-full z-[40];
17
+ }
18
+
19
+ &.size-full {
20
+ @apply w-full h-full top-0 rounded-none;
21
+ }
22
+
23
+ &.size-xl {
24
+ @apply md:w-[70%] w-full md:h-max max-h-[calc(100%-15%)];
25
+ }
26
+
27
+ &.size-lg {
28
+ @apply md:w-[60%] w-full md:h-max max-h-[calc(100%-15%)];
29
+ }
30
+
31
+ &.size-md {
32
+ @apply md:w-[50%] w-full md:h-max max-h-[calc(100%-15%)];
33
+ }
34
+
35
+ &.size-sm {
36
+ @apply lg:w-[25%] md:w-[35%] w-full md:h-max max-h-[calc(100%-15%)];
37
+ }
38
+
39
+ &.close {
40
+ @apply hidden;
41
+ }
42
+
43
+ &.open.animation {
44
+ animation: animationMobile 0.3s normal forwards;
45
+ @screen md {
46
+ animation: animationOpacity 0.3s normal forwards;
47
+ }
48
+ }
49
+
50
+ @keyframes animationOpacity {
51
+ 0% {
52
+ transform: scale(0.1);
53
+ opacity: 0;
54
+ }
55
+ 99% {
56
+ transform: scale(1);
57
+ opacity: 1;
58
+ }
59
+ 100% {
60
+ transform: unset;
61
+ opacity: 1;
62
+ }
63
+ }
64
+ @keyframes animationMobile {
65
+ 0% {
66
+ transform: translateY(100%);
67
+ }
68
+
69
+ 99% {
70
+ transform: translateY(0);
71
+ }
72
+ 100% {
73
+ transform: translateY(0);
74
+ }
75
+ }
76
+ }
@@ -0,0 +1,18 @@
1
+ .glorious-paginate {
2
+ > div {
3
+ @apply border border-gray-50 rounded-xl h-8 flex items-center px-1 bg-white shadow-md gap-1 w-max;
4
+ direction: rtl;
5
+ > div {
6
+ @apply px-2;
7
+ &:last-child {
8
+ @apply rotate-[180deg];
9
+ }
10
+ }
11
+ }
12
+ }
13
+ .paginate {
14
+ @apply text-[13px];
15
+ &.active {
16
+ @apply bg-green-500 rounded-lg text-white font-bold text-[13px];
17
+ }
18
+ }
@@ -0,0 +1,121 @@
1
+ .glorious-radio {
2
+ @apply block relative cursor-pointer;
3
+ }
4
+ .glorious-radio > input {
5
+ @apply hidden;
6
+ }
7
+ .glorious-radio > input:checked ~ div {
8
+ @apply border-none;
9
+ }
10
+ .glorious-radio > input:checked ~ div:after {
11
+ content: "";
12
+ @apply block w-1 h-1 bg-white rounded-full;
13
+ }
14
+ .glorious-radio > input:disabled ~ div {
15
+ @apply cursor-not-allowed;
16
+ }
17
+ .glorious-radio > div:last-child {
18
+ @apply border border-gray-500 rounded-full bg-white left-0 top-0 absolute hover:shadow-lg;
19
+ }
20
+ .glorious-radio > div:last-child > div:first-child {
21
+ @apply hidden;
22
+ }
23
+ .glorious-radio > div:last-child:after {
24
+ @apply absolute hidden right-0 top-0 left-0 bottom-0 m-auto w-10 h-10 bg-white rounded-full;
25
+ }
26
+ .glorious-radio.orange > input:checked ~ div {
27
+ @apply bg-orange-500;
28
+ }
29
+ .glorious-radio.blue > input:checked ~ div {
30
+ @apply bg-blue-500;
31
+ }
32
+ .glorious-radio.gray > input:checked ~ div {
33
+ @apply bg-gray-500;
34
+ }
35
+ .glorious-radio.red > input:checked ~ div {
36
+ @apply bg-red-500;
37
+ }
38
+ .glorious-radio.green > input:checked ~ div {
39
+ @apply bg-green-500;
40
+ }
41
+ .glorious-radio.size-5xl {
42
+ @apply w-[40px] h-[40px];
43
+ }
44
+ .glorious-radio.size-5xl > div:last-child {
45
+ @apply w-[40px] h-[40px];
46
+ }
47
+ .glorious-radio.size-5xl > input:checked ~ div:after {
48
+ @apply w-[30px] h-[30px];
49
+ }
50
+ .glorious-radio.size-4xl {
51
+ @apply w-[36px] h-[36px];
52
+ }
53
+ .glorious-radio.size-4xl > div:last-child {
54
+ @apply w-[36px] h-[36px];
55
+ }
56
+ .glorious-radio.size-4xl > input:checked ~ div:after {
57
+ @apply w-[26px] h-[26px];
58
+ }
59
+ .glorious-radio.size-3xl {
60
+ @apply w-[32px] h-[32px];
61
+ }
62
+ .glorious-radio.size-3xl > div:last-child {
63
+ @apply w-[32px] h-[32px];
64
+ }
65
+ .glorious-radio.size-3xl > input:checked ~ div:after {
66
+ @apply w-[22px] h-[22px];
67
+ }
68
+ .glorious-radio.size-2xl {
69
+ @apply w-[28px] h-[28px];
70
+ }
71
+ .glorious-radio.size-2xl > div:last-child {
72
+ @apply w-[28px] h-[28px];
73
+ }
74
+ .glorious-radio.size-2xl > input:checked ~ div:after {
75
+ @apply w-[18px] h-[18px];
76
+ }
77
+ .glorious-radio.size-xl {
78
+ @apply w-[24px] h-[24px];
79
+ }
80
+ .glorious-radio.size-xl > div:last-child {
81
+ @apply w-[24px] h-[24px];
82
+ }
83
+ .glorious-radio.size-xl > input:checked ~ div:after {
84
+ @apply w-[14px] h-[14px];
85
+ }
86
+ .glorious-radio.size-lg {
87
+ @apply w-[18px] h-[18px];
88
+ }
89
+ .glorious-radio.size-lg > div:last-child {
90
+ @apply w-[18px] h-[18px];
91
+ }
92
+ .glorious-radio.size-lg > input:checked ~ div:after {
93
+ @apply w-[8px] h-[8px];
94
+ }
95
+ .glorious-radio.size-md {
96
+ @apply w-[14px] h-[14px];
97
+ }
98
+ .glorious-radio.size-md > div:last-child {
99
+ @apply w-[14px] h-[14px];
100
+ }
101
+ .glorious-radio.size-md > input:checked ~ div:after {
102
+ @apply w-[4px] h-[4px];
103
+ }
104
+ .glorious-radio.size-sm {
105
+ @apply w-[10px] h-[10px];
106
+ }
107
+ .glorious-radio.size-sm > div:last-child {
108
+ @apply w-[10px] h-[10px];
109
+ }
110
+ .glorious-radio.size-sm > input:checked ~ div:after {
111
+ @apply w-[0px] h-[0px];
112
+ }
113
+ .glorious-radio.size-xs {
114
+ @apply w-[6px] h-[6px];
115
+ }
116
+ .glorious-radio.size-xs > div:last-child {
117
+ @apply w-[6px] h-[6px];
118
+ }
119
+ .glorious-radio.size-xs > input:checked ~ div:after {
120
+ @apply w-[-4px] h-[-4px];
121
+ }