Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@

import React from 'react';
import { StoryDocsPage } from '../../global/js/utils/StoryDocsPage';
import { useOf } from '@storybook/blocks';
import { storyDocsGuidelines } from '../../global/js/utils/story-helper';

import * as stories from './APIKeyModal.stories';

const DocsPage = () => {
const { csfFile } = useOf('meta', ['meta']);

return (
<StoryDocsPage
altGuidelinesHref={[
storyDocsGuidelines(csfFile),
{
href: 'https://pages.github.ibm.com/carbon/ibm-products/components/api-key-modal/usage/',
label: 'APIKeyModal usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/components/modal/usage',
label: 'Carbon Modal usage guidelines',
},
{
href: 'https://react.carbondesignsystem.com/?path=/docs/modal--default',
href: 'https://react.carbondesignsystem.com/?path=/docs/components-modal',
label: 'Carbon Modal documentation',
},
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,20 @@ import * as stories from './AboutModal.stories';

const DocsPage = () => (
<StoryDocsPage
guidelinesHref="https://pages.github.ibm.com/carbon/ibm-products/components/about-modal/usage/"
altGuidelinesHref={[
{
href: 'https://pages.github.ibm.com/carbon/ibm-products/components/about-modal/usage/',
label: 'AboutModal usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/components/modal/usage',
label: 'Carbon Modal usage guidelines',
},
{
href: 'https://react.carbondesignsystem.com/?path=/docs/components-modal',
label: 'Carbon Modal documentation',
},
]}
blocks={[
{
story: stories.aboutModal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import React from 'react';
import { action } from '@storybook/addon-actions';
import { StoryDocsPage } from '../../global/js/utils/StoryDocsPage';

import { Bee, Lightning } from '@carbon/react/icons';

Expand Down Expand Up @@ -47,6 +48,9 @@ export default {
},
parameters: {
styles,
docs: {
page: () => <StoryDocsPage altGuidelinesHref="" />,
},
},
decorators: [(story) => <DisplayBox>{story()}</DisplayBox>],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@
import React from 'react';
import { StoryDocsPage } from '../../global/js/utils/StoryDocsPage';
import * as stories from './Cascade.stories';
import { useOf } from '@storybook/blocks';
import { storyDocsGuidelines } from '../../global/js/utils/story-helper';

const DocsPage = () => {
const { csfFile } = useOf('meta', ['meta']);

return (
<StoryDocsPage
altGuidelinesHref={[
storyDocsGuidelines(csfFile),
{
href: 'https://www.carbondesignsystem.com/guidelines/motion/overview/',
label: 'Carbon motion guidelines',
href: 'https://pages.github.ibm.com/carbon/ibm-products/patterns/cascade/',
label: 'Cascade usage guidelines',
},
{
href: 'https://carbondesignsystem.com/elements/motion/overview/',
label: 'Carbon Motion overview',
},
]}
blocks={[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import * as stories from './Checklist.stories';

const DocsPage = () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://pages.github.ibm.com/carbon/ibm-products/components/onboarding/checklist/usage/',
label: 'Checklist usage guidelines',
},
]}
blocks={[
{
story: stories.checklist,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import * as CoachmarkStories from './Coachmark.stories';

# Coachmark

[Coachmark usage guidelines](https://pages.github.ibm.com/carbon/ibm-products/components/onboarding/coachmark/usage/)

## Table of Contents

- [Overview](#overview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import * as stories from './ConditionBuilder.stories';

# ConditionBuilder

[ConditionBuilder usage guidelines](https://pages.github.ibm.com/carbon/ibm-products/components/condition-builder/usage/)

## Table of Contents

- [Overview](#overview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const DocsPage = () => {
altGuidelinesHref={[
{
href: 'https://pages.github.ibm.com/carbon/ibm-products/patterns/create-flows/usage/#side-panel',
label: 'Carbon create flows side panel usage guidelines',
label: 'CreateSidePanel usage guidelines',
},
]}
blocks={[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import * as stories from './DataSpreadsheet.stories';

# DataSpreadsheet

[DataSpreadsheet usage guidelines](https://pages.github.ibm.com/carbon/ibm-products/components/data-spreadsheet/usage/)

## Table of Contents

- [Overview](#overview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import * as stories from './DelimitedList.stories';

export const DocsPage = () => (
<StoryDocsPage
altGuidelinesHref=""
blocks={[
{
story: stories.delimited,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import * as stories from './DragAndDrop.stories';

# Drag and drop

[Drag and drop usage guidelines](https://pages.github.ibm.com/carbon/ibm-products/patterns/drag-and-drop/usage/)

## Table of Contents

- [Overview](#overview)
Expand All @@ -20,10 +22,10 @@ customizing the order of columns in the Datagrid.

{/* We do provide styles for some of the drag states as detailed below. */}

{/* | | State | class |
| ---------------------- | ----------------------------------------- | ----- |
| Default draggable item | `${pkg.prefix}__draggable-item` |
| Dragging | `${pkg.prefix}__draggable-item--dragging` | | */}
{/* | | State | class | */}
{/* | ---------------------- | ----------------------------------------- | ----- | */}
{/* | Default draggable item | `${pkg.prefix}__draggable-item` | | */}
{/* | Dragging | `${pkg.prefix}__draggable-item--dragging` | | */}

## Example usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ export default {
page: () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Error pattern usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Carbon empty pattern usage guidelines',
label: 'Carbon Empty pattern usage guidelines',
},
]}
deprecationNotice="This component is deprecated and will be removed in the next major version. For more information, please refer to the [Carbon docs](https://carbondesignsystem.com/patterns/empty-states-pattern/)."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ export default {
page: () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Error pattern usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Carbon empty pattern usage guidelines',
label: 'Carbon Empty pattern usage guidelines',
},
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@ export default {
page: () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Error pattern usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Carbon empty pattern usage guidelines',
label: 'Carbon Empty pattern usage guidelines',
},
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@ export default {
page: () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Error pattern usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Carbon empty pattern usage guidelines',
label: 'Carbon Empty pattern usage guidelines',
},
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@ export default {
page: () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Error pattern usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Carbon empty pattern usage guidelines',
label: 'Carbon Empty pattern usage guidelines',
},
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ export default {
page: () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Error pattern usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Carbon empty pattern usage guidelines',
label: 'Carbon Empty pattern usage guidelines',
},
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ export default {
page: () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Error pattern usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Carbon empty pattern usage guidelines',
label: 'Carbon Empty pattern usage guidelines',
},
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ export default {
page: () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Error pattern usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/patterns/empty-states-pattern/',
label: 'Carbon empty pattern usage guidelines',
label: 'Carbon Empty pattern usage guidelines',
},
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

import React, { useState, useRef } from 'react';
import { Button } from '@carbon/react';
// import styles from './_storybook-styles.scss?inline'; // import index in case more files are added later.
import { ExportModal } from '.';
// import mdx from './ExportModal.mdx';
import wait from '../../global/js/utils/wait';
import { StoryDocsPage } from '../../global/js/utils/StoryDocsPage';

Expand All @@ -18,21 +16,20 @@ export default {
component: ExportModal,
tags: ['autodocs'],
parameters: {
// styles,
docs: {
page: () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://pages.github.ibm.com/carbon/ibm-products/components/export/usage/',
label: 'Export guidelines',
label: 'Export usage guidelines',
},
{
href: 'https://www.carbondesignsystem.com/components/modal/usage',
label: 'Carbon Modal usage guidelines',
},
{
href: 'https://react.carbondesignsystem.com/?path=/docs/modal--default',
href: 'https://react.carbondesignsystem.com/?path=/docs/components-modal',
label: 'Carbon Modal documentation',
},
]}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import * as stories from './ExpressiveCard.stories';

const DocsPage = () => (
<StoryDocsPage
altGuidelinesHref="https://pages.github.ibm.com/carbon/ibm-products/components/card/expressive-card/usage/"
blocks={[
{
story: stories.Default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import * as stories from './GetStartedCard.stories';

# GetStartedCard

[Get started card usage guidelines](https://pages.github.ibm.com/carbon/ibm-products/patterns/onboarding-flows/orientation/#get-started-card)

## Table of Contents

- [Overview](#overview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import * as stories from './Guidebanner.stories';

export const DocsPage = () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://pages.github.ibm.com/carbon/ibm-products/components/onboarding/guide-banner/usage/',
label: 'Guide banner usage guidelines',
Comment thread
elycheea marked this conversation as resolved.
},
]}
blocks={[
{
story: stories.collapsible,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const DocsPage = () => {
label: 'Carbon Modal usage guidelines',
},
{
href: 'https://react.carbondesignsystem.com/?path=/docs/modal--default',
href: 'https://react.carbondesignsystem.com/?path=/docs/components-modal',
label: 'Carbon Modal documentation',
},
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import * as stories from './InlineTip.stories';

const DocsPage = () => (
<StoryDocsPage
altGuidelinesHref={[
{
href: 'https://pages.github.ibm.com/carbon/ibm-products/components/onboarding/inline-tip/usage/',
label: 'Inline tip usage guidelines',
},
]}
blocks={[
{
story: stories.inlineTip,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { InterstitialScreen } from '.';

# InterstitialScreen

[InterstitialScreen usage guidelines](https://pages.github.ibm.com/carbon/ibm-products/components/onboarding/interstitial-screen/)

## Table of Contents

- [Overview](#overview)
Expand Down
Loading