Skip to content

Commit 6816418

Browse files
committed
Moved multi-element Atoms to Molecules directory
1 parent ceab303 commit 6816418

29 files changed

Lines changed: 55 additions & 55 deletions

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,15 @@ export { AnchorWithIcon } from "./atoms/anchors/anchor-with-icon";
77
export { Button } from "./atoms/buttons/button";
88
export { Icon } from "./atoms/icons/icon";
99
export { Image } from "./atoms/images/image";
10-
export { ProgressBar } from "./atoms/progress-bar/progress-bar";
1110

1211
// Forms
1312
export { ReactCanvasSketch } from "./atoms/forms/canvas-sketch/react-canvas-sketch";
14-
export { CheckboxButton } from "./atoms/forms/checkbox-button";
15-
export { CheckboxInput } from "./atoms/forms/checkbox-input";
1613
export { InputCharacterCount } from "./atoms/forms/input-character-count";
17-
export { RadioButton } from "./atoms/forms/radio-button-input";
1814
export { PasswordInput } from "./atoms/forms/password-input";
19-
export { Select } from "./atoms/forms/select";
2015
export { SubmitButton } from "./atoms/forms/submit-button";
2116
export { TextArea } from "./atoms/forms/text-area";
2217
export { TextInput } from "./atoms/forms/text-input";
2318
export { TextInputIcon } from "./atoms/forms/text-input-icon";
24-
export { ToastTemplates } from "./atoms/toasts/toast-templates";
2519

2620
// Typography
2721
export { Heading } from "./atoms/typography/heading";
@@ -64,13 +58,19 @@ export * from "./atoms/interfaces/svg-icon";
6458

6559
export { AccessibleList } from "./molecules/accessible-list/accessible-list";
6660
export { Card } from "./molecules/cards/card";
61+
export { CheckboxButton } from "./molecules/checkbox-button/checkbox-button";
62+
export { CheckboxInput } from "./molecules/checkbox-input/checkbox-input";
6763
export { DropdownButton } from "./molecules/dropdown-button/dropdown-button";
6864
export { ErrorBanner } from "./molecules/errors/error-banner";
6965
export { Form } from "./molecules/forms/form";
7066
export { LinkCard } from "./molecules/link-card/link-card";
7167
export { ListBox } from "./molecules/lists/list-box";
68+
export { RadioInput } from "./molecules/radio-input/radio-input";
7269
export { RadioList } from "./molecules/lists/radio-list";
7370
export { RootPortal } from "./molecules/portals/root-portal";
71+
export { ProgressBar } from "./molecules/progress-bar/progress-bar";
72+
export { Select } from "./molecules/select/select";
73+
export { ToastTemplates } from "./molecules/toasts/toast-templates";
7474
export { Tooltip } from "./molecules/tooltips/tooltip";
7575
export { UnorderedList } from "./molecules/lists/unordered-list";
7676

File renamed without changes.

src/atoms/forms/checkbox-button.stories.tsx renamed to src/molecules/checkbox-button/checkbox-button.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CheckboxButton } from "./checkbox-button";
44

55
export default {
66
component: CheckboxButton,
7-
title: "Atoms | Forms / Checkbox Button",
7+
title: "Molecules | Checkbox Button",
88
};
99

1010
export const checkboxButtonKnobs = () => (
File renamed without changes.

src/atoms/forms/checkbox-button.tsx renamed to src/molecules/checkbox-button/checkbox-button.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { InputTypes } from "../constants/input-types";
1+
import { InputTypes } from "../../atoms/constants/input-types";
22
import React from "react";
3-
import { Icon } from "../icons/icon";
4-
import { Icons } from "../constants/icons";
5-
import "./checkbox.scss";
3+
import { Icon } from "../../atoms/icons/icon";
4+
import { Icons } from "../../atoms/constants/icons";
5+
import "../checkbox-input/checkbox-input.scss"; // Todo: Remove dependency on external styles
66
import "./checkbox-button.scss";
77

88
// -----------------------------------------------------------------------------------------
File renamed without changes.

src/atoms/forms/checkbox-input.stories.tsx renamed to src/molecules/checkbox-input/checkbox-input.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { boolean, text } from "@storybook/addon-knobs";
44

55
export default {
66
component: CheckboxInput,
7-
title: "Atoms | Forms / Checkbox Input",
7+
title: "Molecules | Checkbox Input",
88
};
99

1010
export const checkboxInputKnobs = () => (
File renamed without changes.

src/atoms/forms/checkbox-input.tsx renamed to src/molecules/checkbox-input/checkbox-input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { InputTypes } from "../constants/input-types";
1+
import { InputTypes } from "../../atoms/constants/input-types";
22
import React from "react";
3-
import "./checkbox.scss";
3+
import "./checkbox-input.scss";
44

55
// -----------------------------------------------------------------------------------------
66
// #region Constants

src/molecules/form-fields/checkbox-form-field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
CheckboxInput,
33
CheckboxInputProperties,
4-
} from "../../atoms/forms/checkbox-input";
4+
} from "../checkbox-input/checkbox-input";
55
import React from "react";
66
import { StringUtils } from "andculturecode-javascript-core";
77
import "./form-field.scss";

0 commit comments

Comments
 (0)