@primer/react 0.0.0-20260722182602 → 0.0.0-20260722200148

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +9 -9
  2. package/dist/ActionBar/ActionBar.js +0 -4
  3. package/dist/ActionBar/index.d.ts +1 -4
  4. package/dist/ActionList/Description.js +0 -1
  5. package/dist/ActionList/Divider.js +0 -1
  6. package/dist/ActionList/TrailingAction.js +0 -1
  7. package/dist/Banner/Banner.js +2 -2
  8. package/dist/Blankslate/Blankslate.d.ts +0 -15
  9. package/dist/Blankslate/Blankslate.js +0 -5
  10. package/dist/DataTable/ErrorDialog.d.ts +0 -3
  11. package/dist/DataTable/ErrorDialog.js +0 -1
  12. package/dist/DataTable/Pagination.d.ts +0 -3
  13. package/dist/DataTable/Pagination.js +0 -1
  14. package/dist/DataTable/Table.d.ts +0 -33
  15. package/dist/DataTable/Table.js +0 -12
  16. package/dist/Details/Details.js +1 -1
  17. package/dist/FilteredActionList/FilteredActionListInput.d.ts +0 -3
  18. package/dist/FilteredActionList/FilteredActionListInput.js +0 -1
  19. package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +0 -3
  20. package/dist/FilteredActionList/FilteredActionListLoaders.js +0 -1
  21. package/dist/FormControl/FormControlCaption.d.ts +0 -1
  22. package/dist/FormControl/FormControlCaption.js +0 -1
  23. package/dist/FormControl/FormControlLabel.js +0 -1
  24. package/dist/FormControl/FormControlLeadingVisual.js +0 -1
  25. package/dist/PageHeader/PageHeader.js +2 -2
  26. package/dist/PageLayout/PageLayout.js +2 -2
  27. package/dist/SegmentedControl/SegmentedControlButton.js +0 -1
  28. package/dist/SegmentedControl/SegmentedControlIconButton.js +0 -1
  29. package/dist/SelectPanel/SelectPanel.d.ts +0 -3
  30. package/dist/SelectPanel/SelectPanel.js +0 -1
  31. package/dist/SelectPanel/SelectPanelMessage.js +0 -1
  32. package/dist/Stack/Stack.js +0 -1
  33. package/dist/ThemeProvider.d.ts +1 -4
  34. package/dist/ThemeProvider.js +43 -76
  35. package/dist/Timeline/Timeline.js +3 -3
  36. package/dist/TooltipV2/Tooltip.js +0 -1
  37. package/dist/TopicTag/TopicTagGroup.d.ts +0 -3
  38. package/dist/TopicTag/TopicTagGroup.js +0 -1
  39. package/dist/index.d.ts +2 -2
  40. package/dist/theme.d.ts +1 -1142
  41. package/dist/theme.js +1 -3
  42. package/dist/useTheme.d.ts +1 -3
  43. package/generated/hooks.json +0 -15
  44. package/package.json +1 -4
  45. package/dist/legacy-theme/ts/color-schemes.js +0 -4252
  46. package/dist/utils/types/KeyPaths.d.ts +0 -4
package/dist/theme.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { fontStack } from "./utils/theme.js";
2
- import { colorSchemes } from "./legacy-theme/ts/color-schemes.js";
3
2
  //#region src/theme.ts
4
3
  const theme = {
5
4
  animation: { easeOutCubic: "cubic-bezier(0.33, 1, 0.68, 1)" },
@@ -79,8 +78,7 @@ const theme = {
79
78
  "96px",
80
79
  "112px",
81
80
  "128px"
82
- ],
83
- colorSchemes
81
+ ]
84
82
  };
85
83
  //#endregion
86
84
  export { theme as default };
@@ -1,13 +1,11 @@
1
- import { ColorMode, ColorModeWithAuto, Theme } from "./ThemeProvider.js";
1
+ import { ColorMode, ColorModeWithAuto } from "./ThemeProvider.js";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/useTheme.d.ts
5
5
  declare function useTheme(): {
6
- theme?: Theme;
7
6
  colorScheme?: string;
8
7
  colorMode?: ColorModeWithAuto;
9
8
  resolvedColorMode?: ColorMode;
10
- resolvedColorScheme?: string;
11
9
  dayScheme?: string;
12
10
  nightScheme?: string;
13
11
  setColorMode: React.Dispatch<React.SetStateAction<ColorModeWithAuto>>;
@@ -960,11 +960,6 @@
960
960
  {
961
961
  "name": "ThemeProviderProps",
962
962
  "properties": [
963
- {
964
- "name": "theme",
965
- "type": "{[key: string]: any}",
966
- "description": "The theme object to be applied."
967
- },
968
963
  {
969
964
  "name": "colorMode",
970
965
  "type": "'auto' | 'day' | 'night' | 'light' | 'dark'",
@@ -990,11 +985,6 @@
990
985
  {
991
986
  "name": "ThemeData",
992
987
  "properties": [
993
- {
994
- "name": "theme",
995
- "type": "Theme",
996
- "description": "The theme object that is applied."
997
- },
998
988
  {
999
989
  "name": "colorScheme",
1000
990
  "type": "string",
@@ -1005,11 +995,6 @@
1005
995
  "type": "'auto' | 'day' | 'night' | 'light' | 'dark'",
1006
996
  "description": "The color mode (for example: \"day\", \"night\") that is applied. If the color mode is \"auto\", the color mode is determined by the user's system preference."
1007
997
  },
1008
- {
1009
- "name": "resolvedColorScheme",
1010
- "type": "string",
1011
- "description": "The name of the current color scheme."
1012
- },
1013
998
  {
1014
999
  "name": "resolvedColorMode",
1015
1000
  "type": "'day' | 'night' | 'light' | 'dark'",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "0.0.0-20260722182602",
4
+ "version": "0.0.0-20260722200148",
5
5
  "description": "An implementation of GitHub's Primer Design System using React",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -45,7 +45,6 @@
45
45
  "build:docs:preview": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs preview",
46
46
  "build:components.json": "tsx script/components-json/build.ts",
47
47
  "build:hooks.json": "tsx script/hooks-json/build.ts",
48
- "build:precompile-color-schemes": "tsx script/precompile-color-schemes.ts",
49
48
  "lint:npm": "publint --types",
50
49
  "lint:react-compiler": "node script/lint-react-compiler.ts",
51
50
  "storybook": "storybook",
@@ -64,7 +63,6 @@
64
63
  ],
65
64
  "files": [
66
65
  "dist",
67
- "!dist/legacy-theme/ts/colors",
68
66
  "generated",
69
67
  "CHANGELOG.md"
70
68
  ],
@@ -86,7 +84,6 @@
86
84
  "@tanstack/react-virtual": "^3.13.18",
87
85
  "clsx": "^2.1.1",
88
86
  "color2k": "^2.0.3",
89
- "deepmerge": "^4.3.1",
90
87
  "focus-visible": "^5.2.1",
91
88
  "history": "^5.0.0",
92
89
  "hsluv": "1.0.1",