srcdev-nuxt-forms 5.1.1 → 6.0.0
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/README.md +16 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_form-fieldset.css +38 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-button.css +66 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-core.css +66 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-options-button.css +76 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-error.css +54 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-label.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-select.css +140 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-text.css +190 -0
- package/app/assets/styles/extends-layer/srcdev-forms/components/_input-textarea.css +96 -0
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/components/index.css +3 -4
- package/app/assets/styles/extends-layer/srcdev-forms/setup/_generic.css +21 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/index.css +4 -0
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/themes/_error.css +12 -12
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/themes/_ghost.css +12 -12
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/themes/_input-action-underlined.css +7 -7
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/themes/_input-action.css +7 -7
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/themes/_primary.css +12 -12
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/themes/_secondary.css +12 -12
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/themes/_success.css +12 -12
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/themes/_tertiary.css +12 -12
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/themes/_warning.css +12 -12
- package/app/assets/styles/extends-layer/srcdev-forms/setup/variables/_a11y.css +7 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/variables/index.css +1 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/variants/_normal.css +48 -0
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/variants/_underlined.css +10 -10
- package/app/assets/styles/extends-layer/srcdev-forms/setup/variants/index.css +3 -0
- package/app/assets/styles/extends-layer/srcdev-forms/setup/variants/sizes/_default.css +13 -0
- package/{assets/styles/extends-layer/srcdev-forms/setup → app/assets/styles/extends-layer/srcdev-forms/setup/variants}/sizes/index.css +2 -0
- package/app/assets/styles/setup/_head.css +36 -0
- package/app/assets/styles/setup/index.css +5 -0
- package/{assets/styles/setup/variables → app/assets/styles/setup/theming}/colors/_blue.css +1 -1
- package/{assets/styles/setup/variables → app/assets/styles/setup/theming}/index.css +1 -0
- package/app/assets/styles/setup/theming/themes/_default.css +66 -0
- package/app/assets/styles/setup/theming/themes/_error.css +66 -0
- package/app/assets/styles/setup/theming/themes/_ghost.css +31 -0
- package/app/assets/styles/setup/theming/themes/_info.css +31 -0
- package/app/assets/styles/setup/theming/themes/_primary.css +41 -0
- package/app/assets/styles/setup/theming/themes/_secondary.css +66 -0
- package/app/assets/styles/setup/theming/themes/_success.css +66 -0
- package/app/assets/styles/setup/theming/themes/_tertiary.css +31 -0
- package/app/assets/styles/setup/theming/themes/_warning.css +68 -0
- package/app/assets/styles/setup/theming/themes/index.css +9 -0
- package/app/assets/styles/setup/typography/index.css +2 -0
- package/app/assets/styles/setup/typography/utility-classes/_generic-font-classes.css +217 -0
- package/app/assets/styles/setup/typography/utility-classes/_generic-font-variation-settings.css +29 -0
- package/app/assets/styles/setup/typography/utility-classes/_generic-font-weights.css +39 -0
- package/app/assets/styles/setup/typography/vars/_colors.css +14 -0
- package/{assets → app/assets}/styles/setup/typography/vars/_reponsive-font-sizes.css +2 -0
- package/{assets → app/assets}/styles/setup/typography/vars/index.css +1 -0
- package/app/assets/styles/setup/utility-classes/_fluid-spacing.css +13 -0
- package/app/assets/styles/setup/utility-classes/animations/_auto-rotate.css +13 -0
- package/app/assets/styles/setup/utility-classes/animations/_entry-exit-blur.css +16 -0
- package/app/assets/styles/setup/utility-classes/animations/_entry-slide-in.css +15 -0
- package/app/assets/styles/setup/utility-classes/animations/_entry-zoom-reveal.css +15 -0
- package/app/assets/styles/setup/utility-classes/animations/index.css +4 -0
- package/app/assets/styles/setup/utility-classes/index.css +2 -0
- package/app/assets/styles/setup/variables/index.css +1 -0
- package/{components → app/components}/forms/form-errors/InputError.vue +32 -49
- package/{components → app/components}/forms/form-fieldset/FormFieldset.vue +9 -9
- package/{components → app/components}/forms/input-button/InputButtonCore.vue +20 -18
- package/{components → app/components}/forms/input-button/variants/InputButtonConfirm.vue +1 -1
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +204 -0
- package/{components → app/components}/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +29 -17
- package/{components → app/components}/forms/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +1 -0
- package/{components → app/components}/forms/input-label/InputLabel.vue +26 -7
- package/{components → app/components}/forms/input-number/InputNumberCore.vue +7 -6
- package/{components → app/components}/forms/input-number/variants/InputNumberDefault.vue +5 -6
- package/{components → app/components}/forms/input-range/InputRangeCore.vue +1 -1
- package/{components → app/components}/forms/input-range/variants/InputRangeDefault.vue +5 -2
- package/{components → app/components}/forms/input-range-fancy/InputRangeFancyCore.vue +1 -1
- package/{components → app/components}/forms/input-range-fancy/InputRangeFancyWithLabel.vue +1 -1
- package/{components → app/components}/forms/input-select/InputSelectCore.vue +23 -21
- package/{components → app/components}/forms/input-select/variants/InputSelectWithLabel.vue +1 -1
- package/app/components/forms/input-text/InputTextCore.vue +341 -0
- package/{components → app/components}/forms/input-text/variants/InputPasswordWithLabel.vue +1 -1
- package/{components → app/components}/forms/input-text/variants/InputTextAsNumberWithLabel.vue +4 -2
- package/app/components/forms/input-text/variants/InputTextWithLabel.vue +158 -0
- package/{components → app/components}/forms/input-textarea/InputTextareaCore.vue +10 -131
- package/app/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +125 -0
- package/{components → app/components}/forms/toggle-switch/ToggleSwitchCore.vue +1 -1
- package/{components → app/components}/forms/toggle-switch/ToggleSwitchCoreOld.vue +1 -1
- package/{components → app/components}/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +5 -2
- package/{components → app/components}/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +5 -2
- package/{components → app/components}/utils/colour-scheme-select/ColourSchemeSelect.vue +1 -1
- package/{components → app/components}/utils/colour-scheme-select/ColourSchemeSelectOld.vue +1 -1
- package/nuxt.config.ts +5 -2
- package/package.json +9 -11
- package/assets/styles/extends-layer/srcdev-forms/components/_form-core.css +0 -8
- package/assets/styles/extends-layer/srcdev-forms/components/_form-fieldset.css +0 -16
- package/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox-radio-options-button.css +0 -59
- package/assets/styles/extends-layer/srcdev-forms/components/_input-checkbox.css +0 -72
- package/assets/styles/extends-layer/srcdev-forms/components/_input-error.css +0 -55
- package/assets/styles/extends-layer/srcdev-forms/components/_input-label.css +0 -18
- package/assets/styles/extends-layer/srcdev-forms/components/_input-radio.css +0 -68
- package/assets/styles/extends-layer/srcdev-forms/components/_input-select.css +0 -18
- package/assets/styles/extends-layer/srcdev-forms/components/_input-text-as-number.css +0 -22
- package/assets/styles/extends-layer/srcdev-forms/components/_input-textarea.css +0 -5
- package/assets/styles/extends-layer/srcdev-forms/setup/_generic.css +0 -7
- package/assets/styles/extends-layer/srcdev-forms/setup/index.css +0 -4
- package/assets/styles/extends-layer/srcdev-forms/setup/sizes/_default.css +0 -12
- package/assets/styles/extends-layer/srcdev-forms/setup/variants/_normal.css +0 -48
- package/assets/styles/extends-layer/srcdev-forms/setup/variants/index.css +0 -2
- package/assets/styles/setup/_head.css +0 -5
- package/assets/styles/setup/index.css +0 -5
- package/assets/styles/setup/typography/index.css +0 -2
- package/assets/styles/setup/typography/utility-classes/_generic-font-classes.css +0 -192
- package/assets/styles/setup/typography/utility-classes/_generic-font-variation-settings.css +0 -29
- package/assets/styles/setup/typography/utility-classes/_generic-font-weights.css +0 -41
- package/assets/styles/setup/utility-classes/_margin-helpers.css +0 -334
- package/assets/styles/setup/utility-classes/_padding-helpers.css +0 -308
- package/assets/styles/setup/utility-classes/_page.css +0 -49
- package/assets/styles/setup/utility-classes/index.css +0 -3
- package/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +0 -218
- package/components/forms/input-text/InputTextCore.vue +0 -390
- package/components/forms/input-text/variants/InputTextWithLabel.vue +0 -300
- package/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +0 -269
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/index.css +0 -0
- package/{assets → app/assets}/styles/extends-layer/srcdev-forms/setup/themes/index.css +0 -0
- package/{assets/styles/extends-layer/srcdev-forms/setup → app/assets/styles/extends-layer/srcdev-forms/setup/variants}/sizes/_large.css +0 -0
- package/{assets/styles/extends-layer/srcdev-forms/setup → app/assets/styles/extends-layer/srcdev-forms/setup/variants}/sizes/_medium.css +0 -0
- package/{assets/styles/extends-layer/srcdev-forms/setup → app/assets/styles/extends-layer/srcdev-forms/setup/variants}/sizes/_small.css +0 -0
- package/{assets/styles/extends-layer/srcdev-forms/setup → app/assets/styles/extends-layer/srcdev-forms/setup/variants}/sizes/_x-small.css +0 -0
- package/{assets → app/assets}/styles/main.css +0 -0
- package/{assets → app/assets}/styles/setup/a11y/_utils.css +0 -0
- package/{assets → app/assets}/styles/setup/a11y/_variables.css +0 -0
- package/{assets → app/assets}/styles/setup/a11y/index.css +0 -0
- package/{assets/styles/setup/variables → app/assets/styles/setup/theming}/colors/_gray.css +0 -0
- package/{assets/styles/setup/variables → app/assets/styles/setup/theming}/colors/_green.css +0 -0
- package/{assets/styles/setup/variables → app/assets/styles/setup/theming}/colors/_orange.css +0 -0
- package/{assets/styles/setup/variables → app/assets/styles/setup/theming}/colors/_red.css +0 -0
- package/{assets/styles/setup/variables → app/assets/styles/setup/theming}/colors/_yellow.css +0 -0
- package/{assets/styles/setup/variables → app/assets/styles/setup/theming}/colors/index.css +3 -3
- package/{assets → app/assets}/styles/setup/typography/utility-classes/index.css +1 -1
- /package/{components → app/components}/forms/c12/prop-validators/index.ts +0 -0
- /package/{components → app/components}/forms/c12/utils.ts +0 -0
- /package/{components → app/components}/forms/form-errors/tests/InputError.spec.ts +0 -0
- /package/{components → app/components}/forms/input-button/variants/InputButtonSubmit.vue +0 -0
- /package/{components → app/components}/forms/input-checkbox/MultipleCheckboxes.vue +0 -0
- /package/{components → app/components}/forms/input-checkbox/SingleCheckbox.vue +0 -0
- /package/{components → app/components}/forms/input-checkbox/tests/MultipleCheckboxes.spec.ts +0 -0
- /package/{components → app/components}/forms/input-checkbox/tests/data/tags.json +0 -0
- /package/{components → app/components}/forms/input-radio/MultipleRadiobuttons.vue +0 -0
- /package/{components → app/components}/forms/input-radio/tests/MultipleRadioButtons.spec.ts +0 -0
- /package/{components → app/components}/forms/input-radio/tests/data/tags.json +0 -0
- /package/{components → app/components}/forms/ui/FormField.vue +0 -0
- /package/{components → app/components}/forms/ui/FormWrapper.vue +0 -0
- /package/{components → app/components}/utils/dark-mode-switcher/DarkModeSwitcher.vue +0 -0
- /package/{composables → app/composables}/useApiRequest.ts +0 -0
- /package/{composables → app/composables}/useColourScheme.ts +0 -0
- /package/{composables → app/composables}/useErrorMessages.ts +0 -0
- /package/{composables → app/composables}/useFormControl.ts +0 -0
- /package/{composables → app/composables}/useSleep.ts +0 -0
- /package/{composables → app/composables}/useStyleClassPassthrough.ts +0 -0
- /package/{composables → app/composables}/useZodValidation.ts +0 -0
- /package/{types → app/types}/types.forms.ts +0 -0
- /package/{types → app/types}/types.zodFormControl.ts +0 -0
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="input-textarea-with-label" :data-form-theme="formTheme" :class="[elementClasses, inputVariant, { dirty: isDirty }, { active: isActive }]">
|
|
3
|
-
<InputLabel :for="id" :id :theme :name :input-variant :field-has-error :style-class-passthrough="['input-textarea-label']">
|
|
4
|
-
<template #textLabel>{{ label }}</template>
|
|
5
|
-
</InputLabel>
|
|
6
|
-
|
|
7
|
-
<InputTextareaCore
|
|
8
|
-
v-model="modelValue"
|
|
9
|
-
v-model:isDirty="isDirty"
|
|
10
|
-
v-model:isActive="isActive"
|
|
11
|
-
:maxlength
|
|
12
|
-
:id
|
|
13
|
-
:name
|
|
14
|
-
:placeholder
|
|
15
|
-
:label
|
|
16
|
-
:fieldHasError
|
|
17
|
-
:required
|
|
18
|
-
:styleClassPassthrough
|
|
19
|
-
:theme
|
|
20
|
-
:size
|
|
21
|
-
:inputVariant
|
|
22
|
-
>
|
|
23
|
-
<template v-if="hasLeftSlot" #left>
|
|
24
|
-
<slot name="left"></slot>
|
|
25
|
-
</template>
|
|
26
|
-
<template v-if="hasRightSlot" #right>
|
|
27
|
-
<slot name="right"></slot>
|
|
28
|
-
</template>
|
|
29
|
-
</InputTextareaCore>
|
|
30
|
-
<InputError :errorMessage :showError="fieldHasError" :id :isDetached="false" :inputVariant />
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script setup lang="ts">
|
|
35
|
-
import propValidators from '../../c12/prop-validators';
|
|
36
|
-
const props = defineProps({
|
|
37
|
-
maxlength: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 255,
|
|
40
|
-
},
|
|
41
|
-
name: {
|
|
42
|
-
type: String,
|
|
43
|
-
required: true,
|
|
44
|
-
},
|
|
45
|
-
placeholder: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: '',
|
|
48
|
-
},
|
|
49
|
-
label: {
|
|
50
|
-
type: String,
|
|
51
|
-
required: true,
|
|
52
|
-
},
|
|
53
|
-
errorMessage: {
|
|
54
|
-
type: [Object, String],
|
|
55
|
-
required: true,
|
|
56
|
-
},
|
|
57
|
-
fieldHasError: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: false,
|
|
60
|
-
},
|
|
61
|
-
required: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: false,
|
|
64
|
-
},
|
|
65
|
-
styleClassPassthrough: {
|
|
66
|
-
type: Array as PropType<string[]>,
|
|
67
|
-
default: () => [],
|
|
68
|
-
},
|
|
69
|
-
theme: {
|
|
70
|
-
type: String as PropType<string>,
|
|
71
|
-
default: 'primary',
|
|
72
|
-
validator(value: string) {
|
|
73
|
-
return propValidators.theme.includes(value);
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
size: {
|
|
77
|
-
type: String as PropType<string>,
|
|
78
|
-
default: 'default',
|
|
79
|
-
validator(value: string) {
|
|
80
|
-
return propValidators.size.includes(value);
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
inputVariant: {
|
|
84
|
-
type: String as PropType<string>,
|
|
85
|
-
default: 'normal',
|
|
86
|
-
validator(value: string) {
|
|
87
|
-
return propValidators.inputVariant.includes(value);
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
const slots = useSlots();
|
|
93
|
-
const hasLeftSlot = computed(() => slots.left !== undefined);
|
|
94
|
-
const hasRightSlot = computed(() => slots.right !== undefined);
|
|
95
|
-
|
|
96
|
-
const id = useId();
|
|
97
|
-
const formTheme = computed(() => {
|
|
98
|
-
return props.fieldHasError ? 'error' : props.theme;
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
const modelValue = defineModel<string | number | readonly string[] | null | undefined>();
|
|
102
|
-
const isActive = ref<boolean>(false);
|
|
103
|
-
const isDirty = ref<boolean>(false);
|
|
104
|
-
|
|
105
|
-
const { elementClasses, updateElementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
|
|
106
|
-
|
|
107
|
-
const testDirty = () => {
|
|
108
|
-
const watchValue = modelValue.value ?? '';
|
|
109
|
-
|
|
110
|
-
if (!isDirty.value && typeof watchValue === 'string' && watchValue.length > 0) {
|
|
111
|
-
isDirty.value = true;
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
onMounted(() => {
|
|
116
|
-
testDirty();
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
watch(
|
|
120
|
-
() => modelValue.value,
|
|
121
|
-
() => {
|
|
122
|
-
testDirty();
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
</script>
|
|
126
|
-
|
|
127
|
-
<style lang="css">
|
|
128
|
-
.input-textarea-with-label-XXX {
|
|
129
|
-
--_input-textarea-with-label-margin-block-start: 0;
|
|
130
|
-
--_input-textarea-with-label-background-color: transparent;
|
|
131
|
-
|
|
132
|
-
--_input-textarea-wrapper-border: var(--form-element-border-width) solid var(--theme-form-input-border);
|
|
133
|
-
--_input-textarea-wrapper-border-radius: var(--form-input-border-radius);
|
|
134
|
-
--_input-textarea-wrapper-border-underlined: var(--form-element-border-width-underlined) solid var(--theme-form-input-border);
|
|
135
|
-
--_input-textarea-wrapper-outline: var(--form-element-outline-width) solid var(--theme-form-input-outline);
|
|
136
|
-
--_input-textarea-wrapper-box-shadow: var(--_focus-box-shadow);
|
|
137
|
-
--_input-textarea-wrapper-padding-block: 0;
|
|
138
|
-
|
|
139
|
-
--_focus-box-shadow: var(--box-shadow-off);
|
|
140
|
-
|
|
141
|
-
/* Label vars */
|
|
142
|
-
--_label-textarea-color: var(--theme-form-input-text-label-color-normal);
|
|
143
|
-
--_label-textarea-margin-block: 0.8rem;
|
|
144
|
-
--_label-textarea-size: var(--step-5);
|
|
145
|
-
--_label-textarea-weight: normal;
|
|
146
|
-
--_label-textarea-height: auto;
|
|
147
|
-
--_label-textarea-line-height: 1.5;
|
|
148
|
-
--_label-textarea-background-color: var(--_input-textarea-with-label-background-color);
|
|
149
|
-
|
|
150
|
-
&.underlined {
|
|
151
|
-
--_label-textarea-color: var(--theme-form-input-text-label-color-underlined);
|
|
152
|
-
--_label-offset: 1rem 0;
|
|
153
|
-
--_input-textarea-with-label-background-color: color-mix(in srgb, currentColor 5%, transparent);
|
|
154
|
-
|
|
155
|
-
--_input-textarea-wrapper-underlined-border-radius-top-left: 0;
|
|
156
|
-
--_input-textarea-wrapper-underlined-border-radius-top-right: 0;
|
|
157
|
-
--_input-textarea-wrapper-underlined-border-radius-bottom-left: 4px;
|
|
158
|
-
--_input-textarea-wrapper-underlined-border-radius-bottom-right: 4px;
|
|
159
|
-
|
|
160
|
-
--_label-textarea-background-color: transparent;
|
|
161
|
-
--_label-textarea-height: fit-content;
|
|
162
|
-
|
|
163
|
-
&:has(.input-textarea-wrapper.active),
|
|
164
|
-
&:has(.input-textarea-wrapper.dirty) {
|
|
165
|
-
--_label-offset: 0 -3.2rem;
|
|
166
|
-
--_label-textarea-weight: bolder;
|
|
167
|
-
--_label-textarea-size: var(--step-4);
|
|
168
|
-
/* line-height: 1.5; */
|
|
169
|
-
/* padding: 0.2rem 1.2rem; */
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&.outlined {
|
|
174
|
-
--_label-textarea-color: var(--theme-form-input-text-label-color-outlined);
|
|
175
|
-
|
|
176
|
-
--_label-offset: 1rem 0;
|
|
177
|
-
--_input-textarea-with-label-background-color: var(--theme-form-input-bg-normal);
|
|
178
|
-
|
|
179
|
-
--_input-textarea-wrapper-padding-block: 0.4em 0;
|
|
180
|
-
--_label-textarea-height: fit-content;
|
|
181
|
-
|
|
182
|
-
&:has(.input-textarea-wrapper.active),
|
|
183
|
-
&:has(.input-textarea-wrapper.dirty) {
|
|
184
|
-
--_label-offset: 1rem -2.8rem;
|
|
185
|
-
--_label-textarea-weight: normal;
|
|
186
|
-
/* --_label-textarea-size: var(--step-4); */
|
|
187
|
-
/* line-height: 1.5; */
|
|
188
|
-
/* padding: 0.2rem 1.2rem; */
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&:not(.normal) {
|
|
193
|
-
--_input-textarea-with-label-margin-block-start: 3em;
|
|
194
|
-
|
|
195
|
-
&:has(.input-textarea-wrapper.active),
|
|
196
|
-
&:has(.input-textarea-wrapper.dirty) {
|
|
197
|
-
/* --_label-offset: 1rem -2.8rem; */
|
|
198
|
-
/* font-size: var(--step-4); */
|
|
199
|
-
/* line-height: 1.5; */
|
|
200
|
-
/* padding: 0.2rem 1.2rem; */
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&:focus-within {
|
|
204
|
-
--_input-textarea-wrapper-box-shadow: var(--box-shadow-on);
|
|
205
|
-
--_input-textarea-wrapper-outline: var(--form-element-outline-width) solid hsl(from var(--theme-form-input-outline-focus) h s 90%);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/*
|
|
210
|
-
* Apply generic styles
|
|
211
|
-
**/
|
|
212
|
-
|
|
213
|
-
background-color: var(--_input-textarea-with-label-background-color);
|
|
214
|
-
border-radius: var(--_input-textarea-wrapper-border-radius);
|
|
215
|
-
/* overflow: clip; */
|
|
216
|
-
|
|
217
|
-
&.underlined {
|
|
218
|
-
/* border-bottom: var(--_input-textarea-wrapper-border-underlined); */
|
|
219
|
-
border-top-left-radius: var(--_input-textarea-wrapper-underlined-border-radius-top-left);
|
|
220
|
-
border-top-right-radius: var(--_input-textarea-wrapper-underlined-border-radius-top-right);
|
|
221
|
-
border-bottom-left-radius: var(--_input-textarea-wrapper-underlined-border-radius-bottom-left);
|
|
222
|
-
border-bottom-right-radius: var(--_input-textarea-wrapper-underlined-border-radius-bottom-right);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
&.outlined {
|
|
226
|
-
border: var(--_input-textarea-wrapper-border);
|
|
227
|
-
outline: var(--_input-textarea-wrapper-outline);
|
|
228
|
-
box-shadow: var(--_input-textarea-wrapper-box-shadow);
|
|
229
|
-
padding-block: var(--_input-textarea-wrapper-padding-block);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
&:not(.normal) {
|
|
233
|
-
display: grid;
|
|
234
|
-
grid-template-columns: 1fr;
|
|
235
|
-
grid-template-rows: 1fr;
|
|
236
|
-
grid-template-areas: 'underlined-textarea-stack';
|
|
237
|
-
|
|
238
|
-
margin-block-start: var(--_input-textarea-with-label-margin-block-start);
|
|
239
|
-
|
|
240
|
-
.input-textarea-label {
|
|
241
|
-
grid-area: underlined-textarea-stack;
|
|
242
|
-
z-index: 2;
|
|
243
|
-
}
|
|
244
|
-
.input-textarea-wrapper {
|
|
245
|
-
grid-area: underlined-textarea-stack;
|
|
246
|
-
z-index: 1;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.input-textarea-label {
|
|
251
|
-
display: inline-block;
|
|
252
|
-
color: var(--_label-textarea-color);
|
|
253
|
-
background-color: var(--_label-textarea-background-color);
|
|
254
|
-
margin-block: var(--_label-textarea-margin-block);
|
|
255
|
-
font-size: var(--_label-textarea-size);
|
|
256
|
-
font-weight: var(--_label-textarea-weight);
|
|
257
|
-
line-height: var(--_label-textarea-line-height);
|
|
258
|
-
translate: var(--_label-offset);
|
|
259
|
-
width: fit-content;
|
|
260
|
-
height: var(--_label-textarea-height);
|
|
261
|
-
transition: font-size 0.2s ease-in-out, translate 0.2s ease-in-out;
|
|
262
|
-
|
|
263
|
-
&:not(.normal) {
|
|
264
|
-
display: flex;
|
|
265
|
-
align-items: center;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
</style>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{assets/styles/setup/variables → app/assets/styles/setup/theming}/colors/_orange.css
RENAMED
|
File without changes
|
|
File without changes
|
package/{assets/styles/setup/variables → app/assets/styles/setup/theming}/colors/_yellow.css
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{components → app/components}/forms/input-checkbox/tests/MultipleCheckboxes.spec.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|