@manamerge/mana-atomic-ui 1.0.2 → 1.0.3

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.
@@ -18,6 +18,7 @@ import footer from "./manamerge/molecules/footer";
18
18
  import cardTeaser from "./manamerge/molecules/cardTeaser";
19
19
  import cardSimpleRender from "./manamerge/molecules/cardSimpleRender";
20
20
  import cardBanner from "./manamerge/molecules/cardBanner";
21
+ import accordion from "./manamerge/molecules/accordion";
21
22
 
22
23
  // Styling
23
24
  // import filterListTheme from "./manamerge/styling/filter-list-theme.css.js";
@@ -116,6 +117,7 @@ export const ManamergeTheme = {
116
117
  breakerTape,
117
118
  cardSimpleRender,
118
119
  cardBanner,
120
+ accordion,
119
121
 
120
122
  // Breakpoints
121
123
  media: {
@@ -0,0 +1,31 @@
1
+ const accordion = {
2
+ "Accordion-primary": {
3
+ width: "100%",
4
+ borderRadius: "8px",
5
+ backgroundTitle: "#2a2a2a",
6
+ paddingTitle: "16px",
7
+ // isOpacity: true,
8
+ hover: {
9
+ background: "#3a3a3a"
10
+ },
11
+ focusVisible: {
12
+ outline: "#0078d4 2px solid",
13
+ outlineOffset: "1px"
14
+ },
15
+ gap: "10px",
16
+ backgroundDescription: "#ccc",
17
+ atomIcon: {
18
+ variant: "small"
19
+ },
20
+ atomHeading: {
21
+ variant: "h5",
22
+ color: "white"
23
+ },
24
+ atomText: {
25
+ variant: "light",
26
+ padding: "16px"
27
+ }
28
+ }
29
+ };
30
+
31
+ export default accordion;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ export declare const AccordionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ moleculeVariant: string;
4
+ }>> & string;
5
+ export declare const AccordionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
6
+ moleculeVariant: string;
7
+ }>> & string;
8
+ export declare const AccordionDescription: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
9
+ isOpen: boolean;
10
+ moleculeVariant: string;
11
+ }>> & string;
12
+ export declare const AtomHeading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("../../Atoms/Heading/Heading").HeadingTypes, import("../../Atoms/Heading/Heading").HeadingTypes>, {
13
+ moleculeVariant: string;
14
+ }>, never>> & string & Omit<import("react").FC<import("../../Atoms/Heading/Heading").HeadingTypes>, keyof import("react").Component<any, {}, any>>;
15
+ export declare const AtomIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("../../Atoms/Icon/Icon").IconTypes, import("../../Atoms/Icon/Icon").IconTypes>, {
16
+ moleculeVariant: string;
17
+ }>, never>> & string & Omit<import("react").FC<import("../../Atoms/Icon/Icon").IconTypes>, keyof import("react").Component<any, {}, any>>;
18
+ export declare const AtomText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("../../Atoms/Text/Text").TextTypes, import("../../Atoms/Text/Text").TextTypes>, {
19
+ moleculeVariant: string;
20
+ }>, never>> & string & Omit<import("react").FC<import("../../Atoms/Text/Text").TextTypes>, keyof import("react").Component<any, {}, any>>;
@@ -0,0 +1,12 @@
1
+ import React, { FunctionComponent, SVGProps } from "react";
2
+ export interface ContentTypes {
3
+ title?: string;
4
+ description?: string;
5
+ }
6
+ export interface AccordionTypes {
7
+ moleculeVariant?: string;
8
+ iconPlus?: FunctionComponent<SVGProps<SVGSVGElement>>;
9
+ iconMinus?: FunctionComponent<SVGProps<SVGSVGElement>>;
10
+ content?: ContentTypes[];
11
+ }
12
+ export declare const Accordion: React.FC<AccordionTypes>;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { AccordionTypes } from "./Accordion";
3
+ declare const meta: Meta<AccordionTypes>;
4
+ export default meta;
5
+ type Story = StoryObj<AccordionTypes>;
6
+ export declare const Default: Story;
@@ -13,3 +13,4 @@ export { CardTeaser } from "./Molecules/CardTeaser/CardTeaser";
13
13
  export { BreakerTape } from "./Molecules/BreakerTape/BreakerTape";
14
14
  export { CardSimpleRender } from "./Molecules/CardSimpleRender/CardSimpleRender";
15
15
  export { CardBanner } from "./Molecules/CardBanner/CardBanner";
16
+ export { Accordion } from "./Molecules/Accordion/Accordion";
@@ -854,6 +854,34 @@ export declare const ManamergeTheme: {
854
854
  };
855
855
  };
856
856
  };
857
+ accordion: {
858
+ "Accordion-primary": {
859
+ width: string;
860
+ borderRadius: string;
861
+ backgroundTitle: string;
862
+ paddingTitle: string;
863
+ hover: {
864
+ background: string;
865
+ };
866
+ focusVisible: {
867
+ outline: string;
868
+ outlineOffset: string;
869
+ };
870
+ gap: string;
871
+ backgroundDescription: string;
872
+ atomIcon: {
873
+ variant: string;
874
+ };
875
+ atomHeading: {
876
+ variant: string;
877
+ color: string;
878
+ };
879
+ atomText: {
880
+ variant: string;
881
+ padding: string;
882
+ };
883
+ };
884
+ };
857
885
  media: {
858
886
  tinyMobileUp: string;
859
887
  smallMobileUp: string;
@@ -0,0 +1,29 @@
1
+ declare const accordion: {
2
+ "Accordion-primary": {
3
+ width: string;
4
+ borderRadius: string;
5
+ backgroundTitle: string;
6
+ paddingTitle: string;
7
+ hover: {
8
+ background: string;
9
+ };
10
+ focusVisible: {
11
+ outline: string;
12
+ outlineOffset: string;
13
+ };
14
+ gap: string;
15
+ backgroundDescription: string;
16
+ atomIcon: {
17
+ variant: string;
18
+ };
19
+ atomHeading: {
20
+ variant: string;
21
+ color: string;
22
+ };
23
+ atomText: {
24
+ variant: string;
25
+ padding: string;
26
+ };
27
+ };
28
+ };
29
+ export default accordion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manamerge/mana-atomic-ui",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Mana Merge design system",
5
5
  "license": "ISC",
6
6
  "author": "MM",