@zenpatient-org/healthspan-marketing-ui 0.2.74 → 0.2.76
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/components/Accordion/Accordion.d.ts +1 -2
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +1 -2
- package/dist/components/AdvancedGallery/AdvancedGallery.d.ts +0 -1
- package/dist/components/AdvancedGallery/components/ImageGalleryPagination/ImageGalleryPagination.d.ts +1 -2
- package/dist/components/AdvancedGallery/components/VideoSlide/VideoSlide.d.ts +0 -1
- package/dist/components/AnchorLinks/AnchorLinks.d.ts +0 -1
- package/dist/components/AnchorLinks/types.d.ts +0 -1
- package/dist/components/Benefit/Benefit.d.ts +1 -2
- package/dist/components/Button/Button.d.ts +2 -3
- package/dist/components/Callback/Callback.d.ts +2 -3
- package/dist/components/Callback/constants.d.ts +2 -3
- package/dist/components/Checkbox/Checkbox.cjs.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.es.js +34 -42
- package/dist/components/Checkbox/checkbox.module.css +15 -4
- package/dist/components/ClaimBlock/ClaimBlock.d.ts +1 -2
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.d.ts +0 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +0 -1
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.d.ts +0 -1
- package/dist/components/ComplexImageCarousel/useComplexImageCarousel.d.ts +0 -1
- package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +3 -4
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.d.ts +1 -2
- package/dist/components/ComplexTooltip/types.d.ts +1 -2
- package/dist/components/ContentTabs/ContentTabs.d.ts +2 -3
- package/dist/components/Cursor/Cursor.d.ts +1 -2
- package/dist/components/Cursor/components/ClientCursor.d.ts +1 -2
- package/dist/components/Cursor/components/ServerCursor.d.ts +1 -2
- package/dist/components/FAQComponent/FAQComponent.d.ts +0 -1
- package/dist/components/FAQComponent/types.d.ts +0 -1
- package/dist/components/FAQComponentItem/FAQComponentItem.d.ts +0 -1
- package/dist/components/FAQComponentItem/types.d.ts +1 -2
- package/dist/components/FilterError/FilterError.d.ts +0 -1
- package/dist/components/FilterMenu/FilterMenu.d.ts +1 -2
- package/dist/components/HighlightCard/HighlightCard.d.ts +1 -2
- package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +3 -4
- package/dist/components/Icon/Icon.d.ts +0 -1
- package/dist/components/Icon/iconsMap.d.ts +0 -1
- package/dist/components/IconBracket/IconBracket.d.ts +0 -1
- package/dist/components/IconBracket/types.d.ts +0 -1
- package/dist/components/IconButton/IconButton.d.ts +2 -3
- package/dist/components/ImageGallery/ImageGallery.d.ts +0 -1
- package/dist/components/ImageGallery/components/ImageGalleryPagination/ImageGalleryPagination.d.ts +1 -2
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +1 -2
- package/dist/components/Label/Label.cjs.js +1 -1
- package/dist/components/Label/Label.d.ts +1 -2
- package/dist/components/Label/Label.es.js +6 -5
- package/dist/components/Label/label.module.css +14 -0
- package/dist/components/Label/types.d.ts +1 -1
- package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.d.ts +0 -1
- package/dist/components/PlayButton/PlayButton.d.ts +1 -2
- package/dist/components/PriceDisplay/PriceDisplay.d.ts +1 -2
- package/dist/components/Pricing/Pricing.d.ts +0 -1
- package/dist/components/Pricing/components/BenefitItem/BenefitItem.d.ts +1 -2
- package/dist/components/Pricing/types.d.ts +3 -4
- package/dist/components/ProductGallery/ProductGallery.d.ts +1 -2
- package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +1 -2
- package/dist/components/ProductGalleryCard/types.d.ts +1 -2
- package/dist/components/ProductListing/ProductListing.d.ts +2 -3
- package/dist/components/ProductPairs/ProductPairs.d.ts +0 -1
- package/dist/components/ProgressButton/ProgressButton.d.ts +2 -3
- package/dist/components/Quote/Quote.d.ts +1 -2
- package/dist/components/StepsCarousel/StepsCarousel.d.ts +1 -2
- package/dist/components/StudyGridCard/StudyGridCard.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +1 -2
- package/dist/components/Tabs/TabsWithFade.d.ts +0 -1
- package/dist/components/Tabs/types.d.ts +1 -2
- package/dist/components/Tag/Tag.d.ts +2 -3
- package/dist/components/TextButton/TextButton.d.ts +2 -3
- package/dist/components/TextInput/TextInput.d.ts +0 -1
- package/dist/components/Typography/Typography.d.ts +3 -3
- package/dist/components/Typography/typography.module.css +12 -3
- package/dist/lib/useSwiper.d.ts +2 -3
- package/dist/modules/BasicImageText/BasicImageText.d.ts +1 -2
- package/dist/modules/Benefits/Benefits.d.ts +0 -1
- package/dist/modules/CallToAction/CallToAction.d.ts +0 -1
- package/dist/modules/Callback/Callback.d.ts +1 -2
- package/dist/modules/Claims/Claims.d.ts +0 -1
- package/dist/modules/Compare/Compare.d.ts +0 -1
- package/dist/modules/Compare/types.d.ts +2 -3
- package/dist/modules/Comparison/Comparison.d.ts +2 -3
- package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.d.ts +1 -2
- package/dist/modules/ComparisonV2/ComparisonV2.d.ts +1 -2
- package/dist/modules/ContentHighlight/ContentHighlight.d.ts +1 -2
- package/dist/modules/Curiosity/Curiosity.d.ts +0 -1
- package/dist/modules/CursorImageBlock/CursorImageBlock.d.ts +1 -2
- package/dist/modules/ExpandingDetails/ExpandingDetails.d.ts +0 -1
- package/dist/modules/ExpandingDetails/types.d.ts +0 -1
- package/dist/modules/FAQModule/FAQModule.d.ts +0 -1
- package/dist/modules/FAQModule/types.d.ts +0 -1
- package/dist/modules/FeaturesGallery/FeaturesGallery.d.ts +2 -3
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.d.ts +1 -2
- package/dist/modules/FollowTheScience/FollowTheScience.d.ts +0 -1
- package/dist/modules/HSModal/HSModal.d.ts +0 -1
- package/dist/modules/HSModal/components/MailchimpModal/MailchimpModal.d.ts +0 -1
- package/dist/modules/HSModal/components/MailchimpModal/components/Newsletter/Newsletter.d.ts +0 -1
- package/dist/modules/HSModal/types.d.ts +0 -1
- package/dist/modules/HSModal/useHSModal.cjs.js +1 -1
- package/dist/modules/HSModal/useHSModal.es.js +1 -1
- package/dist/modules/HighestStandards/HighestStandards.d.ts +0 -1
- package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.d.ts +0 -1
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.d.ts +0 -1
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/types.d.ts +1 -2
- package/dist/modules/HighestStandards/types.d.ts +0 -1
- package/dist/modules/Highlight/Highlight.d.ts +1 -2
- package/dist/modules/HowItWorks/components/Content/Content.d.ts +0 -1
- package/dist/modules/ImageWithBenefits/ImageWithBenefits.d.ts +0 -1
- package/dist/modules/ImageWithText/ImageWithText.d.ts +0 -1
- package/dist/modules/ImageWithText/components/ButtonWithColors/ButtonWithColors.d.ts +0 -1
- package/dist/modules/ImageWithText/types.d.ts +1 -2
- package/dist/modules/IndividualProductCard/IndividualProductCard.d.ts +2 -3
- package/dist/modules/IndividualProductCard/components/Features/Features.d.ts +1 -2
- package/dist/modules/IndividualProductCard/components/PlanCard/PlanCard.d.ts +1 -2
- package/dist/modules/IndividualProductCard/types.d.ts +2 -3
- package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.d.ts +0 -1
- package/dist/modules/IndividualProductCardV2/types.d.ts +0 -1
- package/dist/modules/IngredientHighlight/IngredientHighlight.d.ts +0 -1
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.d.ts +0 -1
- package/dist/modules/LongevityPathways/LongevityPathways.d.ts +0 -1
- package/dist/modules/LongevityPathways/types.d.ts +0 -1
- package/dist/modules/OptimalHealth/OptimalHealth.d.ts +2 -3
- package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.d.ts +1 -2
- package/dist/modules/OurProcess/OurProcess.d.ts +3 -4
- package/dist/modules/PairedProducts/PairedProducts.d.ts +1 -2
- package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +1 -2
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +1 -2
- package/dist/modules/ProductsDisplay/types.d.ts +1 -2
- package/dist/modules/ProductsDisplay/useProductsData.d.ts +3 -4
- package/dist/modules/ProgramDetails/ProgramDetails.d.ts +0 -1
- package/dist/modules/ProgramDetails/components/Features/Features.d.ts +1 -2
- package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.d.ts +0 -1
- package/dist/modules/ResearchEssentialReadings/components/ReadingCard/ReadingCard.d.ts +1 -2
- package/dist/modules/ResearchFeatured/ResearchFeatured.d.ts +1 -2
- package/dist/modules/ResearchFeatured/components/FeaturedArticle/FeaturedArticle.d.ts +1 -2
- package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.d.ts +1 -2
- package/dist/modules/ResearchFilters/ResearchFilters.d.ts +1 -2
- package/dist/modules/ResearchStudies/ResearchStudies.d.ts +1 -2
- package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.d.ts +1 -2
- package/dist/modules/Reviews/Reviews.d.ts +0 -1
- package/dist/modules/Reviews/components/ReviewCard/ReviewCard.d.ts +0 -1
- package/dist/modules/Reviews/components/ReviewList/ReviewList.d.ts +1 -2
- package/dist/modules/ScienceHero/ScienceHeroCursor.d.ts +1 -2
- package/dist/modules/ScienceHero/components/ScienceClientCursor.d.ts +1 -2
- package/dist/modules/ScienceHero/components/ScienceServerCursor.d.ts +1 -2
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.d.ts +2 -3
- package/dist/modules/StillHaveQuestions/StillHaveQuestions.d.ts +1 -2
- package/dist/modules/StillHaveQuestions/constants.d.ts +0 -1
- package/dist/modules/Studies/Studies.d.ts +2 -3
- package/dist/modules/TargetedPrograms/TargetedPrograms.d.ts +1 -2
- package/dist/modules/Testimonial/Testimonial.d.ts +1 -2
- package/dist/modules/Testimonial/components/TextCard/TextCard.d.ts +0 -1
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.d.ts +0 -1
- package/dist/modules/TextTwoImages/TextTwoImages.d.ts +1 -2
- package/dist/modules/ThreeCardsWithHero/ThreeCardsWithHero.d.ts +1 -2
- package/dist/modules/TotalCare/TotalCare.d.ts +3 -4
- package/dist/modules/TrackProgress/TrackProgress.d.ts +0 -1
- package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.d.ts +0 -1
- package/dist/modules/TypesOfTests/TypesOfTests.d.ts +2 -3
- package/dist/modules/YourProtocol/YourProtocol.d.ts +3 -4
- package/dist/modules/YourProtocol/types.d.ts +0 -1
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.cjs.js +1 -1
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/WistiaPlayerWrapper-KYHM7EWK.es.js +2 -2
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.cjs.js +19 -19
- package/dist/node_modules/@wistia/wistia-player-react/dist/mjs/wistia-player-PKAEVX5L.es.js +270 -270
- package/dist/node_modules/gsap/CustomEase.cjs.js +1 -1
- package/dist/node_modules/gsap/CustomEase.es.js +2 -2
- package/dist/node_modules/gsap/Draggable.cjs.js +1 -1
- package/dist/node_modules/gsap/Draggable.es.js +6 -6
- package/dist/node_modules/gsap/Flip.cjs.js +1 -1
- package/dist/node_modules/gsap/Flip.es.js +6 -6
- package/dist/node_modules/gsap/Observer.cjs.js +1 -1
- package/dist/node_modules/gsap/Observer.es.js +2 -2
- package/dist/node_modules/gsap/ScrollTrigger.cjs.js +1 -1
- package/dist/node_modules/gsap/ScrollTrigger.es.js +2 -2
- package/dist/node_modules/gsap/utils/matrix.cjs.js +1 -1
- package/dist/node_modules/gsap/utils/matrix.es.js +2 -2
- package/dist/pageComponents/Banner/Banner.d.ts +1 -2
- package/dist/pageComponents/Footer/Footer.d.ts +0 -1
- package/dist/pageComponents/ScrollingFeatures/ScrollingFeatures.d.ts +0 -1
- package/dist/styles/core.css +1 -1
- package/dist/types/articles.d.ts +0 -1
- package/dist/utils/isHsIcon.d.ts +0 -1
- package/package.json +38 -38
- package/dist/components/Checkbox/assets/checkbox-checkmark.svg.cjs.js +0 -1
- package/dist/components/Checkbox/assets/checkbox-checkmark.svg.es.js +0 -5
- package/dist/components/Checkbox/assets/checkbox-dash.svg.cjs.js +0 -1
- package/dist/components/Checkbox/assets/checkbox-dash.svg.es.js +0 -5
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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,
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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:
|
|
13
|
-
errorText:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
...
|
|
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
|
|
21
|
-
switch (
|
|
20
|
+
const u = (C) => {
|
|
21
|
+
switch (C) {
|
|
22
22
|
case "default":
|
|
23
|
-
return /* @__PURE__ */ r(
|
|
23
|
+
return /* @__PURE__ */ r(n, { name: i.CHECK, className: e.icon });
|
|
24
24
|
case "undetermined":
|
|
25
|
-
return /* @__PURE__ */ r(
|
|
25
|
+
return /* @__PURE__ */ r(n, { name: i.REMOVE, className: e.icon });
|
|
26
26
|
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
),
|
|
38
|
-
children:
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
43
|
+
j as Checkbox
|
|
52
44
|
};
|
|
@@ -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-
|
|
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(--
|
|
105
|
+
border-color: var(--color-urgent-red-500);
|
|
95
106
|
background-color: var(--color-urgent-red-100);
|
|
96
107
|
}
|
|
97
|
-
.
|
|
98
|
-
color: var(--color-
|
|
108
|
+
.visibleCustomCheckbox[data-checked="true"] {
|
|
109
|
+
background-color: var(--color-urgent-red-500);
|
|
99
110
|
}
|
|
100
111
|
}
|
|
101
112
|
|
|
@@ -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,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,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,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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),c=require("../../utils/cn/cn.cjs.js"),e=require("../../src/components/Label/label.module.css"),n={pico:e.labelPico,nano:e.labelXs,sm:e.labelXs,lg:e.labelSm},r=({children:s,color:t,size:l="sm",className:a})=>o.jsx("div",{className:c.cn(e.root,e.labelEmphasis,n[l],a),"data-size":l,"data-color":t,children:s});exports.Label=r;
|
|
@@ -2,18 +2,19 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn as t } from "../../utils/cn/cn.es.js";
|
|
3
3
|
import o from "../../components/Label/label.module.css";
|
|
4
4
|
const e = {
|
|
5
|
+
pico: o.labelPico,
|
|
5
6
|
nano: o.labelXs,
|
|
6
7
|
sm: o.labelXs,
|
|
7
8
|
lg: o.labelSm
|
|
8
|
-
},
|
|
9
|
+
}, n = ({ children: a, color: s, size: l = "sm", className: m }) => /* @__PURE__ */ r(
|
|
9
10
|
"div",
|
|
10
11
|
{
|
|
11
|
-
className: t(o.root, o.labelEmphasis, e[
|
|
12
|
-
"data-size":
|
|
12
|
+
className: t(o.root, o.labelEmphasis, e[l], m),
|
|
13
|
+
"data-size": l,
|
|
13
14
|
"data-color": s,
|
|
14
|
-
children:
|
|
15
|
+
children: a
|
|
15
16
|
}
|
|
16
17
|
);
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
n as Label
|
|
19
20
|
};
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
padding: var(--spacing-4) var(--spacing-8);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
.root[data-size='pico'] {
|
|
26
|
+
min-height: 16px;
|
|
27
|
+
padding: var(--spacing-4) var(--spacing-8);
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
.root[data-color='black'] {
|
|
26
31
|
background-color: var(--color-bg-fill-primary);
|
|
27
32
|
color: var(--color-text-primary-inverted);
|
|
@@ -147,6 +152,15 @@
|
|
|
147
152
|
font-size: var(--font-size-xxs);
|
|
148
153
|
}
|
|
149
154
|
|
|
155
|
+
.labelPico {
|
|
156
|
+
font-family: var(--font-default), sans-serif;
|
|
157
|
+
line-height: var(--line-height-xs);
|
|
158
|
+
letter-spacing: var(--letter-spacing-null);
|
|
159
|
+
font-weight: var(--font-weight-regular);
|
|
160
|
+
font-style: normal;
|
|
161
|
+
font-size: var(--font-size-xxxs);
|
|
162
|
+
}
|
|
163
|
+
|
|
150
164
|
.labelEmphasis {
|
|
151
165
|
font-family: var(--font-decorative), monospace;
|
|
152
166
|
text-transform: uppercase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type LabelSize = 'nano' | 'sm' | 'lg';
|
|
1
|
+
export type LabelSize = 'pico' | 'nano' | 'sm' | 'lg';
|
|
2
2
|
export type LabelColor = 'black' | 'white' | 'grey' | 'alpha-white' | 'sage' | 'indigo' | 'orchre' | 'solar' | 'lilac' | 'success' | 'warning' | 'danger' | 'info' | 'supportive' | 'indigo-gradient' | 'ochre-gradient' | 'solar-gradient' | 'lilac-gradient';
|
|
3
3
|
export type LabelProps = {
|
|
4
4
|
children: 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: {
|