@dynatrace/strato-components 0.85.21 → 0.85.41

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 (66) hide show
  1. package/buttons/button/Button.d.ts +4 -4
  2. package/buttons/button/Button.js +7 -3
  3. package/buttons/button/Label.d.ts +1 -1
  4. package/buttons/button/Prefix.d.ts +1 -1
  5. package/buttons/button/Suffix.d.ts +1 -1
  6. package/buttons/intent-button/IntentButton.d.ts +1 -1
  7. package/content/progress/ProgressBar.d.ts +4 -4
  8. package/content/progress/ProgressBarIcon.d.ts +1 -1
  9. package/content/progress/ProgressBarLabel.d.ts +1 -1
  10. package/content/progress/ProgressBarValue.d.ts +1 -1
  11. package/content/progress/ProgressCircle.d.ts +1 -1
  12. package/content/skeleton/Skeleton.d.ts +1 -1
  13. package/content/skeleton/SkeletonText.d.ts +1 -1
  14. package/core/components/app-root/AppRoot.d.ts +3 -3
  15. package/core/components/focus-scope/FocusScope.d.ts +1 -1
  16. package/core/contexts/FocusContext.d.ts +1 -2
  17. package/core/index.d.ts +1 -0
  18. package/core/index.js +2 -0
  19. package/core/providers/FocusProvider.d.ts +2 -3
  20. package/core/utils/parse-boolean.d.ts +9 -0
  21. package/core/utils/parse-boolean.js +31 -0
  22. package/esm/buttons/button/Button.js +7 -3
  23. package/esm/buttons/button/Button.js.map +2 -2
  24. package/esm/core/components/app-root/AppRoot.js.map +2 -2
  25. package/esm/core/components/focus-scope/FocusScope.js.map +1 -1
  26. package/esm/core/contexts/FocusContext.js.map +2 -2
  27. package/esm/core/index.js +2 -0
  28. package/esm/core/index.js.map +2 -2
  29. package/esm/core/providers/FocusProvider.js.map +2 -2
  30. package/esm/core/utils/parse-boolean.js +13 -0
  31. package/esm/core/utils/parse-boolean.js.map +7 -0
  32. package/esm/layouts/hooks/useBreakpoint.js +44 -0
  33. package/esm/layouts/hooks/useBreakpoint.js.map +7 -0
  34. package/esm/layouts/index.js +9 -1
  35. package/esm/layouts/index.js.map +2 -2
  36. package/esm/layouts/input-group/InputGroup.css +8 -0
  37. package/esm/layouts/input-group/InputGroup.sty.js +8 -0
  38. package/esm/layouts/input-group/InputGroup.sty.js.map +7 -0
  39. package/esm/styles/index.js +2 -0
  40. package/esm/styles/index.js.map +2 -2
  41. package/esm/typography/text/Text.js.map +2 -2
  42. package/layouts/divider/Divider.d.ts +1 -1
  43. package/layouts/hooks/useBreakpoint.d.ts +27 -0
  44. package/layouts/hooks/useBreakpoint.js +62 -0
  45. package/layouts/index.d.ts +3 -1
  46. package/layouts/index.js +6 -1
  47. package/layouts/input-group/InputGroup.css +8 -0
  48. package/layouts/input-group/InputGroup.sty.d.ts +4 -0
  49. package/layouts/input-group/InputGroup.sty.js +26 -0
  50. package/layouts/surface/variables.sty.d.ts +1 -0
  51. package/package.json +11 -4
  52. package/styles/index.d.ts +2 -1
  53. package/styles/index.js +2 -0
  54. package/styles/safe-sprinkles.d.ts +1 -1
  55. package/testing/mocks/table-virtualization-mock.js +6 -3
  56. package/typography/block-quote/Blockquote.d.ts +1 -1
  57. package/typography/code/Code.d.ts +1 -1
  58. package/typography/emphasis/Emphasis.d.ts +1 -1
  59. package/typography/external-link/ExternalLink.d.ts +1 -1
  60. package/typography/heading/Heading.d.ts +1 -1
  61. package/typography/list/List.d.ts +1 -1
  62. package/typography/paragraph/Paragraph.d.ts +1 -1
  63. package/typography/strikethrough/Strikethrough.d.ts +1 -1
  64. package/typography/strong/Strong.d.ts +1 -1
  65. package/typography/text/Text.d.ts +2 -1
  66. package/typography/text-ellipsis/TextEllipsis.d.ts +1 -1
@@ -0,0 +1,44 @@
1
+ import { useCallback, useMemo, useSyncExternalStore } from "react";
2
+ function useBreakpoint(queries, ssrInitialValue) {
3
+ const _ssrInitialValue = ssrInitialValue ?? (Array.isArray(queries) ? [] : false);
4
+ const mediaQueryLists = useMemo(() => {
5
+ const queryStrings = Array.isArray(queries) ? queries : [queries];
6
+ return queryStrings.map((q) => window.matchMedia(q));
7
+ }, [queries]);
8
+ const subscribe = useCallback(
9
+ (callback) => {
10
+ mediaQueryLists.forEach(
11
+ (mql) => mql.addEventListener("change", callback)
12
+ );
13
+ return () => {
14
+ mediaQueryLists.forEach(
15
+ (mql) => mql.removeEventListener("change", callback)
16
+ );
17
+ };
18
+ },
19
+ [mediaQueryLists]
20
+ );
21
+ const getSnapshot = () => {
22
+ return JSON.stringify(mediaQueryLists.map((q) => q.matches));
23
+ };
24
+ const getServerSnapshot = () => {
25
+ if (Array.isArray(_ssrInitialValue)) {
26
+ const adjustedValue = _ssrInitialValue.concat(Array(queries.length).fill(false)).slice(0, queries.length);
27
+ return JSON.stringify(adjustedValue);
28
+ }
29
+ return JSON.stringify([_ssrInitialValue]);
30
+ };
31
+ const queryValues = useSyncExternalStore(
32
+ subscribe,
33
+ getSnapshot,
34
+ getServerSnapshot
35
+ );
36
+ if (!Array.isArray(queries)) {
37
+ return JSON.parse(queryValues)[0];
38
+ }
39
+ return JSON.parse(queryValues);
40
+ }
41
+ export {
42
+ useBreakpoint
43
+ };
44
+ //# sourceMappingURL=useBreakpoint.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/layouts/hooks/useBreakpoint.ts"],
4
+ "sourcesContent": ["// taken and adapted from https://github.com/jepser/use-match-media\n\nimport { useCallback, useMemo, useSyncExternalStore } from 'react';\n\n/**\n * `useBreakpoint` is a hook used to determine if the document matches the media\n * query string (or media query list). It will listen to the breakpoints specified\n * and will return a boolean value indicating if this media query is met or not.\n * @public\n */\nfunction useBreakpoint(\n /** Media Query you want to test, eg '(min-width: 800px)' */\n query: string,\n /** Default value (fallback value to support SSR)\n * @defaultValue false\n */\n ssrInitialValue?: boolean,\n): boolean;\n\n/**\n * `useBreakpoint` is a hook used to determine if the document matches the media\n * query string (or media query list). It will listen to the breakpoints specified\n * and will return a boolean value indicating if this media query is met or not.\n * @public\n */\nfunction useBreakpoint(\n /** Media Queries you want to test, eg '[(min-width: 400px), (min-width: 800px)]' */\n queries: string[],\n /** Default values (fallback values to support SSR)\n * @defaultValue []\n */\n ssrInitialValue?: boolean[],\n): boolean[];\n\n/** @public */\nfunction useBreakpoint(\n queries: string | string[],\n ssrInitialValue?: boolean | boolean[],\n): boolean | boolean[] {\n const _ssrInitialValue =\n ssrInitialValue ?? (Array.isArray(queries) ? [] : false);\n\n const mediaQueryLists = useMemo(() => {\n const queryStrings = Array.isArray(queries) ? queries : [queries];\n return queryStrings.map((q) => window.matchMedia(q));\n }, [queries]);\n\n const subscribe = useCallback(\n (callback: () => void) => {\n mediaQueryLists.forEach((mql) =>\n mql.addEventListener('change', callback),\n );\n return (): void => {\n mediaQueryLists.forEach((mql) =>\n mql.removeEventListener('change', callback),\n );\n };\n },\n [mediaQueryLists],\n );\n\n /**\n * Generates an immutable snapshot of the current media query matches.\n * This is necessary to ensure the snapshot remains consistent and does not change.\n * @see {@link https://react.dev/reference/react/useSyncExternalStore#im-getting-an-error-the-result-of-getsnapshot-should-be-cached}\n */\n const getSnapshot = () => {\n return JSON.stringify(mediaQueryLists.map((q) => q.matches));\n };\n\n const getServerSnapshot = () => {\n if (Array.isArray(_ssrInitialValue)) {\n // Ensure the array is filled with false values or sliced to match queries.length\n const adjustedValue = _ssrInitialValue\n .concat(Array(queries.length).fill(false))\n .slice(0, queries.length);\n return JSON.stringify(adjustedValue);\n }\n return JSON.stringify([_ssrInitialValue] || [false]);\n };\n\n const queryValues = useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot,\n );\n\n if (!Array.isArray(queries)) {\n return JSON.parse(queryValues)[0];\n }\n return JSON.parse(queryValues);\n}\n\nexport { useBreakpoint };\n"],
5
+ "mappings": "AAEA,SAAS,aAAa,SAAS,4BAA4B;AAiC3D,SAAS,cACP,SACA,iBACqB;AACrB,QAAM,mBACJ,oBAAoB,MAAM,QAAQ,OAAO,IAAI,CAAC,IAAI;AAEpD,QAAM,kBAAkB,QAAQ,MAAM;AACpC,UAAM,eAAe,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO;AAChE,WAAO,aAAa,IAAI,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAAA,EACrD,GAAG,CAAC,OAAO,CAAC;AAEZ,QAAM,YAAY;AAAA,IAChB,CAAC,aAAyB;AACxB,sBAAgB;AAAA,QAAQ,CAAC,QACvB,IAAI,iBAAiB,UAAU,QAAQ;AAAA,MACzC;AACA,aAAO,MAAY;AACjB,wBAAgB;AAAA,UAAQ,CAAC,QACvB,IAAI,oBAAoB,UAAU,QAAQ;AAAA,QAC5C;AAAA,MACF;AAAA,IACF;AAAA,IACA,CAAC,eAAe;AAAA,EAClB;AAOA,QAAM,cAAc,MAAM;AACxB,WAAO,KAAK,UAAU,gBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC;AAAA,EAC7D;AAEA,QAAM,oBAAoB,MAAM;AAC9B,QAAI,MAAM,QAAQ,gBAAgB,GAAG;AAEnC,YAAM,gBAAgB,iBACnB,OAAO,MAAM,QAAQ,MAAM,EAAE,KAAK,KAAK,CAAC,EACxC,MAAM,GAAG,QAAQ,MAAM;AAC1B,aAAO,KAAK,UAAU,aAAa;AAAA,IACrC;AACA,WAAO,KAAK,UAAU,CAAC,gBAAgB,CAAY;AAAA,EACrD;AAEA,QAAM,cAAc;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,MAAI,CAAC,MAAM,QAAQ,OAAO,GAAG;AAC3B,WAAO,KAAK,MAAM,WAAW,EAAE,CAAC;AAAA,EAClC;AACA,SAAO,KAAK,MAAM,WAAW;AAC/B;",
6
+ "names": []
7
+ }
@@ -4,12 +4,20 @@ import { Divider } from "./divider/Divider.js";
4
4
  import { Container } from "./container/Container.js";
5
5
  import { Surface } from "./surface/Surface.js";
6
6
  import { surfaceBorderRadius } from "./surface/variables.sty.js";
7
+ import { useBreakpoint } from "./hooks/useBreakpoint.js";
8
+ import {
9
+ inputGroupChildCSS,
10
+ inputGroupCSS
11
+ } from "./input-group/InputGroup.sty.js";
7
12
  export {
8
13
  Container,
9
14
  Divider,
10
15
  Flex,
11
16
  Grid,
12
17
  Surface,
13
- surfaceBorderRadius as _surfaceBorderRadius
18
+ inputGroupCSS as _inputGroupCSS,
19
+ inputGroupChildCSS as _inputGroupChildCSS,
20
+ surfaceBorderRadius as _surfaceBorderRadius,
21
+ useBreakpoint
14
22
  };
15
23
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/layouts/index.ts"],
4
- "sourcesContent": ["export { Flex, type FlexOwnProps, type FlexProps } from './flex/Flex.js';\nexport { Grid, type GridOwnProps, type GridProps } from './grid/Grid.js';\nexport { Divider } from './divider/Divider.js';\nexport type { DividerProps } from './divider/Divider.js';\nexport { Container } from './container/Container.js';\nexport type {\n ContainerOwnProps,\n ContainerProps,\n} from './container/Container.js';\nexport type { LayoutSizeCSS } from './types/layout.types.js';\nexport { Surface } from './surface/Surface.js';\nexport type { SurfaceOwnProps, SurfaceProps } from './surface/Surface.js';\nexport { surfaceBorderRadius as _surfaceBorderRadius } from './surface/variables.sty.js';\n"],
5
- "mappings": "AAAA,SAAS,YAA+C;AACxD,SAAS,YAA+C;AACxD,SAAS,eAAe;AAExB,SAAS,iBAAiB;AAM1B,SAAS,eAAe;AAExB,SAAgC,2BAA4B;",
4
+ "sourcesContent": ["export { Flex, type FlexOwnProps, type FlexProps } from './flex/Flex.js';\nexport { Grid, type GridOwnProps, type GridProps } from './grid/Grid.js';\nexport { Divider } from './divider/Divider.js';\nexport type { DividerProps } from './divider/Divider.js';\nexport { Container } from './container/Container.js';\nexport type {\n ContainerOwnProps,\n ContainerProps,\n} from './container/Container.js';\nexport type { LayoutSizeCSS } from './types/layout.types.js';\nexport { Surface } from './surface/Surface.js';\nexport type { SurfaceOwnProps, SurfaceProps } from './surface/Surface.js';\nexport { surfaceBorderRadius as _surfaceBorderRadius } from './surface/variables.sty.js';\nexport { useBreakpoint } from './hooks/useBreakpoint.js';\nexport {\n inputGroupChildCSS as _inputGroupChildCSS,\n inputGroupCSS as _inputGroupCSS,\n} from './input-group/InputGroup.sty.js';\n"],
5
+ "mappings": "AAAA,SAAS,YAA+C;AACxD,SAAS,YAA+C;AACxD,SAAS,eAAe;AAExB,SAAS,iBAAiB;AAM1B,SAAS,eAAe;AAExB,SAAgC,2BAA4B;AAC5D,SAAS,qBAAqB;AAC9B;AAAA,EACwB;AAAA,EACL;AAAA,OACZ;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,8 @@
1
+ .InputGroup_inputGroupCSS__1x4bl8z0 > *:not(:last-child) .InputGroup_inputGroupChildCSS__1x4bl8z1, .InputGroup_inputGroupCSS__1x4bl8z0 > .InputGroup_inputGroupChildCSS__1x4bl8z1:not(:last-child), .InputGroup_inputGroupCSS__1x4bl8z0 > *:not(:last-child) .cm-editor {
2
+ border-top-right-radius: 0;
3
+ border-bottom-right-radius: 0;
4
+ }
5
+ .InputGroup_inputGroupCSS__1x4bl8z0 > *:not(:first-child) .InputGroup_inputGroupChildCSS__1x4bl8z1, .InputGroup_inputGroupCSS__1x4bl8z0 > .InputGroup_inputGroupChildCSS__1x4bl8z1:not(:first-child), .InputGroup_inputGroupCSS__1x4bl8z0 > *:not(:first-child) .cm-editor {
6
+ border-top-left-radius: 0;
7
+ border-bottom-left-radius: 0;
8
+ }
@@ -0,0 +1,8 @@
1
+ import "./InputGroup.css";
2
+ var inputGroupCSS = "InputGroup_inputGroupCSS__1x4bl8z0";
3
+ var inputGroupChildCSS = "InputGroup_inputGroupChildCSS__1x4bl8z1";
4
+ export {
5
+ inputGroupCSS,
6
+ inputGroupChildCSS
7
+ };
8
+ //# sourceMappingURL=InputGroup.sty.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/layouts/input-group/InputGroup.css.ts"],
4
+ "sourcesContent": ["import './InputGroup.css';\nexport var inputGroupCSS = 'InputGroup_inputGroupCSS__1x4bl8z0';\nexport var inputGroupChildCSS = 'InputGroup_inputGroupChildCSS__1x4bl8z1';"],
5
+ "mappings": "AAAA,OAAO;AACA,IAAI,gBAAgB;AACpB,IAAI,qBAAqB;",
6
+ "names": []
7
+ }
@@ -26,6 +26,7 @@ import {
26
26
  import { extract } from "./extract-util.js";
27
27
  import { globalSprinkles } from "./safe-sprinkles.js";
28
28
  import { textStyleCSS } from "./textStyle.sty.js";
29
+ import { internalSprinkles } from "./sprinkles.sty.js";
29
30
  export {
30
31
  extract as _extract,
31
32
  getGapSprinkles as _getGapSprinkles,
@@ -33,6 +34,7 @@ export {
33
34
  getLayoutSizeStyles as _getLayoutSizeStyles,
34
35
  getSpacingSprinkles as _getSpacingSprinkles,
35
36
  globalSprinkles as _globalSprinkles,
37
+ internalSprinkles as _internalSprinkles,
36
38
  textStyleCSS as _textStyleCSS,
37
39
  alignContentPositionProps,
38
40
  alignItemsPositionProps,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/styles/index.ts"],
4
- "sourcesContent": ["export type { FlexItemStyleProps, FlexStyleProps } from './getFlexStyles.js';\nexport type { GridItemStyleProps, GridStyleProps } from './getGridStyles.js';\nexport {\n type GridFlexPositionProps,\n getGridFlexPositionSprinkles as _getGridFlexPositionSprinkles,\n} from './getGridFlexPositionSprinkles.js';\nexport {\n type GapProps,\n getGapSprinkles as _getGapSprinkles,\n} from './getGapSprinkles.js';\nexport {\n type SpacingProps,\n type DefaultSpacingProps as _DefaultSpacingProps,\n getSpacingSprinkles as _getSpacingSprinkles,\n} from './getSpacingSprinkles.js';\nexport {\n type LayoutSizeProps,\n getLayoutSizeStyles as _getLayoutSizeStyles,\n} from './getLayoutSizeStyles.js';\nexport {\n alignContentPositionProps,\n alignItemsPositionProps,\n alignSelfPositionProps,\n justifyContentPositionProps,\n justifyItemsPositionProps,\n justifySelfPositionProps,\n marginProperties,\n placeContentPositionProps,\n placeItemsPositionProps,\n placeSelfPositionProps,\n spacingProperties,\n} from './sprinkle-properties.js';\nexport type {\n AlignContentPositionProps,\n AlignItemsPositionProps,\n AlignSelfPositionProps,\n JustifyContentPositionProps,\n JustifyItemsPositionProps,\n JustifySelfPositionProps,\n MarginProperties,\n PlaceContentPositionProps,\n PlaceItemsPositionProps,\n PlaceSelfPositionProps,\n SpacingProperties,\n} from './sprinkle-properties.js';\nexport { extract as _extract } from './extract-util.js';\nexport { globalSprinkles as _globalSprinkles } from './safe-sprinkles.js';\nexport { textStyleCSS as _textStyleCSS } from './textStyle.sty.js';\n"],
5
- "mappings": "AAEA;AAAA,EAEkC;AAAA,OAC3B;AACP;AAAA,EAEqB;AAAA,OACd;AACP;AAAA,EAGyB;AAAA,OAClB;AACP;AAAA,EAEyB;AAAA,OAClB;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAcP,SAAoB,eAAgB;AACpC,SAA4B,uBAAwB;AACpD,SAAyB,oBAAqB;",
4
+ "sourcesContent": ["export type { FlexItemStyleProps, FlexStyleProps } from './getFlexStyles.js';\nexport type { GridItemStyleProps, GridStyleProps } from './getGridStyles.js';\nexport {\n type GridFlexPositionProps,\n getGridFlexPositionSprinkles as _getGridFlexPositionSprinkles,\n} from './getGridFlexPositionSprinkles.js';\nexport {\n type GapProps,\n getGapSprinkles as _getGapSprinkles,\n} from './getGapSprinkles.js';\nexport {\n type SpacingProps,\n type DefaultSpacingProps as _DefaultSpacingProps,\n getSpacingSprinkles as _getSpacingSprinkles,\n} from './getSpacingSprinkles.js';\nexport {\n type LayoutSizeProps,\n getLayoutSizeStyles as _getLayoutSizeStyles,\n} from './getLayoutSizeStyles.js';\nexport {\n alignContentPositionProps,\n alignItemsPositionProps,\n alignSelfPositionProps,\n justifyContentPositionProps,\n justifyItemsPositionProps,\n justifySelfPositionProps,\n marginProperties,\n placeContentPositionProps,\n placeItemsPositionProps,\n placeSelfPositionProps,\n spacingProperties,\n} from './sprinkle-properties.js';\nexport type {\n AlignContentPositionProps,\n AlignItemsPositionProps,\n AlignSelfPositionProps,\n JustifyContentPositionProps,\n JustifyItemsPositionProps,\n JustifySelfPositionProps,\n MarginProperties,\n PlaceContentPositionProps,\n PlaceItemsPositionProps,\n PlaceSelfPositionProps,\n SpacingProperties,\n} from './sprinkle-properties.js';\nexport { extract as _extract } from './extract-util.js';\nexport { globalSprinkles as _globalSprinkles } from './safe-sprinkles.js';\nexport { textStyleCSS as _textStyleCSS } from './textStyle.sty.js';\nexport { internalSprinkles as _internalSprinkles } from './sprinkles.sty.js';\n"],
5
+ "mappings": "AAEA;AAAA,EAEkC;AAAA,OAC3B;AACP;AAAA,EAEqB;AAAA,OACd;AACP;AAAA,EAGyB;AAAA,OAClB;AACP;AAAA,EAEyB;AAAA,OAClB;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAcP,SAAoB,eAAgB;AACpC,SAA4B,uBAAwB;AACpD,SAAyB,oBAAqB;AAC9C,SAA8B,yBAA0B;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/typography/text/Text.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport React, { type ElementType, type ReactElement, forwardRef } from 'react';\n\nimport { textCSS } from './Text.sty.js';\nimport type { AriaLabelingProps } from '../../core/types/a11y-props.js';\nimport type { DataTestId } from '../../core/types/data-props.js';\nimport type { DOMProps } from '../../core/types/dom.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\nimport type { PolymorphicComponentProps } from '../../core/types/polymorph.js';\nimport type { StylingProps } from '../../core/types/styling-props.js';\nimport type { WithChildren } from '../../core/types/with-children.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\n\n/**\n * The props for the text component without any props coming from polymorphing.\n * @public\n */\nexport interface TextOwnProps\n extends WithChildren,\n DOMProps,\n AriaLabelingProps,\n StylingProps,\n DataTestId,\n MaskingProps {\n /** Sets the text style. Variants include \"base\", \"base-emphasized\", etc. */\n textStyle?: 'base' | 'base-emphasized' | 'small' | 'small-emphasized';\n /** Sets the font style. Can either be \"text\" or \"code\" */\n fontStyle?: 'text' | 'code';\n}\n\n/**\n * @public\n * Combined props for the text component - polymorphing and own props. */\nexport type TextProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n TextOwnProps\n>;\n\n/**\n * Use the `Text` component for text that is rendered without any semantic markup.\n * @public\n */\nexport const Text: <E extends ElementType = 'span'>(\n props: TextProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(\n {\n children,\n textStyle,\n fontStyle,\n as,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n ...remainingProps\n }: TextProps<E>,\n ref: typeof remainingProps.ref,\n ) => {\n const TextTag = as || 'span';\n\n let ellipsis: undefined | 'singleLine' | 'multiLine';\n\n return (\n <TextTag\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n ref={ref}\n className={clsx([\n textCSS({ ellipsis }),\n (fontStyle || textStyle) && textStyleCSS({ fontStyle, textStyle }),\n consumerClassName,\n ])}\n style={consumerStyle}\n {...remainingProps}\n >\n {children}\n </TextTag>\n );\n },\n);\n\n(Text as typeof Text & { displayName: string }).displayName = 'Text';\n"],
5
- "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAA8C,kBAAkB;AAEvE,SAAS,eAAe;AAQxB,SAAS,oBAAoB;AA+BtB,MAAM,OAE8B;AAAA,EACzC,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,OAAO;AAAA,IACP,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,oBAAoB;AAAA,IACpB,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,UAAU,MAAM;AAEtB,QAAI;AAEJ,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QAClB;AAAA,QACA,WAAW,KAAK;AAAA,UACd,QAAQ,EAAE,SAAS,CAAC;AAAA,WACnB,aAAa,cAAc,aAAa,EAAE,WAAW,UAAU,CAAC;AAAA,UACjE;AAAA,QACF,CAAC;AAAA,QACD,OAAO;AAAA,QACN,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEC,KAA+C,cAAc;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport React, { type ElementType, type ReactElement, forwardRef } from 'react';\n\nimport { textCSS } from './Text.sty.js';\nimport type { AriaLabelingProps } from '../../core/types/a11y-props.js';\nimport type { DataTestId } from '../../core/types/data-props.js';\nimport type { DOMProps } from '../../core/types/dom.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\nimport type { PolymorphicComponentProps } from '../../core/types/polymorph.js';\nimport type { StylingProps } from '../../core/types/styling-props.js';\nimport type { WithChildren } from '../../core/types/with-children.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\n\n/**\n * The props for the text component without any props coming from polymorphing.\n * @public\n */\nexport interface TextOwnProps\n extends WithChildren,\n DOMProps,\n AriaLabelingProps,\n StylingProps,\n DataTestId,\n MaskingProps {\n /** Sets the text style. Variants include \"base\", \"base-emphasized\", etc. */\n textStyle?: 'base' | 'base-emphasized' | 'small' | 'small-emphasized';\n /** Sets the font style. Can either be \"text\" or \"code\" */\n fontStyle?: 'text' | 'code';\n}\n\n/**\n * Combined props for the text component - polymorphing and own props.\n * @public\n */\nexport type TextProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n TextOwnProps\n>;\n\n/**\n * Use the `Text` component for text that is rendered without any semantic markup.\n * @public\n */\nexport const Text: <E extends ElementType = 'span'>(\n props: TextProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(\n {\n children,\n textStyle,\n fontStyle,\n as,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n ...remainingProps\n }: TextProps<E>,\n ref: typeof remainingProps.ref,\n ) => {\n const TextTag = as || 'span';\n\n let ellipsis: undefined | 'singleLine' | 'multiLine';\n\n return (\n <TextTag\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n ref={ref}\n className={clsx([\n textCSS({ ellipsis }),\n (fontStyle || textStyle) && textStyleCSS({ fontStyle, textStyle }),\n consumerClassName,\n ])}\n style={consumerStyle}\n {...remainingProps}\n >\n {children}\n </TextTag>\n );\n },\n);\n\n(Text as typeof Text & { displayName: string }).displayName = 'Text';\n"],
5
+ "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAA8C,kBAAkB;AAEvE,SAAS,eAAe;AAQxB,SAAS,oBAAoB;AAgCtB,MAAM,OAE8B;AAAA,EACzC,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,OAAO;AAAA,IACP,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,oBAAoB;AAAA,IACpB,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,UAAU,MAAM;AAEtB,QAAI;AAEJ,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QAClB;AAAA,QACA,WAAW,KAAK;AAAA,UACd,QAAQ,EAAE,SAAS,CAAC;AAAA,WACnB,aAAa,cAAc,aAAa,EAAE,WAAW,UAAU,CAAC;AAAA,UACjE;AAAA,QACF,CAAC;AAAA,QACD,OAAO;AAAA,QACN,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEC,KAA+C,cAAc;",
6
6
  "names": []
7
7
  }
@@ -36,4 +36,4 @@ export interface DividerProps extends StylingProps, DataTestId {
36
36
  * The `Divider` component visually separates groups of content.
37
37
  * @public
38
38
  */
39
- export declare const Divider: (props: DividerProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
39
+ export declare const Divider: (props: DividerProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>) => React.ReactElement | null;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * `useBreakpoint` is a hook used to determine if the document matches the media
3
+ * query string (or media query list). It will listen to the breakpoints specified
4
+ * and will return a boolean value indicating if this media query is met or not.
5
+ * @public
6
+ */
7
+ declare function useBreakpoint(
8
+ /** Media Query you want to test, eg '(min-width: 800px)' */
9
+ query: string,
10
+ /** Default value (fallback value to support SSR)
11
+ * @defaultValue false
12
+ */
13
+ ssrInitialValue?: boolean): boolean;
14
+ /**
15
+ * `useBreakpoint` is a hook used to determine if the document matches the media
16
+ * query string (or media query list). It will listen to the breakpoints specified
17
+ * and will return a boolean value indicating if this media query is met or not.
18
+ * @public
19
+ */
20
+ declare function useBreakpoint(
21
+ /** Media Queries you want to test, eg '[(min-width: 400px), (min-width: 800px)]' */
22
+ queries: string[],
23
+ /** Default values (fallback values to support SSR)
24
+ * @defaultValue []
25
+ */
26
+ ssrInitialValue?: boolean[]): boolean[];
27
+ export { useBreakpoint };
@@ -0,0 +1,62 @@
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 useBreakpoint_exports = {};
19
+ __export(useBreakpoint_exports, {
20
+ useBreakpoint: () => useBreakpoint
21
+ });
22
+ module.exports = __toCommonJS(useBreakpoint_exports);
23
+ var import_react = require("react");
24
+ function useBreakpoint(queries, ssrInitialValue) {
25
+ const _ssrInitialValue = ssrInitialValue ?? (Array.isArray(queries) ? [] : false);
26
+ const mediaQueryLists = (0, import_react.useMemo)(() => {
27
+ const queryStrings = Array.isArray(queries) ? queries : [queries];
28
+ return queryStrings.map((q) => window.matchMedia(q));
29
+ }, [queries]);
30
+ const subscribe = (0, import_react.useCallback)(
31
+ (callback) => {
32
+ mediaQueryLists.forEach(
33
+ (mql) => mql.addEventListener("change", callback)
34
+ );
35
+ return () => {
36
+ mediaQueryLists.forEach(
37
+ (mql) => mql.removeEventListener("change", callback)
38
+ );
39
+ };
40
+ },
41
+ [mediaQueryLists]
42
+ );
43
+ const getSnapshot = () => {
44
+ return JSON.stringify(mediaQueryLists.map((q) => q.matches));
45
+ };
46
+ const getServerSnapshot = () => {
47
+ if (Array.isArray(_ssrInitialValue)) {
48
+ const adjustedValue = _ssrInitialValue.concat(Array(queries.length).fill(false)).slice(0, queries.length);
49
+ return JSON.stringify(adjustedValue);
50
+ }
51
+ return JSON.stringify([_ssrInitialValue]);
52
+ };
53
+ const queryValues = (0, import_react.useSyncExternalStore)(
54
+ subscribe,
55
+ getSnapshot,
56
+ getServerSnapshot
57
+ );
58
+ if (!Array.isArray(queries)) {
59
+ return JSON.parse(queryValues)[0];
60
+ }
61
+ return JSON.parse(queryValues);
62
+ }
@@ -7,4 +7,6 @@ export type { ContainerOwnProps, ContainerProps, } from './container/Container.j
7
7
  export type { LayoutSizeCSS } from './types/layout.types.js';
8
8
  export { Surface } from './surface/Surface.js';
9
9
  export type { SurfaceOwnProps, SurfaceProps } from './surface/Surface.js';
10
- export { surfaceBorderRadius as _surfaceBorderRadius } from './surface/variables.css.js';
10
+ export { surfaceBorderRadius as _surfaceBorderRadius } from './surface/variables.sty.js';
11
+ export { useBreakpoint } from './hooks/useBreakpoint.js';
12
+ export { inputGroupChildCSS as _inputGroupChildCSS, inputGroupCSS as _inputGroupCSS, } from './input-group/InputGroup.sty.js';
package/layouts/index.js CHANGED
@@ -22,7 +22,10 @@ __export(layouts_exports, {
22
22
  Flex: () => import_Flex.Flex,
23
23
  Grid: () => import_Grid.Grid,
24
24
  Surface: () => import_Surface.Surface,
25
- _surfaceBorderRadius: () => import_variables_css.surfaceBorderRadius
25
+ _inputGroupCSS: () => import_InputGroup_css.inputGroupCSS,
26
+ _inputGroupChildCSS: () => import_InputGroup_css.inputGroupChildCSS,
27
+ _surfaceBorderRadius: () => import_variables_css.surfaceBorderRadius,
28
+ useBreakpoint: () => import_useBreakpoint.useBreakpoint
26
29
  });
27
30
  module.exports = __toCommonJS(layouts_exports);
28
31
  var import_Flex = require("./flex/Flex.js");
@@ -31,3 +34,5 @@ var import_Divider = require("./divider/Divider.js");
31
34
  var import_Container = require("./container/Container.js");
32
35
  var import_Surface = require("./surface/Surface.js");
33
36
  var import_variables_css = require("./surface/variables.sty.js");
37
+ var import_useBreakpoint = require("./hooks/useBreakpoint.js");
38
+ var import_InputGroup_css = require("./input-group/InputGroup.sty.js");
@@ -0,0 +1,8 @@
1
+ .InputGroup_inputGroupCSS__1x4bl8z0 > *:not(:last-child) .InputGroup_inputGroupChildCSS__1x4bl8z1, .InputGroup_inputGroupCSS__1x4bl8z0 > .InputGroup_inputGroupChildCSS__1x4bl8z1:not(:last-child), .InputGroup_inputGroupCSS__1x4bl8z0 > *:not(:last-child) .cm-editor {
2
+ border-top-right-radius: 0;
3
+ border-bottom-right-radius: 0;
4
+ }
5
+ .InputGroup_inputGroupCSS__1x4bl8z0 > *:not(:first-child) .InputGroup_inputGroupChildCSS__1x4bl8z1, .InputGroup_inputGroupCSS__1x4bl8z0 > .InputGroup_inputGroupChildCSS__1x4bl8z1:not(:first-child), .InputGroup_inputGroupCSS__1x4bl8z0 > *:not(:first-child) .cm-editor {
6
+ border-top-left-radius: 0;
7
+ border-bottom-left-radius: 0;
8
+ }
@@ -0,0 +1,4 @@
1
+ /** @internal */
2
+ export declare const inputGroupCSS: string;
3
+ /** @internal */
4
+ export declare const inputGroupChildCSS: string;
@@ -0,0 +1,26 @@
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 InputGroup_css_exports = {};
19
+ __export(InputGroup_css_exports, {
20
+ inputGroupCSS: () => inputGroupCSS,
21
+ inputGroupChildCSS: () => inputGroupChildCSS
22
+ });
23
+ module.exports = __toCommonJS(InputGroup_css_exports);
24
+ var import_InputGroup_css_ts_vanilla = require("./InputGroup.css");
25
+ var inputGroupCSS = "InputGroup_inputGroupCSS__1x4bl8z0";
26
+ var inputGroupChildCSS = "InputGroup_inputGroupChildCSS__1x4bl8z1";
@@ -1 +1,2 @@
1
+ /** @internal */
1
2
  export declare const surfaceBorderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/strato-components",
3
- "version": "0.85.21",
3
+ "version": "0.85.41",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "lang": "lang/uncompiled",
@@ -75,12 +75,16 @@
75
75
  "@dynatrace/devkit": "^0.3.2",
76
76
  "@formatjs/icu-messageformat-parser": "^2.7.8",
77
77
  "@jest/globals": "^29.7.0",
78
+ "@vanilla-extract/css": "^1.15.5",
79
+ "@vanilla-extract/dynamic": "^2.1.0",
80
+ "@vanilla-extract/recipes": "^0.5.5",
81
+ "@vanilla-extract/sprinkles": "^1.6.3",
78
82
  "clsx": "^2.1.1",
79
83
  "lodash-es": "^4.17.21",
80
- "wicg-inert": "^3.1.2",
81
84
  "use-resize-observer": "^9.1.0",
85
+ "wicg-inert": "^3.1.2",
82
86
  "@dynatrace/strato-design-tokens": "0.20.40",
83
- "@dynatrace/strato-icons": "0.39.1"
87
+ "@dynatrace/strato-icons": "0.39.2"
84
88
  },
85
89
  "peerDependencies": {
86
90
  "@dynatrace-sdk/app-environment": "^1.0.0",
@@ -107,5 +111,8 @@
107
111
  "./esm/core/components/app-root/AppRoot.css",
108
112
  "./core/components/app-root/AppRoot.sty.js",
109
113
  "./esm/core/components/app-root/AppRoot.sty.js"
110
- ]
114
+ ],
115
+ "dt": {
116
+ "migrations": []
117
+ }
111
118
  }
package/styles/index.d.ts CHANGED
@@ -8,4 +8,5 @@ export { alignContentPositionProps, alignItemsPositionProps, alignSelfPositionPr
8
8
  export type { AlignContentPositionProps, AlignItemsPositionProps, AlignSelfPositionProps, JustifyContentPositionProps, JustifyItemsPositionProps, JustifySelfPositionProps, MarginProperties, PlaceContentPositionProps, PlaceItemsPositionProps, PlaceSelfPositionProps, SpacingProperties, } from './sprinkle-properties.js';
9
9
  export { extract as _extract } from './extract-util.js';
10
10
  export { globalSprinkles as _globalSprinkles } from './safe-sprinkles.js';
11
- export { textStyleCSS as _textStyleCSS } from './textStyle.css.js';
11
+ export { textStyleCSS as _textStyleCSS } from './textStyle.sty.js';
12
+ export { internalSprinkles as _internalSprinkles } from './sprinkles.sty.js';
package/styles/index.js CHANGED
@@ -23,6 +23,7 @@ __export(styles_exports, {
23
23
  _getLayoutSizeStyles: () => import_getLayoutSizeStyles.getLayoutSizeStyles,
24
24
  _getSpacingSprinkles: () => import_getSpacingSprinkles.getSpacingSprinkles,
25
25
  _globalSprinkles: () => import_safe_sprinkles.globalSprinkles,
26
+ _internalSprinkles: () => import_sprinkles_css.internalSprinkles,
26
27
  _textStyleCSS: () => import_textStyle_css.textStyleCSS,
27
28
  alignContentPositionProps: () => import_sprinkle_properties.alignContentPositionProps,
28
29
  alignItemsPositionProps: () => import_sprinkle_properties.alignItemsPositionProps,
@@ -45,3 +46,4 @@ var import_sprinkle_properties = require("./sprinkle-properties.js");
45
46
  var import_extract_util = require("./extract-util.js");
46
47
  var import_safe_sprinkles = require("./safe-sprinkles.js");
47
48
  var import_textStyle_css = require("./textStyle.sty.js");
49
+ var import_sprinkles_css = require("./sprinkles.sty.js");
@@ -1,4 +1,4 @@
1
- import { internalSprinkles } from './sprinkles.css.js';
1
+ import { internalSprinkles } from './sprinkles.sty.js';
2
2
  /**
3
3
  * global sprinkles
4
4
  * @internal
@@ -27,13 +27,16 @@ var import_offset_height_mock = require("./offset-height-mock.js");
27
27
  function setupTableVirtualizationMock(containerHeight = 15e3) {
28
28
  (0, import_bounding_client_rect_mock.setupGetBoundingClientRectMock)(function() {
29
29
  if (this.classList.contains("strato-table-header-group")) {
30
- return (0, import_dom_rect_mock.createDOMRect)(0, 32);
30
+ return (0, import_dom_rect_mock.createDOMRect)(1e3, 32);
31
31
  }
32
32
  if (this.classList.contains("strato-table-virtualization-container")) {
33
- return (0, import_dom_rect_mock.createDOMRect)(0, containerHeight);
33
+ return (0, import_dom_rect_mock.createDOMRect)(1e3, containerHeight);
34
34
  }
35
35
  if (this.classList.contains("strato-table-row")) {
36
- return (0, import_dom_rect_mock.createDOMRect)(0, 56);
36
+ return (0, import_dom_rect_mock.createDOMRect)(1e3, 56);
37
+ }
38
+ if (this.classList.contains("strato-table-header-cell") || this.classList.contains("strato-table-cell")) {
39
+ return (0, import_dom_rect_mock.createDOMRect)(100, 32);
37
40
  }
38
41
  return null;
39
42
  });
@@ -16,4 +16,4 @@ export interface BlockquoteProps extends WithChildren, StylingProps, DataTestId,
16
16
  * The `Blockquote` component wraps longer text blocks and indicates that the passage is quoted from another source.
17
17
  * @public
18
18
  */
19
- export declare const Blockquote: (props: BlockquoteProps & React.RefAttributes<HTMLQuoteElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
19
+ export declare const Blockquote: (props: BlockquoteProps & React.RefAttributes<HTMLQuoteElement>) => React.ReactElement | null;
@@ -14,4 +14,4 @@ export interface CodeProps extends WithChildren, StylingProps, DataTestId, Maski
14
14
  * component instead.
15
15
  * @public
16
16
  */
17
- export declare const Code: (props: CodeProps & React.RefAttributes<HTMLElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
17
+ export declare const Code: (props: CodeProps & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
@@ -11,4 +11,4 @@ export interface EmphasisProps extends WithChildren, StylingProps, DataTestId, M
11
11
  * The `Emphasis` component adds visual and semantic emphasis to stressed or essential content.
12
12
  * @public
13
13
  */
14
- export declare const Emphasis: (props: EmphasisProps & React.RefAttributes<HTMLElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
14
+ export declare const Emphasis: (props: EmphasisProps & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
@@ -18,4 +18,4 @@ export interface ExternalLinkProps extends WithChildren, StylingProps, DataTestI
18
18
  * component instead.
19
19
  * @public
20
20
  */
21
- export declare const ExternalLink: (props: ExternalLinkProps & React.RefAttributes<HTMLAnchorElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
21
+ export declare const ExternalLink: (props: ExternalLinkProps & React.RefAttributes<HTMLAnchorElement>) => React.ReactElement | null;
@@ -22,4 +22,4 @@ export interface HeadingProps extends DOMProps, WithChildren, StylingProps, Data
22
22
  * The component allows you to independently define both the visual and the semantic level of the heading.
23
23
  * @public
24
24
  */
25
- export declare const Heading: (props: HeadingProps & React.RefAttributes<HTMLHeadingElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
25
+ export declare const Heading: (props: HeadingProps & React.RefAttributes<HTMLHeadingElement>) => React.ReactElement | null;
@@ -36,4 +36,4 @@ export interface ListProps<TOrdered extends boolean = false> extends WithChildre
36
36
  * (for unordered lists).
37
37
  * @public
38
38
  */
39
- export declare const List: <TOrdered extends boolean = false>(props: ListProps<TOrdered> & React.RefAttributes<TOrdered extends true ? HTMLOListElement : HTMLUListElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
39
+ export declare const List: <TOrdered extends boolean = false>(props: ListProps<TOrdered> & React.RefAttributes<TOrdered extends true ? HTMLOListElement : HTMLUListElement>) => React.ReactElement | null;
@@ -16,4 +16,4 @@ export interface ParagraphProps extends WithChildren, DOMProps, StylingProps, Da
16
16
  * The `Paragraph` component displays a block of text with the default text style and supports text truncation.
17
17
  * @public
18
18
  */
19
- export declare const Paragraph: (props: ParagraphProps & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
19
+ export declare const Paragraph: (props: ParagraphProps & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement | null;
@@ -12,4 +12,4 @@ export interface StrikethroughProps extends WithChildren, StylingProps, DataTest
12
12
  * represent things that are no longer relevant or accurate.
13
13
  * @public
14
14
  */
15
- export declare const Strikethrough: (props: StrikethroughProps & React.RefAttributes<HTMLElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
15
+ export declare const Strikethrough: (props: StrikethroughProps & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
@@ -11,4 +11,4 @@ export interface StrongProps extends WithChildren, StylingProps, DataTestId, Mas
11
11
  * Use the `Strong` component to render text in bold type to emphasize it.
12
12
  * @public
13
13
  */
14
- export declare const Strong: (props: StrongProps & React.RefAttributes<HTMLElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
14
+ export declare const Strong: (props: StrongProps & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
@@ -17,8 +17,9 @@ export interface TextOwnProps extends WithChildren, DOMProps, AriaLabelingProps,
17
17
  fontStyle?: 'text' | 'code';
18
18
  }
19
19
  /**
20
+ * Combined props for the text component - polymorphing and own props.
20
21
  * @public
21
- * Combined props for the text component - polymorphing and own props. */
22
+ */
22
23
  export type TextProps<E extends ElementType> = PolymorphicComponentProps<E, TextOwnProps>;
23
24
  /**
24
25
  * Use the `Text` component for text that is rendered without any semantic markup.
@@ -29,4 +29,4 @@ export interface TextEllipsisProps extends HTMLAttributes<HTMLSpanElement>, Styl
29
29
  * when writing your own components.
30
30
  * @public
31
31
  */
32
- export declare const TextEllipsis: (props: TextEllipsisProps & React.RefAttributes<HTMLSpanElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
32
+ export declare const TextEllipsis: (props: TextEllipsisProps & React.RefAttributes<HTMLSpanElement>) => React.ReactElement | null;