@primer/styled-react 1.0.0-rc.1 → 1.0.0-rc.10
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/README.md +18 -0
- package/dist/components/ActionList.d.ts +44 -0
- package/dist/components/ActionList.d.ts.map +1 -0
- package/dist/components/ActionList.js +163 -0
- package/dist/components/ActionMenu.d.ts +13 -0
- package/dist/components/ActionMenu.d.ts.map +1 -0
- package/dist/components/ActionMenu.js +19 -0
- package/dist/components/Autocomplete.d.ts +17 -0
- package/dist/components/Autocomplete.d.ts.map +1 -0
- package/dist/components/Autocomplete.js +25 -0
- package/dist/components/Avatar.d.ts +13 -0
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar.js +14 -0
- package/dist/components/BaseStyles.d.ts +17 -0
- package/dist/components/BaseStyles.d.ts.map +1 -0
- package/dist/components/BaseStyles.js +51 -0
- package/dist/components/Box.d.ts +19 -0
- package/dist/components/Box.d.ts.map +1 -0
- package/dist/components/Box.js +15 -0
- package/dist/components/Breadcrumbs.d.ts +18 -0
- package/dist/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/Breadcrumbs.js +38 -0
- package/dist/components/Button.d.ts +12 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +112 -0
- package/dist/components/Checkbox.d.ts +5 -0
- package/dist/components/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox.js +15 -0
- package/dist/components/CheckboxGroup.d.ts +34 -0
- package/dist/components/CheckboxGroup.d.ts.map +1 -0
- package/dist/components/CheckboxGroup.js +43 -0
- package/dist/components/CircleBadge.d.ts +8 -0
- package/dist/components/CircleBadge.d.ts.map +1 -0
- package/dist/components/CircleBadge.js +12 -0
- package/dist/components/CounterLabel.d.ts +10 -0
- package/dist/components/CounterLabel.d.ts.map +1 -0
- package/dist/components/CounterLabel.js +14 -0
- package/dist/components/DataTable.d.ts +11 -0
- package/dist/components/DataTable.d.ts.map +1 -0
- package/dist/components/DataTable.js +32 -0
- package/dist/components/Dialog.d.ts +19 -0
- package/dist/components/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog.js +43 -0
- package/dist/components/FeatureFlaggedTheming.d.ts +9 -0
- package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -0
- package/dist/components/FeatureFlaggedTheming.js +54 -0
- package/dist/components/Flash.d.ts +8 -0
- package/dist/components/Flash.d.ts.map +1 -0
- package/dist/components/Flash.js +12 -0
- package/dist/components/FormControl.d.ts +13 -0
- package/dist/components/FormControl.d.ts.map +1 -0
- package/dist/components/FormControl.js +19 -0
- package/dist/components/Header.d.ts +11 -0
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/Header.js +52 -0
- package/dist/components/Heading.d.ts +8 -0
- package/dist/components/Heading.d.ts.map +1 -0
- package/dist/components/Heading.js +12 -0
- package/dist/components/IconButton.d.ts +10 -0
- package/dist/components/IconButton.d.ts.map +1 -0
- package/dist/components/IconButton.js +40 -0
- package/dist/components/Label.d.ts +9 -0
- package/dist/components/Label.d.ts.map +1 -0
- package/dist/components/Label.js +26 -0
- package/dist/components/Link.d.ts +7 -0
- package/dist/components/Link.d.ts.map +1 -0
- package/dist/components/Link.js +26 -0
- package/dist/components/LinkButton.d.ts +8 -0
- package/dist/components/LinkButton.d.ts.map +1 -0
- package/dist/components/LinkButton.js +12 -0
- package/dist/components/NavList.d.ts +30 -0
- package/dist/components/NavList.d.ts.map +1 -0
- package/dist/components/NavList.js +74 -0
- package/dist/components/Overlay.d.ts +8 -0
- package/dist/components/Overlay.d.ts.map +1 -0
- package/dist/components/Overlay.js +12 -0
- package/dist/components/PageHeader.d.ts +31 -0
- package/dist/components/PageHeader.d.ts.map +1 -0
- package/dist/components/PageHeader.js +109 -0
- package/dist/components/PageLayout.d.ts +23 -0
- package/dist/components/PageLayout.d.ts.map +1 -0
- package/dist/components/PageLayout.js +43 -0
- package/dist/components/RadioGroup.d.ts +34 -0
- package/dist/components/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup.js +43 -0
- package/dist/components/RelativeTime.d.ts +6 -0
- package/dist/components/RelativeTime.d.ts.map +1 -0
- package/dist/components/RelativeTime.js +14 -0
- package/dist/components/SegmentedControl.d.ts +19 -0
- package/dist/components/SegmentedControl.d.ts.map +1 -0
- package/dist/components/SegmentedControl.js +31 -0
- package/dist/components/Select.d.ts +8 -0
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/components/Select.js +24 -0
- package/dist/components/Spinner.d.ts +5 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner.js +12 -0
- package/dist/components/StateLabel.d.ts +9 -0
- package/dist/components/StateLabel.d.ts.map +1 -0
- package/dist/components/StateLabel.js +14 -0
- package/dist/components/SubNav.d.ts +10 -0
- package/dist/components/SubNav.d.ts.map +1 -0
- package/dist/components/SubNav.js +26 -0
- package/dist/components/Text.d.ts +15 -0
- package/dist/components/Text.d.ts.map +1 -0
- package/dist/components/Text.js +26 -0
- package/dist/components/TextInput.d.ts +15 -0
- package/dist/components/TextInput.d.ts.map +1 -0
- package/dist/components/TextInput.js +38 -0
- package/dist/components/Textarea.d.ts +9 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea.js +26 -0
- package/dist/components/ThemeProvider.d.ts +30 -0
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/components/ThemeProvider.js +202 -0
- package/dist/components/Timeline.d.ts +26 -0
- package/dist/components/Timeline.d.ts.map +1 -0
- package/dist/components/Timeline.js +47 -0
- package/dist/components/ToggleSwitch.d.ts +6 -0
- package/dist/components/ToggleSwitch.d.ts.map +1 -0
- package/dist/components/ToggleSwitch.js +14 -0
- package/dist/components/Token.d.ts +8 -0
- package/dist/components/Token.d.ts.map +1 -0
- package/dist/components/Token.js +26 -0
- package/dist/components/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip.js +15 -0
- package/dist/components/Truncate.d.ts +7 -0
- package/dist/components/Truncate.d.ts.map +1 -0
- package/dist/components/Truncate.js +12 -0
- package/dist/components/UnderlineNav.d.ts +11 -0
- package/dist/components/UnderlineNav.d.ts.map +1 -0
- package/dist/components/UnderlineNav.js +45 -0
- package/dist/components/UnderlinePanels.d.ts +14 -0
- package/dist/components/UnderlinePanels.d.ts.map +1 -0
- package/dist/components/UnderlinePanels.js +28 -0
- package/dist/components/deprecated/ActionList.d.ts +23 -0
- package/dist/components/deprecated/ActionList.d.ts.map +1 -0
- package/dist/components/deprecated/ActionList.js +49 -0
- package/dist/components/deprecated/DialogV1.d.ts +11 -0
- package/dist/components/deprecated/DialogV1.d.ts.map +1 -0
- package/dist/components/deprecated/DialogV1.js +44 -0
- package/dist/components/deprecated/Octicon.d.ts +17 -0
- package/dist/components/deprecated/Octicon.d.ts.map +1 -0
- package/dist/components/deprecated/Octicon.js +39 -0
- package/dist/components/deprecated/TabNav.d.ts +9 -0
- package/dist/components/deprecated/TabNav.d.ts.map +1 -0
- package/dist/components/deprecated/TabNav.js +44 -0
- package/dist/components/deprecated/Tooltip.d.ts +13 -0
- package/dist/components/deprecated/Tooltip.d.ts.map +1 -0
- package/dist/components/deprecated/Tooltip.js +32 -0
- package/dist/components.json +138 -0
- package/dist/deprecated.d.ts +5 -1
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +5 -1
- package/dist/experimental.d.ts +5 -1
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +5 -1
- package/dist/index.d.ts +47 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -12
- package/dist/polymorphic.d.ts +38 -0
- package/dist/polymorphic.d.ts.map +1 -0
- package/dist/styled-props.d.ts +4 -0
- package/dist/styled-props.d.ts.map +1 -0
- package/dist/sx.d.ts +26 -0
- package/dist/sx.d.ts.map +1 -0
- package/dist/sx.js +8 -0
- package/package.json +8 -5
- package/dist/utils/createStyledComponent.d.ts +0 -20
- package/dist/utils/createStyledComponent.d.ts.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ToggleSwitch as ToggleSwitch$1 } from '@primer/react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import Box from './Box.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: ToggleSwitch$1,
|
|
9
|
+
ref: ref,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export { ToggleSwitch };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type TokenProps as PrimerTokenProps } from '@primer/react';
|
|
2
|
+
import { type SxProp } from '../sx';
|
|
3
|
+
import type { ForwardRefComponent } from '../polymorphic';
|
|
4
|
+
import type { PropsWithChildren } from 'react';
|
|
5
|
+
type TokenProps = PropsWithChildren<PrimerTokenProps> & SxProp;
|
|
6
|
+
declare const Token: ForwardRefComponent<"a" | "button" | "span", TokenProps>;
|
|
7
|
+
export { Token, type TokenProps };
|
|
8
|
+
//# 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,EAAC,KAAK,UAAU,IAAI,gBAAgB,EAAuB,MAAM,eAAe,CAAA;AACvF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAG5C,KAAK,UAAU,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAA;AAQ9D,QAAA,MAAM,KAAK,EAEL,mBAAmB,CAAC,GAAG,GAAG,QAAQ,GAAG,MAAM,EAAE,UAAU,CAAC,CAAA;AAE9D,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { Token as Token$1 } from '@primer/react';
|
|
3
|
+
import sx from '../sx.js';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
const StyledToken = styled(Token$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "Token__StyledToken",
|
|
11
|
+
componentId: "sc-ldn0r8-0"
|
|
12
|
+
})(["", ""], sx);
|
|
13
|
+
const Token = /*#__PURE__*/forwardRef(({
|
|
14
|
+
as,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => {
|
|
17
|
+
return /*#__PURE__*/jsx(StyledToken, {
|
|
18
|
+
...props,
|
|
19
|
+
...(as ? {
|
|
20
|
+
forwardedAs: as
|
|
21
|
+
} : {}),
|
|
22
|
+
ref: ref
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export { Token };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type TooltipProps as PrimerTooltipProps, type SlotMarker } from '@primer/react';
|
|
2
|
+
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
3
|
+
import type { SxProp } from '../sx';
|
|
4
|
+
type TooltipProps = PrimerTooltipProps & SxProp;
|
|
5
|
+
declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>> & SlotMarker;
|
|
6
|
+
export { Tooltip, type TooltipProps };
|
|
7
|
+
//# 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,UAAU,EAAC,MAAM,eAAe,CAAA;AAEhH,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AACpF,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC,GAAG,UAKvF,CAAA;AAIF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Tooltip as Tooltip$1 } from '@primer/react';
|
|
2
|
+
import Box from './Box.js';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
const Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, ref) {
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: Tooltip$1,
|
|
9
|
+
ref: ref,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
Tooltip.__SLOT__ = Tooltip$1.__SLOT__;
|
|
14
|
+
|
|
15
|
+
export { Tooltip };
|
|
@@ -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,12 @@
|
|
|
1
|
+
import { Truncate as Truncate$1 } from '@primer/react';
|
|
2
|
+
import sx from '../sx.js';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
|
|
5
|
+
const Truncate = styled(Truncate$1).withConfig({
|
|
6
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
+
}).withConfig({
|
|
8
|
+
displayName: "Truncate",
|
|
9
|
+
componentId: "sc-x3i4it-0"
|
|
10
|
+
})(["", ""], sx);
|
|
11
|
+
|
|
12
|
+
export { Truncate };
|
|
@@ -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,45 @@
|
|
|
1
|
+
import { UnderlineNav as UnderlineNav$1 } from '@primer/react';
|
|
2
|
+
import Box from './Box.js';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import sx from '../sx.js';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
const StyledUnderlineNav = /*#__PURE__*/forwardRef(function UnderlineNav(props, ref) {
|
|
9
|
+
return /*#__PURE__*/jsx(Box, {
|
|
10
|
+
as: UnderlineNav$1,
|
|
11
|
+
ref: ref,
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
const UnderlineNavImpl = /*#__PURE__*/forwardRef(({
|
|
16
|
+
as,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => /*#__PURE__*/jsx(StyledUnderlineNav, {
|
|
19
|
+
...props,
|
|
20
|
+
...(as ? {
|
|
21
|
+
forwardedAs: as
|
|
22
|
+
} : {}),
|
|
23
|
+
ref: ref
|
|
24
|
+
}));
|
|
25
|
+
const StyledUnderlineNavItem = styled(UnderlineNav$1.Item).withConfig({
|
|
26
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
27
|
+
}).withConfig({
|
|
28
|
+
displayName: "UnderlineNav__StyledUnderlineNavItem",
|
|
29
|
+
componentId: "sc-dx6br2-0"
|
|
30
|
+
})(["", ""], sx);
|
|
31
|
+
const UnderlineNavItem = /*#__PURE__*/forwardRef(({
|
|
32
|
+
as,
|
|
33
|
+
...props
|
|
34
|
+
}, ref) => /*#__PURE__*/jsx(StyledUnderlineNavItem, {
|
|
35
|
+
...props,
|
|
36
|
+
...(as ? {
|
|
37
|
+
forwardedAs: as
|
|
38
|
+
} : {}),
|
|
39
|
+
ref: ref
|
|
40
|
+
}));
|
|
41
|
+
const UnderlineNav = Object.assign(UnderlineNavImpl, {
|
|
42
|
+
Item: UnderlineNavItem
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export { UnderlineNav, UnderlineNavImpl, UnderlineNavItem };
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import sx from '../sx.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
|
|
7
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
8
|
+
}).withConfig({
|
|
9
|
+
displayName: "UnderlinePanels__StyledUnderlinePanels",
|
|
10
|
+
componentId: "sc-1w35i85-0"
|
|
11
|
+
})(["", ""], sx);
|
|
12
|
+
|
|
13
|
+
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
|
|
14
|
+
const UnderlinePanelsImpl = ({
|
|
15
|
+
as,
|
|
16
|
+
...props
|
|
17
|
+
}) => /*#__PURE__*/jsx(StyledUnderlinePanels, {
|
|
18
|
+
forwardedAs: as,
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
UnderlinePanelsImpl.displayName = 'UnderlinePanels';
|
|
22
|
+
const UnderlinePanels = Object.assign(UnderlinePanelsImpl, {
|
|
23
|
+
Tab: UnderlinePanels$1.Tab,
|
|
24
|
+
Panel: UnderlinePanels$1.Panel
|
|
25
|
+
});
|
|
26
|
+
UnderlinePanelsImpl.__SLOT__ = UnderlinePanels$1.__SLOT__;
|
|
27
|
+
|
|
28
|
+
export { UnderlinePanels };
|
|
@@ -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,49 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
3
|
+
import sx from '../../sx.js';
|
|
4
|
+
import Box from '../Box.js';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
const ActionListImpl = /*#__PURE__*/forwardRef(function ActionList(props, ref) {
|
|
9
|
+
return /*#__PURE__*/jsx(Box, {
|
|
10
|
+
as: ActionList$1,
|
|
11
|
+
ref: ref,
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
const StyledActionListItem = styled(ActionList$1.Item).withConfig({
|
|
16
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
17
|
+
}).withConfig({
|
|
18
|
+
displayName: "ActionList__StyledActionListItem",
|
|
19
|
+
componentId: "sc-1ugfmds-0"
|
|
20
|
+
})(["", ""], sx);
|
|
21
|
+
const ActionListItem = /*#__PURE__*/forwardRef(({
|
|
22
|
+
as,
|
|
23
|
+
...props
|
|
24
|
+
}, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
|
|
25
|
+
...props,
|
|
26
|
+
...(as ? {
|
|
27
|
+
forwardedAs: as
|
|
28
|
+
} : {}),
|
|
29
|
+
ref: ref
|
|
30
|
+
}));
|
|
31
|
+
function ActionListGroup(props) {
|
|
32
|
+
return /*#__PURE__*/jsx(Box, {
|
|
33
|
+
as: ActionList$1.Group,
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function ActionListDivider(props) {
|
|
38
|
+
return /*#__PURE__*/jsx(Box, {
|
|
39
|
+
as: ActionList$1.Divider,
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
const ActionList = Object.assign(ActionListImpl, {
|
|
44
|
+
Item: ActionListItem,
|
|
45
|
+
Group: ActionListGroup,
|
|
46
|
+
Divider: ActionListDivider
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export { ActionList };
|
|
@@ -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,44 @@
|
|
|
1
|
+
import { Dialog as Dialog$1 } from '@primer/react/deprecated';
|
|
2
|
+
import Box from '../Box.js';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
const StyledDialog = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: Dialog$1,
|
|
9
|
+
ref: ref,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
const DialogImpl = /*#__PURE__*/forwardRef(({
|
|
14
|
+
as,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => /*#__PURE__*/jsx(StyledDialog, {
|
|
17
|
+
...props,
|
|
18
|
+
...(as ? {
|
|
19
|
+
forwardedAs: as
|
|
20
|
+
} : {}),
|
|
21
|
+
ref: ref
|
|
22
|
+
}));
|
|
23
|
+
const StyledDialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
|
|
24
|
+
return /*#__PURE__*/jsx(Box, {
|
|
25
|
+
as: Dialog$1.Header,
|
|
26
|
+
ref: ref,
|
|
27
|
+
...props
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
const DialogHeader = /*#__PURE__*/forwardRef(({
|
|
31
|
+
as,
|
|
32
|
+
...props
|
|
33
|
+
}, ref) => /*#__PURE__*/jsx(StyledDialogHeader, {
|
|
34
|
+
...props,
|
|
35
|
+
...(as ? {
|
|
36
|
+
forwardedAs: as
|
|
37
|
+
} : {}),
|
|
38
|
+
ref: ref
|
|
39
|
+
}));
|
|
40
|
+
const Dialog = Object.assign(DialogImpl, {
|
|
41
|
+
Header: DialogHeader
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { Dialog };
|
|
@@ -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,39 @@
|
|
|
1
|
+
import { Octicon as Octicon$1 } from '@primer/react/deprecated';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import sx from '../../sx.js';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
9
|
+
*/
|
|
10
|
+
const StyledOcticon = styled(Octicon$1).withConfig({
|
|
11
|
+
shouldForwardProp(prop) {
|
|
12
|
+
return prop !== 'sx';
|
|
13
|
+
}
|
|
14
|
+
}).withConfig({
|
|
15
|
+
displayName: "Octicon__StyledOcticon",
|
|
16
|
+
componentId: "sc-jtj3m8-0"
|
|
17
|
+
})(["", ""], ({
|
|
18
|
+
color,
|
|
19
|
+
sx: sxProp
|
|
20
|
+
}) => sx({
|
|
21
|
+
sx: {
|
|
22
|
+
color,
|
|
23
|
+
...sxProp
|
|
24
|
+
}
|
|
25
|
+
}));
|
|
26
|
+
const Octicon = /*#__PURE__*/forwardRef(({
|
|
27
|
+
as,
|
|
28
|
+
...props
|
|
29
|
+
}, ref) => {
|
|
30
|
+
return /*#__PURE__*/jsx(StyledOcticon, {
|
|
31
|
+
...props,
|
|
32
|
+
...(as ? {
|
|
33
|
+
forwardedAs: as
|
|
34
|
+
} : {}),
|
|
35
|
+
ref: ref
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export { Octicon, Octicon as default };
|
|
@@ -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,44 @@
|
|
|
1
|
+
import { TabNav as TabNav$1 } from '@primer/react/deprecated';
|
|
2
|
+
import sx from '../../sx.js';
|
|
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
|
+
export { TabNav };
|
|
@@ -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;AAK5C,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;AAOD,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Tooltip as Tooltip$1 } from '@primer/react/deprecated';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import sx from '../../sx.js';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
const StyledTooltip = styled(Tooltip$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "Tooltip__StyledTooltip",
|
|
11
|
+
componentId: "sc-145jcib-0"
|
|
12
|
+
})(["", ""], sx);
|
|
13
|
+
const TooltipImpl = /*#__PURE__*/forwardRef(function Tooltip({
|
|
14
|
+
as,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) {
|
|
17
|
+
return /*#__PURE__*/jsx(StyledTooltip, {
|
|
18
|
+
...props,
|
|
19
|
+
...(as ? {
|
|
20
|
+
forwardedAs: as
|
|
21
|
+
} : {}),
|
|
22
|
+
ref: ref
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
const Tooltip = TooltipImpl;
|
|
26
|
+
|
|
27
|
+
// Preserve static properties from the original component
|
|
28
|
+
Tooltip.alignments = Tooltip$1.alignments;
|
|
29
|
+
Tooltip.directions = Tooltip$1.directions;
|
|
30
|
+
Tooltip.__SLOT__ = Tooltip$1.__SLOT__;
|
|
31
|
+
|
|
32
|
+
export { Tooltip };
|