@primer/react 0.0.0-20260603222937 → 0.0.0-20260604173214
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 +5 -15
- package/dist/Card/Card-59b77d05.css +2 -0
- package/dist/Card/Card-59b77d05.css.map +1 -0
- package/dist/Card/Card.d.ts +18 -0
- package/dist/Card/Card.d.ts.map +1 -1
- package/dist/Card/Card.js +165 -154
- package/dist/Card/Card.module.css.js +1 -1
- package/dist/Card/index.d.ts +2 -0
- package/dist/Card/index.d.ts.map +1 -1
- package/dist/Dialog/Dialog.d.ts +1 -0
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +16 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts.map +1 -1
- package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -2
- package/dist/Timeline/Timeline-0c88f21b.css +2 -0
- package/dist/Timeline/Timeline-0c88f21b.css.map +1 -0
- package/dist/Timeline/Timeline.d.ts +7 -7
- package/dist/Timeline/Timeline.d.ts.map +1 -1
- package/dist/Timeline/Timeline.js +61 -156
- package/dist/Timeline/Timeline.module.css.js +1 -1
- package/package.json +1 -1
- package/dist/Card/Card-d8a02dd9.css +0 -2
- package/dist/Card/Card-d8a02dd9.css.map +0 -1
- package/dist/Timeline/Timeline-ff81db92.css +0 -2
- package/dist/Timeline/Timeline-ff81db92.css.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,35 +1,25 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260604173214
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
+
- [#7923](https://github.com/primer/react/pull/7923) [`9f314bc`](https://github.com/primer/react/commit/9f314bcba9fb998f97d5c31b0fc2d6aeb2a27f9e) Thanks [@dylanatsmith](https://github.com/dylanatsmith)! - Card: Add `layout="compact"` prop for a compact card layout with tighter spacing, no icon background, and smaller title
|
|
8
|
+
|
|
7
9
|
- [#7900](https://github.com/primer/react/pull/7900) [`49a546f`](https://github.com/primer/react/commit/49a546fcb3901c139a3abe8f1daea7b5f3427f5d) Thanks [@mattcosta7](https://github.com/mattcosta7)! - `PageLayout.Sidebar` (and `SplitPageLayout.Sidebar`): add controlled-width support via `currentWidth` + `onResizeEnd`, matching the discriminated-union API already on `PageLayout.Pane`. The underlying `usePaneWidth` hook already supported these options; this wires them through the component's prop surface. Existing usage is unchanged — the props are opt-in and the uncontrolled (default or `widthStorageKey`-backed) behavior is preserved exactly.
|
|
8
10
|
|
|
9
11
|
- [#7906](https://github.com/primer/react/pull/7906) [`adc5299`](https://github.com/primer/react/commit/adc5299f3d98519119fb9547e50dd2985fc96174) Thanks [@jonrohan](https://github.com/jonrohan)! - Text: Add `whiteSpace` prop to control the CSS `white-space` property
|
|
10
12
|
|
|
11
13
|
### Patch Changes
|
|
12
14
|
|
|
15
|
+
- [#7915](https://github.com/primer/react/pull/7915) [`f58e448`](https://github.com/primer/react/commit/f58e448961df15e28b4a69950de84d478e2664af) Thanks [@jonrohan](https://github.com/jonrohan)! - Dialog: Fix `Escape` key not closing the dialog on the first keypress when the close button is focused
|
|
16
|
+
|
|
13
17
|
- Fake entry to force publishing
|
|
14
18
|
|
|
15
19
|
- [#7908](https://github.com/primer/react/pull/7908) [`e9a2254`](https://github.com/primer/react/commit/e9a225421df61e7fa62da1b2796972122d266d36) Thanks [@jonrohan](https://github.com/jonrohan)! - `KeybindingHint`: display the `Meta` key correctly on platforms other than macOS and Windows. The `Meta`, `Alt`, and `Mod` keys are now resolved based on the detected platform: Apple platforms (macOS and iOS) show `⌘`/`⌥`, Windows shows `Win`, and all other platforms show `Meta`/`Alt`.
|
|
16
20
|
|
|
17
21
|
- [#7894](https://github.com/primer/react/pull/7894) [`af4541d`](https://github.com/primer/react/commit/af4541d991c6e583dbf510bd0a0699f244ea00b2) Thanks [@mattcosta7](https://github.com/mattcosta7)! - ActionList: Replace `:has(...)` selectors on `ActionList.Item`, `InactiveButtonWrap`, and `TrailingActionButton` with JS-derived data attributes (`data-has-trailing-action`, `data-trailing-action-loading`, `data-position`, `data-has-label`). Reduces style-recalculation cost on lists that render many items. No visual or behavioral changes.
|
|
18
22
|
|
|
19
|
-
- [#7910](https://github.com/primer/react/pull/7910) [`e75a01d`](https://github.com/primer/react/commit/e75a01d6642fdb266257e1770632e6ae184cf76a) Thanks [@janmaarten-a11y](https://github.com/janmaarten-a11y)! - Timeline: Add `primer_react_timeline_list_semantics` feature flag to opt into list semantics
|
|
20
|
-
|
|
21
|
-
When the `primer_react_timeline_list_semantics` feature flag is enabled, `Timeline` renders as `<ol role="list">` and `Timeline.Item` / `Timeline.Break` render as `<li>` so screen reader users get list navigation (total item count, position in sequence). The default behavior is unchanged — `Timeline` and its subcomponents still render as `<div>` until the flag is opted into.
|
|
22
|
-
|
|
23
|
-
Enable the flag with the `FeatureFlags` provider:
|
|
24
|
-
|
|
25
|
-
```tsx
|
|
26
|
-
import {FeatureFlags} from '@primer/react/experimental'
|
|
27
|
-
|
|
28
|
-
;<FeatureFlags flags={{primer_react_timeline_list_semantics: true}}>
|
|
29
|
-
<Timeline>…</Timeline>
|
|
30
|
-
</FeatureFlags>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
23
|
- [#7899](https://github.com/primer/react/pull/7899) [`9659ce7`](https://github.com/primer/react/commit/9659ce767760d85c033e43e7e8ecdfdfb452dcb1) Thanks [@mattcosta7](https://github.com/mattcosta7)! - `TreeView`: make rows safer to use with `contain: paint` / `content-visibility: auto` and reduce style-recalc cost on hover/focus in large trees. No visual or layout changes; all changes are either invisible at the default rendering or behind an opt-in CSS containment property the consumer sets.
|
|
34
24
|
|
|
35
25
|
- The current-item indicator (positioned at `left: -8px` of the row container) was being clipped when a consumer applied `contain: paint` to the `<li>` or when the documented `containIntrinsicSize` prop on `TreeView.Item` triggered `content-visibility: auto` on the row container — including for `current` items. Both `.TreeViewItem` and `.TreeViewItemContainer` now declare `overflow-clip-margin: var(--base-size-8)`, which extends the paint-clip edge by 8px on the side the indicator paints. The property is a no-op when no paint containment is active, so default rendering is byte-identical.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-Card-Card-pYjuL{background-color:var(--bgColor-default,#fff);border:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);box-shadow:var(--shadow-resting-small,0 1px 1px 0 #1f23280a,0 1px 2px 0 #1f232808);display:grid;gap:var(--stack-gap-normal,1rem);grid-auto-rows:max-content auto;overflow:hidden;position:relative}.prc-Card-Card-pYjuL[data-border-radius=large]{border-radius:var(--borderRadius-large,.75rem)}.prc-Card-Card-pYjuL[data-border-radius=medium]{border-radius:var(--borderRadius-medium,.375rem)}.prc-Card-Card-pYjuL[data-padding=normal]{padding:var(--stack-padding-spacious,1.5rem)}.prc-Card-Card-pYjuL[data-padding=condensed]{padding:var(--stack-padding-condensed,.5rem)}.prc-Card-Card-pYjuL[data-padding=none]{padding:0}.prc-Card-Card-pYjuL[data-layout=compact]{align-items:flex-start;display:flex;gap:var(--stack-gap-condensed,.5rem)}.prc-Card-Card-pYjuL[data-layout=compact][data-padding=normal]{padding:var(--stack-padding-normal,1rem)}.prc-Card-CardHeader-P5Qbb{display:block;height:auto;width:100%}.prc-Card-Card-pYjuL:where([data-layout=compact]) .prc-Card-CardHeader-P5Qbb{flex:0 0 auto;width:auto}.prc-Card-CardHeaderEdgeToEdge-3yCqT{margin-left:calc(var(--stack-padding-spacious,1.5rem)*-1);margin-right:calc(var(--stack-padding-spacious,1.5rem)*-1);margin-top:calc(var(--stack-padding-spacious,1.5rem)*-1);width:calc(100% + var(--stack-padding-spacious,1.5rem)*2)}.prc-Card-CardImage-2M8DM{display:block;height:auto;width:100%}.prc-Card-CardIcon-mIMfj{align-items:center;color:var(--fgColor-muted,#59636e);display:flex;justify-content:flex-start}.prc-Card-Card-pYjuL:where([data-layout=default]) .prc-Card-CardIcon-mIMfj{background-color:var(--bgColor-muted,#f6f8fa);border-radius:var(--borderRadius-medium,.375rem);height:var(--base-size-32,2rem);justify-content:center;width:var(--base-size-32,2rem)}.prc-Card-CardBody-W1o-l{display:grid;gap:var(--stack-gap-normal,1rem)}.prc-Card-Card-pYjuL:where([data-layout=compact]) .prc-Card-CardBody-W1o-l{flex:1 1 auto}.prc-Card-CardContent-omZDS{display:grid;gap:var(--stack-gap-condensed,.5rem)}.prc-Card-CardHeading-3HXyS{color:var(--fgColor-default,#1f2328);font:var(--text-title-shorthand-small,600 1rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji");margin:0}.prc-Card-Card-pYjuL:where([data-layout=compact]) .prc-Card-CardHeading-3HXyS{font-size:var(--text-body-size-medium,.875rem);position:relative;top:calc(var(--base-size-4,.25rem)*-1)}.prc-Card-CardDescription-MnJ3F{margin:0}.prc-Card-CardDescription-MnJ3F,.prc-Card-CardMetadataContainer-K-UlH{color:var(--fgColor-muted,#59636e);font:var(--text-body-shorthand-medium,400 .875rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji")}.prc-Card-CardMetadataContainer-K-UlH{align-items:center;display:flex;gap:var(--stack-gap-normal,1rem)}.prc-Card-CardMetadataItem-ellY9{align-items:center;display:flex;font:var(--text-body-shorthand-small,400 .75rem/1.625 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji");gap:var(--stack-gap-condensed,.5rem)}.prc-Card-CardAction-VtI49{position:absolute;right:var(--base-size-16,1rem);top:var(--base-size-16,1rem);z-index:1}
|
|
2
|
+
/*# sourceMappingURL=Card-59b77d05.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Card/Card.module.css.js"],"names":[],"mappings":"AAAA,qBAOE,4CAAwC,CAFxC,gFAAgE,CAChE,kFAAuC,CALvC,YAAa,CAOb,gCAA4B,CAJ5B,+BAAgC,CADhC,eAAgB,CADhB,iBAwCF,CAhCE,+CACE,8CACF,CAEA,gDACE,gDACF,CAEA,0CAEE,4CACF,CAEA,6CAEE,4CACF,CAEA,wCACE,SACF,CAEA,0CAEE,sBAAuB,CADvB,YAAa,CAEb,oCACF,CAEA,+DAEE,wCACF,CAGF,2BACE,aAAc,CAEd,WAAY,CADZ,UAOF,CAJE,6EACE,aAAc,CACd,UACF,CAGF,qCAIE,yDAAqD,CADrD,0DAAsD,CADtD,wDAAoD,CAGpD,yDAEF,CAEA,0BACE,aAAc,CAEd,WAAY,CADZ,UAEF,CAEA,yBAEE,kBAAmB,CAEnB,kCAA2B,CAH3B,YAAa,CAEb,0BAUF,CAPE,2EAKE,6CAAsC,CADtC,gDAAyC,CADzC,+BAA2B,CAF3B,sBAAuB,CACvB,8BAIF,CAGF,yBACE,YAAa,CACb,gCAKF,CAHE,2EACE,aACF,CAGF,4BACE,YAAa,CACb,oCACF,CAEA,4BAEE,oCAA6B,CAD7B,2KAAuC,CAEvC,QAOF,CALE,8EAGE,8CAAuC,CAFvC,iBAAkB,CAClB,sCAEF,CAGF,gCAGE,QACF,CAEA,sEAJE,kCAA2B,CAD3B,8KAWF,CANA,sCAEE,kBAAmB,CADnB,YAAa,CAEb,gCAGF,CAEA,iCAEE,kBAAmB,CADnB,YAAa,CAGb,8KAAsC,CADtC,oCAEF,CAEA,2BACE,iBAAkB,CAElB,8BAA0B,CAD1B,4BAAwB,CAExB,SACF","file":"Card-59b77d05.css","sourcesContent":[".Card {\n display: grid;\n position: relative;\n overflow: hidden;\n grid-auto-rows: max-content auto;\n border: var(--borderWidth-thin) solid var(--borderColor-default);\n box-shadow: var(--shadow-resting-small);\n background-color: var(--bgColor-default);\n gap: var(--stack-gap-normal);\n\n &[data-border-radius='large'] {\n border-radius: var(--borderRadius-large);\n }\n\n &[data-border-radius='medium'] {\n border-radius: var(--borderRadius-medium);\n }\n\n &[data-padding='normal'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-spacious);\n }\n\n &[data-padding='condensed'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-condensed);\n }\n\n &[data-padding='none'] {\n padding: 0;\n }\n\n &[data-layout='compact'] {\n display: flex;\n align-items: flex-start;\n gap: var(--stack-gap-condensed);\n }\n\n &[data-layout='compact'][data-padding='normal'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-normal);\n }\n}\n\n.CardHeader {\n display: block;\n width: 100%;\n height: auto;\n\n .Card:where([data-layout='compact']) & {\n flex: 0 0 auto;\n width: auto;\n }\n}\n\n.CardHeaderEdgeToEdge {\n /* stylelint-disable primer/spacing */\n margin-top: calc(-1 * var(--stack-padding-spacious));\n margin-right: calc(-1 * var(--stack-padding-spacious));\n margin-left: calc(-1 * var(--stack-padding-spacious));\n width: calc(100% + 2 * var(--stack-padding-spacious));\n /* stylelint-enable primer/spacing */\n}\n\n.CardImage {\n display: block;\n width: 100%;\n height: auto;\n}\n\n.CardIcon {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n color: var(--fgColor-muted);\n\n .Card:where([data-layout='default']) & {\n justify-content: center;\n width: var(--base-size-32);\n height: var(--base-size-32);\n border-radius: var(--borderRadius-medium);\n background-color: var(--bgColor-muted);\n }\n}\n\n.CardBody {\n display: grid;\n gap: var(--stack-gap-normal);\n\n .Card:where([data-layout='compact']) & {\n flex: 1 1 auto;\n }\n}\n\n.CardContent {\n display: grid;\n gap: var(--stack-gap-condensed);\n}\n\n.CardHeading {\n font: var(--text-title-shorthand-small);\n color: var(--fgColor-default);\n margin: 0;\n\n .Card:where([data-layout='compact']) & {\n position: relative;\n top: calc(-1 * var(--base-size-4));\n font-size: var(--text-body-size-medium);\n }\n}\n\n.CardDescription {\n font: var(--text-body-shorthand-medium);\n color: var(--fgColor-muted);\n margin: 0;\n}\n\n.CardMetadataContainer {\n display: flex;\n align-items: center;\n gap: var(--stack-gap-normal);\n font: var(--text-body-shorthand-medium);\n color: var(--fgColor-muted);\n}\n\n.CardMetadataItem {\n display: flex;\n align-items: center;\n gap: var(--stack-gap-condensed);\n font: var(--text-body-shorthand-small);\n}\n\n.CardAction {\n position: absolute;\n top: var(--base-size-16);\n right: var(--base-size-16);\n z-index: 1;\n}\n"]}
|
package/dist/Card/Card.d.ts
CHANGED
|
@@ -8,6 +8,12 @@ export type CardProps<As extends CardAs = 'div'> = PolymorphicProps<As, 'div', {
|
|
|
8
8
|
padding?: 'none' | 'condensed' | 'normal';
|
|
9
9
|
/** Border radius. @default 'large' */
|
|
10
10
|
borderRadius?: 'medium' | 'large';
|
|
11
|
+
/**
|
|
12
|
+
* Layout of the card. `compact` uses tighter spacing, removes the icon
|
|
13
|
+
* background container, and renders a smaller title.
|
|
14
|
+
* @default 'default'
|
|
15
|
+
*/
|
|
16
|
+
layout?: 'default' | 'compact';
|
|
11
17
|
/**
|
|
12
18
|
* Card contents. Provide either `Card.*` subcomponents (e.g. `Card.Heading`,
|
|
13
19
|
* `Card.Description`, `Card.Metadata`) or custom content.
|
|
@@ -67,6 +73,12 @@ declare const CardImpl: <As extends CardAs>(props: (React.ComponentPropsWithRef<
|
|
|
67
73
|
padding?: "none" | "condensed" | "normal";
|
|
68
74
|
/** Border radius. @default 'large' */
|
|
69
75
|
borderRadius?: "medium" | "large";
|
|
76
|
+
/**
|
|
77
|
+
* Layout of the card. `compact` uses tighter spacing, removes the icon
|
|
78
|
+
* background container, and renders a smaller title.
|
|
79
|
+
* @default 'default'
|
|
80
|
+
*/
|
|
81
|
+
layout?: "default" | "compact";
|
|
70
82
|
/**
|
|
71
83
|
* Card contents. Provide either `Card.*` subcomponents (e.g. `Card.Heading`,
|
|
72
84
|
* `Card.Description`, `Card.Metadata`) or custom content.
|
|
@@ -79,6 +91,12 @@ declare const CardImpl: <As extends CardAs>(props: (React.ComponentPropsWithRef<
|
|
|
79
91
|
padding?: "none" | "condensed" | "normal";
|
|
80
92
|
/** Border radius. @default 'large' */
|
|
81
93
|
borderRadius?: "medium" | "large";
|
|
94
|
+
/**
|
|
95
|
+
* Layout of the card. `compact` uses tighter spacing, removes the icon
|
|
96
|
+
* background container, and renders a smaller title.
|
|
97
|
+
* @default 'default'
|
|
98
|
+
*/
|
|
99
|
+
layout?: "default" | "compact";
|
|
82
100
|
/**
|
|
83
101
|
* Card contents. Provide either `Card.*` subcomponents (e.g. `Card.Heading`,
|
|
84
102
|
* `Card.Description`, `Card.Metadata`) or custom content.
|
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,CAAA;IAElB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;IAEzC,sCAAsC;IACtC,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAEjC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CACF,CAAA;AAED,KAAK,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEpD,KAAK,YAAY,GAAG,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,GAAG;IACzD;;OAEG;IACH,EAAE,CAAC,EAAE,YAAY,CAAA;IACjB,QAAQ,EAAE,KAA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AAY,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/Card.js
CHANGED
|
@@ -8,18 +8,20 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
8
8
|
|
|
9
9
|
const CardContext = /*#__PURE__*/createContext({});
|
|
10
10
|
function CardComponent(props, ref) {
|
|
11
|
-
const $ = c(
|
|
11
|
+
const $ = c(71);
|
|
12
12
|
const {
|
|
13
13
|
children,
|
|
14
14
|
className,
|
|
15
15
|
padding: t0,
|
|
16
16
|
borderRadius: t1,
|
|
17
|
-
|
|
17
|
+
layout: t2,
|
|
18
|
+
as: t3,
|
|
18
19
|
...rest
|
|
19
20
|
} = props;
|
|
20
21
|
const padding = t0 === undefined ? "normal" : t0;
|
|
21
22
|
const borderRadius = t1 === undefined ? "large" : t1;
|
|
22
|
-
const
|
|
23
|
+
const layout = t2 === undefined ? "default" : t2;
|
|
24
|
+
const as = t3 === undefined ? "div" : t3;
|
|
23
25
|
const Component = as;
|
|
24
26
|
const generatedId = useId();
|
|
25
27
|
const titleId = as === "section" ? generatedId : undefined;
|
|
@@ -34,15 +36,16 @@ function CardComponent(props, ref) {
|
|
|
34
36
|
let metadata;
|
|
35
37
|
let t10;
|
|
36
38
|
let t11;
|
|
37
|
-
let
|
|
39
|
+
let t12;
|
|
40
|
+
let t13;
|
|
38
41
|
let t4;
|
|
39
42
|
let t5;
|
|
40
43
|
let t6;
|
|
41
44
|
let t7;
|
|
42
45
|
let t8;
|
|
43
46
|
let t9;
|
|
44
|
-
if ($[0] !== Component || $[1] !== borderRadius || $[2] !== children || $[3] !== className || $[4] !==
|
|
45
|
-
|
|
47
|
+
if ($[0] !== Component || $[1] !== borderRadius || $[2] !== children || $[3] !== className || $[4] !== layout || $[5] !== padding || $[6] !== ref || $[7] !== rest || $[8] !== titleId) {
|
|
48
|
+
t13 = Symbol.for("react.early_return_sentinel");
|
|
46
49
|
bb0: {
|
|
47
50
|
let icon = null;
|
|
48
51
|
let image = null;
|
|
@@ -82,89 +85,92 @@ function CardComponent(props, ref) {
|
|
|
82
85
|
const hasSlotChildren = icon || image || heading || description || metadata || menu;
|
|
83
86
|
const isEmpty = !hasSlotChildren && childArray.length === 0;
|
|
84
87
|
if (isEmpty) {
|
|
85
|
-
|
|
88
|
+
t13 = null;
|
|
86
89
|
break bb0;
|
|
87
90
|
}
|
|
88
91
|
if (!hasSlotChildren) {
|
|
89
|
-
let
|
|
90
|
-
if ($[
|
|
91
|
-
|
|
92
|
+
let t14;
|
|
93
|
+
if ($[25] !== titleId) {
|
|
94
|
+
t14 = {
|
|
92
95
|
titleId
|
|
93
96
|
};
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
97
|
+
$[25] = titleId;
|
|
98
|
+
$[26] = t14;
|
|
96
99
|
} else {
|
|
97
|
-
|
|
100
|
+
t14 = $[26];
|
|
98
101
|
}
|
|
99
|
-
let
|
|
100
|
-
if ($[
|
|
101
|
-
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
102
|
+
let t15;
|
|
103
|
+
if ($[27] !== className) {
|
|
104
|
+
t15 = clsx(classes.Card, className);
|
|
105
|
+
$[27] = className;
|
|
106
|
+
$[28] = t15;
|
|
104
107
|
} else {
|
|
105
|
-
|
|
108
|
+
t15 = $[28];
|
|
106
109
|
}
|
|
107
|
-
let
|
|
108
|
-
if ($[
|
|
109
|
-
|
|
110
|
+
let t16;
|
|
111
|
+
if ($[29] !== Component || $[30] !== borderRadius || $[31] !== children || $[32] !== layout || $[33] !== padding || $[34] !== ref || $[35] !== rest || $[36] !== t15) {
|
|
112
|
+
t16 = /*#__PURE__*/jsx(Component, {
|
|
110
113
|
ref: ref,
|
|
111
|
-
className:
|
|
114
|
+
className: t15,
|
|
112
115
|
"data-component": "Card",
|
|
113
116
|
"data-padding": padding,
|
|
114
117
|
"data-border-radius": borderRadius,
|
|
118
|
+
"data-layout": layout,
|
|
115
119
|
...rest,
|
|
116
120
|
children: children
|
|
117
121
|
});
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
122
|
+
$[29] = Component;
|
|
123
|
+
$[30] = borderRadius;
|
|
124
|
+
$[31] = children;
|
|
125
|
+
$[32] = layout;
|
|
126
|
+
$[33] = padding;
|
|
127
|
+
$[34] = ref;
|
|
128
|
+
$[35] = rest;
|
|
129
|
+
$[36] = t15;
|
|
130
|
+
$[37] = t16;
|
|
126
131
|
} else {
|
|
127
|
-
|
|
132
|
+
t16 = $[37];
|
|
128
133
|
}
|
|
129
|
-
let
|
|
130
|
-
if ($[
|
|
131
|
-
|
|
132
|
-
value:
|
|
133
|
-
children:
|
|
134
|
+
let t17;
|
|
135
|
+
if ($[38] !== t14 || $[39] !== t16) {
|
|
136
|
+
t17 = /*#__PURE__*/jsx(CardContext.Provider, {
|
|
137
|
+
value: t14,
|
|
138
|
+
children: t16
|
|
134
139
|
});
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
140
|
+
$[38] = t14;
|
|
141
|
+
$[39] = t16;
|
|
142
|
+
$[40] = t17;
|
|
138
143
|
} else {
|
|
139
|
-
|
|
144
|
+
t17 = $[40];
|
|
140
145
|
}
|
|
141
|
-
|
|
146
|
+
t13 = t17;
|
|
142
147
|
break bb0;
|
|
143
148
|
}
|
|
144
149
|
T1 = CardContext.Provider;
|
|
145
|
-
if ($[
|
|
146
|
-
|
|
150
|
+
if ($[41] !== titleId) {
|
|
151
|
+
t12 = {
|
|
147
152
|
titleId
|
|
148
153
|
};
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
154
|
+
$[41] = titleId;
|
|
155
|
+
$[42] = t12;
|
|
151
156
|
} else {
|
|
152
|
-
|
|
157
|
+
t12 = $[42];
|
|
153
158
|
}
|
|
154
159
|
T0 = Component;
|
|
155
|
-
|
|
156
|
-
if ($[
|
|
157
|
-
|
|
158
|
-
$[
|
|
159
|
-
$[
|
|
160
|
+
t4 = ref;
|
|
161
|
+
if ($[43] !== className) {
|
|
162
|
+
t5 = clsx(classes.Card, className);
|
|
163
|
+
$[43] = className;
|
|
164
|
+
$[44] = t5;
|
|
160
165
|
} else {
|
|
161
|
-
|
|
166
|
+
t5 = $[44];
|
|
162
167
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
t6 = "Card";
|
|
169
|
+
t7 = padding;
|
|
170
|
+
t8 = borderRadius;
|
|
171
|
+
t9 = layout;
|
|
172
|
+
t10 = rest;
|
|
173
|
+
t11 = (image || icon) && /*#__PURE__*/jsx("div", {
|
|
168
174
|
className: clsx(classes.CardHeader, image && classes.CardHeaderEdgeToEdge),
|
|
169
175
|
children: image || icon
|
|
170
176
|
});
|
|
@@ -173,130 +179,135 @@ function CardComponent(props, ref) {
|
|
|
173
179
|
$[1] = borderRadius;
|
|
174
180
|
$[2] = children;
|
|
175
181
|
$[3] = className;
|
|
176
|
-
$[4] =
|
|
177
|
-
$[5] =
|
|
178
|
-
$[6] =
|
|
179
|
-
$[7] =
|
|
180
|
-
$[8] =
|
|
181
|
-
$[9] =
|
|
182
|
-
$[10] =
|
|
183
|
-
$[11] =
|
|
184
|
-
$[12] =
|
|
185
|
-
$[13] =
|
|
186
|
-
$[14] =
|
|
187
|
-
$[15] =
|
|
188
|
-
$[16] =
|
|
189
|
-
$[17] =
|
|
190
|
-
$[18] =
|
|
191
|
-
$[19] =
|
|
192
|
-
$[20] =
|
|
193
|
-
$[21] =
|
|
194
|
-
$[22] =
|
|
182
|
+
$[4] = layout;
|
|
183
|
+
$[5] = padding;
|
|
184
|
+
$[6] = ref;
|
|
185
|
+
$[7] = rest;
|
|
186
|
+
$[8] = titleId;
|
|
187
|
+
$[9] = T0;
|
|
188
|
+
$[10] = T1;
|
|
189
|
+
$[11] = description;
|
|
190
|
+
$[12] = heading;
|
|
191
|
+
$[13] = menu;
|
|
192
|
+
$[14] = metadata;
|
|
193
|
+
$[15] = t10;
|
|
194
|
+
$[16] = t11;
|
|
195
|
+
$[17] = t12;
|
|
196
|
+
$[18] = t13;
|
|
197
|
+
$[19] = t4;
|
|
198
|
+
$[20] = t5;
|
|
199
|
+
$[21] = t6;
|
|
200
|
+
$[22] = t7;
|
|
201
|
+
$[23] = t8;
|
|
202
|
+
$[24] = t9;
|
|
195
203
|
} else {
|
|
196
|
-
T0 = $[
|
|
197
|
-
T1 = $[
|
|
198
|
-
description = $[
|
|
199
|
-
heading = $[
|
|
200
|
-
menu = $[
|
|
201
|
-
metadata = $[
|
|
202
|
-
t10 = $[
|
|
203
|
-
t11 = $[
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
204
|
+
T0 = $[9];
|
|
205
|
+
T1 = $[10];
|
|
206
|
+
description = $[11];
|
|
207
|
+
heading = $[12];
|
|
208
|
+
menu = $[13];
|
|
209
|
+
metadata = $[14];
|
|
210
|
+
t10 = $[15];
|
|
211
|
+
t11 = $[16];
|
|
212
|
+
t12 = $[17];
|
|
213
|
+
t13 = $[18];
|
|
214
|
+
t4 = $[19];
|
|
215
|
+
t5 = $[20];
|
|
216
|
+
t6 = $[21];
|
|
217
|
+
t7 = $[22];
|
|
218
|
+
t8 = $[23];
|
|
219
|
+
t9 = $[24];
|
|
211
220
|
}
|
|
212
|
-
if (
|
|
213
|
-
return
|
|
221
|
+
if (t13 !== Symbol.for("react.early_return_sentinel")) {
|
|
222
|
+
return t13;
|
|
214
223
|
}
|
|
215
|
-
let
|
|
216
|
-
if ($[
|
|
217
|
-
|
|
224
|
+
let t14;
|
|
225
|
+
if ($[45] !== description || $[46] !== heading) {
|
|
226
|
+
t14 = /*#__PURE__*/jsxs("div", {
|
|
218
227
|
className: classes.CardContent,
|
|
219
228
|
children: [heading, description]
|
|
220
229
|
});
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
$[
|
|
230
|
+
$[45] = description;
|
|
231
|
+
$[46] = heading;
|
|
232
|
+
$[47] = t14;
|
|
224
233
|
} else {
|
|
225
|
-
|
|
234
|
+
t14 = $[47];
|
|
226
235
|
}
|
|
227
|
-
let
|
|
228
|
-
if ($[
|
|
229
|
-
|
|
236
|
+
let t15;
|
|
237
|
+
if ($[48] !== metadata) {
|
|
238
|
+
t15 = metadata ? /*#__PURE__*/jsx("div", {
|
|
230
239
|
className: classes.CardMetadataContainer,
|
|
231
240
|
children: metadata
|
|
232
241
|
}) : null;
|
|
233
|
-
$[
|
|
234
|
-
$[
|
|
242
|
+
$[48] = metadata;
|
|
243
|
+
$[49] = t15;
|
|
235
244
|
} else {
|
|
236
|
-
|
|
245
|
+
t15 = $[49];
|
|
237
246
|
}
|
|
238
|
-
let
|
|
239
|
-
if ($[
|
|
240
|
-
|
|
247
|
+
let t16;
|
|
248
|
+
if ($[50] !== t14 || $[51] !== t15) {
|
|
249
|
+
t16 = /*#__PURE__*/jsxs("div", {
|
|
241
250
|
className: classes.CardBody,
|
|
242
|
-
children: [
|
|
251
|
+
children: [t14, t15]
|
|
243
252
|
});
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
$[
|
|
253
|
+
$[50] = t14;
|
|
254
|
+
$[51] = t15;
|
|
255
|
+
$[52] = t16;
|
|
247
256
|
} else {
|
|
248
|
-
|
|
257
|
+
t16 = $[52];
|
|
249
258
|
}
|
|
250
|
-
let
|
|
251
|
-
if ($[
|
|
252
|
-
|
|
259
|
+
let t17;
|
|
260
|
+
if ($[53] !== menu) {
|
|
261
|
+
t17 = menu ? /*#__PURE__*/jsx("div", {
|
|
253
262
|
className: classes.CardAction,
|
|
254
263
|
children: menu
|
|
255
264
|
}) : null;
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
265
|
+
$[53] = menu;
|
|
266
|
+
$[54] = t17;
|
|
258
267
|
} else {
|
|
259
|
-
|
|
268
|
+
t17 = $[54];
|
|
260
269
|
}
|
|
261
|
-
let
|
|
262
|
-
if ($[
|
|
263
|
-
|
|
264
|
-
ref:
|
|
265
|
-
className:
|
|
266
|
-
"data-component":
|
|
267
|
-
"data-padding":
|
|
268
|
-
"data-border-radius":
|
|
269
|
-
|
|
270
|
-
|
|
270
|
+
let t18;
|
|
271
|
+
if ($[55] !== T0 || $[56] !== t10 || $[57] !== t11 || $[58] !== t16 || $[59] !== t17 || $[60] !== t4 || $[61] !== t5 || $[62] !== t6 || $[63] !== t7 || $[64] !== t8 || $[65] !== t9) {
|
|
272
|
+
t18 = /*#__PURE__*/jsxs(T0, {
|
|
273
|
+
ref: t4,
|
|
274
|
+
className: t5,
|
|
275
|
+
"data-component": t6,
|
|
276
|
+
"data-padding": t7,
|
|
277
|
+
"data-border-radius": t8,
|
|
278
|
+
"data-layout": t9,
|
|
279
|
+
...t10,
|
|
280
|
+
children: [t11, t16, t17]
|
|
271
281
|
});
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
282
|
+
$[55] = T0;
|
|
283
|
+
$[56] = t10;
|
|
284
|
+
$[57] = t11;
|
|
285
|
+
$[58] = t16;
|
|
286
|
+
$[59] = t17;
|
|
287
|
+
$[60] = t4;
|
|
288
|
+
$[61] = t5;
|
|
289
|
+
$[62] = t6;
|
|
290
|
+
$[63] = t7;
|
|
291
|
+
$[64] = t8;
|
|
292
|
+
$[65] = t9;
|
|
293
|
+
$[66] = t18;
|
|
283
294
|
} else {
|
|
284
|
-
|
|
295
|
+
t18 = $[66];
|
|
285
296
|
}
|
|
286
|
-
let
|
|
287
|
-
if ($[
|
|
288
|
-
|
|
289
|
-
value:
|
|
290
|
-
children:
|
|
297
|
+
let t19;
|
|
298
|
+
if ($[67] !== T1 || $[68] !== t12 || $[69] !== t18) {
|
|
299
|
+
t19 = /*#__PURE__*/jsx(T1, {
|
|
300
|
+
value: t12,
|
|
301
|
+
children: t18
|
|
291
302
|
});
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
303
|
+
$[67] = T1;
|
|
304
|
+
$[68] = t12;
|
|
305
|
+
$[69] = t18;
|
|
306
|
+
$[70] = t19;
|
|
296
307
|
} else {
|
|
297
|
-
|
|
308
|
+
t19 = $[70];
|
|
298
309
|
}
|
|
299
|
-
return
|
|
310
|
+
return t19;
|
|
300
311
|
}
|
|
301
312
|
CardComponent.displayName = 'Card';
|
|
302
313
|
const CardImpl = fixedForwardRef(CardComponent);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Card-
|
|
1
|
+
import './Card-59b77d05.css';
|
|
2
2
|
|
|
3
3
|
var classes = {"Card":"prc-Card-Card-pYjuL","CardHeader":"prc-Card-CardHeader-P5Qbb","CardHeaderEdgeToEdge":"prc-Card-CardHeaderEdgeToEdge-3yCqT","CardImage":"prc-Card-CardImage-2M8DM","CardIcon":"prc-Card-CardIcon-mIMfj","CardBody":"prc-Card-CardBody-W1o-l","CardContent":"prc-Card-CardContent-omZDS","CardHeading":"prc-Card-CardHeading-3HXyS","CardDescription":"prc-Card-CardDescription-MnJ3F","CardMetadataContainer":"prc-Card-CardMetadataContainer-K-UlH","CardMetadataItem":"prc-Card-CardMetadataItem-ellY9","CardAction":"prc-Card-CardAction-VtI49"};
|
|
4
4
|
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -4,11 +4,13 @@ declare const Card: (<As extends "div" | "section">(props: (import("react").Comp
|
|
|
4
4
|
className?: string;
|
|
5
5
|
padding?: "none" | "condensed" | "normal";
|
|
6
6
|
borderRadius?: "medium" | "large";
|
|
7
|
+
layout?: "default" | "compact";
|
|
7
8
|
children: React.ReactNode;
|
|
8
9
|
} extends infer T ? T extends import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
9
10
|
className?: string;
|
|
10
11
|
padding?: "none" | "condensed" | "normal";
|
|
11
12
|
borderRadius?: "medium" | "large";
|
|
13
|
+
layout?: "default" | "compact";
|
|
12
14
|
children: React.ReactNode;
|
|
13
15
|
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
14
16
|
as?: As | undefined;
|
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/Dialog/Dialog.d.ts
CHANGED
|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AKJ,CAAA;AAEV,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,CAAA;AAC5F,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAA;AAoEjD,eAAO,MAAM,aAAa,mCAAqD,CAAA;AAmS/E,eAAO,MAAM,MAAM;;;;;;;;;iBA9EuC,iBAAiB,EAAE;;;iBAoCf,MAAM,IAAI;oBAAc,KAAK,CAAC,oBAAoB;;CAkD9G,CAAA"}
|
package/dist/Dialog/Dialog.js
CHANGED
|
@@ -36,6 +36,17 @@ const DefaultHeader = ({
|
|
|
36
36
|
const onCloseClick = useCallback(() => {
|
|
37
37
|
onClose('close-button');
|
|
38
38
|
}, [onClose]);
|
|
39
|
+
const onCloseKeyDown = useCallback(event => {
|
|
40
|
+
if (event.key === 'Escape') {
|
|
41
|
+
// When the close button is focused its tooltip is open, and the
|
|
42
|
+
// tooltip's own Escape handler (registered on `document`) would
|
|
43
|
+
// otherwise swallow this keypress. Handle Escape here and stop it from
|
|
44
|
+
// reaching the document-level handler so the dialog closes on the first
|
|
45
|
+
// press while keeping the tooltip fully functional.
|
|
46
|
+
event.stopPropagation();
|
|
47
|
+
onClose('escape');
|
|
48
|
+
}
|
|
49
|
+
}, [onClose]);
|
|
39
50
|
return /*#__PURE__*/jsx(Dialog.Header, {
|
|
40
51
|
children: /*#__PURE__*/jsxs("div", {
|
|
41
52
|
className: classes.HeaderInner,
|
|
@@ -49,7 +60,8 @@ const DefaultHeader = ({
|
|
|
49
60
|
children: subtitle
|
|
50
61
|
})]
|
|
51
62
|
}), /*#__PURE__*/jsx(Dialog.CloseButton, {
|
|
52
|
-
onClose: onCloseClick
|
|
63
|
+
onClose: onCloseClick,
|
|
64
|
+
onKeyDown: onCloseKeyDown
|
|
53
65
|
})]
|
|
54
66
|
})
|
|
55
67
|
});
|
|
@@ -348,12 +360,14 @@ const Buttons = ({
|
|
|
348
360
|
});
|
|
349
361
|
};
|
|
350
362
|
const CloseButton = ({
|
|
351
|
-
onClose
|
|
363
|
+
onClose,
|
|
364
|
+
onKeyDown
|
|
352
365
|
}) => {
|
|
353
366
|
return /*#__PURE__*/jsx(IconButton, {
|
|
354
367
|
icon: XIcon,
|
|
355
368
|
"aria-label": "Close",
|
|
356
369
|
onClick: onClose,
|
|
370
|
+
onKeyDown: onKeyDown,
|
|
357
371
|
variant: "invisible",
|
|
358
372
|
"data-component": "Dialog.CloseButton"
|
|
359
373
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,kBAM9B,CAAA"}
|
|
@@ -5,8 +5,7 @@ const DefaultFeatureFlags = FeatureFlagScope.create({
|
|
|
5
5
|
primer_react_select_panel_fullscreen_on_narrow: false,
|
|
6
6
|
primer_react_select_panel_order_selected_at_top: false,
|
|
7
7
|
primer_react_styled_react_use_primer_theme_providers: false,
|
|
8
|
-
primer_react_action_list_group_heading_trailing_action: false
|
|
9
|
-
primer_react_timeline_list_semantics: false
|
|
8
|
+
primer_react_action_list_group_heading_trailing_action: false
|
|
10
9
|
});
|
|
11
10
|
|
|
12
11
|
export { DefaultFeatureFlags };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-Timeline-Timeline-awSoC{display:flex;flex-direction:column}:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=start]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:first-child{padding-top:0}:is(:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=start]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:first-child) .prc-Timeline-TimelineItemAvatar-4zO8f{top:var(--base-size-16,1rem)}:is(:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=start]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:first-child):where([data-condensed]):before{top:var(--base-size-12,.75rem)}:is(:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=start]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:first-child):where([data-condensed]) .prc-Timeline-TimelineItemAvatar-4zO8f{top:calc(var(--base-size-8,.5rem) + var(--base-size-8,.5rem))}:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=end]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:last-child{padding-bottom:0}:is(:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=end]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:last-child):where([data-condensed]):before{height:var(--base-size-12,.75rem)}.prc-Timeline-TimelineItem-QwDVH{display:flex;margin-left:var(--base-size-16,1rem);padding:var(--base-size-16,1rem) 0;position:relative}.prc-Timeline-TimelineItem-QwDVH:before{background-color:var(--borderColor-muted,#d1d9e0b3);bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:2px}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]){padding-bottom:0;padding-top:var(--base-size-4,.25rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]):last-child{padding-bottom:var(--base-size-16,1rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]) .prc-Timeline-TimelineBadge-u0qSm{background-color:var(--bgColor-default,#fff);border:0;color:var(--fgColor-muted,#59636e);height:16px;margin-bottom:var(--base-size-8,.5rem);margin-top:var(--base-size-8,.5rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]) .prc-Timeline-TimelineItemAvatar-4zO8f{top:calc(var(--base-size-4,.25rem) + var(--base-size-8,.5rem) + var(--base-size-8,.5rem))}.prc-Timeline-TimelineItemAvatar-4zO8f{left:calc((var(--base-size-40,2.5rem) + var(--base-size-32,2rem))*-1);position:absolute;top:calc(var(--base-size-16,1rem) + var(--base-size-16,1rem));transform:translateY(-50%);z-index:1}.prc-Timeline-TimelineBadgeWrapper-SZw4k{position:relative;z-index:1}.prc-Timeline-TimelineBadge-u0qSm{align-items:center;background-color:var(--timelineBadge-bgColor,#f6f8fa);border-color:var(--bgColor-default,#fff);border-radius:50%;border-style:solid;border-width:var(--borderWidth-thick,.125rem);color:var(--fgColor-muted,#59636e);display:flex;flex-shrink:0;height:32px;justify-content:center;margin-left:-15px;margin-right:var(--base-size-8,.5rem);overflow:hidden;width:32px}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant]){color:var(--fgColor-onEmphasis,#fff)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=accent]){background-color:var(--bgColor-accent-emphasis,#0969da)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=success]){background-color:var(--bgColor-success-emphasis,#1f883d)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=attention]){background-color:var(--bgColor-attention-emphasis,#9a6700)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=severe]){background-color:var(--bgColor-severe-emphasis,#bc4c00)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=danger]){background-color:var(--bgColor-danger-emphasis,#cf222e)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=done]){background-color:var(--bgColor-done-emphasis,#8250df)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=open]){background-color:var(--bgColor-open-emphasis,#1f883d)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=closed]){background-color:var(--bgColor-closed-emphasis,#cf222e)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=sponsors]){background-color:var(--bgColor-sponsors-emphasis,#bf3989)}.prc-Timeline-TimelineBody-tjOtb{color:var(--fgColor-muted,#59636e);flex:auto;font-size:var(--text-body-size-medium,.875rem);margin-top:calc(var(--base-size-4,.25rem) + 1px);max-width:100%;min-width:0}.prc-Timeline-TimelineBreak-X8eti{background-color:var(--bgColor-default,#fff);border:0;border-top:var(--borderWidth-thicker,.25rem) solid var(--borderColor-default,#d1d9e0);height:var(--base-size-24,1.5rem);margin:0;margin-bottom:calc(var(--base-size-16,1rem)*-1);margin-left:0;position:relative;z-index:1}.prc-Timeline-TimelineBreak-X8eti:has(+[data-condensed]){margin-bottom:calc(var(--base-size-12,.75rem)*-1)}.prc-Timeline-TimelineItemActions-56Y7h{align-items:center;align-self:flex-start;display:flex;flex-shrink:0;gap:var(--base-size-8,.5rem);margin-left:auto;min-height:var(--base-size-32,2rem)}
|
|
2
|
+
/*# sourceMappingURL=Timeline-0c88f21b.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Timeline/Timeline.module.css.js"],"names":[],"mappings":"AAAA,6BACE,YAAa,CACb,qBAiCF,CA7BI,6KACE,aAeF,CAbE,yNAEE,4BACF,CAEA,iNACE,8BACF,CAEA,iPAEE,6DACF,CAMF,0KACE,gBAKF,CAHE,8MACE,iCACF,CAKN,iCAEE,YAAa,CAEb,oCAAgC,CADhC,kCAA8B,CAF9B,iBAuCF,CAlCE,wCASE,mDAA0C,CAN1C,QAAS,CAIT,UAAW,CAFX,aAAc,CADd,MAAO,CAHP,iBAAkB,CAClB,KAAM,CAIN,SAIF,CAEA,yDAEE,gBAAiB,CADjB,qCAoBF,CAjBE,oEACE,uCACF,CAEA,2FAKE,4CAAwC,CACxC,QAAS,CAFT,kCAA2B,CAH3B,WAAY,CAEZ,sCAAiC,CADjC,mCAKF,CAEA,gGAEE,yFACF,CAIJ,uCAGE,qEAA4D,CAF5D,iBAAkB,CAIlB,6DAAoD,CAEpD,0BAA2B,CAD3B,SAEF,CAEA,yCACE,iBAAkB,CAClB,SACF,CAEA,kCAkBE,kBAAmB,CANnB,qDAA8C,CAE9C,wCAAoC,CAGpC,iBAAkB,CAFlB,kBAAmB,CACnB,6CAAsC,CAPtC,kCAA2B,CAR3B,YAAa,CAMb,aAAc,CAJd,WAAY,CAgBZ,sBAAuB,CAbvB,iBAAkB,CAFlB,qCAAgC,CAIhC,eAAgB,CANhB,UA0DF,CAvCE,wDACE,oCACF,CAEA,+DACE,uDACF,CAEA,gEACE,wDACF,CAEA,kEACE,0DACF,CAEA,+DACE,uDACF,CAEA,+DACE,uDACF,CAEA,6DACE,qDACF,CAEA,6DACE,qDACF,CAEA,+DACE,uDACF,CAEA,iEACE,yDACF,CAGF,iCAME,kCAA2B,CAC3B,SAAU,CAFV,8CAAuC,CADvC,gDAA0C,CAF1C,cAAe,CADf,WAOF,CAEA,kCAOE,4CAAwC,CACxC,QAAS,CACT,qFAAuE,CANvE,iCAA2B,CAC3B,QAAS,CACT,+CAA6C,CAC7C,aAAc,CALd,iBAAkB,CAClB,SAaF,CAHE,yDACE,iDACF,CAGF,wCAEE,kBAAmB,CACnB,qBAAsB,CAFtB,YAAa,CAOb,aAAc,CADd,4BAAuB,CADvB,gBAAiB,CADjB,mCAIF","file":"Timeline-0c88f21b.css","sourcesContent":[".Timeline {\n display: flex;\n flex-direction: column;\n\n &:where([data-clip-sidebar='start']),\n &:where([data-clip-sidebar='both']) {\n .TimelineItem:first-child {\n padding-top: 0;\n\n .TimelineItemAvatar {\n /* No padding-top on first item: badge center is at 0 + 16px (half-badge) */\n top: var(--base-size-16);\n }\n\n &:where([data-condensed])::before {\n top: var(--base-size-12);\n }\n\n &:where([data-condensed]) .TimelineItemAvatar {\n /* No padding-top + condensed: badge center is at 0 + 8px margin + 8px half-badge */\n top: calc(var(--base-size-8) + var(--base-size-8));\n }\n }\n }\n\n &:where([data-clip-sidebar='end']),\n &:where([data-clip-sidebar='both']) {\n .TimelineItem:last-child {\n padding-bottom: 0;\n\n &:where([data-condensed])::before {\n height: var(--base-size-12);\n }\n }\n }\n}\n\n.TimelineItem {\n position: relative;\n display: flex;\n padding: var(--base-size-16) 0;\n margin-left: var(--base-size-16);\n\n &::before {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 2px;\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--borderColor-muted);\n }\n\n &:where([data-condensed]) {\n padding-top: var(--base-size-4);\n padding-bottom: 0;\n\n &:last-child {\n padding-bottom: var(--base-size-16);\n }\n\n .TimelineBadge {\n height: 16px;\n margin-top: var(--base-size-8);\n margin-bottom: var(--base-size-8);\n color: var(--fgColor-muted);\n background-color: var(--bgColor-default);\n border: 0;\n }\n\n .TimelineItemAvatar {\n /* Vertically center against the condensed badge (4px padding-top + 8px badge top margin + 8px half-badge) */\n top: calc(var(--base-size-4) + var(--base-size-8) + var(--base-size-8));\n }\n }\n}\n\n.TimelineItemAvatar {\n position: absolute;\n /* Place avatar in the left gutter, aligned with surrounding actor avatars (~72px from item content) */\n left: calc(-1 * (var(--base-size-40) + var(--base-size-32)));\n /* Vertically center against the default badge (16px padding-top + 16px half-badge) */\n top: calc(var(--base-size-16) + var(--base-size-16));\n z-index: 1;\n transform: translateY(-50%);\n}\n\n.TimelineBadgeWrapper {\n position: relative;\n z-index: 1;\n}\n\n.TimelineBadge {\n display: flex;\n width: 32px;\n height: 32px;\n margin-right: var(--base-size-8);\n /* stylelint-disable-next-line primer/spacing */\n margin-left: -15px;\n flex-shrink: 0;\n overflow: hidden;\n color: var(--fgColor-muted);\n\n /* TODOl not quite sure if this is the correct migration for this line */\n background-color: var(--timelineBadge-bgColor);\n /* stylelint-disable-next-line primer/colors */\n border-color: var(--bgColor-default);\n border-style: solid;\n border-width: var(--borderWidth-thick);\n border-radius: 50%;\n align-items: center;\n justify-content: center;\n\n &:where([data-variant]) {\n color: var(--fgColor-onEmphasis);\n }\n\n &:where([data-variant='accent']) {\n background-color: var(--bgColor-accent-emphasis);\n }\n\n &:where([data-variant='success']) {\n background-color: var(--bgColor-success-emphasis);\n }\n\n &:where([data-variant='attention']) {\n background-color: var(--bgColor-attention-emphasis);\n }\n\n &:where([data-variant='severe']) {\n background-color: var(--bgColor-severe-emphasis);\n }\n\n &:where([data-variant='danger']) {\n background-color: var(--bgColor-danger-emphasis);\n }\n\n &:where([data-variant='done']) {\n background-color: var(--bgColor-done-emphasis);\n }\n\n &:where([data-variant='open']) {\n background-color: var(--bgColor-open-emphasis);\n }\n\n &:where([data-variant='closed']) {\n background-color: var(--bgColor-closed-emphasis);\n }\n\n &:where([data-variant='sponsors']) {\n background-color: var(--bgColor-sponsors-emphasis);\n }\n}\n\n.TimelineBody {\n min-width: 0;\n max-width: 100%;\n /* stylelint-disable-next-line primer/spacing */\n margin-top: calc(var(--base-size-4) + 1px);\n font-size: var(--text-body-size-medium);\n color: var(--fgColor-muted);\n flex: auto;\n}\n\n.TimelineBreak {\n position: relative;\n z-index: 1;\n height: var(--base-size-24);\n margin: 0;\n margin-bottom: calc(-1 * var(--base-size-16));\n margin-left: 0;\n background-color: var(--bgColor-default);\n border: 0;\n border-top: var(--borderWidth-thicker) solid var(--borderColor-default);\n\n /* stylelint-disable-next-line selector-pseudo-class-disallowed-list -- scoped to CSS Module, audited (github/github-ui#17224) */\n &:has(+ [data-condensed]) {\n margin-bottom: calc(-1 * var(--base-size-12));\n }\n}\n\n.TimelineItemActions {\n display: flex;\n align-items: center;\n align-self: flex-start;\n /* Match the badge wrapper height (32px in both default and condensed) so contents vertically center against the badge */\n min-height: var(--base-size-32);\n margin-left: auto;\n gap: var(--base-size-8);\n flex-shrink: 0;\n}\n"]}
|
|
@@ -3,7 +3,7 @@ type StyledTimelineProps = {
|
|
|
3
3
|
clipSidebar?: boolean | 'start' | 'end' | 'both';
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
|
-
export type TimelineProps = StyledTimelineProps &
|
|
6
|
+
export type TimelineProps = StyledTimelineProps & React.ComponentPropsWithoutRef<'div'>;
|
|
7
7
|
type StyledTimelineItemProps = {
|
|
8
8
|
condensed?: boolean;
|
|
9
9
|
className?: string;
|
|
@@ -11,8 +11,8 @@ type StyledTimelineItemProps = {
|
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated Use the `TimelineItemProps` type instead
|
|
13
13
|
*/
|
|
14
|
-
export type TimelineItemsProps = StyledTimelineItemProps & React.ComponentPropsWithoutRef<'
|
|
15
|
-
export type TimelineItemProps = StyledTimelineItemProps & React.ComponentPropsWithoutRef<'
|
|
14
|
+
export type TimelineItemsProps = StyledTimelineItemProps & React.ComponentPropsWithoutRef<'div'>;
|
|
15
|
+
export type TimelineItemProps = StyledTimelineItemProps & React.ComponentPropsWithoutRef<'div'>;
|
|
16
16
|
export declare const TimelineBadgeVariants: readonly ["accent", "success", "attention", "severe", "danger", "done", "open", "closed", "sponsors"];
|
|
17
17
|
export type TimelineBadgeVariant = (typeof TimelineBadgeVariants)[number];
|
|
18
18
|
export type TimelineBadgeProps = {
|
|
@@ -28,7 +28,7 @@ export type TimelineBodyProps = {
|
|
|
28
28
|
export type TimelineBreakProps = {
|
|
29
29
|
/** Class name for custom styling */
|
|
30
30
|
className?: string;
|
|
31
|
-
} &
|
|
31
|
+
} & React.ComponentPropsWithoutRef<'div'>;
|
|
32
32
|
export type TimelineActionsProps = {
|
|
33
33
|
/** Class name for custom styling */
|
|
34
34
|
className?: string;
|
|
@@ -37,8 +37,8 @@ export type TimelineAvatarProps = {
|
|
|
37
37
|
/** Class name for custom styling */
|
|
38
38
|
className?: string;
|
|
39
39
|
} & React.ComponentPropsWithoutRef<'div'>;
|
|
40
|
-
declare const _default: React.ForwardRefExoticComponent<StyledTimelineProps & Omit<
|
|
41
|
-
Item: React.ForwardRefExoticComponent<StyledTimelineItemProps & Omit<React.DetailedHTMLProps<React.
|
|
40
|
+
declare const _default: React.ForwardRefExoticComponent<StyledTimelineProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
41
|
+
Item: React.ForwardRefExoticComponent<StyledTimelineItemProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
Avatar: React.ForwardRefExoticComponent<{
|
|
43
43
|
/** Class name for custom styling */
|
|
44
44
|
className?: string;
|
|
@@ -54,7 +54,7 @@ declare const _default: React.ForwardRefExoticComponent<StyledTimelineProps & Om
|
|
|
54
54
|
Break: React.ForwardRefExoticComponent<{
|
|
55
55
|
/** Class name for custom styling */
|
|
56
56
|
className?: string;
|
|
57
|
-
} & Omit<
|
|
57
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
58
58
|
Actions: React.ForwardRefExoticComponent<{
|
|
59
59
|
/** Class name for custom styling */
|
|
60
60
|
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;
|
|
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;IAAC,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAEjG,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,KAAK,CA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AAC,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"}
|
|
@@ -3,7 +3,6 @@ import { clsx } from 'clsx';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import classes from './Timeline.module.css.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
import { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
|
|
7
6
|
|
|
8
7
|
function resolveClipSidebar(clipSidebar) {
|
|
9
8
|
if (clipSidebar === true || clipSidebar === 'both') return 'both';
|
|
@@ -11,7 +10,7 @@ function resolveClipSidebar(clipSidebar) {
|
|
|
11
10
|
return undefined;
|
|
12
11
|
}
|
|
13
12
|
const Timeline = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
14
|
-
const $ = c(
|
|
13
|
+
const $ = c(13);
|
|
15
14
|
let className;
|
|
16
15
|
let clipSidebar;
|
|
17
16
|
let props;
|
|
@@ -30,7 +29,6 @@ const Timeline = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
30
29
|
clipSidebar = $[2];
|
|
31
30
|
props = $[3];
|
|
32
31
|
}
|
|
33
|
-
const useListSemantics = useFeatureFlag("primer_react_timeline_list_semantics");
|
|
34
32
|
let t1;
|
|
35
33
|
if ($[4] !== clipSidebar) {
|
|
36
34
|
t1 = resolveClipSidebar(clipSidebar);
|
|
@@ -40,62 +38,31 @@ const Timeline = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
40
38
|
t1 = $[5];
|
|
41
39
|
}
|
|
42
40
|
const resolvedClipSidebar = t1;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
$[7] = t2;
|
|
49
|
-
} else {
|
|
50
|
-
t2 = $[7];
|
|
51
|
-
}
|
|
52
|
-
const t3 = forwardRef;
|
|
53
|
-
let t4;
|
|
54
|
-
if ($[8] !== props || $[9] !== resolvedClipSidebar || $[10] !== t2 || $[11] !== t3) {
|
|
55
|
-
t4 = /*#__PURE__*/jsx("ol", {
|
|
56
|
-
...props,
|
|
57
|
-
role: "list",
|
|
58
|
-
className: t2,
|
|
59
|
-
ref: t3,
|
|
60
|
-
"data-clip-sidebar": resolvedClipSidebar
|
|
61
|
-
});
|
|
62
|
-
$[8] = props;
|
|
63
|
-
$[9] = resolvedClipSidebar;
|
|
64
|
-
$[10] = t2;
|
|
65
|
-
$[11] = t3;
|
|
66
|
-
$[12] = t4;
|
|
67
|
-
} else {
|
|
68
|
-
t4 = $[12];
|
|
69
|
-
}
|
|
70
|
-
return t4;
|
|
71
|
-
}
|
|
72
|
-
const t2 = props;
|
|
73
|
-
let t3;
|
|
74
|
-
if ($[13] !== className) {
|
|
75
|
-
t3 = clsx(className, classes.Timeline);
|
|
76
|
-
$[13] = className;
|
|
77
|
-
$[14] = t3;
|
|
41
|
+
let t2;
|
|
42
|
+
if ($[6] !== className) {
|
|
43
|
+
t2 = clsx(className, classes.Timeline);
|
|
44
|
+
$[6] = className;
|
|
45
|
+
$[7] = t2;
|
|
78
46
|
} else {
|
|
79
|
-
|
|
47
|
+
t2 = $[7];
|
|
80
48
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
ref: t4,
|
|
49
|
+
let t3;
|
|
50
|
+
if ($[8] !== forwardRef || $[9] !== props || $[10] !== resolvedClipSidebar || $[11] !== t2) {
|
|
51
|
+
t3 = /*#__PURE__*/jsx("div", {
|
|
52
|
+
...props,
|
|
53
|
+
className: t2,
|
|
54
|
+
ref: forwardRef,
|
|
88
55
|
"data-clip-sidebar": resolvedClipSidebar
|
|
89
56
|
});
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
57
|
+
$[8] = forwardRef;
|
|
58
|
+
$[9] = props;
|
|
59
|
+
$[10] = resolvedClipSidebar;
|
|
60
|
+
$[11] = t2;
|
|
61
|
+
$[12] = t3;
|
|
95
62
|
} else {
|
|
96
|
-
|
|
63
|
+
t3 = $[12];
|
|
97
64
|
}
|
|
98
|
-
return
|
|
65
|
+
return t3;
|
|
99
66
|
});
|
|
100
67
|
Timeline.displayName = 'Timeline';
|
|
101
68
|
|
|
@@ -104,7 +71,7 @@ Timeline.displayName = 'Timeline';
|
|
|
104
71
|
*/
|
|
105
72
|
|
|
106
73
|
const TimelineItem = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
107
|
-
const $ = c(
|
|
74
|
+
const $ = c(11);
|
|
108
75
|
let className;
|
|
109
76
|
let condensed;
|
|
110
77
|
let props;
|
|
@@ -123,64 +90,32 @@ const TimelineItem = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
123
90
|
condensed = $[2];
|
|
124
91
|
props = $[3];
|
|
125
92
|
}
|
|
126
|
-
|
|
127
|
-
if (
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
$[4] = className;
|
|
132
|
-
$[5] = t1;
|
|
133
|
-
} else {
|
|
134
|
-
t1 = $[5];
|
|
135
|
-
}
|
|
136
|
-
const t2 = forwardRef;
|
|
137
|
-
const t3 = condensed ? "" : undefined;
|
|
138
|
-
let t4;
|
|
139
|
-
if ($[6] !== props || $[7] !== t1 || $[8] !== t2 || $[9] !== t3) {
|
|
140
|
-
t4 = /*#__PURE__*/jsx("li", {
|
|
141
|
-
...props,
|
|
142
|
-
className: t1,
|
|
143
|
-
ref: t2,
|
|
144
|
-
"data-condensed": t3
|
|
145
|
-
});
|
|
146
|
-
$[6] = props;
|
|
147
|
-
$[7] = t1;
|
|
148
|
-
$[8] = t2;
|
|
149
|
-
$[9] = t3;
|
|
150
|
-
$[10] = t4;
|
|
151
|
-
} else {
|
|
152
|
-
t4 = $[10];
|
|
153
|
-
}
|
|
154
|
-
return t4;
|
|
155
|
-
}
|
|
156
|
-
const t1 = props;
|
|
157
|
-
let t2;
|
|
158
|
-
if ($[11] !== className) {
|
|
159
|
-
t2 = clsx(className, "Timeline-Item", classes.TimelineItem);
|
|
160
|
-
$[11] = className;
|
|
161
|
-
$[12] = t2;
|
|
93
|
+
let t1;
|
|
94
|
+
if ($[4] !== className) {
|
|
95
|
+
t1 = clsx(className, "Timeline-Item", classes.TimelineItem);
|
|
96
|
+
$[4] = className;
|
|
97
|
+
$[5] = t1;
|
|
162
98
|
} else {
|
|
163
|
-
|
|
99
|
+
t1 = $[5];
|
|
164
100
|
}
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
"data-condensed": t4
|
|
101
|
+
const t2 = condensed ? "" : undefined;
|
|
102
|
+
let t3;
|
|
103
|
+
if ($[6] !== forwardRef || $[7] !== props || $[8] !== t1 || $[9] !== t2) {
|
|
104
|
+
t3 = /*#__PURE__*/jsx("div", {
|
|
105
|
+
...props,
|
|
106
|
+
className: t1,
|
|
107
|
+
ref: forwardRef,
|
|
108
|
+
"data-condensed": t2
|
|
174
109
|
});
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
110
|
+
$[6] = forwardRef;
|
|
111
|
+
$[7] = props;
|
|
112
|
+
$[8] = t1;
|
|
113
|
+
$[9] = t2;
|
|
114
|
+
$[10] = t3;
|
|
180
115
|
} else {
|
|
181
|
-
|
|
116
|
+
t3 = $[10];
|
|
182
117
|
}
|
|
183
|
-
return
|
|
118
|
+
return t3;
|
|
184
119
|
});
|
|
185
120
|
TimelineItem.displayName = 'TimelineItem';
|
|
186
121
|
const TimelineBadge = t0 => {
|
|
@@ -273,7 +208,7 @@ const TimelineBody = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
273
208
|
});
|
|
274
209
|
TimelineBody.displayName = 'TimelineBody';
|
|
275
210
|
const TimelineBreak = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
276
|
-
const $ = c(
|
|
211
|
+
const $ = c(9);
|
|
277
212
|
let className;
|
|
278
213
|
let props;
|
|
279
214
|
if ($[0] !== t0) {
|
|
@@ -288,59 +223,29 @@ const TimelineBreak = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
288
223
|
className = $[1];
|
|
289
224
|
props = $[2];
|
|
290
225
|
}
|
|
291
|
-
|
|
292
|
-
if (
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
$[3] = className;
|
|
297
|
-
$[4] = t1;
|
|
298
|
-
} else {
|
|
299
|
-
t1 = $[4];
|
|
300
|
-
}
|
|
301
|
-
const t2 = forwardRef;
|
|
302
|
-
let t3;
|
|
303
|
-
if ($[5] !== props || $[6] !== t1 || $[7] !== t2) {
|
|
304
|
-
t3 = /*#__PURE__*/jsx("li", {
|
|
305
|
-
...props,
|
|
306
|
-
className: t1,
|
|
307
|
-
ref: t2,
|
|
308
|
-
role: "presentation"
|
|
309
|
-
});
|
|
310
|
-
$[5] = props;
|
|
311
|
-
$[6] = t1;
|
|
312
|
-
$[7] = t2;
|
|
313
|
-
$[8] = t3;
|
|
314
|
-
} else {
|
|
315
|
-
t3 = $[8];
|
|
316
|
-
}
|
|
317
|
-
return t3;
|
|
318
|
-
}
|
|
319
|
-
const t1 = props;
|
|
320
|
-
let t2;
|
|
321
|
-
if ($[9] !== className) {
|
|
322
|
-
t2 = clsx(className, classes.TimelineBreak);
|
|
323
|
-
$[9] = className;
|
|
324
|
-
$[10] = t2;
|
|
226
|
+
let t1;
|
|
227
|
+
if ($[3] !== className) {
|
|
228
|
+
t1 = clsx(className, classes.TimelineBreak);
|
|
229
|
+
$[3] = className;
|
|
230
|
+
$[4] = t1;
|
|
325
231
|
} else {
|
|
326
|
-
|
|
232
|
+
t1 = $[4];
|
|
327
233
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
ref: t3
|
|
234
|
+
let t2;
|
|
235
|
+
if ($[5] !== forwardRef || $[6] !== props || $[7] !== t1) {
|
|
236
|
+
t2 = /*#__PURE__*/jsx("div", {
|
|
237
|
+
...props,
|
|
238
|
+
className: t1,
|
|
239
|
+
ref: forwardRef
|
|
335
240
|
});
|
|
336
|
-
$[
|
|
337
|
-
$[
|
|
338
|
-
$[
|
|
339
|
-
$[
|
|
241
|
+
$[5] = forwardRef;
|
|
242
|
+
$[6] = props;
|
|
243
|
+
$[7] = t1;
|
|
244
|
+
$[8] = t2;
|
|
340
245
|
} else {
|
|
341
|
-
|
|
246
|
+
t2 = $[8];
|
|
342
247
|
}
|
|
343
|
-
return
|
|
248
|
+
return t2;
|
|
344
249
|
});
|
|
345
250
|
TimelineBreak.displayName = 'TimelineBreak';
|
|
346
251
|
const TimelineActions = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Timeline-
|
|
1
|
+
import './Timeline-0c88f21b.css';
|
|
2
2
|
|
|
3
3
|
var classes = {"Timeline":"prc-Timeline-Timeline-awSoC","TimelineItem":"prc-Timeline-TimelineItem-QwDVH","TimelineItemAvatar":"prc-Timeline-TimelineItemAvatar-4zO8f","TimelineBadge":"prc-Timeline-TimelineBadge-u0qSm","TimelineBadgeWrapper":"prc-Timeline-TimelineBadgeWrapper-SZw4k","TimelineBody":"prc-Timeline-TimelineBody-tjOtb","TimelineBreak":"prc-Timeline-TimelineBreak-X8eti","TimelineItemActions":"prc-Timeline-TimelineItemActions-56Y7h"};
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.prc-Card-Card-pYjuL{background-color:var(--bgColor-default,#fff);border:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);box-shadow:var(--shadow-resting-small,0 1px 1px 0 #1f23280a,0 1px 2px 0 #1f232808);display:grid;gap:var(--stack-gap-normal,1rem);grid-auto-rows:max-content auto;overflow:hidden;position:relative}.prc-Card-Card-pYjuL[data-border-radius=large]{border-radius:var(--borderRadius-large,.75rem)}.prc-Card-Card-pYjuL[data-border-radius=medium]{border-radius:var(--borderRadius-medium,.375rem)}.prc-Card-Card-pYjuL[data-padding=normal]{padding:var(--stack-padding-spacious,1.5rem)}.prc-Card-Card-pYjuL[data-padding=condensed]{padding:var(--stack-padding-condensed,.5rem)}.prc-Card-Card-pYjuL[data-padding=none]{padding:0}.prc-Card-CardHeader-P5Qbb{display:block;height:auto;width:100%}.prc-Card-CardHeaderEdgeToEdge-3yCqT{margin-left:calc(var(--stack-padding-spacious,1.5rem)*-1);margin-right:calc(var(--stack-padding-spacious,1.5rem)*-1);margin-top:calc(var(--stack-padding-spacious,1.5rem)*-1);width:calc(100% + var(--stack-padding-spacious,1.5rem)*2)}.prc-Card-CardImage-2M8DM{display:block;height:auto;width:100%}.prc-Card-CardIcon-mIMfj{align-items:center;background-color:var(--bgColor-muted,#f6f8fa);border-radius:var(--borderRadius-medium,.375rem);color:var(--fgColor-muted,#59636e);display:flex;height:var(--base-size-32,2rem);justify-content:center;width:var(--base-size-32,2rem)}.prc-Card-CardBody-W1o-l{display:grid;gap:var(--stack-gap-normal,1rem)}.prc-Card-CardContent-omZDS{display:grid;gap:var(--stack-gap-condensed,.5rem)}.prc-Card-CardHeading-3HXyS{color:var(--fgColor-default,#1f2328);font:var(--text-title-shorthand-small,600 1rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji");margin:0}.prc-Card-CardDescription-MnJ3F{margin:0}.prc-Card-CardDescription-MnJ3F,.prc-Card-CardMetadataContainer-K-UlH{color:var(--fgColor-muted,#59636e);font:var(--text-body-shorthand-medium,400 .875rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji")}.prc-Card-CardMetadataContainer-K-UlH{align-items:center;display:flex;gap:var(--stack-gap-normal,1rem)}.prc-Card-CardMetadataItem-ellY9{align-items:center;display:flex;font:var(--text-body-shorthand-small,400 .75rem/1.625 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji");gap:var(--stack-gap-condensed,.5rem)}.prc-Card-CardAction-VtI49{position:absolute;right:var(--base-size-16,1rem);top:var(--base-size-16,1rem);z-index:1}
|
|
2
|
-
/*# sourceMappingURL=Card-d8a02dd9.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Card/Card.module.css.js"],"names":[],"mappings":"AAAA,qBAOE,4CAAwC,CAFxC,gFAAgE,CAChE,kFAAuC,CALvC,YAAa,CAOb,gCAA4B,CAJ5B,+BAAgC,CADhC,eAAgB,CADhB,iBA6BF,CArBE,+CACE,8CACF,CAEA,gDACE,gDACF,CAEA,0CAEE,4CACF,CAEA,6CAEE,4CACF,CAEA,wCACE,SACF,CAGF,2BACE,aAAc,CAEd,WAAY,CADZ,UAEF,CAEA,qCAIE,yDAAqD,CADrD,0DAAsD,CADtD,wDAAoD,CAGpD,yDAEF,CAEA,0BACE,aAAc,CAEd,WAAY,CADZ,UAEF,CAEA,yBAEE,kBAAmB,CAKnB,6CAAsC,CADtC,gDAAyC,CAEzC,kCAA2B,CAP3B,YAAa,CAIb,+BAA2B,CAF3B,sBAAuB,CACvB,8BAKF,CAEA,yBACE,YAAa,CACb,gCACF,CAEA,4BACE,YAAa,CACb,oCACF,CAEA,4BAEE,oCAA6B,CAD7B,2KAAuC,CAEvC,QACF,CAEA,gCAGE,QACF,CAEA,sEAJE,kCAA2B,CAD3B,8KAWF,CANA,sCAEE,kBAAmB,CADnB,YAAa,CAEb,gCAGF,CAEA,iCAEE,kBAAmB,CADnB,YAAa,CAGb,8KAAsC,CADtC,oCAEF,CAEA,2BACE,iBAAkB,CAElB,8BAA0B,CAD1B,4BAAwB,CAExB,SACF","file":"Card-d8a02dd9.css","sourcesContent":[".Card {\n display: grid;\n position: relative;\n overflow: hidden;\n grid-auto-rows: max-content auto;\n border: var(--borderWidth-thin) solid var(--borderColor-default);\n box-shadow: var(--shadow-resting-small);\n background-color: var(--bgColor-default);\n gap: var(--stack-gap-normal);\n\n &[data-border-radius='large'] {\n border-radius: var(--borderRadius-large);\n }\n\n &[data-border-radius='medium'] {\n border-radius: var(--borderRadius-medium);\n }\n\n &[data-padding='normal'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-spacious);\n }\n\n &[data-padding='condensed'] {\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--stack-padding-condensed);\n }\n\n &[data-padding='none'] {\n padding: 0;\n }\n}\n\n.CardHeader {\n display: block;\n width: 100%;\n height: auto;\n}\n\n.CardHeaderEdgeToEdge {\n /* stylelint-disable primer/spacing */\n margin-top: calc(-1 * var(--stack-padding-spacious));\n margin-right: calc(-1 * var(--stack-padding-spacious));\n margin-left: calc(-1 * var(--stack-padding-spacious));\n width: calc(100% + 2 * var(--stack-padding-spacious));\n /* stylelint-enable primer/spacing */\n}\n\n.CardImage {\n display: block;\n width: 100%;\n height: auto;\n}\n\n.CardIcon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: var(--base-size-32);\n height: var(--base-size-32);\n border-radius: var(--borderRadius-medium);\n background-color: var(--bgColor-muted);\n color: var(--fgColor-muted);\n}\n\n.CardBody {\n display: grid;\n gap: var(--stack-gap-normal);\n}\n\n.CardContent {\n display: grid;\n gap: var(--stack-gap-condensed);\n}\n\n.CardHeading {\n font: var(--text-title-shorthand-small);\n color: var(--fgColor-default);\n margin: 0;\n}\n\n.CardDescription {\n font: var(--text-body-shorthand-medium);\n color: var(--fgColor-muted);\n margin: 0;\n}\n\n.CardMetadataContainer {\n display: flex;\n align-items: center;\n gap: var(--stack-gap-normal);\n font: var(--text-body-shorthand-medium);\n color: var(--fgColor-muted);\n}\n\n.CardMetadataItem {\n display: flex;\n align-items: center;\n gap: var(--stack-gap-condensed);\n font: var(--text-body-shorthand-small);\n}\n\n.CardAction {\n position: absolute;\n top: var(--base-size-16);\n right: var(--base-size-16);\n z-index: 1;\n}\n"]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.prc-Timeline-Timeline-awSoC{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=start]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:first-child{padding-top:0}:is(:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=start]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:first-child) .prc-Timeline-TimelineItemAvatar-4zO8f{top:var(--base-size-16,1rem)}:is(:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=start]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:first-child):where([data-condensed]):before{top:var(--base-size-12,.75rem)}:is(:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=start]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:first-child):where([data-condensed]) .prc-Timeline-TimelineItemAvatar-4zO8f{top:calc(var(--base-size-8,.5rem) + var(--base-size-8,.5rem))}:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=end]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:last-child{padding-bottom:0}:is(:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=end]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:last-child):where([data-condensed]):before{height:var(--base-size-12,.75rem)}.prc-Timeline-TimelineItem-QwDVH{display:flex;margin-left:var(--base-size-16,1rem);padding:var(--base-size-16,1rem) 0;position:relative}.prc-Timeline-TimelineItem-QwDVH:before{background-color:var(--borderColor-muted,#d1d9e0b3);bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:2px}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]){padding-bottom:0;padding-top:var(--base-size-4,.25rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]):last-child{padding-bottom:var(--base-size-16,1rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]) .prc-Timeline-TimelineBadge-u0qSm{background-color:var(--bgColor-default,#fff);border:0;color:var(--fgColor-muted,#59636e);height:16px;margin-bottom:var(--base-size-8,.5rem);margin-top:var(--base-size-8,.5rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]) .prc-Timeline-TimelineItemAvatar-4zO8f{top:calc(var(--base-size-4,.25rem) + var(--base-size-8,.5rem) + var(--base-size-8,.5rem))}.prc-Timeline-TimelineItemAvatar-4zO8f{left:calc((var(--base-size-40,2.5rem) + var(--base-size-32,2rem))*-1);position:absolute;top:calc(var(--base-size-16,1rem) + var(--base-size-16,1rem));transform:translateY(-50%);z-index:1}.prc-Timeline-TimelineBadgeWrapper-SZw4k{position:relative;z-index:1}.prc-Timeline-TimelineBadge-u0qSm{align-items:center;background-color:var(--timelineBadge-bgColor,#f6f8fa);border-color:var(--bgColor-default,#fff);border-radius:50%;border-style:solid;border-width:var(--borderWidth-thick,.125rem);color:var(--fgColor-muted,#59636e);display:flex;flex-shrink:0;height:32px;justify-content:center;margin-left:-15px;margin-right:var(--base-size-8,.5rem);overflow:hidden;width:32px}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant]){color:var(--fgColor-onEmphasis,#fff)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=accent]){background-color:var(--bgColor-accent-emphasis,#0969da)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=success]){background-color:var(--bgColor-success-emphasis,#1f883d)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=attention]){background-color:var(--bgColor-attention-emphasis,#9a6700)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=severe]){background-color:var(--bgColor-severe-emphasis,#bc4c00)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=danger]){background-color:var(--bgColor-danger-emphasis,#cf222e)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=done]){background-color:var(--bgColor-done-emphasis,#8250df)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=open]){background-color:var(--bgColor-open-emphasis,#1f883d)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=closed]){background-color:var(--bgColor-closed-emphasis,#cf222e)}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=sponsors]){background-color:var(--bgColor-sponsors-emphasis,#bf3989)}.prc-Timeline-TimelineBody-tjOtb{color:var(--fgColor-muted,#59636e);flex:auto;font-size:var(--text-body-size-medium,.875rem);margin-top:calc(var(--base-size-4,.25rem) + 1px);max-width:100%;min-width:0}.prc-Timeline-TimelineBreak-X8eti{background-color:var(--bgColor-default,#fff);border:0;border-top:var(--borderWidth-thicker,.25rem) solid var(--borderColor-default,#d1d9e0);height:var(--base-size-24,1.5rem);margin:0;margin-bottom:calc(var(--base-size-16,1rem)*-1);margin-left:0;position:relative;z-index:1}.prc-Timeline-TimelineBreak-X8eti:has(+[data-condensed]){margin-bottom:calc(var(--base-size-12,.75rem)*-1)}.prc-Timeline-TimelineItemActions-56Y7h{align-items:center;align-self:flex-start;display:flex;flex-shrink:0;gap:var(--base-size-8,.5rem);margin-left:auto;min-height:var(--base-size-32,2rem)}
|
|
2
|
-
/*# sourceMappingURL=Timeline-ff81db92.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Timeline/Timeline.module.css.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C,CAC7C,aAAc,CALd,iBAAkB,CAClB,SAaF,CAHE,yDACE,iDACF,CAGF,wCAEE,kBAAmB,CACnB,qBAAsB,CAFtB,YAAa,CAOb,aAAc,CADd,4BAAuB,CADvB,gBAAiB,CADjB,mCAIF","file":"Timeline-ff81db92.css","sourcesContent":[".Timeline {\n display: flex;\n flex-direction: column;\n list-style: none;\n padding: 0;\n margin: 0;\n\n &:where([data-clip-sidebar='start']),\n &:where([data-clip-sidebar='both']) {\n .TimelineItem:first-child {\n padding-top: 0;\n\n .TimelineItemAvatar {\n /* No padding-top on first item: badge center is at 0 + 16px (half-badge) */\n top: var(--base-size-16);\n }\n\n &:where([data-condensed])::before {\n top: var(--base-size-12);\n }\n\n &:where([data-condensed]) .TimelineItemAvatar {\n /* No padding-top + condensed: badge center is at 0 + 8px margin + 8px half-badge */\n top: calc(var(--base-size-8) + var(--base-size-8));\n }\n }\n }\n\n &:where([data-clip-sidebar='end']),\n &:where([data-clip-sidebar='both']) {\n .TimelineItem:last-child {\n padding-bottom: 0;\n\n &:where([data-condensed])::before {\n height: var(--base-size-12);\n }\n }\n }\n}\n\n.TimelineItem {\n position: relative;\n display: flex;\n padding: var(--base-size-16) 0;\n margin-left: var(--base-size-16);\n\n &::before {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 2px;\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--borderColor-muted);\n }\n\n &:where([data-condensed]) {\n padding-top: var(--base-size-4);\n padding-bottom: 0;\n\n &:last-child {\n padding-bottom: var(--base-size-16);\n }\n\n .TimelineBadge {\n height: 16px;\n margin-top: var(--base-size-8);\n margin-bottom: var(--base-size-8);\n color: var(--fgColor-muted);\n background-color: var(--bgColor-default);\n border: 0;\n }\n\n .TimelineItemAvatar {\n /* Vertically center against the condensed badge (4px padding-top + 8px badge top margin + 8px half-badge) */\n top: calc(var(--base-size-4) + var(--base-size-8) + var(--base-size-8));\n }\n }\n}\n\n.TimelineItemAvatar {\n position: absolute;\n /* Place avatar in the left gutter, aligned with surrounding actor avatars (~72px from item content) */\n left: calc(-1 * (var(--base-size-40) + var(--base-size-32)));\n /* Vertically center against the default badge (16px padding-top + 16px half-badge) */\n top: calc(var(--base-size-16) + var(--base-size-16));\n z-index: 1;\n transform: translateY(-50%);\n}\n\n.TimelineBadgeWrapper {\n position: relative;\n z-index: 1;\n}\n\n.TimelineBadge {\n display: flex;\n width: 32px;\n height: 32px;\n margin-right: var(--base-size-8);\n /* stylelint-disable-next-line primer/spacing */\n margin-left: -15px;\n flex-shrink: 0;\n overflow: hidden;\n color: var(--fgColor-muted);\n\n /* TODOl not quite sure if this is the correct migration for this line */\n background-color: var(--timelineBadge-bgColor);\n /* stylelint-disable-next-line primer/colors */\n border-color: var(--bgColor-default);\n border-style: solid;\n border-width: var(--borderWidth-thick);\n border-radius: 50%;\n align-items: center;\n justify-content: center;\n\n &:where([data-variant]) {\n color: var(--fgColor-onEmphasis);\n }\n\n &:where([data-variant='accent']) {\n background-color: var(--bgColor-accent-emphasis);\n }\n\n &:where([data-variant='success']) {\n background-color: var(--bgColor-success-emphasis);\n }\n\n &:where([data-variant='attention']) {\n background-color: var(--bgColor-attention-emphasis);\n }\n\n &:where([data-variant='severe']) {\n background-color: var(--bgColor-severe-emphasis);\n }\n\n &:where([data-variant='danger']) {\n background-color: var(--bgColor-danger-emphasis);\n }\n\n &:where([data-variant='done']) {\n background-color: var(--bgColor-done-emphasis);\n }\n\n &:where([data-variant='open']) {\n background-color: var(--bgColor-open-emphasis);\n }\n\n &:where([data-variant='closed']) {\n background-color: var(--bgColor-closed-emphasis);\n }\n\n &:where([data-variant='sponsors']) {\n background-color: var(--bgColor-sponsors-emphasis);\n }\n}\n\n.TimelineBody {\n min-width: 0;\n max-width: 100%;\n /* stylelint-disable-next-line primer/spacing */\n margin-top: calc(var(--base-size-4) + 1px);\n font-size: var(--text-body-size-medium);\n color: var(--fgColor-muted);\n flex: auto;\n}\n\n.TimelineBreak {\n position: relative;\n z-index: 1;\n height: var(--base-size-24);\n margin: 0;\n margin-bottom: calc(-1 * var(--base-size-16));\n margin-left: 0;\n background-color: var(--bgColor-default);\n border: 0;\n border-top: var(--borderWidth-thicker) solid var(--borderColor-default);\n\n /* stylelint-disable-next-line selector-pseudo-class-disallowed-list -- scoped to CSS Module, audited (github/github-ui#17224) */\n &:has(+ [data-condensed]) {\n margin-bottom: calc(-1 * var(--base-size-12));\n }\n}\n\n.TimelineItemActions {\n display: flex;\n align-items: center;\n align-self: flex-start;\n /* Match the badge wrapper height (32px in both default and condensed) so contents vertically center against the badge */\n min-height: var(--base-size-32);\n margin-left: auto;\n gap: var(--base-size-8);\n flex-shrink: 0;\n}\n"]}
|