diff --git a/src/features/components/atoms/accordion/accordion-item/index.tsx b/src/features/components/atoms/accordion/accordion-item/index.tsx index 1e4525a013c..2877090934a 100644 --- a/src/features/components/atoms/accordion/accordion-item/index.tsx +++ b/src/features/components/atoms/accordion/accordion-item/index.tsx @@ -29,21 +29,21 @@ const icons: AccordionIcons = { const AccordionItem = React.forwardRef( ({ children, className, item_title, icon_type = 'chevron', ...props }, ref) => ( - + - + - +
{children}
diff --git a/src/features/components/atoms/accordion/accordion-root/index.tsx b/src/features/components/atoms/accordion/accordion-root/index.tsx index 5aeff879560..1369b491e98 100644 --- a/src/features/components/atoms/accordion/accordion-root/index.tsx +++ b/src/features/components/atoms/accordion/accordion-root/index.tsx @@ -9,7 +9,7 @@ const AccordionRoot = React.forwardRef< >(({ className, ...rest }, ref) => { return ( diff --git a/src/features/components/atoms/accordion/accordion-shadow-item/index.tsx b/src/features/components/atoms/accordion/accordion-shadow-item/index.tsx index 3bac18326b6..52f1b8fc5e1 100644 --- a/src/features/components/atoms/accordion/accordion-shadow-item/index.tsx +++ b/src/features/components/atoms/accordion/accordion-shadow-item/index.tsx @@ -16,14 +16,18 @@ interface TAccordionItem extends AccordionItemProps { const AccordionShadowItem = React.forwardRef( ({ children, className, renderHeader, item_title, icon_type = 'chevron', ...props }, ref) => ( - + {renderHeader ? ( @@ -36,17 +40,20 @@ const AccordionShadowItem = React.forwardRef( {icon_type === 'chevron' ? ( ) : ( - + )}
{children}
diff --git a/src/features/components/atoms/alert/index.tsx b/src/features/components/atoms/alert/index.tsx index cce7d30f84e..9df9cfd1841 100644 --- a/src/features/components/atoms/alert/index.tsx +++ b/src/features/components/atoms/alert/index.tsx @@ -27,8 +27,8 @@ const Alert = ({ return ( - - + +
diff --git a/src/features/components/atoms/card/card-primary/index.tsx b/src/features/components/atoms/card/card-primary/index.tsx index 0595eac0826..ed7246c196d 100644 --- a/src/features/components/atoms/card/card-primary/index.tsx +++ b/src/features/components/atoms/card/card-primary/index.tsx @@ -52,7 +52,7 @@ const CardPrimary = ({ )} diff --git a/src/features/components/atoms/container/fixed/index.tsx b/src/features/components/atoms/container/fixed/index.tsx index 02af5dbe067..f2ced6fa500 100644 --- a/src/features/components/atoms/container/fixed/index.tsx +++ b/src/features/components/atoms/container/fixed/index.tsx @@ -4,7 +4,7 @@ import { ContentSectionTagOptions } from 'features/types' import dclsx from 'features/utils/dclsx' const FixedContainer = ({ className, ...rest }: BoxProps) => { - const classnames = dclsx(className, 'container-fixed') + const classnames = dclsx(className, 'at-container-fixed') return } diff --git a/src/features/components/atoms/container/fluid/index.tsx b/src/features/components/atoms/container/fluid/index.tsx index ae36a8c01e5..40e7a9a4806 100644 --- a/src/features/components/atoms/container/fluid/index.tsx +++ b/src/features/components/atoms/container/fluid/index.tsx @@ -4,7 +4,7 @@ import { ContentSectionTagOptions } from 'features/types' import dclsx from 'features/utils/dclsx' const FluidContainer = ({ className, ...rest }: BoxProps) => { - const classnames = dclsx(className, 'container-fluid') + const classnames = dclsx(className, 'at-container-fluid') return } diff --git a/src/features/components/atoms/flex-box/box/index.tsx b/src/features/components/atoms/flex-box/box/index.tsx index a067a747d1d..f552113c978 100644 --- a/src/features/components/atoms/flex-box/box/index.tsx +++ b/src/features/components/atoms/flex-box/box/index.tsx @@ -34,11 +34,11 @@ const generateFlexClasses = (options: FlexBoxClasses, prefix?: string) => { const classPrefix = prefix ? `${prefix}-` : '' return dclsx({ - [`${classPrefix}gap-${gap}`]: gap, - [`${classPrefix}align-items-${align}`]: align, - [`${classPrefix}justify-${justify}`]: justify, - [`${classPrefix}flex-wrap-${wrap}`]: wrap, - [`${classPrefix}flex-dir-${direction}`]: direction, + [`${classPrefix}at-gap-${gap}`]: gap, + [`${classPrefix}at-align-items-${align}`]: align, + [`${classPrefix}at-justify-${justify}`]: justify, + [`${classPrefix}at-flex-wrap-${wrap}`]: wrap, + [`${classPrefix}at-flex-dir-${direction}`]: direction, }) } @@ -59,10 +59,10 @@ const FlexBoxContainer = ({ ...rest }: FlexBoxProps) => { const classnames = dclsx( - 'flex', + 'at-flex', className, { - [`container-${container}`]: container, + [`at-container-${container}`]: container, }, generateFlexItemClasses({ align_self, grow, shrink, basis }), generateFlexItemClasses(md ?? {}, 'md'), diff --git a/src/features/components/atoms/flex-box/item/index.tsx b/src/features/components/atoms/flex-box/item/index.tsx index e4b9827abb6..bdc6436aae4 100644 --- a/src/features/components/atoms/flex-box/item/index.tsx +++ b/src/features/components/atoms/flex-box/item/index.tsx @@ -29,10 +29,10 @@ export const generateFlexItemClasses = (options: FlexItemClasses, prefix = '') = const classPrefix = prefix ? `${prefix}-` : '' const { align_self, grow, shrink, basis } = options return dclsx({ - [`${classPrefix}align-self-${align_self}`]: align_self, - [`${classPrefix}flex-grow-${grow}`]: grow, - [`${classPrefix}flex-shrink-${shrink}`]: shrink, - [`${classPrefix}flex-basis-${basis}`]: basis, + [`${classPrefix}at-align-self-${align_self}`]: align_self, + [`${classPrefix}at-flex-grow-${grow}`]: grow, + [`${classPrefix}at-flex-shrink-${shrink}`]: shrink, + [`${classPrefix}at-flex-basis-${basis}`]: basis, }) } diff --git a/src/features/components/atoms/icon/index.tsx b/src/features/components/atoms/icon/index.tsx index 36319a9dcfe..afb5a3b4416 100644 --- a/src/features/components/atoms/icon/index.tsx +++ b/src/features/components/atoms/icon/index.tsx @@ -9,8 +9,8 @@ interface IconProps extends ImgHTMLAttributes<'img'>, ClassProps { } const Icon = ({ size = 'small', has_rtl, className, ...rest }: IconProps) => { - const classnames = dclsx(className, `icon-${size}`, 'icon', { - 'icon-rtl': has_rtl, + const classnames = dclsx(className, `at-icon-${size}`, 'at-icon', { + 'at-icon-rtl': has_rtl, }) return diff --git a/src/features/components/atoms/input/checkbox/index.tsx b/src/features/components/atoms/input/checkbox/index.tsx index 42e65b46c06..7f032e11977 100644 --- a/src/features/components/atoms/input/checkbox/index.tsx +++ b/src/features/components/atoms/input/checkbox/index.tsx @@ -7,7 +7,7 @@ const CheckboxInput = forwardRef {children} diff --git a/src/features/components/atoms/input/text/index.tsx b/src/features/components/atoms/input/text/index.tsx index f631fe63a2e..3ddcdad177c 100644 --- a/src/features/components/atoms/input/text/index.tsx +++ b/src/features/components/atoms/input/text/index.tsx @@ -18,13 +18,13 @@ const TextInput = forwardRef( ({ formId, error, className, label, clearErrors, setValue, ...rest }, ref) => { const notValid = error && error.length ? 'error' : 'valid' return ( -
+
{error && ( error icon { setValue(formId, '') clearErrors() @@ -36,7 +36,7 @@ const TextInput = forwardRef( @@ -47,7 +47,7 @@ const TextInput = forwardRef( diff --git a/src/features/components/atoms/link/internal.tsx b/src/features/components/atoms/link/internal.tsx index 2d8f10a9898..8517810437d 100644 --- a/src/features/components/atoms/link/internal.tsx +++ b/src/features/components/atoms/link/internal.tsx @@ -93,8 +93,8 @@ const Internal = ({ rel={link_rel} className={dclsx( className, - 'typography-link', - 'typography', + 'at-typography-link', + 'at-typography', generateSpacingClasses({ margin, padding, @@ -125,8 +125,8 @@ const Internal = ({ textcolor, }), { - 'typography-hover': !no_hover, - 'typography-color-brand': is_active, + 'at-typography-hover': !no_hover, + 'at-typography-color-brand': is_active, }, )} > diff --git a/src/features/components/atoms/tab/base/index.tsx b/src/features/components/atoms/tab/base/index.tsx index 3c36c2f9238..d82cb44d468 100644 --- a/src/features/components/atoms/tab/base/index.tsx +++ b/src/features/components/atoms/tab/base/index.tsx @@ -32,7 +32,7 @@ const TabBase = ({ return ( diff --git a/src/features/components/atoms/table/base/index.tsx b/src/features/components/atoms/table/base/index.tsx index 7a5a4fd6b32..f02767dc463 100644 --- a/src/features/components/atoms/table/base/index.tsx +++ b/src/features/components/atoms/table/base/index.tsx @@ -23,10 +23,10 @@ function BaseTable({ }: TableProps) { return ( - +
diff --git a/src/features/components/atoms/table/base/table-header.tsx b/src/features/components/atoms/table/base/table-header.tsx index 2ea8adbe608..0d77ad77cc9 100644 --- a/src/features/components/atoms/table/base/table-header.tsx +++ b/src/features/components/atoms/table/base/table-header.tsx @@ -14,14 +14,14 @@ const TableHeader = ({ columns }: TableHeaderProps) {col.header} diff --git a/src/features/components/atoms/table/base/table-row.tsx b/src/features/components/atoms/table/base/table-row.tsx index edc22bd5d39..efc7ac4f955 100644 --- a/src/features/components/atoms/table/base/table-row.tsx +++ b/src/features/components/atoms/table/base/table-row.tsx @@ -16,13 +16,13 @@ const TableRow = ({ data, columns }: TableRowProps) {row[col.accessor]} diff --git a/src/features/components/atoms/table/shadow-table/index.tsx b/src/features/components/atoms/table/shadow-table/index.tsx index a9a8f51dae8..082e76a1094 100644 --- a/src/features/components/atoms/table/shadow-table/index.tsx +++ b/src/features/components/atoms/table/shadow-table/index.tsx @@ -3,7 +3,7 @@ import BaseTable, { TableProps } from '../base' import dclsx from 'features/utils/dclsx' function ShadowTable({ className, ...rest }: TableProps) { - return + return } export default ShadowTable diff --git a/src/features/components/atoms/typography/base/index.tsx b/src/features/components/atoms/typography/base/index.tsx index 50db3f8d576..5bcbb023327 100644 --- a/src/features/components/atoms/typography/base/index.tsx +++ b/src/features/components/atoms/typography/base/index.tsx @@ -48,7 +48,7 @@ const BaseTypography = ({ }: BaseTypographyProps) => { const classnames = dclsx( className, - 'typography', + 'at-typography', generateTypographyAlignClasses(align), generateTypographyAlignClasses(md?.align, 'md'), generateTypographyAlignClasses(lg?.align, 'lg'), diff --git a/src/features/components/atoms/typography/heading/index.tsx b/src/features/components/atoms/typography/heading/index.tsx index 20e0b49c9f0..0a278308581 100644 --- a/src/features/components/atoms/typography/heading/index.tsx +++ b/src/features/components/atoms/typography/heading/index.tsx @@ -9,7 +9,7 @@ interface HeadingProps extends BaseTypographyProps { } const Heading = ({ size = 'medium', weight, className, as = 'h1', ...rest }: HeadingProps) => { - const classnames = dclsx(className, 'heading', generateHeadingSize(size)) + const classnames = dclsx(className, 'at-heading', generateHeadingSize(size)) return } diff --git a/src/features/components/atoms/typography/hero/index.tsx b/src/features/components/atoms/typography/hero/index.tsx index c5c71021bc2..d5f8741836f 100644 --- a/src/features/components/atoms/typography/hero/index.tsx +++ b/src/features/components/atoms/typography/hero/index.tsx @@ -6,7 +6,7 @@ import dclsx from 'features/utils/dclsx' type HeroTextProps = BaseTypographyProps const HeroText = ({ className, ...rest }: HeroTextProps) => { - const classnames = dclsx(className, 'heading-xxxl') + const classnames = dclsx(className, 'at-heading-xxxl') return } diff --git a/src/features/components/atoms/typography/link/index.tsx b/src/features/components/atoms/typography/link/index.tsx index 1b6bd17e9e0..e1714ceab00 100644 --- a/src/features/components/atoms/typography/link/index.tsx +++ b/src/features/components/atoms/typography/link/index.tsx @@ -17,8 +17,8 @@ const TypographyLink = ({ className, size, no_hover, ...rest }: TypographyLinkPr return ( diff --git a/src/features/components/molecules/timeline-item/index.tsx b/src/features/components/molecules/timeline-item/index.tsx index 1d6ff85fcbf..1586099bd5e 100644 --- a/src/features/components/molecules/timeline-item/index.tsx +++ b/src/features/components/molecules/timeline-item/index.tsx @@ -30,7 +30,7 @@ const TimelineItem = ({ data, isLastItem, ...rest }: TimelineItemProps) => { check icon
diff --git a/src/features/components/molecules/trade-item/index.tsx b/src/features/components/molecules/trade-item/index.tsx index 3fbb2caa290..7d954b14f96 100644 --- a/src/features/components/molecules/trade-item/index.tsx +++ b/src/features/components/molecules/trade-item/index.tsx @@ -37,7 +37,7 @@ const TradeItem = ({ data, ...rest }: TradeItemProps) => { textcolor="inverted" mt="8x" mb="4x" - className={dclsx('text-medium')} + className={dclsx('at-text-medium')} > diff --git a/src/features/components/organisms/available-options/tab-items.tsx b/src/features/components/organisms/available-options/tab-items.tsx index 585350e3608..f018c8d6e2c 100644 --- a/src/features/components/organisms/available-options/tab-items.tsx +++ b/src/features/components/organisms/available-options/tab-items.tsx @@ -73,10 +73,10 @@ const OptionsTab = ({ options_tabs }: OptionsTabType) => { return ( -
+
{options_tabs.map((option_item, index) => (
{ >
{
side_scroll(content_wrapper.current!, 25, 100, -10)} @@ -141,7 +141,7 @@ const OptionsTab = ({ options_tabs }: OptionsTabType) => {
side_scroll(content_wrapper.current!, 25, 100, 10)} diff --git a/src/features/components/templates/banners/deriv-products-hero/products-heading.tsx b/src/features/components/templates/banners/deriv-products-hero/products-heading.tsx index fd39e81a23a..b972f949d0a 100644 --- a/src/features/components/templates/banners/deriv-products-hero/products-heading.tsx +++ b/src/features/components/templates/banners/deriv-products-hero/products-heading.tsx @@ -17,7 +17,7 @@ const ProductsHeading = ({ title }: ProductsHeadingProps) => { align={'left'} pt={'4x'} md={{ pt: '8x' }} - className="visible-larger-than-tablet" + className="at-visible-larger-than-tablet" > {title.map((text, index) => ( @@ -32,7 +32,7 @@ const ProductsHeading = ({ title }: ProductsHeadingProps) => { align={'left'} pt={'4x'} md={{ pt: '8x' }} - className="visible-phone-and-tablet" + className="at-visible-phone-and-tablet" > {title.map((text, index) => ( diff --git a/src/features/components/templates/navigation/template/desktop-menu/index.tsx b/src/features/components/templates/navigation/template/desktop-menu/index.tsx index 2df5aef28d1..7587b71e8b2 100644 --- a/src/features/components/templates/navigation/template/desktop-menu/index.tsx +++ b/src/features/components/templates/navigation/template/desktop-menu/index.tsx @@ -22,8 +22,8 @@ const DesktopMenu = ({ has_centered_items }: IDesktopNavbarProps) => { onValueChange={setActive} className={dclsx( 'navigation_root', - has_centered_items ? 'justify-center' : 'justify-end', - has_centered_items ? undefined : 'margin-right-40x', + has_centered_items ? 'at-justify-center' : 'at-justify-end', + has_centered_items ? undefined : 'at-margin-right-40x', )} > diff --git a/src/features/components/templates/options-content/section-content-option.item.tsx b/src/features/components/templates/options-content/section-content-option.item.tsx index 92c3b83c970..35b496dbad8 100644 --- a/src/features/components/templates/options-content/section-content-option.item.tsx +++ b/src/features/components/templates/options-content/section-content-option.item.tsx @@ -12,14 +12,14 @@ const SectionOptionContentItem = ({ item }: { item: OptionContentSectionItemData {item.icon.src && {localize(item.icon.alt)}} {item.title && ( -

+

)}
{item.sections.map((sectionItem) => ( -
+
diff --git a/src/features/components/templates/options-content/single-content-option.item.tsx b/src/features/components/templates/options-content/single-content-option.item.tsx index 9f7ded0c691..38a06a2637c 100644 --- a/src/features/components/templates/options-content/single-content-option.item.tsx +++ b/src/features/components/templates/options-content/single-content-option.item.tsx @@ -12,7 +12,7 @@ const SingleOptionContentItem = ({ item }: { item: OptionContentSingleItemData } {item.icon && {localize(item.icon.alt)}} {item.title && ( -

+

)} diff --git a/src/features/components/templates/trade-platform/other-platforms/index.tsx b/src/features/components/templates/trade-platform/other-platforms/index.tsx index 5a3f0ba2e96..d64511e1421 100644 --- a/src/features/components/templates/trade-platform/other-platforms/index.tsx +++ b/src/features/components/templates/trade-platform/other-platforms/index.tsx @@ -32,7 +32,7 @@ const PlatformsCarousel = ({ heading, data, ...rest }: PropsType) => { -
+
{ }, }} className={dclsx( - 'padding-inline-5x padding-bottom-20x md-padding-bottom-10x', + 'at-padding-inline-5x at-padding-bottom-20x md-at-padding-bottom-10x', )} > {data.map((slide) => ( @@ -69,7 +69,7 @@ const PlatformsCarousel = ({ heading, data, ...rest }: PropsType) => {