@primer/styled-react 0.0.0-20251210204724 → 0.0.0-20260202191621
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 +145 -89
- package/dist/components/ActionMenu.js +15 -15
- package/dist/components/Avatar.js +11 -13
- package/dist/components/BaseStyles.js +47 -28
- package/dist/components/Box.js +10 -18
- package/dist/components/Breadcrumbs.js +32 -22
- package/dist/components/Button.js +105 -41
- package/dist/components/Button.stories.d.ts +8 -0
- package/dist/components/Button.stories.d.ts.map +1 -0
- package/dist/components/CounterLabel.js +11 -13
- package/dist/components/DataTable.js +27 -19
- package/dist/components/Dialog.js +79 -53
- package/dist/components/Flash.js +9 -9
- package/dist/components/FormControl.js +15 -15
- package/dist/components/Header.js +44 -36
- package/dist/components/Heading.js +9 -9
- package/dist/components/IconButton.js +36 -23
- package/dist/components/Label.js +22 -17
- package/dist/components/Link.js +22 -17
- package/dist/components/LinkButton.js +9 -9
- package/dist/components/Overlay.js +9 -9
- package/dist/components/PageHeader.js +100 -62
- package/dist/components/SegmentedControl.js +25 -27
- package/dist/components/Spinner.js +9 -9
- package/dist/components/Text.js +22 -17
- package/dist/components/TextInput.js +32 -25
- package/dist/components/Textarea.js +22 -17
- package/dist/components/ThemeProvider.js +185 -132
- package/dist/components/Timeline.js +38 -40
- package/dist/components/ToggleSwitch.js +11 -13
- package/dist/components/Token.js +22 -17
- package/dist/components/Tooltip.js +12 -14
- package/dist/components/Truncate.js +9 -9
- package/dist/components/UnderlineNav.js +39 -27
- package/dist/components/deprecated/ActionList.js +39 -34
- package/dist/components/deprecated/DialogV1.js +38 -28
- package/dist/components/deprecated/Octicon.js +35 -28
- package/dist/components/deprecated/TabNav.js +38 -24
- package/dist/components/deprecated/Tooltip.js +28 -20
- package/dist/components.json +2 -28
- package/dist/deprecated.js +5 -7
- package/dist/experimental.d.ts +0 -21
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +4 -7
- package/dist/index.d.ts +0 -122
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -48
- package/dist/sx.js +6 -7
- package/dist/theme-get.js +8 -8
- package/package.json +11 -7
- package/dist/components/Autocomplete.d.ts +0 -17
- package/dist/components/Autocomplete.d.ts.map +0 -1
- package/dist/components/Autocomplete.js +0 -23
- package/dist/components/Checkbox.d.ts +0 -5
- package/dist/components/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox.js +0 -17
- package/dist/components/CheckboxGroup.d.ts +0 -34
- package/dist/components/CheckboxGroup.d.ts.map +0 -1
- package/dist/components/CheckboxGroup.js +0 -41
- package/dist/components/CircleBadge.d.ts +0 -8
- package/dist/components/CircleBadge.d.ts.map +0 -1
- package/dist/components/CircleBadge.js +0 -12
- package/dist/components/NavList.d.ts +0 -30
- package/dist/components/NavList.d.ts.map +0 -1
- package/dist/components/NavList.js +0 -55
- package/dist/components/RadioGroup.d.ts +0 -34
- package/dist/components/RadioGroup.d.ts.map +0 -1
- package/dist/components/RadioGroup.js +0 -41
- package/dist/components/RelativeTime.d.ts +0 -6
- package/dist/components/RelativeTime.d.ts.map +0 -1
- package/dist/components/RelativeTime.js +0 -14
- package/dist/components/Select.d.ts +0 -8
- package/dist/components/Select.d.ts.map +0 -1
- package/dist/components/Select.js +0 -19
- package/dist/components/StateLabel.d.ts +0 -10
- package/dist/components/StateLabel.d.ts.map +0 -1
- package/dist/components/StateLabel.js +0 -16
- package/dist/components/SubNav.d.ts +0 -10
- package/dist/components/SubNav.d.ts.map +0 -1
- package/dist/components/SubNav.js +0 -28
- package/dist/components/UnderlinePanels.d.ts +0 -14
- package/dist/components/UnderlinePanels.d.ts.map +0 -1
- package/dist/components/UnderlinePanels.js +0 -23
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { sx } from "../sx.js";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import { NavList } from "@primer/react";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
-
//#region src/components/NavList.tsx
|
|
8
|
-
const StyledNavListImpl = styled(NavList).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
|
|
9
|
-
displayName: "NavList__StyledNavListImpl",
|
|
10
|
-
componentId: "sc-86jrwg-0"
|
|
11
|
-
})(["", ""], sx);
|
|
12
|
-
const NavListImpl = /* @__PURE__ */ forwardRef(function NavList$2({ as, ...props }, ref) {
|
|
13
|
-
return /* @__PURE__ */ jsx(StyledNavListImpl, {
|
|
14
|
-
ref,
|
|
15
|
-
...as ? { forwardedAs: as } : {},
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
const StyledNavListItem = styled(NavList.Item).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
|
|
20
|
-
displayName: "NavList__StyledNavListItem",
|
|
21
|
-
componentId: "sc-86jrwg-1"
|
|
22
|
-
})(["", ""], sx);
|
|
23
|
-
const NavListItem = /* @__PURE__ */ forwardRef(({ as, ...props }, ref) => {
|
|
24
|
-
return /* @__PURE__ */ jsx(StyledNavListItem, {
|
|
25
|
-
...props,
|
|
26
|
-
...as ? { forwardedAs: as } : {},
|
|
27
|
-
ref
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
const StyledNavListLeadingVisual = styled(NavList.LeadingVisual).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
|
|
31
|
-
displayName: "NavList__StyledNavListLeadingVisual",
|
|
32
|
-
componentId: "sc-86jrwg-2"
|
|
33
|
-
})(["", ""], sx);
|
|
34
|
-
const NavListLeadingVisual = /* @__PURE__ */ forwardRef(({ as, ...props }, ref) => {
|
|
35
|
-
return /* @__PURE__ */ jsx(StyledNavListLeadingVisual, {
|
|
36
|
-
...props,
|
|
37
|
-
...as ? { forwardedAs: as } : {},
|
|
38
|
-
ref
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
NavListLeadingVisual.__SLOT__ = NavList.LeadingVisual.__SLOT__;
|
|
42
|
-
const NavList$1 = Object.assign(NavListImpl, {
|
|
43
|
-
Item: NavListItem,
|
|
44
|
-
Group: NavList.Group,
|
|
45
|
-
GroupHeading: NavList.GroupHeading,
|
|
46
|
-
LeadingVisual: NavListLeadingVisual,
|
|
47
|
-
SubNav: NavList.SubNav,
|
|
48
|
-
Divider: NavList.Divider,
|
|
49
|
-
TrailingVisual: NavList.TrailingVisual,
|
|
50
|
-
TrailingAction: NavList.TrailingAction,
|
|
51
|
-
GroupExpand: NavList.GroupExpand
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
//#endregion
|
|
55
|
-
export { NavList$1 as NavList };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type RadioGroupProps as PrimerRadioGroupProps } from '@primer/react';
|
|
2
|
-
import React, { type PropsWithChildren } from 'react';
|
|
3
|
-
import type { SxProp } from '../sx';
|
|
4
|
-
export type RadioGroupProps = PropsWithChildren<PrimerRadioGroupProps> & SxProp;
|
|
5
|
-
type CheckboxOrRadioGroupLabelProps = PropsWithChildren<{
|
|
6
|
-
className?: string;
|
|
7
|
-
visuallyHidden?: boolean;
|
|
8
|
-
} & SxProp>;
|
|
9
|
-
type CheckboxOrRadioGroupCaptionProps = PropsWithChildren<{
|
|
10
|
-
className?: string;
|
|
11
|
-
} & SxProp>;
|
|
12
|
-
type CheckboxOrRadioGroupValidationProps = PropsWithChildren<{
|
|
13
|
-
className?: string;
|
|
14
|
-
variant: 'error' | 'success';
|
|
15
|
-
} & SxProp>;
|
|
16
|
-
export declare const RadioGroup: {
|
|
17
|
-
(props: RadioGroupProps): React.JSX.Element;
|
|
18
|
-
__SLOT__: symbol;
|
|
19
|
-
} & {
|
|
20
|
-
Label: {
|
|
21
|
-
(props: CheckboxOrRadioGroupLabelProps): React.JSX.Element;
|
|
22
|
-
__SLOT__: symbol | undefined;
|
|
23
|
-
};
|
|
24
|
-
Caption: {
|
|
25
|
-
(props: CheckboxOrRadioGroupCaptionProps): React.JSX.Element;
|
|
26
|
-
__SLOT__: symbol | undefined;
|
|
27
|
-
};
|
|
28
|
-
Validation: {
|
|
29
|
-
(props: CheckboxOrRadioGroupValidationProps): React.JSX.Element;
|
|
30
|
-
__SLOT__: symbol | undefined;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAC3G,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAO/E,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,UAAU;YAlCQ,eAAe;;;;gBAWJ,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import Box_default from "./Box.js";
|
|
2
|
-
import { RadioGroup } from "@primer/react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/RadioGroup.tsx
|
|
6
|
-
const RadioGroupImpl = (props) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(Box_default, {
|
|
8
|
-
as: RadioGroup,
|
|
9
|
-
...props
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
const CheckboxOrRadioGroupLabel = (props) => {
|
|
13
|
-
return /* @__PURE__ */ jsx(Box_default, {
|
|
14
|
-
as: RadioGroup.Label,
|
|
15
|
-
...props
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
const CheckboxOrRadioGroupCaption = (props) => {
|
|
19
|
-
return /* @__PURE__ */ jsx(Box_default, {
|
|
20
|
-
as: RadioGroup.Caption,
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
const CheckboxOrRadioGroupValidation = (props) => {
|
|
25
|
-
return /* @__PURE__ */ jsx(Box_default, {
|
|
26
|
-
as: RadioGroup.Validation,
|
|
27
|
-
...props
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
const RadioGroup$1 = Object.assign(RadioGroupImpl, {
|
|
31
|
-
Label: CheckboxOrRadioGroupLabel,
|
|
32
|
-
Caption: CheckboxOrRadioGroupCaption,
|
|
33
|
-
Validation: CheckboxOrRadioGroupValidation
|
|
34
|
-
});
|
|
35
|
-
RadioGroupImpl.__SLOT__ = RadioGroup.__SLOT__;
|
|
36
|
-
CheckboxOrRadioGroupLabel.__SLOT__ = RadioGroup.Label.__SLOT__;
|
|
37
|
-
CheckboxOrRadioGroupCaption.__SLOT__ = RadioGroup.Caption.__SLOT__;
|
|
38
|
-
CheckboxOrRadioGroupValidation.__SLOT__ = RadioGroup.Validation.__SLOT__;
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
export { RadioGroup$1 as RadioGroup };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type RelativeTimeProps as PrimerRelativeTimeProps } from '@primer/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { SxProp } from '../sx';
|
|
4
|
-
export type RelativeTimeProps = PrimerRelativeTimeProps & SxProp;
|
|
5
|
-
export declare function RelativeTime(props: RelativeTimeProps): React.JSX.Element;
|
|
6
|
-
//# sourceMappingURL=RelativeTime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/components/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AACnH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAGpD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Box_default from "./Box.js";
|
|
2
|
-
import { RelativeTime } from "@primer/react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/RelativeTime.tsx
|
|
6
|
-
function RelativeTime$1(props) {
|
|
7
|
-
return /* @__PURE__ */ jsx(Box_default, {
|
|
8
|
-
as: RelativeTime,
|
|
9
|
-
...props
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
14
|
-
export { RelativeTime$1 as RelativeTime };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type SelectProps as PrimerSelectProps } from '@primer/react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
type SelectProps = PrimerSelectProps & SxProp & {
|
|
4
|
-
as?: React.ElementType;
|
|
5
|
-
};
|
|
6
|
-
declare const Select: ({ as, ...props }: SelectProps) => import("react").JSX.Element;
|
|
7
|
-
export { Select, type SelectProps };
|
|
8
|
-
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,IAAI,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAC3F,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAIrC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAOxE,QAAA,MAAM,MAAM,GAAI,kBAAgB,WAAW,gCAE1C,CAAA;AAED,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { sx } from "../sx.js";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import { Select } from "@primer/react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region src/components/Select.tsx
|
|
7
|
-
const StyledSelect = styled(Select).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
|
|
8
|
-
displayName: "Select__StyledSelect",
|
|
9
|
-
componentId: "sc-1pyiuc8-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
const Select$1 = ({ as, ...props }) => {
|
|
12
|
-
return /* @__PURE__ */ jsx(StyledSelect, {
|
|
13
|
-
...props,
|
|
14
|
-
...as ? { forwardedAs: as } : {}
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { Select$1 as Select };
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
size?: "small" | "medium";
|
|
6
|
-
variant?: "normal" | "small";
|
|
7
|
-
status: "open" | "closed" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable";
|
|
8
|
-
} & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
|
-
export { StateLabel, type StateLabelProps };
|
|
10
|
-
//# sourceMappingURL=StateLabel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Box } from "./Box.js";
|
|
2
|
-
import { StateLabel } from "@primer/react";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region src/components/StateLabel.tsx
|
|
7
|
-
const StateLabel$1 = /* @__PURE__ */ forwardRef(function StateLabel$2(props, ref) {
|
|
8
|
-
return /* @__PURE__ */ jsx(Box, {
|
|
9
|
-
as: StateLabel,
|
|
10
|
-
ref,
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
export { StateLabel$1 as StateLabel };
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
__SLOT__: symbol;
|
|
7
|
-
Link: import("react").ForwardRefExoticComponent<Omit<SubNavLinkProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
8
|
-
};
|
|
9
|
-
export { SubNav, type SubNavProps, type SubNavLinkProps };
|
|
10
|
-
//# sourceMappingURL=SubNav.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EAE9C,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;;;CAGV,CAED;AAED,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Box } from "./Box.js";
|
|
2
|
-
import { SubNav } from "@primer/react";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region src/components/SubNav.tsx
|
|
7
|
-
const SubNavImpl = /* @__PURE__ */ forwardRef(function SubNav$2(props, ref) {
|
|
8
|
-
return /* @__PURE__ */ jsx(Box, {
|
|
9
|
-
as: SubNav,
|
|
10
|
-
ref,
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
const SubNavLink = /* @__PURE__ */ forwardRef(function SubNavLink$1(props, ref) {
|
|
15
|
-
return /* @__PURE__ */ jsx(Box, {
|
|
16
|
-
as: SubNav.Link,
|
|
17
|
-
ref,
|
|
18
|
-
...props
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
const SubNav$1 = Object.assign(SubNavImpl, {
|
|
22
|
-
__SLOT__: SubNav.__SLOT__,
|
|
23
|
-
Link: SubNavLink
|
|
24
|
-
});
|
|
25
|
-
SubNavLink.__SLOT__ = SubNav.Link.__SLOT__;
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export { SubNav$1 as SubNav };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { UnderlinePanels as PrimerUnderlinePanels, 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 UnderlinePanelsImpl: {
|
|
5
|
-
({ as, ...props }: UnderlinePanelsProps): import("react").JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
__SLOT__: symbol | undefined;
|
|
8
|
-
};
|
|
9
|
-
declare const UnderlinePanels: typeof UnderlinePanelsImpl & {
|
|
10
|
-
Tab: typeof PrimerUnderlinePanels.Tab;
|
|
11
|
-
Panel: typeof PrimerUnderlinePanels.Panel;
|
|
12
|
-
};
|
|
13
|
-
export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps };
|
|
14
|
-
//# sourceMappingURL=UnderlinePanels.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnderlinePanels.d.ts","sourceRoot":"","sources":["../../src/components/UnderlinePanels.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,IAAI,qBAAqB,EACxC,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;AAS/D,QAAA,MAAM,mBAAmB;uBAAoB,oBAAoB;;;CAEhE,CAAA;AAID,QAAA,MAAM,eAAe,EAAE,OAAO,mBAAmB,GAAG;IAClD,GAAG,EAAE,OAAO,qBAAqB,CAAC,GAAG,CAAA;IACrC,KAAK,EAAE,OAAO,qBAAqB,CAAC,KAAK,CAAA;CAIzC,CAAA;AAIF,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,uBAAuB,EAAE,KAAK,yBAAyB,EAAC,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { sx } from "../sx.js";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { UnderlinePanels } from "@primer/react/experimental";
|
|
5
|
-
|
|
6
|
-
//#region src/components/UnderlinePanels.tsx
|
|
7
|
-
const StyledUnderlinePanels = styled(UnderlinePanels).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
|
|
8
|
-
displayName: "UnderlinePanels__StyledUnderlinePanels",
|
|
9
|
-
componentId: "sc-1w35i85-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
const UnderlinePanelsImpl = ({ as, ...props }) => /* @__PURE__ */ jsx(StyledUnderlinePanels, {
|
|
12
|
-
forwardedAs: as,
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
15
|
-
UnderlinePanelsImpl.displayName = "UnderlinePanels";
|
|
16
|
-
const UnderlinePanels$1 = Object.assign(UnderlinePanelsImpl, {
|
|
17
|
-
Tab: UnderlinePanels.Tab,
|
|
18
|
-
Panel: UnderlinePanels.Panel
|
|
19
|
-
});
|
|
20
|
-
UnderlinePanelsImpl.__SLOT__ = UnderlinePanels.__SLOT__;
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
export { UnderlinePanels$1 as UnderlinePanels };
|