aloha-vue 2.84.0 → 2.86.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/CHANGELOG.md +1208 -1196
- package/README.md +117 -117
- package/dist/aloha-vue.css +13806 -13601
- package/dist/aloha-vue.css.map +1 -1
- package/dist/aloha-vue.es.js +60168 -57382
- package/dist/aloha-vue.umd.js +319 -319
- package/package.json +1 -1
- package/scss/components/AButton.scss +6 -6
- package/scss/components/ADivider.scss +9 -9
- package/scss/components/AElement.scss +6 -6
- package/scss/components/AGroupButtonDropdown.scss +4 -4
- package/scss/components/AIcon.scss +17 -17
- package/scss/components/ALoading.scss +18 -18
- package/scss/components/AMenu.scss +634 -634
- package/scss/components/AProgressCirle.scss +43 -43
- package/scss/components/AShowMore.scss +9 -9
- package/scss/components/ATableForm.scss +7 -7
- package/scss/components/ATabs.scss +186 -186
- package/scss/components/ui/AColorPicker.scss +223 -0
- package/scss/components/ui/AJson.scss +11 -11
- package/scss/components/ui/ui.scss +1 -0
- package/scss/text/text_line_height.scss +17 -17
- package/scss/text/text_size.scss +88 -88
- package/scss/utils/acordion.scss +173 -173
- package/scss/utils/alert.scss +81 -81
- package/scss/utils/aloha_prefix.scss +1 -1
- package/scss/utils/backdrop.scss +24 -24
- package/scss/utils/border.scss +65 -65
- package/scss/utils/breakpoint.scss +48 -48
- package/scss/utils/button_close.scss +22 -22
- package/scss/utils/button_group.scss +69 -69
- package/scss/utils/color_utils.scss +234 -234
- package/scss/utils/display.scss +67 -67
- package/scss/utils/flex.scss +141 -141
- package/scss/utils/float.scss +10 -10
- package/scss/utils/global.scss +44 -44
- package/scss/utils/global_variables.scss +26 -26
- package/scss/utils/grid.scss +95 -95
- package/scss/utils/list_columns.scss +31 -31
- package/scss/utils/list_group.scss +127 -127
- package/scss/utils/notification.scss +36 -36
- package/scss/utils/overflow.scss +40 -40
- package/scss/utils/pagination.scss +94 -94
- package/scss/utils/position.scss +90 -90
- package/scss/utils/progress.scss +70 -70
- package/scss/utils/screenreader.scss +16 -16
- package/scss/utils/spinner.scss +35 -35
- package/scss/utils/utils.scss +19 -19
- package/scss/utils/vars_global.scss +12 -12
- package/src/AAlert/i18n/AAlertI18n.js +4 -0
- package/src/AAlert/i18n/nl.json +3 -0
- package/src/AAlert/i18n/pl.json +3 -0
- package/src/ACarousel/i18n/ACarouselI18n.js +4 -0
- package/src/ACarousel/i18n/nl.json +9 -0
- package/src/ACarousel/i18n/pl.json +9 -0
- package/src/ACloak/i18n/ACloakI18n.js +4 -0
- package/src/ACloak/i18n/nl.json +3 -0
- package/src/ACloak/i18n/pl.json +3 -0
- package/src/ADisclosure/i18n/ADisclosureI18n.js +4 -0
- package/src/ADisclosure/i18n/nl.json +4 -0
- package/src/ADisclosure/i18n/pl.json +4 -0
- package/src/AFilters/i18n/AFiltersI18n.js +4 -0
- package/src/AFilters/i18n/nl.json +30 -0
- package/src/AFilters/i18n/pl.json +30 -0
- package/src/AGroupButtonDropdown/AGroupButtonDropdown.js +119 -119
- package/src/ALinkCopy/i18n/ALinkCopyI18n.js +4 -0
- package/src/ALinkCopy/i18n/nl.json +4 -0
- package/src/ALinkCopy/i18n/pl.json +4 -0
- package/src/ALoading/i18n/ALoadingI18n.js +4 -0
- package/src/ALoading/i18n/nl.json +3 -0
- package/src/ALoading/i18n/pl.json +3 -0
- package/src/AMenu/i18n/AMenu2I18n.js +4 -0
- package/src/AMenu/i18n/nl.json +14 -0
- package/src/AMenu/i18n/pl.json +14 -0
- package/src/AModal/compositionAPI/ZIndexAPI.js +48 -48
- package/src/AModal/i18n/AModalI18n.js +4 -0
- package/src/AModal/i18n/nl.json +7 -0
- package/src/AModal/i18n/pl.json +7 -0
- package/src/APagination/i18n/APaginationI18n.js +4 -0
- package/src/APagination/i18n/nl.json +12 -0
- package/src/APagination/i18n/pl.json +12 -0
- package/src/AProgress/AProgress.js +141 -141
- package/src/AProgressCircle/AProgressCircle.js +160 -160
- package/src/AShowMore/i18n/AShowMoreI18n.js +4 -0
- package/src/AShowMore/i18n/nl.json +6 -0
- package/src/AShowMore/i18n/pl.json +6 -0
- package/src/ASpinner/i18n/ASpinnerI18n.js +4 -0
- package/src/ASpinner/i18n/nl.json +3 -0
- package/src/ASpinner/i18n/pl.json +3 -0
- package/src/ATable/ATableHeaderTh/ATableHeaderTh.js +188 -188
- package/src/ATable/i18n/ATableI18n.js +4 -0
- package/src/ATable/i18n/nl.json +54 -0
- package/src/ATable/i18n/pl.json +54 -0
- package/src/ATableForm/i18n/ATableFormI18n.js +4 -0
- package/src/ATableForm/i18n/nl.json +18 -0
- package/src/ATableForm/i18n/pl.json +18 -0
- package/src/ATranslation/ATranslation.js +46 -0
- package/src/ATranslation/__tests__/ATranslation.test.js +121 -0
- package/src/ATranslation/compositionAPI/UtilsAPI.js +6 -1
- package/src/ATranslation/compositionAPI/__tests__/UtilsAPI.getTranslatedText.test.js +38 -0
- package/src/AVerticalScroll/i18n/AVerticalScrollI18n.js +4 -0
- package/src/AVerticalScroll/i18n/nl.json +4 -0
- package/src/AVerticalScroll/i18n/pl.json +4 -0
- package/src/AWizard/i18n/AWizardI18n.js +4 -0
- package/src/AWizard/i18n/nl.json +16 -0
- package/src/AWizard/i18n/pl.json +16 -0
- package/src/PVP/new.txt +39 -39
- package/src/PuxDatepicker/PuxDatepicker.js +670 -670
- package/src/PuxDatepicker/PuxDatepicker.pug +131 -131
- package/src/PuxDatepicker/PuxDatepicker.vue +2 -2
- package/src/PuxDatepicker/PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.pug +136 -136
- package/src/PuxDatepicker/PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.vue +2 -2
- package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.js +30 -30
- package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.pug +6 -6
- package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.vue +2 -2
- package/src/PuxDatepicker/locale/languages.js +174 -174
- package/src/PuxDatepicker/mixins/PanelMixin.js +76 -76
- package/src/PuxDatepicker/panel/PanelDate/PanelDate.pug +41 -41
- package/src/PuxDatepicker/panel/PanelDate/PanelDate.vue +2 -2
- package/src/PuxDatepicker/panel/PanelMonth/PanelMonth.pug +16 -16
- package/src/PuxDatepicker/panel/PanelMonth/PanelMonth.vue +2 -2
- package/src/PuxDatepicker/panel/PanelTime/PanelTime.pug +20 -20
- package/src/PuxDatepicker/panel/PanelTime/PanelTime.vue +2 -2
- package/src/PuxDatepicker/panel/PanelYear/PanelYear.pug +16 -16
- package/src/PuxDatepicker/panel/PanelYear/PanelYear.vue +2 -2
- package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.js +55 -55
- package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.pug +9 -9
- package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.vue +2 -2
- package/src/PuxDatepicker/utils/keysCode.js +9 -9
- package/src/PuxDatepicker/utils/scroll-into-view.js +23 -23
- package/src/PuxDatepicker/utils/transform.js +23 -23
- package/src/filters/i18n/Filters18n.js +4 -0
- package/src/filters/i18n/nl.json +11 -0
- package/src/filters/i18n/pl.json +11 -0
- package/src/i18n/allLanguages.js +96 -0
- package/src/i18n/nl.json +4 -0
- package/src/i18n/pl.json +4 -0
- package/src/index.js +4 -0
- package/src/ui/ACheckbox/ACheckbox.js +5 -0
- package/src/ui/ACheckbox/i18n/ACheckboxI18n.js +4 -0
- package/src/ui/ACheckbox/i18n/nl.json +5 -0
- package/src/ui/ACheckbox/i18n/pl.json +5 -0
- package/src/ui/AColorPicker/AColorPicker.js +697 -0
- package/src/ui/AColorPicker/AColorPickerSaturation/AColorPickerSaturation.js +102 -0
- package/src/ui/AColorPicker/AColorPickerSaturation/compositionAPI/SaturationAPI.js +77 -0
- package/src/ui/AColorPicker/AColorPickerSlider/AColorPickerSlider.js +125 -0
- package/src/ui/AColorPicker/AColorPickerSlider/compositionAPI/SliderAPI.js +73 -0
- package/src/ui/AColorPicker/__tests__/AColorPicker.test.js +139 -0
- package/src/ui/AColorPicker/__tests__/colorUtils.test.js +92 -0
- package/src/ui/AColorPicker/compositionAPI/ColorStateAPI.js +108 -0
- package/src/ui/AColorPicker/compositionAPI/ConfirmAPI.js +36 -0
- package/src/ui/AColorPicker/compositionAPI/InputAPI.js +63 -0
- package/src/ui/AColorPicker/compositionAPI/KeyboardStepAPI.js +42 -0
- package/src/ui/AColorPicker/compositionAPI/PointerDragAPI.js +70 -0
- package/src/ui/AColorPicker/compositionAPI/PopoverAPI.js +179 -0
- package/src/ui/AColorPicker/compositionAPI/PredefineAPI.js +42 -0
- package/src/ui/AColorPicker/compositionAPI/ToggleClassAPI.js +24 -0
- package/src/ui/AColorPicker/i18n/AColorPickerI18n.js +25 -0
- package/src/ui/AColorPicker/i18n/ar.json +13 -0
- package/src/ui/AColorPicker/i18n/de.json +13 -0
- package/src/ui/AColorPicker/i18n/en.json +13 -0
- package/src/ui/AColorPicker/i18n/es.json +13 -0
- package/src/ui/AColorPicker/i18n/fr.json +13 -0
- package/src/ui/AColorPicker/i18n/hr.json +13 -0
- package/src/ui/AColorPicker/i18n/it.json +13 -0
- package/src/ui/AColorPicker/i18n/nl.json +13 -0
- package/src/ui/AColorPicker/i18n/pl.json +13 -0
- package/src/ui/AColorPicker/i18n/ru.json +13 -0
- package/src/ui/AColorPicker/i18n/uk.json +13 -0
- package/src/ui/AColorPicker/utils/colorUtils.js +281 -0
- package/src/ui/ADatepicker/ADatepickerCalendarPanel/ADatepickerCalendarPanel.js +68 -68
- package/src/ui/ADatepicker/i18n/ADatepickerI18n.js +4 -0
- package/src/ui/ADatepicker/i18n/nl.json +58 -0
- package/src/ui/ADatepicker/i18n/pl.json +58 -0
- package/src/ui/ADatepicker/panel/APanelTime/APanelTime.js +147 -147
- package/src/ui/ADatepicker/panel/APanelYear/APanelYear.js +123 -123
- package/src/ui/ADatepickerAlt/ADatepickerCalendarPanel/ADatepickerCalendarPanel.js +804 -804
- package/src/ui/ADatepickerAlt/panel/APanelDate/APanelDate.js +353 -353
- package/src/ui/ADatepickerAlt/panel/APanelMonth/APanelMonth.js +187 -187
- package/src/ui/ADatepickerAlt/panel/APanelTime/APanelTime.js +303 -303
- package/src/ui/ADatepickerAlt/panel/APanelYear/APanelYear.js +162 -162
- package/src/ui/ADatepickerRange/i18n/ADatepickerRangeI18n.js +4 -0
- package/src/ui/ADatepickerRange/i18n/nl.json +4 -0
- package/src/ui/ADatepickerRange/i18n/pl.json +4 -0
- package/src/ui/AErrors/i18n/AErrorsI18n.js +4 -0
- package/src/ui/AErrors/i18n/nl.json +3 -0
- package/src/ui/AErrors/i18n/pl.json +3 -0
- package/src/ui/AFieldset/__tests__/AFieldset.ClassColumn.test.js +1 -0
- package/src/ui/AFieldset/i18n/AFieldsetI18n.js +4 -0
- package/src/ui/AFieldset/i18n/nl.json +4 -0
- package/src/ui/AFieldset/i18n/pl.json +4 -0
- package/src/ui/AFormElementBtnClear/i18n/AFormElementBtnClearI18n.js +4 -0
- package/src/ui/AFormElementBtnClear/i18n/nl.json +3 -0
- package/src/ui/AFormElementBtnClear/i18n/pl.json +3 -0
- package/src/ui/AInput/i18n/AInputI18n.js +4 -0
- package/src/ui/AInput/i18n/nl.json +4 -0
- package/src/ui/AInput/i18n/pl.json +4 -0
- package/src/ui/AInputCurrency/i18n/AInputCurrencyI18n.js +4 -0
- package/src/ui/AInputCurrency/i18n/nl.json +4 -0
- package/src/ui/AInputCurrency/i18n/pl.json +4 -0
- package/src/ui/AInputNumber/i18n/AInputNumberI18n.js +4 -0
- package/src/ui/AInputNumber/i18n/nl.json +4 -0
- package/src/ui/AInputNumber/i18n/pl.json +4 -0
- package/src/ui/AInputNumberRange/i18n/AInputNumberRangeI18n.js +4 -0
- package/src/ui/AInputNumberRange/i18n/nl.json +4 -0
- package/src/ui/AInputNumberRange/i18n/pl.json +4 -0
- package/src/ui/AJson/i18n/AJsonI18n.js +4 -0
- package/src/ui/AJson/i18n/nl.json +8 -0
- package/src/ui/AJson/i18n/pl.json +8 -0
- package/src/ui/AMultiselectOrdered/i18n/AMultiselectOrderedI18n.js +4 -0
- package/src/ui/AMultiselectOrdered/i18n/nl.json +12 -0
- package/src/ui/AMultiselectOrdered/i18n/pl.json +12 -0
- package/src/ui/ARadio/i18n/ARadioI18n.js +4 -0
- package/src/ui/ARadio/i18n/nl.json +5 -0
- package/src/ui/ARadio/i18n/pl.json +5 -0
- package/src/ui/ARequired/i18n/ARequiredI18n.js +4 -0
- package/src/ui/ARequired/i18n/nl.json +3 -0
- package/src/ui/ARequired/i18n/pl.json +3 -0
- package/src/ui/ARouterLinkConfig/i18n/ARouterLinkConfigI18n.js +4 -0
- package/src/ui/ARouterLinkConfig/i18n/nl.json +14 -0
- package/src/ui/ARouterLinkConfig/i18n/pl.json +14 -0
- package/src/ui/ASelect/i18n/ASelectI18n.js +4 -0
- package/src/ui/ASelect/i18n/ar.json +5 -5
- package/src/ui/ASelect/i18n/de.json +4 -4
- package/src/ui/ASelect/i18n/en.json +5 -5
- package/src/ui/ASelect/i18n/es.json +5 -5
- package/src/ui/ASelect/i18n/fr.json +5 -5
- package/src/ui/ASelect/i18n/hr.json +5 -5
- package/src/ui/ASelect/i18n/it.json +5 -5
- package/src/ui/ASelect/i18n/nl.json +11 -0
- package/src/ui/ASelect/i18n/pl.json +11 -0
- package/src/ui/ASelect/i18n/ru.json +5 -5
- package/src/ui/ASelectStyle/i18n/ASelectStyleI18n.js +4 -0
- package/src/ui/ASelectStyle/i18n/nl.json +292 -0
- package/src/ui/ASelectStyle/i18n/pl.json +292 -0
- package/src/ui/ASlider/i18n/ASliderI18n.js +4 -0
- package/src/ui/ASlider/i18n/nl.json +5 -0
- package/src/ui/ASlider/i18n/pl.json +5 -0
- package/src/ui/ASwitch/i18n/ASwitchI18n.js +4 -0
- package/src/ui/ASwitch/i18n/nl.json +5 -0
- package/src/ui/ASwitch/i18n/pl.json +5 -0
- package/src/ui/AUiComponents.js +2 -0
- package/src/ui/AValidatedJson/i18n/AValidatedJsonI18n.js +4 -0
- package/src/ui/AValidatedJson/i18n/nl.json +25 -0
- package/src/ui/AValidatedJson/i18n/pl.json +25 -0
- package/src/ui/compositionApi/__tests__/UiStyleHideAPI.test.js +9 -4
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
.a_color_picker,
|
|
2
|
+
.a_color_picker__readonly {
|
|
3
|
+
--a_color_picker_checker: repeating-conic-gradient(#d4d4d4 0% 25%, #fff 0% 50%) 50% / 0.75rem 0.75rem;
|
|
4
|
+
--a_color_picker_popup_width: 17.5rem;
|
|
5
|
+
--a_color_picker_popup_padding: 0.75rem;
|
|
6
|
+
--a_color_picker_popup_bg: var(--a_color_white, #fff);
|
|
7
|
+
--a_color_picker_popup_border_color: var(--a_color_gray_300, #dee2e6);
|
|
8
|
+
--a_color_picker_popup_border_radius: var(--a_border_radius, 0.375rem);
|
|
9
|
+
--a_color_picker_popup_shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
|
10
|
+
--a_color_picker_popup_z_index: 1901;
|
|
11
|
+
--a_color_picker_saturation_height: 10rem;
|
|
12
|
+
--a_color_picker_slider_height: 0.75rem;
|
|
13
|
+
--a_color_picker_thumb_size: 1.125rem;
|
|
14
|
+
--a_color_picker_focus_color_inside: #fff;
|
|
15
|
+
--a_color_picker_focus_color_outside: #000;
|
|
16
|
+
--a_color_picker_predefine_size: 1.5rem;
|
|
17
|
+
--a_color_picker_predefine_selected_color: var(--a_color_primary, #0d6efd);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Toggle: looks like an input that is filled with the color
|
|
21
|
+
// (double class: .a_form_control is defined later and must not win)
|
|
22
|
+
.a_form_control.a_color_picker__toggle {
|
|
23
|
+
min-height: calc(1.5em + 0.75rem + 2px);
|
|
24
|
+
text-align: left;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
&,
|
|
27
|
+
&:focus {
|
|
28
|
+
color: var(--a_color_picker_text_color, inherit);
|
|
29
|
+
background:
|
|
30
|
+
linear-gradient(var(--a_color_picker_color), var(--a_color_picker_color)),
|
|
31
|
+
var(--a_color_picker_checker);
|
|
32
|
+
}
|
|
33
|
+
&:disabled {
|
|
34
|
+
cursor: not-allowed;
|
|
35
|
+
opacity: 0.65;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.a_form_control.a_color_picker__toggle_empty {
|
|
39
|
+
&,
|
|
40
|
+
&:focus {
|
|
41
|
+
color: #212529;
|
|
42
|
+
background: #fff;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
// The clear button and the error icon on the colored field use the contrast color
|
|
46
|
+
.a_color_picker_has_color {
|
|
47
|
+
.a_form_control__actions .a_btn.a_form_control__actions__btn {
|
|
48
|
+
--a_btn_color: var(--a_color_picker_text_color);
|
|
49
|
+
--a_btn_hover_color: var(--a_color_picker_text_color);
|
|
50
|
+
--a_btn_active_color: var(--a_color_picker_text_color);
|
|
51
|
+
color: var(--a_color_picker_text_color);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.a_color_picker.a_form_element__parent_float_has_error_icon {
|
|
55
|
+
.a_form_element_label_float {
|
|
56
|
+
left: 1.5rem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.a_color_picker__toggle__value {
|
|
61
|
+
font-variant-numeric: tabular-nums;
|
|
62
|
+
overflow-wrap: anywhere;
|
|
63
|
+
}
|
|
64
|
+
.a_color_picker__toggle__empty {
|
|
65
|
+
color: var(--a_color_gray_600, #6c757d);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.a_color_picker__swatch {
|
|
69
|
+
display: inline-block;
|
|
70
|
+
flex-shrink: 0;
|
|
71
|
+
width: 1rem;
|
|
72
|
+
height: 1rem;
|
|
73
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
74
|
+
border-radius: var(--a_border_radius_small, 0.25rem);
|
|
75
|
+
background:
|
|
76
|
+
linear-gradient(var(--a_color_picker_color), var(--a_color_picker_color)),
|
|
77
|
+
var(--a_color_picker_checker);
|
|
78
|
+
}
|
|
79
|
+
.a_color_picker__readonly {
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: 0.5rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Popup (teleported to the body)
|
|
86
|
+
.a_color_picker__popup {
|
|
87
|
+
--a_color_picker_checker: repeating-conic-gradient(#d4d4d4 0% 25%, #fff 0% 50%) 50% / 0.75rem 0.75rem;
|
|
88
|
+
--a_color_picker_focus_color_inside: #fff;
|
|
89
|
+
--a_color_picker_focus_color_outside: #000;
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 0;
|
|
92
|
+
left: 0;
|
|
93
|
+
z-index: var(--a_color_picker_popup_z_index, 1901);
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
gap: 0.75rem;
|
|
97
|
+
width: var(--a_color_picker_popup_width, 17.5rem);
|
|
98
|
+
max-width: calc(100vw - 1rem);
|
|
99
|
+
padding: var(--a_color_picker_popup_padding, 0.75rem);
|
|
100
|
+
background-color: var(--a_color_picker_popup_bg, #fff);
|
|
101
|
+
border: 1px solid var(--a_color_picker_popup_border_color, #dee2e6);
|
|
102
|
+
border-radius: var(--a_color_picker_popup_border_radius, 0.375rem);
|
|
103
|
+
box-shadow: var(--a_color_picker_popup_shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Thumbs of the saturation area and the sliders
|
|
107
|
+
.a_color_picker_saturation__thumb,
|
|
108
|
+
.a_color_picker_slider__thumb {
|
|
109
|
+
position: absolute;
|
|
110
|
+
width: var(--a_color_picker_thumb_size, 1.125rem);
|
|
111
|
+
height: var(--a_color_picker_thumb_size, 1.125rem);
|
|
112
|
+
border: 2px solid #fff;
|
|
113
|
+
border-radius: 50%;
|
|
114
|
+
background-color: var(--a_color_picker_thumb_color, transparent);
|
|
115
|
+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.3);
|
|
116
|
+
transform: translate(-50%, -50%);
|
|
117
|
+
cursor: grab;
|
|
118
|
+
&:focus {
|
|
119
|
+
outline: 0;
|
|
120
|
+
}
|
|
121
|
+
&:focus-visible {
|
|
122
|
+
outline: 2px solid transparent;
|
|
123
|
+
box-shadow:
|
|
124
|
+
0 0 0 2px var(--a_color_picker_focus_color_inside),
|
|
125
|
+
0 0 0 5px var(--a_color_picker_focus_color_outside);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.a_color_picker_saturation {
|
|
130
|
+
position: relative;
|
|
131
|
+
height: var(--a_color_picker_saturation_height, 10rem);
|
|
132
|
+
border-radius: var(--a_border_radius, 0.375rem);
|
|
133
|
+
background:
|
|
134
|
+
linear-gradient(to top, #000, transparent),
|
|
135
|
+
linear-gradient(to right, #fff, transparent),
|
|
136
|
+
var(--a_color_picker_hue);
|
|
137
|
+
cursor: crosshair;
|
|
138
|
+
touch-action: none;
|
|
139
|
+
user-select: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.a_color_picker_slider {
|
|
143
|
+
position: relative;
|
|
144
|
+
height: var(--a_color_picker_slider_height, 0.75rem);
|
|
145
|
+
margin: 0 calc(var(--a_color_picker_thumb_size, 1.125rem) / 2);
|
|
146
|
+
border-radius: 50rem;
|
|
147
|
+
background: var(--a_color_picker_slider_bg);
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
touch-action: none;
|
|
150
|
+
user-select: none;
|
|
151
|
+
// the track is wider than the element, so the thumb reaches the ends
|
|
152
|
+
&::before {
|
|
153
|
+
content: "";
|
|
154
|
+
position: absolute;
|
|
155
|
+
inset: 0 calc(var(--a_color_picker_thumb_size, 1.125rem) / -2);
|
|
156
|
+
border-radius: inherit;
|
|
157
|
+
background: inherit;
|
|
158
|
+
z-index: -1;
|
|
159
|
+
}
|
|
160
|
+
.a_color_picker_slider__thumb {
|
|
161
|
+
top: 50%;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
.a_color_picker_slider_alpha {
|
|
165
|
+
isolation: isolate;
|
|
166
|
+
background:
|
|
167
|
+
var(--a_color_picker_slider_bg),
|
|
168
|
+
var(--a_color_picker_checker);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.a_color_picker__controls {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
gap: 0.75rem;
|
|
175
|
+
}
|
|
176
|
+
.a_color_picker__sliders {
|
|
177
|
+
display: flex;
|
|
178
|
+
flex: 1;
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
gap: 0.75rem;
|
|
181
|
+
}
|
|
182
|
+
.a_color_picker__preview {
|
|
183
|
+
width: 2rem;
|
|
184
|
+
height: 2rem;
|
|
185
|
+
border-radius: var(--a_border_radius, 0.375rem);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.a_color_picker__predefine {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-wrap: wrap;
|
|
191
|
+
gap: 0.375rem;
|
|
192
|
+
}
|
|
193
|
+
.a_color_picker__predefine__item {
|
|
194
|
+
width: var(--a_color_picker_predefine_size, 1.5rem);
|
|
195
|
+
height: var(--a_color_picker_predefine_size, 1.5rem);
|
|
196
|
+
padding: 0;
|
|
197
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
198
|
+
border-radius: var(--a_border_radius_small, 0.25rem);
|
|
199
|
+
background:
|
|
200
|
+
linear-gradient(var(--a_color_picker_color), var(--a_color_picker_color)),
|
|
201
|
+
var(--a_color_picker_checker);
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
&:focus {
|
|
204
|
+
outline: 0;
|
|
205
|
+
}
|
|
206
|
+
&:focus-visible {
|
|
207
|
+
outline: 2px solid transparent;
|
|
208
|
+
box-shadow:
|
|
209
|
+
0 0 0 2px var(--a_color_picker_focus_color_inside),
|
|
210
|
+
0 0 0 4px var(--a_color_picker_focus_color_outside);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
.a_color_picker__predefine__item_selected {
|
|
214
|
+
box-shadow:
|
|
215
|
+
0 0 0 2px var(--a_color_picker_focus_color_inside),
|
|
216
|
+
0 0 0 4px var(--a_color_picker_predefine_selected_color, #0d6efd);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.a_color_picker__footer {
|
|
220
|
+
display: flex;
|
|
221
|
+
justify-content: flex-end;
|
|
222
|
+
gap: 0.5rem;
|
|
223
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.a_json__textarea {
|
|
2
|
-
resize: vertical;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.a_json__code,
|
|
6
|
-
.a_json__textarea {
|
|
7
|
-
white-space: pre;
|
|
8
|
-
font-family: monospace;
|
|
9
|
-
overflow: auto;
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
.a_json__textarea {
|
|
2
|
+
resize: vertical;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.a_json__code,
|
|
6
|
+
.a_json__textarea {
|
|
7
|
+
white-space: pre;
|
|
8
|
+
font-family: monospace;
|
|
9
|
+
overflow: auto;
|
|
10
|
+
}
|
|
11
|
+
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
@use "../utils/aloha_prefix" as aloha;
|
|
2
|
-
|
|
3
|
-
.#{aloha.$aloha-prefix}line_height_1 {
|
|
4
|
-
line-height: 1 !important;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.#{aloha.$aloha-prefix}line_height_small {
|
|
8
|
-
line-height: 1.25 !important;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.#{aloha.$aloha-prefix}line_height_base {
|
|
12
|
-
line-height: 1.5 !important;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.#{aloha.$aloha-prefix}line_height_large {
|
|
16
|
-
line-height: 2 !important;
|
|
17
|
-
}
|
|
1
|
+
@use "../utils/aloha_prefix" as aloha;
|
|
2
|
+
|
|
3
|
+
.#{aloha.$aloha-prefix}line_height_1 {
|
|
4
|
+
line-height: 1 !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.#{aloha.$aloha-prefix}line_height_small {
|
|
8
|
+
line-height: 1.25 !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.#{aloha.$aloha-prefix}line_height_base {
|
|
12
|
+
line-height: 1.5 !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.#{aloha.$aloha-prefix}line_height_large {
|
|
16
|
+
line-height: 2 !important;
|
|
17
|
+
}
|
package/scss/text/text_size.scss
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "sass:string";
|
|
3
|
-
|
|
4
|
-
@use "../utils/aloha_prefix" as aloha;
|
|
5
|
-
@use "../utils/breakpoint";
|
|
6
|
-
|
|
7
|
-
$a_font_sizes: (
|
|
8
|
-
(
|
|
9
|
-
class: "1",
|
|
10
|
-
value: calc(1.375rem + 1.5vw),
|
|
11
|
-
value-desktop: 2.5,
|
|
12
|
-
is-tag: true,
|
|
13
|
-
),
|
|
14
|
-
(
|
|
15
|
-
class: "2",
|
|
16
|
-
value: calc(1.325rem + .9vw),
|
|
17
|
-
value-desktop: 2,
|
|
18
|
-
is-tag: true,
|
|
19
|
-
),
|
|
20
|
-
(
|
|
21
|
-
class: "3",
|
|
22
|
-
value: calc(1.3rem + .6vw),
|
|
23
|
-
value-desktop: 1.75,
|
|
24
|
-
is-tag: true,
|
|
25
|
-
),
|
|
26
|
-
(
|
|
27
|
-
class: "4",
|
|
28
|
-
value: calc(1.275rem + .3vw),
|
|
29
|
-
value-desktop: 1.5,
|
|
30
|
-
is-tag: true,
|
|
31
|
-
),
|
|
32
|
-
(
|
|
33
|
-
class: "5",
|
|
34
|
-
value: 1.25,
|
|
35
|
-
is-tag: true,
|
|
36
|
-
),
|
|
37
|
-
(
|
|
38
|
-
class: "6",
|
|
39
|
-
value: 1,
|
|
40
|
-
is-tag: true,
|
|
41
|
-
),
|
|
42
|
-
(
|
|
43
|
-
class: "7",
|
|
44
|
-
value: 0.75,
|
|
45
|
-
),
|
|
46
|
-
) !default;
|
|
47
|
-
|
|
48
|
-
@each $font_size in $a_font_sizes {
|
|
49
|
-
$font_size_class: map.get($font_size, "class");
|
|
50
|
-
$font_size_value: map.get($font_size, "value");
|
|
51
|
-
$font_size_value_desktop: map.get($font_size, "value-desktop");
|
|
52
|
-
$font_size_is_tag: map.get($font_size, "is-tag");
|
|
53
|
-
$font_size_local: null;
|
|
54
|
-
@if $font_size_value {
|
|
55
|
-
@if string.index("" + $font_size_value, "calc") {
|
|
56
|
-
$font_size_local: #{ $font_size_value };
|
|
57
|
-
} @else {
|
|
58
|
-
$font_size_local: calc(var(--#{aloha.$aloha-prefix}body_font_size) * #{ $font_size_value });
|
|
59
|
-
}
|
|
60
|
-
.#{aloha.$aloha-prefix}fs_#{$font_size_class} {
|
|
61
|
-
font-size: #{ $font_size_local } !important;
|
|
62
|
-
}
|
|
63
|
-
@if $font_size_is_tag {
|
|
64
|
-
h#{$font_size_class} {
|
|
65
|
-
font-size: #{ $font_size_local };
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@if $font_size_value_desktop {
|
|
71
|
-
@if string.index($font_size_value_desktop + "", "calc") {
|
|
72
|
-
$font_size_local: #{ $font_size_value_desktop };
|
|
73
|
-
} @else {
|
|
74
|
-
$font_size_local: calc(var(--#{aloha.$aloha-prefix}body_font_size) * #{ $font_size_value_desktop });
|
|
75
|
-
}
|
|
76
|
-
@media (min-width: #{breakpoint.$a_breakpoint_desktop_min}) {
|
|
77
|
-
.#{aloha.$aloha-prefix}fs_#{$font_size_class} {
|
|
78
|
-
font-size: #{ $font_size_local } !important;
|
|
79
|
-
}
|
|
80
|
-
@if $font_size_is_tag {
|
|
81
|
-
h#{$font_size_class} {
|
|
82
|
-
font-size: #{ $font_size_local };
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:string";
|
|
3
|
+
|
|
4
|
+
@use "../utils/aloha_prefix" as aloha;
|
|
5
|
+
@use "../utils/breakpoint";
|
|
6
|
+
|
|
7
|
+
$a_font_sizes: (
|
|
8
|
+
(
|
|
9
|
+
class: "1",
|
|
10
|
+
value: calc(1.375rem + 1.5vw),
|
|
11
|
+
value-desktop: 2.5,
|
|
12
|
+
is-tag: true,
|
|
13
|
+
),
|
|
14
|
+
(
|
|
15
|
+
class: "2",
|
|
16
|
+
value: calc(1.325rem + .9vw),
|
|
17
|
+
value-desktop: 2,
|
|
18
|
+
is-tag: true,
|
|
19
|
+
),
|
|
20
|
+
(
|
|
21
|
+
class: "3",
|
|
22
|
+
value: calc(1.3rem + .6vw),
|
|
23
|
+
value-desktop: 1.75,
|
|
24
|
+
is-tag: true,
|
|
25
|
+
),
|
|
26
|
+
(
|
|
27
|
+
class: "4",
|
|
28
|
+
value: calc(1.275rem + .3vw),
|
|
29
|
+
value-desktop: 1.5,
|
|
30
|
+
is-tag: true,
|
|
31
|
+
),
|
|
32
|
+
(
|
|
33
|
+
class: "5",
|
|
34
|
+
value: 1.25,
|
|
35
|
+
is-tag: true,
|
|
36
|
+
),
|
|
37
|
+
(
|
|
38
|
+
class: "6",
|
|
39
|
+
value: 1,
|
|
40
|
+
is-tag: true,
|
|
41
|
+
),
|
|
42
|
+
(
|
|
43
|
+
class: "7",
|
|
44
|
+
value: 0.75,
|
|
45
|
+
),
|
|
46
|
+
) !default;
|
|
47
|
+
|
|
48
|
+
@each $font_size in $a_font_sizes {
|
|
49
|
+
$font_size_class: map.get($font_size, "class");
|
|
50
|
+
$font_size_value: map.get($font_size, "value");
|
|
51
|
+
$font_size_value_desktop: map.get($font_size, "value-desktop");
|
|
52
|
+
$font_size_is_tag: map.get($font_size, "is-tag");
|
|
53
|
+
$font_size_local: null;
|
|
54
|
+
@if $font_size_value {
|
|
55
|
+
@if string.index("" + $font_size_value, "calc") {
|
|
56
|
+
$font_size_local: #{ $font_size_value };
|
|
57
|
+
} @else {
|
|
58
|
+
$font_size_local: calc(var(--#{aloha.$aloha-prefix}body_font_size) * #{ $font_size_value });
|
|
59
|
+
}
|
|
60
|
+
.#{aloha.$aloha-prefix}fs_#{$font_size_class} {
|
|
61
|
+
font-size: #{ $font_size_local } !important;
|
|
62
|
+
}
|
|
63
|
+
@if $font_size_is_tag {
|
|
64
|
+
h#{$font_size_class} {
|
|
65
|
+
font-size: #{ $font_size_local };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@if $font_size_value_desktop {
|
|
71
|
+
@if string.index($font_size_value_desktop + "", "calc") {
|
|
72
|
+
$font_size_local: #{ $font_size_value_desktop };
|
|
73
|
+
} @else {
|
|
74
|
+
$font_size_local: calc(var(--#{aloha.$aloha-prefix}body_font_size) * #{ $font_size_value_desktop });
|
|
75
|
+
}
|
|
76
|
+
@media (min-width: #{breakpoint.$a_breakpoint_desktop_min}) {
|
|
77
|
+
.#{aloha.$aloha-prefix}fs_#{$font_size_class} {
|
|
78
|
+
font-size: #{ $font_size_local } !important;
|
|
79
|
+
}
|
|
80
|
+
@if $font_size_is_tag {
|
|
81
|
+
h#{$font_size_class} {
|
|
82
|
+
font-size: #{ $font_size_local };
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|