@primer/styled-react 0.0.0-20251023145108 → 0.0.0-20251023150330
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/ActionList.js +2 -1
- package/dist/components/ActionMenu.d.ts +2 -1
- package/dist/components/ActionMenu.d.ts.map +1 -1
- package/dist/components/ActionMenu.js +2 -1
- package/dist/components/Autocomplete.js +2 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar.js +2 -1
- package/dist/components/Box.d.ts +18 -1
- package/dist/components/Box.d.ts.map +1 -1
- package/dist/components/Box.js +15 -0
- package/dist/components/Breadcrumbs.js +2 -1
- package/dist/components/Button.d.ts +1 -2
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +2 -1
- 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/CircleBadge.d.ts +2 -1
- package/dist/components/CircleBadge.d.ts.map +1 -1
- package/dist/components/CircleBadge.js +2 -1
- package/dist/components/CounterLabel.js +2 -1
- package/dist/components/DataTable.js +1 -1
- package/dist/components/Dialog.js +2 -1
- package/dist/components/FeatureFlaggedTheming.d.ts +4 -1
- package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -1
- package/dist/components/Flash.js +2 -1
- package/dist/components/FormControl.d.ts +2 -1
- package/dist/components/FormControl.d.ts.map +1 -1
- package/dist/components/FormControl.js +2 -1
- package/dist/components/Header.js +2 -1
- package/dist/components/Heading.js +2 -1
- package/dist/components/IconButton.d.ts +2 -1
- package/dist/components/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton.js +2 -1
- package/dist/components/Label.js +2 -1
- package/dist/components/Link.js +2 -1
- package/dist/components/LinkButton.d.ts +2 -1
- package/dist/components/LinkButton.d.ts.map +1 -1
- package/dist/components/LinkButton.js +2 -1
- package/dist/components/NavList.d.ts +15 -18
- package/dist/components/NavList.d.ts.map +1 -1
- package/dist/components/NavList.js +52 -34
- package/dist/components/Overlay.d.ts +2 -1
- package/dist/components/Overlay.d.ts.map +1 -1
- package/dist/components/Overlay.js +2 -1
- package/dist/components/PageHeader.js +3 -1
- package/dist/components/PageLayout.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/Select.js +2 -1
- package/dist/components/Spinner.js +2 -1
- package/dist/components/StateLabel.d.ts +1 -1
- package/dist/components/StateLabel.js +2 -1
- package/dist/components/SubNav.js +2 -1
- package/dist/components/Text.js +2 -1
- package/dist/components/TextInput.js +2 -1
- package/dist/components/Textarea.js +2 -1
- package/dist/components/Timeline.js +2 -1
- package/dist/components/ToggleSwitch.js +2 -1
- package/dist/components/Token.js +2 -1
- package/dist/components/Tooltip.d.ts +2 -1
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip.js +2 -1
- package/dist/components/Truncate.js +2 -1
- package/dist/components/UnderlineNav.js +3 -1
- package/dist/components/UnderlinePanels.js +1 -1
- package/dist/components/deprecated/ActionList.js +2 -1
- package/dist/components/deprecated/DialogV1.js +1 -1
- package/dist/components/deprecated/Octicon.js +1 -1
- package/dist/components/deprecated/TabNav.js +1 -1
- package/dist/components/deprecated/Tooltip.js +1 -1
- package/dist/components.json +2 -0
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/styled-props.d.ts +0 -1
- package/dist/styled-props.d.ts.map +1 -1
- package/dist/sx.d.ts +22 -1
- package/dist/sx.d.ts.map +1 -1
- package/dist/sx.js +8 -0
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { ActionList as ActionList$1
|
|
3
|
+
import { ActionList as ActionList$1 } from '@primer/react';
|
|
4
|
+
import sx from '../sx.js';
|
|
4
5
|
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
const StyledActionList = styled(ActionList$1).withConfig({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ActionMenu as PrimerActionMenu, type
|
|
1
|
+
import { ActionMenu as PrimerActionMenu, type SlotMarker } from '@primer/react';
|
|
2
|
+
import { type SxProp } from '../sx';
|
|
2
3
|
import type { ComponentProps } from 'react';
|
|
3
4
|
type ActionMenuOverlayProps = ComponentProps<typeof PrimerActionMenu.Overlay> & SxProp;
|
|
4
5
|
declare const ActionMenuOverlay: React.ComponentType<ActionMenuOverlayProps> & SlotMarker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AAEzC,KAAK,sBAAsB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;AAEtF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,UAMtE,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,OAAO,gBAAgB,GAAG;IACjD,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,OAAO,EAAE,OAAO,gBAAgB,CAAC,OAAO,CAAA;CAMxC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Autocomplete as Autocomplete$1
|
|
1
|
+
import { Autocomplete as Autocomplete$1 } from '@primer/react';
|
|
2
|
+
import sx from '../sx.js';
|
|
2
3
|
import styled from 'styled-components';
|
|
3
4
|
|
|
4
5
|
const AutocompleteOverlay = styled(Autocomplete$1.Overlay).withConfig({
|
|
@@ -7,7 +7,7 @@ declare const Avatar: import("react").ForwardRefExoticComponent<{
|
|
|
7
7
|
src: string;
|
|
8
8
|
alt?: string;
|
|
9
9
|
className?: string;
|
|
10
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & import("
|
|
10
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & import("..").SxProp & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("react").RefAttributes<HTMLImageElement>>;
|
|
11
11
|
export { Avatar };
|
|
12
12
|
export type { AvatarProps };
|
|
13
13
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,WAAW,IAAI,iBAAiB,EAAyB,MAAM,eAAe,CAAA;AAE3F,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAGhD,KAAK,WAAW,GAAG,iBAAiB,GAAG,WAAW,CAAA;AAClD,QAAA,MAAM,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,WAAW,IAAI,iBAAiB,EAAyB,MAAM,eAAe,CAAA;AAE3F,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAGhD,KAAK,WAAW,GAAG,iBAAiB,GAAG,WAAW,CAAA;AAClD,QAAA,MAAM,MAAM;;;;;;ynDAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
|
|
@@ -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.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const Avatar = /*#__PURE__*/forwardRef(function Avatar(props, ref) {
|
package/dist/components/Box.d.ts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import type { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system';
|
|
2
|
+
import type { SxProp } from '../sx';
|
|
3
|
+
type ComponentProps<T> = T extends React.ComponentType<React.PropsWithChildren<infer Props>> ? (Props extends object ? Props : never) : never;
|
|
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 default Box;
|
|
18
|
+
export { Box };
|
|
2
19
|
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/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,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,KAAK,cAAc,CAAC,CAAC,IACnB,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;AAEtH,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,eAAe,GAAG,CAAA;AAClB,OAAO,EAAC,GAAG,EAAC,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 '../sx.js';
|
|
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-62in7e-0"
|
|
13
|
+
})(space, color, typography, layout, flexbox, grid, background, border, position, shadow, sx);
|
|
14
|
+
|
|
15
|
+
export { Box, Box as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type ButtonProps as PrimerButtonProps, type SlotMarker } from '@primer/react';
|
|
2
|
-
import type { SxProp } from '../sx';
|
|
3
|
-
import type { BetterSystemStyleObject } from '../styled-props';
|
|
2
|
+
import type { SxProp, BetterSystemStyleObject } from '../sx';
|
|
4
3
|
import type { ForwardRefComponent } from '../polymorphic';
|
|
5
4
|
type ButtonComponentProps = PrimerButtonProps & SxProp & {
|
|
6
5
|
as?: React.ElementType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,IAAI,iBAAiB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC5G,OAAO,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,IAAI,iBAAiB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC5G,OAAO,KAAK,EAAC,MAAM,EAAuB,uBAAuB,EAAC,MAAM,OAAO,CAAA;AAE/E,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAIvD,KAAK,oBAAoB,GAAG,iBAAiB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQjF,QAAA,MAAM,eAAe,EAgBf,mBAAmB,CAAC,QAAQ,EAAE,oBAAoB,CAAC,GAAG,UAAU,CAAA;AA0CtE,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,GAAG,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC,CAAC,EACjH,UAAU,EAAE,uBAAuB;;EAmBpC;AAKD,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAC,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Button
|
|
1
|
+
import { Button } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
+
import sx from '../sx.js';
|
|
4
5
|
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
const StyledButtonComponent = styled(Button).withConfig({
|
|
@@ -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.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const CheckboxGroupImpl = props => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type CircleBadgeProps as PrimerCircleBadgeProps
|
|
1
|
+
import { type CircleBadgeProps as PrimerCircleBadgeProps } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
+
import { type SxProp } from '../sx';
|
|
3
4
|
type CircleBadgeProps<As extends React.ElementType> = PrimerCircleBadgeProps<As> & SxProp;
|
|
4
5
|
declare const CircleBadge: ForwardRefComponent<React.ElementType, CircleBadgeProps<React.ElementType>>;
|
|
5
6
|
export { CircleBadge };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/components/CircleBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/components/CircleBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmC,KAAK,gBAAgB,IAAI,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAE/G,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAW,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,gBAAgB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI,sBAAsB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAEzF,QAAA,MAAM,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAM5F,CAAA;AAED,OAAO,EAAC,WAAW,EAAC,CAAA;AACpB,YAAY,EAAC,gBAAgB,EAAC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CircleBadge as CircleBadge$1
|
|
1
|
+
import { CircleBadge as CircleBadge$1 } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
+
import sx from '../sx.js';
|
|
3
4
|
|
|
4
5
|
const CircleBadge = styled(CircleBadge$1).withConfig({
|
|
5
6
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useTheme as primerReactUseTheme, useColorSchemeVar as primerReactUseColorSchemeVar } from '@primer/react';
|
|
2
|
+
import { type ThemeProviderProps } from './ThemeProvider';
|
|
3
|
+
import { type BaseStylesProps } from './BaseStyles';
|
|
2
4
|
export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
3
5
|
export declare const BaseStyles: React.FC<React.PropsWithChildren<BaseStylesProps>>;
|
|
4
6
|
export declare const useTheme: typeof primerReactUseTheme;
|
|
5
7
|
export declare const useColorSchemeVar: typeof primerReactUseColorSchemeVar;
|
|
8
|
+
export type { ThemeProviderProps, BaseStylesProps };
|
|
6
9
|
//# sourceMappingURL=FeatureFlaggedTheming.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlaggedTheming.d.ts","sourceRoot":"","sources":["../../src/components/FeatureFlaggedTheming.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FeatureFlaggedTheming.d.ts","sourceRoot":"","sources":["../../src/components/FeatureFlaggedTheming.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,IAAI,mBAAmB,EAC/B,iBAAiB,IAAI,4BAA4B,EAClD,MAAM,eAAe,CAAA;AACtB,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAsC,KAAK,eAAe,EAAC,MAAM,cAAc,CAAA;AAGtF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAO/E,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAOzE,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,mBAM7B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,OAAO,4BAMtC,CAAA;AAED,YAAY,EAAC,kBAAkB,EAAE,eAAe,EAAC,CAAA"}
|
package/dist/components/Flash.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps
|
|
1
|
+
import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps } from '@primer/react';
|
|
2
2
|
import { type PropsWithChildren } from 'react';
|
|
3
|
+
import { type SxProp } from '../sx';
|
|
3
4
|
type FormControlProps = PropsWithChildren<PrimerFormControlProps> & SxProp;
|
|
4
5
|
declare const FormControlImpl: React.ComponentType<FormControlProps>;
|
|
5
6
|
declare const FormControl: typeof FormControlImpl & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,IAAI,iBAAiB,EAAE,KAAK,gBAAgB,IAAI,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAC/G,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAE5C,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,MAAM,CAAA;AAE1E,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAI1D,CAAA;AAED,QAAA,MAAM,WAAW,EAMX,OAAO,eAAe,GAAG;IAC7B,OAAO,EAAE,OAAO,iBAAiB,CAAC,OAAO,CAAA;IACzC,aAAa,EAAE,OAAO,iBAAiB,CAAC,aAAa,CAAA;IACrD,UAAU,EAAE,OAAO,iBAAiB,CAAC,UAAU,CAAA;IAC/C,KAAK,EAAE,OAAO,iBAAiB,CAAC,KAAK,CAAA;CACtC,CAAA;AAED,OAAO,EAAC,WAAW,EAAE,KAAK,gBAAgB,EAAC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { FormControl as FormControl$1
|
|
1
|
+
import { FormControl as FormControl$1 } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
+
import sx from '../sx.js';
|
|
3
4
|
|
|
4
5
|
const FormControlImpl = styled(FormControl$1).withConfig({
|
|
5
6
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -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.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker
|
|
1
|
+
import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
+
import { type SxProp } from '../sx';
|
|
3
4
|
type IconButtonProps = PrimerIconButtonProps & SxProp & {
|
|
4
5
|
as?: React.ElementType;
|
|
5
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,UAAU,EAChB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAIvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQhF,QAAA,MAAM,UAAU,EAUV,mBAAmB,CAAC,GAAG,GAAG,QAAQ,EAAE,eAAe,CAAC,GAAG,UAAU,CAAA;AAIvE,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IconButton as IconButton$1
|
|
1
|
+
import { IconButton as IconButton$1 } from '@primer/react';
|
|
2
2
|
import { generateCustomSxProp } from './Button.js';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
+
import sx from '../sx.js';
|
|
5
6
|
import { jsx } from 'react/jsx-runtime';
|
|
6
7
|
|
|
7
8
|
const StyledIconButton = styled(IconButton$1).withConfig({
|
package/dist/components/Label.js
CHANGED
package/dist/components/Link.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type LinkButtonProps as PrimerLinkButtonProps
|
|
1
|
+
import { type LinkButtonProps as PrimerLinkButtonProps } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
+
import { type SxProp } from '../sx';
|
|
3
4
|
type LinkButtonProps = PrimerLinkButtonProps & SxProp;
|
|
4
5
|
declare const LinkButton: ForwardRefComponent<'a', LinkButtonProps>;
|
|
5
6
|
export { LinkButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../src/components/LinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../src/components/LinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAE3G,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAErD,QAAA,MAAM,UAAU,EAAE,mBAAmB,CAAC,GAAG,EAAE,eAAe,CAIzD,CAAA;AAED,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { LinkButton as LinkButton$1
|
|
1
|
+
import { LinkButton as LinkButton$1 } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
+
import sx from '../sx.js';
|
|
3
4
|
|
|
4
5
|
const LinkButton = styled(LinkButton$1).withConfig({
|
|
5
6
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
import { NavList as PrimerNavList } from '@primer/react';
|
|
2
|
-
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps,
|
|
2
|
+
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
|
|
3
3
|
import { type PropsWithChildren } from 'react';
|
|
4
4
|
import { type SxProp } from '../sx';
|
|
5
|
-
type
|
|
6
|
-
type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare const NavListGroupHeading: RefComponent<HTMLElement, NavListGroupHeadingProps>;
|
|
18
|
-
type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp;
|
|
19
|
-
declare const NavListLeadingVisual: RefComponent<HTMLSpanElement, NavListLeadingVisualProps>;
|
|
5
|
+
import type { ForwardRefComponent } from '../polymorphic';
|
|
6
|
+
type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp & {
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
};
|
|
9
|
+
type NavListItemProps = PropsWithChildren<PrimerNavListItemProps> & SxProp & {
|
|
10
|
+
as?: React.ElementType;
|
|
11
|
+
};
|
|
12
|
+
declare const NavListItem: ForwardRefComponent<"a", NavListItemProps>;
|
|
13
|
+
type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp & {
|
|
14
|
+
as?: React.ElementType;
|
|
15
|
+
};
|
|
16
|
+
declare const NavListLeadingVisual: ForwardRefComponent<"span", NavListLeadingVisualProps>;
|
|
20
17
|
type NavListCompound = React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLElement>> & {
|
|
21
18
|
Item: typeof NavListItem;
|
|
22
|
-
Group: typeof
|
|
23
|
-
GroupHeading: typeof
|
|
19
|
+
Group: typeof PrimerNavList.Group;
|
|
20
|
+
GroupHeading: typeof PrimerNavList.GroupHeading;
|
|
24
21
|
LeadingVisual: typeof NavListLeadingVisual;
|
|
25
22
|
SubNav: typeof PrimerNavList.SubNav;
|
|
26
23
|
Divider: typeof PrimerNavList.Divider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,
|
|
1
|
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IAC/C,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,50 +1,68 @@
|
|
|
1
|
-
import { NavList as NavList$1
|
|
1
|
+
import { NavList as NavList$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import sx from '../sx.js';
|
|
3
5
|
import { jsx } from 'react/jsx-runtime';
|
|
4
6
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
const StyledNavListImpl = styled(NavList$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "NavList__StyledNavListImpl",
|
|
11
|
+
componentId: "sc-86jrwg-0"
|
|
12
|
+
})(["", ""], sx);
|
|
13
|
+
const NavListImpl = /*#__PURE__*/forwardRef(function NavList({
|
|
14
|
+
as,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) {
|
|
17
|
+
return /*#__PURE__*/jsx(StyledNavListImpl, {
|
|
8
18
|
ref: ref,
|
|
19
|
+
...(as ? {
|
|
20
|
+
forwardedAs: as
|
|
21
|
+
} : {}),
|
|
9
22
|
...props
|
|
10
23
|
});
|
|
11
24
|
});
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return /*#__PURE__*/jsx(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
const StyledNavListItem = styled(NavList$1.Item).withConfig({
|
|
26
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
27
|
+
}).withConfig({
|
|
28
|
+
displayName: "NavList__StyledNavListItem",
|
|
29
|
+
componentId: "sc-86jrwg-1"
|
|
30
|
+
})(["", ""], sx);
|
|
31
|
+
const NavListItem = /*#__PURE__*/forwardRef(({
|
|
32
|
+
as,
|
|
33
|
+
...props
|
|
34
|
+
}, ref) => {
|
|
35
|
+
return /*#__PURE__*/jsx(StyledNavListItem, {
|
|
36
|
+
...props,
|
|
37
|
+
...(as ? {
|
|
38
|
+
forwardedAs: as
|
|
39
|
+
} : {}),
|
|
40
|
+
ref: ref
|
|
26
41
|
});
|
|
27
42
|
});
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return /*#__PURE__*/jsx(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
const StyledNavListLeadingVisual = styled(NavList$1.LeadingVisual).withConfig({
|
|
44
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
45
|
+
}).withConfig({
|
|
46
|
+
displayName: "NavList__StyledNavListLeadingVisual",
|
|
47
|
+
componentId: "sc-86jrwg-2"
|
|
48
|
+
})(["", ""], sx);
|
|
49
|
+
const NavListLeadingVisual = /*#__PURE__*/forwardRef(({
|
|
50
|
+
as,
|
|
51
|
+
...props
|
|
52
|
+
}, ref) => {
|
|
53
|
+
return /*#__PURE__*/jsx(StyledNavListLeadingVisual, {
|
|
54
|
+
...props,
|
|
55
|
+
...(as ? {
|
|
56
|
+
forwardedAs: as
|
|
57
|
+
} : {}),
|
|
58
|
+
ref: ref
|
|
42
59
|
});
|
|
43
60
|
});
|
|
61
|
+
NavListLeadingVisual.__SLOT__ = NavList$1.LeadingVisual.__SLOT__;
|
|
44
62
|
const NavList = Object.assign(NavListImpl, {
|
|
45
63
|
Item: NavListItem,
|
|
46
|
-
Group:
|
|
47
|
-
GroupHeading:
|
|
64
|
+
Group: NavList$1.Group,
|
|
65
|
+
GroupHeading: NavList$1.GroupHeading,
|
|
48
66
|
LeadingVisual: NavListLeadingVisual,
|
|
49
67
|
SubNav: NavList$1.SubNav,
|
|
50
68
|
Divider: NavList$1.Divider,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type OverlayProps as PrimerOverlayProps
|
|
1
|
+
import { type OverlayProps as PrimerOverlayProps } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
+
import { type SxProp } from '../sx';
|
|
3
4
|
type OverlayProps = PrimerOverlayProps & SxProp;
|
|
4
5
|
declare const Overlay: ForwardRefComponent<'div', OverlayProps>;
|
|
5
6
|
export { Overlay };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/components/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/components/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,eAAe,CAAA;AAE/F,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,KAAK,EAAE,YAAY,CAIrD,CAAA;AAED,OAAO,EAAC,OAAO,EAAC,CAAA;AAChB,YAAY,EAAC,YAAY,EAAC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Overlay as Overlay$1
|
|
1
|
+
import { Overlay as Overlay$1 } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
+
import sx from '../sx.js';
|
|
3
4
|
|
|
4
5
|
const Overlay = styled(Overlay$1).withConfig({
|
|
5
6
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { PageHeader as PageHeader$1
|
|
1
|
+
import { PageHeader as PageHeader$1 } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
+
import sx from '../sx.js';
|
|
4
|
+
import Box from './Box.js';
|
|
3
5
|
import React from 'react';
|
|
4
6
|
import { jsx } from 'react/jsx-runtime';
|
|
5
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import {
|
|
3
|
+
import { PageLayout as PageLayout$1 } from '@primer/react';
|
|
4
|
+
import sx from '../sx.js';
|
|
4
5
|
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
const Wrapper = styled.div.withConfig({
|
|
@@ -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"}
|
|
@@ -3,7 +3,7 @@ import type { SxProp } from '../sx';
|
|
|
3
3
|
type StateLabelProps = PrimerStateLabelProps & SxProp;
|
|
4
4
|
declare const StateLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
5
5
|
variant?: "small" | "normal";
|
|
6
|
-
status: "open" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable"
|
|
6
|
+
status: "open" | "closed" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable";
|
|
7
7
|
} & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
8
|
export { StateLabel, type StateLabelProps };
|
|
9
9
|
//# sourceMappingURL=StateLabel.d.ts.map
|
|
@@ -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.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.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const SubNavImpl = /*#__PURE__*/forwardRef(function SubNav(props, ref) {
|
package/dist/components/Text.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TextInput as TextInput$1
|
|
1
|
+
import { TextInput as TextInput$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import sx from '../sx.js';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Textarea as Textarea$1
|
|
1
|
+
import { Textarea as Textarea$1 } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
+
import sx from '../sx.js';
|
|
3
4
|
import { forwardRef } from 'react';
|
|
4
5
|
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
@@ -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.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
|
package/dist/components/Token.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type TooltipProps as PrimerTooltipProps, type
|
|
1
|
+
import { type TooltipProps as PrimerTooltipProps, type SlotMarker } from '@primer/react';
|
|
2
2
|
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
3
|
+
import type { SxProp } from '../sx';
|
|
3
4
|
type TooltipProps = PrimerTooltipProps & SxProp;
|
|
4
5
|
declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>> & SlotMarker;
|
|
5
6
|
export { Tooltip, type TooltipProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAEhH,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AACpF,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC,GAAG,UAKvF,CAAA;AAIF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { UnderlineNav as UnderlineNav$1
|
|
1
|
+
import { UnderlineNav as UnderlineNav$1 } from '@primer/react';
|
|
2
|
+
import Box from './Box.js';
|
|
2
3
|
import { forwardRef } from 'react';
|
|
3
4
|
import styled from 'styled-components';
|
|
5
|
+
import sx from '../sx.js';
|
|
4
6
|
import { jsx } from 'react/jsx-runtime';
|
|
5
7
|
|
|
6
8
|
const StyledUnderlineNav = /*#__PURE__*/forwardRef(function UnderlineNav(props, ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import
|
|
3
|
+
import sx from '../sx.js';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import { ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
3
|
-
import
|
|
3
|
+
import sx from '../../sx.js';
|
|
4
|
+
import Box from '../Box.js';
|
|
4
5
|
import styled from 'styled-components';
|
|
5
6
|
import { jsx } from 'react/jsx-runtime';
|
|
6
7
|
|
package/dist/components.json
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"ActionListTrailingVisualProps",
|
|
62
62
|
"AutocompleteOverlayProps",
|
|
63
63
|
"AvatarProps",
|
|
64
|
+
"BaseStylesProps",
|
|
64
65
|
"BetterSystemStyleObject",
|
|
65
66
|
"BoxProps",
|
|
66
67
|
"BreadcrumbsItemProps",
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
"TextInputActionProps",
|
|
111
112
|
"TextInputProps",
|
|
112
113
|
"TextProps",
|
|
114
|
+
"ThemeProviderProps",
|
|
113
115
|
"TimelineBadgeProps",
|
|
114
116
|
"TimelineBodyProps",
|
|
115
117
|
"TimelineBreakProps",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export { Box, type BoxProps } from './components/Box';
|
|
2
2
|
export { Details } from '@primer/react';
|
|
3
3
|
export { ProgressBar } from '@primer/react';
|
|
4
|
-
export { ThemeProvider, useTheme, useColorSchemeVar, BaseStyles } from './components/FeatureFlaggedTheming';
|
|
5
|
-
export { merge } from '@primer/react';
|
|
4
|
+
export { ThemeProvider, useTheme, useColorSchemeVar, BaseStyles, type ThemeProviderProps, type BaseStylesProps, } from './components/FeatureFlaggedTheming';
|
|
6
5
|
export { theme } from '@primer/react';
|
|
7
6
|
export { themeGet } from '@primer/react';
|
|
8
7
|
export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListLinkItemProps, type ActionListGroupProps, type ActionListDividerProps, type ActionListLeadingVisualProps, type ActionListTrailingVisualProps, type ActionListTrailingActionProps, } from './components/ActionList';
|
|
@@ -44,6 +43,6 @@ export { Tooltip, type TooltipProps } from './components/Tooltip';
|
|
|
44
43
|
export { Token, type TokenProps } from './components/Token';
|
|
45
44
|
export { Truncate, type TruncateProps } from './components/Truncate';
|
|
46
45
|
export { UnderlineNav, type UnderlineNavProps, type UnderlineNavItemProps } from './components/UnderlineNav';
|
|
47
|
-
export { sx, type SxProp } from './sx';
|
|
48
|
-
export type
|
|
46
|
+
export { merge, sx, type SxProp } from './sx';
|
|
47
|
+
export { type BetterSystemStyleObject } from './sx';
|
|
49
48
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,k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EAAC,MAAM,MAAM,CAAA;AAE3C,OAAO,EAAC,KAAK,uBAAuB,EAAC,MAAM,MAAM,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export {
|
|
2
|
+
export { default as Box } from './components/Box.js';
|
|
3
|
+
export { Details, ProgressBar, 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';
|
|
@@ -40,3 +41,5 @@ export { Tooltip } from './components/Tooltip.js';
|
|
|
40
41
|
export { Token } from './components/Token.js';
|
|
41
42
|
export { Truncate } from './components/Truncate.js';
|
|
42
43
|
export { UnderlineNav } from './components/UnderlineNav.js';
|
|
44
|
+
export { default as sx } from './sx.js';
|
|
45
|
+
export { default as merge } from 'deepmerge';
|
package/dist/styled-props.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system';
|
|
2
2
|
import type { SxProp } from './sx';
|
|
3
3
|
export type StyledProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps;
|
|
4
|
-
export type { BetterSystemStyleObject } from '@primer/react';
|
|
5
4
|
//# sourceMappingURL=styled-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled-props.d.ts","sourceRoot":"","sources":["../src/styled-props.ts"],"names":[],"mappings":"AAAA,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;AACtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,MAAM,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,GAC9B,UAAU,GACV,UAAU,GACV,eAAe,GACf,WAAW,GACX,YAAY,GACZ,SAAS,GACT,eAAe,GACf,WAAW,GACX,aAAa,GACb,WAAW,CAAA
|
|
1
|
+
{"version":3,"file":"styled-props.d.ts","sourceRoot":"","sources":["../src/styled-props.ts"],"names":[],"mappings":"AAAA,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;AACtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,MAAM,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,GAC9B,UAAU,GACV,UAAU,GACV,eAAe,GACf,WAAW,GACX,YAAY,GACZ,SAAS,GACT,eAAe,GACf,WAAW,GACX,aAAa,GACb,WAAW,CAAA"}
|
package/dist/sx.d.ts
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SystemCssProperties, SystemStyleObject } from '@styled-system/css';
|
|
2
|
+
import type { ThemeColorPaths, ThemeShadowPaths } from '@primer/react';
|
|
3
|
+
import type { ColorProps, BorderColorProps, ShadowProps } from 'styled-system';
|
|
4
|
+
import merge from 'deepmerge';
|
|
5
|
+
export type BetterCssProperties = {
|
|
6
|
+
[K in keyof SystemCssProperties]: K extends keyof ColorProps ? ThemeColorPaths | SystemCssProperties[K] : K extends keyof BorderColorProps ? ThemeColorPaths | SystemCssProperties[K] : K extends keyof ShadowProps ? ThemeShadowPaths | SystemCssProperties[K] : SystemCssProperties[K];
|
|
7
|
+
};
|
|
2
8
|
export type CSSCustomProperties = {
|
|
3
9
|
[key: `--${string}`]: string | number;
|
|
4
10
|
};
|
|
11
|
+
type CSSSelectorObject = {
|
|
12
|
+
[cssSelector: string]: SystemStyleObject | CSSCustomProperties;
|
|
13
|
+
};
|
|
14
|
+
export type BetterSystemStyleObject = BetterCssProperties | SystemStyleObject | CSSCustomProperties | CSSSelectorObject;
|
|
15
|
+
export interface SxProp {
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated The `sx` prop is deprecated. Replace with a `div` or
|
|
18
|
+
* appropriate HTML element instead, with a CSS class for styling.
|
|
19
|
+
* @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
|
|
20
|
+
* */
|
|
21
|
+
sx?: BetterSystemStyleObject;
|
|
22
|
+
}
|
|
23
|
+
declare const sx: (props: SxProp) => import("@styled-system/css").CssFunctionReturnType;
|
|
24
|
+
export default sx;
|
|
25
|
+
export { merge, sx };
|
|
5
26
|
//# sourceMappingURL=sx.d.ts.map
|
package/dist/sx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,oBAAoB,CAAA;AAE9E,OAAO,KAAK,EAAC,eAAe,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAA;AACpE,OAAO,KAAK,EAAC,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAC,MAAM,eAAe,CAAA;AAC5E,OAAO,KAAK,MAAM,WAAW,CAAA;AAE7B,MAAM,MAAM,mBAAmB,GAAG;KAC/B,CAAC,IAAI,MAAM,mBAAmB,GAAG,CAAC,SAAS,MAAM,UAAU,GACxD,eAAe,GAAG,mBAAmB,CAAC,CAAC,CAAC,GACxC,CAAC,SAAS,MAAM,gBAAgB,GAC9B,eAAe,GAAG,mBAAmB,CAAC,CAAC,CAAC,GACxC,CAAC,SAAS,MAAM,WAAW,GACzB,gBAAgB,GAAG,mBAAmB,CAAC,CAAC,CAAC,GACzC,mBAAmB,CAAC,CAAC,CAAC;CAC/B,CAAA;AAGD,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,GAAG,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;CACtC,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB,GAAG,mBAAmB,CAAA;CAC/D,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,iBAAiB,CAAA;AAEvH,MAAM,WAAW,MAAM;IACrB;;;;SAIK;IACL,EAAE,CAAC,EAAE,uBAAuB,CAAA;CAC7B;AAED,QAAA,MAAM,EAAE,GAAI,OAAO,MAAM,uDAAkB,CAAA;AAE3C,eAAe,EAAE,CAAA;AAEjB,OAAO,EAAC,KAAK,EAAE,EAAE,EAAC,CAAA"}
|
package/dist/sx.js
ADDED
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-20251023150330",
|
|
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-20251023150330",
|
|
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-20251023150330",
|
|
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",
|