@primer/react 0.0.0-20260722195949 → 0.0.0-20260722200148
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 +9 -9
- package/dist/ActionBar/ActionBar.js +0 -4
- package/dist/ActionBar/index.d.ts +1 -4
- package/dist/ActionList/Description.js +0 -1
- package/dist/ActionList/Divider.js +0 -1
- package/dist/ActionList/TrailingAction.js +0 -1
- package/dist/Banner/Banner.js +2 -2
- package/dist/Blankslate/Blankslate.d.ts +0 -15
- package/dist/Blankslate/Blankslate.js +0 -5
- package/dist/DataTable/ErrorDialog.d.ts +0 -3
- package/dist/DataTable/ErrorDialog.js +0 -1
- package/dist/DataTable/Pagination.d.ts +0 -3
- package/dist/DataTable/Pagination.js +0 -1
- package/dist/DataTable/Table.d.ts +0 -33
- package/dist/DataTable/Table.js +0 -13
- package/dist/Details/Details.js +1 -1
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +0 -3
- package/dist/FilteredActionList/FilteredActionListInput.js +0 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +0 -3
- package/dist/FilteredActionList/FilteredActionListLoaders.js +0 -1
- package/dist/FormControl/FormControlCaption.d.ts +0 -1
- package/dist/FormControl/FormControlCaption.js +0 -1
- package/dist/FormControl/FormControlLabel.js +0 -1
- package/dist/FormControl/FormControlLeadingVisual.js +0 -1
- package/dist/PageHeader/PageHeader.js +2 -2
- package/dist/PageLayout/PageLayout.js +2 -2
- package/dist/SegmentedControl/SegmentedControlButton.js +0 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.js +0 -1
- package/dist/SelectPanel/SelectPanel.d.ts +0 -3
- package/dist/SelectPanel/SelectPanel.js +0 -1
- package/dist/SelectPanel/SelectPanelMessage.js +0 -1
- package/dist/Stack/Stack.js +0 -1
- package/dist/ThemeProvider.d.ts +1 -4
- package/dist/ThemeProvider.js +43 -76
- package/dist/Timeline/Timeline.js +3 -3
- package/dist/TooltipV2/Tooltip.js +0 -1
- package/dist/TopicTag/TopicTagGroup.d.ts +0 -3
- package/dist/TopicTag/TopicTagGroup.js +0 -1
- package/dist/index.d.ts +2 -2
- package/dist/theme.d.ts +1 -1142
- package/dist/theme.js +1 -3
- package/dist/useTheme.d.ts +1 -3
- package/generated/hooks.json +0 -15
- package/package.json +1 -4
- package/dist/legacy-theme/ts/color-schemes.js +0 -4252
- package/dist/utils/types/KeyPaths.d.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260722200148
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#8212](https://github.com/primer/react/pull/8212) [`6a4c131`](https://github.com/primer/react/commit/6a4c1319a70a5f3b5abc7b81b044bd26d042aa75) Thanks [@mattcosta7](https://github.com/mattcosta7)! - ThemeProvider: Remove `colorSchemes` from the default `theme` and stop merging
|
|
8
|
+
color scheme values into the theme context. Color schemes are applied via CSS
|
|
9
|
+
variables instead, and passing an unknown color scheme no longer logs an error.
|
|
10
|
+
`useTheme()` no longer returns `theme` or `resolvedColorScheme`. The
|
|
11
|
+
`ThemeColorPaths` and `ThemeShadowPaths` types are also no longer exported.
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
6
14
|
|
|
@@ -8,14 +16,6 @@
|
|
|
8
16
|
|
|
9
17
|
### Patch Changes
|
|
10
18
|
|
|
11
|
-
- [#7871](https://github.com/primer/react/pull/7871) [`43545dd`](https://github.com/primer/react/commit/43545ddd2188ccb62338467101543d4077767987) Thanks [@adierkens](https://github.com/adierkens)! - Normalise component `displayName` strings to the canonical `Parent.Slot` convention, and add `displayName` to compound sub-components and `forwardRef`-wrapped components that were missing it.
|
|
12
|
-
|
|
13
|
-
- Renames sub-component `displayName` strings that were using camelCase without a separator to the canonical `Parent.Slot` convention: `BannerPrimaryAction` → `Banner.PrimaryAction`, `BannerSecondaryAction` → `Banner.SecondaryAction`, `Summary` → `Details.Summary`, `TimelineItem|Body|Break` → `Timeline.Item|Body|Break`, `ParentLink|TitleArea` → `PageHeader.ParentLink|TitleArea`, `HorizontalDivider|VerticalDivider` → `PageLayout.HorizontalDivider|VerticalDivider`.
|
|
14
|
-
- Adds `displayName` to compound sub-components where the runtime function name doesn't match the canonical name users see (e.g. `Visual` → `Blankslate.Visual`, `SegmentedControlButton` → `SegmentedControl.Button`, `Panel` → `SelectPanel`, `FormControlCaption` → `FormControl.Caption`, etc.) and to `forwardRef`-wrapped components with anonymous inner arrow functions where DevTools would otherwise show `ForwardRef`.
|
|
15
|
-
- Adds a contributor skill at `.github/skills/display-name/SKILL.md` documenting when `displayName` is required vs redundant, the canonical naming convention, and how it interacts with the slot system.
|
|
16
|
-
|
|
17
|
-
No runtime behaviour changes.
|
|
18
|
-
|
|
19
19
|
- Fake entry to force publishing
|
|
20
20
|
|
|
21
21
|
- [#8211](https://github.com/primer/react/pull/8211) [`a3e669f`](https://github.com/primer/react/commit/a3e669fa551a7d07841ce20224199d172905860f) Thanks [@francinelucca](https://github.com/francinelucca)! - Link: Remove unnecessary `data-hover-color` attribute from rendered DOM element
|
|
@@ -238,9 +238,5 @@ const VerticalDivider = () => {
|
|
|
238
238
|
});
|
|
239
239
|
};
|
|
240
240
|
VerticalDivider.displayName = "VerticalDivider";
|
|
241
|
-
ActionBarIconButton.displayName = "ActionBar.IconButton";
|
|
242
|
-
ActionBarGroup.displayName = "ActionBar.Group";
|
|
243
|
-
ActionBarMenu.displayName = "ActionBar.Menu";
|
|
244
|
-
VerticalDivider.displayName = "ActionBar.VerticalDivider";
|
|
245
241
|
//#endregion
|
|
246
242
|
export { ActionBar, ActionBarButton, ActionBarGroup, ActionBarIconButton, ActionBarMenu, VerticalDivider };
|
|
@@ -24,10 +24,7 @@ declare const ActionBar: import("react").FC<import("react").PropsWithChildren<Ac
|
|
|
24
24
|
inactive?: boolean;
|
|
25
25
|
labelWrap?: boolean;
|
|
26
26
|
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<unknown>>;
|
|
27
|
-
Divider:
|
|
28
|
-
(): import("react").JSX.Element;
|
|
29
|
-
displayName: string;
|
|
30
|
-
};
|
|
27
|
+
Divider: () => import("react").JSX.Element;
|
|
31
28
|
Group: import("react").ForwardRefExoticComponent<{
|
|
32
29
|
children?: import("react").ReactNode | undefined;
|
|
33
30
|
} & import("react").RefAttributes<unknown>>;
|
|
@@ -100,7 +100,6 @@ const TrailingAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
100
100
|
} else t6 = $[24];
|
|
101
101
|
return t6;
|
|
102
102
|
});
|
|
103
|
-
TrailingAction.displayName = "ActionList.TrailingAction";
|
|
104
103
|
TrailingAction.__SLOT__ = Symbol("ActionList.TrailingAction");
|
|
105
104
|
//#endregion
|
|
106
105
|
export { TrailingAction };
|
package/dist/Banner/Banner.js
CHANGED
|
@@ -418,7 +418,7 @@ const BannerPrimaryAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
418
418
|
} else t2 = $[10];
|
|
419
419
|
return t2;
|
|
420
420
|
});
|
|
421
|
-
BannerPrimaryAction.displayName = "
|
|
421
|
+
BannerPrimaryAction.displayName = "BannerPrimaryAction";
|
|
422
422
|
const BannerSecondaryAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
423
423
|
const $ = c(11);
|
|
424
424
|
let children;
|
|
@@ -459,6 +459,6 @@ const BannerSecondaryAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
459
459
|
} else t2 = $[10];
|
|
460
460
|
return t2;
|
|
461
461
|
});
|
|
462
|
-
BannerSecondaryAction.displayName = "
|
|
462
|
+
BannerSecondaryAction.displayName = "BannerSecondaryAction";
|
|
463
463
|
//#endregion
|
|
464
464
|
export { Banner, BannerActions, BannerDescription, BannerPrimaryAction, BannerSecondaryAction, BannerTitle };
|
|
@@ -38,9 +38,6 @@ declare function Visual({
|
|
|
38
38
|
className,
|
|
39
39
|
...rest
|
|
40
40
|
}: BlankslateVisualProps): React.JSX.Element;
|
|
41
|
-
declare namespace Visual {
|
|
42
|
-
var displayName: string;
|
|
43
|
-
}
|
|
44
41
|
type BlankslateHeadingProps = React.HTMLAttributes<HTMLElement> & {
|
|
45
42
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
46
43
|
};
|
|
@@ -50,18 +47,12 @@ declare function Heading({
|
|
|
50
47
|
className,
|
|
51
48
|
...rest
|
|
52
49
|
}: BlankslateHeadingProps): React.JSX.Element;
|
|
53
|
-
declare namespace Heading {
|
|
54
|
-
var displayName: string;
|
|
55
|
-
}
|
|
56
50
|
type BlankslateDescriptionProps = React.HTMLAttributes<HTMLElement>;
|
|
57
51
|
declare function Description({
|
|
58
52
|
children,
|
|
59
53
|
className,
|
|
60
54
|
...rest
|
|
61
55
|
}: BlankslateDescriptionProps): React.JSX.Element;
|
|
62
|
-
declare namespace Description {
|
|
63
|
-
var displayName: string;
|
|
64
|
-
}
|
|
65
56
|
type BlankslatePrimaryActionProps = (React.PropsWithChildren<{
|
|
66
57
|
href?: never;
|
|
67
58
|
}> & React.ComponentPropsWithoutRef<'button'>) | React.PropsWithChildren<{
|
|
@@ -72,9 +63,6 @@ declare function PrimaryAction({
|
|
|
72
63
|
href,
|
|
73
64
|
...props
|
|
74
65
|
}: BlankslatePrimaryActionProps): React.JSX.Element;
|
|
75
|
-
declare namespace PrimaryAction {
|
|
76
|
-
var displayName: string;
|
|
77
|
-
}
|
|
78
66
|
type BlankslateSecondaryActionProps = React.PropsWithChildren<{
|
|
79
67
|
href: string;
|
|
80
68
|
}>;
|
|
@@ -82,8 +70,5 @@ declare function SecondaryAction({
|
|
|
82
70
|
children,
|
|
83
71
|
href
|
|
84
72
|
}: BlankslateSecondaryActionProps): React.JSX.Element;
|
|
85
|
-
declare namespace SecondaryAction {
|
|
86
|
-
var displayName: string;
|
|
87
|
-
}
|
|
88
73
|
//#endregion
|
|
89
74
|
export { Blankslate, type BlankslateDescriptionProps, type BlankslateHeadingProps, type BlankslatePrimaryActionProps, type BlankslateProps, type BlankslateSecondaryActionProps, type BlankslateVisualProps, Description, Heading, PrimaryAction, SecondaryAction, Visual };
|
|
@@ -281,10 +281,5 @@ function SecondaryAction(t0) {
|
|
|
281
281
|
} else t2 = $[3];
|
|
282
282
|
return t2;
|
|
283
283
|
}
|
|
284
|
-
Visual.displayName = "Blankslate.Visual";
|
|
285
|
-
Heading.displayName = "Blankslate.Heading";
|
|
286
|
-
Description.displayName = "Blankslate.Description";
|
|
287
|
-
PrimaryAction.displayName = "Blankslate.PrimaryAction";
|
|
288
|
-
SecondaryAction.displayName = "Blankslate.SecondaryAction";
|
|
289
284
|
//#endregion
|
|
290
285
|
export { Blankslate, Description, Heading, PrimaryAction, SecondaryAction, Visual };
|
|
@@ -46,16 +46,10 @@ type TableHeadProps = React.ComponentPropsWithoutRef<'thead'>;
|
|
|
46
46
|
declare function TableHead({
|
|
47
47
|
children
|
|
48
48
|
}: TableHeadProps): JSX.Element;
|
|
49
|
-
declare namespace TableHead {
|
|
50
|
-
var displayName: string;
|
|
51
|
-
}
|
|
52
49
|
type TableBodyProps = React.ComponentPropsWithoutRef<'tbody'>;
|
|
53
50
|
declare function TableBody({
|
|
54
51
|
children
|
|
55
52
|
}: TableBodyProps): JSX.Element;
|
|
56
|
-
declare namespace TableBody {
|
|
57
|
-
var displayName: string;
|
|
58
|
-
}
|
|
59
53
|
type TableHeaderProps = Omit<React.ComponentPropsWithoutRef<'th'>, 'align'> & {
|
|
60
54
|
/**
|
|
61
55
|
* The horizontal alignment of the cell's content
|
|
@@ -67,17 +61,11 @@ declare function TableHeader({
|
|
|
67
61
|
children,
|
|
68
62
|
...rest
|
|
69
63
|
}: TableHeaderProps): JSX.Element;
|
|
70
|
-
declare namespace TableHeader {
|
|
71
|
-
var displayName: string;
|
|
72
|
-
}
|
|
73
64
|
type TableRowProps = React.ComponentPropsWithoutRef<'tr'>;
|
|
74
65
|
declare function TableRow({
|
|
75
66
|
children,
|
|
76
67
|
...rest
|
|
77
68
|
}: TableRowProps): JSX.Element;
|
|
78
|
-
declare namespace TableRow {
|
|
79
|
-
var displayName: string;
|
|
80
|
-
}
|
|
81
69
|
type TableCellProps = Omit<React.ComponentPropsWithoutRef<'td'>, 'align'> & {
|
|
82
70
|
/**
|
|
83
71
|
* The horizontal alignment of the cell's content
|
|
@@ -96,16 +84,10 @@ declare function TableCell({
|
|
|
96
84
|
scope,
|
|
97
85
|
...rest
|
|
98
86
|
}: TableCellProps): JSX.Element;
|
|
99
|
-
declare namespace TableCell {
|
|
100
|
-
var displayName: string;
|
|
101
|
-
}
|
|
102
87
|
type TableCellPlaceholderProps = React.PropsWithChildren;
|
|
103
88
|
declare function TableCellPlaceholder({
|
|
104
89
|
children
|
|
105
90
|
}: TableCellPlaceholderProps): JSX.Element;
|
|
106
|
-
declare namespace TableCellPlaceholder {
|
|
107
|
-
var displayName: string;
|
|
108
|
-
}
|
|
109
91
|
type TableContainerProps<As extends React.ElementType = 'div'> = PolymorphicProps<As, 'div'> & React.PropsWithChildren;
|
|
110
92
|
declare function TableContainer<As extends React.ElementType = 'div'>({
|
|
111
93
|
children,
|
|
@@ -113,9 +95,6 @@ declare function TableContainer<As extends React.ElementType = 'div'>({
|
|
|
113
95
|
as,
|
|
114
96
|
...rest
|
|
115
97
|
}: TableContainerProps<As>): JSX.Element;
|
|
116
|
-
declare namespace TableContainer {
|
|
117
|
-
var displayName: string;
|
|
118
|
-
}
|
|
119
98
|
type TableTitleProps = React.PropsWithChildren<{
|
|
120
99
|
/**
|
|
121
100
|
* Provide an alternate element or component to use as the container for
|
|
@@ -148,20 +127,11 @@ declare function TableSubtitle({
|
|
|
148
127
|
children,
|
|
149
128
|
id
|
|
150
129
|
}: TableSubtitleProps): JSX.Element;
|
|
151
|
-
declare namespace TableSubtitle {
|
|
152
|
-
var displayName: string;
|
|
153
|
-
}
|
|
154
130
|
declare function TableDivider(): JSX.Element;
|
|
155
|
-
declare namespace TableDivider {
|
|
156
|
-
var displayName: string;
|
|
157
|
-
}
|
|
158
131
|
type TableActionsProps = React.PropsWithChildren;
|
|
159
132
|
declare function TableActions({
|
|
160
133
|
children
|
|
161
134
|
}: TableActionsProps): JSX.Element;
|
|
162
|
-
declare namespace TableActions {
|
|
163
|
-
var displayName: string;
|
|
164
|
-
}
|
|
165
135
|
type TableSkeletonProps<Data extends UniqueRow> = React.ComponentPropsWithoutRef<'table'> & {
|
|
166
136
|
/**
|
|
167
137
|
* Specify the amount of space that should be available around the contents of
|
|
@@ -185,8 +155,5 @@ declare function TableSkeleton<Data extends UniqueRow>({
|
|
|
185
155
|
rows,
|
|
186
156
|
...rest
|
|
187
157
|
}: TableSkeletonProps<Data>): JSX.Element;
|
|
188
|
-
declare namespace TableSkeleton {
|
|
189
|
-
var displayName: string;
|
|
190
|
-
}
|
|
191
158
|
//#endregion
|
|
192
159
|
export { Table, TableActions, TableActionsProps, TableBody, TableBodyProps, TableCell, TableCellPlaceholder, TableCellProps, TableContainer, TableContainerProps, TableDivider, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, TableSkeleton, TableSkeletonProps, TableSubtitle, TableSubtitleProps, TableTitle, TableTitleProps };
|
package/dist/DataTable/Table.js
CHANGED
|
@@ -556,18 +556,5 @@ function _temp(column, i) {
|
|
|
556
556
|
return /*#__PURE__*/ jsx(TableHeader, { children: typeof column.header === "string" ? column.header : column.header() }, i);
|
|
557
557
|
}
|
|
558
558
|
_temp.displayName = "_temp";
|
|
559
|
-
TableHead.displayName = "Table.Head";
|
|
560
|
-
TableBody.displayName = "Table.Body";
|
|
561
|
-
TableHeader.displayName = "Table.Header";
|
|
562
|
-
TableSortHeader.displayName = "Table.SortHeader";
|
|
563
|
-
TableRow.displayName = "Table.Row";
|
|
564
|
-
TableCell.displayName = "Table.Cell";
|
|
565
|
-
TableCellPlaceholder.displayName = "Table.CellPlaceholder";
|
|
566
|
-
TableContainer.displayName = "Table.Container";
|
|
567
|
-
TableTitle.displayName = "Table.Title";
|
|
568
|
-
TableSubtitle.displayName = "Table.Subtitle";
|
|
569
|
-
TableDivider.displayName = "Table.Divider";
|
|
570
|
-
TableActions.displayName = "Table.Actions";
|
|
571
|
-
TableSkeleton.displayName = "Table.Skeleton";
|
|
572
559
|
//#endregion
|
|
573
560
|
export { Table, TableActions, TableBody, TableCell, TableCellPlaceholder, TableContainer, TableDivider, TableHead, TableHeader, TableRow, TableSkeleton, TableSortHeader, TableSubtitle, TableTitle };
|
package/dist/Details/Details.js
CHANGED
|
@@ -105,7 +105,7 @@ function Summary(t0) {
|
|
|
105
105
|
} else t2 = $[8];
|
|
106
106
|
return t2;
|
|
107
107
|
}
|
|
108
|
-
Summary.displayName = "
|
|
108
|
+
Summary.displayName = "Summary";
|
|
109
109
|
const Details = Object.assign(Root, { Summary });
|
|
110
110
|
//#endregion
|
|
111
111
|
export { Summary, Details as default };
|
|
@@ -27,8 +27,5 @@ declare function FilteredActionListInput({
|
|
|
27
27
|
className,
|
|
28
28
|
...restTextInputProps
|
|
29
29
|
}: FilteredActionListInputProps): React.JSX.Element;
|
|
30
|
-
declare namespace FilteredActionListInput {
|
|
31
|
-
var displayName: string;
|
|
32
|
-
}
|
|
33
30
|
//#endregion
|
|
34
31
|
export { FilteredActionListInput, FilteredActionListInputProps };
|
|
@@ -9,8 +9,5 @@ declare function FilteredActionListBodyLoader({
|
|
|
9
9
|
loadingType: FilteredActionListLoadingType;
|
|
10
10
|
height: number;
|
|
11
11
|
}): JSX.Element;
|
|
12
|
-
declare namespace FilteredActionListBodyLoader {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
12
|
//#endregion
|
|
16
13
|
export { FilteredActionListBodyLoader, FilteredActionListLoadingType, FilteredActionListLoadingTypes };
|
|
@@ -27,7 +27,6 @@ const FormControlLeadingVisual = (t0) => {
|
|
|
27
27
|
} else t3 = $[4];
|
|
28
28
|
return t3;
|
|
29
29
|
};
|
|
30
|
-
FormControlLeadingVisual.displayName = "FormControl.LeadingVisual";
|
|
31
30
|
FormControlLeadingVisual.__SLOT__ = Symbol("FormControl.LeadingVisual");
|
|
32
31
|
//#endregion
|
|
33
32
|
export { FormControlLeadingVisual as default };
|
|
@@ -234,7 +234,7 @@ const ParentLink = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
234
234
|
} else t7 = $[23];
|
|
235
235
|
return t7;
|
|
236
236
|
});
|
|
237
|
-
ParentLink.displayName = "
|
|
237
|
+
ParentLink.displayName = "ParentLink";
|
|
238
238
|
const ContextBar = (t0) => {
|
|
239
239
|
const $ = c(8);
|
|
240
240
|
const { children, className, hidden: t1 } = t0;
|
|
@@ -342,7 +342,7 @@ const TitleArea = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
342
342
|
} else t6 = $[11];
|
|
343
343
|
return t6;
|
|
344
344
|
});
|
|
345
|
-
TitleArea.displayName = "
|
|
345
|
+
TitleArea.displayName = "TitleArea";
|
|
346
346
|
const LeadingAction = (t0) => {
|
|
347
347
|
const $ = c(8);
|
|
348
348
|
const { children, className, hidden: t1 } = t0;
|
|
@@ -221,7 +221,7 @@ const HorizontalDivider = /*#__PURE__*/ memo((t0) => {
|
|
|
221
221
|
} else t8 = $[13];
|
|
222
222
|
return t8;
|
|
223
223
|
});
|
|
224
|
-
HorizontalDivider.displayName = "
|
|
224
|
+
HorizontalDivider.displayName = "HorizontalDivider";
|
|
225
225
|
const VerticalDivider = /*#__PURE__*/ memo((t0) => {
|
|
226
226
|
const $ = c(12);
|
|
227
227
|
const { variant: t1, position, className, style, children } = t0;
|
|
@@ -263,7 +263,7 @@ const VerticalDivider = /*#__PURE__*/ memo((t0) => {
|
|
|
263
263
|
} else t5 = $[11];
|
|
264
264
|
return t5;
|
|
265
265
|
});
|
|
266
|
-
VerticalDivider.displayName = "
|
|
266
|
+
VerticalDivider.displayName = "VerticalDivider";
|
|
267
267
|
const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
268
268
|
const $ = c(23);
|
|
269
269
|
const { position, divider, resizable, minPaneWidth, maxPaneWidth, currentWidth, currentWidthRef, handleRef, sidebarRef, dragStartClientXRef, dragStartWidthRef, dragMaxWidthRef, getMaxPaneWidth, getDefaultWidth, saveWidth } = t0;
|
|
@@ -154,7 +154,6 @@ const SegmentedControlButton = (t0) => {
|
|
|
154
154
|
} else t12 = $[35];
|
|
155
155
|
return t12;
|
|
156
156
|
};
|
|
157
|
-
SegmentedControlButton.displayName = "SegmentedControl.Button";
|
|
158
157
|
SegmentedControlButton.__SLOT__ = Symbol("SegmentedControl.Button");
|
|
159
158
|
//#endregion
|
|
160
159
|
export { SegmentedControlButton as default };
|
|
@@ -130,7 +130,6 @@ const SegmentedControlIconButton = (t0) => {
|
|
|
130
130
|
} else t13 = $[34];
|
|
131
131
|
return t13;
|
|
132
132
|
};
|
|
133
|
-
SegmentedControlIconButton.displayName = "SegmentedControl.IconButton";
|
|
134
133
|
SegmentedControlIconButton.__SLOT__ = Symbol("SegmentedControl.IconButton");
|
|
135
134
|
//#endregion
|
|
136
135
|
export { SegmentedControlIconButton, SegmentedControlIconButton as default };
|
|
@@ -105,9 +105,6 @@ declare function Panel({
|
|
|
105
105
|
cssAnchorPositioningSettings,
|
|
106
106
|
...listProps
|
|
107
107
|
}: SelectPanelProps): JSX.Element;
|
|
108
|
-
declare namespace Panel {
|
|
109
|
-
var displayName: string;
|
|
110
|
-
}
|
|
111
108
|
declare const SecondaryButton: React.FC<ButtonProps>;
|
|
112
109
|
declare const SecondaryLink: React.FC<LinkButtonProps & ButtonProps>;
|
|
113
110
|
declare const SelectPanel: typeof Panel & {
|
|
@@ -639,7 +639,6 @@ const SecondaryLink = (props) => {
|
|
|
639
639
|
});
|
|
640
640
|
};
|
|
641
641
|
SecondaryLink.displayName = "SecondaryLink";
|
|
642
|
-
Panel.displayName = "SelectPanel";
|
|
643
642
|
const SelectPanel = Object.assign(Panel, {
|
|
644
643
|
__SLOT__: Symbol("SelectPanel"),
|
|
645
644
|
SecondaryActionButton: SecondaryButton,
|
package/dist/Stack/Stack.js
CHANGED
package/dist/ThemeProvider.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/ThemeProvider.d.ts
|
|
4
|
-
type Theme = {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
4
|
type ColorMode = 'day' | 'night' | 'light' | 'dark';
|
|
8
5
|
type ColorModeWithAuto = ColorMode | 'auto';
|
|
9
6
|
type ThemeProviderProps = {
|
|
@@ -23,4 +20,4 @@ type ThemeProviderProps = {
|
|
|
23
20
|
};
|
|
24
21
|
declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
25
22
|
//#endregion
|
|
26
|
-
export { ColorMode, ColorModeWithAuto,
|
|
23
|
+
export { ColorMode, ColorModeWithAuto, ThemeProvider, ThemeProvider as default, ThemeProviderProps };
|