@envive-ai/react-toolkit-v3 0.3.32 → 0.3.34
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/dist/AnimatedText/AnimatedText.d.cts +3 -3
- package/dist/AnimatedText/AnimatedText.d.ts +3 -3
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.cjs +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.js +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.cjs +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.js +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.cjs +166 -61
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.js +166 -61
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.cjs +31 -16
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.js +31 -16
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/components/Badge.cjs +1 -1
- package/dist/Carousel/components/Badge.js +1 -1
- package/dist/Carousel/components/Container.cjs +1 -1
- package/dist/Carousel/components/Container.js +1 -1
- package/dist/ChatFooter/ChatFooter.cjs +1 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.js +1 -1
- package/dist/ChatFooter/components/Layout.cjs +1 -1
- package/dist/ChatFooter/components/Layout.js +1 -1
- package/dist/ChatFooter/components/index.d.cts +5 -5
- package/dist/ChatFooter/components/index.d.ts +5 -5
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatHeader/hooks/useGetHandleProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetHandleProperties.js +1 -1
- package/dist/ChatHeader/hooks/useGetLayoutProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetLayoutProperties.js +1 -1
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/components/Layout.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Layout.js +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +172 -172
- package/dist/Container/Container.d.ts +172 -172
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DesignTokens/components/FontFamily.cjs +1 -1
- package/dist/DesignTokens/components/FontFamily.js +1 -1
- package/dist/DesignTokens/components/FontSize.cjs +1 -1
- package/dist/DesignTokens/components/FontSize.js +1 -1
- package/dist/DesignTokens/components/FontWeight.cjs +5 -4
- package/dist/DesignTokens/components/FontWeight.js +5 -4
- package/dist/DesignTokens/components/LetterSpacing.cjs +16 -2
- package/dist/DesignTokens/components/LetterSpacing.js +16 -2
- package/dist/DesignTokens/components/LineHeight.cjs +14 -9
- package/dist/DesignTokens/components/LineHeight.js +14 -9
- package/dist/DesignTokens/components/Typography.cjs +1 -1
- package/dist/DesignTokens/components/Typography.js +1 -1
- package/dist/Disclaimer/components/Container.cjs +1 -1
- package/dist/Disclaimer/components/Container.js +1 -1
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/components/Image.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/Image.js +1 -1
- package/dist/DocumentRetrievalCard/components/Layout.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/Layout.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.js +1 -1
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingButton/components/Button.cjs +1 -1
- package/dist/FloatingButton/components/Button.js +1 -1
- package/dist/FloatingButton/components/Container.cjs +1 -1
- package/dist/FloatingButton/components/Container.js +1 -1
- package/dist/FloatingButton/components/Wrapper.cjs +1 -1
- package/dist/FloatingButton/components/Wrapper.js +1 -1
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
- package/dist/FloatingChat/components/ChatMessages.js +1 -1
- package/dist/FloatingChat/components/Layout.cjs +1 -1
- package/dist/FloatingChat/components/Layout.js +1 -1
- package/dist/FloatingChat/components/ProductResultsModal.cjs +1 -1
- package/dist/FloatingChat/components/ProductResultsModal.js +1 -1
- package/dist/FloatingChat/components/ResultsGridView.cjs +1 -1
- package/dist/FloatingChat/components/ResultsGridView.js +1 -1
- package/dist/FloatingChat/components/SalesAgentBadgeContent.cjs +4 -4
- package/dist/FloatingChat/components/SalesAgentBadgeContent.js +4 -4
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +6 -3
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +6 -3
- package/dist/FloatingChat/utils/functions.cjs +2 -1
- package/dist/FloatingChat/utils/functions.js +2 -1
- package/dist/Form/Form.cjs +1 -1
- package/dist/Form/Form.js +1 -1
- package/dist/Form/components/Layout.cjs +1 -1
- package/dist/Form/components/Layout.js +1 -1
- package/dist/Form/components/SubmitButtonItem.cjs +1 -1
- package/dist/Form/components/SubmitButtonItem.js +1 -1
- package/dist/Form/components/TextFieldItem.cjs +1 -1
- package/dist/Form/components/TextFieldItem.js +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
- package/dist/FullPageSalesAgent/components/Layout.cjs +1 -1
- package/dist/FullPageSalesAgent/components/Layout.js +1 -1
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +1 -1
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +1 -1
- package/dist/Image/Image.cjs +1 -1
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/Image/Image.js +1 -1
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/ImageGallery/components/Layout.cjs +1 -1
- package/dist/ImageGallery/components/Layout.js +1 -1
- package/dist/ImageGallery/utils/functions.cjs +1 -1
- package/dist/ImageGallery/utils/functions.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/Message/components/Layout.cjs +1 -1
- package/dist/Message/components/Layout.js +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
- package/dist/OrderLookupCard/components/Layout.cjs +1 -1
- package/dist/OrderLookupCard/components/Layout.js +1 -1
- package/dist/OrderLookupCard/components/MoreProductsOverlay.cjs +1 -1
- package/dist/OrderLookupCard/components/MoreProductsOverlay.js +1 -1
- package/dist/OrderLookupCard/components/ProductImageGridItem.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImageGridItem.js +1 -1
- package/dist/OrderLookupCard/components/ProductImageItem.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImageItem.js +1 -1
- package/dist/OrderLookupCard/components/ProductImagesGrid.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImagesGrid.js +1 -1
- package/dist/OrderLookupCard/components/StatusLabel.cjs +1 -1
- package/dist/OrderLookupCard/components/StatusLabel.js +1 -1
- package/dist/OrderLookupCard/components/TrackOrderLink.cjs +1 -1
- package/dist/OrderLookupCard/components/TrackOrderLink.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +14 -8
- package/dist/ProductCard/ProductCard.d.cts +3 -2
- package/dist/ProductCard/ProductCard.d.ts +3 -2
- package/dist/ProductCard/ProductCard.js +10 -4
- package/dist/ProductCard/components/Header.cjs +7 -5
- package/dist/ProductCard/components/Header.js +7 -5
- package/dist/ProductCard/components/Poster.cjs +3 -2
- package/dist/ProductCard/components/Poster.js +3 -2
- package/dist/ProductCard/hooks/useGetPosterProperties.cjs +5 -3
- package/dist/ProductCard/hooks/useGetPosterProperties.js +6 -3
- package/dist/ProductCard/index.cjs +3 -1
- package/dist/ProductCard/index.d.cts +2 -2
- package/dist/ProductCard/index.d.ts +2 -2
- package/dist/ProductCard/index.js +2 -1
- package/dist/ProductCard/types/index.cjs +10 -0
- package/dist/ProductCard/types/index.d.cts +13 -3
- package/dist/ProductCard/types/index.d.ts +13 -3
- package/dist/ProductCard/types/index.js +9 -0
- package/dist/PromptButton/PromptButton.cjs +1 -1
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButton/PromptButton.js +1 -1
- package/dist/PromptButton/components/Layout.cjs +1 -1
- package/dist/PromptButton/components/Layout.js +1 -1
- package/dist/PromptButton/components/Loading.cjs +1 -1
- package/dist/PromptButton/components/Loading.js +1 -1
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Layout.js +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Skeleton.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Skeleton.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.cjs +1 -1
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +1 -1
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/Container.cjs +1 -1
- package/dist/ReviewCard/components/Container.js +1 -1
- package/dist/ReviewCard/components/Rating.cjs +1 -1
- package/dist/ReviewCard/components/Rating.js +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
- package/dist/ReviewCard/components/index.d.cts +4 -4
- package/dist/ReviewCard/components/index.d.ts +6 -6
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
- package/dist/SalesAgentProductCard/components/Container.cjs +1 -1
- package/dist/SalesAgentProductCard/components/Container.js +1 -1
- package/dist/SalesAgentProductCard/components/ProductImage.cjs +1 -1
- package/dist/SalesAgentProductCard/components/ProductImage.js +1 -1
- package/dist/SalesAgentProductCard/components/ProductName.cjs +1 -1
- package/dist/SalesAgentProductCard/components/ProductName.js +1 -1
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/components/Headline.cjs +1 -1
- package/dist/SocialProof/components/Headline.js +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
- package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
- package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
- package/dist/Stack/Stack.d.cts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/TextField/TextField.cjs +1 -1
- package/dist/TextField/TextField.js +1 -1
- package/dist/TextField/components/Input.cjs +1 -1
- package/dist/TextField/components/Input.js +1 -1
- package/dist/TextField/components/Layout.cjs +1 -1
- package/dist/TextField/components/Layout.js +1 -1
- package/dist/TextField/components/SendIcon.cjs +1 -1
- package/dist/TextField/components/SendIcon.js +1 -1
- package/dist/Title/Title.cjs +1 -1
- package/dist/Title/Title.js +1 -1
- package/dist/Title/components/Layout.cjs +1 -1
- package/dist/Title/components/Layout.js +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
- package/dist/Tokens/index.cjs +2 -2
- package/dist/Tokens/index.js +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WelcomeMessage/components/Container.cjs +1 -1
- package/dist/WelcomeMessage/components/Container.js +1 -1
- package/dist/WidgetTextField/WidgetTextField.cjs +3 -2
- package/dist/WidgetTextField/WidgetTextField.d.cts +3 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +3 -2
- package/dist/WidgetTextField/WidgetTextField.js +3 -2
- package/dist/WidgetTextField/components/Container.cjs +4 -3
- package/dist/WidgetTextField/components/Container.js +4 -3
- package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
- package/dist/WidgetTextField/components/Skeleton.js +1 -1
- package/dist/WidgetTextField/hooks/useGetContainerProperties.cjs +7 -3
- package/dist/WidgetTextField/hooks/useGetContainerProperties.js +7 -3
- package/dist/WidgetTextField/types/types.d.cts +2 -0
- package/dist/WidgetTextField/types/types.d.ts +2 -0
- package/dist/WidgetWrapper/WidgetWrapper.cjs +1 -1
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.js +1 -1
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
- package/dist/packages/components-v3/tokens/typography/fontWeight.cjs +12 -9
- package/dist/packages/components-v3/tokens/typography/fontWeight.d.ts +4 -3
- package/dist/packages/components-v3/tokens/typography/fontWeight.js +12 -9
- package/dist/packages/components-v3/tokens/typography/letterSpacing.cjs +39 -6
- package/dist/packages/components-v3/tokens/typography/letterSpacing.d.ts +13 -2
- package/dist/packages/components-v3/tokens/typography/letterSpacing.js +39 -6
- package/dist/packages/components-v3/tokens/typography/lineHeight.cjs +39 -30
- package/dist/packages/components-v3/tokens/typography/lineHeight.d.ts +15 -12
- package/dist/packages/components-v3/tokens/typography/lineHeight.js +39 -30
- package/dist/packages/components-v3/tokens/typography/typography.cjs +63 -63
- package/dist/packages/components-v3/tokens/typography/typography.js +63 -63
- package/dist/styles.css +1 -1
- package/dist/tokens/typography/fontWeight.d.cts +4 -3
- package/dist/tokens/typography/letterSpacing.d.cts +13 -2
- package/dist/tokens/typography/lineHeight.d.cts +15 -12
- package/dist/utils/resolveTheme.cjs +1 -1
- package/dist/utils/resolveTheme.js +1 -1
- package/package.json +1 -1
- package/src/components/CSSVariablesEditor/hooks/useGetDefaultCssVariables.ts +165 -60
- package/src/components/CSSVariablesEditor/hooks/useHandleUpdateCssVars.ts +30 -15
- package/src/components/DesignTokens/components/FontWeight.tsx +4 -3
- package/src/components/DesignTokens/components/LetterSpacing.tsx +13 -1
- package/src/components/DesignTokens/components/LineHeight.tsx +13 -8
- package/src/components/FloatingChat/components/SalesAgentBadgeContent.tsx +8 -2
- package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +5 -2
- package/src/components/FloatingChat/utils/functions.ts +2 -3
- package/src/components/ProductCard/ProductCard.tsx +8 -4
- package/src/components/ProductCard/components/Header.tsx +11 -5
- package/src/components/ProductCard/components/Poster.tsx +12 -3
- package/src/components/ProductCard/hooks/useGetPosterProperties.ts +15 -3
- package/src/components/ProductCard/index.ts +1 -0
- package/src/components/ProductCard/types/index.ts +13 -1
- package/src/components/WidgetTextField/WidgetTextField.tsx +2 -0
- package/src/components/WidgetTextField/components/Container.tsx +3 -0
- package/src/components/WidgetTextField/hooks/useGetContainerProperties.ts +8 -2
- package/src/components/WidgetTextField/types/types.ts +2 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Theme, ThemeCSSVar } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
1
|
import { ColorNames } from "../../packages/components-v3/src/models/colorsConfig.js";
|
|
3
2
|
import { ButtonColorsVars, ColorsNamesVars } from "../../packages/components-v3/tokens/colors/colors.js";
|
|
4
3
|
import { FontSizeCSSVar, fontSize } from "../../packages/components-v3/tokens/typography/fontSize.js";
|
|
@@ -8,6 +7,7 @@ import { LetterSpacingCSSVar, letterSpacing } from "../../packages/components-v3
|
|
|
8
7
|
import { FontFamily, FontFamilyCSSVar } from "../../packages/components-v3/tokens/typography/fontFamily.js";
|
|
9
8
|
import { BorderRadiusCSSVar } from "../../packages/components-v3/tokens/radius/radius.js";
|
|
10
9
|
import { AspectRatio, AspectRatioCSSVar } from "../../packages/components-v3/tokens/aspectRatio/aspectRatio.js";
|
|
10
|
+
import { Theme, ThemeCSSVar } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
11
11
|
import { useGetCssVariablesOptions } from "./useGetCssVariablesOptions.js";
|
|
12
12
|
import { useMemo } from "react";
|
|
13
13
|
|
|
@@ -259,108 +259,213 @@ const useGetDefaultCssVariables = ({ defaultMerchantColors }) => {
|
|
|
259
259
|
category: "Typography"
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
|
-
key: "font-weight-
|
|
263
|
-
name: "Font Weight
|
|
264
|
-
variable: FontWeightCSSVar.
|
|
265
|
-
defaultValue: fontWeight.
|
|
262
|
+
key: "font-weight-title",
|
|
263
|
+
name: "Font Weight Title",
|
|
264
|
+
variable: FontWeightCSSVar.Title,
|
|
265
|
+
defaultValue: fontWeight.title,
|
|
266
|
+
category: "Typography"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
key: "font-weight-header",
|
|
270
|
+
name: "Font Weight Header",
|
|
271
|
+
variable: FontWeightCSSVar.Header,
|
|
272
|
+
defaultValue: fontWeight.header,
|
|
273
|
+
category: "Typography"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
key: "font-weight-body-emphasis",
|
|
277
|
+
name: "Font Weight Body Emphasis",
|
|
278
|
+
variable: FontWeightCSSVar.BodyEmphasis,
|
|
279
|
+
defaultValue: fontWeight.body_emphasis,
|
|
280
|
+
category: "Typography"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
key: "font-weight-body-standard",
|
|
284
|
+
name: "Font Weight Body Standard",
|
|
285
|
+
variable: FontWeightCSSVar.BodyStandard,
|
|
286
|
+
defaultValue: fontWeight.body_standard,
|
|
287
|
+
category: "Typography"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
key: "line-height-t1",
|
|
291
|
+
name: "Line Height T1",
|
|
292
|
+
variable: LineHeightCSSVar.T1,
|
|
293
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.t1),
|
|
294
|
+
category: "Typography"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
key: "line-height-t2",
|
|
298
|
+
name: "Line Height T2",
|
|
299
|
+
variable: LineHeightCSSVar.T2,
|
|
300
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.t2),
|
|
301
|
+
category: "Typography"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
key: "line-height-t3",
|
|
305
|
+
name: "Line Height T3",
|
|
306
|
+
variable: LineHeightCSSVar.T3,
|
|
307
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.t3),
|
|
308
|
+
category: "Typography"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
key: "line-height-h1",
|
|
312
|
+
name: "Line Height H1",
|
|
313
|
+
variable: LineHeightCSSVar.H1,
|
|
314
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.h1),
|
|
315
|
+
category: "Typography"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
key: "line-height-h2",
|
|
319
|
+
name: "Line Height H2",
|
|
320
|
+
variable: LineHeightCSSVar.H2,
|
|
321
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.h2),
|
|
322
|
+
category: "Typography"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
key: "line-height-h3",
|
|
326
|
+
name: "Line Height H3",
|
|
327
|
+
variable: LineHeightCSSVar.H3,
|
|
328
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.h3),
|
|
329
|
+
category: "Typography"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
key: "line-height-b1",
|
|
333
|
+
name: "Line Height B1",
|
|
334
|
+
variable: LineHeightCSSVar.B1,
|
|
335
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.b1),
|
|
336
|
+
category: "Typography"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
key: "line-height-b2",
|
|
340
|
+
name: "Line Height B2",
|
|
341
|
+
variable: LineHeightCSSVar.B2,
|
|
342
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.b2),
|
|
343
|
+
category: "Typography"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
key: "line-height-b3",
|
|
347
|
+
name: "Line Height B3",
|
|
348
|
+
variable: LineHeightCSSVar.B3,
|
|
349
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.b3),
|
|
350
|
+
category: "Typography"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
key: "line-height-b4",
|
|
354
|
+
name: "Line Height B4",
|
|
355
|
+
variable: LineHeightCSSVar.B4,
|
|
356
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.b4),
|
|
357
|
+
category: "Typography"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
key: "line-height-b5",
|
|
361
|
+
name: "Line Height B5",
|
|
362
|
+
variable: LineHeightCSSVar.B5,
|
|
363
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.b5),
|
|
364
|
+
category: "Typography"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
key: "line-height-l1",
|
|
368
|
+
name: "Line Height L1",
|
|
369
|
+
variable: LineHeightCSSVar.L1,
|
|
370
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.l1),
|
|
266
371
|
category: "Typography"
|
|
267
372
|
},
|
|
268
373
|
{
|
|
269
|
-
key: "
|
|
270
|
-
name: "
|
|
271
|
-
variable:
|
|
272
|
-
defaultValue:
|
|
374
|
+
key: "line-height-l2",
|
|
375
|
+
name: "Line Height L2",
|
|
376
|
+
variable: LineHeightCSSVar.L2,
|
|
377
|
+
defaultValue: convertLineHeightToPercentage(lineHeight.l2),
|
|
273
378
|
category: "Typography"
|
|
274
379
|
},
|
|
275
380
|
{
|
|
276
|
-
key: "
|
|
277
|
-
name: "
|
|
278
|
-
variable:
|
|
279
|
-
defaultValue:
|
|
381
|
+
key: "letter-spacing-t1",
|
|
382
|
+
name: "Letter Spacing T1",
|
|
383
|
+
variable: LetterSpacingCSSVar.T1,
|
|
384
|
+
defaultValue: letterSpacing.t1,
|
|
280
385
|
category: "Typography"
|
|
281
386
|
},
|
|
282
387
|
{
|
|
283
|
-
key: "
|
|
284
|
-
name: "
|
|
285
|
-
variable:
|
|
286
|
-
defaultValue:
|
|
388
|
+
key: "letter-spacing-t2",
|
|
389
|
+
name: "Letter Spacing T2",
|
|
390
|
+
variable: LetterSpacingCSSVar.T2,
|
|
391
|
+
defaultValue: letterSpacing.t2,
|
|
287
392
|
category: "Typography"
|
|
288
393
|
},
|
|
289
394
|
{
|
|
290
|
-
key: "
|
|
291
|
-
name: "
|
|
292
|
-
variable:
|
|
293
|
-
defaultValue:
|
|
395
|
+
key: "letter-spacing-t3",
|
|
396
|
+
name: "Letter Spacing T3",
|
|
397
|
+
variable: LetterSpacingCSSVar.T3,
|
|
398
|
+
defaultValue: letterSpacing.t3,
|
|
294
399
|
category: "Typography"
|
|
295
400
|
},
|
|
296
401
|
{
|
|
297
|
-
key: "
|
|
298
|
-
name: "
|
|
299
|
-
variable:
|
|
300
|
-
defaultValue:
|
|
402
|
+
key: "letter-spacing-h1",
|
|
403
|
+
name: "Letter Spacing H1",
|
|
404
|
+
variable: LetterSpacingCSSVar.H1,
|
|
405
|
+
defaultValue: letterSpacing.h1,
|
|
301
406
|
category: "Typography"
|
|
302
407
|
},
|
|
303
408
|
{
|
|
304
|
-
key: "
|
|
305
|
-
name: "
|
|
306
|
-
variable:
|
|
307
|
-
defaultValue:
|
|
409
|
+
key: "letter-spacing-h2",
|
|
410
|
+
name: "Letter Spacing H2",
|
|
411
|
+
variable: LetterSpacingCSSVar.H2,
|
|
412
|
+
defaultValue: letterSpacing.h2,
|
|
308
413
|
category: "Typography"
|
|
309
414
|
},
|
|
310
415
|
{
|
|
311
|
-
key: "
|
|
312
|
-
name: "
|
|
313
|
-
variable:
|
|
314
|
-
defaultValue:
|
|
416
|
+
key: "letter-spacing-h3",
|
|
417
|
+
name: "Letter Spacing H3",
|
|
418
|
+
variable: LetterSpacingCSSVar.H3,
|
|
419
|
+
defaultValue: letterSpacing.h3,
|
|
315
420
|
category: "Typography"
|
|
316
421
|
},
|
|
317
422
|
{
|
|
318
|
-
key: "
|
|
319
|
-
name: "
|
|
320
|
-
variable:
|
|
321
|
-
defaultValue:
|
|
423
|
+
key: "letter-spacing-b1",
|
|
424
|
+
name: "Letter Spacing B1",
|
|
425
|
+
variable: LetterSpacingCSSVar.B1,
|
|
426
|
+
defaultValue: letterSpacing.b1,
|
|
322
427
|
category: "Typography"
|
|
323
428
|
},
|
|
324
429
|
{
|
|
325
|
-
key: "
|
|
326
|
-
name: "
|
|
327
|
-
variable:
|
|
328
|
-
defaultValue:
|
|
430
|
+
key: "letter-spacing-b2",
|
|
431
|
+
name: "Letter Spacing B2",
|
|
432
|
+
variable: LetterSpacingCSSVar.B2,
|
|
433
|
+
defaultValue: letterSpacing.b2,
|
|
329
434
|
category: "Typography"
|
|
330
435
|
},
|
|
331
436
|
{
|
|
332
|
-
key: "
|
|
333
|
-
name: "
|
|
334
|
-
variable:
|
|
335
|
-
defaultValue:
|
|
437
|
+
key: "letter-spacing-b3",
|
|
438
|
+
name: "Letter Spacing B3",
|
|
439
|
+
variable: LetterSpacingCSSVar.B3,
|
|
440
|
+
defaultValue: letterSpacing.b3,
|
|
336
441
|
category: "Typography"
|
|
337
442
|
},
|
|
338
443
|
{
|
|
339
|
-
key: "
|
|
340
|
-
name: "
|
|
341
|
-
variable:
|
|
342
|
-
defaultValue:
|
|
444
|
+
key: "letter-spacing-b4",
|
|
445
|
+
name: "Letter Spacing B4",
|
|
446
|
+
variable: LetterSpacingCSSVar.B4,
|
|
447
|
+
defaultValue: letterSpacing.b4,
|
|
343
448
|
category: "Typography"
|
|
344
449
|
},
|
|
345
450
|
{
|
|
346
|
-
key: "
|
|
347
|
-
name: "
|
|
348
|
-
variable:
|
|
349
|
-
defaultValue:
|
|
451
|
+
key: "letter-spacing-b5",
|
|
452
|
+
name: "Letter Spacing B5",
|
|
453
|
+
variable: LetterSpacingCSSVar.B5,
|
|
454
|
+
defaultValue: letterSpacing.b5,
|
|
350
455
|
category: "Typography"
|
|
351
456
|
},
|
|
352
457
|
{
|
|
353
|
-
key: "letter-spacing-
|
|
354
|
-
name: "Letter Spacing
|
|
355
|
-
variable: LetterSpacingCSSVar.
|
|
356
|
-
defaultValue: letterSpacing
|
|
458
|
+
key: "letter-spacing-l1",
|
|
459
|
+
name: "Letter Spacing L1",
|
|
460
|
+
variable: LetterSpacingCSSVar.L1,
|
|
461
|
+
defaultValue: letterSpacing.l1,
|
|
357
462
|
category: "Typography"
|
|
358
463
|
},
|
|
359
464
|
{
|
|
360
|
-
key: "letter-spacing-
|
|
361
|
-
name: "Letter Spacing
|
|
362
|
-
variable: LetterSpacingCSSVar.
|
|
363
|
-
defaultValue: letterSpacing
|
|
465
|
+
key: "letter-spacing-l2",
|
|
466
|
+
name: "Letter Spacing L2",
|
|
467
|
+
variable: LetterSpacingCSSVar.L2,
|
|
468
|
+
defaultValue: letterSpacing.l2,
|
|
364
469
|
category: "Typography"
|
|
365
470
|
},
|
|
366
471
|
{
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
2
1
|
const require_colors = require('../../packages/components-v3/tokens/colors/colors.cjs');
|
|
3
2
|
const require_fontSize = require('../../packages/components-v3/tokens/typography/fontSize.cjs');
|
|
4
3
|
const require_fontWeight = require('../../packages/components-v3/tokens/typography/fontWeight.cjs');
|
|
@@ -7,6 +6,7 @@ const require_letterSpacing = require('../../packages/components-v3/tokens/typog
|
|
|
7
6
|
const require_fontFamily = require('../../packages/components-v3/tokens/typography/fontFamily.cjs');
|
|
8
7
|
const require_radius = require('../../packages/components-v3/tokens/radius/radius.cjs');
|
|
9
8
|
const require_aspectRatio = require('../../packages/components-v3/tokens/aspectRatio/aspectRatio.cjs');
|
|
9
|
+
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
10
10
|
|
|
11
11
|
//#region src/components/CSSVariablesEditor/hooks/useHandleUpdateCssVars.ts
|
|
12
12
|
const useHandleUpdateCssVars = () => {
|
|
@@ -28,23 +28,38 @@ const useHandleUpdateCssVars = () => {
|
|
|
28
28
|
--${require_fontSize.FontSizeCSSVar.L1}: ${variables["font-size-l1"]} !important;
|
|
29
29
|
--${require_fontSize.FontSizeCSSVar.L2}: ${variables["font-size-l2"]} !important;
|
|
30
30
|
|
|
31
|
-
--${require_fontWeight.FontWeightCSSVar.
|
|
32
|
-
--${require_fontWeight.FontWeightCSSVar.
|
|
33
|
-
--${require_fontWeight.FontWeightCSSVar.
|
|
31
|
+
--${require_fontWeight.FontWeightCSSVar.Title}: ${variables["font-weight-title"]} !important;
|
|
32
|
+
--${require_fontWeight.FontWeightCSSVar.Header}: ${variables["font-weight-header"]} !important;
|
|
33
|
+
--${require_fontWeight.FontWeightCSSVar.BodyEmphasis}: ${variables["font-weight-body-emphasis"]} !important;
|
|
34
|
+
--${require_fontWeight.FontWeightCSSVar.BodyStandard}: ${variables["font-weight-body-standard"]} !important;
|
|
34
35
|
|
|
35
|
-
--${require_lineHeight.LineHeightCSSVar.
|
|
36
|
-
--${require_lineHeight.LineHeightCSSVar.
|
|
37
|
-
--${require_lineHeight.LineHeightCSSVar.
|
|
38
|
-
--${require_lineHeight.LineHeightCSSVar.
|
|
39
|
-
--${require_lineHeight.LineHeightCSSVar.
|
|
40
|
-
--${require_lineHeight.LineHeightCSSVar.
|
|
41
|
-
--${require_lineHeight.LineHeightCSSVar.
|
|
42
|
-
--${require_lineHeight.LineHeightCSSVar.
|
|
43
|
-
--${require_lineHeight.LineHeightCSSVar.
|
|
44
|
-
--${require_lineHeight.LineHeightCSSVar.
|
|
36
|
+
--${require_lineHeight.LineHeightCSSVar.T1}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-t1"])} !important;
|
|
37
|
+
--${require_lineHeight.LineHeightCSSVar.T2}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-t2"])} !important;
|
|
38
|
+
--${require_lineHeight.LineHeightCSSVar.T3}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-t3"])} !important;
|
|
39
|
+
--${require_lineHeight.LineHeightCSSVar.H1}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-h1"])} !important;
|
|
40
|
+
--${require_lineHeight.LineHeightCSSVar.H2}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-h2"])} !important;
|
|
41
|
+
--${require_lineHeight.LineHeightCSSVar.H3}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-h3"])} !important;
|
|
42
|
+
--${require_lineHeight.LineHeightCSSVar.B1}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-b1"])} !important;
|
|
43
|
+
--${require_lineHeight.LineHeightCSSVar.B2}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-b2"])} !important;
|
|
44
|
+
--${require_lineHeight.LineHeightCSSVar.B3}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-b3"])} !important;
|
|
45
|
+
--${require_lineHeight.LineHeightCSSVar.B4}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-b4"])} !important;
|
|
46
|
+
--${require_lineHeight.LineHeightCSSVar.B5}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-b5"])} !important;
|
|
47
|
+
--${require_lineHeight.LineHeightCSSVar.L1}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-l1"])} !important;
|
|
48
|
+
--${require_lineHeight.LineHeightCSSVar.L2}: ${require_lineHeight.convertPercentageTolineHeight(variables["line-height-l2"])} !important;
|
|
45
49
|
|
|
46
|
-
--${require_letterSpacing.LetterSpacingCSSVar.
|
|
47
|
-
--${require_letterSpacing.LetterSpacingCSSVar.
|
|
50
|
+
--${require_letterSpacing.LetterSpacingCSSVar.T1}: ${variables["letter-spacing-t1"]} !important;
|
|
51
|
+
--${require_letterSpacing.LetterSpacingCSSVar.T2}: ${variables["letter-spacing-t2"]} !important;
|
|
52
|
+
--${require_letterSpacing.LetterSpacingCSSVar.T3}: ${variables["letter-spacing-t3"]} !important;
|
|
53
|
+
--${require_letterSpacing.LetterSpacingCSSVar.H1}: ${variables["letter-spacing-h1"]} !important;
|
|
54
|
+
--${require_letterSpacing.LetterSpacingCSSVar.H2}: ${variables["letter-spacing-h2"]} !important;
|
|
55
|
+
--${require_letterSpacing.LetterSpacingCSSVar.H3}: ${variables["letter-spacing-h3"]} !important;
|
|
56
|
+
--${require_letterSpacing.LetterSpacingCSSVar.B1}: ${variables["letter-spacing-b1"]} !important;
|
|
57
|
+
--${require_letterSpacing.LetterSpacingCSSVar.B2}: ${variables["letter-spacing-b2"]} !important;
|
|
58
|
+
--${require_letterSpacing.LetterSpacingCSSVar.B3}: ${variables["letter-spacing-b3"]} !important;
|
|
59
|
+
--${require_letterSpacing.LetterSpacingCSSVar.B4}: ${variables["letter-spacing-b4"]} !important;
|
|
60
|
+
--${require_letterSpacing.LetterSpacingCSSVar.B5}: ${variables["letter-spacing-b5"]} !important;
|
|
61
|
+
--${require_letterSpacing.LetterSpacingCSSVar.L1}: ${variables["letter-spacing-l1"]} !important;
|
|
62
|
+
--${require_letterSpacing.LetterSpacingCSSVar.L2}: ${variables["letter-spacing-l2"]} !important;
|
|
48
63
|
|
|
49
64
|
--${require_fontFamily.FontFamilyCSSVar.Title}: ${variables["font-family-title"]} !important;
|
|
50
65
|
--${require_fontFamily.FontFamilyCSSVar.Header}: ${variables["font-family-header"]} !important;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ThemeCSSVar } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
1
|
import { ButtonColorsVars, ColorsNamesVars } from "../../packages/components-v3/tokens/colors/colors.js";
|
|
3
2
|
import { FontSizeCSSVar } from "../../packages/components-v3/tokens/typography/fontSize.js";
|
|
4
3
|
import { FontWeightCSSVar } from "../../packages/components-v3/tokens/typography/fontWeight.js";
|
|
@@ -7,6 +6,7 @@ import { LetterSpacingCSSVar } from "../../packages/components-v3/tokens/typogra
|
|
|
7
6
|
import { FontFamilyCSSVar } from "../../packages/components-v3/tokens/typography/fontFamily.js";
|
|
8
7
|
import { BorderRadiusCSSVar } from "../../packages/components-v3/tokens/radius/radius.js";
|
|
9
8
|
import { AspectRatioCSSVar, convertAspectRatioNameToStyle } from "../../packages/components-v3/tokens/aspectRatio/aspectRatio.js";
|
|
9
|
+
import { ThemeCSSVar } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
10
10
|
|
|
11
11
|
//#region src/components/CSSVariablesEditor/hooks/useHandleUpdateCssVars.ts
|
|
12
12
|
const useHandleUpdateCssVars = () => {
|
|
@@ -28,23 +28,38 @@ const useHandleUpdateCssVars = () => {
|
|
|
28
28
|
--${FontSizeCSSVar.L1}: ${variables["font-size-l1"]} !important;
|
|
29
29
|
--${FontSizeCSSVar.L2}: ${variables["font-size-l2"]} !important;
|
|
30
30
|
|
|
31
|
-
--${FontWeightCSSVar.
|
|
32
|
-
--${FontWeightCSSVar.
|
|
33
|
-
--${FontWeightCSSVar.
|
|
31
|
+
--${FontWeightCSSVar.Title}: ${variables["font-weight-title"]} !important;
|
|
32
|
+
--${FontWeightCSSVar.Header}: ${variables["font-weight-header"]} !important;
|
|
33
|
+
--${FontWeightCSSVar.BodyEmphasis}: ${variables["font-weight-body-emphasis"]} !important;
|
|
34
|
+
--${FontWeightCSSVar.BodyStandard}: ${variables["font-weight-body-standard"]} !important;
|
|
34
35
|
|
|
35
|
-
--${LineHeightCSSVar.
|
|
36
|
-
--${LineHeightCSSVar.
|
|
37
|
-
--${LineHeightCSSVar.
|
|
38
|
-
--${LineHeightCSSVar.
|
|
39
|
-
--${LineHeightCSSVar.
|
|
40
|
-
--${LineHeightCSSVar.
|
|
41
|
-
--${LineHeightCSSVar.
|
|
42
|
-
--${LineHeightCSSVar.
|
|
43
|
-
--${LineHeightCSSVar.
|
|
44
|
-
--${LineHeightCSSVar.
|
|
36
|
+
--${LineHeightCSSVar.T1}: ${convertPercentageTolineHeight(variables["line-height-t1"])} !important;
|
|
37
|
+
--${LineHeightCSSVar.T2}: ${convertPercentageTolineHeight(variables["line-height-t2"])} !important;
|
|
38
|
+
--${LineHeightCSSVar.T3}: ${convertPercentageTolineHeight(variables["line-height-t3"])} !important;
|
|
39
|
+
--${LineHeightCSSVar.H1}: ${convertPercentageTolineHeight(variables["line-height-h1"])} !important;
|
|
40
|
+
--${LineHeightCSSVar.H2}: ${convertPercentageTolineHeight(variables["line-height-h2"])} !important;
|
|
41
|
+
--${LineHeightCSSVar.H3}: ${convertPercentageTolineHeight(variables["line-height-h3"])} !important;
|
|
42
|
+
--${LineHeightCSSVar.B1}: ${convertPercentageTolineHeight(variables["line-height-b1"])} !important;
|
|
43
|
+
--${LineHeightCSSVar.B2}: ${convertPercentageTolineHeight(variables["line-height-b2"])} !important;
|
|
44
|
+
--${LineHeightCSSVar.B3}: ${convertPercentageTolineHeight(variables["line-height-b3"])} !important;
|
|
45
|
+
--${LineHeightCSSVar.B4}: ${convertPercentageTolineHeight(variables["line-height-b4"])} !important;
|
|
46
|
+
--${LineHeightCSSVar.B5}: ${convertPercentageTolineHeight(variables["line-height-b5"])} !important;
|
|
47
|
+
--${LineHeightCSSVar.L1}: ${convertPercentageTolineHeight(variables["line-height-l1"])} !important;
|
|
48
|
+
--${LineHeightCSSVar.L2}: ${convertPercentageTolineHeight(variables["line-height-l2"])} !important;
|
|
45
49
|
|
|
46
|
-
--${LetterSpacingCSSVar.
|
|
47
|
-
--${LetterSpacingCSSVar.
|
|
50
|
+
--${LetterSpacingCSSVar.T1}: ${variables["letter-spacing-t1"]} !important;
|
|
51
|
+
--${LetterSpacingCSSVar.T2}: ${variables["letter-spacing-t2"]} !important;
|
|
52
|
+
--${LetterSpacingCSSVar.T3}: ${variables["letter-spacing-t3"]} !important;
|
|
53
|
+
--${LetterSpacingCSSVar.H1}: ${variables["letter-spacing-h1"]} !important;
|
|
54
|
+
--${LetterSpacingCSSVar.H2}: ${variables["letter-spacing-h2"]} !important;
|
|
55
|
+
--${LetterSpacingCSSVar.H3}: ${variables["letter-spacing-h3"]} !important;
|
|
56
|
+
--${LetterSpacingCSSVar.B1}: ${variables["letter-spacing-b1"]} !important;
|
|
57
|
+
--${LetterSpacingCSSVar.B2}: ${variables["letter-spacing-b2"]} !important;
|
|
58
|
+
--${LetterSpacingCSSVar.B3}: ${variables["letter-spacing-b3"]} !important;
|
|
59
|
+
--${LetterSpacingCSSVar.B4}: ${variables["letter-spacing-b4"]} !important;
|
|
60
|
+
--${LetterSpacingCSSVar.B5}: ${variables["letter-spacing-b5"]} !important;
|
|
61
|
+
--${LetterSpacingCSSVar.L1}: ${variables["letter-spacing-l1"]} !important;
|
|
62
|
+
--${LetterSpacingCSSVar.L2}: ${variables["letter-spacing-l2"]} !important;
|
|
48
63
|
|
|
49
64
|
--${FontFamilyCSSVar.Title}: ${variables["font-family-title"]} !important;
|
|
50
65
|
--${FontFamilyCSSVar.Header}: ${variables["font-family-header"]} !important;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CarouselProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Carousel/Carousel.d.ts
|
|
5
5
|
declare const Carousel: ({
|
|
@@ -12,6 +12,6 @@ declare const Carousel: ({
|
|
|
12
12
|
badgeContent,
|
|
13
13
|
theme,
|
|
14
14
|
hideNavigation
|
|
15
|
-
}: CarouselProps) =>
|
|
15
|
+
}: CarouselProps) => react_jsx_runtime30.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { Carousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CarouselProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Carousel/Carousel.d.ts
|
|
5
5
|
declare const Carousel: ({
|
|
@@ -12,6 +12,6 @@ declare const Carousel: ({
|
|
|
12
12
|
badgeContent,
|
|
13
13
|
theme,
|
|
14
14
|
hideNavigation
|
|
15
|
-
}: CarouselProps) =>
|
|
15
|
+
}: CarouselProps) => react_jsx_runtime31.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { Carousel };
|
|
@@ -4,9 +4,9 @@ const require_index = require('../../Typography/types/index.cjs');
|
|
|
4
4
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
5
5
|
require('../../Typography/index.cjs');
|
|
6
6
|
const require_useGetBadgeProperties = require('../hooks/useGetBadgeProperties.cjs');
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
8
|
let classnames = require("classnames");
|
|
8
9
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
|
|
11
11
|
//#region src/components/Carousel/components/Badge.tsx
|
|
12
12
|
const Badge = ({ label, theme }) => {
|
|
@@ -3,8 +3,8 @@ import { TypographyColor, TypographyVariant } from "../../Typography/types/index
|
|
|
3
3
|
import { Typography } from "../../Typography/Typography.js";
|
|
4
4
|
import "../../Typography/index.js";
|
|
5
5
|
import { useGetBadgeProperties } from "../hooks/useGetBadgeProperties.js";
|
|
6
|
-
import classNames from "classnames";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import classNames from "classnames";
|
|
8
8
|
|
|
9
9
|
//#region src/components/Carousel/components/Badge.tsx
|
|
10
10
|
const Badge = ({ label, theme }) => {
|
|
@@ -8,8 +8,8 @@ const require_useCarouselNavigation = require('../hooks/useCarouselNavigation.cj
|
|
|
8
8
|
const require_useCarouselNavigationButtons = require('../hooks/useCarouselNavigationButtons.cjs');
|
|
9
9
|
const require_useCarouselButtons = require('../hooks/useCarouselButtons.cjs');
|
|
10
10
|
let react = require("react");
|
|
11
|
-
let react_indiana_drag_scroll = require("react-indiana-drag-scroll");
|
|
12
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
|
+
let react_indiana_drag_scroll = require("react-indiana-drag-scroll");
|
|
13
13
|
|
|
14
14
|
//#region src/components/Carousel/components/Container.tsx
|
|
15
15
|
const Container$1 = ({ children, className, id, testId, style, next, previous, badge }) => {
|
|
@@ -7,8 +7,8 @@ import { useCarouselNavigation } from "../hooks/useCarouselNavigation.js";
|
|
|
7
7
|
import { useCarouselNavigationButtons } from "../hooks/useCarouselNavigationButtons.js";
|
|
8
8
|
import { useCarouselButtons } from "../hooks/useCarouselButtons.js";
|
|
9
9
|
import { useCallback, useRef } from "react";
|
|
10
|
-
import { useScrollContainer } from "react-indiana-drag-scroll";
|
|
11
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { useScrollContainer } from "react-indiana-drag-scroll";
|
|
12
12
|
|
|
13
13
|
//#region src/components/Carousel/components/Container.tsx
|
|
14
14
|
const Container$1 = ({ children, className, id, testId, style, next, previous, badge }) => {
|
|
@@ -4,9 +4,9 @@ const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
|
4
4
|
require('../Tokens/index.cjs');
|
|
5
5
|
const require_useGetChatScrollProperties = require('./hooks/useGetChatScrollProperties.cjs');
|
|
6
6
|
const require_index = require('./components/index.cjs');
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
8
|
let classnames = require("classnames");
|
|
8
9
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
|
|
11
11
|
//#region src/components/ChatFooter/ChatFooter.tsx
|
|
12
12
|
const ChatFooter = ({ id, testId, className, style, theme = require_theme.Theme.GLOBAL_CUSTOM, promptSuggestions, handleButtonClick, isScrolled, onChange, onSubmit, onFocus, textFieldPlaceholderText, hideEnviveWatermark = false, disabled = false, isLoadingPromptSuggestions = false, disabledInput = false, inputClassName, parentWidget, voiceInputEnabled = false, onTranscriptionStarted, onTranscriptionCompleted }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatFooterProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime33 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ChatFooter/ChatFooter.d.ts
|
|
5
5
|
declare const ChatFooter: ({
|
|
@@ -24,6 +24,6 @@ declare const ChatFooter: ({
|
|
|
24
24
|
voiceInputEnabled,
|
|
25
25
|
onTranscriptionStarted,
|
|
26
26
|
onTranscriptionCompleted
|
|
27
|
-
}: ChatFooterProps) =>
|
|
27
|
+
}: ChatFooterProps) => react_jsx_runtime33.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ChatFooter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatFooterProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ChatFooter/ChatFooter.d.ts
|
|
5
5
|
declare const ChatFooter: ({
|
|
@@ -24,6 +24,6 @@ declare const ChatFooter: ({
|
|
|
24
24
|
voiceInputEnabled,
|
|
25
25
|
onTranscriptionStarted,
|
|
26
26
|
onTranscriptionCompleted
|
|
27
|
-
}: ChatFooterProps) =>
|
|
27
|
+
}: ChatFooterProps) => react_jsx_runtime22.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ChatFooter };
|
|
@@ -3,8 +3,8 @@ import { resolveTheme } from "../utils/resolveTheme.js";
|
|
|
3
3
|
import "../Tokens/index.js";
|
|
4
4
|
import { useGetChatScrollProperties } from "./hooks/useGetChatScrollProperties.js";
|
|
5
5
|
import { ChatFooterComponents } from "./components/index.js";
|
|
6
|
-
import classNames from "classnames";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import classNames from "classnames";
|
|
8
8
|
|
|
9
9
|
//#region src/components/ChatFooter/ChatFooter.tsx
|
|
10
10
|
const ChatFooter = ({ id, testId, className, style, theme = Theme.GLOBAL_CUSTOM, promptSuggestions, handleButtonClick, isScrolled, onChange, onSubmit, onFocus, textFieldPlaceholderText, hideEnviveWatermark = false, disabled = false, isLoadingPromptSuggestions = false, disabledInput = false, inputClassName, parentWidget, voiceInputEnabled = false, onTranscriptionStarted, onTranscriptionCompleted }) => {
|
|
@@ -5,9 +5,9 @@ const require_Container = require('../../Container/Container.cjs');
|
|
|
5
5
|
require('../../Container/index.cjs');
|
|
6
6
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
7
7
|
const require_useGetChatScrollProperties = require('../hooks/useGetChatScrollProperties.cjs');
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
9
|
let classnames = require("classnames");
|
|
9
10
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
10
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
|
|
12
12
|
//#region src/components/ChatFooter/components/Layout.tsx
|
|
13
13
|
const Layout = ({ promptSuggestions, textField, enviveLogo, isScrolled, theme, hideEnviveWatermark, hasPromptSuggestions, id, testId, className, style }) => {
|
|
@@ -4,8 +4,8 @@ import { Container } from "../../Container/Container.js";
|
|
|
4
4
|
import "../../Container/index.js";
|
|
5
5
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
6
6
|
import { useGetChatScrollProperties } from "../hooks/useGetChatScrollProperties.js";
|
|
7
|
-
import classNames from "classnames";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import classNames from "classnames";
|
|
9
9
|
|
|
10
10
|
//#region src/components/ChatFooter/components/Layout.tsx
|
|
11
11
|
const Layout = ({ promptSuggestions, textField, enviveLogo, isScrolled, theme, hideEnviveWatermark, hasPromptSuggestions, id, testId, className, style }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LayoutProps } from "./Layout.cjs";
|
|
2
2
|
import { PromptSuggestionsProps } from "./PromptSuggestions.cjs";
|
|
3
3
|
import { TextFieldProps } from "../../TextField/types/index.cjs";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as react183 from "react";
|
|
5
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ChatFooter/components/index.d.ts
|
|
8
8
|
declare const ChatFooterComponents: {
|
|
@@ -18,13 +18,13 @@ declare const ChatFooterComponents: {
|
|
|
18
18
|
testId,
|
|
19
19
|
className,
|
|
20
20
|
style
|
|
21
|
-
}: LayoutProps) =>
|
|
21
|
+
}: LayoutProps) => react_jsx_runtime31.JSX.Element;
|
|
22
22
|
EnviveLogo: ({
|
|
23
23
|
style
|
|
24
24
|
}: {
|
|
25
25
|
className?: string;
|
|
26
26
|
style?: React.CSSProperties;
|
|
27
|
-
}) =>
|
|
27
|
+
}) => react183.ReactElement<react183.SVGProps<SVGSVGElement>, string | react183.JSXElementConstructor<any>>;
|
|
28
28
|
PromptSuggestions: ({
|
|
29
29
|
theme,
|
|
30
30
|
suggestions,
|
|
@@ -33,7 +33,7 @@ declare const ChatFooterComponents: {
|
|
|
33
33
|
style,
|
|
34
34
|
disabled,
|
|
35
35
|
parentWidget
|
|
36
|
-
}: PromptSuggestionsProps) =>
|
|
36
|
+
}: PromptSuggestionsProps) => react_jsx_runtime31.JSX.Element;
|
|
37
37
|
TextField: ({
|
|
38
38
|
theme,
|
|
39
39
|
placeholder,
|