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: adobe/spectrum-css
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @spectrum-css/clearbutton@7.1.0
Choose a base ref
...
head repository: adobe/spectrum-css
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @spectrum-css/clearbutton@7.2.0
Choose a head ref
Loading
Showing with 14,588 additions and 40,313 deletions.
  1. +7 −2 .changeset/config.json
  2. +28 −0 .eslintrc
  3. +35 −42 .github/actions/file-diff/CHANGELOG.md
  4. +14 −1 .github/workflows/development.yml
  5. +20 −0 .github/workflows/lint.yml
  6. +4 −2 .github/workflows/release.yml
  7. +3 −2 .gitignore
  8. +24 −0 .markdownlint.json
  9. +208 −401 .storybook/CHANGELOG.md
  10. +3 −2 .storybook/decorators/context.js
  11. +3 −3 .storybook/decorators/helpers.js
  12. +15 −15 .storybook/decorators/icon-sprites.js
  13. +2 −1 .storybook/decorators/language.js
  14. +6 −3 .storybook/decorators/testing-preview.js
  15. +2 −2 .storybook/decorators/utilities.js
  16. +14 −4 .storybook/main.js
  17. +22 −22 .storybook/modes/index.js
  18. +6 −6 .storybook/package.json
  19. +23 −0 .storybook/postcss.config.js
  20. +2 −2 .storybook/project.json
  21. +1 −2 README.md
  22. +105 −415 components/accordion/CHANGELOG.md
  23. +173 −613 components/actionbar/CHANGELOG.md
  24. +2 −2 components/actionbar/package.json
  25. +140 −449 components/actionbutton/CHANGELOG.md
  26. +26 −16 components/actionbutton/dist/metadata.json
  27. +8 −14 components/actionbutton/index.css
  28. +1 −1 components/actionbutton/package.json
  29. +1 −0 components/actionbutton/themes/express.css
  30. +65 −31 components/actionbutton/themes/spectrum-two.css
  31. +34 −3 components/actionbutton/themes/spectrum.css
  32. +105 −561 components/actiongroup/CHANGELOG.md
  33. +1 −1 components/actiongroup/package.json
  34. +91 −455 components/actionmenu/CHANGELOG.md
  35. +4 −4 components/actionmenu/package.json
  36. +99 −207 components/alertbanner/CHANGELOG.md
  37. +2 −2 components/alertbanner/package.json
  38. +1 −1 components/alertbanner/themes/spectrum.css
  39. +78 −142 components/alertdialog/CHANGELOG.md
  40. +78 −308 components/asset/CHANGELOG.md
  41. +101 −291 components/assetcard/CHANGELOG.md
  42. +1 −1 components/assetcard/package.json
  43. +117 −479 components/assetlist/CHANGELOG.md
  44. +0 −8 components/assetlist/dist/metadata.json
  45. +2 −2 components/assetlist/package.json
  46. +102 −439 components/avatar/CHANGELOG.md
  47. +100 −486 components/badge/CHANGELOG.md
  48. +111 −497 components/breadcrumb/CHANGELOG.md
  49. +1 −1 components/breadcrumb/package.json
  50. +162 −567 components/button/CHANGELOG.md
  51. +14 −10 components/button/dist/metadata.json
  52. +1 −1 components/button/package.json
  53. +69 −65 components/button/themes/spectrum-two.css
  54. +4 −4 components/button/themes/spectrum.css
  55. +99 −494 components/buttongroup/CHANGELOG.md
  56. +1 −1 components/buttongroup/package.json
  57. +115 −475 components/calendar/CHANGELOG.md
  58. +1 −1 components/calendar/package.json
  59. +129 −527 components/card/CHANGELOG.md
  60. +2 −2 components/card/package.json
  61. +138 −543 components/checkbox/CHANGELOG.md
  62. +1 −2 components/checkbox/dist/metadata.json
  63. +2 −1 components/checkbox/index.css
  64. +1 −1 components/checkbox/package.json
  65. +3 −1 components/checkbox/stories/checkbox.stories.js
  66. +22 −0 components/checkbox/stories/checkbox.test.js
  67. +2 −0 components/checkbox/stories/template.js
  68. +1 −1 components/checkbox/themes/spectrum-two.css
  69. +1 −0 components/checkbox/themes/spectrum.css
  70. +92 −240 components/clearbutton/CHANGELOG.md
  71. +1 −5 components/clearbutton/dist/metadata.json
  72. +1 −1 components/clearbutton/package.json
  73. +108 −356 components/closebutton/CHANGELOG.md
  74. +67 −81 components/coachindicator/CHANGELOG.md
  75. +111 −444 components/coachmark/CHANGELOG.md
  76. +6 −6 components/coachmark/package.json
  77. +105 −422 components/colorarea/CHANGELOG.md
  78. +117 −450 components/colorhandle/CHANGELOG.md
  79. +111 −396 components/colorloupe/CHANGELOG.md
  80. +129 −471 components/colorslider/CHANGELOG.md
  81. +105 −426 components/colorwheel/CHANGELOG.md
  82. +126 −286 components/combobox/CHANGELOG.md
  83. +6 −1 components/combobox/dist/metadata.json
  84. +5 −5 components/combobox/index.css
  85. +5 −5 components/combobox/package.json
  86. +2 −0 components/combobox/themes/express.css
  87. +3 −0 components/combobox/themes/spectrum-two.css
  88. +4 −1 components/combobox/themes/spectrum.css
  89. +42 −150 components/commons/CHANGELOG.md
  90. +1 −1 components/commons/package.json
  91. +113 −269 components/contextualhelp/CHANGELOG.md
  92. +2 −1 components/contextualhelp/dist/metadata.json
  93. +2 −0 components/contextualhelp/index.css
  94. +3 −3 components/contextualhelp/package.json
  95. +52 −9 components/contextualhelp/stories/contextualhelp.stories.js
  96. +8 −0 components/contextualhelp/stories/contextualhelp.test.js
  97. +117 −303 components/datepicker/CHANGELOG.md
  98. +4 −4 components/datepicker/package.json
  99. +91 −320 components/dial/CHANGELOG.md
  100. +0 −4 components/dial/dist/metadata.json
  101. +1 −1 components/dial/package.json
  102. +125 −512 components/dialog/CHANGELOG.md
  103. +101 −530 components/divider/CHANGELOG.md
  104. +79 −330 components/dropindicator/CHANGELOG.md
  105. +101 −427 components/dropzone/CHANGELOG.md
  106. +1 −1 components/dropzone/package.json
  107. +100 −479 components/fieldgroup/CHANGELOG.md
  108. +1 −1 components/fieldgroup/package.json
  109. +110 −610 components/fieldlabel/CHANGELOG.md
  110. +92 −221 components/floatingactionbutton/CHANGELOG.md
  111. +26 −22 components/form/CHANGELOG.md
  112. +6 −6 components/form/stories/form.stories.js
  113. +95 −406 components/helptext/CHANGELOG.md
  114. +92 −397 components/icon/CHANGELOG.md
  115. +98 −429 components/illustratedmessage/CHANGELOG.md
  116. +122 −267 components/infieldbutton/CHANGELOG.md
  117. +0 −1 components/infieldbutton/dist/metadata.json
  118. +1 −1 components/infieldbutton/package.json
  119. +3 −3 components/infieldbutton/themes/spectrum-two.css
  120. +101 −503 components/inlinealert/CHANGELOG.md
  121. +1 −1 components/inlinealert/package.json
  122. +96 −429 components/link/CHANGELOG.md
  123. +89 −230 components/logicbutton/CHANGELOG.md
  124. +163 −501 components/menu/CHANGELOG.md
  125. +3 −5 components/menu/dist/metadata.json
  126. +9 −9 components/menu/index.css
  127. +2 −2 components/menu/package.json
  128. +26 −22 components/meter/CHANGELOG.md
  129. +100 −459 components/miller/CHANGELOG.md
  130. +2 −2 components/miller/package.json
  131. +95 −310 components/modal/CHANGELOG.md
  132. +74 −153 components/opacitycheckerboard/CHANGELOG.md
  133. +84 −317 components/page/CHANGELOG.md
  134. +106 −502 components/pagination/CHANGELOG.md
  135. +3 −3 components/pagination/package.json
  136. +172 −655 components/picker/CHANGELOG.md
  137. +2 −2 components/picker/dist/metadata.json
  138. +1 −1 components/picker/index.css
  139. +3 −3 components/picker/package.json
  140. +3 −3 components/picker/themes/spectrum-two.css
  141. +1 −0 components/picker/themes/spectrum.css
  142. +112 −359 components/pickerbutton/CHANGELOG.md
  143. +3 −3 components/pickerbutton/package.json
  144. +130 −540 components/popover/CHANGELOG.md
  145. +1 −0 components/popover/dist/metadata.json
  146. +18 −8 components/popover/index.css
  147. +2 −2 components/popover/package.json
  148. +121 −638 components/progressbar/CHANGELOG.md
  149. +98 −503 components/progresscircle/CHANGELOG.md
  150. +117 −550 components/radio/CHANGELOG.md
  151. +99 −402 components/rating/CHANGELOG.md
  152. +130 −490 components/search/CHANGELOG.md
  153. +5 −1 components/search/dist/metadata.json
  154. +0 −2 components/search/index.css
  155. +3 −3 components/search/package.json
  156. +7 −0 components/search/themes/spectrum-two.css
  157. +2 −0 components/search/themes/spectrum.css
  158. +96 −439 components/sidenav/CHANGELOG.md
  159. +153 −465 components/slider/CHANGELOG.md
  160. +1 −2 components/slider/dist/metadata.json
  161. +8 −0 components/slider/index.css
  162. +2 −2 components/slider/package.json
  163. +2 −2 components/slider/stories/template.js
  164. +87 −353 components/splitview/CHANGELOG.md
  165. +1 −0 components/splitview/package.json
  166. +106 −457 components/statuslight/CHANGELOG.md
  167. +101 −422 components/steplist/CHANGELOG.md
  168. +153 −603 components/stepper/CHANGELOG.md
  169. +2 −2 components/stepper/dist/metadata.json
  170. +1 −1 components/stepper/index.css
  171. +4 −4 components/stepper/package.json
  172. +4 −4 components/stepper/themes/spectrum-two.css
  173. +131 −343 components/swatch/CHANGELOG.md
  174. +3 −1 components/swatch/dist/metadata.json
  175. +2 −1 components/swatch/index.css
  176. +1 −1 components/swatch/package.json
  177. +21 −7 components/swatch/stories/template.js
  178. +0 −1 components/swatch/themes/spectrum-two.css
  179. +0 −1 components/swatch/themes/spectrum.css
  180. +93 −305 components/swatchgroup/CHANGELOG.md
  181. +1 −1 components/swatchgroup/package.json
  182. +104 −523 components/switch/CHANGELOG.md
  183. +145 −490 components/table/CHANGELOG.md
  184. +2 −2 components/table/package.json
  185. +115 −549 components/tabs/CHANGELOG.md
  186. +3 −3 components/tabs/package.json
  187. +113 −446 components/tag/CHANGELOG.md
  188. +1 −1 components/tag/package.json
  189. +105 −540 components/taggroup/CHANGELOG.md
  190. +145 −609 components/textfield/CHANGELOG.md
  191. +1 −1 components/textfield/package.json
  192. +1 −1 components/textfield/themes/spectrum-two.css
  193. +2 −0 components/textfield/themes/spectrum.css
  194. +117 −432 components/thumbnail/CHANGELOG.md
  195. +104 −491 components/toast/CHANGELOG.md
  196. +1 −1 components/toast/package.json
  197. +102 −460 components/tooltip/CHANGELOG.md
  198. +103 −460 components/tray/CHANGELOG.md
  199. +1 −1 components/tray/package.json
  200. +108 −474 components/treeview/CHANGELOG.md
  201. +212 −517 components/typography/CHANGELOG.md
  202. +1 −1 components/typography/stories/typography.mdx
  203. +87 −342 components/underlay/CHANGELOG.md
  204. +91 −346 components/well/CHANGELOG.md
  205. +10 −8 lint-staged.config.js
  206. +85 −59 nx.json
  207. +21 −17 package.json
  208. +6 −6 plugins/README.md
  209. +12 −2 plugins/postcss-add-theming-layer/CHANGELOG.md
  210. +13 −13 plugins/postcss-add-theming-layer/package.json
  211. +8 −15 plugins/postcss-property-rollup/CHANGELOG.md
  212. +11 −11 plugins/postcss-property-rollup/package.json
  213. +3 −1 plugins/postcss-rgb-mapping/CHANGELOG.md
  214. +1 −1 plugins/postcss-rgb-mapping/package.json
  215. +22 −27 plugins/stylelint-no-missing-var/CHANGELOG.md
  216. +2 −1 plugins/stylelint-no-missing-var/index.js
  217. +5 −5 plugins/stylelint-no-missing-var/package.json
  218. +28 −41 plugins/stylelint-no-unknown-custom-properties/CHANGELOG.md
  219. +3 −3 plugins/stylelint-no-unknown-custom-properties/package.json
  220. +35 −37 plugins/stylelint-no-unused-custom-properties/CHANGELOG.md
  221. +11 −11 plugins/stylelint-no-unused-custom-properties/README.md
  222. +3 −3 plugins/stylelint-no-unused-custom-properties/package.json
  223. +16 −4 plugins/stylelint-theme-alignment/CHANGELOG.md
  224. +24 −24 plugins/stylelint-theme-alignment/README.md
  225. +3 −3 plugins/stylelint-theme-alignment/package.json
  226. +5 −11 postcss.config.js
  227. +66 −57 schemas/metadata.schema.json
  228. +1 −5 stylelint.config.js
  229. +2,512 −2,726 tokens/CHANGELOG.md
  230. +1 −1 tokens/package.json
  231. +9 −1 tools/bundle/CHANGELOG.md
  232. +92 −89 tools/bundle/package.json
  233. +7 −2 tools/bundle/project.json
  234. +1 −6 tools/bundle/src/index.css
  235. +1 −1 tools/bundle/src/index.css.json
  236. +38 −113 tools/bundle/tasks/bundler.js
  237. +31 −98 tools/generator/CHANGELOG.md
  238. +8 −25 ui-icons/CHANGELOG.md
  239. +67 −28 yarn.config.cjs
  240. +1,354 −1,197 yarn.lock
9 changes: 7 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,11 @@
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"updateInternalDependencies": "minor",
"useCalculatedVersion": true,
"ignore": [],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true,
"updateInternalDependents": "out-of-range"
}
}
28 changes: 28 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -133,13 +133,41 @@
"pathPattern": "^repository$",
"order": ["type", "url", "directory"]
},
{
"pathPattern": "^spectrum$",
"order": { "type": "asc" }
},
{
"pathPattern": ".*",
"order": { "type": "asc" }
}
]
}
},
{
"files": ["tokens/dist/**/*.json"],
"rules": {
"jsonc/sort-keys": [
"warn",
{
"pathPattern": "^$",
"order": { "type": "asc" }
},
{
"pathPattern": ".*",
"order": [
"prop",
"ref",
"value",
"light",
"dark",
"medium",
"large"
]
}
]
}
},
{
"files": [
"components/*/stories/*.js",
77 changes: 35 additions & 42 deletions .github/actions/file-diff/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,83 +4,76 @@

### Minor Changes

- [`205182b`](https://github.com/adobe/spectrum-css/commit/205182bebcbe82813457aa098d8799b0a23423ee) Thanks [@castastrophe](https://github.com/castastrophe)! - New feature: report on minified and gzipped sizes for existing compiled outputs
📝 [`205182b`](https://github.com/adobe/spectrum-css/commit/205182bebcbe82813457aa098d8799b0a23423ee) Thanks [@castastrophe](https://github.com/castastrophe)!

- New feature: report on minified and gzipped sizes for existing compiled outputs

## 2.1.0

### Minor Changes

- [#3488](https://github.com/adobe/spectrum-css/pull/3488) [`40c1954`](https://github.com/adobe/spectrum-css/commit/40c1954048f735a07f9edfccf3a568d38164806a) Thanks [@castastrophe](https://github.com/castastrophe)! - Update file table to specify if the file is deleted/moved and indicate the file size has decreased without showing percentages. This update also hardens the way in which the main file is highlighted in the table by checking for exact equals for looking for files "ending with" the file name.
📝 [#3488](https://github.com/adobe/spectrum-css/pull/3488) [`40c1954`](https://github.com/adobe/spectrum-css/commit/40c1954048f735a07f9edfccf3a568d38164806a) Thanks [@castastrophe](https://github.com/castastrophe)!

- Update file table to specify if the file is deleted/moved and indicate the file size has decreased without showing percentages. This update also hardens the way in which the main file is highlighted in the table by checking for exact equals for looking for files "ending with" the file name.

## 2.0.6

### Patch Changes

- [#2775](https://github.com/adobe/spectrum-css/pull/2775) [`2452637`](https://github.com/adobe/spectrum-css/commit/2452637d1179b9b2b025dafeb5834720712413d7) Thanks [@castastrophe](https://github.com/castastrophe)! - Dependency minor and patch updates to support new features in tools leveraged
📝 [#2775](https://github.com/adobe/spectrum-css/pull/2775) [`2452637`](https://github.com/adobe/spectrum-css/commit/2452637d1179b9b2b025dafeb5834720712413d7) Thanks [@castastrophe](https://github.com/castastrophe)!

- Dependency minor and patch updates to support new features in tools leveraged

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 2.0.5

<a name="2.0.5"></a>
##2.0.5
🗓
2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.4...@spectrum-tools/gh-action-file-diff@2.0.5)
🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.4...@spectrum-tools/gh-action-file-diff@2.0.5)

**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff

<a name="2.0.4"></a>
##2.0.4
🗓
2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.3...@spectrum-tools/gh-action-file-diff@2.0.4)
## 2.0.4

🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.3...@spectrum-tools/gh-action-file-diff@2.0.4)

**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff

<a name="2.0.3"></a>
##2.0.3
🗓
2024-02-06
## 2.0.3

🗓 2024-02-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.2...@spectrum-tools/gh-action-file-diff@2.0.3)

**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff

<a name="2.0.2"></a>
##2.0.2
🗓
2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.1...@spectrum-tools/gh-action-file-diff@2.0.2)
## 2.0.2

🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.1...@spectrum-tools/gh-action-file-diff@2.0.2)

**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff

<a name="2.0.1"></a>
##2.0.1
🗓
2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.0...@spectrum-tools/gh-action-file-diff@2.0.1)
## 2.0.1

🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.0...@spectrum-tools/gh-action-file-diff@2.0.1)

**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff

<a name="2.0.0"></a>
#2.0.0
🗓
2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@1.0.2...@spectrum-tools/gh-action-file-diff@2.0.0)
## 2.0.0

🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@1.0.2...@spectrum-tools/gh-action-file-diff@2.0.0)

\*feat(icon,ui-icons)!: migrate the icon compiler to a distinct package (#2343)([d73d594](https://github.com/adobe/spectrum-css/commit/d73d594)), closes[#2343](https://github.com/adobe/spectrum-css/issues/2343)
- feat(icon,ui-icons)!: migrate the icon compiler to a distinct package (#2343)([d73d594](https://github.com/adobe/spectrum-css/commit/d73d594)), closes[#2343](https://github.com/adobe/spectrum-css/issues/2343)

###
🛑 BREAKING CHANGES
### 🛑 BREAKING CHANGE

*
- @spectrum-css/icon will no longer contain SVG assets; it will be a purely CSS package with all SVG assets migrated to the new @spectrum-css/ui-icons package.
- @spectrum-css/icon will no longer contain SVG assets; it will be a purely CSS package with all SVG assets migrated to the new @spectrum-css/ui-icons package.

- NEW: @spectrum-css/ui-icons package for all SVG icons in the UI set.

<a name="1.0.2"></a>
##1.0.2
🗓
2023-11-15
## 1.0.2

🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@1.0.1...@spectrum-tools/gh-action-file-diff@1.0.2)

**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff

<a name="1.0.1"></a>
##1.0.1
🗓
2023-11-13
## 1.0.1

🗓 2023-11-13

**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff
15 changes: 14 additions & 1 deletion .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -85,6 +85,8 @@ jobs:
styles_modified_files: ${{ steps.changed-files.outputs.styles_modified_files }}
eslint_added_files: ${{ steps.changed-files.outputs.eslint_added_files }}
eslint_modified_files: ${{ steps.changed-files.outputs.eslint_modified_files }}
mdlint_added_files: ${{ steps.changed-files.outputs.mdlint_added_files }}
mdlint_modified_files: ${{ steps.changed-files.outputs.mdlint_modified_files }}
plugins_modified_files: ${{ steps.changed-files.outputs.plugins_modified_files }}
plugins_added_files: ${{ steps.changed-files.outputs.plugins_added_files }}
permissions:
@@ -93,7 +95,7 @@ jobs:
steps:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
uses: step-security/changed-files@v45
with:
files_yaml: |
styles:
@@ -102,6 +104,17 @@ jobs:
- components/*/themes/express.css
eslint:
- components/*/stories/*.js
mdlint:
- '*.md'
- .storybook/*.md
- .storybook/*/*.md
- .storybook/*/*.mdx
- components/*/*.md
- components/*/stories/*.mdx
- plugins/*/*.md
- tokens/*.md
- tools/*/*.md
- ui-icons/*.md
plugins:
- plugins/**/*
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -18,6 +18,12 @@ on:
eslint_modified_files:
type: string
required: false
mdlint_added_files:
type: string
required: false
mdlint_modified_files:
type: string
required: false
workflow_call:
inputs:
styles_added_files:
@@ -32,6 +38,12 @@ on:
eslint_modified_files:
type: string
required: false
mdlint_added_files:
type: string
required: false
mdlint_modified_files:
type: string
required: false

permissions:
contents: read
@@ -104,3 +116,11 @@ jobs:
filter_mode: diff_context
# eslint_flags: "components/*/stories/*.js"
eslint_flags: "${{ inputs.eslint_added_files }} ${{ inputs.eslint_modified_files }}"

- name: Run markdownlint on documentation
uses: reviewdog/action-markdownlint@v0.26.0
with:
reporter: github-pr-review
filter_mode: diff_context
fail_level: error
markdownlint_flags: "--config ${{ github.workspace }}/.markdownlint.json ${{ inputs.mdlint_added_files }} ${{ inputs.mdlint_modified_files }}"
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -23,16 +23,18 @@ jobs:
cache: yarn

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
title: "chore: release"
commit: "chore: release"
# This expects you to have a script called release / version:packages
# which does a build for your packages and calls changeset publish
publish: yarn release
version: yarn version:packages

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dist
!dist/metadata.json
# Ignore dist directories except metadata.json
**/dist/*
!components/*/dist/metadata.json
!tokens/dist/json/*

# Not committing the map assets, these are dev-only
24 changes: 24 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"extends": "markdownlint/style/prettier",
"first-line-h1": false,
"no-inline-html": false,
"no-bare-urls": false,
"no-duplicate-heading": {
"siblings_only": true
},
"code-block-style": {
"style": "fenced"
},
"code-fence-style": {
"style": "backtick"
},
"emphasis-style": {
"style": "underscore"
},
"strong-style": {
"style": "asterisk"
},
"ul-style": {
"style": "dash"
}
}
Loading