@prosistemas/sca-web-kit 3.2.2 → 3.3.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.
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import styles from './accordion.module.scss';
|
|
3
3
|
import * as Accordion from '@radix-ui/react-accordion';
|
|
4
4
|
import { MinusIcon, PlusIcon } from '@phosphor-icons/react/dist/ssr';
|
|
5
|
-
export default function StyledAccordion({ question, answer, }) {
|
|
6
|
-
return (
|
|
5
|
+
export default function StyledAccordion({ question, answer, value, }) {
|
|
6
|
+
return (_jsxs(Accordion.Item, { value: value, className: styles['accordion'], children: [_jsx(Accordion.Trigger, { className: styles['open-button'], "aria-label": 'Bot\u00E3o para encolher ou expandir a pergunta frequente', children: _jsxs(Accordion.Header, { className: styles['accordion-header'], children: [question, _jsxs("div", { className: styles['trigger'], children: [_jsx(PlusIcon, { size: 20, color: 'white', weight: 'bold', className: styles['plus'] }), _jsx(MinusIcon, { size: 20, color: 'white', weight: 'bold', className: styles['minus'] })] })] }) }), _jsx(Accordion.Content, { className: styles['answer'], children: answer })] }));
|
|
7
7
|
}
|