@dynatrace/strato-components 0.85.0 → 0.85.21

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 (282) hide show
  1. package/README.md +1 -1
  2. package/buttons/button/Button.css +93 -0
  3. package/buttons/button/Button.d.ts +94 -0
  4. package/buttons/button/Button.js +258 -0
  5. package/buttons/button/Button.sty.d.ts +51 -0
  6. package/buttons/button/Button.sty.js +33 -0
  7. package/buttons/button/Label.d.ts +16 -0
  8. package/buttons/button/Label.js +60 -0
  9. package/buttons/button/Prefix.d.ts +16 -0
  10. package/buttons/button/Prefix.js +54 -0
  11. package/buttons/button/Suffix.d.ts +16 -0
  12. package/buttons/button/Suffix.js +56 -0
  13. package/buttons/button/types/button-aria.d.ts +37 -0
  14. package/buttons/button/types/button-aria.js +15 -0
  15. package/buttons/button/utils/focus-without-scrolling.d.ts +5 -0
  16. package/buttons/button/utils/focus-without-scrolling.js +77 -0
  17. package/buttons/button/utils/is-virtual-event.d.ts +10 -0
  18. package/buttons/button/utils/is-virtual-event.js +32 -0
  19. package/buttons/index.d.ts +10 -0
  20. package/buttons/index.js +30 -0
  21. package/buttons/intent-button/IntentButton.d.ts +44 -0
  22. package/buttons/intent-button/IntentButton.js +102 -0
  23. package/buttons/intent-button/useIntentButton.d.ts +12 -0
  24. package/buttons/intent-button/useIntentButton.js +72 -0
  25. package/content/index.d.ts +4 -0
  26. package/content/index.js +5 -1
  27. package/content/progress/ProgressBar.js +1 -2
  28. package/content/progress/ProgressCircle.js +1 -2
  29. package/content/skeleton/Skeleton.css +33 -0
  30. package/content/skeleton/Skeleton.d.ts +30 -0
  31. package/content/skeleton/Skeleton.js +60 -0
  32. package/content/skeleton/Skeleton.sty.d.ts +10 -0
  33. package/content/skeleton/Skeleton.sty.js +25 -0
  34. package/content/skeleton/SkeletonText.d.ts +24 -0
  35. package/content/skeleton/SkeletonText.js +84 -0
  36. package/esm/buttons/button/Button.css +93 -0
  37. package/esm/buttons/button/Button.js +233 -0
  38. package/esm/buttons/button/Button.js.map +7 -0
  39. package/esm/buttons/button/Button.sty.js +15 -0
  40. package/esm/buttons/button/Button.sty.js.map +7 -0
  41. package/esm/buttons/button/Label.js +32 -0
  42. package/esm/buttons/button/Label.js.map +7 -0
  43. package/esm/buttons/button/Prefix.js +26 -0
  44. package/esm/buttons/button/Prefix.js.map +7 -0
  45. package/esm/buttons/button/Suffix.js +28 -0
  46. package/esm/buttons/button/Suffix.js.map +7 -0
  47. package/esm/buttons/button/types/button-aria.js +1 -0
  48. package/esm/buttons/button/types/button-aria.js.map +7 -0
  49. package/esm/buttons/button/utils/focus-without-scrolling.js +59 -0
  50. package/esm/buttons/button/utils/focus-without-scrolling.js.map +7 -0
  51. package/esm/buttons/button/utils/is-virtual-event.js +14 -0
  52. package/esm/buttons/button/utils/is-virtual-event.js.map +7 -0
  53. package/esm/buttons/index.js +15 -0
  54. package/esm/buttons/index.js.map +7 -0
  55. package/esm/buttons/intent-button/IntentButton.js +74 -0
  56. package/esm/buttons/intent-button/IntentButton.js.map +7 -0
  57. package/esm/buttons/intent-button/useIntentButton.js +57 -0
  58. package/esm/buttons/intent-button/useIntentButton.js.map +7 -0
  59. package/esm/content/index.js +5 -1
  60. package/esm/content/index.js.map +2 -2
  61. package/esm/content/progress/ProgressBar.js +2 -3
  62. package/esm/content/progress/ProgressBar.js.map +2 -2
  63. package/esm/content/progress/ProgressCircle.js +2 -3
  64. package/esm/content/progress/ProgressCircle.js.map +2 -2
  65. package/esm/content/skeleton/Skeleton.css +33 -0
  66. package/esm/content/skeleton/Skeleton.js +32 -0
  67. package/esm/content/skeleton/Skeleton.js.map +7 -0
  68. package/esm/content/skeleton/Skeleton.sty.js +7 -0
  69. package/esm/content/skeleton/Skeleton.sty.js.map +7 -0
  70. package/esm/content/skeleton/SkeletonText.js +56 -0
  71. package/esm/content/skeleton/SkeletonText.js.map +7 -0
  72. package/esm/index.js +1 -0
  73. package/esm/index.js.map +2 -2
  74. package/esm/layouts/{Divider → divider}/Divider.css +5 -5
  75. package/esm/layouts/{Divider → divider}/Divider.js.map +1 -1
  76. package/esm/layouts/{Divider → divider}/Divider.sty.js +1 -1
  77. package/esm/layouts/{Divider → divider}/Divider.sty.js.map +2 -2
  78. package/esm/layouts/helpers/spacingToCss.js +13 -0
  79. package/esm/layouts/helpers/spacingToCss.js.map +7 -0
  80. package/esm/layouts/hooks/useLayoutSizeProps.js +15 -0
  81. package/esm/layouts/hooks/useLayoutSizeProps.js.map +7 -0
  82. package/esm/layouts/hooks/useLayoutStyles.js +105 -0
  83. package/esm/layouts/hooks/useLayoutStyles.js.map +7 -0
  84. package/esm/layouts/hooks/useMarginProps.js +55 -0
  85. package/esm/layouts/hooks/useMarginProps.js.map +7 -0
  86. package/esm/layouts/hooks/usePaddingProps.js +59 -0
  87. package/esm/layouts/hooks/usePaddingProps.js.map +7 -0
  88. package/esm/layouts/index.js +6 -2
  89. package/esm/layouts/index.js.map +2 -2
  90. package/esm/layouts/surface/Surface.css +95 -0
  91. package/esm/layouts/surface/Surface.js +84 -0
  92. package/esm/layouts/surface/Surface.js.map +7 -0
  93. package/esm/layouts/surface/Surface.sty.js +10 -0
  94. package/esm/layouts/surface/Surface.sty.js.map +7 -0
  95. package/esm/layouts/surface/variables.sty.js +5 -0
  96. package/esm/layouts/surface/variables.sty.js.map +7 -0
  97. package/esm/layouts/types/layout.types.js +1 -0
  98. package/esm/layouts/types/layout.types.js.map +7 -0
  99. package/esm/styles/field.css +208 -0
  100. package/esm/styles/field.sty.js +9 -0
  101. package/esm/styles/field.sty.js.map +7 -0
  102. package/esm/typography/{BlockQuote → block-quote}/Blockquote.css +2 -2
  103. package/esm/typography/{BlockQuote → block-quote}/Blockquote.js.map +2 -2
  104. package/esm/typography/{BlockQuote → block-quote}/Blockquote.sty.js +1 -1
  105. package/esm/typography/{BlockQuote → block-quote}/Blockquote.sty.js.map +2 -2
  106. package/{typography/Code → esm/typography/code}/Code.css +1 -1
  107. package/esm/typography/code/Code.js.map +7 -0
  108. package/esm/typography/{Code → code}/Code.sty.js +1 -1
  109. package/esm/typography/{Code → code}/Code.sty.js.map +2 -2
  110. package/esm/typography/{Emphasis → emphasis}/Emphasis.css +1 -1
  111. package/esm/typography/{Emphasis → emphasis}/Emphasis.js.map +2 -2
  112. package/esm/typography/{Emphasis → emphasis}/Emphasis.sty.js +1 -1
  113. package/esm/typography/{Emphasis → emphasis}/Emphasis.sty.js.map +2 -2
  114. package/{typography/ExternalLink → esm/typography/external-link}/ExternalLink.css +6 -6
  115. package/esm/typography/external-link/ExternalLink.js.map +7 -0
  116. package/esm/typography/{ExternalLink → external-link}/ExternalLink.sty.js +1 -1
  117. package/esm/typography/{ExternalLink → external-link}/ExternalLink.sty.js.map +2 -2
  118. package/esm/typography/{Heading → heading}/Heading.css +7 -7
  119. package/esm/typography/heading/Heading.js.map +7 -0
  120. package/esm/typography/heading/Heading.sty.js +7 -0
  121. package/esm/typography/{Heading → heading}/Heading.sty.js.map +2 -2
  122. package/esm/typography/{Highlight → highlight}/Highlight.css +1 -1
  123. package/esm/typography/{Highlight → highlight}/Highlight.js.map +2 -2
  124. package/esm/typography/{Highlight → highlight}/Highlight.sty.js +1 -1
  125. package/esm/typography/{Highlight → highlight}/Highlight.sty.js.map +2 -2
  126. package/esm/typography/index.js +13 -13
  127. package/esm/typography/index.js.map +1 -1
  128. package/{typography/Link → esm/typography/link}/Link.css +4 -4
  129. package/esm/typography/{Link → link}/Link.js +1 -1
  130. package/esm/typography/link/Link.js.map +7 -0
  131. package/esm/typography/{Link → link}/Link.sty.js +1 -1
  132. package/esm/typography/{Link → link}/Link.sty.js.map +2 -2
  133. package/esm/typography/{List → list}/List.css +4 -4
  134. package/esm/typography/{List → list}/List.js +1 -1
  135. package/esm/typography/{List → list}/List.js.map +2 -2
  136. package/esm/typography/{List → list}/List.sty.js +2 -2
  137. package/esm/typography/{List → list}/List.sty.js.map +2 -2
  138. package/esm/typography/{Paragraph → paragraph}/Paragraph.css +3 -3
  139. package/esm/typography/{Paragraph → paragraph}/Paragraph.js.map +2 -2
  140. package/esm/typography/{Paragraph → paragraph}/Paragraph.sty.js +1 -1
  141. package/esm/typography/{Paragraph → paragraph}/Paragraph.sty.js.map +2 -2
  142. package/{typography/Strikethrough → esm/typography/strikethrough}/Strikethrough.css +1 -1
  143. package/esm/typography/strikethrough/Strikethrough.js.map +7 -0
  144. package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js +1 -1
  145. package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js.map +2 -2
  146. package/{typography/Strong → esm/typography/strong}/Strong.css +1 -1
  147. package/esm/typography/{Strong → strong}/Strong.js.map +2 -2
  148. package/esm/typography/{Strong → strong}/Strong.sty.js +1 -1
  149. package/esm/typography/{Strong → strong}/Strong.sty.js.map +2 -2
  150. package/{typography/Text → esm/typography/text}/Text.css +3 -3
  151. package/esm/typography/text/Text.js.map +7 -0
  152. package/esm/typography/{Text → text}/Text.sty.js +1 -1
  153. package/esm/typography/{Text → text}/Text.sty.js.map +2 -2
  154. package/{typography/TextEllipsis → esm/typography/text-ellipsis}/TextEllipsis.css +4 -4
  155. package/esm/typography/text-ellipsis/TextEllipsis.js.map +7 -0
  156. package/esm/typography/text-ellipsis/TextEllipsis.sty.js +7 -0
  157. package/esm/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.js.map +2 -2
  158. package/index.d.ts +1 -0
  159. package/index.js +1 -0
  160. package/lang/en.json +12 -0
  161. package/lang/ja.json +24 -0
  162. package/lang/uncompiled/en.json +8 -0
  163. package/lang/uncompiled/ja.json +14 -1
  164. package/layouts/{Divider → divider}/Divider.css +5 -5
  165. package/layouts/{Divider → divider}/Divider.sty.js +1 -1
  166. package/layouts/helpers/spacingToCss.d.ts +6 -0
  167. package/layouts/helpers/spacingToCss.js +29 -0
  168. package/layouts/hooks/useLayoutSizeProps.d.ts +6 -0
  169. package/layouts/hooks/useLayoutSizeProps.js +33 -0
  170. package/layouts/hooks/useLayoutStyles.d.ts +7 -0
  171. package/layouts/hooks/useLayoutStyles.js +123 -0
  172. package/layouts/hooks/useMarginProps.d.ts +7 -0
  173. package/layouts/hooks/useMarginProps.js +73 -0
  174. package/layouts/hooks/usePaddingProps.d.ts +7 -0
  175. package/layouts/hooks/usePaddingProps.js +77 -0
  176. package/layouts/index.d.ts +6 -2
  177. package/layouts/index.js +6 -2
  178. package/layouts/surface/Surface.css +95 -0
  179. package/layouts/surface/Surface.d.ts +46 -0
  180. package/layouts/surface/Surface.js +110 -0
  181. package/layouts/surface/Surface.sty.d.ts +43 -0
  182. package/layouts/surface/Surface.sty.js +28 -0
  183. package/layouts/surface/variables.sty.d.ts +1 -0
  184. package/layouts/surface/variables.sty.js +23 -0
  185. package/layouts/types/layout.types.d.ts +64 -0
  186. package/layouts/types/layout.types.js +15 -0
  187. package/package.json +11 -4
  188. package/styles/field.css +208 -0
  189. package/styles/field.sty.d.ts +102 -0
  190. package/styles/field.sty.js +27 -0
  191. package/styles/sprinkles.sty.d.ts +107 -107
  192. package/typography/{BlockQuote → block-quote}/Blockquote.css +2 -2
  193. package/typography/{BlockQuote → block-quote}/Blockquote.sty.js +1 -1
  194. package/{esm/typography/Code → typography/code}/Code.css +1 -1
  195. package/typography/{Code → code}/Code.d.ts +2 -2
  196. package/typography/{Code → code}/Code.sty.js +1 -1
  197. package/typography/{Emphasis → emphasis}/Emphasis.css +1 -1
  198. package/typography/{Emphasis → emphasis}/Emphasis.sty.js +1 -1
  199. package/{esm/typography/ExternalLink → typography/external-link}/ExternalLink.css +6 -6
  200. package/typography/{ExternalLink → external-link}/ExternalLink.d.ts +2 -2
  201. package/typography/{ExternalLink → external-link}/ExternalLink.sty.js +1 -1
  202. package/typography/{Heading → heading}/Heading.css +7 -7
  203. package/typography/{Heading → heading}/Heading.d.ts +3 -2
  204. package/typography/{Heading → heading}/Heading.sty.js +1 -1
  205. package/typography/{Highlight → highlight}/Highlight.css +1 -1
  206. package/typography/{Highlight → highlight}/Highlight.sty.js +1 -1
  207. package/typography/index.d.ts +26 -26
  208. package/typography/index.js +13 -13
  209. package/{esm/typography/Link → typography/link}/Link.css +4 -4
  210. package/typography/{Link → link}/Link.d.ts +2 -2
  211. package/typography/{Link → link}/Link.js +1 -1
  212. package/typography/{Link → link}/Link.sty.js +1 -1
  213. package/typography/{List → list}/List.css +4 -4
  214. package/typography/{List → list}/List.js +1 -1
  215. package/typography/{List → list}/List.sty.js +2 -2
  216. package/typography/{Paragraph → paragraph}/Paragraph.css +3 -3
  217. package/typography/{Paragraph → paragraph}/Paragraph.sty.js +1 -1
  218. package/{esm/typography/Strikethrough → typography/strikethrough}/Strikethrough.css +1 -1
  219. package/typography/{Strikethrough → strikethrough}/Strikethrough.d.ts +2 -2
  220. package/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js +1 -1
  221. package/{esm/typography/Strong → typography/strong}/Strong.css +1 -1
  222. package/typography/{Strong → strong}/Strong.sty.js +1 -1
  223. package/{esm/typography/Text → typography/text}/Text.css +3 -3
  224. package/typography/{Text → text}/Text.d.ts +3 -2
  225. package/typography/{Text → text}/Text.sty.js +1 -1
  226. package/{esm/typography/TextEllipsis → typography/text-ellipsis}/TextEllipsis.css +4 -4
  227. package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.d.ts +3 -3
  228. package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.js +1 -1
  229. package/esm/typography/Code/Code.js.map +0 -7
  230. package/esm/typography/ExternalLink/ExternalLink.js.map +0 -7
  231. package/esm/typography/Heading/Heading.js.map +0 -7
  232. package/esm/typography/Heading/Heading.sty.js +0 -7
  233. package/esm/typography/Link/Link.js.map +0 -7
  234. package/esm/typography/Strikethrough/Strikethrough.js.map +0 -7
  235. package/esm/typography/Text/Text.js.map +0 -7
  236. package/esm/typography/TextEllipsis/TextEllipsis.js.map +0 -7
  237. package/esm/typography/TextEllipsis/TextEllipsis.sty.js +0 -7
  238. package/esm/layouts/{Divider → divider}/Divider.js +0 -0
  239. package/esm/typography/{BlockQuote → block-quote}/Blockquote.js +0 -0
  240. package/esm/typography/{Code → code}/Code.js +0 -0
  241. package/esm/typography/{Emphasis → emphasis}/Emphasis.js +0 -0
  242. package/esm/typography/{ExternalLink → external-link}/ExternalLink.js +0 -0
  243. package/esm/typography/{Heading → heading}/Heading.js +0 -0
  244. package/esm/typography/{Highlight → highlight}/Highlight.js +0 -0
  245. package/esm/typography/{Paragraph → paragraph}/Paragraph.js +0 -0
  246. package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.js +0 -0
  247. package/esm/typography/{Strong → strong}/Strong.js +0 -0
  248. package/esm/typography/{Text → text}/Text.js +0 -0
  249. package/esm/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.js +0 -0
  250. package/layouts/{Divider → divider}/Divider.d.ts +0 -0
  251. package/layouts/{Divider → divider}/Divider.js +0 -0
  252. package/layouts/{Divider → divider}/Divider.sty.d.ts +0 -0
  253. package/typography/{BlockQuote → block-quote}/Blockquote.d.ts +1 -1
  254. package/typography/{BlockQuote → block-quote}/Blockquote.js +0 -0
  255. package/typography/{BlockQuote → block-quote}/Blockquote.sty.d.ts +0 -0
  256. package/typography/{Code → code}/Code.js +0 -0
  257. package/typography/{Code → code}/Code.sty.d.ts +0 -0
  258. package/typography/{Emphasis → emphasis}/Emphasis.d.ts +1 -1
  259. package/typography/{Emphasis → emphasis}/Emphasis.js +0 -0
  260. package/typography/{Emphasis → emphasis}/Emphasis.sty.d.ts +0 -0
  261. package/typography/{ExternalLink → external-link}/ExternalLink.js +0 -0
  262. package/typography/{ExternalLink → external-link}/ExternalLink.sty.d.ts +0 -0
  263. package/typography/{Heading → heading}/Heading.js +0 -0
  264. package/typography/{Heading → heading}/Heading.sty.d.ts +0 -0
  265. package/typography/{Highlight → highlight}/Highlight.d.ts +1 -1
  266. package/typography/{Highlight → highlight}/Highlight.js +0 -0
  267. package/typography/{Highlight → highlight}/Highlight.sty.d.ts +0 -0
  268. package/typography/{Link → link}/Link.sty.d.ts +0 -0
  269. package/typography/{List → list}/List.d.ts +1 -1
  270. package/typography/{List → list}/List.sty.d.ts +0 -0
  271. package/typography/{Paragraph → paragraph}/Paragraph.d.ts +1 -1
  272. package/typography/{Paragraph → paragraph}/Paragraph.js +0 -0
  273. package/typography/{Paragraph → paragraph}/Paragraph.sty.d.ts +0 -0
  274. package/typography/{Strikethrough → strikethrough}/Strikethrough.js +0 -0
  275. package/typography/{Strikethrough → strikethrough}/Strikethrough.sty.d.ts +0 -0
  276. package/typography/{Strong → strong}/Strong.d.ts +1 -1
  277. /package/typography/{Strong → strong}/Strong.js +0 -0
  278. /package/typography/{Strong → strong}/Strong.sty.d.ts +0 -0
  279. /package/typography/{Text → text}/Text.js +0 -0
  280. /package/typography/{Text → text}/Text.sty.d.ts +0 -0
  281. /package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.js +0 -0
  282. /package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.d.ts +0 -0
@@ -0,0 +1,54 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var Prefix_exports = {};
29
+ __export(Prefix_exports, {
30
+ Prefix: () => Prefix
31
+ });
32
+ module.exports = __toCommonJS(Prefix_exports);
33
+ var import_react = __toESM(require("react"));
34
+ var import_Flex = require("../../layouts/flex/Flex.js");
35
+ const Prefix = /* @__PURE__ */ (0, import_react.forwardRef)((props, forwardedRef) => {
36
+ const {
37
+ children,
38
+ className: consumerClassName,
39
+ style: consumerStyle,
40
+ "data-testid": dataTestId
41
+ } = props;
42
+ return /* @__PURE__ */ import_react.default.createElement(
43
+ import_Flex.Flex,
44
+ {
45
+ "data-testid": dataTestId,
46
+ ref: forwardedRef,
47
+ gap: 0,
48
+ className: consumerClassName,
49
+ style: consumerStyle
50
+ },
51
+ children
52
+ );
53
+ });
54
+ Prefix.displayName = "Button.Prefix";
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { type DataTestId } from '../../core/types/data-props.js';
3
+ import { type StylingProps } from '../../core/types/styling-props.js';
4
+ /**
5
+ * Accepted properties for the Button Suffix.
6
+ * @public
7
+ */
8
+ export interface ButtonSuffixProps extends StylingProps, DataTestId {
9
+ /** Elements to be displayed in the Button Suffix slot. */
10
+ children: React.ReactNode;
11
+ }
12
+ /**
13
+ * Button Suffix component.
14
+ * @public
15
+ */
16
+ export declare const Suffix: (props: ButtonSuffixProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,56 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var Suffix_exports = {};
29
+ __export(Suffix_exports, {
30
+ Suffix: () => Suffix
31
+ });
32
+ module.exports = __toCommonJS(Suffix_exports);
33
+ var import_react = __toESM(require("react"));
34
+ var import_Flex = require("../../layouts/flex/Flex.js");
35
+ const Suffix = (0, import_react.forwardRef)(
36
+ (props, forwardedRef) => {
37
+ const {
38
+ children,
39
+ className: consumerClassName,
40
+ style: consumerStyle,
41
+ "data-testid": dataTestId
42
+ } = props;
43
+ return /* @__PURE__ */ import_react.default.createElement(
44
+ import_Flex.Flex,
45
+ {
46
+ "data-testid": dataTestId,
47
+ gap: 0,
48
+ ref: forwardedRef,
49
+ className: consumerClassName,
50
+ style: consumerStyle
51
+ },
52
+ children
53
+ );
54
+ }
55
+ );
56
+ Suffix.displayName = "Button.Suffix";
@@ -0,0 +1,37 @@
1
+ import { type ElementType } from 'react';
2
+ import { type AriaLabelingProps } from '../../../core/types/a11y-props.js';
3
+ import { type ButtonProps } from '../Button.js';
4
+ /**
5
+ * Defines the available Button Aria Props.
6
+ * @internal
7
+ */
8
+ export interface ButtonAria<T> {
9
+ /** Props for the button element. */
10
+ buttonProps: T;
11
+ /** Whether the button is currently pressed. */
12
+ isPressed: boolean;
13
+ }
14
+ /**
15
+ * Defines the Aria Base Button Props.
16
+ * @internal
17
+ */
18
+ export interface AriaBaseButtonProps extends AriaLabelingProps {
19
+ /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
20
+ 'aria-expanded'?: boolean | 'true' | 'false';
21
+ /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
22
+ 'aria-haspopup'?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | 'true' | 'false';
23
+ /** Identifies the element (or elements) whose contents or presence are controlled by the current element. */
24
+ 'aria-controls'?: string;
25
+ /** Indicates the current "pressed" state of toggle buttons. */
26
+ 'aria-pressed'?: boolean | 'true' | 'false' | 'mixed';
27
+ /**
28
+ * The behavior of the button when used in an HTML form.
29
+ * @defaultValue 'button'
30
+ */
31
+ type?: 'button' | 'submit' | 'reset';
32
+ }
33
+ /**
34
+ * Combines the ButtonProps with the AriaBaseButtonProps.
35
+ * @internal
36
+ */
37
+ export type AriaButtonProps = ButtonProps<ElementType> & AriaBaseButtonProps;
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var button_aria_exports = {};
15
+ module.exports = __toCommonJS(button_aria_exports);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Focuses on the given element without triggering scrolling behavior.
3
+ * @internal
4
+ */
5
+ export declare function focusWithoutScrolling(element: Element & HTMLOrSVGElement): void;
@@ -0,0 +1,77 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var focus_without_scrolling_exports = {};
19
+ __export(focus_without_scrolling_exports, {
20
+ focusWithoutScrolling: () => focusWithoutScrolling
21
+ });
22
+ module.exports = __toCommonJS(focus_without_scrolling_exports);
23
+ let supportsPreventScrollCached = null;
24
+ function supportsPreventScroll() {
25
+ if (supportsPreventScrollCached === null) {
26
+ supportsPreventScrollCached = false;
27
+ try {
28
+ const focusElem = document.createElement("div");
29
+ focusElem.focus({
30
+ get preventScroll() {
31
+ supportsPreventScrollCached = true;
32
+ return true;
33
+ }
34
+ });
35
+ } catch (e) {
36
+ }
37
+ }
38
+ return supportsPreventScrollCached;
39
+ }
40
+ function getScrollableElements(element) {
41
+ let parent = element.parentNode;
42
+ const scrollableElements = [];
43
+ const rootScrollingElement = document.scrollingElement || document.documentElement;
44
+ while (parent instanceof HTMLElement && parent !== rootScrollingElement) {
45
+ if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) {
46
+ scrollableElements.push({
47
+ element: parent,
48
+ scrollTop: parent.scrollTop,
49
+ scrollLeft: parent.scrollLeft
50
+ });
51
+ }
52
+ parent = parent.parentNode;
53
+ }
54
+ if (rootScrollingElement instanceof HTMLElement) {
55
+ scrollableElements.push({
56
+ element: rootScrollingElement,
57
+ scrollTop: rootScrollingElement.scrollTop,
58
+ scrollLeft: rootScrollingElement.scrollLeft
59
+ });
60
+ }
61
+ return scrollableElements;
62
+ }
63
+ function restoreScrollPosition(scrollableElements) {
64
+ for (const { element, scrollTop, scrollLeft } of scrollableElements) {
65
+ element.scrollTop = scrollTop;
66
+ element.scrollLeft = scrollLeft;
67
+ }
68
+ }
69
+ function focusWithoutScrolling(element) {
70
+ if (supportsPreventScroll()) {
71
+ element.focus({ preventScroll: true });
72
+ } else {
73
+ const scrollableElements = getScrollableElements(element);
74
+ element.focus();
75
+ restoreScrollPosition(scrollableElements);
76
+ }
77
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Determines whether the given event represents a virtual click.
3
+ * @internal
4
+ */
5
+ export declare function isVirtualClick(event: MouseEvent | PointerEvent): boolean;
6
+ /**
7
+ * Determines whether the given event represents a virtual pointer event.
8
+ * @internal
9
+ */
10
+ export declare function isVirtualPointerEvent(event: PointerEvent): boolean;
@@ -0,0 +1,32 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var is_virtual_event_exports = {};
19
+ __export(is_virtual_event_exports, {
20
+ isVirtualClick: () => isVirtualClick,
21
+ isVirtualPointerEvent: () => isVirtualPointerEvent
22
+ });
23
+ module.exports = __toCommonJS(is_virtual_event_exports);
24
+ function isVirtualClick(event) {
25
+ if (event.mozInputSource === 0 && event.isTrusted) {
26
+ return true;
27
+ }
28
+ return event.detail === 0 && !event.pointerType;
29
+ }
30
+ function isVirtualPointerEvent(event) {
31
+ return event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
32
+ }
@@ -0,0 +1,10 @@
1
+ export { Button } from './button/Button.js';
2
+ export type { ButtonOwnProps, ButtonProps } from './button/Button.js';
3
+ export type { ButtonLabelProps } from './button/Label.js';
4
+ export type { ButtonPrefixProps } from './button/Prefix.js';
5
+ export type { ButtonSuffixProps } from './button/Suffix.js';
6
+ export type { AriaButtonProps as _AriaButtonProps, ButtonAria as _ButtonAria, AriaBaseButtonProps as _AriaBaseButtonProps, } from './button/types/button-aria.js';
7
+ export { focusWithoutScrolling as _focusWithoutScrolling } from './button/utils/focus-without-scrolling.js';
8
+ export { isVirtualPointerEvent as _isVirtualPointerEvent, isVirtualClick as _isVirtualClick, } from './button/utils/is-virtual-event.js';
9
+ export { IntentButton } from './intent-button/IntentButton.js';
10
+ export type { IntentButtonProps, IntentButtonPropsBase, } from './intent-button/IntentButton.js';
@@ -0,0 +1,30 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var buttons_exports = {};
19
+ __export(buttons_exports, {
20
+ Button: () => import_Button.Button,
21
+ IntentButton: () => import_IntentButton.IntentButton,
22
+ _focusWithoutScrolling: () => import_focus_without_scrolling.focusWithoutScrolling,
23
+ _isVirtualClick: () => import_is_virtual_event.isVirtualClick,
24
+ _isVirtualPointerEvent: () => import_is_virtual_event.isVirtualPointerEvent
25
+ });
26
+ module.exports = __toCommonJS(buttons_exports);
27
+ var import_Button = require("./button/Button.js");
28
+ var import_focus_without_scrolling = require("./button/utils/focus-without-scrolling.js");
29
+ var import_is_virtual_event = require("./button/utils/is-virtual-event.js");
30
+ var import_IntentButton = require("./intent-button/IntentButton.js");
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { type IntentPayload } from '@dynatrace-sdk/navigation';
3
+ import { type AriaLabelingProps } from '../../core/types/a11y-props.js';
4
+ import { type DataTestId } from '../../core/types/data-props.js';
5
+ import { type DOMProps } from '../../core/types/dom.js';
6
+ import { type MaskingProps } from '../../core/types/masking-props.js';
7
+ import { type StylingProps } from '../../core/types/styling-props.js';
8
+ import { type ButtonOwnProps } from '../button/Button.js';
9
+ /**
10
+ * Accepted properties for the Button.
11
+ * @public
12
+ */
13
+ export interface IntentButtonPropsBase extends Omit<ButtonOwnProps, 'loading' | 'type'>, AriaLabelingProps, DOMProps, StylingProps, DataTestId, MaskingProps {
14
+ /** Intent payload passed between apps.*/
15
+ payload: IntentPayload;
16
+ /** Intended for setting a custom button label. When nothing is set, no label is shown. */
17
+ children?: string;
18
+ }
19
+ /**
20
+ * Merge own props with ID props.
21
+ * Props for recommending an app to receive the intent. Either both properties or none of them needs to be specified.
22
+ * @public
23
+ */
24
+ export type IntentButtonProps = IntentButtonPropsBase & ({
25
+ appId?: never;
26
+ intentId?: never;
27
+ } | {
28
+ /**
29
+ * ID of the app that will be launched to handle the intent.
30
+ */
31
+ appId: string;
32
+ /**
33
+ * ID of the action that will be passed to the app.
34
+ */
35
+ intentId: string;
36
+ });
37
+ /**
38
+ * The `IntentButton` is a dedicated button component for sending
39
+ * {@link https://developer.dynatrace.com/develop/intents/ | intents}.
40
+ * It takes care of opening the intent dialog. An `IntentButton` only works
41
+ * in the AppShell context.
42
+ * @public
43
+ */
44
+ export declare const IntentButton: (props: IntentButtonProps & React.RefAttributes<HTMLAnchorElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,102 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var IntentButton_exports = {};
29
+ __export(IntentButton_exports, {
30
+ IntentButton: () => IntentButton
31
+ });
32
+ module.exports = __toCommonJS(IntentButton_exports);
33
+ var import_react = __toESM(require("react"));
34
+ var import_react_intl = require("react-intl");
35
+ var import_strato_icons = require("@dynatrace/strato-icons");
36
+ var import_useIntentButton = require("./useIntentButton.js");
37
+ var import_Button = require("../button/Button.js");
38
+ const IntentButton = /* @__PURE__ */ (0, import_react.forwardRef)((props, forwardedRef) => {
39
+ const intl = (0, import_react_intl.useIntl)();
40
+ const {
41
+ children,
42
+ payload,
43
+ appId,
44
+ intentId,
45
+ disabled,
46
+ onClick: onClickProp,
47
+ "aria-label": ariaLabelProp,
48
+ className: consumerClassName,
49
+ style: consumerStyle,
50
+ "data-testid": dataTestId,
51
+ "data-dtrum-mask": dataDtrumMask,
52
+ "data-dtrum-allow": dataDtrumAllow,
53
+ ...remainingProps
54
+ } = props;
55
+ const label = children?.trim();
56
+ const ariaLabel = ariaLabelProp || label || intl.formatMessage({
57
+ description: "Intent button open label",
58
+ defaultMessage: "Open with",
59
+ id: "JQOGuaGgqJObmSY1"
60
+ });
61
+ const intentButtonProps = (0, import_useIntentButton.useIntentButton)(
62
+ payload,
63
+ appId,
64
+ intentId,
65
+ onClickProp
66
+ );
67
+ if (disabled) {
68
+ return /* @__PURE__ */ import_react.default.createElement(
69
+ import_Button.Button,
70
+ {
71
+ disabled: true,
72
+ "data-testid": dataTestId,
73
+ "data-dtrum-mask": dataDtrumMask,
74
+ "data-dtrum-allow": dataDtrumAllow,
75
+ "aria-label": ariaLabel,
76
+ className: consumerClassName,
77
+ style: consumerStyle,
78
+ ...remainingProps
79
+ },
80
+ label,
81
+ /* @__PURE__ */ import_react.default.createElement(import_Button.Button.Suffix, null, /* @__PURE__ */ import_react.default.createElement(import_strato_icons.OpenWithIcon, null))
82
+ );
83
+ }
84
+ return /* @__PURE__ */ import_react.default.createElement(
85
+ import_Button.Button,
86
+ {
87
+ as: "a",
88
+ ref: forwardedRef,
89
+ "data-testid": dataTestId,
90
+ "data-dtrum-mask": dataDtrumMask,
91
+ "data-dtrum-allow": dataDtrumAllow,
92
+ "aria-label": ariaLabel ?? label,
93
+ className: consumerClassName,
94
+ style: consumerStyle,
95
+ ...remainingProps,
96
+ ...intentButtonProps
97
+ },
98
+ label,
99
+ /* @__PURE__ */ import_react.default.createElement(import_Button.Button.Suffix, null, /* @__PURE__ */ import_react.default.createElement(import_strato_icons.OpenWithIcon, null))
100
+ );
101
+ });
102
+ IntentButton.displayName = "IntentButton";
@@ -0,0 +1,12 @@
1
+ import { type IntentPayload } from '@dynatrace-sdk/navigation';
2
+ /**
3
+ * return shared intent button logic
4
+ * @param payload - an intent payload
5
+ * @returns intentLink and triggerIntent
6
+ * @internal
7
+ */
8
+ export declare function useIntentButton(payload: IntentPayload, appId?: string, intentId?: string, onClickProp?: React.MouseEventHandler): {
9
+ href: string;
10
+ onClick: (event: React.MouseEvent) => void;
11
+ onKeyDown: (event: React.KeyboardEvent) => void;
12
+ };
@@ -0,0 +1,72 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var useIntentButton_exports = {};
19
+ __export(useIntentButton_exports, {
20
+ useIntentButton: () => useIntentButton
21
+ });
22
+ module.exports = __toCommonJS(useIntentButton_exports);
23
+ var import_react = require("react");
24
+ var import_navigation = require("@dynatrace-sdk/navigation");
25
+ function useIntentButton(payload, appId, intentId, onClickProp) {
26
+ const href = (0, import_react.useMemo)(
27
+ () => (
28
+ // SDK documentation is invalid. appId & intentId are in fact mandatory.
29
+ // This is why the ternary is necessary to ensure to call the correct signature.
30
+ appId && intentId ? (0, import_navigation.getIntentLink)(payload, appId, intentId) : (0, import_navigation.getIntentLink)(payload)
31
+ ),
32
+ [appId, intentId, payload]
33
+ );
34
+ const triggerIntent = (0, import_react.useCallback)(() => {
35
+ appId && intentId ? (0, import_navigation.sendIntent)(payload, appId, intentId) : (0, import_navigation.sendIntent)(payload);
36
+ }, [appId, intentId, payload]);
37
+ const onClick = (0, import_react.useCallback)(
38
+ (event) => {
39
+ onClickProp?.(event);
40
+ if (event.isDefaultPrevented()) {
41
+ return;
42
+ }
43
+ const nativeEvent = event.nativeEvent;
44
+ if (nativeEvent.button !== 0 || nativeEvent.metaKey || nativeEvent.ctrlKey || nativeEvent.shiftKey) {
45
+ return;
46
+ }
47
+ event.preventDefault();
48
+ triggerIntent();
49
+ },
50
+ [onClickProp, triggerIntent]
51
+ );
52
+ const onKeyDown = (0, import_react.useCallback)(
53
+ (event) => {
54
+ const nativeEvent = event.nativeEvent;
55
+ if (nativeEvent.code !== "Space" && nativeEvent.code !== "Enter") {
56
+ return;
57
+ }
58
+ event.preventDefault();
59
+ if (nativeEvent.metaKey || nativeEvent.ctrlKey) {
60
+ window.open(href);
61
+ return;
62
+ }
63
+ if (nativeEvent.shiftKey) {
64
+ window.open(href, "_blank", "menubar");
65
+ return;
66
+ }
67
+ triggerIntent();
68
+ },
69
+ [href, triggerIntent]
70
+ );
71
+ return { href, onClick, onKeyDown };
72
+ }
@@ -5,3 +5,7 @@ export type { ProgressBarLabelProps } from './progress/ProgressBarLabel.js';
5
5
  export type { ProgressBarValueProps } from './progress/ProgressBarValue.js';
6
6
  export { ProgressCircle } from './progress/ProgressCircle.js';
7
7
  export type { ProgressCircleProps } from './progress/ProgressCircle.js';
8
+ export { Skeleton } from './skeleton/Skeleton.js';
9
+ export type { SkeletonProps } from './skeleton/Skeleton.js';
10
+ export { SkeletonText } from './skeleton/SkeletonText.js';
11
+ export type { SkeletonTextProps } from './skeleton/SkeletonText.js';
package/content/index.js CHANGED
@@ -18,8 +18,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
18
18
  var content_exports = {};
19
19
  __export(content_exports, {
20
20
  ProgressBar: () => import_ProgressBar.ProgressBar,
21
- ProgressCircle: () => import_ProgressCircle.ProgressCircle
21
+ ProgressCircle: () => import_ProgressCircle.ProgressCircle,
22
+ Skeleton: () => import_Skeleton.Skeleton,
23
+ SkeletonText: () => import_SkeletonText.SkeletonText
22
24
  });
23
25
  module.exports = __toCommonJS(content_exports);
24
26
  var import_ProgressBar = require("./progress/ProgressBar.js");
25
27
  var import_ProgressCircle = require("./progress/ProgressCircle.js");
28
+ var import_Skeleton = require("./skeleton/Skeleton.js");
29
+ var import_SkeletonText = require("./skeleton/SkeletonText.js");
@@ -41,7 +41,6 @@ var import_ProgressBarIcon = require("./ProgressBarIcon.js");
41
41
  var import_ProgressBarLabel = require("./ProgressBarLabel.js");
42
42
  var import_ProgressBarValue = require("./ProgressBarValue.js");
43
43
  var import_useAriaLabelingProps = require("../../core/hooks/useAriaLabelingProps.js");
44
- var import_useId = require("../../core/hooks/useId.js");
45
44
  var import_useSafeForwardProps = require("../../core/hooks/useSafeForwardProps.js");
46
45
  var import_colorUtils_css = require("../../styles/colorUtils.sty.js");
47
46
  function getProgressBarSlots(children) {
@@ -99,7 +98,7 @@ const _ProgressBar = (0, import_react.forwardRef)(
99
98
  );
100
99
  const ariaLabelingProps = (0, import_useAriaLabelingProps.useAriaLabelingProps)(remainingProps);
101
100
  const forwardProps = (0, import_useSafeForwardProps.useSafeForwardProps)(remainingProps, ariaLabelingProps);
102
- const generatedId = (0, import_useId.useId)({ prefix: "progress-bar" });
101
+ const generatedId = (0, import_react.useId)();
103
102
  const id = propId ?? generatedId;
104
103
  if (!slots.label && !ariaLabelingProps["aria-label"] && !ariaLabelingProps["aria-labelledby"]) {
105
104
  // eslint-disable-next-line no-console
@@ -35,7 +35,6 @@ var import_react = __toESM(require("react"));
35
35
  var import_useProgressAriaProps = require("./hooks/useProgressAriaProps.js");
36
36
  var import_ProgressCircle_css = require("./ProgressCircle.sty.js");
37
37
  var import_useAriaLabelingProps = require("../../core/hooks/useAriaLabelingProps.js");
38
- var import_useId = require("../../core/hooks/useId.js");
39
38
  var import_useSafeForwardProps = require("../../core/hooks/useSafeForwardProps.js");
40
39
  var import_colorUtils_css = require("../../styles/colorUtils.sty.js");
41
40
  var import_container_css = require("../../styles/container.sty.js");
@@ -71,7 +70,7 @@ const ProgressCircle = (0, import_react.forwardRef)(
71
70
  );
72
71
  const ariaLabelingProps = (0, import_useAriaLabelingProps.useAriaLabelingProps)(remainingProps);
73
72
  const forwardProps = (0, import_useSafeForwardProps.useSafeForwardProps)(remainingProps, ariaLabelingProps);
74
- const generatedId = (0, import_useId.useId)({ prefix: "progress-circle" });
73
+ const generatedId = (0, import_react.useId)();
75
74
  const id = propId ?? generatedId;
76
75
  const circleStyles = {};
77
76
  const rootProps = {};