@scbt-ecom/ui 0.99.0 → 0.101.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/dist/lib/shared/style.css +1 -1
- package/dist/lib/shared/ui/dropdownList/hooks/model/index.js +2 -0
- package/dist/lib/shared/ui/dropdownList/hooks/model/index.js.map +1 -0
- package/dist/lib/shared/ui/dropdownList/hooks/model/scrollTo.js +2 -0
- package/dist/lib/shared/ui/dropdownList/hooks/model/scrollTo.js.map +1 -0
- package/dist/lib/shared/ui/dropdownList/hooks/useKeyboardNavigation.js +1 -1
- package/dist/lib/shared/ui/dropdownList/hooks/useKeyboardNavigation.js.map +1 -1
- package/dist/lib/shared/ui/formElements/uncontrolled/combobox/combobox.js +1 -1
- package/dist/lib/shared/ui/formElements/uncontrolled/combobox/combobox.js.map +1 -1
- package/dist/lib/widgets/model/helpers.js +2 -2
- package/dist/lib/widgets/model/helpers.js.map +1 -1
- package/dist/lib/widgets/usefulInfo/model/index.js +1 -1
- package/dist/lib/widgets/usefulInfo/model/utils.js +1 -1
- package/dist/lib/widgets/usefulInfo/model/utils.js.map +1 -1
- package/dist/lib/widgets/usefulInfo/ui/RenderEntity.js +1 -1
- package/dist/lib/widgets/usefulInfo/ui/RenderEntity.js.map +1 -1
- package/dist/lib/widgets/usefulInfo/ui/subEntities/experts/Experts.js +2 -0
- package/dist/lib/widgets/usefulInfo/ui/subEntities/experts/Experts.js.map +1 -0
- package/dist/lib/widgets/usefulInfo/ui/subEntities/experts/index.js +2 -0
- package/dist/lib/widgets/usefulInfo/ui/subEntities/experts/index.js.map +1 -0
- package/dist/lib/widgets/usefulInfo/ui/subEntities/experts/ui/ExpertCard.js +2 -0
- package/dist/lib/widgets/usefulInfo/ui/subEntities/experts/ui/ExpertCard.js.map +1 -0
- package/dist/lib/widgets/usefulInfo/ui/subEntities/experts/ui/index.js +2 -0
- package/dist/lib/widgets/usefulInfo/ui/subEntities/experts/ui/index.js.map +1 -0
- package/dist/lib/widgets/usefulInfo/ui/subEntities/index.js +1 -1
- package/dist/node_modules/react-hook-form/dist/index.esm.js +1 -1
- package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/types/lib/shared/ui/dropdownList/hooks/model/index.d.ts +1 -0
- package/dist/types/lib/shared/ui/dropdownList/hooks/model/scrollTo.d.ts +10 -0
- package/dist/types/lib/widgets/usefulInfo/model/types.d.ts +11 -3
- package/dist/types/lib/widgets/usefulInfo/model/utils.d.ts +1 -0
- package/dist/types/lib/widgets/usefulInfo/ui/RenderEntity.d.ts +2 -1
- package/dist/types/lib/widgets/usefulInfo/ui/subEntities/experts/Experts.d.ts +16 -0
- package/dist/types/lib/widgets/usefulInfo/ui/subEntities/experts/index.d.ts +1 -0
- package/dist/types/lib/widgets/usefulInfo/ui/subEntities/experts/ui/ExpertCard.d.ts +17 -0
- package/dist/types/lib/widgets/usefulInfo/ui/subEntities/experts/ui/index.d.ts +1 -0
- package/dist/types/lib/widgets/usefulInfo/ui/subEntities/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { scrollTo } from './scrollTo';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DropdownItemOption } from '../../ui/dropdownItem';
|
|
2
|
+
type ScrollToProps = {
|
|
3
|
+
focusedIndex: number;
|
|
4
|
+
options: DropdownItemOption[];
|
|
5
|
+
elements: HTMLElement[];
|
|
6
|
+
container: HTMLElement;
|
|
7
|
+
behavior?: 'smooth' | 'instant';
|
|
8
|
+
};
|
|
9
|
+
export declare const scrollTo: (direction: 1 | -1, params: ScrollToProps) => number;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityDocumentsProps, EntityHtmlProps, EntityTableProps } from '../ui/subEntities';
|
|
1
|
+
import { EntityDocumentsProps, EntityExpertsProps, EntityHtmlProps, EntityTableProps } from '../ui/subEntities';
|
|
2
2
|
import { AccordionProps } from '../../../../shared/ui';
|
|
3
3
|
export type SubEntityDetailsConfig = {
|
|
4
4
|
isAccordion: boolean;
|
|
@@ -8,11 +8,18 @@ export type EntitiesAccordionsConfig = {
|
|
|
8
8
|
htmlAccordion?: Partial<AccordionProps>;
|
|
9
9
|
documentAccordion?: Partial<AccordionProps>;
|
|
10
10
|
tableAccordion?: Partial<AccordionProps>;
|
|
11
|
+
expertsAccordion?: Partial<AccordionProps>;
|
|
12
|
+
};
|
|
13
|
+
export type EntityVariant = 'HTML' | 'TABLE' | 'DOCUMENTS' | 'EXPERTS';
|
|
14
|
+
type EntityDetailsMap = {
|
|
15
|
+
HTML: EntityHtmlProps[];
|
|
16
|
+
TABLE: EntityTableProps[];
|
|
17
|
+
DOCUMENTS: EntityDocumentsProps[];
|
|
18
|
+
EXPERTS: EntityExpertsProps[];
|
|
11
19
|
};
|
|
12
|
-
export type EntityVariant = 'HTML' | 'TABLE' | 'DOCUMENTS';
|
|
13
20
|
export type Entity<Variant extends EntityVariant = EntityVariant> = {
|
|
14
21
|
variant: Variant;
|
|
15
|
-
details:
|
|
22
|
+
details: EntityDetailsMap[Variant];
|
|
16
23
|
};
|
|
17
24
|
export type Contents = {
|
|
18
25
|
entity: Entity;
|
|
@@ -23,3 +30,4 @@ export type Tab = {
|
|
|
23
30
|
contents: Contents[];
|
|
24
31
|
tabId: string;
|
|
25
32
|
};
|
|
33
|
+
export {};
|
|
@@ -2,3 +2,4 @@ import { Entity } from './types';
|
|
|
2
2
|
export declare const isHtml: (entity: Entity) => entity is Entity<"HTML">;
|
|
3
3
|
export declare const isDocuments: (entity: Entity) => entity is Entity<"DOCUMENTS">;
|
|
4
4
|
export declare const isTable: (entity: Entity) => entity is Entity<"TABLE">;
|
|
5
|
+
export declare const isExperts: (entity: Entity) => entity is Entity<"EXPERTS">;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { EntitiesAccordionsConfig, Entity } from '../model';
|
|
2
|
-
import { EntityDocumentsClasses, EntityHtmlClasses, EntityTableClasses } from './subEntities';
|
|
2
|
+
import { EntityDocumentsClasses, EntityExpertsClasses, EntityHtmlClasses, EntityTableClasses } from './subEntities';
|
|
3
3
|
export type EntityClasses = {
|
|
4
4
|
entityWrapper?: string;
|
|
5
5
|
entities?: {
|
|
6
6
|
html?: EntityHtmlClasses;
|
|
7
7
|
documents?: EntityDocumentsClasses;
|
|
8
8
|
table?: EntityTableClasses;
|
|
9
|
+
experts?: EntityExpertsClasses;
|
|
9
10
|
};
|
|
10
11
|
};
|
|
11
12
|
export interface RenderEntityProps {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EntitiesAccordionsConfig, SubEntityDetailsConfig } from '../../../model';
|
|
2
|
+
import { ExpertCardClasses, ExpertCardProps } from './ui';
|
|
3
|
+
export type EntityExpertsClasses = {
|
|
4
|
+
root?: string;
|
|
5
|
+
headline?: string;
|
|
6
|
+
wrapper?: string;
|
|
7
|
+
singleCard?: ExpertCardClasses;
|
|
8
|
+
};
|
|
9
|
+
export interface EntityExpertsProps {
|
|
10
|
+
headline?: string;
|
|
11
|
+
expertsList: ExpertCardProps[];
|
|
12
|
+
config?: SubEntityDetailsConfig;
|
|
13
|
+
classes?: EntityExpertsClasses;
|
|
14
|
+
accordionConfig?: EntitiesAccordionsConfig['expertsAccordion'];
|
|
15
|
+
}
|
|
16
|
+
export declare const Experts: ({ expertsList, classes, accordionConfig, config, headline }: EntityExpertsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Experts';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type ExpertCardClasses = {
|
|
2
|
+
card?: string;
|
|
3
|
+
wrapper?: string;
|
|
4
|
+
avatar?: string;
|
|
5
|
+
textBlock?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
position?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
};
|
|
10
|
+
export interface ExpertCardProps {
|
|
11
|
+
name: string;
|
|
12
|
+
position: string;
|
|
13
|
+
description: string;
|
|
14
|
+
avatar: string;
|
|
15
|
+
classes?: ExpertCardClasses;
|
|
16
|
+
}
|
|
17
|
+
export declare const ExpertCard: ({ name, position, avatar, description, classes }: ExpertCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ExpertCard';
|