@primer/react 0.0.0-20260528220857 → 0.0.0-20260528225438
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/CHANGELOG.md +1 -6
- package/dist/ActionList/LinkItem.d.ts +1 -1
- package/dist/ActionList/List.d.ts +11 -2
- package/dist/ActionList/List.d.ts.map +1 -1
- package/dist/ActionList/index.d.ts +24 -4
- package/dist/ActionList/index.d.ts.map +1 -1
- package/dist/BranchName/BranchName.d.ts +4 -2
- package/dist/BranchName/BranchName.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +10 -4
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Card/Card.d.ts +14 -2
- package/dist/Card/Card.d.ts.map +1 -1
- package/dist/Card/index.d.ts +7 -2
- package/dist/Card/index.d.ts.map +1 -1
- package/dist/Link/Link.d.ts +1 -1
- package/dist/NavList/NavList.d.ts +8 -2
- package/dist/NavList/NavList.d.ts.map +1 -1
- package/dist/Text/Text.d.ts +6 -2
- package/dist/Text/Text.d.ts.map +1 -1
- package/dist/Timeline/Timeline.d.ts +2 -1
- package/dist/Timeline/Timeline.d.ts.map +1 -1
- package/dist/TreeView/TreeView.d.ts +2 -11
- package/dist/TreeView/TreeView.d.ts.map +1 -1
- package/dist/TreeView/TreeView.js +86 -109
- package/dist/utils/modern-polymorphic.d.ts +1 -1
- package/dist/utils/modern-polymorphic.d.ts.map +1 -1
- package/generated/components.json +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260528225438
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -17,11 +17,6 @@
|
|
|
17
17
|
|
|
18
18
|
- [#7885](https://github.com/primer/react/pull/7885) [`9d2cb53`](https://github.com/primer/react/commit/9d2cb53c06f172598dc96be11ac0441c338e5341) Thanks [@janmaarten-a11y](https://github.com/janmaarten-a11y)! - Add `Timeline.Avatar` sub-component for rendering an actor avatar in the left gutter of a `Timeline.Item`. Accepts any React children and is absolutely positioned so it does not affect badge or body layout. Consumers must reserve roughly 72px of left padding around the `Timeline` for the avatar to be visible.
|
|
19
19
|
|
|
20
|
-
- [#7897](https://github.com/primer/react/pull/7897) [`dea9ea7`](https://github.com/primer/react/commit/dea9ea7908d3d9fe935c42311952fa5cbd7a17e4) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Add support for the `as` prop on `TreeView.Item`. This enables rendering the
|
|
21
|
-
treeitem as a different element (e.g. `as="a"` for native anchors, or a custom
|
|
22
|
-
router-link component) while preserving all existing keyboard, focus, and ARIA
|
|
23
|
-
behavior. Defaults to `'li'`, so existing usage is unchanged.
|
|
24
|
-
|
|
25
20
|
### Patch Changes
|
|
26
21
|
|
|
27
22
|
- [#7864](https://github.com/primer/react/pull/7864) [`e7205ea`](https://github.com/primer/react/commit/e7205ea51b02fb1b7ac9de2df122f7ba67ebe078) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Eliminate nested-update cascades in `useFocus`, `PageLayout.Pane`, and
|
|
@@ -14,7 +14,7 @@ type LinkProps = {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
};
|
|
16
16
|
export type ActionListLinkItemProps = Pick<ActionListItemProps, 'active' | 'children' | 'inactiveText' | 'variant' | 'size'> & LinkProps;
|
|
17
|
-
declare const LinkItemComponent: <As extends React.ElementType = "a">(props:
|
|
17
|
+
declare const LinkItemComponent: <As extends React.ElementType = "a">(props: (React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & Pick<ActionListItemProps, "active" | "children" | "inactiveText" | "size" | "variant"> & LinkProps extends infer T ? T extends React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & Pick<ActionListItemProps, "active" | "children" | "inactiveText" | "size" | "variant"> & LinkProps ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
18
18
|
as?: As | undefined;
|
|
19
19
|
} & React.RefAttributes<unknown>) => React.ReactNode;
|
|
20
20
|
export declare const LinkItem: WithSlotMarker<typeof LinkItemComponent>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const List: <As extends React.ElementType = "ul">(props:
|
|
2
|
+
declare const List: <As extends React.ElementType = "ul">(props: (React.ComponentPropsWithRef<React.ElementType extends As ? "ul" : As> & {
|
|
3
3
|
variant?: "inset" | "horizontal-inset" | "full";
|
|
4
4
|
selectionVariant?: "single" | "radio" | "multiple";
|
|
5
5
|
showDividers?: boolean;
|
|
@@ -8,7 +8,16 @@ declare const List: <As extends React.ElementType = "ul">(props: import("../util
|
|
|
8
8
|
className?: string;
|
|
9
9
|
} & {
|
|
10
10
|
children?: React.ReactNode | undefined;
|
|
11
|
-
}
|
|
11
|
+
} extends infer T ? T extends React.ComponentPropsWithRef<React.ElementType extends As ? "ul" : As> & {
|
|
12
|
+
variant?: "inset" | "horizontal-inset" | "full";
|
|
13
|
+
selectionVariant?: "single" | "radio" | "multiple";
|
|
14
|
+
showDividers?: boolean;
|
|
15
|
+
role?: import("../utils/types").AriaRole;
|
|
16
|
+
disableFocusZone?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
} & {
|
|
19
|
+
children?: React.ReactNode | undefined;
|
|
20
|
+
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
12
21
|
as?: As | undefined;
|
|
13
22
|
} & React.RefAttributes<unknown>) => React.ReactNode;
|
|
14
23
|
export { List };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/ActionList/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAqHrC,QAAA,MAAM,IAAI,GAxGa,EAAE,SAAS,KAAK,CAAC,WAAW
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/ActionList/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAqHrC,QAAA,MAAM,IAAI,GAxGa,EAAE,SAAS,KAAK,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;oDAwGR,CAAA;AAI3C,OAAO,EAAC,IAAI,EAAC,CAAA"}
|
|
@@ -11,7 +11,7 @@ export type { ActionListGroupHeadingTrailingActionProps } from './GroupHeadingTr
|
|
|
11
11
|
/**
|
|
12
12
|
* Collection of list-related components.
|
|
13
13
|
*/
|
|
14
|
-
export declare const ActionList: (<As extends React.ElementType = "ul">(props:
|
|
14
|
+
export declare const ActionList: (<As extends React.ElementType = "ul">(props: (import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "ul" : As> & {
|
|
15
15
|
variant?: "inset" | "horizontal-inset" | "full";
|
|
16
16
|
selectionVariant?: "single" | "radio" | "multiple";
|
|
17
17
|
showDividers?: boolean;
|
|
@@ -20,7 +20,16 @@ export declare const ActionList: (<As extends React.ElementType = "ul">(props: i
|
|
|
20
20
|
className?: string;
|
|
21
21
|
} & {
|
|
22
22
|
children?: import("react").ReactNode | undefined;
|
|
23
|
-
}
|
|
23
|
+
} extends infer T ? T extends import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "ul" : As> & {
|
|
24
|
+
variant?: "inset" | "horizontal-inset" | "full";
|
|
25
|
+
selectionVariant?: "single" | "radio" | "multiple";
|
|
26
|
+
showDividers?: boolean;
|
|
27
|
+
role?: import("../utils/types").AriaRole;
|
|
28
|
+
disableFocusZone?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
} & {
|
|
31
|
+
children?: import("react").ReactNode | undefined;
|
|
32
|
+
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
24
33
|
as?: As | undefined;
|
|
25
34
|
} & import("react").RefAttributes<unknown>) => React.ReactNode) & {
|
|
26
35
|
/** Context for the `ActionList` container. */
|
|
@@ -87,7 +96,18 @@ export declare const ActionList: (<As extends React.ElementType = "ul">(props: i
|
|
|
87
96
|
__SLOT__: symbol;
|
|
88
97
|
};
|
|
89
98
|
/** A `Item` that renders a full-size anchor inside ListItem */
|
|
90
|
-
LinkItem: import("..").WithSlotMarker<(<As extends React.ElementType = "a">(props:
|
|
99
|
+
LinkItem: import("..").WithSlotMarker<(<As extends React.ElementType = "a">(props: (import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "a" : As> & Pick<import("./shared").ActionListItemProps, "active" | "children" | "inactiveText" | "size" | "variant"> & {
|
|
100
|
+
download?: string;
|
|
101
|
+
href?: string;
|
|
102
|
+
hrefLang?: string;
|
|
103
|
+
media?: string;
|
|
104
|
+
ping?: string;
|
|
105
|
+
rel?: string;
|
|
106
|
+
target?: string;
|
|
107
|
+
type?: string;
|
|
108
|
+
referrerPolicy?: React.AnchorHTMLAttributes<HTMLAnchorElement>["referrerPolicy"];
|
|
109
|
+
className?: string;
|
|
110
|
+
} extends infer T ? T extends import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "a" : As> & Pick<import("./shared").ActionListItemProps, "active" | "children" | "inactiveText" | "size" | "variant"> & {
|
|
91
111
|
download?: string;
|
|
92
112
|
href?: string;
|
|
93
113
|
hrefLang?: string;
|
|
@@ -98,7 +118,7 @@ export declare const ActionList: (<As extends React.ElementType = "ul">(props: i
|
|
|
98
118
|
type?: string;
|
|
99
119
|
referrerPolicy?: React.AnchorHTMLAttributes<HTMLAnchorElement>["referrerPolicy"];
|
|
100
120
|
className?: string;
|
|
101
|
-
}, "as"> & {
|
|
121
|
+
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
102
122
|
as?: As | undefined;
|
|
103
123
|
} & import("react").RefAttributes<unknown>) => React.ReactNode)>;
|
|
104
124
|
/** Visually separates `Item`s or `Group`s in an `ActionList`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ActionList/index.ts"],"names":[],"mappings":"AAWA,YAAY,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;;;;;;;;;;;;;;IACrB,8CAA8C;;;;;;;;;;;IAE9C,mDAAmD;;IAGnD,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGzC,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;IAG/D,iEAAiE;;IAGjE,4EAA4E;;IAG5E,uDAAuD;;IAGvD,sDAAsD;;IAGtD,mCAAmC;;IAGnC,gGAAgG;;;;IAGhG,qCAAqC;;;;;;;IAGrC,uBAAuB;;CAEvB,CAAA"}
|
|
@@ -3,9 +3,11 @@ import { type PolymorphicProps } from '../utils/modern-polymorphic';
|
|
|
3
3
|
export type BranchNameProps<As extends React.ElementType> = PolymorphicProps<As, 'a', {
|
|
4
4
|
className?: string;
|
|
5
5
|
}>;
|
|
6
|
-
declare const _default: <As extends React.ElementType>(props:
|
|
6
|
+
declare const _default: <As extends React.ElementType>(props: (React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
|
|
7
7
|
className?: string;
|
|
8
|
-
}
|
|
8
|
+
} extends infer T ? T extends React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
|
|
9
|
+
className?: string;
|
|
10
|
+
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
9
11
|
as?: As | undefined;
|
|
10
12
|
} & React.RefAttributes<any>) => React.ReactNode;
|
|
11
13
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchName.d.ts","sourceRoot":"","sources":["../../src/BranchName/BranchName.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAkB,KAAK,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAElF,MAAM,MAAM,eAAe,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI,gBAAgB,CAC1E,EAAE,EACF,GAAG,EACH;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CACF,CAAA;yBAGmB,EAAE,SAAS,KAAK,CAAC,WAAW;gBALhC,MAAM;;;;AAgBtB,wBAA0C"}
|
|
1
|
+
{"version":3,"file":"BranchName.d.ts","sourceRoot":"","sources":["../../src/BranchName/BranchName.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAkB,KAAK,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAElF,MAAM,MAAM,eAAe,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI,gBAAgB,CAC1E,EAAE,EACF,GAAG,EACH;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CACF,CAAA;yBAGmB,EAAE,SAAS,KAAK,CAAC,WAAW;gBALhC,MAAM;;gBAAN,MAAM;;;;AAgBtB,wBAA0C"}
|
|
@@ -34,10 +34,13 @@ type StyledBreadcrumbsItemProps<As extends React.ElementType = 'a'> = Polymorphi
|
|
|
34
34
|
}>;
|
|
35
35
|
export type BreadcrumbsItemProps<As extends React.ElementType = 'a'> = StyledBreadcrumbsItemProps<As>;
|
|
36
36
|
declare const _default: typeof Breadcrumbs & {
|
|
37
|
-
Item: (<As extends React.ElementType = "a">(props:
|
|
37
|
+
Item: (<As extends React.ElementType = "a">(props: (React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
|
|
38
38
|
to?: To;
|
|
39
39
|
selected?: boolean;
|
|
40
|
-
}
|
|
40
|
+
} extends infer T ? T extends React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
|
|
41
|
+
to?: To;
|
|
42
|
+
selected?: boolean;
|
|
43
|
+
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
41
44
|
as?: As | undefined;
|
|
42
45
|
} & React.RefAttributes<any>) => React.ReactNode) & {
|
|
43
46
|
displayName: string;
|
|
@@ -48,10 +51,13 @@ export default _default;
|
|
|
48
51
|
* @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
|
|
49
52
|
*/
|
|
50
53
|
export declare const Breadcrumb: typeof Breadcrumbs & {
|
|
51
|
-
Item: <As extends React.ElementType = "a">(props:
|
|
54
|
+
Item: <As extends React.ElementType = "a">(props: (React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
|
|
55
|
+
to?: To;
|
|
56
|
+
selected?: boolean;
|
|
57
|
+
} extends infer T ? T extends React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
|
|
52
58
|
to?: To;
|
|
53
59
|
selected?: boolean;
|
|
54
|
-
}, "as"> & {
|
|
60
|
+
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
55
61
|
as?: As | undefined;
|
|
56
62
|
} & React.RefAttributes<any>) => React.ReactNode;
|
|
57
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,EAAE,EAAC,MAAM,SAAS,CAAA;AAC/B,OAAO,KAA6E,MAAM,OAAO,CAAA;AAUjG,OAAO,EAAC,KAAK,gBAAgB,EAAkB,MAAM,6BAA6B,CAAA;AAElF,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACrD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAA;IAC7C;;;;OAIG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B,CAAC,CAAA;AA8GF,iBAAS,WAAW,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAiB,EAAE,OAAkB,EAAC,EAAE,gBAAgB,qBAoMzG;kBApMQ,WAAW;;;AAg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K,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B,CAAC,CAAA;AA8GF,iBAAS,WAAW,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAiB,EAAE,OAAkB,EAAC,EAAE,gBAAgB,qBAoMzG;kBApMQ,WAAW;;;AAgNpB,KAAK,0BAA0B,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,IAAI,gBAAgB,CACpF,EAAE,EACF,GAAG,EACH;IACE,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CACF,CAAA;AAuBD,MAAM,MAAM,oBAAoB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,IAAI,0BAA0B,CAAC,EAAE,CAAC,CAAA;;YApBlG,EAAE,SAAS,KAAK,CAAC,WAAW;aANtB,EAAE;mBACI,OAAO;;aADb,EAAE;mBACI,OAAO;;;;;;;AA4BtB,wBAAiF;AAEjF;;GAEG;AACH,eAAO,MAAM,UAAU;WA5BpB,EAAE,SAAS,KAAK,CAAC,WAAW;aANtB,EAAE;mBACI,OAAO;;aADb,EAAE;mBACI,OAAO;;;;CAiCuD,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,IAAI,oBAAoB,CAAC,EAAE,CAAC,CAAA"}
|
package/dist/Card/Card.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ type MetadataProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
|
60
60
|
*/
|
|
61
61
|
children: React.ReactNode;
|
|
62
62
|
};
|
|
63
|
-
declare const CardImpl: <As extends CardAs>(props:
|
|
63
|
+
declare const CardImpl: <As extends CardAs>(props: (React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
64
64
|
/** Optional className for the root element. */
|
|
65
65
|
className?: string;
|
|
66
66
|
/** Internal padding. @default 'normal' */
|
|
@@ -72,7 +72,19 @@ declare const CardImpl: <As extends CardAs>(props: import("../utils/modern-polym
|
|
|
72
72
|
* `Card.Description`, `Card.Metadata`) or custom content.
|
|
73
73
|
*/
|
|
74
74
|
children: React.ReactNode;
|
|
75
|
-
}
|
|
75
|
+
} extends infer T ? T extends React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
76
|
+
/** Optional className for the root element. */
|
|
77
|
+
className?: string;
|
|
78
|
+
/** Internal padding. @default 'normal' */
|
|
79
|
+
padding?: "none" | "condensed" | "normal";
|
|
80
|
+
/** Border radius. @default 'large' */
|
|
81
|
+
borderRadius?: "medium" | "large";
|
|
82
|
+
/**
|
|
83
|
+
* Card contents. Provide either `Card.*` subcomponents (e.g. `Card.Heading`,
|
|
84
|
+
* `Card.Description`, `Card.Metadata`) or custom content.
|
|
85
|
+
*/
|
|
86
|
+
children: React.ReactNode;
|
|
87
|
+
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
76
88
|
as?: As | undefined;
|
|
77
89
|
} & React.RefAttributes<any>) => React.ReactNode;
|
|
78
90
|
declare function CardIcon({ icon: IconComponent, 'aria-label': ariaLabel, className }: IconProps): React.JSX.Element;
|
package/dist/Card/Card.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/Card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiE,MAAM,OAAO,CAAA;AAErF,OAAO,EAAkB,KAAK,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAMlF,KAAK,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;AAE/B,MAAM,MAAM,SAAS,CAAC,EAAE,SAAS,MAAM,GAAG,KAAK,IAAI,gBAAgB,CACjE,EAAE,EACF,KAAK,EACL;IACE,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,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,WAAW,qBAE1C;kBAFQ,UAAU;;;AAMnB,QAAA,MAAM,YAAY;IA3LhB;;;OAGG;cACO,KAAK,CAAC,SAAS;wCAgMzB,CAAA;AAIF,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAC,CAAA;AAC9F,YAAY,EAAC,YAAY,IAAI,gBAAgB,EAAC,CAAA;AAC9C,YAAY,EAAC,gBAAgB,IAAI,oBAAoB,EAAC,CAAA;AACtD,YAAY,EAAC,SAAS,IAAI,aAAa,EAAC,CAAA;AACxC,YAAY,EAAC,UAAU,IAAI,cAAc,EAAC,CAAA;AAC1C,YAAY,EAAC,WAAW,IAAI,eAAe,EAAC,CAAA;AAC5C,YAAY,EAAC,aAAa,IAAI,iBAAiB,EAAC,CAAA"}
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { CardIcon, CardImage, CardAction } from './Card';
|
|
2
2
|
import type { CardProps, CardIconProps, CardImageProps, CardHeadingProps, CardDescriptionProps, CardActionProps, CardMetadataProps } from './Card';
|
|
3
|
-
declare const Card: (<As extends "div" | "section">(props:
|
|
3
|
+
declare const Card: (<As extends "div" | "section">(props: (import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
4
4
|
className?: string;
|
|
5
5
|
padding?: "none" | "condensed" | "normal";
|
|
6
6
|
borderRadius?: "medium" | "large";
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
-
}
|
|
8
|
+
} extends infer T ? T extends import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
9
|
+
className?: string;
|
|
10
|
+
padding?: "none" | "condensed" | "normal";
|
|
11
|
+
borderRadius?: "medium" | "large";
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
9
14
|
as?: As | undefined;
|
|
10
15
|
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
11
16
|
Icon: typeof CardIcon;
|
package/dist/Card/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,QAAQ,EAAE,SAAS,EAAgC,UAAU,EAAe,MAAM,QAAQ,CAAA;AAC5G,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EAClB,MAAM,QAAQ,CAAA;AAEf,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,QAAQ,EAAE,SAAS,EAAgC,UAAU,EAAe,MAAM,QAAQ,CAAA;AAC5G,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EAClB,MAAM,QAAQ,CAAA;AAEf,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CAOR,CAAA;AAEF,OAAO,EAAC,IAAI,EAAC,CAAA;AACb,YAAY,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,GAClB,CAAA"}
|
package/dist/Link/Link.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ type StyledLinkProps<As extends React.ElementType = 'a'> = {
|
|
|
9
9
|
inline?: boolean;
|
|
10
10
|
};
|
|
11
11
|
export declare const UnwrappedLink: <As extends React.ElementType = "a">(props: PolymorphicProps<As, "a", StyledLinkProps>, ref: ForwardedRef<unknown>) => React.JSX.Element;
|
|
12
|
-
declare const Link: (<As extends React.ElementType = "a">(props:
|
|
12
|
+
declare const Link: (<As extends React.ElementType = "a">(props: (React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & StyledLinkProps<"a"> extends infer T ? T extends React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & StyledLinkProps<"a"> ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
13
13
|
as?: As | undefined;
|
|
14
14
|
} & React.RefAttributes<unknown>) => React.ReactNode) & {
|
|
15
15
|
displayName: string;
|
|
@@ -41,13 +41,19 @@ export declare const GroupExpand: React.ForwardRefExoticComponent<NavListGroupEx
|
|
|
41
41
|
export type NavListGroupHeadingProps = ActionListGroupHeadingProps;
|
|
42
42
|
export declare const NavList: React.ForwardRefExoticComponent<Omit<NavListProps, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
43
43
|
Description: import("..").FCWithSlotMarker<React.PropsWithChildren<import("..").ActionListDescriptionProps>>;
|
|
44
|
-
Item: (<As extends React.ElementType = "a">(props:
|
|
44
|
+
Item: (<As extends React.ElementType = "a">(props: (React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
|
|
45
45
|
children: React.ReactNode;
|
|
46
46
|
defaultOpen?: boolean;
|
|
47
47
|
href?: string;
|
|
48
48
|
'aria-current'?: "page" | "step" | "location" | "date" | "time" | "true" | "false" | boolean;
|
|
49
49
|
inactiveText?: string;
|
|
50
|
-
}
|
|
50
|
+
} extends infer T ? T extends React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
|
|
51
|
+
children: React.ReactNode;
|
|
52
|
+
defaultOpen?: boolean;
|
|
53
|
+
href?: string;
|
|
54
|
+
'aria-current'?: "page" | "step" | "location" | "date" | "time" | "true" | "false" | boolean;
|
|
55
|
+
inactiveText?: string;
|
|
56
|
+
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
51
57
|
as?: As | undefined;
|
|
52
58
|
} & React.RefAttributes<unknown>) => React.ReactNode) & {
|
|
53
59
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources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,EAAE,MAAM,CAAA;IACZ,cAAc,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IAC9B,aAAa,CAAC,EAAE,IAAI,CAAA;IACpB,cAAc,CAAC,EAAE,6BAA6B,CAAA;IAC9C,0BAA0B,CAAC,EAAE,MAAM,CAAA;CACpC,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEtC,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,KAAK,CAAC,SAAS,CAAA;CAClD,CAAA;AAED,eAAO,MAAM,WAAW,mGAgFvB,CAAA;AAKD,MAAM,MAAM,wBAAwB,GAAG,2BAA2B,CAAA;AAqBlE,eAAO,MAAM,OAAO;;YArWjB,EAAE,SAAS,KAAK,CAAC,WAAW;kBATjB,KAAK,CAAC,SAAS;sBACX,OAAO;eACd,MAAM;yBACI,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO;uBAC7E,MAAM;;kBAJX,KAAK,CAAC,SAAS;sBACX,OAAO;eACd,MAAM;yBACI,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO;uBAC7E,MAAM;;;;;;;;;;;;;;CAqXvB,CAAA"}
|
package/dist/Text/Text.d.ts
CHANGED
|
@@ -5,11 +5,15 @@ export type TextProps<As extends React.ElementType = 'span'> = PolymorphicProps<
|
|
|
5
5
|
weight?: 'light' | 'normal' | 'medium' | 'semibold';
|
|
6
6
|
className?: string;
|
|
7
7
|
}>;
|
|
8
|
-
declare const _default: <As extends React.ElementType>(props:
|
|
8
|
+
declare const _default: <As extends React.ElementType>(props: (React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
|
|
9
9
|
size?: "large" | "medium" | "small";
|
|
10
10
|
weight?: "light" | "normal" | "medium" | "semibold";
|
|
11
11
|
className?: string;
|
|
12
|
-
}
|
|
12
|
+
} extends infer T ? T extends React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
|
|
13
|
+
size?: "large" | "medium" | "small";
|
|
14
|
+
weight?: "light" | "normal" | "medium" | "semibold";
|
|
15
|
+
className?: string;
|
|
16
|
+
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
13
17
|
as?: As | undefined;
|
|
14
18
|
} & React.RefAttributes<any>) => React.ReactNode;
|
|
15
19
|
export default _default;
|
package/dist/Text/Text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/Text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAkB,KAAK,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAElF,MAAM,MAAM,SAAS,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,IAAI,gBAAgB,CAC7E,EAAE,EACF,MAAM,EACN;IACE,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAA;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CACF,CAAA;yBAGa,EAAE,SAAS,KAAK,CAAC,WAAW;WAP/B,OAAO,GAAG,QAAQ,GAAG,OAAO;aAC1B,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU;gBACvC,MAAM;;;;AAetB,wBAAoC"}
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/Text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAkB,KAAK,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAElF,MAAM,MAAM,SAAS,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,IAAI,gBAAgB,CAC7E,EAAE,EACF,MAAM,EACN;IACE,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAA;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CACF,CAAA;yBAGa,EAAE,SAAS,KAAK,CAAC,WAAW;WAP/B,OAAO,GAAG,QAAQ,GAAG,OAAO;aAC1B,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU;gBACvC,MAAM;;WAFX,OAAO,GAAG,QAAQ,GAAG,OAAO;aAC1B,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU;gBACvC,MAAM;;;;AAetB,wBAAoC"}
|
|
@@ -13,7 +13,8 @@ type StyledTimelineItemProps = {
|
|
|
13
13
|
*/
|
|
14
14
|
export type TimelineItemsProps = StyledTimelineItemProps & React.ComponentPropsWithoutRef<'div'>;
|
|
15
15
|
export type TimelineItemProps = StyledTimelineItemProps & React.ComponentPropsWithoutRef<'div'>;
|
|
16
|
-
export
|
|
16
|
+
export declare const TimelineBadgeVariants: readonly ["accent", "success", "attention", "severe", "danger", "done", "open", "closed", "sponsors"];
|
|
17
|
+
export type TimelineBadgeVariant = (typeof TimelineBadgeVariants)[number];
|
|
17
18
|
export type TimelineBadgeProps = {
|
|
18
19
|
children?: React.ReactNode;
|
|
19
20
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/Timeline/Timeline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,KAAK,mBAAmB,GAAG;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UxB,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qCAAqC;IACrC,OAAO,CAAC,EAAE,oBAAoB,CAAA;CAC/B,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAYzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAQzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAQzC,MAAM,MAAM,oBAAoB,GAAG;IACjC,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAQzC,MAAM,MAAM,mBAAmB,GAAG;IAChC,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;;;;QAFvC,oCAAoC;oBACxB,MAAM;;;2CA7CmC,kBAAkB;;;;QAWvE,oCAAoC;oBACxB,MAAM;;;QAUlB,oCAAoC;oBACxB,MAAM;;;QAUlB,oCAAoC;oBACxB,MAAM;;;AAoBpB,wBAOE"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type Icon } from '@primer/octicons-react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { FCWithSlotMarker } from '../utils/types';
|
|
4
|
-
import { type DistributiveOmit } from '../utils/modern-polymorphic';
|
|
5
4
|
export type TreeViewProps = {
|
|
6
5
|
'aria-label'?: React.AriaAttributes['aria-label'];
|
|
7
6
|
'aria-labelledby'?: React.AriaAttributes['aria-labelledby'];
|
|
@@ -18,7 +17,7 @@ export type TreeViewSecondaryActions = {
|
|
|
18
17
|
count?: number | string;
|
|
19
18
|
className?: string;
|
|
20
19
|
};
|
|
21
|
-
type
|
|
20
|
+
export type TreeViewItemProps = {
|
|
22
21
|
'aria-label'?: React.AriaAttributes['aria-label'];
|
|
23
22
|
'aria-labelledby'?: React.AriaAttributes['aria-labelledby'];
|
|
24
23
|
id: string;
|
|
@@ -32,9 +31,6 @@ type TreeViewItemBaseProps = {
|
|
|
32
31
|
className?: string;
|
|
33
32
|
secondaryActions?: TreeViewSecondaryActions[];
|
|
34
33
|
};
|
|
35
|
-
export type TreeViewItemProps<As extends React.ElementType = 'li'> = DistributiveOmit<React.ComponentPropsWithoutRef<React.ElementType extends As ? 'li' : As>, 'as' | 'onSelect'> & TreeViewItemBaseProps & {
|
|
36
|
-
as?: As;
|
|
37
|
-
};
|
|
38
34
|
export type SubTreeState = 'initial' | 'loading' | 'done' | 'error';
|
|
39
35
|
export type TreeViewSubTreeProps = {
|
|
40
36
|
children?: React.ReactNode;
|
|
@@ -66,11 +62,7 @@ export type TreeViewErrorDialogProps = {
|
|
|
66
62
|
onDismiss?: () => void;
|
|
67
63
|
};
|
|
68
64
|
export declare const TreeView: React.FC<TreeViewProps> & {
|
|
69
|
-
Item:
|
|
70
|
-
as?: As | undefined;
|
|
71
|
-
} & React.RefAttributes<unknown>) => React.ReactNode) & {
|
|
72
|
-
displayName: string;
|
|
73
|
-
};
|
|
65
|
+
Item: React.ForwardRefExoticComponent<TreeViewItemProps & React.RefAttributes<HTMLElement>>;
|
|
74
66
|
SubTree: FCWithSlotMarker<TreeViewSubTreeProps>;
|
|
75
67
|
LeadingAction: React.FC<TreeViewVisualProps>;
|
|
76
68
|
LeadingVisual: React.FC<TreeViewVisualProps>;
|
|
@@ -78,5 +70,4 @@ export declare const TreeView: React.FC<TreeViewProps> & {
|
|
|
78
70
|
DirectoryIcon: () => React.JSX.Element;
|
|
79
71
|
ErrorDialog: React.FC<TreeViewErrorDialogProps>;
|
|
80
72
|
};
|
|
81
|
-
export {};
|
|
82
73
|
//# sourceMappingURL=TreeView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeView.d.ts","sourceRoot":"","sources":["../../src/TreeView/TreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,wBAAwB,CAAA;AAE/B,OAAO,KAA+B,MAAM,OAAO,CAAA;AAsBnD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"TreeView.d.ts","sourceRoot":"","sources":["../../src/TreeView/TreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,wBAAwB,CAAA;AAE/B,OAAO,KAA+B,MAAM,OAAO,CAAA;AAsBnD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAA;AA4CpD,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAA;IACjD,iBAAiB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAA;IAC3D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,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AAK,KAAK,CAAC,SAAS,CAAC,CAAA;IAG/E,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAqED,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,wBAAwB,EAAE,CAAA;IACjC,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AA0ED,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,wBAAwB,EAAE,CAAA;IACjC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAwED,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AA4CD,eAAO,MAAM,QAAQ;;;;;;;;CAQnB,CAAA"}
|
|
@@ -16,7 +16,6 @@ import { IconButton } from '../Button/IconButton.js';
|
|
|
16
16
|
import { ButtonComponent } from '../Button/Button.js';
|
|
17
17
|
import { ActionList } from '../ActionList/index.js';
|
|
18
18
|
import { isSlot } from '../utils/is-slot.js';
|
|
19
|
-
import { fixedForwardRef } from '../utils/modern-polymorphic.js';
|
|
20
19
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
20
|
import { useIsMacOS } from '../hooks/useIsMacOS.js';
|
|
22
21
|
import { AriaStatus } from '../live-region/AriaStatus.js';
|
|
@@ -261,17 +260,7 @@ Root.displayName = 'TreeView';
|
|
|
261
260
|
// ----------------------------------------------------------------------------
|
|
262
261
|
// TreeView.Item
|
|
263
262
|
|
|
264
|
-
|
|
265
|
-
// `ref` and `onSelect` from the underlying element's props:
|
|
266
|
-
// - `ref` is provided solely by `fixedForwardRef` (typed as `Ref<unknown>`), preserving
|
|
267
|
-
// backward compatibility with consumers that pass `Ref<HTMLElement>` rather than the
|
|
268
|
-
// intrinsic element's ref type (e.g. `Ref<HTMLLIElement>` for the default `<li>`).
|
|
269
|
-
// - Our custom `onSelect` (typed against `HTMLElement`) replaces the native
|
|
270
|
-
// `ReactEventHandler<HTMLLIElement>` that would otherwise be intersected in
|
|
271
|
-
// and conflict with existing consumers.
|
|
272
|
-
// `DistributiveOmit` keeps the omit distributing over `as` union types.
|
|
273
|
-
|
|
274
|
-
const ItemImpl = fixedForwardRef(({
|
|
263
|
+
const Item = /*#__PURE__*/React.forwardRef(({
|
|
275
264
|
id: itemId,
|
|
276
265
|
containIntrinsicSize,
|
|
277
266
|
current: isCurrentItem = false,
|
|
@@ -283,16 +272,8 @@ const ItemImpl = fixedForwardRef(({
|
|
|
283
272
|
className,
|
|
284
273
|
'aria-label': ariaLabel,
|
|
285
274
|
'aria-labelledby': ariaLabelledby,
|
|
286
|
-
secondaryActions
|
|
287
|
-
as: Component,
|
|
288
|
-
...restProps
|
|
275
|
+
secondaryActions
|
|
289
276
|
}, ref) => {
|
|
290
|
-
// Note: when `as` swaps the element from `<li>`, the resulting markup
|
|
291
|
-
// (e.g. `<a>` as a direct child of `<ul role="tree">`) is technically
|
|
292
|
-
// not valid HTML. This mirrors the trade-off made by other polymorphic
|
|
293
|
-
// Primer components (e.g. `Breadcrumbs.Item`, `ActionList.LinkItem`)
|
|
294
|
-
// to support router-link integrations.
|
|
295
|
-
const ItemElement = Component !== null && Component !== void 0 ? Component : 'li';
|
|
296
277
|
const [slots, rest] = useSlots(children, {
|
|
297
278
|
leadingAction: LeadingAction,
|
|
298
279
|
leadingVisual: LeadingVisual,
|
|
@@ -333,7 +314,9 @@ const ItemImpl = fixedForwardRef(({
|
|
|
333
314
|
const isMacOS = useIsMacOS();
|
|
334
315
|
|
|
335
316
|
// Set the expanded state and cache it
|
|
336
|
-
const setIsExpandedWithCache = React.useCallback(
|
|
317
|
+
const setIsExpandedWithCache = React.useCallback(
|
|
318
|
+
// eslint-disable-next-line react-hooks/preserve-manual-memoization
|
|
319
|
+
newIsExpanded => {
|
|
337
320
|
var _expandedStateCache$c3;
|
|
338
321
|
setIsExpanded(newIsExpanded);
|
|
339
322
|
(_expandedStateCache$c3 = expandedStateCache.current) === null || _expandedStateCache$c3 === void 0 ? void 0 : _expandedStateCache$c3.set(itemId, newIsExpanded);
|
|
@@ -356,34 +339,34 @@ const ItemImpl = fixedForwardRef(({
|
|
|
356
339
|
action();
|
|
357
340
|
}
|
|
358
341
|
}, [secondaryActions]);
|
|
359
|
-
const handleKeyDown = React.useCallback(
|
|
360
|
-
switch (
|
|
342
|
+
const handleKeyDown = React.useCallback(event_0 => {
|
|
343
|
+
switch (event_0.key) {
|
|
361
344
|
case 'Enter':
|
|
362
345
|
case ' ':
|
|
363
346
|
if (onSelect) {
|
|
364
|
-
onSelect(
|
|
347
|
+
onSelect(event_0);
|
|
365
348
|
} else {
|
|
366
|
-
toggle(
|
|
349
|
+
toggle(event_0);
|
|
367
350
|
}
|
|
368
|
-
|
|
351
|
+
event_0.stopPropagation();
|
|
369
352
|
break;
|
|
370
353
|
case 'ArrowRight':
|
|
371
354
|
// Ignore if modifier keys are pressed
|
|
372
|
-
if (
|
|
373
|
-
|
|
374
|
-
|
|
355
|
+
if (event_0.altKey || event_0.metaKey) return;
|
|
356
|
+
event_0.preventDefault();
|
|
357
|
+
event_0.stopPropagation();
|
|
375
358
|
setIsExpandedWithCache(true);
|
|
376
359
|
break;
|
|
377
360
|
case 'ArrowLeft':
|
|
378
361
|
// Ignore if modifier keys are pressed
|
|
379
|
-
if (
|
|
380
|
-
|
|
381
|
-
|
|
362
|
+
if (event_0.altKey || event_0.metaKey) return;
|
|
363
|
+
event_0.preventDefault();
|
|
364
|
+
event_0.stopPropagation();
|
|
382
365
|
setIsExpandedWithCache(false);
|
|
383
366
|
break;
|
|
384
367
|
case 'U':
|
|
385
368
|
case 'u':
|
|
386
|
-
if (!(
|
|
369
|
+
if (!(event_0.shiftKey && (event_0.metaKey || event_0.ctrlKey))) return;
|
|
387
370
|
activateActionsDialog();
|
|
388
371
|
break;
|
|
389
372
|
}
|
|
@@ -403,7 +386,7 @@ const ItemImpl = fixedForwardRef(({
|
|
|
403
386
|
trailingVisualId,
|
|
404
387
|
trailingActionId
|
|
405
388
|
},
|
|
406
|
-
children: /*#__PURE__*/jsxs(
|
|
389
|
+
children: /*#__PURE__*/jsxs("li", {
|
|
407
390
|
className: clsx('PRIVATE_TreeView-item', className, classes.TreeViewItem),
|
|
408
391
|
ref: ref,
|
|
409
392
|
tabIndex: 0,
|
|
@@ -418,33 +401,32 @@ const ItemImpl = fixedForwardRef(({
|
|
|
418
401
|
"aria-selected": isFocused ? 'true' : 'false',
|
|
419
402
|
"data-has-leading-action": slots.leadingAction ? true : undefined,
|
|
420
403
|
onKeyDown: handleKeyDown,
|
|
421
|
-
onFocus:
|
|
404
|
+
onFocus: event_1 => {
|
|
422
405
|
// Defer scroll to the next animation frame so that rapid keyboard
|
|
423
406
|
// navigation (held key) coalesces into a single reflow per frame
|
|
424
|
-
scrollElementIntoView(
|
|
407
|
+
scrollElementIntoView(event_1.currentTarget.firstElementChild);
|
|
425
408
|
|
|
426
409
|
// Set the focused state
|
|
427
410
|
setIsFocused(true);
|
|
428
411
|
|
|
429
412
|
// Prevent focus event from bubbling up to parent items
|
|
430
|
-
|
|
413
|
+
event_1.stopPropagation();
|
|
431
414
|
},
|
|
432
415
|
onBlur: () => setIsFocused(false),
|
|
433
|
-
onClick:
|
|
416
|
+
onClick: event_2 => {
|
|
434
417
|
if (onSelect) {
|
|
435
|
-
onSelect(
|
|
418
|
+
onSelect(event_2);
|
|
436
419
|
} else {
|
|
437
|
-
toggle(
|
|
420
|
+
toggle(event_2);
|
|
438
421
|
}
|
|
439
|
-
|
|
422
|
+
event_2.stopPropagation();
|
|
440
423
|
},
|
|
441
|
-
onAuxClick:
|
|
442
|
-
if (onSelect &&
|
|
443
|
-
onSelect(
|
|
424
|
+
onAuxClick: event_3 => {
|
|
425
|
+
if (onSelect && event_3.button === 1) {
|
|
426
|
+
onSelect(event_3);
|
|
444
427
|
}
|
|
445
|
-
|
|
428
|
+
event_3.stopPropagation();
|
|
446
429
|
},
|
|
447
|
-
...restProps,
|
|
448
430
|
children: [/*#__PURE__*/jsxs("div", {
|
|
449
431
|
className: clsx('PRIVATE_TreeView-item-container', classes.TreeViewItemContainer),
|
|
450
432
|
style: {
|
|
@@ -469,9 +451,9 @@ const ItemImpl = fixedForwardRef(({
|
|
|
469
451
|
// If they take up a button role, they become unnecessary and numerous tab stops.
|
|
470
452
|
jsx("div", {
|
|
471
453
|
className: clsx('PRIVATE_TreeView-item-toggle', onSelect && 'PRIVATE_TreeView-item-toggle--hover', level === 1 && 'PRIVATE_TreeView-item-toggle--end', classes.TreeViewItemToggle, classes.TreeViewItemToggleHover, classes.TreeViewItemToggleEnd),
|
|
472
|
-
onClick:
|
|
454
|
+
onClick: event_4 => {
|
|
473
455
|
if (onSelect) {
|
|
474
|
-
toggle(
|
|
456
|
+
toggle(event_4);
|
|
475
457
|
}
|
|
476
458
|
},
|
|
477
459
|
children: isExpanded ? /*#__PURE__*/jsx(ChevronDownIcon, {
|
|
@@ -499,9 +481,6 @@ const ItemImpl = fixedForwardRef(({
|
|
|
499
481
|
})
|
|
500
482
|
});
|
|
501
483
|
});
|
|
502
|
-
const Item = Object.assign(ItemImpl, {
|
|
503
|
-
displayName: 'TreeView.Item'
|
|
504
|
-
});
|
|
505
484
|
|
|
506
485
|
/** Lines to indicate the depth of an item in a TreeView */
|
|
507
486
|
const LevelIndicatorLines = t0 => {
|
|
@@ -534,6 +513,7 @@ const LevelIndicatorLines = t0 => {
|
|
|
534
513
|
}
|
|
535
514
|
return t2;
|
|
536
515
|
};
|
|
516
|
+
Item.displayName = 'TreeView.Item';
|
|
537
517
|
|
|
538
518
|
// ----------------------------------------------------------------------------
|
|
539
519
|
// TreeView.SubTree
|
|
@@ -768,115 +748,112 @@ const LoadingItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
768
748
|
} = t0;
|
|
769
749
|
const itemId = useId();
|
|
770
750
|
if (count) {
|
|
771
|
-
|
|
772
|
-
let t2;
|
|
751
|
+
let t1;
|
|
773
752
|
if ($[0] !== count) {
|
|
774
|
-
|
|
753
|
+
t1 = Array.from({
|
|
775
754
|
length: count
|
|
776
755
|
}).map(_temp3);
|
|
777
756
|
$[0] = count;
|
|
778
|
-
$[1] =
|
|
757
|
+
$[1] = t1;
|
|
779
758
|
} else {
|
|
780
|
-
|
|
759
|
+
t1 = $[1];
|
|
781
760
|
}
|
|
782
|
-
let
|
|
761
|
+
let t2;
|
|
783
762
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
784
|
-
|
|
785
|
-
$[2] =
|
|
763
|
+
t2 = clsx("PRIVATE_VisuallyHidden", classes.TreeViewVisuallyHidden);
|
|
764
|
+
$[2] = t2;
|
|
786
765
|
} else {
|
|
787
|
-
|
|
766
|
+
t2 = $[2];
|
|
788
767
|
}
|
|
789
|
-
let
|
|
768
|
+
let t3;
|
|
790
769
|
if ($[3] !== count) {
|
|
791
|
-
|
|
792
|
-
className:
|
|
770
|
+
t3 = /*#__PURE__*/jsxs("div", {
|
|
771
|
+
className: t2,
|
|
793
772
|
children: ["Loading ", count, " items"]
|
|
794
773
|
});
|
|
795
774
|
$[3] = count;
|
|
796
|
-
$[4] =
|
|
775
|
+
$[4] = t3;
|
|
797
776
|
} else {
|
|
798
|
-
|
|
777
|
+
t3 = $[4];
|
|
799
778
|
}
|
|
800
|
-
let
|
|
801
|
-
if ($[5] !== itemId || $[6] !==
|
|
802
|
-
|
|
779
|
+
let t4;
|
|
780
|
+
if ($[5] !== itemId || $[6] !== ref || $[7] !== t1 || $[8] !== t3) {
|
|
781
|
+
t4 = /*#__PURE__*/jsxs(Item, {
|
|
803
782
|
id: itemId,
|
|
804
|
-
ref:
|
|
805
|
-
children: [
|
|
783
|
+
ref: ref,
|
|
784
|
+
children: [t1, t3]
|
|
806
785
|
});
|
|
807
786
|
$[5] = itemId;
|
|
808
|
-
$[6] =
|
|
809
|
-
$[7] =
|
|
810
|
-
$[8] =
|
|
811
|
-
$[9] =
|
|
787
|
+
$[6] = ref;
|
|
788
|
+
$[7] = t1;
|
|
789
|
+
$[8] = t3;
|
|
790
|
+
$[9] = t4;
|
|
812
791
|
} else {
|
|
813
|
-
|
|
792
|
+
t4 = $[9];
|
|
814
793
|
}
|
|
815
|
-
return
|
|
794
|
+
return t4;
|
|
816
795
|
}
|
|
817
|
-
|
|
796
|
+
let t1;
|
|
818
797
|
let t2;
|
|
819
|
-
let t3;
|
|
820
798
|
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
821
|
-
|
|
799
|
+
t1 = /*#__PURE__*/jsx(LeadingVisual, {
|
|
822
800
|
children: /*#__PURE__*/jsx(Spinner, {
|
|
823
801
|
size: "small"
|
|
824
802
|
})
|
|
825
803
|
});
|
|
826
|
-
|
|
804
|
+
t2 = /*#__PURE__*/jsx(Text, {
|
|
827
805
|
className: "fgColor-muted",
|
|
828
806
|
children: "Loading..."
|
|
829
807
|
});
|
|
830
|
-
$[10] =
|
|
831
|
-
$[11] =
|
|
808
|
+
$[10] = t1;
|
|
809
|
+
$[11] = t2;
|
|
832
810
|
} else {
|
|
833
|
-
|
|
834
|
-
|
|
811
|
+
t1 = $[10];
|
|
812
|
+
t2 = $[11];
|
|
835
813
|
}
|
|
836
|
-
let
|
|
837
|
-
if ($[12] !== itemId || $[13] !==
|
|
838
|
-
|
|
814
|
+
let t3;
|
|
815
|
+
if ($[12] !== itemId || $[13] !== ref) {
|
|
816
|
+
t3 = /*#__PURE__*/jsxs(Item, {
|
|
839
817
|
id: itemId,
|
|
840
|
-
ref:
|
|
841
|
-
children: [
|
|
818
|
+
ref: ref,
|
|
819
|
+
children: [t1, t2]
|
|
842
820
|
});
|
|
843
821
|
$[12] = itemId;
|
|
844
|
-
$[13] =
|
|
845
|
-
$[14] =
|
|
822
|
+
$[13] = ref;
|
|
823
|
+
$[14] = t3;
|
|
846
824
|
} else {
|
|
847
|
-
|
|
825
|
+
t3 = $[14];
|
|
848
826
|
}
|
|
849
|
-
return
|
|
827
|
+
return t3;
|
|
850
828
|
});
|
|
851
829
|
const EmptyItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
852
830
|
const $ = c(4);
|
|
853
831
|
const t0 = useId();
|
|
854
|
-
|
|
855
|
-
let t2;
|
|
832
|
+
let t1;
|
|
856
833
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
857
|
-
|
|
834
|
+
t1 = /*#__PURE__*/jsx(Text, {
|
|
858
835
|
className: "fgColor-muted",
|
|
859
836
|
children: "No items found"
|
|
860
837
|
});
|
|
861
|
-
$[0] =
|
|
838
|
+
$[0] = t1;
|
|
862
839
|
} else {
|
|
863
|
-
|
|
840
|
+
t1 = $[0];
|
|
864
841
|
}
|
|
865
|
-
let
|
|
866
|
-
if ($[1] !==
|
|
867
|
-
|
|
842
|
+
let t2;
|
|
843
|
+
if ($[1] !== ref || $[2] !== t0) {
|
|
844
|
+
t2 = /*#__PURE__*/jsx(Item, {
|
|
868
845
|
expanded: null,
|
|
869
846
|
id: t0,
|
|
870
|
-
ref:
|
|
871
|
-
children:
|
|
847
|
+
ref: ref,
|
|
848
|
+
children: t1
|
|
872
849
|
});
|
|
873
|
-
$[1] =
|
|
874
|
-
$[2] =
|
|
875
|
-
$[3] =
|
|
850
|
+
$[1] = ref;
|
|
851
|
+
$[2] = t0;
|
|
852
|
+
$[3] = t2;
|
|
876
853
|
} else {
|
|
877
|
-
|
|
854
|
+
t2 = $[3];
|
|
878
855
|
}
|
|
879
|
-
return
|
|
856
|
+
return t2;
|
|
880
857
|
});
|
|
881
858
|
function useSubTree(children) {
|
|
882
859
|
const $ = c(8);
|
|
@@ -2,7 +2,7 @@ import type { ComponentPropsWithRef, ElementType } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Distributive Omit utility type that works correctly with union types
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
type DistributiveOmit<T, TOmitted extends PropertyKey> = T extends unknown ? Omit<T, TOmitted> : never;
|
|
6
6
|
/**
|
|
7
7
|
* Fixed version of forwardRef that provides better type inference for polymorphic components
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modern-polymorphic.d.ts","sourceRoot":"","sources":["../../src/utils/modern-polymorphic.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,qBAAqB,EAAE,WAAW,EAAC,MAAM,OAAO,CAAA;AAE7D;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"modern-polymorphic.d.ts","sourceRoot":"","sources":["../../src/utils/modern-polymorphic.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,qBAAqB,EAAE,WAAW,EAAC,MAAM,OAAO,CAAA;AAE7D;;GAEG;AACH,KAAK,gBAAgB,CAAC,CAAC,EAAE,QAAQ,SAAS,WAAW,IAAI,CAAC,SAAS,OAAO,GAAG,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAA;AAEtG;;GAEG;AAGH,KAAK,eAAe,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,EACnC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,KACrD,CAAC,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAA;AAE3D;;GAEG;AACH,eAAO,MAAM,eAAe,EAAiB,eAAe,CAAA;AAE5D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAC1B,GAAG,SAAS,WAAW,EACvB,eAAe,SAAS,WAAW,GAAG,KAAK,EAC3C,KAAK,GAAG,MAAM,IACZ,gBAAgB,CAAC,qBAAqB,CAAC,WAAW,SAAS,GAAG,GAAG,eAAe,GAAG,GAAG,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC,GAAG;IAC3G,EAAE,CAAC,EAAE,GAAG,CAAA;CACT,CAAA"}
|
|
@@ -8033,35 +8033,35 @@
|
|
|
8033
8033
|
"stories": [
|
|
8034
8034
|
{
|
|
8035
8035
|
"id": "components-timeline--default",
|
|
8036
|
-
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge>\n <
|
|
8036
|
+
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n </Timeline>\n)"
|
|
8037
8037
|
},
|
|
8038
8038
|
{
|
|
8039
8039
|
"id": "components-timeline-features--clip-sidebar",
|
|
8040
|
-
"code": "() => (\n <Timeline clipSidebar>\n <Timeline.Item>\n <Timeline.Badge>\n <
|
|
8040
|
+
"code": "() => (\n <Timeline clipSidebar>\n <Timeline.Item>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n </Timeline>\n)"
|
|
8041
8041
|
},
|
|
8042
8042
|
{
|
|
8043
8043
|
"id": "components-timeline-features--clip-sidebar-start",
|
|
8044
|
-
"code": "() => (\n <Timeline clipSidebar=\"start\">\n <Timeline.Item>\n <Timeline.Badge>\n <
|
|
8044
|
+
"code": "() => (\n <Timeline clipSidebar=\"start\">\n <Timeline.Item>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n </Timeline>\n)"
|
|
8045
8045
|
},
|
|
8046
8046
|
{
|
|
8047
8047
|
"id": "components-timeline-features--clip-sidebar-end",
|
|
8048
|
-
"code": "() => (\n <Timeline clipSidebar=\"end\">\n <Timeline.Item>\n <Timeline.Badge>\n <
|
|
8048
|
+
"code": "() => (\n <Timeline clipSidebar=\"end\">\n <Timeline.Item>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n </Timeline>\n)"
|
|
8049
8049
|
},
|
|
8050
8050
|
{
|
|
8051
8051
|
"id": "components-timeline-features--condensed-items",
|
|
8052
|
-
"code": "() => (\n <Timeline>\n <Timeline.Item condensed>\n <Timeline.Badge>\n <
|
|
8052
|
+
"code": "() => (\n <Timeline>\n <Timeline.Item condensed>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item condensed>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n <Timeline.Break />\n <Timeline.Item condensed>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item condensed>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n </Timeline>\n)"
|
|
8053
8053
|
},
|
|
8054
8054
|
{
|
|
8055
8055
|
"id": "components-timeline-features--timeline-break",
|
|
8056
|
-
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge variant=\"done\">\n <
|
|
8056
|
+
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge variant=\"done\">\n <GitMergeIcon aria-label=\"Merged\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n <Timeline.Break />\n <Timeline.Item>\n <Timeline.Badge>\n <GitBranchIcon aria-label=\"Branch\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n </Timeline>\n)"
|
|
8057
8057
|
},
|
|
8058
8058
|
{
|
|
8059
8059
|
"id": "components-timeline-features--badge-variants",
|
|
8060
|
-
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge variant=\"accent\">\n <
|
|
8060
|
+
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge variant=\"accent\">\n <GitPullRequestIcon aria-label=\"Pull request\" />\n </Timeline.Badge>\n <Timeline.Body>Accent</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge variant=\"success\">\n <IssueClosedIcon aria-label=\"Closed\" />\n </Timeline.Badge>\n <Timeline.Body>Success</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge variant=\"attention\">\n <FlameIcon aria-label=\"Attention\" />\n </Timeline.Badge>\n <Timeline.Body>Attention</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge variant=\"severe\">\n <SkipIcon aria-label=\"Severe\" />\n </Timeline.Badge>\n <Timeline.Body>Severe</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge variant=\"danger\">\n <XIcon aria-label=\"Danger\" />\n </Timeline.Badge>\n <Timeline.Body>Danger</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge variant=\"done\">\n <GitMergeIcon aria-label=\"Merged\" />\n </Timeline.Badge>\n <Timeline.Body>Done</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge variant=\"open\">\n <IssueOpenedIcon aria-label=\"Open\" />\n </Timeline.Badge>\n <Timeline.Body>Open</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge variant=\"closed\">\n <IssueClosedIcon aria-label=\"Closed\" />\n </Timeline.Badge>\n <Timeline.Body>Closed</Timeline.Body>\n </Timeline.Item>\n <Timeline.Item>\n <Timeline.Badge variant=\"sponsors\">\n <HeartIcon aria-label=\"Sponsors\" />\n </Timeline.Badge>\n <Timeline.Body>Sponsors</Timeline.Body>\n </Timeline.Item>\n </Timeline>\n)"
|
|
8061
8061
|
},
|
|
8062
8062
|
{
|
|
8063
8063
|
"id": "components-timeline-features--with-inline-links",
|
|
8064
|
-
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge>\n <
|
|
8064
|
+
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge>\n <GitCommitIcon aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>\n <Link href=\"#\" className={classes.LinkWithBoldStyle} muted>\n Monalisa\n </Link>\n enabled auto-merge (squash)\n </Timeline.Body>\n </Timeline.Item>\n </Timeline>\n)"
|
|
8065
8065
|
},
|
|
8066
8066
|
{
|
|
8067
8067
|
"id": "components-timeline-features--with-actions",
|
|
@@ -8069,7 +8069,7 @@
|
|
|
8069
8069
|
},
|
|
8070
8070
|
{
|
|
8071
8071
|
"id": "components-timeline-features--with-avatar",
|
|
8072
|
-
"code": "() => (\n <div
|
|
8072
|
+
"code": "() => (\n <div\n className={`${classes.RealisticTimeline} ${classes.AvatarGutter}`}\n onClick={(e) => {\n if ((e.target as HTMLElement).closest('a')) e.preventDefault()\n }}\n >\n <Timeline>\n <Timeline.Item>\n <Timeline.Avatar>\n <Avatar\n size={40}\n src=\"https://avatars.githubusercontent.com/u/92997159?v=4\"\n alt=\"\"\n />\n </Timeline.Avatar>\n <Timeline.Badge variant=\"done\">\n <Octicon icon={CheckIcon} aria-label=\"Approved\" />\n </Timeline.Badge>\n <Timeline.Body>\n <Link href=\"#\" className={classes.LinkWithBoldStyle} muted>\n monalisa\n </Link>\n {'approved these changes '}\n <RelativeTime date={new Date()} format=\"relative\" />\n </Timeline.Body>\n <Timeline.Actions>\n <Button size=\"small\">View reviewed changes</Button>\n </Timeline.Actions>\n </Timeline.Item>\n </Timeline>\n </div>\n)"
|
|
8073
8073
|
}
|
|
8074
8074
|
],
|
|
8075
8075
|
"importPath": "@primer/react",
|
package/package.json
CHANGED