@primer/components 30.0.0-rc.acaaeccd → 30.0.0-rc.c3d31245

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/package.json CHANGED
@@ -5,7 +5,8 @@
5
5
  "scripts": {
6
6
  "clean": "gatsby clean",
7
7
  "develop": "gatsby develop",
8
- "build": "pushd .. && npm install && popd && cross-env NODE_ENV=production gatsby build --prefix-paths"
8
+ "build": "pushd .. && npm install && popd && cross-env NODE_ENV=production gatsby build --prefix-paths && npm run build:storybook",
9
+ "build:storybook": "cd .. && ./script/build-storybook"
9
10
  },
10
11
  "engines": {
11
12
  "node": ">= 10.x"
@@ -90,7 +90,7 @@ const getItemVariant = (variant = 'default', disabled) => {
90
90
 
91
91
  default:
92
92
  return {
93
- color: 'inherit',
93
+ color: (0, _constants.get)('colors.fg.default'),
94
94
  iconColor: (0, _constants.get)('colors.fg.muted'),
95
95
  annotationColor: (0, _constants.get)('colors.fg.muted'),
96
96
  hoverCursor: 'pointer'
@@ -66,7 +66,7 @@ const getItemVariant = (variant = 'default', disabled) => {
66
66
 
67
67
  default:
68
68
  return {
69
- color: 'inherit',
69
+ color: get('colors.fg.default'),
70
70
  iconColor: get('colors.fg.muted'),
71
71
  annotationColor: get('colors.fg.muted'),
72
72
  hoverCursor: 'pointer'
package/package-lock.json CHANGED
@@ -9331,9 +9331,9 @@
9331
9331
  }
9332
9332
  },
9333
9333
  "@types/jest-axe": {
9334
- "version": "3.5.1",
9335
- "resolved": "https://registry.npmjs.org/@types/jest-axe/-/jest-axe-3.5.1.tgz",
9336
- "integrity": "sha512-yelGgELc6iJEPShJ3/XEu6uUr5rCGi/Md0QzMuoo53y0WpR2lyFM3mjdpo8Q+PPd3onHOpIw6BBzEAIU65ZFSA==",
9334
+ "version": "3.5.3",
9335
+ "resolved": "https://registry.npmjs.org/@types/jest-axe/-/jest-axe-3.5.3.tgz",
9336
+ "integrity": "sha512-ad9qI9f+00N8IlOuGh6dnZ6o0BDdV9VhGfTUr1zCejsPvOfZd6eohffe4JYxUoUuRYEftyMcaJ6Ux4+MsOpGHg==",
9337
9337
  "dev": true,
9338
9338
  "requires": {
9339
9339
  "@types/jest": "*",
@@ -9705,25 +9705,79 @@
9705
9705
  }
9706
9706
  },
9707
9707
  "@typescript-eslint/eslint-plugin": {
9708
- "version": "4.26.1",
9709
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.26.1.tgz",
9710
- "integrity": "sha512-aoIusj/8CR+xDWmZxARivZjbMBQTT9dImUtdZ8tVCVRXgBUuuZyM5Of5A9D9arQPxbi/0rlJLcuArclz/rCMJw==",
9708
+ "version": "4.31.2",
9709
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.31.2.tgz",
9710
+ "integrity": "sha512-w63SCQ4bIwWN/+3FxzpnWrDjQRXVEGiTt9tJTRptRXeFvdZc/wLiz3FQUwNQ2CVoRGI6KUWMNUj/pk63noUfcA==",
9711
9711
  "dev": true,
9712
9712
  "requires": {
9713
- "@typescript-eslint/experimental-utils": "4.26.1",
9714
- "@typescript-eslint/scope-manager": "4.26.1",
9713
+ "@typescript-eslint/experimental-utils": "4.31.2",
9714
+ "@typescript-eslint/scope-manager": "4.31.2",
9715
9715
  "debug": "^4.3.1",
9716
9716
  "functional-red-black-tree": "^1.0.1",
9717
- "lodash": "^4.17.21",
9718
9717
  "regexpp": "^3.1.0",
9719
9718
  "semver": "^7.3.5",
9720
9719
  "tsutils": "^3.21.0"
9721
9720
  },
9722
9721
  "dependencies": {
9722
+ "@typescript-eslint/experimental-utils": {
9723
+ "version": "4.31.2",
9724
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.31.2.tgz",
9725
+ "integrity": "sha512-3tm2T4nyA970yQ6R3JZV9l0yilE2FedYg8dcXrTar34zC9r6JB7WyBQbpIVongKPlhEMjhQ01qkwrzWy38Bk1Q==",
9726
+ "dev": true,
9727
+ "requires": {
9728
+ "@types/json-schema": "^7.0.7",
9729
+ "@typescript-eslint/scope-manager": "4.31.2",
9730
+ "@typescript-eslint/types": "4.31.2",
9731
+ "@typescript-eslint/typescript-estree": "4.31.2",
9732
+ "eslint-scope": "^5.1.1",
9733
+ "eslint-utils": "^3.0.0"
9734
+ }
9735
+ },
9736
+ "@typescript-eslint/scope-manager": {
9737
+ "version": "4.31.2",
9738
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.31.2.tgz",
9739
+ "integrity": "sha512-2JGwudpFoR/3Czq6mPpE8zBPYdHWFGL6lUNIGolbKQeSNv4EAiHaR5GVDQaLA0FwgcdcMtRk+SBJbFGL7+La5w==",
9740
+ "dev": true,
9741
+ "requires": {
9742
+ "@typescript-eslint/types": "4.31.2",
9743
+ "@typescript-eslint/visitor-keys": "4.31.2"
9744
+ }
9745
+ },
9746
+ "@typescript-eslint/types": {
9747
+ "version": "4.31.2",
9748
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.31.2.tgz",
9749
+ "integrity": "sha512-kWiTTBCTKEdBGrZKwFvOlGNcAsKGJSBc8xLvSjSppFO88AqGxGNYtF36EuEYG6XZ9vT0xX8RNiHbQUKglbSi1w==",
9750
+ "dev": true
9751
+ },
9752
+ "@typescript-eslint/typescript-estree": {
9753
+ "version": "4.31.2",
9754
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.31.2.tgz",
9755
+ "integrity": "sha512-ieBq8U9at6PvaC7/Z6oe8D3czeW5d//Fo1xkF/s9394VR0bg/UaMYPdARiWyKX+lLEjY3w/FNZJxitMsiWv+wA==",
9756
+ "dev": true,
9757
+ "requires": {
9758
+ "@typescript-eslint/types": "4.31.2",
9759
+ "@typescript-eslint/visitor-keys": "4.31.2",
9760
+ "debug": "^4.3.1",
9761
+ "globby": "^11.0.3",
9762
+ "is-glob": "^4.0.1",
9763
+ "semver": "^7.3.5",
9764
+ "tsutils": "^3.21.0"
9765
+ }
9766
+ },
9767
+ "@typescript-eslint/visitor-keys": {
9768
+ "version": "4.31.2",
9769
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.31.2.tgz",
9770
+ "integrity": "sha512-PrBId7EQq2Nibns7dd/ch6S6/M4/iwLM9McbgeEbCXfxdwRUNxJ4UNreJ6Gh3fI2GNKNrWnQxKL7oCPmngKBug==",
9771
+ "dev": true,
9772
+ "requires": {
9773
+ "@typescript-eslint/types": "4.31.2",
9774
+ "eslint-visitor-keys": "^2.0.0"
9775
+ }
9776
+ },
9723
9777
  "debug": {
9724
- "version": "4.3.1",
9725
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz",
9726
- "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==",
9778
+ "version": "4.3.2",
9779
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
9780
+ "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
9727
9781
  "dev": true,
9728
9782
  "requires": {
9729
9783
  "ms": "2.1.2"
@@ -10552,9 +10606,9 @@
10552
10606
  }
10553
10607
  },
10554
10608
  "axe-core": {
10555
- "version": "3.5.5",
10556
- "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-3.5.5.tgz",
10557
- "integrity": "sha512-5P0QZ6J5xGikH780pghEdbEKijCTrruK9KxtPZCFWUpef0f6GipO+xEZ5GKCb020mmqgbiNO6TcA55CriL784Q==",
10609
+ "version": "3.5.6",
10610
+ "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-3.5.6.tgz",
10611
+ "integrity": "sha512-LEUDjgmdJoA3LqklSTwKYqkjcZ4HKc4ddIYGSAiSkr46NTjzg2L9RNB+lekO9P7Dlpa87+hBtzc2Fzn/+GUWMQ==",
10558
10612
  "dev": true
10559
10613
  },
10560
10614
  "axobject-query": {
@@ -12537,9 +12591,9 @@
12537
12591
  }
12538
12592
  },
12539
12593
  "concurrently": {
12540
- "version": "6.2.0",
12541
- "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-6.2.0.tgz",
12542
- "integrity": "sha512-v9I4Y3wFoXCSY2L73yYgwA9ESrQMpRn80jMcqMgHx720Hecz2GZAvTI6bREVST6lkddNypDKRN22qhK0X8Y00g==",
12594
+ "version": "6.2.1",
12595
+ "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-6.2.1.tgz",
12596
+ "integrity": "sha512-emgwhH+ezkuYKSHZQ+AkgEpoUZZlbpPVYCVv7YZx0r+T7fny1H03r2nYRebpi2DudHR4n1Rgbo2YTxKOxVJ4+g==",
12543
12597
  "dev": true,
12544
12598
  "requires": {
12545
12599
  "chalk": "^4.1.0",
@@ -12554,9 +12608,9 @@
12554
12608
  },
12555
12609
  "dependencies": {
12556
12610
  "ansi-regex": {
12557
- "version": "5.0.0",
12558
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
12559
- "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
12611
+ "version": "5.0.1",
12612
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
12613
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
12560
12614
  "dev": true
12561
12615
  },
12562
12616
  "ansi-styles": {
@@ -12569,9 +12623,9 @@
12569
12623
  }
12570
12624
  },
12571
12625
  "chalk": {
12572
- "version": "4.1.1",
12573
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz",
12574
- "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==",
12626
+ "version": "4.1.2",
12627
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
12628
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
12575
12629
  "dev": true,
12576
12630
  "requires": {
12577
12631
  "ansi-styles": "^4.1.0",
@@ -12628,23 +12682,23 @@
12628
12682
  "dev": true
12629
12683
  },
12630
12684
  "string-width": {
12631
- "version": "4.2.2",
12632
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz",
12633
- "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==",
12685
+ "version": "4.2.3",
12686
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
12687
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
12634
12688
  "dev": true,
12635
12689
  "requires": {
12636
12690
  "emoji-regex": "^8.0.0",
12637
12691
  "is-fullwidth-code-point": "^3.0.0",
12638
- "strip-ansi": "^6.0.0"
12692
+ "strip-ansi": "^6.0.1"
12639
12693
  }
12640
12694
  },
12641
12695
  "strip-ansi": {
12642
- "version": "6.0.0",
12643
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
12644
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
12696
+ "version": "6.0.1",
12697
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
12698
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
12645
12699
  "dev": true,
12646
12700
  "requires": {
12647
- "ansi-regex": "^5.0.0"
12701
+ "ansi-regex": "^5.0.1"
12648
12702
  }
12649
12703
  },
12650
12704
  "supports-color": {
@@ -12689,9 +12743,9 @@
12689
12743
  }
12690
12744
  },
12691
12745
  "yargs-parser": {
12692
- "version": "20.2.7",
12693
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz",
12694
- "integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==",
12746
+ "version": "20.2.9",
12747
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
12748
+ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
12695
12749
  "dev": true
12696
12750
  }
12697
12751
  }
@@ -13543,9 +13597,9 @@
13543
13597
  "dev": true
13544
13598
  },
13545
13599
  "date-fns": {
13546
- "version": "2.22.1",
13547
- "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.22.1.tgz",
13548
- "integrity": "sha512-yUFPQjrxEmIsMqlHhAhmxkuH769baF21Kk+nZwZGyrMoyLA+LugaQtC0+Tqf9CBUUULWwUJt6Q5ySI3LJDDCGg==",
13600
+ "version": "2.24.0",
13601
+ "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.24.0.tgz",
13602
+ "integrity": "sha512-6ujwvwgPID6zbI0o7UbURi2vlLDR9uP26+tW6Lg+Ji3w7dd0i3DOcjcClLjLPranT60SSEFBwdSyYwn/ZkPIuw==",
13549
13603
  "dev": true
13550
13604
  },
13551
13605
  "debug": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "30.0.0-rc.acaaeccd",
3
+ "version": "30.0.0-rc.c3d31245",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -86,10 +86,10 @@
86
86
  "@types/chroma-js": "2.1.3",
87
87
  "@types/enzyme": "3.10.9",
88
88
  "@types/jest": "26.0.23",
89
- "@types/jest-axe": "3.5.1",
89
+ "@types/jest-axe": "3.5.3",
90
90
  "@types/lodash.isempty": "4.4.6",
91
91
  "@types/lodash.isobject": "3.0.6",
92
- "@typescript-eslint/eslint-plugin": "4.26.1",
92
+ "@typescript-eslint/eslint-plugin": "4.31.2",
93
93
  "@typescript-eslint/parser": "4.26.1",
94
94
  "@wojtekmaj/enzyme-adapter-react-17": "0.6.3",
95
95
  "babel-core": "7.0.0-bridge.0",
@@ -101,7 +101,7 @@
101
101
  "babel-plugin-transform-replace-expressions": "0.2.0",
102
102
  "babel-polyfill": "6.26.0",
103
103
  "chroma-js": "2.1.2",
104
- "concurrently": "6.2.0",
104
+ "concurrently": "6.2.1",
105
105
  "copyfiles": "2.4.1",
106
106
  "cross-env": "7.0.3",
107
107
  "enzyme": "3.11.0",
@@ -0,0 +1,10 @@
1
+ #!/bin/bash
2
+
3
+ # Add base url to be able to serve static files
4
+ echo '<base href="/react/storybook/" />' >> .storybook/manager-head.html
5
+
6
+ # Build storybook inside docs
7
+ ./node_modules/.bin/build-storybook -o docs/public/storybook -s docs/public/static
8
+
9
+ # Remove manager-head after build to not interfere with dev builds
10
+ rm .storybook/manager-head.html
@@ -146,7 +146,7 @@ const getItemVariant = (variant = 'default', disabled?: boolean) => {
146
146
  }
147
147
  default:
148
148
  return {
149
- color: 'inherit',
149
+ color: get('colors.fg.default'),
150
150
  iconColor: get('colors.fg.muted'),
151
151
  annotationColor: get('colors.fg.muted'),
152
152
  hoverCursor: 'pointer'