@soul-refiner/design-system 0.2.7 → 0.2.8

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.
@@ -57,6 +57,10 @@ const Wrapper = styled.div `
57
57
  margin: 0px;
58
58
  padding: 0px;
59
59
 
60
+ a {
61
+ text-decoration: none;
62
+ }
63
+
60
64
  ${({ $sx }) => ($sx ? $sx : '')}
61
65
  `;
62
66
  const Item = ({ active, color, disabled, href, icon, label, onClick, size = 'large', }) => {
@@ -5,11 +5,12 @@ export interface AccordionProps extends React.PropsWithChildren {
5
5
  declare const Accordion: {
6
6
  ({ children, sx }: AccordionProps): React.JSX.Element;
7
7
  Item: {
8
- ({ children, index, sx, trigger, }: AccordionItemProps): React.JSX.Element;
8
+ ({ buttonSx, children, index, sx, trigger, }: AccordionItemProps): React.JSX.Element;
9
9
  displayName: string;
10
10
  };
11
11
  };
12
12
  export interface AccordionItemProps extends React.PropsWithChildren {
13
+ buttonSx?: string;
13
14
  index?: number;
14
15
  sx?: string;
15
16
  trigger: React.ReactNode;
@@ -20,12 +20,12 @@ const Accordion = ({ children, sx }) => {
20
20
  const Wrapper = styled.div `
21
21
  ${({ $sx }) => ($sx ? $sx : '')};
22
22
  `;
23
- const AccordionItem = ({ children, index, sx, trigger, }) => {
23
+ const AccordionItem = ({ buttonSx, children, index, sx, trigger, }) => {
24
24
  const [openIndex, setOpenIndex] = React.useContext(AccordionContext);
25
25
  return (React.createElement(Box, { "$dir": "column" },
26
26
  React.createElement(TriggerWrapper, { onClick: callAll(
27
27
  // eslint-disable-next-line
28
- () => setOpenIndex(index), trigger?.props?.onClick) },
28
+ () => setOpenIndex(index), trigger?.props?.onClick), "$sx": buttonSx },
29
29
  trigger,
30
30
  openIndex === index ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null)),
31
31
  React.createElement(Box, { sx: openIndex === index ? sx : 'visibility: hidden; height: 0px;' }, children)));
@@ -40,6 +40,7 @@ const TriggerWrapper = styled.button `
40
40
  outline: none;
41
41
  background-color: transparent;
42
42
  cursor: pointer;
43
+ ${({ $sx }) => ($sx ? $sx : '')};
43
44
  `;
44
45
  Accordion.Item = AccordionItem;
45
46
  AccordionItem.displayName = 'Accordion.Item';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "publishConfig": {