@primer/styled-react 1.0.6-rc.db99a7323 → 1.0.6-rc.e9cd42775

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.
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "components": [
3
3
  "ActionList",
4
- "ActionMenu",
5
4
  "BaseStyles",
6
5
  "Box",
7
6
  "Breadcrumb",
8
7
  "Breadcrumbs",
9
8
  "Button",
10
- "CounterLabel",
11
9
  "Dialog",
12
10
  "Flash",
13
11
  "FormControl",
@@ -18,7 +16,6 @@
18
16
  "Link",
19
17
  "LinkButton",
20
18
  "Octicon",
21
- "Overlay",
22
19
  "SegmentedControl",
23
20
  "Spinner",
24
21
  "Table",
@@ -28,8 +25,6 @@
28
25
  "ThemeProvider",
29
26
  "Timeline",
30
27
  "ToggleSwitch",
31
- "Token",
32
- "Tooltip",
33
28
  "Truncate",
34
29
  "UnderlineNav"
35
30
  ],
@@ -48,7 +43,6 @@
48
43
  "BreadcrumbsItemProps",
49
44
  "BreadcrumbsProps",
50
45
  "ButtonProps",
51
- "CounterLabelProps",
52
46
  "DataTableContainerProps",
53
47
  "DialogHeaderProps",
54
48
  "DialogProps",
@@ -85,8 +79,6 @@
85
79
  "TimelineItemProps",
86
80
  "TimelineProps",
87
81
  "ToggleSwitchProps",
88
- "TokenProps",
89
- "TooltipProps",
90
82
  "TruncateProps",
91
83
  "UnderlineNavItemProps",
92
84
  "UnderlineNavProps"
@@ -42,17 +42,6 @@ Octicon,
42
42
  */
43
43
  type OcticonProps, } from './components/deprecated/Octicon';
44
44
  export {
45
- /**
46
- * @deprecated Usage of the `sx` prop with this component is no longer
47
- * supported. Use the component from `@primer/react` with CSS Modules instead.
48
- */
49
- Tooltip,
50
- /**
51
- * @deprecated Usage of the `sx` prop with this component is no longer
52
- * supported. Use the component from `@primer/react` with CSS Modules instead.
53
- */
54
- type TooltipProps, } from './components/deprecated/Tooltip';
55
- export {
56
45
  /**
57
46
  * @deprecated Usage of the `sx` prop with this component is no longer
58
47
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW;AAEhB;;;GAGG;AACH,KAAK,eAAe,GACrB,MAAM,gCAAgC,CAAA;AAEvC,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW;AAEhB;;;GAGG;AACH,KAAK,iBAAiB,GACvB,MAAM,kCAAkC,CAAA;AAEzC,OAAO;AACL;;;GAGG;AACH,OAAO;AAEP;;;GAGG;AACH,KAAK,YAAY,GAClB,MAAM,iCAAiC,CAAA;AAExC,OAAO;AACL;;;GAGG;AACH,OAAO;AAEP;;;GAGG;AACH,KAAK,YAAY,GAClB,MAAM,iCAAiC,CAAA;AAExC,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe;AAEpB;;;GAGG;AACH,KAAK,mBAAmB;AAExB;;;GAGG;AACH,KAAK,oBAAoB,GAC1B,MAAM,oCAAoC,CAAA"}
1
+ {"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW;AAEhB;;;GAGG;AACH,KAAK,eAAe,GACrB,MAAM,gCAAgC,CAAA;AAEvC,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW;AAEhB;;;GAGG;AACH,KAAK,iBAAiB,GACvB,MAAM,kCAAkC,CAAA;AAEzC,OAAO;AACL;;;GAGG;AACH,OAAO;AAEP;;;GAGG;AACH,KAAK,YAAY,GAClB,MAAM,iCAAiC,CAAA;AAExC,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe;AAEpB;;;GAGG;AACH,KAAK,mBAAmB;AAExB;;;GAGG;AACH,KAAK,oBAAoB,GAC1B,MAAM,oCAAoC,CAAA"}
@@ -1,5 +1,4 @@
1
1
  export { TabNav } from './components/deprecated/TabNav.js';
2
2
  export { Dialog } from './components/deprecated/DialogV1.js';
3
3
  export { Octicon } from './components/deprecated/Octicon.js';
4
- export { Tooltip } from './components/deprecated/Tooltip.js';
5
4
  export { ActionList } from './components/deprecated/ActionList.js';
@@ -10,17 +10,6 @@ Dialog,
10
10
  */
11
11
  type DialogProps, } from './components/Dialog';
12
12
  export {
13
- /**
14
- * @deprecated Usage of the `sx` prop with this component is no longer
15
- * supported. Use the component from `@primer/react` with CSS Modules instead.
16
- */
17
- Tooltip,
18
- /**
19
- * @deprecated Usage of the `sx` prop with this component is no longer
20
- * supported. Use the component from `@primer/react` with CSS Modules instead.
21
- */
22
- type TooltipProps, } from './components/Tooltip';
23
- export {
24
13
  /**
25
14
  * @deprecated Usage of the `sx` prop with this component is no longer
26
15
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -1 +1 @@
1
- {"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW,GACjB,MAAM,qBAAqB,CAAA;AAE5B,OAAO;AACL;;;GAGG;AACH,OAAO;AAEP;;;GAGG;AACH,KAAK,YAAY,GAClB,MAAM,sBAAsB,CAAA;AAE7B,OAAO;AACL;;;GAGG;AACH,KAAK;AAEL;;;GAGG;AACH,KAAK,uBAAuB;AAE5B;;;GAGG;AACH,KAAK,UAAU;AAEf;;;GAGG;AACH,KAAK,cAAc;AAEnB;;;GAGG;AACH,KAAK,cAAc;AAEnB;;;GAGG;AACH,KAAK,aAAa;AAElB;;;GAGG;AACH,KAAK,gBAAgB;AAErB;;;GAGG;AACH,KAAK,cAAc;AAEnB;;;GAGG;AACH,KAAK,eAAe;AAEpB;;;GAGG;AACH,KAAK,kBAAkB;AAEvB;;;GAGG;AACH,KAAK,iBAAiB,GACvB,MAAM,wBAAwB,CAAA"}
1
+ {"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW,GACjB,MAAM,qBAAqB,CAAA;AAE5B,OAAO;AACL;;;GAGG;AACH,KAAK;AAEL;;;GAGG;AACH,KAAK,uBAAuB;AAE5B;;;GAGG;AACH,KAAK,UAAU;AAEf;;;GAGG;AACH,KAAK,cAAc;AAEnB;;;GAGG;AACH,KAAK,cAAc;AAEnB;;;GAGG;AACH,KAAK,aAAa;AAElB;;;GAGG;AACH,KAAK,gBAAgB;AAErB;;;GAGG;AACH,KAAK,cAAc;AAEnB;;;GAGG;AACH,KAAK,eAAe;AAEpB;;;GAGG;AACH,KAAK,kBAAkB;AAEvB;;;GAGG;AACH,KAAK,iBAAiB,GACvB,MAAM,wBAAwB,CAAA"}
@@ -1,3 +1,2 @@
1
1
  export { Dialog } from './components/Dialog.js';
2
- export { Tooltip } from './components/Tooltip.js';
3
2
  export { Table } from './components/DataTable.js';
package/dist/index.d.ts CHANGED
@@ -100,12 +100,6 @@ type ActionListTrailingVisualProps,
100
100
  */
101
101
  type ActionListTrailingActionProps, } from './components/ActionList';
102
102
  export {
103
- /**
104
- * @deprecated Usage of the `sx` prop with this component is no longer
105
- * supported. Use the component from `@primer/react` with CSS Modules instead.
106
- */
107
- ActionMenu, } from './components/ActionMenu';
108
- export {
109
103
  /**
110
104
  * @deprecated Usage of the `sx` prop with this component is no longer
111
105
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -138,17 +132,6 @@ ButtonComponent as Button,
138
132
  */
139
133
  type ButtonComponentProps as ButtonProps, } from './components/Button';
140
134
  export {
141
- /**
142
- * @deprecated Usage of the `sx` prop with this component is no longer
143
- * supported. Use the component from `@primer/react` with CSS Modules instead.
144
- */
145
- CounterLabel,
146
- /**
147
- * @deprecated Usage of the `sx` prop with this component is no longer
148
- * supported. Use the component from `@primer/react` with CSS Modules instead.
149
- */
150
- type CounterLabelProps, } from './components/CounterLabel';
151
- export {
152
135
  /**
153
136
  * @deprecated Usage of the `sx` prop with this component is no longer
154
137
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -238,12 +221,6 @@ LinkButton,
238
221
  */
239
222
  type LinkButtonProps, } from './components/LinkButton';
240
223
  export {
241
- /**
242
- * @deprecated Usage of the `sx` prop with this component is no longer
243
- * supported. Use the component from `@primer/react` with CSS Modules instead.
244
- */
245
- Overlay, } from './components/Overlay';
246
- export {
247
224
  /**
248
225
  * @deprecated Usage of the `sx` prop with this component is no longer
249
226
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -345,28 +322,6 @@ ToggleSwitch,
345
322
  */
346
323
  type ToggleSwitchProps, } from './components/ToggleSwitch';
347
324
  export {
348
- /**
349
- * @deprecated Usage of the `sx` prop with this component is no longer
350
- * supported. Use the component from `@primer/react` with CSS Modules instead.
351
- */
352
- Tooltip,
353
- /**
354
- * @deprecated Usage of the `sx` prop with this component is no longer
355
- * supported. Use the component from `@primer/react` with CSS Modules instead.
356
- */
357
- type TooltipProps, } from './components/Tooltip';
358
- export {
359
- /**
360
- * @deprecated Usage of the `sx` prop with this component is no longer
361
- * supported. Use the component from `@primer/react` with CSS Modules instead.
362
- */
363
- Token,
364
- /**
365
- * @deprecated Usage of the `sx` prop with this component is no longer
366
- * supported. Use the component from `@primer/react` with CSS Modules instead.
367
- */
368
- type TokenProps, } from './components/Token';
369
- export {
370
325
  /**
371
326
  * @deprecated Usage of the `sx` prop with this component is no longer
372
327
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO;AACL;;;GAGG;AACH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ACxB,MAAM,uBAAuB,CAAA;AAE9B,OAAO;AACL;;;GAGG;AACH,YAAY;AAEZ;;;GAGG;AACH,KAAK,iBAAiB,GACvB,MAAM,2BAA2B,CAAA;AAElC,OAAO;AACL;;;GAGG;AACH,QAAQ;AAER;;;GAGG;AACH,KAAK,aAAa,GACnB,MAAM,uBAAuB,CAAA;AAE9B,OAAO;AACL;;;GAGG;AACH,YAAY;AAEZ;;;GAGG;AACH,KAAK,iBAAiB;AAEtB;;;GAGG;AACH,KAAK,qBAAqB,GAC3B,MAAM,2BAA2B,CAAA;AAElC,OAAO;AACL;;;GAGG;AACH,KAAK;AAEL;;;GAGG;AACH,EAAE;AAEF;;;GAGG;AACH,KAAK,MAAM,GACZ,MAAM,MAAM,CAAA;AAEb,OAAO;AACL;;;GAGG;AACH,KAAK,uBAAuB,GAC7B,MAAM,MAAM,CAAA"}
package/dist/index.js CHANGED
@@ -5,10 +5,8 @@ export { BaseStyles } from './components/BaseStyles.js';
5
5
  export { theme } from '@primer/react';
6
6
  export { get as themeGet } from './theme-get.js';
7
7
  export { ActionList } from './components/ActionList.js';
8
- export { ActionMenu } from './components/ActionMenu.js';
9
8
  export { Breadcrumb, Breadcrumbs } from './components/Breadcrumbs.js';
10
9
  export { ButtonComponent as Button } from './components/Button.js';
11
- export { CounterLabel } from './components/CounterLabel.js';
12
10
  export { Dialog } from './components/Dialog.js';
13
11
  export { Flash } from './components/Flash.js';
14
12
  export { FormControl } from './components/FormControl.js';
@@ -18,15 +16,12 @@ export { IconButton } from './components/IconButton.js';
18
16
  export { Label } from './components/Label.js';
19
17
  export { Link } from './components/Link.js';
20
18
  export { LinkButton } from './components/LinkButton.js';
21
- export { Overlay } from './components/Overlay.js';
22
19
  export { SegmentedControl } from './components/SegmentedControl.js';
23
20
  export { Spinner } from './components/Spinner.js';
24
21
  export { Text } from './components/Text.js';
25
22
  export { TextInput } from './components/TextInput.js';
26
23
  export { Timeline } from './components/Timeline.js';
27
24
  export { ToggleSwitch } from './components/ToggleSwitch.js';
28
- export { Tooltip } from './components/Tooltip.js';
29
- export { Token } from './components/Token.js';
30
25
  export { Truncate } from './components/Truncate.js';
31
26
  export { UnderlineNav } from './components/UnderlineNav.js';
32
27
  export { sx } from './sx.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "1.0.6-rc.db99a7323",
3
+ "version": "1.0.6-rc.e9cd42775",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,14 +0,0 @@
1
- import { ActionMenu as PrimerActionMenu, type SlotMarker } from '@primer/react';
2
- import { type SxProp } from '../sx';
3
- import type { ComponentProps } from 'react';
4
- import type React from 'react';
5
- type ActionMenuOverlayProps = ComponentProps<typeof PrimerActionMenu.Overlay> & SxProp;
6
- declare const ActionMenuOverlay: React.ComponentType<ActionMenuOverlayProps> & SlotMarker;
7
- export declare const ActionMenu: typeof PrimerActionMenu & {
8
- Button: typeof PrimerActionMenu.Button;
9
- Anchor: typeof PrimerActionMenu.Anchor;
10
- Overlay: typeof ActionMenuOverlay;
11
- Divider: typeof PrimerActionMenu.Divider;
12
- };
13
- export {};
14
- //# sourceMappingURL=ActionMenu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,KAAK,sBAAsB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;AAEtF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,UAMtE,CAAA;AAUD,eAAO,MAAM,UAAU,EAAE,OAAO,gBAAgB,GAAG;IACjD,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,OAAO,EAAE,OAAO,gBAAgB,CAAC,OAAO,CAAA;CAMxC,CAAA"}
@@ -1,29 +0,0 @@
1
- import { ActionMenu as ActionMenu$1 } from '@primer/react';
2
- import { sx } from '../sx.js';
3
- import styled from 'styled-components';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- const ActionMenuOverlay = styled(ActionMenu$1.Overlay).withConfig({
7
- shouldForwardProp: prop => prop !== 'sx'
8
- }).withConfig({
9
- displayName: "ActionMenu__ActionMenuOverlay",
10
- componentId: "sc-w5s60e-0"
11
- })(["", ""], sx);
12
- ActionMenuOverlay.__SLOT__ = ActionMenu$1.Overlay.__SLOT__;
13
-
14
- // Create a wrapper component to avoid mutating the original PrimerActionMenu
15
- function ActionMenuRoot(props) {
16
- return /*#__PURE__*/jsx(ActionMenu$1, {
17
- ...props
18
- });
19
- }
20
- ActionMenuRoot.displayName = 'ActionMenu';
21
- ActionMenuRoot.__SLOT__ = ActionMenu$1.__SLOT__;
22
- const ActionMenu = Object.assign(ActionMenuRoot, {
23
- Button: ActionMenu$1.Button,
24
- Anchor: ActionMenu$1.Anchor,
25
- Overlay: ActionMenuOverlay,
26
- Divider: ActionMenu$1.Divider
27
- });
28
-
29
- export { ActionMenu };
@@ -1,11 +0,0 @@
1
- import { type CounterLabelProps as PrimerCounterLabelProps } from '@primer/react';
2
- import { type SxProp } from '../sx';
3
- export type CounterLabelProps = PrimerCounterLabelProps & SxProp;
4
- export declare const CounterLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
5
- scheme?: "primary" | "secondary";
6
- variant?: "primary" | "secondary";
7
- className?: string;
8
- } & {
9
- children?: import("react").ReactNode | undefined;
10
- } & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
11
- //# sourceMappingURL=CounterLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CounterLabel.d.ts","sourceRoot":"","sources":["../../src/components/CounterLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AAGnH,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,eAAO,MAAM,YAAY;;;;;;4DAEvB,CAAA"}
@@ -1,14 +0,0 @@
1
- import { CounterLabel as CounterLabel$1 } from '@primer/react';
2
- import { Box } from './Box.js';
3
- import { forwardRef } from 'react';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- const CounterLabel = /*#__PURE__*/forwardRef(function CounterLabel(props, ref) {
7
- return /*#__PURE__*/jsx(Box, {
8
- as: CounterLabel$1,
9
- ref: ref,
10
- ...props
11
- });
12
- });
13
-
14
- export { CounterLabel };
@@ -1,8 +0,0 @@
1
- import { type OverlayProps as PrimerOverlayProps } from '@primer/react';
2
- import { type ForwardRefComponent } from '../polymorphic';
3
- import { type SxProp } from '../sx';
4
- type OverlayProps = PrimerOverlayProps & SxProp;
5
- declare const Overlay: ForwardRefComponent<'div', OverlayProps>;
6
- export { Overlay };
7
- export type { OverlayProps };
8
- //# sourceMappingURL=Overlay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/components/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,eAAe,CAAA;AAE/F,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,KAAK,EAAE,YAAY,CAIrD,CAAA;AAED,OAAO,EAAC,OAAO,EAAC,CAAA;AAChB,YAAY,EAAC,YAAY,EAAC,CAAA"}
@@ -1,12 +0,0 @@
1
- import { Overlay as Overlay$1 } from '@primer/react';
2
- import styled from 'styled-components';
3
- import { sx } from '../sx.js';
4
-
5
- const Overlay = styled(Overlay$1).withConfig({
6
- shouldForwardProp: prop => prop !== 'sx'
7
- }).withConfig({
8
- displayName: "Overlay",
9
- componentId: "sc-tjbd74-0"
10
- })(["", ""], sx);
11
-
12
- export { Overlay };
@@ -1,8 +0,0 @@
1
- import { type TokenProps as PrimerTokenProps } from '@primer/react';
2
- import { type SxProp } from '../sx';
3
- import type { ForwardRefComponent } from '../polymorphic';
4
- import type { PropsWithChildren } from 'react';
5
- type TokenProps = PropsWithChildren<PrimerTokenProps> & SxProp;
6
- declare const Token: ForwardRefComponent<"a" | "button" | "span", TokenProps>;
7
- export { Token, type TokenProps };
8
- //# sourceMappingURL=Token.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../src/components/Token.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,UAAU,IAAI,gBAAgB,EAAuB,MAAM,eAAe,CAAA;AACvF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAG5C,KAAK,UAAU,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAA;AAQ9D,QAAA,MAAM,KAAK,EAEL,mBAAmB,CAAC,GAAG,GAAG,QAAQ,GAAG,MAAM,EAAE,UAAU,CAAC,CAAA;AAE9D,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,CAAA"}
@@ -1,26 +0,0 @@
1
- import { forwardRef } from 'react';
2
- import { Token as Token$1 } from '@primer/react';
3
- import { sx } from '../sx.js';
4
- import styled from 'styled-components';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- const StyledToken = styled(Token$1).withConfig({
8
- shouldForwardProp: prop => prop !== 'sx'
9
- }).withConfig({
10
- displayName: "Token__StyledToken",
11
- componentId: "sc-ldn0r8-0"
12
- })(["", ""], sx);
13
- const Token = /*#__PURE__*/forwardRef(({
14
- as,
15
- ...props
16
- }, ref) => {
17
- return /*#__PURE__*/jsx(StyledToken, {
18
- ...props,
19
- ...(as ? {
20
- forwardedAs: as
21
- } : {}),
22
- ref: ref
23
- });
24
- });
25
-
26
- export { Token };
@@ -1,7 +0,0 @@
1
- import { type TooltipProps as PrimerTooltipProps, type SlotMarker } from '@primer/react';
2
- import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
3
- import type { SxProp } from '../sx';
4
- type TooltipProps = PrimerTooltipProps & SxProp;
5
- declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>> & SlotMarker;
6
- export { Tooltip, type TooltipProps };
7
- //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAEhH,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AACpF,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC,GAAG,UAKvF,CAAA;AAIF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -1,15 +0,0 @@
1
- import { Tooltip as Tooltip$1 } from '@primer/react';
2
- import { Box } from './Box.js';
3
- import { forwardRef } from 'react';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- const Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, ref) {
7
- return /*#__PURE__*/jsx(Box, {
8
- as: Tooltip$1,
9
- ref: ref,
10
- ...props
11
- });
12
- });
13
- Tooltip.__SLOT__ = Tooltip$1.__SLOT__;
14
-
15
- export { Tooltip };
@@ -1,13 +0,0 @@
1
- import { type TooltipProps as PrimerTooltipProps } from '@primer/react/deprecated';
2
- import { type SxProp } from '../../sx';
3
- import { type PropsWithChildren } from 'react';
4
- type TooltipProps = PropsWithChildren<PrimerTooltipProps & SxProp & {
5
- as?: React.ElementType;
6
- }>;
7
- declare const TooltipImpl: import("react").ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
8
- declare const Tooltip: typeof TooltipImpl & {
9
- alignments: string[];
10
- directions: string[];
11
- };
12
- export { Tooltip, type TooltipProps };
13
- //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAE1G,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AACxC,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAK5C,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAC,CAAA;AAQ7F,QAAA,MAAM,WAAW,uHAEf,CAAA;AAEF,QAAA,MAAM,OAAO,EAAkB,OAAO,WAAW,GAAG;IAClD,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAOD,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -1,32 +0,0 @@
1
- import { Tooltip as Tooltip$1 } from '@primer/react/deprecated';
2
- import { forwardRef } from 'react';
3
- import { sx } from '../../sx.js';
4
- import styled from 'styled-components';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- const StyledTooltip = styled(Tooltip$1).withConfig({
8
- shouldForwardProp: prop => prop !== 'sx'
9
- }).withConfig({
10
- displayName: "Tooltip__StyledTooltip",
11
- componentId: "sc-145jcib-0"
12
- })(["", ""], sx);
13
- const TooltipImpl = /*#__PURE__*/forwardRef(function Tooltip({
14
- as,
15
- ...props
16
- }, ref) {
17
- return /*#__PURE__*/jsx(StyledTooltip, {
18
- ...props,
19
- ...(as ? {
20
- forwardedAs: as
21
- } : {}),
22
- ref: ref
23
- });
24
- });
25
- const Tooltip = TooltipImpl;
26
-
27
- // Preserve static properties from the original component
28
- Tooltip.alignments = Tooltip$1.alignments;
29
- Tooltip.directions = Tooltip$1.directions;
30
- Tooltip.__SLOT__ = Tooltip$1.__SLOT__;
31
-
32
- export { Tooltip };