Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: atlassian-labs/compiled
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @compiled/react@0.6.13
Choose a base ref
...
head repository: atlassian-labs/compiled
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @compiled/react@0.7.0
Choose a head ref

Commits on Jul 12, 2021

  1. chore(deps): update dependency jest-watch-typeahead to ^0.6.4 (#779)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 12, 2021
    Copy the full SHA
    0eab7c1 View commit details
  2. chore(deps): update definitelytyped (#778)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 12, 2021
    Copy the full SHA
    f61a680 View commit details

Commits on Jul 26, 2021

  1. chore(deps): update dependency postcss to ^7.0.36 (#782)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 26, 2021
    Copy the full SHA
    19a3a8f View commit details
  2. chore(deps): update definitelytyped (#781)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 26, 2021
    Copy the full SHA
    eec506f View commit details
  3. chore(deps): update dependency pretty-quick to ^3.1.1 (#785)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 26, 2021
    Copy the full SHA
    19bd3a0 View commit details
  4. chore(deps): update babel monorepo to ^7.14.8 (#786)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 26, 2021
    Copy the full SHA
    e632d2f View commit details
  5. chore(deps): update webpack packages (#787)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jul 26, 2021
    Copy the full SHA
    0d815cd View commit details

Commits on Jul 27, 2021

  1. Copy the full SHA
    c613484 View commit details
  2. Merge branch 'master' of personal.github.com:atlassian-labs/compiled …

    …into issue-390-conditional-css-rules
    pancaspe87 committed Jul 27, 2021
    Copy the full SHA
    8d011db View commit details

Commits on Jul 29, 2021

  1. fix: PR feedbacks

    pancaspe87 committed Jul 29, 2021
    Copy the full SHA
    546935f View commit details
  2. Copy the full SHA
    1092ac7 View commit details

Commits on Jul 30, 2021

  1. Copy the full SHA
    cc35ce3 View commit details
  2. Copy the full SHA
    da3b649 View commit details

Commits on Aug 1, 2021

  1. chore(deps): update eslint packages (#791)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 1, 2021
    Copy the full SHA
    4e42fa6 View commit details
  2. Copy the full SHA
    3b1d073 View commit details
  3. Merge branch 'master' of personal.github.com:atlassian-labs/compiled …

    …into issue-390-conditional-css-rules
    pancaspe87 committed Aug 1, 2021
    Copy the full SHA
    c3a45ef View commit details

Commits on Aug 2, 2021

  1. fix: storybook build

    pancaspe87 committed Aug 2, 2021
    Copy the full SHA
    b9e341c View commit details
  2. chore(deps): update babel monorepo to ^7.14.9 (#792)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 2, 2021
    Copy the full SHA
    2561d8d View commit details
  3. chore(deps): update dependency @types/node to ^14.17.7 (#793)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 2, 2021
    Copy the full SHA
    d17f5b8 View commit details
  4. Copy the full SHA
    091b535 View commit details

Commits on Aug 3, 2021

  1. fix: PR feedbacks

    pancaspe87 committed Aug 3, 2021
    Copy the full SHA
    bacad6e View commit details
  2. fix: minor tweaks

    pancaspe87 committed Aug 3, 2021
    Copy the full SHA
    302cfa8 View commit details

Commits on Aug 6, 2021

  1. Copy the full SHA
    6f7909e View commit details
  2. fix: PR feedback

    pancaspe87 committed Aug 6, 2021
    Copy the full SHA
    8a82bab View commit details
  3. fix: missing break

    pancaspe87 committed Aug 6, 2021
    Copy the full SHA
    2c07d9f View commit details

Commits on Aug 9, 2021

  1. chore(deps): update dependency @types/node to ^14.17.9 (#803)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 9, 2021
    Copy the full SHA
    6543b4e View commit details
  2. chore(deps): update dependency chalk to ^4.1.2 (#804)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 9, 2021
    Copy the full SHA
    8a06d19 View commit details

Commits on Aug 10, 2021

  1. Copy the full SHA
    b9d8cb6 View commit details
  2. fix: all tests should run

    pancaspe87 committed Aug 10, 2021
    Copy the full SHA
    cc498e8 View commit details

Commits on Aug 11, 2021

  1. Copy the full SHA
    65633a0 View commit details
  2. Copy the full SHA
    bf9e045 View commit details
  3. Update package.json and tsconfig.json files (#808)

    * Sort package.json with sort-package-json
    * Sort tsconfig.json alphabetically
    * Add prettier script
    * Remove noImplicitAny in favour of strict
    MonicaOlejniczak authored Aug 11, 2021
    Copy the full SHA
    60aa93e View commit details

Commits on Aug 12, 2021

  1. Override the default storybook babel configuration (#809)

    This change allows the @compiled/babel-plugin to run on source code,
    instead of transpiled code
    MonicaOlejniczak authored Aug 12, 2021
    Copy the full SHA
    5703722 View commit details
  2. Fix identifiers shadowed by a function argument (#810)

    Use the correct expression in the style prop when an identifier is
    shadowed by a function argument, by ensuring values set by a previous
    meta object are not re-used
    MonicaOlejniczak authored Aug 12, 2021
    Copy the full SHA
    48805ec View commit details

Commits on Aug 16, 2021

  1. Merge branch 'master' of personal.github.com:atlassian-labs/compiled …

    …into issue-798-mixin-missing-classes-fix
    pancaspe87 committed Aug 16, 2021
    Copy the full SHA
    3a628d9 View commit details
  2. add changeset

    pancaspe87 committed Aug 16, 2021
    Copy the full SHA
    587e729 View commit details
  3. Merge branch 'master' of personal.github.com:atlassian-labs/compiled …

    …into issue-390-conditional-css-rules
    pancaspe87 committed Aug 16, 2021
    Copy the full SHA
    8a14071 View commit details
  4. add changeset

    pancaspe87 committed Aug 16, 2021
    Copy the full SHA
    a7ab8e1 View commit details
  5. fix: PR feedbacks

    pancaspe87 committed Aug 16, 2021
    Copy the full SHA
    e03da27 View commit details
  6. chore(deps): update webpack packages (#813)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 16, 2021
    Copy the full SHA
    a64a08c View commit details
  7. chore(deps): update babel monorepo to ^7.15.0 (#814)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 16, 2021
    Copy the full SHA
    7119016 View commit details

Commits on Aug 23, 2021

  1. chore(deps): update dependency @types/node to ^14.17.11 (#816)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 23, 2021
    Copy the full SHA
    cfb54f2 View commit details
  2. chore(deps): update dependency @size-limit/preset-small-lib to ^4.12.0 (

    #817)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 23, 2021
    Copy the full SHA
    5b9fdf8 View commit details

Commits on Aug 24, 2021

  1. Merge branch 'master' of personal.github.com:atlassian-labs/compiled …

    …into issue-390-conditional-css-rules
    pancaspe87 committed Aug 24, 2021
    Copy the full SHA
    7d4af14 View commit details
  2. Merge branch 'master' of personal.github.com:atlassian-labs/compiled …

    …into issue-798-mixin-missing-classes-fix
    pancaspe87 committed Aug 24, 2021
    Copy the full SHA
    0cf25a3 View commit details

Commits on Aug 30, 2021

  1. Merge pull request #805 from atlassian-labs/issue-798-mixin-missing-c…

    …lasses-fix
    
    fix: css is generated for rules defined before a mixins, css mixins can be overriden
    pancaspe87 authored Aug 30, 2021
    Copy the full SHA
    3b81f44 View commit details
  2. chore(deps): update dependency @types/node to ^14.17.12 (#818)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 30, 2021
    Copy the full SHA
    ffef30e View commit details
  3. chore(deps): update dependency convert-source-map to ^1.8.0 (#819)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 30, 2021
    Copy the full SHA
    37e8fb3 View commit details

Commits on Sep 1, 2021

  1. chore(deps): update eslint packages (#820)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Sep 1, 2021
    Copy the full SHA
    4a97068 View commit details
  2. resolved conflicts

    pancaspe87 committed Sep 1, 2021
    Copy the full SHA
    31e5c0b View commit details
Showing with 6,755 additions and 1,212 deletions.
  1. +8 −5 .gitignore
  2. +4 −0 .storybook/.babelrc.json
  3. +1 −1 .storybook/main.js
  4. +37 −0 examples/keyframes/globals.tsx
  5. +12 −0 examples/keyframes/object-call-expression.tsx
  6. +12 −0 examples/keyframes/tagged-template-literal.tsx
  7. +8 −0 examples/packages/babel-component/CHANGELOG.md
  8. +4 −4 examples/packages/babel-component/package.json
  9. +8 −0 examples/packages/parcel/CHANGELOG.md
  10. +1 −1 examples/packages/parcel/package.json
  11. +8 −0 examples/packages/ssr/CHANGELOG.md
  12. +1 −1 examples/packages/ssr/package.json
  13. +10 −0 examples/packages/webpack/CHANGELOG.md
  14. +5 −5 examples/packages/webpack/package.json
  15. 0 examples/stories/{conditional-rules.tsx → conditional-rules-css-props.tsx}
  16. +122 −0 examples/stories/conditional-rules-styled.tsx
  17. +87 −0 examples/stories/css-prop-keyframes.tsx
  18. +10 −0 examples/stories/css-prop-static-object.tsx
  19. +12 −2 examples/stories/css-prop-string.tsx
  20. +207 −0 examples/stories/keyframes-object-call-expression.tsx
  21. +207 −0 examples/stories/keyframes-tagged-template-expression.tsx
  22. +83 −0 examples/stories/styled-keyframes.tsx
  23. +12 −0 examples/stories/styled-static-object.tsx
  24. +55 −54 package.json
  25. +6 −6 packages/babel-plugin-strip-runtime/package.json
  26. +15 −0 packages/babel-plugin/CHANGELOG.md
  27. +13 −12 packages/babel-plugin/package.json
  28. +40 −10 packages/babel-plugin/src/__tests__/css-builder.test.tsx
  29. +33 −0 packages/babel-plugin/src/__tests__/test-utils.tsx
  30. +21 −5 packages/babel-plugin/src/babel-plugin.tsx
  31. +183 −122 packages/babel-plugin/src/class-names/__tests__/behaviour.test.tsx
  32. +61 −3 packages/babel-plugin/src/class-names/__tests__/string-literal.test.tsx
  33. +2 −2 packages/babel-plugin/src/class-names/index.tsx
  34. +54 −0 packages/babel-plugin/src/css-prop/__tests__/behaviour.test.tsx
  35. +89 −11 packages/babel-plugin/src/css-prop/__tests__/string-literal.test.tsx
  36. +2 −2 packages/babel-plugin/src/css-prop/index.tsx
  37. +47 −0 packages/babel-plugin/src/keyframes/__fixtures__/index.tsx
  38. +1,493 −0 packages/babel-plugin/src/keyframes/__tests__/call-expression.test.tsx
  39. +1,006 −0 packages/babel-plugin/src/keyframes/__tests__/tagged-template.test.tsx
  40. +412 −0 packages/babel-plugin/src/styled/__tests__/behaviour.test.tsx
  41. +66 −3 packages/babel-plugin/src/styled/__tests__/string-literal.test.tsx
  42. +57 −2 packages/babel-plugin/src/styled/index.tsx
  43. +14 −2 packages/babel-plugin/src/types.tsx
  44. +75 −18 packages/babel-plugin/src/utils/ast-builders.tsx
  45. +47 −10 packages/babel-plugin/src/utils/ast.tsx
  46. +303 −53 packages/babel-plugin/src/utils/css-builders.tsx
  47. +30 −28 packages/babel-plugin/src/utils/evaluate-expression.tsx
  48. +7 −2 packages/babel-plugin/src/utils/types.tsx
  49. +8 −0 packages/cli/CHANGELOG.md
  50. +9 −9 packages/cli/package.json
  51. +6 −0 packages/css/CHANGELOG.md
  52. +6 −6 packages/css/package.json
  53. +1 −1 packages/css/src/transform.tsx
  54. +4 −4 packages/jest/package.json
  55. +11 −0 packages/parcel-transformer/CHANGELOG.md
  56. +8 −8 packages/parcel-transformer/package.json
  57. +7 −0 packages/react/CHANGELOG.md
  58. +18 −18 packages/react/package.json
  59. +1 −0 packages/react/src/index.tsx
  60. +14 −0 packages/react/src/keyframes/__fixtures__/index.tsx
  61. +324 −0 packages/react/src/keyframes/__tests__/index.test.tsx
  62. +61 −0 packages/react/src/keyframes/index.tsx
  63. +2 −2 packages/react/src/styled/index.tsx
  64. +10 −11 packages/tsconfig.options.json
  65. +4 −4 packages/utils/package.json
  66. +13 −0 packages/webpack-loader/CHANGELOG.md
  67. +12 −12 packages/webpack-loader/package.json
  68. +1,246 −773 yarn.lock
13 changes: 8 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
*.log
.DS_Store
node_modules
dist
storybook-static
.idea
.parcel-cache
.tmp

coverage
dist
node_modules
storybook-static

*.log
*.tsbuildinfo
.parcel-cache
4 changes: 4 additions & 0 deletions .storybook/.babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"plugins": [["@compiled/babel-plugin", { "importReact": false }]],
"presets": ["@babel/preset-typescript", ["@babel/preset-react", { "runtime": "automatic" }]]
}
2 changes: 1 addition & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
addons: ['storybook-addon-performance/register', 'storybook-addon-pseudo-states'],
stories: ['../examples/stories/*.tsx'],
core: {
builder: 'webpack5',
},
stories: ['../examples/stories/*.tsx'],
};
37 changes: 37 additions & 0 deletions examples/keyframes/globals.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
export {};

declare global {
interface Window {
runtime: {
blueToIndigo: {
from: string;
to: string;
};
coralToPink: {
from: string;
to: string;
};
purpleToSlateBlue: {
from: string;
to: string;
};
};
}
}

Object.assign(window, {
runtime: {
blueToIndigo: {
from: 'blue',
to: 'indigo',
},
coralToPink: {
from: 'coral',
to: 'pink',
},
purpleToSlateBlue: {
from: 'purple',
to: 'slateblue',
},
},
});
12 changes: 12 additions & 0 deletions examples/keyframes/object-call-expression.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { keyframes } from '@compiled/react';

export const fadeOut = keyframes({
from: {
color: 'coral',
opacity: 1,
},
to: {
color: 'pink',
opacity: 0,
},
});
12 changes: 12 additions & 0 deletions examples/keyframes/tagged-template-literal.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { keyframes } from '@compiled/react';

export const fadeOut = keyframes`
from {
color: coral;
opacity: 1;
}
to {
color: pink;
opacity: 0;
}
`;
8 changes: 8 additions & 0 deletions examples/packages/babel-component/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @private/babel-component

## 0.0.5

### Patch Changes

- Updated dependencies [bcb2a68]
- Updated dependencies [a7ab8e1]
- @compiled/react@0.7.0

## 0.0.4

### Patch Changes
8 changes: 4 additions & 4 deletions examples/packages/babel-component/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@private/babel-component",
"private": true,
"version": "0.0.4",
"version": "0.0.5",
"main": "./dist/index.js",
"scripts": {
"build": "babel ./src --out-dir=./dist"
@@ -11,9 +11,9 @@
},
"devDependencies": {
"@compiled/babel-plugin": "*",
"@babel/core": "^7.14.6",
"@babel/cli": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@babel/core": "^7.15.0",
"@babel/cli": "^7.14.8",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5"
},
"peerDependencies": {
8 changes: 8 additions & 0 deletions examples/packages/parcel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @private/parcel

## 1.0.4

### Patch Changes

- Updated dependencies [bcb2a68]
- Updated dependencies [a7ab8e1]
- @compiled/react@0.7.0

## 1.0.3

### Patch Changes
2 changes: 1 addition & 1 deletion examples/packages/parcel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@private/parcel",
"version": "1.0.3",
"version": "1.0.4",
"private": true,
"scripts": {
"start": "parcel serve ./src/index.html --open --no-cache",
8 changes: 8 additions & 0 deletions examples/packages/ssr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @private/ssr

## 1.0.4

### Patch Changes

- Updated dependencies [bcb2a68]
- Updated dependencies [a7ab8e1]
- @compiled/react@0.7.0

## 1.0.3

### Patch Changes
2 changes: 1 addition & 1 deletion examples/packages/ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@private/ssr",
"version": "1.0.3",
"version": "1.0.4",
"private": true,
"scripts": {
"start": "razzle start",
10 changes: 10 additions & 0 deletions examples/packages/webpack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @private/webpack

## 1.0.4

### Patch Changes

- Updated dependencies [bcb2a68]
- Updated dependencies [a7ab8e1]
- @compiled/react@0.7.0
- @private/babel-component@0.0.5
- @compiled/webpack-loader@0.6.16

## 1.0.3

### Patch Changes
10 changes: 5 additions & 5 deletions examples/packages/webpack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@private/webpack",
"version": "1.0.3",
"version": "1.0.4",
"private": true,
"scripts": {
"start": "webpack serve --hot",
@@ -11,14 +11,14 @@
"@compiled/webpack-loader": "*",
"@private/babel-component": "*",
"babel-loader": "^8.2.2",
"css-loader": "^5.2.4",
"css-loader": "^5.2.7",
"css-minimizer-webpack-plugin": "^1.3.0",
"html-webpack-plugin": "^5.3.1",
"html-webpack-plugin": "^5.3.2",
"mini-css-extract-plugin": "^1.5.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"style-loader": "^2.0.0",
"webpack": "^5.35.1",
"webpack-cli": "^4.6.0"
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0"
}
}
File renamed without changes.
122 changes: 122 additions & 0 deletions examples/stories/conditional-rules-styled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
import React from 'react';
import { styled, css } from '@compiled/react';
import { primary, secondary } from '../mixins/mixins';

export default {
title: 'conditional rules/styled',
};

interface TextProps {
isPrimary?: boolean;
isBolded?: boolean;
isMaybe?: boolean;
children: React.ReactNode;
}

const TextWithTemplateLiteral = styled.span<TextProps>`
color: red;
${(props) => (props.isPrimary || props.isBolded) && { color: 'blue' }};
${(props) => props.isPrimary && { fontSize: '20px' }};
`;

const TextWithTernaryOperatorTemplateLiteral = styled.span<TextProps>`
color: ${(props) => (props.isPrimary ? 'blue' : 'red')};
font-weight: ${(props) =>
props.isPrimary && props.isMaybe ? (props.isBolded && 'bold') || 'normal' : 'light'};
`;

const TextWithObjectStyles = styled.span<TextProps>(
{ color: 'red' },
(props) => props.isPrimary && { color: 'blue' },
(props) => props.isBolded && { fontWeight: 'bold' },
css`
text-transform: uppercase;
`
);

const TextWithTernaryAndBooleanObjectStyle = styled.span<TextProps>({ fontSize: '20px' }, (props) =>
props.isPrimary && props.isBolded ? { color: 'blue', fontWeight: 'bold' } : { color: 'red' }
);

const TextWithMixins = styled.span<TextProps>`
${(props) => (props.isPrimary ? primary : secondary)};
padding: 10px;
`;

export const PrimaryTextWithTemplateLiteral = (): JSX.Element => {
return <TextWithTemplateLiteral isPrimary>Hello primary</TextWithTemplateLiteral>;
};

export const NotPrimaryTextWithTemplateLiteral = (): JSX.Element => {
return <TextWithTemplateLiteral>Hello secondary</TextWithTemplateLiteral>;
};

export const PrimaryTextWithTernaryOperatorTemplateLiteral = (): JSX.Element => {
return (
<TextWithTernaryOperatorTemplateLiteral isPrimary isMaybe>
Hello primary
</TextWithTernaryOperatorTemplateLiteral>
);
};

export const BoldedPrimaryTextWithTernaryOperatorTemplateLiteral = (): JSX.Element => {
return (
<TextWithTernaryOperatorTemplateLiteral isPrimary isMaybe isBolded>
Hello bolded primary
</TextWithTernaryOperatorTemplateLiteral>
);
};

export const NotPrimaryTextWithTernaryOperatorTemplateLiteral = (): JSX.Element => {
return (
<TextWithTernaryOperatorTemplateLiteral>Hello secondary</TextWithTernaryOperatorTemplateLiteral>
);
};

export const PrimaryTextWithObjectStyles = (): JSX.Element => {
return <TextWithObjectStyles isPrimary>Hello primary</TextWithObjectStyles>;
};

export const BoldedPrimaryTextWithObjectStyles = (): JSX.Element => {
return (
<TextWithObjectStyles isPrimary isBolded>
Hello bolded primary
</TextWithObjectStyles>
);
};

export const NotPrimaryTextWithObjectStyles = (): JSX.Element => {
return <TextWithObjectStyles>Hello secondary</TextWithObjectStyles>;
};

export const PrimaryTextWithTernaryAndBooleanObjectStyle = (): JSX.Element => {
return (
<TextWithTernaryAndBooleanObjectStyle isPrimary>
{' '}
Hello primary but not bolded. This should be red
</TextWithTernaryAndBooleanObjectStyle>
);
};

export const BoldedPrimaryTextWithTernaryAndBooleanObjectStyle = (): JSX.Element => {
return (
<TextWithTernaryAndBooleanObjectStyle isPrimary isBolded>
{' '}
Hello bolded primary
</TextWithTernaryAndBooleanObjectStyle>
);
};

export const NotPrimaryTextWithTernaryAndBooleanObjectStyle = (): JSX.Element => {
return (
<TextWithTernaryAndBooleanObjectStyle> Hello secondary</TextWithTernaryAndBooleanObjectStyle>
);
};

export const PrimaryTextWithMixins = (): JSX.Element => {
return <TextWithMixins isPrimary> Hello primary</TextWithMixins>;
};

export const SecondaryTextWithMixins = (): JSX.Element => {
return <TextWithMixins> Hello secondary</TextWithMixins>;
};
Loading