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,113 @@
1
+ button:focus-visible {
2
+ @apply outline-none;
3
+ }
4
+
5
+ .glorious-button {
6
+ @apply rounded-md text-white px-3 relative;
7
+ }
8
+ .glorious-button div > loading {
9
+ @apply flex justify-center items-center;
10
+ }
11
+ .glorious-button div.loading > div > div {
12
+ @apply w-6 !important;
13
+ }
14
+ .glorious-button.size-xl {
15
+ @apply py-2.5;
16
+ }
17
+ .glorious-button.size-lg {
18
+ @apply py-2;
19
+ }
20
+ .glorious-button.size-md {
21
+ @apply py-1.5;
22
+ }
23
+ .glorious-button.size-sm {
24
+ @apply py-1;
25
+ }
26
+ .glorious-button.size-xs {
27
+ @apply py-0.5;
28
+ }
29
+
30
+ .color-orange {
31
+ @apply bg-orange-600 border-orange-700 hover:bg-orange-700;
32
+ }
33
+ .color-orange.outline {
34
+ @apply bg-transparent border outline-none;
35
+ @apply text-orange-500 hover:bg-orange-100;
36
+ }
37
+ .color-orange.outline div.loading > div > div {
38
+ border-color: theme("colors.orange.700") !important;
39
+ }
40
+ .color-orange:disabled {
41
+ @apply cursor-not-allowed;
42
+ }
43
+ .color-orange:disabled:not(:disabled) {
44
+ @apply bg-orange-300;
45
+ }
46
+
47
+ .color-blue {
48
+ @apply bg-blue-600 border-blue-700 hover:bg-blue-700;
49
+ }
50
+ .color-blue.outline {
51
+ @apply bg-transparent border outline-none;
52
+ @apply text-blue-500 hover:bg-blue-100;
53
+ }
54
+ .color-blue.outline div.loading > div > div {
55
+ border-color: theme("colors.blue.700") !important;
56
+ }
57
+ .color-blue:disabled {
58
+ @apply cursor-not-allowed;
59
+ }
60
+ .color-blue:disabled:not(:disabled) {
61
+ @apply bg-blue-300;
62
+ }
63
+
64
+ .color-gray {
65
+ @apply bg-gray-600 border-gray-700 hover:bg-gray-700;
66
+ }
67
+ .color-gray.outline {
68
+ @apply bg-transparent border outline-none;
69
+ @apply text-gray-500 hover:bg-gray-100;
70
+ }
71
+ .color-gray.outline div.loading > div > div {
72
+ border-color: theme("colors.gray.700") !important;
73
+ }
74
+ .color-gray:disabled {
75
+ @apply cursor-not-allowed;
76
+ }
77
+ .color-gray:disabled:not(:disabled) {
78
+ @apply bg-gray-300;
79
+ }
80
+
81
+ .color-red {
82
+ @apply bg-red-600 border-red-700 hover:bg-red-700;
83
+ }
84
+ .color-red.outline {
85
+ @apply bg-transparent border outline-none;
86
+ @apply text-red-500 hover:bg-red-100;
87
+ }
88
+ .color-red.outline div.loading > div > div {
89
+ border-color: theme("colors.red.700") !important;
90
+ }
91
+ .color-red:disabled {
92
+ @apply cursor-not-allowed;
93
+ }
94
+ .color-red:disabled:not(:disabled) {
95
+ @apply bg-red-300;
96
+ }
97
+
98
+ .color-green {
99
+ @apply bg-green-600 border-green-700 hover:bg-green-700;
100
+ }
101
+ .color-green.outline {
102
+ @apply bg-transparent border outline-none;
103
+ @apply text-green-500 hover:bg-green-100;
104
+ }
105
+ .color-green.outline div.loading > div > div {
106
+ border-color: theme("colors.green.700") !important;
107
+ }
108
+ .color-green:disabled {
109
+ @apply cursor-not-allowed;
110
+ }
111
+ .color-green:disabled:not(:disabled) {
112
+ @apply bg-green-300;
113
+ }
@@ -0,0 +1,30 @@
1
+ @use '../variable.scss' as var;
2
+ @use '../mixin.scss' as mixin;
3
+
4
+ button:focus-visible {
5
+ @apply outline-none;
6
+ }
7
+
8
+ .glorious-button {
9
+ @apply rounded-md text-white px-3 relative;
10
+ @include mixin.loading-size(6);
11
+ @include mixin.load-size();
12
+ }
13
+ @each $color in var.$colors {
14
+ .#{'color-' + $color} {
15
+ @apply #{"bg-" + ($color) + "-600 border-" + $color + "-700 hover:bg-" + $color + "-700"};
16
+
17
+ &.outline {
18
+ @apply bg-transparent border outline-none;
19
+ @apply #{"text-" + $color + "-500 hover:bg-" + $color + "-100"};
20
+ @include mixin.loading-color($color);
21
+ }
22
+
23
+ &:disabled {
24
+ @apply cursor-not-allowed;
25
+ &:not(:disabled) {
26
+ @apply #{"bg-" + ($color) + "-300"};
27
+ }
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,94 @@
1
+ .glorious-checkbox {
2
+ @apply block relative cursor-pointer;
3
+ }
4
+ .glorious-checkbox > input {
5
+ @apply hidden;
6
+ }
7
+ .glorious-checkbox > input:checked ~ div {
8
+ @apply border-none;
9
+ }
10
+ .glorious-checkbox > input:checked ~ div:after {
11
+ @apply block h-max w-max;
12
+ }
13
+ .glorious-checkbox > input:disabled ~ div {
14
+ @apply cursor-not-allowed;
15
+ }
16
+ .glorious-checkbox > div:last-child {
17
+ @apply border border-gray-500 rounded bg-white left-0 top-0 absolute hover:shadow-lg;
18
+ }
19
+ .glorious-checkbox > div:last-child > div:first-child {
20
+ @apply hidden;
21
+ }
22
+ .glorious-checkbox > div:last-child:after {
23
+ content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciICB2aWV3Qm94PSIwIDAgMzIgMzIiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPjxwYXRoIGZpbGw9IndoaXRlIiBkPSJNIDI4LjI4MTI1IDYuMjgxMjUgTCAxMSAyMy41NjI1IEwgMy43MTg3NSAxNi4yODEyNSBMIDIuMjgxMjUgMTcuNzE4NzUgTCAxMC4yODEyNSAyNS43MTg3NSBMIDExIDI2LjQwNjI1IEwgMTEuNzE4NzUgMjUuNzE4NzUgTCAyOS43MTg3NSA3LjcxODc1IFoiLz48L3N2Zz4K);
24
+ @apply absolute hidden top-1 right-0 left-0 bottom-0 m-auto;
25
+ }
26
+ .glorious-checkbox.color-orange > input:checked ~ div {
27
+ @apply bg-orange-500;
28
+ }
29
+ .glorious-checkbox.color-blue > input:checked ~ div {
30
+ @apply bg-blue-500;
31
+ }
32
+ .glorious-checkbox.color-gray > input:checked ~ div {
33
+ @apply bg-gray-500;
34
+ }
35
+ .glorious-checkbox.color-red > input:checked ~ div {
36
+ @apply bg-red-500;
37
+ }
38
+ .glorious-checkbox.color-green > input:checked ~ div {
39
+ @apply bg-green-500;
40
+ }
41
+ .glorious-checkbox.size-5xl {
42
+ @apply w-[54px] h-[54px];
43
+ }
44
+ .glorious-checkbox.size-5xl > div:last-child {
45
+ @apply w-[54px] h-[54px];
46
+ }
47
+ .glorious-checkbox.size-4xl {
48
+ @apply w-[50px] h-[50px];
49
+ }
50
+ .glorious-checkbox.size-4xl > div:last-child {
51
+ @apply w-[50px] h-[50px];
52
+ }
53
+ .glorious-checkbox.size-3xl {
54
+ @apply w-[46px] h-[46px];
55
+ }
56
+ .glorious-checkbox.size-3xl > div:last-child {
57
+ @apply w-[46px] h-[46px];
58
+ }
59
+ .glorious-checkbox.size-2xl {
60
+ @apply w-[42px] h-[42px];
61
+ }
62
+ .glorious-checkbox.size-2xl > div:last-child {
63
+ @apply w-[42px] h-[42px];
64
+ }
65
+ .glorious-checkbox.size-xl {
66
+ @apply w-[38px] h-[38px];
67
+ }
68
+ .glorious-checkbox.size-xl > div:last-child {
69
+ @apply w-[38px] h-[38px];
70
+ }
71
+ .glorious-checkbox.size-lg {
72
+ @apply w-[32px] h-[32px];
73
+ }
74
+ .glorious-checkbox.size-lg > div:last-child {
75
+ @apply w-[32px] h-[32px];
76
+ }
77
+ .glorious-checkbox.size-md {
78
+ @apply w-[28px] h-[28px];
79
+ }
80
+ .glorious-checkbox.size-md > div:last-child {
81
+ @apply w-[28px] h-[28px];
82
+ }
83
+ .glorious-checkbox.size-sm {
84
+ @apply w-[24px] h-[24px];
85
+ }
86
+ .glorious-checkbox.size-sm > div:last-child {
87
+ @apply w-[24px] h-[24px];
88
+ }
89
+ .glorious-checkbox.size-xs {
90
+ @apply w-[20px] h-[20px];
91
+ }
92
+ .glorious-checkbox.size-xs > div:last-child {
93
+ @apply w-[20px] h-[20px];
94
+ }
@@ -0,0 +1,52 @@
1
+ @use '../variable.scss' as var;
2
+ $svg-check-icon: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciICB2aWV3Qm94PSIwIDAgMzIgMzIiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPjxwYXRoIGZpbGw9IndoaXRlIiBkPSJNIDI4LjI4MTI1IDYuMjgxMjUgTCAxMSAyMy41NjI1IEwgMy43MTg3NSAxNi4yODEyNSBMIDIuMjgxMjUgMTcuNzE4NzUgTCAxMC4yODEyNSAyNS43MTg3NSBMIDExIDI2LjQwNjI1IEwgMTEuNzE4NzUgMjUuNzE4NzUgTCAyOS43MTg3NSA3LjcxODc1IFoiLz48L3N2Zz4K';
3
+ .glorious-checkbox {
4
+ @apply block relative cursor-pointer;
5
+
6
+ > input {
7
+ @apply hidden;
8
+
9
+ &:checked ~ div {
10
+ @apply border-none;
11
+
12
+ &:after {
13
+ @apply block h-max w-max;
14
+ }
15
+ }
16
+
17
+ &:disabled ~ div {
18
+ @apply cursor-not-allowed;
19
+ }
20
+ }
21
+ > div:last-child {
22
+ @apply border border-gray-500 rounded bg-white left-0 top-0 absolute hover:shadow-lg;
23
+ > div:first-child {
24
+ @apply hidden;
25
+ }
26
+
27
+ &:after {
28
+ content: url(#{$svg-check-icon});
29
+
30
+ @apply absolute hidden top-1 right-0 left-0 bottom-0 m-auto;
31
+ }
32
+ }
33
+
34
+ @each $color in var.$colors {
35
+ &.#{'color-' + $color} {
36
+ > input {
37
+ &:checked ~ div {
38
+ @apply #{"bg-" + $color + "-500"};
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ @each $key, $value in var.$sizes {
45
+ &.size-#{$key} {
46
+ @apply w-[#{$value}px] h-[#{$value}px];
47
+ > div:last-child {
48
+ @apply w-[#{$value}px] h-[#{$value}px];
49
+ }
50
+ }
51
+ }
52
+ }
@@ -1,34 +1,22 @@
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 {
1
+ .glorious-drawer {
6
2
  @apply fixed top-0 bg-white h-full w-[300px] z-[50];
7
3
  }
8
- .drawer.close.rtl {
4
+ .glorious-drawer.close.right {
9
5
  animation: drawer-close-right 250ms normal forwards;
10
6
  }
11
- .drawer.close.ltr {
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.rtl {
13
+ .glorious-drawer.open.right {
18
14
  animation: drawer-open-right 100ms normal forwards;
19
15
  }
20
- .drawer.open.ltr {
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;
@@ -0,0 +1,57 @@
1
+ .glorious-drawer {
2
+ @apply fixed top-0 bg-white h-full w-[300px] z-[50];
3
+
4
+ &.close {
5
+ &.right {
6
+ animation: drawer-close-right 250ms normal forwards;
7
+ }
8
+ &.left {
9
+ animation: drawer-close-left 250ms normal forwards;
10
+ }
11
+ }
12
+
13
+ &.open {
14
+ @apply flex;
15
+ &.right {
16
+ animation: drawer-open-right 100ms normal forwards;
17
+ }
18
+ &.left {
19
+ animation: drawer-open-left 100ms normal forwards;
20
+ }
21
+ }
22
+ }
23
+
24
+ @keyframes drawer-open-right {
25
+ from {
26
+ @apply right-[-300px];
27
+ }
28
+ to {
29
+ @apply right-0;
30
+ }
31
+ }
32
+ @keyframes drawer-close-right {
33
+ from {
34
+ @apply right-0;
35
+ }
36
+ to {
37
+ @apply right-[-300px] hidden;
38
+ }
39
+ }
40
+
41
+ @keyframes drawer-open-left {
42
+ from {
43
+ @apply left-[-300px];
44
+ }
45
+ to {
46
+ @apply left-0;
47
+ }
48
+ }
49
+
50
+ @keyframes drawer-close-left {
51
+ from {
52
+ @apply left-0;
53
+ }
54
+ to {
55
+ @apply left-[-300px] hidden;
56
+ }
57
+ }
@@ -0,0 +1,19 @@
1
+ .glorious-dropdown {
2
+ @apply relative;
3
+ > div:last-child {
4
+ @apply hidden;
5
+ }
6
+ > div:first-child {
7
+ @apply relative;
8
+ > button {
9
+ @apply z-[30] w-5 relative;
10
+ }
11
+ > div:nth-child(2) {
12
+ @apply absolute top-0 bottom-0 my-auto z-[20];
13
+ }
14
+ }
15
+
16
+ &.open > div:last-child {
17
+ @apply bg-white px-2 py-2 rounded-md shadow absolute z-[41] left-[16px] top-5 flex;
18
+ }
19
+ }
@@ -0,0 +1,4 @@
1
+ .ql-editor {
2
+ direction: rtl;
3
+ text-align: right !important;
4
+ }
@@ -0,0 +1,134 @@
1
+ .glorious-file-orange {
2
+ @apply ring-orange-500;
3
+ @apply rounded-md ring-1 overflow-hidden cursor-pointer relative;
4
+ }
5
+ .glorious-file-orange > div.placeholder {
6
+ @apply bg-orange-500;
7
+ @apply text-white px-3 w-max;
8
+ }
9
+ .glorious-file-orange > div.placeholder.size-xl {
10
+ @apply py-2.5;
11
+ }
12
+ .glorious-file-orange > div.placeholder.size-lg {
13
+ @apply py-2;
14
+ }
15
+ .glorious-file-orange > div.placeholder.size-md {
16
+ @apply py-1.5;
17
+ }
18
+ .glorious-file-orange > div.placeholder.size-sm {
19
+ @apply py-1;
20
+ }
21
+ .glorious-file-orange > div.placeholder.size-xs {
22
+ @apply py-0.5;
23
+ }
24
+ .glorious-file-orange > div:last-child {
25
+ @apply absolute left-3 hidden;
26
+ }
27
+
28
+ .glorious-file-blue {
29
+ @apply ring-blue-500;
30
+ @apply rounded-md ring-1 overflow-hidden cursor-pointer relative;
31
+ }
32
+ .glorious-file-blue > div.placeholder {
33
+ @apply bg-blue-500;
34
+ @apply text-white px-3 w-max;
35
+ }
36
+ .glorious-file-blue > div.placeholder.size-xl {
37
+ @apply py-2.5;
38
+ }
39
+ .glorious-file-blue > div.placeholder.size-lg {
40
+ @apply py-2;
41
+ }
42
+ .glorious-file-blue > div.placeholder.size-md {
43
+ @apply py-1.5;
44
+ }
45
+ .glorious-file-blue > div.placeholder.size-sm {
46
+ @apply py-1;
47
+ }
48
+ .glorious-file-blue > div.placeholder.size-xs {
49
+ @apply py-0.5;
50
+ }
51
+ .glorious-file-blue > div:last-child {
52
+ @apply absolute left-3 hidden;
53
+ }
54
+
55
+ .glorious-file-gray {
56
+ @apply ring-gray-500;
57
+ @apply rounded-md ring-1 overflow-hidden cursor-pointer relative;
58
+ }
59
+ .glorious-file-gray > div.placeholder {
60
+ @apply bg-gray-500;
61
+ @apply text-white px-3 w-max;
62
+ }
63
+ .glorious-file-gray > div.placeholder.size-xl {
64
+ @apply py-2.5;
65
+ }
66
+ .glorious-file-gray > div.placeholder.size-lg {
67
+ @apply py-2;
68
+ }
69
+ .glorious-file-gray > div.placeholder.size-md {
70
+ @apply py-1.5;
71
+ }
72
+ .glorious-file-gray > div.placeholder.size-sm {
73
+ @apply py-1;
74
+ }
75
+ .glorious-file-gray > div.placeholder.size-xs {
76
+ @apply py-0.5;
77
+ }
78
+ .glorious-file-gray > div:last-child {
79
+ @apply absolute left-3 hidden;
80
+ }
81
+
82
+ .glorious-file-red {
83
+ @apply ring-red-500;
84
+ @apply rounded-md ring-1 overflow-hidden cursor-pointer relative;
85
+ }
86
+ .glorious-file-red > div.placeholder {
87
+ @apply bg-red-500;
88
+ @apply text-white px-3 w-max;
89
+ }
90
+ .glorious-file-red > div.placeholder.size-xl {
91
+ @apply py-2.5;
92
+ }
93
+ .glorious-file-red > div.placeholder.size-lg {
94
+ @apply py-2;
95
+ }
96
+ .glorious-file-red > div.placeholder.size-md {
97
+ @apply py-1.5;
98
+ }
99
+ .glorious-file-red > div.placeholder.size-sm {
100
+ @apply py-1;
101
+ }
102
+ .glorious-file-red > div.placeholder.size-xs {
103
+ @apply py-0.5;
104
+ }
105
+ .glorious-file-red > div:last-child {
106
+ @apply absolute left-3 hidden;
107
+ }
108
+
109
+ .glorious-file-green {
110
+ @apply ring-green-500;
111
+ @apply rounded-md ring-1 overflow-hidden cursor-pointer relative;
112
+ }
113
+ .glorious-file-green > div.placeholder {
114
+ @apply bg-green-500;
115
+ @apply text-white px-3 w-max;
116
+ }
117
+ .glorious-file-green > div.placeholder.size-xl {
118
+ @apply py-2.5;
119
+ }
120
+ .glorious-file-green > div.placeholder.size-lg {
121
+ @apply py-2;
122
+ }
123
+ .glorious-file-green > div.placeholder.size-md {
124
+ @apply py-1.5;
125
+ }
126
+ .glorious-file-green > div.placeholder.size-sm {
127
+ @apply py-1;
128
+ }
129
+ .glorious-file-green > div.placeholder.size-xs {
130
+ @apply py-0.5;
131
+ }
132
+ .glorious-file-green > div:last-child {
133
+ @apply absolute left-3 hidden;
134
+ }
@@ -0,0 +1,19 @@
1
+ @use '../variable.scss' as var;
2
+ @use '../mixin.scss' as mixin;
3
+
4
+ @each $color in var.$colors {
5
+ .#{'glorious-file-' + $color} {
6
+ @apply #{"ring-"+$color+"-500"};
7
+ @apply rounded-md ring-1 overflow-hidden cursor-pointer relative;
8
+
9
+ > div.placeholder {
10
+ @apply #{"bg-"+$color+"-500"};
11
+ @apply text-white px-3 w-max;
12
+ @include mixin.load-size();
13
+ }
14
+
15
+ > div:last-child {
16
+ @apply absolute left-3 hidden;
17
+ }
18
+ }
19
+ }