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,59 @@
|
|
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
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
.rating {
|
3
|
+
display: inline-block;
|
4
|
+
}
|
5
|
+
|
6
|
+
.rating input {
|
7
|
+
display: none;
|
8
|
+
}
|
9
|
+
|
10
|
+
.rating label {
|
11
|
+
float: right;
|
12
|
+
cursor: pointer;
|
13
|
+
transition: color 0.3s;
|
14
|
+
}
|
15
|
+
|
16
|
+
.rating label:before {
|
17
|
+
content: "★";
|
18
|
+
font-size: 30px;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rating input:checked ~ label,
|
22
|
+
.rating label:hover,
|
23
|
+
.rating label:hover ~ label {
|
24
|
+
color: #ffd700;
|
25
|
+
transition: color 0.3s;
|
26
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.rating {
|
2
|
+
display: inline-block;
|
3
|
+
}
|
4
|
+
|
5
|
+
.rating input {
|
6
|
+
display: none;
|
7
|
+
}
|
8
|
+
|
9
|
+
.rating label {
|
10
|
+
float: right;
|
11
|
+
cursor: pointer;
|
12
|
+
transition: color 0.3s;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rating label:before {
|
16
|
+
content: '\2605';
|
17
|
+
font-size: 30px;
|
18
|
+
}
|
19
|
+
|
20
|
+
.rating input:checked ~ label,
|
21
|
+
.rating label:hover,
|
22
|
+
.rating label:hover ~ label {
|
23
|
+
color: #ffd700;
|
24
|
+
transition: color 0.3s;
|
25
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
.xl.glorious-select {
|
2
|
+
@apply py-[0.657rem];
|
3
|
+
}
|
4
|
+
.lg.glorious-select {
|
5
|
+
@apply py-[0.532rem];
|
6
|
+
}
|
7
|
+
.md.glorious-select {
|
8
|
+
@apply py-[0.407rem];
|
9
|
+
}
|
10
|
+
.sm.glorious-select {
|
11
|
+
@apply py-[0.282rem];
|
12
|
+
}
|
13
|
+
.xsm.glorious-select {
|
14
|
+
@apply py-[0.157rem];
|
15
|
+
}
|
16
|
+
|
17
|
+
.glorious-select:focus-visible {
|
18
|
+
@apply outline-none ring-2;
|
19
|
+
}
|
20
|
+
|
21
|
+
.color-orange {
|
22
|
+
@apply ring-orange-500;
|
23
|
+
}
|
24
|
+
|
25
|
+
.color-blue {
|
26
|
+
@apply ring-blue-500;
|
27
|
+
}
|
28
|
+
|
29
|
+
.color-gray {
|
30
|
+
@apply ring-gray-500;
|
31
|
+
}
|
32
|
+
|
33
|
+
.color-red {
|
34
|
+
@apply ring-red-500;
|
35
|
+
}
|
36
|
+
|
37
|
+
.color-green {
|
38
|
+
@apply ring-green-500;
|
39
|
+
}
|
40
|
+
|
41
|
+
.glorious-select {
|
42
|
+
@apply rounded-md ring-1 px-3 text-gray-500 text-sm;
|
43
|
+
}
|
44
|
+
.glorious-select:disabled {
|
45
|
+
@apply cursor-not-allowed;
|
46
|
+
}
|
@@ -0,0 +1,40 @@
|
|
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;
|
35
|
+
@extend %select-size, %focus;
|
36
|
+
|
37
|
+
&:disabled {
|
38
|
+
@apply cursor-not-allowed;
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
.switch {
|
2
|
+
direction: ltr;
|
3
|
+
--button-width: 3em;
|
4
|
+
--button-height: 1.5em;
|
5
|
+
--toggle-diameter: 1em;
|
6
|
+
--button-toggle-offset: calc(
|
7
|
+
(var(--button-height) - var(--toggle-diameter)) / 2
|
8
|
+
);
|
9
|
+
--toggle-shadow-offset: 10px;
|
10
|
+
--toggle-wider: 3em;
|
11
|
+
}
|
12
|
+
.switch-slider {
|
13
|
+
@apply bg-gray-300;
|
14
|
+
display: inline-block;
|
15
|
+
width: var(--button-width);
|
16
|
+
height: var(--button-height);
|
17
|
+
border-radius: calc(var(--button-height) / 2);
|
18
|
+
position: relative;
|
19
|
+
transition: 0.3s all ease-in-out;
|
20
|
+
}
|
21
|
+
.switch-slider::after {
|
22
|
+
content: "";
|
23
|
+
display: inline-block;
|
24
|
+
width: var(--toggle-diameter);
|
25
|
+
height: var(--toggle-diameter);
|
26
|
+
background-color: #fff;
|
27
|
+
border-radius: calc(var(--toggle-diameter) / 2);
|
28
|
+
position: absolute;
|
29
|
+
top: var(--button-toggle-offset);
|
30
|
+
transform: translateX(var(--button-toggle-offset));
|
31
|
+
box-shadow: var(--toggle-shadow-offset) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
|
32
|
+
transition: 0.3s all ease-in-out;
|
33
|
+
}
|
34
|
+
.switch.color-orange input[type=checkbox]:checked + .switch-slider {
|
35
|
+
background-color: theme("colors.orange.500");
|
36
|
+
}
|
37
|
+
.switch.color-blue input[type=checkbox]:checked + .switch-slider {
|
38
|
+
background-color: theme("colors.blue.500");
|
39
|
+
}
|
40
|
+
.switch.color-gray input[type=checkbox]:checked + .switch-slider {
|
41
|
+
background-color: theme("colors.gray.500");
|
42
|
+
}
|
43
|
+
.switch.color-red input[type=checkbox]:checked + .switch-slider {
|
44
|
+
background-color: theme("colors.red.500");
|
45
|
+
}
|
46
|
+
.switch.color-green input[type=checkbox]:checked + .switch-slider {
|
47
|
+
background-color: theme("colors.green.500");
|
48
|
+
}
|
49
|
+
.switch input[type=checkbox]:checked + .switch-slider::after {
|
50
|
+
transform: translateX(calc(var(--button-width) - var(--toggle-diameter) - var(--button-toggle-offset)));
|
51
|
+
box-shadow: calc(var(--toggle-shadow-offset) * -1) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
|
52
|
+
}
|
53
|
+
.switch input[type=checkbox] {
|
54
|
+
display: none;
|
55
|
+
}
|
56
|
+
.switch input[type=checkbox]:active + .switch-slider::after {
|
57
|
+
width: var(--toggle-wider);
|
58
|
+
}
|
59
|
+
.switch input[type=checkbox]:checked:active + .switch-slider::after {
|
60
|
+
transform: translateX(calc(var(--button-width) - var(--toggle-wider) - var(--button-toggle-offset)));
|
61
|
+
}
|
@@ -0,0 +1,74 @@
|
|
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,9 +1,9 @@
|
|
1
1
|
.glorious-tab {
|
2
|
-
@apply flex justify-between bg-green-100
|
2
|
+
@apply flex justify-between bg-green-100 rounded-lg gap-3 w-max max-w-full shadow-md;
|
3
3
|
}
|
4
|
-
.glorious-tab > div > button {
|
4
|
+
.glorious-tab div > div > button {
|
5
5
|
@apply text-gray-700 text-[14px] hover:bg-green-200 hover:text-gray-800 cursor-pointer px-2 py-1 rounded-lg;
|
6
6
|
}
|
7
|
-
.glorious-tab > div > button.active {
|
7
|
+
.glorious-tab div > div > button.active {
|
8
8
|
@apply font-bold text-white bg-green-700;
|
9
9
|
}
|
@@ -0,0 +1,11 @@
|
|
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-[14px] hover:bg-green-200 hover:text-gray-800 cursor-pointer px-2 py-1 rounded-lg;
|
6
|
+
|
7
|
+
&.active {
|
8
|
+
@apply font-bold text-white bg-green-700;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
.glorious-table {
|
2
|
+
@apply overflow-x-auto;
|
3
|
+
}
|
4
|
+
.glorious-table.color-orange > table > thead {
|
5
|
+
@apply rounded-t-md overflow-hidden;
|
6
|
+
}
|
7
|
+
.glorious-table.color-orange > table > thead > tr > th:first-child {
|
8
|
+
@apply rounded-r-lg bg-orange-400;
|
9
|
+
}
|
10
|
+
.glorious-table.color-orange > table > thead > tr > th {
|
11
|
+
@apply bg-orange-400;
|
12
|
+
}
|
13
|
+
.glorious-table.color-orange > table > thead > tr > th:last-child {
|
14
|
+
@apply rounded-l-lg bg-orange-400;
|
15
|
+
}
|
16
|
+
.glorious-table.color-orange > table > tbody > tr:nth-child(even) {
|
17
|
+
@apply bg-orange-50;
|
18
|
+
}
|
19
|
+
.glorious-table.color-orange > table > tbody > tr > td {
|
20
|
+
@apply px-4 py-2 text-center;
|
21
|
+
}
|
22
|
+
.glorious-table.color-blue > table > thead {
|
23
|
+
@apply rounded-t-md overflow-hidden;
|
24
|
+
}
|
25
|
+
.glorious-table.color-blue > table > thead > tr > th:first-child {
|
26
|
+
@apply rounded-r-lg bg-blue-400;
|
27
|
+
}
|
28
|
+
.glorious-table.color-blue > table > thead > tr > th {
|
29
|
+
@apply bg-blue-400;
|
30
|
+
}
|
31
|
+
.glorious-table.color-blue > table > thead > tr > th:last-child {
|
32
|
+
@apply rounded-l-lg bg-blue-400;
|
33
|
+
}
|
34
|
+
.glorious-table.color-blue > table > tbody > tr:nth-child(even) {
|
35
|
+
@apply bg-blue-50;
|
36
|
+
}
|
37
|
+
.glorious-table.color-blue > table > tbody > tr > td {
|
38
|
+
@apply px-4 py-2 text-center;
|
39
|
+
}
|
40
|
+
.glorious-table.color-gray > table > thead {
|
41
|
+
@apply rounded-t-md overflow-hidden;
|
42
|
+
}
|
43
|
+
.glorious-table.color-gray > table > thead > tr > th:first-child {
|
44
|
+
@apply rounded-r-lg bg-gray-400;
|
45
|
+
}
|
46
|
+
.glorious-table.color-gray > table > thead > tr > th {
|
47
|
+
@apply bg-gray-400;
|
48
|
+
}
|
49
|
+
.glorious-table.color-gray > table > thead > tr > th:last-child {
|
50
|
+
@apply rounded-l-lg bg-gray-400;
|
51
|
+
}
|
52
|
+
.glorious-table.color-gray > table > tbody > tr:nth-child(even) {
|
53
|
+
@apply bg-gray-50;
|
54
|
+
}
|
55
|
+
.glorious-table.color-gray > table > tbody > tr > td {
|
56
|
+
@apply px-4 py-2 text-center;
|
57
|
+
}
|
58
|
+
.glorious-table.color-red > table > thead {
|
59
|
+
@apply rounded-t-md overflow-hidden;
|
60
|
+
}
|
61
|
+
.glorious-table.color-red > table > thead > tr > th:first-child {
|
62
|
+
@apply rounded-r-lg bg-red-400;
|
63
|
+
}
|
64
|
+
.glorious-table.color-red > table > thead > tr > th {
|
65
|
+
@apply bg-red-400;
|
66
|
+
}
|
67
|
+
.glorious-table.color-red > table > thead > tr > th:last-child {
|
68
|
+
@apply rounded-l-lg bg-red-400;
|
69
|
+
}
|
70
|
+
.glorious-table.color-red > table > tbody > tr:nth-child(even) {
|
71
|
+
@apply bg-red-50;
|
72
|
+
}
|
73
|
+
.glorious-table.color-red > table > tbody > tr > td {
|
74
|
+
@apply px-4 py-2 text-center;
|
75
|
+
}
|
76
|
+
.glorious-table.color-green > table > thead {
|
77
|
+
@apply rounded-t-md overflow-hidden;
|
78
|
+
}
|
79
|
+
.glorious-table.color-green > table > thead > tr > th:first-child {
|
80
|
+
@apply rounded-r-lg bg-green-400;
|
81
|
+
}
|
82
|
+
.glorious-table.color-green > table > thead > tr > th {
|
83
|
+
@apply bg-green-400;
|
84
|
+
}
|
85
|
+
.glorious-table.color-green > table > thead > tr > th:last-child {
|
86
|
+
@apply rounded-l-lg bg-green-400;
|
87
|
+
}
|
88
|
+
.glorious-table.color-green > table > tbody > tr:nth-child(even) {
|
89
|
+
@apply bg-green-50;
|
90
|
+
}
|
91
|
+
.glorious-table.color-green > table > tbody > tr > td {
|
92
|
+
@apply px-4 py-2 text-center;
|
93
|
+
}
|
94
|
+
.glorious-table > table {
|
95
|
+
@apply w-full;
|
96
|
+
}
|
97
|
+
.glorious-table > table > thead > tr > th {
|
98
|
+
@apply px-4 py-2 text-center;
|
99
|
+
}
|
@@ -0,0 +1,41 @@
|
|
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
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
.glorious-textarea-orange {
|
2
|
+
@apply ring-orange-500;
|
3
|
+
@apply rounded-md ring-1 px-3;
|
4
|
+
}
|
5
|
+
.glorious-textarea-orange:focus-visible {
|
6
|
+
@apply outline-none ring-2;
|
7
|
+
}
|
8
|
+
.glorious-textarea-orange:disabled {
|
9
|
+
@apply bg-green-300 cursor-not-allowed;
|
10
|
+
}
|
11
|
+
|
12
|
+
.glorious-textarea-blue {
|
13
|
+
@apply ring-blue-500;
|
14
|
+
@apply rounded-md ring-1 px-3;
|
15
|
+
}
|
16
|
+
.glorious-textarea-blue:focus-visible {
|
17
|
+
@apply outline-none ring-2;
|
18
|
+
}
|
19
|
+
.glorious-textarea-blue:disabled {
|
20
|
+
@apply bg-green-300 cursor-not-allowed;
|
21
|
+
}
|
22
|
+
|
23
|
+
.glorious-textarea-gray {
|
24
|
+
@apply ring-gray-500;
|
25
|
+
@apply rounded-md ring-1 px-3;
|
26
|
+
}
|
27
|
+
.glorious-textarea-gray:focus-visible {
|
28
|
+
@apply outline-none ring-2;
|
29
|
+
}
|
30
|
+
.glorious-textarea-gray:disabled {
|
31
|
+
@apply bg-green-300 cursor-not-allowed;
|
32
|
+
}
|
33
|
+
|
34
|
+
.glorious-textarea-red {
|
35
|
+
@apply ring-red-500;
|
36
|
+
@apply rounded-md ring-1 px-3;
|
37
|
+
}
|
38
|
+
.glorious-textarea-red:focus-visible {
|
39
|
+
@apply outline-none ring-2;
|
40
|
+
}
|
41
|
+
.glorious-textarea-red:disabled {
|
42
|
+
@apply bg-green-300 cursor-not-allowed;
|
43
|
+
}
|
44
|
+
|
45
|
+
.glorious-textarea-green {
|
46
|
+
@apply ring-green-500;
|
47
|
+
@apply rounded-md ring-1 px-3;
|
48
|
+
}
|
49
|
+
.glorious-textarea-green:focus-visible {
|
50
|
+
@apply outline-none ring-2;
|
51
|
+
}
|
52
|
+
.glorious-textarea-green:disabled {
|
53
|
+
@apply bg-green-300 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
|
+
}
|
@@ -0,0 +1,43 @@
|
|
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;
|
37
|
+
> textarea {
|
38
|
+
@apply w-full;
|
39
|
+
}
|
40
|
+
> textarea::placeholder {
|
41
|
+
@apply text-[14px];
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
.glorious-timeline-items {
|
2
|
+
@apply relative;
|
3
|
+
}
|
4
|
+
.glorious-timeline-items div {
|
5
|
+
@apply relative;
|
6
|
+
}
|
7
|
+
.glorious-timeline-items div::before {
|
8
|
+
content: "";
|
9
|
+
@apply absolute w-[2px] right-[-15px];
|
10
|
+
}
|
11
|
+
.glorious-timeline-items div::before:not(:last-child) {
|
12
|
+
@apply h-[calc(100%+20px)];
|
13
|
+
}
|
14
|
+
.glorious-timeline-items-count {
|
15
|
+
@apply absolute w-5 h-5 top-0 right-[-24px] rounded-full !important;
|
16
|
+
@apply text-white flex justify-center items-center font-medium;
|
17
|
+
}
|
18
|
+
.glorious-timeline-items.color-orange > div::before {
|
19
|
+
@apply bg-orange-500;
|
20
|
+
}
|
21
|
+
.glorious-timeline-items.color-blue > div::before {
|
22
|
+
@apply bg-blue-500;
|
23
|
+
}
|
24
|
+
.glorious-timeline-items.color-gray > div::before {
|
25
|
+
@apply bg-gray-500;
|
26
|
+
}
|
27
|
+
.glorious-timeline-items.color-red > div::before {
|
28
|
+
@apply bg-red-500;
|
29
|
+
}
|
30
|
+
.glorious-timeline-items.color-green > div::before {
|
31
|
+
@apply bg-green-500;
|
32
|
+
}
|
33
|
+
.glorious-timeline-items.color-orange .glorious-timeline-items-count {
|
34
|
+
@apply bg-orange-500;
|
35
|
+
}
|
36
|
+
.glorious-timeline-items.color-blue .glorious-timeline-items-count {
|
37
|
+
@apply bg-blue-500;
|
38
|
+
}
|
39
|
+
.glorious-timeline-items.color-gray .glorious-timeline-items-count {
|
40
|
+
@apply bg-gray-500;
|
41
|
+
}
|
42
|
+
.glorious-timeline-items.color-red .glorious-timeline-items-count {
|
43
|
+
@apply bg-red-500;
|
44
|
+
}
|
45
|
+
.glorious-timeline-items.color-green .glorious-timeline-items-count {
|
46
|
+
@apply bg-green-500;
|
47
|
+
}
|
@@ -0,0 +1,40 @@
|
|
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 !important;
|
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
|
+
}
|
File without changes
|