property-practice-ui 0.1.4 → 0.2.0
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/CHANGELOG.md +12 -0
- package/dist/{Textarea-u7ONHI5M.d.cts → Textarea-BNvLsAXP.d.cts} +1 -10
- package/dist/{Textarea-u7ONHI5M.d.ts → Textarea-BNvLsAXP.d.ts} +1 -10
- package/dist/atoms.cjs +5 -3
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.d.cts +12 -3
- package/dist/atoms.d.ts +12 -3
- package/dist/atoms.js +5 -3
- package/dist/atoms.js.map +1 -1
- package/dist/index.cjs +794 -300
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -17
- package/dist/index.d.ts +34 -17
- package/dist/index.js +790 -296
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/atoms/Chip/Chip.tsx +29 -0
- package/src/atoms/SecondaryInput/SecondaryInput.tsx +5 -3
- package/src/molecules/Address/Address.tsx +113 -26
- package/src/molecules/CTAContainer/CTAContainer.tsx +28 -2
- package/src/molecules/ContentCard/ContentCard.tsx +5 -0
- package/src/molecules/ExtendedButton/ExtendedButton.stories.tsx +31 -0
- package/src/molecules/ExtendedButton/ExtendedButton.tsx +29 -0
- package/src/molecules/ProductInfo/ProductInfo.tsx +18 -0
- package/src/molecules/SideNav/SideNav.stories.tsx +161 -11
- package/src/molecules/SideNav/SideNav.tsx +219 -44
- package/src/organism/ContactForm/ContactForm.tsx +13 -2
- package/src/organism/FeatureCarousel/FeatureCarousel.tsx +130 -45
- package/src/organism/Footer/Footer.tsx +2 -2
- package/src/organism/Header/Header.tsx +70 -0
- package/src/templates/AboutUs/AboutUs.tsx +2 -2
- package/src/templates/Contact/Contact.tsx +21 -6
- package/src/templates/FAQ/FAQ.tsx +0 -1
- package/src/templates/Features/Features.tsx +26 -18
- package/src/templates/Hero/Hero.tsx +34 -8
- package/src/templates/OtherProducts/OtherProducts.tsx +73 -22
- package/src/tokens/colors.ts +1 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { O as Option, c as colors, B as Button, I as Input$1, T as Textarea$1
|
|
2
|
+
import { O as Option, c as colors, B as Button, I as Input$1, T as Textarea$1 } from './Textarea-BNvLsAXP.cjs';
|
|
3
3
|
import { M as MenuItem, O as OrderType, T as TableListItemType, a as ToastType } from './toast-CvZfLJrO.cjs';
|
|
4
|
-
import * as react from 'react';
|
|
5
4
|
import { ReactElement, ComponentProps, ReactNode } from 'react';
|
|
6
|
-
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
7
|
-
import * as styled_components from 'styled-components';
|
|
8
5
|
import 'react-hook-form';
|
|
9
6
|
|
|
10
7
|
interface FilterProps<T extends string | number> {
|
|
@@ -341,18 +338,35 @@ declare const RatesChart: {
|
|
|
341
338
|
variants: readonly ["primary", "secondary", "subtle"];
|
|
342
339
|
};
|
|
343
340
|
|
|
344
|
-
type BorderColor = keyof typeof colors.border;
|
|
345
|
-
|
|
346
|
-
interface
|
|
341
|
+
type BorderColor$1 = keyof typeof colors.border;
|
|
342
|
+
type BgColor = keyof typeof colors.background;
|
|
343
|
+
interface NavItemData {
|
|
347
344
|
label: string;
|
|
348
345
|
href: string;
|
|
349
346
|
}
|
|
350
347
|
interface SideNavProps {
|
|
351
|
-
|
|
348
|
+
logo?: React.ReactNode;
|
|
349
|
+
items: NavItemData[];
|
|
352
350
|
activeItem?: string;
|
|
353
351
|
onBackToTop?: () => void;
|
|
354
|
-
|
|
355
|
-
|
|
352
|
+
isOpen?: boolean;
|
|
353
|
+
onClose?: () => void;
|
|
354
|
+
mobileButtons?: Array<{
|
|
355
|
+
text: string;
|
|
356
|
+
onClick: () => void;
|
|
357
|
+
bgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
358
|
+
textVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
359
|
+
arrowButton?: 'blue';
|
|
360
|
+
}>;
|
|
361
|
+
mobileBgVariant?: BgColor;
|
|
362
|
+
borderVariant?: BorderColor$1;
|
|
363
|
+
closeButtonVariant?: BorderColor$1;
|
|
364
|
+
mobileActiveTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
365
|
+
mobileActiveTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
366
|
+
mobileInactiveTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
367
|
+
mobileInactiveTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
368
|
+
triangleColor?: BorderColor$1;
|
|
369
|
+
dividerColor?: BorderColor$1;
|
|
356
370
|
activeTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
357
371
|
activeTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
358
372
|
inactiveTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
@@ -360,7 +374,7 @@ interface SideNavProps {
|
|
|
360
374
|
backToTopBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
361
375
|
backToTopTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
362
376
|
}
|
|
363
|
-
declare const SideNav: ({ items, activeItem, onBackToTop, triangleColor, dividerColor, activeTextBgVariant, activeTextVariant, inactiveTextBgVariant, inactiveTextVariant, backToTopBgVariant, backToTopTextVariant, }: SideNavProps) => react_jsx_runtime.JSX.Element;
|
|
377
|
+
declare const SideNav: ({ logo, items, activeItem, onBackToTop, isOpen, onClose, mobileButtons, mobileBgVariant, borderVariant, closeButtonVariant, mobileActiveTextBgVariant, mobileActiveTextVariant, mobileInactiveTextBgVariant, mobileInactiveTextVariant, triangleColor, dividerColor, activeTextBgVariant, activeTextVariant, inactiveTextBgVariant, inactiveTextVariant, backToTopBgVariant, backToTopTextVariant, }: SideNavProps) => react_jsx_runtime.JSX.Element;
|
|
364
378
|
|
|
365
379
|
type BackgroundColor$3 = keyof typeof colors.background;
|
|
366
380
|
type TextColor$6 = keyof typeof colors.text;
|
|
@@ -438,8 +452,7 @@ interface SocialLink {
|
|
|
438
452
|
url: string;
|
|
439
453
|
ariaLabel: string;
|
|
440
454
|
}
|
|
441
|
-
|
|
442
|
-
interface LegalLink {
|
|
455
|
+
interface LegalLinkData {
|
|
443
456
|
text: string;
|
|
444
457
|
url: string;
|
|
445
458
|
}
|
|
@@ -451,7 +464,7 @@ interface FooterProps {
|
|
|
451
464
|
onSecondaryClick?: () => void;
|
|
452
465
|
addresses: AddressData[];
|
|
453
466
|
socialLinks: SocialLink[];
|
|
454
|
-
legalLinks:
|
|
467
|
+
legalLinks: LegalLinkData[];
|
|
455
468
|
copyrightText: string;
|
|
456
469
|
variant?: Variant;
|
|
457
470
|
primaryArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
@@ -465,19 +478,23 @@ declare const Footer: {
|
|
|
465
478
|
variants: readonly ["primary", "secondary"];
|
|
466
479
|
};
|
|
467
480
|
|
|
481
|
+
type BorderColor = keyof typeof colors.border;
|
|
468
482
|
interface HeaderProps {
|
|
469
483
|
logo: string;
|
|
470
484
|
primaryButtonText: string;
|
|
471
485
|
secondaryButtonText: string;
|
|
472
486
|
onPrimaryClick?: () => void;
|
|
473
487
|
onSecondaryClick?: () => void;
|
|
488
|
+
isMobileMenuOpen?: boolean;
|
|
489
|
+
onMobileMenuToggle?: () => void;
|
|
490
|
+
burgerVariant?: BorderColor;
|
|
474
491
|
primaryArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
475
492
|
primaryTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
476
493
|
primaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
477
494
|
secondaryBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
478
495
|
secondaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
479
496
|
}
|
|
480
|
-
declare const Header: ({ logo, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
497
|
+
declare const Header: ({ logo, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, isMobileMenuOpen, onMobileMenuToggle, burgerVariant, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
481
498
|
|
|
482
499
|
type OverviewItem = {
|
|
483
500
|
title: string;
|
|
@@ -540,7 +557,7 @@ interface ContactProps {
|
|
|
540
557
|
termsVariant?: 'primary' | 'secondary' | 'subtle';
|
|
541
558
|
buttonArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
542
559
|
buttonTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
543
|
-
buttonTextVariant?:
|
|
560
|
+
buttonTextVariant?: "brand" | "blue" | "primary" | "secondary" | "tertiary" | "subtle" | "light";
|
|
544
561
|
}
|
|
545
562
|
declare const Contact: ({ image, headerText, termsChecked, onTermsChange, buttonText, onButtonClick, headerColor, termsVariant, buttonArrowVariant, buttonTextBgVariant, buttonTextVariant, }: ContactProps) => react_jsx_runtime.JSX.Element;
|
|
546
563
|
|
|
@@ -636,7 +653,7 @@ interface OtherProductsProps {
|
|
|
636
653
|
productTitleColor?: ComponentTextColor;
|
|
637
654
|
productButtonArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
638
655
|
productButtonTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
639
|
-
productButtonTextVariant?:
|
|
656
|
+
productButtonTextVariant?: "brand" | "blue" | "primary" | "secondary" | "tertiary" | "subtle" | "light";
|
|
640
657
|
}
|
|
641
658
|
declare const OtherProducts: ({ headerText, headerVariant, products, headerColor, productTitleColor, productButtonArrowVariant, productButtonTextBgVariant, productButtonTextVariant, }: OtherProductsProps) => react_jsx_runtime.JSX.Element;
|
|
642
659
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { O as Option, c as colors, B as Button, I as Input$1, T as Textarea$1
|
|
2
|
+
import { O as Option, c as colors, B as Button, I as Input$1, T as Textarea$1 } from './Textarea-BNvLsAXP.js';
|
|
3
3
|
import { M as MenuItem, O as OrderType, T as TableListItemType, a as ToastType } from './toast-CvZfLJrO.js';
|
|
4
|
-
import * as react from 'react';
|
|
5
4
|
import { ReactElement, ComponentProps, ReactNode } from 'react';
|
|
6
|
-
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
7
|
-
import * as styled_components from 'styled-components';
|
|
8
5
|
import 'react-hook-form';
|
|
9
6
|
|
|
10
7
|
interface FilterProps<T extends string | number> {
|
|
@@ -341,18 +338,35 @@ declare const RatesChart: {
|
|
|
341
338
|
variants: readonly ["primary", "secondary", "subtle"];
|
|
342
339
|
};
|
|
343
340
|
|
|
344
|
-
type BorderColor = keyof typeof colors.border;
|
|
345
|
-
|
|
346
|
-
interface
|
|
341
|
+
type BorderColor$1 = keyof typeof colors.border;
|
|
342
|
+
type BgColor = keyof typeof colors.background;
|
|
343
|
+
interface NavItemData {
|
|
347
344
|
label: string;
|
|
348
345
|
href: string;
|
|
349
346
|
}
|
|
350
347
|
interface SideNavProps {
|
|
351
|
-
|
|
348
|
+
logo?: React.ReactNode;
|
|
349
|
+
items: NavItemData[];
|
|
352
350
|
activeItem?: string;
|
|
353
351
|
onBackToTop?: () => void;
|
|
354
|
-
|
|
355
|
-
|
|
352
|
+
isOpen?: boolean;
|
|
353
|
+
onClose?: () => void;
|
|
354
|
+
mobileButtons?: Array<{
|
|
355
|
+
text: string;
|
|
356
|
+
onClick: () => void;
|
|
357
|
+
bgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
358
|
+
textVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
359
|
+
arrowButton?: 'blue';
|
|
360
|
+
}>;
|
|
361
|
+
mobileBgVariant?: BgColor;
|
|
362
|
+
borderVariant?: BorderColor$1;
|
|
363
|
+
closeButtonVariant?: BorderColor$1;
|
|
364
|
+
mobileActiveTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
365
|
+
mobileActiveTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
366
|
+
mobileInactiveTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
367
|
+
mobileInactiveTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
368
|
+
triangleColor?: BorderColor$1;
|
|
369
|
+
dividerColor?: BorderColor$1;
|
|
356
370
|
activeTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
357
371
|
activeTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
358
372
|
inactiveTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
@@ -360,7 +374,7 @@ interface SideNavProps {
|
|
|
360
374
|
backToTopBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
361
375
|
backToTopTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
362
376
|
}
|
|
363
|
-
declare const SideNav: ({ items, activeItem, onBackToTop, triangleColor, dividerColor, activeTextBgVariant, activeTextVariant, inactiveTextBgVariant, inactiveTextVariant, backToTopBgVariant, backToTopTextVariant, }: SideNavProps) => react_jsx_runtime.JSX.Element;
|
|
377
|
+
declare const SideNav: ({ logo, items, activeItem, onBackToTop, isOpen, onClose, mobileButtons, mobileBgVariant, borderVariant, closeButtonVariant, mobileActiveTextBgVariant, mobileActiveTextVariant, mobileInactiveTextBgVariant, mobileInactiveTextVariant, triangleColor, dividerColor, activeTextBgVariant, activeTextVariant, inactiveTextBgVariant, inactiveTextVariant, backToTopBgVariant, backToTopTextVariant, }: SideNavProps) => react_jsx_runtime.JSX.Element;
|
|
364
378
|
|
|
365
379
|
type BackgroundColor$3 = keyof typeof colors.background;
|
|
366
380
|
type TextColor$6 = keyof typeof colors.text;
|
|
@@ -438,8 +452,7 @@ interface SocialLink {
|
|
|
438
452
|
url: string;
|
|
439
453
|
ariaLabel: string;
|
|
440
454
|
}
|
|
441
|
-
|
|
442
|
-
interface LegalLink {
|
|
455
|
+
interface LegalLinkData {
|
|
443
456
|
text: string;
|
|
444
457
|
url: string;
|
|
445
458
|
}
|
|
@@ -451,7 +464,7 @@ interface FooterProps {
|
|
|
451
464
|
onSecondaryClick?: () => void;
|
|
452
465
|
addresses: AddressData[];
|
|
453
466
|
socialLinks: SocialLink[];
|
|
454
|
-
legalLinks:
|
|
467
|
+
legalLinks: LegalLinkData[];
|
|
455
468
|
copyrightText: string;
|
|
456
469
|
variant?: Variant;
|
|
457
470
|
primaryArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
@@ -465,19 +478,23 @@ declare const Footer: {
|
|
|
465
478
|
variants: readonly ["primary", "secondary"];
|
|
466
479
|
};
|
|
467
480
|
|
|
481
|
+
type BorderColor = keyof typeof colors.border;
|
|
468
482
|
interface HeaderProps {
|
|
469
483
|
logo: string;
|
|
470
484
|
primaryButtonText: string;
|
|
471
485
|
secondaryButtonText: string;
|
|
472
486
|
onPrimaryClick?: () => void;
|
|
473
487
|
onSecondaryClick?: () => void;
|
|
488
|
+
isMobileMenuOpen?: boolean;
|
|
489
|
+
onMobileMenuToggle?: () => void;
|
|
490
|
+
burgerVariant?: BorderColor;
|
|
474
491
|
primaryArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
475
492
|
primaryTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
476
493
|
primaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
477
494
|
secondaryBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
478
495
|
secondaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
479
496
|
}
|
|
480
|
-
declare const Header: ({ logo, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
497
|
+
declare const Header: ({ logo, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, isMobileMenuOpen, onMobileMenuToggle, burgerVariant, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
481
498
|
|
|
482
499
|
type OverviewItem = {
|
|
483
500
|
title: string;
|
|
@@ -540,7 +557,7 @@ interface ContactProps {
|
|
|
540
557
|
termsVariant?: 'primary' | 'secondary' | 'subtle';
|
|
541
558
|
buttonArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
542
559
|
buttonTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
543
|
-
buttonTextVariant?:
|
|
560
|
+
buttonTextVariant?: "brand" | "blue" | "primary" | "secondary" | "tertiary" | "subtle" | "light";
|
|
544
561
|
}
|
|
545
562
|
declare const Contact: ({ image, headerText, termsChecked, onTermsChange, buttonText, onButtonClick, headerColor, termsVariant, buttonArrowVariant, buttonTextBgVariant, buttonTextVariant, }: ContactProps) => react_jsx_runtime.JSX.Element;
|
|
546
563
|
|
|
@@ -636,7 +653,7 @@ interface OtherProductsProps {
|
|
|
636
653
|
productTitleColor?: ComponentTextColor;
|
|
637
654
|
productButtonArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
638
655
|
productButtonTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
639
|
-
productButtonTextVariant?:
|
|
656
|
+
productButtonTextVariant?: "brand" | "blue" | "primary" | "secondary" | "tertiary" | "subtle" | "light";
|
|
640
657
|
}
|
|
641
658
|
declare const OtherProducts: ({ headerText, headerVariant, products, headerColor, productTitleColor, productButtonArrowVariant, productButtonTextBgVariant, productButtonTextVariant, }: OtherProductsProps) => react_jsx_runtime.JSX.Element;
|
|
642
659
|
|