@envive-ai/react-toolkit-v3 0.3.31 → 0.3.33
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/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.cjs +165 -60
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.js +165 -60
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.cjs +30 -15
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.js +30 -15
- package/dist/Carousel/Carousel.cjs +1 -1
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/Carousel.js +1 -1
- package/dist/Carousel/components/Container.cjs +2 -2
- package/dist/Carousel/components/Container.js +2 -2
- 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 +2 -2
- package/dist/ChatFooter/components/Layout.js +2 -2
- 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/components/Handle.cjs +2 -2
- package/dist/ChatHeader/components/Handle.js +2 -2
- package/dist/ChatHeader/components/Toggle.cjs +3 -3
- package/dist/ChatHeader/components/Toggle.js +3 -3
- package/dist/ChatPreview/ChatPreview.cjs +1 -1
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +1 -1
- package/dist/ChatPreviewComparison/components/Headline.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Headline.js +2 -2
- package/dist/ChatPreviewComparison/components/Layout.cjs +4 -4
- package/dist/ChatPreviewComparison/components/Layout.js +4 -4
- package/dist/ChatPreviewComparison/components/Message.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Message.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 +175 -175
- package/dist/Container/Container.d.ts +175 -175
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DesignTokens/components/FontWeight.cjs +4 -3
- package/dist/DesignTokens/components/FontWeight.js +4 -3
- package/dist/DesignTokens/components/LetterSpacing.cjs +15 -1
- package/dist/DesignTokens/components/LetterSpacing.js +15 -1
- package/dist/DesignTokens/components/LineHeight.cjs +13 -8
- package/dist/DesignTokens/components/LineHeight.js +13 -8
- package/dist/Disclaimer/components/Container.cjs +2 -2
- package/dist/Disclaimer/components/Container.js +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- package/dist/DocumentRetrievalCard/components/Layout.cjs +2 -2
- package/dist/DocumentRetrievalCard/components/Layout.js +2 -2
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- 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 +3 -3
- package/dist/FloatingChat/components/Layout.js +3 -3
- 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/FullPageSalesAgent/FullPageSalesAgent.cjs +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +1 -1
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/ImageGallery/ImageGallery.d.ts +2 -2
- package/dist/ImageGallery/components/Layout.cjs +1 -1
- package/dist/ImageGallery/components/Layout.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/Message/components/LinkButton.cjs +1 -1
- package/dist/Message/components/LinkButton.js +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +15 -9
- package/dist/ProductCard/ProductCard.d.cts +3 -2
- package/dist/ProductCard/ProductCard.d.ts +3 -2
- package/dist/ProductCard/ProductCard.js +11 -5
- 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.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.cjs +3 -3
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +3 -3
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/Container.cjs +2 -2
- package/dist/ReviewCard/components/Container.js +2 -2
- package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
- package/dist/ReviewCard/components/index.d.cts +6 -6
- 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 +2 -2
- package/dist/SalesAgentProductCard/components/Container.js +2 -2
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.cjs +1 -1
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/SocialProof.js +1 -1
- package/dist/SocialProof/components/Headline.cjs +3 -3
- package/dist/SocialProof/components/Headline.js +3 -3
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
- package/dist/SocialProof/components/Subheadline.cjs +1 -1
- package/dist/SocialProof/components/Subheadline.js +1 -1
- package/dist/SocialProof/hooks/useSocialProofCount.cjs +2 -1
- package/dist/SocialProof/hooks/useSocialProofCount.js +2 -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/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
- package/dist/Tokens/index.cjs +1 -1
- package/dist/Tokens/index.js +1 -1
- package/dist/TypingAnimation/TypingAnimation.cjs +1 -1
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +1 -1
- package/dist/TypingAnimation/hooks/useGetTypographyVariant.cjs +1 -1
- package/dist/TypingAnimation/hooks/useGetTypographyVariant.js +1 -1
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WelcomeMessage/components/Container.cjs +2 -2
- package/dist/WelcomeMessage/components/Container.js +2 -2
- package/dist/WidgetTextField/WidgetTextField.cjs +5 -4
- 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 +5 -4
- package/dist/WidgetTextField/components/Container.js +5 -4
- package/dist/WidgetTextField/components/Icon.cjs +1 -1
- package/dist/WidgetTextField/components/Icon.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.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
- 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/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/SocialProof/components/Headline.tsx +1 -1
- package/src/components/SocialProof/hooks/useSocialProofCount.ts +5 -2
- 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,7 +1,7 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import "../../Tokens/index.js";
|
|
3
2
|
import { TypographyVariant } from "../../Typography/types/index.js";
|
|
4
3
|
import "../../Typography/index.js";
|
|
4
|
+
import "../../Tokens/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/components/TypingAnimation/hooks/useGetTypographyVariant.tsx
|
|
7
7
|
const useGetTypographyVariant = (theme) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypographyProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react0 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Typography/Typography.d.ts
|
|
5
5
|
/**
|
|
@@ -18,13 +18,13 @@ declare const Typography: ({
|
|
|
18
18
|
noWrap,
|
|
19
19
|
as,
|
|
20
20
|
"aria-label": ariaLabel
|
|
21
|
-
}: TypographyProps) =>
|
|
21
|
+
}: TypographyProps) => react0.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react0.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react0.CSSProperties;
|
|
28
28
|
id: string;
|
|
29
29
|
'data-testid': string;
|
|
30
30
|
}, HTMLElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypographyProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react0 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Typography/Typography.d.ts
|
|
5
5
|
/**
|
|
@@ -18,13 +18,13 @@ declare const Typography: ({
|
|
|
18
18
|
noWrap,
|
|
19
19
|
as,
|
|
20
20
|
"aria-label": ariaLabel
|
|
21
|
-
}: TypographyProps) =>
|
|
21
|
+
}: TypographyProps) => react0.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react0.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react0.CSSProperties;
|
|
28
28
|
id: string;
|
|
29
29
|
'data-testid': string;
|
|
30
30
|
}, HTMLElement>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Container = require('../../Container/Container.cjs');
|
|
3
|
-
require('../../Container/index.cjs');
|
|
4
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
3
|
require('../../Stack/index.cjs');
|
|
4
|
+
const require_Container = require('../../Container/Container.cjs');
|
|
5
|
+
require('../../Container/index.cjs');
|
|
6
6
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let classnames = require("classnames");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Container } from "../../Container/Container.js";
|
|
2
|
-
import "../../Container/index.js";
|
|
3
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
4
2
|
import "../../Stack/index.js";
|
|
3
|
+
import { Container } from "../../Container/Container.js";
|
|
4
|
+
import "../../Container/index.js";
|
|
5
5
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import classNames from "classnames";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
+
const require_index = require('../Typography/types/index.cjs');
|
|
3
4
|
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
4
|
-
const require_index = require('../TextField/components/index.cjs');
|
|
5
|
+
const require_index$1 = require('../TextField/components/index.cjs');
|
|
5
6
|
const require_useGetSkeletonProperties = require('../TextField/hooks/useGetSkeletonProperties.cjs');
|
|
6
7
|
const require_react = require('../node_modules/jotai/esm/react.cjs');
|
|
7
8
|
const require_useVoiceInput = require('../TextField/hooks/useVoiceInput.cjs');
|
|
8
|
-
const require_index$1 = require('../Typography/types/index.cjs');
|
|
9
9
|
const require_types = require('./types/types.cjs');
|
|
10
10
|
const require_index$2 = require('./components/index.cjs');
|
|
11
11
|
const require_useGetMicWidgetButtonProperties = require('./hooks/useGetMicWidgetButtonProperties.cjs');
|
|
@@ -15,7 +15,7 @@ classnames = require_rolldown_runtime.__toESM(classnames);
|
|
|
15
15
|
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
16
16
|
|
|
17
17
|
//#region src/components/WidgetTextField/WidgetTextField.tsx
|
|
18
|
-
const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, theme = require_theme.Theme.GLOBAL_CUSTOM, minimalFrame = "full", iconVariant = require_types.IconVariant.DEFAULT, textColor = require_index
|
|
18
|
+
const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, theme = require_theme.Theme.GLOBAL_CUSTOM, minimalFrame = "full", minimalBorderVariant, iconVariant = require_types.IconVariant.DEFAULT, textColor = require_index.TypographyColor.TEXT_SECONDARY, placeholder, ariaLabel, disabled, isLoading, onClick, enableVoiceInput = false, onTranscriptionStarted }) => {
|
|
19
19
|
const resolvedTheme = require_resolveTheme.resolveTheme(theme);
|
|
20
20
|
const setListeningToSpeech = require_react.useSetAtom(__envive_ai_react_hooks_atoms_chat.listeningToSpeechAtom);
|
|
21
21
|
const { skeletonClass } = require_useGetSkeletonProperties.useGetSkeletonProperties(isLoading);
|
|
@@ -31,7 +31,7 @@ const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, th
|
|
|
31
31
|
onTranscriptionStarted?.();
|
|
32
32
|
onClick();
|
|
33
33
|
};
|
|
34
|
-
const voiceInputButton = enableVoiceInput && browserSupportsSpeechRecognition ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.TextFieldComponents.VoiceInputButton, {
|
|
34
|
+
const voiceInputButton = enableVoiceInput && browserSupportsSpeechRecognition ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.TextFieldComponents.VoiceInputButton, {
|
|
35
35
|
theme: resolvedTheme,
|
|
36
36
|
isListening: false,
|
|
37
37
|
onToggleListening: disabled ? void 0 : handleToggleListening,
|
|
@@ -48,6 +48,7 @@ const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, th
|
|
|
48
48
|
className,
|
|
49
49
|
theme: resolvedTheme,
|
|
50
50
|
minimalFrame,
|
|
51
|
+
minimalBorderVariant,
|
|
51
52
|
disabled,
|
|
52
53
|
ariaLabel,
|
|
53
54
|
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$2.WidgetTextFieldComponents.Icon, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetTextFieldProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetTextField/WidgetTextField.d.ts
|
|
5
5
|
declare const WidgetTextField: ({
|
|
@@ -10,6 +10,7 @@ declare const WidgetTextField: ({
|
|
|
10
10
|
voiceInputClassName,
|
|
11
11
|
theme,
|
|
12
12
|
minimalFrame,
|
|
13
|
+
minimalBorderVariant,
|
|
13
14
|
iconVariant,
|
|
14
15
|
textColor,
|
|
15
16
|
placeholder,
|
|
@@ -19,6 +20,6 @@ declare const WidgetTextField: ({
|
|
|
19
20
|
onClick,
|
|
20
21
|
enableVoiceInput,
|
|
21
22
|
onTranscriptionStarted
|
|
22
|
-
}: WidgetTextFieldProps) =>
|
|
23
|
+
}: WidgetTextFieldProps) => react_jsx_runtime0.JSX.Element;
|
|
23
24
|
//#endregion
|
|
24
25
|
export { WidgetTextField };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetTextFieldProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetTextField/WidgetTextField.d.ts
|
|
5
5
|
declare const WidgetTextField: ({
|
|
@@ -10,6 +10,7 @@ declare const WidgetTextField: ({
|
|
|
10
10
|
voiceInputClassName,
|
|
11
11
|
theme,
|
|
12
12
|
minimalFrame,
|
|
13
|
+
minimalBorderVariant,
|
|
13
14
|
iconVariant,
|
|
14
15
|
textColor,
|
|
15
16
|
placeholder,
|
|
@@ -19,6 +20,6 @@ declare const WidgetTextField: ({
|
|
|
19
20
|
onClick,
|
|
20
21
|
enableVoiceInput,
|
|
21
22
|
onTranscriptionStarted
|
|
22
|
-
}: WidgetTextFieldProps) =>
|
|
23
|
+
}: WidgetTextFieldProps) => react_jsx_runtime1.JSX.Element;
|
|
23
24
|
//#endregion
|
|
24
25
|
export { WidgetTextField };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { TypographyColor } from "../Typography/types/index.js";
|
|
2
3
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
3
4
|
import { TextFieldComponents } from "../TextField/components/index.js";
|
|
4
5
|
import { useGetSkeletonProperties } from "../TextField/hooks/useGetSkeletonProperties.js";
|
|
5
6
|
import { useSetAtom } from "../node_modules/jotai/esm/react.js";
|
|
6
7
|
import { useVoiceInput } from "../TextField/hooks/useVoiceInput.js";
|
|
7
|
-
import { TypographyColor } from "../Typography/types/index.js";
|
|
8
8
|
import { IconVariant } from "./types/types.js";
|
|
9
9
|
import { WidgetTextFieldComponents } from "./components/index.js";
|
|
10
10
|
import { useGetMicWidgetButtonProperties } from "./hooks/useGetMicWidgetButtonProperties.js";
|
|
@@ -13,7 +13,7 @@ import classNames from "classnames";
|
|
|
13
13
|
import { listeningToSpeechAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
14
14
|
|
|
15
15
|
//#region src/components/WidgetTextField/WidgetTextField.tsx
|
|
16
|
-
const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, theme = Theme.GLOBAL_CUSTOM, minimalFrame = "full", iconVariant = IconVariant.DEFAULT, textColor = TypographyColor.TEXT_SECONDARY, placeholder, ariaLabel, disabled, isLoading, onClick, enableVoiceInput = false, onTranscriptionStarted }) => {
|
|
16
|
+
const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, theme = Theme.GLOBAL_CUSTOM, minimalFrame = "full", minimalBorderVariant, iconVariant = IconVariant.DEFAULT, textColor = TypographyColor.TEXT_SECONDARY, placeholder, ariaLabel, disabled, isLoading, onClick, enableVoiceInput = false, onTranscriptionStarted }) => {
|
|
17
17
|
const resolvedTheme = resolveTheme(theme);
|
|
18
18
|
const setListeningToSpeech = useSetAtom(listeningToSpeechAtom);
|
|
19
19
|
const { skeletonClass } = useGetSkeletonProperties(isLoading);
|
|
@@ -46,6 +46,7 @@ const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, th
|
|
|
46
46
|
className,
|
|
47
47
|
theme: resolvedTheme,
|
|
48
48
|
minimalFrame,
|
|
49
|
+
minimalBorderVariant,
|
|
49
50
|
disabled,
|
|
50
51
|
ariaLabel,
|
|
51
52
|
icon: /* @__PURE__ */ jsx(WidgetTextFieldComponents.Icon, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Container = require('../../Container/Container.cjs');
|
|
3
|
-
require('../../Container/index.cjs');
|
|
4
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
3
|
require('../../Stack/index.cjs');
|
|
4
|
+
const require_Container = require('../../Container/Container.cjs');
|
|
5
|
+
require('../../Container/index.cjs');
|
|
6
6
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
7
7
|
const require_useHandleKeyboard = require('../hooks/useHandleKeyboard.cjs');
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -10,10 +10,11 @@ let classnames = require("classnames");
|
|
|
10
10
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
11
11
|
|
|
12
12
|
//#region src/components/WidgetTextField/components/Container.tsx
|
|
13
|
-
const Container$1 = ({ id, testId, style, className, theme, minimalFrame, ariaLabel, icon, text, voiceInputButton, disabled, onClick }) => {
|
|
13
|
+
const Container$1 = ({ id, testId, style, className, theme, minimalFrame, minimalBorderVariant, ariaLabel, icon, text, voiceInputButton, disabled, onClick }) => {
|
|
14
14
|
const { baseClassName, themeContainerClassName, containerWrapperClassName } = require_useGetContainerProperties.useGetContainerProperties({
|
|
15
15
|
theme,
|
|
16
|
-
minimalFrame
|
|
16
|
+
minimalFrame,
|
|
17
|
+
minimalBorderVariant
|
|
17
18
|
});
|
|
18
19
|
const { handleKeyDown } = require_useHandleKeyboard.useHandleKeyboard({ onClick });
|
|
19
20
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { Container } from "../../Container/Container.js";
|
|
2
|
-
import "../../Container/index.js";
|
|
3
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
4
2
|
import "../../Stack/index.js";
|
|
3
|
+
import { Container } from "../../Container/Container.js";
|
|
4
|
+
import "../../Container/index.js";
|
|
5
5
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
6
6
|
import { useHandleKeyboard } from "../hooks/useHandleKeyboard.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
|
|
10
10
|
//#region src/components/WidgetTextField/components/Container.tsx
|
|
11
|
-
const Container$1 = ({ id, testId, style, className, theme, minimalFrame, ariaLabel, icon, text, voiceInputButton, disabled, onClick }) => {
|
|
11
|
+
const Container$1 = ({ id, testId, style, className, theme, minimalFrame, minimalBorderVariant, ariaLabel, icon, text, voiceInputButton, disabled, onClick }) => {
|
|
12
12
|
const { baseClassName, themeContainerClassName, containerWrapperClassName } = useGetContainerProperties({
|
|
13
13
|
theme,
|
|
14
|
-
minimalFrame
|
|
14
|
+
minimalFrame,
|
|
15
|
+
minimalBorderVariant
|
|
15
16
|
});
|
|
16
17
|
const { handleKeyDown } = useHandleKeyboard({ onClick });
|
|
17
18
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
4
3
|
const require_index = require('../../Typography/types/index.cjs');
|
|
4
|
+
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
5
5
|
const require_types = require('../types/types.cjs');
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let __envive_ai_react_icons_SendStandard = require("@envive-ai/react-icons/SendStandard");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { CustomIcon } from "../../utils/CustomIcon.js";
|
|
3
2
|
import { TypographyColor } from "../../Typography/types/index.js";
|
|
3
|
+
import { CustomIcon } from "../../utils/CustomIcon.js";
|
|
4
4
|
import { IconVariant } from "../types/types.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import SendStandard from "@envive-ai/react-icons/SendStandard";
|
|
@@ -3,18 +3,22 @@ const require_theme = require('../../packages/components-v3/tokens/theme/theme.c
|
|
|
3
3
|
let react = require("react");
|
|
4
4
|
|
|
5
5
|
//#region src/components/WidgetTextField/hooks/useGetContainerProperties.ts
|
|
6
|
-
const useGetContainerProperties = ({ theme, minimalFrame = "full" }) => {
|
|
6
|
+
const useGetContainerProperties = ({ theme, minimalFrame = "full", minimalBorderVariant = "light" }) => {
|
|
7
7
|
return {
|
|
8
8
|
baseClassName: "envive-tw-cursor-text envive-tw-border-solid envive-tw-px-4 envive-tw-py-2 envive-tw-bg-[--envive-colors-background-light]",
|
|
9
9
|
themeContainerClassName: (0, react.useMemo)(() => {
|
|
10
|
-
const minimalBorderClass = minimalFrame === "bottom-only" ?
|
|
10
|
+
const minimalBorderClass = minimalFrame === "bottom-only" ? `envive-tw-border-b-[1px] ${minimalBorderVariant === "primary" ? "envive-tw-border-text-primary" : "envive-tw-border-text-light"}` : "envive-tw-border-[1px] envive-tw-border-border-light";
|
|
11
11
|
return {
|
|
12
12
|
[require_theme.Theme.STANDARD]: "envive-tw-border-[1px] envive-tw-border-border-light envive-tw-rounded-global-custom",
|
|
13
13
|
[require_theme.Theme.MODERN]: "envive-tw-border-[1px] envive-tw-border-border-light envive-tw-rounded-4",
|
|
14
14
|
[require_theme.Theme.MINIMAL]: minimalBorderClass,
|
|
15
15
|
[require_theme.Theme.GLOBAL_CUSTOM]: ""
|
|
16
16
|
}[theme] ?? "";
|
|
17
|
-
}, [
|
|
17
|
+
}, [
|
|
18
|
+
theme,
|
|
19
|
+
minimalFrame,
|
|
20
|
+
minimalBorderVariant
|
|
21
|
+
]),
|
|
18
22
|
containerWrapperClassName: "envive-tw-gap-4 envive-tw-flex envive-tw-w-full envive-tw-flex-row"
|
|
19
23
|
};
|
|
20
24
|
};
|
|
@@ -2,18 +2,22 @@ import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetTextField/hooks/useGetContainerProperties.ts
|
|
5
|
-
const useGetContainerProperties = ({ theme, minimalFrame = "full" }) => {
|
|
5
|
+
const useGetContainerProperties = ({ theme, minimalFrame = "full", minimalBorderVariant = "light" }) => {
|
|
6
6
|
return {
|
|
7
7
|
baseClassName: "envive-tw-cursor-text envive-tw-border-solid envive-tw-px-4 envive-tw-py-2 envive-tw-bg-[--envive-colors-background-light]",
|
|
8
8
|
themeContainerClassName: useMemo(() => {
|
|
9
|
-
const minimalBorderClass = minimalFrame === "bottom-only" ?
|
|
9
|
+
const minimalBorderClass = minimalFrame === "bottom-only" ? `envive-tw-border-b-[1px] ${minimalBorderVariant === "primary" ? "envive-tw-border-text-primary" : "envive-tw-border-text-light"}` : "envive-tw-border-[1px] envive-tw-border-border-light";
|
|
10
10
|
return {
|
|
11
11
|
[Theme.STANDARD]: "envive-tw-border-[1px] envive-tw-border-border-light envive-tw-rounded-global-custom",
|
|
12
12
|
[Theme.MODERN]: "envive-tw-border-[1px] envive-tw-border-border-light envive-tw-rounded-4",
|
|
13
13
|
[Theme.MINIMAL]: minimalBorderClass,
|
|
14
14
|
[Theme.GLOBAL_CUSTOM]: ""
|
|
15
15
|
}[theme] ?? "";
|
|
16
|
-
}, [
|
|
16
|
+
}, [
|
|
17
|
+
theme,
|
|
18
|
+
minimalFrame,
|
|
19
|
+
minimalBorderVariant
|
|
20
|
+
]),
|
|
17
21
|
containerWrapperClassName: "envive-tw-gap-4 envive-tw-flex envive-tw-w-full envive-tw-flex-row"
|
|
18
22
|
};
|
|
19
23
|
};
|
|
@@ -38,6 +38,8 @@ type WidgetTextFieldProps = {
|
|
|
38
38
|
* @default 'full'
|
|
39
39
|
*/
|
|
40
40
|
minimalFrame?: 'full' | 'bottom-only';
|
|
41
|
+
/** Border color for the bottom-only minimal frame. `light` = text-light (white), `primary` = text-primary. @default 'light' */
|
|
42
|
+
minimalBorderVariant?: 'light' | 'primary';
|
|
41
43
|
/** Placeholder text displayed in the text field. */
|
|
42
44
|
placeholder?: string;
|
|
43
45
|
/** Accessible label for screen readers. If not provided, the placeholder will be used. */
|
|
@@ -38,6 +38,8 @@ type WidgetTextFieldProps = {
|
|
|
38
38
|
* @default 'full'
|
|
39
39
|
*/
|
|
40
40
|
minimalFrame?: 'full' | 'bottom-only';
|
|
41
|
+
/** Border color for the bottom-only minimal frame. `light` = text-light (white), `primary` = text-primary. @default 'light' */
|
|
42
|
+
minimalBorderVariant?: 'light' | 'primary';
|
|
41
43
|
/** Placeholder text displayed in the text field. */
|
|
42
44
|
placeholder?: string;
|
|
43
45
|
/** Accessible label for screen readers. If not provided, the placeholder will be used. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetWrapper/WidgetWrapper.d.ts
|
|
5
5
|
|
|
@@ -16,6 +16,6 @@ declare const WidgetWrapper: ({
|
|
|
16
16
|
className,
|
|
17
17
|
style,
|
|
18
18
|
...containerProps
|
|
19
|
-
}: WidgetWrapperProps) =>
|
|
19
|
+
}: WidgetWrapperProps) => react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { WidgetWrapper };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetWrapper/WidgetWrapper.d.ts
|
|
5
5
|
|
|
@@ -16,6 +16,6 @@ declare const WidgetWrapper: ({
|
|
|
16
16
|
className,
|
|
17
17
|
style,
|
|
18
18
|
...containerProps
|
|
19
|
-
}: WidgetWrapperProps) =>
|
|
19
|
+
}: WidgetWrapperProps) => react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { WidgetWrapper };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperWithTitleProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts
|
|
5
5
|
declare const WidgetWrapperWithTitle: ({
|
|
@@ -14,6 +14,6 @@ declare const WidgetWrapperWithTitle: ({
|
|
|
14
14
|
hexCardColor,
|
|
15
15
|
hideLogo,
|
|
16
16
|
fullIsLoading
|
|
17
|
-
}: WidgetWrapperWithTitleProps) =>
|
|
17
|
+
}: WidgetWrapperWithTitleProps) => react_jsx_runtime1.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { WidgetWrapperWithTitle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperWithTitleProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts
|
|
5
5
|
declare const WidgetWrapperWithTitle: ({
|
|
@@ -14,6 +14,6 @@ declare const WidgetWrapperWithTitle: ({
|
|
|
14
14
|
hexCardColor,
|
|
15
15
|
hideLogo,
|
|
16
16
|
fullIsLoading
|
|
17
|
-
}: WidgetWrapperWithTitleProps) =>
|
|
17
|
+
}: WidgetWrapperWithTitleProps) => react_jsx_runtime7.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { WidgetWrapperWithTitle };
|
|
@@ -2,20 +2,23 @@ const require_utils = require('../utils.cjs');
|
|
|
2
2
|
|
|
3
3
|
//#region tokens/typography/fontWeight.ts
|
|
4
4
|
let FontWeightCSSVar = /* @__PURE__ */ function(FontWeightCSSVar$1) {
|
|
5
|
-
FontWeightCSSVar$1["
|
|
6
|
-
FontWeightCSSVar$1["
|
|
7
|
-
FontWeightCSSVar$1["
|
|
5
|
+
FontWeightCSSVar$1["Title"] = "envive-typography-font-weight-title";
|
|
6
|
+
FontWeightCSSVar$1["Header"] = "envive-typography-font-weight-header";
|
|
7
|
+
FontWeightCSSVar$1["BodyEmphasis"] = "envive-typography-font-weight-body-emphasis";
|
|
8
|
+
FontWeightCSSVar$1["BodyStandard"] = "envive-typography-font-weight-body-standard";
|
|
8
9
|
return FontWeightCSSVar$1;
|
|
9
10
|
}({});
|
|
10
11
|
const fontWeight = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
title: "500",
|
|
13
|
+
header: "600",
|
|
14
|
+
body_emphasis: "500",
|
|
15
|
+
body_standard: "400"
|
|
14
16
|
};
|
|
15
17
|
const fontWeightVariables = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
title: require_utils.addVar(FontWeightCSSVar.Title),
|
|
19
|
+
header: require_utils.addVar(FontWeightCSSVar.Header),
|
|
20
|
+
body_emphasis: require_utils.addVar(FontWeightCSSVar.BodyEmphasis),
|
|
21
|
+
body_standard: require_utils.addVar(FontWeightCSSVar.BodyStandard)
|
|
19
22
|
};
|
|
20
23
|
|
|
21
24
|
//#endregion
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
//#region tokens/typography/fontWeight.d.ts
|
|
2
2
|
|
|
3
3
|
type FontWeightType = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
title: string;
|
|
5
|
+
header: string;
|
|
6
|
+
body_emphasis: string;
|
|
7
|
+
body_standard: string;
|
|
7
8
|
};
|
|
8
9
|
declare const fontWeightVariables: FontWeightType;
|
|
9
10
|
//#endregion
|
|
@@ -2,20 +2,23 @@ import { addVar } from "../utils.js";
|
|
|
2
2
|
|
|
3
3
|
//#region tokens/typography/fontWeight.ts
|
|
4
4
|
let FontWeightCSSVar = /* @__PURE__ */ function(FontWeightCSSVar$1) {
|
|
5
|
-
FontWeightCSSVar$1["
|
|
6
|
-
FontWeightCSSVar$1["
|
|
7
|
-
FontWeightCSSVar$1["
|
|
5
|
+
FontWeightCSSVar$1["Title"] = "envive-typography-font-weight-title";
|
|
6
|
+
FontWeightCSSVar$1["Header"] = "envive-typography-font-weight-header";
|
|
7
|
+
FontWeightCSSVar$1["BodyEmphasis"] = "envive-typography-font-weight-body-emphasis";
|
|
8
|
+
FontWeightCSSVar$1["BodyStandard"] = "envive-typography-font-weight-body-standard";
|
|
8
9
|
return FontWeightCSSVar$1;
|
|
9
10
|
}({});
|
|
10
11
|
const fontWeight = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
title: "500",
|
|
13
|
+
header: "600",
|
|
14
|
+
body_emphasis: "500",
|
|
15
|
+
body_standard: "400"
|
|
14
16
|
};
|
|
15
17
|
const fontWeightVariables = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
title: addVar(FontWeightCSSVar.Title),
|
|
19
|
+
header: addVar(FontWeightCSSVar.Header),
|
|
20
|
+
body_emphasis: addVar(FontWeightCSSVar.BodyEmphasis),
|
|
21
|
+
body_standard: addVar(FontWeightCSSVar.BodyStandard)
|
|
19
22
|
};
|
|
20
23
|
|
|
21
24
|
//#endregion
|
|
@@ -2,17 +2,50 @@ const require_utils = require('../utils.cjs');
|
|
|
2
2
|
|
|
3
3
|
//#region tokens/typography/letterSpacing.ts
|
|
4
4
|
let LetterSpacingCSSVar = /* @__PURE__ */ function(LetterSpacingCSSVar$1) {
|
|
5
|
-
LetterSpacingCSSVar$1["
|
|
6
|
-
LetterSpacingCSSVar$1["
|
|
5
|
+
LetterSpacingCSSVar$1["T1"] = "envive-typography-letter-spacing-t1";
|
|
6
|
+
LetterSpacingCSSVar$1["T2"] = "envive-typography-letter-spacing-t2";
|
|
7
|
+
LetterSpacingCSSVar$1["T3"] = "envive-typography-letter-spacing-t3";
|
|
8
|
+
LetterSpacingCSSVar$1["H1"] = "envive-typography-letter-spacing-h1";
|
|
9
|
+
LetterSpacingCSSVar$1["H2"] = "envive-typography-letter-spacing-h2";
|
|
10
|
+
LetterSpacingCSSVar$1["H3"] = "envive-typography-letter-spacing-h3";
|
|
11
|
+
LetterSpacingCSSVar$1["B1"] = "envive-typography-letter-spacing-b1";
|
|
12
|
+
LetterSpacingCSSVar$1["B2"] = "envive-typography-letter-spacing-b2";
|
|
13
|
+
LetterSpacingCSSVar$1["B3"] = "envive-typography-letter-spacing-b3";
|
|
14
|
+
LetterSpacingCSSVar$1["B4"] = "envive-typography-letter-spacing-b4";
|
|
15
|
+
LetterSpacingCSSVar$1["B5"] = "envive-typography-letter-spacing-b5";
|
|
16
|
+
LetterSpacingCSSVar$1["L1"] = "envive-typography-letter-spacing-l1";
|
|
17
|
+
LetterSpacingCSSVar$1["L2"] = "envive-typography-letter-spacing-l2";
|
|
7
18
|
return LetterSpacingCSSVar$1;
|
|
8
19
|
}({});
|
|
9
20
|
const letterSpacing = {
|
|
10
|
-
|
|
11
|
-
|
|
21
|
+
t1: "0em",
|
|
22
|
+
t2: "0em",
|
|
23
|
+
t3: "0em",
|
|
24
|
+
h1: "0em",
|
|
25
|
+
h2: "0em",
|
|
26
|
+
h3: "0em",
|
|
27
|
+
b1: "0em",
|
|
28
|
+
b2: "0em",
|
|
29
|
+
b3: "0em",
|
|
30
|
+
b4: "0em",
|
|
31
|
+
b5: "0em",
|
|
32
|
+
l1: "1px",
|
|
33
|
+
l2: "1px"
|
|
12
34
|
};
|
|
13
35
|
const letterSpacingVariables = {
|
|
14
|
-
|
|
15
|
-
|
|
36
|
+
t1: require_utils.addVar(LetterSpacingCSSVar.T1),
|
|
37
|
+
t2: require_utils.addVar(LetterSpacingCSSVar.T2),
|
|
38
|
+
t3: require_utils.addVar(LetterSpacingCSSVar.T3),
|
|
39
|
+
h1: require_utils.addVar(LetterSpacingCSSVar.H1),
|
|
40
|
+
h2: require_utils.addVar(LetterSpacingCSSVar.H2),
|
|
41
|
+
h3: require_utils.addVar(LetterSpacingCSSVar.H3),
|
|
42
|
+
b1: require_utils.addVar(LetterSpacingCSSVar.B1),
|
|
43
|
+
b2: require_utils.addVar(LetterSpacingCSSVar.B2),
|
|
44
|
+
b3: require_utils.addVar(LetterSpacingCSSVar.B3),
|
|
45
|
+
b4: require_utils.addVar(LetterSpacingCSSVar.B4),
|
|
46
|
+
b5: require_utils.addVar(LetterSpacingCSSVar.B5),
|
|
47
|
+
l1: require_utils.addVar(LetterSpacingCSSVar.L1),
|
|
48
|
+
l2: require_utils.addVar(LetterSpacingCSSVar.L2)
|
|
16
49
|
};
|
|
17
50
|
|
|
18
51
|
//#endregion
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
//#region tokens/typography/letterSpacing.d.ts
|
|
2
2
|
|
|
3
3
|
type LetterSpacingType = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
t1: string;
|
|
5
|
+
t2: string;
|
|
6
|
+
t3: string;
|
|
7
|
+
h1: string;
|
|
8
|
+
h2: string;
|
|
9
|
+
h3: string;
|
|
10
|
+
b1: string;
|
|
11
|
+
b2: string;
|
|
12
|
+
b3: string;
|
|
13
|
+
b4: string;
|
|
14
|
+
b5: string;
|
|
15
|
+
l1: string;
|
|
16
|
+
l2: string;
|
|
6
17
|
};
|
|
7
18
|
declare const letterSpacingVariables: LetterSpacingType;
|
|
8
19
|
//#endregion
|
|
@@ -2,17 +2,50 @@ import { addVar } from "../utils.js";
|
|
|
2
2
|
|
|
3
3
|
//#region tokens/typography/letterSpacing.ts
|
|
4
4
|
let LetterSpacingCSSVar = /* @__PURE__ */ function(LetterSpacingCSSVar$1) {
|
|
5
|
-
LetterSpacingCSSVar$1["
|
|
6
|
-
LetterSpacingCSSVar$1["
|
|
5
|
+
LetterSpacingCSSVar$1["T1"] = "envive-typography-letter-spacing-t1";
|
|
6
|
+
LetterSpacingCSSVar$1["T2"] = "envive-typography-letter-spacing-t2";
|
|
7
|
+
LetterSpacingCSSVar$1["T3"] = "envive-typography-letter-spacing-t3";
|
|
8
|
+
LetterSpacingCSSVar$1["H1"] = "envive-typography-letter-spacing-h1";
|
|
9
|
+
LetterSpacingCSSVar$1["H2"] = "envive-typography-letter-spacing-h2";
|
|
10
|
+
LetterSpacingCSSVar$1["H3"] = "envive-typography-letter-spacing-h3";
|
|
11
|
+
LetterSpacingCSSVar$1["B1"] = "envive-typography-letter-spacing-b1";
|
|
12
|
+
LetterSpacingCSSVar$1["B2"] = "envive-typography-letter-spacing-b2";
|
|
13
|
+
LetterSpacingCSSVar$1["B3"] = "envive-typography-letter-spacing-b3";
|
|
14
|
+
LetterSpacingCSSVar$1["B4"] = "envive-typography-letter-spacing-b4";
|
|
15
|
+
LetterSpacingCSSVar$1["B5"] = "envive-typography-letter-spacing-b5";
|
|
16
|
+
LetterSpacingCSSVar$1["L1"] = "envive-typography-letter-spacing-l1";
|
|
17
|
+
LetterSpacingCSSVar$1["L2"] = "envive-typography-letter-spacing-l2";
|
|
7
18
|
return LetterSpacingCSSVar$1;
|
|
8
19
|
}({});
|
|
9
20
|
const letterSpacing = {
|
|
10
|
-
|
|
11
|
-
|
|
21
|
+
t1: "0em",
|
|
22
|
+
t2: "0em",
|
|
23
|
+
t3: "0em",
|
|
24
|
+
h1: "0em",
|
|
25
|
+
h2: "0em",
|
|
26
|
+
h3: "0em",
|
|
27
|
+
b1: "0em",
|
|
28
|
+
b2: "0em",
|
|
29
|
+
b3: "0em",
|
|
30
|
+
b4: "0em",
|
|
31
|
+
b5: "0em",
|
|
32
|
+
l1: "1px",
|
|
33
|
+
l2: "1px"
|
|
12
34
|
};
|
|
13
35
|
const letterSpacingVariables = {
|
|
14
|
-
|
|
15
|
-
|
|
36
|
+
t1: addVar(LetterSpacingCSSVar.T1),
|
|
37
|
+
t2: addVar(LetterSpacingCSSVar.T2),
|
|
38
|
+
t3: addVar(LetterSpacingCSSVar.T3),
|
|
39
|
+
h1: addVar(LetterSpacingCSSVar.H1),
|
|
40
|
+
h2: addVar(LetterSpacingCSSVar.H2),
|
|
41
|
+
h3: addVar(LetterSpacingCSSVar.H3),
|
|
42
|
+
b1: addVar(LetterSpacingCSSVar.B1),
|
|
43
|
+
b2: addVar(LetterSpacingCSSVar.B2),
|
|
44
|
+
b3: addVar(LetterSpacingCSSVar.B3),
|
|
45
|
+
b4: addVar(LetterSpacingCSSVar.B4),
|
|
46
|
+
b5: addVar(LetterSpacingCSSVar.B5),
|
|
47
|
+
l1: addVar(LetterSpacingCSSVar.L1),
|
|
48
|
+
l2: addVar(LetterSpacingCSSVar.L2)
|
|
16
49
|
};
|
|
17
50
|
|
|
18
51
|
//#endregion
|