@dynatrace/strato-components 0.85.70 → 0.85.100

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 (195) hide show
  1. package/buttons/button/Button.css +17 -17
  2. package/buttons/button/Button.sty.js +4 -4
  3. package/buttons/intent-button/IntentButton.d.ts +2 -2
  4. package/buttons/intent-button/IntentButton.js +5 -2
  5. package/content/progress/ProgressBar.css +14 -14
  6. package/content/progress/ProgressBar.d.ts +6 -0
  7. package/content/progress/ProgressBar.js +61 -51
  8. package/content/progress/ProgressBar.sty.js +2 -2
  9. package/content/progress/ProgressBarIcon.css +2 -2
  10. package/content/progress/ProgressBarIcon.sty.js +1 -1
  11. package/content/progress/ProgressBarLabel.css +4 -4
  12. package/content/progress/ProgressBarLabel.sty.js +1 -1
  13. package/content/progress/ProgressBarValue.css +9 -9
  14. package/content/progress/ProgressBarValue.sty.js +1 -1
  15. package/content/progress/ProgressCircle.css +15 -15
  16. package/content/progress/ProgressCircle.d.ts +6 -0
  17. package/content/progress/ProgressCircle.js +5 -2
  18. package/content/progress/ProgressCircle.sty.js +6 -6
  19. package/content/skeleton/Skeleton.css +6 -6
  20. package/content/skeleton/Skeleton.sty.js +1 -1
  21. package/core/styles/focusRing.css +66 -79
  22. package/core/styles/focusRing.sty.d.ts +0 -10
  23. package/core/styles/focusRing.sty.js +2 -2
  24. package/core/styles/useFocusRing.d.ts +1 -3
  25. package/core/styles/useFocusRing.js +1 -10
  26. package/core/types/role-variant.d.ts +2 -0
  27. package/core/utils/colorUtils.css +64 -64
  28. package/core/utils/colorUtils.sty.js +2 -2
  29. package/esm/buttons/button/Button.css +17 -17
  30. package/esm/buttons/button/Button.sty.js +4 -4
  31. package/esm/buttons/button/Button.sty.js.map +2 -2
  32. package/esm/buttons/intent-button/IntentButton.js +5 -2
  33. package/esm/buttons/intent-button/IntentButton.js.map +2 -2
  34. package/esm/content/progress/ProgressBar.css +14 -14
  35. package/esm/content/progress/ProgressBar.js +61 -51
  36. package/esm/content/progress/ProgressBar.js.map +2 -2
  37. package/esm/content/progress/ProgressBar.sty.js +2 -2
  38. package/esm/content/progress/ProgressBar.sty.js.map +2 -2
  39. package/esm/content/progress/ProgressBarIcon.css +2 -2
  40. package/esm/content/progress/ProgressBarIcon.sty.js +1 -1
  41. package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
  42. package/esm/content/progress/ProgressBarLabel.css +4 -4
  43. package/esm/content/progress/ProgressBarLabel.sty.js +1 -1
  44. package/esm/content/progress/ProgressBarLabel.sty.js.map +2 -2
  45. package/esm/content/progress/ProgressBarValue.css +9 -9
  46. package/esm/content/progress/ProgressBarValue.sty.js +1 -1
  47. package/esm/content/progress/ProgressBarValue.sty.js.map +2 -2
  48. package/esm/content/progress/ProgressCircle.css +15 -15
  49. package/esm/content/progress/ProgressCircle.js +5 -2
  50. package/esm/content/progress/ProgressCircle.js.map +2 -2
  51. package/esm/content/progress/ProgressCircle.sty.js +6 -6
  52. package/esm/content/progress/ProgressCircle.sty.js.map +2 -2
  53. package/esm/content/skeleton/Skeleton.css +6 -6
  54. package/esm/content/skeleton/Skeleton.sty.js +1 -1
  55. package/esm/content/skeleton/Skeleton.sty.js.map +2 -2
  56. package/esm/core/styles/focusRing.css +66 -79
  57. package/esm/core/styles/focusRing.sty.js +2 -2
  58. package/esm/core/styles/focusRing.sty.js.map +2 -2
  59. package/esm/core/styles/useFocusRing.js +1 -10
  60. package/esm/core/styles/useFocusRing.js.map +2 -2
  61. package/esm/core/types/role-variant.js.map +2 -2
  62. package/esm/core/utils/colorUtils.css +64 -64
  63. package/esm/core/utils/colorUtils.sty.js +2 -2
  64. package/esm/core/utils/colorUtils.sty.js.map +2 -2
  65. package/esm/layouts/container/Container.css +4 -4
  66. package/esm/layouts/container/Container.sty.js +1 -1
  67. package/esm/layouts/container/Container.sty.js.map +1 -1
  68. package/esm/layouts/divider/Divider.css +6 -6
  69. package/esm/layouts/divider/Divider.sty.js +1 -1
  70. package/esm/layouts/divider/Divider.sty.js.map +2 -2
  71. package/esm/layouts/hooks/useBreakpoint.js.map +2 -2
  72. package/esm/layouts/input-group/InputGroup.css +4 -4
  73. package/esm/layouts/input-group/InputGroup.sty.js +2 -2
  74. package/esm/layouts/input-group/InputGroup.sty.js.map +1 -1
  75. package/esm/layouts/surface/Surface.css +39 -39
  76. package/esm/layouts/surface/Surface.sty.js +2 -2
  77. package/esm/layouts/surface/Surface.sty.js.map +2 -2
  78. package/esm/layouts/surface/variables.sty.js +1 -1
  79. package/esm/layouts/surface/variables.sty.js.map +1 -1
  80. package/esm/styles/colorUtils.css +64 -64
  81. package/esm/styles/colorUtils.sty.js +2 -2
  82. package/esm/styles/colorUtils.sty.js.map +2 -2
  83. package/esm/styles/container.css +47 -47
  84. package/esm/styles/container.sty.js +2 -2
  85. package/esm/styles/container.sty.js.map +2 -2
  86. package/esm/styles/ellipsis.css +1 -1
  87. package/esm/styles/ellipsis.sty.js +1 -1
  88. package/esm/styles/ellipsis.sty.js.map +1 -1
  89. package/esm/styles/field.css +153 -153
  90. package/esm/styles/field.sty.js +2 -2
  91. package/esm/styles/field.sty.js.map +2 -2
  92. package/esm/styles/sprinkles.css +262 -262
  93. package/esm/styles/sprinkles.sty.js +1 -1
  94. package/esm/styles/sprinkles.sty.js.map +2 -2
  95. package/esm/styles/textStyle.css +8 -8
  96. package/esm/styles/textStyle.sty.js +1 -1
  97. package/esm/styles/textStyle.sty.js.map +2 -2
  98. package/esm/typography/block-quote/Blockquote.css +2 -2
  99. package/esm/typography/block-quote/Blockquote.sty.js +1 -1
  100. package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
  101. package/esm/typography/code/Code.css +1 -1
  102. package/esm/typography/code/Code.sty.js +1 -1
  103. package/esm/typography/code/Code.sty.js.map +1 -1
  104. package/esm/typography/emphasis/Emphasis.css +1 -1
  105. package/esm/typography/emphasis/Emphasis.sty.js +1 -1
  106. package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
  107. package/esm/typography/external-link/ExternalLink.css +14 -14
  108. package/esm/typography/external-link/ExternalLink.js.map +1 -1
  109. package/esm/typography/external-link/ExternalLink.sty.js +1 -1
  110. package/esm/typography/external-link/ExternalLink.sty.js.map +1 -1
  111. package/esm/typography/heading/Heading.css +7 -7
  112. package/esm/typography/heading/Heading.sty.js +1 -1
  113. package/esm/typography/heading/Heading.sty.js.map +2 -2
  114. package/esm/typography/highlight/Highlight.css +1 -1
  115. package/esm/typography/highlight/Highlight.sty.js +1 -1
  116. package/esm/typography/highlight/Highlight.sty.js.map +1 -1
  117. package/esm/typography/link/Link.css +5 -5
  118. package/esm/typography/link/Link.js.map +1 -1
  119. package/esm/typography/link/Link.sty.js +1 -1
  120. package/esm/typography/link/Link.sty.js.map +1 -1
  121. package/esm/typography/list/List.css +4 -4
  122. package/esm/typography/list/List.sty.js +2 -2
  123. package/esm/typography/list/List.sty.js.map +1 -1
  124. package/esm/typography/paragraph/Paragraph.css +3 -3
  125. package/esm/typography/paragraph/Paragraph.sty.js +1 -1
  126. package/esm/typography/paragraph/Paragraph.sty.js.map +2 -2
  127. package/esm/typography/strikethrough/Strikethrough.css +1 -1
  128. package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
  129. package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
  130. package/esm/typography/strong/Strong.css +1 -1
  131. package/esm/typography/strong/Strong.sty.js +1 -1
  132. package/esm/typography/strong/Strong.sty.js.map +1 -1
  133. package/esm/typography/text/Text.css +3 -3
  134. package/esm/typography/text/Text.sty.js +1 -1
  135. package/esm/typography/text/Text.sty.js.map +2 -2
  136. package/esm/typography/text-ellipsis/TextEllipsis.css +4 -4
  137. package/esm/typography/text-ellipsis/TextEllipsis.js +5 -1
  138. package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
  139. package/esm/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
  140. package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +2 -2
  141. package/layouts/container/Container.css +4 -4
  142. package/layouts/container/Container.sty.js +1 -1
  143. package/layouts/divider/Divider.css +6 -6
  144. package/layouts/divider/Divider.sty.js +1 -1
  145. package/layouts/input-group/InputGroup.css +4 -4
  146. package/layouts/input-group/InputGroup.sty.js +2 -2
  147. package/layouts/surface/Surface.css +39 -39
  148. package/layouts/surface/Surface.sty.js +2 -2
  149. package/layouts/surface/variables.sty.js +1 -1
  150. package/package.json +5 -5
  151. package/styles/colorUtils.css +64 -64
  152. package/styles/colorUtils.sty.js +2 -2
  153. package/styles/container.css +47 -47
  154. package/styles/container.sty.js +2 -2
  155. package/styles/ellipsis.css +1 -1
  156. package/styles/ellipsis.sty.js +1 -1
  157. package/styles/field.css +153 -153
  158. package/styles/field.sty.js +2 -2
  159. package/styles/sprinkles.css +262 -262
  160. package/styles/sprinkles.sty.js +1 -1
  161. package/styles/textStyle.css +8 -8
  162. package/styles/textStyle.sty.js +1 -1
  163. package/typography/block-quote/Blockquote.css +2 -2
  164. package/typography/block-quote/Blockquote.sty.js +1 -1
  165. package/typography/code/Code.css +1 -1
  166. package/typography/code/Code.sty.js +1 -1
  167. package/typography/emphasis/Emphasis.css +1 -1
  168. package/typography/emphasis/Emphasis.sty.js +1 -1
  169. package/typography/external-link/ExternalLink.css +14 -14
  170. package/typography/external-link/ExternalLink.d.ts +2 -2
  171. package/typography/external-link/ExternalLink.sty.js +1 -1
  172. package/typography/heading/Heading.css +7 -7
  173. package/typography/heading/Heading.sty.js +1 -1
  174. package/typography/highlight/Highlight.css +1 -1
  175. package/typography/highlight/Highlight.sty.js +1 -1
  176. package/typography/link/Link.css +5 -5
  177. package/typography/link/Link.d.ts +2 -2
  178. package/typography/link/Link.sty.js +1 -1
  179. package/typography/list/List.css +4 -4
  180. package/typography/list/List.sty.js +2 -2
  181. package/typography/paragraph/Paragraph.css +3 -3
  182. package/typography/paragraph/Paragraph.sty.js +1 -1
  183. package/typography/strikethrough/Strikethrough.css +1 -1
  184. package/typography/strikethrough/Strikethrough.sty.js +1 -1
  185. package/typography/strong/Strong.css +1 -1
  186. package/typography/strong/Strong.sty.js +1 -1
  187. package/typography/text/Text.css +3 -3
  188. package/typography/text/Text.sty.js +1 -1
  189. package/typography/text-ellipsis/TextEllipsis.css +4 -4
  190. package/typography/text-ellipsis/TextEllipsis.js +5 -1
  191. package/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
  192. package/content/progress/utils.d.ts +0 -2
  193. package/content/progress/utils.js +0 -50
  194. package/esm/content/progress/utils.js +0 -22
  195. package/esm/content/progress/utils.js.map +0 -7
@@ -1,12 +1,12 @@
1
- ._10kgnsa0 {
1
+ ._10kgnsa0-0-85-100 {
2
2
  font-family: var(--dt-typography-text-base-default-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
3
3
  font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
4
4
  font-size: var(--dt-typography-text-base-default-size, 14px);
5
5
  line-height: var(--dt-typography-text-base-default-line-height, 1.4285714286);
6
6
  text-decoration: var(--dt-typography-text-base-default-text-decoration, none);
7
7
  text-transform: none;
8
- background: var(--bx32h3);
9
- color: var(--bx32h0);
8
+ background: var(--_bx32h3-0-85-100);
9
+ color: var(--_bx32h0-0-85-100);
10
10
  display: inline-flex;
11
11
  position: relative;
12
12
  align-items: center;
@@ -23,46 +23,46 @@
23
23
  transition-duration: var(--dt-animations-fade-out-duration-base, 250ms);
24
24
  transition-property: color, background-color, transform;
25
25
  }
26
- ._10kgnsa0:hover {
26
+ ._10kgnsa0-0-85-100:hover {
27
27
  transition-timing-function: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1));
28
28
  transition-duration: var(--dt-animations-fade-in-duration-base, 250ms);
29
29
  }
30
- ._10kgnsa1 {
30
+ ._10kgnsa1-0-85-100 {
31
31
  text-align: start;
32
32
  justify-content: space-between;
33
33
  }
34
- ._10kgnsa2 {
34
+ ._10kgnsa2-0-85-100 {
35
35
  text-align: center;
36
36
  justify-content: center;
37
37
  }
38
- ._10kgnsa3 {
38
+ ._10kgnsa3-0-85-100 {
39
39
  padding-top: var(--dt-spacings-size-2, 2px);
40
40
  padding-bottom: var(--dt-spacings-size-2, 2px);
41
41
  padding-left: var(--dt-spacings-size-4, 4px);
42
42
  padding-right: var(--dt-spacings-size-4, 4px);
43
43
  gap: var(--dt-spacings-size-2, 2px);
44
44
  }
45
- ._10kgnsa4 {
45
+ ._10kgnsa4-0-85-100 {
46
46
  padding-top: var(--dt-spacings-size-6, 6px);
47
47
  padding-bottom: var(--dt-spacings-size-6, 6px);
48
48
  padding-left: var(--dt-spacings-size-8, 8px);
49
49
  padding-right: var(--dt-spacings-size-8, 8px);
50
50
  gap: var(--dt-spacings-size-4, 4px);
51
51
  }
52
- ._10kgnsa5 {
52
+ ._10kgnsa5-0-85-100 {
53
53
  cursor: not-allowed;
54
54
  }
55
- ._10kgnsa6 {
55
+ ._10kgnsa6-0-85-100 {
56
56
  cursor: not-allowed;
57
- background: var(--bx32h2);
57
+ background: var(--_bx32h2-0-85-100);
58
58
  }
59
- ._10kgnsa7 {
59
+ ._10kgnsa7-0-85-100 {
60
60
  width: 100%;
61
61
  }
62
- ._10kgnsa8 {
62
+ ._10kgnsa8-0-85-100 {
63
63
  width: fit-content;
64
64
  }
65
- ._10kgnsa9 {
65
+ ._10kgnsa9-0-85-100 {
66
66
  position: absolute;
67
67
  top: 0;
68
68
  left: 0;
@@ -74,19 +74,19 @@
74
74
  align-items: center;
75
75
  z-index: 1;
76
76
  }
77
- ._10kgnsa3 ._10kgnsaa:not(:has(svg:only-child)) {
77
+ ._10kgnsa3-0-85-100 ._10kgnsaa-0-85-100:not(:has(svg:only-child)) {
78
78
  padding-top: 0;
79
79
  padding-bottom: 0;
80
80
  padding-left: 2px;
81
81
  padding-right: 2px;
82
82
  }
83
- ._10kgnsa4 ._10kgnsaa:not(:has(svg:only-child)) {
83
+ ._10kgnsa4-0-85-100 ._10kgnsaa-0-85-100:not(:has(svg:only-child)) {
84
84
  padding-top: 0;
85
85
  padding-bottom: 0;
86
86
  padding-left: 4px;
87
87
  padding-right: 4px;
88
88
  }
89
- ._10kgnsac {
89
+ ._10kgnsac-0-85-100 {
90
90
  display: inline-flex;
91
91
  min-width: 0;
92
92
  max-width: 100%;
@@ -27,7 +27,7 @@ var import_ellipsis_css_ts_vanilla = require("../../styles/ellipsis.css");
27
27
  var import_field_css_ts_vanilla = require("../../styles/field.css");
28
28
  var import_Button_css_ts_vanilla = require("./Button.css");
29
29
  var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
30
- var buttonCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_10kgnsa0", variantClassNames: { textAlign: { start: "_10kgnsa1", center: "_10kgnsa2" }, size: { condensed: "_10kgnsa3", "default": "_10kgnsa4" }, disabled: { true: "_10kgnsa5" }, readOnly: { true: "_10kgnsa6" } }, defaultVariants: { size: "default", textAlign: "center", disabled: false }, compoundVariants: [] });
31
- var buttonLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_10kgnsaa", variantClassNames: { textual: { true: "oqqp1n0", false: "_10kgnsac" } }, defaultVariants: {}, compoundVariants: [] });
32
- var buttonLoadingCSS = "_10kgnsa9";
33
- var buttonWidthsCSS = { full: "_10kgnsa7", content: "_10kgnsa8" };
30
+ var buttonCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_10kgnsa0-0-85-100", variantClassNames: { textAlign: { start: "_10kgnsa1-0-85-100", center: "_10kgnsa2-0-85-100" }, size: { condensed: "_10kgnsa3-0-85-100", "default": "_10kgnsa4-0-85-100" }, disabled: { true: "_10kgnsa5-0-85-100" }, readOnly: { true: "_10kgnsa6-0-85-100" } }, defaultVariants: { size: "default", textAlign: "center", disabled: false }, compoundVariants: [] });
31
+ var buttonLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_10kgnsaa-0-85-100", variantClassNames: { textual: { true: "_oqqp1n0-0-85-100", false: "_10kgnsac-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
32
+ var buttonLoadingCSS = "_10kgnsa9-0-85-100";
33
+ var buttonWidthsCSS = { full: "_10kgnsa7-0-85-100", content: "_10kgnsa8-0-85-100" };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  import { type IntentPayload } from '@dynatrace-sdk/navigation';
3
3
  import { type AriaLabelingProps } from '../../core/types/a11y-props.js';
4
4
  import { type DataTestId } from '../../core/types/data-props.js';
@@ -14,7 +14,7 @@ export interface IntentButtonPropsBase extends Omit<ButtonOwnProps, 'loading' |
14
14
  /** Intent payload passed between apps.*/
15
15
  payload: IntentPayload;
16
16
  /** Intended for setting a custom button label. When nothing is set, no label is shown. */
17
- children?: string;
17
+ children?: ReactNode;
18
18
  }
19
19
  /**
20
20
  * Merge own props with ID props.
@@ -52,8 +52,11 @@ const IntentButton = /* @__PURE__ */ (0, import_react.forwardRef)((props, forwar
52
52
  "data-dtrum-allow": dataDtrumAllow,
53
53
  ...remainingProps
54
54
  } = props;
55
- const label = children?.trim();
56
- const ariaLabel = ariaLabelProp || label || intl.formatMessage({
55
+ let label = children;
56
+ if (typeof label === "string") {
57
+ label = label.trim();
58
+ }
59
+ const ariaLabel = ariaLabelProp || intl.formatMessage({
57
60
  description: "Intent button open label",
58
61
  defaultMessage: "Open with",
59
62
  id: "JQOGuaGgqJObmSY1"
@@ -1,4 +1,4 @@
1
- @keyframes _13n9uwh0 {
1
+ @keyframes _13n9uwh0-0-85-100 {
2
2
  0% {
3
3
  transform: translateX(-100%) scaleX(0);
4
4
  }
@@ -6,45 +6,45 @@
6
6
  transform: translateX(100%) scaleX(1.5);
7
7
  }
8
8
  }
9
- ._13n9uwh1 {
9
+ ._13n9uwh1-0-85-100 {
10
10
  width: 100%;
11
11
  border-radius: var(--dt-borders-radius-container-subdued, 8px);
12
12
  overflow: hidden;
13
13
  position: relative;
14
14
  }
15
- ._13n9uwh2 {
15
+ ._13n9uwh2-0-85-100 {
16
16
  height: 6px;
17
17
  }
18
- ._13n9uwh3 {
18
+ ._13n9uwh3-0-85-100 {
19
19
  height: 8px;
20
20
  }
21
- ._13n9uwh4 {
21
+ ._13n9uwh4-0-85-100 {
22
22
  background-color: var(--dt-colors-border-neutral-on-accent-disabled, #f3f3f633);
23
23
  }
24
- ._13n9uwh5 {
24
+ ._13n9uwh5-0-85-100 {
25
25
  background-color: var(--dt-colors-border-neutral-default, #d2d3e1);
26
26
  }
27
- ._13n9uwh6 {
27
+ ._13n9uwh6-0-85-100 {
28
28
  background-color: var(--dt-colors-border-neutral-default, #d2d3e1);
29
29
  }
30
- ._13n9uwh7 {
30
+ ._13n9uwh7-0-85-100 {
31
31
  background-color: var(--dt-colors-border-neutral-default, #d2d3e1);
32
32
  }
33
- ._13n9uwh8 {
33
+ ._13n9uwh8-0-85-100 {
34
34
  background-color: var(--dt-colors-border-neutral-default, #d2d3e1);
35
35
  }
36
- ._13n9uwh9 {
36
+ ._13n9uwh9-0-85-100 {
37
37
  background-color: var(--dt-colors-border-neutral-default, #d2d3e1);
38
38
  }
39
- ._13n9uwha {
39
+ ._13n9uwha-0-85-100 {
40
40
  height: 100%;
41
41
  transition-duration: var(--dt-timings-fast-default, 170ms);
42
42
  transition-timing-function: var(--dt-easings-fast-in-slow-out, cubic-bezier(0.4, 0, 0.2, 1));
43
- background-color: var(--_17bwkb02);
43
+ background-color: var(--_17bwkb02-0-85-100);
44
44
  }
45
- ._13n9uwhb {
45
+ ._13n9uwhb-0-85-100 {
46
46
  width: 100%;
47
- animation-name: _13n9uwh0;
47
+ animation-name: _13n9uwh0-0-85-100;
48
48
  animation-duration: var(--dt-timings-slow-gentle, 800ms);
49
49
  animation-timing-function: var(--dt-easings-fast-in-slow-out, cubic-bezier(0.4, 0, 0.2, 1));
50
50
  animation-iteration-count: infinite;
@@ -34,8 +34,14 @@ export interface ProgressBarProps extends WithChildren, DOMProps, AriaLabelingPr
34
34
  /**
35
35
  * Controls the appearance of the progress.
36
36
  * @defaultValue 'primary'
37
+ * @deprecated Will be removed and replaced by the color prop.
37
38
  */
38
39
  variant?: RoleVariantType;
40
+ /**
41
+ * Controls the color of the progress.
42
+ * @defaultValue 'primary'
43
+ */
44
+ color?: 'neutral' | 'primary' | 'success' | 'warning' | 'critical';
39
45
  /**
40
46
  * The aria-valuetext attribute defines the human-readable text alternative of aria-valuenow for a range widget.
41
47
  * By default, the value will be given as a percentage. If the value is not a percentage, you should provide aria-valuetext.
@@ -79,6 +79,7 @@ const _ProgressBar = (0, import_react.forwardRef)(
79
79
  min = 0,
80
80
  density = "default",
81
81
  variant = "primary",
82
+ color = "primary",
82
83
  children,
83
84
  id: propId,
84
85
  "aria-valuetext": ariaValuetext,
@@ -111,75 +112,84 @@ const _ProgressBar = (0, import_react.forwardRef)(
111
112
  const percentage = (value - min) / (max - min);
112
113
  progressStyles["width"] = `${Math.round(percentage * 100)}%`;
113
114
  }
114
- return /* @__PURE__ */ import_react.default.createElement(import_SharedProgressBarPropsContext.SharedProgressBarPropsContext.Provider, { value: { id, variant, density } }, /* @__PURE__ */ import_react.default.createElement(
115
- "div",
115
+ return /* @__PURE__ */ import_react.default.createElement(
116
+ import_SharedProgressBarPropsContext.SharedProgressBarPropsContext.Provider,
116
117
  {
117
- className: consumerClassName,
118
- style: {
119
- display: "flex",
120
- flexDirection: "column",
121
- gap: import_spacings.default.Size6,
122
- width: "100%",
123
- ...consumerStyle
124
- },
125
- "data-testid": dataTestId,
126
- "data-dtrum-mask": dataDtrumMask,
127
- "data-dtrum-allow": dataDtrumAllow,
128
- ref: forwardedRef,
129
- ...forwardProps
118
+ value: { id, variant: variant || color, density }
130
119
  },
131
120
  /* @__PURE__ */ import_react.default.createElement(
132
121
  "div",
133
122
  {
123
+ className: consumerClassName,
134
124
  style: {
135
125
  display: "flex",
136
- justifyContent: "space-between",
137
- gap: import_spacings.default.Size8
138
- }
126
+ flexDirection: "column",
127
+ gap: import_spacings.default.Size6,
128
+ width: "100%",
129
+ ...consumerStyle
130
+ },
131
+ "data-testid": dataTestId,
132
+ "data-dtrum-mask": dataDtrumMask,
133
+ "data-dtrum-allow": dataDtrumAllow,
134
+ ref: forwardedRef,
135
+ ...forwardProps
139
136
  },
140
- density === "condensed" ? /* @__PURE__ */ import_react.default.createElement(
137
+ /* @__PURE__ */ import_react.default.createElement(
141
138
  "div",
142
139
  {
143
140
  style: {
144
141
  display: "flex",
145
142
  justifyContent: "space-between",
146
- alignItems: "flex-end",
147
- flex: 1,
148
- gap: import_spacings.default.Size16,
149
- minWidth: 0
143
+ gap: import_spacings.default.Size8
150
144
  }
151
145
  },
152
- slots.label,
153
- density === "condensed" && slots.value
154
- ) : slots.label,
155
- slots.icon
156
- ),
157
- /* @__PURE__ */ import_react.default.createElement(
158
- "div",
159
- {
160
- className: (0, import_ProgressBar_css.progressCSS)({ size: density, variant }),
161
- id,
162
- ...progressAriaProps,
163
- ...ariaLabelingProps
164
- },
146
+ density === "condensed" ? /* @__PURE__ */ import_react.default.createElement(
147
+ "div",
148
+ {
149
+ style: {
150
+ display: "flex",
151
+ justifyContent: "space-between",
152
+ alignItems: "flex-end",
153
+ flex: 1,
154
+ gap: import_spacings.default.Size16,
155
+ minWidth: 0
156
+ }
157
+ },
158
+ slots.label,
159
+ density === "condensed" && slots.value
160
+ ) : slots.label,
161
+ slots.icon
162
+ ),
165
163
  /* @__PURE__ */ import_react.default.createElement(
166
164
  "div",
167
165
  {
168
- className: (0, import_clsx.default)(
169
- (0, import_colorUtils_css.colorUtilsCSS)({
170
- color: variant,
171
- variant: variant === "onAccent" ? "default" : "accent"
172
- }),
173
- (0, import_ProgressBar_css.progressBarFillCSS)({
174
- indeterminate: isIndeterminate
175
- })
176
- ),
177
- style: progressStyles
178
- }
179
- )
180
- ),
181
- density === "default" && slots.value
182
- ));
166
+ className: (0, import_ProgressBar_css.progressCSS)({
167
+ size: density,
168
+ variant: variant || color
169
+ }),
170
+ id,
171
+ ...progressAriaProps,
172
+ ...ariaLabelingProps
173
+ },
174
+ /* @__PURE__ */ import_react.default.createElement(
175
+ "div",
176
+ {
177
+ className: (0, import_clsx.default)(
178
+ (0, import_colorUtils_css.colorUtilsCSS)({
179
+ color: variant || color,
180
+ variant: variant === "onAccent" ? "default" : "accent"
181
+ }),
182
+ (0, import_ProgressBar_css.progressBarFillCSS)({
183
+ indeterminate: isIndeterminate
184
+ })
185
+ ),
186
+ style: progressStyles
187
+ }
188
+ )
189
+ ),
190
+ density === "default" && slots.value
191
+ )
192
+ );
183
193
  }
184
194
  );
185
195
  _ProgressBar.displayName = "ProgressBar";
@@ -24,5 +24,5 @@ module.exports = __toCommonJS(ProgressBar_css_exports);
24
24
  var import_colorUtils_css_ts_vanilla = require("../../styles/colorUtils.css");
25
25
  var import_ProgressBar_css_ts_vanilla = require("./ProgressBar.css");
26
26
  var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
27
- var progressBarFillCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwha", variantClassNames: { indeterminate: { true: "_13n9uwhb" } }, defaultVariants: {}, compoundVariants: [] });
28
- var progressCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwh1", variantClassNames: { size: { condensed: "_13n9uwh2", "default": "_13n9uwh3" }, variant: { onAccent: "_13n9uwh4", primary: "_13n9uwh5", success: "_13n9uwh6", warning: "_13n9uwh7", critical: "_13n9uwh8", neutral: "_13n9uwh9" } }, defaultVariants: {}, compoundVariants: [] });
27
+ var progressBarFillCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwha-0-85-100", variantClassNames: { indeterminate: { true: "_13n9uwhb-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
28
+ var progressCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwh1-0-85-100", variantClassNames: { size: { condensed: "_13n9uwh2-0-85-100", "default": "_13n9uwh3-0-85-100" }, variant: { onAccent: "_13n9uwh4-0-85-100", primary: "_13n9uwh5-0-85-100", success: "_13n9uwh6-0-85-100", warning: "_13n9uwh7-0-85-100", critical: "_13n9uwh8-0-85-100", neutral: "_13n9uwh9-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
@@ -1,5 +1,5 @@
1
- .szm9t40 {
1
+ ._szm9t40-0-85-100 {
2
2
  display: flex;
3
3
  margin-left: auto;
4
- color: var(--_17bwkb02);
4
+ color: var(--_17bwkb02-0-85-100);
5
5
  }
@@ -22,4 +22,4 @@ __export(ProgressBarIcon_css_exports, {
22
22
  module.exports = __toCommonJS(ProgressBarIcon_css_exports);
23
23
  var import_colorUtils_css_ts_vanilla = require("../../styles/colorUtils.css");
24
24
  var import_ProgressBarIcon_css_ts_vanilla = require("./ProgressBarIcon.css");
25
- var progressBarIconContainerCSS = "szm9t40";
25
+ var progressBarIconContainerCSS = "_szm9t40-0-85-100";
@@ -1,9 +1,9 @@
1
- ._1ceb8vp0 {
2
- color: var(--_6levse0);
1
+ ._1ceb8vp0-0-85-100 {
2
+ color: var(--_6levse0-0-85-100);
3
3
  }
4
- ._1ceb8vp2 {
4
+ ._1ceb8vp2-0-85-100 {
5
5
  word-break: break-word;
6
6
  }
7
- ._1ceb8vp3 {
7
+ ._1ceb8vp3-0-85-100 {
8
8
  word-break: break-word;
9
9
  }
@@ -23,4 +23,4 @@ module.exports = __toCommonJS(ProgressBarLabel_css_exports);
23
23
  var import_container_css_ts_vanilla = require("../../styles/container.css");
24
24
  var import_ProgressBarLabel_css_ts_vanilla = require("./ProgressBarLabel.css");
25
25
  var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
26
- var progressBarLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1ceb8vp0", variantClassNames: { size: { condensed: "_1ceb8vp1", "default": "_1ceb8vp2" }, childIsText: { false: "_1ceb8vp3" } }, defaultVariants: {}, compoundVariants: [] });
26
+ var progressBarLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1ceb8vp0-0-85-100", variantClassNames: { size: { condensed: "_1ceb8vp1-0-85-100", "default": "_1ceb8vp2-0-85-100" }, childIsText: { false: "_1ceb8vp3-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
@@ -1,28 +1,28 @@
1
- ._1ri4i7o1 {
1
+ ._1ri4i7o1-0-85-100 {
2
2
  color: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
3
3
  }
4
- ._1ri4i7o2 {
4
+ ._1ri4i7o2-0-85-100 {
5
5
  color: var(--dt-colors-text-neutral-subdued, #545587);
6
6
  }
7
- ._1ri4i7o3 {
7
+ ._1ri4i7o3-0-85-100 {
8
8
  color: var(--dt-colors-text-neutral-subdued, #545587);
9
9
  }
10
- ._1ri4i7o4 {
10
+ ._1ri4i7o4-0-85-100 {
11
11
  color: var(--dt-colors-text-neutral-subdued, #545587);
12
12
  }
13
- ._1ri4i7o5 {
13
+ ._1ri4i7o5-0-85-100 {
14
14
  color: var(--dt-colors-text-neutral-subdued, #545587);
15
15
  }
16
- ._1ri4i7o6 {
16
+ ._1ri4i7o6-0-85-100 {
17
17
  color: var(--dt-colors-text-neutral-subdued, #545587);
18
18
  }
19
- ._1ri4i7o8 {
19
+ ._1ri4i7o8-0-85-100 {
20
20
  word-break: break-word;
21
21
  }
22
- ._1ri4i7oa {
22
+ ._1ri4i7oa-0-85-100 {
23
23
  word-break: break-word;
24
24
  }
25
- ._1ri4i7ob {
25
+ ._1ri4i7ob-0-85-100 {
26
26
  margin-left: auto;
27
27
  align-self: center;
28
28
  }
@@ -23,4 +23,4 @@ module.exports = __toCommonJS(ProgressBarValue_css_exports);
23
23
  var import_ellipsis_css_ts_vanilla = require("../../styles/ellipsis.css");
24
24
  var import_ProgressBarValue_css_ts_vanilla = require("./ProgressBarValue.css");
25
25
  var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
26
- var progressBarValueCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1ri4i7o0", variantClassNames: { variant: { onAccent: "_1ri4i7o1", primary: "_1ri4i7o2", success: "_1ri4i7o3", warning: "_1ri4i7o4", critical: "_1ri4i7o5", neutral: "_1ri4i7o6" }, size: { condensed: "_1ri4i7o7", "default": "_1ri4i7o8" }, childIsText: { true: "_1ri4i7o9", false: "_1ri4i7oa" } }, defaultVariants: {}, compoundVariants: [[{ size: "condensed", childIsText: true }, "_1ri4i7ob oqqp1n0"]] });
26
+ var progressBarValueCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1ri4i7o0-0-85-100", variantClassNames: { variant: { onAccent: "_1ri4i7o1-0-85-100", primary: "_1ri4i7o2-0-85-100", success: "_1ri4i7o3-0-85-100", warning: "_1ri4i7o4-0-85-100", critical: "_1ri4i7o5-0-85-100", neutral: "_1ri4i7o6-0-85-100" }, size: { condensed: "_1ri4i7o7-0-85-100", "default": "_1ri4i7o8-0-85-100" }, childIsText: { true: "_1ri4i7o9-0-85-100", false: "_1ri4i7oa-0-85-100" } }, defaultVariants: {}, compoundVariants: [[{ size: "condensed", childIsText: true }, "_1ri4i7ob-0-85-100 _oqqp1n0-0-85-100"]] });
@@ -1,4 +1,4 @@
1
- @keyframes kvldjh0 {
1
+ @keyframes _kvldjh0-0-85-100 {
2
2
  0% {
3
3
  transform: rotate(0deg);
4
4
  }
@@ -6,47 +6,47 @@
6
6
  transform: rotate(360deg);
7
7
  }
8
8
  }
9
- .kvldjh1 {
9
+ ._kvldjh1-0-85-100 {
10
10
  display: inline-block;
11
- color: var(--_17bwkb02);
11
+ color: var(--_17bwkb02-0-85-100);
12
12
  }
13
- .kvldjh2 {
13
+ ._kvldjh2-0-85-100 {
14
14
  display: block;
15
15
  transform: rotate(-90deg);
16
16
  }
17
- .kvldjh3 {
17
+ ._kvldjh3-0-85-100 {
18
18
  stroke: currentColor;
19
19
  transform-origin: center;
20
20
  }
21
- .kvldjh4 {
21
+ ._kvldjh4-0-85-100 {
22
22
  stroke-dasharray: 90 360;
23
23
  transform-origin: 50% 50%;
24
- animation-name: kvldjh0;
24
+ animation-name: _kvldjh0-0-85-100;
25
25
  animation-duration: var(--dt-timings-slow-gentle, 800ms);
26
26
  animation-timing-function: cubic-bezier(0.5, 0.15, 0.5, 0.8);
27
27
  animation-iteration-count: infinite;
28
28
  }
29
- .kvldjh5 {
29
+ ._kvldjh5-0-85-100 {
30
30
  animation-duration: var(--dt-timings-fast-moderate, 200ms);
31
31
  transition-property: stroke-dashoffset;
32
32
  }
33
- .kvldjh6 {
33
+ ._kvldjh6-0-85-100 {
34
34
  stroke: var(--dt-colors-border-neutral-default, #d2d3e1);
35
35
  }
36
- .kvldjh7 {
36
+ ._kvldjh7-0-85-100 {
37
37
  stroke: var(--dt-colors-border-neutral-on-accent-disabled, #f3f3f633);
38
38
  }
39
- .kvldjhd {
39
+ ._kvldjhd-0-85-100 {
40
40
  display: flex;
41
41
  flex-direction: column;
42
42
  align-items: center;
43
43
  }
44
- .kvldjhe {
44
+ ._kvldjhe-0-85-100 {
45
45
  gap: var(--dt-spacings-size-8, 8px);
46
46
  }
47
- .kvldjhf {
47
+ ._kvldjhf-0-85-100 {
48
48
  gap: var(--dt-spacings-size-12, 12px);
49
49
  }
50
- .kvldjhg {
51
- color: var(--_6levse0);
50
+ ._kvldjhg-0-85-100 {
51
+ color: var(--_6levse0-0-85-100);
52
52
  }
@@ -34,8 +34,14 @@ export interface ProgressCircleProps extends WithChildren, DOMProps, AriaLabelin
34
34
  /**
35
35
  * Controls the appearance of the progress.
36
36
  * @defaultValue 'primary'
37
+ * @deprecated Will be removed and replaced by the color prop.
37
38
  */
38
39
  variant?: RoleVariantType;
40
+ /**
41
+ * Controls the color of the progress.
42
+ * @defaultValue 'primary'
43
+ */
44
+ color?: 'neutral' | 'primary' | 'success' | 'warning' | 'critical';
39
45
  /**
40
46
  * The aria-valuetext attribute defines the human-readable text alternative of aria-valuenow for a range widget.
41
47
  * Default the value as percentage will be provided. If the value is not a percentage please provide the aria-valuetext.
@@ -52,6 +52,7 @@ const ProgressCircle = (0, import_react.forwardRef)(
52
52
  max = 100,
53
53
  size = "large",
54
54
  variant = "primary",
55
+ color = "primary",
55
56
  children,
56
57
  id: propId,
57
58
  "aria-valuetext": ariaValuetext,
@@ -111,7 +112,7 @@ const ProgressCircle = (0, import_react.forwardRef)(
111
112
  {
112
113
  id,
113
114
  className: (0, import_clsx.default)(
114
- (0, import_colorUtils_css.colorUtilsCSS)({ color: variant, variant: "accent" }),
115
+ (0, import_colorUtils_css.colorUtilsCSS)({ color: variant || color, variant: "accent" }),
115
116
  import_ProgressCircle_css.progressCircleRootCSS
116
117
  ),
117
118
  style: {
@@ -134,7 +135,9 @@ const ProgressCircle = (0, import_react.forwardRef)(
134
135
  "circle",
135
136
  {
136
137
  fill: "none",
137
- className: (0, import_clsx.default)((0, import_ProgressCircle_css.progressCircleBackgroundCSS)({ variant })),
138
+ className: (0, import_clsx.default)(
139
+ (0, import_ProgressCircle_css.progressCircleBackgroundCSS)({ variant: variant || color })
140
+ ),
138
141
  cx: progressCircleSizes[size] / 2,
139
142
  cy: progressCircleSizes[size] / 2,
140
143
  r: (progressCircleSizes[size] - progressCircleThickness) / 2,
@@ -29,9 +29,9 @@ var import_colorUtils_css_ts_vanilla = require("../../styles/colorUtils.css");
29
29
  var import_container_css_ts_vanilla = require("../../styles/container.css");
30
30
  var import_ProgressCircle_css_ts_vanilla = require("./ProgressCircle.css");
31
31
  var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
32
- var ProgressCircleSVGCSS = "kvldjh2";
33
- var progressCircleBackgroundCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "kvldjh6", variantClassNames: { variant: { onAccent: "kvldjh7", primary: "kvldjh8", success: "kvldjh9", warning: "kvldjha", critical: "kvldjhb", neutral: "kvldjhc" } }, defaultVariants: {}, compoundVariants: [] });
34
- var progressCircleCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "kvldjh3", variantClassNames: { indeterminate: { true: "kvldjh4", false: "kvldjh5" } }, defaultVariants: {}, compoundVariants: [] });
35
- var progressCircleChildCSS = "kvldjhg";
36
- var progressCircleContainerCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "kvldjhd", variantClassNames: { size: { small: "kvldjhe", large: "kvldjhf" } }, defaultVariants: {}, compoundVariants: [] });
37
- var progressCircleRootCSS = "kvldjh1";
32
+ var ProgressCircleSVGCSS = "_kvldjh2-0-85-100";
33
+ var progressCircleBackgroundCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_kvldjh6-0-85-100", variantClassNames: { variant: { onAccent: "_kvldjh7-0-85-100", primary: "_kvldjh8-0-85-100", success: "_kvldjh9-0-85-100", warning: "_kvldjha-0-85-100", critical: "_kvldjhb-0-85-100", neutral: "_kvldjhc-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
34
+ var progressCircleCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_kvldjh3-0-85-100", variantClassNames: { indeterminate: { true: "_kvldjh4-0-85-100", false: "_kvldjh5-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
35
+ var progressCircleChildCSS = "_kvldjhg-0-85-100";
36
+ var progressCircleContainerCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_kvldjhd-0-85-100", variantClassNames: { size: { small: "_kvldjhe-0-85-100", large: "_kvldjhf-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
37
+ var progressCircleRootCSS = "_kvldjh1-0-85-100";
@@ -1,4 +1,4 @@
1
- @keyframes _1a1ozfd0 {
1
+ @keyframes _1a1ozfd0-0-85-100 {
2
2
  0% {
3
3
  transform: translateX(-100%) scaleX(0);
4
4
  }
@@ -6,12 +6,12 @@
6
6
  transform: translateX(100%) scaleX(1.5);
7
7
  }
8
8
  }
9
- ._1a1ozfd1 {
9
+ ._1a1ozfd1-0-85-100 {
10
10
  position: relative;
11
11
  overflow: hidden;
12
12
  background-color: var(--dt-colors-background-field-neutral-disabled, #dadbe780);
13
13
  }
14
- ._1a1ozfd1:after {
14
+ ._1a1ozfd1-0-85-100:after {
15
15
  content: "";
16
16
  position: absolute;
17
17
  top: 0;
@@ -21,13 +21,13 @@
21
21
  background-color: var(--dt-colors-background-field-neutral-disabled, #dadbe780);
22
22
  animation-iteration-count: infinite;
23
23
  transform-origin: left center;
24
- animation-name: _1a1ozfd0;
24
+ animation-name: _1a1ozfd0-0-85-100;
25
25
  animation-duration: var(--dt-timings-slow-gentle, 800ms);
26
26
  animation-timing-function: var(--dt-easings-fast-in-slow-out, cubic-bezier(0.4, 0, 0.2, 1));
27
27
  }
28
- ._1a1ozfd2 {
28
+ ._1a1ozfd2-0-85-100 {
29
29
  border-radius: var(--dt-borders-radius-container-subdued, 8px);
30
30
  }
31
- ._1a1ozfd3 {
31
+ ._1a1ozfd3-0-85-100 {
32
32
  border-radius: 9999px;
33
33
  }
@@ -22,4 +22,4 @@ __export(Skeleton_css_exports, {
22
22
  module.exports = __toCommonJS(Skeleton_css_exports);
23
23
  var import_Skeleton_css_ts_vanilla = require("./Skeleton.css");
24
24
  var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
25
- var skeletonPlaceholderCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1a1ozfd1", variantClassNames: { variant: { "default": "_1a1ozfd2", rounded: "_1a1ozfd3" } }, defaultVariants: {}, compoundVariants: [] });
25
+ var skeletonPlaceholderCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1a1ozfd1-0-85-100", variantClassNames: { variant: { "default": "_1a1ozfd2-0-85-100", rounded: "_1a1ozfd3-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });