@uzum-tech/ui 1.4.1 → 1.5.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 (233) hide show
  1. package/dist/index.js +65374 -64281
  2. package/dist/index.prod.js +3 -3
  3. package/es/_internal/icons/SiderUnionBorder.js +1 -1
  4. package/es/_internal/index.d.ts +2 -0
  5. package/es/_internal/index.js +1 -0
  6. package/es/_internal/typography/index.d.ts +2 -0
  7. package/es/_internal/typography/index.js +1 -0
  8. package/es/_internal/typography/src/styles/text.cssr.d.ts +2 -0
  9. package/es/_internal/typography/src/styles/text.cssr.js +78 -0
  10. package/es/_internal/typography/src/text.d.ts +246 -0
  11. package/es/_internal/typography/src/text.js +79 -0
  12. package/es/_internal/typography/src/variants.d.ts +13 -0
  13. package/es/_internal/typography/src/variants.js +132 -0
  14. package/es/_internal/typography/styles/dark.d.ts +3 -0
  15. package/es/_internal/typography/styles/dark.js +8 -0
  16. package/es/_internal/typography/styles/index.d.ts +3 -0
  17. package/es/_internal/typography/styles/index.js +2 -0
  18. package/es/_internal/typography/styles/light.d.ts +24 -0
  19. package/es/_internal/typography/styles/light.js +28 -0
  20. package/es/_styles/common/_common.d.ts +2 -0
  21. package/es/_styles/common/_common.js +3 -1
  22. package/es/_styles/common/light.d.ts +2 -0
  23. package/es/action-card/index.d.ts +4 -0
  24. package/es/action-card/index.js +2 -0
  25. package/es/action-card/src/ActionCard.d.ts +313 -0
  26. package/es/action-card/src/ActionCard.js +101 -0
  27. package/es/action-card/src/styles/index.cssr.d.ts +2 -0
  28. package/es/action-card/src/styles/index.cssr.js +113 -0
  29. package/es/action-card/styles/dark.d.ts +3 -0
  30. package/es/action-card/styles/dark.js +11 -0
  31. package/es/action-card/styles/index.d.ts +3 -0
  32. package/es/action-card/styles/index.js +2 -0
  33. package/es/action-card/styles/light.d.ts +29 -0
  34. package/es/action-card/styles/light.js +33 -0
  35. package/es/avatar/src/Avatar.d.ts +13 -3
  36. package/es/avatar/src/Avatar.js +4 -3
  37. package/es/avatar/src/styles/index.cssr.js +3 -2
  38. package/es/avatar/styles/light.d.ts +1 -0
  39. package/es/avatar/styles/light.js +4 -3
  40. package/es/avatar-group/src/AvatarGroup.d.ts +10 -0
  41. package/es/avatar-group/styles/light.d.ts +1 -0
  42. package/es/badge/src/Badge.d.ts +10 -0
  43. package/es/badge/src/Badge.js +3 -2
  44. package/es/badge/src/styles/index.cssr.js +19 -1
  45. package/es/badge/styles/light.d.ts +1 -0
  46. package/es/badge/styles/light.js +4 -3
  47. package/es/components.d.ts +1 -0
  48. package/es/components.js +1 -0
  49. package/es/config-provider/src/internal-interface.d.ts +2 -0
  50. package/es/data-table/src/DataTable.d.ts +14 -0
  51. package/es/data-table/src/DataTable.js +3 -3
  52. package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
  53. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
  54. package/es/data-table/src/TableParts/Body.d.ts +2 -0
  55. package/es/data-table/src/TableParts/Body.js +10 -1
  56. package/es/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
  57. package/es/data-table/src/TableParts/BodySkeleton.js +52 -0
  58. package/es/data-table/src/TableParts/Header.d.ts +2 -0
  59. package/es/data-table/src/interface.d.ts +6 -0
  60. package/es/data-table/src/styles/index.cssr.js +1 -1
  61. package/es/data-table/styles/light.d.ts +2 -0
  62. package/es/data-table/styles/light.js +1 -1
  63. package/es/dialog/src/DialogProvider.d.ts +4 -0
  64. package/es/icon-wrapper/src/IconWrapper.d.ts +40 -9
  65. package/es/icon-wrapper/src/IconWrapper.js +23 -5
  66. package/es/icon-wrapper/src/interface.d.ts +1 -0
  67. package/es/icon-wrapper/src/interface.js +1 -0
  68. package/es/icon-wrapper/src/styles/index.cssr.js +17 -5
  69. package/es/layout/src/styles/layout-sider.cssr.js +1 -1
  70. package/es/modal/src/BodyWrapper.d.ts +1 -0
  71. package/es/modal/src/Modal.d.ts +9 -0
  72. package/es/modal/styles/light.d.ts +2 -0
  73. package/es/modal/styles/light.js +2 -1
  74. package/es/pagination/src/Pagination.d.ts +22 -0
  75. package/es/pagination/src/Pagination.js +4 -2
  76. package/es/pagination/src/styles/index.cssr.js +11 -0
  77. package/es/pagination/styles/light.d.ts +4 -0
  78. package/es/pagination/styles/light.js +7 -5
  79. package/es/spin/styles/light.js +3 -3
  80. package/es/steps/src/Step.d.ts +17 -0
  81. package/es/steps/src/Step.js +81 -25
  82. package/es/steps/src/Steps.d.ts +127 -1
  83. package/es/steps/src/Steps.js +4 -1
  84. package/es/steps/src/interface.d.ts +10 -2
  85. package/es/steps/src/interface.js +10 -1
  86. package/es/steps/src/styles/index.cssr.js +115 -3
  87. package/es/steps/styles/light.d.ts +14 -0
  88. package/es/steps/styles/light.js +16 -2
  89. package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
  90. package/es/themes/dark.js +2 -0
  91. package/es/themes/light.js +2 -0
  92. package/es/toggle-button/src/ToggleButton.d.ts +13 -0
  93. package/es/toggle-button/src/ToggleButton.js +5 -2
  94. package/es/toggle-button/src/styles/toggle-button.cssr.js +3 -0
  95. package/es/typography/src/a.d.ts +27 -0
  96. package/es/typography/src/a.js +4 -1
  97. package/es/typography/src/blockquote.d.ts +27 -0
  98. package/es/typography/src/blockquote.js +4 -1
  99. package/es/typography/src/create-header.d.ts +27 -0
  100. package/es/typography/src/create-header.js +4 -1
  101. package/es/typography/src/headers.d.ts +108 -0
  102. package/es/typography/src/hr.d.ts +18 -0
  103. package/es/typography/src/hr.js +4 -0
  104. package/es/typography/src/li.js +4 -1
  105. package/es/typography/src/ol.d.ts +27 -0
  106. package/es/typography/src/ol.js +4 -1
  107. package/es/typography/src/p.d.ts +27 -0
  108. package/es/typography/src/p.js +4 -1
  109. package/es/typography/src/text.d.ts +128 -524
  110. package/es/typography/src/text.js +68 -69
  111. package/es/typography/src/ul.d.ts +27 -0
  112. package/es/typography/src/ul.js +4 -1
  113. package/es/typography/styles/light.d.ts +3 -0
  114. package/es/typography/styles/light.js +3 -0
  115. package/es/version.d.ts +1 -1
  116. package/es/version.js +1 -1
  117. package/lib/_internal/icons/SiderUnionBorder.js +1 -1
  118. package/lib/_internal/index.d.ts +2 -0
  119. package/lib/_internal/index.js +4 -1
  120. package/lib/_internal/typography/index.d.ts +2 -0
  121. package/lib/_internal/typography/index.js +9 -0
  122. package/lib/_internal/typography/src/styles/text.cssr.d.ts +2 -0
  123. package/lib/_internal/typography/src/styles/text.cssr.js +83 -0
  124. package/lib/_internal/typography/src/text.d.ts +246 -0
  125. package/lib/_internal/typography/src/text.js +85 -0
  126. package/lib/_internal/typography/src/variants.d.ts +13 -0
  127. package/lib/_internal/typography/src/variants.js +137 -0
  128. package/lib/_internal/typography/styles/dark.d.ts +3 -0
  129. package/lib/_internal/typography/styles/dark.js +10 -0
  130. package/lib/_internal/typography/styles/index.d.ts +3 -0
  131. package/lib/_internal/typography/styles/index.js +10 -0
  132. package/lib/_internal/typography/styles/light.d.ts +24 -0
  133. package/lib/_internal/typography/styles/light.js +32 -0
  134. package/lib/_styles/common/_common.d.ts +2 -0
  135. package/lib/_styles/common/_common.js +3 -1
  136. package/lib/_styles/common/light.d.ts +2 -0
  137. package/lib/action-card/index.d.ts +4 -0
  138. package/lib/action-card/index.js +11 -0
  139. package/lib/action-card/src/ActionCard.d.ts +313 -0
  140. package/lib/action-card/src/ActionCard.js +107 -0
  141. package/lib/action-card/src/styles/index.cssr.d.ts +2 -0
  142. package/lib/action-card/src/styles/index.cssr.js +118 -0
  143. package/lib/action-card/styles/dark.d.ts +3 -0
  144. package/lib/action-card/styles/dark.js +13 -0
  145. package/lib/action-card/styles/index.d.ts +3 -0
  146. package/lib/action-card/styles/index.js +10 -0
  147. package/lib/action-card/styles/light.d.ts +29 -0
  148. package/lib/action-card/styles/light.js +37 -0
  149. package/lib/avatar/src/Avatar.d.ts +13 -3
  150. package/lib/avatar/src/Avatar.js +4 -3
  151. package/lib/avatar/src/styles/index.cssr.js +3 -2
  152. package/lib/avatar/styles/light.d.ts +1 -0
  153. package/lib/avatar/styles/light.js +4 -3
  154. package/lib/avatar-group/src/AvatarGroup.d.ts +10 -0
  155. package/lib/avatar-group/styles/light.d.ts +1 -0
  156. package/lib/badge/src/Badge.d.ts +10 -0
  157. package/lib/badge/src/Badge.js +3 -2
  158. package/lib/badge/src/styles/index.cssr.js +19 -1
  159. package/lib/badge/styles/light.d.ts +1 -0
  160. package/lib/badge/styles/light.js +4 -3
  161. package/lib/components.d.ts +1 -0
  162. package/lib/components.js +1 -0
  163. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  164. package/lib/data-table/src/DataTable.d.ts +14 -0
  165. package/lib/data-table/src/DataTable.js +3 -3
  166. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
  167. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
  168. package/lib/data-table/src/TableParts/Body.d.ts +2 -0
  169. package/lib/data-table/src/TableParts/Body.js +10 -1
  170. package/lib/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
  171. package/lib/data-table/src/TableParts/BodySkeleton.js +54 -0
  172. package/lib/data-table/src/TableParts/Header.d.ts +2 -0
  173. package/lib/data-table/src/interface.d.ts +6 -0
  174. package/lib/data-table/src/styles/index.cssr.js +1 -1
  175. package/lib/data-table/styles/light.d.ts +2 -0
  176. package/lib/data-table/styles/light.js +1 -1
  177. package/lib/dialog/src/DialogProvider.d.ts +4 -0
  178. package/lib/icon-wrapper/src/IconWrapper.d.ts +40 -9
  179. package/lib/icon-wrapper/src/IconWrapper.js +23 -5
  180. package/lib/icon-wrapper/src/interface.d.ts +1 -0
  181. package/lib/icon-wrapper/src/interface.js +2 -0
  182. package/lib/icon-wrapper/src/styles/index.cssr.js +16 -4
  183. package/lib/layout/src/styles/layout-sider.cssr.js +1 -1
  184. package/lib/modal/src/BodyWrapper.d.ts +1 -0
  185. package/lib/modal/src/Modal.d.ts +9 -0
  186. package/lib/modal/styles/light.d.ts +2 -0
  187. package/lib/modal/styles/light.js +2 -1
  188. package/lib/pagination/src/Pagination.d.ts +22 -0
  189. package/lib/pagination/src/Pagination.js +4 -2
  190. package/lib/pagination/src/styles/index.cssr.js +11 -0
  191. package/lib/pagination/styles/light.d.ts +4 -0
  192. package/lib/pagination/styles/light.js +7 -5
  193. package/lib/spin/styles/light.js +3 -3
  194. package/lib/steps/src/Step.d.ts +17 -0
  195. package/lib/steps/src/Step.js +81 -25
  196. package/lib/steps/src/Steps.d.ts +127 -1
  197. package/lib/steps/src/Steps.js +4 -1
  198. package/lib/steps/src/interface.d.ts +10 -2
  199. package/lib/steps/src/interface.js +11 -0
  200. package/lib/steps/src/styles/index.cssr.js +115 -3
  201. package/lib/steps/styles/light.d.ts +14 -0
  202. package/lib/steps/styles/light.js +16 -2
  203. package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
  204. package/lib/themes/dark.js +2 -0
  205. package/lib/themes/light.js +2 -0
  206. package/lib/toggle-button/src/ToggleButton.d.ts +13 -0
  207. package/lib/toggle-button/src/ToggleButton.js +5 -2
  208. package/lib/toggle-button/src/styles/toggle-button.cssr.js +3 -0
  209. package/lib/typography/src/a.d.ts +27 -0
  210. package/lib/typography/src/a.js +3 -0
  211. package/lib/typography/src/blockquote.d.ts +27 -0
  212. package/lib/typography/src/blockquote.js +3 -0
  213. package/lib/typography/src/create-header.d.ts +27 -0
  214. package/lib/typography/src/create-header.js +3 -0
  215. package/lib/typography/src/headers.d.ts +108 -0
  216. package/lib/typography/src/hr.d.ts +18 -0
  217. package/lib/typography/src/hr.js +4 -0
  218. package/lib/typography/src/li.js +3 -0
  219. package/lib/typography/src/ol.d.ts +27 -0
  220. package/lib/typography/src/ol.js +3 -0
  221. package/lib/typography/src/p.d.ts +27 -0
  222. package/lib/typography/src/p.js +3 -0
  223. package/lib/typography/src/text.d.ts +128 -524
  224. package/lib/typography/src/text.js +66 -70
  225. package/lib/typography/src/ul.d.ts +27 -0
  226. package/lib/typography/src/ul.js +3 -0
  227. package/lib/typography/styles/light.d.ts +3 -0
  228. package/lib/typography/styles/light.js +3 -0
  229. package/lib/version.d.ts +1 -1
  230. package/lib/version.js +1 -1
  231. package/package.json +1 -1
  232. package/volar.d.ts +1 -0
  233. package/web-types.json +147 -96
@@ -4,7 +4,7 @@ import { inputLight } from '../../input/styles';
4
4
  import { commonLight } from '../../_styles/common';
5
5
  import { createTheme } from '../../_mixins';
6
6
  export const self = (vars) => {
7
- const { transparencySecondary, elementsPrimary, brandPrimary500, textSecondary, borderRadiusLarge, fontBodyMedium, fontBodyLarge, textPrimary, textTertiary } = vars;
7
+ const { brandPrimary100, transparencySecondary, elementsPrimary, brandPrimary500, textSecondary, borderRadius, fontBodyMedium, fontBodyLarge, textPrimary, textTertiary, elementsTertiary, elementsQuaternary } = vars;
8
8
  return {
9
9
  itemPaddingSmall: '0 4px',
10
10
  itemMarginSmall: '0 0 0 2px',
@@ -56,15 +56,15 @@ export const self = (vars) => {
56
56
  itemColor: '#0000',
57
57
  itemColorHover: transparencySecondary,
58
58
  itemColorPressed: transparencySecondary,
59
- itemColorActive: '#0000',
60
- itemColorActiveHover: transparencySecondary,
59
+ itemColorActive: brandPrimary100,
60
+ itemColorActiveHover: brandPrimary100,
61
61
  itemColorDisabled: '#0000',
62
62
  itemBorder: '0px',
63
63
  itemBorderHover: '0px',
64
64
  itemBorderPressed: '0px',
65
65
  itemBorderActive: '0px',
66
66
  itemBorderDisabled: '0px',
67
- itemBorderRadius: borderRadiusLarge,
67
+ itemBorderRadius: borderRadius,
68
68
  itemSizeSmall: '24px',
69
69
  itemSizeMedium: '32px',
70
70
  itemSizeLarge: '40px',
@@ -75,7 +75,9 @@ export const self = (vars) => {
75
75
  jumperFontSizeMedium: fontBodyMedium,
76
76
  jumperFontSizeLarge: fontBodyLarge,
77
77
  jumperTextColor: textPrimary,
78
- jumperTextColorDisabled: textTertiary
78
+ jumperTextColorDisabled: textTertiary,
79
+ paginationSizePickerBackground: elementsTertiary,
80
+ paginationSizePickerBorder: elementsQuaternary
79
81
  };
80
82
  };
81
83
  const paginationLight = createTheme({
@@ -1,14 +1,14 @@
1
1
  import { commonLight } from '../../_styles/common';
2
2
  export const self = (vars) => {
3
- const { opacityDisabled, elementsPrimary, brandPrimary500, fontBodyMedium, fontBodySmall, fontBodyLarge, fontHeadingSmall, fontHeadingMedium, fontHeadingLarge } = vars;
3
+ const { opacityDisabled, elementsPrimary, brandPrimary500, fontBodyMedium, fontBodySmall, fontBodyLarge, fontHeadingSmall, fontTitleMedium, fontHeadingLarge } = vars;
4
4
  return {
5
5
  tertiaryColor: elementsPrimary,
6
6
  primaryColor: brandPrimary500,
7
7
  fontSize: fontBodyMedium,
8
8
  sizeTiny: fontBodySmall,
9
9
  sizeSmall: fontBodyLarge,
10
- sizeMedium: fontHeadingSmall,
11
- sizeLarge: fontHeadingMedium,
10
+ sizeMedium: fontTitleMedium,
11
+ sizeLarge: fontHeadingSmall,
12
12
  sizeHuge: fontHeadingLarge,
13
13
  opacitySpinning: opacityDisabled
14
14
  };
@@ -44,12 +44,29 @@ declare const _default: import("vue").DefineComponent<{
44
44
  '--u-indicator-color': string;
45
45
  '--u-indicator-icon-size': string;
46
46
  '--u-indicator-index-font-size': string;
47
+ '--u-indicator-index-font-size--outline': string;
47
48
  '--u-indicator-size': string;
49
+ '--u-indicator-size--dotted': string;
50
+ '--u-indicator-color--dotted': string;
48
51
  '--u-indicator-text-color': string;
52
+ '--u-indicator-text-color--outline': string;
49
53
  '--u-splitor-color': string;
54
+ '--u-splitor-color--dotted': string;
55
+ '--u-splitor-color-finish--dotted': string;
50
56
  '--u-step-header-font-size': string;
51
57
  '--u-step-header-font-weight': string;
52
58
  '--u-step-icon-color': string;
59
+ '--u-step-icon-color--outline': string;
60
+ '--u-indicator-background-finish--outline': string;
61
+ '--u-indicator-color-finish--dotted': string;
62
+ '--u-indicator-icon-size--outline': string;
63
+ '--u-indicator-border-color-finish--outline': string;
64
+ '--u-indicator-icon-color--outline': string;
65
+ '--u-indicator-border-radius--outline': string;
66
+ '--u-indicator-border-radius-finish--outline': string;
67
+ '--u-step-height': string;
68
+ '--u-description-text-color--dotted': string;
69
+ '--u-step-header-font-size--dotted': string;
53
70
  }> | undefined;
54
71
  themeClass: import("vue").Ref<string> | undefined;
55
72
  onRender: (() => void) | undefined;
@@ -1,4 +1,5 @@
1
1
  import { h, defineComponent, computed, inject } from 'vue';
2
+ import { defaultVariantConfig, variantConfigs } from './interface';
2
3
  import { EditIcon, CheckmarkIcon as FinishedIcon, CloseIcon as ErrorIcon, CheckmarkCircleIcon as HistoryFinishIcon, DismissCircleIcon as HistoryErrorIcon } from '../../_internal/icons';
3
4
  import { UIconSwitchTransition, UBaseIcon } from '../../_internal';
4
5
  import { call, createKey, resolveSlot, resolveWrappedSlot, throwError } from '../../_utils';
@@ -30,10 +31,17 @@ export default defineComponent({
30
31
  const noIconRef = computed(() => props.noIcon);
31
32
  const variantBehaviors = computed(() => {
32
33
  const variant = variantRef.value;
34
+ const { vertical } = stepsProps;
35
+ const variantConfig = variantConfigs[variant] || {};
36
+ const config = Object.assign(Object.assign({}, defaultVariantConfig), variantConfig);
37
+ const isVertical = variantConfig.vertical !== undefined
38
+ ? variantConfig.vertical
39
+ : Boolean(vertical);
33
40
  return {
34
41
  variant,
35
- isVerticalOrHistory: stepsProps.vertical || variant === 'history',
36
- shouldRenderSplitor: !stepsProps.vertical && variant !== 'history'
42
+ isVertical,
43
+ shouldRenderSplitor: config.rendersSplitor,
44
+ showDescription: config.showDescription
37
45
  };
38
46
  });
39
47
  const mergedStatusRef = computed(() => {
@@ -62,7 +70,7 @@ export default defineComponent({
62
70
  const cssVarsRef = computed(() => {
63
71
  const { value: status } = mergedStatusRef;
64
72
  const { size } = stepsProps;
65
- const { common: { cubicBezierEaseInOut }, self: { stepHeaderFontWeight, [createKey('stepHeaderFontSize', size)]: stepHeaderFontSize, [createKey('indicatorIndexFontSize', size)]: indicatorIndexFontSize, [createKey('indicatorSize', size)]: indicatorSize, [createKey('indicatorIconSize', size)]: indicatorIconSize, [createKey('indicatorTextColor', status)]: indicatorTextColor, [createKey('indicatorBorderColor', status)]: indicatorBorderColor, [createKey('headerTextColor', status)]: headerTextColor, [createKey('splitorColor', status)]: splitorColor, [createKey('indicatorColor', status)]: indicatorColor, [createKey('descriptionTextColor', status)]: descriptionTextColor, [createKey('indicatorIconColor', status)]: indicatorIconColor } } = mergedThemeRef.value;
73
+ const { common: { cubicBezierEaseInOut }, self: { stepHeaderFontWeight, [createKey('stepHeaderFontSize', size)]: stepHeaderFontSize, [createKey('indicatorIndexFontSize', size)]: indicatorIndexFontSize, [createKey('indicatorSize', size)]: indicatorSize, [createKey('indicatorIconSize', size)]: indicatorIconSize, [createKey('indicatorTextColor', status)]: indicatorTextColor, [createKey('indicatorBorderColor', status)]: indicatorBorderColor, [createKey('headerTextColor', status)]: headerTextColor, [createKey('splitorColor', status)]: splitorColor, [createKey('indicatorColor', status)]: indicatorColor, [createKey('descriptionTextColor', status)]: descriptionTextColor, [createKey('indicatorIconColor', status)]: indicatorIconColor, indicatorBackgroundFinishOutline, indicatorIconColorFinishDotted, indicatorIconSizeOutline, indicatorBorderColorFinishOutline, indicatorIconColorOutline, indicatorBorderRadiusOutline, indicatorBorderRadiusFinishOutline, stepHeight, indicatorSizeDotted, descriptionTextColorDotted, stepHeaderFontSizeLarge, splitorColorFinishDotted, indicatorColorDotted, splitorColorDotted, indicatorIndexFontSizeMedium } } = mergedThemeRef.value;
66
74
  return {
67
75
  '--u-bezier': cubicBezierEaseInOut,
68
76
  '--u-description-text-color': descriptionTextColor,
@@ -71,12 +79,29 @@ export default defineComponent({
71
79
  '--u-indicator-color': indicatorColor,
72
80
  '--u-indicator-icon-size': indicatorIconSize,
73
81
  '--u-indicator-index-font-size': indicatorIndexFontSize,
82
+ '--u-indicator-index-font-size--outline': indicatorIndexFontSizeMedium,
74
83
  '--u-indicator-size': indicatorSize,
84
+ '--u-indicator-size--dotted': indicatorSizeDotted,
85
+ '--u-indicator-color--dotted': indicatorColorDotted,
75
86
  '--u-indicator-text-color': indicatorTextColor,
87
+ '--u-indicator-text-color--outline': headerTextColor,
76
88
  '--u-splitor-color': splitorColor,
89
+ '--u-splitor-color--dotted': splitorColorDotted,
90
+ '--u-splitor-color-finish--dotted': splitorColorFinishDotted,
77
91
  '--u-step-header-font-size': stepHeaderFontSize,
78
92
  '--u-step-header-font-weight': stepHeaderFontWeight,
79
- '--u-step-icon-color': indicatorIconColor
93
+ '--u-step-icon-color': indicatorIconColor,
94
+ '--u-step-icon-color--outline': headerTextColor,
95
+ '--u-indicator-background-finish--outline': indicatorBackgroundFinishOutline,
96
+ '--u-indicator-color-finish--dotted': indicatorIconColorFinishDotted,
97
+ '--u-indicator-icon-size--outline': indicatorIconSizeOutline,
98
+ '--u-indicator-border-color-finish--outline': indicatorBorderColorFinishOutline,
99
+ '--u-indicator-icon-color--outline': indicatorIconColorOutline,
100
+ '--u-indicator-border-radius--outline': indicatorBorderRadiusOutline,
101
+ '--u-indicator-border-radius-finish--outline': indicatorBorderRadiusFinishOutline,
102
+ '--u-step-height': stepHeight,
103
+ '--u-description-text-color--dotted': descriptionTextColorDotted,
104
+ '--u-step-header-font-size--dotted': stepHeaderFontSizeLarge
80
105
  };
81
106
  });
82
107
  const themeClassHandle = inlineThemeDisabled
@@ -111,6 +136,16 @@ export default defineComponent({
111
136
  finish: () => renderFinishIcon(),
112
137
  error: () => renderErrorIcon(),
113
138
  default: () => resolveWrappedSlot(slots.icon, (icon) => icon || renderInternalIndex())
139
+ },
140
+ outline: {
141
+ finish: () => renderFinishIcon('outline'),
142
+ error: () => renderErrorIcon('outline'),
143
+ default: () => resolveWrappedSlot(slots.icon, (icon) => icon || renderInternalIndex())
144
+ },
145
+ dotted: {
146
+ finish: () => null,
147
+ error: () => null,
148
+ default: () => null
114
149
  }
115
150
  };
116
151
  const renderIcon = () => {
@@ -123,18 +158,32 @@ export default defineComponent({
123
158
  return rendererGroup.default();
124
159
  };
125
160
  const renderFinishIcon = (variant = 'default') => (h(UBaseIcon, { clsPrefix: mergedClsPrefixRef.value, key: "finish" }, {
126
- default: () => variant === 'history'
127
- ? resolveSlot(stepsSlots['finish-icon'], () => [
128
- h(HistoryFinishIcon, null)
129
- ])
130
- : resolveSlot(stepsSlots['finish-icon'], () => [h(FinishedIcon, null)])
161
+ default: () => {
162
+ switch (variant) {
163
+ case 'history':
164
+ return resolveSlot(stepsSlots['finish-icon'], () => [
165
+ h(HistoryFinishIcon, null)
166
+ ]);
167
+ default:
168
+ return resolveSlot(stepsSlots['finish-icon'], () => [
169
+ h(FinishedIcon, null)
170
+ ]);
171
+ }
172
+ }
131
173
  }));
132
174
  const renderErrorIcon = (variant = 'default') => (h(UBaseIcon, { clsPrefix: mergedClsPrefixRef.value, key: "error" }, {
133
- default: () => variant === 'history'
134
- ? resolveSlot(stepsSlots['error-icon'], () => [
135
- h(HistoryErrorIcon, null)
136
- ])
137
- : resolveSlot(stepsSlots['error-icon'], () => [h(ErrorIcon, null)])
175
+ default: () => {
176
+ switch (variant) {
177
+ case 'history':
178
+ return resolveSlot(stepsSlots['error-icon'], () => [
179
+ h(HistoryErrorIcon, null)
180
+ ]);
181
+ default:
182
+ return resolveSlot(stepsSlots['error-icon'], () => [
183
+ h(ErrorIcon, null)
184
+ ]);
185
+ }
186
+ }
138
187
  }));
139
188
  const renderHistoryIcon = () => (h(UBaseIcon, { clsPrefix: mergedClsPrefixRef.value, key: "history" }, {
140
189
  default: () => resolveSlot(stepsSlots['history-icon'], () => [h(EditIcon, null)])
@@ -156,13 +205,15 @@ export default defineComponent({
156
205
  },
157
206
  render() {
158
207
  const { mergedClsPrefix, onRender, handleStepClick, disabled, renderIcon, variantBehaviors, noIcon } = this;
159
- const descriptionNode = resolveWrappedSlot(this.$slots.default, (children) => {
160
- const mergedDescription = children || this.description;
161
- if (mergedDescription) {
162
- return (h("div", { class: `${mergedClsPrefix}-step-content__description` }, mergedDescription));
163
- }
164
- return null;
165
- });
208
+ const descriptionNode = variantBehaviors.showDescription
209
+ ? resolveWrappedSlot(this.$slots.default, (children) => {
210
+ const mergedDescription = children || this.description;
211
+ if (mergedDescription) {
212
+ return (h("div", { class: `${mergedClsPrefix}-step-content__description` }, mergedDescription));
213
+ }
214
+ return null;
215
+ })
216
+ : null;
166
217
  onRender === null || onRender === void 0 ? void 0 : onRender();
167
218
  return (h("div", { class: [
168
219
  `${mergedClsPrefix}-step`,
@@ -173,15 +224,20 @@ export default defineComponent({
173
224
  `${mergedClsPrefix}-step--${this.mergedStatus}-status`,
174
225
  `${mergedClsPrefix}-step--${this.variant}-variant`
175
226
  ], style: this.cssVars, onClick: handleStepClick },
176
- variantBehaviors.isVerticalOrHistory || !noIcon ? (h("div", { class: `${mergedClsPrefix}-step-indicator` },
227
+ !noIcon ? (h("div", { class: `${mergedClsPrefix}-step-indicator` },
177
228
  h("div", { class: `${mergedClsPrefix}-step-indicator-slot` },
178
229
  h(UIconSwitchTransition, null, { default: renderIcon })),
179
- variantBehaviors.isVerticalOrHistory ? (h("div", { class: `${mergedClsPrefix}-step-splitor` })) : null)) : null,
230
+ variantBehaviors.isVertical &&
231
+ variantBehaviors.shouldRenderSplitor ? (h("div", { class: `${mergedClsPrefix}-step-splitor` })) : null)) : null,
180
232
  h("div", { class: `${mergedClsPrefix}-step-content` },
181
233
  h("div", { class: `${mergedClsPrefix}-step-content-header ${mergedClsPrefix}-step-content-header${noIcon ? '--column' : ''}` },
182
234
  h("div", { class: `${mergedClsPrefix}-step-content-header__title` }, resolveSlot(this.$slots.title, () => [this.title])),
183
- noIcon && variantBehaviors.shouldRenderSplitor ? (h("div", { class: `${mergedClsPrefix}-step-splitor-no-icon` })) : null,
184
- !noIcon && variantBehaviors.shouldRenderSplitor ? (h("div", { class: `${mergedClsPrefix}-step-splitor` })) : null),
235
+ noIcon &&
236
+ !variantBehaviors.isVertical &&
237
+ variantBehaviors.shouldRenderSplitor ? (h("div", { class: `${mergedClsPrefix}-step-splitor-no-icon` })) : null,
238
+ !noIcon &&
239
+ variantBehaviors.shouldRenderSplitor &&
240
+ !variantBehaviors.isVertical ? (h("div", { class: `${mergedClsPrefix}-step-splitor` })) : null),
185
241
  descriptionNode)));
186
242
  }
187
243
  });