@synergy-design-system/react 2.31.2 → 2.33.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.
@@ -13,7 +13,8 @@ var SynInput = createComponent({
13
13
  onSynClear: "syn-clear",
14
14
  onSynFocus: "syn-focus",
15
15
  onSynInput: "syn-input",
16
- onSynInvalid: "syn-invalid"
16
+ onSynInvalid: "syn-invalid",
17
+ onSynClamp: "syn-clamp"
17
18
  },
18
19
  react: React,
19
20
  tagName
@@ -22,4 +23,4 @@ var SynInput = createComponent({
22
23
  export {
23
24
  SynInput
24
25
  };
25
- //# sourceMappingURL=chunk.ZW5UQYCL.js.map
26
+ //# sourceMappingURL=chunk.I7M5E4N3.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/input.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/input/input.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynBlurEvent } from '@synergy-design-system/components';\nimport type { SynChangeEvent } from '@synergy-design-system/components';\nimport type { SynClearEvent } from '@synergy-design-system/components';\nimport type { SynFocusEvent } from '@synergy-design-system/components';\nimport type { SynInputEvent } from '@synergy-design-system/components';\nimport type { SynInvalidEvent } from '@synergy-design-system/components';\nimport type { SynClampEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-input';\nComponent.define('syn-input');\n\n/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-input--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-divider\n *\n * @slot label - The input's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the input.\n * @slot suffix - Used to append a presentational icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n * @slot increment-number-stepper - An icon to use in lieu of the default increment number stepper icon.\n * @slot decrement-number-stepper - An icon to use in lieu of the default decrement number stepper icon.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-clear - Emitted when the clear button is activated.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n * @event syn-clamp - Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input - The internal `<input>` control.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart clear-button - The clear button.\n * @csspart password-toggle-button - The password toggle button.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart stepper - The container that wraps the number stepper.\n * @csspart decrement-number-stepper - The decrement number stepper button.\n * @csspart increment-number-stepper - The increment number stepper button.\n * @csspart divider - The divider between the increment and decrement number stepper buttons.\n *\n * @cssproperty --syn-input-autofill-shadow - The shadow to apply when the input is autofilled.\n * @cssproperty --syn-input-autofill-readonly-shadow - The shadow to apply when the input is readonly and autofilled.\n * @cssproperty --syn-input-autofill-text-fill-color - The text fill color to apply when the input is autofilled.\n * @cssproperty --syn-input-autofill-caret-color - The caret color to apply when the input is autofilled.\n */\nexport const SynInput = createComponent({\n displayName: 'SynInput',\n elementClass: Component,\n events: {\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\n onSynChange: 'syn-change' as EventName<SynChangeEvent>,\n onSynClear: 'syn-clear' as EventName<SynClearEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n onSynInput: 'syn-input' as EventName<SynInputEvent>,\n onSynInvalid: 'syn-invalid' as EventName<SynInvalidEvent>,\n onSynClamp: 'syn-clamp' as EventName<SynClampEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynBlurEvent } from '@synergy-design-system/components';\nexport type { SynChangeEvent } from '@synergy-design-system/components';\nexport type { SynClearEvent } from '@synergy-design-system/components';\nexport type { SynFocusEvent } from '@synergy-design-system/components';\nexport type { SynInputEvent } from '@synergy-design-system/components';\nexport type { SynInvalidEvent } from '@synergy-design-system/components';\nexport type { SynClampEvent } from '@synergy-design-system/components';\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAWtB,IAAM,UAAU;AAChB,UAAU,OAAO,WAAW;AAiDrB,IAAM,WAAW,gBAAgB;AAAA,EACtC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,YAAY;AAAA,EACd;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -20,4 +20,4 @@ var SynSideNav = createComponent({
20
20
  export {
21
21
  SynSideNav
22
22
  };
23
- //# sourceMappingURL=chunk.2JXRC7UA.js.map
23
+ //# sourceMappingURL=chunk.SOJTZDB7.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/side-nav.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/side-nav/side-nav.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynShowEvent } from '@synergy-design-system/components';\nimport type { SynAfterShowEvent } from '@synergy-design-system/components';\nimport type { SynHideEvent } from '@synergy-design-system/components';\nimport type { SynAfterHideEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-side-nav';\nComponent.define('syn-side-nav');\n\n/**\n * @summary The <syn-side-nav /> element contains secondary navigation and fits below the header.\n * It can be used to group multiple navigation items (<syn-nav-item />s) together.\n *\n * @example\n * <syn-side-nav open>\n * <syn-nav-item >Item 1</syn-nav-item>\n * <syn-nav-item divider>Item 2</syn-nav-item>\n * </syn-side-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-side-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-divider\n * @dependency syn-drawer\n * @dependency syn-icon\n * @dependency syn-nav-item\n *\n * @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.\n * @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.\n * Please avoid having to many nav-items as it can massively influence the user experience.\n * @slot toggle-label - The label of the toggle nav-item for variant=\"sticky\".\n * @slot toggle-icon - An icon to use in lieu of the default icon for the toggle nav-item\n * for variant=\"sticky\".\n *\n * @event syn-show - Emitted when the side-nav opens.\n * @event syn-after-show - Emitted after the side-nav opens and all animations are complete.\n * @event syn-hide - Emitted when the side-nav closes.\n * @event syn-after-hide - Emitted after the side-nav closes and all animations are complete.\n *\n * @csspart base - The components base wrapper\n * @csspart drawer - The drawer that is used under the hood for creating the side-nav\n * @csspart content-container - The components main content container\n * @csspart content - The components main content\n * @csspart footer-container - The components footer content container\n (where the footer slot content is rendered)\n * @csspart footer-divider - The components footer divider\n * @csspart footer - The components footer content\n * @csspart overlay - The overlay that covers the screen behind the side-nav.\n * @csspart panel - The side-nav's panel (where the whole content is rendered).\n * @csspart body - The side-nav's body (where the default slot content is rendered)\n * @csspart drawer__base - The drawer's base wrapper\n * @csspart toggle-nav-item - The nav-item to toggle open state for variant=\"sticky\"\n * @csspart toggle-icon - The icon of the toggle nav-item for variant=\"sticky\"\n * @csspart toggle-label - The label of the toggle nav-item for variant=\"sticky\".\n\n * @cssproperty --side-nav-open-width - The width of the side-nav if in open state\n *\n * @animation sideNav.showNonRail - The animation to use when showing the side-nav\n * in variant=\"default\".\n * @animation sideNav.showRail - The animation to use when showing the side-nav in variant=\"rail\"\n * and variant=\"sticky\".\n * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav\n * in variant=\"default\".\n * @animation sideNav.hideRail - The animation to use when hiding the side-nav in variant=\"rail\"\n * and variant=\"sticky\".\n * @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.\n * @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.\n */\nexport const SynSideNav = createComponent({\n displayName: 'SynSideNav',\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;AAQtB,IAAM,UAAU;AAChB,UAAU,OAAO,cAAc;AA8DxB,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
+ }
@@ -6,6 +6,7 @@ import type { SynClearEvent } from '@synergy-design-system/components';
6
6
  import type { SynFocusEvent } from '@synergy-design-system/components';
7
7
  import type { SynInputEvent } from '@synergy-design-system/components';
8
8
  import type { SynInvalidEvent } from '@synergy-design-system/components';
9
+ import type { SynClampEvent } from '@synergy-design-system/components';
9
10
  /**
10
11
  * @summary Inputs collect data from the user.
11
12
  * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-input--docs
@@ -31,6 +32,7 @@ import type { SynInvalidEvent } from '@synergy-design-system/components';
31
32
  * @event syn-focus - Emitted when the control gains focus.
32
33
  * @event syn-input - Emitted when the control receives input.
33
34
  * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
35
+ * @event syn-clamp - Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.
34
36
  *
35
37
  * @csspart form-control - The form control that wraps the label, input, and help text.
36
38
  * @csspart form-control-label - The label's wrapper.
@@ -59,6 +61,7 @@ export declare const SynInput: import("@lit/react").ReactWebComponent<Component,
59
61
  onSynFocus: EventName<SynFocusEvent>;
60
62
  onSynInput: EventName<SynInputEvent>;
61
63
  onSynInvalid: EventName<SynInvalidEvent>;
64
+ onSynClamp: EventName<SynClampEvent>;
62
65
  }>;
63
66
  export type { SynBlurEvent } from '@synergy-design-system/components';
64
67
  export type { SynChangeEvent } from '@synergy-design-system/components';
@@ -66,3 +69,4 @@ export type { SynClearEvent } from '@synergy-design-system/components';
66
69
  export type { SynFocusEvent } from '@synergy-design-system/components';
67
70
  export type { SynInputEvent } from '@synergy-design-system/components';
68
71
  export type { SynInvalidEvent } from '@synergy-design-system/components';
72
+ export type { SynClampEvent } from '@synergy-design-system/components';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynInput
3
- } from "../chunks/chunk.ZW5UQYCL.js";
3
+ } from "../chunks/chunk.I7M5E4N3.js";
4
4
  export {
5
5
  SynInput
6
6
  };
@@ -20,10 +20,15 @@ import type { SynAfterHideEvent } from '@synergy-design-system/components';
20
20
  *
21
21
  * @dependency syn-divider
22
22
  * @dependency syn-drawer
23
+ * @dependency syn-icon
24
+ * @dependency syn-nav-item
23
25
  *
24
26
  * @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.
25
27
  * @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.
26
28
  * Please avoid having to many nav-items as it can massively influence the user experience.
29
+ * @slot toggle-label - The label of the toggle nav-item for variant="sticky".
30
+ * @slot toggle-icon - An icon to use in lieu of the default icon for the toggle nav-item
31
+ * for variant="sticky".
27
32
  *
28
33
  * @event syn-show - Emitted when the side-nav opens.
29
34
  * @event syn-after-show - Emitted after the side-nav opens and all animations are complete.
@@ -42,13 +47,20 @@ import type { SynAfterHideEvent } from '@synergy-design-system/components';
42
47
  * @csspart panel - The side-nav's panel (where the whole content is rendered).
43
48
  * @csspart body - The side-nav's body (where the default slot content is rendered)
44
49
  * @csspart drawer__base - The drawer's base wrapper
45
- *
50
+ * @csspart toggle-nav-item - The nav-item to toggle open state for variant="sticky"
51
+ * @csspart toggle-icon - The icon of the toggle nav-item for variant="sticky"
52
+ * @csspart toggle-label - The label of the toggle nav-item for variant="sticky".
53
+
46
54
  * @cssproperty --side-nav-open-width - The width of the side-nav if in open state
47
55
  *
48
- * @animation sideNav.showNonRail - The animation to use when showing the side-nav in non-rail mode.
49
- * @animation sideNav.showRail - The animation to use when showing the side-nav in rail mode.
50
- * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav in non-rail mode.
51
- * @animation sideNav.hideRail - The animation to use when hiding the side-nav in rail mode.
56
+ * @animation sideNav.showNonRail - The animation to use when showing the side-nav
57
+ * in variant="default".
58
+ * @animation sideNav.showRail - The animation to use when showing the side-nav in variant="rail"
59
+ * and variant="sticky".
60
+ * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav
61
+ * in variant="default".
62
+ * @animation sideNav.hideRail - The animation to use when hiding the side-nav in variant="rail"
63
+ * and variant="sticky".
52
64
  * @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.
53
65
  * @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.
54
66
  */
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynSideNav
3
- } from "../chunks/chunk.2JXRC7UA.js";
3
+ } from "../chunks/chunk.SOJTZDB7.js";
4
4
  export {
5
5
  SynSideNav
6
6
  };
package/dist/index.js CHANGED
@@ -1,6 +1,3 @@
1
- import {
2
- SynSwitch
3
- } from "./chunks/chunk.3AUZZVYZ.js";
4
1
  import {
5
2
  SynTabGroup
6
3
  } from "./chunks/chunk.74QBKUQH.js";
@@ -22,9 +19,6 @@ import {
22
19
  import {
23
20
  SynValidate
24
21
  } from "./chunks/chunk.EL2F4LIK.js";
25
- import {
26
- SynRadioButton
27
- } from "./chunks/chunk.2LDP5CAQ.js";
28
22
  import {
29
23
  SynRadioGroup
30
24
  } from "./chunks/chunk.5CIFYMXU.js";
@@ -42,13 +36,13 @@ import {
42
36
  } from "./chunks/chunk.KIEXMLKV.js";
43
37
  import {
44
38
  SynSideNav
45
- } from "./chunks/chunk.2JXRC7UA.js";
39
+ } from "./chunks/chunk.SOJTZDB7.js";
46
40
  import {
47
41
  SynSpinner
48
42
  } from "./chunks/chunk.SOARUKQP.js";
49
43
  import {
50
- SynMenu
51
- } from "./chunks/chunk.4IVJHGWM.js";
44
+ SynSwitch
45
+ } from "./chunks/chunk.3AUZZVYZ.js";
52
46
  import {
53
47
  SynNavItem
54
48
  } from "./chunks/chunk.5YK753KB.js";
@@ -71,8 +65,8 @@ import {
71
65
  SynProgressRing
72
66
  } from "./chunks/chunk.ADSD2U7G.js";
73
67
  import {
74
- SynDropdown
75
- } from "./chunks/chunk.AE6RZ4W2.js";
68
+ SynRadioButton
69
+ } from "./chunks/chunk.2LDP5CAQ.js";
76
70
  import {
77
71
  SynFile
78
72
  } from "./chunks/chunk.IQB5SV6K.js";
@@ -87,7 +81,7 @@ import {
87
81
  } from "./chunks/chunk.UDE6JBDC.js";
88
82
  import {
89
83
  SynInput
90
- } from "./chunks/chunk.ZW5UQYCL.js";
84
+ } from "./chunks/chunk.I7M5E4N3.js";
91
85
  import {
92
86
  SynMenuItem
93
87
  } from "./chunks/chunk.TWK2UCJF.js";
@@ -95,8 +89,8 @@ import {
95
89
  SynMenuLabel
96
90
  } from "./chunks/chunk.NR7V6QX5.js";
97
91
  import {
98
- SynButton
99
- } from "./chunks/chunk.TGSZHDUW.js";
92
+ SynMenu
93
+ } from "./chunks/chunk.4IVJHGWM.js";
100
94
  import {
101
95
  SynCard
102
96
  } from "./chunks/chunk.OJAJTT5S.js";
@@ -118,6 +112,9 @@ import {
118
112
  import {
119
113
  SynDrawer
120
114
  } from "./chunks/chunk.RWOJEMSX.js";
115
+ import {
116
+ SynDropdown
117
+ } from "./chunks/chunk.AE6RZ4W2.js";
121
118
  import {
122
119
  SynAccordion
123
120
  } from "./chunks/chunk.2PS5VOXM.js";
@@ -136,6 +133,9 @@ import {
136
133
  import {
137
134
  SynButtonGroup
138
135
  } from "./chunks/chunk.HHPIABBV.js";
136
+ import {
137
+ SynButton
138
+ } from "./chunks/chunk.TGSZHDUW.js";
139
139
  export {
140
140
  SynAccordion,
141
141
  SynAlert,
@@ -1,5 +1,5 @@
1
1
  import type { CSSProperties, DOMAttributes, RefObject } from 'react';
2
- import type { SynShowEvent, SynAfterShowEvent, SynHideEvent, SynAfterHideEvent, SynBlurEvent, SynFocusEvent, SynInvalidEvent, SynChangeEvent, SynInputEvent, SynClearEvent, SynErrorEvent, SynInitialFocusEvent, SynRequestCloseEvent, SynBurgerMenuClosedEvent, SynBurgerMenuHiddenEvent, SynBurgerMenuOpenEvent, SynLoadEvent, SynSelectEvent, SynRepositionEvent, SynMoveEvent, SynCloseEvent, SynTabShowEvent, SynTabHideEvent, SynRemoveEvent, SynAccordion, SynAlert, SynBadge, SynBreadcrumb, SynBreadcrumbItem, SynButton, SynButtonGroup, SynCard, SynCheckbox, SynCombobox, SynDetails, SynDialog, SynDivider, SynDrawer, SynDropdown, SynFile, SynHeader, SynIcon, SynIconButton, SynInput, SynMenu, SynMenuItem, SynMenuLabel, SynNavItem, SynOptgroup, SynOption, SynPopup, SynPrioNav, SynProgressBar, SynProgressRing, SynRadio, SynRadioButton, SynRadioGroup, SynRange, SynRangeTick, SynSelect, SynSideNav, SynSpinner, SynSwitch, SynTab, SynTabGroup, SynTabPanel, SynTag, SynTextarea, SynTooltip, SynValidate } from '@synergy-design-system/components';
2
+ import type { SynShowEvent, SynAfterShowEvent, SynHideEvent, SynAfterHideEvent, SynBlurEvent, SynFocusEvent, SynInvalidEvent, SynChangeEvent, SynInputEvent, SynClearEvent, SynErrorEvent, SynInitialFocusEvent, SynRequestCloseEvent, SynBurgerMenuClosedEvent, SynBurgerMenuHiddenEvent, SynBurgerMenuOpenEvent, SynLoadEvent, SynClampEvent, SynSelectEvent, SynRepositionEvent, SynMoveEvent, SynCloseEvent, SynTabShowEvent, SynTabHideEvent, SynRemoveEvent, SynAccordion, SynAlert, SynBadge, SynBreadcrumb, SynBreadcrumbItem, SynButton, SynButtonGroup, SynCard, SynCheckbox, SynCombobox, SynDetails, SynDialog, SynDivider, SynDrawer, SynDropdown, SynFile, SynHeader, SynIcon, SynIconButton, SynInput, SynMenu, SynMenuItem, SynMenuLabel, SynNavItem, SynOptgroup, SynOption, SynPopup, SynPrioNav, SynProgressBar, SynProgressRing, SynRadio, SynRadioButton, SynRadioGroup, SynRange, SynRangeTick, SynSelect, SynSideNav, SynSpinner, SynSwitch, SynTab, SynTabGroup, SynTabPanel, SynTag, SynTextarea, SynTooltip, SynValidate } from '@synergy-design-system/components';
3
3
  /**
4
4
  * Used core types
5
5
  * @see https://coryrylan.com/blog/how-to-use-web-components-with-typescript-and-react
@@ -746,6 +746,7 @@ export type SynCustomElement<SynElement extends HTMLElement, Events extends SynE
746
746
  * @event syn-focus - Emitted when the control gains focus.
747
747
  * @event syn-input - Emitted when the control receives input.
748
748
  * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
749
+ * @event syn-clamp - Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.
749
750
  *
750
751
  * @csspart form-control - The form control that wraps the label, input, and help text.
751
752
  * @csspart form-control-label - The label's wrapper.
@@ -790,6 +791,10 @@ export type SynCustomElement<SynElement extends HTMLElement, Events extends SynE
790
791
  [
791
792
  'syn-invalid',
792
793
  SynInvalidEvent
794
+ ],
795
+ [
796
+ 'syn-clamp',
797
+ SynClampEvent
793
798
  ]
794
799
  ]>;
795
800
  /**
@@ -1329,10 +1334,15 @@ export type SynCustomElement<SynElement extends HTMLElement, Events extends SynE
1329
1334
  *
1330
1335
  * @dependency syn-divider
1331
1336
  * @dependency syn-drawer
1337
+ * @dependency syn-icon
1338
+ * @dependency syn-nav-item
1332
1339
  *
1333
1340
  * @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.
1334
1341
  * @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.
1335
1342
  * Please avoid having to many nav-items as it can massively influence the user experience.
1343
+ * @slot toggle-label - The label of the toggle nav-item for variant="sticky".
1344
+ * @slot toggle-icon - An icon to use in lieu of the default icon for the toggle nav-item
1345
+ * for variant="sticky".
1336
1346
  *
1337
1347
  * @event syn-show - Emitted when the side-nav opens.
1338
1348
  * @event syn-after-show - Emitted after the side-nav opens and all animations are complete.
@@ -1351,13 +1361,20 @@ export type SynCustomElement<SynElement extends HTMLElement, Events extends SynE
1351
1361
  * @csspart panel - The side-nav's panel (where the whole content is rendered).
1352
1362
  * @csspart body - The side-nav's body (where the default slot content is rendered)
1353
1363
  * @csspart drawer__base - The drawer's base wrapper
1354
- *
1364
+ * @csspart toggle-nav-item - The nav-item to toggle open state for variant="sticky"
1365
+ * @csspart toggle-icon - The icon of the toggle nav-item for variant="sticky"
1366
+ * @csspart toggle-label - The label of the toggle nav-item for variant="sticky".
1367
+
1355
1368
  * @cssproperty --side-nav-open-width - The width of the side-nav if in open state
1356
1369
  *
1357
- * @animation sideNav.showNonRail - The animation to use when showing the side-nav in non-rail mode.
1358
- * @animation sideNav.showRail - The animation to use when showing the side-nav in rail mode.
1359
- * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav in non-rail mode.
1360
- * @animation sideNav.hideRail - The animation to use when hiding the side-nav in rail mode.
1370
+ * @animation sideNav.showNonRail - The animation to use when showing the side-nav
1371
+ * in variant="default".
1372
+ * @animation sideNav.showRail - The animation to use when showing the side-nav in variant="rail"
1373
+ * and variant="sticky".
1374
+ * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav
1375
+ * in variant="default".
1376
+ * @animation sideNav.hideRail - The animation to use when hiding the side-nav in variant="rail"
1377
+ * and variant="sticky".
1361
1378
  * @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.
1362
1379
  * @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.
1363
1380
  */ export type SynSideNavJSXElement = SynCustomElement<SynSideNav, [
@@ -2135,6 +2152,7 @@ declare module 'react' {
2135
2152
  * @event syn-focus - Emitted when the control gains focus.
2136
2153
  * @event syn-input - Emitted when the control receives input.
2137
2154
  * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
2155
+ * @event syn-clamp - Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.
2138
2156
  *
2139
2157
  * @csspart form-control - The form control that wraps the label, input, and help text.
2140
2158
  * @csspart form-control-label - The label's wrapper.
@@ -2586,10 +2604,15 @@ declare module 'react' {
2586
2604
  *
2587
2605
  * @dependency syn-divider
2588
2606
  * @dependency syn-drawer
2607
+ * @dependency syn-icon
2608
+ * @dependency syn-nav-item
2589
2609
  *
2590
2610
  * @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.
2591
2611
  * @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.
2592
2612
  * Please avoid having to many nav-items as it can massively influence the user experience.
2613
+ * @slot toggle-label - The label of the toggle nav-item for variant="sticky".
2614
+ * @slot toggle-icon - An icon to use in lieu of the default icon for the toggle nav-item
2615
+ * for variant="sticky".
2593
2616
  *
2594
2617
  * @event syn-show - Emitted when the side-nav opens.
2595
2618
  * @event syn-after-show - Emitted after the side-nav opens and all animations are complete.
@@ -2608,13 +2631,20 @@ declare module 'react' {
2608
2631
  * @csspart panel - The side-nav's panel (where the whole content is rendered).
2609
2632
  * @csspart body - The side-nav's body (where the default slot content is rendered)
2610
2633
  * @csspart drawer__base - The drawer's base wrapper
2611
- *
2634
+ * @csspart toggle-nav-item - The nav-item to toggle open state for variant="sticky"
2635
+ * @csspart toggle-icon - The icon of the toggle nav-item for variant="sticky"
2636
+ * @csspart toggle-label - The label of the toggle nav-item for variant="sticky".
2637
+
2612
2638
  * @cssproperty --side-nav-open-width - The width of the side-nav if in open state
2613
2639
  *
2614
- * @animation sideNav.showNonRail - The animation to use when showing the side-nav in non-rail mode.
2615
- * @animation sideNav.showRail - The animation to use when showing the side-nav in rail mode.
2616
- * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav in non-rail mode.
2617
- * @animation sideNav.hideRail - The animation to use when hiding the side-nav in rail mode.
2640
+ * @animation sideNav.showNonRail - The animation to use when showing the side-nav
2641
+ * in variant="default".
2642
+ * @animation sideNav.showRail - The animation to use when showing the side-nav in variant="rail"
2643
+ * and variant="sticky".
2644
+ * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav
2645
+ * in variant="default".
2646
+ * @animation sideNav.hideRail - The animation to use when hiding the side-nav in variant="rail"
2647
+ * and variant="sticky".
2618
2648
  * @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.
2619
2649
  * @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.
2620
2650
  */ 'syn-side-nav': SynSideNavJSXElement;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "@lit/react": "^1.0.7",
8
- "@synergy-design-system/components": "^2.31.2"
8
+ "@synergy-design-system/components": "^2.33.0"
9
9
  },
10
10
  "description": "React wrappers for the Synergy Design System",
11
11
  "exports": {
@@ -43,12 +43,12 @@
43
43
  "directory": "packages/react"
44
44
  },
45
45
  "type": "module",
46
- "version": "2.31.2",
46
+ "version": "2.33.0",
47
47
  "devDependencies": {
48
48
  "@types/react": "^19.0.12",
49
49
  "react": "^19.0.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "@synergy-design-system/tokens": "^2.18.1"
52
+ "@synergy-design-system/tokens": "^2.20.0"
53
53
  }
54
54
  }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/side-nav.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/side-nav/side-nav.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynShowEvent } from '@synergy-design-system/components';\nimport type { SynAfterShowEvent } from '@synergy-design-system/components';\nimport type { SynHideEvent } from '@synergy-design-system/components';\nimport type { SynAfterHideEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-side-nav';\nComponent.define('syn-side-nav');\n\n/**\n * @summary The <syn-side-nav /> element contains secondary navigation and fits below the header.\n * It can be used to group multiple navigation items (<syn-nav-item />s) together.\n *\n * @example\n * <syn-side-nav open>\n * <syn-nav-item >Item 1</syn-nav-item>\n * <syn-nav-item divider>Item 2</syn-nav-item>\n * </syn-side-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-side-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-divider\n * @dependency syn-drawer\n *\n * @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.\n * @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.\n * Please avoid having to many nav-items as it can massively influence the user experience.\n *\n * @event syn-show - Emitted when the side-nav opens.\n * @event syn-after-show - Emitted after the side-nav opens and all animations are complete.\n * @event syn-hide - Emitted when the side-nav closes.\n * @event syn-after-hide - Emitted after the side-nav closes and all animations are complete.\n *\n * @csspart base - The components base wrapper\n * @csspart drawer - The drawer that is used under the hood for creating the side-nav\n * @csspart content-container - The components main content container\n * @csspart content - The components main content\n * @csspart footer-container - The components footer content container\n (where the footer slot content is rendered)\n * @csspart footer-divider - The components footer divider\n * @csspart footer - The components footer content\n * @csspart overlay - The overlay that covers the screen behind the side-nav.\n * @csspart panel - The side-nav's panel (where the whole content is rendered).\n * @csspart body - The side-nav's body (where the default slot content is rendered)\n * @csspart drawer__base - The drawer's base wrapper\n *\n * @cssproperty --side-nav-open-width - The width of the side-nav if in open state\n *\n * @animation sideNav.showNonRail - The animation to use when showing the side-nav in non-rail mode.\n * @animation sideNav.showRail - The animation to use when showing the side-nav in rail mode.\n * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav in non-rail mode.\n * @animation sideNav.hideRail - The animation to use when hiding the side-nav in rail mode.\n * @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.\n * @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.\n */\nexport const SynSideNav = createComponent({\n displayName: 'SynSideNav',\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;AAQtB,IAAM,UAAU;AAChB,UAAU,OAAO,cAAc;AAkDxB,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
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/input.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/input/input.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynBlurEvent } from '@synergy-design-system/components';\nimport type { SynChangeEvent } from '@synergy-design-system/components';\nimport type { SynClearEvent } from '@synergy-design-system/components';\nimport type { SynFocusEvent } from '@synergy-design-system/components';\nimport type { SynInputEvent } from '@synergy-design-system/components';\nimport type { SynInvalidEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-input';\nComponent.define('syn-input');\n\n/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-input--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-divider\n *\n * @slot label - The input's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the input.\n * @slot suffix - Used to append a presentational icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n * @slot increment-number-stepper - An icon to use in lieu of the default increment number stepper icon.\n * @slot decrement-number-stepper - An icon to use in lieu of the default decrement number stepper icon.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-clear - Emitted when the clear button is activated.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input - The internal `<input>` control.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart clear-button - The clear button.\n * @csspart password-toggle-button - The password toggle button.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart stepper - The container that wraps the number stepper.\n * @csspart decrement-number-stepper - The decrement number stepper button.\n * @csspart increment-number-stepper - The increment number stepper button.\n * @csspart divider - The divider between the increment and decrement number stepper buttons.\n *\n * @cssproperty --syn-input-autofill-shadow - The shadow to apply when the input is autofilled.\n * @cssproperty --syn-input-autofill-readonly-shadow - The shadow to apply when the input is readonly and autofilled.\n * @cssproperty --syn-input-autofill-text-fill-color - The text fill color to apply when the input is autofilled.\n * @cssproperty --syn-input-autofill-caret-color - The caret color to apply when the input is autofilled.\n */\nexport const SynInput = createComponent({\n displayName: 'SynInput',\n elementClass: Component,\n events: {\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\n onSynChange: 'syn-change' as EventName<SynChangeEvent>,\n onSynClear: 'syn-clear' as EventName<SynClearEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n onSynInput: 'syn-input' as EventName<SynInputEvent>,\n onSynInvalid: 'syn-invalid' as EventName<SynInvalidEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynBlurEvent } from '@synergy-design-system/components';\nexport type { SynChangeEvent } from '@synergy-design-system/components';\nexport type { SynClearEvent } from '@synergy-design-system/components';\nexport type { SynFocusEvent } from '@synergy-design-system/components';\nexport type { SynInputEvent } from '@synergy-design-system/components';\nexport type { SynInvalidEvent } from '@synergy-design-system/components';\n"],
5
- "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAUtB,IAAM,UAAU;AAChB,UAAU,OAAO,WAAW;AAgDrB,IAAM,WAAW,gBAAgB;AAAA,EACtC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,cAAc;AAAA,EAChB;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
- "names": []
7
- }