@primer/styled-react 0.0.0-20251023134357 → 0.0.0-20251023145108
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 +1 -2
- package/dist/components/ActionMenu.d.ts +1 -2
- package/dist/components/ActionMenu.d.ts.map +1 -1
- package/dist/components/ActionMenu.js +1 -2
- package/dist/components/Autocomplete.js +1 -2
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar.js +1 -2
- package/dist/components/Box.d.ts +1 -18
- package/dist/components/Box.d.ts.map +1 -1
- package/dist/components/Breadcrumbs.js +1 -2
- package/dist/components/Button.d.ts +2 -1
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +1 -2
- package/dist/components/Checkbox.js +1 -2
- package/dist/components/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.js +1 -2
- package/dist/components/CircleBadge.d.ts +1 -2
- package/dist/components/CircleBadge.d.ts.map +1 -1
- package/dist/components/CircleBadge.js +1 -2
- package/dist/components/CounterLabel.js +1 -2
- package/dist/components/DataTable.js +1 -1
- package/dist/components/Dialog.js +1 -2
- package/dist/components/FeatureFlaggedTheming.d.ts +6 -0
- package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -0
- package/dist/components/FeatureFlaggedTheming.js +54 -0
- package/dist/components/Flash.js +1 -2
- package/dist/components/FormControl.d.ts +1 -2
- package/dist/components/FormControl.d.ts.map +1 -1
- package/dist/components/FormControl.js +1 -2
- package/dist/components/Header.js +1 -2
- package/dist/components/Heading.js +1 -2
- package/dist/components/IconButton.d.ts +1 -2
- package/dist/components/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton.js +1 -2
- package/dist/components/Label.js +1 -2
- package/dist/components/Link.js +1 -2
- package/dist/components/LinkButton.d.ts +1 -2
- package/dist/components/LinkButton.d.ts.map +1 -1
- package/dist/components/LinkButton.js +1 -2
- package/dist/components/NavList.d.ts +18 -15
- package/dist/components/NavList.d.ts.map +1 -1
- package/dist/components/NavList.js +34 -52
- package/dist/components/Overlay.d.ts +1 -2
- package/dist/components/Overlay.d.ts.map +1 -1
- package/dist/components/Overlay.js +1 -2
- package/dist/components/PageHeader.js +1 -3
- package/dist/components/PageLayout.js +1 -2
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.js +1 -2
- package/dist/components/RelativeTime.d.ts.map +1 -1
- package/dist/components/RelativeTime.js +1 -2
- package/dist/components/SegmentedControl.js +1 -2
- package/dist/components/Select.js +1 -2
- package/dist/components/Spinner.js +1 -2
- package/dist/components/StateLabel.d.ts +1 -1
- package/dist/components/StateLabel.js +1 -2
- package/dist/components/SubNav.js +1 -2
- package/dist/components/Text.js +1 -2
- package/dist/components/TextInput.js +1 -2
- package/dist/components/Textarea.js +1 -2
- package/dist/components/Timeline.js +1 -2
- package/dist/components/ToggleSwitch.js +1 -2
- package/dist/components/Token.js +1 -2
- package/dist/components/Tooltip.d.ts +1 -2
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip.js +1 -2
- package/dist/components/Truncate.js +1 -2
- package/dist/components/UnderlineNav.js +1 -3
- package/dist/components/UnderlinePanels.js +1 -1
- package/dist/components/deprecated/ActionList.js +1 -2
- 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 +0 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -7
- package/dist/styled-props.d.ts +1 -0
- package/dist/styled-props.d.ts.map +1 -1
- package/dist/sx.d.ts +1 -22
- package/dist/sx.d.ts.map +1 -1
- package/package.json +3 -13
- package/dist/components/Box.js +0 -15
- package/dist/sx.js +0 -8
- package/dist/theme-get.d.ts +0 -2
- package/dist/theme-get.d.ts.map +0 -1
- package/dist/theme-get.js +0 -10
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { ActionList as ActionList$1 } from '@primer/react';
|
|
4
|
-
import sx from '../sx.js';
|
|
3
|
+
import { ActionList as ActionList$1, sx } from '@primer/react';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
7
6
|
const StyledActionList = styled(ActionList$1).withConfig({
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ActionMenu as PrimerActionMenu, type SlotMarker } from '@primer/react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
1
|
+
import { ActionMenu as PrimerActionMenu, type SxProp, type SlotMarker } from '@primer/react';
|
|
3
2
|
import type { ComponentProps } from 'react';
|
|
4
3
|
type ActionMenuOverlayProps = ComponentProps<typeof PrimerActionMenu.Overlay> & SxProp;
|
|
5
4
|
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,
|
|
1
|
+
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAG1F,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,5 +1,4 @@
|
|
|
1
|
-
import { Autocomplete as Autocomplete$1 } from '@primer/react';
|
|
2
|
-
import sx from '../sx.js';
|
|
1
|
+
import { Autocomplete as Autocomplete$1, sx } from '@primer/react';
|
|
3
2
|
import styled from 'styled-components';
|
|
4
3
|
|
|
5
4
|
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("@primer/react").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;;;;;;ooDAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Avatar as Avatar$1 } from '@primer/react';
|
|
1
|
+
import { Box, Avatar as Avatar$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const Avatar = /*#__PURE__*/forwardRef(function Avatar(props, ref) {
|
package/dist/components/Box.d.ts
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
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 };
|
|
1
|
+
export { Box, type BoxProps } from '@primer/react';
|
|
19
2
|
//# 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":"AAAA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,eAAe,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ButtonProps as PrimerButtonProps, type SlotMarker } from '@primer/react';
|
|
2
|
-
import type { SxProp
|
|
2
|
+
import type { SxProp } from '../sx';
|
|
3
|
+
import type { BetterSystemStyleObject } from '../styled-props';
|
|
3
4
|
import type { ForwardRefComponent } from '../polymorphic';
|
|
4
5
|
type ButtonComponentProps = PrimerButtonProps & SxProp & {
|
|
5
6
|
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,EAAsB,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,iBAAiB,CAAA;AAE5D,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,7 +1,6 @@
|
|
|
1
|
-
import { Button } from '@primer/react';
|
|
1
|
+
import { Button, sx } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import sx from '../sx.js';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
7
6
|
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,EAGL,KAAK,kBAAkB,IAAI,wBAAwB,EACpD,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,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,6 +1,5 @@
|
|
|
1
|
-
import { CheckboxGroup as CheckboxGroup$1 } from '@primer/react';
|
|
1
|
+
import { CheckboxGroup as CheckboxGroup$1, Box } from '@primer/react';
|
|
2
2
|
import 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const CheckboxGroupImpl = props => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type CircleBadgeProps as PrimerCircleBadgeProps } from '@primer/react';
|
|
1
|
+
import { type CircleBadgeProps as PrimerCircleBadgeProps, type SxProp } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
3
|
type CircleBadgeProps<As extends React.ElementType> = PrimerCircleBadgeProps<As> & SxProp;
|
|
5
4
|
declare const CircleBadge: ForwardRefComponent<React.ElementType, CircleBadgeProps<React.ElementType>>;
|
|
6
5
|
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,EAEL,KAAK,gBAAgB,IAAI,sBAAsB,EAE/C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,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,6 +1,5 @@
|
|
|
1
|
-
import { CircleBadge as CircleBadge$1 } from '@primer/react';
|
|
1
|
+
import { CircleBadge as CircleBadge$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
|
|
5
4
|
const CircleBadge = styled(CircleBadge$1).withConfig({
|
|
6
5
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ThemeProviderProps, type BaseStylesProps, useTheme as primerReactUseTheme, useColorSchemeVar as primerReactUseColorSchemeVar } from '@primer/react';
|
|
2
|
+
export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
3
|
+
export declare const BaseStyles: React.FC<React.PropsWithChildren<BaseStylesProps>>;
|
|
4
|
+
export declare const useTheme: typeof primerReactUseTheme;
|
|
5
|
+
export declare const useColorSchemeVar: typeof primerReactUseColorSchemeVar;
|
|
6
|
+
//# sourceMappingURL=FeatureFlaggedTheming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureFlaggedTheming.d.ts","sourceRoot":"","sources":["../../src/components/FeatureFlaggedTheming.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EACpB,QAAQ,IAAI,mBAAmB,EAC/B,iBAAiB,IAAI,4BAA4B,EAClD,MAAM,eAAe,CAAA;AAStB,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"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ThemeProvider as ThemeProvider$2, useTheme as useTheme$2, useColorSchemeVar as useColorSchemeVar$2, BaseStyles as BaseStyles$2 } from '@primer/react';
|
|
2
|
+
import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1, useColorSchemeVar as useColorSchemeVar$1 } from './ThemeProvider.js';
|
|
3
|
+
import { BaseStyles as BaseStyles$1 } from './BaseStyles.js';
|
|
4
|
+
import { useFeatureFlag } from '@primer/react/experimental';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
const ThemeProvider = ({
|
|
8
|
+
children,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
12
|
+
if (enabled) {
|
|
13
|
+
return /*#__PURE__*/jsx(ThemeProvider$1, {
|
|
14
|
+
...props,
|
|
15
|
+
children: children
|
|
16
|
+
});
|
|
17
|
+
} else {
|
|
18
|
+
return /*#__PURE__*/jsx(ThemeProvider$2, {
|
|
19
|
+
...props,
|
|
20
|
+
children: children
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const BaseStyles = ({
|
|
25
|
+
children,
|
|
26
|
+
...props
|
|
27
|
+
}) => {
|
|
28
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
29
|
+
if (enabled) {
|
|
30
|
+
return /*#__PURE__*/jsx(BaseStyles$1, {
|
|
31
|
+
...props,
|
|
32
|
+
children: children
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
return /*#__PURE__*/jsx(BaseStyles$2, {
|
|
36
|
+
...props,
|
|
37
|
+
children: children
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const useTheme = () => {
|
|
42
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
43
|
+
const styledReactResults = useTheme$1();
|
|
44
|
+
const primerReactResults = useTheme$2();
|
|
45
|
+
return enabled ? styledReactResults : primerReactResults;
|
|
46
|
+
};
|
|
47
|
+
const useColorSchemeVar = (values, fallback) => {
|
|
48
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
49
|
+
const styledReactResults = useColorSchemeVar$1(values, fallback);
|
|
50
|
+
const primerReactResults = useColorSchemeVar$2(values, fallback);
|
|
51
|
+
return enabled ? styledReactResults : primerReactResults;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme };
|
package/dist/components/Flash.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps } from '@primer/react';
|
|
1
|
+
import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps, type SxProp } from '@primer/react';
|
|
2
2
|
import { type PropsWithChildren } from 'react';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
3
|
type FormControlProps = PropsWithChildren<PrimerFormControlProps> & SxProp;
|
|
5
4
|
declare const FormControlImpl: React.ComponentType<FormControlProps>;
|
|
6
5
|
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,EACL,WAAW,IAAI,iBAAiB,EAChC,KAAK,gBAAgB,IAAI,sBAAsB,EAC/C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAI5C,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,6 +1,5 @@
|
|
|
1
|
-
import { FormControl as FormControl$1 } from '@primer/react';
|
|
1
|
+
import { FormControl as FormControl$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
|
|
5
4
|
const FormControlImpl = styled(FormControl$1).withConfig({
|
|
6
5
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Header as Header$1 } from '@primer/react';
|
|
1
|
+
import { Box, Header as Header$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker } from '@primer/react';
|
|
1
|
+
import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker, type SxProp } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
3
|
type IconButtonProps = PrimerIconButtonProps & SxProp & {
|
|
5
4
|
as?: React.ElementType;
|
|
6
5
|
};
|
|
@@ -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,EACf,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAMvD,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,8 +1,7 @@
|
|
|
1
|
-
import { IconButton as IconButton$1 } from '@primer/react';
|
|
1
|
+
import { IconButton as IconButton$1, sx } 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';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
|
8
7
|
const StyledIconButton = styled(IconButton$1).withConfig({
|
package/dist/components/Label.js
CHANGED
package/dist/components/Link.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type LinkButtonProps as PrimerLinkButtonProps } from '@primer/react';
|
|
1
|
+
import { type LinkButtonProps as PrimerLinkButtonProps, type SxProp } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
3
|
type LinkButtonProps = PrimerLinkButtonProps & SxProp;
|
|
5
4
|
declare const LinkButton: ForwardRefComponent<'a', LinkButtonProps>;
|
|
6
5
|
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,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAE7C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,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,6 +1,5 @@
|
|
|
1
|
-
import { LinkButton as LinkButton$1 } from '@primer/react';
|
|
1
|
+
import { LinkButton as LinkButton$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
|
|
5
4
|
const LinkButton = styled(LinkButton$1).withConfig({
|
|
6
5
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { NavList as PrimerNavList } from '@primer/react';
|
|
2
|
-
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
|
|
2
|
+
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListGroupHeadingProps as PrimerNavListGroupHeadingProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
|
|
3
3
|
import { type PropsWithChildren } from 'react';
|
|
4
4
|
import { type SxProp } from '../sx';
|
|
5
|
-
|
|
6
|
-
type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
5
|
+
type RefComponent<E extends HTMLElement, P> = React.ForwardRefExoticComponent<P & React.RefAttributes<E>>;
|
|
6
|
+
type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp;
|
|
7
|
+
declare const NavListItem: import("react").ForwardRefExoticComponent<PrimerNavListItemProps & {
|
|
8
|
+
children?: import("react").ReactNode | undefined;
|
|
9
|
+
} & SxProp & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare const NavListGroup: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLLIElement> & {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
title?: string;
|
|
13
|
+
} & {
|
|
14
|
+
children?: import("react").ReactNode | undefined;
|
|
15
|
+
} & SxProp & import("react").RefAttributes<HTMLLIElement>>;
|
|
16
|
+
type NavListGroupHeadingProps = PropsWithChildren<PrimerNavListGroupHeadingProps> & SxProp;
|
|
17
|
+
declare const NavListGroupHeading: RefComponent<HTMLElement, NavListGroupHeadingProps>;
|
|
18
|
+
type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp;
|
|
19
|
+
declare const NavListLeadingVisual: RefComponent<HTMLSpanElement, NavListLeadingVisualProps>;
|
|
17
20
|
type NavListCompound = React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLElement>> & {
|
|
18
21
|
Item: typeof NavListItem;
|
|
19
|
-
Group: typeof
|
|
20
|
-
GroupHeading: typeof
|
|
22
|
+
Group: typeof NavListGroup;
|
|
23
|
+
GroupHeading: typeof NavListGroupHeading;
|
|
21
24
|
LeadingVisual: typeof NavListLeadingVisual;
|
|
22
25
|
SubNav: typeof PrimerNavList.SubNav;
|
|
23
26
|
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
|
+
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAM,MAAM,eAAe,CAAA;AAC3D,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;AAEjC,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,68 +1,50 @@
|
|
|
1
|
-
import { NavList as NavList$1 } from '@primer/react';
|
|
1
|
+
import { NavList as NavList$1, Box } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import sx from '../sx.js';
|
|
5
3
|
import { jsx } from 'react/jsx-runtime';
|
|
6
4
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
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, {
|
|
5
|
+
const NavListImpl = /*#__PURE__*/forwardRef(function NavList(props, ref) {
|
|
6
|
+
return /*#__PURE__*/jsx(Box, {
|
|
7
|
+
as: NavList$1,
|
|
18
8
|
ref: ref,
|
|
19
|
-
...(as ? {
|
|
20
|
-
forwardedAs: as
|
|
21
|
-
} : {}),
|
|
22
9
|
...props
|
|
23
10
|
});
|
|
24
11
|
});
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return /*#__PURE__*/jsx(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} : {}),
|
|
40
|
-
ref: ref
|
|
12
|
+
const NavListItem = /*#__PURE__*/forwardRef(function NavListItem(props, ref) {
|
|
13
|
+
// @ts-expect-error - PrimerNavList.Item is not recognized as a valid component type
|
|
14
|
+
return /*#__PURE__*/jsx(Box, {
|
|
15
|
+
as: NavList$1.Item,
|
|
16
|
+
ref: ref,
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
const NavListGroup = /*#__PURE__*/forwardRef(function NavListGroup(props, ref) {
|
|
21
|
+
// @ts-expect-error - PrimerNavList.Group is not recognized as a valid component type
|
|
22
|
+
return /*#__PURE__*/jsx(Box, {
|
|
23
|
+
as: NavList$1.Group,
|
|
24
|
+
ref: ref,
|
|
25
|
+
...props
|
|
41
26
|
});
|
|
42
27
|
});
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return /*#__PURE__*/jsx(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
} : {}),
|
|
58
|
-
ref: ref
|
|
28
|
+
const NavListGroupHeading = /*#__PURE__*/forwardRef(function NavListGroupHeading(props, ref) {
|
|
29
|
+
// @ts-expect-error - PrimerNavList.GroupHeading is not recognized as a valid component type
|
|
30
|
+
return /*#__PURE__*/jsx(Box, {
|
|
31
|
+
as: NavList$1.GroupHeading,
|
|
32
|
+
ref: ref,
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
const NavListLeadingVisual = /*#__PURE__*/forwardRef(function NavListLeadingVisual(props, ref) {
|
|
37
|
+
// @ts-expect-error - PrimerNavList.LeadingVisual is not recognized as a valid component type
|
|
38
|
+
return /*#__PURE__*/jsx(Box, {
|
|
39
|
+
as: NavList$1.LeadingVisual,
|
|
40
|
+
ref: ref,
|
|
41
|
+
...props
|
|
59
42
|
});
|
|
60
43
|
});
|
|
61
|
-
NavListLeadingVisual.__SLOT__ = NavList$1.LeadingVisual.__SLOT__;
|
|
62
44
|
const NavList = Object.assign(NavListImpl, {
|
|
63
45
|
Item: NavListItem,
|
|
64
|
-
Group:
|
|
65
|
-
GroupHeading:
|
|
46
|
+
Group: NavListGroup,
|
|
47
|
+
GroupHeading: NavListGroupHeading,
|
|
66
48
|
LeadingVisual: NavListLeadingVisual,
|
|
67
49
|
SubNav: NavList$1.SubNav,
|
|
68
50
|
Divider: NavList$1.Divider,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type OverlayProps as PrimerOverlayProps } from '@primer/react';
|
|
1
|
+
import { type OverlayProps as PrimerOverlayProps, type SxProp } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
3
|
type OverlayProps = PrimerOverlayProps & SxProp;
|
|
5
4
|
declare const Overlay: ForwardRefComponent<'div', OverlayProps>;
|
|
6
5
|
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,EAAC,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/components/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAM,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAEhH,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,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,6 +1,5 @@
|
|
|
1
|
-
import { Overlay as Overlay$1 } from '@primer/react';
|
|
1
|
+
import { Overlay as Overlay$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
|
|
5
4
|
const Overlay = styled(Overlay$1).withConfig({
|
|
6
5
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { PageHeader as PageHeader$1 } from '@primer/react';
|
|
1
|
+
import { PageHeader as PageHeader$1, sx, Box } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
|
-
import Box from './Box.js';
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import { jsx } from 'react/jsx-runtime';
|
|
7
5
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { PageLayout as PageLayout$1 } from '@primer/react';
|
|
4
|
-
import sx from '../sx.js';
|
|
3
|
+
import { sx, PageLayout as PageLayout$1 } from '@primer/react';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
7
6
|
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,EAAsC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAChH,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,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,EAA0C,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AACxH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,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" | "
|
|
6
|
+
status: "open" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable" | "closed";
|
|
7
7
|
} & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
8
|
export { StateLabel, type StateLabelProps };
|
|
9
9
|
//# sourceMappingURL=StateLabel.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { StateLabel as StateLabel$1 } from '@primer/react';
|
|
1
|
+
import { Box, StateLabel as StateLabel$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const StateLabel = /*#__PURE__*/forwardRef(function StateLabel(props, ref) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { SubNav as SubNav$1 } from '@primer/react';
|
|
1
|
+
import { SubNav as SubNav$1, Box } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const SubNavImpl = /*#__PURE__*/forwardRef(function SubNav(props, ref) {
|
package/dist/components/Text.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TextInput as TextInput$1 } from '@primer/react';
|
|
1
|
+
import { TextInput as TextInput$1, sx } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
import styled from 'styled-components';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Textarea as Textarea$1 } from '@primer/react';
|
|
1
|
+
import { Textarea as Textarea$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
import { forwardRef } from 'react';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ToggleSwitch as ToggleSwitch$1 } from '@primer/react';
|
|
1
|
+
import { Box, ToggleSwitch as ToggleSwitch$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
|
package/dist/components/Token.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type TooltipProps as PrimerTooltipProps, type SlotMarker } from '@primer/react';
|
|
1
|
+
import { type TooltipProps as PrimerTooltipProps, type SxProp, type SlotMarker } from '@primer/react';
|
|
2
2
|
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
3
|
-
import type { SxProp } from '../sx';
|
|
4
3
|
type TooltipProps = PrimerTooltipProps & SxProp;
|
|
5
4
|
declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>> & SlotMarker;
|
|
6
5
|
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,EAEL,KAAK,YAAY,IAAI,kBAAkB,EACvC,KAAK,MAAM,EACX,KAAK,UAAU,EAChB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AAEpF,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,8 +1,6 @@
|
|
|
1
|
-
import { UnderlineNav as UnderlineNav$1 } from '@primer/react';
|
|
2
|
-
import Box from './Box.js';
|
|
1
|
+
import { UnderlineNav as UnderlineNav$1, sx, Box } from '@primer/react';
|
|
3
2
|
import { forwardRef } from 'react';
|
|
4
3
|
import styled from 'styled-components';
|
|
5
|
-
import sx from '../sx.js';
|
|
6
4
|
import { jsx } from 'react/jsx-runtime';
|
|
7
5
|
|
|
8
6
|
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 sx from '
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import { ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
3
|
-
import sx from '
|
|
4
|
-
import Box from '../Box.js';
|
|
3
|
+
import { sx, Box } from '@primer/react';
|
|
5
4
|
import styled from 'styled-components';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
package/dist/components.json
CHANGED
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"ActionListTrailingVisualProps",
|
|
62
62
|
"AutocompleteOverlayProps",
|
|
63
63
|
"AvatarProps",
|
|
64
|
-
"BaseStylesProps",
|
|
65
64
|
"BetterSystemStyleObject",
|
|
66
65
|
"BoxProps",
|
|
67
66
|
"BreadcrumbsItemProps",
|
|
@@ -111,7 +110,6 @@
|
|
|
111
110
|
"TextInputActionProps",
|
|
112
111
|
"TextInputProps",
|
|
113
112
|
"TextProps",
|
|
114
|
-
"ThemeProviderProps",
|
|
115
113
|
"TimelineBadgeProps",
|
|
116
114
|
"TimelineBodyProps",
|
|
117
115
|
"TimelineBreakProps",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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,
|
|
5
|
-
export {
|
|
4
|
+
export { ThemeProvider, useTheme, useColorSchemeVar, BaseStyles } from './components/FeatureFlaggedTheming';
|
|
5
|
+
export { merge } from '@primer/react';
|
|
6
6
|
export { theme } from '@primer/react';
|
|
7
|
-
export {
|
|
7
|
+
export { themeGet } from '@primer/react';
|
|
8
8
|
export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListLinkItemProps, type ActionListGroupProps, type ActionListDividerProps, type ActionListLeadingVisualProps, type ActionListTrailingVisualProps, type ActionListTrailingActionProps, } from './components/ActionList';
|
|
9
9
|
export { ActionMenu } from './components/ActionMenu';
|
|
10
10
|
export { Autocomplete, type AutocompleteOverlayProps } from './components/Autocomplete';
|
|
@@ -44,6 +44,6 @@ export { Tooltip, type TooltipProps } from './components/Tooltip';
|
|
|
44
44
|
export { Token, type TokenProps } from './components/Token';
|
|
45
45
|
export { Truncate, type TruncateProps } from './components/Truncate';
|
|
46
46
|
export { UnderlineNav, type UnderlineNavProps, type UnderlineNavItemProps } from './components/UnderlineNav';
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
47
|
+
export { sx, type SxProp } from './sx';
|
|
48
|
+
export type { BetterSystemStyleObject } from './styled-props';
|
|
49
49
|
//# 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,kBAAkB,CAAA;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU,EAAC,MAAM,oCAAoC,CAAA;AACzG,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AACnC,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AACnC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAEtC,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,GACnC,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAC,YAAY,EAAE,KAAK,wBAAwB,EAAC,MAAM,2BAA2B,CAAA;AACrF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;AAClH,OAAO,EAAC,eAAe,IAAI,MAAM,EAAE,KAAK,oBAAoB,IAAI,WAAW,EAAC,MAAM,qBAAqB,CAAA;AACvG,OAAO,EAAC,QAAQ,EAAE,KAAK,aAAa,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,aAAa,EAAE,KAAK,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AACjF,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,MAAM,2BAA2B,CAAA;AAC9E,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAA;AACxC,OAAO,EAAC,WAAW,EAAE,KAAK,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;AAC3E,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAC,IAAI,EAAE,KAAK,SAAS,EAAC,MAAM,mBAAmB,CAAA;AACtD,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAA;AACxE,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,MAAM,2BAA2B,CAAA;AAC9E,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,GACrC,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,qBAAqB,CAAA;AAClF,OAAO,EAAC,IAAI,EAAE,KAAK,SAAS,EAAC,MAAM,mBAAmB,CAAA;AACtD,OAAO,EAAC,QAAQ,EAAE,KAAK,aAAa,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAC,MAAM,wBAAwB,CAAA;AAChG,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,MAAM,2BAA2B,CAAA;AAC9E,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAC,QAAQ,EAAE,KAAK,aAAa,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAE1G,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,MAAM,CAAA;AAEpC,YAAY,EAAC,uBAAuB,EAAC,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { ThemeProvider, useColorSchemeVar, useTheme } from './components/ThemeProvider.js';
|
|
5
|
-
export { BaseStyles } from './components/BaseStyles.js';
|
|
6
|
-
export { get as themeGet } from './theme-get.js';
|
|
2
|
+
export { Box, Details, ProgressBar, merge, sx, theme, themeGet } from '@primer/react';
|
|
3
|
+
export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme } from './components/FeatureFlaggedTheming.js';
|
|
7
4
|
export { ActionList } from './components/ActionList.js';
|
|
8
5
|
export { ActionMenu } from './components/ActionMenu.js';
|
|
9
6
|
export { Autocomplete } from './components/Autocomplete.js';
|
|
@@ -43,5 +40,3 @@ export { Tooltip } from './components/Tooltip.js';
|
|
|
43
40
|
export { Token } from './components/Token.js';
|
|
44
41
|
export { Truncate } from './components/Truncate.js';
|
|
45
42
|
export { UnderlineNav } from './components/UnderlineNav.js';
|
|
46
|
-
export { default as sx } from './sx.js';
|
|
47
|
-
export { default as merge } from 'deepmerge';
|
package/dist/styled-props.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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';
|
|
4
5
|
//# 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;AAEb,YAAY,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAA"}
|
package/dist/sx.d.ts
CHANGED
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
|
|
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
|
-
};
|
|
1
|
+
export { sx, type SxProp } from '@primer/react';
|
|
8
2
|
export type CSSCustomProperties = {
|
|
9
3
|
[key: `--${string}`]: string | number;
|
|
10
4
|
};
|
|
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 };
|
|
26
5
|
//# 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,
|
|
1
|
+
{"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAC7C,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,GAAG,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;CACtC,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-20251023145108",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -27,23 +27,13 @@
|
|
|
27
27
|
"lint:npm": "publint --types",
|
|
28
28
|
"type-check": "tsc --noEmit"
|
|
29
29
|
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@styled-system/css": "^5.1.5",
|
|
32
|
-
"@styled-system/props": "^5.1.5",
|
|
33
|
-
"@styled-system/theme-get": "^5.1.2",
|
|
34
|
-
"@types/styled-system": "^5.1.23",
|
|
35
|
-
"@types/styled-system__css": "^5.0.16",
|
|
36
|
-
"@types/styled-system__theme-get": "^5.0.1",
|
|
37
|
-
"styled-system": "^5.1.5"
|
|
38
|
-
},
|
|
39
30
|
"devDependencies": {
|
|
40
31
|
"@babel/preset-react": "^7.27.1",
|
|
41
32
|
"@babel/preset-typescript": "^7.27.1",
|
|
42
|
-
"@primer/react": "0.0.0-
|
|
33
|
+
"@primer/react": "0.0.0-20251023145108",
|
|
43
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
44
35
|
"@types/react": "18.3.11",
|
|
45
36
|
"@types/react-dom": "18.3.1",
|
|
46
|
-
"@types/styled-components": "^5.1.26",
|
|
47
37
|
"@vitejs/plugin-react": "^4.3.3",
|
|
48
38
|
"babel-plugin-styled-components": "2.1.4",
|
|
49
39
|
"publint": "^0.3.12",
|
|
@@ -56,7 +46,7 @@
|
|
|
56
46
|
"typescript": "^5.9.2"
|
|
57
47
|
},
|
|
58
48
|
"peerDependencies": {
|
|
59
|
-
"@primer/react": "0.0.0-
|
|
49
|
+
"@primer/react": "0.0.0-20251023145108",
|
|
60
50
|
"@types/react": "18.x || 19.x",
|
|
61
51
|
"@types/react-dom": "18.x || 19.x",
|
|
62
52
|
"@types/react-is": "18.x || 19.x",
|
package/dist/components/Box.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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 };
|
package/dist/sx.js
DELETED
package/dist/theme-get.d.ts
DELETED
package/dist/theme-get.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme-get.d.ts","sourceRoot":"","sources":["../src/theme-get.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG,GAAI,KAAK,MAAM,wBAAsC,CAAA"}
|
package/dist/theme-get.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { themeGet } from '@styled-system/theme-get';
|
|
2
|
-
import * as styledSystem from 'styled-system';
|
|
3
|
-
import { theme } from '@primer/react';
|
|
4
|
-
|
|
5
|
-
const {
|
|
6
|
-
get: getKey
|
|
7
|
-
} = styledSystem;
|
|
8
|
-
const get = key => themeGet(key, getKey(theme, key));
|
|
9
|
-
|
|
10
|
-
export { get };
|