@imfusion/web-ui 0.6.4-dev.31.gcef47041 → 0.6.4-dev.36.ga02df89a

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.
@@ -2920,6 +2920,660 @@
2920
2920
  }
2921
2921
  ]
2922
2922
  },
2923
+ "number-field": {
2924
+ "root": {
2925
+ "name": "NumberField.Root",
2926
+ "description": "",
2927
+ "props": [
2928
+ {
2929
+ "name": "allowOutOfRange",
2930
+ "required": false,
2931
+ "type": "boolean",
2932
+ "defaultValue": "false",
2933
+ "description": "When true, direct text entry may be outside the `min`/`max` range without clamping,\nso native range underflow/overflow validation can occur.\nStep-based interactions (keyboard arrows, buttons, wheel, scrub) still clamp."
2934
+ },
2935
+ {
2936
+ "name": "allowWheelScrub",
2937
+ "required": false,
2938
+ "type": "boolean",
2939
+ "defaultValue": "false",
2940
+ "description": "Whether to allow the user to scrub the input value with the mouse wheel while focused and\nhovering over the input."
2941
+ },
2942
+ {
2943
+ "name": "className",
2944
+ "required": false,
2945
+ "type": "| string\n| ((state: NumberFieldRootState) => string)",
2946
+ "defaultValue": null,
2947
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
2948
+ },
2949
+ {
2950
+ "name": "defaultValue",
2951
+ "required": false,
2952
+ "type": "number",
2953
+ "defaultValue": null,
2954
+ "description": "The uncontrolled value of the field when it's initially rendered.\n\nTo render a controlled number field, use the `value` prop instead."
2955
+ },
2956
+ {
2957
+ "name": "disabled",
2958
+ "required": false,
2959
+ "type": "boolean",
2960
+ "defaultValue": "false",
2961
+ "description": "Whether the component should ignore user interaction."
2962
+ },
2963
+ {
2964
+ "name": "form",
2965
+ "required": false,
2966
+ "type": "string",
2967
+ "defaultValue": null,
2968
+ "description": "Identifies the form that owns the hidden input.\nUseful when the number field is rendered outside the form."
2969
+ },
2970
+ {
2971
+ "name": "format",
2972
+ "required": false,
2973
+ "type": "NumberFormatOptions",
2974
+ "defaultValue": null,
2975
+ "description": "Options to format the input value."
2976
+ },
2977
+ {
2978
+ "name": "id",
2979
+ "required": false,
2980
+ "type": "string",
2981
+ "defaultValue": null,
2982
+ "description": "The id of the input element."
2983
+ },
2984
+ {
2985
+ "name": "inputRef",
2986
+ "required": false,
2987
+ "type": "Ref<HTMLInputElement>",
2988
+ "defaultValue": null,
2989
+ "description": "A ref to access the hidden input element."
2990
+ },
2991
+ {
2992
+ "name": "largeStep",
2993
+ "required": false,
2994
+ "type": "number",
2995
+ "defaultValue": "10",
2996
+ "description": "The large step value of the input element when incrementing while the shift key is held.\nSnaps to multiples of this value when `snapOnStep` is enabled."
2997
+ },
2998
+ {
2999
+ "name": "locale",
3000
+ "required": false,
3001
+ "type": "LocalesArgument",
3002
+ "defaultValue": null,
3003
+ "description": "The locale of the input element.\nDefaults to the user's runtime locale."
3004
+ },
3005
+ {
3006
+ "name": "max",
3007
+ "required": false,
3008
+ "type": "number",
3009
+ "defaultValue": null,
3010
+ "description": "The maximum value of the input element."
3011
+ },
3012
+ {
3013
+ "name": "min",
3014
+ "required": false,
3015
+ "type": "number",
3016
+ "defaultValue": null,
3017
+ "description": "The minimum value of the input element."
3018
+ },
3019
+ {
3020
+ "name": "name",
3021
+ "required": false,
3022
+ "type": "string",
3023
+ "defaultValue": null,
3024
+ "description": "Identifies the field when a form is submitted."
3025
+ },
3026
+ {
3027
+ "name": "onValueChange",
3028
+ "required": false,
3029
+ "type": "(\n value: number | null,\n eventDetails: NumberFieldRootChangeEventDetails\n) => void",
3030
+ "defaultValue": null,
3031
+ "description": "Callback fired when the number value changes.\n\nThe `eventDetails.reason` indicates what triggered the change:\n- `'input-change'` for parseable typing or programmatic text updates\n- `'input-clear'` when the field becomes empty\n- `'input-blur'` when formatting (and clamping, if enabled) occurs on blur\n- `'input-paste'` for paste interactions\n- `'keyboard'` for arrow-key/Home/End stepping (typing digits uses `'input-change'`/`'input-clear'`)\n- `'increment-press'` / `'decrement-press'` for button presses on the increment and decrement controls\n- `'wheel'` for wheel-based scrubbing\n- `'scrub'` for scrub area drags"
3032
+ },
3033
+ {
3034
+ "name": "onValueCommitted",
3035
+ "required": false,
3036
+ "type": "(\n value: number | null,\n eventDetails: NumberFieldRootCommitEventDetails\n) => void",
3037
+ "defaultValue": null,
3038
+ "description": "Callback function that is fired when the value is committed.\nIt runs later than `onValueChange`, when:\n- The input is blurred after typing a value.\n- The pointer is released after scrubbing or pressing the increment/decrement buttons.\n\nIt runs simultaneously with `onValueChange` when interacting with the keyboard or the\nmouse wheel.\n\n**Warning**: This is a generic event not a change event."
3039
+ },
3040
+ {
3041
+ "name": "readOnly",
3042
+ "required": false,
3043
+ "type": "boolean",
3044
+ "defaultValue": "false",
3045
+ "description": "Whether the user should be unable to change the field value."
3046
+ },
3047
+ {
3048
+ "name": "ref",
3049
+ "required": false,
3050
+ "type": "Ref<HTMLDivElement>",
3051
+ "defaultValue": null,
3052
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
3053
+ },
3054
+ {
3055
+ "name": "render",
3056
+ "required": false,
3057
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, NumberFieldRootState>",
3058
+ "defaultValue": null,
3059
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
3060
+ },
3061
+ {
3062
+ "name": "required",
3063
+ "required": false,
3064
+ "type": "boolean",
3065
+ "defaultValue": "false",
3066
+ "description": "Whether the user must enter a value before submitting a form."
3067
+ },
3068
+ {
3069
+ "name": "smallStep",
3070
+ "required": false,
3071
+ "type": "number",
3072
+ "defaultValue": "0.1",
3073
+ "description": "The small step value of the input element when incrementing while the alt key is held.\nSnaps to multiples of this value when `snapOnStep` is enabled."
3074
+ },
3075
+ {
3076
+ "name": "snapOnStep",
3077
+ "required": false,
3078
+ "type": "boolean",
3079
+ "defaultValue": "false",
3080
+ "description": "Whether the value should snap to the nearest step when incrementing or decrementing."
3081
+ },
3082
+ {
3083
+ "name": "step",
3084
+ "required": false,
3085
+ "type": "number | \"any\"",
3086
+ "defaultValue": "1",
3087
+ "description": "Amount to increment and decrement with the buttons and arrow keys, or to scrub with pointer movement in the scrub area.\nTo always enable step validation on form submission, specify the `min` prop explicitly in conjunction with this prop.\nSpecify `step=\"any\"` to always disable step validation; interactive stepping then uses a base amount of `1`, while the alt and shift keys still step by `smallStep` and `largeStep`."
3088
+ },
3089
+ {
3090
+ "name": "style",
3091
+ "required": false,
3092
+ "type": "| CSSProperties\n| ((state: NumberFieldRootState) => CSSProperties)",
3093
+ "defaultValue": null,
3094
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
3095
+ },
3096
+ {
3097
+ "name": "value",
3098
+ "required": false,
3099
+ "type": "number | null",
3100
+ "defaultValue": null,
3101
+ "description": "The raw numeric value of the field."
3102
+ }
3103
+ ]
3104
+ },
3105
+ "subComponents": [
3106
+ {
3107
+ "name": "NumberField.Decrement",
3108
+ "description": "NumberField.Decrement — full-height square control that decreases the value.",
3109
+ "props": [
3110
+ {
3111
+ "name": "className",
3112
+ "required": false,
3113
+ "type": "| string\n| ((state: NumberFieldDecrementState) => string)",
3114
+ "defaultValue": null,
3115
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
3116
+ },
3117
+ {
3118
+ "name": "nativeButton",
3119
+ "required": false,
3120
+ "type": "boolean",
3121
+ "defaultValue": "true",
3122
+ "description": "Whether the component renders a native `<button>` element when replacing it\nvia the `render` prop.\nSet to `false` if the rendered element is not a button (for example, `<div>`)."
3123
+ },
3124
+ {
3125
+ "name": "ref",
3126
+ "required": false,
3127
+ "type": "Ref<HTMLDivElement>",
3128
+ "defaultValue": null,
3129
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
3130
+ },
3131
+ {
3132
+ "name": "render",
3133
+ "required": false,
3134
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, NumberFieldDecrementState>",
3135
+ "defaultValue": null,
3136
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
3137
+ },
3138
+ {
3139
+ "name": "style",
3140
+ "required": false,
3141
+ "type": "| CSSProperties\n| ((state: NumberFieldDecrementState) => CSSProperties)",
3142
+ "defaultValue": null,
3143
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
3144
+ }
3145
+ ]
3146
+ },
3147
+ {
3148
+ "name": "NumberField.Group",
3149
+ "description": "NumberField.Group — bordered box grouping the input with the stepper controls.",
3150
+ "props": [
3151
+ {
3152
+ "name": "className",
3153
+ "required": false,
3154
+ "type": "| string\n| ((state: NumberFieldGroupState) => string)",
3155
+ "defaultValue": null,
3156
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
3157
+ },
3158
+ {
3159
+ "name": "ref",
3160
+ "required": false,
3161
+ "type": "Ref<HTMLDivElement>",
3162
+ "defaultValue": null,
3163
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
3164
+ },
3165
+ {
3166
+ "name": "render",
3167
+ "required": false,
3168
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, NumberFieldGroupState>",
3169
+ "defaultValue": null,
3170
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
3171
+ },
3172
+ {
3173
+ "name": "size",
3174
+ "required": false,
3175
+ "type": "\"sm\" | \"md\" | \"lg\" | null",
3176
+ "defaultValue": "md",
3177
+ "description": ""
3178
+ },
3179
+ {
3180
+ "name": "style",
3181
+ "required": false,
3182
+ "type": "| CSSProperties\n| ((state: NumberFieldGroupState) => CSSProperties)",
3183
+ "defaultValue": null,
3184
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
3185
+ },
3186
+ {
3187
+ "name": "variant",
3188
+ "required": false,
3189
+ "type": "\"outline\" | \"primary\" | \"filled\" | \"ghost\" | null",
3190
+ "defaultValue": "outline",
3191
+ "description": ""
3192
+ }
3193
+ ]
3194
+ },
3195
+ {
3196
+ "name": "NumberField.Increment",
3197
+ "description": "NumberField.Increment — full-height square control that increases the value.",
3198
+ "props": [
3199
+ {
3200
+ "name": "className",
3201
+ "required": false,
3202
+ "type": "| string\n| ((state: NumberFieldIncrementState) => string)",
3203
+ "defaultValue": null,
3204
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
3205
+ },
3206
+ {
3207
+ "name": "nativeButton",
3208
+ "required": false,
3209
+ "type": "boolean",
3210
+ "defaultValue": "true",
3211
+ "description": "Whether the component renders a native `<button>` element when replacing it\nvia the `render` prop.\nSet to `false` if the rendered element is not a button (for example, `<div>`)."
3212
+ },
3213
+ {
3214
+ "name": "ref",
3215
+ "required": false,
3216
+ "type": "Ref<HTMLDivElement>",
3217
+ "defaultValue": null,
3218
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
3219
+ },
3220
+ {
3221
+ "name": "render",
3222
+ "required": false,
3223
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, NumberFieldIncrementState>",
3224
+ "defaultValue": null,
3225
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
3226
+ },
3227
+ {
3228
+ "name": "style",
3229
+ "required": false,
3230
+ "type": "| CSSProperties\n| ((state: NumberFieldIncrementState) => CSSProperties)",
3231
+ "defaultValue": null,
3232
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
3233
+ }
3234
+ ]
3235
+ },
3236
+ {
3237
+ "name": "NumberField.Input",
3238
+ "description": "NumberField.Input — transparent, borderless mono numeric field.",
3239
+ "props": [
3240
+ {
3241
+ "name": "aria-roledescription",
3242
+ "required": false,
3243
+ "type": "string",
3244
+ "defaultValue": "Number field",
3245
+ "description": "A user-friendly description of the input's role for assistive tech. This is a role\ndescription, not an accessible name — use `Field.Label` or `aria-label` to name the control."
3246
+ },
3247
+ {
3248
+ "name": "className",
3249
+ "required": false,
3250
+ "type": "| string\n| ((state: NumberFieldInputState) => string)",
3251
+ "defaultValue": null,
3252
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
3253
+ },
3254
+ {
3255
+ "name": "ref",
3256
+ "required": false,
3257
+ "type": "Ref<HTMLDivElement>",
3258
+ "defaultValue": null,
3259
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
3260
+ },
3261
+ {
3262
+ "name": "render",
3263
+ "required": false,
3264
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, NumberFieldInputState>",
3265
+ "defaultValue": null,
3266
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
3267
+ },
3268
+ {
3269
+ "name": "style",
3270
+ "required": false,
3271
+ "type": "| CSSProperties\n| ((state: NumberFieldInputState) => CSSProperties)",
3272
+ "defaultValue": null,
3273
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
3274
+ }
3275
+ ]
3276
+ },
3277
+ {
3278
+ "name": "NumberField.ScrubArea",
3279
+ "description": "NumberField.ScrubArea — draggable region that scrubs the value on pointer move.",
3280
+ "props": [
3281
+ {
3282
+ "name": "className",
3283
+ "required": false,
3284
+ "type": "| string\n| ((state: NumberFieldScrubAreaState) => string)",
3285
+ "defaultValue": null,
3286
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
3287
+ },
3288
+ {
3289
+ "name": "direction",
3290
+ "required": false,
3291
+ "type": "\"horizontal\" | \"vertical\"",
3292
+ "defaultValue": "horizontal",
3293
+ "description": "Cursor movement direction in the scrub area."
3294
+ },
3295
+ {
3296
+ "name": "pixelSensitivity",
3297
+ "required": false,
3298
+ "type": "number",
3299
+ "defaultValue": "2",
3300
+ "description": "Determines how many pixels the cursor must move before the value changes.\nA higher value will make scrubbing less sensitive."
3301
+ },
3302
+ {
3303
+ "name": "ref",
3304
+ "required": false,
3305
+ "type": "Ref<HTMLDivElement>",
3306
+ "defaultValue": null,
3307
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
3308
+ },
3309
+ {
3310
+ "name": "render",
3311
+ "required": false,
3312
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, NumberFieldScrubAreaState>",
3313
+ "defaultValue": null,
3314
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
3315
+ },
3316
+ {
3317
+ "name": "style",
3318
+ "required": false,
3319
+ "type": "| CSSProperties\n| ((state: NumberFieldScrubAreaState) => CSSProperties)",
3320
+ "defaultValue": null,
3321
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
3322
+ },
3323
+ {
3324
+ "name": "teleportDistance",
3325
+ "required": false,
3326
+ "type": "number",
3327
+ "defaultValue": null,
3328
+ "description": "If specified, determines the distance that the cursor may move from the center\nof the scrub area before it will loop back around."
3329
+ }
3330
+ ]
3331
+ },
3332
+ {
3333
+ "name": "NumberField.ScrubAreaCursor",
3334
+ "description": "NumberField.ScrubAreaCursor — virtual cursor shown while scrubbing under pointer lock.",
3335
+ "props": [
3336
+ {
3337
+ "name": "className",
3338
+ "required": false,
3339
+ "type": "| string\n| ((state: NumberFieldScrubAreaCursorState) => string)",
3340
+ "defaultValue": null,
3341
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
3342
+ },
3343
+ {
3344
+ "name": "ref",
3345
+ "required": false,
3346
+ "type": "Ref<HTMLDivElement>",
3347
+ "defaultValue": null,
3348
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
3349
+ },
3350
+ {
3351
+ "name": "render",
3352
+ "required": false,
3353
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<\n HTMLProps,\n NumberFieldScrubAreaCursorState\n >",
3354
+ "defaultValue": null,
3355
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
3356
+ },
3357
+ {
3358
+ "name": "style",
3359
+ "required": false,
3360
+ "type": "| CSSProperties\n| ((\n state: NumberFieldScrubAreaCursorState\n ) => CSSProperties)",
3361
+ "defaultValue": null,
3362
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
3363
+ }
3364
+ ]
3365
+ },
3366
+ {
3367
+ "name": "NumberField.Stepper",
3368
+ "description": "NumberField.Stepper — pre-composed Root → Group → Input + controls. Use the\nindividual parts instead when a custom composition (e.g. with `Field` or\n`ScrubArea`) is needed.",
3369
+ "props": [
3370
+ {
3371
+ "name": "allowOutOfRange",
3372
+ "required": false,
3373
+ "type": "boolean",
3374
+ "defaultValue": "false",
3375
+ "description": "When true, direct text entry may be outside the `min`/`max` range without clamping,\nso native range underflow/overflow validation can occur.\nStep-based interactions (keyboard arrows, buttons, wheel, scrub) still clamp."
3376
+ },
3377
+ {
3378
+ "name": "allowWheelScrub",
3379
+ "required": false,
3380
+ "type": "boolean",
3381
+ "defaultValue": "false",
3382
+ "description": "Whether to allow the user to scrub the input value with the mouse wheel while focused and\nhovering over the input."
3383
+ },
3384
+ {
3385
+ "name": "className",
3386
+ "required": false,
3387
+ "type": "| string\n| ((state: NumberFieldRootState) => string)",
3388
+ "defaultValue": null,
3389
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
3390
+ },
3391
+ {
3392
+ "name": "defaultValue",
3393
+ "required": false,
3394
+ "type": "number",
3395
+ "defaultValue": null,
3396
+ "description": "The uncontrolled value of the field when it's initially rendered.\n\nTo render a controlled number field, use the `value` prop instead."
3397
+ },
3398
+ {
3399
+ "name": "disabled",
3400
+ "required": false,
3401
+ "type": "boolean",
3402
+ "defaultValue": "false",
3403
+ "description": "Whether the component should ignore user interaction."
3404
+ },
3405
+ {
3406
+ "name": "form",
3407
+ "required": false,
3408
+ "type": "string",
3409
+ "defaultValue": null,
3410
+ "description": "Identifies the form that owns the hidden input.\nUseful when the number field is rendered outside the form."
3411
+ },
3412
+ {
3413
+ "name": "format",
3414
+ "required": false,
3415
+ "type": "NumberFormatOptions",
3416
+ "defaultValue": null,
3417
+ "description": "Options to format the input value."
3418
+ },
3419
+ {
3420
+ "name": "id",
3421
+ "required": false,
3422
+ "type": "string",
3423
+ "defaultValue": null,
3424
+ "description": "The id of the input element."
3425
+ },
3426
+ {
3427
+ "name": "inputRef",
3428
+ "required": false,
3429
+ "type": "Ref<HTMLInputElement>",
3430
+ "defaultValue": null,
3431
+ "description": "A ref to access the hidden input element."
3432
+ },
3433
+ {
3434
+ "name": "largeStep",
3435
+ "required": false,
3436
+ "type": "number",
3437
+ "defaultValue": "10",
3438
+ "description": "The large step value of the input element when incrementing while the shift key is held.\nSnaps to multiples of this value when `snapOnStep` is enabled."
3439
+ },
3440
+ {
3441
+ "name": "layout",
3442
+ "required": false,
3443
+ "type": "\"trailing\" | \"flanking\"",
3444
+ "defaultValue": "trailing",
3445
+ "description": "Control placement relative to the input."
3446
+ },
3447
+ {
3448
+ "name": "locale",
3449
+ "required": false,
3450
+ "type": "LocalesArgument",
3451
+ "defaultValue": null,
3452
+ "description": "The locale of the input element.\nDefaults to the user's runtime locale."
3453
+ },
3454
+ {
3455
+ "name": "max",
3456
+ "required": false,
3457
+ "type": "number",
3458
+ "defaultValue": null,
3459
+ "description": "The maximum value of the input element."
3460
+ },
3461
+ {
3462
+ "name": "min",
3463
+ "required": false,
3464
+ "type": "number",
3465
+ "defaultValue": null,
3466
+ "description": "The minimum value of the input element."
3467
+ },
3468
+ {
3469
+ "name": "name",
3470
+ "required": false,
3471
+ "type": "string",
3472
+ "defaultValue": null,
3473
+ "description": "Identifies the field when a form is submitted."
3474
+ },
3475
+ {
3476
+ "name": "onValueChange",
3477
+ "required": false,
3478
+ "type": "(\n value: number | null,\n eventDetails: NumberFieldRootChangeEventDetails\n) => void",
3479
+ "defaultValue": null,
3480
+ "description": "Callback fired when the number value changes.\n\nThe `eventDetails.reason` indicates what triggered the change:\n- `'input-change'` for parseable typing or programmatic text updates\n- `'input-clear'` when the field becomes empty\n- `'input-blur'` when formatting (and clamping, if enabled) occurs on blur\n- `'input-paste'` for paste interactions\n- `'keyboard'` for arrow-key/Home/End stepping (typing digits uses `'input-change'`/`'input-clear'`)\n- `'increment-press'` / `'decrement-press'` for button presses on the increment and decrement controls\n- `'wheel'` for wheel-based scrubbing\n- `'scrub'` for scrub area drags"
3481
+ },
3482
+ {
3483
+ "name": "onValueCommitted",
3484
+ "required": false,
3485
+ "type": "(\n value: number | null,\n eventDetails: NumberFieldRootCommitEventDetails\n) => void",
3486
+ "defaultValue": null,
3487
+ "description": "Callback function that is fired when the value is committed.\nIt runs later than `onValueChange`, when:\n- The input is blurred after typing a value.\n- The pointer is released after scrubbing or pressing the increment/decrement buttons.\n\nIt runs simultaneously with `onValueChange` when interacting with the keyboard or the\nmouse wheel.\n\n**Warning**: This is a generic event not a change event."
3488
+ },
3489
+ {
3490
+ "name": "readOnly",
3491
+ "required": false,
3492
+ "type": "boolean",
3493
+ "defaultValue": "false",
3494
+ "description": "Whether the user should be unable to change the field value."
3495
+ },
3496
+ {
3497
+ "name": "ref",
3498
+ "required": false,
3499
+ "type": "Ref<HTMLDivElement>",
3500
+ "defaultValue": null,
3501
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
3502
+ },
3503
+ {
3504
+ "name": "render",
3505
+ "required": false,
3506
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, NumberFieldRootState>",
3507
+ "defaultValue": null,
3508
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
3509
+ },
3510
+ {
3511
+ "name": "required",
3512
+ "required": false,
3513
+ "type": "boolean",
3514
+ "defaultValue": "false",
3515
+ "description": "Whether the user must enter a value before submitting a form."
3516
+ },
3517
+ {
3518
+ "name": "scrub",
3519
+ "required": false,
3520
+ "type": "ReactNode",
3521
+ "defaultValue": null,
3522
+ "description": "Content rendered above the field as a drag handle: pressing it and moving\nsideways changes the value. Usually the field's label. The scrub cursor is\nsupplied automatically."
3523
+ },
3524
+ {
3525
+ "name": "size",
3526
+ "required": false,
3527
+ "type": "\"sm\" | \"md\" | \"lg\"",
3528
+ "defaultValue": "md",
3529
+ "description": "Control height, matching Input's scale."
3530
+ },
3531
+ {
3532
+ "name": "smallStep",
3533
+ "required": false,
3534
+ "type": "number",
3535
+ "defaultValue": "0.1",
3536
+ "description": "The small step value of the input element when incrementing while the alt key is held.\nSnaps to multiples of this value when `snapOnStep` is enabled."
3537
+ },
3538
+ {
3539
+ "name": "snapOnStep",
3540
+ "required": false,
3541
+ "type": "boolean",
3542
+ "defaultValue": "false",
3543
+ "description": "Whether the value should snap to the nearest step when incrementing or decrementing."
3544
+ },
3545
+ {
3546
+ "name": "step",
3547
+ "required": false,
3548
+ "type": "number | \"any\"",
3549
+ "defaultValue": "1",
3550
+ "description": "Amount to increment and decrement with the buttons and arrow keys, or to scrub with pointer movement in the scrub area.\nTo always enable step validation on form submission, specify the `min` prop explicitly in conjunction with this prop.\nSpecify `step=\"any\"` to always disable step validation; interactive stepping then uses a base amount of `1`, while the alt and shift keys still step by `smallStep` and `largeStep`."
3551
+ },
3552
+ {
3553
+ "name": "style",
3554
+ "required": false,
3555
+ "type": "| CSSProperties\n| ((state: NumberFieldRootState) => CSSProperties)",
3556
+ "defaultValue": null,
3557
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
3558
+ },
3559
+ {
3560
+ "name": "value",
3561
+ "required": false,
3562
+ "type": "number | null",
3563
+ "defaultValue": null,
3564
+ "description": "The raw numeric value of the field."
3565
+ },
3566
+ {
3567
+ "name": "variant",
3568
+ "required": false,
3569
+ "type": "\"outline\" | \"primary\" | \"filled\" | \"ghost\"",
3570
+ "defaultValue": "outline",
3571
+ "description": "Surface treatment applied to the group."
3572
+ }
3573
+ ]
3574
+ }
3575
+ ]
3576
+ },
2923
3577
  "popover": {
2924
3578
  "root": {
2925
3579
  "name": "Popover.Root",
@@ -6949,7 +7603,7 @@
6949
7603
  "name": "variant",
6950
7604
  "required": false,
6951
7605
  "type": "| \"main\"\n| \"support\"\n| \"minor\"\n| \"brand\"\n| \"primary\"\n| \"negative\"\n| \"positive\"\n| \"warning\"\n| \"info\"\n| \"oncolor\"\n| \"accent-1\"\n| \"accent-2\"\n| \"accent-3\"\n| null",
6952
- "defaultValue": "main",
7606
+ "defaultValue": "primary",
6953
7607
  "description": ""
6954
7608
  }
6955
7609
  ]
@@ -6983,7 +7637,7 @@
6983
7637
  "name": "variant",
6984
7638
  "required": false,
6985
7639
  "type": "| \"main\"\n| \"support\"\n| \"minor\"\n| \"brand\"\n| \"primary\"\n| \"negative\"\n| \"positive\"\n| \"warning\"\n| \"info\"\n| \"oncolor\"\n| \"accent-1\"\n| \"accent-2\"\n| \"accent-3\"\n| null",
6986
- "defaultValue": "main",
7640
+ "defaultValue": "primary",
6987
7641
  "description": ""
6988
7642
  }
6989
7643
  ]