@primer/react 38.0.0-rc.9 → 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.
Files changed (67) hide show
  1. package/CHANGELOG.md +314 -0
  2. package/dist/ActionBar/{ActionBar-3069d5f1.css → ActionBar-8ed12fe7.css} +2 -2
  3. package/dist/ActionBar/ActionBar-8ed12fe7.css.map +1 -0
  4. package/dist/ActionBar/ActionBar.d.ts +3 -0
  5. package/dist/ActionBar/ActionBar.d.ts.map +1 -1
  6. package/dist/ActionBar/ActionBar.js +292 -305
  7. package/dist/ActionBar/ActionBar.module.css.js +2 -2
  8. package/dist/ActionBar/index.d.ts +3 -0
  9. package/dist/ActionBar/index.d.ts.map +1 -1
  10. package/dist/ActionBar/index.js +3 -2
  11. package/dist/ActionList/index.d.ts +1 -1
  12. package/dist/Autocomplete/Autocomplete.d.ts +1 -1
  13. package/dist/BaseStyles.d.ts +2 -3
  14. package/dist/BaseStyles.d.ts.map +1 -1
  15. package/dist/BaseStyles.js +35 -61
  16. package/dist/LabelGroup/LabelGroup.d.ts.map +1 -1
  17. package/dist/LabelGroup/LabelGroup.js +1 -2
  18. package/dist/NavList/NavList.d.ts +1 -1
  19. package/dist/Overlay/Overlay.d.ts.map +1 -1
  20. package/dist/Overlay/Overlay.js +3 -6
  21. package/dist/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  22. package/dist/SegmentedControl/SegmentedControl.js +15 -9
  23. package/dist/SegmentedControl/SegmentedControlButton.d.ts +3 -1
  24. package/dist/SegmentedControl/SegmentedControlButton.d.ts.map +1 -1
  25. package/dist/SegmentedControl/SegmentedControlButton.js +76 -69
  26. package/dist/TextInput/TextInput.d.ts +1 -1
  27. package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +5 -5
  28. package/dist/TextInputWithTokens/TextInputWithTokens.d.ts.map +1 -1
  29. package/dist/TextInputWithTokens/TextInputWithTokens.js +229 -249
  30. package/dist/ThemeProvider.d.ts +0 -1
  31. package/dist/ThemeProvider.d.ts.map +1 -1
  32. package/dist/ThemeProvider.js +9 -8
  33. package/dist/deprecated/ActionList/Item.d.ts.map +1 -1
  34. package/dist/deprecated/ActionList/Item.js +66 -71
  35. package/dist/{DialogV1 → deprecated/DialogV1}/Dialog-dce13989.css +1 -1
  36. package/dist/deprecated/DialogV1/Dialog-dce13989.css.map +1 -0
  37. package/dist/{DialogV1 → deprecated/DialogV1}/Dialog.d.ts +1 -1
  38. package/dist/deprecated/DialogV1/Dialog.d.ts.map +1 -0
  39. package/dist/{DialogV1 → deprecated/DialogV1}/Dialog.js +3 -3
  40. package/dist/deprecated/DialogV1/Dialog.module.css.js +5 -0
  41. package/dist/deprecated/DialogV1/index.d.ts.map +1 -0
  42. package/dist/deprecated/index.d.ts +2 -2
  43. package/dist/deprecated/index.d.ts.map +1 -1
  44. package/dist/deprecated/index.js +1 -1
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +1 -1
  48. package/dist/internal/components/TextInputInnerAction.d.ts +1 -1
  49. package/generated/components.json +85 -110
  50. package/package.json +3 -18
  51. package/dist/ActionBar/ActionBar-3069d5f1.css.map +0 -1
  52. package/dist/Box/Box.d.ts +0 -18
  53. package/dist/Box/Box.d.ts.map +0 -1
  54. package/dist/Box/index.d.ts +0 -3
  55. package/dist/Box/index.d.ts.map +0 -1
  56. package/dist/DialogV1/Dialog-dce13989.css.map +0 -1
  57. package/dist/DialogV1/Dialog.d.ts.map +0 -1
  58. package/dist/DialogV1/Dialog.module.css.js +0 -5
  59. package/dist/DialogV1/index.d.ts.map +0 -1
  60. package/dist/constants.d.ts +0 -15
  61. package/dist/constants.d.ts.map +0 -1
  62. package/dist/constants.js +0 -28
  63. package/dist/sx.d.ts +0 -24
  64. package/dist/sx.d.ts.map +0 -1
  65. package/dist/utils/layout.d.ts +0 -21
  66. package/dist/utils/layout.d.ts.map +0 -1
  67. /package/dist/{DialogV1 → deprecated/DialogV1}/index.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- import './ActionBar-3069d5f1.css';
1
+ import './ActionBar-8ed12fe7.css';
2
2
 
3
- var styles = {"List":"prc-ActionBar-List-Z4LzW","Nav":"prc-ActionBar-Nav-hc-9G","Divider":"prc-ActionBar-Divider-CcBO8"};
3
+ var styles = {"List":"prc-ActionBar-List-Z4LzW","Nav":"prc-ActionBar-Nav-hc-9G","Divider":"prc-ActionBar-Divider-CcBO8","Group":"prc-ActionBar-Group-hBx7J"};
4
4
 
5
5
  export { styles as default };
@@ -2,6 +2,9 @@ export type { ActionBarProps } from './ActionBar';
2
2
  declare const ActionBar: import("react").FC<import("react").PropsWithChildren<import("./ActionBar").ActionBarProps>> & {
3
3
  IconButton: import("react").ForwardRefExoticComponent<import("./ActionBar").ActionBarIconButtonProps & import("react").RefAttributes<unknown>>;
4
4
  Divider: () => import("react").JSX.Element | null;
5
+ Group: import("react").ForwardRefExoticComponent<{
6
+ children?: import("react").ReactNode | undefined;
7
+ } & import("react").RefAttributes<unknown>>;
5
8
  };
6
9
  export default ActionBar;
7
10
  export { ActionBar };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ActionBar/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAC,cAAc,EAAC,MAAM,aAAa,CAAA;AAE/C,QAAA,MAAM,SAAS;;;CAGb,CAAA;AAEF,eAAe,SAAS,CAAA;AACxB,OAAO,EAAC,SAAS,EAAC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ActionBar/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAC,cAAc,EAAC,MAAM,aAAa,CAAA;AAE/C,QAAA,MAAM,SAAS;;;;;;CAIb,CAAA;AAEF,eAAe,SAAS,CAAA;AACxB,OAAO,EAAC,SAAS,EAAC,CAAA"}
@@ -1,8 +1,9 @@
1
- import { ActionBar as ActionBar$1, VerticalDivider, ActionBarIconButton } from './ActionBar.js';
1
+ import { ActionBar as ActionBar$1, ActionBarGroup, VerticalDivider, ActionBarIconButton } from './ActionBar.js';
2
2
 
3
3
  const ActionBar = Object.assign(ActionBar$1, {
4
4
  IconButton: ActionBarIconButton,
5
- Divider: VerticalDivider
5
+ Divider: VerticalDivider,
6
+ Group: ActionBarGroup
6
7
  });
7
8
 
8
9
  export { ActionBar, ActionBar as default };
@@ -98,6 +98,6 @@ export declare const ActionList: (<As extends React.ElementType = "ul">(props: (
98
98
  /** Heading for `ActionList.Group` */
99
99
  GroupHeading: import("../utils/types").FCWithSlotMarker<import("react").PropsWithChildren<import("./Group").ActionListGroupHeadingProps>>;
100
100
  /** Secondary action */
101
- TrailingAction: import("../utils/polymorphic").ForwardRefComponent<"button" | "a", import("./TrailingAction").ActionListTrailingActionProps>;
101
+ TrailingAction: import("../utils/polymorphic").ForwardRefComponent<"a" | "button", import("./TrailingAction").ActionListTrailingActionProps>;
102
102
  };
103
103
  //# sourceMappingURL=index.d.ts.map
@@ -31,7 +31,7 @@ declare const _default: React.FC<React.PropsWithChildren<{
31
31
  } | null>;
32
32
  Input: import("../utils/polymorphic").ForwardRefComponent<import("../utils/polymorphic").ForwardRefComponent<"input", import("..").TextInputProps> & {
33
33
  __SLOT__: symbol;
34
- Action: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label" | "size" | "tooltipDirection"> & {
34
+ Action: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "aria-label" | "tooltipDirection"> & {
35
35
  children?: React.ReactNode;
36
36
  "aria-label"?: string;
37
37
  tooltipDirection?: "n" | "ne" | "e" | "se" | "s" | "sw" | "w" | "nw";
@@ -1,13 +1,12 @@
1
1
  import type React from 'react';
2
2
  import { type CSSProperties, type PropsWithChildren } from 'react';
3
- import type { SystemCommonProps, SystemTypographyProps } from './constants';
4
3
  import 'focus-visible';
5
4
  export type BaseStylesProps = PropsWithChildren & {
6
5
  as?: React.ComponentType<any> | keyof JSX.IntrinsicElements;
7
6
  className?: string;
8
7
  style?: CSSProperties;
9
8
  color?: string;
10
- } & SystemTypographyProps & SystemCommonProps;
11
- declare function BaseStyles({ children, color, fontFamily, lineHeight, className, as: Component, style, ...rest }: BaseStylesProps): React.JSX.Element;
9
+ };
10
+ declare function BaseStyles({ children, color, className, as: Component, style, ...rest }: BaseStylesProps): React.JSX.Element;
12
11
  export default BaseStyles;
13
12
  //# sourceMappingURL=BaseStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseStyles.d.ts","sourceRoot":"","sources":["../src/BaseStyles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEhE,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,aAAa,CAAA;AAKzE,OAAO,eAAe,CAAA;AAEtB,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAEhD,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,qBAAqB,GACvB,iBAAiB,CAAA;AAEnB,iBAAS,UAAU,CAAC,EAClB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,EAAE,EAAE,SAAiB,EACrB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,qBA+BjB;AAED,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"BaseStyles.d.ts","sourceRoot":"","sources":["../src/BaseStyles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAKhE,OAAO,eAAe,CAAA;AAEtB,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAEhD,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,iBAAS,UAAU,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,SAAiB,EAAE,KAAK,EAAE,GAAG,IAAI,EAAC,EAAE,eAAe,qBAmBvG;AAED,eAAe,UAAU,CAAA"}
@@ -1,17 +1,14 @@
1
1
  import { c } from 'react-compiler-runtime';
2
2
  import { clsx } from 'clsx';
3
- import { useTheme } from './ThemeProvider.js';
4
3
  import classes from './BaseStyles.module.css.js';
5
4
  import 'focus-visible';
6
5
  import { jsx } from 'react/jsx-runtime';
7
6
 
8
7
  function BaseStyles(t0) {
9
- const $ = c(27);
8
+ const $ = c(20);
10
9
  let children;
11
10
  let className;
12
11
  let color;
13
- let fontFamily;
14
- let lineHeight;
15
12
  let rest;
16
13
  let style;
17
14
  let t1;
@@ -19,8 +16,6 @@ function BaseStyles(t0) {
19
16
  ({
20
17
  children,
21
18
  color,
22
- fontFamily,
23
- lineHeight,
24
19
  className,
25
20
  as: t1,
26
21
  style,
@@ -30,90 +25,69 @@ function BaseStyles(t0) {
30
25
  $[1] = children;
31
26
  $[2] = className;
32
27
  $[3] = color;
33
- $[4] = fontFamily;
34
- $[5] = lineHeight;
35
- $[6] = rest;
36
- $[7] = style;
37
- $[8] = t1;
28
+ $[4] = rest;
29
+ $[5] = style;
30
+ $[6] = t1;
38
31
  } else {
39
32
  children = $[1];
40
33
  className = $[2];
41
34
  color = $[3];
42
- fontFamily = $[4];
43
- lineHeight = $[5];
44
- rest = $[6];
45
- style = $[7];
46
- t1 = $[8];
35
+ rest = $[4];
36
+ style = $[5];
37
+ t1 = $[6];
47
38
  }
48
39
  const Component = t1 === undefined ? "div" : t1;
49
- const {
50
- colorMode,
51
- colorScheme,
52
- dayScheme,
53
- nightScheme
54
- } = useTheme();
55
40
  let t2;
56
- if ($[9] !== className) {
41
+ if ($[7] !== className) {
57
42
  t2 = clsx(classes.BaseStyles, className);
58
- $[9] = className;
59
- $[10] = t2;
43
+ $[7] = className;
44
+ $[8] = t2;
60
45
  } else {
61
- t2 = $[10];
46
+ t2 = $[8];
62
47
  }
63
48
  const newClassName = t2;
64
49
  let t3;
65
- if ($[11] !== color || $[12] !== fontFamily || $[13] !== lineHeight) {
50
+ if ($[9] !== color) {
66
51
  t3 = {
67
- "--BaseStyles-fgColor": color,
68
- "--BaseStyles-fontFamily": fontFamily,
69
- "--BaseStyles-lineHeight": lineHeight
52
+ "--BaseStyles-fgColor": color
70
53
  };
71
- $[11] = color;
72
- $[12] = fontFamily;
73
- $[13] = lineHeight;
74
- $[14] = t3;
54
+ $[9] = color;
55
+ $[10] = t3;
75
56
  } else {
76
- t3 = $[14];
57
+ t3 = $[10];
77
58
  }
78
59
  const baseStyles = t3;
79
- const t4 = colorMode === "auto" ? "auto" : colorScheme !== null && colorScheme !== void 0 && colorScheme.includes("dark") ? "dark" : "light";
80
- let t5;
81
- if ($[15] !== baseStyles || $[16] !== style) {
82
- t5 = {
60
+ let t4;
61
+ if ($[11] !== baseStyles || $[12] !== style) {
62
+ t4 = {
83
63
  ...baseStyles,
84
64
  ...style
85
65
  };
86
- $[15] = baseStyles;
87
- $[16] = style;
88
- $[17] = t5;
66
+ $[11] = baseStyles;
67
+ $[12] = style;
68
+ $[13] = t4;
89
69
  } else {
90
- t5 = $[17];
70
+ t4 = $[13];
91
71
  }
92
- let t6;
93
- if ($[18] !== Component || $[19] !== children || $[20] !== dayScheme || $[21] !== newClassName || $[22] !== nightScheme || $[23] !== rest || $[24] !== t4 || $[25] !== t5) {
94
- t6 = /*#__PURE__*/jsx(Component, {
72
+ let t5;
73
+ if ($[14] !== Component || $[15] !== children || $[16] !== newClassName || $[17] !== rest || $[18] !== t4) {
74
+ t5 = /*#__PURE__*/jsx(Component, {
95
75
  className: newClassName,
96
76
  "data-portal-root": true,
97
- "data-color-mode": t4,
98
- "data-light-theme": dayScheme,
99
- "data-dark-theme": nightScheme,
100
- style: t5,
77
+ style: t4,
101
78
  ...rest,
102
79
  children: children
103
80
  });
104
- $[18] = Component;
105
- $[19] = children;
106
- $[20] = dayScheme;
107
- $[21] = newClassName;
108
- $[22] = nightScheme;
109
- $[23] = rest;
110
- $[24] = t4;
111
- $[25] = t5;
112
- $[26] = t6;
81
+ $[14] = Component;
82
+ $[15] = children;
83
+ $[16] = newClassName;
84
+ $[17] = rest;
85
+ $[18] = t4;
86
+ $[19] = t5;
113
87
  } else {
114
- t6 = $[26];
88
+ t5 = $[19];
115
89
  }
116
- return t6;
90
+ return t5;
117
91
  }
118
92
 
119
93
  export { BaseStyles as default };
@@ -1 +1 @@
1
- {"version":3,"file":"LabelGroup.d.ts","sourceRoot":"","sources":["../../src/LabelGroup/LabelGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,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,CA0OlE,CAAA;AAID,eAAe,UAAU,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 = parseInt(theme.space[2], 10);
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<"button" | "a", ActionListTrailingActionProps>;
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;AAM/F,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,OAAO,SAAS,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,QAAQ,EAAE,MAAM,CAAC,CAAA;IAC9C,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA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AAC,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"}
@@ -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(${slideAnimationDistance * x}px, ${slideAnimationDistance * y}px)`, "translate(0, 0)"]
252
+ transform: [`translate(${8 * x}px, ${8 * y}px)`, "translate(0, 0)"]
256
253
  }, {
257
254
  duration: animationDuration,
258
- easing: slideAnimationEasing
255
+ easing: "cubic-bezier(0.33, 1, 0.68, 1)"
259
256
  });
260
257
  };
261
- t10 = [anchorSide, slideAnimationDistance, slideAnimationEasing, visibility];
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,EAAC,MAAM,0BAA0B,CAAA;AAEzE,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,8BAA8B,CAAA;AAIjF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAA;AAEhE,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAA;AAMhF,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,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;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AAM,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
- if (!leadingIcon) {
156
- console.warn("A `leadingIcon` prop is required when hiding visible labels");
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: leadingIcon,
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)) && childArg.props.leadingIcon) {
204
- if (isElement(childArg.props.leadingIcon)) {
205
- return childArg.props.leadingIcon;
206
- } else {
207
- const LeadingIcon = childArg.props.leadingIcon;
208
- return /*#__PURE__*/jsx(LeadingIcon, {});
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 icon comes before item label */
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,+CAA+C;IAC/C,WAAW,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,CAAA;IAC9F,kEAAkE;I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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
- const $ = c(30);
10
- let LeadingIcon;
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
- leadingIcon: t2,
20
- selected: t3,
21
- className: t4,
21
+ leadingVisual: t2,
22
+ leadingIcon: t3,
23
+ selected: t4,
24
+ className: t5,
22
25
  defaultSelected: _defaultSelected,
23
- count: t5,
24
- ...t6
26
+ count: t6,
27
+ ...t7
25
28
  } = t0;
26
29
  children = t1;
27
- LeadingIcon = t2;
28
- selected = t3;
29
- className = t4;
30
- count = t5;
31
- rest = t6;
30
+ leadingVisual = t2;
31
+ leadingIcon = t3;
32
+ selected = t4;
33
+ className = t5;
34
+ count = t6;
35
+ rest = t7;
32
36
  $[0] = t0;
33
- $[1] = LeadingIcon;
34
- $[2] = children;
35
- $[3] = className;
36
- $[4] = count;
37
- $[5] = rest;
38
- $[6] = selected;
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
- LeadingIcon = $[1];
41
- children = $[2];
42
- className = $[3];
43
- count = $[4];
44
- rest = $[5];
45
- selected = $[6];
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 ($[7] === Symbol.for("react.memo_cache_sentinel")) {
55
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
49
56
  t1 = clsx(classes.Item);
50
- $[7] = t1;
57
+ $[8] = t1;
51
58
  } else {
52
- t1 = $[7];
59
+ t1 = $[8];
53
60
  }
54
61
  const t2 = selected ? "" : undefined;
55
62
  let t3;
56
- if ($[8] !== className) {
63
+ if ($[9] !== className) {
57
64
  t3 = clsx(classes.Button, className);
58
- $[8] = className;
59
- $[9] = t3;
65
+ $[9] = className;
66
+ $[10] = t3;
60
67
  } else {
61
- t3 = $[9];
68
+ t3 = $[10];
62
69
  }
63
70
  let t4;
64
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
71
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
65
72
  t4 = clsx(classes.Content, "segmentedControl-content");
66
- $[10] = t4;
73
+ $[11] = t4;
67
74
  } else {
68
- t4 = $[10];
75
+ t4 = $[11];
69
76
  }
70
77
  let t5;
71
- if ($[11] !== LeadingIcon) {
72
- t5 = LeadingIcon && /*#__PURE__*/jsx("div", {
78
+ if ($[12] !== LeadingVisual) {
79
+ t5 = LeadingVisual && /*#__PURE__*/jsx("div", {
73
80
  className: classes.LeadingIcon,
74
- children: isElement(LeadingIcon) ? LeadingIcon : /*#__PURE__*/jsx(LeadingIcon, {})
81
+ children: isElement(LeadingVisual) ? LeadingVisual : /*#__PURE__*/jsx(LeadingVisual, {})
75
82
  });
76
- $[11] = LeadingIcon;
77
- $[12] = t5;
83
+ $[12] = LeadingVisual;
84
+ $[13] = t5;
78
85
  } else {
79
- t5 = $[12];
86
+ t5 = $[13];
80
87
  }
81
88
  let t6;
82
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
89
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
83
90
  t6 = clsx(classes.Text, "segmentedControl-text");
84
- $[13] = t6;
91
+ $[14] = t6;
85
92
  } else {
86
- t6 = $[13];
93
+ t6 = $[14];
87
94
  }
88
95
  let t7;
89
- if ($[14] !== children) {
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
- $[14] = children;
96
- $[15] = t7;
102
+ $[15] = children;
103
+ $[16] = t7;
97
104
  } else {
98
- t7 = $[15];
105
+ t7 = $[16];
99
106
  }
100
107
  let t8;
101
- if ($[16] !== count) {
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
- $[16] = count;
109
- $[17] = t8;
115
+ $[17] = count;
116
+ $[18] = t8;
110
117
  } else {
111
- t8 = $[17];
118
+ t8 = $[18];
112
119
  }
113
120
  let t9;
114
- if ($[18] !== t5 || $[19] !== t7 || $[20] !== t8) {
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
- $[18] = t5;
120
- $[19] = t7;
121
- $[20] = t8;
122
- $[21] = t9;
126
+ $[19] = t5;
127
+ $[20] = t7;
128
+ $[21] = t8;
129
+ $[22] = t9;
123
130
  } else {
124
- t9 = $[21];
131
+ t9 = $[22];
125
132
  }
126
133
  let t10;
127
- if ($[22] !== rest || $[23] !== selected || $[24] !== t3 || $[25] !== t9) {
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
- $[22] = rest;
136
- $[23] = selected;
137
- $[24] = t3;
138
- $[25] = t9;
139
- $[26] = t10;
142
+ $[23] = rest;
143
+ $[24] = selected;
144
+ $[25] = t3;
145
+ $[26] = t9;
146
+ $[27] = t10;
140
147
  } else {
141
- t10 = $[26];
148
+ t10 = $[27];
142
149
  }
143
150
  let t11;
144
- if ($[27] !== t10 || $[28] !== t2) {
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
- $[27] = t10;
151
- $[28] = t2;
152
- $[29] = t11;
157
+ $[28] = t10;
158
+ $[29] = t2;
159
+ $[30] = t11;
153
160
  } else {
154
- t11 = $[29];
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>, "aria-label" | "size" | "tooltipDirection"> & {
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";