@ilo-org/react 0.28.3 → 0.28.5
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/lib/cjs/_store/NumberPicker-chunk-ho5F2J60.js +1 -0
- package/lib/cjs/_store/{NumberPicker-entry-z9i-7tAg.js → NumberPicker-entry-WRcxS34e.js} +1 -1
- package/lib/cjs/_store/{components-entry-BybNCccy.js → components-entry-CYrq8K46.js} +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/esm/_store/{NumberPicker-chunk-DGfBEswe.js → NumberPicker-chunk-Dnzrt8V_.js} +18 -16
- package/lib/esm/_store/NumberPicker-entry-DRUpQKat.js +4 -0
- package/lib/esm/_store/{components-entry-BY0r4sij.js → components-entry-sM7klP51.js} +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/styles/components/video.css +1 -1
- package/lib/styles/index.css +1 -1
- package/lib/styles/index.css.map +1 -1
- package/lib/styles/monorepo.css +1 -1
- package/lib/styles/monorepo.css.map +1 -1
- package/lib/types/components/NumberPicker/NumberPicker.props.d.ts +4 -0
- package/package.json +5 -4
- package/lib/cjs/_store/NumberPicker-chunk-CTlAxdIK.js +0 -1
- package/lib/esm/_store/NumberPicker-entry-BYmb-h1Z.js +0 -4
|
@@ -17,5 +17,9 @@ export interface NumberPickerProps extends FormFieldProps<HTMLInputElement> {
|
|
|
17
17
|
* The step value of the input.
|
|
18
18
|
* */
|
|
19
19
|
step?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The value of the input.
|
|
22
|
+
*/
|
|
23
|
+
value?: number;
|
|
20
24
|
}
|
|
21
25
|
export type LabelledNumberPickerProps = LabelledFormFieldProps<NumberPickerProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/react",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.5",
|
|
4
4
|
"description": "React components for the ILO's Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui_patterns",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@ilo-org/brand-assets": "1.0.1",
|
|
78
78
|
"@ilo-org/fonts": "2.0.0",
|
|
79
79
|
"@ilo-org/icons-react": "1.0.6",
|
|
80
|
-
"@ilo-org/styles": "1.11.
|
|
80
|
+
"@ilo-org/styles": "1.11.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@chromatic-com/storybook": "3.2.7",
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
"@vitest/ui": "^2.0.5",
|
|
107
107
|
"chromatic": "^13.3.4",
|
|
108
108
|
"glob": "^10.3.10",
|
|
109
|
+
"html-to-image": "^1.11.11",
|
|
109
110
|
"http-server": "^14.1.0",
|
|
110
111
|
"jsdom": "^25.0.0",
|
|
111
112
|
"storybook": "^8.6.11",
|
|
@@ -114,9 +115,9 @@
|
|
|
114
115
|
"vite-plugin-dts": "^3.9.1",
|
|
115
116
|
"vite-plugin-static-copy": "^1.0.6",
|
|
116
117
|
"vitest": "^2.0.5",
|
|
118
|
+
"@ilo-org/eslint-config": "2.0.0",
|
|
117
119
|
"@ilo-org/prettier-config": "2.0.0",
|
|
118
|
-
"@ilo-org/typescript-config": "2.0.0"
|
|
119
|
-
"@ilo-org/eslint-config": "2.0.0"
|
|
120
|
+
"@ilo-org/typescript-config": "2.0.0"
|
|
120
121
|
},
|
|
121
122
|
"peerDependencies": {
|
|
122
123
|
"react": "18 || 19",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),l=require("react"),R=require("./index-chunk-Cxg31gtu.js"),g=require("./useGlobalSettings-chunk-Cd48T6lS.js"),u=require("./FormControl-chunk-bBkCVOW6.js"),p=l.forwardRef(({onChange:e,onBlur:n,disabled:s=!1,error:o,id:t,name:r,placeholder:c,required:m,max:b,min:d,step:f},C)=>{const{prefix:a}=g.useGlobalSettings(),x=u.useFormControl(),{ariaDescribedBy:y}=x,N=`${a}--input`,k=`${a}--numberpicker`,q=!s&&!!o,h=R.classNames(N,k,{error:q}),j=P=>{e&&e(P)};return i.jsx("input",{ref:C,id:t||r,name:r,onChange:j,onBlur:n,disabled:s,placeholder:c,required:m,type:"number",className:h,pattern:"[0-9]*",inputMode:"numeric","aria-describedby":y,max:b,min:d,step:f})}),F=l.forwardRef((e,n)=>{const{style:s,inputStyle:o,className:t,...r}=e,c=e.id?e.id:e.name;return i.jsx(u.FormControl,{fieldId:c,style:s,className:t,...r,children:i.jsx(p,{ref:n,style:o,...r})})});exports.LabelledNumberPicker=F;
|