@synergy-design-system/react 2.5.0 → 2.7.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/dist/chunks/{chunk.E3427YBK.js → chunk.67I4RKNO.js} +1 -1
- package/dist/chunks/{chunk.E3427YBK.js.map → chunk.67I4RKNO.js.map} +2 -2
- package/dist/chunks/chunk.7ZGCZSWN.js +18 -0
- package/dist/chunks/chunk.7ZGCZSWN.js.map +7 -0
- package/dist/chunks/{chunk.FB24BPQZ.js → chunk.IVSM6OME.js} +1 -1
- package/dist/chunks/chunk.IVSM6OME.js.map +7 -0
- package/dist/chunks/chunk.NDDVIALI.js +25 -0
- package/dist/chunks/chunk.NDDVIALI.js.map +7 -0
- package/dist/components/dropdown.d.ts +2 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/range-tick.d.ts +16 -0
- package/dist/components/range-tick.js +7 -0
- package/dist/components/range-tick.js.map +7 -0
- package/dist/components/range.d.ts +63 -0
- package/dist/components/range.js +7 -0
- package/dist/components/range.js.map +7 -0
- package/dist/components/select.d.ts +3 -1
- package/dist/components/select.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16 -8
- package/package.json +6 -6
- package/dist/chunks/chunk.FB24BPQZ.js.map +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/dropdown.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/dropdown/dropdown.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-dropdown';\nComponent.define('syn-dropdown');\n\n/**\n * @summary Dropdowns expose additional content that \"drops down\" in a panel.\n * @documentation https://synergy.style/components/dropdown\n * @status stable\n * @since 2.0\n *\n * @dependency syn-popup\n *\n * @slot - The dropdown's main content.\n * @slot trigger - The dropdown's trigger, usually a `<syn-button>` element.\n *\n * @event syn-show - Emitted when the dropdown opens.\n * @event syn-after-show - Emitted after the dropdown opens and all animations are complete.\n * @event syn-hide - Emitted when the dropdown closes.\n * @event syn-after-hide - Emitted after the dropdown closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart trigger - The container that wraps the trigger.\n * @csspart panel - The panel that gets shown when the dropdown is open.\n *\n * @animation dropdown.show - The animation to use when showing the dropdown.\n * @animation dropdown.hide - The animation to use when hiding the dropdown.\n */\nexport const SynDropdown = createComponent({\n displayName: 'SynDropdown',\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,cAAc;
|
|
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/dropdown/dropdown.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-dropdown';\nComponent.define('syn-dropdown');\n\n/**\n * @summary Dropdowns expose additional content that \"drops down\" in a panel.\n * @documentation https://synergy.style/components/dropdown\n * @status stable\n * @since 2.0\n *\n * @dependency syn-popup\n *\n * @slot - The dropdown's main content.\n * @slot trigger - The dropdown's trigger, usually a `<syn-button>` element.\n *\n * @event syn-show - Emitted when the dropdown opens.\n * @event syn-after-show - Emitted after the dropdown opens and all animations are complete.\n * @event syn-hide - Emitted when the dropdown closes.\n * @event syn-after-hide - Emitted after the dropdown closes 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 trigger - The container that wraps the trigger.\n * @csspart panel - The panel that gets shown when the dropdown is open.\n *\n * @animation dropdown.show - The animation to use when showing the dropdown.\n * @animation dropdown.hide - The animation to use when hiding the dropdown.\n */\nexport const SynDropdown = createComponent({\n displayName: 'SynDropdown',\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,cAAc;AA0BxB,IAAM,cAAc,gBAAgB;AAAA,EACzC,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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// ../react/src/components/range-tick.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/range-tick/range-tick.component.js";
|
|
5
|
+
var tagName = "syn-range-tick";
|
|
6
|
+
Component.define("syn-range-tick");
|
|
7
|
+
var SynRangeTick = createComponent({
|
|
8
|
+
displayName: "SynRangeTick",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {},
|
|
11
|
+
react: React,
|
|
12
|
+
tagName
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
SynRangeTick
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=chunk.7ZGCZSWN.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/range-tick.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/range-tick/range-tick.component.js';\n\nconst tagName = 'syn-range-tick';\nComponent.define('syn-range-tick');\n\n/**\n * @summary Ticks visually improve positioning on range sliders.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-range--docs\n * @status stable\n *\n * @slot - The tick's label\n *\n * @csspart base - The component's base wrapper.\n * @csspart label - The component's label.\n * @csspart line - The component's tick line.\n *\n * @cssproperty --tick-height - The height of the tick marker.\n * @cssproperty --tick-label-top - The top offset of the tick label.\n */\nexport const SynRangeTick = createComponent({\n displayName: 'SynRangeTick',\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,gBAAgB;AAgB1B,IAAM,eAAe,gBAAgB;AAAA,EAC1C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAER;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/select.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/select/select.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type {\n SynAfterHideEvent, SynAfterShowEvent, SynBlurEvent, SynChangeEvent, SynClearEvent, SynFocusEvent, SynHideEvent, SynInputEvent, SynInvalidEvent, SynShowEvent,\n} from '@synergy-design-system/components';\n\nconst tagName = 'syn-select';\nComponent.define('syn-select');\n\n/**\n * @summary Selects allow you to choose items from a menu of predefined options.\n * @documentation https://synergy.style/components/select\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-popup\n * @dependency syn-tag\n *\n * @slot - The listbox options. Must be `<syn-option>` elements. You can use `<syn-divider>` to group items visually.\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 combobox.\n * @slot suffix - Used to append a presentational icon or similar element to the combobox.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot expand-icon - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-change - Emitted when the control's value changes.\n * @event syn-clear - Emitted when the control's value is cleared.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-show - Emitted when the select's menu opens.\n * @event syn-after-show - Emitted after the select's menu opens and all animations are complete.\n * @event syn-hide - Emitted when the select's menu closes.\n * @event syn-after-hide - Emitted after the select's menu closes and all animations are complete.\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 select's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart combobox - The container the wraps the prefix, suffix, combobox, clear icon, and expand button.\n * @csspart prefix - The container that wraps the prefix slot.\n * @csspart suffix - The container that wraps the suffix slot.\n * @csspart display-input - The element that displays the selected option's label, an `<input>` element.\n * @csspart listbox - The listbox container where options are slotted.\n * @csspart tags - The container that houses option tags when `multiselect` is used.\n * @csspart tag - The individual tags that represent each multiselect option.\n * @csspart tag__base - The tag's base part.\n * @csspart tag__content - The tag's content part.\n * @csspart tag__remove-button - The tag's remove button.\n * @csspart tag__remove-button__base - The tag's remove button base part.\n * @csspart clear-button - The clear button.\n * @csspart expand-icon - The container that wraps the expand icon.\n */\nexport const SynSelect = createComponent({\n displayName: 'SynSelect',\n elementClass: Component,\n events: {\n onSynChange: 'syn-change' as EventName<SynChangeEvent>,\n onSynClear: 'syn-clear' as EventName<SynClearEvent>,\n onSynInput: 'syn-input' as EventName<SynInputEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\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 onSynInvalid: 'syn-invalid' as EventName<SynInvalidEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynChangeEvent } from '@synergy-design-system/components';\nexport type { SynClearEvent } from '@synergy-design-system/components';\nexport type { SynInputEvent } from '@synergy-design-system/components';\nexport type { SynFocusEvent } from '@synergy-design-system/components';\nexport type { SynBlurEvent } from '@synergy-design-system/components';\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';\nexport type { SynInvalidEvent } from '@synergy-design-system/components';\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAOtB,IAAM,UAAU;AAChB,UAAU,OAAO,YAAY;AAiDtB,IAAM,YAAY,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,cAAc;AAAA,EAChB;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// ../react/src/components/range.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/range/range.component.js";
|
|
5
|
+
var tagName = "syn-range";
|
|
6
|
+
Component.define("syn-range");
|
|
7
|
+
var SynRange = createComponent({
|
|
8
|
+
displayName: "SynRange",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {
|
|
11
|
+
onSynBlur: "syn-blur",
|
|
12
|
+
onSynChange: "syn-change",
|
|
13
|
+
onSynFocus: "syn-focus",
|
|
14
|
+
onSynInput: "syn-input",
|
|
15
|
+
onSynInvalid: "syn-invalid",
|
|
16
|
+
onSynMove: "syn-move"
|
|
17
|
+
},
|
|
18
|
+
react: React,
|
|
19
|
+
tagName
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
SynRange
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk.NDDVIALI.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/range.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/range/range.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type {\n SynBlurEvent, SynChangeEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent, SynMoveEvent,\n} from '@synergy-design-system/components';\n\nconst tagName = 'syn-range';\nComponent.define('syn-range');\n\n/**\n * @summary Ranges allow the user to select values within a given range using one or two thumbs.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-range--docs\n * @status stable\n *\n * @dependency syn-tooltip\n *\n * @slot label - The range's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the range.\n * @slot suffix - Used to append a presentational icon or similar element to the range.\n * @slot help-text - Text that describes how to use the range.\n * Alternatively, you can use the `help-text` attribute.\n * @slot ticks - Used to display tick marks at specific intervals along the range.\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-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\n * and its constraints aren't satisfied.\n * @event syn-move - Emitted when the user moves a thumb, either via touch or keyboard.\n * Use `Event.preventDefault()` to prevent movement.\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-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input-wrapper - The container that wraps the input track and ticks.\n * @csspart track-wrapper - The wrapper for the track.\n * @csspart track - The inactive track.\n * @csspart active-track - The active track.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart ticks - The container that wraps the tick marks.\n * @csspart thumb - The thumb(s) that the user can drag to change the range.\n *\n * @cssproperty --thumb-size - The size of a thumb.\n * @cssproperty --thumb-hit-area-size - The clickable area around the thumb.\n * Per default this is set to 140% of the thumb size. Must be a scale css value (defaults to 1.4).\n * @cssproperty --track-hit-area-size - The clickable area around the track (top and left).\n * @cssproperty --track-color-active - Color of the track representing the current value.\n * @cssproperty --track-color-inactive - Color of the track that represents the remaining value.\n * @cssproperty --track-height - The height of the track.\n * @cssproperty --track-active-offset - The point of origin of the active track,\n * starting at the left side of the range.\n */\nexport const SynRange = createComponent({\n displayName: 'SynRange',\n elementClass: Component,\n events: {\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\n onSynChange: 'syn-change' as EventName<SynChangeEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n onSynInput: 'syn-input' as EventName<SynInputEvent>,\n onSynInvalid: 'syn-invalid' as EventName<SynInvalidEvent>,\n onSynMove: 'syn-move' as EventName<SynMoveEvent>,\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 { SynFocusEvent } from '@synergy-design-system/components';\nexport type { SynInputEvent } from '@synergy-design-system/components';\nexport type { SynInvalidEvent } from '@synergy-design-system/components';\nexport type { SynMoveEvent } from '@synergy-design-system/components';\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAOtB,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,cAAc;AAAA,IACd,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -17,7 +17,8 @@ import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent }
|
|
|
17
17
|
* @event syn-hide - Emitted when the dropdown closes.
|
|
18
18
|
* @event syn-after-hide - Emitted after the dropdown closes and all animations are complete.
|
|
19
19
|
*
|
|
20
|
-
* @csspart base - The component's base wrapper.
|
|
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.
|
|
21
22
|
* @csspart trigger - The container that wraps the trigger.
|
|
22
23
|
* @csspart panel - The panel that gets shown when the dropdown is open.
|
|
23
24
|
*
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/range-tick/range-tick.component.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Ticks visually improve positioning on range sliders.
|
|
4
|
+
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-range--docs
|
|
5
|
+
* @status stable
|
|
6
|
+
*
|
|
7
|
+
* @slot - The tick's label
|
|
8
|
+
*
|
|
9
|
+
* @csspart base - The component's base wrapper.
|
|
10
|
+
* @csspart label - The component's label.
|
|
11
|
+
* @csspart line - The component's tick line.
|
|
12
|
+
*
|
|
13
|
+
* @cssproperty --tick-height - The height of the tick marker.
|
|
14
|
+
* @cssproperty --tick-label-top - The top offset of the tick label.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SynRangeTick: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/range/range.component.js';
|
|
2
|
+
import { type EventName } from '@lit/react';
|
|
3
|
+
import type { SynBlurEvent, SynChangeEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent, SynMoveEvent } from '@synergy-design-system/components';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Ranges allow the user to select values within a given range using one or two thumbs.
|
|
6
|
+
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-range--docs
|
|
7
|
+
* @status stable
|
|
8
|
+
*
|
|
9
|
+
* @dependency syn-tooltip
|
|
10
|
+
*
|
|
11
|
+
* @slot label - The range's label. Alternatively, you can use the `label` attribute.
|
|
12
|
+
* @slot prefix - Used to prepend a presentational icon or similar element to the range.
|
|
13
|
+
* @slot suffix - Used to append a presentational icon or similar element to the range.
|
|
14
|
+
* @slot help-text - Text that describes how to use the range.
|
|
15
|
+
* Alternatively, you can use the `help-text` attribute.
|
|
16
|
+
* @slot ticks - Used to display tick marks at specific intervals along the range.
|
|
17
|
+
*
|
|
18
|
+
* @event syn-blur - Emitted when the control loses focus.
|
|
19
|
+
* @event syn-change - Emitted when an alteration to the control's value is committed by the user.
|
|
20
|
+
* @event syn-focus - Emitted when the control gains focus.
|
|
21
|
+
* @event syn-input - Emitted when the control receives input.
|
|
22
|
+
* @event syn-invalid - Emitted when the form control has been checked for validity
|
|
23
|
+
* and its constraints aren't satisfied.
|
|
24
|
+
* @event syn-move - Emitted when the user moves a thumb, either via touch or keyboard.
|
|
25
|
+
* Use `Event.preventDefault()` to prevent movement.
|
|
26
|
+
*
|
|
27
|
+
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
28
|
+
* @csspart form-control-label - The label's wrapper.
|
|
29
|
+
* @csspart form-control-help-text - The help text's wrapper.
|
|
30
|
+
* @csspart base - The component's base wrapper.
|
|
31
|
+
* @csspart input-wrapper - The container that wraps the input track and ticks.
|
|
32
|
+
* @csspart track-wrapper - The wrapper for the track.
|
|
33
|
+
* @csspart track - The inactive track.
|
|
34
|
+
* @csspart active-track - The active track.
|
|
35
|
+
* @csspart prefix - The container that wraps the prefix.
|
|
36
|
+
* @csspart suffix - The container that wraps the suffix.
|
|
37
|
+
* @csspart ticks - The container that wraps the tick marks.
|
|
38
|
+
* @csspart thumb - The thumb(s) that the user can drag to change the range.
|
|
39
|
+
*
|
|
40
|
+
* @cssproperty --thumb-size - The size of a thumb.
|
|
41
|
+
* @cssproperty --thumb-hit-area-size - The clickable area around the thumb.
|
|
42
|
+
* Per default this is set to 140% of the thumb size. Must be a scale css value (defaults to 1.4).
|
|
43
|
+
* @cssproperty --track-hit-area-size - The clickable area around the track (top and left).
|
|
44
|
+
* @cssproperty --track-color-active - Color of the track representing the current value.
|
|
45
|
+
* @cssproperty --track-color-inactive - Color of the track that represents the remaining value.
|
|
46
|
+
* @cssproperty --track-height - The height of the track.
|
|
47
|
+
* @cssproperty --track-active-offset - The point of origin of the active track,
|
|
48
|
+
* starting at the left side of the range.
|
|
49
|
+
*/
|
|
50
|
+
export declare const SynRange: import("@lit/react").ReactWebComponent<Component, {
|
|
51
|
+
onSynBlur: EventName<SynBlurEvent>;
|
|
52
|
+
onSynChange: EventName<SynChangeEvent>;
|
|
53
|
+
onSynFocus: EventName<SynFocusEvent>;
|
|
54
|
+
onSynInput: EventName<SynInputEvent>;
|
|
55
|
+
onSynInvalid: EventName<SynInvalidEvent>;
|
|
56
|
+
onSynMove: EventName<SynMoveEvent>;
|
|
57
|
+
}>;
|
|
58
|
+
export type { SynBlurEvent } from '@synergy-design-system/components';
|
|
59
|
+
export type { SynChangeEvent } from '@synergy-design-system/components';
|
|
60
|
+
export type { SynFocusEvent } from '@synergy-design-system/components';
|
|
61
|
+
export type { SynInputEvent } from '@synergy-design-system/components';
|
|
62
|
+
export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
63
|
+
export type { SynMoveEvent } from '@synergy-design-system/components';
|
|
@@ -14,6 +14,7 @@ import type { SynAfterHideEvent, SynAfterShowEvent, SynBlurEvent, SynChangeEvent
|
|
|
14
14
|
* @slot - The listbox options. Must be `<syn-option>` elements. You can use `<syn-divider>` to group items visually.
|
|
15
15
|
* @slot label - The input's label. Alternatively, you can use the `label` attribute.
|
|
16
16
|
* @slot prefix - Used to prepend a presentational icon or similar element to the combobox.
|
|
17
|
+
* @slot suffix - Used to append a presentational icon or similar element to the combobox.
|
|
17
18
|
* @slot clear-icon - An icon to use in lieu of the default clear icon.
|
|
18
19
|
* @slot expand-icon - The icon to show when the control is expanded and collapsed. Rotates on open and close.
|
|
19
20
|
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
|
@@ -33,8 +34,9 @@ import type { SynAfterHideEvent, SynAfterShowEvent, SynBlurEvent, SynChangeEvent
|
|
|
33
34
|
* @csspart form-control-label - The label's wrapper.
|
|
34
35
|
* @csspart form-control-input - The select's wrapper.
|
|
35
36
|
* @csspart form-control-help-text - The help text's wrapper.
|
|
36
|
-
* @csspart combobox - The container the wraps the prefix, combobox, clear icon, and expand button.
|
|
37
|
+
* @csspart combobox - The container the wraps the prefix, suffix, combobox, clear icon, and expand button.
|
|
37
38
|
* @csspart prefix - The container that wraps the prefix slot.
|
|
39
|
+
* @csspart suffix - The container that wraps the suffix slot.
|
|
38
40
|
* @csspart display-input - The element that displays the selected option's label, an `<input>` element.
|
|
39
41
|
* @csspart listbox - The listbox container where options are slotted.
|
|
40
42
|
* @csspart tags - The container that houses option tags when `multiselect` is used.
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export { SynProgressRing } from './components/progress-ring.js';
|
|
|
30
30
|
export { SynRadio } from './components/radio.js';
|
|
31
31
|
export { SynRadioButton } from './components/radio-button.js';
|
|
32
32
|
export { SynRadioGroup } from './components/radio-group.js';
|
|
33
|
+
export { SynRange } from './components/range.js';
|
|
34
|
+
export { SynRangeTick } from './components/range-tick.js';
|
|
33
35
|
export { SynSelect } from './components/select.js';
|
|
34
36
|
export { SynSideNav } from './components/side-nav.js';
|
|
35
37
|
export { SynSpinner } from './components/spinner.js';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynTabPanel
|
|
3
|
+
} from "./chunks/chunk.CKKXGN4F.js";
|
|
4
|
+
import {
|
|
5
|
+
SynTab
|
|
6
|
+
} from "./chunks/chunk.XNCRUJQI.js";
|
|
1
7
|
import {
|
|
2
8
|
SynTag
|
|
3
9
|
} from "./chunks/chunk.7T7PO2AE.js";
|
|
@@ -10,9 +16,15 @@ import {
|
|
|
10
16
|
import {
|
|
11
17
|
SynRadio
|
|
12
18
|
} from "./chunks/chunk.AFCMSVBY.js";
|
|
19
|
+
import {
|
|
20
|
+
SynRangeTick
|
|
21
|
+
} from "./chunks/chunk.7ZGCZSWN.js";
|
|
22
|
+
import {
|
|
23
|
+
SynRange
|
|
24
|
+
} from "./chunks/chunk.NDDVIALI.js";
|
|
13
25
|
import {
|
|
14
26
|
SynSelect
|
|
15
|
-
} from "./chunks/chunk.
|
|
27
|
+
} from "./chunks/chunk.IVSM6OME.js";
|
|
16
28
|
import {
|
|
17
29
|
SynSideNav
|
|
18
30
|
} from "./chunks/chunk.A3DZYM6Z.js";
|
|
@@ -25,12 +37,6 @@ import {
|
|
|
25
37
|
import {
|
|
26
38
|
SynTabGroup
|
|
27
39
|
} from "./chunks/chunk.VLHZNU3B.js";
|
|
28
|
-
import {
|
|
29
|
-
SynTabPanel
|
|
30
|
-
} from "./chunks/chunk.CKKXGN4F.js";
|
|
31
|
-
import {
|
|
32
|
-
SynTab
|
|
33
|
-
} from "./chunks/chunk.XNCRUJQI.js";
|
|
34
40
|
import {
|
|
35
41
|
SynOptgroup
|
|
36
42
|
} from "./chunks/chunk.DLAIDGSD.js";
|
|
@@ -99,7 +105,7 @@ import {
|
|
|
99
105
|
} from "./chunks/chunk.BQ62A32K.js";
|
|
100
106
|
import {
|
|
101
107
|
SynDropdown
|
|
102
|
-
} from "./chunks/chunk.
|
|
108
|
+
} from "./chunks/chunk.67I4RKNO.js";
|
|
103
109
|
import {
|
|
104
110
|
SynFile
|
|
105
111
|
} from "./chunks/chunk.3OAYVNPH.js";
|
|
@@ -157,6 +163,8 @@ export {
|
|
|
157
163
|
SynRadio,
|
|
158
164
|
SynRadioButton,
|
|
159
165
|
SynRadioGroup,
|
|
166
|
+
SynRange,
|
|
167
|
+
SynRangeTick,
|
|
160
168
|
SynSelect,
|
|
161
169
|
SynSideNav,
|
|
162
170
|
SynSpinner,
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"url": "https://www.sick.com"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@lit/react": "^1.0.
|
|
8
|
-
"@synergy-design-system/components": "^2.
|
|
7
|
+
"@lit/react": "^1.0.5",
|
|
8
|
+
"@synergy-design-system/components": "^2.7.0"
|
|
9
9
|
},
|
|
10
10
|
"description": "React wrappers for the Synergy Design System",
|
|
11
11
|
"exports": {
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"directory": "packages/react"
|
|
41
41
|
},
|
|
42
42
|
"type": "module",
|
|
43
|
-
"version": "2.
|
|
43
|
+
"version": "2.7.0",
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/react": "^18.
|
|
46
|
-
"react": "^18.
|
|
45
|
+
"@types/react": "^18.3.4",
|
|
46
|
+
"react": "^18.3.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@synergy-design-system/tokens": "^2.
|
|
49
|
+
"@synergy-design-system/tokens": "^2.8.0"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/select.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/select/select.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type {\n SynAfterHideEvent, SynAfterShowEvent, SynBlurEvent, SynChangeEvent, SynClearEvent, SynFocusEvent, SynHideEvent, SynInputEvent, SynInvalidEvent, SynShowEvent,\n} from '@synergy-design-system/components';\n\nconst tagName = 'syn-select';\nComponent.define('syn-select');\n\n/**\n * @summary Selects allow you to choose items from a menu of predefined options.\n * @documentation https://synergy.style/components/select\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-popup\n * @dependency syn-tag\n *\n * @slot - The listbox options. Must be `<syn-option>` elements. You can use `<syn-divider>` to group items visually.\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 combobox.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot expand-icon - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-change - Emitted when the control's value changes.\n * @event syn-clear - Emitted when the control's value is cleared.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-show - Emitted when the select's menu opens.\n * @event syn-after-show - Emitted after the select's menu opens and all animations are complete.\n * @event syn-hide - Emitted when the select's menu closes.\n * @event syn-after-hide - Emitted after the select's menu closes and all animations are complete.\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 select's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart combobox - The container the wraps the prefix, combobox, clear icon, and expand button.\n * @csspart prefix - The container that wraps the prefix slot.\n * @csspart display-input - The element that displays the selected option's label, an `<input>` element.\n * @csspart listbox - The listbox container where options are slotted.\n * @csspart tags - The container that houses option tags when `multiselect` is used.\n * @csspart tag - The individual tags that represent each multiselect option.\n * @csspart tag__base - The tag's base part.\n * @csspart tag__content - The tag's content part.\n * @csspart tag__remove-button - The tag's remove button.\n * @csspart tag__remove-button__base - The tag's remove button base part.\n * @csspart clear-button - The clear button.\n * @csspart expand-icon - The container that wraps the expand icon.\n */\nexport const SynSelect = createComponent({\n displayName: 'SynSelect',\n elementClass: Component,\n events: {\n onSynChange: 'syn-change' as EventName<SynChangeEvent>,\n onSynClear: 'syn-clear' as EventName<SynClearEvent>,\n onSynInput: 'syn-input' as EventName<SynInputEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\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 onSynInvalid: 'syn-invalid' as EventName<SynInvalidEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynChangeEvent } from '@synergy-design-system/components';\nexport type { SynClearEvent } from '@synergy-design-system/components';\nexport type { SynInputEvent } from '@synergy-design-system/components';\nexport type { SynFocusEvent } from '@synergy-design-system/components';\nexport type { SynBlurEvent } from '@synergy-design-system/components';\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';\nexport type { SynInvalidEvent } from '@synergy-design-system/components';\n"],
|
|
5
|
-
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAOtB,IAAM,UAAU;AAChB,UAAU,OAAO,YAAY;AA+CtB,IAAM,YAAY,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,cAAc;AAAA,EAChB;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|