origam 2.44.1 → 2.45.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.
@@ -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: var(--origam-color__surface---default);
2057
- --origam-data-list---color: var(--origam-color__text---primary);
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: hidden;
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: var(--origam-color__surface---default);
1881
- --origam-data-list---color: var(--origam-color__text---primary);
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: hidden;
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: var(--origam-color__surface---default);
2057
- --origam-data-list---color: var(--origam-color__text---primary);
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: hidden;
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: var(--origam-color__surface---default);
5114
- --origam-data-list---color: var(--origam-color__text---primary);
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: hidden;
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: var(--origam-color__surface---default);
1959
- --origam-data-list---color: var(--origam-color__text---primary);
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: hidden;
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
+ }
@@ -30,6 +30,9 @@
30
30
  // equal specificity (0,1,0) thanks to source order.
31
31
  @forward 'tokens/origam-utilities';
32
32
 
33
+ // Ripple directive nodes (#1177).
34
+ @forward 'ripple';
35
+
33
36
  // Public mixin surface.
34
37
  @forward 'helpers';
35
38
 
@@ -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: var(--origam-color__surface---default);
2057
- --origam-data-list---color: var(--origam-color__text---primary);
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: hidden;
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: var(--origam-color__surface---default);
5114
- --origam-data-list---color: var(--origam-color__text---primary);
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: hidden;
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: var(--origam-color__surface---default);
1959
- --origam-data-list---color: var(--origam-color__text---primary);
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: hidden;
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);
@@ -82,7 +82,7 @@ import { computed, StyleValue, toRef } from "vue";
82
82
  const props = defineProps({
83
83
  text: {
84
84
  type: [String, Number],
85
- required: true
85
+ required: false
86
86
  },
87
87
  id: {
88
88
  type: String,
@@ -85,7 +85,7 @@ import { computed, StyleValue, toRef } from "vue";
85
85
  const props = defineProps({
86
86
  text: {
87
87
  type: [String, Number],
88
- required: true
88
+ required: false
89
89
  },
90
90
  id: {
91
91
  type: String,
@@ -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);
@@ -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: string | number;
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: string | number;
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: string | number;
22
+ text?: string | number;
23
23
  }) => any;
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "origam",
3
- "version": "2.44.1",
3
+ "version": "2.45.0",
4
4
  "type": "module",
5
5
  "description": "origam — a Vue 3 design system with multi-theme design tokens, CSS-first components and TypeScript types.",
6
6
  "keywords": [