@primer/styled-react 0.0.0-20251012190601 → 0.0.0-20251012224822
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/dist/components/Avatar.js +2 -1
- package/dist/components/Box/Box.d.ts +19 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/Box.features.stories.d.ts +9 -0
- package/dist/components/Box/Box.features.stories.d.ts.map +1 -0
- package/dist/components/Box/Box.js +15 -0
- package/dist/components/Box/Box.stories.d.ts +7 -0
- package/dist/components/Box/Box.stories.d.ts.map +1 -0
- package/dist/components/Box/index.d.ts +3 -0
- package/dist/components/Box/index.d.ts.map +1 -0
- package/dist/components/Checkbox.js +2 -1
- package/dist/components/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.js +2 -1
- package/dist/components/CounterLabel.js +2 -1
- package/dist/components/Dialog.js +2 -1
- package/dist/components/Header.js +2 -1
- package/dist/components/NavList.d.ts.map +1 -1
- package/dist/components/NavList.js +2 -1
- package/dist/components/PageHeader.js +2 -1
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.js +2 -1
- package/dist/components/RelativeTime.d.ts.map +1 -1
- package/dist/components/RelativeTime.js +2 -1
- package/dist/components/SegmentedControl.js +2 -1
- package/dist/components/StateLabel.js +2 -1
- package/dist/components/SubNav.js +2 -1
- package/dist/components/Timeline.js +2 -1
- package/dist/components/ToggleSwitch.js +2 -1
- package/dist/components/Tooltip.js +2 -1
- package/dist/components/UnderlineNav.js +2 -1
- package/dist/components/deprecated/ActionList.js +2 -1
- package/dist/components/deprecated/DialogV1.js +1 -1
- package/dist/index.js +2 -1
- package/dist/utils/ComponentProps.d.ts +9 -0
- package/dist/utils/ComponentProps.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/components/Box.d.ts +0 -2
- package/dist/components/Box.d.ts.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Avatar as Avatar$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from './Box/Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const Avatar = /*#__PURE__*/forwardRef(function Avatar(props, ref) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system';
|
|
2
|
+
import { type SxProp } from '../../sx';
|
|
3
|
+
import type { ComponentProps } from '../../utils/ComponentProps';
|
|
4
|
+
type StyledBoxProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated The Box component is deprecated. Replace with a `div` or
|
|
7
|
+
* appropriate HTML element instead, with CSS modules for styling.
|
|
8
|
+
* @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
|
|
9
|
+
*/
|
|
10
|
+
declare const Box: import("styled-components").StyledComponent<"div", any, StyledBoxProps, never>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated The Box component is deprecated. Replace with a `div` or
|
|
13
|
+
* appropriate HTML element instead, with CSS modules for styling.
|
|
14
|
+
* @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
|
|
15
|
+
*/
|
|
16
|
+
export type BoxProps = ComponentProps<typeof Box>;
|
|
17
|
+
export { Box };
|
|
18
|
+
export default Box;
|
|
19
|
+
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EAChB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAA;AAE9D,KAAK,cAAc,GAAG,MAAM,GAC1B,UAAU,GACV,UAAU,GACV,eAAe,GACf,WAAW,GACX,YAAY,GACZ,SAAS,GACT,eAAe,GACf,WAAW,GACX,aAAa,GACb,WAAW,CAAA;AAEb;;;;GAIG;AACH,QAAA,MAAM,GAAG,gFAYR,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,CAAA;AACjD,OAAO,EAAC,GAAG,EAAC,CAAA;AACZ,eAAe,GAAG,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
import Box from './Box';
|
|
3
|
+
declare const _default: Meta<typeof Box>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Border: () => import("react").JSX.Element;
|
|
6
|
+
export declare const BorderBottom: () => import("react").JSX.Element;
|
|
7
|
+
export declare const Flexbox: () => import("react").JSX.Element;
|
|
8
|
+
export declare const Grid: () => import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Box.features.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.features.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Box/Box.features.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAA;AAC/C,OAAO,GAAG,MAAM,OAAO,CAAA;wBAKlB,IAAI,CAAC,OAAO,GAAG,CAAC;AAHrB,wBAGqB;AAErB,eAAO,MAAM,MAAM,mCAElB,CAAA;AAED,eAAO,MAAM,YAAY,mCAIxB,CAAA;AAED,eAAO,MAAM,OAAO,mCAMnB,CAAA;AAED,eAAO,MAAM,IAAI,mCAMhB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { space, color, typography, layout, flexbox, grid, background, border, position, shadow } from 'styled-system';
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated The Box component is deprecated. Replace with a `div` or
|
|
7
|
+
* appropriate HTML element instead, with CSS modules for styling.
|
|
8
|
+
* @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
|
|
9
|
+
*/
|
|
10
|
+
const Box = styled.div.withConfig({
|
|
11
|
+
displayName: "Box",
|
|
12
|
+
componentId: "sc-188p3dv-0"
|
|
13
|
+
})(space, color, typography, layout, flexbox, grid, background, border, position, shadow, sx);
|
|
14
|
+
|
|
15
|
+
export { Box, Box as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react-vite';
|
|
2
|
+
import Box from './Box';
|
|
3
|
+
declare const _default: Meta<typeof Box>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: () => import("react").JSX.Element;
|
|
6
|
+
export declare const Playground: StoryFn<typeof Box>;
|
|
7
|
+
//# sourceMappingURL=Box.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Box/Box.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,uBAAuB,CAAA;AACxD,OAAO,GAAG,MAAM,OAAO,CAAA;wBAKlB,IAAI,CAAC,OAAO,GAAG,CAAC;AAHrB,wBAGqB;AAErB,eAAO,MAAM,OAAO,mCAA+B,CAAA;AAEnD,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,OAAO,GAAG,CAA2C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,GAAG,EAAC,MAAM,OAAO,CAAA;AAClC,YAAY,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../src/components/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../src/components/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,kBAAkB,IAAI,wBAAwB,EAAC,MAAM,eAAe,CAAA;AACvH,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,wBAAwB,CAAC,GAAG,MAAM,CAAA;AAOrF,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,aAAa;YAlCQ,kBAAkB;;;;gBAWV,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CheckboxGroup as CheckboxGroup$1
|
|
1
|
+
import { CheckboxGroup as CheckboxGroup$1 } from '@primer/react';
|
|
2
2
|
import 'react';
|
|
3
|
+
import { Box } from './Box/Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const CheckboxGroupImpl = props => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Header as Header$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from './Box/Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,
|
|
1
|
+
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EACV,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,EAE1C,wBAAwB,IAAI,8BAA8B,EAC1D,yBAAyB,IAAI,+BAA+B,EAC7D,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACxD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,KAAK,YAAY,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;AAEzG,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAA;AAQlE,QAAA,MAAM,WAAW;;8DAGf,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;0DAGhB,CAAA;AAEF,KAAK,wBAAwB,GAAG,iBAAiB,CAAC,8BAA8B,CAAC,GAAG,MAAM,CAAA;AAE1F,QAAA,MAAM,mBAAmB,EAGnB,YAAY,CAAC,WAAW,EAAE,wBAAwB,CAAC,CAAA;AAEzD,KAAK,yBAAyB,GAAG,iBAAiB,CAAC,+BAA+B,CAAC,GAAG,MAAM,CAAA;AAE5F,QAAA,MAAM,oBAAoB,EAKrB,YAAY,CAAC,eAAe,EAAE,yBAAyB,CAAC,CAAA;AAE7D,KAAK,eAAe,GAAG,KAAK,CAAC,yBAAyB,CAAC,YAAY,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG;IACxG,IAAI,EAAE,OAAO,WAAW,CAAA;IACxB,KAAK,EAAE,OAAO,YAAY,CAAA;IAC1B,YAAY,EAAE,OAAO,mBAAmB,CAAA;IACxC,aAAa,EAAE,OAAO,oBAAoB,CAAA;IAC1C,MAAM,EAAE,OAAO,aAAa,CAAC,MAAM,CAAA;IACnC,OAAO,EAAE,OAAO,aAAa,CAAC,OAAO,CAAA;IACrC,cAAc,EAAE,OAAO,aAAa,CAAC,cAAc,CAAA;IACnD,cAAc,EAAE,OAAO,aAAa,CAAC,cAAc,CAAA;IACnD,WAAW,EAAE,OAAO,aAAa,CAAC,WAAW,CAAA;CAC9C,CAAA;AAED,QAAA,MAAM,OAAO,EAAE,eAUb,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { NavList as NavList$1
|
|
1
|
+
import { NavList as NavList$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from './Box/Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const NavListImpl = /*#__PURE__*/forwardRef(function NavList(props, ref) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PageHeader as PageHeader$1, sx
|
|
1
|
+
import { PageHeader as PageHeader$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
+
import { Box } from './Box/Box.js';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAC3G,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAO/E,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,UAAU;YAlCQ,eAAe;;;;gBAWJ,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/components/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/components/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AACnH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAGpD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RelativeTime as RelativeTime$1 } from '@primer/react';
|
|
2
2
|
import 'react';
|
|
3
|
+
import { Box } from './Box/Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
function RelativeTime(props) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { SegmentedControl as SegmentedControl$1
|
|
1
|
+
import { SegmentedControl as SegmentedControl$1 } from '@primer/react';
|
|
2
|
+
import { Box } from './Box/Box.js';
|
|
2
3
|
import { jsx } from 'react/jsx-runtime';
|
|
3
4
|
|
|
4
5
|
const SegmentedControlButton = props => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateLabel as StateLabel$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from './Box/Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const StateLabel = /*#__PURE__*/forwardRef(function StateLabel(props, ref) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { SubNav as SubNav$1
|
|
1
|
+
import { SubNav as SubNav$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from './Box/Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const SubNavImpl = /*#__PURE__*/forwardRef(function SubNav(props, ref) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToggleSwitch as ToggleSwitch$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from './Box/Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { UnderlineNav as UnderlineNav$1, sx
|
|
1
|
+
import { UnderlineNav as UnderlineNav$1, sx } from '@primer/react';
|
|
2
|
+
import { Box } from './Box/Box.js';
|
|
2
3
|
import { forwardRef } from 'react';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import { ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
3
|
-
import { sx
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
|
+
import { Box } from '../Box/Box.js';
|
|
4
5
|
import styled from 'styled-components';
|
|
5
6
|
import { jsx } from 'react/jsx-runtime';
|
|
6
7
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Box
|
|
2
|
+
export { Box } from './components/Box/Box.js';
|
|
3
|
+
export { Details, ProgressBar, merge, sx, theme, themeGet } from '@primer/react';
|
|
3
4
|
export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme } from './components/FeatureFlaggedTheming.js';
|
|
4
5
|
export { ActionList } from './components/ActionList.js';
|
|
5
6
|
export { ActionMenu } from './components/ActionMenu.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extract a component's props
|
|
3
|
+
*
|
|
4
|
+
* Source: https://react-typescript-cheatsheet.netlify.app/docs/advanced/patterns_by_usecase#wrappingmirroring-a-component
|
|
5
|
+
*
|
|
6
|
+
* @example ComponentProps<typeof MyComponent>
|
|
7
|
+
*/
|
|
8
|
+
export type ComponentProps<T> = T extends React.ComponentType<React.PropsWithChildren<infer Props>> ? (Props extends object ? Props : never) : never;
|
|
9
|
+
//# sourceMappingURL=ComponentProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentProps.d.ts","sourceRoot":"","sources":["../../src/utils/ComponentProps.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,IAC1B,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,SAAS,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,GAAG,KAAK,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20251012224822",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/preset-react": "^7.27.1",
|
|
32
32
|
"@babel/preset-typescript": "^7.27.1",
|
|
33
|
-
"@primer/react": "0.0.0-
|
|
33
|
+
"@primer/react": "0.0.0-20251012224822",
|
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
35
35
|
"@types/react": "18.3.11",
|
|
36
36
|
"@types/react-dom": "18.3.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "^5.9.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@primer/react": "0.0.0-
|
|
49
|
+
"@primer/react": "0.0.0-20251012224822",
|
|
50
50
|
"@types/react": "18.x || 19.x",
|
|
51
51
|
"@types/react-dom": "18.x || 19.x",
|
|
52
52
|
"@types/react-is": "18.x || 19.x",
|
package/dist/components/Box.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,eAAe,CAAA"}
|