@npm_leadtech/legal-lib-components 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/components/atoms/BreadcrumItem/BreadcrumItem.d.ts +5 -0
  4. package/dist/cjs/src/components/atoms/BreadcrumItem/BreadcrumItemProps.types.d.ts +5 -0
  5. package/dist/cjs/src/components/atoms/BreadcrumItem/__stories__/BreadcrumbItem.stories.d.ts +8 -0
  6. package/dist/cjs/src/components/atoms/BreadcrumItem/index.d.ts +2 -0
  7. package/dist/cjs/src/components/atoms/index.d.ts +1 -0
  8. package/dist/cjs/src/components/molecules/Breadcrumb/Breadcrumb.d.ts +5 -0
  9. package/dist/cjs/src/components/molecules/Breadcrumb/BreadcrumbProps.types.d.ts +6 -0
  10. package/dist/cjs/src/components/molecules/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +7 -0
  11. package/dist/cjs/src/components/molecules/Breadcrumb/index.d.ts +2 -0
  12. package/dist/cjs/src/components/molecules/index.d.ts +1 -0
  13. package/dist/esm/index.js +2 -2
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/src/components/atoms/BreadcrumItem/BreadcrumItem.d.ts +5 -0
  16. package/dist/esm/src/components/atoms/BreadcrumItem/BreadcrumItemProps.types.d.ts +5 -0
  17. package/dist/esm/src/components/atoms/BreadcrumItem/__stories__/BreadcrumbItem.stories.d.ts +8 -0
  18. package/dist/esm/src/components/atoms/BreadcrumItem/index.d.ts +2 -0
  19. package/dist/esm/src/components/atoms/index.d.ts +1 -0
  20. package/dist/esm/src/components/molecules/Breadcrumb/Breadcrumb.d.ts +5 -0
  21. package/dist/esm/src/components/molecules/Breadcrumb/BreadcrumbProps.types.d.ts +6 -0
  22. package/dist/esm/src/components/molecules/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +7 -0
  23. package/dist/esm/src/components/molecules/Breadcrumb/index.d.ts +2 -0
  24. package/dist/esm/src/components/molecules/index.d.ts +1 -0
  25. package/dist/index.d.ts +18 -1
  26. package/package.json +4 -3
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import './BreadcrumItem.scss';
3
+ import { type BreadcrumItemProps } from './BreadcrumItemProps.types';
4
+ declare const BreadcrumItem: FC<BreadcrumItemProps>;
5
+ export default BreadcrumItem;
@@ -0,0 +1,5 @@
1
+ export interface BreadcrumItemProps {
2
+ text: string;
3
+ position: number;
4
+ url?: string;
5
+ }
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import BreadcrumItem from '../BreadcrumItem';
3
+ declare const meta: Meta<typeof BreadcrumItem>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof BreadcrumItem>;
6
+ export declare const Default: Story;
7
+ export declare const FirstItem: Story;
8
+ export declare const LastItem: Story;
@@ -0,0 +1,2 @@
1
+ export { default as BreadcrumItem } from './BreadcrumItem';
2
+ export { type BreadcrumItemProps } from './BreadcrumItemProps.types';
@@ -1,6 +1,7 @@
1
1
  export * from './AddButton';
2
2
  export * from './BaseBox';
3
3
  export * from './BillCard';
4
+ export * from './BreadcrumItem';
4
5
  export * from './Button';
5
6
  export * from './ButtonIcon';
6
7
  export * from './CardPane';
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import { type BreadcrumbProps } from './BreadcrumbProps.types';
3
+ import './Breadcrumb.scss';
4
+ declare const Breadcrumb: FC<BreadcrumbProps>;
5
+ export default Breadcrumb;
@@ -0,0 +1,6 @@
1
+ export interface BreadcrumbProps {
2
+ crumbs: Array<{
3
+ text: string;
4
+ url?: string;
5
+ }>;
6
+ }
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Breadcrumb from '../Breadcrumb';
3
+ declare const meta: Meta<typeof Breadcrumb>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Breadcrumb>;
6
+ export declare const Default: Story;
7
+ export declare const WithSubcategory: Story;
@@ -0,0 +1,2 @@
1
+ export { default as Breadcrumb } from './Breadcrumb';
2
+ export { type BreadcrumbProps } from './BreadcrumbProps.types';
@@ -3,6 +3,7 @@ export * from './BaseBoxList';
3
3
  export * from './BottomFixedBar';
4
4
  export * from './BottomOverlay';
5
5
  export * from './BoxForm';
6
+ export * from './Breadcrumb';
6
7
  export * from './ContactBox';
7
8
  export * from './Feedback';
8
9
  export * from './MenuItemsSection';
package/dist/index.d.ts CHANGED
@@ -38,6 +38,14 @@ interface BillCardProps {
38
38
 
39
39
  declare const BillCard: FC<BillCardProps>;
40
40
 
41
+ interface BreadcrumItemProps {
42
+ text: string;
43
+ position: number;
44
+ url?: string;
45
+ }
46
+
47
+ declare const BreadcrumItem: FC<BreadcrumItemProps>;
48
+
41
49
  interface ButtonProps {
42
50
  label: string;
43
51
  dataQa?: string;
@@ -426,6 +434,15 @@ interface BoxFormProps {
426
434
 
427
435
  declare const BoxForm: FC<BoxFormProps>;
428
436
 
437
+ interface BreadcrumbProps {
438
+ crumbs: Array<{
439
+ text: string;
440
+ url?: string;
441
+ }>;
442
+ }
443
+
444
+ declare const Breadcrumb: FC<BreadcrumbProps>;
445
+
429
446
  interface ContactBoxProps {
430
447
  phone: string;
431
448
  schedule: string;
@@ -602,4 +619,4 @@ interface BlogSectionProps {
602
619
 
603
620
  declare const BlogSection: FC<BlogSectionProps>;
604
621
 
605
- export { AddButton, AddButtonProps, Article, ArticleProps, ArticlesList, ArticlesListProps, BaseBox, BaseBoxList, BaseBoxListProps, BaseBoxProps, BillCard, BillCardProps, BlogSection, BlogSectionProps, BottomFixedBar, BottomFixedBarProps, BottomOverlay, BottomOverlayProps, BoxForm, BoxFormProps, Button, ButtonIcon, ButtonIconProps, ButtonProps, CardPane, CardPaneInfoProps, CardPaneProps, Checkbox, CheckboxProps, ContactBox, ContactBoxProps, DatePickerCustom, DatePickerCustomProps, DialogMenuIcon, DialogMenuIconProps, Disclaimer, DisclaimerProps, Divider, DividerProps, DocumentStatus, DocumentStatusProps, Feedback, FeedbackProps, FormFaq, FormFaqProps, GoogleButton, GoogleButtonProps, HowGetYourFormsSection, HowGetYourFormsSectionProps, IconImage, IconImageProps, InfoBox, InfoBoxProps, ListStepsGetForm, ListStepsGetFormProps, LogoText, LogoTextProps, MenuItemProps, MenuItems, MenuItemsSection, MenuItemsSectionProps, Message, MessageProps, MobileBottomBar, MobileBottomBarProps, Pagination, PaginationProps, PaypalButton, PaypalButtonProps, PricingCard, PricingCardProps, ProgressBar, ProgressBarProps, Radio, RadioProps, RemoveButton, RemoveButtonProps, RichTextInner, RichTextInnerProps, SearchSelect, SearchSelectProps, SideMenuTabProps, SidemenuTab, Snackbar, SnackbarProps, Spinner, SpinnerProps, StepGetForm, StepGetFormProps, TextArea, TextAreaProps, TextInput, TextInputProps, Toggle, ToggleProps, Tooltip, TooltipMenu, TooltipMenuProps, TooltipProps, TopBar, TopBarProps };
622
+ export { AddButton, AddButtonProps, Article, ArticleProps, ArticlesList, ArticlesListProps, BaseBox, BaseBoxList, BaseBoxListProps, BaseBoxProps, BillCard, BillCardProps, BlogSection, BlogSectionProps, BottomFixedBar, BottomFixedBarProps, BottomOverlay, BottomOverlayProps, BoxForm, BoxFormProps, BreadcrumItem, BreadcrumItemProps, Breadcrumb, BreadcrumbProps, Button, ButtonIcon, ButtonIconProps, ButtonProps, CardPane, CardPaneInfoProps, CardPaneProps, Checkbox, CheckboxProps, ContactBox, ContactBoxProps, DatePickerCustom, DatePickerCustomProps, DialogMenuIcon, DialogMenuIconProps, Disclaimer, DisclaimerProps, Divider, DividerProps, DocumentStatus, DocumentStatusProps, Feedback, FeedbackProps, FormFaq, FormFaqProps, GoogleButton, GoogleButtonProps, HowGetYourFormsSection, HowGetYourFormsSectionProps, IconImage, IconImageProps, InfoBox, InfoBoxProps, ListStepsGetForm, ListStepsGetFormProps, LogoText, LogoTextProps, MenuItemProps, MenuItems, MenuItemsSection, MenuItemsSectionProps, Message, MessageProps, MobileBottomBar, MobileBottomBarProps, Pagination, PaginationProps, PaypalButton, PaypalButtonProps, PricingCard, PricingCardProps, ProgressBar, ProgressBarProps, Radio, RadioProps, RemoveButton, RemoveButtonProps, RichTextInner, RichTextInnerProps, SearchSelect, SearchSelectProps, SideMenuTabProps, SidemenuTab, Snackbar, SnackbarProps, Spinner, SpinnerProps, StepGetForm, StepGetFormProps, TextArea, TextAreaProps, TextInput, TextInputProps, Toggle, ToggleProps, Tooltip, TooltipMenu, TooltipMenuProps, TooltipProps, TopBar, TopBarProps };
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.16.5",
6
6
  "@tippyjs/react": "4.2.6",
7
- "gatsby-plugin-image": "^3.8.0",
8
7
  "postcss-url": "^10.1.3",
9
8
  "react-datepicker": "^4.11.0",
10
9
  "react-input-mask": "^2.0.4",
@@ -34,6 +33,7 @@
34
33
  "@babel/preset-flow": "^7.21.4",
35
34
  "@babel/preset-react": "^7.18.6",
36
35
  "@babel/preset-typescript": "^7.21.4",
36
+ "@gatsbyjs/reach-router": "^2.0.1",
37
37
  "@rollup/plugin-babel": "^6.0.3",
38
38
  "@rollup/plugin-commonjs": "^24.0.1",
39
39
  "@rollup/plugin-image": "^3.0.2",
@@ -75,7 +75,8 @@
75
75
  "eslint-plugin-react": "^7.32.2",
76
76
  "eslint-plugin-react-hooks": "^4.6.0",
77
77
  "eslint-plugin-storybook": "^0.6.11",
78
- "gatsby-link": "^5.8.0",
78
+ "gatsby-link": "^5.9.0",
79
+ "gatsby-plugin-image": "^3.9.0",
79
80
  "husky": "^8.0.0",
80
81
  "identity-obj-proxy": "^3.0.0",
81
82
  "jest": "^29.5.0",