@registrucentras/rc-ses-react-components 1.6.1 → 1.6.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 (45) hide show
  1. package/dist/assets/icons/WarningCircleIcon.d.ts +3 -0
  2. package/dist/components/common/DataPagination/components/DataPaginationSkeleton.d.ts +5 -0
  3. package/dist/components/common/DataPagination/index.d.ts +2 -1
  4. package/dist/components/common/ListWithIcons/ListWithIcons.types.d.ts +11 -0
  5. package/dist/components/common/ListWithIcons/components/ListWithIconsItem.d.ts +3 -6
  6. package/dist/components/common/ListWithIcons/index.d.ts +3 -8
  7. package/dist/components/common/SelectableCardList/components/SelectableCardListItem.d.ts +11 -0
  8. package/dist/components/common/SelectableCardList/index.d.ts +16 -0
  9. package/dist/library/icons.d.ts +2 -1
  10. package/dist/library/index.d.ts +2 -0
  11. package/dist/library/types.d.ts +4 -1
  12. package/dist/registrucentras-rc-ses-react-components.cjs +9 -9
  13. package/dist/registrucentras-rc-ses-react-components.js +2345 -2129
  14. package/dist/stories/components/SelectableCardList.stories.d.ts +29 -0
  15. package/dist/stories/components/display/ListWithIcons.stories.d.ts +3 -2
  16. package/dist/stories/components/navigation/DataPagination.stories.d.ts +1 -1
  17. package/dist/types/assets/IconProps.d.ts +16 -0
  18. package/dist/types/buttons/ButtonProps.d.ts +4 -0
  19. package/dist/types/cards/CardServiceProps.d.ts +7 -0
  20. package/dist/types/common/ColorType.d.ts +2 -0
  21. package/dist/types/common/QuickLinkType.d.ts +5 -0
  22. package/dist/types/inputs/InputIconProps.d.ts +4 -0
  23. package/dist/types/lists/ListNewsItemType.d.ts +5 -0
  24. package/dist/types/lists/ListServicesItemType.d.ts +7 -0
  25. package/dist/types/order/OrderItemStatusType.d.ts +2 -0
  26. package/package.json +3 -2
  27. package/src/assets/icons/WarningCircleIcon.tsx +16 -0
  28. package/src/components/common/DataPagination/components/DataPaginationSkeleton.tsx +48 -0
  29. package/src/components/common/DataPagination/components/PaginationButton.tsx +1 -2
  30. package/src/components/common/DataPagination/index.tsx +40 -22
  31. package/src/components/common/ListWithIcons/ListWithIcons.types.ts +9 -0
  32. package/src/components/common/ListWithIcons/components/ListWithIconsItem.tsx +18 -7
  33. package/src/components/common/ListWithIcons/index.test.tsx +3 -13
  34. package/src/components/common/ListWithIcons/index.tsx +22 -17
  35. package/src/components/common/SelectableCardList/components/SelectableCardListItem.test.tsx +97 -0
  36. package/src/components/common/SelectableCardList/components/SelectableCardListItem.tsx +106 -0
  37. package/src/components/common/SelectableCardList/index.test.tsx +106 -0
  38. package/src/components/common/SelectableCardList/index.tsx +98 -0
  39. package/src/components/layout/ServiceWizardStepper/components/MobileStepper.tsx +1 -2
  40. package/src/examples/ListWithPagination/index.tsx +110 -57
  41. package/src/library/icons.ts +2 -0
  42. package/src/library/index.ts +3 -0
  43. package/src/library/types.ts +4 -4
  44. package/src/stories/components/SelectableCardList.stories.tsx +99 -0
  45. package/src/stories/components/display/ListWithIcons.stories.tsx +5 -9
@@ -0,0 +1,3 @@
1
+ import { default as IconProps } from '../IconProps';
2
+ declare function WarningCircleIcon({ className, size, fillColor, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default WarningCircleIcon;
@@ -0,0 +1,5 @@
1
+ interface DataPaginationSkeletonProps {
2
+ isMobile: boolean;
3
+ }
4
+ declare const DataPaginationSkeleton: ({ isMobile }: DataPaginationSkeletonProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default DataPaginationSkeleton;
@@ -5,6 +5,7 @@ export interface DataPaginationProps {
5
5
  onChange?: (page: number) => void;
6
6
  prevLabel?: string;
7
7
  nextLabel?: string;
8
+ isLoading?: boolean;
8
9
  }
9
- declare const DataPagination: ({ count, page, defaultPage, onChange, prevLabel, nextLabel, }: DataPaginationProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const DataPagination: ({ count, page, defaultPage, onChange, prevLabel, nextLabel, isLoading, }: DataPaginationProps) => import("react/jsx-runtime").JSX.Element | null;
10
11
  export default DataPagination;
@@ -0,0 +1,11 @@
1
+ import { ComponentType } from 'react';
2
+ export interface ListWithIconsItemData {
3
+ icon?: ComponentType<{
4
+ fillColor?: string;
5
+ size?: number;
6
+ }>;
7
+ text?: string;
8
+ disabled?: boolean;
9
+ tooltip?: string;
10
+ textColor?: string;
11
+ }
@@ -1,9 +1,6 @@
1
- interface Props {
2
- icon?: React.ReactNode;
3
- text?: string;
4
- disabled?: boolean;
5
- tooltip?: string;
1
+ import { ListWithIconsItemData } from '../ListWithIcons.types';
2
+ interface Props extends ListWithIconsItemData {
6
3
  isLoading?: boolean;
7
4
  }
8
- declare const ListWithIconsItem: ({ icon, text, disabled, tooltip, isLoading }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ declare const ListWithIconsItem: ({ icon, text, disabled, tooltip, textColor, isLoading, }: Props) => import("react/jsx-runtime").JSX.Element;
9
6
  export default ListWithIconsItem;
@@ -1,14 +1,9 @@
1
- export interface ListWithIconsItemData {
2
- id: string;
3
- icon?: React.ReactNode;
4
- text?: string;
5
- disabled?: boolean;
6
- tooltip?: string;
7
- }
1
+ import { ListWithIconsItemData } from './ListWithIcons.types';
8
2
  export interface ListWithIconsProps {
9
3
  items: ListWithIconsItemData[];
10
4
  layout?: 'horizontal' | 'vertical';
11
5
  isLoading?: boolean;
6
+ skeletonCount?: number;
12
7
  }
13
- declare const ListWithIcons: ({ items, layout, isLoading }: ListWithIconsProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const ListWithIcons: ({ items, layout, isLoading, skeletonCount, }: ListWithIconsProps) => import("react/jsx-runtime").JSX.Element;
14
9
  export default ListWithIcons;
@@ -0,0 +1,11 @@
1
+ import { ListWithIconsItemData } from '../../ListWithIcons/ListWithIcons.types';
2
+ type Props = {
3
+ title: string;
4
+ subtitle?: string;
5
+ listItems: ListWithIconsItemData[];
6
+ selected: boolean;
7
+ onSelect: () => void;
8
+ isLoading?: boolean;
9
+ };
10
+ declare const SelectableCardListItem: ({ title, subtitle, listItems, selected, onSelect, isLoading, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export default SelectableCardListItem;
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ import { ListWithIconsItemData } from '../ListWithIcons/ListWithIcons.types';
3
+ export type SelectableCardListItemData = {
4
+ id: string;
5
+ title: string;
6
+ subtitle?: string;
7
+ listItems?: ListWithIconsItemData[];
8
+ };
9
+ export interface SelectableCardListProps {
10
+ items?: SelectableCardListItemData[];
11
+ selectedId?: string | null;
12
+ onSelect: (id: string) => void;
13
+ error?: ReactNode;
14
+ }
15
+ declare const SelectableCardList: ({ items, selectedId, onSelect, error, }: SelectableCardListProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default SelectableCardList;
@@ -30,7 +30,8 @@ import { default as ScalesIcon } from '../assets/icons/ScalesIcon';
30
30
  import { default as ScrollIcon } from '../assets/icons/ScrollIcon';
31
31
  import { default as SpinnerGapBoldIcon } from '../assets/icons/SpinnerGapBoldIcon';
32
32
  import { default as UploadSimpleIcon } from '../assets/icons/UploadSimpleIcon';
33
+ import { default as WarningCircleIcon } from '../assets/icons/WarningCircleIcon';
33
34
  import { default as WarningDiamondFillIcon } from '../assets/icons/WarningDiamondFillIcon';
34
35
  import { default as WarningFillIcon } from '../assets/icons/WarningFillIcon';
35
36
  import { default as XCircleFillIcon } from '../assets/icons/XCircleFillIcon';
36
- export { RcSesLogo, ArrowLeftIcon, ArrowRightIcon, BarcodeIcon, CalendarBlankIcon, CaretDoubleLeftBoldIcon, CaretDoubleRightBoldIcon, CaretDownBoldIcon, CaretDownFill, CaretDownIcon, CaretLeftBoldIcon, CaretLeftIcon, CaretRightBoldIcon, CheckBoldIcon, CheckCircleFillIcon, CheckUncheckedBoldIcon, CircleFilledIcon, CloseIcon, CollapseChevronsIcon, DotCircleFilledIcon, ExpandChevronsIcon, InfoFillIcon, MagnifyingGlassIcon, MapPinAreaIcon, MinusBoldIcon, PlusBoldIcon, QuestionFillIcon, QuestionIcon, ScalesIcon, ScrollIcon, SpinnerGapBoldIcon, UploadSimpleIcon, WarningDiamondFillIcon, WarningFillIcon, XCircleFillIcon, };
37
+ export { RcSesLogo, ArrowLeftIcon, ArrowRightIcon, BarcodeIcon, CalendarBlankIcon, CaretDoubleLeftBoldIcon, CaretDoubleRightBoldIcon, CaretDownBoldIcon, CaretDownFill, CaretDownIcon, CaretLeftBoldIcon, CaretLeftIcon, CaretRightBoldIcon, CheckBoldIcon, CheckCircleFillIcon, CheckUncheckedBoldIcon, CircleFilledIcon, CloseIcon, CollapseChevronsIcon, DotCircleFilledIcon, ExpandChevronsIcon, InfoFillIcon, MagnifyingGlassIcon, MapPinAreaIcon, MinusBoldIcon, PlusBoldIcon, QuestionFillIcon, QuestionIcon, ScalesIcon, ScrollIcon, SpinnerGapBoldIcon, UploadSimpleIcon, WarningDiamondFillIcon, WarningFillIcon, WarningCircleIcon, XCircleFillIcon, };
@@ -36,6 +36,7 @@ import { default as RcSesServicePage } from '../components/layout/ServicePage';
36
36
  import { default as ServiceWizardStepper } from '../components/layout/ServiceWizardStepper';
37
37
  import { default as RcSesTheme } from '../theme/light';
38
38
  import { default as RcSesPalette } from '../theme/palette';
39
+ import { default as SelectableCardList } from '../components/common/SelectableCardList';
39
40
  declare module '@mui/x-date-pickers/models' {
40
41
  interface PickerValidDateLookup {
41
42
  'date-fns': Date;
@@ -58,6 +59,7 @@ export { RcSesTextField };
58
59
  export { DataPagination };
59
60
  export { ListWithIcons };
60
61
  export { ServiceWizardStepper };
62
+ export { SelectableCardList };
61
63
  export type * from './types';
62
64
  export { RcSesServiceFormActions, RcSesServiceFormContainer, RcSesCardFormContainer, RcSesFormControlWrapper, RcSesServiceHeader, RcSesServicePage, };
63
65
  export type { RcSesIconProps };
@@ -1,6 +1,9 @@
1
1
  import { RcSesCardProps } from '../components/common/Card';
2
- import { ListWithIconsItemData, ListWithIconsProps } from '../components/common/ListWithIcons';
2
+ import { ListWithIconsProps } from '../components/common/ListWithIcons';
3
+ import { ListWithIconsItemData } from '../components/common/ListWithIcons/ListWithIcons.types';
3
4
  import { RcSesCardFormContainerProps } from '../components/layout/ServiceFormContainer/CardFormContainer';
4
5
  import { ServiceWizardStepperProps } from '../components/layout/ServiceWizardStepper';
6
+ import { ButtonProps } from '../types/buttons/ButtonProps';
5
7
  export type { ListWithIconsProps, ListWithIconsItemData };
8
+ export type { ButtonProps };
6
9
  export type { RcSesCardFormContainerProps, RcSesCardProps, ServiceWizardStepperProps };