nuxt-glorious 1.3.3 → 1.9.0-dev

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 (116) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +5 -23
  3. package/dist/runtime/components/G/Alert.vue +2 -3
  4. package/dist/runtime/components/G/Avatar.vue +9 -4
  5. package/dist/runtime/components/G/Breadcrumb.vue +4 -3
  6. package/dist/runtime/components/G/Button.vue +10 -11
  7. package/dist/runtime/components/G/Checkbox.vue +7 -5
  8. package/dist/runtime/components/G/Drawer.vue +6 -3
  9. package/dist/runtime/components/G/File.vue +11 -8
  10. package/dist/runtime/components/G/Icon.vue +37 -70
  11. package/dist/runtime/components/G/Input.vue +43 -25
  12. package/dist/runtime/components/G/Loading.vue +8 -4
  13. package/dist/runtime/components/G/Modal.vue +7 -6
  14. package/dist/runtime/components/G/Paginate.vue +41 -13
  15. package/dist/runtime/components/G/Radio.vue +8 -5
  16. package/dist/runtime/components/G/Rating.vue +0 -2
  17. package/dist/runtime/components/G/Select.vue +9 -9
  18. package/dist/runtime/components/G/Switch.vue +0 -2
  19. package/dist/runtime/components/G/Tab.vue +1 -2
  20. package/dist/runtime/components/G/Table.vue +0 -2
  21. package/dist/runtime/components/G/Tooltip.vue +17 -0
  22. package/dist/runtime/components/G/Wizard.vue +71 -25
  23. package/dist/runtime/components/G/textarea.vue +10 -9
  24. package/dist/runtime/components/G/timeline.vue +0 -2
  25. package/dist/runtime/components/helper.d.ts +1 -0
  26. package/dist/runtime/components/helper.mjs +13 -2
  27. package/dist/runtime/components/props/Alert.d.ts +1 -1
  28. package/dist/runtime/components/props/Avatar.d.ts +9 -0
  29. package/dist/runtime/components/props/Avatar.mjs +4 -6
  30. package/dist/runtime/components/props/Button.d.ts +1 -1
  31. package/dist/runtime/components/props/CheckBox.d.ts +1 -1
  32. package/dist/runtime/components/props/File.d.ts +1 -1
  33. package/dist/runtime/components/props/Icon.d.ts +4 -0
  34. package/dist/runtime/components/props/Icon.mjs +5 -1
  35. package/dist/runtime/components/props/Input.d.ts +1 -1
  36. package/dist/runtime/components/props/Loading.d.ts +1 -1
  37. package/dist/runtime/components/props/Modal.d.ts +1 -1
  38. package/dist/runtime/components/props/Paginate.d.ts +5 -0
  39. package/dist/runtime/components/props/Paginate.mjs +2 -0
  40. package/dist/runtime/components/props/Radio.d.ts +1 -1
  41. package/dist/runtime/components/props/Select.d.ts +1 -1
  42. package/dist/runtime/components/props/Switch.d.ts +1 -1
  43. package/dist/runtime/components/props/Table.d.ts +1 -1
  44. package/dist/runtime/components/props/Textarea.d.ts +1 -6
  45. package/dist/runtime/components/props/Textarea.mjs +0 -2
  46. package/dist/runtime/components/props/Timeline.d.ts +1 -1
  47. package/dist/runtime/components/props/common/index.d.ts +14 -2
  48. package/dist/runtime/components/props/common/index.mjs +13 -1
  49. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeAuth.d.ts +2 -0
  50. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeAuth.mjs +8 -0
  51. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeFormData.d.ts +3 -0
  52. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeFormData.mjs +14 -0
  53. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeGKey.d.ts +2 -0
  54. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeGKey.mjs +3 -0
  55. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeHeaderFetch.d.ts +2 -0
  56. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeHeaderFetch.mjs +9 -0
  57. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeParams.d.ts +2 -0
  58. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeParams.mjs +7 -0
  59. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeValidation.d.ts +2 -0
  60. package/dist/runtime/composables/helper/useGloriousFetch/functionComputeValidation.mjs +30 -0
  61. package/dist/runtime/composables/helper/useGloriousFetch/gloriousFetchDefaultOptions.d.ts +3 -0
  62. package/dist/runtime/composables/helper/useGloriousFetch/gloriousFetchDefaultOptions.mjs +15 -0
  63. package/dist/runtime/composables/helper/useGloriousFetch/gloriousFetchOptionsInterface.d.ts +15 -0
  64. package/dist/runtime/composables/useGloriousCore.d.ts +0 -1
  65. package/dist/runtime/composables/useGloriousCore.mjs +1 -3
  66. package/dist/runtime/composables/useGloriousFetch.d.ts +1 -15
  67. package/dist/runtime/composables/useGloriousFetch.mjs +11 -57
  68. package/dist/runtime/composables/useGloriousHead.mjs +1 -1
  69. package/dist/runtime/middlewares/AuthStrategy.mjs +1 -9
  70. package/dist/runtime/plugins/InputComponent.mjs +0 -2
  71. package/dist/runtime/style/components/drawer.css +4 -35
  72. package/dist/runtime/style/components/dropdown.css +17 -15
  73. package/dist/{runtime/style/components → scss}/alert.scss +7 -7
  74. package/dist/scss/avatar.scss +13 -0
  75. package/dist/scss/breadcrumb.scss +6 -0
  76. package/dist/{runtime/style/components → scss}/button.scss +30 -30
  77. package/dist/{runtime/style/components → scss}/checkbox.scss +1 -1
  78. package/dist/scss/drawer.scss +64 -0
  79. package/dist/{runtime/style/components → scss}/file.scss +2 -2
  80. package/dist/scss/glorious.scss +22 -0
  81. package/dist/{runtime/style/components → scss}/input.scss +9 -3
  82. package/dist/{runtime/style → scss}/mixin.scss +1 -1
  83. package/dist/scss/modal.scss +76 -0
  84. package/dist/scss/paginate.scss +28 -0
  85. package/dist/{runtime/style/components → scss}/radio.scss +1 -1
  86. package/dist/{runtime/style/components → scss}/select.scss +2 -2
  87. package/dist/{runtime/style/components → scss}/switch.scss +1 -1
  88. package/dist/{runtime/style/components → scss}/tab.scss +1 -1
  89. package/dist/{runtime/style/components → scss}/table.scss +1 -1
  90. package/dist/{runtime/style/components → scss}/textarea.scss +2 -2
  91. package/dist/{runtime/style/components → scss}/timeline.scss +2 -2
  92. package/dist/scss/tooltip.scss +14 -0
  93. package/package.json +9 -7
  94. package/dist/runtime/style/components/alert.css +0 -33
  95. package/dist/runtime/style/components/avatar.css +0 -57
  96. package/dist/runtime/style/components/avatar.scss +0 -13
  97. package/dist/runtime/style/components/breadcrumb.css +0 -6
  98. package/dist/runtime/style/components/breadcrumb.scss +0 -6
  99. package/dist/runtime/style/components/drawer.scss +0 -57
  100. package/dist/runtime/style/components/dropdown.scss +0 -19
  101. package/dist/runtime/style/components/editor.scss +0 -4
  102. package/dist/runtime/style/components/input.css +0 -184
  103. package/dist/runtime/style/components/loading.css +0 -43
  104. package/dist/runtime/style/components/modal.css +0 -66
  105. package/dist/runtime/style/components/modal.scss +0 -76
  106. package/dist/runtime/style/components/paginate.css +0 -17
  107. package/dist/runtime/style/components/paginate.scss +0 -18
  108. package/dist/runtime/style/components/radio.css +0 -121
  109. package/dist/runtime/style/components/rating.css +0 -30
  110. package/dist/runtime/style/components/select.css +0 -49
  111. package/dist/runtime/style/components/switch.css +0 -61
  112. package/dist/runtime/style/components/table.css +0 -99
  113. package/dist/runtime/style/components/textarea.css +0 -67
  114. /package/dist/{runtime/style/components → scss}/loading.scss +0 -0
  115. /package/dist/{runtime/style/components → scss}/rating.scss +0 -0
  116. /package/dist/{runtime/style → scss}/variable.scss +0 -0
@@ -0,0 +1,64 @@
1
+ .glorious-drawer {
2
+ @apply fixed top-0 bg-white h-full w-[300px] z-[50];
3
+
4
+ > div {
5
+ @apply bg-white min-h-screen;
6
+ }
7
+
8
+ &.close {
9
+ &.right {
10
+ animation: drawer-close-right 250ms normal forwards;
11
+ }
12
+ &.left {
13
+ animation: drawer-close-left 250ms normal forwards;
14
+ }
15
+ }
16
+
17
+ &.open {
18
+ @apply flex;
19
+ &.right {
20
+ animation: drawer-open-right 100ms normal forwards;
21
+ }
22
+ &.left {
23
+ animation: drawer-open-left 100ms normal forwards;
24
+ }
25
+ }
26
+ }
27
+
28
+ @keyframes drawer-open-right {
29
+ from {
30
+ right: -300px;
31
+ }
32
+ to {
33
+ right: 0;
34
+ }
35
+ }
36
+
37
+ @keyframes drawer-close-right {
38
+ from {
39
+ right: 0;
40
+ }
41
+ to {
42
+ right: 300px;
43
+ display: hidden;
44
+ }
45
+ }
46
+
47
+ @keyframes drawer-open-left {
48
+ from {
49
+ left: -300px;
50
+ }
51
+ to {
52
+ left: 0;
53
+ }
54
+ }
55
+
56
+ @keyframes drawer-close-left {
57
+ from {
58
+ left: 0;
59
+ }
60
+ to {
61
+ left: -300px;
62
+ display: hidden;
63
+ }
64
+ }
@@ -1,5 +1,5 @@
1
- @use '../variable.scss' as var;
2
- @use '../mixin.scss' as mixin;
1
+ @use 'variable.scss' as var;
2
+ @use 'mixin.scss' as mixin;
3
3
 
4
4
  @each $color in var.$colors {
5
5
  .#{'glorious-file-' + $color} {
@@ -0,0 +1,22 @@
1
+ @use 'mixin.scss';
2
+ @use 'variable.scss';
3
+ @use 'alert.scss';
4
+ @use 'avatar.scss';
5
+ @use 'breadcrumb.scss';
6
+ @use 'button.scss';
7
+ @use 'checkbox.scss';
8
+ @use 'drawer.scss';
9
+ @use 'file.scss';
10
+ @use 'input.scss';
11
+ @use 'loading.scss';
12
+ @use 'modal.scss';
13
+ @use 'paginate.scss';
14
+ @use 'radio.scss';
15
+ @use 'rating.scss';
16
+ @use 'select.scss';
17
+ @use 'switch.scss';
18
+ @use 'tab.scss';
19
+ @use 'table.scss';
20
+ @use 'textarea.scss';
21
+ @use 'timeline.scss';
22
+ @use 'tooltip.scss';
@@ -1,5 +1,5 @@
1
- @use '../variable.scss' as var;
2
- @use '../mixin.scss' as mixin;
1
+ @use 'variable.scss' as var;
2
+ @use 'mixin.scss' as mixin;
3
3
 
4
4
  @each $color in var.$colors {
5
5
  .#{'glorious-input-' + $color} {
@@ -69,8 +69,14 @@
69
69
 
70
70
  .glorious-input {
71
71
  // -------------------------------------------------- OPTION
72
+ >div{
73
+ >input.size-md{
74
+ // @apply top-[20px]
75
+ }
76
+ }
77
+
72
78
  &-options {
73
- @apply p-1 shadow-lg fixed w-full bg-white rounded border-gray-200 border max-h-[200px] overflow-y-auto z-40;
79
+ @apply p-1 shadow-lg absolute w-full bg-white rounded border-gray-200 border max-h-[200px] overflow-y-auto z-40;
74
80
 
75
81
  > div>div {
76
82
  @apply p-2 hover:bg-gray-100 cursor-pointer rounded;
@@ -29,7 +29,7 @@
29
29
  @apply flex justify-center items-center;
30
30
  }
31
31
  div.loading > div > div {
32
- @apply #{"w-" + $size !important};
32
+ @apply #{"w-" + $size};
33
33
  }
34
34
  }
35
35
 
@@ -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 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,28 @@
1
+ @use 'variable.scss' as var;
2
+
3
+ .glorious-paginate {
4
+ > div {
5
+ @apply border border-gray-50 rounded-xl h-8 flex items-center px-1 bg-white shadow-md gap-1 w-max;
6
+ direction: rtl;
7
+ > div {
8
+ @apply px-2;
9
+ &:last-child {
10
+ @apply rotate-[180deg];
11
+ }
12
+ }
13
+ }
14
+
15
+ @each $color in var.$colors {
16
+ &.#{'color-' + $color} {
17
+ .paginate.active {
18
+ @apply #{"bg-" + ($color) + "-500 "};
19
+ }
20
+ }
21
+ }
22
+ }
23
+ .paginate {
24
+ @apply text-[13px];
25
+ &.active {
26
+ @apply bg-green-500 rounded-lg text-white font-bold text-[13px];
27
+ }
28
+ }
@@ -1,4 +1,4 @@
1
- @use '../variable.scss' as var;
1
+ @use 'variable.scss' as var;
2
2
 
3
3
  .glorious-radio {
4
4
  @apply block relative cursor-pointer;
@@ -1,4 +1,4 @@
1
- @use '../variable.scss' as var;
1
+ @use 'variable.scss' as var;
2
2
 
3
3
  %select-size {
4
4
  &.xl {
@@ -39,6 +39,6 @@
39
39
  }
40
40
 
41
41
  &.validation-error {
42
- @apply ring-red-500 bg-red-50 !important;
42
+ @apply ring-red-500 bg-red-50 ;
43
43
  }
44
44
  }
@@ -1,4 +1,4 @@
1
- @use '../variable.scss' as var;
1
+ @use 'variable.scss' as var;
2
2
 
3
3
  .switch {
4
4
  direction: ltr;
@@ -2,7 +2,7 @@
2
2
  @apply flex justify-between bg-green-100 rounded-lg gap-3 w-max max-w-full shadow-md;
3
3
 
4
4
  div > 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;
5
+ @apply text-gray-700 text-sm hover:bg-green-200 hover:text-gray-800 cursor-pointer px-2 py-1 rounded-lg whitespace-nowrap;
6
6
 
7
7
  &.active {
8
8
  @apply font-bold text-white bg-green-700;
@@ -1,4 +1,4 @@
1
- @use '../variable.scss' as var;
1
+ @use 'variable.scss' as var;
2
2
 
3
3
  .glorious-table {
4
4
  @apply overflow-x-auto;
@@ -1,5 +1,5 @@
1
- @use '../mixin.scss' as mixin;
2
- @use '../variable.scss' as var;
1
+ @use 'mixin.scss' as mixin;
2
+ @use 'variable.scss' as var;
3
3
 
4
4
  %textarea-size {
5
5
  &.xl {
@@ -1,4 +1,4 @@
1
- @use '../variable.scss' as var;
1
+ @use 'variable.scss' as var;
2
2
 
3
3
  .glorious-timeline {
4
4
  &-items {
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  &-count {
20
- @apply absolute w-5 h-5 top-0 right-[-24px] rounded-full !important;
20
+ @apply absolute w-5 h-5 top-0 right-[-24px] rounded-full ;
21
21
  @apply text-white flex justify-center items-center font-medium;
22
22
  }
23
23
 
@@ -0,0 +1,14 @@
1
+ .glorious-tooltip {
2
+ @apply relative w-max;
3
+
4
+ > .tooltip-slot {
5
+ &:hover {
6
+ ~ .tooltip-content {
7
+ @apply opacity-100;
8
+ }
9
+ }
10
+ }
11
+ > .tooltip-content {
12
+ @apply bg-white w-max rounded-lg shadow-md pt-2 px-3 flex absolute bottom-10 opacity-0 transition-all duration-100 ease-in;
13
+ }
14
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.3",
2
+ "version": "1.9.0-dev",
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 && cp -R src/runtime/style dist/runtime",
22
+ "prepack": "nuxt-module-build build && cp -R ../../assets/scss/glorious dist && mv dist/glorious dist/scss",
23
23
  "dev": "nuxi dev --port=3001 playground",
24
24
  "dev:build": "nuxi build playground",
25
25
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
@@ -30,23 +30,25 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@nuxt/image": "^1.8.1",
33
- "@nuxt/kit": "^3.14.1592",
34
- "@nuxtjs/tailwindcss": "^6.12.0",
33
+ "@nuxt/kit": "^3.16.0",
35
34
  "@pinia/nuxt": "^0.5.1",
35
+ "@tailwindcss/postcss": "^4.0.14",
36
+ "@tailwindcss/vite": "^4.0.14",
36
37
  "defu": "^6.1.4",
37
38
  "pinia": "^2.1.7",
38
- "sass": "^1.80.3"
39
+ "sass": "^1.86.0",
40
+ "tailwindcss": "^4.0.14"
39
41
  },
40
42
  "devDependencies": {
41
43
  "@nuxt/devtools": "latest",
42
44
  "@nuxt/eslint-config": "^0.2.0",
43
45
  "@nuxt/module-builder": "^0.5.5",
44
- "@nuxt/schema": "^3.14.1592",
46
+ "@nuxt/schema": "^3.16.0",
45
47
  "@nuxt/test-utils": "^3.12.0",
46
48
  "@types/node": "^20.11.29",
47
49
  "changelogen": "^0.5.5",
48
50
  "eslint": "^8.57.0",
49
- "nuxt": "^3.14.1592",
51
+ "nuxt": "^3.16.0",
50
52
  "vitest": "^1.4.0"
51
53
  },
52
54
  "overrides": {
@@ -1,33 +0,0 @@
1
- .glorious-alert {
2
- @apply p-3 rounded shadow;
3
- }
4
- .glorious-alert.color-orange {
5
- @apply bg-orange-100;
6
- }
7
- .glorious-alert.color-blue {
8
- @apply bg-blue-100;
9
- }
10
- .glorious-alert.color-gray {
11
- @apply bg-gray-100;
12
- }
13
- .glorious-alert.color-red {
14
- @apply bg-red-100;
15
- }
16
- .glorious-alert.color-green {
17
- @apply bg-green-100;
18
- }
19
- .glorious-alert.color-orange {
20
- @apply border border-orange-300;
21
- }
22
- .glorious-alert.color-blue {
23
- @apply border border-blue-300;
24
- }
25
- .glorious-alert.color-gray {
26
- @apply border border-gray-300;
27
- }
28
- .glorious-alert.color-red {
29
- @apply border border-red-300;
30
- }
31
- .glorious-alert.color-green {
32
- @apply border border-green-300;
33
- }
@@ -1,57 +0,0 @@
1
- .glorious-avatar {
2
- @apply overflow-hidden;
3
- }
4
- .glorious-avatar.size-5xl {
5
- @apply w-[58px] h-[58px];
6
- }
7
- .glorious-avatar.size-5xl > img {
8
- @apply w-[58px] h-[58px];
9
- }
10
- .glorious-avatar.size-4xl {
11
- @apply w-[54px] h-[54px];
12
- }
13
- .glorious-avatar.size-4xl > img {
14
- @apply w-[54px] h-[54px];
15
- }
16
- .glorious-avatar.size-3xl {
17
- @apply w-[50px] h-[50px];
18
- }
19
- .glorious-avatar.size-3xl > img {
20
- @apply w-[50px] h-[50px];
21
- }
22
- .glorious-avatar.size-2xl {
23
- @apply w-[46px] h-[46px];
24
- }
25
- .glorious-avatar.size-2xl > img {
26
- @apply w-[46px] h-[46px];
27
- }
28
- .glorious-avatar.size-xl {
29
- @apply w-[42px] h-[42px];
30
- }
31
- .glorious-avatar.size-xl > img {
32
- @apply w-[42px] h-[42px];
33
- }
34
- .glorious-avatar.size-lg {
35
- @apply w-[36px] h-[36px];
36
- }
37
- .glorious-avatar.size-lg > img {
38
- @apply w-[36px] h-[36px];
39
- }
40
- .glorious-avatar.size-md {
41
- @apply w-[32px] h-[32px];
42
- }
43
- .glorious-avatar.size-md > img {
44
- @apply w-[32px] h-[32px];
45
- }
46
- .glorious-avatar.size-sm {
47
- @apply w-[28px] h-[28px];
48
- }
49
- .glorious-avatar.size-sm > img {
50
- @apply w-[28px] h-[28px];
51
- }
52
- .glorious-avatar.size-xs {
53
- @apply w-[24px] h-[24px];
54
- }
55
- .glorious-avatar.size-xs > img {
56
- @apply w-[24px] h-[24px];
57
- }
@@ -1,13 +0,0 @@
1
- @use '../variable.scss' as var;
2
-
3
- .glorious-avatar {
4
- @apply overflow-hidden;
5
- @each $key, $value in var.$sizes {
6
- &.#{'size-' + $key} {
7
- @apply #{"w-[" + ($value + 4 ) + "px] h-[" + ($value + 4 ) + "px]"};
8
- > img {
9
- @apply #{"w-[" + ($value + 4 ) + "px] h-[" + ($value + 4 ) + "px]"};
10
- }
11
- }
12
- }
13
- }
@@ -1,6 +0,0 @@
1
- .glorious-breadcrumb {
2
- @apply text-xs;
3
- }
4
- .glorious-breadcrumb .end-text {
5
- @apply font-bold;
6
- }
@@ -1,6 +0,0 @@
1
- .glorious-breadcrumb{
2
- @apply text-xs;
3
- .end-text{
4
- @apply font-bold
5
- }
6
- }
@@ -1,57 +0,0 @@
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
- }
@@ -1,19 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- .ql-editor {
2
- direction: rtl;
3
- text-align: right !important;
4
- }