@primer/react 38.0.0-rc.8 → 38.0.0-rc.ac46326da
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 +337 -0
- package/dist/ActionBar/{ActionBar-3069d5f1.css → ActionBar-8ed12fe7.css} +2 -2
- package/dist/ActionBar/ActionBar-8ed12fe7.css.map +1 -0
- package/dist/ActionBar/ActionBar.d.ts +3 -0
- package/dist/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/ActionBar/ActionBar.js +292 -305
- package/dist/ActionBar/ActionBar.module.css.js +2 -2
- package/dist/ActionBar/index.d.ts +3 -0
- package/dist/ActionBar/index.d.ts.map +1 -1
- package/dist/ActionBar/index.js +3 -2
- package/dist/ActionList/Selection.js +1 -2
- package/dist/ActionList/index.d.ts +1 -1
- package/dist/ActionMenu/ActionMenu-bb42318d.css +2 -0
- package/dist/ActionMenu/ActionMenu-bb42318d.css.map +1 -0
- package/dist/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/ActionMenu/ActionMenu.js +6 -0
- package/dist/ActionMenu/ActionMenu.module.css.js +1 -1
- package/dist/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/Banner/Banner-c1744c4b.css +2 -0
- package/dist/Banner/Banner-c1744c4b.css.map +1 -0
- package/dist/Banner/Banner.d.ts +8 -0
- package/dist/Banner/Banner.d.ts.map +1 -1
- package/dist/Banner/Banner.js +2 -0
- package/dist/Banner/Banner.module.css.js +2 -2
- package/dist/Banner/index.d.ts +1 -0
- package/dist/Banner/index.d.ts.map +1 -1
- package/dist/BaseStyles.d.ts +2 -3
- package/dist/BaseStyles.d.ts.map +1 -1
- package/dist/BaseStyles.js +35 -61
- package/dist/Breadcrumbs/Breadcrumbs-dbfc9d95.css +2 -0
- package/dist/Breadcrumbs/Breadcrumbs-dbfc9d95.css.map +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -1
- package/dist/Button/ButtonBase-643c673a.css +2 -0
- package/dist/Button/ButtonBase-643c673a.css.map +1 -0
- package/dist/Button/ButtonBase.module.css.js +1 -1
- package/dist/Details/Details.d.ts.map +1 -1
- package/dist/Details/Details.js +19 -41
- package/dist/LabelGroup/LabelGroup.d.ts.map +1 -1
- package/dist/LabelGroup/LabelGroup.js +1 -2
- package/dist/NavList/NavList.d.ts +1 -1
- package/dist/Overlay/Overlay.d.ts.map +1 -1
- package/dist/Overlay/Overlay.js +3 -6
- package/dist/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControl.js +15 -9
- package/dist/SegmentedControl/SegmentedControlButton.d.ts +3 -1
- package/dist/SegmentedControl/SegmentedControlButton.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControlButton.js +76 -69
- package/dist/TextInput/TextInput.d.ts +1 -1
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +5 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts.map +1 -1
- package/dist/TextInputWithTokens/TextInputWithTokens.js +229 -249
- package/dist/ThemeProvider.d.ts +0 -1
- package/dist/ThemeProvider.d.ts.map +1 -1
- package/dist/ThemeProvider.js +9 -8
- package/dist/deprecated/ActionList/Item.d.ts.map +1 -1
- package/dist/deprecated/ActionList/Item.js +66 -71
- package/dist/{DialogV1 → deprecated/DialogV1}/Dialog-dce13989.css +1 -1
- package/dist/deprecated/DialogV1/Dialog-dce13989.css.map +1 -0
- package/dist/{DialogV1 → deprecated/DialogV1}/Dialog.d.ts +1 -1
- package/dist/deprecated/DialogV1/Dialog.d.ts.map +1 -0
- package/dist/{DialogV1 → deprecated/DialogV1}/Dialog.js +3 -3
- package/dist/deprecated/DialogV1/Dialog.module.css.js +5 -0
- package/dist/deprecated/DialogV1/index.d.ts.map +1 -0
- package/dist/deprecated/index.d.ts +2 -2
- package/dist/deprecated/index.d.ts.map +1 -1
- package/dist/deprecated/index.js +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/internal/components/TextInputInnerAction.d.ts +1 -1
- package/generated/components.json +93 -258
- package/package.json +3 -18
- package/dist/ActionBar/ActionBar-3069d5f1.css.map +0 -1
- package/dist/ActionMenu/ActionMenu-5fe972e2.css +0 -2
- package/dist/ActionMenu/ActionMenu-5fe972e2.css.map +0 -1
- package/dist/Banner/Banner-459c533a.css +0 -2
- package/dist/Banner/Banner-459c533a.css.map +0 -1
- package/dist/Box/Box.d.ts +0 -18
- package/dist/Box/Box.d.ts.map +0 -1
- package/dist/Box/index.d.ts +0 -3
- package/dist/Box/index.d.ts.map +0 -1
- package/dist/Breadcrumbs/Breadcrumbs-7cbdf03c.css +0 -2
- package/dist/Breadcrumbs/Breadcrumbs-7cbdf03c.css.map +0 -1
- package/dist/Button/ButtonBase-4c44bb02.css +0 -2
- package/dist/Button/ButtonBase-4c44bb02.css.map +0 -1
- package/dist/DialogV1/Dialog-dce13989.css.map +0 -1
- package/dist/DialogV1/Dialog.d.ts.map +0 -1
- package/dist/DialogV1/Dialog.module.css.js +0 -5
- package/dist/DialogV1/index.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -15
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -28
- package/dist/sx.d.ts +0 -26
- package/dist/sx.d.ts.map +0 -1
- package/dist/sx.js +0 -8
- package/dist/utils/layout.d.ts +0 -21
- package/dist/utils/layout.d.ts.map +0 -1
- /package/dist/{DialogV1 → deprecated/DialogV1}/index.d.ts +0 -0
package/dist/Details/Details.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { useEffect } from 'react';
|
|
3
|
+
import { warning } from '../utils/warning.js';
|
|
3
4
|
import { clsx } from 'clsx';
|
|
4
5
|
import classes from './Details.module.css.js';
|
|
5
6
|
import { useMergedRefs } from '../internal/hooks/useMergedRefs.js';
|
|
6
|
-
import { jsx
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
8
|
|
|
8
9
|
const Root = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
9
|
-
const $ = c(
|
|
10
|
+
const $ = c(13);
|
|
10
11
|
let children;
|
|
11
12
|
let className;
|
|
12
13
|
let rest;
|
|
@@ -27,32 +28,21 @@ const Root = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
27
28
|
}
|
|
28
29
|
const detailsRef = React.useRef(null);
|
|
29
30
|
const ref = useMergedRefs(forwardRef, detailsRef);
|
|
30
|
-
const [hasSummary, setHasSummary] = useState(false);
|
|
31
31
|
let t1;
|
|
32
32
|
let t2;
|
|
33
33
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
34
34
|
t1 = () => {
|
|
35
|
+
if (!(process.env.NODE_ENV !== "production")) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
35
38
|
const {
|
|
36
39
|
current: details
|
|
37
40
|
} = detailsRef;
|
|
38
41
|
if (!details) {
|
|
39
42
|
return;
|
|
40
43
|
}
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
setHasSummary(!!summary);
|
|
44
|
-
};
|
|
45
|
-
updateSummary();
|
|
46
|
-
const observer = new MutationObserver(() => {
|
|
47
|
-
updateSummary();
|
|
48
|
-
});
|
|
49
|
-
observer.observe(details, {
|
|
50
|
-
childList: true,
|
|
51
|
-
subtree: true
|
|
52
|
-
});
|
|
53
|
-
return () => {
|
|
54
|
-
observer.disconnect();
|
|
55
|
-
};
|
|
44
|
+
const summary = details.querySelector("summary:not([data-default-summary])");
|
|
45
|
+
process.env.NODE_ENV !== "production" ? warning(summary === null, "The <Details> component must have a <summary> child component. You can either use <Details.Summary> or a native <summary> element.") : void 0;
|
|
56
46
|
};
|
|
57
47
|
t2 = [];
|
|
58
48
|
$[4] = t1;
|
|
@@ -71,34 +61,22 @@ const Root = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
71
61
|
t3 = $[7];
|
|
72
62
|
}
|
|
73
63
|
let t4;
|
|
74
|
-
if ($[8] !==
|
|
75
|
-
t4 =
|
|
76
|
-
"data-default-summary": true,
|
|
77
|
-
children: "See Details"
|
|
78
|
-
});
|
|
79
|
-
$[8] = hasSummary;
|
|
80
|
-
$[9] = t4;
|
|
81
|
-
} else {
|
|
82
|
-
t4 = $[9];
|
|
83
|
-
}
|
|
84
|
-
let t5;
|
|
85
|
-
if ($[10] !== children || $[11] !== ref || $[12] !== rest || $[13] !== t3 || $[14] !== t4) {
|
|
86
|
-
t5 = /*#__PURE__*/jsxs("details", {
|
|
64
|
+
if ($[8] !== children || $[9] !== ref || $[10] !== rest || $[11] !== t3) {
|
|
65
|
+
t4 = /*#__PURE__*/jsx("details", {
|
|
87
66
|
className: t3,
|
|
88
67
|
...rest,
|
|
89
68
|
ref: ref,
|
|
90
|
-
children:
|
|
69
|
+
children: children
|
|
91
70
|
});
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
96
|
-
$[
|
|
97
|
-
$[15] = t5;
|
|
71
|
+
$[8] = children;
|
|
72
|
+
$[9] = ref;
|
|
73
|
+
$[10] = rest;
|
|
74
|
+
$[11] = t3;
|
|
75
|
+
$[12] = t4;
|
|
98
76
|
} else {
|
|
99
|
-
|
|
77
|
+
t4 = $[12];
|
|
100
78
|
}
|
|
101
|
-
return
|
|
79
|
+
return t4;
|
|
102
80
|
});
|
|
103
81
|
Root.displayName = 'Details';
|
|
104
82
|
function Summary(t0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabelGroup.d.ts","sourceRoot":"","sources":["../../src/LabelGroup/LabelGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"LabelGroup.d.ts","sourceRoot":"","sources":["../../src/LabelGroup/LabelGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,MAAM,MAAM,eAAe,GAAG;IAC5B,2DAA2D;IAC3D,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,4LAA4L;IAC5L,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IACpC,4MAA4M;IAC5M,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACnC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AA2FD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAyOlE,CAAA;AAID,eAAe,UAAU,CAAA"}
|
|
@@ -6,7 +6,6 @@ import VisuallyHidden from '../_VisuallyHidden.js';
|
|
|
6
6
|
import { IconButton } from '../Button/IconButton.js';
|
|
7
7
|
import { ButtonComponent } from '../Button/Button.js';
|
|
8
8
|
import { clsx } from 'clsx';
|
|
9
|
-
import theme from '../theme.js';
|
|
10
9
|
import classes from './LabelGroup.module.css.js';
|
|
11
10
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
12
11
|
import { AnchoredOverlay } from '../AnchoredOverlay/AnchoredOverlay.js';
|
|
@@ -155,7 +154,7 @@ const LabelGroup = ({
|
|
|
155
154
|
bottom: 0,
|
|
156
155
|
toJSON: () => undefined
|
|
157
156
|
});
|
|
158
|
-
const overlayPaddingPx =
|
|
157
|
+
const overlayPaddingPx = 8; // var(--base-size-8), hardcoded to do some math
|
|
159
158
|
const hiddenItemIds = Object.keys(visibilityMap).filter(key => !visibilityMap[key]);
|
|
160
159
|
|
|
161
160
|
// `overlayWidth` is only needed when we render an overlay
|
|
@@ -43,7 +43,7 @@ export declare const NavList: React.ForwardRefExoticComponent<Omit<NavListProps,
|
|
|
43
43
|
SubNav: PolymorphicForwardRefComponent<"ul", NavListSubNavProps>;
|
|
44
44
|
LeadingVisual: import("../utils/types").FCWithSlotMarker<React.PropsWithChildren<import("../ActionList/Visuals").VisualProps>>;
|
|
45
45
|
TrailingVisual: import("../utils/types").FCWithSlotMarker<React.PropsWithChildren<import("../ActionList/Visuals").VisualProps>>;
|
|
46
|
-
TrailingAction: PolymorphicForwardRefComponent<"
|
|
46
|
+
TrailingAction: PolymorphicForwardRefComponent<"a" | "button", ActionListTrailingActionProps>;
|
|
47
47
|
Divider: import("../utils/types").FCWithSlotMarker<React.PropsWithChildren<ActionListDividerProps>>;
|
|
48
48
|
Group: React.FC<NavListGroupProps>;
|
|
49
49
|
GroupExpand: React.ForwardRefExoticComponent<NavListGroupExpandProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/Overlay/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,qBAAqB,EAAe,MAAM,OAAO,CAAA;AAC9D,OAAO,KAA0B,MAAM,OAAO,CAAA;AAE9C,OAAO,KAAK,EAAC,QAAQ,EAAE,KAAK,EAAC,MAAM,gBAAgB,CAAA;AACnD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAA;AAI/C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/Overlay/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,qBAAqB,EAAe,MAAM,OAAO,CAAA;AAC9D,OAAO,KAA0B,MAAM,OAAO,CAAA;AAE9C,OAAO,KAAK,EAAC,QAAQ,EAAE,KAAK,EAAC,MAAM,gBAAgB,CAAA;AACnD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAA;AAI/C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,EA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CAAA;CACjC,CAAA;AAED,KAAK,eAAe,GAAG,KAAK,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAAA;AAElE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,EA8CnB,8BAA8B,CAAC,KAAK,EAAE,eAAe,CAAC,CAAA;AAE3D,KAAK,cAAc,GAAG;IACpB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAA;IAChD,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;IAC9C,cAAc,EAAE,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAA;IAC9C,QAAQ,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;IACpC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;CAC7C,CAAA;AAED,KAAK,oBAAoB,GAAG,KAAK,CAAC,eAAe,EAAE,cAAc,CAAC,CAAA;AAElE;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,OAAO,EAiFR,8BAA8B,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAA;AAEhE,MAAM,MAAM,YAAY,GAAG,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAA;AAEhE,eAAe,OAAO,CAAA"}
|
package/dist/Overlay/Overlay.js
CHANGED
|
@@ -5,7 +5,6 @@ import { Portal } from '../Portal/Portal.js';
|
|
|
5
5
|
import { useRefObjectAsForwardedRef } from '../hooks/useRefObjectAsForwardedRef.js';
|
|
6
6
|
import classes from './Overlay.module.css.js';
|
|
7
7
|
import { clsx } from 'clsx';
|
|
8
|
-
import theme from '../theme.js';
|
|
9
8
|
import { jsx } from 'react/jsx-runtime';
|
|
10
9
|
import { useOverlay } from '../hooks/useOverlay.js';
|
|
11
10
|
import { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
|
|
@@ -197,8 +196,6 @@ const Overlay = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
|
|
|
197
196
|
const width = t5 === undefined ? "auto" : t5;
|
|
198
197
|
const overlayRef = useRef(null);
|
|
199
198
|
useRefObjectAsForwardedRef(forwardedRef, overlayRef);
|
|
200
|
-
const slideAnimationDistance = parseInt(theme.space[2], 10);
|
|
201
|
-
const slideAnimationEasing = theme.animation.easeOutCubic;
|
|
202
199
|
let t6;
|
|
203
200
|
if ($[18] !== ignoreClickRefs || $[19] !== initialFocusRef || $[20] !== onClickOutside || $[21] !== onEscape || $[22] !== preventFocusOnOpen || $[23] !== returnFocusRef) {
|
|
204
201
|
t6 = {
|
|
@@ -252,13 +249,13 @@ const Overlay = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
|
|
|
252
249
|
return;
|
|
253
250
|
}
|
|
254
251
|
overlayRef.current.animate({
|
|
255
|
-
transform: [`translate(${
|
|
252
|
+
transform: [`translate(${8 * x}px, ${8 * y}px)`, "translate(0, 0)"]
|
|
256
253
|
}, {
|
|
257
254
|
duration: animationDuration,
|
|
258
|
-
easing:
|
|
255
|
+
easing: "cubic-bezier(0.33, 1, 0.68, 1)"
|
|
259
256
|
});
|
|
260
257
|
};
|
|
261
|
-
t10 = [anchorSide,
|
|
258
|
+
t10 = [anchorSide, 8, "cubic-bezier(0.33, 1, 0.68, 1)", visibility];
|
|
262
259
|
$[28] = anchorSide;
|
|
263
260
|
$[29] = visibility;
|
|
264
261
|
$[30] = t10;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../src/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,KAAK,EAAC,2BAA2B,EA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C,EAAE,MAAM,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,wDAAwD;IACxD,SAAS,CAAC,EAAE,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,CAAA;IAC9C,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,8BAA8B;IAC9B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACzB,6FAA6F;IAC7F,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,0BAA0B,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC,CAAA;IACxG,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAyMD,eAAO,MAAM,gBAAgB;;;;CAI3B,CAAA"}
|
|
@@ -148,16 +148,18 @@ const Root = t0 => {
|
|
|
148
148
|
if (responsiveVariant === "hideLabels" && /*#__PURE__*/React.isValidElement(child_2) && (child_2.type === SegmentedControlButton || isSlot(child_2, SegmentedControlButton))) {
|
|
149
149
|
const {
|
|
150
150
|
"aria-label": childAriaLabel,
|
|
151
|
+
leadingVisual: leadingVisual_0,
|
|
151
152
|
leadingIcon,
|
|
152
153
|
children: childPropsChildren,
|
|
153
154
|
...restChildProps
|
|
154
155
|
} = child_2.props;
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
const visual = leadingVisual_0 !== null && leadingVisual_0 !== void 0 ? leadingVisual_0 : leadingIcon;
|
|
157
|
+
if (!visual) {
|
|
158
|
+
console.warn("A `leadingVisual` or `leadingIcon` prop is required when hiding visible labels");
|
|
157
159
|
} else {
|
|
158
160
|
return /*#__PURE__*/jsx(SegmentedControlIconButton, {
|
|
159
161
|
"aria-label": childAriaLabel || childPropsChildren,
|
|
160
|
-
icon:
|
|
162
|
+
icon: visual,
|
|
161
163
|
className: classes.IconButton,
|
|
162
164
|
...sharedChildProps,
|
|
163
165
|
...restChildProps
|
|
@@ -200,12 +202,16 @@ function _temp3(isSelected) {
|
|
|
200
202
|
return isSelected;
|
|
201
203
|
}
|
|
202
204
|
function _temp4(childArg) {
|
|
203
|
-
if (/*#__PURE__*/React.isValidElement(childArg) && (childArg.type === SegmentedControlButton || isSlot(childArg, SegmentedControlButton))
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
if (/*#__PURE__*/React.isValidElement(childArg) && (childArg.type === SegmentedControlButton || isSlot(childArg, SegmentedControlButton))) {
|
|
206
|
+
var _childArg$props$leadi;
|
|
207
|
+
const leadingVisual = (_childArg$props$leadi = childArg.props.leadingVisual) !== null && _childArg$props$leadi !== void 0 ? _childArg$props$leadi : childArg.props.leadingIcon;
|
|
208
|
+
if (leadingVisual) {
|
|
209
|
+
if (isElement(leadingVisual)) {
|
|
210
|
+
return leadingVisual;
|
|
211
|
+
} else {
|
|
212
|
+
const LeadingVisual = leadingVisual;
|
|
213
|
+
return /*#__PURE__*/jsx(LeadingVisual, {});
|
|
214
|
+
}
|
|
209
215
|
}
|
|
210
216
|
}
|
|
211
217
|
if (/*#__PURE__*/React.isValidElement(childArg) && (childArg.type === SegmentedControlIconButton || isSlot(childArg, SegmentedControlIconButton))) {
|
|
@@ -9,7 +9,9 @@ export type SegmentedControlButtonProps = {
|
|
|
9
9
|
selected?: boolean;
|
|
10
10
|
/** Whether the segment is selected. This is used for uncontrolled `SegmentedControls` to pick one `SegmentedControlButton` that is selected on the initial render. */
|
|
11
11
|
defaultSelected?: boolean;
|
|
12
|
-
/** The leading
|
|
12
|
+
/** The leading visual comes before item label */
|
|
13
|
+
leadingVisual?: React.FunctionComponent<React.PropsWithChildren<IconProps>> | React.ReactElement;
|
|
14
|
+
/** @deprecated Use `leadingVisual` instead. The leading icon comes before item label */
|
|
13
15
|
leadingIcon?: React.FunctionComponent<React.PropsWithChildren<IconProps>> | React.ReactElement;
|
|
14
16
|
/** Optional counter to display on the right side of the button */
|
|
15
17
|
count?: number | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControlButton.d.ts","sourceRoot":"","sources":["../../src/SegmentedControl/SegmentedControlButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,OAAO,CAAA;AAC/C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAMrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAA;AAEpD,MAAM,MAAM,2BAA2B,GAAG;IACxC,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,oKAAoK;IACpK,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,sKAAsK;IACtK,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB
|
|
1
|
+
{"version":3,"file":"SegmentedControlButton.d.ts","sourceRoot":"","sources":["../../src/SegmentedControl/SegmentedControlButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,OAAO,CAAA;AAC/C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAMrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAA;AAEpD,MAAM,MAAM,2BAA2B,GAAG;IACxC,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,oKAAoK;IACpK,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,sKAAsK;IACtK,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,iDAAiD;IACjD,aAAa,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,CAAA;IAChG,wFAAwF;IACxF,WAAW,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,CAAA;IAC9F,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACxB,GAAG,oBAAoB,CAAC,iBAAiB,GAAG,aAAa,CAAC,CAAA;AAE3D,QAAA,MAAM,sBAAsB,EAAE,gBAAgB,CAAC,KAAK,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,CAiClG,CAAA;AAED,eAAe,sBAAsB,CAAA"}
|
|
@@ -6,125 +6,132 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
6
6
|
import CounterLabel from '../CounterLabel/CounterLabel.js';
|
|
7
7
|
|
|
8
8
|
const SegmentedControlButton = t0 => {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
var _leadingVisual;
|
|
10
|
+
const $ = c(31);
|
|
11
11
|
let children;
|
|
12
12
|
let className;
|
|
13
13
|
let count;
|
|
14
|
+
let leadingIcon;
|
|
15
|
+
let leadingVisual;
|
|
14
16
|
let rest;
|
|
15
17
|
let selected;
|
|
16
18
|
if ($[0] !== t0) {
|
|
17
19
|
const {
|
|
18
20
|
children: t1,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
leadingVisual: t2,
|
|
22
|
+
leadingIcon: t3,
|
|
23
|
+
selected: t4,
|
|
24
|
+
className: t5,
|
|
22
25
|
defaultSelected: _defaultSelected,
|
|
23
|
-
count:
|
|
24
|
-
...
|
|
26
|
+
count: t6,
|
|
27
|
+
...t7
|
|
25
28
|
} = t0;
|
|
26
29
|
children = t1;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
leadingVisual = t2;
|
|
31
|
+
leadingIcon = t3;
|
|
32
|
+
selected = t4;
|
|
33
|
+
className = t5;
|
|
34
|
+
count = t6;
|
|
35
|
+
rest = t7;
|
|
32
36
|
$[0] = t0;
|
|
33
|
-
$[1] =
|
|
34
|
-
$[2] =
|
|
35
|
-
$[3] =
|
|
36
|
-
$[4] =
|
|
37
|
-
$[5] =
|
|
38
|
-
$[6] =
|
|
37
|
+
$[1] = children;
|
|
38
|
+
$[2] = className;
|
|
39
|
+
$[3] = count;
|
|
40
|
+
$[4] = leadingIcon;
|
|
41
|
+
$[5] = leadingVisual;
|
|
42
|
+
$[6] = rest;
|
|
43
|
+
$[7] = selected;
|
|
39
44
|
} else {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
children = $[1];
|
|
46
|
+
className = $[2];
|
|
47
|
+
count = $[3];
|
|
48
|
+
leadingIcon = $[4];
|
|
49
|
+
leadingVisual = $[5];
|
|
50
|
+
rest = $[6];
|
|
51
|
+
selected = $[7];
|
|
46
52
|
}
|
|
53
|
+
const LeadingVisual = (_leadingVisual = leadingVisual) !== null && _leadingVisual !== void 0 ? _leadingVisual : leadingIcon;
|
|
47
54
|
let t1;
|
|
48
|
-
if ($[
|
|
55
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49
56
|
t1 = clsx(classes.Item);
|
|
50
|
-
$[
|
|
57
|
+
$[8] = t1;
|
|
51
58
|
} else {
|
|
52
|
-
t1 = $[
|
|
59
|
+
t1 = $[8];
|
|
53
60
|
}
|
|
54
61
|
const t2 = selected ? "" : undefined;
|
|
55
62
|
let t3;
|
|
56
|
-
if ($[
|
|
63
|
+
if ($[9] !== className) {
|
|
57
64
|
t3 = clsx(classes.Button, className);
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
65
|
+
$[9] = className;
|
|
66
|
+
$[10] = t3;
|
|
60
67
|
} else {
|
|
61
|
-
t3 = $[
|
|
68
|
+
t3 = $[10];
|
|
62
69
|
}
|
|
63
70
|
let t4;
|
|
64
|
-
if ($[
|
|
71
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
65
72
|
t4 = clsx(classes.Content, "segmentedControl-content");
|
|
66
|
-
$[
|
|
73
|
+
$[11] = t4;
|
|
67
74
|
} else {
|
|
68
|
-
t4 = $[
|
|
75
|
+
t4 = $[11];
|
|
69
76
|
}
|
|
70
77
|
let t5;
|
|
71
|
-
if ($[
|
|
72
|
-
t5 =
|
|
78
|
+
if ($[12] !== LeadingVisual) {
|
|
79
|
+
t5 = LeadingVisual && /*#__PURE__*/jsx("div", {
|
|
73
80
|
className: classes.LeadingIcon,
|
|
74
|
-
children: isElement(
|
|
81
|
+
children: isElement(LeadingVisual) ? LeadingVisual : /*#__PURE__*/jsx(LeadingVisual, {})
|
|
75
82
|
});
|
|
76
|
-
$[
|
|
77
|
-
$[
|
|
83
|
+
$[12] = LeadingVisual;
|
|
84
|
+
$[13] = t5;
|
|
78
85
|
} else {
|
|
79
|
-
t5 = $[
|
|
86
|
+
t5 = $[13];
|
|
80
87
|
}
|
|
81
88
|
let t6;
|
|
82
|
-
if ($[
|
|
89
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
83
90
|
t6 = clsx(classes.Text, "segmentedControl-text");
|
|
84
|
-
$[
|
|
91
|
+
$[14] = t6;
|
|
85
92
|
} else {
|
|
86
|
-
t6 = $[
|
|
93
|
+
t6 = $[14];
|
|
87
94
|
}
|
|
88
95
|
let t7;
|
|
89
|
-
if ($[
|
|
96
|
+
if ($[15] !== children) {
|
|
90
97
|
t7 = /*#__PURE__*/jsx("div", {
|
|
91
98
|
className: t6,
|
|
92
99
|
"data-text": children,
|
|
93
100
|
children: children
|
|
94
101
|
});
|
|
95
|
-
$[
|
|
96
|
-
$[
|
|
102
|
+
$[15] = children;
|
|
103
|
+
$[16] = t7;
|
|
97
104
|
} else {
|
|
98
|
-
t7 = $[
|
|
105
|
+
t7 = $[16];
|
|
99
106
|
}
|
|
100
107
|
let t8;
|
|
101
|
-
if ($[
|
|
108
|
+
if ($[17] !== count) {
|
|
102
109
|
t8 = count !== undefined && /*#__PURE__*/jsx("span", {
|
|
103
110
|
className: classes.Counter,
|
|
104
111
|
children: /*#__PURE__*/jsx(CounterLabel, {
|
|
105
112
|
children: count
|
|
106
113
|
})
|
|
107
114
|
});
|
|
108
|
-
$[
|
|
109
|
-
$[
|
|
115
|
+
$[17] = count;
|
|
116
|
+
$[18] = t8;
|
|
110
117
|
} else {
|
|
111
|
-
t8 = $[
|
|
118
|
+
t8 = $[18];
|
|
112
119
|
}
|
|
113
120
|
let t9;
|
|
114
|
-
if ($[
|
|
121
|
+
if ($[19] !== t5 || $[20] !== t7 || $[21] !== t8) {
|
|
115
122
|
t9 = /*#__PURE__*/jsxs("span", {
|
|
116
123
|
className: t4,
|
|
117
124
|
children: [t5, t7, t8]
|
|
118
125
|
});
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
126
|
+
$[19] = t5;
|
|
127
|
+
$[20] = t7;
|
|
128
|
+
$[21] = t8;
|
|
129
|
+
$[22] = t9;
|
|
123
130
|
} else {
|
|
124
|
-
t9 = $[
|
|
131
|
+
t9 = $[22];
|
|
125
132
|
}
|
|
126
133
|
let t10;
|
|
127
|
-
if ($[
|
|
134
|
+
if ($[23] !== rest || $[24] !== selected || $[25] !== t3 || $[26] !== t9) {
|
|
128
135
|
t10 = /*#__PURE__*/jsx("button", {
|
|
129
136
|
"aria-current": selected,
|
|
130
137
|
className: t3,
|
|
@@ -132,26 +139,26 @@ const SegmentedControlButton = t0 => {
|
|
|
132
139
|
...rest,
|
|
133
140
|
children: t9
|
|
134
141
|
});
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
142
|
+
$[23] = rest;
|
|
143
|
+
$[24] = selected;
|
|
144
|
+
$[25] = t3;
|
|
145
|
+
$[26] = t9;
|
|
146
|
+
$[27] = t10;
|
|
140
147
|
} else {
|
|
141
|
-
t10 = $[
|
|
148
|
+
t10 = $[27];
|
|
142
149
|
}
|
|
143
150
|
let t11;
|
|
144
|
-
if ($[
|
|
151
|
+
if ($[28] !== t10 || $[29] !== t2) {
|
|
145
152
|
t11 = /*#__PURE__*/jsx("li", {
|
|
146
153
|
className: t1,
|
|
147
154
|
"data-selected": t2,
|
|
148
155
|
children: t10
|
|
149
156
|
});
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
157
|
+
$[28] = t10;
|
|
158
|
+
$[29] = t2;
|
|
159
|
+
$[30] = t11;
|
|
153
160
|
} else {
|
|
154
|
-
t11 = $[
|
|
161
|
+
t11 = $[30];
|
|
155
162
|
}
|
|
156
163
|
return t11;
|
|
157
164
|
};
|
|
@@ -32,7 +32,7 @@ export type TextInputNonPassthroughProps = {
|
|
|
32
32
|
export type TextInputProps = Merge<React.ComponentPropsWithoutRef<'input'>, TextInputNonPassthroughProps>;
|
|
33
33
|
declare const _default: PolymorphicForwardRefComponent<"input", TextInputProps> & {
|
|
34
34
|
__SLOT__: symbol;
|
|
35
|
-
Action: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
35
|
+
Action: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "aria-label" | "tooltipDirection"> & {
|
|
36
36
|
children?: React.ReactNode;
|
|
37
37
|
"aria-label"?: string;
|
|
38
38
|
tooltipDirection?: "n" | "ne" | "e" | "se" | "s" | "sw" | "w" | "nw";
|
|
@@ -47,14 +47,14 @@ declare const TextInputWithTokens: React.ForwardRefExoticComponent<{
|
|
|
47
47
|
/**
|
|
48
48
|
* The array of tokens to render
|
|
49
49
|
*/
|
|
50
|
-
tokens: any[] | (Omit<(Omit<React.DetailedHTMLProps<React.
|
|
51
|
-
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLButtonElement> | null | undefined;
|
|
52
|
-
}) | (Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
50
|
+
tokens: any[] | (Omit<(Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
53
51
|
ref?: ((instance: HTMLAnchorElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLAnchorElement> | null | undefined;
|
|
52
|
+
}) | (Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
53
|
+
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLButtonElement> | null | undefined;
|
|
54
54
|
}) | (Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
55
55
|
ref?: ((instance: HTMLSpanElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLSpanElement> | null | undefined;
|
|
56
56
|
}), keyof import("..").TokenProps> & import("..").TokenProps & {
|
|
57
|
-
as?: "
|
|
57
|
+
as?: "a" | "button" | "span" | undefined;
|
|
58
58
|
})[];
|
|
59
59
|
/**
|
|
60
60
|
* The function that gets called when a token is removed
|
|
@@ -63,7 +63,7 @@ declare const TextInputWithTokens: React.ForwardRefExoticComponent<{
|
|
|
63
63
|
/**
|
|
64
64
|
* The component used to render each token
|
|
65
65
|
*/
|
|
66
|
-
tokenComponent?: import("../utils/polymorphic").ForwardRefComponent<"
|
|
66
|
+
tokenComponent?: import("../utils/polymorphic").ForwardRefComponent<"a" | "button" | "span", import("..").TokenProps> | AnyReactComponent | undefined;
|
|
67
67
|
/**
|
|
68
68
|
* The maximum height of the component. If the content in the input exceeds this height,
|
|
69
69
|
* it will scroll vertically
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputWithTokens.d.ts","sourceRoot":"","sources":["../../src/TextInputWithTokens/TextInputWithTokens.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextInputWithTokens.d.ts","sourceRoot":"","sources":["../../src/TextInputWithTokens/TextInputWithTokens.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA6D,SAAS,EAAC,MAAM,OAAO,CAAA;AAChG,OAAO,KAAyB,MAAM,OAAO,CAAA;AAK7C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,cAAc,CAAA;AAChD,OAAO,KAAK,MAAM,gBAAgB,CAAA;AAClC,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAA;AAQrD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAGlD,KAAK,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAA;AAI1E;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAAC,kBAAkB,SAAS,iBAAiB,GAAG,OAAO,KAAK,IAAI;IAClG;;OAEG;IACH,MAAM,EAAE,kBAAkB,SAAS,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,UAAU,CAAC,CAAC,GAC7F,UAAU,EAAE,GACZ,KAAK,CAAA;IACT;;OAEG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM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