@mindly/ui-components 5.30.0 → 5.31.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.
Files changed (26) hide show
  1. package/dist/cjs/index.js +6 -6
  2. package/dist/cjs/lib2/features/CheckBoxListFeature/CheckBoxListFeature.d.ts +14 -0
  3. package/dist/cjs/lib2/features/CheckBoxListFeature/index.d.ts +1 -0
  4. package/dist/cjs/lib2/features/CheckBoxSectionListFeature/CheckBoxSectionListFeature.d.ts +15 -0
  5. package/dist/cjs/lib2/features/CheckBoxSectionListFeature/index.d.ts +1 -0
  6. package/dist/cjs/lib2/features/index.d.ts +2 -0
  7. package/dist/cjs/lib2/shared/assets/icons/IconMixedButton.d.ts +2 -0
  8. package/dist/cjs/lib2/shared/assets/icons/IconRadioButtonChecked.d.ts +2 -0
  9. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +1 -0
  10. package/dist/cjs/lib2/shared/ui/CheckBoxItem/CheckBoxItem.d.ts +16 -0
  11. package/dist/cjs/lib2/shared/ui/CheckBoxItem/index.d.ts +1 -0
  12. package/dist/cjs/lib2/shared/ui/index.d.ts +1 -0
  13. package/dist/esm/index.js +7 -7
  14. package/dist/esm/lib2/features/CheckBoxListFeature/CheckBoxListFeature.d.ts +14 -0
  15. package/dist/esm/lib2/features/CheckBoxListFeature/index.d.ts +1 -0
  16. package/dist/esm/lib2/features/CheckBoxSectionListFeature/CheckBoxSectionListFeature.d.ts +15 -0
  17. package/dist/esm/lib2/features/CheckBoxSectionListFeature/index.d.ts +1 -0
  18. package/dist/esm/lib2/features/index.d.ts +2 -0
  19. package/dist/esm/lib2/shared/assets/icons/IconMixedButton.d.ts +2 -0
  20. package/dist/esm/lib2/shared/assets/icons/IconRadioButtonChecked.d.ts +2 -0
  21. package/dist/esm/lib2/shared/assets/icons/index.d.ts +1 -0
  22. package/dist/esm/lib2/shared/ui/CheckBoxItem/CheckBoxItem.d.ts +16 -0
  23. package/dist/esm/lib2/shared/ui/CheckBoxItem/index.d.ts +1 -0
  24. package/dist/esm/lib2/shared/ui/index.d.ts +1 -0
  25. package/dist/index.d.ts +48 -3
  26. package/package.json +1 -1
@@ -0,0 +1,14 @@
1
+ import { SelectItemType } from '../../shared';
2
+ type Props = {
3
+ items: {
4
+ id: string;
5
+ label: string;
6
+ value?: string;
7
+ }[];
8
+ type: SelectItemType;
9
+ values: string[];
10
+ name: string;
11
+ onChange(values: string[]): void;
12
+ };
13
+ declare const CheckBoxListFeature: ({ items, name, type, onChange, values, }: Props) => JSX.Element;
14
+ export default CheckBoxListFeature;
@@ -0,0 +1 @@
1
+ export { default as CheckBoxListFeature } from './CheckBoxListFeature';
@@ -0,0 +1,15 @@
1
+ type Props = {
2
+ sections: {
3
+ name: string;
4
+ items: {
5
+ id: string;
6
+ label: string;
7
+ value?: string;
8
+ }[];
9
+ }[];
10
+ defaultChecked?: string[];
11
+ name: string;
12
+ onChange(values: string[]): void;
13
+ };
14
+ declare const CheckBoxSectionListFeature: ({ sections, name, defaultChecked, onChange, }: Props) => JSX.Element;
15
+ export default CheckBoxSectionListFeature;
@@ -0,0 +1 @@
1
+ export { default as CheckBoxSectionListFeature } from './CheckBoxSectionListFeature';
@@ -8,3 +8,5 @@ export * from './SpecialistShortInfoItemFeature';
8
8
  export * from './SpecialistInfoColumnFeature';
9
9
  export * from './CountdownTimerFeature';
10
10
  export * from './MobilePickerFeature';
11
+ export * from './CheckBoxSectionListFeature';
12
+ export * from './CheckBoxListFeature';
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconMixedButton: (props: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconRadioButtonChecked: (props: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -57,3 +57,4 @@ export * from './IconCancel';
57
57
  export * from './IconCalendarFilled';
58
58
  export * from './IconBookmark';
59
59
  export * from './IconArrowDown';
60
+ export * from './IconRadioButtonChecked';
@@ -0,0 +1,16 @@
1
+ import React, { ChangeEvent } from 'react';
2
+ export declare enum SelectItemType {
3
+ Checkbox = "checkbox",
4
+ Radio = "radio"
5
+ }
6
+ type Props = {
7
+ type: SelectItemType;
8
+ id: string;
9
+ label: string;
10
+ name: string;
11
+ value: string;
12
+ checked: boolean;
13
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
14
+ };
15
+ declare const CheckBoxItem: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
16
+ export default CheckBoxItem;
@@ -0,0 +1 @@
1
+ export { default as CheckBoxItem, SelectItemType } from './CheckBoxItem';
@@ -25,3 +25,4 @@ export * from './Loading';
25
25
  export * from './ListItems';
26
26
  export * from './Video';
27
27
  export * from './ListSimple';
28
+ export * from './CheckBoxItem';