@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akad/design-system",
3
- "version": "0.2.0-beta.7",
3
+ "version": "0.2.0-beta.9",
4
4
  "main": "react/react.js",
5
5
  "types": "react/main.d.ts",
6
6
  "author": "Gabriel Mule <gabemule@gmail.com>",
@@ -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,7 @@
1
+ export interface CarouselConfig {
2
+ name: string;
3
+ class: string;
4
+ props: Record<string, never>;
5
+ }
6
+ declare const CarouselConfig: CarouselConfig;
7
+ export default CarouselConfig;
@@ -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,4 @@
1
+ import { default as DsCarousel, DsCarouselProps } from './Carousel';
2
+
3
+ export { DsCarousel };
4
+ export type { DsCarouselProps };
@@ -0,0 +1,7 @@
1
+ export interface SplitLayoutConfig {
2
+ name: string;
3
+ class: string;
4
+ props: Record<string, never>;
5
+ }
6
+ declare const SplitLayoutConfig: SplitLayoutConfig;
7
+ export default SplitLayoutConfig;
@@ -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,5 @@
1
+ import { default as DsSplitLayout, DsSplitLayoutProps } from './SplitLayout';
2
+
3
+ export { DsSplitLayout };
4
+ export type { DsSplitLayoutProps };
5
+ export default DsSplitLayout;