origam 2.42.0 → 2.44.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/dist/src/assets/css/main.css +1 -1
  3. package/dist/src/assets/css/tokens/dark-pinned.css +5 -1
  4. package/dist/src/assets/css/tokens/dark-system.css +5 -1
  5. package/dist/src/assets/css/tokens/dark.css +10 -2
  6. package/dist/src/assets/css/tokens/light.css +5 -1
  7. package/dist/src/assets/locales/en.json +3 -0
  8. package/dist/src/assets/locales/fr.json +3 -0
  9. package/dist/src/assets/scss/tokens/_dark.scss +10 -2
  10. package/dist/src/assets/scss/tokens/_light.scss +5 -1
  11. package/dist/src/components/Btn/OrigamBtn.vue +31 -10
  12. package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +3 -5
  13. package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +0 -1
  14. package/dist/src/components/DataTable/OrigamDataTableFooter.vue +3 -1
  15. package/dist/src/components/DataTable/OrigamDataTableHeaderCell.vue +20 -2
  16. package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +3 -5
  17. package/dist/src/components/Field/OrigamField.vue +17 -7
  18. package/dist/src/components/FileField/OrigamFileField.vue +3 -3
  19. package/dist/src/components/Form/OrigamForm.vue +0 -1
  20. package/dist/src/components/Input/OrigamInput.vue +0 -1
  21. package/dist/src/components/Messages/OrigamMessages.vue +1 -1
  22. package/dist/src/components/NumberField/OrigamNumberField.vue +26 -14
  23. package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +8 -5
  24. package/dist/src/components/PasswordField/OrigamPasswordField.vue +3 -3
  25. package/dist/src/components/Select/OrigamSelect.vue +22 -5
  26. package/dist/src/components/Stepper/OrigamStepper.vue +22 -1
  27. package/dist/src/components/Stepper/OrigamStepperItem.vue +46 -21
  28. package/dist/src/components/Table/OrigamTable.vue +1 -1
  29. package/dist/src/components/TextField/OrigamTextField.vue +3 -3
  30. package/dist/src/components/TextareaField/OrigamTextareaField.vue +3 -3
  31. package/dist/src/components/Toolbar/OrigamToolbar.vue +1 -1
  32. package/dist/src/composables/Commons/adjacentInner.composable.cjs +17 -3
  33. package/dist/src/composables/Commons/adjacentInner.composable.d.ts +5 -3
  34. package/dist/src/composables/Commons/adjacentInner.composable.js +18 -4
  35. package/dist/src/composables/Commons/link.composable.cjs +6 -5
  36. package/dist/src/composables/Commons/link.composable.js +6 -5
  37. package/dist/src/composables/Commons/popup-dialog-aria.composable.cjs +26 -0
  38. package/dist/src/composables/Commons/popup-dialog-aria.composable.d.ts +23 -0
  39. package/dist/src/composables/Commons/popup-dialog-aria.composable.js +17 -0
  40. package/dist/src/composables/Commons/stack.composable.cjs +2 -19
  41. package/dist/src/composables/Commons/stack.composable.d.ts +1 -1
  42. package/dist/src/composables/Commons/stack.composable.js +3 -20
  43. package/dist/src/composables/index.cjs +12 -0
  44. package/dist/src/composables/index.d.ts +1 -0
  45. package/dist/src/composables/index.js +1 -0
  46. package/dist/src/directives/Contrast/contrast.directive.cjs +52 -15
  47. package/dist/src/directives/Contrast/contrast.directive.js +47 -10
  48. package/dist/src/interfaces/NumberField/number-field.interface.d.ts +8 -0
  49. package/dist/src/interfaces/Stepper/stepper-item.interface.d.ts +11 -2
  50. package/dist/src/interfaces/Stepper/stepper.interface.d.ts +7 -0
  51. package/dist/src/interfaces/Table/table.interface.d.ts +2 -2
  52. package/dist/src/types/tokens.type.d.ts +1 -1
  53. package/package.json +1 -1
@@ -7,7 +7,6 @@ exports.useStack = useStack;
7
7
  var _toggleScope = require("./toggleScope.composable.cjs");
8
8
  var _stack = require("../../consts/Commons/stack.const.cjs");
9
9
  var _getCurrentInstance = require("../../utils/Commons/getCurrentInstance.util.cjs");
10
- var _commons = require("../../utils/Commons/commons.util.cjs");
11
10
  var _vue = require("vue");
12
11
  function useStack(isActive, zIndex, disableGlobalStack) {
13
12
  const vm = (0, _getCurrentInstance.getCurrentInstance)("useStack");
@@ -33,26 +32,10 @@ function useStack(isActive, zIndex, disableGlobalStack) {
33
32
  parent?.activeChildren.delete(vm.uid);
34
33
  });
35
34
  });
36
- const globalTop = (0, _vue.shallowRef)(true);
37
- let topTimer;
38
- (0, _vue.watchEffect)(() => {
39
- if (!createStackEntry.value) return;
40
- const _isTop = _stack.GLOBAL_STACK.at(-1)?.[0] === vm.uid;
41
- clearTimeout(topTimer);
42
- topTimer = setTimeout(() => {
43
- topTimer = void 0;
44
- globalTop.value = _isTop;
45
- });
46
- });
47
- (0, _commons.tryOnScopeDispose)(() => {
48
- if (topTimer !== void 0) {
49
- clearTimeout(topTimer);
50
- topTimer = void 0;
51
- }
52
- });
35
+ const globalTop = (0, _vue.computed)(() => !createStackEntry.value || _stack.GLOBAL_STACK.at(-1)?.[0] === vm.uid);
53
36
  const localTop = (0, _vue.computed)(() => !stack.activeChildren.size);
54
37
  return {
55
- globalTop: (0, _vue.readonly)(globalTop),
38
+ globalTop,
56
39
  localTop,
57
40
  stackStyles: (0, _vue.computed)(() => ({
58
41
  zIndex: _zIndex.value
@@ -18,7 +18,7 @@ import { Ref } from 'vue';
18
18
  * must not snapshot `disableGlobalStack` either.
19
19
  ********************************************************/
20
20
  export declare function useStack(isActive: Readonly<Ref<boolean>>, zIndex: Readonly<Ref<string | number>>, disableGlobalStack: Readonly<Ref<boolean>>): {
21
- globalTop: Readonly<Ref<boolean, boolean>>;
21
+ globalTop: import("vue").ComputedRef<boolean>;
22
22
  localTop: import("vue").ComputedRef<boolean>;
23
23
  stackStyles: import("vue").ComputedRef<{
24
24
  zIndex: number;
@@ -1,8 +1,7 @@
1
1
  import { useToggleScope } from "./toggleScope.composable.js";
2
2
  import { GLOBAL_STACK, ORIGAM_STACK_KEY, STACK_Z_INDEX_STEP } from "../../consts/Commons/stack.const.js";
3
3
  import { getCurrentInstance } from "../../utils/Commons/getCurrentInstance.util.js";
4
- import { tryOnScopeDispose } from "../../utils/Commons/commons.util.js";
5
- import { computed, inject, onScopeDispose, provide, reactive, readonly, shallowRef, toRaw, watchEffect } from "vue";
4
+ import { computed, inject, onScopeDispose, provide, reactive, shallowRef, toRaw } from "vue";
6
5
  export function useStack(isActive, zIndex, disableGlobalStack) {
7
6
  const vm = getCurrentInstance("useStack");
8
7
  const createStackEntry = computed(() => !disableGlobalStack.value);
@@ -27,26 +26,10 @@ export function useStack(isActive, zIndex, disableGlobalStack) {
27
26
  parent?.activeChildren.delete(vm.uid);
28
27
  });
29
28
  });
30
- const globalTop = shallowRef(true);
31
- let topTimer;
32
- watchEffect(() => {
33
- if (!createStackEntry.value) return;
34
- const _isTop = GLOBAL_STACK.at(-1)?.[0] === vm.uid;
35
- clearTimeout(topTimer);
36
- topTimer = setTimeout(() => {
37
- topTimer = void 0;
38
- globalTop.value = _isTop;
39
- });
40
- });
41
- tryOnScopeDispose(() => {
42
- if (topTimer !== void 0) {
43
- clearTimeout(topTimer);
44
- topTimer = void 0;
45
- }
46
- });
29
+ const globalTop = computed(() => !createStackEntry.value || GLOBAL_STACK.at(-1)?.[0] === vm.uid);
47
30
  const localTop = computed(() => !stack.activeChildren.size);
48
31
  return {
49
- globalTop: readonly(globalTop),
32
+ globalTop,
50
33
  localTop,
51
34
  stackStyles: computed(() => ({ zIndex: _zIndex.value }))
52
35
  };
@@ -876,6 +876,18 @@ Object.keys(_teleport).forEach(function (key) {
876
876
  }
877
877
  });
878
878
  });
879
+ var _popupDialogAria = require("./Commons/popup-dialog-aria.composable.cjs");
880
+ Object.keys(_popupDialogAria).forEach(function (key) {
881
+ if (key === "default" || key === "__esModule") return;
882
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
883
+ if (key in exports && exports[key] === _popupDialogAria[key]) return;
884
+ Object.defineProperty(exports, key, {
885
+ enumerable: true,
886
+ get: function () {
887
+ return _popupDialogAria[key];
888
+ }
889
+ });
890
+ });
879
891
  var _teleportTypography = require("./Commons/teleport-typography.composable.cjs");
880
892
  Object.keys(_teleportTypography).forEach(function (key) {
881
893
  if (key === "default" || key === "__esModule") return;
@@ -70,6 +70,7 @@ export * from './Commons/margin.composable';
70
70
  export * from './Commons/lazy.composable';
71
71
  export * from './Commons/items.composable';
72
72
  export * from './Commons/teleport.composable';
73
+ export * from './Commons/popup-dialog-aria.composable';
73
74
  export * from './Commons/teleport-typography.composable';
74
75
  export * from './Commons/hydration.composable';
75
76
  export * from './Commons/stack.composable';
@@ -70,6 +70,7 @@ export * from "./Commons/margin.composable.js";
70
70
  export * from "./Commons/lazy.composable.js";
71
71
  export * from "./Commons/items.composable.js";
72
72
  export * from "./Commons/teleport.composable.js";
73
+ export * from "./Commons/popup-dialog-aria.composable.js";
73
74
  export * from "./Commons/teleport-typography.composable.js";
74
75
  export * from "./Commons/hydration.composable.js";
75
76
  export * from "./Commons/stack.composable.js";
@@ -34,6 +34,33 @@ function srgbToRgb(color) {
34
34
  const a = m[4] !== void 0 ? parseFloat(m[4]) : 1;
35
35
  return a < 1 ? `rgba(${r}, ${g}, ${b}, ${a})` : `rgb(${r}, ${g}, ${b})`;
36
36
  }
37
+ function oklabToRgb(color) {
38
+ const m = /^\s*(oklab|oklch)\(\s*([^\s/)]+)\s+([^\s/)]+)\s+([^\s/)]+)(?:\s*\/\s*([^\s)]+))?\s*\)\s*$/i.exec(color);
39
+ if (!m) return null;
40
+ const num = (v, pct) => /^-?[\d.]+(?:e-?\d+)?%$/i.test(v) ? parseFloat(v) / 100 * pct : /^-?[\d.]+(?:e-?\d+)?(?:deg)?$/i.test(v) ? parseFloat(v) : NaN;
41
+ const L = num(m[2], 1);
42
+ let a = num(m[3], m[1].toLowerCase() === "oklab" ? 0.4 : 0.4);
43
+ let b = num(m[4], 0.4);
44
+ const alpha = m[5] === void 0 ? 1 : num(m[5], 1);
45
+ if ([L, a, b, alpha].some(Number.isNaN)) return null;
46
+ if (m[1].toLowerCase() === "oklch") {
47
+ const h = b * Math.PI / 180;
48
+ b = a * Math.sin(h);
49
+ a = a * Math.cos(h);
50
+ }
51
+ const l = (L + 0.3963377774 * a + 0.2158037573 * b) ** 3;
52
+ const mm = (L - 0.1055613458 * a - 0.0638541728 * b) ** 3;
53
+ const s = (L - 0.0894841775 * a - 1.291485548 * b) ** 3;
54
+ const enc = c => {
55
+ const v = Math.min(1, Math.max(0, c));
56
+ return Math.round((v <= 31308e-7 ? 12.92 * v : 1.055 * v ** (1 / 2.4) - 0.055) * 255);
57
+ };
58
+ const r = enc(4.0767416621 * l - 3.3077115913 * mm + 0.2309699292 * s);
59
+ const g = enc(-1.2684380046 * l + 2.6097574011 * mm - 0.3413193965 * s);
60
+ const bl = enc(-0.0041960863 * l - 0.7034186147 * mm + 1.707614701 * s);
61
+ const al = Math.min(1, Math.max(0, alpha));
62
+ return al < 1 ? `rgba(${r}, ${g}, ${bl}, ${al})` : `rgb(${r}, ${g}, ${bl})`;
63
+ }
37
64
  function hexToRgb(hex) {
38
65
  const m = /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(hex);
39
66
  if (!m) return null;
@@ -49,7 +76,7 @@ function hexToRgb(hex) {
49
76
  }
50
77
  function toRgb(color) {
51
78
  if (!color) return null;
52
- const direct = srgbToRgb(color);
79
+ const direct = srgbToRgb(color) ?? oklabToRgb(color);
53
80
  if (direct) return direct;
54
81
  if (/^rgba?\(/i.test(color)) return color;
55
82
  if (typeof document === "undefined") return color;
@@ -86,31 +113,37 @@ function over(top, bottom) {
86
113
  a: 1
87
114
  };
88
115
  }
116
+ function mustAbstain(style, parts) {
117
+ if (style.backgroundImage && style.backgroundImage !== "none") return true;
118
+ return !parts && !!style.backgroundColor && style.backgroundColor !== "transparent";
119
+ }
120
+ function compositeLayers(layers) {
121
+ const deepest = layers[layers.length - 1];
122
+ let acc = deepest.a >= 1 ? layers.pop() : {
123
+ r: 255,
124
+ g: 255,
125
+ b: 255,
126
+ a: 1
127
+ };
128
+ for (let i = layers.length - 1; i >= 0; i -= 1) {
129
+ acc = over(layers[i], acc);
130
+ }
131
+ return `rgb(${Math.round(acc.r)}, ${Math.round(acc.g)}, ${Math.round(acc.b)})`;
132
+ }
89
133
  function resolvePaintedBackground(el) {
90
134
  const layers = [];
91
135
  let node = el;
92
136
  while (node) {
93
137
  const style = getComputedStyle(node);
94
- if (style.backgroundImage && style.backgroundImage !== "none") return null;
95
138
  const parts = rgbaParts(toRgb(style.backgroundColor));
139
+ if (mustAbstain(style, parts)) return null;
96
140
  if (parts && parts.a > 0) {
97
141
  layers.push(parts);
98
142
  if (parts.a >= 1) break;
99
143
  }
100
144
  node = node.parentElement;
101
145
  }
102
- if (!layers.length) return null;
103
- const deepest = layers[layers.length - 1];
104
- let acc = deepest.a >= 1 ? layers.pop() : {
105
- r: 255,
106
- g: 255,
107
- b: 255,
108
- a: 1
109
- };
110
- for (let i = layers.length - 1; i >= 0; i -= 1) {
111
- acc = over(layers[i], acc);
112
- }
113
- return `rgb(${Math.round(acc.r)}, ${Math.round(acc.g)}, ${Math.round(acc.b)})`;
146
+ return layers.length ? compositeLayers(layers) : null;
114
147
  }
115
148
  function channelsOf(rgb) {
116
149
  if (!rgb) return null;
@@ -132,8 +165,12 @@ function wcagRatio(a, b) {
132
165
  const WHITE = [255, 255, 255];
133
166
  const BLACK = [0, 0, 0];
134
167
  function enforceContrast(el, enabled) {
168
+ const wasFixed = el.dataset.origamContrastFixed === "true";
135
169
  delete el.dataset.origamContrastFixed;
136
- if (!enabled || typeof window === "undefined") return;
170
+ if (!enabled || typeof window === "undefined") {
171
+ if (wasFixed) el.style.removeProperty("color");
172
+ return;
173
+ }
137
174
  if (el.dataset.origamColorLocked === "true") return;
138
175
  const bg = channelsOf(resolvePaintedBackground(el));
139
176
  if (!bg) return;
@@ -22,6 +22,33 @@ function srgbToRgb(color) {
22
22
  const a = m[4] !== void 0 ? parseFloat(m[4]) : 1;
23
23
  return a < 1 ? `rgba(${r}, ${g}, ${b}, ${a})` : `rgb(${r}, ${g}, ${b})`;
24
24
  }
25
+ function oklabToRgb(color) {
26
+ const m = /^\s*(oklab|oklch)\(\s*([^\s/)]+)\s+([^\s/)]+)\s+([^\s/)]+)(?:\s*\/\s*([^\s)]+))?\s*\)\s*$/i.exec(color);
27
+ if (!m) return null;
28
+ const num = (v, pct) => /^-?[\d.]+(?:e-?\d+)?%$/i.test(v) ? parseFloat(v) / 100 * pct : /^-?[\d.]+(?:e-?\d+)?(?:deg)?$/i.test(v) ? parseFloat(v) : NaN;
29
+ const L = num(m[2], 1);
30
+ let a = num(m[3], m[1].toLowerCase() === "oklab" ? 0.4 : 0.4);
31
+ let b = num(m[4], 0.4);
32
+ const alpha = m[5] === void 0 ? 1 : num(m[5], 1);
33
+ if ([L, a, b, alpha].some(Number.isNaN)) return null;
34
+ if (m[1].toLowerCase() === "oklch") {
35
+ const h = b * Math.PI / 180;
36
+ b = a * Math.sin(h);
37
+ a = a * Math.cos(h);
38
+ }
39
+ const l = (L + 0.3963377774 * a + 0.2158037573 * b) ** 3;
40
+ const mm = (L - 0.1055613458 * a - 0.0638541728 * b) ** 3;
41
+ const s = (L - 0.0894841775 * a - 1.291485548 * b) ** 3;
42
+ const enc = (c) => {
43
+ const v = Math.min(1, Math.max(0, c));
44
+ return Math.round((v <= 31308e-7 ? 12.92 * v : 1.055 * v ** (1 / 2.4) - 0.055) * 255);
45
+ };
46
+ const r = enc(4.0767416621 * l - 3.3077115913 * mm + 0.2309699292 * s);
47
+ const g = enc(-1.2684380046 * l + 2.6097574011 * mm - 0.3413193965 * s);
48
+ const bl = enc(-0.0041960863 * l - 0.7034186147 * mm + 1.707614701 * s);
49
+ const al = Math.min(1, Math.max(0, alpha));
50
+ return al < 1 ? `rgba(${r}, ${g}, ${bl}, ${al})` : `rgb(${r}, ${g}, ${bl})`;
51
+ }
25
52
  function hexToRgb(hex) {
26
53
  const m = /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(hex);
27
54
  if (!m) return null;
@@ -37,7 +64,7 @@ function hexToRgb(hex) {
37
64
  }
38
65
  function toRgb(color) {
39
66
  if (!color) return null;
40
- const direct = srgbToRgb(color);
67
+ const direct = srgbToRgb(color) ?? oklabToRgb(color);
41
68
  if (direct) return direct;
42
69
  if (/^rgba?\(/i.test(color)) return color;
43
70
  if (typeof document === "undefined") return color;
@@ -69,26 +96,32 @@ function over(top, bottom) {
69
96
  a: 1
70
97
  };
71
98
  }
99
+ function mustAbstain(style, parts) {
100
+ if (style.backgroundImage && style.backgroundImage !== "none") return true;
101
+ return !parts && !!style.backgroundColor && style.backgroundColor !== "transparent";
102
+ }
103
+ function compositeLayers(layers) {
104
+ const deepest = layers[layers.length - 1];
105
+ let acc = deepest.a >= 1 ? layers.pop() : { r: 255, g: 255, b: 255, a: 1 };
106
+ for (let i = layers.length - 1; i >= 0; i -= 1) {
107
+ acc = over(layers[i], acc);
108
+ }
109
+ return `rgb(${Math.round(acc.r)}, ${Math.round(acc.g)}, ${Math.round(acc.b)})`;
110
+ }
72
111
  function resolvePaintedBackground(el) {
73
112
  const layers = [];
74
113
  let node = el;
75
114
  while (node) {
76
115
  const style = getComputedStyle(node);
77
- if (style.backgroundImage && style.backgroundImage !== "none") return null;
78
116
  const parts = rgbaParts(toRgb(style.backgroundColor));
117
+ if (mustAbstain(style, parts)) return null;
79
118
  if (parts && parts.a > 0) {
80
119
  layers.push(parts);
81
120
  if (parts.a >= 1) break;
82
121
  }
83
122
  node = node.parentElement;
84
123
  }
85
- if (!layers.length) return null;
86
- const deepest = layers[layers.length - 1];
87
- let acc = deepest.a >= 1 ? layers.pop() : { r: 255, g: 255, b: 255, a: 1 };
88
- for (let i = layers.length - 1; i >= 0; i -= 1) {
89
- acc = over(layers[i], acc);
90
- }
91
- return `rgb(${Math.round(acc.r)}, ${Math.round(acc.g)}, ${Math.round(acc.b)})`;
124
+ return layers.length ? compositeLayers(layers) : null;
92
125
  }
93
126
  function channelsOf(rgb) {
94
127
  if (!rgb) return null;
@@ -110,8 +143,12 @@ function wcagRatio(a, b) {
110
143
  const WHITE = [255, 255, 255];
111
144
  const BLACK = [0, 0, 0];
112
145
  function enforceContrast(el, enabled) {
146
+ const wasFixed = el.dataset.origamContrastFixed === "true";
113
147
  delete el.dataset.origamContrastFixed;
114
- if (!enabled || typeof window === "undefined") return;
148
+ if (!enabled || typeof window === "undefined") {
149
+ if (wasFixed) el.style.removeProperty("color");
150
+ return;
151
+ }
115
152
  if (el.dataset.origamColorLocked === "true") return;
116
153
  const bg = channelsOf(resolvePaintedBackground(el));
117
154
  if (!bg) return;
@@ -23,6 +23,14 @@ export interface INumberFieldProps extends IFieldProps, IInputProps, IInputVaria
23
23
  holdRepeat?: number;
24
24
  split?: boolean;
25
25
  hideControls?: boolean;
26
+ /*********************************************************
27
+ * clamp
28
+ *
29
+ * @description
30
+ * Bounds the value to `min`/`max` on blur and on write (default `true`).
31
+ * `false` keeps an out-of-range value so validation can reject it.
32
+ ********************************************************/
33
+ clamp?: boolean;
26
34
  compact?: boolean;
27
35
  /*********************************************************
28
36
  * decrementAriaLabel / incrementAriaLabel
@@ -26,8 +26,17 @@ export interface IStepperItemEmits {
26
26
  * IStepperItemSlots
27
27
  *
28
28
  * @description
29
- * Slot signatures for `<OrigamStepperItem>` — none. Indicator icon,
30
- * title and subtitle are entirely derived from props.
29
+ * Slot signatures for `<OrigamStepperItem>`. Indicator icon, title and
30
+ * subtitle stay derived from props; `prepend` / `append` add rich content
31
+ * around them (a status pill, a counter, an action): `prepend` renders
32
+ * before the indicator, `append` after the label. `<OrigamStepper>` forwards
33
+ * them in `items` mode as `item-prepend` / `item-append` (connectors kept).
31
34
  ********************************************************/
35
+ export interface IStepperItemSlotProps {
36
+ index: number;
37
+ status: TStepperItemStatus;
38
+ }
32
39
  export interface IStepperItemSlots {
40
+ prepend?: (props: IStepperItemSlotProps) => any;
41
+ append?: (props: IStepperItemSlotProps) => any;
33
42
  }
@@ -9,6 +9,7 @@ import type { IMarginProps } from '../Commons/margin.interface';
9
9
  import type { IPaddingProps } from '../Commons/padding.interface';
10
10
  import type { IRoundedProps } from '../Commons/rounded.interface';
11
11
  import type { ISizeProps } from '../Commons/size.interface';
12
+ import type { IStepperItemSlotProps } from './stepper-item.interface';
12
13
  import type { TIcon } from '../../types/Icon/icon.type';
13
14
  import type { TStepperItemStatus, TStepperOrientation } from '../../types/Stepper/stepper.type';
14
15
  /*********************************************************
@@ -48,4 +49,10 @@ export interface IStepperEmits {
48
49
  export interface IStepperSlots {
49
50
  /** Overrides the whole auto-generated item list. */
50
51
  default?: () => any;
52
+ 'item-prepend'?: (props: IStepperItemSlotProps & {
53
+ item: IStepperItem;
54
+ }) => any;
55
+ 'item-append'?: (props: IStepperItemSlotProps & {
56
+ item: IStepperItem;
57
+ }) => any;
51
58
  }
@@ -3,7 +3,7 @@ import type { ICommonsComponentProps, ITagProps } from '../Commons/commons.inter
3
3
  import type { IDensityProps } from '../Commons/density.interface';
4
4
  import type { IDimensionProps } from '../Commons/dimension.interface';
5
5
  import type { IElevationProps } from '../Commons/elevation.interface';
6
- import type { IHoverProps } from '../Commons/hover.interface';
6
+ import type { IHoverEmits, IHoverProps } from '../Commons/hover.interface';
7
7
  import type { IMarginProps } from '../Commons/margin.interface';
8
8
  import type { IPaddingProps } from '../Commons/padding.interface';
9
9
  import type { IRoundedProps } from '../Commons/rounded.interface';
@@ -15,7 +15,7 @@ export interface ITableProps extends ICommonsComponentProps, IBorderProps, IRoun
15
15
  captionVisible?: boolean;
16
16
  ariaRowcount?: number;
17
17
  }
18
- export interface ITableEmits {
18
+ export interface ITableEmits extends IHoverEmits {
19
19
  }
20
20
  /** Slot signatures for `<OrigamTable>`. */
21
21
  export interface ITableSlots {