origam 2.37.10 → 2.37.12
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/dark.css +4 -0
- package/dist/src/assets/css/tokens/light.css +2 -0
- package/dist/src/assets/scss/tokens/_dark.scss +4 -0
- package/dist/src/assets/scss/tokens/_light.scss +2 -0
- package/dist/src/components/List/OrigamListItem.vue +2 -2
- package/dist/src/composables/Commons/theme-props-resolver.composable.cjs +3 -1
- package/dist/src/composables/Commons/theme-props-resolver.composable.js +3 -1
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1891,6 +1891,8 @@
|
|
|
1891
1891
|
--origam-list-item---pointer-events: none;
|
|
1892
1892
|
--origam-list-item---user-select: none;
|
|
1893
1893
|
--origam-list-item---opacity: var(--origam-opacity---60);
|
|
1894
|
+
--origam-list-item---overlay-opacity-active: 0.12;
|
|
1895
|
+
--origam-list-item---overlay-opacity-active-hover: 0.16;
|
|
1894
1896
|
--origam-list-item---cursor: pointer;
|
|
1895
1897
|
--origam-list__item---overlay-opacity: var(--origam-opacity---0);
|
|
1896
1898
|
--origam-list__item---overlay-background-color: currentColor;
|
|
@@ -4913,6 +4915,8 @@
|
|
|
4913
4915
|
--origam-list-item---pointer-events: none;
|
|
4914
4916
|
--origam-list-item---user-select: none;
|
|
4915
4917
|
--origam-list-item---opacity: var(--origam-opacity---60);
|
|
4918
|
+
--origam-list-item---overlay-opacity-active: 0.12;
|
|
4919
|
+
--origam-list-item---overlay-opacity-active-hover: 0.16;
|
|
4916
4920
|
--origam-list-item---cursor: pointer;
|
|
4917
4921
|
--origam-list__item---overlay-opacity: var(--origam-opacity---0);
|
|
4918
4922
|
--origam-list__item---overlay-background-color: currentColor;
|
|
@@ -1793,6 +1793,8 @@
|
|
|
1793
1793
|
--origam-list-item---pointer-events: none;
|
|
1794
1794
|
--origam-list-item---user-select: none;
|
|
1795
1795
|
--origam-list-item---opacity: var(--origam-opacity---60);
|
|
1796
|
+
--origam-list-item---overlay-opacity-active: 0.12;
|
|
1797
|
+
--origam-list-item---overlay-opacity-active-hover: 0.16;
|
|
1796
1798
|
--origam-list-item---cursor: pointer;
|
|
1797
1799
|
--origam-list__item---overlay-opacity: var(--origam-opacity---0);
|
|
1798
1800
|
--origam-list__item---overlay-background-color: currentColor;
|
|
@@ -1891,6 +1891,8 @@
|
|
|
1891
1891
|
--origam-list-item---pointer-events: none;
|
|
1892
1892
|
--origam-list-item---user-select: none;
|
|
1893
1893
|
--origam-list-item---opacity: var(--origam-opacity---60);
|
|
1894
|
+
--origam-list-item---overlay-opacity-active: 0.12;
|
|
1895
|
+
--origam-list-item---overlay-opacity-active-hover: 0.16;
|
|
1894
1896
|
--origam-list-item---cursor: pointer;
|
|
1895
1897
|
--origam-list__item---overlay-opacity: var(--origam-opacity---0);
|
|
1896
1898
|
--origam-list__item---overlay-background-color: currentColor;
|
|
@@ -4913,6 +4915,8 @@
|
|
|
4913
4915
|
--origam-list-item---pointer-events: none;
|
|
4914
4916
|
--origam-list-item---user-select: none;
|
|
4915
4917
|
--origam-list-item---opacity: var(--origam-opacity---60);
|
|
4918
|
+
--origam-list-item---overlay-opacity-active: 0.12;
|
|
4919
|
+
--origam-list-item---overlay-opacity-active-hover: 0.16;
|
|
4916
4920
|
--origam-list-item---cursor: pointer;
|
|
4917
4921
|
--origam-list__item---overlay-opacity: var(--origam-opacity---0);
|
|
4918
4922
|
--origam-list__item---overlay-background-color: currentColor;
|
|
@@ -1793,6 +1793,8 @@
|
|
|
1793
1793
|
--origam-list-item---pointer-events: none;
|
|
1794
1794
|
--origam-list-item---user-select: none;
|
|
1795
1795
|
--origam-list-item---opacity: var(--origam-opacity---60);
|
|
1796
|
+
--origam-list-item---overlay-opacity-active: 0.12;
|
|
1797
|
+
--origam-list-item---overlay-opacity-active-hover: 0.16;
|
|
1796
1798
|
--origam-list-item---cursor: pointer;
|
|
1797
1799
|
--origam-list__item---overlay-opacity: var(--origam-opacity---0);
|
|
1798
1800
|
--origam-list__item---overlay-background-color: currentColor;
|
|
@@ -693,13 +693,13 @@ defineExpose({
|
|
|
693
693
|
&--active,
|
|
694
694
|
[aria-haspopup=menu][aria-expanded=true] {
|
|
695
695
|
> #{$this}__overlay {
|
|
696
|
-
--origam-list-item__overlay---opacity:
|
|
696
|
+
--origam-list-item__overlay---opacity: var(--origam-list-item---overlay-opacity-active, 0.12);
|
|
697
697
|
}
|
|
698
698
|
|
|
699
699
|
&:hover,
|
|
700
700
|
&:focus-visible {
|
|
701
701
|
> #{$this}__overlay {
|
|
702
|
-
--origam-list-item__overlay---opacity:
|
|
702
|
+
--origam-list-item__overlay---opacity: var(--origam-list-item---overlay-opacity-active-hover, 0.16);
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
}
|
|
@@ -120,7 +120,9 @@ function installThemePropsResolver(app, themedKeysUnion, variantPresets = {}) {
|
|
|
120
120
|
const rawProps = instance.props;
|
|
121
121
|
for (const key of targetKeys) {
|
|
122
122
|
if (!(key in rawProps)) {
|
|
123
|
-
(
|
|
123
|
+
if (themedKeysUnion.get(name)?.has(key) || key in (defaults.value?.[name] ?? {})) {
|
|
124
|
+
(0, _color.warnUnsupportedProp)(name, key, `theme names this prop but <${name}> does not declare it`);
|
|
125
|
+
}
|
|
124
126
|
continue;
|
|
125
127
|
}
|
|
126
128
|
patchThemedPropSlot(instance, defaults, name, key, presetTable);
|
|
@@ -110,7 +110,9 @@ export function installThemePropsResolver(app, themedKeysUnion, variantPresets =
|
|
|
110
110
|
const rawProps = instance.props;
|
|
111
111
|
for (const key of targetKeys) {
|
|
112
112
|
if (!(key in rawProps)) {
|
|
113
|
-
|
|
113
|
+
if (themedKeysUnion.get(name)?.has(key) || key in (defaults.value?.[name] ?? {})) {
|
|
114
|
+
warnUnsupportedProp(name, key, `theme names this prop but <${name}> does not declare it`);
|
|
115
|
+
}
|
|
114
116
|
continue;
|
|
115
117
|
}
|
|
116
118
|
patchThemedPropSlot(instance, defaults, name, key, presetTable);
|