@envive-ai/react-toolkit 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/package.json +10 -13
  2. package/src/components/Accordion/Accordion.tsx +3 -3
  3. package/src/components/AnimatedChevron/AnimatedChevron.tsx +1 -2
  4. package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +2 -2
  5. package/src/components/ButtonBase/ButtonBase.tsx +2 -2
  6. package/src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +2 -2
  7. package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +2 -2
  8. package/src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx +2 -2
  9. package/src/components/ProductCard/ProductCard.tsx +10 -9
  10. package/src/components/RadioButton/RadioButton.tsx +2 -2
  11. package/src/components/SearchFilter/SearchFilterHeader.tsx +3 -3
  12. package/src/components/SearchFilter/SearchFilterItem.tsx +2 -2
  13. package/src/components/SearchInput/searchInputVariants.ts +2 -2
  14. package/src/components/SearchResultsStates/NoSearchResultsFound.tsx +3 -3
  15. package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +2 -2
  16. package/src/components/TextInput/TextInput.tsx +4 -3
  17. package/src/components/ToggleButton/ToggleButton.tsx +5 -5
  18. package/src/components/Typography/Typography.spec.tsx +22 -0
  19. package/src/components/Typography/Typography.tsx +73 -0
  20. package/src/components/Typography/index.ts +2 -0
  21. package/src/components/{Text/textVariantClasses.ts → Typography/typographyVariantClasses.ts} +36 -38
  22. package/src/components/Typography/util.ts +19 -0
  23. package/dist/Accordion/index.cjs +0 -6
  24. package/dist/Accordion/index.d.cts +0 -13
  25. package/dist/Accordion/index.d.ts +0 -13
  26. package/dist/Accordion/index.js +0 -6
  27. package/dist/Accordion-D9gO9_y3.cjs +0 -88
  28. package/dist/Accordion-ZEdp99Ph.js +0 -77
  29. package/dist/AnimatedChevron/index.cjs +0 -3
  30. package/dist/AnimatedChevron/index.d.cts +0 -11
  31. package/dist/AnimatedChevron/index.d.ts +0 -11
  32. package/dist/AnimatedChevron/index.js +0 -3
  33. package/dist/AnimatedChevron-CwuXgR2r.js +0 -29
  34. package/dist/AnimatedChevron-e_UzWBl0.cjs +0 -37
  35. package/dist/AppliedFiltersScrollbar/index.cjs +0 -48
  36. package/dist/AppliedFiltersScrollbar/index.d.cts +0 -22
  37. package/dist/AppliedFiltersScrollbar/index.d.ts +0 -22
  38. package/dist/AppliedFiltersScrollbar/index.js +0 -44
  39. package/dist/ButtonBase/index.cjs +0 -7
  40. package/dist/ButtonBase/index.d.cts +0 -42
  41. package/dist/ButtonBase/index.d.ts +0 -42
  42. package/dist/ButtonBase/index.js +0 -6
  43. package/dist/ButtonBase-BJ0qXMWD.js +0 -60
  44. package/dist/ButtonBase-BktteD9c.js +0 -1
  45. package/dist/ButtonBase-Cb6Iec6f.cjs +0 -0
  46. package/dist/ButtonBase-VIv-tn7H.cjs +0 -75
  47. package/dist/DynamicFiltersScrollbar/index.cjs +0 -36
  48. package/dist/DynamicFiltersScrollbar/index.d.cts +0 -28
  49. package/dist/DynamicFiltersScrollbar/index.d.ts +0 -28
  50. package/dist/DynamicFiltersScrollbar/index.js +0 -32
  51. package/dist/DynamicFiltersScrollbar-HCYZjI14.cjs +0 -81
  52. package/dist/DynamicFiltersScrollbar-O0ai3cIG.js +0 -66
  53. package/dist/FilterScrollbar/index.cjs +0 -6
  54. package/dist/FilterScrollbar/index.d.cts +0 -47
  55. package/dist/FilterScrollbar/index.d.ts +0 -47
  56. package/dist/FilterScrollbar/index.js +0 -5
  57. package/dist/Headline/index.cjs +0 -4
  58. package/dist/Headline/index.d.cts +0 -21
  59. package/dist/Headline/index.d.ts +0 -21
  60. package/dist/Headline/index.js +0 -4
  61. package/dist/Headline-CKJmd2w4.cjs +0 -72
  62. package/dist/Headline-DtjTB4xS.js +0 -64
  63. package/dist/ImageWithFallback/index.cjs +0 -3
  64. package/dist/ImageWithFallback/index.d.cts +0 -26
  65. package/dist/ImageWithFallback/index.d.ts +0 -26
  66. package/dist/ImageWithFallback/index.js +0 -3
  67. package/dist/ImageWithFallback-CbYsD1_a.js +0 -42
  68. package/dist/ImageWithFallback-Km9h16Vz.cjs +0 -51
  69. package/dist/ModalSheet/index.cjs +0 -4
  70. package/dist/ModalSheet/index.d.cts +0 -38
  71. package/dist/ModalSheet/index.d.ts +0 -38
  72. package/dist/ModalSheet/index.js +0 -4
  73. package/dist/ModalSheet-DwnbbFh7.cjs +0 -313
  74. package/dist/ModalSheet-sMg44OLz.js +0 -302
  75. package/dist/ProductCard/index.cjs +0 -17
  76. package/dist/ProductCard/index.d.cts +0 -2
  77. package/dist/ProductCard/index.d.ts +0 -2
  78. package/dist/ProductCard/index.js +0 -8
  79. package/dist/ProductCard-BDz80MCQ.cjs +0 -319
  80. package/dist/ProductCard-CqhNJShq.js +0 -255
  81. package/dist/ProductGrid/index.cjs +0 -10
  82. package/dist/ProductGrid/index.d.cts +0 -33
  83. package/dist/ProductGrid/index.d.ts +0 -33
  84. package/dist/ProductGrid/index.js +0 -9
  85. package/dist/ProductGrid-8n4XgcMr.js +0 -60
  86. package/dist/ProductGrid-RRcdkY5J.cjs +0 -74
  87. package/dist/RadioButton/index.cjs +0 -6
  88. package/dist/RadioButton/index.d.cts +0 -32
  89. package/dist/RadioButton/index.d.ts +0 -32
  90. package/dist/RadioButton/index.js +0 -6
  91. package/dist/RadioButton-BWnaUI8o.cjs +0 -84
  92. package/dist/RadioButton-CG8_M0hY.js +0 -75
  93. package/dist/RadioButtonGroup/index.cjs +0 -8
  94. package/dist/RadioButtonGroup/index.d.cts +0 -36
  95. package/dist/RadioButtonGroup/index.d.ts +0 -36
  96. package/dist/RadioButtonGroup/index.js +0 -7
  97. package/dist/RadioButtonGroup-B7EuiEP1.js +0 -38
  98. package/dist/RadioButtonGroup-ReQqakpS.cjs +0 -52
  99. package/dist/SearchAutocomplete/index.cjs +0 -3
  100. package/dist/SearchAutocomplete/index.d.cts +0 -13
  101. package/dist/SearchAutocomplete/index.d.ts +0 -13
  102. package/dist/SearchAutocomplete/index.js +0 -3
  103. package/dist/SearchAutocomplete-BMNYZiJL.js +0 -51
  104. package/dist/SearchAutocomplete-BmHdijOv.cjs +0 -62
  105. package/dist/SearchFilter/index.cjs +0 -19
  106. package/dist/SearchFilter/index.d.cts +0 -91
  107. package/dist/SearchFilter/index.d.ts +0 -91
  108. package/dist/SearchFilter/index.js +0 -14
  109. package/dist/SearchFilter-C8mgj84o.js +0 -268
  110. package/dist/SearchFilter-FrdHPM5O.cjs +0 -307
  111. package/dist/SearchInput/index.cjs +0 -7
  112. package/dist/SearchInput/index.d.cts +0 -34
  113. package/dist/SearchInput/index.d.ts +0 -34
  114. package/dist/SearchInput/index.js +0 -6
  115. package/dist/SearchInput--x9NTMTb.cjs +0 -106
  116. package/dist/SearchInput-IBq83nqF.js +0 -89
  117. package/dist/SearchInputForm/index.cjs +0 -39
  118. package/dist/SearchInputForm/index.d.cts +0 -34
  119. package/dist/SearchInputForm/index.d.ts +0 -34
  120. package/dist/SearchInputForm/index.js +0 -37
  121. package/dist/SearchResultsContent/index.cjs +0 -47
  122. package/dist/SearchResultsContent/index.d.cts +0 -48
  123. package/dist/SearchResultsContent/index.d.ts +0 -48
  124. package/dist/SearchResultsContent/index.js +0 -44
  125. package/dist/SearchResultsFilterSidebar/index.cjs +0 -62
  126. package/dist/SearchResultsFilterSidebar/index.d.cts +0 -2
  127. package/dist/SearchResultsFilterSidebar/index.d.ts +0 -2
  128. package/dist/SearchResultsFilterSidebar/index.js +0 -57
  129. package/dist/SearchResultsStates/index.cjs +0 -17
  130. package/dist/SearchResultsStates/index.d.cts +0 -69
  131. package/dist/SearchResultsStates/index.d.ts +0 -69
  132. package/dist/SearchResultsStates/index.js +0 -15
  133. package/dist/SearchResultsStates-D7dM35qq.js +0 -110
  134. package/dist/SearchResultsStates-nlaPbkj3.cjs +0 -132
  135. package/dist/SparkleAnimation/index.cjs +0 -4
  136. package/dist/SparkleAnimation/index.d.cts +0 -23
  137. package/dist/SparkleAnimation/index.d.ts +0 -23
  138. package/dist/SparkleAnimation/index.js +0 -3
  139. package/dist/SparkleAnimation-D1aZE-7A.cjs +0 -101
  140. package/dist/SparkleAnimation-DtWkXmkN.js +0 -84
  141. package/dist/Spinner/index.cjs +0 -3
  142. package/dist/Spinner/index.d.cts +0 -11
  143. package/dist/Spinner/index.d.ts +0 -11
  144. package/dist/Spinner/index.js +0 -3
  145. package/dist/Spinner-bg6jb_ks.js +0 -38
  146. package/dist/Spinner-rcWX566W.cjs +0 -46
  147. package/dist/SuggestionButton/index.cjs +0 -188
  148. package/dist/SuggestionButton/index.d.cts +0 -35
  149. package/dist/SuggestionButton/index.d.ts +0 -35
  150. package/dist/SuggestionButton/index.js +0 -180
  151. package/dist/Text/index.cjs +0 -10
  152. package/dist/Text/index.d.cts +0 -42
  153. package/dist/Text/index.d.ts +0 -42
  154. package/dist/Text/index.js +0 -5
  155. package/dist/Text-BLzNhX4H.js +0 -42
  156. package/dist/Text-BMsncrpY.js +0 -10
  157. package/dist/Text-C8t_iEj6.cjs +0 -16
  158. package/dist/Text-DllCE9_D.cjs +0 -50
  159. package/dist/TextInput/index.cjs +0 -4
  160. package/dist/TextInput/index.d.cts +0 -12
  161. package/dist/TextInput/index.d.ts +0 -12
  162. package/dist/TextInput/index.js +0 -4
  163. package/dist/TextInput-BeHPlVHT.js +0 -31
  164. package/dist/TextInput-CGs4BY1q.cjs +0 -40
  165. package/dist/ToggleButton/index.cjs +0 -6
  166. package/dist/ToggleButton/index.d.cts +0 -30
  167. package/dist/ToggleButton/index.d.ts +0 -30
  168. package/dist/ToggleButton/index.js +0 -6
  169. package/dist/ToggleButton-CRiPqTCb.js +0 -60
  170. package/dist/ToggleButton-DfJZ8POQ.cjs +0 -68
  171. package/dist/chunk-CUT6urMc.cjs +0 -30
  172. package/dist/colorsConfig-Ck2jeqWe.js +0 -26
  173. package/dist/colorsConfig-CqCKftuM.cjs +0 -38
  174. package/dist/index-B9WeFNlO.d.cts +0 -325
  175. package/dist/index-CLGe_Pam.d.cts +0 -46
  176. package/dist/index-CeECGrFM.d.ts +0 -325
  177. package/dist/index-PSzeHU2s.d.ts +0 -46
  178. package/dist/searchFilterSidebarVariants-B05f5SD5.js +0 -34
  179. package/dist/searchFilterSidebarVariants-NQhqq-NT.cjs +0 -39
  180. package/dist/textVariantClasses-B0gNjzl4.d.cts +0 -174
  181. package/dist/textVariantClasses-Bl8SAGwZ.d.ts +0 -174
  182. package/dist/textVariantClasses-CBre7vXv.cjs +0 -123
  183. package/dist/textVariantClasses-CRrTb43V.js +0 -99
  184. package/dist/types-BhGjnuWx.d.cts +0 -4
  185. package/dist/types-CTOdb0G0.d.ts +0 -4
  186. package/src/components/Headline/Headline.tsx +0 -81
  187. package/src/components/Headline/index.ts +0 -1
  188. package/src/components/Text/Text.tsx +0 -58
  189. package/src/components/Text/index.ts +0 -3
  190. package/src/components/Text/types.ts +0 -23
@@ -1,11 +0,0 @@
1
- import * as react_jsx_runtime8 from "react/jsx-runtime";
2
-
3
- //#region src/components/Spinner/Spinner.d.ts
4
- type SpinnerProps = {
5
- className?: string;
6
- };
7
- declare const Spinner: ({
8
- className
9
- }: SpinnerProps) => react_jsx_runtime8.JSX.Element;
10
- //#endregion
11
- export { Spinner };
@@ -1,11 +0,0 @@
1
- import * as react_jsx_runtime15 from "react/jsx-runtime";
2
-
3
- //#region src/components/Spinner/Spinner.d.ts
4
- type SpinnerProps = {
5
- className?: string;
6
- };
7
- declare const Spinner: ({
8
- className
9
- }: SpinnerProps) => react_jsx_runtime15.JSX.Element;
10
- //#endregion
11
- export { Spinner };
@@ -1,3 +0,0 @@
1
- import { Spinner } from "../Spinner-bg6jb_ks.js";
2
-
3
- export { Spinner };
@@ -1,38 +0,0 @@
1
- import classNames from "classnames";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
-
4
- //#region src/components/Spinner/Spinner.tsx
5
- const Spinner = ({ className }) => {
6
- const svgClassnames = classNames({
7
- "spiffy-tw-w-4": true,
8
- "spiffy-tw-h-4": true,
9
- "spiffy-tw-text-gray-200": true,
10
- "spiffy-tw-animate-spin": true,
11
- "spiffy-tw-dark:text-gray-600": true,
12
- "spiffy-tw-fill-black": true
13
- }, className);
14
- const spanClassnames = classNames({ "spiffy-tw-sr-only": true });
15
- return /* @__PURE__ */ jsxs("div", {
16
- role: "status",
17
- children: [/* @__PURE__ */ jsxs("svg", {
18
- "aria-hidden": "true",
19
- className: svgClassnames,
20
- viewBox: "0 0 100 101",
21
- fill: "none",
22
- xmlns: "http://www.w3.org/2000/svg",
23
- children: [/* @__PURE__ */ jsx("path", {
24
- d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
25
- fill: "currentColor"
26
- }), /* @__PURE__ */ jsx("path", {
27
- d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
28
- fill: "currentFill"
29
- })]
30
- }), /* @__PURE__ */ jsx("span", {
31
- className: spanClassnames,
32
- children: "Loading..."
33
- })]
34
- });
35
- };
36
-
37
- //#endregion
38
- export { Spinner };
@@ -1,46 +0,0 @@
1
- const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- let classnames = require("classnames");
3
- classnames = require_chunk.__toESM(classnames);
4
- let react_jsx_runtime = require("react/jsx-runtime");
5
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
6
-
7
- //#region src/components/Spinner/Spinner.tsx
8
- const Spinner = ({ className }) => {
9
- const svgClassnames = (0, classnames.default)({
10
- "spiffy-tw-w-4": true,
11
- "spiffy-tw-h-4": true,
12
- "spiffy-tw-text-gray-200": true,
13
- "spiffy-tw-animate-spin": true,
14
- "spiffy-tw-dark:text-gray-600": true,
15
- "spiffy-tw-fill-black": true
16
- }, className);
17
- const spanClassnames = (0, classnames.default)({ "spiffy-tw-sr-only": true });
18
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19
- role: "status",
20
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
21
- "aria-hidden": "true",
22
- className: svgClassnames,
23
- viewBox: "0 0 100 101",
24
- fill: "none",
25
- xmlns: "http://www.w3.org/2000/svg",
26
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
27
- d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
28
- fill: "currentColor"
29
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
30
- d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
31
- fill: "currentFill"
32
- })]
33
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
34
- className: spanClassnames,
35
- children: "Loading..."
36
- })]
37
- });
38
- };
39
-
40
- //#endregion
41
- Object.defineProperty(exports, 'Spinner', {
42
- enumerable: true,
43
- get: function () {
44
- return Spinner;
45
- }
46
- });
@@ -1,188 +0,0 @@
1
- const require_chunk = require('../chunk-CUT6urMc.cjs');
2
- require('../textVariantClasses-CBre7vXv.cjs');
3
- require('../Text-DllCE9_D.cjs');
4
- const require_ButtonBase = require('../ButtonBase-VIv-tn7H.cjs');
5
- let classnames = require("classnames");
6
- classnames = require_chunk.__toESM(classnames);
7
- let react_jsx_runtime = require("react/jsx-runtime");
8
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
9
- let __envive_ai_react_icons_OutlinedStar = require("@envive-ai/react-icons/OutlinedStar");
10
- __envive_ai_react_icons_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_OutlinedStar);
11
- let __envive_ai_react_icons_FourPointStar = require("@envive-ai/react-icons/FourPointStar");
12
- __envive_ai_react_icons_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_FourPointStar);
13
-
14
- //#region src/components/SuggestionButton/SuggestionButton.tsx
15
- const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
16
- const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
17
- const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
18
- const BORDER_CLASS = "spiffy-tw-border";
19
- const TEXT_LINK_CLASSES = [
20
- "spiffy-tw-text-[--spiffy-colors-text-link]",
21
- "spiffy-tw-fill-[--spiffy-colors-text-link]",
22
- "spiffy-tw-stroke-[--spiffy-colors-text-link]"
23
- ];
24
- const TEXT_LIGHT_CLASSES = [
25
- "spiffy-tw-text-[--spiffy-colors-text-light]",
26
- "spiffy-tw-fill-[--spiffy-colors-text-light]",
27
- "spiffy-tw-stroke-[--spiffy-colors-text-light]"
28
- ];
29
- const TEXT_PRIMARY_CLASSES = [
30
- "spiffy-tw-text-[--spiffy-colors-text-primary]",
31
- "spiffy-tw-fill-[--spiffy-colors-text-primary]",
32
- "spiffy-tw-stroke-[--spiffy-colors-text-primary]"
33
- ];
34
- const ACCENT_PRIMARY_CLASSES = ["spiffy-tw-fill-[--spiffy-colors-accent-primary]", "spiffy-tw-stroke-[--spiffy-colors-accent-primary]"];
35
- const DARK_BACKGROUND_CLASSES = ["spiffy-tw-bg-[--spiffy-colors-background-dark]", "spiffy-tw-border-[--spiffy-colors-background-dark]"];
36
- const SECONDARY_DARK_BACKGROUND_CLASSES = ["spiffy-tw-bg-[--spiffy-colors-background-secondary-dark]", "spiffy-tw-border-[--spiffy-colors-background-secondary-dark]"];
37
- const variantClassMap = new Map([
38
- ["outlined", ["spiffy-tw-border-[--spiffy-colors-border-outline]", ...TEXT_LINK_CLASSES]],
39
- ["outlinedLight", [
40
- "spiffy-tw-border-[--spiffy-colors-border-outline]",
41
- "spiffy-tw-bg-[--spiffy-colors-background-light]",
42
- ...TEXT_LINK_CLASSES,
43
- BORDER_CLASS
44
- ]],
45
- ["primary", [
46
- "spiffy-tw-bg-[--spiffy-colors-background-primary]",
47
- "spiffy-tw-border-[--spiffy-colors-background-primary]",
48
- ...TEXT_LIGHT_CLASSES,
49
- BORDER_CLASS
50
- ]],
51
- ["secondary", [
52
- "spiffy-tw-bg-[--spiffy-colors-background-secondary]",
53
- "spiffy-tw-text-[--spiffy-colors-text-link]",
54
- "spiffy-tw-border-[--spiffy-colors-background-secondary]",
55
- ...ACCENT_PRIMARY_CLASSES,
56
- BORDER_CLASS
57
- ]],
58
- ["tertiary", [
59
- "spiffy-tw-bg-[--spiffy-colors-background-tertiary]",
60
- "spiffy-tw-border-[--spiffy-colors-background-tertiary]",
61
- ...TEXT_LINK_CLASSES,
62
- BORDER_CLASS
63
- ]],
64
- ["dark", [
65
- ...DARK_BACKGROUND_CLASSES,
66
- ...TEXT_LIGHT_CLASSES,
67
- BORDER_CLASS
68
- ]],
69
- ["darkPrimary", [
70
- ...DARK_BACKGROUND_CLASSES,
71
- "spiffy-tw-text-[--spiffy-colors-text-light]",
72
- ...ACCENT_PRIMARY_CLASSES,
73
- BORDER_CLASS
74
- ]],
75
- ["darkAccent", [
76
- ...DARK_BACKGROUND_CLASSES,
77
- "spiffy-tw-text-[--spiffy-colors-text-light]",
78
- "spiffy-tw-fill-[--spiffy-colors-text-accent]",
79
- "spiffy-tw-stroke-[--spiffy-colors-text-accent]",
80
- BORDER_CLASS
81
- ]],
82
- ["transparent", [
83
- "spiffy-tw-bg-transparent",
84
- "spiffy-tw-border-[--spiffy-colors-background-light]",
85
- "spiffy-tw-text-[--spiffy-colors-text-light]",
86
- "spiffy-tw-fill-transparent",
87
- "spiffy-tw-stroke-[--spiffy-colors-text-light]",
88
- BORDER_CLASS
89
- ]],
90
- ["transparentDark", [
91
- "spiffy-tw-bg-transparent",
92
- "spiffy-tw-border-[--spiffy-colors-border-light]",
93
- "spiffy-tw-text-[--spiffy-colors-text-primary]",
94
- "spiffy-tw-fill-transparent",
95
- "spiffy-tw-stroke-[--spiffy-colors-text-primary]",
96
- BORDER_CLASS
97
- ]],
98
- ["secondaryDark", [
99
- ...SECONDARY_DARK_BACKGROUND_CLASSES,
100
- ...TEXT_LINK_CLASSES,
101
- BORDER_CLASS
102
- ]],
103
- ["secondaryAccent", [
104
- ...SECONDARY_DARK_BACKGROUND_CLASSES,
105
- "spiffy-tw-text-[--spiffy-colors-text-link]",
106
- ...ACCENT_PRIMARY_CLASSES,
107
- BORDER_CLASS
108
- ]],
109
- ["lightDark", [
110
- "spiffy-tw-bg-[--spiffy-colors-background-light]",
111
- "spiffy-tw-border-[--spiffy-colors-background-dark]",
112
- ...TEXT_PRIMARY_CLASSES,
113
- BORDER_CLASS
114
- ]]
115
- ]);
116
- const borderedVariants = [
117
- "outlined",
118
- "outlinedLight",
119
- "primary",
120
- "secondary",
121
- "tertiary",
122
- "dark",
123
- "darkAccent",
124
- "darkPrimary",
125
- "transparent",
126
- "transparentDark",
127
- "secondaryDark",
128
- "secondaryAccent",
129
- "lightDark"
130
- ];
131
- const hoverTransform = (variantClass) => variantClass?.map((className) => `hover:${className}`);
132
- const SuggestionButton = ({ variant, hoverVariant, isDisabled, content, boldText, borderRadius = "lg", isAnswer = false, dataAttributes, dataTestId, onClick }) => {
133
- const buttonClassName = (0, classnames.default)({
134
- [SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS]: !isAnswer,
135
- [SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS]: isAnswer,
136
- "!spiffy-tw-rounded-[20px]": borderRadius === "lg",
137
- "!spiffy-tw-rounded-[8px]": borderRadius === "md",
138
- "!spiffy-tw-rounded-[0px]": borderRadius === "sm",
139
- "spiffy-tw-border-[1px]": borderedVariants.includes(variant),
140
- "spiffy-tw-border-solid": borderedVariants.includes(variant)
141
- });
142
- const textClassName = (0, classnames.default)({
143
- "spiffy-tw-text-[14px]": true,
144
- "spiffy-tw-leading-[100%]": true,
145
- "!spiffy-tw-font-bold": boldText
146
- });
147
- const iconClass = (0, classnames.default)({
148
- "spiffy-tw-w-[11px]": true,
149
- "spiffy-tw-h-[11px]": true,
150
- "spiffy-tw-stroke-inherit": true,
151
- "spiffy-tw-fill-inherit": true
152
- });
153
- const baseClasses = variantClassMap.get(variant) ?? [];
154
- const hoverClasses = variantClassMap.get(hoverVariant) ?? [];
155
- const baseBorderClasses = baseClasses.filter((cls) => cls.includes("border"));
156
- const baseNonBorderClasses = baseClasses.filter((cls) => !cls.includes("border"));
157
- const hoverBorderClasses = hoverClasses.filter((cls) => cls.includes("border"));
158
- const hoverNonBorderClasses = hoverClasses.filter((cls) => !cls.includes("border"));
159
- const variantClasses = [
160
- ...baseNonBorderClasses,
161
- ...hoverTransform(hoverNonBorderClasses),
162
- ...baseBorderClasses,
163
- ...hoverTransform(hoverBorderClasses)
164
- ];
165
- const buttonClass = `${buttonClassName} ${variantClasses.join(" ")}`;
166
- const getIcon = () => {
167
- if (isAnswer) return void 0;
168
- if (variant === "transparentDark") return __envive_ai_react_icons_OutlinedStar.default;
169
- return __envive_ai_react_icons_FourPointStar.default;
170
- };
171
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ButtonBase.ButtonBase, {
172
- text: content,
173
- dataAttributes,
174
- dataTestId,
175
- isDisabled,
176
- icon: getIcon(),
177
- iconClass: isAnswer ? void 0 : iconClass,
178
- textClass: `${SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS} ${textClassName}`,
179
- buttonClass,
180
- onClick
181
- });
182
- };
183
-
184
- //#endregion
185
- exports.SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS;
186
- exports.SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS;
187
- exports.SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS;
188
- exports.SuggestionButton = SuggestionButton;
@@ -1,35 +0,0 @@
1
- import * as react_jsx_runtime14 from "react/jsx-runtime";
2
- import { TestProps } from "@envive-ai/react-hooks/types";
3
-
4
- //#region src/components/SuggestionButton/types.d.ts
5
- type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
6
- //#endregion
7
- //#region src/components/SuggestionButton/SuggestionButton.d.ts
8
- declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
9
- declare const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
10
- declare const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
11
- interface SuggestionButtonProps extends TestProps {
12
- variant: SuggestionButtonVariant;
13
- hoverVariant: SuggestionButtonVariant;
14
- isDisabled: boolean;
15
- content: string;
16
- boldText?: boolean;
17
- borderRadius?: 'sm' | 'md' | 'lg';
18
- isAnswer?: boolean;
19
- dataAttributes?: Record<string, string>;
20
- onClick: () => void;
21
- }
22
- declare const SuggestionButton: ({
23
- variant,
24
- hoverVariant,
25
- isDisabled,
26
- content,
27
- boldText,
28
- borderRadius,
29
- isAnswer,
30
- dataAttributes,
31
- dataTestId,
32
- onClick
33
- }: SuggestionButtonProps) => react_jsx_runtime14.JSX.Element;
34
- //#endregion
35
- export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton, SuggestionButtonVariant };
@@ -1,35 +0,0 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
- import { TestProps } from "@envive-ai/react-hooks/types";
3
-
4
- //#region src/components/SuggestionButton/types.d.ts
5
- type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
6
- //#endregion
7
- //#region src/components/SuggestionButton/SuggestionButton.d.ts
8
- declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
9
- declare const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
10
- declare const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
11
- interface SuggestionButtonProps extends TestProps {
12
- variant: SuggestionButtonVariant;
13
- hoverVariant: SuggestionButtonVariant;
14
- isDisabled: boolean;
15
- content: string;
16
- boldText?: boolean;
17
- borderRadius?: 'sm' | 'md' | 'lg';
18
- isAnswer?: boolean;
19
- dataAttributes?: Record<string, string>;
20
- onClick: () => void;
21
- }
22
- declare const SuggestionButton: ({
23
- variant,
24
- hoverVariant,
25
- isDisabled,
26
- content,
27
- boldText,
28
- borderRadius,
29
- isAnswer,
30
- dataAttributes,
31
- dataTestId,
32
- onClick
33
- }: SuggestionButtonProps) => react_jsx_runtime0.JSX.Element;
34
- //#endregion
35
- export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton, SuggestionButtonVariant };
@@ -1,180 +0,0 @@
1
- import "../textVariantClasses-CRrTb43V.js";
2
- import "../Text-BLzNhX4H.js";
3
- import { ButtonBase } from "../ButtonBase-BJ0qXMWD.js";
4
- import classNames from "classnames";
5
- import { jsx } from "react/jsx-runtime";
6
- import OutlinedStar from "@envive-ai/react-icons/OutlinedStar";
7
- import FourPointStar from "@envive-ai/react-icons/FourPointStar";
8
-
9
- //#region src/components/SuggestionButton/SuggestionButton.tsx
10
- const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
11
- const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
12
- const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
13
- const BORDER_CLASS = "spiffy-tw-border";
14
- const TEXT_LINK_CLASSES = [
15
- "spiffy-tw-text-[--spiffy-colors-text-link]",
16
- "spiffy-tw-fill-[--spiffy-colors-text-link]",
17
- "spiffy-tw-stroke-[--spiffy-colors-text-link]"
18
- ];
19
- const TEXT_LIGHT_CLASSES = [
20
- "spiffy-tw-text-[--spiffy-colors-text-light]",
21
- "spiffy-tw-fill-[--spiffy-colors-text-light]",
22
- "spiffy-tw-stroke-[--spiffy-colors-text-light]"
23
- ];
24
- const TEXT_PRIMARY_CLASSES = [
25
- "spiffy-tw-text-[--spiffy-colors-text-primary]",
26
- "spiffy-tw-fill-[--spiffy-colors-text-primary]",
27
- "spiffy-tw-stroke-[--spiffy-colors-text-primary]"
28
- ];
29
- const ACCENT_PRIMARY_CLASSES = ["spiffy-tw-fill-[--spiffy-colors-accent-primary]", "spiffy-tw-stroke-[--spiffy-colors-accent-primary]"];
30
- const DARK_BACKGROUND_CLASSES = ["spiffy-tw-bg-[--spiffy-colors-background-dark]", "spiffy-tw-border-[--spiffy-colors-background-dark]"];
31
- const SECONDARY_DARK_BACKGROUND_CLASSES = ["spiffy-tw-bg-[--spiffy-colors-background-secondary-dark]", "spiffy-tw-border-[--spiffy-colors-background-secondary-dark]"];
32
- const variantClassMap = new Map([
33
- ["outlined", ["spiffy-tw-border-[--spiffy-colors-border-outline]", ...TEXT_LINK_CLASSES]],
34
- ["outlinedLight", [
35
- "spiffy-tw-border-[--spiffy-colors-border-outline]",
36
- "spiffy-tw-bg-[--spiffy-colors-background-light]",
37
- ...TEXT_LINK_CLASSES,
38
- BORDER_CLASS
39
- ]],
40
- ["primary", [
41
- "spiffy-tw-bg-[--spiffy-colors-background-primary]",
42
- "spiffy-tw-border-[--spiffy-colors-background-primary]",
43
- ...TEXT_LIGHT_CLASSES,
44
- BORDER_CLASS
45
- ]],
46
- ["secondary", [
47
- "spiffy-tw-bg-[--spiffy-colors-background-secondary]",
48
- "spiffy-tw-text-[--spiffy-colors-text-link]",
49
- "spiffy-tw-border-[--spiffy-colors-background-secondary]",
50
- ...ACCENT_PRIMARY_CLASSES,
51
- BORDER_CLASS
52
- ]],
53
- ["tertiary", [
54
- "spiffy-tw-bg-[--spiffy-colors-background-tertiary]",
55
- "spiffy-tw-border-[--spiffy-colors-background-tertiary]",
56
- ...TEXT_LINK_CLASSES,
57
- BORDER_CLASS
58
- ]],
59
- ["dark", [
60
- ...DARK_BACKGROUND_CLASSES,
61
- ...TEXT_LIGHT_CLASSES,
62
- BORDER_CLASS
63
- ]],
64
- ["darkPrimary", [
65
- ...DARK_BACKGROUND_CLASSES,
66
- "spiffy-tw-text-[--spiffy-colors-text-light]",
67
- ...ACCENT_PRIMARY_CLASSES,
68
- BORDER_CLASS
69
- ]],
70
- ["darkAccent", [
71
- ...DARK_BACKGROUND_CLASSES,
72
- "spiffy-tw-text-[--spiffy-colors-text-light]",
73
- "spiffy-tw-fill-[--spiffy-colors-text-accent]",
74
- "spiffy-tw-stroke-[--spiffy-colors-text-accent]",
75
- BORDER_CLASS
76
- ]],
77
- ["transparent", [
78
- "spiffy-tw-bg-transparent",
79
- "spiffy-tw-border-[--spiffy-colors-background-light]",
80
- "spiffy-tw-text-[--spiffy-colors-text-light]",
81
- "spiffy-tw-fill-transparent",
82
- "spiffy-tw-stroke-[--spiffy-colors-text-light]",
83
- BORDER_CLASS
84
- ]],
85
- ["transparentDark", [
86
- "spiffy-tw-bg-transparent",
87
- "spiffy-tw-border-[--spiffy-colors-border-light]",
88
- "spiffy-tw-text-[--spiffy-colors-text-primary]",
89
- "spiffy-tw-fill-transparent",
90
- "spiffy-tw-stroke-[--spiffy-colors-text-primary]",
91
- BORDER_CLASS
92
- ]],
93
- ["secondaryDark", [
94
- ...SECONDARY_DARK_BACKGROUND_CLASSES,
95
- ...TEXT_LINK_CLASSES,
96
- BORDER_CLASS
97
- ]],
98
- ["secondaryAccent", [
99
- ...SECONDARY_DARK_BACKGROUND_CLASSES,
100
- "spiffy-tw-text-[--spiffy-colors-text-link]",
101
- ...ACCENT_PRIMARY_CLASSES,
102
- BORDER_CLASS
103
- ]],
104
- ["lightDark", [
105
- "spiffy-tw-bg-[--spiffy-colors-background-light]",
106
- "spiffy-tw-border-[--spiffy-colors-background-dark]",
107
- ...TEXT_PRIMARY_CLASSES,
108
- BORDER_CLASS
109
- ]]
110
- ]);
111
- const borderedVariants = [
112
- "outlined",
113
- "outlinedLight",
114
- "primary",
115
- "secondary",
116
- "tertiary",
117
- "dark",
118
- "darkAccent",
119
- "darkPrimary",
120
- "transparent",
121
- "transparentDark",
122
- "secondaryDark",
123
- "secondaryAccent",
124
- "lightDark"
125
- ];
126
- const hoverTransform = (variantClass) => variantClass?.map((className) => `hover:${className}`);
127
- const SuggestionButton = ({ variant, hoverVariant, isDisabled, content, boldText, borderRadius = "lg", isAnswer = false, dataAttributes, dataTestId, onClick }) => {
128
- const buttonClassName = classNames({
129
- [SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS]: !isAnswer,
130
- [SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS]: isAnswer,
131
- "!spiffy-tw-rounded-[20px]": borderRadius === "lg",
132
- "!spiffy-tw-rounded-[8px]": borderRadius === "md",
133
- "!spiffy-tw-rounded-[0px]": borderRadius === "sm",
134
- "spiffy-tw-border-[1px]": borderedVariants.includes(variant),
135
- "spiffy-tw-border-solid": borderedVariants.includes(variant)
136
- });
137
- const textClassName = classNames({
138
- "spiffy-tw-text-[14px]": true,
139
- "spiffy-tw-leading-[100%]": true,
140
- "!spiffy-tw-font-bold": boldText
141
- });
142
- const iconClass = classNames({
143
- "spiffy-tw-w-[11px]": true,
144
- "spiffy-tw-h-[11px]": true,
145
- "spiffy-tw-stroke-inherit": true,
146
- "spiffy-tw-fill-inherit": true
147
- });
148
- const baseClasses = variantClassMap.get(variant) ?? [];
149
- const hoverClasses = variantClassMap.get(hoverVariant) ?? [];
150
- const baseBorderClasses = baseClasses.filter((cls) => cls.includes("border"));
151
- const baseNonBorderClasses = baseClasses.filter((cls) => !cls.includes("border"));
152
- const hoverBorderClasses = hoverClasses.filter((cls) => cls.includes("border"));
153
- const hoverNonBorderClasses = hoverClasses.filter((cls) => !cls.includes("border"));
154
- const variantClasses = [
155
- ...baseNonBorderClasses,
156
- ...hoverTransform(hoverNonBorderClasses),
157
- ...baseBorderClasses,
158
- ...hoverTransform(hoverBorderClasses)
159
- ];
160
- const buttonClass = `${buttonClassName} ${variantClasses.join(" ")}`;
161
- const getIcon = () => {
162
- if (isAnswer) return void 0;
163
- if (variant === "transparentDark") return OutlinedStar;
164
- return FourPointStar;
165
- };
166
- return /* @__PURE__ */ jsx(ButtonBase, {
167
- text: content,
168
- dataAttributes,
169
- dataTestId,
170
- isDisabled,
171
- icon: getIcon(),
172
- iconClass: isAnswer ? void 0 : iconClass,
173
- textClass: `${SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS} ${textClassName}`,
174
- buttonClass,
175
- onClick
176
- });
177
- };
178
-
179
- //#endregion
180
- export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton };
@@ -1,10 +0,0 @@
1
- const require_textVariantClasses = require('../textVariantClasses-CBre7vXv.cjs');
2
- const require_Text = require('../Text-DllCE9_D.cjs');
3
- const require_Text$1 = require('../Text-C8t_iEj6.cjs');
4
-
5
- exports.ExpandableTextOverrides = require_Text$1.ExpandableTextOverrides;
6
- exports.HeadlineVariantMap = require_textVariantClasses.HeadlineVariantMap;
7
- exports.Text = require_Text.Text;
8
- exports.TextStyleVariantMap = require_textVariantClasses.TextStyleVariantMap;
9
- exports.TextVariantMap = require_textVariantClasses.TextVariantMap;
10
- exports.getVariantPlaceholderClassNames = require_textVariantClasses.getVariantPlaceholderClassNames;
@@ -1,42 +0,0 @@
1
- import { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames } from "../textVariantClasses-B0gNjzl4.cjs";
2
- import * as react_jsx_runtime6 from "react/jsx-runtime";
3
-
4
- //#region src/components/Text/types.d.ts
5
- declare enum ExpandableTextOverrides {
6
- EXPANDABLE_TEXT_CONTAINER = "spiffy-expandable-text-container",
7
- EXPANDABLE_TEXT = "spiffy-expandable-text",
8
- EXPANDABLE_BUTTON = "spiffy-expandable-button",
9
- }
10
- type TextVariant = 'body1' | 'body2' | 'body3' | 'body4' | 'body5';
11
- type TextType = 'p' | 'span' | 'sub';
12
- type HeadlineProps = {
13
- children: React.ReactNode;
14
- className?: string;
15
- style?: React.CSSProperties;
16
- variant?: HeadlineVariant;
17
- testId?: string;
18
- id?: string;
19
- };
20
- type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
21
- //#endregion
22
- //#region src/components/Text/Text.d.ts
23
- type TextProps = {
24
- children: React.ReactNode;
25
- noOfLines?: number;
26
- className?: string;
27
- style?: React.CSSProperties;
28
- variant?: TextVariant;
29
- type?: TextType;
30
- testId?: string;
31
- };
32
- declare const Text: ({
33
- children,
34
- className,
35
- style,
36
- noOfLines,
37
- testId,
38
- type,
39
- variant
40
- }: TextProps) => react_jsx_runtime6.JSX.Element;
41
- //#endregion
42
- export { ExpandableTextOverrides, HeadlineProps, HeadlineVariant, HeadlineVariantMap, Text, TextStyleVariantMap, TextType, TextVariant, TextVariantMap, getVariantPlaceholderClassNames };
@@ -1,42 +0,0 @@
1
- import { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames } from "../textVariantClasses-Bl8SAGwZ.js";
2
- import * as react_jsx_runtime11 from "react/jsx-runtime";
3
-
4
- //#region src/components/Text/types.d.ts
5
- declare enum ExpandableTextOverrides {
6
- EXPANDABLE_TEXT_CONTAINER = "spiffy-expandable-text-container",
7
- EXPANDABLE_TEXT = "spiffy-expandable-text",
8
- EXPANDABLE_BUTTON = "spiffy-expandable-button",
9
- }
10
- type TextVariant = 'body1' | 'body2' | 'body3' | 'body4' | 'body5';
11
- type TextType = 'p' | 'span' | 'sub';
12
- type HeadlineProps = {
13
- children: React.ReactNode;
14
- className?: string;
15
- style?: React.CSSProperties;
16
- variant?: HeadlineVariant;
17
- testId?: string;
18
- id?: string;
19
- };
20
- type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
21
- //#endregion
22
- //#region src/components/Text/Text.d.ts
23
- type TextProps = {
24
- children: React.ReactNode;
25
- noOfLines?: number;
26
- className?: string;
27
- style?: React.CSSProperties;
28
- variant?: TextVariant;
29
- type?: TextType;
30
- testId?: string;
31
- };
32
- declare const Text: ({
33
- children,
34
- className,
35
- style,
36
- noOfLines,
37
- testId,
38
- type,
39
- variant
40
- }: TextProps) => react_jsx_runtime11.JSX.Element;
41
- //#endregion
42
- export { ExpandableTextOverrides, HeadlineProps, HeadlineVariant, HeadlineVariantMap, Text, TextStyleVariantMap, TextType, TextVariant, TextVariantMap, getVariantPlaceholderClassNames };
@@ -1,5 +0,0 @@
1
- import { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames } from "../textVariantClasses-CRrTb43V.js";
2
- import { Text } from "../Text-BLzNhX4H.js";
3
- import { ExpandableTextOverrides } from "../Text-BMsncrpY.js";
4
-
5
- export { ExpandableTextOverrides, HeadlineVariantMap, Text, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames };