Skip to content

Latest commit

 

History

History
823 lines (473 loc) · 16.5 KB

CHANGELOG.md

File metadata and controls

823 lines (473 loc) · 16.5 KB

@leafygreen-ui/icon

12.7.0

Minor Changes

  • 43c895142: Adds 'EmptyFolder' and 'EmptyDatabase' glyphs

12.6.0

Minor Changes

  • 2f05b61ab: Exports sizeMap
  • eb80fd3cb: Adds Pending to glyph set

12.5.4

Patch Changes

  • 342ab81b0: Updates Federation icon

12.5.3

Patch Changes

  • 838a95b73: Slight tweaks for .design story

12.5.2

Patch Changes

  • df0d6faee: Adds args to Icon meta for .design

12.5.1

Patch Changes

  • 95093066c: Rename AllIcons to LiveExample for .design

12.5.0

Minor Changes

  • 961be3f9: Adds Stop to glyph set and updates Pause glyph

12.4.0

Minor Changes

  • ae44834e: Exports type GlyphName, a union of all default LeafyGreen icon names

12.3.0

Minor Changes

  • 684c87f1: Adds Moon and Sun glyphs.

12.2.0

Minor Changes

  • eeea253c: Adds Format Eraser glyphs, and updates LogIn glyph.

12.1.0

Minor Changes

  • 9402ba0e: Adds 'Escalation' to glyph set

12.0.1

Patch Changes

  • 15185af0: Imports Storybook utilities from @lg-tools/storybook-utils (previously imported from @leafygreen-ui/lib)
  • 356a53fd: Update TS builds to use [email protected]
  • Updated dependencies [356a53fd]

12.0.0

Major Changes

  • 74057388: Renames 'Collections' glyph to 'Project'

11.29.1

Patch Changes

  • e487fb24: Renames story files from .story.tsx to .stories.tsx

11.29.0

Minor Changes

  • 8142d306: Adds 'Collections', 'InternalEmployee', 'Primary', 'Recommended', 'SearchIndex', and 'Secondary' glyphs to set. Also updates 'Dashboard' glyph.

11.28.0

Minor Changes

  • e6c70b73: Adds 'HorizontalDrag' glyph to Icon set

11.27.1

Patch Changes

  • 9b7a8236: Updates 'Database'glyph

11.27.0

Minor Changes

  • 75b8d963: Adds 'Hash' to glyph set and updates the 'Home' glyph

11.26.0

Minor Changes

  • 66cfdbca: Adds 'Cap' icon to glyph set
  • 873448bb: Adds 'Camera' to glyph set

Patch Changes

  • ad243893: Updating dimensions of Calendar icon to correctly center itself horizontally

11.25.1

Patch Changes

  • ed0437ce: Updates 'Key' icon to match design specs

11.25.0

Minor Changes

  • c41752d2: Adds LightningBolt icon to glyph set.
  • 89332190: Adds Boolean and String icons to glyph set

11.24.0

Minor Changes

  • 1c7c9608: Add Colon and TimeSeriesCollection icons.

11.23.0

Minor Changes

  • 56459cde: Adds Mobile icon and updates NavCollapse and NavExpand icons.

Patch Changes

  • c9f0055a: Moves some dependencies to devDependencies (@svgr/core, @types/meow, @types/xml2json, meow)

11.22.2

Patch Changes

  • 4fcf2e94: Updates internal function, isComponentGlyph

11.22.1

Patch Changes

  • c11bbc29: Fixes problem with ts-docs not being available in bundle.
  • Updated dependencies [c11bbc29]

11.22.0

Minor Changes

  • f73807cf: Adds Pin icon and updates Warning icon to match Figma specs

Patch Changes

  • 31c09354: Fixing issue where dark mode would not change ThumbsUp and ThumbsDown icon fills
  • c15ee2ac: Fixes missing documentation file
  • Updated dependencies [c15ee2ac]

11.21.0

Minor Changes

  • 1629efe6: Adds AllProducts, NavCollapse, and NavExpand glyphs to icon

11.20.1

Patch Changes

  • 215268ff: Updates build tooling. No functional changes
  • Updated dependencies [215268ff]

11.20.0

Minor Changes

  • 348e56cb: Add Sparkle and Return icons
  • 5c3b9a85: Adds 'list' glyph to Icon set

11.19.0

Minor Changes

  • 5dcea09d: Adds CodeBlock, MultiDirectionArrow, and MultiLayers icons.

11.18.0

Minor Changes

  • bf5672bb: Adds 'Federation' icon to glyph set

11.17.0

Minor Changes

  • 95f5107a: Add ThumbsUp and ThumbsDown icons

Patch Changes

  • 76161cf0: Updates stories for Chromatic testing

11.16.1

Patch Changes

  • d2ce54e2f: Updates story files for Storybook 7.x

11.16.0

Minor Changes

  • dff6c306e: Adds support for Dashboard in the glyph set. This is an alias of Stitch and will be the preferred reference name moving forward.

11.15.0

Minor Changes

  • 614f7617d: Adds tag icon to glyph set
  • 614f7617d: Adds wizard icon to glyph set

11.14.0

Minor Changes

  • 83fc5b31b: Adds ChartFilled icon

11.13.1

Patch Changes

  • 8c0c2bdf9: Updates build script to include a transpiled copy of the story file in the bundle
  • Updated dependencies [8c0c2bdf9]

11.13.0

Minor Changes

  • dc8ceed9b: Adds Highlight,LogIn,LogOut, and Wrench icons.

11.12.7

Patch Changes

  • c2c5601f4: Adds missing dependencies. Removes unused dependencies

11.12.6

Patch Changes

  • cb083a826: Adds Gauge icon and updates Drag icon.

11.12.5

Patch Changes

  • 997121cc3: Improves error message when entering a glyph name that does not exist. Now, if you make a typo in the glyph name, you'll receive a more helpful console error, instead of a runtime TypeError

11.12.4

Patch Changes

  • 050f1f8a9: Adds NoFilter icon
  • b24b21462: Storybook: Updates story files to be on par with existing mongodb.design examples

11.12.3

Patch Changes

  • 95bd93ef9: Adds Drag, Read, Resize, and Write icons
  • 3bb4b7506: Removing clipPath from Edit icon

11.12.2

Patch Changes

  • b7f7a4c95: Updates package dependencies & devDependencies, and ensures each package is appropriately listed. Ensures tsconfig has no circular dependencies

11.12.1

Patch Changes

  • 4b4c2d27d: Added Biometric icon
  • 1a335d0b2: Explicitly include data-testid in allowed props for Glyph components

11.12.0

Minor Changes

  • 209f77ed: Adds Email, Import, and SMS icons

11.11.1

Patch Changes

  • 24683433: - Remove an implicit dependency on @emotion/react fixing an issue where LG packages would not build if @leafygreen/[email protected] or greater was installed.
  • Updated dependencies [24683433]

11.11.0

Minor Changes

  • 3690df49: Updates TypeScript annotations, type structures and export format of some components

Patch Changes

  • 3690df49: Exports IconProps
  • Updated dependencies [3690df49]

11.10.2

Patch Changes

  • 7caa1c3e: Add 'Relationship' icon
  • 8d7534e9: Adds tsdoc.json to published package files
  • Updated dependencies [8d7534e9]

11.10.1

Patch Changes

  • 31f1cf8f: Updated Folder SVG

11.10.0

Minor Changes

  • 2670e4db: Adds isGlyph property to icons returned by createIconComponent. This means the generic <Icon/> component will now be compatible with Select and Combobox Options. Additionally, overloads isComponentGlyph function to accept either a ReactNode, or ComponentType.

11.9.0

Minor Changes

  • 500d6c60: Adds Cursor, Diagram2, Diagram3, Link, SplitHorizontal, SplitVertical, and Sweep icons to the Icon component.

11.8.0

Minor Changes

  • acd6919: Exports createGlyphComponent from the package. This provides a way to ensure parity between built-in icons and custom icons. By processing an icon with createGlyphComponent, consumers can ensure that props like size, fill and role behave as expected in both custom and default icons.

    e.g.

    import { createGlyphComponent, Size } from '@leafygreen-ui/icon';
    
    const myIconGlyph = createGlyphComponent('myIconName', props => (
      <svg {...props} />
    ));
    
    const MyIconComponent = createIconComponent({
      myIconName: myIconGlyph,
    });
    
    return (
      <MyIconComponent glyph="myIconName" size={Size.Large} role="presentation" />
    );

Patch Changes

  • Updated dependencies [acd6919]
  • Updated dependencies [acd6919]

11.7.0

Minor Changes

  • e8f1a97: Adds Clock, ClockWithArrow, Key, Note, Redo, ReplicaSet, Serverless, ShardedCluster, Undo icons to the Icon component.

11.6.1

Patch Changes

  • b3ea62a: Fixes a path clipping error in the Table icon

11.6.0

Minor Changes

  • d4a46e27: Adds Connect and Disconnect icons

Patch Changes

11.5.0

Minor Changes

  • 934515d7: Adds "Array", "Diagram", "Home", and "Table" glyphs to the Icon component.

11.4.0

Minor Changes

  • e4070f2b: Adds Play, Pause and Minus icons to icon set

11.3.0

Minor Changes

  • 03388ff2: Adds Clone icon

Patch Changes

11.2.0

Minor Changes

  • b408e8a7: Adds 'FullScreenEnter', 'FullScreenExit', 'Shell', 'PersonGroup', 'File', 'GlobeAmericas', and 'Code' glyphs.

11.1.1

Patch Changes

11.1.0

Minor Changes

  • 30f5fd75: Adds TimeSeries to glyph set

11.0.0

Major Changes

  • faeb0ce0: Updates InviteUser, PersonWithLock, Person, University, Support, Beaker, Charts, GovernmentBuilding, Save, NotAllowed, Laptop, and CreditCard Icons.

10.2.1

Patch Changes

10.2.0

Minor Changes

  • 2f0775ec: Introduces an "Apps" icon to the icon component.

Patch Changes

10.1.0

Minor Changes

  • 077628e7: Adds missing icons from the batch 2 release, and fixes an issue with an icon update

10.0.0

Major Changes

  • ec27f36e: Adds new glyphs:

    • CurlyBraces
    • Database
    • Unlock

    Updates existing glyphs:

    • ArrowDown
    • ArrowLeft
    • ArrowRight
    • ArrowUp
    • Bulb
    • Checkmark
    • CheckmarkWithCircle
    • Cloud
    • ImportantWithCircle
    • Lock
    • Unlock
    • Menu
    • OpenNewTab
    • QuestionMarkWithCircle
    • Refresh
    • SortAscending
    • SortDescending
    • Unsorted
    • XWithCircle

9.0.0

Major Changes

  • f805b772: Adds a number of brand-consistent glyphs, and updates some existing glyphs.

    New:

    • AddFile
    • Calendar
    • Favorite
    • Filter
    • Upload
    • Visibility
    • VisibilityOff

    Updated:

    • ActivityFeed
    • Bell
    • Building
    • CaretDown
    • CaretLeft
    • CaretRight
    • CaretUp
    • ChevronDown
    • ChevronLeft
    • ChevronRight
    • ChevronUp
    • Copy
    • Download
    • Edit
    • Ellipsis
    • Folder
    • InviteUser
    • MagnifyingGlass
    • Megaphone
    • OpenNewTab
    • Plus
    • PlusWithCircle
    • Settings
    • Trash
    • VerticalEllipsis
    • Warning
    • X

8.0.1

Patch Changes

  • bf8b83e1: Sets alt attribute to '' when role="presentation"

8.0.0

Major Changes

  • ba56b1cc: Changes accessible properties on LeafyGreen glyphs. Previously we used the title tag to communicate a glyph's accessible name, but this was problematic as in certain instances we wanted to remove the title (which can appear in certain browsers like a tooltip when an glyph is hovered on) leaving mismatching aria-labels in the DOM. Now, we use the aria-label property as the default mechanism by which to give a glyph an accessible name. This default value can be overwritten by supplying an aria-labelledby, aria-label or title tag to the glyph. Additionally, previously we did not have support for overwriting the default role="img", which forced every glyph to be accessible to screenreaders. Now, if you'd like to hide your glyph from screenreaders you are able to pass role="presentation".

7.1.0

Minor Changes

  • 2daf1808: Exports isGlyph function, which returns a boolean based on whether or not a ReactElement is a LeafyGreenUI Glyph component

7.0.2

Patch Changes

  • 7b71da8f: Fixes issue where icons could inadvertently be resized by flexbox default behavior.
  • Updated dependencies [ee7923d3]

7.0.1

Patch Changes

  • dac3f38b: Fixes a publishing error that prevented UMD modules from being distributed
  • Updated dependencies [dac3f38b]

7.0.0

Major Changes

  • 0267bfd2: The underlying structure of distributed module definition files have changed and now have official support for ES modules. Module definition files are now generated using Rollup instead of Webpack. This should not affect functionality, but some thorough testing and caution should be exercised when upgrading.

Patch Changes

6.7.0

Minor Changes

  • 65d5ed4d: Adds Download glyph to Icon library

6.6.1

Patch Changes

  • 001a277f: Server side rendering now produces fewer warnings

6.6.0

Minor Changes

  • 6883ccd0: Adds flex-shrink: 0 property to Icon component

6.5.0

Minor Changes

  • e49d66b: Updated appearance of X icon

6.4.2

Patch Changes

  • 43d47db: Correctly sets fill rule for Beaker

6.4.1

Patch Changes

  • b80379a: Updates fill rule for Beaker

6.4.0

Minor Changes

  • 699a65c: Adds Beaker glyph

6.3.2

Patch Changes

6.3.1

Patch Changes

  • 5ee2098: Remove invalid title attribute from SVG
  • Updated dependencies [6aadc0b]

6.3.0

Minor Changes

  • d2136a0: Adds GovernmentBuilding icon to library

Patch Changes

  • Updated dependencies [2eba736]
  • Updated dependencies [1aa26ee]
  • Updated dependencies [a571361]

6.2.0

Minor Changes

  • 4873650: Adds OpenNewTab glyph to library

6.1.2

Patch Changes

  • 27f8ea1: Removes duplicate id tag in copy glyph
  • Updated dependencies [083eec3]

6.1.1

Patch Changes

  • eba8391: Props are now spread on Glyph components

6.1.0

Minor Changes

  • 1d86d56: Adds static property isGlyph to Glyph components, and ensures that Glyph components can receive size values consistent with Icon sizes, rather than just a numeric value.

6.0.1

Patch Changes

  • e83e4ed: Fixes displayName property of generated glyphs

6.0.0

Major Changes

  • 6fc022e: Transpiles icons imported individually from dist to use commonjs.

5.2.0

Minor Changes

  • 2fc4ef9: Adds "ImportantWithCircle" glyph to Icon library
  • e857861: Adds "Unsorted", "UpDownCarets", "VerticalEllipsis", "SortAscending", and "SortDescending" glyphs to Icon
  • cf6167e: Build and consume individual glyph components

5.1.0

Minor Changes

  • c812eb3: Updates the "ActivityFeed" icon to be consistent with other icons in the MongoNav

5.0.3

Patch Changes

  • 75c0693: Upgrades workspace dependencies

5.0.2

Patch Changes

  • 5aafd72: When an Icon is a child of IconButton, the Icon's title will be unset unless explicitly set on Icon, and its size will be inherited from IconButton unless its explicitly set.
  • 5aafd72: Fixes an issue where some built type definition files had a triple-slash reference directive pointing to a package that might not exist in a consuming application.
  • Updated dependencies [5aafd72]

5.0.1

Patch Changes

  • 365412e: Adds emotion as a dependency rather than devDep to package.json

5.0.0

Major Changes

  • 4c268a5: Refactors how glyph components are generated, and allows titles to be unset by passing false into the title prop.

4.3.0

Minor Changes

  • e1568c6: Updates the visual weight of the "InviteUser" glyph.

4.2.0

Minor Changes

  • a2948f6: Adds "University" glyph

4.1.0

Minor Changes

  • 71327dd: Adds "ActivityFeed", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Folder", "InviteUser", and "Megaphone" icons

4.0.0

Major Changes

  • 0a75bd6: Changes values of large and xlarge icons to be 20 and 24 respectively. If using <Icon size="large" /> previously, update to <Icon size="xlarge" />

Patch Changes

3.0.1

Patch Changes

  • 8fd107a: Fixes an issue where local module definition for SVG files was overriding the module definition in consuming applications
  • Updated dependencies [11b2217]

3.0.0

Major Changes

  • 464c09d: Introduces SSR compatibility though a change to our build process and files

Patch Changes

2.1.0

Minor Changes

  • cdcf687: Adds support for title prop

2.0.0

Major Changes

  • eb49b56:
    • Uses currentColor to set fill. If the fill prop is not set, the fill of an icon will now be inherited from its decendent's color.
    • Icon now includes a small size variant that renders the glyph as a 14x14px SVG element.