@spartan-ng/cli 1.3.4 → 1.4.0-beta.1
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/package.json +1 -1
- package/src/generators/ui/libs/questionnaire/files/index.ts.template +49 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-actions.ts.template +17 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-choice-description.ts.template +15 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-choice.ts.template +74 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-choices.ts.template +17 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-description.ts.template +22 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-error.ts.template +32 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-input.ts.template +25 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-item.ts.template +23 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-next.ts.template +31 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-previous.ts.template +31 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-progress.ts.template +42 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-skip.ts.template +31 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-submit.ts.template +31 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire-title.ts.template +17 -0
- package/src/generators/ui/libs/questionnaire/files/lib/hlm-questionnaire.ts.template +23 -0
- package/src/generators/ui/libs/questionnaire/generator.d.ts +3 -0
- package/src/generators/ui/libs/questionnaire/generator.js +9 -0
- package/src/generators/ui/libs/questionnaire/generator.js.map +1 -0
- package/src/generators/ui/primitive-deps.js +1 -0
- package/src/generators/ui/primitive-deps.js.map +1 -1
- package/src/generators/ui/primitives.d.ts +1 -1
- package/src/generators/ui/style-luma.css +65 -0
- package/src/generators/ui/style-lyra.css +65 -0
- package/src/generators/ui/style-maia.css +65 -0
- package/src/generators/ui/style-mira.css +65 -0
- package/src/generators/ui/style-nova.css +65 -0
- package/src/generators/ui/style-vega.css +65 -0
- package/src/generators/ui/supported-ui-libraries.json +50 -41
|
@@ -959,6 +959,71 @@
|
|
|
959
959
|
@apply text-muted-foreground ms-auto text-xs tabular-nums;
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
+
/* MARK: Questionnaire */
|
|
963
|
+
.spartan-questionnaire {
|
|
964
|
+
@apply gap-4;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.spartan-questionnaire-progress {
|
|
968
|
+
@apply text-xs;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.spartan-questionnaire-item {
|
|
972
|
+
@apply gap-4;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.spartan-questionnaire-title {
|
|
976
|
+
@apply text-sm font-medium [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.spartan-questionnaire-description {
|
|
980
|
+
@apply text-xs/relaxed;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.spartan-questionnaire-choices {
|
|
984
|
+
@apply gap-2;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.spartan-questionnaire-choice {
|
|
988
|
+
@apply border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive data-checked:border-foreground/30 data-checked:bg-muted gap-2.5 rounded-none border bg-transparent px-3 py-2.5 text-xs transition-colors has-[>input:focus-visible]:ring-1 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.spartan-questionnaire-choice-indicator {
|
|
992
|
+
@apply border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-none border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.spartan-questionnaire-choice-indicator-dot {
|
|
996
|
+
@apply bg-primary-foreground size-2 rounded-full;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.spartan-questionnaire-choice-indicator-check {
|
|
1000
|
+
@apply text-[length:--spacing(3.5)];
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.spartan-questionnaire-choice-content {
|
|
1004
|
+
@apply gap-0.5;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
.spartan-questionnaire-choice-description {
|
|
1008
|
+
@apply text-muted-foreground;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
.spartan-questionnaire-shortcut {
|
|
1012
|
+
@apply border-input bg-background text-muted-foreground pointer-events-none ms-auto inline-flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-none border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
.spartan-questionnaire-input {
|
|
1016
|
+
@apply dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-none border bg-transparent px-2.5 py-1 text-xs focus-visible:ring-1 aria-invalid:ring-1 md:text-xs;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
.spartan-questionnaire-error {
|
|
1020
|
+
@apply mt-2 text-xs;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.spartan-questionnaire-actions {
|
|
1024
|
+
@apply gap-1.5 sm:min-h-8;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
962
1027
|
/* MARK: Radio Group */
|
|
963
1028
|
.spartan-radio-group {
|
|
964
1029
|
@apply grid gap-2;
|
|
@@ -981,6 +981,71 @@
|
|
|
981
981
|
@apply text-muted-foreground ms-auto text-sm tabular-nums;
|
|
982
982
|
}
|
|
983
983
|
|
|
984
|
+
/* MARK: Questionnaire */
|
|
985
|
+
.spartan-questionnaire {
|
|
986
|
+
@apply gap-6;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.spartan-questionnaire-progress {
|
|
990
|
+
@apply text-xs;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
.spartan-questionnaire-item {
|
|
994
|
+
@apply gap-5;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.spartan-questionnaire-title {
|
|
998
|
+
@apply text-base font-semibold [&:not(:has(~[data-slot=questionnaire-description]))]:mb-5;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
.spartan-questionnaire-description {
|
|
1002
|
+
@apply text-sm;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.spartan-questionnaire-choices {
|
|
1006
|
+
@apply gap-3;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.spartan-questionnaire-choice {
|
|
1010
|
+
@apply border-input bg-input/20 hover:bg-input/40 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive data-checked:border-primary/40 data-checked:bg-primary/10 gap-3 rounded-4xl border px-4 py-3.5 text-sm transition-colors has-[>input:focus-visible]:ring-[3px] data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.spartan-questionnaire-choice-indicator {
|
|
1014
|
+
@apply border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[6px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.spartan-questionnaire-choice-indicator-dot {
|
|
1018
|
+
@apply bg-primary-foreground size-2 rounded-full;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.spartan-questionnaire-choice-indicator-check {
|
|
1022
|
+
@apply text-[length:--spacing(3.5)];
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.spartan-questionnaire-choice-content {
|
|
1026
|
+
@apply gap-1;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.spartan-questionnaire-choice-description {
|
|
1030
|
+
@apply text-muted-foreground;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.spartan-questionnaire-shortcut {
|
|
1034
|
+
@apply border-input bg-background/80 text-muted-foreground pointer-events-none ms-auto inline-flex size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-full border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.spartan-questionnaire-input {
|
|
1038
|
+
@apply bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-4xl border px-3 py-1 text-base focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.spartan-questionnaire-error {
|
|
1042
|
+
@apply mt-2 text-sm;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.spartan-questionnaire-actions {
|
|
1046
|
+
@apply gap-2 sm:min-h-9;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
984
1049
|
/* MARK: Radio Group */
|
|
985
1050
|
.spartan-radio-group {
|
|
986
1051
|
@apply grid gap-3;
|
|
@@ -981,6 +981,71 @@
|
|
|
981
981
|
@apply text-muted-foreground ms-auto text-xs/relaxed tabular-nums;
|
|
982
982
|
}
|
|
983
983
|
|
|
984
|
+
/* MARK: Questionnaire */
|
|
985
|
+
.spartan-questionnaire {
|
|
986
|
+
@apply gap-4;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.spartan-questionnaire-progress {
|
|
990
|
+
@apply text-[0.625rem];
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
.spartan-questionnaire-item {
|
|
994
|
+
@apply gap-3;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.spartan-questionnaire-title {
|
|
998
|
+
@apply text-sm font-semibold [&:not(:has(~[data-slot=questionnaire-description]))]:mb-3;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
.spartan-questionnaire-description {
|
|
1002
|
+
@apply text-xs/relaxed;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.spartan-questionnaire-choices {
|
|
1006
|
+
@apply gap-1.5;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.spartan-questionnaire-choice {
|
|
1010
|
+
@apply border-input bg-input/20 hover:bg-input/40 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/30 data-invalid:border-destructive data-checked:border-primary/40 data-checked:bg-primary/10 gap-2.5 rounded-xl border px-3 py-2.5 text-xs/relaxed transition-colors has-[>input:focus-visible]:ring-2 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.spartan-questionnaire-choice-indicator {
|
|
1014
|
+
@apply border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.spartan-questionnaire-choice-indicator-dot {
|
|
1018
|
+
@apply bg-primary-foreground size-2 rounded-full;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.spartan-questionnaire-choice-indicator-check {
|
|
1022
|
+
@apply text-[length:--spacing(3.5)];
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.spartan-questionnaire-choice-content {
|
|
1026
|
+
@apply gap-0.5;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.spartan-questionnaire-choice-description {
|
|
1030
|
+
@apply text-muted-foreground;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.spartan-questionnaire-shortcut {
|
|
1034
|
+
@apply border-input bg-background/80 text-muted-foreground pointer-events-none ms-auto inline-flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-sm border font-mono text-[0.5625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.spartan-questionnaire-input {
|
|
1038
|
+
@apply bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm focus-visible:ring-2 aria-invalid:ring-2 md:text-xs/relaxed;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.spartan-questionnaire-error {
|
|
1042
|
+
@apply mt-2 text-xs/relaxed;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.spartan-questionnaire-actions {
|
|
1046
|
+
@apply gap-1.5 sm:min-h-7;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
984
1049
|
/* MARK: Radio Group */
|
|
985
1050
|
.spartan-radio-group {
|
|
986
1051
|
@apply grid gap-3;
|
|
@@ -1011,6 +1011,71 @@
|
|
|
1011
1011
|
@apply text-muted-foreground ms-auto text-sm tabular-nums;
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
|
+
/* MARK: Questionnaire */
|
|
1015
|
+
.spartan-questionnaire {
|
|
1016
|
+
@apply gap-4;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
.spartan-questionnaire-progress {
|
|
1020
|
+
@apply text-xs;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.spartan-questionnaire-item {
|
|
1024
|
+
@apply gap-4;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.spartan-questionnaire-title {
|
|
1028
|
+
@apply text-base leading-snug font-medium [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.spartan-questionnaire-description {
|
|
1032
|
+
@apply text-sm;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
.spartan-questionnaire-choices {
|
|
1036
|
+
@apply gap-2;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
.spartan-questionnaire-choice {
|
|
1040
|
+
@apply border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-sm transition-colors has-[>input:focus-visible]:ring-3 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
.spartan-questionnaire-choice-indicator {
|
|
1044
|
+
@apply border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
.spartan-questionnaire-choice-indicator-dot {
|
|
1048
|
+
@apply bg-primary-foreground size-2 rounded-full;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
.spartan-questionnaire-choice-indicator-check {
|
|
1052
|
+
@apply text-[length:--spacing(3.5)];
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
.spartan-questionnaire-choice-content {
|
|
1056
|
+
@apply gap-0.5;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.spartan-questionnaire-choice-description {
|
|
1060
|
+
@apply text-muted-foreground;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.spartan-questionnaire-shortcut {
|
|
1064
|
+
@apply border-input bg-background text-muted-foreground pointer-events-none ms-auto inline-flex size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.spartan-questionnaire-input {
|
|
1068
|
+
@apply dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base focus-visible:ring-3 aria-invalid:ring-3 md:text-sm;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
.spartan-questionnaire-error {
|
|
1072
|
+
@apply mt-2 text-sm;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.spartan-questionnaire-actions {
|
|
1076
|
+
@apply gap-2 sm:min-h-8;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1014
1079
|
/* MARK: Radio Group */
|
|
1015
1080
|
.spartan-radio-group {
|
|
1016
1081
|
@apply grid gap-2;
|
|
@@ -1111,6 +1111,71 @@
|
|
|
1111
1111
|
@apply text-muted-foreground ms-auto text-sm tabular-nums;
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
|
+
/* MARK: Questionnaire */
|
|
1115
|
+
.spartan-questionnaire {
|
|
1116
|
+
@apply gap-6;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.spartan-questionnaire-progress {
|
|
1120
|
+
@apply text-xs;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
.spartan-questionnaire-item {
|
|
1124
|
+
@apply gap-5;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.spartan-questionnaire-title {
|
|
1128
|
+
@apply text-base font-semibold [&:not(:has(~[data-slot=questionnaire-description]))]:mb-5;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.spartan-questionnaire-description {
|
|
1132
|
+
@apply text-sm;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.spartan-questionnaire-choices {
|
|
1136
|
+
@apply gap-3;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
.spartan-questionnaire-choice {
|
|
1140
|
+
@apply border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted gap-3 rounded-md border bg-transparent px-4 py-3.5 text-sm shadow-xs transition-colors has-[>input:focus-visible]:ring-3 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
.spartan-questionnaire-choice-indicator {
|
|
1144
|
+
@apply border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.spartan-questionnaire-choice-indicator-dot {
|
|
1148
|
+
@apply bg-primary-foreground size-2 rounded-full;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.spartan-questionnaire-choice-indicator-check {
|
|
1152
|
+
@apply text-[length:--spacing(3.5)];
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.spartan-questionnaire-choice-content {
|
|
1156
|
+
@apply gap-1;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
.spartan-questionnaire-choice-description {
|
|
1160
|
+
@apply text-muted-foreground;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
.spartan-questionnaire-shortcut {
|
|
1164
|
+
@apply border-input bg-background text-muted-foreground pointer-events-none ms-auto inline-flex size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border font-mono text-[0.625rem] leading-none font-medium shadow-xs group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.spartan-questionnaire-input {
|
|
1168
|
+
@apply dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-md border bg-transparent px-2.5 py-1 text-base shadow-xs focus-visible:ring-3 aria-invalid:ring-3 md:text-sm;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.spartan-questionnaire-error {
|
|
1172
|
+
@apply text-sm;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
.spartan-questionnaire-actions {
|
|
1176
|
+
@apply gap-2 sm:min-h-9;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1114
1179
|
/* MARK: Radio Group */
|
|
1115
1180
|
.spartan-radio-group {
|
|
1116
1181
|
@apply grid gap-3;
|