Skip to content

Commit

Permalink
Merge branch 'main' into js-card-color-modes
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamwasp authored Mar 27, 2024
2 parents eb8aeda + 8429aa5 commit 40c97df
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 9 deletions.
6 changes: 6 additions & 0 deletions packages/gamut-icons/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [9.20.0](https://github.com/Codecademy/gamut/compare/@codecademy/[email protected]...@codecademy/[email protected]) (2024-03-21)

### Features

- **icons:** add miniPinIcon ([fcf7fc6](https://github.com/Codecademy/gamut/commit/fcf7fc61ee200d0b3451eed18430a68a8b370ea6))

## [9.19.0](https://github.com/Codecademy/gamut/compare/@codecademy/[email protected]...@codecademy/[email protected]) (2024-03-11)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/gamut-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@codecademy/gamut-icons",
"description": "Icon library for codecademy.com",
"version": "9.19.0",
"version": "9.20.0",
"author": "Codecademy <[email protected]>",
"dependencies": {
"@codecademy/gamut-styles": "16.2.0",
Expand Down
1 change: 1 addition & 0 deletions packages/gamut-icons/src/svg/mini/mini-pin-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/gamut-kit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [0.6.390](https://github.com/Codecademy/gamut/compare/@codecademy/[email protected]...@codecademy/[email protected]) (2024-03-21)

**Note:** Version bump only for package @codecademy/gamut-kit

### [0.6.389](https://github.com/Codecademy/gamut/compare/@codecademy/[email protected]...@codecademy/[email protected]) (2024-03-18)

**Note:** Version bump only for package @codecademy/gamut-kit
Expand Down
6 changes: 3 additions & 3 deletions packages/gamut-kit/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@codecademy/gamut-kit",
"description": "Styleguide & Component library for Codecademy",
"version": "0.6.389",
"version": "0.6.390",
"author": "Codecademy Engineering <[email protected]>",
"dependencies": {
"@codecademy/gamut": "55.14.1",
"@codecademy/gamut-icons": "9.19.0",
"@codecademy/gamut": "55.14.2",
"@codecademy/gamut-icons": "9.20.0",
"@codecademy/gamut-illustrations": "0.42.0",
"@codecademy/gamut-patterns": "0.9.11",
"@codecademy/gamut-styles": "16.2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/gamut/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [55.14.2](https://github.com/Codecademy/gamut/compare/@codecademy/[email protected]...@codecademy/[email protected]) (2024-03-21)

**Note:** Version bump only for package @codecademy/gamut

### [55.14.1](https://github.com/Codecademy/gamut/compare/@codecademy/[email protected]...@codecademy/[email protected]) (2024-03-18)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions packages/gamut/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@codecademy/gamut",
"description": "Styleguide & Component library for Codecademy",
"version": "55.14.1",
"version": "55.14.2",
"author": "Codecademy Engineering <[email protected]>",
"dependencies": {
"@codecademy/gamut-icons": "9.19.0",
"@codecademy/gamut-icons": "9.20.0",
"@codecademy/gamut-illustrations": "0.42.0",
"@codecademy/gamut-patterns": "0.9.11",
"@codecademy/gamut-styles": "16.2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/styleguide/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [66.14.3](https://github.com/Codecademy/gamut/compare/@codecademy/[email protected]...@codecademy/[email protected]) (2024-03-21)

### Bug Fixes

- **popover:** add position to popover stories ([dd872c5](https://github.com/Codecademy/gamut/commit/dd872c5a51471dedd7b351bfe9e6852091b0667a))

### [66.14.2](https://github.com/Codecademy/gamut/compare/@codecademy/[email protected]...@codecademy/[email protected]) (2024-03-21)

**Note:** Version bump only for package @codecademy/styleguide

### [66.14.1](https://github.com/Codecademy/gamut/compare/@codecademy/[email protected]...@codecademy/[email protected]) (2024-03-18)

### Bug Fixes
Expand Down
6 changes: 3 additions & 3 deletions packages/styleguide/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@codecademy/styleguide",
"description": "Styleguide & Component library for codecademy.com",
"version": "66.14.1",
"version": "66.14.3",
"author": "Codecademy Engineering",
"dependencies": {
"@codecademy/gamut": "55.14.1",
"@codecademy/gamut-icons": "9.19.0",
"@codecademy/gamut": "55.14.2",
"@codecademy/gamut-icons": "9.20.0",
"@codecademy/gamut-illustrations": "0.42.0",
"@codecademy/gamut-patterns": "0.9.11",
"@codecademy/gamut-styles": "16.2.0",
Expand Down
14 changes: 14 additions & 0 deletions packages/styleguide/stories/Molecules/Popover/Popover.examples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,17 @@ export const PatternedPopoversGrid = (args: PopoverProps) => {
</LayoutGrid>
);
};

export const PositionPopoverGrid = (args: PopoverProps) => {
return (
<LayoutGrid columnGap={8} rowGap={48}>
{(['above', 'below'] as const).map((position) => (
<Column key={position} size={4}>
<FlexBox justifyContent="center">
<PopoverExample {...args} position={position} />
</FlexBox>
</Column>
))}
</LayoutGrid>
);
};
13 changes: 13 additions & 0 deletions packages/styleguide/stories/Molecules/Popover/index.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
PatternedPopoversGrid,
PopoverExample,
PopoverWithoutFocus,
PositionPopoverGrid,
} from './Popover.examples';

<Meta
Expand Down Expand Up @@ -74,6 +75,18 @@ The outline color is theme.colors.secondary so in Dark Mode, the outline will be
</Story>
</Canvas>

## Position

Using the position prop, you can add a position (`above` or `below`) to the popover. It will be `below` by default.

<Canvas>
<Story name="Position">
{(args) => {
return <PositionPopoverGrid {...args} />;
}}
</Story>
</Canvas>

## Patterns

Using the pattern prop, you can apply a patterned background to the popover.
Expand Down

0 comments on commit 40c97df

Please sign in to comment.