design-system-next 2.8.3 → 2.9.1

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.
@@ -3,6 +3,7 @@ import type { ExtractPropTypes, PropType } from 'vue';
3
3
 
4
4
  export const definePropType = <T>(val: unknown): PropType<T> => val as PropType<T>;
5
5
  const STEPPER_VARIANTS = ['horizontal', 'vertical'] as const;
6
+ export const STEPPER_TYPE = ['compact', 'solid'];
6
7
  export const STEPPER_STATES = ['pending', 'active', 'completed'] as const;
7
8
 
8
9
  export const stepperPropTypes = {
@@ -32,6 +33,14 @@ export const stepperPropTypes = {
32
33
  hasLines: {
33
34
  type: Boolean,
34
35
  default: false,
36
+ },
37
+ /**
38
+ * @description Display type of stepper if displayed as compact (no solid bg color) or solid
39
+ */
40
+ type: {
41
+ type: String as PropType<(typeof STEPPER_TYPE)[number]>,
42
+ validator: (value: (typeof STEPPER_TYPE)[number]) => STEPPER_TYPE.includes(value),
43
+ default: 'compact',
35
44
  }
36
45
  };
37
46
 
@@ -7,6 +7,7 @@
7
7
  :label="step.label"
8
8
  :status="step.status"
9
9
  :description="step.description"
10
+ :type="props.type"
10
11
  />
11
12
 
12
13
  <!-- LINES -->