origam 2.44.1 → 2.46.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 +36 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark-pinned.css +3 -3
- package/dist/src/assets/css/tokens/dark-system.css +3 -3
- package/dist/src/assets/css/tokens/dark.css +6 -6
- package/dist/src/assets/css/tokens/light.css +3 -3
- package/dist/src/assets/scss/_ripple.scss +47 -0
- package/dist/src/assets/scss/main.scss +3 -0
- package/dist/src/assets/scss/tokens/_dark.scss +6 -6
- package/dist/src/assets/scss/tokens/_light.scss +3 -3
- package/dist/src/components/DataList/OrigamDataText.vue +1 -1
- package/dist/src/components/DataList/OrigamDataTitle.vue +1 -1
- package/dist/src/components/List/OrigamListItem.vue +5 -5
- package/dist/src/composables/Commons/rounded.composable.d.ts +3 -10
- package/dist/src/composables/Commons/unsupportedProp.composable.cjs +6 -4
- package/dist/src/composables/Commons/unsupportedProp.composable.d.ts +5 -0
- package/dist/src/composables/Commons/unsupportedProp.composable.js +7 -5
- package/dist/src/composables/Commons/velocity.composable.d.ts +1 -1
- package/dist/src/interfaces/DataList/data-text.interface.d.ts +1 -1
- package/dist/src/interfaces/DataList/data-title.interface.d.ts +2 -2
- package/dist/src/types/Code/code.type.d.ts +7 -2
- package/dist/src/utils/Commons/spacing.util.cjs +1 -2
- package/dist/src/utils/Commons/spacing.util.d.ts +1 -1
- package/dist/src/utils/Commons/spacing.util.js +2 -3
- package/package.json +1 -1
|
@@ -2053,13 +2053,13 @@
|
|
|
2053
2053
|
--origam-expansion-panel__popout---max-width-active: calc(100% + 16px);
|
|
2054
2054
|
--origam-expansion-panel__inset---max-width: 100%;
|
|
2055
2055
|
--origam-expansion-panel__inset---max-width-active: calc(100% - 32px);
|
|
2056
|
-
--origam-data-list---background-color:
|
|
2057
|
-
--origam-data-list---color:
|
|
2056
|
+
--origam-data-list---background-color: transparent;
|
|
2057
|
+
--origam-data-list---color: inherit;
|
|
2058
2058
|
--origam-data-list---border-radius: var(--origam-radius---none);
|
|
2059
2059
|
--origam-data-list---padding: var(--origam-space---0);
|
|
2060
2060
|
--origam-data-list---gap: var(--origam-space---0);
|
|
2061
2061
|
--origam-data-list---display: block;
|
|
2062
|
-
--origam-data-list---overflow:
|
|
2062
|
+
--origam-data-list---overflow: visible;
|
|
2063
2063
|
--origam-data-list__item---background-color: rgba(0, 0, 0, 0);
|
|
2064
2064
|
--origam-data-list__item---padding: var(--origam-space---0);
|
|
2065
2065
|
--origam-data-list__item---hover-background-color: var(--origam-color__surface---overlay);
|
|
@@ -1877,13 +1877,13 @@
|
|
|
1877
1877
|
--origam-expansion-panel__popout---max-width-active: calc(100% + 16px);
|
|
1878
1878
|
--origam-expansion-panel__inset---max-width: 100%;
|
|
1879
1879
|
--origam-expansion-panel__inset---max-width-active: calc(100% - 32px);
|
|
1880
|
-
--origam-data-list---background-color:
|
|
1881
|
-
--origam-data-list---color:
|
|
1880
|
+
--origam-data-list---background-color: transparent;
|
|
1881
|
+
--origam-data-list---color: inherit;
|
|
1882
1882
|
--origam-data-list---border-radius: var(--origam-radius---none);
|
|
1883
1883
|
--origam-data-list---padding: var(--origam-space---0);
|
|
1884
1884
|
--origam-data-list---gap: var(--origam-space---0);
|
|
1885
1885
|
--origam-data-list---display: block;
|
|
1886
|
-
--origam-data-list---overflow:
|
|
1886
|
+
--origam-data-list---overflow: visible;
|
|
1887
1887
|
--origam-data-list__item---background-color: rgba(0, 0, 0, 0);
|
|
1888
1888
|
--origam-data-list__item---padding: var(--origam-space---0);
|
|
1889
1889
|
--origam-data-list__item---hover-background-color: var(--origam-color__surface---overlay);
|
|
@@ -2053,13 +2053,13 @@
|
|
|
2053
2053
|
--origam-expansion-panel__popout---max-width-active: calc(100% + 16px);
|
|
2054
2054
|
--origam-expansion-panel__inset---max-width: 100%;
|
|
2055
2055
|
--origam-expansion-panel__inset---max-width-active: calc(100% - 32px);
|
|
2056
|
-
--origam-data-list---background-color:
|
|
2057
|
-
--origam-data-list---color:
|
|
2056
|
+
--origam-data-list---background-color: transparent;
|
|
2057
|
+
--origam-data-list---color: inherit;
|
|
2058
2058
|
--origam-data-list---border-radius: var(--origam-radius---none);
|
|
2059
2059
|
--origam-data-list---padding: var(--origam-space---0);
|
|
2060
2060
|
--origam-data-list---gap: var(--origam-space---0);
|
|
2061
2061
|
--origam-data-list---display: block;
|
|
2062
|
-
--origam-data-list---overflow:
|
|
2062
|
+
--origam-data-list---overflow: visible;
|
|
2063
2063
|
--origam-data-list__item---background-color: rgba(0, 0, 0, 0);
|
|
2064
2064
|
--origam-data-list__item---padding: var(--origam-space---0);
|
|
2065
2065
|
--origam-data-list__item---hover-background-color: var(--origam-color__surface---overlay);
|
|
@@ -5110,13 +5110,13 @@
|
|
|
5110
5110
|
--origam-expansion-panel__popout---max-width-active: calc(100% + 16px);
|
|
5111
5111
|
--origam-expansion-panel__inset---max-width: 100%;
|
|
5112
5112
|
--origam-expansion-panel__inset---max-width-active: calc(100% - 32px);
|
|
5113
|
-
--origam-data-list---background-color:
|
|
5114
|
-
--origam-data-list---color:
|
|
5113
|
+
--origam-data-list---background-color: transparent;
|
|
5114
|
+
--origam-data-list---color: inherit;
|
|
5115
5115
|
--origam-data-list---border-radius: var(--origam-radius---none);
|
|
5116
5116
|
--origam-data-list---padding: var(--origam-space---0);
|
|
5117
5117
|
--origam-data-list---gap: var(--origam-space---0);
|
|
5118
5118
|
--origam-data-list---display: block;
|
|
5119
|
-
--origam-data-list---overflow:
|
|
5119
|
+
--origam-data-list---overflow: visible;
|
|
5120
5120
|
--origam-data-list__item---background-color: rgba(0, 0, 0, 0);
|
|
5121
5121
|
--origam-data-list__item---padding: var(--origam-space---0);
|
|
5122
5122
|
--origam-data-list__item---hover-background-color: var(--origam-color__surface---overlay);
|
|
@@ -1955,13 +1955,13 @@
|
|
|
1955
1955
|
--origam-expansion-panel__popout---max-width-active: calc(100% + 16px);
|
|
1956
1956
|
--origam-expansion-panel__inset---max-width: 100%;
|
|
1957
1957
|
--origam-expansion-panel__inset---max-width-active: calc(100% - 32px);
|
|
1958
|
-
--origam-data-list---background-color:
|
|
1959
|
-
--origam-data-list---color:
|
|
1958
|
+
--origam-data-list---background-color: transparent;
|
|
1959
|
+
--origam-data-list---color: inherit;
|
|
1960
1960
|
--origam-data-list---border-radius: var(--origam-radius---none);
|
|
1961
1961
|
--origam-data-list---padding: var(--origam-space---0);
|
|
1962
1962
|
--origam-data-list---gap: var(--origam-space---0);
|
|
1963
1963
|
--origam-data-list---display: block;
|
|
1964
|
-
--origam-data-list---overflow:
|
|
1964
|
+
--origam-data-list---overflow: visible;
|
|
1965
1965
|
--origam-data-list__item---background-color: rgba(0, 0, 0, 0);
|
|
1966
1966
|
--origam-data-list__item---padding: var(--origam-space---0);
|
|
1967
1967
|
--origam-data-list__item---hover-background-color: var(--origam-color__surface---overlay);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Ripple directive (`v-ripple`) — styles of the nodes `RIPPLES.show` appends to
|
|
2
|
+
// its host (consts/Commons/ripple.const.ts). #1177: no sheet styled them, so the
|
|
3
|
+
// container sat `static` in the host's flow (Btn 77.0 → 78.1 px on press) and the
|
|
4
|
+
// wave had no fill. The container is absolute + clipped, so it never takes part
|
|
5
|
+
// in the host's layout; the wave paints `currentColor`.
|
|
6
|
+
|
|
7
|
+
.origam-ripple__container {
|
|
8
|
+
position: absolute;
|
|
9
|
+
inset: 0;
|
|
10
|
+
z-index: 0;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
border-radius: inherit;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
contain: strict;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.origam-ripple__animation {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
border-radius: 50%;
|
|
22
|
+
background: currentColor;
|
|
23
|
+
opacity: 0;
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
will-change: transform, opacity;
|
|
26
|
+
|
|
27
|
+
&--enter {
|
|
28
|
+
transition: none;
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&--in {
|
|
33
|
+
transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1), opacity 0.1s cubic-bezier(0, 0, 0.2, 1);
|
|
34
|
+
opacity: 0.3;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&--out {
|
|
38
|
+
transition: opacity 0.3s cubic-bezier(0, 0, 0.2, 1);
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (prefers-reduced-motion: reduce) {
|
|
44
|
+
.origam-ripple__animation {
|
|
45
|
+
transition: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -2053,13 +2053,13 @@
|
|
|
2053
2053
|
--origam-expansion-panel__popout---max-width-active: calc(100% + 16px);
|
|
2054
2054
|
--origam-expansion-panel__inset---max-width: 100%;
|
|
2055
2055
|
--origam-expansion-panel__inset---max-width-active: calc(100% - 32px);
|
|
2056
|
-
--origam-data-list---background-color:
|
|
2057
|
-
--origam-data-list---color:
|
|
2056
|
+
--origam-data-list---background-color: transparent;
|
|
2057
|
+
--origam-data-list---color: inherit;
|
|
2058
2058
|
--origam-data-list---border-radius: var(--origam-radius---none);
|
|
2059
2059
|
--origam-data-list---padding: var(--origam-space---0);
|
|
2060
2060
|
--origam-data-list---gap: var(--origam-space---0);
|
|
2061
2061
|
--origam-data-list---display: block;
|
|
2062
|
-
--origam-data-list---overflow:
|
|
2062
|
+
--origam-data-list---overflow: visible;
|
|
2063
2063
|
--origam-data-list__item---background-color: rgba(0, 0, 0, 0);
|
|
2064
2064
|
--origam-data-list__item---padding: var(--origam-space---0);
|
|
2065
2065
|
--origam-data-list__item---hover-background-color: var(--origam-color__surface---overlay);
|
|
@@ -5110,13 +5110,13 @@
|
|
|
5110
5110
|
--origam-expansion-panel__popout---max-width-active: calc(100% + 16px);
|
|
5111
5111
|
--origam-expansion-panel__inset---max-width: 100%;
|
|
5112
5112
|
--origam-expansion-panel__inset---max-width-active: calc(100% - 32px);
|
|
5113
|
-
--origam-data-list---background-color:
|
|
5114
|
-
--origam-data-list---color:
|
|
5113
|
+
--origam-data-list---background-color: transparent;
|
|
5114
|
+
--origam-data-list---color: inherit;
|
|
5115
5115
|
--origam-data-list---border-radius: var(--origam-radius---none);
|
|
5116
5116
|
--origam-data-list---padding: var(--origam-space---0);
|
|
5117
5117
|
--origam-data-list---gap: var(--origam-space---0);
|
|
5118
5118
|
--origam-data-list---display: block;
|
|
5119
|
-
--origam-data-list---overflow:
|
|
5119
|
+
--origam-data-list---overflow: visible;
|
|
5120
5120
|
--origam-data-list__item---background-color: rgba(0, 0, 0, 0);
|
|
5121
5121
|
--origam-data-list__item---padding: var(--origam-space---0);
|
|
5122
5122
|
--origam-data-list__item---hover-background-color: var(--origam-color__surface---overlay);
|
|
@@ -1955,13 +1955,13 @@
|
|
|
1955
1955
|
--origam-expansion-panel__popout---max-width-active: calc(100% + 16px);
|
|
1956
1956
|
--origam-expansion-panel__inset---max-width: 100%;
|
|
1957
1957
|
--origam-expansion-panel__inset---max-width-active: calc(100% - 32px);
|
|
1958
|
-
--origam-data-list---background-color:
|
|
1959
|
-
--origam-data-list---color:
|
|
1958
|
+
--origam-data-list---background-color: transparent;
|
|
1959
|
+
--origam-data-list---color: inherit;
|
|
1960
1960
|
--origam-data-list---border-radius: var(--origam-radius---none);
|
|
1961
1961
|
--origam-data-list---padding: var(--origam-space---0);
|
|
1962
1962
|
--origam-data-list---gap: var(--origam-space---0);
|
|
1963
1963
|
--origam-data-list---display: block;
|
|
1964
|
-
--origam-data-list---overflow:
|
|
1964
|
+
--origam-data-list---overflow: visible;
|
|
1965
1965
|
--origam-data-list__item---background-color: rgba(0, 0, 0, 0);
|
|
1966
1966
|
--origam-data-list__item---padding: var(--origam-space---0);
|
|
1967
1967
|
--origam-data-list__item---hover-background-color: var(--origam-color__surface---overlay);
|
|
@@ -931,9 +931,6 @@ const ariaSelected = computed(() => {
|
|
|
931
931
|
const ariaDisabled = computed(() => {
|
|
932
932
|
return isOption.value ? props.disabled : undefined;
|
|
933
933
|
});
|
|
934
|
-
const isLink = computed(() => {
|
|
935
|
-
return props.link && link.isLink.value;
|
|
936
|
-
});
|
|
937
934
|
// `isClickable` drives cursor: pointer, the ripple, the keydown
|
|
938
935
|
// handler, the `--link` modifier class, the focusable tabindex, and
|
|
939
936
|
// the click bridge. It must be true whenever the item is interactive
|
|
@@ -994,7 +991,7 @@ const handleClick = (e) => {
|
|
|
994
991
|
* handleKeyDown (#439)
|
|
995
992
|
*
|
|
996
993
|
* @description
|
|
997
|
-
* `@keydown="isClickable && !isLink && handleKeyDown"` used to compile
|
|
994
|
+
* `@keydown="isClickable && !link.isLink && handleKeyDown"` used to compile
|
|
998
995
|
* to `$event => (cond && _ctx.handleKeyDown)` — Vue's inline-statement
|
|
999
996
|
* form for anything more complex than a bare member expression. The
|
|
1000
997
|
* expression EVALUATES `handleKeyDown` (a function reference) and
|
|
@@ -1004,9 +1001,12 @@ const handleClick = (e) => {
|
|
|
1004
1001
|
* form Vue auto-invokes with `$event`) — the guard moves in here,
|
|
1005
1002
|
* where wrapping it in `&&`/`?:` again can't silently undo the fix
|
|
1006
1003
|
* (see issue #439 / #397).
|
|
1004
|
+
* @description
|
|
1005
|
+
* #1066 — a row with `href`/`to` is a real <a>: Enter is native. Intercepting it
|
|
1006
|
+
* (preventDefault) made vue-router's navigate() bail on `defaultPrevented`.
|
|
1007
1007
|
********************************************************/
|
|
1008
1008
|
const handleKeyDown = (e) => {
|
|
1009
|
-
if (!isClickable.value || isLink.value) return;
|
|
1009
|
+
if (!isClickable.value || link.isLink.value) return;
|
|
1010
1010
|
if (e.key === KEYBOARD_VALUES.ENTER || e.key === " ") {
|
|
1011
1011
|
e.preventDefault();
|
|
1012
1012
|
click(e);
|
|
@@ -35,15 +35,8 @@ import type { TRounded } from '../../types/Commons/rounded.type';
|
|
|
35
35
|
* block-start inline-end — top-RIGHT in LTR. They are NOT the physical
|
|
36
36
|
* clockwise order, and the two halves are not interchangeable.
|
|
37
37
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* shorthand declaration ALONE. The bare string `"0"` is neither a utility
|
|
41
|
-
* rung, nor a named variant, nor a match for `CUSTOM_BORDER_RADIUS_REGEX`
|
|
42
|
-
* (which requires a unit), so `resolveRoundedCornerValue` returns `null`
|
|
43
|
-
* and the corner is silently skipped. `0` (the NUMBER) and `"0px"` both
|
|
44
|
-
* resolve to `0px`. In a template `roundedTopLeft="0"` is a string, which
|
|
45
|
-
* is exactly the failing form — bind `:rounded-top-left="0"` or write
|
|
46
|
-
* `"0px"`.
|
|
38
|
+
* Per-corner values that are not a rung pass verbatim (#1022), so
|
|
39
|
+
* `roundedTopLeft="0"` and `"10px 4px"` work like on `padding*`.
|
|
47
40
|
*
|
|
48
41
|
* ⚠️ The per-corner props are only reachable through the PROPS-OBJECT
|
|
49
42
|
* overload. The `Ref` overload carries a single scalar — the `rounded`
|
|
@@ -63,7 +56,7 @@ import type { TRounded } from '../../types/Commons/rounded.type';
|
|
|
63
56
|
* | `'4px 0 4px 0'` | inline 4-corner radii |
|
|
64
57
|
*
|
|
65
58
|
* Free-form strings are parsed by `BORDER_RADIUS_REGEX`. Anything that
|
|
66
|
-
* doesn't match (and isn't a `var()`/`calc()`) is silently dropped.
|
|
59
|
+
* doesn't match (and isn't a `var()`/`calc()`) is silently dropped (shorthand only).
|
|
67
60
|
* Accepted per-corner value forms are documented on
|
|
68
61
|
* `resolveRoundedCornerValue`.
|
|
69
62
|
********************************************************/
|
|
@@ -7,9 +7,11 @@ exports.useUnsupportedProp = useUnsupportedProp;
|
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
var _color = require("../../utils/Commons/color.util.cjs");
|
|
9
9
|
function useUnsupportedProp(component, prop, reason, isPassed) {
|
|
10
|
-
(0, _vue.
|
|
11
|
-
|
|
12
|
-
(
|
|
13
|
-
|
|
10
|
+
(0, _vue.onBeforeMount)(() => {
|
|
11
|
+
(0, _vue.watchEffect)(() => {
|
|
12
|
+
if (isPassed()) {
|
|
13
|
+
(0, _color.warnUnsupportedProp)(component, prop, reason);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
14
16
|
});
|
|
15
17
|
}
|
|
@@ -25,5 +25,10 @@
|
|
|
25
25
|
* Effet de bord utile : lire la prop dans le predicat la rend CONSOMMEE au
|
|
26
26
|
* sens du garde `unconsumed-props`. La surface cesse donc d'etre comptee
|
|
27
27
|
* morte, ce qui est exact — elle est desormais surveillee, pas ignoree.
|
|
28
|
+
*
|
|
29
|
+
* @description
|
|
30
|
+
* #1483 — l'evaluation attend `onBeforeMount` : setup() s'execute AVANT le
|
|
31
|
+
* `beforeCreate` ou le resolveur de theme (ADR-005) ecrit `instance.props`,
|
|
32
|
+
* donc une valeur posee par `theme.components` n'y serait jamais vue.
|
|
28
33
|
********************************************************/
|
|
29
34
|
export declare function useUnsupportedProp(component: string, prop: string, reason: string, isPassed: () => boolean): void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { watchEffect } from "vue";
|
|
1
|
+
import { onBeforeMount, watchEffect } from "vue";
|
|
2
2
|
import { warnUnsupportedProp } from "../../utils/Commons/color.util.js";
|
|
3
3
|
export function useUnsupportedProp(component, prop, reason, isPassed) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
onBeforeMount(() => {
|
|
5
|
+
watchEffect(() => {
|
|
6
|
+
if (isPassed()) {
|
|
7
|
+
warnUnsupportedProp(component, prop, reason);
|
|
8
|
+
}
|
|
9
|
+
});
|
|
8
10
|
});
|
|
9
11
|
}
|
|
@@ -5,7 +5,7 @@ import type { IDensityProps } from '../Commons/density.interface';
|
|
|
5
5
|
import type { IMarginProps } from '../Commons/margin.interface';
|
|
6
6
|
import type { IPaddingProps } from '../Commons/padding.interface';
|
|
7
7
|
export interface IDataTextProps extends ICommonsComponentProps, IAdjacentProps, IDensityProps, IMarginProps, IPaddingProps, IColorProps, IBgColorProps {
|
|
8
|
-
text
|
|
8
|
+
text?: string | number;
|
|
9
9
|
}
|
|
10
10
|
/*********************************************************
|
|
11
11
|
* IDataTextEmits
|
|
@@ -5,7 +5,7 @@ import type { IDensityProps } from '../Commons/density.interface';
|
|
|
5
5
|
import type { IMarginProps } from '../Commons/margin.interface';
|
|
6
6
|
import type { IPaddingProps } from '../Commons/padding.interface';
|
|
7
7
|
export interface IDataTitleProps extends ICommonsComponentProps, IAdjacentProps, IDensityProps, IMarginProps, IPaddingProps, IColorProps, IBgColorProps {
|
|
8
|
-
text
|
|
8
|
+
text?: string | number;
|
|
9
9
|
}
|
|
10
10
|
/*********************************************************
|
|
11
11
|
* IDataTitleEmits
|
|
@@ -19,6 +19,6 @@ export interface IDataTitleEmits extends IAdjacentEmits {
|
|
|
19
19
|
/** Slot signatures for `<OrigamDataTitle>`. */
|
|
20
20
|
export interface IDataTitleSlots extends IAdjacentSlots {
|
|
21
21
|
default?: (data: {
|
|
22
|
-
text
|
|
22
|
+
text?: string | number;
|
|
23
23
|
}) => any;
|
|
24
24
|
}
|
|
@@ -25,15 +25,20 @@ export type TCodeTheme = `${CODE_THEME}`;
|
|
|
25
25
|
* requirement for every consumer, including those who never install it.
|
|
26
26
|
* Declaring the one method we use keeps the dynamic-import fallback
|
|
27
27
|
* path type-safe with zero dependency on the package being present.
|
|
28
|
+
*
|
|
29
|
+
* `themes` and `defaultColor` are REQUIRED on purpose (#1136): `useCode()`
|
|
30
|
+
* always passes both, and an optional `themes?` is not assignable to shiki's
|
|
31
|
+
* `CodeOptionsMultipleThemes` (parameters are contravariant), which rejected
|
|
32
|
+
* every real highlighter — `createHighlighter` and `createHighlighterCore`.
|
|
28
33
|
*/
|
|
29
34
|
export type TShikiHighlighter = {
|
|
30
35
|
codeToHtml: (code: string, opts: {
|
|
31
36
|
lang: string;
|
|
32
|
-
themes
|
|
37
|
+
themes: {
|
|
33
38
|
light: string;
|
|
34
39
|
dark: string;
|
|
35
40
|
};
|
|
36
|
-
defaultColor
|
|
41
|
+
defaultColor: false;
|
|
37
42
|
}) => string;
|
|
38
43
|
};
|
|
39
44
|
/*********************************************************
|
|
@@ -30,6 +30,5 @@ function resolveRoundedCornerValue(value) {
|
|
|
30
30
|
if (_rounded.PREDEFINED_ROUNDED.includes(trimmed)) {
|
|
31
31
|
return _spacing.NAMED_RADIUS_TOKEN[trimmed] ?? null;
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
return null;
|
|
33
|
+
return trimmed;
|
|
35
34
|
}
|
|
@@ -44,7 +44,7 @@ export declare function resolveSpacingValue(value: boolean | number | string | n
|
|
|
44
44
|
* | `8` (number) | `"8px"` |
|
|
45
45
|
* | `"md"` (utility rung) | `"var(--origam-radius---md, 8px)"` |
|
|
46
46
|
* | `"large"` (named variant) | `"var(--origam-radius---xl, 16px)"` |
|
|
47
|
-
* | `"8px"`
|
|
47
|
+
* | anything else (`"8px"`, `"0"`, `"10px 4px"`, `"var(…)"`, `"calc(…)"`) | verbatim |
|
|
48
48
|
* | `"shaped"` / `"shaped-invert"` | `null` — corner-asymmetric, owned by component SCSS |
|
|
49
49
|
* | `true` / `false` / `""` / nullish | `null` |
|
|
50
50
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PREDEFINED_ROUNDED } from "../../consts/Commons/rounded.const.js";
|
|
2
2
|
import { NAMED_RADIUS_TOKEN, SPACING_SCALE_STEPS, UTILITY_RADIUS_FALLBACK } from "../../consts/Commons/spacing.const.js";
|
|
3
3
|
import { convertToUnit } from "./commons.util.js";
|
|
4
4
|
const SCALE_STEP_REGEX = /^\d+$/;
|
|
@@ -23,6 +23,5 @@ export function resolveRoundedCornerValue(value) {
|
|
|
23
23
|
if (PREDEFINED_ROUNDED.includes(trimmed)) {
|
|
24
24
|
return NAMED_RADIUS_TOKEN[trimmed] ?? null;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
return null;
|
|
26
|
+
return trimmed;
|
|
28
27
|
}
|