@chayns-components/devalue-slider 5.5.26 → 5.5.28
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/AGENTS.md +14 -2
- package/package.json +4 -4
package/AGENTS.md
CHANGED
|
@@ -91,11 +91,22 @@ import { DevalueSlider } from '@chayns-components/devalue-slider';
|
|
|
91
91
|
|
|
92
92
|
### Props
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
| name | type | required | description |
|
|
95
|
+
| --- | --- | --- | --- |
|
|
96
|
+
| `backgroundColor` | `BackgroundColor \| undefined` | no | The basic color of the slider.<br />This color is the background of the track before the slider is devalued. |
|
|
97
|
+
| `devalueBackgroundColor` | `BackgroundColor \| undefined` | no | The devalue color of the slider.<br />This color fills the track from the left on user movement.<br />This color is the background of the timer after the slider is devalued. |
|
|
98
|
+
| `devalueTime` | `Date \| undefined` | no | If this slider was devalued, provide the time when it was devalued.<br />This will show a timer. |
|
|
99
|
+
| `isDisabled` | `boolean \| undefined` | no | Disables the slider and cancels any active drags. |
|
|
100
|
+
| `label` | `string \| undefined` | no | The label of the slider. The default value is "EINLÖSEN" |
|
|
101
|
+
| `onChange` | `DevalueSliderOnChangeHandler \| undefined` | no | This function is called when the slider value changes.<br />With this function you can keep track of the movement of the slider. |
|
|
102
|
+
| `onComplete` | `DevalueSliderOnCompleteHandler \| undefined` | no | This function is called when the slider is completed.<br />The slider is completed when the user devalues the slider<br />and the animation is completed. |
|
|
103
|
+
| `onDevalue` | `DevalueSliderOnDevalueHandler \| undefined` | no | This function is called when the slider is devalued. |
|
|
95
104
|
|
|
96
105
|
### Types
|
|
97
106
|
|
|
98
|
-
|
|
107
|
+
- `DevalueSliderOnChangeHandler` -> `type DevalueSliderOnChangeHandler = (relativeValue: number) => void;`
|
|
108
|
+
- `DevalueSliderOnCompleteHandler` -> `type DevalueSliderOnCompleteHandler = () => void;`
|
|
109
|
+
- `DevalueSliderOnDevalueHandler` -> `type DevalueSliderOnDevalueHandler = () => Promise<DevalueSliderOnDevalueHandlerResult>;`
|
|
99
110
|
|
|
100
111
|
### Usage Notes
|
|
101
112
|
|
|
@@ -105,3 +116,4 @@ No additional exported types documented.
|
|
|
105
116
|
### Anti Patterns
|
|
106
117
|
|
|
107
118
|
- Avoid imports from internal paths such as `@chayns-components/devalue-slider/src/...`; always use the public package export.
|
|
119
|
+
- Avoid incomplete prop objects; follow the documented prop types and required fields.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chayns-components/devalue-slider",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.28",
|
|
4
4
|
"description": "A slider to devalue something.",
|
|
5
5
|
"siteEffects": false,
|
|
6
6
|
"browserslist": [
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"url": "https://github.com/TobitSoftware/chayns-components/issues"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@chayns-components/core": "^5.5.
|
|
56
|
-
"@chayns-components/textstring": "^5.5.
|
|
55
|
+
"@chayns-components/core": "^5.5.28",
|
|
56
|
+
"@chayns-components/textstring": "^5.5.28",
|
|
57
57
|
"@react-hook/size": "^2.1.2",
|
|
58
58
|
"react-compiler-runtime": "^1.0.0"
|
|
59
59
|
},
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "20b5354c0ee43c56e9919589f6b3bad7cf6b14bb"
|
|
87
87
|
}
|