origam 2.37.14 → 2.37.16
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 +22 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/primitive.css +1 -0
- package/dist/src/assets/scss/tokens/_primitive.scss +1 -0
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +2 -8
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +2 -8
- package/dist/src/components/Select/OrigamSelect.vue +2 -8
- package/dist/src/enums/Commons/font-family.enum.cjs +1 -0
- package/dist/src/enums/Commons/font-family.enum.d.ts +4 -2
- package/dist/src/enums/Commons/font-family.enum.js +1 -0
- package/dist/src/interfaces/Commons/typography.interface.d.ts +1 -1
- package/dist/src/types/Commons/font-family.type.d.ts +1 -1
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
--origam-font__family---sans: Inter, 'Helvetica Neue', Arial, sans-serif;
|
|
94
94
|
--origam-font__family---mono: 'JetBrains Mono', 'Fira Code', monospace;
|
|
95
95
|
--origam-font__family---serif: Georgia, 'Times New Roman', serif;
|
|
96
|
+
--origam-font__family---display: var(--origam-font__family---sans);
|
|
96
97
|
--origam-font__size---xs: 0.625rem;
|
|
97
98
|
--origam-font__size---sm: 0.75rem;
|
|
98
99
|
--origam-font__size---md: 0.875rem;
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
--origam-font__family---sans: Inter, 'Helvetica Neue', Arial, sans-serif;
|
|
94
94
|
--origam-font__family---mono: 'JetBrains Mono', 'Fira Code', monospace;
|
|
95
95
|
--origam-font__family---serif: Georgia, 'Times New Roman', serif;
|
|
96
|
+
--origam-font__family---display: var(--origam-font__family---sans);
|
|
96
97
|
--origam-font__size---xs: 0.625rem;
|
|
97
98
|
--origam-font__size---sm: 0.75rem;
|
|
98
99
|
--origam-font__size---md: 0.875rem;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
:id="id"
|
|
4
4
|
ref="origamTextFieldRef"
|
|
5
5
|
v-model:focused="isFocused"
|
|
6
|
-
:aria-label="t(
|
|
6
|
+
:aria-label="label ? t(label) : undefined"
|
|
7
7
|
:class="colorPickerFieldClasses"
|
|
8
8
|
:counter-value="counterValue"
|
|
9
9
|
:dirty="isDirty"
|
|
10
10
|
:placeholder="placeholder"
|
|
11
11
|
:style="colorPickerFieldStyles"
|
|
12
|
-
:title="t(
|
|
12
|
+
:title="label ? t(label) : undefined"
|
|
13
13
|
:validation-value="effectiveValidationValue"
|
|
14
14
|
|
|
15
15
|
v-bind="{ ...textFieldProps }"
|
|
@@ -439,12 +439,6 @@ const isDirty = computed(() => {
|
|
|
439
439
|
const placeholder = computed(() => {
|
|
440
440
|
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? void 0 : props.placeholder;
|
|
441
441
|
});
|
|
442
|
-
const toggleLabel = computed(() => {
|
|
443
|
-
return menu.value ? props.closeText : props.openText;
|
|
444
|
-
});
|
|
445
|
-
const accessibleLabel = computed(() => {
|
|
446
|
-
return props.label || toggleLabel.value;
|
|
447
|
-
});
|
|
448
442
|
watch(selectedValue, () => {
|
|
449
443
|
isFocused.value = hasSelectedValue.value;
|
|
450
444
|
}, {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
:id="id"
|
|
4
4
|
ref="origamTextFieldRef"
|
|
5
5
|
v-model:focused="isFocused"
|
|
6
|
-
:aria-label="t(
|
|
6
|
+
:aria-label="label ? t(label) : undefined"
|
|
7
7
|
:class="datePickerFieldClasses"
|
|
8
8
|
:counter-value="counterValue"
|
|
9
9
|
:dirty="isDirty"
|
|
10
10
|
:placeholder="placeholder"
|
|
11
11
|
:style="datePickerFieldStyles"
|
|
12
|
-
:title="t(
|
|
12
|
+
:title="label ? t(label) : undefined"
|
|
13
13
|
:validation-value="effectiveValidationValue"
|
|
14
14
|
|
|
15
15
|
v-bind="{ ...textFieldProps }"
|
|
@@ -545,12 +545,6 @@ const isDirty = computed(() => {
|
|
|
545
545
|
const placeholder = computed(() => {
|
|
546
546
|
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? void 0 : props.placeholder;
|
|
547
547
|
});
|
|
548
|
-
const toggleLabel = computed(() => {
|
|
549
|
-
return menu.value ? props.closeText : props.openText;
|
|
550
|
-
});
|
|
551
|
-
const accessibleLabel = computed(() => {
|
|
552
|
-
return props.label || toggleLabel.value;
|
|
553
|
-
});
|
|
554
548
|
const closeOnSelect = computed(() => {
|
|
555
549
|
return props.closeOnSelect && !(props.multiple || props.range);
|
|
556
550
|
});
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
ref="origamTextFieldRef"
|
|
5
5
|
v-model:focused="isFocused"
|
|
6
6
|
v-model:model-value="search"
|
|
7
|
-
:aria-label="t(
|
|
7
|
+
:aria-label="label ? t(label) : undefined"
|
|
8
8
|
:class="selectClasses"
|
|
9
9
|
:counter-value="counterValue"
|
|
10
10
|
:dirty="isDirty"
|
|
11
11
|
:placeholder="placeholder"
|
|
12
12
|
:style="selectStyles"
|
|
13
|
-
:title="t(
|
|
13
|
+
:title="label ? t(label) : undefined"
|
|
14
14
|
:validation-value="effectiveValidationValue"
|
|
15
15
|
v-bind="{ ...textFieldProps, ...comboboxAriaAttrs }"
|
|
16
16
|
@blur="handleBlur"
|
|
@@ -956,12 +956,6 @@ const isDirty = computed(() => {
|
|
|
956
956
|
const placeholder = computed(() => {
|
|
957
957
|
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? void 0 : props.placeholder;
|
|
958
958
|
});
|
|
959
|
-
const toggleLabel = computed(() => {
|
|
960
|
-
return menu.value ? props.closeText : props.openText;
|
|
961
|
-
});
|
|
962
|
-
const accessibleLabel = computed(() => {
|
|
963
|
-
return props.label || toggleLabel.value;
|
|
964
|
-
});
|
|
965
959
|
const selectStyles = computed(() => {
|
|
966
960
|
return [
|
|
967
961
|
props.style
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Font-family token keys. Map to `--origam-font__family---{key}`:
|
|
3
3
|
* sans (Inter / Helvetica Neue / Arial) · mono (JetBrains Mono / Fira Code) ·
|
|
4
|
-
* serif (Georgia / Times New Roman)
|
|
4
|
+
* serif (Georgia / Times New Roman) · display (= sans unless a theme sets
|
|
5
|
+
* `typo.family.display`)
|
|
5
6
|
*/
|
|
6
7
|
export declare enum FONT_FAMILY {
|
|
7
8
|
SANS = "sans",
|
|
8
9
|
MONO = "mono",
|
|
9
|
-
SERIF = "serif"
|
|
10
|
+
SERIF = "serif",
|
|
11
|
+
DISPLAY = "display"
|
|
10
12
|
}
|
|
@@ -33,7 +33,7 @@ import type { TTextTransform } from '../../types/Commons/text-transform.type';
|
|
|
33
33
|
export interface ITypographyProps {
|
|
34
34
|
/**
|
|
35
35
|
* Font family token. Maps to `--origam-font__family---{fontFamily}`
|
|
36
|
-
* (sans · mono · serif).
|
|
36
|
+
* (sans · mono · serif · display).
|
|
37
37
|
* When unset, the component keeps its theme font-family.
|
|
38
38
|
*/
|
|
39
39
|
fontFamily?: TFontFamily;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FONT_FAMILY } from '../../enums/Commons/font-family.enum';
|
|
2
2
|
/**
|
|
3
3
|
* Font-family token keys (map to `--origam-font__family---{key}`):
|
|
4
|
-
* sans (Inter / Helvetica Neue / Arial) · mono (JetBrains Mono / Fira Code) · serif (Georgia / Times New Roman)
|
|
4
|
+
* sans (Inter / Helvetica Neue / Arial) · mono (JetBrains Mono / Fira Code) · serif (Georgia / Times New Roman) · display (= sans unless themed)
|
|
5
5
|
*/
|
|
6
6
|
export type TFontFamily = `${FONT_FAMILY}`;
|