@dynatrace/strato-components 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/buttons/button/Button.css +18 -22
- package/buttons/button/Button.d.ts +4 -4
- package/buttons/button/Button.js +48 -34
- package/buttons/button/Button.sty.js +5 -4
- package/buttons/button/Label.d.ts +2 -2
- package/buttons/button/Label.js +7 -5
- package/buttons/button/Prefix.d.ts +2 -2
- package/buttons/button/Prefix.js +7 -15
- package/buttons/button/Suffix.d.ts +3 -3
- package/buttons/button/Suffix.js +7 -15
- package/buttons/button/types/button-aria.js +1 -0
- package/buttons/button/utils/focus-without-scrolling.js +1 -0
- package/buttons/button/utils/is-virtual-event.js +1 -0
- package/buttons/index.js +1 -0
- package/buttons/intent-button/IntentButton.d.ts +2 -2
- package/buttons/intent-button/IntentButton.js +17 -21
- package/buttons/intent-button/useIntentButton.d.ts +4 -3
- package/buttons/intent-button/useIntentButton.js +1 -0
- package/content/index.js +1 -0
- package/content/progress/ProgressBar.css +71 -71
- package/content/progress/ProgressBar.d.ts +4 -5
- package/content/progress/ProgressBar.js +50 -41
- package/content/progress/ProgressBar.sty.js +6 -5
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.d.ts +1 -2
- package/content/progress/ProgressBarIcon.js +7 -5
- package/content/progress/ProgressBarIcon.sty.js +2 -1
- package/content/progress/ProgressBarLabel.css +3 -3
- package/content/progress/ProgressBarLabel.d.ts +1 -2
- package/content/progress/ProgressBarLabel.js +7 -5
- package/content/progress/ProgressBarLabel.sty.js +2 -1
- package/content/progress/ProgressBarValue.css +5 -5
- package/content/progress/ProgressBarValue.d.ts +1 -2
- package/content/progress/ProgressBarValue.js +7 -5
- package/content/progress/ProgressBarValue.sty.js +2 -1
- package/content/progress/ProgressCircle.css +40 -40
- package/content/progress/ProgressCircle.d.ts +1 -2
- package/content/progress/ProgressCircle.js +61 -55
- package/content/progress/ProgressCircle.sty.js +6 -5
- package/content/progress/contexts/SharedProgressBarPropsContext.d.ts +1 -2
- package/content/progress/contexts/SharedProgressBarPropsContext.js +3 -12
- package/content/progress/hooks/useProgressAriaProps.js +1 -0
- package/content/progress/hooks/useProgressBarPropsContext.js +1 -0
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.d.ts +2 -2
- package/content/skeleton/Skeleton.js +7 -5
- package/content/skeleton/Skeleton.sty.js +2 -1
- package/content/skeleton/SkeletonText.d.ts +2 -2
- package/content/skeleton/SkeletonText.js +10 -18
- package/core/components/app-root/AppRoot.d.ts +3 -3
- package/core/components/app-root/AppRoot.js +16 -24
- package/core/components/app-root/AppRoot.sty.js +1 -0
- package/core/components/focus-scope/FocusScope.d.ts +1 -2
- package/core/components/focus-scope/FocusScope.js +7 -15
- package/core/contexts/FocusContext.js +1 -0
- package/core/hooks/useActiveElement.js +1 -0
- package/core/hooks/useAriaLabelingProps.js +1 -0
- package/core/hooks/useCurrentTheme.js +1 -0
- package/core/hooks/useFocusContext.js +1 -0
- package/core/hooks/useFontsUpdated.js +2 -1
- package/core/hooks/useId.js +1 -0
- package/core/hooks/useMergeRefs.d.ts +2 -2
- package/core/hooks/useMergeRefs.js +1 -0
- package/core/hooks/useSafeForwardProps.js +1 -0
- package/core/index.js +1 -0
- package/core/providers/FocusProvider.d.ts +1 -2
- package/core/providers/FocusProvider.js +7 -15
- package/core/styles/focusRing.css +66 -66
- package/core/styles/focusRing.sty.js +3 -2
- package/core/styles/useFocusRing.d.ts +3 -3
- package/core/styles/useFocusRing.js +1 -0
- package/core/types/a11y-props.js +1 -0
- package/core/types/data-props.js +1 -0
- package/core/types/dom.js +1 -0
- package/core/types/heading.js +1 -0
- package/core/types/masking-props.js +1 -0
- package/core/types/polymorph.d.ts +1 -1
- package/core/types/polymorph.js +1 -0
- package/core/types/styling-props.d.ts +1 -1
- package/core/types/styling-props.js +1 -0
- package/core/types/with-children.d.ts +1 -1
- package/core/types/with-children.js +1 -0
- package/core/utils/_is-string-children.d.ts +2 -2
- package/core/utils/_is-string-children.js +3 -12
- package/core/utils/colorUtils.css +60 -60
- package/core/utils/colorUtils.sty.js +3 -2
- package/core/utils/focus-management/attempt-focus.js +1 -0
- package/core/utils/focus-management/focus-first-descendant.js +1 -0
- package/core/utils/focus-management/get-first-focusable-child.js +1 -0
- package/core/utils/focus-management/get-last-focusable-child.js +1 -0
- package/core/utils/focus-management/is-focusable.js +1 -0
- package/core/utils/isBrowser.js +1 -0
- package/core/utils/merge-props.js +1 -0
- package/core/utils/parse-boolean.js +1 -0
- package/core/utils/seed-random.js +1 -0
- package/core/utils/uuidv4.js +1 -0
- package/esm/buttons/button/Button.css +18 -22
- package/esm/buttons/button/Button.js +49 -35
- package/esm/buttons/button/Button.js.map +2 -2
- package/esm/buttons/button/Button.sty.js +4 -4
- package/esm/buttons/button/Button.sty.js.map +1 -1
- package/esm/buttons/button/Label.js +6 -5
- package/esm/buttons/button/Label.js.map +2 -2
- package/esm/buttons/button/Prefix.js +6 -5
- package/esm/buttons/button/Prefix.js.map +2 -2
- package/esm/buttons/button/Suffix.js +6 -5
- package/esm/buttons/button/Suffix.js.map +2 -2
- package/esm/buttons/intent-button/IntentButton.js +16 -11
- package/esm/buttons/intent-button/IntentButton.js.map +2 -2
- package/esm/buttons/intent-button/useIntentButton.js +4 -1
- package/esm/buttons/intent-button/useIntentButton.js.map +2 -2
- package/esm/content/progress/ProgressBar.css +71 -71
- package/esm/content/progress/ProgressBar.js +53 -41
- package/esm/content/progress/ProgressBar.js.map +2 -2
- package/esm/content/progress/ProgressBar.sty.js +5 -5
- package/esm/content/progress/ProgressBar.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarIcon.css +2 -2
- package/esm/content/progress/ProgressBarIcon.js +6 -5
- package/esm/content/progress/ProgressBarIcon.js.map +2 -2
- package/esm/content/progress/ProgressBarIcon.sty.js +1 -1
- package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarLabel.css +3 -3
- package/esm/content/progress/ProgressBarLabel.js +6 -5
- package/esm/content/progress/ProgressBarLabel.js.map +2 -2
- package/esm/content/progress/ProgressBarLabel.sty.js +1 -1
- package/esm/content/progress/ProgressBarLabel.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarValue.css +5 -5
- package/esm/content/progress/ProgressBarValue.js +6 -5
- package/esm/content/progress/ProgressBarValue.js.map +2 -2
- package/esm/content/progress/ProgressBarValue.sty.js +1 -1
- package/esm/content/progress/ProgressBarValue.sty.js.map +1 -1
- package/esm/content/progress/ProgressCircle.css +40 -40
- package/esm/content/progress/ProgressCircle.js +60 -55
- package/esm/content/progress/ProgressCircle.js.map +2 -2
- package/esm/content/progress/ProgressCircle.sty.js +5 -5
- package/esm/content/progress/ProgressCircle.sty.js.map +1 -1
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js +2 -2
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js.map +2 -2
- package/esm/content/skeleton/Skeleton.css +6 -6
- package/esm/content/skeleton/Skeleton.js +6 -5
- package/esm/content/skeleton/Skeleton.js.map +2 -2
- package/esm/content/skeleton/Skeleton.sty.js +1 -1
- package/esm/content/skeleton/Skeleton.sty.js.map +1 -1
- package/esm/content/skeleton/SkeletonText.js +9 -8
- package/esm/content/skeleton/SkeletonText.js.map +2 -2
- package/esm/core/components/app-root/AppRoot.js +15 -14
- package/esm/core/components/app-root/AppRoot.js.map +2 -2
- package/esm/core/components/focus-scope/FocusScope.js +6 -5
- package/esm/core/components/focus-scope/FocusScope.js.map +2 -2
- package/esm/core/hooks/useFontsUpdated.js +1 -1
- package/esm/core/hooks/useFontsUpdated.js.map +2 -2
- package/esm/core/hooks/useMergeRefs.js +3 -1
- package/esm/core/hooks/useMergeRefs.js.map +2 -2
- package/esm/core/providers/FocusProvider.js +6 -5
- package/esm/core/providers/FocusProvider.js.map +2 -2
- package/esm/core/styles/focusRing.css +66 -66
- package/esm/core/styles/focusRing.sty.js +2 -2
- package/esm/core/styles/focusRing.sty.js.map +1 -1
- package/esm/core/styles/useFocusRing.js.map +1 -1
- package/esm/core/utils/_is-string-children.js +2 -2
- package/esm/core/utils/_is-string-children.js.map +2 -2
- package/esm/core/utils/colorUtils.css +60 -60
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +1 -1
- package/esm/layouts/container/Container.css +4 -4
- package/esm/layouts/container/Container.js +7 -6
- package/esm/layouts/container/Container.js.map +2 -2
- package/esm/layouts/container/Container.sty.js +1 -1
- package/esm/layouts/container/Container.sty.js.map +1 -1
- package/esm/layouts/divider/Divider.css +6 -6
- package/esm/layouts/divider/Divider.js +3 -2
- package/esm/layouts/divider/Divider.js.map +2 -2
- package/esm/layouts/divider/Divider.sty.js +1 -1
- package/esm/layouts/divider/Divider.sty.js.map +1 -1
- package/esm/layouts/flex/Flex.js +6 -5
- package/esm/layouts/flex/Flex.js.map +2 -2
- package/esm/layouts/grid/Grid.js +6 -5
- package/esm/layouts/grid/Grid.js.map +2 -2
- package/esm/layouts/surface/Surface.css +39 -39
- package/esm/layouts/surface/Surface.js +17 -14
- package/esm/layouts/surface/Surface.js.map +2 -2
- package/esm/layouts/surface/Surface.sty.js +2 -2
- package/esm/layouts/surface/Surface.sty.js.map +1 -1
- package/esm/layouts/surface/variables.sty.js +1 -1
- package/esm/layouts/surface/variables.sty.js.map +1 -1
- package/esm/styles/colorUtils.css +60 -60
- package/esm/styles/colorUtils.sty.js +2 -2
- package/esm/styles/colorUtils.sty.js.map +1 -1
- package/esm/styles/container.css +47 -47
- package/esm/styles/container.sty.js +2 -2
- package/esm/styles/container.sty.js.map +1 -1
- package/esm/styles/ellipsis.css +1 -1
- package/esm/styles/ellipsis.sty.js +1 -1
- package/esm/styles/ellipsis.sty.js.map +1 -1
- package/esm/styles/field.css +153 -153
- package/esm/styles/field.sty.js +2 -2
- package/esm/styles/field.sty.js.map +1 -1
- package/esm/styles/getFlexStyles.js.map +1 -1
- package/esm/styles/getGridStyles.js.map +1 -1
- package/esm/styles/getLayoutSizeStyles.js.map +1 -1
- package/esm/styles/sprinkles.css +262 -262
- package/esm/styles/sprinkles.sty.js +1 -1
- package/esm/styles/sprinkles.sty.js.map +1 -1
- package/esm/styles/textStyle.css +8 -8
- package/esm/styles/textStyle.sty.js +1 -1
- package/esm/styles/textStyle.sty.js.map +1 -1
- package/esm/typography/block-quote/Blockquote.css +2 -2
- package/esm/typography/block-quote/Blockquote.js +6 -5
- package/esm/typography/block-quote/Blockquote.js.map +2 -2
- package/esm/typography/block-quote/Blockquote.sty.js +1 -1
- package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
- package/esm/typography/code/Code.css +1 -1
- package/esm/typography/code/Code.js +6 -5
- package/esm/typography/code/Code.js.map +2 -2
- package/esm/typography/code/Code.sty.js +1 -1
- package/esm/typography/code/Code.sty.js.map +1 -1
- package/esm/typography/emphasis/Emphasis.css +1 -1
- package/esm/typography/emphasis/Emphasis.js +6 -5
- package/esm/typography/emphasis/Emphasis.js.map +2 -2
- package/esm/typography/emphasis/Emphasis.sty.js +1 -1
- package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
- package/esm/typography/external-link/ExternalLink.css +6 -6
- package/esm/typography/external-link/ExternalLink.js +22 -16
- package/esm/typography/external-link/ExternalLink.js.map +2 -2
- package/esm/typography/external-link/ExternalLink.sty.js +1 -1
- package/esm/typography/external-link/ExternalLink.sty.js.map +1 -1
- package/esm/typography/heading/Heading.css +7 -7
- package/esm/typography/heading/Heading.js +6 -5
- package/esm/typography/heading/Heading.js.map +2 -2
- package/esm/typography/heading/Heading.sty.js +1 -1
- package/esm/typography/heading/Heading.sty.js.map +1 -1
- package/esm/typography/highlight/Highlight.css +2 -1
- package/esm/typography/highlight/Highlight.js +31 -18
- package/esm/typography/highlight/Highlight.js.map +3 -3
- package/esm/typography/highlight/Highlight.sty.js +1 -1
- package/esm/typography/highlight/Highlight.sty.js.map +1 -1
- package/esm/typography/link/Link.css +4 -4
- package/esm/typography/link/Link.js +6 -5
- package/esm/typography/link/Link.js.map +2 -2
- package/esm/typography/link/Link.sty.js +1 -1
- package/esm/typography/link/Link.sty.js.map +1 -1
- package/esm/typography/list/List.css +4 -4
- package/esm/typography/list/List.js +14 -9
- package/esm/typography/list/List.js.map +2 -2
- package/esm/typography/list/List.sty.js +2 -2
- package/esm/typography/list/List.sty.js.map +1 -1
- package/esm/typography/paragraph/Paragraph.css +3 -3
- package/esm/typography/paragraph/Paragraph.js +6 -5
- package/esm/typography/paragraph/Paragraph.js.map +2 -2
- package/esm/typography/paragraph/Paragraph.sty.js +1 -1
- package/esm/typography/paragraph/Paragraph.sty.js.map +1 -1
- package/esm/typography/strikethrough/Strikethrough.css +1 -1
- package/esm/typography/strikethrough/Strikethrough.js +6 -5
- package/esm/typography/strikethrough/Strikethrough.js.map +2 -2
- package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
- package/esm/typography/strong/Strong.css +1 -1
- package/esm/typography/strong/Strong.js +6 -5
- package/esm/typography/strong/Strong.js.map +2 -2
- package/esm/typography/strong/Strong.sty.js +1 -1
- package/esm/typography/strong/Strong.sty.js.map +1 -1
- package/esm/typography/text/Text.css +3 -3
- package/esm/typography/text/Text.js +6 -5
- package/esm/typography/text/Text.js.map +2 -2
- package/esm/typography/text/Text.sty.js +1 -1
- package/esm/typography/text/Text.sty.js.map +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.css +8 -5
- package/esm/typography/text-ellipsis/TextEllipsis.js +16 -15
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +4 -4
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +2 -2
- package/index.js +1 -0
- package/layouts/container/Container.css +4 -4
- package/layouts/container/Container.js +8 -6
- package/layouts/container/Container.sty.js +2 -1
- package/layouts/divider/Divider.css +6 -6
- package/layouts/divider/Divider.d.ts +1 -2
- package/layouts/divider/Divider.js +4 -2
- package/layouts/divider/Divider.sty.js +2 -1
- package/layouts/flex/Flex.js +7 -5
- package/layouts/grid/Grid.d.ts +1 -1
- package/layouts/grid/Grid.js +7 -5
- package/layouts/helpers/spacingToCss.js +1 -0
- package/layouts/hooks/useBreakpoint.js +1 -0
- package/layouts/hooks/useLayoutSizeProps.js +1 -0
- package/layouts/hooks/useLayoutStyles.js +1 -0
- package/layouts/hooks/useMarginProps.js +1 -0
- package/layouts/hooks/usePaddingProps.js +1 -0
- package/layouts/index.js +1 -0
- package/layouts/surface/Surface.css +39 -39
- package/layouts/surface/Surface.js +18 -14
- package/layouts/surface/Surface.sty.js +3 -2
- package/layouts/surface/variables.sty.js +2 -1
- package/layouts/types/layout.types.d.ts +1 -1
- package/layouts/types/layout.types.js +1 -0
- package/package.json +5 -5
- package/styles/colorUtils.css +60 -60
- package/styles/colorUtils.sty.js +3 -2
- package/styles/container.css +47 -47
- package/styles/container.sty.js +3 -2
- package/styles/ellipsis.css +1 -1
- package/styles/ellipsis.sty.js +2 -1
- package/styles/extract-util.js +1 -0
- package/styles/field.css +153 -153
- package/styles/field.sty.js +3 -2
- package/styles/getFlexStyles.d.ts +17 -17
- package/styles/getFlexStyles.js +1 -0
- package/styles/getGapSprinkles.js +1 -0
- package/styles/getGridFlexPositionSprinkles.js +1 -0
- package/styles/getGridStyles.d.ts +22 -22
- package/styles/getGridStyles.js +1 -0
- package/styles/getLayoutSizeStyles.d.ts +1 -1
- package/styles/getLayoutSizeStyles.js +1 -0
- package/styles/getSpacingSprinkles.js +1 -0
- package/styles/index.js +1 -0
- package/styles/safe-sprinkles.js +1 -0
- package/styles/sprinkle-properties.js +1 -0
- package/styles/sprinkles.css +262 -262
- package/styles/sprinkles.sty.js +2 -1
- package/styles/textStyle.css +8 -8
- package/styles/textStyle.sty.js +2 -1
- package/typography/block-quote/Blockquote.css +2 -2
- package/typography/block-quote/Blockquote.d.ts +1 -2
- package/typography/block-quote/Blockquote.js +7 -5
- package/typography/block-quote/Blockquote.sty.js +2 -1
- package/typography/code/Code.css +1 -1
- package/typography/code/Code.d.ts +1 -2
- package/typography/code/Code.js +7 -5
- package/typography/code/Code.sty.js +2 -1
- package/typography/emphasis/Emphasis.css +1 -1
- package/typography/emphasis/Emphasis.d.ts +1 -2
- package/typography/emphasis/Emphasis.js +7 -5
- package/typography/emphasis/Emphasis.sty.js +2 -1
- package/typography/external-link/ExternalLink.css +6 -6
- package/typography/external-link/ExternalLink.d.ts +2 -2
- package/typography/external-link/ExternalLink.js +23 -16
- package/typography/external-link/ExternalLink.sty.js +2 -1
- package/typography/heading/Heading.css +7 -7
- package/typography/heading/Heading.d.ts +1 -2
- package/typography/heading/Heading.js +7 -5
- package/typography/heading/Heading.sty.js +2 -1
- package/typography/highlight/Highlight.css +2 -1
- package/typography/highlight/Highlight.d.ts +1 -1
- package/typography/highlight/Highlight.js +22 -17
- package/typography/highlight/Highlight.sty.js +2 -1
- package/typography/index.js +1 -0
- package/typography/link/Link.css +4 -4
- package/typography/link/Link.d.ts +1 -1
- package/typography/link/Link.js +7 -5
- package/typography/link/Link.sty.js +2 -1
- package/typography/list/List.css +4 -4
- package/typography/list/List.d.ts +1 -2
- package/typography/list/List.js +11 -9
- package/typography/list/List.sty.js +3 -2
- package/typography/paragraph/Paragraph.css +3 -3
- package/typography/paragraph/Paragraph.d.ts +1 -2
- package/typography/paragraph/Paragraph.js +7 -5
- package/typography/paragraph/Paragraph.sty.js +2 -1
- package/typography/strikethrough/Strikethrough.css +1 -1
- package/typography/strikethrough/Strikethrough.d.ts +1 -2
- package/typography/strikethrough/Strikethrough.js +7 -5
- package/typography/strikethrough/Strikethrough.sty.js +2 -1
- package/typography/strong/Strong.css +1 -1
- package/typography/strong/Strong.d.ts +1 -2
- package/typography/strong/Strong.js +7 -5
- package/typography/strong/Strong.sty.js +2 -1
- package/typography/text/Text.css +3 -3
- package/typography/text/Text.js +7 -5
- package/typography/text/Text.sty.js +2 -1
- package/typography/text-ellipsis/TextEllipsis.css +8 -5
- package/typography/text-ellipsis/TextEllipsis.d.ts +2 -2
- package/typography/text-ellipsis/TextEllipsis.js +17 -15
- package/typography/text-ellipsis/TextEllipsis.sty.d.ts +7 -2
- package/typography/text-ellipsis/TextEllipsis.sty.js +5 -4
- package/typography/utils.js +1 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -30,8 +31,9 @@ __export(Highlight_exports, {
|
|
|
30
31
|
Highlight: () => Highlight
|
|
31
32
|
});
|
|
32
33
|
module.exports = __toCommonJS(Highlight_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
35
|
var import_clsx = __toESM(require("clsx"));
|
|
34
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
35
37
|
var import_react_intl = require("react-intl");
|
|
36
38
|
var import_react_is = require("react-is");
|
|
37
39
|
var import_Highlight_css = require("./Highlight.sty.js");
|
|
@@ -51,7 +53,7 @@ function highlightChildren(intl, children, term, caseSensitive, dataTestId, data
|
|
|
51
53
|
}
|
|
52
54
|
return term ? [term] : [];
|
|
53
55
|
})();
|
|
54
|
-
return terms.length > 0 ? import_react.
|
|
56
|
+
return terms.length > 0 ? import_react.Children.map(
|
|
55
57
|
children,
|
|
56
58
|
(child) => highlightRecursive(
|
|
57
59
|
intl,
|
|
@@ -64,12 +66,15 @@ function highlightChildren(intl, children, term, caseSensitive, dataTestId, data
|
|
|
64
66
|
)
|
|
65
67
|
) : children;
|
|
66
68
|
}
|
|
69
|
+
function isFormattedMessageElement(node) {
|
|
70
|
+
return (0, import_react_is.isElement)(node) && node.type !== void 0 && node.type === import_react_intl.FormattedMessage;
|
|
71
|
+
}
|
|
67
72
|
function highlightRecursive(intl, sourceElement, terms, caseSensitive, dataTestId, dataDtrumMask, dataDtrumAllow) {
|
|
68
73
|
if (!sourceElement) {
|
|
69
74
|
return sourceElement;
|
|
70
75
|
}
|
|
71
76
|
let elementToHighlight = sourceElement;
|
|
72
|
-
if ((
|
|
77
|
+
if (isFormattedMessageElement(elementToHighlight)) {
|
|
73
78
|
const { id, description, defaultMessage, values } = elementToHighlight.props;
|
|
74
79
|
const messageDescriptor = {
|
|
75
80
|
id,
|
|
@@ -80,7 +85,7 @@ function highlightRecursive(intl, sourceElement, terms, caseSensitive, dataTestI
|
|
|
80
85
|
if (Array.isArray(elementToHighlight)) {
|
|
81
86
|
return highlightRecursive(
|
|
82
87
|
intl,
|
|
83
|
-
import_react.
|
|
88
|
+
(0, import_react.createElement)(import_react.Fragment, { children: elementToHighlight }),
|
|
84
89
|
terms,
|
|
85
90
|
caseSensitive,
|
|
86
91
|
dataTestId,
|
|
@@ -89,8 +94,8 @@ function highlightRecursive(intl, sourceElement, terms, caseSensitive, dataTestI
|
|
|
89
94
|
);
|
|
90
95
|
}
|
|
91
96
|
}
|
|
92
|
-
if (import_react.
|
|
93
|
-
const children = import_react.
|
|
97
|
+
if ((0, import_react.isValidElement)(elementToHighlight)) {
|
|
98
|
+
const children = import_react.Children.map(
|
|
94
99
|
elementToHighlight.props.children,
|
|
95
100
|
(child) => highlightRecursive(
|
|
96
101
|
intl,
|
|
@@ -102,7 +107,7 @@ function highlightRecursive(intl, sourceElement, terms, caseSensitive, dataTestI
|
|
|
102
107
|
dataDtrumAllow
|
|
103
108
|
)
|
|
104
109
|
);
|
|
105
|
-
return import_react.
|
|
110
|
+
return (0, import_react.cloneElement)(
|
|
106
111
|
elementToHighlight,
|
|
107
112
|
elementToHighlight.props,
|
|
108
113
|
children
|
|
@@ -127,24 +132,24 @@ function highlightLeafElement(textContent, terms, caseSensitive, dataTestId, dat
|
|
|
127
132
|
);
|
|
128
133
|
const termsInLowerCase = terms.map((t) => t.toLowerCase());
|
|
129
134
|
return getTextTokens(sanitizedTextContent, terms, caseSensitive).map(
|
|
130
|
-
(token) => termsInLowerCase.includes(token.toLowerCase()) ? /* @__PURE__ */
|
|
135
|
+
(token) => termsInLowerCase.includes(token.toLowerCase()) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
131
136
|
"mark",
|
|
132
137
|
{
|
|
133
138
|
role: "mark",
|
|
134
139
|
className: (0, import_clsx.default)(import_Highlight_css.highlightCSS),
|
|
135
140
|
"data-dtrum-mask": dataDtrumMask,
|
|
136
|
-
"data-dtrum-allow": dataDtrumAllow
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
) : /* @__PURE__ */
|
|
141
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
142
|
+
children: token
|
|
143
|
+
}
|
|
144
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
140
145
|
"span",
|
|
141
146
|
{
|
|
142
147
|
style: {
|
|
143
148
|
whiteSpace: "pre-wrap",
|
|
144
149
|
flex: "none"
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
},
|
|
151
|
+
children: token
|
|
152
|
+
}
|
|
148
153
|
)
|
|
149
154
|
);
|
|
150
155
|
}
|
|
@@ -166,7 +171,7 @@ const Highlight = (props) => {
|
|
|
166
171
|
"data-dtrum-allow": dataDtrumAllow
|
|
167
172
|
} = props;
|
|
168
173
|
const intl = (0, import_react_intl.useIntl)();
|
|
169
|
-
return /* @__PURE__ */
|
|
174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: highlightChildren(
|
|
170
175
|
intl,
|
|
171
176
|
children,
|
|
172
177
|
term,
|
|
@@ -174,6 +179,6 @@ const Highlight = (props) => {
|
|
|
174
179
|
dataTestId,
|
|
175
180
|
dataDtrumMask,
|
|
176
181
|
dataDtrumAllow
|
|
177
|
-
));
|
|
182
|
+
) });
|
|
178
183
|
};
|
|
179
184
|
Highlight.displayName = "Highlight";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -21,4 +22,4 @@ __export(Highlight_css_exports, {
|
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(Highlight_css_exports);
|
|
23
24
|
var import_Highlight_css_ts_vanilla = require("./Highlight.css");
|
|
24
|
-
var highlightCSS = "_lajjl30-1-
|
|
25
|
+
var highlightCSS = "_lajjl30-1-6-0";
|
package/typography/index.js
CHANGED
package/typography/link/Link.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
._1iksxp40-1-
|
|
1
|
+
._1iksxp40-1-6-0 {
|
|
2
2
|
display: inline;
|
|
3
3
|
color: var(--dt-colors-text-primary-default, #454cc9);
|
|
4
4
|
text-decoration: underline;
|
|
5
5
|
overflow-wrap: anywhere;
|
|
6
6
|
}
|
|
7
|
-
._1iksxp40-1-
|
|
7
|
+
._1iksxp40-1-6-0:hover {
|
|
8
8
|
color: var(--dt-colors-text-primary-default-hover, #3332ae);
|
|
9
9
|
}
|
|
10
|
-
._1iksxp40-1-
|
|
10
|
+
._1iksxp40-1-6-0:active {
|
|
11
11
|
color: var(--dt-colors-text-primary-default-active, #241193);
|
|
12
12
|
}
|
|
13
|
-
._1iksxp40-1-
|
|
13
|
+
._1iksxp40-1-6-0:focus-visible {
|
|
14
14
|
text-decoration: none;
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType, ReactElement } from 'react';
|
|
1
|
+
import { type ElementType, type ReactElement } from 'react';
|
|
2
2
|
import { type PolymorphicComponentProps, type DataTestId, type StylingProps, type WithChildren } from '../../core/index.js';
|
|
3
3
|
import type { MaskingProps } from '../../core/types/masking-props.js';
|
|
4
4
|
/**
|
package/typography/link/Link.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -30,8 +31,9 @@ __export(Link_exports, {
|
|
|
30
31
|
Link: () => Link
|
|
31
32
|
});
|
|
32
33
|
module.exports = __toCommonJS(Link_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
35
|
var import_clsx = __toESM(require("clsx"));
|
|
34
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
35
37
|
var import_Link_css = require("./Link.sty.js");
|
|
36
38
|
var import_core = require("../../core/index.js");
|
|
37
39
|
var import_useFocusRing = require("../../core/styles/useFocusRing.js");
|
|
@@ -51,7 +53,7 @@ const Link = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
51
53
|
isMinimal: true
|
|
52
54
|
});
|
|
53
55
|
const LinkTag = as || "a";
|
|
54
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
57
|
LinkTag,
|
|
56
58
|
{
|
|
57
59
|
ref,
|
|
@@ -66,9 +68,9 @@ const Link = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
66
68
|
// polymorphic inheritance.
|
|
67
69
|
remainingProps,
|
|
68
70
|
focusProps
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
),
|
|
72
|
+
children
|
|
73
|
+
}
|
|
72
74
|
);
|
|
73
75
|
}
|
|
74
76
|
);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -21,4 +22,4 @@ __export(Link_css_exports, {
|
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(Link_css_exports);
|
|
23
24
|
var import_Link_css_ts_vanilla = require("./Link.css");
|
|
24
|
-
var linkCSS = "_1iksxp40-1-
|
|
25
|
+
var linkCSS = "_1iksxp40-1-6-0";
|
package/typography/list/List.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
._16276mt0-1-
|
|
1
|
+
._16276mt0-1-6-0 {
|
|
2
2
|
margin: 0;
|
|
3
3
|
padding-left: var(--dt-spacings-size-40, 40px);
|
|
4
4
|
}
|
|
5
|
-
._16276mt0-1-
|
|
5
|
+
._16276mt0-1-6-0 ._16276mt0-1-6-0 {
|
|
6
6
|
margin-block: var(--dt-spacings-size-4, 4px);
|
|
7
7
|
padding-left: var(--dt-spacings-size-28, 28px);
|
|
8
8
|
}
|
|
9
|
-
._16276mt1-1-
|
|
9
|
+
._16276mt1-1-6-0 {
|
|
10
10
|
position: relative;
|
|
11
11
|
overflow-wrap: break-word;
|
|
12
12
|
margin-block: var(--dt-spacings-size-2, 2px);
|
|
13
13
|
}
|
|
14
|
-
._16276mt1-1-
|
|
14
|
+
._16276mt1-1-6-0::marker {
|
|
15
15
|
font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
|
|
16
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type DataTestId } from '../../core/types/data-props.js';
|
|
3
2
|
import { type MaskingProps } from '../../core/types/masking-props.js';
|
|
4
3
|
import { type StylingProps } from '../../core/types/styling-props.js';
|
|
@@ -36,4 +35,4 @@ export interface ListProps<TOrdered extends boolean = false> extends WithChildre
|
|
|
36
35
|
* (for unordered lists).
|
|
37
36
|
* @public
|
|
38
37
|
*/
|
|
39
|
-
export declare const List: <TOrdered extends boolean = false>(props: ListProps<TOrdered> &
|
|
38
|
+
export declare const List: <TOrdered extends boolean = false>(props: ListProps<TOrdered> & import("react").RefAttributes<TOrdered extends true ? HTMLOListElement : HTMLUListElement>) => React.ReactElement | null;
|
package/typography/list/List.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -30,14 +31,15 @@ __export(List_exports, {
|
|
|
30
31
|
List: () => List
|
|
31
32
|
});
|
|
32
33
|
module.exports = __toCommonJS(List_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
35
|
var import_clsx = __toESM(require("clsx"));
|
|
34
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
35
37
|
var import_List_css = require("./List.sty.js");
|
|
36
38
|
var import_Text = require("../text/Text.js");
|
|
37
39
|
function interleaveListItems(listItems) {
|
|
38
40
|
const items = [];
|
|
39
|
-
import_react.
|
|
40
|
-
if (import_react.
|
|
41
|
+
import_react.Children.forEach(listItems, (listItem) => {
|
|
42
|
+
if ((0, import_react.isValidElement)(listItem)) {
|
|
41
43
|
if (listItem.type === List) {
|
|
42
44
|
if (items.length === 0) {
|
|
43
45
|
items.push([listItem]);
|
|
@@ -51,13 +53,13 @@ function interleaveListItems(listItems) {
|
|
|
51
53
|
});
|
|
52
54
|
return items.map((values, index) => {
|
|
53
55
|
const itemKey = `list-item-${getItemKey(values, index)}`;
|
|
54
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { className: import_List_css.listItemCSS, children: values }, itemKey);
|
|
55
57
|
});
|
|
56
58
|
}
|
|
57
59
|
function getItemKey(values, index) {
|
|
58
60
|
const isArray = Array.isArray(values);
|
|
59
61
|
const value = isArray ? values?.[0] : values;
|
|
60
|
-
if (import_react.
|
|
62
|
+
if ((0, import_react.isValidElement)(value)) {
|
|
61
63
|
if (value.key) {
|
|
62
64
|
return value.key;
|
|
63
65
|
} else if (value.props && value.props.children) {
|
|
@@ -85,7 +87,7 @@ const List = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
85
87
|
style: consumerStyle,
|
|
86
88
|
...remainingProps
|
|
87
89
|
} = props;
|
|
88
|
-
return /* @__PURE__ */
|
|
90
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
91
|
import_Text.Text,
|
|
90
92
|
{
|
|
91
93
|
ref,
|
|
@@ -100,9 +102,9 @@ const List = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
100
102
|
"data-dtrum-allow": dataDtrumAllow,
|
|
101
103
|
className: (0, import_clsx.default)(import_List_css.listCSS, consumerClassName),
|
|
102
104
|
style: consumerStyle,
|
|
103
|
-
...remainingProps
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
...remainingProps,
|
|
106
|
+
children: interleaveListItems(children)
|
|
107
|
+
}
|
|
106
108
|
);
|
|
107
109
|
}
|
|
108
110
|
);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -22,5 +23,5 @@ __export(List_css_exports, {
|
|
|
22
23
|
});
|
|
23
24
|
module.exports = __toCommonJS(List_css_exports);
|
|
24
25
|
var import_List_css_ts_vanilla = require("./List.css");
|
|
25
|
-
var listCSS = "_16276mt0-1-
|
|
26
|
-
var listItemCSS = "_16276mt1-1-
|
|
26
|
+
var listCSS = "_16276mt0-1-6-0";
|
|
27
|
+
var listItemCSS = "_16276mt1-1-6-0";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
._487p2n0-1-
|
|
1
|
+
._487p2n0-1-6-0 {
|
|
2
2
|
margin-top: 0;
|
|
3
3
|
margin-bottom: 0;
|
|
4
4
|
overflow-wrap: break-word;
|
|
5
5
|
color: inherit;
|
|
6
6
|
font-style: normal;
|
|
7
7
|
}
|
|
8
|
-
._487p2n1-1-
|
|
8
|
+
._487p2n1-1-6-0 {
|
|
9
9
|
display: block;
|
|
10
10
|
white-space: nowrap;
|
|
11
11
|
text-overflow: ellipsis;
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
}
|
|
14
|
-
._487p2n2-1-
|
|
14
|
+
._487p2n2-1-6-0 {
|
|
15
15
|
display: -webkit-box;
|
|
16
16
|
-webkit-line-clamp: var(--strato-ellipsis-line-clamp);
|
|
17
17
|
-webkit-box-orient: vertical;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type DataTestId, type StylingProps, type WithChildren } from '../../core/index.js';
|
|
3
2
|
import type { DOMProps } from '../../core/types/dom.js';
|
|
4
3
|
import type { MaskingProps } from '../../core/types/masking-props.js';
|
|
@@ -16,4 +15,4 @@ export interface ParagraphProps extends WithChildren, DOMProps, StylingProps, Da
|
|
|
16
15
|
* The `Paragraph` component displays a block of text with the default text style and supports text truncation.
|
|
17
16
|
* @public
|
|
18
17
|
*/
|
|
19
|
-
export declare const Paragraph: (props: ParagraphProps &
|
|
18
|
+
export declare const Paragraph: (props: ParagraphProps & import("react").RefAttributes<HTMLParagraphElement>) => React.ReactElement | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -30,8 +31,9 @@ __export(Paragraph_exports, {
|
|
|
30
31
|
Paragraph: () => Paragraph
|
|
31
32
|
});
|
|
32
33
|
module.exports = __toCommonJS(Paragraph_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
35
|
var import_clsx = __toESM(require("clsx"));
|
|
34
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
35
37
|
var import_Paragraph_css = require("./Paragraph.sty.js");
|
|
36
38
|
var import_textStyle_css = require("../../styles/textStyle.sty.js");
|
|
37
39
|
const Paragraph = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
|
|
@@ -53,7 +55,7 @@ const Paragraph = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
|
|
|
53
55
|
} else {
|
|
54
56
|
ellipsis = "multiLine";
|
|
55
57
|
}
|
|
56
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
57
59
|
"p",
|
|
58
60
|
{
|
|
59
61
|
ref,
|
|
@@ -69,9 +71,9 @@ const Paragraph = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
|
|
|
69
71
|
...consumerStyle,
|
|
70
72
|
"--strato-ellipsis-line-clamp": maxLines
|
|
71
73
|
},
|
|
72
|
-
...remainingProps
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
...remainingProps,
|
|
75
|
+
children
|
|
76
|
+
}
|
|
75
77
|
);
|
|
76
78
|
});
|
|
77
79
|
Paragraph.displayName = "Paragraph";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -22,4 +23,4 @@ __export(Paragraph_css_exports, {
|
|
|
22
23
|
module.exports = __toCommonJS(Paragraph_css_exports);
|
|
23
24
|
var import_Paragraph_css_ts_vanilla = require("./Paragraph.css");
|
|
24
25
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
25
|
-
var paragraphCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_487p2n0-1-
|
|
26
|
+
var paragraphCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_487p2n0-1-6-0", variantClassNames: { ellipsis: { singleLine: "_487p2n1-1-6-0", multiLine: "_487p2n2-1-6-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type DataTestId, type StylingProps, type WithChildren } from '../../core/index.js';
|
|
3
2
|
import type { MaskingProps } from '../../core/types/masking-props.js';
|
|
4
3
|
/**
|
|
@@ -12,4 +11,4 @@ export interface StrikethroughProps extends WithChildren, StylingProps, DataTest
|
|
|
12
11
|
* represent things that are no longer relevant or accurate.
|
|
13
12
|
* @public
|
|
14
13
|
*/
|
|
15
|
-
export declare const Strikethrough: (props: StrikethroughProps &
|
|
14
|
+
export declare const Strikethrough: (props: StrikethroughProps & import("react").RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -30,8 +31,9 @@ __export(Strikethrough_exports, {
|
|
|
30
31
|
Strikethrough: () => Strikethrough
|
|
31
32
|
});
|
|
32
33
|
module.exports = __toCommonJS(Strikethrough_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
35
|
var import_clsx = __toESM(require("clsx"));
|
|
34
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
35
37
|
var import_Strikethrough_css = require("./Strikethrough.sty.js");
|
|
36
38
|
const Strikethrough = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
|
|
37
39
|
const {
|
|
@@ -43,7 +45,7 @@ const Strikethrough = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref)
|
|
|
43
45
|
style: consumerStyle,
|
|
44
46
|
...remainingProps
|
|
45
47
|
} = props;
|
|
46
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
47
49
|
"s",
|
|
48
50
|
{
|
|
49
51
|
ref,
|
|
@@ -52,9 +54,9 @@ const Strikethrough = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref)
|
|
|
52
54
|
"data-dtrum-allow": dataDtrumAllow,
|
|
53
55
|
className: (0, import_clsx.default)(import_Strikethrough_css.strikethroughCSS, consumerClassName),
|
|
54
56
|
style: consumerStyle,
|
|
55
|
-
...remainingProps
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
...remainingProps,
|
|
58
|
+
children
|
|
59
|
+
}
|
|
58
60
|
);
|
|
59
61
|
});
|
|
60
62
|
Strikethrough.displayName = "Strikethrough";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -21,4 +22,4 @@ __export(Strikethrough_css_exports, {
|
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(Strikethrough_css_exports);
|
|
23
24
|
var import_Strikethrough_css_ts_vanilla = require("./Strikethrough.css");
|
|
24
|
-
var strikethroughCSS = "_4oao6y0-1-
|
|
25
|
+
var strikethroughCSS = "_4oao6y0-1-6-0";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type DataTestId, type StylingProps, type WithChildren } from '../../core/index.js';
|
|
3
2
|
import type { MaskingProps } from '../../core/types/masking-props.js';
|
|
4
3
|
/**
|
|
@@ -11,4 +10,4 @@ export interface StrongProps extends WithChildren, StylingProps, DataTestId, Mas
|
|
|
11
10
|
* Use the `Strong` component to render text in bold type to emphasize it.
|
|
12
11
|
* @public
|
|
13
12
|
*/
|
|
14
|
-
export declare const Strong: (props: StrongProps &
|
|
13
|
+
export declare const Strong: (props: StrongProps & import("react").RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -30,8 +31,9 @@ __export(Strong_exports, {
|
|
|
30
31
|
Strong: () => Strong
|
|
31
32
|
});
|
|
32
33
|
module.exports = __toCommonJS(Strong_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
35
|
var import_clsx = __toESM(require("clsx"));
|
|
34
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
35
37
|
var import_Strong_css = require("./Strong.sty.js");
|
|
36
38
|
const Strong = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
37
39
|
(props, ref) => {
|
|
@@ -44,7 +46,7 @@ const Strong = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
44
46
|
style: consumerStyle,
|
|
45
47
|
...remainingProps
|
|
46
48
|
} = props;
|
|
47
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
48
50
|
"strong",
|
|
49
51
|
{
|
|
50
52
|
ref,
|
|
@@ -53,9 +55,9 @@ const Strong = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
53
55
|
"data-dtrum-allow": dataDtrumAllow,
|
|
54
56
|
className: (0, import_clsx.default)(import_Strong_css.strongCSS, consumerClassName),
|
|
55
57
|
style: consumerStyle,
|
|
56
|
-
...remainingProps
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
...remainingProps,
|
|
59
|
+
children
|
|
60
|
+
}
|
|
59
61
|
);
|
|
60
62
|
}
|
|
61
63
|
);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -21,4 +22,4 @@ __export(Strong_css_exports, {
|
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(Strong_css_exports);
|
|
23
24
|
var import_Strong_css_ts_vanilla = require("./Strong.css");
|
|
24
|
-
var strongCSS = "_wxp4dd0-1-
|
|
25
|
+
var strongCSS = "_wxp4dd0-1-6-0";
|
package/typography/text/Text.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
._rup8ap0-1-
|
|
1
|
+
._rup8ap0-1-6-0 {
|
|
2
2
|
margin-top: 0;
|
|
3
3
|
margin-bottom: 0;
|
|
4
4
|
min-width: 0;
|
|
5
5
|
overflow-wrap: break-word;
|
|
6
6
|
}
|
|
7
|
-
._rup8ap1-1-
|
|
7
|
+
._rup8ap1-1-6-0 {
|
|
8
8
|
display: block;
|
|
9
9
|
white-space: nowrap;
|
|
10
10
|
text-overflow: ellipsis;
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
}
|
|
13
|
-
._rup8ap2-1-
|
|
13
|
+
._rup8ap2-1-6-0 {
|
|
14
14
|
display: -webkit-box;
|
|
15
15
|
-webkit-line-clamp: var(--strato-ellipsis-line-clamp);
|
|
16
16
|
-webkit-box-orient: vertical;
|
package/typography/text/Text.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -30,8 +31,9 @@ __export(Text_exports, {
|
|
|
30
31
|
Text: () => Text
|
|
31
32
|
});
|
|
32
33
|
module.exports = __toCommonJS(Text_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
35
|
var import_clsx = __toESM(require("clsx"));
|
|
34
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
35
37
|
var import_Text_css = require("./Text.sty.js");
|
|
36
38
|
var import_textStyle_css = require("../../styles/textStyle.sty.js");
|
|
37
39
|
const Text = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
@@ -49,7 +51,7 @@ const Text = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
49
51
|
}, ref) => {
|
|
50
52
|
const TextTag = as || "span";
|
|
51
53
|
let ellipsis;
|
|
52
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
53
55
|
TextTag,
|
|
54
56
|
{
|
|
55
57
|
"data-testid": dataTestId,
|
|
@@ -62,9 +64,9 @@ const Text = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
62
64
|
consumerClassName
|
|
63
65
|
]),
|
|
64
66
|
style: consumerStyle,
|
|
65
|
-
...remainingProps
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
...remainingProps,
|
|
68
|
+
children
|
|
69
|
+
}
|
|
68
70
|
);
|
|
69
71
|
}
|
|
70
72
|
);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -22,4 +23,4 @@ __export(Text_css_exports, {
|
|
|
22
23
|
module.exports = __toCommonJS(Text_css_exports);
|
|
23
24
|
var import_Text_css_ts_vanilla = require("./Text.css");
|
|
24
25
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
25
|
-
var textCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_rup8ap0-1-
|
|
26
|
+
var textCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_rup8ap0-1-6-0", variantClassNames: { ellipsis: { singleLine: "_rup8ap1-1-6-0", multiLine: "_rup8ap2-1-6-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
._1mnpbqs1-1-
|
|
1
|
+
._1mnpbqs1-1-6-0 {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
vertical-align: middle;
|
|
@@ -9,15 +9,18 @@
|
|
|
9
9
|
text-decoration: inherit;
|
|
10
10
|
width: 100%;
|
|
11
11
|
}
|
|
12
|
-
._1mnpbqs2-1-
|
|
12
|
+
._1mnpbqs2-1-6-0 {
|
|
13
13
|
text-overflow: ellipsis;
|
|
14
14
|
direction: rtl;
|
|
15
15
|
text-align: left;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
._1mnpbqs2-1-6-0::after {
|
|
18
|
+
content: "";
|
|
19
|
+
}
|
|
20
|
+
._1mnpbqs3-1-6-0 {
|
|
18
21
|
text-overflow: clip;
|
|
19
22
|
}
|
|
20
|
-
._1mnpbqs3-1-
|
|
23
|
+
._1mnpbqs3-1-6-0._1mnpbqs0-1-6-0:after {
|
|
21
24
|
content: attr(data-sourcetext) / "";
|
|
22
25
|
color: transparent;
|
|
23
26
|
display: table;
|
|
@@ -25,6 +28,6 @@
|
|
|
25
28
|
line-height: 0;
|
|
26
29
|
user-select: none;
|
|
27
30
|
}
|
|
28
|
-
._1mnpbqs4-1-
|
|
31
|
+
._1mnpbqs4-1-6-0 {
|
|
29
32
|
text-overflow: ellipsis;
|
|
30
33
|
}
|