origam 2.37.9 → 2.37.11
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 +2 -0
- package/dist/src/assets/css/tokens/light.css +1 -0
- package/dist/src/assets/scss/tokens/_dark.scss +2 -0
- package/dist/src/assets/scss/tokens/_light.scss +1 -0
- package/dist/src/components/Btn/OrigamBtn.vue +8 -1
- 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
|
@@ -338,6 +338,7 @@
|
|
|
338
338
|
--origam-btn---box-shadow-elevated: var(--origam-shadow---md);
|
|
339
339
|
--origam-btn---background-color-tonal: var(--origam-color__surface---overlay);
|
|
340
340
|
--origam-btn---background-color-tonal-active: var(--origam-color__surface---raised);
|
|
341
|
+
--origam-btn---background-color-text-active: transparent;
|
|
341
342
|
--origam-btn---box-shadow-tonal-active: var(--origam-shadow---xs);
|
|
342
343
|
--origam-btn---border-width-outlined: var(--origam-border__width---thin);
|
|
343
344
|
--origam-btn---border-width-ghost: var(--origam-border__width---thin);
|
|
@@ -3359,6 +3360,7 @@
|
|
|
3359
3360
|
--origam-btn---box-shadow-elevated: var(--origam-shadow---md);
|
|
3360
3361
|
--origam-btn---background-color-tonal: var(--origam-color__surface---overlay);
|
|
3361
3362
|
--origam-btn---background-color-tonal-active: var(--origam-color__surface---raised);
|
|
3363
|
+
--origam-btn---background-color-text-active: transparent;
|
|
3362
3364
|
--origam-btn---box-shadow-tonal-active: var(--origam-shadow---xs);
|
|
3363
3365
|
--origam-btn---border-width-outlined: var(--origam-border__width---thin);
|
|
3364
3366
|
--origam-btn---border-width-ghost: var(--origam-border__width---thin);
|
|
@@ -238,6 +238,7 @@
|
|
|
238
238
|
--origam-btn---box-shadow-elevated: var(--origam-shadow---md);
|
|
239
239
|
--origam-btn---background-color-tonal: var(--origam-color__surface---overlay);
|
|
240
240
|
--origam-btn---background-color-tonal-active: var(--origam-color__surface---raised);
|
|
241
|
+
--origam-btn---background-color-text-active: transparent;
|
|
241
242
|
--origam-btn---box-shadow-tonal-active: var(--origam-shadow---xs);
|
|
242
243
|
--origam-btn---border-width-outlined: var(--origam-border__width---thin);
|
|
243
244
|
--origam-btn---border-width-ghost: var(--origam-border__width---thin);
|
|
@@ -338,6 +338,7 @@
|
|
|
338
338
|
--origam-btn---box-shadow-elevated: var(--origam-shadow---md);
|
|
339
339
|
--origam-btn---background-color-tonal: var(--origam-color__surface---overlay);
|
|
340
340
|
--origam-btn---background-color-tonal-active: var(--origam-color__surface---raised);
|
|
341
|
+
--origam-btn---background-color-text-active: transparent;
|
|
341
342
|
--origam-btn---box-shadow-tonal-active: var(--origam-shadow---xs);
|
|
342
343
|
--origam-btn---border-width-outlined: var(--origam-border__width---thin);
|
|
343
344
|
--origam-btn---border-width-ghost: var(--origam-border__width---thin);
|
|
@@ -3359,6 +3360,7 @@
|
|
|
3359
3360
|
--origam-btn---box-shadow-elevated: var(--origam-shadow---md);
|
|
3360
3361
|
--origam-btn---background-color-tonal: var(--origam-color__surface---overlay);
|
|
3361
3362
|
--origam-btn---background-color-tonal-active: var(--origam-color__surface---raised);
|
|
3363
|
+
--origam-btn---background-color-text-active: transparent;
|
|
3362
3364
|
--origam-btn---box-shadow-tonal-active: var(--origam-shadow---xs);
|
|
3363
3365
|
--origam-btn---border-width-outlined: var(--origam-border__width---thin);
|
|
3364
3366
|
--origam-btn---border-width-ghost: var(--origam-border__width---thin);
|
|
@@ -238,6 +238,7 @@
|
|
|
238
238
|
--origam-btn---box-shadow-elevated: var(--origam-shadow---md);
|
|
239
239
|
--origam-btn---background-color-tonal: var(--origam-color__surface---overlay);
|
|
240
240
|
--origam-btn---background-color-tonal-active: var(--origam-color__surface---raised);
|
|
241
|
+
--origam-btn---background-color-text-active: transparent;
|
|
241
242
|
--origam-btn---box-shadow-tonal-active: var(--origam-shadow---xs);
|
|
242
243
|
--origam-btn---border-width-outlined: var(--origam-border__width---thin);
|
|
243
244
|
--origam-btn---border-width-ghost: var(--origam-border__width---thin);
|
|
@@ -790,8 +790,15 @@ defineExpose({
|
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
&--variant-text {
|
|
793
|
-
background-color: transparent
|
|
793
|
+
background-color: transparent;
|
|
794
794
|
box-shadow: none;
|
|
795
|
+
|
|
796
|
+
// #1222 — active fill is opt-in: `-background-color-text-active` is
|
|
797
|
+
// NOT declared in the sheets (like `-background-color-active` on
|
|
798
|
+
// outlined), so the default render stays transparent.
|
|
799
|
+
&#{$this}--active {
|
|
800
|
+
background-color: var(--origam-btn---background-color-text-active, transparent);
|
|
801
|
+
}
|
|
795
802
|
}
|
|
796
803
|
|
|
797
804
|
&--variant-elevated {
|
|
@@ -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);
|