@zenpatient-org/healthspan-marketing-ui 0.2.75 → 0.2.77

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 (182) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +1 -2
  2. package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +1 -2
  3. package/dist/components/AdvancedGallery/AdvancedGallery.d.ts +0 -1
  4. package/dist/components/AdvancedGallery/components/ImageGalleryPagination/ImageGalleryPagination.d.ts +1 -2
  5. package/dist/components/AdvancedGallery/components/VideoSlide/VideoSlide.d.ts +0 -1
  6. package/dist/components/AnchorLinks/AnchorLinks.d.ts +0 -1
  7. package/dist/components/AnchorLinks/types.d.ts +0 -1
  8. package/dist/components/Benefit/Benefit.d.ts +1 -2
  9. package/dist/components/Button/Button.d.ts +2 -3
  10. package/dist/components/Callback/Callback.d.ts +2 -3
  11. package/dist/components/Callback/constants.d.ts +2 -3
  12. package/dist/components/Checkbox/Checkbox.cjs.js +1 -1
  13. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  14. package/dist/components/Checkbox/Checkbox.es.js +34 -42
  15. package/dist/components/Checkbox/checkbox.module.css +16 -5
  16. package/dist/components/ClaimBlock/ClaimBlock.d.ts +1 -2
  17. package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.d.ts +0 -1
  18. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +0 -1
  19. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.d.ts +0 -1
  20. package/dist/components/ComplexImageCarousel/useComplexImageCarousel.d.ts +0 -1
  21. package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +3 -4
  22. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.d.ts +1 -2
  23. package/dist/components/ComplexTooltip/types.d.ts +1 -2
  24. package/dist/components/ContentTabs/ContentTabs.d.ts +2 -3
  25. package/dist/components/Cursor/Cursor.d.ts +1 -2
  26. package/dist/components/Cursor/components/ClientCursor.d.ts +1 -2
  27. package/dist/components/Cursor/components/ServerCursor.d.ts +1 -2
  28. package/dist/components/FAQComponent/FAQComponent.d.ts +0 -1
  29. package/dist/components/FAQComponent/types.d.ts +0 -1
  30. package/dist/components/FAQComponentItem/FAQComponentItem.d.ts +0 -1
  31. package/dist/components/FAQComponentItem/types.d.ts +1 -2
  32. package/dist/components/FilterError/FilterError.d.ts +0 -1
  33. package/dist/components/FilterMenu/FilterMenu.d.ts +1 -2
  34. package/dist/components/HighlightCard/HighlightCard.d.ts +1 -2
  35. package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +3 -4
  36. package/dist/components/Icon/Icon.d.ts +0 -1
  37. package/dist/components/Icon/iconsMap.d.ts +0 -1
  38. package/dist/components/IconBracket/IconBracket.d.ts +0 -1
  39. package/dist/components/IconBracket/types.d.ts +0 -1
  40. package/dist/components/IconButton/IconButton.d.ts +2 -3
  41. package/dist/components/ImageGallery/ImageGallery.d.ts +0 -1
  42. package/dist/components/ImageGallery/components/ImageGalleryPagination/ImageGalleryPagination.d.ts +1 -2
  43. package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +1 -2
  44. package/dist/components/Label/Label.d.ts +1 -2
  45. package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.d.ts +0 -1
  46. package/dist/components/PlayButton/PlayButton.d.ts +1 -2
  47. package/dist/components/PriceDisplay/PriceDisplay.d.ts +1 -2
  48. package/dist/components/Pricing/Pricing.d.ts +0 -1
  49. package/dist/components/Pricing/components/BenefitItem/BenefitItem.d.ts +1 -2
  50. package/dist/components/Pricing/types.d.ts +3 -4
  51. package/dist/components/ProductGallery/ProductGallery.d.ts +1 -2
  52. package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +1 -2
  53. package/dist/components/ProductGalleryCard/types.d.ts +1 -2
  54. package/dist/components/ProductListing/ProductListing.d.ts +2 -3
  55. package/dist/components/ProductPairs/ProductPairs.d.ts +0 -1
  56. package/dist/components/ProgressButton/ProgressButton.d.ts +2 -3
  57. package/dist/components/Quote/Quote.d.ts +1 -2
  58. package/dist/components/StepsCarousel/StepsCarousel.d.ts +1 -2
  59. package/dist/components/StudyGridCard/StudyGridCard.d.ts +1 -2
  60. package/dist/components/Tabs/Tabs.d.ts +1 -2
  61. package/dist/components/Tabs/TabsWithFade.d.ts +0 -1
  62. package/dist/components/Tabs/types.d.ts +1 -2
  63. package/dist/components/Tag/Tag.d.ts +2 -3
  64. package/dist/components/TextButton/TextButton.d.ts +2 -3
  65. package/dist/components/TextInput/TextInput.d.ts +0 -1
  66. package/dist/components/Typography/Typography.d.ts +2 -2
  67. package/dist/lib/useSwiper.d.ts +2 -3
  68. package/dist/modules/BasicImageText/BasicImageText.d.ts +1 -2
  69. package/dist/modules/Benefits/Benefits.d.ts +0 -1
  70. package/dist/modules/CallToAction/CallToAction.d.ts +0 -1
  71. package/dist/modules/Callback/Callback.d.ts +1 -2
  72. package/dist/modules/Claims/Claims.d.ts +0 -1
  73. package/dist/modules/Compare/Compare.d.ts +0 -1
  74. package/dist/modules/Compare/types.d.ts +2 -3
  75. package/dist/modules/Comparison/Comparison.d.ts +2 -3
  76. package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.d.ts +1 -2
  77. package/dist/modules/ComparisonV2/ComparisonV2.d.ts +1 -2
  78. package/dist/modules/ContentHighlight/ContentHighlight.d.ts +1 -2
  79. package/dist/modules/Curiosity/Curiosity.d.ts +0 -1
  80. package/dist/modules/CursorImageBlock/CursorImageBlock.d.ts +1 -2
  81. package/dist/modules/ExpandingDetails/ExpandingDetails.d.ts +0 -1
  82. package/dist/modules/ExpandingDetails/types.d.ts +0 -1
  83. package/dist/modules/FAQModule/FAQModule.d.ts +0 -1
  84. package/dist/modules/FAQModule/types.d.ts +0 -1
  85. package/dist/modules/FeaturesGallery/FeaturesGallery.d.ts +2 -3
  86. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.d.ts +1 -2
  87. package/dist/modules/FollowTheScience/FollowTheScience.d.ts +0 -1
  88. package/dist/modules/HSModal/HSModal.d.ts +0 -1
  89. package/dist/modules/HSModal/components/MailchimpModal/MailchimpModal.d.ts +0 -1
  90. package/dist/modules/HSModal/components/MailchimpModal/components/Newsletter/Newsletter.d.ts +0 -1
  91. package/dist/modules/HSModal/types.d.ts +0 -1
  92. package/dist/modules/HSModal/useHSModal.cjs.js +1 -1
  93. package/dist/modules/HSModal/useHSModal.es.js +1 -1
  94. package/dist/modules/HighestStandards/HighestStandards.d.ts +0 -1
  95. package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.d.ts +0 -1
  96. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.d.ts +0 -1
  97. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/types.d.ts +1 -2
  98. package/dist/modules/HighestStandards/types.d.ts +0 -1
  99. package/dist/modules/Highlight/Highlight.d.ts +1 -2
  100. package/dist/modules/HowItWorks/components/Content/Content.d.ts +0 -1
  101. package/dist/modules/ImageWithBenefits/ImageWithBenefits.d.ts +0 -1
  102. package/dist/modules/ImageWithText/ImageWithText.d.ts +0 -1
  103. package/dist/modules/ImageWithText/components/ButtonWithColors/ButtonWithColors.d.ts +0 -1
  104. package/dist/modules/ImageWithText/types.d.ts +1 -2
  105. package/dist/modules/IndividualProductCard/IndividualProductCard.d.ts +2 -3
  106. package/dist/modules/IndividualProductCard/components/Features/Features.d.ts +1 -2
  107. package/dist/modules/IndividualProductCard/components/PlanCard/PlanCard.d.ts +1 -2
  108. package/dist/modules/IndividualProductCard/types.d.ts +2 -3
  109. package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.d.ts +0 -1
  110. package/dist/modules/IndividualProductCardV2/types.d.ts +0 -1
  111. package/dist/modules/IngredientHighlight/IngredientHighlight.d.ts +0 -1
  112. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.d.ts +0 -1
  113. package/dist/modules/LongevityPathways/LongevityPathways.d.ts +0 -1
  114. package/dist/modules/LongevityPathways/types.d.ts +0 -1
  115. package/dist/modules/OptimalHealth/OptimalHealth.d.ts +2 -3
  116. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.d.ts +1 -2
  117. package/dist/modules/OurProcess/OurProcess.d.ts +3 -4
  118. package/dist/modules/PairedProducts/PairedProducts.d.ts +1 -2
  119. package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +1 -2
  120. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +1 -2
  121. package/dist/modules/ProductsDisplay/types.d.ts +1 -2
  122. package/dist/modules/ProductsDisplay/useProductsData.d.ts +3 -4
  123. package/dist/modules/ProgramDetails/ProgramDetails.d.ts +0 -1
  124. package/dist/modules/ProgramDetails/components/Features/Features.d.ts +1 -2
  125. package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.d.ts +0 -1
  126. package/dist/modules/ResearchEssentialReadings/components/ReadingCard/ReadingCard.d.ts +1 -2
  127. package/dist/modules/ResearchFeatured/ResearchFeatured.d.ts +1 -2
  128. package/dist/modules/ResearchFeatured/components/FeaturedArticle/FeaturedArticle.d.ts +1 -2
  129. package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.d.ts +1 -2
  130. package/dist/modules/ResearchFilters/ResearchFilters.d.ts +1 -2
  131. package/dist/modules/ResearchStudies/ResearchStudies.d.ts +1 -2
  132. package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.d.ts +1 -2
  133. package/dist/modules/Reviews/Reviews.d.ts +0 -1
  134. package/dist/modules/Reviews/components/ReviewCard/ReviewCard.d.ts +0 -1
  135. package/dist/modules/Reviews/components/ReviewList/ReviewList.d.ts +1 -2
  136. package/dist/modules/ScienceHero/ScienceHeroCursor.d.ts +1 -2
  137. package/dist/modules/ScienceHero/components/ScienceClientCursor.d.ts +1 -2
  138. package/dist/modules/ScienceHero/components/ScienceServerCursor.d.ts +1 -2
  139. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.d.ts +2 -3
  140. package/dist/modules/StillHaveQuestions/StillHaveQuestions.d.ts +1 -2
  141. package/dist/modules/StillHaveQuestions/constants.d.ts +0 -1
  142. package/dist/modules/Studies/Studies.d.ts +2 -3
  143. package/dist/modules/TargetedPrograms/TargetedPrograms.d.ts +1 -2
  144. package/dist/modules/Testimonial/Testimonial.d.ts +1 -2
  145. package/dist/modules/Testimonial/components/TextCard/TextCard.d.ts +0 -1
  146. package/dist/modules/Testimonial/components/VideoCard/VideoCard.d.ts +0 -1
  147. package/dist/modules/TextTwoImages/TextTwoImages.d.ts +1 -2
  148. package/dist/modules/ThreeCardsWithHero/ThreeCardsWithHero.d.ts +1 -2
  149. package/dist/modules/TotalCare/TotalCare.d.ts +3 -4
  150. package/dist/modules/TrackProgress/TrackProgress.d.ts +0 -1
  151. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.d.ts +0 -1
  152. package/dist/modules/TypesOfTests/TypesOfTests.d.ts +2 -3
  153. package/dist/modules/YourProtocol/YourProtocol.d.ts +3 -4
  154. package/dist/modules/YourProtocol/types.d.ts +0 -1
  155. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.cjs.js +1 -1
  156. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.es.js +2 -2
  157. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.cjs.js +19 -19
  158. package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.es.js +270 -270
  159. package/dist/node_modules/gsap/CustomEase.cjs.js +1 -1
  160. package/dist/node_modules/gsap/CustomEase.es.js +2 -2
  161. package/dist/node_modules/gsap/Draggable.cjs.js +1 -1
  162. package/dist/node_modules/gsap/Draggable.es.js +6 -6
  163. package/dist/node_modules/gsap/Flip.cjs.js +1 -1
  164. package/dist/node_modules/gsap/Flip.es.js +6 -6
  165. package/dist/node_modules/gsap/Observer.cjs.js +1 -1
  166. package/dist/node_modules/gsap/Observer.es.js +2 -2
  167. package/dist/node_modules/gsap/ScrollTrigger.cjs.js +1 -1
  168. package/dist/node_modules/gsap/ScrollTrigger.es.js +2 -2
  169. package/dist/node_modules/gsap/utils/matrix.cjs.js +1 -1
  170. package/dist/node_modules/gsap/utils/matrix.es.js +2 -2
  171. package/dist/pageComponents/Banner/Banner.d.ts +1 -2
  172. package/dist/pageComponents/Footer/Footer.d.ts +0 -1
  173. package/dist/pageComponents/ScrollingFeatures/ScrollingFeatures.d.ts +0 -1
  174. package/dist/types/articles.d.ts +0 -1
  175. package/dist/utils/isHsIcon.d.ts +0 -1
  176. package/package.json +38 -38
  177. package/dist/components/Checkbox/assets/checkbox-checkmark.svg +0 -3
  178. package/dist/components/Checkbox/assets/checkbox-checkmark.svg.cjs.js +0 -1
  179. package/dist/components/Checkbox/assets/checkbox-checkmark.svg.es.js +0 -5
  180. package/dist/components/Checkbox/assets/checkbox-dash.svg +0 -3
  181. package/dist/components/Checkbox/assets/checkbox-dash.svg.cjs.js +0 -1
  182. package/dist/components/Checkbox/assets/checkbox-dash.svg.es.js +0 -5
@@ -1,6 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { EIconName } from '../Icon';
3
-
4
3
  type TAccordionItem = {
5
4
  title: string;
6
5
  content: React.ReactNode;
@@ -1,6 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { EIconName } from '../../../Icon';
3
-
4
3
  type Props = {
5
4
  title: string;
6
5
  content: React.ReactNode;
@@ -1,5 +1,4 @@
1
1
  import { TAdvancedGalleryView } from './types';
2
-
3
2
  export type AdvancedGalleryProps = TAdvancedGalleryView & {
4
3
  label?: string;
5
4
  className?: string;
@@ -1,6 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { TAdvancedGalleryView } from '../../types';
3
-
4
3
  type ImageGalleryPaginationProps = TAdvancedGalleryView & {
5
4
  activeIndex: number;
6
5
  className?: string;
@@ -1,5 +1,4 @@
1
1
  import { TAdvancedGalleryItemView } from '../../types';
2
-
3
2
  type VideoSlideProps = {
4
3
  item: TAdvancedGalleryItemView & {
5
4
  mediaType: 'video';
@@ -1,3 +1,2 @@
1
1
  import { TAnchorLinksProps } from './types';
2
-
3
2
  export declare const AnchorLinks: ({ links, activeId, onClick }: TAnchorLinksProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { TypographyVariant } from '../Typography';
2
-
3
2
  export declare enum EAnchorLinksTypes {
4
3
  ENERGY = "energy",
5
4
  SENESCENCE = "senescence",
@@ -1,5 +1,4 @@
1
- import { ReactElement } from 'react';
2
-
1
+ import type { ReactElement } from 'react';
3
2
  export type BenefitProps = {
4
3
  title: string;
5
4
  description: string;
@@ -1,7 +1,6 @@
1
- import { default as React, ElementType, ButtonHTMLAttributes, AnchorHTMLAttributes } from 'react';
2
- import { EIconName } from '../Icon';
1
+ import React, { type ElementType, type ButtonHTMLAttributes, type AnchorHTMLAttributes } from 'react';
2
+ import { type EIconName } from '../Icon';
3
3
  import { TAnalyticsEvent } from '../../types/analytics';
4
-
5
4
  export type ButtonVariant = 'primary' | 'primary-invert' | 'secondary' | 'tertiary' | 'muted' | 'muted-invert' | 'ghost';
6
5
  type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
7
6
  interface BaseButtonProps {
@@ -1,6 +1,5 @@
1
- import { ButtonProps } from '../Button';
2
- import { CallbackShape, CallbackSize } from './types';
3
-
1
+ import { type ButtonProps } from '../Button';
2
+ import type { CallbackShape, CallbackSize } from './types';
4
3
  export type CallbackProps = {
5
4
  image: string;
6
5
  title: string;
@@ -1,6 +1,5 @@
1
- import { TypographyVariant } from '../Typography';
2
- import { CallbackSize } from './types';
3
-
1
+ import type { TypographyVariant } from '../Typography';
2
+ import type { CallbackSize } from './types';
4
3
  export declare const TITLE_BY_SIZE_DESKTOP: Record<CallbackSize, TypographyVariant>;
5
4
  export declare const DESC_BY_SIZE_DESKTOP: Record<CallbackSize, TypographyVariant>;
6
5
  export declare const PRICE_BY_SIZE_DESKTOP: Record<CallbackSize, TypographyVariant>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),p=require("./assets/checkbox-checkmark.svg.cjs.js"),y=require("./assets/checkbox-dash.svg.cjs.js"),j=require("./assets/checkbox-error.svg.cjs.js"),o=require("../../utils/cn/cn.cjs.js"),e=require("../../src/components/Checkbox/checkbox.module.css"),l=require("../Typography/Typography.cjs.js"),f=({label:n,checkboxSize:i="lg",checkboxVariant:u="default",isError:c=!1,errorText:r,inverted:h=!1,disabled:a,checked:t,className:x,...d})=>{const m=b=>{switch(b){case"default":return s.jsx(p.default,{className:e.icon});case"undetermined":return s.jsx(y.default,{className:e.icon})}};return s.jsxs("label",{className:o.cn(e.root,h&&e.inverted,c&&e.error,a&&e.disabled,x),children:[s.jsx("input",{...d,type:"checkbox",disabled:a,checked:t,className:e.checkbox}),s.jsx("div",{className:o.cn(e.visibleCustomCheckbox,e[i]),children:t&&m(u)}),s.jsx(l.Typography,{defaultVariant:"labelSm",className:e.label,children:n}),c&&!!r&&s.jsxs("div",{className:e.errorTextContainer,children:[s.jsx(j.default,{className:e.errorIcon}),s.jsx(l.Typography,{defaultVariant:"labelSm",className:e.errorText,children:r})]})]})};exports.Checkbox=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),j=require("./assets/checkbox-error.svg.cjs.js"),r=require("../../utils/cn/cn.cjs.js"),e=require("../../src/components/Checkbox/checkbox.module.css"),t=require("../Typography/Typography.cjs.js"),l=require("../Icon/Icon.cjs.js"),i=require("../Icon/constants.cjs.js"),I=({label:m,checkboxSize:u="lg",checkboxVariant:x="default",isError:n=!1,errorText:o,disabled:a,checked:s,className:d,inverted:h,...b})=>{const p=N=>{switch(N){case"default":return c.jsx(l.Icon,{name:i.EIconName.CHECK,className:e.icon});case"undetermined":return c.jsx(l.Icon,{name:i.EIconName.REMOVE,className:e.icon})}},y=r.cn(d,e.root,{[e.error]:n,[e.disabled]:a,[e.inverted]:h});return c.jsxs("label",{className:y,children:[c.jsx("input",{...b,type:"checkbox",disabled:a,checked:s,className:e.checkbox}),c.jsx("div",{className:r.cn(e.visibleCustomCheckbox,e[u]),"data-checked":s,children:s&&p(x)}),c.jsx(t.Typography,{defaultVariant:"labelSm",className:e.label,children:m}),n&&!!o&&c.jsxs("div",{className:e.errorTextContainer,children:[c.jsx(j.default,{className:e.errorIcon}),c.jsx(t.Typography,{defaultVariant:"labelSm",className:e.errorText,children:o})]})]})};exports.Checkbox=I;
@@ -1,5 +1,4 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
-
3
2
  export type TCheckboxSize = 'sm' | 'lg';
4
3
  export type TCheckboxVariant = 'default' | 'undetermined';
5
4
  export interface IBaseCheckboxProps {
@@ -11,4 +10,4 @@ export interface IBaseCheckboxProps {
11
10
  inverted?: boolean;
12
11
  }
13
12
  export type TCheckboxProps = IBaseCheckboxProps & InputHTMLAttributes<HTMLInputElement>;
14
- export declare const Checkbox: ({ label, checkboxSize, checkboxVariant, isError, errorText, inverted, disabled, checked, className, ...inputProps }: TCheckboxProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Checkbox: ({ label, checkboxSize, checkboxVariant, isError, errorText, disabled, checked, className, inverted, ...inputProps }: TCheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,52 +1,44 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import u from "./assets/checkbox-checkmark.svg.es.js";
3
- import k from "./assets/checkbox-dash.svg.es.js";
4
- import N from "./assets/checkbox-error.svg.es.js";
5
- import { cn as t } from "../../utils/cn/cn.es.js";
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import k from "./assets/checkbox-error.svg.es.js";
3
+ import { cn as l } from "../../utils/cn/cn.es.js";
6
4
  import e from "../../components/Checkbox/checkbox.module.css";
7
5
  import { Typography as m } from "../Typography/Typography.es.js";
8
- const T = ({
9
- label: i,
10
- checkboxSize: n = "lg",
6
+ import { Icon as n } from "../Icon/Icon.es.js";
7
+ import { EIconName as i } from "../Icon/constants.es.js";
8
+ const j = ({
9
+ label: d,
10
+ checkboxSize: f = "lg",
11
11
  checkboxVariant: h = "default",
12
- isError: a = !1,
13
- errorText: o,
14
- inverted: b = !1,
15
- disabled: c,
16
- checked: s,
17
- className: d,
18
- ...f
12
+ isError: o = !1,
13
+ errorText: c,
14
+ disabled: s,
15
+ checked: a,
16
+ className: p,
17
+ inverted: b,
18
+ ...N
19
19
  }) => {
20
- const p = (x) => {
21
- switch (x) {
20
+ const u = (C) => {
21
+ switch (C) {
22
22
  case "default":
23
- return /* @__PURE__ */ r(u, { className: e.icon });
23
+ return /* @__PURE__ */ r(n, { name: i.CHECK, className: e.icon });
24
24
  case "undetermined":
25
- return /* @__PURE__ */ r(k, { className: e.icon });
25
+ return /* @__PURE__ */ r(n, { name: i.REMOVE, className: e.icon });
26
26
  }
27
- };
28
- return /* @__PURE__ */ l(
29
- "label",
30
- {
31
- className: t(
32
- e.root,
33
- b && e.inverted,
34
- a && e.error,
35
- c && e.disabled,
36
- d
37
- ),
38
- children: [
39
- /* @__PURE__ */ r("input", { ...f, type: "checkbox", disabled: c, checked: s, className: e.checkbox }),
40
- /* @__PURE__ */ r("div", { className: t(e.visibleCustomCheckbox, e[n]), children: s && p(h) }),
41
- /* @__PURE__ */ r(m, { defaultVariant: "labelSm", className: e.label, children: i }),
42
- a && !!o && /* @__PURE__ */ l("div", { className: e.errorTextContainer, children: [
43
- /* @__PURE__ */ r(N, { className: e.errorIcon }),
44
- /* @__PURE__ */ r(m, { defaultVariant: "labelSm", className: e.errorText, children: o })
45
- ] })
46
- ]
47
- }
48
- );
27
+ }, x = l(p, e.root, {
28
+ [e.error]: o,
29
+ [e.disabled]: s,
30
+ [e.inverted]: b
31
+ });
32
+ return /* @__PURE__ */ t("label", { className: x, children: [
33
+ /* @__PURE__ */ r("input", { ...N, type: "checkbox", disabled: s, checked: a, className: e.checkbox }),
34
+ /* @__PURE__ */ r("div", { className: l(e.visibleCustomCheckbox, e[f]), "data-checked": a, children: a && u(h) }),
35
+ /* @__PURE__ */ r(m, { defaultVariant: "labelSm", className: e.label, children: d }),
36
+ o && !!c && /* @__PURE__ */ t("div", { className: e.errorTextContainer, children: [
37
+ /* @__PURE__ */ r(k, { className: e.errorIcon }),
38
+ /* @__PURE__ */ r(m, { defaultVariant: "labelSm", className: e.errorText, children: c })
39
+ ] })
40
+ ] });
49
41
  };
50
42
  export {
51
- T as Checkbox
43
+ j as Checkbox
52
44
  };
@@ -1,7 +1,7 @@
1
1
  .root {
2
2
  display: flex;
3
3
  align-items: center;
4
- width: 100%;
4
+ width: fit-content;
5
5
  max-width: 337px;
6
6
  gap: 8px;
7
7
  position: relative;
@@ -28,6 +28,13 @@
28
28
  border: var(--border-width-sm) solid var(--border-color-light);
29
29
  border-radius: var(--border-radius-xxs);
30
30
  cursor: pointer;
31
+ background-color: var(--color-white);
32
+ transition: background-color 0.3s, border-color 0.3s;
33
+ }
34
+
35
+ .visibleCustomCheckbox[data-checked="true"] {
36
+ background-color: var(--color-black);
37
+ border-color: var(--color-black);
31
38
  }
32
39
 
33
40
  .errorTextContainer {
@@ -59,6 +66,7 @@
59
66
  .icon {
60
67
  display: flex;
61
68
  width: fit-content;
69
+ color: var(--color-white);
62
70
  }
63
71
 
64
72
  .sm {
@@ -82,20 +90,23 @@
82
90
  .inverted {
83
91
  .visibleCustomCheckbox {
84
92
  border-color: var(--border-color-alpha-black-10);
85
- background-color: var(--color-bg-fill-brand-solar);
93
+ background-color: var(--color-white);
86
94
  }
87
95
  .label {
88
96
  color: var(--color-text-primary-inverted);
89
97
  }
98
+ .icon {
99
+ color: var(--color-black)
100
+ }
90
101
  }
91
102
 
92
103
  .error {
93
104
  .visibleCustomCheckbox {
94
- border-color: var(--border-color-danger-en);
105
+ border-color: var(--color-urgent-red-500);
95
106
  background-color: var(--color-urgent-red-100);
96
107
  }
97
- .label {
98
- color: var(--color-text-primary);
108
+ .visibleCustomCheckbox[data-checked="true"] {
109
+ background-color: var(--color-urgent-red-500);
99
110
  }
100
111
  }
101
112
 
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from 'react';
3
2
  export type ClaimBlockProps = {
4
3
  value: React.ReactNode;
5
4
  valuePrefix?: string;
@@ -1,5 +1,4 @@
1
1
  import { TComplexImageCarouselView } from '../types';
2
-
3
2
  export declare const ComplexCarousel: ({ images }: {
4
3
  images: TComplexImageCarouselView["images"];
5
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
1
  import { TComplexImageCarouselView } from './types';
2
-
3
2
  export declare const ComplexImageCarousel: ({ view, images }: TComplexImageCarouselView) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { TComplexImageCarouselView } from '../types';
2
-
3
2
  export declare const SimpleImageCarousel: ({ images }: {
4
3
  images: TComplexImageCarouselView["images"];
5
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { TAdvancedImageView } from './types';
2
-
3
2
  export declare const useComplexImageCarousel: ({ images }: {
4
3
  images: TAdvancedImageView[];
5
4
  }) => {
@@ -1,7 +1,6 @@
1
- import { ReactElement } from 'react';
2
- import { PopoverPosition, PositionTransform } from 'react-tiny-popover';
3
- import { CommonComplexTooltipProps } from './types';
4
-
1
+ import { type ReactElement } from 'react';
2
+ import { type PopoverPosition, type PositionTransform } from 'react-tiny-popover';
3
+ import type { CommonComplexTooltipProps } from './types';
5
4
  type ComplexTooltipProps = {
6
5
  children: ReactElement;
7
6
  trigger: 'hover' | 'click';
@@ -1,5 +1,4 @@
1
- import { CommonComplexTooltipProps } from '../../types';
2
-
1
+ import type { CommonComplexTooltipProps } from '../../types';
3
2
  type ComplexTooltipContentProps = {
4
3
  className?: string;
5
4
  onMouseEnter?: () => void;
@@ -1,5 +1,4 @@
1
- import { TColorScheme } from '../../types/common';
2
-
1
+ import type { TColorScheme } from '../../types/common';
3
2
  export type CommonComplexTooltipProps = {
4
3
  title: string;
5
4
  description: string;
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { EIconName } from '../Icon';
3
- import { TColorScheme } from '../../types/common';
4
-
2
+ import { type EIconName } from '../Icon';
3
+ import type { TColorScheme } from '../../types/common';
5
4
  export type TContentTab = {
6
5
  label: string;
7
6
  description: ReactNode;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from 'react';
3
2
  export type CursorProps = {
4
3
  label: string;
5
4
  children: React.ReactNode;
@@ -1,3 +1,2 @@
1
- import { CursorProps } from '../Cursor';
2
-
1
+ import type { CursorProps } from '../Cursor';
3
2
  export declare function ClientCursor({ children, label, colorScheme }: CursorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from 'react';
3
2
  export declare const ServerCursor: ({ children }: {
4
3
  children: React.ReactNode;
5
4
  }) => React.ReactNode;
@@ -1,3 +1,2 @@
1
1
  import { TFAQComponent } from './types';
2
-
3
2
  export declare const FAQComponent: ({ items, mode, initialActiveIndex }: TFAQComponent) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export type TFAQComponent = {
4
3
  items: Array<{
5
4
  title: string;
@@ -1,3 +1,2 @@
1
1
  import { TFAQComponentItem } from './types';
2
-
3
2
  export declare const FAQComponentItem: ({ title, content, isOpen, index, onClick }: TFAQComponentItem) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import { ReactNode } from 'react';
2
-
1
+ import type { ReactNode } from 'react';
3
2
  export type TFAQComponentItem = {
4
3
  title: string;
5
4
  content: ReactNode;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export type TFilterError = {
4
3
  text: ReactNode;
5
4
  onClearAllFilters: () => void;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from 'react';
3
2
  type TOption<T extends string | number> = {
4
3
  label: string;
5
4
  value: T;
@@ -1,5 +1,4 @@
1
- import { TColorScheme } from '../../types/common';
2
-
1
+ import type { TColorScheme } from '../../types/common';
3
2
  export type HighlightCardProps = {
4
3
  image: string;
5
4
  eyebrow?: string;
@@ -1,7 +1,6 @@
1
- import { ReactNode } from 'react';
2
- import { TypographyProps } from '../Typography';
3
- import { TColorScheme } from '../../types/common';
4
-
1
+ import type { ReactNode } from 'react';
2
+ import { type TypographyProps } from '../Typography';
3
+ import type { TColorScheme } from '../../types/common';
5
4
  type Props = {
6
5
  title: ReactNode;
7
6
  label?: string;
@@ -1,5 +1,4 @@
1
1
  import { EIconName } from './constants';
2
-
3
2
  type Props = {
4
3
  name: EIconName;
5
4
  className?: string;
@@ -1,4 +1,3 @@
1
1
  import { EIconName } from './constants';
2
2
  import { ComponentType } from 'react';
3
-
4
3
  export declare const ICON_COMPONENTS: Record<EIconName, ComponentType<any>>;
@@ -1,3 +1,2 @@
1
1
  import { TIconBracketProps } from './types';
2
-
3
2
  export declare const IconBracket: ({ colorScheme, size, variant }: TIconBracketProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { TColorScheme } from '../../types/common';
2
-
3
2
  export type TIconBracketSize = 'sm' | 'md' | 'lg';
4
3
  export type TIconBracketVariant = 'close' | 'plus' | 'arrow' | 'dot';
5
4
  export type TIconBracketProps = {
@@ -1,6 +1,5 @@
1
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType } from 'react';
2
- import { EIconName } from '../Icon';
3
-
1
+ import { type AnchorHTMLAttributes, type ButtonHTMLAttributes, type ElementType } from 'react';
2
+ import { type EIconName } from '../Icon';
4
3
  type ButtonVariant = 'emphasis' | 'emphasis-invert' | 'muted' | 'muted-invert' | 'ghost';
5
4
  type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
6
5
  interface BaseButtonProps {
@@ -1,4 +1,3 @@
1
-
2
1
  export type ImageGalleryProps = {
3
2
  images: Array<string>;
4
3
  label?: string;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from 'react';
3
2
  type ImageGalleryPaginationProps = {
4
3
  images: string[];
5
4
  activeIndex: number;
@@ -1,5 +1,4 @@
1
- import { ReactElement, ReactNode, Ref } from 'react';
2
-
1
+ import { type ReactElement, type ReactNode, type Ref } from 'react';
3
2
  export type InfiniteScrollHandle = {
4
3
  scrollLeft: () => void;
5
4
  scrollRight: () => void;
@@ -1,3 +1,2 @@
1
- import { LabelProps } from './types';
2
-
1
+ import type { LabelProps } from './types';
3
2
  export declare const Label: ({ children, color, size, className }: LabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { TPlainFeaturesGroupView } from '../../modules/IndividualProductCardV2/types';
2
2
  import { EIconName } from '../Icon';
3
-
4
3
  export type TPlainFeaturesGroupProps = {
5
4
  items: Array<{
6
5
  icon: EIconName;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from 'react';
3
2
  type PlayButtonProps = {
4
3
  inverted?: boolean;
5
4
  onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from 'react';
3
2
  export type PriceDisplayProps = {
4
3
  description: string;
5
4
  prefix?: string;
@@ -1,3 +1,2 @@
1
1
  import { PricingElementView } from './types';
2
-
3
2
  export declare const Pricing: ({ label, price, items, link, button, zenpatientId, element }: PricingElementView) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import { ETypeBadge } from '../../../TypeBadge';
2
-
1
+ import { type ETypeBadge } from '../../../TypeBadge';
3
2
  type Props = {
4
3
  badge: ETypeBadge;
5
4
  label: string;
@@ -1,7 +1,6 @@
1
- import { ButtonProps } from '../Button';
2
- import { LabelColor } from '../Label';
3
- import { ETypeBadge } from '../TypeBadge';
4
-
1
+ import { type ButtonProps } from '../Button';
2
+ import { type LabelColor } from '../Label';
3
+ import { type ETypeBadge } from '../TypeBadge';
5
4
  export type PricingElementView = {
6
5
  zenpatientId: string;
7
6
  label: {
@@ -1,6 +1,5 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  import { TProductGalleryCardView } from '../ProductGalleryCard';
3
-
4
3
  export type TProductGalleryProps = {
5
4
  header: ReactNode;
6
5
  slides: Array<TProductGalleryCardView>;
@@ -1,5 +1,4 @@
1
- import { TProductGalleryCardView } from './types';
2
-
1
+ import type { TProductGalleryCardView } from './types';
3
2
  type ProductGalleryCardProps = {
4
3
  isHoverable?: boolean;
5
4
  } & TProductGalleryCardView;
@@ -1,5 +1,4 @@
1
- import { ButtonProps } from '../Button';
2
-
1
+ import type { ButtonProps } from '../Button';
3
2
  export type TProductGalleryCardView = {
4
3
  name: string;
5
4
  price: string;
@@ -1,6 +1,5 @@
1
- import { ButtonProps } from '../Button';
2
- import { ETypeBadge } from '../TypeBadge';
3
-
1
+ import { type ButtonProps } from '../Button';
2
+ import { type ETypeBadge } from '../TypeBadge';
4
3
  type ProductListingProps = {
5
4
  name: string;
6
5
  description: string;
@@ -1,5 +1,4 @@
1
1
  import { TProductGalleryCardView } from '../ProductGalleryCard';
2
-
3
2
  type ProductPairsProps = {
4
3
  productCards: Array<TProductGalleryCardView>;
5
4
  };
@@ -1,6 +1,5 @@
1
- import { default as React, ButtonHTMLAttributes } from 'react';
2
- import { TOrientation } from './types';
3
-
1
+ import React, { ButtonHTMLAttributes } from 'react';
2
+ import type { TOrientation } from './types';
4
3
  export type PropgressButtonBaseProps = {
5
4
  orientation: TOrientation;
6
5
  disabled?: boolean;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from 'react';
3
2
  export type QuoteProps = {
4
3
  color: 'indigo' | 'ochre' | 'grey' | 'solar';
5
4
  quote: string;
@@ -1,5 +1,4 @@
1
- import { TColorScheme } from '../../types/common';
2
-
1
+ import type { TColorScheme } from '../../types/common';
3
2
  export type TStepsCarouselView = Array<{
4
3
  name?: string;
5
4
  title: string;
@@ -1,6 +1,5 @@
1
- import { LabelProps } from '../Label';
1
+ import { type LabelProps } from '../Label';
2
2
  import { EAnalyticsEvent } from '../../types/analytics';
3
-
4
3
  export type CompressedStudyCardProps = {
5
4
  compressed: true;
6
5
  title: string;