@primer/styled-react 0.0.0-20251008061340 → 0.0.0-20251008165103
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/Button.d.ts +13 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/IconButton.d.ts +9 -0
- package/dist/components/IconButton.d.ts.map +1 -0
- package/dist/components/Label.d.ts.map +1 -1
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/components/Spinner.d.ts +3 -4
- package/dist/components/Spinner.d.ts.map +1 -1
- package/dist/components/TextInput.d.ts +20 -0
- package/dist/components/TextInput.d.ts.map +1 -0
- package/dist/components/Token.d.ts +3 -2
- package/dist/components/Token.d.ts.map +1 -1
- package/dist/components.json +3 -0
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +194 -40
- package/dist/sx.d.ts +3 -0
- package/dist/sx.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ButtonProps as PrimerButtonProps } from '@primer/react';
|
|
2
|
+
import type { SxProp } from '../sx';
|
|
3
|
+
import type { BetterSystemStyleObject } from '../styled-props';
|
|
4
|
+
import type { ForwardRefComponent } from '../polymorphic';
|
|
5
|
+
type ButtonComponentProps = PrimerButtonProps & SxProp & {
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
};
|
|
8
|
+
declare const ButtonComponent: ForwardRefComponent<"button", ButtonComponentProps>;
|
|
9
|
+
export declare function generateCustomSxProp(props: Partial<Pick<PrimerButtonProps, 'size' | 'block' | 'leadingVisual' | 'trailingVisual' | 'trailingAction'>>, providedSx: BetterSystemStyleObject): {
|
|
10
|
+
[key: string]: BetterSystemStyleObject;
|
|
11
|
+
};
|
|
12
|
+
export { ButtonComponent, type ButtonComponentProps };
|
|
13
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,IAAI,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAC3F,OAAO,KAAK,EAAC,MAAM,EAAsB,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,iBAAiB,CAAA;AAE5D,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAIvD,KAAK,oBAAoB,GAAG,iBAAiB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQjF,QAAA,MAAM,eAAe,EAgBf,mBAAmB,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAA;AA0CzD,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,GAAG,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC,CAAC,EACjH,UAAU,EAAE,uBAAuB;;EAmBpC;AAID,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type IconButtonProps as PrimerIconButtonProps, type SxProp } from '@primer/react';
|
|
2
|
+
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
+
type IconButtonProps = PrimerIconButtonProps & SxProp & {
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
};
|
|
6
|
+
declare const IconButton: ForwardRefComponent<"a" | "button", IconButtonProps>;
|
|
7
|
+
export { IconButton };
|
|
8
|
+
export type { IconButtonProps };
|
|
9
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AACxH,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAMvD,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQhF,QAAA,MAAM,UAAU,EAUV,mBAAmB,CAAC,GAAG,GAAG,QAAQ,EAAE,eAAe,CAAC,CAAA;AAE1D,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/components/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,IAAI,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/components/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,IAAI,gBAAgB,EAAuB,MAAM,eAAe,CAAA;AACvF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,KAAK,UAAU,GAAG,gBAAgB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQtE,QAAA,MAAM,KAAK,EAEL,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;AAE7C,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../src/components/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,KAAK,eAAe,IAAI,qBAAqB,EAC7C,K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O,iBAAiB,CAAA;IACjC,WAAW,EAAE,OAAO,gBAAgB,CAAC,WAAW,CAAA;IAChD,UAAU,EAAE,OAAO,gBAAgB,CAAC,UAAU,CAAA;IAC9C,UAAU,EAAE,OAAO,gBAAgB,CAAC,UAAU,CAAA;IAC9C,SAAS,EAAE,OAAO,mBAAmB,CAAA;IACrC,kBAAkB,EAAE,OAAO,gBAAgB,CAAC,kBAAkB,CAAA;IAC9D,aAAa,EAAE,OAAO,gBAAgB,CAAC,aAAa,CAAA;IACpD,WAAW,EAAE,OAAO,gBAAgB,CAAC,WAAW,CAAA;IAChD,aAAa,EAAE,OAAO,gBAAgB,CAAC,aAAa,CAAA;IACpD,KAAK,EAAE,OAAO,eAAe,CAAA;IAC7B,cAAc,EAAE,OAAO,gBAAgB,CAAC,cAAc,CAAA;IACtD,WAAW,EAAE,OAAO,gBAAgB,CAAC,WAAW,CAAA;IAChD,cAAc,EAAE,OAAO,gBAAgB,CAAC,cAAc,CAAA;CACvD,CAAA;AAED,QAAA,MAAM,UAAU,EAAE,uBAchB,CAAA;AAEF,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAC,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type SpinnerProps as PrimerSpinnerProps } from '@primer/react';
|
|
2
|
-
import
|
|
3
|
-
import type { SxProp } from '../sx';
|
|
1
|
+
import { Spinner as PrimerSpinner, type SpinnerProps as PrimerSpinnerProps } from '@primer/react';
|
|
2
|
+
import { type SxProp } from '../sx';
|
|
4
3
|
export type SpinnerProps = PrimerSpinnerProps & SxProp;
|
|
5
|
-
export declare
|
|
4
|
+
export declare const Spinner: import("styled-components").StyledComponent<typeof PrimerSpinner, any, SpinnerProps, never>;
|
|
6
5
|
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAE,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,eAAe,CAAA;AAC/F,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGrC,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAEtD,eAAO,MAAM,OAAO,6FAInB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type TextInputProps as PrimerTextInputProps, type TextInputActionProps as PrimerTextInputActionProps } from '@primer/react';
|
|
2
|
+
import type { SxProp } from '../sx';
|
|
3
|
+
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export type TextInputProps = PrimerTextInputProps & SxProp & {
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
};
|
|
7
|
+
export type TextInputActionProps = PrimerTextInputActionProps & SxProp;
|
|
8
|
+
declare const TextInputAction: ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "size" | "aria-label" | "tooltipDirection"> & {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
"aria-label"?: string;
|
|
11
|
+
tooltipDirection?: "n" | "ne" | "e" | "se" | "s" | "sw" | "w" | "nw";
|
|
12
|
+
icon?: React.FunctionComponent<React.PropsWithChildren<import("@primer/octicons-react").IconProps>>;
|
|
13
|
+
variant?: import("@primer/react").ButtonProps["variant"];
|
|
14
|
+
} & SxProp & RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
type TextInputComposite = ForwardRefExoticComponent<TextInputProps & RefAttributes<HTMLInputElement>> & {
|
|
16
|
+
Action: typeof TextInputAction;
|
|
17
|
+
};
|
|
18
|
+
export declare const TextInput: TextInputComposite;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../src/components/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,IAAI,oBAAoB,EAC3C,KAAK,oBAAoB,IAAI,0BAA0B,EACxD,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAC,yBAAyB,EAAE,aAAa,EAAC,MAAM,OAAO,CAAA;AAEnE,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AACrF,MAAM,MAAM,oBAAoB,GAAG,0BAA0B,GAAG,MAAM,CAAA;AAUtE,QAAA,MAAM,eAAe;;;;;;8CAEnB,CAAA;AAEF,KAAK,kBAAkB,GAAG,yBAAyB,CAAC,cAAc,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC,GAAG;IACtG,MAAM,EAAE,OAAO,eAAe,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,kBAEtB,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type TokenProps as PrimerTokenProps
|
|
1
|
+
import { type TokenProps as PrimerTokenProps } from '@primer/react';
|
|
2
|
+
import { type SxProp } from '../sx';
|
|
2
3
|
import type { ForwardRefComponent } from '../polymorphic';
|
|
3
4
|
import type { PropsWithChildren } from 'react';
|
|
4
5
|
type TokenProps = PropsWithChildren<PrimerTokenProps> & SxProp;
|
|
5
|
-
declare const Token: ForwardRefComponent<
|
|
6
|
+
declare const Token: ForwardRefComponent<"a" | "button" | "span", TokenProps>;
|
|
6
7
|
export { Token, type TokenProps };
|
|
7
8
|
//# sourceMappingURL=Token.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../src/components/Token.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
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"}
|
package/dist/components.json
CHANGED
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"BoxProps",
|
|
65
65
|
"BreadcrumbsItemProps",
|
|
66
66
|
"BreadcrumbsProps",
|
|
67
|
+
"ButtonProps",
|
|
67
68
|
"CheckboxGroupProps",
|
|
68
69
|
"CheckboxProps",
|
|
69
70
|
"CounterLabelProps",
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"DialogHeaderProps",
|
|
72
73
|
"DialogProps",
|
|
73
74
|
"HeaderProps",
|
|
75
|
+
"IconButtonProps",
|
|
74
76
|
"LabelProps",
|
|
75
77
|
"LinkButtonProps",
|
|
76
78
|
"LinkProps",
|
|
@@ -101,6 +103,7 @@
|
|
|
101
103
|
"TableTitleProps",
|
|
102
104
|
"TabNavLinkProps",
|
|
103
105
|
"TabNavProps",
|
|
106
|
+
"TextInputActionProps",
|
|
104
107
|
"TextInputProps",
|
|
105
108
|
"TextProps",
|
|
106
109
|
"TimelineBadgeProps",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
export { Box, type BoxProps } from './components/Box';
|
|
2
|
-
export { Button } from '@primer/react';
|
|
3
2
|
export { Details } from '@primer/react';
|
|
4
3
|
export { FormControl } from '@primer/react';
|
|
5
|
-
export { IconButton } from '@primer/react';
|
|
6
4
|
export { ProgressBar } from '@primer/react';
|
|
7
5
|
export { Select } from '@primer/react';
|
|
8
6
|
export { Textarea } from '@primer/react';
|
|
9
|
-
export { TextInput } from '@primer/react';
|
|
10
|
-
export { type TextInputProps } from '@primer/react';
|
|
11
7
|
export { ThemeProvider } from '@primer/react';
|
|
12
8
|
export { merge } from '@primer/react';
|
|
13
9
|
export { theme } from '@primer/react';
|
|
@@ -19,6 +15,7 @@ export { ActionMenu } from './components/ActionMenu';
|
|
|
19
15
|
export { Autocomplete, type AutocompleteOverlayProps } from './components/Autocomplete';
|
|
20
16
|
export { Avatar, type AvatarProps } from './components/Avatar';
|
|
21
17
|
export { Breadcrumbs, Breadcrumb, type BreadcrumbsProps, type BreadcrumbsItemProps } from './components/Breadcrumbs';
|
|
18
|
+
export { ButtonComponent as Button, type ButtonComponentProps as ButtonProps } from './components/Button';
|
|
22
19
|
export { Checkbox, type CheckboxProps } from './components/Checkbox';
|
|
23
20
|
export { CheckboxGroup, type CheckboxGroupProps } from './components/CheckboxGroup';
|
|
24
21
|
export { CircleBadge } from './components/CircleBadge';
|
|
@@ -27,6 +24,7 @@ export { Dialog, type DialogProps } from './components/Dialog';
|
|
|
27
24
|
export { Flash } from './components/Flash';
|
|
28
25
|
export { Header, type HeaderProps } from './components/Header';
|
|
29
26
|
export { Heading } from './components/Heading';
|
|
27
|
+
export { IconButton, type IconButtonProps } from './components/IconButton';
|
|
30
28
|
export { Label, type LabelProps } from './components/Label';
|
|
31
29
|
export { Link, type LinkProps } from './components/Link';
|
|
32
30
|
export { LinkButton, type LinkButtonProps } from './components/LinkButton';
|
|
@@ -41,6 +39,7 @@ export { Spinner, type SpinnerProps } from './components/Spinner';
|
|
|
41
39
|
export { StateLabel, type StateLabelProps } from './components/StateLabel';
|
|
42
40
|
export { SubNav, type SubNavProps, type SubNavLinkProps } from './components/SubNav';
|
|
43
41
|
export { Text, type TextProps } from './components/Text';
|
|
42
|
+
export { TextInput, type TextInputProps, type TextInputActionProps } from './components/TextInput';
|
|
44
43
|
export { Timeline, type TimelineProps, type TimelineItemProps, type TimelineBadgeProps, type TimelineBodyProps, type TimelineBreakProps, } from './components/Timeline';
|
|
45
44
|
export { ToggleSwitch, type ToggleSwitchProps } from './components/ToggleSwitch';
|
|
46
45
|
export { Tooltip, type TooltipProps } from './components/Tooltip';
|
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,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,
|
|
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,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAGtC,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AACnC,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AACnC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AACtC,OAAO,EAAC,iBAAiB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AAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,MAAM,2BAA2B,CAAA;AAC9E,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAC,QAAQ,EAAE,KAAK,aAAa,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAE1G,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,MAAM,CAAA;AAEpC,YAAY,EAAC,uBAAuB,EAAC,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ActionList as ActionList$1, sx, ActionMenu as ActionMenu$1, Autocomplete as Autocomplete$1, Box, Avatar as Avatar$1, Breadcrumbs as Breadcrumbs$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CircleBadge as CircleBadge$1, CounterLabel as CounterLabel$1, Flash as Flash$1, Header as Header$1, Heading as Heading$1, Label as Label$1, Link as Link$1, LinkButton as LinkButton$1, NavList as NavList$1, Overlay as Overlay$1, PageLayout as PageLayout$1, RadioGroup as RadioGroup$1, RelativeTime as RelativeTime$1, SegmentedControl as SegmentedControl$1, Spinner as Spinner$1, StateLabel as StateLabel$1, SubNav as SubNav$1, Text as Text$1, Timeline as Timeline$1, ToggleSwitch as ToggleSwitch$1,
|
|
2
|
-
export { Box,
|
|
1
|
+
import { ActionList as ActionList$1, sx, ActionMenu as ActionMenu$1, Autocomplete as Autocomplete$1, Box, Avatar as Avatar$1, Breadcrumbs as Breadcrumbs$1, Button, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CircleBadge as CircleBadge$1, CounterLabel as CounterLabel$1, Flash as Flash$1, Header as Header$1, Heading as Heading$1, IconButton as IconButton$1, Label as Label$1, Link as Link$1, LinkButton as LinkButton$1, NavList as NavList$1, Overlay as Overlay$1, PageLayout as PageLayout$1, RadioGroup as RadioGroup$1, RelativeTime as RelativeTime$1, SegmentedControl as SegmentedControl$1, Spinner as Spinner$1, StateLabel as StateLabel$1, SubNav as SubNav$1, Text as Text$1, TextInput as TextInput$1, Timeline as Timeline$1, ToggleSwitch as ToggleSwitch$1, Token as Token$1, Truncate as Truncate$1, UnderlineNav as UnderlineNav$1 } from '@primer/react';
|
|
2
|
+
export { Box, Details, FormControl, ProgressBar, Select, Textarea, ThemeProvider, merge, sx, theme, themeGet, useColorSchemeVar, useTheme } from '@primer/react';
|
|
3
3
|
import React, { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
export { D as Dialog, P as PageHeader, T as Tooltip } from './Tooltip-DIHgr01r.js';
|
|
7
|
-
import css from '@styled-system/css';
|
|
8
7
|
|
|
9
8
|
const StyledActionList = styled(ActionList$1).withConfig({
|
|
10
9
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -170,6 +169,110 @@ const Breadcrumbs = Object.assign(BreadcrumbsImpl, {
|
|
|
170
169
|
*/
|
|
171
170
|
const Breadcrumb = Breadcrumbs;
|
|
172
171
|
|
|
172
|
+
const StyledButtonComponent = styled(Button).withConfig({
|
|
173
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
174
|
+
}).withConfig({
|
|
175
|
+
displayName: "Button__StyledButtonComponent",
|
|
176
|
+
componentId: "sc-vqy3e4-0"
|
|
177
|
+
})(["", ""], sx);
|
|
178
|
+
const ButtonComponent = /*#__PURE__*/forwardRef(({
|
|
179
|
+
as,
|
|
180
|
+
sx,
|
|
181
|
+
style: propStyle,
|
|
182
|
+
...props
|
|
183
|
+
}, ref) => {
|
|
184
|
+
const {
|
|
185
|
+
block,
|
|
186
|
+
size = 'medium',
|
|
187
|
+
leadingVisual,
|
|
188
|
+
trailingVisual,
|
|
189
|
+
trailingAction
|
|
190
|
+
} = props;
|
|
191
|
+
let sxStyles = {};
|
|
192
|
+
const style = {
|
|
193
|
+
...(propStyle || {})
|
|
194
|
+
};
|
|
195
|
+
if (sx !== null && Object.keys(sx || {}).length > 0) {
|
|
196
|
+
sxStyles = generateCustomSxProp({
|
|
197
|
+
block,
|
|
198
|
+
size,
|
|
199
|
+
leadingVisual,
|
|
200
|
+
trailingVisual,
|
|
201
|
+
trailingAction
|
|
202
|
+
}, sx);
|
|
203
|
+
const {
|
|
204
|
+
color
|
|
205
|
+
} = sx;
|
|
206
|
+
if (color) style['--button-color'] = color;
|
|
207
|
+
}
|
|
208
|
+
return /*#__PURE__*/jsx(StyledButtonComponent, {
|
|
209
|
+
style: style,
|
|
210
|
+
sx: sxStyles,
|
|
211
|
+
ref: ref,
|
|
212
|
+
...props,
|
|
213
|
+
...(as ? {
|
|
214
|
+
forwardedAs: as
|
|
215
|
+
} : {})
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
// This function is used to generate a custom cssSelector for the sxProp
|
|
220
|
+
|
|
221
|
+
// The usual sx prop can like this:
|
|
222
|
+
// sx={{
|
|
223
|
+
// [`@media (max-width: 768px)`]: {
|
|
224
|
+
// '& > ul': {
|
|
225
|
+
// backgroundColor: 'deeppink',
|
|
226
|
+
// },
|
|
227
|
+
// '&:hover': {
|
|
228
|
+
// backgroundColor: 'yellow',
|
|
229
|
+
// },
|
|
230
|
+
// },
|
|
231
|
+
// '&:hover': {
|
|
232
|
+
// backgroundColor: 'yellow',
|
|
233
|
+
// },
|
|
234
|
+
// '&': {
|
|
235
|
+
// width : 320px
|
|
236
|
+
// }
|
|
237
|
+
// }}
|
|
238
|
+
//*
|
|
239
|
+
/* What we want for Button styles is this:
|
|
240
|
+
sx={{
|
|
241
|
+
// [`@media (max-width: 768px)`]: {
|
|
242
|
+
// '&[data-attribute="something"] > ul': {
|
|
243
|
+
// backgroundColor: 'deeppink',
|
|
244
|
+
// },
|
|
245
|
+
// '&[data-attribute="something"]:hover': {
|
|
246
|
+
// backgroundColor: 'yellow',
|
|
247
|
+
// },
|
|
248
|
+
// },
|
|
249
|
+
// '&[data-attribute="something"]:hover': {
|
|
250
|
+
// backgroundColor: 'yellow',
|
|
251
|
+
// },
|
|
252
|
+
// '&[data-attribute="something"]': {
|
|
253
|
+
// width : 320px
|
|
254
|
+
// }
|
|
255
|
+
// }}
|
|
256
|
+
|
|
257
|
+
// We need to make sure we append the customCSSSelector to the original class selector. i.e & - > &[data-attribute="Icon"][data-size="small"]
|
|
258
|
+
*/
|
|
259
|
+
function generateCustomSxProp(props, providedSx) {
|
|
260
|
+
// Possible data attributes: data-size, data-block, data-no-visuals
|
|
261
|
+
const size = `[data-size="${props.size}"]`;
|
|
262
|
+
const block = props.block ? `[data-block="block"]` : '';
|
|
263
|
+
const noVisuals = props.leadingVisual || props.trailingVisual || props.trailingAction ? '' : '[data-no-visuals]';
|
|
264
|
+
|
|
265
|
+
// this is a custom selector. We need to make sure we add the data attributes to the base css class (& -> &[data-attributename="value"]])
|
|
266
|
+
const cssSelector = `&${size}${block}${noVisuals}`; // &[data-size="small"][data-block="block"][data-no-visuals]
|
|
267
|
+
|
|
268
|
+
const customSxProp = {};
|
|
269
|
+
if (!providedSx) return customSxProp;else {
|
|
270
|
+
customSxProp[cssSelector] = providedSx;
|
|
271
|
+
return customSxProp;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
ButtonComponent.displayName = 'Button';
|
|
275
|
+
|
|
173
276
|
const Checkbox = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
|
|
174
277
|
return /*#__PURE__*/jsx(Box, {
|
|
175
278
|
as: Checkbox$1,
|
|
@@ -286,13 +389,43 @@ const Heading = styled(Heading$1).withConfig({
|
|
|
286
389
|
componentId: "sc-1vc165i-0"
|
|
287
390
|
})(["", ""], sx);
|
|
288
391
|
|
|
289
|
-
const
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
392
|
+
const StyledIconButton = styled(IconButton$1).withConfig({
|
|
393
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
394
|
+
}).withConfig({
|
|
395
|
+
displayName: "IconButton__StyledIconButton",
|
|
396
|
+
componentId: "sc-i53dt6-0"
|
|
397
|
+
})(["", ""], sx);
|
|
398
|
+
const IconButton = /*#__PURE__*/forwardRef(({
|
|
399
|
+
as,
|
|
400
|
+
sx,
|
|
401
|
+
...props
|
|
402
|
+
}, ref) => {
|
|
403
|
+
let sxStyles = sx;
|
|
404
|
+
// grap the button props that have associated data attributes in the styles
|
|
405
|
+
const {
|
|
406
|
+
size = 'medium'
|
|
407
|
+
} = props;
|
|
408
|
+
if (sx !== null && sx !== undefined && Object.keys(sx).length > 0) {
|
|
409
|
+
sxStyles = generateCustomSxProp({
|
|
410
|
+
size
|
|
411
|
+
}, sx);
|
|
412
|
+
}
|
|
413
|
+
return /*#__PURE__*/jsx(StyledIconButton, {
|
|
414
|
+
sx: sxStyles,
|
|
415
|
+
...props,
|
|
416
|
+
...(as ? {
|
|
417
|
+
forwardedAs: as
|
|
418
|
+
} : {}),
|
|
419
|
+
ref: ref
|
|
294
420
|
});
|
|
295
421
|
});
|
|
422
|
+
|
|
423
|
+
const StyledLabel = styled(Label$1).withConfig({
|
|
424
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
425
|
+
}).withConfig({
|
|
426
|
+
displayName: "Label__StyledLabel",
|
|
427
|
+
componentId: "sc-1cpass9-0"
|
|
428
|
+
})(["", ""], sx);
|
|
296
429
|
const Label = /*#__PURE__*/forwardRef(({
|
|
297
430
|
as,
|
|
298
431
|
...props
|
|
@@ -487,12 +620,12 @@ const SegmentedControl = Object.assign(SegmentedControlImpl, {
|
|
|
487
620
|
IconButton: SegmentedControlIconButton
|
|
488
621
|
});
|
|
489
622
|
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}
|
|
623
|
+
const Spinner = styled(Spinner$1).withConfig({
|
|
624
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
625
|
+
}).withConfig({
|
|
626
|
+
displayName: "Spinner",
|
|
627
|
+
componentId: "sc-jbw2a0-0"
|
|
628
|
+
})(["", ""], sx);
|
|
496
629
|
|
|
497
630
|
const StateLabel = /*#__PURE__*/forwardRef(function StateLabel(props, ref) {
|
|
498
631
|
return /*#__PURE__*/jsx(Box, {
|
|
@@ -540,6 +673,38 @@ const Text = /*#__PURE__*/forwardRef(({
|
|
|
540
673
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
541
674
|
});
|
|
542
675
|
|
|
676
|
+
const StyledTextInput = /*#__PURE__*/forwardRef((props, ref) => {
|
|
677
|
+
return /*#__PURE__*/jsx(Box, {
|
|
678
|
+
as: TextInput$1,
|
|
679
|
+
ref: ref,
|
|
680
|
+
...props
|
|
681
|
+
});
|
|
682
|
+
});
|
|
683
|
+
const TextInputImpl = /*#__PURE__*/forwardRef(({
|
|
684
|
+
as,
|
|
685
|
+
...props
|
|
686
|
+
}, ref) => {
|
|
687
|
+
return /*#__PURE__*/jsx(StyledTextInput, {
|
|
688
|
+
ref: ref,
|
|
689
|
+
...props,
|
|
690
|
+
...(as ? {
|
|
691
|
+
forwardedAs: as
|
|
692
|
+
} : {})
|
|
693
|
+
});
|
|
694
|
+
});
|
|
695
|
+
const TextInputAction = /*#__PURE__*/forwardRef((props, ref) => {
|
|
696
|
+
return /*#__PURE__*/jsx(Box, {
|
|
697
|
+
as: TextInput$1.Action,
|
|
698
|
+
ref: ref,
|
|
699
|
+
...props
|
|
700
|
+
});
|
|
701
|
+
});
|
|
702
|
+
const TextInput = Object.assign(TextInputImpl, {
|
|
703
|
+
Action: TextInputAction
|
|
704
|
+
});
|
|
705
|
+
TextInputAction.displayName = 'TextInputAction';
|
|
706
|
+
TextInputImpl.displayName = 'TextInput';
|
|
707
|
+
|
|
543
708
|
const TimelineImpl = /*#__PURE__*/forwardRef(function Timeline(props, ref) {
|
|
544
709
|
return /*#__PURE__*/jsx(Box, {
|
|
545
710
|
as: Timeline$1,
|
|
@@ -589,32 +754,21 @@ const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
|
|
|
589
754
|
});
|
|
590
755
|
});
|
|
591
756
|
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
757
|
+
const StyledToken = styled(Token$1).withConfig({
|
|
758
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
759
|
+
}).withConfig({
|
|
760
|
+
displayName: "Token__StyledToken",
|
|
761
|
+
componentId: "sc-ldn0r8-0"
|
|
762
|
+
})(["", ""], sx);
|
|
763
|
+
const Token = /*#__PURE__*/forwardRef(({
|
|
764
|
+
as,
|
|
765
|
+
...props
|
|
596
766
|
}, ref) => {
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
return /*#__PURE__*/jsx(Token$1, {
|
|
603
|
-
...rest,
|
|
604
|
-
style: style,
|
|
605
|
-
ref: ref
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
// Convert sx to CSS styles using the theme context
|
|
610
|
-
const sxStyles = css(sxProp)(theme$1);
|
|
611
|
-
const mergedStyle = {
|
|
612
|
-
...sxStyles,
|
|
613
|
-
...style
|
|
614
|
-
};
|
|
615
|
-
return /*#__PURE__*/jsx(Token$1, {
|
|
616
|
-
...rest,
|
|
617
|
-
style: mergedStyle,
|
|
767
|
+
return /*#__PURE__*/jsx(StyledToken, {
|
|
768
|
+
...props,
|
|
769
|
+
...(as ? {
|
|
770
|
+
forwardedAs: as
|
|
771
|
+
} : {}),
|
|
618
772
|
ref: ref
|
|
619
773
|
});
|
|
620
774
|
});
|
|
@@ -663,4 +817,4 @@ const UnderlineNav = Object.assign(UnderlineNavImpl, {
|
|
|
663
817
|
Item: UnderlineNavItem
|
|
664
818
|
});
|
|
665
819
|
|
|
666
|
-
export { ActionList, ActionMenu, Autocomplete, Avatar, Breadcrumb, Breadcrumbs, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Flash, Header, Heading, Label, Link, LinkButton, NavList, Overlay, PageLayout, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Text, Timeline, ToggleSwitch, Token, Truncate, UnderlineNav };
|
|
820
|
+
export { ActionList, ActionMenu, Autocomplete, Avatar, Breadcrumb, Breadcrumbs, ButtonComponent as Button, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Flash, Header, Heading, IconButton, Label, Link, LinkButton, NavList, Overlay, PageLayout, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Text, TextInput, Timeline, ToggleSwitch, Token, Truncate, UnderlineNav };
|
package/dist/sx.d.ts
CHANGED
package/dist/sx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAC7C,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,GAAG,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;CACtC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20251008165103",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/preset-react": "^7.27.1",
|
|
32
32
|
"@babel/preset-typescript": "^7.27.1",
|
|
33
|
-
"@primer/react": "0.0.0-
|
|
33
|
+
"@primer/react": "0.0.0-20251008165103",
|
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
35
35
|
"@types/react": "18.3.11",
|
|
36
36
|
"@types/react-dom": "18.3.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "^5.9.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@primer/react": "0.0.0-
|
|
49
|
+
"@primer/react": "0.0.0-20251008165103",
|
|
50
50
|
"@types/react": "18.x || 19.x",
|
|
51
51
|
"@types/react-dom": "18.x || 19.x",
|
|
52
52
|
"@types/react-is": "18.x || 19.x",
|