diff --git a/aries-core/package.json b/aries-core/package.json index a96e1e11d..fc54f7fbc 100644 --- a/aries-core/package.json +++ b/aries-core/package.json @@ -25,6 +25,7 @@ "del": "^6.1.1", "dotenv": "^8.2.0", "fs-extra": "^11.1.0", + "react-syntax-highlighter": "^15.6.1", "simple-git": "^3.15.1", "storybook": "^8.3.6", "webpack": "^5.75.0", diff --git a/aries-core/src/stories/Forms/simple.stories.js b/aries-core/src/stories/Forms/simple.stories.js deleted file mode 100644 index 02c7fbbda..000000000 --- a/aries-core/src/stories/Forms/simple.stories.js +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -// eslint-disable-next-line max-len -import { SimpleSignUpExample } from 'aries-site/src/examples/templates/forms/SimpleSignUpExample'; - -export const Simple = () => ; - -export default { - title: 'Form/Simple', -}; diff --git a/aries-core/src/stories/codeBlocks.stories.js b/aries-core/src/stories/codeBlocks.stories.js new file mode 100644 index 000000000..da812a55d --- /dev/null +++ b/aries-core/src/stories/codeBlocks.stories.js @@ -0,0 +1,9 @@ +import React from 'react'; +/* eslint-disable max-len */ +import { CodeBlockExample } from 'aries-site/src/examples/templates/code-blocks/CodeBlocks'; + +export const CodeBlock = () => ; + +export default { + title: 'Code Blocks', +}; diff --git a/aries-core/src/stories/dashboards.stories.js b/aries-core/src/stories/dashboards.stories.js new file mode 100644 index 000000000..7e92e89e7 --- /dev/null +++ b/aries-core/src/stories/dashboards.stories.js @@ -0,0 +1,13 @@ +import React from 'react'; +/* eslint-disable max-len */ +import { DashboardExample } from 'aries-site/src/examples/templates/dashboards/DashboardExample'; +import { ThreeColumnDashboard } from 'aries-site/src/examples/templates/dashboards'; +import { TwoColumnDashboard } from 'aries-site/src/examples/templates/dashboards/TwoColumnDashboard'; + +export const Dashboard = () => ; +export const ThreeColumn = () => ; +export const TwoColumn = () => ; + +export default { + title: 'Dashboards', +}; diff --git a/aries-core/src/stories/dataTableCustomization.stories.js b/aries-core/src/stories/dataTableCustomization.stories.js new file mode 100644 index 000000000..da7f5716c --- /dev/null +++ b/aries-core/src/stories/dataTableCustomization.stories.js @@ -0,0 +1,11 @@ +import React from 'react'; +/* eslint-disable max-len */ +import { ColumnSettingsExample } from 'aries-site/src/examples/templates/table-customization/components/ColumnSettingsExample'; +import { TableCustomizationExample } from 'aries-site/src/examples/templates/table-customization/components/TableCustomizationExample'; + +export const ColumnSettings = () => ; +export const TableCustomization = () => ; + +export default { + title: 'DataTable Customization', +}; diff --git a/aries-core/src/stories/emptyState.stories.js b/aries-core/src/stories/emptyState.stories.js new file mode 100644 index 000000000..a5c572fd1 --- /dev/null +++ b/aries-core/src/stories/emptyState.stories.js @@ -0,0 +1,19 @@ +import React from 'react'; +/* eslint-disable max-len */ +import { ActionEmptyState } from 'aries-site/src/examples/templates/empty-state/ActionEmptyState'; +import { CardEmptyState } from 'aries-site/src/examples/templates/empty-state/CardEmptyState'; +import { EmptyStateExample } from 'aries-site/src/examples/templates/empty-state/EmptyStateExample'; +import { ErrorManagementEmptyState } from 'aries-site/src/examples/templates/empty-state/ErrorManagementEmptyState'; +import { LayerEmptyState } from 'aries-site/src/examples/templates/empty-state/LayerEmptyState'; +import { PageEmptyState } from 'aries-site/src/examples/templates/empty-state/PageEmptyState'; + +export const Action = () => ; +export const Card = () => ; +export const EmptyState = () => ; +export const ErrorManagement = () => ; +export const Layer = () => ; +export const Page = () => ; + +export default { + title: 'Empty State', +}; diff --git a/aries-core/src/stories/globalNotifications.stories.js b/aries-core/src/stories/globalNotifications.stories.js new file mode 100644 index 000000000..dfd2675e6 --- /dev/null +++ b/aries-core/src/stories/globalNotifications.stories.js @@ -0,0 +1,19 @@ +import React from 'react'; +/* eslint-disable max-len */ +import { BannerContentLayoutExample } from 'aries-site/src/examples/templates/global-banner-notifications/BannerContentLayoutExample'; +import { BannerNotificationCritical } from 'aries-site/src/examples/templates/global-banner-notifications/Examples/BannerNotificationCritical'; +import { BannerNotificationCriticalClose } from 'aries-site/src/examples/templates/global-banner-notifications/Examples/BannerNotificationCriticalClose'; +import { BannerNotificationInfo } from 'aries-site/src/examples/templates/global-banner-notifications/Examples/BannerNotificationInfo'; +import { BannerNotificationWarning } from 'aries-site/src/examples/templates/global-banner-notifications/Examples/BannerNotificationWarning'; +import { BannerNotificationWarningClose } from 'aries-site/src/examples/templates/global-banner-notifications/Examples/BannerNotificationWarningClose'; + +export const ContentLayout = () => ; +export const Critical = () => ; +export const CriticalClose = () => ; +export const Info = () => ; +export const Warning = () => ; +export const WarningClose = () => ; + +export default { + title: 'Global Notifications', +}; diff --git a/aries-core/src/stories/inlineNotifications.stories.js b/aries-core/src/stories/inlineNotifications.stories.js new file mode 100644 index 000000000..402a07b1c --- /dev/null +++ b/aries-core/src/stories/inlineNotifications.stories.js @@ -0,0 +1,17 @@ +import React from 'react'; +/* eslint-disable max-len */ +import { FormValidation } from 'aries-site/src/examples/templates/inline-notifications/InlineFormValidation'; +import { InlineNotificationExample } from 'aries-site/src/examples/templates/inline-notifications/InlineNotificationExample'; +import { PageBannerExample } from 'aries-site/src/examples/templates/inline-notifications/PageBannerExample'; +import { PromotionExample } from 'aries-site/src/examples/templates/inline-notifications/PromotionExample'; +import { StatusUpdateExample } from 'aries-site/src/examples/templates/inline-notifications/StatusUpdateExample'; + +export const InlineFormValidation = () => ; +export const InlineNotification = () => ; +export const PageBanner = () => ; +export const Promotion = () => ; +export const StatusUpdate = () => ; + +export default { + title: 'Inline Notifications', +}; diff --git a/aries-core/src/stories/lists.stories.js b/aries-core/src/stories/lists.stories.js new file mode 100644 index 000000000..13c94a4d3 --- /dev/null +++ b/aries-core/src/stories/lists.stories.js @@ -0,0 +1,21 @@ +import React from 'react'; +/* eslint-disable max-len */ +import { ListIconIdentifierExample } from 'aries-site/src/examples/templates/list-views/ListIconIdentifierExample'; +import { ListImageIdentifierExample } from 'aries-site/src/examples/templates/list-views/ListImageIdentifierExample'; +import { ListNameDescriptionOptionExample } from 'aries-site/src/examples/templates/list-views/ListNameDescriptionOptionExample'; +import { ListNameExample } from 'aries-site/src/examples/templates/list-views/ListNameExample'; +import { ListNameOptionActionExample } from 'aries-site/src/examples/templates/list-views/ListNameOptionActionExample'; +import { ListOrderExample } from 'aries-site/src/examples/templates/list-views/ListOrderExample'; +import { ListScreenExample } from 'aries-site/src/examples/templates/list-views/ListScreenExample'; + +export const IconIdentifier = () => ; +export const ImageIdentifier = () => ; +export const NameDescriptionOption = () => ; +export const Name = () => ; +export const NameOptionAction = () => ; +export const Order = () => ; +export const Screen = () => ; + +export default { + title: 'Lists', +}; diff --git a/aries-core/src/stories/managingChildObjects.stories.js b/aries-core/src/stories/managingChildObjects.stories.js new file mode 100644 index 000000000..fe0636903 --- /dev/null +++ b/aries-core/src/stories/managingChildObjects.stories.js @@ -0,0 +1,13 @@ +import React from 'react'; +/* eslint-disable max-len */ +import { CreateCluster } from 'aries-site/src/examples/templates/forms/managing-child-objects/CreateCluster'; +import { CreateRole } from 'aries-site/src/examples/templates/forms/managing-child-objects/CreateRole'; +import { EditRole } from 'aries-site/src/examples/templates/forms/managing-child-objects/EditRole'; + +export const OptionalChildren = () => ; +export const RequiredChildren = () => ; +export const RemoveAllAction = () => ; + +export default { + title: 'Managing Child Objects', +}; diff --git a/aries-core/src/stories/popover.stories.js b/aries-core/src/stories/popover.stories.js new file mode 100644 index 000000000..180c716f5 --- /dev/null +++ b/aries-core/src/stories/popover.stories.js @@ -0,0 +1,11 @@ +import React from 'react'; +/* eslint-disable max-len */ +import { PopoverInlineExample } from 'aries-site/src/examples/templates/popover/PopoverInlineExample'; +import { PopoverSimpleExample } from 'aries-site/src/examples/templates/popover/PopoverSimpleExample'; + +export const PopoverInline = () => ; +export const PopoverSimple = () => ; + +export default { + title: 'Popover', +}; diff --git a/aries-core/src/stories/wizard.stories.js b/aries-core/src/stories/wizard.stories.js new file mode 100644 index 000000000..a69ddb542 --- /dev/null +++ b/aries-core/src/stories/wizard.stories.js @@ -0,0 +1,11 @@ +import React from 'react'; +/* eslint-disable max-len */ +import { TwoColumnWizardExample } from 'aries-site/src/examples/templates/wizard/TwoColumnWizardExample'; +import { WizardValidationExample } from 'aries-site/src/examples/templates/wizard/WizardValidationExample'; + +export const TwoColumnWizard = () => ; +export const WizardValidation = () => ; + +export default { + title: 'Wizard', +}; diff --git a/yarn.lock b/yarn.lock index 13673f2b3..0eae80e4e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11569,7 +11569,7 @@ react-style-singleton@^2.2.1: invariant "^2.2.4" tslib "^2.0.0" -react-syntax-highlighter@^15.5.0: +react-syntax-highlighter@^15.5.0, react-syntax-highlighter@^15.6.1: version "15.6.1" resolved "https://registry.yarnpkg.com/react-syntax-highlighter/-/react-syntax-highlighter-15.6.1.tgz#fa567cb0a9f96be7bbccf2c13a3c4b5657d9543e" integrity sha512-OqJ2/vL7lEeV5zTJyG7kmARppUjiB9h9udl4qHQjjgEos66z00Ia0OckwYfRxCSFrW8RJIBnsBwQsHZbVPspqg==