nuxt-glorious 2.0.0-develop-1 → 2.0.0-develop-2

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 (71) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/G/Modal.vue +1 -1
  3. package/dist/runtime/scss/alert.css +33 -0
  4. package/dist/runtime/scss/avatar.css +57 -0
  5. package/dist/runtime/scss/breadcrumb.css +6 -0
  6. package/dist/runtime/scss/button.css +113 -0
  7. package/dist/runtime/scss/checkbox.css +94 -0
  8. package/dist/runtime/scss/drawer.css +56 -0
  9. package/dist/runtime/scss/file.css +134 -0
  10. package/dist/runtime/scss/glorious/alert.css +33 -0
  11. package/dist/runtime/scss/glorious/avatar.css +57 -0
  12. package/dist/runtime/scss/glorious/breadcrumb.css +6 -0
  13. package/dist/runtime/scss/glorious/button.css +113 -0
  14. package/dist/runtime/scss/glorious/checkbox.css +94 -0
  15. package/dist/runtime/scss/glorious/drawer.css +56 -0
  16. package/dist/runtime/scss/glorious/file.css +134 -0
  17. package/dist/runtime/scss/glorious/glorious.css +1334 -0
  18. package/dist/runtime/scss/glorious/input.css +184 -0
  19. package/dist/runtime/scss/glorious/loading.css +43 -0
  20. package/dist/runtime/scss/glorious/mixin.css +0 -0
  21. package/dist/runtime/scss/glorious/modal.css +69 -0
  22. package/dist/runtime/scss/glorious/paginate.css +32 -0
  23. package/dist/runtime/scss/glorious/radio.css +121 -0
  24. package/dist/{scss/rating.scss → runtime/scss/glorious/rating.css} +30 -29
  25. package/dist/runtime/scss/glorious/select.css +49 -0
  26. package/dist/runtime/scss/glorious/switch.css +61 -0
  27. package/dist/runtime/scss/glorious/tab.css +9 -0
  28. package/dist/runtime/scss/glorious/table.css +99 -0
  29. package/dist/runtime/scss/glorious/textarea.css +67 -0
  30. package/dist/runtime/scss/glorious/timeline.css +47 -0
  31. package/dist/runtime/scss/glorious/tooltip.css +9 -0
  32. package/dist/runtime/scss/glorious/variable.css +0 -0
  33. package/dist/runtime/scss/glorious.css +1334 -0
  34. package/dist/runtime/scss/input.css +184 -0
  35. package/dist/runtime/scss/loading.css +43 -0
  36. package/dist/runtime/scss/mixin.css +0 -0
  37. package/dist/runtime/scss/modal.css +69 -0
  38. package/dist/runtime/scss/paginate.css +32 -0
  39. package/dist/runtime/scss/radio.css +121 -0
  40. package/dist/runtime/scss/rating.css +30 -0
  41. package/dist/runtime/scss/select.css +49 -0
  42. package/dist/runtime/scss/switch.css +61 -0
  43. package/dist/runtime/scss/tab.css +9 -0
  44. package/dist/runtime/scss/table.css +99 -0
  45. package/dist/runtime/scss/textarea.css +67 -0
  46. package/dist/runtime/scss/timeline.css +47 -0
  47. package/dist/runtime/scss/tooltip.css +9 -0
  48. package/dist/runtime/scss/variable.css +0 -0
  49. package/package.json +5 -3
  50. package/dist/scss/alert.scss +0 -7
  51. package/dist/scss/avatar.scss +0 -13
  52. package/dist/scss/breadcrumb.scss +0 -6
  53. package/dist/scss/button.scss +0 -30
  54. package/dist/scss/checkbox.scss +0 -52
  55. package/dist/scss/drawer.scss +0 -64
  56. package/dist/scss/file.scss +0 -19
  57. package/dist/scss/glorious.scss +0 -26
  58. package/dist/scss/input.scss +0 -93
  59. package/dist/scss/loading.scss +0 -92
  60. package/dist/scss/mixin.scss +0 -40
  61. package/dist/scss/modal.scss +0 -76
  62. package/dist/scss/paginate.scss +0 -28
  63. package/dist/scss/radio.scss +0 -59
  64. package/dist/scss/select.scss +0 -44
  65. package/dist/scss/switch.scss +0 -74
  66. package/dist/scss/tab.scss +0 -11
  67. package/dist/scss/table.scss +0 -41
  68. package/dist/scss/textarea.scss +0 -47
  69. package/dist/scss/timeline.scss +0 -40
  70. package/dist/scss/tooltip.scss +0 -14
  71. package/dist/scss/variable.scss +0 -19
@@ -1,28 +0,0 @@
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,59 +0,0 @@
1
- @use 'variable.scss' as var;
2
-
3
- .glorious-radio {
4
- @apply block relative cursor-pointer;
5
-
6
- > input {
7
- @apply hidden;
8
-
9
- &:checked ~ div {
10
- @apply border-none;
11
-
12
- &:after {
13
- content: '';
14
- @apply block w-1 h-1 bg-white rounded-full;
15
- }
16
- }
17
-
18
- &:disabled ~ div {
19
- @apply cursor-not-allowed;
20
- }
21
- }
22
- > div:last-child {
23
- @apply border border-gray-500 rounded-full bg-white left-0 top-0 absolute hover:shadow-lg;
24
- > div:first-child {
25
- @apply hidden;
26
- }
27
-
28
- &:after {
29
- @apply absolute hidden right-0 top-0 left-0 bottom-0 m-auto w-10 h-10 bg-white rounded-full;
30
- }
31
- }
32
-
33
- @each $color in var.$colors {
34
- &.#{'' + $color} {
35
- > input {
36
- &:checked ~ div {
37
- @apply #{'bg-'+$color+'-500'};
38
- }
39
- }
40
- }
41
- }
42
-
43
- @each $key, $value in var.$sizes {
44
- &.size-#{$key} {
45
- @apply w-[#{($value - 14)}px] h-[#{($value - 14)}px];
46
- > div:last-child {
47
- @apply w-[#{($value - 14)}px] h-[#{($value - 14)}px];
48
- }
49
-
50
- > input {
51
- &:checked ~ div {
52
- &:after {
53
- @apply w-[#{($value - 24)}px] h-[#{($value - 24)}px];
54
- }
55
- }
56
- }
57
- }
58
- }
59
- }
@@ -1,44 +0,0 @@
1
- @use 'variable.scss' as var;
2
-
3
- %select-size {
4
- &.xl {
5
- @apply py-[0.657rem];
6
- }
7
- &.lg {
8
- @apply py-[0.532rem];
9
- }
10
- &.md {
11
- @apply py-[0.407rem];
12
- }
13
- &.sm {
14
- @apply py-[0.282rem];
15
- }
16
- &.xsm {
17
- @apply py-[0.157rem];
18
- }
19
- }
20
-
21
- %focus {
22
- &:focus-visible {
23
- @apply outline-none ring-2;
24
- }
25
- }
26
-
27
- @each $color in var.$colors {
28
- .#{'color-' + $color} {
29
- @apply #{'ring-'+$color+'-500'};
30
- }
31
- }
32
-
33
- .glorious-select {
34
- @apply rounded-md ring-1 px-3 text-gray-500 text-sm h-max;
35
- @extend %select-size, %focus;
36
-
37
- &:disabled {
38
- @apply cursor-not-allowed;
39
- }
40
-
41
- &.validation-error {
42
- @apply ring-red-500 bg-red-50 ;
43
- }
44
- }
@@ -1,74 +0,0 @@
1
- @use 'variable.scss' as var;
2
-
3
- .switch {
4
- direction: ltr;
5
- --button-width: 3em;
6
- --button-height: 1.5em;
7
- --toggle-diameter: 1em;
8
- --button-toggle-offset: calc(
9
- (var(--button-height) - var(--toggle-diameter)) / 2
10
- );
11
- --toggle-shadow-offset: 10px;
12
- --toggle-wider: 3em;
13
-
14
- &-slider {
15
- @apply bg-gray-300;
16
- display: inline-block;
17
- width: var(--button-width);
18
- height: var(--button-height);
19
-
20
- border-radius: calc(var(--button-height) / 2);
21
- position: relative;
22
- transition: 0.3s all ease-in-out;
23
-
24
- &::after {
25
- content: '';
26
- display: inline-block;
27
- width: var(--toggle-diameter);
28
- height: var(--toggle-diameter);
29
- background-color: #fff;
30
- border-radius: calc(var(--toggle-diameter) / 2);
31
- position: absolute;
32
- top: var(--button-toggle-offset);
33
- transform: translateX(var(--button-toggle-offset));
34
- box-shadow: var(--toggle-shadow-offset) 0
35
- calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
36
- transition: 0.3s all ease-in-out;
37
- }
38
- }
39
-
40
- @each $color in var.$colors {
41
- &#{'.color-' + $color} {
42
- input[type='checkbox']:checked + .switch-slider {
43
- background-color: #{theme('colors.' + $color + '.500')};
44
- }
45
- }
46
- }
47
-
48
- input[type='checkbox']:checked + .switch-slider::after {
49
- transform: translateX(
50
- calc(
51
- var(--button-width) - var(--toggle-diameter) -
52
- var(--button-toggle-offset)
53
- )
54
- );
55
- box-shadow: calc(var(--toggle-shadow-offset) * -1) 0
56
- calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
57
- }
58
-
59
- input[type='checkbox'] {
60
- display: none;
61
- }
62
-
63
- input[type='checkbox']:active + .switch-slider::after {
64
- width: var(--toggle-wider);
65
- }
66
-
67
- input[type='checkbox']:checked:active + .switch-slider::after {
68
- transform: translateX(
69
- calc(
70
- var(--button-width) - var(--toggle-wider) - var(--button-toggle-offset)
71
- )
72
- );
73
- }
74
- }
@@ -1,11 +0,0 @@
1
- .glorious-tab {
2
- @apply flex justify-between bg-green-100 rounded-lg gap-3 w-max max-w-full shadow-md;
3
-
4
- div > div > button {
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
-
7
- &.active {
8
- @apply font-bold text-white bg-green-700;
9
- }
10
- }
11
- }
@@ -1,41 +0,0 @@
1
- @use 'variable.scss' as var;
2
-
3
- .glorious-table {
4
- @apply overflow-x-auto;
5
- @each $color in var.$colors {
6
- &.#{'color-' + $color} {
7
- > table > thead {
8
- @apply rounded-t-md overflow-hidden;
9
- > tr {
10
- > th:first-child {
11
- @apply rounded-r-lg #{"bg-" + $color + "-400"};
12
- }
13
- > th {
14
- @apply #{"bg-" + $color + "-400"};
15
- }
16
- > th:last-child {
17
- @apply rounded-l-lg #{"bg-" + $color + "-400"};
18
- }
19
- }
20
- }
21
-
22
- > table > tbody {
23
- > tr {
24
- &:nth-child(even) {
25
- @apply #{"bg-" + $color + "-50"};
26
- }
27
- > td {
28
- @apply px-4 py-2 text-center;
29
- }
30
- }
31
- }
32
- }
33
- }
34
- > table {
35
- @apply w-full;
36
-
37
- > thead > tr > th {
38
- @apply px-4 py-2 text-center;
39
- }
40
- }
41
- }
@@ -1,47 +0,0 @@
1
- @use 'mixin.scss' as mixin;
2
- @use 'variable.scss' as var;
3
-
4
- %textarea-size {
5
- &.xl {
6
- @apply py-2.5;
7
- }
8
- &.lg {
9
- @apply py-2;
10
- }
11
- &.md {
12
- @apply py-1.5;
13
- }
14
- &.sm {
15
- @apply py-1;
16
- }
17
- &.xsm {
18
- @apply py-0.5;
19
- }
20
- }
21
-
22
- @each $color in var.$colors {
23
- .#{'glorious-textarea-' + $color} {
24
- @apply #{"ring-" + $color + "-500"};
25
- @apply rounded-md ring-1 px-3;
26
- &:focus-visible {
27
- @apply outline-none ring-2;
28
- }
29
- &:disabled {
30
- @apply bg-green-300 cursor-not-allowed;
31
- }
32
- }
33
- }
34
-
35
- .glorious-textarea {
36
- @apply relative w-full flex flex-col;
37
- > textarea {
38
- @apply w-full p-2;
39
-
40
- &.validation-error{
41
- @apply ring-red-500 bg-red-50
42
- }
43
- }
44
- > textarea::placeholder {
45
- @apply text-[14px];
46
- }
47
- }
@@ -1,40 +0,0 @@
1
- @use 'variable.scss' as var;
2
-
3
- .glorious-timeline {
4
- &-items {
5
- @apply relative;
6
-
7
- div {
8
- @apply relative;
9
-
10
- &::before {
11
- content: '';
12
- @apply absolute w-[2px] right-[-15px];
13
- &:not(:last-child) {
14
- @apply h-[calc(100%+20px)];
15
- }
16
- }
17
- }
18
-
19
- &-count {
20
- @apply absolute w-5 h-5 top-0 right-[-24px] rounded-full ;
21
- @apply text-white flex justify-center items-center font-medium;
22
- }
23
-
24
- @each $color in var.$colors {
25
- &.#{'color-' + $color} > div {
26
- &::before {
27
- @apply #{"bg-" + $color + "-500"};
28
- }
29
- }
30
- }
31
-
32
- @each $color in var.$colors {
33
- &.#{'color-' + $color} {
34
- .glorious-timeline-items-count {
35
- @apply #{"bg-" + $color + "-500"};
36
- }
37
- }
38
- }
39
- }
40
- }
@@ -1,14 +0,0 @@
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
- }
@@ -1,19 +0,0 @@
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
- );