Skip to content

Commit

Permalink
Renames JoinedButtons to JoinedUI, to match the classname
Browse files Browse the repository at this point in the history
  • Loading branch information
planktonic committed May 17, 2023
1 parent f03edb9 commit 60f7ce7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
File renamed without changes.
28 changes: 14 additions & 14 deletions scss/bitstyles/ui/joined-buttons.stories.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import Button from '../atoms/button/Button';
import JoinedButtons from './JoinedButtons';
import JoinedUI from '../organisms/joined-ui/JoinedUI';
import icons from '../../../assets/images/icons.svg';

export default {
title: 'UI/Buttons/Joined',
component: JoinedButtons,
component: JoinedUI,
subcomponents: Button,
};

// ***** Default size, each shape & color ****************** //

export const PlusMinusIconsOutline = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-minus"></use></svg><span class="u-sr-only">Remove</span>`,
Expand All @@ -31,7 +31,7 @@ PlusMinusIconsOutline.parameters = {
};

export const PlusMinusIconsOutlinePressed = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-minus"></use></svg><span class="u-sr-only">Remove</span>`,
Expand All @@ -52,7 +52,7 @@ PlusMinusIconsOutlinePressed.parameters = {
};

export const NextPreviousIconsOutline = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-caret-left"></use></svg><span class="u-sr-only">Previous</span>`,
Expand All @@ -68,7 +68,7 @@ export const NextPreviousIconsOutline = () =>
});

export const NextPreviousIconsOutlinePressed = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-caret-left"></use></svg><span class="u-sr-only">Previous</span>`,
Expand All @@ -85,7 +85,7 @@ export const NextPreviousIconsOutlinePressed = () =>
});

export const PlusMinusIconsSecondary = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-minus"></use></svg><span class="u-sr-only">Remove</span>`,
Expand All @@ -101,7 +101,7 @@ export const PlusMinusIconsSecondary = () =>
});

export const PlusMinusIconsSecondaryPressed = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-minus"></use></svg><span class="u-sr-only">Remove</span>`,
Expand All @@ -118,7 +118,7 @@ export const PlusMinusIconsSecondaryPressed = () =>
});

export const PaginationOutline = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-caret-left"></use></svg><span class="u-sr-only">Previous</span>`,
Expand Down Expand Up @@ -158,7 +158,7 @@ PaginationOutline.parameters = {
};

export const PaginationOutlinePressed = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-caret-left"></use></svg><span class="u-sr-only">Previous</span>`,
Expand Down Expand Up @@ -199,7 +199,7 @@ PaginationOutlinePressed.parameters = {
};

export const PaginationSecondary = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-caret-left"></use></svg><span class="u-sr-only">Previous</span>`,
Expand Down Expand Up @@ -235,7 +235,7 @@ export const PaginationSecondary = () =>
});

export const PaginationSecondaryPressed = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-caret-left"></use></svg><span class="u-sr-only">Previous</span>`,
Expand Down Expand Up @@ -272,7 +272,7 @@ export const PaginationSecondaryPressed = () =>
});

export const PaginationTransparent = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-caret-left"></use></svg><span class="u-sr-only">Previous</span>`,
Expand Down Expand Up @@ -312,7 +312,7 @@ PaginationTransparent.parameters = {
};

export const PaginationTransparentPressed = () =>
JoinedButtons({
JoinedUI({
children: [
Button({
children: `<svg width="20" height="20" class="a-icon a-icon--m" aria-hidden="true" focusable="false"><use xlink:href="${icons}#icon-caret-left"></use></svg><span class="u-sr-only">Previous</span>`,
Expand Down

0 comments on commit 60f7ce7

Please sign in to comment.