@primer/react 37.32.0-rc.f3d34bc50 → 37.32.0-rc.f8e94f384

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.
@@ -6175,7 +6175,7 @@
6175
6175
  },
6176
6176
  {
6177
6177
  "id": "components-segmentedcontrol-features--associated-with-a-label-and-caption",
6178
- "code": "() => (\n <div className={classes.LabelAndCaptionContainer}>\n <div className={classes.LabelAndCaption}>\n <Text fontSize={2} fontWeight=\"bold\" id=\"scLabel-vert\" display=\"block\">\n File view\n </Text>\n <Text color=\"fg.subtle\" fontSize={1} id=\"scCaption-vert\" display=\"block\">\n Change the way the file is viewed\n </Text>\n </div>\n <SegmentedControl\n aria-labelledby=\"scLabel-vert\"\n aria-describedby=\"scCaption-vert\"\n >\n <SegmentedControl.Button defaultSelected>Preview</SegmentedControl.Button>\n <SegmentedControl.Button>Raw</SegmentedControl.Button>\n <SegmentedControl.Button>Blame</SegmentedControl.Button>\n </SegmentedControl>\n </div>\n)"
6178
+ "code": "() => (\n <Box\n display=\"flex\"\n sx={(theme) => ({\n flexDirection: 'column',\n gap: theme.space[1],\n [`@media screen and (min-width: ${theme.breakpoints[1]})`]: {\n flexDirection: 'row',\n },\n })}\n >\n <Box flexGrow={1}>\n <Text fontSize={2} fontWeight=\"bold\" id=\"scLabel-vert\" display=\"block\">\n File view\n </Text>\n <Text color=\"fg.subtle\" fontSize={1} id=\"scCaption-vert\" display=\"block\">\n Change the way the file is viewed\n </Text>\n </Box>\n <SegmentedControl\n aria-labelledby=\"scLabel-vert\"\n aria-describedby=\"scCaption-vert\"\n >\n <SegmentedControl.Button defaultSelected>Preview</SegmentedControl.Button>\n <SegmentedControl.Button>Raw</SegmentedControl.Button>\n <SegmentedControl.Button>Blame</SegmentedControl.Button>\n </SegmentedControl>\n </Box>\n)"
6179
6179
  }
6180
6180
  ],
6181
6181
  "importPath": "@primer/react",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/react",
3
- "version": "37.32.0-rc.f3d34bc50",
3
+ "version": "37.32.0-rc.f8e94f384",
4
4
  "description": "An implementation of GitHub's Primer Design System using React",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -147,6 +147,7 @@
147
147
  "@types/react-dom": "18.3.1",
148
148
  "@types/react-is": "18.3.1",
149
149
  "@types/react-test-renderer": "18.3.1",
150
+ "@types/semver": "7.7.0",
150
151
  "@types/styled-components": "^5.1.26",
151
152
  "@vitejs/plugin-react": "^4.3.3",
152
153
  "afterframe": "^1.0.2",
@@ -191,6 +192,7 @@
191
192
  "rollup-plugin-import-css": "^0.0.0",
192
193
  "rollup-plugin-postcss": "4.0.2",
193
194
  "rollup-plugin-visualizer": "6.0.3",
195
+ "semver": "7.7.1",
194
196
  "storybook": "^9.1.0",
195
197
  "styled-components": "5.3.11",
196
198
  "terser": "5.36.0",