How to use the storybook/constants/siteConstants.DOCUMENTATION_URL.PATTERNFLY_ORG_CARDS function in storybook

To help you get started, we’ve selected a few storybook examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github patternfly / patternfly-react / packages / patternfly-3 / patternfly-react / src / components / Cards / Stories / AggregateStatusCardStory.js View on Github external
);
    return inlineTemplate({
      title: 'Aggregate Status Card',
      documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CARDS}aggregate-status-card/#code`,
      story
    });
  });
};
github patternfly / patternfly-react / packages / patternfly-3 / patternfly-react / src / components / Cards / Stories / UtilizationCardStory.js View on Github external
data={donutConfigData}
                    title={{ type: 'max' }}
                    tooltip={donutConfigTooltip}
                  />
                  
                
              
            
          
        
      
    );

    return inlineTemplate({
      title: 'Utilization Trend Card',
      documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CARDS}utilization-trend-card/#code`,
      story
    });
  });
};
github patternfly / patternfly-react / packages / patternfly-react / src / components / UtilizationBar / UtilizationBar.stories.js View on Github external
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, number, boolean, text } from '@storybook/addon-knobs';
import { withInfo } from '@storybook/addon-info';
import { defaultTemplate } from 'storybook/decorators/storyTemplates';
import { storybookPackageName, DOCUMENTATION_URL, STORYBOOK_CATEGORY } from 'storybook/constants/siteConstants';
import { UtilizationBar } from './index';
import { name } from '../../../package.json';

const stories = storiesOf(`${storybookPackageName(name)}/${STORYBOOK_CATEGORY.DATA_VISUALIZATION}/Charts`, module);
stories.addDecorator(withKnobs);
stories.addDecorator(
  defaultTemplate({
    title: 'Utilization Bar',
    documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CARDS}utilization-bar-card/`
  })
);

stories.add(
  'Utilization Bar',
  withInfo('Utilization Bar')(() => (
    <div>
      <h1>Utilization bar</h1>
      </div>
github patternfly / patternfly-react / packages / patternfly-3 / patternfly-react / src / components / Cards / Stories / TrendCardStory.js View on Github external
}&gt;
                    {' '}
                    Add New Cluster
                  
                
              
            
          
        
      
    );

    return inlineTemplate({
      title: 'Trend Card',
      documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CARDS}trend-card/`,
      story
    });
  });
};
github patternfly / patternfly-react / packages / patternfly-3 / patternfly-react / src / components / Cards / Stories / UtilizationBarCardStory.js View on Github external
);
    return inlineTemplate({
      title: 'Utilization Bar Card',
      documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CARDS}utilization-bar-card/#code`,
      story
    });
  });
};
github patternfly / patternfly-react / packages / patternfly-3 / patternfly-react / src / components / Cards / Stories / BaseCardHeightMatchingStory.js View on Github external
<button>
                        Upload Data
                      </button>
                    
                  
                
              
            
          
        
      
    );
    return inlineTemplate({
      title: 'Base Card',
      documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CARDS}base-card/#code`,
      story
    });
  });
};
github patternfly / patternfly-react / packages / core / src / components / UtilizationBar / UtilizationBar.stories.js View on Github external
} from 'storybook/constants/siteConstants';
import { UtilizationBar } from './index';
import { name } from '../../../package.json';

const stories = storiesOf(
  `${storybookPackageName(name)}/${
    STORYBOOK_CATEGORY.DATA_VISUALIZATION
  }/Charts`,
  module
);
stories.addDecorator(withKnobs);
stories.addDecorator(
  defaultTemplate({
    title: 'Utilization Bar',
    documentationLink: `${
      DOCUMENTATION_URL.PATTERNFLY_ORG_CARDS
    }utilization-bar-card/`
  })
);

stories.add(
  'Utilization Bar',
  withInfo('Utilization Bar')(() =&gt; (
    <div>
      <h1>Utilization bar</h1>
      </div>
github patternfly / patternfly-react / packages / patternfly-3 / patternfly-react / src / components / Cards / Stories / BaseCardStory.js View on Github external
[card contents]
              
            
            
              
                Empty Card
                [card contents]
              
            
          
        
      
    );
    return inlineTemplate({
      title: 'Base Card',
      documentationLink: `${DOCUMENTATION_URL.PATTERNFLY_ORG_CARDS}base-card/#code`,
      story
    });
  });
};