@codecademy/gamut
71.0.071.0.1-alpha.d92614.0
dist/AccordionButtonDeprecated/index.js−
dist/AccordionButtonDeprecated/index.jsDeleted−65
Index: package/dist/AccordionButtonDeprecated/index.js
===================================================================
--- package/dist/AccordionButtonDeprecated/index.js
+++ package/dist/AccordionButtonDeprecated/index.js
@@ -1,65 +0,0 @@
-import { ArrowChevronDownIcon } from '@codecademy/gamut-icons';
-import cx from 'classnames';
-import * as React from 'react';
-import { ButtonDeprecated } from './ButtonDeprecated';
-import { ButtonDeprecatedBase } from './ButtonDeprecatedBase';
-// eslint-disable-next-line gamut/no-css-standalone
-import styles from './styles.module.scss';
-import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
-const buttonThemes = {
- blue: {
- component: ButtonDeprecated,
- props: {
- flat: true,
- theme: 'white'
- }
- },
- plain: {
- component: ButtonDeprecated,
- props: {
- flat: true,
- theme: 'brand-dark-blue'
- }
- },
- yellow: {
- component: ButtonDeprecatedBase,
- props: {}
- }
-};
-
-/**
- * @deprecated
- * This component is in the old visual identity and will be updated soon.
- *
- * Check the [Gamut Board](https://www.notion.so/codecademy/Gamut-Status-Timeline-dd3c135d3848464ea6eb1b48e68fbb1d) for component status
- */
-
-export const AccordionButtonDeprecated = ({
- children,
- className,
- expanded,
- size = 'normal',
- theme = 'plain',
- ...baseProps
-}) => {
- const {
- component: ButtonComponent,
- props
- } = buttonThemes[theme];
- const iconSize = size === 'large' ? 30 : undefined;
- return /*#__PURE__*/_jsxs(ButtonComponent, {
- "aria-expanded": expanded,
- className: cx(styles.accordionButton, styles[theme], styles[size], className),
- ...baseProps,
- ...props,
- children: [/*#__PURE__*/_jsx("span", {
- className: styles.children,
- children: children
- }), /*#__PURE__*/_jsx(ArrowChevronDownIcon, {
- "aria-hidden": true,
- className: cx(styles.expansionIcon, expanded && styles.expansionIconExpanded),
- height: iconSize,
- width: iconSize
- })]
- });
-};
\ No newline at end of file