@primer/react 0.0.0-20260601083639 → 0.0.0-20260601091151
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 +83 -1
- package/dist/ActionList/ActionList-1940009e.css +2 -0
- package/dist/ActionList/ActionList-1940009e.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +2 -2
- package/dist/ActionList/Item.d.ts.map +1 -1
- package/dist/ActionList/Item.js +125 -118
- package/dist/ActionList/TrailingAction.d.ts.map +1 -1
- package/dist/ActionList/TrailingAction.js +1 -0
- package/dist/ActionList/Visuals.js +6 -4
- package/dist/ActionList/index.d.ts +6 -6
- package/dist/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/ActionMenu/ActionMenu.js +0 -1
- package/dist/AnchoredOverlay/AnchoredOverlay-d483d670.css +2 -0
- package/dist/AnchoredOverlay/AnchoredOverlay-d483d670.css.map +1 -0
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts.map +1 -1
- package/dist/AnchoredOverlay/AnchoredOverlay.js +8 -5
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +1 -1
- package/dist/Banner/Banner.d.ts.map +1 -1
- package/dist/Banner/Banner.js +17 -20
- package/dist/Button/{ButtonBase-713ecf3d.css → ButtonBase-311501b9.css} +2 -2
- package/dist/Button/{ButtonBase-713ecf3d.css.map → ButtonBase-311501b9.css.map} +1 -1
- package/dist/Button/ButtonBase.d.ts.map +1 -1
- package/dist/Button/ButtonBase.js +1 -0
- package/dist/Button/ButtonBase.module.css.js +1 -1
- package/dist/Card/{Card-cec366f8.css → Card-d8a02dd9.css} +2 -2
- package/dist/Card/{Card-cec366f8.css.map → Card-d8a02dd9.css.map} +1 -1
- package/dist/Card/Card.d.ts +75 -39
- package/dist/Card/Card.d.ts.map +1 -1
- package/dist/Card/Card.js +260 -160
- package/dist/Card/Card.module.css.js +2 -2
- package/dist/Card/index.d.ts +16 -16
- package/dist/Card/index.d.ts.map +1 -1
- package/dist/Card/index.js +2 -2
- package/dist/CheckboxGroup/CheckboxGroup.js +0 -1
- package/dist/DataTable/index.d.ts.map +1 -1
- package/dist/DataTable/index.js +0 -1
- package/dist/Dialog/Dialog.d.ts +0 -1
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +0 -1
- package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +4 -0
- package/dist/FormControl/FormControl.d.ts +3 -3
- package/dist/Heading/Heading.d.ts.map +1 -1
- package/dist/Heading/Heading.js +8 -16
- package/dist/Link/Link.d.ts.map +1 -1
- package/dist/Link/Link.js +8 -16
- package/dist/NavList/NavList.d.ts +4 -4
- package/dist/NavList/NavList.d.ts.map +1 -1
- package/dist/NavList/NavList.js +7 -6
- package/dist/Overlay/{Overlay-95cfd3c7.css → Overlay-214d10dd.css} +2 -2
- package/dist/Overlay/Overlay-214d10dd.css.map +1 -0
- package/dist/Overlay/Overlay.module.css.js +1 -1
- package/dist/PageLayout/PageLayout.d.ts +0 -1
- package/dist/PageLayout/PageLayout.d.ts.map +1 -1
- package/dist/PageLayout/PageLayout.js +0 -1
- package/dist/PageLayout/usePaneWidth.d.ts.map +1 -1
- package/dist/PageLayout/usePaneWidth.js +3 -1
- package/dist/RadioGroup/RadioGroup.d.ts +3 -4
- package/dist/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/RadioGroup/RadioGroup.js +0 -1
- package/dist/SegmentedControl/SegmentedControl.d.ts +2 -3
- package/dist/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControl.js +0 -1
- package/dist/Text/{Text-ca7603b7.css → Text-d649cda5.css} +2 -2
- package/dist/Text/Text-d649cda5.css.map +1 -0
- package/dist/Text/Text.d.ts +3 -0
- package/dist/Text/Text.d.ts.map +1 -1
- package/dist/Text/Text.js +20 -14
- package/dist/Text/Text.module.css.js +1 -1
- package/dist/ThemeProvider.d.ts +6 -0
- package/dist/ThemeProvider.d.ts.map +1 -1
- package/dist/ThemeProvider.js +38 -21
- package/dist/Timeline/Timeline-0c88f21b.css +2 -0
- package/dist/Timeline/Timeline-0c88f21b.css.map +1 -0
- package/dist/Timeline/Timeline.d.ts +16 -0
- package/dist/Timeline/Timeline.d.ts.map +1 -1
- package/dist/Timeline/Timeline.js +85 -1
- package/dist/Timeline/Timeline.module.css.js +2 -2
- package/dist/Timeline/index.d.ts +1 -1
- package/dist/Timeline/index.d.ts.map +1 -1
- package/dist/Tooltip/Tooltip.js +1 -1
- package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNav.js +9 -12
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts.map +1 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +101 -58
- package/dist/experimental/index.d.ts +1 -1
- package/dist/experimental/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useAnchoredPosition.js +1 -1
- package/dist/hooks/useMergedRefs.d.ts +1 -1
- package/dist/hooks/useMergedRefs.d.ts.map +1 -1
- package/dist/hooks/useMergedRefs.js +13 -0
- package/dist/hooks/useSlots.d.ts.map +1 -1
- package/dist/hooks/useSlots.js +24 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +3 -3
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts.map +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +3 -4
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +1 -1
- package/dist/internal/components/TextInputWrapper-b2f7f9fa.css +2 -0
- package/dist/internal/components/TextInputWrapper-b2f7f9fa.css.map +1 -0
- package/dist/internal/components/TextInputWrapper.d.ts.map +1 -1
- package/dist/internal/components/TextInputWrapper.js +33 -24
- package/dist/internal/components/TextInputWrapper.module.css.js +1 -1
- package/dist/internal/hooks/useDevOnlyEffect.d.ts +16 -0
- package/dist/internal/hooks/useDevOnlyEffect.d.ts.map +1 -0
- package/dist/internal/hooks/useDevOnlyEffect.js +25 -0
- package/dist/internal/hooks/useFocus.d.ts +9 -1
- package/dist/internal/hooks/useFocus.d.ts.map +1 -1
- package/dist/utils/as-slot.d.ts +20 -0
- package/dist/utils/as-slot.d.ts.map +1 -0
- package/dist/utils/as-slot.js +30 -0
- package/dist/utils/environment.d.ts +4 -1
- package/dist/utils/environment.d.ts.map +1 -1
- package/dist/utils/environment.js +17 -2
- package/dist/utils/testing/profiler.d.ts +35 -0
- package/dist/utils/testing/profiler.d.ts.map +1 -0
- package/generated/components.json +93 -8
- package/package.json +4 -4
- package/dist/ActionList/ActionList-2a35a40c.css +0 -2
- package/dist/ActionList/ActionList-2a35a40c.css.map +0 -1
- package/dist/AnchoredOverlay/AnchoredOverlay-ec9e15fc.css +0 -2
- package/dist/AnchoredOverlay/AnchoredOverlay-ec9e15fc.css.map +0 -1
- package/dist/Overlay/Overlay-95cfd3c7.css.map +0 -1
- package/dist/Text/Text-ca7603b7.css.map +0 -1
- package/dist/Timeline/Timeline-05decc91.css +0 -2
- package/dist/Timeline/Timeline-05decc91.css.map +0 -1
- package/dist/internal/components/TextInputWrapper-889df5d3.css +0 -2
- package/dist/internal/components/TextInputWrapper-889df5d3.css.map +0 -1
package/dist/ThemeProvider.d.ts
CHANGED
|
@@ -10,6 +10,12 @@ export type ThemeProviderProps = {
|
|
|
10
10
|
dayScheme?: string;
|
|
11
11
|
nightScheme?: string;
|
|
12
12
|
preventSSRMismatch?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* When true, only provides theme context to descendants without rendering
|
|
15
|
+
* a wrapping `<div>` with `data-*` theme attributes.
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
contextOnly?: boolean;
|
|
13
19
|
};
|
|
14
20
|
export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
15
21
|
export declare function useTheme(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../src/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AAKrC,MAAM,MAAM,KAAK,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,CAAA;AACxC,KAAK,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;AACnD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,MAAM,CAAA;AAElD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../src/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AAKrC,MAAM,MAAM,KAAK,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,CAAA;AACxC,KAAK,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;AACnD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,MAAM,CAAA;AAElD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AA8CD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAwF/E,CAAA;AAED,wBAAgB,QAAQ;YArId,KAAK;kBACC,MAAM;gBACR,iBAAiB;wBACT,SAAS;0BACP,MAAM;gBAChB,MAAM;kBACJ,MAAM;kBACN,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;kBACvD,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;oBAC1C,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;EA8H7D;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,UAG1F;AAqED,eAAe,aAAa,CAAA"}
|
package/dist/ThemeProvider.js
CHANGED
|
@@ -43,7 +43,7 @@ const getServerHandoff = id => {
|
|
|
43
43
|
const emptySubscribe = () => () => {};
|
|
44
44
|
const ThemeProvider = t0 => {
|
|
45
45
|
var _ref, _props$colorMode, _ref2, _props$dayScheme, _ref3, _props$nightScheme;
|
|
46
|
-
const $ = c(
|
|
46
|
+
const $ = c(46);
|
|
47
47
|
let children;
|
|
48
48
|
let props;
|
|
49
49
|
if ($[0] !== t0) {
|
|
@@ -154,10 +154,9 @@ const ThemeProvider = t0 => {
|
|
|
154
154
|
t6 = $[28];
|
|
155
155
|
}
|
|
156
156
|
const contextValue = t6;
|
|
157
|
-
|
|
158
|
-
let t8;
|
|
157
|
+
let t7;
|
|
159
158
|
if ($[29] !== props.preventSSRMismatch || $[30] !== resolvedColorMode || $[31] !== uniqueDataId) {
|
|
160
|
-
|
|
159
|
+
t7 = props.preventSSRMismatch ? /*#__PURE__*/jsx("script", {
|
|
161
160
|
type: "application/json",
|
|
162
161
|
id: `__PRIMER_DATA_${uniqueDataId}__`,
|
|
163
162
|
dangerouslySetInnerHTML: {
|
|
@@ -169,38 +168,56 @@ const ThemeProvider = t0 => {
|
|
|
169
168
|
$[29] = props.preventSSRMismatch;
|
|
170
169
|
$[30] = resolvedColorMode;
|
|
171
170
|
$[31] = uniqueDataId;
|
|
172
|
-
$[32] =
|
|
171
|
+
$[32] = t7;
|
|
173
172
|
} else {
|
|
174
|
-
|
|
173
|
+
t7 = $[32];
|
|
175
174
|
}
|
|
175
|
+
const ssrHandoffScript = t7;
|
|
176
|
+
if (props.contextOnly) {
|
|
177
|
+
let t8;
|
|
178
|
+
if ($[33] !== children || $[34] !== contextValue || $[35] !== ssrHandoffScript) {
|
|
179
|
+
t8 = /*#__PURE__*/jsxs(ThemeContext.Provider, {
|
|
180
|
+
value: contextValue,
|
|
181
|
+
children: [children, ssrHandoffScript]
|
|
182
|
+
});
|
|
183
|
+
$[33] = children;
|
|
184
|
+
$[34] = contextValue;
|
|
185
|
+
$[35] = ssrHandoffScript;
|
|
186
|
+
$[36] = t8;
|
|
187
|
+
} else {
|
|
188
|
+
t8 = $[36];
|
|
189
|
+
}
|
|
190
|
+
return t8;
|
|
191
|
+
}
|
|
192
|
+
const t8 = colorMode === "auto" ? "auto" : colorScheme.includes("dark") ? "dark" : "light";
|
|
176
193
|
let t9;
|
|
177
|
-
if ($[
|
|
194
|
+
if ($[37] !== children || $[38] !== dayScheme || $[39] !== nightScheme || $[40] !== ssrHandoffScript || $[41] !== t8) {
|
|
178
195
|
t9 = /*#__PURE__*/jsxs("div", {
|
|
179
|
-
"data-color-mode":
|
|
196
|
+
"data-color-mode": t8,
|
|
180
197
|
"data-light-theme": dayScheme,
|
|
181
198
|
"data-dark-theme": nightScheme,
|
|
182
|
-
children: [children,
|
|
199
|
+
children: [children, ssrHandoffScript]
|
|
183
200
|
});
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
201
|
+
$[37] = children;
|
|
202
|
+
$[38] = dayScheme;
|
|
203
|
+
$[39] = nightScheme;
|
|
204
|
+
$[40] = ssrHandoffScript;
|
|
205
|
+
$[41] = t8;
|
|
206
|
+
$[42] = t9;
|
|
190
207
|
} else {
|
|
191
|
-
t9 = $[
|
|
208
|
+
t9 = $[42];
|
|
192
209
|
}
|
|
193
210
|
let t10;
|
|
194
|
-
if ($[
|
|
211
|
+
if ($[43] !== contextValue || $[44] !== t9) {
|
|
195
212
|
t10 = /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
196
213
|
value: contextValue,
|
|
197
214
|
children: t9
|
|
198
215
|
});
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
216
|
+
$[43] = contextValue;
|
|
217
|
+
$[44] = t9;
|
|
218
|
+
$[45] = t10;
|
|
202
219
|
} else {
|
|
203
|
-
t10 = $[
|
|
220
|
+
t10 = $[45];
|
|
204
221
|
}
|
|
205
222
|
return t10;
|
|
206
223
|
};
|
|
@@ -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"]}
|
|
@@ -28,8 +28,20 @@ export type TimelineBreakProps = {
|
|
|
28
28
|
/** Class name for custom styling */
|
|
29
29
|
className?: string;
|
|
30
30
|
} & React.ComponentPropsWithoutRef<'div'>;
|
|
31
|
+
export type TimelineActionsProps = {
|
|
32
|
+
/** Class name for custom styling */
|
|
33
|
+
className?: string;
|
|
34
|
+
} & React.ComponentPropsWithoutRef<'div'>;
|
|
35
|
+
export type TimelineAvatarProps = {
|
|
36
|
+
/** Class name for custom styling */
|
|
37
|
+
className?: string;
|
|
38
|
+
} & React.ComponentPropsWithoutRef<'div'>;
|
|
31
39
|
declare const _default: React.ForwardRefExoticComponent<StyledTimelineProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
32
40
|
Item: React.ForwardRefExoticComponent<StyledTimelineItemProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
Avatar: React.ForwardRefExoticComponent<{
|
|
42
|
+
/** Class name for custom styling */
|
|
43
|
+
className?: string;
|
|
44
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
45
|
Badge: {
|
|
34
46
|
({ className, variant, ...props }: TimelineBadgeProps): React.JSX.Element;
|
|
35
47
|
displayName: string;
|
|
@@ -42,6 +54,10 @@ declare const _default: React.ForwardRefExoticComponent<StyledTimelineProps & Om
|
|
|
42
54
|
/** Class name for custom styling */
|
|
43
55
|
className?: string;
|
|
44
56
|
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
Actions: React.ForwardRefExoticComponent<{
|
|
58
|
+
/** Class name for custom styling */
|
|
59
|
+
className?: string;
|
|
60
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
45
61
|
};
|
|
46
62
|
export default _default;
|
|
47
63
|
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -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;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,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAsBvF,KAAK,uBAAuB,GAAG;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAExE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAEhG,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAiB/F,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,SAAS,GACT,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,QAAQ,GACR,UAAU,CAAA;AAEd,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;;;;
|
|
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,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAsBvF,KAAK,uBAAuB,GAAG;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAExE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAEhG,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAiB/F,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,SAAS,GACT,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,QAAQ,GACR,UAAU,CAAA;AAEd,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"}
|
|
@@ -248,11 +248,95 @@ const TimelineBreak = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
248
248
|
return t2;
|
|
249
249
|
});
|
|
250
250
|
TimelineBreak.displayName = 'TimelineBreak';
|
|
251
|
+
const TimelineActions = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
252
|
+
const $ = c(9);
|
|
253
|
+
let className;
|
|
254
|
+
let props;
|
|
255
|
+
if ($[0] !== t0) {
|
|
256
|
+
({
|
|
257
|
+
className,
|
|
258
|
+
...props
|
|
259
|
+
} = t0);
|
|
260
|
+
$[0] = t0;
|
|
261
|
+
$[1] = className;
|
|
262
|
+
$[2] = props;
|
|
263
|
+
} else {
|
|
264
|
+
className = $[1];
|
|
265
|
+
props = $[2];
|
|
266
|
+
}
|
|
267
|
+
let t1;
|
|
268
|
+
if ($[3] !== className) {
|
|
269
|
+
t1 = clsx(className, classes.TimelineItemActions);
|
|
270
|
+
$[3] = className;
|
|
271
|
+
$[4] = t1;
|
|
272
|
+
} else {
|
|
273
|
+
t1 = $[4];
|
|
274
|
+
}
|
|
275
|
+
let t2;
|
|
276
|
+
if ($[5] !== forwardRef || $[6] !== props || $[7] !== t1) {
|
|
277
|
+
t2 = /*#__PURE__*/jsx("div", {
|
|
278
|
+
...props,
|
|
279
|
+
className: t1,
|
|
280
|
+
ref: forwardRef
|
|
281
|
+
});
|
|
282
|
+
$[5] = forwardRef;
|
|
283
|
+
$[6] = props;
|
|
284
|
+
$[7] = t1;
|
|
285
|
+
$[8] = t2;
|
|
286
|
+
} else {
|
|
287
|
+
t2 = $[8];
|
|
288
|
+
}
|
|
289
|
+
return t2;
|
|
290
|
+
});
|
|
291
|
+
TimelineActions.displayName = 'Timeline.Actions';
|
|
292
|
+
const TimelineAvatar = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
293
|
+
const $ = c(9);
|
|
294
|
+
let className;
|
|
295
|
+
let props;
|
|
296
|
+
if ($[0] !== t0) {
|
|
297
|
+
({
|
|
298
|
+
className,
|
|
299
|
+
...props
|
|
300
|
+
} = t0);
|
|
301
|
+
$[0] = t0;
|
|
302
|
+
$[1] = className;
|
|
303
|
+
$[2] = props;
|
|
304
|
+
} else {
|
|
305
|
+
className = $[1];
|
|
306
|
+
props = $[2];
|
|
307
|
+
}
|
|
308
|
+
let t1;
|
|
309
|
+
if ($[3] !== className) {
|
|
310
|
+
t1 = clsx(className, classes.TimelineItemAvatar);
|
|
311
|
+
$[3] = className;
|
|
312
|
+
$[4] = t1;
|
|
313
|
+
} else {
|
|
314
|
+
t1 = $[4];
|
|
315
|
+
}
|
|
316
|
+
let t2;
|
|
317
|
+
if ($[5] !== forwardRef || $[6] !== props || $[7] !== t1) {
|
|
318
|
+
t2 = /*#__PURE__*/jsx("div", {
|
|
319
|
+
...props,
|
|
320
|
+
className: t1,
|
|
321
|
+
ref: forwardRef
|
|
322
|
+
});
|
|
323
|
+
$[5] = forwardRef;
|
|
324
|
+
$[6] = props;
|
|
325
|
+
$[7] = t1;
|
|
326
|
+
$[8] = t2;
|
|
327
|
+
} else {
|
|
328
|
+
t2 = $[8];
|
|
329
|
+
}
|
|
330
|
+
return t2;
|
|
331
|
+
});
|
|
332
|
+
TimelineAvatar.displayName = 'Timeline.Avatar';
|
|
251
333
|
var Timeline_default = Object.assign(Timeline, {
|
|
252
334
|
Item: TimelineItem,
|
|
335
|
+
Avatar: TimelineAvatar,
|
|
253
336
|
Badge: TimelineBadge,
|
|
254
337
|
Body: TimelineBody,
|
|
255
|
-
Break: TimelineBreak
|
|
338
|
+
Break: TimelineBreak,
|
|
339
|
+
Actions: TimelineActions
|
|
256
340
|
});
|
|
257
341
|
|
|
258
342
|
export { Timeline_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './Timeline-
|
|
1
|
+
import './Timeline-0c88f21b.css';
|
|
2
2
|
|
|
3
|
-
var classes = {"Timeline":"prc-Timeline-Timeline-awSoC","TimelineItem":"prc-Timeline-TimelineItem-QwDVH","TimelineBadge":"prc-Timeline-TimelineBadge-u0qSm","TimelineBadgeWrapper":"prc-Timeline-TimelineBadgeWrapper-SZw4k","TimelineBody":"prc-Timeline-TimelineBody-tjOtb","TimelineBreak":"prc-Timeline-TimelineBreak-X8eti"};
|
|
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
|
|
|
5
5
|
export { classes as default };
|
package/dist/Timeline/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default } from './Timeline';
|
|
2
|
-
export type { TimelineProps, TimelineItemsProps, TimelineItemProps, TimelineBadgeVariant, TimelineBadgeProps, TimelineBodyProps, TimelineBreakProps, } from './Timeline';
|
|
2
|
+
export type { TimelineProps, TimelineItemsProps, TimelineItemProps, TimelineAvatarProps, TimelineBadgeVariant, TimelineBadgeProps, TimelineBodyProps, TimelineBreakProps, TimelineActionsProps, } from './Timeline';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Timeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAClC,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Timeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAClC,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,YAAY,CAAA"}
|
package/dist/Tooltip/Tooltip.js
CHANGED
|
@@ -54,6 +54,6 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip({
|
|
|
54
54
|
});
|
|
55
55
|
Tooltip.alignments = ['left', 'right'];
|
|
56
56
|
Tooltip.directions = ['n', 'ne', 'e', 'se', 's', 'sw', 'w', 'nw'];
|
|
57
|
-
Tooltip.__SLOT__ = Symbol('
|
|
57
|
+
Tooltip.__SLOT__ = Symbol('Tooltip');
|
|
58
58
|
|
|
59
59
|
export { TooltipContext, Tooltip as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnderlineNav.d.ts","sourceRoot":"","sources":["../../src/UnderlineNav/UnderlineNav.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"UnderlineNav.d.ts","sourceRoot":"","sources":["../../src/UnderlineNav/UnderlineNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkD,MAAM,OAAO,CAAA;AAoBtE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAA;IACjD,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,cAAc,KAAK,CAAA;AAwEhC,eAAO,MAAM,gBAAgB,GAAI,UAAU,KAAK,CAAC,SAAS,KAEgC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,EAChH,CAAA;AAgCD,eAAO,MAAM,YAAY,mFA0SxB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React, { forwardRef, useRef, useState,
|
|
1
|
+
import React, { forwardRef, useRef, useState, useCallback } from 'react';
|
|
2
|
+
import { useDevOnlyEffect } from '../internal/hooks/useDevOnlyEffect.js';
|
|
2
3
|
import { UnderlineNavContext } from './UnderlineNavContext.js';
|
|
3
4
|
import { useResizeObserver } from '../hooks/useResizeObserver.js';
|
|
4
5
|
import VisuallyHidden from '../_VisuallyHidden.js';
|
|
@@ -157,18 +158,14 @@ const UnderlineNav = /*#__PURE__*/forwardRef(({
|
|
|
157
158
|
});
|
|
158
159
|
// This is the case where the viewport is too narrow to show any list item with the more menu. In this case, we only show the dropdown
|
|
159
160
|
const onlyMenuVisible = responsiveProps.items.length === 0;
|
|
160
|
-
|
|
161
|
-
//
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
// Address illegal state where there are multiple items that have `aria-current='page'` attribute
|
|
165
|
-
const activeElements = validChildren.filter(child => {
|
|
166
|
-
return child.props['aria-current'] !== undefined;
|
|
167
|
-
});
|
|
168
|
-
!(activeElements.length <= 1) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Only one current element is allowed') : invariant(false) : void 0;
|
|
169
|
-
!ariaLabel ? process.env.NODE_ENV !== "production" ? invariant(false, 'Use the `aria-label` prop to provide an accessible label for assistive technology') : invariant(false) : void 0;
|
|
161
|
+
useDevOnlyEffect(() => {
|
|
162
|
+
// Address illegal state where there are multiple items that have `aria-current='page'` attribute
|
|
163
|
+
const activeElements = validChildren.filter(child => {
|
|
164
|
+
return child.props['aria-current'] !== undefined;
|
|
170
165
|
});
|
|
171
|
-
|
|
166
|
+
!(activeElements.length <= 1) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Only one current element is allowed') : invariant(false) : void 0;
|
|
167
|
+
!ariaLabel ? process.env.NODE_ENV !== "production" ? invariant(false, 'Use the `aria-label` prop to provide an accessible label for assistive technology') : invariant(false) : void 0;
|
|
168
|
+
}, [validChildren, ariaLabel]);
|
|
172
169
|
function getItemsWidth(itemText) {
|
|
173
170
|
var _noIconChildWidthArra, _noIconChildWidthArra2;
|
|
174
171
|
return (_noIconChildWidthArra = (_noIconChildWidthArra2 = noIconChildWidthArray.find(item => item.text === itemText)) === null || _noIconChildWidthArra2 === void 0 ? void 0 : _noIconChildWidthArra2.width) !== null && _noIconChildWidthArra !== void 0 ? _noIconChildWidthArra : 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnderlinePanels.d.ts","sourceRoot":"","sources":["../../../src/experimental/UnderlinePanels/UnderlinePanels.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"UnderlinePanels.d.ts","sourceRoot":"","sources":["../../../src/experimental/UnderlinePanels/UnderlinePanels.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAQZ,KAAK,EAAE,EACP,KAAK,iBAAiB,EAGvB,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAerD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAA;AAEvD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAA;IACjD;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAA;IAC3D;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,iBAAiB,CAAC;IACvC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IACxG;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAA;CACrB,CAAC,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;;;;;AA8M7D,wBAA2D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
|
-
import React, { useState, useRef,
|
|
2
|
+
import React, { useState, useRef, useMemo, Children, isValidElement, cloneElement, createContext, useContext } from 'react';
|
|
3
3
|
import { TabContainerElement } from '@github/tab-container-element';
|
|
4
4
|
import { createComponent } from '../../utils/create-component.js';
|
|
5
5
|
import { UnderlineWrapper, UnderlineItemList, UnderlineItem } from '../../internal/components/UnderlineTabbedInterface.js';
|
|
@@ -9,10 +9,21 @@ import useIsomorphicLayoutEffect from '../../utils/useIsomorphicLayoutEffect.js'
|
|
|
9
9
|
import classes from './UnderlinePanels.module.css.js';
|
|
10
10
|
import { clsx } from 'clsx';
|
|
11
11
|
import { isSlot } from '../../utils/is-slot.js';
|
|
12
|
-
import {
|
|
12
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
13
|
import { useId } from '../../hooks/useId.js';
|
|
14
14
|
|
|
15
15
|
const TabContainerComponent = createComponent(TabContainerElement, 'tab-container');
|
|
16
|
+
|
|
17
|
+
// Carries flags that affect every Tab's rendering but that don't belong on the
|
|
18
|
+
// consumer-facing Tab API. Passing them via context (instead of cloneElement)
|
|
19
|
+
// keeps each Tab element's props referentially stable across UnderlinePanels
|
|
20
|
+
// re-renders, so React.memo(Tab) can skip work when an unrelated piece of
|
|
21
|
+
// state changes.
|
|
22
|
+
|
|
23
|
+
const UnderlinePanelsContext = /*#__PURE__*/createContext({
|
|
24
|
+
iconsVisible: true,
|
|
25
|
+
loadingCounters: undefined
|
|
26
|
+
});
|
|
16
27
|
const UnderlinePanels = ({
|
|
17
28
|
'aria-label': ariaLabel,
|
|
18
29
|
'aria-labelledby': ariaLabelledBy,
|
|
@@ -27,21 +38,22 @@ const UnderlinePanels = ({
|
|
|
27
38
|
// We need to always call useId() because React Hooks must be
|
|
28
39
|
// called in the exact same order in every component render
|
|
29
40
|
const parentId = useId(props.id);
|
|
30
|
-
const [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
//
|
|
36
|
-
//
|
|
41
|
+
const [tabs_0, tabPanels_0, tabsHaveIcons_0] = useMemo(() => {
|
|
42
|
+
// Walk children, clone each Tab with a generated id, and each Panel with a
|
|
43
|
+
// matching aria-labelledby. Derive in render so we never ship a
|
|
44
|
+
// "before-the-effect-ran" empty-tablist frame and so that re-renders of
|
|
45
|
+
// UnderlinePanels don't churn through an extra commit cycle.
|
|
46
|
+
//
|
|
47
|
+
// iconsVisible / loadingCounters are NOT baked into the cloned Tab
|
|
48
|
+
// elements — they flow through UnderlinePanelsContext, so this memo's deps
|
|
49
|
+
// can stay tight ([children, parentId]) and Tab elements stay
|
|
50
|
+
// referentially stable across resize-driven iconsVisible toggles.
|
|
37
51
|
let tabIndex = 0;
|
|
38
52
|
let panelIndex = 0;
|
|
39
53
|
const childrenWithProps = Children.map(children, child => {
|
|
40
54
|
if (/*#__PURE__*/isValidElement(child) && (child.type === Tab || isSlot(child, Tab))) {
|
|
41
55
|
return /*#__PURE__*/cloneElement(child, {
|
|
42
|
-
id: `${parentId}-tab-${tabIndex++}
|
|
43
|
-
loadingCounters,
|
|
44
|
-
iconsVisible
|
|
56
|
+
id: `${parentId}-tab-${tabIndex++}`
|
|
45
57
|
});
|
|
46
58
|
}
|
|
47
59
|
if (/*#__PURE__*/isValidElement(child) && (child.type === Panel || isSlot(child, Panel))) {
|
|
@@ -52,64 +64,81 @@ const UnderlinePanels = ({
|
|
|
52
64
|
}
|
|
53
65
|
return child;
|
|
54
66
|
});
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}, [children, parentId
|
|
64
|
-
const
|
|
67
|
+
const tabs = [];
|
|
68
|
+
const tabPanels = [];
|
|
69
|
+
for (const child_0 of Children.toArray(childrenWithProps)) {
|
|
70
|
+
if (! /*#__PURE__*/isValidElement(child_0)) continue;
|
|
71
|
+
if (child_0.type === Tab || isSlot(child_0, Tab)) tabs.push(child_0);else if (child_0.type === Panel || isSlot(child_0, Panel)) tabPanels.push(child_0);
|
|
72
|
+
}
|
|
73
|
+
const tabsHaveIcons = tabs.some(tab => /*#__PURE__*/React.isValidElement(tab) && tab.props.icon);
|
|
74
|
+
return [tabs, tabPanels, tabsHaveIcons];
|
|
75
|
+
}, [children, parentId]);
|
|
76
|
+
const contextValue = useMemo(() => ({
|
|
77
|
+
iconsVisible,
|
|
78
|
+
loadingCounters
|
|
79
|
+
}), [iconsVisible, loadingCounters]);
|
|
65
80
|
|
|
66
|
-
//
|
|
67
|
-
|
|
81
|
+
// Mirror iconsVisible into a ref so the list observer below can read it
|
|
82
|
+
// without being re-created on every toggle (re-creating the observer
|
|
83
|
+
// would re-trigger its initial callback and churn extra work).
|
|
84
|
+
const iconsVisibleRef = useRef(iconsVisible);
|
|
68
85
|
useIsomorphicLayoutEffect(() => {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
86
|
+
iconsVisibleRef.current = iconsVisible;
|
|
87
|
+
}, [iconsVisible]);
|
|
88
|
+
|
|
89
|
+
// The list's natural width (icons + labels), kept in sync via a
|
|
90
|
+
// ResizeObserver on the list — never read in render, so updates don't
|
|
91
|
+
// cause commits. Only refreshed while icons are visible: when icons are
|
|
92
|
+
// hidden the list is at its compressed width, which is not the value we
|
|
93
|
+
// want to compare against. The ResizeObserver fires synchronously on
|
|
94
|
+
// observe, which seeds the ref on mount for free.
|
|
95
|
+
const listWidthRef = useRef(0);
|
|
96
|
+
useResizeObserver(entries => {
|
|
97
|
+
if (!tabsHaveIcons_0) return;
|
|
98
|
+
if (!iconsVisibleRef.current) return;
|
|
99
|
+
listWidthRef.current = entries[0].contentRect.width;
|
|
100
|
+
}, listRef, []);
|
|
75
101
|
|
|
76
102
|
// when the wrapper resizes, check if the icons should be visible
|
|
77
103
|
// by comparing the wrapper width to the list width
|
|
78
104
|
useResizeObserver(resizeObserverEntries => {
|
|
79
|
-
if (!
|
|
105
|
+
if (!tabsHaveIcons_0) {
|
|
80
106
|
return;
|
|
81
107
|
}
|
|
82
108
|
const wrapperWidth = resizeObserverEntries[0].contentRect.width;
|
|
83
|
-
setIconsVisible(wrapperWidth >
|
|
109
|
+
setIconsVisible(wrapperWidth > listWidthRef.current);
|
|
84
110
|
}, wrapperRef, []);
|
|
85
111
|
if (process.env.NODE_ENV !== "production") {
|
|
86
|
-
const selectedTabs =
|
|
112
|
+
const selectedTabs = tabs_0.filter(tab_0 => {
|
|
87
113
|
const ariaSelected = /*#__PURE__*/React.isValidElement(tab_0) && tab_0.props['aria-selected'];
|
|
88
114
|
return ariaSelected === true || ariaSelected === 'true';
|
|
89
115
|
});
|
|
90
116
|
!(selectedTabs.length <= 1) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Only one tab can be selected at a time.') : invariant(false) : void 0;
|
|
91
|
-
!(
|
|
117
|
+
!(tabs_0.length === tabPanels_0.length) ? process.env.NODE_ENV !== "production" ? invariant(false, `The number of tabs and panels must be equal. Counted ${tabs_0.length} tabs and ${tabPanels_0.length} panels.`) : invariant(false) : void 0;
|
|
92
118
|
}
|
|
93
|
-
return /*#__PURE__*/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
119
|
+
return /*#__PURE__*/jsx(UnderlinePanelsContext.Provider, {
|
|
120
|
+
value: contextValue,
|
|
121
|
+
children: /*#__PURE__*/jsxs(TabContainerComponent, {
|
|
122
|
+
children: [/*#__PURE__*/jsx(UnderlineWrapper, {
|
|
123
|
+
ref: wrapperRef,
|
|
124
|
+
slot: "tablist-wrapper",
|
|
125
|
+
"data-icons-visible": iconsVisible,
|
|
126
|
+
className: clsx(className, classes.StyledUnderlineWrapper),
|
|
127
|
+
...props,
|
|
128
|
+
children: /*#__PURE__*/jsx(UnderlineItemList, {
|
|
129
|
+
ref: listRef,
|
|
130
|
+
"aria-label": ariaLabel,
|
|
131
|
+
"aria-labelledby": ariaLabelledBy,
|
|
132
|
+
role: "tablist",
|
|
133
|
+
children: tabs_0
|
|
134
|
+
})
|
|
135
|
+
}), tabPanels_0]
|
|
136
|
+
})
|
|
108
137
|
});
|
|
109
138
|
};
|
|
110
139
|
UnderlinePanels.displayName = "UnderlinePanels";
|
|
111
|
-
const
|
|
112
|
-
const $ = c(
|
|
140
|
+
const TabImpl = t0 => {
|
|
141
|
+
const $ = c(16);
|
|
113
142
|
let ariaSelected;
|
|
114
143
|
let onSelect;
|
|
115
144
|
let props;
|
|
@@ -128,6 +157,10 @@ const Tab = t0 => {
|
|
|
128
157
|
onSelect = $[2];
|
|
129
158
|
props = $[3];
|
|
130
159
|
}
|
|
160
|
+
const {
|
|
161
|
+
iconsVisible,
|
|
162
|
+
loadingCounters
|
|
163
|
+
} = useContext(UnderlinePanelsContext);
|
|
131
164
|
let t1;
|
|
132
165
|
if ($[4] !== onSelect) {
|
|
133
166
|
t1 = event => {
|
|
@@ -156,7 +189,7 @@ const Tab = t0 => {
|
|
|
156
189
|
const keyDownHandler = t2;
|
|
157
190
|
const t3 = ariaSelected ? 0 : -1;
|
|
158
191
|
let t4;
|
|
159
|
-
if ($[8] !== ariaSelected || $[9] !== clickHandler || $[10] !==
|
|
192
|
+
if ($[8] !== ariaSelected || $[9] !== clickHandler || $[10] !== iconsVisible || $[11] !== keyDownHandler || $[12] !== loadingCounters || $[13] !== props || $[14] !== t3) {
|
|
160
193
|
t4 = /*#__PURE__*/jsx(UnderlineItem, {
|
|
161
194
|
as: "button",
|
|
162
195
|
role: "tab",
|
|
@@ -165,19 +198,30 @@ const Tab = t0 => {
|
|
|
165
198
|
type: "button",
|
|
166
199
|
onClick: clickHandler,
|
|
167
200
|
onKeyDown: keyDownHandler,
|
|
201
|
+
iconsVisible: iconsVisible,
|
|
202
|
+
loadingCounters: loadingCounters,
|
|
168
203
|
...props
|
|
169
204
|
});
|
|
170
205
|
$[8] = ariaSelected;
|
|
171
206
|
$[9] = clickHandler;
|
|
172
|
-
$[10] =
|
|
173
|
-
$[11] =
|
|
174
|
-
$[12] =
|
|
175
|
-
$[13] =
|
|
207
|
+
$[10] = iconsVisible;
|
|
208
|
+
$[11] = keyDownHandler;
|
|
209
|
+
$[12] = loadingCounters;
|
|
210
|
+
$[13] = props;
|
|
211
|
+
$[14] = t3;
|
|
212
|
+
$[15] = t4;
|
|
176
213
|
} else {
|
|
177
|
-
t4 = $[
|
|
214
|
+
t4 = $[15];
|
|
178
215
|
}
|
|
179
216
|
return t4;
|
|
180
217
|
};
|
|
218
|
+
|
|
219
|
+
// Memoized so that UnderlinePanels re-rendering (e.g. when iconsVisible flips)
|
|
220
|
+
// only re-renders Tabs whose own props actually changed. iconsVisible and
|
|
221
|
+
// loadingCounters reach Tab via UnderlinePanelsContext, so Tabs still react
|
|
222
|
+
// to those changes through context propagation.
|
|
223
|
+
TabImpl.displayName = 'UnderlinePanels.Tab';
|
|
224
|
+
const Tab = /*#__PURE__*/React.memo(TabImpl);
|
|
181
225
|
Tab.displayName = 'UnderlinePanels.Tab';
|
|
182
226
|
const Panel = t0 => {
|
|
183
227
|
const $ = c(6);
|
|
@@ -215,7 +259,6 @@ var UnderlinePanels_default = Object.assign(UnderlinePanels, {
|
|
|
215
259
|
Panel,
|
|
216
260
|
Tab
|
|
217
261
|
});
|
|
218
|
-
UnderlinePanels.__SLOT__ = Symbol('UnderlinePanels');
|
|
219
262
|
Tab.__SLOT__ = Symbol('UnderlinePanels.Tab');
|
|
220
263
|
Panel.__SLOT__ = Symbol('UnderlinePanels.Panel');
|
|
221
264
|
|
|
@@ -10,7 +10,7 @@ export type { BlankslateProps } from '../Blankslate';
|
|
|
10
10
|
export { ButtonBase } from '../Button';
|
|
11
11
|
export type { ButtonBaseProps } from '../Button';
|
|
12
12
|
export { Card } from '../Card';
|
|
13
|
-
export type { CardProps, CardIconProps, CardImageProps, CardHeadingProps, CardDescriptionProps,
|
|
13
|
+
export type { CardProps, CardIconProps, CardImageProps, CardHeadingProps, CardDescriptionProps, CardActionProps, CardMetadataProps, } from '../Card';
|
|
14
14
|
export { DataTable, Table, createColumnHelper } from '../DataTable';
|
|
15
15
|
export type { DataTableProps, TableProps, TableHeadProps, TableBodyProps, TableRowProps, TableHeaderProps, TableCellProps, TableContainerProps, TableTitleProps, TableSubtitleProps, TableActionsProps, Column, CellAlignment, ColumnWidth, UniqueRow, ObjectPaths, } from '../DataTable';
|
|
16
16
|
export * from '../Dialog';
|