@dynatrace/strato-components 0.85.110 → 1.0.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 +17 -17
- package/buttons/button/Button.js +1 -1
- package/buttons/button/Button.sty.js +4 -4
- package/content/progress/ProgressBar.css +71 -71
- package/content/progress/ProgressBar.d.ts +0 -7
- package/content/progress/ProgressBar.js +19 -45
- package/content/progress/ProgressBar.sty.js +5 -5
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.sty.js +1 -1
- package/content/progress/ProgressBarLabel.css +3 -3
- package/content/progress/ProgressBarLabel.js +1 -1
- package/content/progress/ProgressBarLabel.sty.js +1 -1
- package/content/progress/ProgressBarValue.css +5 -5
- package/content/progress/ProgressBarValue.js +1 -1
- package/content/progress/ProgressBarValue.sty.js +1 -1
- package/content/progress/ProgressCircle.css +40 -40
- package/content/progress/ProgressCircle.d.ts +0 -7
- package/content/progress/ProgressCircle.js +2 -10
- package/content/progress/ProgressCircle.sty.js +5 -5
- package/content/progress/hooks/useProgressBarPropsContext.d.ts +5 -2
- package/content/progress/hooks/useProgressBarPropsContext.js +2 -2
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.sty.js +1 -1
- package/core/components/app-root/AppRoot.css +0 -57
- package/core/hooks/useFontsUpdated.d.ts +1 -1
- package/core/hooks/useFontsUpdated.js +2 -2
- package/core/index.d.ts +0 -2
- package/core/index.js +0 -2
- package/core/styles/focusRing.css +66 -66
- package/core/styles/focusRing.sty.js +2 -2
- package/core/utils/colorUtils.css +60 -60
- package/core/utils/colorUtils.sty.js +2 -2
- package/esm/buttons/button/Button.css +17 -17
- package/esm/buttons/button/Button.js +1 -1
- 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 +2 -2
- package/esm/content/progress/ProgressBar.css +71 -71
- package/esm/content/progress/ProgressBar.js +19 -45
- 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 +2 -2
- package/esm/content/progress/ProgressBarIcon.css +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 +2 -2
- 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 +2 -2
- package/esm/content/progress/ProgressBarValue.css +5 -5
- package/esm/content/progress/ProgressBarValue.js +2 -2
- 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 +2 -2
- package/esm/content/progress/ProgressCircle.css +40 -40
- package/esm/content/progress/ProgressCircle.js +2 -10
- 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 +2 -2
- package/esm/content/progress/hooks/useProgressBarPropsContext.js +2 -2
- package/esm/content/progress/hooks/useProgressBarPropsContext.js.map +2 -2
- package/esm/content/skeleton/Skeleton.css +6 -6
- package/esm/content/skeleton/Skeleton.sty.js +1 -1
- package/esm/content/skeleton/Skeleton.sty.js.map +2 -2
- package/esm/core/components/app-root/AppRoot.css +0 -57
- package/esm/core/hooks/useFontsUpdated.js +2 -2
- package/esm/core/hooks/useFontsUpdated.js.map +2 -2
- package/esm/core/index.js +0 -2
- package/esm/core/index.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 +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 +2 -2
- package/esm/layouts/container/Container.css +4 -4
- 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.sty.js +1 -1
- package/esm/layouts/divider/Divider.sty.js.map +2 -2
- package/esm/layouts/input-group/InputGroup.css +4 -4
- package/esm/layouts/input-group/InputGroup.sty.js +2 -2
- package/esm/layouts/input-group/InputGroup.sty.js.map +1 -1
- package/esm/layouts/surface/Surface.css +39 -39
- package/esm/layouts/surface/Surface.sty.js +2 -2
- package/esm/layouts/surface/Surface.sty.js.map +2 -2
- 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 +2 -2
- package/esm/styles/container.css +47 -47
- package/esm/styles/container.sty.js +2 -2
- package/esm/styles/container.sty.js.map +2 -2
- 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 +2 -2
- package/esm/styles/sprinkles.css +262 -262
- package/esm/styles/sprinkles.sty.js +1 -1
- package/esm/styles/sprinkles.sty.js.map +2 -2
- package/esm/styles/textStyle.css +8 -8
- package/esm/styles/textStyle.sty.js +1 -1
- package/esm/styles/textStyle.sty.js.map +2 -2
- package/esm/typography/block-quote/Blockquote.css +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.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.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.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.sty.js +1 -1
- package/esm/typography/heading/Heading.sty.js.map +2 -2
- package/esm/typography/highlight/Highlight.css +1 -1
- package/esm/typography/highlight/Highlight.sty.js +1 -1
- package/esm/typography/highlight/Highlight.sty.js.map +1 -1
- package/esm/typography/index.js +12 -12
- package/esm/typography/index.js.map +2 -2
- package/esm/typography/link/Link.css +4 -4
- 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.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.sty.js +1 -1
- package/esm/typography/paragraph/Paragraph.sty.js.map +2 -2
- package/esm/typography/strikethrough/Strikethrough.css +1 -1
- 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.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.sty.js +1 -1
- package/esm/typography/text/Text.sty.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/esm/typography/text-ellipsis/TextEllipsis.js +45 -45
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +2 -2
- package/esm/typography/utils.js +19 -19
- package/esm/typography/utils.js.map +2 -2
- package/layouts/container/Container.css +4 -4
- package/layouts/container/Container.sty.js +1 -1
- package/layouts/divider/Divider.css +6 -6
- package/layouts/divider/Divider.sty.js +1 -1
- package/layouts/input-group/InputGroup.css +4 -4
- package/layouts/input-group/InputGroup.sty.js +2 -2
- package/layouts/surface/Surface.css +39 -39
- package/layouts/surface/Surface.sty.js +2 -2
- package/layouts/surface/variables.sty.js +1 -1
- package/package.json +15 -26
- package/styles/colorUtils.css +60 -60
- package/styles/colorUtils.sty.js +2 -2
- package/styles/container.css +47 -47
- package/styles/container.sty.js +2 -2
- package/styles/ellipsis.css +1 -1
- package/styles/ellipsis.sty.js +1 -1
- package/styles/field.css +153 -153
- package/styles/field.sty.js +2 -2
- package/styles/sprinkles.css +262 -262
- package/styles/sprinkles.sty.js +1 -1
- package/styles/textStyle.css +8 -8
- package/styles/textStyle.sty.js +1 -1
- package/typography/block-quote/Blockquote.css +2 -2
- package/typography/block-quote/Blockquote.sty.js +1 -1
- package/typography/code/Code.css +1 -1
- package/typography/code/Code.sty.js +1 -1
- package/typography/emphasis/Emphasis.css +1 -1
- package/typography/emphasis/Emphasis.sty.js +1 -1
- package/typography/external-link/ExternalLink.css +6 -6
- package/typography/external-link/ExternalLink.sty.js +1 -1
- package/typography/heading/Heading.css +7 -7
- package/typography/heading/Heading.sty.js +1 -1
- package/typography/highlight/Highlight.css +1 -1
- package/typography/highlight/Highlight.sty.js +1 -1
- package/typography/index.d.ts +3 -3
- package/typography/index.js +6 -6
- package/typography/link/Link.css +4 -4
- package/typography/link/Link.sty.js +1 -1
- package/typography/list/List.css +4 -4
- package/typography/list/List.sty.js +2 -2
- package/typography/paragraph/Paragraph.css +3 -3
- package/typography/paragraph/Paragraph.sty.js +1 -1
- package/typography/strikethrough/Strikethrough.css +1 -1
- package/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/typography/strong/Strong.css +1 -1
- package/typography/strong/Strong.sty.js +1 -1
- package/typography/text/Text.css +3 -3
- package/typography/text/Text.sty.js +1 -1
- package/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/typography/text-ellipsis/TextEllipsis.d.ts +2 -2
- package/typography/text-ellipsis/TextEllipsis.js +44 -44
- package/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/typography/utils.d.ts +14 -11
- package/typography/utils.js +19 -19
- package/core/types/role-variant.d.ts +0 -12
- package/core/types/role-variant.js +0 -30
- package/esm/core/types/role-variant.js +0 -12
- package/esm/core/types/role-variant.js.map +0 -7
- package/testing/custom-render.d.ts +0 -12
- package/testing/custom-render.js +0 -62
- package/testing/index.d.ts +0 -22
- package/testing/index.js +0 -91
- package/testing/jest/index.d.ts +0 -1
- package/testing/jest/index.js +0 -5
- package/testing/jest/jest-preset.d.ts +0 -10
- package/testing/jest/jest-preset.js +0 -13
- package/testing/jest/resolver.d.ts +0 -0
- package/testing/jest/resolver.js +0 -27
- package/testing/mocks/bounding-client-rect-mock.d.ts +0 -8
- package/testing/mocks/bounding-client-rect-mock.js +0 -36
- package/testing/mocks/canvas-mock.d.ts +0 -14
- package/testing/mocks/canvas-mock.js +0 -192
- package/testing/mocks/create-mock-element.d.ts +0 -14
- package/testing/mocks/create-mock-element.js +0 -99
- package/testing/mocks/create-range-mock.d.ts +0 -10
- package/testing/mocks/create-range-mock.js +0 -47
- package/testing/mocks/dom-rect-mock.d.ts +0 -19
- package/testing/mocks/dom-rect-mock.js +0 -56
- package/testing/mocks/fetch-mock.d.ts +0 -9
- package/testing/mocks/fetch-mock.js +0 -38
- package/testing/mocks/intersection-observer-mock.d.ts +0 -10
- package/testing/mocks/intersection-observer-mock.js +0 -58
- package/testing/mocks/match-media-mock.d.ts +0 -10
- package/testing/mocks/match-media-mock.js +0 -45
- package/testing/mocks/offset-height-mock.d.ts +0 -8
- package/testing/mocks/offset-height-mock.js +0 -39
- package/testing/mocks/offset-width-mock.d.ts +0 -8
- package/testing/mocks/offset-width-mock.js +0 -39
- package/testing/mocks/pointer-event-mock.d.ts +0 -8
- package/testing/mocks/pointer-event-mock.js +0 -42
- package/testing/mocks/resize-observer-mock.d.ts +0 -11
- package/testing/mocks/resize-observer-mock.js +0 -42
- package/testing/mocks/screen-size-mock.d.ts +0 -8
- package/testing/mocks/screen-size-mock.js +0 -34
- package/testing/mocks/scroll-into-view-mock.d.ts +0 -10
- package/testing/mocks/scroll-into-view-mock.js +0 -34
- package/testing/mocks/scroll-width-mock.d.ts +0 -8
- package/testing/mocks/scroll-width-mock.js +0 -39
- package/testing/mocks/select-mock.d.ts +0 -11
- package/testing/mocks/select-mock.js +0 -45
- package/testing/mocks/table-virtualization-mock.d.ts +0 -10
- package/testing/mocks/table-virtualization-mock.js +0 -50
- package/testing/mocks/text-ellipsis-mock.d.ts +0 -8
- package/testing/mocks/text-ellipsis-mock.js +0 -43
- package/testing/setup.d.ts +0 -8
- package/testing/setup.js +0 -57
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/typography/utils.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n *
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/**\n * Properties describing how a piece of text is formatted.\n * @internal\n */\nexport type Font = {\n fontStyle?: string;\n fontWeight?: string;\n fontSize: string;\n fontFamily: string;\n};\n\n/**\n * The Unicode character representing an ellipsis.\n * @internal\n */\nexport const ELLIPSIS_CHARACTER = '\\u2026';\n\n/**\n * Max iterations for finding the perfect truncated text for a given width\n * @internal\n */\nexport const ELLIPSIS_APPROXIMATION_THRESHOLD = 15;\n\nlet inMemContext2d: CanvasRenderingContext2D;\n\n/**\n * Calculates the width of formatted text in pixels.\n *\n * @param text - The text to calculate the width of\n * @param textFont - The font settings for the text\n * @internal\n */\nexport function getTextWidth(text: string, textFont: Font): number {\n const context = getCanvasContext2d();\n\n context.font = getFontString(textFont);\n\n const textMetrics = context.measureText(text);\n\n // this branch is relevant for mocked canvas API in unit tests\n if (textMetrics.width < 0) {\n return textMetrics.width;\n }\n\n // more accurate than using metrics width\n // see https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics#measuring_text_width\n const actualTextWidth =\n Math.abs(textMetrics.actualBoundingBoxLeft) +\n Math.abs(textMetrics.actualBoundingBoxRight);\n\n // Scrap sub-pixel accuracy and always round up to be on the safer side\n return Math.ceil(actualTextWidth);\n}\n\n/**\n * Calculates the height of formatted text in pixels.\n * @param text - The text to calculate the height of\n * @param textFont - The font settings for the text\n * @internal\n */\nexport function getTextHeight(text: string, textFont: Font): number {\n const context = getCanvasContext2d();\n\n context.font = getFontString(textFont);\n\n const textMetrics = context.measureText(text);\n\n const actualTextHeight =\n Math.abs(textMetrics.actualBoundingBoxAscent) +\n Math.abs(textMetrics.actualBoundingBoxDescent);\n\n // Scrap sub-pixel accuracy and always round up to be on the safer side\n return Math.ceil(actualTextHeight);\n}\n\n/**\n * Cuts off text that exceeds the maximum width in the center and\n * concatenates both shortened ends of the text with an ellipsis.\n *\n * @param originalText - The text to be truncated if its width exceeds <code>maxWidthInPx</code>\n * @param textFont - Different font settings to be considered when determining the width of the text\n * @param maxWidthInPx - If the text's width exceeds this value, the text will be truncated to a string whose width is guaranteed to be below it\n * @internal\n */\nexport function centerEllipsizeText(\n originalText: string,\n textFont: Font,\n maxWidthInPx: number,\n): string {\n const ellipsisInfo = calculateEllipsisInfo(\n originalText,\n textFont,\n maxWidthInPx,\n );\n\n if (ellipsisInfo === null) {\n return originalText;\n }\n\n const { ellipsisWidth, avgLetterWidth } = ellipsisInfo;\n const availableTextWidth = maxWidthInPx - ellipsisWidth;\n\n if (availableTextWidth <= ellipsisWidth) {\n return ELLIPSIS_CHARACTER;\n }\n\n const initialPrefixSuffixLength =\n Math.floor(availableTextWidth / avgLetterWidth / 2) + 1;\n\n let prefix: string;\n let suffix: string;\n let ellipsizedText: string;\n let approximatedTextWidth: number;\n let attempt = 1;\n let prefixLength = initialPrefixSuffixLength;\n let suffixLength = initialPrefixSuffixLength;\n\n do {\n prefixLength -= attempt % 2 === 1 ? 1 : 0;\n suffixLength -= attempt % 2 === 0 ? 1 : 0;\n\n prefix = originalText.substring(0, prefixLength);\n suffix = originalText.substring(originalText.length - suffixLength);\n\n ellipsizedText = `${prefix}${ELLIPSIS_CHARACTER}${suffix}`;\n approximatedTextWidth = getTextWidth(ellipsizedText, textFont);\n\n attempt++;\n } while (\n attempt <= ELLIPSIS_APPROXIMATION_THRESHOLD &&\n approximatedTextWidth >= maxWidthInPx\n );\n\n return ellipsizedText;\n}\n\n/**\n * Transforms a font settings object into a CSS font specifier string\n * that can be used on 2D canvas contexts.\n */\nfunction getFontString(textFont: Font): string {\n const { fontStyle, fontWeight, fontSize, fontFamily } = textFont;\n\n // Note: always drop default values for fontStyle and fontWeight as\n // these can randomly (!) break text width detection!\n return [\n fontStyle === 'normal' ? '' : fontStyle,\n fontWeight === '400' ? '' : fontWeight,\n fontSize,\n fontFamily,\n ]\n .filter((value) => value !== undefined && value !== '')\n .map((value) =>\n // we need to resolve CSS variables manually because they are not supported by the canvas API\n value?.trim().startsWith('var(')\n ? value.replace(/^\\s*var\\(--[0-9A-Za-z-]+,\\s*([^)]+)\\)\\s*$/, '$1')\n : value,\n )\n .join(' ');\n}\n\n/**\n * Returns an object containing the width of a given formatted text and the\n * width of an ellipsis character with the same text format or `null`\n * if the text width does not exceed its maximum available width.\n * @internal\n */\nexport function calculateEllipsisInfo(\n originalText: string,\n textFont: Font,\n maxWidthInPx: number,\n): { ellipsisWidth: number; avgLetterWidth: number } | null {\n const originalTextLength = originalText.length;\n\n if (originalTextLength <= 1) {\n return null;\n }\n\n const textWidth = getTextWidth(originalText, textFont);\n const avgLetterWidth = textWidth / originalTextLength;\n\n return textWidth > maxWidthInPx\n ? {\n ellipsisWidth: getTextWidth(ELLIPSIS_CHARACTER, textFont),\n avgLetterWidth,\n }\n : null;\n}\n\n/** Returns the canvas 2D context used for measuring the width of formatted text. */\nfunction getCanvasContext2d() {\n if (!inMemContext2d) {\n const context = document.createElement('canvas').getContext('2d');\n\n if (context !== null) {\n context.imageSmoothingEnabled = false;\n context.imageSmoothingQuality = 'low';\n inMemContext2d = context;\n } else {\n throw new Error('Failed to create a Canvas 2D context');\n }\n }\n\n return inMemContext2d;\n}\n"],
|
|
5
|
+
"mappings": "AAeO,MAAM,qBAAqB;AAM3B,MAAM,mCAAmC;AAEhD,IAAI;AASG,SAAS,aAAa,MAAc,UAAwB;AACjE,QAAM,UAAU,mBAAmB;AAEnC,UAAQ,OAAO,cAAc,QAAQ;AAErC,QAAM,cAAc,QAAQ,YAAY,IAAI;AAG5C,MAAI,YAAY,QAAQ,GAAG;AACzB,WAAO,YAAY;AAAA,EACrB;AAIA,QAAM,kBACJ,KAAK,IAAI,YAAY,qBAAqB,IAC1C,KAAK,IAAI,YAAY,sBAAsB;AAG7C,SAAO,KAAK,KAAK,eAAe;AAClC;AAQO,SAAS,cAAc,MAAc,UAAwB;AAClE,QAAM,UAAU,mBAAmB;AAEnC,UAAQ,OAAO,cAAc,QAAQ;AAErC,QAAM,cAAc,QAAQ,YAAY,IAAI;AAE5C,QAAM,mBACJ,KAAK,IAAI,YAAY,uBAAuB,IAC5C,KAAK,IAAI,YAAY,wBAAwB;AAG/C,SAAO,KAAK,KAAK,gBAAgB;AACnC;AAWO,SAAS,oBACd,cACA,UACA,cACQ;AACR,QAAM,eAAe;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,MAAI,iBAAiB,MAAM;AACzB,WAAO;AAAA,EACT;AAEA,QAAM,EAAE,eAAe,eAAe,IAAI;AAC1C,QAAM,qBAAqB,eAAe;AAE1C,MAAI,sBAAsB,eAAe;AACvC,WAAO;AAAA,EACT;AAEA,QAAM,4BACJ,KAAK,MAAM,qBAAqB,iBAAiB,CAAC,IAAI;AAExD,MAAI;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI,UAAU;AACd,MAAI,eAAe;AACnB,MAAI,eAAe;AAEnB,KAAG;AACD,oBAAgB,UAAU,MAAM,IAAI,IAAI;AACxC,oBAAgB,UAAU,MAAM,IAAI,IAAI;AAExC,aAAS,aAAa,UAAU,GAAG,YAAY;AAC/C,aAAS,aAAa,UAAU,aAAa,SAAS,YAAY;AAElE,qBAAiB,GAAG,MAAM,GAAG,kBAAkB,GAAG,MAAM;AACxD,4BAAwB,aAAa,gBAAgB,QAAQ;AAE7D;AAAA,EACF,SACE,WAAW,oCACX,yBAAyB;AAG3B,SAAO;AACT;AAMA,SAAS,cAAc,UAAwB;AAC7C,QAAM,EAAE,WAAW,YAAY,UAAU,WAAW,IAAI;AAIxD,SAAO;AAAA,IACL,cAAc,WAAW,KAAK;AAAA,IAC9B,eAAe,QAAQ,KAAK;AAAA,IAC5B;AAAA,IACA;AAAA,EACF,EACG,OAAO,CAAC,UAAU,UAAU,UAAa,UAAU,EAAE,EACrD;AAAA,IAAI,CAAC;AAAA;AAAA,MAEJ,OAAO,KAAK,EAAE,WAAW,MAAM,IAC3B,MAAM,QAAQ,6CAA6C,IAAI,IAC/D;AAAA;AAAA,EACN,EACC,KAAK,GAAG;AACb;AAQO,SAAS,sBACd,cACA,UACA,cAC0D;AAC1D,QAAM,qBAAqB,aAAa;AAExC,MAAI,sBAAsB,GAAG;AAC3B,WAAO;AAAA,EACT;AAEA,QAAM,YAAY,aAAa,cAAc,QAAQ;AACrD,QAAM,iBAAiB,YAAY;AAEnC,SAAO,YAAY,eACf;AAAA,IACE,eAAe,aAAa,oBAAoB,QAAQ;AAAA,IACxD;AAAA,EACF,IACA;AACN;AAGA,SAAS,qBAAqB;AAC5B,MAAI,CAAC,gBAAgB;AACnB,UAAM,UAAU,SAAS,cAAc,QAAQ,EAAE,WAAW,IAAI;AAEhE,QAAI,YAAY,MAAM;AACpB,cAAQ,wBAAwB;AAChC,cAAQ,wBAAwB;AAChC,uBAAiB;AAAA,IACnB,OAAO;AACL,YAAM,IAAI,MAAM,sCAAsC;AAAA,IACxD;AAAA,EACF;AAEA,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
._f32lcd0-0-
|
|
1
|
+
._f32lcd0-1-0-0 {
|
|
2
2
|
border-style: var(--dt-borders-style-default, solid);
|
|
3
3
|
border-width: var(--dt-borders-width-emphasized, 2px);
|
|
4
4
|
border-radius: var(--dt-borders-radius-container-default, 12px);
|
|
5
|
-
color: var(--_6levse0-0-
|
|
6
|
-
border-color: var(--_6levse2-0-
|
|
7
|
-
background-color: var(--_6levse1-0-
|
|
5
|
+
color: var(--_6levse0-1-0-0);
|
|
6
|
+
border-color: var(--_6levse2-1-0-0);
|
|
7
|
+
background-color: var(--_6levse1-1-0-0);
|
|
8
8
|
}
|
|
@@ -22,4 +22,4 @@ __export(Container_css_exports, {
|
|
|
22
22
|
module.exports = __toCommonJS(Container_css_exports);
|
|
23
23
|
var import_container_css_ts_vanilla = require("../../styles/container.css");
|
|
24
24
|
var import_Container_css_ts_vanilla = require("./Container.css");
|
|
25
|
-
var containerCSS = "_f32lcd0-0-
|
|
25
|
+
var containerCSS = "_f32lcd0-1-0-0";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
._1thxv8m0-0-
|
|
1
|
+
._1thxv8m0-1-0-0 {
|
|
2
2
|
border: none;
|
|
3
3
|
margin: 0;
|
|
4
4
|
overflow-wrap: break-word;
|
|
5
|
-
background-color: var(--_k096v42-0-
|
|
5
|
+
background-color: var(--_k096v42-1-0-0);
|
|
6
6
|
}
|
|
7
|
-
._1thxv8m1-0-
|
|
7
|
+
._1thxv8m1-1-0-0 {
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: var(--dt-borders-width-default, 1px);
|
|
10
10
|
}
|
|
11
|
-
._1thxv8m2-0-
|
|
11
|
+
._1thxv8m2-1-0-0 {
|
|
12
12
|
width: var(--dt-borders-width-default, 1px);
|
|
13
13
|
height: 100%;
|
|
14
14
|
}
|
|
15
|
-
._1thxv8m5-0-
|
|
15
|
+
._1thxv8m5-1-0-0 {
|
|
16
16
|
flex-shrink: 0;
|
|
17
17
|
}
|
|
18
|
-
._1thxv8m6-0-
|
|
18
|
+
._1thxv8m6-1-0-0 {
|
|
19
19
|
flex-shrink: 0;
|
|
20
20
|
width: var(--dt-borders-width-default, 1px);
|
|
21
21
|
height: auto;
|
|
@@ -23,4 +23,4 @@ module.exports = __toCommonJS(Divider_css_exports);
|
|
|
23
23
|
var import_colorUtils_css_ts_vanilla = require("../../core/utils/colorUtils.css");
|
|
24
24
|
var import_Divider_css_ts_vanilla = require("./Divider.css");
|
|
25
25
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
-
var dividerCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1thxv8m0-0-
|
|
26
|
+
var dividerCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1thxv8m0-1-0-0", variantClassNames: { orientation: { horizontal: "_1thxv8m1-1-0-0", vertical: "_1thxv8m2-1-0-0" }, flexItem: { true: "_1thxv8m3-1-0-0", false: "_1thxv8m4-1-0-0" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "_1thxv8m5-1-0-0"], [{ orientation: "vertical", flexItem: true }, "_1thxv8m6-1-0-0"]] });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
._1x4bl8z0-0-
|
|
3
|
-
._1x4bl8z0-0-
|
|
2
|
+
._1x4bl8z0-1-0-0 > ._1x4bl8z1-1-0-0:not(:last-child),
|
|
3
|
+
._1x4bl8z0-1-0-0 > *:not(:last-child) :is(._1x4bl8z1-1-0-0, .cm-editor) {
|
|
4
4
|
border-top-right-radius: 0;
|
|
5
5
|
border-bottom-right-radius: 0;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
._1x4bl8z0-0-
|
|
9
|
-
._1x4bl8z0-0-
|
|
8
|
+
._1x4bl8z0-1-0-0 > ._1x4bl8z1-1-0-0:not(:first-child),
|
|
9
|
+
._1x4bl8z0-1-0-0 > *:not(:first-child) :is(._1x4bl8z1-1-0-0, .cm-editor) {
|
|
10
10
|
border-top-left-radius: 0;
|
|
11
11
|
border-bottom-left-radius: 0;
|
|
12
12
|
}
|
|
@@ -22,5 +22,5 @@ __export(InputGroup_css_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(InputGroup_css_exports);
|
|
24
24
|
var import_InputGroup_css_ts_vanilla = require("./InputGroup.css");
|
|
25
|
-
var inputGroupCSS = "_1x4bl8z0-0-
|
|
26
|
-
var inputGroupChildCSS = "_1x4bl8z1-0-
|
|
25
|
+
var inputGroupCSS = "_1x4bl8z0-1-0-0";
|
|
26
|
+
var inputGroupChildCSS = "_1x4bl8z1-1-0-0";
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
._1qto6jt6-0-
|
|
2
|
-
--_1igzksy0-0-
|
|
1
|
+
._1qto6jt6-1-0-0 {
|
|
2
|
+
--_1igzksy0-1-0-0: var(--dt-borders-radius-surface-default, 16px);
|
|
3
3
|
color: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
4
4
|
text-align: left;
|
|
5
5
|
border: none;
|
|
6
6
|
outline: none;
|
|
7
7
|
position: relative;
|
|
8
8
|
background-color: var(--dt-colors-background-surface-default, #fcfcfd);
|
|
9
|
-
border-radius: var(--_1igzksy0-0-
|
|
9
|
+
border-radius: var(--_1igzksy0-1-0-0);
|
|
10
10
|
}
|
|
11
|
-
._1qto6jt6-0-
|
|
11
|
+
._1qto6jt6-1-0-0::before, ._1qto6jt6-1-0-0::after {
|
|
12
12
|
content: "";
|
|
13
13
|
width: 100%;
|
|
14
14
|
height: 100%;
|
|
15
15
|
position: absolute;
|
|
16
16
|
left: 0;
|
|
17
17
|
top: 0;
|
|
18
|
-
border-radius: var(--_1igzksy0-0-
|
|
18
|
+
border-radius: var(--_1igzksy0-1-0-0);
|
|
19
19
|
pointer-events: none;
|
|
20
20
|
}
|
|
21
|
-
._1qto6jt6-0-
|
|
21
|
+
._1qto6jt6-1-0-0::after {
|
|
22
22
|
box-shadow: 0px 0px 0px 1px var(--dt-colors-background-base-default, #f3f3f7);
|
|
23
23
|
outline-offset: 1px;
|
|
24
|
-
outline: 2px solid var(--_17bwkb02-0-
|
|
25
|
-
opacity: var(--_1qto6jt4-0-
|
|
26
|
-
transition: var(--_1qto6jt5-0-
|
|
24
|
+
outline: 2px solid var(--_17bwkb02-1-0-0);
|
|
25
|
+
opacity: var(--_1qto6jt4-1-0-0);
|
|
26
|
+
transition: var(--_1qto6jt5-1-0-0);
|
|
27
27
|
}
|
|
28
|
-
._1qto6jt7-0-
|
|
29
|
-
--_1qto6jt4-0-
|
|
30
|
-
--_1qto6jt5-0-
|
|
28
|
+
._1qto6jt7-1-0-0 {
|
|
29
|
+
--_1qto6jt4-1-0-0: 1;
|
|
30
|
+
--_1qto6jt5-1-0-0: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
|
|
31
31
|
}
|
|
32
|
-
._1qto6jt8-0-
|
|
33
|
-
--_1qto6jt4-0-
|
|
34
|
-
--_1qto6jt5-0-
|
|
32
|
+
._1qto6jt8-1-0-0 {
|
|
33
|
+
--_1qto6jt4-1-0-0: 0;
|
|
34
|
+
--_1qto6jt5-1-0-0: var(--dt-animations-fade-out-easing, cubic-bezier(0, 0, 0.2, 1)) var(--dt-animations-fade-out-duration-fast, 150ms);
|
|
35
35
|
}
|
|
36
|
-
._1qto6jt9-0-
|
|
37
|
-
--_1qto6jt1-0-
|
|
38
|
-
--_1qto6jt2-0-
|
|
39
|
-
--_1qto6jt3-0-
|
|
36
|
+
._1qto6jt9-1-0-0 {
|
|
37
|
+
--_1qto6jt1-1-0-0: 0;
|
|
38
|
+
--_1qto6jt2-1-0-0: pointer;
|
|
39
|
+
--_1qto6jt3-1-0-0: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
40
40
|
width: 100%;
|
|
41
41
|
height: 100%;
|
|
42
42
|
position: absolute;
|
|
43
43
|
left: 0;
|
|
44
44
|
top: 0;
|
|
45
|
-
border-radius: var(--_1igzksy0-0-
|
|
45
|
+
border-radius: var(--_1igzksy0-1-0-0);
|
|
46
46
|
pointer-events: none;
|
|
47
47
|
}
|
|
48
|
-
._1qto6jt9-0-
|
|
48
|
+
._1qto6jt9-1-0-0::after,._1qto6jt9-1-0-0::before {
|
|
49
49
|
content: "";
|
|
50
50
|
width: 100%;
|
|
51
51
|
height: 100%;
|
|
52
52
|
position: absolute;
|
|
53
53
|
left: 0;
|
|
54
54
|
top: 0;
|
|
55
|
-
border-radius: var(--_1igzksy0-0-
|
|
55
|
+
border-radius: var(--_1igzksy0-1-0-0);
|
|
56
56
|
pointer-events: none;
|
|
57
57
|
transition: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
|
|
58
58
|
}
|
|
59
|
-
._1qto6jt9-0-
|
|
60
|
-
box-shadow: var(--_1qto6jt0-0-
|
|
61
|
-
opacity: var(--_1qto6jt1-0-
|
|
59
|
+
._1qto6jt9-1-0-0::after {
|
|
60
|
+
box-shadow: var(--_1qto6jt0-1-0-0);
|
|
61
|
+
opacity: var(--_1qto6jt1-1-0-0);
|
|
62
62
|
}
|
|
63
|
-
._1qto6jt9-0-
|
|
64
|
-
box-shadow: var(--_1qto6jt3-0-
|
|
63
|
+
._1qto6jt9-1-0-0::before {
|
|
64
|
+
box-shadow: var(--_1qto6jt3-1-0-0);
|
|
65
65
|
opacity: 0;
|
|
66
66
|
}
|
|
67
|
-
._1qto6jta-0-
|
|
68
|
-
--_1qto6jt0-0-
|
|
69
|
-
--_1qto6jt3-0-
|
|
67
|
+
._1qto6jta-1-0-0 {
|
|
68
|
+
--_1qto6jt0-1-0-0: var(--dt-box-shadows-surface-flat-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
69
|
+
--_1qto6jt3-1-0-0: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
70
70
|
box-shadow: var(--dt-box-shadows-surface-flat-rest, none);
|
|
71
71
|
}
|
|
72
|
-
._1qto6jtb-0-
|
|
73
|
-
--_1qto6jt0-0-
|
|
74
|
-
--_1qto6jt3-0-
|
|
72
|
+
._1qto6jtb-1-0-0 {
|
|
73
|
+
--_1qto6jt0-1-0-0: var(--dt-box-shadows-surface-raised-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
74
|
+
--_1qto6jt3-1-0-0: var(--dt-box-shadows-surface-raised-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
|
|
75
75
|
box-shadow: var(--dt-box-shadows-surface-raised-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
76
76
|
}
|
|
77
|
-
._1qto6jtc-0-
|
|
78
|
-
--_1qto6jt0-0-
|
|
79
|
-
--_1qto6jt3-0-
|
|
77
|
+
._1qto6jtc-1-0-0 {
|
|
78
|
+
--_1qto6jt0-1-0-0: var(--dt-box-shadows-surface-floating-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
79
|
+
--_1qto6jt3-1-0-0: var(--dt-box-shadows-surface-floating-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 6px 14px -2px #2d2e4e3d);
|
|
80
80
|
box-shadow: var(--dt-box-shadows-surface-floating-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
|
|
81
81
|
}
|
|
82
|
-
._1qto6jtd-0-
|
|
83
|
-
--_1qto6jt1-0-
|
|
84
|
-
--_1qto6jt2-0-
|
|
82
|
+
._1qto6jtd-1-0-0 {
|
|
83
|
+
--_1qto6jt1-1-0-0: 1;
|
|
84
|
+
--_1qto6jt2-1-0-0: grab;
|
|
85
85
|
}
|
|
86
86
|
button.strato-surface:not(:disabled), a.strato-surface:not(:disabled) {
|
|
87
87
|
cursor: pointer;
|
|
@@ -24,5 +24,5 @@ module.exports = __toCommonJS(Surface_css_exports);
|
|
|
24
24
|
var import_colorUtils_css_ts_vanilla = require("../../styles/colorUtils.css");
|
|
25
25
|
var import_Surface_css_ts_vanilla = require("./Surface.css");
|
|
26
26
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
27
|
-
var pseudoElementCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1qto6jt9-0-
|
|
28
|
-
var surfaceCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1qto6jt6-0-
|
|
27
|
+
var pseudoElementCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1qto6jt9-1-0-0", variantClassNames: { elevation: { flat: "_1qto6jta-1-0-0", raised: "_1qto6jtb-1-0-0", floating: "_1qto6jtc-1-0-0" }, dragged: { true: "_1qto6jtd-1-0-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
28
|
+
var surfaceCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1qto6jt6-1-0-0", variantClassNames: { selected: { true: "_1qto6jt7-1-0-0", false: "_1qto6jt8-1-0-0" } }, defaultVariants: {}, compoundVariants: [] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/strato-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"lang": "lang/uncompiled",
|
|
@@ -60,21 +60,12 @@
|
|
|
60
60
|
"browser": "./esm/typography/index.js",
|
|
61
61
|
"module": "./esm/typography/index.js",
|
|
62
62
|
"import": "./esm/typography/index.js"
|
|
63
|
-
},
|
|
64
|
-
"./testing": {
|
|
65
|
-
"types": "./testing/index.d.ts",
|
|
66
|
-
"require": "./testing/index.js"
|
|
67
|
-
},
|
|
68
|
-
"./testing/jest": {
|
|
69
|
-
"types": "./testing/jest/index.d.ts",
|
|
70
|
-
"require": "./testing/jest/index.js"
|
|
71
63
|
}
|
|
72
64
|
},
|
|
73
65
|
"dependencies": {
|
|
74
66
|
"@dynatrace-sdk/units": "0.18.3",
|
|
75
67
|
"@dynatrace/devkit": "^0.3.2",
|
|
76
68
|
"@formatjs/icu-messageformat-parser": "^2.7.8",
|
|
77
|
-
"@jest/globals": "^29.7.0",
|
|
78
69
|
"@vanilla-extract/css": "^1.15.5",
|
|
79
70
|
"@vanilla-extract/dynamic": "^2.1.0",
|
|
80
71
|
"@vanilla-extract/recipes": "^0.5.5",
|
|
@@ -85,26 +76,16 @@
|
|
|
85
76
|
"wicg-inert": "^3.1.2"
|
|
86
77
|
},
|
|
87
78
|
"peerDependencies": {
|
|
88
|
-
"@dynatrace-sdk/app-environment": "^1.
|
|
89
|
-
"@dynatrace-sdk/error-handlers": "^1.
|
|
90
|
-
"@dynatrace-sdk/navigation": "^1.
|
|
91
|
-
"@dynatrace-sdk/user-preferences": "^1.1.
|
|
92
|
-
"@testing-library/react": "^14.0.0 || ^15.0.0",
|
|
93
|
-
"@testing-library/user-event": "^14.0.0",
|
|
79
|
+
"@dynatrace-sdk/app-environment": "^1.1.0",
|
|
80
|
+
"@dynatrace-sdk/error-handlers": "^1.3.1",
|
|
81
|
+
"@dynatrace-sdk/navigation": "^1.3.0",
|
|
82
|
+
"@dynatrace-sdk/user-preferences": "^1.1.1",
|
|
94
83
|
"react": "^18.0.0",
|
|
95
84
|
"react-dom": "^18.0.0",
|
|
96
85
|
"react-intl": "^6.0.8",
|
|
97
86
|
"react-is": "^18.0.0",
|
|
98
|
-
"@dynatrace/strato-design-tokens": "
|
|
99
|
-
"@dynatrace/strato-icons": "
|
|
100
|
-
},
|
|
101
|
-
"peerDependenciesMeta": {
|
|
102
|
-
"@testing-library/react": {
|
|
103
|
-
"optional": true
|
|
104
|
-
},
|
|
105
|
-
"@testing-library/user-event": {
|
|
106
|
-
"optional": true
|
|
107
|
-
}
|
|
87
|
+
"@dynatrace/strato-design-tokens": "^1.0.0",
|
|
88
|
+
"@dynatrace/strato-icons": "^1.0.0"
|
|
108
89
|
},
|
|
109
90
|
"sideEffects": [
|
|
110
91
|
"./core/components/app-root/AppRoot.css",
|
|
@@ -113,6 +94,14 @@
|
|
|
113
94
|
"./esm/core/components/app-root/AppRoot.sty.js"
|
|
114
95
|
],
|
|
115
96
|
"dt": {
|
|
97
|
+
"breakingChanges": [
|
|
98
|
+
{
|
|
99
|
+
"title": "1.0.0 Breaking Changes",
|
|
100
|
+
"version": "1.0.0",
|
|
101
|
+
"description": "**General**\n- Removed deprecated testing subpackage. Please use the `@dynatrace/strato-components-testing` package now. (APPDEV-9460)\n\nIn the new package we are no longer re-exporting parts of the `@testing-library` package. This means you'll have to import functions like `screen`, `userEvent`, `act`, `waitFor` etc directly from `@testing-library` and its subpackages.\n\nThe `render` function is still exported in the testing package, as it makes testing strato components easier.\n\nFor more information on how to setup and use `@dynatrace/strato-components-testing` please look into package's readme.\n\n**Core**\n- `roleVariants` and `RoleVariantType` are now removed, as they are no longer used. (APPDEV-11235)\n\n**ProgressBar**\n- Removed the `variant` prop, as the color and variant are now derived from the container. The color can still be overwritten with the `color` prop.(APPDEV-11668)\n\n**ProgressCircle**\n- Removed the `variant` prop, as the color and variant are now derived from the container. The color can still be overwritten with the `color` prop.(APPDEV-11668)",
|
|
102
|
+
"linkToGuide": "https://developer.dynatrace.com/release-notes/design-system/components-preview-changelog/#100"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
116
105
|
"migrations": []
|
|
117
106
|
}
|
|
118
107
|
}
|
package/styles/colorUtils.css
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
._17bwkb04-0-
|
|
2
|
-
--_17bwkb00-0-
|
|
3
|
-
--_17bwkb01-0-
|
|
4
|
-
--_17bwkb02-0-
|
|
1
|
+
._17bwkb04-1-0-0 {
|
|
2
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-critical-default, #b80031);
|
|
3
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-critical-default, #b80031);
|
|
4
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
5
5
|
}
|
|
6
|
-
._17bwkb05-0-
|
|
7
|
-
--_17bwkb00-0-
|
|
8
|
-
--_17bwkb01-0-
|
|
9
|
-
--_17bwkb02-0-
|
|
6
|
+
._17bwkb05-1-0-0 {
|
|
7
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
8
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-neutral-default, #2b2a58);
|
|
9
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
10
10
|
}
|
|
11
|
-
._17bwkb06-0-
|
|
12
|
-
--_17bwkb00-0-
|
|
13
|
-
--_17bwkb01-0-
|
|
14
|
-
--_17bwkb02-0-
|
|
11
|
+
._17bwkb06-1-0-0 {
|
|
12
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-primary-default, #454cc9);
|
|
13
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-primary-default, #454cc9);
|
|
14
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
15
15
|
}
|
|
16
|
-
._17bwkb07-0-
|
|
17
|
-
--_17bwkb00-0-
|
|
18
|
-
--_17bwkb01-0-
|
|
19
|
-
--_17bwkb02-0-
|
|
16
|
+
._17bwkb07-1-0-0 {
|
|
17
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-success-default, #2c6360);
|
|
18
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-success-default, #2c6360);
|
|
19
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-success-default, #cad6d7);
|
|
20
20
|
}
|
|
21
|
-
._17bwkb08-0-
|
|
22
|
-
--_17bwkb00-0-
|
|
23
|
-
--_17bwkb01-0-
|
|
24
|
-
--_17bwkb02-0-
|
|
21
|
+
._17bwkb08-1-0-0 {
|
|
22
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-warning-default, #805100);
|
|
23
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-warning-default, #805100);
|
|
24
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
25
25
|
}
|
|
26
|
-
._17bwkb0d-0-
|
|
27
|
-
--_17bwkb00-0-
|
|
28
|
-
--_17bwkb01-0-
|
|
29
|
-
--_17bwkb02-0-
|
|
26
|
+
._17bwkb0d-1-0-0 {
|
|
27
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
|
|
28
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
|
|
29
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-primary-accent, #454cc9);
|
|
30
30
|
}
|
|
31
|
-
._17bwkb0e-0-
|
|
32
|
-
--_17bwkb00-0-
|
|
33
|
-
--_17bwkb01-0-
|
|
34
|
-
--_17bwkb02-0-
|
|
31
|
+
._17bwkb0e-1-0-0 {
|
|
32
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
|
|
33
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
|
|
34
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-success-accent, #2c6360);
|
|
35
35
|
}
|
|
36
|
-
._17bwkb0f-0-
|
|
37
|
-
--_17bwkb00-0-
|
|
38
|
-
--_17bwkb01-0-
|
|
39
|
-
--_17bwkb02-0-
|
|
36
|
+
._17bwkb0f-1-0-0 {
|
|
37
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-warning-on-accent-default, #272025);
|
|
38
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-warning-on-accent-default, #272025);
|
|
39
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-warning-accent, #805100);
|
|
40
40
|
}
|
|
41
|
-
._17bwkb0g-0-
|
|
42
|
-
--_17bwkb00-0-
|
|
43
|
-
--_17bwkb01-0-
|
|
44
|
-
--_17bwkb02-0-
|
|
41
|
+
._17bwkb0g-1-0-0 {
|
|
42
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
|
|
43
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
|
|
44
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-critical-accent, #b80031);
|
|
45
45
|
}
|
|
46
|
-
._17bwkb0h-0-
|
|
47
|
-
--_17bwkb00-0-
|
|
48
|
-
--_17bwkb01-0-
|
|
49
|
-
--_17bwkb02-0-
|
|
46
|
+
._17bwkb0h-1-0-0 {
|
|
47
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
48
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
|
|
49
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-neutral-accent, #545587);
|
|
50
50
|
}
|
|
51
|
-
._17bwkb0i-0-
|
|
52
|
-
--_17bwkb00-0-
|
|
53
|
-
--_17bwkb01-0-
|
|
54
|
-
--_17bwkb02-0-
|
|
51
|
+
._17bwkb0i-1-0-0 {
|
|
52
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-primary-disabled, #54558780);
|
|
53
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-primary-disabled, #54558780);
|
|
54
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-primary-disabled, #d2d3e180);
|
|
55
55
|
}
|
|
56
|
-
._17bwkb0j-0-
|
|
57
|
-
--_17bwkb00-0-
|
|
58
|
-
--_17bwkb01-0-
|
|
59
|
-
--_17bwkb02-0-
|
|
56
|
+
._17bwkb0j-1-0-0 {
|
|
57
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-success-disabled, #54558780);
|
|
58
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-success-disabled, #54558780);
|
|
59
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-success-disabled, #d2d3e180);
|
|
60
60
|
}
|
|
61
|
-
._17bwkb0k-0-
|
|
62
|
-
--_17bwkb00-0-
|
|
63
|
-
--_17bwkb01-0-
|
|
64
|
-
--_17bwkb02-0-
|
|
61
|
+
._17bwkb0k-1-0-0 {
|
|
62
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-warning-disabled, #54558780);
|
|
63
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-warning-disabled, #54558780);
|
|
64
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-warning-disabled, #d2d3e180);
|
|
65
65
|
}
|
|
66
|
-
._17bwkb0l-0-
|
|
67
|
-
--_17bwkb00-0-
|
|
68
|
-
--_17bwkb01-0-
|
|
69
|
-
--_17bwkb02-0-
|
|
66
|
+
._17bwkb0l-1-0-0 {
|
|
67
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-critical-disabled, #54558780);
|
|
68
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-critical-disabled, #54558780);
|
|
69
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-critical-disabled, #d2d3e180);
|
|
70
70
|
}
|
|
71
|
-
._17bwkb0m-0-
|
|
72
|
-
--_17bwkb00-0-
|
|
73
|
-
--_17bwkb01-0-
|
|
74
|
-
--_17bwkb02-0-
|
|
71
|
+
._17bwkb0m-1-0-0 {
|
|
72
|
+
--_17bwkb00-1-0-0: var(--dt-colors-text-neutral-disabled, #54558780);
|
|
73
|
+
--_17bwkb01-1-0-0: var(--dt-colors-icon-neutral-disabled, #54558780);
|
|
74
|
+
--_17bwkb02-1-0-0: var(--dt-colors-border-neutral-disabled, #d2d3e180);
|
|
75
75
|
}
|
package/styles/colorUtils.sty.js
CHANGED
|
@@ -23,5 +23,5 @@ __export(colorUtils_css_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(colorUtils_css_exports);
|
|
24
24
|
var import_colorUtils_css_ts_vanilla = require("./colorUtils.css");
|
|
25
25
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
-
var colorUtilsCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_17bwkb03-0-
|
|
27
|
-
var colorUtilsVars = { text: "var(--_17bwkb00-0-
|
|
26
|
+
var colorUtilsCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_17bwkb03-1-0-0", variantClassNames: { color: { critical: "_17bwkb04-1-0-0", neutral: "_17bwkb05-1-0-0", primary: "_17bwkb06-1-0-0", success: "_17bwkb07-1-0-0", warning: "_17bwkb08-1-0-0" }, variant: { "default": "_17bwkb09-1-0-0", accent: "_17bwkb0a-1-0-0" }, disabled: { true: "_17bwkb0b-1-0-0", false: "_17bwkb0c-1-0-0" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_17bwkb0d-1-0-0"], [{ color: "success", variant: "accent" }, "_17bwkb0e-1-0-0"], [{ color: "warning", variant: "accent" }, "_17bwkb0f-1-0-0"], [{ color: "critical", variant: "accent" }, "_17bwkb0g-1-0-0"], [{ color: "neutral", variant: "accent" }, "_17bwkb0h-1-0-0"], [{ color: "primary", disabled: true }, "_17bwkb0i-1-0-0"], [{ color: "success", disabled: true }, "_17bwkb0j-1-0-0"], [{ color: "warning", disabled: true }, "_17bwkb0k-1-0-0"], [{ color: "critical", disabled: true }, "_17bwkb0l-1-0-0"], [{ color: "neutral", disabled: true }, "_17bwkb0m-1-0-0"]] });
|
|
27
|
+
var colorUtilsVars = { text: "var(--_17bwkb00-1-0-0)", icon: "var(--_17bwkb01-1-0-0)", borderColor: "var(--_17bwkb02-1-0-0)" };
|