@synergy-design-system/react 1.20.2 → 1.21.0

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.
@@ -0,0 +1,23 @@
1
+ // ../react/src/components/tooltip.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/tooltip/tooltip.component.js";
5
+ var tagName = "syn-tooltip";
6
+ Component.define("syn-tooltip");
7
+ var SynTooltip = createComponent({
8
+ displayName: "SynTooltip",
9
+ elementClass: Component,
10
+ events: {
11
+ onSynShow: "syn-show",
12
+ onSynAfterShow: "syn-after-show",
13
+ onSynHide: "syn-hide",
14
+ onSynAfterHide: "syn-after-hide"
15
+ },
16
+ react: React,
17
+ tagName
18
+ });
19
+
20
+ export {
21
+ SynTooltip
22
+ };
23
+ //# sourceMappingURL=chunk.BU4SKSAF.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/tooltip.ts"],
4
+ "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED @synergy-design-system/react wrappers for @synergy-design-system/components\n// Please do not edit this file directly!\n// It will get recreated when running pnpm build.\n// ---------------------------------------------------------------------\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport Component from '@synergy-design-system/components/components/tooltip/tooltip.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type {\n SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent,\n} from '@synergy-design-system/components';\n\nconst tagName = 'syn-tooltip';\nComponent.define('syn-tooltip');\n\n/**\n * @summary Tooltips display additional information based on a specific action.\n * @documentation https://synergy.style/components/tooltip\n * @status stable\n * @since 2.0\n *\n * @dependency syn-popup\n *\n * @slot - The tooltip's target element. Avoid slotting in more than one element, as subsequent ones will be ignored.\n * @slot content - The content to render in the tooltip. Alternatively, you can use the `content` attribute.\n *\n * @event syn-show - Emitted when the tooltip begins to show.\n * @event syn-after-show - Emitted after the tooltip has shown and all animations are complete.\n * @event syn-hide - Emitted when the tooltip begins to hide.\n * @event syn-after-hide - Emitted after the tooltip has hidden and all animations are complete.\n *\n * @csspart base - The component's base wrapper, an `<syn-popup>` element.\n * @csspart base__popup - The popup's exported `popup` part. Use this to target the tooltip's popup container.\n * @csspart base__arrow - The popup's exported `arrow` part. Use this to target the tooltip's arrow.\n * @csspart body - The tooltip's body where its content is rendered.\n *\n * @cssproperty --max-width - The maximum width of the tooltip before its content will wrap.\n * @cssproperty --hide-delay - The amount of time to wait before hiding the tooltip when hovering.\n * @cssproperty --show-delay - The amount of time to wait before showing the tooltip when hovering.\n *\n * @animation tooltip.show - The animation to use when showing the tooltip.\n * @animation tooltip.hide - The animation to use when hiding the tooltip.\n */\nexport const SynTooltip = createComponent({\n displayName: 'SynTooltip',\n elementClass: Component,\n events: {\n onSynShow: 'syn-show' as EventName<SynShowEvent>,\n onSynAfterShow: 'syn-after-show' as EventName<SynAfterShowEvent>,\n onSynHide: 'syn-hide' as EventName<SynHideEvent>,\n onSynAfterHide: 'syn-after-hide' as EventName<SynAfterHideEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynShowEvent } from '@synergy-design-system/components';\nexport type { SynAfterShowEvent } from '@synergy-design-system/components';\nexport type { SynHideEvent } from '@synergy-design-system/components';\nexport type { SynAfterHideEvent } from '@synergy-design-system/components';\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAOtB,IAAM,UAAU;AAChB,UAAU,OAAO,aAAa;AA8BvB,IAAM,aAAa,gBAAgB;AAAA,EACxC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,EAClB;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,41 @@
1
+ import Component from '@synergy-design-system/components/components/tooltip/tooltip.component.js';
2
+ import { type EventName } from '@lit/react';
3
+ import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent } from '@synergy-design-system/components';
4
+ /**
5
+ * @summary Tooltips display additional information based on a specific action.
6
+ * @documentation https://synergy.style/components/tooltip
7
+ * @status stable
8
+ * @since 2.0
9
+ *
10
+ * @dependency syn-popup
11
+ *
12
+ * @slot - The tooltip's target element. Avoid slotting in more than one element, as subsequent ones will be ignored.
13
+ * @slot content - The content to render in the tooltip. Alternatively, you can use the `content` attribute.
14
+ *
15
+ * @event syn-show - Emitted when the tooltip begins to show.
16
+ * @event syn-after-show - Emitted after the tooltip has shown and all animations are complete.
17
+ * @event syn-hide - Emitted when the tooltip begins to hide.
18
+ * @event syn-after-hide - Emitted after the tooltip has hidden and all animations are complete.
19
+ *
20
+ * @csspart base - The component's base wrapper, an `<syn-popup>` element.
21
+ * @csspart base__popup - The popup's exported `popup` part. Use this to target the tooltip's popup container.
22
+ * @csspart base__arrow - The popup's exported `arrow` part. Use this to target the tooltip's arrow.
23
+ * @csspart body - The tooltip's body where its content is rendered.
24
+ *
25
+ * @cssproperty --max-width - The maximum width of the tooltip before its content will wrap.
26
+ * @cssproperty --hide-delay - The amount of time to wait before hiding the tooltip when hovering.
27
+ * @cssproperty --show-delay - The amount of time to wait before showing the tooltip when hovering.
28
+ *
29
+ * @animation tooltip.show - The animation to use when showing the tooltip.
30
+ * @animation tooltip.hide - The animation to use when hiding the tooltip.
31
+ */
32
+ export declare const SynTooltip: import("@lit/react").ReactWebComponent<Component, {
33
+ onSynShow: EventName<SynShowEvent>;
34
+ onSynAfterShow: EventName<SynAfterShowEvent>;
35
+ onSynHide: EventName<SynHideEvent>;
36
+ onSynAfterHide: EventName<SynAfterHideEvent>;
37
+ }>;
38
+ export type { SynShowEvent } from '@synergy-design-system/components';
39
+ export type { SynAfterShowEvent } from '@synergy-design-system/components';
40
+ export type { SynHideEvent } from '@synergy-design-system/components';
41
+ export type { SynAfterHideEvent } from '@synergy-design-system/components';
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynTooltip
3
+ } from "../chunks/chunk.BU4SKSAF.js";
4
+ export {
5
+ SynTooltip
6
+ };
7
+ //# sourceMappingURL=tooltip.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/dist/index.d.ts CHANGED
@@ -28,3 +28,4 @@ export { SynSideNav } from './components/side-nav.js';
28
28
  export { SynSwitch } from './components/switch.js';
29
29
  export { SynTag } from './components/tag.js';
30
30
  export { SynTextarea } from './components/textarea.js';
31
+ export { SynTooltip } from './components/tooltip.js';
package/dist/index.js CHANGED
@@ -19,6 +19,9 @@ import {
19
19
  import {
20
20
  SynTextarea
21
21
  } from "./chunks/chunk.4YY6TGIA.js";
22
+ import {
23
+ SynTooltip
24
+ } from "./chunks/chunk.BU4SKSAF.js";
22
25
  import {
23
26
  SynNavItem
24
27
  } from "./chunks/chunk.Y2KBRBDX.js";
@@ -118,6 +121,7 @@ export {
118
121
  SynSideNav,
119
122
  SynSwitch,
120
123
  SynTag,
121
- SynTextarea
124
+ SynTextarea,
125
+ SynTooltip
122
126
  };
123
127
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "@lit/react": "^1.0.4",
8
- "@synergy-design-system/components": "^1.20.2"
8
+ "@synergy-design-system/components": "^1.21.0"
9
9
  },
10
10
  "description": "React wrappers for the Synergy Design System",
11
11
  "exports": {
@@ -40,7 +40,7 @@
40
40
  "directory": "packages/react"
41
41
  },
42
42
  "type": "module",
43
- "version": "1.20.2",
43
+ "version": "1.21.0",
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.2.79",
46
46
  "react": "^18.2.0"