@synergy-design-system/react 1.0.2 → 1.1.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.
package/README.md CHANGED
@@ -34,7 +34,7 @@ import { createRoot } from 'react-dom/client';
34
34
  import { App } from './App';
35
35
 
36
36
  // Add this line to enable the light theme for your application
37
- import '@synergy-design-system/tokens/dist/themes/light.css';
37
+ import '@synergy-design-system/tokens/themes/light.css';
38
38
 
39
39
  createRoot(document.getElementById('root')!).render(
40
40
  <StrictMode>
@@ -48,10 +48,10 @@ createRoot(document.getElementById('root')!).render(
48
48
  You may now use the components by importing them from the `@synergy-design-system/react` package and rendering them in a react component.
49
49
 
50
50
  ```tsx
51
- import { SynButton } from '../dist';
51
+ import { SynButton } from '@synergy-design-system/react';
52
52
 
53
53
  export const MyButton = () => (
54
- <SynButton type="button" variant="primary">
54
+ <SynButton type="button" variant="filled">
55
55
  SynButton Example
56
56
  </SynButton>
57
57
  );
@@ -64,7 +64,7 @@ All events will be automatically set up to work without the need to attach event
64
64
  Just use them with the default react `onEVENT` prefix, where `EVENT` is the camelCased name of the event.
65
65
 
66
66
  ```tsx
67
- import { SynButton } from '../dist';
67
+ import { SynButton } from '@synergy-design-system/react';
68
68
 
69
69
  export const MyButton = () => (
70
70
  <SynButton
@@ -0,0 +1,21 @@
1
+ // ../react/src/components/icon-button.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/icon-button/icon-button.component.js";
5
+ var tagName = "syn-icon-button";
6
+ Component.define("syn-icon-button");
7
+ var SynIconButton = createComponent({
8
+ displayName: "SynIconButton",
9
+ elementClass: Component,
10
+ events: {
11
+ onSynBlur: "syn-blur",
12
+ onSynFocus: "syn-focus"
13
+ },
14
+ react: React,
15
+ tagName
16
+ });
17
+
18
+ export {
19
+ SynIconButton
20
+ };
21
+ //# sourceMappingURL=chunk.W4YO4ERO.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/icon-button.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/icon-button/icon-button.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynBlurEvent, SynFocusEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-icon-button';\nComponent.define('syn-icon-button');\n\n/**\n * @summary Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars.\n * @documentation https://synergy.style/components/icon-button\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @event syn-blur - Emitted when the icon button loses focus.\n * @event syn-focus - Emitted when the icon button gains focus.\n *\n * @csspart base - The component's base wrapper.\n */\nexport const SynIconButton = createComponent({\n displayName: 'SynIconButton',\n elementClass: Component,\n events: {\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynBlurEvent } from '@synergy-design-system/components';\nexport type { SynFocusEvent } from '@synergy-design-system/components';\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAKtB,IAAM,UAAU;AAChB,UAAU,OAAO,iBAAiB;AAe3B,IAAM,gBAAgB,gBAAgB;AAAA,EAC3C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,22 @@
1
+ import Component from '@synergy-design-system/components/components/icon-button/icon-button.component.js';
2
+ import { type EventName } from '@lit/react';
3
+ import type { SynBlurEvent, SynFocusEvent } from '@synergy-design-system/components';
4
+ /**
5
+ * @summary Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars.
6
+ * @documentation https://synergy.style/components/icon-button
7
+ * @status stable
8
+ * @since 2.0
9
+ *
10
+ * @dependency syn-icon
11
+ *
12
+ * @event syn-blur - Emitted when the icon button loses focus.
13
+ * @event syn-focus - Emitted when the icon button gains focus.
14
+ *
15
+ * @csspart base - The component's base wrapper.
16
+ */
17
+ export declare const SynIconButton: import("@lit/react").ReactWebComponent<Component, {
18
+ onSynBlur: EventName<SynBlurEvent>;
19
+ onSynFocus: EventName<SynFocusEvent>;
20
+ }>;
21
+ export type { SynBlurEvent } from '@synergy-design-system/components';
22
+ export type { SynFocusEvent } from '@synergy-design-system/components';
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynIconButton
3
+ } from "../chunks/chunk.W4YO4ERO.js";
4
+ export {
5
+ SynIconButton
6
+ };
7
+ //# sourceMappingURL=icon-button.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
@@ -2,6 +2,7 @@ export { SynButton } from './components/button.js';
2
2
  export { SynButtonGroup } from './components/button-group.js';
3
3
  export { SynCheckbox } from './components/checkbox.js';
4
4
  export { SynIcon } from './components/icon.js';
5
+ export { SynIconButton } from './components/icon-button.js';
5
6
  export { SynInput } from './components/input.js';
6
7
  export { SynRadio } from './components/radio.js';
7
8
  export { SynRadioButton } from './components/radio-button.js';
package/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ import {
2
+ SynRadioGroup
3
+ } from "./chunks/chunk.UVFFLBXG.js";
1
4
  import {
2
5
  SynRadio
3
6
  } from "./chunks/chunk.AFCMSVBY.js";
@@ -16,6 +19,9 @@ import {
16
19
  import {
17
20
  SynCheckbox
18
21
  } from "./chunks/chunk.FYIBHAO4.js";
22
+ import {
23
+ SynIconButton
24
+ } from "./chunks/chunk.W4YO4ERO.js";
19
25
  import {
20
26
  SynIcon
21
27
  } from "./chunks/chunk.6CO3KAZG.js";
@@ -25,14 +31,12 @@ import {
25
31
  import {
26
32
  SynRadioButton
27
33
  } from "./chunks/chunk.QBD4EIK5.js";
28
- import {
29
- SynRadioGroup
30
- } from "./chunks/chunk.UVFFLBXG.js";
31
34
  export {
32
35
  SynButton,
33
36
  SynButtonGroup,
34
37
  SynCheckbox,
35
38
  SynIcon,
39
+ SynIconButton,
36
40
  SynInput,
37
41
  SynRadio,
38
42
  SynRadioButton,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "@lit/react": "^1.0.0",
8
- "@synergy-design-system/components": "^1.0.2"
8
+ "@synergy-design-system/components": "^1.1.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.0.2",
43
+ "version": "1.1.0",
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.2.31",
46
46
  "react": "^18.2.0"