@primer/styled-react 0.0.0-20251007221437 → 0.0.0-20251007223355
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/{PageHeader-BYlYLcfB.js → Tooltip-DIHgr01r.js} +77 -11
- package/dist/components/ActionList.d.ts +36 -0
- package/dist/components/ActionList.d.ts.map +1 -0
- package/dist/components/ActionMenu.d.ts +12 -0
- package/dist/components/ActionMenu.d.ts.map +1 -0
- package/dist/components/Autocomplete.d.ts +15 -0
- package/dist/components/Autocomplete.d.ts.map +1 -0
- package/dist/components/Avatar.d.ts +13 -0
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/components/Breadcrumbs.d.ts +18 -0
- package/dist/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/Checkbox.d.ts +5 -0
- package/dist/components/Checkbox.d.ts.map +1 -0
- package/dist/components/CheckboxGroup.d.ts +22 -0
- package/dist/components/CheckboxGroup.d.ts.map +1 -0
- package/dist/components/CircleBadge.d.ts +7 -0
- package/dist/components/CircleBadge.d.ts.map +1 -0
- package/dist/components/CounterLabel.d.ts +10 -0
- package/dist/components/CounterLabel.d.ts.map +1 -0
- package/dist/components/DataTable.d.ts +11 -0
- package/dist/components/DataTable.d.ts.map +1 -0
- package/dist/components/Dialog.d.ts +19 -0
- package/dist/components/Dialog.d.ts.map +1 -0
- package/dist/components/Header.d.ts.map +1 -1
- package/dist/components/Heading.d.ts +8 -0
- package/dist/components/Heading.d.ts.map +1 -0
- package/dist/components/Label.d.ts +9 -0
- package/dist/components/Label.d.ts.map +1 -0
- package/dist/components/Link.d.ts +7 -0
- package/dist/components/Link.d.ts.map +1 -0
- package/dist/components/NavList.d.ts +33 -0
- package/dist/components/NavList.d.ts.map +1 -0
- package/dist/components/Overlay.d.ts +7 -0
- package/dist/components/Overlay.d.ts.map +1 -0
- package/dist/components/PageHeader.d.ts +18 -14
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/components/PageLayout.d.ts +18 -0
- package/dist/components/PageLayout.d.ts.map +1 -0
- package/dist/components/RadioGroup.d.ts +22 -0
- package/dist/components/RadioGroup.d.ts.map +1 -0
- package/dist/components/RelativeTime.d.ts +6 -0
- package/dist/components/RelativeTime.d.ts.map +1 -0
- package/dist/components/SegmentedControl.d.ts +12 -0
- package/dist/components/SegmentedControl.d.ts.map +1 -0
- package/dist/components/Spinner.d.ts +6 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/StateLabel.d.ts +9 -0
- package/dist/components/StateLabel.d.ts.map +1 -0
- package/dist/components/SubNav.d.ts +9 -0
- package/dist/components/SubNav.d.ts.map +1 -0
- package/dist/components/Text.d.ts +7 -0
- package/dist/components/Text.d.ts.map +1 -0
- package/dist/components/Timeline.d.ts +26 -0
- package/dist/components/Timeline.d.ts.map +1 -0
- package/dist/components/ToggleSwitch.d.ts +6 -0
- package/dist/components/ToggleSwitch.d.ts.map +1 -0
- package/dist/components/Token.d.ts +7 -0
- package/dist/components/Token.d.ts.map +1 -0
- package/dist/components/Tooltip.d.ts +6 -0
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/components/Truncate.d.ts +7 -0
- package/dist/components/Truncate.d.ts.map +1 -0
- package/dist/components/UnderlineNav.d.ts +11 -0
- package/dist/components/UnderlineNav.d.ts.map +1 -0
- package/dist/components/UnderlinePanels.d.ts +12 -0
- package/dist/components/UnderlinePanels.d.ts.map +1 -0
- package/dist/components/deprecated/ActionList.d.ts +23 -0
- package/dist/components/deprecated/ActionList.d.ts.map +1 -0
- package/dist/components/deprecated/DialogV1.d.ts +11 -0
- package/dist/components/deprecated/DialogV1.d.ts.map +1 -0
- package/dist/components/deprecated/Octicon.d.ts +17 -0
- package/dist/components/deprecated/Octicon.d.ts.map +1 -0
- package/dist/components/deprecated/TabNav.d.ts +9 -0
- package/dist/components/deprecated/TabNav.d.ts.map +1 -0
- package/dist/components/deprecated/Tooltip.d.ts +13 -0
- package/dist/components/deprecated/Tooltip.d.ts.map +1 -0
- package/dist/components.json +59 -1
- package/dist/deprecated.d.ts +5 -1
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +179 -1
- package/dist/experimental.d.ts +4 -1
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +55 -5
- package/dist/index.d.ts +50 -81
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +480 -37
- package/dist/styled-props.d.ts +5 -0
- package/dist/styled-props.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type SpinnerProps as PrimerSpinnerProps } from '@primer/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SxProp } from '../sx';
|
|
4
|
+
export type SpinnerProps = PrimerSpinnerProps & SxProp;
|
|
5
|
+
export declare function Spinner(props: SpinnerProps): React.JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,eAAe,CAAA;AACpG,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAEtD,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,qBAE1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type StateLabelProps as PrimerStateLabelProps } from '@primer/react';
|
|
2
|
+
import type { SxProp } from '../sx';
|
|
3
|
+
type StateLabelProps = PrimerStateLabelProps & SxProp;
|
|
4
|
+
declare const StateLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
5
|
+
variant?: "small" | "normal";
|
|
6
|
+
status: "open" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable" | "closed";
|
|
7
|
+
} & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
export { StateLabel, type StateLabelProps };
|
|
9
|
+
//# sourceMappingURL=StateLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StateLabel.d.ts","sourceRoot":"","sources":["../../src/components/StateLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAG3G,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAErD,QAAA,MAAM,UAAU;;;4DAEd,CAAA;AAEF,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type SubNavProps as PrimerSubNavProps, type SubNavLinkProps as PrimerSubNavLinkProps } from '@primer/react';
|
|
2
|
+
import type { SxProp } from '../sx';
|
|
3
|
+
type SubNavProps = PrimerSubNavProps & SxProp;
|
|
4
|
+
type SubNavLinkProps = PrimerSubNavLinkProps & SxProp;
|
|
5
|
+
declare const SubNav: import("react").ForwardRefExoticComponent<Omit<SubNavProps, "ref"> & import("react").RefAttributes<HTMLElement>> & {
|
|
6
|
+
Link: import("react").ForwardRefExoticComponent<Omit<SubNavLinkProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
7
|
+
};
|
|
8
|
+
export { SubNav, type SubNavProps, type SubNavLinkProps };
|
|
9
|
+
//# sourceMappingURL=SubNav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubNav.d.ts","sourceRoot":"","sources":["../../src/components/SubNav.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,IAAI,iBAAiB,EACrC,KAAK,eAAe,IAAI,qBAAqB,EAC9C,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAM7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAMrD,QAAA,MAAM,MAAM;;CAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type TextProps as PrimerTextProps } from '@primer/react';
|
|
2
|
+
import { type SxProp } from '../sx';
|
|
3
|
+
import { type StyledComponent } from 'styled-components';
|
|
4
|
+
type TextProps = PrimerTextProps & SxProp;
|
|
5
|
+
declare const Text: StyledComponent<"span", any, TextProps, never>;
|
|
6
|
+
export { Text, type TextProps };
|
|
7
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,IAAI,eAAe,EAAC,MAAM,eAAe,CAAA;AACnF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGrC,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAGtD,KAAK,SAAS,GAAG,eAAe,GAAG,MAAM,CAAA;AAQzC,QAAA,MAAM,IAAI,EAGJ,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;AAEpD,OAAO,EAAC,IAAI,EAAE,KAAK,SAAS,EAAC,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type TimelineProps as PrimerTimelineProps, type TimelineItemProps as PrimerTimelineItemProps, type TimelineBadgeProps as PrimerTimelineBadgeProps, type TimelineBodyProps as PrimerTimelineBodyProps, type TimelineBreakProps as PrimerTimelineBreakProps } from '@primer/react';
|
|
2
|
+
import { type SxProp } from '../sx';
|
|
3
|
+
export type TimelineProps = PrimerTimelineProps & SxProp;
|
|
4
|
+
export type TimelineItemProps = PrimerTimelineItemProps & SxProp;
|
|
5
|
+
export type TimelineBadgeProps = PrimerTimelineBadgeProps & SxProp;
|
|
6
|
+
export type TimelineBodyProps = PrimerTimelineBodyProps & SxProp;
|
|
7
|
+
export type TimelineBreakProps = PrimerTimelineBreakProps & SxProp;
|
|
8
|
+
declare function TimelineBadge(props: TimelineBadgeProps): import("react").JSX.Element;
|
|
9
|
+
export declare const Timeline: import("react").ForwardRefExoticComponent<{
|
|
10
|
+
clipSidebar?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>> & {
|
|
13
|
+
Item: import("react").ForwardRefExoticComponent<{
|
|
14
|
+
condensed?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Badge: typeof TimelineBadge;
|
|
18
|
+
Body: import("react").ForwardRefExoticComponent<{
|
|
19
|
+
className?: string;
|
|
20
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
Break: import("react").ForwardRefExoticComponent<{
|
|
22
|
+
className?: string;
|
|
23
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/components/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,IAAI,mBAAmB,EACzC,KAAK,iBAAiB,IAAI,uBAAuB,EACjD,KAAK,kBAAkB,IAAI,wBAAwB,EACnD,KAAK,iBAAiB,IAAI,uBAAuB,EACjD,KAAK,kBAAkB,IAAI,wBAAwB,EACpD,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,MAAM,CAAA;AACxD,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAChE,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG,MAAM,CAAA;AAClE,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAChE,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG,MAAM,CAAA;AAUlE,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BAE/C;AAUD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAKnB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ToggleSwitchProps as PrimerToggleSwitchProps } from '@primer/react';
|
|
2
|
+
import type { StyledProps } from '../styled-props';
|
|
3
|
+
type ToggleSwitchProps = PrimerToggleSwitchProps & Omit<StyledProps, keyof PrimerToggleSwitchProps>;
|
|
4
|
+
declare const ToggleSwitch: import("react").ForwardRefExoticComponent<PrimerToggleSwitchProps & Omit<StyledProps, keyof PrimerToggleSwitchProps> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { ToggleSwitch, type ToggleSwitchProps };
|
|
6
|
+
//# sourceMappingURL=ToggleSwitch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../src/components/ToggleSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AAGnH,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAEhD,KAAK,iBAAiB,GAAG,uBAAuB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,uBAAuB,CAAC,CAAA;AAEnG,QAAA,MAAM,YAAY,0KAEhB,CAAA;AAEF,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type TokenProps as PrimerTokenProps, type SxProp } from '@primer/react';
|
|
2
|
+
import type { ForwardRefComponent } from '../polymorphic';
|
|
3
|
+
import type { PropsWithChildren } from 'react';
|
|
4
|
+
type TokenProps = PropsWithChildren<PrimerTokenProps> & SxProp;
|
|
5
|
+
declare const Token: ForwardRefComponent<'a' | 'button' | 'span', TokenProps>;
|
|
6
|
+
export { Token, type TokenProps };
|
|
7
|
+
//# sourceMappingURL=Token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../src/components/Token.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,UAAU,IAAI,gBAAgB,EACnC,KAAK,MAAM,EAIZ,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAE5C,KAAK,UAAU,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAA;AAE9D,QAAA,MAAM,KAAK,EAAE,mBAAmB,CAAC,GAAG,GAAG,QAAQ,GAAG,MAAM,EAAE,UAAU,CAgBP,CAAA;AAE7D,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type TooltipProps as PrimerTooltipProps, type SxProp } from '@primer/react';
|
|
2
|
+
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
3
|
+
type TooltipProps = PrimerTooltipProps & SxProp;
|
|
4
|
+
declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { Tooltip, type TooltipProps };
|
|
6
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAE5G,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,CAKnF,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type TruncateProps as PrimerTruncateProps } from '@primer/react';
|
|
2
|
+
import { type SxProp } from '../sx';
|
|
3
|
+
import type { PropsWithChildren } from 'react';
|
|
4
|
+
import type { ForwardRefComponent } from '../polymorphic';
|
|
5
|
+
export type TruncateProps = PropsWithChildren<PrimerTruncateProps> & SxProp;
|
|
6
|
+
export declare const Truncate: ForwardRefComponent<'div', TruncateProps>;
|
|
7
|
+
//# sourceMappingURL=Truncate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Truncate.d.ts","sourceRoot":"","sources":["../../src/components/Truncate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,IAAI,mBAAmB,EAAC,MAAM,eAAe,CAAA;AACnG,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAAA;AAE3E,eAAO,MAAM,QAAQ,EAAE,mBAAmB,CAAC,KAAK,EAAE,aAAa,CAI9D,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type UnderlineNavProps as PrimerUnderlineNavProps, type UnderlineNavItemProps as PrimerUnderlineNavItemProps } from '@primer/react';
|
|
2
|
+
import type { ForwardRefComponent } from '../polymorphic';
|
|
3
|
+
import { type SxProp } from '../sx';
|
|
4
|
+
export type UnderlineNavProps = PrimerUnderlineNavProps & SxProp;
|
|
5
|
+
export declare const UnderlineNavImpl: ForwardRefComponent<"nav", UnderlineNavProps>;
|
|
6
|
+
export type UnderlineNavItemProps = PrimerUnderlineNavItemProps & SxProp & React.HTMLAttributes<HTMLElement>;
|
|
7
|
+
export declare const UnderlineNavItem: ForwardRefComponent<"a", UnderlineNavItemProps>;
|
|
8
|
+
export declare const UnderlineNav: ForwardRefComponent<"nav", UnderlineNavProps> & {
|
|
9
|
+
Item: ForwardRefComponent<"a", UnderlineNavItemProps>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=UnderlineNav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnderlineNav.d.ts","sourceRoot":"","sources":["../../src/components/UnderlineNav.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,IAAI,uBAAuB,EACjD,KAAK,qBAAqB,IAAI,2BAA2B,EAC1D,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAMhE,eAAO,MAAM,gBAAgB,EAEvB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAA;AAEnD,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAAG,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAS5G,eAAO,MAAM,gBAAgB,EAEvB,mBAAmB,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAA;AAErD,eAAO,MAAM,YAAY;;CAEvB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type UnderlinePanelsProps as PrimerUnderlinePanelsProps, type UnderlinePanelsPanelProps, type UnderlinePanelsTabProps } from '@primer/react/experimental';
|
|
2
|
+
import { type SxProp } from '../sx';
|
|
3
|
+
type UnderlinePanelsProps = PrimerUnderlinePanelsProps & SxProp;
|
|
4
|
+
declare const UnderlinePanels: {
|
|
5
|
+
({ as, ...props }: UnderlinePanelsProps): import("react").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
} & {
|
|
8
|
+
Tab: import("react").FC<UnderlinePanelsTabProps>;
|
|
9
|
+
Panel: import("react").FC<UnderlinePanelsPanelProps>;
|
|
10
|
+
};
|
|
11
|
+
export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps };
|
|
12
|
+
//# sourceMappingURL=UnderlinePanels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnderlinePanels.d.ts","sourceRoot":"","sources":["../../src/components/UnderlinePanels.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,IAAI,0BAA0B,EACvD,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC7B,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,oBAAoB,GAAG,0BAA0B,GAAG,MAAM,CAAA;AAe/D,QAAA,MAAM,eAAe;uBANwB,oBAAoB;;;;;CAS/D,CAAA;AAEF,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,uBAAuB,EAAE,KAAK,yBAAyB,EAAC,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type ActionListProps as PrimerActionListProps, type ActionListItemProps as PrimerActionListItemProps, type ActionListGroupProps as PrimerActionListGroupProps } from '@primer/react/deprecated';
|
|
3
|
+
import { type SxProp } from '../../sx';
|
|
4
|
+
import type { ActionListDividerProps } from '@primer/react';
|
|
5
|
+
type ActionListProps = PropsWithChildren<PrimerActionListProps & SxProp>;
|
|
6
|
+
type ActionListItemProps = PropsWithChildren<PrimerActionListItemProps & SxProp & {
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}>;
|
|
9
|
+
type ActionListGroupProps = PropsWithChildren<PrimerActionListGroupProps & SxProp>;
|
|
10
|
+
declare function ActionListGroup(props: ActionListGroupProps): import("react").JSX.Element;
|
|
11
|
+
declare function ActionListDivider(props: ActionListDividerProps): import("react").JSX.Element;
|
|
12
|
+
declare const ActionList: import("react").ForwardRefExoticComponent<ActionListProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
13
|
+
Item: import("react").ForwardRefExoticComponent<PrimerActionListItemProps & SxProp & {
|
|
14
|
+
as?: React.ElementType;
|
|
15
|
+
} & {
|
|
16
|
+
children?: import("react").ReactNode | undefined;
|
|
17
|
+
} & import("react").RefAttributes<HTMLLIElement>>;
|
|
18
|
+
Group: typeof ActionListGroup;
|
|
19
|
+
Divider: typeof ActionListDivider;
|
|
20
|
+
};
|
|
21
|
+
export type { ActionListProps, ActionListItemProps, ActionListGroupProps };
|
|
22
|
+
export { ActionList };
|
|
23
|
+
//# sourceMappingURL=ActionList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionList.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/ActionList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,iBAAiB,EAAa,MAAM,OAAO,CAAA;AACxD,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,mBAAmB,IAAI,yBAAyB,EACrD,KAAK,oBAAoB,IAAI,0BAA0B,EACxD,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AAGxC,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAEzD,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,GAAG,MAAM,CAAC,CAAA;AAExE,KAAK,mBAAmB,GAAG,iBAAiB,CAAC,yBAAyB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAC,CAAA;AAC3G,KAAK,oBAAoB,GAAG,iBAAiB,CAAC,0BAA0B,GAAG,MAAM,CAAC,CAAA;AAgBlF,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BAEnD;AAED,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAEvD;AAED,QAAA,MAAM,UAAU;;aAzBwE,KAAK,CAAC,WAAW;;;;;;CA6BvG,CAAA;AAEF,YAAY,EAAC,eAAe,EAAE,mBAAmB,EAAE,oBAAoB,EAAC,CAAA;AACxE,OAAO,EAAC,UAAU,EAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DialogProps as PrimerDialogProps, DialogHeaderProps as PrimerDialogHeaderProps } from '@primer/react/deprecated';
|
|
2
|
+
import type { SxProp } from '../../sx';
|
|
3
|
+
import type { ForwardRefComponent } from '../../polymorphic';
|
|
4
|
+
type DialogProps = PrimerDialogProps & SxProp;
|
|
5
|
+
type DialogHeaderProps = PrimerDialogHeaderProps & SxProp;
|
|
6
|
+
declare const Dialog: ForwardRefComponent<"div", DialogProps> & {
|
|
7
|
+
Header: ForwardRefComponent<"div", DialogHeaderProps>;
|
|
8
|
+
};
|
|
9
|
+
export { Dialog };
|
|
10
|
+
export type { DialogProps, DialogHeaderProps };
|
|
11
|
+
//# sourceMappingURL=DialogV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogV1.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/DialogV1.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,IAAI,iBAAiB,EAChC,iBAAiB,IAAI,uBAAuB,EAC7C,MAAM,0BAA0B,CAAA;AAEjC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAEpC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAA;AAE1D,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAU7C,KAAK,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAUzD,QAAA,MAAM,MAAM;;CAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAE,iBAAiB,EAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type OcticonProps as PrimerOcticonProps } from '@primer/react/deprecated';
|
|
2
|
+
import { type SxProp } from '../../sx';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
5
|
+
*/
|
|
6
|
+
export type OcticonProps = PrimerOcticonProps & SxProp & {
|
|
7
|
+
color?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const Octicon: import("react").ForwardRefExoticComponent<{
|
|
10
|
+
icon: React.ElementType;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
} & import("@primer/octicons-react").IconProps & SxProp & {
|
|
13
|
+
color?: string;
|
|
14
|
+
} & import("react").RefAttributes<unknown>>;
|
|
15
|
+
export default Octicon;
|
|
16
|
+
export { Octicon };
|
|
17
|
+
//# sourceMappingURL=Octicon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Octicon.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/Octicon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAE1G,OAAO,EAAC,KAAK,MAAM,EAAK,MAAM,UAAU,CAAA;AAGxC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,MAAM,GAAG;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAazE,QAAA,MAAM,OAAO;;;;YAbqD,MAAM;2CAetE,CAAA;AAEF,eAAe,OAAO,CAAA;AACtB,OAAO,EAAC,OAAO,EAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TabNavProps as PrimerTabNavProps, TabNavLinkProps as PrimerTabNavLinkProps } from '@primer/react/deprecated';
|
|
2
|
+
import { type SxProp } from '../../sx';
|
|
3
|
+
type TabNavProps = PrimerTabNavProps & SxProp;
|
|
4
|
+
type TabNavLinkProps = PrimerTabNavLinkProps & SxProp;
|
|
5
|
+
declare const TabNav: (({ as, ...props }: TabNavProps) => import("react").JSX.Element) & {
|
|
6
|
+
Link: import("react").ForwardRefExoticComponent<Omit<TabNavLinkProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
7
|
+
};
|
|
8
|
+
export { TabNav, type TabNavProps, type TabNavLinkProps };
|
|
9
|
+
//# sourceMappingURL=TabNav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabNav.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/TabNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAE,eAAe,IAAI,qBAAqB,EAAC,MAAM,0BAA0B,CAAA;AACxH,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AAIxC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAC7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAsBrD,QAAA,MAAM,MAAM,sBAdwB,WAAW;;CAgB7C,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TooltipProps as PrimerTooltipProps } from '@primer/react/deprecated';
|
|
2
|
+
import { type SxProp } from '../../sx';
|
|
3
|
+
import { type PropsWithChildren } from 'react';
|
|
4
|
+
type TooltipProps = PropsWithChildren<PrimerTooltipProps & SxProp & {
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
}>;
|
|
7
|
+
declare const TooltipImpl: import("react").ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
declare const Tooltip: typeof TooltipImpl & {
|
|
9
|
+
alignments: string[];
|
|
10
|
+
directions: string[];
|
|
11
|
+
};
|
|
12
|
+
export { Tooltip, type TooltipProps };
|
|
13
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAE1G,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AACxC,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAI5C,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAC,CAAA;AAQ7F,QAAA,MAAM,WAAW,uHAEf,CAAA;AAEF,QAAA,MAAM,OAAO,EAAkB,OAAO,WAAW,GAAG;IAClD,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAMD,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
package/dist/components.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"Autocomplete",
|
|
6
6
|
"Avatar",
|
|
7
7
|
"Box",
|
|
8
|
+
"Breadcrumb",
|
|
8
9
|
"Breadcrumbs",
|
|
9
10
|
"Button",
|
|
10
11
|
"Checkbox",
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
"Overlay",
|
|
27
28
|
"PageHeader",
|
|
28
29
|
"PageLayout",
|
|
30
|
+
"ProgressBar",
|
|
29
31
|
"RadioGroup",
|
|
30
32
|
"RelativeTime",
|
|
31
33
|
"SegmentedControl",
|
|
@@ -48,17 +50,73 @@
|
|
|
48
50
|
"UnderlinePanels"
|
|
49
51
|
],
|
|
50
52
|
"types": [
|
|
53
|
+
"ActionListDividerProps",
|
|
54
|
+
"ActionListGroupProps",
|
|
55
|
+
"ActionListItemProps",
|
|
56
|
+
"ActionListLeadingVisualProps",
|
|
57
|
+
"ActionListLinkItemProps",
|
|
58
|
+
"ActionListProps",
|
|
59
|
+
"ActionListTrailingActionProps",
|
|
60
|
+
"ActionListTrailingVisualProps",
|
|
61
|
+
"AutocompleteOverlayProps",
|
|
62
|
+
"AvatarProps",
|
|
51
63
|
"BetterSystemStyleObject",
|
|
52
64
|
"BoxProps",
|
|
65
|
+
"BreadcrumbsItemProps",
|
|
66
|
+
"BreadcrumbsProps",
|
|
67
|
+
"CheckboxGroupProps",
|
|
68
|
+
"CheckboxProps",
|
|
69
|
+
"CounterLabelProps",
|
|
70
|
+
"DataTableContainerProps",
|
|
71
|
+
"DialogHeaderProps",
|
|
72
|
+
"DialogProps",
|
|
53
73
|
"HeaderProps",
|
|
74
|
+
"LabelProps",
|
|
54
75
|
"LinkButtonProps",
|
|
76
|
+
"LinkProps",
|
|
77
|
+
"NavListProps",
|
|
78
|
+
"OcticonProps",
|
|
55
79
|
"PageHeaderActionsProps",
|
|
56
80
|
"PageHeaderProps",
|
|
57
81
|
"PageHeaderTitleProps",
|
|
82
|
+
"PageLayoutProps",
|
|
83
|
+
"RadioGroupProps",
|
|
84
|
+
"RelativeTimeProps",
|
|
85
|
+
"SegmentedControlButtonProps",
|
|
86
|
+
"SegmentedControlIconButtonProps",
|
|
87
|
+
"SegmentedControlProps",
|
|
88
|
+
"SpinnerProps",
|
|
89
|
+
"StateLabelProps",
|
|
90
|
+
"SubNavLinkProps",
|
|
91
|
+
"SubNavProps",
|
|
58
92
|
"SxProp",
|
|
93
|
+
"TableActionsProps",
|
|
94
|
+
"TableBodyProps",
|
|
95
|
+
"TableCellProps",
|
|
96
|
+
"TableHeaderProps",
|
|
97
|
+
"TableHeadProps",
|
|
98
|
+
"TableProps",
|
|
99
|
+
"TableRowProps",
|
|
100
|
+
"TableSubtitleProps",
|
|
101
|
+
"TableTitleProps",
|
|
102
|
+
"TabNavLinkProps",
|
|
103
|
+
"TabNavProps",
|
|
59
104
|
"TextInputProps",
|
|
105
|
+
"TextProps",
|
|
106
|
+
"TimelineBadgeProps",
|
|
107
|
+
"TimelineBodyProps",
|
|
108
|
+
"TimelineBreakProps",
|
|
109
|
+
"TimelineItemProps",
|
|
110
|
+
"TimelineProps",
|
|
111
|
+
"ToggleSwitchProps",
|
|
60
112
|
"TokenProps",
|
|
61
|
-
"TooltipProps"
|
|
113
|
+
"TooltipProps",
|
|
114
|
+
"TruncateProps",
|
|
115
|
+
"UnderlineNavItemProps",
|
|
116
|
+
"UnderlineNavProps",
|
|
117
|
+
"UnderlinePanelsPanelProps",
|
|
118
|
+
"UnderlinePanelsProps",
|
|
119
|
+
"UnderlinePanelsTabProps"
|
|
62
120
|
],
|
|
63
121
|
"utilities": [
|
|
64
122
|
"merge",
|
package/dist/deprecated.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { TabNav, type TabNavProps, type TabNavLinkProps } from './components/deprecated/TabNav';
|
|
2
|
+
export { Dialog, type DialogProps, type DialogHeaderProps } from './components/deprecated/DialogV1';
|
|
3
|
+
export { Octicon, type OcticonProps } from './components/deprecated/Octicon';
|
|
4
|
+
export { Tooltip, type TooltipProps } from './components/deprecated/Tooltip';
|
|
5
|
+
export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListGroupProps, } from './components/deprecated/ActionList';
|
|
2
6
|
//# sourceMappingURL=deprecated.d.ts.map
|
package/dist/deprecated.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,gCAAgC,CAAA;AAC7F,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAC,MAAM,kCAAkC,CAAA;AACjG,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,oCAAoC,CAAA"}
|
package/dist/deprecated.js
CHANGED
|
@@ -1 +1,179 @@
|
|
|
1
|
-
|
|
1
|
+
import { TabNav as TabNav$1, Dialog as Dialog$1, Octicon as Octicon$1, Tooltip as Tooltip$1, ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
2
|
+
import { sx, Box } from '@primer/react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
const StyledTabNav = styled(TabNav$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "TabNav__StyledTabNav",
|
|
11
|
+
componentId: "sc-13kad3t-0"
|
|
12
|
+
})(["", ""], sx);
|
|
13
|
+
const TabNavImpl = ({
|
|
14
|
+
as,
|
|
15
|
+
...props
|
|
16
|
+
}) => {
|
|
17
|
+
return /*#__PURE__*/jsx(StyledTabNav, {
|
|
18
|
+
...props,
|
|
19
|
+
...(as ? {
|
|
20
|
+
forwardedAs: as
|
|
21
|
+
} : {})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const StyledTabNavLink = styled(TabNav$1.Link).withConfig({
|
|
25
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
26
|
+
}).withConfig({
|
|
27
|
+
displayName: "TabNav__StyledTabNavLink",
|
|
28
|
+
componentId: "sc-13kad3t-1"
|
|
29
|
+
})(["", ""], sx);
|
|
30
|
+
const TabNavLink = /*#__PURE__*/forwardRef(({
|
|
31
|
+
as,
|
|
32
|
+
...props
|
|
33
|
+
}, ref) => /*#__PURE__*/jsx(StyledTabNavLink, {
|
|
34
|
+
...props,
|
|
35
|
+
...(as ? {
|
|
36
|
+
forwardedAs: as
|
|
37
|
+
} : {}),
|
|
38
|
+
ref: ref
|
|
39
|
+
}));
|
|
40
|
+
const TabNav = Object.assign(TabNavImpl, {
|
|
41
|
+
Link: TabNavLink
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const StyledDialog = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
|
|
45
|
+
return /*#__PURE__*/jsx(Box, {
|
|
46
|
+
as: Dialog$1,
|
|
47
|
+
ref: ref,
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
const DialogImpl = /*#__PURE__*/forwardRef(({
|
|
52
|
+
as,
|
|
53
|
+
...props
|
|
54
|
+
}, ref) => /*#__PURE__*/jsx(StyledDialog, {
|
|
55
|
+
...props,
|
|
56
|
+
...(as ? {
|
|
57
|
+
forwardedAs: as
|
|
58
|
+
} : {}),
|
|
59
|
+
ref: ref
|
|
60
|
+
}));
|
|
61
|
+
const StyledDialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
|
|
62
|
+
return /*#__PURE__*/jsx(Box, {
|
|
63
|
+
as: Dialog$1.Header,
|
|
64
|
+
ref: ref,
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
const DialogHeader = /*#__PURE__*/forwardRef(({
|
|
69
|
+
as,
|
|
70
|
+
...props
|
|
71
|
+
}, ref) => /*#__PURE__*/jsx(StyledDialogHeader, {
|
|
72
|
+
...props,
|
|
73
|
+
...(as ? {
|
|
74
|
+
forwardedAs: as
|
|
75
|
+
} : {}),
|
|
76
|
+
ref: ref
|
|
77
|
+
}));
|
|
78
|
+
const Dialog = Object.assign(DialogImpl, {
|
|
79
|
+
Header: DialogHeader
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
84
|
+
*/
|
|
85
|
+
const StyledOcticon = styled(Octicon$1).withConfig({
|
|
86
|
+
shouldForwardProp(prop) {
|
|
87
|
+
return prop !== 'sx';
|
|
88
|
+
}
|
|
89
|
+
}).withConfig({
|
|
90
|
+
displayName: "Octicon__StyledOcticon",
|
|
91
|
+
componentId: "sc-jtj3m8-0"
|
|
92
|
+
})(["", ""], ({
|
|
93
|
+
color,
|
|
94
|
+
sx: sxProp
|
|
95
|
+
}) => sx({
|
|
96
|
+
sx: {
|
|
97
|
+
color,
|
|
98
|
+
...sxProp
|
|
99
|
+
}
|
|
100
|
+
}));
|
|
101
|
+
const Octicon = /*#__PURE__*/forwardRef(({
|
|
102
|
+
as,
|
|
103
|
+
...props
|
|
104
|
+
}, ref) => {
|
|
105
|
+
return /*#__PURE__*/jsx(StyledOcticon, {
|
|
106
|
+
...props,
|
|
107
|
+
...(as ? {
|
|
108
|
+
forwardedAs: as
|
|
109
|
+
} : {}),
|
|
110
|
+
ref: ref
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
const StyledTooltip = styled(Tooltip$1).withConfig({
|
|
115
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
116
|
+
}).withConfig({
|
|
117
|
+
displayName: "Tooltip__StyledTooltip",
|
|
118
|
+
componentId: "sc-145jcib-0"
|
|
119
|
+
})(["", ""], sx);
|
|
120
|
+
const TooltipImpl = /*#__PURE__*/forwardRef(function Tooltip({
|
|
121
|
+
as,
|
|
122
|
+
...props
|
|
123
|
+
}, ref) {
|
|
124
|
+
return /*#__PURE__*/jsx(StyledTooltip, {
|
|
125
|
+
...props,
|
|
126
|
+
...(as ? {
|
|
127
|
+
forwardedAs: as
|
|
128
|
+
} : {}),
|
|
129
|
+
ref: ref
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
const Tooltip = TooltipImpl;
|
|
133
|
+
|
|
134
|
+
// Preserve static properties from the original component
|
|
135
|
+
Tooltip.alignments = Tooltip$1.alignments;
|
|
136
|
+
Tooltip.directions = Tooltip$1.directions;
|
|
137
|
+
|
|
138
|
+
const ActionListImpl = /*#__PURE__*/forwardRef(function ActionList(props, ref) {
|
|
139
|
+
return /*#__PURE__*/jsx(Box, {
|
|
140
|
+
as: ActionList$1,
|
|
141
|
+
ref: ref,
|
|
142
|
+
...props
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
const StyledActionListItem = styled(ActionList$1.Item).withConfig({
|
|
146
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
147
|
+
}).withConfig({
|
|
148
|
+
displayName: "ActionList__StyledActionListItem",
|
|
149
|
+
componentId: "sc-1ugfmds-0"
|
|
150
|
+
})(["", ""], sx);
|
|
151
|
+
const ActionListItem = /*#__PURE__*/forwardRef(({
|
|
152
|
+
as,
|
|
153
|
+
...props
|
|
154
|
+
}, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
|
|
155
|
+
...props,
|
|
156
|
+
...(as ? {
|
|
157
|
+
forwardedAs: as
|
|
158
|
+
} : {}),
|
|
159
|
+
ref: ref
|
|
160
|
+
}));
|
|
161
|
+
function ActionListGroup(props) {
|
|
162
|
+
return /*#__PURE__*/jsx(Box, {
|
|
163
|
+
as: ActionList$1.Group,
|
|
164
|
+
...props
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function ActionListDivider(props) {
|
|
168
|
+
return /*#__PURE__*/jsx(Box, {
|
|
169
|
+
as: ActionList$1.Divider,
|
|
170
|
+
...props
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
const ActionList = Object.assign(ActionListImpl, {
|
|
174
|
+
Item: ActionListItem,
|
|
175
|
+
Group: ActionListGroup,
|
|
176
|
+
Divider: ActionListDivider
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
export { ActionList, Dialog, Octicon, TabNav, Tooltip };
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export { Dialog, type DialogProps } from './components/Dialog';
|
|
1
2
|
export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
|
|
2
|
-
export {
|
|
3
|
+
export { Tooltip, type TooltipProps } from './components/Tooltip';
|
|
4
|
+
export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps, } from './components/UnderlinePanels';
|
|
5
|
+
export { Table, type DataTableContainerProps, type TableProps, type TableHeadProps, type TableBodyProps, type TableRowProps, type TableHeaderProps, type TableCellProps, type TableTitleProps, type TableSubtitleProps, type TableActionsProps, } from './components/DataTable';
|
|
3
6
|
//# sourceMappingURL=experimental.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAE/D,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,8BAA8B,CAAA;AAErC,OAAO,EACL,KAAK,EACL,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,wBAAwB,CAAA"}
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
|
-
export { P as PageHeader } from './
|
|
2
|
-
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import 'react/jsx-runtime';
|
|
1
|
+
export { D as Dialog, P as PageHeader, T as Tooltip } from './Tooltip-DIHgr01r.js';
|
|
2
|
+
import { UnderlinePanels as UnderlinePanels$1, Table as Table$1 } from '@primer/react/experimental';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { sx } from '@primer/react';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
import 'react';
|
|
7
|
+
|
|
8
|
+
const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
|
|
9
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
10
|
+
}).withConfig({
|
|
11
|
+
displayName: "UnderlinePanels__StyledUnderlinePanels",
|
|
12
|
+
componentId: "sc-1w35i85-0"
|
|
13
|
+
})(["", ""], sx);
|
|
14
|
+
|
|
15
|
+
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
|
|
16
|
+
const UnderlinePanelsImpl = ({
|
|
17
|
+
as,
|
|
18
|
+
...props
|
|
19
|
+
}) => /*#__PURE__*/jsx(StyledUnderlinePanels, {
|
|
20
|
+
forwardedAs: as,
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
UnderlinePanelsImpl.displayName = 'UnderlinePanels';
|
|
24
|
+
const UnderlinePanels = Object.assign(UnderlinePanelsImpl, {
|
|
25
|
+
Tab: UnderlinePanels$1.Tab,
|
|
26
|
+
Panel: UnderlinePanels$1.Panel
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const {
|
|
30
|
+
Container: PrimerDataTableContainer,
|
|
31
|
+
...rest
|
|
32
|
+
} = Table$1;
|
|
33
|
+
const StyleDataTableContainer = styled(PrimerDataTableContainer).withConfig({
|
|
34
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
35
|
+
}).withConfig({
|
|
36
|
+
displayName: "DataTable__StyleDataTableContainer",
|
|
37
|
+
componentId: "sc-qy1ey2-0"
|
|
38
|
+
})(["", ""], sx);
|
|
39
|
+
function DataTableContainer({
|
|
40
|
+
as,
|
|
41
|
+
...rest
|
|
42
|
+
}) {
|
|
43
|
+
return /*#__PURE__*/jsx(StyleDataTableContainer, {
|
|
44
|
+
...rest,
|
|
45
|
+
...(as ? {
|
|
46
|
+
forwardedAs: as
|
|
47
|
+
} : {})
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
const Table = Object.assign(Table$1, {
|
|
51
|
+
Container: DataTableContainer,
|
|
52
|
+
...rest
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export { Table, UnderlinePanels };
|