@synergy-design-system/react 1.20.2 → 1.22.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,18 @@
1
+ // ../react/src/components/spinner.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/spinner/spinner.component.js";
5
+ var tagName = "syn-spinner";
6
+ Component.define("syn-spinner");
7
+ var SynSpinner = createComponent({
8
+ displayName: "SynSpinner",
9
+ elementClass: Component,
10
+ events: {},
11
+ react: React,
12
+ tagName
13
+ });
14
+
15
+ export {
16
+ SynSpinner
17
+ };
18
+ //# sourceMappingURL=chunk.CAHU6MAK.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/spinner.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/spinner/spinner.component.js';\n\nconst tagName = 'syn-spinner';\nComponent.define('syn-spinner');\n\n/**\n * @summary Spinners are used to show the progress of an indeterminate operation.\n * @documentation https://synergy.style/components/spinner\n * @status stable\n * @since 2.0\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --track-width - The width of the track.\n * @cssproperty --indicator-color - The color of the spinner's indicator.\n * @cssproperty --speed - The time it takes for the spinner to complete one animation cycle.\n */\nexport const SynSpinner = createComponent({\n displayName: 'SynSpinner',\n elementClass: Component,\n events: {\n\n },\n react: React,\n tagName,\n});\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAEtB,IAAM,UAAU;AAChB,UAAU,OAAO,aAAa;AAcvB,IAAM,aAAa,gBAAgB;AAAA,EACxC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAER;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,14 @@
1
+ import Component from '@synergy-design-system/components/components/spinner/spinner.component.js';
2
+ /**
3
+ * @summary Spinners are used to show the progress of an indeterminate operation.
4
+ * @documentation https://synergy.style/components/spinner
5
+ * @status stable
6
+ * @since 2.0
7
+ *
8
+ * @csspart base - The component's base wrapper.
9
+ *
10
+ * @cssproperty --track-width - The width of the track.
11
+ * @cssproperty --indicator-color - The color of the spinner's indicator.
12
+ * @cssproperty --speed - The time it takes for the spinner to complete one animation cycle.
13
+ */
14
+ export declare const SynSpinner: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynSpinner
3
+ } from "../chunks/chunk.CAHU6MAK.js";
4
+ export {
5
+ SynSpinner
6
+ };
7
+ //# sourceMappingURL=spinner.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
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
@@ -25,6 +25,8 @@ export { SynRadioButton } from './components/radio-button.js';
25
25
  export { SynRadioGroup } from './components/radio-group.js';
26
26
  export { SynSelect } from './components/select.js';
27
27
  export { SynSideNav } from './components/side-nav.js';
28
+ export { SynSpinner } from './components/spinner.js';
28
29
  export { SynSwitch } from './components/switch.js';
29
30
  export { SynTag } from './components/tag.js';
30
31
  export { SynTextarea } from './components/textarea.js';
32
+ export { SynTooltip } from './components/tooltip.js';
package/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ import {
2
+ SynTooltip
3
+ } from "./chunks/chunk.BU4SKSAF.js";
1
4
  import {
2
5
  SynRadioGroup
3
6
  } from "./chunks/chunk.PCXGVEBP.js";
@@ -10,6 +13,9 @@ import {
10
13
  import {
11
14
  SynSideNav
12
15
  } from "./chunks/chunk.A3DZYM6Z.js";
16
+ import {
17
+ SynSpinner
18
+ } from "./chunks/chunk.CAHU6MAK.js";
13
19
  import {
14
20
  SynSwitch
15
21
  } from "./chunks/chunk.7IZW5FRR.js";
@@ -116,8 +122,10 @@ export {
116
122
  SynRadioGroup,
117
123
  SynSelect,
118
124
  SynSideNav,
125
+ SynSpinner,
119
126
  SynSwitch,
120
127
  SynTag,
121
- SynTextarea
128
+ SynTextarea,
129
+ SynTooltip
122
130
  };
123
131
  //# 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.22.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.22.0",
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.2.79",
46
46
  "react": "^18.2.0"