-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2044 from chanzuckerberg/release-v15.3.0
## [15.3.0](v15.2.1...v15.3.0) (2024-08-23) [Storybook](https://61313967cde49b003ae2a860-vuzmfnjuoj.chromatic.com/) Figma Components Library: 🟢 No breaking changes - EDS-toastNotification: - deleted the dissmissType property - Added Toast Pattern documentation to handle multiple toasts - EDS-popover: added EDS-popover 2.0 component ### Features * **config:** add transition durations for tailwind ([#2036](#2036)) ([aed0f09](aed0f09)) * **Popover:** update theming to 2.0 ([#2031](#2031)) ([c5ab351](c5ab351)) * **tokens:** add in additional table tokens ([#2035](#2035)) ([a698a5b](a698a5b)) * **tokens:** update visited tokens ([#2034](#2034)) ([df84c87](df84c87)) ### Bug Fixes * **Card:** add spacing between eyebrow and title ([#2040](#2040)) ([d6ee15d](d6ee15d)) * **Link:** handle inverse variant for standalone links ([#2042](#2042)) ([351d7fd](351d7fd)) * **Popover:** update component version number ([#2038](#2038)) ([9940d76](9940d76))
- Loading branch information
Showing
31 changed files
with
1,653 additions
and
1,567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
.storybook/components/DesignTokens/Tier3/Colors.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import type { StoryObj } from '@storybook/react'; | ||
import React from 'react'; | ||
import filterTokens from '../../../util/filterTokens'; | ||
import { ColorList } from '../../ColorList/ColorList'; | ||
import Section from '../../Section'; | ||
|
||
export default { | ||
title: 'Design Tokens/Tier 3: Component/Colors', | ||
parameters: { | ||
axe: { | ||
// For documentation purposes only | ||
skip: true, | ||
}, | ||
}, | ||
}; | ||
|
||
const camelCaseWarning = | ||
'NOTE: table tokens have a camelCase suffix for the emphasis (e.g., tableRow)'; | ||
|
||
const getListItems = ({ | ||
filterTerm, | ||
figmaTokenHeader, | ||
tailwindClassHeader, | ||
}: { | ||
filterTerm: string; | ||
figmaTokenHeader: string; | ||
tailwindClassHeader: string; | ||
}) => | ||
filterTokens(filterTerm).map(({ name, value }) => { | ||
const specifier = name.slice( | ||
name.indexOf(filterTerm) + filterTerm.length + 1, | ||
); | ||
return { | ||
name, | ||
value, | ||
figmaToken: figmaTokenHeader + '/' + specifier, | ||
tailwindClass: tailwindClassHeader + '-' + specifier, | ||
}; | ||
}); | ||
|
||
export const IconUtility: StoryObj = { | ||
render: () => ( | ||
<div> | ||
<Section title="Icon Colors (utility)"> | ||
<ColorList | ||
listItems={getListItems({ | ||
filterTerm: 'eds-theme-color-icon-utility', | ||
figmaTokenHeader: 'icon', | ||
tailwindClassHeader: 'text-icon-utility', | ||
})} | ||
/> | ||
</Section> | ||
</div> | ||
), | ||
}; | ||
|
||
// TODO: handle name formatting for tableRow tokens in figma and tailwind | ||
export const BackgroundTable: StoryObj = { | ||
render: () => ( | ||
<div> | ||
<Section description={camelCaseWarning} title="Background Colors (Table)"> | ||
<ColorList | ||
listItems={getListItems({ | ||
filterTerm: 'eds-theme-color-background-table', | ||
figmaTokenHeader: 'background', | ||
tailwindClassHeader: 'bg-table', | ||
})} | ||
/> | ||
</Section> | ||
</div> | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@chanzuckerberg/eds", | ||
"version": "15.2.1", | ||
"version": "15.3.0", | ||
"description": "The React-powered design system library for Chan Zuckerberg Initiative education web applications", | ||
"author": "CZI <[email protected]>", | ||
"homepage": "https://github.com/chanzuckerberg/edu-design-system", | ||
|
@@ -125,53 +125,53 @@ | |
"@commitlint/cli": "^18.6.1", | ||
"@commitlint/config-conventional": "^18.6.3", | ||
"@geometricpanda/storybook-addon-badges": "^2.0.2", | ||
"@omlet/cli": "^1.10.1", | ||
"@omlet/cli": "^1.10.2", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@rollup/plugin-typescript": "^11.1.6", | ||
"@size-limit/file": "^8.2.6", | ||
"@storybook/addon-a11y": "^8.2.7", | ||
"@storybook/addon-essentials": "^8.2.7", | ||
"@storybook/addon-interactions": "^8.2.7", | ||
"@storybook/addon-links": "^8.2.7", | ||
"@storybook/addon-mdx-gfm": "^8.2.7", | ||
"@storybook/addon-a11y": "^8.2.9", | ||
"@storybook/addon-essentials": "^8.2.9", | ||
"@storybook/addon-interactions": "^8.2.9", | ||
"@storybook/addon-links": "^8.2.9", | ||
"@storybook/addon-mdx-gfm": "^8.2.9", | ||
"@storybook/addon-styling": "^1.3.7", | ||
"@storybook/addon-webpack5-compiler-babel": "^3.0.3", | ||
"@storybook/manager-api": "^8.2.7", | ||
"@storybook/react": "^8.2.7", | ||
"@storybook/react-webpack5": "^8.2.7", | ||
"@storybook/test": "^8.2.7", | ||
"@storybook/manager-api": "^8.2.9", | ||
"@storybook/react": "^8.2.9", | ||
"@storybook/react-webpack5": "^8.2.9", | ||
"@storybook/test": "^8.2.9", | ||
"@storybook/testing-library": "^0.2.2", | ||
"@storybook/theming": "^8.2.7", | ||
"@storybook/theming": "^8.2.9", | ||
"@testing-library/jest-dom": "^6.4.8", | ||
"@testing-library/react": "^16.0.0", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/jest": "^29.5.12", | ||
"@types/jsonfile": "^6", | ||
"@types/lodash": "^4.17.7", | ||
"@types/node": "^20.14.14", | ||
"@types/node": "^20.14.15", | ||
"@types/react": "^18.3.3", | ||
"@types/react-beautiful-dnd": "^13.1.8", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/react-portal": "^4.0.7", | ||
"@types/yargs": "^17.0.32", | ||
"@types/yargs": "^17.0.33", | ||
"axe-core": "4.10.0", | ||
"chromatic": "^11.7.0", | ||
"chromatic": "^11.7.1", | ||
"codecov": "^3.8.3", | ||
"copyfiles": "^2.4.1", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-jest": "^27.9.0", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"eslint-plugin-storybook": "^0.8.0", | ||
"eslint-plugin-testing-library": "^6.2.2", | ||
"eslint-plugin-testing-library": "^6.3.0", | ||
"husky": "^8.0.3", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"jest-preset-stylelint": "^6.3.2", | ||
"lint-staged": "^13.3.0", | ||
"plop": "^4.0.1", | ||
"postcss": "^8.4.40", | ||
"postcss": "^8.4.41", | ||
"postcss-cli": "^10.1.0", | ||
"postcss-import": "^15.1.0", | ||
"postcss-mixins": "^9.0.4", | ||
|
@@ -181,15 +181,15 @@ | |
"prettier-plugin-tailwindcss": "^0.5.7", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"rollup": "^4.19.2", | ||
"rollup": "^4.20.0", | ||
"rollup-plugin-postcss": "^4.0.2", | ||
"size-limit": "^8.2.6", | ||
"standard-version": "^9.5.0", | ||
"storybook": "^8.2.7", | ||
"storybook": "^8.2.9", | ||
"style-dictionary": "^3.9.2", | ||
"stylelint": "^15.11.0", | ||
"stylelint-config-recommended": "^13.0.0", | ||
"tailwindcss": "^3.4.7", | ||
"tailwindcss": "^3.4.10", | ||
"ts-jest": "^29.2.4", | ||
"typescript": "^5.5.4" | ||
}, | ||
|
@@ -202,5 +202,5 @@ | |
"stylelint --fix --allow-empty-input" | ||
] | ||
}, | ||
"packageManager": "yarn@4.3.1" | ||
"packageManager": "yarn@4.4.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.