@synergy-design-system/react 2.31.0-numeric.5 → 2.31.1
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/dist/chunks/{chunk.I7M5E4N3.js → chunk.ZW5UQYCL.js} +2 -3
- package/dist/chunks/chunk.ZW5UQYCL.js.map +7 -0
- package/dist/components/input.d.ts +0 -4
- package/dist/components/input.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/syn-jsx-elements.d.ts +1 -7
- package/package.json +2 -2
- package/dist/chunks/chunk.I7M5E4N3.js.map +0 -7
|
@@ -13,8 +13,7 @@ var SynInput = createComponent({
|
|
|
13
13
|
onSynClear: "syn-clear",
|
|
14
14
|
onSynFocus: "syn-focus",
|
|
15
15
|
onSynInput: "syn-input",
|
|
16
|
-
onSynInvalid: "syn-invalid"
|
|
17
|
-
onSynClamp: "syn-clamp"
|
|
16
|
+
onSynInvalid: "syn-invalid"
|
|
18
17
|
},
|
|
19
18
|
react: React,
|
|
20
19
|
tagName
|
|
@@ -23,4 +22,4 @@ var SynInput = createComponent({
|
|
|
23
22
|
export {
|
|
24
23
|
SynInput
|
|
25
24
|
};
|
|
26
|
-
//# sourceMappingURL=chunk.
|
|
25
|
+
//# sourceMappingURL=chunk.ZW5UQYCL.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';\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
|
+
}
|
|
@@ -6,7 +6,6 @@ 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';
|
|
10
9
|
/**
|
|
11
10
|
* @summary Inputs collect data from the user.
|
|
12
11
|
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-input--docs
|
|
@@ -32,7 +31,6 @@ import type { SynClampEvent } from '@synergy-design-system/components';
|
|
|
32
31
|
* @event syn-focus - Emitted when the control gains focus.
|
|
33
32
|
* @event syn-input - Emitted when the control receives input.
|
|
34
33
|
* @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.
|
|
36
34
|
*
|
|
37
35
|
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
38
36
|
* @csspart form-control-label - The label's wrapper.
|
|
@@ -61,7 +59,6 @@ export declare const SynInput: import("@lit/react").ReactWebComponent<Component,
|
|
|
61
59
|
onSynFocus: EventName<SynFocusEvent>;
|
|
62
60
|
onSynInput: EventName<SynInputEvent>;
|
|
63
61
|
onSynInvalid: EventName<SynInvalidEvent>;
|
|
64
|
-
onSynClamp: EventName<SynClampEvent>;
|
|
65
62
|
}>;
|
|
66
63
|
export type { SynBlurEvent } from '@synergy-design-system/components';
|
|
67
64
|
export type { SynChangeEvent } from '@synergy-design-system/components';
|
|
@@ -69,4 +66,3 @@ export type { SynClearEvent } from '@synergy-design-system/components';
|
|
|
69
66
|
export type { SynFocusEvent } from '@synergy-design-system/components';
|
|
70
67
|
export type { SynInputEvent } from '@synergy-design-system/components';
|
|
71
68
|
export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
72
|
-
export type { SynClampEvent } from '@synergy-design-system/components';
|
package/dist/components/input.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -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,
|
|
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';
|
|
3
3
|
/**
|
|
4
4
|
* Used core types
|
|
5
5
|
* @see https://coryrylan.com/blog/how-to-use-web-components-with-typescript-and-react
|
|
@@ -746,7 +746,6 @@ 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.
|
|
750
749
|
*
|
|
751
750
|
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
752
751
|
* @csspart form-control-label - The label's wrapper.
|
|
@@ -791,10 +790,6 @@ export type SynCustomElement<SynElement extends HTMLElement, Events extends SynE
|
|
|
791
790
|
[
|
|
792
791
|
'syn-invalid',
|
|
793
792
|
SynInvalidEvent
|
|
794
|
-
],
|
|
795
|
-
[
|
|
796
|
-
'syn-clamp',
|
|
797
|
-
SynClampEvent
|
|
798
793
|
]
|
|
799
794
|
]>;
|
|
800
795
|
/**
|
|
@@ -2140,7 +2135,6 @@ declare module 'react' {
|
|
|
2140
2135
|
* @event syn-focus - Emitted when the control gains focus.
|
|
2141
2136
|
* @event syn-input - Emitted when the control receives input.
|
|
2142
2137
|
* @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
2143
|
-
* @event syn-clamp - Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.
|
|
2144
2138
|
*
|
|
2145
2139
|
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
2146
2140
|
* @csspart form-control-label - The label's wrapper.
|
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.
|
|
8
|
+
"@synergy-design-system/components": "^2.31.1"
|
|
9
9
|
},
|
|
10
10
|
"description": "React wrappers for the Synergy Design System",
|
|
11
11
|
"exports": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"directory": "packages/react"
|
|
44
44
|
},
|
|
45
45
|
"type": "module",
|
|
46
|
-
"version": "2.31.
|
|
46
|
+
"version": "2.31.1",
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/react": "^19.0.12",
|
|
49
49
|
"react": "^19.0.0"
|
|
@@ -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';\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
|
-
}
|