property-practice-ui 0.3.0 → 0.3.1

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 (48) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{Button-GGqCRrab.d.cts → Button-BT32YGe5.d.cts} +18 -1
  3. package/dist/{Button-GGqCRrab.d.ts → Button-BT32YGe5.d.ts} +18 -1
  4. package/dist/{FileButton-DGczdE12.d.cts → FileButton-C_ITD9MA.d.cts} +1 -1
  5. package/dist/{FileButton-HFyj2Jod.d.ts → FileButton-zPIyC3gQ.d.ts} +1 -1
  6. package/dist/{Textarea-BVqF5_5c.d.cts → Textarea-COarrHSa.d.ts} +2 -18
  7. package/dist/{Textarea-BVqF5_5c.d.ts → Textarea-DP0HgLAn.d.cts} +2 -18
  8. package/dist/atoms.d.cts +3 -4
  9. package/dist/atoms.d.ts +3 -4
  10. package/dist/index.cjs +252 -608
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +124 -9
  13. package/dist/index.d.ts +124 -9
  14. package/dist/index.js +254 -589
  15. package/dist/index.js.map +1 -1
  16. package/dist/molecules.d.cts +3 -3
  17. package/dist/molecules.d.ts +3 -3
  18. package/dist/{tableListItem-irbfqxnQ.d.cts → toast-CvZfLJrO.d.cts} +3 -1
  19. package/dist/{tableListItem-irbfqxnQ.d.ts → toast-CvZfLJrO.d.ts} +3 -1
  20. package/dist/types.d.cts +1 -2
  21. package/dist/types.d.ts +1 -2
  22. package/package.json +1 -1
  23. package/src/index.ts +2 -2
  24. package/src/templates/Contact/Contact.tsx +1 -1
  25. package/src/templates/Features/Features.tsx +1 -1
  26. package/tsup.config.ts +0 -1
  27. package/dist/organisms.cjs +0 -2859
  28. package/dist/organisms.cjs.map +0 -1
  29. package/dist/organisms.d.cts +0 -126
  30. package/dist/organisms.d.ts +0 -126
  31. package/dist/organisms.js +0 -2845
  32. package/dist/organisms.js.map +0 -1
  33. package/dist/toast-JPCqJveR.d.cts +0 -3
  34. package/dist/toast-JPCqJveR.d.ts +0 -3
  35. /package/src/{organism → organisms}/ContactForm/ContactForm.stories.tsx +0 -0
  36. /package/src/{organism → organisms}/ContactForm/ContactForm.tsx +0 -0
  37. /package/src/{organism → organisms}/DocumentListAccordion/DocumentListAccordion.tsx +0 -0
  38. /package/src/{organism → organisms}/FeatureCarousel/FeatureCarousel.stories.tsx +0 -0
  39. /package/src/{organism → organisms}/FeatureCarousel/FeatureCarousel.tsx +0 -0
  40. /package/src/{organism → organisms}/Footer/Footer.stories.tsx +0 -0
  41. /package/src/{organism → organisms}/Footer/Footer.tsx +0 -0
  42. /package/src/{organism → organisms}/Header/Header.stories.tsx +0 -0
  43. /package/src/{organism → organisms}/Header/Header.tsx +0 -0
  44. /package/src/{organism → organisms}/OverviewList/OverviewList.stories.tsx +0 -0
  45. /package/src/{organism → organisms}/OverviewList/OverviewList.tsx +0 -0
  46. /package/src/{organism → organisms}/ToastProvider/ToastProvider.tsx +0 -0
  47. /package/src/{organism → organisms}/VersionLabel/VersionLabel.tsx +0 -0
  48. /package/src/{organism → organisms}/index.ts +0 -0
package/dist/index.d.cts CHANGED
@@ -1,12 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { O as Option } from './Textarea-BVqF5_5c.cjs';
3
- import { M as MenuItem, O as OrderType, T as TableListItemType } from './tableListItem-irbfqxnQ.cjs';
4
- import { ReactElement } from 'react';
5
- import { T as ToastType } from './toast-JPCqJveR.cjs';
6
- export { Accordion, Address, CTAContainer, Checkbox, ContentCard, Dropdown, FAQAccordion, FeatureContainer, Input, Modal, OverviewRowItem, PDFPreviewer, PageLayout, ProductInfo, RadioGroup, RatesChart, SideNav, SidePanel, StepperHeaderTab, Textarea } from './molecules.cjs';
7
- export { D as DocumentListAccordionFileType, F as FileButton } from './FileButton-DGczdE12.cjs';
8
- export { ContactForm, DocumentListAccordion, FeatureCarousel, Footer, Header, OverviewList, ToastProvider, VersionLabel, useToast } from './organisms.cjs';
9
- import { c as colors } from './Button-GGqCRrab.cjs';
2
+ import { O as Option, c as colors } from './Button-BT32YGe5.cjs';
3
+ import { M as MenuItem, O as OrderType, T as TableListItemType, a as ToastType } from './toast-CvZfLJrO.cjs';
4
+ import { ReactElement, ComponentProps, ReactNode } from 'react';
5
+ import { F as FileButton, D as DocumentListAccordionFileType } from './FileButton-C_ITD9MA.cjs';
10
6
  import 'react-hook-form';
11
7
 
12
8
  interface FilterProps<T extends string | number> {
@@ -121,6 +117,125 @@ interface Props {
121
117
  }
122
118
  declare function TopMenu({ logoUrl, children }: Props): react_jsx_runtime.JSX.Element;
123
119
 
120
+ interface ContactFormProps {
121
+ }
122
+ declare const ContactForm: ({}: ContactFormProps) => react_jsx_runtime.JSX.Element;
123
+
124
+ interface DocumentListAccordionProps extends Pick<ComponentProps<typeof FileButton>, 'accept' | 'onFileSelect'> {
125
+ title: string;
126
+ files: DocumentListAccordionFileType[];
127
+ onViewDetail: (id: string) => void;
128
+ onSortBy?: (accessor: keyof DocumentListAccordionFileType) => void;
129
+ }
130
+ declare const DocumentListAccordion: ({ title, files, onSortBy, onViewDetail, accept, onFileSelect, }: DocumentListAccordionProps) => react_jsx_runtime.JSX.Element;
131
+
132
+ type TextColor$5 = keyof typeof colors.text;
133
+ type BackgroundColor$2 = keyof typeof colors.background;
134
+ interface CarouselCard {
135
+ thumbnail: React.ReactNode;
136
+ title: string;
137
+ description: string;
138
+ onArrowClick?: () => void;
139
+ }
140
+ interface CarouselProps {
141
+ cards: CarouselCard[];
142
+ cardTitleColor?: TextColor$5;
143
+ cardDescriptionVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
144
+ cardArrowVariant?: 'brand' | 'teal' | 'blue';
145
+ cardThumbnailBgColor?: BackgroundColor$2;
146
+ navButtonColor?: TextColor$5;
147
+ indicatorColor?: TextColor$5;
148
+ }
149
+ declare const FeatureCarousel: ({ cards, cardTitleColor, cardDescriptionVariant, cardArrowVariant, cardThumbnailBgColor, navButtonColor, indicatorColor, }: CarouselProps) => react_jsx_runtime.JSX.Element;
150
+
151
+ declare const variants: readonly ["primary", "secondary"];
152
+ type Variant = (typeof variants)[number];
153
+ interface AddressData {
154
+ title: string;
155
+ phone?: string;
156
+ email?: string;
157
+ addressLines: string[];
158
+ }
159
+ interface SocialLink {
160
+ icon: React.ReactNode;
161
+ url: string;
162
+ ariaLabel: string;
163
+ }
164
+ interface LegalLinkData {
165
+ text: string;
166
+ url: string;
167
+ }
168
+ interface FooterProps {
169
+ logo: string;
170
+ primaryButtonText: string;
171
+ secondaryButtonText: string;
172
+ onPrimaryClick?: () => void;
173
+ onSecondaryClick?: () => void;
174
+ addresses: AddressData[];
175
+ socialLinks: SocialLink[];
176
+ legalLinks: LegalLinkData[];
177
+ copyrightText: string;
178
+ variant?: Variant;
179
+ primaryArrowVariant?: 'brand' | 'teal' | 'blue';
180
+ primaryTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
181
+ primaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
182
+ secondaryBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
183
+ secondaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
184
+ }
185
+ declare const Footer: {
186
+ ({ logo, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, addresses, socialLinks, legalLinks, copyrightText, variant, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: FooterProps): react_jsx_runtime.JSX.Element;
187
+ variants: readonly ["primary", "secondary"];
188
+ };
189
+
190
+ type BorderColor = keyof typeof colors.border;
191
+ interface HeaderProps {
192
+ logo: string;
193
+ primaryButtonText: string;
194
+ secondaryButtonText: string;
195
+ onPrimaryClick?: () => void;
196
+ onSecondaryClick?: () => void;
197
+ isMobileMenuOpen?: boolean;
198
+ onMobileMenuToggle?: () => void;
199
+ burgerVariant?: BorderColor;
200
+ primaryArrowVariant?: 'brand' | 'teal' | 'blue';
201
+ primaryTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
202
+ primaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
203
+ secondaryBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
204
+ secondaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
205
+ }
206
+ declare const Header: ({ logo, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, isMobileMenuOpen, onMobileMenuToggle, burgerVariant, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: HeaderProps) => react_jsx_runtime.JSX.Element;
207
+
208
+ type OverviewItem = {
209
+ title: string;
210
+ isComplete: boolean;
211
+ };
212
+ type Overview = {
213
+ header: string;
214
+ overviewItems: OverviewItem[];
215
+ };
216
+ interface OverviewListProps {
217
+ overviews: Overview[];
218
+ }
219
+ declare const OverviewList: ({ overviews }: OverviewListProps) => react_jsx_runtime.JSX.Element;
220
+
221
+ type ShowToastInput = {
222
+ type?: ToastType;
223
+ message: string;
224
+ };
225
+ type ToastContextProps = {
226
+ showToast: (input: ShowToastInput) => void;
227
+ };
228
+ declare const useToast: () => ToastContextProps;
229
+ interface ToastProvider {
230
+ children: ReactNode;
231
+ }
232
+ declare const ToastProvider: ({ children }: ToastProvider) => react_jsx_runtime.JSX.Element;
233
+
234
+ interface VersionLabelProps {
235
+ versionNumber: string;
236
+ }
237
+ declare const VersionLabel: ({ versionNumber }: VersionLabelProps) => react_jsx_runtime.JSX.Element;
238
+
124
239
  type TextColor$4 = keyof typeof colors.text;
125
240
  interface AboutUsProps {
126
241
  image: string;
@@ -251,4 +366,4 @@ interface OtherProductsProps {
251
366
  }
252
367
  declare const OtherProducts: ({ headerText, headerVariant, products, headerColor, productTitleColor, productButtonArrowVariant, productButtonTextBgVariant, productButtonTextVariant, }: OtherProductsProps) => react_jsx_runtime.JSX.Element;
253
368
 
254
- export { AboutUs, Contact, FAQ, Features, Filter, Hero, NavMenu, OtherProducts, Search, SortBy, Spinner, Table, TableHeader, type TableHeaderConfig, TableInner, TableListItem, TableRow, Tabs, Toast, TopMenu };
369
+ export { AboutUs, Contact, ContactForm, DocumentListAccordion, FAQ, FeatureCarousel, Features, Filter, Footer, Header, Hero, NavMenu, OtherProducts, OverviewList, Search, SortBy, Spinner, Table, TableHeader, type TableHeaderConfig, TableInner, TableListItem, TableRow, Tabs, Toast, ToastProvider, TopMenu, VersionLabel, useToast };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { O as Option } from './Textarea-BVqF5_5c.js';
3
- import { M as MenuItem, O as OrderType, T as TableListItemType } from './tableListItem-irbfqxnQ.js';
4
- import { ReactElement } from 'react';
5
- import { T as ToastType } from './toast-JPCqJveR.js';
6
- export { Accordion, Address, CTAContainer, Checkbox, ContentCard, Dropdown, FAQAccordion, FeatureContainer, Input, Modal, OverviewRowItem, PDFPreviewer, PageLayout, ProductInfo, RadioGroup, RatesChart, SideNav, SidePanel, StepperHeaderTab, Textarea } from './molecules.js';
7
- export { D as DocumentListAccordionFileType, F as FileButton } from './FileButton-HFyj2Jod.js';
8
- export { ContactForm, DocumentListAccordion, FeatureCarousel, Footer, Header, OverviewList, ToastProvider, VersionLabel, useToast } from './organisms.js';
9
- import { c as colors } from './Button-GGqCRrab.js';
2
+ import { O as Option, c as colors } from './Button-BT32YGe5.js';
3
+ import { M as MenuItem, O as OrderType, T as TableListItemType, a as ToastType } from './toast-CvZfLJrO.js';
4
+ import { ReactElement, ComponentProps, ReactNode } from 'react';
5
+ import { F as FileButton, D as DocumentListAccordionFileType } from './FileButton-zPIyC3gQ.js';
10
6
  import 'react-hook-form';
11
7
 
12
8
  interface FilterProps<T extends string | number> {
@@ -121,6 +117,125 @@ interface Props {
121
117
  }
122
118
  declare function TopMenu({ logoUrl, children }: Props): react_jsx_runtime.JSX.Element;
123
119
 
120
+ interface ContactFormProps {
121
+ }
122
+ declare const ContactForm: ({}: ContactFormProps) => react_jsx_runtime.JSX.Element;
123
+
124
+ interface DocumentListAccordionProps extends Pick<ComponentProps<typeof FileButton>, 'accept' | 'onFileSelect'> {
125
+ title: string;
126
+ files: DocumentListAccordionFileType[];
127
+ onViewDetail: (id: string) => void;
128
+ onSortBy?: (accessor: keyof DocumentListAccordionFileType) => void;
129
+ }
130
+ declare const DocumentListAccordion: ({ title, files, onSortBy, onViewDetail, accept, onFileSelect, }: DocumentListAccordionProps) => react_jsx_runtime.JSX.Element;
131
+
132
+ type TextColor$5 = keyof typeof colors.text;
133
+ type BackgroundColor$2 = keyof typeof colors.background;
134
+ interface CarouselCard {
135
+ thumbnail: React.ReactNode;
136
+ title: string;
137
+ description: string;
138
+ onArrowClick?: () => void;
139
+ }
140
+ interface CarouselProps {
141
+ cards: CarouselCard[];
142
+ cardTitleColor?: TextColor$5;
143
+ cardDescriptionVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
144
+ cardArrowVariant?: 'brand' | 'teal' | 'blue';
145
+ cardThumbnailBgColor?: BackgroundColor$2;
146
+ navButtonColor?: TextColor$5;
147
+ indicatorColor?: TextColor$5;
148
+ }
149
+ declare const FeatureCarousel: ({ cards, cardTitleColor, cardDescriptionVariant, cardArrowVariant, cardThumbnailBgColor, navButtonColor, indicatorColor, }: CarouselProps) => react_jsx_runtime.JSX.Element;
150
+
151
+ declare const variants: readonly ["primary", "secondary"];
152
+ type Variant = (typeof variants)[number];
153
+ interface AddressData {
154
+ title: string;
155
+ phone?: string;
156
+ email?: string;
157
+ addressLines: string[];
158
+ }
159
+ interface SocialLink {
160
+ icon: React.ReactNode;
161
+ url: string;
162
+ ariaLabel: string;
163
+ }
164
+ interface LegalLinkData {
165
+ text: string;
166
+ url: string;
167
+ }
168
+ interface FooterProps {
169
+ logo: string;
170
+ primaryButtonText: string;
171
+ secondaryButtonText: string;
172
+ onPrimaryClick?: () => void;
173
+ onSecondaryClick?: () => void;
174
+ addresses: AddressData[];
175
+ socialLinks: SocialLink[];
176
+ legalLinks: LegalLinkData[];
177
+ copyrightText: string;
178
+ variant?: Variant;
179
+ primaryArrowVariant?: 'brand' | 'teal' | 'blue';
180
+ primaryTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
181
+ primaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
182
+ secondaryBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
183
+ secondaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
184
+ }
185
+ declare const Footer: {
186
+ ({ logo, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, addresses, socialLinks, legalLinks, copyrightText, variant, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: FooterProps): react_jsx_runtime.JSX.Element;
187
+ variants: readonly ["primary", "secondary"];
188
+ };
189
+
190
+ type BorderColor = keyof typeof colors.border;
191
+ interface HeaderProps {
192
+ logo: string;
193
+ primaryButtonText: string;
194
+ secondaryButtonText: string;
195
+ onPrimaryClick?: () => void;
196
+ onSecondaryClick?: () => void;
197
+ isMobileMenuOpen?: boolean;
198
+ onMobileMenuToggle?: () => void;
199
+ burgerVariant?: BorderColor;
200
+ primaryArrowVariant?: 'brand' | 'teal' | 'blue';
201
+ primaryTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
202
+ primaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
203
+ secondaryBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
204
+ secondaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
205
+ }
206
+ declare const Header: ({ logo, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, isMobileMenuOpen, onMobileMenuToggle, burgerVariant, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: HeaderProps) => react_jsx_runtime.JSX.Element;
207
+
208
+ type OverviewItem = {
209
+ title: string;
210
+ isComplete: boolean;
211
+ };
212
+ type Overview = {
213
+ header: string;
214
+ overviewItems: OverviewItem[];
215
+ };
216
+ interface OverviewListProps {
217
+ overviews: Overview[];
218
+ }
219
+ declare const OverviewList: ({ overviews }: OverviewListProps) => react_jsx_runtime.JSX.Element;
220
+
221
+ type ShowToastInput = {
222
+ type?: ToastType;
223
+ message: string;
224
+ };
225
+ type ToastContextProps = {
226
+ showToast: (input: ShowToastInput) => void;
227
+ };
228
+ declare const useToast: () => ToastContextProps;
229
+ interface ToastProvider {
230
+ children: ReactNode;
231
+ }
232
+ declare const ToastProvider: ({ children }: ToastProvider) => react_jsx_runtime.JSX.Element;
233
+
234
+ interface VersionLabelProps {
235
+ versionNumber: string;
236
+ }
237
+ declare const VersionLabel: ({ versionNumber }: VersionLabelProps) => react_jsx_runtime.JSX.Element;
238
+
124
239
  type TextColor$4 = keyof typeof colors.text;
125
240
  interface AboutUsProps {
126
241
  image: string;
@@ -251,4 +366,4 @@ interface OtherProductsProps {
251
366
  }
252
367
  declare const OtherProducts: ({ headerText, headerVariant, products, headerColor, productTitleColor, productButtonArrowVariant, productButtonTextBgVariant, productButtonTextVariant, }: OtherProductsProps) => react_jsx_runtime.JSX.Element;
253
368
 
254
- export { AboutUs, Contact, FAQ, Features, Filter, Hero, NavMenu, OtherProducts, Search, SortBy, Spinner, Table, TableHeader, type TableHeaderConfig, TableInner, TableListItem, TableRow, Tabs, Toast, TopMenu };
369
+ export { AboutUs, Contact, ContactForm, DocumentListAccordion, FAQ, FeatureCarousel, Features, Filter, Footer, Header, Hero, NavMenu, OtherProducts, OverviewList, Search, SortBy, Spinner, Table, TableHeader, type TableHeaderConfig, TableInner, TableListItem, TableRow, Tabs, Toast, ToastProvider, TopMenu, VersionLabel, useToast };