Skip to content

Commit

Permalink
Restructure add-on
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Nov 18, 2020
1 parent 5adb193 commit 0fd79ed
Show file tree
Hide file tree
Showing 13 changed files with 313 additions and 299 deletions.
1 change: 0 additions & 1 deletion src/Widgets/index.js

This file was deleted.

1 change: 1 addition & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export AccordionBlockEdit from './manage/Blocks/Accordion/Edit';
export AccordionBlockView from './manage/Blocks/Accordion/View';
export AccordionBlockSchema from './manage/Blocks/Accordion/Schema';
export PanelWidget from './manage/Widgets/PanelWidget';

export { options } from './manage/Blocks/Accordion/panels';
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/Accordion/Panels.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import './editor.less';
export default ({ data, onChange, children, variants }) => {
return (
<Segment>
<h4>Select Panels:</h4>
<h4>Accordion Panels:</h4>
<Card.Group centered itemsPerRow={3}>
{variants.map(({ icon, defaultData, title }, index) => (
<Card key={index} onClick={() => onChange(defaultData)}>
Expand Down
9 changes: 9 additions & 0 deletions src/components/manage/Blocks/Accordion/editor.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
.block-editor-accordion {
margin: 0 -2.2rem;

.ui.card {
.content {
color: #68778d;
svg {
fill: #68778d;
}
}
}

.block-editor-accordion {
margin: 0 0.1rem;
}
Expand Down
165 changes: 0 additions & 165 deletions src/components/manage/Blocks/Accordion/icons/five-circle-bottom.svg

This file was deleted.

This file was deleted.

22 changes: 11 additions & 11 deletions src/components/manage/Blocks/Accordion/panels.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import threeColumnSVG from './icons/three-circle-bottom.svg';
import fiveColumnSVG from './icons/five-circle-bottom.svg';
import oneColumnSVG from './icons/circle-bottom.svg';
import oneSVG from '@eeacms/volto-accordion-block/icons/one.svg';
import twoSVG from '@eeacms/volto-accordion-block/icons/two.svg';
import threeSVG from '@eeacms/volto-accordion-block/icons/three.svg';

export const options = [
{
icon: oneColumnSVG,
icon: oneSVG,
defaultData: {
count: 1,
},
title: '1 Panel',
title: '1',
},
{
icon: threeColumnSVG,
icon: twoSVG,
defaultData: {
count: 3,
count: 2,
},
title: '3 Panels',
title: '2',
},
{
icon: fiveColumnSVG,
icon: threeSVG,
defaultData: {
count: 5,
count: 3,
},
title: '5 Panels',
title: '3',
},
];
File renamed without changes.
Loading

0 comments on commit 0fd79ed

Please sign in to comment.