@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
package/dist/index.d.ts
CHANGED
|
@@ -1,83 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
type
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
type SegmentedControlProps = PropsWithChildren<PrimerSegmentedControlProps> & SxProp;
|
|
29
|
-
type SegmentedControlButtonProps = PropsWithChildren<PrimerSegmentedControlButtonProps> & SxProp;
|
|
30
|
-
type SegmentedControlIconButtonProps = PropsWithChildren<PrimerSegmentedControlIconButtonProps> & SxProp;
|
|
31
|
-
declare const SegmentedControl: ((props: SegmentedControlProps) => React.JSX.Element) & {
|
|
32
|
-
Button: (props: SegmentedControlButtonProps) => React.JSX.Element;
|
|
33
|
-
IconButton: (props: SegmentedControlIconButtonProps) => React.JSX.Element;
|
|
34
|
-
};
|
|
35
|
-
type CheckboxProps = PrimerCheckboxProps & SxProp;
|
|
36
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
37
|
-
declare const CounterLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
|
|
38
|
-
scheme?: "primary" | "secondary";
|
|
39
|
-
className?: string;
|
|
40
|
-
} & {
|
|
41
|
-
children?: React.ReactNode | undefined;
|
|
42
|
-
} & SxProp & React.RefAttributes<HTMLSpanElement>>;
|
|
43
|
-
declare const StateLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
|
|
44
|
-
variant?: "small" | "normal";
|
|
45
|
-
status: "open" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable" | "closed";
|
|
46
|
-
} & SxProp & React.RefAttributes<HTMLSpanElement>>;
|
|
47
|
-
type SubNavProps = PrimerSubNavProps & SxProp;
|
|
48
|
-
type SubNavLinkProps = PrimerSubNavLinkProps & SxProp;
|
|
49
|
-
declare const SubNav: React.ForwardRefExoticComponent<Omit<SubNavProps, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
50
|
-
Link: React.ForwardRefExoticComponent<Omit<SubNavLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
51
|
-
};
|
|
52
|
-
type TimelineBadgeProps = PrimerTimelineBadgeProps & SxProp;
|
|
53
|
-
declare function TimelineBadge(props: TimelineBadgeProps): React.JSX.Element;
|
|
54
|
-
declare const Timeline: React.ForwardRefExoticComponent<{
|
|
55
|
-
clipSidebar?: boolean;
|
|
56
|
-
className?: string;
|
|
57
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & React.RefAttributes<HTMLDivElement>> & {
|
|
58
|
-
Item: React.ForwardRefExoticComponent<{
|
|
59
|
-
condensed?: boolean;
|
|
60
|
-
className?: string;
|
|
61
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
62
|
-
Badge: typeof TimelineBadge;
|
|
63
|
-
Body: React.ForwardRefExoticComponent<{
|
|
64
|
-
className?: string;
|
|
65
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
66
|
-
Break: React.ForwardRefExoticComponent<{
|
|
67
|
-
className?: string;
|
|
68
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
-
};
|
|
70
|
-
declare const ToggleSwitch: React.ForwardRefExoticComponent<PrimerToggleSwitchProps & Omit<StyledProps, keyof PrimerToggleSwitchProps> & React.RefAttributes<HTMLButtonElement>>;
|
|
71
|
-
export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
|
|
72
|
-
type TruncateProps = PropsWithChildren<PrimerTruncateProps> & SxProp;
|
|
73
|
-
declare const Truncate: ForwardRefComponent<'div', TruncateProps>;
|
|
74
|
-
type UnderlineNavItemProps = PrimerUnderlineNavItemProps & SxProp;
|
|
75
|
-
declare const UnderlineNav: React.ForwardRefExoticComponent<PrimerUnderlineNavProps & SxProp & React.RefAttributes<HTMLElement>> & {
|
|
76
|
-
Item: ForwardRefComponent<"a", UnderlineNavItemProps>;
|
|
77
|
-
};
|
|
78
|
-
export { Header, type HeaderProps } from './components/Header';
|
|
1
|
+
export { Box, type BoxProps } from './components/Box';
|
|
2
|
+
export { Button } from '@primer/react';
|
|
3
|
+
export { Details } from '@primer/react';
|
|
4
|
+
export { FormControl } from '@primer/react';
|
|
5
|
+
export { IconButton } from '@primer/react';
|
|
6
|
+
export { ProgressBar } from '@primer/react';
|
|
7
|
+
export { Select } from '@primer/react';
|
|
8
|
+
export { Textarea } from '@primer/react';
|
|
9
|
+
export { TextInput } from '@primer/react';
|
|
10
|
+
export { type TextInputProps } from '@primer/react';
|
|
11
|
+
export { ThemeProvider } from '@primer/react';
|
|
12
|
+
export { merge } from '@primer/react';
|
|
13
|
+
export { theme } from '@primer/react';
|
|
14
|
+
export { themeGet } from '@primer/react';
|
|
15
|
+
export { useColorSchemeVar } from '@primer/react';
|
|
16
|
+
export { useTheme } from '@primer/react';
|
|
17
|
+
export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListLinkItemProps, type ActionListGroupProps, type ActionListDividerProps, type ActionListLeadingVisualProps, type ActionListTrailingVisualProps, type ActionListTrailingActionProps, } from './components/ActionList';
|
|
18
|
+
export { ActionMenu } from './components/ActionMenu';
|
|
19
|
+
export { Autocomplete, type AutocompleteOverlayProps } from './components/Autocomplete';
|
|
20
|
+
export { Avatar, type AvatarProps } from './components/Avatar';
|
|
21
|
+
export { Breadcrumbs, Breadcrumb, type BreadcrumbsProps, type BreadcrumbsItemProps } from './components/Breadcrumbs';
|
|
22
|
+
export { Checkbox, type CheckboxProps } from './components/Checkbox';
|
|
23
|
+
export { CheckboxGroup, type CheckboxGroupProps } from './components/CheckboxGroup';
|
|
24
|
+
export { CircleBadge } from './components/CircleBadge';
|
|
25
|
+
export { CounterLabel, type CounterLabelProps } from './components/CounterLabel';
|
|
26
|
+
export { Dialog, type DialogProps } from './components/Dialog';
|
|
79
27
|
export { Flash } from './components/Flash';
|
|
80
|
-
export {
|
|
81
|
-
export {
|
|
82
|
-
export
|
|
28
|
+
export { Header, type HeaderProps } from './components/Header';
|
|
29
|
+
export { Heading } from './components/Heading';
|
|
30
|
+
export { Label, type LabelProps } from './components/Label';
|
|
31
|
+
export { Link, type LinkProps } from './components/Link';
|
|
32
|
+
export { LinkButton, type LinkButtonProps } from './components/LinkButton';
|
|
33
|
+
export { NavList, type NavListProps } from './components/NavList';
|
|
34
|
+
export { Overlay } from './components/Overlay';
|
|
35
|
+
export { PageLayout, type PageLayoutProps } from './components/PageLayout';
|
|
36
|
+
export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
|
|
37
|
+
export { RadioGroup, type RadioGroupProps } from './components/RadioGroup';
|
|
38
|
+
export { RelativeTime, type RelativeTimeProps } from './components/RelativeTime';
|
|
39
|
+
export { SegmentedControl, type SegmentedControlProps, type SegmentedControlButtonProps, type SegmentedControlIconButtonProps, } from './components/SegmentedControl';
|
|
40
|
+
export { Spinner, type SpinnerProps } from './components/Spinner';
|
|
41
|
+
export { StateLabel, type StateLabelProps } from './components/StateLabel';
|
|
42
|
+
export { SubNav, type SubNavProps, type SubNavLinkProps } from './components/SubNav';
|
|
43
|
+
export { Text, type TextProps } from './components/Text';
|
|
44
|
+
export { Timeline, type TimelineProps, type TimelineItemProps, type TimelineBadgeProps, type TimelineBodyProps, type TimelineBreakProps, } from './components/Timeline';
|
|
45
|
+
export { ToggleSwitch, type ToggleSwitchProps } from './components/ToggleSwitch';
|
|
46
|
+
export { Tooltip, type TooltipProps } from './components/Tooltip';
|
|
47
|
+
export { Token, type TokenProps } from './components/Token';
|
|
48
|
+
export { Truncate, type TruncateProps } from './components/Truncate';
|
|
49
|
+
export { UnderlineNav, type UnderlineNavProps, type UnderlineNavItemProps } from './components/UnderlineNav';
|
|
50
|
+
export { sx, type SxProp } from './sx';
|
|
51
|
+
export type { BetterSystemStyleObject } from './styled-props';
|
|
83
52
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,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