Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@kalamazoo/lozenge

stevenselcuk38Apache-2.01.0.2TypeScript support: included

A React component that highlights status for quick recognition

readme

Lozenge

Use lozenges to highlight an item's status for quick recognition. Lozenges can be emphasised and can use color to help convey meanings that users can learn and recognize across our products. Use subtle lozenges by default and in instances where they may dominate the screen, such as in long tables.

Installation

yarn add @kalamazoo/lozenge

Usage

Detailed docs and example usage can be found here.

changelog

@kalamazoo/lozenge

9.1.2

Patch Changes

  • [patch]557a8e2451:

    Rebuilds package to fix typescript typing error.

9.1.1

Patch Changes

  • [patch]35d2229b2a:

    Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.

9.1.0

Minor Changes

  • [minor]10e0798da6:

    Adding an optional prop testId that will set the attribute value data-testid. It will help products to write better integration and end to end tests.

9.0.7

Patch Changes

  • [patch]097b696613:

    Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports

9.0.6

Patch Changes

9.0.5

Patch Changes

  • [patch]708028db86:

    Change all the imports to theme in Core to use multi entry points

9.0.4

Patch Changes

  • [patch]de35ce8c67:

    Updates component maintainers

9.0.3

Patch Changes

  • [patch]bbff8a7d87:

    Fixes bug, missing version.json file

9.0.2

Patch Changes

  • [patch]18dfac7332:

    In this PR, we are:

    • Re-introducing dist build folders
    • Adding back cjs
    • Replacing es5 by cjs and es2015 by esm
    • Creating folders at the root for entry-points
    • Removing the generation of the entry-points at the root Please see this ticket or this page for further details

9.0.1

Patch Changes

  • [patch]f8778d517a:

    Remove index.ts from built module

9.0.0

  • [major]ed41cac6ac:

    • Lozenge has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided. No API or behavioural changes.

8.0.0

  • [major]7c17b35107:

    • Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use this package, please ensure you use at least this version of react and react-dom.

7.0.3

  • [patch]73a5c6f3dc:

    • Add emotion and remove styled-components

7.0.2

7.0.1

  • [patch]98e11001ff:

    • Removes duplicate babel-runtime dependency

7.0.0

  • [major]76299208e6:

    • Drop ES5 from all the flow modules

    Dropping CJS support in all @atlaskit packages

    As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only distribute esm. This means all distributed code will be transpiled, but will still contain import and export declarations.

    The major reason for doing this is to allow us to support multiple entry points in packages, e.g:

    import colors from `@kalamazoo/theme/colors`;

    Previously this was sort of possible for consumers by doing something like:

    import colors from `@kalamazoo/theme/dist/esm/colors`;

    This has a couple of issues. 1, it treats the file system as API making internal refactors harder, we have to worry about how consumers might be using things that aren't actually supposed to be used. 2. We are unable to do this internally in @atlaskit packages. This leads to lots of packages bundling all of theme, just to use a single color, especially in situations where tree shaking fails.

    To support being able to use multiple entrypoints internally, we unfortunately cannot have multiple distributions as they would need to have very different imports from of their own internal dependencies.

    ES Modules are widely supported by all modern bundlers and can be worked around in node environments.

    We may choose to revisit this solution in the future if we find any unintended condequences, but we see this as a pretty sane path forward which should lead to some major bundle size decreases, saner API's and simpler package architecture.

    Please reach out to #fabric-build (if in Atlassian) or create an issue in Design System Support (for external) if you have any questions or queries about this.

6.2.4

6.2.3

  • [patch]d13242d:

    • Change API to experimental theming API to namespace component themes into separate contexts and make theming simpler. Update all dependant components.

6.2.2

  • [patch] Adds missing implicit @babel/runtime dependency b71751b

6.2.1

  • [patch] Pulling the shared styles from @kalamazoo/theme and removed dependency on util-shraed-styles 7d51a09

6.2.0

  • [minor] Use new theme API. Adds "theme" prop and exports new theme types. 4b36fd6

6.1.8

  • [patch] AK-5321 Lozenge with maxWidth should be constrained by container width 969233e

6.1.7

  • [patch] Adds sideEffects: false to allow proper tree shaking b5d6d04

6.1.5

6.1.4

6.1.3

6.1.2

6.1.1

6.1.0

  • [minor] Improve behavior when using a narrow container ebf6b97
  • [none] Updated dependencies ebf6b97

6.0.0

5.0.4

5.0.3

5.0.2

5.0.1

5.0.0

4.1.1

  • [patch] Updae bold color to N800 0838cb0
  • [patch] Update colors of appearance to new color palette pairings 979aff5
  • [none] Updated dependencies 0838cb0
  • [none] Updated dependencies 979aff5

4.1.0

  • [patch] Update appearance enum test b42eaa5
  • [patch] Update test c668ac9
  • [minor] Update Lozenge to accept colors pairing 4638c7a
  • [none] Updated dependencies b42eaa5
  • [none] Updated dependencies c668ac9
  • [none] Updated dependencies 4638c7a

4.0.1

4.0.0

  • [major] Bump to React 16.3. 4251858

3.6.1

  • [patch] Re-releasing due to potentially broken babel release 9ed0bba

3.6.0

  • [minor] Update styled-components dependency to support versions 1.4.6 - 3 ceccf30

3.5.2

3.5.1

  • [patch] Packages Flow types for elements components 3111e74

3.5.0

  • [minor] Add React 16 support. 12ea6e4

3.4.2 (2017-07-27)

  • fix; rename jsnext:main to jsnext:experimental:main temporarily (c7508e0)

3.4.1 (2017-07-25)

  • fix; use class transform in loose mode in babel to improve load performance in apps (fde719a)

3.1.0 (2017-07-17)

  • fix; rerelease, failed prepublish scripts (5fd82f8)

3.1.0 (2017-07-17)

  • feature; added ES module builds to dist and add jsnext:main to most ADG packages (ea76507)

3.0.3 (2017-07-13)

  • fix; add prop-types as a dependency to avoid React 15.x warnings (92598eb)

3.0.2 (2017-04-27)

  • fix; update legal copy to be more clear. Not all modules include ADG license. (f3a945e)

3.0.1 (2017-04-26)

  • fix; update legal copy and fix broken links for component README on npm. New contribution and (0b3e454)

2.0.0 (2017-03-27)

  • bump major to avoid API conflict with mentions (1d01253)
  • updating dependencies (d293404)
  • breaking; update lozenge major version
  • breaking; removed classnames dep and .d.ts file

1.0.11 (2017-03-23)

  • fix; Empty commit to release the component (49c08ee)
  • refactor the lozenge component to use styled-components (eb738ca)
  • breaking; now requires peerDep of "styled-components"

1.0.9 (2017-03-21)

  • fix; maintainers for all the packages were added (261d00a)

1.0.8 (2017-02-28)

  • fix; dummy commit to release stories (3df5d9f)

1.0.6 (2017-02-28)

  • fix; dummy commit to fix broken stories and missing registry pages (a31e92a)

1.0.6 (2017-02-28)

  • fix; dummy commit to release stories for components (a105c02)

1.0.5 (2017-02-28)

  • fix; removes jsdoc annotations and moves them to usage.md (2c53fea)

1.0.4 (2017-02-20)

  • fix; use correctly scoped package names in npm docs (91dbd2f)

1.0.2 (2017-02-07)

  • fix; Updates docs with yarn installation instructions (aebf31a)
  • Add TypeScript declarations for lozenge. (5993cf8)

1.0.1 (2017-02-06)

  • fix; Updates package to use scoped ak packages (b655c30)