@akad/design-system 0.2.0-beta.7 → 0.2.0-beta.9
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/css/aon-theme.css +1 -1
- package/css/bees-theme.css +1 -1
- package/css/bmc-theme.css +1 -1
- package/css/default-theme.css +1 -1
- package/css/linker-theme.css +1 -1
- package/css/oggi-theme.css +1 -1
- package/css/streetgo-theme.css +1 -1
- package/package.json +1 -1
- package/react/components/index.d.ts +3 -1
- package/react/components/molecules/Carousel/Carousel.config.d.ts +7 -0
- package/react/components/molecules/Carousel/Carousel.d.ts +31 -0
- package/react/components/molecules/Carousel/Carousel.test.d.ts +1 -0
- package/react/components/molecules/Carousel/index.d.ts +4 -0
- package/react/components/templates/SplitLayout/SplitLayout.config.d.ts +7 -0
- package/react/components/templates/SplitLayout/SplitLayout.d.ts +9 -0
- package/react/components/templates/SplitLayout/SplitLayout.test.d.ts +1 -0
- package/react/components/templates/SplitLayout/index.d.ts +5 -0
- package/react/react-lib.js +1243 -1124
- package/react/react-lib.umd.cjs +5 -5
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DsTwoColumns } from './templates/TwoColumns';
|
|
2
|
+
import { DsSplitLayout } from './templates/SplitLayout';
|
|
2
3
|
import { DsNotificationList } from './organisms/NotificationList';
|
|
3
4
|
import { ThemeProvider } from './molecules/ThemeProvider';
|
|
4
5
|
import { DsTabs } from './molecules/Tabs';
|
|
@@ -10,6 +11,7 @@ import { DsModal } from './molecules/Modal';
|
|
|
10
11
|
import { DsInlineEditable } from './molecules/InlineEditable';
|
|
11
12
|
import { DsIndicator } from './molecules/Indicator';
|
|
12
13
|
import { DsEditableSelect } from './molecules/EditableSelect';
|
|
14
|
+
import { DsCarousel } from './molecules/Carousel';
|
|
13
15
|
import { DsActiveTags } from './molecules/ActiveTags';
|
|
14
16
|
import { DsAccordion } from './molecules/Accordion';
|
|
15
17
|
import { DsWrapper } from './bosons/Wrapper';
|
|
@@ -34,4 +36,4 @@ import { DsCard } from './atoms/Card';
|
|
|
34
36
|
import { DsCaption } from './atoms/Caption';
|
|
35
37
|
import { DsButton } from './atoms/Button';
|
|
36
38
|
|
|
37
|
-
export { DsAccordion, DsButton, DsCaption, DsCard, DsCheckbox, DsContainer, DsFlexElement, DsFlexLayout, DsGridElement, DsGridLayout, DsHeading, DsHR, DsIcon, DsIndicator, DsInlineEditable, DsInput, DsLoading, DsModal, DsNotification, DsNotificationList, DsOption, DsParagraph, DsSelect, DsSpacer, DsStepper, DsSubtitle, DsTable, DsTabs, DsTextArea, DsTooltip, DsTwoColumns, DsWrapper, DsProgress, DsPasswordConfirmation, DsEditableSelect, DsActiveTags, ThemeProvider, };
|
|
39
|
+
export { DsAccordion, DsButton, DsCaption, DsCard, DsCheckbox, DsContainer, DsFlexElement, DsFlexLayout, DsGridElement, DsGridLayout, DsHeading, DsHR, DsIcon, DsIndicator, DsInlineEditable, DsInput, DsLoading, DsModal, DsNotification, DsNotificationList, DsOption, DsParagraph, DsSelect, DsSpacer, DsStepper, DsSubtitle, DsTable, DsTabs, DsTextArea, DsTooltip, DsTwoColumns, DsSplitLayout, DsWrapper, DsProgress, DsPasswordConfirmation, DsEditableSelect, DsActiveTags, ThemeProvider, DsCarousel, };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
|
|
3
|
+
type Slide = {
|
|
4
|
+
title: string;
|
|
5
|
+
image: string;
|
|
6
|
+
description: string;
|
|
7
|
+
};
|
|
8
|
+
export interface DsCarouselProps {
|
|
9
|
+
slides: Slide[];
|
|
10
|
+
interval?: number;
|
|
11
|
+
imageHeight?: number | string;
|
|
12
|
+
imageWidth?: number | string;
|
|
13
|
+
imageMaxHeight?: number | string;
|
|
14
|
+
imageMaxWidth?: number | string;
|
|
15
|
+
}
|
|
16
|
+
declare const DsCarousel: {
|
|
17
|
+
({ slides, interval, imageHeight, imageWidth, imageMaxHeight, imageMaxWidth, }: DsCarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
propTypes: {
|
|
19
|
+
slides: PropTypes.Validator<(PropTypes.InferProps<{
|
|
20
|
+
title: PropTypes.Validator<string>;
|
|
21
|
+
image: PropTypes.Validator<string>;
|
|
22
|
+
description: PropTypes.Validator<string>;
|
|
23
|
+
}> | null | undefined)[]>;
|
|
24
|
+
interval: PropTypes.Requireable<number>;
|
|
25
|
+
imageHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
26
|
+
imageWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
27
|
+
imageMaxHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
28
|
+
imageMaxWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default DsCarousel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DsSplitLayoutProps {
|
|
2
|
+
leftContent: React.ReactNode;
|
|
3
|
+
rightContent: React.ReactNode;
|
|
4
|
+
leftBackgroundColor?: string;
|
|
5
|
+
rightBackgroundColor?: string;
|
|
6
|
+
reverseOnMobile?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const DsSplitLayout: React.FC<DsSplitLayoutProps>;
|
|
9
|
+
export default DsSplitLayout;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|